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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c8e3c7b2d13b590191bd4ccefbd0c8a983903c8 | 2,656 | py | Python | cnpsdk/chargeback_document.py | Vantiv/cnp-chargeback-sdk-python | 79b1d53c4fb4cc34522d36779e600e9dbee41d01 | [
"MIT"
] | null | null | null | cnpsdk/chargeback_document.py | Vantiv/cnp-chargeback-sdk-python | 79b1d53c4fb4cc34522d36779e600e9dbee41d01 | [
"MIT"
] | null | null | null | cnpsdk/chargeback_document.py | Vantiv/cnp-chargeback-sdk-python | 79b1d53c4fb4cc34522d36779e600e9dbee41d01 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-l
# Copyright (c) 2017 Vantiv eCommerce
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy,... | 40.861538 | 93 | 0.730045 | 354 | 2,656 | 5.282486 | 0.398305 | 0.032086 | 0.057754 | 0.05615 | 0.290909 | 0.248663 | 0.236898 | 0.201604 | 0.201604 | 0.071658 | 0 | 0.002642 | 0.144955 | 2,656 | 64 | 94 | 41.5 | 0.820784 | 0.40625 | 0 | 0 | 0 | 0 | 0.047857 | 0.015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.55 | 0.05 | 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 |
66580166997d76db64114c99a78618d310167dd9 | 2,706 | py | Python | core/migrations/0006_auto_20170809_1041.py | ivancrneto/temwifi | 091d5114281dca15d2e68b191852b5c5bcb00ce5 | [
"MIT"
] | null | null | null | core/migrations/0006_auto_20170809_1041.py | ivancrneto/temwifi | 091d5114281dca15d2e68b191852b5c5bcb00ce5 | [
"MIT"
] | null | null | null | core/migrations/0006_auto_20170809_1041.py | ivancrneto/temwifi | 091d5114281dca15d2e68b191852b5c5bcb00ce5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-09 10:41
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20170805_2015'),
]
operations = [
... | 45.1 | 335 | 0.623429 | 276 | 2,706 | 6.01087 | 0.297101 | 0.066305 | 0.13261 | 0.122363 | 0.503918 | 0.479204 | 0.361664 | 0.361664 | 0.361664 | 0.361664 | 0 | 0.044295 | 0.232446 | 2,706 | 59 | 336 | 45.864407 | 0.754454 | 0.025129 | 0 | 0.442308 | 1 | 0 | 0.182163 | 0.008729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057692 | 0 | 0.115385 | 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 |
6658361d0cbd43adbe24299ddeb6531fe3123877 | 1,817 | py | Python | pytype/tests/py2/test_typing_methods.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | 2 | 2019-07-25T12:53:02.000Z | 2019-08-18T16:26:16.000Z | pytype/tests/py2/test_typing_methods.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | null | null | null | pytype/tests/py2/test_typing_methods.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | null | null | null | """Tests for the methods in the typing module."""
from pytype import file_utils
from pytype.tests import test_base
class TypingMethodsTest(test_base.TargetPython27FeatureTest):
"""Tests for typing.py."""
def test_mapping(self):
with file_utils.Tempdir() as d:
d.create_file("foo.pyi", """
from ... | 30.79661 | 61 | 0.478261 | 245 | 1,817 | 3.485714 | 0.302041 | 0.035129 | 0.052693 | 0.07377 | 0.151054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002521 | 0.345074 | 1,817 | 58 | 62 | 31.327586 | 0.715126 | 0.035223 | 0 | 0.08 | 0 | 0 | 0.78186 | 0 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.02 | false | 0 | 0.12 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
665903f8612b6be0c95fa661b4ee52eea184295b | 1,102 | py | Python | setup.py | dirn/ish | ab441b7a8b7e9d74a4bf1cdb9bd785babecdbb9d | [
"Unlicense"
] | 28 | 2015-08-01T11:35:01.000Z | 2022-01-10T20:11:32.000Z | setup.py | dirn/ish | ab441b7a8b7e9d74a4bf1cdb9bd785babecdbb9d | [
"Unlicense"
] | 13 | 2015-08-02T08:51:46.000Z | 2017-02-24T14:18:30.000Z | setup.py | dirn/ish | ab441b7a8b7e9d74a4bf1cdb9bd785babecdbb9d | [
"Unlicense"
] | 6 | 2015-07-31T16:53:21.000Z | 2021-09-12T15:43:38.000Z | #!/usr/bin/env python
import sys
from setuptools import setup, Command
REQUIREMENTS = []
TEST_REQUIREMENTS = [
"pytest>=2.7.2",
]
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import pytest
... | 21.607843 | 65 | 0.605263 | 122 | 1,102 | 5.385246 | 0.639344 | 0.115677 | 0.152207 | 0.158295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018204 | 0.252269 | 1,102 | 50 | 66 | 22.04 | 0.779126 | 0.018149 | 0 | 0.052632 | 0 | 0 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.052632 | 0.078947 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
665bcd7edb08b9e1d43bcefe5ba402ccfcf22002 | 4,443 | py | Python | events/solar_events.py | sekondusg/groat | 6bff5d8bd547564e4ec378dea1d00db587a04132 | [
"Apache-2.0"
] | null | null | null | events/solar_events.py | sekondusg/groat | 6bff5d8bd547564e4ec378dea1d00db587a04132 | [
"Apache-2.0"
] | null | null | null | events/solar_events.py | sekondusg/groat | 6bff5d8bd547564e4ec378dea1d00db587a04132 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from config import config
import ephem
import math
from datetime import datetime
import subprocess
class Solar:
def __init__(self):
self.obs = ephem.Observer()
home = config.home; self.home = home
self.obs.lat = str(home['lat']) # ephem expects coordinates as strings
... | 40.027027 | 205 | 0.590817 | 586 | 4,443 | 4.336177 | 0.245734 | 0.041322 | 0.025974 | 0.026761 | 0.436836 | 0.360094 | 0.279418 | 0.24636 | 0.233766 | 0.187328 | 0 | 0.015445 | 0.256808 | 4,443 | 110 | 206 | 40.390909 | 0.754088 | 0.096556 | 0 | 0.1375 | 0 | 0.025 | 0.215074 | 0.013997 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.075 | 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 |
6663f9c6622c327f1dbd7ebb77ab9434c4bb530c | 5,016 | py | Python | etc/crawling_test/nlp_model/Summariz3.py | alswhd20/elk | 9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b | [
"MIT"
] | null | null | null | etc/crawling_test/nlp_model/Summariz3.py | alswhd20/elk | 9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b | [
"MIT"
] | null | null | null | etc/crawling_test/nlp_model/Summariz3.py | alswhd20/elk | 9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b | [
"MIT"
] | null | null | null | #https://blog.theeluwin.kr/post/146188165713/summariz3 참고
from konlpy.tag import Kkma
kkma = Kkma()
kkma.sentences
kkma.sentences("이세돌은 알파고를 이겼다. 이세돌은 강하다. 알파고도 짱쎔.")# 문장 찾기로 이용.
# ['이세 돌은 알 파고를 이겼다.', '이세 돌은 강하다.', '알 파고도 짱 쎔.'] <- 자동으로 pos 분류가 됨
from konlpy.tag import Okt
okt = Okt()
okt.nouns("미쿠 미쿠 하게 해줄게")#['미... | 28.827586 | 231 | 0.600877 | 727 | 5,016 | 4.112792 | 0.474553 | 0.0301 | 0.03913 | 0.04214 | 0.150502 | 0.150502 | 0.128428 | 0.103679 | 0.084281 | 0.068896 | 0 | 0.016038 | 0.254187 | 5,016 | 174 | 232 | 28.827586 | 0.779738 | 0.076555 | 0 | 0.201835 | 0 | 0 | 0.314057 | 0.028807 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055046 | null | null | 0.018349 | 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 |
6665235fd2e3048aee7b471a4ede79b2b7c3edcf | 1,351 | py | Python | setup.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | setup.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | setup.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | """
Pip.Services Runtime
--------------------
Pip.Services is an open-source library of basic microservices.
Runtime represents a foundation the microservices are built on.
Links
`````
* `website <http://www.pipservices.org>`_
* `development version <http://github.com/pip-services/pip-services-runtime-python>`
"""
... | 29.369565 | 84 | 0.65359 | 145 | 1,351 | 5.993103 | 0.606897 | 0.101266 | 0.082854 | 0.089758 | 0.110472 | 0.110472 | 0.110472 | 0.110472 | 0.110472 | 0 | 0 | 0.012059 | 0.202073 | 1,351 | 45 | 85 | 30.022222 | 0.794063 | 0.22946 | 0 | 0 | 0 | 0 | 0.525194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.068966 | 0 | 0.068966 | 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 |
66662dc9a0876e1cb67e3698ba2ccc09ac1750de | 839 | py | Python | eelbrain/_experiment/tests/test_epochs.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 32 | 2015-04-05T15:38:55.000Z | 2022-03-12T02:35:09.000Z | eelbrain/_experiment/tests/test_epochs.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 22 | 2015-07-14T14:55:44.000Z | 2022-03-15T17:46:11.000Z | eelbrain/_experiment/tests/test_epochs.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 29 | 2015-04-23T13:51:09.000Z | 2021-08-12T11:28:21.000Z | # Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
from eelbrain.pipeline import PrimaryEpoch, SecondaryEpoch, SuperEpoch, EpochCollection, ContinuousEpoch
def test_epoch_repr():
primary_epoch = PrimaryEpoch('session')
assert repr(primary_epoch) == "PrimaryEpoch('session', samplingrate=200, baseline=(No... | 52.4375 | 104 | 0.705602 | 88 | 839 | 6.568182 | 0.409091 | 0.086505 | 0.055363 | 0.096886 | 0.612457 | 0.290657 | 0.145329 | 0 | 0 | 0 | 0 | 0.021978 | 0.1323 | 839 | 15 | 105 | 55.933333 | 0.771978 | 0.064362 | 0 | 0 | 0 | 0 | 0.311622 | 0.130268 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66767f102394e1644881ff2bdd04adca648c75c9 | 1,597 | py | Python | news/migrations/0001_squashed_0002_news_send_announce.py | VanirLab/VOS | e6cb3e4e391e583e98d548292b5f272320d38cc4 | [
"MIT"
] | null | null | null | news/migrations/0001_squashed_0002_news_send_announce.py | VanirLab/VOS | e6cb3e4e391e583e98d548292b5f272320d38cc4 | [
"MIT"
] | null | null | null | news/migrations/0001_squashed_0002_news_send_announce.py | VanirLab/VOS | e6cb3e4e391e583e98d548292b5f272320d38cc4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-17 20:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | 38.95122 | 149 | 0.580463 | 159 | 1,597 | 5.641509 | 0.540881 | 0.026756 | 0.040134 | 0.049052 | 0.06689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023768 | 0.288666 | 1,597 | 40 | 150 | 39.925 | 0.765845 | 0.043206 | 0 | 0 | 1 | 0 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
667ab67631ce6347717f94e0068b13de5b99c3c9 | 3,555 | py | Python | scripting.py | hughobrien/py-ble-hci | b0ad066ba375962c2b14d3fb85eaddde1ab27ffc | [
"MIT"
] | 9 | 2017-02-12T22:34:55.000Z | 2020-11-28T15:44:35.000Z | scripting.py | FocusWorkSpace/py-ble-hci | b0ad066ba375962c2b14d3fb85eaddde1ab27ffc | [
"MIT"
] | null | null | null | scripting.py | FocusWorkSpace/py-ble-hci | b0ad066ba375962c2b14d3fb85eaddde1ab27ffc | [
"MIT"
] | 1 | 2019-12-04T05:58:20.000Z | 2019-12-04T05:58:20.000Z | from utils import *
from construct import Container, MappingError
from structs import build, parse
def tx_container(channel=0, payload_len=10, test_pattern='psn9'):
container = Container(
pkt_type = 'command',
cmd_opcode = 'tx_test',
cmd_params = Containe... | 34.514563 | 90 | 0.51083 | 343 | 3,555 | 5.020408 | 0.221574 | 0.041812 | 0.043554 | 0.055168 | 0.323461 | 0.267712 | 0.170151 | 0.065041 | 0.065041 | 0.065041 | 0 | 0.006626 | 0.405626 | 3,555 | 102 | 91 | 34.852941 | 0.808329 | 0.00872 | 0 | 0.277108 | 0 | 0 | 0.043847 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 0 | null | null | 0 | 0.036145 | null | null | 0.060241 | 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 |
6685b2e2556c6d3edf968ba12da9dbf748f6b48d | 13,867 | py | Python | cuw.py | rams3sh/cuw | 08e7c84fcbdbd32b999053d756a7192592052e7b | [
"W3C"
] | 9 | 2018-06-17T16:35:49.000Z | 2022-01-20T08:09:05.000Z | cuw.py | rams3sh/cuw | 08e7c84fcbdbd32b999053d756a7192592052e7b | [
"W3C"
] | 1 | 2020-11-16T09:37:07.000Z | 2020-11-26T11:41:26.000Z | cuw.py | rams3sh/cuw | 08e7c84fcbdbd32b999053d756a7192592052e7b | [
"W3C"
] | 5 | 2020-01-16T10:50:44.000Z | 2022-01-20T08:09:20.000Z |
from scrapy import Selector
from tqdm import tqdm
import requests
import math
import re
import sqlite3
import subprocess
import sys,os
import tempfile
import xml.etree.ElementTree as ET
import time
import signal
signal.signal(signal.SIGINT, lambda x,y: sys.exit(0))
#Global Variables
conn = sqlite3.con... | 41.642643 | 308 | 0.667556 | 1,757 | 13,867 | 5.142288 | 0.210586 | 0.056779 | 0.017045 | 0.015938 | 0.362369 | 0.304593 | 0.273824 | 0.252131 | 0.219812 | 0.184615 | 0 | 0.01344 | 0.141487 | 13,867 | 332 | 309 | 41.768072 | 0.745485 | 0.006707 | 0 | 0.197917 | 0 | 0.034722 | 0.369772 | 0.0509 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017361 | 0.041667 | null | null | 0.072917 | 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 |
6687f822d95531b0300a18224526c24f2dc53157 | 3,374 | py | Python | tests/test_groups.py | daylinmorgan/click-rich-help | dedbd570e60583af1562de7250805861d0571094 | [
"MIT"
] | 4 | 2022-02-19T18:24:11.000Z | 2022-03-22T14:42:45.000Z | tests/test_groups.py | daylinmorgan/click-rich-help | dedbd570e60583af1562de7250805861d0571094 | [
"MIT"
] | 4 | 2022-03-22T04:48:05.000Z | 2022-03-29T23:05:32.000Z | tests/test_groups.py | daylinmorgan/click-rich-help | dedbd570e60583af1562de7250805861d0571094 | [
"MIT"
] | 1 | 2022-03-22T03:30:33.000Z | 2022-03-22T03:30:33.000Z | import click
from click_rich_help import StyledCommand, StyledGroup
def test_command_group(runner):
@click.group(
cls=StyledGroup,
command_groups={"main": ["cmd1", "cmd2"]},
)
def cli():
pass
@cli.command(cls=StyledCommand, styles={"header": "yellow", "option": "green"})
... | 29.596491 | 96 | 0.582098 | 413 | 3,374 | 4.716707 | 0.200969 | 0.053901 | 0.061602 | 0.027721 | 0.712012 | 0.659138 | 0.566222 | 0.566222 | 0.534394 | 0.482033 | 0 | 0.04736 | 0.236515 | 3,374 | 113 | 97 | 29.858407 | 0.708851 | 0 | 0 | 0.55914 | 0 | 0.043011 | 0.340545 | 0.113812 | 0 | 0 | 0 | 0 | 0.086022 | 1 | 0.16129 | false | 0.11828 | 0.021505 | 0 | 0.182796 | 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 |
668913ba57581a407af212f7dd82ca1e80be2497 | 1,272 | py | Python | python/405.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | python/405.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | python/405.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | class Solution(object):
def toHex(self, num):
"""
:type num: int
:rtype: str
"""
output = []
dic = {0:"0", 1:"1", 2:"2", 3:"3", 4:"4", 5:"5", 6:"6", 7:"7", 8:"8", 9:"9", 10:"a", 11:"b", 12:"c", 13:"d", 14:"e", 15:"f"}
dic2 = {"0":0, "1":1, "2":2, "3":3, "4":4, "5":5, "6":6, ... | 21.559322 | 126 | 0.453616 | 212 | 1,272 | 2.698113 | 0.25 | 0.073427 | 0.113636 | 0.104895 | 0.258741 | 0.258741 | 0.258741 | 0.174825 | 0.174825 | 0.06993 | 0 | 0.133257 | 0.309748 | 1,272 | 58 | 127 | 21.931034 | 0.518223 | 0 | 0 | 0.243902 | 0 | 0 | 0.030553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.02439 | 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 |
668eaf4ad1aa82b3271152c60fe1f2bf5d34e0e1 | 1,536 | py | Python | lab_03_num_int/centroid.py | kangwonlee/engineering-computational-analysis | a23cccc2ff00a0586334d4107dcb446c588b2f4f | [
"Apache-2.0"
] | null | null | null | lab_03_num_int/centroid.py | kangwonlee/engineering-computational-analysis | a23cccc2ff00a0586334d4107dcb446c588b2f4f | [
"Apache-2.0"
] | 1 | 2019-05-22T03:08:16.000Z | 2019-05-22T03:08:16.000Z | lab_03_num_int/centroid.py | kangwonlee/engineering-computational-analysis | a23cccc2ff00a0586334d4107dcb446c588b2f4f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf8 -*-
"""
수치 적분 응용 예제
단면의 도심 구하기
"""
# 수학 기능을 담고 있는 math 모듈을 불러 들임
import math
# 그래프 그리기 관련 기능 등을 담고 있는 pylab 모듈을 불러 들임
import pylab
# 수치 적분 관련 기능을 담은 num_int 모듈을 불러 들임
import num_int
# num_int 모듈이 바르게 불러들여졌는지 확인하기 위해 num_int.rect0 함수의 도움말 표시 시도
help(num_int.rect0)
def main():
# 적분 구간 == 단면의 위 ... | 17.066667 | 61 | 0.53776 | 278 | 1,536 | 2.856115 | 0.446043 | 0.052897 | 0.026448 | 0.049118 | 0.02267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052475 | 0.342448 | 1,536 | 89 | 62 | 17.258427 | 0.733663 | 0.242188 | 0 | 0.054054 | 0 | 0 | 0.039729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.081081 | 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 |
669012d2b3d687820678a5c2a4c7dded40f7df8f | 1,010 | py | Python | rec/urls.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | null | null | null | rec/urls.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | 2 | 2020-09-16T14:06:34.000Z | 2020-09-16T18:14:26.000Z | rec/urls.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | null | null | null | from django.urls import path, include
from django.contrib.auth import views as auth_views # "as auth_views" para serparar das views originais
from .views import ConvenioListView, ConvenioDetailView, ConvenioCreateView, ConvenioUpdateView, ConvenioDeleteView
from . import views
urlpatterns = [
#path('', views.... | 40.4 | 139 | 0.735644 | 119 | 1,010 | 6.092437 | 0.369748 | 0.125517 | 0.068966 | 0.131034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120792 | 1,010 | 24 | 140 | 42.083333 | 0.816441 | 0.216832 | 0 | 0 | 0 | 0 | 0.265903 | 0.092875 | 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 |
6692a89e41e41ff4d793ef673d3bc45e5593f518 | 505 | py | Python | examples/read_voi.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 7 | 2021-08-02T09:58:08.000Z | 2022-03-17T21:13:34.000Z | examples/read_voi.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 2 | 2021-08-09T14:57:38.000Z | 2022-03-28T13:25:19.000Z | examples/read_voi.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 4 | 2021-08-09T07:45:59.000Z | 2022-03-22T23:02:15.000Z | """Read Brainvoyager voi."""
import bvbabel
FILE = "/home/faruk/Documents/test_bvbabel/voi/sub-07_leftMT_Sphere16radius.voi"
# =============================================================================
# Load voi
header, data = bvbabel.voi.read_voi(FILE)
# Print header information
print("\nVOI header")
for key, ... | 21.956522 | 80 | 0.554455 | 59 | 505 | 4.677966 | 0.457627 | 0.115942 | 0.07971 | 0.094203 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.148515 | 505 | 22 | 81 | 22.954545 | 0.632558 | 0.267327 | 0 | 0.181818 | 0 | 0 | 0.298343 | 0.196133 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 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 |
6692b9e65d71044de79066cfc91e9a59cf496412 | 1,304 | py | Python | rl/trajectory/tests.py | manongbang/snake | ccab9160bce7874957790601e1d06389aa691104 | [
"MIT"
] | null | null | null | rl/trajectory/tests.py | manongbang/snake | ccab9160bce7874957790601e1d06389aa691104 | [
"MIT"
] | null | null | null | rl/trajectory/tests.py | manongbang/snake | ccab9160bce7874957790601e1d06389aa691104 | [
"MIT"
] | 1 | 2017-12-19T02:08:17.000Z | 2017-12-19T02:08:17.000Z | # coding: utf-8
from __future__ import unicode_literals
import unittest
from envs.fast_trading_env import FastTradingEnv
from policy.resnet_trading_model import ResnetTradingModel
from policy.model_policy import ModelTradingPolicy
from trajectory.sim_trajectory import SimTrajectory
class SimTrajectoryTestCase(unit... | 27.744681 | 73 | 0.652607 | 145 | 1,304 | 5.606897 | 0.434483 | 0.067651 | 0.04182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.261503 | 1,304 | 46 | 74 | 28.347826 | 0.831776 | 0.046779 | 0 | 0 | 0 | 0 | 0.037934 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | null | null | 0 | 0.171429 | null | null | 0.028571 | 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 |
669aa0d1dd9794bf798517399c293e690b308c09 | 305 | py | Python | server/showcase/products/permissions.py | lucasOlivio/showcase | f6e5549ef3fe9ade22ec484e07cb5f65825a41bc | [
"MIT"
] | null | null | null | server/showcase/products/permissions.py | lucasOlivio/showcase | f6e5549ef3fe9ade22ec484e07cb5f65825a41bc | [
"MIT"
] | null | null | null | server/showcase/products/permissions.py | lucasOlivio/showcase | f6e5549ef3fe9ade22ec484e07cb5f65825a41bc | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAdmin(permissions.BasePermission):
"""
Object-level permission to only allow owners of an object or admins to edit it.
"""
def has_object_permission(self, request, view, obj):
if request.user.is_superuser:
return True
| 23.461538 | 83 | 0.698361 | 39 | 305 | 5.358974 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232787 | 305 | 12 | 84 | 25.416667 | 0.893162 | 0.259016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
669f65543eda6d689d824d253660e8f7623c3bd3 | 1,269 | py | Python | brave_cane/api/partner/app_graphql/schemas_graphql.py | ymussi/john-brave-cane | b0c0eb8d751128231249c2f86ab379a190a46b46 | [
"MIT"
] | null | null | null | brave_cane/api/partner/app_graphql/schemas_graphql.py | ymussi/john-brave-cane | b0c0eb8d751128231249c2f86ab379a190a46b46 | [
"MIT"
] | 2 | 2020-06-08T01:12:07.000Z | 2020-06-18T00:41:18.000Z | brave_cane/api/partner/app_graphql/schemas_graphql.py | ymussi/john-brave-cane | b0c0eb8d751128231249c2f86ab379a190a46b46 | [
"MIT"
] | null | null | null | from graphene import ObjectType, InputObjectType, Mutation, Schema, InputField, Field, Argument, JSONString, String, Int, Float, List
from brave_cane.api.partner.app_graphql.resolvers import PartnerResolvers
from graphql import GraphQLError
class GQLAddress(ObjectType):
type = String(required=True)
coordinate... | 33.394737 | 133 | 0.679275 | 145 | 1,269 | 5.868966 | 0.42069 | 0.112808 | 0.105758 | 0.065805 | 0.232667 | 0.176263 | 0.110458 | 0 | 0 | 0 | 0 | 0 | 0.214342 | 1,269 | 37 | 134 | 34.297297 | 0.853561 | 0 | 0 | 0.071429 | 0 | 0 | 0.01182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 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 |
66a0c02525175400e49435141d479d7dd8f10f4c | 452 | py | Python | pvsystemprofiler/algorithms/longitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | 4 | 2020-08-18T14:28:44.000Z | 2021-10-14T13:17:03.000Z | pvsystemprofiler/algorithms/longitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | 10 | 2020-04-14T18:57:03.000Z | 2021-09-14T15:26:24.000Z | pvsystemprofiler/algorithms/longitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | null | null | null | from pvsystemprofiler.algorithms.longitude.calculation import calculate_longitude
from pvsystemprofiler.algorithms.longitude.fitting import fit_longitude
def estimate_longitude(estimator, eot, solarnoon, days, gmt_offset):
if estimator == 'calculated':
return calculate_longitude(eot, solarnoon, days, gmt_... | 41.090909 | 81 | 0.763274 | 51 | 452 | 6.588235 | 0.470588 | 0.107143 | 0.142857 | 0.169643 | 0.276786 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.14823 | 452 | 10 | 82 | 45.2 | 0.87013 | 0 | 0 | 0 | 0 | 0 | 0.024336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 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 |
66ac73bc95e6573b95496f46d9966f13e3b048c8 | 248 | py | Python | photo_resize.py | morestart/v | 5f05319e06cd00ecd0b3cc602e9319c1c5aa7b8c | [
"MIT"
] | null | null | null | photo_resize.py | morestart/v | 5f05319e06cd00ecd0b3cc602e9319c1c5aa7b8c | [
"MIT"
] | null | null | null | photo_resize.py | morestart/v | 5f05319e06cd00ecd0b3cc602e9319c1c5aa7b8c | [
"MIT"
] | null | null | null | import cv2
import os
def resize(path):
img = cv2.imread(path)
resized = cv2.resize(img, (224, 224), interpolation=cv2.INTER_AREA)
cv2.imwrite("webwxgetmsgimg.jpg", resized)
if __name__ == '__main__':
resize("webwxgetmsgimg.jpg") | 20.666667 | 71 | 0.693548 | 32 | 248 | 5.09375 | 0.59375 | 0.208589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05314 | 0.165323 | 248 | 12 | 72 | 20.666667 | 0.7343 | 0 | 0 | 0 | 0 | 0 | 0.176707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
66b3970ec9d0143f0cdc277a50cddc52b6efc890 | 1,369 | py | Python | server/src/oscarbundles/migrations/0004_auto_20180315_1349.py | thelabnyc/django-oscar-bundles | d9762595c07a74090da17738b029efae3f952f87 | [
"0BSD"
] | 5 | 2017-05-21T08:31:05.000Z | 2021-02-08T04:10:21.000Z | server/src/oscarbundles/migrations/0004_auto_20180315_1349.py | thelabnyc/django-oscar-bundles | d9762595c07a74090da17738b029efae3f952f87 | [
"0BSD"
] | 14 | 2018-03-12T13:48:02.000Z | 2021-06-02T17:26:37.000Z | server/src/oscarbundles/migrations/0004_auto_20180315_1349.py | thelabnyc/django-oscar-bundles | d9762595c07a74090da17738b029efae3f952f87 | [
"0BSD"
] | 2 | 2017-10-04T16:18:58.000Z | 2018-12-09T14:00:51.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-15 17:49
from __future__ import unicode_literals
from django.db import migrations
def update_triggering_parents(apps, schema_editor):
BundleGroup = apps.get_model("oscarbundles", "BundleGroup")
for group in BundleGroup.objects.all():
fo... | 32.595238 | 64 | 0.646457 | 152 | 1,369 | 5.638158 | 0.394737 | 0.079347 | 0.079347 | 0.053676 | 0.613769 | 0.508751 | 0.434072 | 0.434072 | 0.434072 | 0.340723 | 0 | 0.033564 | 0.260044 | 1,369 | 41 | 65 | 33.390244 | 0.812438 | 0.050402 | 0 | 0.4 | 1 | 0 | 0.062452 | 0.017733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.233333 | 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 |
66b5c331565e528b919630fa752ab1526fe1fa09 | 309 | py | Python | setup.py | yuanz271/pyneuroglm | 42bba9772122ad0c39316c3e597a9a07d5b8c207 | [
"MIT"
] | 1 | 2022-03-12T11:54:24.000Z | 2022-03-12T11:54:24.000Z | setup.py | yuanz271/pyneuroglm | 42bba9772122ad0c39316c3e597a9a07d5b8c207 | [
"MIT"
] | null | null | null | setup.py | yuanz271/pyneuroglm | 42bba9772122ad0c39316c3e597a9a07d5b8c207 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='pyneuroglm',
version='2021.5.10',
packages=['pyneuroglm'],
url='https://github.com/yuanz271/pyneuroglm',
license='MIT',
author='yuan',
author_email='yuanz271@gmail.com',
description='',
requires=['numpy', 'scipy'])
| 25.75 | 51 | 0.618123 | 33 | 309 | 5.757576 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052846 | 0.203884 | 309 | 11 | 52 | 28.090909 | 0.719512 | 0 | 0 | 0 | 0 | 0 | 0.330097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66b5ce60b7a6c67d53368fc3b587244792501275 | 502 | py | Python | simple_downloader/drive_space.py | jsyrovy/simple-downloader | be35b59e0021c42d0ab3bdd7b3d5370ae0177d63 | [
"MIT"
] | null | null | null | simple_downloader/drive_space.py | jsyrovy/simple-downloader | be35b59e0021c42d0ab3bdd7b3d5370ae0177d63 | [
"MIT"
] | null | null | null | simple_downloader/drive_space.py | jsyrovy/simple-downloader | be35b59e0021c42d0ab3bdd7b3d5370ae0177d63 | [
"MIT"
] | null | null | null | import dataclasses
import shutil
import hurry.filesize
@dataclasses.dataclass
class DriveSpace:
path: str
total: str
used: str
free: str
free_perc: str
def get_drive_space(path: str) -> DriveSpace:
total, used, free = shutil.disk_usage(path)
return DriveSpace(path,
... | 20.916667 | 53 | 0.579681 | 56 | 502 | 5.125 | 0.446429 | 0.181185 | 0.1777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.320717 | 502 | 23 | 54 | 21.826087 | 0.829912 | 0 | 0 | 0 | 0 | 0 | 0.053785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
66bb48581fa44a058e91c28da2bdc8793bf013d3 | 664 | py | Python | create_report/md_func.py | MarlaWillemse/sales-forecast | d9d2d4d591eeba57375694acd1720c345f29c7ee | [
"MIT"
] | 1 | 2020-11-13T06:07:27.000Z | 2020-11-13T06:07:27.000Z | create_report/md_func.py | MarlaWillemse/sales-forecast | d9d2d4d591eeba57375694acd1720c345f29c7ee | [
"MIT"
] | null | null | null | create_report/md_func.py | MarlaWillemse/sales-forecast | d9d2d4d591eeba57375694acd1720c345f29c7ee | [
"MIT"
] | null | null | null | import os
from root import *
import pandas as pd
preds = pd.read_csv(root+"/data/processed/predictions.csv")
preds['Predicted Volume'] = preds['Future_Volume']
preds = preds.drop('Future_Volume', axis=1)
print()
preds_md = preds.to_markdown()
text_file = open(root+"/data/processed/preds_table.md", "w")
n = text_fi... | 25.538462 | 72 | 0.724398 | 108 | 664 | 4.324074 | 0.509259 | 0.09636 | 0.038544 | 0.070664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001686 | 0.106928 | 664 | 25 | 73 | 26.56 | 0.785835 | 0.064759 | 0 | 0 | 0 | 0 | 0.416801 | 0.182553 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66bdeb8ba97caa64153a2405cae092e00539b608 | 689 | py | Python | pull_data/cardParser.py | ltornyi/insights-story-similarity | 5c6d1a56892289d43b00c5e4c5d8728306c48a72 | [
"MIT"
] | null | null | null | pull_data/cardParser.py | ltornyi/insights-story-similarity | 5c6d1a56892289d43b00c5e4c5d8728306c48a72 | [
"MIT"
] | null | null | null | pull_data/cardParser.py | ltornyi/insights-story-similarity | 5c6d1a56892289d43b00c5e4c5d8728306c48a72 | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
class CardParser(HTMLParser):
inside_p = False
text = ''
def clear(self):
self.text = ''
self.inside_p = False
def handle_starttag(self, tag, attrs):
# print("Start tag:", tag)
if tag == "p":
self.inside_p = True
... | 25.518519 | 42 | 0.481858 | 77 | 689 | 4.194805 | 0.337662 | 0.130031 | 0.170279 | 0.099071 | 0.229102 | 0.154799 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357039 | 689 | 27 | 43 | 25.518519 | 0.72912 | 0.187228 | 0 | 0.125 | 0 | 0 | 0.005415 | 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 |
66c3dd6b9fb4825237182fb213e1039bd3f770ad | 783 | py | Python | learnpyqt/source/basic/events_1.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | learnpyqt/source/basic/events_1.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | learnpyqt/source/basic/events_1.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | import sys
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication, QMainWindow, QTextEdit
# tag::MainWindow[]
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.label = QLabel("Click in this window")
self.setCentralWidget(self.label)
... | 21.75 | 67 | 0.662835 | 79 | 783 | 6.455696 | 0.443038 | 0.105882 | 0.070588 | 0.109804 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003295 | 0.224777 | 783 | 35 | 68 | 22.371429 | 0.836903 | 0.0447 | 0 | 0 | 0 | 0 | 0.122535 | 0.029577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 0 | 0.45 | 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 |
66cbb21e9f6e5be25f300c95d2799dd8ecea83ef | 560 | py | Python | konduto/api/resources/konduto_shopping_cart.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 4 | 2020-04-29T07:53:59.000Z | 2021-05-26T20:13:51.000Z | konduto/api/resources/konduto_shopping_cart.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 7 | 2020-04-05T08:05:55.000Z | 2021-04-07T19:24:15.000Z | konduto/api/resources/konduto_shopping_cart.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 1 | 2021-06-15T17:37:20.000Z | 2021-06-15T17:37:20.000Z | from dataclasses import dataclass, asdict
from datetime import date
from decimal import Decimal
from typing import Optional
@dataclass
class KondutoProduct:
sku: Optional[str] = None
product_code: Optional[str] = None
category: Optional[int] = None
name: Optional[str] = None
description: Optional[... | 25.454545 | 41 | 0.701786 | 68 | 560 | 5.720588 | 0.485294 | 0.113111 | 0.154242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210714 | 560 | 21 | 42 | 26.666667 | 0.880091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0.055556 | 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 |
66cf141b9c39f8b57569ff91adbef41be472cd74 | 2,053 | py | Python | comp0037_planner_controller/src/comp0037_planner_controller/dynamic_planner.py | tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world | 6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1 | [
"BSD-3-Clause"
] | null | null | null | comp0037_planner_controller/src/comp0037_planner_controller/dynamic_planner.py | tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world | 6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1 | [
"BSD-3-Clause"
] | null | null | null | comp0037_planner_controller/src/comp0037_planner_controller/dynamic_planner.py | tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world | 6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from cell_based_forward_search import CellBasedForwardSearch
from Queue import PriorityQueue
from math import sqrt
# Implementation of the Dynamic Planner Algorithm which the Dijkstra and A* Algorithm inherit
class DynamicPlanner(CellBasedForwardSearch):
# Construct the new planner obje... | 33.655738 | 100 | 0.682416 | 212 | 2,053 | 6.542453 | 0.410377 | 0.069214 | 0.018745 | 0.037491 | 0.086518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001285 | 0.242085 | 2,053 | 60 | 101 | 34.216667 | 0.890103 | 0.210424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.088235 | 0.058824 | 0.441176 | 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 |
66d051642a95470241124d6aab2d1b089e0c3e09 | 222 | py | Python | DWITE/DWITE_11_R1P2_Penny_Game.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | DWITE/DWITE_11_R1P2_Penny_Game.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | DWITE/DWITE_11_R1P2_Penny_Game.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | for i in range(5):
ans = 0
coins = []
for i in range(int(input())):
coins.append(int(input()))
avg = sum(coins) // len(coins)
for i in coins:
ans += abs(avg - i)
print(ans // 2)
| 15.857143 | 34 | 0.486486 | 34 | 222 | 3.176471 | 0.5 | 0.111111 | 0.166667 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.342342 | 222 | 13 | 35 | 17.076923 | 0.719178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
66d707e07881efea046395451583f8ece4ead01e | 2,355 | py | Python | sci/lexer.py | vanadium23/interpreters.py | 5d51f5c51c116ac8949268258df1e87f9a606684 | [
"MIT"
] | null | null | null | sci/lexer.py | vanadium23/interpreters.py | 5d51f5c51c116ac8949268258df1e87f9a606684 | [
"MIT"
] | null | null | null | sci/lexer.py | vanadium23/interpreters.py | 5d51f5c51c116ac8949268258df1e87f9a606684 | [
"MIT"
] | null | null | null |
from tokens import (
Token,
INTEGER, EOF,
LPAR, RPAR,
PLUS, MINUS,
MULTIPLY, DIVISION,
)
class Lexer(object):
def __init__(self, text):
# client string input, e.g. "4 + 2 * 3 - 6 / 2"
self.text = text
# self.pos is an index into self.text
self.pos = 0
s... | 28.035714 | 76 | 0.526964 | 262 | 2,355 | 4.637405 | 0.335878 | 0.162963 | 0.209877 | 0.140741 | 0.404938 | 0.374486 | 0.348148 | 0.32428 | 0.077366 | 0.077366 | 0 | 0.005333 | 0.363057 | 2,355 | 83 | 77 | 28.373494 | 0.804667 | 0.156688 | 0 | 0.178571 | 0 | 0 | 0.014933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.017857 | 0 | 0.303571 | 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 |
66dd1e5bf9411c2af26a6b8f0215f923273e75bf | 26,221 | py | Python | struct/model/boss/2pcf_pk_test/calc_2pcf_pk_test.py | naonori/hitomi | 02b188eb8ada4d39a10801bf3193581b9bc9c310 | [
"MIT"
] | 6 | 2021-09-28T04:00:56.000Z | 2022-03-23T03:49:19.000Z | struct/model/boss/2pcf_pk_test/calc_2pcf_pk_test.py | naonori/hitomi | 02b188eb8ada4d39a10801bf3193581b9bc9c310 | [
"MIT"
] | null | null | null | struct/model/boss/2pcf_pk_test/calc_2pcf_pk_test.py | naonori/hitomi | 02b188eb8ada4d39a10801bf3193581b9bc9c310 | [
"MIT"
] | null | null | null | ########################
# Purpose of this code #
########################
# This code explains how to calculate the power spectrum and 2PCF using "$WORK/cosmo/hitomi_theory".
# The nonlinearity is taken into account only for the BAO damping effect.
# It is also possible to calculate the BAO damping effect after reco... | 53.078947 | 219 | 0.634758 | 4,362 | 26,221 | 3.555479 | 0.088033 | 0.028371 | 0.030176 | 0.033529 | 0.638339 | 0.599007 | 0.589013 | 0.581082 | 0.566381 | 0.566123 | 0 | 0.031558 | 0.132299 | 26,221 | 493 | 220 | 53.186613 | 0.650097 | 0.819229 | 0 | 0.025974 | 0 | 0 | 0.091011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012987 | 0.077922 | 0 | 0.077922 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66e1f6541524ec7259479543d161d250f75cdd63 | 533 | py | Python | utility/util-wrapper.py | jrminter/dtsa2scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | 2 | 2018-04-19T12:25:29.000Z | 2018-11-24T12:55:46.000Z | utility/util-wrapper.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | utility/util-wrapper.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# util-wrapper.py
import sys
import os
import time
import shutil
import gov.nist.microanalysis.Utility as nu
gitDir = os.environ['GIT_HOME']
relPrj = "/dtsa2Scripts/utility"
prjDir = gitDir + relPrj
rptDir = prjDir + '/util-wrapper Results/'
start = time.time()
# clean up cruft
shutil.rm... | 14.805556 | 45 | 0.666041 | 77 | 533 | 4.597403 | 0.584416 | 0.062147 | 0.073446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023202 | 0.19137 | 533 | 35 | 46 | 15.228571 | 0.798144 | 0.097561 | 0 | 0.1 | 0 | 0 | 0.206751 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.15 | 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 |
66e22ff065e64004653ebf19d8bd4ee8765e0886 | 876 | py | Python | tests/job/test_job_interactive.py | Ovakefali13/pyiron_base | 84a9b0c46dab434a7f7c14f987392f6fede68317 | [
"BSD-3-Clause"
] | null | null | null | tests/job/test_job_interactive.py | Ovakefali13/pyiron_base | 84a9b0c46dab434a7f7c14f987392f6fede68317 | [
"BSD-3-Clause"
] | null | null | null | tests/job/test_job_interactive.py | Ovakefali13/pyiron_base | 84a9b0c46dab434a7f7c14f987392f6fede68317 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
import unittest
from pyiron_base.job.interactive import InteractiveBase
from pyiron_base._tests import TestWithProject
... | 38.086957 | 108 | 0.711187 | 108 | 876 | 5.574074 | 0.574074 | 0.093023 | 0.046512 | 0.049834 | 0.162791 | 0.162791 | 0.162791 | 0.162791 | 0.162791 | 0 | 0 | 0.001443 | 0.208904 | 876 | 22 | 109 | 39.818182 | 0.867244 | 0.219178 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
66e3cc3c84437ac28a7dc0c672919509c5a7405f | 5,172 | py | Python | tools/Bitcoin Parser/blockchain_parser/tests/test_transaction.py | simewu/bitcoin_researcher | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | [
"MIT"
] | 1 | 2020-02-15T21:44:04.000Z | 2020-02-15T21:44:04.000Z | tools/Bitcoin Parser/blockchain_parser/tests/test_transaction.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | tools/Bitcoin Parser/blockchain_parser/tests/test_transaction.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | # Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers
#
# This file is part of bitcoin-blockchain-parser.
#
# It is subject to the license terms in the LICENSE file found in the top-level
# directory of this distribution.
#
# No part of bitcoin-blockchain-parser, including this file, may be copied,
# modif... | 43.1 | 138 | 0.694896 | 490 | 5,172 | 7.140816 | 0.285714 | 0.051443 | 0.037725 | 0.030009 | 0.248071 | 0.15633 | 0.090312 | 0.0503 | 0.0503 | 0.0503 | 0 | 0.214993 | 0.218484 | 5,172 | 120 | 139 | 43.1 | 0.650668 | 0.076179 | 0 | 0.034884 | 0 | 0 | 0.305789 | 0.266359 | 0 | 0 | 0 | 0 | 0.302326 | 1 | 0.104651 | false | 0 | 0.05814 | 0 | 0.174419 | 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 |
66e9bfbf80361e7f9790cf549f2992dbd8e91aa5 | 3,708 | py | Python | dakara_server/library/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 4 | 2018-07-24T18:22:16.000Z | 2020-01-24T16:30:54.000Z | dakara_server/library/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 88 | 2017-11-04T08:58:02.000Z | 2022-03-30T11:39:08.000Z | dakara_server/library/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 1 | 2018-05-05T15:37:20.000Z | 2018-05-05T15:37:20.000Z | from datetime import timedelta
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Song(models.Model):
"""Song object."""
title = models.CharField(max_length=255)
filename = models.CharField(max_length=255)
directory = models.CharField(max_lengt... | 28.523077 | 79 | 0.676375 | 455 | 3,708 | 5.301099 | 0.268132 | 0.105721 | 0.126866 | 0.169154 | 0.356136 | 0.333748 | 0.216003 | 0.138474 | 0.032338 | 0 | 0 | 0.018268 | 0.202805 | 3,708 | 129 | 80 | 28.744186 | 0.7977 | 0.08603 | 0 | 0.175 | 0 | 0 | 0.041491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1125 | false | 0 | 0.0375 | 0.1 | 0.8125 | 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 |
66e9f3403aeb4fd7e718e8a8a743bfc014ef3986 | 819 | py | Python | mktd-keras-miniproject/project/server.py | monkeytechdays/mktd9-keras | 3e8daf16fca2a0c97b6159ea8bfad4fd7bf12672 | [
"MIT"
] | null | null | null | mktd-keras-miniproject/project/server.py | monkeytechdays/mktd9-keras | 3e8daf16fca2a0c97b6159ea8bfad4fd7bf12672 | [
"MIT"
] | null | null | null | mktd-keras-miniproject/project/server.py | monkeytechdays/mktd9-keras | 3e8daf16fca2a0c97b6159ea8bfad4fd7bf12672 | [
"MIT"
] | null | null | null | import os
from flask import Flask, request
import tensorflow as tf
from werkzeug.utils import secure_filename
from exercices.models import Models
app = Flask(__name__)
# Flask / Tensorflow fix
# https://towardsdatascience.com/deploying-keras-deep-learning-models-with-flask-5da4181436a2
# global graph
# graph = tf.... | 23.4 | 93 | 0.715507 | 106 | 819 | 5.433962 | 0.632075 | 0.048611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01707 | 0.141636 | 819 | 34 | 94 | 24.088235 | 0.802276 | 0.396825 | 0 | 0 | 0 | 0 | 0.103306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0.066667 | 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 |
dd0203a80993a5d9c61e2dfc6ecfe496393957da | 2,973 | py | Python | tests/api/services_test.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | 2 | 2016-06-23T05:57:37.000Z | 2021-02-02T06:47:35.000Z | tests/api/services_test.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | null | null | null | tests/api/services_test.py | comodit/synapse-client | 9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39 | [
"MIT"
] | 2 | 2017-09-23T00:05:51.000Z | 2019-05-13T15:43:48.000Z | import unittest
from tests.api.client import TestClient
from syncli.api.services import ServicesApi
class ServicesApiTest(unittest.TestCase):
@classmethod
def setUpClass(self):
self.client = TestClient(ServicesApi)
@classmethod
def tearDownClass(self):
self.client.disconnect()
... | 31.967742 | 73 | 0.609822 | 337 | 2,973 | 5.311573 | 0.189911 | 0.094413 | 0.06648 | 0.058659 | 0.677654 | 0.602793 | 0.536313 | 0.475978 | 0.407263 | 0.369832 | 0 | 0 | 0.282543 | 2,973 | 92 | 74 | 32.315217 | 0.839194 | 0.116381 | 0 | 0.5 | 0 | 0 | 0.059142 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.171875 | false | 0 | 0.046875 | 0 | 0.234375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd0e1983a33df14f25f11784c06cc522d6a2185f | 948 | py | Python | comprobo_final_project/scripts/providers/april_pose_provider.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | comprobo_final_project/scripts/providers/april_pose_provider.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | comprobo_final_project/scripts/providers/april_pose_provider.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | #!usr/bin/env python
"""
Retrieves Apriltags absolute position, and acts as an importable package
"""
from geometry_msgs.msg import PoseStamped
import tf
class AprilPoseProvider(object):
"""
Takes data from the Apriltags and can sends it to RobotController
"""
def __init__(self, rospy, name):
... | 24.947368 | 111 | 0.660338 | 117 | 948 | 5.162393 | 0.564103 | 0.119205 | 0.13245 | 0.056291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002857 | 0.261603 | 948 | 37 | 112 | 25.621622 | 0.86 | 0.332278 | 0 | 0 | 0 | 0 | 0.037234 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd0f25e4f41d9db962d51f5d49f8a9e11c11dc23 | 1,092 | py | Python | truhanen.serobot.api/truhanen/serobot/api/hardware/proximity_sensor.py | truhanen/serobot | 55fbd5c0b17190d4b8f0f79d8067a4b8dfc8d2f5 | [
"MIT"
] | 1 | 2020-04-09T13:11:01.000Z | 2020-04-09T13:11:01.000Z | truhanen.serobot.api/truhanen/serobot/api/hardware/proximity_sensor.py | truhanen/zerobot | 55fbd5c0b17190d4b8f0f79d8067a4b8dfc8d2f5 | [
"MIT"
] | 9 | 2020-04-11T09:17:33.000Z | 2022-02-27T03:07:28.000Z | truhanen.serobot.api/truhanen/serobot/api/hardware/proximity_sensor.py | truhanen/zerobot | 55fbd5c0b17190d4b8f0f79d8067a4b8dfc8d2f5 | [
"MIT"
] | 1 | 2020-08-09T18:14:42.000Z | 2020-08-09T18:14:42.000Z |
import asyncio as aio
from .bcm_channel import BcmChannel
from .gpio import GpioInput, GpioPull, GpioState
class ProximitySensors:
def __init__(self):
self._left_sensor = GpioInput(BcmChannel.proximity_sensor_left, pull=GpioPull.UP)
self._right_sensor = GpioInput(BcmChannel.proximity_sensor_righ... | 28.736842 | 91 | 0.653846 | 128 | 1,092 | 5.273438 | 0.328125 | 0.077037 | 0.071111 | 0.100741 | 0.515556 | 0.317037 | 0.317037 | 0.317037 | 0.192593 | 0.192593 | 0 | 0 | 0.261905 | 1,092 | 37 | 92 | 29.513514 | 0.837469 | 0.137363 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd120bb23a6e71ebfc8a73d38092b811e9074943 | 4,373 | py | Python | MTCNN/trainer.py | zz00zws/magic_learning | c048d244e9abd38079b5f195e7b2bbfebc616310 | [
"MIT"
] | 1 | 2019-12-02T08:09:54.000Z | 2019-12-02T08:09:54.000Z | MTCNN/trainer.py | zz00zws/magic_learning | c048d244e9abd38079b5f195e7b2bbfebc616310 | [
"MIT"
] | null | null | null | MTCNN/trainer.py | zz00zws/magic_learning | c048d244e9abd38079b5f195e7b2bbfebc616310 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.utils.data as data
import PIL.Image as pimg
import os
import torch.optim as optim
import torchvision
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
path_img1 = r"./data/label1.txt"
with open(path_img1,'r') as f:
line = f.read().st... | 30.158621 | 116 | 0.483192 | 544 | 4,373 | 3.678309 | 0.231618 | 0.027986 | 0.032984 | 0.009995 | 0.231884 | 0.152424 | 0.123938 | 0.105947 | 0.105947 | 0.105947 | 0 | 0.027959 | 0.402927 | 4,373 | 144 | 117 | 30.368056 | 0.738031 | 0 | 0 | 0.104167 | 0 | 0 | 0.036429 | 0.022381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072917 | null | null | 0.0625 | 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 |
dd166e97b988c6bc42ce1ab6799e4da55ef745fe | 2,921 | py | Python | xmppserver/hooks/auth.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/hooks/auth.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/hooks/auth.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | from channels.db import database_sync_to_async
from django.core.exceptions import ObjectDoesNotExist
from django.core.signing import TimestampSigner, BadSignature
from django.db import IntegrityError
from django.contrib.auth import get_user_model
from xmppserver.hooks.base import BaseAuthHook
from ..conf import setting... | 29.806122 | 70 | 0.633345 | 329 | 2,921 | 5.410334 | 0.240122 | 0.040449 | 0.062921 | 0.085393 | 0.361236 | 0.292697 | 0.277528 | 0.277528 | 0.277528 | 0.253371 | 0 | 0 | 0.30024 | 2,921 | 97 | 71 | 30.113402 | 0.870841 | 0.015063 | 0 | 0.511905 | 0 | 0 | 0.009391 | 0.007652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.107143 | 0.083333 | 0.02381 | 0.369048 | 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 |
dd1eaad783ba22a8b67c155693416b1327a3d9ce | 278 | py | Python | src/read_settings.py | incredible-masters-students/smart-key-box | 647d43d69f5cff6beb0cf931aa7638a993c8cd6c | [
"Unlicense"
] | null | null | null | src/read_settings.py | incredible-masters-students/smart-key-box | 647d43d69f5cff6beb0cf931aa7638a993c8cd6c | [
"Unlicense"
] | null | null | null | src/read_settings.py | incredible-masters-students/smart-key-box | 647d43d69f5cff6beb0cf931aa7638a993c8cd6c | [
"Unlicense"
] | null | null | null | import configparser
from pathlib import Path
PROJ_DIR = Path(__file__).resolve().parent.parent
SETTINGS_FILENAME = PROJ_DIR / "settings.cfg"
SMART_KEY_BOX_SETTINGS = configparser.ConfigParser()
SMART_KEY_BOX_SETTINGS.sections()
SMART_KEY_BOX_SETTINGS.read(SETTINGS_FILENAME)
| 25.272727 | 52 | 0.838129 | 37 | 278 | 5.837838 | 0.486486 | 0.111111 | 0.152778 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079137 | 278 | 10 | 53 | 27.8 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
dd21a47ae952b1fdee2bd6dd17ed11b90dcfb16e | 562 | py | Python | archiv/migrations/0014_stelle_ort.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 2 | 2021-06-02T11:27:54.000Z | 2021-08-25T10:29:04.000Z | archiv/migrations/0014_stelle_ort.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 86 | 2021-01-29T12:31:34.000Z | 2022-03-28T11:41:04.000Z | archiv/migrations/0014_stelle_ort.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-03-29 11:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('archiv', '0013_keyword_related_keyword'),
]
operations = [
migrations.AddField(
model_name='ste... | 28.1 | 194 | 0.660142 | 71 | 562 | 5.056338 | 0.605634 | 0.066852 | 0.077994 | 0.122563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042889 | 0.211744 | 562 | 19 | 195 | 29.578947 | 0.767494 | 0.080071 | 0 | 0 | 1 | 0 | 0.149515 | 0.054369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
dd2458ecc06222fa65ec559a2a16b6a5bfe4846d | 329 | py | Python | fortdepend/preprocessor.py | ZedThree/fort_depend.py | ea2caf0010765f00de142d168b05665499ffe1ca | [
"MIT"
] | 33 | 2015-07-28T16:14:19.000Z | 2022-02-04T23:12:57.000Z | fortdepend/preprocessor.py | ZedThree/fort_depend.py | ea2caf0010765f00de142d168b05665499ffe1ca | [
"MIT"
] | 15 | 2015-01-04T20:31:51.000Z | 2022-02-20T08:55:47.000Z | fortdepend/preprocessor.py | ZedThree/fort_depend.py | ea2caf0010765f00de142d168b05665499ffe1ca | [
"MIT"
] | 22 | 2015-01-07T14:49:39.000Z | 2022-03-28T22:54:15.000Z | import io
import pcpp
class FortranPreprocessor(pcpp.Preprocessor):
def __init__(self):
super().__init__()
self.add_path('.')
def parse_to_string(self, text, source):
with io.StringIO() as f:
self.parse(text, source=source)
self.write(f)
return f.ge... | 21.933333 | 45 | 0.598784 | 39 | 329 | 4.769231 | 0.615385 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 329 | 14 | 46 | 23.5 | 0.791489 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd26f1a34bfd9ae21a18add18afcaed85be5950d | 3,080 | py | Python | RestProject/backup_code.py | safsoftwarellc/pyWorkspace | edcacb8cb9220fc6e98c3b02da308cfd0a0e3a28 | [
"MIT"
] | null | null | null | RestProject/backup_code.py | safsoftwarellc/pyWorkspace | edcacb8cb9220fc6e98c3b02da308cfd0a0e3a28 | [
"MIT"
] | null | null | null | RestProject/backup_code.py | safsoftwarellc/pyWorkspace | edcacb8cb9220fc6e98c3b02da308cfd0a0e3a28 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, jsonify, make_response, current_app, send_from_directory, send_file
from main.util.xml_util import get_namespace, remove_namespace, get_xpath_for_element, all_nodes
from main.util.utility import allowed_file
from main.service.xml_db_service import save_xml_data, get_xml_data, remov... | 33.11828 | 105 | 0.723701 | 402 | 3,080 | 5.28607 | 0.251244 | 0.033882 | 0.051765 | 0.028235 | 0.265882 | 0.227294 | 0.227294 | 0.199059 | 0.199059 | 0.199059 | 0 | 0.000752 | 0.136688 | 3,080 | 92 | 106 | 33.478261 | 0.79842 | 0.028247 | 0 | 0.242424 | 0 | 0 | 0.171295 | 0.03446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.060606 | 0.136364 | 0 | 0.439394 | 0.030303 | 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 |
dd28a5a283442358332839eb6becea083872e6d2 | 563 | py | Python | integrate.py | rwberendsen/blit | f025a286b04774ec6dc6a47823254484d3942b78 | [
"MIT"
] | null | null | null | integrate.py | rwberendsen/blit | f025a286b04774ec6dc6a47823254484d3942b78 | [
"MIT"
] | null | null | null | integrate.py | rwberendsen/blit | f025a286b04774ec6dc6a47823254484d3942b78 | [
"MIT"
] | null | null | null | """
integrate.py
Call if you only want to load new data
"""
import os
import sys
from ingest import asn, rabo
fun_integrate = {
'asn': asn.integrate
'rabo': rabo.integrate
}
def integrate(ingestDirectories={}, schema_prefix='blit'):
for bank, directory in ingestDirectories.items():
fu... | 16.085714 | 67 | 0.657194 | 74 | 563 | 4.824324 | 0.567568 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002268 | 0.216696 | 563 | 34 | 68 | 16.558824 | 0.807256 | 0 | 0 | 0 | 0 | 0 | 0.06163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | 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 |
dd307ebb72aeab194086b7a8b5b4c85e87fb42d8 | 6,787 | py | Python | myjdapi/exception.py | ssxdan/My.Jdownloader-API-Python-Library | 7614fbc16fd0b5cbbcfe3c51dd492f866151d450 | [
"MIT"
] | null | null | null | myjdapi/exception.py | ssxdan/My.Jdownloader-API-Python-Library | 7614fbc16fd0b5cbbcfe3c51dd492f866151d450 | [
"MIT"
] | null | null | null | myjdapi/exception.py | ssxdan/My.Jdownloader-API-Python-Library | 7614fbc16fd0b5cbbcfe3c51dd492f866151d450 | [
"MIT"
] | 1 | 2021-05-09T09:24:59.000Z | 2021-05-09T09:24:59.000Z | """Exceptions of the MyJDownloader API."""
from .const import (
EXCEPTION_API_COMMAND_NOT_FOUND,
EXCEPTION_API_INTERFACE_NOT_FOUND,
EXCEPTION_AUTH_FAILED,
EXCEPTION_BAD_PARAMETERS,
EXCEPTION_BAD_REQUEST,
EXCEPTION_CHALLENGE_FAILED,
EXCEPTION_EMAIL_FORBIDDEN,
EXCEPTION_EMAIL_INVALID,
... | 25.419476 | 83 | 0.776779 | 555 | 6,787 | 9.23964 | 0.181982 | 0.078588 | 0.105304 | 0.106474 | 0.122075 | 0.028276 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152792 | 6,787 | 266 | 84 | 25.515038 | 0.891826 | 0.216443 | 0 | 0.236641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015267 | false | 0.236641 | 0.007634 | 0 | 0.274809 | 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 |
dd4381bc14fbf12481a1dbe33485ffc156908f17 | 478 | py | Python | duologsync/consumer/trustmonitor_consumer.py | jjfallete/duo_log_sync | a10cb0be5d6cdee8742502762f862d7b5de897c6 | [
"MIT"
] | 28 | 2020-06-22T23:25:10.000Z | 2022-01-20T20:45:28.000Z | duologsync/consumer/trustmonitor_consumer.py | jjfallete/duo_log_sync | a10cb0be5d6cdee8742502762f862d7b5de897c6 | [
"MIT"
] | 25 | 2020-06-09T14:41:32.000Z | 2022-03-18T17:37:21.000Z | duologsync/consumer/trustmonitor_consumer.py | jjfallete/duo_log_sync | a10cb0be5d6cdee8742502762f862d7b5de897c6 | [
"MIT"
] | 20 | 2020-06-23T13:30:27.000Z | 2022-03-02T20:33:05.000Z | """
Definition of the TrustMonitorConsumer class
"""
from duologsync.config import Config
from duologsync.consumer.consumer import Consumer
class TrustMonitorConsumer(Consumer):
"""
An implementation of the Consumer class for trust monitor logs
"""
def __init__(self, log_format, log_queue, writer, ch... | 29.875 | 90 | 0.759414 | 60 | 478 | 5.716667 | 0.483333 | 0.104956 | 0.122449 | 0.099125 | 0.215743 | 0.215743 | 0.215743 | 0.215743 | 0 | 0 | 0 | 0 | 0.161088 | 478 | 15 | 91 | 31.866667 | 0.855362 | 0.223849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dd483faf6cd411310a44c059ffce4c7f3a8c4289 | 14,143 | py | Python | molior/api/mirror.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | molior/api/mirror.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | molior/api/mirror.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | """
Provides functions for managing aptly mirrors.
"""
from aiohttp import web
import logging
from molior.model.build import Build
from molior.model.project import Project
from molior.model.projectversion import ProjectVersion
from molior.model.buildvariant import BuildVariant
from molior.molior.utils import get_aptl... | 30.678959 | 119 | 0.610408 | 1,557 | 14,143 | 5.434168 | 0.17341 | 0.023638 | 0.028365 | 0.030729 | 0.437419 | 0.372651 | 0.327621 | 0.240397 | 0.210022 | 0.172202 | 0 | 0.010951 | 0.29626 | 14,143 | 460 | 120 | 30.745652 | 0.839144 | 0.073252 | 0 | 0.112821 | 0 | 0 | 0.150461 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.005128 | false | 0.005128 | 0.041026 | 0 | 0.123077 | 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 |
dd4ce1215e1e5eaf35e55bc34d02bb376e7ec6c1 | 1,398 | py | Python | test/test_exception.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | test/test_exception.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | test/test_exception.py | TE-ToshiakiTanaka/atve | e6ad4d2343dc9271d173729c2680eddf3d5dd8a6 | [
"MIT"
] | null | null | null | from nose.tools import with_setup, raises, ok_, eq_, timed
from atve.exception import *
def setup():
pass
def teardown():
pass
@with_setup(setup, teardown)
def test_exception_error_01():
try: raise AtveError()
except AtveError as a: fail()
except TypeError as t:
ok_(True)
@with_setup(set... | 24.526316 | 65 | 0.648069 | 186 | 1,398 | 4.645161 | 0.284946 | 0.072917 | 0.097222 | 0.152778 | 0.68287 | 0.68287 | 0.650463 | 0.650463 | 0.351852 | 0.351852 | 0 | 0.012161 | 0.235336 | 1,398 | 56 | 66 | 24.964286 | 0.796071 | 0 | 0 | 0.520833 | 0 | 0 | 0.116595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.041667 | 0.041667 | 0 | 0.208333 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd4f4209cb9224ec2261f845995a91371dd6ffa7 | 2,510 | py | Python | dataviz/politics_g7.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 119 | 2017-07-22T15:02:30.000Z | 2021-08-02T10:42:59.000Z | dataviz/politics_g7.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | null | null | null | dataviz/politics_g7.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 28 | 2017-08-04T14:28:41.000Z | 2019-11-27T23:46:14.000Z | from pudzu.charts import *
from pudzu.dates import *
import dateparser
# -------------
# G7 time chart
# -------------
START = dateparser.parse('1 January 1960').date()
END = datetime.date.today()
def duration(d):
return dateparser.parse(get_non(d, 'end', END.isoformat())).date() - max(START, datepar... | 57.045455 | 170 | 0.655777 | 371 | 2,510 | 4.350404 | 0.374663 | 0.039033 | 0.040273 | 0.026022 | 0.106568 | 0.075589 | 0.075589 | 0.050805 | 0.050805 | 0 | 0 | 0.034451 | 0.144223 | 2,510 | 43 | 171 | 58.372093 | 0.716946 | 0.016335 | 0 | 0 | 0 | 0 | 0.196945 | 0.009083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.096774 | 0.129032 | 0.290323 | 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 |
dd526991a502509189ba8ac6bce1cfa2d1bac730 | 866 | py | Python | grip/models.py | geru-br/keyloop | b3147984ef2517d5d53518f969ad9637e1b54a00 | [
"MIT"
] | 1 | 2022-01-18T08:04:18.000Z | 2022-01-18T08:04:18.000Z | grip/models.py | geru-br/keyloop | b3147984ef2517d5d53518f969ad9637e1b54a00 | [
"MIT"
] | 1 | 2020-03-16T20:35:07.000Z | 2020-03-16T20:35:07.000Z | grip/models.py | geru-br/keyloop | b3147984ef2517d5d53518f969ad9637e1b54a00 | [
"MIT"
] | null | null | null | import arrow
import sqlalchemy as sa
from pyramid.threadlocal import get_current_request
from sqlalchemy_utils import ArrowType, IPAddressType
def current_ip(*args, **kwargs):
req = get_current_request()
if req and hasattr(req, "remote_addr"):
return req.client_addr
else:
return None
def... | 25.470588 | 88 | 0.69746 | 104 | 866 | 5.653846 | 0.413462 | 0.061224 | 0.057823 | 0.081633 | 0.331633 | 0.331633 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0.213626 | 866 | 33 | 89 | 26.242424 | 0.863436 | 0.045035 | 0 | 0 | 0 | 0 | 0.013398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0.04 | 0.56 | 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 |
dd59620a4a4ad12755fa2d23e5abc415a3554a01 | 1,595 | py | Python | ocd_backend/models/definitions/person.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | ocd_backend/models/definitions/person.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | ocd_backend/models/definitions/person.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | """The classes in this person module are derived from and described by:
http://www.w3.org/ns/person#
"""
import foaf
from ocd_backend.models.definitions import Opengov, Schema, Foaf, Rdfs, \
Dcterms, Bio, Vcard, Person as PersonNS, Meeting
from ocd_backend.models.properties import StringProperty, URLProperty, Date... | 44.305556 | 90 | 0.741693 | 157 | 1,595 | 7.43949 | 0.528662 | 0.119863 | 0.056507 | 0.034247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000736 | 0.148589 | 1,595 | 35 | 91 | 45.571429 | 0.859352 | 0.060815 | 0 | 0 | 0 | 0 | 0.144869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.931034 | 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 |
dd5a1f4827ef20bd3460fc2bfa340ec275ed49a0 | 610 | py | Python | postgresql/obj_id.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | postgresql/obj_id.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | postgresql/obj_id.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | import random
import pandas as pd
# f = open("obj_id.csv", "w")
# f.write("obj_id\n")
path = "C:\\Users\\saim\\Documents\\POI_clustering\\postgresql\\driving.csv"
df = pd.read_csv(path)
for x in range(len(df)):
print(str(random.randint(1,len(df) + 1)))
# f.write(str(random.randint(0,99)) + "\n")
# f.close()
# for... | 19.677419 | 76 | 0.506557 | 98 | 610 | 3.112245 | 0.489796 | 0.032787 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048499 | 0.290164 | 610 | 30 | 77 | 20.333333 | 0.655889 | 0.588525 | 0 | 0 | 0 | 0 | 0.286325 | 0.286325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dd5db35af6dba131eaee675ac31bd1fd722df96c | 962 | py | Python | FOCI_M8_Climatology/M8_historic_regrid.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | FOCI_M8_Climatology/M8_historic_regrid.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | FOCI_M8_Climatology/M8_historic_regrid.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 22 13:45:41 2017
@author: bell
"""
import numpy as np
import pandas as pd
data = pd.read_excel('/Volumes/WDC_internal/Users/bell/in_and_outbox/2017/stabeno/BeringM8_Historic/M8_50kmrad_allhistoric_profiles_populated.xlsx',1)
dgrp = data.groupby('... | 40.083333 | 249 | 0.660083 | 164 | 962 | 3.780488 | 0.506098 | 0.056452 | 0.064516 | 0.053226 | 0.267742 | 0.267742 | 0.267742 | 0.203226 | 0.203226 | 0.16129 | 0 | 0.033839 | 0.109148 | 962 | 24 | 249 | 40.083333 | 0.689615 | 0.044699 | 0 | 0 | 0 | 0 | 0.411628 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 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 |
dd5f61858482b4bb8634b227001e52134af9fef0 | 2,331 | py | Python | examples/print2image/myPrinter.py | svast/virtualPrinter | 23a94139e22c03b6b3fe2dd36ead96b80f96c21b | [
"MIT"
] | 19 | 2018-09-21T02:35:20.000Z | 2022-03-09T03:18:42.000Z | examples/print2image/myPrinter.py | svast/virtualPrinter | 23a94139e22c03b6b3fe2dd36ead96b80f96c21b | [
"MIT"
] | 1 | 2020-12-17T00:05:52.000Z | 2020-12-17T00:05:52.000Z | examples/print2image/myPrinter.py | svast/virtualPrinter | 23a94139e22c03b6b3fe2dd36ead96b80f96c21b | [
"MIT"
] | 11 | 2018-09-17T09:07:47.000Z | 2022-03-22T08:02:56.000Z | #!/usr/bin/env
# -*- coding: utf-8 -*-
"""
A virtual printer device that creates an image file as output
"""
import os
from virtualPrinter import Printer
try:
from PIL import Image
except ImportError,e:
print 'Requires PIL (Python Imaging Library)'
print 'Install it with the command:'
print ' pip insta... | 26.793103 | 91 | 0.667525 | 310 | 2,331 | 4.967742 | 0.483871 | 0.00974 | 0.019481 | 0.027273 | 0.084416 | 0.066234 | 0.066234 | 0.066234 | 0.066234 | 0.066234 | 0 | 0.004831 | 0.200772 | 2,331 | 87 | 92 | 26.793103 | 0.821793 | 0.051909 | 0 | 0.035714 | 0 | 0 | 0.201216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.196429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd6341e9b3033a6ad0c930f70796e6f12538885b | 1,891 | py | Python | tests/test_crop.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | 5 | 2019-10-14T18:56:08.000Z | 2019-10-17T13:50:11.000Z | tests/test_crop.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | 1 | 2021-04-06T18:05:19.000Z | 2021-04-06T18:05:19.000Z | tests/test_crop.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | null | null | null | import invertransforms as T
from invertransforms.lib import InvertibleError
from tests.invertible_test_case import InvertibleTestCase
class TestCrop(InvertibleTestCase):
def setUp(self) -> None:
super().setUp()
self.location = self.n
self.tf = T.Crop(location=self.location, size=self.crop_... | 38.591837 | 114 | 0.677948 | 270 | 1,891 | 4.596296 | 0.233333 | 0.058018 | 0.077357 | 0.101531 | 0.525383 | 0.300564 | 0.225625 | 0.099919 | 0.046737 | 0 | 0 | 0.007931 | 0.199894 | 1,891 | 48 | 115 | 39.395833 | 0.812293 | 0.050238 | 0 | 0.111111 | 0 | 0 | 0.002231 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd66f049d323b379c714d00f9acb22b7fdbf3982 | 245 | py | Python | Beginner/Random Pair (RNDPAIR)/randompair.py | anishsingh42/CodeChef | 50f5c0438516210895e513bc4ee959b9d99ef647 | [
"Apache-2.0"
] | 127 | 2020-10-13T18:04:35.000Z | 2022-02-17T10:56:27.000Z | Beginner/Random Pair (RNDPAIR)/randompair.py | anishsingh42/CodeChef | 50f5c0438516210895e513bc4ee959b9d99ef647 | [
"Apache-2.0"
] | 132 | 2020-10-13T18:06:53.000Z | 2021-10-17T18:44:26.000Z | Beginner/Random Pair (RNDPAIR)/randompair.py | anishsingh42/CodeChef | 50f5c0438516210895e513bc4ee959b9d99ef647 | [
"Apache-2.0"
] | 364 | 2020-10-13T18:04:52.000Z | 2022-03-04T14:34:53.000Z | t = int(input())
while t:
N = int(input())
A = list(map(int, input().split()))
l = []
for i in range(N):
for j in range(i+1, N):
l.append(A[i]+A[j])
c = l.count(max(l))
print(c/len(l))
t = t-1 | 15.3125 | 39 | 0.436735 | 45 | 245 | 2.377778 | 0.488889 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.342857 | 245 | 16 | 40 | 15.3125 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 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 |
dd68f627da5059292309c6f6e80f369f3e2d31a0 | 5,768 | py | Python | data_loader.py | NetoPedro/Street-Segmentation-Pytorch | 91087edaf24f80da37facc6e06f425010732052a | [
"MIT"
] | 3 | 2020-06-25T18:23:07.000Z | 2021-03-24T12:20:45.000Z | data_loader.py | NetoPedro/Street-Segmentation-Pytorch | 91087edaf24f80da37facc6e06f425010732052a | [
"MIT"
] | null | null | null | data_loader.py | NetoPedro/Street-Segmentation-Pytorch | 91087edaf24f80da37facc6e06f425010732052a | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torch.utils.data import Dataset
import glob
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
import cv2
from patchify import patchify
from skimage import io
class Bdd100kDataset(Dataset):
def __init__(self,path,mode="t... | 42.725926 | 191 | 0.505721 | 695 | 5,768 | 4.020144 | 0.208633 | 0.040086 | 0.042949 | 0.035075 | 0.384037 | 0.340372 | 0.311382 | 0.273443 | 0.211167 | 0.211167 | 0 | 0.047679 | 0.316401 | 5,768 | 135 | 192 | 42.725926 | 0.660918 | 0.010229 | 0 | 0.180952 | 0 | 0 | 0.064985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104762 | 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 |
dd69b8491a5465efc52db75daf17b04ac8ac7f4b | 2,753 | py | Python | demo_images.py | chongkewu/Towards-Realtime-MOT | 9cfe4823e72dccd38b93b6838bf6e1c8955a3d7d | [
"MIT"
] | null | null | null | demo_images.py | chongkewu/Towards-Realtime-MOT | 9cfe4823e72dccd38b93b6838bf6e1c8955a3d7d | [
"MIT"
] | null | null | null | demo_images.py | chongkewu/Towards-Realtime-MOT | 9cfe4823e72dccd38b93b6838bf6e1c8955a3d7d | [
"MIT"
] | null | null | null | import os
import os.path as osp
import cv2
import logging
import argparse
import motmetrics as mm
from tracker.multitracker import JDETracker
from utils import visualization as vis
from utils.utils import *
from utils.io import read_results
from utils.log import logger
from utils.timer import Timer
from utils.evaluati... | 41.089552 | 123 | 0.709771 | 402 | 2,753 | 4.71393 | 0.370647 | 0.052243 | 0.098681 | 0.026913 | 0.063325 | 0.028496 | 0.028496 | 0 | 0 | 0 | 0 | 0.008587 | 0.154014 | 2,753 | 66 | 124 | 41.712121 | 0.805067 | 0.004359 | 0 | 0 | 0 | 0 | 0.221249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.309091 | 0 | 0.327273 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dd71f8c7dd97d9f3f2c93d1a2ecf6c2a4c5b7d78 | 1,469 | py | Python | back/accounts/migrations/0001_initial.py | Eidard/pocs-official-web | 51820e61fcfea241d1d55d5c22cc64d4fc1d23b9 | [
"Unlicense"
] | 6 | 2021-02-02T05:07:56.000Z | 2021-06-22T02:12:41.000Z | back/accounts/migrations/0001_initial.py | Eidard/pocs-official-web | 51820e61fcfea241d1d55d5c22cc64d4fc1d23b9 | [
"Unlicense"
] | 2 | 2021-08-06T02:48:59.000Z | 2021-08-09T00:57:40.000Z | back/accounts/migrations/0001_initial.py | Eidard/pocs-official-web | 51820e61fcfea241d1d55d5c22cc64d4fc1d23b9 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-05 12:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 38.657895 | 121 | 0.582709 | 150 | 1,469 | 5.58 | 0.5 | 0.075269 | 0.107527 | 0.143369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028011 | 0.270933 | 1,469 | 37 | 122 | 39.702703 | 0.753501 | 0.030633 | 0 | 0 | 1 | 0 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.1 | 0 | 0.233333 | 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 |
dd743cd4b596a648d90ab63766f4f7ae9f9061a0 | 880 | py | Python | scripts/a50.py | lexnederbragt/denovo-assembly-tutorial | 3b532d32ea2a1b83e4105b188c0e4e4c93555104 | [
"CC-BY-3.0"
] | 10 | 2016-11-17T17:05:54.000Z | 2021-01-16T12:36:13.000Z | scripts/a50.py | lexnederbragt/denovo-assembly-tutorial | 3b532d32ea2a1b83e4105b188c0e4e4c93555104 | [
"CC-BY-3.0"
] | null | null | null | scripts/a50.py | lexnederbragt/denovo-assembly-tutorial | 3b532d32ea2a1b83e4105b188c0e4e4c93555104 | [
"CC-BY-3.0"
] | 8 | 2016-03-01T09:58:31.000Z | 2021-12-01T04:58:50.000Z | # by Nick Loman
from Bio import SeqIO
import sys
class Manifest:
def __init__(self, cols):
self.id = cols[0]
self.path = cols[1]
self.extra = cols[2:]
def read_manifest(fn):
samples = []
for ln in open(fn):
if ln.startswith('#'):... | 26.666667 | 97 | 0.539773 | 121 | 880 | 3.809917 | 0.487603 | 0.060738 | 0.034707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013445 | 0.323864 | 880 | 32 | 98 | 27.5 | 0.761345 | 0.122727 | 0 | 0 | 0 | 0 | 0.015666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 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 |
dd75f9e5c2c5562fbecc753996c205714009bf31 | 258 | py | Python | filename.py | greallye/voice_authentication_python | 3478ee1757e6a22342a4045590cc04015721e9dd | [
"MIT"
] | 2 | 2019-04-04T04:24:52.000Z | 2022-02-20T18:36:17.000Z | filename.py | greallye/voice_authentication_python | 3478ee1757e6a22342a4045590cc04015721e9dd | [
"MIT"
] | null | null | null | filename.py | greallye/voice_authentication_python | 3478ee1757e6a22342a4045590cc04015721e9dd | [
"MIT"
] | 1 | 2019-04-04T04:24:55.000Z | 2019-04-04T04:24:55.000Z | import os
directory = "audioRefrence/"
for filename in os.listdir(directory):
if filename.endswith(".wav"):
file = os.path.join(filename)
userId = os.path.splitext(file)[0]
print userId
continue
else:
continue | 25.8 | 42 | 0.620155 | 30 | 258 | 5.333333 | 0.666667 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.271318 | 258 | 10 | 43 | 25.8 | 0.845745 | 0 | 0 | 0.2 | 0 | 0 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
dd858ed733f3d9ca9ba5cd7966ab78d981c0e501 | 1,161 | py | Python | search_in_rotated.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null | search_in_rotated.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null | search_in_rotated.py | sarveshbhatnagar/CompetetiveProgramming | 09ff483eb17c3292c9b7fa03e622a240406ce8ca | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def search(self, nums: List[int], target: int) -> int:
l = 0
r = len(nums) - 1
while l <= r:
m = (l+r)//2
if(nums[m] == target):
return m
if(nums[l] <= nums[m]):
# LEFT SORTED PORT... | 25.8 | 59 | 0.334195 | 115 | 1,161 | 3.373913 | 0.269565 | 0.07732 | 0.123711 | 0.134021 | 0.518041 | 0.350515 | 0.350515 | 0.185567 | 0.185567 | 0.185567 | 0 | 0.026052 | 0.570198 | 1,161 | 44 | 60 | 26.386364 | 0.751503 | 0.100775 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.034483 | 0.034483 | 0 | 0.172414 | 0.034483 | 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 |
dd8da1f341b007f24fc9a806585931ed84616d02 | 5,648 | py | Python | depictions/settings/base.py | acdh-oeaw/official-depictions | d562c1bef88834ea2cae35ed119b2538573249a3 | [
"MIT"
] | null | null | null | depictions/settings/base.py | acdh-oeaw/official-depictions | d562c1bef88834ea2cae35ed119b2538573249a3 | [
"MIT"
] | 12 | 2020-02-11T21:32:03.000Z | 2022-03-24T08:13:04.000Z | depictions/settings/base.py | acdh-oeaw/official-depictions | d562c1bef88834ea2cae35ed119b2538573249a3 | [
"MIT"
] | null | null | null | """
Django settings for depictions project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | 30.042553 | 97 | 0.668024 | 614 | 5,648 | 5.986971 | 0.40228 | 0.053047 | 0.01741 | 0.026115 | 0.2179 | 0.20457 | 0.109902 | 0.083243 | 0.047878 | 0.025571 | 0 | 0.028608 | 0.17068 | 5,648 | 187 | 98 | 30.203209 | 0.756191 | 0.137925 | 0 | 0.014599 | 1 | 0.029197 | 0.562384 | 0.259847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.036496 | 0.007299 | 0 | 0.007299 | 0.007299 | 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 |
06b6c59a68adfd7a23ce91086c462482161d71c5 | 1,376 | py | Python | singleview.py | puhachov/Discovering-spammers-from-multiple-views | 0484552af19e68148bd7c29d3a726b4323c00834 | [
"MIT"
] | 1 | 2022-01-23T11:28:53.000Z | 2022-01-23T11:28:53.000Z | singleview.py | puhachov/Discovering-spammers-from-multiple-views | 0484552af19e68148bd7c29d3a726b4323c00834 | [
"MIT"
] | null | null | null | singleview.py | puhachov/Discovering-spammers-from-multiple-views | 0484552af19e68148bd7c29d3a726b4323c00834 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.svm import SVC
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
import pandas as pd
class singleview():
def __init__(self, data, class_):
self.X = np.copy(np.transpose(data))
self.ground_truth = np.sum(class_, axis = ... | 38.222222 | 96 | 0.653343 | 175 | 1,376 | 4.822857 | 0.331429 | 0.248815 | 0.094787 | 0.080569 | 0.117299 | 0.117299 | 0.117299 | 0.116114 | 0.116114 | 0.116114 | 0 | 0.016997 | 0.230378 | 1,376 | 35 | 97 | 39.314286 | 0.779981 | 0 | 0 | 0 | 0 | 0 | 0.097668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.36 | 0.16 | 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 |
06c04a638321ef98a7cf1045e4d758fd796979a4 | 1,328 | py | Python | insta/migrations/0003_auto_20201019_1326.py | Abzed/insta-clone | 6e655ad73bc52072e91f47224039b1317e4f5049 | [
"MIT"
] | null | null | null | insta/migrations/0003_auto_20201019_1326.py | Abzed/insta-clone | 6e655ad73bc52072e91f47224039b1317e4f5049 | [
"MIT"
] | null | null | null | insta/migrations/0003_auto_20201019_1326.py | Abzed/insta-clone | 6e655ad73bc52072e91f47224039b1317e4f5049 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-19 10:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import insta.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('inst... | 30.883721 | 137 | 0.612199 | 139 | 1,328 | 5.697842 | 0.410072 | 0.056818 | 0.05303 | 0.083333 | 0.113636 | 0.113636 | 0.113636 | 0.113636 | 0.113636 | 0 | 0 | 0.021762 | 0.273343 | 1,328 | 42 | 138 | 31.619048 | 0.798964 | 0.033886 | 0 | 0.444444 | 1 | 0 | 0.09758 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.194444 | 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 |
06c3c7a6f5717b00db5be2b6e4a4f5cc83105d2f | 667 | py | Python | app/grandchallenge/reader_studies/migrations/0005_readerstudy_workstation_config.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/reader_studies/migrations/0005_readerstudy_workstation_config.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/reader_studies/migrations/0005_readerstudy_workstation_config.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-15 10:05
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("workstation_configs", "0001_initial"),
("reader_studies", "0004_auto_20191002_1322"),
]
operations = [
... | 25.653846 | 61 | 0.592204 | 66 | 667 | 5.818182 | 0.666667 | 0.0625 | 0.072917 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075594 | 0.305847 | 667 | 25 | 62 | 26.68 | 0.75378 | 0.067466 | 0 | 0 | 1 | 0 | 0.216129 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
06c94a3bbbe03fa86e5b09f84c04d605d0000e3c | 3,216 | py | Python | src/tasks.py | acs6610987/CredibleWeb | addc3dce55d49b21d0baede4dddad7a0aa0532b6 | [
"MIT"
] | null | null | null | src/tasks.py | acs6610987/CredibleWeb | addc3dce55d49b21d0baede4dddad7a0aa0532b6 | [
"MIT"
] | null | null | null | src/tasks.py | acs6610987/CredibleWeb | addc3dce55d49b21d0baede4dddad7a0aa0532b6 | [
"MIT"
] | null | null | null | import webapp2
from google.appengine.ext import db
from data_models import URLStorage, SnapshotStorage
import conf
import urllib
from google.appengine.api import urlfetch, taskqueue
import json
import urllib2
import re
import logging
class URLInfoDownloadHandler(webapp2.RequestHandler):
def post(self):
key... | 36.134831 | 112 | 0.548197 | 352 | 3,216 | 4.914773 | 0.389205 | 0.044509 | 0.021965 | 0.021965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023159 | 0.328669 | 3,216 | 88 | 113 | 36.545455 | 0.778138 | 0.004975 | 0 | 0.025 | 0 | 0.0125 | 0.100656 | 0.015005 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.125 | 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 |
06cbc6a4f4e7f41d13747c7c70778ce7bce497cd | 31,983 | py | Python | packages/w3af/w3af/plugins/output/xml_file.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/plugins/output/xml_file.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/plugins/output/xml_file.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | """
xml_file.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that it... | 33.98831 | 96 | 0.629522 | 4,078 | 31,983 | 4.737862 | 0.163315 | 0.012577 | 0.010558 | 0.007401 | 0.342788 | 0.271259 | 0.236685 | 0.209616 | 0.200662 | 0.195021 | 0 | 0.006942 | 0.283901 | 31,983 | 940 | 97 | 34.024468 | 0.836659 | 0.102867 | 0 | 0.295983 | 0 | 0 | 0.142452 | 0.015087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002114 | 0.061311 | 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 |
06d17e1327456ea7fc2376a7520afea4aafbb72d | 740 | py | Python | src/zumanji/admin.py | disqus/zumanji | c68bbae5381f6ab4733256ab0af0ca21af34abcf | [
"Apache-2.0"
] | 8 | 2015-07-14T16:07:22.000Z | 2021-07-05T02:06:31.000Z | src/zumanji/admin.py | disqus/zumanji | c68bbae5381f6ab4733256ab0af0ca21af34abcf | [
"Apache-2.0"
] | null | null | null | src/zumanji/admin.py | disqus/zumanji | c68bbae5381f6ab4733256ab0af0ca21af34abcf | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from zumanji.models import Project, Revision, Build
class ProjectAdmin(admin.ModelAdmin):
list_display = ('label',)
search_fields = ('label',)
admin.site.register(Project, ProjectAdmin)
class RevisionAdmin(admin.ModelAdmin):
list_display = ('label', 'project')
list_... | 27.407407 | 72 | 0.710811 | 81 | 740 | 6.283951 | 0.358025 | 0.088409 | 0.111984 | 0.153242 | 0.235756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140541 | 740 | 26 | 73 | 28.461538 | 0.800314 | 0 | 0 | 0 | 0 | 0 | 0.194595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.823529 | 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 |
06d3d3fcbfb72b630cfccde711744699d4c5e431 | 2,274 | py | Python | maestro/container.py | kstaken/maestro | 5f7537acece4612ef0c9a5b8f59f060aa980468e | [
"MIT"
] | 113 | 2015-01-02T20:42:06.000Z | 2022-02-06T09:48:13.000Z | maestro/container.py | kstaken/maestro | 5f7537acece4612ef0c9a5b8f59f060aa980468e | [
"MIT"
] | 3 | 2015-06-12T10:25:51.000Z | 2020-11-25T04:46:37.000Z | maestro/container.py | toscanini/maestro | 5f7537acece4612ef0c9a5b8f59f060aa980468e | [
"MIT"
] | 15 | 2015-01-30T06:20:23.000Z | 2022-02-06T22:28:50.000Z | import os, sys
from exceptions import ContainerError
import utils, StringIO, logging
import py_backend
class Container:
def __init__(self, name, state, config, mounts=None):
self.log = logging.getLogger('maestro')
self.state = state
self.config = config
self.name = name
self.mounts = mou... | 33.940299 | 99 | 0.684257 | 302 | 2,274 | 5.019868 | 0.284768 | 0.08905 | 0.14248 | 0.158311 | 0.333113 | 0.209103 | 0.118734 | 0.118734 | 0.098945 | 0.098945 | 0 | 0.001081 | 0.186016 | 2,274 | 66 | 100 | 34.454545 | 0.817936 | 0.144239 | 0 | 0.046512 | 0 | 0 | 0.148969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.093023 | 0.046512 | 0.418605 | 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 |
06eeaf05d69eb47bd2f68d030a3ee4726240afd6 | 620 | py | Python | examples/core/sendfile/process.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | 4 | 2015-11-05T11:51:12.000Z | 2020-12-30T18:55:58.000Z | examples/core/sendfile/process.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | 5 | 2021-11-16T17:21:51.000Z | 2021-11-16T17:22:09.000Z | examples/core/sendfile/process.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import sys, os
from smisk.core import *
class MyApp(Application):
def service(self):
if self.request.url.path[-4:] == '.jpg':
path = os.path.abspath(self.request.url.path.replace('..', '').lstrip('/'))
sys.stderr.write("Sending file %s\n" % path)
self.res... | 29.52381 | 92 | 0.645161 | 87 | 620 | 4.586207 | 0.701149 | 0.120301 | 0.070175 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.174194 | 620 | 21 | 93 | 29.52381 | 0.775391 | 0.058065 | 0 | 0 | 0 | 0 | 0.240137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06f2092127b5713678a0d67814cf6579f8f426d0 | 31,189 | py | Python | src/error_map.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | src/error_map.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | 1 | 2020-12-05T14:22:03.000Z | 2020-12-05T14:22:03.000Z | src/error_map.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | error_map = {
"abecoando": "abencoando",
"abigos": "amigos",
"abilidade": "habilidade",
"abilidades": "habilidades",
"abisurdo": "absurdo",
"abitual": "habitual",
"abrcs": "abracos",
"abrou": "abriu",
"abss": "abracos",
"abussda": "abusada",
"abussdo": "abusado",
"accept": "aceito",
"account":... | 26.209244 | 52 | 0.616788 | 2,452 | 31,189 | 7.845024 | 0.898858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152361 | 31,189 | 1,189 | 53 | 26.231287 | 0.727617 | 0 | 0 | 0 | 0 | 0 | 0.618936 | 0.004104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001682 | 0.000841 | 0 | 0.000841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6603945f1c8fed4f3f4e46e3bd121342757c4be2 | 1,129 | py | Python | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | """
File: ceesresponse.py
Author: Fernando Crespo Gravalos (cees.project.official@gmail.com)
Date: 2014/06/04
"""
from datetime import datetime
class CeesResponse:
"""
This class wraps the responses sent to customer device.
The CEES Response contains:
- Status: OK, NOK.
- Root Cause: SUCCESS, INVALID_INPUT... | 38.931034 | 132 | 0.709477 | 149 | 1,129 | 5.255034 | 0.543624 | 0.057471 | 0.038314 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016146 | 0.177148 | 1,129 | 28 | 133 | 40.321429 | 0.826695 | 0.496014 | 0 | 0 | 0 | 0 | 0.189293 | 0.042065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6606e0c33274316f3a16d360b7c59a3d687db813 | 3,107 | py | Python | vaineye/htpasswd.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | 1 | 2020-06-01T14:31:48.000Z | 2020-06-01T14:31:48.000Z | vaineye/htpasswd.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | null | null | null | vaineye/htpasswd.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | null | null | null | class NoSuchUser(Exception):
pass
# From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325204
def apache_md5crypt(password, salt, magic='$apr1$'):
# /* The password first, since that is what is most unknown */ /* Then our magic string */ /* Then the raw salt */
import md5
m = md5.new()
... | 30.165049 | 118 | 0.558095 | 391 | 3,107 | 4.378517 | 0.375959 | 0.075935 | 0.014019 | 0.025701 | 0.080607 | 0.026869 | 0 | 0 | 0 | 0 | 0 | 0.045645 | 0.30898 | 3,107 | 102 | 119 | 30.460784 | 0.751747 | 0.140328 | 0 | 0.181818 | 0 | 0 | 0.049944 | 0.024033 | 0 | 0 | 0.003004 | 0 | 0 | 1 | 0.051948 | false | 0.324675 | 0.038961 | 0 | 0.155844 | 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 |
660e27763d6c7649cf05112db0f97437a81fe4e6 | 2,035 | py | Python | lekce02_agregace/04_grupovani.py | qenett/pandas-intro-clone | b79d5383f37faf797eb443165fd4e3f3546f41a8 | [
"CC0-1.0"
] | 1 | 2020-06-01T11:08:30.000Z | 2020-06-01T11:08:30.000Z | lekce02_agregace/04_grupovani.py | qenett/pandas-intro-clone | b79d5383f37faf797eb443165fd4e3f3546f41a8 | [
"CC0-1.0"
] | null | null | null | lekce02_agregace/04_grupovani.py | qenett/pandas-intro-clone | b79d5383f37faf797eb443165fd4e3f3546f41a8 | [
"CC0-1.0"
] | null | null | null | import pandas
u202 = pandas.read_csv("u202.csv", encoding="utf-8")
u203 = pandas.read_csv("u203.csv", encoding="utf-8")
u302 = pandas.read_csv("u302.csv", encoding="utf-8")
u202.dropna(inplace=True)
u203.dropna(inplace=True)
u302.dropna(inplace=True)
u202["místnost"] = "u202"
u203["místnost"] = "u203"
u302["místnost... | 24.22619 | 117 | 0.707617 | 273 | 2,035 | 5.21978 | 0.501832 | 0.046316 | 0.036491 | 0.042105 | 0.053333 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0.038746 | 0.137592 | 2,035 | 83 | 118 | 24.518072 | 0.773219 | 0.423096 | 0 | 0 | 0 | 0 | 0.181343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.413793 | 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 |
660ec95e61516295e5f14c72425e71b3d9e84455 | 409 | py | Python | froide_crowdfunding/migrations/0005_crowdfunding_public_interest.py | okfde/froide-crowdfunding | b67ea484529e69f65203f7b5e77e8e7db6a0c2e7 | [
"MIT"
] | 1 | 2019-03-13T20:11:59.000Z | 2019-03-13T20:11:59.000Z | froide_crowdfunding/migrations/0005_crowdfunding_public_interest.py | okfde/froide-crowdfunding | b67ea484529e69f65203f7b5e77e8e7db6a0c2e7 | [
"MIT"
] | null | null | null | froide_crowdfunding/migrations/0005_crowdfunding_public_interest.py | okfde/froide-crowdfunding | b67ea484529e69f65203f7b5e77e8e7db6a0c2e7 | [
"MIT"
] | 1 | 2019-05-01T12:34:46.000Z | 2019-05-01T12:34:46.000Z | # Generated by Django 2.1.8 on 2019-04-15 09:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('froide_crowdfunding', '0004_contribution_public'),
]
operations = [
migrations.AddField(
model_name='crowdfunding',
... | 21.526316 | 60 | 0.621027 | 42 | 409 | 5.928571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 0.271394 | 409 | 18 | 61 | 22.722222 | 0.771812 | 0.110024 | 0 | 0 | 1 | 0 | 0.19337 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6613784465fbe681eca8f0c3cf2705afe08e720c | 308 | py | Python | test.py | Adelved/synth-cube | 4f7f8af5140edd3b5da61dfe391085e32d9fb034 | [
"MIT"
] | null | null | null | test.py | Adelved/synth-cube | 4f7f8af5140edd3b5da61dfe391085e32d9fb034 | [
"MIT"
] | null | null | null | test.py | Adelved/synth-cube | 4f7f8af5140edd3b5da61dfe391085e32d9fb034 | [
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
import scipy as sp
import scipy.ndimage
from fault_utils import *
vol = Cube(128)
vol.fold_with_gaussian(10)
vol.single_normal_fault(dip=20,position=10,throw=5,orientation=40,strike_type="linear")
print(np.unique(vol.fault))
plt.imshow(vol.seis[0,:,:])
| 20.533333 | 87 | 0.779221 | 53 | 308 | 4.415094 | 0.698113 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046595 | 0.094156 | 308 | 14 | 88 | 22 | 0.792115 | 0 | 0 | 0 | 0 | 0 | 0.019544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
661dae858c1cb2660f91e159e8c4de39caebf99f | 370 | py | Python | app/models.py | seethadixit/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | 1 | 2018-11-13T03:10:56.000Z | 2018-11-13T03:10:56.000Z | app/models.py | seethavenkatadri/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | null | null | null | app/models.py | seethavenkatadri/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | null | null | null | import db
from sqlalchemy import Column,Integer,String
class BaseModel(db.Model):
__abstract__ = True
# define here __repr__ and json methods or any common method
# that you need for all your models
class TestModel(BaseModel):
__tablename__ = 'test_table'
# define your model
id = Column(Integer... | 30.833333 | 64 | 0.72973 | 50 | 370 | 5.12 | 0.76 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.2 | 370 | 12 | 65 | 30.833333 | 0.85473 | 0.297297 | 0 | 0 | 0 | 0 | 0.038911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6624984d4dc57068ea5cd2d9159a563f960f1d4a | 1,276 | py | Python | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | from itertools import chain
class DefaultConfigMixin():
@property
def _default_config(self):
if (hasattr(self.bot_config, 'DEFAULT_CONFIG') and
self.name in self.bot_config.DEFAULT_CONFIG):
return self.bot_config.DEFAULT_CONFIG[self.name]
def __init__(self, bot, name=N... | 32.717949 | 61 | 0.626176 | 134 | 1,276 | 5.671642 | 0.223881 | 0.307895 | 0.111842 | 0.078947 | 0.263158 | 0.160526 | 0.118421 | 0.118421 | 0 | 0 | 0 | 0 | 0.297806 | 1,276 | 38 | 62 | 33.578947 | 0.848214 | 0 | 0 | 0.15625 | 0 | 0 | 0.015674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 0 | 0.28125 | 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 |
6628a86502e4b471970a8631ac26d23a2eced8ee | 838 | py | Python | setup.py | msharp/epistle | 5ca7e2cface6b66f9ee0e33bf4798ddb51ddd18d | [
"MIT"
] | null | null | null | setup.py | msharp/epistle | 5ca7e2cface6b66f9ee0e33bf4798ddb51ddd18d | [
"MIT"
] | null | null | null | setup.py | msharp/epistle | 5ca7e2cface6b66f9ee0e33bf4798ddb51ddd18d | [
"MIT"
] | 1 | 2018-09-07T02:43:59.000Z | 2018-09-07T02:43:59.000Z | from setuptools import setup, find_packages
import epistle
setup(
name='epistle',
version=epistle.__version__,
license=epistle.__license__,
author=epistle.__author__,
description="Note taking with version control",
url='https://github.com/msharp/epistle',
author_email='maxsharples@gmail.com... | 27.933333 | 51 | 0.612172 | 80 | 838 | 6.1875 | 0.65 | 0.048485 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.254177 | 838 | 29 | 52 | 28.896552 | 0.784 | 0 | 0 | 0.071429 | 0 | 0 | 0.434368 | 0.02506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
66404493e1c70436b97fa11d6632e05785424a91 | 5,228 | py | Python | src/yec/nhmfl/icr/MzFinder/ui/Add_mz_dialog.py | ICR-MagnetLab/MZFinder | 26a13665cd306599346dd5c744e02a3e53727bfb | [
"MIT"
] | null | null | null | src/yec/nhmfl/icr/MzFinder/ui/Add_mz_dialog.py | ICR-MagnetLab/MZFinder | 26a13665cd306599346dd5c744e02a3e53727bfb | [
"MIT"
] | null | null | null | src/yec/nhmfl/icr/MzFinder/ui/Add_mz_dialog.py | ICR-MagnetLab/MZFinder | 26a13665cd306599346dd5c744e02a3e53727bfb | [
"MIT"
] | 1 | 2018-08-17T15:56:04.000Z | 2018-08-17T15:56:04.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Add_mz_dialog.ui'
#
# Created: Fri Aug 07 13:53:27 2015
# by: pyside-uic 0.2.15 running on PySide 1.2.1
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_Dialog(object):
... | 55.031579 | 126 | 0.711362 | 546 | 5,228 | 6.714286 | 0.225275 | 0.141844 | 0.056738 | 0.069831 | 0.412984 | 0.170486 | 0.066012 | 0 | 0 | 0 | 0 | 0.036744 | 0.177506 | 5,228 | 94 | 127 | 55.617021 | 0.815814 | 0.043803 | 0 | 0.025 | 1 | 0 | 0.06905 | 0.004699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0125 | 0 | 0.05 | 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 |
664648702bcc6ec913aaba9c0a9a2c5df33bcc0a | 583 | py | Python | ATSAMD51P19A/libsrc/ATSAMD51P19A/NVIC_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | ATSAMD51P19A/libsrc/ATSAMD51P19A/NVIC_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | ATSAMD51P19A/libsrc/ATSAMD51P19A/NVIC_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | import uctypes as ct
NVIC_ = {
'ISER' : ( 0x00 | ct.ARRAY, 5 | ct.UINT32 ),
'ICER' : ( 0x80 | ct.ARRAY, 5 | ct.UINT32 ),
'ISPR' : ( 0x100 | ct.ARRAY, 5 | ct.UINT32 ),
'ICPR' : ( 0x180 | ct.ARRAY, 5 | ct.UINT32 ),
'IABR' : ( 0x200 | ct.ARRAY, 5 | ct.UINT32 ),
'IP' : ( 0x300 | ct.ARRAY, 35, {
'reg' : 0... | 29.15 | 71 | 0.511149 | 84 | 583 | 3.47619 | 0.440476 | 0.143836 | 0.136986 | 0.171233 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170616 | 0.276158 | 583 | 19 | 72 | 30.684211 | 0.521327 | 0 | 0 | 0.117647 | 0 | 0 | 0.070326 | 0 | 0 | 0 | 0.101201 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 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 |
6648189ff800ca95b7ca4cb5c79135aec1d19a3e | 2,213 | py | Python | authenticate/migrations/0001_initial.py | PatrickCmd/flight-booking-application | a521932530d622c6eef46ea6a0f968c8267b622e | [
"MIT"
] | null | null | null | authenticate/migrations/0001_initial.py | PatrickCmd/flight-booking-application | a521932530d622c6eef46ea6a0f968c8267b622e | [
"MIT"
] | 8 | 2020-02-12T01:01:51.000Z | 2022-03-11T23:59:40.000Z | authenticate/migrations/0001_initial.py | PatrickCmd/flight-booking-application | a521932530d622c6eef46ea6a0f968c8267b622e | [
"MIT"
] | 1 | 2019-08-13T19:04:11.000Z | 2019-08-13T19:04:11.000Z | # Generated by Django 2.2.3 on 2019-07-15 00:36
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="User",
fields=[
(
... | 35.126984 | 88 | 0.437415 | 175 | 2,213 | 5.388571 | 0.474286 | 0.076352 | 0.114528 | 0.152704 | 0.161188 | 0.161188 | 0.161188 | 0.124072 | 0 | 0 | 0 | 0.029245 | 0.443742 | 2,213 | 62 | 89 | 35.693548 | 0.736799 | 0.020334 | 0 | 0.163636 | 1 | 0 | 0.084949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.018182 | 0.036364 | 0 | 0.109091 | 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 |
6648880b686684a717ab3e20c6da1b424b2d8cf0 | 1,720 | py | Python | BD_usuariosCadastrados.py | MathewsJosh/Python-Chat | 6f9c2e18282cb887651ccb614ae43bdaf443f6df | [
"MIT"
] | null | null | null | BD_usuariosCadastrados.py | MathewsJosh/Python-Chat | 6f9c2e18282cb887651ccb614ae43bdaf443f6df | [
"MIT"
] | null | null | null | BD_usuariosCadastrados.py | MathewsJosh/Python-Chat | 6f9c2e18282cb887651ccb614ae43bdaf443f6df | [
"MIT"
] | null | null | null | import sqlite3
import os.path
# Deleta o arquivo de dados de chat se o mesmo existir
os.remove("Bancos de dados/usuariosCadastrados.db")
# Variavel global
caminho = "Bancos de dados/usuariosCadastrados.db"
# Verifica se o arquivo usuariosCadastrados existe
existe = os.path.exists(caminho)
# Cria o arquivo
connectio... | 30.175439 | 91 | 0.668605 | 230 | 1,720 | 4.986957 | 0.386957 | 0.070619 | 0.061029 | 0.069747 | 0.287707 | 0.207498 | 0.207498 | 0.207498 | 0.207498 | 0.207498 | 0 | 0.001488 | 0.218605 | 1,720 | 56 | 92 | 30.714286 | 0.851935 | 0.25 | 0 | 0.25 | 0 | 0 | 0.379011 | 0.048569 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.28125 | 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 |
b0735c56d325e97b0fcfbc78aa1c07a7c7c45ee9 | 637 | py | Python | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | import sys
import plop
import pymongo
def main(state):
db = pymongo.MongoClient().fiftystates
index = plop.Index()
spec = dict(state=state)
print('adding bills')
for bill in db.bills.find(spec):
index.add_object(bill)
print('adding legislators')
for obj in db.legislators.find(spe... | 19.30303 | 42 | 0.643642 | 88 | 637 | 4.511364 | 0.375 | 0.110831 | 0.130982 | 0.161209 | 0.299748 | 0.244332 | 0.18136 | 0.18136 | 0 | 0 | 0 | 0.002041 | 0.230769 | 637 | 32 | 43 | 19.90625 | 0.808163 | 0 | 0 | 0.136364 | 0 | 0 | 0.105346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.227273 | 0.181818 | 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 |
b077a34aeba451b6269f79c282e04246b2ed20dd | 1,870 | py | Python | notifications/migrations/0004_add_comment_event.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 12 | 2017-09-27T21:23:27.000Z | 2020-12-25T04:31:30.000Z | notifications/migrations/0004_add_comment_event.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 3,293 | 2017-06-30T18:16:01.000Z | 2022-03-31T18:01:34.000Z | notifications/migrations/0004_add_comment_event.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T12:19:57.000Z | 2020-04-13T12:19:57.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-29 14:45
from __future__ import unicode_literals
import channels.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migr... | 32.807018 | 78 | 0.489305 | 146 | 1,870 | 6.068493 | 0.493151 | 0.036117 | 0.047404 | 0.074492 | 0.151242 | 0.088036 | 0.088036 | 0.088036 | 0 | 0 | 0 | 0.023658 | 0.412299 | 1,870 | 56 | 79 | 33.392857 | 0.78253 | 0.036898 | 0 | 0.244898 | 1 | 0 | 0.100667 | 0.03337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102041 | 0 | 0.163265 | 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 |
b08161edc9ce6ed523379d6fe2f8473172b55797 | 3,637 | py | Python | captioner/hparams.py | svaisakh/captioner | 5c1144a9ed3986e1d8acdd7bb2732b252b3982d3 | [
"MIT"
] | 1 | 2018-07-23T14:44:14.000Z | 2018-07-23T14:44:14.000Z | captioner/hparams.py | svaisakh/captioner | 5c1144a9ed3986e1d8acdd7bb2732b252b3982d3 | [
"MIT"
] | null | null | null | captioner/hparams.py | svaisakh/captioner | 5c1144a9ed3986e1d8acdd7bb2732b252b3982d3 | [
"MIT"
] | 1 | 2018-09-05T20:52:24.000Z | 2018-09-05T20:52:24.000Z | from multiprocessing import cpu_count as __num_cores
# Extractor
architecture = 'resnet34'
image_shape = 224
extractor_batch_size = 16
num_workers = 8
num_workers = min(num_workers, __num_cores())
# Captions
vocab_size = 10000
caption_idx = 0
prune_batch_size = 8
# Model
rnn_type = 'LSTM'
hidden_size = 512
num_laye... | 29.096 | 159 | 0.68793 | 520 | 3,637 | 4.715385 | 0.407692 | 0.028548 | 0.018352 | 0.012235 | 0.054649 | 0.039152 | 0.039152 | 0.039152 | 0.039152 | 0.039152 | 0 | 0.018333 | 0.205114 | 3,637 | 125 | 160 | 29.096 | 0.829817 | 0.012098 | 0 | 0 | 0 | 0.09009 | 0.671126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0 | 0.018018 | 0 | 0.036036 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b08bd16f9d454b1946573ba606d8c15f6761f117 | 206 | py | Python | OccurenceProbability.py | AnmolSethi/Python---Challenges- | 83cce9334f58a91bee6ed08f34eea19b0139472f | [
"MIT"
] | null | null | null | OccurenceProbability.py | AnmolSethi/Python---Challenges- | 83cce9334f58a91bee6ed08f34eea19b0139472f | [
"MIT"
] | null | null | null | OccurenceProbability.py | AnmolSethi/Python---Challenges- | 83cce9334f58a91bee6ed08f34eea19b0139472f | [
"MIT"
] | null | null | null | from itertools import combinations
N = int(input())
DATA = input().split()
M = int(input())
C = list(combinations(DATA, M))
F = filter(lambda c: 'a' in c, C)
print('{0:.3f}'.format(len(list(F)) / len(C))) | 22.888889 | 46 | 0.631068 | 35 | 206 | 3.714286 | 0.628571 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.140777 | 206 | 9 | 46 | 22.888889 | 0.723164 | 0 | 0 | 0 | 0 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
b090937b77e4b161e34dcdaa0913478afbf0ff58 | 3,571 | py | Python | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | from __future__ import print_function, unicode_literals, division
from states import InProgressState, DetectedState, StateData
class Signature():
construction_complete = False
def __init__(self):
self.construction_complete = True
def __setattr__(self,name,value):
if not self.construction_c... | 33.064815 | 101 | 0.653038 | 377 | 3,571 | 5.822281 | 0.220159 | 0.100228 | 0.109339 | 0.076538 | 0.416856 | 0.342141 | 0.311162 | 0.311162 | 0.311162 | 0.311162 | 0 | 0 | 0.244189 | 3,571 | 107 | 102 | 33.373832 | 0.813264 | 0 | 0 | 0.421053 | 0 | 0 | 0.036684 | 0.017642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242105 | false | 0 | 0.021053 | 0.073684 | 0.473684 | 0.010526 | 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 |
b0a5b72c4ec8cc7ffc58bd608880624820714afe | 788 | py | Python | app/core/migrations/0017_auto_20200821_1816.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | app/core/migrations/0017_auto_20200821_1816.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | app/core/migrations/0017_auto_20200821_1816.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-08-21 18:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0016_auto_20200821_1503'),
]
operations = [
migrations.RemoveField(
model_name='device',
name='id',
... | 24.625 | 73 | 0.558376 | 75 | 788 | 5.72 | 0.546667 | 0.083916 | 0.121212 | 0.13986 | 0.247086 | 0.247086 | 0.247086 | 0.247086 | 0.247086 | 0 | 0 | 0.060377 | 0.327411 | 788 | 31 | 74 | 25.419355 | 0.749057 | 0.058376 | 0 | 0.64 | 1 | 0 | 0.1 | 0.031081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 |
b0aace24d96d1888b1bcecee9579f621f9149b99 | 817 | py | Python | 1024. Video Stitching.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | 1024. Video Stitching.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | 1024. Video Stitching.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | from typing import List
# 动态规划
class Solution:
def videoStitching(self, clips: List[List[int]], T: int) -> int:
dp = [float('inf')]*(T+1)
dp[0] = 0
for i in range(T+1):
for c in clips:
if c[0] <= i <= c[1]:
dp[i] = min(dp[i], dp[c[0]] +1)
... | 26.354839 | 68 | 0.419829 | 118 | 817 | 2.90678 | 0.29661 | 0.075802 | 0.093294 | 0.174927 | 0.402332 | 0.332362 | 0.332362 | 0.332362 | 0.332362 | 0.332362 | 0 | 0.028139 | 0.434517 | 817 | 31 | 69 | 26.354839 | 0.714286 | 0.008568 | 0 | 0.16 | 0 | 0 | 0.007426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.32 | 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 |
b0ac85e0fa01cbadc612fb96cbc40f40d316c1ff | 8,934 | py | Python | sh_coding_challenge/sh_server/itertools_ext_lib.py | Plumbob/PythonDemos | fb008651ad72e5f07ded5da44a04ab996571fb4d | [
"Unlicense"
] | null | null | null | sh_coding_challenge/sh_server/itertools_ext_lib.py | Plumbob/PythonDemos | fb008651ad72e5f07ded5da44a04ab996571fb4d | [
"Unlicense"
] | null | null | null | sh_coding_challenge/sh_server/itertools_ext_lib.py | Plumbob/PythonDemos | fb008651ad72e5f07ded5da44a04ab996571fb4d | [
"Unlicense"
] | null | null | null | # Provides itertools-related functions not available in the Python3 intertools library
# Requires Python3
import itertools
def grouper(items, n):
"""
Collect data into fixed-length chunks or blocks.
@param itr $items - List to be split into M N-length chunks
If len('i... | 28.912621 | 90 | 0.563465 | 1,139 | 8,934 | 4.285338 | 0.165057 | 0.047531 | 0.046712 | 0.07396 | 0.584102 | 0.518132 | 0.497234 | 0.438435 | 0.438435 | 0.433927 | 0 | 0.015261 | 0.273897 | 8,934 | 308 | 91 | 29.006494 | 0.737167 | 0.404298 | 0 | 0.556452 | 0 | 0 | 0.17499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0.056452 | 0.016129 | 0 | 0.056452 | 0.362903 | 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 |
b0b1b73b79fb2b58e77f3e64156f5dbe39d92f34 | 285 | py | Python | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.db import connection
# Create your views here.
cursor = connection.cursor()
cursor.execute("select * from studentinfo where classid=201800100")
rows = cursor.fetchall()
print(rows)
# return render(request,'index.html',context=rows)
| 20.357143 | 67 | 0.775439 | 37 | 285 | 5.972973 | 0.702703 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035857 | 0.119298 | 285 | 13 | 68 | 21.923077 | 0.844622 | 0.252632 | 0 | 0 | 0 | 0 | 0.23445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b0b25f97bf2dc90e0b287c037d895b17fad2e660 | 1,192 | py | Python | yatube/posts/migrations/0011_auto_20220127_2115.py | Andr3w-k/yatube_final | 940266c92eae10edf94692263ab1552afe5f6363 | [
"MIT"
] | null | null | null | yatube/posts/migrations/0011_auto_20220127_2115.py | Andr3w-k/yatube_final | 940266c92eae10edf94692263ab1552afe5f6363 | [
"MIT"
] | null | null | null | yatube/posts/migrations/0011_auto_20220127_2115.py | Andr3w-k/yatube_final | 940266c92eae10edf94692263ab1552afe5f6363 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.16 on 2022-01-27 21:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0010_follow'),
]
operations = [
migrations.AlterModelOptions(
name='comment',
... | 33.111111 | 144 | 0.602349 | 110 | 1,192 | 6.390909 | 0.527273 | 0.109531 | 0.13229 | 0.062589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022573 | 0.256711 | 1,192 | 35 | 145 | 34.057143 | 0.77088 | 0.038591 | 0 | 0.275862 | 1 | 0 | 0.228147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 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 |
b0b4c6803e5bb5ff25075c2782d1ea9fdb5ca4df | 1,019 | py | Python | src/table_tennis/tests/moveit_tests.py | sidharthsharma96/Tabletennis | c3d5bd09bc4f8deeb4961178222fd9c6fef6c649 | [
"BSD-2-Clause"
] | 1 | 2021-03-30T12:22:13.000Z | 2021-03-30T12:22:13.000Z | src/table_tennis/tests/moveit_tests.py | sidharthsharma96/Tabletennis | c3d5bd09bc4f8deeb4961178222fd9c6fef6c649 | [
"BSD-2-Clause"
] | null | null | null | src/table_tennis/tests/moveit_tests.py | sidharthsharma96/Tabletennis | c3d5bd09bc4f8deeb4961178222fd9c6fef6c649 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import rospy
import numpy as np
import geometry_msgs.msg
from moveit_commander import MoveGroupCommander, roscpp_initialize
from math import pi
rospy.init_node('moveit_tests', anonymous=False)
roscpp_initialize(sys.argv)
group = MoveGroupCommander('manipulator','/iiwa/robot_descripti... | 22.152174 | 75 | 0.789009 | 172 | 1,019 | 4.412791 | 0.366279 | 0.106719 | 0.102767 | 0.158103 | 0.285903 | 0.285903 | 0.217391 | 0.217391 | 0.217391 | 0.217391 | 0 | 0.024919 | 0.09421 | 1,019 | 45 | 76 | 22.644444 | 0.7974 | 0.019627 | 0 | 0.235294 | 0 | 0 | 0.051153 | 0.023069 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0b5fdd99473d9e45cc07d3a6d2de7c0c5b45d22 | 26,992 | py | Python | movie_knight/words.py | extant1/movie_knight | 49cd19c62ac045ff36304425bcd56816128ab945 | [
"MIT"
] | null | null | null | movie_knight/words.py | extant1/movie_knight | 49cd19c62ac045ff36304425bcd56816128ab945 | [
"MIT"
] | 139 | 2020-07-10T05:09:47.000Z | 2022-03-31T23:40:50.000Z | movie_knight/words.py | extant1/movie_knight | 49cd19c62ac045ff36304425bcd56816128ab945 | [
"MIT"
] | null | null | null | nouns = ['account', 'achiever', 'acoustics', 'act', 'action', 'activity', 'actor', 'addition', 'adjustment',
'advertisement', 'advice', 'aftermath', 'afternoon', 'afterthought', 'agreement', 'air', 'airplane', 'airport',
'alarm', 'amount', 'amusement', 'anger', 'angle', 'animal', 'answer', 'ant', 'ant... | 114.859574 | 120 | 0.549496 | 2,368 | 26,992 | 6.263514 | 0.970861 | 0.001753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190279 | 26,992 | 234 | 121 | 115.350427 | 0.678624 | 0 | 0 | 0 | 0 | 0 | 0.550385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017167 | 0.008584 | 0 | 0.008584 | 0.004292 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0b628f835e24c6dec57b66bf8d5f70da3564481 | 2,344 | py | Python | Scripts/Preprocessing/spectrogram.py | CotaCalin/AutomatedMusicTranscription | 02ea0d2f48f614f8a929f687a112e8b309599d63 | [
"MIT"
] | 1 | 2019-12-18T16:06:49.000Z | 2019-12-18T16:06:49.000Z | Scripts/Preprocessing/spectrogram.py | CotaCalin/AutomatedMusicTranscription | 02ea0d2f48f614f8a929f687a112e8b309599d63 | [
"MIT"
] | null | null | null | Scripts/Preprocessing/spectrogram.py | CotaCalin/AutomatedMusicTranscription | 02ea0d2f48f614f8a929f687a112e8b309599d63 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from scipy import signal
from scipy.io import wavfile
import os
import sys
import wave
import pylab
#from spectrogram2 import plotstft
# Generate and plot a constant-Q power spectrum
import matplotlib.pyplot as plt
import numpy as np
import librosa
import librosa.displa... | 33.485714 | 133 | 0.62628 | 286 | 2,344 | 4.940559 | 0.423077 | 0.044586 | 0.031139 | 0.03397 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.262799 | 2,344 | 69 | 134 | 33.971014 | 0.807292 | 0.099403 | 0 | 0.078431 | 1 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.039216 | 0.215686 | 0 | 0.392157 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.