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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27fdd3b59ecc60d35eebdc42248fbbf3900e1dce | 741 | py | Python | features/steps/Reverse_to_Make_Equal.py | percebus/leetcode-excercises | 1d746e2255a3a5a652535ed1984a5aa45165e17e | [
"Unlicense"
] | null | null | null | features/steps/Reverse_to_Make_Equal.py | percebus/leetcode-excercises | 1d746e2255a3a5a652535ed1984a5aa45165e17e | [
"Unlicense"
] | null | null | null | features/steps/Reverse_to_Make_Equal.py | percebus/leetcode-excercises | 1d746e2255a3a5a652535ed1984a5aa45165e17e | [
"Unlicense"
] | null | null | null | from aloe import step, world
from problems.meta.coding.practice.reverse_to_make_equal import are_they_similar
def process(string:str) -> list:
return [
int(num)
for num in string.split(',')
]
@step("two arrays (?P<A>.+) and (?P<B>.+)")
def step_impl(self, A, B):
world.array_a = process(A... | 23.903226 | 80 | 0.696356 | 118 | 741 | 4.194915 | 0.398305 | 0.070707 | 0.141414 | 0.121212 | 0.238384 | 0.137374 | 0.137374 | 0.137374 | 0 | 0 | 0 | 0 | 0.163293 | 741 | 30 | 81 | 24.7 | 0.798387 | 0 | 0 | 0.15 | 0 | 0 | 0.246964 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.25 | false | 0 | 0.1 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e06c8227f8a77bc594e60d54884980a8d650258 | 38,100 | py | Python | hyperion/controller/attocube/anc350.py | caldarolamartin/hyperion | 19d6d2041f5029cd33da86c095d76e19ce89fcac | [
"BSD-3-Clause"
] | 1 | 2020-02-09T15:15:59.000Z | 2020-02-09T15:15:59.000Z | hyperion/controller/attocube/anc350.py | caldarolamartin/hyperion | 19d6d2041f5029cd33da86c095d76e19ce89fcac | [
"BSD-3-Clause"
] | 1 | 2020-02-14T10:26:50.000Z | 2020-02-14T10:26:50.000Z | hyperion/controller/attocube/anc350.py | caldarolamartin/hyperion | 19d6d2041f5029cd33da86c095d76e19ce89fcac | [
"BSD-3-Clause"
] | 1 | 2020-02-14T10:12:09.000Z | 2020-02-14T10:12:09.000Z | """
==========================
ANC350 Attocube Controller
==========================
This is the controller level of the position ANC350 from Attocube (in the Montana)
This code is strongly based and using PyANC350, which was written by Rob Heath; rob@robheath.me.uk; 24-Feb-2015;
It was taken from github in August 20... | 40.105263 | 294 | 0.625197 | 4,591 | 38,100 | 5.165323 | 0.185798 | 0.02741 | 0.025386 | 0.019229 | 0.335456 | 0.300582 | 0.239647 | 0.218183 | 0.191996 | 0.184575 | 0 | 0.028289 | 0.254042 | 38,100 | 949 | 295 | 40.147524 | 0.806094 | 0.524672 | 0 | 0.107527 | 0 | 0 | 0.097289 | 0.019638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243728 | false | 0.003584 | 0.032258 | 0 | 0.34767 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e0776f4f6cbd45c07d04776af1a27c02399ae59 | 662 | py | Python | project/books/migrations/0012_auto_20200510_2301.py | wx-ast/price_books | 814ad5510494239f04b440f12341efa734201d52 | [
"MIT"
] | null | null | null | project/books/migrations/0012_auto_20200510_2301.py | wx-ast/price_books | 814ad5510494239f04b440f12341efa734201d52 | [
"MIT"
] | null | null | null | project/books/migrations/0012_auto_20200510_2301.py | wx-ast/price_books | 814ad5510494239f04b440f12341efa734201d52 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-10 20:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0011_auto_20200507_2011'),
]
operations = [
migrations.AlterField(
model_name='product',
name='author_searc... | 27.583333 | 107 | 0.610272 | 73 | 662 | 5.383562 | 0.60274 | 0.101781 | 0.127226 | 0.147583 | 0.53944 | 0.53944 | 0.335878 | 0.335878 | 0.335878 | 0.335878 | 0 | 0.076132 | 0.265861 | 662 | 23 | 108 | 28.782609 | 0.73251 | 0.067976 | 0 | 0.352941 | 1 | 0 | 0.154472 | 0.037398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e102a08733086c18ff8abbd7908f63fd860318b | 984 | py | Python | tests/parser/number/test_dice_parser_number.py | Bernardo-MG/dice-notation-python | a50e1639b0384d376252f83f7ce2add3a1daf825 | [
"MIT"
] | 5 | 2017-03-15T04:30:41.000Z | 2021-08-17T11:24:36.000Z | tests/parser/number/test_dice_parser_number.py | Bernardo-MG/dice-notation-python | a50e1639b0384d376252f83f7ce2add3a1daf825 | [
"MIT"
] | 8 | 2016-10-16T21:20:07.000Z | 2022-02-28T21:33:38.000Z | tests/parser/number/test_dice_parser_number.py | Bernardo-MG/dice-notation-python | a50e1639b0384d376252f83f7ce2add3a1daf825 | [
"MIT"
] | 2 | 2017-10-27T19:52:05.000Z | 2018-12-25T02:43:30.000Z | # -*- coding: utf-8 -*-
import unittest
from dice_notation.parser import DiceParser
"""
Dice parser tests for purely numeric expressions.
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
class TestNumber(unittest.TestCase):
"""
Tests that numeric expressions can be parsed.
"""
def... | 20.081633 | 50 | 0.581301 | 107 | 984 | 5.233645 | 0.420561 | 0.064286 | 0.078571 | 0.091071 | 0.292857 | 0.292857 | 0.292857 | 0.235714 | 0.235714 | 0.235714 | 0 | 0.010086 | 0.294715 | 984 | 48 | 51 | 20.5 | 0.79683 | 0.218496 | 0 | 0 | 0 | 0 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd667b174ae26a1b0cd5cf6b13375e64c8092cfe | 1,338 | py | Python | tests/apitests/python/library/configurations.py | shaneutt/harbor | 38c4f12f2e5466bd1442a2410c56321b081b1c33 | [
"Apache-2.0"
] | 1 | 2018-11-26T02:33:33.000Z | 2018-11-26T02:33:33.000Z | tests/apitests/python/library/configurations.py | shaneutt/harbor | 38c4f12f2e5466bd1442a2410c56321b081b1c33 | [
"Apache-2.0"
] | null | null | null | tests/apitests/python/library/configurations.py | shaneutt/harbor | 38c4f12f2e5466bd1442a2410c56321b081b1c33 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import base
import swagger_client
class Configurations(base.Base):
def get_configurations(self, item_name = None, expect_status_code = 200, **kwargs):
client = self._get_client(**kwargs)
data, status_code, _ = client.configurations_get_with_http_info()
base._assert_... | 49.555556 | 139 | 0.72272 | 155 | 1,338 | 5.812903 | 0.303226 | 0.166482 | 0.288568 | 0.042175 | 0.226415 | 0.226415 | 0.110988 | 0.110988 | 0.110988 | 0.110988 | 0 | 0.009234 | 0.190583 | 1,338 | 26 | 140 | 51.461538 | 0.822715 | 0.015695 | 0 | 0.095238 | 0 | 0 | 0.052471 | 0.042586 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd6d94d1c96aedd62b2f7bbd81a09ccebf75df10 | 1,969 | py | Python | moai/supervision/losses/regression/cosine_distance.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 10 | 2021-04-02T11:21:33.000Z | 2022-01-18T18:32:32.000Z | moai/supervision/losses/regression/cosine_distance.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 1 | 2022-03-22T20:10:55.000Z | 2022-03-24T13:11:02.000Z | moai/supervision/losses/regression/cosine_distance.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 3 | 2021-05-16T20:47:40.000Z | 2021-12-01T21:15:36.000Z | import torch
import numpy as np
__all__ = ["CosineDistance"]
#NOTE: see https://github.com/pytorch/pytorch/issues/8069
#TODO: update acos_safe once PR mentioned in above link is merged and available
def _acos_safe(x: torch.Tensor, eps: float=1e-4):
slope = np.arccos(1.0 - eps) / eps
# TODO: stop doing this a... | 37.865385 | 137 | 0.595734 | 278 | 1,969 | 4.147482 | 0.356115 | 0.017346 | 0.034692 | 0.026019 | 0.18647 | 0.18647 | 0.157849 | 0.121422 | 0.121422 | 0.121422 | 0 | 0.022917 | 0.268664 | 1,969 | 51 | 138 | 38.607843 | 0.777778 | 0.247842 | 0 | 0 | 0 | 0 | 0.012059 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd70793c861049bc0977538eebd2944d1e594644 | 1,037 | py | Python | src/foreman/services/Brew.py | lazyguru/foreman | 0436097b3bbfbf7d960bb403ae79040aa771fd7c | [
"MIT"
] | 3 | 2019-10-01T06:24:58.000Z | 2020-10-15T15:26:37.000Z | src/foreman/services/Brew.py | lazyguru/foreman | 0436097b3bbfbf7d960bb403ae79040aa771fd7c | [
"MIT"
] | 9 | 2020-04-12T05:03:08.000Z | 2020-11-29T04:54:25.000Z | src/foreman/services/Brew.py | lazyguru/foreman | 0436097b3bbfbf7d960bb403ae79040aa771fd7c | [
"MIT"
] | 1 | 2020-04-12T07:33:17.000Z | 2020-04-12T07:33:17.000Z | import subprocess # skipcq: BAN-B404
class Brew:
@staticmethod
def install(package: str) -> None:
subprocess.run( # skipcq: BAN-B603
["/usr/local/bin/brew", "install", package], check=True
)
@staticmethod
def update() -> None:
subprocess.run( # skipcq: BAN-B603
... | 32.40625 | 70 | 0.617165 | 127 | 1,037 | 4.92126 | 0.275591 | 0.0896 | 0.064 | 0.096 | 0.4224 | 0.4224 | 0.4224 | 0.4224 | 0.4224 | 0.4224 | 0 | 0.015326 | 0.244937 | 1,037 | 31 | 71 | 33.451613 | 0.782886 | 0.064609 | 0 | 0.166667 | 0 | 0 | 0.101554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd79bfebdcca46efb5b799ea19e8151c7664d476 | 5,218 | py | Python | lista.py | saulosjoseph/projetoAlgoritmos-CinUFPE2019.2 | 49757dedf74b20b9ac7c59baf379c46d586f4452 | [
"MIT"
] | null | null | null | lista.py | saulosjoseph/projetoAlgoritmos-CinUFPE2019.2 | 49757dedf74b20b9ac7c59baf379c46d586f4452 | [
"MIT"
] | null | null | null | lista.py | saulosjoseph/projetoAlgoritmos-CinUFPE2019.2 | 49757dedf74b20b9ac7c59baf379c46d586f4452 | [
"MIT"
] | null | null | null | ''' Univesidade Federal de Pernambuco -- UFPE (http://www.ufpe.br)
Centro de Informatica -- CIn (http://www.cin.ufpe.br) IF969 --
Algoritmos e Estruturas de Dados
Autor: Saulo de Sousa Joseph
Email: ssj2@cin.ufpe.br
Data: 10/09/2019
Descricao: lista de monitoria Q1
Licenca: The MIT License (MIT)
'''
... | 29.314607 | 87 | 0.564392 | 500 | 5,218 | 5.766 | 0.218 | 0.034339 | 0.033992 | 0.0111 | 0.065904 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006071 | 0.337102 | 5,218 | 177 | 88 | 29.480226 | 0.827407 | 0.059218 | 0 | 0.244444 | 0 | 0 | 0.013875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214815 | false | 0 | 0 | 0.066667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd7e1768a28b3706b9fcbe3884bdd0a541336a77 | 2,303 | py | Python | behind/companies/migrations/0001_initial.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | null | null | null | behind/companies/migrations/0001_initial.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | 6 | 2021-03-19T01:22:45.000Z | 2021-06-10T18:59:30.000Z | behind/companies/migrations/0001_initial.py | teamsalad/behind-api | b0bb92226e76defde4d4a2c48379153e6793a4e9 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-14 11:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
... | 40.403509 | 159 | 0.563178 | 223 | 2,303 | 5.627803 | 0.345291 | 0.038247 | 0.100398 | 0.119522 | 0.584064 | 0.56255 | 0.56255 | 0.56255 | 0.56255 | 0.56255 | 0 | 0.017273 | 0.296135 | 2,303 | 56 | 160 | 41.125 | 0.75694 | 0.01954 | 0 | 0.489796 | 1 | 0 | 0.133422 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd8fe4ea81e49ed31eeac523f7e00a29ea36a7cb | 1,510 | py | Python | bin/ifttt.py | noisufnoc/ifttt_alert | 0e15aed39ad913980b47aa3a55fe90b62ed5897a | [
"Apache-2.0"
] | null | null | null | bin/ifttt.py | noisufnoc/ifttt_alert | 0e15aed39ad913980b47aa3a55fe90b62ed5897a | [
"Apache-2.0"
] | null | null | null | bin/ifttt.py | noisufnoc/ifttt_alert | 0e15aed39ad913980b47aa3a55fe90b62ed5897a | [
"Apache-2.0"
] | null | null | null | import sys
import json
import urllib
# TODO: Better error handling
def trigger_ifttt(settings):
# stuff goes here
api_prefix = settings.get('api_prefix')
api_suffix = settings.get('api_suffix')
# Need to validate key is present, else fail.
if not settings.get('api_key_override'):
key = se... | 30.2 | 79 | 0.617219 | 195 | 1,510 | 4.661538 | 0.384615 | 0.108911 | 0.092409 | 0.056106 | 0.168317 | 0.088009 | 0.088009 | 0.088009 | 0.088009 | 0 | 0 | 0.016711 | 0.24702 | 1,510 | 49 | 80 | 30.816327 | 0.782762 | 0.081457 | 0 | 0.085714 | 0 | 0 | 0.176556 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.142857 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd90e4864d60df1864000eb3778b16964f255a0c | 294 | py | Python | kiddies_app/data/req.py | Austin-Deccentric/kiddies_app | a3d76c7f037097e2d72fca6dd7e9409555c38417 | [
"MIT"
] | null | null | null | kiddies_app/data/req.py | Austin-Deccentric/kiddies_app | a3d76c7f037097e2d72fca6dd7e9409555c38417 | [
"MIT"
] | null | null | null | kiddies_app/data/req.py | Austin-Deccentric/kiddies_app | a3d76c7f037097e2d72fca6dd7e9409555c38417 | [
"MIT"
] | null | null | null | import requests
url = 'http://127.0.0.1:5000/api/check'
with open('SFW.txt', 'rb') as f:
r = requests.post(url, files={'story': f.read()})
#curl -X POST 'http://127.0.0.1:5000/api/check' -F 'story=@SFW.txt' -i
#CURL -F 'story=@SFW.txt' -X POST 'http://127.0.0.1:5000/api/check'
| 29.4 | 71 | 0.598639 | 57 | 294 | 3.087719 | 0.438596 | 0.119318 | 0.136364 | 0.153409 | 0.431818 | 0.431818 | 0.431818 | 0.431818 | 0.306818 | 0.306818 | 0 | 0.12 | 0.14966 | 294 | 9 | 72 | 32.666667 | 0.584 | 0.459184 | 0 | 0 | 0 | 0 | 0.304054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd92a346147b2beec4a007fed00a1ff494b9d251 | 500 | py | Python | systemstats/serializers.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | systemstats/serializers.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | systemstats/serializers.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | from rest_framework import serializers
from systemstats.models import MinuteStats
class MinuteStatsSerializer(serializers.HyperlinkedModelSerializer):
#api_url = serializers.SerializerMethodField('get_api_url')
camera_name = serializers.SerializerMethodField()
class Meta:
model = MinuteStats
... | 25 | 68 | 0.66 | 44 | 500 | 7.318182 | 0.590909 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268 | 500 | 19 | 69 | 26.315789 | 0.879781 | 0.116 | 0 | 0 | 0 | 0 | 0.058957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fd992f7196497956f1894c60730a2d060f4ec4fd | 2,664 | py | Python | maasaic/apps/content/admin.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | maasaic/apps/content/admin.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | maasaic/apps/content/admin.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | import nested_admin
from django.contrib import admin
from maasaic.apps.content.models import Cell
from maasaic.apps.content.models import Font
from maasaic.apps.content.models import Page
from maasaic.apps.content.models import Section
from maasaic.apps.content.models import UploadedImage
from maasaic.apps.content.mod... | 32.888889 | 92 | 0.448198 | 192 | 2,664 | 6.125 | 0.338542 | 0.056122 | 0.076531 | 0.112245 | 0.215986 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0.0017 | 0.116742 | 2,664 | 80 | 93 | 33.3 | 0.498088 | 0.37012 | 0 | 0.181818 | 0 | 0 | 0.103677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd9cbdc289e5552f216823bae9db053574210d82 | 1,088 | py | Python | log.py | chenxiaohui12/Test | 2abf6d951be41c3737c216f4d2a58af3a9a4848d | [
"Apache-2.0"
] | null | null | null | log.py | chenxiaohui12/Test | 2abf6d951be41c3737c216f4d2a58af3a9a4848d | [
"Apache-2.0"
] | null | null | null | log.py | chenxiaohui12/Test | 2abf6d951be41c3737c216f4d2a58af3a9a4848d | [
"Apache-2.0"
] | null | null | null | import logging
class Logger:
def __init__(self, path, clevel=logging.DEBUG, Flevel=logging.DEBUG):
self.logger = logging.getLogger(path) #定义日志文件路径名字
self.logger.setLevel(logging.DEBUG) #定义日志文件为debug级别
fmt = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s', '%Y-%m-%d %H:%M:%S') #... | 41.846154 | 105 | 0.653493 | 127 | 1,088 | 5.566929 | 0.433071 | 0.127298 | 0.056577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215993 | 1,088 | 26 | 106 | 41.846154 | 0.828839 | 0.153493 | 0 | 0 | 0 | 0 | 0.064018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd9d60c0c173327a21ae6f9b61edb8c83534e6d9 | 2,642 | py | Python | tests/test_functional.py | shepherdjay/cisco-unified-scripts | 7ee8263c8965e1e73772e8349bec1b900f6e1eae | [
"MIT"
] | null | null | null | tests/test_functional.py | shepherdjay/cisco-unified-scripts | 7ee8263c8965e1e73772e8349bec1b900f6e1eae | [
"MIT"
] | null | null | null | tests/test_functional.py | shepherdjay/cisco-unified-scripts | 7ee8263c8965e1e73772e8349bec1b900f6e1eae | [
"MIT"
] | null | null | null | import os
from unittest import TestCase
from unittest.mock import patch
import requests
from singleinbox import find_users_without, get_username_password
from pycuc.japi import UnityAPI
def fetch_http_test_file(file):
"""
Fetches a test file of the HTTP Content and returns in bytes
:param file: A properl... | 37.742857 | 113 | 0.705148 | 363 | 2,642 | 4.911846 | 0.393939 | 0.040381 | 0.029164 | 0.038138 | 0.169938 | 0.132922 | 0.116657 | 0.116657 | 0.066181 | 0.066181 | 0 | 0.008725 | 0.219152 | 2,642 | 69 | 114 | 38.289855 | 0.85555 | 0.26268 | 0 | 0 | 0 | 0 | 0.096134 | 0.060084 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.125 | false | 0.1 | 0.15 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fd9fe8f9815822610a3718cb886cd16f9861a0d8 | 768 | py | Python | stackoversight/taskqueue/redis_worker.py | ashersnavely/stackoversight | d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783 | [
"BSD-2-Clause"
] | null | null | null | stackoversight/taskqueue/redis_worker.py | ashersnavely/stackoversight | d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783 | [
"BSD-2-Clause"
] | null | null | null | stackoversight/taskqueue/redis_worker.py | ashersnavely/stackoversight | d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783 | [
"BSD-2-Clause"
] | null | null | null | import os
from redis import Redis
from rq import Queue, Connection
from rq.worker import Worker
from dotenv import load_dotenv
class RedisWorker:
def __init__(self):
load_dotenv(verbose=True)
listen = ['high', 'default', 'low']
redis_host = os.getenv("REDIS_HOST") if os.getenv("REDIS_HOST... | 34.909091 | 103 | 0.679688 | 109 | 768 | 4.623853 | 0.348624 | 0.095238 | 0.154762 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008251 | 0.210938 | 768 | 21 | 104 | 36.571429 | 0.823432 | 0 | 0 | 0 | 0 | 0 | 0.11849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.294118 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fdabdf42c7bd4c0b3f434fb772ec6eaa4bbcadaf | 411 | py | Python | cloudmesh/burn/wifi/provider.py | cloudmesh/cloudmesh_pi_burn | 0d080c0b6057e2c761e90ebd4144d04b4dff6d6b | [
"Apache-2.0"
] | 16 | 2021-01-16T16:18:08.000Z | 2022-03-07T16:09:18.000Z | cloudmesh/burn/wifi/provider.py | cloudmesh/cloudmesh-pi-burn | ad76a310e3ebe2b6111b00de0d2a80693ceeb6f4 | [
"Apache-2.0"
] | 11 | 2021-01-16T12:39:56.000Z | 2021-05-06T21:57:43.000Z | cloudmesh/burn/wifi/provider.py | cloudmesh/cloudmesh-pi-burn | ad76a310e3ebe2b6111b00de0d2a80693ceeb6f4 | [
"Apache-2.0"
] | 3 | 2021-02-07T16:35:05.000Z | 2021-04-03T04:48:10.000Z | """
Implementation of a function the set the WIFI configuration.
This function is primarily developed for a Raspberry PI
"""
from cloudmesh.burn.wifi.raspberryos import Wifi as WifiRaspberryOs
from cloudmesh.burn.wifi.ubuntu import Wifi as WifiUbuntu
# noinspection PyPep8Naming
def Wifi(card_os="raspberry"):
if ... | 25.6875 | 67 | 0.759124 | 52 | 411 | 5.961538 | 0.615385 | 0.083871 | 0.109677 | 0.135484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002959 | 0.177616 | 411 | 15 | 68 | 27.4 | 0.914201 | 0.347932 | 0 | 0 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fdb1f784153e3142514b8d2701c23a3f5a6524bd | 282 | py | Python | roster/templatetags/get_attendance.py | SvenStahlmann/Early-Bird | b064ff6c4c83e7c038ae1b2fa83f674928b14acb | [
"MIT"
] | null | null | null | roster/templatetags/get_attendance.py | SvenStahlmann/Early-Bird | b064ff6c4c83e7c038ae1b2fa83f674928b14acb | [
"MIT"
] | 3 | 2020-05-22T22:28:16.000Z | 2021-09-22T19:11:03.000Z | roster/templatetags/get_attendance.py | SvenStahlmann/Early-Bird | b064ff6c4c83e7c038ae1b2fa83f674928b14acb | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
def get_attendance(character):
counter = 0
for raid_day in character.attendance.all():
if raid_day.present:
counter += 1
return counter
register.filter('get_attendance', get_attendance)
| 17.625 | 49 | 0.695035 | 34 | 282 | 5.617647 | 0.647059 | 0.204188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.223404 | 282 | 15 | 50 | 18.8 | 0.863014 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
fdb214cbe8d9abddd22e6d699d06c72d9d5ddfb9 | 1,317 | py | Python | src/nitpick/exceptions.py | admdev8/nitpick | cf00d741d4d52d7591dffa4af0211bc652ba2e55 | [
"MIT"
] | 1 | 2020-08-30T09:10:44.000Z | 2020-08-30T09:10:44.000Z | src/nitpick/exceptions.py | admdev8/nitpick | cf00d741d4d52d7591dffa4af0211bc652ba2e55 | [
"MIT"
] | 3 | 2020-08-30T09:10:56.000Z | 2020-08-30T09:42:28.000Z | src/nitpick/exceptions.py | admdev8/nitpick | cf00d741d4d52d7591dffa4af0211bc652ba2e55 | [
"MIT"
] | null | null | null | """Nitpick exceptions."""
from pathlib import Path
class NitpickError(Exception):
"""A Nitpick error raise flake8 errors."""
error_base_number = 0 # type: int
error_prefix = "" # type: str
number = 0 # type: int
message = "" # type: str
suggestion = None # type: str
add_to_base_num... | 23.517857 | 75 | 0.627183 | 168 | 1,317 | 4.636905 | 0.392857 | 0.051348 | 0.042362 | 0.035944 | 0.051348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009128 | 0.251329 | 1,317 | 55 | 76 | 23.945455 | 0.780933 | 0.146545 | 0 | 0.133333 | 0 | 0 | 0.0955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.033333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fdbbec6f2b1c64ff2ce2fb6c44bb5314a23d39f5 | 6,004 | py | Python | log-main.py | mohanad86/Log-parser | ec6c08a518d7a670780aa1a5f3f71ece320a1616 | [
"Apache-2.0"
] | null | null | null | log-main.py | mohanad86/Log-parser | ec6c08a518d7a670780aa1a5f3f71ece320a1616 | [
"Apache-2.0"
] | null | null | null | log-main.py | mohanad86/Log-parser | ec6c08a518d7a670780aa1a5f3f71ece320a1616 | [
"Apache-2.0"
] | 1 | 2017-09-17T06:54:10.000Z | 2017-09-17T06:54:10.000Z | import codecs
import os
import urllib
import gzip
import argparse
import gzip
import GeoIP
from jinja2 import Environment, FileSystemLoader
PROJECT_ROOT = os.path.dirname(__file__)
env = Environment(
loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "templates")),
trim_blocks=True)
#env = Environm... | 37.761006 | 118 | 0.619587 | 788 | 6,004 | 4.629442 | 0.300761 | 0.018092 | 0.016447 | 0.019189 | 0.212171 | 0.157895 | 0.103618 | 0.087171 | 0.087171 | 0.067434 | 0 | 0.01888 | 0.214857 | 6,004 | 158 | 119 | 38 | 0.754985 | 0.095769 | 0 | 0.118519 | 0 | 0.014815 | 0.155379 | 0.026573 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081481 | null | null | 0.118519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdbca5e371ba76fdbecac43457162ec35eded223 | 1,626 | py | Python | formatChanger.py | skapi1992/Instagram-Image-Scrapper | 2835e7acd435c24d6bc212a6a5a01f9317404031 | [
"MIT"
] | 4 | 2016-04-28T07:28:57.000Z | 2021-06-21T05:56:40.000Z | formatChanger.py | skapi1992/Instagram-Image-Scrapper | 2835e7acd435c24d6bc212a6a5a01f9317404031 | [
"MIT"
] | null | null | null | formatChanger.py | skapi1992/Instagram-Image-Scrapper | 2835e7acd435c24d6bc212a6a5a01f9317404031 | [
"MIT"
] | 1 | 2017-01-25T15:08:06.000Z | 2017-01-25T15:08:06.000Z | import json
currentHashtag = "airmax"
def load_info_from_json_file():
path = currentHashtag + r'/ImagesInfo.json'
database = []
with open(path) as f:
for line in f:
database.append(line)
if (len(database)>0):
return json.loads(database[0])
else:
return []
def ... | 27.559322 | 109 | 0.558426 | 205 | 1,626 | 4.317073 | 0.268293 | 0.115254 | 0.055367 | 0.054237 | 0.324294 | 0.178531 | 0.178531 | 0.065537 | 0.065537 | 0 | 0 | 0.023849 | 0.252153 | 1,626 | 59 | 110 | 27.559322 | 0.703947 | 0 | 0 | 0.145833 | 0 | 0 | 0.06638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdbd670d33d0c4e998f830dfec9275d7f21683b9 | 944 | py | Python | scripts/airflow/dags/centreline_vector_tiles.py | CityofToronto/bdit_move_etl | ca3aa7c4d543ddd304a19a3620a570d123e5817b | [
"MIT"
] | null | null | null | scripts/airflow/dags/centreline_vector_tiles.py | CityofToronto/bdit_move_etl | ca3aa7c4d543ddd304a19a3620a570d123e5817b | [
"MIT"
] | 2 | 2021-10-01T14:37:47.000Z | 2022-03-11T17:11:27.000Z | scripts/airflow/dags/centreline_vector_tiles.py | CityofToronto/bdit_move_etl | ca3aa7c4d543ddd304a19a3620a570d123e5817b | [
"MIT"
] | null | null | null | """
centreline_vector_tiles
Generates vector tiles from the MOVE conflation target, which is built by the
`centreline_conflation_target` DAG. These are stored in `/data/tiles`, and are served from
`/tiles` on our web EC2 instances; they are used by `FcPaneMap` in the web frontend to render
interactive centreline feat... | 36.307692 | 93 | 0.8125 | 139 | 944 | 5.158273 | 0.460432 | 0.138075 | 0.078103 | 0.111576 | 0.263598 | 0.174338 | 0.09484 | 0 | 0 | 0 | 0 | 0.013174 | 0.115466 | 944 | 25 | 94 | 37.76 | 0.845509 | 0.445975 | 0 | 0 | 1 | 0 | 0.114563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdbee74658503e5bdc9246cb64088fb8de143bfb | 831 | py | Python | code/holiday+weekend.py | samuel920119920119samuel/visitor-forecasting | bd44c5fd058a68c797a48b95affefcef11e3248a | [
"Apache-2.0"
] | 2 | 2018-12-16T14:43:39.000Z | 2018-12-16T14:43:40.000Z | code/holiday+weekend.py | samuel920119920119samuel/visitor-forecasting | bd44c5fd058a68c797a48b95affefcef11e3248a | [
"Apache-2.0"
] | null | null | null | code/holiday+weekend.py | samuel920119920119samuel/visitor-forecasting | bd44c5fd058a68c797a48b95affefcef11e3248a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn import preprocessing
from sklearn.model_selection import GridSearchCV
import lightgbm as lgb
lbl = preprocessing.LabelEncoder()
data = {
'hol':
pd.read_csv('../data/date_info.csv')
}
data['hol']['calendar_date'] = pd.to_datetime(data['hol']['calendar_... | 29.678571 | 92 | 0.681107 | 121 | 831 | 4.479339 | 0.371901 | 0.219557 | 0.110701 | 0.140221 | 0.252768 | 0.223247 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.092659 | 831 | 27 | 93 | 30.777778 | 0.71618 | 0.089049 | 0 | 0 | 0 | 0 | 0.328477 | 0.027815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
fdc1ec6bf5f9f883a6adacceb984c82f9d3a6465 | 37,083 | py | Python | sssom/sssom_datamodel.py | cmungall/sssom-py | c3dd0cacc9003d139c815a704a27a2e6432e5490 | [
"CC0-1.0"
] | 13 | 2021-02-01T15:26:08.000Z | 2022-03-09T05:36:24.000Z | sssom/sssom_datamodel.py | mapping-commons/sssom-py | c3dd0cacc9003d139c815a704a27a2e6432e5490 | [
"CC0-1.0"
] | 162 | 2021-01-26T17:43:36.000Z | 2022-03-21T12:44:08.000Z | sssom/sssom_datamodel.py | cmungall/sssom-py | c3dd0cacc9003d139c815a704a27a2e6432e5490 | [
"CC0-1.0"
] | 3 | 2020-08-25T21:52:36.000Z | 2020-12-31T19:10:50.000Z | # Auto generated from sssom.yaml by pythongen.py version: 0.9.0
# Generation date: 2021-12-01T14:30:38
# Schema: sssom
#
# id: http://w3id.org/sssom/schema/
# description: Datamodel for Simple Standard for Sharing Ontology Mappings (SSSOM)
# license: https://creativecommons.org/publicdomain/zero/1.0/
import dataclasse... | 32.162186 | 141 | 0.668743 | 4,381 | 37,083 | 5.467245 | 0.062543 | 0.03006 | 0.042585 | 0.043211 | 0.613393 | 0.531187 | 0.486389 | 0.445767 | 0.394873 | 0.356129 | 0 | 0.002159 | 0.225656 | 37,083 | 1,152 | 142 | 32.190104 | 0.831969 | 0.01591 | 0 | 0.37641 | 1 | 0 | 0.095267 | 0.019372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003077 | false | 0.001026 | 0.01641 | 0 | 0.126154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdc3f82bfe8cd9cd0dfc5da504d65b190d0f8e4a | 491 | py | Python | profil/migrations/0010_auto_20191219_1938.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | null | null | null | profil/migrations/0010_auto_20191219_1938.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | 14 | 2018-09-12T06:59:55.000Z | 2020-02-26T07:17:48.000Z | profil/migrations/0010_auto_20191219_1938.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-12-19 18:38
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profil', '0009_auto_20190112_2032'),
]
operations = [
migrati... | 22.318182 | 72 | 0.631365 | 54 | 491 | 5.574074 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108992 | 0.252546 | 491 | 21 | 73 | 23.380952 | 0.711172 | 0.13442 | 0 | 0 | 1 | 0 | 0.109005 | 0.054502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdcb32b091826a23b19e03fd35766c75c1e153e0 | 259 | py | Python | pbjson/tests/test_default.py | scottkmaxwell/pbjson | d584eb8c49b072f746eb1f5183c63259670f6d4a | [
"AFL-2.1"
] | 2 | 2022-02-11T05:28:46.000Z | 2022-03-11T21:05:06.000Z | pbjson/tests/test_default.py | scottkmaxwell/pbjson | d584eb8c49b072f746eb1f5183c63259670f6d4a | [
"AFL-2.1"
] | 2 | 2020-03-14T19:37:20.000Z | 2020-06-23T17:20:04.000Z | pbjson/tests/test_default.py | scottkmaxwell/pbjson | d584eb8c49b072f746eb1f5183c63259670f6d4a | [
"AFL-2.1"
] | 1 | 2020-05-23T22:29:04.000Z | 2020-05-23T22:29:04.000Z | from unittest import TestCase, main
import pbjson
class TestDefault(TestCase):
def test_default(self):
self.assertEqual(
pbjson.dumps(type, convert=repr),
pbjson.dumps(repr(type)))
if __name__ == '__main__':
main()
| 18.5 | 45 | 0.644788 | 29 | 259 | 5.448276 | 0.655172 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247104 | 259 | 13 | 46 | 19.923077 | 0.810256 | 0 | 0 | 0 | 0 | 0 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdcc45f7ff4cbcd9be0838016c01bdc713769b96 | 6,483 | py | Python | Plugins/GUI/Edit_View_Window/Edit_Tree_Model.py | bvbohnen/X4_Customizer | 6f865008690916a66a44c97331d9a2692baedb35 | [
"MIT"
] | 25 | 2018-12-10T12:52:11.000Z | 2022-01-29T14:42:57.000Z | Plugins/GUI/Edit_View_Window/Edit_Tree_Model.py | bvbohnen/X4_Customizer | 6f865008690916a66a44c97331d9a2692baedb35 | [
"MIT"
] | 4 | 2019-08-01T19:09:11.000Z | 2022-01-02T01:47:42.000Z | Plugins/GUI/Edit_View_Window/Edit_Tree_Model.py | bvbohnen/X4_Customizer | 6f865008690916a66a44c97331d9a2692baedb35 | [
"MIT"
] | 6 | 2019-02-16T08:39:04.000Z | 2021-12-21T06:11:58.000Z |
from collections import OrderedDict
from PyQt5 import QtWidgets
from PyQt5.QtGui import QStandardItemModel, QStandardItem
from PyQt5.QtCore import QItemSelectionModel
class Edit_Tree_Model(QStandardItemModel):
'''
Model container for an Edit_Tree_View, to interract with
a tree view widget.
Attribute... | 34.854839 | 80 | 0.610828 | 804 | 6,483 | 4.779851 | 0.313433 | 0.033307 | 0.033307 | 0.031226 | 0.096799 | 0.053604 | 0.037471 | 0.037471 | 0.037471 | 0 | 0 | 0.000916 | 0.326701 | 6,483 | 185 | 81 | 35.043243 | 0.879496 | 0.44609 | 0 | 0.184615 | 0 | 0 | 0.010244 | 0 | 0 | 0 | 0 | 0.016216 | 0 | 1 | 0.092308 | false | 0.030769 | 0.061538 | 0 | 0.292308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd3406ee5ef14e3ac2ff38fb8a46d0147f3d1ed | 779 | py | Python | pydantic_factories/constraints/constrained_float_handler.py | lyz-code/pydantic-factories | f14b9ddae1ace236f1f502d643e51bbc2fedcd7d | [
"MIT"
] | 163 | 2021-11-13T17:32:25.000Z | 2022-03-30T12:51:00.000Z | pydantic_factories/constraints/constrained_float_handler.py | lyz-code/pydantic-factories | f14b9ddae1ace236f1f502d643e51bbc2fedcd7d | [
"MIT"
] | 33 | 2021-11-22T09:04:58.000Z | 2022-03-30T14:00:40.000Z | pydantic_factories/constraints/constrained_float_handler.py | lyz-code/pydantic-factories | f14b9ddae1ace236f1f502d643e51bbc2fedcd7d | [
"MIT"
] | 13 | 2021-11-27T00:16:27.000Z | 2022-03-30T14:03:39.000Z | from pydantic import ConstrainedFloat
from pydantic_factories.value_generators.constrained_number import (
generate_constrained_number,
get_constrained_number_range,
)
from pydantic_factories.value_generators.primitives import create_random_float
def handle_constrained_float(field: ConstrainedFloat) -> float... | 29.961538 | 97 | 0.739409 | 91 | 779 | 6.010989 | 0.384615 | 0.127971 | 0.076782 | 0.095064 | 0.131627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.188703 | 779 | 25 | 98 | 31.16 | 0.862342 | 0.046213 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd78e70db78319aec90f1c35338d3259850b986 | 1,358 | py | Python | dist-packages/duplicity/compilec.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | dist-packages/duplicity/compilec.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | dist-packages/duplicity/compilec.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU ... | 35.736842 | 72 | 0.70324 | 198 | 1,358 | 4.80303 | 0.656566 | 0.037855 | 0.041009 | 0.059937 | 0.086225 | 0.058885 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0.197349 | 1,358 | 37 | 73 | 36.702703 | 0.849541 | 0.638439 | 0 | 0 | 0 | 0 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fde33eb2d81ae8fae4bb72e53dc0a2ac5f6b06bc | 346 | py | Python | girder/app/setup.py | bnmajor/mongochemserver | aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5 | [
"BSD-3-Clause"
] | 14 | 2015-05-04T16:40:48.000Z | 2021-07-13T08:00:30.000Z | girder/app/setup.py | bnmajor/mongochemserver | aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5 | [
"BSD-3-Clause"
] | 88 | 2015-07-24T07:58:43.000Z | 2021-02-23T19:37:13.000Z | girder/app/setup.py | bnmajor/mongochemserver | aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5 | [
"BSD-3-Clause"
] | 8 | 2015-06-12T20:54:39.000Z | 2021-04-09T01:07:15.000Z | from setuptools import setup, find_packages
setup(
name='openchemistry-app',
version='0.0.1',
description='Saves configuration data for OpenChemistry app.',
packages=find_packages(),
install_requires=[
'girder>=3.0.0a5'
],
entry_points={
'girder.plugin': [
'app = app:A... | 20.352941 | 66 | 0.612717 | 37 | 346 | 5.621622 | 0.702703 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0.254335 | 346 | 16 | 67 | 21.625 | 0.77907 | 0 | 0 | 0 | 0 | 0 | 0.33526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fde355db577b92a6cc85e75b046b494adebf2f1b | 842 | py | Python | crystaldb/exception.py | Geoge-Henry/crystaldb.py | cbc4430c8447bd978ea710f7e394f76696957b10 | [
"MIT"
] | 3 | 2018-10-08T02:15:04.000Z | 2019-04-02T07:09:00.000Z | crystaldb/exception.py | CrystalSkyZ/tcsql | 897db00161955ae3e52f266507ee1922f185386a | [
"MIT"
] | 2 | 2019-04-26T11:02:32.000Z | 2020-09-01T08:14:32.000Z | crystaldb/exception.py | CrystalSkyZ/tcsql | 897db00161955ae3e52f266507ee1922f185386a | [
"MIT"
] | 1 | 2019-09-11T03:11:17.000Z | 2019-09-11T03:11:17.000Z | # !/usr/bin/python
# -*- coding:utf-8 -*-
# ***********************************************************************
# Author: Zhichang Fu
# Created Time: 2018-08-25 11:04:06
# Function:
# Exception module
# ***********************************************************************
class UnknownDB(Exception):
"""r... | 24.057143 | 75 | 0.484561 | 76 | 842 | 5.197368 | 0.697368 | 0.060759 | 0.091139 | 0.146835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023772 | 0.250594 | 842 | 34 | 76 | 24.764706 | 0.602219 | 0.45962 | 0 | 0.166667 | 0 | 0 | 0.089835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fde76d1264b3c437b537ceea74785d03a5063f62 | 557 | py | Python | bot.py | chewycharis/Pic2Text | 5ecb5c36113ce004fa1729654713641ac891ad0f | [
"MIT"
] | null | null | null | bot.py | chewycharis/Pic2Text | 5ecb5c36113ce004fa1729654713641ac891ad0f | [
"MIT"
] | null | null | null | bot.py | chewycharis/Pic2Text | 5ecb5c36113ce004fa1729654713641ac891ad0f | [
"MIT"
] | null | null | null | """
reference: https://vcokltfre.dev/tutorial/
"""
import os
from dotenv import load_dotenv
import discord
from discord.ext import commands
# load token and guild information
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = os.getenv('DISCORD_GUILD')
# enable bot to track presence of members
intents = di... | 25.318182 | 82 | 0.764811 | 78 | 557 | 5.358974 | 0.487179 | 0.057416 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127469 | 557 | 22 | 83 | 25.318182 | 0.860082 | 0.305206 | 0 | 0 | 0 | 0 | 0.103723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
fde7cec75d07e34b64b135d210afffaec3ef486d | 1,097 | py | Python | pyckmeans/knee/tests/test_knee.py | TankredO/pyckmeans | c8672b94cd75aadf6c4abc508f49107a4aedb86c | [
"MIT"
] | 9 | 2021-09-05T10:34:05.000Z | 2021-12-21T10:33:09.000Z | pyckmeans/knee/tests/test_knee.py | TankredO/pyckmeans | c8672b94cd75aadf6c4abc508f49107a4aedb86c | [
"MIT"
] | null | null | null | pyckmeans/knee/tests/test_knee.py | TankredO/pyckmeans | c8672b94cd75aadf6c4abc508f49107a4aedb86c | [
"MIT"
] | null | null | null | import pytest
import numpy
from pyckmeans.knee import KneeLocator
@pytest.mark.parametrize('direction', ['increasing', 'decreasing'])
@pytest.mark.parametrize('curve', ['convex', 'concave'])
def test_simple(direction, curve):
x = numpy.array([1.0, 2.0, 3.0 ,4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ])
y = numpy.array([... | 40.62963 | 90 | 0.687329 | 193 | 1,097 | 3.658031 | 0.253886 | 0.080737 | 0.101983 | 0.067989 | 0.525496 | 0.313031 | 0.276204 | 0.225212 | 0.225212 | 0 | 0 | 0.064482 | 0.137648 | 1,097 | 26 | 91 | 42.192308 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.195077 | 0.040109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
fdf26de41efb53c1376e0a2b41ab5837891c37e3 | 1,003 | py | Python | src/401_500/0451_sort-characters-by-frequency/sort-characters-by-frequency.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-12-18T06:08:47.000Z | 2019-12-18T06:08:47.000Z | src/401_500/0451_sort-characters-by-frequency/sort-characters-by-frequency.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-05-18T09:35:22.000Z | 2019-05-18T09:35:22.000Z | src/401_500/0451_sort-characters-by-frequency/sort-characters-by-frequency.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def frequencySort(self, s):
"""
:type s: str
:rtype: str
"""
if(not s):
return s
word_2_num = dict() # word(key) -> count(value)
num_2_word = dict() # count(key) -> word(value)
res = ""
for i in s:
... | 31.34375 | 95 | 0.460618 | 144 | 1,003 | 2.993056 | 0.298611 | 0.083527 | 0.167053 | 0.076566 | 0.046404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.420738 | 1,003 | 32 | 96 | 31.34375 | 0.703959 | 0.157527 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdf2c687102e8fc68d43374c78d6fb972fc94118 | 587 | py | Python | examples/change_font_properties.py | KonradMnich/pymeleon | a46549f3a443eaa7bcf2ccf623026f480594c23f | [
"MIT"
] | null | null | null | examples/change_font_properties.py | KonradMnich/pymeleon | a46549f3a443eaa7bcf2ccf623026f480594c23f | [
"MIT"
] | null | null | null | examples/change_font_properties.py | KonradMnich/pymeleon | a46549f3a443eaa7bcf2ccf623026f480594c23f | [
"MIT"
] | null | null | null | """Change font properties of the elements of axis."""
from pymeleon.font_modifiers import *
import matplotlib.pyplot as plt
if __name__ == "__main__":
# create a plot
fig, ax = plt.subplots()
ax.plot([0, 1], [0, 1])
ax.set_title("my title")
ax.set_ylabel("my label")
# modify the plot
modi... | 26.681818 | 78 | 0.65247 | 81 | 587 | 4.518519 | 0.604938 | 0.010929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017058 | 0.201022 | 587 | 21 | 79 | 27.952381 | 0.763326 | 0.132879 | 0 | 0 | 0 | 0 | 0.075697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdf5948f9b33b2f7af55f9918ebac82fdeb69333 | 3,008 | py | Python | pyutilib/pyro/task.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 24 | 2016-04-02T10:00:02.000Z | 2021-03-02T16:40:18.000Z | pyutilib/pyro/task.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 105 | 2015-10-29T03:29:58.000Z | 2021-12-30T22:00:45.000Z | pyutilib/pyro/task.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 22 | 2016-01-21T15:35:25.000Z | 2021-05-15T20:17:44.000Z | # _________________________________________________________________________
#
# PyUtilib: A Python utility library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the BSD License.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains ... | 37.135802 | 78 | 0.72008 | 357 | 3,008 | 5.568627 | 0.470588 | 0.034708 | 0.025151 | 0.021127 | 0.040241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009306 | 0.214096 | 3,008 | 80 | 79 | 37.6 | 0.831641 | 0.61137 | 0 | 0 | 0 | 0 | 0.152135 | 0.067616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0.12 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a9079115cd6322f380f62b5f32a10a979b163f0f | 410 | py | Python | nightingale/get_sample_size.py | idin/nightingale | 84b8f8605d8877707b9e3890bbe4523c6fa2e37d | [
"MIT"
] | null | null | null | nightingale/get_sample_size.py | idin/nightingale | 84b8f8605d8877707b9e3890bbe4523c6fa2e37d | [
"MIT"
] | null | null | null | nightingale/get_sample_size.py | idin/nightingale | 84b8f8605d8877707b9e3890bbe4523c6fa2e37d | [
"MIT"
] | null | null | null | from .get_z_score import get_z_score
def get_sample_size(population_size, confidence=0.95, error_margin=0.05, group_proportion=0.5):
# group_proportion = group_n/sample_n # 0.5 is the worst case scenario
p = group_proportion
sample_size = p*(1-p)/((error_margin/get_z_score(confidence=confidence))**2)
true_sample = ... | 34.166667 | 95 | 0.785366 | 68 | 410 | 4.397059 | 0.426471 | 0.133779 | 0.090301 | 0.240803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035519 | 0.107317 | 410 | 11 | 96 | 37.272727 | 0.781421 | 0.163415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bf376f7cc35c7a92da7e0eb1eb1764f73d3f859 | 8,199 | py | Python | src/tests/http_test.py | F-Secure/resource-api | d84ffcbc802f2bbbb06588e65f1d4798c6e4262f | [
"Apache-2.0"
] | 10 | 2015-12-21T15:54:11.000Z | 2021-03-22T19:12:18.000Z | src/tests/http_test.py | F-Secure/resource-api | d84ffcbc802f2bbbb06588e65f1d4798c6e4262f | [
"Apache-2.0"
] | 1 | 2015-02-21T10:23:00.000Z | 2015-02-21T10:23:00.000Z | src/tests/http_test.py | F-Secure/resource-api | d84ffcbc802f2bbbb06588e65f1d4798c6e4262f | [
"Apache-2.0"
] | 7 | 2015-01-13T11:49:18.000Z | 2017-05-08T06:47:30.000Z | """
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
"""
import json
import mock
from werkzeug.test import Client as BaseClient
from werkzeug.wrappers import BaseResponse
from resource_api_http.http import Application
from resource_api import errors
from .base_test import BaseTest
class Client(BaseClient)... | 38.134884 | 112 | 0.644835 | 1,059 | 8,199 | 4.786591 | 0.144476 | 0.042809 | 0.095482 | 0.121523 | 0.696784 | 0.624186 | 0.55435 | 0.523377 | 0.464786 | 0.35944 | 0 | 0.020329 | 0.21405 | 8,199 | 214 | 113 | 38.313084 | 0.766294 | 0.00683 | 0 | 0.251572 | 0 | 0.025157 | 0.153165 | 0.092071 | 0 | 0 | 0 | 0 | 0.245283 | 1 | 0.232704 | false | 0 | 0.044025 | 0 | 0.314465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bf4e049f094f73e7c38bbb39b56ba578ebb5a7a | 3,133 | py | Python | code/playground.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/playground.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/playground.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import ast, astor, codegen, dis
# def f(x):
# return 1+2+3+4+x
# def g(x):
# return x+1+2+3+4
def part_a(source):
'''
Breaking compilation into pieces - Part A
'''
print('\n\n# ---------------------------- PART A ----------------------------')
# -- STEP 1: parse code into AST
node =... | 27.243478 | 95 | 0.550271 | 412 | 3,133 | 4.092233 | 0.223301 | 0.035587 | 0.04745 | 0.033215 | 0.596679 | 0.596679 | 0.596679 | 0.558719 | 0.5172 | 0.5172 | 0 | 0.012552 | 0.237153 | 3,133 | 114 | 96 | 27.482456 | 0.692887 | 0.342483 | 0 | 0.545455 | 0 | 0 | 0.367565 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.022727 | 0.022727 | 0 | 0.113636 | 0.613636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
8bfab0a3d33d1146655ad84a5166d0e4c692d779 | 2,514 | py | Python | module2-sql-for-analysis/titanic_etl.py | andre-sav/DS-Unit-3-Sprint-2-SQL-and-Databases | a3cc6c4b239cfe8893ea36b260cf64b55fbc7b2b | [
"MIT"
] | null | null | null | module2-sql-for-analysis/titanic_etl.py | andre-sav/DS-Unit-3-Sprint-2-SQL-and-Databases | a3cc6c4b239cfe8893ea36b260cf64b55fbc7b2b | [
"MIT"
] | null | null | null | module2-sql-for-analysis/titanic_etl.py | andre-sav/DS-Unit-3-Sprint-2-SQL-and-Databases | a3cc6c4b239cfe8893ea36b260cf64b55fbc7b2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[33]:
import psycopg2
import sqlite3
import pandas as pd
from sqlalchemy import create_engine
import io
# In[2]:
dir(psycopg2)
# In[3]:
help(psycopg2.connect)
# In[11]:
dbname = 'zflmefes'
user = 'zflmefes'
password = ''
host = 'raja.db.elephantsql.com'
# In[1... | 11.914692 | 85 | 0.6607 | 329 | 2,514 | 4.914894 | 0.404255 | 0.025974 | 0.032158 | 0.037106 | 0.097712 | 0.061843 | 0.061843 | 0.061843 | 0.061843 | 0 | 0 | 0.033187 | 0.184964 | 2,514 | 210 | 86 | 11.971429 | 0.755979 | 0.099841 | 0 | 0.0625 | 0 | 0 | 0.406362 | 0.132616 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03125 | 0.109375 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3027d16a259020a0292c72406adaac0aab12661 | 461 | py | Python | favpics/urls.py | Njoro410/pichaven | 6dd569f8085b76040b13ecb8a1126e3f66e64b7f | [
"Apache-2.0",
"MIT"
] | null | null | null | favpics/urls.py | Njoro410/pichaven | 6dd569f8085b76040b13ecb8a1126e3f66e64b7f | [
"Apache-2.0",
"MIT"
] | null | null | null | favpics/urls.py | Njoro410/pichaven | 6dd569f8085b76040b13ecb8a1126e3f66e64b7f | [
"Apache-2.0",
"MIT"
] | null | null | null | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('',views.home),
path('location/<str:location>/',views.location, name='location'),
path('search/',views.search, name='search_image'),
path('copy/<str:id>/', v... | 27.117647 | 81 | 0.709328 | 61 | 461 | 5.278689 | 0.393443 | 0.093168 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140998 | 461 | 16 | 82 | 28.8125 | 0.813131 | 0 | 0 | 0 | 0 | 0 | 0.16087 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
e3035908d687a7aa56fbb37d74a4a686a61b83d3 | 618 | py | Python | geniza/corpus/migrations/0029_document_shelfmark_override.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | null | null | null | geniza/corpus/migrations/0029_document_shelfmark_override.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | 5 | 2020-09-22T17:35:24.000Z | 2020-09-22T19:45:46.000Z | geniza/corpus/migrations/0029_document_shelfmark_override.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.11 on 2022-04-21 21:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("corpus", "0028_translate_documenttype"),
]
operations = [
migrations.AddField(
model_name="document",
name="shelfma... | 25.75 | 104 | 0.576052 | 62 | 618 | 5.629032 | 0.806452 | 0.074499 | 0.120344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055422 | 0.328479 | 618 | 23 | 105 | 26.869565 | 0.785542 | 0.074434 | 0 | 0.117647 | 1 | 0 | 0.266667 | 0.047368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e30a52fb93abb7d4451cd7f210d767c37973e289 | 523 | py | Python | libra_client/lbrtypes/account_config/resources/key_rotation_capability.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | null | null | null | libra_client/lbrtypes/account_config/resources/key_rotation_capability.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | null | null | null | libra_client/lbrtypes/account_config/resources/key_rotation_capability.py | violas-core/violas-client | e8798f7d081ac218b78b81fd7eb2f8da92631a16 | [
"MIT"
] | 1 | 2022-01-05T06:49:42.000Z | 2022-01-05T06:49:42.000Z | from libra_client.canoser import Struct, RustOptional
from libra_client.move_core_types.move_resource import MoveResource
from libra_client.lbrtypes.account_config.constants import ACCOUNT_MODULE_NAME, AccountAddress
class KeyRotationCapabilityResource(Struct, MoveResource):
MODULE_NAME = ACCOUNT_MODULE_NAME
S... | 37.357143 | 94 | 0.824092 | 50 | 523 | 8.3 | 0.52 | 0.06506 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122371 | 523 | 14 | 95 | 37.357143 | 0.904139 | 0 | 0 | 0 | 0 | 0 | 0.068702 | 0.040076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e30ec8a94f31c7445ea57624e3cee33ce2d4b466 | 2,002 | py | Python | String/1417. Reformat The String.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | String/1417. Reformat The String.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | String/1417. Reformat The String.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | class Solution:
def reformat(self, s: str) -> str:
str_list = []
digit_list = []
for i in s:
if i.isdigit():
digit_list += i,
elif i.isalpha():
str_list += i,
if abs( len(str_list) - len(digit_list)) > 1:
return ""
... | 27.424658 | 95 | 0.426573 | 259 | 2,002 | 3.19305 | 0.227799 | 0.084643 | 0.062878 | 0.058041 | 0.215236 | 0.191052 | 0.16445 | 0.16445 | 0.079807 | 0 | 0 | 0.020426 | 0.437562 | 2,002 | 73 | 96 | 27.424658 | 0.714032 | 0 | 0 | 0.166667 | 0 | 0 | 0.003145 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e311f5c833179c21da569651a99c203a517ff7f0 | 2,101 | py | Python | cloudy/srv/recipe_database_psql_gis.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | 1 | 2015-04-29T13:43:36.000Z | 2015-04-29T13:43:36.000Z | cloudy/srv/recipe_database_psql_gis.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | null | null | null | cloudy/srv/recipe_database_psql_gis.py | un33k/python-cloudy | 597e55fe308521c0df25ce5ed6c859949bd5dd17 | [
"MIT"
] | 2 | 2015-06-20T16:39:11.000Z | 2016-11-18T13:58:58.000Z | import os
from fabric.api import env
from cloudy.db import *
from cloudy.sys import *
from cloudy.web import *
from cloudy.util import *
from cloudy.srv.recipe_generic_server import srv_setup_generic_server
def srv_setup_db(cfg_files, generic=True):
"""
Setup a database - Ex: (cmd:[cfg-file])
"""
c... | 36.859649 | 98 | 0.741552 | 298 | 2,101 | 4.862416 | 0.265101 | 0.041408 | 0.096618 | 0.151829 | 0.320221 | 0.169772 | 0.05245 | 0 | 0 | 0 | 0 | 0.002804 | 0.151357 | 2,101 | 56 | 99 | 37.517857 | 0.809871 | 0.077582 | 0 | 0 | 0 | 0 | 0.139656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.162162 | 0.189189 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3123b0f1ab5ec34f65da0d44acb00a028ade696 | 13,842 | py | Python | gui/settings_dialog_ui.py | tornado80/tonebox | 20b4b3eb5368c4825a0e6f9a2e630d2911be194f | [
"MIT"
] | null | null | null | gui/settings_dialog_ui.py | tornado80/tonebox | 20b4b3eb5368c4825a0e6f9a2e630d2911be194f | [
"MIT"
] | null | null | null | gui/settings_dialog_ui.py | tornado80/tonebox | 20b4b3eb5368c4825a0e6f9a2e630d2911be194f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'settings_dialog_ui.ui'
##
## Created by: Qt User Interface Compiler version 5.15.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#######... | 45.986711 | 224 | 0.720922 | 1,431 | 13,842 | 6.895178 | 0.150943 | 0.06243 | 0.128813 | 0.131955 | 0.343772 | 0.147765 | 0.102868 | 0.085639 | 0.065369 | 0.014594 | 0 | 0.02099 | 0.163632 | 13,842 | 300 | 225 | 46.14 | 0.831303 | 0.016977 | 0 | 0 | 1 | 0.005051 | 0.124404 | 0.00335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0 | 0.015152 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e313ff4fdc981352b91eeffcb46303325ef8bf0f | 274 | py | Python | tests/utils/test_gzipgen.py | yoshiori/cli | 327ff6c2dd7672546c9fd95f5fd46eebc9ff0923 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_gzipgen.py | yoshiori/cli | 327ff6c2dd7672546c9fd95f5fd46eebc9ff0923 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_gzipgen.py | yoshiori/cli | 327ff6c2dd7672546c9fd95f5fd46eebc9ff0923 | [
"Apache-2.0"
] | null | null | null | from launchable.utils.gzipgen import compress
from nose.tools import eq_
import gzip
def test_compress():
"""Basic sanity test of """
encoded=b''.join(compress([b'Hello',b' ',b'world']))
msg = gzip.decompress(encoded)
print(msg)
eq_(msg,b'Hello world')
| 24.909091 | 56 | 0.682482 | 40 | 274 | 4.6 | 0.575 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167883 | 274 | 10 | 57 | 27.4 | 0.807018 | 0.072993 | 0 | 0 | 0 | 0 | 0.089069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e32735ba1e5c73105b93db14db522c630bf5af53 | 7,038 | py | Python | gui/gui_gl_window.py | linyc74/WinduVision | c5668543c07577c1ed666aa217789ea51f08cc7a | [
"MIT"
] | null | null | null | gui/gui_gl_window.py | linyc74/WinduVision | c5668543c07577c1ed666aa217789ea51f08cc7a | [
"MIT"
] | null | null | null | gui/gui_gl_window.py | linyc74/WinduVision | c5668543c07577c1ed666aa217789ea51f08cc7a | [
"MIT"
] | 1 | 2020-02-21T17:23:50.000Z | 2020-02-21T17:23:50.000Z | from PyQt4 import QtCore, QtGui, QtOpenGL
from OpenGL import GL
class GLWindow(QtGui.QMainWindow):
def __init__(self, controller):
super(GLWindow, self).__init__()
self.controller = controller
self.setWindowTitle('3D Topography')
self.setWindowIcon(QtGui.QIcon('icons/windu_vision... | 33.836538 | 98 | 0.582552 | 928 | 7,038 | 4.329741 | 0.241379 | 0.014933 | 0.011946 | 0.009955 | 0.292434 | 0.273519 | 0.235689 | 0.210801 | 0.210801 | 0.161025 | 0 | 0.049463 | 0.299091 | 7,038 | 207 | 99 | 34 | 0.765052 | 0.131429 | 0 | 0.28169 | 0 | 0 | 0.029562 | 0.010511 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014085 | null | null | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e327b0fe6b96d16df36049f83575a2b19d181e25 | 3,172 | py | Python | src/inference.py | pchlenski/ubiome_sim | c26c90eaa187b76d0afad5cc9b555cdd0062c42c | [
"MIT"
] | 2 | 2021-08-23T01:28:49.000Z | 2022-01-19T19:49:18.000Z | src/inference.py | pchlenski/ubiome_sim | c26c90eaa187b76d0afad5cc9b555cdd0062c42c | [
"MIT"
] | null | null | null | src/inference.py | pchlenski/ubiome_sim | c26c90eaa187b76d0afad5cc9b555cdd0062c42c | [
"MIT"
] | 1 | 2022-02-17T07:17:01.000Z | 2022-02-17T07:17:01.000Z | """
Helper functions: infer gLV parameters.
"""
import numpy as np
def infer_glv_params(
abundances : np.ndarray,
interventions : np.ndarray = None,
interaction_reg : float = 0,
growth_reg : float = 0,
intervention_reg : float = 0,
dt : float = 1e-3,
pseudocount : float = 1e-5) -> (np.ndarr... | 31.405941 | 112 | 0.659836 | 418 | 3,172 | 4.921053 | 0.394737 | 0.027224 | 0.013126 | 0.024793 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01386 | 0.249369 | 3,172 | 100 | 113 | 31.72 | 0.850063 | 0.502207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e32e7ed596e2c7ab71e77a7354043b5bd86eabbd | 766 | py | Python | 139/wordbreak.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | 139/wordbreak.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | 139/wordbreak.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | from typing import List
class Solution:
def _wordbreak(self,s,wordset):
if s not in self.memoryword:
for i in range(0,len(s)):
left = s[0:i]
right = s[i::]
if right in wordset and self._wordbreak(left,wordset):
self.memoryword[s... | 29.461538 | 70 | 0.520888 | 93 | 766 | 4.258065 | 0.451613 | 0.212121 | 0.113636 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.35248 | 766 | 26 | 71 | 29.461538 | 0.794355 | 0 | 0 | 0 | 0 | 0 | 0.036506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.24 | 0.04 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e336de6ab2c10e923e52ea84d885345f704c5e32 | 515 | py | Python | src/ua/raccoon/task28/solution.py | DataArt/kiddo-tasks | 9e15241a6a3f152b4b64a345d923224450c0adee | [
"Apache-2.0"
] | null | null | null | src/ua/raccoon/task28/solution.py | DataArt/kiddo-tasks | 9e15241a6a3f152b4b64a345d923224450c0adee | [
"Apache-2.0"
] | null | null | null | src/ua/raccoon/task28/solution.py | DataArt/kiddo-tasks | 9e15241a6a3f152b4b64a345d923224450c0adee | [
"Apache-2.0"
] | null | null | null | import raccoon
raccoon.go_down(8)
raccoon.go_up(4)
raccoon.go_right()
def search_and_destroy():
destroyed = False
for i in range(0, 10):
if (raccoon.inspect(1, 0) == 2):
raccoon.wait()
raccoon.place_turret()
raccoon.go_left()
raccoon.wait(5)
... | 18.392857 | 40 | 0.584466 | 67 | 515 | 4.283582 | 0.477612 | 0.219512 | 0.146341 | 0.10453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033426 | 0.302913 | 515 | 27 | 41 | 19.074074 | 0.766017 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e339c5ea4a35c1140cc5fc7cd74bec33045181f4 | 4,644 | py | Python | bayrell_os_desktop_client/AboutDialog.py | bayrell-os/thin_desktop_client | cfca8331d65c0496cc48131fcee07c3daaeaa1af | [
"Apache-2.0"
] | null | null | null | bayrell_os_desktop_client/AboutDialog.py | bayrell-os/thin_desktop_client | cfca8331d65c0496cc48131fcee07c3daaeaa1af | [
"Apache-2.0"
] | 4 | 2021-11-23T15:18:45.000Z | 2021-11-23T15:21:11.000Z | bayrell_os_desktop_client/AboutDialog.py | bayrell-os/thin_desktop_client | cfca8331d65c0496cc48131fcee07c3daaeaa1af | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'AboutDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, ... | 73.714286 | 315 | 0.716193 | 614 | 4,644 | 5.407166 | 0.29316 | 0.089458 | 0.023193 | 0.059639 | 0.387952 | 0.387952 | 0.375904 | 0.375904 | 0.327108 | 0.327108 | 0 | 0.028848 | 0.111757 | 4,644 | 62 | 316 | 74.903226 | 0.776 | 0.06503 | 0 | 0.083333 | 1 | 0.020833 | 0.164127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.020833 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e340ac28a361539f5ff8f597333631cd887a57e1 | 380 | py | Python | small_projet/online/serv.py | ravernhe/python_random_stuff | d9dc2cd3134fc36ff761f2aa1481c4b80568d0b2 | [
"MIT"
] | null | null | null | small_projet/online/serv.py | ravernhe/python_random_stuff | d9dc2cd3134fc36ff761f2aa1481c4b80568d0b2 | [
"MIT"
] | null | null | null | small_projet/online/serv.py | ravernhe/python_random_stuff | d9dc2cd3134fc36ff761f2aa1481c4b80568d0b2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*-coding:utf-8 -*
import socket
import time
connection_principale = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connection_principale.bind(('', 12800))
connection_principale.listen(5)
connection_client, infos_connection = connection_principale.accept()
while 1:
if not infos_connectio... | 22.352941 | 73 | 0.755263 | 48 | 380 | 5.770833 | 0.625 | 0.288809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027108 | 0.126316 | 380 | 17 | 74 | 22.352941 | 0.807229 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e34158186e182f3536b7163248084736748135f0 | 426 | py | Python | WAL.py | DylanR3798/Hockey-World-Cup-Simulatation | 3751206d9bf27095699ba6eb715c28acd1612223 | [
"Apache-2.0"
] | null | null | null | WAL.py | DylanR3798/Hockey-World-Cup-Simulatation | 3751206d9bf27095699ba6eb715c28acd1612223 | [
"Apache-2.0"
] | null | null | null | WAL.py | DylanR3798/Hockey-World-Cup-Simulatation | 3751206d9bf27095699ba6eb715c28acd1612223 | [
"Apache-2.0"
] | null | null | null | Carless = Goalkeeper('Ben Carless', 68, 65, 66, 67)
Kyriakides = Outfield_Player('Dan Kyriakides', 'DF', 63, 74, 67, 63, 66, 65)
Cornick = Outfield_Player('Andrew Cornick', 'MF', 67, 66, 68, 63, 69, 65)
Brignull = Outfield_Player('Liam Brignull', 'MF', 62, 69, 65, 69, 67, 65)
Furlong = Outfield_Player('Gareth Furlo... | 60.857143 | 77 | 0.669014 | 64 | 426 | 4.390625 | 0.46875 | 0.199288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 0.15493 | 426 | 7 | 78 | 60.857143 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.187648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
e341a6ef3445b53ba5486af7aafd2841ff84580f | 4,793 | py | Python | ssl.py | jimbaker/socket-reboot | 836bdba066bfd0ea8d5e5af0d7f1164bd5be5373 | [
"Apache-1.1"
] | 3 | 2015-11-23T18:37:55.000Z | 2018-03-06T09:37:40.000Z | ssl.py | jimbaker/socket-reboot | 836bdba066bfd0ea8d5e5af0d7f1164bd5be5373 | [
"Apache-1.1"
] | null | null | null | ssl.py | jimbaker/socket-reboot | 836bdba066bfd0ea8d5e5af0d7f1164bd5be5373 | [
"Apache-1.1"
] | 2 | 2016-12-15T06:25:04.000Z | 2021-03-25T01:32:20.000Z | from io.netty.channel import ChannelInitializer
from io.netty.handler.ssl import SslHandler
from _socket import error
from _sslcerts import _get_ssl_context
CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED = range(3)
class SSLError(error): pass
# ssl.wrap_socket essentially creates a SSLEngine instance, then adds the
# ha... | 35.242647 | 124 | 0.682245 | 603 | 4,793 | 5.235489 | 0.313433 | 0.068419 | 0.039911 | 0.057016 | 0.147608 | 0.146341 | 0.119734 | 0.119734 | 0.094393 | 0.050048 | 0 | 0.000549 | 0.239516 | 4,793 | 135 | 125 | 35.503704 | 0.865569 | 0.219904 | 0 | 0.158537 | 0 | 0 | 0.05433 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | null | null | 0.02439 | 0.04878 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e349d7b05bb1203084c59cb11d2ea404690da5ab | 2,682 | py | Python | ReplaceIfs.py | Savioor/AssemblyProject | a0bf129ab686d4a88f70328e2349dd1e52a621c0 | [
"MIT"
] | null | null | null | ReplaceIfs.py | Savioor/AssemblyProject | a0bf129ab686d4a88f70328e2349dd1e52a621c0 | [
"MIT"
] | null | null | null | ReplaceIfs.py | Savioor/AssemblyProject | a0bf129ab686d4a88f70328e2349dd1e52a621c0 | [
"MIT"
] | null | null | null | import re
'''
This sneakiest code known to the 10-th grade assembly student.
Replaces all .if and .elif and .endif with proper jmp and cmp commands.
Made by Alexey Shapovalov.
'''
# Works and tested
def fileToArray(fileName: str) -> list:
file = open(fileName, "r")
retArr = []
retArr.append(file.readline()... | 29.8 | 83 | 0.514541 | 278 | 2,682 | 4.964029 | 0.327338 | 0.081159 | 0.094203 | 0.046377 | 0.346377 | 0.336232 | 0.336232 | 0.336232 | 0.267391 | 0.241304 | 0 | 0.005495 | 0.321402 | 2,682 | 89 | 84 | 30.134831 | 0.752747 | 0.067487 | 0 | 0.470588 | 0 | 0 | 0.092122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.073529 | 0.014706 | 0 | 0.102941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e34a557b2a7f69b188b87eb5c934815afcf90d8e | 1,763 | py | Python | src/compiler/test.py | tsellam/syllabus | 112d9d47715a85181bd4afb19acfdd17a895eaad | [
"MIT"
] | null | null | null | src/compiler/test.py | tsellam/syllabus | 112d9d47715a85181bd4afb19acfdd17a895eaad | [
"MIT"
] | null | null | null | src/compiler/test.py | tsellam/syllabus | 112d9d47715a85181bd4afb19acfdd17a895eaad | [
"MIT"
] | 1 | 2021-04-15T04:51:05.000Z | 2021-04-15T04:51:05.000Z | from collections import *
try:
import instabase.notebook.ipython.utils as ib
ib.import_pyfile('./interpretor.py', 'interpretor')
ib.import_pyfile('./optimizer.py', 'optimizer')
except:
pass
from interpretor import *
from optimizer import *
def cond_to_func(expr_or_func):
"""
if expr_or_func is a string, p... | 25.926471 | 103 | 0.543392 | 264 | 1,763 | 3.450758 | 0.333333 | 0.052689 | 0.087816 | 0.060373 | 0.072448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010552 | 0.301191 | 1,763 | 67 | 104 | 26.313433 | 0.728896 | 0.048213 | 0 | 0 | 0 | 0.06 | 0.261284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.12 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e354f2c0d33c298dfe30e165e989e4d7594e8a83 | 235 | py | Python | python2.7/site-packages/twisted/plugins/twisted_mail.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 4 | 2020-10-31T19:52:05.000Z | 2021-09-22T11:39:27.000Z | python2.7/site-packages/twisted/plugins/twisted_mail.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | null | null | null | python2.7/site-packages/twisted/plugins/twisted_mail.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 2 | 2020-02-27T08:28:35.000Z | 2020-09-13T12:39:26.000Z | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.scripts.mktap import _tapHelper
TwistedMail = _tapHelper(
"Twisted Mail",
"twisted.mail.tap",
"An email service",
"mail")
| 21.363636 | 54 | 0.706383 | 28 | 235 | 5.857143 | 0.785714 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.187234 | 235 | 10 | 55 | 23.5 | 0.816754 | 0.32766 | 0 | 0 | 0 | 0 | 0.309677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
e360bd8d379c26a5a4d9e7202f7e41cc5eec1658 | 2,466 | py | Python | eyes/data/stats.py | r05323028/eyes | c3b095ac5de13a4e113ee43c69ed7707526b2c97 | [
"MIT"
] | 61 | 2021-08-04T11:06:58.000Z | 2022-02-25T02:21:33.000Z | eyes/data/stats.py | r05323028/eyes | c3b095ac5de13a4e113ee43c69ed7707526b2c97 | [
"MIT"
] | 1 | 2021-11-20T13:57:39.000Z | 2021-11-20T13:57:39.000Z | eyes/data/stats.py | r05323028/eyes | c3b095ac5de13a4e113ee43c69ed7707526b2c97 | [
"MIT"
] | 9 | 2021-09-13T06:03:26.000Z | 2022-03-06T02:31:49.000Z | '''Eyes stats data module
'''
from datetime import date, datetime
from typing import Dict, List, Optional
from pydantic import BaseModel, Field
from eyes.db import stats
from eyes.type import SourceType
class MonthlySummary(BaseModel):
'''Monthly summary data container
'''
source: SourceType
total_p... | 23.941748 | 47 | 0.590835 | 268 | 2,466 | 5.298507 | 0.205224 | 0.057042 | 0.050704 | 0.061972 | 0.509155 | 0.484507 | 0.393662 | 0.371831 | 0.246479 | 0.246479 | 0 | 0 | 0.318735 | 2,466 | 102 | 48 | 24.176471 | 0.845238 | 0.130981 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.076923 | 0 | 0.584615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e368bd11e18d1fe6d781a1bbb2824a415667e6a7 | 822 | py | Python | pyrobot/vars.py | Khairulikhsn/PyroTemplate | de86cf7f8dbb7456701672ef45cb1a82fc7f95c2 | [
"MIT"
] | null | null | null | pyrobot/vars.py | Khairulikhsn/PyroTemplate | de86cf7f8dbb7456701672ef45cb1a82fc7f95c2 | [
"MIT"
] | null | null | null | pyrobot/vars.py | Khairulikhsn/PyroTemplate | de86cf7f8dbb7456701672ef45cb1a82fc7f95c2 | [
"MIT"
] | null | null | null | from os import environ
def load_var(var_name: str, def_value=None):
return environ.get(var_name, def_value)
class Config:
"""Config class for variables."""
TOKEN = load_var("TOKEN")
APP_ID = int(load_var("APP_ID"))
API_HASH = load_var("API_HASH")
OWNER_ID = int(load_var("OWNER_ID"))
PRE... | 26.516129 | 75 | 0.653285 | 118 | 822 | 4.305085 | 0.398305 | 0.110236 | 0.059055 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010886 | 0.217762 | 822 | 30 | 76 | 27.4 | 0.77916 | 0.225061 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0.052632 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3709f5cbd5e1b680cdc1f5651c790be411d0419 | 4,117 | py | Python | source/trigger.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | 3 | 2017-06-28T18:31:15.000Z | 2018-01-04T18:00:09.000Z | source/trigger.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | null | null | null | source/trigger.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | 7 | 2017-03-28T21:26:40.000Z | 2019-11-01T13:37:23.000Z | import sys
import time
import argparse
import traceback
import os
import subprocess
from pyndn import Interest
from pyndn import Data
from pyndn import Exclude
from pyndn import Name
from pyndn import Face
from pyndn import InterestFilter
from pyndn.security import KeyChain
from modules.tools.enumerate_publisher impo... | 34.024793 | 119 | 0.658246 | 442 | 4,117 | 5.932127 | 0.339367 | 0.053394 | 0.034325 | 0.020595 | 0.008391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008165 | 0.256255 | 4,117 | 120 | 120 | 34.308333 | 0.848138 | 0.17197 | 0 | 0.025974 | 0 | 0 | 0.157274 | 0.047802 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.155844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e375385f3963d217da40edffea32afeee5c53bb0 | 217 | py | Python | python/incorrect-regex.py | blog-a1/hackeRRank | 72923ee08c8759bd5a10ba6c390b6755fe2bd2e2 | [
"MIT"
] | 1 | 2021-01-13T11:52:27.000Z | 2021-01-13T11:52:27.000Z | python/incorrect-regex.py | blog-a1/hackeRRank | 72923ee08c8759bd5a10ba6c390b6755fe2bd2e2 | [
"MIT"
] | null | null | null | python/incorrect-regex.py | blog-a1/hackeRRank | 72923ee08c8759bd5a10ba6c390b6755fe2bd2e2 | [
"MIT"
] | null | null | null | import re
r = int(input())
for i in range(0,r):
s = str( input() )
if True:
try:
reg = re.compile(s)
except re.error:
print(False)
else:
print(True)
| 18.083333 | 31 | 0.447005 | 29 | 217 | 3.344828 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.428571 | 217 | 11 | 32 | 19.727273 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e377c4a129c979db8be6314aba947ef580d4c2a9 | 2,105 | py | Python | src/blog/views.py | itzhv14/Django-blog | 29df5113304ac2ca5dc4fa1b7163c6fe58c7b821 | [
"bzip2-1.0.6"
] | null | null | null | src/blog/views.py | itzhv14/Django-blog | 29df5113304ac2ca5dc4fa1b7163c6fe58c7b821 | [
"bzip2-1.0.6"
] | null | null | null | src/blog/views.py | itzhv14/Django-blog | 29df5113304ac2ca5dc4fa1b7163c6fe58c7b821 | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.views.generic import (ListView,
DetailView,
CreateView,
UpdateView,
DeleteView,
)
from .models import Post
from django.contrib.auth.models import User
def home(request... | 25.987654 | 128 | 0.745843 | 284 | 2,105 | 5.422535 | 0.352113 | 0.035065 | 0.038961 | 0.018182 | 0.294805 | 0.294805 | 0.294805 | 0.244156 | 0.244156 | 0.244156 | 0 | 0.004452 | 0.146318 | 2,105 | 80 | 129 | 26.3125 | 0.852532 | 0.132067 | 0 | 0.5 | 0 | 0 | 0.079627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0.05 | 0.083333 | 0.016667 | 0.716667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3806fec6ade126cfbe0b3dec4da58d0115ab547 | 1,518 | py | Python | 533-ReinforcementLearning/assignment4/bandit_test.py | neale/CS-program | 6fef9c39579143bde0ab5d1ec5fedc7210e55814 | [
"Unlicense"
] | 1 | 2016-10-24T13:36:23.000Z | 2016-10-24T13:36:23.000Z | 533-ReinforcementLearning/assignment4/bandit_test.py | neale/CS-program | 6fef9c39579143bde0ab5d1ec5fedc7210e55814 | [
"Unlicense"
] | null | null | null | 533-ReinforcementLearning/assignment4/bandit_test.py | neale/CS-program | 6fef9c39579143bde0ab5d1ec5fedc7210e55814 | [
"Unlicense"
] | null | null | null |
import sys
import numpy as np
from bandit import Bandit
from banditmethods import BanditMethods, IncrementalUniform, EGreedy, UCB
def b1():
arms = 10
rewards = [
[0.05, 1.], [0.05, 1.], [0.05, 1.],
[0.05, 1.], [0.05, 1.], [0.05, 1.],
[0.05, 1.], [0.05, 1.], [0.05, 1.],
[1., .1]
]
rewards =... | 22.656716 | 73 | 0.585639 | 227 | 1,518 | 3.792952 | 0.295154 | 0.031359 | 0.041812 | 0.046458 | 0.235772 | 0.146341 | 0.041812 | 0.041812 | 0.041812 | 0.041812 | 0 | 0.057778 | 0.258893 | 1,518 | 66 | 74 | 23 | 0.707556 | 0.017787 | 0 | 0.1 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3809c3880439ddb77d4f8ffa4f52d773f412832 | 2,100 | py | Python | src/schema_validator.py | pyerbiz/pandas_schema_validation | 1e43b082421e24f0eec12c3bc8d884f37e882558 | [
"MIT"
] | null | null | null | src/schema_validator.py | pyerbiz/pandas_schema_validation | 1e43b082421e24f0eec12c3bc8d884f37e882558 | [
"MIT"
] | null | null | null | src/schema_validator.py | pyerbiz/pandas_schema_validation | 1e43b082421e24f0eec12c3bc8d884f37e882558 | [
"MIT"
] | null | null | null | import pandas as pd
class schema_validator:
validation_result = dict()
def __init__(self, df: pd.DataFrame(), parsed_schema: str):
self.parsed_schema = parsed_schema
self.df = df
def column_name_validate(self):
df_cols = sorted(list(self.df.columns))
schema_cols = sorte... | 30.434783 | 80 | 0.642381 | 240 | 2,100 | 5.308333 | 0.279167 | 0.037677 | 0.062794 | 0.084772 | 0.039246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000654 | 0.272381 | 2,100 | 68 | 81 | 30.882353 | 0.833115 | 0.019524 | 0 | 0.085106 | 0 | 0 | 0.039397 | 0.012646 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.12766 | false | 0.042553 | 0.021277 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e384af653c9dc560f60987a1eabf0a4f44272858 | 899 | py | Python | config.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | null | null | null | config.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | null | null | null | config.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | 1 | 2020-03-29T11:20:40.000Z | 2020-03-29T11:20:40.000Z | class BaseConfig(object):
DEBUG = False
TESTING = False
SECRET_KEY = 'this-really-needs-to-be-changed'
MONGO_USERNAME = 'username'
MONGO_PASSWORD = 'password'
MONGO_URI = f'mongodb://{MONGO_USERNAME}:{MONGO_PASSWORD}@localhost:27017/photoseleven'
TOKEN_EXPIRATION_DAYS = 365
UPLOADS_DIR =... | 29.966667 | 96 | 0.707453 | 103 | 899 | 5.961165 | 0.504854 | 0.084691 | 0.102606 | 0.052117 | 0.18241 | 0.18241 | 0.18241 | 0.18241 | 0.18241 | 0.18241 | 0 | 0.026667 | 0.16574 | 899 | 29 | 97 | 31 | 0.792 | 0 | 0 | 0 | 0 | 0 | 0.36485 | 0.276974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.217391 | 0 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3886329ca1edb32999a070c0ac2eadfa39fca5d | 469 | py | Python | a_50/1/python.py | kmr-kmr/1k_problems | 93a3180743a4d2144f6f8c3c3b04a88f4332d322 | [
"Unlicense"
] | null | null | null | a_50/1/python.py | kmr-kmr/1k_problems | 93a3180743a4d2144f6f8c3c3b04a88f4332d322 | [
"Unlicense"
] | 1 | 2019-03-24T05:53:08.000Z | 2019-03-24T05:53:08.000Z | a_50/1/python.py | kmr-kmr/1k_problems | 93a3180743a4d2144f6f8c3c3b04a88f4332d322 | [
"Unlicense"
] | 1 | 2019-03-24T05:02:42.000Z | 2019-03-24T05:02:42.000Z | """
Simple solution
Step-1: Find the sum (s) of all the values in array[]
Step-2: Replace every arra[i] with s/arra[i]
"""
def solution(input_list):
product = 1
for i in input_list:
product *= i
for i in range(len(input_list)):
input_list[i] = int(product / input_list[i])
if __n... | 19.541667 | 55 | 0.609808 | 75 | 469 | 3.586667 | 0.493333 | 0.301115 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022663 | 0.247335 | 469 | 23 | 56 | 20.391304 | 0.739377 | 0.245203 | 0 | 0 | 0 | 0 | 0.073965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b5135b1650526be904a20d5193a6ff7f9e0c746 | 2,216 | py | Python | src/views/botones/configuraciones/avanzada/inside/agregar/boton_agregar.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | 3 | 2022-02-27T02:15:52.000Z | 2022-02-28T15:16:40.000Z | src/views/botones/configuraciones/avanzada/inside/agregar/boton_agregar.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | null | null | null | src/views/botones/configuraciones/avanzada/inside/agregar/boton_agregar.py | julianVelandia/UI_RETEDECON | 87b707f5c1553446fc92265db9da50f292e2f2d1 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
#locals
from .funciones_agregar import Funcion_agregar
from src.controler.QLineClick import QLineEditClick
class Boton_agregar(Funcion_agregar):
def boton_agregar_username(self, widget):
self.agregar_username = QLineEditClic... | 50.363636 | 89 | 0.703971 | 260 | 2,216 | 5.857692 | 0.292308 | 0.187787 | 0.088641 | 0.041366 | 0.186474 | 0.186474 | 0.172685 | 0.153644 | 0.153644 | 0.049902 | 0 | 0.02027 | 0.198556 | 2,216 | 44 | 90 | 50.363636 | 0.837275 | 0.03565 | 0 | 0.052632 | 0 | 0 | 0.036099 | 0.016409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.263158 | 0.131579 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b5e356fd12983c3084f82388e730853668a5a3a | 919 | py | Python | quedex_api/market_stream_client.py | mchalapuk/python-api | 370e3536da69de4b26c241fb9ff32aa0f1f895f3 | [
"Apache-2.0"
] | 17 | 2017-07-13T12:06:01.000Z | 2022-02-07T01:37:36.000Z | quedex_api/market_stream_client.py | mchalapuk/python-api | 370e3536da69de4b26c241fb9ff32aa0f1f895f3 | [
"Apache-2.0"
] | 17 | 2017-07-13T09:09:40.000Z | 2022-02-11T03:38:06.000Z | quedex_api/market_stream_client.py | mchalapuk/python-api | 370e3536da69de4b26c241fb9ff32aa0f1f895f3 | [
"Apache-2.0"
] | 10 | 2017-07-12T17:56:02.000Z | 2020-02-21T12:58:32.000Z | from autobahn.twisted.websocket import WebSocketClientFactory, WebSocketClientProtocol
class MarketStreamClientProtocol(WebSocketClientProtocol):
def onOpen(self):
self.factory.market_stream.on_ready()
def onMessage(self, payload, isbinary):
# explicit decode for Python 3 compatibility
self.factory.m... | 36.76 | 110 | 0.772579 | 101 | 919 | 6.811881 | 0.465347 | 0.156977 | 0.098837 | 0.133721 | 0.145349 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002509 | 0.132753 | 919 | 24 | 111 | 38.291667 | 0.860728 | 0.045702 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b62d47d29add0d49f96a6f03898d43dae09906e | 1,015 | py | Python | publications/migrations/0008_auto_20201001_1911.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | null | null | null | publications/migrations/0008_auto_20201001_1911.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 5 | 2021-04-08T21:32:17.000Z | 2021-09-22T19:29:23.000Z | publications/migrations/0008_auto_20201001_1911.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 1 | 2021-07-25T22:40:18.000Z | 2021-07-25T22:40:18.000Z | # Generated by Django 3.1.1 on 2020-10-01 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publications', '0007_auto_20201001_1909'),
]
operations = [
migrations.AlterField(
model_name='animal',
name='castra... | 35 | 155 | 0.569458 | 107 | 1,015 | 5.28972 | 0.429907 | 0.106007 | 0.132509 | 0.15371 | 0.630742 | 0.630742 | 0.424028 | 0.424028 | 0.424028 | 0.424028 | 0 | 0.048493 | 0.248276 | 1,015 | 28 | 156 | 36.25 | 0.693316 | 0.044335 | 0 | 0.409091 | 1 | 0 | 0.188017 | 0.02376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b632d7a4b3db40f4614fa53902a4450e5479737 | 3,229 | py | Python | src/pizzas/api/views.py | friskycodeur/GharChalo-Task | 9fa4fe871e5e83a2dc2ab3b50aaa9f75b0d49cc8 | [
"MIT"
] | null | null | null | src/pizzas/api/views.py | friskycodeur/GharChalo-Task | 9fa4fe871e5e83a2dc2ab3b50aaa9f75b0d49cc8 | [
"MIT"
] | null | null | null | src/pizzas/api/views.py | friskycodeur/GharChalo-Task | 9fa4fe871e5e83a2dc2ab3b50aaa9f75b0d49cc8 | [
"MIT"
] | null | null | null | from rest_framework import generics
from django.http import HttpResponse
from ..models import Pizza, Size, Topping
from django_filters.rest_framework import DjangoFilterBackend
from .serializers import (
PizzaSerializer,
SizeSerializer,
ToppingSerializer,
)
from rest_framework import status
from rest_framew... | 31.970297 | 78 | 0.69743 | 343 | 3,229 | 6.431487 | 0.236152 | 0.049864 | 0.097915 | 0.063463 | 0.635539 | 0.585222 | 0.544424 | 0.544424 | 0.544424 | 0.544424 | 0 | 0.013121 | 0.221121 | 3,229 | 100 | 79 | 32.29 | 0.864016 | 0.069991 | 0 | 0.485294 | 0 | 0 | 0.004419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.102941 | 0 | 0.602941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8b6358e9fc9ead80fb6bd6f4b4685c74e6089f74 | 2,048 | py | Python | MSRMiningChallenge2017/coverage/coverage_calcuration.py | hideshis/scripts_for_research | f633bdef0f9b959d7b18c8b95f169306eb8bb50d | [
"MIT"
] | null | null | null | MSRMiningChallenge2017/coverage/coverage_calcuration.py | hideshis/scripts_for_research | f633bdef0f9b959d7b18c8b95f169306eb8bb50d | [
"MIT"
] | null | null | null | MSRMiningChallenge2017/coverage/coverage_calcuration.py | hideshis/scripts_for_research | f633bdef0f9b959d7b18c8b95f169306eb8bb50d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This script parses index.html files created by Jacoco and calcurate line coverage.
"""
import subprocess
import sys
import os
import urllib2
import lxml.html
import csv
from lxml import etree
f_write = open('coverage_info.csv', 'w')
csvWriter = csv.writer(f_write, lineterminator='\n')
f_rea... | 34.711864 | 121 | 0.697266 | 292 | 2,048 | 4.650685 | 0.335616 | 0.072165 | 0.070692 | 0.059647 | 0.452135 | 0.377025 | 0.377025 | 0.325479 | 0.325479 | 0.325479 | 0 | 0.013393 | 0.125 | 2,048 | 58 | 122 | 35.310345 | 0.74442 | 0.010254 | 0 | 0.358491 | 0 | 0 | 0.144186 | 0.095607 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.132075 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b683edf5c39c432160a566513217820e22241b5 | 352 | py | Python | examples/example.py | bitme/python-bitme | 56a8511ad90aa7358aa05e2db71c86038542dec8 | [
"MIT"
] | 1 | 2015-11-05T14:28:11.000Z | 2015-11-05T14:28:11.000Z | examples/example.py | bitme/python-bitme | 56a8511ad90aa7358aa05e2db71c86038542dec8 | [
"MIT"
] | null | null | null | examples/example.py | bitme/python-bitme | 56a8511ad90aa7358aa05e2db71c86038542dec8 | [
"MIT"
] | null | null | null | import sys, os
pyscript_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(pyscript_dir, '..'))
from bitme import BitmeAPI
# Read keys
with open('APIKEY', 'r') as f:
API_KEY = f.read().strip()
with open('APISECRET', 'r') as f:
API_SECRET = f.read().strip()
api = BitmeAPI(API_KEY, A... | 25.142857 | 58 | 0.693182 | 57 | 352 | 4.105263 | 0.508772 | 0.076923 | 0.034188 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133523 | 352 | 13 | 59 | 27.076923 | 0.767213 | 0.025568 | 0 | 0 | 0 | 0 | 0.055718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6b5e7ca5ec5ea36ff0d53e9571610a1c0bbdb7 | 2,021 | py | Python | smart_data/include.py | pkoscielny/smart_data | b7dc6844aca64a07179ab95b50c107b3cf8c18a5 | [
"MIT"
] | null | null | null | smart_data/include.py | pkoscielny/smart_data | b7dc6844aca64a07179ab95b50c107b3cf8c18a5 | [
"MIT"
] | null | null | null | smart_data/include.py | pkoscielny/smart_data | b7dc6844aca64a07179ab95b50c107b3cf8c18a5 | [
"MIT"
] | null | null | null | from re import compile as re_compile
# Taken from re.py (Python 3.6).
_pattern_type = type(re_compile("", 0))
# TODO: add optional parameter: find_in_list (True, False; default False).
# TODO: think about yield version instead of recursive version of 'include'.
def include(got, expected, path=''):
def _eq_types... | 33.683333 | 111 | 0.623454 | 272 | 2,021 | 4.474265 | 0.345588 | 0.073952 | 0.061627 | 0.065735 | 0.10682 | 0.10682 | 0 | 0 | 0 | 0 | 0 | 0.002031 | 0.269174 | 2,021 | 59 | 112 | 34.254237 | 0.821936 | 0.247402 | 0 | 0.117647 | 0 | 0 | 0.106693 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6cd623d731b85246d8318303ea3bbc8be4ab32 | 1,652 | py | Python | data_prepaire/post_prepaire_all_parallel.py | blindmotion/detector | e833896ef0f78f5b9672e24ffd7062c7ffec783a | [
"BSD-3-Clause"
] | 13 | 2015-04-12T22:49:57.000Z | 2021-01-02T13:26:29.000Z | data_prepaire/post_prepaire_all_parallel.py | blindmotion/detector | e833896ef0f78f5b9672e24ffd7062c7ffec783a | [
"BSD-3-Clause"
] | 1 | 2018-03-28T14:45:50.000Z | 2018-03-28T15:22:07.000Z | data_prepaire/post_prepaire_all_parallel.py | blindmotion/detector | e833896ef0f78f5b9672e24ffd7062c7ffec783a | [
"BSD-3-Clause"
] | 5 | 2015-04-13T02:28:46.000Z | 2018-05-08T02:49:26.000Z | #!/usr/bin/python
# Takes data generated by prepaire.py for several days and generates
# one mat file for further model training
import os
BASE_PATH='/home/lamerman/work/ml/BlindMotionProject'
WORK_PATH='/home/lamerman/work/ml/BlindMotionProject/workspace'
NUM_EL_GYR_ACC=20
NUM_EL_SPEED=5
datesTrain = [
('2014... | 27.533333 | 75 | 0.657385 | 244 | 1,652 | 4.307377 | 0.385246 | 0.175071 | 0.091342 | 0.091342 | 0.500476 | 0.489058 | 0.405328 | 0.405328 | 0.405328 | 0.254995 | 0 | 0.183803 | 0.140436 | 1,652 | 59 | 76 | 28 | 0.556338 | 0.083535 | 0 | 0.146341 | 1 | 0 | 0.360504 | 0.15507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6d58ee5519631bd84956b71ae0ed1d971f4250 | 1,427 | py | Python | util/security/crypto.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | util/security/crypto.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | util/security/crypto.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import base64
from cryptography.fernet import Fernet, InvalidToken
def encrypt_string(string, key):
"""
Encrypts a string with the specified key.
The key must be 32 raw bytes.
"""
f = Fernet(key)
# Fernet() works only on byte objects. Convert the string to bytes.
unencrypted_bytes = str... | 29.729167 | 89 | 0.680448 | 194 | 1,427 | 4.93299 | 0.42268 | 0.025078 | 0.031348 | 0.045977 | 0.225705 | 0.225705 | 0.225705 | 0.225705 | 0.225705 | 0.225705 | 0 | 0.005587 | 0.247372 | 1,427 | 47 | 90 | 30.361702 | 0.885475 | 0.323756 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6f153b2877de121e83eb5c81839db5866afe38 | 125 | py | Python | 2 semester/PW/Coursera/Python/2 Week/27.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-02-06T17:50:25.000Z | 2022-02-06T17:50:25.000Z | 2 semester/PW/Coursera/Python/2 Week/27.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | null | null | null | 2 semester/PW/Coursera/Python/2 Week/27.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-03-02T06:45:06.000Z | 2022-03-02T06:45:06.000Z | n = int(input())
i = 1
print(i, end=" ")
while True:
if i * 2 > n:
break
print(i * 2, end=" ")
i *= 2
| 10.416667 | 25 | 0.408 | 21 | 125 | 2.428571 | 0.571429 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.392 | 125 | 11 | 26 | 11.363636 | 0.618421 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
8b73053a7e54427108a3dad9b6294071f14cf1a1 | 14,995 | py | Python | nmrglue/analysis/lineshapes1d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | 1 | 2019-04-22T06:08:13.000Z | 2019-04-22T06:08:13.000Z | nmrglue/analysis/lineshapes1d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | null | null | null | nmrglue/analysis/lineshapes1d.py | thegooglecodearchive/nmrglue | 34ffb5247f457c19b93c584e048df4042dea0482 | [
"BSD-3-Clause"
] | null | null | null | """
lineshapes1d.py One-dimensional lineshape functions and classes
"""
import numpy as np
import scipy.special # needed for complex error function (wo
pi = np.pi
####################################
# 1D lineshape simulator functions #
####################################
# Gaussian (normal) lineshape simulator ... | 29.116505 | 80 | 0.61067 | 2,212 | 14,995 | 4.077306 | 0.121609 | 0.013638 | 0.031046 | 0.035481 | 0.658388 | 0.586761 | 0.527442 | 0.478767 | 0.475441 | 0.460361 | 0 | 0.023491 | 0.276092 | 14,995 | 514 | 81 | 29.173152 | 0.80737 | 0.148383 | 0 | 0.434783 | 0 | 0 | 0.032847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01087 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b74525a5bbaaf21ded35fec0e8338071bddd8d1 | 3,378 | py | Python | Curious Course on Coroutines and Concurrency by David Beazley/cosax_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | 1 | 2018-03-25T04:04:36.000Z | 2018-03-25T04:04:36.000Z | Curious Course on Coroutines and Concurrency by David Beazley/cosax_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | null | null | null | Curious Course on Coroutines and Concurrency by David Beazley/cosax_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | null | null | null | #!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
An example showing how to dispatch SAX events into a pipeline of coroutines.
"""
import xml.sax
from typing import Coroutine
from coroutine import coroutine
from cosax import EventHandler
@coroutine
def buses_to_dicts(target: Coroutine):
"""
A coroutine tha... | 31.277778 | 80 | 0.620189 | 392 | 3,378 | 5.270408 | 0.385204 | 0.082285 | 0.081317 | 0.026137 | 0.170862 | 0.061955 | 0.032914 | 0.032914 | 0 | 0 | 0 | 0.244808 | 0.258733 | 3,378 | 107 | 81 | 31.570093 | 0.580272 | 0.493487 | 0 | 0.22 | 0 | 0 | 0.099875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.16 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
8b7859334e799675aaeb737fff7e5314c9cf8fca | 780 | py | Python | mathematical-plotting-matplotlib/surface-and-contour-plots.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | 1 | 2021-01-16T21:42:42.000Z | 2021-01-16T21:42:42.000Z | mathematical-plotting-matplotlib/surface-and-contour-plots.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | null | null | null | mathematical-plotting-matplotlib/surface-and-contour-plots.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | null | null | null | """
This module illustrates how to generate a three-dimensional plot and a
contour plot.
For the example, the f(x,y) = x**2 * y**3 will be reproduced.
"""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
X = np.linspace(-2, 2)
Y = np.linspace(-1, 1)
x, y = np.meshgrid(X, Y)
z = x... | 21.666667 | 71 | 0.667949 | 148 | 780 | 3.452703 | 0.398649 | 0.068493 | 0.117417 | 0.146771 | 0.248532 | 0.172211 | 0.172211 | 0.172211 | 0.172211 | 0.172211 | 0 | 0.020864 | 0.139744 | 780 | 35 | 72 | 22.285714 | 0.740686 | 0.189744 | 0 | 0.285714 | 1 | 0 | 0.13141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b7a107de26e8295e86f551778a7254a4950730c | 579 | py | Python | team_builder/accounts/migrations/0012_auto_20180320_2104.py | squadran2003/Social-Team-Builder | 08fdab7cf176de0daf38078cd9fcd5f17501cef8 | [
"MIT"
] | null | null | null | team_builder/accounts/migrations/0012_auto_20180320_2104.py | squadran2003/Social-Team-Builder | 08fdab7cf176de0daf38078cd9fcd5f17501cef8 | [
"MIT"
] | null | null | null | team_builder/accounts/migrations/0012_auto_20180320_2104.py | squadran2003/Social-Team-Builder | 08fdab7cf176de0daf38078cd9fcd5f17501cef8 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-20 21:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0011_auto_20180320_2040'),
]
operations = [
migrations.RemoveField(
model_name='userimage',
name='user',... | 22.269231 | 70 | 0.554404 | 54 | 579 | 5.833333 | 0.740741 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079082 | 0.322971 | 579 | 25 | 71 | 23.16 | 0.72449 | 0.07772 | 0 | 0.157895 | 1 | 0 | 0.131579 | 0.043233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b7bfded56c490c9f42219e864e21308e8a262c7 | 2,296 | py | Python | chert/parsers.py | mahmoud/chert | 0fb01269b71589dfeb6f0373097fad46b0c234b2 | [
"BSD-3-Clause"
] | 19 | 2016-05-21T09:04:37.000Z | 2021-08-30T15:50:06.000Z | chert/parsers.py | mahmoud/chert | 0fb01269b71589dfeb6f0373097fad46b0c234b2 | [
"BSD-3-Clause"
] | 2 | 2017-06-15T18:47:30.000Z | 2017-07-17T07:16:18.000Z | chert/parsers.py | mahmoud/chert | 0fb01269b71589dfeb6f0373097fad46b0c234b2 | [
"BSD-3-Clause"
] | 2 | 2020-06-17T18:07:49.000Z | 2020-12-18T08:26:07.000Z |
import re
import yaml
from boltons.dictutils import OMD
ENTRY_PARTS_PARSERS = {}
def _init():
ENTRY_PARTS_PARSERS['default'] = parse_entry_parts
_part_sep_re = re.compile(b'^---(?:\r\n?|\n)', flags=re.MULTILINE)
#class EntryLoader(object):
# entry_readers = {'---': lambda: False}
# entry_types = {}
... | 27.011765 | 77 | 0.622822 | 274 | 2,296 | 5.051095 | 0.39781 | 0.043353 | 0.049133 | 0.034682 | 0.028902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001793 | 0.271341 | 2,296 | 84 | 78 | 27.333333 | 0.825463 | 0.100174 | 0 | 0.089286 | 0 | 0 | 0.102527 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.089286 | false | 0.035714 | 0.053571 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b7f954219ea0c6256166358b176d3c46e145ae1 | 14,187 | py | Python | modules/models.py | HMEIatJHU/SelectiveGeneration | 925397b19727ad71628567df57f45f29f6e7e827 | [
"MIT"
] | 14 | 2016-11-07T09:27:44.000Z | 2020-10-16T02:28:07.000Z | modules/models.py | HMEIatJHU/SelectiveGeneration | 925397b19727ad71628567df57f45f29f6e7e827 | [
"MIT"
] | 2 | 2018-04-06T19:29:51.000Z | 2018-04-12T10:16:30.000Z | modules/models.py | HMEIatJHU/SelectiveGeneration | 925397b19727ad71628567df57f45f29f6e7e827 | [
"MIT"
] | 8 | 2016-11-14T16:10:43.000Z | 2020-04-20T11:29:47.000Z | # -*- coding: utf-8 -*-
"""
Here are the models
Sel Gen models in NAACL 2016 paper
@author: hongyuan
"""
import pickle
import time
import numpy
import theano
from theano import sandbox
import theano.tensor as tensor
import os
import scipy.io
from collections import defaultdict
from theano.tensor.shared_randomstreams... | 31.738255 | 82 | 0.498344 | 1,638 | 14,187 | 3.986569 | 0.102564 | 0.067534 | 0.086371 | 0.049005 | 0.54977 | 0.520827 | 0.465237 | 0.346248 | 0.319296 | 0.229096 | 0 | 0.014728 | 0.401776 | 14,187 | 446 | 83 | 31.809417 | 0.754684 | 0.009234 | 0 | 0.255208 | 0 | 0 | 0.03758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028646 | null | null | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b88dac5638d402d83e9c54c19b3c0e3af68e5bf | 3,544 | py | Python | coldtype/color/color.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | coldtype/color/color.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | coldtype/color/color.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | from coldtype.color.html import NAMED_COLORS
# inspired by https://github.com/xav/Grapefruit/blob/master/grapefruit.py
# but more shorthand-oriented
def hue2rgb(n1, n2=None, h=None):
h %= 6.0
if h < 1.0:
return n1 + ((n2-n1) * h)
if h < 3.0:
return n2
if h < 4.0:
return n1 + ... | 26.447761 | 102 | 0.497178 | 596 | 3,544 | 2.894295 | 0.171141 | 0.012754 | 0.017391 | 0.028986 | 0.228406 | 0.16 | 0.142609 | 0.121739 | 0.073043 | 0.042899 | 0 | 0.052052 | 0.333239 | 3,544 | 133 | 103 | 26.646617 | 0.677952 | 0.027935 | 0 | 0.09901 | 0 | 0 | 0.02731 | 0.012202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178218 | false | 0 | 0.009901 | 0.108911 | 0.425743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8b92366f8d6b2143fc2f01dfce9383efb737d7e6 | 3,480 | py | Python | prysm/seidel.py | colour-science/prysm | 6673eaada6766f4debd910c445741accfc25aac2 | [
"MIT"
] | 3 | 2018-12-09T08:47:53.000Z | 2019-04-02T01:59:31.000Z | prysm/seidel.py | colour-science/prysm | 6673eaada6766f4debd910c445741accfc25aac2 | [
"MIT"
] | null | null | null | prysm/seidel.py | colour-science/prysm | 6673eaada6766f4debd910c445741accfc25aac2 | [
"MIT"
] | 3 | 2019-04-02T01:59:33.000Z | 2021-09-25T01:49:32.000Z | ''' A repository of seidel aberration descriptions used to model pupils of
optical systems.
'''
from functools import lru_cache
import numpy as np
from prysm.conf import config
from prysm.pupil import Pupil
from prysm.mathops import cos
class Seidel(Pupil):
'''Seidel pupil description
Properties:
I... | 29.243697 | 83 | 0.579023 | 429 | 3,480 | 4.60373 | 0.440559 | 0.016203 | 0.016203 | 0.023291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010495 | 0.315517 | 3,480 | 118 | 84 | 29.491525 | 0.81864 | 0.491379 | 0 | 0 | 0 | 0 | 0.063534 | 0.015222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.076923 | 0.128205 | 0.025641 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b96e2081e0bf9576b41ccf35c47dcfcb0472796 | 219 | py | Python | wawhfd/constants.py | calebrash/wawhfd | 1b060eda6f6e7dbde6dd222d47ca5f04768ed403 | [
"MIT"
] | 1 | 2018-01-26T06:16:34.000Z | 2018-01-26T06:16:34.000Z | wawhfd/constants.py | calebrash/wawhfd | 1b060eda6f6e7dbde6dd222d47ca5f04768ed403 | [
"MIT"
] | null | null | null | wawhfd/constants.py | calebrash/wawhfd | 1b060eda6f6e7dbde6dd222d47ca5f04768ed403 | [
"MIT"
] | null | null | null | DATE_STRING_FORMAT = '%Y-%m-%d'
COLLOQUIAL_DATE_LOOKUP = (
'Today',
'Tomorrow',
)
WEEKDAY_LOOKUP = (
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
)
| 12.882353 | 31 | 0.547945 | 20 | 219 | 5.75 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26484 | 219 | 16 | 32 | 13.6875 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.324201 | 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 | 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 | 1 |
8b9ddb68613fd2c6933e284476ff75959b4ae0f0 | 367 | py | Python | bot/DataBase/models/BookMark.py | Amirioelmos/zekranehbot | 0868cafa74059814923dec90c0b488ff747ada52 | [
"MIT"
] | 1 | 2020-04-13T04:46:54.000Z | 2020-04-13T04:46:54.000Z | bot/DataBase/models/BookMark.py | Amirioelmos/zekranehbot | 0868cafa74059814923dec90c0b488ff747ada52 | [
"MIT"
] | null | null | null | bot/DataBase/models/BookMark.py | Amirioelmos/zekranehbot | 0868cafa74059814923dec90c0b488ff747ada52 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String
from bot.DataBase.models.base import Base
class BookMark(Base):
__tablename__ = "bookmark"
id = Column(Integer, primary_key=True)
peer_id = Column(String)
page_number = Column(Integer)
def __init__(self, peer_id, page_number):
self.peer_id = ... | 26.214286 | 46 | 0.713896 | 49 | 367 | 5 | 0.469388 | 0.097959 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201635 | 367 | 13 | 47 | 28.230769 | 0.836177 | 0 | 0 | 0 | 0 | 0 | 0.021798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
8baf2155bb6a24bb482635731312d501a89b7a18 | 1,305 | py | Python | ouroboros/image.py | dannysauer/ouroboros | 1d1cf3bacfc24b1a5fba3a12bfa9cf87abbb72a5 | [
"MIT"
] | null | null | null | ouroboros/image.py | dannysauer/ouroboros | 1d1cf3bacfc24b1a5fba3a12bfa9cf87abbb72a5 | [
"MIT"
] | null | null | null | ouroboros/image.py | dannysauer/ouroboros | 1d1cf3bacfc24b1a5fba3a12bfa9cf87abbb72a5 | [
"MIT"
] | null | null | null | from os import environ
import logging
from docker.errors import DockerException
log = logging.getLogger(__name__)
def check_credentials():
"""Returns dict of credentials if environment variable 'REPO_USER' and 'REPO_PASS' are set"""
if environ.get('REPO_USER') and environ.get('REPO_PASS'):
return {'u... | 32.625 | 97 | 0.688889 | 181 | 1,305 | 4.751381 | 0.41989 | 0.089535 | 0.065116 | 0.055814 | 0.109302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.183908 | 1,305 | 39 | 98 | 33.461538 | 0.802817 | 0.166284 | 0 | 0 | 0 | 0 | 0.200562 | 0.049672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.115385 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb105575320a9c8d3c487daa7841089944d68ec | 6,916 | py | Python | web/modules/account/controllers/update_member.py | devetek/Omni | 3a0676f307bd1814da925e1a184743c517ec9307 | [
"Apache-2.0"
] | 4 | 2019-04-30T11:07:11.000Z | 2019-06-10T03:03:37.000Z | web/modules/account/controllers/update_member.py | devetek/Omni | 3a0676f307bd1814da925e1a184743c517ec9307 | [
"Apache-2.0"
] | 8 | 2019-07-17T17:13:09.000Z | 2022-02-26T15:40:01.000Z | web/modules/account/controllers/update_member.py | devetek/Omni | 3a0676f307bd1814da925e1a184743c517ec9307 | [
"Apache-2.0"
] | null | null | null | """[Member update api]
Returns:
[dict] -- [data, status, message]
TODO:
- Create input validator
- Standardize error message
- Optimize db query validation
- Move email/phone quota to feature and configurable
- Split update/save data [app, email, phone] to db, to make easy on debugging
- Log error to Spirit Vesse... | 47.696552 | 145 | 0.637652 | 829 | 6,916 | 5.025332 | 0.190591 | 0.049928 | 0.043687 | 0.066251 | 0.393183 | 0.326452 | 0.215554 | 0.191071 | 0.120499 | 0.120499 | 0 | 0.002394 | 0.275159 | 6,916 | 144 | 146 | 48.027778 | 0.828646 | 0.062753 | 0 | 0.020202 | 0 | 0 | 0.1644 | 0.003245 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.020202 | false | 0.010101 | 0.080808 | 0 | 0.222222 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bc7c27ec0e2030a910c93253951429a51c2fad9 | 1,312 | py | Python | src/ixdat/readers/chi.py | matenestor/ixdat | ac3ff81f5c92f2d4bbede5fc9fc5a1df2a5eb34f | [
"MIT"
] | null | null | null | src/ixdat/readers/chi.py | matenestor/ixdat | ac3ff81f5c92f2d4bbede5fc9fc5a1df2a5eb34f | [
"MIT"
] | 1 | 2022-03-31T09:54:40.000Z | 2022-03-31T09:54:40.000Z | src/ixdat/readers/chi.py | matenestor/ixdat | ac3ff81f5c92f2d4bbede5fc9fc5a1df2a5eb34f | [
"MIT"
] | null | null | null | """A reader for text exports from the RGA Software of Stanford Instruments"""
from EC_MS import Dataset
from .ec_ms_pkl import measurement_from_ec_ms_dataset
from ..techniques import ECMeasurement
CHI_LEGACY_ALIASES = {
# TODO: These should change to what Zilien calls them. Right now the alias's
# reflect ... | 32.8 | 85 | 0.651677 | 183 | 1,312 | 4.47541 | 0.486339 | 0.039072 | 0.07326 | 0.046398 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257622 | 1,312 | 39 | 86 | 33.641026 | 0.840862 | 0.354421 | 0 | 0 | 0 | 0 | 0.094458 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bcaf55f33fcdfad2bf856a6fd92be33e657a1d4 | 15,201 | py | Python | BatchProcesses/eche_multi_process_oer_pm69subspaces_v1.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | 5 | 2017-03-24T21:05:22.000Z | 2021-09-15T18:18:05.000Z | BatchProcesses/eche_multi_process_oer_pm69subspaces_v1.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | null | null | null | BatchProcesses/eche_multi_process_oer_pm69subspaces_v1.py | johnmgregoire/JCAPDataProcess | c8120e5b2f8fc840a6307b40293dccaf94bd8c2c | [
"BSD-3-Clause"
] | null | null | null | import sys, os
from time import sleep
import numpy
############
projectroot=os.path.split(os.getcwd())[0]
sys.path.append(projectroot)
sys.path.append(os.path.join(projectroot,'QtForms'))
sys.path.append(os.path.join(projectroot,'AuxPrograms'))
sys.path.append(os.path.join(projectroot,'OtherApps'))
from CreateExperime... | 49.353896 | 244 | 0.662917 | 1,897 | 15,201 | 5.259357 | 0.18661 | 0.054124 | 0.108249 | 0.129899 | 0.484013 | 0.466774 | 0.435903 | 0.414353 | 0.414353 | 0.402125 | 0 | 0.225652 | 0.173212 | 15,201 | 307 | 245 | 49.514658 | 0.568189 | 0.471877 | 0 | 0.374302 | 0 | 0 | 0.074444 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044693 | false | 0 | 0.078212 | 0 | 0.162011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bcbc7e1275c92f1a5aeec8964bb66a2b5f7bcac | 451 | py | Python | ternary/__init__.py | btweinstein/python-ternary | 393f59fe6dda20a7f9a315d63c6ecfc9a79d2519 | [
"MIT"
] | null | null | null | ternary/__init__.py | btweinstein/python-ternary | 393f59fe6dda20a7f9a315d63c6ecfc9a79d2519 | [
"MIT"
] | null | null | null | ternary/__init__.py | btweinstein/python-ternary | 393f59fe6dda20a7f9a315d63c6ecfc9a79d2519 | [
"MIT"
] | null | null | null | from plotting import (
clear_matplotlib_ticks,
plot,
resize_drawing_canvas,
scatter,
left_axis_label,
right_axis_label,
bottom_axis_label
)
from lines import (
boundary,
gridlines,
line,
horizontal_line,
left_parallel_line,
right_parallel_line,
)
from helpers import... | 18.791667 | 59 | 0.751663 | 53 | 451 | 6.037736 | 0.641509 | 0.084375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206208 | 451 | 24 | 59 | 18.791667 | 0.893855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd08418ae4e7e2e9ab4322913cb9f3a4e53820e | 626 | py | Python | Leetcode/Python/_9.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | 1 | 2021-11-28T15:03:32.000Z | 2021-11-28T15:03:32.000Z | Leetcode/Python/_9.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_9.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | class Solution:
def isPalindrome(self, x: int) -> bool:
output = []
if x < 0:
return False
elif x == 0:
return True
i = 0
while x > 0:
last_digit = x % 10
if i == 0 and last_digit == 0:
return False
i... | 23.185185 | 43 | 0.351438 | 68 | 626 | 3.191176 | 0.397059 | 0.02765 | 0.073733 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.563898 | 626 | 26 | 44 | 24.076923 | 0.739927 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd8d35f1011c31d39440c6197d6ea079f612cbc | 604 | py | Python | test/test.py | keosariel/api-login-manager | 295bcbbc25c37bfb90939dda1124f5c57cb41722 | [
"MIT"
] | 2 | 2021-08-06T09:55:43.000Z | 2021-08-06T21:33:07.000Z | test/test.py | keosariel/api-login-manager | 295bcbbc25c37bfb90939dda1124f5c57cb41722 | [
"MIT"
] | null | null | null | test/test.py | keosariel/api-login-manager | 295bcbbc25c37bfb90939dda1124f5c57cb41722 | [
"MIT"
] | null | null | null | import requests
json_data = {
"username": "keosariel",
"password": "password"
}
# create new account
res= requests.post("http://127.0.0.1:5000/signup", json=json_data)
if res.status_code == 200:
# login user
res = requests.post("http://127.0.0.1:5000/login", json=json_data)
if res.status_code == ... | 23.230769 | 68 | 0.627483 | 85 | 604 | 4.388235 | 0.4 | 0.064343 | 0.064343 | 0.072386 | 0.402145 | 0.353887 | 0.316354 | 0.316354 | 0.155496 | 0 | 0 | 0.081136 | 0.183775 | 604 | 25 | 69 | 24.16 | 0.675456 | 0.145695 | 0 | 0.214286 | 0 | 0 | 0.292181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd9162faf073075668d25782d48ec53f69149a2 | 4,723 | py | Python | src/python/loadGraph.py | neoremind/luceneutil | 1a495d53bce97b32a1fae16d93d84d44eaa85eb3 | [
"Apache-2.0"
] | 164 | 2015-07-10T21:27:54.000Z | 2022-03-26T22:56:47.000Z | src/python/loadGraph.py | neoremind/luceneutil | 1a495d53bce97b32a1fae16d93d84d44eaa85eb3 | [
"Apache-2.0"
] | 126 | 2015-10-26T18:48:43.000Z | 2022-03-21T13:19:39.000Z | src/python/loadGraph.py | neoremind/luceneutil | 1a495d53bce97b32a1fae16d93d84d44eaa85eb3 | [
"Apache-2.0"
] | 87 | 2015-10-26T15:47:02.000Z | 2022-02-11T07:32:14.000Z | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lice... | 29.704403 | 102 | 0.58014 | 590 | 4,723 | 4.627119 | 0.428814 | 0.021978 | 0.00989 | 0.013187 | 0.040293 | 0.040293 | 0.021978 | 0.021978 | 0.021978 | 0.021978 | 0 | 0.033498 | 0.273131 | 4,723 | 158 | 103 | 29.892405 | 0.761724 | 0.19098 | 0 | 0.053571 | 0 | 0 | 0.275046 | 0.063897 | 0 | 0 | 0 | 0.006329 | 0 | 0 | null | null | 0.008929 | 0.044643 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bdc08a2130dbdbd19831e6feede73a0ef85f2d9 | 4,855 | py | Python | polls/views.py | dralley/pollsite | 007abd97b13861c800a211f5c9e172ea6ec9ccb2 | [
"MIT"
] | 1 | 2021-07-25T10:09:10.000Z | 2021-07-25T10:09:10.000Z | polls/views.py | dralley/pollsite | 007abd97b13861c800a211f5c9e172ea6ec9ccb2 | [
"MIT"
] | null | null | null | polls/views.py | dralley/pollsite | 007abd97b13861c800a211f5c9e172ea6ec9ccb2 | [
"MIT"
] | 1 | 2021-07-25T10:09:18.000Z | 2021-07-25T10:09:18.000Z | from django.shortcuts import render, get_object_or_404, redirect
from django.core.urlresolvers import reverse
from django.views import generic
from django.utils import timezone
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.... | 33.715278 | 111 | 0.643048 | 597 | 4,855 | 5.082077 | 0.217755 | 0.03263 | 0.043837 | 0.055372 | 0.378049 | 0.357943 | 0.340804 | 0.305537 | 0.183256 | 0.183256 | 0 | 0.004333 | 0.239341 | 4,855 | 143 | 112 | 33.951049 | 0.817222 | 0 | 0 | 0.309091 | 0 | 0 | 0.111843 | 0.004531 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.081818 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bdf02b01ee28a8a02dd68211408218b9f7395d0 | 2,321 | py | Python | Lista 2/exe13.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | 1 | 2021-11-30T13:16:36.000Z | 2021-11-30T13:16:36.000Z | Lista 2/exe13.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | null | null | null | Lista 2/exe13.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | 1 | 2021-11-20T00:00:50.000Z | 2021-11-20T00:00:50.000Z | '''13. Faça um programa que receba quatro valores: I, A, B e C. Desses valores, I é inteiro
e positivo, A, B e C são reais. Escreva os números A, B e C obedecendo à tabela a seguir.
Suponha que o valor digitado para I seja sempre um valor válido, ou seja, 1, 2 ou 3, e que os
números digitados sejam diferentes um do ou... | 41.446429 | 93 | 0.54804 | 397 | 2,321 | 3.20403 | 0.191436 | 0.080189 | 0.129717 | 0.056604 | 0.580975 | 0.538522 | 0.457547 | 0.415094 | 0.325472 | 0.294025 | 0 | 0.0085 | 0.290392 | 2,321 | 56 | 94 | 41.446429 | 0.763813 | 0.224472 | 0 | 0.212766 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.404255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
8bdf802eeba8ee1b1a579006f074e831164d9f76 | 348 | py | Python | index.py | dheerajgupta0001/wrldc_mis_state_files_ingestion | 361b06c887daf774aa4a5f3abc26fe6ab472ef18 | [
"MIT"
] | null | null | null | index.py | dheerajgupta0001/wrldc_mis_state_files_ingestion | 361b06c887daf774aa4a5f3abc26fe6ab472ef18 | [
"MIT"
] | null | null | null | index.py | dheerajgupta0001/wrldc_mis_state_files_ingestion | 361b06c887daf774aa4a5f3abc26fe6ab472ef18 | [
"MIT"
] | 3 | 2021-02-08T13:16:53.000Z | 2021-12-18T19:49:10.000Z | from src.config.appConfig import initConfig
from src.app.readFilesData import InsertFilesDataRepo
import datetime as dt
# instantiate loadFileMappings,
initConfig()
# initiate object
readFiles = InsertFilesDataRepo()
targetDt = dt.datetime.today()- dt.timedelta(days=1)
# print(targetDt)
isInsertionSuccess = readFile... | 26.769231 | 56 | 0.818966 | 37 | 348 | 7.702703 | 0.675676 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.097701 | 348 | 12 | 57 | 29 | 0.904459 | 0.178161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8be57579b42f4de3e214e86f9fd35d749f9ffa42 | 1,761 | py | Python | ooobuild/lo/sdb/application/copy_table_continuation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdb/application/copy_table_continuation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdb/application/copy_table_continuation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 31.446429 | 159 | 0.720045 | 239 | 1,761 | 5.171548 | 0.610879 | 0.048544 | 0.024272 | 0.031553 | 0.066343 | 0.046926 | 0.046926 | 0 | 0 | 0 | 0 | 0.017756 | 0.200454 | 1,761 | 55 | 160 | 32.018182 | 0.860085 | 0.555366 | 0 | 0 | 0 | 0 | 0.286501 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
8be7fe2aeb6b1633357cfa437ade4948f137c414 | 5,014 | py | Python | code/betawatch.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | 2 | 2021-05-04T19:11:38.000Z | 2021-05-22T02:01:10.000Z | code/betawatch.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | null | null | null | code/betawatch.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | 1 | 2021-12-31T10:15:47.000Z | 2021-12-31T10:15:47.000Z | #!/usr/bin/env python3
import argparse
from getpass import getpass
from platform import system
from signal import signal, SIGINT
from sys import exit
import configHandler
betawatchVersion = '0.1.0'
betawatchDescription =\
'''
This program is made for Employees or Students with an account at the Hochschule Furtwange... | 33.426667 | 232 | 0.640606 | 603 | 5,014 | 5.270315 | 0.253731 | 0.022656 | 0.042794 | 0.042794 | 0.223096 | 0.183763 | 0.164884 | 0.150409 | 0.150409 | 0.150409 | 0 | 0.001272 | 0.215796 | 5,014 | 149 | 233 | 33.651007 | 0.806968 | 0.01795 | 0 | 0.207207 | 0 | 0 | 0.297991 | 0.011543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0.153153 | 0.054054 | 0 | 0.099099 | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.