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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f30b3b7f97b65c7deec8372528b61489b88ad0a | 558 | py | Python | WaybackMedic 2.1/cloudflare.py | greencardamom/WaybackMedic | 4291afb5451e25ec9cb73f207a7da39456440865 | [
"MIT"
] | 8 | 2016-03-16T02:23:09.000Z | 2021-12-21T21:58:59.000Z | WaybackMedic 2.1/cloudflare.py | greencardamom/WaybackMedic | 4291afb5451e25ec9cb73f207a7da39456440865 | [
"MIT"
] | null | null | null | WaybackMedic 2.1/cloudflare.py | greencardamom/WaybackMedic | 4291afb5451e25ec9cb73f207a7da39456440865 | [
"MIT"
] | 1 | 2017-04-29T14:35:08.000Z | 2017-04-29T14:35:08.000Z | #!/usr/bin/python
#
# Bypass Cloudflare DDOS protection with cfscrape library.
# https://github.com/Anorov/cloudflare-scrape
# Note: SSL doesn't work, use HTTP
# If it stops working check for newer version
#
import cfscrape, sys
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance
# ... | 31 | 96 | 0.729391 | 75 | 558 | 5.413333 | 0.68 | 0.068966 | 0.044335 | 0.049261 | 0.1133 | 0.1133 | 0 | 0 | 0 | 0 | 0 | 0.008386 | 0.145161 | 558 | 17 | 97 | 32.823529 | 0.842767 | 0.587814 | 0 | 0 | 0 | 0 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f31fe570d9ae4f3cf87da4f3445c66fe7790cc6 | 1,739 | py | Python | tests/test_errors.py | vishalbelsare/cointanalysis | ae21c520dfe500fe535265e93df4a36f4d012069 | [
"BSD-3-Clause"
] | 27 | 2020-01-03T03:36:42.000Z | 2022-03-28T06:47:32.000Z | tests/test_errors.py | simaki/cointanalysis | ae21c520dfe500fe535265e93df4a36f4d012069 | [
"BSD-3-Clause"
] | 26 | 2020-01-03T09:02:21.000Z | 2022-02-22T01:01:48.000Z | tests/test_errors.py | vishalbelsare/cointanalysis | ae21c520dfe500fe535265e93df4a36f4d012069 | [
"BSD-3-Clause"
] | 8 | 2021-02-09T22:19:18.000Z | 2022-02-23T19:45:24.000Z | import numpy as np
import pytest
from cointanalysis import CointAnalysis
from cointanalysis._stat import StationarityTester
from cointanalysis._utils import check_shape
# --------------------------------------------------------------------------------
@pytest.mark.parametrize("n_features", [0, 1, 3])
def test_check... | 24.842857 | 82 | 0.626797 | 211 | 1,739 | 5.066351 | 0.222749 | 0.093545 | 0.149673 | 0.218896 | 0.530402 | 0.480823 | 0.480823 | 0.480823 | 0.480823 | 0.467727 | 0 | 0.026049 | 0.20529 | 1,739 | 69 | 83 | 25.202899 | 0.747467 | 0.193214 | 0 | 0.625 | 0 | 0 | 0.021521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
8f3300062c5c25c6b9220dca88740586126db017 | 575 | py | Python | perma_web/perma/migrations/0004_auto_20160506_1632.py | rachelaus/perma | 36c05080520ea3ffce465dbc383795c060fa4112 | [
"MIT",
"Unlicense"
] | 317 | 2015-02-12T16:53:34.000Z | 2022-03-14T23:38:04.000Z | perma_web/perma/migrations/0004_auto_20160506_1632.py | rachelaus/perma | 36c05080520ea3ffce465dbc383795c060fa4112 | [
"MIT",
"Unlicense"
] | 2,069 | 2015-01-06T20:09:24.000Z | 2022-03-31T15:44:36.000Z | perma_web/perma/migrations/0004_auto_20160506_1632.py | rachelaus/perma | 36c05080520ea3ffce465dbc383795c060fa4112 | [
"MIT",
"Unlicense"
] | 69 | 2015-01-12T18:56:07.000Z | 2022-02-22T19:57:10.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('perma', '0003_capturejob'),
]
operations = [
migrations.AddField(
model_name='historicallink',
name=... | 23 | 61 | 0.582609 | 53 | 575 | 6.132075 | 0.584906 | 0.110769 | 0.141538 | 0.166154 | 0.32 | 0.32 | 0.32 | 0.32 | 0.32 | 0.32 | 0 | 0.012376 | 0.297391 | 575 | 24 | 62 | 23.958333 | 0.792079 | 0.036522 | 0 | 0.444444 | 0 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
8f391da0df73d8436dc8322ba02d27a6dffd570f | 2,635 | py | Python | tsserver/features/environment.py | m4tx/techswarm-server | a04a3e2a731c3a086aa8476f66adda64973dcd66 | [
"MIT"
] | 1 | 2016-08-12T14:27:31.000Z | 2016-08-12T14:27:31.000Z | tsserver/features/environment.py | TechSwarm/techswarm-server | a04a3e2a731c3a086aa8476f66adda64973dcd66 | [
"MIT"
] | null | null | null | tsserver/features/environment.py | TechSwarm/techswarm-server | a04a3e2a731c3a086aa8476f66adda64973dcd66 | [
"MIT"
] | null | null | null | import base64
import os
import tempfile
from flask import json
from werkzeug.datastructures import Headers
import tsserver
from tsserver import configutils
# If set to True, each time the test is run, new database is created as a
# temporary file. If the value is equal to False, tests will be using SQLite
# in-memo... | 29.606742 | 76 | 0.656546 | 340 | 2,635 | 4.970588 | 0.367647 | 0.02071 | 0.040237 | 0.023077 | 0.017751 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007025 | 0.243643 | 2,635 | 88 | 77 | 29.943182 | 0.840943 | 0.17723 | 0 | 0.035714 | 0 | 0 | 0.078487 | 0.010875 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.107143 | false | 0.071429 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f39b9e08ffeda9e93fcc277f54d4d6aea6ba49a | 208 | py | Python | Python/factorial.py | tinkpo/Curso-Introducci-n-a-la-Computaci-n-para-Matem-ticos | 72b5db944c759c0d977553fa1bc15a11ac110909 | [
"MIT"
] | null | null | null | Python/factorial.py | tinkpo/Curso-Introducci-n-a-la-Computaci-n-para-Matem-ticos | 72b5db944c759c0d977553fa1bc15a11ac110909 | [
"MIT"
] | null | null | null | Python/factorial.py | tinkpo/Curso-Introducci-n-a-la-Computaci-n-para-Matem-ticos | 72b5db944c759c0d977553fa1bc15a11ac110909 | [
"MIT"
] | null | null | null | def fact(n):
if(n==0):
return 1
else:
return n*fact(n-1)
x=int(input("Ingrese el valor al que le quiere calcular el factorial "))
print('El factorial de ', x, 'es ', fact(x))
| 23.111111 | 73 | 0.5625 | 35 | 208 | 3.342857 | 0.657143 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.288462 | 208 | 8 | 74 | 26 | 0.77027 | 0 | 0 | 0 | 0 | 0 | 0.376884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f53a5257eab324e5aae41fe7022ee0ccae9f4f5 | 586 | py | Python | setup.py | luismarcanth/google-searchconsole | e51d012b7404146bccf61e3923237e46ef10c15a | [
"MIT"
] | 9 | 2020-04-26T09:27:01.000Z | 2021-06-23T18:10:48.000Z | setup.py | luismarcanth/google-searchconsole | e51d012b7404146bccf61e3923237e46ef10c15a | [
"MIT"
] | null | null | null | setup.py | luismarcanth/google-searchconsole | e51d012b7404146bccf61e3923237e46ef10c15a | [
"MIT"
] | 3 | 2019-10-22T11:46:38.000Z | 2020-07-23T07:39:41.000Z | # encoding: utf-8
from setuptools import find_packages, setup
setup(name='searchconsole',
description='A wrapper for the Google Search Console API.',
author='Josh Carty',
author_email='carty.josh@gmail.com',
version='0.0.3',
license='MIT',
packages=find_packages(),
keywords=... | 27.904762 | 65 | 0.605802 | 75 | 586 | 4.666667 | 0.653333 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.249147 | 586 | 21 | 66 | 27.904762 | 0.759091 | 0.025597 | 0 | 0 | 0 | 0 | 0.422807 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
8f57c53783255d968c61238c03513fb1829119ef | 7,404 | py | Python | gecosistema_lite/gdal_shape.py | valluzzi/libcore | 1e714ed0df13000bf853696551ee109b3b65997a | [
"MIT"
] | null | null | null | gecosistema_lite/gdal_shape.py | valluzzi/libcore | 1e714ed0df13000bf853696551ee109b3b65997a | [
"MIT"
] | null | null | null | gecosistema_lite/gdal_shape.py | valluzzi/libcore | 1e714ed0df13000bf853696551ee109b3b65997a | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------------
# Licence:
# Copyright (c) 2012-2017 Valerio for Gecosistema S.r.l.
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS",... | 31.506383 | 101 | 0.573744 | 795 | 7,404 | 5.314465 | 0.337107 | 0.006627 | 0.022722 | 0.026509 | 0.199763 | 0.129704 | 0.099408 | 0.079053 | 0.061538 | 0.061538 | 0 | 0.012873 | 0.244598 | 7,404 | 234 | 102 | 31.641026 | 0.742535 | 0.23987 | 0 | 0.293233 | 0 | 0 | 0.107444 | 0.030752 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030075 | null | null | 0.022556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f61f1856f16642c78fb503a5e3b2cbe7612d63a | 1,278 | py | Python | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | 3 | 2017-10-09T13:50:16.000Z | 2021-08-16T21:04:16.000Z | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | null | null | null | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | 2 | 2017-07-20T16:30:44.000Z | 2021-08-09T05:52:53.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="ssh_certificate_parser",
version="1.3.3",
author="James Brown",
author_email="jbrown@easypost.com",
url="https://github.com/easypost/ssh_certificate_parser",
license="ISC",
packages=find_packages(exclude=['test... | 33.631579 | 79 | 0.634585 | 135 | 1,278 | 5.881481 | 0.6 | 0.088161 | 0.125945 | 0.130982 | 0.15869 | 0.15869 | 0.15869 | 0 | 0 | 0 | 0 | 0.013917 | 0.212833 | 1,278 | 37 | 80 | 34.540541 | 0.775348 | 0.015649 | 0 | 0 | 0 | 0 | 0.560859 | 0.017502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f6591658c09575e183359943f78305804567803 | 590 | py | Python | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | import os
import sys
import django
from channels.routing import get_default_application
# from django.core.asgi import get_asgi_application
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sonsuz.config.settings.local')
# application = get_asgi_application()
# application加入查找路径中
app_path = os.path.abspath(os.path.... | 29.5 | 81 | 0.791525 | 79 | 590 | 5.683544 | 0.379747 | 0.066815 | 0.093541 | 0.111359 | 0.173719 | 0.173719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083051 | 590 | 19 | 82 | 31.052632 | 0.829945 | 0.349153 | 0 | 0 | 0 | 0 | 0.129973 | 0.114058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f660202be6af86137fb1acec31901c87e526857 | 1,113 | py | Python | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | 1 | 2016-10-10T02:35:03.000Z | 2016-10-10T02:35:03.000Z | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | null | null | null | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | null | null | null | import os, tempfile
from flask.ext.dotenv import DotEnv
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
DEBUG = False
TESTING = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
@classmethod
def init_app(self, app):
env = DotEnv()
env.init_app(app, verbose_... | 21.823529 | 89 | 0.634322 | 106 | 1,113 | 6.40566 | 0.490566 | 0.048601 | 0.05891 | 0.088365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229111 | 1,113 | 50 | 90 | 22.26 | 0.791375 | 0 | 0 | 0.114286 | 0 | 0 | 0.123091 | 0.020665 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.057143 | 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 |
8f6a5d9899e0976ac95b7796e1458b1bd050494d | 3,001 | py | Python | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | # flake8: noqa
from selfdrive.car import dbc_dict
from cereal import car
Ecu = car.CarParams.Ecu
class CarControllerParams:
STEER_MAX = 2047 # max_steer 4095
STEER_STEP = 2 # how often we update the steer cmd
STEER_DELTA_UP = 50 # torque increase per refresh, 0.8s to max
... | 44.132353 | 424 | 0.71043 | 464 | 3,001 | 4.403017 | 0.375 | 0.070485 | 0.0651 | 0.045032 | 0.14929 | 0.124327 | 0.124327 | 0.124327 | 0.105237 | 0.059227 | 0 | 0.158264 | 0.193602 | 3,001 | 67 | 425 | 44.791045 | 0.68595 | 0.220593 | 0 | 0 | 0 | 0 | 0.163072 | 0.086713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.519231 | 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 |
8f6b4fb8b5826570c194c749e3b2f1b2eb2295e0 | 391 | py | Python | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | null | null | null | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | 1 | 2021-02-21T11:08:36.000Z | 2021-02-24T20:42:01.000Z | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-02-14 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='profiles',
name='user_name',
... | 20.578947 | 62 | 0.595908 | 43 | 391 | 5.325581 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078853 | 0.286445 | 391 | 18 | 63 | 21.722222 | 0.741935 | 0.11509 | 0 | 0 | 1 | 0 | 0.107558 | 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 |
8f6d9715bc92a8e85ce12c2c520af4e5db0b1a7c | 3,071 | py | Python | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | """
Tools used elsewhere in this package
"""
import os
import collections
import mdtraj as md
from simtk import openmm as mm
from simtk.openmm import app
from simtk import unit as u
try:
import openmmtools
except ImportError:
HAS_OPENMMTOOLS = False
else:
HAS_OPENMMTOOLS = True
def _traj_from_file_or_tra... | 32.326316 | 77 | 0.676978 | 376 | 3,071 | 5.367021 | 0.337766 | 0.020813 | 0.034688 | 0.013875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225334 | 3,071 | 94 | 78 | 32.670213 | 0.848256 | 0.078802 | 0 | 0.081081 | 0 | 0 | 0.056879 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.121622 | false | 0 | 0.108108 | 0 | 0.378378 | 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 |
8f6e45249501a9eeced6ad9317380712aa8a2e41 | 1,746 | py | Python | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 32.333333 | 72 | 0.683276 | 225 | 1,746 | 5.133333 | 0.542222 | 0.072727 | 0.033766 | 0.049351 | 0.070996 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0.000763 | 0.249141 | 1,746 | 53 | 73 | 32.943396 | 0.880244 | 0.434708 | 0 | 0.083333 | 0 | 0 | 0.069143 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0.041667 | 0.583333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8f72691d634c7185886e3950715ddd4866514065 | 919 | py | Python | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
from parse import compile
def main():
file = open("day3input.txt", "r")
fabric = [[0]*1000 for _ in range(1000)]
for claim_str in file:
claim = Claim(claim_str)
#print claim.data
claim_fabric(fabric, claim)
contested = 0
for x in range(1000... | 25.527778 | 80 | 0.568009 | 133 | 919 | 3.774436 | 0.338346 | 0.125498 | 0.065737 | 0.055777 | 0.115538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.269859 | 919 | 36 | 81 | 25.527778 | 0.698957 | 0.069641 | 0 | 0 | 0 | 0.043478 | 0.101058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | 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 |
8f758e5cc6da0001620edeb8cb1d368674c76e41 | 373 | py | Python | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | null | null | null | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | null | null | null | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | 2 | 2021-11-05T17:06:12.000Z | 2021-11-17T04:15:29.000Z | import argparse
from generator import logic
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, required=True)
args = parser.parse_args()
logic_main=logic.composite_probabilistically
if args.mode == "permute":
pass
elif args.mode == "logic":
logic_main()
else:
print("Specify a fla... | 19.631579 | 74 | 0.734584 | 48 | 373 | 5.604167 | 0.645833 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144772 | 373 | 18 | 75 | 20.722222 | 0.84326 | 0 | 0 | 0 | 0 | 0 | 0.212938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f7aae12183d525e6d6a2892950c3be3ddc8cab8 | 4,115 | py | Python | include/vortex.py | wheelerMT/two-component_BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | 1 | 2020-12-16T00:05:38.000Z | 2020-12-16T00:05:38.000Z | include/vortex.py | wheelerMT/twoComponent-BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | null | null | null | include/vortex.py | wheelerMT/twoComponent-BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | null | null | null | import numpy as np
import uuid
class Vortex:
""" Vortex class to categorize vortices within a BEC."""
def __init__(self, position, winding, component, v_type=None):
self.x, self.y = position
self.winding = winding
self.v_type = v_type # String: type of vortex (i.e. SQV or HQV)
... | 39.567308 | 106 | 0.616525 | 544 | 4,115 | 4.492647 | 0.224265 | 0.10311 | 0.065466 | 0.030687 | 0.251228 | 0.24018 | 0.174304 | 0.1473 | 0.1473 | 0.076105 | 0 | 0.008993 | 0.297448 | 4,115 | 103 | 107 | 39.951456 | 0.836389 | 0.23548 | 0 | 0.132353 | 0 | 0 | 0.010901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0 | 0.029412 | 0.073529 | 0.382353 | 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 |
56aceb9473dca4ac2d68368a3618cbfcb8694e5a | 7,581 | py | Python | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import six
from django.core.urlresolvers import reverse
from sentry.testutils import APITestCase, SnubaTestCase
from sentry.testutils.helpers.datetime import before_now, iso_format
class ProjectEventDetailsTest(APITestCase, SnubaTestCase):
def setUp(self):
super(Pr... | 39.07732 | 100 | 0.590687 | 842 | 7,581 | 5.122328 | 0.135392 | 0.04869 | 0.070948 | 0.043821 | 0.748435 | 0.727336 | 0.641549 | 0.583585 | 0.542546 | 0.512868 | 0 | 0.010701 | 0.285055 | 7,581 | 193 | 101 | 39.279793 | 0.785055 | 0.003166 | 0 | 0.449704 | 0 | 0 | 0.146128 | 0.027134 | 0 | 0 | 0 | 0 | 0.183432 | 1 | 0.065089 | false | 0 | 0.029586 | 0 | 0.106509 | 0.04142 | 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 |
56b37ef771a3d6c20dd29b8a7bb0b23c17d962e6 | 185 | py | Python | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | import cv2
cap = cv2.VideoCapture(0)
while(True):
ret,frame = cap.read()
cv2.imshow('frame',frame)
if cv2.waitKey(1)&0xFF==ord('q'):
break
cap.release()
cv2.destroyAllWindows() | 14.230769 | 34 | 0.686486 | 28 | 185 | 4.535714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.124324 | 185 | 13 | 35 | 14.230769 | 0.734568 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0.021505 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
56b5106f514ff350c7e6209c3bde64f4fb351f79 | 231 | py | Python | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | null | null | null | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | 4 | 2020-10-04T07:49:30.000Z | 2021-10-02T05:24:40.000Z | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | 7 | 2020-10-04T07:46:55.000Z | 2021-11-05T14:30:00.000Z | def gen(a,j):
if j>=len(a):
print a
return
i=j
while i<9:
a[j]=i+1
gen(a,j+1)
j-=1
def main():
a=['0','0']
#print len(a)
gen(a,0)
if __name__=='__main__':
main();
| 14.4375 | 24 | 0.406926 | 41 | 231 | 2.097561 | 0.365854 | 0.139535 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0.38961 | 231 | 15 | 25 | 15.4 | 0.560284 | 0.051948 | 0 | 0 | 0 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56b8192795c518e7928ca09a5572608668256f99 | 3,578 | py | Python | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | 3 | 2019-04-26T11:13:14.000Z | 2020-01-10T05:58:16.000Z | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Adam Reinhold Von Fisher - https://www.linkedin.com/in/adamrvfisher/
"""
#This is a strategy tester with a brute force optimizer
#Pandas_datareader is deprecated, use YahooGrabber
#Import modules
import numpy as np
from pandas_datareader import data
import random as rand
import ... | 27.953125 | 77 | 0.586082 | 527 | 3,578 | 3.975332 | 0.29981 | 0.049642 | 0.030549 | 0.042959 | 0.1642 | 0.107876 | 0.089737 | 0.089737 | 0.073508 | 0.073508 | 0 | 0.025907 | 0.24483 | 3,578 | 127 | 78 | 28.173228 | 0.749445 | 0.237283 | 0 | 0.075949 | 0 | 0 | 0.120524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063291 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56bc157b8432a7e32a0436c1af87a1c616b37163 | 1,670 | py | Python | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 14 | 2017-02-14T07:02:59.000Z | 2022-03-30T13:59:59.000Z | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 10 | 2016-10-22T20:52:00.000Z | 2021-05-10T10:40:30.000Z | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 8 | 2017-03-03T13:16:34.000Z | 2020-07-23T17:59:54.000Z | # coding: utf-8
from pprint import pformat
from ..utils import to_dict
class Error(object):
def __init__(self, error=None, description=None, parameter=None, disabled_by=None):
self._error = error
self._description = description
self._parameter = parameter
self._disabled_by = di... | 20.120482 | 87 | 0.602395 | 187 | 1,670 | 5.080214 | 0.256684 | 0.105263 | 0.058947 | 0.069474 | 0.176842 | 0.075789 | 0.075789 | 0.075789 | 0 | 0 | 0 | 0.000867 | 0.309581 | 1,670 | 82 | 88 | 20.365854 | 0.82307 | 0.123952 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.047619 | 0.095238 | 0.619048 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56c06ffe14aeeb05cf11a1e9b700fb840312480b | 2,137 | py | Python | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | import json
import requests
import pprint
import time
from behave import *
from starlette import status
@when('"{holder}" will have a credential_offer from "{issuer}"')
@then('"{holder}" will have a credential_offer from "{issuer}"')
def step_impl(context, holder: str, issuer: str):
response = requests.get(
... | 33.920635 | 88 | 0.697707 | 270 | 2,137 | 5.288889 | 0.22963 | 0.067227 | 0.132353 | 0.113445 | 0.77521 | 0.736695 | 0.664566 | 0.571429 | 0.532913 | 0.464286 | 0 | 0.010028 | 0.160037 | 2,137 | 62 | 89 | 34.467742 | 0.785515 | 0 | 0 | 0.319149 | 0 | 0 | 0.277492 | 0.05007 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.06383 | false | 0 | 0.12766 | 0 | 0.191489 | 0.021277 | 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 |
56ccc4b8eb0e2fdef41c04fd52d0622b0ed55475 | 542 | py | Python | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 00:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('animal_size', '0001_initial'),
('zoo', '0001_initial'),
]
operations = [
migrations.AddField(
... | 25.809524 | 151 | 0.632841 | 65 | 542 | 5.153846 | 0.6 | 0.071642 | 0.083582 | 0.131343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055422 | 0.234317 | 542 | 20 | 152 | 27.1 | 0.751807 | 0.083026 | 0 | 0 | 1 | 0 | 0.149495 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
56d420fdf0723b65174b088f7049275c4a6b46ff | 42,569 | py | Python | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | import Gnuplot
import mpi
from Spheral import *
from math import *
import numpy
import os
from SpheralTestUtilities import multiSort
SpheralGnuPlotCache = []
from spheralDimensions import spheralDimensions
dims = spheralDimensions()
#-------------------------------------------------------------------------------
# D... | 37.872776 | 105 | 0.467688 | 3,654 | 42,569 | 5.434866 | 0.147783 | 0.016063 | 0.00846 | 0.010474 | 0.349867 | 0.308626 | 0.22977 | 0.183896 | 0.143512 | 0.122614 | 0 | 0.008482 | 0.365759 | 42,569 | 1,123 | 106 | 37.9065 | 0.727064 | 0.177453 | 0 | 0.398844 | 0 | 0 | 0.031159 | 0 | 0 | 0 | 0 | 0 | 0.039306 | 0 | null | null | 0 | 0.009249 | null | null | 0.003468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56e3647b49151976eed2cee6aff44b3b5d0d4f87 | 1,007 | py | Python | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 1 | 2017-03-25T14:30:30.000Z | 2017-03-25T14:30:30.000Z | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 3 | 2017-03-23T11:05:02.000Z | 2017-04-03T08:38:40.000Z | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 1 | 2017-03-18T07:21:59.000Z | 2017-03-18T07:21:59.000Z | import pytest
import datetime
@pytest.fixture
def freeze_datetime(monkeypatch):
"""Patch datetime.now function to return fixed timestamp."""
original_datetime = datetime.datetime
class FrozenDateTimeMeta(type):
"""Meta class for FrozenDateTime class."""
def __instancecheck__(self, instanc... | 31.46875 | 77 | 0.680238 | 98 | 1,007 | 6.816327 | 0.418367 | 0.11976 | 0.038922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228401 | 1,007 | 31 | 78 | 32.483871 | 0.859717 | 0.212512 | 0 | 0.105263 | 0 | 0 | 0.01043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56e45b9b2bac49923c6b840cd9115a922b1a9b93 | 815 | py | Python | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | import wrapper
import tensorflow as tf
from tensorflow.core.example import example_pb2
from StringIO import StringIO
from PIL import Image
from matplotlib.pyplot import imshow, show
import numpy as np
a = wrapper.Wrapper('discrete_tcnn1','./data/pretrained_models/discrete_tcnn1/model.ckpt-126001.bestmodel', 20)
exampl... | 30.185185 | 111 | 0.791411 | 116 | 815 | 5.387931 | 0.517241 | 0.032 | 0.0352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034388 | 0.107975 | 815 | 26 | 112 | 31.346154 | 0.825309 | 0 | 0 | 0 | 0 | 0 | 0.190418 | 0.157248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
56e652ef605ac7b4aafdbb77c6ebeaccf9aada5f | 158 | py | Python | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | 1 | 2017-10-20T21:56:41.000Z | 2017-10-20T21:56:41.000Z | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | null | null | null | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
b = Button(root)
b['text'] = 'test'
def test(event):
import test
b.bind('<Button-1>', test)
b.pack()
root.mainloop() | 12.153846 | 26 | 0.620253 | 25 | 158 | 3.92 | 0.6 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.177215 | 158 | 13 | 27 | 12.153846 | 0.746154 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
56e712fc9d5f888dd3b32ea02057e2f0440b72f3 | 803 | py | Python | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | 1 | 2020-12-01T16:49:12.000Z | 2020-12-01T16:49:12.000Z | from collections import defaultdict
starting_numbers = [16, 12, 1, 0, 15, 7, 11]
def solver(rounds):
last_spoken = dict()
number_spoken = defaultdict(int)
for i, n in enumerate(starting_numbers):
last_spoken[n] = i + 1
number_spoken[n] += 1
most_recent = starting_numbers[-1]
turn... | 23.617647 | 61 | 0.620174 | 106 | 803 | 4.396226 | 0.415094 | 0.214592 | 0.103004 | 0.094421 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.272727 | 803 | 33 | 62 | 24.333333 | 0.743151 | 0 | 0 | 0 | 0 | 0 | 0.07472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 0.086957 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56e98dd7ca93ca487d380c97603b7cfdaf2404c3 | 4,000 | py | Python | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import shutil
from collections import namedtuple
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager
from ansible.playbook.play import Play
from ansible.e... | 32.258065 | 115 | 0.62525 | 490 | 4,000 | 4.993878 | 0.269388 | 0.040458 | 0.051492 | 0.053126 | 0.258684 | 0.138128 | 0.103801 | 0.079281 | 0.079281 | 0.079281 | 0 | 0.002318 | 0.245 | 4,000 | 123 | 116 | 32.520325 | 0.807947 | 0.047 | 0 | 0.191919 | 0 | 0 | 0.08938 | 0.022608 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020202 | 0.111111 | null | null | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56f2e5d5d632d949b005c992def0743a49363138 | 269 | py | Python | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | import tkinter as tk
# Create a window
root = tk.Tk()
name1 = tk.Label(root, text="Aman")
name2 = tk.Label(root, text="Rahul")
name3 = tk.Label(root, text="Manoj")
name1.grid(row=0, column=0)
name2.grid(row=1, column=1)
name3.grid(row=3, column=3)
root.mainloop()
| 16.8125 | 36 | 0.684015 | 48 | 269 | 3.833333 | 0.479167 | 0.11413 | 0.179348 | 0.244565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.130112 | 269 | 15 | 37 | 17.933333 | 0.735043 | 0.055762 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
56f6dc86c3ae14b0448108e0f2a5fb1570174b18 | 1,875 | py | Python | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 4 | 2020-01-21T00:21:44.000Z | 2021-06-15T19:38:36.000Z | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 173 | 2019-11-18T08:19:44.000Z | 2021-09-08T01:37:19.000Z | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 3 | 2020-01-28T19:19:35.000Z | 2021-05-01T02:33:36.000Z | from typing import Callable
from typing import List
from telegram import MessageEntity
from telegram import Update
from telegram.ext import Handler
class CustomCommandHandle(Handler):
def __init__(
self,
commands_callback: Callable[[], List[str]],
callback: Callable,
pass_update_q... | 32.894737 | 117 | 0.5936 | 200 | 1,875 | 5.355 | 0.33 | 0.059757 | 0.056022 | 0.035481 | 0.030812 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006279 | 0.320533 | 1,875 | 56 | 118 | 33.482143 | 0.83438 | 0.112 | 0 | 0.071429 | 0 | 0 | 0.000618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.190476 | 0.119048 | 0.02381 | 0.285714 | 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 |
71017d33ceca5fbf3aa398b934100c4307a77f61 | 1,982 | py | Python | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | GpioService.py | slater1/gpio | ef4767456b746706ee5cb3304ed6ef29e0fe6d54 | [
"MIT"
] | null | null | null | from datetime import datetime
from gpiozero import LED
from threading import Thread
from time import sleep
class GpioService:
def __init__(self):
self.pins = {}
self.heartbeat_last = datetime.now()
self.heartbeat_enabled = False
self.have_heartbeat = False;
... | 27.527778 | 70 | 0.592836 | 240 | 1,982 | 4.704167 | 0.245833 | 0.14969 | 0.070859 | 0.06643 | 0.193091 | 0.193091 | 0.136404 | 0.09566 | 0.09566 | 0.09566 | 0 | 0.001465 | 0.311302 | 1,982 | 71 | 71 | 27.915493 | 0.825641 | 0 | 0 | 0.169811 | 0 | 0 | 0.007326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0 | 0.075472 | 0.037736 | 0.433962 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
710a8eb80318d483b7ae6c16ae6882b79bd7ec77 | 301 | py | Python | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | null | null | null | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | 1 | 2022-01-22T12:45:49.000Z | 2022-01-22T12:45:49.000Z | backend/app.py | JohnnyDevNull/python-nuxt-starter | e6158818b7536212dafec2dfe3bc70385110440c | [
"MIT"
] | null | null | null | from flask import Flask
from rest_server import rest_api
from socket_server import socket_api
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
rest_api.init_app(app)
socket_api.init_app(app)
if __name__ == '__main__':
socket_api.run(app, host="127.0.0.1", port="5000", debug='true')
| 21.5 | 68 | 0.744186 | 50 | 301 | 4.04 | 0.48 | 0.133663 | 0.09901 | 0.128713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.119601 | 301 | 13 | 69 | 23.153846 | 0.724528 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7122f7239260373acc14b5705783c292ba4716bb | 220 | py | Python | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 12 | 2021-06-07T11:39:30.000Z | 2022-03-07T18:42:04.000Z | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 30 | 2021-08-10T10:27:41.000Z | 2022-03-25T08:08:29.000Z | conftest.py | Ouss4/pytest-embedded | b8811f97f6e3a3688da3628b9f3cb4645723c552 | [
"MIT"
] | 6 | 2021-11-16T13:10:45.000Z | 2022-03-31T10:51:29.000Z | import os
import pytest
pytest_plugins = [
'pytester',
]
@pytest.fixture(autouse=True)
def copy_fixtures(testdir):
testdir.copy_example(os.path.join(os.path.dirname(__file__), 'tests', 'fixtures'))
yield
| 15.714286 | 86 | 0.713636 | 28 | 220 | 5.357143 | 0.678571 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 220 | 13 | 87 | 16.923077 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
712ec90b75d074ea84403e57993fff8f8e2dc0dc | 3,069 | py | Python | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | 4 | 2021-12-24T09:19:45.000Z | 2022-03-17T23:44:44.000Z | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | 5 | 2022-02-15T07:17:26.000Z | 2022-03-03T04:49:38.000Z | hundun/systems/_systems.py | llbxg/hundun | a063ba4cf42665a3b7861aaccd1e9e31719eef8d | [
"MIT"
] | null | null | null | # 力学系(dynamical systems)
from abc import ABC as _ABC, abstractmethod as _abstractmethod
import numpy as _np
from ._tu import TU as _TU
class DynamicalSystems(_ABC):
def __init__(self, t=None, u=None, **params):
self.dim = 0
self.parameter()
if self.dim == 0:
class_name = s... | 24.165354 | 75 | 0.548713 | 431 | 3,069 | 3.668213 | 0.211137 | 0.050601 | 0.030361 | 0.0253 | 0.127135 | 0.073371 | 0 | 0 | 0 | 0 | 0 | 0.016268 | 0.318996 | 3,069 | 126 | 76 | 24.357143 | 0.740191 | 0.022157 | 0 | 0.117647 | 0 | 0 | 0.040201 | 0.00804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223529 | false | 0 | 0.035294 | 0.082353 | 0.447059 | 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 |
712f06edd2c360eccafbcbf093e6b134d0761a1c | 3,919 | py | Python | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/statistics/migrations/0001_initial.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'TrackingType'
db.create_table('statistics_trackingtype', (
('id', self.gf('djang... | 59.378788 | 161 | 0.602705 | 418 | 3,919 | 5.5311 | 0.169856 | 0.093426 | 0.157439 | 0.224913 | 0.693772 | 0.693772 | 0.682526 | 0.679066 | 0.625865 | 0.509516 | 0 | 0.005334 | 0.186782 | 3,919 | 66 | 162 | 59.378788 | 0.720113 | 0.032917 | 0 | 0.283019 | 0 | 0 | 0.493791 | 0.309115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.169811 | 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 |
712fe840477ae9afc89ee0d30308453c6ea2bba1 | 429 | py | Python | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente.
#
# Ex: Ana Maria de Souza
#primeiro = Ana
#último = Souza
'''Tive dificuldades com a ultima linha desse código. Estude mais a função Split e a aula 9!'''
nome = input('Digite um nome completo: ').s... | 42.9 | 121 | 0.710956 | 78 | 429 | 3.910256 | 0.628205 | 0.078689 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.172494 | 429 | 10 | 122 | 42.9 | 0.850704 | 0.608392 | 0 | 0 | 0 | 0 | 0.559748 | 0 | 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 |
713860ef4def0389233076f29b376d7d4ac7466d | 226 | py | Python | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson8_work/Ex7.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | # Написати функцію, яка перевіряє чи в списку є ім'я "Євген"
def is_in_list(l, e):
if e in l:
return True
else:
return False
print(is_in_list(['Ярослав', 'Богдан', 'Катя', 'Євген'], "Євгенпше"))
| 28.25 | 70 | 0.60177 | 35 | 226 | 3.771429 | 0.771429 | 0.060606 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261062 | 226 | 7 | 71 | 32.285714 | 0.790419 | 0.256637 | 0 | 0 | 0 | 0 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 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 |
713966fce8e27e796ccf934cd246351e192e1902 | 984 | py | Python | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | scripts/preprocessing/gamma correction.py | dekelmeirom/pathologylab | 262b0bd9cb9233bc960671c2d674cf895b228f39 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from skimage import exposure
from matplotlib import pyplot as plt
from matplotlib import colors as colors
import numpy as np
import matplotlib.image as mpimg
import colorsys
import math
import os
PATH = "C:\\Users\\dekelmeirom\\OneDrive - Technion\\Documents\\university\\pdl_proj... | 28.114286 | 99 | 0.704268 | 147 | 984 | 4.612245 | 0.462585 | 0.058997 | 0.058997 | 0.061947 | 0.20354 | 0.20354 | 0.20354 | 0.20354 | 0.20354 | 0.20354 | 0 | 0.030303 | 0.161585 | 984 | 34 | 100 | 28.941176 | 0.791515 | 0.074187 | 0 | 0 | 0 | 0 | 0.199339 | 0.180617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0.041667 | 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 |
713cd79703169c6cc701b303f0c7df900f7c2689 | 491 | py | Python | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | tasks/migrations/0005_itemtemplatefield_type.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-12-01 23:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0004_remove_annotation_is_done'),
]
operations = [
migrations.AddField(
model_name='itemtemplatefield',
nam... | 25.842105 | 143 | 0.586558 | 54 | 491 | 5.222222 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.244399 | 491 | 18 | 144 | 27.277778 | 0.703504 | 0.09165 | 0 | 0 | 1 | 0 | 0.195946 | 0.067568 | 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 |
8539abd165125b9d66931bb7fd6e71c602de1c9e | 346 | py | Python | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 6 | 2015-04-05T01:28:23.000Z | 2022-02-06T17:29:47.000Z | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 2 | 2022-01-05T23:07:10.000Z | 2022-03-30T17:52:45.000Z | pages/middleware.py | dragetd/LambdaCast | a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7 | [
"BSD-2-Clause"
] | 2 | 2022-02-06T17:29:53.000Z | 2022-02-26T17:23:09.000Z | '''
Created on Jun 4, 2014
@author: benjamin
'''
from pages.models import Page
class PagesMiddleware(object):
def process_template_response(self, request, response):
''' add pages to response context '''
response.context_data['page_list'] = Page.objects.filter(activated=True).order_by('orderid'... | 21.625 | 100 | 0.699422 | 42 | 346 | 5.642857 | 0.809524 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017731 | 0.184971 | 346 | 16 | 101 | 21.625 | 0.822695 | 0.208092 | 0 | 0 | 0 | 0 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
853a7d0f953c95bc8bdbaefb204194d26a724aed | 970 | py | Python | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | 1 | 2021-07-26T06:40:04.000Z | 2021-07-26T06:40:04.000Z | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | null | null | null | tests/test_main.py | JeanmarieAlder/bollards-api | 39c82a53575ecd2fbd7f98864512a5494b800836 | [
"MIT"
] | null | null | null |
from bollards_api.main.forms import ContactForm
def test_home_page(client):
"""Test that home page displays correctly"""
rv = client.get('/')
assert b'<h1 class="text-center">Welcome to Bollards API</h1>' in rv.data
assert b'<p class="card-text">Discover all bollards between Vaud, Switzerland and Fra... | 27.714286 | 109 | 0.670103 | 152 | 970 | 4.164474 | 0.421053 | 0.066351 | 0.075829 | 0.061611 | 0.229068 | 0.14534 | 0.14534 | 0.14534 | 0.14534 | 0.14534 | 0 | 0.01938 | 0.202062 | 970 | 35 | 110 | 27.714286 | 0.79845 | 0.089691 | 0 | 0.190476 | 0 | 0 | 0.271789 | 0.06078 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.285714 | 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 |
854307b441b9f6e3e18268c1d5065eddb624b4e1 | 545 | py | Python | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | setup.py | pandapan0021/SHTTPServer_plus.py | c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A setuptools based setup module.
--------------------------------------------------------
See:
http://packaging.python.org/en/latest/distributing.html
http://github.com/pypa/sampleproject
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 23.695652 | 60 | 0.46055 | 44 | 545 | 5.659091 | 0.795455 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014583 | 0.119266 | 545 | 22 | 61 | 24.772727 | 0.504167 | 0.6 | 0 | 0 | 0 | 0 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
854591a05898d20509fd9ed5f1b49eb9ada02c6f | 3,185 | py | Python | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | gallery/tests.py | melissa-koi/PersonalGallery | 0fed4a60a754d04f169a976403fb2bde6425ae59 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image, Category, Location
# Create your tests here.
class CategoryTest(TestCase):
# set up method
def setUp(self):
self.new_category = Category(name='newCategory')
# tear down method
def tearDown(self):
Category.objects.all().delet... | 30.333333 | 178 | 0.668132 | 386 | 3,185 | 5.373057 | 0.160622 | 0.081003 | 0.047734 | 0.046287 | 0.575699 | 0.551109 | 0.431533 | 0.416586 | 0.372228 | 0.335583 | 0 | 0.004482 | 0.229513 | 3,185 | 104 | 179 | 30.625 | 0.840668 | 0.141601 | 0 | 0.459016 | 0 | 0 | 0.052709 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 1 | 0.245902 | false | 0 | 0.032787 | 0 | 0.327869 | 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 |
854748ec64dba84be69bb1448db0b45736a94d36 | 489 | py | Python | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | 2 | 2017-08-31T14:59:40.000Z | 2019-03-02T21:39:26.000Z | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | null | null | null | modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py | tonioo/modoboa-public-api | 6f8f31348488e15fe935cacc6ee4655d56087fa1 | [
"MIT"
] | 2 | 2017-07-24T22:42:01.000Z | 2018-10-26T05:05:50.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-15 18:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modoboa_public_api', '0004_auto_20160614_1717'),
]
operations = [
migrations... | 23.285714 | 58 | 0.646217 | 53 | 489 | 5.716981 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 0.245399 | 489 | 20 | 59 | 24.45 | 0.731707 | 0.137014 | 0 | 0 | 1 | 0 | 0.181384 | 0.054893 | 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 |
854a9ce756635dcf347dd232a5a00548682056f7 | 1,597 | py | Python | examples/task_hello.py | agarwalrounak/qmt | 6fb8ee55fb9d544b72f6dc0c275000914e03af06 | [
"MIT"
] | 1 | 2018-09-30T00:45:53.000Z | 2018-09-30T00:45:53.000Z | examples/task_hello.py | DalavanCloud/qmt | ea5d234012a1d1d39f34834ac9f2007c2a6d4852 | [
"MIT"
] | null | null | null | examples/task_hello.py | DalavanCloud/qmt | ea5d234012a1d1d39f34834ac9f2007c2a6d4852 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from qmt.tasks import Task, SweepManager
sweep = SweepManager.create_empty_sweep() # our dask sweep manager
class HelloTask(Task):
def __init__(self):
super().__init__() # required init
@staticmethod
def _solve_instance(inputs, options): # requi... | 28.017544 | 74 | 0.670632 | 179 | 1,597 | 5.692737 | 0.346369 | 0.027478 | 0.04318 | 0.058881 | 0.432777 | 0.395486 | 0.290481 | 0.243376 | 0.243376 | 0 | 0 | 0.002322 | 0.190983 | 1,597 | 56 | 75 | 28.517857 | 0.786378 | 0.121478 | 0 | 0.324324 | 0 | 0 | 0.087455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.027027 | 0.378378 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85501fa8ae7e1ca392e64944e94898fb3cd864f2 | 548 | py | Python | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | 1 | 2020-07-27T14:18:08.000Z | 2020-07-27T14:18:08.000Z | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | null | null | null | python_teste/python_aulas/aula_86.py | BrunoDantasMoreira/projectsPython | bd73ab0b3c067456407f227ed2ece42e7f21ddfc | [
"MIT"
] | null | null | null | lista = [[], [], []]
for c1 in range(0, 3):
num = int(input(f'Digite um valor para [0, {c1}]: '))
lista[0].append(num)
for c2 in range(0, 3):
num = int(input(f'Digite um valor para [1, {c2}]: '))
lista[1].append(num)
for c3 in range(0, 3):
num = int(input(f'Digite um valor para [2, {c3}]: '))
li... | 39.142857 | 64 | 0.520073 | 105 | 548 | 2.714286 | 0.219048 | 0.126316 | 0.084211 | 0.094737 | 0.491228 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0 | 0.099788 | 0.140511 | 548 | 14 | 65 | 39.142857 | 0.505308 | 0 | 0 | 0 | 0 | 0.214286 | 0.473588 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
855325438c3097f24f5a6080d6bf038cfb57e3d6 | 619 | py | Python | application/api/api.py | raphaelbh/timezone-api | bd273614685065a74df0c577673b43b42bae813c | [
"MIT"
] | 2 | 2022-02-14T19:52:34.000Z | 2022-02-14T19:52:39.000Z | application/api/api.py | raphaelbh/timezone-api | bd273614685065a74df0c577673b43b42bae813c | [
"MIT"
] | null | null | null | application/api/api.py | raphaelbh/timezone-api | bd273614685065a74df0c577673b43b42bae813c | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask import request
from datetime import datetime
from commons import api_utils
from services import timezone_service
blueprint = Blueprint("api", __name__)
@blueprint.route('/timezones')
def timezones():
return api_utils.response(200, timezone_service.timezones())
@blueprint.... | 28.136364 | 67 | 0.733441 | 78 | 619 | 5.666667 | 0.448718 | 0.072398 | 0.095023 | 0.149321 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017375 | 0.163166 | 619 | 22 | 67 | 28.136364 | 0.835907 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0.058824 | 0.588235 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
855349721cbc4fbd167679c0aa6f6003d9b7e55a | 290 | py | Python | dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py | GalBenZvi/dmriprep | 7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b | [
"Apache-2.0"
] | null | null | null | dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py | GalBenZvi/dmriprep | 7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b | [
"Apache-2.0"
] | 1 | 2022-03-22T13:22:18.000Z | 2022-03-22T13:22:18.000Z | dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py | GalBenZvi/dmriprep | 7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b | [
"Apache-2.0"
] | null | null | null | """
Configuration file for nii_to_mif.py
"""
#: i/o
INPUT_NODE_FIELDS = ["dwi_file", "fmap_file"]
OUTPUT_NODE_FIELDS = ["dwi_file", "fmap_file"]
#: Keyword arguments
LOCATE_ASSOCIATED_KWARGS = dict(
input_names=["in_file"],
output_names=["json_file", "bvec_file", "bval_file"],
)
| 20.714286 | 57 | 0.703448 | 41 | 290 | 4.536585 | 0.634146 | 0.107527 | 0.139785 | 0.182796 | 0.268817 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127586 | 290 | 13 | 58 | 22.307692 | 0.735178 | 0.210345 | 0 | 0 | 0 | 0 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8555a2d39b9c39ad7b5a966dfacc717dfd150cdc | 1,551 | py | Python | PythonSim/sim.py | iandouglas96/swarm-thesis | dbafa2343a75c4de26b0ae19d08a033b34570287 | [
"MIT"
] | null | null | null | PythonSim/sim.py | iandouglas96/swarm-thesis | dbafa2343a75c4de26b0ae19d08a033b34570287 | [
"MIT"
] | null | null | null | PythonSim/sim.py | iandouglas96/swarm-thesis | dbafa2343a75c4de26b0ae19d08a033b34570287 | [
"MIT"
] | null | null | null | import pygame, sys
from pygame.locals import *
from robot import Robot
from wall import Wall
from leader import Leader
import random
def main(num_robots, width, height):
print "Initializing..."
#Create graphics window
pygame.init()
screen = pygame.display.set_mode((width, height),0,32)
pygame.displ... | 23.861538 | 92 | 0.59381 | 201 | 1,551 | 4.552239 | 0.402985 | 0.056831 | 0.062295 | 0.034973 | 0.122404 | 0.037158 | 0 | 0 | 0 | 0 | 0 | 0.06312 | 0.284977 | 1,551 | 64 | 93 | 24.234375 | 0.761948 | 0.221148 | 0 | 0.060606 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8555cf1601ce1b5f617910a811d3f01d2076709f | 1,246 | py | Python | src/RailReservation/urls.py | KeshavSeth/RailwayReservationSystem | bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8 | [
"MIT"
] | null | null | null | src/RailReservation/urls.py | KeshavSeth/RailwayReservationSystem | bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8 | [
"MIT"
] | null | null | null | src/RailReservation/urls.py | KeshavSeth/RailwayReservationSystem | bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
import profiles.urls
import accounts.urls
import trains.urls
import ticket.urls
from route.views import *
from station.views import *
from trains.views import ... | 35.6 | 76 | 0.680578 | 165 | 1,246 | 5.078788 | 0.345455 | 0.052506 | 0.050119 | 0.042959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155698 | 1,246 | 34 | 77 | 36.647059 | 0.796578 | 0.05618 | 0 | 0 | 0 | 0 | 0.135434 | 0.021295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.413793 | 0 | 0.413793 | 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 |
8557adf6167f5ff10820921a3f828f15927174c0 | 1,798 | py | Python | games/gridworld/gridworld_examples.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | games/gridworld/gridworld_examples.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | games/gridworld/gridworld_examples.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | from games.gridworld.grid import Grid
from games.gridworld.gridworld import Gridworld
from games.gridworld.gridworld_direction import GridworldDirection
#####################################
# Example transition functions
#####################################
def deterministic_transition(action):
return [actio... | 32.107143 | 78 | 0.640156 | 214 | 1,798 | 5.079439 | 0.238318 | 0.154554 | 0.049678 | 0.068997 | 0.182153 | 0.150874 | 0.150874 | 0 | 0 | 0 | 0 | 0.035616 | 0.187987 | 1,798 | 55 | 79 | 32.690909 | 0.708904 | 0.027253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.117647 | 0.382353 | 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 |
855a494222a6d4c9bcc189b1e321bf2fc70b2a71 | 4,369 | py | Python | mqtt/Seeed3thPartMqttServer.py | lanselambor/scripts | deb7aa4c7c7341581364f23251f085c1a4fec86f | [
"Apache-2.0"
] | null | null | null | mqtt/Seeed3thPartMqttServer.py | lanselambor/scripts | deb7aa4c7c7341581364f23251f085c1a4fec86f | [
"Apache-2.0"
] | null | null | null | mqtt/Seeed3thPartMqttServer.py | lanselambor/scripts | deb7aa4c7c7341581364f23251f085c1a4fec86f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import MQTTV3112 as MQTTV3
import traceback, datetime, os, sys, select, binascii
import time, traceback
import math
import socketserver
import json
import logging
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler
# create logger with 'spam_application'
logger = logging.get... | 38.663717 | 118 | 0.592584 | 462 | 4,369 | 5.560606 | 0.428571 | 0.021798 | 0.02102 | 0.035033 | 0.111327 | 0.072402 | 0.049046 | 0.049046 | 0.049046 | 0 | 0 | 0.014777 | 0.28748 | 4,369 | 112 | 119 | 39.008929 | 0.810472 | 0.135271 | 0 | 0.105263 | 0 | 0 | 0.09698 | 0.006373 | 0.013158 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.052632 | 0.105263 | 0 | 0.184211 | 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 |
856b3c80d8f9a268cead6014523c425a5d9ae352 | 738 | py | Python | examples/ex_em_matrix_countour_plot.py | herzig/cary_reader | 2fd70a9aaf4313914ea823517556069eadebc74b | [
"MIT"
] | 1 | 2020-10-15T13:00:26.000Z | 2020-10-15T13:00:26.000Z | examples/ex_em_matrix_countour_plot.py | herzig/cary_reader | 2fd70a9aaf4313914ea823517556069eadebc74b | [
"MIT"
] | null | null | null | examples/ex_em_matrix_countour_plot.py | herzig/cary_reader | 2fd70a9aaf4313914ea823517556069eadebc74b | [
"MIT"
] | null | null | null | # allows import of package from parent directory
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import numpy as np
import matplotlib.pyplot as plt
from cary_reader import CaryData
data = CaryData.from_csv('test_data/berio_matrix_300_450.csv')
# converts the d... | 30.75 | 82 | 0.754743 | 122 | 738 | 4.459016 | 0.598361 | 0.033088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029457 | 0.126016 | 738 | 24 | 83 | 30.75 | 0.813953 | 0.303523 | 0 | 0 | 0 | 0 | 0.12549 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
856bb44faaf32f953b8cf04e2328ff923146711d | 879 | py | Python | training_v1_backup/training/pytorchLearning/lrNumpy.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | training_v1_backup/training/pytorchLearning/lrNumpy.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | training_v1_backup/training/pytorchLearning/lrNumpy.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | import torch as th
import numpy as np
'''
prediction:
gradient computation:
loss computation:
parameter updates:
'''
'''All Manual with numpy'''
# f = w*x
# f = 2.x
X = np.array([1,2,3,4],dtype=np.float32)
Y = np.array([2,4,6,8],dtype=np.float32)
w = 0.0
def forward(x):
return w*x
def loss(y,yp):
return np... | 16.903846 | 61 | 0.590444 | 162 | 879 | 3.17284 | 0.382716 | 0.011673 | 0.054475 | 0.066148 | 0.077821 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0.056358 | 0.212742 | 879 | 51 | 62 | 17.235294 | 0.686416 | 0.120592 | 0 | 0 | 0 | 0 | 0.216794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0.136364 | 0.363636 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
856bb87d250ac4989a8e122dc68f32ff68809bd1 | 497 | py | Python | exotic_ld/ld_laws.py | hrwakeford/ExoTiC-LD | 5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a | [
"MIT"
] | null | null | null | exotic_ld/ld_laws.py | hrwakeford/ExoTiC-LD | 5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a | [
"MIT"
] | null | null | null | exotic_ld/ld_laws.py | hrwakeford/ExoTiC-LD | 5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a | [
"MIT"
] | null | null | null | from astropy.modeling.models import custom_model
@custom_model
def quadratic_limb_darkening(mu, a_ld=0., b_ld=0.):
""" Define quadratic limb darkening model with two params. """
return 1. - a_ld * (1. - mu) - b_ld * (1. - mu)**2
@custom_model
def nonlinear_limb_darkening(mu, c0=0., c1=0., c2=0., c3=0.):
... | 33.133333 | 68 | 0.591549 | 82 | 497 | 3.45122 | 0.390244 | 0.063604 | 0.09894 | 0.155477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071979 | 0.217304 | 497 | 14 | 69 | 35.5 | 0.655527 | 0.225352 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
857497f20d02b6868933869ee19b698c45cb4943 | 1,382 | py | Python | onetimepass/backends.py | oangervuori/namubufferi | b9353b1d1a32e18e93cb1e9bd2b591950d54269a | [
"MIT"
] | 2 | 2016-12-05T03:31:47.000Z | 2017-02-13T20:10:39.000Z | onetimepass/backends.py | oangervuori/namubufferi | b9353b1d1a32e18e93cb1e9bd2b591950d54269a | [
"MIT"
] | 1 | 2016-12-14T10:53:15.000Z | 2016-12-17T18:52:25.000Z | onetimepass/backends.py | oangervuori/namubufferi | b9353b1d1a32e18e93cb1e9bd2b591950d54269a | [
"MIT"
] | 1 | 2017-01-14T10:56:28.000Z | 2017-01-14T10:56:28.000Z | from django.contrib.auth import get_user_model
from django.contrib.auth.backends import BaseBackend
from django.contrib.auth.hashers import check_password
from .models import OneTimePass
User = get_user_model()
# https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#authentication-backends
class OneTimePa... | 32.904762 | 88 | 0.641823 | 149 | 1,382 | 5.852349 | 0.362416 | 0.045872 | 0.058486 | 0.072248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003036 | 0.285094 | 1,382 | 41 | 89 | 33.707317 | 0.879555 | 0.061505 | 0 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.441176 | 0.117647 | 0 | 0.382353 | 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 |
85781ef5f5f726cf3352c3b5c4d46b1a07a81a89 | 802 | py | Python | pickle2sql.py | Shemka/SteamTags | a35463b7f30e112d8c18a73cd4abe54b102c0b4b | [
"MIT"
] | null | null | null | pickle2sql.py | Shemka/SteamTags | a35463b7f30e112d8c18a73cd4abe54b102c0b4b | [
"MIT"
] | null | null | null | pickle2sql.py | Shemka/SteamTags | a35463b7f30e112d8c18a73cd4abe54b102c0b4b | [
"MIT"
] | null | null | null | import pickle as pk
import pymysql as mysql
from tqdm import tqdm
host, login, password, db, file_name = input('Enter host, login, password, database name and file name:\n').split()
with open(file_name, 'rb') as f:
data = pk.load(f)
connection = mysql.connect(host, login, password, db)
with connection.cursor() a... | 42.210526 | 140 | 0.693267 | 123 | 802 | 4.479675 | 0.617886 | 0.049002 | 0.092559 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005997 | 0.168329 | 802 | 18 | 141 | 44.555556 | 0.82009 | 0.301746 | 0 | 0 | 0 | 0 | 0.195691 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.230769 | 0 | 0.230769 | 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 |
857f09ca17fba68d6b0bb219612bebe1eef519e9 | 8,044 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 27.737931 | 141 | 0.612631 | 882 | 8,044 | 5.441043 | 0.29932 | 0.036674 | 0.026672 | 0.020838 | 0.340071 | 0.313607 | 0.303188 | 0.295895 | 0.237758 | 0.13732 | 0 | 0.005948 | 0.289408 | 8,044 | 289 | 142 | 27.83391 | 0.833625 | 0.016037 | 0 | 0.346154 | 0 | 0.007692 | 0.706522 | 0.06231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003846 | false | 0.015385 | 0.011538 | 0 | 0.015385 | 0.003846 | 0 | 0 | 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 |
857fedd5b847029945954b747d4033f643eaed7a | 1,185 | py | Python | snippets/3DEM/Z_oldscratch/scratch_20160215.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/3DEM/Z_oldscratch/scratch_20160215.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | snippets/3DEM/Z_oldscratch/scratch_20160215.py | michielkleinnijenhuis/EM | f46a9b11298919b359e80d9f23a7e824df1356cb | [
"Apache-2.0"
] | null | null | null | scriptdir="$HOME/workspace/EM"
DATA="$HOME/oxdata"
datadir="$DATA/P01/EM/M3/M3_S1_GNU" && cd $datadir
dataset='m000'
paraview --state=$datadir/m000_01000-01500_01000-01500_00200-00300/stack+mesh_compact.pvsm
qsubfile=$datadir/EM_con2.sh
echo '#!/bin/bash' > $qsubfile
echo "#SBATCH --nodes=1" >> $qsubfile
echo "#SBATC... | 32.027027 | 133 | 0.67173 | 197 | 1,185 | 3.964467 | 0.390863 | 0.069142 | 0.09219 | 0.06146 | 0.503201 | 0.384123 | 0.384123 | 0.271447 | 0.271447 | 0.271447 | 0 | 0.127222 | 0.09789 | 1,185 | 36 | 134 | 32.916667 | 0.603368 | 0 | 0 | 0.30303 | 0 | 0.030303 | 0.196624 | 0.042194 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85845948a6f4b5cef79da8f628ea2e873570afc0 | 1,537 | py | Python | recipes/Python/454322_Typechecking_decorator/recipe-454322.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/454322_Typechecking_decorator/recipe-454322.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/454322_Typechecking_decorator/recipe-454322.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | def require(arg_name, *allowed_types):
def make_wrapper(f):
if hasattr(f, "wrapped_args"):
wrapped_args = getattr(f, "wrapped_args")
else:
code = f.func_code
wrapped_args = list(code.co_varnames[:code.co_argcount])
try:
arg_index = wrapped_arg... | 35.744186 | 109 | 0.560833 | 200 | 1,537 | 4.135 | 0.3 | 0.05925 | 0.029021 | 0.053204 | 0.338573 | 0.338573 | 0.338573 | 0.338573 | 0.338573 | 0.338573 | 0 | 0.014549 | 0.329213 | 1,537 | 42 | 110 | 36.595238 | 0.787585 | 0.051399 | 0 | 0.228571 | 0 | 0 | 0.068823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85904c89bcdbf8674999ebe65648eb5f658466c4 | 466 | py | Python | setup.py | codeskyblue/pyignore | 373a0a85a0af54af13068ba7cf1f6202ee145cbf | [
"MIT"
] | 2 | 2017-09-21T08:11:38.000Z | 2020-09-22T01:25:50.000Z | setup.py | codeskyblue/pyignore | 373a0a85a0af54af13068ba7cf1f6202ee145cbf | [
"MIT"
] | null | null | null | setup.py | codeskyblue/pyignore | 373a0a85a0af54af13068ba7cf1f6202ee145cbf | [
"MIT"
] | null | null | null | from __future__ import print_function
import pyignore
try: from distutils.core import setup
except ImportError: from setuptools import setup
setup(
name='pyignore',
version=pyignore.__version__,
license="MIT",
description='parse .gitignore file',
author='codeskyblue',
author_emai... | 22.190476 | 51 | 0.686695 | 49 | 466 | 6.285714 | 0.673469 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203863 | 466 | 20 | 52 | 23.3 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.236052 | 0.045064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.266667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8598c85583efc616f40502b57ea891b81ce4abba | 1,092 | py | Python | apps/hospitals/admin/hospital.py | joao-frohlich/covid-sc | 8f176abe7d0696bcf118da82dce91c1da6332b44 | [
"MIT"
] | null | null | null | apps/hospitals/admin/hospital.py | joao-frohlich/covid-sc | 8f176abe7d0696bcf118da82dce91c1da6332b44 | [
"MIT"
] | null | null | null | apps/hospitals/admin/hospital.py | joao-frohlich/covid-sc | 8f176abe7d0696bcf118da82dce91c1da6332b44 | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.hospitals.models import Hospital, HospitalBed
class HospitalBedInline(admin.TabularInline):
model = HospitalBed
def get_extra(self, request, obj=None, **kwargs):
extra = 3
extra_on_edit = 0
return extra_on_edit if obj else extra
class Hospi... | 29.513514 | 92 | 0.65293 | 118 | 1,092 | 5.838983 | 0.474576 | 0.078374 | 0.069666 | 0.069666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.216117 | 1,092 | 37 | 93 | 29.513514 | 0.80257 | 0 | 0 | 0 | 0 | 0 | 0.138152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
85a43bc49cba801875c15cb0bfcc94c9515e0a35 | 455 | py | Python | self_driving_car/motor/car_motor.py | MichaelBosello/Self-Driving-Car | 7b6b3fa8c47cff84bf681db22abff0d418bd14be | [
"Apache-2.0"
] | 8 | 2020-08-27T06:13:35.000Z | 2021-09-17T04:53:27.000Z | self_driving_car/motor/car_motor.py | MichaelBosello/Self-Driving-Car | 7b6b3fa8c47cff84bf681db22abff0d418bd14be | [
"Apache-2.0"
] | null | null | null | self_driving_car/motor/car_motor.py | MichaelBosello/Self-Driving-Car | 7b6b3fa8c47cff84bf681db22abff0d418bd14be | [
"Apache-2.0"
] | null | null | null | def CarMotor(car_type):
if car_type == 'hjduino':
from motor.car_specific_motor.hjduino.car_motor_hjduino_jetson import CarMotorHJduino
return CarMotorHJduino()
if car_type == 'xiaor':
from motor.car_specific_motor.xiaor.car_motor_xiaor_jetson import CarMotorXiaoR
return CarMotorXiaoR()
... | 45.5 | 91 | 0.753846 | 57 | 455 | 5.701754 | 0.298246 | 0.086154 | 0.083077 | 0.184615 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173626 | 455 | 10 | 92 | 45.5 | 0.864362 | 0 | 0 | 0 | 0 | 0 | 0.037281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 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 |
85a94176737ca05a735e46dd93ad4ec3d2b40450 | 362 | py | Python | study_management/management/commands/generatefernetkey.py | jdkizer9/ls2_app | 8b4c37b44a673d1919a0e52b72f529b7e1abd2e3 | [
"Apache-2.0"
] | null | null | null | study_management/management/commands/generatefernetkey.py | jdkizer9/ls2_app | 8b4c37b44a673d1919a0e52b72f529b7e1abd2e3 | [
"Apache-2.0"
] | 7 | 2020-02-05T04:57:01.000Z | 2022-02-10T06:51:23.000Z | study_management/management/commands/generatefernetkey.py | jdkizer9/ls2_app | 8b4c37b44a673d1919a0e52b72f529b7e1abd2e3 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from study_management.models import Datapoint
from cryptography.fernet import Fernet
import base64
class Command(BaseCommand):
help = 'Generates a new Fernet key'
def handle(self, *args, **options):
key = Fernet.generate_key()
... | 30.166667 | 65 | 0.751381 | 46 | 362 | 5.869565 | 0.673913 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.160221 | 362 | 12 | 66 | 30.166667 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0.071625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.777778 | 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 |
85ab2274d0b6aea42c9783fa2132ded90c110706 | 3,680 | py | Python | src/odin-api/muninn/client/user.py | Interactions-AI/odin | 94c593a98a0dc68c12f3062edbff34e7da5c4d8a | [
"Apache-2.0"
] | 4 | 2020-12-15T15:57:14.000Z | 2020-12-16T21:52:23.000Z | src/odin-api/muninn/client/user.py | Interactions-AI/odin | 94c593a98a0dc68c12f3062edbff34e7da5c4d8a | [
"Apache-2.0"
] | 2 | 2021-03-15T02:49:56.000Z | 2021-03-27T12:42:38.000Z | src/odin-api/muninn/client/user.py | Interactions-AI/odin | 94c593a98a0dc68c12f3062edbff34e7da5c4d8a | [
"Apache-2.0"
] | 5 | 2020-12-15T19:09:00.000Z | 2021-04-21T20:40:38.000Z | """Client to create or update odin user"""
import argparse
import os
import json
import signal
import requests
from prompt_toolkit import prompt
from muninn import ODIN_URL, ODIN_PORT, ODIN_SCHEME, ODIN_API_LOGGER
from muninn.auth import get_jwt_token
def create_user_http(url: str, jwt_token: str, username: str, pass... | 40 | 124 | 0.667391 | 491 | 3,680 | 4.875764 | 0.279022 | 0.043442 | 0.056809 | 0.035505 | 0.212197 | 0.177109 | 0.177109 | 0.125313 | 0.094403 | 0.094403 | 0 | 0.004472 | 0.210054 | 3,680 | 91 | 125 | 40.43956 | 0.819057 | 0.144837 | 0 | 0.253968 | 0 | 0 | 0.178109 | 0.028821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0.126984 | 0.126984 | 0 | 0.190476 | 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 |
85ae16702dcd86876f33eb76a9f4c0aef32a9b70 | 451 | py | Python | app/migrations/0004_auto_20171221_0621.py | tso/avalon | 36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3 | [
"MIT"
] | null | null | null | app/migrations/0004_auto_20171221_0621.py | tso/avalon | 36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3 | [
"MIT"
] | 6 | 2017-12-25T07:27:27.000Z | 2018-01-17T18:59:04.000Z | app/migrations/0004_auto_20171221_0621.py | tso/avalon | 36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3 | [
"MIT"
] | 2 | 2017-12-21T04:36:56.000Z | 2018-01-15T23:32:35.000Z | # Generated by Django 2.0 on 2017-12-21 06:21
import app.models
from django.db import migrations
import enumfields.fields
class Migration(migrations.Migration):
dependencies = [
('app', '0003_player_token'),
]
operations = [
migrations.AlterField(
model_name='player',
... | 21.47619 | 94 | 0.629712 | 52 | 451 | 5.384615 | 0.692308 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.257206 | 451 | 20 | 95 | 22.55 | 0.776119 | 0.095344 | 0 | 0 | 1 | 0 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85bfa63cf750d27b3238fc7c2ff6bcedc1afabdf | 915 | py | Python | addBinary.py | cookie223/startingtocode | 04371e60091074faea7965831797c08590d28b7b | [
"MIT"
] | null | null | null | addBinary.py | cookie223/startingtocode | 04371e60091074faea7965831797c08590d28b7b | [
"MIT"
] | null | null | null | addBinary.py | cookie223/startingtocode | 04371e60091074faea7965831797c08590d28b7b | [
"MIT"
] | null | null | null | import sys
def addBinary(a, b):
'return bin(int(a,2)+int(b,2))[2:]'
sumtemp = str(a + b)
sumlist = []
for char in sumtemp:
sumlist.append(int(char))
for i in range(1, len(sumtemp) + 1):
if sumlist[-i] == 0 or sumlist[-i] == 1:
pass
else:
if i + 1... | 27.727273 | 56 | 0.401093 | 112 | 915 | 3.205357 | 0.294643 | 0.222841 | 0.125348 | 0.066852 | 0.387187 | 0.362117 | 0.245125 | 0.150418 | 0 | 0 | 0 | 0.0499 | 0.452459 | 915 | 32 | 57 | 28.59375 | 0.666667 | 0.036066 | 0 | 0.5 | 0 | 0 | 0.044809 | 0.028415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.035714 | 0.035714 | 0 | 0.107143 | 0.035714 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85c7629ca49636fd14fc87cd2974bfba376afb41 | 1,112 | py | Python | setup.py | kritarthh/str2port | f211cfeb198ea0600854dbd3c7a8322990630834 | [
"MIT"
] | null | null | null | setup.py | kritarthh/str2port | f211cfeb198ea0600854dbd3c7a8322990630834 | [
"MIT"
] | null | null | null | setup.py | kritarthh/str2port | f211cfeb198ea0600854dbd3c7a8322990630834 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# https://github.com/dephell/dephell
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os.path
readme = ''
here = os.path.abspath(os.path.dirname(__file__))
readme_... | 27.8 | 116 | 0.672662 | 141 | 1,112 | 5.170213 | 0.638298 | 0.041152 | 0.057613 | 0.0631 | 0.085048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0.160971 | 1,112 | 39 | 117 | 28.512821 | 0.762058 | 0.113309 | 0 | 0 | 1 | 0 | 0.337755 | 0.021429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 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 |
85c915507f3f5e1f99596a07fded244aa05bc0b3 | 516 | py | Python | mysite/user/urls.py | Jason0705/ICanCook | b215e29183e588a0c161c81f1dc7e2da89563905 | [
"Unlicense"
] | null | null | null | mysite/user/urls.py | Jason0705/ICanCook | b215e29183e588a0c161c81f1dc7e2da89563905 | [
"Unlicense"
] | null | null | null | mysite/user/urls.py | Jason0705/ICanCook | b215e29183e588a0c161c81f1dc7e2da89563905 | [
"Unlicense"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^login/$', views.login, name='login'),
url(r'^logout/$', views.logout, name='logout'),
url(r'^update/$', views.update, name='update'),
url(r'^update-password/$', views.update_password,... | 34.4 | 78 | 0.633721 | 68 | 516 | 4.794118 | 0.264706 | 0.09816 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135659 | 516 | 14 | 79 | 36.857143 | 0.730942 | 0 | 0 | 0 | 0 | 0 | 0.261628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85c96475a78d9a740c71a10454b02129b261a89c | 3,564 | py | Python | tests/test_model.py | yukinagae/pymc4 | 39b0fecdaf12753c4ae8cae69d4b282c70cc0a54 | [
"Apache-2.0"
] | 7 | 2018-12-17T08:38:46.000Z | 2020-02-07T21:28:21.000Z | tests/test_model.py | yukinagae/pymc4 | 39b0fecdaf12753c4ae8cae69d4b282c70cc0a54 | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | yukinagae/pymc4 | 39b0fecdaf12753c4ae8cae69d4b282c70cc0a54 | [
"Apache-2.0"
] | 2 | 2018-12-17T06:54:21.000Z | 2018-12-21T21:45:40.000Z | from tensorflow_probability import edward2 as ed
import tensorflow as tf
import pytest
import pymc4 as pm
from pymc4.model.base import Config
# pylint: disable=unused-variable, unused-argument
# pylint: disable-msg=E0102
def test_model_definition_type1():
model = pm.Model(name="testName")
@model.define
d... | 22.556962 | 86 | 0.645342 | 492 | 3,564 | 4.54065 | 0.168699 | 0.037601 | 0.044315 | 0.049239 | 0.606535 | 0.544763 | 0.530886 | 0.518353 | 0.476276 | 0.476276 | 0 | 0.032488 | 0.214085 | 3,564 | 157 | 87 | 22.700637 | 0.765084 | 0.035354 | 0 | 0.588235 | 0 | 0 | 0.062919 | 0 | 0 | 0 | 0 | 0 | 0.245098 | 1 | 0.245098 | false | 0.019608 | 0.04902 | 0 | 0.294118 | 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 |
a415d7f8c6ee5c2c5870dba7dac2e114a845b4a4 | 1,395 | py | Python | app/models.py | herrkrebs/udacity-full-stack-web-developer-nanodegree-project-3-movie-catalog | d08947f7b0304d2e026e6a678b1197951e62137e | [
"MIT"
] | null | null | null | app/models.py | herrkrebs/udacity-full-stack-web-developer-nanodegree-project-3-movie-catalog | d08947f7b0304d2e026e6a678b1197951e62137e | [
"MIT"
] | null | null | null | app/models.py | herrkrebs/udacity-full-stack-web-developer-nanodegree-project-3-movie-catalog | d08947f7b0304d2e026e6a678b1197951e62137e | [
"MIT"
] | null | null | null | # Contains the domain models of the application
from flask_login import UserMixin
from . import db, login_manager
class Genre(db.Model):
__tablename__ = 'genre'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(250), unique=True)
movies = db.relationship('Movie', back_populate... | 25.363636 | 71 | 0.632258 | 182 | 1,395 | 4.703297 | 0.318681 | 0.093458 | 0.116822 | 0.11215 | 0.30257 | 0.258178 | 0.204439 | 0.204439 | 0 | 0 | 0 | 0.014019 | 0.232975 | 1,395 | 54 | 72 | 25.833333 | 0.785981 | 0.032258 | 0 | 0.289474 | 0 | 0 | 0.062315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.052632 | 0.078947 | 0.684211 | 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 |
a41de5ab5171eca7eae4d7454bfa62824f7a06f5 | 15,529 | py | Python | eth_wallet/ui/gui.py | jgotanegra/wallet | cc746de4123eefef5c3148120593151536e381ef | [
"MIT"
] | 15 | 2019-05-01T06:21:41.000Z | 2021-12-31T10:18:51.000Z | eth_wallet/ui/gui.py | jackyjqcheung/eth-wallet | cc746de4123eefef5c3148120593151536e381ef | [
"MIT"
] | 17 | 2019-04-17T16:24:59.000Z | 2021-11-06T04:14:57.000Z | eth_wallet/ui/gui.py | jackyjqcheung/eth-wallet | cc746de4123eefef5c3148120593151536e381ef | [
"MIT"
] | 8 | 2019-05-03T14:56:47.000Z | 2022-01-14T14:08:25.000Z | import threading
from tkinter import (
Tk,
Frame,
Label,
Button,
Entry,
Message,
CENTER,
Menu,
Menubutton,
StringVar,
RAISED,
messagebox,
)
from eth_wallet.configuration import (
Configuration,
)
from eth_wallet.api import (
WalletAPI,
)
from eth_wallet.ui.page im... | 34.662946 | 98 | 0.458883 | 1,374 | 15,529 | 4.992722 | 0.112082 | 0.026531 | 0.025656 | 0.034985 | 0.598542 | 0.579009 | 0.521866 | 0.486152 | 0.472886 | 0.468513 | 0 | 0.016355 | 0.448773 | 15,529 | 447 | 99 | 34.740492 | 0.785047 | 0.037349 | 0 | 0.535294 | 0 | 0 | 0.022853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055882 | false | 0.055882 | 0.014706 | 0 | 0.088235 | 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 |
a43510194fb5142b08027a9f1668afacfc38a044 | 873 | py | Python | src/task_preliminaries.py | yradeva93/random-grouping | 4955f8734bdd95f0e9fffaed6336c851bea156a0 | [
"MIT"
] | null | null | null | src/task_preliminaries.py | yradeva93/random-grouping | 4955f8734bdd95f0e9fffaed6336c851bea156a0 | [
"MIT"
] | null | null | null | src/task_preliminaries.py | yradeva93/random-grouping | 4955f8734bdd95f0e9fffaed6336c851bea156a0 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pytask
from src.config import SRC
from src.read_and_write import read_config
from src.read_and_write import read_names
def create_matchings_history(names):
"""Create first instance of matchings history using names data file.
Returns:
matchings_history (p... | 24.942857 | 72 | 0.706758 | 117 | 873 | 5.051282 | 0.410256 | 0.270728 | 0.037225 | 0.047377 | 0.098139 | 0.098139 | 0.098139 | 0 | 0 | 0 | 0 | 0.004304 | 0.201604 | 873 | 34 | 73 | 25.676471 | 0.843615 | 0.143184 | 0 | 0 | 0 | 0 | 0.067308 | 0.059066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a43e71f21c48c0732c2979ae1cdef58103c6920f | 3,898 | py | Python | lambda/inventory-subs.py | dkeppel626/antiope-azure | 2c4ecccdb4d20c648fd750b6df7fbd6e44afb1bc | [
"Apache-2.0"
] | null | null | null | lambda/inventory-subs.py | dkeppel626/antiope-azure | 2c4ecccdb4d20c648fd750b6df7fbd6e44afb1bc | [
"Apache-2.0"
] | null | null | null | lambda/inventory-subs.py | dkeppel626/antiope-azure | 2c4ecccdb4d20c648fd750b6df7fbd6e44afb1bc | [
"Apache-2.0"
] | 4 | 2020-08-25T18:41:23.000Z | 2021-08-14T17:43:48.000Z | import json
import os
import time
import logging
import boto3
from botocore.exceptions import ClientError
from common import *
from subscription import *
from azure.mgmt.subscription import SubscriptionClient
# Setup Logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
logging.getLogger('botocore').setL... | 38.98 | 185 | 0.655208 | 403 | 3,898 | 6.181141 | 0.389578 | 0.022481 | 0.022481 | 0.021678 | 0.081895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001033 | 0.254746 | 3,898 | 99 | 186 | 39.373737 | 0.856454 | 0.124423 | 0 | 0 | 0 | 0.014925 | 0.212585 | 0.030873 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.029851 | false | 0 | 0.134328 | 0 | 0.179104 | 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 |
a44234fc46dd940bff4c26faf3da5eea2137bf9b | 1,155 | py | Python | app/core/tests/test_models.py | RISHABHKUSHWAH/recipe-app-api | 739befcc850e957f5ecde3dca9196f54f8885dde | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | RISHABHKUSHWAH/recipe-app-api | 739befcc850e957f5ecde3dca9196f54f8885dde | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | RISHABHKUSHWAH/recipe-app-api | 739befcc850e957f5ecde3dca9196f54f8885dde | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email_successful(self):
""" Test create a new user with an email is successful"""
email ='rishabhkushwah208@gmail.com'
password ='kushwah20801'
use... | 28.170732 | 69 | 0.709957 | 143 | 1,155 | 5.503497 | 0.307692 | 0.044473 | 0.076239 | 0.096569 | 0.243964 | 0.170267 | 0.096569 | 0.096569 | 0 | 0 | 0 | 0.031813 | 0.18355 | 1,155 | 40 | 70 | 28.875 | 0.802757 | 0.075325 | 0 | 0 | 0 | 0 | 0.12381 | 0.075238 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 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 |
a4474c9d9a91fc5ee6ad585e69583e1f8d1ffdf8 | 2,116 | py | Python | MHD/FEniCS/Orignal/Original.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/Orignal/Original.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/Orignal/Original.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z |
from dolfin import *
from numpy import *
import scipy as Sci
import scipy.linalg
from math import pi,sin,cos,sqrt
import scipy.sparse as sps
import scipy.io as save
import scipy
import pdb
parameters['linear_algebra_backend'] = 'uBLAS'
j = 1
n = 2
n =2
# print n
mesh = UnitSquareMesh(n,n)
# mesh = Mesh('untitled.xml... | 25.493976 | 113 | 0.657372 | 381 | 2,116 | 3.585302 | 0.309711 | 0.026354 | 0.035139 | 0.030747 | 0.247438 | 0.108346 | 0.108346 | 0.108346 | 0.108346 | 0.096633 | 0 | 0.045503 | 0.117202 | 2,116 | 82 | 114 | 25.804878 | 0.68576 | 0.271267 | 0 | 0.16 | 0 | 0.08 | 0.220831 | 0.152274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.18 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a44752508e5987daabff3d3e679ff820b8fb4ff1 | 1,010 | py | Python | scripts/map_interface.py | COHRINT/cops_and_robots | 1df99caa1e38bde1b5ce2d04389bc232a68938d6 | [
"Apache-2.0"
] | 3 | 2016-01-19T17:54:51.000Z | 2019-10-21T12:09:03.000Z | scripts/map_interface.py | COHRINT/cops_and_robots | 1df99caa1e38bde1b5ce2d04389bc232a68938d6 | [
"Apache-2.0"
] | null | null | null | scripts/map_interface.py | COHRINT/cops_and_robots | 1df99caa1e38bde1b5ce2d04389bc232a68938d6 | [
"Apache-2.0"
] | 5 | 2015-02-19T02:53:24.000Z | 2019-03-05T20:29:12.000Z | import rospy
import sys, time, logging, getch
from cops_and_robots.Map import Map
from std_msgs.msg import String
#<>NOTE: THIS WILL NOT WORK IN PYTHON AND HAS TO BE WRITTEN IN C++
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
def callback(data)... | 24.047619 | 80 | 0.683168 | 147 | 1,010 | 4.503401 | 0.646259 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006143 | 0.194059 | 1,010 | 42 | 81 | 24.047619 | 0.807125 | 0.191089 | 0 | 0 | 0 | 0 | 0.091245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
a44a2cb694a39b2bbae7d165505c809bd615ada2 | 3,501 | py | Python | mepo.d/command/clone/clone.py | GEOS-ESM/mepo | 41c20c286e7a9a11995f48fb5f3036e469d935e6 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | null | null | null | mepo.d/command/clone/clone.py | GEOS-ESM/mepo | 41c20c286e7a9a11995f48fb5f3036e469d935e6 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 61 | 2020-01-08T20:01:16.000Z | 2022-03-24T19:44:38.000Z | mepo.d/command/clone/clone.py | GEOS-ESM/mepo | 41c20c286e7a9a11995f48fb5f3036e469d935e6 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-02-28T14:29:12.000Z | 2020-07-08T15:56:55.000Z | from state.state import MepoState, StateDoesNotExistError
from repository.git import GitRepository
from command.init import init as mepo_init
from utilities import shellcmd, colors
from urllib.parse import urlparse
import os
import pathlib
import shutil
import shlex
def run(args):
# This protects aga... | 35.01 | 85 | 0.616967 | 459 | 3,501 | 4.603486 | 0.30719 | 0.017037 | 0.026029 | 0.024136 | 0.114529 | 0.093706 | 0.093706 | 0.064363 | 0.064363 | 0.064363 | 0 | 0.000403 | 0.291345 | 3,501 | 99 | 86 | 35.363636 | 0.85127 | 0.127678 | 0 | 0.142857 | 0 | 0 | 0.06866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0.051948 | 0.116883 | 0 | 0.155844 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a44a423139f7734a4eb9ecbcd1b5b1f8c19e7ddf | 564 | py | Python | 07_commspeople/mail.py | Roboramv2/Random-projects | 7b80cc7427496d3e9a391ad68d26f6f504089da2 | [
"MIT"
] | 4 | 2021-06-21T03:40:09.000Z | 2021-07-05T03:23:40.000Z | 07_commspeople/mail.py | Roboramv2/Random-projects | 7b80cc7427496d3e9a391ad68d26f6f504089da2 | [
"MIT"
] | null | null | null | 07_commspeople/mail.py | Roboramv2/Random-projects | 7b80cc7427496d3e9a391ad68d26f6f504089da2 | [
"MIT"
] | null | null | null | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
mails=['example1@gmail.com', 'example2@outlook.com']
outacc = "__outlook email id__"
outpwd = "__outlook password__"
def sendit(txt, sub):
s = smtplib.SMTP(host='smtp-mail.outlook.com', port=587)
s.starttls()
... | 26.857143 | 60 | 0.652482 | 74 | 564 | 4.851351 | 0.554054 | 0.050139 | 0.072423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.214539 | 564 | 20 | 61 | 28.2 | 0.799097 | 0 | 0 | 0 | 0 | 0 | 0.207447 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.222222 | 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 |
a44e380834a5dfdfb2b5c4e05dca908375167ffe | 1,801 | py | Python | DFS/15.Permutations/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | DFS/15.Permutations/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | DFS/15.Permutations/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param: nums: A list of integers.
@return: A list of permutations.
"""
def permute(self, nums):
# write your code here
if not nums or len(nums) == 0:
return [[]]
nums.sort()
permutations = []
self._find_permutations(nums, permu... | 25.728571 | 72 | 0.540255 | 182 | 1,801 | 5.291209 | 0.252747 | 0.036345 | 0.029076 | 0.029076 | 0.424714 | 0.287643 | 0.21703 | 0.21703 | 0.21703 | 0.21703 | 0 | 0.006108 | 0.363687 | 1,801 | 69 | 73 | 26.101449 | 0.834206 | 0.143809 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 1 | 0.131579 | false | 0 | 0 | 0 | 0.342105 | 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 |
a44eef784294fa4dd44eb02e775237fbffd71180 | 1,676 | py | Python | code/generateForSimInputs/generateHumanGaitCycles.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | 2 | 2020-12-27T03:46:03.000Z | 2021-05-01T10:29:45.000Z | code/generateForSimInputs/generateHumanGaitCycles.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | null | null | null | code/generateForSimInputs/generateHumanGaitCycles.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../code')
from tools import load_data_tools as ldt
from tools import emg_tools as et
from AfferentInput import AfferentInput
import matplotlib.pyplot as plt
import numpy as np
import pickle
""" get gait cycles """
kinFile = "./generateForSimInputs/data/human/HuMoD-database/generatedFiles/S... | 37.244444 | 118 | 0.754773 | 240 | 1,676 | 5.1625 | 0.458333 | 0.079096 | 0.024213 | 0.058111 | 0.287328 | 0.243745 | 0.243745 | 0.243745 | 0.243745 | 0.161421 | 0 | 0.035784 | 0.082936 | 1,676 | 44 | 119 | 38.090909 | 0.770332 | 0.114558 | 0 | 0.212121 | 0 | 0.030303 | 0.249657 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.212121 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a455482b519ebf7d5a5c43050e5bd67e6d31bf48 | 759 | py | Python | mopidy_seeedrelays/__init__.py | rmichalak/mopidy-seeedrelays | 156dba89b19a8bd95af7e6fdb9d39ad9c91272b1 | [
"Apache-2.0"
] | null | null | null | mopidy_seeedrelays/__init__.py | rmichalak/mopidy-seeedrelays | 156dba89b19a8bd95af7e6fdb9d39ad9c91272b1 | [
"Apache-2.0"
] | null | null | null | mopidy_seeedrelays/__init__.py | rmichalak/mopidy-seeedrelays | 156dba89b19a8bd95af7e6fdb9d39ad9c91272b1 | [
"Apache-2.0"
] | null | null | null | import logging
import pathlib
import pkg_resources
from mopidy import config, ext
__version__ = pkg_resources.get_distribution("Mopidy-SeeedRelays").version
class Extension(ext.Extension):
dist_name = "Mopidy-SeeedRelays"
ext_name = "seeedrelays"
version = __version__
def get_default_config(self)... | 24.483871 | 74 | 0.693017 | 83 | 759 | 6.060241 | 0.457831 | 0.047714 | 0.059642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001653 | 0.202899 | 759 | 30 | 75 | 25.3 | 0.829752 | 0 | 0 | 0 | 0 | 0 | 0.102902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0.05 | 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 |
a457119ed41ff23e2d06d53d3b5c3c1e432eea7e | 421 | py | Python | travis_tests.py | JulianSobott/networking | 8ef64323ecb45b12ad21df372b28dfb131cec2f6 | [
"Apache-2.0"
] | null | null | null | travis_tests.py | JulianSobott/networking | 8ef64323ecb45b12ad21df372b28dfb131cec2f6 | [
"Apache-2.0"
] | 4 | 2019-06-06T19:47:03.000Z | 2020-02-18T17:48:42.000Z | travis_tests.py | JulianSobott/pynetworking | 8ef64323ecb45b12ad21df372b28dfb131cec2f6 | [
"Apache-2.0"
] | null | null | null | import unittest
if __name__ == '__main__':
from pynetworking.Logging import logger
import sys
logger.setLevel(30)
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('pynetworking.tests', pattern='test_*.py')
# test_suite._tests.pop(1) # Exclude communication tests, becaus... | 32.384615 | 88 | 0.729216 | 52 | 421 | 5.615385 | 0.653846 | 0.092466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.168646 | 421 | 12 | 89 | 35.083333 | 0.825714 | 0.192399 | 0 | 0 | 0 | 0 | 0.103858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a4593763071dd8759855cd9548469ab94309d4a3 | 5,300 | py | Python | test/test_pipeline.py | esalazarv/biggu-pipeline | b61c62409a9e6e8163038d1ffb0395ce1f87ecba | [
"MIT"
] | null | null | null | test/test_pipeline.py | esalazarv/biggu-pipeline | b61c62409a9e6e8163038d1ffb0395ce1f87ecba | [
"MIT"
] | null | null | null | test/test_pipeline.py | esalazarv/biggu-pipeline | b61c62409a9e6e8163038d1ffb0395ce1f87ecba | [
"MIT"
] | null | null | null | import unittest
from biggu_container import Container
from biggu_pipeline import Pipeline
class PipelineWithCustomException(Pipeline):
@staticmethod
def handle_exception(exception):
return "An error has occurred"
class Foo:
pass
class Bar:
def handle(self, name, next):
return "Hello "... | 34.193548 | 98 | 0.633774 | 564 | 5,300 | 5.81383 | 0.147163 | 0.086917 | 0.076853 | 0.080512 | 0.664227 | 0.620616 | 0.609637 | 0.584324 | 0.494358 | 0.47606 | 0 | 0 | 0.247547 | 5,300 | 154 | 99 | 34.415584 | 0.822217 | 0 | 0 | 0.452381 | 0 | 0 | 0.082468 | 0 | 0 | 0 | 0 | 0 | 0.246032 | 1 | 0.18254 | false | 0.063492 | 0.02381 | 0.055556 | 0.325397 | 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 |
a4604dd97a62cdd689efd3c762a79b8a4f261912 | 763 | py | Python | tests/test_channel.py | Doerge/python-slackclient | 66a85de57b11c5c726734dd51b3be57427f544e1 | [
"MIT"
] | null | null | null | tests/test_channel.py | Doerge/python-slackclient | 66a85de57b11c5c726734dd51b3be57427f544e1 | [
"MIT"
] | null | null | null | tests/test_channel.py | Doerge/python-slackclient | 66a85de57b11c5c726734dd51b3be57427f544e1 | [
"MIT"
] | 1 | 2021-03-26T23:50:31.000Z | 2021-03-26T23:50:31.000Z | from slackclient._channel import Channel
import pytest
def test_channel(channel):
assert type(channel) == Channel
def test_channel_eq(channel):
channel = Channel(
'test-server',
'test-channel',
'C12345678',
)
assert channel == 'test-channel'
assert channel == '#test-channe... | 23.84375 | 51 | 0.653997 | 86 | 763 | 5.639535 | 0.267442 | 0.181443 | 0.115464 | 0.179381 | 0.336082 | 0.336082 | 0.210309 | 0.210309 | 0 | 0 | 0 | 0.054054 | 0.224115 | 763 | 31 | 52 | 24.612903 | 0.765203 | 0 | 0 | 0.307692 | 0 | 0 | 0.150721 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
a460e1dfa6c011bfab82eb9a8d9a758c7919c5bd | 1,049 | py | Python | apps/database.py | 0x90E/PyWDI | d3742927478f57a4ef6ec7bf031f7d21ef68e678 | [
"MIT"
] | null | null | null | apps/database.py | 0x90E/PyWDI | d3742927478f57a4ef6ec7bf031f7d21ef68e678 | [
"MIT"
] | null | null | null | apps/database.py | 0x90E/PyWDI | d3742927478f57a4ef6ec7bf031f7d21ef68e678 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from config import config
Base = declarative_base()
class DatabaseManager:
def __init__(self):
self.db_session = None
def init_db(self):
db_en... | 29.971429 | 115 | 0.709247 | 136 | 1,049 | 5.147059 | 0.323529 | 0.068571 | 0.074286 | 0.045714 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201144 | 1,049 | 34 | 116 | 30.852941 | 0.835322 | 0 | 0 | 0 | 0 | 0 | 0.018112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0.208333 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a468a8b6e34ed790b3ce0b746bd433ca486e1bd9 | 536 | py | Python | backend/core/migrations/0009_auto_20200518_1443.py | Critter-Inc/critter | 4399f240af79f97e89ac95c3e39535154faed37d | [
"MIT"
] | null | null | null | backend/core/migrations/0009_auto_20200518_1443.py | Critter-Inc/critter | 4399f240af79f97e89ac95c3e39535154faed37d | [
"MIT"
] | 5 | 2021-03-10T20:00:42.000Z | 2022-02-27T05:35:23.000Z | backend/core/migrations/0009_auto_20200518_1443.py | Critter-Inc/critter | 4399f240af79f97e89ac95c3e39535154faed37d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-18 14:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('core', '0008_auto_20200518_1442'),
]
operations = [
migr... | 25.52381 | 121 | 0.63806 | 63 | 536 | 5.301587 | 0.730159 | 0.071856 | 0.083832 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 0.235075 | 536 | 20 | 122 | 26.8 | 0.729268 | 0.083955 | 0 | 0 | 1 | 0 | 0.163599 | 0.106339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
a46b3d879844d9ffcfd72b5b18f70207e6b4a14e | 7,204 | py | Python | quotesSpreadsheetCreator/audFileDecode.py | antoniou79/BladeRunnerSubtitles | 41cb4aaa22cba1b69f1a7dbc7d7b86dd789052e7 | [
"MIT"
] | 1 | 2018-06-19T12:32:46.000Z | 2018-06-19T12:32:46.000Z | quotesSpreadsheetCreator/audFileDecode.py | antoniou79/BladeRunnerSubtitles | 41cb4aaa22cba1b69f1a7dbc7d7b86dd789052e7 | [
"MIT"
] | null | null | null | quotesSpreadsheetCreator/audFileDecode.py | antoniou79/BladeRunnerSubtitles | 41cb4aaa22cba1b69f1a7dbc7d7b86dd789052e7 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#
import ctypes
from struct import *
my_module_version = "0.50"
my_module_name = "audFileDecode"
aud_ima_index_adjust_table = [-1, -1, -1, -1, 2, 4, 6, 8]
# aud_ima_step_table has 89 entries
aud_ima_step_table = [
7, 8, 9, 10, 11, 12, 13, 14, 16,
17, 19, ... | 34.304762 | 163 | 0.658662 | 995 | 7,204 | 4.603015 | 0.249246 | 0.022926 | 0.021616 | 0.065502 | 0.384279 | 0.34345 | 0.328821 | 0.328821 | 0.307424 | 0.234935 | 0 | 0.080884 | 0.201971 | 7,204 | 210 | 164 | 34.304762 | 0.715777 | 0.316213 | 0 | 0.242857 | 0 | 0 | 0.01028 | 0 | 0 | 0 | 0.00699 | 0 | 0 | 0 | null | null | 0.007143 | 0.014286 | null | null | 0.007143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a478270c7b8db02341ebf2b97bc4d6dc8730a15f | 6,828 | py | Python | config/settings/base.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | config/settings/base.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | config/settings/base.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | import environ
# Build paths inside the project like this: root(...)
from django.core.urlresolvers import reverse_lazy
env = environ.Env()
root = environ.Path(__file__) - 3
apps_root = root.path('iwg_blog')
BASE_DIR = root()
environ.Env.read_env()
# Base configurations
# ----------------------------------------... | 26.776471 | 111 | 0.596368 | 592 | 6,828 | 6.643581 | 0.371622 | 0.048055 | 0.034325 | 0.057208 | 0.077549 | 0.061785 | 0.022121 | 0 | 0 | 0 | 0 | 0.002751 | 0.148213 | 6,828 | 254 | 112 | 26.88189 | 0.673487 | 0.243556 | 0 | 0.019231 | 0 | 0 | 0.54347 | 0.434893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032051 | 0.012821 | 0 | 0.012821 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a47c334a555b693920253650bff0bc339bbe9c5d | 1,942 | py | Python | my_site/blog/migrations/0001_initial.py | goulartdev/udemy-django-course | f39ab36aacdf47d19f8c286c317cc54d8358dadc | [
"MIT"
] | null | null | null | my_site/blog/migrations/0001_initial.py | goulartdev/udemy-django-course | f39ab36aacdf47d19f8c286c317cc54d8358dadc | [
"MIT"
] | null | null | null | my_site/blog/migrations/0001_initial.py | goulartdev/udemy-django-course | f39ab36aacdf47d19f8c286c317cc54d8358dadc | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-05 19:03
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',... | 38.84 | 132 | 0.572606 | 193 | 1,942 | 5.621762 | 0.409326 | 0.066359 | 0.082949 | 0.110599 | 0.357604 | 0.226728 | 0.226728 | 0.226728 | 0.226728 | 0.226728 | 0 | 0.028118 | 0.285788 | 1,942 | 49 | 133 | 39.632653 | 0.754146 | 0.023172 | 0 | 0.357143 | 1 | 0 | 0.081794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a47dcee5032ab075d6193e94f9980e3ad05e9976 | 808 | py | Python | tests/data/data_generator.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/data/data_generator.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/data/data_generator.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | """ This program generates some of the data used by tests other data samples could have been
obtained simply by running the program.
The data lives in the worldengine-data repo: https://github.com/Mindwerks/worldengine-data
Note that we want to have common data in tests, instead of generating them on the fly
because ... | 35.130435 | 92 | 0.766089 | 129 | 808 | 4.55814 | 0.565891 | 0.061224 | 0.081633 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.148515 | 808 | 22 | 93 | 36.727273 | 0.837209 | 0.488861 | 0 | 0 | 1 | 0 | 0.091358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
a4802afac574148b5859220281cf9ffcab44e0f3 | 357 | py | Python | En Route Salute/solution.py | sark-2110/Foobar-Google | 51620fd3294c4fa24a4ba444534883a9eff5a7f9 | [
"MIT"
] | 1 | 2021-05-15T19:30:07.000Z | 2021-05-15T19:30:07.000Z | En Route Salute/solution.py | sark-2110/Foobar-Google | 51620fd3294c4fa24a4ba444534883a9eff5a7f9 | [
"MIT"
] | null | null | null | En Route Salute/solution.py | sark-2110/Foobar-Google | 51620fd3294c4fa24a4ba444534883a9eff5a7f9 | [
"MIT"
] | 3 | 2021-09-20T14:37:39.000Z | 2022-02-09T21:47:07.000Z | #python3 code
def count(i,s):
ans=0
for j in range(i,len(s)):
if(s[j]=="<"):
ans+=1
return ans
def higher(s):
res=0
for i in range(len(s)):
if(s[i]==">"):
b=count(i,s)
res=res+(b*2)
return res
def solution(s):
# Your code here
... | 16.227273 | 29 | 0.462185 | 57 | 357 | 2.894737 | 0.421053 | 0.072727 | 0.084848 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.372549 | 357 | 21 | 30 | 17 | 0.714286 | 0.07563 | 0 | 0 | 0 | 0 | 0.006098 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.1875 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a485e51be320a1c41ace27db12d2c0b78a42c680 | 2,568 | py | Python | 7/make_fig_7a.py | mohitganguly/test_amanda | a2f19934ce8e7206fa0ddbd4960dc4cfa809518e | [
"MIT"
] | 1 | 2020-03-24T17:02:36.000Z | 2020-03-24T17:02:36.000Z | 7/make_fig_7a.py | mohitganguly/test_amanda | a2f19934ce8e7206fa0ddbd4960dc4cfa809518e | [
"MIT"
] | null | null | null | 7/make_fig_7a.py | mohitganguly/test_amanda | a2f19934ce8e7206fa0ddbd4960dc4cfa809518e | [
"MIT"
] | 1 | 2022-01-03T08:41:52.000Z | 2022-01-03T08:41:52.000Z | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
import itertools
nseg = 999
l = 20
blocks = np.genfromtxt('block_HH.txt', delimiter = ' ')
x = range(32,40)
dia = blocks[0:,0]
print len(dia)
block1 = blocks[0,1:]
block1 = block1*l/nseg
block2 = blocks[1,1:]
block1 = block2*l/nseg
b... | 29.860465 | 93 | 0.626558 | 501 | 2,568 | 3.133733 | 0.239521 | 0.073248 | 0.034395 | 0.053503 | 0.363694 | 0.281529 | 0.281529 | 0.126115 | 0.101911 | 0.06242 | 0 | 0.086625 | 0.132399 | 2,568 | 85 | 94 | 30.211765 | 0.618043 | 0.333723 | 0 | 0.038462 | 0 | 0 | 0.031896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4863c3e8d16dad6c9bb7aafdd0d568e61fb79a7 | 388 | py | Python | triplinker/journeys/migrations/0007_auto_20200907_1616.py | GonnaFlyMethod/triplinker | f4189e499ad48fd9102dd2211a8884078136eae9 | [
"MIT"
] | null | null | null | triplinker/journeys/migrations/0007_auto_20200907_1616.py | GonnaFlyMethod/triplinker | f4189e499ad48fd9102dd2211a8884078136eae9 | [
"MIT"
] | null | null | null | triplinker/journeys/migrations/0007_auto_20200907_1616.py | GonnaFlyMethod/triplinker | f4189e499ad48fd9102dd2211a8884078136eae9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-09-07 16:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('journeys', '0006_auto_20200907_1607'),
]
operations = [
migrations.RenameField(
model_name='activity',
old_name='description... | 20.421053 | 48 | 0.610825 | 41 | 388 | 5.585366 | 0.780488 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111511 | 0.283505 | 388 | 18 | 49 | 21.555556 | 0.71223 | 0.115979 | 0 | 0 | 1 | 0 | 0.214076 | 0.134897 | 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 |
a488dc1030b3dc25a1a80edd71496da9acd520e7 | 603 | py | Python | ground.py | michalovsky/flappy-bird | a28e86bbeb57635798b51fca58c2bd8c5cc9730b | [
"MIT"
] | 1 | 2021-06-14T09:36:09.000Z | 2021-06-14T09:36:09.000Z | ground.py | michalovsky/flappy-bird | a28e86bbeb57635798b51fca58c2bd8c5cc9730b | [
"MIT"
] | null | null | null | ground.py | michalovsky/flappy-bird | a28e86bbeb57635798b51fca58c2bd8c5cc9730b | [
"MIT"
] | null | null | null | from images import GROUND_IMAGE
class Ground:
VELOCITY = 5
WIDTH = GROUND_IMAGE.get_width()
IMAGE = GROUND_IMAGE
def __init__(self, y):
self.y = y
self.x1 = 0
self.x2 = self.WIDTH
def move(self):
self.x1 -= self.VELOCITY
self.x2 -= self.VELOCITY
i... | 22.333333 | 50 | 0.558872 | 86 | 603 | 3.825581 | 0.255814 | 0.109422 | 0.182371 | 0.136778 | 0.139818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039024 | 0.320066 | 603 | 26 | 51 | 23.192308 | 0.763415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a48cab57e933e3836e7ed795f6be0328aa3d87f5 | 25,944 | py | Python | scheduler.py | bsautrey/python-mapreduce | a3f487b431773b3630eea0e389d1d5ace34a7ef5 | [
"MIT"
] | 7 | 2017-05-17T07:26:38.000Z | 2021-06-18T18:18:26.000Z | scheduler.py | bsautrey/python-mapreduce | a3f487b431773b3630eea0e389d1d5ace34a7ef5 | [
"MIT"
] | null | null | null | scheduler.py | bsautrey/python-mapreduce | a3f487b431773b3630eea0e389d1d5ace34a7ef5 | [
"MIT"
] | 1 | 2021-06-18T18:18:37.000Z | 2021-06-18T18:18:37.000Z | # scheduler.py is used to submit, schedule, run jobs on the cluster.
import os,sys,fcntl,subprocess,random,traceback,errno
from time import sleep,time,ctime
import ujson
sys.path.append('/home/ben/code')
sys.path.append('/home/ben/file_transfer')
from manage_cluster import ManageCluster
from file_transfer import Fil... | 36.438202 | 103 | 0.512488 | 2,674 | 25,944 | 4.667539 | 0.084144 | 0.056646 | 0.021633 | 0.018268 | 0.604679 | 0.537136 | 0.487381 | 0.445237 | 0.416072 | 0.398606 | 0 | 0.003633 | 0.405913 | 25,944 | 712 | 104 | 36.438202 | 0.806138 | 0.019542 | 0 | 0.540598 | 0 | 0 | 0.120658 | 0.012577 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012821 | null | null | 0.09188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a48ddbfd57f4568c1f65e7ebc0518dccbe096322 | 843 | py | Python | 15. 3Sum/main.py | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | 2 | 2019-10-05T09:48:20.000Z | 2019-10-05T15:40:01.000Z | 15. 3Sum/main.py | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | null | null | null | 15. 3Sum/main.py | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | 3 | 2020-09-27T05:48:30.000Z | 2021-08-13T10:07:08.000Z | class Solution:
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
res=[]
for k in range(len(nums)-2):
if k>0 and nums[k]==nums[k-1]:
continue
l=k+1
r=len(nums)-1
... | 27.193548 | 57 | 0.309609 | 104 | 843 | 2.509615 | 0.298077 | 0.076628 | 0.103448 | 0.061303 | 0.222222 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.561091 | 843 | 30 | 58 | 28.1 | 0.664865 | 0.053381 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4945a92a6ea4fc3471709318c267e06a6500e97 | 2,208 | py | Python | netspot/nm_helper.py | MaxIV-KitsControls/netspot | 42f505d004bcadcfb32b6ca0511572d38641c23a | [
"MIT"
] | null | null | null | netspot/nm_helper.py | MaxIV-KitsControls/netspot | 42f505d004bcadcfb32b6ca0511572d38641c23a | [
"MIT"
] | null | null | null | netspot/nm_helper.py | MaxIV-KitsControls/netspot | 42f505d004bcadcfb32b6ca0511572d38641c23a | [
"MIT"
] | null | null | null | #!/usr/bin/python -tt
"""NetMagis DB helper."""
import psycopg2
import netspot_settings
class NetMagisDB(object):
"""NetMagis DB helper class."""
def __init__(self):
"""Init."""
self.database = netspot_settings.NM_DATABASE
self.username = netspot_settings.NM_USERNAME
self.password = netspot_set... | 21.861386 | 77 | 0.585598 | 276 | 2,208 | 4.528986 | 0.333333 | 0.06 | 0.028 | 0.0336 | 0.1056 | 0.0768 | 0.0512 | 0.0512 | 0.0512 | 0.0512 | 0 | 0.004481 | 0.292572 | 2,208 | 100 | 78 | 22.08 | 0.795775 | 0.202446 | 0 | 0.043478 | 0 | 0 | 0.283808 | 0.049727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0.065217 | 0.043478 | 0 | 0.304348 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.