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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec4fd870ed751d44ec6944354b2dd5cbf3a6540d | 969 | py | Python | schevo/script/backends.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | 1 | 2020-09-05T00:47:50.000Z | 2020-09-05T00:47:50.000Z | schevo/script/backends.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | schevo/script/backends.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | """Installed backends command."""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from textwrap import dedent
from schevo.script.command import Command
from schevo.script import opt
usage = """\
schevo backends
Shows a list of installed backends and the options that each one
accepts."""
def... | 23.634146 | 80 | 0.673891 | 118 | 969 | 5.449153 | 0.466102 | 0.105754 | 0.049767 | 0.049767 | 0.07465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013495 | 0.235294 | 969 | 40 | 81 | 24.225 | 0.854251 | 0.067079 | 0 | 0.125 | 0 | 0 | 0.210829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.291667 | 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 |
ec5610b8d13f12dcbb7b17a468f47e2685609dbc | 449 | py | Python | Python/raizes.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/raizes.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/raizes.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | import math
a = int(input("Insira o valor de a:"))
b = int(input("Insira o valor de b:"))
c = int(input("Insira o valor de c:"))
delta = (b**2)-(4*a*c)
if delta < 0:
print("O delta é negativo, não existem raizes reais!")
elif delta == 0:
x = ((-b)/(2*a))
print("As raízes existem e são iguais a", x)... | 24.944444 | 60 | 0.552339 | 82 | 449 | 3.02439 | 0.414634 | 0.096774 | 0.169355 | 0.181452 | 0.395161 | 0.395161 | 0 | 0 | 0 | 0 | 0 | 0.031792 | 0.229399 | 449 | 17 | 61 | 26.411765 | 0.684971 | 0 | 0 | 0 | 0 | 0 | 0.340757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.214286 | 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 |
ec58c3a9aa7b4598024385f9c82276924e8263b0 | 1,112 | py | Python | Components/DaaSWebClient/examples/pythonClients/dropKeyspace.py | tuwiendsg/DaaSM2M | 4dae9d429aca7e4092834872164861c5eecb5797 | [
"Apache-2.0"
] | 2 | 2017-11-05T15:50:59.000Z | 2019-08-06T11:35:26.000Z | Components/DaaSWebClient/examples/pythonClients/dropKeyspace.py | tuwiendsg/DaaSM2M | 4dae9d429aca7e4092834872164861c5eecb5797 | [
"Apache-2.0"
] | null | null | null | Components/DaaSWebClient/examples/pythonClients/dropKeyspace.py | tuwiendsg/DaaSM2M | 4dae9d429aca7e4092834872164861c5eecb5797 | [
"Apache-2.0"
] | null | null | null | import urllib, urllib2, sys, httplib
url = "/DaaS-0.1"
HOST_IP="128.130.172.216"
if __name__=='__main__':
connection = httplib.HTTPConnection(HOST_IP+':8080')
#take keyspace from command-line options
keySpaceName='testKeyspace'
if (len(sys.argv) > 0):
keySpace... | 34.75 | 105 | 0.523381 | 102 | 1,112 | 5.578431 | 0.598039 | 0.057996 | 0.063269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033946 | 0.364209 | 1,112 | 31 | 106 | 35.870968 | 0.770863 | 0.070144 | 0 | 0 | 0 | 0 | 0.21165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.095238 | 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 |
6b5195b234132ee3e91eaf03e519a37f119f2c46 | 365 | py | Python | tests/urls.py | giginet/django-debug-toolbar-git-rev | 6bc4e947f72f4e1b47495d64a5e45b0e0cf1a4a7 | [
"MIT"
] | 5 | 2016-01-15T21:47:59.000Z | 2020-06-22T17:28:30.000Z | tests/urls.py | giginet/django-debug-toolbar-vcs-rev | 6bc4e947f72f4e1b47495d64a5e45b0e0cf1a4a7 | [
"MIT"
] | 3 | 2015-12-07T16:17:05.000Z | 2021-02-27T04:04:37.000Z | tests/urls.py | giginet/django-debug-toolbar-vcs-rev | 6bc4e947f72f4e1b47495d64a5e45b0e0cf1a4a7 | [
"MIT"
] | 1 | 2017-05-18T16:28:33.000Z | 2017-05-18T16:28:33.000Z | import django
try:
from django.conf.urls import *
except ImportError:
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
def _patterns():
if django.VERSION >= (1, 9):
return []
else:
ret... | 19.210526 | 51 | 0.673973 | 45 | 365 | 5.422222 | 0.622222 | 0.122951 | 0.114754 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.221918 | 365 | 18 | 52 | 20.277778 | 0.852113 | 0.282192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.636364 | 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 |
6b581e5a75e305043afa68fd2ba4bd94ffffdd25 | 401 | py | Python | src/iiw_book/migrations/0002_auto_20190419_1935.py | WadeBarnes/iiwbook | 9d33f1fd52010fd004d32f52b7a3bbf7047c349c | [
"Apache-2.0"
] | null | null | null | src/iiw_book/migrations/0002_auto_20190419_1935.py | WadeBarnes/iiwbook | 9d33f1fd52010fd004d32f52b7a3bbf7047c349c | [
"Apache-2.0"
] | null | null | null | src/iiw_book/migrations/0002_auto_20190419_1935.py | WadeBarnes/iiwbook | 9d33f1fd52010fd004d32f52b7a3bbf7047c349c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-04-19 19:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iiw_book', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='attendee',
name='full_name',
... | 21.105263 | 72 | 0.600998 | 44 | 401 | 5.386364 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.281796 | 401 | 18 | 73 | 22.277778 | 0.760417 | 0.107232 | 0 | 0 | 1 | 0 | 0.103933 | 0 | 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 |
6b65c0b91980a09eb11ddeba722f493ff220c4a9 | 610 | py | Python | core/permissions.py | sig-gis/postFireRecovery | 1bb9de721503297f70b983a2488f750d89ea5433 | [
"MIT"
] | null | null | null | core/permissions.py | sig-gis/postFireRecovery | 1bb9de721503297f70b983a2488f750d89ea5433 | [
"MIT"
] | 20 | 2020-03-24T16:29:20.000Z | 2022-03-11T23:38:05.000Z | core/permissions.py | sig-gis/postFireRecovery | 1bb9de721503297f70b983a2488f750d89ea5433 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import permissions
# =============================================================================
class IsOrganizationOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
user = reques... | 32.105263 | 79 | 0.480328 | 51 | 610 | 5.529412 | 0.705882 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002083 | 0.213115 | 610 | 18 | 80 | 33.888889 | 0.585417 | 0.290164 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.636364 | 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 |
6b72cd0bf3a5cefc6c54b4ce23323f721cb29353 | 1,354 | py | Python | pash/commands/cmd_generate.py | simon8889/PASH | 23728f12d5f033615d52d32006c086ee876ea4b1 | [
"MIT"
] | 2 | 2021-02-26T01:57:53.000Z | 2021-02-26T01:57:55.000Z | pash/commands/cmd_generate.py | simon8889/PASH | 23728f12d5f033615d52d32006c086ee876ea4b1 | [
"MIT"
] | null | null | null | pash/commands/cmd_generate.py | simon8889/PASH | 23728f12d5f033615d52d32006c086ee876ea4b1 | [
"MIT"
] | null | null | null | from pash.cli_utils.pass_generator import generator, get_generator_by_questions
from pash.cli_utils.questions import password_questions
from pash.cli_utils.config_mode_utils import get_password_formated
from PyInquirer import prompt
import pyperclip
import click
import colorama
colorama.init()
@click.group()
def cli(... | 33.85 | 105 | 0.72452 | 180 | 1,354 | 5.316667 | 0.388889 | 0.073145 | 0.034483 | 0.050157 | 0.338558 | 0.286311 | 0.234065 | 0.234065 | 0.234065 | 0.234065 | 0 | 0.002674 | 0.171344 | 1,354 | 39 | 106 | 34.717949 | 0.850267 | 0.143279 | 0 | 0.333333 | 0 | 0 | 0.158494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.6 | 0.233333 | 0 | 0.433333 | 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 |
6b80842401fbed246acde8df2ea4e5b8fcea6804 | 1,102 | py | Python | tests/unit/test_clustergram.py | IvoLeist/dash-bio | dcdd7161c3a13790f2b6c6ca26ddad7eed648225 | [
"MIT"
] | null | null | null | tests/unit/test_clustergram.py | IvoLeist/dash-bio | dcdd7161c3a13790f2b6c6ca26ddad7eed648225 | [
"MIT"
] | null | null | null | tests/unit/test_clustergram.py | IvoLeist/dash-bio | dcdd7161c3a13790f2b6c6ca26ddad7eed648225 | [
"MIT"
] | 1 | 2020-06-09T15:29:19.000Z | 2020-06-09T15:29:19.000Z | import numpy as np
import pandas as pd
from dash_bio import Clustergram
DATA = np.array(
[[1, 1, 1, 1],
[3, 3, 3, 3],
[1, 1, 1, 1],
[3, 3, 3, 3],
[1, 1, 1, 1],
[3, 3, 3, 3]]
)
CLUSTERED_DATA = np.array(
[[1, 1, 1, 1],
[1, 1, 1, 1],
[1, 1, 1, 1],
[3, 3, 3, 3],
[3, 3... | 21.192308 | 70 | 0.577132 | 161 | 1,102 | 3.751553 | 0.285714 | 0.066225 | 0.07947 | 0.07947 | 0.668874 | 0.668874 | 0.668874 | 0.63245 | 0.63245 | 0.63245 | 0 | 0.063052 | 0.280399 | 1,102 | 51 | 71 | 21.607843 | 0.698613 | 0.088022 | 0 | 0.666667 | 0 | 0 | 0.016097 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b8afcc481117a9ae305c7dcc976bd9b424b4d59 | 1,604 | py | Python | examples/c15_garbage_collection.py | derolli1976/pyexasol | 05d47e5dcc4c4cc6238e31c25e65e04780d6528f | [
"MIT"
] | 21 | 2019-02-25T14:54:43.000Z | 2022-03-29T11:26:17.000Z | examples/c15_garbage_collection.py | derolli1976/pyexasol | 05d47e5dcc4c4cc6238e31c25e65e04780d6528f | [
"MIT"
] | 11 | 2021-11-22T12:58:32.000Z | 2022-03-14T09:19:51.000Z | examples/c15_garbage_collection.py | derolli1976/pyexasol | 05d47e5dcc4c4cc6238e31c25e65e04780d6528f | [
"MIT"
] | 10 | 2019-02-19T10:40:32.000Z | 2022-03-15T15:47:05.000Z | """
Ensure ExaConnection and ExaStatement objects are garbage collected properly
"""
import gc
import pyexasol
import _config as config
import pprint
printer = pprint.PrettyPrinter(indent=4, width=140)
class ExaStatementVerbose(pyexasol.ExaStatement):
def __del__(self):
print(f'ExaStatement session_id=... | 26.295082 | 123 | 0.69389 | 202 | 1,604 | 5.366337 | 0.420792 | 0.04428 | 0.059041 | 0.04428 | 0.435424 | 0.387454 | 0.332103 | 0.280443 | 0.280443 | 0.212177 | 0 | 0.014855 | 0.202618 | 1,604 | 60 | 124 | 26.733333 | 0.832682 | 0.112843 | 0 | 0.428571 | 0 | 0 | 0.260962 | 0.046676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.057143 | 0.114286 | 0 | 0.285714 | 0.257143 | 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 |
6b8e8ee7c2e71d233c2a2d3820c0d83e6013d1e4 | 748 | py | Python | Mad libs/main.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | null | null | null | Mad libs/main.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | 1 | 2021-09-07T09:59:56.000Z | 2021-09-07T10:00:40.000Z | Mad libs/main.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | 1 | 2021-09-07T09:42:31.000Z | 2021-09-07T09:42:31.000Z | loop = 1
while (loop < 10):
noun1 = input("Choose a noun: ")
plur_noun = input("Choose a plural noun: ")
noun2 = input("Choose a noun: ")
place = input("Name a place: ")
adjective = input("Choose an adjective (Describing word): ")
noun3 = input("Choose a noun: ")
print ("--------... | 32.521739 | 64 | 0.514706 | 92 | 748 | 4.152174 | 0.456522 | 0.143979 | 0.125654 | 0.125654 | 0.089005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017361 | 0.229947 | 748 | 23 | 65 | 32.521739 | 0.645833 | 0 | 0 | 0.111111 | 0 | 0 | 0.459279 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6b902bdc426fc41a3824b39b5e5f28de6ebd7300 | 3,737 | py | Python | areas/events/item_event_handler.py | mjcumming/Occupancy-Manager | dcafe55c9c062e0772ee4981ffb6860a8c0bce49 | [
"MIT"
] | 3 | 2020-06-14T08:29:02.000Z | 2020-09-13T08:26:48.000Z | areas/events/item_event_handler.py | mjcumming/Occupancy-Manager | dcafe55c9c062e0772ee4981ffb6860a8c0bce49 | [
"MIT"
] | 1 | 2020-07-18T05:48:22.000Z | 2020-07-18T05:48:22.000Z | areas/events/item_event_handler.py | mjcumming/Occupancy-Manager | dcafe55c9c062e0772ee4981ffb6860a8c0bce49 | [
"MIT"
] | 1 | 2020-05-30T20:40:13.000Z | 2020-05-30T20:40:13.000Z | '''
handles events from an item in an area and dispatches to appropriate handler
used by area.py
'''
from core.log import logging, LOG_PREFIX
log = logging.getLogger("{}.area_item_event_handler".format(LOG_PREFIX))
from core.jsr223.scope import itemRegistry
# load the classes
import personal.occupancy.areas.even... | 41.522222 | 144 | 0.743912 | 486 | 3,737 | 5.49177 | 0.209877 | 0.133758 | 0.173099 | 0.220307 | 0.467591 | 0.415137 | 0.248782 | 0 | 0 | 0 | 0 | 0.001621 | 0.174739 | 3,737 | 89 | 145 | 41.988764 | 0.863813 | 0.173936 | 0 | 0.071429 | 0 | 0 | 0.069191 | 0.008486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.285714 | 0 | 0.410714 | 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 |
6b9047d1b0c317d5a12500c69d0455557a4c5410 | 4,170 | py | Python | urbanmediator/mail_parser.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/mail_parser.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/mail_parser.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file is part of Urban Mediator software.
Copyright (c) 2008 University of Art and Design Helsinki
See the file LICENSE.txt for copying permission.
Parser for the mail message.
"""
import email, sys, re, sha, datetime
from email.Utils import getaddresses
from email.He... | 30.888889 | 98 | 0.558273 | 470 | 4,170 | 4.802128 | 0.346809 | 0.027913 | 0.028799 | 0.009747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008821 | 0.320384 | 4,170 | 134 | 99 | 31.119403 | 0.787579 | 0.021823 | 0 | 0.174757 | 0 | 0.009709 | 0.073499 | 0.01941 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029126 | 0.07767 | null | null | 0.019417 | 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 |
6b9d142042cbae0ce6b9a6d5ea09f77032d65d7c | 1,457 | py | Python | examples/stochastic_volatility/model.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | 22 | 2020-10-31T21:39:18.000Z | 2021-12-05T02:21:15.000Z | examples/stochastic_volatility/model.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | null | null | null | examples/stochastic_volatility/model.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | 2 | 2021-01-27T09:14:02.000Z | 2021-03-05T02:47:20.000Z | import pandas as pd
import pymc3 as pm
import arviz as az
from arviz_json import get_dag, arviz_to_json
#StudentT Timeseries Model
#Reference1: https://docs.pymc.io/notebooks/getting_started.html#Case-study-1:-Stochastic-volatility
#Reference2: https://docs.pymc.io/notebooks/stochastic_volatility.html#Stochastic-Volat... | 35.536585 | 106 | 0.762526 | 213 | 1,457 | 5.079812 | 0.446009 | 0.073937 | 0.020333 | 0.027726 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020737 | 0.106383 | 1,457 | 41 | 107 | 35.536585 | 0.810292 | 0 | 0 | 0 | 0 | 0 | 0.092958 | 0.025352 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | 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 |
6ba6ff1baae575bd9ed98abb9b335aa31fd7e5b6 | 498 | py | Python | gperc/__init__.py | sanjibansg/general-perceivers | 9b881637e017ea1a4d7131042634c9a2fcd8211f | [
"MIT"
] | 2 | 2021-10-19T11:21:46.000Z | 2021-10-20T16:13:27.000Z | gperc/__init__.py | sanjibansg/general-perceivers | 9b881637e017ea1a4d7131042634c9a2fcd8211f | [
"MIT"
] | null | null | null | gperc/__init__.py | sanjibansg/general-perceivers | 9b881637e017ea1a4d7131042634c9a2fcd8211f | [
"MIT"
] | null | null | null | from . import models
from . import configs
from . import data
from . import arrow
from . import utils
from . import cli
from . import trainer
from .models import Embeddings, EncoderBlock, ProcessorBlock, DecoderBlock
from .models import Perceiver, PerceiverMLM, PerceiverImage
from .configs import PerceiverConfig, Text... | 27.666667 | 88 | 0.803213 | 60 | 498 | 6.6 | 0.433333 | 0.176768 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.140562 | 498 | 17 | 89 | 29.294118 | 0.920561 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.933333 | 0 | 0.933333 | 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 |
6ba8b0174d9be96411f042f9ae2efd20bd5fcc6a | 689 | py | Python | source/ex11.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | source/ex11.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | source/ex11.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | # comma will force the user input inline with question, and will prevent print to end with new line chr
'''
print "How old are you?",
age = raw_input()
print "How tall are you?",
height = raw_input()
print "How much do you weight?",
weight = raw_input()
'''
# raw_input([prompt]) => If the prompt argument is present, i... | 38.277778 | 120 | 0.698113 | 121 | 689 | 3.917355 | 0.413223 | 0.118143 | 0.06962 | 0.050633 | 0.160338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182874 | 689 | 17 | 121 | 40.529412 | 0.841918 | 0.370102 | 0 | 0 | 0 | 0 | 0.487365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 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 |
6ba8cf4208c70c098d4ae091d86e791bef1082fc | 525 | py | Python | KeePass/generate_wordlist.py | spencermwoo/Cracking | 8e5ac117056d134e28d2627473b8d00aaad71bbd | [
"MIT"
] | 2 | 2018-03-16T22:31:14.000Z | 2018-03-16T22:32:31.000Z | KeePass/generate_wordlist.py | spencermwoo/Cracking | 8e5ac117056d134e28d2627473b8d00aaad71bbd | [
"MIT"
] | null | null | null | KeePass/generate_wordlist.py | spencermwoo/Cracking | 8e5ac117056d134e28d2627473b8d00aaad71bbd | [
"MIT"
] | 1 | 2021-11-09T22:57:29.000Z | 2021-11-09T22:57:29.000Z | front = "Saudi7se"
#real password is Saudi7settle+Strap, but we don't know that
a = ["7", "t"]
b = ["I", "L", "1", "l", "i"]
c = ["E", "e"]
d = ["?", "!", "+"]
e = ["S", "s"]
f = ["r", "R"]
g = ["a"]
h = ["p", "P"]
langList = [a, a, b, c, d, e, a, f, g, h]
#[a,b,c,d,c,b]
def recursiveGen(currentString="", counter=0)... | 21 | 63 | 0.550476 | 84 | 525 | 3.440476 | 0.5 | 0.013841 | 0.020761 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016432 | 0.188571 | 525 | 25 | 64 | 21 | 0.661972 | 0.137143 | 0 | 0 | 0 | 0 | 0.059735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 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 |
6bb050509cbabc762ee17c8dbb75d273f7c9a4e6 | 4,217 | py | Python | datalogger/old/test_DataLoggerWeb.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | datalogger/old/test_DataLoggerWeb.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | datalogger/old/test_DataLoggerWeb.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import unittest
import logging
# own modules
from datalogger import Timeseries as Timeseries
from datalogger import TimeseriesArray as TimeseriesArray
from datalogger import TimeseriesArrayStats as TimeseriesArrayStats
from datalogger import TimeseriesStats as TimeseriesStats
from datalogger import Q... | 40.548077 | 159 | 0.693384 | 530 | 4,217 | 5.375472 | 0.183019 | 0.093366 | 0.113373 | 0.101088 | 0.448227 | 0.364689 | 0.292032 | 0.255528 | 0.18252 | 0.152334 | 0 | 0.011173 | 0.193502 | 4,217 | 103 | 160 | 40.941748 | 0.826522 | 0.012094 | 0 | 0.164557 | 0 | 0 | 0.030267 | 0 | 0 | 0 | 0 | 0.009709 | 0.341772 | 1 | 0.202532 | false | 0 | 0.101266 | 0 | 0.329114 | 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 |
6bb3815f608645423078f03cd9afbfc30d938a5b | 619 | py | Python | querotaeessa/posts/models.py | Guigarciarosa/QueRotaEEssaWeb | 9d9ce94402180bf42f9a18d5511c31fff7e6697b | [
"MIT"
] | null | null | null | querotaeessa/posts/models.py | Guigarciarosa/QueRotaEEssaWeb | 9d9ce94402180bf42f9a18d5511c31fff7e6697b | [
"MIT"
] | null | null | null | querotaeessa/posts/models.py | Guigarciarosa/QueRotaEEssaWeb | 9d9ce94402180bf42f9a18d5511c31fff7e6697b | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.db.models.base import Model
from django.utils import timezone
# Create your models here.
class Post(models.Model):
autor = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
titulo = models.CharField(max_length=200)
... | 29.47619 | 81 | 0.736672 | 81 | 619 | 5.493827 | 0.555556 | 0.089888 | 0.053933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.171244 | 619 | 20 | 82 | 30.95 | 0.861598 | 0.038772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.866667 | 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 |
6bbcd5d30e3f678de0026bc873faccfbaa88fab4 | 831 | py | Python | mymoney/core/views.py | ychab/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | 67 | 2015-12-22T10:27:34.000Z | 2022-03-10T21:33:18.000Z | mymoney/core/views.py | clebercarmo/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | null | null | null | mymoney/core/views.py | clebercarmo/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | 35 | 2016-08-07T11:43:51.000Z | 2022-02-21T21:20:06.000Z | from django.urls import reverse
from django.views.generic import RedirectView
from mymoney.apps.bankaccounts.models import BankAccount
class HomePageRedirectView(RedirectView):
"""
Homepage view which redirect user on:
- login page for anonymous
- bank transaction list page of the only one available ... | 26.806452 | 71 | 0.669073 | 91 | 831 | 6.043956 | 0.582418 | 0.070909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0016 | 0.247894 | 831 | 30 | 72 | 27.7 | 0.8784 | 0.190132 | 0 | 0 | 0 | 0 | 0.088372 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6bc8e7c83809fc48e48e2c373fcc6279a9f55f87 | 938 | py | Python | dsa.py | AdamSierzan/Black_Jack_Game | d5bb8df6cfc480d11b68213cfa460c0ddb7e3a6e | [
"MIT"
] | null | null | null | dsa.py | AdamSierzan/Black_Jack_Game | d5bb8df6cfc480d11b68213cfa460c0ddb7e3a6e | [
"MIT"
] | null | null | null | dsa.py | AdamSierzan/Black_Jack_Game | d5bb8df6cfc480d11b68213cfa460c0ddb7e3a6e | [
"MIT"
] | null | null | null |
import tkinter
import random
import pygame
import BlackJack
import subprocess as sub
p = sub.Popen('./BlackJack',stdout=sub.PIPE,stderr=sub.PIPE)
output, errors = p.communicate()
root = Tk()
text = Text(root)
text.pack()
text.insert(END, output)
root.mainloop()
# root = tkinter.Tk()
# root.geometry('480x460')
# roo... | 21.813953 | 98 | 0.719616 | 135 | 938 | 4.874074 | 0.437037 | 0.06079 | 0.024316 | 0.069909 | 0.103343 | 0.103343 | 0.103343 | 0 | 0 | 0 | 0 | 0.012092 | 0.118337 | 938 | 42 | 99 | 22.333333 | 0.783555 | 0.670576 | 0 | 0 | 0 | 0 | 0.037931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6bceee5684b45d7b312198d95a2a4386799e7a19 | 5,721 | py | Python | zcrmsdk/src/com/zoho/crm/api/fields/pick_list_value.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | zcrmsdk/src/com/zoho/crm/api/fields/pick_list_value.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | zcrmsdk/src/com/zoho/crm/api/fields/pick_list_value.py | zoho/zohocrm-python-sdk-2.0 | 3a93eb3b57fed4e08f26bd5b311e101cb2995411 | [
"Apache-2.0"
] | null | null | null | try:
from zcrmsdk.src.com.zoho.crm.api.exception import SDKException
from zcrmsdk.src.com.zoho.crm.api.util import Constants
except Exception:
from ..exception import SDKException
from ..util import Constants
class PickListValue(object):
def __init__(self):
"""Creates an instance of PickListValue"""
self.__... | 25.426667 | 106 | 0.735361 | 833 | 5,721 | 4.77551 | 0.084034 | 0.052288 | 0.064354 | 0.075415 | 0.56008 | 0.532931 | 0.45274 | 0.246606 | 0.120664 | 0.07089 | 0 | 0.001497 | 0.182486 | 5,721 | 224 | 107 | 25.540179 | 0.849049 | 0.337004 | 0 | 0.051948 | 0 | 0 | 0.113172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220779 | false | 0 | 0.051948 | 0 | 0.402597 | 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 |
6bd2f0837e9032b010f69db6196bf4232108908f | 1,666 | py | Python | Problems/Array/0026-RemoveDuplicatesFromSortedArray.py | s2503901ernie/LeetCode | cd40be2ddd2bc5e4e5630ec9068ae62504d527c2 | [
"MIT"
] | null | null | null | Problems/Array/0026-RemoveDuplicatesFromSortedArray.py | s2503901ernie/LeetCode | cd40be2ddd2bc5e4e5630ec9068ae62504d527c2 | [
"MIT"
] | null | null | null | Problems/Array/0026-RemoveDuplicatesFromSortedArray.py | s2503901ernie/LeetCode | cd40be2ddd2bc5e4e5630ec9068ae62504d527c2 | [
"MIT"
] | null | null | null | """
Given an integer array nums sorted in non-decreasing order,
remove the duplicates in-place such that each unique element appears only once.
The relative order of the elements should be kept the same.
Since it is impossible to change the length of the array in some languages,
you must instead have the result be plac... | 40.634146 | 122 | 0.710084 | 292 | 1,666 | 4.013699 | 0.386986 | 0.040956 | 0.023038 | 0.038396 | 0.273038 | 0.228669 | 0.167235 | 0.167235 | 0.167235 | 0.136519 | 0 | 0.035823 | 0.212485 | 1,666 | 40 | 123 | 41.65 | 0.85747 | 0.832533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bd389636ea4c30996325fa11c2e9f141963197a | 603 | py | Python | mysite/software_mining/migrations/0007_auto_20191222_0915.py | brookzhcn/dm-software-build | bdc8e46e7ce945522d18fb8c641a9107c345def1 | [
"MIT"
] | null | null | null | mysite/software_mining/migrations/0007_auto_20191222_0915.py | brookzhcn/dm-software-build | bdc8e46e7ce945522d18fb8c641a9107c345def1 | [
"MIT"
] | 6 | 2020-06-05T20:14:05.000Z | 2021-09-22T18:17:14.000Z | mysite/software_mining/migrations/0007_auto_20191222_0915.py | brookzhcn/dm-software-build | bdc8e46e7ce945522d18fb8c641a9107c345def1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2019-12-22 09:15
from django.db import migrations, models
from software_mining.models import Project, Build
def add_projects(apps, schema_editor):
data = Build.objects.values('project_name').annotate(c=models.Count('build_id'))
for item in data:
Project.objects.get_or_... | 24.12 | 84 | 0.679934 | 76 | 603 | 5.210526 | 0.697368 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064449 | 0.202322 | 603 | 24 | 85 | 25.125 | 0.758836 | 0.074627 | 0 | 0 | 1 | 0 | 0.154676 | 0.041367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bd6a2b76241b504ef0758630950d2ba58a73ded | 426 | py | Python | setup.py | hepengli/multiagent-microgrid-envs | aa7c91c2d074dc48b61ab1ffa464b51624284dfd | [
"MIT"
] | 1 | 2021-07-03T12:43:51.000Z | 2021-07-03T12:43:51.000Z | setup.py | hepengli/multiagent-microgrid-envs | aa7c91c2d074dc48b61ab1ffa464b51624284dfd | [
"MIT"
] | null | null | null | setup.py | hepengli/multiagent-microgrid-envs | aa7c91c2d074dc48b61ab1ffa464b51624284dfd | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='microgrid',
version='0.0.1',
description='Multi-Agent Microgrid Environment',
url='https://github.com/hepengli/multiagent-microgrid-envs',
author='Hepeng Li',
author_email='hepengli@uri.edu',
packages=find_packages(),
inc... | 30.428571 | 66 | 0.680751 | 50 | 426 | 5.66 | 0.82 | 0.084806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.178404 | 426 | 13 | 67 | 32.769231 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.34507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bd77a165d4485ec0be586e9d780cb70b43e181d | 260 | py | Python | tools/docker/phd_base_java/tests/java_test.py | ChrisCummins/labm8 | 913d67f4f454cedc61220a210113bbf0460bb4d5 | [
"Apache-2.0"
] | 3 | 2015-05-10T16:48:22.000Z | 2021-06-03T16:50:31.000Z | tools/docker/phd_base_java/tests/java_test.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 21 | 2015-05-12T12:42:47.000Z | 2020-08-16T12:31:08.000Z | tools/docker/phd_base_java/tests/java_test.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 2 | 2017-11-22T04:41:59.000Z | 2020-05-31T23:13:25.000Z | """Test that javac is installed."""
import subprocess
from labm8.py import test
FLAGS = test.FLAGS
def test_javac_help():
"""Test that javac is installed."""
subprocess.check_call(["/usr/bin/javac", "-help"])
if __name__ == "__main__":
test.Main()
| 16.25 | 52 | 0.684615 | 36 | 260 | 4.638889 | 0.555556 | 0.095808 | 0.155689 | 0.179641 | 0.287425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.153846 | 260 | 15 | 53 | 17.333333 | 0.754545 | 0.226923 | 0 | 0 | 0 | 0 | 0.142105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6beb72ee94097c53c35a5f71302e7ee2bcb86728 | 2,494 | py | Python | client.py | Darkheir/arithmetic-computing | 05070bdef15e24335578ac48c41e9b734f444f6e | [
"MIT"
] | null | null | null | client.py | Darkheir/arithmetic-computing | 05070bdef15e24335578ac48c41e9b734f444f6e | [
"MIT"
] | null | null | null | client.py | Darkheir/arithmetic-computing | 05070bdef15e24335578ac48c41e9b734f444f6e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import logging
import sys
from arithmetic_computing.communication.client_socket import ClientSocket
from arithmetic_computing.communication.communication_error \
import CommunicationError
from arithmetic_computing.helper.arguments_parser import parse_client_arguments
from arithmetic_computing... | 31.974359 | 79 | 0.680433 | 286 | 2,494 | 5.657343 | 0.307692 | 0.044499 | 0.071075 | 0.05377 | 0.065513 | 0.045735 | 0.045735 | 0 | 0 | 0 | 0 | 0.00053 | 0.242983 | 2,494 | 77 | 80 | 32.38961 | 0.856462 | 0.008019 | 0 | 0.176471 | 0 | 0 | 0.059535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | 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 |
6bef4a4944ee7b5d7a330c362cb221b0180faeb7 | 881 | py | Python | ffclub/thememaker/admin.py | elin-moco/ffclub | 7e2d707e9319b6401025a349c9c11faf937d1b55 | [
"BSD-3-Clause"
] | null | null | null | ffclub/thememaker/admin.py | elin-moco/ffclub | 7e2d707e9319b6401025a349c9c11faf937d1b55 | [
"BSD-3-Clause"
] | null | null | null | ffclub/thememaker/admin.py | elin-moco/ffclub | 7e2d707e9319b6401025a349c9c11faf937d1b55 | [
"BSD-3-Clause"
] | null | null | null | from ffclub.base import admin
from django.contrib.admin import ModelAdmin
from .models import *
class ColorBundleAdmin(ModelAdmin):
list_filter = ['bg_color', 'font_color']
class ThemeCategoryAdmin(ModelAdmin):
search_fields = ['title', 'description']
list_filter = ['enabled']
class ThemeTemplateAdmin... | 29.366667 | 90 | 0.725312 | 88 | 881 | 7.125 | 0.443182 | 0.063796 | 0.108453 | 0.129187 | 0.263158 | 0.263158 | 0.263158 | 0.263158 | 0 | 0 | 0 | 0 | 0.138479 | 881 | 29 | 91 | 30.37931 | 0.826087 | 0 | 0 | 0.157895 | 0 | 0 | 0.194098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.736842 | 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 |
6bf365a3c21ead53d28689ef3bceebebd21718fa | 822 | py | Python | crawler/app/env.py | re3turn/twitter-crawling | a5b4075cda9d2bdca2cd9891c8d609627feb83e4 | [
"MIT"
] | null | null | null | crawler/app/env.py | re3turn/twitter-crawling | a5b4075cda9d2bdca2cd9891c8d609627feb83e4 | [
"MIT"
] | null | null | null | crawler/app/env.py | re3turn/twitter-crawling | a5b4075cda9d2bdca2cd9891c8d609627feb83e4 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import logging
import os
import sys
import termcolor
class Env:
@staticmethod
def get_environment(env_name: str, default: str = '', required: bool = False) -> str:
env: str = os.environ.get(env_name, default)
if required and (default == '') and (env == ''):
sys.... | 28.344828 | 98 | 0.653285 | 105 | 822 | 4.980952 | 0.371429 | 0.080306 | 0.172084 | 0.120459 | 0.172084 | 0.118547 | 0 | 0 | 0 | 0 | 0 | 0.004637 | 0.212895 | 822 | 28 | 99 | 29.357143 | 0.803709 | 0.020681 | 0 | 0.157895 | 0 | 0 | 0.100746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.105263 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d411f8ae20b0193b77f55476ae4eefbb615d543a | 1,112 | py | Python | animethemes_dl/parsers/parser.py | przemub/animethemes-dl | 27347d711e3a9e4e51db78aacd1f63460afbc861 | [
"MIT"
] | null | null | null | animethemes_dl/parsers/parser.py | przemub/animethemes-dl | 27347d711e3a9e4e51db78aacd1f63460afbc861 | [
"MIT"
] | null | null | null | animethemes_dl/parsers/parser.py | przemub/animethemes-dl | 27347d711e3a9e4e51db78aacd1f63460afbc861 | [
"MIT"
] | null | null | null | """
Parses data from myanimelist/anilist and themes.moe.
"""
from typing import List
from animethemes_dl.options import OPTIONS
import logging
from ..models.animethemes import AnimeThemeAnime
from .anilist import get_anilist
from .animethemes import fetch_animethemes
from .myanimelist import get_mal
logger = logging.... | 32.705882 | 99 | 0.728417 | 138 | 1,112 | 5.717391 | 0.398551 | 0.065906 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170863 | 1,112 | 33 | 100 | 33.69697 | 0.855748 | 0.248201 | 0 | 0 | 0 | 0 | 0.068664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 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 |
d41da0e7d72dccbb033aa25acbe06e7de85bb34e | 2,837 | py | Python | mwe.py | ypotdevin/randomized-defenses | 34bc3cbe8e3178dd8a6f7abae927b10c9ae4bad9 | [
"MIT"
] | null | null | null | mwe.py | ypotdevin/randomized-defenses | 34bc3cbe8e3178dd8a6f7abae927b10c9ae4bad9 | [
"MIT"
] | 2 | 2021-10-06T12:33:54.000Z | 2021-10-06T12:35:16.000Z | mwe.py | ypotdevin/randomized-defenses | 34bc3cbe8e3178dd8a6f7abae927b10c9ae4bad9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module consists of minimal working examples (MWEs) presenting how to use
the network interface and the implemented defense mechanisms.
"""
import defense_mechanisms as dms
import networks
from keras.preprocessing import image
from keras.applications.vgg16 import preprocess_input
# Let... | 30.836957 | 80 | 0.674304 | 380 | 2,837 | 4.842105 | 0.263158 | 0.059783 | 0.048913 | 0.054348 | 0.6625 | 0.647826 | 0.647826 | 0.647826 | 0.647826 | 0.601087 | 0 | 0.027149 | 0.221008 | 2,837 | 91 | 81 | 31.175824 | 0.80543 | 0.262249 | 0 | 0.516667 | 0 | 0 | 0.035359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.25 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d41ec36a988173eeca85c371ef6048d8c516e3df | 842 | py | Python | Sattellite.py | tmkasun/imd_weather_animator | 07fe74698c85cefec52500ddad440da2f8b3072d | [
"MIT"
] | null | null | null | Sattellite.py | tmkasun/imd_weather_animator | 07fe74698c85cefec52500ddad440da2f8b3072d | [
"MIT"
] | null | null | null | Sattellite.py | tmkasun/imd_weather_animator | 07fe74698c85cefec52500ddad440da2f8b3072d | [
"MIT"
] | 1 | 2021-12-25T06:32:02.000Z | 2021-12-25T06:32:02.000Z | from ImageTypes import ImageTypes
class Satellite(object):
"""
http://satellite.imd.gov.in/dynamic/satfaq.pdf
"""
INSAT3D = "INSAT-3D-IMAGER"
KALPANA1 = "KALPANA-1"
BASE_URL = "http://satellite.imd.gov.in/archive/"
def __init__(self, sat_name):
self.image_type = None
self.... | 27.16129 | 56 | 0.628266 | 110 | 842 | 4.572727 | 0.381818 | 0.143141 | 0.129225 | 0.075547 | 0.153082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01746 | 0.251781 | 842 | 30 | 57 | 28.066667 | 0.780952 | 0.054632 | 0 | 0 | 0 | 0 | 0.126923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d41eca7fcdff66d17dd983c05ee2f26bf75693a3 | 1,956 | py | Python | specialist/scan_multi-gene_annotated_snpEff.py | dgaston/ddb-ngsflow-scripts | 1258d49540ac155185d95ec86486b93061d4db15 | [
"MIT"
] | 1 | 2016-07-07T19:58:23.000Z | 2016-07-07T19:58:23.000Z | specialist/scan_multi-gene_annotated_snpEff.py | dgaston/ddb-ngsflow-scripts | 1258d49540ac155185d95ec86486b93061d4db15 | [
"MIT"
] | null | null | null | specialist/scan_multi-gene_annotated_snpEff.py | dgaston/ddb-ngsflow-scripts | 1258d49540ac155185d95ec86486b93061d4db15 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Standard packages
import sys
import cyvcf2
import argparse
import geneimpacts
from cyvcf2 import VCF
def get_effects(variant, annotation_keys):
effects = []
effects += [geneimpacts.SnpEff(e, annotation_keys) for e in variant.INFO.get("ANN").split(",")]
return effects
def get_t... | 28.347826 | 110 | 0.650307 | 243 | 1,956 | 5.053498 | 0.316872 | 0.058632 | 0.026873 | 0.043974 | 0.234528 | 0.184039 | 0.096091 | 0.096091 | 0.057003 | 0 | 0 | 0.004689 | 0.236708 | 1,956 | 68 | 111 | 28.764706 | 0.817816 | 0.019427 | 0 | 0.111111 | 0 | 0.022222 | 0.128914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
d421d3da6be7c3395fdd3945508684fb820db129 | 3,472 | py | Python | models/data_utils/data_gen_utils.py | aman313/deep_generalization | 2ef2a731a1b2e5c3ce16c7b66de86c57dba08a37 | [
"MIT"
] | null | null | null | models/data_utils/data_gen_utils.py | aman313/deep_generalization | 2ef2a731a1b2e5c3ce16c7b66de86c57dba08a37 | [
"MIT"
] | null | null | null | models/data_utils/data_gen_utils.py | aman313/deep_generalization | 2ef2a731a1b2e5c3ce16c7b66de86c57dba08a37 | [
"MIT"
] | null | null | null | import random
import csv
START_MARKER = ''
END_MARKER=''
vocab_pos_int = [str(x) for x in range(10)]
vocab_pos_int.extend([x for x in [START_MARKER,END_MARKER] if len(x)>0])
def generate_random_string_from_vocab(vocab,str_len):
rs = START_MARKER
for i in range(str_len):
rs+=random.choice(vocab)
r... | 41.333333 | 163 | 0.717454 | 542 | 3,472 | 4.210332 | 0.158672 | 0.031551 | 0.015776 | 0.01227 | 0.680105 | 0.595092 | 0.554777 | 0.51227 | 0.448729 | 0.390885 | 0 | 0.025721 | 0.171371 | 3,472 | 84 | 164 | 41.333333 | 0.767466 | 0.048387 | 0 | 0.131148 | 1 | 0 | 0.039673 | 0.027256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180328 | false | 0 | 0.032787 | 0.016393 | 0.278689 | 0.016393 | 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 |
d424b2c6f739a1f885ee58f23820fa2ea71a098f | 1,146 | py | Python | dashboard/migrations/0006_auto_20200818_2106.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 3 | 2020-08-14T20:17:57.000Z | 2020-09-15T19:35:40.000Z | dashboard/migrations/0006_auto_20200818_2106.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 5 | 2020-08-16T21:47:12.000Z | 2020-08-17T03:18:10.000Z | dashboard/migrations/0006_auto_20200818_2106.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-18 16:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0005_ourteam_social_links'),
]
operations = [
migrations.AddField(
model_name='ourte... | 32.742857 | 149 | 0.617801 | 116 | 1,146 | 5.982759 | 0.396552 | 0.051873 | 0.108069 | 0.12536 | 0.325648 | 0.325648 | 0.213256 | 0.146974 | 0 | 0 | 0 | 0.021127 | 0.256545 | 1,146 | 34 | 150 | 33.705882 | 0.793427 | 0.037522 | 0 | 0.392857 | 1 | 0 | 0.173479 | 0.022707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
d425074b6b99caf1234423ee65b0c7b825cda39c | 2,625 | py | Python | cognitive_services/speech_to_text/watson_speech_to_text.py | franklinlindemberg/cognitive-services | 043c6a625cd66a9351ae1366e05b1fef2907cd08 | [
"MIT"
] | null | null | null | cognitive_services/speech_to_text/watson_speech_to_text.py | franklinlindemberg/cognitive-services | 043c6a625cd66a9351ae1366e05b1fef2907cd08 | [
"MIT"
] | null | null | null | cognitive_services/speech_to_text/watson_speech_to_text.py | franklinlindemberg/cognitive-services | 043c6a625cd66a9351ae1366e05b1fef2907cd08 | [
"MIT"
] | null | null | null | import requests
from watson_developer_cloud import SpeechToTextV1, watson_service
from .speech_to_text import SpeechToText
from .speech_to_text_exception import SpeechToTextException
class WatsonSpeechToText(SpeechToText):
def __init__(self, credentials):
username = credentials.get('username')
pa... | 32.012195 | 112 | 0.595048 | 260 | 2,625 | 5.907692 | 0.261538 | 0.135417 | 0.15625 | 0.107422 | 0.514323 | 0.423177 | 0.423177 | 0.423177 | 0.423177 | 0.423177 | 0 | 0.016465 | 0.305905 | 2,625 | 81 | 113 | 32.407407 | 0.826564 | 0 | 0 | 0.46875 | 0 | 0 | 0.119238 | 0.016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.0625 | 0.0625 | 0 | 0.15625 | 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 |
d42f15a08a46442f0042c0e86392185ca209c327 | 359 | py | Python | Kagle/spam.py | SaicharanKandukuri/snippets-python-from-scrach | b0823fde3cf1a88bf43d97bdc542de7e32c76dac | [
"MIT"
] | 1 | 2021-05-29T03:09:24.000Z | 2021-05-29T03:09:24.000Z | Kagle/spam.py | SaicharanKandukuri/snippets-python-from-scrach | b0823fde3cf1a88bf43d97bdc542de7e32c76dac | [
"MIT"
] | null | null | null | Kagle/spam.py | SaicharanKandukuri/snippets-python-from-scrach | b0823fde3cf1a88bf43d97bdc542de7e32c76dac | [
"MIT"
] | null | null | null | # Variables representing the number of candies collected by alice, bob, and carol
alice_candies = 121
bob_candies = 77
carol_candies = 109
# Your code goes here! Replace the right-hand side of this assignment with an expression
# involving alice_candies, bob_candies, and carol_candies
total = (alice_candies + bob_cand... | 39.888889 | 88 | 0.791086 | 54 | 359 | 5.092593 | 0.592593 | 0.130909 | 0.109091 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.147632 | 359 | 9 | 89 | 39.888889 | 0.869281 | 0.618384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
d431dd45b6d5436d804a907e773d70fbb0f16f37 | 1,318 | py | Python | microbot/message.py | minelminel/microbot | 71517217b6deccc61efe408e91d5545838d910c8 | [
"MIT"
] | null | null | null | microbot/message.py | minelminel/microbot | 71517217b6deccc61efe408e91d5545838d910c8 | [
"MIT"
] | null | null | null | microbot/message.py | minelminel/microbot | 71517217b6deccc61efe408e91d5545838d910c8 | [
"MIT"
] | null | null | null | """
message.py
"""
import logging, uuid, time
from types import SimpleNamespace
import marshmallow as ma
from microbot.util import make_uuid, make_time
log = logging.getLogger(__name__)
class Message(SimpleNamespace):
pass
class MessageSchema(ma.Schema):
# what is the purpose of this message
# ex. "in... | 22.724138 | 73 | 0.64871 | 166 | 1,318 | 5.036145 | 0.53012 | 0.057416 | 0.039474 | 0.043062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034951 | 0.218513 | 1,318 | 57 | 74 | 23.122807 | 0.776699 | 0.22003 | 0 | 0 | 0 | 0 | 0.060516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.148148 | 0.037037 | 0.518519 | 0.074074 | 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 |
d43a3a943d05a7126194e3d0870144d75dd5ce89 | 5,639 | py | Python | httprunner/models.py | Arvingrep/httprunner | 35e1fcece13f3e1a3b611366d24d27a08c0d4820 | [
"Apache-2.0"
] | 1 | 2020-10-17T06:03:16.000Z | 2020-10-17T06:03:16.000Z | httprunner/models.py | Arvingrep/httprunner | 35e1fcece13f3e1a3b611366d24d27a08c0d4820 | [
"Apache-2.0"
] | null | null | null | httprunner/models.py | Arvingrep/httprunner | 35e1fcece13f3e1a3b611366d24d27a08c0d4820 | [
"Apache-2.0"
] | null | null | null | import os
from enum import Enum
from typing import Any, Callable, Dict, List, Text, Union
from pydantic import BaseModel, Field, HttpUrl
Name = Text
Url = Text
BaseUrl = Union[HttpUrl, Text]
VariablesMapping = Dict[Text, Any]
FunctionsMapping = Dict[Text, Callable]
Headers = Dict[Text, Text]
Cookies = Dict[Text, Text... | 24.84141 | 88 | 0.66448 | 646 | 5,639 | 5.727554 | 0.312694 | 0.017297 | 0.012973 | 0.009189 | 0.068649 | 0.036757 | 0.018919 | 0.018919 | 0 | 0 | 0 | 0.004619 | 0.232133 | 5,639 | 226 | 89 | 24.951327 | 0.849885 | 0.161199 | 0 | 0.132075 | 0 | 0 | 0.012785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025157 | false | 0 | 0.025157 | 0 | 0.880503 | 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 |
d43cd33eece473f0ffa3f21b6b304a9be2c5c588 | 1,631 | py | Python | tools/csvtzconv.py | wldtw2008/tqdb | 29cfaaac4e7215cf60f6bba40066886bbb50e771 | [
"Apache-2.0"
] | 6 | 2016-10-31T08:20:32.000Z | 2021-06-24T04:55:35.000Z | tools/csvtzconv.py | wldtw2008/tqdb | 29cfaaac4e7215cf60f6bba40066886bbb50e771 | [
"Apache-2.0"
] | 23 | 2015-06-18T04:20:11.000Z | 2016-02-26T02:15:00.000Z | tools/csvtzconv.py | wldtw2008/tqdb | 29cfaaac4e7215cf60f6bba40066886bbb50e771 | [
"Apache-2.0"
] | 3 | 2016-04-30T14:57:38.000Z | 2021-06-24T04:55:39.000Z | #!/usr/bin/python
import sys, subprocess
def doConv(tzFrom, tzTo, csvFile):
allCsvData = []
allDtStr = []
allConvedTZ = []
with open(csvFile, "r") as f:
lines = f.readlines();
for line in lines:
cols = line.strip().split(',');
if (len(cols)>2):
d... | 35.456522 | 111 | 0.526058 | 205 | 1,631 | 4.17561 | 0.404878 | 0.023364 | 0.031542 | 0.028037 | 0.058411 | 0.058411 | 0.058411 | 0 | 0 | 0 | 0 | 0.061388 | 0.310852 | 1,631 | 45 | 112 | 36.244444 | 0.700178 | 0.03924 | 0 | 0.1 | 0 | 0.025 | 0.073482 | 0.021725 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.025 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d448ea2a03045c76646466660ac1c7750c86be7a | 297 | py | Python | upload/urls.py | djangocreation/upload | b1c922933584abecf197c149f87beffe600f266f | [
"BSD-3-Clause"
] | 2 | 2020-03-31T08:57:56.000Z | 2021-08-06T01:51:59.000Z | upload/urls.py | djangocreation/upload | b1c922933584abecf197c149f87beffe600f266f | [
"BSD-3-Clause"
] | null | null | null | upload/urls.py | djangocreation/upload | b1c922933584abecf197c149f87beffe600f266f | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from upload.views import upload, edit
urlpatterns = [
url(r'^upload$', upload),
url(r'^(?P<pk>[0-9]+)/upload$', upload),
url(r'^crop/(?P<pk>[0-9]+)$', edit, name='crop'),
url(r'^rotate/(?P<pk>[0-9]+)/(?P<angle>(90|270))$', edit, name='rotate'),
]
| 29.7 | 77 | 0.575758 | 49 | 297 | 3.489796 | 0.428571 | 0.093567 | 0.070175 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042802 | 0.13468 | 297 | 9 | 78 | 33 | 0.622568 | 0 | 0 | 0 | 0 | 0 | 0.353535 | 0.292929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d450308dffa671981a27928a0405178e8e560e34 | 239 | py | Python | maps/quad/quad.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/quad/quad.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/quad/quad.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | from map import Map
class Quad(Map):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.name = 'quad'
self.difficulty = 'expert'
self.page = 2
self.placement = [0, 1]
| 19.916667 | 41 | 0.552301 | 29 | 239 | 4.275862 | 0.655172 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.301255 | 239 | 11 | 42 | 21.727273 | 0.724551 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d45b647d44466445a26cca1bc3ff71fb0473b318 | 837 | py | Python | tests/test_defaultnamedtuple.py | nvander1/skrt | 4e1943461ec594d72775df90f51b0f5c79029a6a | [
"MIT"
] | 3 | 2017-07-06T18:12:24.000Z | 2018-05-31T19:39:31.000Z | tests/test_defaultnamedtuple.py | nvander1/skrt | 4e1943461ec594d72775df90f51b0f5c79029a6a | [
"MIT"
] | 2 | 2017-07-04T16:59:54.000Z | 2018-04-12T07:38:18.000Z | tests/test_defaultnamedtuple.py | nvander1/skrt | 4e1943461ec594d72775df90f51b0f5c79029a6a | [
"MIT"
] | 2 | 2017-07-04T12:41:05.000Z | 2017-07-17T00:25:47.000Z | from pytest import raises
from skrt.containers import defaultnamedtuple
Name = defaultnamedtuple('Name', 'first', 'last', middle='', prefix='Mr.')
def test_positional_arg_assignment():
john_doe = Name('John', 'Doe')
assert john_doe.first == 'John'
assert john_doe.last == 'Doe'
def test_missing_positi... | 23.914286 | 74 | 0.628435 | 110 | 837 | 4.545455 | 0.281818 | 0.196 | 0.11 | 0.12 | 0.168 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 837 | 34 | 75 | 24.617647 | 0.750751 | 0 | 0 | 0 | 0 | 0 | 0.144564 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4666ab880c180f2ef7f95b98e97af1674b8d130 | 886 | py | Python | python/gdaxfun/setup.py | matr1xc0in/gdaxfun | e74b653aceed26336b0afd3cc4f5e40f0bacba43 | [
"BSD-3-Clause"
] | 1 | 2017-12-28T16:56:31.000Z | 2017-12-28T16:56:31.000Z | python/gdaxfun/setup.py | matr1xc0in/gdaxfun | e74b653aceed26336b0afd3cc4f5e40f0bacba43 | [
"BSD-3-Clause"
] | null | null | null | python/gdaxfun/setup.py | matr1xc0in/gdaxfun | e74b653aceed26336b0afd3cc4f5e40f0bacba43 | [
"BSD-3-Clause"
] | null | null | null | import sys
from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
setup(name='gdaxfun',
version='0.1',
description='Exmaples and practice on Python coding for Gdax APIs',
long_description=readme(),
keywords='gdax crypto bitcoin gdaxfu... | 27.6875 | 81 | 0.586907 | 96 | 886 | 5.302083 | 0.71875 | 0.047151 | 0.05501 | 0.058939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010736 | 0.264108 | 886 | 31 | 82 | 28.580645 | 0.769939 | 0 | 0 | 0.103448 | 0 | 0 | 0.344244 | 0.073363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | true | 0 | 0.068966 | 0 | 0.137931 | 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 |
d4670fb4e7157faa41cd281340327cac02dc0683 | 1,209 | py | Python | annotate_images.py | SaradhaVenkatachalapathy/annotate_images | fd10672909211d87c24e5e3eedaebb1f5d3ebda3 | [
"MIT"
] | 1 | 2021-08-06T18:40:14.000Z | 2021-08-06T18:40:14.000Z | annotate_images.py | SaradhaVenkatachalapathy/annotate_images | fd10672909211d87c24e5e3eedaebb1f5d3ebda3 | [
"MIT"
] | 1 | 2021-08-19T10:54:47.000Z | 2021-08-19T11:03:00.000Z | annotate_images.py | SaradhaVenkatachalapathy/annotate_images | fd10672909211d87c24e5e3eedaebb1f5d3ebda3 | [
"MIT"
] | 1 | 2021-08-11T11:41:48.000Z | 2021-08-11T11:41:48.000Z | import argparse
from annotate.batch_processing import generate_annotation_labels_batch
# Parse the input arguments
options = argparse.ArgumentParser(description = "Interactively annotate all images in a given directory")
options.add_argument('--datadir', help = 'directory of raw images' , default = 'data/nuc_imgs/')
... | 57.571429 | 119 | 0.69727 | 145 | 1,209 | 5.593103 | 0.462069 | 0.061652 | 0.110974 | 0.071517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003128 | 0.206782 | 1,209 | 20 | 120 | 60.45 | 0.842544 | 0.049628 | 0 | 0 | 1 | 0 | 0.27836 | 0.020942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4672ae7e482550948b178daa4ac878c7ffb1140 | 3,904 | py | Python | franka_example_controllers/scripts/learning/franka_env.py | deanpham98/my_franka_controllers | ee59f48115d3e3cef55e60e32e36ab4810fb58f8 | [
"Apache-2.0"
] | null | null | null | franka_example_controllers/scripts/learning/franka_env.py | deanpham98/my_franka_controllers | ee59f48115d3e3cef55e60e32e36ab4810fb58f8 | [
"Apache-2.0"
] | null | null | null | franka_example_controllers/scripts/learning/franka_env.py | deanpham98/my_franka_controllers | ee59f48115d3e3cef55e60e32e36ab4810fb58f8 | [
"Apache-2.0"
] | null | null | null | import numpy
import rospy
#from my_fetch_train import robot_gazebo_env_goal
import base_env
from std_msgs.msg import Float64
from sensor_msgs.msg import JointState
from nav_msgs.msg import Odometry
from fetch_train.srv import EePose, EePoseRequest, EeRpy, EeRpyRequest, EeTraj, EeTrajRequest, JointTraj, JointTrajRequest... | 33.655172 | 122 | 0.650615 | 473 | 3,904 | 5.17759 | 0.395349 | 0.0343 | 0.0441 | 0.0147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004972 | 0.278689 | 3,904 | 116 | 123 | 33.655172 | 0.864702 | 0.180328 | 0 | 0.125 | 0 | 0 | 0.04421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0 | 0.125 | 0.017857 | 0.446429 | 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 |
d46b2b7b8e9f72729f05f27d2803c030f1c9832d | 1,956 | py | Python | telegram_bot.py | Urlandi/FullViewBot | 0c675848546d0360984663e9b9f5b06ce1743ce3 | [
"MIT"
] | 5 | 2018-01-25T08:19:16.000Z | 2020-02-05T08:23:22.000Z | telegram_bot.py | Urlandi/FullViewBot | 0c675848546d0360984663e9b9f5b06ce1743ce3 | [
"MIT"
] | null | null | null | telegram_bot.py | Urlandi/FullViewBot | 0c675848546d0360984663e9b9f5b06ce1743ce3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from telegram.ext import Updater, CommandHandler, MessageHandler, CallbackQueryHandler, Filters, MessageFilter
from telegram import TelegramError
from config_telegram_auth import TOKEN
from telegram_bot_handlers import start_cmd, stop_cmd, settings_cmd, help_cmd, echo_cmd, last_status_cmd
from... | 33.152542 | 110 | 0.752556 | 220 | 1,956 | 6.436364 | 0.309091 | 0.100989 | 0.141243 | 0.146186 | 0.425847 | 0.189266 | 0.189266 | 0.122881 | 0.122881 | 0 | 0 | 0.000609 | 0.161043 | 1,956 | 58 | 111 | 33.724138 | 0.862279 | 0.019427 | 0 | 0.083333 | 0 | 0 | 0.049608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.194444 | 0.083333 | 0.527778 | 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 |
d46c1992f5365655520121dfc8bf7164c3130a44 | 648 | py | Python | auto_make.py | xiaodotgua/renderer.gua | e5330bd2588fd0625c4f4b8861602342a6f3bea6 | [
"Apache-2.0"
] | 315 | 2015-07-17T04:31:20.000Z | 2022-02-09T09:19:28.000Z | auto_make.py | xiaodotgua/renderer.gua | e5330bd2588fd0625c4f4b8861602342a6f3bea6 | [
"Apache-2.0"
] | 12 | 2015-07-17T08:52:25.000Z | 2017-08-26T06:56:02.000Z | auto_make.py | xiaodotgua/renderer.gua | e5330bd2588fd0625c4f4b8861602342a6f3bea6 | [
"Apache-2.0"
] | 108 | 2015-07-17T06:42:55.000Z | 2021-06-23T15:19:06.000Z | import os
import sys
import time
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
class AutoMake(PatternMatchingEventHandler):
patterns = ["*.h", "*.cpp"]
def process(self, event):
os.system('make osx')
def on_modified(self, event):
self.pr... | 19.636364 | 64 | 0.649691 | 73 | 648 | 5.643836 | 0.616438 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.236111 | 648 | 32 | 65 | 20.25 | 0.826263 | 0 | 0 | 0 | 0 | 0 | 0.03858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.217391 | null | null | 0.043478 | 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 |
d47727e6975e4312b8beabc3fd9f7fb1d2c53573 | 7,825 | py | Python | src/mabot/ui/ui.py | jussimalinen/robotframework-mabot | 570bfcc5c3979532f193e745582a42b69145530d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-09-10T07:45:58.000Z | 2020-04-13T06:25:06.000Z | src/mabot/ui/ui.py | jussimalinen/robotframework-mabot | 570bfcc5c3979532f193e745582a42b69145530d | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-08-03T10:01:06.000Z | 2020-08-03T10:01:06.000Z | src/mabot/ui/ui.py | jussimalinen/robotframework-mabot | 570bfcc5c3979532f193e745582a42b69145530d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-10-06T13:29:50.000Z | 2021-05-31T01:04:01.000Z | # Copyright 2008 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 42.069892 | 122 | 0.65099 | 964 | 7,825 | 4.995851 | 0.21473 | 0.037375 | 0.031977 | 0.055233 | 0.42691 | 0.2826 | 0.141611 | 0.078073 | 0.034884 | 0.018272 | 0 | 0.004774 | 0.250479 | 7,825 | 185 | 123 | 42.297297 | 0.816368 | 0.074888 | 0 | 0.112782 | 0 | 0 | 0.11768 | 0.04015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203008 | false | 0 | 0.030075 | 0.030075 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d47b0386b2ea881b84d94f590f9df97fc559c7bb | 1,039 | py | Python | snowballing/example/database/work/y2008.py | bispojr/snowballing | 962e5fd10144bd317626ee90e4c929faf5350713 | [
"MIT"
] | 37 | 2017-08-23T23:26:01.000Z | 2022-01-29T14:37:42.000Z | snowballing/example/database/work/y2008.py | bispojr/snowballing | 962e5fd10144bd317626ee90e4c929faf5350713 | [
"MIT"
] | 10 | 2017-08-23T23:29:00.000Z | 2021-11-23T12:37:48.000Z | snowballing/example/database/work/y2008.py | bispojr/snowballing | 962e5fd10144bd317626ee90e4c929faf5350713 | [
"MIT"
] | 16 | 2017-11-21T18:46:15.000Z | 2022-03-31T07:33:17.000Z | # coding: utf-8
from datetime import datetime
from snowballing.models import *
from ..places import *
freire2008a = DB(WorkUnrelated( # Survey
2008, "Provenance for computational tasks: A survey",
star="[analysis][x] Definition of provenance; division of provenance management solution in three main components ... | 41.56 | 308 | 0.725698 | 132 | 1,039 | 5.689394 | 0.795455 | 0.031957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.158807 | 1,039 | 24 | 309 | 43.291667 | 0.772311 | 0.019249 | 0 | 0 | 0 | 0.090909 | 0.623032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 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 |
d47e395384ddf52671d98c70a0a20daedc273385 | 3,103 | py | Python | src/Products/TemporaryFolder/TemporaryFolder.py | tseaver/Zope-RFA | 08634f39b0f8b56403a2a9daaa6ee4479ef0c625 | [
"ZPL-2.1"
] | 2 | 2015-12-21T10:34:56.000Z | 2017-09-24T11:07:58.000Z | src/Products/TemporaryFolder/TemporaryFolder.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | src/Products/TemporaryFolder/TemporaryFolder.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 33.365591 | 78 | 0.67612 | 376 | 3,103 | 5.481383 | 0.444149 | 0.029112 | 0.013586 | 0.017467 | 0.02329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0032 | 0.194328 | 3,103 | 92 | 79 | 33.728261 | 0.8212 | 0.37931 | 0 | 0 | 0 | 0 | 0.102339 | 0.01345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.170732 | 0.02439 | 0.560976 | 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 |
d48150cab6a2d4f295040cdd3e51cd4603e37b8a | 1,018 | py | Python | baekjoon/11725.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/11725.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/11725.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | """
11725 : 트리의 부모 찾기
URL : https://www.acmicpc.net/problem/11725
Input #1 :
7
1 6
6 3
3 5
4 1
2 4
4 7
Output #1 :
4
6
1
3
1
4
Input #2 :
12
1 2
1 3
2 4
3 5... | 13.394737 | 47 | 0.382122 | 148 | 1,018 | 2.628378 | 0.337838 | 0.015424 | 0.046272 | 0.084833 | 0.071979 | 0.071979 | 0.071979 | 0 | 0 | 0 | 0 | 0.179592 | 0.518664 | 1,018 | 75 | 48 | 13.573333 | 0.614286 | 0.354617 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.047619 | 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 |
d484819e280102231d29373c5544f7647d95d27c | 1,427 | py | Python | chinookapi/views.py | MaheshBodas/chinook-poc-api-master | a2cfb0f9f6b7c28ea75b918dd2eef0872a78bbf8 | [
"MIT"
] | null | null | null | chinookapi/views.py | MaheshBodas/chinook-poc-api-master | a2cfb0f9f6b7c28ea75b918dd2eef0872a78bbf8 | [
"MIT"
] | null | null | null | chinookapi/views.py | MaheshBodas/chinook-poc-api-master | a2cfb0f9f6b7c28ea75b918dd2eef0872a78bbf8 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import viewsets
from rest_framework import permissions
from chinookapi.models import Artist, Album, MediaType, Genre, Track
from chinookapi.serializers import UserSerializer, TrackSerializer
from django_filters import rest_framework as filters
fr... | 35.675 | 69 | 0.740014 | 146 | 1,427 | 7.047945 | 0.527397 | 0.050535 | 0.049563 | 0.044704 | 0.101069 | 0.101069 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.17309 | 1,427 | 40 | 70 | 35.675 | 0.868644 | 0.079187 | 0 | 0.148148 | 0 | 0 | 0.046825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.259259 | 0 | 0.962963 | 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 |
d48955e5c00636d295370731801af7670de62cca | 2,031 | py | Python | bs/builders/cc.py | chasinglogic/bs | ea91630d9050e261e8f3f3f29c0c5af43725bc6e | [
"Apache-2.0"
] | 1 | 2020-02-13T17:46:51.000Z | 2020-02-13T17:46:51.000Z | bs/builders/cc.py | chasinglogic/bs | ea91630d9050e261e8f3f3f29c0c5af43725bc6e | [
"Apache-2.0"
] | null | null | null | bs/builders/cc.py | chasinglogic/bs | ea91630d9050e261e8f3f3f29c0c5af43725bc6e | [
"Apache-2.0"
] | null | null | null | from shutil import which
from sys import platform
from os import getenv
from bs.builder import Builder
from bs.errors import UserError
from bs.log import warning
from bs.builders.clike_builder import ClikeBuilder
class CC(ClikeBuilder):
"""Implements a builder for C programs"""
COMSTR = "${CC_COMMAND}"
de... | 27.08 | 85 | 0.612999 | 274 | 2,031 | 4.459854 | 0.354015 | 0.0491 | 0.036825 | 0.05401 | 0.165303 | 0.126023 | 0.096563 | 0.096563 | 0.096563 | 0.096563 | 0 | 0.001335 | 0.262432 | 2,031 | 74 | 86 | 27.445946 | 0.814419 | 0.089611 | 0 | 0.134615 | 0 | 0 | 0.246045 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.057692 | false | 0 | 0.134615 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00f8b98eacc90988732f447cc3cc319a2dc94643 | 7,247 | py | Python | week3.py | Chilliwack/python_intro | ee5a18b1c3375bd21bd64f534d1cd6fda23fd76f | [
"CC-BY-4.0"
] | null | null | null | week3.py | Chilliwack/python_intro | ee5a18b1c3375bd21bd64f534d1cd6fda23fd76f | [
"CC-BY-4.0"
] | null | null | null | week3.py | Chilliwack/python_intro | ee5a18b1c3375bd21bd64f534d1cd6fda23fd76f | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
#### Extracting data from data frames ####
#### Objectives ####
# review previous week's objectives
# Today:
# conditional subsetting
# grouping data
# visualizing data with pandas
# dealing with missing data
#### Getting set up ####
# make sure folks are working in project directory... | 36.235 | 132 | 0.778943 | 1,126 | 7,247 | 4.868561 | 0.290409 | 0.062021 | 0.044144 | 0.032835 | 0.242247 | 0.209413 | 0.142649 | 0.122948 | 0.077344 | 0.06421 | 0 | 0.009284 | 0.137988 | 7,247 | 199 | 133 | 36.417085 | 0.868257 | 0.602456 | 0 | 0.037037 | 0 | 0 | 0.080103 | 0.016611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018519 | null | null | 0.018519 | 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 |
00fb7805501e912036fd63620bbaaac16bf60b63 | 10,518 | py | Python | CS241 w11/asteroids11/skeet.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | CS241 w11/asteroids11/skeet.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | CS241 w11/asteroids11/skeet.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | """
File: skeet.py
Original Author: Br. Burton
Designed to be completed by others
This program implements an awesome version of skeet.
"""
from abc import ABC
from abc import abstractmethod
import arcade
import math
import random
# These are Global constants to use throughout the game
SCREEN_WIDTH = 600
SCREEN_HEIGHT... | 28.975207 | 163 | 0.611048 | 1,397 | 10,518 | 4.457409 | 0.219041 | 0.036936 | 0.019432 | 0.019271 | 0.240726 | 0.21744 | 0.163482 | 0.101494 | 0.089931 | 0.079653 | 0 | 0.011147 | 0.300628 | 10,518 | 362 | 164 | 29.055249 | 0.835372 | 0.21506 | 0 | 0.274725 | 0 | 0 | 0.001385 | 0 | 0 | 0 | 0 | 0.01105 | 0 | 1 | 0.181319 | false | 0 | 0.027473 | 0 | 0.302198 | 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 |
00fc87886a9ff857ebe52ccf85f60c47e9369b89 | 3,582 | py | Python | PySnarlTests.py | cumulus13/pysnarl | 7e8daae237512889f4b6bbe4271a0ad92de77e7b | [
"Apache-2.0"
] | null | null | null | PySnarlTests.py | cumulus13/pysnarl | 7e8daae237512889f4b6bbe4271a0ad92de77e7b | [
"Apache-2.0"
] | null | null | null | PySnarlTests.py | cumulus13/pysnarl | 7e8daae237512889f4b6bbe4271a0ad92de77e7b | [
"Apache-2.0"
] | null | null | null | import PySnarl
import unittest, time, wx
from path import path
class TestSnarlFunctions(unittest.TestCase):
def setUp(self):
self.startSnarl()
self.msg = PySnarl.SnarlMessage()
self.app = wx.PySimpleApp()
self.frame = wx.Frame(None, wx.ID_ANY, "Hello World")
def te... | 34.776699 | 94 | 0.60469 | 398 | 3,582 | 5.346734 | 0.226131 | 0.089286 | 0.056391 | 0.095865 | 0.492011 | 0.449718 | 0.360432 | 0.228383 | 0.148496 | 0.121241 | 0 | 0.030932 | 0.259911 | 3,582 | 102 | 95 | 35.117647 | 0.771784 | 0 | 0 | 0.282353 | 0 | 0 | 0.066443 | 0 | 0 | 0 | 0 | 0 | 0.223529 | 0 | null | null | 0 | 0.058824 | 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 |
00ff161b6365230b182066463f861ddf5da4b058 | 530 | py | Python | companionpages/api/tests/test_doi.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | 3 | 2015-02-25T21:38:53.000Z | 2019-05-24T16:26:20.000Z | companionpages/api/tests/test_doi.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | null | null | null | companionpages/api/tests/test_doi.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | null | null | null | from django.test import TestCase
from rest_framework.test import APIRequestFactory
from api import views
class DoiTest(TestCase):
def setUp(self):
self.factory = APIRequestFactory()
def test_missing_params(self):
""" Tests that missing params return a bad request status """
request =... | 33.125 | 119 | 0.707547 | 67 | 530 | 5.507463 | 0.597015 | 0.054201 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.2 | 530 | 15 | 120 | 35.333333 | 0.856132 | 0.1 | 0 | 0 | 0 | 0 | 0.121535 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2e032c3883793792286047cbf57c2532456fb560 | 1,853 | py | Python | qcodes/tests/drivers/test_tektronix_AWG70000A.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 5 | 2017-02-14T09:14:18.000Z | 2021-11-09T11:40:51.000Z | qcodes/tests/drivers/test_tektronix_AWG70000A.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 50 | 2017-04-12T04:03:15.000Z | 2022-03-09T00:41:43.000Z | qcodes/tests/drivers/test_tektronix_AWG70000A.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 4 | 2018-01-08T16:35:51.000Z | 2021-12-22T02:30:08.000Z | from io import StringIO
import pytest
from hypothesis import given, settings
import hypothesis.strategies as hst
from lxml import etree
from qcodes.instrument_drivers.tektronix.AWG70002A import AWG70002A
from qcodes.instrument_drivers.tektronix.AWG70000A import AWG70000A
import qcodes.instrument.sims as sims
visalib ... | 27.25 | 78 | 0.695629 | 241 | 1,853 | 5.149378 | 0.46888 | 0.048348 | 0.054795 | 0.08058 | 0.253022 | 0.153102 | 0.069299 | 0 | 0 | 0 | 0 | 0.057835 | 0.197518 | 1,853 | 67 | 79 | 27.656716 | 0.776732 | 0.056665 | 0 | 0.046512 | 0 | 0 | 0.05788 | 0.028653 | 0 | 0 | 0 | 0.014925 | 0.023256 | 1 | 0.116279 | false | 0 | 0.186047 | 0 | 0.302326 | 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 |
2e06627ed4d01ffa0d1860dc0688e291c72de508 | 1,973 | py | Python | pyuavcan/_cli/commands/_base.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | pyuavcan/_cli/commands/_base.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | pyuavcan/_cli/commands/_base.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019 UAVCAN Development Team
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
#
import abc
import typing
import argparse
import pyuavcan
from ._subsystems import SubsystemFactory as SubsystemFactory
class Command(abc.ABC):
""... | 29.447761 | 115 | 0.672073 | 212 | 1,973 | 6.216981 | 0.495283 | 0.07739 | 0.091047 | 0.084977 | 0.230653 | 0.163885 | 0.124431 | 0.124431 | 0.124431 | 0.124431 | 0 | 0.005409 | 0.25038 | 1,973 | 66 | 116 | 29.893939 | 0.885734 | 0.370502 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.166667 | 0.033333 | 0.466667 | 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 |
2e0ee388f322f57ac19a74f568e6eb5ea466b153 | 2,164 | py | Python | manabe/envx/tests/test_views.py | luoyedao/manabe | 90c158bd23e956308263b542634adc97f6526276 | [
"Apache-2.0"
] | 16 | 2018-08-12T08:28:00.000Z | 2022-03-15T02:13:42.000Z | manabe/envx/tests/test_views.py | luoyedao/manabe | 90c158bd23e956308263b542634adc97f6526276 | [
"Apache-2.0"
] | 14 | 2020-02-11T23:27:29.000Z | 2022-02-11T03:43:26.000Z | manabe/envx/tests/test_views.py | luoyedao/manabe | 90c158bd23e956308263b542634adc97f6526276 | [
"Apache-2.0"
] | 25 | 2018-08-26T07:38:46.000Z | 2022-03-15T02:13:45.000Z | from django.test import TestCase
from django.urls import resolve, reverse
from django.contrib.auth.models import User
from model_mommy import mommy
from envx.models import Env
from envx.urls import EnvXListView, EnvXHistoryView, change
class EnvXListTests(TestCase):
def setUp(self):
self.user = User.objec... | 33.292308 | 80 | 0.657579 | 264 | 2,164 | 5.151515 | 0.208333 | 0.052941 | 0.070588 | 0.044118 | 0.701471 | 0.617647 | 0.617647 | 0.594118 | 0.566176 | 0.566176 | 0 | 0.005354 | 0.223198 | 2,164 | 64 | 81 | 33.8125 | 0.803688 | 0 | 0 | 0.557692 | 0 | 0 | 0.07671 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.173077 | false | 0.115385 | 0.115385 | 0 | 0.346154 | 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 |
2e133dcfd191bca8154aa263a3233d9b4958ca5a | 344 | py | Python | setup.py | morrme/smooth | 06f0c9a6af51be73ef1d5eaaeed9946be672e51e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | setup.py | morrme/smooth | 06f0c9a6af51be73ef1d5eaaeed9946be672e51e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | setup.py | morrme/smooth | 06f0c9a6af51be73ef1d5eaaeed9946be672e51e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name='smooth',
version='0.2.0',
packages=find_packages(),
package_data={'smooth.examples': ['example_timeseries/*.csv']},
license='GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007',
long_description=open... | 28.666667 | 78 | 0.709302 | 44 | 344 | 5.431818 | 0.772727 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0.151163 | 344 | 11 | 79 | 31.272727 | 0.784247 | 0 | 0 | 0 | 0 | 0 | 0.354651 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e21459866877d015b062b1ee9df31d532c12702 | 311 | py | Python | tests/test_p4_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | tests/test_p4_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | tests/test_p4_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | from ctci.p4_1 import Graph, Node
def test_graph_route_exists():
g = Graph()
node1 = Node(1)
node2 = Node(2)
node3 = Node(3)
node1.children = [node2, node3]
node4 = Node(4)
g.nodes.append(node1)
assert g.route_exists(node1, node3)
assert not g.route_exists(node1, node4)
| 19.4375 | 43 | 0.643087 | 47 | 311 | 4.12766 | 0.510638 | 0.170103 | 0.123711 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0.237942 | 311 | 15 | 44 | 20.733333 | 0.742616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e247635d7f5389408501a9246b57bb00f2812bf | 1,711 | py | Python | src/game.py | ArmstrongJ/pyohio2013 | b570d81a41f57d17a5f7fccda20eec08f772c6d3 | [
"Unlicense"
] | 8 | 2015-03-03T17:50:53.000Z | 2021-11-13T07:27:07.000Z | src/game.py | ArmstrongJ/pyohio2013 | b570d81a41f57d17a5f7fccda20eec08f772c6d3 | [
"Unlicense"
] | null | null | null | src/game.py | ArmstrongJ/pyohio2013 | b570d81a41f57d17a5f7fccda20eec08f772c6d3 | [
"Unlicense"
] | 8 | 2015-02-27T21:59:29.000Z | 2019-02-01T01:34:42.000Z | import cmd
from room import get_room
import textwrap
import shutil
import tempfile
class Game(cmd.Cmd):
def __init__(self):
cmd.Cmd.__init__(self)
self.dbfile = tempfile.mktemp()
shutil.copyfile("game.db", self.dbfile)
self.loc = get_room(1, self.dbfile)
se... | 22.813333 | 64 | 0.498539 | 213 | 1,711 | 3.868545 | 0.380282 | 0.054612 | 0.072816 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005489 | 0.361192 | 1,711 | 74 | 65 | 23.121622 | 0.748399 | 0.045587 | 0 | 0.040816 | 0 | 0 | 0.084799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.102041 | 0 | 0.387755 | 0.142857 | 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 |
2e283a9b8b3c4deb0bb2ebc8bbf4d438162c9060 | 521 | py | Python | Class_11/exercise2a.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | Class_11/exercise2a.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | Class_11/exercise2a.py | travism16/Python-Course | d8c522fc31c7830c3ceabf7a35022a9e33e1d706 | [
"Apache-2.0"
] | null | null | null | import requests
from urllib3.exceptions import InsecureRequestWarning
from pprint import pprint
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
if __name__ == "__main__":
url = "https://netbox.lasthop.io/api/"
response = requests.get(url, verify=False)
print("\nStatus C... | 27.421053 | 75 | 0.704415 | 56 | 521 | 6.375 | 0.607143 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004598 | 0.165067 | 521 | 18 | 76 | 28.944444 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0.145873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.625 | 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 |
2e28f772ff9e66c185f358632e624ea0cc27ea4a | 11,063 | py | Python | {{cookiecutter.project_slug}}/backend/config/settings/production.py | witold-gren/django-template | 4b805bc374219688fb58aedeb959fe091a596f6b | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/backend/config/settings/production.py | witold-gren/django-template | 4b805bc374219688fb58aedeb959fe091a596f6b | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/backend/config/settings/production.py | witold-gren/django-template | 4b805bc374219688fb58aedeb959fe091a596f6b | [
"BSD-3-Clause"
] | null | null | null | """
Production settings for {{cookiecutter.project_name}} project.
- Use Redis for cache
- Use sentry for error logging
"""
import urllib
import sentry_sdk
{% if cookiecutter.use_celery == 'y' %}
from sentry_sdk.integrations.celery import CeleryIntegration
{%- endif %}
from sentry_sdk.integrations.django import Djang... | 37.757679 | 100 | 0.626051 | 1,201 | 11,063 | 5.535387 | 0.261449 | 0.024368 | 0.052948 | 0.060168 | 0.272413 | 0.21781 | 0.199759 | 0.193742 | 0.188327 | 0.145307 | 0 | 0.006095 | 0.125011 | 11,063 | 292 | 101 | 37.886986 | 0.680682 | 0.414625 | 0 | 0.090909 | 0 | 0 | 0.371795 | 0.222756 | 0 | 0 | 0 | 0.003425 | 0 | 0 | null | null | 0 | 0.030303 | 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 |
2e2aa68f5f643a232aa7c91bafa0622cc8b35d99 | 580 | py | Python | src/api/migrations/0003_auto_20180802_1601.py | mlbench/mlbench-dashboard | 27dcd631b708c8afbbb593aabcd4ceef33ae9b42 | [
"Apache-2.0"
] | null | null | null | src/api/migrations/0003_auto_20180802_1601.py | mlbench/mlbench-dashboard | 27dcd631b708c8afbbb593aabcd4ceef33ae9b42 | [
"Apache-2.0"
] | 109 | 2018-12-06T15:00:46.000Z | 2022-03-01T16:01:06.000Z | src/api/migrations/0003_auto_20180802_1601.py | mlbench/mlbench-dashboard | 27dcd631b708c8afbbb593aabcd4ceef33ae9b42 | [
"Apache-2.0"
] | 1 | 2020-02-26T14:26:50.000Z | 2020-02-26T14:26:50.000Z | # Generated by Django 2.0.7 on 2018-08-02 16:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("api", "0002_auto_20180731_1428"),
]
operations = [
migrations.AlterField(
model_name="kubemetri... | 23.2 | 60 | 0.556897 | 59 | 580 | 5.372881 | 0.711864 | 0.07571 | 0.088328 | 0.138801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080311 | 0.334483 | 580 | 24 | 61 | 24.166667 | 0.740933 | 0.077586 | 0 | 0.111111 | 1 | 0 | 0.106942 | 0.043152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e30420bf8570f9dda6d926afdc62d1b6cbd82ca | 882 | py | Python | src/gray-inferencer/ext4/LogRecord.py | cmusatyalab/gammaray | 88a5051523777132a200418936b41f7b7e46679f | [
"Apache-2.0"
] | 13 | 2015-10-17T03:10:10.000Z | 2021-09-15T10:52:15.000Z | src/gray-inferencer/ext4/LogRecord.py | cmusatyalab/gammaray | 88a5051523777132a200418936b41f7b7e46679f | [
"Apache-2.0"
] | 2 | 2015-03-11T15:48:31.000Z | 2015-04-21T16:40:05.000Z | src/gray-inferencer/ext4/LogRecord.py | cmusatyalab/gammaray | 88a5051523777132a200418936b41f7b7e46679f | [
"Apache-2.0"
] | 6 | 2015-02-13T16:17:58.000Z | 2020-12-23T07:28:48.000Z | #!/usr/bin/env python
# vim:set nospell:
from bson import loads
from struct import unpack
class LogRecord(object):
def __init__(self, data):
self.timestamp = data[0:13]
self.__dict__.update(loads(data[13:]))
self.serialized_length = 13 + unpack('i', data[13:17])[0]
def __str__(self):
retstr = '{\n'
for k... | 28.451613 | 78 | 0.581633 | 118 | 882 | 4.127119 | 0.567797 | 0.043121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018154 | 0.250567 | 882 | 30 | 79 | 29.4 | 0.718608 | 0.04195 | 0 | 0 | 0 | 0 | 0.164887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 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 |
2e31e62a99e35a283fd6cc09be4597216cc1e183 | 4,241 | py | Python | fitapp/tests/base.py | brad/django-fitbit | 39278068980a81bb67868b024b09683810cbc9f7 | [
"Apache-2.0"
] | null | null | null | fitapp/tests/base.py | brad/django-fitbit | 39278068980a81bb67868b024b09683810cbc9f7 | [
"Apache-2.0"
] | null | null | null | fitapp/tests/base.py | brad/django-fitbit | 39278068980a81bb67868b024b09683810cbc9f7 | [
"Apache-2.0"
] | null | null | null | from mock import patch, Mock
import random
import string
from urllib import urlencode
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from fitbit.api import Fitbit
from fitapp.models import UserFitbit
class MockClient(object):
def __ini... | 33.928 | 79 | 0.63735 | 511 | 4,241 | 5.142857 | 0.25636 | 0.054795 | 0.066971 | 0.068493 | 0.125571 | 0.068493 | 0.038052 | 0.038052 | 0.038052 | 0 | 0 | 0.009721 | 0.248055 | 4,241 | 124 | 80 | 34.201613 | 0.814362 | 0.052346 | 0 | 0.064516 | 0 | 0 | 0.049246 | 0.014322 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.150538 | false | 0.075269 | 0.096774 | 0.021505 | 0.387097 | 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 |
2e339f9041b896b3442d3da7a0edc718e3a101e7 | 5,262 | py | Python | mongo.py | shinsons/dulwich-mongo-backend | a0e19acdd26c76416ca2cf59cc591976242be163 | [
"Apache-2.0"
] | null | null | null | mongo.py | shinsons/dulwich-mongo-backend | a0e19acdd26c76416ca2cf59cc591976242be163 | [
"Apache-2.0"
] | null | null | null | mongo.py | shinsons/dulwich-mongo-backend | a0e19acdd26c76416ca2cf59cc591976242be163 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# mongo.py -- A Repo, Object Store and Refs implementation backing into a
# MongoDB database.
# Copyright 2015 Nathen Hinson <nathen.hinson@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may... | 30.77193 | 79 | 0.611745 | 665 | 5,262 | 4.717293 | 0.308271 | 0.021039 | 0.019127 | 0.026777 | 0.207842 | 0.195091 | 0.178515 | 0.178515 | 0.178515 | 0.149825 | 0 | 0.00243 | 0.296085 | 5,262 | 170 | 80 | 30.952941 | 0.844492 | 0.148233 | 0 | 0.228571 | 0 | 0 | 0.029633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.1 | 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 |
2e3bb2c696272253443476644592a3f732040c2d | 609 | py | Python | src/ggrc/services/log_event.py | alaeddine10/ggrc-core | e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-10-20T22:58:44.000Z | 2020-10-20T22:58:44.000Z | src/ggrc/services/log_event.py | alaeddine10/ggrc-core | e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/services/log_event.py | alaeddine10/ggrc-core | e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-10-20T22:58:46.000Z | 2021-03-07T14:44:26.000Z | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask import request
from .common import Resource
class LogEvents(Resour... | 30.45 | 78 | 0.73399 | 79 | 609 | 5.594937 | 0.683544 | 0.031674 | 0.099548 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.146141 | 609 | 19 | 79 | 32.052632 | 0.838462 | 0.380952 | 0 | 0 | 0 | 0 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.7 | 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 |
2e3eb58389e345ab52196fc8d095ffd5553b7c15 | 672 | py | Python | mysite/search/migrations/0008_auto_20181209_1620.py | marcpa00/Carotte | 920f7cc0dac05d83563fca932bd7e18ff7cf0a96 | [
"MIT"
] | 1 | 2019-01-21T19:34:04.000Z | 2019-01-21T19:34:04.000Z | mysite/search/migrations/0008_auto_20181209_1620.py | marcpa00/Carotte | 920f7cc0dac05d83563fca932bd7e18ff7cf0a96 | [
"MIT"
] | null | null | null | mysite/search/migrations/0008_auto_20181209_1620.py | marcpa00/Carotte | 920f7cc0dac05d83563fca932bd7e18ff7cf0a96 | [
"MIT"
] | 1 | 2019-01-01T18:59:36.000Z | 2019-01-01T18:59:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-12-09 21:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0007_auto_20181209_1532'),
]
operations = [
migrations.AlterField(
... | 25.846154 | 83 | 0.614583 | 72 | 672 | 5.541667 | 0.638889 | 0.100251 | 0.125313 | 0.145363 | 0.481203 | 0.481203 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.08554 | 0.269345 | 672 | 25 | 84 | 26.88 | 0.727088 | 0.098214 | 0 | 0.444444 | 1 | 0 | 0.096186 | 0.038143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e4bbd6efb04ea2bfc2c4c121330321d196cfc46 | 572 | py | Python | Exercicios/Ex048.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | 2 | 2021-05-21T23:17:44.000Z | 2021-05-22T04:34:37.000Z | Exercicios/Ex048.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | null | null | null | Exercicios/Ex048.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | null | null | null | """ Ex - 048 - Faça um programa que calcule a soma entre todos os números impares que
são múltipços de três e que se encotram no intervalo de 1 até 500"""
# Como eu Fiz
print(f'{"> Soma Dos Números Multiploes de 3 <":=^40}')
# Criar laço de repetição
s = 0
for n in range(3, 501, 3):... | 24.869565 | 93 | 0.568182 | 99 | 572 | 3.282828 | 0.565657 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0.325175 | 572 | 22 | 94 | 26 | 0.76943 | 0.38986 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.230769 | 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 |
2e53863ec703f22026506e878f2702ff0306045c | 2,840 | py | Python | rlexperiments/common/distributions.py | asprenger/rl-experiments | 738794b0c8f1151fd973a502bc3e512be7ec1213 | [
"MIT"
] | 6 | 2018-05-01T14:37:56.000Z | 2021-08-19T09:24:03.000Z | rlexperiments/common/distributions.py | asprenger/rl-experiments | 738794b0c8f1151fd973a502bc3e512be7ec1213 | [
"MIT"
] | null | null | null | rlexperiments/common/distributions.py | asprenger/rl-experiments | 738794b0c8f1151fd973a502bc3e512be7ec1213 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from tensorflow.python.ops import math_ops
class Pd(object):
'''
A probability distribution
'''
def neglogp(self, x):
raise NotImplementedError
def kl(self, other):
raise NotImplementedError
def entropy(self):
raise NotImplement... | 35.949367 | 162 | 0.622887 | 421 | 2,840 | 4.061758 | 0.23753 | 0.038012 | 0.057895 | 0.045614 | 0.393567 | 0.30117 | 0.277193 | 0.222222 | 0.222222 | 0.162573 | 0 | 0.027429 | 0.242606 | 2,840 | 78 | 163 | 36.410256 | 0.76755 | 0.086972 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.245614 | false | 0 | 0.052632 | 0.052632 | 0.491228 | 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 |
2e55fdb8f59fb3153047b0b3ee2e33abc3c64da3 | 541 | py | Python | h5sh/commands/pwd.py | jl-wynen/h5shell | 9461c08b4eefe0d28f59fdc6dbf7c0a73305553e | [
"MIT"
] | 1 | 2021-07-21T11:00:51.000Z | 2021-07-21T11:00:51.000Z | h5sh/commands/pwd.py | jl-wynen/h5shell | 9461c08b4eefe0d28f59fdc6dbf7c0a73305553e | [
"MIT"
] | null | null | null | h5sh/commands/pwd.py | jl-wynen/h5shell | 9461c08b4eefe0d28f59fdc6dbf7c0a73305553e | [
"MIT"
] | 1 | 2017-10-13T08:50:19.000Z | 2017-10-13T08:50:19.000Z | """
Module for pwd command.
"""
from . import command
class pwd(command.Command):
"""Command to current working directory."""
def __init__(self):
super(pwd, self).__init__()
self._parser = command.Command.Parser(prog="pwd",
description="Print the... | 23.521739 | 97 | 0.563771 | 59 | 541 | 4.915254 | 0.525424 | 0.103448 | 0.158621 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002639 | 0.299445 | 541 | 22 | 98 | 24.590909 | 0.762533 | 0.158965 | 0 | 0 | 0 | 0 | 0.093822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0.1 | 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 |
2e5729c9ca0f01c19f9da4fe27fc5c8eb2c6f880 | 649 | gyp | Python | config/colony.gyp | LinusU/t1-runtime | dd434be5499ed04709d78a0eba497f908e2cc235 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | config/colony.gyp | LinusU/t1-runtime | dd434be5499ed04709d78a0eba497f908e2cc235 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | config/colony.gyp | LinusU/t1-runtime | dd434be5499ed04709d78a0eba497f908e2cc235 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | {
"includes": [
"common.gypi",
],
"targets": [
{
"target_name": "colony",
"product_name": "colony",
"type": "executable",
'cflags': [ '-Wall', '-Wextra', '-Werror' ],
"sources": [
'<(runtime_path)/colony/cli.c',
],
'xcode_settings': {
'OTHER_LDFL... | 20.28125 | 63 | 0.454545 | 50 | 649 | 5.66 | 0.74 | 0.116608 | 0.120141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032333 | 0.33282 | 649 | 31 | 64 | 20.935484 | 0.621247 | 0 | 0 | 0.166667 | 0 | 0 | 0.49923 | 0.14792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e5c53d85599794819a0fb06f083e445b9d32740 | 2,737 | py | Python | tweater/tweater.py | Code4Bugs/TwEater | 032a9481bc71090836ee6b57d03440940a8831f9 | [
"MIT"
] | 21 | 2017-06-23T19:48:16.000Z | 2022-01-29T22:51:03.000Z | tweater/tweater.py | Code4Bugs/TwEater | 032a9481bc71090836ee6b57d03440940a8831f9 | [
"MIT"
] | 1 | 2019-11-02T09:01:28.000Z | 2019-11-02T09:01:28.000Z | tweater/tweater.py | Code4Bugs/TwEater | 032a9481bc71090836ee6b57d03440940a8831f9 | [
"MIT"
] | 7 | 2017-10-13T07:42:16.000Z | 2020-10-07T11:10:37.000Z | # -*- coding: utf-8 -*-
import requests
import collections
from tworder import TwOrder as order
from twchef import TwChef
from twfarmer import TwFarmer
class TwEater:
@staticmethod
def eatTweets(digester, bpargs):
# Set default values of parameters.
max_tweets = 1
bufferlength = 100
... | 38.549296 | 193 | 0.544392 | 290 | 2,737 | 5.003448 | 0.275862 | 0.074431 | 0.038594 | 0.019297 | 0.340455 | 0.340455 | 0.26051 | 0.227429 | 0.227429 | 0.227429 | 0 | 0.014917 | 0.363171 | 2,737 | 70 | 194 | 39.1 | 0.817556 | 0.024114 | 0 | 0.354839 | 0 | 0 | 0.138733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080645 | null | null | 0.080645 | 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 |
2e67053b4a8f4157ab5aac70719d376c0ce47520 | 11,139 | py | Python | tests/integration/backward_compatible/proxy/cp/semaphore_test.py | tonytheonlypony/hazelcast-python-client | 3aafeaf2ebc05aee4f2386c62c079db496a7c81f | [
"Apache-2.0"
] | 98 | 2015-12-08T14:26:27.000Z | 2022-03-23T17:44:11.000Z | tests/integration/backward_compatible/proxy/cp/semaphore_test.py | tonytheonlypony/hazelcast-python-client | 3aafeaf2ebc05aee4f2386c62c079db496a7c81f | [
"Apache-2.0"
] | 396 | 2016-02-23T11:07:55.000Z | 2022-03-31T14:26:34.000Z | tests/integration/backward_compatible/proxy/cp/semaphore_test.py | tonytheonlypony/hazelcast-python-client | 3aafeaf2ebc05aee4f2386c62c079db496a7c81f | [
"Apache-2.0"
] | 62 | 2015-12-09T11:20:53.000Z | 2022-01-28T01:30:54.000Z | import threading
import time
from parameterized import parameterized
from hazelcast import HazelcastClient
from hazelcast.errors import (
DistributedObjectDestroyedError,
IllegalStateError,
)
from tests.integration.backward_compatible.proxy.cp import CPTestCase
from tests.util import get_current_timestamp, ra... | 38.410345 | 93 | 0.70105 | 1,192 | 11,139 | 6.286913 | 0.111577 | 0.065919 | 0.110088 | 0.086736 | 0.768748 | 0.735922 | 0.641847 | 0.557913 | 0.510275 | 0.404724 | 0 | 0.016142 | 0.204686 | 11,139 | 289 | 94 | 38.543253 | 0.829778 | 0.003501 | 0 | 0.548117 | 0 | 0 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 0.276151 | 1 | 0.133891 | false | 0 | 0.029289 | 0 | 0.171548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e683559f7a13a4bd7837f883dda4cdc81381fca | 427 | py | Python | adoptions/migrations/0002_auto_20180830_0235.py | romualdleuga/djangopets | 18527e9ec09033c359c72c84f587559d769a485a | [
"MIT"
] | null | null | null | adoptions/migrations/0002_auto_20180830_0235.py | romualdleuga/djangopets | 18527e9ec09033c359c72c84f587559d769a485a | [
"MIT"
] | null | null | null | adoptions/migrations/0002_auto_20180830_0235.py | romualdleuga/djangopets | 18527e9ec09033c359c72c84f587559d769a485a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-08-30 02:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('adoptions', '0001_initial'),
]
operations = [
migrations.RenameField(
m... | 20.333333 | 48 | 0.604215 | 45 | 427 | 5.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.278689 | 427 | 20 | 49 | 21.35 | 0.74026 | 0.159251 | 0 | 0 | 1 | 0 | 0.132022 | 0 | 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 |
2e6a305bf024f13349d896f7d8b716100d2fbde3 | 496 | py | Python | AppServer/lib/django-1.4/tests/regressiontests/special_headers/urls.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/lib/django-1.4/tests/regressiontests/special_headers/urls.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/lib/django-1.4/tests/regressiontests/special_headers/urls.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | # coding: utf-8
from __future__ import absolute_import
from django.conf.urls import patterns
from django.views.generic.list_detail import object_detail
from . import views
from .models import Article
urlpatterns = patterns('',
(r'^special_headers/article/(?P<object_id>\d+)/$', object_detail, {'queryset': Article... | 33.066667 | 107 | 0.743952 | 68 | 496 | 5.205882 | 0.514706 | 0.067797 | 0.127119 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.100806 | 496 | 14 | 108 | 35.428571 | 0.79148 | 0.02621 | 0 | 0 | 0 | 0 | 0.232848 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e6b2aebf47df6fd2399ef1c93bfcbb8a42b8b9a | 3,455 | py | Python | plot_linked_subreddits.py | JJWilliams27/Reddit_NLP | 1a38804cfb2d99ff118cfc427c6cf03fc1ac0249 | [
"MIT"
] | 1 | 2021-05-04T14:12:06.000Z | 2021-05-04T14:12:06.000Z | plot_linked_subreddits.py | JJWilliams27/Reddit_NLP | 1a38804cfb2d99ff118cfc427c6cf03fc1ac0249 | [
"MIT"
] | null | null | null | plot_linked_subreddits.py | JJWilliams27/Reddit_NLP | 1a38804cfb2d99ff118cfc427c6cf03fc1ac0249 | [
"MIT"
] | null | null | null | # Plot Linked Subreddits
# Import Modules
import os
import pandas as pd
import numpy as np
import csv
import matplotlib.pyplot as plt
from matplotlib.ticker import PercentFormatter
linked_sr = pd.read_csv('Outputs/CS_FULL/LinkedSubreddits_CS_FULL.csv')
linked_sr = linked_sr.sort_values(by=['Times_Linked'],ascending=... | 38.820225 | 90 | 0.768452 | 508 | 3,455 | 4.982283 | 0.204724 | 0.135915 | 0.149348 | 0.170684 | 0.662584 | 0.630186 | 0.630186 | 0.630186 | 0.259976 | 0.192019 | 0 | 0.036164 | 0.079595 | 3,455 | 89 | 91 | 38.820225 | 0.759748 | 0.037337 | 0 | 0.208955 | 0 | 0 | 0.195842 | 0.043688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089552 | 0 | 0.089552 | 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 |
2e6c4bb450ca270acea58b81f6f51145ec2c0038 | 440 | py | Python | scrapper_a_pandas.py | gam-ba/aspiradora-analitica | c15879bc90ddbcb6170067648ce3ecfc46a7e4df | [
"MIT"
] | null | null | null | scrapper_a_pandas.py | gam-ba/aspiradora-analitica | c15879bc90ddbcb6170067648ce3ecfc46a7e4df | [
"MIT"
] | null | null | null | scrapper_a_pandas.py | gam-ba/aspiradora-analitica | c15879bc90ddbcb6170067648ce3ecfc46a7e4df | [
"MIT"
] | null | null | null | import pandas as pd
signatures_df = pd.DataFrame.from_dict(signatures, orient='columns', dtype=None) # Se recupera el diccionario que genera el scrapper.
del signatures_df['num_comments'] # Se borra la columna porque sino va a ser el número total repetido.
signature... | 73.333333 | 152 | 0.684091 | 62 | 440 | 4.725806 | 0.822581 | 0.122867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00295 | 0.229545 | 440 | 5 | 153 | 88 | 0.861357 | 0.363636 | 0 | 0 | 0 | 0 | 0.155797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e6cde4d007e1fb04562b9527f3bf22d4de33d9a | 10,055 | py | Python | test/mitmproxy/addons/test_proxyauth.py | PureStake/mitmproxy | fca21cbf7202a9df4ff8188c2debbf8ada5d9a05 | [
"MIT"
] | 9 | 2021-12-19T13:47:10.000Z | 2022-03-26T06:34:02.000Z | test/mitmproxy/addons/test_proxyauth.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 18 | 2020-12-28T20:12:26.000Z | 2022-03-15T20:44:40.000Z | test/mitmproxy/addons/test_proxyauth.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 3 | 2020-03-24T18:59:00.000Z | 2021-09-05T20:33:16.000Z | import binascii
from unittest import mock
import ldap3
import pytest
from mitmproxy import exceptions
from mitmproxy.addons import proxyauth
from mitmproxy.test import taddons
from mitmproxy.test import tflow
class TestMkauth:
def test_mkauth_scheme(self):
assert proxyauth.mkauth('username', 'password')... | 38.231939 | 121 | 0.568473 | 1,028 | 10,055 | 5.475681 | 0.143969 | 0.053295 | 0.042281 | 0.069462 | 0.682715 | 0.623734 | 0.554273 | 0.513057 | 0.46367 | 0.43649 | 0 | 0.006827 | 0.315365 | 10,055 | 262 | 122 | 38.377863 | 0.810866 | 0 | 0 | 0.452489 | 0 | 0.013575 | 0.185778 | 0.067926 | 0 | 0 | 0 | 0 | 0.190045 | 1 | 0.049774 | false | 0.063348 | 0.036199 | 0 | 0.099548 | 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 |
2e70bc6c1823257e1ee774d898e9fadf1a649cd1 | 498 | py | Python | Flask/4. Database/app/__init__.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | Flask/4. Database/app/__init__.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | Flask/4. Database/app/__init__.py | AndresAlb/Tutorials | d23800806f7286c405c45745f5e5a0bb7d8c954e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 18:45:40 2020
@author: Andres Angeles Albores
App initializer
"""
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config.from_object(Config)
# Initialize the data... | 20.75 | 61 | 0.767068 | 73 | 498 | 5.136986 | 0.547945 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031026 | 0.158635 | 498 | 23 | 62 | 21.652174 | 0.863962 | 0.447791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e71f51c337f1bf2bddf72b12160f7507fd4006b | 1,955 | py | Python | odesk_api.py | sramanathan77/oDesk-pymongo-SkillRecommend | 29b6b493a36d155679932365fb727c687a1e6e48 | [
"MIT"
] | null | null | null | odesk_api.py | sramanathan77/oDesk-pymongo-SkillRecommend | 29b6b493a36d155679932365fb727c687a1e6e48 | [
"MIT"
] | null | null | null | odesk_api.py | sramanathan77/oDesk-pymongo-SkillRecommend | 29b6b493a36d155679932365fb727c687a1e6e48 | [
"MIT"
] | 1 | 2018-10-10T18:28:36.000Z | 2018-10-10T18:28:36.000Z | import odesk
import json
from pprint import pprint
import sys
def web_based_app():
# Enter your public and secret key below
public_key = ''
secret_key = ''
#Instantiating a client without an auth token
client = odesk.Client(public_key, secret_key)
print "Please go to this URL (authorize the a... | 36.886792 | 140 | 0.656777 | 261 | 1,955 | 4.716475 | 0.505747 | 0.080422 | 0.103981 | 0.071487 | 0.1316 | 0.1316 | 0.118603 | 0 | 0 | 0 | 0 | 0.010796 | 0.241944 | 1,955 | 52 | 141 | 37.596154 | 0.819838 | 0.196931 | 0 | 0 | 0 | 0 | 0.203716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114286 | null | null | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e7a335eb6dc938e11b9f1455513567e4d4433ec | 463 | bzl | Python | utils/dependencies.bzl | ChenyangTang/bark-ml | 1d2ab1957bf49929e27d718dd4bd3912162197b8 | [
"MIT"
] | null | null | null | utils/dependencies.bzl | ChenyangTang/bark-ml | 1d2ab1957bf49929e27d718dd4bd3912162197b8 | [
"MIT"
] | null | null | null | utils/dependencies.bzl | ChenyangTang/bark-ml | 1d2ab1957bf49929e27d718dd4bd3912162197b8 | [
"MIT"
] | null | null | null | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
def _maybe(repo_rule, name, **kwargs):
if name not in native.existing_rules():
repo_rule(name = name, **kwargs)
def load_bark():
_maybe(
native.local_repository,
name = "bark_project",
path="/home/chenyang/bark",
)
#_... | 24.368421 | 69 | 0.639309 | 57 | 463 | 4.947368 | 0.578947 | 0.092199 | 0.085106 | 0.177305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196544 | 463 | 18 | 70 | 25.722222 | 0.758065 | 0.237581 | 0 | 0 | 0 | 0 | 0.253602 | 0.123919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 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 |
2e7a4a2a23a24cd2886eac12dda80eedfa6076d8 | 810 | py | Python | nni/nas/pytorch/base_trainer.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 9,680 | 2019-05-07T01:42:30.000Z | 2022-03-31T16:48:33.000Z | nni/nas/pytorch/base_trainer.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,957 | 2019-05-06T21:44:21.000Z | 2022-03-31T09:21:53.000Z | nni/nas/pytorch/base_trainer.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,571 | 2019-05-07T06:42:55.000Z | 2022-03-31T03:19:24.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from abc import ABC, abstractmethod
class BaseTrainer(ABC):
@abstractmethod
def train(self):
"""
Override the method to train.
"""
raise NotImplementedError
@abstractmethod
def validate(self):
... | 19.756098 | 46 | 0.567901 | 72 | 810 | 6.388889 | 0.444444 | 0.147826 | 0.11087 | 0.123913 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349383 | 810 | 40 | 47 | 20.25 | 0.872865 | 0.325926 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e837b06b58b81cc42c3c19164ad932fd3ae3cd1 | 3,055 | py | Python | tests/scripts/test_auth.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 37 | 2018-05-22T07:17:26.000Z | 2022-03-03T13:14:46.000Z | tests/scripts/test_auth.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 34 | 2018-05-22T07:19:40.000Z | 2022-03-11T23:21:03.000Z | tests/scripts/test_auth.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 8 | 2018-05-30T20:05:26.000Z | 2021-02-19T14:17:05.000Z | """Test the auth script to manage local users."""
from unittest.mock import Mock, patch
import pytest
from homeassistant.scripts import auth as script_auth
from homeassistant.auth_providers import homeassistant as hass_auth
MOCK_PATH = '/bla/users.json'
def test_list_user(capsys):
"""Test we can list users."""... | 30.247525 | 73 | 0.668085 | 411 | 3,055 | 4.812652 | 0.16545 | 0.044489 | 0.084934 | 0.106168 | 0.66633 | 0.638018 | 0.60364 | 0.556117 | 0.517695 | 0.517695 | 0 | 0.002025 | 0.191817 | 3,055 | 100 | 74 | 30.55 | 0.799109 | 0.066121 | 0 | 0.477612 | 0 | 0 | 0.15769 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 1 | 0.074627 | false | 0.313433 | 0.059701 | 0 | 0.134328 | 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 |
2e856e13abc5e9eda46c7345d4506692dd0232ec | 452 | py | Python | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/models/test_embeddings.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | 1 | 2020-12-24T13:28:35.000Z | 2020-12-24T13:28:35.000Z | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/models/test_embeddings.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/models/test_embeddings.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | from mindmeld.models.taggers.embeddings import GloVeEmbeddingsContainer
from numpy import ndarray
def test_embedding_size_is_correct():
"""Tests the size and type of the embedding"""
token_to_embedding_mapping = \
GloVeEmbeddingsContainer(50, None).get_pretrained_word_to_embeddings_dict()
... | 41.090909 | 84 | 0.772124 | 56 | 452 | 5.910714 | 0.589286 | 0.063444 | 0.145015 | 0.208459 | 0.205438 | 0.205438 | 0 | 0 | 0 | 0 | 0 | 0.01039 | 0.14823 | 452 | 10 | 85 | 45.2 | 0.849351 | 0.088496 | 0 | 0 | 0 | 0 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e8751360a52fe807fe2ebef37ba5e13bd61be6f | 1,987 | py | Python | models/time_constraint.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | 1 | 2021-03-07T07:02:22.000Z | 2021-03-07T07:02:22.000Z | models/time_constraint.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | null | null | null | models/time_constraint.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
'''
from __future__ import unicode_literals
from ..model.activity_domai... | 32.57377 | 151 | 0.638148 | 204 | 1,987 | 5.965686 | 0.333333 | 0.11175 | 0.157765 | 0.128184 | 0.298274 | 0.062449 | 0.062449 | 0.062449 | 0.062449 | 0 | 0 | 0.000688 | 0.268747 | 1,987 | 60 | 152 | 33.116667 | 0.836889 | 0.258178 | 0 | 0.322581 | 0 | 0 | 0.118819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.129032 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2e8864464d366bb5cbef32489dba8f613c522787 | 313 | py | Python | Programs/intel_movidius_NCS_imageClassifier_Step_02.py | bhanvimenghani/Image-Recognition-and-Classification-Device-for-Blind-People-Using-Intel-NCS-2 | 2ec6364da790c4449ce35e79d17fd2a7276a052c | [
"MIT"
] | 2 | 2020-07-25T09:31:56.000Z | 2020-11-04T13:35:08.000Z | Programs/intel_movidius_NCS_imageClassifier_Step_02.py | bhanvimenghani/Image-Recognition-and-Classification-Device-for-Blind-People-Using-Intel-NCS-2 | 2ec6364da790c4449ce35e79d17fd2a7276a052c | [
"MIT"
] | null | null | null | Programs/intel_movidius_NCS_imageClassifier_Step_02.py | bhanvimenghani/Image-Recognition-and-Classification-Device-for-Blind-People-Using-Intel-NCS-2 | 2ec6364da790c4449ce35e79d17fd2a7276a052c | [
"MIT"
] | null | null | null | #then look for the enumerated Intel Movidius NCS Device();quite program if none found.
devices = mvnc.EnumerateDevice();
if len(devices) == 0:
print("No any Devices found");
quit;
#Now get a handle to the first enumerated device and open it.
device = mvnc.Device(devices[0]);
device.OpenDevice();
| 34.777778 | 87 | 0.709265 | 46 | 313 | 4.826087 | 0.717391 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.182109 | 313 | 8 | 88 | 39.125 | 0.859375 | 0.463259 | 0 | 0 | 0 | 0 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e8ab8c0f74684ab23793df0babad188b6a8eafb | 1,476 | py | Python | emanager/sell/customer.py | panditsomnath10016git/eManager | 692e3024b3604ac16e0f0f9dc6223ae8f63c6fb0 | [
"MIT"
] | null | null | null | emanager/sell/customer.py | panditsomnath10016git/eManager | 692e3024b3604ac16e0f0f9dc6223ae8f63c6fb0 | [
"MIT"
] | null | null | null | emanager/sell/customer.py | panditsomnath10016git/eManager | 692e3024b3604ac16e0f0f9dc6223ae8f63c6fb0 | [
"MIT"
] | 1 | 2021-06-15T15:50:00.000Z | 2021-06-15T15:50:00.000Z | from copy import deepcopy
import emanager.accounting.accounts as acc
from emanager.utils.data_types import CUSTOMER_DATA
from emanager.utils.directories import SELL_DATA_DIR
from emanager.utils.stakeholder import *
SELL_DATA_FILE_NAME = "customer_data.csv"
SELL_DATA_FILE_PATH = f"{SELL_DATA_DIR}/{SELL_DATA_FILE_NAME}... | 30.122449 | 79 | 0.636179 | 182 | 1,476 | 4.824176 | 0.373626 | 0.082005 | 0.068337 | 0.05467 | 0.116173 | 0.116173 | 0.079727 | 0.079727 | 0 | 0 | 0 | 0 | 0.253388 | 1,476 | 48 | 80 | 30.75 | 0.796733 | 0.045393 | 0 | 0 | 0 | 0 | 0.133999 | 0.026372 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.230769 | 0.051282 | 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 |
2e8bd2d9f1e93a86238de9a52c5cae4c12f11f3c | 232 | py | Python | code/26 - decode4.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | code/26 - decode4.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | code/26 - decode4.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | def mirror(text):
words = text.split(" ")
nwords = []
for w in words:
nw = w[::-1]
nwords.append(nw)
return " ".join(nwords)
print(mirror("s'tI suoregnad ot eb thgir nehw eht tnemnrevog si .gnorw"))
| 23.2 | 73 | 0.577586 | 33 | 232 | 4.060606 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.271552 | 232 | 9 | 74 | 25.777778 | 0.786982 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 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 |
2e8ffe126c45230c6718432660a69976bf1080dc | 217 | py | Python | seq2seq/tools/config.py | marvis/seq2seq.pytorch | 9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530 | [
"MIT"
] | null | null | null | seq2seq/tools/config.py | marvis/seq2seq.pytorch | 9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530 | [
"MIT"
] | null | null | null | seq2seq/tools/config.py | marvis/seq2seq.pytorch | 9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530 | [
"MIT"
] | 1 | 2021-01-07T10:37:31.000Z | 2021-01-07T10:37:31.000Z | UNK_TOKEN = '<unk>'
PAD_TOKEN = '<pad>'
BOS_TOKEN = '<s>'
EOS_TOKEN = '<\s>'
PAD, UNK, BOS, EOS = [0, 1, 2, 3]
LANGUAGE_TOKENS = {lang: '<%s>' % lang
for lang in sorted(['en', 'de', 'fr', 'he'])}
| 21.7 | 64 | 0.493088 | 33 | 217 | 3.090909 | 0.606061 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.253456 | 217 | 9 | 65 | 24.111111 | 0.604938 | 0 | 0 | 0 | 0 | 0 | 0.133641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ceaeca97ffc85c5094f1311516969179b544b33 | 2,082 | py | Python | tests/test_uninstall.py | danielzk/pipw | 200c32034e3e79d6489aa1c490645ecd5288877a | [
"MIT"
] | 1 | 2018-05-11T19:11:50.000Z | 2018-05-11T19:11:50.000Z | tests/test_uninstall.py | danielzk/pipw | 200c32034e3e79d6489aa1c490645ecd5288877a | [
"MIT"
] | null | null | null | tests/test_uninstall.py | danielzk/pipw | 200c32034e3e79d6489aa1c490645ecd5288877a | [
"MIT"
] | null | null | null | import pytest
from tests.conftest import config_file
from tests.utils import invoke_cli, check_requirements_snapshot
def test_uninstall(tmpdir, mock_pip, config_file, snapshot):
requirements_file = tmpdir.join('requirements.txt')
requirements_file.write('-e editable1\nold1\na~=1.0.0\nold2~=1.0.0 --hash=anc\\... | 33.580645 | 100 | 0.679155 | 281 | 2,082 | 4.843416 | 0.209964 | 0.05878 | 0.017634 | 0.136664 | 0.743571 | 0.70022 | 0.587803 | 0.515797 | 0.515797 | 0.515797 | 0 | 0.016851 | 0.173391 | 2,082 | 61 | 101 | 34.131148 | 0.773969 | 0 | 0 | 0.568182 | 0 | 0.022727 | 0.201249 | 0.03122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.022727 | 0.068182 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cec65cd7a542182328a318dcdc8d6951f12b4ae | 8,317 | py | Python | ui_nnc_utils.py | MizunagiKB/nnc_utils | c1e2180a75da537b474cf14db069b3b258061fa8 | [
"MIT"
] | null | null | null | ui_nnc_utils.py | MizunagiKB/nnc_utils | c1e2180a75da537b474cf14db069b3b258061fa8 | [
"MIT"
] | null | null | null | ui_nnc_utils.py | MizunagiKB/nnc_utils | c1e2180a75da537b474cf14db069b3b258061fa8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'nnc_utils.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObject... | 56.965753 | 112 | 0.718288 | 928 | 8,317 | 6.272629 | 0.181034 | 0.05652 | 0.054802 | 0.017866 | 0.417454 | 0.290328 | 0.18794 | 0.178663 | 0.148085 | 0.148085 | 0 | 0.02259 | 0.164362 | 8,317 | 145 | 113 | 57.358621 | 0.814964 | 0.021763 | 0 | 0.142857 | 1 | 0 | 0.068775 | 0.00283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015038 | false | 0 | 0.007519 | 0 | 0.030075 | 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 |
5cec828fd2bba807e1ee48bb5027597d8929d641 | 2,896 | py | Python | scripts/run_ros_server.py | personalrobotics/posthoc_learn | 204bb20b21a0b4925c8bea5e9c975afbdbe80dc7 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_ros_server.py | personalrobotics/posthoc_learn | 204bb20b21a0b4925c8bea5e9c975afbdbe80dc7 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_ros_server.py | personalrobotics/posthoc_learn | 204bb20b21a0b4925c8bea5e9c975afbdbe80dc7 | [
"BSD-3-Clause"
] | 1 | 2020-10-21T11:06:47.000Z | 2020-10-21T11:06:47.000Z | #!/usr/bin/env python
"""
Initiates the services `getAction` and `publishLoss`.
TODO:
* Run this script as a node in a launch script
"""
import argparse
from posthoc_learn.algoserver import create_server, N_FEATURES
from posthoc_learn.banalg import HardConstraint, Greedy, EpsilonGreedy, LinUCB
from posthoc_learn.c... | 40.222222 | 168 | 0.681285 | 378 | 2,896 | 5.079365 | 0.335979 | 0.020833 | 0.054167 | 0.03125 | 0.163542 | 0.145833 | 0.145833 | 0.145833 | 0.145833 | 0.145833 | 0 | 0.003386 | 0.184047 | 2,896 | 71 | 169 | 40.788732 | 0.809141 | 0.052141 | 0 | 0.040816 | 0 | 0 | 0.225146 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0 | false | 0.020408 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
5cee33de3b0d375d7538e55c46ad42f429d67941 | 3,435 | py | Python | src/code-challenges/codewars/5KYU/dirReduc/dir_reduc.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | 1 | 2020-08-30T07:52:20.000Z | 2020-08-30T07:52:20.000Z | src/code-challenges/codewars/5KYU/dirReduc/dir_reduc.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | 6 | 2020-08-12T07:05:04.000Z | 2021-08-23T06:10:10.000Z | src/code-challenges/codewars/5KYU/dirReduc/dir_reduc.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/550f22f4d758534c1100025a/train/python
# Once upon a time, on a way through the old wild mountainous west,…
# … a man was given directions to go from one point to another. The
# directions were "NORTH", "SOUTH", "WEST", "EAST". Clearly "NORTH"
# and "SOUTH" are opposite, "WEST" and "E... | 32.714286 | 69 | 0.616012 | 490 | 3,435 | 4.316327 | 0.373469 | 0.034043 | 0.036879 | 0.02695 | 0.047281 | 0.047281 | 0.047281 | 0.047281 | 0.047281 | 0.047281 | 0 | 0.010081 | 0.249199 | 3,435 | 104 | 70 | 33.028846 | 0.807677 | 0.809898 | 0 | 0.25 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cefda1a143cbc0bc80c9e0d2e615f0231c46dcc | 160 | py | Python | src/Classes/MSDS400/Module 5/slope_tangent.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 5/slope_tangent.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 5/slope_tangent.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | from sympy import symbols, solve
from fractions import Fraction
x1 = -2
y1 = 2
x2 = 2
y2 = 3
m = ( y1 - y2 ) / ( x1 - x2 )
Fraction( m ).limit_denominator() | 14.545455 | 33 | 0.63125 | 26 | 160 | 3.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.25 | 160 | 11 | 33 | 14.545455 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5cf02deaa4a8b8dea509508696fec3320e3f5f2f | 1,594 | py | Python | mrrt/mri/coils/_bias.py | mritools/mrrt.mri | 00829032f6d19d078a23d006b73f1028b3ec3902 | [
"BSD-3-Clause"
] | 5 | 2020-02-01T22:06:32.000Z | 2021-06-29T14:18:58.000Z | mrrt/mri/coils/_bias.py | mritools/mrrt.mri | 00829032f6d19d078a23d006b73f1028b3ec3902 | [
"BSD-3-Clause"
] | null | null | null | mrrt/mri/coils/_bias.py | mritools/mrrt.mri | 00829032f6d19d078a23d006b73f1028b3ec3902 | [
"BSD-3-Clause"
] | 1 | 2020-03-31T11:53:40.000Z | 2020-03-31T11:53:40.000Z | """Utilities for coil intensity non-unformity correction (aka bias correction).
"""
import numpy as np
from mrrt.utils import get_array_module
__all__ = ["compute_bias_field"]
def compute_bias_field(
recon, affine=None, down=None, basename="xtrue", xp=None
):
# TODO: call N4BiasFieldCorrection via SimpleIT... | 28.981818 | 80 | 0.607905 | 202 | 1,594 | 4.653465 | 0.485149 | 0.059574 | 0.029787 | 0.034043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038726 | 0.271016 | 1,594 | 54 | 81 | 29.518519 | 0.770224 | 0.111669 | 0 | 0 | 0 | 0 | 0.175426 | 0.02983 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.139535 | 0.023256 | 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 |
5cf16235bec66e99c3fa9ce9642c71ab33f30a2e | 483 | py | Python | Raspberry_Pi_Pico/demo_rtc.py | jckantor/cbe61622 | bdc08e6c4f0674c5e991617945cafd1b121d6b4b | [
"MIT"
] | 2 | 2021-11-22T20:36:35.000Z | 2021-12-07T07:52:10.000Z | Raspberry_Pi_Pico/demo_rtc.py | jckantor/cbe-virtual-laboratory | bdc08e6c4f0674c5e991617945cafd1b121d6b4b | [
"MIT"
] | null | null | null | Raspberry_Pi_Pico/demo_rtc.py | jckantor/cbe-virtual-laboratory | bdc08e6c4f0674c5e991617945cafd1b121d6b4b | [
"MIT"
] | 1 | 2021-12-11T20:39:32.000Z | 2021-12-11T20:39:32.000Z | import machine
import utime
# RP Pico has a real time clock that is synchronized by Thonny.
# There is no battery backup for the clock, so it must be reset
# on each power up.
# create an instance of the real time clock
rtc = machine.RTC()
# directly access the real time clock
now = rtc.datetime()
print(f"rtc machin... | 24.15 | 63 | 0.722567 | 81 | 483 | 4.308642 | 0.62963 | 0.068768 | 0.111748 | 0.091691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182195 | 483 | 19 | 64 | 25.421053 | 0.883544 | 0.57764 | 0 | 0 | 0 | 0 | 0.418367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.