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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b42110e69fbba6f3cc1175f605afe65f09844634 | 5,211 | py | Python | validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 136 | 2015-05-07T05:47:43.000Z | 2022-02-16T03:07:40.000Z | validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 184 | 2015-05-03T09:27:54.000Z | 2021-12-20T04:22:48.000Z | validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 70 | 2015-03-18T07:35:22.000Z | 2021-11-01T07:07:29.000Z | """Simple water flow example using ANUGA
Water driven up a linear slope and time varying boundary,
similar to a beach environment
"""
#------------------------------------------------------------------------------
# Import necessary modules
#----------------------------------------------------------------------------... | 36.440559 | 96 | 0.459797 | 538 | 5,211 | 4.351301 | 0.431227 | 0.026912 | 0.011961 | 0.023921 | 0.047843 | 0.018795 | 0 | 0 | 0 | 0 | 0 | 0.047788 | 0.136634 | 5,211 | 142 | 97 | 36.697183 | 0.472549 | 0.485895 | 0 | 0.03125 | 0 | 0 | 0.051048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.203125 | 0 | 0.234375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b426f99a8bac6c3327cab3da97ce79ef51269da3 | 1,068 | py | Python | commands/calc.py | periodicaidan/dalton-cli | 6a83e1a2675e335bf807c43c4201d78e5b389837 | [
"MIT"
] | 2 | 2018-12-21T19:09:49.000Z | 2018-12-22T10:41:36.000Z | commands/calc.py | periodicaidan/dalton-cli | 6a83e1a2675e335bf807c43c4201d78e5b389837 | [
"MIT"
] | null | null | null | commands/calc.py | periodicaidan/dalton-cli | 6a83e1a2675e335bf807c43c4201d78e5b389837 | [
"MIT"
] | null | null | null | """
File: commands/calc.py
Purpose: Performs calculations in response to user input, and outputs the result
"""
from sys import argv
import click
from calculator import *
from models import History
from models.Config import Config
from help_menus import calc_help
@click.group("calc", invoke_without_command=True)
@... | 31.411765 | 85 | 0.652622 | 146 | 1,068 | 4.691781 | 0.5 | 0.070073 | 0.026277 | 0.049635 | 0.075912 | 0.075912 | 0 | 0 | 0 | 0 | 0 | 0.002413 | 0.223783 | 1,068 | 33 | 86 | 32.363636 | 0.823884 | 0.117978 | 0 | 0.166667 | 0 | 0 | 0.167024 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0 | 0.291667 | 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 |
b4372d11f9380b54abe868161855c4d8eb68fe8d | 3,301 | py | Python | peter_lists/blog/views.py | pvize1/peter_lists | 77e9f30cfc45f500e059b7b163db541335180332 | [
"MIT"
] | null | null | null | peter_lists/blog/views.py | pvize1/peter_lists | 77e9f30cfc45f500e059b7b163db541335180332 | [
"MIT"
] | 8 | 2021-05-12T05:53:42.000Z | 2022-03-31T04:08:18.000Z | peter_lists/blog/views.py | pvize1/peter_lists | 77e9f30cfc45f500e059b7b163db541335180332 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.views.generic import (
ListView,
DetailView,
CreateView,
UpdateView,
DeleteView,
)
from django.shortcuts import render
from django.db.models import Count
from django.d... | 29.212389 | 94 | 0.684035 | 409 | 3,301 | 5.359413 | 0.278729 | 0.040146 | 0.060219 | 0.04562 | 0.366788 | 0.342153 | 0.238139 | 0.238139 | 0.238139 | 0.192518 | 0 | 0.003079 | 0.212966 | 3,301 | 112 | 95 | 29.473214 | 0.840647 | 0.060588 | 0 | 0.270588 | 0 | 0 | 0.0979 | 0.006785 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.058824 | false | 0 | 0.105882 | 0.023529 | 0.588235 | 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 |
b4378b3e91302a7b53287f43ef0ed313d4ff8c2f | 1,992 | py | Python | tests/test_pythonpath.py | browniebroke/pytest-srcpaths | c0bf4a9b521c8f7af029f9923b344936cf425bf1 | [
"MIT"
] | 26 | 2021-02-18T20:49:41.000Z | 2022-02-08T21:06:20.000Z | tests/test_pythonpath.py | browniebroke/pytest-srcpaths | c0bf4a9b521c8f7af029f9923b344936cf425bf1 | [
"MIT"
] | null | null | null | tests/test_pythonpath.py | browniebroke/pytest-srcpaths | c0bf4a9b521c8f7af029f9923b344936cf425bf1 | [
"MIT"
] | 2 | 2021-04-04T01:45:37.000Z | 2022-02-07T11:28:51.000Z | import sys
from typing import Generator
from typing import List
from typing import Optional
import pytest
from _pytest.pytester import Pytester
def test_one_dir_pythonpath(pytester: Pytester, file_structure) -> None:
pytester.makefile(".ini", pytest="[pytest]\npythonpath=sub\n")
result = pytester.runpytest("... | 30.181818 | 81 | 0.676205 | 246 | 1,992 | 5.321138 | 0.325203 | 0.032086 | 0.07945 | 0.057296 | 0.36822 | 0.36822 | 0.336134 | 0.255157 | 0.255157 | 0.18793 | 0 | 0.004456 | 0.211345 | 1,992 | 65 | 82 | 30.646154 | 0.828771 | 0.026606 | 0 | 0.121951 | 0 | 0 | 0.114171 | 0.052209 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0.121951 | false | 0.097561 | 0.146341 | 0 | 0.292683 | 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 |
b439967634fbd815c14f34a574722d653f74e466 | 367 | py | Python | distributed_social_network/posts/migrations/0003_auto_20190308_2055.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | null | null | null | distributed_social_network/posts/migrations/0003_auto_20190308_2055.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | 51 | 2019-03-22T00:31:06.000Z | 2021-06-10T21:17:30.000Z | distributed_social_network/posts/migrations/0003_auto_20190308_2055.py | leevtori/CMPUT404-project | 52214288855ae4b3f05b8d17e67a2686debffb19 | [
"Apache-2.0"
] | 1 | 2019-02-08T01:33:57.000Z | 2019-02-08T01:33:57.000Z | # Generated by Django 2.1.7 on 2019-03-08 20:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20190221_0234'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='visiblilty',
... | 19.315789 | 47 | 0.588556 | 39 | 367 | 5.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120623 | 0.299728 | 367 | 18 | 48 | 20.388889 | 0.696498 | 0.122616 | 0 | 0 | 1 | 0 | 0.1625 | 0.071875 | 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 |
b43e6c43008ba217cff97642ff4168d07bf643bc | 23,644 | py | Python | policy.py | nyu-dl/dl4mt-simul-trans | 392ff3148e944be6fbc475d5285441807902e2e0 | [
"BSD-3-Clause"
] | 34 | 2016-12-01T07:59:43.000Z | 2021-09-13T10:46:15.000Z | policy.py | yifanjun233/dl4mt-simul-trans | 392ff3148e944be6fbc475d5285441807902e2e0 | [
"BSD-3-Clause"
] | 1 | 2020-09-14T08:35:00.000Z | 2020-09-14T08:35:00.000Z | policy.py | yifanjun233/dl4mt-simul-trans | 392ff3148e944be6fbc475d5285441807902e2e0 | [
"BSD-3-Clause"
] | 18 | 2016-12-15T01:43:33.000Z | 2021-09-29T07:24:08.000Z | """
-- Policy Network for decision making [more general]
"""
from nmt_uni import *
from layers import _p
import os
import time, datetime
import cPickle as pkl
# hyper params
TINY = 1e-7
PI = numpy.pi
E = numpy.e
A = 0.2
B = 1
class Controller(object):
def __init__(self, trng,
option... | 39.871838 | 118 | 0.514084 | 2,580 | 23,644 | 4.557752 | 0.163566 | 0.027128 | 0.010205 | 0.007484 | 0.257165 | 0.194319 | 0.156561 | 0.128157 | 0.109618 | 0.095501 | 0 | 0.011799 | 0.326129 | 23,644 | 592 | 119 | 39.939189 | 0.726229 | 0.131323 | 0 | 0.222772 | 0 | 0 | 0.080475 | 0.002472 | 0 | 0 | 0 | 0.001689 | 0.004951 | 0 | null | null | 0 | 0.012376 | null | null | 0.079208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b442fb148ab72708b2f20e85644d227c7977348c | 453 | py | Python | ejercicio 14.py | Davidpadilla1234/taller_estructura-secuencial | 3a65931ad75fd4902f406c6c872053169dad1a0b | [
"MIT"
] | null | null | null | ejercicio 14.py | Davidpadilla1234/taller_estructura-secuencial | 3a65931ad75fd4902f406c6c872053169dad1a0b | [
"MIT"
] | null | null | null | ejercicio 14.py | Davidpadilla1234/taller_estructura-secuencial | 3a65931ad75fd4902f406c6c872053169dad1a0b | [
"MIT"
] | null | null | null | """
Entradas:
lectura actual--->float--->lect2
lectura anterior--->float--->lect1
valor kw--->float--->valorkw
Salidas:
consumo--->float--->consumo
total factura-->flotante--->total
"""
lect2 = float ( entrada ( "Digite lectura real:" ))
lect1 = float ( entrada ( "Digite lectura anterior:" ))
valorkw = float ( input ( ... | 30.2 | 55 | 0.653422 | 53 | 453 | 5.584906 | 0.509434 | 0.101351 | 0.121622 | 0.168919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015666 | 0.154525 | 453 | 15 | 56 | 30.2 | 0.75718 | 0.390728 | 0 | 0 | 0 | 0 | 0.319703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
b443e69cd16f1827fe9ba10cb1499425321f1ac2 | 1,059 | py | Python | manage.py | xinbingliang/dockertest | aca2a508658681a5e6b1beab714059bf1b43d9ed | [
"MIT"
] | 30 | 2018-05-23T16:58:12.000Z | 2021-10-18T21:25:01.000Z | manage.py | xinbingliang/dockertest | aca2a508658681a5e6b1beab714059bf1b43d9ed | [
"MIT"
] | 2 | 2019-12-01T13:32:50.000Z | 2019-12-01T13:32:53.000Z | manage.py | xinbingliang/dockertest | aca2a508658681a5e6b1beab714059bf1b43d9ed | [
"MIT"
] | 136 | 2018-02-04T14:13:33.000Z | 2022-03-09T08:26:07.000Z | # manage.py
import unittest
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from skeleton.server import app, db
from skeleton.server.models import User
migrate = Migrate(app, db)
manager = Manager(app)
# migrations
manager.add_command('db', MigrateCommand)
@manager.command
def... | 18.578947 | 79 | 0.685552 | 135 | 1,059 | 5.251852 | 0.444444 | 0.098731 | 0.119887 | 0.09732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.17847 | 1,059 | 56 | 80 | 18.910714 | 0.811494 | 0.139754 | 0 | 0.16129 | 0 | 0 | 0.048643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.064516 | 0.16129 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b444035780c265816dfc1fd4e30cb0ee8b926672 | 610 | py | Python | client/middleware.py | uktrade/directory-forms-api | 078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa | [
"MIT"
] | null | null | null | client/middleware.py | uktrade/directory-forms-api | 078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa | [
"MIT"
] | 77 | 2018-10-29T14:38:37.000Z | 2022-03-23T14:20:39.000Z | client/middleware.py | uktrade/directory-forms-api | 078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa | [
"MIT"
] | 1 | 2021-08-05T10:20:17.000Z | 2021-08-05T10:20:17.000Z | import sigauth.middleware
import sigauth.helpers
from client import helpers
class SignatureCheckMiddleware(sigauth.middleware.SignatureCheckMiddlewareBase):
secret = None
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.request_checker = helpers.RequestSignatureChe... | 30.5 | 80 | 0.703279 | 62 | 610 | 6.693548 | 0.596774 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 610 | 19 | 81 | 32.105263 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 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 |
b4484ab703976e8f170a719cc81c5d0146cb13ba | 533 | py | Python | dictionaries/lab/06_students.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | dictionaries/lab/06_students.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | dictionaries/lab/06_students.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | data = input()
courses = {}
while ":" in data:
student_name, id, course_name = data.split(":")
if course_name not in courses:
courses[course_name] = {}
courses[course_name][id] = student_name
data = input()
searched_course = data
searched_course_name_as_list = searched_course.split("_")
se... | 23.173913 | 57 | 0.669794 | 71 | 533 | 4.71831 | 0.28169 | 0.268657 | 0.152239 | 0.119403 | 0.143284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206379 | 533 | 22 | 58 | 24.227273 | 0.791962 | 0 | 0 | 0.133333 | 0 | 0 | 0.031895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 |
b44954b2c2b3e9462c5ae4cfc721ce64071a8588 | 1,184 | py | Python | 04.Encapsulation/Exe/pizza_maker/project/main.py | nmoskova/Python-OOP | 07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864 | [
"MIT"
] | null | null | null | 04.Encapsulation/Exe/pizza_maker/project/main.py | nmoskova/Python-OOP | 07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864 | [
"MIT"
] | null | null | null | 04.Encapsulation/Exe/pizza_maker/project/main.py | nmoskova/Python-OOP | 07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864 | [
"MIT"
] | null | null | null | from encapsulation_04.exe.pizza_maker.project.dough import Dough
from encapsulation_04.exe.pizza_maker.project.pizza import Pizza
from encapsulation_04.exe.pizza_maker.project.topping import Topping
tomato_topping = Topping("Tomato", 60)
print(tomato_topping.topping_type)
print(tomato_topping.weight)
mushrooms_toppin... | 29.6 | 68 | 0.831081 | 165 | 1,184 | 5.648485 | 0.230303 | 0.120172 | 0.080472 | 0.070815 | 0.248927 | 0.248927 | 0.248927 | 0.123391 | 0.123391 | 0.123391 | 0 | 0.022604 | 0.065878 | 1,184 | 39 | 69 | 30.358974 | 0.820072 | 0 | 0 | 0.142857 | 0 | 0 | 0.076014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 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 |
b44998685fc665e80493c8e5ef4cef6084f68ca9 | 4,875 | py | Python | ludopediaAnuncios.py | christianbobsin/LudopediaDataMiner | d136a40b024b3611a8a88371b4a47a673c782180 | [
"MIT"
] | 2 | 2018-03-16T23:05:51.000Z | 2021-08-05T03:23:44.000Z | ludopediaAnuncios.py | christianbobsin/LudopediaDataMiner | d136a40b024b3611a8a88371b4a47a673c782180 | [
"MIT"
] | null | null | null | ludopediaAnuncios.py | christianbobsin/LudopediaDataMiner | d136a40b024b3611a8a88371b4a47a673c782180 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from lxml import html
from time import sleep
from datetime import datetime
import requests
import os
import sqlite3
import sys
# No terminal usar ~: python ludopedia.py [idIni] [regs]
# por ex. ~: python ludopedia.py 451 3000
con = sqlite3.connect('ludopedia.db')
cursor = con.cursor()
cursor.... | 28.676471 | 223 | 0.570256 | 617 | 4,875 | 4.497569 | 0.264182 | 0.007207 | 0.008649 | 0.01009 | 0.234595 | 0.234595 | 0.234595 | 0.17982 | 0.147748 | 0.144144 | 0 | 0.029899 | 0.169846 | 4,875 | 169 | 224 | 28.846154 | 0.655794 | 0.305026 | 0 | 0.301205 | 0 | 0.048193 | 0.262756 | 0.092881 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084337 | null | null | 0.084337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b44ef5d465bb9fde348df90c5e65dba1ad7814be | 67,560 | py | Python | pandas/core/internals.py | lodagro/pandas | dfcf74679a273395cc9d7b3db78a1fbbc17c4f57 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/core/internals.py | lodagro/pandas | dfcf74679a273395cc9d7b3db78a1fbbc17c4f57 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/core/internals.py | lodagro/pandas | dfcf74679a273395cc9d7b3db78a1fbbc17c4f57 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | import itertools
from datetime import datetime
from numpy import nan
import numpy as np
from pandas.core.common import _possibly_downcast_to_dtype, isnull
from pandas.core.index import Index, MultiIndex, _ensure_index, _handle_legacy_indexes
from pandas.core.indexing import _check_slice_bounds, _maybe_convert_indices... | 33.004397 | 120 | 0.574571 | 8,412 | 67,560 | 4.454351 | 0.07941 | 0.019696 | 0.008327 | 0.007713 | 0.372671 | 0.301414 | 0.238884 | 0.197812 | 0.181825 | 0.164265 | 0 | 0.004667 | 0.327561 | 67,560 | 2,046 | 121 | 33.020528 | 0.820119 | 0.042214 | 0 | 0.350295 | 0 | 0 | 0.036292 | 0 | 0 | 0 | 0 | 0.002444 | 0.016962 | 0 | null | null | 0.002212 | 0.011799 | null | null | 0.002212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b44f004ae7c6b3eb8725a6532e9b3868344a526e | 4,919 | py | Python | Sketches/MH/PipeBuilder/BuildViewer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/MH/PipeBuilder/BuildViewer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/MH/PipeBuilder/BuildViewer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Ve... | 36.708955 | 121 | 0.551332 | 580 | 4,919 | 4.658621 | 0.405172 | 0.022206 | 0.009993 | 0.011843 | 0.032568 | 0.032568 | 0.032568 | 0.032568 | 0.032568 | 0 | 0 | 0.026283 | 0.350274 | 4,919 | 133 | 122 | 36.984962 | 0.819149 | 0.211425 | 0 | 0.03125 | 0 | 0 | 0.007473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078125 | 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 |
b4561bfc43f0bcb4bcb4c7719b19ceba05dfa31d | 853 | py | Python | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import onnx
from ..base import Base
from . import expect
class Constant(Base):
@staticmethod
def exp... | 25.088235 | 57 | 0.601407 | 93 | 853 | 5.258065 | 0.548387 | 0.0818 | 0.130879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.294256 | 853 | 33 | 58 | 25.848485 | 0.802326 | 0.060961 | 0 | 0 | 0 | 0 | 0.048872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.4 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4695e99489bd38daaa6b9010e4ec8efec4ce4a7 | 3,524 | py | Python | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 15 | 2021-11-01T14:14:56.000Z | 2022-03-17T11:52:29.000Z | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 1 | 2022-03-16T13:39:16.000Z | 2022-03-17T09:16:00.000Z | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | null | null | null | from typing import TypedDict
from .utils.Classes.String import String
from .utils.assert_string import assert_string
from .utils.merge import merge
class _IsStrongPasswordOptions(TypedDict):
min_length: int
min_uppercase: int
min_lowercase: int
min_numbers: int
min_symbols: int
return_score: ... | 29.864407 | 92 | 0.652667 | 413 | 3,524 | 5.251816 | 0.162228 | 0.049793 | 0.105118 | 0.029507 | 0.159059 | 0.147994 | 0.147994 | 0 | 0 | 0 | 0 | 0.010619 | 0.225028 | 3,524 | 117 | 93 | 30.119658 | 0.783596 | 0 | 0 | 0 | 0 | 0 | 0.211691 | 0.070091 | 0 | 0 | 0 | 0 | 0.020619 | 1 | 0.041237 | false | 0.072165 | 0.041237 | 0 | 0.340206 | 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 |
b474450a8d01b6c6116bd09fee74ef2ac63927a9 | 5,928 | py | Python | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 3 | 2018-05-11T16:05:55.000Z | 2021-12-20T08:52:02.000Z | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | null | null | null | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 2 | 2018-11-14T08:57:10.000Z | 2021-12-20T08:52:06.000Z | import Image
import readMDA
import h5py
import os
import numpy
from mmpad_image import open_mmpad_tif
import numpy as np
import scipy as sp
import sys
#import libtiff
from cxparams import CXParams as CXP
class CXFileReader(object):
"""
file_reader
A generic and configurable file reader.
The file r... | 29.20197 | 109 | 0.546896 | 702 | 5,928 | 4.531339 | 0.216524 | 0.07922 | 0.048412 | 0.066017 | 0.399246 | 0.399246 | 0.385413 | 0.361522 | 0.361522 | 0.305564 | 0 | 0.008188 | 0.361336 | 5,928 | 202 | 110 | 29.346535 | 0.832013 | 0.007591 | 0 | 0.464286 | 0 | 0 | 0.112991 | 0.006244 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007143 | 0.071429 | 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 |
b47e5c3d3423860e078e6b322a1719db193870cb | 3,107 | py | Python | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 33.408602 | 77 | 0.700032 | 368 | 3,107 | 5.855978 | 0.347826 | 0.139211 | 0.037123 | 0.063109 | 0.482599 | 0.415777 | 0.348492 | 0.285847 | 0.240371 | 0.240371 | 0 | 0.003086 | 0.165755 | 3,107 | 92 | 78 | 33.771739 | 0.828318 | 0.206308 | 0 | 0.327586 | 0 | 0 | 0.082857 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.310345 | 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 |
b48720b38e6ef7c7ce6bd71cd8a1fc79b8ad2a3a | 3,263 | py | Python | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | null | null | null | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | null | null | null | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | 1 | 2020-09-28T03:06:38.000Z | 2020-09-28T03:06:38.000Z | #/*
# * Copyright (C) 2017 - This file is part of libecc project
# *
# * Authors:
# * Ryad BENADJILA <ryadbenadjila@gmail.com>
# * Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr>
# * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
# *
# * Contributors:
# * Nicolas VIVET <nicolas.vivet@ssi.gouv.fr>
... | 32.63 | 97 | 0.62274 | 490 | 3,263 | 4.095918 | 0.312245 | 0.053812 | 0.043847 | 0.038366 | 0.169905 | 0.128052 | 0.078226 | 0.078226 | 0.078226 | 0.078226 | 0 | 0.211013 | 0.204107 | 3,263 | 99 | 98 | 32.959596 | 0.561802 | 0.190316 | 0 | 0.19697 | 0 | 0 | 0.001528 | 0 | 0 | 0 | 0.168067 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.015152 | 0.045455 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81eb4b0e294989b02c9358c7a2349765725c6844 | 970 | py | Python | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | 2 | 2018-03-06T03:39:00.000Z | 2018-03-06T04:31:39.000Z | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | 15 | 2018-01-01T20:55:22.000Z | 2018-06-09T21:37:39.000Z | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | null | null | null | import pymysql.cursors
from ..mod_check import app
@app.task
def check(host, port, username, password, db):
result = None
connection = None
try:
connection = pymysql.connect(host=host,
port=port,
user=username,
... | 29.393939 | 76 | 0.464948 | 81 | 970 | 5.555556 | 0.567901 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003824 | 0.460825 | 970 | 32 | 77 | 30.3125 | 0.856597 | 0 | 0 | 0 | 0 | 0 | 0.042268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.076923 | 0 | 0.153846 | 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 |
81ee84f6b82809aa8e7f47a4b2060161548b3aab | 1,353 | py | Python | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | 11 | 2020-12-16T07:00:29.000Z | 2021-05-25T16:24:50.000Z | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | 1 | 2021-06-30T05:42:46.000Z | 2021-09-03T11:45:56.000Z | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | null | null | null | import configparser
import os
import typing
from sitri.providers.base import ConfigProvider
class IniConfigProvider(ConfigProvider):
"""Config provider for Initialization file (Ini)."""
provider_code = "ini"
def __init__(
self,
ini_path: str = "./config.ini",
):
"""
... | 24.6 | 99 | 0.602365 | 157 | 1,353 | 5.10828 | 0.33121 | 0.089776 | 0.049875 | 0.054863 | 0.149626 | 0.149626 | 0.149626 | 0.149626 | 0.149626 | 0.149626 | 0 | 0 | 0.291944 | 1,353 | 54 | 100 | 25.055556 | 0.837161 | 0.193644 | 0 | 0.074074 | 0 | 0 | 0.014881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.148148 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
81f8d698a3ddfe36ef13f1113078ded3a3fb3cf5 | 865 | py | Python | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:46:32.000Z | 2021-01-26T12:46:32.000Z | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | 1 | 2021-06-02T02:53:31.000Z | 2021-06-02T02:53:31.000Z | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | null | null | null | from checkov.common.models.enums import CheckResult, CheckCategories
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class EKSSecretsEncryption(BaseResourceCheck):
def __init__(self):
name = "Ensure EKS Cluster has Secrets Encryption Enabled"
id = "CKV_AWS_58"
... | 39.318182 | 106 | 0.713295 | 93 | 865 | 6.397849 | 0.516129 | 0.090756 | 0.053782 | 0.07395 | 0.077311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007174 | 0.19422 | 865 | 21 | 107 | 41.190476 | 0.846485 | 0 | 0 | 0 | 0 | 0 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
81fd3d016f2f7329e2389892dcfbd3f365d1769d | 844 | py | Python | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import pip
import os
import sys
def err(msg):
print "\033[31m✗ \033[0m%s" % msg
def ok(msg):
print "\033[32m✓ \033[0m%s" % msg
def main():
cwd = os.getcwd()
json_file = os.path.join(cwd, 'dependencies.json')
if os.path.isfile(json_file) =... | 23.444444 | 60 | 0.640995 | 117 | 844 | 4.504274 | 0.538462 | 0.045541 | 0.041746 | 0.034156 | 0.045541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.222749 | 844 | 35 | 61 | 24.114286 | 0.769817 | 0.049763 | 0 | 0 | 0 | 0 | 0.20125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81fdb0e1136255e877c9ae2c151c33d3b0b0ee1d | 338 | py | Python | 1801-1900/1807.evaluate-thebracket-pairs-of-a-string.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | 1801-1900/1807.evaluate-thebracket-pairs-of-a-string.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | 1801-1900/1807.evaluate-thebracket-pairs-of-a-string.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=1807 lang=python3
#
# [1807] Evaluate the Bracket Pairs of a String
#
# @lc code=start
import re
class Solution:
def evaluate(self, s: str, knowledge: list[list[str]]) -> str:
mapping = dict(knowledge)
return re.sub(r"\((\w+?)\)", lambda m: mapping.get(m.group(1), "?"), s)... | 18.777778 | 79 | 0.612426 | 51 | 338 | 4.058824 | 0.745098 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.207101 | 338 | 17 | 80 | 19.882353 | 0.735075 | 0.328402 | 0 | 0 | 0 | 0 | 0.050228 | 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 |
81ff4f468611ece2f0ec909a6f48f5be0e5338fb | 404 | py | Python | articles/migrations/0003_article_published_at.py | mosalaheg/django3.2 | 551ecd0c8f633bcd9c37a95688e7bed958c0b91c | [
"MIT"
] | null | null | null | articles/migrations/0003_article_published_at.py | mosalaheg/django3.2 | 551ecd0c8f633bcd9c37a95688e7bed958c0b91c | [
"MIT"
] | null | null | null | articles/migrations/0003_article_published_at.py | mosalaheg/django3.2 | 551ecd0c8f633bcd9c37a95688e7bed958c0b91c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-02 08:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0002_auto_20211002_1019'),
]
operations = [
migrations.AddField(
model_name='article',
name='published_a... | 21.263158 | 62 | 0.608911 | 44 | 404 | 5.477273 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106164 | 0.277228 | 404 | 18 | 63 | 22.444444 | 0.719178 | 0.111386 | 0 | 0 | 1 | 0 | 0.140056 | 0.064426 | 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 |
81ffc4260214e21a8fbb8d247a68944ab547969b | 643 | py | Python | example/usage/example_kate.py | vodka2/vkaudiotoken-python | 5720e4cf77f5e1b20c3bf57f3df0717638a539e0 | [
"MIT"
] | 32 | 2020-07-21T18:32:59.000Z | 2022-03-20T21:16:11.000Z | example/usage/example_kate.py | vodka2/vkaudiotoken-python | 5720e4cf77f5e1b20c3bf57f3df0717638a539e0 | [
"MIT"
] | 1 | 2020-10-04T04:41:06.000Z | 2020-10-05T11:43:48.000Z | example/usage/example_kate.py | vodka2/vkaudiotoken-python | 5720e4cf77f5e1b20c3bf57f3df0717638a539e0 | [
"MIT"
] | 2 | 2021-09-21T01:17:05.000Z | 2022-03-17T10:17:22.000Z | from __future__ import print_function
try:
import vkaudiotoken
except ImportError:
import path_hack
from vkaudiotoken import supported_clients
import sys
import requests
import json
token = sys.argv[1]
user_agent = supported_clients.KATE.user_agent
sess = requests.session()
sess.headers.update({'User-Agent'... | 21.433333 | 75 | 0.715397 | 82 | 643 | 5.439024 | 0.670732 | 0.080717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075092 | 0.150855 | 643 | 29 | 76 | 22.172414 | 0.741758 | 0 | 0 | 0 | 0 | 0 | 0.180404 | 0.060653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.428571 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c301529eb7d8f8a6047d8e286ff806d7da8427d3 | 2,235 | py | Python | tools/testrunner/outproc/message.py | LancerWang001/v8 | 42ff4531f590b901ade0a18bfd03e56485fe2452 | [
"BSD-3-Clause"
] | 20,995 | 2015-01-01T05:12:40.000Z | 2022-03-31T21:39:18.000Z | tools/testrunner/outproc/message.py | Andrea-MariaDB-2/v8 | a0f0ebd7a876e8cb2210115adbfcffe900e99540 | [
"BSD-3-Clause"
] | 333 | 2020-07-15T17:06:05.000Z | 2021-03-15T12:13:09.000Z | tools/testrunner/outproc/message.py | Andrea-MariaDB-2/v8 | a0f0ebd7a876e8cb2210115adbfcffe900e99540 | [
"BSD-3-Clause"
] | 4,523 | 2015-01-01T15:12:34.000Z | 2022-03-28T06:23:41.000Z | # Copyright 2018 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import itertools
import os
import re
from . import base
class OutProc(base.ExpectedOutProc):
def __init__(self, expected_outcomes, basepath, expected_... | 32.867647 | 72 | 0.648322 | 282 | 2,235 | 4.968085 | 0.425532 | 0.034261 | 0.038544 | 0.048537 | 0.094218 | 0.038544 | 0 | 0 | 0 | 0 | 0 | 0.006471 | 0.239374 | 2,235 | 67 | 73 | 33.358209 | 0.817647 | 0.195526 | 0 | 0.061224 | 0 | 0 | 0.045378 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.061224 | false | 0 | 0.081633 | 0 | 0.265306 | 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 |
c3027f734157db362e121ea8ce2b5d36ad4e6075 | 604 | py | Python | gemtown/users/urls.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | gemtown/users/urls.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | 5 | 2020-09-04T20:13:39.000Z | 2022-02-17T22:03:33.000Z | gemtown/users/urls.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = "users"
urlpatterns = [
path("all/", view=views.UserList.as_view(), name="all_user"),
path("<int:user_id>/password/", view=views.ChangePassword.as_view(), name="change password"),
path("<int:user_id>/follow/", view=views.FollowUser.as_view(), name... | 50.333333 | 97 | 0.701987 | 85 | 604 | 4.811765 | 0.364706 | 0.132029 | 0.146699 | 0.127139 | 0.124694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 604 | 12 | 98 | 50.333333 | 0.751838 | 0 | 0 | 0 | 0 | 0 | 0.300826 | 0.147107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c302fe24cced11c5bc506098882205738bad2b79 | 3,132 | py | Python | Packs/Thycotic/Integrations/Thycotic/Thycotic_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/Thycotic/Integrations/Thycotic/Thycotic_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/Thycotic/Integrations/Thycotic/Thycotic_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import pytest
from Thycotic import Client, \
secret_password_get_command, secret_username_get_command, \
secret_get_command, secret_password_update_command, secret_checkout_command, secret_checkin_command, \
secret_delete_command, folder_create_command, folder_delete_command, folder_update_command
from tes... | 60.230769 | 120 | 0.814815 | 412 | 3,132 | 5.616505 | 0.165049 | 0.095073 | 0.073466 | 0.038894 | 0.52809 | 0.185825 | 0.063526 | 0.025929 | 0 | 0 | 0 | 0.006714 | 0.096424 | 3,132 | 51 | 121 | 61.411765 | 0.810954 | 0 | 0 | 0 | 0 | 0 | 0.098659 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.023256 | false | 0.27907 | 0.093023 | 0 | 0.116279 | 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 |
c304c12fe37620c738efd7817690de209aad07c4 | 1,190 | py | Python | src/pynnet/test.py | RalphMao/kaldi-pynnet | a8c050e976a138b43ff0c2ea2a1def72f51f9177 | [
"Apache-2.0"
] | null | null | null | src/pynnet/test.py | RalphMao/kaldi-pynnet | a8c050e976a138b43ff0c2ea2a1def72f51f9177 | [
"Apache-2.0"
] | null | null | null | src/pynnet/test.py | RalphMao/kaldi-pynnet | a8c050e976a138b43ff0c2ea2a1def72f51f9177 | [
"Apache-2.0"
] | null | null | null | import _nnet
import numpy as np
import IPython
net = _nnet.Nnet()
net.read('/home/maohz12/online_50h_Tsinghua/exp_train_50h/lstm_karel_bak/nnet/nnet_iter14_learnrate7.8125e-07_tr1.2687_cv1.6941')
# Test1
blobs = net.layers[0].get_params()
x = blobs[1].data.flatten()
x_test = np.fromfile('test/1.bin', 'f')
assert np.s... | 27.045455 | 129 | 0.715966 | 224 | 1,190 | 3.602679 | 0.285714 | 0.061958 | 0.111524 | 0.086741 | 0.510533 | 0.416357 | 0.416357 | 0.351921 | 0.351921 | 0.277571 | 0 | 0.055659 | 0.094118 | 1,190 | 43 | 130 | 27.674419 | 0.69295 | 0.015966 | 0 | 0.258065 | 0 | 0.032258 | 0.159383 | 0.100257 | 0 | 0 | 0 | 0 | 0.16129 | 0 | null | null | 0.032258 | 0.096774 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c307055a5d64c20c7212a67b032444ffbf9d764a | 569 | py | Python | Linear_Insertion_Sort.py | toppassion/python-master-app | 21d854186664440f997bfe53010b242f62979e7f | [
"MIT"
] | null | null | null | Linear_Insertion_Sort.py | toppassion/python-master-app | 21d854186664440f997bfe53010b242f62979e7f | [
"MIT"
] | null | null | null | Linear_Insertion_Sort.py | toppassion/python-master-app | 21d854186664440f997bfe53010b242f62979e7f | [
"MIT"
] | 1 | 2021-12-08T11:38:20.000Z | 2021-12-08T11:38:20.000Z | def Linear_Search(Test_arr, val):
index = 0
for i in range(len(Test_arr)):
if val > Test_arr[i]:
index = i+1
return index
def Insertion_Sort(Test_arr):
for i in range(1, len(Test_arr)):
val = Test_arr[i]
j = Linear_Search(Test_arr[:i], val)
Test_arr.pop(i)
... | 27.095238 | 64 | 0.616872 | 91 | 569 | 3.571429 | 0.373626 | 0.215385 | 0.055385 | 0.116923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007126 | 0.260105 | 569 | 21 | 64 | 27.095238 | 0.764846 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 0.047368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 0.058824 | 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 |
c308e55ef9a8f6ca2122399901177b70c65eef30 | 1,208 | py | Python | test/test_everything.py | jameschapman19/Eigengame | 165d1bf35076fbfc6e65a987cb2e09a174776927 | [
"MIT"
] | null | null | null | test/test_everything.py | jameschapman19/Eigengame | 165d1bf35076fbfc6e65a987cb2e09a174776927 | [
"MIT"
] | null | null | null | test/test_everything.py | jameschapman19/Eigengame | 165d1bf35076fbfc6e65a987cb2e09a174776927 | [
"MIT"
] | null | null | null | import jax.numpy as jnp
import numpy as np
from jax import random
from algorithms import Game, GHA, Oja, Krasulina, Numpy
def test_pca():
"""
At the moment just checks they all run.
Returns
-------
"""
n = 10
p = 2
n_components = 2
batch_size = 2
epochs = 10
key = random... | 24.16 | 83 | 0.543874 | 152 | 1,208 | 4.171053 | 0.328947 | 0.190852 | 0.094637 | 0.173502 | 0.353312 | 0.353312 | 0.353312 | 0.353312 | 0.353312 | 0.353312 | 0 | 0.012723 | 0.349338 | 1,208 | 49 | 84 | 24.653061 | 0.793893 | 0.046358 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.025641 | false | 0 | 0.102564 | 0 | 0.128205 | 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 |
c3119f2506c627ca857b498eb0bfe45c4bd66fbc | 9,582 | py | Python | dataanalysis.py | Rev-Jiang/Python | c91d5724a6843f095bfe1a05f65d9fc885e01b88 | [
"MIT"
] | null | null | null | dataanalysis.py | Rev-Jiang/Python | c91d5724a6843f095bfe1a05f65d9fc885e01b88 | [
"MIT"
] | null | null | null | dataanalysis.py | Rev-Jiang/Python | c91d5724a6843f095bfe1a05f65d9fc885e01b88 | [
"MIT"
] | null | null | null | #-*- coding: UTF-8 -*-
#上句表示可用中文注释,否则默认ASCII码保存
# Filename : dataanalysis.py
# author by : Rev_997
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def isiterable(obj):
try:
iter(obj)
return True
except TypeError:#not iterable
return False
#if i... | 20.08805 | 100 | 0.644124 | 1,546 | 9,582 | 3.944373 | 0.259379 | 0.007215 | 0.010823 | 0.00328 | 0.156937 | 0.122171 | 0.11348 | 0.091177 | 0.091177 | 0.070187 | 0 | 0.02935 | 0.207055 | 9,582 | 476 | 101 | 20.130252 | 0.77323 | 0.286266 | 0 | 0.2103 | 0 | 0 | 0.07698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017167 | 0.038627 | null | null | 0.008584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c311dcd3f870bbdf6b67118d6ccc561653945f40 | 259 | py | Python | show_model_info.py | panovr/Brain-Tumor-Segmentation | bf1ac2360af46a484d632474ce93de339ad2b496 | [
"MIT"
] | null | null | null | show_model_info.py | panovr/Brain-Tumor-Segmentation | bf1ac2360af46a484d632474ce93de339ad2b496 | [
"MIT"
] | null | null | null | show_model_info.py | panovr/Brain-Tumor-Segmentation | bf1ac2360af46a484d632474ce93de339ad2b496 | [
"MIT"
] | null | null | null | import bts.model as model
import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
BATCH_SIZE = 6
FILTER_LIST = [16,32,64,128,256]
unet_model = model.DynamicUNet(FILTER_LIST)
unet_model.summary(batch_size=BATCH_SIZE, device=device)
| 28.777778 | 69 | 0.783784 | 43 | 259 | 4.534884 | 0.581395 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.096525 | 259 | 8 | 70 | 32.375 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3159e702eacd0f494cdd9cb0e3428247b34b8ae | 669 | py | Python | tests/biology/test_join_fasta.py | shandou/pyjanitor | d7842613b4e4a7532a88f673fd54e94c3ba5a96b | [
"MIT"
] | 1 | 2021-03-25T10:46:57.000Z | 2021-03-25T10:46:57.000Z | tests/biology/test_join_fasta.py | shandou/pyjanitor | d7842613b4e4a7532a88f673fd54e94c3ba5a96b | [
"MIT"
] | null | null | null | tests/biology/test_join_fasta.py | shandou/pyjanitor | d7842613b4e4a7532a88f673fd54e94c3ba5a96b | [
"MIT"
] | null | null | null | import importlib
import os
import pytest
from helpers import running_on_ci
import janitor.biology # noqa: F403, F401
# Skip all tests if Biopython not installed
pytestmark = pytest.mark.skipif(
(importlib.util.find_spec("Bio") is None) & ~running_on_ci(),
reason="Biology tests relying on Biopython only requ... | 25.730769 | 71 | 0.714499 | 92 | 669 | 5.054348 | 0.619565 | 0.03871 | 0.047312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.180867 | 669 | 25 | 72 | 26.76 | 0.837591 | 0.179372 | 0 | 0 | 0 | 0 | 0.197417 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c31bd0f2505a1c4be1c52fbd6469723bb696bfa9 | 2,470 | py | Python | account/models.py | Hasanozzaman-Khan/Django-User-Authentication | 96482a51ed01bbdc7092d6ca34383054967a8aa0 | [
"MIT"
] | null | null | null | account/models.py | Hasanozzaman-Khan/Django-User-Authentication | 96482a51ed01bbdc7092d6ca34383054967a8aa0 | [
"MIT"
] | null | null | null | account/models.py | Hasanozzaman-Khan/Django-User-Authentication | 96482a51ed01bbdc7092d6ca34383054967a8aa0 | [
"MIT"
] | null | null | null |
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager
from PIL import Image
# Create your models here.
class Home(models.Model):
pass
class CustomUserManager(BaseUserManager):
"""Manager for user profiles"""
def create_user(self, email, f... | 30.493827 | 90 | 0.676923 | 309 | 2,470 | 5.239482 | 0.36246 | 0.05559 | 0.044472 | 0.052502 | 0.170476 | 0.170476 | 0.11365 | 0 | 0 | 0 | 0 | 0.010898 | 0.219838 | 2,470 | 80 | 91 | 30.875 | 0.829268 | 0.106883 | 0 | 0.125 | 0 | 0 | 0.053044 | 0.01107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0.104167 | 0.0625 | 0.020833 | 0.645833 | 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 |
c32367d43e08138167f815beb65fbee346856f66 | 1,965 | py | Python | old_test/test-large.py | briandobbins/pynio | 1dd5fc0fc133f2b8d329ae68929bd3c6c1c5fa7c | [
"Apache-2.0"
] | null | null | null | old_test/test-large.py | briandobbins/pynio | 1dd5fc0fc133f2b8d329ae68929bd3c6c1c5fa7c | [
"Apache-2.0"
] | null | null | null | old_test/test-large.py | briandobbins/pynio | 1dd5fc0fc133f2b8d329ae68929bd3c6c1c5fa7c | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, division
import numpy as np
import Nio
import time, os
#
# Creating a file
#
init_time = time.clock()
ncfile = 'test-large.nc'
if (os.path.exists(ncfile)):
os.system("/bin/rm -f " + ncfile)
opt = Nio.options()
opt.Format = "LargeFile"
opt.PreFill = False
file = Nio.open_file(nc... | 23.674699 | 71 | 0.689567 | 303 | 1,965 | 4.419142 | 0.339934 | 0.041822 | 0.067961 | 0.089619 | 0.344287 | 0.315907 | 0.315907 | 0.241972 | 0.214339 | 0.214339 | 0 | 0.05549 | 0.137913 | 1,965 | 82 | 72 | 23.963415 | 0.734947 | 0.122646 | 0 | 0.271186 | 0 | 0 | 0.181871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.067797 | 0 | 0.067797 | 0.40678 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c324c7d6ffabe1bf0c4f2f6e3eba09b511032c92 | 7,470 | py | Python | Mask/Interpolate slider without prepolate.py | typedev/RoboFont-1 | 307c3c953a338f58cd0070aa5b1bb737bde08cc9 | [
"MIT"
] | 1 | 2016-03-27T17:07:16.000Z | 2016-03-27T17:07:16.000Z | Mask/Interpolate slider without prepolate.py | typedev/RoboFont-1 | 307c3c953a338f58cd0070aa5b1bb737bde08cc9 | [
"MIT"
] | null | null | null | Mask/Interpolate slider without prepolate.py | typedev/RoboFont-1 | 307c3c953a338f58cd0070aa5b1bb737bde08cc9 | [
"MIT"
] | null | null | null | """
This slider controls interpolation between foreground and mask layers.
Initial position for slider is at 1.0 (current foreground outline)
Sliding left to 0.0 interpolates to mask
Sliding right to 3.0 extrapolates away from mask.
NOTE:
Running this script opens an observer on the current glyph in the Glyph View wi... | 30.614754 | 105 | 0.493574 | 826 | 7,470 | 4.405569 | 0.2046 | 0.023083 | 0.030228 | 0.024182 | 0.387744 | 0.369057 | 0.325639 | 0.318494 | 0.246496 | 0.19978 | 0 | 0.023829 | 0.359572 | 7,470 | 243 | 106 | 30.740741 | 0.736831 | 0.065863 | 0 | 0.393103 | 0 | 0 | 0.105844 | 0.024091 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006897 | 0.013793 | null | null | 0.144828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c327543b799027a0d190954bd8149ab8b7d7603f | 809 | py | Python | scrapets/extract.py | ownport/scrapets | e52609aae4d55fb9d4315f90d4e2fe3804ef8ff6 | [
"MIT"
] | 2 | 2017-06-22T15:45:52.000Z | 2019-08-23T03:34:40.000Z | scrapets/extract.py | ownport/scrapets | e52609aae4d55fb9d4315f90d4e2fe3804ef8ff6 | [
"MIT"
] | 9 | 2016-10-23T17:56:34.000Z | 2016-12-12T10:39:23.000Z | scrapets/extract.py | ownport/scrapets | e52609aae4d55fb9d4315f90d4e2fe3804ef8ff6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from HTMLParser import HTMLParser
# -------------------------------------------------------
#
# LinkExtractor: extract links from html page
#
class BaseExtractor(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self._links = []
@property
def links(se... | 20.74359 | 80 | 0.566131 | 95 | 809 | 4.652632 | 0.368421 | 0.122172 | 0.099548 | 0.135747 | 0.479638 | 0.479638 | 0.479638 | 0.479638 | 0.479638 | 0.171946 | 0 | 0.001675 | 0.262052 | 809 | 38 | 81 | 21.289474 | 0.738693 | 0.15204 | 0 | 0.222222 | 0 | 0 | 0.016176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3283cdb2fefed11f9dc322c324670fa2d4fbccd | 1,069 | py | Python | tests/unit/utils/filebuffer_test.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | 2 | 2019-03-30T02:12:56.000Z | 2021-03-08T18:59:46.000Z | tests/unit/utils/filebuffer_test.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/filebuffer_test.py | gotcha/salt | 7b84c704777d3d2062911895dc3fdf93d40e9848 | [
"Apache-2.0"
] | 1 | 2020-12-04T11:28:06.000Z | 2020-12-04T11:28:06.000Z | # -*- coding: utf-8 -*-
'''
tests.unit.utils.filebuffer_test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
:copyright: © 2012 by the SaltStack Team, see AUTHORS for more details.
:license: Apache 2.0, see LICENSE for more details.
'''
# Import salt libs
... | 30.542857 | 75 | 0.663237 | 111 | 1,069 | 6.288288 | 0.558559 | 0.045845 | 0.114613 | 0.200573 | 0.338109 | 0.338109 | 0.338109 | 0.338109 | 0 | 0 | 0 | 0.009249 | 0.190833 | 1,069 | 34 | 76 | 31.441176 | 0.796532 | 0.268475 | 0 | 0.25 | 0 | 0 | 0.061089 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.0625 | 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 |
c3292201406d3697087e8916c4dd2621e50dc55a | 192 | py | Python | src/wwucs/bot/__init__.py | reillysiemens/wwucs-bot | 9e48ba5dc981e36cd8b18345bcbd3768c3deeeb8 | [
"0BSD"
] | null | null | null | src/wwucs/bot/__init__.py | reillysiemens/wwucs-bot | 9e48ba5dc981e36cd8b18345bcbd3768c3deeeb8 | [
"0BSD"
] | null | null | null | src/wwucs/bot/__init__.py | reillysiemens/wwucs-bot | 9e48ba5dc981e36cd8b18345bcbd3768c3deeeb8 | [
"0BSD"
] | null | null | null | """WWUCS Bot module."""
__all__ = [
"__author__",
"__email__",
"__version__",
]
__author__ = "Reilly Tucker Siemens"
__email__ = "reilly@tuckersiemens.com"
__version__ = "0.1.0"
| 16 | 38 | 0.651042 | 19 | 192 | 5.105263 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.182292 | 192 | 11 | 39 | 17.454545 | 0.598726 | 0.088542 | 0 | 0 | 0 | 0 | 0.473373 | 0.142012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c329db170d0245164f12a99cffcce2a4d1c0ef5a | 551 | py | Python | plugins/google_cloud_compute/komand_google_cloud_compute/actions/disk_detach/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/google_cloud_compute/komand_google_cloud_compute/actions/disk_detach/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/google_cloud_compute/komand_google_cloud_compute/actions/disk_detach/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | import insightconnect_plugin_runtime
from .schema import DiskDetachInput, DiskDetachOutput, Input, Component
class DiskDetach(insightconnect_plugin_runtime.Action):
def __init__(self):
super(self.__class__, self).__init__(
name="disk_detach", description=Component.DESCRIPTION, input=DiskDetac... | 34.4375 | 117 | 0.718693 | 57 | 551 | 6.631579 | 0.54386 | 0.071429 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176044 | 551 | 15 | 118 | 36.733333 | 0.832599 | 0 | 0 | 0 | 0 | 0 | 0.019964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c332e2fe6b727044df2454bc3e05a8e3dca73a1d | 4,773 | py | Python | examples/authentication/demo_auth.py | jordiyeh/safrs | eecfaf6d63ed44b9dc44b7b86c600db02989b512 | [
"MIT"
] | null | null | null | examples/authentication/demo_auth.py | jordiyeh/safrs | eecfaf6d63ed44b9dc44b7b86c600db02989b512 | [
"MIT"
] | null | null | null | examples/authentication/demo_auth.py | jordiyeh/safrs | eecfaf6d63ed44b9dc44b7b86c600db02989b512 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# This is a demo application to demonstrate the functionality of the safrs_rest REST API with authentication
#
# you will have to install the requirements:
# pip3 install passlib flask_httpauth flask_login
#
# This script can be ran standalone like this:
# python3 demo_auth.py [Listen... | 31.82 | 109 | 0.673581 | 591 | 4,773 | 5.284264 | 0.368866 | 0.020173 | 0.017931 | 0.026897 | 0.099904 | 0.083253 | 0.021774 | 0 | 0 | 0 | 0 | 0.007297 | 0.224806 | 4,773 | 149 | 110 | 32.033557 | 0.836757 | 0.191284 | 0 | 0.089888 | 0 | 0 | 0.063479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0.11236 | 0.179775 | 0.022472 | 0.47191 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c333f525069086ebb8689eece355d91dd6b64f69 | 8,757 | py | Python | model/BPE.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | null | null | null | model/BPE.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | 4 | 2020-04-19T11:43:41.000Z | 2020-07-21T09:57:51.000Z | model/BPE.py | djmhunt/TTpy | 0f0997314bf0f54831494b2ef1a64f1bff95c097 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:Author: Dominic Hunt
"""
import logging
import numpy as np
import scipy as sp
import collections
import itertools
from model.modelTemplate import Model
class BPE(Model):
"""The Bayesian predictor model
Attributes
----------
Name : string
... | 33.680769 | 145 | 0.628183 | 934 | 8,757 | 5.857602 | 0.296574 | 0.03418 | 0.008042 | 0.014805 | 0.127216 | 0.099799 | 0.057394 | 0.018278 | 0.018278 | 0 | 0 | 0.005361 | 0.29702 | 8,757 | 259 | 146 | 33.810811 | 0.883366 | 0.454836 | 0 | 0.059701 | 0 | 0 | 0.010109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.089552 | 0.014925 | 0.462687 | 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 |
c336028d3170491bb761554d05258241830c82fc | 1,688 | py | Python | affiliates/banners/tests/__init__.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 15 | 2015-01-01T07:17:44.000Z | 2020-11-09T06:28:29.000Z | affiliates/banners/tests/__init__.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 16 | 2015-02-25T23:17:27.000Z | 2015-08-20T10:28:18.000Z | affiliates/banners/tests/__init__.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 12 | 2015-01-17T20:57:03.000Z | 2019-11-03T15:04:31.000Z | from django.db.models.signals import post_init
from factory import DjangoModelFactory, Sequence, SubFactory
from factory.django import mute_signals
from affiliates.banners import models
class CategoryFactory(DjangoModelFactory):
FACTORY_FOR = models.Category
name = Sequence(lambda n: 'test{0}'.format(n))
... | 25.575758 | 70 | 0.776659 | 166 | 1,688 | 7.76506 | 0.349398 | 0.054306 | 0.086889 | 0.04422 | 0.171451 | 0.134213 | 0.076804 | 0.076804 | 0 | 0 | 0 | 0.002069 | 0.140995 | 1,688 | 65 | 71 | 25.969231 | 0.886897 | 0 | 0 | 0.205128 | 0 | 0 | 0.102488 | 0.069905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.948718 | 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 |
c33b670e9c5af9440c581f7412728d80706d9eb8 | 5,240 | py | Python | bin/runinterpret.py | christine-liu/somaticCNVpipeline | 254b709e611e56e5c891c663508ac79fa1093c07 | [
"MIT"
] | null | null | null | bin/runinterpret.py | christine-liu/somaticCNVpipeline | 254b709e611e56e5c891c663508ac79fa1093c07 | [
"MIT"
] | 2 | 2018-03-09T00:22:18.000Z | 2019-03-12T11:26:42.000Z | bin/runinterpret.py | christine-liu/somaticCNVpipeline | 254b709e611e56e5c891c663508ac79fa1093c07 | [
"MIT"
] | 6 | 2018-03-09T02:10:49.000Z | 2020-05-14T09:19:11.000Z | #!usr/bin/python
import os
import numpy as np
import common
from interpret import qcfile, funcfile, analyzefiles
def runAll(args):
print('\n\n\nYou have requested to analyze CNV call data')
print('\tWARNING:')
print('\t\tIF USING ANY REFERENCES OTHER THAN THOSE I PROVIDE I CANNOT GUARANTEE RESULT ACCURACY... | 31.566265 | 202 | 0.698473 | 602 | 5,240 | 6.079734 | 0.330565 | 0.057377 | 0.048087 | 0.027322 | 0.245355 | 0.224044 | 0.179235 | 0.160109 | 0.051913 | 0.051913 | 0 | 0.0047 | 0.147328 | 5,240 | 165 | 203 | 31.757576 | 0.814458 | 0.184542 | 0 | 0 | 0 | 0 | 0.233396 | 0.065473 | 0.012048 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012048 | 0.048193 | null | null | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c33c7a593798637e5989678bfdadfbeb83157154 | 29,527 | py | Python | mbio/EM/mrc.py | wzmao/mbio | af78cfdb47577199585179c3b04cc6cf3d6b401c | [
"MIT"
] | 2 | 2015-05-28T12:23:02.000Z | 2018-05-25T14:01:17.000Z | mbio/EM/mrc.py | wzmao/mbio | af78cfdb47577199585179c3b04cc6cf3d6b401c | [
"MIT"
] | null | null | null | mbio/EM/mrc.py | wzmao/mbio | af78cfdb47577199585179c3b04cc6cf3d6b401c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""This module contains the MRC file class.
"""
__author__ = 'Wenzhi Mao'
__all__ = ['MRC']
class MRCHeader():
"""A header class for mrc file."""
def __init__(self, filename=None, **kwargs):
"""Provide the filename to parse or set it later."""
self.nx = self.ny = s... | 44.602719 | 265 | 0.507739 | 3,449 | 29,527 | 4.321832 | 0.09742 | 0.136858 | 0.016772 | 0.018114 | 0.635046 | 0.573326 | 0.494432 | 0.489669 | 0.467597 | 0.429089 | 0 | 0.023292 | 0.374776 | 29,527 | 661 | 266 | 44.670197 | 0.78414 | 0.035662 | 0 | 0.503846 | 0 | 0.009615 | 0.092118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001923 | 0.073077 | null | null | 0.123077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c34648b7e6fe0e43164dec6e0c0022e1e1efabdd | 1,485 | py | Python | fb/forms.py | pure-python/brainmate | 79c83e707a4811dd881832d22f17c29f33c4d7f2 | [
"Apache-2.0"
] | null | null | null | fb/forms.py | pure-python/brainmate | 79c83e707a4811dd881832d22f17c29f33c4d7f2 | [
"Apache-2.0"
] | 1 | 2016-04-14T14:42:52.000Z | 2016-04-14T14:42:52.000Z | fb/forms.py | pure-python/brainmate | 79c83e707a4811dd881832d22f17c29f33c4d7f2 | [
"Apache-2.0"
] | null | null | null | from django.forms import (
Form, CharField, Textarea, PasswordInput, ChoiceField, DateField,
ImageField, BooleanField, IntegerField, MultipleChoiceField
)
from django import forms
from fb.models import UserProfile
class UserPostForm(Form):
text = CharField(widget=Textarea(
attrs={'rows': 1, 'cols... | 31.595745 | 102 | 0.682828 | 152 | 1,485 | 6.592105 | 0.473684 | 0.090818 | 0.08982 | 0.045908 | 0.165669 | 0.165669 | 0.165669 | 0.08982 | 0.08982 | 0 | 0 | 0.015913 | 0.19596 | 1,485 | 46 | 103 | 32.282609 | 0.823283 | 0 | 0 | 0.058824 | 0 | 0 | 0.092929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.088235 | 0 | 0.705882 | 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 |
c346562511e160197f5f2be08e436cdf509a8cc0 | 28,863 | py | Python | Galaxy_Invander/user23_fTVPDKIDhRdCfUp.py | triump0870/Interactive_Programming_Python | 97e0f1f5639aecac683053ed742632db14dc6954 | [
"Apache-2.0"
] | 1 | 2015-06-09T22:40:15.000Z | 2015-06-09T22:40:15.000Z | Galaxy_Invander/user23_fTVPDKIDhRdCfUp.py | triump0870/Interactive_Programming_Python | 97e0f1f5639aecac683053ed742632db14dc6954 | [
"Apache-2.0"
] | null | null | null | Galaxy_Invander/user23_fTVPDKIDhRdCfUp.py | triump0870/Interactive_Programming_Python | 97e0f1f5639aecac683053ed742632db14dc6954 | [
"Apache-2.0"
] | null | null | null | # Simple implementation of GalaxyInvanders game
# Rohan Roy (India) - 3 Nov 2013
# www.codeskulptor.org/#user23_fTVPDKIDhRdCfUp
VER = "1.0"
# "add various aliens"
import simplegui, math, random, time
#Global const
FIELD_WIDTH = 850
FIELD_HEIGHT = 500
TOP_MARGIN = 75
LEFT_MARGIN = 25
ALIEN_WIDTH = 48
... | 35.988778 | 131 | 0.562346 | 3,792 | 28,863 | 4.142141 | 0.105485 | 0.029286 | 0.037436 | 0.045457 | 0.396638 | 0.324823 | 0.266123 | 0.236009 | 0.185459 | 0.155854 | 0 | 0.05978 | 0.299311 | 28,863 | 801 | 132 | 36.033708 | 0.716871 | 0.035166 | 0 | 0.292237 | 0 | 0 | 0.117778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.001522 | 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 |
c34b267716c64dbcac0061ea5f7b0de5338ff153 | 19,015 | py | Python | d373c7/pytorch/models/classifiers.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | 1 | 2021-07-23T18:04:55.000Z | 2021-07-23T18:04:55.000Z | d373c7/pytorch/models/classifiers.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | null | null | null | d373c7/pytorch/models/classifiers.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | null | null | null | """
Module for classifier Models
(c) 2020 d373c7
"""
import logging
import torch
import torch.nn as nn
from .common import PyTorchModelException, ModelDefaults, _History, _ModelGenerated, _ModelStream
from .encoders import GeneratedAutoEncoder
from ..layers import LSTMBody, ConvolutionalBody1d, AttentionLastEntry, Line... | 46.041162 | 120 | 0.645438 | 2,414 | 19,015 | 4.888567 | 0.140845 | 0.017795 | 0.007626 | 0.009491 | 0.43437 | 0.359715 | 0.336751 | 0.330142 | 0.330142 | 0.302347 | 0 | 0.006104 | 0.276256 | 19,015 | 412 | 121 | 46.152913 | 0.851402 | 0.278938 | 0 | 0.125 | 1 | 0.004032 | 0.073632 | 0.007295 | 0 | 0 | 0 | 0.002427 | 0 | 1 | 0.137097 | false | 0 | 0.040323 | 0.012097 | 0.266129 | 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 |
c351ebb4f07cf7eccdee13a557a0b9df8efb0303 | 4,321 | py | Python | files/spam-filter/tracspamfilter/captcha/keycaptcha.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | files/spam-filter/tracspamfilter/captcha/keycaptcha.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | files/spam-filter/tracspamfilter/captcha/keycaptcha.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 Dirk Stöcker <trac@dstoecker.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.com/license.html.
#
# This software... | 38.238938 | 82 | 0.610507 | 514 | 4,321 | 4.949416 | 0.338521 | 0.009434 | 0.008255 | 0.03066 | 0.202437 | 0.118711 | 0.03695 | 0 | 0 | 0 | 0 | 0.012211 | 0.279796 | 4,321 | 112 | 83 | 38.580357 | 0.80527 | 0.118028 | 0 | 0.139241 | 0 | 0 | 0.24052 | 0.097508 | 0 | 0 | 0 | 0.008929 | 0 | 0 | null | null | 0 | 0.101266 | 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 |
c35493185a871b0c5b3f41a18ba8dd0865c75b5e | 1,521 | py | Python | var/spack/repos/builtin/packages/bcache/package.py | milljm/spack | b476f8aa63d48f4b959522ece0406caa32992d4a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/bcache/package.py | milljm/spack | b476f8aa63d48f4b959522ece0406caa32992d4a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/bcache/package.py | milljm/spack | b476f8aa63d48f4b959522ece0406caa32992d4a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Bcache(MakefilePackage):
"""Bcache is a patch for the Linux kernel to use SSDs to cache ot... | 40.026316 | 104 | 0.738988 | 160 | 1,521 | 6.975 | 0.63125 | 0.035842 | 0.040323 | 0.039427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227586 | 0.142012 | 1,521 | 37 | 105 | 41.108108 | 0.627586 | 0.177515 | 0 | 0 | 0 | 0.045455 | 0.5 | 0.310178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3590d5e9d8eea5dee2b2753a4c5f63a26af1754 | 5,401 | py | Python | home/pedrosenarego/zorba/zorba1.0.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/pedrosenarego/zorba/zorba1.0.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/pedrosenarego/zorba/zorba1.0.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | from java.lang import String
import threading
import random
import codecs
import io
import itertools
import time
import os
import urllib2
import textwrap
import socket
import shutil
#############################################################
# This is the ZOrba
#
##################################################... | 31.95858 | 89 | 0.587854 | 583 | 5,401 | 5.445969 | 0.339623 | 0.021417 | 0.030866 | 0.008504 | 0.141732 | 0.052283 | 0.052283 | 0.040315 | 0.040315 | 0.040315 | 0 | 0.065204 | 0.071468 | 5,401 | 168 | 90 | 32.14881 | 0.567896 | 0.179411 | 0 | 0.074468 | 0 | 0 | 0.114802 | 0.030635 | 0 | 0 | 0 | 0.005952 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c359a6fbb849b989ceb5b8e12f21bfb4e4e866fd | 1,729 | py | Python | PAL/Cross/client/sources-linux/build_library_zip.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 2 | 2017-11-23T01:07:37.000Z | 2021-06-25T05:03:49.000Z | PAL/Cross/client/sources-linux/build_library_zip.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | null | null | null | PAL/Cross/client/sources-linux/build_library_zip.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 1 | 2018-05-22T02:28:43.000Z | 2018-05-22T02:28:43.000Z | import sys
from distutils.core import setup
import os
from glob import glob
import zipfile
import shutil
sys.path.insert(0, os.path.join('resources','library_patches'))
sys.path.insert(0, os.path.join('..','..','pupy'))
import pp
import additional_imports
import Crypto
all_dependencies=set([x.split('.')[0] for x,m i... | 36.020833 | 124 | 0.54251 | 221 | 1,729 | 4.049774 | 0.371041 | 0.060335 | 0.067039 | 0.046927 | 0.156425 | 0.109497 | 0.109497 | 0 | 0 | 0 | 0 | 0.008326 | 0.305379 | 1,729 | 47 | 125 | 36.787234 | 0.736886 | 0 | 0 | 0.05 | 0 | 0 | 0.103528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.275 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c35a9f8a6f746b1900b91c33a9b1be7d36fdde7f | 4,086 | py | Python | data_collection/json2mongodb.py | kwond2/hedgehogs | 58dbed549a1e78e401fc90c7a7041d9979cfc2e4 | [
"MIT"
] | 9 | 2018-02-06T19:08:16.000Z | 2022-03-15T13:31:57.000Z | data_collection/json2mongodb.py | kwond2/hedgehogs | 58dbed549a1e78e401fc90c7a7041d9979cfc2e4 | [
"MIT"
] | 37 | 2018-02-09T21:22:58.000Z | 2021-12-13T19:51:24.000Z | data_collection/json2mongodb.py | kwond2/hedgehogs | 58dbed549a1e78e401fc90c7a7041d9979cfc2e4 | [
"MIT"
] | 10 | 2018-02-27T20:26:55.000Z | 2021-02-06T02:26:30.000Z | #-*- coding: utf-8 -*-
# import os
# from optparse import OptionParser
# from pymongo import MongoClient, bulk
# import json
# import collections
# import sys
from import_hedgehogs import *
HOST = '45.55.48.43'
PORT = 27017
DB = 'SEC_EDGAR'
class OrderedDictWithKeyEscaping(collections.OrderedDict):
def __setite... | 41.272727 | 121 | 0.670338 | 502 | 4,086 | 5.290837 | 0.304781 | 0.066265 | 0.058735 | 0.074548 | 0.387801 | 0.387801 | 0.323042 | 0.317395 | 0.298193 | 0.278614 | 0 | 0.007929 | 0.197504 | 4,086 | 98 | 122 | 41.693878 | 0.802074 | 0.417523 | 0 | 0 | 0 | 0 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.021739 | 0 | 0.152174 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c35c97b552a6619198e65898ccb72250776063d5 | 1,867 | py | Python | molecule/default/tests/test_default.py | escalate/ansible-influxdb-docker | bbb2c259bd1de3c4c40322103a05894494af7104 | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | escalate/ansible-influxdb-docker | bbb2c259bd1de3c4c40322103a05894494af7104 | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | escalate/ansible-influxdb-docker | bbb2c259bd1de3c4c40322103a05894494af7104 | [
"MIT"
] | null | null | null | """Role testing files using testinfra"""
def test_config_directory(host):
"""Check config directory"""
f = host.file("/etc/influxdb")
assert f.is_directory
assert f.user == "influxdb"
assert f.group == "root"
assert f.mode == 0o775
def test_data_directory(host):
"""Check data directory""... | 28.287879 | 77 | 0.664167 | 245 | 1,867 | 4.963265 | 0.306122 | 0.046053 | 0.044408 | 0.026316 | 0.134046 | 0.096217 | 0.060855 | 0.060855 | 0 | 0 | 0 | 0.01437 | 0.179968 | 1,867 | 65 | 78 | 28.723077 | 0.779882 | 0.136583 | 0 | 0.05 | 0 | 0 | 0.277778 | 0.115581 | 0 | 0 | 0 | 0 | 0.575 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c368cab3b6e074a25c4387726e3ddcf458b2da2f | 384 | py | Python | sapextractor/utils/fields_corresp/extract_dd03t.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | 2 | 2021-02-10T08:09:35.000Z | 2021-05-21T06:25:34.000Z | sapextractor/utils/fields_corresp/extract_dd03t.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | null | null | null | sapextractor/utils/fields_corresp/extract_dd03t.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | 3 | 2021-11-22T13:27:00.000Z | 2022-03-16T22:08:51.000Z | def apply(con, target_language="E"):
dict_field_desc = {}
try:
df = con.prepare_and_execute_query("DD03T", ["DDLANGUAGE", "FIELDNAME", "DDTEXT"], " WHERE DDLANGUAGE = '"+target_language+"'")
stream = df.to_dict("records")
for el in stream:
dict_field_desc[el["FIELDNAME"]] = e... | 34.909091 | 135 | 0.611979 | 46 | 384 | 4.847826 | 0.630435 | 0.121076 | 0.174888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.239583 | 384 | 10 | 136 | 38.4 | 0.756849 | 0 | 0 | 0 | 0 | 0 | 0.195313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c3693f12a03bbf78b7f7bcf22ea6cd2fd4184fd8 | 1,043 | py | Python | app/forms/fields/month_year_date_field.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | app/forms/fields/month_year_date_field.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | app/forms/fields/month_year_date_field.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | import logging
from werkzeug.utils import cached_property
from wtforms import FormField, Form, StringField
logger = logging.getLogger(__name__)
def get_form_class(validators):
class YearMonthDateForm(Form):
year = StringField(validators=validators)
month = StringField()
@cached_property... | 26.74359 | 68 | 0.607862 | 106 | 1,043 | 5.792453 | 0.433962 | 0.058632 | 0.039088 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008011 | 0.281879 | 1,043 | 38 | 69 | 27.447368 | 0.811749 | 0 | 0 | 0 | 0 | 0 | 0.03931 | 0.021093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.518519 | 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 |
c37f533b46624d83873bcd5b9e4314c8ccb4405c | 11,734 | py | Python | myo/device_listener.py | ehliang/myo-unlock | 059e130a90e44df3869dd892e216c020d6d97a7e | [
"MIT"
] | 1 | 2021-06-25T02:27:31.000Z | 2021-06-25T02:27:31.000Z | myo/device_listener.py | ehliang/myo-unlock | 059e130a90e44df3869dd892e216c020d6d97a7e | [
"MIT"
] | null | null | null | myo/device_listener.py | ehliang/myo-unlock | 059e130a90e44df3869dd892e216c020d6d97a7e | [
"MIT"
] | null | null | null | # Copyright (c) 2015 Niklas Rosenstein
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, ... | 32.325069 | 82 | 0.587183 | 1,317 | 11,734 | 5.081245 | 0.22779 | 0.059773 | 0.059773 | 0.050508 | 0.204573 | 0.191721 | 0.106246 | 0.06306 | 0.046623 | 0.031978 | 0 | 0.003357 | 0.339952 | 11,734 | 362 | 83 | 32.414365 | 0.860684 | 0.260695 | 0 | 0.349057 | 0 | 0 | 0.03748 | 0.018861 | 0 | 0 | 0 | 0 | 0.023585 | 1 | 0.198113 | false | 0.066038 | 0.042453 | 0.014151 | 0.358491 | 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 |
c3806b9e128d8474be2a0c8c16ed645a6cd61414 | 333 | py | Python | utilities/poisson.py | lukepinkel/pylmm | b9e896222f077b000f9a752be77cfc9e60b49f19 | [
"MIT"
] | null | null | null | utilities/poisson.py | lukepinkel/pylmm | b9e896222f077b000f9a752be77cfc9e60b49f19 | [
"MIT"
] | null | null | null | utilities/poisson.py | lukepinkel/pylmm | b9e896222f077b000f9a752be77cfc9e60b49f19 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 12 13:34:49 2020
@author: lukepinkel
"""
import numpy as np
import scipy as sp
import scipy.special
def poisson_logp(x, mu, logp=True):
p = sp.special.xlogy(x, mu) - sp.special.gammaln(x + 1) - mu
if logp==False:
p = np.exp(p)
... | 19.588235 | 65 | 0.618619 | 57 | 333 | 3.596491 | 0.684211 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058366 | 0.228228 | 333 | 17 | 66 | 19.588235 | 0.7393 | 0.3003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ed9ef5b5cccf956209757de81563a4bc4e12b59 | 43,492 | py | Python | oscar/apps/offer/models.py | endgame/django-oscar | e5d78436e20b55902537a6cc82edf4e22568f9d6 | [
"BSD-3-Clause"
] | null | null | null | oscar/apps/offer/models.py | endgame/django-oscar | e5d78436e20b55902537a6cc82edf4e22568f9d6 | [
"BSD-3-Clause"
] | null | null | null | oscar/apps/offer/models.py | endgame/django-oscar | e5d78436e20b55902537a6cc82edf4e22568f9d6 | [
"BSD-3-Clause"
] | 1 | 2019-07-10T06:32:14.000Z | 2019-07-10T06:32:14.000Z | from decimal import Decimal as D, ROUND_DOWN, ROUND_UP
import math
import datetime
from django.core import exceptions
from django.template.defaultfilters import slugify
from django.db import models
from django.utils.translation import ungettext, ugettext as _
from django.utils.importlib import import_module
from djang... | 38.150877 | 117 | 0.616849 | 5,011 | 43,492 | 5.156456 | 0.09978 | 0.009985 | 0.01548 | 0.014629 | 0.502458 | 0.452339 | 0.392817 | 0.328921 | 0.283912 | 0.250474 | 0 | 0.005945 | 0.296123 | 43,492 | 1,139 | 118 | 38.184372 | 0.838108 | 0.060724 | 0 | 0.427307 | 0 | 0 | 0.130418 | 0.00137 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001264 | 0.021492 | 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 |
5edd1d618589e67fdc13ac60dffe9edc5736896c | 2,980 | py | Python | scripts/core/soldier.py | whackashoe/entwinement | 4acff2147b86e08e267fc50c327917a338c7bf36 | [
"Unlicense"
] | 1 | 2020-03-10T10:52:13.000Z | 2020-03-10T10:52:13.000Z | scripts/core/soldier.py | whackashoe/entwinement | 4acff2147b86e08e267fc50c327917a338c7bf36 | [
"Unlicense"
] | null | null | null | scripts/core/soldier.py | whackashoe/entwinement | 4acff2147b86e08e267fc50c327917a338c7bf36 | [
"Unlicense"
] | null | null | null | d_soldiers = []
class Soldier:
def __init__(self, id, name, team):
self.id = id
self.name = name
self.team = team
self.x = 0
self.y = 0
self.xVelo = 0
self.yVelo = 0
self.kills = 0
self.deaths = 0
self.alive = 'true'
self.driving = 'false'
self.gun = 0
self.ammo = 0
self.reloading = 'fa... | 18.742138 | 74 | 0.617785 | 473 | 2,980 | 3.82241 | 0.183932 | 0.06969 | 0.059735 | 0.053097 | 0.254425 | 0.191925 | 0.126659 | 0.126659 | 0.126659 | 0.126659 | 0 | 0.006375 | 0.210403 | 2,980 | 158 | 75 | 18.860759 | 0.762006 | 0 | 0 | 0.424 | 0 | 0 | 0.042617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232 | false | 0 | 0 | 0 | 0.296 | 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 |
5edf63e904c948abd2995cb1fd09ff2f09a7f87a | 572 | py | Python | CursoEmVideo/Aula22/ex109/ex109.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula22/ex109/ex109.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula22/ex109/ex109.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | """
Modifique as funções que foram criadas no desafio 107 para
que elas aceitem um parametro a mais, informando se o valor
retornado por elas vai ser ou não formatado pela função
moeda(), desenvolvida no desafio 108.
"""
from Aula22.ex109 import moeda
from Aula22.ex109.titulo import titulo
preco = float(input("Preço... | 28.6 | 59 | 0.737762 | 87 | 572 | 4.850575 | 0.62069 | 0.056872 | 0.07109 | 0.07109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.129371 | 572 | 19 | 60 | 30.105263 | 0.799197 | 0.370629 | 0 | 0 | 0 | 0 | 0.558405 | 0.125356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
5eeebe655d0529cd4e57b3684dd0b12853503ba1 | 442 | py | Python | greedy_algorithms/6_maximum_salary/largest_number.py | Desaiakshata/Algorithms-problems | 90f4e40ba05e4bdfc783614bb70b9156b05eec0b | [
"MIT"
] | null | null | null | greedy_algorithms/6_maximum_salary/largest_number.py | Desaiakshata/Algorithms-problems | 90f4e40ba05e4bdfc783614bb70b9156b05eec0b | [
"MIT"
] | null | null | null | greedy_algorithms/6_maximum_salary/largest_number.py | Desaiakshata/Algorithms-problems | 90f4e40ba05e4bdfc783614bb70b9156b05eec0b | [
"MIT"
] | null | null | null | #Uses python3
import sys
def largest_number(a):
#write your code here
res = ""
while len(a)!=0:
maxa = a[0]
for x in a:
if int(str(x)+str(maxa))>int(str(maxa)+str(x)):
maxa = x
res += str(maxa)
a.remove(str(maxa))
return res
if __name__ == '... | 19.217391 | 59 | 0.506787 | 63 | 442 | 3.396825 | 0.539683 | 0.130841 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.334842 | 442 | 22 | 60 | 20.090909 | 0.714286 | 0.126697 | 0 | 0 | 0 | 0 | 0.023499 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef260b5bf84eb695b2bd8138b23ebab7ec1405b | 4,779 | py | Python | cno/chrutils.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | 2 | 2021-09-15T19:41:01.000Z | 2022-01-12T17:57:08.000Z | cno/chrutils.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | 1 | 2021-10-08T18:06:29.000Z | 2021-10-08T18:48:44.000Z | cno/chrutils.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | null | null | null | #!/usr/bin/env python3
def test():
cedTest = ["U²sgal²sdi ạ²dv¹ne²³li⁴sgi.", "Ụ²wo²³dị³ge⁴ɂi gi²hli a¹ke²³he³²ga na ạ²chu⁴ja.",
"Ạ²ni²³tạɂ³li ạ²ni²sgạ²ya a¹ni²no²hạ²li²³do³²he, ạ²hwi du¹ni²hyọ²he.",
"Sa¹gwu⁴hno ạ²sgạ²ya gạ²lo¹gwe³ ga²ne²he sọ³ɂị³hnv³ hla².",
"Na³hnv³ gạ... | 38.232 | 138 | 0.586943 | 510 | 4,779 | 5.417647 | 0.347059 | 0.136808 | 0.18241 | 0.121607 | 0.345277 | 0.330076 | 0.285197 | 0.271444 | 0.152371 | 0.152371 | 0 | 0.111052 | 0.214271 | 4,779 | 124 | 139 | 38.540323 | 0.624767 | 0.06675 | 0 | 0.154639 | 0 | 0 | 0.310043 | 0.051898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0 | 0.061856 | 0 | 0.185567 | 0.082474 | 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 |
5ef2f309d751c48873dcfc34c92ab93f2ef03256 | 1,793 | py | Python | app/db_con.py | bmugenya/Zup | 1677c1e4e263409f9f5fcaac7411dd403e32650e | [
"MIT"
] | null | null | null | app/db_con.py | bmugenya/Zup | 1677c1e4e263409f9f5fcaac7411dd403e32650e | [
"MIT"
] | 1 | 2020-03-06T17:32:15.000Z | 2020-03-06T17:32:15.000Z | app/db_con.py | bmugenya/Zup | 1677c1e4e263409f9f5fcaac7411dd403e32650e | [
"MIT"
] | null | null | null | import psycopg2
url = "dbname='da43n1slakcjkc' user='msqgxzgmcskvst' host='ec2-54-80-184-43.compute-1.amazonaws.com' port=5432 password='9281f925b1e2298e8d62812d9d4e430c1054db62e918c282d7039fa85b1759fa'"
class database_setup(object):
def __init__(self):
self.conn = psycopg2.connect(url)
self.curs... | 34.480769 | 187 | 0.605131 | 210 | 1,793 | 5.07619 | 0.361905 | 0.131332 | 0.06379 | 0.06379 | 0.375235 | 0.301126 | 0.301126 | 0.301126 | 0.19137 | 0.19137 | 0 | 0.072581 | 0.308422 | 1,793 | 51 | 188 | 35.156863 | 0.787097 | 0 | 0 | 0.225 | 0 | 0.025 | 0.760178 | 0.092582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.05 | 0.025 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5efb1967191c3b432f3eb4d402361c056b7541a9 | 4,085 | py | Python | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T06:41:51.000Z | 2017-03-28T06:41:51.000Z | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | null | null | null | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2016-12-13T21:08:58.000Z | 2016-12-13T21:08:58.000Z | #!/usr/bin/env python
#
# Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1)
# All Rights Reserved.
#
# You may only modify and redistribute this under the terms of any of the
# following licenses(2): Mozilla Public License, V1.1, GNU General
# Public License, V2.0, GNU Lesser General ... | 40.04902 | 124 | 0.682742 | 484 | 4,085 | 5.737603 | 0.423554 | 0.047533 | 0.008642 | 0.015844 | 0.115232 | 0.086424 | 0.086424 | 0.03673 | 0 | 0 | 0 | 0.007505 | 0.184578 | 4,085 | 101 | 125 | 40.445545 | 0.826178 | 0.674663 | 0 | 0.166667 | 0 | 0 | 0.302384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.027778 | 0.027778 | 0.027778 | 0.638889 | 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 |
6f011e9d1e6d5fe45f9c159871d9be7ae9ea35b9 | 1,111 | py | Python | snakes/help_info.py | japinol7/snakes | bb501736027897bacab498ad7bbbe622cf4b9755 | [
"MIT"
] | 12 | 2019-04-15T07:20:31.000Z | 2019-05-18T22:03:35.000Z | snakes/help_info.py | japinol7/snakes | bb501736027897bacab498ad7bbbe622cf4b9755 | [
"MIT"
] | null | null | null | snakes/help_info.py | japinol7/snakes | bb501736027897bacab498ad7bbbe622cf4b9755 | [
"MIT"
] | null | null | null | """Module help_info."""
__author__ = 'Joan A. Pinol (japinol)'
class HelpInfo:
"""Manages information used for help purposes."""
def print_help_keys(self):
print(' F1: \t show a help screen while playing the game'
' t: \t stats on/off\n'
' L_Ctrl + R_Alt + g... | 41.148148 | 73 | 0.417642 | 145 | 1,111 | 3.137931 | 0.537931 | 0.035165 | 0.03956 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.473447 | 1,111 | 26 | 74 | 42.730769 | 0.769231 | 0.054905 | 0 | 0 | 0 | 0 | 0.627838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.095238 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f03742065f7d2c3fc2369fb406d4426cdddbeab | 459 | py | Python | Exercicios em Python/ex080.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | Exercicios em Python/ex080.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | Exercicios em Python/ex080.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | n = []
i = 0
for c in range(0, 5):
n1 = int(input('Digite um valor: '))
if c == 0 or n1 > n[-1]:
n.append(n1)
print(f'Adicionado na posição {c} da lista...')
else:
pos = 0
while pos < len(n):
if n1 <= n[pos]:
n.insert(pos, n1)
print... | 25.5 | 65 | 0.461874 | 68 | 459 | 3.117647 | 0.544118 | 0.084906 | 0.075472 | 0.169811 | 0.254717 | 0.254717 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.392157 | 459 | 17 | 66 | 27 | 0.716846 | 0 | 0 | 0 | 0 | 0 | 0.287582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 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 |
6f03aa2ab2aaee70b468bb66183fe442925a1018 | 13,132 | py | Python | rawal_stuff/src/demo.py | rawalkhirodkar/traffic_light_detection | 0e1e99962477bcf271b22d5205b1e7afab8635ba | [
"MIT"
] | null | null | null | rawal_stuff/src/demo.py | rawalkhirodkar/traffic_light_detection | 0e1e99962477bcf271b22d5205b1e7afab8635ba | [
"MIT"
] | null | null | null | rawal_stuff/src/demo.py | rawalkhirodkar/traffic_light_detection | 0e1e99962477bcf271b22d5205b1e7afab8635ba | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import random
import copy
import dlib
from keras.models import Sequential
from keras.optimizers import SGD
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, F... | 43.919732 | 262 | 0.456823 | 1,388 | 13,132 | 4.172911 | 0.240634 | 0.00518 | 0.0202 | 0.02797 | 0.220822 | 0.194406 | 0.109289 | 0.066126 | 0.056112 | 0.056112 | 0 | 0.046642 | 0.253884 | 13,132 | 298 | 263 | 44.067114 | 0.544499 | 0.223881 | 0 | 0.144144 | 0 | 0 | 0.026513 | 0.013306 | 0 | 0 | 0.000394 | 0 | 0 | 0 | null | null | 0.004505 | 0.072072 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6f073d830bc26d55a9b16a99438ab898d40254be | 3,418 | py | Python | mcpyrate/markers.py | Technologicat/mcpyrate | 8182a8d246554b152e281d0f6c912e35ea58c316 | [
"MIT"
] | 34 | 2020-10-13T19:22:36.000Z | 2022-01-28T00:53:55.000Z | mcpyrate/markers.py | Technologicat/mcpyrate | 8182a8d246554b152e281d0f6c912e35ea58c316 | [
"MIT"
] | 32 | 2020-10-16T16:29:54.000Z | 2022-01-27T15:45:51.000Z | mcpyrate/markers.py | Technologicat/mcpyrate | 8182a8d246554b152e281d0f6c912e35ea58c316 | [
"MIT"
] | 2 | 2020-10-17T19:07:26.000Z | 2021-02-20T01:43:50.000Z | # -*- coding: utf-8; -*-
"""AST markers for internal communication.
*Internal* here means they are to be never passed to Python's `compile`;
macros may use them to work together.
"""
__all__ = ["ASTMarker", "get_markers", "delete_markers", "check_no_markers_remaining"]
import ast
from . import core, utils, walkers
... | 37.977778 | 113 | 0.693681 | 475 | 3,418 | 4.911579 | 0.429474 | 0.034291 | 0.018003 | 0.019717 | 0.023146 | 0.023146 | 0 | 0 | 0 | 0 | 0 | 0.00075 | 0.219427 | 3,418 | 89 | 114 | 38.404494 | 0.873688 | 0.550614 | 0 | 0.064516 | 0 | 0 | 0.091298 | 0.018545 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0 | 0.483871 | 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 |
6f0bb8acf71ebb128d83c12c5909aa37ad5afe8a | 940 | py | Python | sizer.py | riffcc/librarian | f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528 | [
"MIT"
] | null | null | null | sizer.py | riffcc/librarian | f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528 | [
"MIT"
] | null | null | null | sizer.py | riffcc/librarian | f3cf8f4cc9f9a717e5f807a1d8558eb8c4e4d528 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Fetch torrent sizes
# TODO: Report number of files before we go etc
import os
from torrentool.api import Torrent
from fnmatch import fnmatch
root = '/opt/radio/collections'
pattern = "*.torrent"
alltorrentsize = 0
print("Thanks for using The Librarian.")
for path, subdirs, files in os.walk(root... | 34.814815 | 172 | 0.726596 | 127 | 940 | 5.267717 | 0.488189 | 0.049327 | 0.056801 | 0.041854 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007702 | 0.171277 | 940 | 27 | 173 | 34.814815 | 0.851091 | 0.135106 | 0 | 0 | 0 | 0 | 0.297899 | 0.197775 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1051aadde1f5582ce2b30a763b8cd2ec505a2e | 1,373 | py | Python | tests/test_renderer.py | 0xflotus/maildown | fa17ce6a29458da549a145741db8e5092def2176 | [
"MIT"
] | 626 | 2019-05-08T22:34:45.000Z | 2022-03-31T07:29:35.000Z | tests/test_renderer.py | pythonthings/maildown | 4e0caf297bdf264ab5ead537eb45d20f187971a1 | [
"MIT"
] | 12 | 2019-04-30T20:47:17.000Z | 2019-06-27T11:19:46.000Z | tests/test_renderer.py | pythonthings/maildown | 4e0caf297bdf264ab5ead537eb45d20f187971a1 | [
"MIT"
] | 36 | 2019-05-08T23:50:41.000Z | 2021-07-30T17:46:24.000Z | import mock
from maildown import renderer
import mistune
import pygments
from pygments import lexers
from pygments.formatters import html
import premailer
import jinja2
def test_highlight_renderer(monkeypatch):
monkeypatch.setattr(mistune, "escape", mock.MagicMock())
monkeypatch.setattr(lexers, "get_lexer_by_... | 33.487805 | 72 | 0.758194 | 156 | 1,373 | 6.487179 | 0.275641 | 0.142292 | 0.142292 | 0.183794 | 0.059289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004163 | 0.125273 | 1,373 | 40 | 73 | 34.325 | 0.838468 | 0 | 0 | 0 | 0 | 0 | 0.083758 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.064516 | false | 0 | 0.258065 | 0 | 0.322581 | 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 |
6f149a0dd9e45b60d9d630858342198ce7d83ebf | 1,709 | py | Python | xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/xm-test/tests/xapi/01_xapi-vm_basic.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #!/usr/bin/python
# Copyright (C) International Business Machines Corp., 2006
# Author: Stefan Berger <stefanb@us.ibm.com>
# Basic VM creation test
from XmTestLib import xapi
from XmTestLib.XenAPIDomain import XmTestAPIDomain
from XmTestLib import *
from xen.xend import XendAPIConstants
import commands
import os
tr... | 27.564516 | 99 | 0.774137 | 250 | 1,709 | 5.08 | 0.352 | 0.094488 | 0.138583 | 0.151181 | 0.491339 | 0.491339 | 0.491339 | 0.472441 | 0.472441 | 0.472441 | 0 | 0.00267 | 0.123464 | 1,709 | 61 | 100 | 28.016393 | 0.845127 | 0.114687 | 0 | 0.333333 | 0 | 0 | 0.143899 | 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 |
6f177aacdeb67b4df7640983b24e1411fe279553 | 2,853 | py | Python | app/models/fragment.py | saury2013/Memento | dbb2031a5aff3064f40bcb5afe631de8724a547e | [
"MIT"
] | null | null | null | app/models/fragment.py | saury2013/Memento | dbb2031a5aff3064f40bcb5afe631de8724a547e | [
"MIT"
] | null | null | null | app/models/fragment.py | saury2013/Memento | dbb2031a5aff3064f40bcb5afe631de8724a547e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
from sqlalchemy.dialects.mysql import LONGTEXT
from sqlalchemy.orm import load_only
from sqlalchemy import func
from flask import abort
from markdown import Markdown,markdown
from app.models import db,fragment_tags_table
from app.models.tag import Tag
from app.whoo... | 38.04 | 95 | 0.660007 | 340 | 2,853 | 5.435294 | 0.326471 | 0.051948 | 0.04329 | 0.045996 | 0.267857 | 0.266775 | 0.250541 | 0.176948 | 0.176948 | 0.061688 | 0 | 0.007159 | 0.216614 | 2,853 | 74 | 96 | 38.554054 | 0.819687 | 0.087627 | 0 | 0.035088 | 0 | 0 | 0.057529 | 0.030116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.175439 | 0.017544 | 0.614035 | 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 |
6f1b8a527ec012630d1bead41b940dac1320a132 | 4,617 | py | Python | source1/bsp/entities/portal2_entity_handlers.py | tltneon/SourceIO | 418224918c2b062a4c78a41d4d65329ba2decb22 | [
"MIT"
] | 199 | 2019-04-02T02:30:58.000Z | 2022-03-30T21:29:49.000Z | source1/bsp/entities/portal2_entity_handlers.py | syborg64/SourceIO | e4ba86d801f518e192260af08ef533759c2e1cc3 | [
"MIT"
] | 113 | 2019-03-03T19:36:25.000Z | 2022-03-31T19:44:05.000Z | source1/bsp/entities/portal2_entity_handlers.py | syborg64/SourceIO | e4ba86d801f518e192260af08ef533759c2e1cc3 | [
"MIT"
] | 38 | 2019-05-15T16:49:30.000Z | 2022-03-22T03:40:43.000Z | import math
from mathutils import Euler
import bpy
from .portal2_entity_classes import *
from .portal_entity_handlers import PortalEntityHandler
local_entity_lookup_table = PortalEntityHandler.entity_lookup_table.copy()
local_entity_lookup_table.update(entity_class_handle)
class Portal2EntityHandler(PortalEntityHan... | 53.068966 | 109 | 0.753736 | 637 | 4,617 | 4.971743 | 0.142857 | 0.102305 | 0.057468 | 0.083991 | 0.695295 | 0.598042 | 0.581307 | 0.539627 | 0.539627 | 0.539627 | 0 | 0.005101 | 0.150747 | 4,617 | 86 | 110 | 53.686047 | 0.802601 | 0 | 0 | 0.402985 | 0 | 0 | 0.09465 | 0.039203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.074627 | 0 | 0.358209 | 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 |
6f1f9754bb7f6d41b30e4a4c10cead5e654ca04e | 2,743 | py | Python | edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/cave_static/user/GFETEST/gfe/userPython/smartTools/ExUtil1.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | 34.2875 | 96 | 0.596792 | 346 | 2,743 | 4.653179 | 0.523121 | 0.012422 | 0.019876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030258 | 0.265038 | 2,743 | 79 | 97 | 34.721519 | 0.768353 | 0.566168 | 0 | 0 | 0 | 0 | 0.08559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f24c0d9627e8e593e0f3f03a5c6df58f6f65c2e | 2,922 | py | Python | lib/vapi_cli/users.py | nogayama/vision-tools | f3041b519f30037d5b6390bce36a7f5efd3ed6ae | [
"Apache-2.0"
] | 15 | 2020-03-22T18:25:27.000Z | 2021-12-03T05:49:32.000Z | lib/vapi_cli/users.py | nogayama/vision-tools | f3041b519f30037d5b6390bce36a7f5efd3ed6ae | [
"Apache-2.0"
] | 8 | 2020-04-04T18:11:56.000Z | 2021-07-27T18:06:47.000Z | lib/vapi_cli/users.py | nogayama/vision-tools | f3041b519f30037d5b6390bce36a7f5efd3ed6ae | [
"Apache-2.0"
] | 19 | 2020-03-20T23:36:32.000Z | 2022-01-10T20:38:48.000Z | #!/usr/bin/env python3
# IBM_PROLOG_BEGIN_TAG
#
# Copyright 2019,2020 IBM International Business Machines Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 29.816327 | 97 | 0.687543 | 411 | 2,922 | 4.766423 | 0.425791 | 0.036753 | 0.032159 | 0.036753 | 0.075549 | 0.040837 | 0.040837 | 0.040837 | 0 | 0 | 0 | 0.011583 | 0.202259 | 2,922 | 97 | 98 | 30.123711 | 0.828829 | 0.326489 | 0 | 0.038462 | 0 | 0 | 0.382156 | 0.0459 | 0 | 0 | 0.005157 | 0 | 0 | 1 | 0.038462 | false | 0.057692 | 0.096154 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f2fda5d1a7f7912eef13fc0ff8b8f413ac5c9a7 | 1,373 | py | Python | corehq/form_processor/migrations/0049_case_attachment_props.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/form_processor/migrations/0049_case_attachment_props.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/form_processor/migrations/0049_case_attachment_props.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import models, migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('form_processor', '0048_attachment_content_length_blob_id'),
]
operati... | 29.212766 | 69 | 0.600874 | 117 | 1,373 | 6.803419 | 0.393162 | 0.113065 | 0.144472 | 0.169598 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0 | 0.008325 | 0.300073 | 1,373 | 46 | 70 | 29.847826 | 0.819979 | 0.015295 | 0 | 0.6 | 0 | 0 | 0.145926 | 0.028148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.175 | 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 |
6f35ce7e4cec8e809fb6bd6d1db0395eade06403 | 633 | py | Python | misc/fill_blanks.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | null | null | null | misc/fill_blanks.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | null | null | null | misc/fill_blanks.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | 1 | 2020-04-05T06:22:18.000Z | 2020-04-05T06:22:18.000Z | # Given an array containing None values fill in the None values with most recent
# non None value in the array
from random import random
def generate_sample(n):
rand = 0.9
while n:
yield int(rand * 10) if rand % 1 > 1 / 3 else None
rand = random()
n -= 1
def fill1(array):
for i i... | 22.607143 | 81 | 0.593997 | 101 | 633 | 3.712871 | 0.475248 | 0.08 | 0.048 | 0.064 | 0.16 | 0.16 | 0.16 | 0.16 | 0.16 | 0 | 0 | 0.031461 | 0.296998 | 633 | 27 | 82 | 23.444444 | 0.811236 | 0.169036 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3d9e5be4e02104620356819d1fd22753eef212 | 3,349 | py | Python | dbSchema.py | zikasak/ReadOnlyBot | 912403a5d6386c1ce691bbe22dad660af49b26e8 | [
"MIT"
] | 1 | 2020-12-17T20:50:29.000Z | 2020-12-17T20:50:29.000Z | dbSchema.py | zikasak/ReadOnlyBot | 912403a5d6386c1ce691bbe22dad660af49b26e8 | [
"MIT"
] | null | null | null | dbSchema.py | zikasak/ReadOnlyBot | 912403a5d6386c1ce691bbe22dad660af49b26e8 | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import Column, Integer, Boolean, ForeignKey, String, DateTime, UniqueConstraint, ForeignKeyConstraint
from sqlalchemy.orm import relationship
from dbConfig import Base, engine
class GroupStatus(Base):
__tablename__ = "groupstatus"
id = Column(Integer, primary_key=True)
sta... | 40.349398 | 121 | 0.701702 | 389 | 3,349 | 5.77892 | 0.236504 | 0.092527 | 0.093416 | 0.048932 | 0.329181 | 0.296263 | 0.255783 | 0.192171 | 0.192171 | 0.146797 | 0 | 0.000729 | 0.181248 | 3,349 | 82 | 122 | 40.841463 | 0.81911 | 0 | 0 | 0.123077 | 0 | 0 | 0.162437 | 0.029561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.061538 | 0.015385 | 0.815385 | 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 |
6f459b6385eeaec430778e2b8c2a198dc774b06f | 1,280 | py | Python | tests/ws/TestWebsocketRegisterAgent.py | sinri/nehushtan | 6fda496e16a8d443a86c617173d35f31c392beb6 | [
"MIT"
] | null | null | null | tests/ws/TestWebsocketRegisterAgent.py | sinri/nehushtan | 6fda496e16a8d443a86c617173d35f31c392beb6 | [
"MIT"
] | 1 | 2020-11-20T03:10:23.000Z | 2020-11-20T09:30:34.000Z | tests/ws/TestWebsocketRegisterAgent.py | sinri/nehushtan | 6fda496e16a8d443a86c617173d35f31c392beb6 | [
"MIT"
] | 1 | 2021-10-13T10:16:58.000Z | 2021-10-13T10:16:58.000Z | import uuid
from typing import Dict, List
from nehushtan.ws.NehushtanWebsocketConnectionEntity import NehushtanWebsocketConnectionEntity
class TestWebsocketRegisterAgent:
def __init__(self):
self.__map: Dict[str, NehushtanWebsocketConnectionEntity] = {}
self.agent_identity = str(uuid.uuid4())
... | 36.571429 | 99 | 0.682813 | 134 | 1,280 | 6.298507 | 0.328358 | 0.049763 | 0.100711 | 0.170616 | 0.232227 | 0.232227 | 0 | 0 | 0 | 0 | 0 | 0.000986 | 0.207813 | 1,280 | 34 | 100 | 37.647059 | 0.831361 | 0 | 0 | 0 | 0 | 0 | 0.227344 | 0.153125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0 | 0.461538 | 0.153846 | 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 |
6f480b5d92cd89679ad9577e9f8230981a8ae4ea | 1,641 | py | Python | src/geo_testing/test_scripts/psgs_big.py | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 70 | 2015-01-21T12:24:50.000Z | 2022-03-16T02:10:45.000Z | src/geo_testing/test_scripts/psgs_big.py | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 8 | 2015-04-22T13:14:30.000Z | 2021-11-23T12:16:32.000Z | src/geo_testing/test_scripts/psgs_big.py | hpgl/hpgl | 72d8c4113c242295de740513093f5779c94ba84a | [
"BSD-3-Clause"
] | 18 | 2015-02-15T18:04:31.000Z | 2021-01-16T08:54:32.000Z | #
#
# Copyright 2009 HPGL Team
#
# This file is part of HPGL (High Perfomance Geostatistics Library).
#
# HPGL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License.
#
# HPGL is ... | 33.489796 | 229 | 0.702011 | 252 | 1,641 | 4.448413 | 0.531746 | 0.013381 | 0.03479 | 0.050847 | 0.171276 | 0.148082 | 0.055308 | 0 | 0 | 0 | 0 | 0.050483 | 0.179159 | 1,641 | 48 | 230 | 34.1875 | 0.781737 | 0.444851 | 0 | 0 | 0 | 0 | 0.276596 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
6f4c1702195066e993129a8eb57596bee6bd8234 | 2,371 | py | Python | partycipe/migrations/0001_initial.py | spexxsoldier51/PartyCipe | 5b8038db408fca1e1d568d6520daaf04889ccef0 | [
"CC0-1.0"
] | null | null | null | partycipe/migrations/0001_initial.py | spexxsoldier51/PartyCipe | 5b8038db408fca1e1d568d6520daaf04889ccef0 | [
"CC0-1.0"
] | null | null | null | partycipe/migrations/0001_initial.py | spexxsoldier51/PartyCipe | 5b8038db408fca1e1d568d6520daaf04889ccef0 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-02 17:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 43.907407 | 126 | 0.578237 | 225 | 2,371 | 5.937778 | 0.342222 | 0.099551 | 0.103293 | 0.116766 | 0.520958 | 0.520958 | 0.520958 | 0.460329 | 0.460329 | 0.460329 | 0 | 0.013609 | 0.287221 | 2,371 | 53 | 127 | 44.735849 | 0.776923 | 0.018979 | 0 | 0.456522 | 1 | 0 | 0.088507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.152174 | 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 |
6f52a901e875d32b20f9451889c4b2196619f283 | 3,879 | py | Python | synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py | Chiel92/MusicTheory | ddaaa60042c2db3522144e90ceabcd1bbd9818c3 | [
"MIT"
] | null | null | null | synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py | Chiel92/MusicTheory | ddaaa60042c2db3522144e90ceabcd1bbd9818c3 | [
"MIT"
] | null | null | null | synthesizing/gui/python-portmidi-0.0.7/test_pyportmidi.py | Chiel92/MusicTheory | ddaaa60042c2db3522144e90ceabcd1bbd9818c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# test code for PyPortMidi
# a port of a subset of test.c provided with PortMidi
# John Harrison
# harrison [at] media [dot] mit [dot] edu
# March 15, 2005: accommodate for SysEx messages and preferred list formats
# SysEx test code contributed by Markus Pfaff
# February 27, 2005... | 38.405941 | 105 | 0.63109 | 555 | 3,879 | 4.378378 | 0.36036 | 0.042798 | 0.048148 | 0.059259 | 0.238272 | 0.198354 | 0.127572 | 0.12428 | 0.065021 | 0.065021 | 0 | 0.053902 | 0.220418 | 3,879 | 100 | 106 | 38.79 | 0.749669 | 0.203403 | 0 | 0.115385 | 0 | 0.012821 | 0.260983 | 0.025057 | 0 | 0 | 0.018223 | 0 | 0 | 0 | null | null | 0.025641 | 0.038462 | null | null | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6f54793f102a2f9346990845e8357d9f1db537d3 | 4,330 | py | Python | ck_airport.py | 58565856/checkinpanel | 58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72 | [
"MIT"
] | 3 | 2022-02-08T16:11:43.000Z | 2022-03-23T16:18:59.000Z | ck_airport.py | 58565856/checkinpanel | 58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72 | [
"MIT"
] | null | null | null | ck_airport.py | 58565856/checkinpanel | 58f2292d9c4d65f15ffd6bc4fa4b9f23214d3d72 | [
"MIT"
] | 2 | 2022-02-01T05:35:56.000Z | 2022-02-10T01:37:38.000Z | # -*- coding: utf-8 -*-
"""
:author @Icrons
cron: 20 10 * * *
new Env('机场签到');
"""
import json
import re
import traceback
import requests
import urllib3
from notify_mtr import send
from utils import get_data
urllib3.disable_warnings()
class SspanelQd(object):
def __init__(self, check_items):
self.chec... | 31.151079 | 138 | 0.505081 | 484 | 4,330 | 4.390496 | 0.303719 | 0.025412 | 0.029647 | 0.029647 | 0.283765 | 0.262588 | 0.217412 | 0.158118 | 0.131765 | 0.131765 | 0 | 0.025678 | 0.352425 | 4,330 | 138 | 139 | 31.376812 | 0.732168 | 0.019169 | 0 | 0.214953 | 0 | 0.018692 | 0.189664 | 0.034617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0.056075 | 0.065421 | 0 | 0.168224 | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6f5c96a2170db005f0df74623642b0c6df9f9c2a | 433 | py | Python | setup.py | astrodeepnet/sbi_experiments | 70af041da08565ba15e0c011145b11ab3fd973d7 | [
"MIT"
] | 3 | 2021-12-11T20:57:07.000Z | 2021-12-14T22:20:42.000Z | setup.py | astrodeepnet/sbi_experiments | 70af041da08565ba15e0c011145b11ab3fd973d7 | [
"MIT"
] | 20 | 2021-11-15T17:08:54.000Z | 2022-03-25T10:32:52.000Z | setup.py | astrodeepnet/sbi_experiments | 70af041da08565ba15e0c011145b11ab3fd973d7 | [
"MIT"
] | 3 | 2021-11-22T21:44:04.000Z | 2021-12-14T10:31:46.000Z | from setuptools import setup, find_packages
setup(
name='SBIExperiments',
version='0.0.1',
url='https://github.com/astrodeepnet/sbi_experiments',
author='Justine Zeghal and friends',
description='Package for numerical experiments of SBI tools',
packages=find_packages(),
install_requires=[
'numpy>=1.1... | 24.055556 | 63 | 0.681293 | 58 | 433 | 5 | 0.724138 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051771 | 0.152425 | 433 | 17 | 64 | 25.470588 | 0.73842 | 0 | 0 | 0 | 0 | 0 | 0.508083 | 0.069284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
6f6c63911e71ae7c84e18bedf35df7f0d63d41aa | 437 | py | Python | serialTest.py | fmuno003/SeniorDesign | 113bdcf4cc906042f44736a1ffddb6ffff3a217e | [
"BSD-3-Clause"
] | 1 | 2019-04-29T16:07:51.000Z | 2019-04-29T16:07:51.000Z | serialTest.py | fmuno003/SeniorDesign | 113bdcf4cc906042f44736a1ffddb6ffff3a217e | [
"BSD-3-Clause"
] | null | null | null | serialTest.py | fmuno003/SeniorDesign | 113bdcf4cc906042f44736a1ffddb6ffff3a217e | [
"BSD-3-Clause"
] | null | null | null | import serial
import RPi.GPIO as GPIO
import time
ser=serial.Serial("/dev/ttyACM0",9600)
start_time = time.time()
imu = open("IMU.txt","w")
while time.time() - start_time <= 1:
ser.readline()
while time.time() - start_time <= 8:
read_ser=ser.readline()
if float(read_ser) == 0.00:
pa... | 19.863636 | 39 | 0.578947 | 63 | 437 | 3.920635 | 0.47619 | 0.129555 | 0.105263 | 0.145749 | 0.178138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03096 | 0.26087 | 437 | 21 | 40 | 20.809524 | 0.733746 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f70b2504b0ddf0927280e069e308de02195aea2 | 447 | py | Python | linkit/models.py | what-digital/linkit | 58fb7dc966e7b76b654c9bc5e52253eb81731e98 | [
"MIT"
] | 8 | 2019-06-11T14:09:12.000Z | 2021-09-09T09:37:47.000Z | linkit/models.py | what-digital/linkit | 58fb7dc966e7b76b654c9bc5e52253eb81731e98 | [
"MIT"
] | 7 | 2020-02-12T02:55:11.000Z | 2020-08-27T09:54:54.000Z | linkit/models.py | what-digital/linkit | 58fb7dc966e7b76b654c9bc5e52253eb81731e98 | [
"MIT"
] | 2 | 2020-06-18T09:54:20.000Z | 2022-02-17T08:33:13.000Z | from django.db import models
from filer.fields.file import FilerFileField
class FakeLink(models.Model):
"""
In our widget we need to manually render a AdminFileFormField. Basically for every other Field type this is not
a problem at all, but Failer needs a rel attribute which consists of a reverse relatio... | 37.25 | 115 | 0.753915 | 67 | 447 | 5 | 0.791045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187919 | 447 | 11 | 116 | 40.636364 | 0.922865 | 0.519016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f73d54d3a1a664d942bd0ee6d760eedb4233760 | 1,054 | py | Python | ecommerce/User/admin.py | AwaleRohin/commerce-fm | cb5b43c999ae5be37957b29de9c07d5affc66fb0 | [
"MIT"
] | 18 | 2020-12-05T14:12:32.000Z | 2022-03-11T20:15:22.000Z | ecommerce/User/admin.py | AwaleRohin/commerce-fm | cb5b43c999ae5be37957b29de9c07d5affc66fb0 | [
"MIT"
] | 1 | 2021-07-22T09:23:13.000Z | 2021-07-22T09:23:13.000Z | ecommerce/User/admin.py | shakyasaijal/commerce-fm | 358b6925f4b569dc374010d7cc7d4d560ede2b48 | [
"MIT"
] | 13 | 2020-10-15T10:17:35.000Z | 2022-01-29T06:56:24.000Z | from django.contrib import admin
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import models
if settings.HAS_ADDITIONAL_USER_DATA:
try:
class UserProfileInline(admin.TabularInline):
model = models.UserProfile
extra = 0
except (... | 31 | 80 | 0.712524 | 125 | 1,054 | 5.864 | 0.56 | 0.049113 | 0.092769 | 0.125512 | 0.084584 | 0.084584 | 0 | 0 | 0 | 0 | 0 | 0.001159 | 0.181214 | 1,054 | 34 | 81 | 31 | 0.848204 | 0 | 0 | 0.08 | 0 | 0 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0.16 | 0 | 0.48 | 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 |
488b91ca767e9611a3e2258e676d32094fa0687f | 4,023 | py | Python | python/svm.py | mwalton/em-machineLearning | efd76961fa3b78e042ca481733152a683074d15c | [
"MIT"
] | null | null | null | python/svm.py | mwalton/em-machineLearning | efd76961fa3b78e042ca481733152a683074d15c | [
"MIT"
] | null | null | null | python/svm.py | mwalton/em-machineLearning | efd76961fa3b78e042ca481733152a683074d15c | [
"MIT"
] | null | null | null | import numpy as np
import argparse
import os.path
import plots as plot
from sklearn.preprocessing import StandardScaler
from sklearn.grid_search import GridSearchCV
import time
from sklearn import svm
from sklearn.metrics import classification_report
from sklearn.metrics import accuracy_score
from sklearn.externals imp... | 35.60177 | 94 | 0.675864 | 551 | 4,023 | 4.871143 | 0.368421 | 0.014903 | 0.038748 | 0.029806 | 0.124441 | 0.078987 | 0.017139 | 0.017139 | 0 | 0 | 0 | 0.012026 | 0.193885 | 4,023 | 112 | 95 | 35.919643 | 0.815603 | 0.137708 | 0 | 0.025974 | 0 | 0 | 0.230235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.168831 | null | null | 0.155844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4893210d0b7c805a88b25dd46688e23dd6ed78a0 | 6,517 | py | Python | safe_control_gym/math_and_models/normalization.py | catgloss/safe-control-gym | b3f69bbed8577f64fc36d23677bf50027e991b2d | [
"MIT"
] | 120 | 2021-08-16T13:55:47.000Z | 2022-03-31T10:31:42.000Z | safe_control_gym/math_and_models/normalization.py | catgloss/safe-control-gym | b3f69bbed8577f64fc36d23677bf50027e991b2d | [
"MIT"
] | 10 | 2021-10-19T07:19:23.000Z | 2022-03-24T18:43:02.000Z | safe_control_gym/math_and_models/normalization.py | catgloss/safe-control-gym | b3f69bbed8577f64fc36d23677bf50027e991b2d | [
"MIT"
] | 24 | 2021-08-28T17:21:09.000Z | 2022-03-31T10:31:44.000Z | """Perform normalization on inputs or rewards.
"""
import numpy as np
import torch
from gym.spaces import Box
def normalize_angle(x):
"""Wraps input angle to [-pi, pi].
"""
return ((x + np.pi) % (2 * np.pi)) - np.pi
class RunningMeanStd():
"""Calulates the running mean and std of a data stream.
... | 27.041494 | 98 | 0.584778 | 828 | 6,517 | 4.437198 | 0.240338 | 0.039194 | 0.020958 | 0.020686 | 0.21203 | 0.175014 | 0.132553 | 0.125749 | 0.125749 | 0.110506 | 0 | 0.015145 | 0.300905 | 6,517 | 240 | 99 | 27.154167 | 0.791264 | 0.343563 | 0 | 0.117021 | 0 | 0 | 0.012609 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 1 | 0.223404 | false | 0.010638 | 0.031915 | 0.010638 | 0.414894 | 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 |
48935c63c2620e531593d07e9af2473ca805cfae | 5,125 | py | Python | networking/pycat.py | itsbriany/PythonSec | eda5dc3f7ac069cd77d9525e93be5cfecc00db16 | [
"MIT"
] | 1 | 2016-01-12T19:38:59.000Z | 2016-01-12T19:38:59.000Z | networking/pycat.py | itsbriany/Security-Tools | eda5dc3f7ac069cd77d9525e93be5cfecc00db16 | [
"MIT"
] | null | null | null | networking/pycat.py | itsbriany/Security-Tools | eda5dc3f7ac069cd77d9525e93be5cfecc00db16 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket
import threading
import sys # Support command line args
import getopt # Support command line option parsing
import os # Kill the application
import signal # Catch an interrupt
import time # Thread sleeping
# Global variables definitions
target = ""
port = False
listen = Fal... | 23.617512 | 121 | 0.607415 | 672 | 5,125 | 4.598214 | 0.321429 | 0.038835 | 0.015534 | 0.01165 | 0.080583 | 0.05534 | 0.027184 | 0.027184 | 0 | 0 | 0 | 0.005358 | 0.198829 | 5,125 | 216 | 122 | 23.726852 | 0.747199 | 0.185756 | 0 | 0.323308 | 0 | 0 | 0.226139 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0 | null | null | 0 | 0.052632 | null | null | 0.225564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
48938090ba940fdf1245ccfb1e1b41da0dfdb8ec | 4,356 | py | Python | code/striatal_model/neuron_model_tuning.py | weidel-p/go-robot-nogo-robot | 026f1f753125089a03504320cc94a76888a0efc5 | [
"MIT"
] | 1 | 2020-09-23T22:16:10.000Z | 2020-09-23T22:16:10.000Z | code/striatal_model/neuron_model_tuning.py | weidel-p/go-robot-nogo-robot | 026f1f753125089a03504320cc94a76888a0efc5 | [
"MIT"
] | null | null | null | code/striatal_model/neuron_model_tuning.py | weidel-p/go-robot-nogo-robot | 026f1f753125089a03504320cc94a76888a0efc5 | [
"MIT"
] | null | null | null | import nest
import pylab as pl
import pickle
from nest import voltage_trace
from nest import raster_plot as rplt
import numpy as np
from params import *
seed = [np.random.randint(0, 9999999)] * num_threads
def calcFI():
#amplitudesList = np.arange(3.5,4.5,0.1)
amplitudesList = np.arange(100, 500, 50.)
... | 32.75188 | 97 | 0.597107 | 601 | 4,356 | 4.206323 | 0.261231 | 0.056566 | 0.035601 | 0.031646 | 0.554589 | 0.498418 | 0.462025 | 0.41693 | 0.391614 | 0.357595 | 0 | 0.055245 | 0.218779 | 4,356 | 132 | 98 | 33 | 0.687629 | 0.108127 | 0 | 0.304348 | 0 | 0 | 0.149096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076087 | 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 |
4895a29e1cbfd7f3cbc0290d21c2ee285348e317 | 385 | py | Python | students/admin.py | eustone/sms | 0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f | [
"Apache-2.0"
] | null | null | null | students/admin.py | eustone/sms | 0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f | [
"Apache-2.0"
] | 7 | 2021-03-19T01:09:50.000Z | 2022-03-12T00:20:49.000Z | students/admin.py | eustone/sms | 0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Student
# Register your models here.
class StudentAdmin(admin.ModelAdmin):
list_display = ('first_name','middle_name',
'last_name','identification_number')
search_fields = ('first_name','middle_name',
'last_name','ide... | 27.5 | 56 | 0.696104 | 42 | 385 | 6.142857 | 0.571429 | 0.069767 | 0.116279 | 0.147287 | 0.364341 | 0.364341 | 0.364341 | 0.364341 | 0 | 0 | 0 | 0 | 0.197403 | 385 | 13 | 57 | 29.615385 | 0.834951 | 0.067532 | 0 | 0.25 | 0 | 0 | 0.286517 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48976b6d6b5db52348271fa437cb2c3858865703 | 1,723 | py | Python | proof_of_work/multiagent/turn_based/v6/environmentv6.py | michaelneuder/parkes_lab_fa19 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | [
"MIT"
] | null | null | null | proof_of_work/multiagent/turn_based/v6/environmentv6.py | michaelneuder/parkes_lab_fa19 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | [
"MIT"
] | null | null | null | proof_of_work/multiagent/turn_based/v6/environmentv6.py | michaelneuder/parkes_lab_fa19 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | [
"MIT"
] | null | null | null | import numpy as np
np.random.seed(0)
class Environment(object):
def __init__(self, alpha, T, mining_cost=0.5):
self.alpha = alpha
self.T = T
self.current_state = None
self.mining_cost = mining_cost
def reset(self):
self.current_state = (0, 0)
return self.current... | 31.327273 | 77 | 0.585607 | 231 | 1,723 | 4.190476 | 0.220779 | 0.159091 | 0.231405 | 0.070248 | 0.411157 | 0.296488 | 0.200413 | 0.167355 | 0.167355 | 0.167355 | 0 | 0.032312 | 0.299478 | 1,723 | 55 | 78 | 31.327273 | 0.769677 | 0 | 0 | 0.191489 | 0 | 0 | 0.00464 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.148936 | false | 0 | 0.021277 | 0 | 0.382979 | 0.06383 | 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 |
48a84cb7d32acc3cbc3af963ca0e81cc7ff163d9 | 424 | py | Python | poem/Poem/urls_public.py | kzailac/poem | 9f898e3cc3378ef1c49517b4cf6335a93a3f49b0 | [
"Apache-2.0"
] | null | null | null | poem/Poem/urls_public.py | kzailac/poem | 9f898e3cc3378ef1c49517b4cf6335a93a3f49b0 | [
"Apache-2.0"
] | null | null | null | poem/Poem/urls_public.py | kzailac/poem | 9f898e3cc3378ef1c49517b4cf6335a93a3f49b0 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import include
from django.http import HttpResponseRedirect
from django.urls import re_path
from Poem.poem_super_admin.admin import mysuperadmin
urlpatterns = [
re_path(r'^$', lambda x: HttpResponseRedirect('/poem/superadmin/')),
re_path(r'^superadmin/', mysuperadmin.urls),
re_path(r... | 32.615385 | 72 | 0.688679 | 50 | 424 | 5.72 | 0.44 | 0.083916 | 0.073427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.179245 | 424 | 12 | 73 | 35.333333 | 0.813218 | 0 | 0 | 0 | 0 | 0 | 0.148585 | 0 | 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 |
48ae6c1d7db7737a61286051c58656fa1c61b3ae | 387 | py | Python | osu/osu_overlay.py | HQupgradeHQ/Daylight | a110a0f618877f5cccd66c4d75115c765d8f62a0 | [
"MIT"
] | 2 | 2020-07-30T14:07:19.000Z | 2020-08-01T05:28:29.000Z | osu/osu_overlay.py | HQupgradeHQ/Daylight | a110a0f618877f5cccd66c4d75115c765d8f62a0 | [
"MIT"
] | null | null | null | osu/osu_overlay.py | HQupgradeHQ/Daylight | a110a0f618877f5cccd66c4d75115c765d8f62a0 | [
"MIT"
] | null | null | null | import mpv
import keyboard
import time
p = mpv.MPV()
p.play("song_name.mp4")
def play_pause():
p.pause = not p.pause
keyboard.add_hotkey("e", play_pause)
def full():
p.fullscreen = not p.fullscreen
keyboard.add_hotkey("2", full)
def go_to_start():
p.time_pos = 2
keyb... | 12.09375 | 38 | 0.620155 | 60 | 387 | 3.816667 | 0.433333 | 0.144105 | 0.222707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024221 | 0.25323 | 387 | 31 | 39 | 12.483871 | 0.768166 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.375 | 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 |
48bc4c72c304a6d7aeeb0dab781f82a2616fe4d3 | 4,766 | py | Python | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | 4 | 2015-01-06T01:39:12.000Z | 2019-12-09T10:27:44.000Z | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | null | null | null | test/test_memory_leaks.py | elventear/psutil | c159f3352dc5f699143960840e4f6535174690ed | [
"BSD-3-Clause"
] | 2 | 2016-10-21T03:15:34.000Z | 2018-12-10T03:40:50.000Z | #!/usr/bin/env python
#
# $Id$
#
"""
Note: this is targeted for python 2.x.
To run it under python 3.x you need to use 2to3 tool first:
$ 2to3 -w test/test_memory_leaks.py
"""
import os
import gc
import sys
import unittest
import psutil
from test_psutil import reap_children, skipUnless, skipIf, \
... | 24.822917 | 82 | 0.599245 | 571 | 4,766 | 4.831874 | 0.220666 | 0.065966 | 0.135919 | 0.045669 | 0.471185 | 0.391446 | 0.355926 | 0.355926 | 0.355926 | 0.355926 | 0 | 0.011417 | 0.283256 | 4,766 | 191 | 83 | 24.95288 | 0.796253 | 0.070709 | 0 | 0.460317 | 0 | 0 | 0.073459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246032 | false | 0 | 0.047619 | 0 | 0.309524 | 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 |
48bfa6a9870aa2f95044df7a3145739de4a0dc15 | 1,681 | py | Python | tests/molecular/molecules/building_block/test_with_functional_groups.py | andrewtarzia/stk | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/building_block/test_with_functional_groups.py | JelfsMaterialsGroup/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/building_block/test_with_functional_groups.py | supramolecular-toolkit/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | from ..utilities import (
has_same_structure,
is_equivalent_molecule,
is_equivalent_building_block,
are_equivalent_functional_groups,
)
def test_with_functional_groups(building_block, get_functional_groups):
"""
Test :meth:`.BuildingBlock.with_functional_groups`.
Parameters
----------... | 26.68254 | 71 | 0.702558 | 182 | 1,681 | 6.120879 | 0.252747 | 0.221724 | 0.10772 | 0.104129 | 0.372531 | 0.320467 | 0.287253 | 0.21544 | 0.21544 | 0.21544 | 0 | 0 | 0.201666 | 1,681 | 62 | 72 | 27.112903 | 0.830104 | 0.418203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.136364 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.