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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f6c92cc528835c1b9dd4b050480afc72d584f68 | 643 | py | Python | src/pcap_analysis/_dpkt_cnv.py | TNThieding/pcap-analysis | ac0bbc0848b1465dbd8e8c0252719f03c2c41e3e | [
"MIT"
] | null | null | null | src/pcap_analysis/_dpkt_cnv.py | TNThieding/pcap-analysis | ac0bbc0848b1465dbd8e8c0252719f03c2c41e3e | [
"MIT"
] | null | null | null | src/pcap_analysis/_dpkt_cnv.py | TNThieding/pcap-analysis | ac0bbc0848b1465dbd8e8c0252719f03c2c41e3e | [
"MIT"
] | null | null | null | """Convenience functions for dpkt package."""
import struct
from socket import inet_ntoa
from dpkt.compat import compat_ord
def unpack_ip_addr(hex_addr):
"""Unpack integer form IP address.
:param int hex_addr: IP address in single-integer form
:rtype: dotted decimal IP address
:rtype: str
"""
... | 22.172414 | 61 | 0.699844 | 93 | 643 | 4.688172 | 0.462366 | 0.09633 | 0.050459 | 0.077982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003899 | 0.202177 | 643 | 28 | 62 | 22.964286 | 0.846004 | 0.502333 | 0 | 0 | 0 | 0 | 0.026119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1f828fc7d132abee3171c8fa17c3aaf975d1aec4 | 56 | py | Python | src/reputation/__init__.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 18 | 2021-05-20T13:20:16.000Z | 2022-02-11T02:40:18.000Z | src/reputation/__init__.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 109 | 2021-05-21T20:14:23.000Z | 2022-03-31T20:56:10.000Z | src/reputation/__init__.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 4 | 2021-05-17T13:47:53.000Z | 2022-02-12T10:48:21.000Z | default_app_config = 'reputation.apps.ReputationConfig'
| 28 | 55 | 0.857143 | 6 | 56 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f1394c8e0548749ad8c443dd7f0e34449bae044 | 392 | py | Python | pySpatialTools/utils/selectors/__init__.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | 8 | 2015-07-21T05:15:16.000Z | 2018-06-12T18:22:52.000Z | pySpatialTools/utils/selectors/__init__.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | 6 | 2016-01-11T22:25:28.000Z | 2016-01-28T16:17:46.000Z | pySpatialTools/utils/selectors/__init__.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | null | null | null |
"""
Selectors
---------
Module which contains selectors utils for pySpatialTools.
"""
## Selectors
#from spdesc_mapper import Sp_DescriptorMapper
from spdesc_mapper import DummySelector, BaseCollectionSelectors,\
Feat_RetrieverSelector, Spatial_RetrieverSelector,\
FeatInd_RetrieverSelector, Desc_RetrieverSel... | 26.133333 | 76 | 0.82398 | 37 | 392 | 8.459459 | 0.621622 | 0.095847 | 0.153355 | 0.210863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 392 | 14 | 77 | 28 | 0.894286 | 0.339286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
2f15edd2a421f00d1840016c826660b43388afa5 | 4,688 | py | Python | campy/graphics/gimage.py | sredmond/campy | a082985375abf382341d226fc52300818f9dffe6 | [
"MIT"
] | 5 | 2018-12-03T19:18:50.000Z | 2021-05-31T07:17:06.000Z | campy/graphics/gimage.py | sredmond/acmpy | a082985375abf382341d226fc52300818f9dffe6 | [
"MIT"
] | 1 | 2017-06-07T04:33:46.000Z | 2017-06-07T04:33:46.000Z | campy/graphics/gimage.py | sredmond/acmpy | a082985375abf382341d226fc52300818f9dffe6 | [
"MIT"
] | 1 | 2017-06-06T07:29:07.000Z | 2017-06-06T07:29:07.000Z | """Graphical representation of an image.
To display a centered :class:`GImage` of the Stanford tree::
window = GWindow()
tree = GImage("StanfordTree.gif")
x = (window.width - tree.width) / 2
y = (window.height - tree.height) / 2
window.add(tree, x, y)
The above code assumes that you have a file n... | 34.725926 | 101 | 0.657637 | 632 | 4,688 | 4.731013 | 0.34019 | 0.03612 | 0.02408 | 0.02107 | 0.095987 | 0.07893 | 0.043478 | 0.026087 | 0 | 0 | 0 | 0.000565 | 0.24552 | 4,688 | 134 | 102 | 34.985075 | 0.844784 | 0.450085 | 0 | 0.192982 | 0 | 0 | 0.032141 | 0.01366 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.298246 | false | 0.035088 | 0.087719 | 0.070175 | 0.561404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2f505d43f48f85bbe80021764e4cb85e96fd0a6d | 295 | py | Python | bin/pannzer/operators/SANS.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | 1 | 2021-11-26T17:29:56.000Z | 2021-11-26T17:29:56.000Z | bin/pannzer/operators/SANS.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | 1 | 2020-03-19T21:12:23.000Z | 2020-03-19T21:12:23.000Z | bin/pannzer/operators/SANS.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | null | null | null | import sys
from myoperator import RowOperator
# Clone a rowwise operator. Class name and file name (operators/classname.py) must be identical.
class SANS(RowOperator) :
"""This operator don't do nothing."""
def __init__(self,glob):
pass
def process(self,row):
pass
| 24.583333 | 96 | 0.694915 | 40 | 295 | 5.025 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216949 | 295 | 11 | 97 | 26.818182 | 0.87013 | 0.430508 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.285714 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2f6a2adbc5b9eb20155d61c92f9d5b744346b56b | 2,080 | py | Python | serverdb.py | SpatiumPrinceps/Instability-Discord-Bot | 0cb3cd102bce2c47275d673e0c7a1636a6b2aaba | [
"MIT"
] | null | null | null | serverdb.py | SpatiumPrinceps/Instability-Discord-Bot | 0cb3cd102bce2c47275d673e0c7a1636a6b2aaba | [
"MIT"
] | null | null | null | serverdb.py | SpatiumPrinceps/Instability-Discord-Bot | 0cb3cd102bce2c47275d673e0c7a1636a6b2aaba | [
"MIT"
] | null | null | null | spec_emojis = {
":stagingdTRenegade:": 970090482745098320,
":stagingdTDragonhunter:": 970090216406798396,
":stagingdTSoulbeast:": 970090565289005117,
":stagingdTCatalyst:": 970090164963647558,
":stagingdTMAMA:": 971028780946710548,
":stagingdTSiax:": 971028798785081364,
":stagingdTEnsolyss:"... | 44.255319 | 50 | 0.742788 | 90 | 2,080 | 17.155556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.437086 | 0.128846 | 2,080 | 46 | 51 | 45.217391 | 0.415011 | 0 | 0 | 0 | 0 | 0 | 0.399038 | 0.085096 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f82092a73d6372e99450d5620c5405686cf1605 | 460 | py | Python | Notatki/1_Podstawy/3_Funkcje/5_Generatory.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | 2 | 2022-03-01T14:45:01.000Z | 2022-03-19T17:36:07.000Z | Notatki/1_Podstawy/3_Funkcje/5_Generatory.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | null | null | null | Notatki/1_Podstawy/3_Funkcje/5_Generatory.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | 1 | 2021-03-20T21:01:37.000Z | 2021-03-20T21:01:37.000Z | # Programowanie I R
# Funkcje: generatory
# Instrukcja yield ********************************************
def one_two_three():
yield 1
yield 2
yield 3
print(one_two_three())
gen = one_two_three()
print(next(gen))
print(next(gen))
print(next(gen))
# print(next(gen)) - błąd!
print(tuple(one_two_three()... | 18.4 | 63 | 0.617391 | 67 | 460 | 4 | 0.373134 | 0.179104 | 0.328358 | 0.298507 | 0.179104 | 0.179104 | 0.179104 | 0.179104 | 0.179104 | 0 | 0 | 0.007634 | 0.145652 | 460 | 25 | 64 | 18.4 | 0.6743 | 0.358696 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 3 |
85f5ee03fa6ad24a0873d2e701ff3bbc14efd1a6 | 253 | py | Python | certificate_copycat/__init__.py | moyaldror/certificate_copycat | aa4bc8aa0fb573e11f915c559f35e5edd2e90131 | [
"MIT"
] | null | null | null | certificate_copycat/__init__.py | moyaldror/certificate_copycat | aa4bc8aa0fb573e11f915c559f35e5edd2e90131 | [
"MIT"
] | null | null | null | certificate_copycat/__init__.py | moyaldror/certificate_copycat | aa4bc8aa0fb573e11f915c559f35e5edd2e90131 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .certificate_copycat import CertificateCopyCatGenerator, CertificateCopyCatResult
__author__ = 'Dror Moyal'
__version__ = '1.0.0'
__all__ = ['CertificateCopyCatResult', 'CertificateCopyCatGenerator']
| 31.625 | 87 | 0.814229 | 21 | 253 | 8.952381 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.114625 | 253 | 7 | 88 | 36.142857 | 0.825893 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
85fcc778a1b56ddc722d2f049f3ff3c5e8cb3f61 | 239 | py | Python | testing.py | jackshotgamer/ConnectX | 20378286524c93967c902940f0cfee3f417c1084 | [
"MIT"
] | null | null | null | testing.py | jackshotgamer/ConnectX | 20378286524c93967c902940f0cfee3f417c1084 | [
"MIT"
] | null | null | null | testing.py | jackshotgamer/ConnectX | 20378286524c93967c902940f0cfee3f417c1084 | [
"MIT"
] | null | null | null | import struct
def float_to_bin(num):
return format(struct.unpack('!I', struct.pack('!f', num))[0], '032b')
"""
0 01111111 11000010100011110101110
"""
10101000
print(float_to_bin(1.76))
if 1 or 0:
print('yay')
if 1 or 1:
pass
| 15.933333 | 73 | 0.661088 | 39 | 239 | 3.948718 | 0.641026 | 0.090909 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256281 | 0.167364 | 239 | 14 | 74 | 17.071429 | 0.517588 | 0 | 0 | 0 | 0 | 0 | 0.055838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0.111111 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
c81431fbcadd0dad4ef897dffba228c19ce04f83 | 3,107 | py | Python | pympc/test/test_optimization/test_parametric_programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 10 | 2019-10-22T16:58:43.000Z | 2021-12-05T06:12:53.000Z | pympc/test/test_optimization/test_parametric_programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 6 | 2020-11-13T19:09:43.000Z | 2022-02-10T02:23:23.000Z | pympc/test/test_optimization/test_parametric_programs.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 5 | 2019-02-23T04:10:06.000Z | 2020-09-06T22:59:26.000Z | # external imports
import unittest
import numpy as np
# internal inputs
from pympc.optimization.parametric_programs import MultiParametricQuadraticProgram
from pympc.geometry.utils import same_rows
class TestMultiParametricQuadraticProgram(unittest.TestCase):
"""
These are just some very basic tests.
The ... | 36.988095 | 114 | 0.560026 | 408 | 3,107 | 4.127451 | 0.230392 | 0.211995 | 0.204869 | 0.128266 | 0.445368 | 0.307007 | 0.283848 | 0.19715 | 0.155582 | 0.155582 | 0 | 0.029793 | 0.254586 | 3,107 | 83 | 115 | 37.433735 | 0.697323 | 0.095591 | 0 | 0.098361 | 0 | 0 | 0.031621 | 0.007546 | 0 | 0 | 0 | 0 | 0.409836 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.098361 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c84750599946e2579fd4e6d59ebcd17bf5d66765 | 971 | py | Python | scoring/models/Project.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | null | null | null | scoring/models/Project.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | 3 | 2021-06-09T19:34:38.000Z | 2022-02-10T12:25:27.000Z | scoring/models/Project.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | null | null | null | from django.db import models
class Project(models.Model):
project_id = models.CharField(primary_key=True, max_length=6)
description = models.CharField(max_length=1000)
project_title = models.CharField(max_length=500)
project_category = models.CharField(max_length=100)
avg_score = models.FloatField(... | 40.458333 | 65 | 0.740474 | 128 | 971 | 5.398438 | 0.289063 | 0.150507 | 0.202605 | 0.243126 | 0.526773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01827 | 0.15448 | 971 | 23 | 66 | 42.217391 | 0.823386 | 0 | 0 | 0 | 0 | 0 | 0.00309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0.047619 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c853a5076fd68cf43a276455afd3b3158717569c | 311 | py | Python | src/container/model/ContainerCluster.py | DeveloperUtils/docker-gen | b1dacf84c62a8ade45cd320c6b89c52fbabcbf1c | [
"MIT"
] | null | null | null | src/container/model/ContainerCluster.py | DeveloperUtils/docker-gen | b1dacf84c62a8ade45cd320c6b89c52fbabcbf1c | [
"MIT"
] | null | null | null | src/container/model/ContainerCluster.py | DeveloperUtils/docker-gen | b1dacf84c62a8ade45cd320c6b89c52fbabcbf1c | [
"MIT"
] | null | null | null | from src.container.model.ContainerNetwork import ContainerNetwork
from src.container.model.ContainerWrapper import ContainerWrapper
class ContainerCluster:
gateway: ContainerWrapper
containers: list[ContainerWrapper]
network: ContainerNetwork
def __init__(self):
self.containers = []
| 25.916667 | 65 | 0.784566 | 28 | 311 | 8.571429 | 0.571429 | 0.058333 | 0.133333 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154341 | 311 | 11 | 66 | 28.272727 | 0.912548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.875 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c867d7f8cfdd028d8d2570f685a2a324d8dce2a7 | 190 | py | Python | apps/map/views.py | procool/osteola | 38174bbf35c714d313b27fb0f6382e3b27d96648 | [
"BSD-2-Clause"
] | null | null | null | apps/map/views.py | procool/osteola | 38174bbf35c714d313b27fb0f6382e3b27d96648 | [
"BSD-2-Clause"
] | null | null | null | apps/map/views.py | procool/osteola | 38174bbf35c714d313b27fb0f6382e3b27d96648 | [
"BSD-2-Clause"
] | null | null | null | import logging
import datetime
from misc.mixins import myTemplateView
class indexView(myTemplateView):
template='index.tpl'
class mapView(myTemplateView):
template='map/map.tpl'
| 15.833333 | 38 | 0.778947 | 22 | 190 | 6.727273 | 0.636364 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 190 | 11 | 39 | 17.272727 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 3 |
c09581cb9c5a6be24f2aa0f433988b2967ad71df | 4,276 | py | Python | py/002_FullWiSig_create_compact_datasets.py | WiSig-dataset/wisig-subset-creation | bc8c6bd352a8c184a571e6b4c2d7a890cdfff3d8 | [
"BSD-3-Clause"
] | 1 | 2022-03-17T07:44:24.000Z | 2022-03-17T07:44:24.000Z | py/002_FullWiSig_create_compact_datasets.py | WiSig-dataset/wisig-subset-creation | bc8c6bd352a8c184a571e6b4c2d7a890cdfff3d8 | [
"BSD-3-Clause"
] | null | null | null | py/002_FullWiSig_create_compact_datasets.py | WiSig-dataset/wisig-subset-creation | bc8c6bd352a8c184a571e6b4c2d7a890cdfff3d8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
get_ipython().run_line_magic('load_ext', 'autoreload')
get_ipython().run_line_magic('autoreload', '2')
import matplotlib.pyplot as plt
import numpy as np
import pickle
import os
import scipy.optimize
# In[2]:
import os
GPU = ""
os.environ["CUDA_DEVICE_ORDER"]="PCI_... | 38.178571 | 1,231 | 0.565014 | 902 | 4,276 | 2.509978 | 0.117517 | 0.017226 | 0.059629 | 0.031802 | 0.53136 | 0.496466 | 0.467314 | 0.454064 | 0.446555 | 0.433304 | 0 | 0.251376 | 0.107811 | 4,276 | 111 | 1,232 | 38.522523 | 0.342071 | 0.025959 | 0 | 0.276596 | 0 | 0 | 0.362102 | 0.034716 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148936 | 0 | 0.148936 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c0ba0fc3460f5614625726c7444c9a35877787dc | 228 | py | Python | scripts/item/consume_2435333.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/item/consume_2435333.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/item/consume_2435333.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Monochrome April Fools' Damage Skin
success = sm.addDamageSkin(2435333)
if success:
sm.chat("The Monochrome April Fools' Damage Skin has been added to your account's damage skin collection.")
# sm.consumeItem(2435333)
| 38 | 111 | 0.758772 | 32 | 228 | 5.40625 | 0.65625 | 0.17341 | 0.231214 | 0.300578 | 0.346821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.157895 | 228 | 5 | 112 | 45.6 | 0.828125 | 0.258772 | 0 | 0 | 0 | 0 | 0.578313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c0ce9f356705488afe04c5057175e21f45dcd922 | 1,277 | py | Python | RLBotPack/VirxEB/util/replays.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | RLBotPack/VirxEB/util/replays.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | RLBotPack/VirxEB/util/replays.py | FootlessQuill54/RLBotPack | 6960df7cd7d35e9af6d082c808b1bd3983f17823 | [
"MIT"
] | null | null | null | from util.routines import recovery
class back_kickoff:
def __init__(self):
self.start_time = None
def run(self, agent):
if self.start_time is None:
self.start_time = agent.time
time_elapsed = round(agent.time - self.start_time, 5)
if (0 <= time_elapsed and time_e... | 39.90625 | 223 | 0.617071 | 185 | 1,277 | 4.075676 | 0.297297 | 0.350133 | 0.204244 | 0.262599 | 0.543767 | 0.51061 | 0.197613 | 0.127321 | 0.127321 | 0.127321 | 0 | 0.102784 | 0.268598 | 1,277 | 31 | 224 | 41.193548 | 0.704497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c0cf7972df8489f5dd501d3b154dd5151067279c | 513 | py | Python | python/kyu-8-i-love-you.py | KoderDojo/codewars | eb2c213404500df9742dc81f3694d747ac3416b4 | [
"MIT"
] | null | null | null | python/kyu-8-i-love-you.py | KoderDojo/codewars | eb2c213404500df9742dc81f3694d747ac3416b4 | [
"MIT"
] | null | null | null | python/kyu-8-i-love-you.py | KoderDojo/codewars | eb2c213404500df9742dc81f3694d747ac3416b4 | [
"MIT"
] | null | null | null | words = ['I love you', 'a little', 'a lot',
'passionately', 'madly', 'not at all']
def how_much_i_love_you(nb_petals):
"""
Returns the word associated with nb_petals.
:param nb_petals: int, petal number.
:return: str, the word associated with the petal number.
>>> assert(how_muc... | 30.176471 | 60 | 0.615984 | 79 | 513 | 3.746835 | 0.43038 | 0.101351 | 0.162162 | 0.162162 | 0.263514 | 0.212838 | 0 | 0 | 0 | 0 | 0 | 0.010127 | 0.230019 | 513 | 16 | 61 | 32.0625 | 0.739241 | 0.559454 | 0 | 0 | 0 | 0 | 0.274725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c0d528cd319642fecfe3fbfe726571bc57ad3e49 | 386 | py | Python | m_kplug/model/__init__.py | WaveLi123/m-kplug | 9888e67ac85888a16a6ad069d1de4b5877c92bc8 | [
"Apache-2.0"
] | 2 | 2022-03-15T12:30:03.000Z | 2022-03-24T09:08:17.000Z | m_kplug/model/__init__.py | WaveLi123/m-kplug | 9888e67ac85888a16a6ad069d1de4b5877c92bc8 | [
"Apache-2.0"
] | null | null | null | m_kplug/model/__init__.py | WaveLi123/m-kplug | 9888e67ac85888a16a6ad069d1de4b5877c92bc8 | [
"Apache-2.0"
] | null | null | null |
# MASS
from . import transformer_mass
# K-PLUG
from . import transformer_kplug, matchgo_task, fairseq_task_patch, multitask_s2s_kplug, transformer
#from .tasks import multitask_s2s_kplug, sequence_tagging, sentence_prediction_bert
from .criterions import auto_criterion, sequence_tagging
from .label_smoothed_cross_en... | 35.090909 | 99 | 0.870466 | 47 | 386 | 6.744681 | 0.617021 | 0.063091 | 0.132492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.088083 | 386 | 10 | 100 | 38.6 | 0.894886 | 0.240933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
238517fe56959c364496939f7fbddcba817b1b6d | 316,505 | py | Python | darksight_lev_designer.py | Tony904/darksight | 158bbc25157e79c83d6784c19a2b8b399dcbaa6e | [
"MIT"
] | null | null | null | darksight_lev_designer.py | Tony904/darksight | 158bbc25157e79c83d6784c19a2b8b399dcbaa6e | [
"MIT"
] | null | null | null | darksight_lev_designer.py | Tony904/darksight | 158bbc25157e79c83d6784c19a2b8b399dcbaa6e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'darksight_lev_designer.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from ... | 71.365276 | 159 | 0.765008 | 39,074 | 316,505 | 5.787224 | 0.0108 | 0.048397 | 0.035267 | 0.036236 | 0.933476 | 0.859873 | 0.678017 | 0.620846 | 0.521607 | 0.470358 | 0 | 0.021259 | 0.149897 | 316,505 | 4,434 | 160 | 71.381371 | 0.819179 | 0.000907 | 0 | 0.217421 | 1 | 0.000452 | 0.050847 | 0.021098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000452 | false | 0.009276 | 0.000226 | 0 | 0.000905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
238a3c241ac55188dcf4d8f220cf17521a83ee58 | 185 | py | Python | modapt/dataset/data_sample.py | jkvc/modapt | 44610e6f03fb151433f2db633e1d23cc0dc470fc | [
"MIT"
] | null | null | null | modapt/dataset/data_sample.py | jkvc/modapt | 44610e6f03fb151433f2db633e1d23cc0dc470fc | [
"MIT"
] | null | null | null | modapt/dataset/data_sample.py | jkvc/modapt | 44610e6f03fb151433f2db633e1d23cc0dc470fc | [
"MIT"
] | 1 | 2021-04-28T17:09:05.000Z | 2021-04-28T17:09:05.000Z | from dataclasses import dataclass
from typing import Optional
@dataclass
class DataSample:
id: str
text: str
y_idx: Optional[int]
domain_name: str
domain_idx: int
| 15.416667 | 33 | 0.718919 | 25 | 185 | 5.2 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232432 | 185 | 11 | 34 | 16.818182 | 0.915493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.888889 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
238dc42ec285b4a43a002acb9183713f2e3fd11b | 199 | py | Python | Chapter 12/ch12_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 12/ch12_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 12/ch12_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | class Person:
def __init__(self, n, g):
self.name = n
self.gender = g
def display(self):
print ("Name : ", self.n, ", Gender : ", self.g)
e1 = Person("Shikha", "Female")
e1.display()
| 22.111111 | 51 | 0.582915 | 29 | 199 | 3.862069 | 0.482759 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.226131 | 199 | 8 | 52 | 24.875 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.125 | 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 | 0 | 0 | 0 | 3 |
239b6bb9c6b5fdc0694ed782519959c77b668b4d | 1,136 | py | Python | product/views.py | amin-bahiraei-75/shop_back | afcc5907fe33de2db1615f14df71443d1a35bbd0 | [
"MIT"
] | 1 | 2021-12-24T15:20:37.000Z | 2021-12-24T15:20:37.000Z | product/views.py | amin-bahiraei-75/shop_back | afcc5907fe33de2db1615f14df71443d1a35bbd0 | [
"MIT"
] | null | null | null | product/views.py | amin-bahiraei-75/shop_back | afcc5907fe33de2db1615f14df71443d1a35bbd0 | [
"MIT"
] | null | null | null | from rest_framework import permissions
from rest_framework.generics import ListAPIView, RetrieveAPIView,CreateAPIView, RetrieveUpdateAPIView,DestroyAPIView
from product.serializers import ProductSerializer
from product.models import Product
from rest_framework.permissions import IsAdminUser
# Create your views here.
... | 35.5 | 116 | 0.794014 | 116 | 1,136 | 7.637931 | 0.362069 | 0.08465 | 0.180587 | 0.180587 | 0.427765 | 0.427765 | 0.427765 | 0.427765 | 0.427765 | 0.427765 | 0 | 0 | 0.136444 | 1,136 | 32 | 117 | 35.5 | 0.90316 | 0.020246 | 0 | 0.48 | 0 | 0 | 0.001799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.96 | 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 | 0 | 1 | 0 | 0 | 3 |
23c64483920511d081ca7ee0102f0ff97b3784d7 | 51 | py | Python | test/account/__init__.py | rishikumar/django_test_model | 72c9fe41795da85d5e113f81e7705fc76439cd4e | [
"BSD-3-Clause"
] | null | null | null | test/account/__init__.py | rishikumar/django_test_model | 72c9fe41795da85d5e113f81e7705fc76439cd4e | [
"BSD-3-Clause"
] | null | null | null | test/account/__init__.py | rishikumar/django_test_model | 72c9fe41795da85d5e113f81e7705fc76439cd4e | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'test.account.apps.AppConfig'
| 25.5 | 50 | 0.823529 | 7 | 51 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0.529412 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23d53b1786f03a5447c9d15a219c68323b6f73ae | 271 | py | Python | sugartime/__init__.py | danielkentwood/sugartime | 721ee417048a719d9fe8f8094ae9254044fea493 | [
"MIT"
] | null | null | null | sugartime/__init__.py | danielkentwood/sugartime | 721ee417048a719d9fe8f8094ae9254044fea493 | [
"MIT"
] | null | null | null | sugartime/__init__.py | danielkentwood/sugartime | 721ee417048a719d9fe8f8094ae9254044fea493 | [
"MIT"
] | null | null | null | """
This module implements methods for predicting blood glucose (bg) levels
based on historical bg, insulin, and meal carbohydrates. It also allows
for optimizing future insulin bolusing given a user-supplied input
of amount and timing of future meal carbohydrates.
"""
| 38.714286 | 71 | 0.800738 | 39 | 271 | 5.564103 | 0.794872 | 0.156682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151292 | 271 | 6 | 72 | 45.166667 | 0.943478 | 0.96679 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23d5499e1a16eb92672baa6cd9debc768dc7320f | 53 | py | Python | script.py | georgeBl/voice-recon-bot | 3ad3e3705b2eb6e5c92d841ec59c332f348f3c97 | [
"MIT"
] | null | null | null | script.py | georgeBl/voice-recon-bot | 3ad3e3705b2eb6e5c92d841ec59c332f348f3c97 | [
"MIT"
] | null | null | null | script.py | georgeBl/voice-recon-bot | 3ad3e3705b2eb6e5c92d841ec59c332f348f3c97 | [
"MIT"
] | null | null | null | import speech_recognition as sr
r = sr.Recognizer(); | 17.666667 | 31 | 0.773585 | 8 | 53 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 53 | 3 | 32 | 17.666667 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 3 |
23d86310e7fb13553165dd2ff73a166904753e47 | 5,065 | py | Python | sdfs/dasa.py | yeungyh/pickle | 90e467aef3b8cdfd1dac009b88a4d38f35622c6f | [
"MIT"
] | null | null | null | sdfs/dasa.py | yeungyh/pickle | 90e467aef3b8cdfd1dac009b88a4d38f35622c6f | [
"MIT"
] | null | null | null | sdfs/dasa.py | yeungyh/pickle | 90e467aef3b8cdfd1dac009b88a4d38f35622c6f | [
"MIT"
] | null | null | null | import numpy as np
import scipy.sparse as sps
import scipy.sparse.linalg as spl
from time import perf_counter
class DASAExp(object):
def __init__(self, objfun, obj_sens_state, obj_sens_param, solvefun, res_sens_state, res_sens_param):
self.objfun = objfun
self.solvefun = solvefun
... | 37.242647 | 136 | 0.604146 | 711 | 5,065 | 4.004219 | 0.087201 | 0.127503 | 0.073059 | 0.112399 | 0.752371 | 0.738321 | 0.704601 | 0.69582 | 0.681419 | 0.681419 | 0 | 0.004428 | 0.286673 | 5,065 | 136 | 137 | 37.242647 | 0.783559 | 0.03001 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0.008929 | 0.258929 | 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 | 0 | 0 | 0 | 3 |
f1b5dac7faa2e4936e58ea54e9cefa9e191a6b47 | 57 | py | Python | Script_Python/Exercicios_Secao4/imprime_num_int.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | Script_Python/Exercicios_Secao4/imprime_num_int.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | Script_Python/Exercicios_Secao4/imprime_num_int.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | num = int(input('digite um numero inteiro: '))
print(num) | 28.5 | 46 | 0.701754 | 9 | 57 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 57 | 2 | 47 | 28.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f1d7c7c400e8b8ffb76811c8b3a220125f712d67 | 346 | py | Python | codewars/python/alphabet_position.py | bernardosequeir/CTFfiles | 36a6ceba49d9a9019056d3669c5e8f84aa83b618 | [
"MIT"
] | null | null | null | codewars/python/alphabet_position.py | bernardosequeir/CTFfiles | 36a6ceba49d9a9019056d3669c5e8f84aa83b618 | [
"MIT"
] | 5 | 2020-09-23T18:28:25.000Z | 2020-09-23T18:28:41.000Z | codewars/python/alphabet_position.py | bernardosequeir/CTFSolutions | 503944617cb18826d12ab98fa33fd761e791328a | [
"MIT"
] | null | null | null | def alphabet_position(text):
string = ""
for char in text:
if(ord(char) >= ord('A') and ord(char) < ord('a')):
string += str(ord(char) - ord('A') + 1)
string += " "
elif ord(char) - ord('a') >= 0:
string += str(ord(char) - ord('a') + 1)
string += "... | 31.454545 | 59 | 0.442197 | 44 | 346 | 3.454545 | 0.386364 | 0.230263 | 0.328947 | 0.361842 | 0.355263 | 0.355263 | 0.355263 | 0.355263 | 0 | 0 | 0 | 0.017857 | 0.352601 | 346 | 10 | 60 | 34.6 | 0.660714 | 0 | 0 | 0.2 | 0 | 0 | 0.020231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f1e9266cd5abf2b5f414691bc07a4d53dff8fca9 | 242 | py | Python | src/tensor/matrix/_op/arithmetic/inner.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | src/tensor/matrix/_op/arithmetic/inner.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | src/tensor/matrix/_op/arithmetic/inner.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | """
*Inner Product*
"""
from dataclasses import dataclass
import jax.numpy as jnp
from ._operator import MatrixArithmetic
__all__ = ["InnerProduct"]
@dataclass
class InnerProduct(
MatrixArithmetic,
):
operator = jnp.inner
| 11.52381 | 39 | 0.714876 | 24 | 242 | 7 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194215 | 242 | 20 | 40 | 12.1 | 0.861538 | 0.061983 | 0 | 0 | 0 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7b07cf84da45b50a008a66cf2a9ff0d5fbfe04ff | 22 | py | Python | keen/tests/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 85 | 2015-01-06T14:04:34.000Z | 2021-11-22T19:10:50.000Z | keen/tests/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 115 | 2015-01-11T19:11:42.000Z | 2021-05-12T07:36:00.000Z | keen/tests/__init__.py | ferpection/KeenClient-Python | d54fb6dbea78769fe781169a58931786a4294d77 | [
"MIT"
] | 61 | 2015-01-13T23:37:40.000Z | 2021-09-18T21:08:23.000Z | __author__ = 'dkador'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
7b0f8a91fb0216625b595b943302053d721713aa | 4,093 | py | Python | day7.py | JnxF/advent-of-code-2019 | cf523d778dc4325251c3eeaf2ddf298b1060e06b | [
"MIT"
] | null | null | null | day7.py | JnxF/advent-of-code-2019 | cf523d778dc4325251c3eeaf2ddf298b1060e06b | [
"MIT"
] | null | null | null | day7.py | JnxF/advent-of-code-2019 | cf523d778dc4325251c3eeaf2ddf298b1060e06b | [
"MIT"
] | null | null | null | import itertools
L_original = [3,8,1001,8,10,8,105,1,0,0,21,38,47,64,89,110,191,272,353,434,99999,3,9,101,4,9,9,102,3,9,9,101,5,9,9,4,9,99,3,9,1002,9,5,9,4,9,99,3,9,101,2,9,9,102,5,9,9,1001,9,5,9,4,9,99,3,9,1001,9,5,9,102,4,9,9,1001,9,5,9,1002,9,2,9,1001,9,3,9,4,9,99,3,9,102,2,9,9,101,4,9,9,1002,9,4,9,1001,9,4,9,4,9,... | 36.544643 | 1,247 | 0.485219 | 939 | 4,093 | 2.053248 | 0.095847 | 0.062241 | 0.088693 | 0.093361 | 0.55861 | 0.426867 | 0.396784 | 0.392635 | 0.383299 | 0.383299 | 0 | 0.27329 | 0.289274 | 4,093 | 112 | 1,248 | 36.544643 | 0.389481 | 0.028585 | 0 | 0.280488 | 0 | 0 | 0.004664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.012195 | 0 | 0.085366 | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b1b2e6d7f87caec6fb899ff500259064090fff5 | 227 | py | Python | pypodio2/adapters.py | jvm986/podio-py | a48924c4aa4c30dfafdcacd228f512b930b31ee9 | [
"MIT"
] | 32 | 2015-02-02T14:45:01.000Z | 2021-09-22T21:01:23.000Z | pypodio2/adapters.py | jvm986/podio-py | a48924c4aa4c30dfafdcacd228f512b930b31ee9 | [
"MIT"
] | 15 | 2015-03-19T16:00:27.000Z | 2022-03-30T22:18:27.000Z | pypodio2/adapters.py | jvm986/podio-py | a48924c4aa4c30dfafdcacd228f512b930b31ee9 | [
"MIT"
] | 45 | 2015-01-06T11:21:54.000Z | 2022-03-27T00:25:48.000Z |
import json
from .client import FailedRequest
def json_response(resp):
try:
return json.loads(resp)
except:
raise FailedRequest(resp)
def http_request(method, *args, **kwargs):
print("Called")
| 14.1875 | 42 | 0.665198 | 27 | 227 | 5.518519 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23348 | 227 | 15 | 43 | 15.133333 | 0.856322 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
9e36537146967b81173edbc8f999fa7afe6ea918 | 801 | py | Python | mtw/login/views.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | null | null | null | mtw/login/views.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | null | null | null | mtw/login/views.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse,HttpResponseRedirect
from django.contrib.auth import authenticate,login,logout
from login.forms import UserForm
from ... | 25.83871 | 58 | 0.714107 | 99 | 801 | 5.727273 | 0.424242 | 0.123457 | 0.074074 | 0.10582 | 0.112875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203496 | 801 | 30 | 59 | 26.7 | 0.888715 | 0.028714 | 0 | 0 | 0 | 0 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.421053 | 0 | 0.526316 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
9e376c24b55c16230a8486fa13729f01c521437d | 62 | py | Python | spec/code_samples/Python/v1@delivery_reports/get.py | xhkz/documentation | e434ed3996ead10eb9ff9a070a4c1ff218815de0 | [
"MIT"
] | null | null | null | spec/code_samples/Python/v1@delivery_reports/get.py | xhkz/documentation | e434ed3996ead10eb9ff9a070a4c1ff218815de0 | [
"MIT"
] | 2 | 2020-11-11T01:03:57.000Z | 2022-01-22T11:04:29.000Z | spec/code_samples/Python/v1@delivery_reports/get.py | xhkz/documentation | e434ed3996ead10eb9ff9a070a4c1ff218815de0 | [
"MIT"
] | 2 | 2021-01-19T04:11:54.000Z | 2021-03-31T22:10:50.000Z | result = delivery_reports_controller.check_delivery_reports()
| 31 | 61 | 0.887097 | 7 | 62 | 7.285714 | 0.714286 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 62 | 1 | 62 | 62 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e7bcfc59f9dc6746990fe1c993414dfc507ba15 | 231 | py | Python | 2020_11_Cooper_Type/recipieBuilder.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | 6 | 2018-03-24T17:31:51.000Z | 2021-11-18T06:02:09.000Z | 2020_11_Cooper_Type/recipieBuilder.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | null | null | null | 2020_11_Cooper_Type/recipieBuilder.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | null | null | null | font = CurrentFont()
for glyph in font:
if (len(glyph.components)) != 0:
parts = []
for c in glyph.components:
parts.append(c.baseGlyph)
print(f"{glyph.name} = {' + '.join(parts)}")
| 25.666667 | 52 | 0.52381 | 27 | 231 | 4.481481 | 0.62963 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.316017 | 231 | 9 | 53 | 25.666667 | 0.759494 | 0 | 0 | 0 | 0 | 0 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e8887510e62a5a74963d2a05883486e0fad99bc | 435 | py | Python | tests/memory_observer.py | gczheng/redis-rdb-tools | 3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7 | [
"MIT"
] | 3,691 | 2015-01-01T09:43:44.000Z | 2022-03-30T06:08:16.000Z | tests/memory_observer.py | gczheng/redis-rdb-tools | 3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7 | [
"MIT"
] | 119 | 2015-03-11T14:54:39.000Z | 2022-03-21T01:56:09.000Z | tests/memory_observer.py | gczheng/redis-rdb-tools | 3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7 | [
"MIT"
] | 668 | 2015-01-03T03:56:29.000Z | 2022-03-31T12:35:13.000Z | import redis
import time
def main():
r = redis.StrictRedis()
curr_memory = prev_memory = r.info()['used_memory']
while True:
if prev_memory != curr_memory:
print('Delta Memory : %d, Total Memory : %d' % ((curr_memory - prev_memory), curr_memory))
time.sleep(1)
p... | 24.166667 | 102 | 0.595402 | 54 | 435 | 4.425926 | 0.407407 | 0.251046 | 0.267782 | 0.251046 | 0.175732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.278161 | 435 | 17 | 103 | 25.588235 | 0.757962 | 0 | 0 | 0 | 0 | 0 | 0.152074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 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 | 0 | 0 | 3 |
9e9b294eac43cae6aa4df74a313d29eadf66823f | 1,344 | py | Python | fp_py/src/main/fruitpunch/native/common/observer.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_py/src/main/fruitpunch/native/common/observer.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_py/src/main/fruitpunch/native/common/observer.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | 1 | 2020-08-14T02:51:47.000Z | 2020-08-14T02:51:47.000Z | from fruitpunch.native.native_class import NativeClass
import libfp_core
class ObserverWrap(libfp_core.ObserverWrap):
def action(self):
ev = NativeClass.to_python(self.get_event())
f = self.function
f(ev)
class Observer(NativeClass):
def __init__(self):
NativeClass.__init__(sel... | 30.545455 | 79 | 0.713542 | 112 | 1,344 | 5.035714 | 0.366071 | 0.099291 | 0.074468 | 0.090426 | 0.156028 | 0.156028 | 0.109929 | 0 | 0 | 0 | 0 | 0 | 0.224702 | 1,344 | 44 | 80 | 30.545455 | 0.541267 | 0.334821 | 0 | 0.086957 | 0 | 0 | 0.039459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.043478 | 0.086957 | 0.130435 | 0.695652 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
7b36e658e6ccae29f77f00c9fed9d57bf9fcbb8f | 142 | py | Python | proselint/__main__.py | kerri-hicks/proselint | 12efe888042703ba409b51de660ed423622b2ad2 | [
"BSD-3-Clause"
] | 4,163 | 2015-10-03T07:37:21.000Z | 2022-03-31T03:52:32.000Z | proselint/__main__.py | kerri-hicks/proselint | 12efe888042703ba409b51de660ed423622b2ad2 | [
"BSD-3-Clause"
] | 878 | 2015-09-30T20:03:33.000Z | 2022-03-28T11:06:15.000Z | proselint/__main__.py | kerri-hicks/proselint | 12efe888042703ba409b51de660ed423622b2ad2 | [
"BSD-3-Clause"
] | 249 | 2015-10-04T12:21:27.000Z | 2022-02-28T22:13:11.000Z | """
__main__.py.
This lets you run python -m proselint.
"""
from .command_line import proselint
if __name__ == '__main__':
proselint()
| 12.909091 | 38 | 0.690141 | 18 | 142 | 4.722222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 142 | 10 | 39 | 14.2 | 0.732759 | 0.366197 | 0 | 0 | 0 | 0 | 0.097561 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7b6efe625cd630701408c77b4b38dcc3e79fc72a | 222 | py | Python | setup.py | EBI-Metagenomics/hmmer-reader-py | d14069eb51b295061479e833b0c5833fc7cbe2ec | [
"MIT"
] | 1 | 2020-05-26T02:05:37.000Z | 2020-05-26T02:05:37.000Z | setup.py | EBI-Metagenomics/hmmer-reader-py | d14069eb51b295061479e833b0c5833fc7cbe2ec | [
"MIT"
] | null | null | null | setup.py | EBI-Metagenomics/hmmer-reader-py | d14069eb51b295061479e833b0c5833fc7cbe2ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
if __name__ == "__main__":
setup(
entry_points={"console_scripts": ["hmmer-show = hmmer_reader:cli"]},
cffi_modules="build_ext.py:ffibuilder",
)
| 22.2 | 76 | 0.662162 | 27 | 222 | 4.962963 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193694 | 222 | 9 | 77 | 24.666667 | 0.748603 | 0.09009 | 0 | 0 | 0 | 0 | 0.373134 | 0.114428 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b8b5aa09b3acce038548666a6f844600952dd43 | 617 | py | Python | fault/__init__.py | splhack/fault | 5e52bb1f69675f8a0ebeeca94fecb674784c091d | [
"BSD-3-Clause"
] | null | null | null | fault/__init__.py | splhack/fault | 5e52bb1f69675f8a0ebeeca94fecb674784c091d | [
"BSD-3-Clause"
] | null | null | null | fault/__init__.py | splhack/fault | 5e52bb1f69675f8a0ebeeca94fecb674784c091d | [
"BSD-3-Clause"
] | null | null | null | from .wrapped_internal_port import WrappedVerilogInternalPort
from .real_type import RealIn, RealOut, RealKind, RealType
from .elect_type import ElectIn, ElectOut, ElectKind, ElectType
from .tester import Tester
from .power_tester import PowerTester
from .value import Value, AnyValue, UnknownValue, HiZ
import fault.ran... | 41.133333 | 63 | 0.802269 | 75 | 617 | 6.466667 | 0.573333 | 0.074227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.150729 | 617 | 14 | 64 | 44.071429 | 0.921756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.928571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7b9a0016ec40959f374d8f73a8136456dee669c5 | 295 | py | Python | layers/invoke/ledgersources/selfledgersource.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | layers/invoke/ledgersources/selfledgersource.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | layers/invoke/ledgersources/selfledgersource.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | from ledgersource import LedgerSource
class SelfLedgerSource(LedgerSource):
def __init__(self, name):
self.url = "https://www.example.com/ledgers/{}".format(name)
def pull(self):
# TODO pull from Machina endpoint
raise NotImplemented()
pass
| 24.583333 | 69 | 0.640678 | 31 | 295 | 5.967742 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261017 | 295 | 11 | 70 | 26.818182 | 0.848624 | 0.105085 | 0 | 0 | 0 | 0 | 0.135458 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7bac10f7f198d3da18ec364d95a8ff1f843d0e76 | 318 | py | Python | test.py | jjpmann/led-project | 4d60a7174bcfdfd48da7d223cc60ca84fe0265b7 | [
"MIT"
] | null | null | null | test.py | jjpmann/led-project | 4d60a7174bcfdfd48da7d223cc60ca84fe0265b7 | [
"MIT"
] | null | null | null | test.py | jjpmann/led-project | 4d60a7174bcfdfd48da7d223cc60ca84fe0265b7 | [
"MIT"
] | null | null | null | # test
from magichome import MagicHomeApi
# controller1 = MagicHomeApi('10.10.123.3', 0)
controller1 = MagicHomeApi('192.168.1.31', 0)
# print(controller1.get_status())
controller1.update_device(255, 0, 0)
#controller1.update_device(0, 255, 0)
#controller1.update_device(10, 10, 250)
#controller1.turn_on() | 15.9 | 46 | 0.732704 | 44 | 318 | 5.181818 | 0.522727 | 0.157895 | 0.302632 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153571 | 0.119497 | 318 | 20 | 47 | 15.9 | 0.660714 | 0.553459 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
7bb6cc004941762db0b482172178cc2fe3fca686 | 169 | py | Python | py/45.py | higgsd/euler | 340f192ed2831ab9d37df43fe19e39971ef19cf8 | [
"BSD-2-Clause"
] | null | null | null | py/45.py | higgsd/euler | 340f192ed2831ab9d37df43fe19e39971ef19cf8 | [
"BSD-2-Clause"
] | null | null | null | py/45.py | higgsd/euler | 340f192ed2831ab9d37df43fe19e39971ef19cf8 | [
"BSD-2-Clause"
] | null | null | null | # 1533776805
import euler
n = 144
while True:
h = n * (2 * n - 1)
if euler.is_pentagonal(h) and euler.is_triangular(h):
print h
break
n += 1
| 16.9 | 57 | 0.56213 | 27 | 169 | 3.444444 | 0.62963 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 0.331361 | 169 | 9 | 58 | 18.777778 | 0.681416 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
7bc4cb57b2fc2099300bcdb846561343bc1238fa | 437 | py | Python | setup.py | neirbowj/munin-ipfw | 7f293004a405b6adff6a759e2247fb0991b4e902 | [
"BSD-3-Clause"
] | 1 | 2019-06-04T11:18:28.000Z | 2019-06-04T11:18:28.000Z | setup.py | neirbowj/munin-ipfw | 7f293004a405b6adff6a759e2247fb0991b4e902 | [
"BSD-3-Clause"
] | null | null | null | setup.py | neirbowj/munin-ipfw | 7f293004a405b6adff6a759e2247fb0991b4e902 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2014, John W. O'Brien
# All rights reserved.
#
# Distributed under the terms of the BSD Simplified License.
#
# The full license is in the LICENSE file, distributed with this software.
#----------------... | 33.615385 | 78 | 0.471396 | 45 | 437 | 4.577778 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01039 | 0.118993 | 437 | 12 | 79 | 36.416667 | 0.524675 | 0.949657 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c86e94804506a19bab9bec273bd83860ad51585c | 431 | py | Python | summary/sumy/sklearn/preprocessing/tests/test_weights.py | WangWenjun559/MITS | 8d7ace2b3b2a58fb33af225c2997106d9402aaf5 | [
"Apache-2.0"
] | 6 | 2015-07-12T16:17:58.000Z | 2017-06-23T04:00:43.000Z | summary/sumy/sklearn/preprocessing/tests/test_weights.py | WangWenjun559/MITS | 8d7ace2b3b2a58fb33af225c2997106d9402aaf5 | [
"Apache-2.0"
] | null | null | null | summary/sumy/sklearn/preprocessing/tests/test_weights.py | WangWenjun559/MITS | 8d7ace2b3b2a58fb33af225c2997106d9402aaf5 | [
"Apache-2.0"
] | 4 | 2017-04-19T09:05:26.000Z | 2020-05-20T21:54:25.000Z | from sklearn.preprocessing._weights import _balance_weights
from sklearn.utils.testing import assert_array_equal
def test_balance_weights():
weights = _balance_weights([0, 0, 1, 1])
assert_array_equal(weights, [1., 1., 1., 1.])
weights = _balance_weights([0, 1, 1, 1, 1])
assert_array_equal(weights, [... | 30.785714 | 61 | 0.691415 | 66 | 431 | 4.227273 | 0.242424 | 0.057348 | 0.229391 | 0.236559 | 0.487455 | 0.322581 | 0.18638 | 0 | 0 | 0 | 0 | 0.082873 | 0.160093 | 431 | 13 | 62 | 33.153846 | 0.687845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8725ee1101cf5eb513465a573cbb6c99e5e63fc | 289 | py | Python | production.py | Juyeon125/Multi_pred | 048986428434d9927989f86e93ea6fa6ce33d0ae | [
"MIT"
] | 1 | 2020-10-15T08:05:41.000Z | 2020-10-15T08:05:41.000Z | production.py | Juyeon125/Multi_pred | 048986428434d9927989f86e93ea6fa6ce33d0ae | [
"MIT"
] | null | null | null | production.py | Juyeon125/Multi_pred | 048986428434d9927989f86e93ea6fa6ce33d0ae | [
"MIT"
] | null | null | null | from app import create_app
from config.app_config import ProductionLevelConfig
from config.db_config import RemoteConfig
from config.run_config import ProductionRunConfig
app = create_app(ProductionLevelConfig, RemoteConfig)
if __name__ == "__main__":
app.run(**ProductionRunConfig)
| 28.9 | 53 | 0.83391 | 34 | 289 | 6.705882 | 0.382353 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107266 | 289 | 9 | 54 | 32.111111 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c8ca9724fff9ba643ecfab7c8f45e1c10ee0b588 | 8,237 | py | Python | tpp/visualizer/LatexVisualizer.py | pennyarcade/TPPP | 9bb6db774d77f74c54ed2fa004e97c1aa114fff9 | [
"MIT"
] | null | null | null | tpp/visualizer/LatexVisualizer.py | pennyarcade/TPPP | 9bb6db774d77f74c54ed2fa004e97c1aa114fff9 | [
"MIT"
] | null | null | null | tpp/visualizer/LatexVisualizer.py | pennyarcade/TPPP | 9bb6db774d77f74c54ed2fa004e97c1aa114fff9 | [
"MIT"
] | null | null | null | """
Implements a visualizer which converts TPP source to LaTeX-Beamer source.
@see http://latex-beamer.sf.net
"""
import os
import sys
import textwrap
from tpp.visualizer.TPPVisualizer import TPPVisualizer
class LatexVisualizer(TPPVisualizer):
"""
Implements a visualizer which converts TPP source to LaTeX... | 18.593679 | 94 | 0.443487 | 769 | 8,237 | 4.595579 | 0.20156 | 0.118846 | 0.102999 | 0.106112 | 0.516978 | 0.469157 | 0.429259 | 0.345501 | 0.269666 | 0.191285 | 0 | 0.003547 | 0.418113 | 8,237 | 442 | 95 | 18.635747 | 0.733778 | 0.188175 | 0 | 0.326797 | 0 | 0 | 0.134726 | 0.053277 | 0 | 0 | 0 | 0.10181 | 0 | 1 | 0.27451 | false | 0.189542 | 0.026144 | 0 | 0.30719 | 0.006536 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c8d477b5c0450df1386a5b4be3976fffd8f7abd5 | 88 | py | Python | exercises/temp.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | exercises/temp.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | exercises/temp.py | spyingcyclops/excercism | ebc75561e8dc2cc510faf21fd823460db5604067 | [
"Apache-2.0"
] | null | null | null | x = 10
d = []
for i in range(0, len((x) - 1)):
if x % i == 0:
d.append(i)
d
| 12.571429 | 32 | 0.397727 | 19 | 88 | 1.842105 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.375 | 88 | 6 | 33 | 14.666667 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
740358c0b8dfdaf2749fdf877fdf78daef920cd9 | 2,390 | py | Python | python/ray/rllib/models/preprocessors.py | yutiansut/ray | 4157bcb80b169779f43a549dd503911d95507cc2 | [
"Apache-2.0"
] | null | null | null | python/ray/rllib/models/preprocessors.py | yutiansut/ray | 4157bcb80b169779f43a549dd503911d95507cc2 | [
"Apache-2.0"
] | null | null | null | python/ray/rllib/models/preprocessors.py | yutiansut/ray | 4157bcb80b169779f43a549dd503911d95507cc2 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cv2
import numpy as np
class Preprocessor(object):
"""Defines an abstract observation preprocessor function."""
def __init__(self, options):
self.options = options
self._init()
... | 31.447368 | 78 | 0.640586 | 285 | 2,390 | 5.25614 | 0.364912 | 0.046729 | 0.036716 | 0.056075 | 0.214953 | 0.160214 | 0.06275 | 0.06275 | 0 | 0 | 0 | 0.033504 | 0.26318 | 2,390 | 75 | 79 | 31.866667 | 0.817149 | 0.230126 | 0 | 0.326531 | 0 | 0 | 0.011577 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.22449 | false | 0.020408 | 0.102041 | 0.081633 | 0.55102 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cdb6a62d80b3349bcbc1e393b5fa9fab26b80e0c | 1,185 | py | Python | article/models.py | hanfengs/HFDjangoBlog | 81e08512c4533011223297aaf02605baee49fc6a | [
"MIT"
] | null | null | null | article/models.py | hanfengs/HFDjangoBlog | 81e08512c4533011223297aaf02605baee49fc6a | [
"MIT"
] | null | null | null | article/models.py | hanfengs/HFDjangoBlog | 81e08512c4533011223297aaf02605baee49fc6a | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Book(models.Model):
name = models.CharField(max_length = 100)
pud_date = models.DateTimeField()
add_i = models.CharField(max_length = 100, default = '+')
category = models.CharField(max_length = 20, default = 'python')
# def __unicode_... | 30.384615 | 75 | 0.636287 | 139 | 1,185 | 5.194245 | 0.359712 | 0.145429 | 0.174515 | 0.232687 | 0.583102 | 0.277008 | 0.277008 | 0.277008 | 0.277008 | 0.152355 | 0 | 0.021445 | 0.252321 | 1,185 | 38 | 76 | 31.184211 | 0.793454 | 0.416878 | 0 | 0.133333 | 0 | 0 | 0.010448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cdbbc14f72a8680e7d6cf9f30d6fcb7be296480d | 222 | py | Python | docs/ETC/Modes/S - Concentric-Trails/info.py | kbsezginel/etcviz | 3a10e1fbfe0e2b032e87b20a58386c412f59ff28 | [
"BSD-3-Clause"
] | 1 | 2021-11-17T15:00:14.000Z | 2021-11-17T15:00:14.000Z | docs/ETC/Modes/S - Concentric-Trails/info.py | kbsezginel/etcviz | 3a10e1fbfe0e2b032e87b20a58386c412f59ff28 | [
"BSD-3-Clause"
] | null | null | null | docs/ETC/Modes/S - Concentric-Trails/info.py | kbsezginel/etcviz | 3a10e1fbfe0e2b032e87b20a58386c412f59ff28 | [
"BSD-3-Clause"
] | null | null | null | name = "S - Concentric-Trails"
description = "Circle radius tracks amplitude with history fade"
knob1 = "Circle Center X"
knob2 = "Circle Center Y"
knob3 = "History Opacity"
knob4 = "Color"
released = "September 7 2017"
| 27.75 | 64 | 0.725225 | 29 | 222 | 5.551724 | 0.862069 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048913 | 0.171171 | 222 | 7 | 65 | 31.714286 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.608108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdc4d89e1dd9e73c5292287b0bea98464aaba061 | 1,002 | py | Python | old_code/src_python/nmpccodegen/controller/obstacles/circular.py | kul-forbes/nmpc-codegen | 0b96da0840504817472b2bdc62c29c98bdf29c8f | [
"MIT"
] | 24 | 2017-11-13T02:17:10.000Z | 2021-03-15T13:47:20.000Z | old_code/src_python/nmpccodegen/controller/obstacles/circular.py | kul-optec/nmpc-codegen | 0b96da0840504817472b2bdc62c29c98bdf29c8f | [
"MIT"
] | 14 | 2018-01-13T20:20:47.000Z | 2020-05-12T11:21:12.000Z | old_code/src_python/nmpccodegen/controller/obstacles/circular.py | kul-optec/nmpc-codegen | 0b96da0840504817472b2bdc62c29c98bdf29c8f | [
"MIT"
] | 5 | 2018-08-14T14:27:41.000Z | 2020-12-17T08:13:41.000Z | from .obstacle import Obstacle
import casadi as cd
import matplotlib as plt
import numpy as np
class Circular(Obstacle):
def __init__(self,model,center_coordinates,radius):
""" construct obstable of form a[i,:]^Tb +b , for all i """
super(Circular, self).__init__(model)
self._center_coord... | 35.785714 | 125 | 0.704591 | 130 | 1,002 | 5.176923 | 0.469231 | 0.20208 | 0.156018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004957 | 0.194611 | 1,002 | 28 | 126 | 35.785714 | 0.828996 | 0.118762 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.190476 | 0.095238 | 0.619048 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cdcd4c961bfd17967d459f1ffcacc57a49e68eb6 | 911 | py | Python | backend/autobets/apimb/migrations/0010_auto_20191115_1208.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | 1 | 2020-03-06T14:29:12.000Z | 2020-03-06T14:29:12.000Z | backend/autobets/apimb/migrations/0010_auto_20191115_1208.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | null | null | null | backend/autobets/apimb/migrations/0010_auto_20191115_1208.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2019-11-15 12:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apimb', '0009_auto_20191115_1142'),
]
operations = [
migrations.AlterField(
model_name='bettriggers',
name='b1_trig'... | 26.794118 | 61 | 0.569704 | 93 | 911 | 5.419355 | 0.451613 | 0.15873 | 0.198413 | 0.230159 | 0.690476 | 0.690476 | 0.603175 | 0.603175 | 0.603175 | 0.517857 | 0 | 0.0688 | 0.313941 | 911 | 33 | 62 | 27.606061 | 0.7376 | 0.049396 | 0 | 0.592593 | 1 | 0 | 0.115741 | 0.02662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdd091bae7e0eb980a29e87c9d4452a6d76c327e | 75 | py | Python | 20352 Circus.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 20352 Circus.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 20352 Circus.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | import math
a = int(input())
res = ((a/math.pi)**0.5)*2*math.pi
print(res)
| 15 | 34 | 0.613333 | 16 | 75 | 2.875 | 0.6875 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.12 | 75 | 4 | 35 | 18.75 | 0.651515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a80b8d0efaffdd007d6744f8d5daa53b4e3f5509 | 1,072 | py | Python | src/query_parser/table_ref.py | kcaras/Eva | c8344e3aa52f4a0e1378154f939293b87fef08c1 | [
"Apache-2.0"
] | null | null | null | src/query_parser/table_ref.py | kcaras/Eva | c8344e3aa52f4a0e1378154f939293b87fef08c1 | [
"Apache-2.0"
] | null | null | null | src/query_parser/table_ref.py | kcaras/Eva | c8344e3aa52f4a0e1378154f939293b87fef08c1 | [
"Apache-2.0"
] | null | null | null | from src.loaders.abstract_loader import AbstractVideoLoader
class TableInfo:
"""
stores all the table info, inspired from postgres
"""
def __init__(self, table_name=None, schema_name=None, database_name=None):
self._table_name = table_name
self._schema_name = schema_name
self._... | 24.363636 | 81 | 0.68097 | 131 | 1,072 | 5.267176 | 0.305344 | 0.091304 | 0.101449 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251866 | 1,072 | 43 | 82 | 24.930233 | 0.860349 | 0.195896 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0.2 | 0.6 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
a81b717af233067f26cb6c90caa1a12d3aed22ed | 1,720 | py | Python | Moderate/Cash Register/main.py | AstrorEnales/CodeEval | eae0fb471d27d3a83d544ff4a4651ed1a2076930 | [
"MIT"
] | null | null | null | Moderate/Cash Register/main.py | AstrorEnales/CodeEval | eae0fb471d27d3a83d544ff4a4651ed1a2076930 | [
"MIT"
] | null | null | null | Moderate/Cash Register/main.py | AstrorEnales/CodeEval | eae0fb471d27d3a83d544ff4a4651ed1a2076930 | [
"MIT"
] | null | null | null | import sys
money = {'PENNY': .01,'NICKEL': .05,'DIME': .10,'QUARTER': .25,'HALF DOLLAR': .50,'ONE': 1.00,'TWO': 2.00,'FIVE': 5.00,'TEN': 10.00,'TWENTY': 20.00,'FIFTY': 50.00,'ONE HUNDRED': 100.00}
def handleMoney(change, amount, result):
amountNumber = money[amount]
if change >= amountNumber:
c... | 41.95122 | 186 | 0.554651 | 188 | 1,720 | 5.074468 | 0.329787 | 0.231656 | 0.226415 | 0.36478 | 0.446541 | 0.079665 | 0 | 0 | 0 | 0 | 0 | 0.03202 | 0.29186 | 1,720 | 40 | 187 | 43 | 0.751232 | 0 | 0 | 0 | 0 | 0 | 0.090476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0.083333 | 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 | 0 | 0 | 3 |
a824a6dfaad93e90c488b2013be5cbc47df807e9 | 279 | py | Python | speedydeploy/providers/base.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/base.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/base.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null |
from ..base import ObjectWithCommands
class Provider(ObjectWithCommands):
shared = False
namespace = 'provider'
def __init__(self):
self.can_adduser = not self.shared
self.can_addpackages = not self.shared
self.can_sudo = not self.shared
| 19.928571 | 46 | 0.684588 | 32 | 279 | 5.75 | 0.53125 | 0.11413 | 0.211957 | 0.184783 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240143 | 279 | 13 | 47 | 21.461538 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 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 | 0 | 1 | 0 | 0 | 3 |
a835bae88c877ce1f887ccf528d11e635bc0d1c0 | 1,790 | py | Python | nanome_rmsd/rmsd_helpers.py | nanome-ai/plugin-rmsd | f95b04c6861aa4b24368d35cda5066671c2dd3e6 | [
"MIT"
] | null | null | null | nanome_rmsd/rmsd_helpers.py | nanome-ai/plugin-rmsd | f95b04c6861aa4b24368d35cda5066671c2dd3e6 | [
"MIT"
] | null | null | null | nanome_rmsd/rmsd_helpers.py | nanome-ai/plugin-rmsd | f95b04c6861aa4b24368d35cda5066671c2dd3e6 | [
"MIT"
] | null | null | null | import numpy as np
import nanome
from nanome.util import Logs
def same_order(atoms1, atoms2):
for index, _ in enumerate(atoms1):
if atoms1[index].symbol != atoms2[index].symbol:
return False
return True
def get_positions(atom_list):
return list(map(lambda atom: atom.position, atom_li... | 25.211268 | 78 | 0.646927 | 272 | 1,790 | 4.113971 | 0.283088 | 0.050045 | 0.100089 | 0.106345 | 0.190349 | 0.190349 | 0.116175 | 0.064343 | 0.064343 | 0.064343 | 0 | 0.010838 | 0.226816 | 1,790 | 70 | 79 | 25.571429 | 0.797688 | 0.006704 | 0 | 0.044444 | 0 | 0 | 0.006194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244444 | false | 0 | 0.066667 | 0.177778 | 0.577778 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
b520a3f7a9b2c2da107f2a6122256b5c57d94aa9 | 1,013 | py | Python | scripts/coffee-out.py | aileenzeng/Coffee | f45ef5b91a61aac6734a40c831a0ea2c7a57877b | [
"MIT"
] | null | null | null | scripts/coffee-out.py | aileenzeng/Coffee | f45ef5b91a61aac6734a40c831a0ea2c7a57877b | [
"MIT"
] | null | null | null | scripts/coffee-out.py | aileenzeng/Coffee | f45ef5b91a61aac6734a40c831a0ea2c7a57877b | [
"MIT"
] | null | null | null | # TODO: Open up the diff file, and read contents
# Afterwards, write to a new file containing the differences
# Bonus: make it pretty
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
# print("Input file: " + input_file)
# print("Output file: " + output_file)
class TestCase:
def __init__(self, line, ... | 24.119048 | 60 | 0.597236 | 126 | 1,013 | 4.634921 | 0.404762 | 0.061644 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008141 | 0.272458 | 1,013 | 41 | 61 | 24.707317 | 0.784261 | 0.429418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.157895 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b526d0475f14b893e331b98e099b260fb0690a49 | 151 | py | Python | codes/urls.py | akiross/novecode | fbf43c45825cb1aae5686786a5ce538e359c48d1 | [
"MIT"
] | null | null | null | codes/urls.py | akiross/novecode | fbf43c45825cb1aae5686786a5ce538e359c48d1 | [
"MIT"
] | 1 | 2015-12-16T15:29:28.000Z | 2015-12-16T15:29:28.000Z | codes/urls.py | akiross/novecode | fbf43c45825cb1aae5686786a5ce538e359c48d1 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'exercise/(?P<exercise_id>[0-9]+)$', views.exercise, name='exercise')
]
| 21.571429 | 78 | 0.688742 | 22 | 151 | 4.681818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.13245 | 151 | 6 | 79 | 25.166667 | 0.770992 | 0 | 0 | 0 | 0 | 0 | 0.271523 | 0.218543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
b52f3b7b8d3daba038305c76084f78212bfaf733 | 226 | py | Python | eLearn/models/siteSubscribers.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | eLearn/models/siteSubscribers.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | eLearn/models/siteSubscribers.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | from django.db import models
class SiteSubscribers(models.Model):
"""docstring for SiteSubscribers, collecting subscribers emails"""
email = models.EmailField(max_length = 254)
status = models.BooleanField(default = True)
| 32.285714 | 67 | 0.787611 | 26 | 226 | 6.807692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015 | 0.115044 | 226 | 6 | 68 | 37.666667 | 0.87 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
b55c3e176d07b56253c8cd864bba7fe23bca1c12 | 338 | py | Python | app/models/domain/stocks.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | app/models/domain/stocks.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | app/models/domain/stocks.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | from pydantic import Field
from app.models.domain.rwmodel import RWModel
from app.models.enums import ExchangeEnum
class Stock(RWModel):
symbol: str = Field(..., description="股票代码")
exchange: ExchangeEnum = Field(..., description="股票市场")
@property
def stock_code(self):
return f"{self.symbol}... | 24.142857 | 59 | 0.704142 | 41 | 338 | 5.780488 | 0.585366 | 0.059072 | 0.109705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168639 | 338 | 13 | 60 | 26 | 0.843416 | 0 | 0 | 0 | 0 | 0 | 0.109467 | 0.085799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
b58be4dd1da8072a7f29a937bdddfbdccb708235 | 125 | py | Python | tests/utils/mock_oauth_provider/settings.py | ddeka2910/hvac | 80cf3950157bf003ee6622e6db84bb9d6c90e5f1 | [
"Apache-2.0"
] | null | null | null | tests/utils/mock_oauth_provider/settings.py | ddeka2910/hvac | 80cf3950157bf003ee6622e6db84bb9d6c90e5f1 | [
"Apache-2.0"
] | 2 | 2019-07-08T03:09:38.000Z | 2021-07-08T18:17:51.000Z | tests/utils/mock_oauth_provider/settings.py | ddeka2910/hvac | 80cf3950157bf003ee6622e6db84bb9d6c90e5f1 | [
"Apache-2.0"
] | null | null | null | # OAUTH2_JWT_ENABLED = True
# OAUTH2_JWT_ISS = 'https://authlib.org'
OAUTH2_JWT_KEY = 'secret-key'
OAUTH2_JWT_ALG = 'HS256'
| 20.833333 | 40 | 0.744 | 19 | 125 | 4.473684 | 0.631579 | 0.423529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0.12 | 125 | 5 | 41 | 25 | 0.709091 | 0.512 | 0 | 0 | 0 | 0 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5a17775e251a571b13769acd48cc66c9a9bed1f | 4,259 | py | Python | Liuyi/zhaolaoshi.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | Liuyi/zhaolaoshi.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | Liuyi/zhaolaoshi.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from allkindsoffunctions import *
from scipy.stats import kstest
from scipy.stats import ks_2samp
# *******读取4C+01.02头文件
c0102=pd.read_excel('/Users/dingding/Desktop/88.xlsx')
start_time1=c0102['date']
fluence1=c0102['flux']
# *******做出4C+01.02原始的光变曲线
# plt.figure(figsize=(20,10))
# plt.plot(start... | 32.265152 | 128 | 0.676919 | 698 | 4,259 | 4.077364 | 0.230659 | 0.049192 | 0.022136 | 0.036543 | 0.622277 | 0.56922 | 0.537245 | 0.418482 | 0.418482 | 0.386507 | 0 | 0.092993 | 0.098615 | 4,259 | 131 | 129 | 32.51145 | 0.648346 | 0.889411 | 0 | 0 | 0 | 0 | 0.113372 | 0.090116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b5a23f354fa949cc7effcd4f558fceb84b21d6f6 | 2,169 | py | Python | app/logic/contexts/user_context.py | dimamik/AGH_Learning_Cards | bef1ce8e763fb7b21058f918ec6f02be41bb7a11 | [
"PostgreSQL",
"MIT"
] | null | null | null | app/logic/contexts/user_context.py | dimamik/AGH_Learning_Cards | bef1ce8e763fb7b21058f918ec6f02be41bb7a11 | [
"PostgreSQL",
"MIT"
] | null | null | null | app/logic/contexts/user_context.py | dimamik/AGH_Learning_Cards | bef1ce8e763fb7b21058f918ec6f02be41bb7a11 | [
"PostgreSQL",
"MIT"
] | null | null | null | from app import User
from app.database.session import Session
from app.logic.contexts.base_context import BaseContext
class UserContext(BaseContext):
"""
Class wrapping User Instance
"""
def __init__(self, user: User):
super(UserContext, self).__init__()
self.instance = user
def ... | 28.539474 | 89 | 0.667128 | 265 | 2,169 | 5.279245 | 0.218868 | 0.064332 | 0.057184 | 0.078628 | 0.395997 | 0.395997 | 0.338813 | 0.240172 | 0.142244 | 0.142244 | 0 | 0 | 0.237437 | 2,169 | 75 | 90 | 28.92 | 0.845828 | 0.012909 | 0 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.074074 | 0.055556 | 0.111111 | 0.518519 | 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 | 0 | 0 | 0 | 3 |
a932bf1057a31c887ff262f4c4c0f7cc112aa24d | 12 | py | Python | backend/services/web/api/__init__.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 3 | 2021-04-16T14:37:47.000Z | 2021-06-28T21:13:50.000Z | backend/services/web/api/__init__.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 1 | 2021-04-17T14:45:59.000Z | 2021-04-17T14:45:59.000Z | backend/services/web/api/__init__.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | null | null | null | LOADING = 1
| 6 | 11 | 0.666667 | 2 | 12 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.25 | 12 | 1 | 12 | 12 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
a93cac98805a93afb73e9e8b5aa8ddfe502c7cd6 | 462 | py | Python | src/pythonmysequel/values/_ValueType.py | jasonli0616/PythonMySequel | 692abc4517f060683fb34bc304e1bc3b06d2dc7f | [
"MIT"
] | null | null | null | src/pythonmysequel/values/_ValueType.py | jasonli0616/PythonMySequel | 692abc4517f060683fb34bc304e1bc3b06d2dc7f | [
"MIT"
] | null | null | null | src/pythonmysequel/values/_ValueType.py | jasonli0616/PythonMySequel | 692abc4517f060683fb34bc304e1bc3b06d2dc7f | [
"MIT"
] | null | null | null | '''
This is the base class that pythonmysequel.values.* inherit from
It contains:
- SQL value type
- Python value type
- SQL value options
'''
class _ValueType:
def get_SQL_value(self):
return f'{self.SQL_TYPE} {self.options}'.strip()
def _get_options(self, options:tuple):
options_string ... | 25.666667 | 64 | 0.655844 | 61 | 462 | 4.786885 | 0.508197 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235931 | 462 | 18 | 65 | 25.666667 | 0.827195 | 0.290043 | 0 | 0 | 0 | 0 | 0.17134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
a93fd016cb30419d369ace3d3fe8958e85933be4 | 1,723 | py | Python | lmsapi/api_user/migrations/0001_initial.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_user/migrations/0001_initial.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_user/migrations/0001_initial.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-19 02:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='LmsUsers',
fields=[
('id', models.AutoField... | 35.163265 | 114 | 0.518862 | 150 | 1,723 | 5.826667 | 0.42 | 0.154462 | 0.185355 | 0.24714 | 0.496568 | 0.180778 | 0.180778 | 0.180778 | 0.180778 | 0.180778 | 0 | 0.032513 | 0.339524 | 1,723 | 48 | 115 | 35.895833 | 0.735501 | 0.026117 | 0 | 0.341463 | 1 | 0 | 0.109189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02439 | 0.02439 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a94f0841b696f01689f34360c4e93ce3ca3ed3f5 | 5,107 | py | Python | models/data_removal.py | sharabeshj/course-editor-test | 9af15d10ef1f039fdf5758134a7cb72384ccf3f5 | [
"Apache-2.0"
] | 1 | 2021-01-06T17:58:30.000Z | 2021-01-06T17:58:30.000Z | models/data_removal.py | priyankagohil/coursebuilder-assessment | 559e867a2a846dd773471c6bc76cf6005a57098f | [
"Apache-2.0"
] | 27 | 2016-08-31T19:04:46.000Z | 2016-09-29T00:22:32.000Z | models/data_removal.py | priyankagohil/coursebuilder-assessment | 559e867a2a846dd773471c6bc76cf6005a57098f | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 40.531746 | 79 | 0.699628 | 700 | 5,107 | 4.938571 | 0.344286 | 0.032977 | 0.030084 | 0.029505 | 0.331791 | 0.323113 | 0.26468 | 0.221869 | 0.210009 | 0.196413 | 0 | 0.002086 | 0.24907 | 5,107 | 125 | 80 | 40.856 | 0.899348 | 0.604269 | 0 | 0.236842 | 0 | 0 | 0.051345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.026316 | 0.131579 | 0.526316 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
a95200a69da78a3ce5062463e9f27034a145677b | 525 | py | Python | tests/resources/cyclic_functions.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 298 | 2021-10-14T20:56:45.000Z | 2022-03-30T12:55:05.000Z | tests/resources/cyclic_functions.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 58 | 2021-10-18T17:54:41.000Z | 2022-03-31T00:19:36.000Z | tests/resources/cyclic_functions.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 15 | 2021-10-30T17:45:59.000Z | 2022-03-09T14:55:53.000Z | """
Module for cyclic functions to test graph things with.
"""
# we import this to check we don't pull in this function when parsing this module.
from tests.resources import only_import_me
def A(b: int, c: int) -> int:
"""Function that should become part of the graph - A"""
return b + c
def B(A: int, D: int... | 21.875 | 82 | 0.634286 | 92 | 525 | 3.597826 | 0.48913 | 0.072508 | 0.042296 | 0.108761 | 0.265861 | 0.265861 | 0.265861 | 0.265861 | 0.265861 | 0.265861 | 0 | 0.005089 | 0.251429 | 525 | 23 | 83 | 22.826087 | 0.83715 | 0.504762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a95b277b463500f5d3d3beab13d3ff2c5b33fb1f | 91 | py | Python | app/telegram/messages.py | kinhosz/Saturn | 20a151728c6570562fc6cbf4c332fef2c1601ed4 | [
"MIT"
] | 4 | 2022-01-05T02:09:37.000Z | 2022-03-29T02:06:25.000Z | app/telegram/messages.py | kinhosz/Foxbit-API | 20a151728c6570562fc6cbf4c332fef2c1601ed4 | [
"MIT"
] | 8 | 2022-01-11T02:10:42.000Z | 2022-03-28T02:29:15.000Z | app/telegram/messages.py | kinhosz/Saturn | 20a151728c6570562fc6cbf4c332fef2c1601ed4 | [
"MIT"
] | null | null | null | ONLY_PRIVATE_CHAT = "Por motivos de segurança, este bot funciona apenas em chats privados." | 91 | 91 | 0.813187 | 14 | 91 | 5.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 91 | 1 | 91 | 91 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a95dd18fba6597b5099c38446d53709ec70715b3 | 14,814 | py | Python | venv/Lib/site-packages/_TFL/_D2/Point.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | venv/Lib/site-packages/_TFL/_D2/Point.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/_TFL/_D2/Point.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2002-2015 Mag. Christian Tanzer. All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# ****************************************************************************
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.... | 28.990215 | 78 | 0.518901 | 2,031 | 14,814 | 3.434269 | 0.128508 | 0.054194 | 0.022079 | 0.046308 | 0.530753 | 0.448315 | 0.379498 | 0.312258 | 0.276846 | 0.252903 | 0 | 0.058824 | 0.329823 | 14,814 | 510 | 79 | 29.047059 | 0.64303 | 0.399352 | 0 | 0.367925 | 0 | 0 | 0.009043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0 | 0.023585 | 0.117925 | 0.509434 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
a971fae20e940adf250f201fb4cc893b7fcc6021 | 262 | py | Python | mongoengine_plus/aio/utils.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | null | null | null | mongoengine_plus/aio/utils.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | 43 | 2021-04-30T20:02:49.000Z | 2022-03-30T16:16:30.000Z | mongoengine_plus/aio/utils.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | null | null | null | import asyncio
from functools import partial
from typing import Any, Callable
async def create_awaitable(func: Callable, *args, **kwargs) -> Any:
loop = asyncio.get_running_loop()
return await loop.run_in_executor(None, partial(func, *args, **kwargs))
| 29.111111 | 75 | 0.751908 | 36 | 262 | 5.333333 | 0.666667 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 262 | 8 | 76 | 32.75 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8d212076b9088aea826de9702be5a25374b36079 | 993 | py | Python | backend/patients/migrations/0002_auto_20181222_2008.py | ComputationalMedicineLab/chartviz_public | e726cbad48412fba30fd12c2ff5cccdbf5844390 | [
"BSD-3-Clause"
] | null | null | null | backend/patients/migrations/0002_auto_20181222_2008.py | ComputationalMedicineLab/chartviz_public | e726cbad48412fba30fd12c2ff5cccdbf5844390 | [
"BSD-3-Clause"
] | null | null | null | backend/patients/migrations/0002_auto_20181222_2008.py | ComputationalMedicineLab/chartviz_public | e726cbad48412fba30fd12c2ff5cccdbf5844390 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.2 on 2018-12-22 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patients', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='labinstance',
name='perc_10',
... | 25.461538 | 47 | 0.541793 | 91 | 993 | 5.802198 | 0.417582 | 0.085227 | 0.189394 | 0.227273 | 0.642045 | 0.587121 | 0.513258 | 0.426136 | 0.426136 | 0.426136 | 0 | 0.041284 | 0.34139 | 993 | 38 | 48 | 26.131579 | 0.766055 | 0.045317 | 0 | 0.59375 | 1 | 0 | 0.114165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d803b131c5922534d983c5a2e5ad1d0ae9fb729 | 96 | py | Python | backend/stock_count/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/stock_count/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/stock_count/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | from django.apps import AppConfig
class StockCountConfig(AppConfig):
name = 'stock_count'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 | 0 | 0 | 0 | 3 |
8d870ff20c33c28173f7b1a80d2b183889de26f9 | 881 | py | Python | ThisIsTheProject/app1/migrations/0002_alter_websiteinfo_atualizado_alter_websiteinfo_ip_and_more.py | AlexandreSiedschlag/ProMaxima | d74865030214ec708af8d268965d709e73de4199 | [
"Unlicense"
] | null | null | null | ThisIsTheProject/app1/migrations/0002_alter_websiteinfo_atualizado_alter_websiteinfo_ip_and_more.py | AlexandreSiedschlag/ProMaxima | d74865030214ec708af8d268965d709e73de4199 | [
"Unlicense"
] | null | null | null | ThisIsTheProject/app1/migrations/0002_alter_websiteinfo_atualizado_alter_websiteinfo_ip_and_more.py | AlexandreSiedschlag/ProMaxima | d74865030214ec708af8d268965d709e73de4199 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-06 16:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='websiteinfo',
name='Atualizado',
... | 25.911765 | 74 | 0.561862 | 83 | 881 | 5.855422 | 0.481928 | 0.164609 | 0.205761 | 0.238683 | 0.559671 | 0.559671 | 0.312757 | 0.312757 | 0.312757 | 0.312757 | 0 | 0.053601 | 0.322361 | 881 | 33 | 75 | 26.69697 | 0.760469 | 0.051078 | 0 | 0.555556 | 1 | 0 | 0.104317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d9fb1724fb7f98acf51c190976f225e8fee8cad | 141 | py | Python | Utilities/decompilation_method.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | Utilities/decompilation_method.py | ColonolNutty/CustomGenderSettings | aa8d3e485499e92ca3687744014932c036451525 | [
"CC-BY-4.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | Utilities/decompilation_method.py | ColonolNutty/CustomGenderSettings | aa8d3e485499e92ca3687744014932c036451525 | [
"CC-BY-4.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | class S4PyDecompilationMethod:
"""Method to use when compiling/decompiling python code."""
UNPYC3 = 'unpyc3'
PY37DEC = 'py37dec'
| 28.2 | 63 | 0.702128 | 14 | 141 | 7.071429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061404 | 0.191489 | 141 | 4 | 64 | 35.25 | 0.807018 | 0.375887 | 0 | 0 | 0 | 0 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a5ec427aca4415cc08381424db8c7664e2022ce9 | 49 | py | Python | comunicaciones/config.py | PymientoProject/plotterstein | e91e1dfe69322fae9929fb1a616b33c7adb6154e | [
"MIT"
] | null | null | null | comunicaciones/config.py | PymientoProject/plotterstein | e91e1dfe69322fae9929fb1a616b33c7adb6154e | [
"MIT"
] | null | null | null | comunicaciones/config.py | PymientoProject/plotterstein | e91e1dfe69322fae9929fb1a616b33c7adb6154e | [
"MIT"
] | null | null | null | ARDUINO = {
'baud': 9600,
'timeout': 3
}
| 9.8 | 17 | 0.469388 | 5 | 49 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0.326531 | 49 | 4 | 18 | 12.25 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
a5fd677bd85ee6a97667695ad5f0e2b5362b1b77 | 1,120 | py | Python | Drivers/Stones.py | Loupehope/spbstu-processing-data | f1511d46f01d32db8620f42868b41d3bf6181496 | [
"MIT"
] | null | null | null | Drivers/Stones.py | Loupehope/spbstu-processing-data | f1511d46f01d32db8620f42868b41d3bf6181496 | [
"MIT"
] | null | null | null | Drivers/Stones.py | Loupehope/spbstu-processing-data | f1511d46f01d32db8620f42868b41d3bf6181496 | [
"MIT"
] | null | null | null | import numpy as np
import numba
import random
from Models.SPDImage import *
class Stones:
@staticmethod
def enumerate_stones(image_sd) -> int:
image_row, image_col = image_sd.shape
pad_height = 1
pad_width = 1
padded_image = np.zeros((image_row + (2 * pad_height), image_col +... | 28.717949 | 92 | 0.516964 | 155 | 1,120 | 3.490323 | 0.245161 | 0.22366 | 0.19963 | 0.266174 | 0.31793 | 0.31793 | 0.31793 | 0.31793 | 0.31793 | 0.31793 | 0 | 0.037143 | 0.375 | 1,120 | 39 | 93 | 28.717949 | 0.735714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57111c0e3acbe03c0356bc86fb269e4a4bdc0d7e | 377 | py | Python | tests/test_illud_input.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | 1 | 2020-12-05T00:59:15.000Z | 2020-12-05T00:59:15.000Z | tests/test_illud_input.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | 112 | 2021-01-15T21:42:27.000Z | 2021-04-17T19:11:21.000Z | tests/test_illud_input.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | null | null | null | """Test illud.illud_input."""
from typing import Union
from illud.character import Character
from illud.illud_input import IlludInput
from illud.signal_ import Signal
def test_illud_input() -> None:
"""Test illud.illud_input.IlludInput"""
assert isinstance(IlludInput, type(Union))
assert IlludInput.__arg... | 29 | 83 | 0.758621 | 48 | 377 | 5.75 | 0.395833 | 0.144928 | 0.163043 | 0.137681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135279 | 377 | 12 | 84 | 31.416667 | 0.846626 | 0.225464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | true | 0 | 0.571429 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
574936ae10270a1b88e97826a1fb51f408461e12 | 345 | py | Python | sites/constant.py | water-law/waterlawblog | 32414aefca3dece429f3282793c6a73017d9497a | [
"BSD-3-Clause"
] | 4 | 2018-03-09T06:47:02.000Z | 2019-10-06T18:57:46.000Z | sites/constant.py | water-law/waterlawblog | 32414aefca3dece429f3282793c6a73017d9497a | [
"BSD-3-Clause"
] | 4 | 2020-06-05T18:09:47.000Z | 2021-09-07T23:51:19.000Z | sites/constant.py | water-law/waterlawblog | 32414aefca3dece429f3282793c6a73017d9497a | [
"BSD-3-Clause"
] | null | null | null | from .utils import EnumWithDescription
class SignType(EnumWithDescription):
Default = (1, "验证码或短信通知")
Promotion = (2, "推广短信或群发助手")
class SignUse(EnumWithDescription):
Default = (1, "签名为自己产品名/网站名")
SignOther = (2, "签名为他人产品名/网站名")
class TemplateType(EnumWithDescription):
Default = (1, "验证码")
... | 20.294118 | 40 | 0.675362 | 33 | 345 | 7.060606 | 0.636364 | 0.334764 | 0.347639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021352 | 0.185507 | 345 | 16 | 41 | 21.5625 | 0.807829 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
574e5e1557a8320efb4db9d1dd730bcc301902c3 | 339 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.pkg_name}}/decorators.py | hilarryxu/cookiecutter-zweb | c207c77f2ddb63a3ba5c64d5761b6aaeddb77bcd | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.pkg_name}}/decorators.py | hilarryxu/cookiecutter-zweb | c207c77f2ddb63a3ba5c64d5761b6aaeddb77bcd | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.pkg_name}}/decorators.py | hilarryxu/cookiecutter-zweb | c207c77f2ddb63a3ba5c64d5761b6aaeddb77bcd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
from .errors import ERROR_CODE_NOT_LOGINED, Error
def login_required(method):
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if not self.current_user:
raise Error(ERROR_CODE_NOT_LOGINED)
return method(self, *args, **kwargs)
... | 21.1875 | 49 | 0.669617 | 43 | 339 | 5.093023 | 0.581395 | 0.082192 | 0.109589 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.221239 | 339 | 15 | 50 | 22.6 | 0.825758 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 3 |
93b092f48c7b5d1cd8dbf42c049b1c2aafaadf3f | 750 | py | Python | bch_vpn/bch_vpn/migrations/0001_initial.py | ycoenradie/bchvpn | 7e8add681a1973811777f2d001cd32897a24fa05 | [
"MIT"
] | 2 | 2019-08-31T12:48:57.000Z | 2019-12-19T21:59:46.000Z | bch_vpn/bch_vpn/migrations/0001_initial.py | ycoenradie/bchvpn | 7e8add681a1973811777f2d001cd32897a24fa05 | [
"MIT"
] | null | null | null | bch_vpn/bch_vpn/migrations/0001_initial.py | ycoenradie/bchvpn | 7e8add681a1973811777f2d001cd32897a24fa05 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-27 17:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='VpnUser',
fields=[
('id', models.AutoField(... | 30 | 131 | 0.565333 | 78 | 750 | 5.346154 | 0.615385 | 0.143885 | 0.129496 | 0.172662 | 0.194245 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053704 | 0.28 | 750 | 24 | 132 | 31.25 | 0.718519 | 0.06 | 0 | 0 | 1 | 0 | 0.093883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
93b81d277986e0b2d732b3e7dffc3df0093c6649 | 86 | py | Python | clarisse/var/lib/linux/menus/main_menu/edit/unload_resources.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | 2 | 2020-05-12T11:38:44.000Z | 2022-03-07T04:13:50.000Z | clarisse/var/lib/linux/menus/main_menu/edit/unload_resources.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | null | null | null | clarisse/var/lib/linux/menus/main_menu/edit/unload_resources.py | GuillaumeVFX/pipel | a1bd726239e6887745396723c3aad5d61e88ce44 | [
"MIT"
] | null | null | null | app = ix.application
selection = app.get_selection()
app.unload_resources(selection)
| 17.2 | 31 | 0.802326 | 11 | 86 | 6.090909 | 0.636364 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 4 | 32 | 21.5 | 0.858974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93db5fb8ffa7bc2e116b881afcf537b4f5bfa1f6 | 167 | py | Python | config/settings/local.py | masliev/modern-django | c7a086bc0119e190051aeabbcbb5f832d5c80e37 | [
"MIT"
] | null | null | null | config/settings/local.py | masliev/modern-django | c7a086bc0119e190051aeabbcbb5f832d5c80e37 | [
"MIT"
] | null | null | null | config/settings/local.py | masliev/modern-django | c7a086bc0119e190051aeabbcbb5f832d5c80e37 | [
"MIT"
] | null | null | null | from .base import *
SECRET_KEY = env('DJANGO_SECRET_KEY', default='ah80q8ryxi(!^4ii@o%vexxbir6jy2qo1%+sgyb-ei&ji3bap%')
DEBUG = env.bool('DJANGO_DEBUG', default=True) | 41.75 | 99 | 0.754491 | 24 | 167 | 5.083333 | 0.75 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0.071856 | 167 | 4 | 100 | 41.75 | 0.735484 | 0 | 0 | 0 | 0 | 0 | 0.470238 | 0.297619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
93ed7417f871ac45840b6da02347ef05e6f2a909 | 42 | py | Python | sieve_config.py | tylergu/sieve | be051e1afa01b41703a7f4c3082cab13fcd591fe | [
"BSD-2-Clause"
] | null | null | null | sieve_config.py | tylergu/sieve | be051e1afa01b41703a7f4c3082cab13fcd591fe | [
"BSD-2-Clause"
] | null | null | null | sieve_config.py | tylergu/sieve | be051e1afa01b41703a7f4c3082cab13fcd591fe | [
"BSD-2-Clause"
] | null | null | null |
config = {
"namespace": "default",
}
| 8.4 | 27 | 0.52381 | 3 | 42 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 42 | 4 | 28 | 10.5 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
f5270710eaf533a277fec50f0476642236c31832 | 201 | py | Python | syft/codes.py | dljgs1/PySyft | d6c3a9a121874f6080497de4ece8ac3114970aba | [
"Apache-2.0"
] | 1 | 2019-12-04T21:25:32.000Z | 2019-12-04T21:25:32.000Z | syft/codes.py | dljgs1/PySyft | d6c3a9a121874f6080497de4ece8ac3114970aba | [
"Apache-2.0"
] | null | null | null | syft/codes.py | dljgs1/PySyft | d6c3a9a121874f6080497de4ece8ac3114970aba | [
"Apache-2.0"
] | null | null | null | class PLAN_CMDS(object):
FETCH_PLAN = "fetch_plan"
FETCH_PROTOCOL = "fetch_protocol"
class TENSOR_SERIALIZATION(object):
TORCH = "torch"
NUMPY = "numpy"
TF = "tf"
ALL = "all"
| 18.272727 | 37 | 0.641791 | 24 | 201 | 5.125 | 0.5 | 0.146341 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 201 | 10 | 38 | 20.1 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f53210bf4e54d6941c5380767f181bfa3012129c | 52 | py | Python | packdet/__init__.py | kding1225/PackDet | 835c688847b7af2e1928ade9360a7e67eb9bfed3 | [
"Apache-2.0"
] | 8 | 2020-09-02T06:32:45.000Z | 2021-03-05T11:38:58.000Z | packdet/__init__.py | kding1225/PackDet | 835c688847b7af2e1928ade9360a7e67eb9bfed3 | [
"Apache-2.0"
] | null | null | null | packdet/__init__.py | kding1225/PackDet | 835c688847b7af2e1928ade9360a7e67eb9bfed3 | [
"Apache-2.0"
] | null | null | null | from .packdet import PackDet
__all__ = ["PackDet"]
| 13 | 28 | 0.730769 | 6 | 52 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 29 | 17.333333 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f5396a0e4cb97236b1f729a7e17f0a3aa219d3ff | 1,774 | py | Python | app.py | BrendanGoggin/webhook-receiver | fec612e352e76ef6ecb98af8039ff385dc91b029 | [
"MIT"
] | null | null | null | app.py | BrendanGoggin/webhook-receiver | fec612e352e76ef6ecb98af8039ff385dc91b029 | [
"MIT"
] | null | null | null | app.py | BrendanGoggin/webhook-receiver | fec612e352e76ef6ecb98af8039ff385dc91b029 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import json
import logging
import web
from wsgilog import WsgiLog
urls = ("/.*", "hooks")
class Log(WsgiLog):
def __init__(self, application):
WsgiLog.__init__(self, application, tostream=True, toprint=True)
app = web.application(urls, globals())
def log_webhook(method: str) ... | 22.74359 | 84 | 0.645434 | 214 | 1,774 | 5.088785 | 0.341122 | 0.091827 | 0.146924 | 0.165289 | 0.26079 | 0.045914 | 0 | 0 | 0 | 0 | 0 | 0.002222 | 0.239008 | 1,774 | 77 | 85 | 23.038961 | 0.804444 | 0.029312 | 0 | 0.074074 | 0 | 0 | 0.099068 | 0.025058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0.037037 | 0.074074 | 0.166667 | 0.5 | 0.037037 | 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 | 0 | 0 | 0 | 3 |
f576a6acc4db3b8716ff9a4ea604d8f718c9ec62 | 139 | py | Python | Chapter11/download_cute_cat_picture.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 62 | 2019-03-18T04:41:41.000Z | 2022-03-31T05:03:13.000Z | Chapter11/download_cute_cat_picture.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 2 | 2020-06-14T21:56:03.000Z | 2022-01-07T05:32:01.000Z | Chapter11/download_cute_cat_picture.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 42 | 2019-02-22T03:10:36.000Z | 2022-02-20T04:47:04.000Z | import ipfsapi
c = ipfsapi.connect()
cute_cat_picture = 'QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ/cat.jpg'
c.get(cute_cat_picture)
| 19.857143 | 75 | 0.834532 | 16 | 139 | 7 | 0.625 | 0.125 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0.079137 | 139 | 6 | 76 | 23.166667 | 0.820313 | 0 | 0 | 0 | 0 | 0 | 0.388489 | 0.388489 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 3 |
f577be69edd87ca0e3cdf82c59cc4a6b04904b87 | 642 | py | Python | pyterprise/ssh_key.py | angad87/terraform-enterprise-api-python-client | 99e1b7a8650181aed05fb11f285292c22eaf1e46 | [
"MIT"
] | null | null | null | pyterprise/ssh_key.py | angad87/terraform-enterprise-api-python-client | 99e1b7a8650181aed05fb11f285292c22eaf1e46 | [
"MIT"
] | null | null | null | pyterprise/ssh_key.py | angad87/terraform-enterprise-api-python-client | 99e1b7a8650181aed05fb11f285292c22eaf1e46 | [
"MIT"
] | null | null | null | class SSHKey(object):
def __init__(self, ssh_key, api_handler):
self._api_handler = api_handler
self.id = ssh_key.id
self.name = ssh_key.attributes.name
def __str__(self):
return str(self.__dict__)
def update(self, name):
payload = {"data": {"attributes": {"name": ... | 32.1 | 64 | 0.521807 | 73 | 642 | 4.273973 | 0.369863 | 0.160256 | 0.134615 | 0.128205 | 0.301282 | 0.301282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353583 | 642 | 19 | 65 | 33.789474 | 0.751807 | 0 | 0 | 0 | 0 | 0 | 0.101246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.133333 | 0.533333 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
f5a999cd4b5cbfbd68a0e78044da6d9af0bb63f3 | 159 | py | Python | layout/urls.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | null | null | null | layout/urls.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | null | null | null | layout/urls.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | 2 | 2019-09-07T15:10:14.000Z | 2020-09-04T01:51:19.000Z | from django.urls import path
from layout.views.sidebarView import SidebarView
urlpatterns = [
path("sidebar/", SidebarView.as_view(), name="sidebar"),
]
| 19.875 | 60 | 0.742138 | 19 | 159 | 6.157895 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 159 | 7 | 61 | 22.714286 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
192b8ccf1e8e4db467e06780834c066633e56c8d | 101 | py | Python | tests/test_model.py | brorfred/pco2box | 2ddda97bd02b68b8d0e2bea6825e2fd48bac3b42 | [
"MIT"
] | 2 | 2022-02-21T06:03:05.000Z | 2022-02-21T16:02:12.000Z | tests/test_model.py | brorfred/pco2box | 2ddda97bd02b68b8d0e2bea6825e2fd48bac3b42 | [
"MIT"
] | null | null | null | tests/test_model.py | brorfred/pco2box | 2ddda97bd02b68b8d0e2bea6825e2fd48bac3b42 | [
"MIT"
] | null | null | null |
from pco2_east_west import model
def test_setup():
md = model.BoxModel(svec=730)
md.run()
| 12.625 | 33 | 0.683168 | 16 | 101 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.207921 | 101 | 7 | 34 | 14.428571 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1944882e3b068873bb5ce7e1b1310edbedbf2556 | 38 | py | Python | {{cookiecutter.project_slug}}/tests/conftest.py | rbturnbull/fastapp-cookiecutter | 84141bd967dbf2b7653a42123b1d8f055d0131ed | [
"Apache-2.0"
] | 1 | 2022-03-28T13:12:58.000Z | 2022-03-28T13:12:58.000Z | tests/conftest.py | rbturnbull/fastapp | 6f55c474b91c63ce7b968638b811fbdeb0761b97 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | rbturnbull/fastapp | 6f55c474b91c63ce7b968638b811fbdeb0761b97 | [
"Apache-2.0"
] | null | null | null | pytest_plugins = ("fastapp.testing",)
| 19 | 37 | 0.736842 | 4 | 38 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
19565fa2ae81ac843da58894fc3bdb7989c5b04e | 182 | py | Python | src/gtk/toga_gtk/colors.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 1,261 | 2019-03-31T16:28:47.000Z | 2022-03-31T09:01:23.000Z | src/gtk/toga_gtk/colors.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 597 | 2019-04-02T20:02:42.000Z | 2022-03-30T10:28:47.000Z | src/gtk/toga_gtk/colors.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 318 | 2019-03-31T18:32:00.000Z | 2022-03-30T18:07:13.000Z | CACHE = {}
def native_color(c):
try:
color = CACHE[c]
except KeyError:
color = (c.rgba.r / 255, c.rgba.g / 255, c.rgba.b / 255, c.rgba.a)
return color
| 16.545455 | 74 | 0.538462 | 29 | 182 | 3.344828 | 0.517241 | 0.206186 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.307692 | 182 | 10 | 75 | 18.2 | 0.698413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
195ffc496ce4ac774355e8862e8b7f133368c5c8 | 579 | py | Python | app.py | vorteg/flaskHome | 396553204f79a3bbc16c7fcdd5a0dba9eef83986 | [
"MIT"
] | 1 | 2020-05-20T03:24:44.000Z | 2020-05-20T03:24:44.000Z | app.py | vorteg/flaskHome | 396553204f79a3bbc16c7fcdd5a0dba9eef83986 | [
"MIT"
] | 1 | 2020-05-20T16:27:01.000Z | 2020-05-20T16:27:01.000Z | src/flask_app/app.py | vorteg/pichonweb | 5738665922fb52906490138b5748aafef9a3fe40 | [
"MIT"
] | 3 | 2020-05-20T03:24:51.000Z | 2020-05-21T04:47:53.000Z |
from flask import Flask
from flask import render_template
from flask import request
server = Flask(__name__)
"""
en este ejercicio se muestra como renderizar un template de html,por default flask
busca los html dentro de una carpeta que se llame templates, si es necesario cambiar ubicacion
hay que mandar el nom... | 26.318182 | 94 | 0.75475 | 86 | 579 | 4.930233 | 0.627907 | 0.063679 | 0.106132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160622 | 579 | 21 | 95 | 27.571429 | 0.872428 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
197f5b85bbcd8889e5abe410bcc1167474edd051 | 244 | py | Python | solutions/02-num-boys-girls.py | rmania/network_analysis | ce9701f2818ce40276b60cf79c7fe30e78b844cf | [
"MIT"
] | 2 | 2021-01-09T15:57:26.000Z | 2021-11-29T01:44:21.000Z | solutions/02-num-boys-girls.py | rmania/network_analysis | ce9701f2818ce40276b60cf79c7fe30e78b844cf | [
"MIT"
] | 5 | 2019-11-15T02:00:26.000Z | 2021-01-06T04:26:40.000Z | solutions/02-num-boys-girls.py | rmania/network_analysis | ce9701f2818ce40276b60cf79c7fe30e78b844cf | [
"MIT"
] | 1 | 2019-12-30T23:54:46.000Z | 2019-12-30T23:54:46.000Z | from collections import Counter
mf_counts = Counter([d['gender']
for n, d in G.nodes(data=True)])
def test_answer(mf_counts):
assert mf_counts['female'] == 17
assert mf_counts['male'] == 12
test_answer(mf_counts)
| 24.4 | 53 | 0.651639 | 36 | 244 | 4.222222 | 0.638889 | 0.263158 | 0.157895 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.221311 | 244 | 9 | 54 | 27.111111 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1983ccd70fe3d9c25fbb973696b0a7ef7548d0f5 | 810 | py | Python | bot/api/events.py | sergeyklay/as-jsonify-bot | 382d1cde6e6f778398ad7385a081f27208349b80 | [
"Apache-2.0"
] | 1 | 2021-09-22T08:32:23.000Z | 2021-09-22T08:32:23.000Z | bot/api/events.py | sergeyklay/jsonify | 382d1cde6e6f778398ad7385a081f27208349b80 | [
"Apache-2.0"
] | null | null | null | bot/api/events.py | sergeyklay/jsonify | 382d1cde6e6f778398ad7385a081f27208349b80 | [
"Apache-2.0"
] | null | null | null | # This file is part of the Jsonify.
#
# Copyright (C) 2021 Serghei Iakovlev <egrep@protonmail.ch>
#
# For the full copyright and license information, please view
# the LICENSE file that was distributed with this source code.
from flask import request
from bot import logger
from bot.api import api
from bot.exceptions ... | 25.3125 | 62 | 0.696296 | 111 | 810 | 5.063063 | 0.711712 | 0.037367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014063 | 0.209877 | 810 | 31 | 63 | 26.129032 | 0.864063 | 0.451852 | 0 | 0 | 0 | 0 | 0.168618 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
19a537fcb3e20ec11856fb396df53e703aacbee8 | 394 | py | Python | lambda_function.py | HackinGibsons/curb | c022d17b8c87c3fe67892551e96800a08c6ba1d9 | [
"Apache-2.0"
] | null | null | null | lambda_function.py | HackinGibsons/curb | c022d17b8c87c3fe67892551e96800a08c6ba1d9 | [
"Apache-2.0"
] | null | null | null | lambda_function.py | HackinGibsons/curb | c022d17b8c87c3fe67892551e96800a08c6ba1d9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import re
import nltk
from nltk.corpus import brown
import pickle
import text_funcs as tf
import json
def lambda_handler(event, context):
# TODO implement
X, Y, lookup = tf.get_input_output()
payload = {"input": X.tolist(), "output": Y.tolist(), "lookup": lookup}
return {
'... | 21.888889 | 75 | 0.664975 | 55 | 394 | 4.654545 | 0.618182 | 0.039063 | 0.078125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.215736 | 394 | 17 | 76 | 23.176471 | 0.81877 | 0.035533 | 0 | 0 | 0 | 0 | 0.082011 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.642857 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5ff33e09b3b6d468df6c3c83d67a9ebc757e3ac9 | 5,709 | py | Python | dpctl/tests/test_sycl_queue_manager.py | 1e-to/dpctl | 29c2cbc34a82f7007f8e170d9b2548ab3e2b48d4 | [
"Apache-2.0"
] | null | null | null | dpctl/tests/test_sycl_queue_manager.py | 1e-to/dpctl | 29c2cbc34a82f7007f8e170d9b2548ab3e2b48d4 | [
"Apache-2.0"
] | 6 | 2021-07-08T08:08:25.000Z | 2021-09-10T13:55:55.000Z | dpctl/tests/test_sycl_queue_manager.py | 1e-to/dpctl | 29c2cbc34a82f7007f8e170d9b2548ab3e2b48d4 | [
"Apache-2.0"
] | null | null | null | # Data Parallel Control (dpctl)
#
# Copyright 2020-2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 35.90566 | 75 | 0.735681 | 824 | 5,709 | 4.811893 | 0.166262 | 0.088525 | 0.0686 | 0.081463 | 0.743506 | 0.740984 | 0.717024 | 0.686003 | 0.658764 | 0.625221 | 0 | 0.009207 | 0.162901 | 5,709 | 158 | 76 | 36.132911 | 0.820465 | 0.116658 | 0 | 0.584906 | 0 | 0 | 0.132019 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.122642 | false | 0 | 0.037736 | 0 | 0.160377 | 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 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.