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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0bfee60d077f03c2727d3ec5a090895732a054ec
| 26
|
py
|
Python
|
build/lib/kappalib/_version.py
|
Cristianobam/kappalib
|
30941b456374787975ea049c42a89edfb6c91a76
|
[
"MIT"
] | null | null | null |
build/lib/kappalib/_version.py
|
Cristianobam/kappalib
|
30941b456374787975ea049c42a89edfb6c91a76
|
[
"MIT"
] | null | null | null |
build/lib/kappalib/_version.py
|
Cristianobam/kappalib
|
30941b456374787975ea049c42a89edfb6c91a76
|
[
"MIT"
] | null | null | null |
__version__ = '0.0.1.rc17'
| 26
| 26
| 0.692308
| 5
| 26
| 2.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 0.076923
| 26
| 1
| 26
| 26
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
040d10b39489d0554d5315b59034a7a4dbfc3908
| 78
|
py
|
Python
|
tests/test_foundation.py
|
benranderson/uhb
|
a0169cfae587384e96c628b82e02667537ad00b6
|
[
"MIT"
] | null | null | null |
tests/test_foundation.py
|
benranderson/uhb
|
a0169cfae587384e96c628b82e02667537ad00b6
|
[
"MIT"
] | null | null | null |
tests/test_foundation.py
|
benranderson/uhb
|
a0169cfae587384e96c628b82e02667537ad00b6
|
[
"MIT"
] | null | null | null |
"""Tests for foundation module."""
import pytest
from uhb import foundation
| 13
| 34
| 0.75641
| 10
| 78
| 5.9
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 78
| 5
| 35
| 15.6
| 0.893939
| 0.358974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0414b72661d94bfe6e90b3d103e399595251ee90
| 129
|
py
|
Python
|
api/resources/index.py
|
rarygc/weather-buddy-api
|
45d836e2e4437356256545bad84bd5fcf7a8c1f9
|
[
"MIT"
] | null | null | null |
api/resources/index.py
|
rarygc/weather-buddy-api
|
45d836e2e4437356256545bad84bd5fcf7a8c1f9
|
[
"MIT"
] | 7
|
2021-04-08T17:08:02.000Z
|
2021-04-20T11:41:49.000Z
|
api/resources/index.py
|
rarygc/weather-buddy-api
|
45d836e2e4437356256545bad84bd5fcf7a8c1f9
|
[
"MIT"
] | null | null | null |
from flask_restful import Resource
class IndexView(Resource):
def get(self):
return {'greeting': 'Hello, DevGrid!'}
| 21.5
| 46
| 0.689922
| 15
| 129
| 5.866667
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193798
| 129
| 5
| 47
| 25.8
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0.178295
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
045c603c67bde405c9a0efd2333003d83bbd2924
| 5,406
|
py
|
Python
|
test_board.py
|
justinchen673/Catan-AI
|
e4963f4d0810a57f761ea4e0245bc4e52977a333
|
[
"MIT"
] | 8
|
2019-01-15T02:39:18.000Z
|
2020-09-23T13:56:49.000Z
|
test_board.py
|
justinchen673/Catan-AI
|
e4963f4d0810a57f761ea4e0245bc4e52977a333
|
[
"MIT"
] | 1
|
2019-03-22T22:57:14.000Z
|
2019-03-23T00:32:02.000Z
|
test_board.py
|
justinchen673/Catan-AI
|
e4963f4d0810a57f761ea4e0245bc4e52977a333
|
[
"MIT"
] | 2
|
2019-01-15T02:43:11.000Z
|
2019-03-04T16:04:30.000Z
|
import unittest
from player import *
from board import *
from setup import *
class Test_board(unittest.TestCase):
def setUp(self):
print('setUp')
self.plyr1 = Player("A")
self.plyr2 = Player("B")
self.playerList = []
self.playerList.append(self.plyr1)
self.playerList.append(self.plyr2)
def tearDown(self):
print('tearDown\n')
def test_dfs(self):
board1 = createBoard()
self.plyr1.longestRoadLength = 0
self.plyr2.longestRoadLength = 0
self.plyr1.longestRoad = False
self.plyr2.longestRoad = False
print('test_dfs_linear')
board1.placeRoad(2,6,self.plyr1,self.playerList)
board1.placeRoad(6,10,self.plyr1,self.playerList)
board1.placeRoad(10,15,self.plyr1,self.playerList)
board1.placeRoad(15,20,self.plyr1,self.playerList)
board1.placeRoad(20,26,self.plyr1,self.playerList)
self.assertTrue(self.plyr1.longestRoad)
print('playerB overtakes playerA road')
board1.placeRoad(26,32,self.plyr2,self.playerList)
board1.placeRoad(32,37,self.plyr2,self.playerList)
board1.placeRoad(37,42,self.plyr2,self.playerList)
board1.placeRoad(42,46,self.plyr2,self.playerList)
board1.placeRoad(46,50,self.plyr2,self.playerList)
board1.placeRoad(50,53,self.plyr2,self.playerList)
self.assertTrue(self.plyr2.longestRoad)
self.assertFalse(self.plyr1.longestRoad)
board2 = createBoard()
self.plyr1.longestRoadLength = 0
self.plyr2.longestRoadLength = 0
self.plyr1.longestRoad = False
self.plyr2.longestRoad = False
print('test_dfs_circular')
board2.placeRoad(2,6,self.plyr1,self.playerList)
board2.placeRoad(6,10,self.plyr1,self.playerList)
board2.placeRoad(10,14,self.plyr1,self.playerList)
board2.placeRoad(14,9,self.plyr1,self.playerList)
board2.placeRoad(9,5,self.plyr1,self.playerList)
board2.placeRoad(5,2,self.plyr1,self.playerList)
self.assertTrue(self.plyr1.longestRoad)
print('playerB overtakes playerA road')
board2.placeRoad(26,32,self.plyr2,self.playerList)
board2.placeRoad(32,37,self.plyr2,self.playerList)
board2.placeRoad(37,42,self.plyr2,self.playerList)
board2.placeRoad(42,46,self.plyr2,self.playerList)
board2.placeRoad(46,50,self.plyr2,self.playerList)
board2.placeRoad(50,53,self.plyr2,self.playerList)
board2.placeRoad(53,49,self.plyr2,self.playerList)
self.assertTrue(self.plyr2.longestRoad)
self.assertFalse(self.plyr1.longestRoad)
board3 = createBoard()
self.plyr1.longestRoadLength = 0
self.plyr2.longestRoadLength = 0
self.plyr1.longestRoad = False
self.plyr2.longestRoad = False
print('test_dfs_linear')
board3.placeRoad(2,6,self.plyr1,self.playerList)
board3.placeRoad(6,10,self.plyr1,self.playerList)
board3.placeRoad(10,15,self.plyr1,self.playerList)
board3.placeRoad(15,20,self.plyr1,self.playerList)
board3.placeRoad(20,26,self.plyr1,self.playerList)
self.assertTrue(self.plyr1.longestRoad)
print('playerB matches playerA road length')
board3.placeRoad(26,32,self.plyr2,self.playerList)
board3.placeRoad(32,37,self.plyr2,self.playerList)
board3.placeRoad(37,42,self.plyr2,self.playerList)
board3.placeRoad(42,46,self.plyr2,self.playerList)
board3.placeRoad(46,50,self.plyr2,self.playerList)
self.assertTrue(self.plyr1.longestRoad)
self.assertFalse(self.plyr2.longestRoad)
board4 = createBoard()
self.plyr1.longestRoadLength = 0
self.plyr2.longestRoadLength = 0
self.plyr1.longestRoad = False
self.plyr2.longestRoad = False
print('test_dfs_branching')
board4.placeRoad(9,5,self.plyr1,self.playerList)
board4.placeRoad(2,5,self.plyr1,self.playerList)
board4.placeRoad(2,6,self.plyr1,self.playerList)
board4.placeRoad(6,10,self.plyr1,self.playerList)
board4.placeRoad(10,15,self.plyr1,self.playerList)
board4.placeRoad(15,20,self.plyr1,self.playerList)
board4.placeRoad(20,26,self.plyr1,self.playerList)
board4.placeRoad(10,14,self.plyr1,self.playerList)
board4.placeRoad(14,19,self.plyr1,self.playerList)
board4.placeRoad(19,24,self.plyr1,self.playerList)
self.assertEqual(self.plyr1.longestRoadLength, 7)
self.assertTrue(self.plyr1.longestRoad)
print('playerB matches playerA road length')
board4.placeRoad(26,32,self.plyr2,self.playerList)
board4.placeRoad(32,37,self.plyr2,self.playerList)
board4.placeRoad(37,42,self.plyr2,self.playerList)
board4.placeRoad(42,46,self.plyr2,self.playerList)
board4.placeRoad(46,50,self.plyr2,self.playerList)
board4.placeRoad(50,53,self.plyr2,self.playerList)
board4.placeRoad(53,49,self.plyr2,self.playerList)
board4.placeRoad(49,45,self.plyr2,self.playerList)
self.assertTrue(self.plyr2.longestRoad)
self.assertFalse(self.plyr1.longestRoad)
board5 = createBoard()
self.plyr1.longestRoadLength = 0
self.plyr2.longestRoadLength = 0
self.plyr1.longestRoad = False
self.plyr2.longestRoad = False
print('test_dfs_circular')
board5.placeRoad(2,6,self.plyr1,self.playerList)
board5.placeRoad(6,10,self.plyr1,self.playerList)
board5.placeRoad(10,14,self.plyr1,self.playerList)
board5.placeRoad(14,9,self.plyr1,self.playerList)
board5.placeRoad(9,5,self.plyr1,self.playerList)
board5.placeRoad(5,2,self.plyr1,self.playerList)
board5.placeRoad(9,13,self.plyr1,self.playerList)
board5.placeRoad(10,15,self.plyr1,self.playerList)
board5.placeRoad(15,20,self.plyr1,self.playerList)
self.assertTrue(self.plyr1.longestRoad)
self.assertEqual(self.plyr1.longestRoadLength, 8)
if __name__ == '__main__':
unittest.main()
| 37.541667
| 52
| 0.7771
| 753
| 5,406
| 5.552457
| 0.091633
| 0.214303
| 0.111935
| 0.198039
| 0.899306
| 0.875149
| 0.800048
| 0.358527
| 0.325999
| 0.312365
| 0
| 0.079417
| 0.08694
| 5,406
| 144
| 53
| 37.541667
| 0.767626
| 0
| 0
| 0.314961
| 0
| 0
| 0.043832
| 0
| 0
| 0
| 0
| 0
| 0.11811
| 1
| 0.023622
| false
| 0
| 0.031496
| 0
| 0.062992
| 0.086614
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f098ded8ab6385df36033970aec657493c11d137
| 356
|
py
|
Python
|
sdk/python/pulumi_aws/ebs/__init__.py
|
pulumi-bot/pulumi-aws
|
756c60135851e015232043c8206567101b8ebd85
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/ebs/__init__.py
|
pulumi-bot/pulumi-aws
|
756c60135851e015232043c8206567101b8ebd85
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/ebs/__init__.py
|
pulumi-bot/pulumi-aws
|
756c60135851e015232043c8206567101b8ebd85
|
[
"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! ***
# Export this package's modules as members:
from snapshot import *
from volume import *
from get_snapshot import *
from get_snapshot_ids import *
from get_volume import *
| 32.363636
| 87
| 0.738764
| 56
| 356
| 4.625
| 0.696429
| 0.15444
| 0.150579
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003401
| 0.174157
| 356
| 10
| 88
| 35.6
| 0.877551
| 0.615169
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f099ab62ef46cb611a01786e52ffcf8eae84afe4
| 167
|
py
|
Python
|
intervals/__init__.py
|
marcodeangelis/intervals
|
b4ab675e7b01fbda25b990b44553c3b5b922ae1d
|
[
"MIT"
] | 6
|
2022-02-21T15:38:41.000Z
|
2022-03-08T13:55:02.000Z
|
intervals/__init__.py
|
marcodeangelis/intervals
|
b4ab675e7b01fbda25b990b44553c3b5b922ae1d
|
[
"MIT"
] | 4
|
2022-02-21T15:16:39.000Z
|
2022-02-21T18:00:44.000Z
|
intervals/__init__.py
|
marcodeangelis/intervals
|
b4ab675e7b01fbda25b990b44553c3b5b922ae1d
|
[
"MIT"
] | null | null | null |
from .number import Interval
from .methods import (lo,hi,mid,rad,width,straddle_zero,intervalise)
from tests.interval_generator import pick_endpoints_at_random_uniform
| 55.666667
| 69
| 0.868263
| 25
| 167
| 5.56
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065868
| 167
| 3
| 69
| 55.666667
| 0.891026
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f09d8b301eac7bca6caa425b3598fe1e1ef57f7f
| 104
|
py
|
Python
|
scripts/hello_ros.py
|
mt-krainski/ros_basics
|
23419e2facbb9decaefd57c3d260502e19e09fc5
|
[
"Apache-2.0"
] | null | null | null |
scripts/hello_ros.py
|
mt-krainski/ros_basics
|
23419e2facbb9decaefd57c3d260502e19e09fc5
|
[
"Apache-2.0"
] | null | null | null |
scripts/hello_ros.py
|
mt-krainski/ros_basics
|
23419e2facbb9decaefd57c3d260502e19e09fc5
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
import rospy
rospy.init_node("hello_ros")
rospy.loginfo("Hello ROS!")
rospy.spin()
| 11.555556
| 28
| 0.721154
| 16
| 104
| 4.5625
| 0.6875
| 0.219178
| 0.356164
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096154
| 104
| 8
| 29
| 13
| 0.776596
| 0.153846
| 0
| 0
| 0
| 0
| 0.218391
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
| 0
| 0
| 0
| 0
|
0
| 5
|
f0a467753fd0d7329ac162a6e893e3291a14180c
| 2,186
|
py
|
Python
|
pygritia/rbinary.py
|
gwangyi/pygritia
|
de187e802603e1041b435f508e185ca7eeb073c6
|
[
"MIT"
] | null | null | null |
pygritia/rbinary.py
|
gwangyi/pygritia
|
de187e802603e1041b435f508e185ca7eeb073c6
|
[
"MIT"
] | null | null | null |
pygritia/rbinary.py
|
gwangyi/pygritia
|
de187e802603e1041b435f508e185ca7eeb073c6
|
[
"MIT"
] | null | null | null |
"""
Provides :py:class:`ReversedBinaryMixin` mixin class
It provides reversed binary operator support to the :py:class:`Lazy` class
"""
from typing import Any
from .core import Lazy, LazyMixin
from .ops import lazy_roperator
class ReversedBinaryMixin(LazyMixin):
"""
Reversed operator support
It contains numeric operators(``__radd__``, ``__rsub__``, ``__rmul__``, ``__rmatmul__``,
``__rdiv__``, ``__rtruediv__``, ``__rfloordiv__``, ``__rmod__``, ``__rdivmod__``, ``__rpow__``)
and bitwise operators(``__rlshift__``, ``__rrshift__``, ``__rand__``, ``__ror__``, ``__rxor__``)
"""
@lazy_roperator
def __radd__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rsub__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rmul__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rmatmul__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rdiv__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rtruediv__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rfloordiv__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rmod__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rdivmod__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rpow__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rlshift__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rrshift__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rand__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __rxor__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
@lazy_roperator
def __ror__(self: Lazy, other: Any) -> Lazy:
pass # pragma: no cover
| 28.025641
| 100
| 0.625801
| 255
| 2,186
| 4.831373
| 0.188235
| 0.168831
| 0.194805
| 0.194805
| 0.632305
| 0.632305
| 0.632305
| 0.632305
| 0.632305
| 0.602273
| 0
| 0
| 0.250686
| 2,186
| 77
| 101
| 28.38961
| 0.752137
| 0.31656
| 0
| 0.612245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.306122
| false
| 0.306122
| 0.061224
| 0
| 0.387755
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f0a47bf2b9467e74c94d856eca92e68821952dbf
| 96
|
py
|
Python
|
regularize/exceptions.py
|
georgepsarakis/regularize
|
25e7e9d2ac532c99ce8faa5f63f757c6823c7c72
|
[
"MIT"
] | 14
|
2021-03-29T18:44:58.000Z
|
2021-04-05T07:25:14.000Z
|
regularize/exceptions.py
|
georgepsarakis/regularize
|
25e7e9d2ac532c99ce8faa5f63f757c6823c7c72
|
[
"MIT"
] | 1
|
2021-03-26T20:16:01.000Z
|
2021-03-26T20:16:36.000Z
|
regularize/exceptions.py
|
georgepsarakis/regularize
|
25e7e9d2ac532c99ce8faa5f63f757c6823c7c72
|
[
"MIT"
] | null | null | null |
class SampleNotMatchedError(Exception):
pass
class InvalidRangeError(Exception):
pass
| 13.714286
| 39
| 0.770833
| 8
| 96
| 9.25
| 0.625
| 0.351351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 96
| 6
| 40
| 16
| 0.925
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f0b1ed5583c4d6b59aab0311a1fa7220805f121e
| 130
|
py
|
Python
|
lang/py/cookbook/v2/source/cb2_12_1_exm_2.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
lang/py/cookbook/v2/source/cb2_12_1_exm_2.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
lang/py/cookbook/v2/source/cb2_12_1_exm_2.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
import xml.parsers.expat
def parsefile(file):
parser = xml.parsers.expat.ParserCreate()
parser.ParseFile(open(file, "r"))
| 26
| 45
| 0.723077
| 17
| 130
| 5.529412
| 0.647059
| 0.212766
| 0.319149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130769
| 130
| 4
| 46
| 32.5
| 0.831858
| 0
| 0
| 0
| 0
| 0
| 0.007692
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f0d083926af02d7f620871c85e7c1d3e811fcf38
| 46
|
py
|
Python
|
aiogram_dialog_extras/exceptions.py
|
SamWarden/aiogram_dialog_extras
|
dede383df2b4f34d77fe40459333fdb4e6b8727b
|
[
"MIT"
] | 1
|
2022-02-21T19:28:48.000Z
|
2022-02-21T19:28:48.000Z
|
aiogram_dialog_extras/exceptions.py
|
SamWarden/aiogram_dialog_extras
|
dede383df2b4f34d77fe40459333fdb4e6b8727b
|
[
"MIT"
] | null | null | null |
aiogram_dialog_extras/exceptions.py
|
SamWarden/aiogram_dialog_extras
|
dede383df2b4f34d77fe40459333fdb4e6b8727b
|
[
"MIT"
] | null | null | null |
class ContextNotFound(RuntimeError):
pass
| 15.333333
| 36
| 0.782609
| 4
| 46
| 9
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 46
| 2
| 37
| 23
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
0b1ab76d1a243f259e74c73bcec8a8fbfa95ea89
| 199
|
py
|
Python
|
kata/disemvowel_trolls.py
|
gualtierotesta/PlayWithPython
|
154853fb6ec6ab96a1f85355cca2b140de1886e8
|
[
"Apache-2.0"
] | null | null | null |
kata/disemvowel_trolls.py
|
gualtierotesta/PlayWithPython
|
154853fb6ec6ab96a1f85355cca2b140de1886e8
|
[
"Apache-2.0"
] | null | null | null |
kata/disemvowel_trolls.py
|
gualtierotesta/PlayWithPython
|
154853fb6ec6ab96a1f85355cca2b140de1886e8
|
[
"Apache-2.0"
] | null | null | null |
# https://www.codewars.com/kata/52fba66badcd10859f00097e
def disemvowel(str):
return "".join(filter(lambda c: c not in "aeiouAEIOU", str))
print(disemvowel("This website is for losers LOL!"))
| 24.875
| 64
| 0.728643
| 27
| 199
| 5.37037
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08046
| 0.125628
| 199
| 7
| 65
| 28.428571
| 0.752874
| 0.271357
| 0
| 0
| 0
| 0
| 0.286713
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
9bd86340866ddd448ea0509fb9afbd5e65e3862b
| 194
|
py
|
Python
|
estate_app/estate_app/doctype/api.py
|
khaledasem/estate_app-ver4
|
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
|
[
"MIT"
] | null | null | null |
estate_app/estate_app/doctype/api.py
|
khaledasem/estate_app-ver4
|
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
|
[
"MIT"
] | null | null | null |
estate_app/estate_app/doctype/api.py
|
khaledasem/estate_app-ver4
|
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
|
[
"MIT"
] | null | null | null |
import frappe
def get_data_from_db(element_var, table_name_var, conditions_var):
return frappe.db.sql(f"""SELECT {element_var} FROM {table_name_var} WHERE {conditions_var};""", as_dict = True)
| 48.5
| 112
| 0.78866
| 32
| 194
| 4.40625
| 0.625
| 0.141844
| 0.170213
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087629
| 194
| 4
| 112
| 48.5
| 0.79661
| 0
| 0
| 0
| 0
| 0
| 0.338462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
9be550101e8aa7332e18ba15c8e5423fdddffada
| 175
|
py
|
Python
|
libp2p/network/connection/raw_connection_interface.py
|
phayaran/py-libp2p
|
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
libp2p/network/connection/raw_connection_interface.py
|
phayaran/py-libp2p
|
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
libp2p/network/connection/raw_connection_interface.py
|
phayaran/py-libp2p
|
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
from libp2p.io.abc import ReadWriteCloser
class IRawConnection(ReadWriteCloser):
"""
A Raw Connection provides a Reader and a Writer
"""
is_initiator: bool
| 17.5
| 51
| 0.714286
| 21
| 175
| 5.904762
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007299
| 0.217143
| 175
| 9
| 52
| 19.444444
| 0.89781
| 0.268571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9be790b694c77c806ac8e51b48480eec2177f635
| 59
|
py
|
Python
|
python/reverse-string/reverse_string.py
|
rootulp/exercism
|
312a053ad1d375752acf0fce062ee7b9c643a149
|
[
"MIT"
] | 41
|
2015-02-09T18:08:45.000Z
|
2022-03-06T15:23:32.000Z
|
python/reverse-string/reverse_string.py
|
DucChuyenSoftwareEngineer/exercism
|
fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f
|
[
"MIT"
] | 21
|
2019-12-28T17:47:06.000Z
|
2021-02-27T19:43:00.000Z
|
python/reverse-string/reverse_string.py
|
DucChuyenSoftwareEngineer/exercism
|
fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f
|
[
"MIT"
] | 18
|
2016-04-29T14:35:12.000Z
|
2021-06-23T07:32:29.000Z
|
def reverse(input=''):
return ''.join(reversed(input))
| 19.666667
| 35
| 0.644068
| 7
| 59
| 5.428571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 59
| 2
| 36
| 29.5
| 0.745098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
5029e681fe54f0e8c8dd2316a06a23c7bcb471ba
| 137
|
py
|
Python
|
01-byoc/code/losses.py
|
timchiu9781/Tomofun
|
3f7abcb7fc1cc8200ec3fdff62bd51fbaada4126
|
[
"MIT-0"
] | 27
|
2021-06-20T01:40:31.000Z
|
2022-02-17T12:23:41.000Z
|
01-byoc/code/losses.py
|
timchiu9781/Tomofun
|
3f7abcb7fc1cc8200ec3fdff62bd51fbaada4126
|
[
"MIT-0"
] | 2
|
2021-07-14T06:26:37.000Z
|
2022-03-12T00:58:44.000Z
|
01-byoc/code/losses.py
|
timchiu9781/Tomofun
|
3f7abcb7fc1cc8200ec3fdff62bd51fbaada4126
|
[
"MIT-0"
] | 7
|
2021-07-03T13:14:28.000Z
|
2021-07-29T15:23:59.000Z
|
import torch.nn as nn
def CrossEntropyLoss(output, target):
criterion = nn.CrossEntropyLoss()
return criterion(output, target)
| 19.571429
| 37
| 0.744526
| 16
| 137
| 6.375
| 0.625
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167883
| 137
| 6
| 38
| 22.833333
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
5040fb49247ae827f97e8c2355d3e53b6d33491f
| 5,287
|
py
|
Python
|
ketiga.py
|
ichsanhizmanhardy/BelajarGIS
|
9672a3fac5bb00fa3e551aa0afb432cdf8c0e6ed
|
[
"MIT"
] | null | null | null |
ketiga.py
|
ichsanhizmanhardy/BelajarGIS
|
9672a3fac5bb00fa3e551aa0afb432cdf8c0e6ed
|
[
"MIT"
] | null | null | null |
ketiga.py
|
ichsanhizmanhardy/BelajarGIS
|
9672a3fac5bb00fa3e551aa0afb432cdf8c0e6ed
|
[
"MIT"
] | null | null | null |
import shapefile
class ketiga:
def __init__(self):
self.ketiga = shapefile.Writer('ketiga', shapeType=shapefile.POLYGON)
self.ketiga.shapeType
self.ketiga.field('nama_ruangan', 'C')
#-------------------- KODING ------------------#
# Ilham Muhammad Ariq 1174087
def tanggaD2(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[-16, 20], [-19, 20], [-19, 27], [-16, 27], [-16, 20]]])
def r301(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[-12.4, 20], [-16, 20], [-16, 24], [-12.4, 24], [-12.4, 20]]])
# Alvan Alvanzah 1174077
def r302(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[-8.8, 20], [-12.4, 20], [-12.4, 24], [-8.8, 24], [-8.8, 20]]])
# Advent Nopele Sihite 1184089
def r304(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[-1.6, 20], [-5.2, 20], [-5.2, 24], [-1.6, 24], [-1.6, 20]]])
# Difa
def r303(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[-5.2, 20], [-8.8, 20], [-8.8, 24], [-5.2, 24], [-5.2, 20]]])
# Muhammad Reza Syachrani 1174084
def r307(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[9.2, 20], [5.6, 20], [5.6, 24], [9.2, 24], [9.2, 20]]])
def r308(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[12.8, 20], [9.2, 20], [9.2, 24], [12.8, 24], [12.8, 20]]])
# Kaka Kamaludin 1174067
def r305(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[2, 20], [-1.6, 20], [-1.6, 24], [2, 24], [2, 20]]])
def r306(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[5.6, 20], [2, 20], [2, 24], [5.6, 24], [5.6, 20]]])
# Arrizal Furqona Gifary 1174070
def r309(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[16.4, 20], [12.8, 20], [12.8, 24], [16.4, 24], [16.4, 20]]])
# Fanny Shafira 1174069
def r310(self, nama):
self.ketiga.record(nama)
self.ketiga.poly(
[[[20, 20], [16.4, 20], [16.4, 24], [20, 24], [20, 20]]])
# Chandra Kirana Poetra 1174079
def rwccewek2(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[22, 20], [20, 20], [20, 24], [22, 24], [22, 20]]])
def rwccewek3(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[24, 20], [22, 20], [22, 24], [24, 24], [24, 20]]])
# Mochamad Arifqi Ramadhan 1174074
def tanggaB2(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[27, 20], [24, 20], [24, 27], [27, 27], [27, 20]]])
# Handi Handi Hermawan 1174080
def r311(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[16, 12], [16, 18], [22, 18], [22, 12], [16, 12]]])
# Bakti Qilan Mufid 1174083
def r312(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[16, 6], [16, 12], [22, 12], [22, 6], [16, 6]]])
def tanggaB1(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[27, -3], [24, -3], [24, 4], [27, 4], [27, -3]]])
#Ainul Filiani 1174073
def rwccewek1(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[24, 0], [22, 0], [22, 4], [24, 4], [24, 0]]])
# Aulyardha Anindita 1174054
def rwccowok(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[22, 0], [20, 0], [20, 4], [22, 4], [22, 0]]])
# Nurul Izza Hamka 1174062
def rteknisi(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[20, 0], [14, 0], [14, 4], [20, 4], [20, 0]]])
#Tia Nur Candida 1174086
def r314(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[14, 0], [8, 0], [8, 4], [14, 4], [14, 0]]])
# D.Irga B. Naufal Fakhri 1174066
def r315(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[8, 0], [2, 0], [2, 4], [8, 4], [8, 0]]])
def r316(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[2, 0], [-4, 0], [-4, 4], [2, 4], [2, 0]]])
# Muhammad Abdul Gani Wijaya 1174071
def r319(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[-8, 6], [-13, 6], [-13, 10], [-8, 10], [-8, 6]]])
def r320(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[-8, 10], [-13, 10], [-13, 14], [-8, 14], [-8, 10]]])
#Alfadian Owen 1174091
def r321(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[-8, 14], [-13, 14], [-13, 18], [-8, 18], [-8, 14]]])
def center(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[12, 7], [12, 17], [-4, 17], [-4, 7], [12, 7]]])
#Dini Permata Putri 1174053
def r317(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[-4, 0], [-10, 0], [-10, 4], [-4, 4], [-4, 0]]])
def r318(self, nama):
self.ketiga.record(nama)
self.ketiga.poly([[[-10, 0], [-16, 0], [-16, 4], [-10, 4], [-10, 0]]])
#-------------------- BATAS END KODING ------------------#
def close(self):
self.ketiga.close()
| 32.042424
| 80
| 0.493475
| 757
| 5,287
| 3.439894
| 0.187583
| 0.238095
| 0.311828
| 0.200461
| 0.482719
| 0.482719
| 0.482719
| 0.482719
| 0.482719
| 0.402074
| 0
| 0.183822
| 0.270475
| 5,287
| 164
| 81
| 32.237805
| 0.491314
| 0.117836
| 0
| 0.365385
| 0
| 0
| 0.004095
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.298077
| false
| 0
| 0.009615
| 0
| 0.317308
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
acafeaf4a7375019a15b09a6c59c9fea7111de4b
| 6,109
|
py
|
Python
|
utils/vae.py
|
lim0606/pytorch-generative-multisensory-network
|
646404db3f6fdad0c6663b861be747c1032ec291
|
[
"MIT"
] | 2
|
2019-11-06T14:03:52.000Z
|
2019-12-25T22:35:19.000Z
|
utils/vae.py
|
lim0606/pytorch-generative-multisensory-network
|
646404db3f6fdad0c6663b861be747c1032ec291
|
[
"MIT"
] | null | null | null |
utils/vae.py
|
lim0606/pytorch-generative-multisensory-network
|
646404db3f6fdad0c6663b861be747c1032ec291
|
[
"MIT"
] | null | null | null |
'''
miscellaneous functions: prob
'''
import os
import datetime
import math
import numpy as np
import torch
import torch.nn.functional as F
#from torch.autograd import Variable
#from torch.distributions import Categorical, Normal
''' for vae '''
def loss_recon_bernoulli_with_logit(logit, x):
# p = recon prob
return F.binary_cross_entropy_with_logits(logit, x, size_average=False)
def loss_recon_bernoulli(p, x):
# p = recon prob
return F.binary_cross_entropy(p, x, size_average=False)
def loss_recon_gaussian(mu, logvar, x, const=None, do_sum=True):
# https://math.stackexchange.com/questions/1307381/logarithm-of-gaussian-function-is-whether-convex-or-nonconvex
# mu, logvar = nomral distribution
recon_loss_element = logvar + (x - mu)**2 / logvar.exp() #+ math.log(2.*math.pi)
# add const (can be used in change of variable)
if const is not None:
recon_loss_element += const
# do sum
if do_sum:
recon_loss = torch.sum(recon_loss_element) * 0.5 + math.log(2.*math.pi)*0.5
return recon_loss
else:
batch_size = recon_loss_element.size(0)
recon_loss_element = torch.sum(recon_loss_element.view(batch_size, -1), 1) * 0.5 + math.log(2.*math.pi)*0.5
return recon_loss_element
def loss_recon_gaussian_w_fixed_var(mu, x, std=1.0, const=None, do_sum=True, add_logvar=True):
# init var, logvar
var = std**2
logvar = math.log(var)
# estimate loss per element
if add_logvar:
recon_loss_element = logvar + (x - mu)**2 / var #+ math.log(2.*math.pi)
else:
recon_loss_element = (x - mu)**2 / var #+ math.log(2.*math.pi)
# add const (can be used in change of variable)
if const is not None:
recon_loss_element += const
# do sum
if do_sum:
recon_loss = torch.sum(recon_loss_element) * 0.5 + math.log(2.*math.pi)*0.5
return recon_loss
else:
batch_size = recon_loss_element.size(0)
recon_loss_element = torch.sum(recon_loss_element.view(batch_size, -1), 1) * 0.5 + math.log(2.*math.pi)*0.5
return recon_loss_element
def loss_recon_laplace(mu, logvar, x, const=None, do_sum=True):
# https://math.stackexchange.com/questions/1307381/logarithm-of-gaussian-function-is-whether-convex-or-nonconvex
# mu, logvar = nomral distribution
recon_loss_element = logvar + torch.abs(x - mu) / logvar.exp() #+ math.log(2.)
# add const (can be used in change of variable)
if const is not None:
recon_loss_element += const
# do sum
if do_sum:
recon_loss = torch.sum(recon_loss_element) + math.log(2.)
return recon_loss
else:
batch_size = recon_loss_element.size(0)
recon_loss_element = torch.sum(recon_loss_element.view(batch_size, -1), 1) + math.log(2.)
return recon_loss_element
def loss_recon_laplace_w_fixed_var(mu, x, std=1.0, const=None, do_sum=True, add_logvar=True):
# init var, logvar
var = std**2
logvar = math.log(var)
# estimate loss per element
if add_logvar:
recon_loss_element = logvar + torch.abs(x - mu) / var #+ math.log(2.)
else:
recon_loss_element = torch.abs(x - mu) / var #+ math.log(2.)
# add const (can be used in change of variable)
if const is not None:
recon_loss_element += const
# do sum
if do_sum:
recon_loss = torch.sum(recon_loss_element) + math.log(2.)
return recon_loss
else:
batch_size = recon_loss_element.size(0)
recon_loss_element = torch.sum(recon_loss_element.view(batch_size, -1), 1) + math.log(2.)
return recon_loss_element
def loss_kld_gaussian(mu, logvar, do_sum=True):
# see Appendix B from VAE paper:
# Kingma and Welling. Auto-Encoding Variational Bayes. ICLR, 2014
# https://arxiv.org/abs/1312.6114
# 0.5 * sum(1 + log(sigma^2) - mu^2 - sigma^2)
KLD_element = 1 + logvar - mu.pow(2) - logvar.exp()
# do sum
if do_sum:
KLD = torch.sum(KLD_element) * -0.5
return KLD
else:
batch_size = KLD_element.size(0)
KLD_element = torch.sum(KLD_element.view(batch_size, -1), 1) * -0.5
return KLD_element
def loss_kld_gaussian_vs_gaussian(mu1, logvar1, mu2, logvar2, do_sum=True):
# see Appendix B from VAE paper:
# Kingma and Welling. Auto-Encoding Variational Bayes. ICLR, 2014
# https://arxiv.org/abs/1312.6114
# 0.5 * sum(1 + log(sigma^2) - mu^2 - sigma^2)
# https://stats.stackexchange.com/questions/7440/kl-divergence-between-two-univariate-gaussians
# log(sigma2) - log(sigma1) + 0.5 * (sigma1^2 + (mu1 - mu2)^2) / sigma2^2 - 0.5
# 0 - log(sigma1) + 0.5 * (sigma1^2 + mu1^2) - 0.5
# 0 - log(sigma1) + 0.5 * sigma1^2 + 0.5 * mu1^2 - 0.5
# 0 - 0.5 * log(sigma1^2) + 0.5 * sigma1^2 + 0.5 * mu1^2 - 0.5
# log(sigma2) - log(sigma1) + 0.5 * (sigma1^2 + (mu1 - mu2)^2) / sigma2^2 - 0.5
KLD_element = - logvar2 + logvar1 - (logvar1.exp() + (mu1 - mu2)**2) / logvar2.exp() + 1.
# do sum
if do_sum:
KLD = torch.sum(KLD_element) * -0.5
return KLD
else:
batch_size = KLD_element.size(0)
KLD_element = torch.sum(KLD_element.view(batch_size, -1), 1) * -0.5
return KLD_element
#def estimate_loss(buffers):
# kl_loss = 0
# recon_loss = 0
# for mu_x_t, logvar_x_t, mu_z_t, logvar_z_t, mu_z_0_t, logvar_z_0_t, x_t in buffers:
# kl_loss += loss_kld_gaussian(mu_z_t, logvar_z_t, mu_z_0_t, logvar_z_0_t)
# recon_loss += loss_recon_gaussian(mu_x_t, logvar_x_t, x_t)
# loss = recon_loss + kl_loss
# return loss, recon_loss, kl_loss
def loss_kld_gaussian_vs_energy_func(mu1, logvar1, z, energy_func2, do_sum=True):
entropy_element = 1. + math.log(2.*math.pi) + logvar1
log_prob = energy_func2(z)
# do sum
if do_sum:
KLD = torch.sum(entropy_element) * -0.5 - torch.sum(log_prob)
return KLD
else:
batch_size = entropy_element.size(0)
KLD_element = torch.sum(entropy_element.view(batch_size, -1), 1) * -0.5 - torch.sum(log_prob, 1)
return KLD_element
| 36.363095
| 116
| 0.651334
| 985
| 6,109
| 3.831472
| 0.13198
| 0.100159
| 0.127186
| 0.025437
| 0.800477
| 0.763116
| 0.748278
| 0.723105
| 0.693164
| 0.666667
| 0
| 0.045742
| 0.223441
| 6,109
| 167
| 117
| 36.580838
| 0.749789
| 0.324276
| 0
| 0.673913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.097826
| false
| 0
| 0.065217
| 0.021739
| 0.336957
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
acb49ac597e9f18294b623dd74fabc613d9f6380
| 105
|
py
|
Python
|
enthought/naming/pyfs_context_factory.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/naming/pyfs_context_factory.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/naming/pyfs_context_factory.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from apptools.naming.pyfs_context_factory import *
| 26.25
| 50
| 0.857143
| 14
| 105
| 5.928571
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104762
| 105
| 3
| 51
| 35
| 0.882979
| 0.114286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
acc322b7515810d61be419da5871d1ce70c2cb45
| 146
|
py
|
Python
|
pofatu/adapters.py
|
pofatu/pofatu
|
409e37dfc4a512283cd85481ff478368dd3071e9
|
[
"Apache-2.0"
] | 2
|
2022-01-24T09:48:53.000Z
|
2022-01-25T11:18:24.000Z
|
pofatu/adapters.py
|
pofatu/pofatu
|
409e37dfc4a512283cd85481ff478368dd3071e9
|
[
"Apache-2.0"
] | 9
|
2018-08-15T10:47:11.000Z
|
2020-10-26T11:48:37.000Z
|
pofatu/adapters.py
|
pofatu/pofatu
|
409e37dfc4a512283cd85481ff478368dd3071e9
|
[
"Apache-2.0"
] | 1
|
2021-12-17T16:15:27.000Z
|
2021-12-17T16:15:27.000Z
|
from collections import namedtuple
from clld import interfaces
from clld.web.adapters.geojson import GeoJson
from clld.db.meta import DBSession
| 20.857143
| 45
| 0.842466
| 21
| 146
| 5.857143
| 0.571429
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 146
| 6
| 46
| 24.333333
| 0.960938
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
acf13df94125433a96c221bbbce646282b2bbefb
| 87
|
py
|
Python
|
tccli/services/iecp/__init__.py
|
HS-Gray/tencentcloud-cli
|
3822fcfdfed570fb526fe49abe6793e2f9127f4a
|
[
"Apache-2.0"
] | 47
|
2018-05-31T11:26:25.000Z
|
2022-03-08T02:12:45.000Z
|
tccli/services/iecp/__init__.py
|
HS-Gray/tencentcloud-cli
|
3822fcfdfed570fb526fe49abe6793e2f9127f4a
|
[
"Apache-2.0"
] | 23
|
2018-06-14T10:46:30.000Z
|
2022-02-28T02:53:09.000Z
|
tccli/services/iecp/__init__.py
|
HS-Gray/tencentcloud-cli
|
3822fcfdfed570fb526fe49abe6793e2f9127f4a
|
[
"Apache-2.0"
] | 22
|
2018-10-22T09:49:45.000Z
|
2022-03-30T08:06:04.000Z
|
# -*- coding: utf-8 -*-
from tccli.services.iecp.iecp_client import action_caller
| 21.75
| 57
| 0.701149
| 12
| 87
| 4.916667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013699
| 0.16092
| 87
| 4
| 58
| 21.75
| 0.794521
| 0.241379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4a175f1110de4fa3d778d2490f0083bc29077bc0
| 69
|
py
|
Python
|
pylinear/grism/instruments/__init__.py
|
Russell-Ryan/pyLINEAR
|
d68e44bc64d302b816db69d2becc4de3b15059f9
|
[
"MIT"
] | 2
|
2019-08-07T19:57:04.000Z
|
2021-01-21T22:54:13.000Z
|
pylinear/grism/instruments/__init__.py
|
Russell-Ryan/pyLINEAR
|
d68e44bc64d302b816db69d2becc4de3b15059f9
|
[
"MIT"
] | 1
|
2019-10-02T03:18:26.000Z
|
2019-10-02T03:18:26.000Z
|
pylinear/grism/instruments/__init__.py
|
Russell-Ryan/pyLINEAR
|
d68e44bc64d302b816db69d2becc4de3b15059f9
|
[
"MIT"
] | 5
|
2019-09-03T17:01:10.000Z
|
2020-08-05T17:49:42.000Z
|
from .config import Config
from .load_detector import load_detector
| 17.25
| 40
| 0.84058
| 10
| 69
| 5.6
| 0.5
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 69
| 3
| 41
| 23
| 0.933333
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a86a8bf6aeef083a59cf695ec526e1b30299e576
| 80
|
py
|
Python
|
nk/__init__.py
|
KathyFeiyang/neurokernel
|
8ce5d5159fdec9146299065375fa5f98ded313cb
|
[
"BSD-3-Clause"
] | 235
|
2015-01-27T01:12:54.000Z
|
2022-03-17T23:09:35.000Z
|
nk/__init__.py
|
mreitm/neurokernel
|
8195a500ba1127f719e963465af9f43d6019b884
|
[
"BSD-3-Clause"
] | 29
|
2015-01-12T18:00:45.000Z
|
2020-08-04T22:33:15.000Z
|
nk/__init__.py
|
mreitm/neurokernel
|
8195a500ba1127f719e963465af9f43d6019b884
|
[
"BSD-3-Clause"
] | 67
|
2015-01-18T22:20:49.000Z
|
2021-12-13T03:33:49.000Z
|
from pkgutil import extend_path
__path__ = extend_path(__path__, 'neurokernel')
| 26.666667
| 47
| 0.825
| 10
| 80
| 5.6
| 0.6
| 0.357143
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 80
| 2
| 48
| 40
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.1375
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a88f2da7167137fa07c4b8a9f0e236a8f6b5a712
| 27
|
py
|
Python
|
test3/generated/structures/20170529011635_valid.py
|
nm-wu/RAMLFlask
|
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
|
[
"BSD-3-Clause"
] | 4
|
2017-11-30T10:23:12.000Z
|
2020-06-07T01:05:12.000Z
|
test3/generated/structures/20170616163133_valid.py
|
nm-wu/RAMLFlask
|
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
|
[
"BSD-3-Clause"
] | null | null | null |
test3/generated/structures/20170616163133_valid.py
|
nm-wu/RAMLFlask
|
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
|
[
"BSD-3-Clause"
] | 1
|
2017-12-14T17:11:05.000Z
|
2017-12-14T17:11:05.000Z
|
{'GET /threads/search': []}
| 27
| 27
| 0.592593
| 3
| 27
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 27
| 1
| 27
| 27
| 0.64
| 0
| 0
| 0
| 0
| 0
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
a899dd937f74af4e1bc80545446dcab1e396a0a8
| 55
|
py
|
Python
|
fpipelite/cli/data.py
|
leith-bartrich/fpipelite
|
88970ad4e45c60d90399ca71fddb161ae8ec1eff
|
[
"MIT"
] | null | null | null |
fpipelite/cli/data.py
|
leith-bartrich/fpipelite
|
88970ad4e45c60d90399ca71fddb161ae8ec1eff
|
[
"MIT"
] | null | null | null |
fpipelite/cli/data.py
|
leith-bartrich/fpipelite
|
88970ad4e45c60d90399ca71fddb161ae8ec1eff
|
[
"MIT"
] | null | null | null |
import pathlib
import argparse
import json
import os
| 7.857143
| 15
| 0.818182
| 8
| 55
| 5.625
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 55
| 6
| 16
| 9.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a8c393d7d7b99858e022b6a2efd060c408542e7b
| 156
|
py
|
Python
|
LeetCode/Number of Good Pairs.py
|
UtkarshPathrabe/Competitive-Coding
|
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
|
[
"MIT"
] | 13
|
2021-09-02T07:30:02.000Z
|
2022-03-22T19:32:03.000Z
|
LeetCode/Number of Good Pairs.py
|
UtkarshPathrabe/Competitive-Coding
|
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
|
[
"MIT"
] | null | null | null |
LeetCode/Number of Good Pairs.py
|
UtkarshPathrabe/Competitive-Coding
|
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
|
[
"MIT"
] | 3
|
2021-08-24T16:06:22.000Z
|
2021-09-17T15:39:53.000Z
|
class Solution:
def numIdenticalPairs(self, nums: List[int]) -> int:
return sum(((freq * (freq - 1)) // 2) for _, freq in Counter(nums).items())
| 52
| 83
| 0.615385
| 21
| 156
| 4.52381
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016129
| 0.205128
| 156
| 3
| 83
| 52
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
763b449743f8c5f1c0653d618dc03ef938281715
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/poetry/core/_vendor/pyrsistent/_helpers.py
|
Retraces/UkraineBot
|
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/poetry/core/_vendor/pyrsistent/_helpers.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/poetry/core/_vendor/pyrsistent/_helpers.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/70/5d/17/f4d2731a4f82fc96aa9e7acae1b55fe4ed0fe023182086f1cc9697dd88
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.395833
| 0
| 96
| 1
| 96
| 96
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
764b8cb8fe6c0de37a913c5510181539665fd3a4
| 2,295
|
py
|
Python
|
skyfield/tests/test_magnitudes_raw.py
|
zanzibar7/python-skyfield
|
332038d49ea5814061336cd70cad1d819e630f2b
|
[
"MIT"
] | null | null | null |
skyfield/tests/test_magnitudes_raw.py
|
zanzibar7/python-skyfield
|
332038d49ea5814061336cd70cad1d819e630f2b
|
[
"MIT"
] | null | null | null |
skyfield/tests/test_magnitudes_raw.py
|
zanzibar7/python-skyfield
|
332038d49ea5814061336cd70cad1d819e630f2b
|
[
"MIT"
] | 1
|
2020-12-21T15:07:51.000Z
|
2020-12-21T15:07:51.000Z
|
from skyfield import magnitudelib as m
from skyfield.api import load
def test_front_end_function():
# Simply call the routine with each planet to discover any exceptions.
ts = load.timescale()
t = ts.utc(2020, 7, 31)
eph = load('de421.bsp')
for name in ('mercury', 'venus', 'earth',
'jupiter barycenter', 'uranus barycenter'):
astrometric = eph['sun'].at(t).observe(eph[name])
m.planetary_magnitude(astrometric)
def test_mercury_magnitude_function():
assert abs(-2.477 - m._mercury_magnitude(0.310295423552, 1.32182643625754, 1.1677)) < 0.0005
assert abs(0.181 - m._mercury_magnitude(0.413629222334, 0.92644808718613, 90.1662)) < 0.0005
assert abs(7.167 - m._mercury_magnitude(0.448947624811, 0.56004973217883, 178.7284)) < 0.0005
def test_venus_magnitude_function():
assert abs(-3.917 - m._venus_magnitude(0.722722540169, 1.71607489554051, 1.3232)) < 0.0005
assert abs(-4.916 - m._venus_magnitude(0.721480714554, 0.37762511206278, 124.1348)) < 0.0005
assert abs(-3.090 - m._venus_magnitude(0.726166592736, 0.28889582420642, 179.1845)) < 0.0005
def test_earth_magnitude_function():
assert abs(-3.269 - m._earth_magnitude(0.983331936476, 1.41317594650699, 8.7897)) < 0.0005
assert abs(-6.909 - m._earth_magnitude(0.983356079811, 0.26526856764726, 4.1369)) < 0.0005
assert abs(1.122 - m._earth_magnitude(0.983356467727, 0.62933287342927, 175.6869)) < 0.0005
def test_mars_magnitude_function():
pass
def test_jupiter_magnitude_function():
assert abs(-1.667 - m._jupiter_magnitude(5.446231815414, 6.44985867459088, 0.2446)) < 0.0005
assert abs(-2.934 - m._jupiter_magnitude(4.957681473205, 3.95393078136013, 0.3431)) < 0.0005
assert abs(0.790 - m._jupiter_magnitude(5.227587855371, 5.23501920009381, 147.0989)) < 0.0005
def test_saturn_magnitude_function():
pass
def test_uranus_magnitude_function():
assert abs(5.381 - m._uranus_magnitude(18.321003215845, 17.3229728525108, 0.0410, -20.29, -20.28)) < 0.0005
assert abs(6.025 - m._uranus_magnitude(20.096361095266, 21.0888470145276, 0.0568, 1.02, 0.97)) < 0.0005
assert abs(8.318 - m._uranus_magnitude(19.38003071775, 11.1884243801383, 161.7728, -71.16, 55.11)) < 0.0005
def test_neptune_magnitude_function():
pass
| 48.829787
| 111
| 0.721133
| 342
| 2,295
| 4.669591
| 0.421053
| 0.084534
| 0.068879
| 0.087664
| 0.10645
| 0
| 0
| 0
| 0
| 0
| 0
| 0.344179
| 0.142919
| 2,295
| 46
| 112
| 49.891304
| 0.467717
| 0.02963
| 0
| 0.083333
| 0
| 0
| 0.028764
| 0
| 0
| 0
| 0
| 0
| 0.416667
| 1
| 0.25
| false
| 0.083333
| 0.055556
| 0
| 0.305556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
76763f021a882ad20746a981e0defd2a0e56be15
| 77
|
py
|
Python
|
env_wrappers/__init__.py
|
geyang/env-wrappers
|
a1ae85f93972f5a006d141a854fd0c492b29a79a
|
[
"MIT"
] | null | null | null |
env_wrappers/__init__.py
|
geyang/env-wrappers
|
a1ae85f93972f5a006d141a854fd0c492b29a79a
|
[
"MIT"
] | 1
|
2021-07-13T03:04:03.000Z
|
2021-07-13T03:04:03.000Z
|
env_wrappers/__init__.py
|
geyang/env-wrappers
|
a1ae85f93972f5a006d141a854fd0c492b29a79a
|
[
"MIT"
] | null | null | null |
from .monitor import Monitor
from .vec_env import SubprocVecEnv, DummyVecEnv
| 25.666667
| 47
| 0.844156
| 10
| 77
| 6.4
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116883
| 77
| 2
| 48
| 38.5
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
767b04d306ba0e87cf37997f796288cad64aa112
| 125
|
py
|
Python
|
msdm/core/problemclasses/problemclass.py
|
markkho/msdm
|
f2e07cdf1a16f7a0564a4822caed89a758e14bf1
|
[
"MIT"
] | 15
|
2020-09-09T14:08:10.000Z
|
2022-02-24T14:19:39.000Z
|
msdm/core/problemclasses/problemclass.py
|
markkho/msdm
|
f2e07cdf1a16f7a0564a4822caed89a758e14bf1
|
[
"MIT"
] | 28
|
2020-09-13T22:12:03.000Z
|
2022-02-20T18:42:56.000Z
|
msdm/core/problemclasses/problemclass.py
|
markkho/msdm
|
f2e07cdf1a16f7a0564a4822caed89a758e14bf1
|
[
"MIT"
] | 3
|
2021-07-21T15:05:01.000Z
|
2022-02-07T04:01:55.000Z
|
from abc import ABC, abstractmethod
class ProblemClass(ABC):
"""Abstract superclass for all problem classes"""
pass
| 20.833333
| 53
| 0.736
| 15
| 125
| 6.133333
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184
| 125
| 5
| 54
| 25
| 0.901961
| 0.344
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
768fe1ce0090db1c9c43afabdb2c56657a952b9b
| 164
|
py
|
Python
|
config.py
|
Jaahd/pyBot_Recast
|
c7668f06fc669d798b213dcba48c4c2757d3695a
|
[
"Unlicense"
] | null | null | null |
config.py
|
Jaahd/pyBot_Recast
|
c7668f06fc669d798b213dcba48c4c2757d3695a
|
[
"Unlicense"
] | null | null | null |
config.py
|
Jaahd/pyBot_Recast
|
c7668f06fc669d798b213dcba48c4c2757d3695a
|
[
"Unlicense"
] | null | null | null |
import os
os.environ.setdefault('REQUEST_TOKEN', '8d5c5bfbeb3cb85c928f7b8911b6b2b1')
os.environ.setdefault('LANGUAGE', 'en')
os.environ.setdefault('PORT', '5000')
| 27.333333
| 74
| 0.780488
| 18
| 164
| 7.055556
| 0.611111
| 0.212598
| 0.448819
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135484
| 0.054878
| 164
| 5
| 75
| 32.8
| 0.683871
| 0
| 0
| 0
| 0
| 0
| 0.384146
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
| 0
| 0
| 0
| 0
|
0
| 5
|
76901d8f70504856a4763803033fbce08c961c66
| 172
|
py
|
Python
|
aligo/exc.py
|
james-song/aligo-rest-client-python
|
fc83650ad308335ab12d419b0cc25fc30e143c44
|
[
"MIT"
] | null | null | null |
aligo/exc.py
|
james-song/aligo-rest-client-python
|
fc83650ad308335ab12d419b0cc25fc30e143c44
|
[
"MIT"
] | null | null | null |
aligo/exc.py
|
james-song/aligo-rest-client-python
|
fc83650ad308335ab12d419b0cc25fc30e143c44
|
[
"MIT"
] | null | null | null |
class AllowSenderError(Exception):
pass
class AllowAuthError(Exception):
pass
class NotEnoughPoint(Exception):
pass
class AligoError(Exception):
pass
| 11.466667
| 34
| 0.732558
| 16
| 172
| 7.875
| 0.4375
| 0.412698
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197674
| 172
| 14
| 35
| 12.285714
| 0.913043
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
769314ee6b38756a0814b68b60102011d5985921
| 413
|
py
|
Python
|
src/games/nnet_agent.py
|
im0qianqian/Reversi-based-RL
|
ef3723ffa26210bf04f19ffb72e5b9a43e54c448
|
[
"MIT"
] | 61
|
2019-06-19T04:31:46.000Z
|
2022-02-12T03:36:57.000Z
|
src/games/nnet_agent.py
|
im0qianqian/Reversi-based-RL
|
ef3723ffa26210bf04f19ffb72e5b9a43e54c448
|
[
"MIT"
] | 3
|
2019-06-29T14:49:01.000Z
|
2020-01-06T03:34:25.000Z
|
src/games/nnet_agent.py
|
im0qianqian/Reversi-based-RL
|
ef3723ffa26210bf04f19ffb72e5b9a43e54c448
|
[
"MIT"
] | 12
|
2019-06-19T04:31:49.000Z
|
2022-03-30T05:46:00.000Z
|
class NeuralNetAgent(object):
def predict(self, board):
"""
输入当前棋盘(相对),预测每个点的权值
"""
pass
def train(self, examples):
"""
训练
"""
pass
def save_checkpoint(self, folder, filename):
"""
保存当前的神经网络
"""
pass
def load_checkpoint(self, folder, filename):
"""
加载神经网络
"""
pass
| 15.884615
| 48
| 0.447942
| 33
| 413
| 5.545455
| 0.636364
| 0.114754
| 0.218579
| 0.306011
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.435835
| 413
| 25
| 49
| 16.52
| 0.785408
| 0.094431
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0.444444
| 0
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
769b9b67d812ff40e784db982f373ba97117d94e
| 260
|
py
|
Python
|
httprider/core/http_statuses.py
|
iSWORD/http-rider
|
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
|
[
"MIT"
] | 27
|
2019-12-20T00:10:28.000Z
|
2022-03-09T18:04:23.000Z
|
httprider/core/http_statuses.py
|
iSWORD/http-rider
|
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
|
[
"MIT"
] | 6
|
2019-10-13T08:50:21.000Z
|
2020-06-05T12:23:08.000Z
|
httprider/core/http_statuses.py
|
iSWORD/http-rider
|
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
|
[
"MIT"
] | 7
|
2019-08-10T01:38:31.000Z
|
2021-08-23T05:28:46.000Z
|
def is_2xx(response_code):
return 200 <= response_code < 300
def is_3xx(response_code):
return 300 <= response_code < 400
def is_4xx(response_code):
return 400 <= response_code < 500
def is_5xx(response_code):
return response_code >= 500
| 17.333333
| 37
| 0.711538
| 39
| 260
| 4.435897
| 0.333333
| 0.554913
| 0.416185
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120192
| 0.2
| 260
| 14
| 38
| 18.571429
| 0.711538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
76c1942a7022159a23d99f5664a239044ace677c
| 7,521
|
py
|
Python
|
load.py
|
McybearX/GameTTs
|
d62b675394833038cb7df3992af0b3de08ec4fa6
|
[
"Apache-2.0"
] | null | null | null |
load.py
|
McybearX/GameTTs
|
d62b675394833038cb7df3992af0b3de08ec4fa6
|
[
"Apache-2.0"
] | null | null | null |
load.py
|
McybearX/GameTTs
|
d62b675394833038cb7df3992af0b3de08ec4fa6
|
[
"Apache-2.0"
] | null | null | null |
#assalamu'alaikum warahmatullahi wabarakatuh🙏
#jangan di recode plisss🥲
import os,sys,time
def aahh(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(1./10)
def baner():
os.system("clear")
aahh("\n\x1b[1;97mLoading...")
print ("""\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner1():
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner2():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner3():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner4():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner5():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner6():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner7():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner8():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner9():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner9():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner10():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner11():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ \x1b[1;91mX x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner12():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner13():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner14():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner15():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner16():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner17():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner18():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95m
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner19():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def baner20():
os.system("clear")
print ("""
Loading...
\x1b[1;95m
ʕ\x1b[1;91m X x\x1b[1;95mʔ
| ─ ノ\x1b[1;97m
|\,_ \
| | | |
 ̄  ̄
""")
def loding():
baner()
time.sleep(3)
os.system("clear")
baner1()
time.sleep(1)
baner2()
time.sleep(1)
baner3()
time.sleep(1./5)
baner4()
time.sleep(1./5)
baner5()
time.sleep(1./10)
baner5()
time.sleep(1./10)
baner6()
time.sleep(1./10)
baner7()
time.sleep(1./10)
baner8()
time.sleep(1./5)
baner9()
time.sleep(1./5)
baner10()
time.sleep(1./5)
baner11()
time.sleep(1./5)
baner12()
time.sleep(1./5)
baner13()
time.sleep(1.5)
baner14()
time.sleep(1./7)
baner15()
time.sleep(1./7)
baner16()
time.sleep(1./8)
baner17()
time.sleep(1./10)
baner18()
time.sleep(1./6)
baner19()
time.sleep(1)
baner20()
loding()
| 23.429907
| 82
| 0.270975
| 706
| 7,521
| 2.951841
| 0.09915
| 0.170825
| 0.077255
| 0.084453
| 0.678503
| 0.661228
| 0.661228
| 0.661228
| 0.654511
| 0.654511
| 0
| 0.147235
| 0.579178
| 7,521
| 320
| 83
| 23.503125
| 0.489731
| 0.009041
| 0
| 0.815068
| 0
| 0
| 0.723661
| 0.002953
| 0
| 0
| 0
| 0
| 0
| 1
| 0.082192
| false
| 0
| 0.003425
| 0
| 0.085616
| 0.075342
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
4f3f374ecfa4b72bac5e4656f97d50f3832a043f
| 275
|
py
|
Python
|
ganeshportfolio/__init__.py
|
Ganeshuthiravasagam/ganeshportfolio
|
e481b9909cc4d5fae34e69ef946f0f718938a609
|
[
"MIT"
] | null | null | null |
ganeshportfolio/__init__.py
|
Ganeshuthiravasagam/ganeshportfolio
|
e481b9909cc4d5fae34e69ef946f0f718938a609
|
[
"MIT"
] | null | null | null |
ganeshportfolio/__init__.py
|
Ganeshuthiravasagam/ganeshportfolio
|
e481b9909cc4d5fae34e69ef946f0f718938a609
|
[
"MIT"
] | null | null | null |
def author_name():
return "Ganesh"
def author_education():
return "Purusing Engineering Pre-final Year"
def author_socialmedia():
return "https://www.linkedin.com/in/ganeshuthiravasagam/"
def author_github():
return "https://github.com/Ganeshuthiravasagam/"
| 27.5
| 61
| 0.741818
| 32
| 275
| 6.25
| 0.59375
| 0.18
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130909
| 275
| 9
| 62
| 30.555556
| 0.83682
| 0
| 0
| 0
| 0
| 0
| 0.467153
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
4f63f7b0027b41a4e7198d57db62c7531382985a
| 98
|
py
|
Python
|
PyQuM/ver(0.1)/pyqumrun.py
|
takehuge/PYQUM
|
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
|
[
"MIT"
] | null | null | null |
PyQuM/ver(0.1)/pyqumrun.py
|
takehuge/PYQUM
|
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
|
[
"MIT"
] | null | null | null |
PyQuM/ver(0.1)/pyqumrun.py
|
takehuge/PYQUM
|
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
|
[
"MIT"
] | null | null | null |
from pyqum import create_app
app = create_app()
app.run(host='127.0.0.1', port=5777, debug=True)
| 19.6
| 48
| 0.72449
| 19
| 98
| 3.631579
| 0.736842
| 0.26087
| 0.347826
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114943
| 0.112245
| 98
| 4
| 49
| 24.5
| 0.678161
| 0
| 0
| 0
| 0
| 0
| 0.091837
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4f89c9e57fde35b6e1d3e5d2db41056872772641
| 54
|
py
|
Python
|
nets/__init__.py
|
DHZS/tf-dropblock
|
6ebdd806d43649fe9a9ca306be552058ba352ea2
|
[
"MIT"
] | 84
|
2018-11-08T13:33:20.000Z
|
2021-11-08T09:31:33.000Z
|
nets/__init__.py
|
wanqiuwang/tf-dropblock
|
cff9e764706367890efdcf90fe778feeaf9d865f
|
[
"MIT"
] | 7
|
2018-11-11T14:33:59.000Z
|
2021-02-15T16:58:41.000Z
|
nets/__init__.py
|
wanqiuwang/tf-dropblock
|
cff9e764706367890efdcf90fe778feeaf9d865f
|
[
"MIT"
] | 18
|
2018-11-09T05:28:38.000Z
|
2021-12-09T18:18:28.000Z
|
# Author: An Jiaoyang
# =============================
| 18
| 31
| 0.296296
| 3
| 54
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 54
| 2
| 32
| 27
| 0.333333
| 0.907407
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
96c6476251fc2c0642dc64998606d73476b9db5d
| 140
|
py
|
Python
|
test/e2e/tests/test_bucket.py
|
jmazumder/s3-controller
|
933155e04c9a57c8b3aa86e91985206fd209d56f
|
[
"Apache-2.0"
] | null | null | null |
test/e2e/tests/test_bucket.py
|
jmazumder/s3-controller
|
933155e04c9a57c8b3aa86e91985206fd209d56f
|
[
"Apache-2.0"
] | null | null | null |
test/e2e/tests/test_bucket.py
|
jmazumder/s3-controller
|
933155e04c9a57c8b3aa86e91985206fd209d56f
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from e2e import SERVICE_NAME
class TestBucket:
def test_bucket(self):
pytest.skip(f"No tests for {SERVICE_NAME}")
| 23.333333
| 51
| 0.735714
| 21
| 140
| 4.761905
| 0.809524
| 0.22
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008772
| 0.185714
| 140
| 6
| 51
| 23.333333
| 0.868421
| 0
| 0
| 0
| 0
| 0
| 0.191489
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
96fe20204d5967b6e7e00f5e6ea61e00b00d8bea
| 67
|
py
|
Python
|
eventsrouter/celery.py
|
The-Politico/django-slack-events-router
|
a838d94a55f7be7afeafa19dad093c29e77ebe67
|
[
"MIT"
] | null | null | null |
eventsrouter/celery.py
|
The-Politico/django-slack-events-router
|
a838d94a55f7be7afeafa19dad093c29e77ebe67
|
[
"MIT"
] | 6
|
2019-12-05T00:43:05.000Z
|
2021-06-09T18:39:48.000Z
|
eventsrouter/celery.py
|
The-Politico/django-slack-events-router
|
a838d94a55f7be7afeafa19dad093c29e77ebe67
|
[
"MIT"
] | 1
|
2021-05-30T15:00:36.000Z
|
2021-05-30T15:00:36.000Z
|
# flake8: noqa
from eventsrouter.tasks.webhook import post_webhook
| 22.333333
| 51
| 0.835821
| 9
| 67
| 6.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016667
| 0.104478
| 67
| 2
| 52
| 33.5
| 0.9
| 0.179104
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8b055f36a8d1de72dc687b28a23129c34b3be816
| 76
|
py
|
Python
|
exercicios/ex001.py
|
grievous0/Python_exercises
|
d1bef850c6d0205ff55c6a059e2bff382871853e
|
[
"MIT"
] | null | null | null |
exercicios/ex001.py
|
grievous0/Python_exercises
|
d1bef850c6d0205ff55c6a059e2bff382871853e
|
[
"MIT"
] | null | null | null |
exercicios/ex001.py
|
grievous0/Python_exercises
|
d1bef850c6d0205ff55c6a059e2bff382871853e
|
[
"MIT"
] | null | null | null |
# Criar um programa que escreva 'Olá Mundo!' na tela #
print('Olá Mundo!')
| 19
| 54
| 0.684211
| 12
| 76
| 4.333333
| 0.833333
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184211
| 76
| 3
| 55
| 25.333333
| 0.83871
| 0.657895
| 0
| 0
| 0
| 0
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
8b10c28e87f3281e83782d63b1f6f16ace187c7d
| 186
|
py
|
Python
|
graphql_social_auth/__init__.py
|
SenFullDev66/Django-Graphql-Social-Auth
|
002ab1fca128da8c18dff5c8ced2f4fa3a48d3f0
|
[
"MIT"
] | null | null | null |
graphql_social_auth/__init__.py
|
SenFullDev66/Django-Graphql-Social-Auth
|
002ab1fca128da8c18dff5c8ced2f4fa3a48d3f0
|
[
"MIT"
] | null | null | null |
graphql_social_auth/__init__.py
|
SenFullDev66/Django-Graphql-Social-Auth
|
002ab1fca128da8c18dff5c8ced2f4fa3a48d3f0
|
[
"MIT"
] | null | null | null |
from . import relay
from .mutations import SocialAuthMutation, SocialAuth, SocialAuthJWT
__all__ = ['relay', 'SocialAuthMutation', 'SocialAuth', 'SocialAuthJWT']
__version__ = '0.1.4'
| 26.571429
| 72
| 0.763441
| 18
| 186
| 7.444444
| 0.666667
| 0.41791
| 0.61194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0.112903
| 186
| 6
| 73
| 31
| 0.793939
| 0
| 0
| 0
| 0
| 0
| 0.274194
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8b2691c90a098012ddf957404d9e8e77dc628f43
| 392
|
py
|
Python
|
tests/test_context/test_context_utils.py
|
Hiyorimi/returns
|
25362236f46a939e22e1325df7e4ab71bdc52eb9
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_context/test_context_utils.py
|
Hiyorimi/returns
|
25362236f46a939e22e1325df7e4ab71bdc52eb9
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_context/test_context_utils.py
|
Hiyorimi/returns
|
25362236f46a939e22e1325df7e4ab71bdc52eb9
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from returns.context import Context
def test_context_ask():
"""Ensures that ``ask`` method works correctly."""
assert Context[int].ask()(1) == 1
assert Context[str].ask()('a') == 'a'
def test_context_unit():
"""Ensures that ``unit`` method works correctly."""
assert Context.unit(1)(Context.Empty) == 1
assert Context[int].unit(2)(1) == 2
| 24.5
| 55
| 0.625
| 54
| 392
| 4.462963
| 0.425926
| 0.215768
| 0.116183
| 0.215768
| 0.273859
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024845
| 0.178571
| 392
| 15
| 56
| 26.133333
| 0.723602
| 0.288265
| 0
| 0
| 0
| 0
| 0.007463
| 0
| 0
| 0
| 0
| 0
| 0.571429
| 1
| 0.285714
| true
| 0
| 0.142857
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8b27f01836f674e4dd2c6d5f2d21327e862a9aa9
| 438
|
py
|
Python
|
server/err.py
|
wilicw/info-topic
|
26b8e0f2b2622077ac7f9751ece79758ed13cae0
|
[
"Unlicense"
] | 1
|
2022-01-06T05:20:19.000Z
|
2022-01-06T05:20:19.000Z
|
server/err.py
|
wilicw/info-topic
|
26b8e0f2b2622077ac7f9751ece79758ed13cae0
|
[
"Unlicense"
] | null | null | null |
server/err.py
|
wilicw/info-topic
|
26b8e0f2b2622077ac7f9751ece79758ed13cae0
|
[
"Unlicense"
] | null | null | null |
account_error = {"status": "error", "message": "username or password error!"}, 400
teacher_not_found = {"status": "error", "message": "teacher not found!"}, 400
topic_not_found = {"status": "error", "message": "topic not found!"}, 400
file_not_found = {"status": "error", "message": "file not found!"}, 400
upload_error = {"status": "error", "message": "??"}, 400
not_allow_error = {"status": "error", "message": "method not allow"}, 403
| 62.571429
| 82
| 0.659817
| 56
| 438
| 4.982143
| 0.303571
| 0.236559
| 0.387097
| 0.247312
| 0.27957
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046753
| 0.121005
| 438
| 6
| 83
| 73
| 0.677922
| 0
| 0
| 0
| 0
| 0
| 0.461187
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8b317154a842cacc4163c3d529c6e07732747886
| 17
|
py
|
Python
|
python/test.py
|
bobby-web/programlang
|
d0c1a762a2818a245602824a149f716ab7476ea0
|
[
"MIT"
] | null | null | null |
python/test.py
|
bobby-web/programlang
|
d0c1a762a2818a245602824a149f716ab7476ea0
|
[
"MIT"
] | null | null | null |
python/test.py
|
bobby-web/programlang
|
d0c1a762a2818a245602824a149f716ab7476ea0
|
[
"MIT"
] | null | null | null |
a=1+1
print(a)
| 5.666667
| 9
| 0.529412
| 5
| 17
| 1.8
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 0.235294
| 17
| 2
| 10
| 8.5
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
8ceccdda143d1b93a3ddce967d88b29c7296a552
| 85
|
py
|
Python
|
otc/__init__.py
|
nthparty/ot
|
1269edafb788aba0130f17aa780e91a25cf01439
|
[
"MIT"
] | 1
|
2021-09-10T02:35:30.000Z
|
2021-09-10T02:35:30.000Z
|
otc/__init__.py
|
nthparty/otc
|
04f6b74b669033ee529d6d5cbc5ece9f9933ffef
|
[
"MIT"
] | null | null | null |
otc/__init__.py
|
nthparty/otc
|
04f6b74b669033ee529d6d5cbc5ece9f9933ffef
|
[
"MIT"
] | null | null | null |
"""Gives users direct access to module classes."""
from otc.otc import receive, send
| 28.333333
| 50
| 0.752941
| 13
| 85
| 4.923077
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141176
| 85
| 2
| 51
| 42.5
| 0.876712
| 0.517647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
507b91fccd1a52a8c25b5e4a90a1a4c58fae4c92
| 123
|
py
|
Python
|
pk_model/plotter_factory.py
|
SABS-best-team/SABS-Pharmokinetics-Project
|
608993c0056d2f273f164e3cdb23e6365fe2acfd
|
[
"MIT"
] | 1
|
2021-11-12T20:06:35.000Z
|
2021-11-12T20:06:35.000Z
|
pk_model/plotter_factory.py
|
SABS-best-team/SABS-Pharmokinetics-Project
|
608993c0056d2f273f164e3cdb23e6365fe2acfd
|
[
"MIT"
] | 1
|
2021-10-21T14:49:23.000Z
|
2021-10-21T14:49:23.000Z
|
pk_model/plotter_factory.py
|
SABS-best-team/SABS-Pharmokinetics-Project
|
608993c0056d2f273f164e3cdb23e6365fe2acfd
|
[
"MIT"
] | null | null | null |
from .plotters.plotFromCSV import PlotFromCSV
class PlotterFactory():
def getPlotFromCSV():
return PlotFromCSV
| 24.6
| 45
| 0.756098
| 11
| 123
| 8.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178862
| 123
| 5
| 46
| 24.6
| 0.920792
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
508c47f98c5d4951fc383b58161789e9c41ac1cb
| 31
|
py
|
Python
|
Trees/__init__.py
|
dileeppandey/hello-interview
|
78f6cf4e2da4106fd07f4bd86247026396075c69
|
[
"MIT"
] | null | null | null |
Trees/__init__.py
|
dileeppandey/hello-interview
|
78f6cf4e2da4106fd07f4bd86247026396075c69
|
[
"MIT"
] | null | null | null |
Trees/__init__.py
|
dileeppandey/hello-interview
|
78f6cf4e2da4106fd07f4bd86247026396075c69
|
[
"MIT"
] | 1
|
2020-02-12T16:57:46.000Z
|
2020-02-12T16:57:46.000Z
|
import Trees.TreeNode as Node
| 10.333333
| 29
| 0.806452
| 5
| 31
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 31
| 2
| 30
| 15.5
| 0.961538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
50a011497dc1b2acb3a74b1c87f44995cc463a23
| 5,714
|
py
|
Python
|
irekua_rest_api/filters/items.py
|
IslasGECI/irekua-rest-api
|
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
|
[
"BSD-4-Clause"
] | null | null | null |
irekua_rest_api/filters/items.py
|
IslasGECI/irekua-rest-api
|
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
|
[
"BSD-4-Clause"
] | 11
|
2020-03-28T18:51:50.000Z
|
2022-01-13T01:47:40.000Z
|
irekua_rest_api/filters/items.py
|
IslasGECI/irekua-rest-api
|
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
|
[
"BSD-4-Clause"
] | 1
|
2021-05-06T19:38:14.000Z
|
2021-05-06T19:38:14.000Z
|
import django_filters
from irekua_database.models import Item
from .utils import BaseFilter
search_fields = (
'item_type__name',
)
class Filter(BaseFilter):
is_uploaded = django_filters.BooleanFilter(
field_name='item_file',
method='is_uploaded_filter',
label='is uploaded')
def is_uploaded_filter(self, queryset, name, value):
return queryset.filter(item_file__isnull=value)
class Meta:
model = Item
fields = {
# Item filters
'item_type': ['exact'],
'item_type__name': ['exact', 'icontains'],
# Deployment filters
'sampling_event_device': ['exact'],
'sampling_event_device__latitude': ['exact', 'lt', 'lte', 'gt', 'gte'],
'sampling_event_device__altitude': ['exact', 'lt', 'lte', 'gt', 'gte'],
'sampling_event_device__longitude': ['exact', 'lt', 'lte', 'gt', 'gte'],
'sampling_event_device__deployed_on': ['exact', 'lt', 'lte', 'gt', 'gte'],
'sampling_event_device__recovered_on': ['exact', 'lt', 'lte', 'gt', 'gte'],
# Sampling Event filters
'sampling_event_device__sampling_event': ['exact'],
'sampling_event_device__sampling_event__sampling_event_type': ['exact'],
'sampling_event_device__sampling_event__sampling_event_type__name': ['exact', 'icontains'],
'sampling_event_device__sampling_event__started_on': ['exact', 'lt', 'lte', 'gt', 'gte'],
'sampling_event_device__sampling_event__ended_on': ['exact', 'lt', 'lte', 'gt', 'gte'],
# Collection Site filters
'sampling_event_device__sampling_event__collection_site': ['exact'],
'sampling_event_device__sampling_event__collection_site__internal_id': ['exact', 'icontains'],
'sampling_event_device__sampling_event__collection_site__site_type': ['exact'],
'sampling_event_device__sampling_event__collection_site__site_type__name': ['exact', 'icontains'],
# Site Descriptors filters
'sampling_event_device__sampling_event__collection_site__site_descriptors': ['exact'],
'sampling_event_device__sampling_event__collection_site__site_descriptors__descriptor_type': ['exact'],
'sampling_event_device__sampling_event__collection_site__site_descriptors__descriptor_type__name': ['exact', 'icontains'],
'sampling_event_device__sampling_event__collection_site__site_descriptors__value': ['exact', 'icontains'],
# Site filters
'sampling_event_device__sampling_event__collection_site__site': ['exact'],
'sampling_event_device__sampling_event__collection_site__site__latitude': ['exact', 'lt', 'gt', 'lte', 'gte'],
'sampling_event_device__sampling_event__collection_site__site__longitude': ['exact', 'lt', 'gt', 'lte', 'gte'],
'sampling_event_device__sampling_event__collection_site__site__altitude': ['exact', 'lt', 'gt', 'lte', 'gte'],
# Collection filters
'sampling_event_device__sampling_event__collection': ['exact'],
'sampling_event_device__sampling_event__collection__name': ['exact', 'icontains'],
'sampling_event_device__sampling_event__collection__collection_type': ['exact'],
'sampling_event_device__sampling_event__collection__collection_type__name': ['exact', 'icontains'],
'sampling_event_device__sampling_event__collection__institution': ['exact'],
'sampling_event_device__sampling_event__collection__institution__institution_name': ['exact', 'icontains'],
'sampling_event_device__sampling_event__collection__institution__institution_code': ['exact', 'icontains'],
# Collection Device filters
'sampling_event_device__collection_device': ['exact'],
'sampling_event_device__collection_device__internal_id': ['exact', 'icontains'],
# Physical Device filters
'sampling_event_device__collection_device__physical_device': ['exact'],
'sampling_event_device__collection_device__physical_device__serial_number': ['exact', 'icontains'],
'sampling_event_device__collection_device__physical_device__device__brand': ['exact'],
'sampling_event_device__collection_device__physical_device__device__brand__name': ['exact', 'icontains'],
'sampling_event_device__collection_device__physical_device__device__model': ['exact', 'icontains'],
'sampling_event_device__collection_device__physical_device__device__device_type': ['exact'],
'sampling_event_device__collection_device__physical_device__device__device_type__name': ['exact', 'icontains'],
# Annotation filters
'annotation__labels': ['exact'],
'annotation__labels__value': ['exact', 'icontains'],
'annotation__labels__term_type': ['exact'],
'annotation__labels__term_type__name': ['exact', 'icontains'],
'annotation__annotation_type': ['exact'],
'annotation__annotation_type__name': ['exact', 'icontains'],
# User filters
'created_by': ['exact'],
'created_by__username': ['exact', 'icontains'],
'created_by__first_name': ['exact', 'icontains'],
'created_by__last_name': ['exact', 'icontains'],
'created_by__institution': ['exact'],
'created_by__institution__institution_code': ['exact', 'icontains'],
'created_by__institution__institution_name': ['exact', 'icontains'],
# Date filters
'created_on': ['exact', 'lt', 'lte', 'gt', 'gte'],
}
| 62.108696
| 134
| 0.678684
| 567
| 5,714
| 6.042328
| 0.12522
| 0.250438
| 0.216287
| 0.189142
| 0.738762
| 0.65791
| 0.63164
| 0.558377
| 0.461471
| 0.265324
| 0
| 0
| 0.19986
| 5,714
| 91
| 135
| 62.791209
| 0.749344
| 0.040252
| 0
| 0
| 0
| 0
| 0.620841
| 0.487934
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013889
| false
| 0
| 0.041667
| 0.013889
| 0.111111
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
50ae30cfdc913cc1fff249fb1ff1ae6ce79afbf0
| 44
|
py
|
Python
|
tests/python-reference/tuple/tuple-truth.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 25
|
2015-04-16T04:31:49.000Z
|
2022-03-10T15:53:28.000Z
|
tests/python-reference/tuple/tuple-truth.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2018-11-21T22:40:02.000Z
|
2018-11-26T17:53:11.000Z
|
tests/python-reference/tuple/tuple-truth.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2021-03-26T03:36:19.000Z
|
2021-03-26T03:36:19.000Z
|
___assertTrue(not ())
___assertTrue((42, ))
| 14.666667
| 21
| 0.704545
| 4
| 44
| 6.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.090909
| 44
| 2
| 22
| 22
| 0.575
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
50b6c5c13170dbc378cf20dbfc7d6d8985e19f2d
| 17
|
py
|
Python
|
conedevelopment_files/__init__.py
|
pbauermeister/ConeDevelopment
|
586b0efca135208564149d56a7ab64c70ba052de
|
[
"Unlicense"
] | 1
|
2019-04-23T08:59:22.000Z
|
2019-04-23T08:59:22.000Z
|
conedevelopment_files/__init__.py
|
pbauermeister/ConeDevelopment
|
586b0efca135208564149d56a7ab64c70ba052de
|
[
"Unlicense"
] | null | null | null |
conedevelopment_files/__init__.py
|
pbauermeister/ConeDevelopment
|
586b0efca135208564149d56a7ab64c70ba052de
|
[
"Unlicense"
] | null | null | null |
# to be a module
| 8.5
| 16
| 0.647059
| 4
| 17
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.294118
| 17
| 1
| 17
| 17
| 0.916667
| 0.823529
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
50c64027f490aad9c678dc5aedb023a2c9ab26cc
| 72
|
py
|
Python
|
fluffy/models/__init__.py
|
EmilioDifferding/fluffy-access
|
3efb51da5c950b5f832909e2c179be0d4a42443e
|
[
"MIT"
] | null | null | null |
fluffy/models/__init__.py
|
EmilioDifferding/fluffy-access
|
3efb51da5c950b5f832909e2c179be0d4a42443e
|
[
"MIT"
] | null | null | null |
fluffy/models/__init__.py
|
EmilioDifferding/fluffy-access
|
3efb51da5c950b5f832909e2c179be0d4a42443e
|
[
"MIT"
] | null | null | null |
from fluffy import db
# from .user import User
from .places import Place
| 24
| 25
| 0.791667
| 12
| 72
| 4.75
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 72
| 3
| 25
| 24
| 0.95
| 0.305556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
50d5287103c697b171e56641557d5d4ff9d9a7da
| 529
|
py
|
Python
|
chemdataextractor/errors.py
|
OBrink/chemdataextractor2
|
152a45f6abbf069d2070232fa5c4038569ac7717
|
[
"MIT"
] | 26
|
2020-08-06T13:40:58.000Z
|
2022-03-23T13:34:45.000Z
|
chemdataextractor/errors.py
|
OBrink/chemdataextractor2
|
152a45f6abbf069d2070232fa5c4038569ac7717
|
[
"MIT"
] | 10
|
2021-09-20T16:29:12.000Z
|
2022-03-31T10:40:50.000Z
|
chemdataextractor/errors.py
|
OBrink/chemdataextractor2
|
152a45f6abbf069d2070232fa5c4038569ac7717
|
[
"MIT"
] | 8
|
2020-09-15T14:48:12.000Z
|
2022-01-29T05:54:24.000Z
|
# -*- coding: utf-8 -*-
"""
Error classes for ChemDataExtractor.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
class ChemDataExtractorError(Exception):
"""Base ChemDataExtractor exception."""
pass
class ReaderError(ChemDataExtractorError):
"""Raised when a reader is unable to read a document."""
class ModelNotFoundError(ChemDataExtractorError):
"""Raised when a model file could not be found."""
| 22.041667
| 60
| 0.761815
| 58
| 529
| 6.62069
| 0.655172
| 0.104167
| 0.166667
| 0.171875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002227
| 0.151229
| 529
| 23
| 61
| 23
| 0.853007
| 0.357278
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.5
| 0
| 0.875
| 0.125
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
50e2b2614dbd7d6b7cc3b43c34332639529e25a7
| 103
|
py
|
Python
|
prettyGraphics/__init__.py
|
Kyostenas/prettyGraphics
|
4b8a3baffb2ec835195f4c709ec4b16759087dea
|
[
"MIT"
] | null | null | null |
prettyGraphics/__init__.py
|
Kyostenas/prettyGraphics
|
4b8a3baffb2ec835195f4c709ec4b16759087dea
|
[
"MIT"
] | null | null | null |
prettyGraphics/__init__.py
|
Kyostenas/prettyGraphics
|
4b8a3baffb2ec835195f4c709ec4b16759087dea
|
[
"MIT"
] | null | null | null |
"""
prettyGraphics
--------------
Recopilation of all pretty Libs
"""
from prettyTables import table
| 12.875
| 31
| 0.660194
| 10
| 103
| 6.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145631
| 103
| 8
| 32
| 12.875
| 0.772727
| 0.601942
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
50fd6fca901fccb15b103240bc267b0f378dfd04
| 5,942
|
py
|
Python
|
tests/aws/test_reserved_instance.py
|
arunjayanth/accloudtant
|
e7ad29e5e4b0d25d9669fed4a9246089d5122f4e
|
[
"Apache-2.0"
] | null | null | null |
tests/aws/test_reserved_instance.py
|
arunjayanth/accloudtant
|
e7ad29e5e4b0d25d9669fed4a9246089d5122f4e
|
[
"Apache-2.0"
] | null | null | null |
tests/aws/test_reserved_instance.py
|
arunjayanth/accloudtant
|
e7ad29e5e4b0d25d9669fed4a9246089d5122f4e
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2015-2016 See CONTRIBUTORS.md file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import datetime
from dateutil.tz import tzutc
import accloudtant.aws.reserved_instance
from conftest import MockEC2Instance
from test_reports import get_future_date
def test_retired_ri():
az = 'us-east-1b'
ri_data = {
'ProductDescription': 'Linux/UNIX',
'InstanceTenancy': 'default',
'InstanceCount': 29,
'InstanceType': 'm1.large',
'Start': datetime.datetime(
2011,
6,
5,
6,
20,
10,
494000,
tzinfo=tzutc()
),
'RecurringCharges': [],
'End': datetime.datetime(
2011,
6,
5,
6,
20,
10,
tzinfo=tzutc()
),
'CurrencyCode': 'USD',
'OfferingType': 'Medium Utilization',
'ReservedInstancesId': '46a408c7-c33d-422d-af59-28df1223331f',
'FixedPrice': 910.0,
'AvailabilityZone': az,
'UsagePrice': 0.12,
'Duration': 31536000,
'State': 'retired',
}
ri = accloudtant.aws.reserved_instance.ReservedInstance(ri_data)
assert(ri.id == ri_data['ReservedInstancesId'])
assert(ri.product_description == ri_data['ProductDescription'])
assert(ri.instance_tenancy == ri_data['InstanceTenancy'])
assert(ri.instance_count == ri_data['InstanceCount'])
assert(ri.instance_type == ri_data['InstanceType'])
assert(ri.start == ri_data['Start'])
assert(ri.recurring_charges == ri_data['RecurringCharges'])
assert(ri.end == ri_data['End'])
assert(ri.currency_code == ri_data['CurrencyCode'])
assert(ri.offering_type == ri_data['OfferingType'])
assert(ri.fixed_price == ri_data['FixedPrice'])
assert(ri.az == ri_data['AvailabilityZone'])
assert(ri.usage_price == ri_data['UsagePrice'])
assert(ri.duration == ri_data['Duration'])
assert(ri.state == ri_data['State'])
assert(ri.instances_left == 0)
def test_active_ri():
az = 'us-east-1b'
ri_data = {
'ProductDescription': 'Linux/UNIX',
'InstanceTenancy': 'default',
'InstanceCount': 1,
'InstanceType': 'm1.large',
'Start': datetime.datetime(
2011,
6,
5,
6,
20,
10,
494000,
tzinfo=tzutc()
),
'RecurringCharges': [],
'End': get_future_date(),
'CurrencyCode': 'USD',
'OfferingType': 'Medium Utilization',
'ReservedInstancesId': '46a408c7-c33d-422d-af59-28df1223331f',
'FixedPrice': 910.0,
'AvailabilityZone': az,
'UsagePrice': 0.12,
'Duration': 31536000,
'State': 'active',
}
ri = accloudtant.aws.reserved_instance.ReservedInstance(ri_data)
assert(ri.id == ri_data['ReservedInstancesId'])
assert(ri.product_description == ri_data['ProductDescription'])
assert(ri.instance_tenancy == ri_data['InstanceTenancy'])
assert(ri.instance_count == ri_data['InstanceCount'])
assert(ri.instance_type == ri_data['InstanceType'])
assert(ri.start == ri_data['Start'])
assert(ri.recurring_charges == ri_data['RecurringCharges'])
assert(ri.end == ri_data['End'])
assert(ri.currency_code == ri_data['CurrencyCode'])
assert(ri.offering_type == ri_data['OfferingType'])
assert(ri.fixed_price == ri_data['FixedPrice'])
assert(ri.az == ri_data['AvailabilityZone'])
assert(ri.usage_price == ri_data['UsagePrice'])
assert(ri.duration == ri_data['Duration'])
assert(ri.state == ri_data['State'])
assert(ri.instances_left == ri_data['InstanceCount'])
def test_ri_link():
az = 'us-east-1b'
ri_data = {
'ProductDescription': 'Linux/UNIX',
'InstanceTenancy': 'default',
'InstanceCount': 1,
'InstanceType': 'm1.large',
'Start': datetime.datetime(
2015,
6,
5,
6,
20,
10,
494000,
tzinfo=tzutc()
),
'RecurringCharges': [],
'End': get_future_date(),
'CurrencyCode': 'USD',
'OfferingType': 'Medium Utilization',
'ReservedInstancesId': '46a408c7-c33d-422d-af59-28df1223331f',
'FixedPrice': 910.0,
'AvailabilityZone': az,
'UsagePrice': 0.12,
'Duration': 31536000,
'State': 'active',
}
instance_data = {
'id': 'i-1840273e',
'tags': [{
'Key': 'Name',
'Value': 'app1',
}, ],
'instance_type': 'm1.large',
'placement': {
'AvailabilityZone': az,
},
'state': {
'Name': 'running',
},
'launch_time': datetime.datetime(
2015,
10,
22,
14,
15,
10,
tzinfo=tzutc()
),
'console_output': {'Output': 'Linux', },
}
ri = accloudtant.aws.reserved_instance.ReservedInstance(ri_data)
instance = MockEC2Instance(instance_data)
assert(ri.instances_left == 1)
ri.link(instance)
assert(ri.instances_left == 0)
| 31.439153
| 76
| 0.561595
| 590
| 5,942
| 5.518644
| 0.279661
| 0.068182
| 0.029484
| 0.036855
| 0.714373
| 0.70731
| 0.70731
| 0.70731
| 0.682432
| 0.682432
| 0
| 0.054061
| 0.305789
| 5,942
| 188
| 77
| 31.606383
| 0.735273
| 0.098283
| 0
| 0.775
| 0
| 0
| 0.244852
| 0.020217
| 0
| 0
| 0
| 0
| 0.2125
| 1
| 0.01875
| false
| 0
| 0.03125
| 0
| 0.05
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0f9d587e328f25c29fbc798b96a5e0605fa4df05
| 47
|
py
|
Python
|
mu_code/image.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
mu_code/image.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
mu_code/image.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
from microbit import *
display.show(Image.YES)
| 15.666667
| 23
| 0.787234
| 7
| 47
| 5.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 47
| 3
| 23
| 15.666667
| 0.880952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0f9ecd67f5677bc38d7354468208c7fcb4841843
| 93
|
py
|
Python
|
src/webui/backend/webui/api/__init__.py
|
sfc-gh-kmaurya/SnowAlert
|
8df0c9edde054463776fa58e88036ee2a783a41f
|
[
"Apache-2.0"
] | 144
|
2018-05-14T18:04:16.000Z
|
2022-03-27T20:11:01.000Z
|
src/webui/backend/webui/api/__init__.py
|
sfc-gh-kmaurya/SnowAlert
|
8df0c9edde054463776fa58e88036ee2a783a41f
|
[
"Apache-2.0"
] | 190
|
2019-01-09T01:00:30.000Z
|
2022-03-31T07:04:16.000Z
|
src/webui/backend/webui/api/__init__.py
|
isabella232/SnowAlert
|
85608343ac80bfcad69267e65eae5a21b9ad454d
|
[
"Apache-2.0"
] | 72
|
2018-07-28T16:09:18.000Z
|
2022-03-19T06:01:25.000Z
|
from .data import data_api
from .rules import rules_api
__all__ = ['data_api', 'rules_api']
| 18.6
| 35
| 0.752688
| 15
| 93
| 4.133333
| 0.4
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139785
| 93
| 4
| 36
| 23.25
| 0.775
| 0
| 0
| 0
| 0
| 0
| 0.182796
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0f9ede78e7e2a1bffd546e2e26496ef580ec5cf0
| 259
|
py
|
Python
|
mayan/apps/rest_api/__init__.py
|
camerondphillips/MAYAN
|
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
|
[
"Apache-2.0"
] | null | null | null |
mayan/apps/rest_api/__init__.py
|
camerondphillips/MAYAN
|
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
|
[
"Apache-2.0"
] | 1
|
2022-03-12T01:03:39.000Z
|
2022-03-12T01:03:39.000Z
|
mayan/apps/rest_api/__init__.py
|
camerondphillips/MAYAN
|
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
|
[
"Apache-2.0"
] | null | null | null |
from __future__ import unicode_literals
from project_tools.api import register_tool
from .classes import APIEndPoint
from .links import link_api, link_api_documentation
APIEndPoint('rest_api')
register_tool(link_api)
register_tool(link_api_documentation)
| 21.583333
| 51
| 0.861004
| 36
| 259
| 5.75
| 0.444444
| 0.135266
| 0.193237
| 0.183575
| 0.198068
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092664
| 259
| 11
| 52
| 23.545455
| 0.880851
| 0
| 0
| 0
| 0
| 0
| 0.030888
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.571429
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0fd7c92647f98fec702589dd0cf8232ef4b1f3e4
| 189
|
py
|
Python
|
Interview/roots_of_equation.py
|
dnootana/Python
|
2881bafe8bc378fa3cae50a747fcea1a55630c63
|
[
"MIT"
] | 1
|
2021-02-19T11:00:11.000Z
|
2021-02-19T11:00:11.000Z
|
Interview/roots_of_equation.py
|
dnootana/Python
|
2881bafe8bc378fa3cae50a747fcea1a55630c63
|
[
"MIT"
] | null | null | null |
Interview/roots_of_equation.py
|
dnootana/Python
|
2881bafe8bc378fa3cae50a747fcea1a55630c63
|
[
"MIT"
] | null | null | null |
N = 2
for i in range(1,N):
for j in range(1,N):
for k in range(1,N):
for l in range(1,N):
if i**3+j**3==k**3+l**3:
print(i,j,k,l)
| 27
| 40
| 0.386243
| 40
| 189
| 1.825
| 0.325
| 0.383562
| 0.438356
| 0.493151
| 0.493151
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.428571
| 189
| 7
| 41
| 27
| 0.592593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ba1f1bb21ef95555322c23fd76ab61207b07370a
| 374
|
py
|
Python
|
rlscore/measure/__init__.py
|
vishalbelsare/RLScore
|
713f0a402f7a09e41a609f2ddcaf849b2021a0a7
|
[
"MIT"
] | 61
|
2015-03-06T08:48:01.000Z
|
2021-04-26T16:13:07.000Z
|
rlscore/measure/__init__.py
|
andrecamara/RLScore
|
713f0a402f7a09e41a609f2ddcaf849b2021a0a7
|
[
"MIT"
] | 5
|
2016-09-08T15:47:00.000Z
|
2019-02-25T17:44:55.000Z
|
rlscore/measure/__init__.py
|
vishalbelsare/RLScore
|
713f0a402f7a09e41a609f2ddcaf849b2021a0a7
|
[
"MIT"
] | 31
|
2015-01-28T15:05:33.000Z
|
2021-04-16T19:39:48.000Z
|
from .accuracy_measure import accuracy
from .auc_measure import auc
from .cindex_measure import cindex
from .fscore_measure import fscore
from .multi_accuracy_measure import ova_accuracy
from .sq_mprank_measure import sqmprank
from .sqerror_measure import sqerror
from .spearman_measure import spearman
try:
from cindex_measure import cindex
except Exception:
pass
| 26.714286
| 48
| 0.842246
| 52
| 374
| 5.826923
| 0.346154
| 0.386139
| 0.138614
| 0.151815
| 0.191419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131016
| 374
| 13
| 49
| 28.769231
| 0.932308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.083333
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
ba2ca3cc3b07e0cf81f279fb421bd3e0d654ae3c
| 15
|
py
|
Python
|
Lib/test/test_compiler/testcorpus/07_ifexpr.py
|
diogommartins/cinder
|
79103e9119cbecef3b085ccf2878f00c26e1d175
|
[
"CNRI-Python-GPL-Compatible"
] | 1,886
|
2021-05-03T23:58:43.000Z
|
2022-03-31T19:15:58.000Z
|
Lib/test/test_compiler/testcorpus/07_ifexpr.py
|
diogommartins/cinder
|
79103e9119cbecef3b085ccf2878f00c26e1d175
|
[
"CNRI-Python-GPL-Compatible"
] | 70
|
2021-05-04T23:25:35.000Z
|
2022-03-31T18:42:08.000Z
|
Lib/test/test_compiler/testcorpus/07_ifexpr.py
|
diogommartins/cinder
|
79103e9119cbecef3b085ccf2878f00c26e1d175
|
[
"CNRI-Python-GPL-Compatible"
] | 52
|
2021-05-04T21:26:03.000Z
|
2022-03-08T18:02:56.000Z
|
a if b else c
| 5
| 13
| 0.6
| 5
| 15
| 1.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.4
| 15
| 2
| 14
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e83ede037cfb65e044a1841846c28443ff4d1e60
| 205
|
py
|
Python
|
python/kaitai/compress/lzma_raw.py
|
kaitaiStructCompile/kaitai_compress
|
2258028b30a422a5d37ba4fdb50da742dd895729
|
[
"MIT"
] | 7
|
2018-11-12T08:37:11.000Z
|
2022-02-27T05:12:55.000Z
|
python/kaitai/compress/lzma_raw.py
|
kaitaiStructCompile/kaitai_compress
|
2258028b30a422a5d37ba4fdb50da742dd895729
|
[
"MIT"
] | 9
|
2019-02-02T09:55:12.000Z
|
2021-10-09T12:17:32.000Z
|
python/kaitai/compress/lzma_raw.py
|
kaitaiStructCompile/kaitai_compress
|
2258028b30a422a5d37ba4fdb50da742dd895729
|
[
"MIT"
] | 3
|
2018-07-15T19:43:27.000Z
|
2021-02-08T01:13:49.000Z
|
import lzma
class LzmaRaw:
def __init__(self):
self.decompressor = lzma.LZMADecompressor(format=lzma.FORMAT_RAW)
def decode(self, data):
return self.decompressor.decompress(data)
| 22.777778
| 73
| 0.712195
| 24
| 205
| 5.875
| 0.625
| 0.22695
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195122
| 205
| 8
| 74
| 25.625
| 0.854545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
e861a4802716a55b908b6c985b17aa070fd9c311
| 100
|
py
|
Python
|
movies_api/admin.py
|
umatbro/movies-db
|
7935b9ff52b4a1da1b8a798a64bdc31e52f9698e
|
[
"MIT"
] | null | null | null |
movies_api/admin.py
|
umatbro/movies-db
|
7935b9ff52b4a1da1b8a798a64bdc31e52f9698e
|
[
"MIT"
] | 17
|
2019-03-16T13:30:12.000Z
|
2020-06-05T20:04:22.000Z
|
movies_api/admin.py
|
umatbro/movies-db
|
7935b9ff52b4a1da1b8a798a64bdc31e52f9698e
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from movies_api import models
admin.site.register(models.Movie)
| 14.285714
| 33
| 0.82
| 15
| 100
| 5.4
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 100
| 6
| 34
| 16.666667
| 0.920455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e86f60add53db641687a44be88b99b95e87079ad
| 56
|
py
|
Python
|
hsi_toolkit/spectral_indices/__init__.py
|
nfahlgren/hsi_toolkit_py
|
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
|
[
"MIT"
] | 22
|
2019-02-07T03:55:37.000Z
|
2021-09-26T06:47:07.000Z
|
hsi_toolkit/spectral_indices/__init__.py
|
nfahlgren/hsi_toolkit_py
|
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
|
[
"MIT"
] | 2
|
2020-04-14T18:21:23.000Z
|
2020-11-11T08:07:38.000Z
|
hsi_toolkit/spectral_indices/__init__.py
|
nfahlgren/hsi_toolkit_py
|
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
|
[
"MIT"
] | 15
|
2019-02-07T03:56:59.000Z
|
2022-02-24T07:42:57.000Z
|
from hsi_toolkit.spectral_indices.utilities_VI import *
| 28
| 55
| 0.875
| 8
| 56
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 56
| 1
| 56
| 56
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e8bde1013f3bca1c619c7b662b90f820b3e834e7
| 38
|
py
|
Python
|
navmplot/__init__.py
|
yycen/navmplot
|
5d3c749ca35eecda8455fbd5c1db529a1bb115b1
|
[
"MIT"
] | null | null | null |
navmplot/__init__.py
|
yycen/navmplot
|
5d3c749ca35eecda8455fbd5c1db529a1bb115b1
|
[
"MIT"
] | null | null | null |
navmplot/__init__.py
|
yycen/navmplot
|
5d3c749ca35eecda8455fbd5c1db529a1bb115b1
|
[
"MIT"
] | null | null | null |
from .navmplot import NaverMapPlotter
| 19
| 37
| 0.868421
| 4
| 38
| 8.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 38
| 1
| 38
| 38
| 0.970588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
e8d0c6f8705c56a61a471071c9667c81854fb545
| 205
|
py
|
Python
|
lingcod/data_distributor/admin_urls.py
|
google-code-export/marinemap
|
b7d58db11720637845b6a83bf70435c32c5af531
|
[
"BSD-3-Clause"
] | 3
|
2017-06-09T20:44:58.000Z
|
2017-12-26T12:09:21.000Z
|
lingcod/data_distributor/admin_urls.py
|
underbluewaters/marinemap
|
c001e16615caa2178c65ca0684e1b6fd56d3f93d
|
[
"BSD-3-Clause"
] | null | null | null |
lingcod/data_distributor/admin_urls.py
|
underbluewaters/marinemap
|
c001e16615caa2178c65ca0684e1b6fd56d3f93d
|
[
"BSD-3-Clause"
] | 3
|
2016-11-30T13:41:56.000Z
|
2019-05-07T17:07:12.000Z
|
from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^potentialtargets/load_potential_targets', load_potential_targets_view, name='load_potential_targets'),
)
| 34.166667
| 113
| 0.785366
| 25
| 205
| 6.16
| 0.68
| 0.253247
| 0.38961
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102439
| 205
| 6
| 114
| 34.166667
| 0.836957
| 0
| 0
| 0
| 0
| 0
| 0.300971
| 0.300971
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
fa18212c253ecdb1eb0403df57b0fc4a96365497
| 4,367
|
py
|
Python
|
discord/ext/appcommands/builder.py
|
jnsougata/discord.py
|
ff204cd71a9c2fbdc12741bae4b32cda198b88d7
|
[
"MIT"
] | null | null | null |
discord/ext/appcommands/builder.py
|
jnsougata/discord.py
|
ff204cd71a9c2fbdc12741bae4b32cda198b88d7
|
[
"MIT"
] | null | null | null |
discord/ext/appcommands/builder.py
|
jnsougata/discord.py
|
ff204cd71a9c2fbdc12741bae4b32cda198b88d7
|
[
"MIT"
] | null | null | null |
from typing import Any
class _Option:
data: Any
class Choice:
def __init__(self, name: str, value: Any):
self.data = {
"name": name,
"value": value
}
class StrOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 3,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class IntOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 4,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class BoolOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 5,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class UserOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 6,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class ChannelOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 7,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class RoleOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 8,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class MentionableOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 9,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class NumberOption(_Option):
def __init__(self, name: str, description: str, required: bool = False, choices: list[Choice] = None):
self.data = {
"name": name,
"description": description,
"type": 10,
"required": required,
"choices": [choice.data for choice in choices] if choices else []
}
class SlashCommand:
def __init__(self, name: str, description: str, options: list[_Option] = None):
self.name = name
self.description = description
self._payload = {
"name": name,
"description": description,
"type": 1,
"options": [option.data for option in options] if options else []
}
@staticmethod
def subcommand(name: str, description: str, options: list):
return {
"name": name,
"description": description,
"type": 1,
"options": options
}
@staticmethod
def subcommand_group(name: str, description: str, options: list):
return {
"name": name,
"description": description,
"type": 2,
"options": options
}
@staticmethod
def create_subcommand(name: str, description: str):
return {
"name": name,
"description": description,
"type": 1,
}
@staticmethod
def set_choice(name: str, value):
return {"name": name, "value": value}
@property
def to_dict(self):
return self._payload
| 29.113333
| 106
| 0.543394
| 428
| 4,367
| 5.413551
| 0.130841
| 0.051791
| 0.093224
| 0.108761
| 0.791109
| 0.765645
| 0.760898
| 0.707812
| 0.707812
| 0.707812
| 0
| 0.004489
| 0.336845
| 4,367
| 149
| 107
| 29.308725
| 0.79558
| 0
| 0
| 0.583333
| 0
| 0
| 0.088619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.008333
| 0.041667
| 0.275
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
fa4b29d441d1497a8e5b019388da40070c6158fb
| 37
|
py
|
Python
|
mopyx/proxy_dict.py
|
yxlwfds/mopyx
|
e4a2180a4307fb25749c5df5a7a35f151dc597d4
|
[
"BSD-3-Clause"
] | 26
|
2019-01-28T22:45:14.000Z
|
2022-03-28T16:34:32.000Z
|
mopyx/proxy_dict.py
|
yxlwfds/mopyx
|
e4a2180a4307fb25749c5df5a7a35f151dc597d4
|
[
"BSD-3-Clause"
] | 2
|
2018-11-23T03:48:00.000Z
|
2021-04-06T09:58:39.000Z
|
mopyx/proxy_dict.py
|
yxlwfds/mopyx
|
e4a2180a4307fb25749c5df5a7a35f151dc597d4
|
[
"BSD-3-Clause"
] | 3
|
2020-09-07T23:39:07.000Z
|
2021-12-30T15:07:55.000Z
|
class DictModelProxy(dict):
pass
| 12.333333
| 27
| 0.72973
| 4
| 37
| 6.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 37
| 2
| 28
| 18.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
fa5a72fc8a472686aea945a00251937e40e2d262
| 45
|
py
|
Python
|
library/lib_study/135_mm_sunau.py
|
gottaegbert/penter
|
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
|
[
"MIT"
] | 13
|
2020-01-04T07:37:38.000Z
|
2021-08-31T05:19:58.000Z
|
library/lib_study/135_mm_sunau.py
|
gottaegbert/penter
|
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
|
[
"MIT"
] | 3
|
2020-06-05T22:42:53.000Z
|
2020-08-24T07:18:54.000Z
|
library/lib_study/135_mm_sunau.py
|
gottaegbert/penter
|
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
|
[
"MIT"
] | 9
|
2020-10-19T04:53:06.000Z
|
2021-08-31T05:20:01.000Z
|
import sunau
# 读写 Sun AU 文件 .au
sunau.open()
| 15
| 19
| 0.688889
| 9
| 45
| 3.444444
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 45
| 3
| 20
| 15
| 0.861111
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
fa5bb1c0bdfe8b730b8ca345ee6cf199e3d05f35
| 100
|
py
|
Python
|
docs/lectures/lecture09/notebook/randomuniverse.py
|
hoanglinh171/2020-CS109A
|
a02dc4f22cb1fa2a9b8453a2831da20655d6c449
|
[
"MIT"
] | 81
|
2020-08-17T10:18:50.000Z
|
2022-03-14T00:10:17.000Z
|
docs/lectures/lecture09/notebook/randomuniverse.py
|
SBalas/2020-CS109A
|
3eb01ac57adbef09c7dbb10eda7408dd4545b3f7
|
[
"MIT"
] | 1
|
2022-02-09T06:15:51.000Z
|
2022-02-09T12:42:44.000Z
|
docs/lectures/lecture09/notebook/randomuniverse.py
|
SBalas/2020-CS109A
|
3eb01ac57adbef09c7dbb10eda7408dd4545b3f7
|
[
"MIT"
] | 95
|
2020-08-29T22:49:34.000Z
|
2022-03-25T18:36:13.000Z
|
def RandomUniverse(df):
df_bootstrap = df.sample(len(df), replace=True)
return df_bootstrap
| 25
| 51
| 0.73
| 14
| 100
| 5.071429
| 0.642857
| 0.309859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 100
| 3
| 52
| 33.333333
| 0.845238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
3afe68e3d6e04c6f3434a1baf5672a50c3fea86e
| 94
|
py
|
Python
|
ding/interaction/tests/interaction/__init__.py
|
sailxjx/DI-engine
|
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
|
[
"Apache-2.0"
] | 464
|
2021-07-08T07:26:33.000Z
|
2022-03-31T12:35:16.000Z
|
ding/interaction/tests/interaction/__init__.py
|
sailxjx/DI-engine
|
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
|
[
"Apache-2.0"
] | 177
|
2021-07-09T08:22:55.000Z
|
2022-03-31T07:35:22.000Z
|
ding/interaction/tests/interaction/__init__.py
|
sailxjx/DI-engine
|
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
|
[
"Apache-2.0"
] | 92
|
2021-07-08T12:16:37.000Z
|
2022-03-31T09:24:41.000Z
|
from .test_errors import TestInteractionErrors
from .test_simple import TestInteractionSimple
| 31.333333
| 46
| 0.893617
| 10
| 94
| 8.2
| 0.7
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 94
| 2
| 47
| 47
| 0.953488
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d75c1b1e5e0790ecdb85af9f6b7c1e017df0293c
| 20
|
py
|
Python
|
pythonmap/__init__.py
|
shakedzy/python_map
|
e8d1c58a8820e75936565fef62c6b335ff493230
|
[
"MIT"
] | 126
|
2015-12-31T17:31:40.000Z
|
2020-01-21T19:45:27.000Z
|
PathPlanning/map/__init__.py
|
curiousTauseef/SmoothPathPlanningFramework
|
5b59bf302013e6dca6f3896288b1d16568e8a1a3
|
[
"MIT"
] | 7
|
2016-01-01T17:10:02.000Z
|
2018-08-09T08:16:19.000Z
|
PathPlanning/map/__init__.py
|
curiousTauseef/SmoothPathPlanningFramework
|
5b59bf302013e6dca6f3896288b1d16568e8a1a3
|
[
"MIT"
] | 14
|
2015-12-31T21:49:29.000Z
|
2017-09-13T06:19:32.000Z
|
from .map import Map
| 20
| 20
| 0.8
| 4
| 20
| 4
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 20
| 1
| 20
| 20
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d77a18642dba5bda2eb3388d3e8c8695f9f6a1f5
| 408
|
py
|
Python
|
modules/menus/menus.py
|
Epersonf/KeplerMotionPathAddon
|
f2e9b2c51402afb0cccbfca8b82b7100b0fc2fa6
|
[
"MIT"
] | 2
|
2020-10-23T21:58:56.000Z
|
2021-12-08T16:07:11.000Z
|
modules/menus/menus.py
|
Epersonf/KeplerMotionPathAddon
|
f2e9b2c51402afb0cccbfca8b82b7100b0fc2fa6
|
[
"MIT"
] | null | null | null |
modules/menus/menus.py
|
Epersonf/KeplerMotionPathAddon
|
f2e9b2c51402afb0cccbfca8b82b7100b0fc2fa6
|
[
"MIT"
] | null | null | null |
import bpy
from .actions.create_ellipse import register as registerCreateEllipse, unregister as unregisterCreateEllipse
from .actions.move_through_ellipse import register as registerMoveThroughEllipse, unregister as unregisterMoveThroughEllipse
def register():
registerCreateEllipse()
registerMoveThroughEllipse()
def unregister():
unregisterCreateEllipse()
unregisterMoveThroughEllipse()
| 31.384615
| 124
| 0.835784
| 33
| 408
| 10.242424
| 0.484848
| 0.065089
| 0.12426
| 0.136095
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115196
| 408
| 12
| 125
| 34
| 0.936288
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| true
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d79211932bbb090451b94948878aef7aec376d6c
| 180
|
py
|
Python
|
src/tools/converters/lib/BCBio/GFF/__init__.py
|
uct-cbio/galaxy-tools
|
b9422088dc41099fdde1edaf9c014825c8ee1cbf
|
[
"MIT"
] | null | null | null |
src/tools/converters/lib/BCBio/GFF/__init__.py
|
uct-cbio/galaxy-tools
|
b9422088dc41099fdde1edaf9c014825c8ee1cbf
|
[
"MIT"
] | null | null | null |
src/tools/converters/lib/BCBio/GFF/__init__.py
|
uct-cbio/galaxy-tools
|
b9422088dc41099fdde1edaf9c014825c8ee1cbf
|
[
"MIT"
] | null | null | null |
"""Top level of GFF parsing providing shortcuts for useful classes.
"""
from GFFParser import GFFParser, DiscoGFFParser, GFFExaminer, parse
from GFFOutput import GFF3Writer, write
| 36
| 67
| 0.811111
| 22
| 180
| 6.636364
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006369
| 0.127778
| 180
| 4
| 68
| 45
| 0.923567
| 0.355556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ad526259d9a23829531a71f90d0f7125376eec5e
| 96
|
py
|
Python
|
playground/nicks/db/utils.py
|
mads-swaps/swap-for-profit
|
543fe8f5b0a990423f3373f29653d57775ea4c25
|
[
"MIT"
] | 2
|
2021-12-16T15:15:58.000Z
|
2021-12-30T06:10:25.000Z
|
playground/nicks/db/utils.py
|
mads-swaps/swap-for-profit
|
543fe8f5b0a990423f3373f29653d57775ea4c25
|
[
"MIT"
] | null | null | null |
playground/nicks/db/utils.py
|
mads-swaps/swap-for-profit
|
543fe8f5b0a990423f3373f29653d57775ea4c25
|
[
"MIT"
] | null | null | null |
import pandas as pd
import matplotlib.pyplot as plt
import mplfinance as mpf
import numpy as np
| 19.2
| 31
| 0.822917
| 17
| 96
| 4.647059
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 96
| 4
| 32
| 24
| 0.9875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ad5bb69b9e8c6cd52d1e28cc8c5a7e9e11738a50
| 6,836
|
py
|
Python
|
tests/test_api_sections.py
|
DMcP89/todoist-api-python
|
89b601b8edad47bc999cd7b2ab36c5e2a9f8cd8a
|
[
"MIT"
] | 24
|
2021-12-07T18:37:29.000Z
|
2022-03-31T23:09:48.000Z
|
tests/test_api_sections.py
|
DMcP89/todoist-api-python
|
89b601b8edad47bc999cd7b2ab36c5e2a9f8cd8a
|
[
"MIT"
] | 15
|
2021-12-01T14:07:25.000Z
|
2022-03-15T23:19:30.000Z
|
tests/test_api_sections.py
|
sadikkuzu/todoist-api-python
|
75db44ad76a210ff4d7a3d5726d0f0ad3389f16e
|
[
"MIT"
] | 3
|
2021-12-08T22:19:12.000Z
|
2022-02-18T06:36:40.000Z
|
import json
import typing
from typing import Any, Dict, List
import pytest
import responses
from tests.data.test_defaults import (
DEFAULT_REQUEST_ID,
INVALID_ENTITY_ID,
REST_API_BASE_URL,
)
from tests.utils.test_utils import (
assert_auth_header,
assert_id_validation,
assert_request_id_header,
)
from todoist_api_python.api import TodoistAPI
from todoist_api_python.api_async import TodoistAPIAsync
from todoist_api_python.models import Section
@pytest.mark.asyncio
async def test_get_section(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
default_section_response: Dict[str, Any],
default_section: Section,
):
section_id = 1234
expected_endpoint = f"{REST_API_BASE_URL}/sections/{section_id}"
requests_mock.add(
responses.GET,
expected_endpoint,
json=default_section_response,
status=200,
)
section = todoist_api.get_section(section_id)
assert len(requests_mock.calls) == 1
assert_auth_header(requests_mock.calls[0].request)
assert section == default_section
section = await todoist_api_async.get_section(section_id)
assert len(requests_mock.calls) == 2
assert_auth_header(requests_mock.calls[1].request)
assert section == default_section
@typing.no_type_check
def test_get_section_invalid_id(
todoist_api: TodoistAPI,
requests_mock: responses.RequestsMock,
):
assert_id_validation(
lambda: todoist_api.get_section(INVALID_ENTITY_ID),
requests_mock,
)
@pytest.mark.asyncio
async def test_get_all_sections(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
default_sections_response: List[Dict[str, Any]],
default_sections_list: List[Section],
):
requests_mock.add(
responses.GET,
f"{REST_API_BASE_URL}/sections",
json=default_sections_response,
status=200,
)
sections = todoist_api.get_sections()
assert len(requests_mock.calls) == 1
assert_auth_header(requests_mock.calls[0].request)
assert sections == default_sections_list
sections = await todoist_api_async.get_sections()
assert len(requests_mock.calls) == 2
assert_auth_header(requests_mock.calls[1].request)
assert sections == default_sections_list
@pytest.mark.asyncio
async def test_get_project_sections(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
default_sections_response: List[Dict[str, Any]],
):
project_id = 123
requests_mock.add(
responses.GET,
f"{REST_API_BASE_URL}/sections?project_id={project_id}",
json=default_sections_response,
status=200,
)
todoist_api.get_sections(project_id=project_id)
await todoist_api_async.get_sections(project_id=project_id)
assert len(requests_mock.calls) == 2
@pytest.mark.asyncio
async def test_add_section(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
default_section_response: Dict[str, Any],
default_section: Section,
):
section_name = "A Section"
project_id = 123
order = 3
expected_payload: Dict[str, Any] = {
"name": section_name,
"project_id": project_id,
"order": order,
}
requests_mock.add(
responses.POST,
f"{REST_API_BASE_URL}/sections",
json=default_section_response,
status=200,
)
new_section = todoist_api.add_section(
name=section_name,
project_id=project_id,
order=order,
request_id=DEFAULT_REQUEST_ID,
)
assert len(requests_mock.calls) == 1
assert_auth_header(requests_mock.calls[0].request)
assert_request_id_header(requests_mock.calls[0].request)
assert requests_mock.calls[0].request.body == json.dumps(expected_payload)
assert new_section == default_section
new_section = await todoist_api_async.add_section(
name=section_name,
project_id=project_id,
order=order,
request_id=DEFAULT_REQUEST_ID,
)
assert len(requests_mock.calls) == 2
assert_auth_header(requests_mock.calls[1].request)
assert_request_id_header(requests_mock.calls[1].request)
assert requests_mock.calls[1].request.body == json.dumps(expected_payload)
assert new_section == default_section
@pytest.mark.asyncio
async def test_update_section(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
):
section_id = 123
args = {
"name": "An updated section",
}
requests_mock.add(
responses.POST, f"{REST_API_BASE_URL}/sections/{section_id}", status=204
)
response = todoist_api.update_section(
section_id=section_id, request_id=DEFAULT_REQUEST_ID, **args
)
assert len(requests_mock.calls) == 1
assert_auth_header(requests_mock.calls[0].request)
assert_request_id_header(requests_mock.calls[0].request)
assert requests_mock.calls[0].request.body == json.dumps(args)
assert response is True
response = await todoist_api_async.update_section(
section_id=section_id, request_id=DEFAULT_REQUEST_ID, **args
)
assert len(requests_mock.calls) == 2
assert_auth_header(requests_mock.calls[1].request)
assert_request_id_header(requests_mock.calls[1].request)
assert requests_mock.calls[1].request.body == json.dumps(args)
assert response is True
@typing.no_type_check
def test_update_section_invalid_id(
todoist_api: TodoistAPI,
requests_mock: responses.RequestsMock,
):
assert_id_validation(
lambda: todoist_api.update_section(INVALID_ENTITY_ID, "an update"),
requests_mock,
)
@pytest.mark.asyncio
async def test_delete_section(
todoist_api: TodoistAPI,
todoist_api_async: TodoistAPIAsync,
requests_mock: responses.RequestsMock,
):
section_id = 1234
expected_endpoint = f"{REST_API_BASE_URL}/sections/{section_id}"
requests_mock.add(
responses.DELETE,
expected_endpoint,
status=204,
)
response = todoist_api.delete_section(section_id)
assert len(requests_mock.calls) == 1
assert_auth_header(requests_mock.calls[0].request)
assert response is True
response = await todoist_api_async.delete_section(section_id)
assert len(requests_mock.calls) == 2
assert_auth_header(requests_mock.calls[1].request)
assert response is True
@typing.no_type_check
def test_delete_section_invalid_id(
todoist_api: TodoistAPI,
requests_mock: responses.RequestsMock,
):
assert_id_validation(
lambda: todoist_api.delete_section(INVALID_ENTITY_ID),
requests_mock,
)
| 27.126984
| 80
| 0.726448
| 869
| 6,836
| 5.364787
| 0.093211
| 0.120978
| 0.105749
| 0.054054
| 0.867224
| 0.817675
| 0.736379
| 0.703346
| 0.679108
| 0.645002
| 0
| 0.011699
| 0.187244
| 6,836
| 251
| 81
| 27.23506
| 0.827394
| 0
| 0
| 0.623762
| 0
| 0
| 0.042422
| 0.033792
| 0
| 0
| 0
| 0
| 0.222772
| 1
| 0.014851
| false
| 0
| 0.049505
| 0
| 0.064356
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ad6cc92f3d60cc7a4303ac80672d490999782fac
| 17
|
py
|
Python
|
Practice.py
|
MoriSheldon/Phython
|
8cb0916321784b9c9932ecb7945621a73a695056
|
[
"MIT"
] | null | null | null |
Practice.py
|
MoriSheldon/Phython
|
8cb0916321784b9c9932ecb7945621a73a695056
|
[
"MIT"
] | null | null | null |
Practice.py
|
MoriSheldon/Phython
|
8cb0916321784b9c9932ecb7945621a73a695056
|
[
"MIT"
] | null | null | null |
print('Practice')
| 17
| 17
| 0.764706
| 2
| 17
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 17
| 1
| 17
| 17
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
ad88b24692aae7504ebf58dad3f5adfd1ec5a529
| 4,770
|
py
|
Python
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/226918488.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 1
|
2020-04-16T12:13:47.000Z
|
2020-04-16T12:13:47.000Z
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/226918488.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:50:15.000Z
|
2020-05-19T14:58:30.000Z
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/226918488.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:45:13.000Z
|
2020-06-09T19:18:31.000Z
|
from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 226918488
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 7, 5, 5)
assert board is not None
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 4, 2) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 4, 2) == 0
assert gamma_move(board, 3, 2, 6) == 1
assert gamma_move(board, 4, 2, 0) == 1
assert gamma_move(board, 5, 6, 0) == 0
assert gamma_move(board, 5, 2, 5) == 1
assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_move(board, 2, 2, 5) == 0
assert gamma_move(board, 3, 0, 4) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 4, 3, 3) == 1
assert gamma_free_fields(board, 4) == 20
assert gamma_move(board, 5, 2, 3) == 1
assert gamma_move(board, 5, 3, 3) == 0
assert gamma_move(board, 1, 2, 2) == 1
assert gamma_move(board, 1, 1, 6) == 1
assert gamma_move(board, 2, 2, 5) == 0
assert gamma_free_fields(board, 3) == 17
board602611692 = gamma_board(board)
assert board602611692 is not None
assert board602611692 == (".13.\n"
"..5.\n"
"3...\n"
"..54\n"
".21.\n"
"....\n"
"114.\n")
del board602611692
board602611692 = None
assert gamma_move(board, 5, 4, 1) == 0
assert gamma_free_fields(board, 5) == 17
assert gamma_golden_possible(board, 5) == 1
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_move(board, 2, 1, 2) == 0
assert gamma_move(board, 2, 3, 6) == 1
assert gamma_move(board, 3, 5, 3) == 0
assert gamma_move(board, 3, 3, 6) == 0
assert gamma_move(board, 4, 1, 0) == 0
assert gamma_free_fields(board, 4) == 15
assert gamma_move(board, 5, 4, 1) == 0
assert gamma_move(board, 5, 1, 0) == 0
assert gamma_move(board, 1, 3, 4) == 1
assert gamma_move(board, 2, 5, 0) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 1, 0) == 0
assert gamma_move(board, 3, 2, 6) == 0
assert gamma_move(board, 4, 3, 5) == 1
assert gamma_move(board, 5, 2, 6) == 0
assert gamma_move(board, 1, 2, 0) == 0
assert gamma_move(board, 2, 2, 5) == 0
assert gamma_move(board, 3, 3, 0) == 0
assert gamma_move(board, 3, 2, 4) == 1
board398567841 = gamma_board(board)
assert board398567841 is not None
assert board398567841 == (".132\n"
"..54\n"
"3.31\n"
"..54\n"
".21.\n"
"....\n"
"1141\n")
del board398567841
board398567841 = None
assert gamma_move(board, 4, 3, 0) == 0
assert gamma_move(board, 4, 2, 6) == 0
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 5, 2, 3) == 0
assert gamma_move(board, 1, 3, 0) == 0
assert gamma_move(board, 1, 2, 0) == 0
assert gamma_move(board, 2, 1, 3) == 1
assert gamma_move(board, 3, 4, 1) == 0
assert gamma_move(board, 3, 2, 2) == 0
assert gamma_move(board, 4, 2, 3) == 0
assert gamma_move(board, 5, 0, 0) == 0
assert gamma_move(board, 5, 0, 0) == 0
assert gamma_move(board, 1, 3, 0) == 0
assert gamma_move(board, 1, 2, 3) == 0
assert gamma_move(board, 2, 4, 1) == 0
assert gamma_move(board, 2, 3, 3) == 0
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_move(board, 3, 3, 4) == 0
assert gamma_move(board, 4, 1, 3) == 0
assert gamma_busy_fields(board, 4) == 3
assert gamma_move(board, 5, 2, 3) == 0
assert gamma_move(board, 5, 2, 1) == 1
assert gamma_busy_fields(board, 5) == 3
assert gamma_move(board, 1, 4, 1) == 0
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_move(board, 3, 2, 3) == 0
assert gamma_move(board, 4, 2, 2) == 0
assert gamma_move(board, 5, 2, 0) == 0
assert gamma_move(board, 5, 0, 6) == 1
board982677401 = gamma_board(board)
assert board982677401 is not None
assert board982677401 == ("5132\n"
"..54\n"
"3.31\n"
".254\n"
".21.\n"
".25.\n"
"1141\n")
del board982677401
board982677401 = None
assert gamma_move(board, 1, 5, 1) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 3, 1, 0) == 0
assert gamma_free_fields(board, 3) == 8
assert gamma_move(board, 4, 5, 1) == 0
assert gamma_move(board, 5, 1, 0) == 0
assert gamma_move(board, 1, 1, 3) == 0
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_move(board, 2, 0, 3) == 1
assert gamma_move(board, 3, 2, 2) == 0
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_free_fields(board, 3) == 7
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 4, 5, 1) == 0
assert gamma_move(board, 5, 0, 0) == 0
assert gamma_move(board, 5, 0, 2) == 1
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 1, 2, 2) == 0
gamma_delete(board)
| 30
| 44
| 0.65283
| 872
| 4,770
| 3.424312
| 0.059633
| 0.346283
| 0.396852
| 0.529136
| 0.792364
| 0.752847
| 0.641326
| 0.482251
| 0.403885
| 0.385466
| 0
| 0.140036
| 0.1826
| 4,770
| 158
| 45
| 30.189873
| 0.625801
| 0
| 0
| 0.314286
| 0
| 0
| 0.026912
| 0
| 0
| 0
| 0
| 0
| 0.721429
| 1
| 0
| false
| 0
| 0.007143
| 0
| 0.007143
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ad9020502a461683c9f44869d0bda14d4e64f16b
| 137
|
py
|
Python
|
tests/test_vlan/__init__.py
|
mteter-upenn/bacpypes
|
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
|
[
"MIT"
] | null | null | null |
tests/test_vlan/__init__.py
|
mteter-upenn/bacpypes
|
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
|
[
"MIT"
] | null | null | null |
tests/test_vlan/__init__.py
|
mteter-upenn/bacpypes
|
88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
"""
Test VLAN Networking
--------------------
This module tests the VLAN networking.
"""
from . import test_network
| 12.454545
| 38
| 0.613139
| 16
| 137
| 5.1875
| 0.8125
| 0.337349
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145985
| 137
| 10
| 39
| 13.7
| 0.709402
| 0.715328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ad91dfcc35f4d348cdb449c40c121b639c510816
| 117
|
py
|
Python
|
swmclient/generated/__init__.py
|
skyworkflows/swm-python-client
|
674979af3d671d27561d651b41682b0e58ff4220
|
[
"BSD-3-Clause"
] | 1
|
2021-11-06T12:19:03.000Z
|
2021-11-06T12:19:03.000Z
|
swmclient/generated/__init__.py
|
skyworkflows/swm-python-client
|
674979af3d671d27561d651b41682b0e58ff4220
|
[
"BSD-3-Clause"
] | null | null | null |
swmclient/generated/__init__.py
|
skyworkflows/swm-python-client
|
674979af3d671d27561d651b41682b0e58ff4220
|
[
"BSD-3-Clause"
] | null | null | null |
""" A client library for accessing Sky Port core daemon user API """
from .client import AuthenticatedClient, Client
| 39
| 68
| 0.777778
| 16
| 117
| 5.6875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 117
| 2
| 69
| 58.5
| 0.919192
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a8ebaa711746afe8b31326ca105548edbae6e8cb
| 77
|
py
|
Python
|
src/procedures/sounds/__init__.py
|
developomp/osu-pomp-skin
|
e44b981f768ea7452cf4bf1bcdcbe44ea844a30c
|
[
"MIT"
] | null | null | null |
src/procedures/sounds/__init__.py
|
developomp/osu-pomp-skin
|
e44b981f768ea7452cf4bf1bcdcbe44ea844a30c
|
[
"MIT"
] | 1
|
2022-03-11T09:16:20.000Z
|
2022-03-11T09:16:20.000Z
|
src/procedures/sounds/__init__.py
|
developomp/osu-pomp-skin
|
e44b981f768ea7452cf4bf1bcdcbe44ea844a30c
|
[
"MIT"
] | null | null | null |
from helper import copy_all
#
# main
#
copy_all("src/procedures/sounds/*")
| 9.625
| 35
| 0.714286
| 11
| 77
| 4.818182
| 0.818182
| 0.264151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 77
| 7
| 36
| 11
| 0.80303
| 0.051948
| 0
| 0
| 0
| 0
| 0.333333
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a8fc99c34f573ddd65d8ed6ff3a32f39e4f12368
| 370
|
py
|
Python
|
ChineseChef.py
|
samratb2002/Basics-of-Python
|
499124ebba1fe40786aff3dd0a4d05a6b3007d6c
|
[
"Unlicense"
] | 1
|
2022-01-21T14:54:47.000Z
|
2022-01-21T14:54:47.000Z
|
ChineseChef.py
|
samratb2002/Basics-of-Python
|
499124ebba1fe40786aff3dd0a4d05a6b3007d6c
|
[
"Unlicense"
] | null | null | null |
ChineseChef.py
|
samratb2002/Basics-of-Python
|
499124ebba1fe40786aff3dd0a4d05a6b3007d6c
|
[
"Unlicense"
] | null | null | null |
#!/usr/bin/env python
# coding: utf-8
# In[3]:
class ChineseChef:
def make_chicken(self):
print("The Chef makes Chicken")
def make_salad(self):
print("The Chef Makes Salad")
def make_special_dish(self):
print("The Chef makes Orange Chicken")
def make_fried_rice(self):
print("The Chef maked Fried Rice")
# In[ ]:
| 16.086957
| 46
| 0.621622
| 52
| 370
| 4.307692
| 0.5
| 0.125
| 0.214286
| 0.285714
| 0.28125
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007273
| 0.256757
| 370
| 22
| 47
| 16.818182
| 0.807273
| 0.12973
| 0
| 0
| 0
| 0
| 0.305732
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0
| 0
| 0
| 0.555556
| 0.444444
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
|
0
| 5
|
d118fbd2910b6ba27d79c701d92828674dfd09ac
| 173
|
py
|
Python
|
Programs/listComprehensions/evenNumbers.py
|
LuciKritZ/python
|
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
|
[
"MIT"
] | null | null | null |
Programs/listComprehensions/evenNumbers.py
|
LuciKritZ/python
|
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
|
[
"MIT"
] | null | null | null |
Programs/listComprehensions/evenNumbers.py
|
LuciKritZ/python
|
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
|
[
"MIT"
] | null | null | null |
# Using third argument in range
lst = [x for x in range(2,21,2)]
print(lst)
# Without using third argument in range
lst1 = [x for x in range(1,21) if(x%2 == 0)]
print(lst1)
| 24.714286
| 44
| 0.676301
| 36
| 173
| 3.25
| 0.444444
| 0.239316
| 0.307692
| 0.34188
| 0.632479
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078014
| 0.184971
| 173
| 7
| 45
| 24.714286
| 0.751773
| 0.387283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
d139e80f9f20550537b79888653938459e3d2772
| 133
|
py
|
Python
|
__init__.py
|
scholi/pyOmicron
|
0cbfe5b3b79a2f3684f90b6c34aabe96bab612e5
|
[
"Apache-2.0"
] | 5
|
2015-12-08T21:00:18.000Z
|
2021-03-17T18:13:52.000Z
|
__init__.py
|
scholi/pyOmicron
|
0cbfe5b3b79a2f3684f90b6c34aabe96bab612e5
|
[
"Apache-2.0"
] | 2
|
2019-02-27T11:53:09.000Z
|
2020-12-04T15:42:01.000Z
|
__init__.py
|
scholi/pyOmicron
|
0cbfe5b3b79a2f3684f90b6c34aabe96bab612e5
|
[
"Apache-2.0"
] | 3
|
2018-03-22T13:28:10.000Z
|
2021-06-02T17:09:36.000Z
|
import pyOmicron
from pyOmicron.pyOmicron import Matrix
from pyOmicron.STS import STS
__all__=["pyOmicron","STS"]
__version__ = 0.1
| 19
| 38
| 0.796992
| 18
| 133
| 5.444444
| 0.5
| 0.265306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.112782
| 133
| 6
| 39
| 22.166667
| 0.813559
| 0
| 0
| 0
| 0
| 0
| 0.090226
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d14f16896be20aa6c8c593353e6ae218c7e4e710
| 738
|
py
|
Python
|
src/pandas_profiling/report/presentation/core/__init__.py
|
damirazo/pandas-profiling
|
e436694befc25463073652b4abddc9b9537a555d
|
[
"MIT"
] | 2
|
2020-01-30T15:01:18.000Z
|
2020-01-30T15:01:19.000Z
|
src/pandas_profiling/report/presentation/core/__init__.py
|
damirazo/pandas-profiling
|
e436694befc25463073652b4abddc9b9537a555d
|
[
"MIT"
] | null | null | null |
src/pandas_profiling/report/presentation/core/__init__.py
|
damirazo/pandas-profiling
|
e436694befc25463073652b4abddc9b9537a555d
|
[
"MIT"
] | null | null | null |
from pandas_profiling.report.presentation.core.frequency_table import FrequencyTable
from pandas_profiling.report.presentation.core.frequency_table_small import (
FrequencyTableSmall,
)
from pandas_profiling.report.presentation.core.html import HTML
from pandas_profiling.report.presentation.core.sequence import Sequence
from pandas_profiling.report.presentation.core.image import Image
from pandas_profiling.report.presentation.core.preview import Preview
from pandas_profiling.report.presentation.core.table import Table
from pandas_profiling.report.presentation.core.overview import Overview
from pandas_profiling.report.presentation.core.dataset import Dataset
from pandas_profiling.report.presentation.core.sample import Sample
| 56.769231
| 84
| 0.879404
| 93
| 738
| 6.83871
| 0.204301
| 0.157233
| 0.298742
| 0.393082
| 0.688679
| 0.688679
| 0.172956
| 0.172956
| 0
| 0
| 0
| 0
| 0.062331
| 738
| 12
| 85
| 61.5
| 0.919075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d16bbca344172994197586753bd056b96a89b5c6
| 128
|
py
|
Python
|
dbgr/__init__.py
|
JakubTesarek/dbgr
|
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
|
[
"Apache-2.0"
] | 8
|
2019-05-23T19:45:46.000Z
|
2021-02-08T17:21:21.000Z
|
dbgr/__init__.py
|
JakubTesarek/dbgr
|
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
|
[
"Apache-2.0"
] | 86
|
2019-05-13T14:20:20.000Z
|
2019-06-19T11:48:59.000Z
|
dbgr/__init__.py
|
JakubTesarek/dbgr
|
fc55cee5d5a69f3fa691579bc7d2627f51cbca03
|
[
"Apache-2.0"
] | 1
|
2021-02-08T17:21:22.000Z
|
2021-02-08T17:21:22.000Z
|
from dbgr.requests import request_decorator as request, execute_request as response
from dbgr.types import SecretType as secret
| 42.666667
| 83
| 0.859375
| 19
| 128
| 5.684211
| 0.631579
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117188
| 128
| 2
| 84
| 64
| 0.955752
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
66fa4355c22495aab9b5c02d9a7d3bd5d2e70e6b
| 135
|
py
|
Python
|
Introduction to Information Technology/Weekly Tutorials/Week_3.py
|
johnsons-ux/100-days-of-python
|
59f8f5b1be85542306103df44383423b00e48931
|
[
"CC0-1.0"
] | 1
|
2022-03-12T07:17:56.000Z
|
2022-03-12T07:17:56.000Z
|
Introduction to Information Technology/Weekly Tutorials/Week_3.py
|
johnsons-ux/100-days-of-python
|
59f8f5b1be85542306103df44383423b00e48931
|
[
"CC0-1.0"
] | null | null | null |
Introduction to Information Technology/Weekly Tutorials/Week_3.py
|
johnsons-ux/100-days-of-python
|
59f8f5b1be85542306103df44383423b00e48931
|
[
"CC0-1.0"
] | null | null | null |
# 1. Write a line of Python code that displays the sum of 468 + 751
print(0.7 * (220-33) +0.3 * 55)
print(0.8 * (225-33) +0.35 * 55)
| 22.5
| 67
| 0.607407
| 30
| 135
| 2.733333
| 0.766667
| 0.146341
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 0.222222
| 135
| 5
| 68
| 27
| 0.495238
| 0.481481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
0f240c2459148cf4c3e8aaaae1037e858ee7f424
| 99
|
py
|
Python
|
end_to_end_tests/golden-record/my_test_api_client/__init__.py
|
oterrier/openapi-python-client
|
ca8acdbe34b11584143b78afc130684f0690d5bf
|
[
"MIT"
] | 172
|
2020-02-15T20:14:16.000Z
|
2021-06-09T07:09:15.000Z
|
end_to_end_tests/golden-record/my_test_api_client/__init__.py
|
oterrier/openapi-python-client
|
ca8acdbe34b11584143b78afc130684f0690d5bf
|
[
"MIT"
] | 410
|
2020-02-15T19:39:29.000Z
|
2021-06-09T19:28:57.000Z
|
end_to_end_tests/golden-record/my_test_api_client/__init__.py
|
oterrier/openapi-python-client
|
ca8acdbe34b11584143b78afc130684f0690d5bf
|
[
"MIT"
] | 38
|
2020-04-12T09:36:27.000Z
|
2021-06-11T08:57:07.000Z
|
""" A client library for accessing My Test API """
from .client import AuthenticatedClient, Client
| 33
| 50
| 0.767677
| 13
| 99
| 5.846154
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 2
| 51
| 49.5
| 0.904762
| 0.424242
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0f28cce2391eb98593494aff901b6dc60d96a142
| 129
|
py
|
Python
|
FaceSwap-master/PRNet-master/utils/cv_plot.py
|
CSID-DGU/-2020-1-OSSP1-ninetynine-2
|
b1824254882eeea0ee44e4e60896b72c51ef1d2c
|
[
"MIT"
] | 1
|
2020-06-21T13:45:26.000Z
|
2020-06-21T13:45:26.000Z
|
FaceSwap-master/PRNet-master/utils/cv_plot.py
|
CSID-DGU/-2020-1-OSSP1-ninetynine-2
|
b1824254882eeea0ee44e4e60896b72c51ef1d2c
|
[
"MIT"
] | null | null | null |
FaceSwap-master/PRNet-master/utils/cv_plot.py
|
CSID-DGU/-2020-1-OSSP1-ninetynine-2
|
b1824254882eeea0ee44e4e60896b72c51ef1d2c
|
[
"MIT"
] | 3
|
2020-09-02T03:18:45.000Z
|
2021-01-27T08:24:05.000Z
|
version https://git-lfs.github.com/spec/v1
oid sha256:3a3cb957d117155ee995d9cab864e0432af85b0c087abce883dd4468d6a57fb3
size 2681
| 32.25
| 75
| 0.883721
| 13
| 129
| 8.769231
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.382114
| 0.046512
| 129
| 3
| 76
| 43
| 0.544715
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7e18311678b4d8051253922f6ccb5e4606ffaeca
| 4,838
|
py
|
Python
|
p2_continuous-control/model.py
|
chrillemanden/deep-reinforcement-learning
|
6bed050e2273ee0a89cc0355ba73ede4d1e5ad62
|
[
"MIT"
] | null | null | null |
p2_continuous-control/model.py
|
chrillemanden/deep-reinforcement-learning
|
6bed050e2273ee0a89cc0355ba73ede4d1e5ad62
|
[
"MIT"
] | null | null | null |
p2_continuous-control/model.py
|
chrillemanden/deep-reinforcement-learning
|
6bed050e2273ee0a89cc0355ba73ede4d1e5ad62
|
[
"MIT"
] | null | null | null |
import numpy as np
# Pytorch imports
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Actor(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, hidden_layers, fc1_units=200, fc2_units=50):
"""Initialize parameters and build model.
Params
======
state_size (int): Dimension of each state
action_size (int): Dimension of each action
seed (int): Random seed
hidden_layers: list of the sizes of the hidden layers
"""
#super(Actor, self).__init__()
#self.seed = torch.manual_seed(seed) #Setting the seed for the random generator in Pytorch
# Sets up all layers with linear transformations
# Add the input layer to a hidden layer
#self.hidden_layers = nn.ModuleList([nn.Linear(state_size, hidden_layers[0])])
# Add the remaining hidden layers
#layer_sizes = zip(hidden_layers[:-1], hidden_layers[1:])
#self.hidden_layers.extend([nn.Linear(h1, h2) for h1, h2 in layer_sizes])
# Add the output layer
#self.output = nn.Linear(hidden_layers[-1], action_size)
super(Actor, self).__init__()
self.seed = torch.manual_seed(seed)
self.bn0 = nn.BatchNorm1d(state_size)
self.fc1 = nn.Linear(state_size, fc1_units)
self.bn1 = nn.BatchNorm1d(fc1_units)
self.fc2 = nn.Linear(fc1_units, fc2_units)
self.bn2 = nn.BatchNorm1d(fc2_units)
self.fc3 = nn.Linear(fc2_units, action_size)
self.reset_parameters()
def reset_parameters(self):
self.fc1.weight.data.uniform_(*hidden_init(self.fc1))
self.fc2.weight.data.uniform_(*hidden_init(self.fc2))
self.fc3.weight.data.uniform_(-3e-3, 3e-3)
# def forward(self, state):
# # Forward propagation
# # relu is a non-linear activation function
# # F is the pyTorch functional module
# x = state
# for linear in self.hidden_layers: # Pass through hidden layers
# x = F.relu(linear(x))
# return F.tanh(self.output(x)) # Return the output of the output layer
def forward(self, state):
"""Build an actor (policy) network that maps states -> actions."""
x = self.bn0(state)
x = F.relu(self.bn1(self.fc1(x)))
x = F.relu(self.bn2(self.fc2(x)))
return torch.tanh(self.fc3(x))
class Critic(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, hidden_layers, fc1_units=400, fc2_units=50):
"""Initialize parameters and build model.
Params
======
state_size (int): Dimension of each state
action_size (int): Dimension of each action
seed (int): Random seed
hidden_layers: list of the sizes of the hidden layers
"""
#super(Critic, self).__init__()
#self.seed = torch.manual_seed(seed) #Setting the seed for the random generator in Pytorch
# Sets up all layers with linear transformations
# Add the input layer to a hidden layer
#self.hidden_layers = nn.ModuleList([nn.Linear(state_size, hidden_layers[0])])
# Add the remaining hidden layers
#layer_sizes = zip(hidden_layers[:-1], hidden_layers[1:])
#self.hidden_layers.extend([nn.Linear(h1, h2) for h1, h2 in layer_sizes])
# Add the output layer
#self.output = nn.Linear(hidden_layers[-1], dim=1)
#self.fool = nn.Linear(state_size, fc1_units)
#self.fc2 = nn.Linear(fc1_units+action_size, fc2_units)
#self.fc3 = nn.Linear(fc2_units, 1)
super(Critic, self).__init__()
self.seed = torch.manual_seed(seed)
self.fcs1 = nn.Linear(state_size, fc1_units)
self.bn1 = nn.BatchNorm1d(fc1_units)
self.d1 = nn.Dropout(p=0.1)
self.fc2 = nn.Linear(fc1_units+action_size, fc2_units)
self.d2 = nn.Dropout(p=0.1)
self.fc3 = nn.Linear(fc2_units, 1)
def reset_parameters(self):
self.fcs1.weight.data.uniform_(*hidden_init(self.fc1))
self.fc2.weight.data.uniform_(*hidden_init(self.fc2))
self.fc3.weight.data.uniform_(-3e-3, 3e-3)
self.fcs1.bias.data.fill_(0.1)
self.fc2.bias.data.fill_(0.1)
self.fc3.bias.data.fill_(0.1)
def forward(self, state, action):
# Forward propagation
# relu is a non-linear activation function
# F is the pyTorch functional module
# This is very important, gotta test this cat-thing
# x = torch.cat([state, action], 1)
# for linear in self.hidden_layers: # Pass through hidden layers
# x = F.relu(linear(x))
# return self.output(x) # Return the output of the output layer
#if state.dim() == 1:
# state = torch.unsqueeze(state,0)
#xp = F.relu(self.fcs1(state))
#x = torch.cat((xp, action), dim=1)
#x = self.fc2(x)
#x = F.relu(x)
#return self.fc3(x)
if state.dim() == 1:
state = torch.unsqueeze(state,0)
xs = self.d1(self.bn1(F.relu(self.fcs1(state))))
x = torch.cat((xs, action), dim=1)
x = self.d2(F.relu(self.fc2(x)))
return self.fc3(x)
| 32.039735
| 95
| 0.693675
| 771
| 4,838
| 4.215305
| 0.159533
| 0.088615
| 0.029538
| 0.026154
| 0.800923
| 0.762154
| 0.743692
| 0.730769
| 0.690462
| 0.665846
| 0
| 0.0301
| 0.169078
| 4,838
| 151
| 96
| 32.039735
| 0.778358
| 0.527491
| 0
| 0.188679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.132075
| false
| 0
| 0.09434
| 0
| 0.320755
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7e2812bc3249b6191c8a79faf8451e37d7900455
| 3,153
|
py
|
Python
|
tests/test_finetuning.py
|
atiqm/adapt
|
af9833cb7e698bdcb722941622d67c06f04822f7
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_finetuning.py
|
atiqm/adapt
|
af9833cb7e698bdcb722941622d67c06f04822f7
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_finetuning.py
|
atiqm/adapt
|
af9833cb7e698bdcb722941622d67c06f04822f7
|
[
"BSD-2-Clause"
] | null | null | null |
import numpy as np
import tensorflow as tf
from sklearn.base import clone
from adapt.utils import make_classification_da
from adapt.parameter_based import FineTuning
np.random.seed(0)
tf.random.set_seed(0)
encoder = tf.keras.Sequential()
encoder.add(tf.keras.layers.Dense(50, activation="relu"))
encoder.add(tf.keras.layers.Dense(50, activation="relu"))
task = tf.keras.Sequential()
task.add(tf.keras.layers.Dense(1, activation="sigmoid"))
ind = np.random.choice(100, 10)
Xs, ys, Xt, yt = make_classification_da()
def test_finetune():
model = FineTuning(encoder=encoder, task=task, loss="bce", optimizer="adam", random_state=0)
model.fit(Xs, ys, epochs=100, verbose=0)
assert np.mean((model.predict(Xt).ravel()>0.5) == yt) < 0.7
fine_tuned = FineTuning(encoder=model.encoder_, task=model.task_,
training=False,
loss="bce", optimizer="adam", random_state=0)
fine_tuned.fit(Xt[ind], yt[ind], epochs=100, verbose=0)
assert np.abs(fine_tuned.encoder_.get_weights()[0] - model.encoder_.get_weights()[0]).sum() == 0.
assert np.mean((fine_tuned.predict(Xt).ravel()>0.5) == yt) > 0.7
assert np.mean((fine_tuned.predict(Xt).ravel()>0.5) == yt) < 0.8
fine_tuned = FineTuning(encoder=model.encoder_, task=model.task_,
training=True,
loss="bce", optimizer="adam", random_state=0)
fine_tuned.fit(Xt[ind], yt[ind], epochs=100, verbose=0)
assert np.abs(fine_tuned.encoder_.get_weights()[0] - model.encoder_.get_weights()[0]).sum() > 1.
assert np.mean((fine_tuned.predict(Xt).ravel()>0.5) == yt) > 0.9
fine_tuned = FineTuning(encoder=model.encoder_, task=model.task_,
training=[True, False],
loss="bce", optimizer="adam", random_state=0)
fine_tuned.fit(Xt[ind], yt[ind], epochs=100, verbose=0)
assert np.abs(fine_tuned.encoder_.get_weights()[0] - model.encoder_.get_weights()[0]).sum() == 0.
assert np.abs(fine_tuned.encoder_.get_weights()[-1] - model.encoder_.get_weights()[-1]).sum() > 1.
fine_tuned = FineTuning(encoder=model.encoder_, task=model.task_,
training=[False],
loss="bce", optimizer="adam", random_state=0)
fine_tuned.fit(Xt[ind], yt[ind], epochs=100, verbose=0)
assert np.abs(fine_tuned.encoder_.get_weights()[0] - model.encoder_.get_weights()[0]).sum() == 0.
assert np.abs(fine_tuned.encoder_.get_weights()[-1] - model.encoder_.get_weights()[-1]).sum() == 0
def test_finetune_pretrain():
model = FineTuning(encoder=encoder, task=task, pretrain=True, pretrain__epochs=2,
loss="bce", optimizer="adam", random_state=0)
model.fit(Xs, ys, epochs=1, verbose=0)
def test_clone():
model = FineTuning(encoder=encoder, task=task,
loss="bce", optimizer="adam", random_state=0)
model.fit(Xs, ys, epochs=1, verbose=0)
new_model = clone(model)
new_model.fit(Xs, ys, epochs=1, verbose=0)
new_model.predict(Xs);
assert model is not new_model
| 40.948052
| 102
| 0.639391
| 448
| 3,153
| 4.339286
| 0.169643
| 0.078704
| 0.104938
| 0.074074
| 0.782407
| 0.771605
| 0.742798
| 0.742798
| 0.731996
| 0.686728
| 0
| 0.031759
| 0.201078
| 3,153
| 77
| 103
| 40.948052
| 0.739976
| 0
| 0
| 0.381818
| 0
| 0
| 0.020292
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.054545
| false
| 0
| 0.090909
| 0
| 0.145455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7e2d17b5d85568fd2c5cff8b9f6787044509c981
| 859
|
py
|
Python
|
calfire_wildfires/__init__.py
|
palewire/califire-fires
|
f06ec6028dfdf503218226e1c3a418dbe04a06f9
|
[
"MIT"
] | null | null | null |
calfire_wildfires/__init__.py
|
palewire/califire-fires
|
f06ec6028dfdf503218226e1c3a418dbe04a06f9
|
[
"MIT"
] | 7
|
2021-12-01T15:17:34.000Z
|
2021-12-02T23:31:11.000Z
|
calfire_wildfires/__init__.py
|
palewire/califire-fires
|
f06ec6028dfdf503218226e1c3a418dbe04a06f9
|
[
"MIT"
] | 1
|
2021-12-02T00:40:22.000Z
|
2021-12-02T00:40:22.000Z
|
"""
Download wildfires data from CalFire
"""
import requests
def get_active_fires():
"""Get the latest ative fires from CalFire.
Returns GeoJSON with point geometry
"""
# Request data
r = requests.get(
"https://www.fire.ca.gov/umbraco/api/IncidentApi/GeoJsonList?inactive=false"
)
if r.status_code != 200:
raise Exception(f"Request for data failed with {r.status_code} status code")
# Return it
return r.json()
def get_all_fires():
"""Get all active and inactive fires year to date from CalFire.
Returns GeoJSON with point geometry
"""
# Request data
r = requests.get("https://www.fire.ca.gov/umbraco/api/IncidentApi/GeoJsonList")
if r.status_code != 200:
raise Exception(f"Request for data failed with {r.status_code} status code")
# Return it
return r.json()
| 26.030303
| 84
| 0.670547
| 119
| 859
| 4.773109
| 0.411765
| 0.105634
| 0.077465
| 0.088028
| 0.735915
| 0.735915
| 0.735915
| 0.735915
| 0.735915
| 0.735915
| 0
| 0.008982
| 0.222352
| 859
| 32
| 85
| 26.84375
| 0.841317
| 0.301513
| 0
| 0.461538
| 0
| 0.076923
| 0.43672
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153846
| false
| 0
| 0.076923
| 0
| 0.384615
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7e4054d1815e43503cfd199292aff74ac29feb4f
| 165
|
py
|
Python
|
bloggitt/core/admin.py
|
TrushaT/Bloggitt
|
f3c51be1d767e6eee1f856af20d07399f34dfdf7
|
[
"MIT"
] | null | null | null |
bloggitt/core/admin.py
|
TrushaT/Bloggitt
|
f3c51be1d767e6eee1f856af20d07399f34dfdf7
|
[
"MIT"
] | null | null | null |
bloggitt/core/admin.py
|
TrushaT/Bloggitt
|
f3c51be1d767e6eee1f856af20d07399f34dfdf7
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Post, FavouritePost
# Register your models here.
admin.site.register(Post)
admin.site.register(FavouritePost)
| 20.625
| 39
| 0.812121
| 22
| 165
| 6.090909
| 0.545455
| 0.134328
| 0.253731
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109091
| 165
| 7
| 40
| 23.571429
| 0.911565
| 0.157576
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7e41e476c894c0ca1c524dd2adfc1575839e994a
| 76
|
py
|
Python
|
src/ope/kiv/__init__.py
|
liyuan9988/IVOPEwithACME
|
d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558
|
[
"MIT"
] | 1
|
2020-09-05T01:25:39.000Z
|
2020-09-05T01:25:39.000Z
|
src/ope/kiv_batch/__init__.py
|
liyuan9988/IVOPEwithACME
|
d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558
|
[
"MIT"
] | null | null | null |
src/ope/kiv_batch/__init__.py
|
liyuan9988/IVOPEwithACME
|
d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558
|
[
"MIT"
] | null | null | null |
from .nn_structure import make_ope_networks
from .learner import KIVLearner
| 25.333333
| 43
| 0.868421
| 11
| 76
| 5.727273
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 76
| 2
| 44
| 38
| 0.926471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7e56a6dc5ed720df3b59686a529147dd254acd6e
| 108
|
py
|
Python
|
Token.py
|
TheJakester42/JakeLanguage
|
54db89af836c60daf5dca7d300738b57f12893ea
|
[
"MIT"
] | null | null | null |
Token.py
|
TheJakester42/JakeLanguage
|
54db89af836c60daf5dca7d300738b57f12893ea
|
[
"MIT"
] | null | null | null |
Token.py
|
TheJakester42/JakeLanguage
|
54db89af836c60daf5dca7d300738b57f12893ea
|
[
"MIT"
] | null | null | null |
class Token:
description = ""
def __init__(self,description):
self.description = description
| 27
| 38
| 0.675926
| 10
| 108
| 6.9
| 0.6
| 0.434783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.231481
| 108
| 4
| 38
| 27
| 0.831325
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
7e5fb79d0790c329c0e24f5ea418bfde4de4a51a
| 92
|
py
|
Python
|
sitemessage/tests/testapp/urls.py
|
furins/django-sitemessage
|
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
|
[
"BSD-3-Clause"
] | 49
|
2015-01-26T01:31:22.000Z
|
2022-02-01T19:10:55.000Z
|
sitemessage/tests/testapp/urls.py
|
furins/django-sitemessage
|
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
|
[
"BSD-3-Clause"
] | 10
|
2015-11-13T09:38:53.000Z
|
2021-03-14T11:22:35.000Z
|
sitemessage/tests/testapp/urls.py
|
furins/django-sitemessage
|
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
|
[
"BSD-3-Clause"
] | 10
|
2015-03-16T09:01:47.000Z
|
2021-03-14T10:10:27.000Z
|
from sitemessage.toolbox import get_sitemessage_urls
urlpatterns = get_sitemessage_urls()
| 18.4
| 52
| 0.858696
| 11
| 92
| 6.818182
| 0.636364
| 0.373333
| 0.48
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097826
| 92
| 4
| 53
| 23
| 0.903614
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7e9156b4617b152df7a330ab3ade25a1c161db3a
| 223
|
py
|
Python
|
snuba/datasets/transactions.py
|
fpacifici/snuba
|
cf732b71383c948f9387fbe64e9404ca71f8e9c5
|
[
"Apache-2.0"
] | null | null | null |
snuba/datasets/transactions.py
|
fpacifici/snuba
|
cf732b71383c948f9387fbe64e9404ca71f8e9c5
|
[
"Apache-2.0"
] | null | null | null |
snuba/datasets/transactions.py
|
fpacifici/snuba
|
cf732b71383c948f9387fbe64e9404ca71f8e9c5
|
[
"Apache-2.0"
] | null | null | null |
from snuba.datasets.dataset import Dataset
from snuba.datasets.entities import EntityKey
class TransactionsDataset(Dataset):
def __init__(self) -> None:
super().__init__(default_entity=EntityKey.TRANSACTIONS)
| 27.875
| 63
| 0.784753
| 25
| 223
| 6.64
| 0.68
| 0.108434
| 0.204819
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130045
| 223
| 7
| 64
| 31.857143
| 0.85567
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7ea571c1abe4a8c7853649385d9ade134126eb61
| 791
|
py
|
Python
|
src/fecc_tokens/Paren.py
|
castor91/fecc
|
bc46059c0d7a428d15b95050b70dec374b4bea28
|
[
"MIT"
] | 1
|
2018-02-04T14:48:15.000Z
|
2018-02-04T14:48:15.000Z
|
src/fecc_tokens/Paren.py
|
castor91/fecc
|
bc46059c0d7a428d15b95050b70dec374b4bea28
|
[
"MIT"
] | null | null | null |
src/fecc_tokens/Paren.py
|
castor91/fecc
|
bc46059c0d7a428d15b95050b70dec374b4bea28
|
[
"MIT"
] | null | null | null |
class Paren:
def __init__(self, paren):
if paren == '(':
LParen()
@staticmethod
def getParen(paren):
if paren == '(': return LParen()
elif paren == ')': return RParen()
elif paren == '{': return LBrace()
elif paren == '}': return RBrace()
def __str__(self):
return 'Generic PAREN'
class LParen(Paren):
def __init__(self):
pass
def __str__(self):
return 'LPAREN'
class RParen(Paren):
def __init__(self):
pass
def __str__(self):
return 'RPAREN'
class LBrace(Paren):
def __init__(self):
pass
def __str__(self):
return 'LBRACE'
class RBrace(Paren):
def __init__(self):
pass
def __str__(self):
return 'RBrace'
| 16.829787
| 42
| 0.542351
| 83
| 791
| 4.686747
| 0.204819
| 0.102828
| 0.154242
| 0.205656
| 0.37018
| 0.37018
| 0.37018
| 0.37018
| 0.37018
| 0
| 0
| 0
| 0.333755
| 791
| 46
| 43
| 17.195652
| 0.73814
| 0
| 0
| 0.40625
| 0
| 0
| 0.053097
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.34375
| false
| 0.125
| 0
| 0.15625
| 0.65625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
7ea765dc792e6bc0c0f8a8d59d93e4adddd3014d
| 87
|
py
|
Python
|
linecms/models/__init__.py
|
nieltg/django-linecms
|
baee123ce3fae9fb9333ba8b4e542942273075d2
|
[
"MIT"
] | 2
|
2019-09-24T03:32:32.000Z
|
2020-04-13T15:51:27.000Z
|
linecms/models/__init__.py
|
nieltg/django-linecms
|
baee123ce3fae9fb9333ba8b4e542942273075d2
|
[
"MIT"
] | 1
|
2018-07-07T02:04:56.000Z
|
2018-07-07T02:04:56.000Z
|
linecms/models/__init__.py
|
nieltg/django-linecms
|
baee123ce3fae9fb9333ba8b4e542942273075d2
|
[
"MIT"
] | 1
|
2018-07-23T16:56:21.000Z
|
2018-07-23T16:56:21.000Z
|
from .hooks import TextMessageHook
from .message import Message
from .task import Task
| 21.75
| 34
| 0.827586
| 12
| 87
| 6
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 87
| 3
| 35
| 29
| 0.96
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0e2b426179c4c372e1e8e70d6a2da0f62e1b17fa
| 146
|
py
|
Python
|
SLpackage/private/pacbio/pythonpkgs/pbsvtools/lib/python2.7/site-packages/pbsv1/annot.py
|
fanglab/6mASCOPE
|
3f1fdcb7693ff152f17623ce549526ec272698b1
|
[
"BSD-3-Clause"
] | 5
|
2022-02-20T07:10:02.000Z
|
2022-03-18T17:47:53.000Z
|
SLpackage/private/pacbio/pythonpkgs/pbsvtools/lib/python2.7/site-packages/pbsv1/annot.py
|
fanglab/6mASCOPE
|
3f1fdcb7693ff152f17623ce549526ec272698b1
|
[
"BSD-3-Clause"
] | null | null | null |
SLpackage/private/pacbio/pythonpkgs/pbsvtools/lib/python2.7/site-packages/pbsv1/annot.py
|
fanglab/6mASCOPE
|
3f1fdcb7693ff152f17623ce549526ec272698b1
|
[
"BSD-3-Clause"
] | null | null | null |
"""Annotate structural variant calls."""
from __future__ import absolute_import
from .independent.annot import Repeat, annot_seq #, annot_bed_fn
| 29.2
| 64
| 0.808219
| 19
| 146
| 5.789474
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 146
| 4
| 65
| 36.5
| 0.846154
| 0.335616
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.