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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49134bc5b866f0dc4cd1be9ff4fb44f18cdf9b76 | 493 | py | Python | EWS/pcrasterModules/misc/moduleTest.py | KoenvanLoon/EWS | 3447921ec2140f29fd69d5b140b5eba2f244bccd | [
"MIT"
] | null | null | null | EWS/pcrasterModules/misc/moduleTest.py | KoenvanLoon/EWS | 3447921ec2140f29fd69d5b140b5eba2f244bccd | [
"MIT"
] | null | null | null | EWS/pcrasterModules/misc/moduleTest.py | KoenvanLoon/EWS | 3447921ec2140f29fd69d5b140b5eba2f244bccd | [
"MIT"
] | null | null | null | import rpy2.robjects.numpy2ri
#rpy2.robjects.numpy2ri.activate() # nodig bij nieuwere rpy2 versie
import rpy2.robjects as robjects
from osgeo import gdal
import matplotlib
import matplotlib.pyplot as plt
import scipy
import scipy.stats
import numpy
import matplotlib
import pil
import netcdf
import openopt
... | 22.409091 | 68 | 0.809331 | 65 | 493 | 6.138462 | 0.523077 | 0.090226 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.1643 | 493 | 21 | 69 | 23.47619 | 0.953884 | 0.219067 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
49241fe5a24e5c54e808c04a807bebc3b7c24c9d | 149 | py | Python | pyhn/__init__.py | socketubs/pyhn | c36090e33ae730daa16c276e5f54c49baef2d8fe | [
"MIT"
] | 127 | 2015-02-05T13:58:25.000Z | 2016-07-04T17:44:12.000Z | pyhn/__init__.py | toxinu/pyhn | c36090e33ae730daa16c276e5f54c49baef2d8fe | [
"MIT"
] | 9 | 2016-08-03T19:50:08.000Z | 2021-04-22T02:58:00.000Z | pyhn/__init__.py | socketubs/pyhn | c36090e33ae730daa16c276e5f54c49baef2d8fe | [
"MIT"
] | 12 | 2015-02-28T09:48:20.000Z | 2016-06-30T14:45:17.000Z | # -*- coding: utf-8 -*-
__title__ = 'pyhn'
__version__ = '0.3.11'
__author__ = 'toxinu'
__license__ = 'MIT'
__copyright__ = 'Copyright 2020 toxinu'
| 18.625 | 39 | 0.671141 | 17 | 149 | 4.705882 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.154362 | 149 | 7 | 40 | 21.285714 | 0.563492 | 0.14094 | 0 | 0 | 0 | 0 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
49251aeea5590594c4409fa63697b924c0cad801 | 195 | py | Python | pyout.py | lannonbr/PasSnek | 319350f01e3f0898ce8b430a6cd728501d65fc30 | [
"MIT"
] | null | null | null | pyout.py | lannonbr/PasSnek | 319350f01e3f0898ce8b430a6cd728501d65fc30 | [
"MIT"
] | null | null | null | pyout.py | lannonbr/PasSnek | 319350f01e3f0898ce8b430a6cd728501d65fc30 | [
"MIT"
] | null | null | null | def prant(a,):
print(a)
def addOne(n1,):
return n1 + 1
def subOne(n2,):
return n2 - 1
def prant7():
print(7)
prant(7, )
prant(addOne(addOne(5, ), ), )
prant7()
prant(subOne(addOne(1, ), ), )
| 15 | 30 | 0.605128 | 32 | 195 | 3.6875 | 0.40625 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.169231 | 195 | 12 | 31 | 16.25 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4928b1811ce4fa62d36a8baeb7bb9f4056a28d1f | 581 | py | Python | app/src/main/python/chaquopy/test_java/container_test.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 336 | 2017-07-28T11:20:19.000Z | 2022-03-28T16:00:17.000Z | app/src/main/python/chaquopy/test_java/container_test.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 592 | 2017-10-08T12:08:07.000Z | 2022-03-30T12:28:15.000Z | app/src/main/python/chaquopy/test_java/container_test.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 69 | 2017-12-29T18:57:48.000Z | 2022-03-15T08:41:09.000Z | from types import MappingProxyType
# A read-write and read-only version is provided of each container type.
def new_list(*args):
return list(args)
def new_list_ro(*args):
return tuple(args)
def new_map(*args):
assert len(args) % 2 == 0, args
result = {}
for i, arg in enumerate(args):
... | 17.606061 | 72 | 0.624785 | 86 | 581 | 4.104651 | 0.453488 | 0.101983 | 0.113314 | 0.073654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00939 | 0.266781 | 581 | 32 | 73 | 18.15625 | 0.819249 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.3 | false | 0 | 0.05 | 0.25 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
492949eac4bfd1690c75fd7a238dc0237ff77242 | 845 | py | Python | forms_app/migrations/0002_auto_20181016_1619.py | cs-fullstack-fall-2018/django-forms3-myiahm | 63159ccf6cf0d2b387d78f8288e9506cf7046e55 | [
"Apache-2.0"
] | null | null | null | forms_app/migrations/0002_auto_20181016_1619.py | cs-fullstack-fall-2018/django-forms3-myiahm | 63159ccf6cf0d2b387d78f8288e9506cf7046e55 | [
"Apache-2.0"
] | null | null | null | forms_app/migrations/0002_auto_20181016_1619.py | cs-fullstack-fall-2018/django-forms3-myiahm | 63159ccf6cf0d2b387d78f8288e9506cf7046e55 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-10-16 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forms_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='NonProfit',
fields=[
('i... | 30.178571 | 114 | 0.566864 | 78 | 845 | 6.025641 | 0.628205 | 0.12766 | 0.153191 | 0.204255 | 0.229787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052365 | 0.299408 | 845 | 27 | 115 | 31.296296 | 0.741554 | 0.053254 | 0 | 0.095238 | 1 | 0 | 0.126566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4930d81dd295f5e1ba302e32f9c88628d16e9d75 | 1,934 | py | Python | src/python_shell/exceptions/shell.py | bart-tools/python-shell | 9f42f7e118de2a1118d4a451cfc5e266b4956f8c | [
"MIT"
] | 21 | 2020-02-24T06:26:56.000Z | 2022-03-31T06:03:41.000Z | src/python_shell/exceptions/shell.py | bart-tools/python-shell | 9f42f7e118de2a1118d4a451cfc5e266b4956f8c | [
"MIT"
] | 1 | 2021-05-21T11:18:46.000Z | 2021-05-21T11:18:46.000Z | src/python_shell/exceptions/shell.py | bart-tools/python-shell | 9f42f7e118de2a1118d4a451cfc5e266b4956f8c | [
"MIT"
] | 3 | 2020-03-07T10:23:52.000Z | 2021-07-09T13:16:55.000Z | """
MIT License
Copyright (c) 2020 Alex Sokolov
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, ... | 35.814815 | 78 | 0.746639 | 258 | 1,934 | 5.46124 | 0.488372 | 0.062456 | 0.031938 | 0.02555 | 0.065295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002543 | 0.18666 | 1,934 | 53 | 79 | 36.490566 | 0.893198 | 0.615305 | 0 | 0.235294 | 0 | 0 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4935e6c3b4fad34b1aebd326db81956c43898ffe | 7,569 | py | Python | nl/minjak/ibi/iway/WebInteraction.py | MinjakConsultancy/py-iway | 5f02d561ef0cd01ff83d67710a35ea37eb19424a | [
"Apache-2.0"
] | 1 | 2017-01-30T10:28:24.000Z | 2017-01-30T10:28:24.000Z | nl/minjak/ibi/iway/WebInteraction.py | MinjakConsultancy/py-iway | 5f02d561ef0cd01ff83d67710a35ea37eb19424a | [
"Apache-2.0"
] | null | null | null | nl/minjak/ibi/iway/WebInteraction.py | MinjakConsultancy/py-iway | 5f02d561ef0cd01ff83d67710a35ea37eb19424a | [
"Apache-2.0"
] | null | null | null | import time
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
# from selenium.webdriver.support.ui import WebDriverWait
# from selenium.webdriver.support import expected_conditions as EC
# from selenium.common.exceptions import TimeoutException
class WebInteraction:
_use... | 40.475936 | 119 | 0.607742 | 848 | 7,569 | 5.159198 | 0.179245 | 0.091429 | 0.147657 | 0.165029 | 0.637714 | 0.601143 | 0.578971 | 0.557029 | 0.557029 | 0.557029 | 0 | 0.003903 | 0.255252 | 7,569 | 187 | 120 | 40.475936 | 0.772219 | 0.15907 | 0 | 0.639098 | 0 | 0.007519 | 0.163272 | 0.076583 | 0 | 0 | 0 | 0 | 0.045113 | 1 | 0.052632 | false | 0.052632 | 0.022556 | 0 | 0.180451 | 0.06015 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4953771985e477d2f8e8f5c12ca37102ffefbe57 | 3,753 | py | Python | jax_verify/src/intersection.py | bunelr/jax_verify | a232b94b39142d6a22058bc2e72a7048d001178d | [
"Apache-2.0"
] | null | null | null | jax_verify/src/intersection.py | bunelr/jax_verify | a232b94b39142d6a22058bc2e72a7048d001178d | [
"Apache-2.0"
] | null | null | null | jax_verify/src/intersection.py | bunelr/jax_verify | a232b94b39142d6a22058bc2e72a7048d001178d | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 The jax_verify Authors.
#
# 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.508929 | 80 | 0.724221 | 477 | 3,753 | 5.54717 | 0.308176 | 0.042328 | 0.047619 | 0.028723 | 0.174603 | 0.126228 | 0.100529 | 0.047619 | 0.047619 | 0.047619 | 0 | 0.003621 | 0.190514 | 3,753 | 111 | 81 | 33.810811 | 0.867347 | 0.397549 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.06 | 0.1 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
4961dac1976b437182ed244aa43686ce497bf428 | 161 | py | Python | Updates/upgradeScripts.py | andycavatorta/oratio | f407797e3ea6d2956e577ec98c64486b04d90946 | [
"MIT"
] | 1 | 2017-12-04T17:29:37.000Z | 2017-12-04T17:29:37.000Z | Updates/upgradeScripts.py | andycavatorta/oratio | f407797e3ea6d2956e577ec98c64486b04d90946 | [
"MIT"
] | null | null | null | Updates/upgradeScripts.py | andycavatorta/oratio | f407797e3ea6d2956e577ec98c64486b04d90946 | [
"MIT"
] | null | null | null | scripts = {
"0.00":[
"echo \"no new upgrade scripts yet\"",
],
"0.01":[
"cp /home/pi/oratio/scripts/rc.local /etc/rc.local",
]
}
| 17.888889 | 60 | 0.478261 | 21 | 161 | 3.666667 | 0.761905 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.304348 | 161 | 8 | 61 | 20.125 | 0.633929 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 0.198758 | 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 | 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 | 2 |
4962fa2b93710991a0da9a19f8f3c14332458a4d | 3,207 | py | Python | opt/eccess/optionsWindow.py | JeffHoogland/eccess | 82c443b30c8a67adecfbab39f37536aacc80409b | [
"BSD-3-Clause"
] | 1 | 2019-03-21T03:06:06.000Z | 2019-03-21T03:06:06.000Z | opt/eccess/optionsWindow.py | JeffHoogland/eccess | 82c443b30c8a67adecfbab39f37536aacc80409b | [
"BSD-3-Clause"
] | null | null | null | opt/eccess/optionsWindow.py | JeffHoogland/eccess | 82c443b30c8a67adecfbab39f37536aacc80409b | [
"BSD-3-Clause"
] | null | null | null | import elementary
import evas
class optionsWindow(elementary.Box):
def __init__( self, parent ):
elementary.Box.__init__(self, parent.mainWindow)
self.win = parent.mainWindow
self.horizontal = True
b1 = elementary.Box(self.win)
b1.size_hint_weight_set(evas.EVAS_HINT_EXPAND,... | 39.592593 | 77 | 0.671032 | 459 | 3,207 | 4.346405 | 0.165577 | 0.128321 | 0.192481 | 0.120301 | 0.652632 | 0.6401 | 0.631579 | 0.631579 | 0.631579 | 0.60802 | 0 | 0.008058 | 0.226068 | 3,207 | 80 | 78 | 40.0875 | 0.795729 | 0.010602 | 0 | 0.402985 | 0 | 0 | 0.078209 | 0.007569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.029851 | 0 | 0.074627 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
496af9de9a0da228c069520c768b7da3dd1918b7 | 375 | py | Python | lib/oeqa/runtime/cases/rubygems_rubygems_eventmachine.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | null | null | null | lib/oeqa/runtime/cases/rubygems_rubygems_eventmachine.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | null | null | null | lib/oeqa/runtime/cases/rubygems_rubygems_eventmachine.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | null | null | null | from rubygems_utils import RubyGemsTestUtils
class RubyGemsTestrubygems_eventmachine(RubyGemsTestUtils):
def test_gem_list_rubygems_eventmachine(self):
self.gem_is_installed("eventmachine")
def test_load_eventmachine(self):
self.gem_is_loadable("eventmachine")
def test_load_jeventmachine... | 26.785714 | 59 | 0.778667 | 41 | 375 | 6.731707 | 0.439024 | 0.076087 | 0.119565 | 0.141304 | 0.286232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149333 | 375 | 13 | 60 | 28.846154 | 0.865204 | 0 | 0 | 0 | 0 | 0 | 0.09893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
497ae7043e3ba250513f286a0bc84b0d14d5259f | 102 | py | Python | cfbcursos/python/aula34(funcaoExterna).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cfbcursos/python/aula34(funcaoExterna).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cfbcursos/python/aula34(funcaoExterna).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | import aula34funcao as func
func.canalNome()
print(func.jogador['nome'])
res = dir(func)
print(res)
| 12.75 | 27 | 0.735294 | 15 | 102 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.117647 | 102 | 7 | 28 | 14.571429 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 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 | 2 |
4987990d7af88b9a62350c72df1d64dff54afe7f | 1,734 | py | Python | benchmark/WeldedBeam/noisy/random/WeldedBeam.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 4 | 2020-05-24T14:19:13.000Z | 2021-03-31T08:46:49.000Z | benchmark/WeldedBeam/noisy/random/WeldedBeam.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | null | null | null | benchmark/WeldedBeam/noisy/random/WeldedBeam.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 9 | 2018-06-28T13:06:35.000Z | 2021-06-20T18:21:58.000Z | import numpy as np
NUM_EXP = 1
def evaluate(job_id, params):
np.random.seed(NUM_EXP)
x = params['X']
y = params['Y']
z = params['Z']
a = params['A']
#print 'Evaluating at (%f, %f, %f, %f)' % (x, y, z, a)
obj1 = float(1.10471 * np.power(x,2.0) * z + 0.04811 * a * y * (14.0+z)) + np.rand... | 37.695652 | 539 | 0.523068 | 357 | 1,734 | 2.501401 | 0.218487 | 0.18813 | 0.071669 | 0.100784 | 0.413214 | 0.343785 | 0.265398 | 0.265398 | 0.265398 | 0.227324 | 0 | 0.193265 | 0.212226 | 1,734 | 45 | 540 | 38.533333 | 0.460469 | 0.030565 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.064516 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
49a1cbecdae21829be842a1cb885a79508f0be0b | 555 | py | Python | blockformer/blocks/token_pool.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | blockformer/blocks/token_pool.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | blockformer/blocks/token_pool.py | colinski/blockformer | 56be6abc08dc25ab97c526384e9c69f6c814c3ed | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.registry import DROPOUT_LAYERS, ACTIVATION_LAYERS, ATTENTION
from mmcv.runner.base_module import BaseModule#, ModuleList
from mmcv import build_from_cfg
from ..builder import BLOCKS
... | 29.210526 | 81 | 0.76036 | 84 | 555 | 4.809524 | 0.52381 | 0.079208 | 0.064356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002141 | 0.158559 | 555 | 18 | 82 | 30.833333 | 0.862955 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5625 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b8ca3e61ea010d3cb65fe346ec6ffb7302d7cae0 | 1,198 | py | Python | ic_marathon_app/migrations/0002_auto_20191202_1850.py | sarifern/ciscovirtualclub | 2f9a6d7c478644f31104e9d28a9130a964f88821 | [
"BSD-3-Clause"
] | null | null | null | ic_marathon_app/migrations/0002_auto_20191202_1850.py | sarifern/ciscovirtualclub | 2f9a6d7c478644f31104e9d28a9130a964f88821 | [
"BSD-3-Clause"
] | 11 | 2020-02-12T00:55:17.000Z | 2022-03-11T23:52:20.000Z | ic_marathon_app/migrations/0002_auto_20191202_1850.py | sarifern/ciscorunning | f7e9beaa534143453dee1497ef39a11c9bc02002 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.3 on 2019-12-02 18:50
from django.db import migrations, models
import ic_marathon_app.validators
class Migration(migrations.Migration):
dependencies = [
('ic_marathon_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile... | 34.228571 | 167 | 0.6202 | 123 | 1,198 | 5.853659 | 0.528455 | 0.055556 | 0.072222 | 0.161111 | 0.336111 | 0.336111 | 0 | 0 | 0 | 0 | 0 | 0.03337 | 0.249583 | 1,198 | 34 | 168 | 35.235294 | 0.767519 | 0.037563 | 0 | 0.428571 | 1 | 0 | 0.153779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8cb3b8a78780be2ae66c680c345ee12e526f127 | 2,076 | py | Python | klifs_utils/local/kinases.py | volkamerlab/klifs_utils | 3cca66b449ea9999c2687f9b1321faca9b5aa63e | [
"MIT"
] | 6 | 2020-06-23T14:44:25.000Z | 2022-02-25T05:18:38.000Z | klifs_utils/local/kinases.py | hlzfoxcn/klifs_utils | d7fe549e8b66674444c19513af26d661ae157a47 | [
"MIT"
] | 11 | 2020-03-12T13:57:11.000Z | 2021-09-17T18:20:33.000Z | klifs_utils/local/kinases.py | dominiquesydow/klifs_utils | 3cca66b449ea9999c2687f9b1321faca9b5aa63e | [
"MIT"
] | 3 | 2020-04-22T15:45:10.000Z | 2021-01-04T03:30:48.000Z | """
klifs_utils
Utility functions to work with KLIFS data (local)
Kinase details.
"""
def kinase_groups(klifs_metadata):
"""
Get all kinase groups.
Returns
-------
list of str
Kinase group names.
"""
kinase_groups = klifs_metadata.group.unique().tolist()
return kinase_group... | 20.969697 | 118 | 0.63921 | 254 | 2,076 | 5.082677 | 0.244094 | 0.130906 | 0.03718 | 0.034857 | 0.217661 | 0.099148 | 0.099148 | 0 | 0 | 0 | 0 | 0 | 0.252408 | 2,076 | 98 | 119 | 21.183673 | 0.83183 | 0.542389 | 0 | 0.133333 | 0 | 0 | 0.035763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b8d8eef14670c086978032c35a1216ca9e462973 | 445 | py | Python | tests/test_AnalyticElement.py | RandalJBarnes/Ginebig | a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692 | [
"BSD-3-Clause"
] | null | null | null | tests/test_AnalyticElement.py | RandalJBarnes/Ginebig | a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692 | [
"BSD-3-Clause"
] | null | null | null | tests/test_AnalyticElement.py | RandalJBarnes/Ginebig | a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692 | [
"BSD-3-Clause"
] | 1 | 2018-06-28T03:33:32.000Z | 2018-06-28T03:33:32.000Z | import unittest
from ginebig.analytic_element import AnalyticElement
class TestAnalyticElement(unittest.TestCase):
"""Test the AnalyticElement class."""
# --------------------------------------------------------------------------
def test_must_not_instantiate(self):
"""Test must not instantiate a... | 27.8125 | 80 | 0.606742 | 37 | 445 | 6.972973 | 0.621622 | 0.155039 | 0.085271 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148315 | 445 | 15 | 81 | 29.666667 | 0.680739 | 0.34382 | 0 | 0 | 0 | 0 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
b8daedbd1e8266652312525b29451f6f994ceabc | 9,698 | py | Python | pysnmp/CISCO-LWAPP-INTERFACE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-LWAPP-INTERFACE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-LWAPP-INTERFACE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-LWAPP-INTERFACE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-INTERFACE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:48:36 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 124.333333 | 1,712 | 0.783254 | 971 | 9,698 | 7.820803 | 0.166838 | 0.008954 | 0.011061 | 0.014748 | 0.331446 | 0.279958 | 0.244667 | 0.242955 | 0.211878 | 0.194891 | 0 | 0.067876 | 0.079398 | 9,698 | 77 | 1,713 | 125.948052 | 0.782706 | 0.035471 | 0 | 0.089552 | 0 | 0 | 0.188122 | 0.09053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119403 | 0 | 0.119403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8fe75950451c8f8954bc882707ac44cfba45148 | 75 | py | Python | api/src/domain/ConversationConstants.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/domain/ConversationConstants.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/domain/ConversationConstants.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | SCHEDULER_INTERVAL_IN_SECONDS = 1
SCHEDULER_MAX_SIMULTANEOUS_INSTANCES = 3
| 25 | 40 | 0.893333 | 10 | 75 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.08 | 75 | 2 | 41 | 37.5 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b8ffb746bd12cfcfe4bd69c48e5b4c16773dad0f | 398 | py | Python | solutions/log_reg_cv_training.py | SdgJlbl/nlp-workshop | c15500cfcec750e9b86e9bed1d80b2648ce8bc33 | [
"MIT"
] | 1 | 2021-01-14T02:07:34.000Z | 2021-01-14T02:07:34.000Z | solutions/log_reg_cv_training.py | SdgJlbl/nlp-workshop | c15500cfcec750e9b86e9bed1d80b2648ce8bc33 | [
"MIT"
] | null | null | null | solutions/log_reg_cv_training.py | SdgJlbl/nlp-workshop | c15500cfcec750e9b86e9bed1d80b2648ce8bc33 | [
"MIT"
] | null | null | null | lr_cv_classifier = LogisticRegressionCV(multi_class='multinomial',
solver='lbfgs')
lr_cv_classifier.fit(X_train, newsgroups_train.target)
print('Optimal C value', lr_cv_classifier.C_[0])
print('train accuracy',
lr_cv_classifier.score(X_train, newsgroups_train.target),
... | 44.222222 | 66 | 0.708543 | 50 | 398 | 5.28 | 0.44 | 0.075758 | 0.265152 | 0.159091 | 0.412879 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.18593 | 398 | 8 | 67 | 49.75 | 0.811728 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
77400e72e303ecbc9a58d9983fb105396f5d2acd | 640,208 | py | Python | pysnmp/F5-BIGIP-SYSTEM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/F5-BIGIP-SYSTEM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/F5-BIGIP-SYSTEM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module F5-BIGIP-SYSTEM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F5-BIGIP-SYSTEM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:57:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 143.159213 | 12,432 | 0.762663 | 70,011 | 640,208 | 6.974061 | 0.038637 | 0.012858 | 0.014107 | 0.018744 | 0.384235 | 0.358472 | 0.339329 | 0.265858 | 0.25061 | 0.220585 | 0 | 0.084109 | 0.080955 | 640,208 | 4,471 | 12,433 | 143.191232 | 0.745731 | 0.000519 | 0 | 0.02868 | 0 | 0 | 0.176318 | 0.052242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009411 | 0.002689 | 0 | 0.002689 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91f0c361bcdaed7f377b11fd105f0e6ba5b0b3d5 | 7,552 | py | Python | tests/integration.py | jakeatdocforce/dactyl | 91ae98cc448dd178a7129ed66e84888b9908b526 | [
"MIT"
] | 61 | 2017-03-22T09:21:02.000Z | 2021-12-16T21:23:41.000Z | tests/integration.py | meonBot/dactyl | 7f128fa9d4ec9b38a129f9193d13c0f6f47af5bd | [
"MIT"
] | 61 | 2017-02-22T01:07:25.000Z | 2022-02-24T01:08:46.000Z | tests/integration.py | meonBot/dactyl | 7f128fa9d4ec9b38a129f9193d13c0f6f47af5bd | [
"MIT"
] | 28 | 2017-05-29T13:20:06.000Z | 2022-03-26T16:42:20.000Z | #!/usr/bin/env python3
import os
import subprocess
import sys
import unittest
from distutils.dir_util import remove_tree
from pathlib import Path
class TestDactyl(unittest.TestCase):
def setUp(self):
self.startdir = os.getcwd()
# Before each test is run, remove the existing files in out subdirec... | 41.494505 | 136 | 0.657707 | 1,019 | 7,552 | 4.723258 | 0.165849 | 0.056098 | 0.10721 | 0.160814 | 0.725951 | 0.677748 | 0.622273 | 0.554748 | 0.38957 | 0.345523 | 0 | 0.000818 | 0.190413 | 7,552 | 181 | 137 | 41.723757 | 0.786392 | 0.070445 | 0 | 0.272727 | 0 | 0 | 0.313666 | 0.136807 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.19697 | false | 0 | 0.045455 | 0 | 0.25 | 0.007576 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91fb59a0fe16358025a69ababc6a60ebae2a927b | 955 | py | Python | pyglass/utils.py | jonahmajumder/pyglass | 5c0e182d7eb644b8ea0a1cac292ed2852e914ab6 | [
"MIT"
] | 2 | 2015-01-02T07:15:07.000Z | 2015-04-15T05:23:59.000Z | pyglass/utils.py | jonahmajumder/pyglass | 5c0e182d7eb644b8ea0a1cac292ed2852e914ab6 | [
"MIT"
] | 2 | 2020-11-04T05:49:26.000Z | 2021-03-13T21:05:36.000Z | pyglass/utils.py | jonahmajumder/pyglass | 5c0e182d7eb644b8ea0a1cac292ed2852e914ab6 | [
"MIT"
] | 2 | 2020-11-03T00:48:06.000Z | 2021-03-12T00:14:07.000Z | # -*- coding: utf-8 -*-
# Default libs
import logging
import os
# Library modules
from pxprocess import check_output
from pyunicode import safely_decode
logger = logging.getLogger(__name__)
def execute(cmd):
''' Call cmd and return output. return None if any exception occurs '''
try:
return safely_decode(ch... | 26.527778 | 91 | 0.710995 | 143 | 955 | 4.643357 | 0.482517 | 0.052711 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002528 | 0.171728 | 955 | 35 | 92 | 27.285714 | 0.836915 | 0.252356 | 0 | 0.105263 | 0 | 0 | 0.083694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.210526 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
62016f0b503dcaf8624008950f53be71d58a57cb | 64 | py | Python | fbfeed/__init__.py | unplugstudio/mezzanine-facebook-feed | ab1f79f58fd381c9f8d2b89f5714046ef6f2f095 | [
"MIT"
] | null | null | null | fbfeed/__init__.py | unplugstudio/mezzanine-facebook-feed | ab1f79f58fd381c9f8d2b89f5714046ef6f2f095 | [
"MIT"
] | null | null | null | fbfeed/__init__.py | unplugstudio/mezzanine-facebook-feed | ab1f79f58fd381c9f8d2b89f5714046ef6f2f095 | [
"MIT"
] | null | null | null | __version__ = "0.3.1"
default_app_config = "fbfeed.apps.Config"
| 21.333333 | 41 | 0.75 | 10 | 64 | 4.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.09375 | 64 | 2 | 42 | 32 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0.359375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
620ed3f99eea5a134875a0843dd5bfa8a428c621 | 180 | py | Python | services/web/server/src/simcore_service_webserver/session_config.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | services/web/server/src/simcore_service_webserver/session_config.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | services/web/server/src/simcore_service_webserver/session_config.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | """ session subsystem's configuration
- config-file schema
- settings
"""
import trafaret as T
CONFIG_SECTION_NAME = "session"
schema = T.Dict({"secret_key": T.String})
| 16.363636 | 41 | 0.694444 | 23 | 180 | 5.304348 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 180 | 10 | 42 | 18 | 0.824324 | 0.366667 | 0 | 0 | 0 | 0 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6210dde4b3d9864b670c258ce3dc49bc29342a89 | 189 | py | Python | pytorch/test.py | abdur4373/ROS_depth_pred | 63ed4d97df8b49a43aad53c4c6bf01441f05153d | [
"MIT"
] | 1 | 2019-06-29T07:48:31.000Z | 2019-06-29T07:48:31.000Z | pytorch/test.py | abdur4373/ROS_depth_pred | 63ed4d97df8b49a43aad53c4c6bf01441f05153d | [
"MIT"
] | null | null | null | pytorch/test.py | abdur4373/ROS_depth_pred | 63ed4d97df8b49a43aad53c4c6bf01441f05153d | [
"MIT"
] | null | null | null | import h5py
path_to_depth = '/media/ghost/8c5dd22b-3c0c-41d2-9807-c4094164ca3e/ghost/down/nyu_depth_v2_labeled .mat'
f = h5py.File(path_to_depth, 'r')
for key in f.keys():
print(key)
| 23.625 | 104 | 0.746032 | 33 | 189 | 4.060606 | 0.757576 | 0.089552 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.111111 | 189 | 7 | 105 | 27 | 0.654762 | 0 | 0 | 0 | 0 | 0.2 | 0.460317 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
621a940104d47e7475b5a4496113e4bac3cd9f3e | 1,176 | py | Python | tests/test_tools_dumppdf.py | herrnici/pdfminer3 | 0442ea2fd5f15a5ca6f79f21df9369be99be3eb2 | [
"MIT"
] | 44 | 2018-12-16T19:51:33.000Z | 2022-02-07T21:36:28.000Z | tests/test_tools_dumppdf.py | herrnici/pdfminer3 | 0442ea2fd5f15a5ca6f79f21df9369be99be3eb2 | [
"MIT"
] | 7 | 2018-12-16T19:56:45.000Z | 2021-08-12T14:29:28.000Z | tests/test_tools_dumppdf.py | herrnici/pdfminer3 | 0442ea2fd5f15a5ca6f79f21df9369be99be3eb2 | [
"MIT"
] | 12 | 2019-02-21T06:30:14.000Z | 2021-04-23T07:50:35.000Z | #!/usr/bin/env python3
import nose, logging, os
from tools import dumppdf
path=os.path.dirname(os.path.abspath(__file__))+'/'
def run(datapath,filename,options=None):
i=path+datapath+filename+'.pdf'
o=path+filename+'.xml'
if options:
s='dumppdf -o%s %s %s'%(o,options,i)
else:
s='dum... | 25.565217 | 139 | 0.577381 | 162 | 1,176 | 4.037037 | 0.407407 | 0.137615 | 0.12844 | 0.16055 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023109 | 0.190476 | 1,176 | 45 | 140 | 26.133333 | 0.663866 | 0.14966 | 0 | 0 | 0 | 0 | 0.287864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0 | 0.344828 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
621e5e28395c206def8f1a86a73e5451ea41d59a | 2,580 | py | Python | cfripper/rules/policy_on_user.py | mansong1/cfripper | 9fb9075bf091e5c529e488e98af32218d7677639 | [
"Apache-2.0"
] | null | null | null | cfripper/rules/policy_on_user.py | mansong1/cfripper | 9fb9075bf091e5c529e488e98af32218d7677639 | [
"Apache-2.0"
] | null | null | null | cfripper/rules/policy_on_user.py | mansong1/cfripper | 9fb9075bf091e5c529e488e98af32218d7677639 | [
"Apache-2.0"
] | null | null | null | __all__ = ["PolicyOnUserRule"]
from typing import Dict, Optional
from pycfmodel.model.cf_model import CFModel
from pycfmodel.model.resources.iam_policy import IAMPolicy
from cfripper.model.enums import RuleGranularity, RuleMode
from cfripper.model.result import Result
from cfripper.rules.base_rules import Rule
cla... | 34.4 | 109 | 0.610465 | 300 | 2,580 | 5.193333 | 0.493333 | 0.028883 | 0.023107 | 0.019255 | 0.124519 | 0.124519 | 0.124519 | 0.124519 | 0.124519 | 0.124519 | 0 | 0.008762 | 0.292248 | 2,580 | 74 | 110 | 34.864865 | 0.844469 | 0.583721 | 0 | 0 | 0 | 0 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
622e6b36ddfe13947917470c58c5e3dc3c8ff359 | 811 | py | Python | LIMBR_docker/grid/Generate_data.py | aleccrowell/LIMBR | a41356b92892c89376c436ea5eab3f131fc2c4e3 | [
"BSD-3-Clause"
] | 3 | 2018-01-02T17:27:30.000Z | 2019-05-20T11:34:14.000Z | LIMBR_docker/grid/Generate_data.py | aleccrowell/LIMBR | a41356b92892c89376c436ea5eab3f131fc2c4e3 | [
"BSD-3-Clause"
] | null | null | null | LIMBR_docker/grid/Generate_data.py | aleccrowell/LIMBR | a41356b92892c89376c436ea5eab3f131fc2c4e3 | [
"BSD-3-Clause"
] | 2 | 2018-06-02T04:07:27.000Z | 2020-06-20T13:23:49.000Z | from LIMBR import simulations, imputation, batch_fx
#20, 15, 15 missing and 5, 10, 15 NN
for i in range(1, 21):
simulation = simulations.simulate(effect_size=4, p_miss=.4, lam_miss=15, amp_noise=1, rseed=i)
simulation.generate_pool_map()
simulation.write_output('twenty_miss_5_NN_'+str(i))
simulation.w... | 45.055556 | 98 | 0.758323 | 133 | 811 | 4.195489 | 0.300752 | 0.197133 | 0.376344 | 0.258065 | 0.68638 | 0.623656 | 0.623656 | 0.623656 | 0.202509 | 0.202509 | 0 | 0.048409 | 0.108508 | 811 | 17 | 99 | 47.705882 | 0.723375 | 0.043157 | 0 | 0.142857 | 0 | 0 | 0.223226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
62310399aae529ec1be8aac1597cf33442f3f18f | 140 | py | Python | Liao Xue Feng Py2 Edu/elif.py | jesielin/SnakeRace | f695b1e31d3e2842c9eda437353d510a1866bccd | [
"MIT"
] | null | null | null | Liao Xue Feng Py2 Edu/elif.py | jesielin/SnakeRace | f695b1e31d3e2842c9eda437353d510a1866bccd | [
"MIT"
] | null | null | null | Liao Xue Feng Py2 Edu/elif.py | jesielin/SnakeRace | f695b1e31d3e2842c9eda437353d510a1866bccd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
__author__ = 'shawn'
birth = int(raw_input())
if birth > 2000:
print('00后')
elif birth > 1990:
print('90后')
| 15.555556 | 24 | 0.585714 | 19 | 140 | 4.052632 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 0.214286 | 140 | 8 | 25 | 17.5 | 0.581818 | 0.142857 | 0 | 0 | 0 | 0 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
623e4dfa5f6654d6ca84fd5d262d0f6374cd1aa7 | 28,451 | py | Python | tests/test_data_manipulation.py | JuaniRios/4p-chess-prediction | f0fa49f16bade6089108d0b06bf2bbd1be8366f8 | [
"MIT"
] | null | null | null | tests/test_data_manipulation.py | JuaniRios/4p-chess-prediction | f0fa49f16bade6089108d0b06bf2bbd1be8366f8 | [
"MIT"
] | null | null | null | tests/test_data_manipulation.py | JuaniRios/4p-chess-prediction | f0fa49f16bade6089108d0b06bf2bbd1be8366f8 | [
"MIT"
] | null | null | null | # this is the testing file, where all the functions of our Data Manipulation will be tested
from data_cleaning.data_manipulation import *
import pytest
import random
@pytest.fixture
def data():
game = [
{
"Blue": "Bill13Cooper",
"BlueElo": "1878",
"Date"... | 33.432432 | 117 | 0.172085 | 1,451 | 28,451 | 3.337698 | 0.339077 | 0.01115 | 0.009911 | 0.006607 | 0.154243 | 0.13566 | 0.101177 | 0.083006 | 0.083006 | 0.083006 | 0 | 0.153927 | 0.732839 | 28,451 | 851 | 118 | 33.432432 | 0.483226 | 0.027345 | 0 | 0.301796 | 0 | 0 | 0.093766 | 0.001013 | 0 | 0 | 0 | 0 | 0.047904 | 1 | 0.009581 | false | 0 | 0.003593 | 0 | 0.014371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
623f50c53470a7c912b70b33425996945dee2902 | 265 | py | Python | aquarius/events/constants.py | compositedev/aquarius | 83ea7b71632344c82746a8f44e6d95a1661dc14f | [
"Apache-2.0"
] | 93 | 2018-11-19T11:38:49.000Z | 2022-03-03T16:41:40.000Z | aquarius/events/constants.py | compositedev/aquarius | 83ea7b71632344c82746a8f44e6d95a1661dc14f | [
"Apache-2.0"
] | 451 | 2018-10-26T07:08:18.000Z | 2022-03-31T12:42:24.000Z | aquarius/events/constants.py | compositedev/aquarius | 83ea7b71632344c82746a8f44e6d95a1661dc14f | [
"Apache-2.0"
] | 32 | 2018-12-04T02:19:40.000Z | 2022-03-29T09:44:43.000Z | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
"""
Defines values of variables:
1. `EVENT_METADATA_CREATED`
2. `EVENT_METADATA_UPDATED`.
"""
EVENT_METADATA_CREATED = "MetadataCreated"
EVENT_METADATA_UPDATED = "MetadataUpdated"
| 22.083333 | 42 | 0.788679 | 31 | 265 | 6.483871 | 0.709677 | 0.258706 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.101887 | 265 | 11 | 43 | 24.090909 | 0.810924 | 0.615094 | 0 | 0 | 0 | 0 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
626a95851febe6ada8170fa90566d2833787b943 | 172 | py | Python | settings.py | The0therChad/GameXplore | a651e1949e8e4d5b5f0b42836042e7154320ca42 | [
"MIT"
] | null | null | null | settings.py | The0therChad/GameXplore | a651e1949e8e4d5b5f0b42836042e7154320ca42 | [
"MIT"
] | null | null | null | settings.py | The0therChad/GameXplore | a651e1949e8e4d5b5f0b42836042e7154320ca42 | [
"MIT"
] | null | null | null | import os
import discord
from dotenv import load_dotenv
load_dotenv()
ID = os.getenv("CLIENT_ID")
TOKEN = os.getenv("ACCESS_TOKEN")
DISCORD = os.getenv("DISCORD_TOKEN")
| 15.636364 | 36 | 0.761628 | 26 | 172 | 4.846154 | 0.423077 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122093 | 172 | 10 | 37 | 17.2 | 0.834437 | 0 | 0 | 0 | 0 | 0 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
627425c4ac0586dffecc69aa4f79d6200dc319f3 | 682 | py | Python | tes/__init__.py | CSCfi/py-tes | bbfcf40e8fd254bbd7cce06636e48d76a6756d79 | [
"MIT"
] | null | null | null | tes/__init__.py | CSCfi/py-tes | bbfcf40e8fd254bbd7cce06636e48d76a6756d79 | [
"MIT"
] | null | null | null | tes/__init__.py | CSCfi/py-tes | bbfcf40e8fd254bbd7cce06636e48d76a6756d79 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from tes.client import HTTPClient
from tes.utils import unmarshal
from tes.models import (
Input,
Output,
Resources,
Executor,
Task,
ExecutorLog,
TaskLog,
OutputFileLog,
CreateTaskResponse,
GetTaskRequest,
ListTasksRequest,
ListTask... | 16.238095 | 38 | 0.680352 | 54 | 682 | 8.351852 | 0.537037 | 0.046563 | 0.088692 | 0.124169 | 0.696231 | 0.696231 | 0.696231 | 0.696231 | 0.696231 | 0.696231 | 0 | 0.005941 | 0.259531 | 682 | 41 | 39 | 16.634146 | 0.887129 | 0 | 0 | 0.736842 | 0 | 0 | 0.007331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62760faeb03950e59cd3634afa036fd0e3fd3e2d | 552 | py | Python | provider/migrations/0001_initial.py | iDevam/FoodPantry | fe0b64813b895e53ce7675d4316e1dbc96cdf7c9 | [
"MIT"
] | null | null | null | provider/migrations/0001_initial.py | iDevam/FoodPantry | fe0b64813b895e53ce7675d4316e1dbc96cdf7c9 | [
"MIT"
] | null | null | null | provider/migrations/0001_initial.py | iDevam/FoodPantry | fe0b64813b895e53ce7675d4316e1dbc96cdf7c9 | [
"MIT"
] | 8 | 2020-04-21T01:45:14.000Z | 2020-09-19T13:10:04.000Z | # Generated by Django 2.2.5 on 2020-04-26 04:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='provider',
fields=[
('donor_name', models.C... | 24 | 99 | 0.583333 | 55 | 552 | 5.763636 | 0.709091 | 0.113565 | 0.157729 | 0.189274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043928 | 0.298913 | 552 | 22 | 100 | 25.090909 | 0.775194 | 0.081522 | 0 | 0 | 1 | 0 | 0.081188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6281daa1a97699f598777c5bb4400735f5182b9a | 3,262 | py | Python | codecheck/codecheck-3608/app/kvs.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | codecheck/codecheck-3608/app/kvs.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | codecheck/codecheck-3608/app/kvs.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | import redis
import json
import os
from abc import ABCMeta, abstractmethod
class KVSBase(metaclass=ABCMeta):
def __init__(self, prefix: str):
self.__prefix = prefix
def real_key(self, key) -> str:
return '{:s}:{:s}'.format(self.__prefix, key)
@property
def prefix(self) -> str:
... | 24.526316 | 107 | 0.605457 | 394 | 3,262 | 4.598985 | 0.175127 | 0.059603 | 0.036424 | 0.046358 | 0.233444 | 0.147351 | 0.080574 | 0.05298 | 0.05298 | 0.05298 | 0 | 0.001282 | 0.282649 | 3,262 | 132 | 108 | 24.712121 | 0.773077 | 0 | 0 | 0.385417 | 0 | 0 | 0.012876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.260417 | false | 0.052083 | 0.041667 | 0.072917 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
628455e84daef9251804bab0d1c6d2d58b79ccca | 5,325 | py | Python | tests/dateutils/test_dateutils.py | sebastian-lemke/tt | 2ff1ec23d206632446b08e56add1a8852af7415a | [
"MIT"
] | 13 | 2020-06-23T18:05:14.000Z | 2022-01-26T17:37:59.000Z | tests/dateutils/test_dateutils.py | sebastian-lemke/tt | 2ff1ec23d206632446b08e56add1a8852af7415a | [
"MIT"
] | 6 | 2020-03-26T00:47:52.000Z | 2022-02-15T13:03:05.000Z | tests/dateutils/test_dateutils.py | sebastian-lemke/tt | 2ff1ec23d206632446b08e56add1a8852af7415a | [
"MIT"
] | 5 | 2021-02-12T15:58:39.000Z | 2021-11-17T09:27:26.000Z | from unittest import TestCase
from tt.dateutils.dateutils import *
from tt.exceptz.exceptz import TIError
import mock
import pytz
test_timezone = "Europe/Berlin"
class TestDateutils(TestCase):
@mock.patch('tt.dateutils.dateutils.get_local_timezone')
def test_utc_to_local_cet_winter_time(self, mocked):
... | 47.972973 | 107 | 0.733709 | 746 | 5,325 | 4.873995 | 0.116622 | 0.086634 | 0.077008 | 0.071507 | 0.730473 | 0.703795 | 0.694995 | 0.655666 | 0.655666 | 0.655666 | 0 | 0.06208 | 0.162066 | 5,325 | 110 | 108 | 48.409091 | 0.752801 | 0 | 0 | 0.516854 | 0 | 0 | 0.148573 | 0.128099 | 0 | 0 | 0 | 0 | 0.303371 | 1 | 0.157303 | false | 0 | 0.05618 | 0 | 0.224719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
655a5957c0a1b96d033339bbbaf57e4292b01696 | 515 | py | Python | RecoCTPPS/Configuration/python/recoCTPPS_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoCTPPS/Configuration/python/recoCTPPS_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoCTPPS/Configuration/python/recoCTPPS_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
from RecoCTPPS.TotemRPLocal.totemRPLocalReconstruction_cff import *
from RecoCTPPS.TotemRPLocal.ctppsDiamondLocalReconstruction_cff import *
from RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteProducer_cff import ctppsLocalTrackLiteProducer
from RecoCTPPS.PixelLocal.ctppsPixelLocalR... | 36.785714 | 94 | 0.866019 | 38 | 515 | 11.631579 | 0.421053 | 0.117647 | 0.169683 | 0.099548 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095146 | 515 | 13 | 95 | 39.615385 | 0.948498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
656d70a328014676b41744196e6219aee4485c26 | 12,473 | py | Python | Learning_Tensorflow/Basics/l07c01_saving_and_loading_models.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | 15 | 2019-11-16T11:09:24.000Z | 2022-01-09T01:58:03.000Z | Learning_Tensorflow/Basics/l07c01_saving_and_loading_models.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | 1 | 2021-11-10T19:46:00.000Z | 2021-11-10T19:46:00.000Z | Learning_Tensorflow/Basics/l07c01_saving_and_loading_models.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""l07c01_saving_and_loading_models.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/github/tensorflow/examples/blob/master/courses/udacity_intro_to_tensorflow_for_deep_learning/l07c01_saving_and_loading_models.ipynb
##### Copyri... | 38.978125 | 671 | 0.756514 | 1,965 | 12,473 | 4.699237 | 0.251908 | 0.015161 | 0.012995 | 0.011913 | 0.246264 | 0.19634 | 0.166017 | 0.154104 | 0.140243 | 0.105371 | 0 | 0.009838 | 0.152489 | 12,473 | 320 | 672 | 38.978125 | 0.863684 | 0.06478 | 0 | 0.214953 | 1 | 0 | 0.070519 | 0.00611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009346 | 0.093458 | null | null | 0.056075 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6572fb4ad0a40bcf7a6604cde5747e015082609a | 2,634 | py | Python | mresvgene/plotLociMap01.py | dnolivieri/MResVgene | 08d5cc2368b051ab64ac593b8ebb1b725265f30a | [
"MIT"
] | null | null | null | mresvgene/plotLociMap01.py | dnolivieri/MResVgene | 08d5cc2368b051ab64ac593b8ebb1b725265f30a | [
"MIT"
] | null | null | null | mresvgene/plotLociMap01.py | dnolivieri/MResVgene | 08d5cc2368b051ab64ac593b8ebb1b725265f30a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
dnolivieri 11-enero-2016
- For making maps of the loci.
"""
import collections
import itertools
import sys
import re
import cPickle as pickle
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio import SeqFeature
from Bio.Blast.Applications impor... | 23.72973 | 118 | 0.592635 | 345 | 2,634 | 4.434783 | 0.423188 | 0.022876 | 0.016993 | 0.018301 | 0.14902 | 0.14902 | 0.079739 | 0.054902 | 0 | 0 | 0 | 0.065625 | 0.271071 | 2,634 | 110 | 119 | 23.945455 | 0.73125 | 0.101367 | 0 | 0.031746 | 0 | 0 | 0.026052 | 0.017535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.31746 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
657c43e83c272e476a986b671eabc86d38d3c0df | 2,779 | py | Python | python/src/main/python/pygw/geotools/simple_feature.py | spohnan/geowave | 2fa431e83842b1f581b1370d31b63b233aad8196 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pygw/geotools/simple_feature.py | spohnan/geowave | 2fa431e83842b1f581b1370d31b63b233aad8196 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pygw/geotools/simple_feature.py | spohnan/geowave | 2fa431e83842b1f581b1370d31b63b233aad8196 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
#
# See the NOTICE file distributed with this work for additional information regarding copyright
# ownership. All rights reserved. This program and the accompanying materials are made available
# under the terms of the Apache License, Version 2.0 which... | 31.579545 | 96 | 0.617848 | 322 | 2,779 | 5.139752 | 0.350932 | 0.073112 | 0.043505 | 0.032628 | 0.177644 | 0.131722 | 0.09426 | 0.09426 | 0.09426 | 0.09426 | 0 | 0.00592 | 0.270601 | 2,779 | 87 | 97 | 31.942529 | 0.810557 | 0.426412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.266667 | false | 0 | 0.1 | 0 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
65a0311e8ac3cd1585460dc310b955978c14f97c | 70 | py | Python | hiburn/__init__.py | OpenHisiIpCam/hiburn | 71d8ab3c5a87401a60cf125d441e25f8b7d3282c | [
"MIT"
] | 8 | 2020-04-06T08:47:26.000Z | 2021-02-23T17:10:12.000Z | hiburn/__init__.py | OpenHisiIpCam/hiburn | 71d8ab3c5a87401a60cf125d441e25f8b7d3282c | [
"MIT"
] | 2 | 2020-05-14T16:59:33.000Z | 2021-06-19T23:48:35.000Z | hiburn/__init__.py | OpenHisiIpCam/hiburn | 71d8ab3c5a87401a60cf125d441e25f8b7d3282c | [
"MIT"
] | 2 | 2020-05-02T22:49:01.000Z | 2020-05-12T02:39:26.000Z | from .u_boot_client import UBootClient
__all__ = [
UBootClient
]
| 11.666667 | 38 | 0.742857 | 8 | 70 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 70 | 5 | 39 | 14 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
65b42629635e5bc04eacc4d5d70d38e5491c5277 | 94 | py | Python | influxdb_client/version.py | Onemind-Services-LLC/influxdb-client-python | c902f07acadc07234ee845256bfc60ebdd296d63 | [
"MIT"
] | null | null | null | influxdb_client/version.py | Onemind-Services-LLC/influxdb-client-python | c902f07acadc07234ee845256bfc60ebdd296d63 | [
"MIT"
] | null | null | null | influxdb_client/version.py | Onemind-Services-LLC/influxdb-client-python | c902f07acadc07234ee845256bfc60ebdd296d63 | [
"MIT"
] | null | null | null | """Version of the Client that is used in User-Agent header."""
CLIENT_VERSION = '1.21.0dev0'
| 23.5 | 62 | 0.712766 | 16 | 94 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.148936 | 94 | 3 | 63 | 31.333333 | 0.7625 | 0.595745 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
65b453fcca6bf245f4ee7c591e9186e74e681d13 | 1,526 | py | Python | color_gradient.py | JakeRoggenbuck/colorgradient | b94b8228dbc09947f06c566e813c4e9b403b8966 | [
"MIT"
] | 1 | 2021-05-06T23:08:02.000Z | 2021-05-06T23:08:02.000Z | color_gradient.py | JakeRoggenbuck/colorgradient | b94b8228dbc09947f06c566e813c4e9b403b8966 | [
"MIT"
] | 2 | 2021-04-25T02:40:57.000Z | 2021-04-25T02:42:21.000Z | color_gradient.py | JakeRoggenbuck/colorgradient | b94b8228dbc09947f06c566e813c4e9b403b8966 | [
"MIT"
] | null | null | null | import math
import numpy as np
from typing import Tuple, Union, List
RGB = Tuple[int, int, int]
class FadeColors:
def __init__(self, colors: List[str]):
self.hex_colors = colors
self.rgb_colors = [self.hex2rgb(h) for h in self.hex_colors]
self.red, self.green, self.blue = self.get_channe... | 28.259259 | 79 | 0.589777 | 244 | 1,526 | 3.545082 | 0.262295 | 0.086705 | 0.027746 | 0.034682 | 0.048555 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.266055 | 1,526 | 53 | 80 | 28.792453 | 0.753571 | 0 | 0 | 0.131579 | 0 | 0 | 0.013106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.078947 | 0.105263 | 0.5 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
65b53d878c6b13a058090c96259dc43abb7f6b66 | 350 | py | Python | pushwhoosh/admin.py | unomena/django-pushwhoosh | f5fe510e7bd9741dd82f712c73a388bc4f5903c2 | [
"BSD-3-Clause"
] | 1 | 2015-05-25T19:43:54.000Z | 2015-05-25T19:43:54.000Z | pushwhoosh/admin.py | unomena/django-pushwhoosh | f5fe510e7bd9741dd82f712c73a388bc4f5903c2 | [
"BSD-3-Clause"
] | null | null | null | pushwhoosh/admin.py | unomena/django-pushwhoosh | f5fe510e7bd9741dd82f712c73a388bc4f5903c2 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on 20 Aug 2014
@author: michael
'''
from django.contrib import admin
from pushwhoosh import models
class PushWhooshNotificationAdmin(admin.ModelAdmin):
list_display = ('timestamp', 'uuid', 'api_method')
list_filter = ('timestamp', 'api_method')
admin.site.register(models.PushWhooshNotification,... | 21.875 | 79 | 0.768571 | 37 | 350 | 7.162162 | 0.72973 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019544 | 0.122857 | 350 | 15 | 80 | 23.333333 | 0.843648 | 0.114286 | 0 | 0 | 0 | 0 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
65be52058427b7612f4c86597f4813ce4a381481 | 1,721 | py | Python | rim/migrations/0009_auto_20200309_1044.py | mostateresnet/rimproject | ef1952ee386b62ea7b49c139a3c66c718fb310d0 | [
"MIT"
] | null | null | null | rim/migrations/0009_auto_20200309_1044.py | mostateresnet/rimproject | ef1952ee386b62ea7b49c139a3c66c718fb310d0 | [
"MIT"
] | 55 | 2018-04-18T19:57:56.000Z | 2021-09-22T18:51:16.000Z | rim/migrations/0009_auto_20200309_1044.py | mostateresnet/rimproject | ef1952ee386b62ea7b49c139a3c66c718fb310d0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-09 15:44
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rim', '0008_auto_20181206_1548'),
]
operations = [
migrations.RenameField(
model_name='equipment',... | 34.42 | 246 | 0.592679 | 183 | 1,721 | 5.415301 | 0.409836 | 0.063572 | 0.151362 | 0.17558 | 0.453078 | 0.353179 | 0.163471 | 0 | 0 | 0 | 0 | 0.035656 | 0.282975 | 1,721 | 49 | 247 | 35.122449 | 0.767423 | 0.026148 | 0 | 0.465116 | 1 | 0.023256 | 0.187575 | 0.01374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023256 | 0.046512 | 0 | 0.116279 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65c590c575cbb254fb2a9e6cfec86fc974a52c27 | 571 | py | Python | tests/check_astunparse.py | esupoff/astor | 5c52bc2685793cef876acd95fa0aacca3c95ca3f | [
"BSD-3-Clause"
] | 636 | 2015-02-03T01:11:23.000Z | 2022-03-30T12:35:13.000Z | tests/check_astunparse.py | esupoff/astor | 5c52bc2685793cef876acd95fa0aacca3c95ca3f | [
"BSD-3-Clause"
] | 179 | 2015-01-30T18:14:38.000Z | 2022-02-20T21:56:09.000Z | tests/check_astunparse.py | esupoff/astor | 5c52bc2685793cef876acd95fa0aacca3c95ca3f | [
"BSD-3-Clause"
] | 102 | 2015-03-13T15:28:58.000Z | 2022-02-25T02:22:15.000Z | import ast
try:
import unittest2 as unittest
except ImportError:
import unittest
from . import test_code_gen
import astunparse
class MyTests(test_code_gen.CodegenTestCase):
to_source = staticmethod(astunparse.unparse)
# Just see if it'll do anything good at all
assertSrcRoundtrips = test_code_... | 21.961538 | 75 | 0.742557 | 73 | 571 | 5.60274 | 0.671233 | 0.05868 | 0.080685 | 0.127139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01073 | 0.183888 | 571 | 25 | 76 | 22.84 | 0.866953 | 0.161121 | 0 | 0 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
65d2ab6e5abc64c5866b02e03ec72d724bfe8221 | 1,179 | py | Python | vulnman/forms.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 3 | 2021-12-22T07:02:24.000Z | 2022-01-27T20:19:11.000Z | vulnman/forms.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 44 | 2021-12-14T07:24:29.000Z | 2022-03-23T07:01:16.000Z | vulnman/forms.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 1 | 2022-01-21T16:29:56.000Z | 2022-01-21T16:29:56.000Z | from django import forms
from django.utils.safestring import mark_safe
from extra_views import InlineFormSetFactory
class DateInput(forms.DateInput):
input_type = 'date'
class NamedInlineFormSetFactory(InlineFormSetFactory):
factory_kwargs = {'extra': 1, 'can_delete': True, 'max_num': 4}
formset_name = ... | 32.75 | 149 | 0.639525 | 139 | 1,179 | 5.309353 | 0.517986 | 0.02168 | 0.01897 | 0.04607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002181 | 0.222222 | 1,179 | 35 | 150 | 33.685714 | 0.802617 | 0.044953 | 0 | 0 | 0 | 0.038462 | 0.265125 | 0.186833 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0.038462 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
65d81a21744fd9043382925bbeb5acf22acc066e | 398 | py | Python | workflow/ignite/decorators/update_cpu_model.py | Aiwizo/ml-workflow | 88e104fce571dd3b76914626a52f9001342c07cc | [
"Apache-2.0"
] | 4 | 2020-09-23T15:39:24.000Z | 2021-09-12T22:11:00.000Z | workflow/ignite/decorators/update_cpu_model.py | Aiwizo/ml-workflow | 88e104fce571dd3b76914626a52f9001342c07cc | [
"Apache-2.0"
] | 4 | 2020-09-23T15:07:39.000Z | 2020-10-30T10:26:24.000Z | workflow/ignite/decorators/update_cpu_model.py | Aiwizo/ml-workflow | 88e104fce571dd3b76914626a52f9001342c07cc | [
"Apache-2.0"
] | null | null | null | from functools import wraps
def update_cpu_model(cpu_model, model):
def decorator(process_batch):
@wraps(process_batch)
def wrapper(*args, **kwargs):
output = process_batch(*args, **kwargs)
cpu_model.load_state_dict({key: value.cpu() for key, value in model.state_dict().it... | 28.428571 | 102 | 0.645729 | 49 | 398 | 5.040816 | 0.489796 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253769 | 398 | 13 | 103 | 30.615385 | 0.83165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
65eadbf7310ec6c0e373b6428d5da182bb6f92e7 | 1,294 | py | Python | domain/src/entity/profile_entity.py | python-jacksonsr45/web_services | 6e37d4f00e9e59a35f06f05ce955ba53242ed9ee | [
"MIT"
] | null | null | null | domain/src/entity/profile_entity.py | python-jacksonsr45/web_services | 6e37d4f00e9e59a35f06f05ce955ba53242ed9ee | [
"MIT"
] | null | null | null | domain/src/entity/profile_entity.py | python-jacksonsr45/web_services | 6e37d4f00e9e59a35f06f05ce955ba53242ed9ee | [
"MIT"
] | null | null | null | import uuid
from datetime import datetime
class ProfileEntity:
def __init__(
self,
profile_id: str = None,
name: str = None,
last_name: str = None,
document_id: str = None,
phone: str = None,
mobile_phone: str = None,
created_at: str = None,
):
... | 23.962963 | 44 | 0.581917 | 166 | 1,294 | 4.295181 | 0.168675 | 0.067321 | 0.109397 | 0.143058 | 0.280505 | 0.086957 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0.00116 | 0.333849 | 1,294 | 53 | 45 | 24.415094 | 0.825986 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0.186047 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
029bfa8efe159a921e4acd2d459299678349c6fe | 3,866 | py | Python | desktop/libs/metadata/src/metadata/urls.py | xjmdoo/hue | d3eebcf9407204913006e8d38715ea3b24c688ef | [
"Apache-2.0"
] | null | null | null | desktop/libs/metadata/src/metadata/urls.py | xjmdoo/hue | d3eebcf9407204913006e8d38715ea3b24c688ef | [
"Apache-2.0"
] | null | null | null | desktop/libs/metadata/src/metadata/urls.py | xjmdoo/hue | d3eebcf9407204913006e8d38715ea3b24c688ef | [
"Apache-2.0"
] | 1 | 2018-10-24T16:50:51.000Z | 2018-10-24T16:50:51.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 54.450704 | 144 | 0.741076 | 526 | 3,866 | 5.235741 | 0.258555 | 0.046478 | 0.081336 | 0.092956 | 0.238199 | 0.079521 | 0 | 0 | 0 | 0 | 0 | 0.001416 | 0.086394 | 3,866 | 70 | 145 | 55.228571 | 0.778313 | 0.210036 | 0 | 0 | 0 | 0 | 0.681938 | 0.474951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02baf488b71bd152c3847a173e70fecb78bb9755 | 318 | py | Python | src/sentry/mediators/__init__.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | src/sentry/mediators/__init__.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 99 | 2019-05-20T14:16:33.000Z | 2021-01-19T09:25:15.000Z | src/sentry/mediators/__init__.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | from __future__ import absolute_import
from .mediator import Mediator # NOQA
from .param import Param # NOQA
from .sentry_apps import * # NOQA
from .sentry_app_installations import * # NOQA
from .token_exchange import ( # NOQA
AUTHORIZATION,
REFRESH,
GrantTypes,
GrantExchanger,
Refresher,
)
| 22.714286 | 47 | 0.732704 | 36 | 318 | 6.222222 | 0.5 | 0.142857 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 318 | 13 | 48 | 24.461538 | 0.888889 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
02c0d8775cae99af1cedb1127c3aad52444920c9 | 394 | py | Python | src/roswire/ros2/service.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | 4 | 2019-09-22T18:38:33.000Z | 2021-04-02T01:37:10.000Z | src/roswire/ros2/service.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | 208 | 2019-03-27T18:34:39.000Z | 2021-07-26T20:36:07.000Z | src/roswire/ros2/service.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__all__ = ("ROS2Service",)
import typing
import attr
if typing.TYPE_CHECKING:
from .. import AppInstance
@attr.s(frozen=True, auto_attribs=True, slots=True)
class ROS2Service:
"""Provides an interface for interacting with a ROS2 service.
Attributes
----------
name: str
... | 17.130435 | 65 | 0.649746 | 47 | 394 | 5.297872 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013029 | 0.220812 | 394 | 22 | 66 | 17.909091 | 0.798046 | 0.362944 | 0 | 0 | 0 | 0 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 2 |
02c1cee1ce1a026f737c68696152a0afc3a59461 | 152 | py | Python | kattis/Cryptographer's Conundrum.py | jaredliw/python-question-bank | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2021-04-08T07:49:15.000Z | 2021-04-08T07:49:15.000Z | kattis/Cryptographer's Conundrum.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | null | null | null | kattis/Cryptographer's Conundrum.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2022-01-23T02:12:24.000Z | 2022-01-23T02:12:24.000Z | # CPU: 0.06 s
text = input()
target = "PER"
count = 0
for idx, char in enumerate(text):
if char != target[idx % 3]:
count += 1
print(count)
| 16.888889 | 33 | 0.578947 | 25 | 152 | 3.52 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.263158 | 152 | 8 | 34 | 19 | 0.732143 | 0.072368 | 0 | 0 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 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 | 2 |
02c2f5bb652e80bb12f54988fef4bdb24b1f1612 | 2,387 | py | Python | djonet/features.py | Dmitrijjj/djonet | 99f4d3d1348065555d5d865bf4ccfad4ea8e3f3a | [
"ISC"
] | null | null | null | djonet/features.py | Dmitrijjj/djonet | 99f4d3d1348065555d5d865bf4ccfad4ea8e3f3a | [
"ISC"
] | null | null | null | djonet/features.py | Dmitrijjj/djonet | 99f4d3d1348065555d5d865bf4ccfad4ea8e3f3a | [
"ISC"
] | null | null | null | # Copyright (c) 2012, Gijs Molenaar <gijsmolenaar@gmail.com>
# Copyright (c) 2009 - 2010, Mark Bucciarelli <mkbucc@gmail.com>
# Copyright (c) 2009 Vikram Bhandoh <vikram@bhandoh.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided th... | 45.037736 | 80 | 0.736908 | 362 | 2,387 | 4.814917 | 0.51105 | 0.017212 | 0.019507 | 0.020654 | 0.071142 | 0.045898 | 0.045898 | 0.045898 | 0.045898 | 0.045898 | 0 | 0.00852 | 0.213238 | 2,387 | 53 | 81 | 45.037736 | 0.919595 | 0.828655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02ca88e2cd3b57ce6e6c9d680c620622f07f82c7 | 8,930 | py | Python | test_gappedbuf/test_buf.py | atsuoishimoto/kaaedit | 5233fdb70a04783c6513a5ec339452450e62e995 | [
"Unlicense"
] | 1 | 2015-11-04T13:37:08.000Z | 2015-11-04T13:37:08.000Z | test_gappedbuf/test_buf.py | atsuoishimoto/kaaedit | 5233fdb70a04783c6513a5ec339452450e62e995 | [
"Unlicense"
] | null | null | null | test_gappedbuf/test_buf.py | atsuoishimoto/kaaedit | 5233fdb70a04783c6513a5ec339452450e62e995 | [
"Unlicense"
] | null | null | null | import pytest
import sys
import _gappedbuf
class TestGappedBuf:
def test_gappedbuf(self):
buf = _gappedbuf.GappedBuffer()
buf.insert(0, 'abc')
assert buf[0] == 'a'
assert buf[1] == 'b'
assert buf[2] == 'c'
assert buf.bufsize == 4096
assert buf.gap =... | 27.90625 | 74 | 0.509854 | 1,210 | 8,930 | 3.717355 | 0.109091 | 0.2241 | 0.11205 | 0.1245 | 0.641396 | 0.572699 | 0.478213 | 0.445087 | 0.378168 | 0.31992 | 0 | 0.12321 | 0.327436 | 8,930 | 319 | 75 | 27.99373 | 0.625708 | 0.012654 | 0 | 0.394068 | 0 | 0 | 0.022709 | 0 | 0 | 0 | 0.001817 | 0 | 0.478814 | 1 | 0.09322 | false | 0 | 0.012712 | 0 | 0.110169 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02d260fb4e75d8b932a96cbdca392b1e4f990f69 | 605 | py | Python | youtube_search_api/migrations/0002_alter_queryresult_channel_name_and_more.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | youtube_search_api/migrations/0002_alter_queryresult_channel_name_and_more.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | youtube_search_api/migrations/0002_alter_queryresult_channel_name_and_more.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-21 19:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('youtube_search_api', '0001_squashed_0002_queryresult_channel_name_queryresult_publish_time'),
]
operations = [
migrations.AlterField(
... | 25.208333 | 103 | 0.621488 | 61 | 605 | 5.918033 | 0.655738 | 0.124654 | 0.138504 | 0.160665 | 0.243767 | 0.243767 | 0 | 0 | 0 | 0 | 0 | 0.059497 | 0.277686 | 605 | 23 | 104 | 26.304348 | 0.76659 | 0.07438 | 0 | 0.352941 | 1 | 0 | 0.236559 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02db4dc7e07ac2332c2f4c3d6c921aab4fbc1cbb | 715 | py | Python | example/app/models.py | PNoryk/django-filter-grouped | 39a096a65121aefe989700896cd348ebcd7216c0 | [
"BSD-3-Clause"
] | 3 | 2021-10-14T05:59:32.000Z | 2022-01-20T09:32:13.000Z | example/app/models.py | PNoryk/django-filter-groups | 39a096a65121aefe989700896cd348ebcd7216c0 | [
"BSD-3-Clause"
] | null | null | null | example/app/models.py | PNoryk/django-filter-groups | 39a096a65121aefe989700896cd348ebcd7216c0 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
# Create your models here.
class F2(models.Model):
foreign_model = models.ForeignKey("ForeignModel", on_delete=models.CASCADE)
def __str__(self):
return "f2 model"
class ForeignModel(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
... | 24.655172 | 120 | 0.716084 | 89 | 715 | 5.483146 | 0.483146 | 0.112705 | 0.061475 | 0.098361 | 0.110656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013629 | 0.179021 | 715 | 28 | 121 | 25.535714 | 0.817717 | 0.033566 | 0 | 0.176471 | 0 | 0 | 0.050798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.176471 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
02dcc7ebfdb70fd4a6f21e81da18041e8adb208e | 700 | py | Python | examtool/api/extract_questions.py | chrononyan/examtool | db21394ce82b6f8f6791c48127aae72ea4cad655 | [
"MIT"
] | null | null | null | examtool/api/extract_questions.py | chrononyan/examtool | db21394ce82b6f8f6791c48127aae72ea4cad655 | [
"MIT"
] | null | null | null | examtool/api/extract_questions.py | chrononyan/examtool | db21394ce82b6f8f6791c48127aae72ea4cad655 | [
"MIT"
] | null | null | null | def extract_questions(exam):
if exam.get("public"):
yield from group_questions(exam["public"])
for group in exam["groups"]:
yield from group_questions(group)
def group_questions(group):
out = _group_questions(group)
try:
first = next(out)
except StopIteration:
retur... | 26.923077 | 83 | 0.591429 | 84 | 700 | 4.821429 | 0.321429 | 0.207407 | 0.187654 | 0.11358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27 | 700 | 25 | 84 | 28 | 0.792564 | 0 | 0 | 0.095238 | 0 | 0 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
02e764c140722aafa4c23a8c015bf267d347083c | 16,201 | py | Python | tlsenum/mappings.py | Ayrx/tlsenum | 787c88bbff75acd30ff8df0a2a76de93579ba6f3 | [
"MIT"
] | 32 | 2015-01-22T18:08:11.000Z | 2021-09-22T10:55:26.000Z | tlsenum/mappings.py | Ayrx/tlsenum | 787c88bbff75acd30ff8df0a2a76de93579ba6f3 | [
"MIT"
] | 2 | 2015-05-22T22:19:18.000Z | 2020-07-16T11:24:58.000Z | tlsenum/mappings.py | Ayrx/tlsenum | 787c88bbff75acd30ff8df0a2a76de93579ba6f3 | [
"MIT"
] | 6 | 2017-04-27T13:35:50.000Z | 2021-09-22T10:55:27.000Z | from __future__ import absolute_import, division, print_function
from enum import Enum
class CipherSuites(Enum):
TLS_NULL_WITH_NULL_NULL = 0x0000
TLS_RSA_WITH_NULL_MD5 = 0x0001
TLS_RSA_WITH_NULL_SHA = 0x0002
TLS_RSA_EXPORT_WITH_RC4_40_MD5 = 0x0003
TLS_RSA_WITH_RC4_128_MD5 = 0x0004
TLS_RSA_WIT... | 44.144414 | 64 | 0.822974 | 2,829 | 16,201 | 3.969601 | 0.154472 | 0.068566 | 0.048976 | 0.037044 | 0.712289 | 0.621549 | 0.170971 | 0 | 0 | 0 | 0 | 0.203967 | 0.153571 | 16,201 | 366 | 65 | 44.265027 | 0.614964 | 0 | 0 | 0 | 0 | 0 | 0.000741 | 0 | 0 | 0 | 0.118511 | 0 | 0 | 1 | 0 | false | 0 | 0.005602 | 0 | 0.997199 | 0.002801 | 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 | 1 | 0 | 0 | 2 |
02fcb8bcfeef1cd6a3555b57b2a6899f93a11139 | 145 | py | Python | trustpayments/models/entity_query_filter_type.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | 2 | 2020-01-16T13:24:06.000Z | 2020-11-21T17:40:17.000Z | postfinancecheckout/models/entity_query_filter_type.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 4 | 2019-10-14T17:33:23.000Z | 2021-10-01T14:49:11.000Z | postfinancecheckout/models/entity_query_filter_type.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 2 | 2019-10-15T14:17:10.000Z | 2021-09-17T13:07:09.000Z | # coding: utf-8
from enum import Enum, unique
@unique
class EntityQueryFilterType(Enum):
LEAF = "LEAF"
OR = "OR"
AND = "AND"
| 12.083333 | 34 | 0.606897 | 18 | 145 | 4.888889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.275862 | 145 | 11 | 35 | 13.181818 | 0.828571 | 0.089655 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 2 |
f3093205f819a382e51271df6622db63e9dcb227 | 253 | py | Python | utils/New_ImageProvessor/test.py | GreensCH/PYNQ-HLS-ImageProcessPlatform | 02cad858ff02f3c1758a66dd0528179149f68f16 | [
"MIT"
] | null | null | null | utils/New_ImageProvessor/test.py | GreensCH/PYNQ-HLS-ImageProcessPlatform | 02cad858ff02f3c1758a66dd0528179149f68f16 | [
"MIT"
] | 2 | 2021-04-03T14:02:51.000Z | 2021-04-05T13:24:21.000Z | utils/New_ImageProvessor/test.py | GreensCH/PYNQ-HLS-ImageProcessPlatform | 02cad858ff02f3c1758a66dd0528179149f68f16 | [
"MIT"
] | null | null | null | #%%
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from pynq import allocate, Overlay,GPIO
from pynq import lib
from pynq.lib.video import *
import cv2 as cv
# %%
design = Overlay("v1_3.bit")
design?
# %%
| 14.882353 | 39 | 0.73913 | 40 | 253 | 4.65 | 0.575 | 0.129032 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.16996 | 253 | 16 | 40 | 15.8125 | 0.871429 | 0.031621 | 0 | 0 | 0 | 0 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.7 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
f309daced2b0bd8da77ecbabec9379c2acc71ba4 | 219 | py | Python | DSM-desktop-gui/setup.py | wysekm/DistributedSystemMonitoring | 6a643b614c5cc308d414fa35646ef8a02305a1fc | [
"BSD-3-Clause"
] | 2 | 2015-04-23T03:17:04.000Z | 2017-01-29T13:44:23.000Z | DSM-desktop-gui/setup.py | wysekm/DistributedSystemMonitoring | 6a643b614c5cc308d414fa35646ef8a02305a1fc | [
"BSD-3-Clause"
] | null | null | null | DSM-desktop-gui/setup.py | wysekm/DistributedSystemMonitoring | 6a643b614c5cc308d414fa35646ef8a02305a1fc | [
"BSD-3-Clause"
] | null | null | null | from distutils.core import setup
setup(
name='DSM-gui',
version='0.8',
author='M. Wysokinski',
description='Desktop GUI for the DSM project',
install_requires=[
"twisted == 13.2.0",
],
) | 19.909091 | 50 | 0.607306 | 28 | 219 | 4.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.242009 | 219 | 11 | 51 | 19.909091 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.322727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f30a20d84270cfe1429b59cd418e414097137019 | 4,761 | py | Python | src/pylo/tests/test_datalog.py | olympus112/pylo2 | cfbe29d1c2f8eead0193ee2d024090555407c528 | [
"MIT"
] | 80 | 2020-10-20T14:25:28.000Z | 2022-02-27T14:29:24.000Z | src/pylo/tests/test_datalog.py | olympus112/pylo2 | cfbe29d1c2f8eead0193ee2d024090555407c528 | [
"MIT"
] | 8 | 2020-10-20T14:16:55.000Z | 2021-03-19T13:51:54.000Z | src/pylo/tests/test_datalog.py | olympus112/pylo2 | cfbe29d1c2f8eead0193ee2d024090555407c528 | [
"MIT"
] | 7 | 2020-10-21T21:01:31.000Z | 2021-09-29T09:57:14.000Z | from pylo.language.lp import c_const, c_var, c_pred
from pylo.engines.datalog import MuZ
class DatalogTests:
def simple_grandparent(self):
p1 = c_const("p1")
p2 = c_const("p2")
p3 = c_const("p3")
parent = c_pred("parent", 2)
grandparent = c_pred("grandparent", 2)
... | 34.251799 | 75 | 0.585381 | 668 | 4,761 | 4.046407 | 0.098802 | 0.079911 | 0.150943 | 0.136145 | 0.746208 | 0.709212 | 0.654088 | 0.591195 | 0.54939 | 0.54939 | 0 | 0.053173 | 0.26528 | 4,761 | 138 | 76 | 34.5 | 0.719554 | 0.278303 | 0 | 0.106667 | 0 | 0 | 0.017637 | 0 | 0 | 0 | 0 | 0 | 0.453333 | 1 | 0.04 | false | 0 | 0.026667 | 0 | 0.08 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f31e98c85d4d9f7c6a1d08ff0c891f3c57e2f8c3 | 702 | py | Python | oops_fhir/r4/value_set/concept_map_group_unmapped_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/concept_map_group_unmapped_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/concept_map_group_unmapped_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.valueset import ValueSet as _ValueSet
from oops_fhir.utils import ValueSet
from oops_fhir.r4.code_system.concept_map_group_unmapped_mode import (
ConceptMapGroupUnmappedMode as ConceptMapGroupUnmappedMode_,
)
__all__ = ["ConceptMapGroupUnmappedMode"]
_resource = _... | 22.645161 | 70 | 0.769231 | 79 | 702 | 6.544304 | 0.632911 | 0.054159 | 0.061896 | 0.077369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008446 | 0.156695 | 702 | 30 | 71 | 23.4 | 0.864865 | 0.254986 | 0 | 0 | 0 | 0 | 0.064646 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b82dc5e03b0cd7b5d1f3e72a8e39178db5a9c1e7 | 1,266 | py | Python | apps/user/tests/test_models.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | apps/user/tests/test_models.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | apps/user/tests/test_models.py | akshay-codemonk/fyle-xero | a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
class UsersModelTestCases(TestCase):
"""
Test cases for the custom User model
"""
def test_create_user(self):
"""
Test user creation
"""
user = get_user_model()
normal_user = user.o... | 34.216216 | 85 | 0.657978 | 149 | 1,266 | 5.38255 | 0.255034 | 0.044888 | 0.105985 | 0.104738 | 0.455112 | 0.124688 | 0.124688 | 0.124688 | 0 | 0 | 0 | 0 | 0.233017 | 1,266 | 36 | 86 | 35.166667 | 0.825953 | 0.062401 | 0 | 0.173913 | 0 | 0 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 1 | 0.086957 | false | 0.086957 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b84ed2843f678850c634af21b973e67b225ff090 | 201 | py | Python | 2016/05-1.py | LK/advent-of-code | fc9ba3315608bc3b20ebb2c1212145f970b888d6 | [
"MIT"
] | null | null | null | 2016/05-1.py | LK/advent-of-code | fc9ba3315608bc3b20ebb2c1212145f970b888d6 | [
"MIT"
] | null | null | null | 2016/05-1.py | LK/advent-of-code | fc9ba3315608bc3b20ebb2c1212145f970b888d6 | [
"MIT"
] | null | null | null | import hashlib
doorid = raw_input()
password = ''
i = 0
while len(password) < 8:
hash = hashlib.md5(doorid + str(i)).hexdigest()
if hash[:5] == '00000':
password += hash[5]
i += 1
print password | 16.75 | 48 | 0.636816 | 30 | 201 | 4.233333 | 0.666667 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067485 | 0.189055 | 201 | 12 | 49 | 16.75 | 0.711656 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.4 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b853ab6b7a378363210db622eb0752d6e506e961 | 192 | py | Python | component/lib/snetwork/httpclient.py | yennar/HIS | bab3297d87a1f39319766e147420259b101beb0a | [
"MIT"
] | null | null | null | component/lib/snetwork/httpclient.py | yennar/HIS | bab3297d87a1f39319766e147420259b101beb0a | [
"MIT"
] | null | null | null | component/lib/snetwork/httpclient.py | yennar/HIS | bab3297d87a1f39319766e147420259b101beb0a | [
"MIT"
] | null | null | null | import urllib2
def get(url,timeout=5):
rtn = ''
try:
response = urllib2.urlopen(str(url),timeout=timeout)
rtn = response.read()
except:
pass
return rtn | 19.2 | 60 | 0.583333 | 23 | 192 | 4.869565 | 0.695652 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.302083 | 192 | 10 | 61 | 19.2 | 0.813433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b86285d732e7d1e8a031c7682435b9893d0255d7 | 87 | py | Python | secrets.py | evansoderberg/political_tweet_streamer | edf573653f37592df8231d6c197d2e81a72018b8 | [
"MIT"
] | null | null | null | secrets.py | evansoderberg/political_tweet_streamer | edf573653f37592df8231d6c197d2e81a72018b8 | [
"MIT"
] | null | null | null | secrets.py | evansoderberg/political_tweet_streamer | edf573653f37592df8231d6c197d2e81a72018b8 | [
"MIT"
] | null | null | null | API_KEY = ''
API_SECRET = ''
ACCESS_TOKEN = ''
TOKEN_SECRET = ''
SEGMENT_WRITE_KEY = '' | 17.4 | 22 | 0.666667 | 11 | 87 | 4.727273 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 5 | 22 | 17.4 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b879b6d051d0457da10b48f29451cb18d4d22249 | 420 | py | Python | Driver/migrations/0002_auto_20180527_2339.py | Anne56njeri/Carpool | b1d95b1307c287a8edca576ad24ccc3b7a8427fc | [
"Unlicense",
"MIT"
] | 1 | 2018-08-01T08:57:44.000Z | 2018-08-01T08:57:44.000Z | Driver/migrations/0002_auto_20180527_2339.py | Anne56njeri/Carpool | b1d95b1307c287a8edca576ad24ccc3b7a8427fc | [
"Unlicense",
"MIT"
] | null | null | null | Driver/migrations/0002_auto_20180527_2339.py | Anne56njeri/Carpool | b1d95b1307c287a8edca576ad24ccc3b7a8427fc | [
"Unlicense",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-27 20:39
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Driver', '0001_initial'),
]
operations = [
migrations.RenameField(
model_... | 20 | 46 | 0.6 | 46 | 420 | 5.23913 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066445 | 0.283333 | 420 | 20 | 47 | 21 | 0.734219 | 0.157143 | 0 | 0 | 1 | 0 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b87a22864d5cace5c155bf845ba1c6aa86c7a2a0 | 1,867 | py | Python | scripts/generate_tests.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | null | null | null | scripts/generate_tests.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | 2 | 2021-03-25T23:41:00.000Z | 2021-06-02T01:34:44.000Z | scripts/generate_tests.py | hobochili/openfda | 9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141 | [
"CC0-1.0"
] | 1 | 2021-01-18T01:34:45.000Z | 2021-01-18T01:34:45.000Z | '''
Given a set of test descriptions from tests_config.json and an endpoint,
generate a default test file for the endpoint.
Usage:
python scripts/generate_tests.py <endpoint> > ./openfda/deploy/tests/<endpoint>/test_endpoint.py
While this is intended as a one-off test generator, it maybe useful if many similar
tests... | 24.893333 | 96 | 0.672737 | 291 | 1,867 | 4.178694 | 0.350515 | 0.029605 | 0.029605 | 0.054276 | 0.175987 | 0.175987 | 0.143092 | 0.100329 | 0 | 0 | 0 | 0.011082 | 0.178361 | 1,867 | 74 | 97 | 25.22973 | 0.781617 | 0 | 0 | 0.25 | 1 | 0.020833 | 0.33768 | 0.059025 | 0 | 0 | 0 | 0 | 0.041667 | 0 | null | null | 0 | 0.166667 | null | null | 0.229167 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8820ed0db02e1ad611c1d968a1b446658182767 | 8,667 | py | Python | blackhole/blackhole.py | liuhao1024/black-hole | 4b80471a6148d46640b345e573d0a1b9af69694a | [
"MIT"
] | 3 | 2017-01-03T02:55:23.000Z | 2017-10-12T16:47:07.000Z | blackhole/blackhole.py | liuhao1024/black-hole | 4b80471a6148d46640b345e573d0a1b9af69694a | [
"MIT"
] | null | null | null | blackhole/blackhole.py | liuhao1024/black-hole | 4b80471a6148d46640b345e573d0a1b9af69694a | [
"MIT"
] | null | null | null | # coding=utf-8
from datetime import datetime, timedelta
import time
import calendar
from relativedelta import relativedelta
from functools import total_ordering
from timeparser import timeparse
__all__ = ['Blackhole', 'ben']
@total_ordering
class Blackhole(object):
"""核心对象,增强版本的datetime.datetime对象
"""
m... | 24.00831 | 102 | 0.565017 | 970 | 8,667 | 4.890722 | 0.184536 | 0.070826 | 0.058179 | 0.040472 | 0.279933 | 0.199621 | 0.137226 | 0.094646 | 0.086425 | 0.086425 | 0 | 0.013356 | 0.308873 | 8,667 | 360 | 103 | 24.075 | 0.778631 | 0.113188 | 0 | 0.21327 | 0 | 0 | 0.014578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.270142 | false | 0 | 0.028436 | 0.085308 | 0.559242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b887f5922b1d31c8e802f2f3076cda3da46bb2d0 | 182 | py | Python | nsync_cli/queries/delete.py | neutron-sync/nsync-cli | 6ec3517783fdbad067312f4247ea76f27ab93b3d | [
"MIT"
] | 2 | 2021-10-01T20:22:58.000Z | 2021-10-01T21:26:07.000Z | nsync_cli/queries/delete.py | neutron-sync/nsync-cli | 6ec3517783fdbad067312f4247ea76f27ab93b3d | [
"MIT"
] | 8 | 2021-08-28T16:18:26.000Z | 2021-09-29T21:40:56.000Z | nsync_cli/queries/delete.py | neutron-sync/nsync-cli | 6ec3517783fdbad067312f4247ea76f27ab93b3d | [
"MIT"
] | null | null | null | delete_item = """
mutation{
deleteItem(input: {
itemId: $item_id
itemType: $item_type
}) {
errors{
messages
}
success
itemId
itemType
}
}
"""
| 11.375 | 24 | 0.543956 | 16 | 182 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.335165 | 182 | 15 | 25 | 12.133333 | 0.793388 | 0 | 0 | 0 | 0 | 0 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8937ce36a9631739ab3d7e65a4dad4124406a00 | 1,279 | py | Python | tensorflow/contrib/autograph/core/annos.py | Alek-dr/tensorflow | bad0b4d35ed6abfe26f1265e45440c41fcdb0271 | [
"Apache-2.0"
] | 5 | 2017-08-28T11:27:19.000Z | 2021-08-03T17:40:00.000Z | tensorflow/contrib/autograph/core/annos.py | rrubo/tensorflow | ff83809afa9062e77809d2b65ffbaee3c0045241 | [
"Apache-2.0"
] | 1 | 2020-11-25T21:29:56.000Z | 2021-06-11T05:31:49.000Z | tensorflow/contrib/autograph/core/annos.py | rrubo/tensorflow | ff83809afa9062e77809d2b65ffbaee3c0045241 | [
"Apache-2.0"
] | 4 | 2019-11-11T13:46:27.000Z | 2020-03-14T05:36:53.000Z | # Copyright 2017 The TensorFlow 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 applica... | 31.975 | 80 | 0.716185 | 169 | 1,279 | 5.307692 | 0.621302 | 0.06689 | 0.053512 | 0.035674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007449 | 0.160281 | 1,279 | 39 | 81 | 32.794872 | 0.827747 | 0.70602 | 0 | 0 | 0 | 0 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0.1 | 0.9 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b8a0cb8551ad83b1f365babce1557ba9a7195784 | 280 | py | Python | test/unit/tools/msvc/common.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | null | null | null | test/unit/tools/msvc/common.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 1 | 2020-11-14T10:30:15.000Z | 2020-11-14T10:30:15.000Z | test/unit/tools/msvc/common.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | null | null | null | from bfg9000.languages import Languages
known_langs = Languages()
with known_langs.make('c') as x:
x.vars(compiler='CC', flags='CFLAGS')
with known_langs.make('c++') as x:
x.vars(compiler='CXX', flags='CXXFLAGS')
def mock_which(*args, **kwargs):
return ['command']
| 23.333333 | 44 | 0.685714 | 41 | 280 | 4.585366 | 0.609756 | 0.159574 | 0.148936 | 0.191489 | 0.37234 | 0.37234 | 0.37234 | 0.37234 | 0.37234 | 0.37234 | 0 | 0.016598 | 0.139286 | 280 | 11 | 45 | 25.454545 | 0.763485 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 2 |
b8a4c507767dd288d7718a140e2372545aa31d55 | 557 | py | Python | tests/classes/user_sos.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/classes/user_sos.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 1 | 2021-02-21T03:18:09.000Z | 2021-03-08T01:07:52.000Z | tests/classes/user_sos.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from jsonclasses import jsonclass, types
@jsonclass
class UserSOS:
name: str = types.str.required
age: int = types.int.setonsave(lambda x: x + 300).required
@jsonclass
class UserSOSZ:
name: str = types.str.required
age: int = types.int.setonsave(lambda: 500).required
@jsonclass
class UserFSOS:
... | 21.423077 | 70 | 0.707361 | 76 | 557 | 5.184211 | 0.355263 | 0.101523 | 0.139594 | 0.152284 | 0.416244 | 0.357868 | 0.357868 | 0.357868 | 0.357868 | 0.263959 | 0 | 0.02407 | 0.179533 | 557 | 25 | 71 | 22.28 | 0.838074 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b8b1f86d70c73f116dd598e1af07334a8735de38 | 1,098 | py | Python | Random datasets training/k-neighbours - sklearn.py | samuelwycliffe/Machine-Learning | 2fa6632ed1cfc591711c6b463ea40f95c2c2ae50 | [
"MIT"
] | null | null | null | Random datasets training/k-neighbours - sklearn.py | samuelwycliffe/Machine-Learning | 2fa6632ed1cfc591711c6b463ea40f95c2c2ae50 | [
"MIT"
] | null | null | null | Random datasets training/k-neighbours - sklearn.py | samuelwycliffe/Machine-Learning | 2fa6632ed1cfc591711c6b463ea40f95c2c2ae50 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn import preprocessing,neighbors,svm
from sklearn.model_selection import train_test_split
import pandas as pd
#buying,maint,doors,persons,lug_boot,safety,class
df = pd.read_csv(r'car\car.data')
df.replace("vhigh",3,inplace=True)
df.replace("high",2,inplace=True)
df.replace("big",2,inpla... | 25.534884 | 65 | 0.74408 | 196 | 1,098 | 4.086735 | 0.382653 | 0.134831 | 0.194757 | 0.274657 | 0.27965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03876 | 0.060109 | 1,098 | 42 | 66 | 26.142857 | 0.737403 | 0.078324 | 0 | 0 | 0 | 0 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0.068966 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b8b278a1fbd72aabda9c7649100c498517f245e9 | 46,227 | py | Python | darwinpush/xb/raw/binding.py | fasteroute/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 3 | 2015-08-15T15:38:06.000Z | 2019-08-06T11:09:32.000Z | darwinpush/xb/raw/binding.py | grundleborg/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 34 | 2015-07-22T13:47:16.000Z | 2015-08-12T17:40:23.000Z | darwinpush/xb/raw/binding.py | grundleborg/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 1 | 2015-08-30T15:26:24.000Z | 2015-08-30T15:26:24.000Z | # ./darwinpush/xb/raw/binding.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:9d19614910a8e83cbb93a86fc981bfb16ed4834a
# Generated 2015-04-23 16:42:14.515396 by PyXB version 1.2.4 using Python 3.4.1.final.0
# Namespace http://www.thalesgroup.com/rtti/XmlRefData/v3
from __future__ import unicode_literals
import pyxb
... | 58.663706 | 388 | 0.769875 | 5,565 | 46,227 | 6.174843 | 0.074573 | 0.039694 | 0.043302 | 0.063557 | 0.75785 | 0.715333 | 0.689899 | 0.67046 | 0.613567 | 0.57914 | 0 | 0.019342 | 0.115344 | 46,227 | 787 | 389 | 58.738247 | 0.820932 | 0.122958 | 0 | 0.339431 | 1 | 0.010163 | 0.277683 | 0.20196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010163 | false | 0.006098 | 0.026423 | 0 | 0.378049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b211d69eef89be871f00893cf75b32bb50695895 | 1,576 | py | Python | tests/framework/AnalyticModels/optimizing/mccormick_stoch.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 159 | 2017-03-24T21:07:06.000Z | 2022-03-20T13:44:40.000Z | tests/framework/AnalyticModels/optimizing/mccormick_stoch.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 1,667 | 2017-03-27T14:41:22.000Z | 2022-03-31T19:50:06.000Z | tests/framework/AnalyticModels/optimizing/mccormick_stoch.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 95 | 2017-03-24T21:05:03.000Z | 2022-03-08T17:30:22.000Z | # Copyright 2017 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 31.52 | 74 | 0.706853 | 235 | 1,576 | 4.72766 | 0.557447 | 0.054005 | 0.023402 | 0.028803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.189086 | 1,576 | 49 | 75 | 32.163265 | 0.855243 | 0.722081 | 0 | 0 | 0 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b212de56ee605e21acd39d7ba02ca77665eb3200 | 3,432 | py | Python | venv/Lib/site-packages/pyo/examples/synthesis/06_paf.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | venv/Lib/site-packages/pyo/examples/synthesis/06_paf.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | venv/Lib/site-packages/pyo/examples/synthesis/06_paf.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from pyo import *
import math
twopi = math.pi * 2
s = Server(duplex=0).boot()
class PAF:
def __init__(self, f0, fc, bw, fs, amp):
self.bell = WinTable(8) # half-sine
self.shape = WinTable(4) # {4, 5 or 6}
self.f0, self.fc, self.bw, self.fs, self.... | 28.6 | 100 | 0.5 | 568 | 3,432 | 2.985915 | 0.302817 | 0.06191 | 0.028302 | 0.035377 | 0.03066 | 0.03066 | 0 | 0 | 0 | 0 | 0 | 0.202476 | 0.270396 | 3,432 | 119 | 101 | 28.840336 | 0.47484 | 0.0169 | 0 | 0 | 0 | 0 | 0.033234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.019417 | 0 | 0.048544 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b2178506e92f46d93203e9d7714b0b026da94b36 | 4,994 | py | Python | mars/opcodes.py | sighingnow/mars | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | [
"Apache-2.0"
] | null | null | null | mars/opcodes.py | sighingnow/mars | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | [
"Apache-2.0"
] | null | null | null | mars/opcodes.py | sighingnow/mars | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | [
"Apache-2.0"
] | null | null | null | # Generated automatically. DO NOT EDIT!
NULL = 0
SCALAR = 1
TENSOR_DATA_SOURCE = 2
TENSOR_ONES = 3
TENSOR_ONES_LIKE = 4
TENSOR_ZEROS = 5
TENSOR_ZEROS_LIKE = 6
TENSOR_EMPTY = 7
TENSOR_EMPTY_LIKE = 8
TENSOR_FULL = 9
TENSOR_FULL_LIKE = 25
TENSOR_ARANGE = 10
TENSOR_INDICES = 11
TENSOR_DIAG = 12
TENSOR_EYE = 13
TENSOR_LINS... | 16.320261 | 43 | 0.754505 | 795 | 4,994 | 4.510692 | 0.740881 | 0.016732 | 0.017568 | 0.014501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212025 | 0.184021 | 4,994 | 305 | 44 | 16.37377 | 0.667975 | 0.007609 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b21a803ec8486b7df552372d5892646e34629589 | 278 | py | Python | lemonsoap/config.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | null | null | null | lemonsoap/config.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | 1 | 2019-08-23T18:30:31.000Z | 2019-08-23T18:32:23.000Z | lemonsoap/config.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
LemonSoap - Config.
Global config holder for configuration.
"""
import typing
import pandas as pd
import logging
class _Config(dict):
"""
Holds configuration for processing.
"""
def __init__(self):
pass
CONFIG = _Config()
| 13.9 | 39 | 0.643885 | 31 | 278 | 5.580645 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.233813 | 278 | 19 | 40 | 14.631579 | 0.807512 | 0.428058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
b2229ed1cd1551cc869c30ed893d035b041da698 | 413 | py | Python | diskpy/plot/__init__.py | langfzac/diskpy | 3b0f4fdc7f1fea21efdd3ab55bbf362181c7a3c4 | [
"MIT"
] | 4 | 2016-03-25T18:09:39.000Z | 2020-03-10T09:27:41.000Z | diskpy/plot/__init__.py | langfzac/diskpy | 3b0f4fdc7f1fea21efdd3ab55bbf362181c7a3c4 | [
"MIT"
] | 21 | 2015-07-20T21:56:45.000Z | 2017-09-16T23:01:15.000Z | diskpy/plot/__init__.py | langfzac/diskpy | 3b0f4fdc7f1fea21efdd3ab55bbf362181c7a3c4 | [
"MIT"
] | 4 | 2015-08-07T22:03:12.000Z | 2021-02-19T16:30:17.000Z | # -*- coding: utf-8 -*-
"""
init for diskpy.plot
Created on Thu Jul 16 11:25:15 2015
@author: ibackus
"""
from _plot import gridplot, heatmap, lineanimate, waterfall
from _plot import colorCodedImage, colorCodeArray, normalizeArray
from _plot import savefig
__all__ = ['gridplot', 'heatmap', 'lineanimate', 'waterfall... | 25.8125 | 66 | 0.733656 | 46 | 413 | 6.26087 | 0.630435 | 0.083333 | 0.145833 | 0.243056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036111 | 0.128329 | 413 | 15 | 67 | 27.533333 | 0.763889 | 0.237288 | 0 | 0 | 0 | 0 | 0.276873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b258423a970b6878b0771dd718a7fddbd15bca52 | 67 | py | Python | Lily/sphere_6.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 4 | 2022-03-20T10:59:53.000Z | 2022-03-25T18:28:04.000Z | Lily/sphere_6.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | null | null | null | Lily/sphere_6.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 15 | 2022-03-12T11:49:10.000Z | 2022-03-15T06:22:55.000Z | r=6
pi=3.14
volume=(4*pi*6**3)/3
print("Volume of sphere=",volume)
| 13.4 | 33 | 0.656716 | 16 | 67 | 2.75 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 0.089552 | 67 | 4 | 34 | 16.75 | 0.590164 | 0 | 0 | 0 | 0 | 0 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b2672a60ed274c2c63d18fcc75d364fb1ebebbd1 | 594 | py | Python | tests/process_object_classes.py | megafetis/conveyr_py | 49429f9331d1be346ace597d7daa57254db7d99a | [
"Apache-2.0",
"MIT"
] | 1 | 2020-11-03T13:38:03.000Z | 2020-11-03T13:38:03.000Z | tests/process_object_classes.py | megafetis/conveyr_py | 49429f9331d1be346ace597d7daa57254db7d99a | [
"Apache-2.0",
"MIT"
] | 2 | 2021-02-05T07:22:39.000Z | 2021-04-13T09:27:11.000Z | tests/process_object_classes.py | megafetis/conveyr_py | 49429f9331d1be346ace597d7daa57254db7d99a | [
"Apache-2.0",
"MIT"
] | 1 | 2020-11-14T00:16:51.000Z | 2020-11-14T00:16:51.000Z | from .process_interfaces import IHasId,IHasName,IHasSurname,IHasCreationDate,IHasNamePayload,IHasSurnamePayload, IHasSurnamePayload1, IHasThumbnailPathPayload
class Employee(IHasId,IHasName,IHasSurname,IHasCreationDate):
def __init__(self):
pass
class CreateEmployeePayload(IHasNamePayload,IHasSurnamePaylo... | 42.428571 | 158 | 0.791246 | 56 | 594 | 8.178571 | 0.464286 | 0.085153 | 0.10917 | 0.179039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009728 | 0.13468 | 594 | 13 | 159 | 45.692308 | 0.881323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b26ae50c4a71a2712f3efcad8efb46682843d557 | 336 | py | Python | src/poetry/console/logging/formatters/__init__.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 7,258 | 2018-02-28T16:23:08.000Z | 2019-12-11T18:27:58.000Z | src/poetry/console/logging/formatters/__init__.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 1,608 | 2018-02-28T15:31:35.000Z | 2019-12-11T20:00:05.000Z | src/poetry/console/logging/formatters/__init__.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 597 | 2018-03-07T15:07:46.000Z | 2019-12-11T16:36:22.000Z | from __future__ import annotations
from poetry.console.logging.formatters.builder_formatter import BuilderLogFormatter
FORMATTERS = {
"poetry.core.masonry.builders.builder": BuilderLogFormatter(),
"poetry.core.masonry.builders.sdist": BuilderLogFormatter(),
"poetry.core.masonry.builders.wheel": BuilderLo... | 30.545455 | 83 | 0.791667 | 32 | 336 | 8.15625 | 0.5 | 0.114943 | 0.195402 | 0.287356 | 0.337165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 336 | 10 | 84 | 33.6 | 0.861386 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b26c3f5a138480109661e8493fab9b387333e8ee | 271 | py | Python | cage/cryptids/admin.py | carys23/Cryptids | 65ca40faee574c74a8bbde642ace5cffb189d15f | [
"Unlicense"
] | 1 | 2021-03-17T16:19:19.000Z | 2021-03-17T16:19:19.000Z | cage/cryptids/admin.py | carys23/Cryptids | 65ca40faee574c74a8bbde642ace5cffb189d15f | [
"Unlicense"
] | 27 | 2021-03-17T16:26:11.000Z | 2021-03-26T17:24:54.000Z | cage/cryptids/admin.py | carys23/Cryptids | 65ca40faee574c74a8bbde642ace5cffb189d15f | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import Location, Animal, Sighting
class CityAdmin(admin.ModelAdmin):
list_display = ('name', 'area')
admin.site.register(Animal)
admin.site.register(Location)
admin.site.register(Sighting)
# Register your models here.
| 22.583333 | 46 | 0.774908 | 35 | 271 | 5.971429 | 0.571429 | 0.129187 | 0.244019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114391 | 271 | 11 | 47 | 24.636364 | 0.870833 | 0.095941 | 0 | 0 | 0 | 0 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
b277bd0f1a8c3ec384abb4e38196285978d28eaf | 522 | py | Python | strategies/linear.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 6 | 2019-03-01T13:17:09.000Z | 2022-03-07T04:07:04.000Z | strategies/linear.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | null | null | null | strategies/linear.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 2 | 2020-08-02T07:36:00.000Z | 2021-01-13T15:04:00.000Z | import os
import math
import dbh_util as util
from sklearn.linear_model import LinearRegression
#
# Linear reggression
# Regression values binned as above or below .5 to make a classifier
#
def predict(classifier, test, args, sargs_str, threshold=.5):
preds = classifier.predict(test[0])
if threshold is not N... | 27.473684 | 73 | 0.727969 | 78 | 522 | 4.807692 | 0.589744 | 0.042667 | 0.069333 | 0.085333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.187739 | 522 | 19 | 73 | 27.473684 | 0.870283 | 0.162835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b27dc738728ce2fbe4e3884a374eea073125fef3 | 1,136 | py | Python | imdb/models.py | ParthRavani/fddcimdb | 769390e44e8473e94170fb315daec2d71bec982f | [
"MIT"
] | null | null | null | imdb/models.py | ParthRavani/fddcimdb | 769390e44e8473e94170fb315daec2d71bec982f | [
"MIT"
] | null | null | null | imdb/models.py | ParthRavani/fddcimdb | 769390e44e8473e94170fb315daec2d71bec982f | [
"MIT"
] | null | null | null | from datetime import datetime
from imdb import db, login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), uniq... | 35.5 | 110 | 0.693662 | 165 | 1,136 | 4.660606 | 0.30303 | 0.114434 | 0.143043 | 0.187256 | 0.374512 | 0.351105 | 0.351105 | 0.085826 | 0 | 0 | 0 | 0.019547 | 0.144366 | 1,136 | 31 | 111 | 36.645161 | 0.771605 | 0 | 0 | 0.173913 | 0 | 0.043478 | 0.143486 | 0.020246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.130435 | 0.130435 | 0.956522 | 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 | 1 | 0 | 0 | 0 | 2 |
b289bb5e4f54957e345e996565a675e29aff6651 | 803 | py | Python | libmodernize/fixes/fix_import.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | libmodernize/fixes/fix_import.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | libmodernize/fixes/fix_import.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import generator_stop
from fissix.fixer_util import syms
from fissix.fixes import fix_import
import libmodernize
class FixImport(fix_import.FixImport):
# Make sure this runs before any other fixer to guarantee that any other
# added absolute_import doesn't block this fixer's execution.
... | 28.678571 | 76 | 0.667497 | 102 | 803 | 5.039216 | 0.588235 | 0.081712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001686 | 0.261519 | 803 | 27 | 77 | 29.740741 | 0.865093 | 0.292653 | 0 | 0.125 | 0 | 0 | 0.058615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b2939399f8ebe241c2c762f1050bfcbd3a1fd203 | 838 | py | Python | ViceVersus/users/models.py | ViceVersusMe/ViceVersus | 1f814f8a8c3ee0c156ebf400f4dac87c19d7747a | [
"MIT"
] | null | null | null | ViceVersus/users/models.py | ViceVersusMe/ViceVersus | 1f814f8a8c3ee0c156ebf400f4dac87c19d7747a | [
"MIT"
] | null | null | null | ViceVersus/users/models.py | ViceVersusMe/ViceVersus | 1f814f8a8c3ee0c156ebf400f4dac87c19d7747a | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
class UserProfile(models.Model):
GENDERS = (
('male', 'Male'),
('female', 'Female')
)
user_name = models.OneToOneField(User)
gender = models.CharField(max_length=20, null=True,
blank... | 34.916667 | 74 | 0.582339 | 94 | 838 | 5.074468 | 0.43617 | 0.083857 | 0.136268 | 0.178197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011706 | 0.286396 | 838 | 23 | 75 | 36.434783 | 0.785953 | 0 | 0 | 0 | 0 | 0 | 0.060932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
b2941c0138611a8afbbdb44c135ad415f4b69b6c | 475 | py | Python | ccbsc_api/example/_dummy_algorithm.py | RobertGebauer/pollen-validation-ccbsc-api | 527fe1daaae5b7f1ce2f7fc3939de03a16937841 | [
"MIT"
] | null | null | null | ccbsc_api/example/_dummy_algorithm.py | RobertGebauer/pollen-validation-ccbsc-api | 527fe1daaae5b7f1ce2f7fc3939de03a16937841 | [
"MIT"
] | null | null | null | ccbsc_api/example/_dummy_algorithm.py | RobertGebauer/pollen-validation-ccbsc-api | 527fe1daaae5b7f1ce2f7fc3939de03a16937841 | [
"MIT"
] | null | null | null | from .. import CCBSCAlgorithm
from ..device import Photo
from ..classification import Classification, Coordinates, Pollen
from typing import List
class DummyAlgorithm(CCBSCAlgorithm):
def classify(self, photo: Photo) -> List[Classification]:
(width, height) = photo.image.size
return [Classificatio... | 33.928571 | 124 | 0.743158 | 50 | 475 | 7.06 | 0.46 | 0.141643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.16 | 475 | 13 | 125 | 36.538462 | 0.879699 | 0 | 0 | 0 | 0 | 0 | 0.029474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.1 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
a23603b7b843cb11a99579993e200710f7f70f18 | 9,071 | py | Python | test/test_npu/test_network_ops/test_bitwise_xor.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-12-02T03:07:35.000Z | 2021-12-02T03:07:35.000Z | test/test_npu/test_network_ops/test_bitwise_xor.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-11-12T07:23:03.000Z | 2021-11-12T08:28:13.000Z | test/test_npu/test_network_ops/test_bitwise_xor.py | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law... | 44.684729 | 92 | 0.653732 | 1,318 | 9,071 | 4.245068 | 0.116844 | 0.065952 | 0.058981 | 0.06756 | 0.754424 | 0.704379 | 0.67328 | 0.636104 | 0.623235 | 0.602502 | 0 | 0.071121 | 0.231176 | 9,071 | 202 | 93 | 44.905941 | 0.731144 | 0.076728 | 0 | 0.559748 | 0 | 0 | 0.005623 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 1 | 0.119497 | false | 0 | 0.050314 | 0 | 0.220126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a241b735ddf7003d82282a94ce449124b10e8c12 | 362 | py | Python | fog/tokenizers/__init__.py | Yomguithereal/fog | 0b2defd7c413b55766c4368e17e1238dfc3c8b81 | [
"MIT"
] | 17 | 2018-04-26T15:37:45.000Z | 2021-05-18T05:58:10.000Z | fog/tokenizers/__init__.py | Yomguithereal/fog | 0b2defd7c413b55766c4368e17e1238dfc3c8b81 | [
"MIT"
] | 29 | 2018-04-27T14:54:20.000Z | 2021-05-27T15:30:14.000Z | fog/tokenizers/__init__.py | Yomguithereal/fog | 0b2defd7c413b55766c4368e17e1238dfc3c8b81 | [
"MIT"
] | 1 | 2019-11-27T18:14:49.000Z | 2019-11-27T18:14:49.000Z | from fog.tokenizers.fingerprint import (
FingerprintTokenizer,
NgramsFingerprintTokenizer
)
from fog.tokenizers.ngrams import ngrams, bigrams, trigrams, quadrigrams
from fog.tokenizers.words import WordTokenizer
fingerprint_tokenizer = FingerprintTokenizer()
ngrams_fingerprint_tokenizer = NgramsFingerprintToke... | 32.909091 | 72 | 0.842541 | 32 | 362 | 9.40625 | 0.4375 | 0.069767 | 0.169435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099448 | 362 | 10 | 73 | 36.2 | 0.923313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
a244178fba44f83582a07f2127a74d756948a587 | 618 | py | Python | jupyter_tools/__init__.py | CermakM/jupyter-tools | d413d8551cd9ff3a56ca3af0d82ce8f8b1d0cfc5 | [
"MIT"
] | 1 | 2019-07-18T08:49:58.000Z | 2019-07-18T08:49:58.000Z | jupyter_nbutils/__init__.py | CermakM/jupyter-nbutils | df92177d6e921728562be21c69647406dd38fe4b | [
"MIT"
] | null | null | null | jupyter_nbutils/__init__.py | CermakM/jupyter-nbutils | df92177d6e921728562be21c69647406dd38fe4b | [
"MIT"
] | null | null | null | """Tools and utilities to improve your experience with Jupyter Notebooks."""
from .__about__ import __version__
from .config import defaults
from .utils import disable_nbextension
from .utils import enable_nbextension
from .utils import install_nbextension
from .utils import load_nbextension
__all__ = [
'init_n... | 23.769231 | 76 | 0.763754 | 75 | 618 | 5.96 | 0.52 | 0.080537 | 0.134228 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160194 | 618 | 25 | 77 | 24.72 | 0.861272 | 0.223301 | 0 | 0 | 0 | 0 | 0.086207 | 0.047414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.5 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
a24cb83d47305b517cad3e0544ffb213158e68e7 | 309 | py | Python | test_tf.py | armando-fandango/ezai_docker | ec89a1a8fce66478d6d0aa84886258d0729ed809 | [
"Apache-2.0"
] | 1 | 2020-09-04T11:01:28.000Z | 2020-09-04T11:01:28.000Z | test_tf.py | armando-fandango/ezai_docker | ec89a1a8fce66478d6d0aa84886258d0729ed809 | [
"Apache-2.0"
] | null | null | null | test_tf.py | armando-fandango/ezai_docker | ec89a1a8fce66478d6d0aa84886258d0729ed809 | [
"Apache-2.0"
] | 1 | 2020-09-24T18:15:58.000Z | 2020-09-24T18:15:58.000Z | import unittest
import tensorflow as tf
class TestTensorflow(unittest.TestCase):
def test_tf_cuda_build(self):
self.assertTrue(tf.test.is_built_with_cuda())
def test_tf_cuda_available(self):
self.assertTrue(tf.test.gpu_device_name())
if __name__ == '__main__':
unittest.main() | 22.071429 | 53 | 0.731392 | 42 | 309 | 4.928571 | 0.547619 | 0.067633 | 0.086957 | 0.125604 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 309 | 14 | 54 | 22.071429 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a257bf5d57e5502fa955677f1704383eb56f7da3 | 544 | py | Python | rl/algorithms/base.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | rl/algorithms/base.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | rl/algorithms/base.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
__all__ = ['Algorithm']
class Algorithm(ABC):
"""Base class for reinforcement learning algorithms."""
@abstractmethod
def start(self, *args, **kwargs) -> None:
"""Start the algorithm, i.e. setup variables etc. The arguments of this
method are algorithm... | 27.2 | 80 | 0.647059 | 63 | 544 | 5.52381 | 0.555556 | 0.097701 | 0.08046 | 0.103448 | 0.275862 | 0.275862 | 0.275862 | 0.275862 | 0.275862 | 0 | 0 | 0 | 0.244485 | 544 | 19 | 81 | 28.631579 | 0.846715 | 0.446691 | 0 | 0.444444 | 0 | 0 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a26802d2fa298de95488d63aeb3c87971d66fa81 | 138 | py | Python | ABC133/ABC133e.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC133/ABC133e.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC133/ABC133e.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | # 最初に入れておくとinputが早くなる
import sys
input = sys.stdin.readline
# スタック最大数をセット
sys.setrecursionlimit(10**6)
n, k = map(int, input().split())
| 15.333333 | 32 | 0.731884 | 18 | 138 | 5.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.123188 | 138 | 8 | 33 | 17.25 | 0.809917 | 0.224638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
a268a658f9fca702ca30ffa959237c49de79f856 | 805 | py | Python | plants/bottle-filling/attacks/never_stop.py | gizakor/virtuaplant | 14507234e8fcd2dd2cb8baaf71e4839df6045084 | [
"MIT"
] | null | null | null | plants/bottle-filling/attacks/never_stop.py | gizakor/virtuaplant | 14507234e8fcd2dd2cb8baaf71e4839df6045084 | [
"MIT"
] | null | null | null | plants/bottle-filling/attacks/never_stop.py | gizakor/virtuaplant | 14507234e8fcd2dd2cb8baaf71e4839df6045084 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pymodbus.client.sync import ModbusTcpClient as ModbusClient
from pymodbus.exceptions import ConnectionException
import logging
logging.basicConfig()
log = logging.getLogger()
log.setLevel(logging.INFO)
#####################################
# Code
#####################################
clien... | 28.75 | 64 | 0.648447 | 90 | 805 | 5.744444 | 0.6 | 0.077369 | 0.125725 | 0.203095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028443 | 0.170186 | 805 | 27 | 65 | 29.814815 | 0.745509 | 0.099379 | 0 | 0 | 0 | 0 | 0.068323 | 0 | 0 | 0 | 0.024845 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a26bf6a0160c075f0b05e719af7e5cebf529aca7 | 306 | py | Python | givvy/management/commands/resetquota.py | nghong/mattermost-givvy | 81c8b84c183a8d456e89da1743ca96206e9033ab | [
"MIT"
] | null | null | null | givvy/management/commands/resetquota.py | nghong/mattermost-givvy | 81c8b84c183a8d456e89da1743ca96206e9033ab | [
"MIT"
] | 2 | 2020-02-11T21:23:49.000Z | 2020-06-05T16:57:55.000Z | givvy/management/commands/resetquota.py | nghong/mattermost-tools | 81c8b84c183a8d456e89da1743ca96206e9033ab | [
"MIT"
] | null | null | null | import environ
from django.core.management.base import BaseCommand
from givvy.models import User
env = environ.Env()
class Command(BaseCommand):
help = "Reset quota of all users."
def handle(self, *args, **options):
User.objects.all().update(quota=env.int('GIVVY_QUOTA', default=100))
| 21.857143 | 76 | 0.715686 | 42 | 306 | 5.190476 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.160131 | 306 | 13 | 77 | 23.538462 | 0.836576 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.