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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
790e3e536dd01d77260e85b0de8cfac011048480 | 8,702 | py | Python | Outils/TRIOXDATA/XTriou/Extract_xdata.py | cea-trust-platform/trust-code | c4f42d8f8602a8cc5e0ead0e29dbf0be8ac52f72 | [
"BSD-3-Clause"
] | 12 | 2021-06-30T18:50:38.000Z | 2022-03-23T09:03:16.000Z | Outils/TRIOXDATA/XTriou/Extract_xdata.py | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | null | null | null | Outils/TRIOXDATA/XTriou/Extract_xdata.py | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | 2 | 2021-10-04T09:19:39.000Z | 2021-12-15T14:21:04.000Z | from optparse import OptionParser
import os,sys
import itertools
import re
def readSrc(src_dir):
lines=[]
for root, dirs, files in os.walk(src_dir):
for file in files:
if file.endswith(".cpp"):
lines+=["New_file "+ file]
lines_file = open(os.path.join(root, ... | 33.469231 | 119 | 0.478626 | 1,004 | 8,702 | 4.040837 | 0.183267 | 0.05546 | 0.031057 | 0.021691 | 0.299729 | 0.216663 | 0.15578 | 0.094158 | 0.056199 | 0.056199 | 0 | 0.009889 | 0.34923 | 8,702 | 259 | 120 | 33.598456 | 0.706516 | 0.044128 | 0 | 0.248804 | 0 | 0 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033493 | false | 0.119617 | 0.019139 | 0 | 0.08134 | 0.014354 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7914221f94ae8c4fc10c6cb77d31bf840d2d9c0e | 3,289 | py | Python | Medium/331.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 6 | 2017-09-25T18:05:50.000Z | 2019-03-27T00:23:15.000Z | Medium/331.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 1 | 2017-10-29T12:04:41.000Z | 2018-08-16T18:00:37.000Z | Medium/331.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | null | null | null | # ------------------------------
# 331. Verify Preorder Serialization of a Binary Tree
#
# Description:
# One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #.
#
# _9_
# ... | 42.714286 | 196 | 0.634235 | 501 | 3,289 | 4.143713 | 0.363273 | 0.008671 | 0.020231 | 0.042389 | 0.176301 | 0.152216 | 0.146435 | 0.127168 | 0.127168 | 0.127168 | 0 | 0.036243 | 0.219824 | 3,289 | 76 | 197 | 43.276316 | 0.772798 | 0.83612 | 0 | 0 | 0 | 0 | 0.023419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
791597244f5933cfb2660479a298f4ac4d1f4952 | 1,813 | py | Python | allauth/socialaccount/providers/other/weixin/client.py | Cairnica/django-allauth | 43ddfc81f7fd06fc6502d425bf78833d5dbf49d0 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/other/weixin/client.py | Cairnica/django-allauth | 43ddfc81f7fd06fc6502d425bf78833d5dbf49d0 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/other/weixin/client.py | Cairnica/django-allauth | 43ddfc81f7fd06fc6502d425bf78833d5dbf49d0 | [
"MIT"
] | null | null | null | import requests
from collections import OrderedDict
from django.utils.http import urlencode
from allauth.socialaccount.providers.core.oauth2.client import (
OAuth2Client,
OAuth2Error,
)
class WeixinOAuth2Client(OAuth2Client):
def get_redirect_url(self, authorization_url, extra_params):
params =... | 33.574074 | 70 | 0.570877 | 184 | 1,813 | 5.423913 | 0.380435 | 0.121242 | 0.04509 | 0.04008 | 0.092184 | 0.092184 | 0.092184 | 0.092184 | 0.092184 | 0 | 0 | 0.00755 | 0.342526 | 1,813 | 53 | 71 | 34.207547 | 0.829698 | 0.017099 | 0 | 0.086957 | 0 | 0 | 0.088202 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.195652 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
791ca75ca6230ee5cc8e2258813a2338b850a57f | 11,188 | py | Python | ImageJ/IJClassifier_.py | quantumjot/impy-tools | 32661b7e2bf88306cafce3c082087fbb5eb5eb60 | [
"MIT"
] | null | null | null | ImageJ/IJClassifier_.py | quantumjot/impy-tools | 32661b7e2bf88306cafce3c082087fbb5eb5eb60 | [
"MIT"
] | null | null | null | ImageJ/IJClassifier_.py | quantumjot/impy-tools | 32661b7e2bf88306cafce3c082087fbb5eb5eb60 | [
"MIT"
] | null | null | null | """
ImageJ plugin to export training data for generation of classifiers
Takes one to two image data streams, and crops out ROIs around
centroids defined by the ImageJ multipoint ROI. Packages these up
for use by the machine learning classifiers.
Functions:
Notes:
Changes:
Lowe, A.R. 2016
code@arlowe.co.uk
"""
__v... | 30.075269 | 123 | 0.606006 | 1,385 | 11,188 | 4.759567 | 0.241155 | 0.041414 | 0.014867 | 0.010922 | 0.082676 | 0.058556 | 0.034587 | 0.012136 | 0 | 0 | 0 | 0.003898 | 0.289149 | 11,188 | 371 | 124 | 30.156334 | 0.824972 | 0.099035 | 0 | 0.117347 | 0 | 0 | 0.130067 | 0.005758 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005102 | 0.056122 | null | null | 0.030612 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79265c8eb9a6b2e04ab48cbf7b0e82db50da3707 | 9,700 | py | Python | mozurestsdk/platform/referencedata.py | Mozu/mozu-python-sdk | 9cc918aca7db3639264184e5266e8e508a08a7dd | [
"Apache-2.0"
] | 1 | 2021-03-22T12:38:42.000Z | 2021-03-22T12:38:42.000Z | mozurestsdk/platform/referencedata.py | Mozu/mozu-python-sdk | 9cc918aca7db3639264184e5266e8e508a08a7dd | [
"Apache-2.0"
] | null | null | null | mozurestsdk/platform/referencedata.py | Mozu/mozu-python-sdk | 9cc918aca7db3639264184e5266e8e508a08a7dd | [
"Apache-2.0"
] | 2 | 2015-09-30T19:49:00.000Z | 2015-09-30T19:51:03.000Z |
"""
This code was generated by Codezu.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
"""
from mozurestsdk.mozuclient import default as default_client
from mozurestsdk.mozuurl import MozuUrl;
from mozurestsdk.urllocation import UrlLocation
class Ref... | 32.225914 | 395 | 0.708041 | 1,042 | 9,700 | 6.585413 | 0.210173 | 0.039347 | 0.051151 | 0.053046 | 0.664966 | 0.641358 | 0.629991 | 0.555377 | 0.473477 | 0.453949 | 0 | 0.000128 | 0.193299 | 9,700 | 301 | 396 | 32.225914 | 0.876805 | 0.472371 | 0 | 0.513158 | 1 | 0 | 0.263883 | 0.207503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.039474 | 0 | 0.407895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
792a09bd650eb419a56ed01d791d032370cdc57a | 2,138 | py | Python | src/autofaker/autodata.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | null | null | null | src/autofaker/autodata.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | 1 | 2022-02-06T21:18:34.000Z | 2022-02-06T21:18:34.000Z | src/autofaker/autodata.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | null | null | null | """
Provides classes for anonymous object creation to help minimize the setup/arrange phase when writing unit tests
"""
import typing
from typing import List
from autofaker.dataframe import PandasDataFrameGenerator
from autofaker.generator import TypeDataGenerator
class Autodata:
"""
Provides anonymous obje... | 41.921569 | 127 | 0.698784 | 298 | 2,138 | 4.919463 | 0.268456 | 0.057299 | 0.090041 | 0.061392 | 0.471351 | 0.435198 | 0.435198 | 0.376535 | 0.336971 | 0.336971 | 0 | 0.003686 | 0.238541 | 2,138 | 50 | 128 | 42.76 | 0.896806 | 0.558934 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.647059 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
792d6c7f0dee115712130109f02adb80c35b2156 | 474 | py | Python | tests/test_crc32c.py | shirui-japina/tensorboardX | 366bc8ff960a1d674feb8a844da187222103251e | [
"MIT"
] | 5,378 | 2018-07-15T12:37:38.000Z | 2022-03-31T17:55:25.000Z | tests/test_crc32c.py | kdongyi/tensorboardX | 9b9933aa6b614de32341142533e7cf9594cdc2c4 | [
"MIT"
] | 461 | 2018-07-19T02:48:05.000Z | 2022-03-02T17:56:43.000Z | tests/test_crc32c.py | kdongyi/tensorboardX | 9b9933aa6b614de32341142533e7cf9594cdc2c4 | [
"MIT"
] | 753 | 2018-07-16T14:46:47.000Z | 2022-03-29T08:04:08.000Z | import unittest
from tensorboardX.crc32c import _crc32c, _crc32c_native, crc32c
class CRC32CTest(unittest.TestCase):
def test_crc32c(self):
data = b'abcd'
assert crc32c(data) == 0x92c80a31
def test_crc32c_python(self):
data = b'abcd'
assert _crc32c(data) == 0x92c80a31
def... | 24.947368 | 63 | 0.654008 | 56 | 474 | 5.303571 | 0.392857 | 0.161616 | 0.131313 | 0.151515 | 0.420875 | 0.350168 | 0.350168 | 0.350168 | 0.350168 | 0.350168 | 0 | 0.12931 | 0.265823 | 474 | 18 | 64 | 26.333333 | 0.724138 | 0 | 0 | 0.214286 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0.063291 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
7931311fe98d5b9bf4e76f1ff32fcabc48aa1abb | 138 | py | Python | Q00__/17_Letter_Combinations_of_a_Phone_Number/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q00__/17_Letter_Combinations_of_a_Phone_Number/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q00__/17_Letter_Combinations_of_a_Phone_Number/test.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from Solution import Solution
obj = Solution()
#A = "23"
#A = ""
A = "238"
out = obj.letterCombinations(A)
print(out)
| 12.545455 | 31 | 0.652174 | 20 | 138 | 4.5 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.166667 | 138 | 10 | 32 | 13.8 | 0.73913 | 0.217391 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7931b8e21600b84130c1d7f7209ac2d88e582892 | 3,143 | py | Python | system-password/windows/UI/UI_janela_admin.py | ryanprogrammer/password-saving | 42aefd23a61eac41d9b3ce4d7a2f3ce2a8f79dd7 | [
"MIT"
] | 2 | 2022-02-15T20:46:30.000Z | 2022-02-16T01:25:22.000Z | system-password/windows/UI/UI_janela_admin.py | ryanprogrammer/password-saving | 42aefd23a61eac41d9b3ce4d7a2f3ce2a8f79dd7 | [
"MIT"
] | null | null | null | system-password/windows/UI/UI_janela_admin.py | ryanprogrammer/password-saving | 42aefd23a61eac41d9b3ce4d7a2f3ce2a8f79dd7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\Files_UI\untitled_2.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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 PyQt5 impor... | 45.550725 | 87 | 0.697741 | 373 | 3,143 | 5.774799 | 0.364611 | 0.091922 | 0.071495 | 0.034819 | 0.15831 | 0.079851 | 0.048282 | 0.048282 | 0.048282 | 0 | 0 | 0.038911 | 0.18231 | 3,143 | 68 | 88 | 46.220588 | 0.799222 | 0.090996 | 0 | 0.037037 | 1 | 0 | 0.087048 | 0.015444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7004e17940f340a8654a088ad8c1a3611a4bb3f | 3,415 | py | Python | polyaxon_schemas/ml/layers/wrappers.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | polyaxon_schemas/ml/layers/wrappers.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | polyaxon_schemas/ml/layers/wrappers.py | granularai/polyaxon-schemas | 017ae74701f21f12f0b25e75379681ea5d8baa9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from marshmallow import fields
from polyaxon_schemas.ml.layers.base import BaseLayerConfig, BaseLayerSchema
class WrapperSchema(BaseLayerSchema):
layer = fields.Nested('LayerSchema')
@staticmethod
def schema_config... | 25.296296 | 88 | 0.652709 | 413 | 3,415 | 5.33414 | 0.387409 | 0.014526 | 0.016341 | 0.036768 | 0.139355 | 0.124376 | 0.082615 | 0.062642 | 0.035406 | 0.035406 | 0 | 0.024438 | 0.257101 | 3,415 | 134 | 89 | 25.485075 | 0.84391 | 0.615813 | 0 | 0.214286 | 0 | 0 | 0.044359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.107143 | 0.107143 | 0.821429 | 0.035714 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
f7023ee0d3ad1b30fdb112dd29346571bffa97ee | 3,822 | py | Python | python/TextMatch.py | indeshan/code | eb76edf54982d68ecec96664291ce3ce038e30c7 | [
"MIT"
] | null | null | null | python/TextMatch.py | indeshan/code | eb76edf54982d68ecec96664291ce3ce038e30c7 | [
"MIT"
] | null | null | null | python/TextMatch.py | indeshan/code | eb76edf54982d68ecec96664291ce3ce038e30c7 | [
"MIT"
] | null | null | null | import nltk.corpus
import nltk.tokenize.punkt
import nltk.stem.snowball
from nltk.corpus import wordnet
import string
paths = nltk.data.path
#if '/var/nltk_data' not in paths:
# nltk.data.path.append("/var/nltk_data");
# if '/mnt/vol1/nltk_data' not in paths:
# nltk.data.path.append("/mnt/vol1/nltk_data");
#nltk.d... | 35.719626 | 196 | 0.71821 | 598 | 3,822 | 4.441472 | 0.282609 | 0.049699 | 0.070407 | 0.091114 | 0.494729 | 0.445783 | 0.420181 | 0.396084 | 0.396084 | 0.277485 | 0 | 0.024632 | 0.12899 | 3,822 | 107 | 197 | 35.719626 | 0.773205 | 0.114861 | 0 | 0.190476 | 0 | 0 | 0.310365 | 0.025165 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.301587 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f704dd4818c3b8d3017ae2937945bb191f230b62 | 2,054 | py | Python | python_smaclient/smapi_request.py | jloehel/python_smaclient | ed18efb4e19728f3644eb1e510262def57a1767b | [
"0BSD"
] | null | null | null | python_smaclient/smapi_request.py | jloehel/python_smaclient | ed18efb4e19728f3644eb1e510262def57a1767b | [
"0BSD"
] | null | null | null | python_smaclient/smapi_request.py | jloehel/python_smaclient | ed18efb4e19728f3644eb1e510262def57a1767b | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
import uuid
from construct import Container
class SMAPI_Request(object):
'''
Implentation of a ICUV Request
'''
def __init__(self, function_name, target_identifier,
authenticated_userid=b"", password=b"", additional_parameters=b""):
self._function_n... | 44.652174 | 89 | 0.624635 | 187 | 2,054 | 6.304813 | 0.203209 | 0.101781 | 0.081425 | 0.05598 | 0.301951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002821 | 0.30964 | 2,054 | 45 | 90 | 45.644444 | 0.828632 | 0.02483 | 0 | 0 | 0 | 0 | 0.009581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.171429 | 0.057143 | 0.028571 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f7087f18674824aa39489d7b07d80db3e4b0e9b8 | 543 | py | Python | tests/test_renderer.py | saeedou/adia | 86dc0c96c9b0bd804dff208e91c71a1958df56b0 | [
"MIT"
] | 17 | 2021-07-29T08:26:08.000Z | 2022-03-26T23:26:38.000Z | tests/test_renderer.py | saeedou/adia | 86dc0c96c9b0bd804dff208e91c71a1958df56b0 | [
"MIT"
] | 37 | 2021-07-28T08:19:23.000Z | 2021-09-24T17:31:07.000Z | tests/test_renderer.py | saeedou/adia | 86dc0c96c9b0bd804dff208e91c71a1958df56b0 | [
"MIT"
] | 3 | 2021-09-14T10:54:51.000Z | 2022-01-04T15:37:35.000Z | from adia.sequence import Module
from adia.renderer import ModulePlan, ItemStartPlan, ItemEndPlan, LEFT, RIGHT
def test_moduleplan():
p = ModulePlan(Module('foo'))
assert repr(p) == 'ModulePlan: foo'
def test_itemplans():
class Item:
def __repr__(self):
return 'foo -> bar'
item ... | 25.857143 | 77 | 0.609576 | 67 | 543 | 4.850746 | 0.358209 | 0.083077 | 0.101538 | 0.116923 | 0.246154 | 0.110769 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.222836 | 543 | 20 | 78 | 27.15 | 0.765403 | 0 | 0 | 0 | 0 | 0 | 0.128913 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
f70a75e1d9bb17e8ca4b66e379fd93f2e4479d40 | 5,117 | py | Python | examples/gto/20-ao_integrals.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | 1 | 2018-05-02T19:55:30.000Z | 2018-05-02T19:55:30.000Z | examples/gto/20-ao_integrals.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | null | null | null | examples/gto/20-ao_integrals.py | nmardirossian/pyscf | 57c8912dcfcc1157a822feede63df54ed1067115 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Access AO integrals
Mole.intor and Mole.intor_by_shell functions can generate AO integrals.
Calling Mole.intor with the integral function name returns a integral matrix
for all basis functions defined in Mole. If the integral operator has many... | 30.825301 | 82 | 0.580027 | 857 | 5,117 | 3.34189 | 0.234539 | 0.036662 | 0.034916 | 0.048883 | 0.308659 | 0.278631 | 0.239874 | 0.239874 | 0.172137 | 0.172137 | 0 | 0.032392 | 0.294118 | 5,117 | 165 | 83 | 31.012121 | 0.76052 | 0.270276 | 0 | 0.477477 | 1 | 0 | 0.082522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018018 | 0 | 0.018018 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f70cf2010a1330c0e64179719380864feeaae809 | 1,230 | py | Python | turbogears/tests/catwalk_models/browse.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | null | null | null | turbogears/tests/catwalk_models/browse.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 9 | 2015-01-27T19:13:56.000Z | 2019-03-29T14:44:31.000Z | turbogears/tests/catwalk_models/browse.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 13 | 2015-04-14T14:15:53.000Z | 2020-03-18T01:05:46.000Z | from sqlobject import *
__connection__ = connectionForURI("sqlite:///:memory:")
hub = __connection__
class Genre(SQLObject):
name = StringCol()
artists = RelatedJoin('Artist')
class Artist(SQLObject):
name = StringCol()
genres = RelatedJoin('Genre')
albums = MultipleJoin('Album')
plays_instr... | 31.538462 | 80 | 0.652033 | 104 | 1,230 | 7.519231 | 0.346154 | 0.08312 | 0.140665 | 0.074169 | 0.227621 | 0.227621 | 0.227621 | 0.227621 | 0.227621 | 0.227621 | 0 | 0 | 0.241463 | 1,230 | 38 | 81 | 32.368421 | 0.838156 | 0 | 0 | 0.290323 | 0 | 0 | 0.145528 | 0.037398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.612903 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f71b922170a32d261f523c660af62772c3182168 | 5,687 | py | Python | mjmpc/control/olgaussian_mpc.py | mohakbhardwaj/mjmpc | 097e8d9bdaf0b3a15afa39030b2f53b00dfa25de | [
"Apache-2.0"
] | 2 | 2021-08-15T22:23:50.000Z | 2021-12-03T13:09:13.000Z | mjmpc/control/olgaussian_mpc.py | mohakbhardwaj/mjmpc | 097e8d9bdaf0b3a15afa39030b2f53b00dfa25de | [
"Apache-2.0"
] | null | null | null | mjmpc/control/olgaussian_mpc.py | mohakbhardwaj/mjmpc | 097e8d9bdaf0b3a15afa39030b2f53b00dfa25de | [
"Apache-2.0"
] | 1 | 2022-02-18T10:22:49.000Z | 2022-02-18T10:22:49.000Z | """
MPC with open-loop Gaussian policies
"""
from .controller import Controller
from mjmpc.utils.control_utils import generate_noise, scale_ctrl
import copy
import numpy as np
import scipy.special
class OLGaussianMPC(Controller):
def __init__(self,
d_state,
d_obs,
... | 40.621429 | 103 | 0.523475 | 609 | 5,687 | 4.612479 | 0.252874 | 0.037024 | 0.064792 | 0.0267 | 0.312211 | 0.259879 | 0.259879 | 0.197935 | 0.197935 | 0.173727 | 0 | 0.006979 | 0.395288 | 5,687 | 139 | 104 | 40.913669 | 0.809828 | 0.210656 | 0 | 0.21978 | 1 | 0 | 0.038652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.054945 | 0 | 0.175824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f71e44aad927f5ef6129ca72ac718a82de543b96 | 842 | py | Python | dojo/unittests/tools/test_acunetix_parser.py | brunoduruzup/django-DefectDojo | cd598b44f1c44ca2a05fdf95f99c0d526509f656 | [
"BSD-3-Clause"
] | 2 | 2021-09-19T23:19:12.000Z | 2022-03-26T10:20:49.000Z | dojo/unittests/tools/test_acunetix_parser.py | brunoduruzup/django-DefectDojo | cd598b44f1c44ca2a05fdf95f99c0d526509f656 | [
"BSD-3-Clause"
] | 167 | 2021-03-15T13:49:54.000Z | 2022-03-31T09:10:30.000Z | dojo/unittests/tools/test_acunetix_parser.py | Hijerboa/django-DefectDojo | 3aea3bc3406f860c0842b0bf8800efe2c86bf81b | [
"BSD-3-Clause"
] | 4 | 2016-09-19T17:33:39.000Z | 2018-12-10T07:55:45.000Z | from django.test import TestCase
from dojo.tools.acunetix.parser import AcunetixParser
from dojo.models import Test
class TestAcunetixParser(TestCase):
def test_parse_without_file(self):
parser = AcunetixParser()
findings = parser.get_findings(None, Test())
self.assertEqual(0, len(findings... | 36.608696 | 74 | 0.712589 | 99 | 842 | 5.878788 | 0.363636 | 0.036082 | 0.061856 | 0.175258 | 0.609966 | 0.609966 | 0.532646 | 0.426117 | 0.257732 | 0.257732 | 0 | 0.00438 | 0.186461 | 842 | 22 | 75 | 38.272727 | 0.845255 | 0 | 0 | 0.277778 | 0 | 0 | 0.109264 | 0.109264 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 0 | 1 |
f72090137ed4a55b46aada64a6912f716757178f | 11,993 | py | Python | qusp/target.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | qusp/target.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | qusp/target.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | """
Provides support for working with BOSS targets.
In qusp, a target is identified by a unique plate-mjd-fiber. They are implemented as dictionaries and
must have at least 'plate', 'mjd', and 'fiber' keys specified. The Target model is designed to be flexible,
in that other attributes can be added to targets as neede... | 35.482249 | 118 | 0.636455 | 1,547 | 11,993 | 4.854557 | 0.166774 | 0.023435 | 0.031158 | 0.016778 | 0.388149 | 0.325433 | 0.262583 | 0.24474 | 0.216778 | 0.203196 | 0 | 0.001902 | 0.254899 | 11,993 | 337 | 119 | 35.587537 | 0.838518 | 0.027266 | 0 | 0.17094 | 0 | 0 | 0.089236 | 0.003864 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059829 | null | null | 0.059829 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f722306e60c10161ddfe9d5743fd65dcb873c5bb | 3,778 | py | Python | scrubber/models.py | adamyi/CrowdAnnotator | 5b5e4703899d2f1f4640b9cf76894ccb3943f07f | [
"Apache-2.0"
] | 3 | 2020-10-04T12:09:46.000Z | 2021-09-20T19:25:11.000Z | scrubber/models.py | adamyi/CrowdAnnotator | 5b5e4703899d2f1f4640b9cf76894ccb3943f07f | [
"Apache-2.0"
] | 2 | 2020-06-05T21:18:09.000Z | 2021-06-10T21:33:18.000Z | scrubber/models.py | adamyi/CrowdAnnotator | 5b5e4703899d2f1f4640b9cf76894ccb3943f07f | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
import re
import json
# import nlp
try:
import Queue as Q #python version < 3.0
except ImportError:
import queue as Q #python3.*
class wordBlock():
def __init__(self, start, end, kind):
self.start = start;
self.end = en... | 35.641509 | 143 | 0.622287 | 433 | 3,778 | 5.26097 | 0.288684 | 0.091308 | 0.055312 | 0.065847 | 0.354258 | 0.325285 | 0.230904 | 0.230904 | 0.207638 | 0.207638 | 0 | 0.007975 | 0.236633 | 3,778 | 105 | 144 | 35.980952 | 0.7819 | 0.492059 | 0 | 0.215686 | 0 | 0 | 0.003739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.137255 | 0.098039 | 0.784314 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f72b9c283b7d0547ed71c29c45e273ec49018748 | 876 | py | Python | paneldata_dash/resources/category.py | clarencejlee/jdp | d3d31db0138ff06f2f5ec592d85317941af4f280 | [
"MIT"
] | null | null | null | paneldata_dash/resources/category.py | clarencejlee/jdp | d3d31db0138ff06f2f5ec592d85317941af4f280 | [
"MIT"
] | null | null | null | paneldata_dash/resources/category.py | clarencejlee/jdp | d3d31db0138ff06f2f5ec592d85317941af4f280 | [
"MIT"
] | null | null | null | from flask import request
from flask_restful import Resource
from models.category import CategoryModel
from schemas.category import CategorySchema
category_schema = CategorySchema()
category_list_schema = CategorySchema(many=True)
class Category(Resource):
@classmethod
def get(cls, name: str):
cate... | 30.206897 | 89 | 0.692922 | 111 | 876 | 5.378378 | 0.414414 | 0.092127 | 0.117253 | 0.090452 | 0.164154 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019915 | 0.197489 | 876 | 28 | 90 | 31.285714 | 0.829303 | 0 | 0 | 0.1 | 0 | 0 | 0.062785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.55 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f72e82c9d7bd2b2e7b24df8a3f6dc4ce9687a9d7 | 699 | py | Python | src/podping_hivewriter/models/podping_settings.py | brianoflondon/podping-hivewriter | 0fab946b00ae1c53db72a2f0b48de3f02a771a1d | [
"MIT"
] | 11 | 2021-05-28T15:58:31.000Z | 2022-03-21T07:08:58.000Z | src/podping_hivewriter/models/podping_settings.py | brianoflondon/podping-hivewriter | 0fab946b00ae1c53db72a2f0b48de3f02a771a1d | [
"MIT"
] | 33 | 2021-06-12T09:23:47.000Z | 2022-02-27T06:34:05.000Z | src/podping_hivewriter/models/podping_settings.py | brianoflondon/podping-hivewriter | 0fab946b00ae1c53db72a2f0b48de3f02a771a1d | [
"MIT"
] | 3 | 2021-07-30T19:40:04.000Z | 2022-01-19T04:14:14.000Z | from typing import Tuple
from pydantic import BaseModel, validator
class PodpingSettings(BaseModel):
"""Dataclass for settings we will fetch from Hive"""
hive_operation_period: int = 3
max_url_list_bytes: int = 7500
diagnostic_report_period: int = 60
control_account: str = "podping"
control_... | 30.391304 | 71 | 0.680973 | 96 | 699 | 4.739583 | 0.666667 | 0.059341 | 0.083516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.23319 | 699 | 22 | 72 | 31.772727 | 0.826493 | 0.217454 | 0 | 0 | 0 | 0 | 0.113636 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.785714 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f72fd3f3fdf870d59380133842ea37b254c8a18a | 24,808 | py | Python | Scripts/simulation/restaurants/restaurant_commands.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/restaurants/restaurant_commands.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/restaurants/restaurant_commands.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\restaurants\restaurant_commands.py
# Compiled at: 2018-08-28 03:56:41
# Size of source mod 2**32: 29... | 51.791232 | 192 | 0.747743 | 3,198 | 24,808 | 5.497811 | 0.080363 | 0.093163 | 0.063758 | 0.058355 | 0.766693 | 0.715277 | 0.66551 | 0.613639 | 0.5914 | 0.551473 | 0 | 0.010265 | 0.167527 | 24,808 | 479 | 193 | 51.791232 | 0.841081 | 0.012778 | 0 | 0.6 | 0 | 0.002381 | 0.144007 | 0.03639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.004762 | 0.028571 | 0 | 0.264286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7326e08422672f437abdf740d0fd756aaca9b7e | 2,935 | py | Python | two_factor/views/mixins.py | Bassel2387/django-two-factor-auth | e69d9a7fa289a0289e6fc42f4f9cea632e01132d | [
"MIT"
] | 65 | 2021-12-30T16:58:11.000Z | 2022-03-28T21:36:51.000Z | two_factor/views/mixins.py | Bassel2387/django-two-factor-auth | e69d9a7fa289a0289e6fc42f4f9cea632e01132d | [
"MIT"
] | 68 | 2021-12-29T19:48:40.000Z | 2022-03-31T10:51:12.000Z | two_factor/views/mixins.py | Bassel2387/django-two-factor-auth | e69d9a7fa289a0289e6fc42f4f9cea632e01132d | [
"MIT"
] | 21 | 2021-12-30T16:58:14.000Z | 2022-03-30T07:10:23.000Z | from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.views import redirect_to_login
from django.core.exceptions import PermissionDenied
from django.template.response import TemplateResponse
from django.urls import reverse
from ..utils import default_device
class OTPRequiredMixin:
"""
... | 35.361446 | 94 | 0.639864 | 373 | 2,935 | 4.908847 | 0.340483 | 0.034407 | 0.024577 | 0.026215 | 0.276352 | 0.219552 | 0.192245 | 0.160568 | 0.160568 | 0.160568 | 0 | 0.001427 | 0.283816 | 2,935 | 82 | 95 | 35.792683 | 0.869648 | 0.185009 | 0 | 0.114286 | 0 | 0 | 0.028291 | 0.019053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.171429 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f7352703ed42ee6015d5ca30e57234884d399073 | 1,652 | py | Python | test/testAnonymizationExecutor.py | AutoDash/AutoDash | 3924795a04159f80ea3b65b2172747babd15f35f | [
"Apache-2.0"
] | 3 | 2020-02-12T01:24:46.000Z | 2020-02-13T00:50:46.000Z | test/testAnonymizationExecutor.py | AutoDash/AutoDash | 3924795a04159f80ea3b65b2172747babd15f35f | [
"Apache-2.0"
] | 32 | 2020-02-20T10:20:56.000Z | 2022-02-10T01:42:46.000Z | test/testAnonymizationExecutor.py | AutoDash/AutoDash | 3924795a04159f80ea3b65b2172747babd15f35f | [
"Apache-2.0"
] | 1 | 2020-02-22T02:47:19.000Z | 2020-02-22T02:47:19.000Z | #!/usr/bin/env python3
import unittest
import os
import shutil
from src.data.VideoItem import VideoItem
from src.data.MetaDataItem import MetaDataItem
from src.executor.FaceBlurrer import FaceBlurrer
from numpy.testing import assert_array_equal, assert_raises
class TestAnonymizationExecutor(unittest.TestCase):
TE... | 33.04 | 103 | 0.70339 | 224 | 1,652 | 4.995536 | 0.40625 | 0.037534 | 0.039321 | 0.021448 | 0.07328 | 0.041108 | 0 | 0 | 0 | 0 | 0 | 0.003828 | 0.209443 | 1,652 | 49 | 104 | 33.714286 | 0.852986 | 0.080508 | 0 | 0 | 0 | 0 | 0.072248 | 0.040138 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.130435 | false | 0 | 0.304348 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7382c606fd7cdc45568f8a9fd6fa00f01b557e7 | 782 | py | Python | scylla/providers/proxy_scraper_provider.py | cities/scylla | db9d7b8f5ca22582ca84028ef4558a64c0d8b137 | [
"Apache-2.0"
] | 1 | 2021-05-16T16:21:20.000Z | 2021-05-16T16:21:20.000Z | scylla/providers/proxy_scraper_provider.py | cities/scylla | db9d7b8f5ca22582ca84028ef4558a64c0d8b137 | [
"Apache-2.0"
] | null | null | null | scylla/providers/proxy_scraper_provider.py | cities/scylla | db9d7b8f5ca22582ca84028ef4558a64c0d8b137 | [
"Apache-2.0"
] | null | null | null | import json
from pyquery import PyQuery
from scylla.database import ProxyIP
from .base_provider import BaseProvider
class ProxyScraperProvider(BaseProvider):
def urls(self) -> [str]:
return ['https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.json']
def parse(self, document: ... | 25.225806 | 96 | 0.644501 | 96 | 782 | 5.104167 | 0.520833 | 0.04898 | 0.069388 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006768 | 0.244246 | 782 | 30 | 97 | 26.066667 | 0.822335 | 0 | 0 | 0.1 | 0 | 0 | 0.124041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f73e92de89b4a24afe0aadf707ce613fc081680c | 469 | py | Python | src/accounts/migrations/0002_auto_20200616_1337.py | albertonl/langsbay | cab14fe63c28dfe22e0a2ab7ca0e3c45b7d8dd25 | [
"MIT"
] | 3 | 2020-07-08T14:36:30.000Z | 2021-01-14T14:42:14.000Z | src/accounts/migrations/0002_auto_20200616_1337.py | albertonl/langsbay | cab14fe63c28dfe22e0a2ab7ca0e3c45b7d8dd25 | [
"MIT"
] | 7 | 2021-04-08T21:21:27.000Z | 2022-01-13T02:58:58.000Z | src/accounts/migrations/0002_auto_20200616_1337.py | albertonl/langsbay | cab14fe63c28dfe22e0a2ab7ca0e3c45b7d8dd25 | [
"MIT"
] | 1 | 2020-07-08T14:36:34.000Z | 2020-07-08T14:36:34.000Z | # Generated by Django 3.0.7 on 2020-06-16 13:37
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('learning', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('accounts', '0001_initial'),... | 22.333333 | 66 | 0.635394 | 49 | 469 | 5.938776 | 0.755102 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065903 | 0.255864 | 469 | 20 | 67 | 23.45 | 0.767908 | 0.095949 | 0 | 0 | 1 | 0 | 0.149289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f740b71e6b91cf892d29dabb0041c1e46760b9cc | 5,955 | py | Python | leetcode_python/Two_Pointers/linked-list-cycle-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Two_Pointers/linked-list-cycle-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Two_Pointers/linked-list-cycle-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | """
142. Linked List Cycle II
Medium
Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null.
There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote t... | 27.068182 | 322 | 0.560705 | 793 | 5,955 | 4.132409 | 0.201765 | 0.043943 | 0.043943 | 0.053708 | 0.593226 | 0.536771 | 0.488251 | 0.466585 | 0.414403 | 0.370766 | 0 | 0.019161 | 0.351469 | 5,955 | 220 | 323 | 27.068182 | 0.829363 | 0.370613 | 0 | 0.763158 | 0 | 0 | 0.000584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0 | 0 | 0.359649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f744d0d72469ae77a2577f774ee35528f74cf54c | 36,050 | py | Python | lessons/models.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 3 | 2019-10-22T20:21:15.000Z | 2022-01-12T19:38:48.000Z | lessons/models.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 67 | 2019-09-27T17:04:52.000Z | 2022-03-21T22:16:23.000Z | lessons/models.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 1 | 2019-10-18T16:06:31.000Z | 2019-10-18T16:06:31.000Z | import re
import itertools
import datetime
import urllib2
import logging
import json
import bleach
from urlparse import urlparse
# from copy import copy, deepcopy
from django.conf import settings
from django.db import models
from django.db.models.signals import post_save, post_delete
from django.dispatch import receive... | 37.396266 | 153 | 0.626963 | 4,331 | 36,050 | 5.074348 | 0.149157 | 0.015471 | 0.01538 | 0.020112 | 0.333485 | 0.294808 | 0.254994 | 0.223552 | 0.190699 | 0.157255 | 0 | 0.006306 | 0.260999 | 36,050 | 963 | 154 | 37.435099 | 0.818625 | 0.057004 | 0 | 0.349454 | 0 | 0.00312 | 0.149221 | 0.021544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00156 | 0.053042 | null | null | 0.0078 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f75010c9a0c67bc5f018b36ba9ab765c18ef06d9 | 468 | py | Python | app/models/common.py | ilya-goldin/kanban-board-app | 3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122 | [
"MIT"
] | null | null | null | app/models/common.py | ilya-goldin/kanban-board-app | 3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122 | [
"MIT"
] | null | null | null | app/models/common.py | ilya-goldin/kanban-board-app | 3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122 | [
"MIT"
] | null | null | null | import datetime
from pydantic import BaseModel, Field, validator
class DateTimeModelMixin(BaseModel):
created_at: datetime.datetime = None
updated_at: datetime.datetime = None
@validator('created_at', 'updated_at', pre=True)
def default_datetime(
cls,
value: datetime.datetime... | 22.285714 | 52 | 0.681624 | 52 | 468 | 6.019231 | 0.519231 | 0.306709 | 0.115016 | 0.140575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.220085 | 468 | 20 | 53 | 23.4 | 0.854795 | 0 | 0 | 0 | 0 | 0 | 0.047109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f755b6c65975b84f57807b1f4d9fb20a2a5a22f5 | 304 | py | Python | setup.py | ChinzoD/rdalchemy | 350a4a2589425ca9faaea50dac990b2f969a044b | [
"MIT"
] | null | null | null | setup.py | ChinzoD/rdalchemy | 350a4a2589425ca9faaea50dac990b2f969a044b | [
"MIT"
] | null | null | null | setup.py | ChinzoD/rdalchemy | 350a4a2589425ca9faaea50dac990b2f969a044b | [
"MIT"
] | 2 | 2020-03-24T20:13:02.000Z | 2020-08-12T22:20:32.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='rdalchemy',
version='0.0.21',
description='Using SQLAlchemy with chemical databases',
packages=['rdalchemy'],
install_requires=[
'psycopg2-binary',
'SQLAlchemy>=0.7.0',
],
)
| 21.714286 | 61 | 0.621711 | 33 | 304 | 5.666667 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.236842 | 304 | 13 | 62 | 23.384615 | 0.771552 | 0.065789 | 0 | 0 | 0 | 0 | 0.339223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f75a5cdf49bdadff151e7feeabbe10793916827f | 410 | py | Python | decaptcha/migrations/0002_auto_20181125_1723.py | youngershen/django-easy-captcha | bfcd13bbafface7048139e0bc49358e6628439df | [
"MIT"
] | 3 | 2019-03-02T03:48:35.000Z | 2021-11-09T11:06:25.000Z | decaptcha/migrations/0002_auto_20181125_1723.py | youngershen/django-easy-captcha | bfcd13bbafface7048139e0bc49358e6628439df | [
"MIT"
] | null | null | null | decaptcha/migrations/0002_auto_20181125_1723.py | youngershen/django-easy-captcha | bfcd13bbafface7048139e0bc49358e6628439df | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-25 09:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('decaptcha', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='captcharecord',
name='hashkey',
... | 21.578947 | 75 | 0.609756 | 43 | 410 | 5.72093 | 0.813953 | 0.089431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073826 | 0.273171 | 410 | 18 | 76 | 22.777778 | 0.751678 | 0.109756 | 0 | 0 | 1 | 0 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f75ad024086bcad07c661653f2cea2b77e2de5ec | 4,771 | py | Python | tests/exchange/test_liquidity_pool.py | adietrichs/uniswap-solidity | 98f8021ec501572af42046dcde0de6804df8a6c6 | [
"MIT"
] | 63 | 2019-03-02T13:00:41.000Z | 2022-03-09T20:32:13.000Z | tests/exchange/test_liquidity_pool.py | adietrichs/uniswap-solidity | 98f8021ec501572af42046dcde0de6804df8a6c6 | [
"MIT"
] | 3 | 2019-03-02T13:06:03.000Z | 2020-10-22T12:20:26.000Z | tests/exchange/test_liquidity_pool.py | adietrichs/uniswap-solidity | 98f8021ec501572af42046dcde0de6804df8a6c6 | [
"MIT"
] | 28 | 2019-04-18T06:31:28.000Z | 2022-03-06T18:54:14.000Z | from tests.constants import (
ETH_RESERVE,
HAY_RESERVE,
DEN_RESERVE,
INITIAL_ETH,
DEADLINE,
)
def test_initial_balances(w3, HAY_token, HAY_exchange, DEN_token, DEN_exchange):
a0, a1, a2 = w3.eth.accounts[:3]
# BUYER
assert HAY_token.balanceOf(a1) == 0
assert DEN_token.balanceOf(a1) ... | 54.83908 | 121 | 0.712848 | 673 | 4,771 | 4.870728 | 0.1263 | 0.144295 | 0.071385 | 0.077181 | 0.706833 | 0.557657 | 0.443563 | 0.348688 | 0.284625 | 0.267236 | 0 | 0.055915 | 0.156571 | 4,771 | 86 | 122 | 55.476744 | 0.758698 | 0.13079 | 0 | 0.19697 | 0 | 0 | 0.019622 | 0 | 0 | 0 | 0 | 0 | 0.681818 | 1 | 0.030303 | false | 0 | 0.015152 | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f760370154d06e3b9f1b48b67f9efa7c4e1382b0 | 619 | py | Python | retsinfo_app/scrapers/migrations/0009_auto_20210513_1955.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | 1 | 2022-02-21T09:42:51.000Z | 2022-02-21T09:42:51.000Z | retsinfo_app/scrapers/migrations/0009_auto_20210513_1955.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | null | null | null | retsinfo_app/scrapers/migrations/0009_auto_20210513_1955.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-05-13 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scrapers', '0008_retsinfodocument_scrapers_re_search__7f46e2_gin'),
]
operations = [
migrations.AddField(
model_name='retsinfodocu... | 24.76 | 77 | 0.605816 | 60 | 619 | 6.05 | 0.716667 | 0.099174 | 0.126722 | 0.14876 | 0.258953 | 0.258953 | 0 | 0 | 0 | 0 | 0 | 0.052511 | 0.292407 | 619 | 24 | 78 | 25.791667 | 0.776256 | 0.069467 | 0 | 0.333333 | 1 | 0 | 0.182927 | 0.090592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f76c806e3a490f948309aeff9f797da9ff3626d9 | 4,540 | py | Python | migrations/versions/847f24db2b48_.py | gedoensmanagement/Transkribus_spell_checker | 1413f1de137e786a4f078e6806b2e856120e78ea | [
"MIT"
] | null | null | null | migrations/versions/847f24db2b48_.py | gedoensmanagement/Transkribus_spell_checker | 1413f1de137e786a4f078e6806b2e856120e78ea | [
"MIT"
] | null | null | null | migrations/versions/847f24db2b48_.py | gedoensmanagement/Transkribus_spell_checker | 1413f1de137e786a4f078e6806b2e856120e78ea | [
"MIT"
] | null | null | null | """empty message
Revision ID: 847f24db2b48
Revises:
Create Date: 2021-09-14 20:46:44.700753
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '847f24db2b48'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 39.824561 | 67 | 0.661674 | 570 | 4,540 | 5.233333 | 0.170175 | 0.123366 | 0.150855 | 0.190077 | 0.695944 | 0.687563 | 0.671136 | 0.671136 | 0.48877 | 0.454241 | 0 | 0.026174 | 0.14163 | 4,540 | 113 | 68 | 40.176991 | 0.739287 | 0.062335 | 0 | 0.389474 | 0 | 0 | 0.127488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0.010526 | 0.021053 | 0 | 0.042105 | 0.021053 | 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 | 0 | 0 | 0 | 0 | 1 |
f76cd6950a3c43b3fd50dea307e1f8393f2e2882 | 1,891 | py | Python | vine/push.py | robinson96/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | 4 | 2017-04-30T17:08:42.000Z | 2019-11-15T04:44:09.000Z | vine/push.py | LLNL/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | 1 | 2016-02-19T07:24:27.000Z | 2016-02-19T07:24:27.000Z | vine/push.py | robinson96/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | null | null | null | import os
import option
import grapeGit as git
import utility
import grapeConfig
class Push(option.Option):
"""
grape push pushes your current branch to origin for your outer level repo and all submodules.
it uses 'git push -u origin HEAD' for the git command.
Usage: grape-push [--noRecurse]
Op... | 27.405797 | 104 | 0.615019 | 206 | 1,891 | 5.558252 | 0.470874 | 0.034061 | 0.039301 | 0.055022 | 0.054148 | 0.054148 | 0 | 0 | 0 | 0 | 0 | 0.001498 | 0.294024 | 1,891 | 69 | 105 | 27.405797 | 0.85618 | 0 | 0 | 0 | 0 | 0 | 0.115313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.136364 | null | null | 0.136364 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f77a7c79833edd8603ebc4a34d20833ad4769c8b | 237 | py | Python | BigChat/Contact/urls.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | null | null | null | BigChat/Contact/urls.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | 2 | 2020-02-11T23:35:33.000Z | 2020-06-05T19:36:53.000Z | BigChat/Contact/urls.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('Contacts/', views.Contacts.as_view(), name='contact'),
path('Profile/', views.profile.as_view(), name='profile'),
] | 26.333333 | 64 | 0.662447 | 30 | 237 | 5.166667 | 0.466667 | 0.077419 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14346 | 237 | 9 | 65 | 26.333333 | 0.763547 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f77c9db7a37ad8f92768c66f88b00e063174e557 | 538 | py | Python | game/inputs.py | cat-in-the-dark/ludum_43_game | 737bc08e6e2b7e3a92bb958b7c0a8ec0674d5a20 | [
"MIT"
] | null | null | null | game/inputs.py | cat-in-the-dark/ludum_43_game | 737bc08e6e2b7e3a92bb958b7c0a8ec0674d5a20 | [
"MIT"
] | null | null | null | game/inputs.py | cat-in-the-dark/ludum_43_game | 737bc08e6e2b7e3a92bb958b7c0a8ec0674d5a20 | [
"MIT"
] | null | null | null | import jvcr
class InputEx:
def __init__(self, release_time=0.2) -> None:
self.release_time = release_time
self._history = {}
def btnp(self, id, player_id=0):
if jvcr.btn(id, player_id):
time_not_pressed = self._history.get(id, self.release_time + 0.1)
if time_n... | 26.9 | 77 | 0.578067 | 72 | 538 | 4.041667 | 0.416667 | 0.189003 | 0.206186 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016438 | 0.321561 | 538 | 19 | 78 | 28.315789 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78059abf40657718f99d3ad75b2ba8d5308e158 | 921 | py | Python | squeezer/reduce.py | esceptico/squeezer | 98bc4c7923c6aa3b12ac81444d79392826fc34c6 | [
"MIT"
] | 29 | 2021-11-16T18:50:54.000Z | 2022-03-13T08:18:29.000Z | squeezer/reduce.py | esceptico/squeezer | 98bc4c7923c6aa3b12ac81444d79392826fc34c6 | [
"MIT"
] | null | null | null | squeezer/reduce.py | esceptico/squeezer | 98bc4c7923c6aa3b12ac81444d79392826fc34c6 | [
"MIT"
] | null | null | null | from typing import Dict
class Average:
"""Implements a simple running average counter."""
def __init__(self):
self.total = 0
self.n_steps = 0
def update(self, value: float) -> None:
self.total += value
self.n_steps += 1
def compute(self) -> float:
return self.... | 27.088235 | 74 | 0.602606 | 116 | 921 | 4.646552 | 0.310345 | 0.102041 | 0.139147 | 0.089054 | 0.141002 | 0.141002 | 0 | 0 | 0 | 0 | 0 | 0.004573 | 0.287731 | 921 | 33 | 75 | 27.909091 | 0.817073 | 0.11835 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.043478 | 0.478261 | 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 | 0 | 0 | 0 | 0 | 1 |
f780aa23a3a6aa7cfee0ddc9b1b6e5f9b621a7b2 | 1,279 | py | Python | datalabs/tasks/kg_prediction.py | ExpressAI/DataLab | c3eddd4068f131d031c2486c60b650092bb0ae84 | [
"Apache-2.0"
] | 54 | 2022-01-26T06:58:58.000Z | 2022-03-31T05:11:35.000Z | datalabs/tasks/kg_prediction.py | ExpressAI/DataLab | c3eddd4068f131d031c2486c60b650092bb0ae84 | [
"Apache-2.0"
] | 81 | 2022-01-26T06:46:41.000Z | 2022-03-24T05:05:31.000Z | datalabs/tasks/kg_prediction.py | ExpressAI/DataLab | c3eddd4068f131d031c2486c60b650092bb0ae84 | [
"Apache-2.0"
] | 7 | 2022-02-06T09:28:31.000Z | 2022-03-16T01:06:37.000Z | from dataclasses import dataclass
from typing import ClassVar
from datalabs.features.features import Features, Value
from datalabs.tasks.base import register_task, TaskTemplate, TaskType
@register_task(TaskType.kg_prediction)
@dataclass
class KGPrediction(TaskTemplate):
task: TaskType = TaskType.kg_prediction
... | 31.195122 | 88 | 0.670055 | 143 | 1,279 | 5.755245 | 0.300699 | 0.080194 | 0.080194 | 0.109356 | 0.277035 | 0.123937 | 0.123937 | 0.123937 | 0.123937 | 0.123937 | 0 | 0 | 0.218921 | 1,279 | 40 | 89 | 31.975 | 0.823824 | 0.064113 | 0 | 0.25 | 0 | 0 | 0.060251 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f783969cd9ac8ff96e0d749943eb24fbd5783354 | 647 | py | Python | extracao/api/migrations/0007_auto_20190617_0116.py | estudeplus/extracao | 1c142de29cc2cea7d1f0a3510545333aee5121f9 | [
"MIT"
] | null | null | null | extracao/api/migrations/0007_auto_20190617_0116.py | estudeplus/extracao | 1c142de29cc2cea7d1f0a3510545333aee5121f9 | [
"MIT"
] | 10 | 2019-05-17T13:46:13.000Z | 2019-06-17T02:12:20.000Z | extracao/api/migrations/0007_auto_20190617_0116.py | estudeplus/extracao | 1c142de29cc2cea7d1f0a3510545333aee5121f9 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-17 01:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_auto_20190616_2354'),
]
operations = [
migrations.AlterField(
model_name='student',
name='name',
... | 26.958333 | 108 | 0.605873 | 72 | 647 | 5.277778 | 0.569444 | 0.086842 | 0.131579 | 0.152632 | 0.394737 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 0.270479 | 647 | 23 | 109 | 28.130435 | 0.728814 | 0.069552 | 0 | 0.352941 | 1 | 0 | 0.146667 | 0.038333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78c1ff5730cd9f883af30a0deded8fbeb358ad6 | 444 | py | Python | Q6.py | reddevil1996/DataScienceTIU | 8dacac27cbc1c573abedb4b7d62a0ce9da47916e | [
"Unlicense"
] | null | null | null | Q6.py | reddevil1996/DataScienceTIU | 8dacac27cbc1c573abedb4b7d62a0ce9da47916e | [
"Unlicense"
] | null | null | null | Q6.py | reddevil1996/DataScienceTIU | 8dacac27cbc1c573abedb4b7d62a0ce9da47916e | [
"Unlicense"
] | null | null | null | # Take the size and list of elements of a list as input. Create a tuple with the elements and
# their cubes. Print the tuple.
lst = []
n = eval(input("Enter the number of element in a list: "))
print("Enter the elements of the list: ")
for i in range(n):
num = eval(input())
lst.append(num)
print(f"T... | 31.714286 | 94 | 0.646396 | 80 | 444 | 3.5875 | 0.4 | 0.062718 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.220721 | 444 | 13 | 95 | 34.153846 | 0.82659 | 0.272523 | 0 | 0 | 0 | 0 | 0.547231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 1 |
f78e5ba9fedfaaae5e6e672146a790721e20a53e | 528 | py | Python | flaskapp/namecnn.py | csgwon/dl-pipeline | 5ac2cdafe0daac675d3f3e810918133de3466f8a | [
"Apache-2.0"
] | 7 | 2018-06-26T13:09:12.000Z | 2020-07-15T18:18:38.000Z | flaskapp/namecnn.py | csgwon/dl-pipeline | 5ac2cdafe0daac675d3f3e810918133de3466f8a | [
"Apache-2.0"
] | null | null | null | flaskapp/namecnn.py | csgwon/dl-pipeline | 5ac2cdafe0daac675d3f3e810918133de3466f8a | [
"Apache-2.0"
] | 1 | 2018-08-30T19:51:08.000Z | 2018-08-30T19:51:08.000Z | from tools import *
import torch
import numpy as np
import sys
charcnn = torch.load('/var/www/html/flaskapp/charcnn.pth')
charcnn.train(False)
def predict(name):
from torch.autograd import Variable
name = encode_input(name)
name = Variable(torch.from_numpy(name).float())
name = name.view(1,-1,max_na... | 22 | 58 | 0.698864 | 81 | 528 | 4.493827 | 0.555556 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.159091 | 528 | 23 | 59 | 22.956522 | 0.806306 | 0.051136 | 0 | 0 | 0 | 0 | 0.068 | 0.068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0.0625 | 0.5625 | 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 | 0 | 0 | 0 | 0 | 1 |
f790881c3e387a39559906f6031adfa2658287fe | 6,618 | py | Python | postmortem_viewer/ui/__init__.py | lopezcaraballoch/striptease | 86bde677d46af8c7fc14becdf32e456685074d66 | [
"MIT"
] | null | null | null | postmortem_viewer/ui/__init__.py | lopezcaraballoch/striptease | 86bde677d46af8c7fc14becdf32e456685074d66 | [
"MIT"
] | null | null | null | postmortem_viewer/ui/__init__.py | lopezcaraballoch/striptease | 86bde677d46af8c7fc14becdf32e456685074d66 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_mainWindow(object):
def setupUi(self, mainWindow):
mai... | 50.136364 | 82 | 0.720157 | 663 | 6,618 | 7.036199 | 0.197587 | 0.13119 | 0.045016 | 0.052519 | 0.233655 | 0.150697 | 0 | 0 | 0 | 0 | 0 | 0.0083 | 0.180719 | 6,618 | 131 | 83 | 50.519084 | 0.851531 | 0.027803 | 0 | 0 | 1 | 0 | 0.067216 | 0.00389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.008475 | 0 | 0.033898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f792c18faa6f4b565847dd5ab52874537566530f | 8,963 | py | Python | dash_core_components/Graph.py | philip-peterson/dash-core-components | 49f1d2d4dce838be1b6ac9aa588466838644ddaa | [
"MIT"
] | 4 | 2020-02-05T11:26:47.000Z | 2021-05-26T07:48:46.000Z | WatchDogs_Visualisation/oldApps/tweet-map/venv2/lib/python3.7/site-packages/dash_core_components/Graph.py | prashanth-thipparthi/WatchDogs_StockMarketAnalysis | 0c72430da633785fcb14e40d8b007c86081d515d | [
"Apache-2.0"
] | null | null | null | WatchDogs_Visualisation/oldApps/tweet-map/venv2/lib/python3.7/site-packages/dash_core_components/Graph.py | prashanth-thipparthi/WatchDogs_StockMarketAnalysis | 0c72430da633785fcb14e40d8b007c86081d515d | [
"Apache-2.0"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Graph(Component):
"""A Graph component.
Keyword arguments:
- id (string; optional): The ID of this component, used to identify dash components
in callbacks. The ID needs to be unique across all of... | 67.901515 | 448 | 0.708803 | 1,067 | 8,963 | 5.875351 | 0.35239 | 0.055033 | 0.012761 | 0.015952 | 0.177859 | 0.158398 | 0.127772 | 0.11198 | 0.088371 | 0.088371 | 0 | 0.002622 | 0.191454 | 8,963 | 131 | 449 | 68.419847 | 0.862426 | 0.677786 | 0 | 0.095238 | 1 | 0 | 0.1437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f79674765de9f75249a1af50fa0860dbc000af1d | 2,947 | py | Python | sdk/python/pulumi_aws_native/cognito/get_user_pool_resource_server.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/cognito/get_user_pool_resource_server.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/cognito/get_user_pool_resource_server.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 34.670588 | 147 | 0.680353 | 315 | 2,947 | 6.095238 | 0.320635 | 0.018229 | 0.028646 | 0.049479 | 0.269271 | 0.208854 | 0.160417 | 0 | 0 | 0 | 0 | 0.000435 | 0.220563 | 2,947 | 84 | 148 | 35.083333 | 0.835438 | 0.111978 | 0 | 0.098361 | 1 | 0 | 0.14247 | 0.090205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0 | 0.098361 | 0.04918 | 0.327869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f79b7412cc4c60a53ce1413415b9010974d93251 | 3,569 | py | Python | tegaki.py | ohisama/tensorflow-tegaki | 08b2263514e41b4eaf870c176c3b5b73db613fbe | [
"MIT"
] | null | null | null | tegaki.py | ohisama/tensorflow-tegaki | 08b2263514e41b4eaf870c176c3b5b73db613fbe | [
"MIT"
] | null | null | null | tegaki.py | ohisama/tensorflow-tegaki | 08b2263514e41b4eaf870c176c3b5b73db613fbe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import cv2
import numpy as np
from scipy import ndimage
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
import tensorflow as tf
class pline(QWidget):
def __init__(self, parent = None):
QWidget.__init__(self, parent)
self.px = None... | 31.584071 | 83 | 0.688989 | 493 | 3,569 | 4.829615 | 0.312373 | 0.050399 | 0.052919 | 0.035699 | 0.256195 | 0.254515 | 0.230995 | 0.202436 | 0.202436 | 0.202436 | 0 | 0.03143 | 0.170916 | 3,569 | 112 | 84 | 31.866071 | 0.772896 | 0.005884 | 0 | 0.211538 | 0 | 0 | 0.029446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086538 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e38be16fd8eb3c18b5f2c09a79e8a4b0b355d74b | 5,863 | py | Python | miniquora/account/forms.py | rochakgupta/miniquora | 341722806c6d42c7cc1ecfe6ff0254f11e9370c7 | [
"MIT"
] | null | null | null | miniquora/account/forms.py | rochakgupta/miniquora | 341722806c6d42c7cc1ecfe6ff0254f11e9370c7 | [
"MIT"
] | 6 | 2020-06-05T19:47:55.000Z | 2022-03-11T23:38:53.000Z | miniquora/account/forms.py | rochakgupta/miniquora | 341722806c6d42c7cc1ecfe6ff0254f11e9370c7 | [
"MIT"
] | null | null | null | from django import forms
from .models import MyUser
from django.contrib.auth import authenticate
from material import *
class LoginForm(forms.Form):
username = forms.CharField(max_length = 25)
password = forms.CharField(widget = forms.PasswordInput)
def __init__(self, *args, **kwargs):
self.auth... | 41.58156 | 106 | 0.676446 | 686 | 5,863 | 5.542274 | 0.153061 | 0.049185 | 0.063125 | 0.042609 | 0.613624 | 0.578906 | 0.495003 | 0.443188 | 0.336139 | 0.304314 | 0 | 0.00197 | 0.220877 | 5,863 | 140 | 107 | 41.878571 | 0.830342 | 0.006993 | 0 | 0.342105 | 0 | 0 | 0.130053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0.368421 | 0.035088 | 0 | 0.403509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3951edfac31670dfd52e0a3a42c32d66f8db546 | 5,426 | py | Python | grpc/data/data_pb2.py | mrbeskin/intds | 8653fff1957d26735665e5c6dcc65f53a88e8028 | [
"MIT"
] | 1 | 2018-10-04T04:14:38.000Z | 2018-10-04T04:14:38.000Z | grpc/data/data_pb2.py | mrbeskin/intds | 8653fff1957d26735665e5c6dcc65f53a88e8028 | [
"MIT"
] | null | null | null | grpc/data/data_pb2.py | mrbeskin/intds | 8653fff1957d26735665e5c6dcc65f53a88e8028 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: data.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | 28.408377 | 561 | 0.774604 | 553 | 5,426 | 7.298373 | 0.264014 | 0.042121 | 0.052032 | 0.023786 | 0.353568 | 0.29336 | 0.29336 | 0.268087 | 0.220515 | 0.148167 | 0 | 0.025774 | 0.113343 | 5,426 | 190 | 562 | 28.557895 | 0.813137 | 0.065057 | 0 | 0.55414 | 1 | 0.012739 | 0.20849 | 0.149654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031847 | 0 | 0.031847 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e39779565f5b76da77bc0d33fde2b37cf7887185 | 5,661 | py | Python | plugins/hw_wallet/qt.py | Sibcoin-developers/electrum-sibcoin-client | a198b8d031fb8b6808125955c6363968f405f62d | [
"MIT"
] | null | null | null | plugins/hw_wallet/qt.py | Sibcoin-developers/electrum-sibcoin-client | a198b8d031fb8b6808125955c6363968f405f62d | [
"MIT"
] | null | null | null | plugins/hw_wallet/qt.py | Sibcoin-developers/electrum-sibcoin-client | a198b8d031fb8b6808125955c6363968f405f62d | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- mode: python -*-
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2016 The Electrum developers
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without... | 36.288462 | 80 | 0.66596 | 730 | 5,661 | 5.053425 | 0.320548 | 0.028192 | 0.026565 | 0.025752 | 0.154784 | 0.08566 | 0.016265 | 0 | 0 | 0 | 0 | 0.003695 | 0.235117 | 5,661 | 155 | 81 | 36.522581 | 0.848268 | 0.262851 | 0 | 0.135922 | 0 | 0 | 0.042332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15534 | false | 0.106796 | 0.058252 | 0.009709 | 0.291262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3996c91d6ea2e9178883a3764774d0637256e61 | 1,090 | py | Python | rest_framework_queryset/views.py | variable/django-rest-framework-queryset | e69a1031eccfb3f26bde4ea660a2a155ffa3d157 | [
"MIT"
] | 4 | 2017-03-04T01:24:18.000Z | 2019-04-25T23:05:25.000Z | rest_framework_queryset/views.py | variable/django-rest-framework-queryset | e69a1031eccfb3f26bde4ea660a2a155ffa3d157 | [
"MIT"
] | 3 | 2016-09-15T10:15:30.000Z | 2018-07-29T22:00:03.000Z | rest_framework_queryset/views.py | variable/django-rest-framework-queryset | e69a1031eccfb3f26bde4ea660a2a155ffa3d157 | [
"MIT"
] | 3 | 2016-09-18T15:21:41.000Z | 2018-07-16T01:33:39.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
class APISearchableMixin(object):
# request fields that we are interested in
search_fields = []
def __init__(self, *args, **kwargs):
super(APISearchableMixin, self).__init__(*args, **kwargs)
... | 33.030303 | 99 | 0.630275 | 126 | 1,090 | 5.126984 | 0.31746 | 0.092879 | 0.099071 | 0.058824 | 0.099071 | 0.099071 | 0 | 0 | 0 | 0 | 0 | 0.001211 | 0.242202 | 1,090 | 32 | 100 | 34.0625 | 0.780872 | 0.082569 | 0 | 0 | 0 | 0 | 0.031795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.05 | 0.55 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
e39972d78e1132ec48de2a2a78f8268217d5cd43 | 407 | py | Python | hwt/hdl/types/string.py | ufo2011/hwt | 2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1 | [
"MIT"
] | 134 | 2018-02-28T05:06:31.000Z | 2022-03-25T23:50:13.000Z | hwt/hdl/types/string.py | ufo2011/hwt | 2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1 | [
"MIT"
] | 32 | 2018-03-15T19:01:02.000Z | 2021-07-02T14:00:06.000Z | hwt/hdl/types/string.py | ufo2011/hwt | 2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1 | [
"MIT"
] | 17 | 2018-09-16T12:54:01.000Z | 2022-01-20T03:16:52.000Z | from hwt.doc_markers import internal
from hwt.hdl.types.hdlType import HdlType
class HString(HdlType):
def all_mask(self):
return 1
@internal
@classmethod
def getValueCls(cls):
try:
return cls._valCls
except AttributeError:
from hwt.hdl.types.stringVal... | 21.421053 | 58 | 0.636364 | 46 | 407 | 5.521739 | 0.565217 | 0.082677 | 0.07874 | 0.11811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.304668 | 407 | 18 | 59 | 22.611111 | 0.893993 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3a4bb4aa840df4d4e1782e55743c0ca4a9c7059 | 1,001 | py | Python | setup.py | FelixWolf/pyverse | 93522fe5db074192a5ae259f6cf48de529e88d78 | [
"MIT"
] | 5 | 2016-07-01T18:32:04.000Z | 2021-05-19T03:12:23.000Z | setup.py | FelixWolf/pyverse | 93522fe5db074192a5ae259f6cf48de529e88d78 | [
"MIT"
] | null | null | null | setup.py | FelixWolf/pyverse | 93522fe5db074192a5ae259f6cf48de529e88d78 | [
"MIT"
] | 4 | 2017-06-25T09:41:13.000Z | 2021-10-08T23:47:37.000Z | #!/usr/bin/env python3
from setuptools import setup
setup(
name='pyverse',
version='0.3',
description='Stub description for pyverse.',
install_requires=[],
scripts=[],
packages=['pyverse'],
author='PyVerse contributors',
author_email='pyverse@lists.softhyena.com',
maintainer="Félix ... | 29.441176 | 70 | 0.603397 | 96 | 1,001 | 6.25 | 0.71875 | 0.04 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006684 | 0.252747 | 1,001 | 33 | 71 | 30.333333 | 0.795455 | 0.020979 | 0 | 0 | 0 | 0 | 0.54954 | 0.04903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3a788c02c1d64b6d597625e5b47e23b28da5daf | 12,091 | py | Python | runtime/hetdesrun/webservice/config.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/hetdesrun/webservice/config.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/hetdesrun/webservice/config.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | import os
from enum import Enum
from typing import Optional, Union
# pylint: disable=no-name-in-module
from pydantic import (
BaseSettings,
Field,
SecretStr,
validator,
)
from sqlalchemy.engine import URL as SQLAlchemy_DB_URL
class LogLevel(str, Enum):
# https://docs.python.org/3/library/logging... | 36.418675 | 99 | 0.655694 | 1,415 | 12,091 | 5.334276 | 0.204947 | 0.061208 | 0.035771 | 0.037096 | 0.444621 | 0.390037 | 0.343535 | 0.304584 | 0.263381 | 0.178855 | 0 | 0.009499 | 0.251179 | 12,091 | 331 | 100 | 36.528701 | 0.824166 | 0.037631 | 0 | 0.182143 | 0 | 0 | 0.437802 | 0.125689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010714 | false | 0.053571 | 0.025 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3a79c46705a7810f1c63be8e72b3ce77d9376ee | 1,081 | py | Python | algorithms/3 - Spatial filtering for smoothing/4 - Max Min Filter/maxmin.py | MatheusRV/Image-Processing-Course | c54f58a171c705839ab39aa0c30b555dc065747b | [
"MIT"
] | null | null | null | algorithms/3 - Spatial filtering for smoothing/4 - Max Min Filter/maxmin.py | MatheusRV/Image-Processing-Course | c54f58a171c705839ab39aa0c30b555dc065747b | [
"MIT"
] | null | null | null | algorithms/3 - Spatial filtering for smoothing/4 - Max Min Filter/maxmin.py | MatheusRV/Image-Processing-Course | c54f58a171c705839ab39aa0c30b555dc065747b | [
"MIT"
] | null | null | null | # Universidade Federal de Viçosa - Campus Rio Paranaíba
# Sistemas de Informação - Processamento Digital de Imagens
#
# Professor: Joao Mari
# Autores:
# - MatheusRV (3929)
# - iguit0 (3902)
# - ThiagoMunich (3628)
#
# Filtragem espacial para suavização - Filtro de máximo e mínimo
# Como Exec... | 26.365854 | 94 | 0.72988 | 162 | 1,081 | 4.740741 | 0.58642 | 0.036458 | 0.028646 | 0.039063 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029018 | 0.171138 | 1,081 | 40 | 95 | 27.025 | 0.828125 | 0.462535 | 0 | 0 | 0 | 0 | 0.028319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0.055556 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
e3ac05a36f021174d502409c56591bc2704d4281 | 6,406 | py | Python | scrapcore/tools.py | lantip/SerpScrap | b7de07b8ca826bcd941ef89455147c79ed1764bd | [
"MIT"
] | 199 | 2017-04-02T00:43:26.000Z | 2022-03-21T09:10:08.000Z | scrapcore/tools.py | lantip/SerpScrap | b7de07b8ca826bcd941ef89455147c79ed1764bd | [
"MIT"
] | 49 | 2017-04-11T15:03:14.000Z | 2022-03-08T18:41:21.000Z | scrapcore/tools.py | lantip/SerpScrap | b7de07b8ca826bcd941ef89455147c79ed1764bd | [
"MIT"
] | 65 | 2017-05-21T04:03:31.000Z | 2022-03-23T09:11:41.000Z | # -*- coding: utf-8 -*-
from collections import namedtuple
import csv
import json
import os
import threading
from scrapcore import database
class JsonStreamWriter():
"""Writes consecutive objects to an json output file."""
def __init__(self, filename):
self.file = open(filename, 'wt')
self.f... | 33.020619 | 100 | 0.495941 | 655 | 6,406 | 4.748092 | 0.332824 | 0.023151 | 0.018006 | 0.029582 | 0.132476 | 0.09582 | 0.06045 | 0.036013 | 0.036013 | 0.036013 | 0 | 0.007742 | 0.415236 | 6,406 | 193 | 101 | 33.19171 | 0.822477 | 0.177958 | 0 | 0.168 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088 | false | 0.064 | 0.048 | 0 | 0.216 | 0.008 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b087b055397f9e915af76e0dcf042871b8c717 | 3,777 | py | Python | main.py | marioantolienzh/leveregin-EEG-signals-to-determine-atention | 0484c414e0274fc0ec2d01ae1c5d472e47224487 | [
"MIT"
] | null | null | null | main.py | marioantolienzh/leveregin-EEG-signals-to-determine-atention | 0484c414e0274fc0ec2d01ae1c5d472e47224487 | [
"MIT"
] | null | null | null | main.py | marioantolienzh/leveregin-EEG-signals-to-determine-atention | 0484c414e0274fc0ec2d01ae1c5d472e47224487 | [
"MIT"
] | null | null | null | import serial
import time
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
from scipy.fft import fft, ifft, fftfreq
from math import pi
from scipy.signal import butter, lfilter
def avg(list):
return sum(list)/len(list)
def butter_bandpass(lowcut, highcut, fs, order=5):
nyq = 0.5 * f... | 32.008475 | 117 | 0.649987 | 534 | 3,777 | 4.541199 | 0.38015 | 0.023093 | 0.018557 | 0.024742 | 0.116289 | 0.107216 | 0.079175 | 0.079175 | 0.056907 | 0.056907 | 0 | 0.022696 | 0.241726 | 3,777 | 117 | 118 | 32.282051 | 0.824022 | 0.320625 | 0 | 0.17284 | 0 | 0 | 0.074527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0.061728 | 0.098765 | 0.012346 | 0.197531 | 0.037037 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b3188f02dea04d05c7be6418a1042241015c59 | 1,382 | py | Python | ghu_web/ghu_main/migrations/0004_toolkits.py | humanitarians-united/hu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 2 | 2017-05-08T22:45:16.000Z | 2017-09-10T12:51:51.000Z | ghu_web/ghu_main/migrations/0004_toolkits.py | global-humanitarians-unite/ghu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 79 | 2017-05-08T19:46:53.000Z | 2017-12-03T03:24:35.000Z | ghu_web/ghu_main/migrations/0004_toolkits.py | humanitarians-united/hu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 1 | 2017-03-16T00:11:29.000Z | 2017-03-16T00:11:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-30 21:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
replaces = [('ghu_main', '0003_toolkit'), ('ghu_main', '0004_auto_20170916_1857'), ('g... | 35.435897 | 127 | 0.586107 | 143 | 1,382 | 5.461538 | 0.482517 | 0.053777 | 0.053777 | 0.084507 | 0.361076 | 0.361076 | 0.361076 | 0.361076 | 0.361076 | 0.361076 | 0 | 0.059347 | 0.268452 | 1,382 | 38 | 128 | 36.368421 | 0.713155 | 0.049204 | 0 | 0.333333 | 1 | 0 | 0.150267 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b7b79139a45ea88d8a034f9488bd242dccdc92 | 961 | py | Python | test.py | obs145628/py-neural-nets | 900877bd72d0c4a7285a0a6b9909c94a0366b489 | [
"MIT"
] | null | null | null | test.py | obs145628/py-neural-nets | 900877bd72d0c4a7285a0a6b9909c94a0366b489 | [
"MIT"
] | null | null | null | test.py | obs145628/py-neural-nets | 900877bd72d0c4a7285a0a6b9909c94a0366b489 | [
"MIT"
] | null | null | null | import dataset_mnist
from activation import SigmoidActivation, SoftmaxActivation, ReluActivation, TanhActivation, LinearActivation
from cost import QuadraticCost, CrossEntropyCost
from initializer import GaussInitializer, GaussSqrtInitializer
from layer import FullyConnectedLayer
from network import Network
imp... | 33.137931 | 110 | 0.781478 | 113 | 961 | 6.451327 | 0.424779 | 0.049383 | 0.024691 | 0.041152 | 0.060357 | 0.060357 | 0.060357 | 0.060357 | 0 | 0 | 0 | 0.034898 | 0.135276 | 961 | 28 | 111 | 34.321429 | 0.842359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 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 | 0 | 0 | 0 | 0 | 1 |
e3c6667243b8dc3ff33d18be88a309d32035ba9e | 1,209 | py | Python | applications/migrations/0005_reimb_amount.py | Ilmanfordinner/registration | d729f9a990d6f63dc29e14c1657dba87c3233971 | [
"MIT"
] | null | null | null | applications/migrations/0005_reimb_amount.py | Ilmanfordinner/registration | d729f9a990d6f63dc29e14c1657dba87c3233971 | [
"MIT"
] | null | null | null | applications/migrations/0005_reimb_amount.py | Ilmanfordinner/registration | d729f9a990d6f63dc29e14c1657dba87c3233971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-11-19 23:16
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('applications', '0004_empty_resume'),
]
... | 37.78125 | 313 | 0.577337 | 121 | 1,209 | 5.644628 | 0.652893 | 0.043924 | 0.087848 | 0.070278 | 0.111274 | 0.111274 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.29694 | 1,209 | 31 | 314 | 39 | 0.768235 | 0.056245 | 0 | 0.25 | 1 | 0 | 0.281843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3ca753b245123b84d4b3c352d8a3134d635536f | 762 | py | Python | EventFilter/CSCRawToDigi/python/cscPacker_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | EventFilter/CSCRawToDigi/python/cscPacker_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | EventFilter/CSCRawToDigi/python/cscPacker_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
## baseline configuration in the class itself
from EventFilter.CSCRawToDigi.cscPackerDef_cfi import cscPackerDef
cscpacker = cscPackerDef.clone()
## In Run-2 common: update the format version for new OTMBs in ME1/1
## Note: in the past, the packing with triggers and pretrigger... | 40.105263 | 76 | 0.765092 | 112 | 762 | 5.071429 | 0.589286 | 0.052817 | 0.073944 | 0.102113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034976 | 0.174541 | 762 | 18 | 77 | 42.333333 | 0.868045 | 0.429134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 |
e3cc39220f23f050c60d6067679bdddc421857c9 | 45,666 | py | Python | lib/reinteract/worksheet.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | 1 | 2016-05-08T14:35:25.000Z | 2016-05-08T14:35:25.000Z | lib/reinteract/worksheet.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | lib/reinteract/worksheet.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2008 Owen Taylor
#
# This file is part of Reinteract and distributed under the terms
# of the BSD license. See the file COPYING in the Reinteract
# distribution for full details.
#
########################################################################
import sys
import gobject
import logging
import os
i... | 32.364281 | 145 | 0.582118 | 5,809 | 45,666 | 4.339645 | 0.098984 | 0.005554 | 0.010155 | 0.011861 | 0.375461 | 0.279821 | 0.2225 | 0.188345 | 0.148241 | 0.109247 | 0 | 0.019396 | 0.307932 | 45,666 | 1,410 | 146 | 32.387234 | 0.778256 | 0.099636 | 0 | 0.360971 | 0 | 0 | 0.049453 | 0.00658 | 0 | 0 | 0 | 0 | 0.008089 | 0 | null | null | 0.004044 | 0.019211 | null | null | 0.005056 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3cf4e0468fa0020792d46640bca93234ee6b228 | 10,115 | py | Python | test/test_selected.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 18 | 2015-06-04T21:09:37.000Z | 2022-03-04T08:14:31.000Z | test/test_selected.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 114 | 2018-10-17T23:11:00.000Z | 2022-03-19T16:59:16.000Z | test/test_selected.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 8 | 2015-02-03T19:30:52.000Z | 2021-11-20T12:47:03.000Z |
import unittest
from datetime import datetime
from pymap.flags import FlagOp, PermanentFlags, SessionFlags
from pymap.message import BaseMessage
from pymap.parsing.command.select import SearchCommand, UidSearchCommand
from pymap.parsing.response import ResponseOk
from pymap.parsing.specials import SequenceSet, Object... | 43.978261 | 78 | 0.519328 | 1,110 | 10,115 | 4.595496 | 0.087387 | 0.017644 | 0.019408 | 0.055871 | 0.715742 | 0.69555 | 0.657518 | 0.63615 | 0.619682 | 0.606744 | 0 | 0.018726 | 0.329511 | 10,115 | 229 | 79 | 44.170306 | 0.733412 | 0 | 0 | 0.573529 | 0 | 0 | 0.11054 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.083333 | false | 0 | 0.044118 | 0.014706 | 0.151961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d05b4f4fad55986e0aceb805dc7df066504e44 | 3,202 | py | Python | Helper/BasicHelper.py | ykomashiro/MangaSpider | a7d7104c8036b547cb821761b549d37da31a499a | [
"MIT"
] | null | null | null | Helper/BasicHelper.py | ykomashiro/MangaSpider | a7d7104c8036b547cb821761b549d37da31a499a | [
"MIT"
] | null | null | null | Helper/BasicHelper.py | ykomashiro/MangaSpider | a7d7104c8036b547cb821761b549d37da31a499a | [
"MIT"
] | null | null | null | import abc
import requests
import execjs
import os
class BasicMangaDownload:
__metaclass__ = abc.ABCMeta
def __init__(self):
self.headers = {
'Accept': '*/*',
'Accept-Language': 'en-US,en;q=0.8',
'Cache-Control': 'max-age=0',
'User-Agent':
'... | 26.683333 | 130 | 0.528107 | 367 | 3,202 | 4.449591 | 0.400545 | 0.029394 | 0.058788 | 0.026944 | 0.074709 | 0.074709 | 0.074709 | 0 | 0 | 0 | 0 | 0.030894 | 0.342911 | 3,202 | 120 | 131 | 26.683333 | 0.745247 | 0 | 0 | 0.255102 | 0 | 0.020408 | 0.135498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0.05102 | 0.040816 | 0.030612 | 0.336735 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d1e21b8f11e5d7c8618536df7908932f32e054 | 1,895 | py | Python | findingaids/content/sitemaps.py | emory-libraries/findingaids | 0f3f8a54bb54d78c04f9f4e9e92d828824c7f324 | [
"Apache-2.0"
] | 6 | 2015-06-11T17:45:18.000Z | 2019-06-27T13:24:39.000Z | findingaids/content/sitemaps.py | emory-libraries/findingaids | 0f3f8a54bb54d78c04f9f4e9e92d828824c7f324 | [
"Apache-2.0"
] | 7 | 2017-09-14T01:18:13.000Z | 2018-02-15T16:15:54.000Z | findingaids/content/sitemaps.py | emory-libraries/findingaids | 0f3f8a54bb54d78c04f9f4e9e92d828824c7f324 | [
"Apache-2.0"
] | 1 | 2015-09-29T20:19:34.000Z | 2015-09-29T20:19:34.000Z |
# file findingaids/content/sitemaps.py
#
# Copyright 2012 Emory University Library
#
# 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.754717 | 78 | 0.683905 | 248 | 1,895 | 5.201613 | 0.568548 | 0.046512 | 0.020155 | 0.024806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.237995 | 1,895 | 52 | 79 | 36.442308 | 0.885042 | 0.539314 | 0 | 0 | 0 | 0 | 0.137972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.052632 | 0.684211 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
e3da14ffabb096f0890f5e761869bb9e9ac95816 | 2,315 | py | Python | python/cut.py | wangjie1991/script | 8d5a2ce1984f0ad3a31d6e802b11ca354c7fd4c5 | [
"Apache-2.0"
] | null | null | null | python/cut.py | wangjie1991/script | 8d5a2ce1984f0ad3a31d6e802b11ca354c7fd4c5 | [
"Apache-2.0"
] | null | null | null | python/cut.py | wangjie1991/script | 8d5a2ce1984f0ad3a31d6e802b11ca354c7fd4c5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import errno
import os.path
import sys
import wave
if __name__ == '__main__':
if len(sys.argv) != 4:
print 'Usage: %s long_wave textgrid wave_dir_out' % sys.argv[0]
sys.exit(1)
wave_in = wave.open(sys.argv[1], 'r')
sampling_rate = wa... | 32.152778 | 102 | 0.587905 | 315 | 2,315 | 4.095238 | 0.336508 | 0.043411 | 0.018605 | 0.027907 | 0.108527 | 0.052713 | 0 | 0 | 0 | 0 | 0 | 0.018541 | 0.277754 | 2,315 | 71 | 103 | 32.605634 | 0.75299 | 0.033261 | 0 | 0.067797 | 0 | 0 | 0.045231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.084746 | null | null | 0.016949 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e2ae78782285505ae1df802a65c26ece1db0ed | 1,195 | py | Python | GoPy2/foo.py | binRick/cgo | b4232442891c25678f81dec28dedbc3872892eb0 | [
"MIT"
] | 1 | 2021-12-04T20:17:39.000Z | 2021-12-04T20:17:39.000Z | GoPy2/foo.py | binRick/cgo | b4232442891c25678f81dec28dedbc3872892eb0 | [
"MIT"
] | null | null | null | GoPy2/foo.py | binRick/cgo | b4232442891c25678f81dec28dedbc3872892eb0 | [
"MIT"
] | 2 | 2019-09-30T20:48:58.000Z | 2022-03-28T13:57:14.000Z | # -*- coding: utf-8 -*-
# void -> void
def helloworld():
print "Hello, world."
# int -> int
def square(x):
return x*x
# (int, int) -> int
def myadd(x, y):
return x+y
# string -> string
def make_greet(x):
return "Hello, %s!" % (x)
# (int,int) -> (int, int)
def mydiv(x, y):
an... | 19.590164 | 51 | 0.500418 | 177 | 1,195 | 3.322034 | 0.293785 | 0.037415 | 0.045918 | 0.034014 | 0.183673 | 0.108844 | 0.108844 | 0.108844 | 0.108844 | 0.108844 | 0 | 0.032807 | 0.311297 | 1,195 | 61 | 52 | 19.590164 | 0.681652 | 0.184937 | 0 | 0.105263 | 0 | 0 | 0.118625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.263158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e4f6e3f621cc8a20f6f6c740be213f1d98ab8b | 18,581 | py | Python | lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_wireless_controller_setting.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_wireless_controller_setting.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_wireless_controller_setting.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | 34.093578 | 147 | 0.359722 | 1,344 | 18,581 | 4.839286 | 0.342262 | 0.024754 | 0.057657 | 0.032288 | 0.322724 | 0.252921 | 0.225554 | 0.183887 | 0.175431 | 0.175431 | 0 | 0.007246 | 0.569237 | 18,581 | 544 | 148 | 34.15625 | 0.805347 | 0.035628 | 0 | 0.119919 | 0 | 0.004065 | 0.465259 | 0.01737 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.012195 | 0.002033 | 0.034553 | 0.002033 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e5b54b354044fdf44719eba1aafa3dadb0ec8e | 1,036 | py | Python | kirby/_nbdev.py | rmorain/kirby | ef115dbaed4acd1b23c3e10ca3b496f05b9a2382 | [
"Apache-2.0"
] | 1 | 2021-08-30T11:46:20.000Z | 2021-08-30T11:46:20.000Z | kirby/_nbdev.py | rmorain/kirby | ef115dbaed4acd1b23c3e10ca3b496f05b9a2382 | [
"Apache-2.0"
] | 36 | 2020-11-18T20:19:33.000Z | 2021-08-03T23:31:12.000Z | kirby/_nbdev.py | rmorain/kirby | ef115dbaed4acd1b23c3e10ca3b496f05b9a2382 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"run_params": "000_exp_02_pretrained.ipynb",
"experiment": "000_exp_02_pretrained.ipynb",
"DatasetBuilder": "01_dataset_builder.ipynb",
"StatementClassifier": "02_statement_classife... | 33.419355 | 63 | 0.630309 | 115 | 1,036 | 5.33913 | 0.530435 | 0.029316 | 0.045603 | 0.058632 | 0.074919 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.222973 | 1,036 | 30 | 64 | 34.533333 | 0.72795 | 0.034749 | 0 | 0 | 1 | 0 | 0.594188 | 0.196393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0.043478 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e8d3fcdf00bcfcb91fc602ac353d810a90bedb | 310 | py | Python | services/texttospeech/texttospeech.py | pankajkumarkbn/angus-doc | 15f6c2cf803141fc86ede772655fa04275579da6 | [
"Apache-2.0"
] | null | null | null | services/texttospeech/texttospeech.py | pankajkumarkbn/angus-doc | 15f6c2cf803141fc86ede772655fa04275579da6 | [
"Apache-2.0"
] | null | null | null | services/texttospeech/texttospeech.py | pankajkumarkbn/angus-doc | 15f6c2cf803141fc86ede772655fa04275579da6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import angus
conn = angus.connect()
service = conn.services.get_service('text_to_speech', version=1)
job = service.process({'text': "Hi guys, how are you today?", 'lang' : "en-US"})
### The output wav file is available as compressed (zlib), base64 string.
sound = job.result["sound"]
| 31 | 80 | 0.683871 | 46 | 310 | 4.543478 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 0.13871 | 310 | 9 | 81 | 34.444444 | 0.76779 | 0.293548 | 0 | 0 | 0 | 0 | 0.275701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3f050f5bb958506082b03253412751624ed3525 | 132 | py | Python | client.py | MK-LinKnight/First-Training | b9111b06f2280c48823b4703cd9ac9422010acdd | [
"MIT"
] | null | null | null | client.py | MK-LinKnight/First-Training | b9111b06f2280c48823b4703cd9ac9422010acdd | [
"MIT"
] | null | null | null | client.py | MK-LinKnight/First-Training | b9111b06f2280c48823b4703cd9ac9422010acdd | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
host = socket.gethostname()
port = 12345
s.connect((host,port))
print(s.recv(1024))
s.close() | 11 | 27 | 0.689394 | 20 | 132 | 4.55 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.136364 | 132 | 12 | 28 | 11 | 0.719298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3f26ac5242ef6bcdd99b26d93e97f59f9faed6f | 1,315 | py | Python | fjord/feedback/utils.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 16 | 2015-02-06T14:35:57.000Z | 2021-07-10T11:14:00.000Z | fjord/feedback/utils.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 310 | 2015-01-07T14:39:35.000Z | 2016-05-02T17:41:30.000Z | fjord/feedback/utils.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 22 | 2015-01-15T13:46:03.000Z | 2020-07-24T10:08:51.000Z | import re
# unicodedata2 is the unicodedata backport to Python 2
try:
import unicodedata2 as unicodedata
except ImportError:
import unicodedata
import urlparse
def clean_url(url):
"""Takes a user-supplied url and cleans bits out
This removes:
1. nixes any non http/https/chrome/about urls
2.... | 22.672414 | 77 | 0.655513 | 173 | 1,315 | 4.913295 | 0.549133 | 0.021176 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020471 | 0.257034 | 1,315 | 57 | 78 | 23.070175 | 0.849539 | 0.353612 | 0 | 0.16 | 0 | 0 | 0.055069 | 0.028786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.2 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5402c8a2d6cf7f467cab635031ef80418b12056f | 560 | py | Python | test/unit/util.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | 1 | 2020-11-05T12:17:27.000Z | 2020-11-05T12:17:27.000Z | test/unit/util.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | null | null | null | test/unit/util.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
EPS = 1e-6
def is_equal_np(x: (np.ndarray, list, tuple), y: (np.ndarray, list, tuple)) -> bool:
"""return true if two numpy arrays are nearly equal"""
x = np.asarray(x, dtype=np.float32)
y = np.asarray(y, dtype=np.float32)
return np.max(np.abs(x - y)) < EPS
... | 29.473684 | 84 | 0.641071 | 101 | 560 | 3.504951 | 0.336634 | 0.028249 | 0.056497 | 0.101695 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.2 | 560 | 18 | 85 | 31.111111 | 0.767857 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5403261022f007a82d9eb89dcac0ed9771dc3aa7 | 716 | py | Python | ticketflix/ticket/migrations/0004_auto_20181121_2349.py | DSW-2018-2/Arquitetura-Desenho-2018-2 | d417895904c1a12ba2a9d761d7e60be77b7bcac2 | [
"MIT"
] | 3 | 2018-12-12T09:56:36.000Z | 2021-11-24T00:03:07.000Z | ticketflix/ticket/migrations/0004_auto_20181121_2349.py | DSW-2018-2/Ticketflix | d417895904c1a12ba2a9d761d7e60be77b7bcac2 | [
"MIT"
] | 20 | 2018-08-23T11:31:11.000Z | 2018-11-22T20:44:09.000Z | ticketflix/ticket/migrations/0004_auto_20181121_2349.py | DSW-2018-2/Arquitetura-Desenho-2018-2 | d417895904c1a12ba2a9d761d7e60be77b7bcac2 | [
"MIT"
] | 2 | 2018-12-14T09:11:05.000Z | 2020-08-06T22:45:12.000Z | # Generated by Django 2.0.8 on 2018-11-21 23:49
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticket', '0003_remove_ticket_price'),
]
operations = [
migrations.AddField(
model_name='ticket',
... | 28.64 | 146 | 0.627095 | 78 | 716 | 5.628205 | 0.602564 | 0.045558 | 0.091116 | 0.08656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042593 | 0.24581 | 716 | 24 | 147 | 29.833333 | 0.77037 | 0.062849 | 0 | 0.222222 | 1 | 0 | 0.112108 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54174875931522dd6cac6ceb343d733e30236e48 | 7,043 | py | Python | cache.py | yesme/pycache | 311bc9cfb5c03ec0f5b347a0d864ece26eaec0b5 | [
"Apache-2.0"
] | null | null | null | cache.py | yesme/pycache | 311bc9cfb5c03ec0f5b347a0d864ece26eaec0b5 | [
"Apache-2.0"
] | null | null | null | cache.py | yesme/pycache | 311bc9cfb5c03ec0f5b347a0d864ece26eaec0b5 | [
"Apache-2.0"
] | null | null | null | '''Concepts:
Cache interface
Cache implementation
Cache decorator
- model and decorate the source of ground truth
- chain it up
'''
def _return_x(x, *argc, **argv):
return x
class BaseCache(object):
'''The base cache.
This class handles the routine work for (most of) the cache implementations
- ke... | 33.065728 | 82 | 0.641204 | 947 | 7,043 | 4.589229 | 0.164731 | 0.035895 | 0.020939 | 0.027382 | 0.468247 | 0.430281 | 0.421077 | 0.365163 | 0.353659 | 0.338472 | 0 | 0.002155 | 0.275167 | 7,043 | 212 | 83 | 33.221698 | 0.849167 | 0.046997 | 0 | 0.283019 | 0 | 0 | 0.009906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.04717 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
541aafba4953ba5083e4b5697c7d7aeedd56612b | 4,142 | py | Python | gallery/tests.py | fuaad001/personal-gallery | 3c2fac25f215f0525c21ad5ae516c08b5c09446e | [
"MIT"
] | null | null | null | gallery/tests.py | fuaad001/personal-gallery | 3c2fac25f215f0525c21ad5ae516c08b5c09446e | [
"MIT"
] | null | null | null | gallery/tests.py | fuaad001/personal-gallery | 3c2fac25f215f0525c21ad5ae516c08b5c09446e | [
"MIT"
] | 1 | 2019-06-16T17:04:02.000Z | 2019-06-16T17:04:02.000Z | from django.test import TestCase
from .models import Location, Category, Photographer, Image
# Create your tests here.
class LocationTestClass(TestCase):
def setUp(self):
self.loc = Location(location_name = 'Mombasa, Kenya')
# Testing instance
def test_instance(self):
self.assertTrue(isin... | 32.873016 | 178 | 0.669242 | 490 | 4,142 | 5.510204 | 0.14898 | 0.056296 | 0.041481 | 0.027778 | 0.603704 | 0.36 | 0.25 | 0.203704 | 0.203704 | 0.203704 | 0 | 0.009816 | 0.212941 | 4,142 | 125 | 179 | 33.136 | 0.818405 | 0.02197 | 0 | 0.422222 | 0 | 0 | 0.058096 | 0.010878 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.255556 | false | 0.011111 | 0.022222 | 0 | 0.322222 | 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 | 0 | 0 | 0 | 0 | 1 |
541b4515f4a651cfd6e3da3ebf7dcda9f6bcd0bf | 11,543 | py | Python | BioNetGen-2.3.0/source_Atomizer/twistedServer.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/twistedServer.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/twistedServer.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri May 2 16:56:13 2014
@author: proto
"""
import os
import sys
# Restrict to a particular path.
from twisted.web import xmlrpc, server
from twisted.internet import reactor, task
import threading
import SBMLparser.utils.consoleCommands as consoleCommands
import... | 36.184953 | 157 | 0.595859 | 1,077 | 11,543 | 6.350975 | 0.215413 | 0.02807 | 0.030556 | 0.014035 | 0.42076 | 0.382602 | 0.306287 | 0.254971 | 0.246199 | 0.246199 | 0 | 0.017052 | 0.298882 | 11,543 | 318 | 158 | 36.298742 | 0.828123 | 0.073811 | 0 | 0.421525 | 0 | 0 | 0.044431 | 0.013349 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004484 | 0.09417 | null | null | 0.076233 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
541df237a30d6d96b16fcece12a8aab8db04b8db | 7,520 | py | Python | run.py | EKibet/PasswordLocker | 5ec45bccc22b52653bf97092a021e0d41d5e2792 | [
"MIT"
] | null | null | null | run.py | EKibet/PasswordLocker | 5ec45bccc22b52653bf97092a021e0d41d5e2792 | [
"MIT"
] | null | null | null | run.py | EKibet/PasswordLocker | 5ec45bccc22b52653bf97092a021e0d41d5e2792 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
import sys, os
import getpass
from user_data import Users
from format_outputs import *
import random
from time import sleep
from credentials import Credentials
def create_acc(u_name, u_pass):
# u_pass= hashlib.new(u_pass)
# encrypted_pass=sdigest(u_pass)
new_acc =Users(u_name,u_p... | 44.761905 | 187 | 0.497074 | 754 | 7,520 | 4.759947 | 0.248011 | 0.035665 | 0.036222 | 0.018947 | 0.373084 | 0.373084 | 0.35163 | 0.317916 | 0.317916 | 0.317916 | 0 | 0.005426 | 0.411835 | 7,520 | 168 | 188 | 44.761905 | 0.806014 | 0.093617 | 0 | 0.344 | 0 | 0.008 | 0.220174 | 0.028314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072 | false | 0.288 | 0.056 | 0.016 | 0.176 | 0.264 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
542a4fbf6a31fdcceac010672b0e9f22c128c920 | 8,637 | py | Python | sdk/python/pulumi_aws/get_availability_zone.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_availability_zone.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_availability_zone.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from . import _... | 42.757426 | 221 | 0.675813 | 1,073 | 8,637 | 5.193849 | 0.21342 | 0.054908 | 0.05742 | 0.059214 | 0.14965 | 0.105509 | 0.037502 | 0.02243 | 0 | 0 | 0 | 0.000754 | 0.23272 | 8,637 | 201 | 222 | 42.970149 | 0.840199 | 0.258539 | 0 | 0.116788 | 1 | 0 | 0.159871 | 0.04644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10219 | false | 0 | 0.051095 | 0.036496 | 0.262774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
542bf69f2719cf87961c28bac759292bdec9ed01 | 2,592 | py | Python | tests/integration/services/policy_engine/test_loaders.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 1,484 | 2017-09-11T19:08:42.000Z | 2022-03-29T07:47:44.000Z | tests/integration/services/policy_engine/test_loaders.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 913 | 2017-09-27T20:37:53.000Z | 2022-03-29T17:21:28.000Z | tests/integration/services/policy_engine/test_loaders.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 294 | 2017-09-12T16:54:03.000Z | 2022-03-14T01:28:51.000Z | import json
import time
import pytest
from anchore_engine.configuration import localconfig
from anchore_engine.db import (
FeedGroupMetadata,
FeedMetadata,
GemMetadata,
Image,
NpmMetadata,
NvdMetadata,
Vulnerability,
session_scope,
)
from anchore_engine.services.policy_engine.engine.ta... | 30.857143 | 88 | 0.616898 | 320 | 2,592 | 4.8375 | 0.403125 | 0.031654 | 0.04199 | 0.027132 | 0.062662 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006286 | 0.263503 | 2,592 | 83 | 89 | 31.228916 | 0.80461 | 0.064815 | 0 | 0.030303 | 0 | 0 | 0.128099 | 0 | 0 | 0 | 0 | 0.012048 | 0.106061 | 1 | 0.030303 | false | 0 | 0.106061 | 0 | 0.136364 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
580a51416a87b2a150ed1b2c04ae6f0d83065d82 | 1,374 | py | Python | tests/integration/app.py | cuducos/alchemydumps | 3475fa0a907e2a2b4134433bdce47a5ad52802b3 | [
"MIT"
] | 86 | 2015-02-02T14:51:55.000Z | 2022-03-17T02:43:43.000Z | tests/integration/app.py | cuducos/alchemydumps | 3475fa0a907e2a2b4134433bdce47a5ad52802b3 | [
"MIT"
] | 27 | 2015-01-20T14:12:25.000Z | 2021-09-13T16:57:56.000Z | tests/integration/app.py | cuducos/alchemydumps | 3475fa0a907e2a2b4134433bdce47a5ad52802b3 | [
"MIT"
] | 42 | 2015-01-21T02:50:35.000Z | 2022-03-17T02:43:27.000Z | from flask import Flask
from flask_alchemydumps import AlchemyDumps
from flask_sqlalchemy import SQLAlchemy
# create a Flask app
app = Flask(__name__)
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///:memory:"
db = SQLAlchemy(app)
alchemydumps = AlchemyDumps(app, ... | 29.234043 | 86 | 0.707424 | 197 | 1,374 | 4.80203 | 0.314721 | 0.118393 | 0.147992 | 0.07611 | 0.422833 | 0.402748 | 0.402748 | 0.337209 | 0.302326 | 0.226216 | 0 | 0.010256 | 0.148472 | 1,374 | 46 | 87 | 29.869565 | 0.798291 | 0.02329 | 0 | 0.193548 | 0 | 0 | 0.076176 | 0.039582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.806452 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
580bdab383b16011b3d359c2a88634b128f2c3dc | 3,215 | py | Python | pybleau/app/io/serializer.py | jonathanrocher/pybleau | fa6e7841a664268a4eef0ed6cc0ff7720e1113e1 | [
"MIT"
] | null | null | null | pybleau/app/io/serializer.py | jonathanrocher/pybleau | fa6e7841a664268a4eef0ed6cc0ff7720e1113e1 | [
"MIT"
] | null | null | null | pybleau/app/io/serializer.py | jonathanrocher/pybleau | fa6e7841a664268a4eef0ed6cc0ff7720e1113e1 | [
"MIT"
] | null | null | null | """ Serializers for pybleau.app objects.
To be contributed to a serialization implementation that leverages
app_common.apptools.io.serializer.
"""
from app_common.apptools.io.serializer import DataElement_Serializer, \
Serializer
class DataFramePlotManager_Serializer(DataElement_Serializer):
def attr_names_t... | 30.330189 | 95 | 0.718196 | 358 | 3,215 | 6.198324 | 0.337989 | 0.059486 | 0.029743 | 0.054078 | 0.313204 | 0.189725 | 0.109959 | 0.09644 | 0.078414 | 0.05498 | 0 | 0.000793 | 0.215552 | 3,215 | 105 | 96 | 30.619048 | 0.879064 | 0.20311 | 0 | 0.25 | 0 | 0 | 0.070635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.160714 | 0.017857 | 0.053571 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
580d07626f5581d90e234aca7c3787be63815464 | 446 | py | Python | riak_sessions/__init__.py | flashingpumpkin/django-riak-sessions | dbe3b9c4611abf5881466149ddd7cb360ec85fe6 | [
"MIT"
] | 2 | 2015-08-14T14:00:05.000Z | 2016-01-28T14:09:53.000Z | riak_sessions/__init__.py | flashingpumpkin/django-riak-sessions | dbe3b9c4611abf5881466149ddd7cb360ec85fe6 | [
"MIT"
] | 3 | 2020-02-11T21:59:11.000Z | 2021-06-10T17:37:33.000Z | riak_sessions/__init__.py | flashingpumpkin/django-riak-sessions | dbe3b9c4611abf5881466149ddd7cb360ec85fe6 | [
"MIT"
] | null | null | null | import riak
from django.conf import settings
RIAK_PORT = getattr(settings, 'RIAK_PORT', 8087)
RIAK_TRANSPORT_CLASS = getattr(settings, 'RIAK_TRANSPORT_CLASS', riak.RiakPbcTransport)
RIAK_BUCKET = getattr(settings, 'RIAK_BUCKET', 'django-riak-sessions')
RIAK_HOST = getattr(settings, 'RIAK_HOST', '127.0.0.1')
client = ... | 40.545455 | 98 | 0.793722 | 62 | 446 | 5.451613 | 0.322581 | 0.177515 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0.089686 | 446 | 10 | 99 | 44.6 | 0.807882 | 0 | 0 | 0 | 0 | 0 | 0.174888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
580e35ed6b57f222fdd943c4603094eac94847cd | 876 | py | Python | demo/src/main/java/python/hack-meii/main.py | zhihaoSong/spring-practices | 8e255554f4980a12aed42fc90100ad496833e620 | [
"Apache-2.0"
] | null | null | null | demo/src/main/java/python/hack-meii/main.py | zhihaoSong/spring-practices | 8e255554f4980a12aed42fc90100ad496833e620 | [
"Apache-2.0"
] | null | null | null | demo/src/main/java/python/hack-meii/main.py | zhihaoSong/spring-practices | 8e255554f4980a12aed42fc90100ad496833e620 | [
"Apache-2.0"
] | null | null | null | from bottle import route, run, template
@route('/')
def index():
return "function readCookie(name) {" \
" var nameEQ = name + \"=\";"\
" var ca = document.cookie.split(';');"\
" for (var i = 0; i < ca.length; i++) {"\
" ... | 38.086957 | 103 | 0.436073 | 92 | 876 | 4.119565 | 0.48913 | 0.042216 | 0.031662 | 0.047493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.366438 | 876 | 22 | 104 | 39.818182 | 0.628829 | 0 | 0 | 0 | 0 | 0.166667 | 0.627854 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 0.222222 | 0.055556 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5818d83981ee200f112a76a2ca6245948335b13e | 342 | py | Python | examples/commandline_xrange.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-11-07T12:06:54.000Z | 2021-11-07T12:06:54.000Z | examples/commandline_xrange.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-11-07T13:34:16.000Z | 2021-11-07T13:34:16.000Z | examples/commandline_xrange.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-10-31T10:39:37.000Z | 2021-10-31T10:39:37.000Z | # examples/commandline_xrange.py
from colt import from_commandline
@from_commandline("""
# start of the range
xstart = :: int :: >0
# end of the range
xstop = :: int :: >1
# step size
step = 1 :: int
""")
def x_range(xstart, xstop, step):
for i in range(xstart, xstop, step):
print(i)
if __name__ == '__m... | 18 | 40 | 0.640351 | 50 | 342 | 4.12 | 0.56 | 0.160194 | 0.097087 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011194 | 0.216374 | 342 | 18 | 41 | 19 | 0.757463 | 0.087719 | 0 | 0 | 0 | 0 | 0.390323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 1 |
581980e4f21b9dfce1d05920566fe63119f2039d | 2,824 | py | Python | tests/test_hellofresh.py | aTylerRice/recipe-scrapers | 7b6ae47783b895fec880a02a2b4b1201717e121d | [
"MIT"
] | null | null | null | tests/test_hellofresh.py | aTylerRice/recipe-scrapers | 7b6ae47783b895fec880a02a2b4b1201717e121d | [
"MIT"
] | null | null | null | tests/test_hellofresh.py | aTylerRice/recipe-scrapers | 7b6ae47783b895fec880a02a2b4b1201717e121d | [
"MIT"
] | null | null | null | from tests import ScraperTest
from recipe_scrapers.hellofresh import HelloFresh
class TestHelloFreshScraper(ScraperTest):
scraper_class = HelloFresh
def test_host(self):
self.assertEqual("hellofresh.com", self.harvester_class.host())
def test_host_domain(self):
self.assertEqual("hellof... | 60.085106 | 1,485 | 0.680241 | 424 | 2,824 | 4.485849 | 0.410377 | 0.025762 | 0.069926 | 0.030494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013583 | 0.24398 | 2,824 | 46 | 1,486 | 61.391304 | 0.877283 | 0 | 0 | 0.057143 | 0 | 0 | 0.193787 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
581c6033e9fe2ef93c520a23dd299c6f735839ff | 6,711 | py | Python | AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-12T14:13:45.000Z | 2022-03-12T14:13:45.000Z | AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-13T04:29:38.000Z | 2022-03-12T01:05:31.000Z | AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Copyright (c) Contributors to the Open 3D Engine Project.
For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
# Test case ID : C12712455
# Test Case Title : Verify shape cast nodes in SC
# fmt: off
class Tests:
ente... | 46.282759 | 120 | 0.711965 | 871 | 6,711 | 5.230769 | 0.226177 | 0.130378 | 0.045874 | 0.029631 | 0.371378 | 0.263169 | 0.198859 | 0.176471 | 0.13784 | 0.13784 | 0 | 0.021006 | 0.226792 | 6,711 | 144 | 121 | 46.604167 | 0.857005 | 0.299359 | 0 | 0.089552 | 0 | 0 | 0.255156 | 0.078763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.164179 | 0 | 0.507463 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
5820efc528a087c7095823e708b9009ffbed03cd | 2,128 | py | Python | badcode/tree.py | smola/badcode | c0ce3dbff9164e25e500aee7e01f43337f09ffd1 | [
"Apache-2.0"
] | 1 | 2018-09-17T10:13:57.000Z | 2018-09-17T10:13:57.000Z | badcode/tree.py | smola/badcode | c0ce3dbff9164e25e500aee7e01f43337f09ffd1 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:00:17.000Z | 2021-06-01T23:00:17.000Z | badcode/tree.py | smola/badcode | c0ce3dbff9164e25e500aee7e01f43337f09ffd1 | [
"Apache-2.0"
] | 3 | 2018-11-01T12:35:19.000Z | 2021-08-09T05:50:37.000Z |
import collections
from typing import Generic, Generator, Iterable
from typing import Optional, Tuple, TypeVar, Sequence
K = TypeVar('K')
class Tree(Generic[K]):
def __init__(self, key: K, children: Iterable['Tree[K]']=tuple()) -> None:
self._key = key
self._children = tuple(children)
s... | 29.150685 | 93 | 0.579417 | 263 | 2,128 | 4.376426 | 0.205323 | 0.125109 | 0.052129 | 0.039096 | 0.165074 | 0.10252 | 0.06603 | 0.06603 | 0.06603 | 0 | 0 | 0.00198 | 0.288064 | 2,128 | 72 | 94 | 29.555556 | 0.757756 | 0 | 0 | 0.071429 | 0 | 0 | 0.046074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.053571 | 0.089286 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
582429466d5c7f2c6367f80c0923d458462ddcfb | 382 | py | Python | resumes/migrations/0024_rename_soft_skill_name_softskills_softskill_name.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0024_rename_soft_skill_name_softskills_softskill_name.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0024_rename_soft_skill_name_softskills_softskill_name.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-13 04:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('resumes', '0023_educationdetails'),
]
operations = [
migrations.RenameField(
model_name='softskills',
old_name='Soft_Skill_N... | 20.105263 | 47 | 0.604712 | 40 | 382 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069853 | 0.287958 | 382 | 18 | 48 | 21.222222 | 0.753676 | 0.117801 | 0 | 0 | 1 | 0 | 0.2 | 0.062687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
582612ec446b3aaa7f8aa9bc4a9bfd1489611948 | 787 | py | Python | BidsTags.py | nejaz1/bidsify | 9bc004dc2b7c40cde5caaf1d332c17618b5487e1 | [
"MIT"
] | 1 | 2018-06-22T14:20:10.000Z | 2018-06-22T14:20:10.000Z | BidsTags.py | nejaz1/bidsify | 9bc004dc2b7c40cde5caaf1d332c17618b5487e1 | [
"MIT"
] | null | null | null | BidsTags.py | nejaz1/bidsify | 9bc004dc2b7c40cde5caaf1d332c17618b5487e1 | [
"MIT"
] | null | null | null | """
Enumerated data types useful for data conversion
Created: 15 May 2018
Eva Berlot & Naveed Ejaz
"""
class BidsTags:
tSubj = 'sub-'
tSes = 'ses-'
tSesID = 'ses-id'
tParticipantID = 'participants-id'
tFunc = 'func'
tFuncEvents = 'tas... | 28.107143 | 49 | 0.466328 | 64 | 787 | 5.625 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.428208 | 787 | 28 | 50 | 28.107143 | 0.786667 | 0.148666 | 0 | 0 | 0 | 0 | 0.2207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
582d2b77143b1d1ad063acb441bef770172fd8d6 | 2,396 | py | Python | yowsup/layers/protocol_messages/protocolentities/attributes/attributes_extendedtext.py | zulu494/Anoa-Bot- | 6666b0257d0c5bd2ce57c473078c4059ecd0fecd | [
"MIT"
] | 1 | 2021-09-11T13:38:47.000Z | 2021-09-11T13:38:47.000Z | yowsup/layers/protocol_messages/protocolentities/attributes/attributes_extendedtext.py | enigma-chan/Anti-Hoax-Bot | 6666b0257d0c5bd2ce57c473078c4059ecd0fecd | [
"MIT"
] | null | null | null | yowsup/layers/protocol_messages/protocolentities/attributes/attributes_extendedtext.py | enigma-chan/Anti-Hoax-Bot | 6666b0257d0c5bd2ce57c473078c4059ecd0fecd | [
"MIT"
] | null | null | null | class ExtendedTextAttributes(object):
def __init__(
self,
text, matched_text, canonical_url, description, title, jpeg_thumbnail, context_info
):
self._text = text
self._matched_text = matched_text
self._canonical_url = canonical_url
self._description = des... | 27.227273 | 95 | 0.625209 | 280 | 2,396 | 5.092857 | 0.121429 | 0.084853 | 0.04418 | 0.068724 | 0.258065 | 0.033661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28005 | 2,396 | 87 | 96 | 27.54023 | 0.826667 | 0 | 0 | 0.098592 | 0 | 0 | 0.039232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225352 | false | 0 | 0 | 0.098592 | 0.352113 | 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 | 0 | 0 | 0 | 0 | 1 |
5836f5aa6c8b9a296035bd94127f43ad4d518a73 | 204 | py | Python | soma_impares.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | 1 | 2021-12-28T21:37:33.000Z | 2021-12-28T21:37:33.000Z | soma_impares.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | null | null | null | soma_impares.py | isaberamos/Programinhas | d0bfa5099edaf05b9a5f055bf7ce5432588cdc3d | [
"MIT"
] | null | null | null | soma = 0
cont = 0
for impar in range(1,501,2):
if impar % 3 == 0:
cont = cont + 1
soma = soma + impar
print('\33[35mA soma de todos os {} valores solicitados é {}.'.format(cont,soma))
| 25.5 | 81 | 0.578431 | 34 | 204 | 3.470588 | 0.647059 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0.27451 | 204 | 7 | 82 | 29.142857 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
58375e9e3c41183e4bcfe3db45be7c8593fa6e09 | 284 | py | Python | moonshine/beer/serializers.py | Lockwarr/moonshine | f907d1d05f92d338c7cdbc24cd849b1ba3f88a3a | [
"MIT"
] | null | null | null | moonshine/beer/serializers.py | Lockwarr/moonshine | f907d1d05f92d338c7cdbc24cd849b1ba3f88a3a | [
"MIT"
] | null | null | null | moonshine/beer/serializers.py | Lockwarr/moonshine | f907d1d05f92d338c7cdbc24cd849b1ba3f88a3a | [
"MIT"
] | null | null | null | from rest_framework import fields, serializers
from beer.models import BeerModel
class BeerModelSerializer(serializers.ModelSerializer):
class Meta:
model = BeerModel
fields = (
'name',
'beer_type',
'description',
)
| 18.933333 | 55 | 0.609155 | 24 | 284 | 7.125 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320423 | 284 | 14 | 56 | 20.285714 | 0.88601 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
583da584970411c6790590b3bec318864735cbc1 | 2,242 | py | Python | contentcuration/contentcuration/migrations/0097_task.py | neo640228/studio | 96221a4c96b7ba4db90500b5d11c7e5d2a145ac4 | [
"MIT"
] | null | null | null | contentcuration/contentcuration/migrations/0097_task.py | neo640228/studio | 96221a4c96b7ba4db90500b5d11c7e5d2a145ac4 | [
"MIT"
] | null | null | null | contentcuration/contentcuration/migrations/0097_task.py | neo640228/studio | 96221a4c96b7ba4db90500b5d11c7e5d2a145ac4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-02-28 20:19
from __future__ import unicode_literals
import contentcuration.models
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.time... | 57.487179 | 808 | 0.668599 | 272 | 2,242 | 5.352941 | 0.397059 | 0.089286 | 0.065247 | 0.068681 | 0.156593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027042 | 0.17529 | 2,242 | 38 | 809 | 59 | 0.760411 | 0.030776 | 0 | 0.0625 | 1 | 0 | 0.281106 | 0.01106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
583e4b5f620ab1da732b213fd5aad2a4872722e7 | 1,898 | py | Python | lionschool/report/models.py | Leo2807/lionreport | 5861cc8ae4ee665fffeef7cf7f02926759874a50 | [
"BSD-3-Clause"
] | null | null | null | lionschool/report/models.py | Leo2807/lionreport | 5861cc8ae4ee665fffeef7cf7f02926759874a50 | [
"BSD-3-Clause"
] | null | null | null | lionschool/report/models.py | Leo2807/lionreport | 5861cc8ae4ee665fffeef7cf7f02926759874a50 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.core.validators import MaxValueValidator
from django.utils.translation import ugettext_lazy as _
from lionschool.core.models import Pupil, Teacher, Warden, Course
class Evaluation(models.Model):
"""This class represents an evaluation held. Not to be confused with the
... | 33.892857 | 77 | 0.672813 | 215 | 1,898 | 5.776744 | 0.4 | 0.070853 | 0.041868 | 0.05475 | 0.085346 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0.005431 | 0.22392 | 1,898 | 55 | 78 | 34.509091 | 0.837746 | 0.245522 | 0 | 0.121212 | 0 | 0 | 0.067148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.121212 | 0.090909 | 0.69697 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
584b067d9a37342eae7b61814d7df585d7b1e9bf | 336 | py | Python | habitat/sensors/admin/carbon_dioxide.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/sensors/admin/carbon_dioxide.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/sensors/admin/carbon_dioxide.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from habitat._common.admin import HabitatAdmin
from habitat.sensors.models import CarbonDioxide
@admin.register(CarbonDioxide)
class CarbonDioxideAdmin(HabitatAdmin):
list_display = ['datetime', 'location', 'value']
list_filter = ['created', 'location']
search_fields = ['^... | 30.545455 | 52 | 0.755952 | 36 | 336 | 6.944444 | 0.666667 | 0.088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 336 | 10 | 53 | 33.6 | 0.85034 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5856705a88fec0bd15a4423587d95df4801c19f2 | 19,031 | py | Python | model/backup/1022_effv2s_edge_79.75/fpn_model.py | chansoopark98/CSNet-seg | 7de095a71cb01821d269acefe9bc3b0f284dc26d | [
"MIT"
] | 7 | 2021-10-11T07:13:06.000Z | 2022-03-03T12:35:46.000Z | model/backup/1022_effv2s_edge_79.75/fpn_model.py | chansoopark98/CSNet-seg | 7de095a71cb01821d269acefe9bc3b0f284dc26d | [
"MIT"
] | null | null | null | model/backup/1022_effv2s_edge_79.75/fpn_model.py | chansoopark98/CSNet-seg | 7de095a71cb01821d269acefe9bc3b0f284dc26d | [
"MIT"
] | null | null | null | from tensorflow.keras.layers import (
MaxPooling2D, SeparableConv2D, UpSampling2D, Activation, BatchNormalization,
GlobalAveragePooling2D, Conv2D, Dropout, Concatenate, multiply, Add, concatenate,
DepthwiseConv2D, Reshape, ZeroPadding2D, Dense, GlobalMaxPooling2D, Permute, Lambda, Subtract)
import tensorflo... | 41.103672 | 136 | 0.637118 | 2,369 | 19,031 | 4.92022 | 0.096665 | 0.054049 | 0.041181 | 0.038435 | 0.717485 | 0.697066 | 0.677934 | 0.650223 | 0.628946 | 0.608442 | 0 | 0.042091 | 0.235983 | 19,031 | 462 | 137 | 41.192641 | 0.75956 | 0.210604 | 0 | 0.663082 | 0 | 0 | 0.065522 | 0.004605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.010753 | 0 | 0.075269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58591ce87e68b3aece8a9e200b817bc51e4f784c | 1,529 | py | Python | smtputility/notify_error.py | MattDJensen/SMTP_Utility_Package | f33dca562959c0a0d9d5b80cb4e0b5865d63532b | [
"MIT"
] | null | null | null | smtputility/notify_error.py | MattDJensen/SMTP_Utility_Package | f33dca562959c0a0d9d5b80cb4e0b5865d63532b | [
"MIT"
] | null | null | null | smtputility/notify_error.py | MattDJensen/SMTP_Utility_Package | f33dca562959c0a0d9d5b80cb4e0b5865d63532b | [
"MIT"
] | null | null | null | import smtplib
from email.message import EmailMessage
from datetime import datetime
def notify_error(report_name, error_log, to_list: str, login: str, password: str):
"""Auto-notify for automated scripts crashing.
:param report_name: Name of automated report.
:param error_log: Raised exception or other e... | 40.236842 | 119 | 0.52845 | 164 | 1,529 | 4.841463 | 0.481707 | 0.050378 | 0.025189 | 0.030227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.369523 | 1,529 | 37 | 120 | 41.324324 | 0.811203 | 0.239372 | 0 | 0.111111 | 0 | 0.037037 | 0.543286 | 0.030035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.111111 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
585bd546ed3850d1ed92ee52eb9fb4745f1cf07a | 1,426 | py | Python | src/compute.client/python_client/setup.py | tt-acm/compute.rhino3d | 0c36a0200653e7c12cdaa50e0e010b763ab91188 | [
"MIT"
] | 1 | 2020-05-03T13:32:00.000Z | 2020-05-03T13:32:00.000Z | src/compute.client/python_client/setup.py | tt-acm/compute.rhino3d | 0c36a0200653e7c12cdaa50e0e010b763ab91188 | [
"MIT"
] | null | null | null | src/compute.client/python_client/setup.py | tt-acm/compute.rhino3d | 0c36a0200653e7c12cdaa50e0e010b763ab91188 | [
"MIT"
] | null | null | null | import setuptools
long_description = '''
# compute_rhino3d
Python package providing convenience functions to call compute.rhino3d.com
geometry web services
Project Hompage: https://github.com/mcneel/compute.rhino3d
### Supported platforms
* This is a pure python package and should work on all versions of python
##... | 28.52 | 80 | 0.704769 | 166 | 1,426 | 5.951807 | 0.590361 | 0.15587 | 0.02834 | 0.040486 | 0.068826 | 0.068826 | 0 | 0 | 0 | 0 | 0 | 0.024126 | 0.157083 | 1,426 | 49 | 81 | 29.102041 | 0.797837 | 0 | 0 | 0.047619 | 0 | 0 | 0.748948 | 0.112202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.02381 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5863cc0284744fd638c94d202ec9753238710955 | 484 | py | Python | 2322.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | 1 | 2022-02-06T19:36:33.000Z | 2022-02-06T19:36:33.000Z | 2322.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | 2322.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Este programa usa um loop que itera por todos os valores de 1 a N e checa se o valor não está na lista de números,
# caso o valor não esteja ele é exibido.
# Input do N
n = int(input())
# Input da lista de números que representam as peças
v = list(map(int, input().split()))
# Loop para os ... | 25.473684 | 116 | 0.642562 | 94 | 484 | 3.308511 | 0.595745 | 0.07717 | 0.019293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.266529 | 484 | 19 | 117 | 25.473684 | 0.861972 | 0.692149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
5867fd3c867081c1a83aa8543e0f4a74c1554877 | 3,555 | py | Python | CellTypesDatabase/models/GLIF/run_glif.py | sanjayankur31/AllenInstituteNeuroML | fc80bda8132508d11f1fcc80df7effa5c94e39af | [
"MIT"
] | 11 | 2015-05-10T21:29:19.000Z | 2020-12-15T20:29:51.000Z | CellTypesDatabase/models/GLIF/run_glif.py | sanjayankur31/AllenInstituteNeuroML | fc80bda8132508d11f1fcc80df7effa5c94e39af | [
"MIT"
] | 10 | 2015-10-07T09:02:19.000Z | 2021-02-17T17:24:36.000Z | CellTypesDatabase/models/GLIF/run_glif.py | sanjayankur31/AllenInstituteNeuroML | fc80bda8132508d11f1fcc80df7effa5c94e39af | [
"MIT"
] | 10 | 2016-04-10T08:45:16.000Z | 2022-01-21T18:02:49.000Z | usage = '''
This script can be used to run a simulation of the GLIF cell model using the Allen SDK
To run a simulation with model ID 473875489 with 120pA input run:
python run_glif.py 473875489 120
To run all the models used in this repo type:
python run_glif.py -all
'''
import allensdk.core.json_uti... | 33.537736 | 115 | 0.553305 | 484 | 3,555 | 3.880165 | 0.303719 | 0.063898 | 0.053248 | 0.043131 | 0.291267 | 0.262513 | 0.22737 | 0.185304 | 0.158679 | 0.113951 | 0 | 0.064422 | 0.323207 | 3,555 | 106 | 116 | 33.537736 | 0.716126 | 0.047257 | 0 | 0.135135 | 0 | 0 | 0.194798 | 0.034585 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.040541 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.