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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
056ef37f8cd6cd116fdaa091e31732f563841be6
| 85
|
py
|
Python
|
utils/config.py
|
mikesj-public/dcgan-autoencoder
|
772815cb009349abd47b7f31c1ba5f41bef24b51
|
[
"MIT"
] | 185
|
2016-01-25T13:09:33.000Z
|
2020-12-27T19:00:34.000Z
|
utils/config.py
|
afcarl/dcgan-autoencoder
|
772815cb009349abd47b7f31c1ba5f41bef24b51
|
[
"MIT"
] | 3
|
2017-03-02T03:19:30.000Z
|
2018-04-19T02:29:50.000Z
|
utils/config.py
|
afcarl/dcgan-autoencoder
|
772815cb009349abd47b7f31c1ba5f41bef24b51
|
[
"MIT"
] | 61
|
2016-01-26T10:52:51.000Z
|
2021-04-15T07:57:20.000Z
|
data_dir = '/home/mike/Documents/convolutional_variational_autoencoder/dcgan/mnist/'
| 42.5
| 84
| 0.847059
| 10
| 85
| 6.9
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035294
| 85
| 1
| 85
| 85
| 0.841463
| 0
| 0
| 0
| 0
| 0
| 0.835294
| 0.835294
| 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
|
55359815088e5657cecc45ebda74c6854a285ea3
| 4,768
|
py
|
Python
|
tests/gdata_tests/apps/data_test.py
|
Cloudlock/gdata-python3
|
a6481a13590bfa225f91a97b2185cca9aacd1403
|
[
"Apache-2.0"
] | 19
|
2017-06-09T13:38:03.000Z
|
2020-12-12T07:45:48.000Z
|
tests/gdata_tests/apps/data_test.py
|
AlexxIT/gdata-python3
|
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
|
[
"Apache-1.1"
] | 11
|
2017-07-22T07:09:54.000Z
|
2020-12-02T15:08:48.000Z
|
tests/gdata_tests/apps/data_test.py
|
AlexxIT/gdata-python3
|
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
|
[
"Apache-1.1"
] | 25
|
2017-07-03T11:30:39.000Z
|
2020-10-01T02:21:13.000Z
|
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License 2.0;
"""Data model tests for the Provisioning API."""
# __author__ = 'Shraddha Gupta <shraddhag@google.com>'
import unittest
import atom.core
import gdata.apps.data
import gdata.test_config as conf
from gdata import test_data
class UserEntryTest(unittest.TestCase):
def setUp(self):
self.entry = atom.core.parse(test_data.USER_ENTRY1,
gdata.apps.data.UserEntry)
self.feed = atom.core.parse(test_data.USER_FEED1,
gdata.apps.data.UserFeed)
def testUserEntryFromString(self):
self.assertTrue(isinstance(self.entry,
gdata.apps.data.UserEntry))
self.assertEqual(self.entry.name.given_name, 'abcd33')
self.assertEqual(self.entry.name.family_name, 'efgh3')
self.assertEqual(self.entry.login.user_name, 'abcd12310')
self.assertEqual(self.entry.login.suspended, 'false')
self.assertEqual(self.entry.login.admin, 'false')
self.assertEqual(self.entry.quota.limit, '25600')
def testUserFeedFromString(self):
self.assertEqual(len(self.feed.entry), 2)
self.assertTrue(isinstance(self.feed, gdata.apps.data.UserFeed))
self.assertTrue(isinstance(self.feed.entry[0], gdata.apps.data.UserEntry))
self.assertTrue(isinstance(self.feed.entry[1], gdata.apps.data.UserEntry))
self.assertEqual(self.feed.entry[0].find_edit_link(),
('https://apps-apis.google.com/a/feeds/srkapps.com/user/2.0/user8306'))
self.assertEqual(self.feed.entry[0].name.given_name, 'FirstName8306')
self.assertEqual(self.feed.entry[0].name.family_name, 'LastName8306')
self.assertEqual(self.feed.entry[0].login.user_name, 'user8306')
self.assertEqual(self.feed.entry[0].login.admin, 'false')
self.assertEqual(self.feed.entry[0].login.suspended, 'false')
self.assertEqual(self.feed.entry[0].login.change_password, 'false')
self.assertEqual(self.feed.entry[0].login.ip_whitelisted, 'false')
self.assertEqual(self.feed.entry[0].quota.limit, '25600')
self.assertEqual(
self.feed.entry[1].find_edit_link(),
('https://apps-apis.google.com/a/feeds/srkapps.com/user/2.0/user8307'))
self.assertEqual(self.feed.entry[1].name.given_name, 'FirstName8307')
self.assertEqual(self.feed.entry[1].name.family_name, 'LastName8307')
self.assertEqual(self.feed.entry[1].login.user_name, 'user8307')
self.assertEqual(self.feed.entry[1].login.admin, 'false')
self.assertEqual(self.feed.entry[1].login.suspended, 'false')
self.assertEqual(self.feed.entry[1].login.change_password, 'false')
self.assertEqual(self.feed.entry[1].login.ip_whitelisted, 'false')
self.assertEqual(self.feed.entry[1].quota.limit, '25600')
class NicknameEntryTest(unittest.TestCase):
def setUp(self):
self.entry = atom.core.parse(test_data.NICKNAME_ENTRY,
gdata.apps.data.NicknameEntry)
self.feed = atom.core.parse(test_data.NICKNAME_FEED,
gdata.apps.data.NicknameFeed)
def testNicknameEntryFromString(self):
self.assertTrue(isinstance(self.entry,
gdata.apps.data.NicknameEntry))
self.assertEqual(self.entry.nickname.name, 'nehag')
self.assertEqual(self.entry.login.user_name, 'neha')
def testNicknameFeedFromString(self):
self.assertEqual(len(self.feed.entry), 2)
self.assertTrue(isinstance(self.feed,
gdata.apps.data.NicknameFeed))
self.assertTrue(isinstance(self.feed.entry[0],
gdata.apps.data.NicknameEntry))
self.assertTrue(isinstance(self.feed.entry[1],
gdata.apps.data.NicknameEntry))
self.assertEqual(
self.feed.entry[0].find_edit_link(),
('https://apps-apis.google.com/a/feeds/srkapps.net/'
'nickname/2.0/nehag'))
self.assertEqual(self.feed.entry[0].nickname.name, 'nehag')
self.assertEqual(self.feed.entry[0].login.user_name, 'neha')
self.assertEqual(
self.feed.entry[1].find_edit_link(),
('https://apps-apis.google.com/a/feeds/srkapps.net/'
'nickname/2.0/richag'))
self.assertEqual(self.feed.entry[1].nickname.name, 'richag')
self.assertEqual(self.feed.entry[1].login.user_name, 'richa')
def suite():
return conf.build_suite([UserEntryTest, NicknameEntryTest])
if __name__ == '__main__':
unittest.main()
| 45.409524
| 96
| 0.645554
| 572
| 4,768
| 5.298951
| 0.181818
| 0.089739
| 0.200594
| 0.182118
| 0.765424
| 0.713956
| 0.662488
| 0.491587
| 0.430221
| 0.273837
| 0
| 0.027063
| 0.217282
| 4,768
| 104
| 97
| 45.846154
| 0.785102
| 0.038381
| 0
| 0.197531
| 0
| 0.024691
| 0.099454
| 0
| 0
| 0
| 0
| 0
| 0.518519
| 1
| 0.08642
| false
| 0.024691
| 0.061728
| 0.012346
| 0.185185
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
555a7d41ef798e55fd56514b01bc177e0b627c77
| 134
|
py
|
Python
|
pysh/__init__.py
|
sfuller/pyshlang
|
7b84d7a29eef552d03634298741b72940d7f8e86
|
[
"Apache-2.0"
] | 1
|
2018-05-09T20:08:53.000Z
|
2018-05-09T20:08:53.000Z
|
pysh/__init__.py
|
sfuller/pyshlang
|
7b84d7a29eef552d03634298741b72940d7f8e86
|
[
"Apache-2.0"
] | null | null | null |
pysh/__init__.py
|
sfuller/pyshlang
|
7b84d7a29eef552d03634298741b72940d7f8e86
|
[
"Apache-2.0"
] | null | null | null |
import sys
from pysh.interactive import Interactive
def main() -> None:
instance = Interactive()
sys.exit(instance.main())
| 14.888889
| 40
| 0.701493
| 16
| 134
| 5.875
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186567
| 134
| 8
| 41
| 16.75
| 0.862385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
e95cd05fdd80cc09834f0a01565bd07dce348a07
| 240
|
py
|
Python
|
KBBI/schema.py
|
harizMunawar/kbbi-as-a-service
|
d825a915a20bf84aa74a944e0d014c74b12808a5
|
[
"MIT"
] | null | null | null |
KBBI/schema.py
|
harizMunawar/kbbi-as-a-service
|
d825a915a20bf84aa74a944e0d014c74b12808a5
|
[
"MIT"
] | null | null | null |
KBBI/schema.py
|
harizMunawar/kbbi-as-a-service
|
d825a915a20bf84aa74a944e0d014c74b12808a5
|
[
"MIT"
] | null | null | null |
import graphene
import word.schema as word_schema
class Query(word_schema.Query, graphene.ObjectType):
pass
class Mutation(word_schema.Mutation, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query, mutation=Mutation)
| 21.818182
| 58
| 0.795833
| 31
| 240
| 6.064516
| 0.322581
| 0.212766
| 0.234043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120833
| 240
| 11
| 59
| 21.818182
| 0.890995
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.285714
| 0.285714
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
e9748216385a7778cabb1d959b83222a4fee7369
| 330
|
py
|
Python
|
conftest.py
|
avanwyk/cipy
|
e5c8462eed8649abcb89c8a256d3868c89186b35
|
[
"Apache-2.0"
] | 1
|
2016-07-12T12:14:06.000Z
|
2016-07-12T12:14:06.000Z
|
conftest.py
|
avanwyk/cipy
|
e5c8462eed8649abcb89c8a256d3868c89186b35
|
[
"Apache-2.0"
] | null | null | null |
conftest.py
|
avanwyk/cipy
|
e5c8462eed8649abcb89c8a256d3868c89186b35
|
[
"Apache-2.0"
] | null | null | null |
def pytest_addoption(parser):
parser.addoption("--runexamples", action="store_true",
help="run examples")
parser.addoption("--runbenchmarks", action="store_true",
help="run benchmarks")
parser.addoption("--all", action="store_true",
help="run benchmarks")
| 47.142857
| 60
| 0.587879
| 31
| 330
| 6.129032
| 0.451613
| 0.236842
| 0.236842
| 0.3
| 0.452632
| 0.336842
| 0
| 0
| 0
| 0
| 0
| 0
| 0.266667
| 330
| 7
| 61
| 47.142857
| 0.785124
| 0
| 0
| 0.285714
| 0
| 0
| 0.311178
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.142857
| 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
|
e974b1e0acdbae561e76f3830853fbcaa8dc4ff6
| 5,877
|
py
|
Python
|
DailyProgrammer/DP20160323B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | 2
|
2020-12-23T18:59:22.000Z
|
2021-04-14T13:16:09.000Z
|
DailyProgrammer/DP20160323B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
DailyProgrammer/DP20160323B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
"""
[2016-03-23] Challenge #259 [Intermediate] Mahjong Hands
https://www.reddit.com/r/dailyprogrammer/comments/4bmdwz/20160323_challenge_259_intermediate_mahjong_hands/
# Description
You are the biggest, baddest mahjong player around. Your enemies tremble at your presence on the battlefield, and you
can barely walk ten steps before a fan begs you for an autograph.
However, you have a dark secret that would ruin you if it ever came to light. You're terrible at determining whether a
hand is a winning hand. For now, you've been able to bluff and bluster your way, but you know that one day you won't be
able to get away with it.
As such, you've decided to write a program to assist you!
## Further Details
Mahjong (not to be confused with [mahjong solitaire](http://en.wikipedia.org/wiki/Mahjong_solitaire)) is a game where
hands are composed from combinations of tiles. There are a number of variants of mahjong, but for this challenge, we
will consider a simplified variant of Japanese Mahjong which is also known as Riichi Mahjong.
## Basic Version
There are three suits in this variant, "Bamboo", "Circle" and "Character". Every tile that belongs to these suits has a
value that ranges from 1 - 9.
To complete a hand, tiles are organised into groups. If every tile in a hand belongs to a single group (and each tile
can only be used once), the hand is a winning hand.
For now, we shall consider the groups "Pair", "Set" and "Sequence". They are composed as follows:
Pair - Two tiles with the same suit and value
Set - Three tiles with the same suit and value
Sequence - Three tiles with the same suit, and which increment in value, such as "Circle 2, Circle 3, Circle 4". There
is no value wrapping so "Circle 9, Circle 1, Circle 2" would not be considered valid.
A hand is composed of 14 tiles.
## Bonus 1 - Adding Quads
There is actually a fourth group called a "Quad". It is just like a pair and a set, except it is composed of four tiles.
What makes this group special is that a hand containing quads will actually have a hand larger than 14, 1 for every
quad. This is fine, as long as there is *1, and only 1 pair*.
## Bonus 2 - Adding Honour Tiles
In addition to the tiles belonging to the three suits, there are 7 additional tiles. These tiles have no value, and are
collectively known as "honour" tiles.
As they have no value, they cannot be members of a sequence. Furthermore, they can only be part of a set or pair with
tiles that are exactly the same. For example, "Red Dragon, Red Dragon, Red Dragon" would be a valid set, but "Red
Dragon, Green Dragon, Red Dragon" would not.
These additional tiles are:
* Green Dragon
* Red Dragon
* White Dragon
* North Wind
* East Wind
* South Wind
* West Wind
## Bonus 3 - Seven Pairs
There are a number of special hands that are an exception to the above rules. One such hand is "Seven Pairs". As the
name suggests, it is a hand composed of seven pairs.
# Formal Inputs & Outputs
## Input description
### Basic
You will be provided with N on a single line, followed by N lines of the following format:
<tile suit>,<value>
### Bonus 2
In addition, the lines may be of the format:
<honour tile>
## Output description
You should output whether the hand is a winning hand or not.
# Sample Inputs and Outputs
## Sample Input (Standard)
14
Circle,4
Circle,5
Circle,6
Bamboo,1
Bamboo,2
Bamboo,3
Character,2
Character,2
Character,2
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
## Sample Output (Standard)
Winning hand
## Sample Input (Standard)
14
Circle,4
Bamboo,1
Circle,5
Bamboo,2
Character,2
Bamboo,3
Character,2
Circle,6
Character,2
Circle,1
Bamboo,8
Circle,1
Bamboo,7
Bamboo,9
## Sample Output (Standard)
Winning hand
## Sample Input (Standard)
14
Circle,4
Circle,5
Circle,6
Circle,4
Circle,5
Circle,6
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
Circle,4
Circle,5
Circle,6
## Sample Output (Standard)
Winning hand
## Sample Input (Bonus 1)
15
Circle,4
Circle,5
Circle,6
Bamboo,1
Bamboo,2
Bamboo,3
Character,2
Character,2
Character,2
Character,2
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
## Sample Output (Bonus 1)
Winning hand
## Sample Input (Bonus 1)
16
Circle,4
Circle,5
Circle,6
Bamboo,1
Bamboo,2
Bamboo,3
Character,2
Character,2
Character,2
Character,2
Circle,1
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
## Sample Output (Bonus 1)
Not a winning hand
## Sample Input (Bonus 2)
14
Circle,4
Circle,5
Circle,6
Bamboo,1
Bamboo,2
Bamboo,3
Red Dragon
Red Dragon
Red Dragon
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
## Sample Output (Bonus 2)
Winning hand
## Sample Input (Bonus 2)
14
Circle,4
Circle,5
Circle,6
Bamboo,1
Bamboo,2
Bamboo,3
Red Dragon
Green Dragon
White Dragon
Circle,1
Circle,1
Bamboo,7
Bamboo,8
Bamboo,9
## Sample Output (Bonus 2)
Not a winning hand
## Sample Input (Bonus 3)
14
Circle,4
Circle,4
Character,5
Character,5
Bamboo,5
Bamboo,5
Circle,5
Circle,5
Circle,7
Circle,7
Circle,9
Circle,9
Circle,9
Circle,9
## Sample Output (Bonus 3)
Winning hand
# Notes
None of the bonus components depend on each other, and can be implemented in any order. The test cases do not presume
completion of earlier bonus components. The order is just the recommended implementation order.
Many thanks to Redditor /u/oketa for this submission to /r/dailyprogrammer_ideas. If you have any ideas, please submit
them there!
"""
def main():
pass
if __name__ == "__main__":
main()
| 26.59276
| 120
| 0.695593
| 962
| 5,877
| 4.233888
| 0.274428
| 0.027498
| 0.031918
| 0.027498
| 0.338326
| 0.304444
| 0.268598
| 0.210901
| 0.210901
| 0.210901
| 0
| 0.03983
| 0.239578
| 5,877
| 220
| 121
| 26.713636
| 0.87156
| 0.987749
| 0
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0
| 0
| 0.25
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e97c6363c6c295f6347e7d807643ea5ae77247f2
| 5,883
|
py
|
Python
|
test/wrappers_tests.py
|
JakubPetriska/acpc-poker-bot-python-wrapper
|
b5079a214c66aafb54fbcba82812a5c032e497db
|
[
"MIT"
] | 12
|
2018-03-15T03:09:30.000Z
|
2021-05-21T16:16:12.000Z
|
test/wrappers_tests.py
|
JakubPetriska/acpc-poker-bot-python-wrapper
|
b5079a214c66aafb54fbcba82812a5c032e497db
|
[
"MIT"
] | null | null | null |
test/wrappers_tests.py
|
JakubPetriska/acpc-poker-bot-python-wrapper
|
b5079a214c66aafb54fbcba82812a5c032e497db
|
[
"MIT"
] | 1
|
2019-10-21T11:16:18.000Z
|
2019-10-21T11:16:18.000Z
|
import ctypes as ctypes
import unittest
from acpc_python_client.wrappers import *
from test import agent_lib_test_utils as lib
class ActionWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = ActionWrapper()
def test_values(self):
lib.test_utils.fillTestAction(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.type, a_call)
self.assertEqual(self.wrapper.size, 32)
class GameWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = GameWrapper()
def test_values(self):
lib.test_utils.fillTestGame(ctypes.pointer(self.wrapper))
self.assertEqual(len(self.wrapper.stack), MAX_PLAYERS)
for i in range(MAX_PLAYERS):
self.assertEqual(self.wrapper.stack[i], 21 + i)
self.assertEqual(len(self.wrapper.blind), MAX_PLAYERS)
for i in range(MAX_PLAYERS):
self.assertEqual(self.wrapper.blind[i], 89 + i)
self.assertEqual(len(self.wrapper.raiseSize), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(self.wrapper.raiseSize[i], 13 + i)
self.assertEqual(self.wrapper.bettingType, noLimitBetting)
self.assertEqual(self.wrapper.numPlayers, 7)
self.assertEqual(self.wrapper.numRounds, 2)
self.assertEqual(len(self.wrapper.firstPlayer), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(self.wrapper.firstPlayer[i], 42 + i)
self.assertEqual(len(self.wrapper.maxRaises), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(self.wrapper.maxRaises[i], 18 + i)
self.assertEqual(self.wrapper.numSuits, 2)
self.assertEqual(self.wrapper.numRanks, 25)
self.assertEqual(self.wrapper.numHoleCards, 2)
self.assertEqual(len(self.wrapper.numBoardCards), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(self.wrapper.numBoardCards[i], i + 1)
class StateWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = StateWrapper()
def test_values(self):
lib.test_utils.fillTestState(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.handId, 12)
self.assertEqual(self.wrapper.maxSpent, 8)
self.assertEqual(self.wrapper.minNoLimitRaiseTo, 22)
self.assertEqual(len(self.wrapper.spent), MAX_PLAYERS)
for i in range(MAX_PLAYERS):
self.assertEqual(self.wrapper.spent[i], 18 + i)
self.assertEqual(len(self.wrapper.action), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(len(self.wrapper.action[i]), MAX_NUM_ACTIONS)
for j in range(MAX_NUM_ACTIONS):
self.assertEqual(self.wrapper.action[i][j].type,
(i * MAX_ROUNDS + j) % NUM_ACTION_TYPES)
self.assertEqual(self.wrapper.action[i][j].size,
1 + i * MAX_ROUNDS + j)
self.assertEqual(len(self.wrapper.actingPlayer), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(len(self.wrapper.actingPlayer[i]), MAX_NUM_ACTIONS)
for j in range(MAX_NUM_ACTIONS):
self.assertEqual(self.wrapper.actingPlayer[i][j],
3 + i * MAX_ROUNDS + j)
self.assertEqual(len(self.wrapper.numActions), MAX_ROUNDS)
for i in range(MAX_ROUNDS):
self.assertEqual(self.wrapper.numActions[i], 7 + i)
self.assertEqual(self.wrapper.round, 1)
self.assertEqual(self.wrapper.finished, 11)
self.assertEqual(len(self.wrapper.playerFolded), MAX_PLAYERS)
for i in range(MAX_PLAYERS):
self.assertEqual(self.wrapper.playerFolded[i], 33 + i)
self.assertEqual(len(self.wrapper.boardCards), MAX_BOARD_CARDS)
for i in range(MAX_BOARD_CARDS):
self.assertEqual(self.wrapper.boardCards[i], 82 + i)
self.assertEqual(len(self.wrapper.holeCards), MAX_PLAYERS)
for i in range(MAX_PLAYERS):
self.assertEqual(len(self.wrapper.holeCards[i]), MAX_HOLE_CARDS)
for j in range(MAX_HOLE_CARDS):
self.assertEqual(self.wrapper.holeCards[i][j],
2 + i * MAX_PLAYERS + j)
class MatchStateWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = MatchStateWrapper()
def test_values(self):
lib.test_utils.fillTestMatchState(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.state.handId, 3)
self.assertEqual(self.wrapper.state.round, 4)
self.assertEqual(self.wrapper.viewingPlayer, 5)
class PossibleActionsWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = PossibleActionsWrapper()
def test_values_1(self):
lib.test_utils.fillTestPossibleActions1(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.foldValid, True)
self.assertEqual(self.wrapper.raiseValid, True)
self.assertEqual(self.wrapper.raiseMin, 5)
self.assertEqual(self.wrapper.raiseMax, 8)
def test_values_2(self):
lib.test_utils.fillTestPossibleActions2(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.foldValid, False)
self.assertEqual(self.wrapper.raiseValid, True)
self.assertEqual(self.wrapper.raiseMin, 34)
self.assertEqual(self.wrapper.raiseMax, -6)
def test_values_3(self):
lib.test_utils.fillTestPossibleActions3(ctypes.pointer(self.wrapper))
self.assertEqual(self.wrapper.foldValid, True)
self.assertEqual(self.wrapper.raiseValid, False)
self.assertEqual(self.wrapper.raiseMin, -154)
self.assertEqual(self.wrapper.raiseMax, 1)
def test_value_override(self):
self.test_values_1()
self.test_values_2()
self.test_values_3()
| 38.960265
| 80
| 0.664457
| 713
| 5,883
| 5.374474
| 0.16129
| 0.200939
| 0.208246
| 0.284969
| 0.658403
| 0.545929
| 0.455376
| 0.363257
| 0.324113
| 0.287839
| 0
| 0.012733
| 0.225735
| 5,883
| 150
| 81
| 39.22
| 0.82854
| 0
| 0
| 0.234783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.504348
| 1
| 0.113043
| false
| 0
| 0.034783
| 0
| 0.191304
| 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
|
e988750d7c00d28cb06970b09eb2a4bcfb89a2cb
| 103
|
py
|
Python
|
AdminSystem/RollMarkingApp/apps.py
|
J1mNg/StJohnAdminWebsite
|
8be4327ab70d84fff7bd60ef308ea414e977a639
|
[
"Apache-2.0"
] | null | null | null |
AdminSystem/RollMarkingApp/apps.py
|
J1mNg/StJohnAdminWebsite
|
8be4327ab70d84fff7bd60ef308ea414e977a639
|
[
"Apache-2.0"
] | null | null | null |
AdminSystem/RollMarkingApp/apps.py
|
J1mNg/StJohnAdminWebsite
|
8be4327ab70d84fff7bd60ef308ea414e977a639
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class RollmarkingappConfig(AppConfig):
name = 'RollMarkingApp'
| 17.166667
| 38
| 0.786408
| 10
| 103
| 8.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145631
| 103
| 5
| 39
| 20.6
| 0.920455
| 0
| 0
| 0
| 0
| 0
| 0.135922
| 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
|
e9d0ffc3635c072166ea1ddbb10f823aa185c472
| 1,340
|
py
|
Python
|
SNN_GDB/task.py
|
GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour
|
029b6a165039f8d9f748b77a1faa3c631ec27f07
|
[
"MIT"
] | null | null | null |
SNN_GDB/task.py
|
GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour
|
029b6a165039f8d9f748b77a1faa3c631ec27f07
|
[
"MIT"
] | null | null | null |
SNN_GDB/task.py
|
GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour
|
029b6a165039f8d9f748b77a1faa3c631ec27f07
|
[
"MIT"
] | null | null | null |
import numpy as np
def task_feedback(stim_acti_exp, stimulus, action, n_ttrial):
s = None
if stim_acti_exp[stimulus, action] == 0:
if 0 <= n_ttrial <= 2:
stim_acti_exp[stimulus, action] = -1
else:
if np.count_nonzero(stim_acti_exp == 1) == 0:
stim_acti_exp[stimulus, action] = 1
s = {'S1': stimulus}
elif np.count_nonzero(stim_acti_exp == 1) == 1 \
and \
np.count_nonzero(stim_acti_exp[stimulus, :] == 1) == 0 \
and \
np.count_nonzero(stim_acti_exp[stimulus, :] == -1) == 3:
stim_acti_exp[stimulus, action] = 1
s = {'S2': stimulus}
elif np.count_nonzero(stim_acti_exp == 1) == 2 \
and \
np.count_nonzero(stim_acti_exp[stimulus, :] == 1) == 0 \
and \
np.count_nonzero(stim_acti_exp[stimulus, :] == -1) == 4:
stim_acti_exp[stimulus, action] = 1
s = {'S3': stimulus}
else:
stim_acti_exp[stimulus, action] = -1
if stim_acti_exp[stimulus, action] == 1:
print('Yay, good job!')
feedback = 8
else:
feedback = 9
print(stim_acti_exp)
return feedback, s
| 39.411765
| 76
| 0.491045
| 159
| 1,340
| 3.874214
| 0.232704
| 0.207792
| 0.285714
| 0.37013
| 0.75487
| 0.714286
| 0.540584
| 0.366883
| 0.366883
| 0.243506
| 0
| 0.034398
| 0.392537
| 1,340
| 34
| 77
| 39.411765
| 0.722359
| 0
| 0
| 0.424242
| 0
| 0
| 0.014914
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030303
| false
| 0
| 0.030303
| 0
| 0.090909
| 0.060606
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e9df7000f3e1f2bde1287273ba9309def47b2ad6
| 107
|
py
|
Python
|
enthought/mayavi/modules/structured_grid_outline.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/mayavi/modules/structured_grid_outline.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/mayavi/modules/structured_grid_outline.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from mayavi.modules.structured_grid_outline import *
| 26.75
| 52
| 0.859813
| 14
| 107
| 6.071429
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102804
| 107
| 3
| 53
| 35.666667
| 0.885417
| 0.11215
| 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
|
7599386f118b857365ea81f861c5018eda95f818
| 143
|
py
|
Python
|
wunderkafka/serdes/avro/types.py
|
severstal-digital/wunderkafka
|
8c56fa4559a8576af7f005fd916bf97127576278
|
[
"Apache-2.0"
] | null | null | null |
wunderkafka/serdes/avro/types.py
|
severstal-digital/wunderkafka
|
8c56fa4559a8576af7f005fd916bf97127576278
|
[
"Apache-2.0"
] | null | null | null |
wunderkafka/serdes/avro/types.py
|
severstal-digital/wunderkafka
|
8c56fa4559a8576af7f005fd916bf97127576278
|
[
"Apache-2.0"
] | null | null | null |
from typing import Dict, List, Union
Field = Dict[str, Union[str, List[str]]]
FastAvroParsedSchema = Dict[str, Union[bool, str, List[Field]]]
| 28.6
| 63
| 0.727273
| 21
| 143
| 4.952381
| 0.47619
| 0.134615
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125874
| 143
| 4
| 64
| 35.75
| 0.832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
75c7e4d64142c0e13afdaca44df08a06b5dc2878
| 115
|
py
|
Python
|
Chapter 06/ch6_1h.py
|
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
|
f6a4194684515495d00aa38347a725dd08f39a0c
|
[
"MIT"
] | null | null | null |
Chapter 06/ch6_1h.py
|
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
|
f6a4194684515495d00aa38347a725dd08f39a0c
|
[
"MIT"
] | null | null | null |
Chapter 06/ch6_1h.py
|
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
|
f6a4194684515495d00aa38347a725dd08f39a0c
|
[
"MIT"
] | null | null | null |
i=10
for i in range(5):
print(i)
i = i+3
print(i)
'''output
0
3
1
4
2
5
3
6
4
7
'''
| 6.388889
| 20
| 0.4
| 25
| 115
| 1.84
| 0.6
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 0.46087
| 115
| 18
| 21
| 6.388889
| 0.516129
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
75ec4b561b0c01fbf35a9ca0d64168286a1cdf2d
| 522
|
py
|
Python
|
entities/part_category.py
|
DiPaolo/lego-image-dataset-retriever
|
895fab10dbdbba99f36a1123d339b6f4fa5fe8fe
|
[
"Apache-2.0"
] | null | null | null |
entities/part_category.py
|
DiPaolo/lego-image-dataset-retriever
|
895fab10dbdbba99f36a1123d339b6f4fa5fe8fe
|
[
"Apache-2.0"
] | null | null | null |
entities/part_category.py
|
DiPaolo/lego-image-dataset-retriever
|
895fab10dbdbba99f36a1123d339b6f4fa5fe8fe
|
[
"Apache-2.0"
] | null | null | null |
from json_utils import get_json_value
class PartCategory(object):
def __new__(cls, json_object):
if json_object:
return super(PartCategory, cls).__new__(cls)
else:
return None
def __init__(self, json_object):
self.__json = json_object
def id(self):
return get_json_value(self.__json, 'id')
def name(self):
return get_json_value(self.__json, 'name')
def rba_part_count(self):
return get_json_value(self.__json, 'part_count')
| 23.727273
| 56
| 0.64751
| 69
| 522
| 4.376812
| 0.347826
| 0.13245
| 0.15894
| 0.168874
| 0.298013
| 0.298013
| 0.298013
| 0
| 0
| 0
| 0
| 0
| 0.260536
| 522
| 21
| 57
| 24.857143
| 0.782383
| 0
| 0
| 0
| 0
| 0
| 0.030651
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.066667
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
f95c02c16b95fa11fc12543c35e7f60bf4259cdc
| 145
|
py
|
Python
|
res/default_secrets.py
|
raidancampbell/micropython
|
a87e18607c8bd3fb1a5b2952fa023d97035f3e3b
|
[
"MIT"
] | 1
|
2019-07-23T22:54:31.000Z
|
2019-07-23T22:54:31.000Z
|
res/default_secrets.py
|
raidancampbell/micropython
|
a87e18607c8bd3fb1a5b2952fa023d97035f3e3b
|
[
"MIT"
] | null | null | null |
res/default_secrets.py
|
raidancampbell/micropython
|
a87e18607c8bd3fb1a5b2952fa023d97035f3e3b
|
[
"MIT"
] | null | null | null |
ssid = b'<ssid_name_here>'
password = b'<wifi_password_here>'
endpoint = 'http://www.brewstat.us/api/brews/<brew_id_here>/sessions/latest/stats'
| 36.25
| 82
| 0.758621
| 23
| 145
| 4.521739
| 0.782609
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.062069
| 145
| 3
| 83
| 48.333333
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0.724138
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
f96a2532768da49cffd722ebe8357f02ee6c0d9e
| 238
|
py
|
Python
|
examples/detailed_use_cases/obj_5d.py
|
hase1128/dragonfly
|
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
|
[
"MIT"
] | 675
|
2018-08-23T17:30:46.000Z
|
2022-03-30T18:37:23.000Z
|
examples/detailed_use_cases/obj_5d.py
|
hase1128/dragonfly
|
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
|
[
"MIT"
] | 62
|
2018-11-30T23:40:19.000Z
|
2022-03-10T19:47:27.000Z
|
examples/detailed_use_cases/obj_5d.py
|
hase1128/dragonfly
|
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
|
[
"MIT"
] | 349
|
2018-09-10T19:04:34.000Z
|
2022-03-31T13:10:45.000Z
|
"""
Synthetic function for 5D optimisation.
-- kirthevasank
"""
from moo_5d import compute_objectives as moo_objectives
def objective(x):
""" Computes the objectives. """
return moo_objectives(x)[0] # Just returns conductivity
| 19.833333
| 57
| 0.735294
| 29
| 238
| 5.896552
| 0.758621
| 0.152047
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015075
| 0.163866
| 238
| 11
| 58
| 21.636364
| 0.844221
| 0.453782
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f984514a36e775134a561a5a53018d1a0ce25b1a
| 231
|
py
|
Python
|
limitations_inference.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
limitations_inference.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
limitations_inference.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
reveal_type(len("blub"))
def get_id(name: str):
return len(name)
reveal_type(get_id("blub"))
# limitations_inference.py:1: error: Revealed type is 'builtins.int'
# limitations_inference.py:7: error: Revealed type is 'Any'
| 19.25
| 68
| 0.727273
| 36
| 231
| 4.5
| 0.583333
| 0.123457
| 0.271605
| 0.234568
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00995
| 0.12987
| 231
| 11
| 69
| 21
| 0.79602
| 0.536797
| 0
| 0
| 0
| 0
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
f9a82dbf62d27ed3584210c15e037ac3cfec68a9
| 224
|
py
|
Python
|
tests/conftest.py
|
rishigarg94/pandas-visual-analysis
|
c9569878a44fb0f5d0acd8779ff65d51e1c1bd95
|
[
"MIT"
] | 16
|
2020-09-03T20:58:40.000Z
|
2022-03-19T01:12:31.000Z
|
tests/conftest.py
|
rishigarg94/pandas-visual-analysis
|
c9569878a44fb0f5d0acd8779ff65d51e1c1bd95
|
[
"MIT"
] | 23
|
2020-08-26T19:47:54.000Z
|
2022-01-21T20:38:15.000Z
|
tests/conftest.py
|
rishigarg94/pandas-visual-analysis
|
c9569878a44fb0f5d0acd8779ff65d51e1c1bd95
|
[
"MIT"
] | 4
|
2020-08-26T19:46:37.000Z
|
2021-09-30T06:24:19.000Z
|
import sys
import os
if os.path.exists("tests/../src/"):
sys.path.append("tests/../src/") # when calling pytest from root
if os.path.exists("../src/"):
sys.path.append("../src/") # when calling pytest from tests
| 24.888889
| 69
| 0.642857
| 34
| 224
| 4.235294
| 0.411765
| 0.055556
| 0.111111
| 0.194444
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151786
| 224
| 8
| 70
| 28
| 0.757895
| 0.267857
| 0
| 0
| 0
| 0
| 0.248447
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f9e0eeeac8ad6fbaf2635604e1f2f05079cc96ce
| 141
|
py
|
Python
|
src/bills/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
src/bills/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
src/bills/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
from django import forms
from .models import bill
class BillForm(forms.ModelForm):
class Meta:
model = bill
exclude = ()
| 20.142857
| 32
| 0.659574
| 17
| 141
| 5.470588
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.269504
| 141
| 7
| 33
| 20.142857
| 0.902913
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
ddaca74a42c0c3f1de24f4364b687dee927d5ad0
| 58
|
py
|
Python
|
code/abc100_a_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | 3
|
2019-08-16T16:55:48.000Z
|
2021-04-11T10:21:40.000Z
|
code/abc100_a_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
code/abc100_a_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
print("Yay!" if max(map(int,input().split()))<9 else ":(")
| 58
| 58
| 0.586207
| 10
| 58
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0.068966
| 58
| 1
| 58
| 58
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0.101695
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
ddb1edeecc6044d0606d64b913a134d90557cc27
| 10
|
py
|
Python
|
templates/FLASK/auth.py
|
God-status/PyPC
|
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
|
[
"MIT"
] | 1
|
2021-11-26T19:09:09.000Z
|
2021-11-26T19:09:09.000Z
|
templates/FLASK/auth.py
|
God-status/PyPC
|
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
|
[
"MIT"
] | null | null | null |
templates/FLASK/auth.py
|
God-status/PyPC
|
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
|
[
"MIT"
] | null | null | null |
# auth.py
| 5
| 9
| 0.6
| 2
| 10
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 10
| 1
| 10
| 10
| 0.75
| 0.7
| 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
|
ddd9e89660b72080702963627fc5789ed5892399
| 486
|
py
|
Python
|
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
jayadams011/data-structures-and-algorithms
|
b9a49c65ca769c82b2a34d840bd1e4dd626be025
|
[
"MIT"
] | null | null | null |
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
jayadams011/data-structures-and-algorithms
|
b9a49c65ca769c82b2a34d840bd1e4dd626be025
|
[
"MIT"
] | 4
|
2018-03-22T16:56:06.000Z
|
2018-03-28T23:30:29.000Z
|
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
jayadams011/data-structures-and-algorithms
|
b9a49c65ca769c82b2a34d840bd1e4dd626be025
|
[
"MIT"
] | null | null | null |
from .towers_of_hanoi import towers_of_hanoi as th
from .towers_of_hanoi import steps
import pytest
def test_empty_th():
"""test if input empty"""
assert th(0, '', '', '') is None
# def test_th_1():
# """ verify works with one disk """
# assert len(list(steps(3))) == 3
# def test_th_5():
# """ verify works with one disk """
# assert len(list(th(5))) == 5
# def test_th_11():
# """ verify works with one disk """
# assert len(list(th(11))) == 11
| 21.130435
| 50
| 0.600823
| 76
| 486
| 3.657895
| 0.381579
| 0.100719
| 0.140288
| 0.194245
| 0.557554
| 0.392086
| 0.392086
| 0.392086
| 0.266187
| 0
| 0
| 0.034759
| 0.230453
| 486
| 22
| 51
| 22.090909
| 0.708556
| 0.602881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| true
| 0
| 0.6
| 0
| 0.8
| 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
|
dddd2bac3bb9b4b49090ce53263dc000ac80018c
| 70
|
py
|
Python
|
pyts/plot/api.py
|
JensGM/pyTurbSim
|
89357e94607e99e5a27e069975684fe8e6a89a9d
|
[
"Apache-2.0"
] | 8
|
2017-07-24T23:01:28.000Z
|
2021-12-06T04:31:23.000Z
|
pyts/plot/api.py
|
camilledub/pyTurbSim
|
69db0d7670afe5b2b386087aa0229a7511ef070d
|
[
"Apache-2.0"
] | 9
|
2015-04-06T16:01:06.000Z
|
2020-06-16T16:51:49.000Z
|
pyts/plot/api.py
|
camilledub/pyTurbSim
|
69db0d7670afe5b2b386087aa0229a7511ef070d
|
[
"Apache-2.0"
] | 17
|
2015-04-22T15:27:28.000Z
|
2021-11-20T08:10:16.000Z
|
import axform
FigAxForm = axform.FigAxForm
summfig = axform.summfig
| 11.666667
| 28
| 0.8
| 8
| 70
| 7
| 0.5
| 0.535714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 70
| 5
| 29
| 14
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ddf071e0c53607c5b89d1da787a61a285d649e7c
| 185
|
py
|
Python
|
csv_fix.py
|
lamphanqg/yahoo_auction_crawler
|
2800527dfb24f2283cb8fe7e7ec6faa577b4acb2
|
[
"MIT"
] | 1
|
2021-11-15T01:33:13.000Z
|
2021-11-15T01:33:13.000Z
|
csv_fix.py
|
lamphanqg/yahoo_auction_crawler
|
2800527dfb24f2283cb8fe7e7ec6faa577b4acb2
|
[
"MIT"
] | null | null | null |
csv_fix.py
|
lamphanqg/yahoo_auction_crawler
|
2800527dfb24f2283cb8fe7e7ec6faa577b4acb2
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
with open("products.csv", "rb") as f:
with open("products_fixed.csv", "w", encoding='utf-8-sig') as f2:
f2.write(f.read().decode().replace("\r", ""))
| 46.25
| 69
| 0.567568
| 29
| 185
| 3.586207
| 0.689655
| 0.076923
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.156757
| 185
| 4
| 70
| 46.25
| 0.641026
| 0.113514
| 0
| 0
| 0
| 0
| 0.269939
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ddf9ac169d140abae128b95a53b90bd57ee92765
| 108
|
py
|
Python
|
codeit/algorithm/util.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
codeit/algorithm/util.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
codeit/algorithm/util.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
def test_value(result, answer):
print(f'result: {result}, answer: {answer}')
assert result == answer
| 36
| 48
| 0.675926
| 14
| 108
| 5.142857
| 0.571429
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 108
| 3
| 49
| 36
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.311927
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fb2b31a52382e54fed6d4556698b75c8d4f241b0
| 300
|
py
|
Python
|
db/mongo.py
|
gyulka/bashair
|
ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9
|
[
"MIT"
] | 6
|
2021-03-23T21:02:00.000Z
|
2022-03-06T10:10:34.000Z
|
db/mongo.py
|
gyulka/bashair
|
ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9
|
[
"MIT"
] | null | null | null |
db/mongo.py
|
gyulka/bashair
|
ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9
|
[
"MIT"
] | 2
|
2021-04-01T19:31:09.000Z
|
2022-02-11T18:54:55.000Z
|
from pymongo import MongoClient
from config import settings
def connection():
return MongoClient(f'{settings.MONGO_HOST}:{settings.MONGO_PORT}',
username=settings.MONGO_USER,
password=settings.MONGO_PASSWORD)
db = connection()[settings.MONGO_DB]
| 25
| 70
| 0.676667
| 32
| 300
| 6.1875
| 0.53125
| 0.328283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236667
| 300
| 12
| 71
| 25
| 0.864629
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.142857
| 0.285714
| 0.142857
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
34a169d2e4afab7fbbb35a96c32162f9b6f11681
| 169
|
py
|
Python
|
Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py
|
Kennethguerra3/Python_Ejercicio_2022
|
cf1297cf1e1585eba699e32c02993818c3d9ecbf
|
[
"MIT"
] | null | null | null |
Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py
|
Kennethguerra3/Python_Ejercicio_2022
|
cf1297cf1e1585eba699e32c02993818c3d9ecbf
|
[
"MIT"
] | null | null | null |
Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py
|
Kennethguerra3/Python_Ejercicio_2022
|
cf1297cf1e1585eba699e32c02993818c3d9ecbf
|
[
"MIT"
] | null | null | null |
# 2. Hacer un algoritmo en Python para determinar la media aritmética de
# una lista de 10 números positivos, se debe acabar el programa al ingresar un número negativo.
| 56.333333
| 95
| 0.792899
| 28
| 169
| 4.785714
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021583
| 0.177515
| 169
| 2
| 96
| 84.5
| 0.942446
| 0.970414
| 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
|
34e2389b823c106b8e274ce54e5892de05e26d9e
| 33
|
py
|
Python
|
tests/__init__.py
|
KonnexionsGmbH/ocr_bench
|
8f54b386c22b43a2f4e8f98dc6f7ac69edf7e0be
|
[
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2
|
2022-02-24T15:13:23.000Z
|
2022-03-28T00:45:31.000Z
|
tests/__init__.py
|
KonnexionsGmbH/dcr
|
3b58be5df66831e5389558599cf1d234da605aeb
|
[
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
tests/__init__.py
|
KonnexionsGmbH/dcr
|
3b58be5df66831e5389558599cf1d234da605aeb
|
[
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
"""Unit test package for dcr."""
| 16.5
| 32
| 0.636364
| 5
| 33
| 4.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 33
| 1
| 33
| 33
| 0.75
| 0.787879
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
550bab259a6621dec2f275162de8de31d180c0f0
| 231
|
py
|
Python
|
brutal/spawn/spawn_template/hive.py
|
Acidburn0zzz/brutal
|
cfe230d162de63184b5a345870191de94cc772fd
|
[
"Apache-2.0"
] | 154
|
2015-01-12T23:33:01.000Z
|
2022-03-30T21:37:39.000Z
|
brutal/spawn/spawn_template/hive.py
|
Acidburn0zzz/brutal
|
cfe230d162de63184b5a345870191de94cc772fd
|
[
"Apache-2.0"
] | null | null | null |
brutal/spawn/spawn_template/hive.py
|
Acidburn0zzz/brutal
|
cfe230d162de63184b5a345870191de94cc772fd
|
[
"Apache-2.0"
] | 34
|
2015-01-19T11:14:46.000Z
|
2021-08-03T01:47:50.000Z
|
#!/usr/bin/env python
import os
from brutal.core.management import exec_overlord
if __name__ == "__main__":
os.environ.setdefault("BRUTAL_CONFIG_MODULE", "{{ spawn_name }}.config")
exec_overlord("{{ spawn_name }}.config")
| 28.875
| 76
| 0.727273
| 30
| 231
| 5.133333
| 0.666667
| 0.155844
| 0.194805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 231
| 8
| 77
| 28.875
| 0.758621
| 0.08658
| 0
| 0
| 0
| 0
| 0.350711
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5520ee86ab306f4004b451e12d6bcaef5b23917d
| 100
|
py
|
Python
|
presalytics/lib/__init__.py
|
presalytics/python-client
|
5d80b78562126feeeb49af4738e2c1aed12dce3a
|
[
"MIT"
] | 4
|
2020-02-21T16:30:46.000Z
|
2021-01-12T12:22:03.000Z
|
presalytics/lib/__init__.py
|
presalytics/python-client
|
5d80b78562126feeeb49af4738e2c1aed12dce3a
|
[
"MIT"
] | 4
|
2019-12-28T19:30:08.000Z
|
2020-03-31T19:27:45.000Z
|
presalytics/lib/__init__.py
|
presalytics/python-client
|
5d80b78562126feeeb49af4738e2c1aed12dce3a
|
[
"MIT"
] | null | null | null |
"""
Contains configuration and library objects for users to build upon when create story objects
"""
| 33.333333
| 92
| 0.79
| 14
| 100
| 5.642857
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 3
| 93
| 33.333333
| 0.929412
| 0.92
| 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
|
9b3ca454b39eca0d3e5255ff8a80d2bba325abdc
| 211
|
py
|
Python
|
models/amenity.py
|
SantiagoHerreG/AirBnB_clone
|
aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6
|
[
"MIT"
] | 1
|
2019-11-09T23:12:05.000Z
|
2019-11-09T23:12:05.000Z
|
models/amenity.py
|
SantiagoHerreG/AirBnB_clone
|
aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6
|
[
"MIT"
] | null | null | null |
models/amenity.py
|
SantiagoHerreG/AirBnB_clone
|
aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6
|
[
"MIT"
] | 2
|
2019-11-13T18:37:50.000Z
|
2019-11-15T18:30:03.000Z
|
#!/usr/bin/python3
""" Module that contains the class Amenity
"""
from models.base_model import BaseModel
class Amenity(BaseModel):
""" New class Amenity that inherits from BaseModel
"""
name = ""
| 19.181818
| 54
| 0.691943
| 26
| 211
| 5.576923
| 0.692308
| 0.248276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005882
| 0.194313
| 211
| 10
| 55
| 21.1
| 0.847059
| 0.511848
| 0
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
9bbe765c0d3f9198e0b9197ba3f1473ad2e7b4d8
| 137
|
py
|
Python
|
examples/hooks/per_test_pre.py
|
rsp9u/side-runner-py
|
13ad73a0d9055b03c9de54e0bbd4234b34d86498
|
[
"MIT"
] | 5
|
2020-02-13T00:24:41.000Z
|
2022-01-10T10:11:00.000Z
|
examples/hooks/per_test_pre.py
|
rsp9u/side-runner-py
|
13ad73a0d9055b03c9de54e0bbd4234b34d86498
|
[
"MIT"
] | 58
|
2019-04-02T02:51:02.000Z
|
2021-01-14T08:42:19.000Z
|
examples/hooks/per_test_pre.py
|
rsp9u/side-runner-py
|
13ad73a0d9055b03c9de54e0bbd4234b34d86498
|
[
"MIT"
] | 7
|
2019-04-02T11:42:24.000Z
|
2020-11-10T20:17:56.000Z
|
conditions = {
'test_project_ids': ['*'],
'test_suite_ids': ['*'],
'test_names': ['login'],
}
def pre_test_run():
pass
| 13.7
| 30
| 0.540146
| 15
| 137
| 4.466667
| 0.733333
| 0.208955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.226277
| 137
| 9
| 31
| 15.222222
| 0.632075
| 0
| 0
| 0
| 0
| 0
| 0.343066
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.142857
| 0
| 0
| 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
32f4a20390eecb3a29521a7fcc36095c9205b35a
| 9,092
|
py
|
Python
|
src/tt_logic/tt_logic/clans/tests/test_constants.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 85
|
2017-11-21T12:22:02.000Z
|
2022-03-27T23:07:17.000Z
|
src/tt_logic/tt_logic/clans/tests/test_constants.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 545
|
2017-11-04T14:15:04.000Z
|
2022-03-27T14:19:27.000Z
|
src/tt_logic/tt_logic/clans/tests/test_constants.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 45
|
2017-11-11T12:36:30.000Z
|
2022-02-25T06:10:44.000Z
|
import unittest
from .. import constants as c
class ConstantsTest(unittest.TestCase):
def test_constants_values(self):
self.assertEqual(c.EXPECTED_EVENT_LENGTH, 7)
self.assertEqual(c.MAX_EVENT_LENGTH, 30)
self.assertEqual(c.EMISSARY_RECEIVE_PERIOD_FOR_NEW_CLAN, 21)
self.assertEqual(c.EXPECTED_EMISSARY_RECEIVE_PERIOD_FOR_TOP_CLAN, 7)
self.assertEqual(c.SIMULTANEOUS_EMISSARY_EVENTS, 2)
# self.assertEqual(c.SIMULTANEOUS_EMISSARY_EVENTS_DELTA, 1)
# self.assertGreaterOrEqueal(c.SIMULTANEOUS_EMISSARY_EVENTS - c.SIMULTANEOUS_EMISSARY_EVENTS_DELTA, 1)
self.assertEqual(c.INITIAL_POINTS_IN_DAY, 1000)
self.assertEqual(c.PRICE_START_EVENT, 1000)
self.assertEqual(c.PRICE_CREATE_EMISSARY, 18000)
self.assertEqual(c.PRICE_MOVE_EMISSARY, 1000)
self.assertEqual(c.PRICE_DISMISS_EMISSARY, 1000)
self.assertEqual(c.PRICE_START_EVENT_DELTA, 0.15)
self.assertEqual(c.TOP_CARD_POINTS_BONUS, 100)
self.assertEqual(c.INITIAL_FIGHTERS_MAXIMUM, 5)
self.assertEqual(c.INITIAL_EMISSARY_MAXIMUM, 2)
self.assertEqual(c.INITIAL_FREE_QUESTS_MAXIMUM, 2)
self.assertEqual(c.INITIAL_POINTS_GAIN, 857)
self.assertEqual(c.INITIAL_POINTS, 19000)
self.assertEqual(c.INITIAL_FREE_QUESTS, 2)
self.assertEqual(c.MAXIMUM_POINTS_GAIN, 2571)
self.assertEqual(c.MAXIMUM_EMISSARIES, 10)
self.assertEqual(c.FIGHTERS_TO_EMISSARY, 5)
self.assertEqual(c.MAXIMUM_FIGHTERS, 50)
self.assertEqual(c.MAXIMUM_FREE_QUESTS, 10)
self.assertEqual(c.MAXIMUM_POINTS, 36000)
self.assertEqual(c.EMISSARY_MAXIMUM_LEVEL_STEPS, 8)
self.assertEqual(c.POINTS_GAIN_LEVEL_STEPS, 20)
self.assertEqual(c.FIGHTERS_MAXIMUM_LEVEL_STEPS, 45)
self.assertEqual(c.EXPECTED_LEVELING_TIME, 5 * 365)
self.assertEqual(c.POINTS_GAIN_INCREMENT_ON_LEVEL_UP, 85)
self.assertEqual(c.EXPERIENCE_IN_DAY_ON_START, 4000)
self.assertEqual(c.EXPERIENCE_IN_DAY_ON_END, 20000)
self.assertEqual(c.MINIMUM_TIME_TO_EMISSARY_LEVEL, 7)
self.assertEqual(c.MINIMUM_TIME_TO_FIGHTERS_LEVEL, 3)
self.assertEqual(c.EMISSARY_MAXIMUM_LEVELS_TIME,
[7.0,
11.64532009960385,
19.37335431746249,
32.22984463284185,
53.61812250142036,
89.200028524116,
148.39469786530356,
246.87196538935143])
self.assertEqual(c.POINTS_GAIN_LEVELS_TIME,
[7.0,
7.952430422184989,
9.034449945670474,
10.263690656522485,
11.66018368868932,
13.246685642028304,
15.04904941325528,
17.09664548270521,
19.422840521996637,
22.065541121767634,
25.067811499816976,
28.478575255534746,
32.3534126060856,
36.75546609573406,
41.7564695373292,
47.437916953099645,
53.892390563273516,
61.22506946280736,
69.55544357091692,
79.01926078313299])
self.assertEqual(c.FREE_QUESTS_MAXIMUM_LEVELS_TIME,
[7.0,
11.64532009960385,
19.37335431746249,
32.22984463284185,
53.61812250142036,
89.200028524116,
148.39469786530356,
246.87196538935143])
self.assertEqual(c.FIGHTERS_MAXIMUM_LEVELS_TIME,
[3.0,
3.2840292365290225,
3.5949493421257985,
3.935306247793965,
4.307886924150236,
4.715742202190153,
5.1622117546420725,
5.650951442466117,
6.185963250421527,
6.771628056826133,
7.412741505839078,
8.114553276002567,
8.882810066588263,
9.723802653736723,
10.644417401703297,
11.652192651003974,
12.755380445188557,
13.963014101683264,
15.284982179998288,
16.73210945297983,
18.316245544129796,
20.050361956788898,
21.948658289694666,
24.026678508647457,
26.301438226360595,
28.791564032710077,
31.517446016272444,
34.50140472605462,
37.76787394056133,
41.343600740781994,
45.25786452537034,
49.54271676139529,
54.23324343383287,
59.36785234283425,
64.98858760126856,
71.1414739077645,
77.87689341428842,
85.24999827419254,
93.32116224883234,
102.15647507067797,
111.82828361095156,
122.41578428307474,
134.00567153274915,
146.69284772475106,
160.5812002392608])
self.assertEqual(c.EXPERIENCE_PER_EVENT, 1000)
self.assertEqual(c.EMISSARY_MEXIMUM_LEVELS_EXPERIENCE,
[28600,
50500,
91900,
174800,
351300,
752000,
1714800,
4136000])
self.assertEqual(c.POINTS_GAIN_LEVELS_EXPERIENCE,
[28600,
34100,
40800,
48900,
58900,
71300,
86600,
105600,
129300,
158900,
196100,
242800,
301700,
376200,
470500,
590200,
742300,
936000,
1182900,
1498300])
self.assertEqual(c.FREE_QUESTS_MAXIMUM_LEVELS_EXPERIENCE,
[28600,
50500,
91900,
174800,
351300,
752000,
1714800,
4136000])
self.assertEqual(c.FIGHTERS_MAXIMUM_LEVELS_EXPERIENCE,
[12000,
13300,
14600,
16100,
17800,
19700,
21800,
24100,
26700,
29700,
32900,
36600,
40700,
45400,
50600,
56500,
63300,
70900,
79600,
89400,
100700,
113600,
128400,
145400,
165000,
187600,
213700,
243900,
278900,
319700,
367100,
422500,
487100,
562800,
651500,
755700,
878100,
1022200,
1192000,
1392400,
1629100,
1909000,
2240400,
2633000,
3098600])
| 37.415638
| 110
| 0.41388
| 598
| 9,092
| 6.083612
| 0.449833
| 0.177295
| 0.189115
| 0.044255
| 0.374382
| 0.290269
| 0.198186
| 0.124244
| 0.124244
| 0.124244
| 0
| 0.429042
| 0.532666
| 9,092
| 242
| 111
| 37.570248
| 0.427159
| 0.017378
| 0
| 0.163462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201923
| 1
| 0.004808
| false
| 0
| 0.009615
| 0
| 0.019231
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
32f6ec9d50d64b5bec408bcf28d000824f4401e4
| 230
|
py
|
Python
|
modules/stripe/api_resources/issuer_fraud_record.py
|
SOSharkie/CMPS183_Final
|
7b020f841a94cfaef3f1b7ff1ea1faefff3c9f3a
|
[
"MIT"
] | null | null | null |
modules/stripe/api_resources/issuer_fraud_record.py
|
SOSharkie/CMPS183_Final
|
7b020f841a94cfaef3f1b7ff1ea1faefff3c9f3a
|
[
"MIT"
] | 1
|
2021-03-31T18:36:41.000Z
|
2021-03-31T18:36:41.000Z
|
lib/stripe/api_resources/issuer_fraud_record.py
|
linuxpi/hypoconn_gcloud
|
ebf06c44dc754ac446a0915a0db028f18e3f35a7
|
[
"Apache-2.0"
] | null | null | null |
from stripe.api_resources.abstract import ListableAPIResource
class IssuerFraudRecord(ListableAPIResource):
OBJECT_NAME = 'issuer_fraud_record'
@classmethod
def class_name(cls):
return 'issuer_fraud_record'
| 23
| 61
| 0.778261
| 24
| 230
| 7.166667
| 0.75
| 0.127907
| 0.197674
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16087
| 230
| 9
| 62
| 25.555556
| 0.891192
| 0
| 0
| 0
| 0
| 0
| 0.165217
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
32ff819f652f6bb09ca10b1e60b755fb9bf5178c
| 3,033
|
py
|
Python
|
env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py
|
5gconnectedbike/Navio2
|
8c3f2b5d8bbbcea1fc08739945183c12b206712c
|
[
"BSD-3-Clause"
] | 210
|
2016-04-09T14:26:00.000Z
|
2022-03-25T18:36:19.000Z
|
env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py
|
5gconnectedbike/Navio2
|
8c3f2b5d8bbbcea1fc08739945183c12b206712c
|
[
"BSD-3-Clause"
] | 72
|
2016-09-04T09:30:19.000Z
|
2022-03-27T17:06:53.000Z
|
env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py
|
5gconnectedbike/Navio2
|
8c3f2b5d8bbbcea1fc08739945183c12b206712c
|
[
"BSD-3-Clause"
] | 64
|
2016-04-09T14:26:49.000Z
|
2022-03-21T11:19:47.000Z
|
'''OpenGL extension OES.packed_depth_stencil
This module customises the behaviour of the
OpenGL.raw.GLES2.OES.packed_depth_stencil to provide a more
Python-friendly API
Overview (from the spec)
Many OpenGL implementations have chosen to interleave the depth and stencil
buffers into one buffer, often with 24 bits of depth precision and 8 bits of
stencil data. 32 bits is more than is needed for the depth buffer much of
the time; a 24-bit depth buffer, on the other hand, requires that reads and
writes of depth data be unaligned with respect to power-of-two boundaries.
On the other hand, 8 bits of stencil data is more than sufficient for most
applications, so it is only natural to pack the two buffers into a single
buffer with both depth and stencil data. OpenGL never provides direct
access to the buffers, so the OpenGL implementation can provide an interface
to applications where it appears the one merged buffer is composed of two
logical buffers.
One disadvantage of this scheme is that OpenGL lacks any means by which this
packed data can be handled efficiently. For example, when an application
reads from the 24-bit depth buffer, using the type GL_UNSIGNED_SHORT will
lose 8 bits of data, while GL_UNSIGNED_INT has 8 too many. Both require
expensive format conversion operations. A 24-bit format would be no more
suitable, because it would also suffer from the unaligned memory accesses
that made the standalone 24-bit depth buffer an unattractive proposition in
the first place.
If OES_depth_texture is supported, a new data format, GL_DEPTH_STENCIL_OES,
as well as a packed data type, UNSIGNED_INT_24_8_OES, together can be used
with glTex[Sub]Image2D. This provides an efficient way to supply data for a
24-bit depth texture. When a texture with DEPTH_STENCIL_OES data is bound
for texturing, only the depth component is accessible through the texture
fetcher.
This extension also provides a new sized internal format,
DEPTH24_STENCIL8_OES, which can be used for renderbuffer storage. When a
renderbuffer or texture image with a DEPTH_STENCIL_OES base internal format
is attached to both the depth and stencil attachment points of a framebuffer
object, then it becomes both the depth and stencil buffers of the
framebuffer. This fits nicely with hardware that interleaves both depth and
stencil data into a single buffer.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/OES/packed_depth_stencil.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GLES2 import _types, _glgets
from OpenGL.raw.GLES2.OES.packed_depth_stencil import *
from OpenGL.raw.GLES2.OES.packed_depth_stencil import _EXTENSION_NAME
def glInitPackedDepthStencilOES():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
### END AUTOGENERATED SECTION
| 49.721311
| 77
| 0.802176
| 486
| 3,033
| 4.934156
| 0.407407
| 0.040033
| 0.029191
| 0.043786
| 0.118015
| 0.052127
| 0.052127
| 0.037531
| 0.037531
| 0
| 0
| 0.011458
| 0.165513
| 3,033
| 61
| 78
| 49.721311
| 0.935994
| 0.945269
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| true
| 0
| 0.777778
| 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
|
fd320b30b3ba0e663c8f606e9610852b24185ccf
| 526
|
py
|
Python
|
Desafios/Mundo 01/009.py
|
fabianylopes/Curso-Em-Video-Python
|
ab510f1b7a1031fd83715866dcfa7850955dd8b8
|
[
"MIT"
] | null | null | null |
Desafios/Mundo 01/009.py
|
fabianylopes/Curso-Em-Video-Python
|
ab510f1b7a1031fd83715866dcfa7850955dd8b8
|
[
"MIT"
] | null | null | null |
Desafios/Mundo 01/009.py
|
fabianylopes/Curso-Em-Video-Python
|
ab510f1b7a1031fd83715866dcfa7850955dd8b8
|
[
"MIT"
] | null | null | null |
#009 - TABUADA
#Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabiada.
n = int(input('Digite um número para ver a sua tabuada: '))
print('-' * 12)
print(f'TABUADA DO {n}')
print('-' * 12)
print(f'{n} x 1 = {n * 1}')
print(f'{n} x 2 = {n * 2}')
print(f'{n} x 3 = {n * 3}')
print(f'{n} x 4 = {n * 4}')
print(f'{n} x 5 = {n * 5}')
print(f'{n} x 6 = {n * 6}')
print(f'{n} x 7 = {n * 7}')
print(f'{n} x 8 = {n * 8}')
print(f'{n} x 9 = {n * 9}')
print(f'{n} x 10 = {n * 10}')
print('-' * 12)
| 27.684211
| 85
| 0.509506
| 110
| 526
| 2.436364
| 0.345455
| 0.246269
| 0.261194
| 0.298507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076733
| 0.231939
| 526
| 18
| 86
| 29.222222
| 0.586634
| 0.184411
| 0
| 0.2
| 0
| 0
| 0.559719
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.933333
| 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
| 0
| 1
|
0
| 4
|
b5da3b2b78f5d8b974820fd2e1dc02e3cf5eb4d5
| 47
|
py
|
Python
|
wikimedia_thumbor/engine/djvu/__init__.py
|
wikimedia/operations-software-thumbor-plugins
|
b30f1594e05118a1d2ed77a886d270866206d08a
|
[
"MIT"
] | 2
|
2017-06-14T15:14:50.000Z
|
2018-02-19T12:38:00.000Z
|
wikimedia_thumbor/engine/djvu/__init__.py
|
wikimedia/operations-debs-python-thumbor-wikimedia
|
555f99fd500a95e00778fa740ac08e41dc6ff896
|
[
"MIT"
] | null | null | null |
wikimedia_thumbor/engine/djvu/__init__.py
|
wikimedia/operations-debs-python-thumbor-wikimedia
|
555f99fd500a95e00778fa740ac08e41dc6ff896
|
[
"MIT"
] | null | null | null |
from .djvu import Engine
__all__ = ['Engine']
| 11.75
| 24
| 0.702128
| 6
| 47
| 4.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170213
| 47
| 3
| 25
| 15.666667
| 0.74359
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b5fc452f208f6db885f451cb14fb70e14756c27b
| 191
|
py
|
Python
|
fancy_formsets/helper.py
|
cjsapaglinawan/django-crispy-forms-fancy-formsets
|
f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7
|
[
"MIT"
] | 4
|
2015-01-20T17:55:04.000Z
|
2017-08-06T12:37:35.000Z
|
fancy_formsets/helper.py
|
cjsapaglinawan/django-crispy-forms-fancy-formsets
|
f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7
|
[
"MIT"
] | 2
|
2015-01-20T17:54:22.000Z
|
2015-03-30T06:09:27.000Z
|
fancy_formsets/helper.py
|
cjsapaglinawan/django-crispy-forms-fancy-formsets
|
f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7
|
[
"MIT"
] | 5
|
2015-01-12T12:51:45.000Z
|
2020-12-11T13:56:16.000Z
|
from crispy_forms.helper import FormHelper
class InlineFormHelper(FormHelper):
pass
class InlineFormsetHelper(FormHelper):
template_name = 'fancy_formsets_bootstrap/formset.html'
| 19.1
| 59
| 0.811518
| 20
| 191
| 7.55
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125654
| 191
| 9
| 60
| 21.222222
| 0.904192
| 0
| 0
| 0
| 0
| 0
| 0.193717
| 0.193717
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.2
| 0.2
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
1f9917d43baaf6b5610e618de1fcabf5722c0252
| 341
|
py
|
Python
|
authentication/utils_test.py
|
mitodl/mit-xpro
|
981d6c87d963837f0b9ccdd996067fe81394dba4
|
[
"BSD-3-Clause"
] | 10
|
2019-02-20T18:41:32.000Z
|
2021-07-26T10:39:58.000Z
|
authentication/utils_test.py
|
mitodl/mit-xpro
|
981d6c87d963837f0b9ccdd996067fe81394dba4
|
[
"BSD-3-Clause"
] | 2,226
|
2019-02-20T20:03:57.000Z
|
2022-03-31T11:18:56.000Z
|
authentication/utils_test.py
|
mitodl/mit-xpro
|
981d6c87d963837f0b9ccdd996067fe81394dba4
|
[
"BSD-3-Clause"
] | 4
|
2020-08-26T19:26:02.000Z
|
2021-03-09T17:46:47.000Z
|
"""Utils tests"""
from authentication.strategy import DjangoRestFrameworkStrategy
from authentication.utils import load_drf_strategy
def test_load_drf_strategy(mocker):
"""Test that load_drf_strategy returns a DjangoRestFrameworkStrategy instance"""
assert isinstance(load_drf_strategy(mocker.Mock()), DjangoRestFrameworkStrategy)
| 37.888889
| 84
| 0.832845
| 37
| 341
| 7.432432
| 0.513514
| 0.101818
| 0.218182
| 0.152727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093842
| 341
| 8
| 85
| 42.625
| 0.889968
| 0.252199
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0
| 0.5
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1f9bf68bfad9b6633ae0a496197d980e64a83d86
| 58
|
py
|
Python
|
examples/compilex-Demo1/temp/m32kmyl.py
|
IPPMCMP07/compiler
|
1041c56dae9f7a13ba0657085532b4d074144e39
|
[
"MIT"
] | null | null | null |
examples/compilex-Demo1/temp/m32kmyl.py
|
IPPMCMP07/compiler
|
1041c56dae9f7a13ba0657085532b4d074144e39
|
[
"MIT"
] | null | null | null |
examples/compilex-Demo1/temp/m32kmyl.py
|
IPPMCMP07/compiler
|
1041c56dae9f7a13ba0657085532b4d074144e39
|
[
"MIT"
] | null | null | null |
a=5
b=3
print(a+b)
c=input()
#d=input()
d=4
e=c*d
print(e)
| 7.25
| 10
| 0.586207
| 18
| 58
| 1.888889
| 0.555556
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.12069
| 58
| 8
| 11
| 7.25
| 0.607843
| 0.155172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.285714
| 1
| 0
| 1
| 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
| 0
|
0
| 4
|
1fbd33a1f7801bb1c9fc945e5aefac1164b2e087
| 542
|
py
|
Python
|
PI/__init__.py
|
HotShot0901/PI
|
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null |
PI/__init__.py
|
HotShot0901/PI
|
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null |
PI/__init__.py
|
HotShot0901/PI
|
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null |
from .Core import *
from .Core.App import *
from .Core.Input import *
from .Core.Window import *
from .Events import *
from .Layers import *
from .ImGui import *
from .Platform import *
from .Renderer import *
from .Logging import *
from .ButtonCodes import *
import pyrr
import imgui
from numpy import degrees, radians
if PI_LOGGING:
Log.Init()
# Currently We only support Windows with OpenGL
# Cause this is all what The Cherno taught me.
if (CURRENT_PLATFORM == "Windows"):
Window.SetOS(OS.Windows)
Random.Init()
| 16.9375
| 47
| 0.717712
| 76
| 542
| 5.092105
| 0.539474
| 0.258398
| 0.108527
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195572
| 542
| 31
| 48
| 17.483871
| 0.887615
| 0.166052
| 0
| 0
| 0
| 0
| 0.01559
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.736842
| 0
| 0.736842
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1fcf87fb05017608d1e7a1e6ab6d40d6aa51b65b
| 97
|
py
|
Python
|
condominium/apps.py
|
kozlyuk/appart
|
4a02cd31035949eaf5966f5b1975e1c6430b4d40
|
[
"MIT"
] | null | null | null |
condominium/apps.py
|
kozlyuk/appart
|
4a02cd31035949eaf5966f5b1975e1c6430b4d40
|
[
"MIT"
] | 4
|
2021-03-30T13:42:02.000Z
|
2021-09-22T19:19:17.000Z
|
condominium/apps.py
|
kozlyuk/appart
|
4a02cd31035949eaf5966f5b1975e1c6430b4d40
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class CondominiumConfig(AppConfig):
name = 'condominium'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1ff1ca692848918d1c12e04cd79f4c5c510d5d44
| 93
|
py
|
Python
|
lang/Python/string-interpolation--included--1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/string-interpolation--included--1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/string-interpolation--included--1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
original = 'Mary had a %s lamb.'
extra = 'little'
original % extra
'Mary had a little lamb.'
| 18.6
| 32
| 0.677419
| 15
| 93
| 4.2
| 0.533333
| 0.222222
| 0.253968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193548
| 93
| 4
| 33
| 23.25
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
|
1ff1fc565ce8d5406748c336c4555657437180a2
| 127
|
py
|
Python
|
ServerAPI/image_classification_class.py
|
catalina-bejan/bachelor-graduation-thesis
|
e3b1bc67c153199a6188fcf1358dac0279b5b9a7
|
[
"MIT"
] | null | null | null |
ServerAPI/image_classification_class.py
|
catalina-bejan/bachelor-graduation-thesis
|
e3b1bc67c153199a6188fcf1358dac0279b5b9a7
|
[
"MIT"
] | null | null | null |
ServerAPI/image_classification_class.py
|
catalina-bejan/bachelor-graduation-thesis
|
e3b1bc67c153199a6188fcf1358dac0279b5b9a7
|
[
"MIT"
] | null | null | null |
class ImageClassification:
def __init__(self, label, binary_score):
self.label = label
self.binary_score = binary_score
| 31.75
| 42
| 0.771654
| 16
| 127
| 5.6875
| 0.5
| 0.362637
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149606
| 127
| 4
| 43
| 31.75
| 0.842593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
|
950d8164a5cd7b49fdb0d01fa6008721680e6686
| 909
|
py
|
Python
|
pymotifcounter/validators.py
|
aanastasiou/pymotifcounter
|
ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf
|
[
"Apache-2.0"
] | null | null | null |
pymotifcounter/validators.py
|
aanastasiou/pymotifcounter
|
ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf
|
[
"Apache-2.0"
] | null | null | null |
pymotifcounter/validators.py
|
aanastasiou/pymotifcounter
|
ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf
|
[
"Apache-2.0"
] | null | null | null |
"""
Stock lambda functions for performing standard pieces of parameter validation
:author: Athanasios Anastasiou
:date: Nov 2021
"""
import os
def path_exists():
return lambda x: "OK" if os.path.exists(x) else f"{x} does not exist"
def validates_always():
return lambda x: True
def is_le(a):
return lambda x: "OK" if x <= a else f"{x} is not less or equal than {a}"
def is_l(a):
return lambda x: "OK" if x < a else f"{x} is not less than {a}"
def is_g(a):
return lambda x: "OK" if x > a else f"{x} is not greater than {a}"
def is_ge(a):
return lambda x: "OK" if x >= a else f"{x} is not greater equal than {a}"
def is_eq(a):
return lambda x: "OK" if x == a else f"{x} is not equal to {a}"
def within_range(a):
return lambda x: "OK" if x in a else f"{x} not one of {a}"
def of_type(a):
return lambda x: "OK" if type(x) is a else f"type of {x} is not {a}"
| 20.659091
| 77
| 0.629263
| 181
| 909
| 3.110497
| 0.281768
| 0.191829
| 0.207815
| 0.213144
| 0.463588
| 0.380107
| 0.348135
| 0.314387
| 0.314387
| 0.314387
| 0
| 0.005764
| 0.236524
| 909
| 44
| 78
| 20.659091
| 0.805476
| 0.137514
| 0
| 0
| 0
| 0
| 0.275418
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.473684
| false
| 0
| 0.052632
| 0.473684
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
20f8a1a2dbb5e9b6de2635be17052641dd3f78ce
| 209
|
py
|
Python
|
messaging/utils.py
|
sunhoww/messaging
|
2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d
|
[
"MIT"
] | 1
|
2018-09-12T09:09:36.000Z
|
2018-09-12T09:09:36.000Z
|
messaging/utils.py
|
sunhoww/messaging
|
2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d
|
[
"MIT"
] | 1
|
2021-06-01T22:30:54.000Z
|
2021-06-01T22:30:54.000Z
|
messaging/utils.py
|
sunhoww/messaging
|
2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d
|
[
"MIT"
] | 1
|
2018-09-12T09:09:43.000Z
|
2018-09-12T09:09:43.000Z
|
# -*- coding: utf-8 -*-
from toolz import keyfilter
def pick(whitelist, d):
return keyfilter(lambda k: k in whitelist, d)
def omit(blacklist, d):
return keyfilter(lambda k: k not in blacklist, d)
| 17.416667
| 53
| 0.674641
| 32
| 209
| 4.40625
| 0.5625
| 0.141844
| 0.22695
| 0.312057
| 0.340426
| 0.340426
| 0
| 0
| 0
| 0
| 0
| 0.006024
| 0.205742
| 209
| 11
| 54
| 19
| 0.843373
| 0.100478
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
1f0d50482cbd2607022d90152721af49e7c6e983
| 102
|
py
|
Python
|
arkav_is_api/seminar/apps.py
|
arkavidia5/arkav-is
|
6c6e8d091ead5bfff664d86f7903c62209800031
|
[
"MIT"
] | 3
|
2018-10-01T16:30:15.000Z
|
2020-01-06T09:03:57.000Z
|
arkav_is_api/seminar/apps.py
|
arkavidia5/arkav-is
|
6c6e8d091ead5bfff664d86f7903c62209800031
|
[
"MIT"
] | 4
|
2018-11-03T10:56:52.000Z
|
2020-04-26T06:54:16.000Z
|
arkav_is_api/seminar/apps.py
|
arkavidia5/arkav-is
|
6c6e8d091ead5bfff664d86f7903c62209800031
|
[
"MIT"
] | 2
|
2018-09-26T16:28:01.000Z
|
2019-09-04T06:23:14.000Z
|
from django.apps import AppConfig
class SeminarConfig(AppConfig):
name = 'arkav_is_api.seminar'
| 17
| 33
| 0.77451
| 13
| 102
| 5.923077
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 102
| 5
| 34
| 20.4
| 0.885057
| 0
| 0
| 0
| 0
| 0
| 0.196078
| 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
|
1f15f0fece664a9022ef611519d41a1fbc89bda4
| 85
|
py
|
Python
|
hello_eric.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
hello_eric.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
hello_eric.py
|
godontop/python-work
|
ea22e0df8b0b17605f5a434e556a388d1f75aa47
|
[
"MIT"
] | null | null | null |
name = "Eric"
print("Hello " + name + ", would you like to learn some Python today?")
| 42.5
| 71
| 0.658824
| 13
| 85
| 4.307692
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188235
| 85
| 2
| 71
| 42.5
| 0.811594
| 0
| 0
| 0
| 0
| 0
| 0.627907
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
1f75cea8375b355222a03c9712e08e22944c2fb8
| 547
|
py
|
Python
|
0x04-python-more_data_structures/102-main.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | 1
|
2022-02-07T12:13:18.000Z
|
2022-02-07T12:13:18.000Z
|
0x04-python-more_data_structures/102-main.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | null | null | null |
0x04-python-more_data_structures/102-main.py
|
darkares23/holbertonschool-higher_level_programming
|
931b1b701d8a1d990b7cd931486496c0b5502e21
|
[
"MIT"
] | 1
|
2021-12-06T18:15:54.000Z
|
2021-12-06T18:15:54.000Z
|
#!/usr/bin/python3
complex_delete = __import__('102-complex_delete').complex_delete
print_sorted_dictionary = \
__import__('6-print_sorted_dictionary').print_sorted_dictionary
a_dictionary = {'lang': "C", 'track': "Low", 'pref': "C", 'ids': [1, 2, 3]}
new_dict = complex_delete(a_dictionary, 'C')
print_sorted_dictionary(a_dictionary)
print("--")
print_sorted_dictionary(new_dict)
print("--")
print("--")
new_dict = complex_delete(a_dictionary, 'c_is_fun')
print_sorted_dictionary(a_dictionary)
print("--")
print_sorted_dictionary(new_dict)
| 30.388889
| 75
| 0.755027
| 74
| 547
| 5.067568
| 0.337838
| 0.205333
| 0.392
| 0.176
| 0.602667
| 0.517333
| 0.517333
| 0.346667
| 0.346667
| 0.346667
| 0
| 0.015842
| 0.076782
| 547
| 17
| 76
| 32.176471
| 0.726733
| 0.031079
| 0
| 0.571429
| 0
| 0
| 0.153119
| 0.047259
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.714286
| 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
| 0
| 1
|
0
| 4
|
2f3cb9a0172077b256d4ac1ef2327391ec74f223
| 191
|
py
|
Python
|
w3resource/Functions/Functions06.py
|
DanielPascualSenties/pythonw3
|
f0355d1b640dec19e0b087797538204332111bb5
|
[
"MIT"
] | null | null | null |
w3resource/Functions/Functions06.py
|
DanielPascualSenties/pythonw3
|
f0355d1b640dec19e0b087797538204332111bb5
|
[
"MIT"
] | null | null | null |
w3resource/Functions/Functions06.py
|
DanielPascualSenties/pythonw3
|
f0355d1b640dec19e0b087797538204332111bb5
|
[
"MIT"
] | null | null | null |
def in_range(minim, maxim, num):
if minim > maxim:
aux = minim
minim = maxim
maxim = aux
return num in range(minim, maxim)
x = in_range(10, 14, 11)
print(x)
| 17.363636
| 37
| 0.570681
| 29
| 191
| 3.689655
| 0.482759
| 0.373832
| 0.224299
| 0.317757
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046512
| 0.324607
| 191
| 10
| 38
| 19.1
| 0.782946
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0
| 0
| 0.25
| 0.125
| 1
| 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
| 0
| 0
|
0
| 4
|
2f63b1d081dd6a17a73e6f2551079e28e482ddeb
| 1,548
|
py
|
Python
|
Python/Turtle/India_Flag.py
|
Aditya8821/Python
|
58c7ea8daf381256d8a45736832fb70f735757f7
|
[
"MIT"
] | 2
|
2021-05-12T11:20:39.000Z
|
2021-06-17T04:35:16.000Z
|
Python/Turtle/India_Flag.py
|
Aditya8821/Python
|
58c7ea8daf381256d8a45736832fb70f735757f7
|
[
"MIT"
] | null | null | null |
Python/Turtle/India_Flag.py
|
Aditya8821/Python
|
58c7ea8daf381256d8a45736832fb70f735757f7
|
[
"MIT"
] | null | null | null |
import turtle
# Getting a Screen
ws = turtle.Screen()
# Defing a turtle Instance
flagTurtle = turtle.Turtle()
# initially penup()
flagTurtle.penup()
# Initially setting position
flagTurtle.goto(-180, 60)
# For First Rectangle and filling
# Orange color to Rectangle
flagTurtle.pendown()
flagTurtle.begin_fill()
flagTurtle.fillcolor("orange")
flagTurtle.left(90)
flagTurtle.forward(90)
flagTurtle.right(90)
flagTurtle.forward(400)
flagTurtle.right(90)
flagTurtle.forward(90)
flagTurtle.right(90)
flagTurtle.forward(400)
flagTurtle.end_fill()
# For Second Rectangle
flagTurtle.left(90)
flagTurtle.forward(90)
flagTurtle.left(90)
flagTurtle.forward(400)
flagTurtle.left(90)
flagTurtle.forward(90)
flagTurtle.left(90)
flagTurtle.forward(400)
flagTurtle.left(90)
flagTurtle.forward(90)
# For Third Rectangle and filling
# Green color to Rectangle
flagTurtle.begin_fill()
flagTurtle.fillcolor("green")
flagTurtle.forward(90)
flagTurtle.left(90)
flagTurtle.forward(400)
flagTurtle.left(90)
flagTurtle.forward(90)
flagTurtle.left(90)
flagTurtle.forward(400)
flagTurtle.end_fill()
# For making Ashoka Chakra
# At middle of the flag.
# And coloring it Blue
flagTurtle.penup()
flagTurtle.goto(23, 32)
flagTurtle.pendown()
flagTurtle.begin_fill()
flagTurtle.fillcolor("blue")
flagTurtle.circle(20)
flagTurtle.end_fill()
# It helps to hold the screen
turtle.done()
| 20.103896
| 36
| 0.69509
| 183
| 1,548
| 5.846995
| 0.300546
| 0.201869
| 0.213084
| 0.218692
| 0.594393
| 0.554206
| 0.554206
| 0.438318
| 0.419626
| 0.419626
| 0
| 0.054251
| 0.202196
| 1,548
| 76
| 37
| 20.368421
| 0.812146
| 0.216408
| 0
| 0.777778
| 0
| 0
| 0.013381
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022222
| 0
| 0.022222
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2f72921fa69da4613c1a4af16229ae181a6330bd
| 2,625
|
py
|
Python
|
hicdata/migrations/0029_auto_20200306_1126.py
|
hisham2k9/IMS-and-CAPA
|
9f70988a6411c72ab4f0cbc818b84db58a28076f
|
[
"MIT"
] | null | null | null |
hicdata/migrations/0029_auto_20200306_1126.py
|
hisham2k9/IMS-and-CAPA
|
9f70988a6411c72ab4f0cbc818b84db58a28076f
|
[
"MIT"
] | 15
|
2021-03-19T03:43:56.000Z
|
2022-03-12T00:30:55.000Z
|
hicdata/migrations/0029_auto_20200306_1126.py
|
hisham2k9/IMS-and-CAPA
|
9f70988a6411c72ab4f0cbc818b84db58a28076f
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.0.3 on 2020-03-06 05:56
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hicdata', '0028_auto_20200306_1020'),
]
operations = [
migrations.AddField(
model_name='antibiotic',
name='antibiotic_name',
field=models.CharField(blank=True, max_length=60, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='antibiotic_policy',
field=models.CharField(blank=True, max_length=30, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='central_line',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='changes_made',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='cultures_desc',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='cultures_taken',
field=models.CharField(blank=True, max_length=30, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='dateofadmission',
field=models.DateField(default=datetime.date.today),
),
migrations.AddField(
model_name='antibiotic',
name='deescalation_antibiotic',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='emperical_prescription',
field=models.CharField(blank=True, max_length=20, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='escalation_antibiotic',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='pt_diagnosis',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='pt_type',
field=models.CharField(blank=True, max_length=20, null=True),
),
migrations.AddField(
model_name='antibiotic',
name='remarks',
field=models.TextField(blank=True, null=True),
),
]
| 32.8125
| 74
| 0.572571
| 251
| 2,625
| 5.844622
| 0.25498
| 0.143149
| 0.171779
| 0.239264
| 0.773688
| 0.773688
| 0.74574
| 0.62713
| 0.593729
| 0.557601
| 0
| 0.02933
| 0.311619
| 2,625
| 79
| 75
| 33.227848
| 0.782512
| 0.017143
| 0
| 0.671233
| 1
| 0
| 0.135764
| 0.034523
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027397
| 0
| 0.068493
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2f7f03eb01216a62b94ef0fb142d4c90355f4bbe
| 114
|
py
|
Python
|
cythondemo/math/math.py
|
HansBug/cython-demo
|
7efee8bd95e8021378b8c98e1f3381d04a976fda
|
[
"Apache-2.0"
] | null | null | null |
cythondemo/math/math.py
|
HansBug/cython-demo
|
7efee8bd95e8021378b8c98e1f3381d04a976fda
|
[
"Apache-2.0"
] | null | null | null |
cythondemo/math/math.py
|
HansBug/cython-demo
|
7efee8bd95e8021378b8c98e1f3381d04a976fda
|
[
"Apache-2.0"
] | null | null | null |
import math
def heron(a, b, c):
p = (a + b + c) / 2.0
return math.sqrt(p * (p - a) * (p - b) * (p - c))
| 16.285714
| 53
| 0.421053
| 23
| 114
| 2.086957
| 0.521739
| 0.083333
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026667
| 0.342105
| 114
| 6
| 54
| 19
| 0.613333
| 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
|
2f863cc976edb9b978586522d7a73ddc253b3284
| 174
|
py
|
Python
|
Docker/python/packages/utils/load_pkl_gz.py
|
n-jun-k2/GPU-train
|
ee6b93147727b5c6ed1c8a207d86f94b73105f71
|
[
"RSA-MD"
] | null | null | null |
Docker/python/packages/utils/load_pkl_gz.py
|
n-jun-k2/GPU-train
|
ee6b93147727b5c6ed1c8a207d86f94b73105f71
|
[
"RSA-MD"
] | 5
|
2020-10-20T09:37:18.000Z
|
2021-06-20T08:47:47.000Z
|
Docker/python/packages/utils/load_pkl_gz.py
|
n-jun-k2/GPU-train
|
ee6b93147727b5c6ed1c8a207d86f94b73105f71
|
[
"RSA-MD"
] | null | null | null |
import pickle, gzip
def load_pkl_gz(input_path: str, encoding: str = 'latin1'):
with gzip.open(input_path, 'rb') as f:
return pickle.load(f, encoding=encoding)
| 24.857143
| 59
| 0.689655
| 27
| 174
| 4.296296
| 0.666667
| 0.155172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007042
| 0.183908
| 174
| 6
| 60
| 29
| 0.809859
| 0
| 0
| 0
| 0
| 0
| 0.045977
| 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
|
2f8a99e99e8d63c7ae7f01602918f91960fe89fa
| 73
|
py
|
Python
|
radiusauth/backends/__init__.py
|
ansible/django-radius
|
218428c20e885a300774dfaccc67ef10b2e976aa
|
[
"BSD-3-Clause"
] | 30
|
2016-09-22T11:58:24.000Z
|
2022-02-26T06:08:24.000Z
|
radiusauth/backends/__init__.py
|
ansible/django-radius
|
218428c20e885a300774dfaccc67ef10b2e976aa
|
[
"BSD-3-Clause"
] | 17
|
2017-11-15T10:06:02.000Z
|
2019-02-13T15:32:41.000Z
|
radiusauth/backends/__init__.py
|
ansible/django-radius
|
218428c20e885a300774dfaccc67ef10b2e976aa
|
[
"BSD-3-Clause"
] | 13
|
2017-10-29T13:40:42.000Z
|
2022-03-08T14:24:26.000Z
|
from radiusauth.backends.radius import RADIUSBackend, RADIUSRealmBackend
| 36.5
| 72
| 0.890411
| 7
| 73
| 9.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 73
| 1
| 73
| 73
| 0.955882
| 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
|
85d8b9ff380db7cf0d5b35941cc0837cc9aeac5b
| 6,511
|
py
|
Python
|
notebook/pandas_crosstab.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 174
|
2018-05-30T21:14:50.000Z
|
2022-03-25T07:59:37.000Z
|
notebook/pandas_crosstab.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 5
|
2019-08-10T03:22:02.000Z
|
2021-07-12T20:31:17.000Z
|
notebook/pandas_crosstab.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 53
|
2018-04-27T05:26:35.000Z
|
2022-03-25T07:59:37.000Z
|
import pandas as pd
df = pd.read_csv('data/src/titanic_train.csv', index_col=0).drop(['Name', 'Ticket', 'SibSp', 'Parch'], axis=1)
print(df.head())
# Survived Pclass Sex Age Fare Cabin Embarked
# PassengerId
# 1 0 3 male 22.0 7.2500 NaN S
# 2 1 1 female 38.0 71.2833 C85 C
# 3 1 3 female 26.0 7.9250 NaN S
# 4 1 1 female 35.0 53.1000 C123 S
# 5 0 3 male 35.0 8.0500 NaN S
print(pd.crosstab(df['Sex'], df['Pclass']))
# Pclass 1 2 3
# Sex
# female 94 76 144
# male 122 108 347
print(type(pd.crosstab(df['Sex'], df['Pclass'])))
# <class 'pandas.core.frame.DataFrame'>
print(pd.crosstab([df['Sex'], df['Survived']], [df['Pclass'], df['Embarked']]))
# Pclass 1 2 3
# Embarked C Q S C Q S C Q S
# Sex Survived
# female 0 1 0 2 0 0 6 8 9 55
# 1 42 1 46 7 2 61 15 24 33
# male 0 25 1 51 8 1 82 33 36 231
# 1 17 0 28 2 0 15 10 3 34
print(pd.crosstab([df['Sex'], df['Survived']], [df['Pclass'], df['Embarked']],
margins=True))
# Pclass 1 2 3 All
# Embarked C Q S C Q S C Q S
# Sex Survived
# female 0 1 0 2 0 0 6 8 9 55 81
# 1 42 1 46 7 2 61 15 24 33 231
# male 0 25 1 51 8 1 82 33 36 231 468
# 1 17 0 28 2 0 15 10 3 34 109
# All 85 2 127 17 3 164 66 72 353 889
print(pd.crosstab([df['Sex'], df['Survived']], [df['Pclass'], df['Embarked']],
margins=True, margins_name='Total'))
# Pclass 1 2 3 Total
# Embarked C Q S C Q S C Q S
# Sex Survived
# female 0 1 0 2 0 0 6 8 9 55 81
# 1 42 1 46 7 2 61 15 24 33 231
# male 0 25 1 51 8 1 82 33 36 231 468
# 1 17 0 28 2 0 15 10 3 34 109
# Total 85 2 127 17 3 164 66 72 353 889
print(pd.crosstab(df['Sex'], df['Pclass'], margins=True, normalize=True))
# Pclass 1 2 3 All
# Sex
# female 0.105499 0.085297 0.161616 0.352413
# male 0.136925 0.121212 0.389450 0.647587
# All 0.242424 0.206510 0.551066 1.000000
print(pd.crosstab(df['Sex'], df['Pclass'], margins=True, normalize='index'))
# Pclass 1 2 3
# Sex
# female 0.299363 0.242038 0.458599
# male 0.211438 0.187175 0.601386
# All 0.242424 0.206510 0.551066
print(pd.crosstab(df['Sex'], df['Pclass'], margins=True, normalize='columns'))
# Pclass 1 2 3 All
# Sex
# female 0.435185 0.413043 0.293279 0.352413
# male 0.564815 0.586957 0.706721 0.647587
# print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']],
# margins=True, normalize=True))
# TypeError: Expected tuple, got str
print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']],
margins=True, normalize='index'))
# Pclass 1 2 \
# Embarked C Q S C Q S
# Sex
# female 0.137821 0.003205 0.153846 0.022436 0.006410 0.214744
# male 0.072790 0.001733 0.136915 0.017331 0.001733 0.168111
# All 0.095613 0.002250 0.142857 0.019123 0.003375 0.184477
# Pclass 3
# Embarked C Q S
# Sex
# female 0.073718 0.105769 0.282051
# male 0.074523 0.067591 0.459272
# All 0.074241 0.080990 0.397075
# print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']],
# margins=True, normalize='columns'))
# ValueError: Length of new names must be 1, got 2
print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']], normalize=True))
# Pclass 1 2 \
# Embarked C Q S C Q S
# Sex
# female 0.048369 0.001125 0.053993 0.007874 0.002250 0.075366
# male 0.047244 0.001125 0.088864 0.011249 0.001125 0.109111
# Pclass 3
# Embarked C Q S
# Sex
# female 0.025872 0.03712 0.098988
# male 0.048369 0.04387 0.298088
print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']], normalize='index'))
# Pclass 1 2 \
# Embarked C Q S C Q S
# Sex
# female 0.137821 0.003205 0.153846 0.022436 0.006410 0.214744
# male 0.072790 0.001733 0.136915 0.017331 0.001733 0.168111
# Pclass 3
# Embarked C Q S
# Sex
# female 0.073718 0.105769 0.282051
# male 0.074523 0.067591 0.459272
print(pd.crosstab(df['Sex'], [df['Pclass'], df['Embarked']], normalize='columns'))
# Pclass 1 2 3 \
# Embarked C Q S C Q S C
# Sex
# female 0.505882 0.5 0.377953 0.411765 0.666667 0.408537 0.348485
# male 0.494118 0.5 0.622047 0.588235 0.333333 0.591463 0.651515
# Pclass
# Embarked Q S
# Sex
# female 0.458333 0.249292
# male 0.541667 0.750708
| 49.325758
| 110
| 0.405621
| 818
| 6,511
| 3.223716
| 0.237164
| 0.015927
| 0.022753
| 0.079636
| 0.644293
| 0.638225
| 0.607509
| 0.573758
| 0.557072
| 0.546454
| 0
| 0.344551
| 0.502534
| 6,511
| 131
| 111
| 49.70229
| 0.469589
| 0.788205
| 0
| 0.111111
| 0
| 0
| 0.21169
| 0.020537
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.055556
| 0
| 0.055556
| 0.722222
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
85dc31433edb8119d0793681fec8eddd42a27d4f
| 130
|
py
|
Python
|
apps/dataset.py
|
xinetzone/crack-book
|
74bdee1bdbe6bb9a7920cf1687a4e551c303419d
|
[
"Apache-2.0"
] | null | null | null |
apps/dataset.py
|
xinetzone/crack-book
|
74bdee1bdbe6bb9a7920cf1687a4e551c303419d
|
[
"Apache-2.0"
] | null | null | null |
apps/dataset.py
|
xinetzone/crack-book
|
74bdee1bdbe6bb9a7920cf1687a4e551c303419d
|
[
"Apache-2.0"
] | null | null | null |
def kaggle_root():
import kaggle
config_values = kaggle.api.config_values
root = config_values['path']
return root
| 26
| 44
| 0.707692
| 17
| 130
| 5.176471
| 0.529412
| 0.409091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207692
| 130
| 5
| 45
| 26
| 0.854369
| 0
| 0
| 0
| 0
| 0
| 0.030534
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
85e1fd4bc44dca54818e59042d3e8d6817d7f5bb
| 823
|
py
|
Python
|
src/site/app.py
|
samdixon/sjd.im
|
315eaa6174972b3d50ccb1a47b7f7f440fe92495
|
[
"MIT"
] | null | null | null |
src/site/app.py
|
samdixon/sjd.im
|
315eaa6174972b3d50ccb1a47b7f7f440fe92495
|
[
"MIT"
] | 2
|
2021-05-05T02:38:38.000Z
|
2021-09-23T23:34:55.000Z
|
src/site/app.py
|
samdixon/sjd.im
|
315eaa6174972b3d50ccb1a47b7f7f440fe92495
|
[
"MIT"
] | null | null | null |
from flask import Flask, render_template, redirect, url_for
from easy_publish import generate_posts
import mistune
posts = generate_posts("~/fakenotes")
app = Flask(__name__, static_url_path="/static")
@app.route('/')
def index():
return render_template("blog.html", metadata=posts.metadata)
@app.route('/about')
def about():
return render_template("about.html")
@app.route('/blog')
def blog():
return render_template("blog.html", metadata=posts.metadata)
@app.route('/blog/<p>')
def blogpost(p):
post=posts.posts[p]
return render_template(
"post.html",
post=post,
markdown=mistune.markdown(post.content))
@app.route('/projects')
def projects():
return render_template("projects.html")
@app.route('/contact')
def contact():
return render_template("contact.html")
| 22.861111
| 64
| 0.702309
| 106
| 823
| 5.292453
| 0.311321
| 0.174688
| 0.213904
| 0.085562
| 0.203209
| 0.203209
| 0.203209
| 0.203209
| 0.203209
| 0.203209
| 0
| 0
| 0.140948
| 823
| 35
| 65
| 23.514286
| 0.793494
| 0
| 0
| 0.074074
| 1
| 0
| 0.143378
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.111111
| 0.185185
| 0.555556
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
c800b1870344be5aa7a3af857eb65607577dd449
| 864
|
py
|
Python
|
src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py
|
IDLabResearch/lovstats
|
dd33183574eed692ee89059ff3c6494160dfb8a9
|
[
"MIT"
] | 1
|
2018-12-11T13:57:38.000Z
|
2018-12-11T13:57:38.000Z
|
src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py
|
IDLabResearch/lovstats
|
dd33183574eed692ee89059ff3c6494160dfb8a9
|
[
"MIT"
] | null | null | null |
src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py
|
IDLabResearch/lovstats
|
dd33183574eed692ee89059ff3c6494160dfb8a9
|
[
"MIT"
] | null | null | null |
from PropertyPairLessThanDetector import PropertyPairLessThanDetector
class PropertyPairLessThanDetectorSHACLLessThan(PropertyPairLessThanDetector):
"""
This class implements the detection of the less-than property pair constraint sh:lessThan.
For further information have a look at the parent class.
"""
def __init__(self):
super(PropertyPairLessThanDetectorSHACLLessThan, self).__init__()
self.number = 0
def count(self, s, p, o, s_blank, o_l, o_blank, statement):
if p == 'http://www.w3.org/ns/shacl#lessThan':
self.number += 1
def getName(self):
return "propertyPairLessThanLODStatsDetectorSHACLLessThan"
def getVersion(self):
return "propertyPairLessThanLODStatsDetectorSHACLLessThan-v1"
def compute(self):
self.setNumberPropertyPairLessThan(self.number)
| 32
| 94
| 0.726852
| 84
| 864
| 7.345238
| 0.630952
| 0.048622
| 0.191248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005747
| 0.194444
| 864
| 26
| 95
| 33.230769
| 0.880747
| 0.170139
| 0
| 0
| 0
| 0
| 0.195965
| 0.145533
| 0
| 0
| 0
| 0
| 0
| 1
| 0.357143
| false
| 0
| 0.071429
| 0.142857
| 0.642857
| 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
|
c8350b18bd36ef1d3b8a96e9d426fe5b53c4c9bd
| 6,418
|
py
|
Python
|
Core/Navigation.py
|
sols11/PyGameServer
|
32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb
|
[
"MIT"
] | 4
|
2020-05-19T04:16:06.000Z
|
2021-07-13T08:28:20.000Z
|
Core/Navigation.py
|
sols11/PyGameServer
|
32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb
|
[
"MIT"
] | null | null | null |
Core/Navigation.py
|
sols11/PyGameServer
|
32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb
|
[
"MIT"
] | null | null | null |
# -*- coding: UTF-8 -*-
"""----------------------------------------------------------------------------
Author:
caodahan97@126.com
Date:
2019/05/29
Description:
A* path finding算法, 用heap实现版本
quick guide:
start = Node(None, 20, 20)
end = Node(None, 50, 30)
print findPath(start, end) # return path list
It reads a map in the beginning of this script.
History:
----------------------------------------------------------------------------"""
import time
from heapq import heappush, heappop
_2dmap = [] # 地图对应二维数组
mapBorder = () # 长宽上限
gCloseList = {}
class Node:
def __init__(self, father, x, y, end=None):
# 检查边界(最外层为0)
if x < 0 or x >= mapBorder[0] or y < 0 or y >= mapBorder[1]:
raise Exception("node position can't beyond the border!")
self.father = father
self.x = x
self.y = y
if father is not None:
G2father = calcG(father, self)
if not G2father:
raise Exception("father is not valid!")
self.G = G2father + father.G
self.H = calcH(self, end)
self.F = self.G + self.H # 初始化的时候计算出F
else: # it has no father, thus it is the start point
self.G = 0
self.H = 0
self.F = 0
def __lt__(self, other):
"""先简单的写个比较运算"""
return True
def resetFather(self, father, newG):
if father is not None:
self.G = newG
self.F = self.G + self.H
self.father = father
def calcG(start, cur): # 该点
"""计算G值"""
dx = abs(start.x - cur.x)
dy = abs(start.y - cur.y)
if dx == 1 and dy == 0:
return 10 # same row
if dx == 0 and dy == 1:
return 10 # same col
if dx == 1 and dy == 1:
return 14 # cross
else:
return 0
def calcH(cur, end):
"""估算该点到终点距离(忽略墙等阻挡物), 采用Manhattan distance"""
return 10 * (abs(end.x - cur.x) + abs(end.y - cur.y))
def aStarCore(heap, openList, closeList, node, end):
# 将该节点从开放列表移到关闭列表当中。
openList.pop((node.x, node.y)) # key 为(x, y)形式的坐标tuple
closeList[(node.x, node.y)] = node
adjacentList = [] # 相邻点列表
# 加入领接点。地图的layout的边界需要用0进行标记, 否则会进入except
try:
adjacentList.append(Node(node, node.x, node.y - 1, end))
adjacentList.append(Node(node, node.x + 1, node.y, end))
adjacentList.append(Node(node, node.x, node.y + 1, end))
adjacentList.append(Node(node, node.x - 1, node.y, end))
except Exception as e:
print(e)
print(("adjacentList append error!", (node.x, node.y)))
raise
# 用heap二叉堆作为数据结构实现
for adjNode in adjacentList:
if (adjNode.x, adjNode.y) == (end.x, end.y):
newG = calcG(adjNode, node) + node.G
end.resetFather(node, newG)
# "End point reached!"
return True
if (adjNode.x, adjNode.y) in closeList: # 墙体等部分也在close_list中, 因此不会被认为是可以考虑的结点
continue
if (adjNode.x, adjNode.y) not in openList:
openList[(adjNode.x, adjNode.y)] = adjNode
heappush(heap, (adjNode.F, adjNode))
else: # those nodes in openList
existNode = openList[(adjNode.x, adjNode.y)]
newG = calcG(adjNode, node) + node.G
if newG < existNode.G:
existNode.resetFather(node, newG)
# how to update the value in heap? we can push this node into it, and try to clean the heap top later
# 因此, heap取出最小值的时候会检查是否已经在closeList中
heappush(heap, (existNode.F, existNode))
return False
def retrieveLastNode(start, end):
"""
这个函数用来循环推断end点,当到最后一个end点时即完成寻路
need to use end node to extract result
:param start:
:param end:
:return:end点
"""
openList = {}
closeList = dict(gCloseList)
# 若结点在Close表中
if (start.x, start.y) in list(gCloseList.keys()):
print("start in block area")
return end
if (end.x, end.y) in list(gCloseList.keys()):
print("end in block area")
return end
openList[(start.x, start.y)] = start
heap = []
theNode = start
try:
while not aStarCore(heap, openList, closeList, theNode, end):
# only return True when destination reached
F, theNode = heappop(heap)
while (theNode.x, theNode.y) in list(closeList.keys()):
"""the_node是已经走过了的点的话, 丢弃了再抽出一个新的the_node,出现这个代码的原因是addAdjacentIntoOpen_new最后一个
else语句中为了实现decreaseKey的操作, 直接塞入了新的结点, 而没有删除老的结点 这个操作一旦发生, 我们的Q中会出现重复的结点.
因此这里必须检查一下是否新取出的heapTop结点是已经在close_list中的走过的结点 """
F, theNode = heappop(heap)
except Exception as e:
print(e)
raise
return end
def findPath(start, end):
"""
这个函数即为寻路的核心接口
return a path list of points from start to end
:param start:
:param end:
:return:path,失败为None
"""
serializedList = []
print("寻路: start:", (start.x, start.y), " end:", (end.x, end.y))
end = retrieveLastNode(start, end)
if end.father: # 如果没推算出来就是None了
serializePath(end.father, serializedList)
serializedList.reverse() # 逆序,从而变为起点到终点的路径
return serializedList
else:
return None
# =======================================================================
def markPath(node):
if node.father is None: # start point
return
_2dmap[node.x][node.y] = '#'
markPath(node.father)
def serializePath(node, serializedList):
"""
由node点推算出一条序列化的路径保存到serializedList中,使用的办法是递归,将node点挨个存入
extract result to a path list containing all the points orderly
:param node:
:param serializedList:
:return:
"""
if node.father is None:
return
serializedList.append((node.x, node.y))
serializePath(node.father, serializedList)
def readMap(filepath):
# 读取文件信息
global mapBorder
f = open(filepath, 'r')
line = f.readline()
line = f.readline()
line = f.readline()
line = f.readline()
# 将地图数据转为二维list
for line in f:
line = line[1:-3].replace(',', '') # 变为01序列
l = list(line)
_2dmap.append(l)
mapBorder = (len(_2dmap), len(_2dmap[0])) # 得到border
rowIndex = 0
for row in _2dmap:
colIndex = 0
for n in row:
if n == '0': # 0 for block, not reachable
blockNode = Node(None, colIndex, rowIndex) # 要非常注意x=col_index, y=row_index
gCloseList[(blockNode.x, blockNode.y)] = blockNode
colIndex = colIndex + 1
rowIndex = rowIndex + 1
def TransformPathList(pathList):
# 参数是astar算法得到的路径列表,我们将其转回原坐标系坐标
if pathList:
# print(("Path:", pathList))
return [(p[0] - 17.0, 0, 36.0 - p[1]) for p in pathList]
else:
return []
def Navigate(start, end):
"""
寻路
:param start: vector3-xyz
:param end: vector3-xyz
:return:
"""
# 为了将负数点转正需要x+17,而z最大不会超过36,因此最后得到的是以(-17,36)点为坐标原点(0点)的相对坐标<(60,60)
start = Node(None, int(round((start["PosX"] + 17.0))), int(round((36.0 - start["PosZ"]))))
end = Node(None, int(round((end["PosX"] + 17.0))), int(round((36.0 - end["PosZ"]))))
# 计算出来后再将坐标转回来
pathList = TransformPathList(findPath(start, end))
return pathList
readMap('map.txt') # read map in the beginning
| 6,418
| 6,418
| 0.648333
| 877
| 6,418
| 4.720639
| 0.279361
| 0.019324
| 0.015217
| 0.016908
| 0.171256
| 0.103865
| 0.072464
| 0.051208
| 0.051208
| 0.038647
| 0
| 0.020237
| 0.183858
| 6,418
| 1
| 6,418
| 6,418
| 0.770141
| 1.145996
| 0
| 0.260274
| 0
| 0
| 0.037877
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.089041
| false
| 0
| 0.013699
| 0
| 0.232877
| 0.041096
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c83c577080e27f10d7b53a88ad923bfd74ee1947
| 174
|
py
|
Python
|
quotes/admin.py
|
nemesio65/Discord-Bot-Django
|
9a3e2abd27f542210f4abf2aa42cdce700ae2d2c
|
[
"MIT"
] | null | null | null |
quotes/admin.py
|
nemesio65/Discord-Bot-Django
|
9a3e2abd27f542210f4abf2aa42cdce700ae2d2c
|
[
"MIT"
] | null | null | null |
quotes/admin.py
|
nemesio65/Discord-Bot-Django
|
9a3e2abd27f542210f4abf2aa42cdce700ae2d2c
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Quote
@admin.register(Quote)
class QuoteAdmin(admin.ModelAdmin):
list_display = ['series', 'character', 'quote']
| 17.4
| 51
| 0.741379
| 21
| 174
| 6.095238
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 174
| 9
| 52
| 19.333333
| 0.853333
| 0
| 0
| 0
| 0
| 0
| 0.116279
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c85fca02d156de3902e6bba984fa9487738301b9
| 24
|
py
|
Python
|
main.py
|
flamurrogova/gh
|
9fa56aaf2e34d82b252123cc578812a329ab4419
|
[
"MIT"
] | null | null | null |
main.py
|
flamurrogova/gh
|
9fa56aaf2e34d82b252123cc578812a329ab4419
|
[
"MIT"
] | null | null | null |
main.py
|
flamurrogova/gh
|
9fa56aaf2e34d82b252123cc578812a329ab4419
|
[
"MIT"
] | null | null | null |
import this
this = None
| 8
| 11
| 0.75
| 4
| 24
| 4.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 24
| 2
| 12
| 12
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c8655bbcf7929f0b003b5e78b9b021229e79ad1c
| 78
|
py
|
Python
|
Rv_Flask/__init__.py
|
standroidbeta/data-science
|
8f18133e676ac2ea334fadea8894ec4453f286cc
|
[
"MIT"
] | null | null | null |
Rv_Flask/__init__.py
|
standroidbeta/data-science
|
8f18133e676ac2ea334fadea8894ec4453f286cc
|
[
"MIT"
] | 1
|
2021-06-02T00:23:07.000Z
|
2021-06-02T00:23:07.000Z
|
Rv_Flask/__init__.py
|
standroidbeta/data-science
|
8f18133e676ac2ea334fadea8894ec4453f286cc
|
[
"MIT"
] | 2
|
2019-08-21T00:11:51.000Z
|
2019-09-17T20:27:37.000Z
|
# __init__.py
from .coords import Coords
from .geometry_test import Geometry
| 19.5
| 36
| 0.807692
| 11
| 78
| 5.272727
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141026
| 78
| 4
| 36
| 19.5
| 0.865672
| 0.141026
| 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
|
c077cb7c97477010d33717675922b083da719366
| 209
|
py
|
Python
|
scripts/item/consume_2436721.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 54
|
2019-04-16T23:24:48.000Z
|
2021-12-18T11:41:50.000Z
|
scripts/item/consume_2436721.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 3
|
2019-05-19T15:19:41.000Z
|
2020-04-27T16:29:16.000Z
|
scripts/item/consume_2436721.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 49
|
2020-11-25T23:29:16.000Z
|
2022-03-26T16:20:24.000Z
|
# Created by MechAviv
# Sheep Damage Skin | (2436721)
if sm.addDamageSkin(2436721):
sm.chat("'Sheep Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem()
| 41.8
| 104
| 0.732057
| 30
| 209
| 5.1
| 0.666667
| 0.261438
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08046
| 0.167464
| 209
| 5
| 105
| 41.8
| 0.798851
| 0.23445
| 0
| 0
| 0
| 0
| 0.563291
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c09b1c77f27d697f311676e73a56290c21dcff0c
| 115
|
py
|
Python
|
recipes/Python/299410_Root_access_required_run/recipe-299410.py
|
tdiprima/code
|
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
|
[
"MIT"
] | 2,023
|
2017-07-29T09:34:46.000Z
|
2022-03-24T08:00:45.000Z
|
recipes/Python/299410_Root_access_required_run/recipe-299410.py
|
unhacker/code
|
73b09edc1b9850c557a79296655f140ce5e853db
|
[
"MIT"
] | 32
|
2017-09-02T17:20:08.000Z
|
2022-02-11T17:49:37.000Z
|
recipes/Python/299410_Root_access_required_run/recipe-299410.py
|
unhacker/code
|
73b09edc1b9850c557a79296655f140ce5e853db
|
[
"MIT"
] | 780
|
2017-07-28T19:23:28.000Z
|
2022-03-25T20:39:41.000Z
|
import os, sys
# if not root...kick out
if not os.geteuid()==0:
sys.exit("\nOnly root can run this script\n")
| 19.166667
| 49
| 0.652174
| 22
| 115
| 3.409091
| 0.772727
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 0.191304
| 115
| 5
| 50
| 23
| 0.795699
| 0.191304
| 0
| 0
| 0
| 0
| 0.362637
| 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
|
c0b751f459f9473c171b99c7883b2fff95f95525
| 536
|
py
|
Python
|
account_payment_group/models/payment_transaction.py
|
odoo-mastercore/odoo-argentina
|
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
|
[
"MIT"
] | 1
|
2021-01-25T15:57:58.000Z
|
2021-01-25T15:57:58.000Z
|
account_payment_group/models/payment_transaction.py
|
odoo-mastercore/odoo-argentina
|
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
|
[
"MIT"
] | null | null | null |
account_payment_group/models/payment_transaction.py
|
odoo-mastercore/odoo-argentina
|
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
|
[
"MIT"
] | 2
|
2020-10-17T16:36:02.000Z
|
2021-01-24T10:20:05.000Z
|
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models
class PaymentTransaction(models.Model):
_inherit = 'payment.transaction'
def _reconcile_after_transaction_done(self):
return super(PaymentTransaction, self.with_context(
create_from_website=True))._reconcile_after_transaction_done()
| 35.733333
| 78
| 0.544776
| 44
| 536
| 6.272727
| 0.795455
| 0.101449
| 0.181159
| 0.210145
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117537
| 536
| 14
| 79
| 38.285714
| 0.58351
| 0.156716
| 0
| 0
| 0
| 0
| 0.064846
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
c0be5c2fbea8122f04aa9135703963f81b11ab8e
| 95
|
py
|
Python
|
01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py
|
juletx/HackerRank
|
da42e3442e5098abac0b4bdfdcee58824666a2a2
|
[
"MIT"
] | 1
|
2022-01-29T11:30:08.000Z
|
2022-01-29T11:30:08.000Z
|
01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py
|
juletx/HackerRank
|
da42e3442e5098abac0b4bdfdcee58824666a2a2
|
[
"MIT"
] | null | null | null |
01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py
|
juletx/HackerRank
|
da42e3442e5098abac0b4bdfdcee58824666a2a2
|
[
"MIT"
] | null | null | null |
from fractions import Fraction
prob = (1/4) / (3/4)
print(Fraction(prob).limit_denominator())
| 19
| 41
| 0.726316
| 14
| 95
| 4.857143
| 0.785714
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.115789
| 95
| 5
| 41
| 19
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c0d9762e0ea22bc07c77bdd7725df2cb4c1d2b4d
| 348
|
py
|
Python
|
app/forms.py
|
HU-WErrand/werrand
|
4ce4ace4cac311f17ad8155960529e262a43c9c7
|
[
"BSD-3-Clause"
] | null | null | null |
app/forms.py
|
HU-WErrand/werrand
|
4ce4ace4cac311f17ad8155960529e262a43c9c7
|
[
"BSD-3-Clause"
] | null | null | null |
app/forms.py
|
HU-WErrand/werrand
|
4ce4ace4cac311f17ad8155960529e262a43c9c7
|
[
"BSD-3-Clause"
] | null | null | null |
from flask_wtf import Form
from wtforms import StringField, BooleanField, PasswordField
from wtforms.validators import DataRequired
class LoginForm(Form):
openid = StringField('openid',validators=[DataRequired()])
password = PasswordField('Password',validators=[DataRequired()])
remember_me = BooleanField('remember_me',default=False)
| 38.666667
| 68
| 0.79023
| 36
| 348
| 7.555556
| 0.527778
| 0.080882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109195
| 348
| 8
| 69
| 43.5
| 0.877419
| 0
| 0
| 0
| 0
| 0
| 0.071839
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.285714
| 0.428571
| 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
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
c0eb5fe6675c8f34d67b99c63d577aeffef55854
| 7,777
|
bzl
|
Python
|
swc/private/versions.bzl
|
aspect-build/rules_swc
|
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
|
[
"Apache-2.0"
] | 14
|
2021-12-04T11:15:40.000Z
|
2022-03-01T23:05:38.000Z
|
swc/private/versions.bzl
|
aspect-build/rules_swc
|
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
|
[
"Apache-2.0"
] | 6
|
2021-12-13T06:32:16.000Z
|
2022-02-28T14:44:38.000Z
|
swc/private/versions.bzl
|
aspect-build/rules_swc
|
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
|
[
"Apache-2.0"
] | 2
|
2021-12-14T09:35:12.000Z
|
2021-12-24T16:31:14.000Z
|
"Mirror of release info"
TOOL_VERSIONS = {
"v1.2.185": {
"android-arm-eabi": "sha384-a9NRmV90j+tXV7xT3+LK+UBcUgKMVRp9k4yz29hKi7VRqwIQxuL3aKAcyP1mXCly",
"android-arm64": "sha384-rdQq6yIfkTZtuhYiIz2eo0/Y1MuPDAGqf4See2ZPYRnzF6owWSAkU1MzUnKlwvas",
"darwin-arm64": "sha384-hMId2tsrNKrkOUH5MLGmNfRo/MplSwiRGjdTYg2OuFJEHa3fy4TzTJvoGuhYjbpI",
"darwin-x64": "sha384-X+6FZl+p0HYGXKYHiyMm+CCxLLw/stlK/RwQQEOkuHSeWH6SudjI2xahrZVtSesp",
"freebsd-x64": "sha384-llLR2uZmrYr7FeBd9bPYIe+H1sUblMiVXVySn7rf/SoSMcpEdAK0XfUy/XPTIa1e",
"linux-arm-gnueabihf": "sha384-F4DRYRBEtcxHkPHIbyQvzQv9u0Ab92hC7N8sdZ9sFTvckEK0DEOF+HvFdisuzGOj",
"linux-arm64-gnu": "sha384-ySbaZlPTht0rS5qMOJr1xHymjIu082c/j28R95j/bB7I7EuzfG0hnLYcSFEmtFcT",
"linux-arm64-musl": "sha384-yvRSHNqvCROkZN53ElVNlOyTMZ90JwTB9JJWYOqex/m1YEoebPHFVm8L7hrry7xW",
"linux-x64-gnu": "sha384-aOuO4Jlzir1Ao2Yh5Sp41wvA5DpU9/EJf4F80Rnx2Yl/J+q3cxW/9SGPsni+vaHL",
"linux-x64-musl": "sha384-RJWWTZGzSzErDE6XYg6oHe/SnXiu0yWj4s/jfK5Txmn3dgEm4VSq2RqJw77SQq1G",
"win32-arm64-msvc": "sha384-N5hkUrhAmVXpXKl5t3FvesHuCIICoU88wZIRIGFCFk93sAYOnkTvYFQoCrnKanmw",
"win32-ia32-msvc": "sha384-uYi/LecmL+1F+ZeG+yUYHndwc/ulPSY7Y1M8sYfTO7c7Uf2CzthyxCcHHW1IJm6X",
"win32-x64-msvc": "sha384-j20tdeI1JL57Bst+lho/J3cDKARYo6dQkHaaxGJV1zU8vgh4AIHv3qFoLPLiC4bx",
},
"v1.2.168": {
"android-arm-eabi": "sha384-eegQUZCJXBzl5Y4IeELJhlVGAUkspDA6cIqHJxEY6nSMRsJ5azxPAYHPMjd/7HcB",
"android-arm64": "sha384-iDGIuT+rMBqEFXynqgqUCEwaEysPNHPgU5zHVrw0ZoTBmbgU7hE/bDI6qtwEuhGB",
"darwin-arm64": "sha384-cC7J5IXEiivWG9fLk70P3/eR3xlC9c6pEQ7eDSLEbUPayV9dzd2sfL6zJNAVzJke",
"darwin-x64": "sha384-cdoeWiAiFuC6trXvaOIKHaghIOgGjE8FYU+ApLIX10uuASykH0KBUls8YzI/z0BF",
"freebsd-x64": "sha384-i/sWnzLH7iq73TnVt0Gc7N1jllFITcKp14PIEB/GPuR2XfH5Lta6N2AtAHlIRJj6",
"linux-arm-gnueabihf": "sha384-JAMYCgrMEUFVmDdXSjJJCnaatsyQ3PXB1UwlGwZ3ggXx3TQ8q6zUjXPcaWPMPDdd",
"linux-arm64-gnu": "sha384-6vN8ks/3LXz1y1Vlt99MZTpieafcdy1E+Umd8Al3v/dPECuhq9r+nOseFzNBCYwK",
"linux-arm64-musl": "sha384-jJhVdadlEqOIKadZBzlMue1t8YYNJ/kdsdbUt0UM+gc6Zbp1DJr1oai3maH6lvTc",
"linux-x64-gnu": "sha384-Of6s4gjX/7JGFpReGFG0lozDS6i7AJcJ3xBOEoYvAo33dXakrg+NTOORTtUvyHQS",
"linux-x64-musl": "sha384-c537PkbC8nkaQP+lMkKWjUZ1Xl2qpCnDW5tc1SMRb1SGgLWuSj4AZ1GjmT5CFVV9",
"win32-arm64-msvc": "sha384-inYv8Ad8efI6sT5nZ9dlGq0aeaBIzo8S2ZcG8MafsdipilHazxm/BYdQWZTsazAP",
"win32-ia32-msvc": "sha384-3Sxwt0BN2W7N/xei9wcONc6MQbEQo9EcnfoeO+pNBGR1e4t0QVAVufpzK4G+ZDHs",
"win32-x64-msvc": "sha384-HJKPVPvKu6nWu6vdXrnVK5ClFoKA7pM1C4fgiQ2eBt0N/syTzD9HRGbB24s1Ru3B",
},
"v1.2.141": {
"android-arm-eabi": "sha384-1Kpl5sj2A50yTtZu5Ae7rGGY+t+0FYvcy/VCUp1IM8lW36RuhERqfahcWdmgtinB",
"android-arm64": "sha384-F/kmewGo2LlmyIeEQBnctRBJULmcSbko/5Gz1AJNxATWS1JUEX8C06AhdTpV7dk0",
"darwin-arm64": "sha384-UoQMYxodChrzQ785r7bo71aBDUqiu8qE8OSlE+64XrQUk7af0E9QfeA/uOKH81I8",
"darwin-x64": "sha384-nzfWWp7SHinJEGXyzeDFcprHs30oGJ4Xb6KV1NDPBMItkP37dGif9KQ4vjIcRiM2",
"freebsd-x64": "sha384-oS5YYV3h2CkOdPXy0ERp4/33EMn/iBDA353qp7zlSDsfuFpcCjdauFkMEiAwIipi",
"linux-arm-gnueabihf": "sha384-Y0xADrA2UwuwQq0OA3dNdjWLIqq4HwPR0lfhai3Ss+BvMDMpsjtSKLek/shav5++",
"linux-arm64-gnu": "sha384-lFM98s0YsVi2LRW5W082i+omOvkeOhiDFHWWdv2N91VGGXrmQxrMbhDgR85aPZBZ",
"linux-arm64-musl": "sha384-paCvYozCr4y0XQw4wbp5yi00GaAzMo6pqAxUMkYleY3is8H4obpRr48XCXEJ9ouq",
"linux-x64-gnu": "sha384-uNw6WyW05qRZhxam2ls9cQRXi9Cmx1+ItQ1+i2CgXuImHHl3lFhnlMCgvvJTdRyL",
"linux-x64-musl": "sha384-uzzI2i5JdE8G/zwvQPGeMbemVIwRnnqWExifbcQGNVYQ614Md26Hhriw4Ej9YFRA",
"win32-arm64-msvc": "sha384-iBDJmWJVtxouMntcoGrPqpOEZP5OQrXDWPOE1+kIWSvmlC/JDkNhPL0zyiTxX/Bb",
"win32-ia32-msvc": "sha384-p9MgHvIpyHbBoRSbvmAe3llF6xTmjTvfPTjc04xoNgMiIL2wCRG5HaPWNEd/10i0",
"win32-x64-msvc": "sha384-4t9URv/+EEfnaU1sp9aFnG/CVWD3/biCq18o/MLvKiZw4ZzcRtyqWZz12aL/HDUY",
},
"v1.2.119": {
"android-arm64": "sha384-whzMbD0maV04vzMdOVfPQNDhpe3gWy9Tyg+SsXbzgA5oZDoqTjTM3e2Y5MeKWnz3",
"darwin-arm64": "sha384-2E4E13tCxfatne30Ss2FY+o0T8ebMV4gO999oqWPbehFxcaQI/6+D304xGZPF8/x",
"darwin-x64": "sha384-dRgiVlmtWKCuUXqWHwKcdlsgekcHcaLRmOH/3+ui5QYYm1oknT0ViEbUbT/jE4kI",
"freebsd-x64": "sha384-+LsX72klWDgPfAW9+p3/lVfyDr4ivVFerkwoo7961+gUMvsHH0gApMh6PwTabIh8",
"linux-arm-gnueabihf": "sha384-eFt6xaMd6JRHDAKuN4PwFaHj9Date7WL5cigF+1nHIbmSH56DfgM56yg3m00uv+b",
"linux-arm64-gnu": "sha384-RDISAN+TS/OsweAKc4R6wtqdBWQFIPBv6KJw3g9ticFJADw2fRBt6bg8TTurZ1HY",
"linux-arm64-musl": "sha384-IIU9oJIoAVUOtuVwggpP3XrUYPrLyYc7D+2J55dsP/1jHgiI2XIj60Jf6TT0enz8",
"linux-x64-gnu": "sha384-dFLjfJjECHwbRaTIGwp2VDyqdMJlXHKV1ojZDosoZbiZIT7+iL+JkeTpVmxhA+1p",
"linux-x64-musl": "sha384-Ei9md7Se0oPt7xn8g3xzG49eNEoxT75ZxtlZr7l0s1H/+tQmof5i0b5sZMAgbmSP",
"win32-arm64-msvc": "sha384-MKI6v8kQBYkbJueLHFSNzw63Y3OhWYGk8mhBt8GyNyiF7MD/zGqc+2nqoaPs+qRX",
"win32-ia32-msvc": "sha384-iKlIpH288Prm/0wjuzqxDtPqB69ZHQH2STchgYkOllT3u/l8V3eySobMY97FW0UD",
"win32-x64-msvc": "sha384-vE5+WiB20MS3Z2+wpFHyklIEX+KgQR4+5yleDBFVlil3IMqmUv/3s/peB5ckgte1",
},
"v1.2.118": {
"android-arm64": "sha384-hBW2Bn8IQteZZPIKdQpoj4SabxVqlWTr9dibeGzuSZNZFcYEKNaV5c5/A//4QZ/9",
"darwin-arm64": "sha384-cQPsBFlKjT8GRJMnFPEdw8Y6jiFIHpGGWD8wMQGU39skIA7D4fOiVod3kJFLjbH+",
"darwin-x64": "sha384-IkUBFyobiNvAR6wYQpc16A72fX1iKTvJ/6MT4PFL47zXqN71KJUqfRuhV3i4ZbF4",
"freebsd-x64": "sha384-DiMWBxMMODwIc1Cw8pNDz3Nsf+20tAGQXdi0+pw6a5nfTtUbOpyVbpWdnGzvfM+A",
"linux-arm-gnueabihf": "sha384-FmsM/G2yV5Io2w113EU8AGmPAo3xDpDimptEirYtwwP+Ia/gNeFAdmWAoqWrTFcE",
"linux-arm64-gnu": "sha384-h7FalDXFAdgwZcEQ2eXGjDFWthpRHL35U+nLR5QeKsN+BYw0P49qzzbosKVXI1eZ",
"linux-arm64-musl": "sha384-dwriDA6aFKZUiZ6E4qIKs/wsLBPkQsxr1VdIimKoZRScTSJ8Ig8NVxDrKanlAyOz",
"linux-x64-gnu": "sha384-nDQkCq28JQFHH/qs2EVFRemJFePKRIMCe8lpcHnApdLwOGPnA9mR9HmlOzdQpTj7",
"linux-x64-musl": "sha384-Su2UH304D1/zcQpZseVSRLc9uT/ArCOqi1Jcr0Xkhup796VE3ebFqsx2V3tU1q3S",
"win32-arm64-msvc": "sha384-+jGl3M/Q6DD0luOPG654YXM16cVN1vwCTC9z82UxFp8m2cLn4MoaE9wY8CTpP33t",
"win32-ia32-msvc": "sha384-fzamUksgqUW8yhv6HmrFIyS13DhH9lBXuoSWoP7Gxzh6nWMT4DaSJq4/v87u8EXK",
"win32-x64-msvc": "sha384-T/L4BtmH5X4AFVosziz1EOXpiEhmLNL1bwcFp3Las1lyxvkq78Li1yS5Vx48GR7d",
},
"v1.2.117": {
"android-arm64": "sha384-i5vc+4JYLwQCa91L6eAI2w3Lieaur/IrRNAG9r/tN2PLxAC5lKTlAqquT8pltj27",
"darwin-arm64": "sha384-VNtoXdv97tzPWl87t7yora9qi1PvzRLi/96mU0ZfFX7XYg+lxB0gTyzOxhRJ8/qv",
"darwin-x64": "sha384-lEwDzi0261EwR9cgxIQmCHCNx/sr37ToZtgAjCuFjmy8XTsePJ8f5m+S95v2eHp7",
"freebsd-x64": "sha384-zGA7lmQJZxtLqfdm2OiqkjEfc43z4ZJgFq/YAXRHMGjzouYW47VqZZd2z5VXeR8D",
"linux-arm-gnueabihf": "sha384-B2SG4uu+N9sdOi6JlAD+i3sHNrVnjxDwa86ct03gz1CfioKM+oRuOLM3IOXNTs3/",
"linux-arm64-gnu": "sha384-HBkBxaG9nFQToBrVSyqsagbjbzE+15aV3nR88d9LoaGBLnbtz74szirYwaxjCnjk",
"linux-arm64-musl": "sha384-R3bInhLbUZYrihDnWtRFmBUANG0PTJq0x6jb+A7+PDjXFV6kUsaIXZ66crdqc2bi",
"linux-x64-gnu": "sha384-8sSlYQ8URKdZmanscL8HxGR3oHIvu/iE0mU/FM25tvy7Vcwdc+Rxm8tMddeylFd9",
"linux-x64-musl": "sha384-w2LbRoYp8Fal+Or+Q8xgP2H25636sYwoj96KOfQMcY+3p1nVSyKORraks4TWFUPh",
"win32-arm64-msvc": "sha384-te0QR+8y4VuBrue5FQifqGSU5qMID7DLTTKB0vz82EEo5CTEapSGSdV9lpiW94Bp",
"win32-ia32-msvc": "sha384-0b8Cx9GbFs3LfLtnoZrrIw6N1Pn6UWTsv+u3663ysKaIp12zMCpeX0AEmNhcN9z8",
"win32-x64-msvc": "sha384-cUhbjZJWqp1SUa0riJ1mW5Wr60CGdxJdaMaK6DUXpaBC9kE94VDebjczrK21MVYh",
},
}
| 84.532609
| 105
| 0.782821
| 526
| 7,777
| 11.572243
| 0.479087
| 0.029571
| 0.017743
| 0.022671
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174338
| 0.106082
| 7,777
| 91
| 106
| 85.461538
| 0.701237
| 0.002829
| 0
| 0
| 0
| 0
| 0.829497
| 0.684711
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c0fcf82fd2e0e6ac103a85244530899b11167fb8
| 1,190
|
py
|
Python
|
panels/quickmocap_panel_ImportNMocap.py
|
vltmedia/QuickMocap-BlenderAddon
|
ef152a87a8738d505555db2d3ec8ff851847983b
|
[
"Apache-2.0"
] | 17
|
2021-07-25T12:46:25.000Z
|
2022-03-23T05:16:36.000Z
|
panels/quickmocap_panel_ImportNMocap.py
|
vltmedia/QuickMocap-BlenderAddon
|
ef152a87a8738d505555db2d3ec8ff851847983b
|
[
"Apache-2.0"
] | 4
|
2021-08-04T09:14:15.000Z
|
2022-03-08T11:50:13.000Z
|
panels/quickmocap_panel_ImportNMocap.py
|
vltmedia/QuickMocap-BlenderAddon
|
ef152a87a8738d505555db2d3ec8ff851847983b
|
[
"Apache-2.0"
] | 3
|
2021-12-09T21:58:57.000Z
|
2022-03-31T06:21:23.000Z
|
import bpy
from panels.quickmocap_panel import QuickMocapTemplatePanel
class QMOCAP_PT_ImportNMocap(QuickMocapTemplatePanel, bpy.types.Panel):
bl_idname = 'OBJECT_PT_ImportNPanel_panel'
bl_parent_id = "OBJECT_PT_quickmocap_panel"
bl_label = "Import Numpy Mocap"
def draw(self, context):
layout = self.layout
scene = context.scene
quickmocap_tool = scene.quickmocap_tool
layout.label(text="Import .npz or .pkl")
layout.prop(quickmocap_tool, "input_path")
layout.prop(quickmocap_tool, "fps_source")
layout.prop(quickmocap_tool, "fps_target")
layout.prop(quickmocap_tool, "start_origin")
layout.prop(quickmocap_tool, "person_id")
layout.prop(quickmocap_tool, "rotate_y")
layout.prop(quickmocap_tool, "rotate_neg")
layout.prop(quickmocap_tool, "enum_gender")
# layout.prop(quickmocap_tool, "enum_objectFlatten", text="")
layout.operator("wm.quickmocap_importnumpymocap")
layout.operator("wm.quickmocap_importnumpymocapclean")
# layout.operator("wm.quickmocap_openlastexportedusd")
layout.separator()
| 41.034483
| 72
| 0.689076
| 128
| 1,190
| 6.125
| 0.414063
| 0.196429
| 0.229592
| 0.27551
| 0.216837
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 1,190
| 29
| 73
| 41.034483
| 0.838503
| 0.094958
| 0
| 0
| 0
| 0
| 0.225621
| 0.113767
| 0
| 0
| 0
| 0
| 0
| 1
| 0.045455
| false
| 0
| 0.363636
| 0
| 0.590909
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
23ea430e52042f6a5aa3209303f9a7dbed64437d
| 62
|
py
|
Python
|
app.py
|
munisisazade/create-japronto-app
|
b2b9face8560a71c3cd0732a268d3cfa7fc6b290
|
[
"MIT"
] | 1
|
2019-11-21T01:39:36.000Z
|
2019-11-21T01:39:36.000Z
|
app.py
|
munisisazade/create-japronto-app
|
b2b9face8560a71c3cd0732a268d3cfa7fc6b290
|
[
"MIT"
] | 1
|
2021-04-30T20:34:55.000Z
|
2021-04-30T20:34:55.000Z
|
app.py
|
munisisazade/create-japronto-app
|
b2b9face8560a71c3cd0732a268d3cfa7fc6b290
|
[
"MIT"
] | null | null | null |
from conf.settings import *
munis.run(debug=DEBUG, port=PORT)
| 20.666667
| 33
| 0.774194
| 10
| 62
| 4.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 62
| 3
| 33
| 20.666667
| 0.857143
| 0
| 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
|
9b14831592dde54a8e46ea0f3750ed8b12f4d2e7
| 336
|
py
|
Python
|
services/storage/src/storage/interactions.py
|
jads-master-team-1/de-1
|
30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede
|
[
"MIT"
] | null | null | null |
services/storage/src/storage/interactions.py
|
jads-master-team-1/de-1
|
30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede
|
[
"MIT"
] | 10
|
2021-11-14T09:21:32.000Z
|
2022-01-02T17:40:18.000Z
|
services/storage/src/storage/interactions.py
|
jads-master-team-1/de-1
|
30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede
|
[
"MIT"
] | null | null | null |
class StorageInteractions:
def __init__(self, **repositories):
self._storage_repository = repositories["storage_repository"]
def load(self, name):
return self._storage_repository.load_file(name)
def store(self, file):
name = self._storage_repository.store_file(file)
return {"name": name}
| 28
| 69
| 0.690476
| 37
| 336
| 5.918919
| 0.351351
| 0.310502
| 0.287671
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205357
| 336
| 11
| 70
| 30.545455
| 0.820225
| 0
| 0
| 0
| 0
| 0
| 0.065476
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
9b24959a4d0831eebcad9f3cf69950203a9ef5b6
| 1,705
|
py
|
Python
|
hackaton/game/admin.py
|
EugeneSal/HackatonDjango
|
a2d643785d0780f1fe52be5067289f3a814d4776
|
[
"BSD-2-Clause"
] | null | null | null |
hackaton/game/admin.py
|
EugeneSal/HackatonDjango
|
a2d643785d0780f1fe52be5067289f3a814d4776
|
[
"BSD-2-Clause"
] | null | null | null |
hackaton/game/admin.py
|
EugeneSal/HackatonDjango
|
a2d643785d0780f1fe52be5067289f3a814d4776
|
[
"BSD-2-Clause"
] | null | null | null |
from django.contrib import admin
from .models import *
class PaladinAdmin(admin.ModelAdmin):
list_display = ('name_class', 'name', 'nick_name',
'hero_strength', 'hero_stamina', 'hero_armor',
'default_strength', 'default_stamina', 'default_armor')
search_fields = ('name',)
list_filter = ('name_class',)
# list_select_related = ('name', 'nick_name')
empty_value_display = '-пусто-'
class DruidAdmin(admin.ModelAdmin):
list_display = ('name_class', 'name', 'nick_name',
'hero_strength', 'hero_stamina', 'hero_armor',
'default_strength', 'default_stamina', 'default_armor')
search_fields = ('name',)
list_filter = ('name_class',)
# list_select_related = ('name', 'nick_name')
empty_value_display = '-пусто-'
class WarriorAdmin(admin.ModelAdmin):
list_display = ('name_class', 'name', 'nick_name',
'hero_strength', 'hero_stamina', 'hero_armor',
'default_strength', 'default_stamina', 'default_armor')
search_fields = ('name',)
list_filter = ('name_class',)
# list_select_related = ('name', 'nick_name')
empty_value_display = '-пусто-'
class ThingsAdmin(admin.ModelAdmin):
list_display = ('name_class', 'name', 'owners',
'thing_strength', 'thing_stamina', 'thing_armor')
search_fields = ('name',)
list_filter = ('name_class', 'name')
# list_select_related = ('name', 'nick_name')
empty_value_display = '-пусто-'
admin.site.register(Warrior, WarriorAdmin)
admin.site.register(Paladin, PaladinAdmin)
admin.site.register(Druid, DruidAdmin)
admin.site.register(Things, ThingsAdmin)
| 34.1
| 75
| 0.644575
| 182
| 1,705
| 5.686813
| 0.203297
| 0.069565
| 0.081159
| 0.100483
| 0.737198
| 0.737198
| 0.737198
| 0.699517
| 0.66087
| 0.66087
| 0
| 0
| 0.207625
| 1,705
| 49
| 76
| 34.795918
| 0.766099
| 0.102639
| 0
| 0.606061
| 0
| 0
| 0.296393
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.060606
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
f194533cff6dfa3a45dc6a92b7f66984df2ed46c
| 140
|
py
|
Python
|
research/importEnModel.py
|
HewJhong/1st_Day_Hack
|
0d6582f53b8027cd02e15f56f7e1ee649e524d74
|
[
"Apache-2.0"
] | 1
|
2020-12-13T05:04:22.000Z
|
2020-12-13T05:04:22.000Z
|
research/importEnModel.py
|
HewJhong/1st_Day_Hack
|
0d6582f53b8027cd02e15f56f7e1ee649e524d74
|
[
"Apache-2.0"
] | null | null | null |
research/importEnModel.py
|
HewJhong/1st_Day_Hack
|
0d6582f53b8027cd02e15f56f7e1ee649e524d74
|
[
"Apache-2.0"
] | null | null | null |
import easyocr
def activateModel():
reader = easyocr.Reader(['en'],gpu=False) # need to run only once to load model into memory
#%%
| 17.5
| 95
| 0.685714
| 20
| 140
| 4.8
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192857
| 140
| 7
| 96
| 20
| 0.849558
| 0.35
| 0
| 0
| 0
| 0
| 0.022727
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f1b0c79d838c49e79bafa8d169306cd897c97bab
| 95
|
py
|
Python
|
module_template/exception.py
|
rstms/repeat
|
af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f
|
[
"MIT"
] | null | null | null |
module_template/exception.py
|
rstms/repeat
|
af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f
|
[
"MIT"
] | null | null | null |
module_template/exception.py
|
rstms/repeat
|
af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f
|
[
"MIT"
] | null | null | null |
# exception classes
class Error(Exception):
pass
class ParameterError(Error):
pass
| 9.5
| 28
| 0.705263
| 10
| 95
| 6.7
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221053
| 95
| 9
| 29
| 10.555556
| 0.905405
| 0.178947
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 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
|
f1b0e164f5e24a3f97510d391082a34daf446b75
| 55
|
py
|
Python
|
network/demo_socket_mqtt.py
|
sipeed/MaixPy_Scripts
|
4bcc8cd02d637d59016300e0ef3836f420692332
|
[
"MIT"
] | null | null | null |
network/demo_socket_mqtt.py
|
sipeed/MaixPy_Scripts
|
4bcc8cd02d637d59016300e0ef3836f420692332
|
[
"MIT"
] | null | null | null |
network/demo_socket_mqtt.py
|
sipeed/MaixPy_Scripts
|
4bcc8cd02d637d59016300e0ef3836f420692332
|
[
"MIT"
] | null | null | null |
# Refer to https://github.com/daq-tools/umqtt-example
| 18.333333
| 53
| 0.745455
| 9
| 55
| 4.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 55
| 2
| 54
| 27.5
| 0.82
| 0.927273
| 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
|
f1fa57fa445baec79ce8a454147c43f8c3af12d9
| 91
|
py
|
Python
|
tests/test_1.py
|
aioworkers/pytest-aioworkers
|
24ab842fab006826e186b2ecc9ec46182c9c4c8c
|
[
"Apache-2.0"
] | 1
|
2019-03-21T05:24:27.000Z
|
2019-03-21T05:24:27.000Z
|
tests/test_1.py
|
aioworkers/pytest-aioworkers
|
24ab842fab006826e186b2ecc9ec46182c9c4c8c
|
[
"Apache-2.0"
] | 3
|
2020-12-21T07:52:06.000Z
|
2021-11-29T22:04:23.000Z
|
tests/test_1.py
|
aioworkers/pytest-aioworkers
|
24ab842fab006826e186b2ecc9ec46182c9c4c8c
|
[
"Apache-2.0"
] | null | null | null |
async def test_make_coro(make_coro):
coro = make_coro(1)
assert 1 == await coro()
| 18.2
| 36
| 0.67033
| 15
| 91
| 3.8
| 0.533333
| 0.421053
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028169
| 0.21978
| 91
| 4
| 37
| 22.75
| 0.774648
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
|
7b176805b319b6cadaa627db412151332b0b65cb
| 880
|
py
|
Python
|
indicators.py
|
Joaquin6/StockAPI
|
1c65e52822dd156e888260c2954cb713896dbc5d
|
[
"MIT"
] | null | null | null |
indicators.py
|
Joaquin6/StockAPI
|
1c65e52822dd156e888260c2954cb713896dbc5d
|
[
"MIT"
] | 5
|
2021-05-20T21:23:20.000Z
|
2022-03-16T04:48:50.000Z
|
indicators.py
|
Joaquin6/StockAPI
|
1c65e52822dd156e888260c2954cb713896dbc5d
|
[
"MIT"
] | null | null | null |
import config
import numpy as np
import pandas as pd
import alpaca_trade_api as alpaca
from config import *
class indicators():
def __init__(self):
#ind determines which indicactor it is
"""
ind determines which indicator to use
0 is Simple Moving Average
1 is Rsi indicator
"""
self.tickers = 'BA'
self.api = alpaca.REST(TESTAPI_KEY, TESTAPI_SECRET, APCA_API_BASE_URL, 'v2')
#actual indiaqctors
def sma(self):
return
#calculations
def moving_average(self,x, w):
"""
Closing Prices
:param x:Sequence of closing prices
:param w: w is a length for a sequence of ones
:return: The moving average of the sequence(x) in a list so we can see
"""
return np.convolve(x, np.ones(w), 'valid') / w
def rsiIndicator(self):
return
| 27.5
| 84
| 0.620455
| 121
| 880
| 4.413223
| 0.553719
| 0.073034
| 0.067416
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004902
| 0.304545
| 880
| 32
| 85
| 27.5
| 0.867647
| 0.363636
| 0
| 0.133333
| 0
| 0
| 0.019068
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0
| 0.333333
| 0.133333
| 0.866667
| 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
|
9e2bba9ee5e270cf3fbc2b85cb71f11172ebcf46
| 232
|
py
|
Python
|
api/tests/helpers.py
|
Einenlum/django-event-feed
|
cc8e9b98bc9318f7ef5d208db42900fc96f057c7
|
[
"MIT"
] | null | null | null |
api/tests/helpers.py
|
Einenlum/django-event-feed
|
cc8e9b98bc9318f7ef5d208db42900fc96f057c7
|
[
"MIT"
] | null | null | null |
api/tests/helpers.py
|
Einenlum/django-event-feed
|
cc8e9b98bc9318f7ef5d208db42900fc96f057c7
|
[
"MIT"
] | null | null | null |
def authenticate_as(client, username, password):
token = client.post(
"/auth/authenticate/", {"username": username, "password": password}
).data["token"]
client.credentials(HTTP_AUTHORIZATION=f"Bearer {token}")
| 33.142857
| 75
| 0.685345
| 24
| 232
| 6.541667
| 0.625
| 0.203822
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155172
| 232
| 6
| 76
| 38.666667
| 0.80102
| 0
| 0
| 0
| 0
| 0
| 0.232759
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.4
| 0
| 0
| 0.2
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
9e6b4876a762b1eaa49a82a755e0c65506dc9bbd
| 52
|
py
|
Python
|
virus.py
|
https-github-com-talisma201/instavaysanse
|
80c7dacfd7122352ad1cf23050c71cf2dccf000d
|
[
"BSL-1.0"
] | null | null | null |
virus.py
|
https-github-com-talisma201/instavaysanse
|
80c7dacfd7122352ad1cf23050c71cf2dccf000d
|
[
"BSL-1.0"
] | null | null | null |
virus.py
|
https-github-com-talisma201/instavaysanse
|
80c7dacfd7122352ad1cf23050c71cf2dccf000d
|
[
"BSL-1.0"
] | null | null | null |
from sys import os
while:
os=filename("filename")
| 13
| 25
| 0.730769
| 8
| 52
| 4.75
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 3
| 26
| 17.333333
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| 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
|
9e768265f4000162de6116b9a24634e435f6180b
| 31
|
py
|
Python
|
TCCDjango/TCCDjango/__init__.py
|
hkirschke/App-Web-TCC
|
7cb8eecff6f5afe4c996c8a424358de099faefd0
|
[
"MIT"
] | null | null | null |
TCCDjango/TCCDjango/__init__.py
|
hkirschke/App-Web-TCC
|
7cb8eecff6f5afe4c996c8a424358de099faefd0
|
[
"MIT"
] | null | null | null |
TCCDjango/TCCDjango/__init__.py
|
hkirschke/App-Web-TCC
|
7cb8eecff6f5afe4c996c8a424358de099faefd0
|
[
"MIT"
] | null | null | null |
"""
Package for TCCDjango.
"""
| 7.75
| 22
| 0.612903
| 3
| 31
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 31
| 3
| 23
| 10.333333
| 0.730769
| 0.709677
| 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
|
9e84b3d997ea454c149b0450f9cb757b802e0932
| 473
|
py
|
Python
|
app/http/controllers/Home.py
|
Balogunolalere/masonite-crud
|
e95f5053db486467361126e00ab56f4da3fdb819
|
[
"MIT"
] | 1
|
2021-06-06T14:50:22.000Z
|
2021-06-06T14:50:22.000Z
|
app/http/controllers/Home.py
|
Balogunolalere/masonite-crud
|
e95f5053db486467361126e00ab56f4da3fdb819
|
[
"MIT"
] | null | null | null |
app/http/controllers/Home.py
|
Balogunolalere/masonite-crud
|
e95f5053db486467361126e00ab56f4da3fdb819
|
[
"MIT"
] | null | null | null |
"""A Home Module."""
from masonite.request import Request
from masonite.view import View
from masonite.controllers import Controller
class Home(Controller):
"""Home Controller Class."""
def __init__(self, request: Request):
"""Home Initializer
Arguments:
request {masonite.request.Request} -- The Masonite Request class.
"""
self.request = request
def show(self, view: View):
return view.render('home')
| 22.52381
| 77
| 0.651163
| 52
| 473
| 5.846154
| 0.384615
| 0.118421
| 0.118421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.241015
| 473
| 20
| 78
| 23.65
| 0.846797
| 0.287526
| 0
| 0
| 0
| 0
| 0.013514
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
9e92ab29fdff57bfca89d883c35383566da2ce37
| 460
|
py
|
Python
|
shoptools/checkout/signals.py
|
gregplaysguitar/django-shoptools
|
7af9b69409d146b3627931430714b934122a2498
|
[
"BSD-3-Clause"
] | 3
|
2015-09-11T01:24:25.000Z
|
2018-08-19T16:47:09.000Z
|
shoptools/checkout/signals.py
|
gregplaysguitar/django-shoptools
|
7af9b69409d146b3627931430714b934122a2498
|
[
"BSD-3-Clause"
] | 29
|
2015-10-06T22:15:50.000Z
|
2017-12-14T20:50:52.000Z
|
shoptools/checkout/signals.py
|
gregplaysguitar/django-shoptools
|
7af9b69409d146b3627931430714b934122a2498
|
[
"BSD-3-Clause"
] | 5
|
2015-10-05T23:33:51.000Z
|
2019-01-14T19:49:40.000Z
|
from django.dispatch import Signal
checkout_pre_payment = Signal(providing_args=['request'])
checkout_post_payment_pre_success = Signal(
providing_args=['transaction', 'kwargs']
)
checkout_post_payment_post_success = Signal(
providing_args=['transaction', 'kwargs']
)
checkout_post_payment_pre_failure = Signal(
providing_args=['transaction', 'kwargs']
)
checkout_post_payment_post_failure = Signal(
providing_args=['transaction', 'kwargs']
)
| 28.75
| 57
| 0.780435
| 52
| 460
| 6.461538
| 0.307692
| 0.223214
| 0.282738
| 0.357143
| 0.705357
| 0.705357
| 0.556548
| 0.556548
| 0.556548
| 0
| 0
| 0
| 0.104348
| 460
| 15
| 58
| 30.666667
| 0.815534
| 0
| 0
| 0.285714
| 0
| 0
| 0.163043
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.071429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9e99590e3eea892e19070652e682394d482f410a
| 529
|
py
|
Python
|
django_health_check_version/backends.py
|
saschwarz/django-health-check-version
|
fc4de7b6572786889bed4a53bc0c4ce478152038
|
[
"MIT"
] | null | null | null |
django_health_check_version/backends.py
|
saschwarz/django-health-check-version
|
fc4de7b6572786889bed4a53bc0c4ce478152038
|
[
"MIT"
] | null | null | null |
django_health_check_version/backends.py
|
saschwarz/django-health-check-version
|
fc4de7b6572786889bed4a53bc0c4ce478152038
|
[
"MIT"
] | null | null | null |
from django.conf import settings
from health_check.backends import BaseHealthCheckBackend
class VersionBackend(BaseHealthCheckBackend):
#: The status endpoints will respond with a 200 status code
#: even if the check errors.
critical_service = False
def check_status(self):
pass
def identifier(self):
return self.__class__.__name__ # Display name on the endpoint.
def pretty_status(self):
# return the string stored in the settings.py VERSION
return settings.VERSION
| 27.842105
| 71
| 0.725898
| 65
| 529
| 5.723077
| 0.630769
| 0.053763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007299
| 0.223062
| 529
| 18
| 72
| 29.388889
| 0.89781
| 0.31569
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0.1
| 0.2
| 0.2
| 0.9
| 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
|
9e997384abfe1efd2318ad0e80d77575aef46782
| 94
|
py
|
Python
|
tests/__main__.py
|
nybrandnewschool/review4d
|
b97422eab2db0a3f0a979b42c1d6cafe1282f436
|
[
"MIT"
] | null | null | null |
tests/__main__.py
|
nybrandnewschool/review4d
|
b97422eab2db0a3f0a979b42c1d6cafe1282f436
|
[
"MIT"
] | null | null | null |
tests/__main__.py
|
nybrandnewschool/review4d
|
b97422eab2db0a3f0a979b42c1d6cafe1282f436
|
[
"MIT"
] | 1
|
2021-11-01T20:42:20.000Z
|
2021-11-01T20:42:20.000Z
|
import os
if __name__ == '__main__':
os.system('c4dpy -m unittest discover -v -s tests')
| 18.8
| 55
| 0.670213
| 14
| 94
| 3.928571
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013158
| 0.191489
| 94
| 4
| 56
| 23.5
| 0.710526
| 0
| 0
| 0
| 0
| 0
| 0.489362
| 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
|
9ea9e7f8bfb917c7a27c8adb846803b0a567e021
| 182
|
py
|
Python
|
remove_empty_files.py
|
rahulporuri/trains
|
54572af1ea39a58c1761929d585d7b67f0949a6c
|
[
"MIT"
] | null | null | null |
remove_empty_files.py
|
rahulporuri/trains
|
54572af1ea39a58c1761929d585d7b67f0949a6c
|
[
"MIT"
] | null | null | null |
remove_empty_files.py
|
rahulporuri/trains
|
54572af1ea39a58c1761929d585d7b67f0949a6c
|
[
"MIT"
] | null | null | null |
import os
list_of_files = os.listdir('del/')
for filename in list_of_files:
if os.stat('del/'+filename).st_size == 0:
print filename
os.remove('del/'+filename)
| 20.222222
| 45
| 0.648352
| 28
| 182
| 4.035714
| 0.607143
| 0.106195
| 0.19469
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006944
| 0.208791
| 182
| 8
| 46
| 22.75
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.065934
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.166667
| null | null | 0.166667
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9ead01e1fd5156c0f6bf732b9394b696ffb190bd
| 228
|
py
|
Python
|
src/model/product.py
|
jpchagas/xepa-service
|
bd4f09f427ede789be5d94fca522b0d50b6f0ef7
|
[
"Apache-2.0"
] | null | null | null |
src/model/product.py
|
jpchagas/xepa-service
|
bd4f09f427ede789be5d94fca522b0d50b6f0ef7
|
[
"Apache-2.0"
] | null | null | null |
src/model/product.py
|
jpchagas/xepa-service
|
bd4f09f427ede789be5d94fca522b0d50b6f0ef7
|
[
"Apache-2.0"
] | null | null | null |
from sqlalchemy import Column, Integer, String
from src.model.base import Base
class Product(Base):
__tablename__ = 'product'
id = Column(Integer, primary_key=True)
description = Column(String(50), nullable=False)
| 25.333333
| 52
| 0.741228
| 29
| 228
| 5.655172
| 0.689655
| 0.158537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010471
| 0.162281
| 228
| 9
| 52
| 25.333333
| 0.848168
| 0
| 0
| 0
| 0
| 0
| 0.030568
| 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
|
9ebff92279f23707a0a0c876879d8bcff3fda4fe
| 56
|
py
|
Python
|
tests/package1/a.py
|
AndreaCrotti/breaking-changes
|
e9c788f76f845ff5c8c6a493d4e0b5736833a04b
|
[
"MIT"
] | null | null | null |
tests/package1/a.py
|
AndreaCrotti/breaking-changes
|
e9c788f76f845ff5c8c6a493d4e0b5736833a04b
|
[
"MIT"
] | null | null | null |
tests/package1/a.py
|
AndreaCrotti/breaking-changes
|
e9c788f76f845ff5c8c6a493d4e0b5736833a04b
|
[
"MIT"
] | null | null | null |
def func1():
pass
def func2(arg):
print(arg)
| 7
| 15
| 0.553571
| 8
| 56
| 3.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051282
| 0.303571
| 56
| 7
| 16
| 8
| 0.74359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.25
| 0
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7b368ea4db0cf405800b2d1b97996f0e36fb5477
| 242
|
py
|
Python
|
serie4/docu/Code/create_objects.py
|
Koopakiller/Edu-NLA
|
8376557cab9f74cedd19ee1573a8c71d7e415dd4
|
[
"MIT"
] | null | null | null |
serie4/docu/Code/create_objects.py
|
Koopakiller/Edu-NLA
|
8376557cab9f74cedd19ee1573a8c71d7e415dd4
|
[
"MIT"
] | null | null | null |
serie4/docu/Code/create_objects.py
|
Koopakiller/Edu-NLA
|
8376557cab9f74cedd19ee1573a8c71d7e415dd4
|
[
"MIT"
] | null | null | null |
# data_list = [(x, y), ...]
b = np.matrix(map(lambda pair:
[pair[1]], data_list))
a = np.matrix(map(lambda pair:
[e**(d * pair[0]),
e**(-d * pair[0]),
1], data_list))
| 26.888889
| 40
| 0.384298
| 31
| 242
| 2.903226
| 0.483871
| 0.266667
| 0.244444
| 0.377778
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027972
| 0.409091
| 242
| 8
| 41
| 30.25
| 0.601399
| 0.103306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7b4fd2bc941a06455ecc370da8d2b0b77682b14c
| 187
|
py
|
Python
|
CallParentConstructor/ParentClass.py
|
rubenhortas/python_examples
|
9d542972cfb7005eb2f324f4c2bffbafa4e8937b
|
[
"MIT"
] | null | null | null |
CallParentConstructor/ParentClass.py
|
rubenhortas/python_examples
|
9d542972cfb7005eb2f324f4c2bffbafa4e8937b
|
[
"MIT"
] | 1
|
2015-10-02T23:40:39.000Z
|
2015-10-02T23:40:39.000Z
|
CallParentConstructor/ParentClass.py
|
rubenhortas/python_examples
|
9d542972cfb7005eb2f324f4c2bffbafa4e8937b
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# _*_ coding:utf-8 _*
# Parent class has to inherit from "object" class
class Parent(object):
def __init__(self):
print("parent constructor called!")
| 20.777778
| 49
| 0.679144
| 25
| 187
| 4.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013245
| 0.192513
| 187
| 8
| 50
| 23.375
| 0.781457
| 0.475936
| 0
| 0
| 0
| 0
| 0.273684
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7b97f7a287b63ebae0df377655f5155aafd4a569
| 179
|
py
|
Python
|
plans/quota.py
|
afahounko/django-plans
|
089c90486ead3b8ab69b8b119f33d5ef923ca08e
|
[
"MIT"
] | 1
|
2019-04-01T05:52:37.000Z
|
2019-04-01T05:52:37.000Z
|
plans/quota.py
|
afahounko/django-plans
|
089c90486ead3b8ab69b8b119f33d5ef923ca08e
|
[
"MIT"
] | 2
|
2015-06-11T07:44:21.000Z
|
2015-06-11T07:47:31.000Z
|
plans/quota.py
|
afahounko/django-plans
|
089c90486ead3b8ab69b8b119f33d5ef923ca08e
|
[
"MIT"
] | null | null | null |
def get_user_quota(user):
"""
Tiny helper for getting quota dict for user (left mostly for backward compatibility)
"""
return user.userplan.plan.get_quota_dict()
| 25.571429
| 88
| 0.709497
| 25
| 179
| 4.92
| 0.64
| 0.146341
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201117
| 179
| 6
| 89
| 29.833333
| 0.86014
| 0.469274
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7ba0dff88053355c59c4cfd3d49bf0bd4be35092
| 13,241
|
py
|
Python
|
share/jnum/scripts/jnum.py
|
jayeshbadwaik/jnum
|
dacda162ade863e8ac1b4248147a0d20d3efc0a3
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
share/jnum/scripts/jnum.py
|
jayeshbadwaik/jnum
|
dacda162ade863e8ac1b4248147a0d20d3efc0a3
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
share/jnum/scripts/jnum.py
|
jayeshbadwaik/jnum
|
dacda162ade863e8ac1b4248147a0d20d3efc0a3
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import argparse
import json
import operator
import os
import pathlib
from collections import OrderedDict
def write_modification_warning(data, filestring):
filestring = filestring + \
"// Generated by enumeration.py. Do not modify this file manually.\n"
return filestring
def write_opening_header_guard(data, filestring):
filestring = filestring + "#ifndef " + data['header_guard']
filestring = filestring + "\n"
filestring = filestring + "#define " + data['header_guard']
filestring = filestring + "\n"
return filestring
def write_closing_header_guard(data, filestring):
filestring = filestring + "#endif // " + data['header_guard']
return filestring
def include_header_list(data, filestring):
filestring = filestring + "#include <string_view>"
filestring = filestring + "\n"
filestring = filestring + "#include <array>"
filestring = filestring + "\n"
filestring = filestring + "#include <jnum/jnum.hpp>"
filestring = filestring + "\n"
return filestring
def open_main_namespace(data, filestring):
filestring = filestring + "namespace " + data['namespace'] + " {"
filestring = filestring + "\n"
return filestring
def close_main_namespace(data, filestring):
filestring = filestring + "} // namespace " + data['namespace']
filestring = filestring + "\n"
return filestring
def open_struct(data, filestring):
filestring = filestring + "struct " + data['name'] + " { "
filestring = filestring + "\n"
return filestring
def register_as_jnum_type(data, filestring):
filestring = filestring + " // Registering as a jnum type"
filestring = filestring + "\n"
filestring = filestring + " using is_jnum = std::true_type;"
filestring = filestring + "\n"
return filestring
def write_underlying_type(data, filestring):
filestring = filestring + " // Underlying Type"
filestring = filestring + "\n"
filestring = filestring + " using underlying_type = " + \
data['underlying_type'] + ";"
filestring = filestring + "\n"
return filestring
def write_identifier_string(data, filestring):
filestring = filestring + " // Identifier String"
filestring = filestring + "\n"
filestring = filestring + " static constexpr std::string_view string = "
filestring = filestring + "\"" + data['string'] + "\";"
filestring = filestring + "\n"
return filestring
def write_namespace_string(data, filestring):
filestring = filestring + " // Identifier String"
filestring = filestring + "\n"
filestring = filestring + " static constexpr "
filestring = filestring + " std::string_view namespace_string = "
filestring = filestring + "\"" + data['namespace'] + "\";"
filestring = filestring + "\n"
return filestring
def write_option_list_decl(data, filestring):
filestring = filestring + " // Option List Declaration"
filestring = filestring + "\n"
option_list = data['option_list']
for option, value in option_list.items():
filestring = filestring + " static const " + data['name']
filestring = filestring + " " + option + ";"
filestring = filestring + "\n"
return filestring
def write_option_array(data, filestring):
filestring = filestring + " // List of Possible Options"
filestring = filestring + "\n"
filestring = filestring + " static const option_array_t option_array;"
filestring = filestring + "\n"
return filestring
def write_option_array_length(data, filestring):
filestring = filestring + " // Number of Options"
filestring = filestring + "\n"
filestring = filestring + " static constexpr std::size_t noption = "
filestring = filestring + str(len(data['option_list'])) + ";"
filestring = filestring + "\n"
return filestring
def write_option_array_type(data, filestring):
filestring = filestring + " // List of Possible Options"
filestring = filestring + "\n"
filestring = filestring + " using option_array_t"
filestring = filestring + " = std::array<"+data['name']+",noption>;"
filestring = filestring + "\n"
return filestring
def write_option_string_array(data, filestring):
filestring = filestring + " // List of Strings of Possible Options"
filestring = filestring + "\n"
filestring = filestring + " static constexpr auto option_string_array"
filestring = filestring + "\n"
filestring = filestring + " = jnum::detail::make_array("
filestring = filestring + "\n"
option_list = data['option_list']
for option, value in option_list.items():
filestring = filestring + " " + \
"std::string_view(\"" + option + "\")" + ","
filestring = filestring + "\n"
filestring = filestring[:-2]
filestring = filestring + "\n"
filestring = filestring + " );"
filestring = filestring + "\n"
return filestring
def write_enumeration(data, filestring):
filestring = filestring + " // Underlying Enumeration Class"
filestring = filestring + "\n"
filestring = filestring + " enum class enum_type : underlying_type { "
option_list = data['option_list']
for option, value in option_list.items():
filestring = filestring + option + " = " + value + ", "
filestring = filestring[:-2]
filestring = filestring + " };"
filestring = filestring + "\n"
return filestring
def write_state(data, filestring):
filestring = filestring + " // State of the Struct"
filestring = filestring + "\n"
filestring = filestring + \
" enum_type e_{enum_type::" + data['default_option'] + "};"
filestring = filestring + "\n"
return filestring
def write_public_default_constructor(data, filestring):
filestring = filestring + " // Default Constructor"
filestring = filestring + "\n"
filestring = filestring + " constexpr " + data['name']
filestring = filestring + "() = default;"
filestring = filestring + "\n"
return filestring
def write_private_constructor(data, filestring):
filestring = filestring + " // Private Constructor"
filestring = filestring + "\n"
filestring = filestring + " constexpr " + data['name']
filestring = filestring + "(enum_type const& e) : e_(e) {}"
filestring = filestring + "\n"
return filestring
def write_ut_conversion(data, filestring):
filestring = filestring + " // Converting to Underlying Type"
filestring = filestring + "\n"
filestring = filestring + " constexpr"
filestring = filestring + " underlying_type underlying_value() "
filestring = filestring + " const "
filestring = filestring + "{ return static_cast<underlying_type>(e_); }"
filestring = filestring + "\n"
return filestring
def write_implicit_conversion(data, filestring):
filestring = filestring + " // Implicit Conversion to Enumeration"
filestring = filestring + "\n"
filestring = filestring + " constexpr operator enum_type() const "
filestring = filestring + "{ return e_; }"
filestring = filestring + "\n"
return filestring
def switch_to_public(data, filestring):
filestring = filestring + "public: "
filestring = filestring + "\n"
return filestring
def switch_to_private(data, filestring):
filestring = filestring + "private: "
filestring = filestring + "\n"
return filestring
def close_struct(data, filestring):
filestring = filestring + "}; "
filestring = filestring + "\n"
return filestring
def write_struct(data, filestring):
filestring = open_struct(data, filestring)
filestring = switch_to_public(data, filestring)
filestring = write_underlying_type(data, filestring)
filestring = filestring + "\n"
filestring = write_enumeration(data, filestring)
filestring = filestring + "\n"
filestring = write_identifier_string(data, filestring)
filestring = filestring + "\n"
filestring = write_namespace_string(data, filestring)
filestring = filestring + "\n"
filestring = write_option_list_decl(data, filestring)
filestring = filestring + "\n"
filestring = write_option_array_length(data, filestring)
filestring = filestring + "\n"
filestring = write_option_array_type(data, filestring)
filestring = filestring + "\n"
filestring = write_option_array(data, filestring)
filestring = filestring + "\n"
filestring = write_option_string_array(data, filestring)
filestring = filestring + "\n"
filestring = write_public_default_constructor(data, filestring)
filestring = filestring + "\n"
filestring = switch_to_private(data, filestring)
filestring = write_state(data, filestring)
filestring = filestring + "\n"
filestring = write_private_constructor(data, filestring)
filestring = filestring + "\n"
filestring = switch_to_public(data, filestring)
filestring = write_ut_conversion(data, filestring)
filestring = filestring + "\n"
filestring = write_implicit_conversion(data, filestring)
filestring = close_struct(data, filestring)
return filestring
def write_option_array_def(data, filestring):
filestring = filestring + "// List of Possible Options"
filestring = filestring + "\n"
filestring = filestring + "inline constexpr " + \
data['name']+"::option_array_t "
filestring = filestring + data['name'] + "::option_array"
filestring = filestring + "\n"
filestring = filestring + " = jnum::detail::make_array("
filestring = filestring + "\n"
option_list = data['option_list']
for option, value in option_list.items():
filestring = filestring + " " + \
data['name'] + "(" + data['name'] + "::enum_type::" + option + "),"
filestring = filestring + "\n"
filestring = filestring[:-2]
filestring = filestring + "\n"
filestring = filestring + " );"
filestring = filestring + "\n"
return filestring
def write_option_list_def(data, filestring):
filestring = filestring + "// Option List Definition"
filestring = filestring + "\n"
option_list = data['option_list']
for option, value in option_list.items():
filestring = filestring + "inline constexpr " + data['name']
filestring = filestring + " " + data['name'] + "::" + option
filestring = filestring + "(enum_type::" + option + ");"
filestring = filestring + "\n"
return filestring
def open_aux_namespace(data, filestring):
filestring = filestring + "namespace jnum {"
filestring = filestring + "\n"
return filestring
def close_aux_namespace(data, filestring):
filestring = filestring + "} // namespace jnum"
filestring = filestring + "\n"
return filestring
def write_trait(data, filestring):
filestring = filestring + "template<>"
filestring = filestring + "\n"
filestring = filestring + "struct is_jnum<"
filestring = filestring + data['namespace'] + "::" + data['name']
filestring = filestring + "> : std::true_type {"
filestring = filestring + "\n"
filestring = filestring + "};"
filestring = filestring + "\n"
return filestring
def sort_by_value(d):
return OrderedDict(sorted(d.items(), key=lambda x: x[1]))
def generate_filestring(data):
filestring = ""
filestring = write_modification_warning(data, filestring)
filestring = write_opening_header_guard(data, filestring)
filestring = filestring + "\n"
filestring = include_header_list(data, filestring)
filestring = filestring + "\n"
filestring = open_main_namespace(data, filestring)
filestring = filestring + "\n"
filestring = write_struct(data, filestring)
filestring = filestring + "\n"
filestring = write_option_array_def(data, filestring)
filestring = filestring + "\n"
filestring = write_option_list_def(data, filestring)
filestring = close_main_namespace(data, filestring)
filestring = filestring + "\n"
filestring = open_aux_namespace(data, filestring)
filestring = write_trait(data, filestring)
filestring = close_aux_namespace(data, filestring)
filestring = filestring + "\n"
filestring = write_closing_header_guard(data, filestring)
filestring = filestring + "\n"
return filestring
def generate_cfo(file, relative_path):
data = json.load(file)
data['header_guard'] = relative_path.replace(
'/', '_').replace('.', '_').upper()
data['option_list'] = sort_by_value(data['option_list'])
return generate_filestring(data)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="jnum generator")
parser.add_argument("-i", "--input", help="Input File")
parser.add_argument("-o", "--output", help="Output File")
parser.add_argument("-r", "--relative", help="Relative Output File")
cmdline = parser.parse_args()
output_filename = cmdline.output
input_filename = cmdline.input
relative_path = cmdline.relative
with open(input_filename, 'r') as infile:
pathlib.Path(os.path.dirname(output_filename)).mkdir(
parents=True, exist_ok=True)
outfile = open(output_filename, "w+")
outfile.write(generate_cfo(infile, relative_path))
| 35.49866
| 79
| 0.672457
| 1,324
| 13,241
| 6.554381
| 0.111782
| 0.520857
| 0.191173
| 0.199816
| 0.793731
| 0.730814
| 0.627333
| 0.508412
| 0.34213
| 0.235538
| 0
| 0.000477
| 0.208972
| 13,241
| 372
| 80
| 35.594086
| 0.82805
| 0.001586
| 0
| 0.481605
| 0
| 0
| 0.165217
| 0.006279
| 0
| 0
| 0
| 0
| 0
| 1
| 0.113712
| false
| 0
| 0.020067
| 0.003344
| 0.247492
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7bc7d5979183b841c00a529c4b5396921a600095
| 1,422
|
py
|
Python
|
deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py
|
ShujaKhalid/deep-rl
|
99c6ba6c3095d1bfdab81bd01395ced96bddd611
|
[
"MIT"
] | 210
|
2016-04-09T14:26:00.000Z
|
2022-03-25T18:36:19.000Z
|
deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py
|
ShujaKhalid/deep-rl
|
99c6ba6c3095d1bfdab81bd01395ced96bddd611
|
[
"MIT"
] | 72
|
2016-09-04T09:30:19.000Z
|
2022-03-27T17:06:53.000Z
|
deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py
|
ShujaKhalid/deep-rl
|
99c6ba6c3095d1bfdab81bd01395ced96bddd611
|
[
"MIT"
] | 64
|
2016-04-09T14:26:49.000Z
|
2022-03-21T11:19:47.000Z
|
'''OpenGL extension IBM.static_data
This module customises the behaviour of the
OpenGL.raw.GL.IBM.static_data to provide a more
Python-friendly API
Overview (from the spec)
The OpenGL specification requires that data be bound at call time. The
IBM_static_data extension relaxes the bind-at-call semantics allowing
an implementation to dereference pointers some time after the
corresponding calls.
Because of the bind-at-call sematics of standard OpenGL, an
implementation is required to either copy or fully process data at the
time it is provided by the application. Copying data substantially
increases the demands on the memory subsystem; processing the data may
result in ineffective amortization of fixed costs. Neither copying nor
processing allows multiple rendering threads to operate on the original
data.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/IBM/static_data.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.IBM.static_data import *
from OpenGL.raw.GL.IBM.static_data import _EXTENSION_NAME
def glInitStaticDataIBM():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
### END AUTOGENERATED SECTION
| 37.421053
| 72
| 0.807314
| 207
| 1,422
| 5.483092
| 0.531401
| 0.047577
| 0.068722
| 0.037004
| 0.081057
| 0.081057
| 0.059912
| 0.059912
| 0
| 0
| 0
| 0
| 0.146273
| 1,422
| 38
| 73
| 37.421053
| 0.934926
| 0.801688
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| true
| 0
| 0.777778
| 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
|
7bcb23e5b9a15eedc4f32a353cfdcd4a3700da80
| 210
|
py
|
Python
|
backend/apps/files/storages/__init__.py
|
FroggyTaipei/froggy-service
|
6f17b38ba1ada9bb93f85923f1e55a2f480008f6
|
[
"MIT"
] | 174
|
2019-02-19T11:35:45.000Z
|
2021-12-20T03:20:28.000Z
|
backend/apps/files/storages/__init__.py
|
FroggyTaipei/froggy-service
|
6f17b38ba1ada9bb93f85923f1e55a2f480008f6
|
[
"MIT"
] | 56
|
2019-01-02T06:49:13.000Z
|
2021-03-23T09:31:18.000Z
|
backend/apps/files/storages/__init__.py
|
FroggyTaipei/froggy-service
|
6f17b38ba1ada9bb93f85923f1e55a2f480008f6
|
[
"MIT"
] | 36
|
2018-12-28T02:10:06.000Z
|
2021-09-02T03:06:35.000Z
|
from django.conf import settings
if settings.USE_GCS:
from .gcloud import CaseStorage, TempStorage
else:
from .local import CaseStorage, TempStorage
__all__ = (
CaseStorage,
TempStorage,
)
| 14
| 48
| 0.728571
| 23
| 210
| 6.434783
| 0.608696
| 0.445946
| 0.378378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.209524
| 210
| 14
| 49
| 15
| 0.891566
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c87b5913ae01446c5ee9812d6ea1b472775dc00a
| 75
|
py
|
Python
|
scfmsp/controlflowanalysis/StackPointer.py
|
sepidehpouyan/SCF-MSP430
|
1d7565bf38d9f42e775031d4ea8515ff99bef778
|
[
"MIT"
] | 1
|
2020-07-03T21:26:52.000Z
|
2020-07-03T21:26:52.000Z
|
scfmsp/controlflowanalysis/StackPointer.py
|
sepidehpouyan/SCF-MSP430
|
1d7565bf38d9f42e775031d4ea8515ff99bef778
|
[
"MIT"
] | null | null | null |
scfmsp/controlflowanalysis/StackPointer.py
|
sepidehpouyan/SCF-MSP430
|
1d7565bf38d9f42e775031d4ea8515ff99bef778
|
[
"MIT"
] | null | null | null |
from enum import Enum
class StackPointer(Enum):
SP = 'sp'
| 10.714286
| 26
| 0.573333
| 9
| 75
| 4.777778
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.346667
| 75
| 6
| 27
| 12.5
| 0.877551
| 0
| 0
| 0
| 0
| 0
| 0.028986
| 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
|
c8b48b4af57a9c033ef6979efb18d067d9c943d0
| 95
|
py
|
Python
|
run.py
|
salarchitetto/Footy
|
3d0fb94ef8268a696bf985766dc252ab7d75f35d
|
[
"MIT"
] | 2
|
2019-01-25T19:52:27.000Z
|
2020-04-24T16:39:04.000Z
|
run.py
|
salarchitetto/Footy
|
3d0fb94ef8268a696bf985766dc252ab7d75f35d
|
[
"MIT"
] | 6
|
2021-03-18T21:14:27.000Z
|
2022-02-10T08:07:44.000Z
|
run.py
|
salarchitetto/Footy
|
3d0fb94ef8268a696bf985766dc252ab7d75f35d
|
[
"MIT"
] | 2
|
2019-02-06T13:28:04.000Z
|
2020-04-19T15:57:02.000Z
|
from dashboard.app import app
if __name__ == '__main__':
app.run_server(host='127.0.0.1')
| 19
| 36
| 0.694737
| 16
| 95
| 3.5625
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 0.147368
| 95
| 4
| 37
| 23.75
| 0.62963
| 0
| 0
| 0
| 0
| 0
| 0.178947
| 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
|
c8cb9c1b0ae4464e67e18ef367eaefe7d6791df2
| 898
|
py
|
Python
|
virtman/drivers/connector.py
|
vmthunder/virtman
|
af81ee1eeab96094b716253ad93bda8630bc219d
|
[
"Apache-2.0"
] | 6
|
2015-02-09T23:39:58.000Z
|
2021-05-17T22:18:57.000Z
|
virtman/drivers/connector.py
|
vmthunder/virtman
|
af81ee1eeab96094b716253ad93bda8630bc219d
|
[
"Apache-2.0"
] | 1
|
2015-05-04T03:41:49.000Z
|
2015-05-04T03:41:49.000Z
|
virtman/drivers/connector.py
|
vmthunder/virtman
|
af81ee1eeab96094b716253ad93bda8630bc219d
|
[
"Apache-2.0"
] | 1
|
2016-08-12T07:00:01.000Z
|
2016-08-12T07:00:01.000Z
|
import os
from brick.initiator.connector import ISCSIConnector
from virtman.utils import singleton
from virtman.utils import rootwrap
from virtman.openstack.common import processutils as putils
class ISCSIExecutor(ISCSIConnector):
def __init__(self):
ISCSIConnector.__init__(self, device_scan_attempts=5,
root_helper=rootwrap.root_helper())
iscsi_connector = ISCSIExecutor()
def connect_volume(connection):
return iscsi_connector.connect_volume(connection)
def disconnect_volume(connection, device_info):
# TODO: Fix this problem
# putils.execute("iscsiadm", '-m', 'node', '-T', connection['target_iqn'],
# '-p', connection['target_portal'],
# '--logout', run_as_root=True,
# root_helper=rootwrap.root_helper())
iscsi_connector.disconnect_volume(connection, device_info)
| 29.933333
| 78
| 0.697105
| 97
| 898
| 6.175258
| 0.515464
| 0.066778
| 0.053422
| 0.073456
| 0.260434
| 0.140234
| 0.140234
| 0
| 0
| 0
| 0
| 0.001403
| 0.206013
| 898
| 29
| 79
| 30.965517
| 0.83871
| 0.268374
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 1
| 0.214286
| false
| 0
| 0.357143
| 0.071429
| 0.714286
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
c8f9e0e6dce02753c7664a0a682de8a37de1f10e
| 7,467
|
py
|
Python
|
imgurrlol.py
|
osis88/Lol-Bot
|
68d4654bc428e257d16f09c2b46c754ded7fbcda
|
[
"MIT"
] | null | null | null |
imgurrlol.py
|
osis88/Lol-Bot
|
68d4654bc428e257d16f09c2b46c754ded7fbcda
|
[
"MIT"
] | null | null | null |
imgurrlol.py
|
osis88/Lol-Bot
|
68d4654bc428e257d16f09c2b46c754ded7fbcda
|
[
"MIT"
] | null | null | null |
imgurr = {
1: "https://i.imgur.com/ZF6TzS4.jpg",
2: "https://i.imgur.com/eaSvBJR.jpg",
3: "https://i.imgur.com/bDoDm2W.jpg",
4: "https://i.imgur.com/5mCbYFU.jpg",
5: "https://i.imgur.com/zfnmieg.jpg",
6: "https://i.imgur.com/lLCL9qv.jpg",
7: "https://i.imgur.com/F0i1BLU.jpg",
8: "https://i.imgur.com/7OIXQLG.jpg",
9: "https://i.imgur.com/KFmlgZy.jpg",
10: "https://i.imgur.com/UrEOzI4.jpg",
11: "https://i.imgur.com/K5WiMx9.jpg",
12: "https://i.imgur.com/MZAZxzu.jpg",
13: "https://i.imgur.com/w8n0q8a.jpg",
14: "https://i.imgur.com/cFuNiC2.jpg",
15: "https://i.imgur.com/DK7Bomp.jpg",
16: "https://i.imgur.com/GjBp0kt.jpg",
17: "https://i.imgur.com/pnL74SI.jpg",
18: "https://i.imgur.com/9guSQxR.jpg",
19: "https://i.imgur.com/uBfynCs.jpg",
20: "https://i.imgur.com/CKsG7VO.jpg",
21: "https://i.imgur.com/wdhz2fk.jpg",
22: "https://i.imgur.com/Jd2SEnC.jpg",
23: "https://i.imgur.com/1BgEFxb.jpg",
24: "https://i.imgur.com/BjwghfS.jpg",
25: "https://i.imgur.com/duHxNbE.jpg",
26: "https://i.imgur.com/dgGNhUL.jpg",
27: "https://i.imgur.com/e1UFdqz.jpg",
28: "https://i.imgur.com/K6Y9JZ3.jpg",
29: "https://i.imgur.com/UP85w5J.jpg",
30: "https://i.imgur.com/N3tLvms.jpg",
31: "https://i.imgur.com/F9ebKgB.jpg",
32: "https://i.imgur.com/TiZkjEg.jpg",
33: "https://i.imgur.com/GGg1BsK.jpg",
34: "https://i.imgur.com/wtIVCIi.jpg",
35: "https://i.imgur.com/aXKWOAk.jpg",
36: "https://i.imgur.com/qnvO7P0.jpg",
37: "https://i.imgur.com/Yzelz03.jpg",
38: "https://i.imgur.com/RsQfn8g.jpg",
39: "https://i.imgur.com/soEuh9P.jpg",
40: "https://i.imgur.com/jv7zPlc.jpg",
41: "https://i.imgur.com/wZw3Yri.jpg",
42: "https://i.imgur.com/pXBORwx.jpg",
43: "https://i.imgur.com/jpJrYAo.jpg",
44: "https://i.imgur.com/RW0DB11.jpg",
45: "https://i.imgur.com/nx6QCDP.jpg",
48: "https://i.imgur.com/5W8lqRD.jpg",
50: "https://i.imgur.com/fZBrtvg.jpg",
51: "https://i.imgur.com/KWL2Kx0.jpg",
53: "https://i.imgur.com/THzZbX8.jpg",
54: "https://i.imgur.com/V1L500l.jpg",
55: "https://i.imgur.com/s8zboin.jpg",
56: "https://i.imgur.com/3cdAPZE.jpg",
57: "https://i.imgur.com/bsplpuH.jpg",
58: "https://i.imgur.com/htolCOs.jpg",
59: "https://i.imgur.com/GzGqIsM.jpg",
60: "https://i.imgur.com/mCiQLQn.jpg",
61: "https://i.imgur.com/pdlZ6nk.jpg",
62: "https://i.imgur.com/mwWKzYT.jpg",
63: "https://i.imgur.com/Kg0LnZj.jpg",
64: "https://i.imgur.com/od7Orfc.jpg",
67: "https://i.imgur.com/ttN8ztX.jpg",
68: "https://i.imgur.com/e8yYcSE.jpg",
69: "https://i.imgur.com/XQayffP.jpg",
72: "https://i.imgur.com/xId7tHe.jpg",
74: "https://i.imgur.com/sjEGnit.jpg",
75: "https://i.imgur.com/qHQcOmY.jpg",
76: "https://i.imgur.com/fNvuzWC.jpg",
77: "https://i.imgur.com/MKzn2Xt.jpg",
78: "https://i.imgur.com/p1LeIpx.jpg",
79: "https://i.imgur.com/HqalYmT.jpg",
80: "https://i.imgur.com/PsdtOeC.jpg",
81: "https://i.imgur.com/XVGTCNx.jpg",
82: "https://i.imgur.com/TXq3bQD.jpg",
83: "https://i.imgur.com/QXMBvl5.jpg",
84: "https://i.imgur.com/dpXPbkr.jpg",
85: "https://i.imgur.com/eNnAXmN.jpg",
86: "https://i.imgur.com/iHML95k.jpg",
89: "https://i.imgur.com/PR2doKA.jpg",
90: "https://i.imgur.com/cu9omVz.jpg",
91: "https://i.imgur.com/AZx4tYC.jpg",
92: "https://i.imgur.com/sXDFTO7.jpg",
96: "https://i.imgur.com/zC5vmPi.jpg",
98: "https://i.imgur.com/Ax1lIMx.jpg",
99: "https://i.imgur.com/5ZTee0u.jpg",
101: "https://i.imgur.com/Ola0xte.jpg",
102: "https://i.imgur.com/Tmkv0JI.jpg",
103: "https://i.imgur.com/Z1JLMKf.jpg",
104: "https://i.imgur.com/ZDJ2eQ2.jpg",
105: "https://i.imgur.com/L0CDOhX.jpg",
106: "https://i.imgur.com/D7wrTjn.jpg",
107: "https://i.imgur.com/MgxuBdD.jpg",
110: "https://i.imgur.com/4718YNg.jpg",
111: "https://i.imgur.com/fqMZmDZ.jpg",
112: "https://i.imgur.com/Y6jwkHe.jpg",
113: "https://i.imgur.com/tdA8WuF.jpg",
114: "https://i.imgur.com/zkwrwcm.jpg",
115: "https://i.imgur.com/iFLq8jj.jpg",
117: "https://i.imgur.com/Yg1eNG6.jpg",
119: "https://i.imgur.com/5sEbGN8.jpg",
120: "https://i.imgur.com/dysdHjz.jpg",
121: "https://i.imgur.com/07oyoLM.jpg",
122: "https://i.imgur.com/HGUDOCX.jpg",
126: "https://i.imgur.com/lO9zETO.jpg",
127: "https://i.imgur.com/gaGLUP6.jpg",
131: "https://i.imgur.com/wnzCRP9.jpg",
133: "https://i.imgur.com/utEQLIw.jpg",
134: "https://i.imgur.com/vFWHYl9.jpg",
136: "https://i.imgur.com/jgxNvTy.jpg",
141: "https://i.imgur.com/JrMkRad.jpg",
142: "https://i.imgur.com/P81p2wr.jpg",
143: "https://i.imgur.com/xE7sl1o.jpg",
145: "https://i.imgur.com/zDN9osw.jpg",
150: "https://i.imgur.com/OgPTI8O.jpg",
154: "https://i.imgur.com/HvzFCe7.jpg",
157: "https://i.imgur.com/0KPAmou.jpg",
161: "https://i.imgur.com/gWm4AuN.jpg",
163: "https://i.imgur.com/aGqruz1.jpg",
164: "https://i.imgur.com/OitwVCI.jpg",
201: "https://i.imgur.com/KAl9f7z.jpg",
202: "https://i.imgur.com/75WcYvm.jpg",
203: "https://i.imgur.com/zM3ETTw.jpg",
222: "https://i.imgur.com/FoKBRnY.jpg",
223: "https://i.imgur.com/4sfOq4q.jpg",
235: "https://i.imgur.com/VA9Ccyu.jpg",
236: "https://i.imgur.com/jEUmezn.jpg",
238: "https://i.imgur.com/NW6SJjg.jpg",
240: "https://i.imgur.com/vZet8q5.jpg",
245: "https://i.imgur.com/47OuzV0.jpg",
246: "https://i.imgur.com/CHyId4T.jpg",
254: "https://i.imgur.com/F5xc8QV.jpg",
266: "https://i.imgur.com/um7JXS5.jpg",
267: "https://i.imgur.com/g8E3iUh.jpg",
268: "https://i.imgur.com/lf1tZtX.jpg",
350: "https://i.imgur.com/lNzXvUu.jpg",
412: "https://i.imgur.com/EwWElSF.jpg",
420: "https://i.imgur.com/qx0KIG2.jpg",
421: "https://i.imgur.com/JPDxh1T.jpg",
427: "https://i.imgur.com/3tmCcr3.jpg",
429: "https://i.imgur.com/72e0ZoU.jpg",
432: "https://i.imgur.com/NCRkXQU.jpg",
497: "https://i.imgur.com/Gh6Ynl5.jpg",
498: "https://i.imgur.com/A8GWX9R.jpg",
516: "https://i.imgur.com/NHV2fld.jpg",
517: "https://i.imgur.com/545aSW4.jpg",
523: "https://i.imgur.com/HqcRJFz.jpg",
518: "https://i.imgur.com/kS9enli.jpg",
555: "https://i.imgur.com/T9wTTI4.jpg",
875: "https://i.imgur.com/F6kQVPx.jpg",
876: "https://i.imgur.com/yC7jB8Q.jpg",
234: "https://i.imgur.com/lYFyqkx.jpg",
360: "https://i.imgur.com/3r7eSNo.jpg",
777: "https://i.imgur.com/3e00vcD.jpg",
147: "https://i.imgur.com/1s7NTKk.jpg",
526: "https://i.imgur.com/5Sc75jz.jpg"}
| 47.56051
| 48
| 0.545199
| 1,079
| 7,467
| 3.772938
| 0.29101
| 0.226971
| 0.416114
| 0.5296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092943
| 0.227668
| 7,467
| 156
| 49
| 47.865385
| 0.61297
| 0
| 0
| 0
| 0
| 0
| 0.653078
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7404b9337a44c391ebdac2cf13faa1c4051df403
| 382
|
py
|
Python
|
logic/calender.py
|
neojames/Maccies-Schedule-Scrapper
|
b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751
|
[
"Apache-2.0"
] | null | null | null |
logic/calender.py
|
neojames/Maccies-Schedule-Scrapper
|
b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751
|
[
"Apache-2.0"
] | null | null | null |
logic/calender.py
|
neojames/Maccies-Schedule-Scrapper
|
b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
# Scrap.py
# Main program logic; Scraps scheduling data from peoplestuffuk.com, checks to see if it has been updated, and if it has
# updates a shared calender. Publishes scrapped CSV onto calenders.
# Published under the Apache License 2.0, maintained by James Bolton (james@neojames.me)
# TODO: Take CSV as an argument and yeet it onto a arged google calender
| 42.444444
| 120
| 0.772251
| 63
| 382
| 4.68254
| 0.84127
| 0.027119
| 0.047458
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00627
| 0.164921
| 382
| 8
| 121
| 47.75
| 0.918495
| 0.963351
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.125
| null | 1
| null | true
| 0
| 0
| null | null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cdc96e9ec30f596f003ff86f59cd05b5d38bd5a4
| 66
|
py
|
Python
|
fython/lexem/numberx.py
|
nicolasessisbreton/fython
|
988f5a94cee8b16b0000501a22239195c73424a1
|
[
"Apache-2.0"
] | 41
|
2016-01-21T05:14:45.000Z
|
2021-11-24T20:37:21.000Z
|
fython/lexem/numberx.py
|
nicolasessisbreton/fython
|
988f5a94cee8b16b0000501a22239195c73424a1
|
[
"Apache-2.0"
] | 5
|
2016-01-21T05:36:37.000Z
|
2016-08-22T19:26:51.000Z
|
fython/lexem/numberx.py
|
nicolasessisbreton/fython
|
988f5a94cee8b16b0000501a22239195c73424a1
|
[
"Apache-2.0"
] | 3
|
2016-01-23T04:03:44.000Z
|
2016-08-21T15:58:38.000Z
|
from fython.unit import *
class NumberX(Unit):
unit = l.numberx
| 13.2
| 25
| 0.727273
| 10
| 66
| 4.8
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 66
| 4
| 26
| 16.5
| 0.872727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a809479d6388e0379ee75d56c585a593bdf09c1e
| 58
|
py
|
Python
|
keys.py
|
imlegend19/Weather_App
|
0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d
|
[
"MIT"
] | 1
|
2018-07-11T05:56:03.000Z
|
2018-07-11T05:56:03.000Z
|
keys.py
|
imlegend19/Weather_App
|
0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d
|
[
"MIT"
] | null | null | null |
keys.py
|
imlegend19/Weather_App
|
0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d
|
[
"MIT"
] | null | null | null |
OPEN_WEATHER_API_KEY = "d72772c107da797f9df95ce49dad00e6"
| 29
| 57
| 0.896552
| 5
| 58
| 9.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.345455
| 0.051724
| 58
| 1
| 58
| 58
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0.551724
| 0.551724
| 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
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.