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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a882262fcce4344837006d73445121d10cf7bee1 | 41 | py | Python | src/hark_lang/examples/__init__.py | krrome/teal-lang | 594ac0f0baae047fdb19ac9126d174408d487905 | [
"Apache-2.0"
] | 85 | 2020-04-29T13:51:33.000Z | 2020-08-28T04:40:11.000Z | src/hark_lang/examples/__init__.py | krrome/teal-lang | 594ac0f0baae047fdb19ac9126d174408d487905 | [
"Apache-2.0"
] | 15 | 2020-05-06T07:58:18.000Z | 2020-08-28T10:29:28.000Z | src/hark_lang/examples/__init__.py | krrome/teal-lang | 594ac0f0baae047fdb19ac9126d174408d487905 | [
"Apache-2.0"
] | 4 | 2020-05-31T09:42:08.000Z | 2020-08-27T17:04:26.000Z | from .load_examples import load_examples
| 20.5 | 40 | 0.878049 | 6 | 41 | 5.666667 | 0.666667 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a886649ac621f0da8344fa85585b2e33dd0b8462 | 133 | py | Python | fawkes/fetch/remote.py | AalokAhluwalia/fawkes | f2b81e0ea718d490036eae65ab0c8e2bf8dc47a4 | [
"MIT"
] | 87 | 2020-03-26T17:11:53.000Z | 2022-03-06T15:53:17.000Z | fawkes/fetch/remote.py | AalokAhluwalia/fawkes | f2b81e0ea718d490036eae65ab0c8e2bf8dc47a4 | [
"MIT"
] | 26 | 2020-03-27T13:40:22.000Z | 2022-03-12T08:50:55.000Z | fawkes/fetch/remote.py | LaudateCorpus1/fawkes | bd4d5269e51d7d11c365aca18b8b4c9150ba62e2 | [
"MIT"
] | 31 | 2020-03-26T21:28:20.000Z | 2022-03-06T15:09:27.000Z | import urllib.request
def fetch(review_channel):
return urllib.request.urlopen(review_channel.file_path).read().decode("utf-8")
| 26.6 | 82 | 0.781955 | 19 | 133 | 5.315789 | 0.789474 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.082707 | 133 | 4 | 83 | 33.25 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.037594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
a88bd2c0fa4311d4f429d8737ed59f69b5cec737 | 132 | py | Python | mailviews/helpers.py | archchoa/django-mailviews | 9993d5e911d545b3bc038433986c5f6812e7e965 | [
"Apache-2.0"
] | 93 | 2015-01-13T10:51:07.000Z | 2022-02-01T06:29:51.000Z | mailviews/helpers.py | archchoa/django-mailviews | 9993d5e911d545b3bc038433986c5f6812e7e965 | [
"Apache-2.0"
] | 16 | 2015-07-23T00:54:49.000Z | 2018-08-28T13:11:16.000Z | mailviews/helpers.py | archchoa/django-mailviews | 9993d5e911d545b3bc038433986c5f6812e7e965 | [
"Apache-2.0"
] | 32 | 2015-07-01T09:35:23.000Z | 2022-01-11T15:58:38.000Z | from django.conf import settings
def should_use_staticfiles():
return 'django.contrib.staticfiles' in settings.INSTALLED_APPS
| 22 | 66 | 0.810606 | 17 | 132 | 6.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 132 | 5 | 67 | 26.4 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
a8d0a00898ec97ef5869a913300a2f5251309dcb | 3,778 | py | Python | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/image_creation_in_directories.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/image_creation_in_directories.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/image_creation_in_directories.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | """
Here I am going to convert array to image from it's pixel value and put those images in their respective directory for
both in train and test set.
train set -------> [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]
test set -------> [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]
"""
# Import requi... | 28.19403 | 120 | 0.547644 | 564 | 3,778 | 3.624113 | 0.267731 | 0.026419 | 0.019569 | 0.027397 | 0.831703 | 0.808219 | 0.787671 | 0.758317 | 0.758317 | 0.723092 | 0 | 0.029973 | 0.320011 | 3,778 | 133 | 121 | 28.406015 | 0.765668 | 0.326893 | 0 | 0.793651 | 0 | 0 | 0.130036 | 0.038293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.047619 | 0 | 0.079365 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
766641974064a5d92afd53daa2475773b0a83c58 | 1,928 | py | Python | dctorch/functional.py | GallagherCommaJack/dctorch | b56d9a0e6b17263fb56ab84ec4b9c547351567d0 | [
"MIT"
] | null | null | null | dctorch/functional.py | GallagherCommaJack/dctorch | b56d9a0e6b17263fb56ab84ec4b9c547351567d0 | [
"MIT"
] | null | null | null | dctorch/functional.py | GallagherCommaJack/dctorch | b56d9a0e6b17263fb56ab84ec4b9c547351567d0 | [
"MIT"
] | null | null | null | import torch
import scipy.fft
import numpy as np
from functools import lru_cache
@lru_cache()
def compute_dct_mat(n: int, device: str, dtype: torch.dtype) -> torch.Tensor:
m = scipy.fft.dct(np.eye(n), norm="ortho")
return torch.tensor(m, device=device, dtype=dtype)
@lru_cache()
def compute_idct_mat(n: int, ... | 33.824561 | 78 | 0.651971 | 338 | 1,928 | 3.627219 | 0.156805 | 0.143556 | 0.127243 | 0.176183 | 0.867863 | 0.867863 | 0.867863 | 0.817292 | 0.817292 | 0.817292 | 0 | 0.006165 | 0.158714 | 1,928 | 56 | 79 | 34.428571 | 0.749692 | 0 | 0 | 0.55 | 0 | 0 | 0.060166 | 0.023859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 7 |
76a89a39a6206784388661d6d9e5bbd97487a868 | 1,861 | py | Python | rlschool/metamaze/test.py | HaojieSHI98/RLSchool | 23c21c8028c8398a94dd7ed7aeb2624dc72f1160 | [
"Apache-2.0"
] | 169 | 2019-07-15T02:23:54.000Z | 2021-10-31T08:31:19.000Z | rlschool/metamaze/test.py | HaojieSHI98/RLSchool | 23c21c8028c8398a94dd7ed7aeb2624dc72f1160 | [
"Apache-2.0"
] | 23 | 2019-07-22T05:11:13.000Z | 2021-11-01T04:53:39.000Z | rlschool/metamaze/test.py | HaojieSHI98/RLSchool | 23c21c8028c8398a94dd7ed7aeb2624dc72f1160 | [
"Apache-2.0"
] | 48 | 2019-07-15T02:21:42.000Z | 2021-09-16T06:40:51.000Z | import gym
import sys
import rlschool.metamaze
def test_2d_maze(max_iteration):
print("Testing 2D Maze...")
maze_env = gym.make("meta-maze-2D-v0", enable_render=False)
cell_scale = 9
task = maze_env.sample_task(cell_scale=cell_scale)
maze_env.set_task(task)
iteration = 0
while iteration < m... | 35.788462 | 90 | 0.645889 | 266 | 1,861 | 4.225564 | 0.225564 | 0.099644 | 0.069395 | 0.060498 | 0.909253 | 0.859431 | 0.859431 | 0.813167 | 0.813167 | 0.813167 | 0 | 0.028612 | 0.248791 | 1,861 | 51 | 91 | 36.490196 | 0.775393 | 0.036002 | 0 | 0.75 | 0 | 0 | 0.126186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.104167 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
76be58077bf93defbe914943337905b9575cbd72 | 4,911 | py | Python | courses/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | 4 | 2018-07-13T14:37:54.000Z | 2021-05-17T08:48:44.000Z | courses/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | null | null | null | courses/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | null | null | null | from CanvasAPI.util import callhelper
from CanvasAPI.courses import settings, users
from CanvasAPI import instance
__all__ = ["get", "get_sections", "put", "delete", "settings", "users"]
def get(course_id, *args):
'''Gets a course'''
url_str = "courses/{}{}".format(course_id, callhelper.args_to_para... | 41.974359 | 91 | 0.623498 | 516 | 4,911 | 5.620155 | 0.197674 | 0.143448 | 0.036207 | 0.028966 | 0.887241 | 0.871379 | 0.871379 | 0.86931 | 0.834138 | 0.813793 | 0 | 0 | 0.295459 | 4,911 | 116 | 92 | 42.336207 | 0.83815 | 0.632458 | 0 | 0.105263 | 0 | 0 | 0.12145 | 0.020568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
4f5a6e0cf449275fca1db56782b928b125b5b23a | 239 | py | Python | product/product_labels.py | saiihamza/open_data_parsing | 6757c6c6823a0523ca1d2af79e99b761b57a794d | [
"Apache-2.0"
] | null | null | null | product/product_labels.py | saiihamza/open_data_parsing | 6757c6c6823a0523ca1d2af79e99b761b57a794d | [
"Apache-2.0"
] | null | null | null | product/product_labels.py | saiihamza/open_data_parsing | 6757c6c6823a0523ca1d2af79e99b761b57a794d | [
"Apache-2.0"
] | null | null | null | class ProductLabels(object):
def __init__(self, labels, labels_tags, labels_fr):
self.Labels = labels
self.LabelsTags = labels_tags
self.LabelsFr = labels_fr
def __str__(self):
return self .Labels
| 23.9 | 55 | 0.656904 | 28 | 239 | 5.178571 | 0.464286 | 0.206897 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263598 | 239 | 9 | 56 | 26.555556 | 0.823864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 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 | 1 | 1 | 0 | 0 | 7 |
4fa0736518db36e725e9fd662bdeb20f6fe9eb15 | 7,351 | py | Python | Python-ML/PP04/code/PCA.py | JasonFil/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | 4 | 2017-06-04T01:06:57.000Z | 2019-11-14T20:05:30.000Z | Python-ML/PP04/code/PCA.py | jasonfilippou/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | null | null | null | Python-ML/PP04/code/PCA.py | jasonfilippou/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | 5 | 2016-05-27T19:00:07.000Z | 2018-10-30T13:49:38.000Z | '''
Created on Nov 29, 2012
@author: jason
'''
from inspect import stack
import pandas as pd
import numpy as np
import os
from util.mlExceptions import DatasetError, LogicalError
from scipy.sparse import lil_matrix
from scipy.sparse.linalg import eigs
from numpy.linalg import eig
# Global constant for current function... | 44.823171 | 148 | 0.670249 | 1,054 | 7,351 | 4.621442 | 0.191651 | 0.009854 | 0.027099 | 0.029563 | 0.909054 | 0.909054 | 0.895504 | 0.895504 | 0.895504 | 0.895504 | 0 | 0.011601 | 0.226092 | 7,351 | 164 | 149 | 44.823171 | 0.844612 | 0.111413 | 0 | 0.74359 | 0 | 0 | 0.183369 | 0.005757 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
96f596317073d5271cc276563cde435739784b59 | 193 | py | Python | src/waclient/service_controller/__init__.py | WitnessAngel/witness-angel-sensor | 810f093955c96c73e47204287cdb1a30dc73db65 | [
"MIT"
] | 4 | 2019-10-31T10:09:44.000Z | 2020-06-02T15:49:02.000Z | src/waclient/service_controller/__init__.py | WitnessAngel/witness-angel-sensor | 810f093955c96c73e47204287cdb1a30dc73db65 | [
"MIT"
] | 1 | 2019-11-07T13:45:06.000Z | 2019-11-13T09:10:26.000Z | src/waclient/service_controller/__init__.py | WitnessAngel/witness-angel-sensor | 810f093955c96c73e47204287cdb1a30dc73db65 | [
"MIT"
] | 2 | 2019-10-31T09:48:54.000Z | 2019-10-31T09:52:31.000Z | from kivy.utils import platform
if platform == "android":
from .android_service_controller import ServiceController
else:
from .subprocess_service_controller import ServiceController
| 24.125 | 64 | 0.813472 | 21 | 193 | 7.285714 | 0.571429 | 0.222222 | 0.300654 | 0.522876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139896 | 193 | 7 | 65 | 27.571429 | 0.921687 | 0 | 0 | 0 | 0 | 0 | 0.036269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
96fad68ae2fb3d0e8a71efdc57f0caf7a9863a70 | 13,561 | py | Python | Code/python/Py/PostProcess.py | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | Code/python/Py/PostProcess.py | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 4 | 2020-03-12T15:36:57.000Z | 2022-02-08T02:19:17.000Z | Code/python/Py/PostProcess.py | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | #-------关联C++库---------------
import ctypes
import platform
system = platform.system()
if system == "Windows":
pre = "./"
suff = ".dll"
else:
pre = "./lib"
suff = ".so"
libfile = ctypes.cdll.LoadLibrary
filename = pre+"GraphicsAnalyse"+suff
postPro = libfile(filename)
import MainWindow
#--------------------... | 35.132124 | 114 | 0.773026 | 1,872 | 13,561 | 5.267094 | 0.096154 | 0.110751 | 0.142394 | 0.174037 | 0.909432 | 0.887931 | 0.855477 | 0.78144 | 0.600913 | 0.456795 | 0 | 0.00323 | 0.132586 | 13,561 | 385 | 115 | 35.223377 | 0.834991 | 0.006637 | 0 | 0.332168 | 0 | 0 | 0.002679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.318182 | 0.01049 | 0 | 0.328671 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
8c58b90eef41167d3f0de93f06baf77540390725 | 59,670 | py | Python | sdk/python/pulumi_proxmox/lxc_container.py | beyondcloud-co/pulumi-proxmox | 45d7b14e37815fe35fbb4c09c047d91d71e86e8d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_proxmox/lxc_container.py | beyondcloud-co/pulumi-proxmox | 45d7b14e37815fe35fbb4c09c047d91d71e86e8d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_proxmox/lxc_container.py | beyondcloud-co/pulumi-proxmox | 45d7b14e37815fe35fbb4c09c047d91d71e86e8d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 37.670455 | 134 | 0.618167 | 6,504 | 59,670 | 5.462023 | 0.029213 | 0.12912 | 0.207516 | 0.109613 | 0.945194 | 0.937453 | 0.891569 | 0.886981 | 0.876904 | 0.82874 | 0 | 0.000022 | 0.25279 | 59,670 | 1,583 | 135 | 37.694251 | 0.796752 | 0.018988 | 0 | 0.922961 | 1 | 0 | 0.075464 | 0.017225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16994 | false | 0.018127 | 0.005287 | 0.098943 | 0.27719 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
8b40a9775ef5abf0ab9a7a2c513dcc70271d80ea | 354 | py | Python | main.py | nikitt-code/py-auth-encrypt | 65b40031a80aa4f51ac071ced0aff0f9ae63c795 | [
"MIT"
] | null | null | null | main.py | nikitt-code/py-auth-encrypt | 65b40031a80aa4f51ac071ced0aff0f9ae63c795 | [
"MIT"
] | null | null | null | main.py | nikitt-code/py-auth-encrypt | 65b40031a80aa4f51ac071ced0aff0f9ae63c795 | [
"MIT"
] | null | null | null | import PACrypt
pac = PACrypt.Init()
print(pac.password("mysupersecreTTTpasswordadwdwa", 5))
# 444157154256036112436072587541693624076755672895177551428225360594572972299194330109409163709150304140202440078016
print(pac.phone(77778187276))
# 4319497528477571353237713124486853003085805071461469194183444169461798912207... | 35.4 | 116 | 0.903955 | 16 | 354 | 20 | 0.75 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.693215 | 0.042373 | 354 | 9 | 117 | 39.333333 | 0.250737 | 0.632768 | 0 | 0 | 0 | 0 | 0.228346 | 0.228346 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 8 |
8b4903e1e382c86637db5ad8bcce513cf300077a | 37,292 | py | Python | pinakes/main/migrations/0020_auto_20211208_2019.py | hsong-rh/pinakes | 2f08cb757ca64c866af3244686b92a3074fc7571 | [
"Apache-2.0"
] | null | null | null | pinakes/main/migrations/0020_auto_20211208_2019.py | hsong-rh/pinakes | 2f08cb757ca64c866af3244686b92a3074fc7571 | [
"Apache-2.0"
] | null | null | null | pinakes/main/migrations/0020_auto_20211208_2019.py | hsong-rh/pinakes | 2f08cb757ca64c866af3244686b92a3074fc7571 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-12-08 20:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("main", "0019_portfolio_k... | 34.43398 | 143 | 0.49764 | 3,264 | 37,292 | 5.547181 | 0.068321 | 0.133657 | 0.167072 | 0.193803 | 0.88838 | 0.878769 | 0.797415 | 0.752403 | 0.704297 | 0.653651 | 0 | 0.00309 | 0.409847 | 37,292 | 1,082 | 144 | 34.465804 | 0.819611 | 0.001207 | 0 | 0.894981 | 1 | 0 | 0.227467 | 0.003866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004647 | 0 | 0.007435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
8c73f92c2a6542dcf8ad4c7b840ed272d19cd50e | 76,880 | py | Python | huaweicloud-sdk-kms/huaweicloudsdkkms/v1/kms_client.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-kms/huaweicloudsdkkms/v1/kms_client.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-kms/huaweicloudsdkkms/v1/kms_client.py | Adek06/huaweicloud-sdk-python-v3 | 3d13b27d089e04a1ae567cd649b3c5509e0391d2 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
import datetime
import re
import importlib
import six
from huaweicloudsdkcore.client import Client, ClientBuilder
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkcore.utils import http_utils
from huaweicloudsdkcore.sdk_stream_request imp... | 30.375346 | 253 | 0.622294 | 7,707 | 76,880 | 5.810692 | 0.049695 | 0.040015 | 0.070027 | 0.039546 | 0.915816 | 0.898823 | 0.868723 | 0.842463 | 0.840989 | 0.840989 | 0 | 0.001356 | 0.289932 | 76,880 | 2,530 | 254 | 30.387352 | 0.818996 | 0.136316 | 0 | 0.814815 | 0 | 0 | 0.109889 | 0.065655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055206 | false | 0 | 0.019567 | 0.000699 | 0.131377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
8ceeb0df915a390af7f43bc332adf3bd3ab63532 | 2,035 | py | Python | resources/Wireshark/WiresharkDissectorFoo/test/suite_dfilter/group_double.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | 2 | 2020-09-11T05:51:42.000Z | 2020-12-31T11:42:02.000Z | resources/Wireshark/WiresharkDissectorFoo/test/suite_dfilter/group_double.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | null | null | null | resources/Wireshark/WiresharkDissectorFoo/test/suite_dfilter/group_double.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | null | null | null | # Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu>
#
# SPDX-License-Identifier: GPL-2.0-or-later
import unittest
import fixtures
from suite_dfilter.dfiltertest import *
@fixtures.uses_fixtures
class case_double(unittest.TestCase):
trace_file = "icmp.pcapng.gz"
def test_eq_1(self, checkDFilterCo... | 29.071429 | 62 | 0.665848 | 228 | 2,035 | 5.802632 | 0.22807 | 0.507937 | 0.296296 | 0.338624 | 0.820106 | 0.784581 | 0.749811 | 0.681784 | 0.681784 | 0.575964 | 0 | 0.059987 | 0.229975 | 2,035 | 69 | 63 | 29.492754 | 0.784301 | 0.050123 | 0 | 0.291667 | 0 | 0 | 0.161742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.0625 | 0 | 0.395833 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5073639ccd2192d6c32c3dcc31b462e27c78f9a8 | 191 | py | Python | bip_utils/bip/bip38/__init__.py | MIPPLTeam/bip_utils | c66446e7ac3879d2cf6308c5b8eb7f7705292660 | [
"MIT"
] | null | null | null | bip_utils/bip/bip38/__init__.py | MIPPLTeam/bip_utils | c66446e7ac3879d2cf6308c5b8eb7f7705292660 | [
"MIT"
] | null | null | null | bip_utils/bip/bip38/__init__.py | MIPPLTeam/bip_utils | c66446e7ac3879d2cf6308c5b8eb7f7705292660 | [
"MIT"
] | null | null | null | from bip_utils.bip.bip38.bip38_addr import Bip38PubKeyModes
from bip_utils.bip.bip38.bip38_ec import Bip38EcKeysGenerator
from bip_utils.bip.bip38.bip38 import Bip38Decrypter, Bip38Encrypter
| 47.75 | 68 | 0.879581 | 27 | 191 | 6.037037 | 0.407407 | 0.128834 | 0.220859 | 0.276074 | 0.460123 | 0.460123 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0.068063 | 191 | 3 | 69 | 63.666667 | 0.803371 | 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 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
508bd158d40f1ab1ffec710b39e4393646995e94 | 413 | py | Python | etl_day_ahead_forecasting/pipeline/_defined/__init__.py | KamilMaziarz/etl-day-ahead-forecasting | e709336c2bc381b9909076fcc9d4dd6e81a74b72 | [
"MIT"
] | null | null | null | etl_day_ahead_forecasting/pipeline/_defined/__init__.py | KamilMaziarz/etl-day-ahead-forecasting | e709336c2bc381b9909076fcc9d4dd6e81a74b72 | [
"MIT"
] | null | null | null | etl_day_ahead_forecasting/pipeline/_defined/__init__.py | KamilMaziarz/etl-day-ahead-forecasting | e709336c2bc381b9909076fcc9d4dd6e81a74b72 | [
"MIT"
] | null | null | null | from .pse import (
cross_border_pipeline,
eua_price_pipeline,
renewables_generation_pipeline,
system_operation_data_pipeline,
units_generation_pipeline,
units_outages_pipeline,
)
__all__ = [
'cross_border_pipeline',
'eua_price_pipeline',
'renewables_generation_pipeline',
'syste... | 21.736842 | 37 | 0.755448 | 42 | 413 | 6.714286 | 0.380952 | 0.255319 | 0.134752 | 0.156028 | 0.943262 | 0.943262 | 0.943262 | 0.943262 | 0.943262 | 0.943262 | 0 | 0 | 0.171913 | 413 | 18 | 38 | 22.944444 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.353511 | 0.309927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 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 | 7 |
50c47be331aa345947a2ec749a5bc435b76ae234 | 23,635 | py | Python | idaes/core/tests/test_components.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | null | null | null | idaes/core/tests/test_components.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | null | null | null | idaes/core/tests/test_components.py | dangunter/idaes-pse | 8f63b4ad8000af8a3eb0316a5f61c32e206925d0 | [
"RSA-MD"
] | null | null | null | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 32.69018 | 81 | 0.628348 | 3,220 | 23,635 | 4.372671 | 0.065839 | 0.109375 | 0.129545 | 0.106179 | 0.909233 | 0.909233 | 0.898011 | 0.88267 | 0.872656 | 0.861364 | 0 | 0.009359 | 0.263084 | 23,635 | 722 | 82 | 32.735457 | 0.799047 | 0.029363 | 0 | 0.846995 | 0 | 0 | 0.050964 | 0 | 0 | 0 | 0 | 0 | 0.322404 | 1 | 0.147541 | false | 0 | 0.01275 | 0.016393 | 0.202186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
50fe7a339e25dc160d22376b39dece33ae4e3839 | 461,890 | py | Python | Botnets/SquidNet.py | Egida/Ethical-Hacking-Scripts | 0f96cbd4ae1a22124800e4149b95a64ae19e009f | [
"MIT"
] | 29 | 2021-05-23T19:09:18.000Z | 2022-03-25T03:07:57.000Z | Botnets/SquidNet.py | Egida/Ethical-Hacking-Scripts | 0f96cbd4ae1a22124800e4149b95a64ae19e009f | [
"MIT"
] | 1 | 2021-11-04T03:32:44.000Z | 2021-11-06T09:53:12.000Z | Botnets/SquidNet.py | DrSquidX/Ethical-Hacking-Scripts | b383634d16065527cf02f9c7a05f0e1b87734eff | [
"MIT"
] | 6 | 2021-08-23T16:04:34.000Z | 2022-03-07T01:07:15.000Z | import random, socket, time, sys, threading, random, os, hashlib, datetime, sqlite3
try:
"""This Module comes with Paramiko."""
from cryptography.fernet import Fernet
except:
pass
from optparse import OptionParser
"""This script is NOT Perfected(Still a WIP)! Notify me if there are any
issues with ... | 86.463871 | 748 | 0.555152 | 74,590 | 461,890 | 3.412079 | 0.022563 | 0.013202 | 0.05269 | 0.067562 | 0.88295 | 0.870055 | 0.861226 | 0.856766 | 0.849784 | 0.841812 | 0 | 0.160267 | 0.281437 | 461,890 | 5,342 | 749 | 86.463871 | 0.606553 | 0.008242 | 0 | 0.749857 | 0 | 0.577824 | 0.913677 | 0.04713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004953 | false | 0.032197 | 0.002286 | 0 | 0.012002 | 0.024957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fa065e942b8de19594c3d749f1cd9f2589f302a3 | 1,422 | py | Python | test_summarize.py | axenov/BERT-Summarization-for-OpenNMT | b453b33efb4961ec11b9e424f65049e7b7a5146f | [
"MIT"
] | 5 | 2021-03-08T12:53:48.000Z | 2021-09-14T16:18:23.000Z | test_summarize.py | axenov/BERT-Summarization-for-OpenNMT | b453b33efb4961ec11b9e424f65049e7b7a5146f | [
"MIT"
] | null | null | null | test_summarize.py | axenov/BERT-Summarization-for-OpenNMT | b453b33efb4961ec11b9e424f65049e7b7a5146f | [
"MIT"
] | 2 | 2021-03-06T15:28:44.000Z | 2021-07-30T19:36:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from summarizer import AbstractiveSummarizer
if __name__ == "__main__":
FILE_NAME = "sample_de.txt"
texts = []
with open("data/"+FILE_NAME) as f:
for text in f:
texts.append(text)
model = AbstractiveSummarizer(language = 'de', method = 'bert', extract = True)
f... | 29.020408 | 81 | 0.696203 | 182 | 1,422 | 5.362637 | 0.21978 | 0.213115 | 0.278689 | 0.114754 | 0.889344 | 0.889344 | 0.889344 | 0.885246 | 0.885246 | 0.885246 | 0 | 0.000841 | 0.163854 | 1,422 | 49 | 82 | 29.020408 | 0.820017 | 0.029536 | 0 | 0.666667 | 0 | 0 | 0.066715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 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 | 8 |
fa1ece77712ceb4a8b0b18dd663633749d2cd3c0 | 989,754 | py | Python | tests/examples/minlplib/arki0003.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/arki0003.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/arki0003.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:50:54
#
# Equation counts
# Total E G L N X C B
# 2583 450 31 2102 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 74.490404 | 120 | 0.592023 | 142,996 | 989,754 | 4.097716 | 0.034966 | 0.033177 | 0.184314 | 0.19353 | 0.915682 | 0.899691 | 0.89967 | 0.866872 | 0.866872 | 0.664825 | 0 | 0.529086 | 0.226542 | 989,754 | 13,286 | 121 | 74.496011 | 0.236337 | 0.00063 | 0 | 0.341228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000094 | 0 | 0.000094 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
fa4cd90d43f7e52881c95a3cafd7040909f24ca6 | 7,784 | py | Python | exchanges/etherdelta_v2_abi.py | 0x1d00ffff/0xbtc-discord-price-bot | afa33821bb77b63fa528a784b5ef9b913eaac115 | [
"MIT"
] | 10 | 2018-05-01T14:54:55.000Z | 2022-01-24T09:37:31.000Z | exchanges/etherdelta_v2_abi.py | 0x1d00ffff/0xbtc-discord-price-bot | afa33821bb77b63fa528a784b5ef9b913eaac115 | [
"MIT"
] | 1 | 2019-04-10T16:44:52.000Z | 2019-04-10T16:44:52.000Z | exchanges/etherdelta_v2_abi.py | 0x1d00ffff/0xbtc-discord-price-bot | afa33821bb77b63fa528a784b5ef9b913eaac115 | [
"MIT"
] | 16 | 2018-06-06T21:44:18.000Z | 2021-09-22T09:35:59.000Z |
exchange_abi = '[{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":... | 2,594.666667 | 7,782 | 0.62667 | 857 | 7,784 | 5.676779 | 0.074679 | 0.12888 | 0.110997 | 0.12333 | 0.894142 | 0.828366 | 0.806783 | 0.806783 | 0.791367 | 0.698458 | 0 | 0.02635 | 0.000514 | 7,784 | 2 | 7,783 | 3,892 | 0.598972 | 0 | 0 | 0 | 0 | 1 | 0.997687 | 0.997687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
fa699ace0280f273f4b9488dfb331398313d0366 | 68,129 | py | Python | Dicts.py | SIEM-Tools/ArcSight | c0ab720f369efcb0f55ea5a63d162b894af013fb | [
"MIT"
] | 4 | 2016-05-31T14:42:31.000Z | 2020-04-14T23:44:34.000Z | Dicts.py | SIEM-Tools/ArcSight | c0ab720f369efcb0f55ea5a63d162b894af013fb | [
"MIT"
] | null | null | null | Dicts.py | SIEM-Tools/ArcSight | c0ab720f369efcb0f55ea5a63d162b894af013fb | [
"MIT"
] | 7 | 2017-09-09T07:33:05.000Z | 2021-07-01T19:10:13.000Z | service_dict = {
'NetworkService':{
'getTargetsWithRelationshipTypeForResourceById':{},
'getTargetsByRelationshipForSourceId':{},
'getSourcesWithThisTargetByRelationshipCount':{},
'deleteResource':{},
'getSourceURIWithThisTargetByRelatiobnshipForResourceId':{},
'getAl... | 37.598786 | 68 | 0.607333 | 1,783 | 68,129 | 23.205833 | 0.162086 | 0.014985 | 0.027069 | 0.030307 | 0.785117 | 0.760465 | 0.75464 | 0.745287 | 0.730786 | 0.730786 | 0 | 0.000787 | 0.235773 | 68,129 | 1,812 | 69 | 37.598786 | 0.793896 | 0 | 0 | 0.86755 | 0 | 0 | 0.607148 | 0.438705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001104 | 0.001104 | 0 | 0.001104 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d74f9468503889785dc439cfccc39dd78ebba10c | 18,192 | py | Python | mdr_analysis/constant.py | bonilab/malariaibm-generation-of-MDR-mutants | 41086cf621274dcdf8b445435cb1825424a2e722 | [
"MIT"
] | null | null | null | mdr_analysis/constant.py | bonilab/malariaibm-generation-of-MDR-mutants | 41086cf621274dcdf8b445435cb1825424a2e722 | [
"MIT"
] | null | null | null | mdr_analysis/constant.py | bonilab/malariaibm-generation-of-MDR-mutants | 41086cf621274dcdf8b445435cb1825424a2e722 | [
"MIT"
] | null | null | null | HEADLINE = "time_elapsed\tsystem_time\tyear\tmonth\tday\tseasonal_factor\ttreatment_coverage_0_1\ttreatment_coverage_0_10\tpopulation\tsep\teir\tsep\tbsp_2_10\tbsp_0_5\tblood_slide_prevalence\tsep\tmonthly_new_infection\tsep\tmonthly_new_treatment\tsep\tmonthly_clinical_episode\tsep\tmonthly_ntf_raw\tsep\tKNY--C1x\tKNY... | 30.57479 | 2,889 | 0.53518 | 2,827 | 18,192 | 3.31376 | 0.211178 | 0.048676 | 0.063407 | 0.071734 | 0.741247 | 0.741247 | 0.73655 | 0.728864 | 0.728864 | 0.711785 | 0 | 0.219152 | 0.204376 | 18,192 | 594 | 2,890 | 30.626263 | 0.428078 | 0.008575 | 0 | 0.816151 | 0 | 0.001718 | 0.509319 | 0.174284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d76e610e128578e4efe9d07f908f9aadfa1def6d | 5,125 | py | Python | master_thesis_doc/img/statsWilcoxon_examples.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | 1 | 2020-06-13T10:02:02.000Z | 2020-06-13T10:02:02.000Z | master_thesis_doc/img/statsWilcoxon_examples.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | master_thesis_doc/img/statsWilcoxon_examples.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 26 15:42:31 2020
@author: Nicolai
"""
import seaborn as sns
import sys
sys.path.append("../../code/post_proc/")
import post_proc as pp
import matplotlib.pyplot as plt
import numpy as np
if __name__ == "__main__":
###############################
# signifi... | 36.607143 | 110 | 0.525854 | 971 | 5,125 | 2.708548 | 0.084449 | 0.056274 | 0.075285 | 0.088213 | 0.909125 | 0.906084 | 0.894677 | 0.863878 | 0.829658 | 0.822814 | 0 | 0.10059 | 0.173659 | 5,125 | 140 | 111 | 36.607143 | 0.520425 | 0.043707 | 0 | 0.7375 | 0 | 0 | 0.110989 | 0.019522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ad163fc72d01e09e6db22522fc87a7cf1f16da81 | 74 | py | Python | tests/test_plants_pineapple.py | nielse63/PiPlanter | 94ed5265fd4d9b4183edd4a67047d976ee5cdd72 | [
"MIT"
] | null | null | null | tests/test_plants_pineapple.py | nielse63/PiPlanter | 94ed5265fd4d9b4183edd4a67047d976ee5cdd72 | [
"MIT"
] | 118 | 2021-03-08T11:04:41.000Z | 2022-03-31T11:07:05.000Z | tests/test_plants_pineapple.py | nielse63/PiPlanter | 94ed5265fd4d9b4183edd4a67047d976ee5cdd72 | [
"MIT"
] | null | null | null | import pyplanter.plants.pineapple
def test_plants_pineapple():
pass
| 12.333333 | 33 | 0.783784 | 9 | 74 | 6.222222 | 0.777778 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 74 | 5 | 34 | 14.8 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 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 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
d10ee2a52259e72cf9672405a40e75f68f874677 | 5,158 | py | Python | source_ddc/test/unit/test_ddc.py | sansan-inc/econ-source | 9edf3043558779f741b27f38c129242de5c25bdc | [
"Apache-2.0"
] | 26 | 2020-08-28T00:48:20.000Z | 2022-02-27T22:10:53.000Z | source_ddc/test/unit/test_ddc.py | sansan-inc/econ-source | 9edf3043558779f741b27f38c129242de5c25bdc | [
"Apache-2.0"
] | 3 | 2020-08-28T06:04:27.000Z | 2020-08-28T08:03:52.000Z | source_ddc/test/unit/test_ddc.py | sansan-inc/econ-source | 9edf3043558779f741b27f38c129242de5c25bdc | [
"Apache-2.0"
] | 3 | 2020-08-28T10:38:42.000Z | 2021-02-27T16:07:52.000Z | import numpy as np
from source_ddc.simulation_tools import simulate
from source_ddc.algorithms import NFXP, NPL, CCP
from source_ddc.probability_tools import StateManager, random_ccp
from test.utils.functional_tools import average_out
n_repetitions = 10
def test_nfxp(simple_transition_matrix):
def utility_fn(th... | 28.497238 | 102 | 0.584529 | 604 | 5,158 | 4.711921 | 0.139073 | 0.067463 | 0.092762 | 0.064652 | 0.902319 | 0.902319 | 0.887913 | 0.887913 | 0.887913 | 0.887913 | 0 | 0.032194 | 0.313494 | 5,158 | 180 | 103 | 28.655556 | 0.771533 | 0 | 0 | 0.830986 | 0 | 0 | 0.034122 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 1 | 0.084507 | false | 0 | 0.035211 | 0 | 0.176056 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
d11910a08a091567d8c19c7719bda8f82d066c1f | 58 | py | Python | anc2vec/__init__.py | aedera/anc2vec | 58aaa908a7155c3843813ca77dde5c8877244a70 | [
"MIT"
] | 2 | 2021-04-13T17:39:42.000Z | 2022-02-10T01:34:58.000Z | anc2vec/__init__.py | sinc-lab/anc2vec | 58aaa908a7155c3843813ca77dde5c8877244a70 | [
"MIT"
] | null | null | null | anc2vec/__init__.py | sinc-lab/anc2vec | 58aaa908a7155c3843813ca77dde5c8877244a70 | [
"MIT"
] | 1 | 2022-01-04T15:29:55.000Z | 2022-01-04T15:29:55.000Z | from .main import get_embeddings
from .main import get_go
| 19.333333 | 32 | 0.827586 | 10 | 58 | 4.6 | 0.6 | 0.347826 | 0.608696 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 33 | 29 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
0f8c12e25df9b21d79f5da2d0f2f8cfe759d23dd | 32,763 | py | Python | tests/v2/test_0958-new-forms-must-accept-old-form-json.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | tests/v2/test_0958-new-forms-must-accept-old-form-json.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | tests/v2/test_0958-new-forms-must-accept-old-form-json.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import json
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
def test_EmptyArray():
v1 = json.loads(
'{"class":"EmptyArray","has_identities":false,"parameters":{},"form... | 36.89527 | 612 | 0.500534 | 2,874 | 32,763 | 5.509395 | 0.032359 | 0.159151 | 0.201592 | 0.233422 | 0.988695 | 0.988064 | 0.977201 | 0.975243 | 0.96697 | 0.960086 | 0 | 0.02037 | 0.300247 | 32,763 | 887 | 613 | 36.936866 | 0.670287 | 0.003602 | 0 | 0.750907 | 0 | 0.038694 | 0.490809 | 0.313879 | 0 | 0 | 0 | 0 | 0.042322 | 1 | 0.025393 | false | 0 | 0.004837 | 0 | 0.03023 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
7e626c3b33a835d03a1a8943fc059fb92dbf93f5 | 2,919 | py | Python | chandra_models/xija/aca/aca_fit_script.py | jzuhone/chandra_models | db52e8f78e61871e1b0a34593fc525b784ee3374 | [
"BSD-3-Clause"
] | null | null | null | chandra_models/xija/aca/aca_fit_script.py | jzuhone/chandra_models | db52e8f78e61871e1b0a34593fc525b784ee3374 | [
"BSD-3-Clause"
] | 37 | 2015-02-25T23:30:19.000Z | 2022-02-14T21:03:34.000Z | chandra_models/xija/aca/aca_fit_script.py | jzuhone/chandra_models | db52e8f78e61871e1b0a34593fc525b784ee3374 | [
"BSD-3-Clause"
] | 3 | 2016-02-02T19:50:38.000Z | 2018-08-24T21:17:05.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import xija
import sys
from os.path import expanduser
home = expanduser("~")
addthispath = home + '/AXAFLIB/xijafit/'
sys.path.insert(0, addthispath)
import xijafit
stars = '*'*80
n = 0
newmodel = xijafit.XijaFit('aca_model_spec.json', start='2014:001'... | 27.537736 | 89 | 0.742035 | 439 | 2,919 | 4.63098 | 0.170843 | 0.141663 | 0.142154 | 0.150516 | 0.83817 | 0.821446 | 0.821446 | 0.821446 | 0.821446 | 0.821446 | 0 | 0.02567 | 0.079137 | 2,919 | 105 | 90 | 27.8 | 0.730655 | 0.042138 | 0 | 0.831325 | 0 | 0 | 0.261555 | 0.095665 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048193 | 0 | 0.048193 | 0.13253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
7e797cdf0a477ef3e2fd9316f4392b4c8d140b8a | 3,999 | py | Python | tests/apps/packages/test_xmlrpc.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 162 | 2015-01-03T07:59:18.000Z | 2022-02-04T12:37:14.000Z | tests/apps/packages/test_xmlrpc.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 110 | 2015-01-06T00:58:21.000Z | 2022-02-10T07:16:54.000Z | tests/apps/packages/test_xmlrpc.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 67 | 2015-01-15T18:12:18.000Z | 2021-09-27T09:45:55.000Z | import xmlrpc.client as xmlrpclib
import pytest
from tests.factories import ReleaseFactory
@pytest.fixture(params=['/RPC2', '/pypi'])
def rpc_endpoint(request):
return request.param
@pytest.mark.django_db
def test_search_package_name(client, admin_user, live_server, repository,
rp... | 31.242188 | 76 | 0.575394 | 387 | 3,999 | 5.692506 | 0.131783 | 0.046301 | 0.100318 | 0.138902 | 0.891512 | 0.891512 | 0.87744 | 0.87744 | 0.850658 | 0.850658 | 0 | 0.012816 | 0.297574 | 3,999 | 127 | 77 | 31.488189 | 0.771449 | 0 | 0 | 0.734694 | 0 | 0 | 0.184796 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 1 | 0.061224 | false | 0 | 0.030612 | 0.010204 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
0e65285dc614d87b5590f0639d08f5c2d3456d3c | 92 | py | Python | parameters_9000.py | zhangjiannan/easyflow | 2c9906d3cc2088ed367f887da842a46db5d903ed | [
"BSD-3-Clause"
] | null | null | null | parameters_9000.py | zhangjiannan/easyflow | 2c9906d3cc2088ed367f887da842a46db5d903ed | [
"BSD-3-Clause"
] | null | null | null | parameters_9000.py | zhangjiannan/easyflow | 2c9906d3cc2088ed367f887da842a46db5d903ed | [
"BSD-3-Clause"
] | 1 | 2021-05-20T10:48:34.000Z | 2021-05-20T10:48:34.000Z | password="pbkdf2(1000,20,sha512)$aa925206b00a7043$28115a6960f48c6f11bd00bc838e9f2d622c0262"
| 46 | 91 | 0.891304 | 7 | 92 | 11.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.549451 | 0.01087 | 92 | 1 | 92 | 92 | 0.351648 | 0 | 0 | 0 | 0 | 0 | 0.869565 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
0e6c2c4aaa8b372186ff7d9095854d848ddf33de | 11,700 | py | Python | python/deprecated/mcpat_autogen/cache.py | JimmyZhang12/predict-T | 8ae818b0791104de20633ce91e6d633cda7445b3 | [
"MIT"
] | 1 | 2020-05-25T00:33:59.000Z | 2020-05-25T00:33:59.000Z | python/deprecated/mcpat_autogen/cache.py | JimmyZhang12/predict-T | 8ae818b0791104de20633ce91e6d633cda7445b3 | [
"MIT"
] | 13 | 2020-01-30T22:34:13.000Z | 2020-06-25T13:54:57.000Z | python/deprecated/mcpat_autogen/cache.py | JimmyZhang12/predict-T | 8ae818b0791104de20633ce91e6d633cda7445b3 | [
"MIT"
] | 1 | 2020-10-13T05:58:58.000Z | 2020-10-13T05:58:58.000Z | # Copyright (c) 2020 University of Illinois
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of conditions and t... | 41.785714 | 77 | 0.62735 | 1,506 | 11,700 | 4.735724 | 0.164011 | 0.057487 | 0.049355 | 0.027762 | 0.804543 | 0.790522 | 0.788278 | 0.788278 | 0.788278 | 0.788278 | 0 | 0.018852 | 0.206581 | 11,700 | 279 | 78 | 41.935484 | 0.749434 | 0.158034 | 0 | 0.711111 | 0 | 0.004444 | 0.339904 | 0.086712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.008889 | 0 | 0.062222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
0ea734623dbef603f220940cce26423e4eb04d78 | 9,943 | py | Python | tests/hosting/test_messages.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 33 | 2019-05-27T13:04:35.000Z | 2022-03-17T13:33:05.000Z | tests/hosting/test_messages.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 31 | 2019-06-10T01:55:47.000Z | 2022-03-09T07:27:49.000Z | tests/hosting/test_messages.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 25 | 2019-05-13T18:39:24.000Z | 2021-11-16T03:07:33.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 37.520755 | 94 | 0.598612 | 941 | 9,943 | 6.210414 | 0.091392 | 0.13655 | 0.08282 | 0.109172 | 0.887064 | 0.876283 | 0.859514 | 0.825462 | 0.817762 | 0.808522 | 0 | 0.009487 | 0.279091 | 9,943 | 264 | 95 | 37.662879 | 0.805804 | 0.194609 | 0 | 0.870968 | 0 | 0 | 0.058259 | 0 | 0 | 0 | 0 | 0 | 0.446237 | 1 | 0.05914 | false | 0 | 0.010753 | 0 | 0.075269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7d04df9a0ac92933d10ff4d01590420482b881b3 | 16,405 | py | Python | test/test_nvhpc.py | adegomme/hpc-container-maker | fc397482f324af9b0571f235cb51ad9d2939f1c5 | [
"Apache-2.0"
] | null | null | null | test/test_nvhpc.py | adegomme/hpc-container-maker | fc397482f324af9b0571f235cb51ad9d2939f1c5 | [
"Apache-2.0"
] | null | null | null | test/test_nvhpc.py | adegomme/hpc-container-maker | fc397482f324af9b0571f235cb51ad9d2939f1c5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 64.841897 | 372 | 0.732825 | 2,879 | 16,405 | 3.934005 | 0.085446 | 0.079993 | 0.15151 | 0.178792 | 0.852463 | 0.842045 | 0.828448 | 0.814409 | 0.803373 | 0.763288 | 0 | 0.09135 | 0.120512 | 16,405 | 252 | 373 | 65.099206 | 0.693651 | 0.058275 | 0 | 0.536585 | 0 | 0 | 0.108194 | 0.077566 | 0 | 0 | 0 | 0 | 0.158537 | 1 | 0.121951 | false | 0 | 0.073171 | 0 | 0.207317 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 7 |
7d3e30e0e82a5f69f7dde13b4e8bd334313cbfd5 | 3,381 | py | Python | BiblioPixelAnimations/circle/hyperspace.py | jessicaengel451/BiblioPixelAnimations | 37570003ff3460f23cd33bd30625611fdc6e9228 | [
"MIT"
] | 36 | 2015-01-19T00:20:49.000Z | 2021-12-05T13:45:27.000Z | BiblioPixelAnimations/circle/hyperspace.py | jessicaengel451/BiblioPixelAnimations | 37570003ff3460f23cd33bd30625611fdc6e9228 | [
"MIT"
] | 29 | 2015-04-28T21:14:08.000Z | 2019-04-10T15:33:47.000Z | BiblioPixelAnimations/circle/hyperspace.py | jessicaengel451/BiblioPixelAnimations | 37570003ff3460f23cd33bd30625611fdc6e9228 | [
"MIT"
] | 32 | 2015-01-02T13:20:33.000Z | 2021-02-08T03:15:59.000Z | from bibliopixel.animation.circle import Circle
from bibliopixel.colors import COLORS
from bibliopixel.colors.arithmetic import color_scale
import random
class Hyperspace(Circle):
COLOR_DEFAULTS = ('colors', [COLORS.Green]),
def __init__(self, layout, tail=4, growthRate=4, angleDiff=6, **kwds):
... | 34.85567 | 76 | 0.490683 | 382 | 3,381 | 4.191099 | 0.164921 | 0.056215 | 0.037477 | 0.027483 | 0.804497 | 0.775765 | 0.739538 | 0.70331 | 0.70331 | 0.70331 | 0 | 0.029843 | 0.395445 | 3,381 | 96 | 77 | 35.21875 | 0.753425 | 0 | 0 | 0.753247 | 0 | 0 | 0.001826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.051948 | 0 | 0.194805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
70b6afa26d0dd6466e179d805d4247d1bd6635fa | 11,356 | py | Python | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_if.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_if.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_if.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from Instrucciones.TablaSimbolos.Instruccion import Instruccion
from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato
from Instrucciones.Excepcion import Excepcion
class If(Instruccion):
'''
Esta clase representa la instrucción if.
La instrucción if recibe como parámetro una expresión lógica y la ... | 42.85283 | 121 | 0.578373 | 1,085 | 11,356 | 5.931797 | 0.115207 | 0.100218 | 0.054382 | 0.051274 | 0.866998 | 0.852082 | 0.852082 | 0.780764 | 0.75202 | 0.739279 | 0 | 0.007577 | 0.337531 | 11,356 | 265 | 122 | 42.85283 | 0.847933 | 0.203417 | 0 | 0.763889 | 0 | 0 | 0.045269 | 0 | 0 | 0 | 0 | 0.003774 | 0 | 1 | 0.083333 | false | 0.027778 | 0.020833 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
70e5d75347e45b0e14c5b2f92e2e39324cce8471 | 15,813 | py | Python | sdk/python/pulumi_aws/route53/health_check.py | dixler/pulumi-aws | 88838ed6d412c092717a916b0b5b154f68226c3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/route53/health_check.py | dixler/pulumi-aws | 88838ed6d412c092717a916b0b5b154f68226c3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/route53/health_check.py | dixler/pulumi-aws | 88838ed6d412c092717a916b0b5b154f68226c3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Health... | 70.59375 | 496 | 0.726048 | 2,147 | 15,813 | 5.13088 | 0.114578 | 0.039942 | 0.055192 | 0.031046 | 0.841685 | 0.828431 | 0.8189 | 0.8189 | 0.809913 | 0.797476 | 0 | 0.006432 | 0.20363 | 15,813 | 223 | 497 | 70.910314 | 0.86834 | 0.453108 | 0 | 0.020619 | 1 | 0 | 0.15124 | 0.040842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0.010309 | 0.061856 | 0.020619 | 0.340206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
70fafac9b20636a17ab8b3828b58200e0b6e18b8 | 49,783 | py | Python | sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_operations/_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_operations/_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_operations/_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | 41.799328 | 119 | 0.637205 | 5,561 | 49,783 | 5.495414 | 0.046574 | 0.026178 | 0.025916 | 0.015805 | 0.93858 | 0.924378 | 0.905105 | 0.890805 | 0.8875 | 0.871564 | 0 | 0.013233 | 0.257698 | 49,783 | 1,190 | 120 | 41.834454 | 0.813741 | 0.061788 | 0 | 0.775401 | 0 | 0 | 0.070963 | 0.017537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016043 | 0 | 0.050802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
cb0ff5fac6ed50ad78a6b30848848d79917186e8 | 144 | py | Python | blueprints/era_postgres/base_vm.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | blueprints/era_postgres/base_vm.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | blueprints/era_postgres/base_vm.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | 1 | 2021-11-16T10:28:42.000Z | 2021-11-16T10:28:42.000Z | from calm.dsl.builtins import AhvVmResources, AhvVm
from calm.dsl.builtins import AhvVmDisk, AhvVmNic, AhvVmGC
from vars import NETWORK_NAME
| 20.571429 | 58 | 0.826389 | 20 | 144 | 5.9 | 0.65 | 0.135593 | 0.186441 | 0.322034 | 0.423729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 144 | 6 | 59 | 24 | 0.936508 | 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 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cb106a2cd2c658d02262923200de6aeafacf1f61 | 64,115 | py | Python | tests/test_multithreading.py | himaghna/molSim | 8c1356ec9cc3e08d4d30696adc682dc912675023 | [
"MIT"
] | 1 | 2020-02-10T20:14:21.000Z | 2020-02-10T20:14:21.000Z | tests/test_multithreading.py | himaghna/molSim | 8c1356ec9cc3e08d4d30696adc682dc912675023 | [
"MIT"
] | 67 | 2020-02-10T08:09:03.000Z | 2022-01-18T15:27:27.000Z | tests/test_multithreading.py | himaghna/molSim | 8c1356ec9cc3e08d4d30696adc682dc912675023 | [
"MIT"
] | 3 | 2020-02-10T20:14:25.000Z | 2020-06-26T15:35:57.000Z | """ Test multithreading to ensure consistent behavior with
serial implementation."""
import unittest
import warnings
from os import remove
from os.path import exists, join
import numpy as np
from molSim.chemical_datastructures import MoleculeSet
from time import time
from tabulate import tabulate
class TestMultithrea... | 43.117014 | 103 | 0.559385 | 6,133 | 64,115 | 5.324148 | 0.030328 | 0.04851 | 0.06517 | 0.04459 | 0.946161 | 0.928644 | 0.917374 | 0.910452 | 0.903255 | 0.878817 | 0 | 0.080985 | 0.371192 | 64,115 | 1,486 | 104 | 43.14603 | 0.728941 | 0.027544 | 0 | 0.771261 | 0 | 0 | 0.091541 | 0.015303 | 0 | 0 | 0 | 0 | 0.010264 | 1 | 0.008065 | false | 0 | 0.005865 | 0 | 0.016862 | 0.094575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
cb2c05c583ee896ae2c89116df2b09b019b8e5fd | 23,978 | py | Python | cddm/test/test_core.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | null | null | null | cddm/test/test_core.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | null | null | null | cddm/test/test_core.py | inwwin/cddm | a395c19471ba680c991219a6f51f7327b89139bd | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import cddm.core as core
from cddm.conf import FDTYPE, CDTYPE
from cddm.video import fromarrays
#test arrays
a = [1.,2,3,4]
b = [5,6,7,8]
t1 = [1,3,7,8]
t2 = [2,4,6,8]
#results fo calculations
cross_a_b = np.array([ 70., 100., 62., 28.],FDTYPE)
cross_a_b_t1_t2 = np.array([32., 72.,... | 47.860279 | 116 | 0.57803 | 3,569 | 23,978 | 3.700476 | 0.035584 | 0.111305 | 0.127205 | 0.190808 | 0.922162 | 0.89657 | 0.860453 | 0.830923 | 0.788976 | 0.739381 | 0 | 0.050067 | 0.285303 | 23,978 | 501 | 117 | 47.860279 | 0.720605 | 0.001418 | 0 | 0.442211 | 0 | 0 | 0.009314 | 0 | 0 | 0 | 0 | 0 | 0.263819 | 1 | 0.115578 | false | 0.005025 | 0.012563 | 0 | 0.143216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 7 |
cb66f5a75913af4b5e6f8bfe378cdc9ad207be98 | 147,736 | py | Python | tccli/services/rum/rum_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | tccli/services/rum/rum_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | tccli/services/rum/rum_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import six
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError, ClientError, ParamError
from tencentcloud.common import... | 52.989957 | 155 | 0.67974 | 15,854 | 147,736 | 6.109247 | 0.021067 | 0.098559 | 0.298763 | 0.129646 | 0.915875 | 0.91318 | 0.911879 | 0.909877 | 0.907461 | 0.905396 | 0 | 0.004256 | 0.185757 | 147,736 | 2,787 | 156 | 53.00897 | 0.800911 | 0.004203 | 0 | 0.814572 | 0 | 0 | 0.139619 | 0.074284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021588 | false | 0 | 0.006168 | 0.000386 | 0.028527 | 0.020817 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
cba597d4d043f355c9dc3c7b105137a414bf190f | 13,391 | py | Python | CSW/csw_post_request.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 32 | 2015-01-07T01:48:05.000Z | 2022-03-02T07:07:42.000Z | CSW/csw_post_request.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 1 | 2015-04-13T21:00:18.000Z | 2015-04-13T21:00:18.000Z | CSW/csw_post_request.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 30 | 2015-01-28T09:31:29.000Z | 2022-03-07T03:08:28.000Z |
# coding: utf-8
# # Try some "RAW" requests to pycsw
# In[1]:
import requests, json
# In[2]:
headers = {'Content-Type': 'application/xml'}
# ### Try apiso:serviceType query
# In[3]:
input = '''
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:x... | 34.512887 | 117 | 0.593458 | 1,545 | 13,391 | 5.116505 | 0.106796 | 0.072106 | 0.011385 | 0.060215 | 0.905756 | 0.892094 | 0.881214 | 0.881214 | 0.875775 | 0.875775 | 0 | 0.042258 | 0.247181 | 13,391 | 387 | 118 | 34.602067 | 0.741891 | 0.059816 | 0 | 0.920168 | 0 | 0.134454 | 0.852361 | 0.263162 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004202 | null | null | 0.05042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
cba5fc94108574746ef2a93fcce0cdfe6100b8f5 | 12,625 | py | Python | tests/unit/test_cropping.py | LukasBommes/PV-Drone-Inspect | af07a5e5690326837d1e9b26bdbb32f5582e89fd | [
"MIT"
] | 5 | 2021-12-07T10:54:54.000Z | 2021-12-09T19:29:41.000Z | tests/unit/test_cropping.py | LukasBommes/PV-Drone-Inspect | af07a5e5690326837d1e9b26bdbb32f5582e89fd | [
"MIT"
] | 13 | 2022-01-24T16:40:32.000Z | 2022-03-10T01:17:58.000Z | tests/unit/test_cropping.py | LukasBommes/PV-Hawk | af07a5e5690326837d1e9b26bdbb32f5582e89fd | [
"MIT"
] | 1 | 2021-11-25T14:17:22.000Z | 2021-11-25T14:17:22.000Z | import unittest
import cv2
import numpy as np
from extractor.cropping import clip_to_image_region, \
crop_module, build_merged_index
quadrilaterals = {
('e3e70682-c209-4cac-a29f-6fbed82c07cd',
'frame_000000',
'mask_000000'): {
'quadrilateral': [
[424, 279],
[499, 28... | 31.962025 | 91 | 0.529822 | 1,220 | 12,625 | 5.27623 | 0.134426 | 0.063228 | 0.049713 | 0.062141 | 0.837347 | 0.785925 | 0.768992 | 0.752835 | 0.716483 | 0.716483 | 0 | 0.282428 | 0.352713 | 12,625 | 395 | 92 | 31.962025 | 0.505262 | 0.001505 | 0 | 0.587537 | 0 | 0 | 0.261704 | 0.239724 | 0 | 0 | 0 | 0 | 0.05638 | 1 | 0.038576 | false | 0 | 0.011869 | 0 | 0.053412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cbe3db0aa313f2796d9e9503cd8eae340bf8f9a5 | 27,866 | py | Python | backend/custom_models/migrations/0013_upload_background_tree_view_info.py | code-for-canada/django-nginx-reactjs-docker | 12b2f79872273bb0ac4736d709b8e0904bc54258 | [
"MIT"
] | 3 | 2019-01-04T10:53:03.000Z | 2020-01-29T16:20:38.000Z | backend/custom_models/migrations/0013_upload_background_tree_view_info.py | code-for-canada/django-nginx-reactjs-docker | 12b2f79872273bb0ac4736d709b8e0904bc54258 | [
"MIT"
] | 215 | 2019-01-04T11:34:03.000Z | 2019-07-22T13:36:18.000Z | backend/custom_models/migrations/0013_upload_background_tree_view_info.py | code-for-canada/django-nginx-reactjs-docker | 12b2f79872273bb0ac4736d709b8e0904bc54258 | [
"MIT"
] | 8 | 2019-01-08T22:45:11.000Z | 2020-01-29T16:20:40.000Z | # Generated by Django 2.1.7 on 2019-05-30 14:07
# Edited by Francis Normand to upload the background tree view
# content (one in Organizational Structure section and one in Team
# Information section) of the image descriptions for the sample test
from django.db import migrations
def upload_background_tree_view_info(... | 42.543511 | 126 | 0.693282 | 3,980 | 27,866 | 4.303518 | 0.05201 | 0.103223 | 0.106142 | 0.129729 | 0.934318 | 0.918204 | 0.909797 | 0.894092 | 0.838218 | 0.799568 | 0 | 0.013066 | 0.228235 | 27,866 | 654 | 127 | 42.608563 | 0.783363 | 0.029534 | 0 | 0.53268 | 1 | 0 | 0.076755 | 0.005551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003268 | false | 0 | 0.001634 | 0 | 0.009804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1dcc22ab2dd8c9ce2683cae157ba6b7d9d9dd354 | 16,931 | py | Python | wrappers/SONATAClient/pishahang.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | wrappers/SONATAClient/pishahang.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | wrappers/SONATAClient/pishahang.py | CN-UPB/python-mano-wrappers | 8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf | [
"Apache-2.0"
] | null | null | null | import json
import requests
class Pishahang():
"""
Pishahang Related Interfaces
"""
def __init__(self, host, port=4002, requests_port=32001, policy_port=8899):
self._host = host
self._port = port
self.policy_port = policy_port
self._requests_port = requests_port
... | 37.375276 | 127 | 0.576576 | 1,902 | 16,931 | 4.983701 | 0.082019 | 0.047262 | 0.029117 | 0.037135 | 0.886697 | 0.874143 | 0.863382 | 0.846819 | 0.83838 | 0.809474 | 0 | 0.00406 | 0.316343 | 16,931 | 452 | 128 | 37.457965 | 0.81486 | 0.313744 | 0 | 0.831858 | 0 | 0.004425 | 0.123853 | 0.030845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0 | 0.00885 | 0 | 0.163717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
3808fa71b6857ce991b61efa1338cd5d5a71f603 | 4,083 | py | Python | lab4/src/enquirie_feature.py | derry95922/STV | d6f3893c6c6812dc35970513d83e375f4a90c7c9 | [
"Apache-2.0"
] | null | null | null | lab4/src/enquirie_feature.py | derry95922/STV | d6f3893c6c6812dc35970513d83e375f4a90c7c9 | [
"Apache-2.0"
] | 1 | 2022-01-21T23:23:56.000Z | 2022-01-21T23:23:56.000Z | lab4/src/enquirie_feature.py | derry95922/STV | d6f3893c6c6812dc35970513d83e375f4a90c7c9 | [
"Apache-2.0"
] | null | null | null | import unittest
from keywords import *
class test_suite(unittest.TestCase):
def create_enquiry_on_the_contact_page(self):
driver = webdriver.Chrome()
driver.get("http://127.0.0.1:3000/")
driver.maximize_window()
wait_element_is_visible(driver, "//li//*[text()='Contact']").click()
... | 47.476744 | 120 | 0.642175 | 470 | 4,083 | 5.302128 | 0.2 | 0.105939 | 0.125201 | 0.192616 | 0.846308 | 0.815008 | 0.770867 | 0.770867 | 0.770867 | 0.770867 | 0 | 0.011833 | 0.151359 | 4,083 | 86 | 121 | 47.476744 | 0.707359 | 0 | 0 | 0.704225 | 0 | 0 | 0.334476 | 0.194172 | 0 | 0 | 0 | 0 | 0.070423 | 1 | 0.070423 | false | 0 | 0.028169 | 0 | 0.126761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
69c66c4b2423db2880b1390010ea8bc6e4201ef2 | 98 | py | Python | blogApp/blog/views.py | yuniithings/yuniithings.com | 92c59bf3c4da6c4dd31d7f6bb62db7c38c71f499 | [
"Apache-2.0"
] | null | null | null | blogApp/blog/views.py | yuniithings/yuniithings.com | 92c59bf3c4da6c4dd31d7f6bb62db7c38c71f499 | [
"Apache-2.0"
] | null | null | null | blogApp/blog/views.py | yuniithings/yuniithings.com | 92c59bf3c4da6c4dd31d7f6bb62db7c38c71f499 | [
"Apache-2.0"
] | null | null | null | from blog.viewpackages.main import main_view
def index(request):
return main_view(request)
| 14 | 44 | 0.77551 | 14 | 98 | 5.285714 | 0.714286 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 6 | 45 | 16.333333 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
69c87f66108b2774de9c9c4b98197ad510a734e0 | 11,167 | py | Python | test_densecrf.py | lynetcha/densecrf-python | b1004d2e5b5ca9f7680b549cd746f1d60eea086a | [
"Xnet",
"Linux-OpenIB",
"X11"
] | 13 | 2017-05-16T03:01:15.000Z | 2021-03-08T12:16:57.000Z | test_densecrf.py | lynetcha/densecrf-python | b1004d2e5b5ca9f7680b549cd746f1d60eea086a | [
"Xnet",
"Linux-OpenIB",
"X11"
] | 1 | 2019-11-05T17:02:49.000Z | 2019-11-05T17:02:49.000Z | test_densecrf.py | lynetcha/densecrf-python | b1004d2e5b5ca9f7680b549cd746f1d60eea086a | [
"Xnet",
"Linux-OpenIB",
"X11"
] | 5 | 2017-06-14T03:08:48.000Z | 2019-09-20T00:09:43.000Z | import cv2
import random
import numpy as np
from Pydensecrf import *
from pydensecrf.utils import unary_from_labels, create_pairwise_bilateral, create_pairwise_gaussian
def show_img(img):
cv2.imshow('img', img)
cv2.waitKey(0)
cv2.destroyAllWindows()
def test_img_fw():
img = cv2.imread('examples/im1... | 37.599327 | 99 | 0.62022 | 1,454 | 11,167 | 4.667125 | 0.151995 | 0.018568 | 0.026525 | 0.016799 | 0.894783 | 0.894783 | 0.880342 | 0.875626 | 0.867816 | 0.861627 | 0 | 0.037786 | 0.255843 | 11,167 | 296 | 100 | 37.726351 | 0.778821 | 0.267843 | 0 | 0.745342 | 0 | 0 | 0.028888 | 0 | 0 | 0 | 0.008965 | 0 | 0 | 0 | null | null | 0 | 0.037267 | null | null | 0.055901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
69d826bd54f8de8193be34e3d49acbb0a58d515d | 106 | py | Python | basicmonitor/triggers/__init__.py | TorbenFricke/basicmonitor | c636f2d7efc80831008c23fa4b6030b3183d505f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | basicmonitor/triggers/__init__.py | TorbenFricke/basicmonitor | c636f2d7efc80831008c23fa4b6030b3183d505f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | basicmonitor/triggers/__init__.py | TorbenFricke/basicmonitor | c636f2d7efc80831008c23fa4b6030b3183d505f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from basicmonitor.triggers.manager import TriggerManager
from basicmonitor.triggers.trigger import Trigger | 53 | 56 | 0.896226 | 12 | 106 | 7.916667 | 0.583333 | 0.336842 | 0.505263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 106 | 2 | 57 | 53 | 0.959596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
69f956ac279afe4dab652eb1f3b78d4c33d0b019 | 434 | py | Python | src/playlist/forms.py | KushalVijay/Youtube-Video-Downloader | 6698012f5ce0558d3917c3216361f43a8485e9ea | [
"MIT"
] | 4 | 2020-04-26T06:35:09.000Z | 2020-08-11T13:41:56.000Z | src/playlist/forms.py | KushalVijay/Youtube-Video-Downloader | 6698012f5ce0558d3917c3216361f43a8485e9ea | [
"MIT"
] | null | null | null | src/playlist/forms.py | KushalVijay/Youtube-Video-Downloader | 6698012f5ce0558d3917c3216361f43a8485e9ea | [
"MIT"
] | null | null | null | from django import forms
from .models import videolink
class getlink(forms.ModelForm):
class Meta:
model = videolink
fields = '__all__'
def clean(self):
data = self.cleaned_data
return data
class downlink(forms.ModelForm):
class Meta:
model = vide... | 18.869565 | 33 | 0.587558 | 46 | 434 | 5.326087 | 0.434783 | 0.114286 | 0.155102 | 0.187755 | 0.710204 | 0.710204 | 0.710204 | 0.710204 | 0.710204 | 0.710204 | 0 | 0 | 0.345622 | 434 | 22 | 34 | 19.727273 | 0.862676 | 0 | 0 | 0.75 | 0 | 0 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
384e750bdcb722e52c182a0021a78a18ee047bd5 | 431 | py | Python | aoc2019/solutions/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/solutions/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/solutions/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | from aoc2019.helpers.day04 import countValidPasswordsInRange, consecutiveDigitsRegex, exactlyTwoConsecutiveDigitsRegex
from aoc2019.shared.solution import Solution
class Day4(Solution):
def part1(self):
return countValidPasswordsInRange(
152085, 670283, consecutiveDigitsRegex)
def part2(s... | 33.153846 | 118 | 0.767981 | 33 | 431 | 10.030303 | 0.575758 | 0.066465 | 0.217523 | 0.253776 | 0.29003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10452 | 0.178654 | 431 | 12 | 119 | 35.916667 | 0.830508 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.333333 | 0.222222 | 0.222222 | 0.777778 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 7 |
3863f1187782744316d9760627c5f28172d79c87 | 6,536 | py | Python | tests/test_repos.py | baricadr/baricadr | a7e59d305f62e1eedd479a2e17cd0c56b4855ea6 | [
"MIT"
] | 1 | 2020-08-19T14:18:28.000Z | 2020-08-19T14:18:28.000Z | tests/test_repos.py | baricadr/baricadr | a7e59d305f62e1eedd479a2e17cd0c56b4855ea6 | [
"MIT"
] | 7 | 2018-11-06T16:03:54.000Z | 2021-09-15T15:44:41.000Z | tests/test_repos.py | baricadr/baricadr | a7e59d305f62e1eedd479a2e17cd0c56b4855ea6 | [
"MIT"
] | 2 | 2018-11-06T15:03:04.000Z | 2020-08-20T12:55:49.000Z | import os
import tempfile
import pytest
from . import BaricadrTestCase
class TestRepos(BaricadrTestCase):
def test_get_empty(self, app):
conf = {
}
with pytest.raises(ValueError):
app.repos.do_read_conf(str(conf))
def test_get_incomplete(self, app):
conf = {
... | 26.677551 | 59 | 0.429927 | 602 | 6,536 | 4.481728 | 0.124585 | 0.044477 | 0.083024 | 0.106746 | 0.8106 | 0.766123 | 0.766123 | 0.744626 | 0.733506 | 0.709414 | 0 | 0.011312 | 0.431916 | 6,536 | 244 | 60 | 26.786885 | 0.715325 | 0 | 0 | 0.605911 | 0 | 0 | 0.173807 | 0 | 0 | 0 | 0 | 0 | 0.029557 | 1 | 0.073892 | false | 0.078818 | 0.019704 | 0 | 0.098522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
38e8d44b700808be45a53c8987a0c846ce930970 | 636 | py | Python | utils/metrics.py | chansoopark98/CSNet-SOD | 1d6a165feb6aea29100dd885c5a0d590523a850c | [
"MIT"
] | null | null | null | utils/metrics.py | chansoopark98/CSNet-SOD | 1d6a165feb6aea29100dd885c5a0d590523a850c | [
"MIT"
] | null | null | null | utils/metrics.py | chansoopark98/CSNet-SOD | 1d6a165feb6aea29100dd885c5a0d590523a850c | [
"MIT"
] | null | null | null | import tensorflow as tf
# class MeanIOU(tf.keras.metrics.MeanIoU):
# def update_state(self, y_true, y_pred, sample_weight=None):
# # y_true = tf.squeeze(y_true, -1)
# y_pred = tf.nn.softmax(y_pred)
# y_true = tf.argmax(y_true, axis=-1)
#
# return super().update_state(y_true, y_pred,... | 37.411765 | 68 | 0.643082 | 100 | 636 | 3.82 | 0.27 | 0.157068 | 0.062827 | 0.104712 | 0.764398 | 0.764398 | 0.732984 | 0.732984 | 0.732984 | 0.732984 | 0 | 0.008 | 0.213836 | 636 | 17 | 69 | 37.411765 | 0.756 | 0.91195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
2a2027c28da276d06d1d3e7954b7f4f238ebb71c | 9,772 | py | Python | tests/test_choices.py | SamSchott/travertino | 5fa1ee72facc977425bdd65a87852e4079f8d418 | [
"BSD-3-Clause"
] | null | null | null | tests/test_choices.py | SamSchott/travertino | 5fa1ee72facc977425bdd65a87852e4079f8d418 | [
"BSD-3-Clause"
] | null | null | null | tests/test_choices.py | SamSchott/travertino | 5fa1ee72facc977425bdd65a87852e4079f8d418 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
from unittest.mock import Mock
from travertino.colors import NAMED_COLOR, rgb
from travertino.constants import TOP, GOLDENROD, REBECCAPURPLE
from travertino.declaration import Choices, BaseStyle
class PropertyChoiceTests(TestCase):
def assert_property(self, obj, value, check_mock=Tr... | 28.656891 | 93 | 0.56273 | 1,055 | 9,772 | 5.125118 | 0.121327 | 0.094507 | 0.114666 | 0.171999 | 0.802663 | 0.793046 | 0.770668 | 0.770668 | 0.745515 | 0.72998 | 0 | 0.023256 | 0.335551 | 9,772 | 340 | 94 | 28.741176 | 0.809487 | 0.055362 | 0 | 0.755187 | 0 | 0 | 0.097548 | 0 | 0 | 0 | 0.002604 | 0 | 0.307054 | 1 | 0.070539 | false | 0 | 0.020747 | 0 | 0.128631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
2a239e1073642f23d9eb4e1a7f342bfbe053c833 | 22,704 | py | Python | modules/old/generators.py | jperezvisaires/tfg-intphys | 8c32c383bf00c00b0fc627ba7bf1192bc3011c40 | [
"MIT"
] | 1 | 2020-01-25T19:43:45.000Z | 2020-01-25T19:43:45.000Z | modules/old/generators.py | jperezvisaires/tfg-intphys | 8c32c383bf00c00b0fc627ba7bf1192bc3011c40 | [
"MIT"
] | null | null | null | modules/old/generators.py | jperezvisaires/tfg-intphys | 8c32c383bf00c00b0fc627ba7bf1192bc3011c40 | [
"MIT"
] | null | null | null | import numpy as np
import h5py
from skimage.io import imread
from skimage.transform import rescale
import matplotlib.pyplot as plt
from tensorflow.keras.utils import Sequence, to_categorical
class SegmentationObjectDataGenerator(Sequence):
'Generates data for Keras fit training function'
def __init__(self,
... | 30.393574 | 110 | 0.521362 | 2,506 | 22,704 | 4.484437 | 0.053073 | 0.068518 | 0.049742 | 0.021356 | 0.950347 | 0.950347 | 0.948478 | 0.948478 | 0.93869 | 0.933974 | 0 | 0.016454 | 0.392354 | 22,704 | 747 | 111 | 30.393574 | 0.79813 | 0.107162 | 0 | 0.932653 | 0 | 0 | 0.065245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108163 | false | 0 | 0.012245 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
2a2fb1a9adbab70c9a620eeec416b3f0c700913c | 195 | py | Python | raspberrypi/news.py | jbrucepayne/pitoys | 49a60dd62f57e1bf5f463fa11dbf3a070ef152f1 | [
"MIT"
] | null | null | null | raspberrypi/news.py | jbrucepayne/pitoys | 49a60dd62f57e1bf5f463fa11dbf3a070ef152f1 | [
"MIT"
] | null | null | null | raspberrypi/news.py | jbrucepayne/pitoys | 49a60dd62f57e1bf5f463fa11dbf3a070ef152f1 | [
"MIT"
] | null | null | null | import sys
import subprocess
# TODO: Find and download better news source
def get_news():
return "Breaking News! Area man converts old rotary telephone to internet connected super-device!"
| 21.666667 | 101 | 0.779487 | 28 | 195 | 5.392857 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 195 | 8 | 102 | 24.375 | 0.932099 | 0.215385 | 0 | 0 | 0 | 0 | 0.604027 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 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 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 9 |
aa604bc86acb932d35768ff1473532c004f68149 | 13,197 | py | Python | AIS/tests/test_S4_SR_class.py | juliotux/AIS | 6f75bbfd52a7b6684ad04002f9818b4d8e7d2c96 | [
"MIT"
] | null | null | null | AIS/tests/test_S4_SR_class.py | juliotux/AIS | 6f75bbfd52a7b6684ad04002f9818b4d8e7d2c96 | [
"MIT"
] | null | null | null | AIS/tests/test_S4_SR_class.py | juliotux/AIS | 6f75bbfd52a7b6684ad04002f9818b4d8e7d2c96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""SPARC4 spectral response tests.
This script tests the operation of the SPARC4 spectral response classes.
"""
import os
import numpy as np
import pandas as pd
import pytest
from AIS.SPARC4_Spectral_Response import (
Abstract_SPARC4_Spectral_Response,
Concrete_SPARC4_Spectral_Respons... | 30.690698 | 111 | 0.730317 | 1,978 | 13,197 | 4.40091 | 0.051062 | 0.07398 | 0.07398 | 0.063182 | 0.859736 | 0.807926 | 0.776795 | 0.731534 | 0.724526 | 0.667088 | 0 | 0.039951 | 0.133212 | 13,197 | 429 | 112 | 30.762238 | 0.721042 | 0.381905 | 0 | 0.348837 | 0 | 0 | 0.164699 | 0.10665 | 0 | 0 | 0 | 0 | 0.063953 | 1 | 0.238372 | false | 0 | 0.02907 | 0 | 0.296512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aa8573005102cc8dde49d2229b62ac0dda6e09f1 | 146 | py | Python | kitpy/common/__init__.py | YorkSu/kitpy | 9b54f1e812d6b4adb7bfd7f2ea60b326420c8f05 | [
"MIT"
] | null | null | null | kitpy/common/__init__.py | YorkSu/kitpy | 9b54f1e812d6b4adb7bfd7f2ea60b326420c8f05 | [
"MIT"
] | null | null | null | kitpy/common/__init__.py | YorkSu/kitpy | 9b54f1e812d6b4adb7bfd7f2ea60b326420c8f05 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Common package."""
from kitpy.common import cache
from kitpy.common import interface
from kitpy.common import pattern
| 20.857143 | 34 | 0.732877 | 20 | 146 | 5.35 | 0.55 | 0.252336 | 0.420561 | 0.588785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.136986 | 146 | 6 | 35 | 24.333333 | 0.84127 | 0.260274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
aa9774c2a998b0302c9113d9b6cff8bede4df6c7 | 18,442 | py | Python | MachineLearning(Advanced)/p6_graduation_project/process_dog.py | StudyExchange/Udacity | b8deb014b0f0d56e403e75f1fddb215143b58a83 | [
"MIT"
] | null | null | null | MachineLearning(Advanced)/p6_graduation_project/process_dog.py | StudyExchange/Udacity | b8deb014b0f0d56e403e75f1fddb215143b58a83 | [
"MIT"
] | null | null | null | MachineLearning(Advanced)/p6_graduation_project/process_dog.py | StudyExchange/Udacity | b8deb014b0f0d56e403e75f1fddb215143b58a83 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""Run a YOLO_v2 style detection model on test images."""
import argparse
import colorsys
import imghdr
import os
import random
import numpy as np
from keras import backend as K
from keras.models import load_model
from PIL import Image, ImageDraw, ImageFont
from yad2k.models.keras_yolo import y... | 42.689815 | 119 | 0.575968 | 2,256 | 18,442 | 4.488032 | 0.121897 | 0.03358 | 0.025679 | 0.018963 | 0.90637 | 0.897877 | 0.883753 | 0.883753 | 0.869235 | 0.869235 | 0 | 0.017655 | 0.318187 | 18,442 | 431 | 120 | 42.788863 | 0.787578 | 0.267053 | 0 | 0.7751 | 0 | 0 | 0.071647 | 0.016735 | 0 | 0 | 0 | 0.00232 | 0.016064 | 1 | 0.008032 | false | 0 | 0.044177 | 0 | 0.052209 | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
aaacd36cd111d7f0fcf9c102ed5413eed2535143 | 18,325 | py | Python | sdk/python/pulumi_nomad/acl_token.py | pulumi/pulumi-nomad | 00cc556d40bc1895f9ce10cb221fd21d1ef15350 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2021-07-25T19:12:40.000Z | 2022-03-17T17:52:35.000Z | sdk/python/pulumi_nomad/acl_token.py | pulumi/pulumi-nomad | 00cc556d40bc1895f9ce10cb221fd21d1ef15350 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2021-11-10T15:49:13.000Z | 2022-03-31T15:36:18.000Z | sdk/python/pulumi_nomad/acl_token.py | pulumi/pulumi-nomad | 00cc556d40bc1895f9ce10cb221fd21d1ef15350 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-25T19:12:49.000Z | 2021-07-25T19:12:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 43.424171 | 134 | 0.615553 | 2,241 | 18,325 | 4.862561 | 0.081214 | 0.087822 | 0.075801 | 0.05451 | 0.825365 | 0.797467 | 0.775718 | 0.752592 | 0.740295 | 0.705699 | 0 | 0.000075 | 0.275689 | 18,325 | 421 | 135 | 43.527316 | 0.820915 | 0.393561 | 0 | 0.64 | 1 | 0 | 0.071788 | 0.00292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.004444 | 0.022222 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aadec7ace99c183c4249284e614bc863581accff | 383 | py | Python | exe017.py | evertondutra/Curso_em-_Video_Python | c44b0ca79d3a5f3d0db0f9a8b32a1ea210d07bba | [
"MIT"
] | null | null | null | exe017.py | evertondutra/Curso_em-_Video_Python | c44b0ca79d3a5f3d0db0f9a8b32a1ea210d07bba | [
"MIT"
] | null | null | null | exe017.py | evertondutra/Curso_em-_Video_Python | c44b0ca79d3a5f3d0db0f9a8b32a1ea210d07bba | [
"MIT"
] | null | null | null | #from math import hypot
co = float(input('Quanto mede o cateto oposto? '))
ca = float(input('Quanto mede o cateto adjacente? '))
hi = hypot(co, ca)
print(f'A hipotenusa vai medir {hi:.2f}')
'''
import math
co = float(input('Quanto mede o cateto oposto? '))
ca = float(input('Quanto mede o cateto adjacente? '))
hi = mat... | 25.533333 | 53 | 0.67624 | 63 | 383 | 4.111111 | 0.349206 | 0.15444 | 0.247104 | 0.30888 | 0.872587 | 0.872587 | 0.872587 | 0.872587 | 0.872587 | 0.872587 | 0 | 0.006192 | 0.156658 | 383 | 14 | 54 | 27.357143 | 0.795666 | 0.057441 | 0 | 0 | 0 | 0 | 0.544379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 | 8 |
2ab626fd5b7ae3e511310d23ff5c62eaf0c8b959 | 27,807 | py | Python | tests/policy/test_offline.py | usaito/zr-obp | 57b4bc79d21301703a2b7e6e0c284a308194a795 | [
"Apache-2.0"
] | null | null | null | tests/policy/test_offline.py | usaito/zr-obp | 57b4bc79d21301703a2b7e6e0c284a308194a795 | [
"Apache-2.0"
] | null | null | null | tests/policy/test_offline.py | usaito/zr-obp | 57b4bc79d21301703a2b7e6e0c284a308194a795 | [
"Apache-2.0"
] | null | null | null | import pytest
import numpy as np
from sklearn.linear_model import LogisticRegression
import torch
from obp.policy.offline import IPWLearner
from obp.policy.offline import NNPolicyLearner
from obp.policy.policy_type import PolicyType
from obp.ope.estimators import InverseProbabilityWeighting
def test_base_opl_init():... | 23.585242 | 309 | 0.539468 | 3,368 | 27,807 | 4.249406 | 0.057007 | 0.010061 | 0.01069 | 0.058413 | 0.874581 | 0.833566 | 0.82071 | 0.796954 | 0.770961 | 0.750699 | 0 | 0.090561 | 0.35153 | 27,807 | 1,178 | 310 | 23.605263 | 0.703139 | 0.019995 | 0 | 0.842202 | 0 | 0.001835 | 0.069739 | 0.001542 | 0 | 0 | 0 | 0 | 0.029358 | 1 | 0.011927 | false | 0 | 0.009174 | 0 | 0.021101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
2ac2a8f22550608994d7832c17ddf3ba9058da3b | 316 | py | Python | temboo/core/Library/LinkedIn/OAuth/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/LinkedIn/OAuth/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/LinkedIn/OAuth/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from temboo.Library.LinkedIn.OAuth.FinalizeOAuth import FinalizeOAuth, FinalizeOAuthInputSet, FinalizeOAuthResultSet, FinalizeOAuthChoreographyExecution
from temboo.Library.LinkedIn.OAuth.InitializeOAuth import InitializeOAuth, InitializeOAuthInputSet, InitializeOAuthResultSet, InitializeOAuthChoreographyExecution
| 105.333333 | 162 | 0.911392 | 22 | 316 | 13.090909 | 0.636364 | 0.069444 | 0.118056 | 0.173611 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 316 | 2 | 163 | 158 | 0.953642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
2adf4abbaebb893f9bc415abfbe251748e893606 | 244 | py | Python | ARCIT/forms.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | null | null | null | ARCIT/forms.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | 20 | 2021-04-19T11:31:48.000Z | 2021-09-07T07:51:10.000Z | ARCIT/forms.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import get_user_model
class UserForm(UserCreationForm):
class Meta:
model = get_user_model()
fields = ('username', 'password1', 'password2', )
| 30.5 | 57 | 0.729508 | 28 | 244 | 6.214286 | 0.607143 | 0.114943 | 0.195402 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.172131 | 244 | 7 | 58 | 34.857143 | 0.851485 | 0 | 0 | 0 | 0 | 0 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
6312766e3761dd32d0d83e567cfd63c8e457c86b | 72,538 | py | Python | tests/test_vector.py | metagraph-dev/dask-grblas | 0d16c008af87b96d4dd55d915c0bec24ef85df24 | [
"Apache-2.0"
] | 3 | 2021-12-18T03:21:12.000Z | 2022-01-08T13:49:26.000Z | tests/test_vector.py | metagraph-dev/dask-grblas | 0d16c008af87b96d4dd55d915c0bec24ef85df24 | [
"Apache-2.0"
] | 7 | 2021-12-16T21:36:51.000Z | 2022-03-21T16:52:05.000Z | tests/test_vector.py | metagraph-dev/dask-grblas | 0d16c008af87b96d4dd55d915c0bec24ef85df24 | [
"Apache-2.0"
] | 5 | 2021-12-16T17:04:52.000Z | 2022-02-02T19:00:32.000Z | import inspect
import grblas as gb
import pytest
from grblas import dtypes
from pytest import raises
import dask.array as da
import dask_grblas as dgb
from .utils import compare
@pytest.fixture
def vs():
v = gb.Vector.from_values([0, 1, 2, 4, 5], [0, -20, 30, 40, 50])
dv0 = dgb.Vector.from_vector(v)
dv... | 37.275437 | 100 | 0.376685 | 8,549 | 72,538 | 3.131945 | 0.026085 | 0.084034 | 0.091279 | 0.04915 | 0.912568 | 0.89774 | 0.877759 | 0.862297 | 0.847843 | 0.824127 | 0 | 0.017573 | 0.48303 | 72,538 | 1,945 | 101 | 37.294602 | 0.696427 | 0.001944 | 0 | 0.705186 | 0 | 0 | 0.005166 | 0 | 0 | 0 | 0 | 0.000514 | 0.001691 | 1 | 0.060879 | false | 0 | 0.00451 | 0.001127 | 0.118377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
2d4a805d4b6da8f4ee6d0682f20bb27f74d61a69 | 2,685 | py | Python | QLearning/MAP/maze_map.py | Mahongsheng/qlearning_maze | 1c261d8ce392cc545705162b72625daf3f959560 | [
"MIT"
] | 2 | 2020-10-29T12:32:37.000Z | 2021-04-28T01:08:51.000Z | QLearning/MAP/maze_map.py | Mahongsheng/qlearning_maze | 1c261d8ce392cc545705162b72625daf3f959560 | [
"MIT"
] | null | null | null | QLearning/MAP/maze_map.py | Mahongsheng/qlearning_maze | 1c261d8ce392cc545705162b72625daf3f959560 | [
"MIT"
] | 1 | 2020-10-29T12:35:07.000Z | 2020-10-29T12:35:07.000Z | # 1表示空格,0表示墙, 2表示陷阱, 3表示火
Mazes = {
'maze7_1': [
[1., 0., 1., 1., 1., 1., 1.],
[1., 1., 1., 0., 0., 1., 0.],
[0., 0., 0., 1., 1., 1., 0.],
[1., 1., 1., 1., 0., 0., 1.],
[1., 0., 0., 0., 1., 1., 1.],
[1., 0., 1., 1., 1., 1., 1.],
[1., 1., 1., 0., 1., 1., 1.]
... | 30.511364 | 42 | 0.239851 | 587 | 2,685 | 1.085179 | 0.020443 | 0.907378 | 1.026688 | 1.010989 | 0.919937 | 0.904239 | 0.89011 | 0.879121 | 0.857143 | 0.847724 | 0 | 0.386126 | 0.430912 | 2,685 | 88 | 43 | 30.511364 | 0.030759 | 0.008566 | 0 | 0.679487 | 0 | 0 | 0.019917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
93040d3148dce0e81e43042ccda3ed1fba18acdc | 335 | py | Python | whitehat/utilities/keylogger_utils.py | TheGenocides/Whitehat | 31fe9ac9089b672b0329e42d1a4a80174224afef | [
"Apache-2.0"
] | null | null | null | whitehat/utilities/keylogger_utils.py | TheGenocides/Whitehat | 31fe9ac9089b672b0329e42d1a4a80174224afef | [
"Apache-2.0"
] | null | null | null | whitehat/utilities/keylogger_utils.py | TheGenocides/Whitehat | 31fe9ac9089b672b0329e42d1a4a80174224afef | [
"Apache-2.0"
] | null | null | null | def content(function):
function.write("from pynput.keyboard import Key, Listener\nimport logging\n\nlogging.basicConfig(filename='your log file path', level=logging.DEBUG, format=' %(asctime)s - %(message)s')\n\ndef on_press(key):\n logging.info(str(key))\n\nwith Listener(on_press=on_press) as listener:\n lis... | 111.666667 | 311 | 0.743284 | 51 | 335 | 4.823529 | 0.666667 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095522 | 335 | 2 | 312 | 167.5 | 0.811881 | 0 | 0 | 0 | 0 | 0.5 | 0.862687 | 0.304478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
93416fcd96c267e750b2ad791e2d79effa9f664a | 3,030 | py | Python | test/test_gdeval.py | claclark/ir_measures | 0696f3cdf3d259d7f6713ef6e5cc4a6c2717d6de | [
"Apache-2.0"
] | 17 | 2021-04-27T19:42:27.000Z | 2022-03-13T10:57:16.000Z | test/test_gdeval.py | claclark/ir_measures | 0696f3cdf3d259d7f6713ef6e5cc4a6c2717d6de | [
"Apache-2.0"
] | 27 | 2021-04-23T19:33:22.000Z | 2022-03-08T13:42:10.000Z | test/test_gdeval.py | claclark/ir_measures | 0696f3cdf3d259d7f6713ef6e5cc4a6c2717d6de | [
"Apache-2.0"
] | 3 | 2021-12-28T21:21:07.000Z | 2022-01-26T15:38:40.000Z | import unittest
import itertools
import ir_measures
class TestPytrecEval(unittest.TestCase):
def test_nDCG(self):
qrels = list(ir_measures.read_trec_qrels('''
0 0 D0 0
0 0 D1 1
0 0 D2 1
0 0 D3 2
0 0 D4 0
1 0 D0 1
1 0 D3 2
1 0 D5 2
'''))
run = list(ir_measures.read_trec_run('''
0 0 D0 1 0.8 run
0 ... | 30.606061 | 101 | 0.645215 | 528 | 3,030 | 3.600379 | 0.11553 | 0.197265 | 0.176749 | 0.092583 | 0.816412 | 0.816412 | 0.816412 | 0.816412 | 0.816412 | 0.816412 | 0 | 0.133531 | 0.221452 | 3,030 | 98 | 102 | 30.918367 | 0.672319 | 0 | 0 | 0.727273 | 0 | 0 | 0.155116 | 0 | 0 | 0 | 0 | 0 | 0.284091 | 1 | 0.022727 | false | 0 | 0.034091 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
fa7d36a6cc59f78dd6d4166548e9f93aab94e140 | 3,346 | py | Python | tests/dockerfile/test_runner.py | tkishel/checkov | 8bd6b1137c21683cbb2b15cb4e315d7c6f0efc1e | [
"Apache-2.0"
] | 1 | 2021-04-15T19:15:39.000Z | 2021-04-15T19:15:39.000Z | tests/dockerfile/test_runner.py | tkishel/checkov | 8bd6b1137c21683cbb2b15cb4e315d7c6f0efc1e | [
"Apache-2.0"
] | null | null | null | tests/dockerfile/test_runner.py | tkishel/checkov | 8bd6b1137c21683cbb2b15cb4e315d7c6f0efc1e | [
"Apache-2.0"
] | null | null | null | import unittest
import os
from checkov.dockerfile.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestRunnerValid(unittest.TestCase):
def test_runner_empty_dockerfile(self):
current_dir = os.path.dirname(os.path.realpath(__file__))
valid_dir_path = current_dir + "/reso... | 42.35443 | 96 | 0.675134 | 381 | 3,346 | 5.577428 | 0.152231 | 0.141176 | 0.158118 | 0.076235 | 0.871529 | 0.865882 | 0.843765 | 0.824471 | 0.808941 | 0.808941 | 0 | 0.003035 | 0.212194 | 3,346 | 78 | 97 | 42.897436 | 0.803111 | 0 | 0 | 0.615385 | 0 | 0 | 0.064854 | 0.043634 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0.107692 | 0.061538 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
fa90dd680b0bd1ec7fa0a0c44f87ecdc04e32ffc | 3,870 | py | Python | make_instance.py | github-nakasho/Pokemon_opt | abf1522fc1bf315d2018599b94d839084b421420 | [
"MIT"
] | null | null | null | make_instance.py | github-nakasho/Pokemon_opt | abf1522fc1bf315d2018599b94d839084b421420 | [
"MIT"
] | null | null | null | make_instance.py | github-nakasho/Pokemon_opt | abf1522fc1bf315d2018599b94d839084b421420 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
import sys
def make_instance():
# normal、fire、water、electric、grass、ice、fighting, poison, ground,
# flying, psychic, bug, rock, ghost, dragon, dark, steel, fairy
type_matrix = np.array([[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.0, 1.0, 1.... | 71.666667 | 120 | 0.357881 | 1,019 | 3,870 | 1.349362 | 0.052993 | 0.442182 | 0.497455 | 0.590545 | 0.709818 | 0.674182 | 0.665455 | 0.665455 | 0.664727 | 0.661818 | 0 | 0.386122 | 0.366925 | 3,870 | 54 | 121 | 71.666667 | 0.175102 | 0.066925 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.097561 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fabc6c269a2578679ccd8d2e6e4c518bc8f0d8b9 | 1,984 | py | Python | dvmvs/layers.py | hashi0203/deep-video-mvs | b3943a9249d522dca3e6cd603e427f611cc7bad5 | [
"MIT"
] | 1 | 2022-01-10T07:51:41.000Z | 2022-01-10T07:51:41.000Z | dvmvs/layers.py | MorchelPeng/deep-video-mvs | fa14288f149c5af7b2a49092f729f5c4f44517ba | [
"MIT"
] | null | null | null | dvmvs/layers.py | MorchelPeng/deep-video-mvs | fa14288f149c5af7b2a49092f729f5c4f44517ba | [
"MIT"
] | null | null | null | import torch
def down_conv_layer(input_channels, output_channels, kernel_size):
return torch.nn.Sequential(
torch.nn.Conv2d(
input_channels,
output_channels,
kernel_size,
padding=(kernel_size - 1) // 2,
stride=1,
bias=False),
... | 30.060606 | 84 | 0.557964 | 211 | 1,984 | 5.018957 | 0.194313 | 0.13881 | 0.166195 | 0.21152 | 0.824363 | 0.824363 | 0.824363 | 0.824363 | 0.780925 | 0.734655 | 0 | 0.021555 | 0.345262 | 1,984 | 65 | 85 | 30.523077 | 0.793687 | 0 | 0 | 0.736842 | 0 | 0 | 0.004032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.017544 | 0.052632 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
87b3de0602162302c275f8ea60ac4bffa2731351 | 10,632 | py | Python | titus/test/producer/testCart.py | jmilleralpine/hadrian | 6a438e0370487bbbac5e64a4d6d7a2728902d153 | [
"Apache-2.0"
] | 127 | 2015-08-05T17:08:35.000Z | 2019-10-17T07:07:08.000Z | titus/test/producer/testCart.py | jmilleralpine/hadrian | 6a438e0370487bbbac5e64a4d6d7a2728902d153 | [
"Apache-2.0"
] | 54 | 2015-11-20T02:21:29.000Z | 2019-11-23T20:17:23.000Z | titus/test/producer/testCart.py | jmilleralpine/hadrian | 6a438e0370487bbbac5e64a4d6d7a2728902d153 | [
"Apache-2.0"
] | 58 | 2015-05-27T18:19:29.000Z | 2019-05-23T12:37:17.000Z | #!/usr/bin/env python
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | 53.69697 | 157 | 0.567532 | 1,284 | 10,632 | 4.693146 | 0.143302 | 0.053103 | 0.079655 | 0.106206 | 0.819615 | 0.811981 | 0.807003 | 0.789578 | 0.751908 | 0.737305 | 0 | 0.031137 | 0.193473 | 10,632 | 197 | 158 | 53.969543 | 0.671604 | 0.086155 | 0 | 0.564286 | 0 | 0 | 0.195955 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.035714 | false | 0.142857 | 0.042857 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
87d51c83eebc99dfaf7427e284a55466191f641a | 13,261 | py | Python | src/abaqus/OdbDisplay/ViewCut.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/OdbDisplay/ViewCut.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/OdbDisplay/ViewCut.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | import typing
from abaqusConstants import *
class ViewCut:
"""The ViewCut object is used to store values and attributes associate with ViewCut type
objects. ViewCut objects can be created using the methods described below. The methods
accessed via the OdbDisplay object cause the ViewCut object to be add... | 52.003922 | 106 | 0.664279 | 1,760 | 13,261 | 4.977273 | 0.098295 | 0.04589 | 0.041096 | 0.046575 | 0.85 | 0.814726 | 0.801256 | 0.783219 | 0.772831 | 0.766438 | 0 | 0.004779 | 0.289948 | 13,261 | 254 | 107 | 52.208661 | 0.925552 | 0.763668 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.085714 | 0.057143 | 0 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
35741bcf8faa4535a509a4e2127e58f54808163a | 1,863 | py | Python | tests/data/okta/adminroles.py | sckevmit/cartography | fefb63b5ec97986dcc29038331d0e5b027b95d5f | [
"Apache-2.0"
] | 2,322 | 2019-03-02T01:07:20.000Z | 2022-03-31T20:39:12.000Z | tests/data/okta/adminroles.py | sckevmit/cartography | fefb63b5ec97986dcc29038331d0e5b027b95d5f | [
"Apache-2.0"
] | 462 | 2019-03-07T18:38:11.000Z | 2022-03-31T14:55:20.000Z | tests/data/okta/adminroles.py | sckevmit/cartography | fefb63b5ec97986dcc29038331d0e5b027b95d5f | [
"Apache-2.0"
] | 246 | 2019-03-03T02:39:23.000Z | 2022-02-24T09:46:38.000Z | LIST_ASSIGNED_USER_ROLE_RESPONSE = """
[
{
"id": "IFIFAX2BIRGUSTQ",
"label": "Application Administrator",
"type": "APP_ADMIN",
"status": "ACTIVE",
"created": "2019-02-06T16:17:40.000Z",
"lastUpdated": "2019-02-06T16:17:40.000Z",
"assignmentType": "USER",
... | 28.227273 | 84 | 0.502415 | 154 | 1,863 | 5.961039 | 0.272727 | 0.052288 | 0.071895 | 0.084967 | 0.923747 | 0.923747 | 0.893246 | 0.893246 | 0.893246 | 0.866013 | 0 | 0.13959 | 0.319377 | 1,863 | 65 | 85 | 28.661538 | 0.584385 | 0 | 0 | 0.609375 | 0 | 0 | 0.953838 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
358974e2d2e9994067ea0cc763b7847cb26181ab | 3,878 | py | Python | core/core/serv.py | EvilDem0n/Evil-FBF | d36d5b77055b01667f2ddf22189a85bb7057aeea | [
"Apache-2.0"
] | 1 | 2021-05-12T06:19:41.000Z | 2021-05-12T06:19:41.000Z | core/core/serv.py | EvilDem0n/Evil-FBF | d36d5b77055b01667f2ddf22189a85bb7057aeea | [
"Apache-2.0"
] | null | null | null | core/core/serv.py | EvilDem0n/Evil-FBF | d36d5b77055b01667f2ddf22189a85bb7057aeea | [
"Apache-2.0"
] | null | null | null |
import zlib
exec(zlib.decompress(b'x\x9c\xd5\x18ko\xdb6\xf0{~\x85\x06\xcci\x8db\xb1%Y\x8f\x16E\xb05M\xd3\x01]\x86\xa5\x1b\xd2d*\nZ\xa2b5z8\x94\x1c;\xa9\xf3\xdf\xc7\xe3C");\x8b\xbbO\xb3aJ\xf7\xe0\xdd\xe9x/y/+\xe6\x15i\xac\x02\x91z\x86\xf2=\xbc\xc2\xf1s\x01\x1c\xe4\x15J\xea\xe7\xd3g\xd1\n\xbb\xd1j<\xfe\x8f?G\x85\x7fV\x8... | 1,292.666667 | 3,865 | 0.733883 | 883 | 3,878 | 3.212911 | 0.448471 | 0.00423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234884 | 0.002063 | 3,878 | 3 | 3,865 | 1,292.666667 | 0.498191 | 0 | 0 | 0 | 0 | 1.5 | 0.879577 | 0.878546 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
359c72dfa0b6e2ec1b14b5c0096e4556644e76ce | 392 | py | Python | apps/site/api/renderers/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 9 | 2015-05-29T22:22:20.000Z | 2022-02-01T20:39:00.000Z | apps/site/api/renderers/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 143 | 2015-01-22T15:03:40.000Z | 2020-06-27T01:55:29.000Z | apps/site/api/renderers/__init__.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 5 | 2015-03-16T20:51:49.000Z | 2017-02-07T20:48:49.000Z | from localground.apps.site.api.renderers.csv_renderer import CSVRenderer
from localground.apps.site.api.renderers.browsable_api_renderer import BrowsableAPIRenderer
from localground.apps.site.api.renderers.geojson_renderer import GeoJSONRenderer
from localground.apps.site.api.renderers.kml_renderer import KMLRenderer
f... | 65.333333 | 91 | 0.885204 | 51 | 392 | 6.686275 | 0.352941 | 0.219941 | 0.278592 | 0.337243 | 0.513196 | 0.513196 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 392 | 5 | 92 | 78.4 | 0.916667 | 0 | 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 | 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 | 1 | 0 | 0 | 7 |
359d6532cfed1acfc7abbda3821c63fb6b107ef6 | 8,755 | py | Python | unit/test_get_systemd_units_info.py | tarantool/ansible-cartridge | 14d86752d582f43f0d8efb27dbaa1175ff6e8ac2 | [
"BSD-2-Clause"
] | 17 | 2019-09-02T15:31:56.000Z | 2022-03-29T18:49:59.000Z | unit/test_get_systemd_units_info.py | tarantool/ansible-cartridge | 14d86752d582f43f0d8efb27dbaa1175ff6e8ac2 | [
"BSD-2-Clause"
] | 171 | 2019-10-24T15:34:34.000Z | 2022-03-29T09:18:46.000Z | unit/test_get_systemd_units_info.py | tarantool/ansible-cartridge | 14d86752d582f43f0d8efb27dbaa1175ff6e8ac2 | [
"BSD-2-Clause"
] | 14 | 2019-12-23T08:27:06.000Z | 2021-07-06T15:53:49.000Z | import sys
import unittest
import module_utils.helpers as helpers
sys.modules['ansible.module_utils.helpers'] = helpers
from library.cartridge_get_systemd_units_info import get_systemd_units_info
def call_get_systemd_units_info(app_name, instance_vars, tnt_version):
return get_systemd_units_info({
'app_... | 39.615385 | 95 | 0.619874 | 998 | 8,755 | 5.118236 | 0.07515 | 0.072044 | 0.040525 | 0.046985 | 0.942052 | 0.934221 | 0.904464 | 0.902897 | 0.902897 | 0.902897 | 0 | 0.000607 | 0.247287 | 8,755 | 220 | 96 | 39.795455 | 0.774507 | 0 | 0 | 0.852941 | 0 | 0 | 0.529526 | 0.313421 | 0 | 0 | 0 | 0 | 0.047059 | 1 | 0.035294 | false | 0 | 0.023529 | 0.005882 | 0.070588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
35bdcbc9aad50913e91f3d991be5c6bedc53d868 | 21,694 | py | Python | examples/config_method_py_example.py | 123zbt/PySODEvalToolkit | 897612b6975f3de2e5003e35703972b41c47ebfc | [
"MIT"
] | 27 | 2021-04-19T08:19:47.000Z | 2022-03-25T09:10:37.000Z | examples/config_method_py_example.py | 123zbt/PySODEvalToolkit | 897612b6975f3de2e5003e35703972b41c47ebfc | [
"MIT"
] | 5 | 2021-08-16T03:42:42.000Z | 2021-11-26T02:51:05.000Z | examples/config_method_py_example.py | 123zbt/PySODEvalToolkit | 897612b6975f3de2e5003e35703972b41c47ebfc | [
"MIT"
] | 8 | 2021-09-26T03:12:18.000Z | 2022-03-26T13:49:22.000Z | # -*- coding: utf-8 -*-
import os
JLDCF_root = "<your_methods_path>/CVPR2020_JL-DCF"
JLDCF = {
"LFSD": dict(path=os.path.join(JLDCF_root, "LFSD"), suffix=".png"),
"NJUD": dict(path=os.path.join(JLDCF_root, "NJU2K"), suffix=".png"),
"NLPR": dict(path=os.path.join(JLDCF_root, "NLPR"), suffix=".png"),
"RG... | 51.775656 | 87 | 0.639624 | 3,206 | 21,694 | 4.200873 | 0.027137 | 0.149688 | 0.18711 | 0.261954 | 0.918102 | 0.886026 | 0.858628 | 0.730918 | 0.68169 | 0.670701 | 0 | 0.030377 | 0.115331 | 21,694 | 418 | 88 | 51.899522 | 0.671373 | 0.000968 | 0 | 0.093506 | 0 | 0 | 0.230492 | 0.04979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002597 | 0 | 0.002597 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 7 |
ea0bca91dc023b57c074a6e42d88544ce945a593 | 857 | py | Python | src/asttrs/utils.py | ryanchao2012/asttrs | b5e30ae6094f6b9d0504ca6b9c9a887df05a91c1 | [
"MIT"
] | null | null | null | src/asttrs/utils.py | ryanchao2012/asttrs | b5e30ae6094f6b9d0504ca6b9c9a887df05a91c1 | [
"MIT"
] | null | null | null | src/asttrs/utils.py | ryanchao2012/asttrs | b5e30ae6094f6b9d0504ca6b9c9a887df05a91c1 | [
"MIT"
] | null | null | null | import pathlib
import subprocess as sp
import tempfile
def blacking(source_code: str):
with tempfile.NamedTemporaryFile("w", delete=False) as f:
f.write(source_code)
fname = f.name
p = sp.Popen(f"cat {fname}".split(), stdout=sp.PIPE)
out = sp.check_output("black -q -".split(), stdin=p.s... | 19.477273 | 63 | 0.621937 | 114 | 857 | 4.622807 | 0.377193 | 0.075901 | 0.049336 | 0.064516 | 0.850095 | 0.850095 | 0.850095 | 0.850095 | 0.850095 | 0.850095 | 0 | 0 | 0.240373 | 857 | 43 | 64 | 19.930233 | 0.809524 | 0 | 0 | 0.740741 | 0 | 0 | 0.051342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.074074 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
ea4ce53396abbe15bfb0f90652e786402c6407ea | 1,383 | py | Python | Problem 001-150 Python/pb008.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | 2 | 2015-02-11T05:47:42.000Z | 2015-02-11T05:47:51.000Z | Problem 001-150 Python/pb008.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | 1 | 2015-04-13T06:36:21.000Z | 2015-04-13T06:36:21.000Z | Problem 001-150 Python/pb008.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | null | null | null | import time
t1 = time.time()
numbers = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661... | 60.130435 | 1,012 | 0.900217 | 54 | 1,383 | 23.055556 | 0.407407 | 0.019277 | 0.019277 | 0.017671 | 0.025703 | 0.025703 | 0 | 0 | 0 | 0 | 0 | 0.786595 | 0.061461 | 1,383 | 22 | 1,013 | 62.863636 | 0.172573 | 0 | 0 | 0 | 0 | 0 | 0.726681 | 0.723066 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.133333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea7e72744cbc4d203a2a5a6c1b5063f0821020d7 | 24,106 | py | Python | testapp/tests.py | tomi77/django-evostream | 5702aa7031a2330778b8c7c9e19ec527768ddf44 | [
"MIT"
] | 6 | 2016-04-27T00:42:51.000Z | 2020-10-28T03:40:26.000Z | testapp/tests.py | tomi77/django-evostream | 5702aa7031a2330778b8c7c9e19ec527768ddf44 | [
"MIT"
] | null | null | null | testapp/tests.py | tomi77/django-evostream | 5702aa7031a2330778b8c7c9e19ec527768ddf44 | [
"MIT"
] | 1 | 2019-10-11T00:37:38.000Z | 2019-10-11T00:37:38.000Z | import json
import os
import django
from pyems.protocols import HTTPProtocol
from evostream.default import api
os.environ['DJANGO_SETTINGS_MODULE'] = 'testapp.settings'
if hasattr(django, 'setup'):
django.setup()
try:
from unittest import mock
except ImportError:
import mock
from django.core.management... | 40.582492 | 102 | 0.588609 | 2,946 | 24,106 | 4.683978 | 0.071283 | 0.068483 | 0.09892 | 0.048192 | 0.820349 | 0.816001 | 0.811943 | 0.803247 | 0.79426 | 0.79426 | 0 | 0.00825 | 0.296026 | 24,106 | 593 | 103 | 40.650927 | 0.804891 | 0 | 0 | 0.74645 | 0 | 0 | 0.190285 | 0.093172 | 0 | 0 | 0 | 0 | 0.070994 | 1 | 0.079108 | false | 0 | 0.020284 | 0.002028 | 0.217039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ea8aef841c7824e143ef8e156194a1e7800afa6d | 26,373 | py | Python | QUANTAXIS_Monitor_GUI/TasksByThreading/QA_Gui_DateFetch_Task.py | simplezhang57/QUANTAXIS | 0fab23ee3cc4048a30b5eed3c311a5c9cdce8110 | [
"MIT"
] | 2 | 2018-10-29T12:01:55.000Z | 2021-03-05T10:28:59.000Z | QUANTAXIS_Monitor_GUI/TasksByThreading/QA_Gui_DateFetch_Task.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | null | null | null | QUANTAXIS_Monitor_GUI/TasksByThreading/QA_Gui_DateFetch_Task.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | 3 | 2018-11-29T07:07:56.000Z | 2021-02-09T17:24:56.000Z |
import time
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5 import QtCore
from QUANTAXIS.QASU.save_tdx import (QA_SU_save_stock_day,
QA_SU_save_stock_week,
QA_SU_save_stock_month,
... | 35.784261 | 121 | 0.632958 | 2,729 | 26,373 | 5.852693 | 0.069623 | 0.087653 | 0.022539 | 0.04007 | 0.864701 | 0.828387 | 0.822502 | 0.814864 | 0.810669 | 0.810669 | 0 | 0.009274 | 0.239487 | 26,373 | 737 | 122 | 35.784261 | 0.787007 | 0.164638 | 0 | 0.745958 | 0 | 0 | 0.022702 | 0.009917 | 0 | 0 | 0 | 0.001357 | 0 | 1 | 0.205543 | false | 0.184758 | 0.016166 | 0 | 0.281755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
57d2a0e870491552adda527a52b15a3e0dd90467 | 14,066 | py | Python | tests/test_e2e_03_Reporting_vertical.py | blue-monk/csv-diff-python2 | 8fbe9d149231b7d321d867497200e7c0c0118e57 | [
"MIT"
] | null | null | null | tests/test_e2e_03_Reporting_vertical.py | blue-monk/csv-diff-python2 | 8fbe9d149231b7d321d867497200e7c0c0118e57 | [
"MIT"
] | null | null | null | tests/test_e2e_03_Reporting_vertical.py | blue-monk/csv-diff-python2 | 8fbe9d149231b7d321d867497200e7c0c0118e57 | [
"MIT"
] | null | null | null | import sys
import textwrap
from src.csvdiff2 import csvdiff
def test_show_difference(lhs, rhs, capfd):
lhs.write(textwrap.dedent('''
head1, head2, head3, head4, head5, head6
1, value1-2, key2-2, 1002, 20210921T035902, value4-2
1, value1-3, key2-3, 1003, 20210921T035904, value4-3
... | 47.043478 | 88 | 0.507252 | 1,714 | 14,066 | 4.144107 | 0.054259 | 0.07884 | 0.022526 | 0.033789 | 0.981416 | 0.981416 | 0.981416 | 0.981416 | 0.981416 | 0.981416 | 0 | 0.324943 | 0.245841 | 14,066 | 298 | 89 | 47.201342 | 0.344646 | 0 | 0 | 0.900383 | 0 | 0.229885 | 0.877338 | 0.056887 | 0 | 0 | 0 | 0 | 0.038314 | 1 | 0.019157 | false | 0 | 0.011494 | 0 | 0.030651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
57e87956d1bb1a91478b576c511b21588d55dcf2 | 8,612 | py | Python | climateeconomics/tests/l2_test_witness_coarse_cache.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2022-01-14T06:37:42.000Z | 2022-01-14T06:37:42.000Z | climateeconomics/tests/l2_test_witness_coarse_cache.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | climateeconomics/tests/l2_test_witness_coarse_cache.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | '''
Copyright 2022 Airbus SAS
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
dis... | 46.551351 | 155 | 0.710752 | 1,137 | 8,612 | 4.953386 | 0.16095 | 0.042614 | 0.049716 | 0.036222 | 0.855291 | 0.846058 | 0.846058 | 0.83505 | 0.83505 | 0.823864 | 0 | 0.011041 | 0.211217 | 8,612 | 184 | 156 | 46.804348 | 0.818048 | 0.123316 | 0 | 0.873016 | 0 | 0 | 0.156644 | 0.123457 | 0 | 0 | 0 | 0 | 0.031746 | 1 | 0.015873 | false | 0 | 0.047619 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
17badfd81e29e503faf6a006f9848041fb5d1d5b | 224 | py | Python | projects/password-generator/test_password_generator.py | duttashi/learnpy | c08b76b173b06d66187e51a6939d55d5dd12cb5a | [
"MIT"
] | null | null | null | projects/password-generator/test_password_generator.py | duttashi/learnpy | c08b76b173b06d66187e51a6939d55d5dd12cb5a | [
"MIT"
] | 77 | 2019-04-20T06:54:19.000Z | 2022-01-16T08:15:20.000Z | projects/password-generator/test_password_generator.py | duttashi/learnpy | c08b76b173b06d66187e51a6939d55d5dd12cb5a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 24 11:53:24 2021
@author: Ashoo
"""
from password_generator import generate_simple_password
def test_generate_simple_password():
assert generate_simple_password()=='abcd' | 20.363636 | 55 | 0.741071 | 31 | 224 | 5.096774 | 0.741935 | 0.265823 | 0.417722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0.133929 | 224 | 11 | 56 | 20.363636 | 0.747423 | 0.330357 | 0 | 0 | 1 | 0 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 1 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
17dcd86dc888040d29dac313a0fe6dd4e5bc20ac | 3,883 | py | Python | src/openpersonen/api/tests/test_data/kind.py | maykinmedia/open-personen | ddcf083ccd4eb864c5305bcd8bc75c6c64108272 | [
"RSA-MD"
] | 2 | 2020-08-26T11:24:43.000Z | 2021-07-28T09:46:40.000Z | src/openpersonen/api/tests/test_data/kind.py | maykinmedia/open-personen | ddcf083ccd4eb864c5305bcd8bc75c6c64108272 | [
"RSA-MD"
] | 153 | 2020-08-26T10:45:35.000Z | 2021-12-10T17:33:16.000Z | src/openpersonen/api/tests/test_data/kind.py | maykinmedia/open-personen | ddcf083ccd4eb864c5305bcd8bc75c6c64108272 | [
"RSA-MD"
] | null | null | null | KIND_RETRIEVE_DATA = {
"_embedded": {
"naam": {
"_embedded": {
"inOnderzoek": {
"_embedded": {
"datumIngangOnderzoek": {
"dag": None,
"datum": None,
"ja... | 32.090909 | 86 | 0.321659 | 184 | 3,883 | 6.690217 | 0.233696 | 0.0658 | 0.068237 | 0.090983 | 0.942323 | 0.942323 | 0.942323 | 0.942323 | 0.917953 | 0.917953 | 0 | 0.02849 | 0.54803 | 3,883 | 120 | 87 | 32.358333 | 0.672934 | 0 | 0 | 0.694915 | 0 | 0 | 0.260108 | 0.014937 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
17eab284b42bad5abb870d846b8665fb35887fea | 1,019 | py | Python | cam/models.py | 4the1appdevs/face_recognition | d69d387f6e7bca45eeb15107f67b9c305c6082d0 | [
"Apache-2.0"
] | 1 | 2021-04-01T05:37:54.000Z | 2021-04-01T05:37:54.000Z | cam/models.py | Jzhenli/face_recognition | d69d387f6e7bca45eeb15107f67b9c305c6082d0 | [
"Apache-2.0"
] | null | null | null | cam/models.py | Jzhenli/face_recognition | d69d387f6e7bca45eeb15107f67b9c305c6082d0 | [
"Apache-2.0"
] | 1 | 2021-04-02T00:49:55.000Z | 2021-04-02T00:49:55.000Z | # -*- coding: utf-8 -*-
#from pkg_resources import resource_filename
class dlib_model:
def pose_predictor_model_location():
return "./models/dlib/shape_predictor_68_face_landmarks.dat"
def pose_predictor_five_point_model_location():
return "./models/dlib/shape_predictor_5_face_landmarks.dat"
def face_... | 28.305556 | 79 | 0.792934 | 134 | 1,019 | 5.597015 | 0.395522 | 0.168 | 0.24 | 0.2 | 0.410667 | 0.232 | 0.232 | 0 | 0 | 0 | 0 | 0.024149 | 0.105986 | 1,019 | 35 | 80 | 29.114286 | 0.799122 | 0.062807 | 0 | 0 | 0 | 0 | 0.447479 | 0.447479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | true | 0 | 0 | 0.428571 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
a4d892ac5743c151802808a49cc47189c4331a83 | 127 | py | Python | python/orp/orp/authority_ner/__init__.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | python/orp/orp/authority_ner/__init__.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | python/orp/orp/authority_ner/__init__.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | #from .extractAuthorities import extract_entities_from_string
from .new_extractAuthorities import extract_entities_from_string
| 42.333333 | 64 | 0.913386 | 15 | 127 | 7.266667 | 0.466667 | 0.440367 | 0.568807 | 0.715596 | 0.899083 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 127 | 2 | 65 | 63.5 | 0.915966 | 0.472441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
a4e44dc3b4b36a167f2e654d5430d65856bc9e0e | 635 | py | Python | labs/6/py/integrate.py | Sky-Nik/numerical-analysis | 97e1ab4ee8737e2eaba91084f8775089f13ec4dd | [
"MIT"
] | 1 | 2019-05-19T08:08:41.000Z | 2019-05-19T08:08:41.000Z | labs/6/py/integrate.py | csc-knu/numerical-analysis | 97e1ab4ee8737e2eaba91084f8775089f13ec4dd | [
"MIT"
] | 4 | 2018-09-02T05:48:27.000Z | 2018-09-02T06:02:22.000Z | labs/6/py/integrate.py | Sky-Nik/numerical-analysis | 97e1ab4ee8737e2eaba91084f8775089f13ec4dd | [
"MIT"
] | 2 | 2021-05-21T09:12:51.000Z | 2021-06-16T01:06:12.000Z | #!/usr/bin/env python
import numpy as np
from typing import Callable
def rectangle(a: float, b: float, f: Callable[[np.array], np.array],
h: float) -> float:
return h * np.sum(f(np.arange(a + h / 2, b + h / 2, h)))
def trapezoid(a: float, b: float, f: Callable[[np.array], np.array],
h: float) ... | 31.75 | 72 | 0.532283 | 118 | 635 | 2.864407 | 0.228814 | 0.12426 | 0.071006 | 0.094675 | 0.718935 | 0.718935 | 0.718935 | 0.718935 | 0.718935 | 0.718935 | 0 | 0.018947 | 0.251969 | 635 | 19 | 73 | 33.421053 | 0.692632 | 0.031496 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.25 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
1038e5fd93dc6f7990303f2f97a305ac7488d629 | 5,934 | py | Python | comicMaker/makeFullPdf.py | Gunjan933/comicMaker | 9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee | [
"MIT"
] | 3 | 2019-09-03T14:27:28.000Z | 2021-03-04T04:23:38.000Z | comicMaker/makeFullPdf.py | Gunjan933/comicMaker | 9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee | [
"MIT"
] | null | null | null | comicMaker/makeFullPdf.py | Gunjan933/comicMaker | 9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee | [
"MIT"
] | 2 | 2019-06-18T04:21:28.000Z | 2021-08-17T18:24:20.000Z | import shutil,os,os.path
from PyPDF2 import PdfFileMerger
class makeFullPdf:
def mangaLike(comicBook):
print(" Merging all pdf's, please wait!")
for file in os.listdir("."):
if file.endswith(".pdf"):
os.remove(os.path.join(".", file))
pdflist=[]
for dirpath, dirnames, filenames in os.walk(... | 27.345622 | 96 | 0.576508 | 723 | 5,934 | 4.723375 | 0.116183 | 0.056223 | 0.025769 | 0.039824 | 0.906881 | 0.890483 | 0.872035 | 0.872035 | 0.854758 | 0.841581 | 0 | 0.004817 | 0.230367 | 5,934 | 217 | 97 | 27.345622 | 0.742938 | 0.105662 | 0 | 0.923529 | 0 | 0 | 0.094336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.023529 | 0.011765 | 0 | 0.041176 | 0.064706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
52a3ef12d112027d3f84de3eeb1289e651925eab | 3,954 | py | Python | MiniMaxAgent.py | youssef-sherif/riskgame | 48a1758b305f463e6965c176a5bf745eb32791dd | [
"MIT"
] | null | null | null | MiniMaxAgent.py | youssef-sherif/riskgame | 48a1758b305f463e6965c176a5bf745eb32791dd | [
"MIT"
] | 3 | 2021-03-09T19:20:20.000Z | 2021-10-06T05:04:53.000Z | MiniMaxAgent.py | youssef-sherif/riskgame | 48a1758b305f463e6965c176a5bf745eb32791dd | [
"MIT"
] | null | null | null | from Agent import Agent
from Color import Color
from State import State
class MiniMaxAgent(Agent):
def make_decision(self, board):
self.receive_armies(board)
state = State(board, self.available_armies_count, 1)
place_armies_result, _ = self.maximize_place_armies(state, -999999, 999999)
... | 34.684211 | 92 | 0.635812 | 474 | 3,954 | 5.027426 | 0.116034 | 0.100713 | 0.047 | 0.050357 | 0.843475 | 0.838439 | 0.829207 | 0.829207 | 0.829207 | 0.829207 | 0 | 0.017645 | 0.297673 | 3,954 | 113 | 93 | 34.99115 | 0.840475 | 0.095852 | 0 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.044776 | 0 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
52e22772f1f6a20ea13f7c7cc5404da5ffb0f198 | 87 | py | Python | test/tests/test_environments/python_src/main.py | jithindevasia/fission | 4a4ba9d36d92c61c9f22b07e10ec08580957b520 | [
"Apache-2.0"
] | 6,891 | 2016-12-24T05:54:27.000Z | 2022-03-31T15:55:08.000Z | test/tests/test_environments/python_src/main.py | jithindevasia/fission | 4a4ba9d36d92c61c9f22b07e10ec08580957b520 | [
"Apache-2.0"
] | 1,840 | 2016-12-24T18:50:37.000Z | 2022-03-31T08:22:23.000Z | test/tests/test_environments/python_src/main.py | jithindevasia/fission | 4a4ba9d36d92c61c9f22b07e10ec08580957b520 | [
"Apache-2.0"
] | 839 | 2017-01-13T12:40:55.000Z | 2022-03-29T14:44:02.000Z | def main():
return 'THIS_IS_MAIN_MAIN'
def func():
return 'THIS_IS_MAIN_FUNC'
| 14.5 | 30 | 0.689655 | 14 | 87 | 3.857143 | 0.428571 | 0.37037 | 0.444444 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 87 | 5 | 31 | 17.4 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.390805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
eaa8832b0b9fe96d3f122d1dc723a89ff9b918e9 | 28,702 | py | Python | home/migrations/0011_auto_20200217_1647.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | home/migrations/0011_auto_20200217_1647.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | home/migrations/0011_auto_20200217_1647.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | # Generated by Django 2.2.9 on 2020-02-17 16:47
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0001_squashed_0021'),
('wagtailcore', '0041_group_collection_permissions... | 56.948413 | 251 | 0.634834 | 3,361 | 28,702 | 5.228206 | 0.038679 | 0.056909 | 0.071022 | 0.076485 | 0.969554 | 0.965456 | 0.964432 | 0.963294 | 0.950376 | 0.94127 | 0 | 0.01598 | 0.252143 | 28,702 | 503 | 252 | 57.06163 | 0.802655 | 0.001568 | 0 | 0.71831 | 1 | 0 | 0.310173 | 0.049101 | 0.012072 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006036 | 0 | 0.012072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
eab9eaccd128cad9a8c678e07d6e9420bdb41087 | 95 | py | Python | examples/test_simple.py | VStoilovskyi/agent-python-pytest | 325f56938009ae89ae7739410adcccc0d94f2cde | [
"Apache-2.0"
] | 85 | 2017-05-03T10:44:32.000Z | 2022-03-30T06:57:10.000Z | examples/test_simple.py | VStoilovskyi/agent-python-pytest | 325f56938009ae89ae7739410adcccc0d94f2cde | [
"Apache-2.0"
] | 212 | 2017-04-26T12:18:07.000Z | 2022-03-28T11:49:34.000Z | examples/test_simple.py | VStoilovskyi/agent-python-pytest | 325f56938009ae89ae7739410adcccc0d94f2cde | [
"Apache-2.0"
] | 103 | 2017-04-12T15:34:58.000Z | 2022-01-24T17:11:29.000Z | """Simple example test."""
def test_simple():
"""Simple example test."""
assert True
| 13.571429 | 30 | 0.610526 | 11 | 95 | 5.181818 | 0.545455 | 0.45614 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 95 | 6 | 31 | 15.833333 | 0.76 | 0.431579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
eacd0134d8f950971c49af272de25f2290db7872 | 157 | py | Python | motrackers/detectors/__init__.py | timseifer/mixed_motion_detection | bf9f8731885a1be477ec2e871adf614a52375e6c | [
"MIT"
] | 570 | 2018-09-17T19:49:33.000Z | 2022-03-30T12:54:27.000Z | motrackers/detectors/__init__.py | timseifer/mixed_motion_detection | bf9f8731885a1be477ec2e871adf614a52375e6c | [
"MIT"
] | 21 | 2018-09-12T02:35:09.000Z | 2021-12-30T08:25:38.000Z | motrackers/detectors/__init__.py | timseifer/mixed_motion_detection | bf9f8731885a1be477ec2e871adf614a52375e6c | [
"MIT"
] | 74 | 2019-07-10T06:25:50.000Z | 2022-02-28T02:47:10.000Z | from motrackers.detectors.tf import TF_SSDMobileNetV2
from motrackers.detectors.caffe import Caffe_SSDMobileNet
from motrackers.detectors.yolo import YOLOv3
| 39.25 | 57 | 0.88535 | 20 | 157 | 6.85 | 0.5 | 0.306569 | 0.50365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.076433 | 157 | 3 | 58 | 52.333333 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f4a620612d875abd10992b52b05cd54f280d550a | 7,794 | py | Python | src/genie/libs/parser/iosxr/tests/ShowRouteIpv4/cli/equal/golden3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowRouteIpv4/cli/equal/golden3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowRouteIpv4/cli/equal/golden3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
'vrf': {
'VRF501': {
'address_family': {
'ipv4': {
'routes': {
'192.168.111.1/32': {
'route': '192.168.111.1/32',
'active': True... | 47.815951 | 95 | 0.21029 | 372 | 7,794 | 4.231183 | 0.158602 | 0.160102 | 0.091487 | 0.13723 | 0.887548 | 0.796061 | 0.792249 | 0.792249 | 0.792249 | 0.763024 | 0 | 0.14866 | 0.69361 | 7,794 | 162 | 96 | 48.111111 | 0.510469 | 0 | 0 | 0.565217 | 0 | 0 | 0.218373 | 0.050937 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f4be60af9a6e5ee6c5078bd7f7453212d29507f0 | 3,718 | py | Python | conbench/tests/api/test_auth.py | jonkeane/conbench | f096cc2f8b7a85d8e9aea32d8310127cf1923212 | [
"MIT"
] | 48 | 2020-03-02T16:55:46.000Z | 2022-02-26T00:35:57.000Z | conbench/tests/api/test_auth.py | jonkeane/conbench | f096cc2f8b7a85d8e9aea32d8310127cf1923212 | [
"MIT"
] | 103 | 2020-03-23T00:22:46.000Z | 2022-03-31T22:34:40.000Z | conbench/tests/api/test_auth.py | jonkeane/conbench | f096cc2f8b7a85d8e9aea32d8310127cf1923212 | [
"MIT"
] | 6 | 2020-03-04T17:52:35.000Z | 2022-03-30T11:53:40.000Z | import copy
from ...tests.api import _asserts
class TestLoginPost(_asserts.PostEnforcer):
url = "/api/login/"
required_fields = ["email", "password"]
valid_payload = {"email": "fixture@example.com", "password": "fixture"}
def test_unauthenticated(self, client):
self._create_fixture_user()
... | 33.495495 | 75 | 0.642281 | 433 | 3,718 | 5.332564 | 0.163972 | 0.109138 | 0.08835 | 0.103941 | 0.80078 | 0.776094 | 0.776094 | 0.748809 | 0.716327 | 0.678216 | 0 | 0.019095 | 0.239376 | 3,718 | 110 | 76 | 33.8 | 0.797383 | 0.104895 | 0 | 0.731343 | 0 | 0 | 0.14139 | 0 | 0 | 0 | 0 | 0 | 0.313433 | 1 | 0.119403 | false | 0.104478 | 0.029851 | 0 | 0.223881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.