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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da0567901787ed96badd1c3ca767a33ae59b33c5
| 50
|
py
|
Python
|
robot-server/tests/sessions/__init__.py
|
knownmed/opentrons
|
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
|
[
"Apache-2.0"
] | 235
|
2017-10-27T20:37:27.000Z
|
2022-03-30T14:09:49.000Z
|
robot-server/tests/sessions/__init__.py
|
knownmed/opentrons
|
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
|
[
"Apache-2.0"
] | 8,425
|
2017-10-26T15:25:43.000Z
|
2022-03-31T23:54:26.000Z
|
robot-server/tests/sessions/__init__.py
|
knownmed/opentrons
|
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
|
[
"Apache-2.0"
] | 130
|
2017-11-09T21:02:37.000Z
|
2022-03-15T18:01:24.000Z
|
"""Tests for the robot_server.sessions module."""
| 25
| 49
| 0.74
| 7
| 50
| 5.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 50
| 1
| 50
| 50
| 0.8
| 0.86
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
da10e0a4bf48a54259e60f7a50a0099221830865
| 88
|
py
|
Python
|
tests/app_foo/apps.py
|
romasku/django-migrations-git-conflicts
|
4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f
|
[
"MIT"
] | 1
|
2021-06-10T11:02:11.000Z
|
2021-06-10T11:02:11.000Z
|
tests/app_foo/apps.py
|
romasku/django-migrations-git-conflicts
|
4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f
|
[
"MIT"
] | 1
|
2021-04-14T02:48:59.000Z
|
2021-04-14T02:48:59.000Z
|
tests/app_foo/apps.py
|
crux-lab/django-migrations-git-conflicts
|
4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class AppBarConfig(AppConfig):
name = 'app_bar'
| 14.666667
| 33
| 0.75
| 11
| 88
| 5.909091
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170455
| 88
| 5
| 34
| 17.6
| 0.890411
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
da4133f8bbe492622ad501e461e3d749dd74879a
| 222
|
py
|
Python
|
HealthNet/core/admin.py
|
jimga150/HealthNet
|
84e55302b02221ae6e93640904af837fdfe09a83
|
[
"MIT"
] | null | null | null |
HealthNet/core/admin.py
|
jimga150/HealthNet
|
84e55302b02221ae6e93640904af837fdfe09a83
|
[
"MIT"
] | null | null | null |
HealthNet/core/admin.py
|
jimga150/HealthNet
|
84e55302b02221ae6e93640904af837fdfe09a83
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import *
admin.site.register(Patient)
admin.site.register(Doctor)
admin.site.register(Nurse)
admin.site.register(Admin)
admin.site.register(Hospital)
admin.site.register(Log)
| 22.2
| 32
| 0.810811
| 32
| 222
| 5.625
| 0.40625
| 0.3
| 0.566667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067568
| 222
| 9
| 33
| 24.666667
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
da63e6273e2f7f92a41d73dfe150754d54b99940
| 83
|
py
|
Python
|
fibonacci/fibo/apps.py
|
barmandwaipayan/Fibonacci-Calculator
|
57ddb1511ad282f9cfc88de5beb2af4a87d42a93
|
[
"MIT"
] | null | null | null |
fibonacci/fibo/apps.py
|
barmandwaipayan/Fibonacci-Calculator
|
57ddb1511ad282f9cfc88de5beb2af4a87d42a93
|
[
"MIT"
] | null | null | null |
fibonacci/fibo/apps.py
|
barmandwaipayan/Fibonacci-Calculator
|
57ddb1511ad282f9cfc88de5beb2af4a87d42a93
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class FiboConfig(AppConfig):
name = 'fibo'
| 13.833333
| 33
| 0.73494
| 10
| 83
| 6.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180723
| 83
| 5
| 34
| 16.6
| 0.897059
| 0
| 0
| 0
| 0
| 0
| 0.048193
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
da75f4c55632bd84ff266ede6200177804200f90
| 1,312
|
py
|
Python
|
cg_t5/module/__init__.py
|
liuxuan320/CAIL2021
|
d21f467773467fdb47923623e99e6d7836a67cc1
|
[
"Apache-2.0"
] | 2
|
2022-03-18T06:57:01.000Z
|
2022-03-20T03:29:41.000Z
|
cg_t5_full/module/__init__.py
|
liuxuan320/CAIL2021
|
d21f467773467fdb47923623e99e6d7836a67cc1
|
[
"Apache-2.0"
] | null | null | null |
cg_t5_full/module/__init__.py
|
liuxuan320/CAIL2021
|
d21f467773467fdb47923623e99e6d7836a67cc1
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# encoding: utf-8
'''
#-------------------------------------------------------------------#
# CONFIDENTIAL --- CUSTOM STUDIOS #
#-------------------------------------------------------------------#
# #
# @Project Name : t5p-mcdtb #
# #
# @File Name : __init__.py.py #
# #
# @Programmer : Jeffrey #
# #
# @Start Date : 2021/4/18 20:24 #
# #
# @Last Update : 2021/4/18 20:24 #
# #
#-------------------------------------------------------------------#
# Classes: #
# #
#-------------------------------------------------------------------#
'''
| 59.636364
| 74
| 0.118902
| 36
| 1,312
| 4.222222
| 0.805556
| 0.065789
| 0.092105
| 0.118421
| 0.144737
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04829
| 0.621189
| 1,312
| 22
| 75
| 59.636364
| 0.257545
| 0.991616
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
16f61494ac8f2f218a58e3f103ebcea56b65fe6f
| 299
|
py
|
Python
|
webnode/__init__.py
|
desktable/webnode
|
55241e12c64862fe27ca627b7d33179454cf6855
|
[
"MIT"
] | null | null | null |
webnode/__init__.py
|
desktable/webnode
|
55241e12c64862fe27ca627b7d33179454cf6855
|
[
"MIT"
] | null | null | null |
webnode/__init__.py
|
desktable/webnode
|
55241e12c64862fe27ca627b7d33179454cf6855
|
[
"MIT"
] | null | null | null |
"""Python module to generate HTML, CSS, and JavaScript for webpages
This module is developed under the influence of Quora's Webnode2 system:
http://www.quora.com/Quora-Infrastructure/What-is-Webnode2
"""
from __future__ import unicode_literals
from . import html
from .component import Component
| 27.181818
| 72
| 0.799331
| 43
| 299
| 5.44186
| 0.744186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007663
| 0.12709
| 299
| 10
| 73
| 29.9
| 0.888889
| 0.658863
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e5105c31913e7977a328bfbb970ca27b2777eaf8
| 116
|
py
|
Python
|
homework2_text_classification/init.py
|
Zehong-Ma/NLP_homework
|
7d2afc327405bb492e77c7cb12541c69144b4434
|
[
"MIT"
] | 4
|
2021-05-27T06:53:14.000Z
|
2021-06-22T14:50:02.000Z
|
homework2_text_classification/init.py
|
Zehong-Ma/NLP_homework
|
7d2afc327405bb492e77c7cb12541c69144b4434
|
[
"MIT"
] | null | null | null |
homework2_text_classification/init.py
|
Zehong-Ma/NLP_homework
|
7d2afc327405bb492e77c7cb12541c69144b4434
|
[
"MIT"
] | null | null | null |
'''
@File : init.py
@Author : Zehong Ma
@Version : 1.0
@Contact : zehongma@qq.com
@Desc : None
'''
| 14.5
| 28
| 0.525862
| 15
| 116
| 4.066667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024691
| 0.301724
| 116
| 7
| 29
| 16.571429
| 0.728395
| 0.922414
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e51847e3503b00df16a48055f65e2cbe1515c2d7
| 83
|
py
|
Python
|
lclpy/localsearch/vns/__init__.py
|
nobody1570/lspy
|
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
|
[
"MIT"
] | 3
|
2021-11-27T22:11:38.000Z
|
2022-02-10T11:42:06.000Z
|
lclpy/localsearch/vns/__init__.py
|
nobody1570/lspy
|
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
|
[
"MIT"
] | null | null | null |
lclpy/localsearch/vns/__init__.py
|
nobody1570/lspy
|
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
|
[
"MIT"
] | null | null | null |
"""This package contains all classes unique to variable neighbourhood search.
"""
| 20.75
| 77
| 0.771084
| 10
| 83
| 6.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144578
| 83
| 3
| 78
| 27.666667
| 0.901408
| 0.891566
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e520df8849e2e5c7f930db5283f5e5953c4e1709
| 125
|
py
|
Python
|
aiogithub/objects/gist.py
|
flying-sheep/aiogithub
|
566252cac036d9abe2b1eb2acb268547e01ca63e
|
[
"BSD-3-Clause"
] | 10
|
2016-09-13T15:50:10.000Z
|
2021-05-27T15:36:58.000Z
|
aiogithub/objects/gist.py
|
flying-sheep/aiogithub
|
566252cac036d9abe2b1eb2acb268547e01ca63e
|
[
"BSD-3-Clause"
] | 5
|
2017-03-26T13:51:40.000Z
|
2020-04-22T19:46:36.000Z
|
aiogithub/objects/gist.py
|
flying-sheep/aiogithub
|
566252cac036d9abe2b1eb2acb268547e01ca63e
|
[
"BSD-3-Clause"
] | 2
|
2020-03-05T06:07:18.000Z
|
2022-02-11T14:23:46.000Z
|
from aiogithub.objects.response import BaseResponseObject
class Gist(BaseResponseObject):
_url = 'gists/{id}'
pass
| 17.857143
| 57
| 0.752
| 13
| 125
| 7.153846
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 125
| 6
| 58
| 20.833333
| 0.885714
| 0
| 0
| 0
| 0
| 0
| 0.08
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.25
| 0.25
| 0
| 0.75
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
e53dd764bb1963524b1457706b8ea8a034de56eb
| 204
|
py
|
Python
|
cfox/cd_library/apps.py
|
fuyb/cfox_project
|
ad5b3dcf544237de9958ee0a368adcd1a627d5d0
|
[
"MIT"
] | null | null | null |
cfox/cd_library/apps.py
|
fuyb/cfox_project
|
ad5b3dcf544237de9958ee0a368adcd1a627d5d0
|
[
"MIT"
] | null | null | null |
cfox/cd_library/apps.py
|
fuyb/cfox_project
|
ad5b3dcf544237de9958ee0a368adcd1a627d5d0
|
[
"MIT"
] | null | null | null |
#! -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class CdLibraryConfig(AppConfig):
name = 'cd_library'
verbose_name = _(u'CD曲库')
| 22.666667
| 54
| 0.720588
| 26
| 204
| 5.461538
| 0.807692
| 0.140845
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005848
| 0.161765
| 204
| 8
| 55
| 25.5
| 0.824561
| 0.112745
| 0
| 0
| 0
| 0
| 0.077778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e552d6a2cdef406107ca659ca97386ab538ad2d0
| 346
|
py
|
Python
|
facenet_sandberg/validation/src/calculator/calculator.py
|
armanrahman22/facenet
|
194e7bab2060833acd1d245228bcd43825ce5af3
|
[
"MIT"
] | 24
|
2018-02-06T23:45:57.000Z
|
2022-01-27T21:22:30.000Z
|
facenet_sandberg/validation/src/calculator/calculator.py
|
armanrahman22/facenet
|
194e7bab2060833acd1d245228bcd43825ce5af3
|
[
"MIT"
] | 40
|
2017-11-06T16:29:12.000Z
|
2022-02-09T23:56:08.000Z
|
facenet_sandberg/validation/src/calculator/calculator.py
|
armanrahman22/facenet
|
194e7bab2060833acd1d245228bcd43825ce5af3
|
[
"MIT"
] | 12
|
2019-02-08T20:37:16.000Z
|
2020-12-10T06:55:30.000Z
|
from abc import ABC
from abc import abstractmethod
from parser.pair import Pair
from typing import Generic
from typing import Iterable
from typing import TypeVar
T = TypeVar('T')
class Calculator(ABC, Generic[T]): # pylint: disable=too-few-public-methods
@abstractmethod
def calculate(self, pairs: Iterable[Pair]) -> T:
pass
| 21.625
| 76
| 0.739884
| 48
| 346
| 5.333333
| 0.5
| 0.117188
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179191
| 346
| 15
| 77
| 23.066667
| 0.901408
| 0.109827
| 0
| 0
| 0
| 0
| 0.003268
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0.090909
| 0.545455
| 0
| 0.727273
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
e57d9c0f9c652669a9816b177f7b18c56d6445fe
| 131
|
py
|
Python
|
custom_atoms/components/collections/helper/cmdb_helper/__init__.py
|
zhonglang/bk_sops_3.3.30
|
35abe0b9a931c790dece2b0557360cfc8f2fdeb5
|
[
"Apache-2.0"
] | null | null | null |
custom_atoms/components/collections/helper/cmdb_helper/__init__.py
|
zhonglang/bk_sops_3.3.30
|
35abe0b9a931c790dece2b0557360cfc8f2fdeb5
|
[
"Apache-2.0"
] | 5
|
2021-02-08T20:46:54.000Z
|
2021-06-10T22:54:45.000Z
|
custom_atoms/components/collections/helper/cmdb_helper/__init__.py
|
zhonglang/bk_sops_3.3.30
|
35abe0b9a931c790dece2b0557360cfc8f2fdeb5
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Author : surfer
# @email : surfer@canway.net
# @Time : 2020/5/15 15:52
# @file : __init__.py.py
| 26.2
| 30
| 0.557252
| 19
| 131
| 3.631579
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118812
| 0.229008
| 131
| 5
| 31
| 26.2
| 0.564356
| 0.923664
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e586d22f8830c0ffc5ce16e775222171c1fd3b8f
| 158
|
py
|
Python
|
helpers/database/access_db.py
|
satyushree/AMR-Url_Uploader
|
2c59815e42fa9c9e7d063719df4a3504ed7e07f1
|
[
"MIT"
] | null | null | null |
helpers/database/access_db.py
|
satyushree/AMR-Url_Uploader
|
2c59815e42fa9c9e7d063719df4a3504ed7e07f1
|
[
"MIT"
] | null | null | null |
helpers/database/access_db.py
|
satyushree/AMR-Url_Uploader
|
2c59815e42fa9c9e7d063719df4a3504ed7e07f1
|
[
"MIT"
] | 7
|
2021-07-07T10:18:49.000Z
|
2022-01-08T16:15:55.000Z
|
# (c) @AbirHasan2005
from sample_config import Config
from helpers.database.database import Database
db = Database(Config.MONGODB_URI, Config.SESSION_NAME)
| 22.571429
| 54
| 0.816456
| 21
| 158
| 6
| 0.619048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028369
| 0.107595
| 158
| 6
| 55
| 26.333333
| 0.865248
| 0.113924
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e58ba030ad167d7e2e30db178e36c9618ec8d3d6
| 153
|
py
|
Python
|
sana_pchr/reporting/urls.py
|
SanaMobile/sana.pchr.oss-web
|
2b2fd75a1730f1743e28b4499bb1ba76fa100970
|
[
"BSD-3-Clause"
] | null | null | null |
sana_pchr/reporting/urls.py
|
SanaMobile/sana.pchr.oss-web
|
2b2fd75a1730f1743e28b4499bb1ba76fa100970
|
[
"BSD-3-Clause"
] | null | null | null |
sana_pchr/reporting/urls.py
|
SanaMobile/sana.pchr.oss-web
|
2b2fd75a1730f1743e28b4499bb1ba76fa100970
|
[
"BSD-3-Clause"
] | 2
|
2018-06-07T21:54:08.000Z
|
2018-07-11T20:40:19.000Z
|
from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url(r'^dashboard/', views.dashboard, name='dashboard')
)
| 15.3
| 55
| 0.712418
| 19
| 153
| 5.736842
| 0.631579
| 0.201835
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143791
| 153
| 9
| 56
| 17
| 0.832061
| 0
| 0
| 0
| 0
| 0
| 0.130719
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
e595f6298b487b801e81169778a2b205b6acf968
| 493
|
py
|
Python
|
fees/fee.py
|
aurbano/elefund
|
2d7980f3c5a45518a23edf3b8d97453ecd45b59d
|
[
"MIT"
] | null | null | null |
fees/fee.py
|
aurbano/elefund
|
2d7980f3c5a45518a23edf3b8d97453ecd45b59d
|
[
"MIT"
] | null | null | null |
fees/fee.py
|
aurbano/elefund
|
2d7980f3c5a45518a23edf3b8d97453ecd45b59d
|
[
"MIT"
] | null | null | null |
class Fee(object):
def __init__(self, currency, fastest, slowest):
self.currency = currency
self.fastest = fastest
self.slowest = slowest
def __str__(self):
return "Fees for %s [Fastest %s] [Slowest %s]" % (self.currency, self.fastest, self.slowest)
def __repr__(self):
return "Fees for %s [Fastest %s] [Slowest %s]" % (self.currency, self.fastest, self.slowest)
def __eq__(self, other):
return self.currency == other.currency
| 35.214286
| 100
| 0.634888
| 61
| 493
| 4.868852
| 0.278689
| 0.20202
| 0.191919
| 0.114478
| 0.478114
| 0.478114
| 0.478114
| 0.478114
| 0.478114
| 0.478114
| 0
| 0
| 0.237323
| 493
| 14
| 101
| 35.214286
| 0.789894
| 0
| 0
| 0.181818
| 0
| 0
| 0.149798
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0
| 0.272727
| 0.727273
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
e59afaaa97339c7e3b91bb2f25ab389817a1fc3e
| 5,666
|
py
|
Python
|
tests/test_storage.py
|
HDembinski/boost-histogram
|
6071588d8b58504938f72818d22ff3ce2a5b45dc
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_storage.py
|
HDembinski/boost-histogram
|
6071588d8b58504938f72818d22ff3ce2a5b45dc
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_storage.py
|
HDembinski/boost-histogram
|
6071588d8b58504938f72818d22ff3ce2a5b45dc
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
import boost_histogram as bh
import numpy as np
from numpy.testing import assert_array_equal
@pytest.mark.parametrize(
"storage",
[bh.storage.Int64, bh.storage.Double, bh.storage.AtomicInt64, bh.storage.Unlimited],
)
def test_setting(storage):
h = bh.Histogram(bh.axis.Regular(10, 0, 1), storage=storage())
h[0] = 2
h[1] = 3
h[-1] = 5
assert h[0] == 2
assert h[1] == 3
assert h[9] == 5
assert_array_equal(h.view(), [2, 3, 0, 0, 0, 0, 0, 0, 0, 5])
def test_setting_weight():
h = bh.Histogram(bh.axis.Regular(10, 0, 10), storage=bh.storage.Weight())
h.fill([0.3, 0.3, 0.4, 1.2])
assert h[0] == bh.accumulators.WeightedSum(3, 3)
assert h[1] == bh.accumulators.WeightedSum(1, 1)
h[0] = bh.accumulators.WeightedSum(value=2, variance=2)
assert h[0] == bh.accumulators.WeightedSum(2, 2)
a = h.view()
assert a[0] == h[0]
b = np.asarray(h)
assert b["value"][0] == h[0].value
assert b["variance"][0] == h[0].variance
h[0] = bh.accumulators.WeightedSum(value=3, variance=1)
assert h[0].value == 3
assert h[0].variance == 1
assert a[0] == h[0]
assert b["value"][0] == h[0].value
assert b["variance"][0] == h[0].variance
assert b[0]["value"] == a[0]["value"]
assert b[0]["variance"] == a[0]["variance"]
assert b["value"][0] == a["value"][0]
assert b["variance"][0] == a["variance"][0]
assert_array_equal(a.view().value, b.view()["value"])
assert_array_equal(a.view().variance, b.view()["variance"])
def test_setting_profile():
h = bh.Histogram(bh.axis.Regular(10, 0, 10), storage=bh.storage.Mean())
h.fill([0.3, 0.3, 0.4, 1.2, 1.6], sample=[1, 2, 3, 4, 4])
assert h[0] == bh.accumulators.Mean(count=3, value=2, variance=1)
assert h[1] == bh.accumulators.Mean(count=2, value=4, variance=0)
h[0] = bh.accumulators.Mean(count=12, value=11, variance=10)
assert h[0] == bh.accumulators.Mean(count=12, value=11, variance=10)
a = h.view()
assert a[0] == h[0]
b = np.asarray(h)
assert b["value"][0] == h[0].value
assert b["count"][0] == h[0].count
assert b["sum_of_deltas_squared"][0] == h[0].sum_of_deltas_squared
h[0] = bh.accumulators.Mean(count=6, value=3, variance=2)
assert h[0].count == 6
assert h[0].value == 3
assert h[0].variance == 2
assert a[0] == h[0]
assert b["value"][0] == h[0].value
assert b["count"][0] == h[0].count
assert b["sum_of_deltas_squared"][0] == h[0].sum_of_deltas_squared
assert b[0]["value"] == a[0]["value"]
assert b[0]["count"] == a[0]["count"]
assert b[0]["sum_of_deltas_squared"] == a[0]["sum_of_deltas_squared"]
assert b[0]["value"] == a["value"][0]
assert b[0]["count"] == a["count"][0]
assert b[0]["sum_of_deltas_squared"] == a["sum_of_deltas_squared"][0]
assert_array_equal(a.view().value, b.view()["value"])
assert_array_equal(a.view().count, b.view()["count"])
assert_array_equal(
a.view().sum_of_deltas_squared, b.view()["sum_of_deltas_squared"]
)
def test_setting_weighted_profile():
h = bh.Histogram(bh.axis.Regular(10, 0, 10), storage=bh.storage.WeightedMean())
h.fill([0.3, 0.3, 0.4, 1.2, 1.6], sample=[1, 2, 3, 4, 4], weight=[1, 1, 1, 1, 2])
assert h[0] == bh.accumulators.WeightedMean(
sum_of_weights=3, sum_of_weights_squared=3, value=2, variance=1
)
assert h[1] == bh.accumulators.WeightedMean(
sum_of_weights=3, sum_of_weights_squared=5, value=4, variance=0
)
h[0] = bh.accumulators.WeightedMean(
sum_of_weights=12, sum_of_weights_squared=15, value=11, variance=10
)
assert h[0] == bh.accumulators.WeightedMean(
sum_of_weights=12, sum_of_weights_squared=15, value=11, variance=10
)
a = h.view()
assert a[0] == h[0]
b = np.asarray(h)
assert b["value"][0] == h[0].value
assert b["sum_of_weights"][0] == h[0].sum_of_weights
assert b["sum_of_weights_squared"][0] == h[0].sum_of_weights_squared
assert b["sum_of_weighted_deltas_squared"][0] == h[0].sum_of_weighted_deltas_squared
h[0] = bh.accumulators.WeightedMean(
sum_of_weights=6, sum_of_weights_squared=12, value=3, variance=2
)
assert a[0] == h[0]
assert h[0].value == 3
assert h[0].variance == 2
assert h[0].sum_of_weights == 6
assert h[0].sum_of_weights_squared == 12
assert h[0].sum_of_weighted_deltas_squared == 8
assert b["value"][0] == h[0].value
assert b["sum_of_weights"][0] == h[0].sum_of_weights
assert b["sum_of_weights_squared"][0] == h[0].sum_of_weights_squared
assert b["sum_of_weighted_deltas_squared"][0] == h[0].sum_of_weighted_deltas_squared
assert b[0]["value"] == a[0]["value"]
assert b[0]["sum_of_weights"] == a[0]["sum_of_weights"]
assert b[0]["sum_of_weights_squared"] == a[0]["sum_of_weights_squared"]
assert (
b[0]["sum_of_weighted_deltas_squared"] == a[0]["sum_of_weighted_deltas_squared"]
)
assert b[0]["value"] == a["value"][0]
assert b[0]["sum_of_weights"] == a["sum_of_weights"][0]
assert b[0]["sum_of_weights_squared"] == a["sum_of_weights_squared"][0]
assert (
b[0]["sum_of_weighted_deltas_squared"] == a["sum_of_weighted_deltas_squared"][0]
)
assert_array_equal(a.view().value, b.view()["value"])
assert_array_equal(a.view().sum_of_weights, b.view()["sum_of_weights"])
assert_array_equal(
a.view().sum_of_weights_squared, b.view()["sum_of_weights_squared"]
)
assert_array_equal(
a.view().sum_of_weighted_deltas_squared,
b.view()["sum_of_weighted_deltas_squared"],
)
| 31.131868
| 88
| 0.627956
| 945
| 5,666
| 3.569312
| 0.063492
| 0.078565
| 0.113845
| 0.090127
| 0.844352
| 0.785354
| 0.714201
| 0.646902
| 0.566261
| 0.530685
| 0
| 0.057858
| 0.182492
| 5,666
| 181
| 89
| 31.303867
| 0.670337
| 0
| 0
| 0.418605
| 0
| 0
| 0.143311
| 0.090187
| 0
| 0
| 0
| 0
| 0.581395
| 1
| 0.031008
| false
| 0
| 0.031008
| 0
| 0.062016
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 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
| 4
|
e5b8695181fa9f7e7d4ab952904cf857d58aea99
| 1,554
|
py
|
Python
|
aiida/orm/implementation/general/querytool.py
|
astamminger/aiida_core
|
b01ad8236f21804f273c9d2a0365ecee62255cbb
|
[
"BSD-2-Clause"
] | null | null | null |
aiida/orm/implementation/general/querytool.py
|
astamminger/aiida_core
|
b01ad8236f21804f273c9d2a0365ecee62255cbb
|
[
"BSD-2-Clause"
] | null | null | null |
aiida/orm/implementation/general/querytool.py
|
astamminger/aiida_core
|
b01ad8236f21804f273c9d2a0365ecee62255cbb
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida_core #
# For further information on the license, see the LICENSE.txt file #
# For further information please visit http://www.aiida.net #
###########################################################################
class AbstractQueryTool(object):
"""
Class to make easy queries without extensive knowledge of SQL, Django and/or
the internal storage mechanism of AiiDA.
.. note:: This feature is under constant development, so the name of the
methods may change in future versions to allow for increased querying
capabilities.
.. todo:: missing
features:
* add __in filter
* allow __in filter to accept other querytool objects to perform a single
query
* implement searches through the TC table
* document the methods
* allow to get attributes of queried data via a single query with suitable
methods
* add checks to verify whether filters as <=, ==, etc are valid for the
specified data type (e.g., __gt only with numbers and dates, ...)
* probably many other things...
"""
# TODO SP: implement it completly.
pass
| 40.894737
| 80
| 0.547619
| 173
| 1,554
| 4.878613
| 0.687861
| 0.018957
| 0.049763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.000916
| 0.297297
| 1,554
| 37
| 81
| 42
| 0.771978
| 0.802445
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054054
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e5b8b92ce1110abfba8d1ae669058d73a1da655f
| 355
|
py
|
Python
|
composer/models/deeplabv3/__init__.py
|
moinnadeem/composer
|
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
|
[
"Apache-2.0"
] | null | null | null |
composer/models/deeplabv3/__init__.py
|
moinnadeem/composer
|
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
|
[
"Apache-2.0"
] | null | null | null |
composer/models/deeplabv3/__init__.py
|
moinnadeem/composer
|
bc3f41b766bd4450f05a99f44db4a6b3901ea1c8
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""DeepLabV3 for image segmentation."""
from composer.models.deeplabv3.deeplabv3 import ComposerDeepLabV3 as ComposerDeepLabV3
from composer.models.deeplabv3.deeplabv3_hparams import DeepLabV3Hparams as DeepLabV3Hparams
__all__ = ['ComposerDeepLabV3', 'DeepLabV3Hparams']
| 39.444444
| 92
| 0.833803
| 37
| 355
| 7.864865
| 0.621622
| 0.082474
| 0.123711
| 0.185567
| 0.247423
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052469
| 0.087324
| 355
| 8
| 93
| 44.375
| 0.845679
| 0.312676
| 0
| 0
| 0
| 0
| 0.139241
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e5e8bd9a4b866ba2d12447c6061e641b62aa593c
| 235
|
py
|
Python
|
examples/dagster_examples_tests/stocks_tests/test_stocks_example.py
|
naralogics/dagster
|
16d599daa380b800149474fcaff2311b3f8f269a
|
[
"Apache-2.0"
] | null | null | null |
examples/dagster_examples_tests/stocks_tests/test_stocks_example.py
|
naralogics/dagster
|
16d599daa380b800149474fcaff2311b3f8f269a
|
[
"Apache-2.0"
] | null | null | null |
examples/dagster_examples_tests/stocks_tests/test_stocks_example.py
|
naralogics/dagster
|
16d599daa380b800149474fcaff2311b3f8f269a
|
[
"Apache-2.0"
] | null | null | null |
from dagster_examples.stocks.repository import define_repo
def test_basic():
repo = define_repo()
assert len(repo.get_all_pipelines()) == 1
assert len(repo.schedule_defs) == 1
assert len(repo.partition_set_defs) == 1
| 26.111111
| 58
| 0.72766
| 34
| 235
| 4.764706
| 0.617647
| 0.166667
| 0.240741
| 0.17284
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015306
| 0.165957
| 235
| 8
| 59
| 29.375
| 0.811224
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.166667
| false
| 0
| 0.166667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e5f963bf485e304882c7c98a3856091daa7d9081
| 306
|
py
|
Python
|
sorting.py
|
CatBia/pixelsort
|
7504c6baf9cf9fd77381a70696de26f24f9fe7f1
|
[
"MIT"
] | 1
|
2019-02-08T15:42:31.000Z
|
2019-02-08T15:42:31.000Z
|
sorting.py
|
CatBia/pixelsort
|
7504c6baf9cf9fd77381a70696de26f24f9fe7f1
|
[
"MIT"
] | null | null | null |
sorting.py
|
CatBia/pixelsort
|
7504c6baf9cf9fd77381a70696de26f24f9fe7f1
|
[
"MIT"
] | null | null | null |
import util
def lightness(pixel):
return util.lightness(pixel)
def intensity(pixel):
return pixel[0] + pixel[1] + pixel[2]
def hue(pixel):
return util.hue(pixel)
def saturation(pixel):
return util.saturation(pixel)
def minimum(pixel):
return min(pixel[0], pixel[1], pixel[2])
| 13.909091
| 44
| 0.673203
| 44
| 306
| 4.681818
| 0.318182
| 0.26699
| 0.218447
| 0.116505
| 0.174757
| 0.174757
| 0
| 0
| 0
| 0
| 0
| 0.024194
| 0.189542
| 306
| 21
| 45
| 14.571429
| 0.806452
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0
| 0.090909
| 0.454545
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
e5fe9658f420dc35d251a061ab1ade836df6959f
| 73
|
py
|
Python
|
co/edu/unbosque/controller/AplMain.py
|
cdsanchezm/Algoritmos-de-ordenamiento
|
0790487931778888975d89d30127e6cf2ec9d3c0
|
[
"MIT"
] | null | null | null |
co/edu/unbosque/controller/AplMain.py
|
cdsanchezm/Algoritmos-de-ordenamiento
|
0790487931778888975d89d30127e6cf2ec9d3c0
|
[
"MIT"
] | null | null | null |
co/edu/unbosque/controller/AplMain.py
|
cdsanchezm/Algoritmos-de-ordenamiento
|
0790487931778888975d89d30127e6cf2ec9d3c0
|
[
"MIT"
] | null | null | null |
import Controller as controller
if __name__ == '__main__':
controller
| 24.333333
| 31
| 0.767123
| 8
| 73
| 6
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164384
| 73
| 3
| 32
| 24.333333
| 0.786885
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f9040f5948421d2ddc8d522ac6ff3b096040b963
| 196
|
py
|
Python
|
tests/test_version.py
|
firstclasspostcodes/firstclasspostcodes-python
|
dd0e05257334ab35268cb58433fd6bb1d659b151
|
[
"MIT"
] | null | null | null |
tests/test_version.py
|
firstclasspostcodes/firstclasspostcodes-python
|
dd0e05257334ab35268cb58433fd6bb1d659b151
|
[
"MIT"
] | 42
|
2020-01-22T22:33:49.000Z
|
2021-01-25T15:06:09.000Z
|
tests/test_version.py
|
firstclasspostcodes/firstclasspostcodes-python
|
dd0e05257334ab35268cb58433fd6bb1d659b151
|
[
"MIT"
] | null | null | null |
import re
from firstclasspostcodes.version import VERSION
class TestVersonClass:
def test_it_exports_a_valid_version_number(self):
assert re.match('^[0-9]+.[0-9]+.[0-9]+$', VERSION)
| 24.5
| 58
| 0.72449
| 28
| 196
| 4.857143
| 0.678571
| 0.044118
| 0.044118
| 0.058824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035503
| 0.137755
| 196
| 7
| 59
| 28
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 0.112245
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
f90835db581ff3cfdcdaff3ff553a7eed039a87f
| 932
|
py
|
Python
|
Ene-Jun-2021/perez-gutierrez-julio-cesar/Decorator.py
|
bryanbalderas/DAS_Sistemas
|
1e31f088c0de7134471025a5730b0abfc19d936e
|
[
"MIT"
] | 41
|
2017-09-26T09:36:32.000Z
|
2022-03-19T18:05:25.000Z
|
Ene-Jun-2021/perez-gutierrez-julio-cesar/Decorator.py
|
bryanbalderas/DAS_Sistemas
|
1e31f088c0de7134471025a5730b0abfc19d936e
|
[
"MIT"
] | 67
|
2017-09-11T05:06:12.000Z
|
2022-02-14T04:44:04.000Z
|
Ene-Jun-2021/perez-gutierrez-julio-cesar/Decorator.py
|
bryanbalderas/DAS_Sistemas
|
1e31f088c0de7134471025a5730b0abfc19d936e
|
[
"MIT"
] | 210
|
2017-09-01T00:10:08.000Z
|
2022-03-19T18:05:12.000Z
|
class CharacterComponent:
def __init__(self, name):
self.name=name
def equip(self):
pass
class CharacterConcreteComponent(CharacterComponent):
def equip(self):
return f'{self.name} equipment:'
class Decorator(CharacterComponent):
_character: CharacterComponent
def __init__(self, _character:CharacterComponent):
self._character=_character
def equip(self):
return self._character.equip()
class ArmorConcreteDecorator(Decorator):
def equip(self):
return f'{self._character.equip()}\nArmor: Yes'
class SwordConcreteDecorator(Decorator):
def equip(self):
return f'{self._character.equip()}\nSword: Yes'
class RingConcreteDecorator(Decorator):
def equip(self):
return f'{self._character.equip()}\nRing: Yes'
class NecklaceConcreteDecorator(Decorator):
def equip(self):
return f'{self._character.equip()}\nNecklace: Yes'
| 29.125
| 58
| 0.70279
| 96
| 932
| 6.645833
| 0.239583
| 0.087774
| 0.131661
| 0.169279
| 0.324451
| 0.324451
| 0.288401
| 0.288401
| 0.288401
| 0
| 0
| 0
| 0.185622
| 932
| 32
| 58
| 29.125
| 0.84058
| 0
| 0
| 0.269231
| 0
| 0
| 0.184352
| 0.143623
| 0
| 0
| 0
| 0
| 0
| 1
| 0.346154
| false
| 0.038462
| 0
| 0.230769
| 0.884615
| 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
| 1
| 1
| 0
|
0
| 4
|
f9119558157eb0104bf7cd2aea6b378404dc4b21
| 62
|
py
|
Python
|
openslides/topics/__init__.py
|
swilde/OpenSlides
|
23ae32a75892005632784652d108836d1ba09da9
|
[
"MIT"
] | 3
|
2021-02-11T20:45:58.000Z
|
2022-02-09T21:59:42.000Z
|
openslides/topics/__init__.py
|
swilde/OpenSlides
|
23ae32a75892005632784652d108836d1ba09da9
|
[
"MIT"
] | 2
|
2021-11-02T15:53:58.000Z
|
2022-03-02T12:19:49.000Z
|
server/openslides/topics/__init__.py
|
DLRG-Jugend-NDS/OpenSlides
|
03704e4852821ccd67fe23adb6e2c38b67d93732
|
[
"MIT"
] | 3
|
2021-01-18T11:44:05.000Z
|
2022-01-19T16:00:23.000Z
|
default_app_config = "openslides.topics.apps.TopicsAppConfig"
| 31
| 61
| 0.854839
| 7
| 62
| 7.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048387
| 62
| 1
| 62
| 62
| 0.864407
| 0
| 0
| 0
| 0
| 0
| 0.612903
| 0.612903
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
005c94f68f3ea42d02df77e76ed0cdc95d5179cd
| 45
|
py
|
Python
|
tests/__init__.py
|
epoelke/ssh-ldap-pubkey
|
fefb23eaca1e99c894a8b14a1b04b4be69269a16
|
[
"MIT"
] | 213
|
2015-01-27T14:19:50.000Z
|
2022-03-02T23:39:42.000Z
|
tests/__init__.py
|
epoelke/ssh-ldap-pubkey
|
fefb23eaca1e99c894a8b14a1b04b4be69269a16
|
[
"MIT"
] | 39
|
2015-02-02T13:52:08.000Z
|
2022-02-28T18:40:09.000Z
|
tests/__init__.py
|
epoelke/ssh-ldap-pubkey
|
fefb23eaca1e99c894a8b14a1b04b4be69269a16
|
[
"MIT"
] | 56
|
2015-02-02T10:53:33.000Z
|
2022-01-22T14:01:29.000Z
|
import sys
PY3 = sys.version_info >= (3, 0)
| 11.25
| 32
| 0.644444
| 8
| 45
| 3.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.2
| 45
| 3
| 33
| 15
| 0.694444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
0060bcbeeb4aadc714b6a0a921d5bb5882eb20a5
| 143
|
py
|
Python
|
KakaoBike/config.py
|
Insik-Won/kakao-cote-study
|
0323307b7bf235b9249e25bf625790a1c56334b7
|
[
"MIT"
] | null | null | null |
KakaoBike/config.py
|
Insik-Won/kakao-cote-study
|
0323307b7bf235b9249e25bf625790a1c56334b7
|
[
"MIT"
] | null | null | null |
KakaoBike/config.py
|
Insik-Won/kakao-cote-study
|
0323307b7bf235b9249e25bf625790a1c56334b7
|
[
"MIT"
] | null | null | null |
import os
from dotenv import load_dotenv
load_dotenv(verbose=True)
BASE_URL = os.getenv("BASE_URL")
X_AUTH_TOKEN = os.getenv("X_AUTH_TOKEN")
| 17.875
| 40
| 0.79021
| 25
| 143
| 4.2
| 0.52
| 0.190476
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104895
| 143
| 7
| 41
| 20.428571
| 0.820313
| 0
| 0
| 0
| 0
| 0
| 0.13986
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
006f151279fd0958f0d2bd6c8b10bd7d08cb21f8
| 760
|
py
|
Python
|
src/bio2bel_msig/__init__.py
|
bio2bel/MSIG
|
cf6495608c7d7a2f73bc0bed5add29948ef5f96a
|
[
"MIT"
] | 2
|
2019-01-03T16:33:45.000Z
|
2020-04-07T08:26:46.000Z
|
src/bio2bel_msig/__init__.py
|
bio2bel/MSIG
|
cf6495608c7d7a2f73bc0bed5add29948ef5f96a
|
[
"MIT"
] | 3
|
2018-03-05T20:10:09.000Z
|
2018-03-06T08:45:04.000Z
|
src/bio2bel_msig/__init__.py
|
bio2bel/MSIG
|
cf6495608c7d7a2f73bc0bed5add29948ef5f96a
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Bio2BEL MSig is a package for enriching BEL networks with MsigDB.
Furthermore, it is integrated in the `ComPath environment <https://github.com/ComPath>`_ for pathway database comparison.
Citation
--------
- Subramanian, A., Tamayo, P., Mootha, V. K., Mukherjee, S., Ebert, B. L., Gillette, M. A., ... & Mesirov, J. P.
(2005). Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles.
Proceedings of the National Academy of Sciences, 102(43), 15545-15550.
- Liberzon, A., Subramanian, A., Pinchback, R., Thorvaldsdóttir, H., Tamayo, P., & Mesirov, J. P. (2011). Molecular
signatures database (MSigDB) 3.0. Bioinformatics, 27(12), 1739-1740.
"""
from .manager import Manager
| 44.705882
| 121
| 0.705263
| 104
| 760
| 5.144231
| 0.798077
| 0.04486
| 0.033645
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060278
| 0.148684
| 760
| 16
| 122
| 47.5
| 0.766615
| 0.947368
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
00990d97ef21a99cd109eaa594506cd37b8d64ad
| 229
|
py
|
Python
|
coffin/views/generic/base.py
|
akx/coffin
|
7ec1c216a943bceddee4a662a1b1da1069f91231
|
[
"BSD-3-Clause"
] | 1
|
2018-03-05T08:19:49.000Z
|
2018-03-05T08:19:49.000Z
|
coffin/views/generic/base.py
|
Deepwalker/coffin
|
5313abe5dbae1b32772c8de236e9a667e4822363
|
[
"BSD-3-Clause"
] | null | null | null |
coffin/views/generic/base.py
|
Deepwalker/coffin
|
5313abe5dbae1b32772c8de236e9a667e4822363
|
[
"BSD-3-Clause"
] | 1
|
2019-08-14T09:51:23.000Z
|
2019-08-14T09:51:23.000Z
|
from django.views.generic.base import RedirectView, TemplateView as _TemplateView
from coffin.views.decorators import template_response
__all__ = ['RedirectView', 'TemplateView']
TemplateView = template_response(_TemplateView)
| 32.714286
| 81
| 0.838428
| 24
| 229
| 7.666667
| 0.583333
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087336
| 229
| 6
| 82
| 38.166667
| 0.880383
| 0
| 0
| 0
| 0
| 0
| 0.104803
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
00cc016180b7cf931c412c1dbe948ab8affca8a3
| 72
|
py
|
Python
|
QUANTAXIS/QASpider/wallstreetCN/begin.py
|
5267/QUANTAXIS
|
c3f38b805939e33309e2da7ea8cb32d245c3edfb
|
[
"MIT"
] | 92
|
2017-03-22T07:27:21.000Z
|
2021-04-04T06:59:26.000Z
|
QUANTAXIS/QASpider/wallstreetCN/begin.py
|
5267/QUANTAXIS
|
c3f38b805939e33309e2da7ea8cb32d245c3edfb
|
[
"MIT"
] | 1
|
2017-03-22T10:57:27.000Z
|
2017-03-22T10:57:33.000Z
|
QUANTAXIS/QASpider/wallstreetCN/begin.py
|
5267/QUANTAXIS
|
c3f38b805939e33309e2da7ea8cb32d245c3edfb
|
[
"MIT"
] | 7
|
2017-03-22T07:27:25.000Z
|
2020-04-28T08:44:03.000Z
|
from scrapy import cmdline
cmdline.execute("scrapy crawl wsc".split())
| 18
| 43
| 0.777778
| 10
| 72
| 5.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 72
| 4
| 43
| 18
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
00d9d5a99518b2b954d070dc39914293d3a5f9f3
| 676
|
py
|
Python
|
pymatex/error/ExceptionErrorListener.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | 1
|
2019-03-05T09:45:04.000Z
|
2019-03-05T09:45:04.000Z
|
pymatex/error/ExceptionErrorListener.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | null | null | null |
pymatex/error/ExceptionErrorListener.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | null | null | null |
from antlr4.error.ErrorListener import ErrorListener
class ExceptionErrorListener(ErrorListener):
def __init__(self):
super(ExceptionErrorListener, self).__init__()
def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
raise Exception("{}: syntax error {}".format(column, msg))
def reportAmbiguity(self, recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs):
pass
def reportAttemptingFullContext(self, recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs):
pass
def reportContextSensitivity(self, recognizer, dfa, startIndex, stopIndex, prediction, configs):
pass
| 33.8
| 108
| 0.72929
| 63
| 676
| 7.698413
| 0.539683
| 0.115464
| 0.105155
| 0.16701
| 0.22268
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001795
| 0.176036
| 676
| 19
| 109
| 35.578947
| 0.868941
| 0
| 0
| 0.25
| 0
| 0
| 0.028107
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.416667
| false
| 0.25
| 0.083333
| 0
| 0.583333
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
00e8000afb43097926031ffb4f0447e433ba1007
| 105
|
py
|
Python
|
2021/acpc/squarepeg.py
|
Zeyu-Li/cc_club
|
df1f47ce68f83dea1a95f03e29c7a942716fd8df
|
[
"MIT"
] | null | null | null |
2021/acpc/squarepeg.py
|
Zeyu-Li/cc_club
|
df1f47ce68f83dea1a95f03e29c7a942716fd8df
|
[
"MIT"
] | null | null | null |
2021/acpc/squarepeg.py
|
Zeyu-Li/cc_club
|
df1f47ce68f83dea1a95f03e29c7a942716fd8df
|
[
"MIT"
] | null | null | null |
import math
l, r = map(int, input().split())
if math.sqrt(2)*r >= l: print("fits")
else: print("nope")
| 15
| 37
| 0.6
| 19
| 105
| 3.315789
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.152381
| 105
| 6
| 38
| 17.5
| 0.696629
| 0
| 0
| 0
| 0
| 0
| 0.07619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0.5
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
da9eb9fbc7a35c0c9d475ba01017128f853ec536
| 30
|
py
|
Python
|
venv/lib/python3.6/site-packages/tests/test_level1/__init__.py
|
Guillaume-Fernandez/phishfinder
|
b459a30202fd5dfb1340b43c70363705de7cedd9
|
[
"MIT"
] | 130
|
2018-12-27T06:00:32.000Z
|
2022-03-29T05:47:18.000Z
|
venv/lib/python3.6/site-packages/tests/test_level1/__init__.py
|
Guillaume-Fernandez/phishfinder
|
b459a30202fd5dfb1340b43c70363705de7cedd9
|
[
"MIT"
] | 157
|
2018-12-07T07:44:15.000Z
|
2022-02-05T16:20:08.000Z
|
venv/lib/python3.6/site-packages/tests/test_level1/__init__.py
|
Guillaume-Fernandez/phishfinder
|
b459a30202fd5dfb1340b43c70363705de7cedd9
|
[
"MIT"
] | 32
|
2018-12-31T03:11:55.000Z
|
2022-03-06T09:06:43.000Z
|
"""Test level 1 selectors."""
| 15
| 29
| 0.633333
| 4
| 30
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038462
| 0.133333
| 30
| 1
| 30
| 30
| 0.692308
| 0.766667
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
daeacafba25a250a293fa85da48cb58718a62f2c
| 324
|
py
|
Python
|
packages/api-server/api_server/models/rmf_api/task_state_update.py
|
mayman99/rmf-web
|
5670bd943567c6a866ec6345c972e6fb84d73476
|
[
"Apache-2.0"
] | 23
|
2021-04-13T23:01:12.000Z
|
2022-03-21T02:15:24.000Z
|
packages/api-server/api_server/models/rmf_api/task_state_update.py
|
mayman99/rmf-web
|
5670bd943567c6a866ec6345c972e6fb84d73476
|
[
"Apache-2.0"
] | 326
|
2021-03-10T17:32:17.000Z
|
2022-03-30T04:42:14.000Z
|
packages/api-server/api_server/models/rmf_api/task_state_update.py
|
mayman99/rmf-web
|
5670bd943567c6a866ec6345c972e6fb84d73476
|
[
"Apache-2.0"
] | 13
|
2021-04-10T10:33:36.000Z
|
2022-02-22T15:39:58.000Z
|
# generated by datamodel-codegen:
# filename: task_state_update.json
from __future__ import annotations
from pydantic import BaseModel, Field
from . import task_state
class TaskStateUpdate(BaseModel):
type: str = Field(..., description="Indicate that this is a task state update")
data: task_state.TaskState
| 23.142857
| 83
| 0.765432
| 41
| 324
| 5.853659
| 0.682927
| 0.15
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 324
| 13
| 84
| 24.923077
| 0.882353
| 0.20679
| 0
| 0
| 1
| 0
| 0.161417
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
daebcf7b78e94e66bf0dfa079647a04cefc27085
| 6,176
|
py
|
Python
|
python-flask-server/swagger_server/test/test_values_controller.py
|
broadinstitute/depmap-api
|
37776fc40fd343f8c8ebe25f0f064c2947d048be
|
[
"MIT"
] | 1
|
2020-02-03T20:29:03.000Z
|
2020-02-03T20:29:03.000Z
|
python-flask-server/swagger_server/test/test_values_controller.py
|
broadinstitute/depmap-api
|
37776fc40fd343f8c8ebe25f0f064c2947d048be
|
[
"MIT"
] | null | null | null |
python-flask-server/swagger_server/test/test_values_controller.py
|
broadinstitute/depmap-api
|
37776fc40fd343f8c8ebe25f0f064c2947d048be
|
[
"MIT"
] | 2
|
2020-05-14T22:31:09.000Z
|
2021-04-15T22:44:40.000Z
|
# coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from swagger_server.models.copy_number_value import CopyNumberValue # noqa: E501
from swagger_server.models.dependency_value import DependencyValue # noqa: E501
from swagger_server.models.expression_value import ExpressionValue # noqa: E501
from swagger_server.models.mutation import Mutation # noqa: E501
from swagger_server.models.protein_array_value import ProteinArrayValue # noqa: E501
from swagger_server.models.rnai_value import RnaiValue # noqa: E501
from swagger_server.test import BaseTestCase
class TestValuesController(BaseTestCase):
"""ValuesController integration test stubs"""
def test_copy_number_by_cell_line_depmap_id_get(self):
"""Test case for copy_number_by_cell_line_depmap_id_get
Retrieve copy-number values by cell line
"""
response = self.client.open(
'/depmap/copy_number/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_copy_number_by_gene_entrez_gene_id_get(self):
"""Test case for copy_number_by_gene_entrez_gene_id_get
Retrieve copy-number values by gene
"""
response = self.client.open(
'/depmap/copy_number/by_gene/{entrez_gene_id}'.format(entrez_gene_id=56),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_gene_dependency_by_cell_line_depmap_id_get(self):
"""Test case for gene_dependency_by_cell_line_depmap_id_get
Retrieve gene dependency by cell line
"""
response = self.client.open(
'/depmap/gene_dependency/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_gene_dependency_by_gene_entrez_gene_id_get(self):
"""Test case for gene_dependency_by_gene_entrez_gene_id_get
Retrieve gene dependency by gene
"""
response = self.client.open(
'/depmap/gene_dependency/by_gene/{entrez_gene_id}'.format(entrez_gene_id=56),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_gene_expression_by_cell_line_depmap_id_get(self):
"""Test case for gene_expression_by_cell_line_depmap_id_get
Retrieve gene expression by cell line
"""
response = self.client.open(
'/depmap/gene_expression/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_gene_expression_by_gene_ensembl_gene_get(self):
"""Test case for gene_expression_by_gene_ensembl_gene_get
Retrieve gene expression by gene
"""
response = self.client.open(
'/depmap/gene_expression/by_gene/{ensembl_gene}'.format(ensembl_gene='ensembl_gene_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_mutations_by_cell_line_depmap_id_get(self):
"""Test case for mutations_by_cell_line_depmap_id_get
Retrieve mutations by cell line
"""
response = self.client.open(
'/depmap/mutations/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_mutations_by_gene_entrez_gene_id_get(self):
"""Test case for mutations_by_gene_entrez_gene_id_get
Retrieve mutations by gene
"""
response = self.client.open(
'/depmap/mutations/by_gene/{entrez_gene_id}'.format(entrez_gene_id=56),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_protein_array_by_cell_line_depmap_id_get(self):
"""Test case for protein_array_by_cell_line_depmap_id_get
Retrieve protein array values by cell line
"""
response = self.client.open(
'/depmap/protein_array/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_protein_array_by_protein_antibody_name_get(self):
"""Test case for protein_array_by_protein_antibody_name_get
Retrieve protein array values by gene
"""
response = self.client.open(
'/depmap/protein_array/by_protein/{antibody_name}'.format(antibody_name='antibody_name_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_rnai_by_cell_line_depmap_id_get(self):
"""Test case for rnai_by_cell_line_depmap_id_get
Retrieve rnai values by cell line
"""
response = self.client.open(
'/depmap/rnai/by_cell_line/{depmap_id}'.format(depmap_id='depmap_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
def test_rnai_by_gene_entrez_gene_id_get(self):
"""Test case for rnai_by_gene_entrez_gene_id_get
Retrieve rnai values by gene
"""
response = self.client.open(
'/depmap/rnai/by_gene/{entrez_gene_id}'.format(entrez_gene_id=56),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
if __name__ == '__main__':
import unittest
unittest.main()
| 39.589744
| 109
| 0.656088
| 779
| 6,176
| 4.856226
| 0.089859
| 0.063442
| 0.063442
| 0.07613
| 0.871795
| 0.850119
| 0.783241
| 0.705525
| 0.545334
| 0.474491
| 0
| 0.016112
| 0.246276
| 6,176
| 155
| 110
| 39.845161
| 0.796563
| 0.193005
| 0
| 0.55814
| 0
| 0
| 0.213466
| 0.117035
| 0
| 0
| 0
| 0
| 0.139535
| 1
| 0.139535
| false
| 0
| 0.127907
| 0
| 0.27907
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 4
|
9718b8486af1829f77108c3b5706d69412bba47c
| 3,523
|
py
|
Python
|
presidio-analyzer/analyzer/field_types/field_factory.py
|
kant/presidio
|
af7d82bde7e978313a11a7281eac961697bbe164
|
[
"MIT"
] | null | null | null |
presidio-analyzer/analyzer/field_types/field_factory.py
|
kant/presidio
|
af7d82bde7e978313a11a7281eac961697bbe164
|
[
"MIT"
] | null | null | null |
presidio-analyzer/analyzer/field_types/field_factory.py
|
kant/presidio
|
af7d82bde7e978313a11a7281eac961697bbe164
|
[
"MIT"
] | null | null | null |
from field_types.globally import credit_card, crypto, email, ip, iban, domain, ner # noqa: E501
from field_types.us import bank as usbank
from field_types.us import driver_license as usdriver
from field_types.us import itin as usitin
from field_types.us import passport as uspassport
from field_types.us import phone as usphone
from field_types.us import ssn as usssn
from field_types.uk import nhs as uknhs
import os
import sys
parentPath = os.path.abspath("..")
if parentPath not in sys.path:
sys.path.insert(0, parentPath)
from analyzer import common_pb2 # noqa: E402
class FieldFactory(object):
def create(type):
if type == common_pb2.FieldTypesEnum.Name(common_pb2.CREDIT_CARD):
return credit_card.CreditCard()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.CRYPTO):
return crypto.Crypto()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.DOMAIN_NAME):
return domain.Domain()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.EMAIL_ADDRESS):
return email.Email()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.IBAN_CODE):
return iban.Iban()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.IP_ADDRESS):
return ip.Ip()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.US_BANK_NUMBER):
return usbank.UsBank()
if type == common_pb2.FieldTypesEnum.Name(
common_pb2.US_DRIVER_LICENSE):
return usdriver.UsDriverLicense()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.US_ITIN):
return usitin.UsItin()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.US_PASSPORT):
return uspassport.UsPassport()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.PHONE_NUMBER):
return usphone.Phone()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.US_SSN):
return usssn.UsSsn()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.UK_NHS):
return uknhs.UkNhs()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.DATE_TIME):
return ner.Ner()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.NRP):
return ner.Ner()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.LOCATION):
return ner.Ner()
if type == common_pb2.FieldTypesEnum.Name(common_pb2.PERSON):
return ner.Ner()
create = staticmethod(create)
types_refs = {
common_pb2.FieldTypesEnum.Name(common_pb2.CREDIT_CARD),
common_pb2.FieldTypesEnum.Name(common_pb2.CRYPTO),
common_pb2.FieldTypesEnum.Name(common_pb2.DATE_TIME),
common_pb2.FieldTypesEnum.Name(common_pb2.DOMAIN_NAME),
common_pb2.FieldTypesEnum.Name(common_pb2.EMAIL_ADDRESS),
common_pb2.FieldTypesEnum.Name(common_pb2.IBAN_CODE),
common_pb2.FieldTypesEnum.Name(common_pb2.IP_ADDRESS),
common_pb2.FieldTypesEnum.Name(common_pb2.NRP),
common_pb2.FieldTypesEnum.Name(common_pb2.LOCATION),
common_pb2.FieldTypesEnum.Name(common_pb2.PERSON),
common_pb2.FieldTypesEnum.Name(common_pb2.US_BANK_NUMBER),
common_pb2.FieldTypesEnum.Name(common_pb2.US_DRIVER_LICENSE),
common_pb2.FieldTypesEnum.Name(common_pb2.US_ITIN),
common_pb2.FieldTypesEnum.Name(common_pb2.US_PASSPORT),
common_pb2.FieldTypesEnum.Name(common_pb2.PHONE_NUMBER),
common_pb2.FieldTypesEnum.Name(common_pb2.US_SSN),
common_pb2.FieldTypesEnum.Name(common_pb2.UK_NHS),
}
| 44.0375
| 96
| 0.719557
| 463
| 3,523
| 5.235421
| 0.146868
| 0.256188
| 0.187706
| 0.378713
| 0.735149
| 0.680693
| 0.680693
| 0.60231
| 0.207921
| 0.066832
| 0
| 0.026481
| 0.185353
| 3,523
| 79
| 97
| 44.594937
| 0.818118
| 0.005961
| 0
| 0.056338
| 0
| 0
| 0.000572
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014085
| false
| 0.056338
| 0.15493
| 0
| 0.43662
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
9724c5e81d3f0d555818128fade29f1f3cf164c0
| 294
|
py
|
Python
|
projects/SalsaNext/salsa/backbone/__init__.py
|
Gorilla-Lab-SCUT/gorilla-3d
|
399ed8616781a0fbc462f655c0e80c258c5a5207
|
[
"MIT"
] | 6
|
2021-08-30T14:52:05.000Z
|
2022-02-28T19:37:14.000Z
|
projects/SalsaNext/salsa/backbone/__init__.py
|
Gorilla-Lab-SCUT/gorilla-3d
|
399ed8616781a0fbc462f655c0e80c258c5a5207
|
[
"MIT"
] | null | null | null |
projects/SalsaNext/salsa/backbone/__init__.py
|
Gorilla-Lab-SCUT/gorilla-3d
|
399ed8616781a0fbc462f655c0e80c258c5a5207
|
[
"MIT"
] | 3
|
2021-12-25T02:17:51.000Z
|
2022-02-23T21:53:16.000Z
|
# Copyright (c) Gorilla-Lab. All rights reserved.
from .darknet import DarkNet
from .squeezenet import SqueezeNet
from .squeezenetV2 import SqueezeNetV2
# auto registry all defined module
import torch
import gorilla
gorilla.core.auto_registry(gorilla.MODULES, globals(), type=torch.nn.Module)
| 29.4
| 76
| 0.812925
| 39
| 294
| 6.102564
| 0.564103
| 0.10084
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007663
| 0.112245
| 294
| 9
| 77
| 32.666667
| 0.904215
| 0.272109
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
973f63804fc6708967f6d84611806117f24662dc
| 65
|
py
|
Python
|
rh_pathfinding/src/rh_pathfinding/gui/editor/nfzEdit/__init__.py
|
RhinohawkUAV/rh_ros
|
e13077060bdfcc231adee9731ebfddadcd8d6b4a
|
[
"MIT"
] | 4
|
2020-05-13T19:34:27.000Z
|
2021-09-20T09:01:10.000Z
|
rh_pathfinding/src/rh_pathfinding/gui/editor/nfzEdit/__init__.py
|
RhinohawkUAV/rh_ros
|
e13077060bdfcc231adee9731ebfddadcd8d6b4a
|
[
"MIT"
] | null | null | null |
rh_pathfinding/src/rh_pathfinding/gui/editor/nfzEdit/__init__.py
|
RhinohawkUAV/rh_ros
|
e13077060bdfcc231adee9731ebfddadcd8d6b4a
|
[
"MIT"
] | 2
|
2019-09-14T14:45:09.000Z
|
2020-11-22T01:46:59.000Z
|
from nfzBuilder import NFZBuilder
from nfzEditor import NFZEditor
| 32.5
| 33
| 0.892308
| 8
| 65
| 7.25
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107692
| 65
| 2
| 34
| 32.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
976d3fad88ea00ea93cb1b88b78d06b63aa41429
| 290
|
py
|
Python
|
tests/test_niwidgets.py
|
jcreinhold/niwidgets
|
c684f965073fa74ff3e3bc4d8c9a45bf631778bc
|
[
"Apache-2.0"
] | null | null | null |
tests/test_niwidgets.py
|
jcreinhold/niwidgets
|
c684f965073fa74ff3e3bc4d8c9a45bf631778bc
|
[
"Apache-2.0"
] | null | null | null |
tests/test_niwidgets.py
|
jcreinhold/niwidgets
|
c684f965073fa74ff3e3bc4d8c9a45bf631778bc
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""Tests for `niwidgets` package."""
from niwidgets import SurfaceWidget, NiftiWidget
from niwidgets.example_data import example_surface, example_t1
def test_surfacewidget():
SurfaceWidget(example_surface)
def test_niftiwidget():
NiftiWidget(example_t1)
| 19.333333
| 62
| 0.782759
| 34
| 290
| 6.470588
| 0.529412
| 0.118182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007874
| 0.124138
| 290
| 14
| 63
| 20.714286
| 0.858268
| 0.175862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
977330deb208988c0632332e0dbf5001cc1e3111
| 185
|
py
|
Python
|
Problem/PeopleFund/itertools_combinations_with_replacement().py
|
yeojin-dev/coding-test
|
30ce8507838beaa9232c6fc6c62a7dcb62d51464
|
[
"MIT"
] | 2
|
2018-07-11T08:13:06.000Z
|
2018-07-11T08:47:12.000Z
|
Problem/PeopleFund/itertools_combinations_with_replacement().py
|
yeojin-dev/coding-test
|
30ce8507838beaa9232c6fc6c62a7dcb62d51464
|
[
"MIT"
] | null | null | null |
Problem/PeopleFund/itertools_combinations_with_replacement().py
|
yeojin-dev/coding-test
|
30ce8507838beaa9232c6fc6c62a7dcb62d51464
|
[
"MIT"
] | null | null | null |
from itertools import combinations_with_replacement
string, n = input().split()
for characters in combinations_with_replacement(sorted(string), int(n)):
print(''.join(characters))
| 30.833333
| 72
| 0.778378
| 23
| 185
| 6.086957
| 0.73913
| 0.228571
| 0.385714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102703
| 185
| 5
| 73
| 37
| 0.843373
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 1
| 0
| 0
| null | 1
| 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
| 4
|
97c224183f84ee5335140598dcc61752395bd38c
| 109
|
py
|
Python
|
machina/apps/forum_feeds/__init__.py
|
OneRainbowDev/django-machina
|
7354cc50f58dcbe49eecce7e1f019f6fff21d690
|
[
"BSD-3-Clause"
] | 1
|
2019-01-07T19:18:56.000Z
|
2019-01-07T19:18:56.000Z
|
machina/apps/forum_feeds/__init__.py
|
OneRainbowDev/django-machina
|
7354cc50f58dcbe49eecce7e1f019f6fff21d690
|
[
"BSD-3-Clause"
] | 7
|
2020-02-12T01:11:13.000Z
|
2022-03-11T23:26:32.000Z
|
machina/apps/forum_feeds/__init__.py
|
OneRainbowDev/django-machina
|
7354cc50f58dcbe49eecce7e1f019f6fff21d690
|
[
"BSD-3-Clause"
] | 1
|
2019-04-20T05:26:27.000Z
|
2019-04-20T05:26:27.000Z
|
# -*- coding: utf-8 -*-
default_app_config = 'machina.apps.forum_feeds.registry_config.FeedsRegistryConfig'
| 27.25
| 83
| 0.770642
| 13
| 109
| 6.153846
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01
| 0.082569
| 109
| 3
| 84
| 36.333333
| 0.79
| 0.192661
| 0
| 0
| 0
| 0
| 0.697674
| 0.697674
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8ae023ac1dd812abc60fdca545decbb54846f0bd
| 271
|
py
|
Python
|
modules/services/url_constructor.py
|
mehrabik/az
|
bae2d04ee03bcb08f20768236111546206fc1c1e
|
[
"MIT"
] | 73
|
2018-04-06T07:29:36.000Z
|
2022-03-18T09:24:32.000Z
|
modules/services/url_constructor.py
|
mehrabik/az
|
bae2d04ee03bcb08f20768236111546206fc1c1e
|
[
"MIT"
] | 63
|
2018-04-25T09:15:46.000Z
|
2022-03-22T05:46:12.000Z
|
modules/services/url_constructor.py
|
mehrabik/az
|
bae2d04ee03bcb08f20768236111546206fc1c1e
|
[
"MIT"
] | 15
|
2018-05-26T12:35:00.000Z
|
2022-02-26T13:26:53.000Z
|
class UrlConstructor:
def __init__(self, key='', base_url='https://androzoo.uni.lu/api/download?apikey={0}&sha256={01}'):
self.base_url = base_url
self.key = key
def construct(self, apk):
return self.base_url.format(self.key, apk.sha256)
| 33.875
| 103
| 0.656827
| 39
| 271
| 4.358974
| 0.564103
| 0.164706
| 0.129412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040909
| 0.188192
| 271
| 7
| 104
| 38.714286
| 0.731818
| 0
| 0
| 0
| 0
| 0
| 0.217712
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8af7bafd1b2879739759d4173ea147317150de4b
| 659
|
py
|
Python
|
run.py
|
lbaiao/sys-simulator-2
|
94f00d43309fe7b56dac5099bd4024695ba317b6
|
[
"MIT"
] | 1
|
2020-06-14T13:50:28.000Z
|
2020-06-14T13:50:28.000Z
|
run.py
|
lbaiao/sys-simulator-2
|
94f00d43309fe7b56dac5099bd4024695ba317b6
|
[
"MIT"
] | null | null | null |
run.py
|
lbaiao/sys-simulator-2
|
94f00d43309fe7b56dac5099bd4024695ba317b6
|
[
"MIT"
] | null | null | null |
# Automated script for training, testing and saving
# results and models. Avoid editing this script. You must
# manually git pull if you edit this script.
import os
# pulls the code most recent version
os.system('git pull origin devel')
os.system('python exec.py')
# commit new results
os.system('git add data/*')
os.system('git add data/a2c/*')
os.system('git add data/dql/*')
os.system('git add models/*')
os.system('git add models/a2c/*')
os.system('git add models/dql/*')
os.system('git add logs/*')
os.system('git add logs/a2c/*')
os.system('git add logs/dql/*')
os.system('git commit -m "new results"')
os.system('git push origin devel')
print('DONE')
| 29.954545
| 57
| 0.711684
| 112
| 659
| 4.1875
| 0.392857
| 0.221748
| 0.28145
| 0.268657
| 0.45629
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005217
| 0.127466
| 659
| 21
| 58
| 31.380952
| 0.810435
| 0.306525
| 0
| 0
| 0
| 0
| 0.538803
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.066667
| 0
| 0.066667
| 0.066667
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8af9a91ae16c0553db0dee352c0283ac8b4c390a
| 109
|
py
|
Python
|
web/search/forms.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | 1
|
2017-11-28T03:17:23.000Z
|
2017-11-28T03:17:23.000Z
|
web/search/forms.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | 56
|
2018-01-14T18:03:03.000Z
|
2018-06-25T17:59:02.000Z
|
web/search/forms.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | null | null | null |
from django import forms
class SearchForm(forms.Form):
q = forms.CharField(max_length=200, initial="")
| 18.166667
| 51
| 0.733945
| 15
| 109
| 5.266667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0.146789
| 109
| 5
| 52
| 21.8
| 0.817204
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
8aff3357a2f71ad55060574b8c8c8841675035e1
| 195
|
py
|
Python
|
src/python/competition/tasks/__init__.py
|
miyamotok0105/Mario_AI_Competition2009
|
2fb527b45c9590deabb781f2959e458bc3882b72
|
[
"MIT"
] | 1
|
2020-12-22T03:46:18.000Z
|
2020-12-22T03:46:18.000Z
|
src/python/competition/tasks/__init__.py
|
miyamotok0105/Mario_AI_Competition2009
|
2fb527b45c9590deabb781f2959e458bc3882b72
|
[
"MIT"
] | null | null | null |
src/python/competition/tasks/__init__.py
|
miyamotok0105/Mario_AI_Competition2009
|
2fb527b45c9590deabb781f2959e458bc3882b72
|
[
"MIT"
] | 3
|
2020-11-22T11:49:41.000Z
|
2020-12-07T02:21:27.000Z
|
__author__="Sergey Karakovskiy, sergey at idsia fullstop ch"
__date__ ="$May 13, 2009 12:15:26 AM$"
from task import Task
from episodictask import EpisodicTask
from mariotask import MarioTask
| 21.666667
| 60
| 0.794872
| 28
| 195
| 5.25
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071856
| 0.14359
| 195
| 8
| 61
| 24.375
| 0.808383
| 0
| 0
| 0
| 0
| 0
| 0.376289
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
c1081923d74f762480b33c6369e1a2dfc4bb0e95
| 158
|
py
|
Python
|
algorithms/implementation/beautiful_triplets/prithaj.py
|
prithajnath/HackerRank
|
4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae
|
[
"MIT"
] | 4
|
2017-09-11T13:21:17.000Z
|
2018-02-02T03:18:26.000Z
|
algorithms/implementation/beautiful_triplets/prithaj.py
|
prithajnath/HackerRank
|
4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae
|
[
"MIT"
] | 10
|
2017-01-05T06:03:51.000Z
|
2018-10-06T03:35:20.000Z
|
algorithms/implementation/beautiful_triplets/prithaj.py
|
PlattsSEC/HackerRank
|
f8951c8cd1cd7f5b520d2c66e17e43b3729b8a80
|
[
"MIT"
] | 8
|
2016-05-05T00:46:31.000Z
|
2018-03-30T01:52:50.000Z
|
n, d = map(int, raw_input().split())
arr = map(int, raw_input().split())
seq_set = set(arr)
print sum((1 for i in arr if d+i in seq_set and 2*d+i in seq_set))
| 39.5
| 66
| 0.658228
| 37
| 158
| 2.675676
| 0.513514
| 0.181818
| 0.181818
| 0.282828
| 0.585859
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015038
| 0.158228
| 158
| 4
| 66
| 39.5
| 0.729323
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.25
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c171befd196b5ba6825de303e26976d657ebc1db
| 33
|
py
|
Python
|
homeassistant/components/iliad_italy/__init__.py
|
gsemet/home-assistant
|
7bed139a93a917c824595c854ba4d883baf55f8b
|
[
"Apache-2.0"
] | null | null | null |
homeassistant/components/iliad_italy/__init__.py
|
gsemet/home-assistant
|
7bed139a93a917c824595c854ba4d883baf55f8b
|
[
"Apache-2.0"
] | null | null | null |
homeassistant/components/iliad_italy/__init__.py
|
gsemet/home-assistant
|
7bed139a93a917c824595c854ba4d883baf55f8b
|
[
"Apache-2.0"
] | null | null | null |
"""The iliad_italy component."""
| 16.5
| 32
| 0.69697
| 4
| 33
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 33
| 1
| 33
| 33
| 0.733333
| 0.787879
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c187d06a8c927a9939fc3b36f213378b4d0c91fe
| 236
|
py
|
Python
|
shopping_ingredient/forms.py
|
leichandra/mealplanshop
|
a10fb2f2d2967d6a00f27452d180cd1b302bc23a
|
[
"MIT"
] | null | null | null |
shopping_ingredient/forms.py
|
leichandra/mealplanshop
|
a10fb2f2d2967d6a00f27452d180cd1b302bc23a
|
[
"MIT"
] | 3
|
2021-02-24T05:18:03.000Z
|
2021-03-11T04:07:03.000Z
|
shopping_ingredient/forms.py
|
leichandra/mealplanshop
|
a10fb2f2d2967d6a00f27452d180cd1b302bc23a
|
[
"MIT"
] | null | null | null |
from django import forms
from shopping_ingredient.models import ShoppingIngredient
import json
class ShoppingIngredientForm(forms.ModelForm):
class Meta:
model = ShoppingIngredient
fields = "__all__"
| 26.222222
| 59
| 0.720339
| 22
| 236
| 7.5
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237288
| 236
| 9
| 60
| 26.222222
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0.029536
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.714286
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
c1883b08eff8c4e702081da171baa56501d20038
| 210
|
py
|
Python
|
iscc_bench/imageid/subhash.py
|
coblo/isccbench
|
daf22cdd740fa99c62c4a56233593159e398596b
|
[
"BSD-2-Clause"
] | 3
|
2019-07-07T19:30:26.000Z
|
2020-09-17T10:17:36.000Z
|
iscc_bench/imageid/subhash.py
|
coblo/isccbench
|
daf22cdd740fa99c62c4a56233593159e398596b
|
[
"BSD-2-Clause"
] | 3
|
2019-04-15T13:00:48.000Z
|
2021-12-13T19:44:12.000Z
|
iscc_bench/imageid/subhash.py
|
coblo/isccbench
|
daf22cdd740fa99c62c4a56233593159e398596b
|
[
"BSD-2-Clause"
] | 1
|
2021-02-25T16:13:14.000Z
|
2021-02-25T16:13:14.000Z
|
# -*- coding: utf-8 -*-
"""Test strategy with hashing mutiple shift invariant aligned patches
See: https://stackoverflow.com/a/20316789/51627
"""
def main():
pass
if __name__ == "__main__":
main()
| 15
| 69
| 0.661905
| 26
| 210
| 5.038462
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081395
| 0.180952
| 210
| 13
| 70
| 16.153846
| 0.680233
| 0.657143
| 0
| 0
| 0
| 0
| 0.123077
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
c194f3ebcdab7b1859ed86433a94f4e9d730ce24
| 254
|
py
|
Python
|
tt_core/admin.py
|
probablytom/tweaktoday
|
d721f078d6ed0c3b7b6435788522dda1ed48ea12
|
[
"MIT"
] | 1
|
2020-04-18T22:24:11.000Z
|
2020-04-18T22:24:11.000Z
|
tt_core/admin.py
|
probablytom/tweaktoday
|
d721f078d6ed0c3b7b6435788522dda1ed48ea12
|
[
"MIT"
] | null | null | null |
tt_core/admin.py
|
probablytom/tweaktoday
|
d721f078d6ed0c3b7b6435788522dda1ed48ea12
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Mission, TaskSuggestion, Submission, Comment
# Register your models here.
admin.site.register(Mission)
admin.site.register(TaskSuggestion)
admin.site.register(Submission)
admin.site.register(Comment)
| 28.222222
| 64
| 0.826772
| 32
| 254
| 6.5625
| 0.4375
| 0.171429
| 0.32381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082677
| 254
| 8
| 65
| 31.75
| 0.901288
| 0.102362
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c1a82158cdf5f0d66374eb32ea83800280daea7b
| 3,009
|
py
|
Python
|
Dr. CovidAI/Dr. CovidAI/flaskblog/poolData.py
|
Shreyas-l/Dr.CovidAI
|
a09eb779db8d7f38fe4545d3ab71fac8a78f1054
|
[
"MIT"
] | null | null | null |
Dr. CovidAI/Dr. CovidAI/flaskblog/poolData.py
|
Shreyas-l/Dr.CovidAI
|
a09eb779db8d7f38fe4545d3ab71fac8a78f1054
|
[
"MIT"
] | 1
|
2020-04-13T15:56:55.000Z
|
2020-04-13T15:56:55.000Z
|
Dr. CovidAI/Dr. CovidAI/flaskblog/poolData.py
|
Shreyas-l/CODE19-Pyrocrats
|
a09eb779db8d7f38fe4545d3ab71fac8a78f1054
|
[
"MIT"
] | null | null | null |
Data = {'45188': {'location': 'Churchgate', 'probability': 29}, '53055': {'location': 'Powai', 'probability': 81}, '22060': {'location': 'Panvel', 'probability': 56}, '20122': {'location': 'Panvel', 'probability': 83}, '28452': {'location': 'Churchgate', 'probability': 57}, '32595': {'location': 'Nerul', 'probability': 39}, '59670': {'location': 'Seawoods', 'probability': 27}, '43300': {'location': 'Bandra', 'probability': 83}, '10315': {'location': 'Vashi', 'probability': 94}, '37093': {'location': 'Powai', 'probability': 100}, '28735': {'location': 'Churchgate', 'probability': 51}, '45199': {'location': 'Nerul', 'probability': 36}, '42593': {'location': 'Kharghar', 'probability': 51}, '56426': {'location': 'Bandra', 'probability': 99}, '10664': {'location': 'Kharghar', 'probability': 80}, '15312': {'location': 'Bandra', 'probability': 58}, '54782': {'location': 'Vashi', 'probability': 19}, '44394': {'location': 'Kharghar', 'probability': 29}, '45787': {'location': 'Powai', 'probability': 37}, '42615': {'location': 'Churchgate', 'probability': 64}, '41463': {'location': 'Churchgate', 'probability': 79}, '35062': {'location': 'Powai', 'probability': 56}, '51730': {'location': 'Panvel', 'probability': 20}, '42586': {'location': 'Powai', 'probability': 23}, '23449': {'location': 'Bandra', 'probability': 43}, '45694': {'location': 'Powai', 'probability': 34}, '17325': {'location': 'Powai', 'probability': 18}, '19069': {'location': 'Powai', 'probability': 22}, '12177': {'location': 'Powai', 'probability': 33}, '33588': {'location': 'Powai', 'probability': 81}, '59028': {'location': 'Seawoods', 'probability': 38}, '28921': {'location': 'Panvel', 'probability': 1}, '22418': {'location': 'Churchgate', 'probability': 87}, '24024': {'location': 'Churchgate', 'probability': 64}, '57485': {'location': 'Nerul', 'probability': 50}, '45780': {'location': 'Vashi', 'probability': 82}, '54953': {'location': 'Seawoods', 'probability': 6}, '33412': {'location': 'Kharghar', 'probability': 28}, '32392': {'location': 'Churchgate', 'probability': 87}, '24722': {'location': 'Seawoods', 'probability': 31}, '53855': {'location': 'Seawoods', 'probability': 36}, '23142': {'location': 'Kharghar', 'probability': 14}, '47503': {'location': 'Churchgate', 'probability': 18}, '54407': {'location': 'Bandra', 'probability': 52}, '46269': {'location': 'Nerul', 'probability': 32}, '13377': {'location': 'Nerul', 'probability': 76}, '10024': {'location': 'Kharghar', 'probability': 66}, '24706': {'location': 'Powai', 'probability': 14}, '50667': {'location': 'Seawoods', 'probability': 40}, '42508': {'location': 'Bandra', 'probability': 54}, '42972': {'location': 'Panvel', 'probability': 29}, '39833': {'location': 'Seawoods', 'probability': 44}, '38333': {'location': 'Panvel', 'probability': 93}, '32530': {'location': 'Vashi', 'probability': 86}, '30341': {'location': 'Powai', 'probability': 80}, '10286': {'location': 'Powai', 'probability': 80}, '34631': {'location': 'Powai', 'probability': 80}}
| 3,009
| 3,009
| 0.62014
| 286
| 3,009
| 6.524476
| 0.388112
| 0.097535
| 0.180064
| 0.041801
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146162
| 0.095048
| 3,009
| 1
| 3,009
| 3,009
| 0.539111
| 0
| 0
| 0
| 0
| 0
| 0.581063
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c1d8c22f2234d99fa4ac54cacd18c3d575c9bd6e
| 368
|
py
|
Python
|
rrmpg/data/__init__.py
|
visr/RRMPG
|
255224f00d2bdde53666f6bf3f3bf8566de15bb5
|
[
"MIT"
] | 56
|
2017-08-15T07:03:27.000Z
|
2022-01-06T13:46:30.000Z
|
rrmpg/data/__init__.py
|
visr/RRMPG
|
255224f00d2bdde53666f6bf3f3bf8566de15bb5
|
[
"MIT"
] | 15
|
2017-09-13T10:08:01.000Z
|
2022-03-31T13:34:39.000Z
|
rrmpg/data/__init__.py
|
visr/RRMPG
|
255224f00d2bdde53666f6bf3f3bf8566de15bb5
|
[
"MIT"
] | 25
|
2017-09-14T15:31:30.000Z
|
2022-03-03T12:54:09.000Z
|
# This file is part of RRMPG.
#
# RRMPG is free software with the aim to provide a playground for experiments
# with hydrological rainfall-runoff-models while achieving competitive
# performance results.
#
# You should have received a copy of the MIT License along with RRMPG. If not,
# see <https://opensource.org/licenses/MIT>
from .camelsloader import CAMELSLoader
| 36.8
| 78
| 0.785326
| 54
| 368
| 5.351852
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 368
| 10
| 79
| 36.8
| 0.926282
| 0.847826
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c1da6b1d618ed121699c8890e5285938aec4dd65
| 1,223
|
py
|
Python
|
example/apps/test_security/views.py
|
druids/django-security
|
bca889ff1a58378a038a08ca365162d9e3ef3fbf
|
[
"MIT"
] | 9
|
2019-03-12T12:31:20.000Z
|
2021-01-22T13:31:36.000Z
|
example/apps/test_security/views.py
|
druids/django-security
|
bca889ff1a58378a038a08ca365162d9e3ef3fbf
|
[
"MIT"
] | 28
|
2019-12-05T12:20:49.000Z
|
2022-03-25T08:15:10.000Z
|
example/apps/test_security/views.py
|
druids/django-security
|
bca889ff1a58378a038a08ca365162d9e3ef3fbf
|
[
"MIT"
] | 5
|
2019-07-10T15:29:44.000Z
|
2021-02-01T12:50:56.000Z
|
from django.http import HttpResponse
from security.throttling.validators import PerRequestThrottlingValidator
from security.logging.requests.utils import log_input_request_with_data
from security.decorators import hide_request_body, log_exempt, throttling_exempt, throttling
from security import requests
def proxy_view(request):
return HttpResponse(
requests.get(
request.GET['url'],
slug='proxy',
related_objects=(request.user,) if request.user.is_authenticated else ()
).content
)
@hide_request_body()
def hide_request_body_view(request):
return HttpResponse()
@log_exempt()
def log_exempt_view(request):
return HttpResponse()
@throttling_exempt()
def throttling_exempt_view(request):
return HttpResponse()
@throttling(PerRequestThrottlingValidator(60, 1))
def extra_throttling_view(request):
return HttpResponse()
def error_view(request):
raise RuntimeError
def home_view(request):
if request.user.is_authenticated:
log_input_request_with_data(
request, slug='user-home', extra_data={'user_pk': request.user.pk}, related_objects=[request.user]
)
return HttpResponse('home page response')
| 24.959184
| 110
| 0.742437
| 142
| 1,223
| 6.15493
| 0.323944
| 0.088101
| 0.097254
| 0.165904
| 0.21968
| 0.102975
| 0
| 0
| 0
| 0
| 0
| 0.002956
| 0.170074
| 1,223
| 48
| 111
| 25.479167
| 0.858128
| 0
| 0
| 0.121212
| 0
| 0
| 0.034342
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.212121
| false
| 0
| 0.151515
| 0.151515
| 0.545455
| 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
| 1
| 1
| 0
|
0
| 4
|
c1e19952c1dde073450013a42b38567ff9cee352
| 301
|
py
|
Python
|
{{cookiecutter.project_slug}}/app/database.py
|
apteryxlabs/traefik-https
|
4e6c7b8a3a61b0a8c504e5b2d1bebca9a403b2bf
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/app/database.py
|
apteryxlabs/traefik-https
|
4e6c7b8a3a61b0a8c504e5b2d1bebca9a403b2bf
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/app/database.py
|
apteryxlabs/traefik-https
|
4e6c7b8a3a61b0a8c504e5b2d1bebca9a403b2bf
|
[
"MIT"
] | null | null | null |
from motor.motor_asyncio import AsyncIOMotorCollection
from app.core.config import settings
async def _get_collection() -> AsyncIOMotorCollection:
from app.main import MONGO_CLIENT
col = MONGO_CLIENT.get_database(settings.MONGO_DB).get_collection(settings.MONGO_COLLECTION)
return col
| 27.363636
| 96
| 0.813953
| 38
| 301
| 6.210526
| 0.526316
| 0.220339
| 0.245763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126246
| 301
| 10
| 97
| 30.1
| 0.897338
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
c1f237229c7ef664ea99d23975ffc5930ec70f0c
| 89
|
py
|
Python
|
miniProj/miniApp/apps.py
|
cs-fullstack-2019-spring/django-mini-project5-DB225
|
c8d6823056a7c68a53c465468b8efc58b873b846
|
[
"Apache-2.0"
] | null | null | null |
miniProj/miniApp/apps.py
|
cs-fullstack-2019-spring/django-mini-project5-DB225
|
c8d6823056a7c68a53c465468b8efc58b873b846
|
[
"Apache-2.0"
] | null | null | null |
miniProj/miniApp/apps.py
|
cs-fullstack-2019-spring/django-mini-project5-DB225
|
c8d6823056a7c68a53c465468b8efc58b873b846
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class MiniappConfig(AppConfig):
name = 'miniApp'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
a9f744d50b832b2c36412d18d4d6e692a4991604
| 884
|
gyp
|
Python
|
deps/apr-iconv/apr-iconv.gyp
|
yume-chan/node-svn
|
47f2eba70b55dcd15bda745b102668223a2b7f20
|
[
"MIT"
] | null | null | null |
deps/apr-iconv/apr-iconv.gyp
|
yume-chan/node-svn
|
47f2eba70b55dcd15bda745b102668223a2b7f20
|
[
"MIT"
] | 5
|
2018-03-16T06:48:29.000Z
|
2018-04-17T09:47:15.000Z
|
deps/apr-iconv/apr-iconv.gyp
|
yume-chan/node-svn
|
47f2eba70b55dcd15bda745b102668223a2b7f20
|
[
"MIT"
] | 4
|
2018-04-11T00:06:05.000Z
|
2019-10-25T01:34:40.000Z
|
{
"includes": [
"../common.gypi"
],
"targets": [
{
"configurations": {
"Release": {
"defines": [
"NDEBUG"
]
}
},
"include_dirs": [
"apr-iconv/include"
],
"sources": [
"dependencies/apr-iconv/lib/iconv.c",
"dependencies/apr-iconv/lib/iconv_ces.c",
"dependencies/apr-iconv/lib/iconv_ces_euc.c",
"dependencies/apr-iconv/lib/iconv_ces_iso2022.c",
"dependencies/apr-iconv/lib/iconv_int.c",
"dependencies/apr-iconv/lib/iconv_module.c",
"dependencies/apr-iconv/lib/iconv_uc.c"
],
"target_name": "apr-iconv",
}
]
}
| 29.466667
| 66
| 0.399321
| 68
| 884
| 5.044118
| 0.352941
| 0.209913
| 0.408163
| 0.469388
| 0.61516
| 0.533528
| 0.279883
| 0
| 0
| 0
| 0
| 0.008511
| 0.468326
| 884
| 29
| 67
| 30.482759
| 0.721277
| 0
| 0
| 0.103448
| 0
| 0
| 0.461988
| 0.322807
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e7198f5e30cae1555c8ad9e5b8b9c7eac7170d2f
| 254
|
py
|
Python
|
cride/rides/serializers/rides.py
|
LhernerRemon/Rider
|
30783cf58513698d23730f5fa477dfeddda8ee6b
|
[
"MIT"
] | null | null | null |
cride/rides/serializers/rides.py
|
LhernerRemon/Rider
|
30783cf58513698d23730f5fa477dfeddda8ee6b
|
[
"MIT"
] | null | null | null |
cride/rides/serializers/rides.py
|
LhernerRemon/Rider
|
30783cf58513698d23730f5fa477dfeddda8ee6b
|
[
"MIT"
] | null | null | null |
#REST
from rest_framework import serializers
# Model
from cride.rides.models import Ride
class CreateRideSerializer(serializers.ModelSerializer):
class Meta:
model=Ride
exclude=("offered_in","passengers","rating","is_active")
| 19.538462
| 64
| 0.728346
| 28
| 254
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177165
| 254
| 12
| 65
| 21.166667
| 0.870813
| 0.03937
| 0
| 0
| 0
| 0
| 0.145228
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e724903eaba80de2864be4aa324e710052895de2
| 127
|
py
|
Python
|
develop/core/views.py
|
renderbox/django-help-me
|
6efdaf715d2770305a7187c008354e0f784f9f5b
|
[
"MIT"
] | 1
|
2020-09-30T22:21:02.000Z
|
2020-09-30T22:21:02.000Z
|
develop/core/views.py
|
renderbox/django-help-me
|
6efdaf715d2770305a7187c008354e0f784f9f5b
|
[
"MIT"
] | 8
|
2020-09-11T00:50:57.000Z
|
2022-03-30T22:10:45.000Z
|
develop/core/views.py
|
renderbox/django-help-me
|
6efdaf715d2770305a7187c008354e0f784f9f5b
|
[
"MIT"
] | null | null | null |
from django.views.generic import TemplateView
class CoreIndexView(TemplateView):
template_name = "core/index.html"
| 15.875
| 45
| 0.755906
| 14
| 127
| 6.785714
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165354
| 127
| 7
| 46
| 18.142857
| 0.896226
| 0
| 0
| 0
| 0
| 0
| 0.11811
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e7774f10b957b1a80f7fbe579a33825cc8de2ecc
| 277
|
py
|
Python
|
vebits_api/__init__.py
|
hnt4499/vebits-api
|
932ff4bd9abc493f225d5b7f0b5f1767008b725a
|
[
"MIT"
] | null | null | null |
vebits_api/__init__.py
|
hnt4499/vebits-api
|
932ff4bd9abc493f225d5b7f0b5f1767008b725a
|
[
"MIT"
] | null | null | null |
vebits_api/__init__.py
|
hnt4499/vebits-api
|
932ff4bd9abc493f225d5b7f0b5f1767008b725a
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import
# from vebits_api.vebits_api import *
from . import bbox_util
from . import detector_util
from . import im_util
from . import labelmap_util
from . import others_util
from . import vis_util
from . import xml_util
__version__ = "1.1.4"
| 18.466667
| 38
| 0.787004
| 43
| 277
| 4.651163
| 0.395349
| 0.35
| 0.42
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012876
| 0.158845
| 277
| 14
| 39
| 19.785714
| 0.845494
| 0.126354
| 0
| 0
| 0
| 0
| 0.020833
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.888889
| 0
| 0.888889
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
e77ecac1266226391d734cb0c591c5dea573a906
| 25
|
py
|
Python
|
backfillz/example/__init__.py
|
WarwickCIM/backfillz-py
|
99c5a685334070cd0836a9df57f7a1a95ae6174d
|
[
"MIT"
] | 1
|
2021-09-09T12:11:51.000Z
|
2021-09-09T12:11:51.000Z
|
backfillz/example/__init__.py
|
WarwickCIM/backfillz-py
|
99c5a685334070cd0836a9df57f7a1a95ae6174d
|
[
"MIT"
] | 18
|
2021-03-19T13:49:31.000Z
|
2021-09-13T14:01:19.000Z
|
backfillz/example/__init__.py
|
WarwickCIM/backfillz-py
|
99c5a685334070cd0836a9df57f7a1a95ae6174d
|
[
"MIT"
] | null | null | null |
"""example namespace."""
| 12.5
| 24
| 0.64
| 2
| 25
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 25
| 1
| 25
| 25
| 0.695652
| 0.72
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e78fe535098bdc5ab6fa6eb28eb96d56c48658a6
| 2,419
|
py
|
Python
|
datasets/transforms/imagenet.py
|
xyupeng/ContrastiveCrop
|
305ff6d06f7e81a5a9f7f80480d81adc11436f9b
|
[
"MIT"
] | 148
|
2022-02-07T18:11:26.000Z
|
2022-03-31T09:04:32.000Z
|
datasets/transforms/imagenet.py
|
xyupeng/ContrastiveCrop
|
305ff6d06f7e81a5a9f7f80480d81adc11436f9b
|
[
"MIT"
] | 5
|
2022-03-09T11:53:55.000Z
|
2022-03-31T12:33:08.000Z
|
datasets/transforms/imagenet.py
|
xyupeng/ContrastiveCrop
|
305ff6d06f7e81a5a9f7f80480d81adc11436f9b
|
[
"MIT"
] | 11
|
2022-02-12T00:10:04.000Z
|
2022-03-30T11:34:59.000Z
|
from torchvision import transforms
from .ContrastiveCrop import ContrastiveCrop
from .misc import MultiViewTransform, CCompose, GaussianBlur
def imagenet_pretrain_rcrop(mean=None, std=None):
trans_list = [
transforms.RandomResizedCrop(size=224, scale=(0.2, 1.0)),
transforms.RandomHorizontalFlip(p=0.5),
transforms.RandomApply([
transforms.ColorJitter(0.4, 0.4, 0.4, 0.1)
], p=0.8),
transforms.RandomGrayscale(p=0.2),
transforms.RandomApply([GaussianBlur([0.1, 2.0])], p=0.5),
transforms.ToTensor(),
transforms.Normalize(mean=mean, std=std),
]
transform = transforms.Compose(trans_list)
transform = MultiViewTransform(transform, num_views=2)
return transform
def imagenet_pretrain_ccrop(alpha=0.6, mean=None, std=None):
trans_list = [
ContrastiveCrop(alpha=alpha, size=224, scale=(0.2, 1.0)),
transforms.RandomHorizontalFlip(p=0.5),
transforms.RandomApply([
transforms.ColorJitter(0.4, 0.4, 0.4, 0.1)
], p=0.8),
transforms.RandomGrayscale(p=0.2),
transforms.RandomApply([GaussianBlur([0.1, 2.0])], p=0.5),
transforms.ToTensor(),
transforms.Normalize(mean=mean, std=std),
]
transform = CCompose(trans_list)
transform = MultiViewTransform(transform, num_views=2)
return transform
def imagenet_linear_train(mean=None, std=None):
trans = transforms.Compose([
transforms.RandomResizedCrop(size=224),
transforms.RandomHorizontalFlip(p=0.5),
transforms.ToTensor(),
transforms.Normalize(mean=mean, std=std),
])
return trans
def imagenet_val(mean=None, std=None):
trans = transforms.Compose([
transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),
transforms.Normalize(mean=mean, std=std),
])
return trans
def imagenet_eval_boxes(mean=None, std=None):
trans = transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize(mean=mean, std=std),
])
return trans
def imagenet_supervised_train(normalize):
trans = transforms.Compose([
transforms.RandomResizedCrop(size=224),
transforms.RandomHorizontalFlip(),
transforms.ColorJitter(0.3, 0.3, 0.3),
transforms.ToTensor(),
normalize,
])
return trans
| 31.012821
| 66
| 0.65647
| 275
| 2,419
| 5.712727
| 0.192727
| 0.011458
| 0.011458
| 0.04774
| 0.756843
| 0.756843
| 0.726289
| 0.726289
| 0.716741
| 0.539784
| 0
| 0.044257
| 0.215378
| 2,419
| 77
| 67
| 31.415584
| 0.783456
| 0
| 0
| 0.676923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.092308
| false
| 0
| 0.046154
| 0
| 0.230769
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 4
|
e7bbd72335150d90f4173214c608b012d6543c7b
| 5,789
|
py
|
Python
|
test_app.py
|
skpaterson/table-setting
|
32e0c93895b9ca514271f8319c166c234d598049
|
[
"Apache-2.0"
] | 2
|
2018-08-06T13:25:01.000Z
|
2018-08-15T15:10:29.000Z
|
test_app.py
|
skpaterson/table-setting
|
32e0c93895b9ca514271f8319c166c234d598049
|
[
"Apache-2.0"
] | null | null | null |
test_app.py
|
skpaterson/table-setting
|
32e0c93895b9ca514271f8319c166c234d598049
|
[
"Apache-2.0"
] | 2
|
2018-08-07T14:41:34.000Z
|
2018-10-03T15:19:36.000Z
|
import json
import pytest
from run_app import app, database
def setup_module():
with app.test_request_context():
database.drop_all()
database.create_all()
def teardown_module():
with app.test_request_context():
database.drop_all()
@pytest.fixture
def client():
return app.test_client()
def test_get_forks(client):
resp = client.get('/forks')
assert resp.status_code == 200
assert len(json.loads(resp.data)) == 0
def test_create_read_delete_fork(client):
resp = client.post('/forks', data=json.dumps({'name': 'forky', 'prongs': 8}),
headers={'content-type': 'application/json'})
assert resp.status_code == 201
response_data = json.loads(resp.data)
assert response_data['name'] == 'forky'
assert response_data['prongs'] == 8
# we now also have an ID
fork_id = response_data['id']
# check our fork is there
resp = client.get('/forks')
assert resp.status_code == 200
assert len(json.loads(resp.data)) == 1
# confirm we can get the fork using the ID
resp = client.get('/forks/%s' % fork_id)
assert resp.status_code == 200
response_data = json.loads(resp.data)
assert response_data['name'] == 'forky'
assert response_data['prongs'] == 8
assert response_data['id'] == fork_id
# now delete our fork
resp = client.delete('/forks/%s' % fork_id)
assert resp.status_code == 204
# confirm our fork is deleted
resp = client.get('/forks')
assert resp.status_code == 200
assert len(json.loads(resp.data)) == 0
def test_create_update_delete_fork(client):
resp = client.post('/forks', data=json.dumps({'name': 'forky2', 'prongs': 3}),
headers={'content-type': 'application/json'})
assert resp.status_code == 201
response_data = json.loads(resp.data)
assert response_data['name'] == 'forky2'
assert response_data['prongs'] == 3
fork_id = response_data['id']
# now let's update our fork
resp = client.put('/forks/%s' % fork_id, data=json.dumps({'name': 'forky2', 'prongs': 4}),
headers={'content-type': 'application/json'})
assert resp.status_code == 204
assert resp.data == b''
resp = client.get('/forks/%s' % fork_id)
response_data = json.loads(resp.data)
assert response_data['name'] == 'forky2'
# ensure our prongs are correct
assert response_data['prongs'] == 4
resp = client.delete('/forks/%s' % fork_id)
assert resp.status_code == 204
def test_create_multiple_forks(client):
resp = client.post('/forks', data=json.dumps({'name': 'first fork', 'prongs': 100}),
headers={'content-type': 'application/json'})
assert resp.status_code == 201
response_data = json.loads(resp.data)
assert response_data['name'] == 'first fork'
assert response_data['prongs'] == 100
first_id = response_data['id']
resp = client.post('/forks', data=json.dumps({'name': 'second fork', 'prongs': 50}),
headers={'content-type': 'application/json'})
assert resp.status_code == 201
response_data = json.loads(resp.data)
assert response_data['name'] == 'second fork'
assert response_data['prongs'] == 50
second_id = response_data['id']
resp = client.get('/forks')
assert resp.status_code == 200
assert len(json.loads(resp.data)) == 2
# now clean up
resp = client.delete('/forks/%s' % first_id)
assert resp.status_code == 204
resp = client.delete('/forks/%s' % second_id)
assert resp.status_code == 204
def test_non_existing_fork_fails(client):
bad_fork = 'not-existing-fork-id'
resp = client.get('/forks/%s' % bad_fork)
assert resp.status_code == 404
assert json.loads(resp.data)["message"] == "Fork with id %s not found" % bad_fork
def test_creation_fails_invalid_schema(client):
resp = client.post('/forks', data=json.dumps({'badname': 'first fork', 'prongs': 100}),
headers={'content-type': 'application/json'})
assert resp.status_code == 400
response_data = json.loads(resp.data)
assert response_data == {'errors': {'name': "'name' is a required property"},
'message': 'Input payload validation failed'}
resp = client.post('/forks', data=json.dumps({'name': 'first fork', 'badprongs': 100}),
headers={'content-type': 'application/json'})
assert resp.status_code == 400
response_data = json.loads(resp.data)
assert response_data == {'errors': {'prongs': "'prongs' is a required property"},
'message': 'Input payload validation failed'}
def test_update_fails_invalid_schema(client):
resp = client.post('/forks', data=json.dumps({'name': 'puttyfork', 'prongs': 3}),
headers={'content-type': 'application/json'})
assert resp.status_code == 201
fork_id = json.loads(resp.data)['id']
# now let's break our fork
resp = client.put('/forks/%s' % fork_id, data=json.dumps({'badname': 'forky2', 'prongs': 4}),
headers={'content-type': 'application/json'})
assert resp.status_code == 400
response_data = json.loads(resp.data)
assert response_data == {'errors': {'name': "'name' is a required property"},
'message': 'Input payload validation failed'}
resp = client.put('/forks/%s' % fork_id, data=json.dumps({'name': 'forky2', 'badprongs': 4}),
headers={'content-type': 'application/json'})
assert resp.status_code == 400
response_data = json.loads(resp.data)
assert response_data == {'errors': {'prongs': "'prongs' is a required property"},
'message': 'Input payload validation failed'}
| 40.201389
| 97
| 0.627742
| 743
| 5,789
| 4.749664
| 0.144011
| 0.105412
| 0.090677
| 0.113347
| 0.79881
| 0.751771
| 0.727402
| 0.716634
| 0.686313
| 0.65741
| 0
| 0.021244
| 0.219382
| 5,789
| 144
| 98
| 40.201389
| 0.759681
| 0.039558
| 0
| 0.605263
| 0
| 0
| 0.199964
| 0
| 0
| 0
| 0
| 0
| 0.377193
| 1
| 0.087719
| false
| 0
| 0.026316
| 0.008772
| 0.122807
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
| 4
|
e7cb2f4249ac41448fb5f7fd2ea9a36f59b2ea42
| 396
|
py
|
Python
|
src/lib/utils/__init__.py
|
gngdb/ROMP
|
a940af92e266530f4fe65807ab5920f0b4246511
|
[
"Apache-2.0"
] | null | null | null |
src/lib/utils/__init__.py
|
gngdb/ROMP
|
a940af92e266530f4fe65807ab5920f0b4246511
|
[
"Apache-2.0"
] | null | null | null |
src/lib/utils/__init__.py
|
gngdb/ROMP
|
a940af92e266530f4fe65807ab5920f0b4246511
|
[
"Apache-2.0"
] | null | null | null |
from .rot_6D import rot6D_to_angular
from .util import get_remove_keys, reorganize_items, AverageMeter, get_image_cut_box,normalize_kps, BHWC_to_BCHW, rotation_matrix_to_angle_axis,\
batch_rodrigues, AverageMeter_Dict, transform_rot_representation, save_obj, save_yaml, save_json
from .train_utils import load_model, copy_state_dict
from .center_utils import process_gt_center
| 79.2
| 145
| 0.835859
| 59
| 396
| 5.101695
| 0.728814
| 0.07309
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005731
| 0.118687
| 396
| 5
| 146
| 79.2
| 0.856734
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e7ce1530dd6bf7aa6849527e99bbf001c21f54df
| 6,595
|
py
|
Python
|
pygsti/modelpacks/smq2Q_XYI2.py
|
colibri-coruscans/pyGSTi
|
da54f4abf668a28476030528f81afa46a1fbba33
|
[
"Apache-2.0"
] | 73
|
2016-01-28T05:02:05.000Z
|
2022-03-30T07:46:33.000Z
|
pygsti/modelpacks/smq2Q_XYI2.py
|
colibri-coruscans/pyGSTi
|
da54f4abf668a28476030528f81afa46a1fbba33
|
[
"Apache-2.0"
] | 113
|
2016-02-25T15:32:18.000Z
|
2022-03-31T13:18:13.000Z
|
pygsti/modelpacks/smq2Q_XYI2.py
|
colibri-coruscans/pyGSTi
|
da54f4abf668a28476030528f81afa46a1fbba33
|
[
"Apache-2.0"
] | 41
|
2016-03-15T19:32:07.000Z
|
2022-02-16T10:22:05.000Z
|
"""
A standard multi-qubit gate set module.
Variables for working with the a model containing Idle, X(pi/2) and Y(pi/2) gates.
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights
# in this software.
# 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 or in the LICENSE file in the root pyGSTi directory.
#***************************************************************************************************
from collections import OrderedDict
from pygsti.modelpacks._modelpack import GSTModelPack, RBModelPack
class _Module(GSTModelPack, RBModelPack):
description = "Idle, X(pi/2), and Y(pi/2) gates"
gates = [(), ('Gxpi2', 1), ('Gypi2', 1)]
_sslbls = (0, 1)
_germs = [((), ), (('Gxpi2', 1), ), (('Gypi2', 1), ), (('Gxpi2', 1), ('Gypi2', 1)), (('Gxpi2', 1), ('Gypi2', 1), ()), (('Gxpi2', 1), (), ('Gypi2', 1)),
(('Gxpi2', 1), (), ()), (('Gypi2', 1), (), ()), (('Gxpi2', 1), ('Gxpi2', 1), (), ('Gypi2', 1)), (('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ()),
(('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1))]
_germs_lite = [((), ), (('Gxpi2', 1), ), (('Gypi2', 1), ), (('Gxpi2', 1), ('Gypi2', 1)), (('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1))]
_fiducials = [(), (('Gxpi2', 1), ), (('Gypi2', 1), ), (('Gxpi2', 1), ('Gxpi2', 1))]
_prepfiducials = [(), (('Gxpi2', 1), ), (('Gypi2', 1), ), (('Gxpi2', 1), ('Gxpi2', 1))]
_measfiducials = [(), (('Gxpi2', 1), ), (('Gypi2', 1), ), (('Gxpi2', 1), ('Gxpi2', 1))]
_clifford_compilation = OrderedDict([('Gc0c0', [(), (), (), (), (), (), ()]),
('Gc0c1', [('Gypi2', 1), ('Gxpi2', 1), (), (), (), (), ()]),
('Gc0c2', [('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ()]),
('Gc0c3', [('Gxpi2', 1), ('Gxpi2', 1), (), (), (), (), ()]),
('Gc0c4', [('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ()]),
('Gc0c5', [('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), (), (), ()]),
('Gc0c6', [('Gypi2', 1), ('Gypi2', 1), (), (), (), (), ()]),
('Gc0c7', [('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gxpi2', 1), (), (), ()]),
('Gc0c8', [('Gxpi2', 1), ('Gypi2', 1), (), (), (), (), ()]),
('Gc0c9', [('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), (), (), ()]),
('Gc0c10', [('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), (), (), ()]),
('Gc0c11', [('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), (), (), ()]),
('Gc0c12', [('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), (), (), (), ()]),
('Gc0c13', [('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), (), (), (), ()]),
('Gc0c14', [('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1)]),
('Gc0c15', [('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), (), (), (), ()]),
('Gc0c16', [('Gxpi2', 1), (), (), (), (), (), ()]),
('Gc0c17', [('Gxpi2', 1), ('Gypi2', 1), ('Gxpi2', 1), (), (), (), ()]),
('Gc0c18', [('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), (), ()]),
('Gc0c19', [('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), (), (), (), ()]),
('Gc0c20', [('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gypi2', 1), ('Gxpi2', 1), (), ()]),
('Gc0c21', [('Gypi2', 1), (), (), (), (), (), ()]),
('Gc0c22', [('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), (), ()]),
('Gc0c23', [('Gxpi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), ('Gxpi2', 1), (), ()])])
global_fidpairs = [(0, 1), (2, 0), (2, 1), (3, 3)]
_pergerm_fidpairsdict = {
(('Gxpi2', 1), ): [(1, 2), (2, 2), (3, 1), (3, 3)],
((), ): [(1, 1), (2, 2), (3, 3)],
(('Gypi2', 1), ): [(0, 1), (1, 1), (2, 0), (3, 0)],
(('Gxpi2', 1), ('Gypi2', 1)): [(0, 1), (2, 0), (2, 1), (3, 3)],
(('Gypi2', 1), (), ()): [(0, 1), (1, 1), (2, 0), (3, 0)],
(('Gxpi2', 1), (), ('Gypi2', 1)): [(0, 1), (2, 0), (2, 1), (3, 3)],
(('Gxpi2', 1), ('Gypi2', 1), ()): [(0, 1), (2, 0), (2, 1), (3, 3)],
(('Gxpi2', 1), (), ()): [(1, 2), (2, 2), (3, 1), (3, 3)],
(('Gxpi2', 1), ('Gxpi2', 1), (), ('Gypi2', 1)): [(0, 0), (1, 0), (1, 1), (2, 1), (3, 2), (3, 3)],
(('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1), ()): [(0, 2), (1, 0), (1, 1), (2, 0), (2, 2), (3, 3)],
(('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gxpi2', 1), ('Gypi2', 1), ('Gypi2', 1)): [(0, 0), (0, 1), (0, 2), (1, 2)]
}
global_fidpairs_lite = [(0, 4), (0, 5), (1, 0), (2, 0), (2, 4), (2, 5), (3, 0), (4, 2), (4, 4), (5, 1), (5, 2),
(5, 3)]
_pergerm_fidpairsdict_lite = {
(('Gxpi2', 1), ): [(1, 1), (3, 4), (4, 2), (5, 5)],
((), ): [(0, 3), (1, 1), (5, 5)],
(('Gypi2', 1), ): [(0, 2), (2, 2), (2, 4), (4, 4)],
(('Gxpi2', 1), ('Gypi2', 1)): [(0, 0), (0, 4), (2, 5), (5, 4)],
(('Gxpi2', 1), ('Gxpi2', 1), ('Gypi2', 1)): [(1, 3), (1, 4), (3, 5), (5, 0), (5, 4), (5, 5)]
}
def _target_model(self, sslbls, **kwargs): # Note: same as smq2Q_XYI1 -- (this entire module may be redundant)
return self._build_explicit_target_model(
sslbls, [(), ('Gxpi2', 1), ('Gypi2', 1)],
['I({0})', 'X(pi/2,{0})', 'Y(pi/2,{0})'],
effect_labels=['0', '1'], effect_expressions=['0', '1'], **kwargs)
import sys
sys.modules[__name__] = _Module()
| 65.95
| 157
| 0.343594
| 708
| 6,595
| 3.153955
| 0.201977
| 0.228392
| 0.191223
| 0.198836
| 0.440215
| 0.434841
| 0.377071
| 0.368115
| 0.264666
| 0.235558
| 0
| 0.128025
| 0.31069
| 6,595
| 99
| 158
| 66.616162
| 0.363176
| 0.129947
| 0
| 0
| 0
| 0
| 0.172667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014925
| false
| 0
| 0.044776
| 0.014925
| 0.283582
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e7e0bf0cd2a2acd941174ab61812298b0530cb35
| 242
|
py
|
Python
|
da/lib/base.py
|
yagrawal-sbu/distalgo
|
10e6db89b7db05d3b076dcf9295ce4f189558323
|
[
"MIT"
] | null | null | null |
da/lib/base.py
|
yagrawal-sbu/distalgo
|
10e6db89b7db05d3b076dcf9295ce4f189558323
|
[
"MIT"
] | null | null | null |
da/lib/base.py
|
yagrawal-sbu/distalgo
|
10e6db89b7db05d3b076dcf9295ce4f189558323
|
[
"MIT"
] | null | null | null |
# -*- generated by 1.0.9 -*-
import da
_config_object = {}
class Node_(da.NodeProcess):
def __init__(self, procimpl, props):
super().__init__(procimpl, props)
self._events.extend([])
def run(self):
return 0
| 18.615385
| 41
| 0.607438
| 30
| 242
| 4.5
| 0.733333
| 0.192593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021858
| 0.243802
| 242
| 12
| 42
| 20.166667
| 0.715847
| 0.107438
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.125
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
99af1b5a023184e08e7334ab69d6f457b316c5a4
| 470
|
py
|
Python
|
app/models/__init__.py
|
attachemd/backend_v03
|
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
|
[
"MIT"
] | null | null | null |
app/models/__init__.py
|
attachemd/backend_v03
|
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
|
[
"MIT"
] | null | null | null |
app/models/__init__.py
|
attachemd/backend_v03
|
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
|
[
"MIT"
] | null | null | null |
from .user import User
# from .meta import Base
# from .user import User
# from .user_role import UserRole
# from .role import Role
# from sqlalchemy.ext.declarative import declarative_base
# from sqlalchemy.orm import scoped_session, sessionmaker
#
# DBSession = scoped_session(sessionmaker())
# Base = declarative_base()
#
#
# def initialize_sql(engine):
# DBSession.configure(bind=engine)
# Base.metadata.bind = engine
# Base.metadata.create_all(engine)
| 26.111111
| 57
| 0.753191
| 59
| 470
| 5.881356
| 0.40678
| 0.069164
| 0.080692
| 0.103746
| 0.126801
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 470
| 17
| 58
| 27.647059
| 0.8675
| 0.882979
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
99ddd967203f3322d8157fe841f93fd89d642dc5
| 60
|
py
|
Python
|
login.py
|
Etering/testflask
|
0ab41202a98be82b5ed22416a81e96522915985e
|
[
"MIT"
] | null | null | null |
login.py
|
Etering/testflask
|
0ab41202a98be82b5ed22416a81e96522915985e
|
[
"MIT"
] | null | null | null |
login.py
|
Etering/testflask
|
0ab41202a98be82b5ed22416a81e96522915985e
|
[
"MIT"
] | null | null | null |
num = 111
num = 222
num = 333333
num = 333
num4 = 44444
| 6
| 12
| 0.6
| 10
| 60
| 3.6
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.512195
| 0.316667
| 60
| 9
| 13
| 6.666667
| 0.365854
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
99e5156450a939269fc6e329b348ac439c1b68ed
| 85
|
py
|
Python
|
librarypaste/__init__.py
|
yougov/librarypaste
|
740fafcb260f493ca5bbd24afd59d49444c2b2ae
|
[
"MIT"
] | null | null | null |
librarypaste/__init__.py
|
yougov/librarypaste
|
740fafcb260f493ca5bbd24afd59d49444c2b2ae
|
[
"MIT"
] | null | null | null |
librarypaste/__init__.py
|
yougov/librarypaste
|
740fafcb260f493ca5bbd24afd59d49444c2b2ae
|
[
"MIT"
] | 1
|
2022-03-26T09:24:56.000Z
|
2022-03-26T09:24:56.000Z
|
import pkg_resources
__version__ = pkg_resources.require('librarypaste')[0].version
| 21.25
| 62
| 0.823529
| 10
| 85
| 6.4
| 0.7
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012658
| 0.070588
| 85
| 3
| 63
| 28.333333
| 0.797468
| 0
| 0
| 0
| 0
| 0
| 0.141176
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
8203ab30645a04e414979c7b1228eb31758baeb2
| 287
|
py
|
Python
|
task.py
|
Darya-borisenko/2020-2-level-programming-practice
|
045a74144e627e6cae5f63f00581a96241bc802d
|
[
"MIT"
] | 1
|
2021-02-14T09:42:41.000Z
|
2021-02-14T09:42:41.000Z
|
task.py
|
Darya-borisenko/2020-2-level-programming-practice
|
045a74144e627e6cae5f63f00581a96241bc802d
|
[
"MIT"
] | null | null | null |
task.py
|
Darya-borisenko/2020-2-level-programming-practice
|
045a74144e627e6cae5f63f00581a96241bc802d
|
[
"MIT"
] | null | null | null |
"""
На вход подается число n, верните разность n и 21. При этом если n больше 21, верните удвоенную разность.
diff21(19) → 2
diff21(10) → 11
diff21(21) → 0
diff21(50) → 58
diff21(-2) → 23
diff21(-1) → 22
diff21(2) → 19
diff21(0) → 21
diff21(30) → 18
"""
def diff(num):
return 0
| 14.35
| 105
| 0.641115
| 60
| 287
| 3.216667
| 0.533333
| 0.072539
| 0.082902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234513
| 0.212544
| 287
| 19
| 106
| 15.105263
| 0.579646
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
417c8f958604bbd8139d6e46fa51fba41a9f7088
| 11,118
|
py
|
Python
|
test/slicing/test_slice_combiner.py
|
awesome-archive/snorkel
|
d68bf18cf9ee0cec5958ab7802059a0c77c34b9e
|
[
"Apache-2.0"
] | null | null | null |
test/slicing/test_slice_combiner.py
|
awesome-archive/snorkel
|
d68bf18cf9ee0cec5958ab7802059a0c77c34b9e
|
[
"Apache-2.0"
] | null | null | null |
test/slicing/test_slice_combiner.py
|
awesome-archive/snorkel
|
d68bf18cf9ee0cec5958ab7802059a0c77c34b9e
|
[
"Apache-2.0"
] | null | null | null |
import random
import unittest
import torch
from snorkel.slicing import SliceCombinerModule
from snorkel.utils import set_seed
class SliceCombinerTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
set_seed(123)
def test_forward_shape(self):
"""Test that the reweight representation shape matches expected feature size."""
# common case
batch_size = 4
h_dim = 20
num_classes = 2
outputs = {
# Always 2-dim binary outputs
"task_slice:base_ind_head": torch.FloatTensor(batch_size, 2).uniform_(0, 1),
"task_slice:base_pred_transform": torch.FloatTensor(
batch_size, h_dim
).uniform_(0, 1),
"task_slice:base_pred_head": torch.FloatTensor(
batch_size, num_classes
).uniform_(0, 1),
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertEqual(tuple(combined_rep.shape), (batch_size, h_dim))
# edge case (some ones)
batch_size = 1
h_dim = 1
num_classes = 2
outputs = {
# Always 2-dim binary outputs
"task_slice:base_ind_head": torch.FloatTensor(batch_size, 2).uniform_(0, 1),
"task_slice:base_pred_transform": torch.FloatTensor(
batch_size, h_dim
).uniform_(0, 1),
"task_slice:base_pred_head": torch.FloatTensor(
batch_size, num_classes
).uniform_(0, 1),
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertEqual(tuple(combined_rep.shape), (batch_size, h_dim))
# num_classes = 1
batch_size = 1
h_dim = 1
num_classes = 1
outputs = {
# Always 2-dim binary outputs
"task_slice:base_ind_head": torch.FloatTensor(batch_size, 2).uniform_(0, 1),
"task_slice:base_pred_transform": torch.FloatTensor(
batch_size, h_dim
).uniform_(0, 1),
"task_slice:base_pred_head": torch.FloatTensor(
batch_size, num_classes
).uniform_(0, 1),
}
combiner_module = SliceCombinerModule()
with self.assertRaisesRegex(NotImplementedError, "requires output shape"):
combined_rep = combiner_module(outputs)
def test_average_reweighting(self):
"""Test average reweighting (equal weight across two slices)."""
batch_size = 4
h_dim = 20
num_classes = 2
outputs = {
"task_slice:a_ind_head": torch.ones(batch_size, 2) * 10.0,
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4,
"task_slice:a_pred_head": torch.ones(batch_size, num_classes) * 10.0,
"task_slice:b_ind_head": torch.ones(batch_size, 2) * -10.0,
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2,
"task_slice:b_pred_head": torch.ones(batch_size, num_classes) * -10.0,
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertTrue(torch.allclose(combined_rep, torch.ones(batch_size, h_dim) * 3))
def test_average_reweighting_by_ind(self):
"""Test average reweighting by ind (zeros in pred head)."""
batch_size = 4
h_dim = 20
num_classes = 2
outputs = {
"task_slice:a_ind_head": torch.ones(batch_size, 2) * 10.0,
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4,
"task_slice:a_pred_head": torch.zeros(batch_size, num_classes),
"task_slice:b_ind_head": torch.ones(batch_size, 2) * -10.0,
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2,
"task_slice:b_pred_head": torch.zeros(batch_size, num_classes),
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertTrue(torch.allclose(combined_rep, torch.ones(batch_size, h_dim) * 3))
def test_average_reweighting_by_pred_confidence(self):
"""Test average reweighting by pred confidence (zeros in ind head)."""
batch_size = 4
h_dim = 20
num_classes = 2
outputs = {
"task_slice:a_ind_head": torch.zeros(batch_size, 2),
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4,
"task_slice:a_pred_head": torch.ones(batch_size, num_classes) * 5,
"task_slice:b_ind_head": torch.zeros(batch_size, 2),
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2,
"task_slice:b_pred_head": torch.ones(batch_size, num_classes) * 5,
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertTrue(torch.all(combined_rep == torch.ones(batch_size, h_dim) * 3))
# Changing sign of prediction shouldn't change confidence
outputs = {
"task_slice:a_ind_head": torch.zeros(batch_size, 2),
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4,
"task_slice:a_pred_head": torch.ones(batch_size, num_classes) * -5,
"task_slice:b_ind_head": torch.zeros(batch_size, 2),
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2,
"task_slice:b_pred_head": torch.ones(batch_size, num_classes) * 5,
}
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertTrue(torch.allclose(combined_rep, torch.ones(batch_size, h_dim) * 3))
def test_many_slices(self):
"""Test combiner on 100 synthetic generated slices."""
batch_size = 4
h_dim = 20
num_classes = 2
outputs = {}
# Generate 100 slices, half voting in one direction (index i) and
# half in another (index i%2), resulting in averaged weights
for i in range(100):
if i % 2 == 0:
outputs[f"task_slice:{i}_ind_head"] = torch.ones(batch_size, 2) * 20.0
outputs[f"task_slice:{i}_pred_transform"] = (
torch.ones(batch_size, h_dim) * 4
)
outputs[f"task_slice:{i}_pred_head"] = (
torch.ones(batch_size, num_classes) * 20.0
)
else:
outputs[f"task_slice:{i}_ind_head"] = torch.ones(batch_size, 2) * -20.0
outputs[f"task_slice:{i}_pred_transform"] = (
torch.ones(batch_size, h_dim) * 2
)
outputs[f"task_slice:{i}_pred_head"] = (
torch.ones(batch_size, num_classes) * -20.0
)
combiner_module = SliceCombinerModule()
combined_rep = combiner_module(outputs)
self.assertTrue(torch.allclose(combined_rep, torch.ones(batch_size, h_dim) * 3))
def test_combiner_multiclass(self):
"""Test combiner in multiclass setting."""
batch_size = 4
h_dim = 20
num_classes = 10
# For each class, make one class (at random) the maximum score
# For everything else, set to "logit" between [-5, 5]
max_score_indexes_a = [
random.randint(0, num_classes) for _ in range(batch_size)
]
pred_outputs_a = torch.FloatTensor(batch_size, num_classes).uniform_(-5, 5)
pred_outputs_a = pred_outputs_a.scatter_(
# scatter max score (10.0) at indexes
1,
torch.tensor(max_score_indexes_a).unsqueeze(1),
10.0,
)
max_score_indexes_b = [
random.randint(0, num_classes) for _ in range(batch_size)
]
pred_outputs_b = torch.FloatTensor(batch_size, num_classes).uniform_(-5, 5)
pred_outputs_b = pred_outputs_b.scatter_(
# scatter max score (-10.0) at indexes
1,
torch.tensor(max_score_indexes_b).unsqueeze(1),
10.0,
)
outputs = {
"task_slice:a_ind_head": torch.ones(batch_size, 2) * -10.0,
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4,
"task_slice:a_pred_head": pred_outputs_a,
"task_slice:b_ind_head": torch.ones(batch_size, 2) * 10.0,
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2,
"task_slice:b_pred_head": pred_outputs_b,
}
# Ensure smoother temperature for multi-class
combiner_module = SliceCombinerModule()
with self.assertRaisesRegex(NotImplementedError, "more than 2 classes"):
combiner_module(outputs)
def test_temperature(self):
"""Test temperature parameter for attention weights."""
batch_size = 4
h_dim = 20
num_classes = 2
# Add noise to each set of inputs to attention weights
epsilon = 1e-5
outputs = {
"task_slice:a_ind_head": torch.ones(batch_size, 2) * 10.0
+ torch.FloatTensor(batch_size, 2).normal_(0.0, epsilon),
"task_slice:a_pred_transform": torch.ones(batch_size, h_dim) * 4
+ torch.FloatTensor(batch_size, h_dim).normal_(0.0, epsilon),
"task_slice:a_pred_head": torch.ones(batch_size, num_classes) * 10.0
+ torch.FloatTensor(batch_size, num_classes).normal_(0.0, epsilon),
"task_slice:b_ind_head": torch.ones(batch_size, 2) * -10.0
+ torch.FloatTensor(batch_size, 2).normal_(0.0, epsilon),
"task_slice:b_pred_transform": torch.ones(batch_size, h_dim) * 2
+ torch.FloatTensor(batch_size, h_dim).normal_(0.0, epsilon),
"task_slice:b_pred_head": torch.ones(batch_size, num_classes) * -10.0
+ torch.FloatTensor(batch_size, num_classes).normal_(0.0, epsilon),
}
# With larger temperature, attention is smoother and reweighted rep is closer
# closer to true average, despite noise
combiner_module = SliceCombinerModule(temperature=1e5)
combined_rep = combiner_module(outputs)
self.assertTrue(torch.allclose(combined_rep, torch.ones(batch_size, h_dim) * 3))
# With (impractically) small temperature, attention peaks/biases towards in
# some direction of noisy attention weights
combiner_module = SliceCombinerModule(temperature=1e-15)
combined_rep = combiner_module(outputs)
# Check number of elements that match either of the original weights
# Every example should either match 2 or 4
isclose_four = torch.isclose(
combined_rep, torch.ones(batch_size, h_dim) * 2, atol=1e-4
)
isclose_two = torch.isclose(
combined_rep, torch.ones(batch_size, h_dim) * 4, atol=1e-4
)
num_matching_original = torch.sum(isclose_four) + torch.sum(isclose_two)
self.assertEqual(num_matching_original, batch_size * h_dim)
if __name__ == "__main__":
unittest.main()
| 41.796992
| 88
| 0.617107
| 1,414
| 11,118
| 4.548798
| 0.126591
| 0.110541
| 0.086909
| 0.117537
| 0.753887
| 0.732587
| 0.724347
| 0.705224
| 0.6875
| 0.677705
| 0
| 0.026892
| 0.280896
| 11,118
| 265
| 89
| 41.954717
| 0.777611
| 0.118996
| 0
| 0.576355
| 0
| 0
| 0.131122
| 0.126194
| 0
| 0
| 0
| 0
| 0.054187
| 1
| 0.039409
| false
| 0
| 0.024631
| 0
| 0.068966
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
| 4
|
4185db69efc54110f91b4f5d8206d8accd1d39d9
| 282
|
py
|
Python
|
测试/pytest-codes/updown_function.py
|
hhyluor/Code_Repository-
|
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
|
[
"MIT"
] | null | null | null |
测试/pytest-codes/updown_function.py
|
hhyluor/Code_Repository-
|
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
|
[
"MIT"
] | null | null | null |
测试/pytest-codes/updown_function.py
|
hhyluor/Code_Repository-
|
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
|
[
"MIT"
] | null | null | null |
# setup_function 每个测试函数执行之前被调用
# teardown_function 每个测试函数执行之后被调用
def setup_function():
print('setup function')
def teardown_function():
print('teardown function')
def test_1():
print('test 1')
def test_2():
print('test 2')
def test_3():
print('test 3')
| 12.818182
| 33
| 0.673759
| 36
| 282
| 5.083333
| 0.305556
| 0.213115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026432
| 0.195035
| 282
| 21
| 34
| 13.428571
| 0.779736
| 0.212766
| 0
| 0
| 0
| 0
| 0.223744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
41a7b9f2995b0ebf050c75c05e74f23fd55ff03a
| 93
|
py
|
Python
|
hexipro-backend/hexipro/tiles/apps.py
|
eleon479/hexipro
|
e46bcc1a83a6c796c7643ba7d1db9a60d0ea60e3
|
[
"MIT"
] | 1
|
2021-01-11T03:02:02.000Z
|
2021-01-11T03:02:02.000Z
|
hexipro-backend/hexipro/tiles/apps.py
|
eleon479/hexipro
|
e46bcc1a83a6c796c7643ba7d1db9a60d0ea60e3
|
[
"MIT"
] | null | null | null |
hexipro-backend/hexipro/tiles/apps.py
|
eleon479/hexipro
|
e46bcc1a83a6c796c7643ba7d1db9a60d0ea60e3
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class TilesConfig(AppConfig):
name = "hexipro.tiles"
| 15.5
| 33
| 0.752688
| 11
| 93
| 6.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.897436
| 0
| 0
| 0
| 0
| 0
| 0.139785
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
68b7547c8676b59086b57bf563c99879924176c1
| 73
|
py
|
Python
|
pyjobs_web/pyjobsweb/controllers/__init__.py
|
pyjobs/web
|
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
|
[
"MIT"
] | 8
|
2016-01-29T13:06:26.000Z
|
2020-11-02T07:23:57.000Z
|
pyjobs_web/pyjobsweb/controllers/__init__.py
|
pyjobs/web
|
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
|
[
"MIT"
] | 18
|
2016-02-11T08:17:13.000Z
|
2022-03-02T14:53:38.000Z
|
pyjobs_web/pyjobsweb/controllers/__init__.py
|
pyjobs/web
|
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
|
[
"MIT"
] | 5
|
2016-02-05T08:57:12.000Z
|
2018-01-15T08:19:43.000Z
|
# -*- coding: utf-8 -*-
"""Controllers for the pyjobsweb application."""
| 24.333333
| 48
| 0.643836
| 8
| 73
| 5.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015873
| 0.136986
| 73
| 2
| 49
| 36.5
| 0.730159
| 0.890411
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68bb9bf8e651ba05247579ea0697c86eccbb5f4c
| 175
|
py
|
Python
|
run.py
|
CooperComputationalCaucus/gaussian_io
|
9986cdaadcb105fd3fc95aca0026f4c572547fa5
|
[
"MIT"
] | null | null | null |
run.py
|
CooperComputationalCaucus/gaussian_io
|
9986cdaadcb105fd3fc95aca0026f4c572547fa5
|
[
"MIT"
] | null | null | null |
run.py
|
CooperComputationalCaucus/gaussian_io
|
9986cdaadcb105fd3fc95aca0026f4c572547fa5
|
[
"MIT"
] | null | null | null |
from gaussian_io import read_out
output_test = read_out('./gaussian_io/test/output_std.out')
output_test.parser_optimisation()
a = output_test.get_opt_step(step=1)
print('')
| 25
| 59
| 0.8
| 29
| 175
| 4.448276
| 0.586207
| 0.232558
| 0.20155
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006173
| 0.074286
| 175
| 6
| 60
| 29.166667
| 0.790123
| 0
| 0
| 0
| 0
| 0
| 0.188571
| 0.188571
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0.2
| 1
| 0
| 0
| null | 1
| 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
| 4
|
ec54d7ea3be2db27c6ba5047355e85c070b8d18c
| 629
|
py
|
Python
|
clients/python/client.py
|
cdrappi/rnr
|
9cb64cbf4fbaf866e3289ce51fc1b799bd918799
|
[
"Apache-2.0"
] | 1
|
2020-02-08T03:52:00.000Z
|
2020-02-08T03:52:00.000Z
|
clients/python/client.py
|
cdrappi/caucus
|
742e95906d0fda375f72bb8db15e359893a4d675
|
[
"Apache-2.0"
] | 4
|
2021-03-10T06:58:04.000Z
|
2022-02-26T23:22:51.000Z
|
clients/python/client.py
|
cdrappi/caucus
|
742e95906d0fda375f72bb8db15e359893a4d675
|
[
"Apache-2.0"
] | null | null | null |
import os
import requests
api_host = os.environ['API_HOST']
class Client:
def __init__(self, jwt: str):
self.jwt = jwt
def get_index():
return requests.get(url=f'{api_host}')
def _login(password: str, **login):
return requests.post(
url=f'{api_host}/',
json={'password': password, **login}
)
def login_with_username(username: str, password: str):
return _login(password, username=username)
def login_with_email(email: str, password: str):
return _login(password, email=email)
def login_with_phone(phone: str, password: str):
return _login(password, phone=phone)
| 17.971429
| 54
| 0.677266
| 85
| 629
| 4.788235
| 0.305882
| 0.068796
| 0.088452
| 0.14742
| 0.243243
| 0.243243
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193959
| 629
| 34
| 55
| 18.5
| 0.802761
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0.421053
| 0.105263
| 0.263158
| 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
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
6b4d7c423c90495f9b76063404a6481be8f18c27
| 140
|
py
|
Python
|
fatf/utils/data/__init__.py
|
So-Cool/fat-forensics
|
6fa252a1d90fe543242ef030a5f8a3f9c9f692fe
|
[
"BSD-3-Clause"
] | 48
|
2019-09-12T04:54:48.000Z
|
2022-02-27T01:49:55.000Z
|
fatf/utils/data/__init__.py
|
So-Cool/fat-forensics
|
6fa252a1d90fe543242ef030a5f8a3f9c9f692fe
|
[
"BSD-3-Clause"
] | 4
|
2019-11-04T00:01:15.000Z
|
2021-01-27T16:35:29.000Z
|
fatf/utils/data/__init__.py
|
So-Cool/fat-forensics
|
6fa252a1d90fe543242ef030a5f8a3f9c9f692fe
|
[
"BSD-3-Clause"
] | 11
|
2019-09-17T13:39:43.000Z
|
2021-07-27T11:04:33.000Z
|
"""
The :mod:`fatf.utils.data` module holds data tools and data sets.
"""
# Author: Kacper Sokol <k.sokol@bristol.ac.uk>
# License: new BSD
| 23.333333
| 65
| 0.692857
| 23
| 140
| 4.217391
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 140
| 5
| 66
| 28
| 0.808333
| 0.914286
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6b6f41e6bc2d788119fc9d347b5bce8491a79913
| 114
|
py
|
Python
|
eagr/server/__init__.py
|
kensho-technologies/eagr
|
fc4a2ec21d22ebc753e194e5644fbbad1ae44dda
|
[
"Apache-2.0"
] | 14
|
2020-03-05T20:25:04.000Z
|
2021-12-18T02:38:33.000Z
|
eagr/server/__init__.py
|
kensho-technologies/eagr
|
fc4a2ec21d22ebc753e194e5644fbbad1ae44dda
|
[
"Apache-2.0"
] | 4
|
2020-05-21T15:02:57.000Z
|
2020-12-03T12:54:20.000Z
|
eagr/server/__init__.py
|
kensho-technologies/eagr
|
fc4a2ec21d22ebc753e194e5644fbbad1ae44dda
|
[
"Apache-2.0"
] | 1
|
2020-08-07T23:13:31.000Z
|
2020-08-07T23:13:31.000Z
|
# Copyright 2020-present Kensho Technologies, LLC.
# @nolint
from .base import GRPCBase, run_grpc_servers # noqa
| 28.5
| 52
| 0.780702
| 15
| 114
| 5.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0.140351
| 114
| 3
| 53
| 38
| 0.846939
| 0.535088
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6b779d103c95f111df0f13f860d47a5a6feb93ed
| 58
|
py
|
Python
|
paraguay/community.py
|
PythonParaguay/paraguay
|
201ffed271a1f3c83ac6e4bd29b0688946968a2a
|
[
"MIT"
] | 4
|
2018-05-31T01:55:13.000Z
|
2018-06-09T12:54:46.000Z
|
paraguay/community.py
|
PythonParaguay/paraguay
|
201ffed271a1f3c83ac6e4bd29b0688946968a2a
|
[
"MIT"
] | null | null | null |
paraguay/community.py
|
PythonParaguay/paraguay
|
201ffed271a1f3c83ac6e4bd29b0688946968a2a
|
[
"MIT"
] | 1
|
2018-06-08T21:35:13.000Z
|
2018-06-08T21:35:13.000Z
|
import webbrowser
webbrowser.open("https://pythonpy.org")
| 19.333333
| 39
| 0.793103
| 7
| 58
| 6.571429
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051724
| 58
| 3
| 39
| 19.333333
| 0.836364
| 0
| 0
| 0
| 0
| 0
| 0.338983
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6b7df59b71f32cfe9b2419fc9dda661dbc523a03
| 133
|
py
|
Python
|
setup.py
|
ejwilson3/qsearch
|
9f966db0f3d54fdaff15f1dd7a0e1d28de55b1b4
|
[
"BSD-3-Clause-LBNL"
] | 20
|
2020-11-16T17:07:31.000Z
|
2022-01-26T11:00:26.000Z
|
setup.py
|
WolfLink/search_compiler
|
efbc02717600beaa083d3afb9b94e34264f637d7
|
[
"BSD-3-Clause-LBNL"
] | 11
|
2020-10-14T17:37:09.000Z
|
2022-01-13T02:32:14.000Z
|
setup.py
|
WolfLink/search_compiler
|
efbc02717600beaa083d3afb9b94e34264f637d7
|
[
"BSD-3-Clause-LBNL"
] | 6
|
2021-04-09T22:38:40.000Z
|
2022-03-13T07:49:40.000Z
|
from setuptools import setup
from pathlib import Path
README = Path('README.md').read_text()
setup(
long_description=README,
)
| 14.777778
| 38
| 0.75188
| 18
| 133
| 5.444444
| 0.666667
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150376
| 133
| 8
| 39
| 16.625
| 0.867257
| 0
| 0
| 0
| 0
| 0
| 0.067669
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
6b7e26a7479611784c19c367132fa760d31510d7
| 1,615
|
py
|
Python
|
cav_box/kafka/src/client.py
|
itabrl/cav-education
|
70a359d0ef604de3ddf48fcb1e72e28039a51cf0
|
[
"Apache-2.0"
] | null | null | null |
cav_box/kafka/src/client.py
|
itabrl/cav-education
|
70a359d0ef604de3ddf48fcb1e72e28039a51cf0
|
[
"Apache-2.0"
] | null | null | null |
cav_box/kafka/src/client.py
|
itabrl/cav-education
|
70a359d0ef604de3ddf48fcb1e72e28039a51cf0
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
import socket
import binascii as ba
from binascii import hexlify, unhexlify
TCP_IP = '127.0.0.1'
TCP_PORT = 8882
BUFFER_SIZE = 1024
# sample BSMs: select one for testing
# txt=b"001480CF4B950C400022D2666E923D1EA6D4E28957BD55FFFFF001C758FD7E67D07F7FFF8000000002020218E1C1004A40196FBC042210115C030EF1408801021D4074CE7E1848101C5C0806E8E1A50101A84056EE8A1AB4102B840A9ADA21B9010259C08DEE1C1C560FFDDBFC070C0222210018BFCE309623120FFE9BFBB10C8238A0FFDC3F987114241610009BFB7113024780FFAC3F95F13A26800FED93FDD51202C5E0FE17BF9B31202FBAFFFEC87FC011650090019C70808440C83207873800000000001095084081C903447E31C12FC0"
txt=b"0014251d59d162dad7de266e9a7d1ea6d4220974ffffffff8ffff080fdfa1fa1007fff0000640fa0"
# txt=b"0012815338033020204bda0d4cdcf8143d4dc48811860224164802280008002297d4bc80a0a0a9825825923a90b2f2e418986f41b7006480602403812020084015480010004521d9f001414160c7c42a1879858619502a42a060e927100662000400105be6bf41c8aded5816ebc050507dcb860ec57aead5079e02828900890001000417223a50728b750f9c6ea9e8ae480a0a0f68746ad447c002828900a0880704404020803b9000200062b68d5305d1f9269a725027d8352f72867d6c82403340004000c53f5b761abbb7d35d3c0813ec1a3baac16bfc048050240301202008402208001000310fe55f849acd608d8ace136b440000dfe4808880008002086365c0017d1612eb34026067404895390907bd848050440302201c100024000200000090026180a0a0f2852600140001000000169fc1585bd1da000b00008000000a3bb2f439459a80060000400000046d55c416c67f40"
hexed = hexlify(txt)
print(hexed)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
s.send(hexed)
data = s.recv(BUFFER_SIZE)
s.close()
print("received data:", data)
| 57.678571
| 695
| 0.925077
| 76
| 1,615
| 19.552632
| 0.605263
| 0.008075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.577492
| 0.037152
| 1,615
| 27
| 696
| 59.814815
| 0.378135
| 0.73065
| 0
| 0
| 0
| 0
| 0.238979
| 0.185615
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0.133333
| 0
| 0
| 1
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6b944d3a4924ec77fe9d8ae602cfd5401958c63b
| 1,643
|
py
|
Python
|
tools/pythonpkg/tests/fast/pandas/test_same_name.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 2,816
|
2018-06-26T18:52:52.000Z
|
2021-04-06T10:39:15.000Z
|
tools/pythonpkg/tests/fast/pandas/test_same_name.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 1,310
|
2021-04-06T16:04:52.000Z
|
2022-03-31T13:52:53.000Z
|
tools/pythonpkg/tests/fast/pandas/test_same_name.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 270
|
2021-04-09T06:18:28.000Z
|
2022-03-31T11:55:37.000Z
|
import pytest
import duckdb
import pandas as pd
class TestMultipleColumnsSameName(object):
def test_multiple_columns_with_same_name(self, duckdb_cursor):
df = pd.DataFrame({'a': [1, 2, 3, 4], 'b': [5, 6, 7, 8], 'd': [9, 10, 11, 12]})
df = df.rename(columns={ df.columns[1]: "a" })
df_original = df.copy(True)
con = duckdb.connect()
con.register('df_view', df)
assert con.execute("DESCRIBE df_view;").fetchall() == [('a', 'BIGINT', 'YES', None, None, None), ('a_1', 'BIGINT', 'YES', None, None, None), ('d', 'BIGINT', 'YES', None, None, None)]
assert con.execute("select a_1 from df_view;").fetchall() == [(5,), (6,), (7,), (8,)]
assert con.execute("select a from df_view;").fetchall() == [(1,), (2,), (3,), (4,)]
# Verify we are not changing original dataframe
assert df_original.equals(df)
def test_multiple_columns_with_same_name_2(self, duckdb_cursor):
df = pd.DataFrame({'a': [1, 2, 3, 4], 'b': [5, 6, 7, 8], 'a_1': [9, 10, 11, 12]})
df = df.rename(columns={ df.columns[1]: "a_1" })
con = duckdb.connect()
con.register('df_view', df)
assert con.execute("DESCRIBE df_view;").fetchall() == [('a', 'BIGINT', 'YES', None, None, None), ('a_1', 'BIGINT', 'YES', None, None, None), ('a_1_1', 'BIGINT', 'YES', None, None, None)]
assert con.execute("select a_1 from df_view;").fetchall() == [(5,), (6,), (7,), (8,)]
assert con.execute("select a from df_view;").fetchall() == [(1,), (2,), (3,), (4,)]
assert con.execute("select a_1_1 from df_view;").fetchall() == [(9,), (10,), (11,), (12,)]
| 54.766667
| 194
| 0.566038
| 242
| 1,643
| 3.702479
| 0.239669
| 0.107143
| 0.125
| 0.113839
| 0.805804
| 0.784598
| 0.756696
| 0.678571
| 0.678571
| 0.678571
| 0
| 0.050497
| 0.204504
| 1,643
| 29
| 195
| 56.655172
| 0.635042
| 0.027389
| 0
| 0.347826
| 0
| 0
| 0.154135
| 0
| 0
| 0
| 0
| 0
| 0.347826
| 1
| 0.086957
| false
| 0
| 0.130435
| 0
| 0.26087
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 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
| 4
|
6ba6d233f2a02f123e16a975a2e196346ec7e6e6
| 100
|
py
|
Python
|
level-3/task-1/task-1-3-2.py
|
avedensky/python-rush-tasks
|
61410816dbb55cce3b518f8d76799c01cdec2aa9
|
[
"MIT"
] | 14
|
2019-06-13T09:55:25.000Z
|
2022-03-19T15:12:36.000Z
|
level-3/task-1/task-1-3-2.py
|
avedensky/python-rush-tasks
|
61410816dbb55cce3b518f8d76799c01cdec2aa9
|
[
"MIT"
] | 1
|
2021-09-26T16:00:51.000Z
|
2021-09-26T16:00:51.000Z
|
level-3/task-1/task-1-3-2.py
|
avedensky/python-rush-tasks
|
61410816dbb55cce3b518f8d76799c01cdec2aa9
|
[
"MIT"
] | 4
|
2020-12-12T16:50:31.000Z
|
2022-02-08T12:16:11.000Z
|
#!/usr/bin/env python3
#coding: utf-8
"""
pythonic way
"""
print(input('Введите строку:')[::-1])
| 10
| 37
| 0.61
| 14
| 100
| 4.357143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0.13
| 100
| 9
| 38
| 11.111111
| 0.666667
| 0.47
| 0
| 0
| 0
| 0
| 0.365854
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6bac5606c3c9ed36b783d891398d576cb9f72534
| 841
|
py
|
Python
|
haul/settings.py
|
dojekyll/haul
|
234024ab8452ea2f41b18561377295cf2879fb20
|
[
"MIT"
] | 89
|
2017-01-20T04:27:00.000Z
|
2021-11-17T11:02:12.000Z
|
haul/settings.py
|
Python3pkg/haul
|
765c22bd69316037534a7bf36b3033b75f7a0682
|
[
"MIT"
] | 1
|
2015-09-23T19:07:50.000Z
|
2015-09-23T19:07:50.000Z
|
haul/settings.py
|
Python3pkg/haul
|
765c22bd69316037534a7bf36b3033b75f7a0682
|
[
"MIT"
] | 23
|
2015-04-27T22:45:09.000Z
|
2017-01-08T10:35:17.000Z
|
# coding: utf-8
# http://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser
DEFAULT_PARSER = 'lxml'
ALLOWED_CONTENT_TYPES = [
'text/html',
'image/',
]
FINDER_PIPELINE = (
'haul.finders.pipeline.html.img_src_finder',
'haul.finders.pipeline.html.a_href_finder',
'haul.finders.pipeline.css.background_image_finder',
)
EXTENDER_PIPELINE = (
'haul.extenders.pipeline.google.blogspot_s1600_extender',
'haul.extenders.pipeline.google.ggpht_s1600_extender',
'haul.extenders.pipeline.google.googleusercontent_s1600_extender',
'haul.extenders.pipeline.pinterest.original_image_extender',
'haul.extenders.pipeline.wordpress.original_image_extender',
'haul.extenders.pipeline.tumblr.media_1280_extender',
'haul.extenders.pipeline.tumblr.avatar_128_extender',
)
SHOULD_JOIN_URL = True
| 30.035714
| 75
| 0.766944
| 101
| 841
| 6.118812
| 0.49505
| 0.147249
| 0.237864
| 0.281553
| 0.386731
| 0.265372
| 0
| 0
| 0
| 0
| 0
| 0.027888
| 0.104637
| 841
| 27
| 76
| 31.148148
| 0.792829
| 0.102259
| 0
| 0
| 0
| 0
| 0.707057
| 0.681758
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6bc5277d42ea4edf7392e67651edf7913bd6701b
| 97
|
py
|
Python
|
chimericPKS/apps.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
chimericPKS/apps.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
chimericPKS/apps.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
from django.apps import AppConfig
class ChimericpksConfig(AppConfig):
name = 'chimericPKS'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
6bf51f1d85ee4a9b48518f581cfb5e0b51ffb57d
| 255
|
py
|
Python
|
solutions-geoevent/processors/visibility-processor/geoprocessing/visibility/Toolshare/scripts/Shared/srConfig.py
|
brysageek/solutions-geoevent-java
|
e931cf0926e743b8edcbf4e8fb4f43a51e2dfa8b
|
[
"Apache-2.0"
] | 34
|
2015-01-22T19:14:24.000Z
|
2022-03-03T12:59:40.000Z
|
solutions-geoevent/processors/visibility-processor/geoprocessing/visibility/Toolshare/scripts/Shared/srConfig.py
|
brysageek/solutions-geoevent-java
|
e931cf0926e743b8edcbf4e8fb4f43a51e2dfa8b
|
[
"Apache-2.0"
] | 55
|
2015-02-25T13:16:21.000Z
|
2021-06-04T01:00:20.000Z
|
solutions-geoevent/processors/visibility-processor/geoprocessing/visibility/Toolshare/scripts/Shared/srConfig.py
|
brysageek/solutions-geoevent-java
|
e931cf0926e743b8edcbf4e8fb4f43a51e2dfa8b
|
[
"Apache-2.0"
] | 43
|
2015-01-15T12:37:12.000Z
|
2022-01-30T20:38:44.000Z
|
wkidInfo = {
'4326':{'type':'gcs', 'path':'World/WGS 1984.prj'},
'102100':{'type':'pcs', 'path':r'World/WGS 1984 Web Mercator (auxiliary sphere).prj'},
'3857' : {'type':'pcs', 'path':r'World/WGS 1984 Web Mercator (auxiliary sphere).prj'}
}
| 51
| 90
| 0.603922
| 35
| 255
| 4.4
| 0.485714
| 0.155844
| 0.233766
| 0.155844
| 0.688312
| 0.688312
| 0.688312
| 0.688312
| 0.688312
| 0.688312
| 0
| 0.119816
| 0.14902
| 255
| 5
| 91
| 51
| 0.589862
| 0
| 0
| 0
| 0
| 0
| 0.644531
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6bf8f2a6d30cdab62d5e490b8341e790bbe2c46b
| 128
|
py
|
Python
|
save.py
|
guilhermevieira98/IMDb-Scraping
|
d31b7c8d4b159ba3fb97ce1acee5e4a52a787b43
|
[
"MIT"
] | 1
|
2020-12-09T00:56:24.000Z
|
2020-12-09T00:56:24.000Z
|
save.py
|
gahmasec/IMDb-Scraping
|
d31b7c8d4b159ba3fb97ce1acee5e4a52a787b43
|
[
"MIT"
] | null | null | null |
save.py
|
gahmasec/IMDb-Scraping
|
d31b7c8d4b159ba3fb97ce1acee5e4a52a787b43
|
[
"MIT"
] | null | null | null |
import subprocess
with open("output.txt", "w+") as output:
subprocess.call(["python", "./imdb-list.py"], stdout=output);
| 32
| 66
| 0.65625
| 17
| 128
| 4.941176
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132813
| 128
| 3
| 67
| 42.666667
| 0.756757
| 0
| 0
| 0
| 0
| 0
| 0.256
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6bfd8c90a78b2eba3fb6430effcf030cf755b748
| 889
|
py
|
Python
|
python/django_projects/memory/memoryApp/migrations/0003_auto_20180607_0853.py
|
quasarbright/quasarbright.github.io
|
942710adf4a2531d033023a6f750efeddf3e9050
|
[
"MIT"
] | 1
|
2021-01-23T13:50:34.000Z
|
2021-01-23T13:50:34.000Z
|
python/django_projects/memory/memoryApp/migrations/0003_auto_20180607_0853.py
|
quasarbright/quasarbright.github.io
|
942710adf4a2531d033023a6f750efeddf3e9050
|
[
"MIT"
] | 40
|
2018-02-19T19:37:24.000Z
|
2022-03-25T18:34:22.000Z
|
python/django_projects/memory/memoryApp/migrations/0003_auto_20180607_0853.py
|
quasarbright/quasarbright.github.io
|
942710adf4a2531d033023a6f750efeddf3e9050
|
[
"MIT"
] | 1
|
2018-12-07T03:07:21.000Z
|
2018-12-07T03:07:21.000Z
|
# Generated by Django 2.0.3 on 2018-06-07 12:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('memoryApp', '0002_remove_eventtag_event'),
]
operations = [
migrations.RemoveField(
model_name='event',
name='date',
),
migrations.RemoveField(
model_name='event',
name='description',
),
migrations.RemoveField(
model_name='event',
name='importance',
),
migrations.RemoveField(
model_name='event',
name='location',
),
migrations.RemoveField(
model_name='event',
name='name',
),
migrations.RemoveField(
model_name='eventlink',
name='event',
),
]
| 23.394737
| 53
| 0.492688
| 70
| 889
| 6.128571
| 0.471429
| 0.293706
| 0.363636
| 0.41958
| 0.454545
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0.035514
| 0.3982
| 889
| 37
| 54
| 24.027027
| 0.766355
| 0.050619
| 0
| 0.548387
| 1
| 0
| 0.137888
| 0.032298
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.064516
| 0
| 0.16129
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 4
|
d42de603091b2b2408f169c71138037acdf6060b
| 109
|
py
|
Python
|
recipe/run_test.py
|
conda-forge/gst-python-feedstock
|
a6c68938e9723a30c2c1fcedb82d9d85b50ba7ff
|
[
"BSD-3-Clause"
] | null | null | null |
recipe/run_test.py
|
conda-forge/gst-python-feedstock
|
a6c68938e9723a30c2c1fcedb82d9d85b50ba7ff
|
[
"BSD-3-Clause"
] | 20
|
2019-01-23T09:52:55.000Z
|
2022-03-14T18:19:59.000Z
|
recipe/run_test.py
|
conda-forge/gst-python-feedstock
|
a6c68938e9723a30c2c1fcedb82d9d85b50ba7ff
|
[
"BSD-3-Clause"
] | 2
|
2019-01-23T09:42:00.000Z
|
2020-11-15T17:21:47.000Z
|
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
print(Gst.Fraction(num=3, denom=5))
| 21.8
| 35
| 0.743119
| 20
| 109
| 4
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040404
| 0.091743
| 109
| 4
| 36
| 27.25
| 0.767677
| 0
| 0
| 0
| 0
| 0
| 0.055046
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d4319c31eaa591a3fc7f8926ac9f39e788629c04
| 136
|
py
|
Python
|
restcord/models/voice.py
|
Doezer/Restcord
|
5a21737635744b0fe1790516fa03f6ddc35b48bc
|
[
"MIT"
] | null | null | null |
restcord/models/voice.py
|
Doezer/Restcord
|
5a21737635744b0fe1790516fa03f6ddc35b48bc
|
[
"MIT"
] | 1
|
2018-09-21T17:40:12.000Z
|
2018-10-02T08:00:36.000Z
|
restcord/models/voice.py
|
Doezer/Restcord
|
5a21737635744b0fe1790516fa03f6ddc35b48bc
|
[
"MIT"
] | 2
|
2022-01-20T07:44:42.000Z
|
2022-01-24T09:33:58.000Z
|
from enum import Enum
import json
CDN_URL = "https://cdn.discordapp.com/"
import logging
logger = logging.getLogger()
# VOICE SECTION
| 15.111111
| 39
| 0.757353
| 19
| 136
| 5.368421
| 0.736842
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139706
| 136
| 8
| 40
| 17
| 0.871795
| 0.095588
| 0
| 0
| 0
| 0
| 0.223141
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
00fcfa6489a3f32bbf455d13f291b10341acea55
| 117
|
py
|
Python
|
codeforces/problemset/1/1A.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | 8
|
2015-06-07T13:25:48.000Z
|
2022-03-22T23:14:50.000Z
|
codeforces/problemset/1/1A.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | 30
|
2016-01-29T01:36:41.000Z
|
2018-09-19T07:01:22.000Z
|
codeforces/problemset/1/1A.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | null | null | null |
line = input()
d = [int(a) for a in line.split()]
import math
print(math.ceil(d[0] / d[2]) * math.ceil(d[1] / d[2]))
| 23.4
| 54
| 0.581197
| 25
| 117
| 2.72
| 0.6
| 0.235294
| 0.264706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0.162393
| 117
| 4
| 55
| 29.25
| 0.653061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 1
| 0
| 0
| null | 1
| 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
| 4
|
2e35115c094a6e89d8076b9be1c34e10cfc46fda
| 91
|
py
|
Python
|
blog-note/mineBlog/showBlog/apps.py
|
jiangwenfan/pythonScripts
|
c9004944f162af575e111522f98d4de4f59885e6
|
[
"Apache-2.0"
] | null | null | null |
blog-note/mineBlog/showBlog/apps.py
|
jiangwenfan/pythonScripts
|
c9004944f162af575e111522f98d4de4f59885e6
|
[
"Apache-2.0"
] | null | null | null |
blog-note/mineBlog/showBlog/apps.py
|
jiangwenfan/pythonScripts
|
c9004944f162af575e111522f98d4de4f59885e6
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class ShowblogConfig(AppConfig):
name = 'showBlog'
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
2e46dfa453bd831023a7ade24906eb173a80c074
| 306
|
py
|
Python
|
aula3cap2.py
|
asalesg/python
|
885ff5fae1e685424863286082fbe49ca5f4efe7
|
[
"MIT"
] | null | null | null |
aula3cap2.py
|
asalesg/python
|
885ff5fae1e685424863286082fbe49ca5f4efe7
|
[
"MIT"
] | null | null | null |
aula3cap2.py
|
asalesg/python
|
885ff5fae1e685424863286082fbe49ca5f4efe7
|
[
"MIT"
] | null | null | null |
rm = input("Insira seu RM")
idade = input("Insira sua idade")
if int(idade) >= 18:
print("Sua participação foi autorizada, aluno de RM {}!".format(rm))
print("Mais informações serão enviadas para seu e-mail cadastrado!")
else:
print("Sua participação não foi autorizada por causa da sua idade")
| 43.714286
| 72
| 0.70915
| 46
| 306
| 4.717391
| 0.630435
| 0.101382
| 0.184332
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007874
| 0.169935
| 306
| 7
| 73
| 43.714286
| 0.846457
| 0
| 0
| 0
| 0
| 0
| 0.631922
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.428571
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
2e55adf718a494eb5bd28f83e0924773d544777d
| 81
|
py
|
Python
|
src/services/base.py
|
Jaysins/covid-19-estimator-py
|
6161cf1398b992d832451958d04bc5a69102c82f
|
[
"MIT"
] | null | null | null |
src/services/base.py
|
Jaysins/covid-19-estimator-py
|
6161cf1398b992d832451958d04bc5a69102c82f
|
[
"MIT"
] | null | null | null |
src/services/base.py
|
Jaysins/covid-19-estimator-py
|
6161cf1398b992d832451958d04bc5a69102c82f
|
[
"MIT"
] | null | null | null |
# coding=utf-8
"""
BASE FILE, MOST TIMES A NECESSITY, BUT WHEN NO USE, NO USE
"""
| 20.25
| 58
| 0.666667
| 15
| 81
| 3.6
| 0.866667
| 0.185185
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.185185
| 81
| 4
| 59
| 20.25
| 0.80303
| 0.888889
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2e8fdba70dbec5a4b5861be7a03c8e3bffe4930e
| 2,171
|
py
|
Python
|
hubspot/crm/timeline/models/__init__.py
|
Ronfer/hubspot-api-python
|
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
|
[
"Apache-2.0"
] | 117
|
2020-04-06T08:22:53.000Z
|
2022-03-18T03:41:29.000Z
|
hubspot/crm/timeline/models/__init__.py
|
Ronfer/hubspot-api-python
|
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
|
[
"Apache-2.0"
] | 62
|
2020-04-06T16:21:06.000Z
|
2022-03-17T16:50:44.000Z
|
hubspot/crm/timeline/models/__init__.py
|
Ronfer/hubspot-api-python
|
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
|
[
"Apache-2.0"
] | 45
|
2020-04-06T16:13:52.000Z
|
2022-03-30T21:33:17.000Z
|
# coding: utf-8
# flake8: noqa
"""
Timeline events
This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM objects like contacts, companies, tickets, or deals. You'll find multiple use cases for this API in the sections below. # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
# import models into model package
from hubspot.crm.timeline.models.batch_input_timeline_event import BatchInputTimelineEvent
from hubspot.crm.timeline.models.batch_response_timeline_event_response import BatchResponseTimelineEventResponse
from hubspot.crm.timeline.models.batch_response_timeline_event_response_with_errors import BatchResponseTimelineEventResponseWithErrors
from hubspot.crm.timeline.models.collection_response_timeline_event_template_no_paging import CollectionResponseTimelineEventTemplateNoPaging
from hubspot.crm.timeline.models.error import Error
from hubspot.crm.timeline.models.error_category import ErrorCategory
from hubspot.crm.timeline.models.error_detail import ErrorDetail
from hubspot.crm.timeline.models.event_detail import EventDetail
from hubspot.crm.timeline.models.standard_error import StandardError
from hubspot.crm.timeline.models.timeline_event import TimelineEvent
from hubspot.crm.timeline.models.timeline_event_i_frame import TimelineEventIFrame
from hubspot.crm.timeline.models.timeline_event_response import TimelineEventResponse
from hubspot.crm.timeline.models.timeline_event_template import TimelineEventTemplate
from hubspot.crm.timeline.models.timeline_event_template_create_request import TimelineEventTemplateCreateRequest
from hubspot.crm.timeline.models.timeline_event_template_token import TimelineEventTemplateToken
from hubspot.crm.timeline.models.timeline_event_template_token_option import TimelineEventTemplateTokenOption
from hubspot.crm.timeline.models.timeline_event_template_token_update_request import TimelineEventTemplateTokenUpdateRequest
from hubspot.crm.timeline.models.timeline_event_template_update_request import TimelineEventTemplateUpdateRequest
| 62.028571
| 251
| 0.877015
| 268
| 2,171
| 6.895522
| 0.373134
| 0.107143
| 0.136364
| 0.214286
| 0.417749
| 0.372294
| 0.300866
| 0.234307
| 0.154762
| 0.0671
| 0
| 0.002996
| 0.077384
| 2,171
| 34
| 252
| 63.852941
| 0.919621
| 0.189314
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5cffc21ab29aed67a0c16ff13358da8f0e2d6ced
| 193
|
py
|
Python
|
apricot/__init__.py
|
domoritz/apricot
|
6dff8d08dee9145ec6c7e3e79d77efa0bbf19474
|
[
"MIT"
] | null | null | null |
apricot/__init__.py
|
domoritz/apricot
|
6dff8d08dee9145ec6c7e3e79d77efa0bbf19474
|
[
"MIT"
] | null | null | null |
apricot/__init__.py
|
domoritz/apricot
|
6dff8d08dee9145ec6c7e3e79d77efa0bbf19474
|
[
"MIT"
] | null | null | null |
# __init__.py
# Author: Jacob Schreiber <jmschreiber91@gmail.com>
from .featureBased import FeatureBasedSelection
from .facilityLocation import FacilityLocationSelection
__version__ = '0.3.0'
| 27.571429
| 55
| 0.823834
| 20
| 193
| 7.55
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028736
| 0.098446
| 193
| 7
| 56
| 27.571429
| 0.83908
| 0.316062
| 0
| 0
| 0
| 0
| 0.038462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
cf29f2558f8e5b8a4b1d49a417c54244acd83a52
| 4,646
|
py
|
Python
|
etl/parsers/etw/Microsoft_Windows_UserDataAccess_UserDataUtils.py
|
IMULMUL/etl-parser
|
76b7c046866ce0469cd129ee3f7bb3799b34e271
|
[
"Apache-2.0"
] | 104
|
2020-03-04T14:31:31.000Z
|
2022-03-28T02:59:36.000Z
|
etl/parsers/etw/Microsoft_Windows_UserDataAccess_UserDataUtils.py
|
IMULMUL/etl-parser
|
76b7c046866ce0469cd129ee3f7bb3799b34e271
|
[
"Apache-2.0"
] | 7
|
2020-04-20T09:18:39.000Z
|
2022-03-19T17:06:19.000Z
|
etl/parsers/etw/Microsoft_Windows_UserDataAccess_UserDataUtils.py
|
IMULMUL/etl-parser
|
76b7c046866ce0469cd129ee3f7bb3799b34e271
|
[
"Apache-2.0"
] | 16
|
2020-03-05T18:55:59.000Z
|
2022-03-01T10:19:28.000Z
|
# -*- coding: utf-8 -*-
"""
Microsoft-Windows-UserDataAccess-UserDataUtils
GUID : d1f688bf-012f-4aec-a38c-e7d4649f8cd2
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parsers.etw.core import Etw, declare, guid
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=1, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_1_0(Etw):
pattern = Struct(
"P1_HResult" / Int32sl,
"P2_String" / CString,
"P3_UInt32" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=2, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_2_0(Etw):
pattern = Struct(
"P1_HResult" / Int32sl,
"P2_String" / CString,
"P3_UInt32" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=3, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_3_0(Etw):
pattern = Struct(
"Message" / Int64ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=101, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_101_0(Etw):
pattern = Struct(
"Prop_LINE_UInt32" / Int32ul,
"Prop_Trace_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=102, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_102_0(Etw):
pattern = Struct(
"Prop_Trace_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=103, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_103_0(Etw):
pattern = Struct(
"Prop_Trace_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=104, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_104_0(Etw):
pattern = Struct(
"Prop_Trace_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=105, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_105_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString,
"P1_UInt32" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=106, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_106_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString,
"P1_UInt32" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=107, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_107_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString,
"P1_UInt32" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=301, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_301_0(Etw):
pattern = Struct(
"P1_HexInt32" / Int32sl,
"Prop_Handle" / Int32ul,
"Prop_Handle2" / Int32ul
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=401, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_401_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=402, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_402_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=501, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_501_0(Etw):
pattern = Struct(
"P1_Int32" / Int32sl
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=502, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_502_0(Etw):
pattern = Struct(
"P1_Int32" / Int32sl
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=600, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_600_0(Etw):
pattern = Struct(
"P1_Int32" / Int32sl
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=601, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_601_0(Etw):
pattern = Struct(
"P1_UnicodeString" / WString,
"P2_UnicodeString" / WString
)
@declare(guid=guid("d1f688bf-012f-4aec-a38c-e7d4649f8cd2"), event_id=602, version=0)
class Microsoft_Windows_UserDataAccess_UserDataUtils_602_0(Etw):
pattern = Struct(
"P1_HexInt32" / Int32sl,
"P2_HexInt32" / Int32sl
)
| 31.181208
| 123
| 0.729229
| 558
| 4,646
| 5.817204
| 0.139785
| 0.093654
| 0.175601
| 0.251694
| 0.861676
| 0.855206
| 0.844116
| 0.500616
| 0.500616
| 0.500616
| 0
| 0.140712
| 0.154111
| 4,646
| 148
| 124
| 31.391892
| 0.685242
| 0.024322
| 0
| 0.396226
| 0
| 0
| 0.230327
| 0.164456
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.037736
| 0
| 0.377358
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 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
| 4
|
cf3d54836d77fd84d53ce2be0ef4a967b2d85516
| 157
|
py
|
Python
|
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_logging_secondary.py
|
pbarton666/virtual_classroom
|
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
|
[
"MIT"
] | null | null | null |
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_logging_secondary.py
|
pbarton666/virtual_classroom
|
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
|
[
"MIT"
] | null | null | null |
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_logging_secondary.py
|
pbarton666/virtual_classroom
|
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
|
[
"MIT"
] | null | null | null |
#py_logging_secondary.py
import logging
import py_logging_main
#from main import logger_object
logging.getLogger("logger")
logging.debug("secondary here")
| 17.444444
| 31
| 0.828025
| 22
| 157
| 5.681818
| 0.5
| 0.144
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089172
| 157
| 8
| 32
| 19.625
| 0.874126
| 0.33758
| 0
| 0
| 0
| 0
| 0.19802
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cf4477754bc5298e9daaf08f8a0366bda9f6e8a1
| 128
|
py
|
Python
|
api/view/__init__.py
|
pengtianabc/sanic-app
|
5c9327151871a11972cc03dbe61576601703789e
|
[
"MIT"
] | null | null | null |
api/view/__init__.py
|
pengtianabc/sanic-app
|
5c9327151871a11972cc03dbe61576601703789e
|
[
"MIT"
] | null | null | null |
api/view/__init__.py
|
pengtianabc/sanic-app
|
5c9327151871a11972cc03dbe61576601703789e
|
[
"MIT"
] | null | null | null |
# file: api/handler/__init__.py
from .my_view import views as my_view
# export for parent
views = []
views.extend(my_view)
| 21.333333
| 38
| 0.726563
| 21
| 128
| 4.095238
| 0.714286
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.171875
| 128
| 5
| 39
| 25.6
| 0.811321
| 0.367188
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
cf7582413e784d08825c5a7f0302471b067e42be
| 1,128
|
py
|
Python
|
app/controllers/forms/recover.py
|
zhenyit/mask_detection
|
c381e262118ee06a5f6c3d48ce885972ccde217e
|
[
"MIT"
] | 1
|
2021-02-21T12:07:04.000Z
|
2021-02-21T12:07:04.000Z
|
app/controllers/forms/recover.py
|
zhenyit/mask_detection
|
c381e262118ee06a5f6c3d48ce885972ccde217e
|
[
"MIT"
] | null | null | null |
app/controllers/forms/recover.py
|
zhenyit/mask_detection
|
c381e262118ee06a5f6c3d48ce885972ccde217e
|
[
"MIT"
] | null | null | null |
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import DataRequired, EqualTo, InputRequired
class SearchAccountForm(FlaskForm):
username = StringField(
'Username',
validators=[
DataRequired(),
]
)
search = SubmitField('Search')
class ResetPasswordForm(FlaskForm):
new_password = PasswordField(
'New Password',
validators=[
DataRequired()
]
)
confirm = PasswordField(
'Confirm New Password',
validators=[
DataRequired()
]
)
submit = SubmitField('Change password')
class ChangePasswordForm(FlaskForm):
old_password = PasswordField(
'Old Password',
validators=[
DataRequired(),
]
)
new_password = PasswordField(
'New Password',
validators=[
DataRequired()
]
)
confirm = PasswordField(
'Confirm New Password',
validators=[
DataRequired()
]
)
submit = SubmitField('Change password')
| 21.692308
| 67
| 0.585993
| 78
| 1,128
| 8.423077
| 0.320513
| 0.200913
| 0.228311
| 0.200913
| 0.450533
| 0.450533
| 0.450533
| 0.450533
| 0.450533
| 0.450533
| 0
| 0
| 0.328014
| 1,128
| 51
| 68
| 22.117647
| 0.866755
| 0
| 0
| 0.488889
| 0
| 0
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0.066667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
cf889aa7e4bc85314157fc83151bc3000e099785
| 28
|
py
|
Python
|
amazon-sagemaker-pytorch-detectron2/container_training/sku-110k/evaluation/__init__.py
|
rodzanto/amazon-sagemaker-pytorch-detectron2
|
4bdf47705bd949502de0cc8721ba20fb630699c1
|
[
"MIT-0"
] | 22
|
2021-03-25T14:16:28.000Z
|
2022-03-29T14:42:23.000Z
|
amazon-sagemaker-pytorch-detectron2/container_training/sku-110k/evaluation/__init__.py
|
rodzanto/amazon-sagemaker-pytorch-detectron2
|
4bdf47705bd949502de0cc8721ba20fb630699c1
|
[
"MIT-0"
] | 7
|
2021-04-16T21:00:28.000Z
|
2022-03-25T08:19:30.000Z
|
amazon-sagemaker-pytorch-detectron2/container_training/sku-110k/evaluation/__init__.py
|
rodzanto/amazon-sagemaker-pytorch-detectron2
|
4bdf47705bd949502de0cc8721ba20fb630699c1
|
[
"MIT-0"
] | 10
|
2021-04-03T08:11:28.000Z
|
2022-03-16T06:35:25.000Z
|
"""Coco Style Evaluation"""
| 14
| 27
| 0.678571
| 3
| 28
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 28
| 1
| 28
| 28
| 0.76
| 0.75
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d85d64db0146b78e82eea6836572eeb6975e0951
| 2,523
|
py
|
Python
|
fmriprep/workflows/fieldmap/__init__.py
|
ericearl/fmriprep
|
0d604af52ddaa3517d199e437c2347381310d044
|
[
"BSD-3-Clause"
] | null | null | null |
fmriprep/workflows/fieldmap/__init__.py
|
ericearl/fmriprep
|
0d604af52ddaa3517d199e437c2347381310d044
|
[
"BSD-3-Clause"
] | null | null | null |
fmriprep/workflows/fieldmap/__init__.py
|
ericearl/fmriprep
|
0d604af52ddaa3517d199e437c2347381310d044
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
.. figure:: _static/unwarping.svg
:scale: 100%
Applying field correction warp using ANTs.
One of the major problems that affects :abbr:`EPI (echo planar imaging)` data
is the spatial distortion caused by the inhomogeneity of the field inside
the scanner.
The are four broad families of methodologies for mapping the field:
* **Phase-difference techniques**: to estimate the fieldmap, these methods
measure the phase evolution in time between two close
:abbr:`GRE (Gradient Recall Echo)` acquisitions. Corresponds to the sections
8.9.1 and 8.9.2 of the BIDS specification.
* **Direct field-mapping**: some sequences (such as :abbr:`SE (spiral echo)`)
are able to measure the fieldmap directly. Corresponds to section 8.9.3 of BIDS.
* **Blip-up/blip-down or phase encoding polarity**:
:abbr:`pepolar (Phase Encoding POLARity)`: techniques acquire at least two images
distorted due to the inhomogeneity of the field, but varying in
:abbr:`PE (phase-encoding)` direction.
Corresponds to 8.9.4 of BIDS.
* **Point-spread function acquisition**: Not supported by FMRIPREP.
Once the field-map is estimated, the distortion can be accounted for.
Fieldmap processing in FMRIPREP is structured as follows:
1. :ref:`sdc-base`: the input BIDS dataset is queried to find the available field-mapping
techniques and the appropriate processing workflows are set-up (applies to phase-difference
and direct field-mapping techniques).
2. :ref:`sdc-estimation`: all the estimation workflows produce a displacement field
ready to be used in the correction step (applies to phase-difference
and direct field-mapping techniques).
3. :ref:`sdc-unwarp`: the correction step is applied (for phase encoding polarity
this step also involves distortion correction displacement field estimation).
If the dataset metadata indicate tha more than one field map acquisition is
``IntendedFor`` (see BIDS Specification section 8.9) the following priority will
be used:
1. Blip-up/blip-down
2. Direct field-mapping
3. Phase-difference techniques
Additionally, FMRIPREP now experimentally supports displacement field estimation
in the absence of fieldmaps. See :ref:`fieldmapless_estimation` for
further details.
"""
from .base import init_fmap_estimator_wf
from .unwarp import init_sdc_unwarp_wf
| 39.421875
| 96
| 0.750297
| 372
| 2,523
| 5.067204
| 0.491935
| 0.005305
| 0.038196
| 0.022281
| 0.085942
| 0.058355
| 0.058355
| 0.058355
| 0.058355
| 0
| 0
| 0.013365
| 0.169639
| 2,523
| 63
| 97
| 40.047619
| 0.886396
| 0.960761
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.