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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a4eaa20b8724137b33df7ea7e19e47477d20fa5
| 100
|
py
|
Python
|
tests/test_util.py
|
tianhonglouis/sample-pyspark-application
|
bf15d55cd8f02b27de0635f07b51879f9d532966
|
[
"ECL-2.0",
"Apache-2.0"
] | 64
|
2017-10-24T15:53:22.000Z
|
2022-03-13T00:05:49.000Z
|
tests/test_util.py
|
tianhonglouis/sample-pyspark-application
|
bf15d55cd8f02b27de0635f07b51879f9d532966
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
tests/test_util.py
|
tianhonglouis/sample-pyspark-application
|
bf15d55cd8f02b27de0635f07b51879f9d532966
|
[
"ECL-2.0",
"Apache-2.0"
] | 25
|
2018-01-21T13:19:39.000Z
|
2022-03-28T13:58:04.000Z
|
from application.util import metaphone
def test_metaphone():
assert metaphone('Nick') == 'NK'
| 16.666667
| 38
| 0.72
| 12
| 100
| 5.916667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 100
| 5
| 39
| 20
| 0.845238
| 0
| 0
| 0
| 0
| 0
| 0.06
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 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
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
6a65e911e305825d7647d55a5f6936c278a7672a
| 2,009
|
py
|
Python
|
regina_normalizer/ordinal_thousands_tuples.py
|
grammatek/regina_normalizer
|
61ffeafcf1b967b44a3a9f99727013779bfeba13
|
[
"Apache-2.0"
] | null | null | null |
regina_normalizer/ordinal_thousands_tuples.py
|
grammatek/regina_normalizer
|
61ffeafcf1b967b44a3a9f99727013779bfeba13
|
[
"Apache-2.0"
] | null | null | null |
regina_normalizer/ordinal_thousands_tuples.py
|
grammatek/regina_normalizer
|
61ffeafcf1b967b44a3a9f99727013779bfeba13
|
[
"Apache-2.0"
] | null | null | null |
# ORDINAL
from . import number_patterns as npa
from . import tuple_rules as tp
ordinal_thousands_tuples = []
for rule, letter in tp.dozens_ordinal_letters:
ordinal_thousands_tuples.append((npa.hndrds_ptrn_def + "1([01][1-9]|10)\.$", rule, 'hundreds', ' eitt hundrað' + letter + ' og'))
ordinal_thousands_tuples.append(("^1([01][1-9]|10)\.$", rule, 'hundreds', 'hundrað' + letter + ' og'))
ordinal_thousands_tuples.append((npa.hndrds_ptrn_def + "100\.$", rule, 'hundreds', ' eitt hundrað' + letter))
ordinal_thousands_tuples.append(("^100\.$", rule, 'hundreds', 'hundrað' + letter))
ordinal_thousands_tuples.append((npa.ones_ptrn_no11 + "1\.?0([01][1-9]|10)\.$", rule, 'thousands', ' eitt þúsund' + letter + ' og'))
ordinal_thousands_tuples.append((npa.ones_ptrn_no11 + "1\.?000\.$", rule, 'thousands', ' eitt þúsund' + letter))
for string, number in tp.hundreds_thousands_zip:
ordinal_thousands_tuples.append((npa.hndrds_ptrn + number + "([01][1-9]|10)\.$", rule, 'hundreds', string + ' hundruð' + letter + ' og'))
ordinal_thousands_tuples.append((npa.hndrds_ptrn + number + "00\.$", rule, 'hundreds', string + ' hundruð' + letter))
ordinal_thousands_tuples.append((npa.ones_ptrn_11 + number + "\.?0([01][1-9]|10)\.$", rule, 'thousands', string + ' þúsund' + letter + ' og'))
ordinal_thousands_tuples.append((npa.ones_ptrn_11 + number + "\.?000\.$", rule, 'thousands', string + ' þúsund' + letter))
for string, number in tp.tens_zip:
ordinal_thousands_tuples.append(("^" + number + "([01][1-9]|10)\.$", rule, 'hundreds', string + ' hundruð' + letter + ' og'))
ordinal_thousands_tuples.append((npa.tns_ptrn + number + "\.?0([01][1-9]|10)\.$", rule, 'thousands', string + ' þúsund' + letter + ' og'))
ordinal_thousands_tuples.append(("^" + number + "00\.$", rule, 'hundreds', string + ' hundruð' + letter))
ordinal_thousands_tuples.append(("^" + number + "([01][1-9]|[01]0)\.$", rule, 'thousands', ""))
| 77.269231
| 150
| 0.638128
| 254
| 2,009
| 4.84252
| 0.169291
| 0.195122
| 0.268293
| 0.318699
| 0.847967
| 0.794309
| 0.755285
| 0.617073
| 0.509756
| 0.404878
| 0
| 0.047142
| 0.155301
| 2,009
| 25
| 151
| 80.36
| 0.677666
| 0.003484
| 0
| 0
| 0
| 0
| 0.228114
| 0.032016
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 5
|
6a7495d16153d26cff89454b6bd3c855b2064db0
| 1,531
|
py
|
Python
|
Python/快速排序_递归.py
|
1050669722/LeetCode-Answers
|
c8f4d1ccaac09cda63b60d75144335347b06dc81
|
[
"MIT"
] | null | null | null |
Python/快速排序_递归.py
|
1050669722/LeetCode-Answers
|
c8f4d1ccaac09cda63b60d75144335347b06dc81
|
[
"MIT"
] | null | null | null |
Python/快速排序_递归.py
|
1050669722/LeetCode-Answers
|
c8f4d1ccaac09cda63b60d75144335347b06dc81
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 4 18:58:22 2019
@author: Administrator
"""
class Solution:
def sortArray(self, nums: list) -> list:
# return self.quick_sort(nums, 0, len(nums)-1)
self.quick_sort(nums, 0, len(nums)-1)
return nums
# def quick_sort(self, nums, left, right):
# if left >= right:
# return nums
# head = left
# tail = right
# key = nums[left]
# while left < right:
# while left < right and nums[right] >= key:
# right -= 1
# nums[left] = nums[right]
# while left < right and nums[left] <= key:
# left += 1
# nums[right] = nums[left]
# nums[left] = key
# self.quick_sort(nums, head, left-1)
# self.quick_sort(nums, left+1, tail)
# return nums
def quick_sort(self, nums, left, right):
if left >= right:
return
head = left
tail = right
key = nums[left]
while left < right:
while left < right and nums[right] >= key:
right -= 1
nums[left] = nums[right]
while left < right and nums[left] <= key:
left += 1
nums[right] = nums[left]
nums[left] = key
self.quick_sort(nums, head, left-1)
self.quick_sort(nums, left+1, tail)
solu = Solution()
nums = [3,7,6,4,1,9]
print(solu.sortArray(nums))
| 24.301587
| 55
| 0.480732
| 185
| 1,531
| 3.935135
| 0.221622
| 0.153846
| 0.107143
| 0.14011
| 0.793956
| 0.793956
| 0.793956
| 0.793956
| 0.722527
| 0.722527
| 0
| 0.032362
| 0.394513
| 1,531
| 63
| 56
| 24.301587
| 0.752967
| 0.440888
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.086957
| false
| 0
| 0
| 0
| 0.217391
| 0.043478
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
6a820a3c30e575cc37efead59b81e1aa647ff3b5
| 176
|
py
|
Python
|
schools3/config/ml/experiments/hp_tuning_experiment_config.py
|
dssg/mlpolicylab_fall20_schools3_public
|
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
|
[
"MIT"
] | null | null | null |
schools3/config/ml/experiments/hp_tuning_experiment_config.py
|
dssg/mlpolicylab_fall20_schools3_public
|
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
|
[
"MIT"
] | null | null | null |
schools3/config/ml/experiments/hp_tuning_experiment_config.py
|
dssg/mlpolicylab_fall20_schools3_public
|
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
|
[
"MIT"
] | null | null | null |
import sys
from schools3.config import base_config
config = base_config.Config()
config.out_csv = 'tuning.csv'
config.out_img = 'tuning.html'
sys.modules[__name__] = config
| 17.6
| 39
| 0.772727
| 26
| 176
| 4.923077
| 0.5
| 0.28125
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006452
| 0.119318
| 176
| 9
| 40
| 19.555556
| 0.819355
| 0
| 0
| 0
| 0
| 0
| 0.119318
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
6a8866a0b68d1471ba36b0f49dbcde6583b88972
| 64
|
py
|
Python
|
jinahub/encoders/text/TransformerTFTextEncoder/__init__.py
|
sauravgarg540/executors
|
c06a16633767346eee96ec019ae6a171f125f6cb
|
[
"Apache-2.0"
] | null | null | null |
jinahub/encoders/text/TransformerTFTextEncoder/__init__.py
|
sauravgarg540/executors
|
c06a16633767346eee96ec019ae6a171f125f6cb
|
[
"Apache-2.0"
] | null | null | null |
jinahub/encoders/text/TransformerTFTextEncoder/__init__.py
|
sauravgarg540/executors
|
c06a16633767346eee96ec019ae6a171f125f6cb
|
[
"Apache-2.0"
] | null | null | null |
from .transformer_tf_text_encode import TransformerTFTextEncoder
| 64
| 64
| 0.9375
| 7
| 64
| 8.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046875
| 64
| 1
| 64
| 64
| 0.934426
| 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
| 1
| 0
|
0
| 5
|
6a99672016d7f9e9f7de1927e028495a84011556
| 1,831
|
py
|
Python
|
eqb/scripts/bytearray_to_hexstring.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | null | null | null |
eqb/scripts/bytearray_to_hexstring.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | 45
|
2019-02-05T17:17:18.000Z
|
2019-07-20T17:21:02.000Z
|
eqb/scripts/bytearray_to_hexstring.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | 6
|
2019-02-01T12:30:48.000Z
|
2019-03-01T20:33:14.000Z
|
# this script converts a hex byte array to hex string
input = ([0x01, 0x00, 0x00, 0x00, 0x01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0x0e, 0x00, 0x00, 0x00, 0x00, 0x19, 0x76, 0xa9, 0x14, 0xba, 0xde, 0xec, 0xfd, 0xef, 0x05, 0x07, 0x24, 0x7f, 0xc8, 0xf7, 0x42, 0x41, 0xd7, 0x3b, 0xc0, 0x39, 0x97, 0x2d, 0x7b, 0x88, 0xac, 0x40, 0x94, 0xa8, 0x02, 0x00, 0x00, 0x00, 0x00, 0x19, 0x76, 0xa9, 0x14, 0xc1, 0x09, 0x32, 0x48, 0x3f, 0xec, 0x93, 0xed, 0x51, 0xf5, 0xfe, 0x95, 0xe7, 0x25, 0x59, 0xf2, 0xcc, 0x70, 0x43, 0xf9, 0x88, 0xac, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])
print (input)
output = ""
for item in input:
itemhex = format(item, '02x')
#print ("converting {} to {}". format(itemhex, item))
output = output + itemhex
print (output)
#print (output)
| 140.846154
| 1,582
| 0.666303
| 297
| 1,831
| 4.107744
| 0.572391
| 0.111475
| 0.118033
| 0.091803
| 0.07541
| 0.07541
| 0.052459
| 0.052459
| 0
| 0
| 0
| 0.400922
| 0.170399
| 1,831
| 13
| 1,583
| 140.846154
| 0.402238
| 0.0639
| 0
| 0
| 0
| 0
| 0.001753
| 0
| 0
| 0
| 0.612507
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.285714
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6aa08d0c23c9d38d25e68c5d9cbc80baffb05e0d
| 569
|
py
|
Python
|
routes/__init__.py
|
Officeyutong/HelloJudge2
|
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
|
[
"MIT"
] | 21
|
2020-02-24T07:56:55.000Z
|
2022-01-22T11:32:28.000Z
|
routes/__init__.py
|
Officeyutong/HelloJudge2
|
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
|
[
"MIT"
] | 1
|
2021-02-07T13:08:47.000Z
|
2021-02-09T04:50:49.000Z
|
routes/__init__.py
|
Officeyutong/HelloJudge2
|
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
|
[
"MIT"
] | 3
|
2020-06-04T07:56:20.000Z
|
2021-06-21T04:04:15.000Z
|
# from . import vi
from .view import *
from .api_problem import *
from .api_user import *
from .api_judge import *
from .api_submission import *
from .api_utils import *
from .api_discussion import *
from .api_team import *
# from .api_contest import *
from .api_admin import *
from .api_ide import *
from .api_ranklist import *
from .api_common import *
from .api_problemset import *
from .api_challenge import *
from .api_card import *
from .api_phoneauth import *
from .api_feed import *
from .api_problemtag import *
from .api_wiki import *
from .websocket import *
| 25.863636
| 29
| 0.764499
| 85
| 569
| 4.894118
| 0.294118
| 0.480769
| 0.59375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156415
| 569
| 22
| 30
| 25.863636
| 0.866667
| 0.075571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
6aa84a51fe810740f67cd714e851abb32e9e2105
| 102
|
py
|
Python
|
enthought/blocks/compiler_unparse.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/blocks/compiler_unparse.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/blocks/compiler_unparse.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from codetools.blocks.compiler_unparse import *
| 25.5
| 47
| 0.852941
| 13
| 102
| 6.230769
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107843
| 102
| 3
| 48
| 34
| 0.89011
| 0.117647
| 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
| 1
| 0
|
0
| 5
|
6ab22b091d1c43c644ca776f2c556f870934e56f
| 154
|
py
|
Python
|
catbird/core/__init__.py
|
AfonsoSalgadoSousa/catbird
|
e285613f6e101115cccc1f88bbcf0cd435fbd4e9
|
[
"MIT"
] | 5
|
2021-12-25T23:26:00.000Z
|
2022-03-26T09:13:41.000Z
|
catbird/core/__init__.py
|
AfonsoSalgadoSousa/catbird
|
e285613f6e101115cccc1f88bbcf0cd435fbd4e9
|
[
"MIT"
] | null | null | null |
catbird/core/__init__.py
|
AfonsoSalgadoSousa/catbird
|
e285613f6e101115cccc1f88bbcf0cd435fbd4e9
|
[
"MIT"
] | null | null | null |
"""Import facility for 'core' classes and functions."""
from .evaluation import *
from .optimizer import *
from .scheduler import *
from .utils import *
| 22
| 55
| 0.733766
| 19
| 154
| 5.947368
| 0.631579
| 0.265487
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155844
| 154
| 6
| 56
| 25.666667
| 0.869231
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0aba320e9a7ac22fc7e35993ead5aad393645181
| 85
|
py
|
Python
|
boa3_test/test_sc/arithmetic_test/AdditionLiteral.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 25
|
2020-07-22T19:37:43.000Z
|
2022-03-08T03:23:55.000Z
|
boa3_test/test_sc/arithmetic_test/AdditionLiteral.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 419
|
2020-04-23T17:48:14.000Z
|
2022-03-31T13:17:45.000Z
|
boa3_test/test_sc/arithmetic_test/AdditionLiteral.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 15
|
2020-05-21T21:54:24.000Z
|
2021-11-18T06:17:24.000Z
|
from boa3.builtin import public
@public
def add_one_two() -> int:
return 1 + 2
| 12.142857
| 31
| 0.682353
| 14
| 85
| 4
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.223529
| 85
| 6
| 32
| 14.166667
| 0.80303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 0.25
| 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
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
0af90f906e0c13288871f90fdb68ad08096cc043
| 82
|
py
|
Python
|
mysite/storehouse/models/__init__.py
|
othmankurdi/storehouse
|
c702abac6ad7bceef59913485ae7ead4f0f884d7
|
[
"MIT"
] | null | null | null |
mysite/storehouse/models/__init__.py
|
othmankurdi/storehouse
|
c702abac6ad7bceef59913485ae7ead4f0f884d7
|
[
"MIT"
] | 3
|
2021-11-28T10:18:00.000Z
|
2021-11-28T10:39:55.000Z
|
mysite/storehouse/models/__init__.py
|
othmankurdi/storehouse
|
c702abac6ad7bceef59913485ae7ead4f0f884d7
|
[
"MIT"
] | null | null | null |
from .user import User
from .category import Category
from .product import Product
| 27.333333
| 30
| 0.829268
| 12
| 82
| 5.666667
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134146
| 82
| 3
| 31
| 27.333333
| 0.957746
| 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
| 1
| 0
|
0
| 5
|
7c1724435686cdad0ae25b2f830cffbc158d3c77
| 51
|
py
|
Python
|
python3.py
|
AliMD/happy-new-year
|
c90dede80cbcbff0c7559442b2f65dfbcb786e3d
|
[
"MIT"
] | 2
|
2017-03-20T07:28:54.000Z
|
2019-12-18T18:57:38.000Z
|
python3.py
|
AliMD/happy-new-year
|
c90dede80cbcbff0c7559442b2f65dfbcb786e3d
|
[
"MIT"
] | null | null | null |
python3.py
|
AliMD/happy-new-year
|
c90dede80cbcbff0c7559442b2f65dfbcb786e3d
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
print("Happy New Year 1396")
| 17
| 28
| 0.705882
| 9
| 51
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088889
| 0.117647
| 51
| 2
| 29
| 25.5
| 0.711111
| 0.392157
| 0
| 0
| 0
| 0
| 0.633333
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
7c289f94fc9a3ec582cc328321599e89f887a5aa
| 8,497
|
py
|
Python
|
api-inference-community/tests/test_routes.py
|
mlonaws/huggingface_hub
|
588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2
|
[
"Apache-2.0"
] | 1
|
2022-02-28T07:46:39.000Z
|
2022-02-28T07:46:39.000Z
|
api-inference-community/tests/test_routes.py
|
mlonaws/huggingface_hub
|
588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2
|
[
"Apache-2.0"
] | 1
|
2021-12-14T20:18:54.000Z
|
2021-12-14T20:18:54.000Z
|
api-inference-community/tests/test_routes.py
|
mlonaws/huggingface_hub
|
588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2
|
[
"Apache-2.0"
] | 1
|
2022-02-25T01:17:27.000Z
|
2022-02-25T01:17:27.000Z
|
import io
import json
import logging
import os
from unittest import TestCase
import numpy as np
from api_inference_community.routes import pipeline_route, status_ok
from PIL import Image
from starlette.applications import Starlette
from starlette.routing import Route
from starlette.testclient import TestClient
class ValidationTestCase(TestCase):
def read(self, filename: str) -> bytes:
dirname = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(dirname, "samples", filename)
with open(filename, "rb") as f:
bpayload = f.read()
return bpayload
def test_pipeline(self):
os.environ["TASK"] = "text-classification"
class Pipeline:
def __init__(self):
pass
def __call__(self, input_: str):
return {"some": "json serializable"}
def get_pipeline():
return Pipeline()
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
with TestClient(app) as client:
response = client.post("/", data=b"")
self.assertEqual(
response.status_code,
200,
)
self.assertEqual(response.content, b'{"some":"json serializable"}')
def test_invalid_pipeline(self):
os.environ["TASK"] = "invalid"
class Pipeline:
def __init__(self):
pass
def __call__(self, input_: str):
return {"some": "json serializable"}
def get_pipeline():
return Pipeline()
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
with TestClient(app) as client:
response = client.post("/", data=b"")
self.assertEqual(
response.status_code,
400,
)
self.assertEqual(
response.content,
b'{"error":"The task `invalid` is not recognized by api-inference-community"}',
)
def test_invalid_task(self):
os.environ["TASK"] = "invalid"
def get_pipeline():
raise Exception("We cannot load the pipeline")
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
with TestClient(app) as client:
response = client.post("/", data=b"")
self.assertEqual(
response.status_code,
500,
)
self.assertEqual(response.content, b'{"error":"We cannot load the pipeline"}')
def test_tts_pipeline(self):
os.environ["TASK"] = "text-to-speech"
class Pipeline:
def __init__(self):
pass
def __call__(self, input_: str):
return np.array([0, 0, 0]), 16000
def get_pipeline():
return Pipeline()
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
with TestClient(app) as client:
response = client.post("/", data=b"2222")
self.assertEqual(
response.status_code,
200,
)
self.assertEqual(response.headers["content-type"], "audio/flac")
def test_audio_to_audio_pipeline(self):
os.environ["TASK"] = "audio-to-audio"
class Pipeline:
def __init__(self):
self.sampling_rate = 16000
def __call__(self, input_: str):
return np.array([[0, 0, 0]]), 16000, ["label_0"]
def get_pipeline():
return Pipeline()
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
bpayload = self.read("sample1.flac")
with TestClient(app) as client:
response = client.post("/", data=bpayload)
self.assertEqual(
response.status_code,
200,
)
self.assertEqual(response.headers["content-type"], "application/json")
data = json.loads(response.content)
self.assertEqual(len(data), 1)
self.assertEqual(set(data[0].keys()), {"blob", "label", "content-type"})
self.assertEqual(data[0]["content-type"], "audio/flac")
self.assertEqual(data[0]["label"], "label_0")
def test_text_to_image_pipeline(self):
os.environ["TASK"] = "text-to-image"
class Pipeline:
def __init__(self):
pass
def __call__(self, input_: str):
dirname = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(dirname, "samples", "plane.jpg")
returned_image = Image.open(filename)
return returned_image
def get_pipeline():
return Pipeline()
routes = [
Route("/{whatever:path}", status_ok),
Route("/{whatever:path}", pipeline_route, methods=["POST"]),
]
app = Starlette(routes=routes)
@app.on_event("startup")
async def startup_event():
logger = logging.getLogger("uvicorn.access")
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
)
logger.handlers = [handler]
# Link between `api-inference-community` and framework code.
app.get_pipeline = get_pipeline
with TestClient(app) as client:
response = client.post("/", data=b"")
buf = io.BytesIO(response.content)
image = Image.open(buf)
self.assertEqual(
response.status_code,
200,
)
self.assertTrue(isinstance(image, Image.Image))
| 31.124542
| 91
| 0.557373
| 842
| 8,497
| 5.476247
| 0.157957
| 0.042941
| 0.044242
| 0.022121
| 0.78226
| 0.749512
| 0.727608
| 0.705487
| 0.705487
| 0.689655
| 0
| 0.008666
| 0.320937
| 8,497
| 272
| 92
| 31.238971
| 0.790468
| 0.041544
| 0
| 0.652174
| 0
| 0
| 0.129778
| 0.003072
| 0
| 0
| 0
| 0
| 0.077295
| 1
| 0.111111
| false
| 0.019324
| 0.05314
| 0.043478
| 0.246377
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
7c30718c858fcb30b20e4000b1f031b41f541be4
| 137
|
py
|
Python
|
arrested/__init__.py
|
haskiindahouse/promosales-and-prizes-flask
|
5b9ae3e0506d847463e367180f4e784fe835c393
|
[
"MIT"
] | 46
|
2016-06-28T10:25:07.000Z
|
2019-12-10T20:53:47.000Z
|
arrested/__init__.py
|
haskiindahouse/promosales-and-prizes-flask
|
5b9ae3e0506d847463e367180f4e784fe835c393
|
[
"MIT"
] | 4
|
2018-02-10T10:53:08.000Z
|
2018-11-07T08:11:06.000Z
|
arrested/__init__.py
|
haskiindahouse/promosales-and-prizes-flask
|
5b9ae3e0506d847463e367180f4e784fe835c393
|
[
"MIT"
] | 9
|
2016-07-20T17:05:46.000Z
|
2022-02-15T18:40:17.000Z
|
__version__ = '0.1.3'
from .api import *
from .endpoint import *
from .resource import *
from .mixins import *
from .handlers import *
| 15.222222
| 23
| 0.708029
| 19
| 137
| 4.894737
| 0.578947
| 0.430108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026786
| 0.182482
| 137
| 8
| 24
| 17.125
| 0.803571
| 0
| 0
| 0
| 0
| 0
| 0.036765
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 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
| 1
| 0
|
0
| 5
|
7c74e5ddafca5cdacb4c8305ede29507931c5857
| 1,137
|
py
|
Python
|
apps/accounts/migrations/0005_auto_20180526_0649.py
|
drinks5/airdrops
|
d5c6686f2bbbd92e45059735294e310da49dec81
|
[
"MIT"
] | 1
|
2018-05-27T05:59:41.000Z
|
2018-05-27T05:59:41.000Z
|
apps/accounts/migrations/0005_auto_20180526_0649.py
|
drinksober/telegram_cloud
|
d5c6686f2bbbd92e45059735294e310da49dec81
|
[
"MIT"
] | 1
|
2021-01-29T10:26:14.000Z
|
2021-01-29T10:26:14.000Z
|
apps/accounts/migrations/0005_auto_20180526_0649.py
|
drinks5/airdrops
|
d5c6686f2bbbd92e45059735294e310da49dec81
|
[
"MIT"
] | 1
|
2018-05-30T08:56:20.000Z
|
2018-05-30T08:56:20.000Z
|
# Generated by Django 2.0.5 on 2018-05-26 06:49
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_account_remark'),
]
operations = [
migrations.AddField(
model_name='airdrop',
name='created',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, verbose_name='创建时间'),
preserve_default=False,
),
migrations.AddField(
model_name='airdrop',
name='updated_at',
field=models.DateTimeField(auto_now=True, verbose_name='Updated'),
),
migrations.AddField(
model_name='operation',
name='created',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, verbose_name='创建时间'),
preserve_default=False,
),
migrations.AddField(
model_name='operation',
name='updated_at',
field=models.DateTimeField(auto_now=True, verbose_name='Updated'),
),
]
| 30.72973
| 114
| 0.60774
| 116
| 1,137
| 5.784483
| 0.396552
| 0.107303
| 0.137109
| 0.160954
| 0.742176
| 0.742176
| 0.614009
| 0.614009
| 0.614009
| 0.614009
| 0
| 0.023143
| 0.277924
| 1,137
| 36
| 115
| 31.583333
| 0.794153
| 0.039578
| 0
| 0.733333
| 1
| 0
| 0.105505
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.066667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7c76815fbfe7675660b47db6ea2fc71136873d1b
| 940
|
py
|
Python
|
swagger_client/models/__init__.py
|
atlanticwave-sdx/sdx-lc-client
|
a442eb3efc327cd39b0d227329cef207ab1505e3
|
[
"Apache-2.0"
] | null | null | null |
swagger_client/models/__init__.py
|
atlanticwave-sdx/sdx-lc-client
|
a442eb3efc327cd39b0d227329cef207ab1505e3
|
[
"Apache-2.0"
] | null | null | null |
swagger_client/models/__init__.py
|
atlanticwave-sdx/sdx-lc-client
|
a442eb3efc327cd39b0d227329cef207ab1505e3
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
# flake8: noqa
"""
SDX LC
You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501
OpenAPI spec version: 1.0.0
Contact: yxin@renci.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model package
from swagger_client.models.api_response import ApiResponse
from swagger_client.models.connection import Connection
from swagger_client.models.link import Link
from swagger_client.models.link_measurement_period import LinkMeasurementPeriod
from swagger_client.models.location import Location
from swagger_client.models.node import Node
from swagger_client.models.port import Port
from swagger_client.models.service import Service
from swagger_client.models.topology import Topology
from swagger_client.models.user import User
| 34.814815
| 156
| 0.798936
| 136
| 940
| 5.389706
| 0.455882
| 0.150068
| 0.231924
| 0.313779
| 0.07367
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009662
| 0.119149
| 940
| 26
| 157
| 36.153846
| 0.875604
| 0.360638
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7ca5d239c5de4062718965c714916132bc321b37
| 152
|
py
|
Python
|
Examples/AppKit/CocoaBindings/ManualBindings/ManualBindings.py
|
Khan/pyobjc-framework-Cocoa
|
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
|
[
"MIT"
] | 132
|
2015-01-01T10:02:42.000Z
|
2022-03-09T12:51:01.000Z
|
mac/pyobjc-framework-Cocoa/Examples/AppKit/CocoaBindings/ManualBindings/ManualBindings.py
|
mba811/music-player
|
7998986b34cfda2244ef622adefb839331b81a81
|
[
"BSD-2-Clause"
] | 6
|
2015-01-06T08:23:19.000Z
|
2019-03-14T12:22:06.000Z
|
mac/pyobjc-framework-Cocoa/Examples/AppKit/CocoaBindings/ManualBindings/ManualBindings.py
|
mba811/music-player
|
7998986b34cfda2244ef622adefb839331b81a81
|
[
"BSD-2-Clause"
] | 27
|
2015-02-23T11:51:43.000Z
|
2022-03-07T02:34:18.000Z
|
from PyObjCTools import AppHelper
# import classes required to start application
import AppController
# start the event loop
AppHelper.runEventLoop()
| 19
| 46
| 0.828947
| 18
| 152
| 7
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138158
| 152
| 7
| 47
| 21.714286
| 0.961832
| 0.427632
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7cb866ba7635f02e77c312ecf7ecfa0a9d4771f1
| 458
|
py
|
Python
|
usaspending_api/etl/management/commands/update_description_fields.py
|
truthiswill/usaspending-api
|
bd7d915442e2ec94cc830c480ceeffd4479be6c0
|
[
"CC0-1.0"
] | null | null | null |
usaspending_api/etl/management/commands/update_description_fields.py
|
truthiswill/usaspending-api
|
bd7d915442e2ec94cc830c480ceeffd4479be6c0
|
[
"CC0-1.0"
] | 3
|
2020-02-12T01:16:46.000Z
|
2021-06-10T20:36:57.000Z
|
usaspending_api/etl/management/commands/update_description_fields.py
|
truthiswill/usaspending-api
|
bd7d915442e2ec94cc830c480ceeffd4479be6c0
|
[
"CC0-1.0"
] | null | null | null |
from django.core.management.base import BaseCommand
from usaspending_api.etl.helpers import update_model_description_fields
class Command(BaseCommand):
"""
This command will generate SQL using sqlsequencereset for each app, so that
one can repair the primary key sequences of the listed models
"""
help = "Update model description fields based on code"
def handle(self, *args, **options):
update_model_description_fields()
| 32.714286
| 79
| 0.755459
| 60
| 458
| 5.65
| 0.783333
| 0.097345
| 0.19469
| 0.247788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183406
| 458
| 13
| 80
| 35.230769
| 0.906417
| 0.299127
| 0
| 0
| 1
| 0
| 0.149502
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.833333
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7ce8738538890f4da91164313a72b91c115f238b
| 316
|
py
|
Python
|
src/rreil/comparator.py
|
tizmd/python-gdsl
|
d5782490a9a8b67b7e5667fafb51409c3693b010
|
[
"MIT"
] | null | null | null |
src/rreil/comparator.py
|
tizmd/python-gdsl
|
d5782490a9a8b67b7e5667fafb51409c3693b010
|
[
"MIT"
] | null | null | null |
src/rreil/comparator.py
|
tizmd/python-gdsl
|
d5782490a9a8b67b7e5667fafb51409c3693b010
|
[
"MIT"
] | null | null | null |
from .arity import Infix
class Comparator(Infix):
pass
class Eq(Comparator):
op_str = "=="
class Neq(Comparator):
op_str = "!="
class LeS(Comparator):
op_str = "<=s"
class LeU(Comparator):
op_str = "<=u"
class LtS(Comparator):
op_str = "<s"
class LtU(Comparator):
op_str = "<u"
| 12.153846
| 24
| 0.60443
| 42
| 316
| 4.404762
| 0.404762
| 0.389189
| 0.486486
| 0.216216
| 0.227027
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237342
| 316
| 25
| 25
| 12.64
| 0.767635
| 0
| 0
| 0
| 0
| 0
| 0.044728
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.066667
| 0.066667
| 0
| 0.933333
| 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
| 1
| 0
|
0
| 5
|
6b12a69b60c82e97bf4052e53ac65f121b0edbf4
| 73
|
py
|
Python
|
launchkey/transports/__init__.py
|
bgroveben/launchkey-python
|
c102d76040221059e7b87d96496edb1be3824d3b
|
[
"MIT"
] | 1
|
2018-12-06T04:42:35.000Z
|
2018-12-06T04:42:35.000Z
|
launchkey/transports/__init__.py
|
bgroveben/launchkey-python
|
c102d76040221059e7b87d96496edb1be3824d3b
|
[
"MIT"
] | 1
|
2018-12-11T22:31:03.000Z
|
2018-12-11T22:31:03.000Z
|
launchkey/transports/__init__.py
|
bgroveben/launchkey-python
|
c102d76040221059e7b87d96496edb1be3824d3b
|
[
"MIT"
] | null | null | null |
from .jose_auth import JOSETransport
from .http import RequestsTransport
| 24.333333
| 36
| 0.863014
| 9
| 73
| 6.888889
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 73
| 2
| 37
| 36.5
| 0.953846
| 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
| 1
| 0
|
0
| 5
|
862758a424b11a9a912018cfa818f08abf546bc1
| 53
|
py
|
Python
|
dizoo/gfootball/policy/__init__.py
|
uuid0000/DI-engine
|
cc2713fa01e5288bae21cfeb595729d665e092d1
|
[
"Apache-2.0"
] | 1
|
2021-07-13T02:56:34.000Z
|
2021-07-13T02:56:34.000Z
|
dizoo/gfootball/policy/__init__.py
|
uuid0000/DI-engine
|
cc2713fa01e5288bae21cfeb595729d665e092d1
|
[
"Apache-2.0"
] | null | null | null |
dizoo/gfootball/policy/__init__.py
|
uuid0000/DI-engine
|
cc2713fa01e5288bae21cfeb595729d665e092d1
|
[
"Apache-2.0"
] | null | null | null |
from .ppo_lstm import PPOPolicy, PPOCommandModePolicy
| 53
| 53
| 0.886792
| 6
| 53
| 7.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 53
| 1
| 53
| 53
| 0.938776
| 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
| 1
| 0
|
0
| 5
|
8635363fd8e7dbb3c411b4ef92b5aa2505a821ca
| 243
|
py
|
Python
|
nezukari/core/config.py
|
1olipop/nezuko
|
e98d044b6ebd83a073cabb17ac19e6b5a6d491d4
|
[
"MIT"
] | 3
|
2021-09-26T12:08:59.000Z
|
2021-09-27T02:11:10.000Z
|
nezukari/core/config.py
|
1olipop/nezuko
|
e98d044b6ebd83a073cabb17ac19e6b5a6d491d4
|
[
"MIT"
] | 1
|
2021-09-27T00:34:13.000Z
|
2021-09-27T00:34:13.000Z
|
nezukari/core/config.py
|
1olipop/nezuko
|
e98d044b6ebd83a073cabb17ac19e6b5a6d491d4
|
[
"MIT"
] | 1
|
2021-09-26T18:39:12.000Z
|
2021-09-26T18:39:12.000Z
|
import os
import dotenv
from typing import Final
dotenv.load_dotenv()
class Config:
token: Final[str] = os.getenv("BOT_TOKEN")
host: Final[str] = os.getenv("LAVALINK_HOST")
password: Final[str] = os.getenv("LAVALINK_PASSWORD")
| 18.692308
| 57
| 0.711934
| 34
| 243
| 4.970588
| 0.470588
| 0.142012
| 0.177515
| 0.284024
| 0.284024
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 243
| 12
| 58
| 20.25
| 0.828431
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.375
| 0
| 0.875
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
86511d2df48b2c9326d63774bf1e733c8ce8761e
| 125
|
py
|
Python
|
venv/Lib/site-packages/stroke/__init__.py
|
jedeland/jedel_name_generator
|
8d220c7e6a13e013d9664402cb0262f323a4056d
|
[
"MIT"
] | null | null | null |
venv/Lib/site-packages/stroke/__init__.py
|
jedeland/jedel_name_generator
|
8d220c7e6a13e013d9664402cb0262f323a4056d
|
[
"MIT"
] | null | null | null |
venv/Lib/site-packages/stroke/__init__.py
|
jedeland/jedel_name_generator
|
8d220c7e6a13e013d9664402cb0262f323a4056d
|
[
"MIT"
] | null | null | null |
from .line import *
from .parse import *
from .search import *
__all__ = (*line.__all__, *parse.__all__, *search.__all__)
| 15.625
| 58
| 0.704
| 16
| 125
| 4.5
| 0.375
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 125
| 7
| 59
| 17.857143
| 0.685714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 1
| 0
|
0
| 5
|
8665b7c5200bacebb3457982389adc53465fb672
| 37
|
py
|
Python
|
pyleft/__main__.py
|
NathanVaughn/pyleft
|
3e2c0bbf84416afa4ed653a65f3fd37e589c7efa
|
[
"MIT"
] | null | null | null |
pyleft/__main__.py
|
NathanVaughn/pyleft
|
3e2c0bbf84416afa4ed653a65f3fd37e589c7efa
|
[
"MIT"
] | 2
|
2021-12-09T00:20:21.000Z
|
2022-01-01T23:26:17.000Z
|
pyleft/__main__.py
|
NathanVaughn/pyleft
|
3e2c0bbf84416afa4ed653a65f3fd37e589c7efa
|
[
"MIT"
] | null | null | null |
from . import console
console.run()
| 9.25
| 21
| 0.72973
| 5
| 37
| 5.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 37
| 3
| 22
| 12.333333
| 0.870968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
86aa9d6c3cea48d68269661e644edfc2c6f5029a
| 95
|
py
|
Python
|
decaylanguage/decay/__init__.py
|
chrisburr/decaylanguage
|
12aaaf10cc4e8e9aad8667a1acec5a7f7d0bbeb1
|
[
"BSD-3-Clause"
] | null | null | null |
decaylanguage/decay/__init__.py
|
chrisburr/decaylanguage
|
12aaaf10cc4e8e9aad8667a1acec5a7f7d0bbeb1
|
[
"BSD-3-Clause"
] | null | null | null |
decaylanguage/decay/__init__.py
|
chrisburr/decaylanguage
|
12aaaf10cc4e8e9aad8667a1acec5a7f7d0bbeb1
|
[
"BSD-3-Clause"
] | null | null | null |
from .decay import DaughtersDict, DecayMode, DecayChain
from .viewer import DecayChainViewer
| 19
| 55
| 0.831579
| 10
| 95
| 7.9
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126316
| 95
| 4
| 56
| 23.75
| 0.951807
| 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
| 1
| 0
|
0
| 5
|
86c90766cc99be52453de1a0a87e736e27a0fbed
| 219
|
py
|
Python
|
src/lto/accounts/ed25519/__init__.py
|
mustafa-travisci/lto-api.python
|
0493a46b69575e94d09a038dadf472b46f88d036
|
[
"MIT"
] | null | null | null |
src/lto/accounts/ed25519/__init__.py
|
mustafa-travisci/lto-api.python
|
0493a46b69575e94d09a038dadf472b46f88d036
|
[
"MIT"
] | null | null | null |
src/lto/accounts/ed25519/__init__.py
|
mustafa-travisci/lto-api.python
|
0493a46b69575e94d09a038dadf472b46f88d036
|
[
"MIT"
] | null | null | null |
from lto.accounts.ed25519.account_ed25519 import AccountED25519 as Account
from lto.accounts.ed25519.account_factory_ed25519 import AccountFactoryED25519 as AccountFactory
from nacl.signing import SigningKey, VerifyKey
| 54.75
| 96
| 0.885845
| 27
| 219
| 7.074074
| 0.555556
| 0.073298
| 0.157068
| 0.230366
| 0.303665
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148515
| 0.077626
| 219
| 3
| 97
| 73
| 0.79703
| 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
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
810063485740a4e573d6d20bb9d95f519f7b452f
| 167,375
|
py
|
Python
|
Astronomy Astrophysics Astrometry Astrodynamics AAAA/Seeing Stars/seeing-stars.py
|
errir503/ADDVulcan
|
df5d818cb9eb7b4165d1d21533c689bedc5941ff
|
[
"Apache-2.0"
] | 34
|
2020-06-14T20:39:57.000Z
|
2022-02-15T14:55:13.000Z
|
Astronomy Astrophysics Astrometry Astrodynamics AAAA/Seeing Stars/seeing-stars.py
|
ADDVulcan/ADDVulcan
|
df5d818cb9eb7b4165d1d21533c689bedc5941ff
|
[
"Apache-2.0"
] | null | null | null |
Astronomy Astrophysics Astrometry Astrodynamics AAAA/Seeing Stars/seeing-stars.py
|
ADDVulcan/ADDVulcan
|
df5d818cb9eb7b4165d1d21533c689bedc5941ff
|
[
"Apache-2.0"
] | 8
|
2020-06-15T03:25:50.000Z
|
2022-01-13T23:42:26.000Z
|
#!/usr/bin/env python3
from PIL import Image
data1 = [
[1,5,9,3,2,4,6,9,1,3,7,5,6,6,2,7,1,8,2,2,1,8,8,2,5,7,2,6,9,5,8,3,1,2,8,8,8,7,1,1,0,6,8,1,5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,3,3,0,9,0,8,6,1,0,0,2,3,6,8,8,7,1,1,7,0,8,5,1,7,6,9,8,9,7,2,6,5,9,8,9,7,0,1,1,3,5,7,7,0,3,1,9,1,2,4,6,2,1,3,3,9,2,7,5,6,2,6,6,1,6,0,4,4,7,6,8,7,7,4,2,7,1,2,6,8,0,4,9,1,6,6,7,8,6,1,3,5,9,6,2,8,1,5],
]
flattened1 = bytes([pixel for row in data1 for pixel in row])
flattened2 = bytes([pixel for row in data2 for pixel in row])
flattened3 = bytes([pixel for row in data3 for pixel in row])
flattened4 = bytes([pixel for row in data4 for pixel in row])
flattened5 = bytes([pixel for row in data5 for pixel in row])
image1 = Image.frombytes('L', (128, 128), flattened1)
image1.save('stars1.png', 'PNG')
image2 = Image.frombytes('L', (128, 128), flattened2)
image2.save('stars2.png', 'PNG')
image3 = Image.frombytes('L', (128, 128), flattened3)
image3.save('stars3.png', 'PNG')
image4 = Image.frombytes('L', (128, 128), flattened4)
image4.save('stars4.png', 'PNG')
image5 = Image.frombytes('L', (128, 128), flattened5)
image5.save('stars5.png', 'PNG')
| 247.962963
| 272
| 0.497458
| 82,048
| 167,375
| 1.014796
| 0.00234
| 0.021138
| 0.004035
| 0.000961
| 0.953676
| 0.351229
| 0.049206
| 0.00442
| 0
| 0
| 0
| 0.496642
| 0.004589
| 167,375
| 674
| 273
| 248.330861
| 0.003109
| 0.000125
| 0
| 0
| 0
| 0
| 0.000418
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001502
| 0
| 0.001502
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
810a3de8a5559a8ba1a7659e41abaed841d43e57
| 52
|
py
|
Python
|
haystack/nodes/connector/__init__.py
|
mapapa/haystack
|
79fdda8a7cf393d774803608a4874f2a6e63cf6f
|
[
"Apache-2.0"
] | 7
|
2022-01-22T18:58:54.000Z
|
2022-03-18T17:06:35.000Z
|
haystack/nodes/connector/__init__.py
|
mapapa/haystack
|
79fdda8a7cf393d774803608a4874f2a6e63cf6f
|
[
"Apache-2.0"
] | 17
|
2021-12-08T18:00:58.000Z
|
2021-12-28T14:03:27.000Z
|
haystack/nodes/connector/__init__.py
|
mapapa/haystack
|
79fdda8a7cf393d774803608a4874f2a6e63cf6f
|
[
"Apache-2.0"
] | 1
|
2022-01-21T02:05:15.000Z
|
2022-01-21T02:05:15.000Z
|
from haystack.nodes.connector.crawler import Crawler
| 52
| 52
| 0.884615
| 7
| 52
| 6.571429
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 52
| 1
| 52
| 52
| 0.938776
| 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
| 1
| 0
|
0
| 5
|
813697f1ae9a398c69dc8d986d8a922c9f52ca82
| 99
|
py
|
Python
|
lib/abridger/extraction_model/__init__.py
|
willangenent/abridger
|
6daa80f7360339376b38544ce60694c5addaa30f
|
[
"MIT"
] | 8
|
2016-10-19T14:15:34.000Z
|
2020-06-23T09:37:02.000Z
|
lib/abridger/extraction_model/__init__.py
|
freewilll/abridger
|
6daa80f7360339376b38544ce60694c5addaa30f
|
[
"MIT"
] | null | null | null |
lib/abridger/extraction_model/__init__.py
|
freewilll/abridger
|
6daa80f7360339376b38544ce60694c5addaa30f
|
[
"MIT"
] | null | null | null |
from .model import ExtractionModel # noqa
from .relation import Relation, merge_relations # noqa
| 33
| 55
| 0.79798
| 12
| 99
| 6.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 2
| 56
| 49.5
| 0.928571
| 0.090909
| 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
| 1
| 0
|
0
| 5
|
813b31d72f775a8410a8c1f349a83a61233abb0c
| 111
|
py
|
Python
|
application.py
|
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
|
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
|
[
"MIT"
] | 7
|
2015-11-21T20:43:37.000Z
|
2020-07-22T13:20:18.000Z
|
application.py
|
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
|
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
|
[
"MIT"
] | 783
|
2015-04-07T16:34:57.000Z
|
2021-07-27T12:13:02.000Z
|
application.py
|
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
|
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
|
[
"MIT"
] | 20
|
2015-06-13T15:37:23.000Z
|
2021-04-10T18:02:09.000Z
|
import os
from app import create_app
application = create_app(os.getenv("DM_ENVIRONMENT") or "development")
| 15.857143
| 70
| 0.783784
| 16
| 111
| 5.25
| 0.6875
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126126
| 111
| 6
| 71
| 18.5
| 0.865979
| 0
| 0
| 0
| 0
| 0
| 0.225225
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
|
0
| 5
|
d4a904b406a45da5b380d4f8440ef23610e6d43f
| 49
|
py
|
Python
|
unifier/__init__.py
|
jtorreshnl/unifier
|
dba0de9af7ec0f749b1be67cea200622f66beadc
|
[
"MIT"
] | null | null | null |
unifier/__init__.py
|
jtorreshnl/unifier
|
dba0de9af7ec0f749b1be67cea200622f66beadc
|
[
"MIT"
] | null | null | null |
unifier/__init__.py
|
jtorreshnl/unifier
|
dba0de9af7ec0f749b1be67cea200622f66beadc
|
[
"MIT"
] | null | null | null |
from unifier.ureqs import (
UnifierRequest
)
| 12.25
| 27
| 0.734694
| 5
| 49
| 7.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204082
| 49
| 3
| 28
| 16.333333
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0780346b6c1affa0fc4616f7415db1aecb309ab9
| 873
|
py
|
Python
|
tests/test_version.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 10
|
2015-07-24T07:33:13.000Z
|
2021-06-15T15:05:06.000Z
|
tests/test_version.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 1
|
2016-08-08T19:13:40.000Z
|
2016-08-08T19:13:40.000Z
|
tests/test_version.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 11
|
2015-05-06T08:46:09.000Z
|
2019-05-08T09:41:36.000Z
|
# Copyright (c) 2015, Menno Smits
# Released subject to the New BSD License
# Please see http://en.wikipedia.org/wiki/BSD_licenses
from __future__ import unicode_literals
from imapclient.version import _imapclient_version_string
from .util import unittest
class TestVersionString(unittest.TestCase):
def test_dot_oh(self):
self.assertEqual(_imapclient_version_string((1, 0, 0, 'final')), '1.0.0')
def test_minor(self):
self.assertEqual(_imapclient_version_string((2, 1, 0, 'final')), '2.1.0')
def test_point_release(self):
self.assertEqual(_imapclient_version_string((1, 2, 3, 'final')), '1.2.3')
def test_alpha(self):
self.assertEqual(_imapclient_version_string((2, 1, 0, 'alpha')), '2.1.0-alpha')
def test_beta_point(self):
self.assertEqual(_imapclient_version_string((2, 1, 3, 'beta')), '2.1.3-beta')
| 32.333333
| 87
| 0.705613
| 126
| 873
| 4.634921
| 0.388889
| 0.203767
| 0.236301
| 0.248288
| 0.376712
| 0.376712
| 0.376712
| 0.229452
| 0.15411
| 0
| 0
| 0.046133
| 0.155785
| 873
| 26
| 88
| 33.576923
| 0.746269
| 0.142039
| 0
| 0
| 0
| 0
| 0.080537
| 0
| 0
| 0
| 0
| 0
| 0.357143
| 1
| 0.357143
| false
| 0
| 0.214286
| 0
| 0.642857
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
0783b122526862e543ebf8cac6291e818f8d062b
| 126
|
py
|
Python
|
homework_day_3/9.py
|
wxz896446511/Manyu
|
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
|
[
"Apache-2.0"
] | 4
|
2018-09-26T00:48:02.000Z
|
2020-08-21T02:06:59.000Z
|
homework_day_3/9.py
|
wxz896446511/Manyu
|
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
|
[
"Apache-2.0"
] | null | null | null |
homework_day_3/9.py
|
wxz896446511/Manyu
|
5974ba3a3f27fbaf53bf9f876150ff764a70ac46
|
[
"Apache-2.0"
] | 1
|
2020-08-21T02:07:04.000Z
|
2020-08-21T02:07:04.000Z
|
for i in range (1,10000):
s=0
for k in range(1,i):
if i%k==0:
s=s+k
if i==s:
print(i)
| 15.75
| 25
| 0.396825
| 26
| 126
| 1.923077
| 0.423077
| 0.28
| 0.32
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128571
| 0.444444
| 126
| 7
| 26
| 18
| 0.585714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0
| 1
| 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
| 5
|
07912b9f3d7c5687a899c02eb6c10ddd70213159
| 148
|
py
|
Python
|
debug.py
|
technerdmike/supportCentreQueue
|
e6c26400ba57efd0227150843262382fa581c564
|
[
"Apache-2.0"
] | null | null | null |
debug.py
|
technerdmike/supportCentreQueue
|
e6c26400ba57efd0227150843262382fa581c564
|
[
"Apache-2.0"
] | null | null | null |
debug.py
|
technerdmike/supportCentreQueue
|
e6c26400ba57efd0227150843262382fa581c564
|
[
"Apache-2.0"
] | null | null | null |
"""
title: debug program
"""
from app import app
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True)
# app.run(host='0.0.0.0')
| 14.8
| 39
| 0.594595
| 26
| 148
| 3.076923
| 0.5
| 0.15
| 0.15
| 0.275
| 0.35
| 0.35
| 0.35
| 0
| 0
| 0
| 0
| 0.066116
| 0.182432
| 148
| 9
| 40
| 16.444444
| 0.595041
| 0.304054
| 0
| 0
| 0
| 0
| 0.157895
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0796ab7ceb38a2d7b41d14af7d486d877afc99e5
| 175
|
py
|
Python
|
utils.py
|
GBLin5566/toward-controlled-generation-of-text-pytorch
|
dfb95ccb6833321930cc08004eeffbeaf71082ed
|
[
"MIT"
] | 109
|
2017-10-11T13:53:02.000Z
|
2022-01-16T19:37:39.000Z
|
utils.py
|
GBLin5566/toward-controlled-generation-of-text-pytorch
|
dfb95ccb6833321930cc08004eeffbeaf71082ed
|
[
"MIT"
] | 8
|
2017-10-10T04:32:06.000Z
|
2018-09-18T15:50:19.000Z
|
utils.py
|
GBLin5566/toward-controlled-generation-of-text-pytorch
|
dfb95ccb6833321930cc08004eeffbeaf71082ed
|
[
"MIT"
] | 28
|
2017-11-12T09:26:12.000Z
|
2021-11-04T12:30:56.000Z
|
from torch import cuda
def check_cuda(torch_var, use_cuda=False):
if use_cuda and cuda.is_available():
return torch_var.cuda()
else:
return torch_var
| 21.875
| 42
| 0.691429
| 27
| 175
| 4.222222
| 0.555556
| 0.210526
| 0.245614
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234286
| 175
| 7
| 43
| 25
| 0.850746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0
| 0.666667
| 0
| 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
| 1
| 0
|
0
| 5
|
079d6bb34ea9df49e0b0d10f3b736c630ea949ac
| 182
|
py
|
Python
|
Group/forms.py
|
Micha546/TasKing
|
2a2d56a6081568d0300635fecfff8aae1fdcce29
|
[
"MIT"
] | null | null | null |
Group/forms.py
|
Micha546/TasKing
|
2a2d56a6081568d0300635fecfff8aae1fdcce29
|
[
"MIT"
] | null | null | null |
Group/forms.py
|
Micha546/TasKing
|
2a2d56a6081568d0300635fecfff8aae1fdcce29
|
[
"MIT"
] | null | null | null |
from .models import Group
from django.forms import ModelForm
class GroupCreationForm(ModelForm):
class Meta:
model = Group
fields = ['name', 'prize', 'about']
| 18.2
| 43
| 0.664835
| 20
| 182
| 6.05
| 0.75
| 0.231405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236264
| 182
| 9
| 44
| 20.222222
| 0.870504
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
|
0
| 5
|
079df3910b12272a73a698a97136f89cfed08244
| 5,083
|
py
|
Python
|
ckanext/datastore/tests/test_configure.py
|
code4sac/ckan
|
5354769c480f4ad115bf53ca7450d3f49c837edb
|
[
"Apache-2.0"
] | 1
|
2017-01-07T09:42:46.000Z
|
2017-01-07T09:42:46.000Z
|
ckanext/datastore/tests/test_configure.py
|
code4sac/ckan
|
5354769c480f4ad115bf53ca7450d3f49c837edb
|
[
"Apache-2.0"
] | null | null | null |
ckanext/datastore/tests/test_configure.py
|
code4sac/ckan
|
5354769c480f4ad115bf53ca7450d3f49c837edb
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import nose.tools
import pyutilib.component.core
import ckan.plugins
import ckanext.datastore.plugin as plugin
class TestConfiguration(unittest.TestCase):
def setUp(self):
self._original_plugin = ckan.plugins.unload('datastore')
pyutilib.component.core.PluginGlobals.singleton_services()[plugin.DatastorePlugin] = True
self.p = pyutilib.component.core.PluginGlobals.singleton_services()[plugin.DatastorePlugin] = ckan.plugins.load('datastore')
def tearDown(self):
ckan.plugins.unload('datastore')
pyutilib.component.core.PluginGlobals.singleton_services()[plugin.DatastorePlugin] = self._original_plugin
def test_legacy_mode_default(self):
assert not self.p.legacy_mode
def test_set_legacy_mode(self):
c = {
'sqlalchemy.url': 'bar',
'ckan.datastore.write_url': 'foo'
}
try:
self.p.configure(c)
except Exception:
pass
assert self.p.legacy_mode
assert self.p.write_url == 'foo'
assert self.p.read_url == 'foo'
def test_check_separate_write_and_read_url(self):
self.p.write_url = 'postgresql://u:pass@localhost/ds'
self.p.read_url = 'postgresql://u:pass@localhost/ds'
assert self.p._same_read_and_write_url()
self.p.write_url = 'postgresql://u:pass@localhost/ds'
self.p.read_url = 'postgresql://u2:pass@localhost/ds'
assert not self.p._same_read_and_write_url()
def test_same_ckan_and_datastore_db(self):
self.p.read_url = 'postgresql://u2:pass@localhost/ckan'
self.p.ckan_url = 'postgresql://u:pass@localhost/ckan'
assert self.p._same_ckan_and_datastore_db()
self.p.read_url = 'postgresql://u:pass@localhost/dt'
self.p.ckan_url = 'postgresql://u:pass@localhost/ckan'
assert not self.p._same_ckan_and_datastore_db()
def test_setup_plugin_for_check_urls_and_permissions_tests_should_leave_the_plugin_in_a_valid_state(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p._check_urls_and_permissions() # Should be OK
def test_check_urls_and_permissions_requires_different_ckan_and_datastore_dbs(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p._same_ckan_and_datastore_db = lambda: False
self.p._check_urls_and_permissions() # Should be OK
self.p._same_ckan_and_datastore_db = lambda: True
nose.tools.assert_raises(InvalidUrlsOrPermissionsException, self.p._check_urls_and_permissions)
def test_check_urls_and_permissions_requires_different_read_and_write_urls_when_not_in_legacy_mode(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p.legacy_mode = False
self.p._same_read_and_write_url = lambda: False
self.p._check_urls_and_permissions() # Should be OK
self.p._same_read_and_write_url = lambda: True
nose.tools.assert_raises(InvalidUrlsOrPermissionsException, self.p._check_urls_and_permissions)
def test_check_urls_and_permissions_doesnt_require_different_read_and_write_urls_when_in_legacy_mode(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p.legacy_mode = True
self.p._same_read_and_write_url = lambda: False
self.p._check_urls_and_permissions() # Should be OK
self.p._same_read_and_write_url = lambda: True
self.p._check_urls_and_permissions() # Should be OK
def test_check_urls_and_permissions_requires_read_connection_with_correct_privileges_when_not_in_legacy_mode(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p.legacy_mode = False
self.p._read_connection_has_correct_privileges = lambda: True
self.p._check_urls_and_permissions() # Should be OK
self.p._read_connection_has_correct_privileges = lambda: False
nose.tools.assert_raises(InvalidUrlsOrPermissionsException, self.p._check_urls_and_permissions)
def test_check_urls_and_permissions_doesnt_care_about_read_connection_privileges_when_in_legacy_mode(self):
self.setUp_plugin_for_check_urls_and_permissions_tests()
self.p.legacy_mode = True
self.p._read_connection_has_correct_privileges = lambda: True
self.p._check_urls_and_permissions() # Should be OK
self.p._read_connection_has_correct_privileges = lambda: False
self.p._check_urls_and_permissions() # Should be OK
def setUp_plugin_for_check_urls_and_permissions_tests(self):
def _raise_invalid_urls_or_permissions_exception(message):
raise InvalidUrlsOrPermissionsException(message)
self.p._same_ckan_and_datastore_db = lambda: False
self.p.legacy_mode = True
self.p._same_read_and_write_url = lambda: False
self.p._read_connection_has_correct_privileges = lambda: True
self.p._log_or_raise = _raise_invalid_urls_or_permissions_exception
class InvalidUrlsOrPermissionsException(Exception):
pass
| 42.714286
| 132
| 0.745032
| 688
| 5,083
| 5.034884
| 0.136628
| 0.069284
| 0.083141
| 0.159353
| 0.777425
| 0.773961
| 0.732102
| 0.702656
| 0.627598
| 0.614319
| 0
| 0.000477
| 0.17588
| 5,083
| 118
| 133
| 43.076271
| 0.82645
| 0.020264
| 0
| 0.454545
| 0
| 0
| 0.068598
| 0.057936
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0.159091
| false
| 0.113636
| 0.056818
| 0
| 0.238636
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
07d31135e8f7b0129594df0ae1831ccf21601d99
| 428
|
py
|
Python
|
boatsandjoy_api/bookings/exceptions.py
|
bertini36/boatsandjoy-api
|
b22d82eb02947218d924b381160d622ded9e1d98
|
[
"MIT"
] | null | null | null |
boatsandjoy_api/bookings/exceptions.py
|
bertini36/boatsandjoy-api
|
b22d82eb02947218d924b381160d622ded9e1d98
|
[
"MIT"
] | 12
|
2021-04-08T21:18:37.000Z
|
2022-03-12T00:39:39.000Z
|
boatsandjoy_api/bookings/exceptions.py
|
bertini36/boatsandjoy-api
|
b22d82eb02947218d924b381160d622ded9e1d98
|
[
"MIT"
] | null | null | null |
from boatsandjoy_api.core.exceptions import BoatsAndJoyException
class BookingsApiException(BoatsAndJoyException):
pass
class BookingInvalidDataError(BookingsApiException):
pass
class NoSlotsSelected(BookingsApiException):
pass
class BookingNotFound(BookingsApiException):
pass
class BookingAlreadyConfirmed(BookingsApiException):
pass
class BookingAlreadyPending(BookingsApiException):
pass
| 16.461538
| 64
| 0.817757
| 31
| 428
| 11.258065
| 0.483871
| 0.12894
| 0.332378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135514
| 428
| 25
| 65
| 17.12
| 0.943243
| 0
| 0
| 0.461538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.461538
| 0.076923
| 0
| 0.538462
| 0
| 0
| 0
| 1
| 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
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
07d4c9f69214a850d1846da274b8dae05b23a662
| 19,671
|
py
|
Python
|
tweetf0rm/twitterapi/twitter_api.py
|
amaurywalbert/mytweetf0rm
|
2272b53214b3669eb104762f5b5b38ff4adda435
|
[
"MIT"
] | null | null | null |
tweetf0rm/twitterapi/twitter_api.py
|
amaurywalbert/mytweetf0rm
|
2272b53214b3669eb104762f5b5b38ff4adda435
|
[
"MIT"
] | null | null | null |
tweetf0rm/twitterapi/twitter_api.py
|
amaurywalbert/mytweetf0rm
|
2272b53214b3669eb104762f5b5b38ff4adda435
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Users.py: all user related farming; friends, followers, user objects; etc.
You can use this raw class, but normally you will use a script in the scripts folder
'''
import logging
logger = logging.getLogger(__name__)
import twython
import json, os, time
from tweetf0rm.exceptions import NotImplemented, MissingArgs, WrongArgs
from tweetf0rm.utils import md5
MAX_RETRY_CNT = 5
class TwitterAPI(twython.Twython):
def __init__(self, *args, **kwargs):
"""
Constructor with apikeys, and output folder
* apikeys: apikeys
"""
logger.info(kwargs)
import copy
apikeys = copy.copy(kwargs.pop('apikeys', None))
if not apikeys:
raise MissingArgs('apikeys is missing')
self.apikeys = copy.copy(apikeys) # keep a copy
#self.crawler_id = kwargs.pop('crawler_id', None)
oauth2 = kwargs.pop('oauth2', True) # default to use oauth2 (application level access, read-only)
if oauth2:
apikeys.pop('oauth_token')
apikeys.pop('oauth_token_secret')
twitter = twython.Twython(apikeys['app_key'], apikeys['app_secret'], oauth_version=2)
access_token = twitter.obtain_access_token()
kwargs['access_token'] = access_token
apikeys.pop('app_secret')
kwargs.update(apikeys)
super(TwitterAPI, self).__init__(*args, **kwargs)
def rate_limit_error_occured(self, resource, api):
rate_limits = self.get_application_rate_limit_status(resources=[resource])
#e.g., ['resources']['followers']['/followers/list']['reset']
wait_for = int(rate_limits['resources'][resource][api]['reset']) - time.time() + 10
#logger.debug(rate_limits)
logger.warn('[%s] rate limit reached, sleep for %d'%(rate_limits['rate_limit_context'], wait_for))
if wait_for < 0:
wait_for = 60
time.sleep(wait_for)
def find_all_followers(self, user_id=None, write_to_handlers = [], cmd_handlers=[], bucket="followers"):
if (not user_id):
raise MissingArgs("user_id cannot be None")
retry_cnt = MAX_RETRY_CNT
cursor = -1
while cursor != 0 and retry_cnt > 1:
try:
followers = self.get_followers_list(user_id=user_id, cursor=cursor, count=200)
for handler in write_to_handlers:
handler.append(json.dumps(followers), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(followers), bucket=bucket, key=user_id)
cursor = int(followers['next_cursor'])
logger.debug("find #%d followers... NEXT_CURSOR: %d"%(len(followers["users"]), cursor))
time.sleep(2)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('followers', '/followers/list')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
logger.debug("finished find_all_followers for %s..."%(user_id))
def find_all_follower_ids(self, user_id=None, write_to_handlers = [], cmd_handlers=[], bucket = "follower_ids"):
if (not user_id):
raise MissingArgs("user_id cannot be None")
retry_cnt = MAX_RETRY_CNT
cursor = -1
while cursor != 0 and retry_cnt > 1:
try:
follower_ids = self.get_followers_ids(user_id=user_id, cursor=cursor, count=200)
for handler in write_to_handlers:
handler.append(json.dumps(follower_ids), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(follower_ids), bucket=bucket, key=user_id)
cursor = int(follower_ids['next_cursor'])
logger.debug("find #%d followers... NEXT_CURSOR: %d"%(len(follower_ids["ids"]), cursor))
time.sleep(2)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('followers', '/followers/ids')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
logger.debug("finished find_all_follower_ids for %s..."%(user_id))
def find_all_friends(self, user_id=None, write_to_handlers=[], cmd_handlers=[], bucket="friends"):
if (not user_id):
raise MissingArgs("user_id cannot be None")
retry_cnt = MAX_RETRY_CNT
cursor = -1
while cursor != 0 and retry_cnt > 1:
try:
friends = self.get_friends_list(user_id=user_id, cursor=cursor, count=200)
for handler in write_to_handlers:
handler.append(json.dumps(friends), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(friends), bucket=bucket, key=user_id)
cursor = int(friends['next_cursor'])
logger.debug("find #%d friends... NEXT_CURSOR: %d"%(len(friends["users"]), cursor))
time.sleep(2)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('friends', '/friends/list')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
logger.debug("finished find_all_friends for %s..."%(user_id))
def find_all_friend_ids(self, user_id=None, write_to_handlers=[], cmd_handlers=[], bucket="friend_ids"):
if (not user_id):
raise MissingArgs("user_id cannot be None")
retry_cnt = MAX_RETRY_CNT
cursor = -1
while cursor != 0 and retry_cnt > 1:
try:
friend_ids = self.get_friends_ids(user_id=user_id, cursor=cursor, count=200)
for handler in write_to_handlers:
handler.append(json.dumps(friend_ids), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(friend_ids), bucket=bucket, key=user_id)
cursor = int(friend_ids['next_cursor'])
logger.debug("find #%d friend_ids... NEXT_CURSOR: %d"%(len(friend_ids["ids"]), cursor))
time.sleep(2)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('friends', '/friends/ids')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
logger.debug("finished find_all_friend_ids for %s..."%(user_id))
def fetch_user_timeline(self, user_id = None, write_to_handlers=[], cmd_handlers=[], bucket="timelines"):
if not user_id:
raise Exception("user_timeline: user_id cannot be None")
prev_max_id = -1
current_max_id = 0
last_lowest_id = current_max_id # used to workaround users who has less than 200 tweets, 1 loop is enough...
cnt = 0
retry_cnt = MAX_RETRY_CNT
timeline = [] # holder tweets in memory... you won't get more than 3,200 tweets per user, so I guess this is fine...
while current_max_id != prev_max_id and retry_cnt > 1:
try:
if current_max_id > 0:
tweets = self.get_user_timeline(user_id=user_id, max_id=current_max_id - 1, count=200)
else:
tweets = self.get_user_timeline(user_id=user_id, count=200)
prev_max_id = current_max_id # if no new tweets are found, the prev_max_id will be the same as current_max_id
for tweet in tweets:
if current_max_id == 0 or current_max_id > int(tweet['id']):
current_max_id = int(tweet['id'])
#no new tweets found
if (prev_max_id == current_max_id):
break;
timeline.extend(tweets)
cnt += len(tweets)
logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
time.sleep(1)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('statuses', '/statuses/user_timeline')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (len(timeline) > 0):
for tweet in timeline:
for handler in write_to_handlers:
handler.append(json.dumps(tweet), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(tweet), bucket=bucket, key=user_id)
else:
for handler in write_to_handlers:
handler.append(json.dumps({}), bucket=bucket, key=user_id)
logger.debug("[%s] total tweets: %d "%(user_id, cnt))
##########################################################################################################################################################################
def fetch_user_retweets(self, user_id = None, write_to_handlers=[], cmd_handlers=[], bucket="retweets"):
if not user_id:
raise Exception("user_retweets: user_id cannot be None")
prev_max_id = -1
current_max_id = 0
last_lowest_id = current_max_id # used to workaround users who has less than 200 tweets, 1 loop is enough...
cnt = 0
retry_cnt = MAX_RETRY_CNT
retweets = [] # holder tweets in memory... you won't get more than 3,200 tweets per user, so I guess this is fine...
while current_max_id != prev_max_id and retry_cnt > 1:
try:
if current_max_id > 0:
tweets = self.get_user_timeline(user_id=user_id, max_id=current_max_id - 1, count=200)
else:
tweets = self.get_user_timeline(user_id=user_id, count=200)
prev_max_id = current_max_id # if no new tweets are found, the prev_max_id will be the same as current_max_id
for tweet in tweets:
if current_max_id == 0 or current_max_id > int(tweet['id']):
current_max_id = int(tweet['id'])
#no new tweets found
if (prev_max_id == current_max_id):
break;
retweets.extend(tweets)
cnt += len(tweets)
logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
time.sleep(1)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('statuses', '/statuses/user_retweets')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (len(retweets) > 0):
for tweet in retweets:
if hasattr(tweet, 'retweeted_status'):
status = {'retweet_id':tweet['retweeted_status']['id'],'author_id': tweet['retweeted_status']['user']['id']}
for handler in write_to_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
else:
for handler in write_to_handlers:
handler.append(json.dumps({}), bucket=bucket, key=user_id)
logger.debug("[%s] total retweets: %d "%(user_id, cnt))
##########################################################################################################################################################################
##########################################################################################################################################################################
def fetch_user_favorites(self, user_id = None, write_to_handlers=[], cmd_handlers=[], bucket="favorites"):
if not user_id:
raise Exception("user_favorites: user_id cannot be None")
prev_max_id = -1
current_max_id = 0
last_lowest_id = current_max_id # used to workaround users who has less than 200 tweets, 1 loop is enough...
cnt = 0
retry_cnt = MAX_RETRY_CNT
favorites = [] # holder tweets in memory... you won't get more than 3,200 tweets per user, so I guess this is fine...
while current_max_id != prev_max_id and retry_cnt > 1:
try:
if current_max_id > 0:
tweets = self.get_favorites(user_id=user_id, max_id=current_max_id - 1, count=200)
else:
tweets = self.get_favorites(user_id=user_id, count=200)
prev_max_id = current_max_id # if no new tweets are found, the prev_max_id will be the same as current_max_id
for tweet in tweets:
if current_max_id == 0 or current_max_id > int(tweet['id']):
current_max_id = int(tweet['id'])
#no new tweets found
if (prev_max_id == current_max_id):
break;
favorites.extend(tweets)
cnt += len(tweets)
logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
time.sleep(1)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('statuses', '/statuses/user_favorites')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (len(favorites) > 0):
for tweet in favorites:
status = {'favorite_id':tweet['id'],'author_id': tweet['user']['id']}
for handler in write_to_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
else:
for handler in write_to_handlers:
handler.append(json.dumps({}), bucket=bucket, key=user_id)
logger.debug("[%s] total tweets: %d "%(user_id, cnt))
##########################################################################################################################################################################
##########################################################################################################################################################################
def fetch_user_mentions(self, user_id = None, write_to_handlers=[], cmd_handlers=[], bucket="mentions"):
if not user_id:
raise Exception("user_mentions: user_id cannot be None")
prev_max_id = -1
current_max_id = 0
last_lowest_id = current_max_id # used to workaround users who has less than 200 tweets, 1 loop is enough...
cnt = 0
retry_cnt = MAX_RETRY_CNT
mentions = [] # holder tweets in memory... you won't get more than 3,200 tweets per user, so I guess this is fine...
while current_max_id != prev_max_id and retry_cnt > 1:
try:
if current_max_id > 0:
tweets = self.get_user_timeline(user_id=user_id, max_id=current_max_id - 1, count=200)
else:
tweets = self.get_user_timeline(user_id=user_id, count=200)
prev_max_id = current_max_id # if no new tweets are found, the prev_max_id will be the same as current_max_id
for tweet in tweets:
if current_max_id == 0 or current_max_id > int(tweet['id']):
current_max_id = int(tweet['id'])
#no new tweets found
if (prev_max_id == current_max_id):
break;
mentions.extend(tweets)
cnt += len(tweets)
logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
time.sleep(1)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('statuses', '/statuses/user_mentions')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (len(mentions) > 0):
for tweet in mentions:
if not hasattr(tweet, 'retweeted_status'): #Despreza retweets..
mentioneds = tweet['entities']['user_mentions']
status = {'tweet_id':tweet['id'],'mentioneds': mentioneds}
for handler in write_to_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
for handler in cmd_handlers:
handler.append(json.dumps(status), bucket=bucket, key=user_id)
else:
for handler in write_to_handlers:
handler.append(json.dumps({}), bucket=bucket, key=user_id)
logger.debug("[%s] total mentions: %d "%(user_id, cnt))
##########################################################################################################################################################################
def fetch_tweet_by_id(self, tweet_id = None, write_to_handlers=[], cmd_handlers=[], bucket="tweets"):
if not tweet_id:
raise Exception("show_status: tweet_id cannot be None")
tweet = None
retry_cnt = MAX_RETRY_CNT
while retry_cnt > 1:
try:
tweet = self.show_status(id=tweet_id)
# logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
logger.info("Fetched tweet [%s]" % (tweet_id))
break
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('statuses', '/statuses/show')
except twython.exceptions.TwythonError as te:
if ( te.error_code == 404 or te.error_code == 403 ):
logger.info("Tweet [%s] unavailable. Error code: %d" % (tweet_id, te.error_code))
break
else:
time.sleep(10)
logger.error("exception: %s"%(te))
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(te))
except Exception as exc:
time.sleep(10)
logger.error("exception: %s, %s"%(exc, type(exc)))
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (tweet != None):
for handler in write_to_handlers:
handler.append(json.dumps(tweet), bucket=bucket, key="tweetList")
else:
for handler in write_to_handlers:
handler.append(json.dumps({"id":tweet_id}), bucket=bucket, key="tweetList")
logger.debug("[%s] tweet fetched..." % tweet_id)
def get_user_ids_by_screen_names(self, seeds):
#get user id first
screen_names = list(set(seeds))
user_ids = set()
if len(screen_names) > 0:
users = self.lookup_user(screen_name=screen_names)
for user in users:
user_ids.add(user['id'])
return user_ids
def get_users(self, seeds):
#get user id first
user_ids = list(set(seeds))
users = set()
if len(user_ids) > 0:
users = self.lookup_user(user_id=user_ids)
return users
def search_by_query(self, query = None, geocode=None, lang=None, key=None, write_to_handlers=[], cmd_handlers=[], bucket="tweets"):
if not query:
raise Exception("search: query cannot be None")
if not key:
key = md5(query)
logger.info("received query: %s "%(query))
prev_max_id = -1
current_max_id = 0
last_lowest_id = current_max_id # used to workaround users who has less than 200 tweets, 1 loop is enough...
cnt = 0
retry_cnt = MAX_RETRY_CNT
result_tweets = []
while current_max_id != prev_max_id and retry_cnt > 1:
try:
if current_max_id > 0:
tweets = self.search(q=query, geocode=geocode, lang=lang, max_id=current_max_id-1, count=100)
else:
tweets = self.search(q=query, geocode=geocode, lang=lang, count=100)
prev_max_id = current_max_id # if no new tweets are found, the prev_max_id will be the same as current_max_id
for tweet in tweets['statuses']:
if current_max_id == 0 or current_max_id > long(tweet['id']):
current_max_id = long(tweet['id'])
#no new tweets found
if (prev_max_id == current_max_id):
break;
result_tweets.extend(tweets['statuses'])
cnt += len(tweets['statuses'])
#logger.info(cnt)
logger.debug('%d > %d ? %s'%(prev_max_id, current_max_id, bool(prev_max_id > current_max_id)))
time.sleep(1)
except twython.exceptions.TwythonRateLimitError:
self.rate_limit_error_occured('search', '/search/tweets')
except Exception as exc:
time.sleep(10)
logger.debug("exception: %s"%exc)
retry_cnt -= 1
if (retry_cnt == 0):
raise MaxRetryReached("max retry reached due to %s"%(exc))
if (len(result_tweets) > 0):
for tweet in result_tweets:
for handler in write_to_handlers:
handler.append(json.dumps(tweet), bucket=bucket, key=key)
for handler in cmd_handlers:
handler.append(json.dumps(tweet), bucket=bucket, key=key)
else:
for handler in write_to_handlers:
handler.append(json.dumps({}), bucket=bucket, key=key)
logger.info("[%s] total tweets: %d "%(query, cnt))
| 32.839733
| 170
| 0.656652
| 2,824
| 19,671
| 4.348088
| 0.081799
| 0.044385
| 0.065478
| 0.042186
| 0.751527
| 0.748269
| 0.73532
| 0.709423
| 0.703315
| 0.694601
| 0
| 0.012775
| 0.172284
| 19,671
| 599
| 171
| 32.839733
| 0.741371
| 0.096792
| 0
| 0.638404
| 0
| 0
| 0.125951
| 0.006828
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034913
| false
| 0
| 0.014963
| 0
| 0.057357
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
ed07f30d7be849a2150e77b0f2a17de61475528d
| 8,502
|
py
|
Python
|
scale/ingest/test/triggers/configuration/test_ingest_trigger_rule.py
|
stevevarner/scale
|
9623b261db4ddcf770f00df16afc91176142bb7c
|
[
"Apache-2.0"
] | null | null | null |
scale/ingest/test/triggers/configuration/test_ingest_trigger_rule.py
|
stevevarner/scale
|
9623b261db4ddcf770f00df16afc91176142bb7c
|
[
"Apache-2.0"
] | null | null | null |
scale/ingest/test/triggers/configuration/test_ingest_trigger_rule.py
|
stevevarner/scale
|
9623b261db4ddcf770f00df16afc91176142bb7c
|
[
"Apache-2.0"
] | null | null | null |
from __future__ import unicode_literals
import json
import django
from django.test import TestCase
from ingest.triggers.configuration.ingest_trigger_rule import IngestTriggerRuleConfiguration
from ingest.triggers.ingest_trigger_handler import INGEST_TYPE
from job.configuration.data.exceptions import InvalidConnection
from job.configuration.interface.job_interface import JobInterface
from recipe.configuration.data.exceptions import InvalidRecipeConnection
from recipe.configuration.definition.recipe_definition import LegacyRecipeDefinition as RecipeDefinition
from storage.test import utils as storage_utils
from trigger.configuration.exceptions import InvalidTriggerRule
class TestIngestTriggerRuleConfigurationInit(TestCase):
def setUp(self):
django.setup()
def test_successful(self):
"""Tests creating a IngestTriggerRuleConfiguration with valid configuration"""
json_str = '{"condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(json_str))
def test_invalid(self):
"""Tests creating a IngestTriggerRuleConfiguration with an invalid configuration"""
json_str = '{"condition": {"media_type": "text/plain", "data_types": ["A", "B"]}}'
self.assertRaises(InvalidTriggerRule, IngestTriggerRuleConfiguration, INGEST_TYPE, json.loads(json_str))
def test_invalid_data_types(self):
"""Tests creating a IngestTriggerRuleConfiguration with an invalid data_type rule configuration"""
json_str = '{"condition": {"media_type": "text/plain", "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}, "data_types": ["A", "B"]}, "not_data_types": ["A", "C"], "not_data_types": ["A"]}'
self.assertRaises(InvalidTriggerRule, IngestTriggerRuleConfiguration, INGEST_TYPE, json.loads(json_str))
class TestIngestTriggerRuleConfigurationValidate(TestCase):
def setUp(self):
django.setup()
def test_successful(self):
"""Tests calling IngestTriggerRuleConfiguration.validate() successfully"""
workspace_name = 'Test_Workspace'
storage_utils.create_workspace(name=workspace_name)
json_str = '{"condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "%s"}}' % workspace_name
rule = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(json_str))
rule.validate()
def test_bad_workspace(self):
"""Tests calling IngestTriggerRuleConfiguration.validate() with a bad workspace"""
json_str = '{"condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "BAD_WORKSPACE"}}'
rule = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(json_str))
self.assertRaises(InvalidTriggerRule, rule.validate)
class TestIngestTriggerRuleConfigurationValidateTriggerForJob(TestCase):
def setUp(self):
django.setup()
def test_successful(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_job() successfully with no warnings"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
interface_json_str = '{"version": "1.0", "command": "my cmd", "command_arguments": "cmd args", "input_data": [{"name": "my_input", "type": "file", "media_types": ["text/plain", "application/json"]}], "output_data": [{"name": "my_output", "type": "file"}]}'
job_interface = JobInterface(json.loads(interface_json_str))
warnings = rule_config.validate_trigger_for_job(job_interface)
self.assertListEqual(warnings, [])
def test_bad_input_name(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_job() with a bad input name"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
interface_json_str = '{"version": "1.0", "command": "my cmd", "command_arguments": "cmd args", "input_data": [{"name": "different_input_name", "type": "file", "media_types": ["text/plain", "application/json"]}], "output_data": [{"name": "my_output", "type": "file"}]}'
job_interface = JobInterface(json.loads(interface_json_str))
self.assertRaises(InvalidConnection, rule_config.validate_trigger_for_job, job_interface)
def test_media_type_warning(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_job() with a warning for a mis-matched media type"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
interface_json_str = '{"version": "1.0", "command": "my cmd", "command_arguments": "cmd args", "input_data": [{"name": "my_input", "type": "file", "media_types": ["application/json"]}], "output_data": [{"name": "my_output", "type": "file"}]}'
job_interface = JobInterface(json.loads(interface_json_str))
warnings = rule_config.validate_trigger_for_job(job_interface)
self.assertEqual(len(warnings), 1)
class TestIngestTriggerRuleConfigurationValidateTriggerForRecipe(TestCase):
def setUp(self):
django.setup()
def test_successful(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_recipe() successfully with no warnings"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
definition_json_str = '{"version": "1.0", "input_data": [{"name": "my_input", "type": "file", "media_types": ["text/plain", "application/json"]}], "jobs": [{"name": "my_job", "job_type": {"name": "test_job", "version": "1.0"}}]}'
recipe_definition = RecipeDefinition(json.loads(definition_json_str))
warnings = rule_config.validate_trigger_for_recipe(recipe_definition)
self.assertListEqual(warnings, [])
def test_bad_input_name(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_recipe() with a bad input name"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
definition_json_str = '{"version": "1.0", "input_data": [{"name": "different_input_name", "type": "file", "media_types": ["text/plain", "application/json"]}], "jobs": [{"name": "my_job", "job_type": {"name": "test_job", "version": "1.0"}}]}'
recipe_definition = RecipeDefinition(json.loads(definition_json_str))
self.assertRaises(InvalidRecipeConnection, rule_config.validate_trigger_for_recipe, recipe_definition)
def test_media_type_warning(self):
"""Tests calling IngestTriggerRuleConfiguration.validate_trigger_for_recipe() with a warning for a mis-matched media type"""
rule_json_str = '{"version": "1.0", "condition": {"media_type": "text/plain", "data_types": ["A", "B"]}, "data": {"input_data_name": "my_input", "workspace_name": "my_workspace"}}'
rule_config = IngestTriggerRuleConfiguration(INGEST_TYPE, json.loads(rule_json_str))
definition_json_str = '{"version": "1.0", "input_data": [{"name": "my_input", "type": "file", "media_types": ["application/json"]}], "jobs": [{"name": "my_job", "job_type": {"name": "test_job", "version": "1.0"}}]}'
recipe_definition = RecipeDefinition(json.loads(definition_json_str))
warnings = rule_config.validate_trigger_for_recipe(recipe_definition)
self.assertEqual(len(warnings), 1)
| 58.232877
| 276
| 0.705834
| 970
| 8,502
| 5.893814
| 0.093814
| 0.04163
| 0.029736
| 0.036733
| 0.79972
| 0.782228
| 0.774707
| 0.774707
| 0.714536
| 0.706315
| 0
| 0.004364
| 0.137615
| 8,502
| 145
| 277
| 58.634483
| 0.775368
| 0.120207
| 0
| 0.554217
| 0
| 0.192771
| 0.402344
| 0.024246
| 0
| 0
| 0
| 0
| 0.108434
| 1
| 0.180723
| false
| 0
| 0.144578
| 0
| 0.373494
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
ed404915ea1acc4c300e9c25e734ee794ad553f9
| 93
|
py
|
Python
|
services/email/app/schemas.py
|
Counter0021/Anti-Freelancer-microservices-back-end
|
e55481e0a4353107036cd5ba664fee57e29c7597
|
[
"MIT"
] | null | null | null |
services/email/app/schemas.py
|
Counter0021/Anti-Freelancer-microservices-back-end
|
e55481e0a4353107036cd5ba664fee57e29c7597
|
[
"MIT"
] | null | null | null |
services/email/app/schemas.py
|
Counter0021/Anti-Freelancer-microservices-back-end
|
e55481e0a4353107036cd5ba664fee57e29c7597
|
[
"MIT"
] | null | null | null |
from pydantic import BaseModel
class Message(BaseModel):
""" Message """
msg: str
| 11.625
| 30
| 0.655914
| 10
| 93
| 6.1
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236559
| 93
| 7
| 31
| 13.285714
| 0.859155
| 0.075269
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ed45a05b083f7c430cc602d0e5fdd38463628a28
| 36
|
py
|
Python
|
helloworld/__init__.py
|
Julian-Nash/python-package-guide
|
3869691dca0ea66bedf7bb4eaae32e7be00cfa1a
|
[
"MIT"
] | null | null | null |
helloworld/__init__.py
|
Julian-Nash/python-package-guide
|
3869691dca0ea66bedf7bb4eaae32e7be00cfa1a
|
[
"MIT"
] | null | null | null |
helloworld/__init__.py
|
Julian-Nash/python-package-guide
|
3869691dca0ea66bedf7bb4eaae32e7be00cfa1a
|
[
"MIT"
] | null | null | null |
from .hello_world import HelloWorld
| 18
| 35
| 0.861111
| 5
| 36
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 36
| 1
| 36
| 36
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ed4e3f3c0970c0e6f18ca6ee633b5bd0fc0a19a8
| 20,072
|
py
|
Python
|
tests/users/test_challenges.py
|
99Kies/CTFd_python3
|
c5fb601d5c7b8347224d5c9e4f7b05cf8852ae57
|
[
"Apache-2.0"
] | null | null | null |
tests/users/test_challenges.py
|
99Kies/CTFd_python3
|
c5fb601d5c7b8347224d5c9e4f7b05cf8852ae57
|
[
"Apache-2.0"
] | null | null | null |
tests/users/test_challenges.py
|
99Kies/CTFd_python3
|
c5fb601d5c7b8347224d5c9e4f7b05cf8852ae57
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from CTFd.models import Solves, Fails, Challenges
from CTFd.utils import set_config, text_type
from tests.helpers import (
create_ctfd,
destroy_ctfd,
register_user,
login_as_user,
gen_challenge,
gen_flag,
gen_hint,
)
from freezegun import freeze_time
def test_user_get_challenges():
"""
Can a registered user load /challenges
"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
r = client.get("/challenges")
assert r.status_code == 200
destroy_ctfd(app)
def test_user_get_chals():
"""
Can a registered user load /chals
"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
r = client.get("/api/v1/challenges")
assert r.status_code == 200
destroy_ctfd(app)
def test_viewing_challenges():
"""
Test that users can see added challenges
"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
gen_challenge(app.db)
r = client.get("/api/v1/challenges")
chals = r.get_json()["data"]
assert len(chals) == 1
destroy_ctfd(app)
def test_viewing_challenge():
"""Test that users can see individual challenges"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
gen_challenge(app.db)
r = client.get("/api/v1/challenges/1")
assert r.get_json()
destroy_ctfd(app)
# def test_chals_solves():
# """Test that the /chals/solves endpoint works properly"""
# app = create_ctfd()
# with app.app_context():
# # Generate 5 users
# for c in range(1, 6):
# name = "user{}".format(c)
# email = "user{}@ctfd.io".format(c)
# register_user(app, name=name, email=email, password="password")
#
# # Generate 5 challenges
# for c in range(6):
# chal1 = gen_challenge(app.db, value=100)
#
# user_ids = list(range(2, 7))
# chal_ids = list(range(1, 6))
# for u in user_ids:
# for c in chal_ids:
# gen_solve(app.db, teamid=u, chalid=c)
# chal_ids.pop()
#
# client = login_as_user(app, name="user1")
#
# with client.session_transaction() as sess:
# r = client.get('/chals/solves')
# output = r.get_data(as_text=True)
# saved = json.loads('''{
# "1": 5,
# "2": 4,
# "3": 3,
# "4": 2,
# "5": 1,
# "6": 0
# }
# ''')
# received = json.loads(output)
# assert saved == received
# set_config('hide_scores', True)
# with client.session_transaction():
# r = client.get('/chals/solves')
# output = r.get_data(as_text=True)
# saved = json.loads('''{
# "1": -1,
# "2": -1,
# "3": -1,
# "4": -1,
# "5": -1,
# "6": -1
# }
# ''')
# received = json.loads(output)
# assert saved == received
# destroy_ctfd(app)
def test_submitting_correct_flag():
"""Test that correct flags are correct"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal.id, content="flag")
data = {"submission": "flag", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
resp = r.get_json()["data"]
assert resp.get("status") == "correct"
assert resp.get("message") == "Correct"
destroy_ctfd(app)
def test_submitting_correct_static_case_insensitive_flag():
"""Test that correct static flags are correct if the static flag is marked case_insensitive"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal.id, content="flag", data="case_insensitive")
data = {"submission": "FLAG", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
resp = r.get_json()["data"]
assert resp.get("status") == "correct"
assert resp.get("message") == "Correct"
destroy_ctfd(app)
def test_submitting_correct_regex_case_insensitive_flag():
"""Test that correct regex flags are correct if the regex flag is marked case_insensitive"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
gen_flag(
app.db,
challenge_id=chal.id,
type="regex",
content="flag",
data="case_insensitive",
)
data = {"submission": "FLAG", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
resp = r.get_json()["data"]
assert resp.get("status") == "correct"
assert resp.get("message") == "Correct"
destroy_ctfd(app)
def test_submitting_incorrect_flag():
"""Test that incorrect flags are incorrect"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal.id, content="flag")
data = {"submission": "notflag", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
resp = r.get_json()["data"]
assert resp.get("status") == "incorrect"
assert resp.get("message") == "Incorrect"
destroy_ctfd(app)
def test_submitting_unicode_flag():
"""Test that users can submit a unicode flag"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal.id, content="你好")
with client.session_transaction():
data = {"submission": "你好", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt".format(chal.id), json=data)
assert r.status_code == 200
resp = r.get_json()["data"]
assert resp.get("status") == "correct"
assert resp.get("message") == "Correct"
destroy_ctfd(app)
def test_challenges_with_max_attempts():
"""Test that users are locked out of a challenge after they reach max_attempts"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
chal = Challenges.query.filter_by(id=chal.id).first()
chal_id = chal.id
chal.max_attempts = 3
app.db.session.commit()
gen_flag(app.db, challenge_id=chal.id, content="flag")
for x in range(3):
data = {"submission": "notflag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt".format(chal_id), json=data)
wrong_keys = Fails.query.count()
assert wrong_keys == 3
data = {"submission": "flag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 403
resp = r.get_json()["data"]
assert resp.get("status") == "incorrect"
assert resp.get("message") == "You have 0 tries remaining"
solves = Solves.query.count()
assert solves == 0
destroy_ctfd(app)
def test_challenge_kpm_limit():
"""Test that users are properly ratelimited when submitting flags"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db)
chal_id = chal.id
gen_flag(app.db, challenge_id=chal.id, content="flag")
for x in range(11):
with client.session_transaction():
data = {"submission": "notflag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt", json=data)
wrong_keys = Fails.query.count()
assert wrong_keys == 11
data = {"submission": "flag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 429
wrong_keys = Fails.query.count()
assert wrong_keys == 12
resp = r.get_json()["data"]
assert resp.get("status") == "ratelimited"
assert resp.get("message") == "You're submitting flags too fast. Slow down."
solves = Solves.query.count()
assert solves == 0
destroy_ctfd(app)
def test_that_view_challenges_unregistered_works():
"""Test that view_challenges_unregistered works"""
app = create_ctfd()
with app.app_context():
chal = gen_challenge(app.db, name=text_type("🐺"))
chal_id = chal.id
gen_hint(app.db, chal_id)
client = app.test_client()
r = client.get("/api/v1/challenges", json="")
assert r.status_code == 403
r = client.get("/api/v1/challenges")
assert r.status_code == 302
set_config("challenge_visibility", "public")
client = app.test_client()
r = client.get("/api/v1/challenges")
assert r.get_json()["data"]
r = client.get("/api/v1/challenges/1/solves")
assert r.get_json().get("data") is not None
data = {"submission": "not_flag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt".format(chal_id), json=data)
assert r.status_code == 403
assert r.get_json().get("data").get("status") == "authentication_required"
assert r.get_json().get("data").get("message") is None
destroy_ctfd(app)
def test_hidden_challenge_is_unreachable():
"""Test that hidden challenges return 404 and do not insert a solve or wrong key"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db, state="hidden")
gen_flag(app.db, challenge_id=chal.id, content="flag")
chal_id = chal.id
assert Challenges.query.count() == 1
r = client.get("/api/v1/challenges", json="")
data = r.get_json().get("data")
assert data == []
r = client.get("/api/v1/challenges/1", json="")
assert r.status_code == 404
data = r.get_json().get("data")
assert data is None
data = {"submission": "flag", "challenge_id": chal_id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 404
r = client.post("/api/v1/challenges/attempt?preview=true", json=data)
assert r.status_code == 404
assert r.get_json().get("data") is None
solves = Solves.query.count()
assert solves == 0
wrong_keys = Fails.query.count()
assert wrong_keys == 0
destroy_ctfd(app)
def test_hidden_challenge_is_unsolveable():
"""Test that hidden challenges return 404 and do not insert a solve or wrong key"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal = gen_challenge(app.db, state="hidden")
gen_flag(app.db, challenge_id=chal.id, content="flag")
data = {"submission": "flag", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 404
solves = Solves.query.count()
assert solves == 0
wrong_keys = Fails.query.count()
assert wrong_keys == 0
destroy_ctfd(app)
def test_challenge_with_requirements_is_unsolveable():
"""Test that a challenge with a requirement is unsolveable without first solving the requirement"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
chal1 = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal1.id, content="flag")
requirements = {"prerequisites": [1]}
chal2 = gen_challenge(app.db, requirements=requirements)
app.db.session.commit()
gen_flag(app.db, challenge_id=chal2.id, content="flag")
r = client.get("/api/v1/challenges")
challenges = r.get_json()["data"]
assert len(challenges) == 1
assert challenges[0]["id"] == 1
r = client.get("/api/v1/challenges/2")
assert r.status_code == 403
assert r.get_json().get("data") is None
# Attempt to solve hidden Challenge 2
data = {"submission": "flag", "challenge_id": 2}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 403
assert r.get_json().get("data") is None
# Solve Challenge 1
data = {"submission": "flag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
resp = r.get_json()["data"]
assert resp["status"] == "correct"
# Challenge 2 should now be visible
r = client.get("/api/v1/challenges")
challenges = r.get_json()["data"]
assert len(challenges) == 2
r = client.get("/api/v1/challenges/2")
assert r.status_code == 200
assert r.get_json().get("data")["id"] == 2
# Attempt to solve the now-visible Challenge 2
data = {"submission": "flag", "challenge_id": 2}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
assert resp["status"] == "correct"
destroy_ctfd(app)
def test_challenges_cannot_be_solved_while_paused():
"""Test that challenges cannot be solved when the CTF is paused"""
app = create_ctfd()
with app.app_context():
set_config("paused", True)
register_user(app)
client = login_as_user(app)
r = client.get("/challenges")
assert r.status_code == 200
# Assert that there is a paused message
data = r.get_data(as_text=True)
assert "paused" in data
chal = gen_challenge(app.db)
gen_flag(app.db, challenge_id=chal.id, content="flag")
data = {"submission": "flag", "challenge_id": chal.id}
r = client.post("/api/v1/challenges/attempt", json=data)
# Assert that the JSON message is correct
resp = r.get_json()["data"]
assert r.status_code == 403
assert resp["status"] == "paused"
assert resp["message"] == "CTFd is paused"
# There are no solves saved
solves = Solves.query.count()
assert solves == 0
# There are no wrong keys saved
wrong_keys = Fails.query.count()
assert wrong_keys == 0
destroy_ctfd(app)
def test_challenge_board_under_view_after_ctf():
"""Test that the challenge board does not show an error under view_after_ctf"""
app = create_ctfd()
with app.app_context():
set_config("view_after_ctf", True)
set_config(
"start", "1507089600"
) # Wednesday, October 4, 2017 12:00:00 AM GMT-04:00 DST
set_config(
"end", "1507262400"
) # Friday, October 6, 2017 12:00:00 AM GMT-04:00 DST
register_user(app)
client = login_as_user(app)
gen_challenge(app.db)
gen_flag(app.db, challenge_id=1, content="flag")
gen_challenge(app.db)
gen_flag(app.db, challenge_id=2, content="flag")
# CTF is ongoing. Normal operation.
with freeze_time("2017-10-5"):
r = client.get("/challenges")
assert r.status_code == 200
assert "has ended" not in r.get_data(as_text=True)
data = {"submission": "flag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
assert r.get_json()["data"]["status"] == "correct"
assert Solves.query.count() == 1
# CTF is now over. There should be a message and challenges should show submission status but not store solves
with freeze_time("2017-10-7"):
r = client.get("/challenges")
assert r.status_code == 200
assert "has ended" in r.get_data(as_text=True)
data = {"submission": "flag", "challenge_id": 2}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
assert r.get_json()["data"]["status"] == "correct"
assert Solves.query.count() == 1
destroy_ctfd(app)
def test_challenges_under_view_after_ctf():
app = create_ctfd()
with app.app_context(), freeze_time("2017-10-7"):
set_config(
"start", "1507089600"
) # Wednesday, October 4, 2017 12:00:00 AM GMT-04:00 DST
set_config(
"end", "1507262400"
) # Friday, October 6, 2017 12:00:00 AM GMT-04:00 DST
register_user(app)
client = login_as_user(app)
gen_challenge(app.db)
gen_flag(app.db, challenge_id=1, content="flag")
r = client.get("/challenges")
assert r.status_code == 403
r = client.get("/api/v1/challenges")
assert r.status_code == 403
assert r.get_json().get("data") is None
r = client.get("/api/v1/challenges/1")
assert r.status_code == 403
assert r.get_json().get("data") is None
data = {"submission": "flag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 403
assert r.get_json().get("data") is None
assert Solves.query.count() == 0
data = {"submission": "notflag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 403
assert r.get_json().get("data") is None
assert Fails.query.count() == 0
set_config("view_after_ctf", True)
r = client.get("/challenges")
assert r.status_code == 200
r = client.get("/api/v1/challenges")
assert r.status_code == 200
assert r.get_json()["data"][0]["id"] == 1
r = client.get("/api/v1/challenges/1")
assert r.status_code == 200
assert r.get_json()["data"]["id"] == 1
data = {"submission": "flag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
assert r.get_json()["data"]["status"] == "correct"
assert Solves.query.count() == 0
data = {"submission": "notflag", "challenge_id": 1}
r = client.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
assert r.get_json()["data"]["status"] == "incorrect"
assert Fails.query.count() == 0
destroy_ctfd(app)
def test_challenges_admin_only_as_user():
app = create_ctfd()
with app.app_context():
set_config("challenge_visibility", "admins")
register_user(app)
admin = login_as_user(app, name="admin")
gen_challenge(app.db)
gen_flag(app.db, challenge_id=1, content="flag")
r = admin.get("/challenges")
assert r.status_code == 200
r = admin.get("/api/v1/challenges", json="")
assert r.status_code == 200
r = admin.get("/api/v1/challenges/1", json="")
assert r.status_code == 200
data = {"submission": "flag", "challenge_id": 1}
r = admin.post("/api/v1/challenges/attempt", json=data)
assert r.status_code == 200
destroy_ctfd(app)
| 33.122112
| 118
| 0.590175
| 2,604
| 20,072
| 4.381336
| 0.090246
| 0.036199
| 0.056534
| 0.059602
| 0.801297
| 0.766412
| 0.727846
| 0.686476
| 0.659392
| 0.641599
| 0
| 0.026968
| 0.27212
| 20,072
| 605
| 119
| 33.17686
| 0.753867
| 0.164757
| 0
| 0.736973
| 0
| 0
| 0.154231
| 0.041438
| 0
| 0
| 0
| 0
| 0.258065
| 1
| 0.047146
| false
| 0
| 0.009926
| 0
| 0.057072
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ed733ef30f613fe2b2c7dea92f826be87c1458de
| 296
|
py
|
Python
|
dss/util/version.py
|
HumanCellAtlas/data-store
|
6b27d0f7e0110c62b3079151708689ab5145f15b
|
[
"MIT"
] | 46
|
2017-03-24T15:56:09.000Z
|
2021-03-15T19:49:07.000Z
|
dss/util/version.py
|
HumanCellAtlas/DCC
|
6b27d0f7e0110c62b3079151708689ab5145f15b
|
[
"MIT"
] | 1,799
|
2017-04-04T17:54:28.000Z
|
2020-11-19T12:30:13.000Z
|
dss/util/version.py
|
HumanCellAtlas/DCC
|
6b27d0f7e0110c62b3079151708689ab5145f15b
|
[
"MIT"
] | 13
|
2017-03-27T23:49:35.000Z
|
2021-01-18T07:39:49.000Z
|
import datetime
_datetime_format = "%Y-%m-%dT%H%M%S.%fZ"
def datetime_to_version_format(timestamp: datetime.datetime) -> str:
return timestamp.strftime(_datetime_format)
def datetime_from_timestamp(ts: str) -> datetime.datetime:
return datetime.datetime.strptime(ts, _datetime_format)
| 29.6
| 68
| 0.777027
| 40
| 296
| 5.475
| 0.475
| 0.292237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10473
| 296
| 9
| 69
| 32.888889
| 0.826415
| 0
| 0
| 0
| 0
| 0
| 0.064189
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.333333
| 0.833333
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
ed82d41f2633d9c614b99beec1853987e3533c07
| 43
|
py
|
Python
|
src/ipaparser/features.py
|
danmysak/ipa-parser
|
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
|
[
"MIT"
] | null | null | null |
src/ipaparser/features.py
|
danmysak/ipa-parser
|
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
|
[
"MIT"
] | null | null | null |
src/ipaparser/features.py
|
danmysak/ipa-parser
|
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
|
[
"MIT"
] | null | null | null |
from ._code.features import * # noqa:F401
| 21.5
| 42
| 0.72093
| 6
| 43
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.162791
| 43
| 1
| 43
| 43
| 0.75
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ed8881089d81eeb508355b6eebd5dcf59bb76192
| 56
|
py
|
Python
|
encoding/dilated/__init__.py
|
youansheng/PyTorch-Encoding
|
dc501d28d478dbf668186f721c8600387c32859c
|
[
"MIT"
] | 51
|
2019-11-14T01:48:24.000Z
|
2021-11-09T02:42:22.000Z
|
encoding/dilated/__init__.py
|
youansheng/PyTorch-Encoding
|
dc501d28d478dbf668186f721c8600387c32859c
|
[
"MIT"
] | 4
|
2019-11-15T10:14:10.000Z
|
2020-03-17T12:14:50.000Z
|
encoding/dilated/__init__.py
|
youansheng/PyTorch-Encoding
|
dc501d28d478dbf668186f721c8600387c32859c
|
[
"MIT"
] | 9
|
2019-11-14T12:39:03.000Z
|
2020-03-03T08:27:19.000Z
|
"""Dilated ResNet and DenseNet"""
from .resnet import *
| 18.666667
| 33
| 0.714286
| 7
| 56
| 5.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 56
| 2
| 34
| 28
| 0.833333
| 0.482143
| 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
| 1
| 0
|
0
| 5
|
ed89a4ccf434d556dbe21e7f660ca735bce37d24
| 6,173
|
py
|
Python
|
HW 2/Solution/Bonus.py
|
HasanIjaz-HB/CS411-Cryptography
|
360625c9c6fc894fe6cb4633cb6839abb87507dc
|
[
"MIT"
] | null | null | null |
HW 2/Solution/Bonus.py
|
HasanIjaz-HB/CS411-Cryptography
|
360625c9c6fc894fe6cb4633cb6839abb87507dc
|
[
"MIT"
] | null | null | null |
HW 2/Solution/Bonus.py
|
HasanIjaz-HB/CS411-Cryptography
|
360625c9c6fc894fe6cb4633cb6839abb87507dc
|
[
"MIT"
] | null | null | null |
import binascii
import random
import lfsr
# Takes a text and converts it to binary using ASCII encoding
def ASCII2bin(msg):
M_i = []
Mlen = len(msg)
for i in range(0,Mlen):
ascii_no = ord(msg[i])
ascii_bin = bin(ascii_no)
char_len = len(ascii_bin)
if(char_len<9):
for j in range(0,9-char_len):
M_i.append(0)
for j in range(2,char_len):
M_i.append(int(ascii_bin[j]))
return M_i
# Retransformation to see the decrypted message
def bin2ASCII(msg):
res = list()
for i in range(len(msg)//7):
bins = msg[:7]
str_bin = ''.join(str(x) for x in bins)
res.append(chr(int(str_bin,2)))
msg = msg[7:]
return "".join(res)
import copy
def LFSR(C, S):
L = len(S)
fb = 0
out = S[L-1]
for i in range(0,L):
fb = fb^(S[i]&C[i+1])
for i in range(L-1,0,-1):
S[i] = S[i-1]
S[0] = fb
return out
def FindPeriod(s):
n = len(s)
for T in range(1,n+1):
chck = 0
for i in range(0,n-T-1):
if (s[i] != s[i+T]):
chck += 1
break
if chck == 0:
break
if T > n/2:
return n
else:
return T
def PolPrune(P):
n = len(P)
i = n-1
while (P[i] == 0):
del P[i]
i = i-1
return i
def PolDeg(P):
n = len(P)
i = n-1
while (P[i] == 0):
i = i-1
return i
# P gets Q
def PolCopy(Q, P):
degP = len(P)
degQ = len(Q)
if degP >= degQ:
for i in range(0,degQ):
Q[i] = P[i]
for i in range(degQ, degP):
Q.append(P[i])
else: # degP < deqQ
for i in range(0,degP):
Q[i] = P[i]
for i in range(degP, degQ):
Q[i] = 0
PolPrune(Q)
def BM(s):
n = len(s)
C = []
B = []
T = []
L = 0
m = -1
i = 0
C.append(1)
B.append(1)
while(i<n):
delta = 0
clen = len(C)
for j in range(0, clen):
delta ^= (C[j]*s[i-j])
if delta == 1:
dif = i-m
PolCopy(T, C)
nlen = len(B)+dif
if(clen >= nlen):
for j in range(dif,nlen):
C[j] = C[j] ^ B[j-dif]
else: # increase the degree of C
for j in range(clen, nlen):
C.append(0)
for j in range(dif, nlen):
C[j] = C[j] ^ B[j-dif]
PolPrune(C)
if L <= i/2:
L = i+1-L
m = i
PolCopy(B, T)
i = i+1
return L, C
def xorElement(a,b):
return int(a!=b)
def xor(a,b):
li=list()
l=len(a)
for i in range(0,l):
li.append(xorElement(a[i],b[i]))
return li
ctext = [1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0,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, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0]
print(bin2ASCII(ctext))
hint=ASCII2bin("Dear Student")
keyFirst84=xor(ctext[0:84],hint)
print(keyFirst84)
C=[1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
S = [1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0]
len(S)
keystream = [0]*952
for i in range(0,952):
keystream[i] = LFSR(C, S)
print(keystream)
print(keystream[0:84]==keyFirst84)
print(bin2ASCII(xor(ctext,keystream)))
| 38.823899
| 2,864
| 0.394622
| 1,516
| 6,173
| 1.596966
| 0.063325
| 0.224701
| 0.169765
| 0.118959
| 0.54936
| 0.48575
| 0.464684
| 0.464684
| 0.451879
| 0.451466
| 0
| 0.276825
| 0.367406
| 6,173
| 158
| 2,865
| 39.06962
| 0.34315
| 0.024461
| 0
| 0.174242
| 0
| 0
| 0.001995
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075758
| false
| 0
| 0.030303
| 0.007576
| 0.181818
| 0.037879
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
71ef46ae4132f9e5b56ce127af6f59762d724a62
| 5,503
|
py
|
Python
|
thirdpart/weworkapi/CorpApi.py
|
gzy403999903/seahub
|
992e5852579a6d9e0cfdaf18c77ce0191cb64449
|
[
"Apache-2.0"
] | null | null | null |
thirdpart/weworkapi/CorpApi.py
|
gzy403999903/seahub
|
992e5852579a6d9e0cfdaf18c77ce0191cb64449
|
[
"Apache-2.0"
] | 6
|
2019-12-13T09:55:45.000Z
|
2022-03-11T23:47:29.000Z
|
thirdpart/weworkapi/CorpApi.py
|
gzy403999903/seahub
|
992e5852579a6d9e0cfdaf18c77ce0191cb64449
|
[
"Apache-2.0"
] | 1
|
2019-05-16T06:58:16.000Z
|
2019-05-16T06:58:16.000Z
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
##
# Copyright (C) 2018 All rights reserved.
#
# @File CorpApi.py
# @Brief
# @Author abelzhu, abelzhu@tencent.com
# @Version 1.0
# @Date 2018-02-24
#
#
from .AbstractApi import *
CORP_API_TYPE = {
'GET_ACCESS_TOKEN' : ['/cgi-bin/gettoken', 'GET'],
'USER_CREATE' : ['/cgi-bin/user/create?access_token=ACCESS_TOKEN', 'POST'],
'USER_GET' : ['/cgi-bin/user/get?access_token=ACCESS_TOKEN', 'GET'],
'USER_UPDATE' : ['/cgi-bin/user/update?access_token=ACCESS_TOKEN', 'POST'],
'USER_DELETE' : ['/cgi-bin/user/delete?access_token=ACCESS_TOKEN', 'GET'],
'USER_BATCH_DELETE': ['/cgi-bin/user/batchdelete?access_token=ACCESS_TOKEN', 'POST'],
'USER_SIMPLE_LIST ': ['/cgi-bin/user/simplelist?access_token=ACCESS_TOKEN', 'GET'],
'USER_LIST' : ['/cgi-bin/user/list?access_token=ACCESS_TOKEN', 'GET'],
'USERID_TO_OPENID' : ['/cgi-bin/user/convert_to_openid?access_token=ACCESS_TOKEN', 'POST'],
'OPENID_TO_USERID' : ['/cgi-bin/user/convert_to_userid?access_token=ACCESS_TOKEN', 'POST'],
'USER_AUTH_SUCCESS': ['/cgi-bin/user/authsucc?access_token=ACCESS_TOKEN', 'GET'],
'DEPARTMENT_CREATE': ['/cgi-bin/department/create?access_token=ACCESS_TOKEN', 'POST'],
'DEPARTMENT_UPDATE': ['/cgi-bin/department/update?access_token=ACCESS_TOKEN', 'POST'],
'DEPARTMENT_DELETE': ['/cgi-bin/department/delete?access_token=ACCESS_TOKEN', 'GET'],
'DEPARTMENT_LIST' : ['/cgi-bin/department/list?access_token=ACCESS_TOKEN', 'GET'],
'TAG_CREATE' : ['/cgi-bin/tag/create?access_token=ACCESS_TOKEN', 'POST'],
'TAG_UPDATE' : ['/cgi-bin/tag/update?access_token=ACCESS_TOKEN', 'POST'],
'TAG_DELETE' : ['/cgi-bin/tag/delete?access_token=ACCESS_TOKEN', 'GET'],
'TAG_GET_USER' : ['/cgi-bin/tag/get?access_token=ACCESS_TOKEN', 'GET'],
'TAG_ADD_USER' : ['/cgi-bin/tag/addtagusers?access_token=ACCESS_TOKEN', 'POST'],
'TAG_DELETE_USER' : ['/cgi-bin/tag/deltagusers?access_token=ACCESS_TOKEN', 'POST'],
'TAG_GET_LIST' : ['/cgi-bin/tag/list?access_token=ACCESS_TOKEN', 'GET'],
'BATCH_JOB_GET_RESULT' : ['/cgi-bin/batch/getresult?access_token=ACCESS_TOKEN', 'GET'],
'BATCH_INVITE' : ['/cgi-bin/batch/invite?access_token=ACCESS_TOKEN', 'POST'],
'AGENT_GET' : ['/cgi-bin/agent/get?access_token=ACCESS_TOKEN', 'GET'],
'AGENT_SET' : ['/cgi-bin/agent/set?access_token=ACCESS_TOKEN', 'POST'],
'AGENT_GET_LIST' : ['/cgi-bin/agent/list?access_token=ACCESS_TOKEN', 'GET'],
'MENU_CREATE' : ['/cgi-bin/menu/create?access_token=ACCESS_TOKEN', 'POST'], ## TODO
'MENU_GET' : ['/cgi-bin/menu/get?access_token=ACCESS_TOKEN', 'GET'],
'MENU_DELETE' : ['/cgi-bin/menu/delete?access_token=ACCESS_TOKEN', 'GET'],
'MESSAGE_SEND' : ['/cgi-bin/message/send?access_token=ACCESS_TOKEN', 'POST'],
'MESSAGE_REVOKE' : ['/cgi-bin/message/revoke?access_token=ACCESS_TOKEN', 'POST'],
'MEDIA_GET' : ['/cgi-bin/media/get?access_token=ACCESS_TOKEN', 'GET'],
'GET_USER_INFO_BY_CODE' : ['/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN', 'GET'],
'GET_USER_DETAIL' : ['/cgi-bin/user/getuserdetail?access_token=ACCESS_TOKEN', 'POST'],
'GET_TICKET' : ['/cgi-bin/ticket/get?access_token=ACCESS_TOKEN', 'GET'],
'GET_JSAPI_TICKET' : ['/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKEN', 'GET'],
'GET_CHECKIN_OPTION' : ['/cgi-bin/checkin/getcheckinoption?access_token=ACCESS_TOKEN', 'POST'],
'GET_CHECKIN_DATA' : ['/cgi-bin/checkin/getcheckindata?access_token=ACCESS_TOKEN', 'POST'],
'GET_APPROVAL_DATA': ['/cgi-bin/corp/getapprovaldata?access_token=ACCESS_TOKEN', 'POST'],
'GET_INVOICE_INFO' : ['/cgi-bin/card/invoice/reimburse/getinvoiceinfo?access_token=ACCESS_TOKEN', 'POST'],
'UPDATE_INVOICE_STATUS' :
['/cgi-bin/card/invoice/reimburse/updateinvoicestatus?access_token=ACCESS_TOKEN', 'POST'],
'BATCH_UPDATE_INVOICE_STATUS' :
['/cgi-bin/card/invoice/reimburse/updatestatusbatch?access_token=ACCESS_TOKEN', 'POST'],
'BATCH_GET_INVOICE_INFO' :
['/cgi-bin/card/invoice/reimburse/getinvoiceinfobatch?access_token=ACCESS_TOKEN', 'POST'],
'APP_CHAT_CREATE' : ['/cgi-bin/appchat/create?access_token=ACCESS_TOKEN', 'POST'],
'APP_CHAT_GET' : ['/cgi-bin/appchat/get?access_token=ACCESS_TOKEN', 'GET'],
'APP_CHAT_UPDATE' : ['/cgi-bin/appchat/update?access_token=ACCESS_TOKEN', 'POST'],
'APP_CHAT_SEND' : ['/cgi-bin/appchat/send?access_token=ACCESS_TOKEN', 'POST'],
'MINIPROGRAM_CODE_TO_SESSION_KEY' : ['/cgi-bin/miniprogram/jscode2session?access_token=ACCESS_TOKEN', 'GET'],
}
class CorpApi(AbstractApi) :
def __init__(self, corpid, secret) :
self.corpid = corpid
self.secret = secret
self.access_token = None
def getAccessToken(self) :
if self.access_token is None :
self.refreshAccessToken()
return self.access_token
def refreshAccessToken(self) :
response = self.httpCall(
CORP_API_TYPE['GET_ACCESS_TOKEN'],
{
'corpid' : self.corpid,
'corpsecret': self.secret,
})
self.access_token = response.get('access_token')
| 52.409524
| 117
| 0.644739
| 675
| 5,503
| 4.96
| 0.173333
| 0.338411
| 0.243728
| 0.315412
| 0.53853
| 0.496416
| 0.150836
| 0.050777
| 0
| 0
| 0
| 0.003567
| 0.184808
| 5,503
| 104
| 118
| 52.913462
| 0.742755
| 0.032891
| 0
| 0
| 0
| 0
| 0.638522
| 0.483415
| 0
| 0
| 0
| 0.009615
| 0
| 1
| 0.041667
| false
| 0
| 0.013889
| 0
| 0.083333
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
71f9f3634ab6431ff2ea9be16dc1fcf8e0b0de3e
| 57
|
py
|
Python
|
cpgames/modules/core/greedysnake/__init__.py
|
Wasabii88/Games
|
33262ca1958207a24e57e3532feded7e275b1dd1
|
[
"MIT"
] | 1
|
2022-02-27T10:33:41.000Z
|
2022-02-27T10:33:41.000Z
|
cpgames/modules/core/greedysnake/__init__.py
|
beiwei365/Games
|
f6499f378802d3212a08aeca761191b58714b7f0
|
[
"MIT"
] | null | null | null |
cpgames/modules/core/greedysnake/__init__.py
|
beiwei365/Games
|
f6499f378802d3212a08aeca761191b58714b7f0
|
[
"MIT"
] | null | null | null |
'''initialize'''
from .greedysnake import GreedySnakeGame
| 28.5
| 40
| 0.807018
| 5
| 57
| 9.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070175
| 57
| 2
| 40
| 28.5
| 0.867925
| 0.175439
| 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
| 1
| 0
|
0
| 5
|
9c692280fb20f129e2b3f94689222dcd635e3c15
| 44
|
py
|
Python
|
forms-flow-data-analysis-api/tests/unit/services/__init__.py
|
sreehari-aot/forms-flow-ai
|
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
|
[
"Apache-2.0"
] | null | null | null |
forms-flow-data-analysis-api/tests/unit/services/__init__.py
|
sreehari-aot/forms-flow-ai
|
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
|
[
"Apache-2.0"
] | null | null | null |
forms-flow-data-analysis-api/tests/unit/services/__init__.py
|
sreehari-aot/forms-flow-ai
|
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
|
[
"Apache-2.0"
] | null | null | null |
"""Test-Suite for all the Service Layer."""
| 22
| 43
| 0.681818
| 7
| 44
| 4.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 44
| 1
| 44
| 44
| 0.789474
| 0.840909
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9c6c035319592383044ef9ac442980a86276cd97
| 190
|
py
|
Python
|
imgtotext.py
|
ankit0305/imgtotext
|
fa109638bb8d1ce2bf7500d9f64aeba5d635ff80
|
[
"MIT"
] | null | null | null |
imgtotext.py
|
ankit0305/imgtotext
|
fa109638bb8d1ce2bf7500d9f64aeba5d635ff80
|
[
"MIT"
] | null | null | null |
imgtotext.py
|
ankit0305/imgtotext
|
fa109638bb8d1ce2bf7500d9f64aeba5d635ff80
|
[
"MIT"
] | null | null | null |
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract'
print(pytesseract.image_to_string(r'C:\Users\jaisw\Downloads\Life-Quotes-Dolly.jpg'))
| 38
| 85
| 0.826316
| 27
| 190
| 5.703704
| 0.740741
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042105
| 190
| 4
| 86
| 47.5
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0.455026
| 0.396825
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9c7ea36f7b0789693ce651c93eb8c2aa040b5f38
| 715
|
py
|
Python
|
loader/__init__.py
|
MikeLagunes/Supervised-Triplet-Network
|
575bcaf8f17affb0ff0e93212dde0f3f634c196f
|
[
"MIT"
] | 6
|
2019-07-07T08:48:03.000Z
|
2021-07-29T06:32:01.000Z
|
loader/__init__.py
|
MikeLagunes/Supervised-Triplet-Network
|
575bcaf8f17affb0ff0e93212dde0f3f634c196f
|
[
"MIT"
] | 1
|
2019-03-11T03:28:36.000Z
|
2019-03-13T12:45:59.000Z
|
loader/__init__.py
|
MikeLagunes/Supervised-Triplet-Network
|
575bcaf8f17affb0ff0e93212dde0f3f634c196f
|
[
"MIT"
] | 1
|
2022-02-09T12:48:09.000Z
|
2022-02-09T12:48:09.000Z
|
import json
from loader.cnn_core50 import cnn_core50
from loader.triplet_resnet_core50 import triplet_resnet_core50
from loader.triplet_resnet_core50_softmax import triplet_resnet_core50_softmax
def get_loader(name):
"""get_loader
:param name:
"""
return {
'cnn_core50':cnn_core50,
'triplet_resnet_core50': triplet_resnet_core50,
'triplet_resnet_core50_softmax': triplet_resnet_core50_softmax,
}[name]
#def get_data_path(name, config_file='../config.json'):
def get_data_path(name, config_file='config.json'):
"""get_data_path
:param name:
:param config_file:
"""
data = json.load(open(config_file))
return data[name]['data_path']
| 22.34375
| 78
| 0.718881
| 94
| 715
| 5.074468
| 0.212766
| 0.218029
| 0.318658
| 0.218029
| 0.438155
| 0.438155
| 0.291405
| 0.159329
| 0.159329
| 0
| 0
| 0.040956
| 0.18042
| 715
| 31
| 79
| 23.064516
| 0.773038
| 0.177622
| 0
| 0
| 0
| 0
| 0.144144
| 0.09009
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153846
| false
| 0
| 0.307692
| 0
| 0.615385
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
92f963de627e8c9b11ebad52ab7eb9f4681ac04b
| 312
|
py
|
Python
|
paths.py
|
tahirs95/pepys-import
|
05f070e97dd2f3f84b71faa3578e03398e28ca15
|
[
"Apache-2.0"
] | null | null | null |
paths.py
|
tahirs95/pepys-import
|
05f070e97dd2f3f84b71faa3578e03398e28ca15
|
[
"Apache-2.0"
] | null | null | null |
paths.py
|
tahirs95/pepys-import
|
05f070e97dd2f3f84b71faa3578e03398e28ca15
|
[
"Apache-2.0"
] | null | null | null |
import os
ROOT_DIRECTORY = os.path.dirname(__file__)
IMPORTERS_DIRECTORY = os.path.join(ROOT_DIRECTORY, "importers")
PEPYS_ADMIN_DIRECTORY = os.path.join(ROOT_DIRECTORY, "pepys_admin")
PEPYS_IMPORT_DIRECTORY = os.path.join(ROOT_DIRECTORY, "pepys_import")
TESTS_DIRECTORY = os.path.join(ROOT_DIRECTORY, "tests")
| 39
| 69
| 0.810897
| 44
| 312
| 5.363636
| 0.272727
| 0.275424
| 0.317797
| 0.322034
| 0.584746
| 0.584746
| 0.313559
| 0
| 0
| 0
| 0
| 0
| 0.070513
| 312
| 7
| 70
| 44.571429
| 0.813793
| 0
| 0
| 0
| 0
| 0
| 0.11859
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
92fa792b5312bfaa2a55bb4aaa9651c7e6d82b3c
| 4,428
|
py
|
Python
|
petalisp/ndarray.py
|
marcoheisig/petalisp-for-python
|
6e388d8bbd3dd2b22650a232064b0783bc6048e7
|
[
"MIT"
] | 7
|
2019-12-21T07:26:47.000Z
|
2021-09-28T19:11:23.000Z
|
petalisp/ndarray.py
|
marcoheisig/petalisp-for-python
|
6e388d8bbd3dd2b22650a232064b0783bc6048e7
|
[
"MIT"
] | null | null | null |
petalisp/ndarray.py
|
marcoheisig/petalisp-for-python
|
6e388d8bbd3dd2b22650a232064b0783bc6048e7
|
[
"MIT"
] | null | null | null |
import numpy
import cl4py
lisp = cl4py.Lisp(quicklisp=True)
cl = lisp.function('find-package')('CL')
ql = cl.find_package('QL')
ql.quickload('PETALISP')
petalisp = cl.find_package('PETALISP')
class ndarray (cl4py.data.LispWrapper):
@property
def shape(self):
expr = ('cl:mapcar', ('cl:function', 'petalisp:set-size'), ('petalisp:ranges', ('petalisp:shape', self)))
return tuple(self.lisp.eval( expr ))
@property
def dtype(self):
expr = ('cl4py:dtype-code', ('cl4py:dtype-from-type', ('petalisp:element-type', self)))
return numpy.dtype(self.lisp.eval( expr ))
@property
def ndim(self):
return petalisp.rank(self)
def __getitem__(self, key):
print(key)
return
# Comparison Operators
def __lt__(self, other):
return alpha(cl.lt, self, other)
def __le__(self, other):
return alpha(cl.le, self, other)
def __eq__(self, other):
return alpha(cl.sim, self, other)
def __ne__(self, other):
return alpha(cl.ne, self, other)
def __ge__(self, other):
return alpha(cl.ge, self, other)
def __gt__(self, other):
return alpha(cl.gt, self, other)
def __is__(self, other):
return alpha(cl.eq, self, other)
# Numeric Operators
def __add__(self, other):
return alpha(cl.add, self, other)
def __radd__(self, other):
return alpha(cl.add, other, self)
def __sub__(self, other):
return alpha(cl.sub, self, other)
def __rsub__(self, other):
return alpha(cl.sub, other, self)
def __mul__(self, other):
return alpha(cl.mul, self, other)
def __rmul__(self, other):
return alpha(cl.mul, other, self)
def __matmul__(self, other):
raise RuntimeError('Not yet implemented.')
def __rmatmul__(self, other):
raise RuntimeError('Not yet implemented.')
def __truediv__(self, other):
return alpha(cl.div, self, other)
def __rtruediv__(self, other):
return alpha(cl.div, other, self)
def __floordiv__(self, other):
return alpha(cl.floor, self, other)
def __rfloordiv__(self, other):
return alpha(cl.floor, other, self)
def __mod__(self, other):
return alpha(cl.mod, self, other)
def __rmod__(self, other):
return alpha(cl.mod, other, self)
def __divmod__(self,other):
return alpha(2, cl.floor, self, other)
def __rdivmod__(self,other):
return alpha(2, cl.floor, other, self)
def __pow__(self, other):
return alpha(cl.expt, self, other)
def __rpow__(self, other):
return alpha(cl.expt, other, self)
def __lshift__(self,other):
return alpha(cl.ash, self, other)
def __rlshift__(self,other):
return alpha(cl.ash, other, self)
def __rshift__(self, other):
return alpha(cl.ash, self, -other)
def __rrshift__(self, other):
return alpha(cl.ash, other, -self)
def __and__(self, other):
return alpha(cl.logand, self, other)
def __rand__(self, other):
return alpha(cl.logand, other, self)
def __xor__(self, other):
return alpha(cl.logxor, self, other)
def __rxor__(self, other):
return alpha(cl.logxor, other, self)
def __or__(self, other):
return alpha(cl.logior, self, other)
def __ror__(self, other):
return alpha(cl.logior, other, self)
def __neg__(self):
return alpha(cl.sub, self)
def __pos__(self):
return self
def __abs__(self):
return alpha(cl.abs, self)
def __invert__(self):
return alpha(cl.lognot, self)
def __concat__(self, other):
return alpha(cl.concatenate, cl.type_of(self), self, other)
def __contains__(self, other):
return alpha(cl.find, self, other, cl4py.Keyword('TEST'), cl.equal)
def the_ndarray(obj):
obj.__class__ = ndarray
return obj
def array(object, **args):
A = numpy.array(object, **args)
return the_ndarray(petalisp.coerce_to_lazy_array(A))
def compute(*arrays):
# TODO, only the first result is currently returned.
return petalisp.compute(*arrays)
def schedule(*arrays):
petalisp.schedule(*arrays)
return
def alpha(operator, *arrays):
return the_ndarray(petalisp.a(operator, *arrays))
def beta(operator, *arrays):
return the_ndarray(petalisp.b(operator, *arrays))
| 24.876404
| 113
| 0.63121
| 577
| 4,428
| 4.528596
| 0.218371
| 0.203215
| 0.179104
| 0.267891
| 0.466896
| 0.363567
| 0.11328
| 0.091848
| 0.05664
| 0
| 0
| 0.00238
| 0.240967
| 4,428
| 177
| 114
| 25.016949
| 0.775067
| 0.020099
| 0
| 0.058824
| 0
| 0
| 0.046136
| 0.009689
| 0
| 0
| 0
| 0.00565
| 0
| 1
| 0.428571
| false
| 0
| 0.016807
| 0.361345
| 0.865546
| 0.008403
| 0
| 0
| 0
| null | 1
| 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
| 5
|
132720a2118c060b97280b6542a50325804cdaf1
| 2,895
|
py
|
Python
|
care/facility/models/summary.py
|
gigincg/care
|
07be6a7982b5c46a854e3435a52662f32800c8ae
|
[
"MIT"
] | 189
|
2020-03-17T17:18:58.000Z
|
2022-02-22T09:49:45.000Z
|
care/facility/models/summary.py
|
gigincg/care
|
07be6a7982b5c46a854e3435a52662f32800c8ae
|
[
"MIT"
] | 598
|
2020-03-19T21:22:09.000Z
|
2022-03-30T05:08:37.000Z
|
care/facility/models/summary.py
|
gigincg/care
|
07be6a7982b5c46a854e3435a52662f32800c8ae
|
[
"MIT"
] | 159
|
2020-03-19T18:45:56.000Z
|
2022-03-17T13:23:12.000Z
|
from uuid import uuid4
from django.contrib.postgres.fields import JSONField
from django.db import models
from care.facility.models.facility import Facility
from care.users.models import District, LocalBody
SUMMARY_CHOICES = (
("FacilityCapacity", "FacilityCapacity"),
("PatientSummary", "PatientSummary"),
("TestSummary", "TestSummary"),
("TriageSummary", "TriageSummary"),
)
class FacilityRelatedSummary(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, unique=True, db_index=True)
created_date = models.DateTimeField(auto_now_add=True, null=True, blank=True)
modified_date = models.DateTimeField(auto_now=True, null=True, blank=True)
facility = models.ForeignKey(
Facility, on_delete=models.CASCADE, null=True, blank=True
)
s_type = models.CharField(choices=SUMMARY_CHOICES, max_length=100)
data = JSONField(null=True, blank=True, default=dict)
class Meta:
indexes = [
models.Index(fields=["-modified_date",]),
models.Index(fields=["-created_date",]),
models.Index(fields=["s_type",]),
models.Index(fields=["-created_date", "s_type"]),
]
DISTRICT_SUMMARY_CHOICES = (("PatientSummary", "PatientSummary"),)
class DistrictScopedSummary(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, unique=True, db_index=True)
created_date = models.DateTimeField(auto_now_add=True, null=True, blank=True)
modified_date = models.DateTimeField(auto_now=True, null=True, blank=True)
district = models.ForeignKey(
District, on_delete=models.CASCADE, null=True, blank=True
)
s_type = models.CharField(choices=DISTRICT_SUMMARY_CHOICES, max_length=100)
data = JSONField(null=True, blank=True, default=dict)
class Meta:
indexes = [
models.Index(fields=["-modified_date",]),
models.Index(fields=["-created_date",]),
models.Index(fields=["s_type",]),
models.Index(fields=["-created_date", "s_type"]),
]
LSG_SUMMARY_CHOICES = (("PatientSummary", "PatientSummary"),)
class LocalBodyScopedSummary(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, unique=True, db_index=True)
created_date = models.DateTimeField(auto_now_add=True, null=True, blank=True)
modified_date = models.DateTimeField(auto_now=True, null=True, blank=True)
lsg = models.ForeignKey(LocalBody, on_delete=models.CASCADE, null=True, blank=True)
s_type = models.CharField(choices=LSG_SUMMARY_CHOICES, max_length=100)
data = JSONField(null=True, blank=True, default=dict)
class Meta:
indexes = [
models.Index(fields=["-modified_date",]),
models.Index(fields=["-created_date",]),
models.Index(fields=["s_type",]),
models.Index(fields=["-created_date", "s_type"]),
]
| 38.092105
| 87
| 0.689119
| 337
| 2,895
| 5.756677
| 0.175074
| 0.061856
| 0.080412
| 0.105155
| 0.752062
| 0.703608
| 0.703608
| 0.703608
| 0.703608
| 0.703608
| 0
| 0.005448
| 0.17582
| 2,895
| 75
| 88
| 38.6
| 0.807628
| 0
| 0
| 0.508475
| 0
| 0
| 0.110535
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.084746
| 0
| 0.491525
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
1329731d9b38f2fe53b6d5eebecad119c18c1f75
| 1,357
|
py
|
Python
|
packages/legacycomponents/mcstas2/tests/mcstas2/components/sources/Source_simple_TestCase.py
|
mcvine/mcvine
|
42232534b0c6af729628009bed165cd7d833789d
|
[
"BSD-3-Clause"
] | 5
|
2017-01-16T03:59:47.000Z
|
2020-06-23T02:54:19.000Z
|
packages/legacycomponents/mcstas2/tests/mcstas2/components/sources/Source_simple_TestCase.py
|
mcvine/mcvine
|
42232534b0c6af729628009bed165cd7d833789d
|
[
"BSD-3-Clause"
] | 293
|
2015-10-29T17:45:52.000Z
|
2022-01-07T16:31:09.000Z
|
packages/legacycomponents/mcstas2/tests/mcstas2/components/sources/Source_simple_TestCase.py
|
mcvine/mcvine
|
42232534b0c6af729628009bed165cd7d833789d
|
[
"BSD-3-Clause"
] | 1
|
2019-05-25T00:53:31.000Z
|
2019-05-25T00:53:31.000Z
|
#!/usr/bin/env python
#
# Jiao Lin <jiao.lin@gmail.com>
#
import numpy as np, unittest
from mcni.utils import conversion
componentname = 'Source_simple'
category = 'sources'
class TestCase(unittest.TestCase):
def test(self):
"wrap Source_simple"
from mcstas2 import componentfactory
factory = componentfactory( category, componentname )
component = factory('component', E0=50., dE=0.001)
E0 = component.E0
import mcni
neutrons = mcni.neutron_buffer( 5 )
component.process( neutrons )
for n in neutrons:
v = np.linalg.norm(n.state.velocity)
E = conversion.v2e(v)
self.assertAlmostEqual(E, E0, places=2)
return
def test2(self):
"wrap Source_simple"
from mcstas2 import componentfactory
factory = componentfactory( category, componentname )
component = factory('component', E0=50., dE=0.001)
E0 = component.E0 = 100.
import mcni
neutrons = mcni.neutron_buffer( 5 )
component.process( neutrons )
for n in neutrons:
v = np.linalg.norm(n.state.velocity)
E = conversion.v2e(v)
self.assertAlmostEqual(E, E0, places=2)
return
pass # end of TestCase
if __name__ == "__main__": unittest.main()
# End of file
| 26.607843
| 61
| 0.613854
| 156
| 1,357
| 5.25641
| 0.416667
| 0.053659
| 0.034146
| 0.04878
| 0.726829
| 0.726829
| 0.726829
| 0.726829
| 0.726829
| 0.726829
| 0
| 0.033195
| 0.289609
| 1,357
| 50
| 62
| 27.14
| 0.817427
| 0.085483
| 0
| 0.685714
| 0
| 0
| 0.064465
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 1
| 0.057143
| false
| 0.028571
| 0.171429
| 0
| 0.314286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
13582ad5c961c78d59f1cc8ba8ba3e4f08bb09c7
| 64
|
py
|
Python
|
contents/tts/content/TensorflowTTS/tensorflow_tts/processor/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 2
|
2020-06-01T07:39:25.000Z
|
2021-11-08T09:31:33.000Z
|
contents/tts/content/TensorflowTTS/tensorflow_tts/processor/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 1
|
2021-02-26T04:10:19.000Z
|
2021-02-26T04:10:19.000Z
|
contents/tts/content/TensorflowTTS/tensorflow_tts/processor/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 4
|
2021-04-14T03:06:58.000Z
|
2022-03-07T05:45:01.000Z
|
from tensorflow_tts.processor.ljspeech import LJSpeechProcessor
| 32
| 63
| 0.90625
| 7
| 64
| 8.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 64
| 1
| 64
| 64
| 0.95
| 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
| 1
| 0
|
0
| 5
|
135a4d7b84f051f6e4bed428fc339745a50d1df6
| 710
|
py
|
Python
|
src/compas/datastructures/network/__init__.py
|
funkchaser/compas
|
b58de8771484aa0c6068d43df78b1679503215de
|
[
"MIT"
] | 235
|
2017-11-07T07:33:22.000Z
|
2022-03-25T16:20:00.000Z
|
src/compas/datastructures/network/__init__.py
|
funkchaser/compas
|
b58de8771484aa0c6068d43df78b1679503215de
|
[
"MIT"
] | 770
|
2017-09-22T13:42:06.000Z
|
2022-03-31T21:26:45.000Z
|
src/compas/datastructures/network/__init__.py
|
funkchaser/compas
|
b58de8771484aa0c6068d43df78b1679503215de
|
[
"MIT"
] | 99
|
2017-11-06T23:15:28.000Z
|
2022-03-25T16:05:36.000Z
|
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import compas
from .operations import * # noqa: F401 F403
if not compas.IPY:
from .matrices import * # noqa: F401 F403
from .network import * # noqa: F401 F403
from .combinatorics import * # noqa: F401 F403
from .complementarity import * # noqa: F401 F403
from .duality import * # noqa: F401 F403
from .explode import * # noqa: F401 F403
from .planarity import * # noqa: F401 F403
from .smoothing import * # noqa: F401 F403
from .transformations import * # noqa: F401 F403
from .traversal import * # noqa: F401 F403
__all__ = [name for name in dir() if not name.startswith('_')]
| 28.4
| 62
| 0.728169
| 96
| 710
| 5.1875
| 0.322917
| 0.220884
| 0.309237
| 0.39759
| 0.39759
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115183
| 0.192958
| 710
| 24
| 63
| 29.583333
| 0.753927
| 0.246479
| 0
| 0
| 0
| 0
| 0.001912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.882353
| 0
| 0.882353
| 0.058824
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
135e0f4c3445eed86e69f6d867d96e64d30149f5
| 361
|
py
|
Python
|
src/lib/pythonds3/basic/__init__.py
|
bjones1/skulpt
|
4ebbc47ab9a787c167ce8fadc457609ec9041788
|
[
"MIT"
] | 6
|
2017-03-15T07:30:56.000Z
|
2020-09-12T03:27:15.000Z
|
src/lib/pythonds3/basic/__init__.py
|
bjones1/skulpt
|
4ebbc47ab9a787c167ce8fadc457609ec9041788
|
[
"MIT"
] | 2
|
2017-08-18T15:31:18.000Z
|
2021-07-30T20:49:12.000Z
|
src/lib/pythonds3/basic/__init__.py
|
bjones1/skulpt
|
4ebbc47ab9a787c167ce8fadc457609ec9041788
|
[
"MIT"
] | 13
|
2017-07-02T03:16:46.000Z
|
2021-07-05T14:53:56.000Z
|
#!/usr/bin/env python3
"""
pythonds3.basic import statement
"""
from pythonds3.basic.stack import Stack
from pythonds3.basic.queue import Queue
from pythonds3.basic.deque import Deque
from pythonds3.basic.linked_list import OrderedList
from pythonds3.basic.linked_list import UnorderedList
__all__ = ["Stack", "Queue", "Deque", "OrderedList", "UnorderedList"]
| 30.083333
| 69
| 0.795014
| 46
| 361
| 6.108696
| 0.369565
| 0.298932
| 0.320285
| 0.170819
| 0.241993
| 0.241993
| 0
| 0
| 0
| 0
| 0
| 0.021472
| 0.096953
| 361
| 11
| 70
| 32.818182
| 0.840491
| 0.149584
| 0
| 0
| 0
| 0
| 0.130435
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
13808be9dd3ae7b01772538e168c82f96b7cb62c
| 27
|
py
|
Python
|
python/testData/codeInsight/liveTemplates/context/inParameterList.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/codeInsight/liveTemplates/context/inParameterList.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/codeInsight/liveTemplates/context/inParameterList.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def foo(a, <caret>):
pass
| 13.5
| 20
| 0.592593
| 5
| 27
| 3.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185185
| 27
| 2
| 21
| 13.5
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.5
| 0
| null | null | 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
1399afe8ebcdf4a7c845737765566f408e182cad
| 8,866
|
py
|
Python
|
test/test_config.py
|
jwodder/daemail
|
5e6c68742e08180255c60fa7fbe5e88ccaa55d9a
|
[
"MIT"
] | 2
|
2016-04-30T02:32:12.000Z
|
2020-09-10T10:54:55.000Z
|
test/test_config.py
|
jwodder/daemail
|
5e6c68742e08180255c60fa7fbe5e88ccaa55d9a
|
[
"MIT"
] | null | null | null |
test/test_config.py
|
jwodder/daemail
|
5e6c68742e08180255c60fa7fbe5e88ccaa55d9a
|
[
"MIT"
] | 1
|
2017-06-11T16:55:41.000Z
|
2017-06-11T16:55:41.000Z
|
import locale
from pathlib import Path
from unittest.mock import MagicMock
from click.testing import CliRunner
from outgoing import get_default_configpath
import pytest
from pytest_mock import MockerFixture
from daemail.__main__ import main
@pytest.fixture
def capture_cfg(mocker: MockerFixture) -> MagicMock:
return mocker.patch("daemail.__main__.Daemail", autospec=True)
@pytest.fixture(autouse=True)
def default_config(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
monkeypatch.setenv("HOME", str(tmp_path))
monkeypatch.delenv("XDG_CONFIG_HOME", raising=False)
monkeypatch.setenv("LOCALAPPDATA", str(tmp_path))
p = get_default_configpath()
p.parent.mkdir(parents=True, exist_ok=True)
p.write_text('[outgoing]\nmethod = "command"\n')
def test_command_options(mocker: MockerFixture) -> None:
run = mocker.patch("daemail.__main__.Daemail.run", autospec=True)
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"true",
"-l",
"true.log",
"false",
],
)
assert r.exit_code == 0, r.output
run.assert_called_once_with(mocker.ANY, "true", "-l", "true.log", "false")
def test_command_double_dash(mocker: MockerFixture) -> None:
run = mocker.patch("daemail.__main__.Daemail.run", autospec=True)
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"true",
"--",
"-l",
"true.log",
"false",
],
)
assert r.exit_code == 0, r.output
run.assert_called_once_with(
mocker.ANY,
"true",
"--",
"-l",
"true.log",
"false",
)
def test_double_dash_command(mocker: MockerFixture) -> None:
run = mocker.patch("daemail.__main__.Daemail.run", autospec=True)
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--",
"-l",
"true.log",
"false",
],
)
assert r.exit_code == 0, r.output
run.assert_called_once_with(mocker.ANY, "-l", "true.log", "false")
def test_bad_encoding(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"--encoding",
"foobar",
"-t",
"null@test.test",
"true",
],
)
assert r.exit_code != 0
assert "foobar: unknown encoding" in r.output
assert not capture_cfg.called
def test_bad_stderr_encoding(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"--stderr-encoding",
"foobar",
"-t",
"null@test.test",
"true",
],
)
assert r.exit_code != 0
assert "foobar: unknown encoding" in r.output
assert not capture_cfg.called
def test_default_encodings(capture_cfg: MagicMock) -> None:
def_encoding = locale.getpreferredencoding(True)
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
reporter = capture_cfg.call_args[1]["reporter"]
assert reporter.encoding == def_encoding
assert reporter.stderr_encoding == def_encoding
def test_encoding_set(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--encoding=cp500",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
reporter = capture_cfg.call_args[1]["reporter"]
assert reporter.encoding == "cp500"
assert reporter.stderr_encoding == "cp500"
def test_stderr_encoding_set(capture_cfg: MagicMock) -> None:
def_encoding = locale.getpreferredencoding(True)
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--stderr-encoding",
"cp500",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
reporter = capture_cfg.call_args[1]["reporter"]
assert reporter.encoding == def_encoding
assert reporter.stderr_encoding == "cp500"
def test_all_encodings_set(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--encoding=cp500",
"--stderr-encoding",
"utf-16be",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
reporter = capture_cfg.call_args[1]["reporter"]
assert reporter.encoding == "cp500"
assert reporter.stderr_encoding == "utf-16be"
def test_stdout_file_defaults(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
runner = capture_cfg.call_args[1]["runner"]
reporter = capture_cfg.call_args[1]["reporter"]
assert not runner.split
assert reporter.stdout_filename is None
assert reporter.mime_type is None
def test_stdout_filename_set(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--stdout-filename=foo.png",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
runner = capture_cfg.call_args[1]["runner"]
reporter = capture_cfg.call_args[1]["reporter"]
assert runner.split
assert reporter.stdout_filename == "foo.png"
assert reporter.mime_type == "image/png"
def test_mime_type_set(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--mime-type",
"application/json",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
runner = capture_cfg.call_args[1]["runner"]
reporter = capture_cfg.call_args[1]["reporter"]
assert runner.split
assert reporter.stdout_filename == "stdout"
assert reporter.mime_type == "application/json"
def test_mime_type_and_stdout_filename_set(capture_cfg: MagicMock) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--stdout-filename",
"foo.png",
"--mime-type=application/json",
"true",
],
)
assert r.exit_code == 0, r.output
assert capture_cfg.call_count == 1
runner = capture_cfg.call_args[1]["runner"]
reporter = capture_cfg.call_args[1]["reporter"]
assert runner.split
assert reporter.stdout_filename == "foo.png"
assert reporter.mime_type == "application/json"
@pytest.mark.parametrize(
"mt",
[
"text",
"text/",
"/plain",
"text/plain, charset=utf-8",
],
)
def test_bad_mime_type(capture_cfg: MagicMock, mt: str) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--mime-type",
mt,
"true",
],
)
assert r.exit_code != 0
assert f"{mt}: invalid MIME type" in r.output
assert not capture_cfg.called
@pytest.mark.parametrize("to_addr", ["Me", "person@example.com, foo@bar.org"])
def test_bad_to_addr(capture_cfg: MagicMock, to_addr: str) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
to_addr,
"true",
],
)
assert r.exit_code != 0
assert f"{to_addr!r}: invalid address" in r.output
assert not capture_cfg.called
@pytest.mark.parametrize("from_addr", ["Me", "person@example.com, foo@bar.org"])
def test_bad_from_addr(capture_cfg: MagicMock, from_addr: str) -> None:
r = CliRunner().invoke(
main,
[
"--foreground",
"-t",
"null@test.test",
"--from",
from_addr,
"true",
],
)
assert r.exit_code != 0
assert f"{from_addr!r}: invalid address" in r.output
assert not capture_cfg.called
| 26.230769
| 80
| 0.551771
| 968
| 8,866
| 4.858471
| 0.128099
| 0.082926
| 0.059536
| 0.068042
| 0.781629
| 0.775462
| 0.747821
| 0.742717
| 0.736976
| 0.714012
| 0
| 0.010157
| 0.311527
| 8,866
| 337
| 81
| 26.308605
| 0.760321
| 0
| 0
| 0.654485
| 0
| 0
| 0.162193
| 0.018159
| 0
| 0
| 0
| 0
| 0.189369
| 1
| 0.059801
| false
| 0
| 0.026578
| 0.003322
| 0.089701
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
13b7d58bf8841c630461c13cceb3f4139a5a7462
| 15,582
|
py
|
Python
|
ironic/tests/unit/drivers/modules/oneview/test_power.py
|
naototty/ironic-vagrant-wk
|
f5605d13e67c71c46538bafa5f7ddc18fb7427a6
|
[
"Apache-2.0"
] | null | null | null |
ironic/tests/unit/drivers/modules/oneview/test_power.py
|
naototty/ironic-vagrant-wk
|
f5605d13e67c71c46538bafa5f7ddc18fb7427a6
|
[
"Apache-2.0"
] | null | null | null |
ironic/tests/unit/drivers/modules/oneview/test_power.py
|
naototty/ironic-vagrant-wk
|
f5605d13e67c71c46538bafa5f7ddc18fb7427a6
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (2015-2017) Hewlett Packard Enterprise Development LP
# Copyright (2015-2017) Universidade Federal de Campina Grande
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import mock
from oslo_utils import importutils
from oslo_utils import uuidutils
from ironic.common import driver_factory
from ironic.common import exception
from ironic.common import states
from ironic.conductor import task_manager
from ironic.drivers.modules.oneview import common
from ironic.drivers.modules.oneview import deploy_utils
from ironic.drivers.modules.oneview import management
from ironic.drivers.modules.oneview import power
from ironic.tests.unit.conductor import mgr_utils
from ironic.tests.unit.db import base as db_base
from ironic.tests.unit.db import utils as db_utils
from ironic.tests.unit.objects import utils as obj_utils
client_exception = importutils.try_import('hpOneView.exceptions')
class OneViewPowerDriverTestCase(db_base.DbTestCase):
def setUp(self):
super(OneViewPowerDriverTestCase, self).setUp()
self.config(manager_url='https://1.2.3.4', group='oneview')
self.config(username='user', group='oneview')
self.config(password='password', group='oneview')
self.config(tls_cacert_file='ca_file', group='oneview')
self.config(allow_insecure_connections=False, group='oneview')
mgr_utils.mock_the_extension_manager(driver='fake_oneview')
self.driver = driver_factory.get_driver('fake_oneview')
self.node = obj_utils.create_test_node(
self.context, driver='fake_oneview',
properties=db_utils.get_test_oneview_properties(),
driver_info=db_utils.get_test_oneview_driver_info(),
)
self.info = common.get_oneview_info(self.node)
deploy_utils.is_node_in_use_by_oneview = mock.Mock(return_value=False)
@mock.patch.object(common, 'validate_oneview_resources_compatibility')
def test_validate(self, mock_validate):
with task_manager.acquire(self.context, self.node.uuid) as task:
task.driver.power.validate(task)
self.assertTrue(mock_validate.called)
def test_validate_missing_parameter(self):
node = obj_utils.create_test_node(
self.context, uuid=uuidutils.generate_uuid(),
id=999, driver='fake_oneview')
with task_manager.acquire(self.context, node.uuid) as task:
self.assertRaises(
exception.MissingParameterValue,
task.driver.power.validate,
task)
@mock.patch.object(common, 'validate_oneview_resources_compatibility')
def test_validate_exception(self, mock_validate):
mock_validate.side_effect = exception.OneViewError('message')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.InvalidParameterValue,
task.driver.power.validate,
task)
def test_validate_node_in_use_by_oneview(self):
deploy_utils.is_node_in_use_by_oneview.return_value = True
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.InvalidParameterValue,
task.driver.power.validate,
task)
def test_get_properties(self):
expected = common.COMMON_PROPERTIES
self.assertEqual(expected, self.driver.power.get_properties())
@mock.patch.object(common, 'get_hponeview_client')
def test_get_power_state(self, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'On'}
client.server_hardware.get.return_value = server_hardware
with task_manager.acquire(self.context, self.node.uuid) as task:
power_state = self.driver.power.get_power_state(task)
self.assertEqual(states.POWER_ON, power_state)
@mock.patch.object(common, 'get_hponeview_client')
def test_get_power_state_fail(self, mock_get_ov_client):
client = mock_get_ov_client()
exc = client_exception.HPOneViewException()
client.server_hardware.get.side_effect = exc
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.OneViewError,
self.driver.power.get_power_state,
task)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_on(self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.POWER_ON)
self.assertTrue(mock_set_boot_device.called)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_ON, server_hardware,
timeout=-1)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_on_with_timeout(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.POWER_ON, timeout=2)
self.assertTrue(mock_set_boot_device.called)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_ON, server_hardware,
timeout=2)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_off(self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.POWER_OFF)
self.assertFalse(mock_set_boot_device.called)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_OFF, server_hardware,
timeout=-1)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_off_with_timeout(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.POWER_OFF,
timeout=2)
self.assertFalse(mock_set_boot_device.called)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_OFF, server_hardware,
timeout=2)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_reboot(self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.REBOOT)
calls = [mock.call(power.POWER_OFF, server_hardware, timeout=-1),
mock.call(power.POWER_ON, server_hardware, timeout=-1)]
update = client.server_hardware.update_power_state
update.assert_has_calls(calls)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_soft_reboot(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
self.driver.power.client = client
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.set_power_state(task, states.SOFT_REBOOT)
calls = [mock.call(power.SOFT_POWER_OFF, server_hardware,
timeout=-1),
mock.call(power.POWER_ON, server_hardware, timeout=-1)]
update = client.server_hardware.update_power_state
update.assert_has_calls(calls)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_on_fail(self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
exc = client_exception.HPOneViewException()
client.server_hardware.update_power_state.side_effect = exc
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.OneViewError,
self.driver.power.set_power_state,
task,
states.POWER_ON)
mock_set_boot_device.assert_called_once_with(task)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_off_fail(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
exc = client_exception.HPOneViewException()
client.server_hardware.update_power_state.side_effect = exc
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.OneViewError,
self.driver.power.set_power_state,
task,
states.POWER_OFF)
self.assertFalse(mock_set_boot_device.called)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_reboot_fail_with_hardware_on(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'On'}
client.server_hardware.get.return_value = server_hardware
exc = client_exception.HPOneViewException()
client.server_hardware.update_power_state.side_effect = exc
self.driver.power.client = client
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.OneViewError,
self.driver.power.reboot,
task)
self.assertFalse(mock_set_boot_device.called)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_reboot_fail_with_hardware_off(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'Off'}
client.server_hardware.get.return_value = server_hardware
exc = client_exception.HPOneViewException()
client.server_hardware.update_power_state.side_effect = exc
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.OneViewError,
self.driver.power.reboot,
task)
mock_set_boot_device.assert_called_once_with(task)
@mock.patch.object(management, 'set_boot_device')
def test_set_power_invalid_state(self, mock_set_boot_device):
with task_manager.acquire(self.context, self.node.uuid) as task:
self.assertRaises(
exception.InvalidParameterValue,
self.driver.power.set_power_state,
task,
'fake_state')
self.assertFalse(mock_set_boot_device.called)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_reboot_with_hardware_on(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'On'}
client.server_hardware.get.return_value = server_hardware
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.reboot(task)
calls = [mock.call(power.POWER_OFF, server_hardware, timeout=-1),
mock.call(power.POWER_ON, server_hardware, timeout=-1)]
update = client.server_hardware.update_power_state
update.assert_has_calls(calls)
mock_set_boot_device.assert_called_once_with(task)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_reboot_with_hardware_off(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'Off'}
client.server_hardware.get.return_value = server_hardware
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.reboot(task, timeout=-1)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_ON, server_hardware,
timeout=-1)
mock_set_boot_device.assert_called_once_with(task)
@mock.patch.object(common, 'get_hponeview_client')
@mock.patch.object(management, 'set_boot_device')
def test_set_power_reboot_with_hardware_off_with_timeout(
self, mock_set_boot_device, mock_get_ov_client):
client = mock_get_ov_client()
server_hardware = {'powerState': 'Off'}
client.server_hardware.get.return_value = server_hardware
server_hardware = self.node.driver_info.get('server_hardware_uri')
with task_manager.acquire(self.context, self.node.uuid) as task:
self.driver.power.reboot(task, timeout=2)
update = client.server_hardware.update_power_state
update.assert_called_once_with(power.POWER_ON, server_hardware,
timeout=2)
mock_set_boot_device.assert_called_once_with(task)
def test_get_supported_power_states(self):
with task_manager.acquire(self.context, self.node.uuid,
shared=True) as task:
supported_power_states = (
task.driver.power.get_supported_power_states(task))
self.assertEqual(set(power.SET_POWER_STATE_MAP),
set(supported_power_states))
| 49.154574
| 79
| 0.684764
| 1,942
| 15,582
| 5.170958
| 0.098352
| 0.086437
| 0.051783
| 0.044812
| 0.797949
| 0.77385
| 0.750448
| 0.738897
| 0.732723
| 0.716391
| 0
| 0.003576
| 0.228276
| 15,582
| 316
| 80
| 49.310127
| 0.831518
| 0.043255
| 0
| 0.669118
| 0
| 0
| 0.066474
| 0.005372
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0.084559
| false
| 0.003676
| 0.058824
| 0
| 0.147059
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
13b80ffc7478bba3dbd40dc063c4dcbc49517d84
| 102
|
py
|
Python
|
Assignments/Functions/Alphabetically first/code.py
|
Axelm-HR/HR
|
01e17d0f1164719efdceef4cfb9d7c00b94c151a
|
[
"MIT"
] | null | null | null |
Assignments/Functions/Alphabetically first/code.py
|
Axelm-HR/HR
|
01e17d0f1164719efdceef4cfb9d7c00b94c151a
|
[
"MIT"
] | null | null | null |
Assignments/Functions/Alphabetically first/code.py
|
Axelm-HR/HR
|
01e17d0f1164719efdceef4cfb9d7c00b94c151a
|
[
"MIT"
] | null | null | null |
def alphabetically_first(s1, s2):
sorted_list = sorted(list([s1, s2]))
return sorted_list[0]
| 20.4
| 40
| 0.686275
| 15
| 102
| 4.466667
| 0.6
| 0.447761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.059524
| 0.176471
| 102
| 4
| 41
| 25.5
| 0.738095
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
13d2d1a8baefe580878726d0349f39cf1c82f3ac
| 232
|
py
|
Python
|
chap09/list0918.py
|
ytianjin/GitTest
|
a657f46098728ad90f7140fadad356e8561c9a7a
|
[
"MIT"
] | null | null | null |
chap09/list0918.py
|
ytianjin/GitTest
|
a657f46098728ad90f7140fadad356e8561c9a7a
|
[
"MIT"
] | null | null | null |
chap09/list0918.py
|
ytianjin/GitTest
|
a657f46098728ad90f7140fadad356e8561c9a7a
|
[
"MIT"
] | null | null | null |
# 打印输出可变参数的信息
def print_args(*args):
"""打印输出接收可变参数的args的信息"""
print('type(args) = ', type(args))
print('len(args) = ', len(args))
print('args = ', args)
print_args()
print()
print_args(1, 2, 3)
| 19.333333
| 39
| 0.547414
| 27
| 232
| 4.592593
| 0.37037
| 0.290323
| 0.209677
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017442
| 0.258621
| 232
| 11
| 40
| 21.090909
| 0.703488
| 0.133621
| 0
| 0
| 0
| 0
| 0.211957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0
| 0
| 0
| 0.142857
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
13d4dcd7f90491238154c65aee118986d061e08c
| 102
|
py
|
Python
|
repo2docker/buildpacks/julia/__init__.py
|
davidjsherman/repo2docker
|
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
|
[
"BSD-3-Clause"
] | 1,047
|
2017-05-25T03:37:21.000Z
|
2020-08-09T19:36:56.000Z
|
repo2docker/buildpacks/julia/__init__.py
|
davidjsherman/repo2docker
|
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
|
[
"BSD-3-Clause"
] | 810
|
2017-05-24T20:50:49.000Z
|
2020-08-05T15:56:38.000Z
|
repo2docker/buildpacks/julia/__init__.py
|
davidjsherman/repo2docker
|
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
|
[
"BSD-3-Clause"
] | 253
|
2017-06-02T20:23:05.000Z
|
2020-08-04T17:23:22.000Z
|
from .julia_project import JuliaProjectTomlBuildPack
from .julia_require import JuliaRequireBuildPack
| 34
| 52
| 0.901961
| 10
| 102
| 9
| 0.7
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 102
| 2
| 53
| 51
| 0.957447
| 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
| 1
| 0
|
0
| 5
|
b9b2b33b3fe9b5b1afa43dbd9c26a101366a1e79
| 41
|
py
|
Python
|
monk/gluon/optimizers/imports.py
|
take2rohit/monk_v1
|
9c567bf2c8b571021b120d879ba9edf7751b9f92
|
[
"Apache-2.0"
] | 542
|
2019-11-10T12:09:31.000Z
|
2022-03-28T11:39:07.000Z
|
monk/gluon/optimizers/imports.py
|
take2rohit/monk_v1
|
9c567bf2c8b571021b120d879ba9edf7751b9f92
|
[
"Apache-2.0"
] | 117
|
2019-11-12T09:39:24.000Z
|
2022-03-12T00:20:41.000Z
|
monk/gluon/optimizers/imports.py
|
take2rohit/monk_v1
|
9c567bf2c8b571021b120d879ba9edf7751b9f92
|
[
"Apache-2.0"
] | 246
|
2019-11-09T21:53:24.000Z
|
2022-03-29T00:57:07.000Z
|
import os
import sys
import mxnet as mx
| 8.2
| 18
| 0.780488
| 8
| 41
| 4
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.219512
| 41
| 4
| 19
| 10.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
b9beaf4c00555b60109ab553c53eae32a3cfbeb9
| 205
|
py
|
Python
|
dni/monoids/__init__.py
|
ixaxaar/pytorch-dni
|
dbc20de6ca1440630f74ed0de29c28cea05d949d
|
[
"MIT"
] | 9
|
2018-02-04T21:15:41.000Z
|
2021-04-26T18:59:25.000Z
|
dni/monoids/__init__.py
|
ixaxaar/pytorch-dni
|
dbc20de6ca1440630f74ed0de29c28cea05d949d
|
[
"MIT"
] | 9
|
2018-01-19T19:49:08.000Z
|
2020-06-08T18:47:56.000Z
|
dni/monoids/__init__.py
|
ixaxaar/pytorch-dni
|
dbc20de6ca1440630f74ed0de29c28cea05d949d
|
[
"MIT"
] | 3
|
2018-04-23T13:42:12.000Z
|
2019-01-24T03:47:51.000Z
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .monoid import Monoid
from .monoid import sumM
from .monoid import subM
from .monoid import prodM
from .monoid import divM
from .monoid import matmulM
| 18.636364
| 27
| 0.741463
| 31
| 205
| 4.903226
| 0.483871
| 0.394737
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 0.160976
| 205
| 10
| 28
| 20.5
| 0.872093
| 0.209756
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
b9c5da8079b7c2df9c10afd47ff2aba11956199c
| 8,862
|
py
|
Python
|
lightkurve/tests/test_synthetic_data.py
|
mariomorvan/lightkurve
|
e045c1f24befdff9588605a352843d132d23220f
|
[
"MIT"
] | 9
|
2019-05-29T00:20:26.000Z
|
2021-11-16T21:54:36.000Z
|
lightkurve/tests/test_synthetic_data.py
|
mariomorvan/lightkurve
|
e045c1f24befdff9588605a352843d132d23220f
|
[
"MIT"
] | 1
|
2020-01-29T20:28:02.000Z
|
2020-01-29T22:41:45.000Z
|
lightkurve/tests/test_synthetic_data.py
|
mariomorvan/lightkurve
|
e045c1f24befdff9588605a352843d132d23220f
|
[
"MIT"
] | 2
|
2019-11-04T01:47:35.000Z
|
2019-11-12T19:56:58.000Z
|
"""Use synthetic data to verify lightkurve detrending and signal recovery.
"""
from __future__ import division, print_function
from astropy.utils.data import get_pkg_data_filename
import numpy as np
import pytest
from scipy import stats
from ..targetpixelfile import KeplerTargetPixelFile
from ..correctors import SFFCorrector, PLDCorrector
# See `data/synthetic/README.md` for details about these synthetic test files
filename_synthetic_sine = get_pkg_data_filename("data/synthetic/synthetic-k2-sinusoid.targ.fits.gz")
filename_synthetic_transit = get_pkg_data_filename("data/synthetic/synthetic-k2-planet.targ.fits.gz")
filename_synthetic_flat = get_pkg_data_filename("data/synthetic/synthetic-k2-flat.targ.fits.gz")
# BLS is only available in Python 3 versions of AstroPy;
# so we will need to skip BLS-based tests below when in Python 2.
lacks_bls = False
try:
from astropy.stats.bls import BoxLeastSquares
except ImportError:
lacks_bls = True
def test_sine_sff():
"""Can we recover a synthetic sine curve using SFF and LombScargle?"""
# Retrieve the custom, known signal properties
tpf = KeplerTargetPixelFile(filename_synthetic_sine)
true_period = np.float(tpf.hdu[3].header['PERIOD'])
true_amplitude = np.float(tpf.hdu[3].header['SINE_AMP'])
# Run the SFF algorithm
lc = tpf.to_lightcurve()
corrector = SFFCorrector(lc)
cor_lc = corrector.correct(tpf.pos_corr2, tpf.pos_corr1,
niters=4, windows=5, bins=7, restore_trend=True)
# Verify that we get the period within ~20%
pg = cor_lc.to_periodogram(method='lombscargle', minimum_period=1,
maximum_period=10, oversample_factor=10)
ret_period = pg.period_at_max_power.value
threshold = 0.2
assert ((ret_period > true_period*(1-threshold)) &
(ret_period < true_period*(1+threshold)) )
# Verify that we get the amplitude to within 10%
n_cad = len(tpf.time)
design_matrix = np.vstack([np.ones(n_cad),
np.sin(2.0*np.pi*cor_lc.time/ret_period),
np.cos(2.0*np.pi*cor_lc.time/ret_period)]).T
ATA = np.dot(design_matrix.T, design_matrix / cor_lc.flux_err[:, None]**2)
least_squares_coeffs = np.linalg.solve(ATA, np.dot(design_matrix.T, cor_lc.flux/cor_lc.flux_err**2 ))
const, sin_weight, cos_weight = least_squares_coeffs
fractional_amplitude = (sin_weight**2+cos_weight**2)**(0.5) / const
assert ((fractional_amplitude > true_amplitude/1.1) &
(fractional_amplitude < true_amplitude*1.1) )
@pytest.mark.skipif(lacks_bls, reason="Astropy BLS requires Python 3")
def test_transit_sff():
"""Can we recover a synthetic exoplanet signal using SFF and BLS?"""
# Retrieve the custom, known signal properties
tpf = KeplerTargetPixelFile(filename_synthetic_transit)
true_period = np.float(tpf.hdu[3].header['PERIOD'])
true_rprs = np.float(tpf.hdu[3].header['RPRS'])
true_transit_lc = tpf.hdu[3].data['NOISELESS_INPUT']
max_depth = 1-np.min(true_transit_lc)
# Run the SFF algorithm
lc = tpf.to_lightcurve()
corrector = SFFCorrector(lc)
cor_lc = corrector.correct(tpf.pos_corr2, tpf.pos_corr1,
niters=4, windows=5, bins=7, restore_trend=False)
# Verify that we get the transit period within 5%
pg = cor_lc.to_periodogram(method='bls', minimum_period=1, maximum_period=9,
frequency_factor=0.05, duration=np.arange(0.1, 0.6, 0.1))
ret_period = pg.period_at_max_power.value
threshold = 0.05
assert ((ret_period > true_period*(1-threshold)) &
(ret_period < true_period*(1+threshold)))
# Verify that we get the transit depth in expected bounds
assert ((pg.depth_at_max_power >= true_rprs**2) &
(pg.depth_at_max_power < max_depth))
@pytest.mark.skipif(lacks_bls, reason="Astropy BLS requires Python 3")
def test_transit_pld():
"""Can we recover a synthetic exoplanet signal using PLD and BLS?"""
# Retrieve the custom, known signal properties
tpf = KeplerTargetPixelFile(filename_synthetic_transit)
true_period = np.float(tpf.hdu[3].header['PERIOD'])
true_rprs = np.float(tpf.hdu[3].header['RPRS'])
true_transit_lc = tpf.hdu[3].data['NOISELESS_INPUT']
max_depth = 1-np.min(true_transit_lc)
# Run the PLD algorithm on a first pass
corrector = PLDCorrector(tpf)
cor_lc = corrector.correct(use_gp=False)
pg = cor_lc.to_periodogram(method='bls', minimum_period=1, maximum_period=9,
frequency_factor=0.05, duration=np.arange(0.1, 0.6, 0.1))
# Re-do PLD with the suspected transits masked
cor_lc = corrector.correct(use_gp=False, cadence_mask=pg.get_transit_mask()).normalize()
pg = cor_lc.to_periodogram(method='bls', minimum_period=1, maximum_period=9,
frequency_factor=0.05, duration=np.arange(0.1, 0.6, 0.1))
# Verify that we get the period within ~5%
ret_period = pg.period_at_max_power.value
threshold = 0.05
assert ((ret_period > true_period*(1-threshold)) &
(ret_period < true_period*(1+threshold)))
# Verify that we get the transit depth in expected bounds
assert ((pg.depth_at_max_power >= true_rprs**2) &
(pg.depth_at_max_power < max_depth))
def test_sine_pld():
"""Can we recover a synthetic sine wave using PLD and LombScargle?"""
# Retrieve the custom, known signal properties
tpf = KeplerTargetPixelFile(filename_synthetic_sine)
true_period = np.float(tpf.hdu[3].header['PERIOD'])
true_amplitude = np.float(tpf.hdu[3].header['SINE_AMP'])
# Run the PLD algorithm
corrector = PLDCorrector(tpf)
cor_lc = corrector.correct(use_gp=False)
# Verify that we get the period within ~20%
pg = cor_lc.to_periodogram(method='lombscargle', minimum_period=1,
maximum_period=10, oversample_factor=10)
ret_period = pg.period_at_max_power.value
threshold = 0.2
assert ((ret_period > true_period*(1-threshold)) &
(ret_period < true_period*(1+threshold)) )
# Verify that we get the amplitude to within 20%
n_cad = len(tpf.time)
design_matrix = np.vstack([np.ones(n_cad),
np.sin(2.0*np.pi*cor_lc.time/ret_period),
np.cos(2.0*np.pi*cor_lc.time/ret_period)]).T
ATA = np.dot(design_matrix.T, design_matrix / cor_lc.flux_err[:, None]**2)
least_squares_coeffs = np.linalg.solve(ATA, np.dot(design_matrix.T, cor_lc.flux/cor_lc.flux_err**2 ))
const, sin_weight, cos_weight = least_squares_coeffs
fractional_amplitude = (sin_weight**2+cos_weight**2)**(0.5) / const
assert ((fractional_amplitude > true_amplitude/1.1) &
(fractional_amplitude < true_amplitude*1.1) )
def test_detrending_residuals():
"""Test the detrending residual distributions"""
# Retrieve the custom, known signal properties
tpf = KeplerTargetPixelFile(filename_synthetic_flat)
# Run the SFF algorithm
lc = tpf.to_lightcurve()
corrector = SFFCorrector(lc)
cor_lc = corrector.correct(tpf.pos_corr2, tpf.pos_corr1,
niters=10, windows=5, bins=7, restore_trend=True)
# Verify that we get a significant reduction in RMS
cdpp_improvement = lc.estimate_cdpp() / cor_lc.estimate_cdpp()
assert cdpp_improvement > 10.0
# The residuals should be Gaussian-"ish"
# Table 4.1 of Ivezic, Connolly, Vanerplas, Gray 2014
anderson_threshold = 1.57
resid_n_sigmas = (cor_lc.flux - np.mean(cor_lc.flux))/cor_lc.flux_err
A_value, _, _ = stats.anderson(resid_n_sigmas)
assert A_value**2 < anderson_threshold
n_sigma = np.std(resid_n_sigmas)
assert n_sigma < 2.0
corrector = PLDCorrector(tpf)
cor_lc = corrector.correct(use_gp=False)
cdpp_improvement = lc.estimate_cdpp()/cor_lc.estimate_cdpp()
assert cdpp_improvement > 10.0
resid_n_sigmas = (cor_lc.flux - np.mean(cor_lc.flux))/cor_lc.flux_err
A_value, crit, sig = stats.anderson(resid_n_sigmas)
assert A_value**2 < anderson_threshold
n_sigma = np.std(resid_n_sigmas)
assert n_sigma < 2.0
def test_centroids():
"""Test the estimate centroid method."""
for fn in (filename_synthetic_sine, filename_synthetic_transit,
filename_synthetic_flat):
tpf = KeplerTargetPixelFile(fn)
xraw, yraw = tpf.estimate_centroids()
xnorm = xraw - np.median(xraw)
ynorm = yraw - np.median(yraw)
xposc = tpf.pos_corr2 - np.median(tpf.pos_corr2)
yposc = tpf.pos_corr1 - np.median(tpf.pos_corr1)
rmax = np.max(np.sqrt((xnorm-xposc)**2 + (ynorm-yposc)**2))
# The centroids should agree to within a hundredth of a pixel.
assert rmax < 0.01
| 42.401914
| 105
| 0.686301
| 1,281
| 8,862
| 4.530055
| 0.184231
| 0.025849
| 0.018611
| 0.023264
| 0.769774
| 0.760469
| 0.74427
| 0.733758
| 0.69757
| 0.69757
| 0
| 0.023553
| 0.204694
| 8,862
| 208
| 106
| 42.605769
| 0.799801
| 0.177951
| 0
| 0.708955
| 0
| 0
| 0.042642
| 0.019521
| 0
| 0
| 0
| 0
| 0.11194
| 1
| 0.044776
| false
| 0
| 0.067164
| 0
| 0.11194
| 0.007463
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6a0ad2a4189f1c2ec1657a271b6dec794a309fa8
| 835
|
py
|
Python
|
tests/syntax/conftest.py
|
viabzalov/graph-database
|
91b13f653b18170ad5fc563660361f8c41ed6a58
|
[
"MIT"
] | null | null | null |
tests/syntax/conftest.py
|
viabzalov/graph-database
|
91b13f653b18170ad5fc563660361f8c41ed6a58
|
[
"MIT"
] | 2
|
2020-10-04T14:18:11.000Z
|
2020-11-27T09:18:50.000Z
|
tests/syntax/conftest.py
|
viabzalov/graph-database
|
91b13f653b18170ad5fc563660361f8c41ed6a58
|
[
"MIT"
] | null | null | null |
import pytest
examples = [
"connect to database db_1;"
, "select pairs from g1;"
, "select count from g2 where (((a|b)|(c*))*);"
, "select pairs from intersection of g1 and g2 where ((a*)|(b*));"
, "\
connect to database resources/database_1;\
select pairs from g1;\
select count from g2 where (((a|b)|(c*))*);\
"
, "\
connect to database resources_database_42;\
select pairs from intersection of g1 and g2 where ((a*)|(b*));\
"
, "\
connect to database resources/database_1;\
select pairs from g1;\
select count from g2 where (((a|b)|(c*))*);\
connect to database resources_database_42;\
select pairs from intersection of g1 and g2 where ((a*)|(b*));\
"
]
@pytest.fixture(scope='session', params=examples)
def suite(request):
return request.param
| 27.833333
| 70
| 0.617964
| 113
| 835
| 4.504425
| 0.283186
| 0.129666
| 0.176817
| 0.10609
| 0.781925
| 0.781925
| 0.781925
| 0.781925
| 0.781925
| 0.781925
| 0
| 0.029503
| 0.228743
| 835
| 29
| 71
| 28.793103
| 0.76087
| 0
| 0
| 0.5
| 0
| 0
| 0.189222
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038462
| false
| 0
| 0.038462
| 0.038462
| 0.115385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
dbdf3952b562a9463248f2bf0ab78234a5a93db3
| 382
|
py
|
Python
|
linguistics/similarity/levenshtein.py
|
idin/mercurius
|
48a4ed7843fb5d1946ef8051f23da7b32ab52ca3
|
[
"MIT"
] | 7
|
2019-02-24T16:56:46.000Z
|
2022-01-30T03:26:49.000Z
|
linguistics/similarity/levenshtein.py
|
idin/mercurius
|
48a4ed7843fb5d1946ef8051f23da7b32ab52ca3
|
[
"MIT"
] | 1
|
2020-07-14T21:00:57.000Z
|
2021-02-25T07:12:11.000Z
|
linguistics/similarity/levenshtein.py
|
idin/linguistics
|
ab9568d81b225928beab353174fd97ccb0fe369c
|
[
"MIT"
] | null | null | null |
from editdistance import eval as _get_levenshtein_distance
def get_levenshtein_distance(s1, s2, case_sensitive=True):
if not case_sensitive:
s1 = s1.lower()
s2 = s2.lower()
return _get_levenshtein_distance(s1, s2)
def get_levenshtein_similarity(s1, s2, case_sensitive=True):
return 1-get_levenshtein_distance(s1, s2, case_sensitive=case_sensitive)/max(len(s1), len(s2))
| 27.285714
| 95
| 0.787958
| 58
| 382
| 4.896552
| 0.37931
| 0.246479
| 0.309859
| 0.253521
| 0.454225
| 0.274648
| 0.274648
| 0
| 0
| 0
| 0
| 0.044248
| 0.112565
| 382
| 13
| 96
| 29.384615
| 0.79351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.125
| 0.625
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
dbed93025f33de2d401795f829e875bb4973755c
| 15,869
|
py
|
Python
|
dymos/transcriptions/pseudospectral/components/test/test_collocation_defect_solver.py
|
dpsanders/dymos
|
ccd0c010537a621def7f46cb7f0dc5a2fd79e372
|
[
"Apache-2.0"
] | null | null | null |
dymos/transcriptions/pseudospectral/components/test/test_collocation_defect_solver.py
|
dpsanders/dymos
|
ccd0c010537a621def7f46cb7f0dc5a2fd79e372
|
[
"Apache-2.0"
] | null | null | null |
dymos/transcriptions/pseudospectral/components/test/test_collocation_defect_solver.py
|
dpsanders/dymos
|
ccd0c010537a621def7f46cb7f0dc5a2fd79e372
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import numpy as np
from numpy.testing import assert_almost_equal
import openmdao.api as om
from openmdao.utils.testing_utils import use_tempdirs
from dymos.transcriptions.grid_data import GridData
from dymos.transcriptions.pseudospectral.components.state_independents import StateIndependentsComp
# Modify class so we can run it standalone.
import dymos as dm
from dymos.examples.brachistochrone.brachistochrone_ode import BrachistochroneODE
from dymos.examples.brachistochrone.test.ex_brachistochrone import brachistochrone_min_time as brach
@use_tempdirs
class TestCollocationBalanceIndex(unittest.TestCase):
"""
Test that the indices used in the StateIndependentsComp are as expected.
"""
def setUp(self):
dm.options['include_check_partials'] = True
def tearDown(self):
dm.options['include_check_partials'] = False
def test_3_lgl(self):
"""
Test one 3rd order LGL segment indices
All nodes are: [0, 1, 2]
Input nodes: [^ ^]
Solver nodes: [ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1}
The indep node is just the first one: {0}
"""
p = brach(transcription='gauss-lobatto', num_segments=1, transcription_order=3,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_5_lgl(self):
"""
Test one 5th order LGL segment indices
All nodes are: [0, 1, 2, 3, 4]
Input nodes: [^ ^ ^]
Solver nodes: [ ^ ^]
Of input nodes, solver nodes for fix_initial are: {1, 2}
The indep node is just the first one: {0}
"""
p = brach(transcription='gauss-lobatto', num_segments=1, transcription_order=5,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_3_lgl_compressed(self):
"""
Test one 3rd order LGL segment indices
All nodes are: [0, 1, 2, 3, 4]
Input nodes: [^ ^ ^]
Solver nodes: [ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2}
The indep node is just the first one: {0}
"""
p = brach(transcription='gauss-lobatto', num_segments=2, transcription_order=3,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_5_lgl_compressed(self):
"""
Test two 5th order LGL segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Input nodes: [^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 4}
The indep node is just the first one: {0}
"""
p = brach(transcription='gauss-lobatto', num_segments=2, transcription_order=5,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 4})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_3_lgl_uncompressed(self):
"""
Test two 3rd order LGL segment indices
All nodes are: [0, 1, 2, 3, 4, 5]
Input nodes: [^ ^ ^ ^]
Solver nodes: [ ^ ^]
Indep nodes: [^ ^ ]
Of input nodes, solver nodes for fix_initial are: {1, 3}
The indep node is just the first one: {0, 2}
"""
p = brach(transcription='gauss-lobatto', num_segments=2, transcription_order=3,
compressed=False, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 3})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0, 2})
def test_5_lgl_uncompressed(self):
"""
Test two 5th order LGL segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Input nodes: [^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^]
Indep nodes: [^ ^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 4, 5}
The indep node is just the first one in each segment: {0, 3}
"""
p = brach(transcription='gauss-lobatto', num_segments=2, transcription_order=5,
compressed=False, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 4, 5})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0, 3})
def test_3_radau(self):
"""
Test one 3rd order radau segment indices
All nodes are: [0, 1, 2, 3]
Input nodes: [^ ^ ^ ^]
Solver nodes: [ ^ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3}
The indep node is just the first one: {0}
"""
p = brach(transcription='radau-ps', num_segments=1, transcription_order=3,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_5_radau(self):
"""
Test one 5th order radau segment indices
All nodes are: [0, 1, 2, 3, 4, 5]
Input nodes: [^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 4, 5}
The indep node is just the first one: {0}
"""
p = brach(transcription='radau-ps', num_segments=1, transcription_order=5,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 4, 5})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_3_radau_compressed(self):
"""
Test one 3rd order radau segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7]
Input nodes: [^ ^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 4, 5, 6}
The indep node is just the first one: {0}
"""
p = brach(transcription='radau-ps', num_segments=2, transcription_order=3,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 4, 5, 6})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_5_radau_compressed(self):
"""
Test two 5th order radau segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
Input nodes: [^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^]
Indep nodes: [^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
The indep node is just the first one: {0}
"""
p = brach(transcription='radau-ps', num_segments=2, transcription_order=5,
compressed=True, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0})
def test_3_radau_uncompressed(self):
"""
Test one 3rd order radau segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7]
Input nodes: [^ ^ ^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^ ^ ^]
Indep nodes: [^ ^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 5, 6, 7}
The indep node is just the first one: {0, 4}
"""
p = brach(transcription='radau-ps', num_segments=2, transcription_order=3,
compressed=False, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 5, 6, 7})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0, 4})
def test_5_radau_uncompressed(self):
"""
Test two 5th order radau segment indices
All nodes are: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
Input nodes: [^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^]
Solver nodes: [ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^]
Indep nodes: [^ ^ ]
Of input nodes, solver nodes for fix_initial are: {1, 2, 3, 4, 5, 7, 8, 9, 10, 11}
The indep node is just the first one: {0, 6}
"""
p = brach(transcription='radau-ps', num_segments=2, transcription_order=5,
compressed=False, solve_segments='forward', run_driver=True)
state_indeps_comp = p.model.traj0.phases.phase0.indep_states
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['solver']), {1, 2, 3, 4, 5, 7, 8, 9, 10, 11})
self.assertSetEqual(set(state_indeps_comp.state_idx_map['x']['indep']), {0, 6})
@use_tempdirs
class TestCollocationBalanceApplyNL(unittest.TestCase):
def tearDown(self):
dm.options['include_check_partials'] = False
def make_prob(self, transcription, num_segments, transcription_order, compressed):
p = om.Problem(model=om.Group())
if transcription == 'gauss-lobatto':
t = dm.GaussLobatto(num_segments=num_segments,
order=transcription_order,
compressed=compressed,)
elif transcription == 'radau-ps':
t = dm.Radau(num_segments=num_segments,
order=transcription_order,
compressed=compressed)
traj = dm.Trajectory()
phase = dm.Phase(ode_class=BrachistochroneODE, transcription=t)
p.model.add_subsystem('traj0', traj)
traj.add_phase('phase0', phase)
phase.set_time_options(fix_initial=True, duration_bounds=(.5, 10))
phase.add_state('x', fix_initial=True, fix_final=False, solve_segments='forward')
phase.add_state('y', fix_initial=True, fix_final=False, solve_segments='forward')
# Note that by omitting the targets here Dymos will automatically attempt to connect
# to a top-level input named 'v' in the ODE, and connect to nothing if it's not found.
phase.add_state('v', fix_initial=True, fix_final=False, solve_segments='forward')
phase.add_control('theta',
continuity=True, rate_continuity=True,
units='deg', lower=0.01, upper=179.9)
phase.add_parameter('g', targets=['g'], units='m/s**2')
phase.add_boundary_constraint('x', loc='final', equals=10)
phase.add_boundary_constraint('y', loc='final', equals=5)
# Minimize time at the end of the phase
phase.add_objective('time_phase', loc='final', scaler=10)
p.setup(force_alloc_complex=True)
p['traj0.phase0.t_initial'] = 0.0
p['traj0.phase0.t_duration'] = 2.0
p['traj0.phase0.states:x'] = phase.interpolate(ys=[0, 10], nodes='state_input')
p['traj0.phase0.states:y'] = phase.interpolate(ys=[10, 5], nodes='state_input')
p['traj0.phase0.states:v'] = phase.interpolate(ys=[0, 9.9], nodes='state_input')
p['traj0.phase0.controls:theta'] = phase.interpolate(ys=[5, 100], nodes='control_input')
p['traj0.phase0.parameters:g'] = 9.80665
return p
def test_apply_nonlinear_gl(self):
dm.options['include_check_partials'] = True
p = self.make_prob(transcription='gauss-lobatto', num_segments=3, transcription_order=3,
compressed=True)
p.final_setup()
p.model.run_apply_nonlinear() # need to make sure residuals are computed
expected = np.array([[0., 1., 1., 1.]]).T
outputs = p.model.traj0.phases.phase0.indep_states.list_outputs(residuals=True, out_stream=None)
resids = {k: v['resids'] for k, v in outputs}
assert_almost_equal(resids['states:x'], expected)
assert_almost_equal(resids['states:v'], expected)
def test_apply_nonlinear_radau(self):
dm.options['include_check_partials'] = True
p = self.make_prob(transcription='radau-ps', num_segments=3, transcription_order=3,
compressed=True)
p.final_setup()
p.model.run_apply_nonlinear() # need to make sure residuals are computed
expected = np.array([[0., 1., 1., 1., 1., 1., 1., 1., 1., 1.]]).T
outputs = p.model.traj0.phases.phase0.indep_states.list_outputs(residuals=True, out_stream=None)
resids = {k: v['resids'] for k, v in outputs}
assert_almost_equal(resids['states:x'], expected)
assert_almost_equal(resids['states:v'], expected)
def test_partials_gl(self):
dm.options['include_check_partials'] = True
p = self.make_prob(transcription='gauss-lobatto', num_segments=3, transcription_order=3,
compressed=True)
def test_partials_radau(self):
dm.options['include_check_partials'] = True
p = self.make_prob(transcription='radau-ps', num_segments=3, transcription_order=3,
compressed=True)
def assert_partials(data):
for of, wrt in data:
if of == wrt:
# IndepVarComp like outputs have correct derivs, but FD is wrong so we skip
# them (should be some form of -I)
continue
check_data = data[(of, wrt)]
self.assertLess(check_data['abs error'].forward, 1e-8)
cpd = p.check_partials(compact_print=True, method='fd', out_stream=None)
data = cpd['traj0.phases.phase0.indep_states']
assert_partials(data)
if __name__ == '__main__': # pragma: no cover
unittest.main()
| 42.544236
| 114
| 0.590396
| 2,040
| 15,869
| 4.419608
| 0.115686
| 0.043922
| 0.059894
| 0.055901
| 0.766859
| 0.758429
| 0.747671
| 0.736247
| 0.735914
| 0.708962
| 0
| 0.034986
| 0.283131
| 15,869
| 372
| 115
| 42.658602
| 0.75756
| 0.266242
| 0
| 0.449102
| 0
| 0
| 0.089272
| 0.032108
| 0
| 0
| 0
| 0
| 0.191617
| 1
| 0.125749
| false
| 0
| 0.05988
| 0
| 0.203593
| 0.005988
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
dbf8420d177705591f31cc675539c9159ca6dca3
| 398
|
py
|
Python
|
code_video/__init__.py
|
mrdon/code-video-generator
|
dde5bd9860b4944fa297b3083585c0036df17a0a
|
[
"Apache-2.0"
] | 196
|
2020-11-02T00:30:44.000Z
|
2022-03-19T09:45:32.000Z
|
code_video/__init__.py
|
mrdon/code-video-generator
|
dde5bd9860b4944fa297b3083585c0036df17a0a
|
[
"Apache-2.0"
] | 5
|
2020-11-18T21:43:40.000Z
|
2021-12-23T08:54:56.000Z
|
code_video/__init__.py
|
mrdon/code-video-generator
|
dde5bd9860b4944fa297b3083585c0036df17a0a
|
[
"Apache-2.0"
] | 10
|
2020-11-03T08:46:56.000Z
|
2021-09-14T12:31:24.000Z
|
from .autoscale import AutoScaled # noqa
from .code_walkthrough import * # noqa
from .layout import ColumnLayout # noqa
from .scene import CodeScene # noqa
from .sequence import Actor # noqa
from .sequence import Interaction # noqa
from .sequence import SequenceDiagram # noqa
from .widgets import Connection # noqa
from .widgets import NoteBox # noqa
from .widgets import TextBox # noqa
| 36.181818
| 45
| 0.771357
| 50
| 398
| 6.12
| 0.38
| 0.235294
| 0.156863
| 0.215686
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175879
| 398
| 10
| 46
| 39.8
| 0.932927
| 0.123116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 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
| 5
|
e00bb50818db66b623ca0e75c03a662fd4f9e29f
| 67
|
py
|
Python
|
workjets/__init__.py
|
geekac/workjets
|
0e4bca01e0579aade353aeaeb8e087bb8da2037b
|
[
"MIT"
] | null | null | null |
workjets/__init__.py
|
geekac/workjets
|
0e4bca01e0579aade353aeaeb8e087bb8da2037b
|
[
"MIT"
] | null | null | null |
workjets/__init__.py
|
geekac/workjets
|
0e4bca01e0579aade353aeaeb8e087bb8da2037b
|
[
"MIT"
] | null | null | null |
"""
pass
"""
def sayhi():
print('hello world!')
| 3.941176
| 25
| 0.402985
| 6
| 67
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.38806
| 67
| 16
| 26
| 4.1875
| 0.658537
| 0.059701
| 0
| 0
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
e00c2e16ac18a152bff1685ff50dd2c007481e0c
| 8,963
|
py
|
Python
|
tests/unit_tests/bittensor_tests/test_forward_backward.py
|
chaosxcode/bittensor
|
9c2f513cc7fb03844952ae3755162ed914b11cba
|
[
"MIT"
] | null | null | null |
tests/unit_tests/bittensor_tests/test_forward_backward.py
|
chaosxcode/bittensor
|
9c2f513cc7fb03844952ae3755162ed914b11cba
|
[
"MIT"
] | null | null | null |
tests/unit_tests/bittensor_tests/test_forward_backward.py
|
chaosxcode/bittensor
|
9c2f513cc7fb03844952ae3755162ed914b11cba
|
[
"MIT"
] | null | null | null |
from sys import version
from bittensor._endpoint import endpoint
import bittensor
import torch
import pytest
from unittest.mock import MagicMock
from torch.autograd import Variable
import multiprocessing
import time
dendrite = bittensor.dendrite()
dendrite.receptor_pool.forward = MagicMock(return_value = [torch.tensor([]), [1], [0]])
dendrite.receptor_pool.backward = MagicMock(return_value = [torch.tensor([]), [1], [0]])
endpoint = bittensor.endpoint(
version = bittensor.__version_as_int__,
uid = 0,
hotkey = '',
ip = '0.0.0.0',
ip_type = 4,
port = 8080,
modality = 0,
coldkey = ''
)
def test_dendrite_forward_tensor_shape_error():
x = torch.rand(3, 3, 3)
with pytest.raises(ValueError):
dendrite.forward_tensor( endpoints=[endpoint], inputs=[x])
def test_dendrite_forward_image_shape_error():
x = torch.rand(3, 3, 3)
with pytest.raises(ValueError):
dendrite.forward_image( endpoints=[endpoint], inputs=[x])
def test_dendrite_forward_text_shape_error():
x = torch.rand(3, 3, 3)
with pytest.raises(ValueError):
dendrite.forward_image( endpoints=[endpoint], inputs=[x])
def test_dendrite_forward_text():
x = torch.tensor([[1,2,3,4],[5,6,7,8]], dtype=torch.long)
dendrite.receptor_pool.forward = MagicMock(return_value = [ [torch.zeros([2, 4, bittensor.__network_dim__])], [1], [0]])
tensors, codes, times = dendrite.forward_text( endpoints=[endpoint], inputs=[x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert list(tensors[0].shape) == [2, 4, bittensor.__network_dim__]
def test_dendrite_forward_image():
x = torch.tensor([ [ [ [ [ 1 ] ] ] ] ], dtype=torch.float32)
dendrite.receptor_pool.forward = MagicMock(return_value = [ [torch.zeros([1, 1, bittensor.__network_dim__])] , [1], [0]])
tensors, codes, times = dendrite.forward_image( endpoints=[endpoint], inputs=[x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert list(tensors[0].shape) == [1, 1, bittensor.__network_dim__]
def test_dendrite_forward_tensor():
x = torch.rand(3, 3, bittensor.__network_dim__, dtype=torch.float32)
dendrite.receptor_pool.forward = MagicMock(return_value = [ [torch.zeros([3, 3, bittensor.__network_dim__])], [1], [0]])
tensors, codes, times = dendrite.forward_tensor( endpoints=[endpoint], inputs=[x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert list(tensors[0].shape) == [3, 3, bittensor.__network_dim__]
def test_dendrite_forward_tensor_pass_through_text():
x = torch.ones((3, 3), dtype=torch.int64)
y = torch.zeros([3, 3, bittensor.__network_dim__])
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y, y, y] , [1, 1, 1], [0,0,0]])
tensors, codes, times = dendrite.forward_text( endpoints=[endpoint, endpoint, endpoint], inputs=[x, x, x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert codes[1].item() == bittensor.proto.ReturnCode.Success
assert codes[2].item() == bittensor.proto.ReturnCode.Success
assert tensors[0].shape == y.shape
assert tensors[1].shape == y.shape
assert tensors[2].shape == y.shape
def test_dendrite_forward_tensor_pass_through_image():
x = torch.rand(3, 3, 3, 3, 3)
y = torch.zeros([3, 3, bittensor.__network_dim__])
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y, y, y] , [1, 1, 1], [0,0,0]])
tensors, codes, times = dendrite.forward_image( endpoints=[endpoint, endpoint, endpoint], inputs=[x, x, x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert codes[1].item() == bittensor.proto.ReturnCode.Success
assert codes[2].item() == bittensor.proto.ReturnCode.Success
assert tensors[0].shape == y.shape
assert tensors[1].shape == y.shape
assert tensors[2].shape == y.shape
def test_dendrite_forward_tensor_pass_through_tensor():
x = torch.rand(3, 3, bittensor.__network_dim__)
y = torch.zeros([3, 3, bittensor.__network_dim__])
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y, y, y] , [1, 1, 1], [0,0,0]])
tensors, codes, times = dendrite.forward_tensor( endpoints = [endpoint, endpoint, endpoint], inputs=[x, x, x])
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert codes[1].item() == bittensor.proto.ReturnCode.Success
assert codes[2].item() == bittensor.proto.ReturnCode.Success
assert tensors[0].shape == y.shape
assert tensors[1].shape == y.shape
assert tensors[2].shape == y.shape
def test_dendrite_forward_tensor_stack():
x = torch.rand(3, 3, bittensor.__network_dim__)
y = torch.zeros([3, 3, bittensor.__network_dim__])
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y, y, y] , [1, 1, 1], [0,0,0]])
tensors, codes, times = dendrite.forward_tensor( endpoints = [endpoint, endpoint, endpoint], inputs = [x, x, x])
stacked = torch.stack(tensors, dim=2)
assert stacked.shape == torch.zeros([3, 3, 3, bittensor.__network_dim__ ]).shape
averaged = torch.mean(stacked, dim=2)
assert averaged.shape == torch.zeros([3, 3, bittensor.__network_dim__ ]).shape
def test_dendrite_backward():
x = Variable(torch.rand((1, 1, bittensor.__network_dim__), dtype=torch.float32), requires_grad=True)
y = torch.ones((1, 1, bittensor.__network_dim__))
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y], [0], [0]])
dendrite.receptor_pool.backward = MagicMock(return_value = [ [y], [0], [0]])
tensors, codes, times = dendrite.forward_tensor( endpoints = [ endpoint ], inputs=[ x ])
tensors[0].sum().backward()
assert x.grad.shape == y.shape
def test_dendrite_backward_large():
x = Variable(torch.rand((1, 1, bittensor.__network_dim__), dtype=torch.float32), requires_grad=True)
y = torch.ones((1, 1, bittensor.__network_dim__))
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y], [0], [0]])
dendrite.receptor_pool.backward = MagicMock(return_value = [ [y], [0], [0]])
tensors, codes, times = dendrite.forward_tensor( endpoints = [ endpoint ], inputs=[ x ])
tensors[0].sum().backward()
assert x.grad.shape == y.shape
assert x.grad.tolist() == y.tolist()
def test_dendrite_backward_multiple():
x1 = Variable(torch.rand((1, 1, bittensor.__network_dim__), dtype=torch.float32), requires_grad=True)
x2 = Variable(torch.rand((1, 1, bittensor.__network_dim__), dtype=torch.float32), requires_grad=True)
x3 = Variable(torch.rand((1, 1, bittensor.__network_dim__), dtype=torch.float32), requires_grad=True)
y1 = torch.ones(1, 1, bittensor.__network_dim__)
y2 = torch.ones(1, 1, bittensor.__network_dim__)
y3 = torch.ones(1, 1, bittensor.__network_dim__)
dendrite.receptor_pool.forward = MagicMock(return_value = [ [y1, y2, y3], [1,1,1], [0,0,0]])
dendrite.receptor_pool.backward = MagicMock(return_value = [ [y1, y2, y3], [1,1,1], [0,0,0]])
tensors, codes, times = dendrite.forward_tensor( endpoints = [endpoint, endpoint, endpoint], inputs=[ x1, x2, x3 ])
tensors[0].sum().backward()
assert x1.grad.shape == y1.shape
assert x2.grad.shape == y2.shape
assert x3.grad.shape == y3.shape
assert x1.grad.tolist() == y1.tolist()
assert x2.grad.tolist() == y2.tolist()
assert x3.grad.tolist() == y3.tolist()
wallet = bittensor.wallet (
path = '/tmp/pytest',
name = 'pytest',
hotkey = 'pytest',
)
wallet.create_new_coldkey( use_password=False, overwrite = True)
wallet.create_new_hotkey( use_password=False, overwrite = True)
def test_axon_receptor_forward_works():
def forward( inputs_x:torch.FloatTensor):
time.sleep(0.2)
return torch.zeros([3, 3, bittensor.__network_dim__])
axon = bittensor.axon (
port = 8080,
ip = '0.0.0.0',
wallet = wallet,
)
axon.attach_forward_callback( forward, modality = bittensor.proto.Modality.TENSOR )
axon.start()
endpoints = []
for i in range(5):
endpoint = bittensor.endpoint(
version = bittensor.__version_as_int__,
uid = 1,
hotkey = str(i),
ip = '0.0.0.0',
ip_type = 4,
port = 8080,
modality = 0,
coldkey = ''
)
endpoints += [endpoint]
dendrite = bittensor.dendrite(max_active_receptors= 500)
x = torch.rand(3, 3, bittensor.__network_dim__, dtype=torch.float32)
tensors, codes, times = dendrite.forward_tensor( endpoints=endpoints, inputs=[x for i in endpoints])
for i in dendrite.receptor_pool.receptors:
assert(dendrite.receptor_pool.receptors[i].state() == dendrite.receptor_pool.receptors[i].state().READY)
assert codes[0].item() == bittensor.proto.ReturnCode.Success
assert list(tensors[0].shape) == [3, 3, bittensor.__network_dim__]
if __name__ == "__main__":
test_axon_receptor_forward_works()
#test_dendrite_backward_large()
| 46.682292
| 126
| 0.681022
| 1,198
| 8,963
| 4.852254
| 0.101836
| 0.077069
| 0.091519
| 0.043351
| 0.813177
| 0.771375
| 0.749183
| 0.706348
| 0.66919
| 0.630139
| 0
| 0.033262
| 0.168136
| 8,963
| 191
| 127
| 46.926702
| 0.746379
| 0.003347
| 0
| 0.464286
| 0
| 0
| 0.005822
| 0
| 0
| 0
| 0
| 0
| 0.22619
| 1
| 0.089286
| false
| 0.029762
| 0.053571
| 0
| 0.14881
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 5
|
e043b273f9d868a19d0d142e3eba0acd172c4081
| 29
|
py
|
Python
|
pyscriptman/__init__.py
|
reap2sow1/pyscriptman
|
2020111097e846c3fb6c4669d67de05ee3ef979a
|
[
"MIT"
] | null | null | null |
pyscriptman/__init__.py
|
reap2sow1/pyscriptman
|
2020111097e846c3fb6c4669d67de05ee3ef979a
|
[
"MIT"
] | null | null | null |
pyscriptman/__init__.py
|
reap2sow1/pyscriptman
|
2020111097e846c3fb6c4669d67de05ee3ef979a
|
[
"MIT"
] | null | null | null |
from pyscriptman import main
| 14.5
| 28
| 0.862069
| 4
| 29
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 1
| 29
| 29
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
e06d3d1f84ceca89889cebc7f8423fac41667755
| 130
|
py
|
Python
|
Ex7.py
|
LuizHps18/Exercicios_LP_1B
|
00901fe5493ceabba922a1626451117196417da6
|
[
"MIT"
] | null | null | null |
Ex7.py
|
LuizHps18/Exercicios_LP_1B
|
00901fe5493ceabba922a1626451117196417da6
|
[
"MIT"
] | null | null | null |
Ex7.py
|
LuizHps18/Exercicios_LP_1B
|
00901fe5493ceabba922a1626451117196417da6
|
[
"MIT"
] | null | null | null |
n1 = float(input ("Digite a primeira nota :"))
n2 = float(input ("Digite a segunta nota :"))
print("Sua media é de :", (n1+n2)/2)
| 32.5
| 46
| 0.630769
| 22
| 130
| 3.727273
| 0.681818
| 0.243902
| 0.390244
| 0.414634
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046296
| 0.169231
| 130
| 4
| 47
| 32.5
| 0.712963
| 0
| 0
| 0
| 0
| 0
| 0.480916
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
160fff87f18fb5da5fe47334494c62ef25a163bb
| 214
|
py
|
Python
|
gamenet/generate/snap_obj.py
|
DanielRabl/libtw2
|
ebcc833aa418e0ee25ff1da2881f7102dc7efa5d
|
[
"Apache-2.0",
"MIT"
] | 30
|
2017-07-21T19:05:07.000Z
|
2022-01-14T16:24:53.000Z
|
gamenet/generate/snap_obj.py
|
DanielRabl/libtw2
|
ebcc833aa418e0ee25ff1da2881f7102dc7efa5d
|
[
"Apache-2.0",
"MIT"
] | 50
|
2017-11-20T16:43:05.000Z
|
2022-03-02T21:37:45.000Z
|
gamenet/generate/snap_obj.py
|
DanielRabl/libtw2
|
ebcc833aa418e0ee25ff1da2881f7102dc7efa5d
|
[
"Apache-2.0",
"MIT"
] | 12
|
2017-07-21T19:05:10.000Z
|
2021-04-09T20:22:58.000Z
|
import network
import fix_network
import datatypes
emit = datatypes.Emit()
with emit:
datatypes.emit_header_snap_obj()
datatypes.emit_enum_obj_module("SnapObj", network.Objects, network.Flags)
emit.dump()
| 21.4
| 77
| 0.78972
| 29
| 214
| 5.586207
| 0.517241
| 0.320988
| 0.209877
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116822
| 214
| 9
| 78
| 23.777778
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.03271
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.375
| 0
| 0.375
| 0
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
1622056151431680bf6a74d97d3d0f6ff45c9f5d
| 87
|
py
|
Python
|
relevanceai/operations_new/vectorize/models/text/tfhub/__init__.py
|
RelevanceAI/RelevanceAI
|
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
|
[
"Apache-2.0"
] | 21
|
2021-11-23T13:01:36.000Z
|
2022-03-23T03:45:30.000Z
|
relevanceai/operations_new/vectorize/models/text/tfhub/__init__.py
|
RelevanceAI/RelevanceAI
|
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
|
[
"Apache-2.0"
] | 217
|
2021-11-23T00:11:01.000Z
|
2022-03-30T08:11:49.000Z
|
relevanceai/operations_new/vectorize/models/text/tfhub/__init__.py
|
RelevanceAI/RelevanceAI
|
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
|
[
"Apache-2.0"
] | 4
|
2022-01-04T01:48:30.000Z
|
2022-02-11T03:19:32.000Z
|
from relevanceai.operations_new.vectorize.models.text.tfhub.model import TFHubText2Vec
| 43.5
| 86
| 0.885057
| 11
| 87
| 6.909091
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.045977
| 87
| 1
| 87
| 87
| 0.903614
| 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
| 1
| 0
|
0
| 5
|
165a6563aad6155e9655c3b73c0383ecc117cf62
| 744
|
py
|
Python
|
tests/test_utils.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 120
|
2015-03-11T19:36:57.000Z
|
2021-03-28T05:02:34.000Z
|
tests/test_utils.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 22
|
2015-02-24T22:41:18.000Z
|
2020-06-10T06:27:49.000Z
|
tests/test_utils.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 23
|
2015-05-22T12:56:24.000Z
|
2020-05-29T01:34:03.000Z
|
from __future__ import absolute_import, division, print_function
import mock
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from begin import utils
class TestToList(unittest.TestCase):
def test_empty_list(self):
self.assertEqual(utils.tolist(''), [])
def test_default_list(self):
self.assertEqual(utils.tolist('a,b'), ['a', 'b'])
def test_empty_strings(self):
self.assertEqual(utils.tolist(',', empty_strings=True), ['', ''])
def test_custom_separator(self):
self.assertEqual(utils.tolist('a|b', sep='|'), ['a', 'b'])
def test_function_generator(self):
func = utils.tolist()
self.assertEqual(utils.tolist('a,b'), ['a', 'b'])
| 24.8
| 73
| 0.66129
| 93
| 744
| 5.107527
| 0.397849
| 0.138947
| 0.210526
| 0.273684
| 0.345263
| 0.282105
| 0.202105
| 0.126316
| 0
| 0
| 0
| 0.001653
| 0.186828
| 744
| 29
| 74
| 25.655172
| 0.783471
| 0
| 0
| 0.1
| 0
| 0
| 0.022849
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0
| 0.35
| 0
| 0.65
| 0.05
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
168431e9595056d08dad0ed4b3b408941976a064
| 122
|
py
|
Python
|
enthought/envisage/ui/single_project/action/save_project_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/envisage/ui/single_project/action/save_project_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/envisage/ui/single_project/action/save_project_action.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from envisage.ui.single_project.action.save_project_action import *
| 30.5
| 67
| 0.860656
| 17
| 122
| 5.705882
| 0.705882
| 0.268041
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090164
| 122
| 3
| 68
| 40.666667
| 0.873874
| 0.098361
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
169459c067b00dbe8d0a4b1e28059012f986f9d3
| 13
|
py
|
Python
|
src/python-import-from-url/tests/fixture/agent/__init__.py
|
ivangeorgiev/gems
|
823076051695029b4d699744dc76c959a8476230
|
[
"CC0-1.0"
] | 10
|
2020-11-12T23:45:31.000Z
|
2022-03-25T07:29:42.000Z
|
src/python-import-from-url/tests/fixture/agent/__init__.py
|
ivangeorgiev/gems
|
823076051695029b4d699744dc76c959a8476230
|
[
"CC0-1.0"
] | null | null | null |
src/python-import-from-url/tests/fixture/agent/__init__.py
|
ivangeorgiev/gems
|
823076051695029b4d699744dc76c959a8476230
|
[
"CC0-1.0"
] | 7
|
2020-12-15T20:40:00.000Z
|
2022-03-18T01:41:48.000Z
|
name = '007'
| 6.5
| 12
| 0.538462
| 2
| 13
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.3
| 0.230769
| 13
| 1
| 13
| 13
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 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
| 5
|
16a41e2a4c1ce176c0f11380a3312a0b62b9aadf
| 4,693
|
py
|
Python
|
mlir/test/python/dialects/pdl_types.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
mlir/test/python/dialects/pdl_types.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
mlir/test/python/dialects/pdl_types.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
# RUN: %PYTHON %s | FileCheck %s
from mlir.ir import *
from mlir.dialects import pdl
def run(f):
print("\nTEST:", f.__name__)
f()
return f
# CHECK-LABEL: TEST: test_attribute_type
@run
def test_attribute_type():
with Context():
parsedType = Type.parse("!pdl.attribute")
constructedType = pdl.AttributeType.get()
assert pdl.AttributeType.isinstance(parsedType)
assert not pdl.OperationType.isinstance(parsedType)
assert not pdl.RangeType.isinstance(parsedType)
assert not pdl.TypeType.isinstance(parsedType)
assert not pdl.ValueType.isinstance(parsedType)
assert pdl.AttributeType.isinstance(constructedType)
assert not pdl.OperationType.isinstance(constructedType)
assert not pdl.RangeType.isinstance(constructedType)
assert not pdl.TypeType.isinstance(constructedType)
assert not pdl.ValueType.isinstance(constructedType)
assert parsedType == constructedType
# CHECK: !pdl.attribute
print(parsedType)
# CHECK: !pdl.attribute
print(constructedType)
# CHECK-LABEL: TEST: test_operation_type
@run
def test_operation_type():
with Context():
parsedType = Type.parse("!pdl.operation")
constructedType = pdl.OperationType.get()
assert not pdl.AttributeType.isinstance(parsedType)
assert pdl.OperationType.isinstance(parsedType)
assert not pdl.RangeType.isinstance(parsedType)
assert not pdl.TypeType.isinstance(parsedType)
assert not pdl.ValueType.isinstance(parsedType)
assert not pdl.AttributeType.isinstance(constructedType)
assert pdl.OperationType.isinstance(constructedType)
assert not pdl.RangeType.isinstance(constructedType)
assert not pdl.TypeType.isinstance(constructedType)
assert not pdl.ValueType.isinstance(constructedType)
assert parsedType == constructedType
# CHECK: !pdl.operation
print(parsedType)
# CHECK: !pdl.operation
print(constructedType)
# CHECK-LABEL: TEST: test_range_type
@run
def test_range_type():
with Context():
typeType = Type.parse("!pdl.type")
parsedType = Type.parse("!pdl.range<type>")
constructedType = pdl.RangeType.get(typeType)
elementType = constructedType.element_type
assert not pdl.AttributeType.isinstance(parsedType)
assert not pdl.OperationType.isinstance(parsedType)
assert pdl.RangeType.isinstance(parsedType)
assert not pdl.TypeType.isinstance(parsedType)
assert not pdl.ValueType.isinstance(parsedType)
assert not pdl.AttributeType.isinstance(constructedType)
assert not pdl.OperationType.isinstance(constructedType)
assert pdl.RangeType.isinstance(constructedType)
assert not pdl.TypeType.isinstance(constructedType)
assert not pdl.ValueType.isinstance(constructedType)
assert parsedType == constructedType
assert elementType == typeType
# CHECK: !pdl.range<type>
print(parsedType)
# CHECK: !pdl.range<type>
print(constructedType)
# CHECK: !pdl.type
print(elementType)
# CHECK-LABEL: TEST: test_type_type
@run
def test_type_type():
with Context():
parsedType = Type.parse("!pdl.type")
constructedType = pdl.TypeType.get()
assert not pdl.AttributeType.isinstance(parsedType)
assert not pdl.OperationType.isinstance(parsedType)
assert not pdl.RangeType.isinstance(parsedType)
assert pdl.TypeType.isinstance(parsedType)
assert not pdl.ValueType.isinstance(parsedType)
assert not pdl.AttributeType.isinstance(constructedType)
assert not pdl.OperationType.isinstance(constructedType)
assert not pdl.RangeType.isinstance(constructedType)
assert pdl.TypeType.isinstance(constructedType)
assert not pdl.ValueType.isinstance(constructedType)
assert parsedType == constructedType
# CHECK: !pdl.type
print(parsedType)
# CHECK: !pdl.type
print(constructedType)
# CHECK-LABEL: TEST: test_value_type
@run
def test_value_type():
with Context():
parsedType = Type.parse("!pdl.value")
constructedType = pdl.ValueType.get()
assert not pdl.AttributeType.isinstance(parsedType)
assert not pdl.OperationType.isinstance(parsedType)
assert not pdl.RangeType.isinstance(parsedType)
assert not pdl.TypeType.isinstance(parsedType)
assert pdl.ValueType.isinstance(parsedType)
assert not pdl.AttributeType.isinstance(constructedType)
assert not pdl.OperationType.isinstance(constructedType)
assert not pdl.RangeType.isinstance(constructedType)
assert not pdl.TypeType.isinstance(constructedType)
assert pdl.ValueType.isinstance(constructedType)
assert parsedType == constructedType
# CHECK: !pdl.value
print(parsedType)
# CHECK: !pdl.value
print(constructedType)
| 31.07947
| 60
| 0.753676
| 510
| 4,693
| 6.886275
| 0.078431
| 0.102506
| 0.136674
| 0.165148
| 0.791572
| 0.759396
| 0.726936
| 0.684795
| 0.669419
| 0.647779
| 0
| 0
| 0.15342
| 4,693
| 150
| 61
| 31.286667
| 0.883967
| 0.092691
| 0
| 0.65
| 0
| 0
| 0.018632
| 0
| 0
| 0
| 0
| 0
| 0.56
| 1
| 0.06
| false
| 0
| 0.02
| 0
| 0.09
| 0.12
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 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
| 5
|
bc7a43928785c6ae26851d2973e0aa6709b6cf81
| 39
|
py
|
Python
|
custom_components/falcon_pi_player/__init__.py
|
koolsb/ha-fpp
|
cf8d8154668e864ebfe095b674a99180b7bd34bd
|
[
"Apache-2.0"
] | null | null | null |
custom_components/falcon_pi_player/__init__.py
|
koolsb/ha-fpp
|
cf8d8154668e864ebfe095b674a99180b7bd34bd
|
[
"Apache-2.0"
] | null | null | null |
custom_components/falcon_pi_player/__init__.py
|
koolsb/ha-fpp
|
cf8d8154668e864ebfe095b674a99180b7bd34bd
|
[
"Apache-2.0"
] | null | null | null |
"""The Falcon Pi Player Integration."""
| 39
| 39
| 0.717949
| 5
| 39
| 5.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102564
| 39
| 1
| 39
| 39
| 0.8
| 0.846154
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
bc8b5b5b1827616f225eef5c29417f52ba13accb
| 147
|
py
|
Python
|
hackerrank/TreeHeightOfABinaryTree.py
|
0x8b/HackerRank
|
45e1a0e2be68950505c0a75218715bd3132a428b
|
[
"MIT"
] | 3
|
2019-12-04T01:22:34.000Z
|
2020-12-10T15:31:00.000Z
|
hackerrank/TreeHeightOfABinaryTree.py
|
0x8b/HackerRank
|
45e1a0e2be68950505c0a75218715bd3132a428b
|
[
"MIT"
] | null | null | null |
hackerrank/TreeHeightOfABinaryTree.py
|
0x8b/HackerRank
|
45e1a0e2be68950505c0a75218715bd3132a428b
|
[
"MIT"
] | 1
|
2019-12-04T01:24:01.000Z
|
2019-12-04T01:24:01.000Z
|
def height(root):
l = 1 + height(root.left) if root.left else 0
r = 1 + height(root.right) if root.right else 0
return max(l, r)
| 24.5
| 52
| 0.598639
| 27
| 147
| 3.259259
| 0.481481
| 0.340909
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037736
| 0.278912
| 147
| 5
| 53
| 29.4
| 0.792453
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
bca7c05e4533d9a95d504416f7524eb337cde399
| 249
|
py
|
Python
|
src/commands/jsdoc/__init__.py
|
PranjalPansuriya/JavaScriptEnhancements
|
14af4162e86585153cbd4614ad96dff64a0d3192
|
[
"MIT"
] | 690
|
2017-04-11T06:45:01.000Z
|
2022-03-21T23:20:29.000Z
|
src/commands/jsdoc/__init__.py
|
PranjalPansuriya/JavaScriptEnhancements
|
14af4162e86585153cbd4614ad96dff64a0d3192
|
[
"MIT"
] | 74
|
2017-11-22T18:05:26.000Z
|
2021-05-05T16:25:31.000Z
|
src/commands/jsdoc/__init__.py
|
PranjalPansuriya/JavaScriptEnhancements
|
14af4162e86585153cbd4614ad96dff64a0d3192
|
[
"MIT"
] | 42
|
2017-04-13T10:22:40.000Z
|
2021-05-27T19:19:04.000Z
|
from .add_jsdoc_conf import JavascriptEnhancementsAddJsdocConfCommand
from .generate_jsdoc import JavascriptEnhancementsGenerateJsdocCommand
__all__ = [
"JavascriptEnhancementsAddJsdocConfCommand",
"JavascriptEnhancementsGenerateJsdocCommand"
]
| 35.571429
| 70
| 0.88755
| 14
| 249
| 15.285714
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072289
| 249
| 7
| 71
| 35.571429
| 0.926407
| 0
| 0
| 0
| 1
| 0
| 0.332
| 0.332
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
bcbd46c34a4497cc01198775ea9baf9aa8369971
| 1,456
|
py
|
Python
|
catkin_ws/build/navigation_msgs/map_msgs/cmake/map_msgs-genmsg-context.py
|
lies98/ROS_chasing_ball
|
6e1f08ed51a5b5f0c7b0bdebfb1bef2d3fe61949
|
[
"MIT"
] | null | null | null |
catkin_ws/build/navigation_msgs/map_msgs/cmake/map_msgs-genmsg-context.py
|
lies98/ROS_chasing_ball
|
6e1f08ed51a5b5f0c7b0bdebfb1bef2d3fe61949
|
[
"MIT"
] | null | null | null |
catkin_ws/build/navigation_msgs/map_msgs/cmake/map_msgs-genmsg-context.py
|
lies98/ROS_chasing_ball
|
6e1f08ed51a5b5f0c7b0bdebfb1bef2d3fe61949
|
[
"MIT"
] | null | null | null |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/msg/OccupancyGridUpdate.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/PointCloud2Update.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMapInfo.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMap.msg"
services_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/ProjectedMapsInfo.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SaveMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SetMapProjections.srv"
pkg_name = "map_msgs"
dependencies_str = "nav_msgs;sensor_msgs;std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "map_msgs;/root/catkin_ws/src/navigation_msgs/map_msgs/msg;nav_msgs;/opt/ros/kinetic/share/nav_msgs/cmake/../msg;sensor_msgs;/opt/ros/kinetic/share/sensor_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| 121.333333
| 415
| 0.825549
| 231
| 1,456
| 4.926407
| 0.277056
| 0.079965
| 0.115993
| 0.144991
| 0.5
| 0.403339
| 0.403339
| 0.403339
| 0.403339
| 0.295255
| 0
| 0.001406
| 0.023352
| 1,456
| 11
| 416
| 132.363636
| 0.798875
| 0.033654
| 0
| 0
| 1
| 0.333333
| 0.855516
| 0.835587
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
4c0c3ab1529882000854074c5520d4b13bf0df83
| 25,974
|
py
|
Python
|
assets/migrations/0005_auto__del_field_asset_current_place__chg_field_place_asset_reason_of_d.py
|
Ishayahu/MJCC-tasks
|
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
|
[
"MIT"
] | 1
|
2017-09-25T09:36:46.000Z
|
2017-09-25T09:36:46.000Z
|
assets/migrations/0005_auto__del_field_asset_current_place__chg_field_place_asset_reason_of_d.py
|
Ishayahu/MJCC-tasks
|
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
|
[
"MIT"
] | 40
|
2015-05-29T11:25:15.000Z
|
2015-08-13T10:28:17.000Z
|
assets/migrations/0005_auto__del_field_asset_current_place__chg_field_place_asset_reason_of_d.py
|
Ishayahu/MJCC-tasks
|
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Asset.current_place'
db.delete_column('assets_asset', 'current_place_id')
# Changing field 'Place_Asset.reason_of_drawdown'
db.alter_column('assets_place_asset', 'reason_of_drawdown', self.gf('django.db.models.fields.TextField')(null=True))
# Changing field 'Place_Asset.drawdown_date'
db.alter_column('assets_place_asset', 'drawdown_date', self.gf('django.db.models.fields.DateTimeField')(null=True))
def backwards(self, orm):
# User chose to not deal with backwards NULL issues for 'Asset.current_place'
raise RuntimeError("Cannot reverse this migration. 'Asset.current_place' and its values cannot be restored.")
# User chose to not deal with backwards NULL issues for 'Place_Asset.reason_of_drawdown'
raise RuntimeError("Cannot reverse this migration. 'Place_Asset.reason_of_drawdown' and its values cannot be restored.")
# User chose to not deal with backwards NULL issues for 'Place_Asset.drawdown_date'
raise RuntimeError("Cannot reverse this migration. 'Place_Asset.drawdown_date' and its values cannot be restored.")
models = {
'assets.acoustics': {
'Meta': {'object_name': 'Acoustics'},
'acoustics_type': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'frequency_interval': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'headphone_jack': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'power_form_usb': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'power_from_battary': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'power_from_circuit': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'remote_control': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'rms': ('django.db.models.fields.IntegerField', [], {}),
'signal_noise_ratio': ('django.db.models.fields.CharField', [], {'max_length': '20'})
},
'assets.asset': {
'Meta': {'object_name': 'Asset'},
'asset_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Asset_type']"}),
'claim': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Claim']"}),
'date_of_write_off': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'garanty': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Garanty']"}),
'guarantee_period': ('django.db.models.fields.IntegerField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'note': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'payment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Payment']"}),
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Status']"})
},
'assets.asset_type': {
'Meta': {'object_name': 'Asset_type'},
'asset_type': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'catalogue_name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'assets.battery': {
'Meta': {'object_name': 'Battery'},
'battery_type': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'rechargeable': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'assets.budget': {
'Meta': {'object_name': 'Budget'},
'end': ('django.db.models.fields.DateTimeField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'start': ('django.db.models.fields.DateTimeField', [], {})
},
'assets.cartridge': {
'Meta': {'object_name': 'Cartridge'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'payment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Payment']"}),
'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Status']"})
},
'assets.cartridge_general_model_printer_model': {
'Meta': {'object_name': 'Cartridge_General_Model_Printer_Model'},
'general_model': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'printer_model': ('django.db.models.fields.CharField', [], {'max_length': '140'})
},
'assets.cartridge_model_general_model': {
'Meta': {'object_name': 'Cartridge_Model_General_Model'},
'general_model': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '140'})
},
'assets.cartridge_printer': {
'Meta': {'object_name': 'Cartridge_Printer'},
'cartridge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Cartridge']"}),
'drawdown_date': ('django.db.models.fields.DateTimeField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'installation_date': ('django.db.models.fields.DateTimeField', [], {}),
'printer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Asset']"})
},
'assets.case': {
'FireWire_fp': ('django.db.models.fields.IntegerField', [], {}),
'FireWire_rp': ('django.db.models.fields.IntegerField', [], {}),
'Meta': {'object_name': 'Case'},
'audio_fp': ('django.db.models.fields.IntegerField', [], {}),
'eSATA_fp': ('django.db.models.fields.IntegerField', [], {}),
'eSATA_rp': ('django.db.models.fields.IntegerField', [], {}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'form_factor': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'number_of_35': ('django.db.models.fields.IntegerField', [], {}),
'number_of_525': ('django.db.models.fields.IntegerField', [], {}),
'number_of_extension_slot': ('django.db.models.fields.IntegerField', [], {}),
'number_of_fan_places': ('django.db.models.fields.IntegerField', [], {}),
'place_of_power_suply': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'size': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'supported_mb_types': ('django.db.models.fields.TextField', [], {}),
'usb_fp': ('django.db.models.fields.IntegerField', [], {}),
'water_ready': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'assets.cash': {
'Meta': {'object_name': 'Cash'},
'contractor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Contractor']"}),
'date': ('django.db.models.fields.DateTimeField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'assets.cashless': {
'Meta': {'object_name': 'Cashless'},
'contractor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Contractor']"}),
'date_of_assets': ('django.db.models.fields.DateTimeField', [], {}),
'date_of_documents': ('django.db.models.fields.DateTimeField', [], {}),
'date_of_invoice': ('django.db.models.fields.DateTimeField', [], {}),
'dates': ('django.db.models.fields.TextField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'stages': ('django.db.models.fields.TextField', [], {})
},
'assets.claim': {
'Meta': {'object_name': 'Claim'},
'contractor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Contractor']"}),
'date_of_assets': ('django.db.models.fields.DateTimeField', [], {}),
'date_of_documents': ('django.db.models.fields.DateTimeField', [], {}),
'date_of_invoice': ('django.db.models.fields.DateTimeField', [], {}),
'dates': ('django.db.models.fields.TextField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'stages': ('django.db.models.fields.TextField', [], {})
},
'assets.contractor': {
'Meta': {'object_name': 'Contractor'},
'contact_name': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '140'}),
'tel': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
'tel_of_support': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'})
},
'assets.cooler': {
'Meta': {'object_name': 'Cooler'},
'cfm': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
'destination': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'diametr_of_fans': ('django.db.models.fields.IntegerField', [], {}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'noise': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'number_of_fans': ('django.db.models.fields.IntegerField', [], {}),
'rpm': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
'sockets': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'type_of_connector': ('django.db.models.fields.CharField', [], {'max_length': '10'})
},
'assets.cpu': {
'L1': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'L2': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'L3': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'Meta': {'object_name': 'CPU'},
'TPD': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'VT': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'core': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'core_number': ('django.db.models.fields.IntegerField', [], {}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'frequency': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'integrated_graphics': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'socket': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'technology': ('django.db.models.fields.CharField', [], {'max_length': '20'})
},
'assets.garanty': {
'Meta': {'object_name': 'Garanty'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'number': ('django.db.models.fields.IntegerField', [], {})
},
'assets.motherboard': {
'Audio': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'Bluetooth': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'COM': ('django.db.models.fields.IntegerField', [], {}),
'CrossFire': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'DisplayPort': ('django.db.models.fields.IntegerField', [], {}),
'EFI': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'Ethernet': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'Ethernet_number': ('django.db.models.fields.IntegerField', [], {}),
'FDD': ('django.db.models.fields.IntegerField', [], {}),
'FSB': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'FireWire': ('django.db.models.fields.IntegerField', [], {}),
'HDMI': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'IDE': ('django.db.models.fields.IntegerField', [], {}),
'LPT': ('django.db.models.fields.IntegerField', [], {}),
'Meta': {'object_name': 'Motherboard'},
'PCI_E_number': ('django.db.models.fields.IntegerField', [], {}),
'PCI_E_type': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'PS_2': ('django.db.models.fields.IntegerField', [], {}),
'SATA_RAID': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
'SLI': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'SupportedCPU': ('django.db.models.fields.TextField', [], {}),
'SupportedROM': ('django.db.models.fields.TextField', [], {}),
'USB2': ('django.db.models.fields.IntegerField', [], {}),
'USB3': ('django.db.models.fields.IntegerField', [], {}),
'WiFi': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'chipset': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'eSATA': ('django.db.models.fields.IntegerField', [], {}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'form_factor': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'graphics': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'rom_frequency': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'rom_max_value': ('django.db.models.fields.IntegerField', [], {}),
'rom_number': ('django.db.models.fields.IntegerField', [], {}),
'rom_type': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'socket': ('django.db.models.fields.CharField', [], {'max_length': '20'})
},
'assets.network_equipment': {
'Meta': {'object_name': 'Network_equipment'},
'SNMP': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'Serial': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'Telnet': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'Web': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'WiFi': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'dhcp_server': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'equipment_type': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
'firewall': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'ipv6_ready': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'nat': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'rackable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'vpn': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'assets.optical_drive': {
'Meta': {'object_name': 'Optical_Drive'},
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'interface': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'optical_drive_type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
},
'assets.payment': {
'Meta': {'object_name': 'Payment'},
'cash': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Cash']", 'null': 'True', 'blank': 'True'}),
'cashless': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Cashless']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'assets.place': {
'Meta': {'object_name': 'Place'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'place': ('django.db.models.fields.CharField', [], {'max_length': '140'})
},
'assets.place_asset': {
'Meta': {'object_name': 'Place_Asset'},
'asset': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Asset']"}),
'drawdown_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'installation_date': ('django.db.models.fields.DateTimeField', [], {}),
'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Place']"}),
'reason_of_drawdown': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
},
'assets.power_suply': {
'ATX_version': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'Meta': {'object_name': 'Power_suply'},
'firm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'modular': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'number_of_molex': ('django.db.models.fields.DecimalField', [], {'max_digits': '1', 'decimal_places': '0'}),
'number_of_sata': ('django.db.models.fields.DecimalField', [], {'max_digits': '1', 'decimal_places': '0'}),
'performance': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '2'}),
'power': ('django.db.models.fields.IntegerField', [], {})
},
'assets.printer': {
'Meta': {'object_name': 'Printer'},
'color': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'network': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'v_print': ('django.db.models.fields.IntegerField', [], {})
},
'assets.repair': {
'Meta': {'object_name': 'Repair'},
'asset': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Asset']"}),
'date_of_failure': ('django.db.models.fields.DateTimeField', [], {}),
'date_of_write_off': ('django.db.models.fields.DateTimeField', [], {}),
'date_repair_end': ('django.db.models.fields.DateTimeField', [], {}),
'date_repair_start': ('django.db.models.fields.DateTimeField', [], {}),
'failure': ('django.db.models.fields.TextField', [], {}),
'garanty': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Garanty']"}),
'guarantee_period': ('django.db.models.fields.IntegerField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'payment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['assets.Payment']"}),
'repair': ('django.db.models.fields.TextField', [], {})
},
'assets.rom': {
'Meta': {'object_name': 'ROM'},
'clock_ferquency': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'form_factor': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'low_profile': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'radiator': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'rom_type': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'throughput': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'v': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'assets.status': {
'Meta': {'object_name': 'Status'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'status': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'assets.storage': {
'Meta': {'object_name': 'Storage'},
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'form_factor': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'interfaces': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'rpm': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'v_read': ('django.db.models.fields.IntegerField', [], {}),
'v_write': ('django.db.models.fields.IntegerField', [], {}),
'volume': ('django.db.models.fields.IntegerField', [], {})
},
'assets.telephone': {
'DECT': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'GAP': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'Meta': {'object_name': 'Telephone'},
'alarm_clock': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'aon': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'clock': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'display': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'firm': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'frequency': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'headset': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'speakerphone': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'tel_book': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
}
}
complete_apps = ['assets']
| 70.2
| 142
| 0.552245
| 2,587
| 25,974
| 5.410901
| 0.09857
| 0.141735
| 0.247035
| 0.352908
| 0.844335
| 0.791827
| 0.744892
| 0.630662
| 0.522003
| 0.411916
| 0
| 0.010071
| 0.208632
| 25,974
| 370
| 143
| 70.2
| 0.670932
| 0.015169
| 0
| 0.267806
| 0
| 0
| 0.582724
| 0.358972
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005698
| false
| 0
| 0.011396
| 0
| 0.025641
| 0.017094
| 0
| 0
| 0
| null | 0
| 1
| 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
| 5
|
4c495e45878461225179c66c4fbc76929a25587d
| 77
|
py
|
Python
|
aio_daemon/__init__.py
|
Trogious/aio-daemon
|
417d4c34adb06aeb43b070ded5f04615d9b7a6da
|
[
"MIT"
] | 1
|
2022-01-14T06:20:58.000Z
|
2022-01-14T06:20:58.000Z
|
aio_daemon/__init__.py
|
Trogious/aio-daemon
|
417d4c34adb06aeb43b070ded5f04615d9b7a6da
|
[
"MIT"
] | null | null | null |
aio_daemon/__init__.py
|
Trogious/aio-daemon
|
417d4c34adb06aeb43b070ded5f04615d9b7a6da
|
[
"MIT"
] | null | null | null |
from .daemon import Daemon
from .json import jl
from .env import getenv_path
| 19.25
| 28
| 0.805195
| 13
| 77
| 4.692308
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155844
| 77
| 3
| 29
| 25.666667
| 0.938462
| 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
| 1
| 0
|
0
| 5
|
4c6ae925dbe86c357fc2770ebcc78f5c97bc9aea
| 7,233
|
py
|
Python
|
tests/test_models/test_backbones/test_timm_backbone.py
|
YuxinZou/mmclassification
|
2037260ea6c98a3b115e97727e1151a1c2c32f7a
|
[
"Apache-2.0"
] | 1
|
2022-03-15T07:36:04.000Z
|
2022-03-15T07:36:04.000Z
|
tests/test_models/test_backbones/test_timm_backbone.py
|
YuxinZou/mmclassification
|
2037260ea6c98a3b115e97727e1151a1c2c32f7a
|
[
"Apache-2.0"
] | null | null | null |
tests/test_models/test_backbones/test_timm_backbone.py
|
YuxinZou/mmclassification
|
2037260ea6c98a3b115e97727e1151a1c2c32f7a
|
[
"Apache-2.0"
] | 1
|
2022-03-25T08:40:07.000Z
|
2022-03-25T08:40:07.000Z
|
# Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch
from torch import nn
from torch.nn.modules.batchnorm import _BatchNorm
from mmcls.models.backbones import TIMMBackbone
def check_norm_state(modules, train_state):
"""Check if norm layer is in correct train state."""
for mod in modules:
if isinstance(mod, _BatchNorm):
if mod.training != train_state:
return False
return True
def test_timm_backbone():
"""Test timm backbones, features_only=False (default)."""
with pytest.raises(TypeError):
# TIMMBackbone has 1 required positional argument: 'model_name'
model = TIMMBackbone(pretrained=True)
with pytest.raises(TypeError):
# pretrained must be bool
model = TIMMBackbone(model_name='resnet18', pretrained='model.pth')
# Test resnet18 from timm
model = TIMMBackbone(model_name='resnet18')
model.init_weights()
model.train()
assert check_norm_state(model.modules(), True)
assert isinstance(model.timm_model.global_pool.pool, nn.Identity)
assert isinstance(model.timm_model.fc, nn.Identity)
imgs = torch.randn(1, 3, 224, 224)
feat = model(imgs)
assert len(feat) == 1
assert feat[0].shape == torch.Size((1, 512, 7, 7))
# Test efficientnet_b1 with pretrained weights
model = TIMMBackbone(model_name='efficientnet_b1', pretrained=True)
model.init_weights()
model.train()
assert isinstance(model.timm_model.global_pool.pool, nn.Identity)
assert isinstance(model.timm_model.classifier, nn.Identity)
imgs = torch.randn(1, 3, 224, 224)
feat = model(imgs)
assert len(feat) == 1
assert feat[0].shape == torch.Size((1, 1280, 7, 7))
# Test vit_tiny_patch16_224 with pretrained weights
model = TIMMBackbone(model_name='vit_tiny_patch16_224', pretrained=True)
model.init_weights()
model.train()
assert isinstance(model.timm_model.head, nn.Identity)
imgs = torch.randn(1, 3, 224, 224)
feat = model(imgs)
assert len(feat) == 1
assert feat[0].shape == torch.Size((1, 192))
def test_timm_backbone_features_only():
"""Test timm backbones, features_only=True."""
# Test different norm_layer, can be: 'SyncBN', 'BN2d', 'GN', 'LN', 'IN'
# Test resnet18 from timm, norm_layer='BN2d'
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=32,
norm_layer='BN2d')
# Test resnet18 from timm, norm_layer='SyncBN'
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=32,
norm_layer='SyncBN')
# Test resnet18 from timm, output_stride=32
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=32)
model.init_weights()
model.train()
assert check_norm_state(model.modules(), True)
imgs = torch.randn(1, 3, 224, 224)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 64, 112, 112))
assert feats[1].shape == torch.Size((1, 64, 56, 56))
assert feats[2].shape == torch.Size((1, 128, 28, 28))
assert feats[3].shape == torch.Size((1, 256, 14, 14))
assert feats[4].shape == torch.Size((1, 512, 7, 7))
# Test resnet18 from timm, output_stride=32, out_indices=(1, 2, 3)
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=32,
out_indices=(1, 2, 3))
imgs = torch.randn(1, 3, 224, 224)
feats = model(imgs)
assert len(feats) == 3
assert feats[0].shape == torch.Size((1, 64, 56, 56))
assert feats[1].shape == torch.Size((1, 128, 28, 28))
assert feats[2].shape == torch.Size((1, 256, 14, 14))
# Test resnet18 from timm, output_stride=16
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=16)
imgs = torch.randn(1, 3, 224, 224)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 64, 112, 112))
assert feats[1].shape == torch.Size((1, 64, 56, 56))
assert feats[2].shape == torch.Size((1, 128, 28, 28))
assert feats[3].shape == torch.Size((1, 256, 14, 14))
assert feats[4].shape == torch.Size((1, 512, 14, 14))
# Test resnet18 from timm, output_stride=8
model = TIMMBackbone(
model_name='resnet18',
features_only=True,
pretrained=False,
output_stride=8)
imgs = torch.randn(1, 3, 224, 224)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 64, 112, 112))
assert feats[1].shape == torch.Size((1, 64, 56, 56))
assert feats[2].shape == torch.Size((1, 128, 28, 28))
assert feats[3].shape == torch.Size((1, 256, 28, 28))
assert feats[4].shape == torch.Size((1, 512, 28, 28))
# Test efficientnet_b1 with pretrained weights
model = TIMMBackbone(
model_name='efficientnet_b1', features_only=True, pretrained=True)
imgs = torch.randn(1, 3, 64, 64)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 16, 32, 32))
assert feats[1].shape == torch.Size((1, 24, 16, 16))
assert feats[2].shape == torch.Size((1, 40, 8, 8))
assert feats[3].shape == torch.Size((1, 112, 4, 4))
assert feats[4].shape == torch.Size((1, 320, 2, 2))
# Test resnetv2_50x1_bitm from timm, output_stride=8
model = TIMMBackbone(
model_name='resnetv2_50x1_bitm',
features_only=True,
pretrained=False,
output_stride=8)
imgs = torch.randn(1, 3, 8, 8)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 64, 4, 4))
assert feats[1].shape == torch.Size((1, 256, 2, 2))
assert feats[2].shape == torch.Size((1, 512, 1, 1))
assert feats[3].shape == torch.Size((1, 1024, 1, 1))
assert feats[4].shape == torch.Size((1, 2048, 1, 1))
# Test resnetv2_50x3_bitm from timm, output_stride=8
model = TIMMBackbone(
model_name='resnetv2_50x3_bitm',
features_only=True,
pretrained=False,
output_stride=8)
imgs = torch.randn(1, 3, 8, 8)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 192, 4, 4))
assert feats[1].shape == torch.Size((1, 768, 2, 2))
assert feats[2].shape == torch.Size((1, 1536, 1, 1))
assert feats[3].shape == torch.Size((1, 3072, 1, 1))
assert feats[4].shape == torch.Size((1, 6144, 1, 1))
# Test resnetv2_101x1_bitm from timm, output_stride=8
model = TIMMBackbone(
model_name='resnetv2_101x1_bitm',
features_only=True,
pretrained=False,
output_stride=8)
imgs = torch.randn(1, 3, 8, 8)
feats = model(imgs)
assert len(feats) == 5
assert feats[0].shape == torch.Size((1, 64, 4, 4))
assert feats[1].shape == torch.Size((1, 256, 2, 2))
assert feats[2].shape == torch.Size((1, 512, 1, 1))
assert feats[3].shape == torch.Size((1, 1024, 1, 1))
assert feats[4].shape == torch.Size((1, 2048, 1, 1))
| 35.455882
| 76
| 0.630444
| 1,032
| 7,233
| 4.322674
| 0.117248
| 0.091908
| 0.128671
| 0.137861
| 0.811477
| 0.783232
| 0.764403
| 0.713965
| 0.681462
| 0.63618
| 0
| 0.091638
| 0.224526
| 7,233
| 203
| 77
| 35.630542
| 0.703691
| 0.129683
| 0
| 0.672956
| 0
| 0
| 0.030018
| 0
| 0
| 0
| 0
| 0
| 0.371069
| 1
| 0.018868
| false
| 0
| 0.031447
| 0
| 0.062893
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 5
|
d5d6784b9385a401169131d189f5a1605273986c
| 9,256
|
py
|
Python
|
projects/rf/test_rf.py
|
dashbrookhart/msds621
|
dbb65f36ba9303d82139469437cf42b8ccb69374
|
[
"MIT"
] | 1
|
2021-02-02T21:00:31.000Z
|
2021-02-02T21:00:31.000Z
|
projects/rf/test_rf.py
|
dashbrookhart/msds621
|
dbb65f36ba9303d82139469437cf42b8ccb69374
|
[
"MIT"
] | null | null | null |
projects/rf/test_rf.py
|
dashbrookhart/msds621
|
dbb65f36ba9303d82139469437cf42b8ccb69374
|
[
"MIT"
] | null | null | null |
import numpy as np
from sklearn.datasets import \
load_boston, load_iris, load_diabetes, load_wine, \
load_breast_cancer, fetch_california_housing
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier
from sklearn.model_selection import train_test_split
import inspect
from rf import RandomForestRegressor621, RandomForestClassifier621
def test_boston():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, min_training_score = .86)
def test_boston_oob():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, min_training_score = .86, oob=True)
def test_boston_min_samples_leaf():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, ntrials=5, min_samples_leaf=5, grace=0.08)
def test_boston_all_features():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, ntrials=3, max_features=1.0, grace=0.08)
def test_boston_most_features():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, ntrials=4, max_features=2/3, grace=0.08)
def test_boston_min_samples_leaf_oob():
X, y = load_boston(return_X_y=True)
run_regression_test(X, y, ntrials=5, min_samples_leaf=5, grace=0.08, oob=True)
def test_diabetes():
X, y = load_diabetes(return_X_y=True)
run_regression_test(X, y, min_training_score = .72, grace=0.11)
def test_diabetes_ntrees():
X, y = load_diabetes(return_X_y=True)
run_regression_test(X, y, min_training_score = .72, grace=0.11, n_estimators=25)
def test_diabetes_all_features():
X, y = load_diabetes(return_X_y=True)
run_regression_test(X, y, min_training_score = .72, grace=0.11, max_features=1.0)
def test_diabetes_most_features():
X, y = load_diabetes(return_X_y=True)
run_regression_test(X, y, min_training_score = .72, grace=0.11, max_features=2/3)
def test_diabetes_oob():
X, y = load_diabetes(return_X_y=True)
run_regression_test(X, y, min_training_score = .72, grace=0.11, oob=True)
def test_california_housing():
X, y = fetch_california_housing(return_X_y=True)
run_regression_test(X, y, min_training_score = .79, grace=0.15)
def test_california_housing_oob():
X, y = fetch_california_housing(return_X_y=True)
run_regression_test(X, y, min_training_score = .79, grace=0.15, oob=True)
def test_iris_ntrees():
X, y = load_iris(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.93, n_estimators=25)
def test_iris():
X, y = load_iris(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.93)
def test_iris_all_features():
X, y = load_iris(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.93, max_features=1.0)
def test_iris_most_features():
X, y = load_iris(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.93, max_features=2/3)
def test_iris_oob():
X, y = load_iris(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.93, oob=True)
def test_wine():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.98)
def test_wine_all_features():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.98, max_features=1.0)
def test_wine_most_features():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.98, max_features=2/3)
def test_wine_oob():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.98, oob=True)
def test_wine_min_samples_leaf():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=10, min_training_score=0.98, min_samples_leaf=5, grace=0.2)
def test_wine_min_samples_leaf_oob():
X, y = load_wine(return_X_y=True)
run_classification_test(X, y, ntrials=10, min_training_score=0.98, min_samples_leaf=5, grace=0.2, oob=True)
def test_breast_cancer():
X, y = load_breast_cancer(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.96)
def test_breast_cancer_oob():
X, y = load_breast_cancer(return_X_y=True)
run_classification_test(X, y, ntrials=5, min_training_score=0.96, oob=True)
def run_regression_test(X, y, ntrials=2, min_training_score = .85, min_samples_leaf=3, max_features=0.3, grace=.08, oob=False, n_estimators=18):
stack = inspect.stack()
caller_name = stack[1].function[len('test_'):]
X = X[:500]
y = y[:500]
scores = []
train_scores = []
oob_scores = []
sklearn_scores = []
sklearn_train_scores = []
sklearn_oob_scores = []
for i in range(ntrials):
X_train, X_test, y_train, y_test = \
train_test_split(X, y, test_size=0.20)
rf = RandomForestRegressor621(n_estimators=n_estimators, min_samples_leaf=min_samples_leaf, max_features=max_features, oob_score=oob)
rf.fit(X_train, y_train)
score = rf.score(X_train, y_train)
train_scores.append(score)
score = rf.score(X_test, y_test)
scores.append(score)
oob_scores.append(rf.oob_score_)
sklearn_rf = RandomForestRegressor(n_estimators=n_estimators, min_samples_leaf=min_samples_leaf, max_features=max_features, oob_score=oob)
sklearn_rf.fit(X_train, y_train)
sklearn_score = sklearn_rf.score(X_train, y_train)
sklearn_train_scores.append(sklearn_score)
sklearn_score = sklearn_rf.score(X_test, y_test)
sklearn_scores.append(sklearn_score)
if oob:
sklearn_oob_scores.append(sklearn_rf.oob_score_)
else:
sklearn_oob_scores.append(0.0)
print()
if oob:
print(f"{caller_name}: 621 OOB score {np.mean(oob_scores):.2f} vs sklearn OOB {np.mean(sklearn_oob_scores):.2f}")
print(f"{caller_name}: 621 Train R^2 score mean {np.mean(train_scores):.2f}, stddev {np.std(train_scores):3f}")
print(f"{caller_name}: Sklearn Train R^2 score mean {np.mean(sklearn_train_scores):.2f}, stddev {np.std(sklearn_train_scores):3f}")
print(f"{caller_name}: 621 Test R^2 score mean {np.mean(scores):.2f}, stddev {np.std(scores):3f}")
print(f"{caller_name}: Sklearn Test R^2 score mean {np.mean(sklearn_scores):.2f}, stddev {np.std(sklearn_scores):3f}")
assert np.mean(train_scores) >= min_training_score, \
f"Training R^2: {np.mean(train_scores):.2f} must be >= {min_training_score}"
assert np.mean(scores)+grace >= np.mean(sklearn_scores), \
f"Testing R^2: {np.mean(scores):.2f} must be within {grace:.2f} of sklearn score: {np.mean(sklearn_scores):.2f}"
if oob:
assert np.abs(np.mean(oob_scores) - np.mean(sklearn_oob_scores)) < grace, \
f"OOB R^2: {np.mean(oob_scores):.2f} must be within {grace:2f} of sklearn score: {np.mean(sklearn_oob_scores):.2f}"
def run_classification_test(X, y, ntrials=1, min_samples_leaf=3, max_features=0.3, min_training_score=1.0, grace=.07, oob=False, n_estimators=15):
stack = inspect.stack()
caller_name = stack[1].function[len('test_'):]
X = X[:500]
y = y[:500]
scores = []
train_scores = []
oob_scores = []
sklearn_scores = []
sklearn_train_scores = []
sklearn_oob_scores = []
for i in range(ntrials):
X_train, X_test, y_train, y_test = \
train_test_split(X, y, test_size=0.20)
rf = RandomForestClassifier621(n_estimators=n_estimators, min_samples_leaf=min_samples_leaf, max_features=max_features, oob_score=oob)
rf.fit(X_train, y_train)
score = rf.score(X_train, y_train)
train_scores.append(score)
score = rf.score(X_test, y_test)
scores.append(score)
oob_scores.append(rf.oob_score_)
sklearn_rf = RandomForestClassifier(n_estimators=n_estimators, min_samples_leaf=min_samples_leaf, max_features=max_features, oob_score=oob)
sklearn_rf.fit(X_train, y_train)
sklearn_score = sklearn_rf.score(X_train, y_train)
sklearn_train_scores.append(sklearn_score)
sklearn_score = sklearn_rf.score(X_test, y_test)
sklearn_scores.append(sklearn_score)
if oob:
sklearn_oob_scores.append(sklearn_rf.oob_score_)
else:
sklearn_oob_scores.append(0.0)
if oob:
assert np.abs(np.mean(scores)- np.mean(sklearn_scores)) < grace, \
f"OOB accuracy: {np.mean(oob_scores):.2f} must be within {grace:.2f} of sklearn score: {np.mean(sklearn_oob_scores):.2f}"
assert np.mean(train_scores) >= min_training_score, \
f"Training accuracy: {np.mean(train_scores):.2f} must {min_training_score:.2f}"
assert np.mean(scores)+grace >= np.mean(sklearn_scores), \
f"Testing accuracy: {np.mean(scores):.2f} must be within {grace:.2f} of sklearn score: {np.mean(sklearn_scores):.2f}"
print()
if oob:
print(f"{caller_name}: 621 OOB score {np.mean(oob_scores):.2f} vs sklearn OOB {np.mean(sklearn_oob_scores):.2f}")
print(f"{caller_name}: 621 accuracy score {np.mean(train_scores):.2f}, {np.mean(scores):.2f}")
print(f"{caller_name}: Sklearn accuracy score {np.mean(sklearn_train_scores):.2f}, {np.mean(sklearn_scores):.2f}")
| 41.693694
| 147
| 0.708838
| 1,497
| 9,256
| 4.062792
| 0.072144
| 0.026965
| 0.027622
| 0.051299
| 0.842157
| 0.810917
| 0.744328
| 0.700263
| 0.691056
| 0.691056
| 0
| 0.031898
| 0.166811
| 9,256
| 221
| 148
| 41.882353
| 0.756743
| 0
| 0
| 0.54023
| 0
| 0.068966
| 0.154927
| 0.078328
| 0
| 0
| 0
| 0
| 0.034483
| 1
| 0.16092
| false
| 0
| 0.034483
| 0
| 0.195402
| 0.057471
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 5
|
d5f55fa17633ef09483046d4d1260870f604df60
| 98
|
py
|
Python
|
helloworld.py
|
90rupesh/python-programming
|
83548c616b876d8249ae825f6e73bca8c7de7618
|
[
"Apache-2.0"
] | null | null | null |
helloworld.py
|
90rupesh/python-programming
|
83548c616b876d8249ae825f6e73bca8c7de7618
|
[
"Apache-2.0"
] | null | null | null |
helloworld.py
|
90rupesh/python-programming
|
83548c616b876d8249ae825f6e73bca8c7de7618
|
[
"Apache-2.0"
] | null | null | null |
"""
write your first program in python3
python3 helloworld.py
"""
print("HelloWorld in python!!")
| 16.333333
| 35
| 0.734694
| 13
| 98
| 5.538462
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023529
| 0.132653
| 98
| 5
| 36
| 19.6
| 0.823529
| 0.581633
| 0
| 0
| 0
| 0
| 0.666667
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
d5fca00de630dfd001e4a1b79ebcd4d5d50f5925
| 148
|
py
|
Python
|
verbarius/__init__.py
|
k4m454k/VerbariusRus
|
54bb20570d3013a93340df3be5592a20c5576322
|
[
"MIT"
] | 2
|
2020-11-15T19:41:20.000Z
|
2020-11-15T21:22:05.000Z
|
verbarius/__init__.py
|
k4m454k/VerbariusRus
|
54bb20570d3013a93340df3be5592a20c5576322
|
[
"MIT"
] | null | null | null |
verbarius/__init__.py
|
k4m454k/VerbariusRus
|
54bb20570d3013a93340df3be5592a20c5576322
|
[
"MIT"
] | 1
|
2020-12-20T13:35:19.000Z
|
2020-12-20T13:35:19.000Z
|
from verbarius.verbarius import Verbarius
from verbarius.languages import BaseLanguage, ru, ua
__all__ = ["Verbarius", "BaseLanguage", "ru", "ua"]
| 29.6
| 52
| 0.763514
| 17
| 148
| 6.411765
| 0.470588
| 0.238532
| 0.293578
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114865
| 148
| 4
| 53
| 37
| 0.832061
| 0
| 0
| 0
| 0
| 0
| 0.168919
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
91423d96086f52548dcc8444e5d4e3400a12091c
| 44
|
py
|
Python
|
backend/AXIOME3_app/extensions.py
|
neufeld/AXIOME3-GUI
|
80b87753b47fab116324b4f0e4151c21ab3b1725
|
[
"BSD-3-Clause"
] | 2
|
2021-02-25T16:59:12.000Z
|
2021-02-25T20:06:15.000Z
|
backend/AXIOME3_app/extensions.py
|
neufeld/AXIOME3-GUI
|
80b87753b47fab116324b4f0e4151c21ab3b1725
|
[
"BSD-3-Clause"
] | 7
|
2020-11-18T08:05:52.000Z
|
2022-02-17T20:45:10.000Z
|
backend/AXIOME3_app/extensions.py
|
neufeld/AXIOME3-GUI
|
80b87753b47fab116324b4f0e4151c21ab3b1725
|
[
"BSD-3-Clause"
] | null | null | null |
from celery import Celery
celery = Celery()
| 14.666667
| 25
| 0.772727
| 6
| 44
| 5.666667
| 0.5
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 44
| 3
| 26
| 14.666667
| 0.918919
| 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 | 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
| 5
|
e678c7fc9f5c30827d1327855977d2afdec79a7c
| 276
|
py
|
Python
|
verbcalc/__init__.py
|
nandinimaheshwari7107/VerbCalc
|
7a1459466aa16ea81d88e2b1e454587c0fc01d07
|
[
"BSD-3-Clause"
] | null | null | null |
verbcalc/__init__.py
|
nandinimaheshwari7107/VerbCalc
|
7a1459466aa16ea81d88e2b1e454587c0fc01d07
|
[
"BSD-3-Clause"
] | 35
|
2021-10-30T14:04:05.000Z
|
2022-03-31T08:33:25.000Z
|
verbcalc/__init__.py
|
LucaMellini/VerbCalc
|
fc87ae5d9dbc420fe644703febdbcb15a2da6e03
|
[
"BSD-3-Clause"
] | 4
|
2021-11-07T12:36:53.000Z
|
2021-11-24T17:43:11.000Z
|
"""
Python library for making calculations from natural language.
"""
from verbcalc.core.calculate import calculate
from verbcalc.core.translator.symbols import Symbols
from verbcalc.core.translator.translator import translate
__all__ = ['translate', 'calculate', 'Symbols']
| 30.666667
| 61
| 0.804348
| 32
| 276
| 6.8125
| 0.5
| 0.165138
| 0.220183
| 0.238532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 276
| 8
| 62
| 34.5
| 0.879032
| 0.221014
| 0
| 0
| 0
| 0
| 0.120773
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e6794ecc2af3d4d0cb646b6e160675d6cec0377c
| 184
|
py
|
Python
|
example/books/models.py
|
nyradr/django-unicorn
|
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
|
[
"MIT"
] | 1
|
2021-02-11T13:26:06.000Z
|
2021-02-11T13:26:06.000Z
|
example/books/models.py
|
nyradr/django-unicorn
|
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
|
[
"MIT"
] | null | null | null |
example/books/models.py
|
nyradr/django-unicorn
|
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
|
[
"MIT"
] | null | null | null |
from django.db.models import Model
from django.db.models.fields import CharField, DateField
class Book(Model):
title = CharField(max_length=255)
date_published = DateField()
| 23
| 56
| 0.766304
| 25
| 184
| 5.56
| 0.68
| 0.143885
| 0.172662
| 0.258993
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019108
| 0.146739
| 184
| 7
| 57
| 26.285714
| 0.866242
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 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
| 5
|
e67eac1c74955c8dd38abd0365d92a26c836c56f
| 172
|
py
|
Python
|
vspreview/widgets/custom/__init__.py
|
wwww-wwww/vs-preview
|
3aaad4f2242ca1d490dccb895efe27e823162d2a
|
[
"Apache-2.0"
] | null | null | null |
vspreview/widgets/custom/__init__.py
|
wwww-wwww/vs-preview
|
3aaad4f2242ca1d490dccb895efe27e823162d2a
|
[
"Apache-2.0"
] | null | null | null |
vspreview/widgets/custom/__init__.py
|
wwww-wwww/vs-preview
|
3aaad4f2242ca1d490dccb895efe27e823162d2a
|
[
"Apache-2.0"
] | null | null | null |
# flake8: noqa
from .misc import StatusBar
from .combobox import ComboBox
from .edits import FrameEdit, TimeEdit
from .graphicsview import GraphicsImageItem, GraphicsView
| 24.571429
| 57
| 0.825581
| 20
| 172
| 7.1
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006667
| 0.127907
| 172
| 6
| 58
| 28.666667
| 0.94
| 0.069767
| 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
| 1
| 0
|
0
| 5
|
e682d98f48e998981b24ed57dea6d6c31585df90
| 58
|
py
|
Python
|
enthought/traits/ui/editors/time_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/traits/ui/editors/time_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/traits/ui/editors/time_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from traitsui.editors.time_editor import *
| 19.333333
| 42
| 0.810345
| 8
| 58
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12069
| 58
| 2
| 43
| 29
| 0.901961
| 0.206897
| 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
| 1
| 0
|
0
| 5
|
e6835a08b5f357e743e3de8cc6f4930764638336
| 3,831
|
py
|
Python
|
app/publico/views.py
|
brunosilva5/PT-NEWS_EXTRACTOR
|
2b8e892b466ac13992dd555a326111d727e03f10
|
[
"BSD-3-Clause"
] | null | null | null |
app/publico/views.py
|
brunosilva5/PT-NEWS_EXTRACTOR
|
2b8e892b466ac13992dd555a326111d727e03f10
|
[
"BSD-3-Clause"
] | 2
|
2021-12-13T20:51:44.000Z
|
2022-02-14T02:45:58.000Z
|
app/publico/views.py
|
brunosilva5/PT-NEWS_EXTRACTOR
|
2b8e892b466ac13992dd555a326111d727e03f10
|
[
"BSD-3-Clause"
] | null | null | null |
"""
Contains the Publico's API Endpoints (Views)
"""
import django_rq
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from .models import PublicoNewsFactory
from core.serializers import (
TagSearchSerializer,
JobSerializer,
URLSearchSerializer,
KeywordSearchSerializer,
)
class PublicoURLSearchView(APIView):
"""
Creates a Publico's URL Search job
"""
def post(self, request, *args, **kwargs):
# Create serializer from request data
serializer = URLSearchSerializer(data=request.data)
if serializer.is_valid():
# Enqueue job
job_id = django_rq.enqueue(
PublicoNewsFactory().url_search,
urls=serializer.data["urls"],
).id
# Create a job serializer
job_serializer = JobSerializer(
data={"job_id": job_id},
context={"request": request},
)
# Return the job serializer data
if job_serializer.is_valid():
return Response(job_serializer.data)
else:
return Response(
job_serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
return Response(
serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
class PublicoTagSearchView(APIView):
"""
Creates a Publico's Tag Search job
"""
def post(self, request, *args, **kwargs):
# Create serializer from request data
serializer = TagSearchSerializer(data=request.data)
if serializer.is_valid():
# Enqueue job
job_id = django_rq.enqueue(
PublicoNewsFactory().tag_search,
starting_date=serializer.data["starting_date"],
ending_date=serializer.data["ending_date"],
tags=serializer.data["tags"],
).id
# Create a job serializer
job_serializer = JobSerializer(
data={"job_id": job_id},
context={"request": request},
)
# Return the job serializer data
if job_serializer.is_valid():
return Response(job_serializer.data)
else:
return Response(
job_serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
return Response(
serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
class PublicoKeywordSearchView(APIView):
"""
Creates a Publico's Keyword Search job
"""
def post(self, request, *args, **kwargs):
# Create serializer from request data
serializer = KeywordSearchSerializer(data=request.data)
if serializer.is_valid():
# Enqueue job
job_id = django_rq.enqueue(
PublicoNewsFactory().keyword_search,
starting_date=serializer.data["starting_date"],
ending_date=serializer.data["ending_date"],
keywords=serializer.data["keywords"],
).id
# Create a job serializer
job_serializer = JobSerializer(
data={"job_id": job_id},
context={"request": request},
)
# Return the job serializer data
if job_serializer.is_valid():
return Response(job_serializer.data)
else:
return Response(
job_serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
return Response(
serializer.errors,
status=status.HTTP_400_BAD_REQUEST,
)
| 30.648
| 63
| 0.564082
| 354
| 3,831
| 5.926554
| 0.175141
| 0.111535
| 0.048618
| 0.077216
| 0.751192
| 0.718303
| 0.718303
| 0.718303
| 0.718303
| 0.718303
| 0
| 0.00729
| 0.355521
| 3,831
| 124
| 64
| 30.895161
| 0.842446
| 0.120856
| 0
| 0.619048
| 0
| 0
| 0.031174
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0
| 0.071429
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
e68449d626adfc6d1276a8e57025afbeae9ff913
| 4,577
|
py
|
Python
|
models/fusion_network.py
|
ID56/Multimodal-Fusion-CRNN
|
1775ec0cb9d0878c2635860c291b343130296797
|
[
"MIT"
] | null | null | null |
models/fusion_network.py
|
ID56/Multimodal-Fusion-CRNN
|
1775ec0cb9d0878c2635860c291b343130296797
|
[
"MIT"
] | null | null | null |
models/fusion_network.py
|
ID56/Multimodal-Fusion-CRNN
|
1775ec0cb9d0878c2635860c291b343130296797
|
[
"MIT"
] | null | null | null |
import torch
from torch import nn
from models.blocks import ConvBlock, MLP
from einops import rearrange
from typing import Tuple
class FeatureFusionNet(nn.Module):
def __init__(self, conv_blocks: list = [8, 16, 32], res_in : Tuple[int, int] = (50, 50), T : int = 32, D : int = 2, num_classes : int = 14,
drop_prb : float = 0.5, mlp_layers: list = [128], lstm_units: int = 128, lstm_layers: int = 2, use_bilstm: bool = True,
actn_type: str = "swish", use_bn: bool = True, use_ln: bool = False, **kwargs) -> None:
super().__init__()
self.depth_cnn = nn.Sequential(*[ConvBlock(1 if not i else conv_blocks[i - 1], conv_blocks[i], 3, 1, 1, use_bn, actn_type) for i in range(len(conv_blocks))])
with torch.no_grad():
in_features = self.depth_cnn(torch.randn(1, 1, res_in[0], res_in[1])).numel()
self.depth_lstm = nn.LSTM(in_features, lstm_units, num_layers=lstm_layers, dropout=drop_prb, bidirectional=use_bilstm, batch_first=True)
self.joint_lstm = nn.LSTM(22 * D, lstm_units, num_layers=lstm_layers, dropout=drop_prb, bidirectional=use_bilstm, batch_first=True)
f_in = 2 * T * lstm_units * (2 if use_bilstm else 1)
self.mlp = MLP(f_in, mlp_layers, drop_prb, use_ln, actn_type, num_classes)
def forward(self, x):
x_jnt, x_dpt = x
# 2d joints
x_jnt = self.joint_lstm(x_jnt)[0]
# depth images
x_dpt = rearrange(x_dpt, "b t c h w -> (b t) c h w")
x_dpt = self.depth_cnn(x_dpt)
x_dpt = rearrange(x_dpt, "(b t) c h w -> b t (c h w)", t=x_jnt.shape[1])
x_dpt = self.depth_lstm(x_dpt)[0]
# feature fusion
x_fused = torch.cat((x_dpt, x_jnt), dim=1)
x_fused = rearrange(x_fused, "b t f -> b (t f)")
x_fused = self.mlp(x_fused)
return x_fused
class ScoreFusionNet(nn.Module):
def __init__(self, conv_blocks: list = [8, 16, 32], res_in : Tuple[int, int] = (50, 50), T : int = 32, D : int = 2, num_classes : int = 14,
drop_prb : float = 0.5, mlp_layers: list = [128], lstm_units: int = 128, lstm_layers: int = 2, use_bilstm: bool = True,
actn_type: str = "swish", use_bn: bool = True, use_ln: bool = False, **kwargs) -> None:
super().__init__()
self.depth_cnn = nn.Sequential(*[ConvBlock(1 if not i else conv_blocks[i - 1], conv_blocks[i], 3, 1, 1, use_bn, actn_type) for i in range(len(conv_blocks))])
with torch.no_grad():
in_features = self.depth_cnn(torch.randn(1, 1, res_in[0], res_in[1])).numel()
self.depth_lstm = nn.LSTM(in_features, lstm_units, num_layers=lstm_layers, dropout=drop_prb, bidirectional=use_bilstm, batch_first=True)
self.joint_lstm = nn.LSTM(22 * D, lstm_units, num_layers=lstm_layers, dropout=drop_prb, bidirectional=use_bilstm, batch_first=True)
self.depth_mlp = MLP(T * lstm_units * (2 if use_bilstm else 1), mlp_layers, drop_prb, use_ln, actn_type, num_classes)
self.joint_mlp = MLP(T * lstm_units * (2 if use_bilstm else 1), mlp_layers, drop_prb, use_ln, actn_type, num_classes)
def forward(self, x):
x_jnt, x_dpt = x
# 2d joints
x_jnt = self.joint_lstm(x_jnt)[0]
# depth images
x_dpt = rearrange(x_dpt, "b t c h w -> (b t) c h w")
x_dpt = self.depth_cnn(x_dpt)
x_dpt = rearrange(x_dpt, "(b t) c h w -> b t (c h w)", t=x_jnt.shape[1])
x_dpt = self.depth_lstm(x_dpt)[0]
# score fusion
x_dpt, x_jnt = rearrange([x_dpt, x_jnt], "i b t f -> i b (t f)")
x_dpt = self.depth_mlp(x_dpt)
x_jnt = self.joint_mlp(x_jnt)
return 0.5 * (x_dpt + x_jnt)
def model_from_name(name, num_classes):
assert name in ["gvar_feature_fusion", "gvar_score_fusion", "vanilla_feature_fusion", "vanilla_score_fusion"]
if name == "gvar_feature_fusion":
model = FeatureFusionNet(num_classes=num_classes)
elif name == "gvar_score_fusion":
model = ScoreFusionNet(num_classes=num_classes)
elif name == "vanilla_feature_fusion":
model = FeatureFusionNet(res_in=(227,227), num_classes=num_classes, drop_prb=0.0, mlp_layers=[256,512,256], lstm_units=256,
use_bilstm=False, actn_type="relu", use_bn=False)
elif name == "vanilla_score_fusion":
model = ScoreFusionNet(res_in=(227,227), num_classes=num_classes, drop_prb=0.0, mlp_layers=[256,512,256], lstm_units=256,
use_bilstm=False, actn_type="relu", use_bn=False)
return model
| 46.232323
| 165
| 0.633821
| 751
| 4,577
| 3.585885
| 0.147803
| 0.035648
| 0.01671
| 0.011883
| 0.753806
| 0.753806
| 0.733012
| 0.733012
| 0.733012
| 0.722986
| 0
| 0.036093
| 0.237273
| 4,577
| 99
| 166
| 46.232323
| 0.735319
| 0.015949
| 0
| 0.53125
| 0
| 0
| 0.06892
| 0.009782
| 0
| 0
| 0
| 0
| 0.015625
| 1
| 0.078125
| false
| 0
| 0.078125
| 0
| 0.234375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
e6d5da0340bdde36070bde85a0873354c2cf6e3a
| 96
|
py
|
Python
|
mono/core/__init__.py
|
ArminMasoumian/GCNDepth
|
9fa77812fa944c2701a45f09acf988815ca50aee
|
[
"MIT"
] | 32
|
2021-09-20T13:59:26.000Z
|
2022-03-17T08:28:04.000Z
|
mono/core/__init__.py
|
ArminMasoumian/GCNDepth
|
9fa77812fa944c2701a45f09acf988815ca50aee
|
[
"MIT"
] | 4
|
2021-12-16T05:49:13.000Z
|
2022-03-31T16:38:37.000Z
|
mono/core/__init__.py
|
ArminMasoumian/GCNDepth
|
9fa77812fa944c2701a45f09acf988815ca50aee
|
[
"MIT"
] | 2
|
2021-12-31T02:38:42.000Z
|
2022-01-10T13:34:52.000Z
|
from .evaluation import NonDistEvalHook, DistEvalMonoHook
from .utils import DistOptimizerHook
| 24
| 57
| 0.864583
| 9
| 96
| 9.222222
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104167
| 96
| 3
| 58
| 32
| 0.965116
| 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
| 1
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.