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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30410df497a9a784faa007c73a850d77a1646952
| 523
|
py
|
Python
|
auction_bid_tracker/api/serializers.py
|
Kelechukwu/auction-service
|
fac296178b67c6c8a54d37d861787fc523cc30fd
|
[
"MIT"
] | null | null | null |
auction_bid_tracker/api/serializers.py
|
Kelechukwu/auction-service
|
fac296178b67c6c8a54d37d861787fc523cc30fd
|
[
"MIT"
] | 5
|
2020-06-05T20:17:05.000Z
|
2021-09-22T18:17:53.000Z
|
auction_bid_tracker/api/serializers.py
|
Kelechukwu/auction-service
|
fac296178b67c6c8a54d37d861787fc523cc30fd
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Bid, Item, User
class ItemSerializer(serializers.ModelSerializer):
class Meta:
model = Item
fields = ('id', 'name', 'product_code', 'description', 'sold')
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id','username', 'email')
class BidSerializer(serializers.ModelSerializer):
class Meta:
model = Bid
fields = ('id', 'item', 'user', 'bid_time', 'bid_amount')
| 26.15
| 70
| 0.655832
| 54
| 523
| 6.277778
| 0.5
| 0.230089
| 0.274336
| 0.309735
| 0.353982
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217973
| 523
| 19
| 71
| 27.526316
| 0.828851
| 0
| 0
| 0.214286
| 0
| 0
| 0.145315
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
306c66581ea850b95ab997fea6a54ccae480729d
| 149
|
py
|
Python
|
Term 2/1-5-problem.py
|
theseana/miniatur
|
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
|
[
"MIT"
] | 1
|
2022-01-16T00:30:43.000Z
|
2022-01-16T00:30:43.000Z
|
Term 2/1-5-problem.py
|
theseana/miniatur
|
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
|
[
"MIT"
] | null | null | null |
Term 2/1-5-problem.py
|
theseana/miniatur
|
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
|
[
"MIT"
] | null | null | null |
n1=17
n2=28
if n1>n2:
print('n1 bozorgtar az n2')
elif n1<n2:
print('n2 bozorgtar az n1')
elif n1==n2:
print('n1 va n2 barabar hastand')
| 16.555556
| 37
| 0.637584
| 29
| 149
| 3.275862
| 0.413793
| 0.126316
| 0.284211
| 0.231579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155172
| 0.221477
| 149
| 8
| 38
| 18.625
| 0.663793
| 0
| 0
| 0
| 0
| 0
| 0.402685
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.375
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0628a172f443d1ff382b41fa545c5c7bebd39e98
| 139
|
py
|
Python
|
lascli/util.py
|
LucidtechAI/las-cli
|
bf9ca7d016141059c543527c6654cebb2e2f1178
|
[
"Apache-2.0"
] | null | null | null |
lascli/util.py
|
LucidtechAI/las-cli
|
bf9ca7d016141059c543527c6654cebb2e2f1178
|
[
"Apache-2.0"
] | 10
|
2021-04-12T06:42:04.000Z
|
2022-03-30T10:21:33.000Z
|
lascli/util.py
|
LucidtechAI/las-cli
|
bf9ca7d016141059c543527c6654cebb2e2f1178
|
[
"Apache-2.0"
] | null | null | null |
class NotProvided:
pass
def nullable(value):
if isinstance(value, str) and value == 'null':
return None
return value
| 15.444444
| 50
| 0.640288
| 17
| 139
| 5.235294
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.273381
| 139
| 8
| 51
| 17.375
| 0.881188
| 0
| 0
| 0
| 0
| 0
| 0.028777
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.166667
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
06875fe7ae608373332a8fb7606601d9cb556ce3
| 267
|
py
|
Python
|
cctbx/eltbx/covalent_radii.py
|
hbrunie/cctbx_project
|
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
|
[
"BSD-3-Clause-LBNL"
] | 2
|
2021-03-18T12:31:57.000Z
|
2022-03-14T06:27:06.000Z
|
cctbx/eltbx/covalent_radii.py
|
hbrunie/cctbx_project
|
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
cctbx/eltbx/covalent_radii.py
|
hbrunie/cctbx_project
|
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
|
[
"BSD-3-Clause-LBNL"
] | 1
|
2021-03-26T12:52:30.000Z
|
2021-03-26T12:52:30.000Z
|
from __future__ import absolute_import, division, print_function
import boost.python
ext = boost.python.import_ext("cctbx_eltbx_covalent_radii_ext")
from cctbx_eltbx_covalent_radii_ext import *
boost.python.inject(ext.table_iterator, boost.python.py3_make_iterator)
| 38.142857
| 71
| 0.861423
| 39
| 267
| 5.435897
| 0.487179
| 0.207547
| 0.160377
| 0.216981
| 0.245283
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004016
| 0.067416
| 267
| 6
| 72
| 44.5
| 0.84739
| 0
| 0
| 0
| 0
| 0
| 0.11236
| 0.11236
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0.2
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
230917ff4323cacb93016bdddc8f27e058c7786a
| 409
|
py
|
Python
|
data/plugins/items/camel.py
|
FavyTeam/Elderscape_server
|
38bf75396e4e13222be67d5f15eb0b9862dca6bb
|
[
"MIT"
] | 3
|
2019-05-09T16:59:13.000Z
|
2019-05-09T18:29:57.000Z
|
data/plugins/items/camel.py
|
FavyTeam/Elderscape_server
|
38bf75396e4e13222be67d5f15eb0b9862dca6bb
|
[
"MIT"
] | null | null | null |
data/plugins/items/camel.py
|
FavyTeam/Elderscape_server
|
38bf75396e4e13222be67d5f15eb0b9862dca6bb
|
[
"MIT"
] | 7
|
2019-07-11T23:04:40.000Z
|
2021-08-02T14:27:13.000Z
|
from core import ServerConstants
def first_click_object_6578(player):
if (player.playerEquipment[ServerConstants.AMULET_SLOT] == 1712) and (player.playerEquipment[ServerConstants.CAPE_SLOT] == 10499) and (player.playerEquipment[ServerConstants.WEAPON_SLOT] == 11802):
ItemAssistant.addItemToInventoryOrDrop(player, 7003, 1)
player.getPA().sendMessage("You find a camel mask in the tree.")
| 68.166667
| 201
| 0.777506
| 47
| 409
| 6.638298
| 0.723404
| 0.201923
| 0.346154
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063889
| 0.119804
| 409
| 6
| 202
| 68.166667
| 0.802778
| 0
| 0
| 0
| 0
| 0
| 0.082927
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2311a4831bf76119b74ab330fe6d74d995c77324
| 106
|
py
|
Python
|
app/Mixtape.py
|
mlaude1/masonite_mixtapes
|
37cc33bc04af6d626e5b65da9221ac848e996cf0
|
[
"MIT"
] | null | null | null |
app/Mixtape.py
|
mlaude1/masonite_mixtapes
|
37cc33bc04af6d626e5b65da9221ac848e996cf0
|
[
"MIT"
] | null | null | null |
app/Mixtape.py
|
mlaude1/masonite_mixtapes
|
37cc33bc04af6d626e5b65da9221ac848e996cf0
|
[
"MIT"
] | null | null | null |
"""Mixtape Model."""
from masoniteorm.models import Model
class Mixtape(Model):
__table__="mixtape"
| 15.142857
| 36
| 0.726415
| 12
| 106
| 6.083333
| 0.666667
| 0.328767
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141509
| 106
| 7
| 37
| 15.142857
| 0.802198
| 0.132075
| 0
| 0
| 0
| 0
| 0.08046
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
232b1b1f6f79d295bdbc4ebfd2816a9b3a19da6b
| 257
|
py
|
Python
|
demo/examples/sum._keras-text-summarization/src/summarizer/src/algo/abstract_summarizer_algo.py
|
YourNorth/rezak-summarizator
|
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
|
[
"MIT"
] | 3
|
2020-03-28T16:48:10.000Z
|
2020-12-01T17:18:55.000Z
|
demo/examples/sum._keras-text-summarization/src/summarizer/src/algo/abstract_summarizer_algo.py
|
YourNorth/rezak-summarizator
|
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
|
[
"MIT"
] | 31
|
2020-03-20T17:53:08.000Z
|
2021-03-10T11:48:11.000Z
|
demo/examples/sum._keras-text-summarization/src/summarizer/src/algo/abstract_summarizer_algo.py
|
YourNorth/rezak-summarizator
|
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
|
[
"MIT"
] | 1
|
2020-03-20T05:01:16.000Z
|
2020-03-20T05:01:16.000Z
|
class AbstractSummarizerAlgo(object):
"""
AbstractSummarizerAlgo defines the run method that every text summarization must implement.
"""
def run(self, text, percentage):
raise NotImplementedError('Subclasses must override run()!')
| 32.125
| 95
| 0.723735
| 25
| 257
| 7.44
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190661
| 257
| 7
| 96
| 36.714286
| 0.894231
| 0.354086
| 0
| 0
| 0
| 0
| 0.206667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
233829e027347a91a2e7a94f36a3b2dffcb111ee
| 68
|
py
|
Python
|
Mundo01/Python/aula06b.py
|
molonti/CursoemVideo---Python
|
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
|
[
"MIT"
] | null | null | null |
Mundo01/Python/aula06b.py
|
molonti/CursoemVideo---Python
|
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
|
[
"MIT"
] | null | null | null |
Mundo01/Python/aula06b.py
|
molonti/CursoemVideo---Python
|
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
|
[
"MIT"
] | null | null | null |
n = input('Digite um algo: ')
print(n.isalpha())
print(n.isupper())
| 17
| 29
| 0.647059
| 11
| 68
| 4
| 0.727273
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 68
| 3
| 30
| 22.666667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
23563f75e2c3a54101ad242b1632d00ca9727d80
| 87
|
py
|
Python
|
trainloops/__init__.py
|
Gerryflap/master_thesis
|
5dc16e21b23837fee8a4532679bb5cb961af0b7c
|
[
"MIT"
] | null | null | null |
trainloops/__init__.py
|
Gerryflap/master_thesis
|
5dc16e21b23837fee8a4532679bb5cb961af0b7c
|
[
"MIT"
] | null | null | null |
trainloops/__init__.py
|
Gerryflap/master_thesis
|
5dc16e21b23837fee8a4532679bb5cb961af0b7c
|
[
"MIT"
] | null | null | null |
"""
This folder contains training loops and accompanying loggers and listeners
"""
| 21.75
| 78
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183908
| 87
| 3
| 79
| 29
| 0.915493
| 0.850575
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
235cde5e9828e617c08855acd10392c015a0948e
| 121
|
py
|
Python
|
scripts/02750.py
|
JihoChoi/BOJ
|
08974a9db8ebaa299ace242e951cac53ab55fc4d
|
[
"MIT"
] | null | null | null |
scripts/02750.py
|
JihoChoi/BOJ
|
08974a9db8ebaa299ace242e951cac53ab55fc4d
|
[
"MIT"
] | null | null | null |
scripts/02750.py
|
JihoChoi/BOJ
|
08974a9db8ebaa299ace242e951cac53ab55fc4d
|
[
"MIT"
] | null | null | null |
N = int(input())
nums = []
for _ in range(N):
nums.append(int(input()))
nums.sort()
for num in nums:
print(num)
| 13.444444
| 29
| 0.586777
| 20
| 121
| 3.5
| 0.55
| 0.228571
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214876
| 121
| 9
| 30
| 13.444444
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2380077f114b5b16cc9a1100bc690d9cd9597308
| 36
|
py
|
Python
|
coding/kakov-budet-vyvod-dlja-var-2-1/code.py
|
mowshon/python-quiz
|
215fb23dbb0fa42b438f988e49172b87b48bade3
|
[
"MIT"
] | 2
|
2020-07-17T21:08:26.000Z
|
2020-08-16T03:12:07.000Z
|
coding/kakov-budet-vyvod-dlja-var-2-1/code.py
|
mowshon/python-quiz
|
215fb23dbb0fa42b438f988e49172b87b48bade3
|
[
"MIT"
] | 2
|
2021-06-08T22:04:35.000Z
|
2022-01-13T03:03:32.000Z
|
coding/kakov-budet-vyvod-dlja-var-2-1/code.py
|
mowshon/python-quiz
|
215fb23dbb0fa42b438f988e49172b87b48bade3
|
[
"MIT"
] | null | null | null |
var = "James Bond"
print(var[2::-1])
| 18
| 18
| 0.611111
| 7
| 36
| 3.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.111111
| 36
| 2
| 19
| 18
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0.27027
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
88e5027947cf3cde1a9b3d2b5bfc1dfa177d0b10
| 110
|
py
|
Python
|
html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/delayed-broken-video.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 777
|
2017-08-29T15:15:32.000Z
|
2022-03-21T05:29:41.000Z
|
html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/delayed-broken-video.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 66
|
2017-08-30T18:31:18.000Z
|
2021-08-02T10:59:35.000Z
|
html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/delayed-broken-video.py
|
ziransun/wpt
|
ab8f451eb39eb198584d547f5d965ef54df2a86a
|
[
"BSD-3-Clause"
] | 123
|
2017-08-30T01:19:34.000Z
|
2022-03-17T22:55:31.000Z
|
import time
def main(request, response):
time.sleep(0.1)
return [("Content-Type", "text/plain")], "FAIL"
| 18.333333
| 49
| 0.663636
| 16
| 110
| 4.5625
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021053
| 0.136364
| 110
| 5
| 50
| 22
| 0.747368
| 0
| 0
| 0
| 0
| 0
| 0.236364
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
88ef90d13386cd8f42e7af523b73ce0b09325d97
| 580
|
bzl
|
Python
|
source/bazel/deps/Poppy/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 33
|
2019-05-30T07:43:32.000Z
|
2021-12-30T13:12:32.000Z
|
source/bazel/deps/Poppy/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 371
|
2019-05-16T15:23:50.000Z
|
2021-09-04T15:45:27.000Z
|
source/bazel/deps/Poppy/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 6
|
2019-08-22T17:37:36.000Z
|
2020-11-07T07:15:32.000Z
|
# Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def poppy():
http_archive(
name="Poppy" ,
build_file="//bazel/deps/Poppy:build.BUILD" ,
sha256="905921192994f6243efc8dc15691135c0486720b49011fc35473b6ea7635e9f3" ,
strip_prefix="Poppy-9643a498f015a7ade7693ff4b9fb976588f93dc6" ,
urls = [
"https://github.com/Unilang/Poppy/archive/9643a498f015a7ade7693ff4b9fb976588f93dc6.tar.gz",
],
)
| 34.117647
| 103
| 0.706897
| 56
| 580
| 7.196429
| 0.732143
| 0.054591
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.218029
| 0.177586
| 580
| 16
| 104
| 36.25
| 0.626834
| 0.174138
| 0
| 0
| 1
| 0
| 0.607143
| 0.386555
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| true
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
88fd1341d14bed024a3961fac8b9b61a8a5de30e
| 94
|
py
|
Python
|
generic_views/base_views/apps.py
|
markbirds/Django-Code-Repo
|
b55762d2dab00640acf2e8e00ddc66716d53c6b5
|
[
"MIT"
] | 1
|
2021-11-25T00:02:36.000Z
|
2021-11-25T00:02:36.000Z
|
generic_views/base_views/apps.py
|
markbirds/Django-Code-Repo
|
b55762d2dab00640acf2e8e00ddc66716d53c6b5
|
[
"MIT"
] | null | null | null |
generic_views/base_views/apps.py
|
markbirds/Django-Code-Repo
|
b55762d2dab00640acf2e8e00ddc66716d53c6b5
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class BaseViewsConfig(AppConfig):
name = 'base_views'
| 15.666667
| 33
| 0.765957
| 11
| 94
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 94
| 5
| 34
| 18.8
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
000445b6df45545c85a37ba990d9f92d918eec00
| 271
|
py
|
Python
|
tutorial/listTask/models.py
|
PabloSuarez/API_django
|
522cc5b052c13c38fc7ef95353b8e3640126feaa
|
[
"MIT"
] | null | null | null |
tutorial/listTask/models.py
|
PabloSuarez/API_django
|
522cc5b052c13c38fc7ef95353b8e3640126feaa
|
[
"MIT"
] | null | null | null |
tutorial/listTask/models.py
|
PabloSuarez/API_django
|
522cc5b052c13c38fc7ef95353b8e3640126feaa
|
[
"MIT"
] | null | null | null |
from django.db import models
class Task(models.Model):
title = models.CharField(max_length=40)
description = models.TextField(max_length=500)
date_created = models.DateTimeField(auto_now_add=True)
date_last_modified = models.DateTimeField(auto_now=True)
| 33.875
| 60
| 0.778598
| 37
| 271
| 5.486486
| 0.675676
| 0.08867
| 0.226601
| 0.256158
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021186
| 0.129151
| 271
| 7
| 61
| 38.714286
| 0.838983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
cc49b50c5785fa980c7e85218289793f796ae7da
| 266
|
py
|
Python
|
util/logs.py
|
seen-idc/disco
|
c0a2e83ebcb26be469ee2a3243c315429add556b
|
[
"MIT"
] | 1
|
2021-12-11T12:01:04.000Z
|
2021-12-11T12:01:04.000Z
|
util/logs.py
|
seen-idc/disco
|
c0a2e83ebcb26be469ee2a3243c315429add556b
|
[
"MIT"
] | null | null | null |
util/logs.py
|
seen-idc/disco
|
c0a2e83ebcb26be469ee2a3243c315429add556b
|
[
"MIT"
] | null | null | null |
from datetime import datetime
today = datetime.today().strftime('%Y-%m-%d %H-%M-%S')
def log_msg(text):
with open(f'./logs/{today}.log', 'a+') as log:
log_time = datetime.today().strftime('%Y-%m-%d %H:%M:%S')
log.write(f'[{log_time}] {text}\n')
| 33.25
| 65
| 0.586466
| 45
| 266
| 3.4
| 0.511111
| 0.254902
| 0.27451
| 0.287582
| 0.352941
| 0.352941
| 0.352941
| 0.352941
| 0.352941
| 0
| 0
| 0
| 0.157895
| 266
| 8
| 66
| 33.25
| 0.683036
| 0
| 0
| 0
| 0
| 0
| 0.280899
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cc58da3fac72aacf2a23055a4b3451dabb43f644
| 481
|
py
|
Python
|
src/mbed_cloud/_backends/statistics/models/__init__.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 12
|
2017-12-28T11:18:43.000Z
|
2020-10-04T12:11:15.000Z
|
src/mbed_cloud/_backends/statistics/models/__init__.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 50
|
2017-12-21T12:50:41.000Z
|
2020-01-13T16:07:08.000Z
|
src/mbed_cloud/_backends/statistics/models/__init__.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 8
|
2018-04-25T17:47:29.000Z
|
2019-08-29T06:38:27.000Z
|
# coding: utf-8
"""
Connect Statistics API
Connect Statistics API provides statistics about other cloud services through defined counters.
OpenAPI spec version: 3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model package
from .error_response import ErrorResponse
from .fields import Fields
from .metric import Metric
from .successful_response import SuccessfulResponse
| 22.904762
| 99
| 0.779626
| 60
| 481
| 6.133333
| 0.683333
| 0.092391
| 0.108696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004988
| 0.16632
| 481
| 20
| 100
| 24.05
| 0.912718
| 0.536383
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
cc6aeaaae4e5bb3332145b24a68cddaba311806b
| 132
|
py
|
Python
|
portfolio/urls.py
|
radoslawdabrowski/radoslawdabrowski.pl
|
b3d4f92ea51b40b104449259a376134aeb11766b
|
[
"Apache-2.0"
] | 1
|
2019-05-17T10:57:25.000Z
|
2019-05-17T10:57:25.000Z
|
portfolio/urls.py
|
radoslawdabrowski/radoslawdabrowski.pl
|
b3d4f92ea51b40b104449259a376134aeb11766b
|
[
"Apache-2.0"
] | 1
|
2019-08-06T01:55:54.000Z
|
2019-08-06T01:55:54.000Z
|
portfolio/urls.py
|
radoslawdabrowski/personal-website
|
b3d4f92ea51b40b104449259a376134aeb11766b
|
[
"MIT"
] | 1
|
2019-05-07T21:23:57.000Z
|
2019-05-07T21:23:57.000Z
|
from django.urls import path
from .views import portfolio_view
urlpatterns = [
path('', portfolio_view, name='projects_view')
]
| 22
| 50
| 0.75
| 17
| 132
| 5.647059
| 0.647059
| 0.270833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143939
| 132
| 6
| 51
| 22
| 0.849558
| 0
| 0
| 0
| 0
| 0
| 0.097744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cc8c90a4501fe9ab990f2ab191504461fa54d0c3
| 154
|
py
|
Python
|
models/__init__.py
|
Celiali/FixMatch
|
fe55ea9daf353aead58b630da96f357eee728a82
|
[
"MIT"
] | 12
|
2020-12-07T04:24:58.000Z
|
2022-02-16T15:33:26.000Z
|
models/__init__.py
|
Celiali/FixMatch
|
fe55ea9daf353aead58b630da96f357eee728a82
|
[
"MIT"
] | 1
|
2021-07-15T23:02:22.000Z
|
2021-07-15T23:02:22.000Z
|
models/__init__.py
|
Celiali/FixMatch
|
fe55ea9daf353aead58b630da96f357eee728a82
|
[
"MIT"
] | 1
|
2021-07-14T10:21:48.000Z
|
2021-07-14T10:21:48.000Z
|
from .wideresnet import *
from .wideresnet_lk import *
WRN_MODELS = {
'WideResNet':WideResNet,
'WideResNet_Lk': WideResNet_Lk,
}
| 19.25
| 39
| 0.642857
| 15
| 154
| 6.333333
| 0.4
| 0.378947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25974
| 154
| 7
| 40
| 22
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.149351
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ccbcc99c190554ac665c0c7ffb46b19b240c78b3
| 2,925
|
py
|
Python
|
src/pyfme/models/state/velocity.py
|
gaofeng2020/PyFME
|
26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7
|
[
"MIT"
] | 199
|
2015-12-29T19:49:42.000Z
|
2022-03-19T14:31:24.000Z
|
src/pyfme/models/state/velocity.py
|
gaofeng2020/PyFME
|
26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7
|
[
"MIT"
] | 126
|
2015-09-23T11:15:42.000Z
|
2020-07-29T12:27:22.000Z
|
src/pyfme/models/state/velocity.py
|
gaofeng2020/PyFME
|
26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7
|
[
"MIT"
] | 93
|
2015-12-26T13:02:29.000Z
|
2022-03-19T14:31:13.000Z
|
"""
Python Flight Mechanics Engine (PyFME).
Copyright (c) AeroPython Development Team.
Distributed under the terms of the MIT License.
Velocity
--------
The aircraft state has
"""
from abc import abstractmethod
import numpy as np
# TODO: think about generic changes from body to horizon that could be used for
# velocity, accelerations...
# If also changes from attitude of elements in the body (such as sensors) to
# body and horizon coordinates are implemented it would be useful!
from pyfme.utils.coordinates import body2hor, hor2body
class Velocity:
"""Velocity
Attributes
----------
vel_body : ndarray, shape(3)
(u [m/s], v [m/s], w [m/s])
u
v
w
vel_NED : ndarray, shape(3)
(v_north [m/s], v_east [m/s], v_down [m/s])
v_north
v_east
v_down
"""
def __init__(self):
# Body axis
self._vel_body = np.zeros(3) # m/s
# Local horizon (NED)
self._vel_NED = np.zeros(3) # m/s
@abstractmethod
def update(self, coords, attitude):
raise NotImplementedError
@property
def vel_body(self):
return self._vel_body
@property
def u(self):
return self.vel_body[0]
@property
def v(self):
return self.vel_body[1]
@property
def w(self):
return self.vel_body[2]
@property
def vel_NED(self):
return self._vel_NED
@property
def v_north(self):
return self._vel_NED[0]
@property
def v_east(self):
return self._vel_NED[1]
@property
def v_down(self):
return self._vel_NED[2]
@property
def value(self):
"""Only for testing purposes"""
return np.hstack((self.vel_body, self.vel_NED))
class BodyVelocity(Velocity):
def __init__(self, u, v, w, attitude):
# TODO: docstring
super().__init__()
self.update(np.array([u, v, w]), attitude)
def update(self, value, attitude):
self._vel_body[:] = value
self._vel_NED = body2hor(value,
attitude.theta,
attitude.phi,
attitude.psi) # m/s
def __repr__(self):
return f"u: {self.u:.2f} m/s, v: {self.v:.2f} m/s, w: {self.w:.2f} m/s"
class NEDVelocity(Velocity):
def __init__(self, vn, ve, vd, attitude):
# TODO: docstring
super().__init__()
self.update(np.array([vn, ve, vd]), attitude)
def update(self, value, attitude):
self._vel_NED[:] = value
self._vel_body = hor2body(value,
attitude.theta,
attitude.phi,
attitude.psi) # m/s
def __repr__(self):
return (f"V_north: {self.v_north:.2f} m/s,"
f"V_east: {self.v_east:.2f} m/s, "
f"V_down: {self.v_down:.2f} m/s")
| 23.58871
| 79
| 0.563077
| 388
| 2,925
| 4.054124
| 0.278351
| 0.020343
| 0.055944
| 0.086459
| 0.312778
| 0.188175
| 0.188175
| 0.188175
| 0.136046
| 0.076287
| 0
| 0.010035
| 0.318632
| 2,925
| 123
| 80
| 23.780488
| 0.779227
| 0.246496
| 0
| 0.333333
| 0
| 0.015873
| 0.072102
| 0
| 0
| 0
| 0
| 0.01626
| 0
| 1
| 0.269841
| false
| 0
| 0.047619
| 0.15873
| 0.539683
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ccbe05761dc731218eefcccd4c39733dc739862d
| 68
|
py
|
Python
|
tests/CompileTests/Python_tests/test2011_029.py
|
maurizioabba/rose
|
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
|
[
"BSD-3-Clause"
] | 488
|
2015-01-09T08:54:48.000Z
|
2022-03-30T07:15:46.000Z
|
tests/CompileTests/Python_tests/test2011_029.py
|
sujankh/rose-matlab
|
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
|
[
"BSD-3-Clause"
] | 174
|
2015-01-28T18:41:32.000Z
|
2022-03-31T16:51:05.000Z
|
tests/CompileTests/Python_tests/test2011_029.py
|
sujankh/rose-matlab
|
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
|
[
"BSD-3-Clause"
] | 146
|
2015-04-27T02:48:34.000Z
|
2022-03-04T07:32:53.000Z
|
# test while statements
while 0:
1
while 0:
2
else:
3
| 6.8
| 23
| 0.558824
| 11
| 68
| 3.454545
| 0.727273
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 0.382353
| 68
| 9
| 24
| 7.555556
| 0.785714
| 0.308824
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
aebe95d42dfd494b017b2be2cdcdbc8f022206bc
| 212
|
py
|
Python
|
11 Februari 2021/7_Ceil and Floor.py
|
FarrelRamdhani/KelasInformatika
|
4c43c0405f335447b10aab74afec627df23b919f
|
[
"MIT"
] | null | null | null |
11 Februari 2021/7_Ceil and Floor.py
|
FarrelRamdhani/KelasInformatika
|
4c43c0405f335447b10aab74afec627df23b919f
|
[
"MIT"
] | null | null | null |
11 Februari 2021/7_Ceil and Floor.py
|
FarrelRamdhani/KelasInformatika
|
4c43c0405f335447b10aab74afec627df23b919f
|
[
"MIT"
] | null | null | null |
from math import ceil, floor, trunc
x = 1.4
y = 2.6
print(floor(x), floor(y))
print(floor(-x), floor(-y))
print(ceil(x), ceil(y))
print(ceil(-x), ceil(-y))
print(trunc(x), trunc(y))
print(trunc(-x), trunc(-y))
| 17.666667
| 35
| 0.622642
| 42
| 212
| 3.142857
| 0.309524
| 0.227273
| 0.166667
| 0.242424
| 0.742424
| 0.742424
| 0.272727
| 0
| 0
| 0
| 0
| 0.021505
| 0.122642
| 212
| 11
| 36
| 19.272727
| 0.688172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0.666667
| 0
| 0
| 0
| null | 1
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
4e23be7cefc4b12688cd6b844ea628c44fb0147c
| 265
|
py
|
Python
|
src/parsimony/__init__.py
|
ryanfeather/parsimony
|
0d3bbe247b47234a0c15962e538b2f04609c4a33
|
[
"MIT"
] | 1
|
2018-07-02T11:08:29.000Z
|
2018-07-02T11:08:29.000Z
|
src/parsimony/__init__.py
|
ryanfeather/parsimony
|
0d3bbe247b47234a0c15962e538b2f04609c4a33
|
[
"MIT"
] | 5
|
2015-03-19T13:29:29.000Z
|
2015-04-04T19:47:01.000Z
|
src/parsimony/__init__.py
|
ryanfeather/parsimony
|
0d3bbe247b47234a0c15962e538b2f04609c4a33
|
[
"MIT"
] | null | null | null |
from .release import __version__
from .generate import generate, mark_dirty, dirty, clean
from .exceptions import ParsimonyException
from . import generators
from . import configuration
from . import persistence
from .defaults import set_defaults
set_defaults()
| 22.083333
| 56
| 0.822642
| 32
| 265
| 6.59375
| 0.46875
| 0.14218
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 265
| 12
| 57
| 22.083333
| 0.917391
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.875
| 0
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4e3fc3968ee8f0017872bef877f1376109518f81
| 390
|
py
|
Python
|
unitests/argcat_unit_test.py
|
dex1n/ArgCat
|
3ff28426d7f497ce417ebd42c4832789e3b3b4b0
|
[
"MIT"
] | 1
|
2021-03-21T06:56:43.000Z
|
2021-03-21T06:56:43.000Z
|
unitests/argcat_unit_test.py
|
dex1n/ArgCat
|
3ff28426d7f497ce417ebd42c4832789e3b3b4b0
|
[
"MIT"
] | null | null | null |
unitests/argcat_unit_test.py
|
dex1n/ArgCat
|
3ff28426d7f497ce417ebd42c4832789e3b3b4b0
|
[
"MIT"
] | null | null | null |
import unittest
import os
import sys
class ArgCatUnitTest(unittest.TestCase):
def __init__(self, methodName: str) -> None:
super().__init__(methodName=methodName)
self._cur_path = os.path.dirname(os.path.abspath(sys.modules[self.__module__].__file__))
def abs_path_of_test_file(self, file_name: str) -> str:
return os.path.join(self._cur_path, file_name)
| 32.5
| 96
| 0.725641
| 54
| 390
| 4.759259
| 0.5
| 0.070039
| 0.085603
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158974
| 390
| 11
| 97
| 35.454545
| 0.783537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
4e408675dcb9ee527589d07af00ac4cec8b7ef57
| 535
|
py
|
Python
|
innterpret/attribution/patternattr.py
|
paudom/iNNterpret
|
8e6a4fc43bfc497e26fea37942765a5efaf5b7c4
|
[
"MIT"
] | 2
|
2019-03-08T12:23:03.000Z
|
2019-07-05T14:05:19.000Z
|
innterpret/attribution/patternattr.py
|
paudom/iNNterpret
|
8e6a4fc43bfc497e26fea37942765a5efaf5b7c4
|
[
"MIT"
] | 7
|
2020-01-28T22:38:40.000Z
|
2022-03-11T23:44:34.000Z
|
innterpret/attribution/patternattr.py
|
paudom/iNNterpret
|
8e6a4fc43bfc497e26fea37942765a5efaf5b7c4
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import
# -- IMPORT -- #
from ..utils.interfaces import Method
class PatternAttribution(Method):
"""CLASS::PatternAttribution:
---
Description:
---
> Gets the attribution using patterns.
Arguments:
---
Link:
---
>- http://arxiv.org/abs/1705.05598."""
def __init__(self):
raise NotImplementedError
def interpret(self):
"""METHOD::INTERPRET:
---
Arguments:
---
Returns:
---"""
pass
def __repr__(self):
return super().__repr__()+self.__class__.__name__+'>'
| 17.833333
| 55
| 0.650467
| 52
| 535
| 6.211538
| 0.673077
| 0.068111
| 0.179567
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020595
| 0.183178
| 535
| 30
| 55
| 17.833333
| 0.718535
| 0.396262
| 0
| 0
| 0
| 0
| 0.003597
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.111111
| 0.222222
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
9d7a01fbe97c35ca79d4cd01911da8cd9570eceb
| 53
|
py
|
Python
|
malaya/text/bahasa/news.py
|
ebiggerr/malaya
|
be757c793895522f80b929fe82353d90762f7fff
|
[
"MIT"
] | 88
|
2021-01-06T10:01:31.000Z
|
2022-03-30T17:34:09.000Z
|
malaya/text/bahasa/news.py
|
zulkiflizaki/malaya
|
2358081bfa43aad57d9415a99f64c68f615d0cc4
|
[
"MIT"
] | 43
|
2021-01-14T02:44:41.000Z
|
2022-03-31T19:47:42.000Z
|
malaya/text/bahasa/news.py
|
zulkiflizaki/malaya
|
2358081bfa43aad57d9415a99f64c68f615d0cc4
|
[
"MIT"
] | 38
|
2021-01-06T07:15:03.000Z
|
2022-03-19T05:07:50.000Z
|
news = ['klik untuk membaca', 'klik untuk maklumat']
| 26.5
| 52
| 0.698113
| 7
| 53
| 5.285714
| 0.714286
| 0.486486
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 53
| 1
| 53
| 53
| 0.822222
| 0
| 0
| 0
| 0
| 0
| 0.698113
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9d92cc65827cd5fd979d0843a2269e9633857396
| 97
|
py
|
Python
|
main.py
|
chengxianga2008/abn_amro
|
66172747328b33a591ea4e4fcbb902cb823b91e0
|
[
"BSD-2-Clause"
] | null | null | null |
main.py
|
chengxianga2008/abn_amro
|
66172747328b33a591ea4e4fcbb902cb823b91e0
|
[
"BSD-2-Clause"
] | null | null | null |
main.py
|
chengxianga2008/abn_amro
|
66172747328b33a591ea4e4fcbb902cb823b91e0
|
[
"BSD-2-Clause"
] | null | null | null |
import app
if __name__ == "__main__":
app.daily_summary("data/Input.txt", "data/Output.csv")
| 24.25
| 58
| 0.701031
| 14
| 97
| 4.214286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123711
| 97
| 4
| 58
| 24.25
| 0.694118
| 0
| 0
| 0
| 0
| 0
| 0.377551
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d18af7b94f4f32850b9d3a02c85ca36d568510f0
| 1,686
|
py
|
Python
|
Contest/LeetCode/BiweeklyContest28/4.py
|
WatsonWangZh/CodingPractice
|
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
|
[
"MIT"
] | 11
|
2019-09-01T22:36:00.000Z
|
2021-11-08T08:57:20.000Z
|
Contest/LeetCode/BiweeklyContest28/4.py
|
WatsonWangZh/LeetCodePractice
|
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
|
[
"MIT"
] | null | null | null |
Contest/LeetCode/BiweeklyContest28/4.py
|
WatsonWangZh/LeetCodePractice
|
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
|
[
"MIT"
] | 2
|
2020-05-27T14:58:52.000Z
|
2020-05-27T15:04:17.000Z
|
# 1478. Allocate Mailboxes
# User Accepted:342
# User Tried:594
# Total Accepted:364
# Total Submissions:1061
# Difficulty:Hard
# Given the array houses and an integer k. where houses[i] is the location of the ith house along a street, your task is to allocate k mailboxes in the street.
# Return the minimum total distance between each house and its nearest mailbox.
# The answer is guaranteed to fit in a 32-bit signed integer.
# Example 1:
# Input: houses = [1,4,8,10,20], k = 3
# Output: 5
# Explanation: Allocate mailboxes in position 3, 9 and 20.
# Minimum total distance from each houses to nearest mailboxes is |3-1| + |4-3| + |9-8| + |10-9| + |20-20| = 5
# Example 2:
# Input: houses = [2,3,5,12,18], k = 2
# Output: 9
# Explanation: Allocate mailboxes in position 3 and 14.
# Minimum total distance from each houses to nearest mailboxes is |2-3| + |3-3| + |5-3| + |12-14| + |18-14| = 9.
# Example 3:
# Input: houses = [7,4,6,1], k = 1
# Output: 8
# Example 4:
# Input: houses = [3,6,14,10], k = 4
# Output: 0
# Constraints:
# n == houses.length
# 1 <= n <= 100
# 1 <= houses[i] <= 10^4
# 1 <= k <= n
# Array houses contain unique integers.
class Solution:
def minDistance(self, houses: List[int], k: int) -> int:
# if k >= len(houses):
# return 0
# houses.sort()
# res = 0
# num = 0
# tmp = houses[1:] + [houses[1]]
# diff = [tmp[i] - houses[i] for i in range(len(houses)-1)]
# diff.sort()
# for i in range(len(diff)):
# res += diff[i]
# num += 2
# k -= 1
# if num + k == len(houses):
# return res
pass
| 28.576271
| 159
| 0.580664
| 264
| 1,686
| 3.708333
| 0.359848
| 0.044944
| 0.061287
| 0.061287
| 0.21859
| 0.18999
| 0.110317
| 0.110317
| 0.110317
| 0.110317
| 0
| 0.088816
| 0.278766
| 1,686
| 58
| 160
| 29.068966
| 0.716283
| 0.814354
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
d1d0fe4d85e8f06718ad484d0653f8f1487b2d32
| 155
|
py
|
Python
|
main.py
|
adael/goldminer
|
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
|
[
"MIT"
] | 2
|
2016-11-08T14:32:40.000Z
|
2018-06-12T11:44:24.000Z
|
main.py
|
adael/goldminer
|
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
|
[
"MIT"
] | null | null | null |
main.py
|
adael/goldminer
|
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
|
[
"MIT"
] | null | null | null |
import os
from goldminer import game
if __name__ == "__main__":
print("Initializing")
print("Working directory: " + os.getcwd())
game.start()
| 19.375
| 46
| 0.670968
| 18
| 155
| 5.333333
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193548
| 155
| 7
| 47
| 22.142857
| 0.768
| 0
| 0
| 0
| 0
| 0
| 0.251613
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d1df1905cca6f1b65e50adab041641c51732a082
| 2,034
|
py
|
Python
|
bqplot/__init__.py
|
jasongrout/bqplot
|
2416a146296419340b8d5998bf9d1538e6750579
|
[
"Apache-2.0"
] | null | null | null |
bqplot/__init__.py
|
jasongrout/bqplot
|
2416a146296419340b8d5998bf9d1538e6750579
|
[
"Apache-2.0"
] | 1
|
2019-04-16T04:54:14.000Z
|
2019-04-16T09:13:08.000Z
|
bqplot/__init__.py
|
jasongrout/bqplot
|
2416a146296419340b8d5998bf9d1538e6750579
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2015 Bloomberg Finance L.P.
#
# 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.
r"""
==============
BQPlot Package
==============
.. currentmodule:: bqplot
Each plot starts with a `Figure` object. A `Figure` has a number of `Axis` objects (horizontal and vertical) and a number of `Mark` objects. Each `Mark` object is a visual representation of the data. Each `Axis` and `Mark` has a `Scale` object. The `Scale` objects transform data into a visual property (typically a location in pixel space, but could be a color, etc.). An `Axis` draws an axis associated with the scale. ::
from bqplot import *
from IPython.display import display
x_data = range(10)
y_data = [i ** 2 for i in x_data]
x_sc = LinearScale()
y_sc = LinearScale()
ax_x = Axis(label='Test X', scale=x_sc, tick_format='0.0f')
ax_y = Axis(label='Test Y', scale=y_sc, orientation='vertical', tick_format='0.2f')
line = Lines(x=x_data,
y=y_data,
scales={'x':x_sc, 'y':y_sc},
colors=['red', 'yellow'])
fig = Figure(axes=[ax_x, ax_y], marks=[line])
display(fig)
.. automodule:: bqplot.figure
.. automodule:: bqplot.scales
.. automodule:: bqplot.marks
.. automodule:: bqplot.axes
.. automodule:: bqplot.market_map
.. automodule:: bqplot.interacts
.. automodule:: bqplot.traits
.. automodule:: bqplot.map
.. automodule:: bqplot.pyplot
"""
from .figure import *
from .axes import *
from .marks import *
from .scales import *
from .default_tooltip import *
| 31.292308
| 426
| 0.681416
| 297
| 2,034
| 4.602694
| 0.454545
| 0.10534
| 0.01902
| 0.023409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009158
| 0.19469
| 2,034
| 64
| 427
| 31.78125
| 0.825397
| 0.923795
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d1f6e12efd38a6684f9d520d31da3aa92782ab6e
| 117
|
py
|
Python
|
netmiko/endace/__init__.py
|
jcinma/netmiko
|
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
|
[
"MIT"
] | null | null | null |
netmiko/endace/__init__.py
|
jcinma/netmiko
|
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
|
[
"MIT"
] | null | null | null |
netmiko/endace/__init__.py
|
jcinma/netmiko
|
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
|
[
"MIT"
] | null | null | null |
from __future__ import unicode_literals
from netmiko.endace.endace_ssh import EndaceSSH
__all__ = ['EndaceSSH']
| 23.4
| 48
| 0.803419
| 14
| 117
| 6
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136752
| 117
| 4
| 49
| 29.25
| 0.831683
| 0
| 0
| 0
| 0
| 0
| 0.079646
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ae055c5b84f622a233b0f246dba69a36833cf570
| 134
|
py
|
Python
|
topCoder/srms/200s/srm270/div2/buying_cheap.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 25
|
2015-01-21T16:39:18.000Z
|
2021-05-24T07:01:24.000Z
|
topCoder/srms/200s/srm270/div2/buying_cheap.py
|
gauravsingh58/algo
|
397859a53429e7a585e5f6964ad24146c6261326
|
[
"WTFPL"
] | 2
|
2020-09-30T19:39:36.000Z
|
2020-10-01T17:15:16.000Z
|
topCoder/srms/200s/srm270/div2/buying_cheap.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 15
|
2015-01-21T16:39:27.000Z
|
2020-10-01T17:00:22.000Z
|
class BuyingCheap:
def thirdBestPrice(self, prices):
ls = sorted(set(prices))
return -1 if len(ls) < 3 else ls[2]
| 26.8
| 43
| 0.61194
| 19
| 134
| 4.315789
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030612
| 0.268657
| 134
| 4
| 44
| 33.5
| 0.806122
| 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 | 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
| 0
| 1
| 0
|
0
| 4
|
ae131e4cfe7f41c7e3b760f7d7833d99b7a223bd
| 32
|
py
|
Python
|
renderchan/__init__.py
|
decipher-media/RenderChan
|
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
|
[
"BSD-3-Clause"
] | 30
|
2015-02-12T13:21:30.000Z
|
2019-12-09T07:29:47.000Z
|
renderchan/__init__.py
|
decipher-media/RenderChan
|
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
|
[
"BSD-3-Clause"
] | 53
|
2015-12-20T17:04:00.000Z
|
2019-11-11T07:54:50.000Z
|
renderchan/__init__.py
|
decipher-media/RenderChan
|
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
|
[
"BSD-3-Clause"
] | 7
|
2015-08-10T01:38:28.000Z
|
2020-02-14T20:06:28.000Z
|
"""
Main RenderChan package
"""
| 8
| 23
| 0.65625
| 3
| 32
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 32
| 3
| 24
| 10.666667
| 0.777778
| 0.71875
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ae31a4d08aeb572fffda497f8fd188e49b5508e5
| 149
|
py
|
Python
|
modules/2.79/bpy/types/TextCharacterFormat.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/TextCharacterFormat.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/TextCharacterFormat.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
class TextCharacterFormat:
material_index = None
use_bold = None
use_italic = None
use_small_caps = None
use_underline = None
| 14.9
| 26
| 0.691275
| 18
| 149
| 5.388889
| 0.611111
| 0.28866
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.268456
| 149
| 9
| 27
| 16.555556
| 0.889908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
ae3ecabbefa60b62d05ffb5c99a5c524d7526637
| 73
|
py
|
Python
|
task3/mask_r_cnn/mark_cvppp.py
|
HenryLiangzy/COMP9517_Group
|
83be7304bee47d52781ea71f06838cd148dbd0bd
|
[
"Apache-2.0"
] | null | null | null |
task3/mask_r_cnn/mark_cvppp.py
|
HenryLiangzy/COMP9517_Group
|
83be7304bee47d52781ea71f06838cd148dbd0bd
|
[
"Apache-2.0"
] | null | null | null |
task3/mask_r_cnn/mark_cvppp.py
|
HenryLiangzy/COMP9517_Group
|
83be7304bee47d52781ea71f06838cd148dbd0bd
|
[
"Apache-2.0"
] | null | null | null |
import cv2
import os
import glob
import numpy as np
def mark(img):
| 9.125
| 18
| 0.712329
| 13
| 73
| 4
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0.246575
| 73
| 8
| 19
| 9.125
| 0.927273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.8
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ae4f4fa26dd1ca5d802353abe3e69eef53ebe442
| 218
|
py
|
Python
|
src/models/bert_crf.py
|
Zrealshadow/NLP_HW
|
1fcc874b53cdf9465ab188c12082587d48644601
|
[
"MIT"
] | 1
|
2020-08-19T03:27:18.000Z
|
2020-08-19T03:27:18.000Z
|
src/models/bert_crf.py
|
OpenNLPhub/ChineseNER
|
1fcc874b53cdf9465ab188c12082587d48644601
|
[
"MIT"
] | null | null | null |
src/models/bert_crf.py
|
OpenNLPhub/ChineseNER
|
1fcc874b53cdf9465ab188c12082587d48644601
|
[
"MIT"
] | null | null | null |
import torch
import os
from torch import nn
from transformers import BertForTokenClassification,BertTokenizer,BertConfig;
cwd=os.getcwd()
class BERT_CRF(nn.Module):
def __init__(self,vocab_size):
pass
| 16.769231
| 77
| 0.770642
| 28
| 218
| 5.785714
| 0.75
| 0.135802
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16055
| 218
| 13
| 78
| 16.769231
| 0.885246
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.125
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
ae6b38b5ef961be1df343f27398c8d975b548233
| 274
|
py
|
Python
|
src/admin_panel/models.py
|
sahilsehgal1995/lenme-api
|
65826619b039c5c4035b6e0c133c32014977489e
|
[
"MIT"
] | null | null | null |
src/admin_panel/models.py
|
sahilsehgal1995/lenme-api
|
65826619b039c5c4035b6e0c133c32014977489e
|
[
"MIT"
] | null | null | null |
src/admin_panel/models.py
|
sahilsehgal1995/lenme-api
|
65826619b039c5c4035b6e0c133c32014977489e
|
[
"MIT"
] | null | null | null |
from src import db, BaseMixin
class Log(db.Model, BaseMixin):
action = db.Column(db.String(55), nullable=False)
owner_id = db.Column(db.Integer, db.ForeignKey('user.id'))
updated_data = db.Column(db.String(1024))
updated_model = db.Column(db.String(125))
| 27.4
| 62
| 0.70073
| 42
| 274
| 4.5
| 0.547619
| 0.169312
| 0.21164
| 0.253968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038627
| 0.149635
| 274
| 9
| 63
| 30.444444
| 0.772532
| 0
| 0
| 0
| 0
| 0
| 0.025547
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
ae776a59c5b3c2f0543df97b416e9a2ebb997432
| 488
|
py
|
Python
|
mypylib/utils.py
|
WillJBrown/displayotron
|
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
|
[
"MIT"
] | null | null | null |
mypylib/utils.py
|
WillJBrown/displayotron
|
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
|
[
"MIT"
] | null | null | null |
mypylib/utils.py
|
WillJBrown/displayotron
|
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
|
[
"MIT"
] | null | null | null |
import os
import sys
def get_script_path(): #the path to the actual called script
return os.path.realpath(sys.argv[0])
def get_script_dir(): #the path to the actual called script directory
return os.path.dirname(os.path.realpath(sys.argv[0]))
def get_executing_file_dir(): #e.g. the path to the module file
return os.path.realpath(__file__)
def get_executing_file_dir(): #e.g. the path to the folder the module is in
return os.path.dirname(os.path.realpath(__file__))
| 32.533333
| 75
| 0.75
| 86
| 488
| 4.046512
| 0.302326
| 0.103448
| 0.103448
| 0.137931
| 0.672414
| 0.672414
| 0.672414
| 0.350575
| 0.206897
| 0.206897
| 0
| 0.004808
| 0.147541
| 488
| 14
| 76
| 34.857143
| 0.831731
| 0.32377
| 0
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ae78cbed15f9ad137cc2fb68f470a749694330cd
| 72
|
py
|
Python
|
danceschool/payments/paypal/__init__.py
|
django-danceschool/django-danceschool
|
65ae09ffdcb0821e82df0e1f634fe13c0384a525
|
[
"BSD-3-Clause"
] | 32
|
2017-09-12T04:25:25.000Z
|
2022-03-21T10:48:07.000Z
|
danceschool/payments/paypal/__init__.py
|
django-danceschool/django-danceschool
|
65ae09ffdcb0821e82df0e1f634fe13c0384a525
|
[
"BSD-3-Clause"
] | 97
|
2017-09-01T02:43:08.000Z
|
2022-01-03T18:20:34.000Z
|
danceschool/payments/paypal/__init__.py
|
django-danceschool/django-danceschool
|
65ae09ffdcb0821e82df0e1f634fe13c0384a525
|
[
"BSD-3-Clause"
] | 19
|
2017-09-26T13:34:46.000Z
|
2022-03-21T10:48:10.000Z
|
default_app_config = 'danceschool.payments.paypal.apps.PaypalAppConfig'
| 36
| 71
| 0.861111
| 8
| 72
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 72
| 1
| 72
| 72
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
88256ef9dd2f406213232667e9ac4bf44aae2ebc
| 312
|
py
|
Python
|
src/models/functions/__init__.py
|
takedarts/skipresnet
|
d6f1e16042f8433a287355009e17e4e5768ad319
|
[
"MIT"
] | 3
|
2022-02-03T13:25:12.000Z
|
2022-02-04T16:12:23.000Z
|
src/models/functions/__init__.py
|
takedarts/skipresnet
|
d6f1e16042f8433a287355009e17e4e5768ad319
|
[
"MIT"
] | null | null | null |
src/models/functions/__init__.py
|
takedarts/skipresnet
|
d6f1e16042f8433a287355009e17e4e5768ad319
|
[
"MIT"
] | 1
|
2022-02-04T12:28:02.000Z
|
2022-02-04T12:28:02.000Z
|
from .channelpad import channelpad
from .conv2d_same import conv2d_same
from .padding import get_same_padding, pad_same
from .shakedrop import shakedrop
from .sigaug import signal_augment
from .sigmoid import h_sigmoid
from .stack import adjusted_concat, adjusted_stack
from .swish import h_swish, swish
| 34.666667
| 51
| 0.826923
| 45
| 312
| 5.511111
| 0.4
| 0.080645
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007435
| 0.137821
| 312
| 8
| 52
| 39
| 0.914498
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
8840790f6010bda703bcb00bd31eb62706621ff5
| 799
|
py
|
Python
|
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
|
Leon-Bichmann/Tutorials
|
c9183f98b162833cbca59e6d71a5ae3cc4375b31
|
[
"BSD-3-Clause"
] | null | null | null |
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
|
Leon-Bichmann/Tutorials
|
c9183f98b162833cbca59e6d71a5ae3cc4375b31
|
[
"BSD-3-Clause"
] | null | null | null |
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
|
Leon-Bichmann/Tutorials
|
c9183f98b162833cbca59e6d71a5ae3cc4375b31
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def main(options):
# test parameter handling
print options.infile, options.traml_in, options.outfile
def handle_args():
import argparse
usage = ""
usage += "\nOpenSwathFeatureXMLToTSV −− Converts a featureXML to a mProphet tsv."
parser = argparse.ArgumentParser(description = usage )
parser.add_argument('-in', dest='infile', help = 'An input file containing features [featureXML]')
parser.add_argument('-tr', dest='traml_in', help='An input file containing the transitions [TraML]')
parser.add_argument('-out', dest='outfile', help='Output mProphet TSV file [tsv]')
args = parser.parse_args(sys.argv[1:])
return args
if __name__ == '__main__':
options = handle_args()
main(options)
| 799
| 799
| 0.68836
| 101
| 799
| 5.306931
| 0.544554
| 0.061567
| 0.095149
| 0.05597
| 0.093284
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00304
| 0.176471
| 799
| 1
| 799
| 799
| 0.808511
| 0.994994
| 0
| 0
| 0
| 0
| 0.319178
| 0.035616
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.125
| null | null | 0.0625
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
887cf7708e8f994e5fe9bde9079bf51b3a0cab82
| 4,054
|
py
|
Python
|
hijackednode/logger.py
|
Luxter77/Hijacked-Node
|
378cbb4201e891e81107b22ba568b3564b2e4197
|
[
"BSD-3-Clause"
] | null | null | null |
hijackednode/logger.py
|
Luxter77/Hijacked-Node
|
378cbb4201e891e81107b22ba568b3564b2e4197
|
[
"BSD-3-Clause"
] | null | null | null |
hijackednode/logger.py
|
Luxter77/Hijacked-Node
|
378cbb4201e891e81107b22ba568b3564b2e4197
|
[
"BSD-3-Clause"
] | null | null | null |
from discord import TextChannel, User
from discord.ext.commands import Bot
from .configuration import CONF0
from tqdm.asyncio import tqdm
# class LogMe:
# """This is a complicated logger I came up with.\n
# Feel free to insult me whilst readding it."""
# _std = {
# "LS": "|-----------------Log_ START-------------------|",
# "ES": "|-----------------ERR_ START-------------------|",
# "EE": "|------------------ERR_ END--------------------|",
# "LE": "|------------------Log_ END--------------------|",
# "!?": "Some unprintable error happened...",
# "!!": "Ah for fucks sake something went horribly wrong!",
# }
# def __init__(self, bot: Bot, config: CONF0):
# self.LogAdmin = set([bot.get_user(Admin) for Admin in config.LogAdmin])
# self.LogChan = set([bot.get_channel(Chan) for Chan in config.LogChan])
# async def __call__(self, st, err_: bool = False, tq: bool = True):
# if err_:
# print(self._std["ES"]) if (tq) else tqdm.write(self._std["ES"])
# print(st) if (tq) else tqdm.write(st)
# try:
# with self.bot.get_channel(self.LogChan) as chan:
# await chan.send()
# if self.LogAdmin:
# await chan.send(
# " ".join([str(admin.mention) for admin in self.LogAdmin])
# )
# await chan.send(st)
# await chan.send(self._std["EE"])
# except Exception:
# try:
# with self.bot.get_channel(self.debug) as chan:
# await chan.send(self._std["ES"])
# try:
# if self.LogAdmin:
# await chan.send(
# " ".join(
# [str(admin.mention) for admin in self.LogAdmin]
# )
# )
# await chan.send(str(st))
# except Exception:
# if self.LogAdmin:
# await chan.send(
# " ".join(
# [str(admin.mention) for admin in self.LogAdmin]
# )
# )
# await chan.send("Some unprintable error happened...")
# await chan.send(self._std["EE"])
# except Exception:
# _std = "Ah for hugs sake something went horribly wrong! AGAIN"
# print(_std) if (tq) else tqdm.write(_std)
# print(self._std["EE"]) if (tq) else tqdm.write(self._std["EE"])
# else:
# print(st) if (tq) else tqdm.write(st)
# try:
# with self.bot.get_channel(self.debug) as chan:
# await chan.send(st)
# except Exception:
# try:
# with self.bot.get_channel(self.debug) as chan:
# try:
# try:
# await chan.send(st)
# except Exception:
# await chan.send(str(type(st)))
# await chan.send(str(st))
# except Exception:
# await chan.send(self._std["!?"])
# except Exception:
# await self(self._std["!!"], True)
# def add_LogChan(self, Chan: TextChannel) -> None:
# self.Logchan.add(Chan)
# def del_LogChan(self, Chan: TextChannel) -> None:
# self.Logchan.remove(Chan)
# def add_LogAdmin(self, Admin: User) -> None:
# self.LogAdmin.add(Admin)
# def del_LogAdmin(self, Admin: User) -> None:
# self.LogAdmin.remove(Admin)
| 45.044444
| 89
| 0.415886
| 380
| 4,054
| 4.339474
| 0.244737
| 0.081868
| 0.118253
| 0.07641
| 0.5943
| 0.527592
| 0.49242
| 0.336568
| 0.300788
| 0.300788
| 0
| 0.000873
| 0.434879
| 4,054
| 89
| 90
| 45.550562
| 0.7189
| 0.925506
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
31ef8505dceb7b8308004964199bac366c51558c
| 54
|
py
|
Python
|
src/pkgcore/merge/__init__.py
|
thesamesam/pkgcore
|
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
|
[
"BSD-3-Clause"
] | null | null | null |
src/pkgcore/merge/__init__.py
|
thesamesam/pkgcore
|
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
|
[
"BSD-3-Clause"
] | null | null | null |
src/pkgcore/merge/__init__.py
|
thesamesam/pkgcore
|
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
|
[
"BSD-3-Clause"
] | null | null | null |
"""
package related livefs modification subsystem
"""
| 13.5
| 45
| 0.759259
| 5
| 54
| 8.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 54
| 3
| 46
| 18
| 0.87234
| 0.833333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ee006fceb0659547ddf28bebb8b2d57c2c9c4600
| 181
|
py
|
Python
|
dotpyle/commands/add/__init__.py
|
jorgebodega/dotpyle
|
896bcb2126904b58e70c1c63af21da07438ce7b9
|
[
"MIT"
] | null | null | null |
dotpyle/commands/add/__init__.py
|
jorgebodega/dotpyle
|
896bcb2126904b58e70c1c63af21da07438ce7b9
|
[
"MIT"
] | 2
|
2021-04-15T16:36:58.000Z
|
2022-01-04T00:03:24.000Z
|
dotpyle/commands/add/__init__.py
|
jorgebodega/dotpyle
|
896bcb2126904b58e70c1c63af21da07438ce7b9
|
[
"MIT"
] | 1
|
2021-12-21T16:57:21.000Z
|
2021-12-21T16:57:21.000Z
|
import click
from dotpyle.commands.add.dotfile import dotfile
@click.group()
def add():
"""
This command will take KEY and ... DOTFILE
"""
add.add_command(dotfile)
| 12.928571
| 48
| 0.674033
| 24
| 181
| 5.041667
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.20442
| 181
| 13
| 49
| 13.923077
| 0.840278
| 0.232044
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ee0479dc94dba3bc24c12f4b6da817cfb2faeead
| 259
|
py
|
Python
|
main/filesAndForms/models.py
|
nynguyen/sprint_zero_demo
|
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
|
[
"MIT"
] | null | null | null |
main/filesAndForms/models.py
|
nynguyen/sprint_zero_demo
|
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
|
[
"MIT"
] | null | null | null |
main/filesAndForms/models.py
|
nynguyen/sprint_zero_demo
|
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
|
[
"MIT"
] | null | null | null |
from django.db import models
class InputFile(models.Model):
input = models.FileField(upload_to='input/%Y/%m/%d')
next_one = models.FileField(upload_to='documents/%Y/%m/%d')
name=models.CharField(max_length=100)
privacy=models.BooleanField(default=False)
| 32.375
| 60
| 0.76834
| 39
| 259
| 5
| 0.692308
| 0.153846
| 0.215385
| 0.235897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0125
| 0.073359
| 259
| 7
| 61
| 37
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.123552
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
ee0c3eec70fd399ae7e39453c7ddf4147eae1d8b
| 19
|
py
|
Python
|
tutorial/2_java/emk_rules.py
|
awm/emk
|
ee26ceb47a96e1fae8729dea19c7da4f62f798da
|
[
"BSD-2-Clause"
] | 10
|
2017-04-02T13:05:55.000Z
|
2021-10-04T22:06:50.000Z
|
tutorial/2_java/emk_rules.py
|
awm/emk
|
ee26ceb47a96e1fae8729dea19c7da4f62f798da
|
[
"BSD-2-Clause"
] | null | null | null |
tutorial/2_java/emk_rules.py
|
awm/emk
|
ee26ceb47a96e1fae8729dea19c7da4f62f798da
|
[
"BSD-2-Clause"
] | null | null | null |
emk.module("java")
| 9.5
| 18
| 0.684211
| 3
| 19
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 19
| 1
| 19
| 19
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ee13fe06ca5c309a9828923b3634c76483f38157
| 2,439
|
py
|
Python
|
Main/models.py
|
semvis123/Project-Webtechnologie
|
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
|
[
"MIT"
] | null | null | null |
Main/models.py
|
semvis123/Project-Webtechnologie
|
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
|
[
"MIT"
] | null | null | null |
Main/models.py
|
semvis123/Project-Webtechnologie
|
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
|
[
"MIT"
] | null | null | null |
from Main import db, login_manager
from faker import Faker
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
fake = Faker()
@login_manager.user_loader
def load_user(user_id):
return User.query.get(user_id)
class User(db.Model, UserMixin):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String)
email = db.Column(db.String)
password_hash = db.Column(db.String(128))
profile_color = db.Column(db.String)
def __init__(self, email, password):
self.email = email
self.password_hash = generate_password_hash(password)
# create a random config first, user can change it later
self.username = fake.user_name()
self.profile_color = fake.color(luminosity='dark')
def check_password(self, password):
return check_password_hash(self.password_hash, password)
def __repr__(self):
return "user({},{},{},{})".format(self.id, self.username, self.email, self.profile_color)
class Comment(db.Model):
__tablename__ = 'comments'
id = db.Column(db.Integer, primary_key=True)
owner_id = db.Column(db.Integer, db.ForeignKey('users.id'))
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'))
message = db.Column(db.String)
def __init__(self, owner_id, post_id, message):
self.owner_id = owner_id
self.post_id = post_id
self.message = message
def __repr__(self):
return "comment({},{},{},{})".format(self.id, self.owner_id, self.post_id, self.message)
class Like(db.Model):
__tablename__ = 'likes'
id = db.Column(db.Integer, primary_key=True)
owner_id = db.Column(db.Integer, db.ForeignKey('users.id'))
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'))
def __init__(self, owner_id, post_id):
self.owner_id = owner_id
self.post_id = post_id
def __repr__(self):
return "like({},{},{})".format(self.id, self.owner_id, self.post_id)
class Post(db.Model):
__tablename__ = 'posts'
id = db.Column(db.Integer, primary_key=True)
owner_id = db.Column(db.Integer, db.ForeignKey('users.id'))
text = db.Column(db.Text)
def __init__(self, text, owner_id):
self.text = text
self.owner_id = owner_id
def __repr__(self):
return "post({}, {}, {})".format(self.id, self.owner_id, self.text)
| 30.111111
| 97
| 0.671587
| 342
| 2,439
| 4.497076
| 0.190058
| 0.078023
| 0.097529
| 0.070221
| 0.421977
| 0.388166
| 0.388166
| 0.311443
| 0.289987
| 0.247074
| 0
| 0.001524
| 0.193112
| 2,439
| 80
| 98
| 30.4875
| 0.77998
| 0.02214
| 0
| 0.321429
| 1
| 0
| 0.056232
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.178571
| false
| 0.107143
| 0.071429
| 0.107143
| 0.767857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
ee2050a50daad419401ba669fc24c584b7a2b6fa
| 65
|
py
|
Python
|
tests/__init__.py
|
GraphQL-python-archive/graphql-env
|
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
GraphQL-python-archive/graphql-env
|
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
|
[
"MIT"
] | 3
|
2019-07-24T21:05:52.000Z
|
2021-11-15T17:46:27.000Z
|
tests/__init__.py
|
GraphQL-python-archive/graphql-env
|
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Unit test package for graphql_env."""
| 21.666667
| 40
| 0.6
| 9
| 65
| 4.222222
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0.153846
| 65
| 2
| 41
| 32.5
| 0.672727
| 0.876923
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ee2d5efda5124f708e91530073f276b0080ff013
| 181
|
py
|
Python
|
main/schemas/request.py
|
vuhuycto/gotit-onboard-final-project
|
44f4d29c86d841713207efc3d0b30c63f00e6084
|
[
"MIT"
] | null | null | null |
main/schemas/request.py
|
vuhuycto/gotit-onboard-final-project
|
44f4d29c86d841713207efc3d0b30c63f00e6084
|
[
"MIT"
] | null | null | null |
main/schemas/request.py
|
vuhuycto/gotit-onboard-final-project
|
44f4d29c86d841713207efc3d0b30c63f00e6084
|
[
"MIT"
] | null | null | null |
from marshmallow import fields, validate
from .base import BaseSchema
class PageParamSchema(BaseSchema):
page = fields.Integer(required=True, validate=validate.Range(min=1))
| 22.625
| 72
| 0.790055
| 22
| 181
| 6.5
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006289
| 0.121547
| 181
| 7
| 73
| 25.857143
| 0.893082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ee35e8695f1106242572ccc2f67ad6599a4046fc
| 7,889
|
py
|
Python
|
tests/test_format.py
|
Hassanchenganasseri/yara-language-server
|
9ba4d820f1cabb738921e17d4489706966cb290b
|
[
"Apache-2.0"
] | 1
|
2021-11-13T02:04:55.000Z
|
2021-11-13T02:04:55.000Z
|
tests/test_format.py
|
Hassanchenganasseri/yara-language-server
|
9ba4d820f1cabb738921e17d4489706966cb290b
|
[
"Apache-2.0"
] | 4
|
2020-12-12T23:41:40.000Z
|
2021-01-18T17:00:53.000Z
|
tests/test_format.py
|
Hassanchenganasseri/yara-language-server
|
9ba4d820f1cabb738921e17d4489706966cb290b
|
[
"Apache-2.0"
] | 1
|
2022-02-21T15:36:21.000Z
|
2022-02-21T15:36:21.000Z
|
''' Format Provider Tests '''
from textwrap import dedent
import pytest
from yarals import helpers
from yarals.base import protocol
from yarals.base import errors as ce
# don't care about pylint(protected-access) warnings since these are just tests
# pylint: disable=W0212
@pytest.mark.asyncio
async def test_format(format_options, test_rules, yara_server):
''' Ensure a text edit is provided on format with explicit options '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": format_options
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
async def test_format_default_options(test_rules, yara_server):
''' Ensure a text edit is provided on format with implicit options '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12}
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
async def test_format_alt_tabsize(test_rules, yara_server):
''' Ensure a text edit is provided on format with tabSize set '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": {"tabSize": 2}
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
async def test_format_insert_tabs(test_rules, yara_server):
''' Ensure a text edit is provided that uses tabs instead of spaces '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": {"insertSpaces": False}
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.skip(reason="not implemented")
@pytest.mark.asyncio
async def test_format_keep_whitespace(test_rules, yara_server):
''' Ensure a text edit is provided with untrimmed whitespace '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
# spacing should be preserved
dirty_files = {
file_uri: expected
}
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": {"trimTrailingWhitespace": False}
}
}
result = await yara_server.provide_formatting(message, True, dirty_files=dirty_files)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
async def test_format_insert_newline(test_rules, yara_server):
''' Ensure a text edit is provided with an extra newline inserted '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}
""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": {"insertFinalNewline": True}
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
async def test_format_keep_newlines(test_rules, yara_server):
''' Ensure a text edit is provided with extra newlines '''
expected = dedent("""\
rule Oneline : test
{
strings:
$a = "test"
condition:
$a
}
""")
oneline = str(test_rules.joinpath("oneline.yar").resolve())
with open(oneline) as ifile:
file_uri = helpers.create_file_uri(oneline)
dirty_files = {
file_uri: "%s\n\n\n" % ifile.read()
}
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12},
"options": {"trimFinalNewlines": False}
}
}
result = await yara_server.provide_formatting(message, True, dirty_files=dirty_files)
assert len(result) == 1
edit = result[0]
assert isinstance(edit, protocol.TextEdit) is True
assert edit.newText == expected
@pytest.mark.asyncio
@pytest.mark.xfail(reason="package installation issues")
async def test_format_notify_user(test_rules, uninstall_pkg, yara_server):
''' Ensure the formatter notifies the user if plyara is not installed '''
expected_msg = "plyara is not installed. Formatting is disabled"
oneline = str(test_rules.joinpath("oneline.yar").resolve())
file_uri = helpers.create_file_uri(oneline)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 29, "character": 12}
}
}
await uninstall_pkg("plyara")
with pytest.raises(ce.NoDependencyFound) as excinfo:
await yara_server.provide_formatting(message, True)
assert expected_msg == str(excinfo.value)
@pytest.mark.asyncio
async def test_format_no_imports(test_rules, yara_server):
''' Ensure imports are removed from provided rules. They should not be affected by formatter '''
rulefile = str(test_rules.joinpath("code_completion.yara").resolve())
file_uri = helpers.create_file_uri(rulefile)
message = {
"params": {
"textDocument": {"uri": file_uri},
"position": {"line": 9, "character": 12}
}
}
result = await yara_server.provide_formatting(message, True)
assert len(result) == 3
assert all([isinstance(edit, protocol.TextEdit) for edit in result])
full_text = "\n".join([edit.newText for edit in result])
# should only be two imports - one for cuckoo and one for pe
assert full_text.count("import ") == 0
| 31.556
| 100
| 0.615667
| 899
| 7,889
| 5.262514
| 0.181313
| 0.045868
| 0.029592
| 0.042274
| 0.746988
| 0.741704
| 0.741704
| 0.712534
| 0.683154
| 0.682097
| 0
| 0.009615
| 0.261757
| 7,889
| 249
| 101
| 31.682731
| 0.802713
| 0.026619
| 0
| 0.691589
| 0
| 0
| 0.212569
| 0.003128
| 0
| 0
| 0
| 0
| 0.116822
| 1
| 0
| false
| 0
| 0.03271
| 0
| 0.03271
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ee60c5f12218481a614f45ba662c82c90fe52fd1
| 108
|
py
|
Python
|
us_congress/_exceptions.py
|
drawjk705/us-congress
|
dedae9171953f770d9b6efe4f1e4db83f60dd4b4
|
[
"MIT"
] | 1
|
2021-09-10T21:06:40.000Z
|
2021-09-10T21:06:40.000Z
|
us_congress/_exceptions.py
|
drawjk705/us-congress
|
dedae9171953f770d9b6efe4f1e4db83f60dd4b4
|
[
"MIT"
] | null | null | null |
us_congress/_exceptions.py
|
drawjk705/us-congress
|
dedae9171953f770d9b6efe4f1e4db83f60dd4b4
|
[
"MIT"
] | null | null | null |
class NoCongressApiKeyException(Exception):
"""
Thrown when no Congress API key is provided
"""
| 21.6
| 47
| 0.694444
| 11
| 108
| 6.818182
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 108
| 4
| 48
| 27
| 0.892857
| 0.398148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
ee682792cda511c74c606d02749117ec478e5c63
| 177
|
py
|
Python
|
src/apps/dive_log/apps.py
|
GotlingSystem/apnea
|
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
|
[
"MIT"
] | null | null | null |
src/apps/dive_log/apps.py
|
GotlingSystem/apnea
|
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
|
[
"MIT"
] | 3
|
2015-02-14T18:51:19.000Z
|
2015-02-24T07:44:05.000Z
|
src/apps/dive_log/apps.py
|
GotlingSystem/apnea
|
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class DiveLogConfig(AppConfig):
name = 'dive_log'
verbose_name = _(u'Dyklog')
| 25.285714
| 55
| 0.768362
| 23
| 177
| 5.695652
| 0.782609
| 0.152672
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152542
| 177
| 7
| 56
| 25.285714
| 0.873333
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ee7fcf375630b878ce593586dacd44dcf8efa3a5
| 108
|
py
|
Python
|
spaghettiqueue/__main__.py
|
giorgioshine/SpaghettiQueue
|
44944800a41f2fe041a52c6a4c1d06540ea3c834
|
[
"MIT"
] | 9
|
2019-08-14T04:42:36.000Z
|
2020-11-18T15:48:13.000Z
|
spaghettiqueue/__main__.py
|
Tominous/SpaghettiQueue
|
44944800a41f2fe041a52c6a4c1d06540ea3c834
|
[
"MIT"
] | 1
|
2019-08-15T18:03:17.000Z
|
2019-08-15T18:52:06.000Z
|
spaghettiqueue/__main__.py
|
Tominous/SpaghettiQueue
|
44944800a41f2fe041a52c6a4c1d06540ea3c834
|
[
"MIT"
] | 1
|
2019-12-12T12:14:04.000Z
|
2019-12-12T12:14:04.000Z
|
from spaghettiqueue.__init__ import main
main()
#Makes the code executable by doing python -m spaghettiqueue
| 36
| 60
| 0.833333
| 15
| 108
| 5.733333
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12037
| 108
| 3
| 60
| 36
| 0.905263
| 0.546296
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ee89624c51890a06113ce4a0dc71ea76761f9141
| 185
|
py
|
Python
|
kattis/python/hello_world.py
|
PixPanz/VariousTomfoolery
|
a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f
|
[
"Unlicense"
] | null | null | null |
kattis/python/hello_world.py
|
PixPanz/VariousTomfoolery
|
a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f
|
[
"Unlicense"
] | null | null | null |
kattis/python/hello_world.py
|
PixPanz/VariousTomfoolery
|
a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f
|
[
"Unlicense"
] | null | null | null |
print("Hello World!")
#because why the hell not that's why. It was like a free
#point on Kattis. Actually got a compiler error on my first
#try because I was new to Python3 at the time.
| 46.25
| 59
| 0.751351
| 37
| 185
| 3.756757
| 0.837838
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006623
| 0.183784
| 185
| 4
| 60
| 46.25
| 0.913907
| 0.854054
| 0
| 0
| 0
| 0
| 0.48
| 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
| 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
| 1
|
0
| 4
|
c98ae72a1a05ec62a0743c4c2fe5567276c8577b
| 64
|
py
|
Python
|
c2nl/objects/__init__.py
|
kopf-yhs/ncscos
|
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
|
[
"MIT"
] | 131
|
2020-05-05T05:29:02.000Z
|
2022-03-30T13:32:42.000Z
|
c2nl/objects/__init__.py
|
kopf-yhs/ncscos
|
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
|
[
"MIT"
] | 32
|
2020-04-17T22:58:21.000Z
|
2022-03-22T22:28:58.000Z
|
c2nl/objects/__init__.py
|
kopf-yhs/ncscos
|
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
|
[
"MIT"
] | 53
|
2020-05-05T06:17:25.000Z
|
2022-03-22T03:19:11.000Z
|
__author__ = 'wasi'
from .summary import *
from .code import *
| 12.8
| 22
| 0.703125
| 8
| 64
| 5.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 64
| 4
| 23
| 16
| 0.788462
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c992994f6028cb87c2268ffceabfca70874f4d48
| 194
|
py
|
Python
|
src/superannotate/lib/app/exceptions.py
|
xalgorithm/superannotate-python-sdk
|
8f28ff3fdfc7bbae41946c79847ad1f6cf8a9300
|
[
"MIT"
] | 26
|
2020-09-25T06:25:06.000Z
|
2022-01-30T16:44:07.000Z
|
src/superannotate/lib/app/exceptions.py
|
xalgorithm/superannotate-python-sdk
|
8f28ff3fdfc7bbae41946c79847ad1f6cf8a9300
|
[
"MIT"
] | 12
|
2020-12-21T19:59:48.000Z
|
2022-01-21T10:32:07.000Z
|
src/superannotate/lib/app/exceptions.py
|
xalgorithm/superannotate-python-sdk
|
8f28ff3fdfc7bbae41946c79847ad1f6cf8a9300
|
[
"MIT"
] | 11
|
2020-09-17T13:39:19.000Z
|
2022-03-02T18:12:29.000Z
|
from lib.core.exceptions import AppException
class PathError(AppException):
"""
User input Error
"""
class EmptyOutputError(AppException):
"""
Empty Output Error
"""
| 13.857143
| 44
| 0.659794
| 18
| 194
| 7.111111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237113
| 194
| 13
| 45
| 14.923077
| 0.864865
| 0.180412
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c9a5727c7ae854b7f8c58b9738a3f08c161ea5b6
| 26
|
py
|
Python
|
exercise-1_from-pull-to-push/jenny02221995.py
|
choznerol/c4lab-git-tutorial
|
0b8d9a49002df3c669ddb3713574eb13c5b28cb8
|
[
"MIT"
] | 1
|
2017-12-29T08:43:10.000Z
|
2017-12-29T08:43:10.000Z
|
exercise-1_from-pull-to-push/jenny02221995.py
|
choznerol/c4lab-git-tutorial
|
0b8d9a49002df3c669ddb3713574eb13c5b28cb8
|
[
"MIT"
] | null | null | null |
exercise-1_from-pull-to-push/jenny02221995.py
|
choznerol/c4lab-git-tutorial
|
0b8d9a49002df3c669ddb3713574eb13c5b28cb8
|
[
"MIT"
] | null | null | null |
hello everyone,
fighting~
| 8.666667
| 15
| 0.807692
| 3
| 26
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 26
| 2
| 16
| 13
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a00e66d67e176d4d6033c07dcac431c71cafe77f
| 533
|
py
|
Python
|
no_bool_bubble_sort.py
|
Ji19283756/sorting_stuff
|
9d2912446946906ffa1e62f4d25232b047087db4
|
[
"MIT"
] | null | null | null |
no_bool_bubble_sort.py
|
Ji19283756/sorting_stuff
|
9d2912446946906ffa1e62f4d25232b047087db4
|
[
"MIT"
] | null | null | null |
no_bool_bubble_sort.py
|
Ji19283756/sorting_stuff
|
9d2912446946906ffa1e62f4d25232b047087db4
|
[
"MIT"
] | null | null | null |
def no_bool_bubble_sort(unsorted_list):
for y in range(1, len(unsorted_list) - 1):
for x in range(len(unsorted_list) - y):
try:
value = \
(((unsorted_list[x] - unsorted_list[x + 1]) // abs(
unsorted_list[x + 1] - unsorted_list[x])) + 1) // 2
unsorted_list[x], unsorted_list[x + 1] = unsorted_list[x + value], unsorted_list[x + 1 - value]
except ZeroDivisionError:
pass
return unsorted_list
| 35.533333
| 111
| 0.5197
| 65
| 533
| 4.030769
| 0.338462
| 0.549618
| 0.396947
| 0.267176
| 0.358779
| 0.358779
| 0.358779
| 0
| 0
| 0
| 0
| 0.023739
| 0.36773
| 533
| 14
| 112
| 38.071429
| 0.753709
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0.090909
| 0
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
a0173627d1c723757b35d4f6e9573e1f4a571e05
| 259
|
py
|
Python
|
echome/network/serializers.py
|
jasoncolburne/echome
|
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
|
[
"MIT"
] | 2
|
2022-01-31T19:32:51.000Z
|
2022-01-31T22:42:13.000Z
|
echome/network/serializers.py
|
jasoncolburne/echome
|
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
|
[
"MIT"
] | 7
|
2021-04-04T01:15:53.000Z
|
2022-02-07T03:34:48.000Z
|
echome/network/serializers.py
|
jasoncolburne/echome
|
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
|
[
"MIT"
] | 1
|
2022-02-01T11:34:50.000Z
|
2022-02-01T11:34:50.000Z
|
from rest_framework import serializers
from .models import VirtualNetwork
class NetworkSerializer(serializers.ModelSerializer):
# specify model and fields
class Meta:
model = VirtualNetwork
exclude = ['id', 'deactivated', 'account']
| 32.375
| 53
| 0.72973
| 25
| 259
| 7.52
| 0.76
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196911
| 259
| 8
| 54
| 32.375
| 0.903846
| 0.092664
| 0
| 0
| 0
| 0
| 0.08547
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4e673a1840258d5931483218139042ef6091e9ee
| 485
|
py
|
Python
|
coding_challenge/conftest.py
|
jojacobsen/coding_challenge
|
94335f00f57a6c4d64cbc2b282a0ca099445e866
|
[
"MIT"
] | 1
|
2022-03-06T15:40:56.000Z
|
2022-03-06T15:40:56.000Z
|
coding_challenge/conftest.py
|
jojacobsen/coding_challenge
|
94335f00f57a6c4d64cbc2b282a0ca099445e866
|
[
"MIT"
] | null | null | null |
coding_challenge/conftest.py
|
jojacobsen/coding_challenge
|
94335f00f57a6c4d64cbc2b282a0ca099445e866
|
[
"MIT"
] | null | null | null |
import pytest
from coding_challenge.users.models import User
from coding_challenge.users.tests.factories import UserFactory
from coding_challenge.ship_manager.models import Ship
from coding_challenge.ship_manager.tests.factories import ShipFactory
@pytest.fixture(autouse=True)
def media_storage(settings, tmpdir):
settings.MEDIA_ROOT = tmpdir.strpath
@pytest.fixture
def user() -> User:
return UserFactory()
@pytest.fixture
def ship() -> Ship:
return ShipFactory()
| 22.045455
| 69
| 0.797938
| 62
| 485
| 6.112903
| 0.403226
| 0.105541
| 0.200528
| 0.126649
| 0.158311
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119588
| 485
| 21
| 70
| 23.095238
| 0.887588
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0
| 0.357143
| 0.142857
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 4
|
4e6f333b107f38c8aaa09dc165be5dc797f0e6b5
| 317
|
py
|
Python
|
src/constants.py
|
heyhpython/desktop
|
e75ffddf9526e8fd1adaca69c315005e202bf84b
|
[
"MIT"
] | null | null | null |
src/constants.py
|
heyhpython/desktop
|
e75ffddf9526e8fd1adaca69c315005e202bf84b
|
[
"MIT"
] | null | null | null |
src/constants.py
|
heyhpython/desktop
|
e75ffddf9526e8fd1adaca69c315005e202bf84b
|
[
"MIT"
] | null | null | null |
import os
BASE_DIR = os.path.dirname(__file__)
__config__ = os.path.abspath(os.path.join(BASE_DIR, "../config.cfg"))
__template__ = os.path.abspath(os.path.join(BASE_DIR, "templates"))
__static__ = os.path.abspath(os.path.join(BASE_DIR, "static"))
__upload__ = os.path.abspath(os.path.join(__static__, "uploads"))
| 31.7
| 69
| 0.744479
| 48
| 317
| 4.333333
| 0.333333
| 0.259615
| 0.25
| 0.288462
| 0.543269
| 0.543269
| 0.432692
| 0.432692
| 0
| 0
| 0
| 0
| 0.07571
| 317
| 9
| 70
| 35.222222
| 0.709898
| 0
| 0
| 0
| 0
| 0
| 0.11041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4eaa032d7c85557301f7b3de83a688e4d6c318a3
| 101
|
py
|
Python
|
placeable_interface.py
|
Alex92rus/funkyBlue
|
747fdbfc72edd85556465204f0f654a5cac32c2a
|
[
"MIT"
] | 2
|
2020-03-07T19:46:52.000Z
|
2020-03-08T09:11:02.000Z
|
placeable_interface.py
|
Alex92rus/funkyBlue
|
747fdbfc72edd85556465204f0f654a5cac32c2a
|
[
"MIT"
] | 3
|
2020-03-07T10:09:31.000Z
|
2021-01-14T08:40:27.000Z
|
placeable_interface.py
|
Alex92rus/funkyBlue
|
747fdbfc72edd85556465204f0f654a5cac32c2a
|
[
"MIT"
] | null | null | null |
from arcade import Sprite
class PlaceableInterface:
def place(self, *args):
pass
| 7.769231
| 27
| 0.643564
| 11
| 101
| 5.909091
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.29703
| 101
| 12
| 28
| 8.416667
| 0.915493
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
4ed7b53a4e6b728656b2c884c550c9f3728497ff
| 361
|
py
|
Python
|
ejercicios/ejercicio4.py
|
Ironwilly/python
|
f6d42c685b4026b018089edb4ae8cc0ca9614e86
|
[
"CC0-1.0"
] | null | null | null |
ejercicios/ejercicio4.py
|
Ironwilly/python
|
f6d42c685b4026b018089edb4ae8cc0ca9614e86
|
[
"CC0-1.0"
] | null | null | null |
ejercicios/ejercicio4.py
|
Ironwilly/python
|
f6d42c685b4026b018089edb4ae8cc0ca9614e86
|
[
"CC0-1.0"
] | null | null | null |
#Dados dos números, mostrar la suma, resta, división y multiplicación de ambos.
a = int(input("Dime el primer número: "))
b = int(input("Dime el segundo número: "))
print("La suma de los dos números es: ",a+b)
print("La resta de los dos números es: ",a-b)
print("La multiplicación de los dos números es: ",a*b)
print("La división de los dos números es: ",a/b)
| 40.111111
| 79
| 0.700831
| 66
| 361
| 3.833333
| 0.363636
| 0.197628
| 0.126482
| 0.237154
| 0.383399
| 0.383399
| 0.383399
| 0.3083
| 0.3083
| 0
| 0
| 0
| 0.163435
| 361
| 8
| 80
| 45.125
| 0.837748
| 0.216066
| 0
| 0
| 0
| 0
| 0.659574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
14c231909289d40787ee027c30489129b5c603c6
| 300
|
py
|
Python
|
visualize_d_tree_generator/dummy_data.py
|
dan-silver/machine-learning-visualizer
|
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
|
[
"MIT"
] | 2
|
2015-09-23T03:32:26.000Z
|
2017-07-24T12:03:37.000Z
|
visualize_d_tree_generator/dummy_data.py
|
dan-silver/machine-learning-visualizer
|
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
|
[
"MIT"
] | null | null | null |
visualize_d_tree_generator/dummy_data.py
|
dan-silver/machine-learning-visualizer
|
13e31b953dd24fbed5970f54487a9bb65d2e6cd4
|
[
"MIT"
] | null | null | null |
import sklearn
from sklearn import datasets
def generate(n_samples, features):
n_features = len(features)
data = sklearn.datasets.make_blobs(n_samples=n_samples, n_features=n_features, centers=10, cluster_std=1.0, center_box=(-10.0, 10.0), shuffle=True, random_state=None)
return (data, features)
| 42.857143
| 167
| 0.79
| 48
| 300
| 4.729167
| 0.5625
| 0.105727
| 0.14978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036765
| 0.093333
| 300
| 7
| 168
| 42.857143
| 0.797794
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
14cb05cd02a2460b30efdd3be4e6a69dc0d1eedd
| 114
|
py
|
Python
|
change_fw_name.py
|
maxgerhardt/gd32-bootloader-dfu-dapboot
|
fcb8c47e17b2bee813ca8c6b33cb52b547538719
|
[
"ISC"
] | 1
|
2021-10-03T17:26:38.000Z
|
2021-10-03T17:26:38.000Z
|
change_fw_name.py
|
maxgerhardt/gd32-bootloader-dfu-dapboot
|
fcb8c47e17b2bee813ca8c6b33cb52b547538719
|
[
"ISC"
] | null | null | null |
change_fw_name.py
|
maxgerhardt/gd32-bootloader-dfu-dapboot
|
fcb8c47e17b2bee813ca8c6b33cb52b547538719
|
[
"ISC"
] | 1
|
2021-11-03T22:06:01.000Z
|
2021-11-03T22:06:01.000Z
|
Import("env")
# original Makefile builds into dapboot.bin/elf, let's do the same
env.Replace(PROGNAME="dapboot")
| 22.8
| 66
| 0.754386
| 18
| 114
| 4.777778
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114035
| 114
| 4
| 67
| 28.5
| 0.851485
| 0.561404
| 0
| 0
| 0
| 0
| 0.208333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
14e532fb903c9f210c1888329335296a3e6816c7
| 148
|
py
|
Python
|
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
|
DLUTLiuFengyi/rheem-integration
|
34c437d73761ab44b4c6b7dbd5cab91875f0933a
|
[
"Apache-2.0"
] | null | null | null |
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
|
DLUTLiuFengyi/rheem-integration
|
34c437d73761ab44b4c6b7dbd5cab91875f0933a
|
[
"Apache-2.0"
] | null | null | null |
rheem-build-parent/rheem/rheem-api-python/pyrheem/graph/Visitor.py
|
DLUTLiuFengyi/rheem-integration
|
34c437d73761ab44b4c6b7dbd5cab91875f0933a
|
[
"Apache-2.0"
] | null | null | null |
import abc
class Visitor(metaclass=abc.ABCMeta):
@abc.abstractmethod
def visit_node(self, node, udf, orientation, last_iter):
pass
| 21.142857
| 60
| 0.709459
| 19
| 148
| 5.421053
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195946
| 148
| 7
| 61
| 21.142857
| 0.865546
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
14f209a2e4864dbd925cb1c73c1a1f7110e0b62f
| 400
|
py
|
Python
|
xscratch/exceptions.py
|
gabaconrado/mainecoon
|
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
|
[
"Apache-2.0"
] | null | null | null |
xscratch/exceptions.py
|
gabaconrado/mainecoon
|
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
|
[
"Apache-2.0"
] | null | null | null |
xscratch/exceptions.py
|
gabaconrado/mainecoon
|
e8c9eb0c28ed874728315e386c9ec86dc06f1d7a
|
[
"Apache-2.0"
] | null | null | null |
'''
xScratch exceptions
'''
class XSSyntaxError(Exception):
'''
Error raised when there is a syntax error in the script
'''
pass
class XSSemanticError(Exception):
'''
Error raised when there is a semantic error in the script
'''
pass
class XSArduinoError(Exception):
'''
Error raised when there is a communication error with the arduino
'''
pass
| 16
| 69
| 0.6525
| 47
| 400
| 5.553191
| 0.468085
| 0.16092
| 0.229885
| 0.275862
| 0.559387
| 0.559387
| 0.367816
| 0
| 0
| 0
| 0
| 0
| 0.265
| 400
| 24
| 70
| 16.666667
| 0.887755
| 0.4975
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
14ffc8d1112cea4351881119362848071845aff2
| 1,603
|
py
|
Python
|
test/examples/integrated/codec/testlib.py
|
rodrigomelo9/uvm-python
|
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
|
[
"Apache-2.0"
] | 140
|
2020-01-18T00:14:17.000Z
|
2022-03-29T10:57:24.000Z
|
test/examples/integrated/codec/testlib.py
|
Mohsannaeem/uvm-python
|
1b8768a1358d133465ede9cadddae651664b1d53
|
[
"Apache-2.0"
] | 24
|
2020-01-18T18:40:58.000Z
|
2021-03-25T17:39:07.000Z
|
test/examples/integrated/codec/testlib.py
|
Mohsannaeem/uvm-python
|
1b8768a1358d133465ede9cadddae651664b1d53
|
[
"Apache-2.0"
] | 34
|
2020-01-18T12:22:59.000Z
|
2022-02-11T07:03:11.000Z
|
#//
#// -------------------------------------------------------------
#// Copyright 2011 Synopsys, Inc.
#// Copyright 2010-2011 Mentor Graphics Corporation
#// Copyright 2019-2020 Tuomas Poikela (tpoikela)
#// All Rights Reserved Worldwide
#//
#// 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.
#// -------------------------------------------------------------
#//
#
#class hw_reset_test(test):
#
# `uvm_component_utils(hw_reset_test)
#
# def __init__(self, name, parent=None)
# super().__init__(name, parent)
# endfunction
#
# local bit once = 1
#async
# def main_phase(self, phase):
# if (once):
# once = 0
# phase.raise_objection(self)
# repeat (100 * 8) @(posedge env.vif.sclk)
# // This will clear the objection
# uvm_info("TEST", "Jumping back to reset phase", UVM_NONE)
# phase.jump(uvm_reset_phase::get())
# end
# endtask
#
from uvm.macros import *
#endclass
| 34.106383
| 71
| 0.559576
| 181
| 1,603
| 4.845304
| 0.668508
| 0.068415
| 0.029647
| 0.036488
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025126
| 0.255147
| 1,603
| 46
| 72
| 34.847826
| 0.70938
| 0.875858
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
090c37be215b0f5ca5159ca3a58646804fc96e15
| 163
|
py
|
Python
|
workshop_material/superfast/test/test_stuff.py
|
nrupatunga/pyimageconf2018
|
2f4c83a78206106b50835730749028a03fbbc565
|
[
"BSL-1.0"
] | 106
|
2018-08-30T01:45:38.000Z
|
2021-06-03T11:05:15.000Z
|
workshop_material/superfast/test/test_stuff.py
|
nrupatunga/pyimageconf2018
|
2f4c83a78206106b50835730749028a03fbbc565
|
[
"BSL-1.0"
] | 3
|
2019-04-12T02:03:25.000Z
|
2019-05-07T00:16:55.000Z
|
workshop_material/superfast/test/test_stuff.py
|
nrupatunga/pyimageconf2018
|
2f4c83a78206106b50835730749028a03fbbc565
|
[
"BSL-1.0"
] | 36
|
2018-08-30T04:08:31.000Z
|
2021-05-18T07:02:10.000Z
|
import numpy as np
import superfast
def test_sum():
a = np.array([[1,2,3],[2,3,4]]).astype('float64')
assert(a.sum() == superfast.sum_row_major_order(a))
| 23.285714
| 55
| 0.656442
| 29
| 163
| 3.551724
| 0.689655
| 0.038835
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 0.141104
| 163
| 6
| 56
| 27.166667
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0.042945
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0913cfe9fc0c893e99396e709cf82a81dfd1ee9b
| 56
|
py
|
Python
|
pandaharvester/commit_timestamp.py
|
PalNilsson/harvester
|
dab4f388c6d1f33291b44c1a8d656d210330e767
|
[
"Apache-2.0"
] | null | null | null |
pandaharvester/commit_timestamp.py
|
PalNilsson/harvester
|
dab4f388c6d1f33291b44c1a8d656d210330e767
|
[
"Apache-2.0"
] | null | null | null |
pandaharvester/commit_timestamp.py
|
PalNilsson/harvester
|
dab4f388c6d1f33291b44c1a8d656d210330e767
|
[
"Apache-2.0"
] | null | null | null |
timestamp = "02-03-2022 13:12:15 on flin (by mightqxc)"
| 28
| 55
| 0.696429
| 11
| 56
| 3.545455
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 0.142857
| 56
| 1
| 56
| 56
| 0.520833
| 0
| 0
| 0
| 0
| 0
| 0.732143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
093304601d844ced3162c5c77ac72110623bc543
| 117
|
py
|
Python
|
ci/kubetest/test_placeholder.py
|
PostHog/charts-clickhouse
|
06e3ee904460eaa74eb88d2c33392406d7456ebf
|
[
"MIT"
] | 19
|
2021-06-17T22:21:12.000Z
|
2022-03-26T21:53:35.000Z
|
ci/kubetest/test_placeholder.py
|
PostHog/charts-clickhouse
|
06e3ee904460eaa74eb88d2c33392406d7456ebf
|
[
"MIT"
] | 220
|
2021-06-18T07:18:55.000Z
|
2022-03-31T23:00:41.000Z
|
ci/kubetest/test_placeholder.py
|
PostHog/charts-clickhouse
|
06e3ee904460eaa74eb88d2c33392406d7456ebf
|
[
"MIT"
] | 21
|
2021-07-27T16:02:18.000Z
|
2022-03-30T22:56:00.000Z
|
import pytest
@pytest.fixture
def setup(kube):
pass
def test_something(setup, kube):
assert True == True
| 10.636364
| 32
| 0.692308
| 16
| 117
| 5
| 0.6875
| 0.225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.213675
| 117
| 10
| 33
| 11.7
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.333333
| false
| 0.166667
| 0.166667
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
117a656b53ebd25b52d2ba050419669977c82183
| 219
|
py
|
Python
|
apps/integrations/github/resources/followers.py
|
wizzzet/github_backend
|
9e4b5d3273e850e4ac0f425d22911987be7a7eff
|
[
"MIT"
] | null | null | null |
apps/integrations/github/resources/followers.py
|
wizzzet/github_backend
|
9e4b5d3273e850e4ac0f425d22911987be7a7eff
|
[
"MIT"
] | null | null | null |
apps/integrations/github/resources/followers.py
|
wizzzet/github_backend
|
9e4b5d3273e850e4ac0f425d22911987be7a7eff
|
[
"MIT"
] | null | null | null |
from integrations.github.resources.base import GitHubListResource
class FollowersListResource(GitHubListResource):
"""Ресурс данных подписчиков пользователя GitHub"""
endpoint = 'users/{user_slug}/followers'
| 27.375
| 65
| 0.799087
| 20
| 219
| 8.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114155
| 219
| 7
| 66
| 31.285714
| 0.896907
| 0.205479
| 0
| 0
| 0
| 0
| 0.160714
| 0.160714
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
119bf6a968d6fb73503071ca0eb21d892d8e76bd
| 342
|
py
|
Python
|
legacy_codes/app/my_exception.py
|
gomjellie/SoongSiri
|
251a8259f47e3f0a7b42faa20ea9223f125a42a2
|
[
"MIT"
] | 8
|
2018-09-22T05:29:51.000Z
|
2021-11-17T03:23:23.000Z
|
legacy_codes/app/my_exception.py
|
gomjellie/SoongSiri
|
251a8259f47e3f0a7b42faa20ea9223f125a42a2
|
[
"MIT"
] | 7
|
2017-12-30T08:02:32.000Z
|
2020-08-26T01:59:20.000Z
|
legacy_codes/app/my_exception.py
|
gomjellie/SoongSiri
|
251a8259f47e3f0a7b42faa20ea9223f125a42a2
|
[
"MIT"
] | 3
|
2018-11-13T14:04:04.000Z
|
2019-09-01T18:53:11.000Z
|
class FoodNotFound(Exception):
def __init__(self, msg=None):
self.msg = msg
def __str__(self):
return "식단을 불러올 수 없습니다.\n {}".format(self.msg)
class FoodRateDuplicate(Exception):
def __init__(self, msg=None):
self.msg = msg
def __str__(self):
return "이미 평가한 항목입니다.\n {}".format(self.msg)
| 19
| 54
| 0.614035
| 45
| 342
| 4.311111
| 0.444444
| 0.216495
| 0.164948
| 0.206186
| 0.546392
| 0.546392
| 0.546392
| 0.546392
| 0.546392
| 0.546392
| 0
| 0
| 0.251462
| 342
| 17
| 55
| 20.117647
| 0.757813
| 0
| 0
| 0.6
| 0
| 0
| 0.112094
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
11d4d6356bac4be3d9c387ca7446a41aec22d1ea
| 89
|
py
|
Python
|
navedex/apps.py
|
SousaPedro11/navedex-api
|
f9b2bc0284ebf27de368ece718434a94704c3876
|
[
"MIT"
] | null | null | null |
navedex/apps.py
|
SousaPedro11/navedex-api
|
f9b2bc0284ebf27de368ece718434a94704c3876
|
[
"MIT"
] | null | null | null |
navedex/apps.py
|
SousaPedro11/navedex-api
|
f9b2bc0284ebf27de368ece718434a94704c3876
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class NavedexConfig(AppConfig):
name = 'navedex'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
eebda7906979f96edc59138dae061c5c2c92e491
| 61
|
py
|
Python
|
udp_decoders/__init__.py
|
ccgcyber/xpcap
|
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
|
[
"MIT"
] | 5
|
2017-07-31T02:07:05.000Z
|
2021-02-14T16:39:49.000Z
|
udp_decoders/__init__.py
|
ccgcyber/xpcap
|
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
|
[
"MIT"
] | null | null | null |
udp_decoders/__init__.py
|
ccgcyber/xpcap
|
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
|
[
"MIT"
] | 4
|
2016-07-24T08:56:54.000Z
|
2020-07-12T11:50:02.000Z
|
# empty file telling python that this directory is a package
| 30.5
| 60
| 0.803279
| 10
| 61
| 4.9
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180328
| 61
| 1
| 61
| 61
| 0.98
| 0.95082
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eebf77f5393d40a51825e9d1d10647b08c84de24
| 140
|
py
|
Python
|
practica3/pregunta8.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
practica3/pregunta8.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
practica3/pregunta8.py
|
Vanesamorales/practica-N-3-python
|
e87d4662b5df208cfbc3a15db23d324f46ad838e
|
[
"Apache-2.0"
] | null | null | null |
import carpeta8
# bloque principal
lista=carpeta8.cargar()
carpeta8.imprimir(lista)
carpeta8.ordenar(lista)
carpeta8.imprimir(lista)
| 20
| 25
| 0.785714
| 16
| 140
| 6.875
| 0.5
| 0.354545
| 0.381818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040323
| 0.114286
| 140
| 7
| 26
| 20
| 0.846774
| 0.114286
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eec107c75238eeb480e6c150f395182753824077
| 155
|
py
|
Python
|
Tasks/task_7.py
|
madhubmvs/python-self-teaching
|
adce7a18553fc13a96d0319fdeb5ce9894ec74fc
|
[
"MIT"
] | null | null | null |
Tasks/task_7.py
|
madhubmvs/python-self-teaching
|
adce7a18553fc13a96d0319fdeb5ce9894ec74fc
|
[
"MIT"
] | null | null | null |
Tasks/task_7.py
|
madhubmvs/python-self-teaching
|
adce7a18553fc13a96d0319fdeb5ce9894ec74fc
|
[
"MIT"
] | null | null | null |
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
c = []
for x in a:
if x in b:
c.append(x)
print(c)
| 17.222222
| 47
| 0.406452
| 40
| 155
| 1.575
| 0.65
| 0.063492
| 0.095238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.326733
| 0.348387
| 155
| 9
| 48
| 17.222222
| 0.29703
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eec2dfa96c82d004b2ff333de47a8fe7f395770a
| 2,646
|
py
|
Python
|
src/spade/symbols/symbol.py
|
ArvinSKushwaha/SPADE
|
b9a0f7698606a698fbc5a44e3dd36cb40186bda3
|
[
"MIT"
] | null | null | null |
src/spade/symbols/symbol.py
|
ArvinSKushwaha/SPADE
|
b9a0f7698606a698fbc5a44e3dd36cb40186bda3
|
[
"MIT"
] | null | null | null |
src/spade/symbols/symbol.py
|
ArvinSKushwaha/SPADE
|
b9a0f7698606a698fbc5a44e3dd36cb40186bda3
|
[
"MIT"
] | null | null | null |
"""This module holds the Symbol, ComputationalGraph, and ComputationalGraphNode classes and methods to help construct
a computational graph."""
from typing import Optional
from .operators import Add, Subtract, Multiply, Divide, Grad, Div, Curl, Laplacian
class Symbol:
"""The Symbol class is the superclass representing all components of differential equation. Superclasses
VectorField, ScalarField, Function, Constant, Operator"""
def __init__(self, name: str):
self.name = name
def __repr__(self):
return f'{self.name} <{type(self).__name__}>'
def __str__(self):
return self.name
class ComputationalGraphNode:
"""The ComputationalGraphNode class is a wrapper around the Symbol class that provides Graph functionality
for usage within the ComputationalGraph class"""
def __init__(
self, symbol: Symbol,
parent: 'ComputationalGraphNode' = None,
children: list['ComputationalGraphNode'] = None
):
self.symbol = symbol
self.parent = parent
self.children = children
def __add__(self, other: 'ComputationalGraphNode') -> 'ComputationalGraphNode':
return ComputationalGraphNode(Add(), children=[self, other])
def __sub__(self, other: 'ComputationalGraphNode') -> 'ComputationalGraphNode':
return ComputationalGraphNode(Subtract(), children=[self, other])
def __mul__(self, other: 'ComputationalGraphNode') -> 'ComputationalGraphNode':
return ComputationalGraphNode(Multiply(), children=[self, other])
def __truediv__(self, other: 'ComputationalGraphNode') -> 'ComputationalGraphNode':
return ComputationalGraphNode(Divide(), children=[self, other])
def gradient(self) -> 'ComputationalGraphNode':
return ComputationalGraphNode(Grad(), children=[self])
def divergence(self) -> 'ComputationalGraphNode':
return ComputationalGraphNode(Div(), children=[self])
def curl(self) -> 'ComputationalGraphNode':
return ComputationalGraphNode(Curl(), children=[self])
def laplacian(self) -> 'ComputationalGraphNode':
return ComputationalGraphNode(Laplacian(), children=[self])
class ComputationalGraph:
"""The ComputationalGraph class stores the context and computational relations between all information in a set
of coupled differential equations (of which, each component is stored in child classes of the Symbol class."""
def __init__(self):
self.context: list[Symbol] = []
self.__graph: Optional[ComputationalGraphNode] = None
def check_validity(self) -> bool:
return NotImplemented
| 38.347826
| 117
| 0.712018
| 256
| 2,646
| 7.191406
| 0.347656
| 0.039109
| 0.217273
| 0.115155
| 0.175991
| 0.175991
| 0
| 0
| 0
| 0
| 0
| 0
| 0.19161
| 2,646
| 68
| 118
| 38.911765
| 0.860683
| 0.249811
| 0
| 0
| 0
| 0
| 0.175717
| 0.16957
| 0
| 0
| 0
| 0
| 0
| 1
| 0.35
| false
| 0
| 0.05
| 0.275
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
eedc7a11ee4379d86b302ba06badd9a7738a9e2e
| 63
|
py
|
Python
|
training_tools/architectures/image_generation/__init__.py
|
kylrth/training_tools
|
eccb19a28f65a83e40642c9761ccb1dd090a3e5d
|
[
"MIT"
] | null | null | null |
training_tools/architectures/image_generation/__init__.py
|
kylrth/training_tools
|
eccb19a28f65a83e40642c9761ccb1dd090a3e5d
|
[
"MIT"
] | null | null | null |
training_tools/architectures/image_generation/__init__.py
|
kylrth/training_tools
|
eccb19a28f65a83e40642c9761ccb1dd090a3e5d
|
[
"MIT"
] | null | null | null |
"""Image generating architectures.
Kyle Roth. 2019-07-10.
"""
| 12.6
| 34
| 0.698413
| 8
| 63
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 0.126984
| 63
| 4
| 35
| 15.75
| 0.654545
| 0.873016
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eeecbdae984ff942e14cb18d12ef5612889a5ac7
| 81
|
py
|
Python
|
pbs/apps.py
|
AliTATLICI/django-rest-app
|
901e1d50fe4c8732dccdb597d6cad6e099a2dbfa
|
[
"MIT"
] | null | null | null |
pbs/apps.py
|
AliTATLICI/django-rest-app
|
901e1d50fe4c8732dccdb597d6cad6e099a2dbfa
|
[
"MIT"
] | null | null | null |
pbs/apps.py
|
AliTATLICI/django-rest-app
|
901e1d50fe4c8732dccdb597d6cad6e099a2dbfa
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PbsConfig(AppConfig):
name = 'pbs'
| 13.5
| 33
| 0.728395
| 10
| 81
| 5.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185185
| 81
| 5
| 34
| 16.2
| 0.893939
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
eef0f0b4303286161e71367939209bbe2bdf9cf9
| 1,940
|
py
|
Python
|
Scripts/simulation/postures/posture_tunables.py
|
velocist/TS4CheatsInfo
|
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
|
[
"Apache-2.0"
] | null | null | null |
Scripts/simulation/postures/posture_tunables.py
|
velocist/TS4CheatsInfo
|
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
|
[
"Apache-2.0"
] | null | null | null |
Scripts/simulation/postures/posture_tunables.py
|
velocist/TS4CheatsInfo
|
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
|
[
"Apache-2.0"
] | null | null | null |
# uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\postures\posture_tunables.py
# Compiled at: 2016-02-19 01:17:07
# Size of source mod 2**32: 2003 bytes
from postures.posture_cost import TunablePostureCostVariant
from postures.posture_validators import TunablePostureValidatorVariant
from sims4.tuning.tunable import OptionalTunable, TunableTuple, TunableList
class TunableSupportedPostureTransitionData(OptionalTunable):
def __init__(self, *args, **kwargs):
(super().__init__)(args, tunable=TunableTuple(cost=(TunablePostureCostVariant()),
validators=TunableList(description='\n Define under what circumstances this transition is valid.\n There are performance implications of adding tested edges to\n the posture graph. \n \n In general, this should be handled by testing posture-\n providing interactions altogether. This should really only\n be used to restrict the ability to go from a specific\n posture to another specific posture under certain\n circumstances.\n \n e.g. Prevent Squeamish Sims from sitting on dirty toilets.\n * Do not use this tuning. Instead, test out the interaction\n directly.\n \n e.g. Prevent Toddlers with low motor skill from entering the\n High Chair posture from stand. However, allow them to be\n placed on the High Chair from carry.\n * Use this tuning.\n ',
tunable=(TunablePostureValidatorVariant()))),
enabled_by_default=True, **kwargs)
| 114.117647
| 1,122
| 0.635052
| 232
| 1,940
| 5.25431
| 0.625
| 0.004922
| 0.031173
| 0.006563
| 0.018048
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048246
| 0.294845
| 1,940
| 17
| 1,123
| 114.117647
| 0.842836
| 0.159794
| 0
| 0
| 0
| 0.111111
| 0.666256
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
01122030ff57d9377ddf61352858ba09c5197d30
| 139
|
py
|
Python
|
blog/urls.py
|
31-13/portfolio
|
86d69abc05ead28823db5def49622f04af0ebfd2
|
[
"MIT"
] | null | null | null |
blog/urls.py
|
31-13/portfolio
|
86d69abc05ead28823db5def49622f04af0ebfd2
|
[
"MIT"
] | null | null | null |
blog/urls.py
|
31-13/portfolio
|
86d69abc05ead28823db5def49622f04af0ebfd2
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path
from .views import blog
urlpatterns = [
path('', blog, name='blog'),
]
| 15.444444
| 32
| 0.705036
| 19
| 139
| 5.157895
| 0.578947
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179856
| 139
| 8
| 33
| 17.375
| 0.859649
| 0
| 0
| 0
| 0
| 0
| 0.028777
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0112992950dc4c577579c050f7017281022ccc42
| 139
|
py
|
Python
|
iris_sdk/models/maps/local_rate_center_list.py
|
NumberAI/python-bandwidth-iris
|
0e05f79d68b244812afb97e00fd65b3f46d00aa3
|
[
"MIT"
] | 2
|
2020-04-13T13:47:59.000Z
|
2022-02-23T20:32:41.000Z
|
iris_sdk/models/maps/local_rate_center_list.py
|
bandwidthcom/python-bandwidth-iris
|
dbcb30569631395041b92917252d913166f7d3c9
|
[
"MIT"
] | 5
|
2020-09-18T20:59:24.000Z
|
2021-08-25T16:51:42.000Z
|
iris_sdk/models/maps/local_rate_center_list.py
|
bandwidthcom/python-bandwidth-iris
|
dbcb30569631395041b92917252d913166f7d3c9
|
[
"MIT"
] | 5
|
2018-12-12T14:39:50.000Z
|
2020-11-17T21:42:29.000Z
|
#!/usr/bin/env python
from iris_sdk.models.maps.base_map import BaseMap
class LocalRateCenterListMap(BaseMap):
rate_center_id = None
| 19.857143
| 49
| 0.791367
| 20
| 139
| 5.3
| 0.95
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122302
| 139
| 7
| 50
| 19.857143
| 0.868852
| 0.143885
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
013c7675c37f149bc9d81184f6cde81bed1535d6
| 1,089
|
py
|
Python
|
fastapi-master-api/app/api/models/create_metric.py
|
SionAbes/fullstack-porfolio
|
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
|
[
"MIT"
] | 1
|
2021-12-25T09:19:25.000Z
|
2021-12-25T09:19:25.000Z
|
fastapi-master-api/app/api/models/create_metric.py
|
SionAbes/fullstack-porfolio
|
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
|
[
"MIT"
] | null | null | null |
fastapi-master-api/app/api/models/create_metric.py
|
SionAbes/fullstack-porfolio
|
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from __future__ import annotations
import re # noqa: F401
from datetime import date, datetime # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
class CreateMetric(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
CreateMetric - a model defined in OpenAPI
processed_at: The processed_at of this CreateMetric [Optional].
event_at: The event_at of this CreateMetric [Optional].
machine_id: The machine_id of this CreateMetric.
metric: The metric of this CreateMetric [Optional].
value: The value of this CreateMetric [Optional].
unit: The unit of this CreateMetric [Optional].
"""
processed_at: Optional[datetime] = None
event_at: Optional[datetime] = None
machine_id: int
metric: Optional[str] = None
value: Optional[str] = None
unit: Optional[str] = None
CreateMetric.update_forward_refs()
| 30.25
| 96
| 0.708907
| 140
| 1,089
| 5.407143
| 0.414286
| 0.047556
| 0.142668
| 0.171731
| 0.073976
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015187
| 0.213958
| 1,089
| 35
| 97
| 31.114286
| 0.869159
| 0.521579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.384615
| 0
| 0.923077
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
017bac2f9ee903e585305824ff79fd16821a3dff
| 62
|
py
|
Python
|
tests/IT/fixtures/test_fixture_missing.py
|
testandconquer/pytest-conquer
|
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
|
[
"MIT"
] | null | null | null |
tests/IT/fixtures/test_fixture_missing.py
|
testandconquer/pytest-conquer
|
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
|
[
"MIT"
] | 5
|
2018-12-27T02:52:01.000Z
|
2019-01-02T01:52:55.000Z
|
tests/IT/fixtures/test_fixture_missing.py
|
testandconquer/pytest-conquer
|
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
|
[
"MIT"
] | null | null | null |
def test_with_missing_fixture(not_existing_fixture):
pass
| 20.666667
| 52
| 0.83871
| 9
| 62
| 5.222222
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112903
| 62
| 2
| 53
| 31
| 0.854545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0181665c2fcc24657f6c8b73a95f4034a3a47d28
| 488
|
py
|
Python
|
CursoEmVideo/Exercicio109.py
|
LucasAlmeida0/Estudos
|
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
|
[
"MIT"
] | null | null | null |
CursoEmVideo/Exercicio109.py
|
LucasAlmeida0/Estudos
|
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
|
[
"MIT"
] | null | null | null |
CursoEmVideo/Exercicio109.py
|
LucasAlmeida0/Estudos
|
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
|
[
"MIT"
] | null | null | null |
from utilidadesCeV import moeda
preco = float(input('Digite o preço: R$'))
porcentagem = float(input('Digite a aliquota:'))
print(f'A metade de {moeda.moeda(preco)} é {moeda.metade(preco, True)}')
print(f'O dobro de {moeda.moeda(preco)} é {moeda.dobro(preco, True)}')
print(f'Aumentando {moeda.moeda(preco)} em {porcentagem}% temos {moeda.aumentar(preco, porcentagem, True)}')
print(f'Diminuindo {moeda.moeda(preco)} em {porcentagem}% temos {moeda.diminuir(preco, porcentagem, True)}')
| 48.8
| 108
| 0.729508
| 71
| 488
| 5.014085
| 0.380282
| 0.140449
| 0.168539
| 0.095506
| 0.342697
| 0.342697
| 0.213483
| 0
| 0
| 0
| 0
| 0
| 0.096311
| 488
| 9
| 109
| 54.222222
| 0.807256
| 0
| 0
| 0
| 0
| 0.285714
| 0.72541
| 0.090164
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.571429
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6d890c163247c06d98f4d952e4bc7e2fd20b6485
| 2,472
|
py
|
Python
|
tests/test_version.py
|
jparsai/cvejob
|
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
|
[
"Apache-2.0"
] | 8
|
2019-09-25T14:45:28.000Z
|
2021-11-08T10:30:03.000Z
|
tests/test_version.py
|
jparsai/cvejob
|
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
|
[
"Apache-2.0"
] | 113
|
2018-07-10T12:58:16.000Z
|
2020-12-09T22:33:15.000Z
|
tests/test_version.py
|
jparsai/cvejob
|
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
|
[
"Apache-2.0"
] | 12
|
2018-07-10T11:00:02.000Z
|
2021-01-27T12:19:56.000Z
|
"""Test cvejob.version.BenevolentVersion."""
from cvejob.version import BenevolentVersion
def test_version_basic():
"""Test basic behavior."""
assert BenevolentVersion('1') == BenevolentVersion('1')
assert BenevolentVersion('1') != BenevolentVersion('2')
assert BenevolentVersion('1') < BenevolentVersion('2')
assert BenevolentVersion('1') <= BenevolentVersion('2')
assert BenevolentVersion('1') > BenevolentVersion('0')
assert BenevolentVersion('1') >= BenevolentVersion('0')
assert BenevolentVersion(None) != BenevolentVersion('')
assert BenevolentVersion(None) == BenevolentVersion(None)
assert BenevolentVersion('0') != BenevolentVersion('')
assert BenevolentVersion('') == BenevolentVersion('')
assert BenevolentVersion(1) == BenevolentVersion(1)
assert BenevolentVersion('Final.RELEASE') == BenevolentVersion('Final.RELEASE')
def test_version_trailing_zeros():
"""Test with trailing zeros."""
assert BenevolentVersion('1.0.0.0.0') == BenevolentVersion('1.0')
assert BenevolentVersion('1.0.1') != BenevolentVersion('1.0.0')
assert BenevolentVersion('1.1.0') < BenevolentVersion('1.2.0')
assert BenevolentVersion('1.1.0') <= BenevolentVersion('1.2.0')
assert BenevolentVersion('1.2.1.1') > BenevolentVersion('1.2.0')
assert BenevolentVersion('1.2.1.1') >= BenevolentVersion('1.2.1.0')
def test_version_complex():
"""More complex tests."""
assert BenevolentVersion('0.3m') == BenevolentVersion('0.3.0')
assert BenevolentVersion('0.3m1') == BenevolentVersion('0.3')
assert BenevolentVersion('0.3-SNAPSHOT-1') == BenevolentVersion('0.3')
assert BenevolentVersion('1.2.Final') == BenevolentVersion('1.2.0')
assert BenevolentVersion('1.2.Final.RELEASE') == BenevolentVersion('1.2.0')
def test_version_exact():
"""Test exact version."""
assert '1.5.0.RELEASE-1' == BenevolentVersion('1.5.0.RELEASE-1').exact
def test_version_loose():
"""Test loose version."""
assert '1.5' == BenevolentVersion('1.5.0.RELEASE-1').loose
def test_hash():
"""Test hashing."""
s = {
BenevolentVersion('1.0'),
BenevolentVersion('1'),
BenevolentVersion(None)
}
assert len(s) == 2
def test_repr():
"""Basic test for the __repr__ method."""
v = BenevolentVersion('1.0')
assert v.__repr__() == "BenevolentVersion('1.0')"
v = BenevolentVersion('1.2.3')
assert v.__repr__() == "BenevolentVersion('1.2.3')"
| 36.352941
| 83
| 0.677184
| 276
| 2,472
| 5.974638
| 0.137681
| 0.360218
| 0.218314
| 0.174045
| 0.480291
| 0.38023
| 0.34627
| 0.241358
| 0.214069
| 0.214069
| 0
| 0.051258
| 0.147654
| 2,472
| 67
| 84
| 36.895522
| 0.731372
| 0.078884
| 0
| 0
| 0
| 0
| 0.128354
| 0.022361
| 0
| 0
| 0
| 0
| 0.651163
| 1
| 0.162791
| false
| 0
| 0.023256
| 0
| 0.186047
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6da72024802e1c3c54412ef9c55591988fb61919
| 72
|
py
|
Python
|
ns/ethernet/connector.py
|
serjkazhura/network-simulator
|
7542ef8c56b0fd7e488852891deef8606571fce9
|
[
"MIT"
] | null | null | null |
ns/ethernet/connector.py
|
serjkazhura/network-simulator
|
7542ef8c56b0fd7e488852891deef8606571fce9
|
[
"MIT"
] | null | null | null |
ns/ethernet/connector.py
|
serjkazhura/network-simulator
|
7542ef8c56b0fd7e488852891deef8606571fce9
|
[
"MIT"
] | null | null | null |
def connect(node1, node2):
node1.connect(node2)
node2.connect(node1)
| 24
| 26
| 0.75
| 10
| 72
| 5.4
| 0.4
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 0.111111
| 72
| 3
| 27
| 24
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6ddf22f66b957c8246b1badd12845d6735c4bf0d
| 118
|
py
|
Python
|
src/passport/use_cases/__init__.py
|
clayman-micro/passport
|
37aeb548560458cd4ba9bf9db551e360ad219b9c
|
[
"MIT"
] | null | null | null |
src/passport/use_cases/__init__.py
|
clayman-micro/passport
|
37aeb548560458cd4ba9bf9db551e360ad219b9c
|
[
"MIT"
] | 5
|
2020-09-15T15:03:33.000Z
|
2021-11-26T08:35:10.000Z
|
src/passport/use_cases/__init__.py
|
clayman74/passport
|
37aeb548560458cd4ba9bf9db551e360ad219b9c
|
[
"MIT"
] | null | null | null |
from aiohttp import web
class UseCase:
def __init__(self, app: web.Application) -> None:
self.app = app
| 16.857143
| 53
| 0.661017
| 16
| 118
| 4.625
| 0.75
| 0.189189
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.245763
| 118
| 6
| 54
| 19.666667
| 0.831461
| 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 | 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
| 0
| 1
| 0
|
0
| 4
|
6de7d2a8bf2473e87c45ac2498b9443dac0b4f4e
| 125
|
py
|
Python
|
packit_service/service/api/errors.py
|
majamassarini/packit-service
|
12baf67799412c8fa56e2a821cd9d584e2437141
|
[
"MIT"
] | 20
|
2019-05-24T12:33:05.000Z
|
2020-07-28T06:03:57.000Z
|
packit_service/service/api/errors.py
|
majamassarini/packit-service
|
12baf67799412c8fa56e2a821cd9d584e2437141
|
[
"MIT"
] | 735
|
2019-05-15T11:52:36.000Z
|
2020-08-02T23:21:44.000Z
|
packit_service/service/api/errors.py
|
majamassarini/packit-service
|
12baf67799412c8fa56e2a821cd9d584e2437141
|
[
"MIT"
] | 28
|
2019-05-16T13:32:03.000Z
|
2020-07-29T10:23:54.000Z
|
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
class ValidationFailed(Exception):
pass
| 17.857143
| 47
| 0.776
| 14
| 125
| 6.928571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152
| 125
| 6
| 48
| 20.833333
| 0.915094
| 0.592
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
6df9c4e9ea68c87b17ca398c46b4ce7c864d776d
| 109
|
py
|
Python
|
src/osms/tts_modules/synthesizer/data/__init__.py
|
adasegroup/OSM---one-shot-multispeaker
|
90c1bbea4db1d49667fcfecb51676ee3281f9458
|
[
"MIT"
] | 12
|
2021-05-31T21:09:23.000Z
|
2022-01-30T03:48:10.000Z
|
src/osms/tts_modules/synthesizer/data/__init__.py
|
adasegroup/OSM---one-shot-multispeaker
|
90c1bbea4db1d49667fcfecb51676ee3281f9458
|
[
"MIT"
] | null | null | null |
src/osms/tts_modules/synthesizer/data/__init__.py
|
adasegroup/OSM---one-shot-multispeaker
|
90c1bbea4db1d49667fcfecb51676ee3281f9458
|
[
"MIT"
] | 6
|
2021-05-13T20:28:19.000Z
|
2021-09-28T10:24:31.000Z
|
from .preprocess import SynthesizerPreprocessor
from .dataset import SynthesizerDataset, collate_synthesizer
| 36.333333
| 60
| 0.889908
| 10
| 109
| 9.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082569
| 109
| 2
| 61
| 54.5
| 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
| 0
| 0
|
0
| 4
|
6dfaa0aa70efb8bfb33be6b88963dc80e3e7eb1f
| 73
|
py
|
Python
|
vis/test.py
|
Nathansong/OpenPCDdet-annotated
|
2ca2239f3cd5cba8308b1be0744d541be4ff5093
|
[
"Apache-2.0"
] | 4
|
2022-02-22T01:18:25.000Z
|
2022-03-28T13:30:11.000Z
|
vis/test.py
|
Nathansong/OpenPCDdet-annotated
|
2ca2239f3cd5cba8308b1be0744d541be4ff5093
|
[
"Apache-2.0"
] | 1
|
2022-03-02T03:42:52.000Z
|
2022-03-02T03:42:52.000Z
|
vis/test.py
|
Nathansong/OpenPCDdet-annotated
|
2ca2239f3cd5cba8308b1be0744d541be4ff5093
|
[
"Apache-2.0"
] | null | null | null |
path = "/home/nathan/OpenPCDet/data/kitti/training/velodyne/000000.bin"
| 24.333333
| 71
| 0.780822
| 10
| 73
| 5.7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0.054795
| 73
| 3
| 71
| 24.333333
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0.861111
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a3056d3c0122f76cea061b47c7cebd71302eec5c
| 248
|
py
|
Python
|
packages/standard.py
|
jurikolo/la-intro-to-python
|
d15299662f71d7defe6ca178a8344e3c4d605654
|
[
"Apache-2.0"
] | null | null | null |
packages/standard.py
|
jurikolo/la-intro-to-python
|
d15299662f71d7defe6ca178a8344e3c4d605654
|
[
"Apache-2.0"
] | null | null | null |
packages/standard.py
|
jurikolo/la-intro-to-python
|
d15299662f71d7defe6ca178a8344e3c4d605654
|
[
"Apache-2.0"
] | null | null | null |
print("Modules documentation: https://docs.python.org/3/tutorial/modules.html")
print("Standard modules list: https://docs.python.org/3/py-modindex.html")
import math
print(math.pi)
from math import pi
print(pi)
from math import pi as p
print(p)
| 22.545455
| 79
| 0.762097
| 42
| 248
| 4.5
| 0.47619
| 0.095238
| 0.15873
| 0.190476
| 0.391534
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008929
| 0.096774
| 248
| 11
| 80
| 22.545455
| 0.834821
| 0
| 0
| 0
| 0
| 0
| 0.542169
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.375
| 0
| 0.375
| 0.625
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
097f150675699f9f0fb29a948db31cc5196c818d
| 129
|
py
|
Python
|
portal_core/apps.py
|
kacotam-si/portal-core
|
1580319520cc002371dcccb1bb4cb11125853121
|
[
"MIT"
] | null | null | null |
portal_core/apps.py
|
kacotam-si/portal-core
|
1580319520cc002371dcccb1bb4cb11125853121
|
[
"MIT"
] | 2
|
2020-06-05T20:45:19.000Z
|
2020-10-13T04:25:55.000Z
|
portal_core/apps.py
|
kacotam-si/portal-core
|
1580319520cc002371dcccb1bb4cb11125853121
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
from django.conf import settings
class PortalCoreConfig(AppConfig):
name = 'portal_core'
| 18.428571
| 34
| 0.790698
| 16
| 129
| 6.3125
| 0.75
| 0.19802
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147287
| 129
| 6
| 35
| 21.5
| 0.918182
| 0
| 0
| 0
| 0
| 0
| 0.085271
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0997546f6d77374f92afff882bacd381651ee0ae
| 123
|
py
|
Python
|
inconnu/traits/__init__.py
|
tiltowait/inconnu
|
6cca5fed520899d159537701b695c94222d8dc45
|
[
"MIT"
] | 4
|
2021-09-06T20:18:13.000Z
|
2022-02-05T17:08:44.000Z
|
inconnu/traits/__init__.py
|
tiltowait/inconnu
|
6cca5fed520899d159537701b695c94222d8dc45
|
[
"MIT"
] | 7
|
2021-09-13T00:46:57.000Z
|
2022-01-11T06:38:50.000Z
|
inconnu/traits/__init__.py
|
tiltowait/inconnu
|
6cca5fed520899d159537701b695c94222d8dc45
|
[
"MIT"
] | 2
|
2021-11-27T22:24:53.000Z
|
2022-03-16T21:05:00.000Z
|
"""Set up the package interface."""
from .add_update import add, update
from .show import show
from .delete import delete
| 20.5
| 35
| 0.756098
| 19
| 123
| 4.842105
| 0.578947
| 0.195652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154472
| 123
| 5
| 36
| 24.6
| 0.884615
| 0.235772
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
099a45ec8f275507986b6214bd241fe4b6c71ae3
| 54
|
py
|
Python
|
tests/__init__.py
|
GDG-Ukraine/talks-feedback
|
9016e2ecc35858d45f4979fab5a54ee953a75f04
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
GDG-Ukraine/talks-feedback
|
9016e2ecc35858d45f4979fab5a54ee953a75f04
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
GDG-Ukraine/talks-feedback
|
9016e2ecc35858d45f4979fab5a54ee953a75f04
|
[
"MIT"
] | null | null | null |
"""Test suite for the Talks Feedback microservice."""
| 27
| 53
| 0.740741
| 7
| 54
| 5.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 54
| 1
| 54
| 54
| 0.851064
| 0.87037
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
09a62e7b8881c3b94a94393151fe47674d845dd0
| 845
|
py
|
Python
|
Python/behavioral_patterns/command/history_command.py
|
ploukareas/Design-Patterns
|
8effde38d73ae9058c3028c97ef395644a90d55b
|
[
"BSD-3-Clause",
"MIT"
] | 28
|
2018-09-28T07:45:35.000Z
|
2022-02-12T12:25:05.000Z
|
Python/behavioral_patterns/command/history_command.py
|
ploukareas/Design-Patterns
|
8effde38d73ae9058c3028c97ef395644a90d55b
|
[
"BSD-3-Clause",
"MIT"
] | null | null | null |
Python/behavioral_patterns/command/history_command.py
|
ploukareas/Design-Patterns
|
8effde38d73ae9058c3028c97ef395644a90d55b
|
[
"BSD-3-Clause",
"MIT"
] | 5
|
2021-05-10T23:19:55.000Z
|
2022-03-04T20:26:35.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
from behavioral_patterns.command.command import Command
# ˄
# Holder of the past commands
class HistoryCommand(Command):
# ˅
# ˄
def __init__(self):
# A set of past commands
self.__past_commands = []
# ˅
pass
# ˄
def execute(self):
# ˅
for past_command in self.__past_commands:
past_command.execute()
# ˄
def add(self, cmd):
# ˅
self.__past_commands.append(cmd)
# ˄
# Delete the last command
def undo(self):
# ˅
if len(self.__past_commands) != 0:
self.__past_commands.pop()
# ˄
# Delete all past commands
def clear(self):
# ˅
self.__past_commands.clear()
# ˄
# ˅
# ˄
# ˅
# ˄
| 15.089286
| 55
| 0.502959
| 102
| 845
| 4.098039
| 0.411765
| 0.258373
| 0.229665
| 0.08134
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003795
| 0.376331
| 845
| 55
| 56
| 15.363636
| 0.755218
| 0.210651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.066667
| 0.066667
| 0
| 0.466667
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
09e5f7e19923e048c28f58a87dbbfe0de36d4a04
| 362
|
py
|
Python
|
3rdparty/pytorch/torch/autograd/variable.py
|
WoodoLee/TorchCraft
|
999f68aab9e7d50ed3ae138297226dc95fefc458
|
[
"MIT"
] | 51
|
2020-01-26T23:32:57.000Z
|
2022-03-20T14:49:57.000Z
|
3rdparty/pytorch/torch/autograd/variable.py
|
WoodoLee/TorchCraft
|
999f68aab9e7d50ed3ae138297226dc95fefc458
|
[
"MIT"
] | 2
|
2020-12-19T20:00:28.000Z
|
2021-03-03T20:22:45.000Z
|
3rdparty/pytorch/torch/autograd/variable.py
|
WoodoLee/TorchCraft
|
999f68aab9e7d50ed3ae138297226dc95fefc458
|
[
"MIT"
] | 33
|
2020-02-18T16:15:48.000Z
|
2022-03-24T15:12:05.000Z
|
import torch
from torch._six import with_metaclass
class VariableMeta(type):
def __instancecheck__(self, other):
return isinstance(other, torch.Tensor)
class Variable(with_metaclass(VariableMeta, torch._C._LegacyVariableBase)):
pass
from torch._C import _ImperativeEngine as ImperativeEngine
Variable._execution_engine = ImperativeEngine()
| 22.625
| 75
| 0.79558
| 40
| 362
| 6.875
| 0.6
| 0.065455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135359
| 362
| 15
| 76
| 24.133333
| 0.878594
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0.111111
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
|
0
| 4
|
09e91e344b133bb70e9396f03df09da25b24a2b5
| 1,372
|
py
|
Python
|
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
|
quandxbp/vnpt-ccos
|
23d2bc3d3db2e0bce479e0ccfa62e13451306635
|
[
"bzip2-1.0.6"
] | null | null | null |
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
|
quandxbp/vnpt-ccos
|
23d2bc3d3db2e0bce479e0ccfa62e13451306635
|
[
"bzip2-1.0.6"
] | null | null | null |
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
|
quandxbp/vnpt-ccos
|
23d2bc3d3db2e0bce479e0ccfa62e13451306635
|
[
"bzip2-1.0.6"
] | null | null | null |
# Generated by Django 3.2.4 on 2021-07-14 02:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zalo_base', '0003_auto_20210713_1103'),
]
operations = [
migrations.DeleteModel(
name='ZaloMessage',
),
migrations.AddField(
model_name='zalouser',
name='address',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='zalouser',
name='city',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='zalouser',
name='district',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='zalouser',
name='ward',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AlterField(
model_name='zalouser',
name='name',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AlterField(
model_name='zalouser',
name='phone',
field=models.CharField(blank=True, max_length=200, null=True),
),
]
| 29.191489
| 74
| 0.559038
| 136
| 1,372
| 5.522059
| 0.345588
| 0.071904
| 0.135819
| 0.167776
| 0.708389
| 0.708389
| 0.656458
| 0.656458
| 0.656458
| 0.656458
| 0
| 0.052519
| 0.319971
| 1,372
| 46
| 75
| 29.826087
| 0.752412
| 0.032799
| 0
| 0.625
| 1
| 0
| 0.09283
| 0.017358
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.025
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
09eadaf88e96e921514284415b829745e173d0ca
| 708
|
py
|
Python
|
pkgs/javusdev/javusdev/settings.py
|
quapka/javus
|
577e0c2dabfaea39d7ffacd42100d8a5f4cd738c
|
[
"MIT"
] | 1
|
2020-09-22T01:38:21.000Z
|
2020-09-22T01:38:21.000Z
|
pkgs/javusdev/javusdev/settings.py
|
petrs/javus
|
6927c824d5e6b574a6a323c87bd5aa117eca5b00
|
[
"MIT"
] | null | null | null |
pkgs/javusdev/javusdev/settings.py
|
petrs/javus
|
6927c824d5e6b574a6a323c87bd5aa117eca5b00
|
[
"MIT"
] | 1
|
2020-07-26T07:20:47.000Z
|
2020-07-26T07:20:47.000Z
|
import os
from pathlib import Path
def get_project_root() -> Path:
# kudos to https://stackoverflow.com/a/53465812/2377489
relative_root = Path(__file__).parent.parent
return relative_root
def get_project_src() -> Path:
return get_project_root() / "javusdev"
def get_project_data() -> Path:
return get_project_src() / "data"
def get_javus_attacks_dir() -> Path:
# FIXME this can break easily, but there isn't seem to be reasonable workaround
# at the moment
return get_project_root().parent.parent / "javus" / "data" / "attacks"
PROJECT_ROOT = get_project_root()
PROJECT_SRC = get_project_src()
DATA = get_project_data()
JAVUS_ATTACKS_DIR = get_javus_attacks_dir()
| 23.6
| 83
| 0.728814
| 101
| 708
| 4.772277
| 0.425743
| 0.186722
| 0.116183
| 0.082988
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02551
| 0.169492
| 708
| 29
| 84
| 24.413793
| 0.794218
| 0.204802
| 0
| 0
| 0
| 0
| 0.050089
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 1
| 0.266667
| false
| 0
| 0.133333
| 0.2
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.