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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf1ff9952ce67d25334b37909abb6b90b2dd4394 | 893 | py | Python | solutions/solution970.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution970.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution970.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | class Solution:
def powerfulIntegers(self, x, y, bound):
"""
:type x: int
:type y: int
:type bound: int
:rtype: List[int]
"""
def powers(n, bound):
if n == 1:
return [1]
power_list = []
s = 1
whil... | 26.264706 | 49 | 0.486002 | 105 | 893 | 3.933333 | 0.333333 | 0.065375 | 0.210654 | 0.058111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030019 | 0.403136 | 893 | 33 | 50 | 27.060606 | 0.744841 | 0.067189 | 0 | 0 | 0 | 0 | 0.010191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.26087 | 0.130435 | 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 |
bf20b7dba68b8eac56a2354fc3a0d587491fc072 | 2,001 | py | Python | ci.py | mhalano/mad_scientists_lab | 782bbe83ef34d418212c7163bd70d6f429bc9b84 | [
"MIT"
] | null | null | null | ci.py | mhalano/mad_scientists_lab | 782bbe83ef34d418212c7163bd70d6f429bc9b84 | [
"MIT"
] | null | null | null | ci.py | mhalano/mad_scientists_lab | 782bbe83ef34d418212c7163bd70d6f429bc9b84 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import os
import sys
import yaml
import git
import subprocess
tempdir = "/tmp"
targetdir = "ci"
config_file="pipeline.yml"
pipeline_name=sys.argv[1]
repo_address=sys.argv[2]
#def check_arguments() :
#Checa se os dois argumentos da linha de comando existem e sao validos
#erro se algo der ... | 22.483146 | 96 | 0.666167 | 280 | 2,001 | 4.660714 | 0.392857 | 0.048276 | 0.039847 | 0.035249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001852 | 0.190405 | 2,001 | 88 | 97 | 22.738636 | 0.803704 | 0.611194 | 0 | 0 | 0 | 0 | 0.135501 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0 | false | 0.038462 | 0.192308 | 0 | 0.192308 | 0.115385 | 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 |
bf263ddfa17adf855ad5dfd760ca36128f55e6a5 | 221 | py | Python | main.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | null | null | null | main.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | 8 | 2022-03-28T16:15:46.000Z | 2022-03-31T01:31:29.000Z | main.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | null | null | null | from utilities import startup
def main() -> None:
startup.run_sanity_checks()
bot = startup.create_bot()
startup.load_extensions(bot, 'cogs')
startup.run_bot(bot)
if __name__ == "__main__":
main()
| 17 | 40 | 0.674208 | 28 | 221 | 4.857143 | 0.607143 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199095 | 221 | 12 | 41 | 18.416667 | 0.768362 | 0 | 0 | 0 | 0 | 0 | 0.054299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
bf30498c89fa00493013c5c492a6a6bed7bf1cfd | 7,412 | py | Python | scripts/2014/campdataparser.py | iBurnApp/iBurn-Data | fd0b5565ac5109521cb97ac65361cfe8ea33f5cb | [
"MIT"
] | 7 | 2015-07-14T20:39:32.000Z | 2017-01-20T16:40:22.000Z | scripts/2014/campdataparser.py | Burning-Man-Earth/iBurn-Data | fd0b5565ac5109521cb97ac65361cfe8ea33f5cb | [
"MIT"
] | 7 | 2015-07-02T04:33:54.000Z | 2017-08-18T21:17:43.000Z | scripts/2014/campdataparser.py | Burning-Man-Earth/iBurn-Data | fd0b5565ac5109521cb97ac65361cfe8ea33f5cb | [
"MIT"
] | 4 | 2016-01-20T11:33:28.000Z | 2017-08-18T20:10:20.000Z | '''
Converts Official Camp data provided in XML by Burning Man Org
to JSON of the PlayaEvents API format.
Input:
Burning Man Org Camp Placement XML
PlayaEvents Camp without location JSON
e.g: http://playaevents.burningman.com/api/0.2/2014/camp/
Output:
iBurn Camp Json (./camps.json)
'''
import xml.etre... | 30.755187 | 151 | 0.692526 | 1,072 | 7,412 | 4.654851 | 0.229478 | 0.042084 | 0.096192 | 0.114228 | 0.424649 | 0.387776 | 0.353707 | 0.286774 | 0.251503 | 0.241283 | 0 | 0.008106 | 0.151106 | 7,412 | 241 | 152 | 30.755187 | 0.784965 | 0.160416 | 0 | 0.090909 | 0 | 0.007576 | 0.318915 | 0.022218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007576 | 0.030303 | null | null | 0.045455 | 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 |
bf310be97b27d9f6c537f79728e4fb197041b62c | 185 | py | Python | tests/sources/tracking/rasterisation.py | bcbnz/matplotlib-pgfutils | f402e4b89286ad9a6ebf58c1d74a8763aecaf822 | [
"BSD-3-Clause"
] | 1 | 2020-06-24T06:33:12.000Z | 2020-06-24T06:33:12.000Z | tests/sources/tracking/rasterisation.py | bcbnz/matplotlib-pgfutils | f402e4b89286ad9a6ebf58c1d74a8763aecaf822 | [
"BSD-3-Clause"
] | null | null | null | tests/sources/tracking/rasterisation.py | bcbnz/matplotlib-pgfutils | f402e4b89286ad9a6ebf58c1d74a8763aecaf822 | [
"BSD-3-Clause"
] | null | null | null | from pgfutils import save, setup_figure
setup_figure(width=1, height=1)
from matplotlib import pyplot as plt
import numpy as np
d = np.random.randn(128, 128)
plt.imshow(d)
save()
| 13.214286 | 39 | 0.751351 | 32 | 185 | 4.28125 | 0.625 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.156757 | 185 | 13 | 40 | 14.230769 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
bf31f54daa4e3403718eae8ff7405dff8758ca2d | 8,276 | py | Python | django_cradmin/renderable.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/renderable.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/renderable.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | import warnings
from django.template.loader import render_to_string
from django_cradmin import crsettings
def join_css_classes_list(css_classes_list):
"""
Join the provided list of css classes into a string.
"""
return ' '.join(css_classes_list)
class AbstractRenderable(object):
"""
An ab... | 35.217021 | 101 | 0.63811 | 998 | 8,276 | 4.976954 | 0.158317 | 0.120797 | 0.098651 | 0.045903 | 0.496275 | 0.433662 | 0.391584 | 0.31669 | 0.294745 | 0.294745 | 0 | 0 | 0.278758 | 8,276 | 234 | 102 | 35.367521 | 0.832133 | 0.397777 | 0 | 0.261364 | 0 | 0 | 0.084726 | 0.043175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.056818 | 0.022727 | 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 |
bf3c5ec54efb4e9fddff34c9867780976932a89b | 665 | py | Python | piptui/custom/customForm.py | MrNaif2018/PipTUI | 855ae8308481eb72af270135d4687dfd0e3c22f2 | [
"MIT"
] | null | null | null | piptui/custom/customForm.py | MrNaif2018/PipTUI | 855ae8308481eb72af270135d4687dfd0e3c22f2 | [
"MIT"
] | null | null | null | piptui/custom/customForm.py | MrNaif2018/PipTUI | 855ae8308481eb72af270135d4687dfd0e3c22f2 | [
"MIT"
] | null | null | null | from npyscreen import FormBaseNew
import curses
class FormBaseNewHinted(FormBaseNew):
def display_menu_advert_at(self):
return self.lines - 1, 1
def draw_form(self):
super(FormBaseNewHinted, self).draw_form()
menu_advert = '^A: Install\t\t^R: Uninstall\t\t^U: Update'
if isins... | 35 | 78 | 0.592481 | 81 | 665 | 4.641975 | 0.518519 | 0.212766 | 0.090426 | 0.101064 | 0.12234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.309774 | 665 | 19 | 79 | 35 | 0.810458 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.375 | 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 |
bf3d67abe9790e81089db956c15123b99d852a65 | 507 | py | Python | utils/tool.py | Gagarinwjj/Coeus | 0a4276ff91434b28e5ed68db7cd45eeea8f019cf | [
"Apache-2.0"
] | 139 | 2019-12-24T02:42:56.000Z | 2022-02-09T03:14:46.000Z | utils/tool.py | zhuanyedecainiao/Coeus | 0a4276ff91434b28e5ed68db7cd45eeea8f019cf | [
"Apache-2.0"
] | 4 | 2019-12-25T02:25:47.000Z | 2020-09-15T06:07:05.000Z | utils/tool.py | zhuanyedecainiao/Coeus | 0a4276ff91434b28e5ed68db7cd45eeea8f019cf | [
"Apache-2.0"
] | 45 | 2019-12-24T05:50:38.000Z | 2021-12-28T04:55:43.000Z | # coding: utf-8
__author__ = 'deff'
import re
class Tools:
@staticmethod
def xml_assent(word):
symbola = re.compile('>')
word = symbola.sub('<', word)
symbolb = re.compile('<')
word = symbolb.sub('>', word)
symbolc = re.compile('&')
word = symbolc.sub('&am... | 25.35 | 42 | 0.524655 | 56 | 507 | 4.660714 | 0.482143 | 0.172414 | 0.249042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.291913 | 507 | 19 | 43 | 26.684211 | 0.724234 | 0.025641 | 0 | 0 | 0 | 0 | 0.071138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 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 |
170d1caf6827b339d00307477551bce66d52a232 | 583 | py | Python | _unittests/ut_pycode/test_references.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 18 | 2015-11-10T08:09:23.000Z | 2022-02-16T11:46:45.000Z | _unittests/ut_pycode/test_references.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 321 | 2015-06-14T21:34:28.000Z | 2021-11-28T17:10:03.000Z | _unittests/ut_pycode/test_references.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 10 | 2015-06-20T01:35:00.000Z | 2022-01-19T15:54:32.000Z | """
@brief test tree node (time=5s)
"""
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import add_missing_development_version
class TestReferences(unittest.TestCase):
def test_references(self):
fLOG(
__file__,
self._... | 20.821429 | 74 | 0.680961 | 66 | 583 | 5.530303 | 0.621212 | 0.093151 | 0.115068 | 0.153425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.236707 | 583 | 27 | 75 | 21.592593 | 0.81573 | 0.132075 | 0 | 0 | 0 | 0 | 0.058233 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 |
1711019a5ba44a76b85142f72ee9856154d9ef36 | 328 | py | Python | shim/helper/settings.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | shim/helper/settings.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | shim/helper/settings.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | from ctypes import *
from helper.types import GoString
import json
class Settings:
def __init__(self, lib):
self.lib = lib
self.lib.GetSettings.argtypes = []
self.lib.GetSettings.restype = c_char_p
def get_settings(self):
ret = self.lib.GetSettings()
return json.loa... | 23.428571 | 47 | 0.64939 | 42 | 328 | 4.904762 | 0.547619 | 0.169903 | 0.262136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259146 | 328 | 13 | 48 | 25.230769 | 0.847737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 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 |
171dbc110a50d59af4d906ab98ae54453f052a7b | 6,475 | py | Python | ncitools/_vdimain.py | Kirill888/nci-tools | c0a14524b2d1a68db842c95ff5fb42161fb80f59 | [
"MIT"
] | 6 | 2018-01-04T04:07:58.000Z | 2019-04-17T07:12:04.000Z | ncitools/_vdimain.py | Kirill888/nci-tools | c0a14524b2d1a68db842c95ff5fb42161fb80f59 | [
"MIT"
] | 3 | 2018-02-22T03:07:27.000Z | 2018-03-22T06:10:47.000Z | ncitools/_vdimain.py | Kirill888/nci-tools | c0a14524b2d1a68db842c95ff5fb42161fb80f59 | [
"MIT"
] | 4 | 2018-02-21T10:30:52.000Z | 2019-09-03T00:38:43.000Z | import click
import sys
from collections import namedtuple
from random import randint
Ctx = namedtuple('Ctx', ['ctl', 'ssh', 'ssh_cfg'])
@click.group()
@click.pass_context
@click.option('--host', default='vdi.nci.org.au', help='Customize vdi login node')
@click.option('--user', help='SSH user name, if not given will... | 26.428571 | 96 | 0.6 | 905 | 6,475 | 4.183425 | 0.18232 | 0.042789 | 0.02113 | 0.029583 | 0.340201 | 0.325145 | 0.269414 | 0.254622 | 0.244585 | 0.219493 | 0 | 0.011177 | 0.24 | 6,475 | 244 | 97 | 26.536885 | 0.758179 | 0.050039 | 0 | 0.371951 | 0 | 0 | 0.201901 | 0.013602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067073 | false | 0.109756 | 0.060976 | 0 | 0.158537 | 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 |
172215098f78a054ba73be9a2522a0c1b40fd948 | 3,193 | py | Python | tests/integration/pagure/test_service.py | mmuzila/ogr | 8cce532ff10f0165c51d4e37aebd6db548e8e1ab | [
"MIT"
] | null | null | null | tests/integration/pagure/test_service.py | mmuzila/ogr | 8cce532ff10f0165c51d4e37aebd6db548e8e1ab | [
"MIT"
] | 4 | 2021-05-27T21:44:37.000Z | 2021-07-21T21:13:41.000Z | tests/integration/pagure/test_service.py | mmuzila/ogr | 8cce532ff10f0165c51d4e37aebd6db548e8e1ab | [
"MIT"
] | null | null | null | import pytest
from requre.online_replacing import record_requests_for_all_methods
from tests.integration.pagure.base import PagureTests
from ogr.exceptions import OgrException
@record_requests_for_all_methods()
class Service(PagureTests):
def test_project_create(self):
"""
Remove https://pagure.i... | 38.939024 | 85 | 0.68243 | 385 | 3,193 | 5.519481 | 0.2 | 0.060235 | 0.093176 | 0.079059 | 0.754824 | 0.716706 | 0.636706 | 0.586353 | 0.537412 | 0.515765 | 0 | 0 | 0.222361 | 3,193 | 81 | 86 | 39.419753 | 0.85582 | 0.116818 | 0 | 0.528302 | 0 | 0 | 0.111111 | 0.038999 | 0 | 0 | 0 | 0 | 0.301887 | 1 | 0.09434 | false | 0 | 0.075472 | 0 | 0.188679 | 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 |
1725aada95edd8028766bf92283f58c3749fac49 | 254 | py | Python | ex6.py | ayesumon123/python-exercises | 8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b | [
"MIT"
] | null | null | null | ex6.py | ayesumon123/python-exercises | 8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b | [
"MIT"
] | null | null | null | ex6.py | ayesumon123/python-exercises | 8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b | [
"MIT"
] | null | null | null | types_of_people = 10
x = f"There are {types_of_people} types of people."
binary = "binary"
do_not = "don't"
y = f"Those who know {binary} and those who {do_not}."
print(x)
print(y)
print(f"I said: {x}")
print(f"I also said: '{y}'")
hilarious = False
| 16.933333 | 54 | 0.661417 | 48 | 254 | 3.375 | 0.5 | 0.12963 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.169291 | 254 | 14 | 55 | 18.142857 | 0.758294 | 0 | 0 | 0 | 0 | 0 | 0.515748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
173043c4bef220c10e6e0947ac7ca74a0a1c4e70 | 1,578 | py | Python | src/automata.py | ezequielbrrt/ModeloSIR-AutomataCelular | 71a4c72c516ef3ab6e765fa73caa3fb2f66ed8a0 | [
"MIT"
] | null | null | null | src/automata.py | ezequielbrrt/ModeloSIR-AutomataCelular | 71a4c72c516ef3ab6e765fa73caa3fb2f66ed8a0 | [
"MIT"
] | null | null | null | src/automata.py | ezequielbrrt/ModeloSIR-AutomataCelular | 71a4c72c516ef3ab6e765fa73caa3fb2f66ed8a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pylab import *
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import subprocess
#Creacion de la Poblacion
datos = open("Datos/Poblacion.txt","w")
datos.close()
datos = open("Datos/Estados.txt","w")
datos.close()
#genera... | 22.869565 | 64 | 0.637516 | 277 | 1,578 | 3.631769 | 0.400722 | 0.071571 | 0.109344 | 0.045726 | 0.127237 | 0.075547 | 0 | 0 | 0 | 0 | 0 | 0.09271 | 0.200253 | 1,578 | 69 | 65 | 22.869565 | 0.704437 | 0.100127 | 0 | 0.263158 | 0 | 0 | 0.076541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.210526 | 0.087719 | 0 | 0.087719 | 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 |
1735139999150764aaa6992338eae5f4085eae52 | 1,364 | py | Python | dataset.py | Assassinsarms/Deep-Active-Learning-Network-for-Medical-Image-Segmentation | a5d731ce7fec934b6e5a036c3b9709bb1b1707cf | [
"MIT",
"Unlicense"
] | 3 | 2021-10-04T02:54:09.000Z | 2021-12-10T09:28:39.000Z | dataset.py | Assassinsarms/Deep-Active-Learning-Network-for-Medical-Image-Segmentation | a5d731ce7fec934b6e5a036c3b9709bb1b1707cf | [
"MIT",
"Unlicense"
] | null | null | null | dataset.py | Assassinsarms/Deep-Active-Learning-Network-for-Medical-Image-Segmentation | a5d731ce7fec934b6e5a036c3b9709bb1b1707cf | [
"MIT",
"Unlicense"
] | null | null | null | import numpy as np
import torch
import torch.utils.data
from torchvision import datasets, models, transforms
class Dataset(torch.utils.data.Dataset):
def __init__(self, img_paths, mask_paths):
self.img_paths = img_paths
self.mask_paths = mask_paths
def __len__(self):
return ... | 30.311111 | 53 | 0.558651 | 199 | 1,364 | 3.487437 | 0.20603 | 0.181556 | 0.190202 | 0.074928 | 0.20317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.317449 | 1,364 | 44 | 54 | 31 | 0.704619 | 0 | 0 | 0 | 0 | 0 | 0.010614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.111111 | 0.027778 | 0.277778 | 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 |
1740e4a0d16b5b44dc2d0cce44eaa47d920cd9a8 | 673 | py | Python | tests/datatypes/test-NMTOKENS.py | thorstenb/pyxb | 634e86f61dfb73a2900f32fc3d819e9c25365a49 | [
"Apache-2.0"
] | null | null | null | tests/datatypes/test-NMTOKENS.py | thorstenb/pyxb | 634e86f61dfb73a2900f32fc3d819e9c25365a49 | [
"Apache-2.0"
] | null | null | null | tests/datatypes/test-NMTOKENS.py | thorstenb/pyxb | 634e86f61dfb73a2900f32fc3d819e9c25365a49 | [
"Apache-2.0"
] | null | null | null | from pyxb.exceptions_ import *
import unittest
import pyxb.binding.datatypes as xsd
class Test_NMTOKENS (unittest.TestCase):
def testBasicLists (self):
v = xsd.NMTOKENS([ "one", "_two", "three" ])
self.assertEqual(3, len(v))
self.assertTrue(isinstance(v[0], xsd.NMTOKEN))
self.assert... | 32.047619 | 80 | 0.64636 | 84 | 673 | 5.035714 | 0.452381 | 0.141844 | 0.037825 | 0.07565 | 0.496454 | 0.420804 | 0.420804 | 0.420804 | 0.241135 | 0.241135 | 0 | 0.011278 | 0.20951 | 673 | 20 | 81 | 33.65 | 0.783835 | 0 | 0 | 0.352941 | 0 | 0 | 0.086181 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 |
17426d0f5d32938f46dc0cfb05418d4b9a83dfdb | 1,316 | py | Python | main.py | yaxollum/physics-calculator | 0fe1f96080c11c1419b367316fcc55ca8072185c | [
"MIT"
] | null | null | null | main.py | yaxollum/physics-calculator | 0fe1f96080c11c1419b367316fcc55ca8072185c | [
"MIT"
] | null | null | null | main.py | yaxollum/physics-calculator | 0fe1f96080c11c1419b367316fcc55ca8072185c | [
"MIT"
] | null | null | null | import math
from math import pi,sqrt,radians,degrees
import sys
g=9.8
G=6.67e-11
e=1.6021917e-19
ke=8.9875e9
me=9.1095e-31
mp=1.67261e-27
mn=1.674929e-27
blocked=["exec","sys","eval","PROCESS","CMD","RESULT","block","import","math","from",]
def sin(deg):
return math.sin(radians(deg))
def cos(deg):
return mat... | 21.57377 | 86 | 0.62386 | 199 | 1,316 | 4.060302 | 0.447236 | 0.034653 | 0.048267 | 0.066832 | 0.111386 | 0.076733 | 0.076733 | 0 | 0 | 0 | 0 | 0.054422 | 0.218085 | 1,316 | 60 | 87 | 21.933333 | 0.730807 | 0 | 0 | 0 | 0 | 0 | 0.170973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.081633 | 0.142857 | 0.408163 | 0.122449 | 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 |
1744f0973bfc06b5cd231433dd5765cb59c96907 | 19,022 | py | Python | pybar/daq/readout_utils.py | laborleben/pyBAR | 5ad95bbcd41cd358825823fb78f396cfce23593e | [
"BSD-3-Clause"
] | 10 | 2015-06-30T07:26:05.000Z | 2020-01-29T07:09:36.000Z | pybar/daq/readout_utils.py | laborleben/pyBAR | 5ad95bbcd41cd358825823fb78f396cfce23593e | [
"BSD-3-Clause"
] | 77 | 2015-01-28T15:52:38.000Z | 2019-09-10T07:31:54.000Z | pybar/daq/readout_utils.py | laborleben/pyBAR | 5ad95bbcd41cd358825823fb78f396cfce23593e | [
"BSD-3-Clause"
] | 27 | 2015-02-06T09:21:17.000Z | 2020-06-16T16:04:46.000Z | import logging
import os
import numpy as np
import tables as tb
class NameValue(tb.IsDescription):
name = tb.StringCol(256, pos=0)
value = tb.StringCol(4 * 1024, pos=0)
def save_configuration_dict(h5_file, configuation_name, configuration, **kwargs):
'''Stores any configuration dictionary ... | 38.044 | 304 | 0.65808 | 2,674 | 19,022 | 4.436425 | 0.138743 | 0.037933 | 0.047543 | 0.038692 | 0.536374 | 0.466745 | 0.427211 | 0.370058 | 0.342746 | 0.308607 | 0 | 0.055316 | 0.233046 | 19,022 | 499 | 305 | 38.12024 | 0.757831 | 0.334087 | 0 | 0.190698 | 0 | 0 | 0.027485 | 0.003827 | 0 | 0 | 0.046099 | 0.008016 | 0 | 1 | 0.213953 | false | 0.009302 | 0.018605 | 0.083721 | 0.44186 | 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 |
1745c0226aa2024ec482e450d2d4e2ce1b2658cf | 375 | py | Python | tests/test_utils.py | eric-erki/autokeras | d365a04af7f41641c4b0634fc076f6dbe2364d53 | [
"MIT"
] | 1 | 2018-11-27T16:09:38.000Z | 2018-11-27T16:09:38.000Z | tests/test_utils.py | HangJie720/autokeras | 1619d8c398a955559fb6389797716c9a0989cb43 | [
"MIT"
] | null | null | null | tests/test_utils.py | HangJie720/autokeras | 1619d8c398a955559fb6389797716c9a0989cb43 | [
"MIT"
] | 1 | 2018-08-31T12:49:57.000Z | 2018-08-31T12:49:57.000Z | from autokeras.generator import DefaultClassifierGenerator
from autokeras.utils import *
from tests.common import get_processed_data
def test_model_trainer():
model = DefaultClassifierGenerator(3, (28, 28, 3)).generate().produce_model()
train_data, test_data = get_processed_data()
ModelTrainer(model, tra... | 34.090909 | 81 | 0.794667 | 49 | 375 | 5.795918 | 0.510204 | 0.091549 | 0.112676 | 0.126761 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021084 | 0.114667 | 375 | 10 | 82 | 37.5 | 0.834337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
174a175e2ee00d42bff6849eb0eb36038d299861 | 1,584 | py | Python | practice/ai/astar-search/n-puzzle/n-puzzle.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 4 | 2017-01-18T17:51:58.000Z | 2019-10-20T12:14:37.000Z | practice/ai/astar-search/n-puzzle/n-puzzle.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | null | null | null | practice/ai/astar-search/n-puzzle/n-puzzle.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 8 | 2016-03-14T17:16:59.000Z | 2021-06-26T10:11:33.000Z | import copy
def main():
directions = [[-1, 0, 'UP'], [0, -1, 'LEFT'], [0, 1, 'RIGHT'], [1, 0, 'DOWN']]
n = int(input())
input_grid = []
for i in range(n * n):
x = int(input())
input_grid.append(x)
queue = []
answer_routes = None
mem = set()
queue.append([input_grid... | 28.8 | 82 | 0.493687 | 219 | 1,584 | 3.369863 | 0.246575 | 0.085366 | 0.02439 | 0.044715 | 0.096206 | 0.096206 | 0.03794 | 0 | 0 | 0 | 0 | 0.026558 | 0.381944 | 1,584 | 55 | 83 | 28.8 | 0.727273 | 0 | 0 | 0.111111 | 0 | 0 | 0.014511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.044444 | 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 |
174b9fc6ea88a18a204d9c55fb11628139db42f9 | 11,261 | py | Python | ptr_lib.py | alexBoava/ptr_lib | 95437dbfa2945cfe6691e17b6797ca03e9a0e967 | [
"MIT"
] | null | null | null | ptr_lib.py | alexBoava/ptr_lib | 95437dbfa2945cfe6691e17b6797ca03e9a0e967 | [
"MIT"
] | null | null | null | ptr_lib.py | alexBoava/ptr_lib | 95437dbfa2945cfe6691e17b6797ca03e9a0e967 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2014 R.Pissardini <rodrigo AT pissardini DOT com>
# Copyright (c) 2018 R.Pissardini <rodrigo AT pissardini DOT com> and Alex Boava Meza
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# i... | 29.023196 | 114 | 0.575171 | 1,701 | 11,261 | 3.778954 | 0.263962 | 0.004667 | 0.005134 | 0.009956 | 0.167393 | 0.126322 | 0.101898 | 0.090697 | 0.068917 | 0.068917 | 0 | 0.082381 | 0.285321 | 11,261 | 387 | 115 | 29.098191 | 0.716327 | 0.159489 | 0 | 0.12749 | 0 | 0 | 0.023319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011952 | null | null | 0.011952 | 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 |
174cbf00e9baff7d5cec3a9af14e07f32c27a688 | 1,584 | py | Python | lessons/troubleshooting-chain/get-phone-ip-from-ext.py | wouyang628/nrelabs-curriculum | ba159deca790a9dc4a9765901d64d459aa5394d7 | [
"Apache-2.0"
] | 1 | 2019-05-17T16:47:20.000Z | 2019-05-17T16:47:20.000Z | lessons/troubleshooting-chain/get-phone-ip-from-ext.py | wouyang628/nrelabs-curriculum | ba159deca790a9dc4a9765901d64d459aa5394d7 | [
"Apache-2.0"
] | 1 | 2018-10-30T20:22:36.000Z | 2018-10-30T20:22:36.000Z | lessons/lesson-21/get-phone-ip-from-ext.py | ShrutiVPawaskar/antidote | 3e7d3ce3ae627a91460217b05aad29e5742db5f5 | [
"Apache-2.0"
] | 2 | 2018-10-26T16:43:05.000Z | 2018-10-29T15:27:05.000Z | #!/usr/bin/python2.7
import requests
import xml.etree.ElementTree as ET
import sys
import json
def out(*args):
if sys.stdout.isatty():
print ', '.join(args[0]["hosts"])
else:
print json.dumps(args[0])
def myfunc(*args):
host = args[0]["host"][0]
port = args[0]["port"][0]
userna... | 22.309859 | 115 | 0.566919 | 202 | 1,584 | 4.405941 | 0.356436 | 0.101124 | 0.049438 | 0.053933 | 0.096629 | 0.096629 | 0.096629 | 0.096629 | 0.096629 | 0.096629 | 0 | 0.017964 | 0.261995 | 1,584 | 70 | 116 | 22.628571 | 0.74337 | 0.011995 | 0 | 0.1875 | 0 | 0 | 0.11509 | 0.049233 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.083333 | null | null | 0.041667 | 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 |
17522a0d82055ea6638e49c6d77ad98e951ead1d | 456 | py | Python | mail_sender.py | PaulinaKomorek/UAM | 8995ca20d91e7c1ab4e59dbaa40cc02c4b7d9287 | [
"MIT"
] | null | null | null | mail_sender.py | PaulinaKomorek/UAM | 8995ca20d91e7c1ab4e59dbaa40cc02c4b7d9287 | [
"MIT"
] | null | null | null | mail_sender.py | PaulinaKomorek/UAM | 8995ca20d91e7c1ab4e59dbaa40cc02c4b7d9287 | [
"MIT"
] | null | null | null |
import smtplib
from email.message import EmailMessage
def send_mail(mail: str, name: str):
user = ''
password = ''
text="Hello " + name + ", \n your account has been created succesfully"
msg = EmailMessage()
msg.set_content(text)
msg['Subject'] = "Confirmation"
msg['From'] = ""
msg['To... | 22.8 | 75 | 0.60307 | 58 | 456 | 4.689655 | 0.603448 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.243421 | 456 | 20 | 76 | 22.8 | 0.77971 | 0 | 0 | 0 | 0 | 0 | 0.16886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.117647 | 0 | 0.176471 | 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 |
1754ee3365c81b8aba8b74ef4d7d8a1bd33065c9 | 1,971 | py | Python | bin/delete_downstream.py | Lhior/TXPipe | 58fd7612326779d4c1b0e499157dddc9e3b524c0 | [
"BSD-3-Clause"
] | 9 | 2018-03-17T02:07:52.000Z | 2022-02-23T20:25:48.000Z | bin/delete_downstream.py | Lhior/TXPipe | 58fd7612326779d4c1b0e499157dddc9e3b524c0 | [
"BSD-3-Clause"
] | 162 | 2018-03-06T16:18:23.000Z | 2022-03-21T18:11:37.000Z | bin/delete_downstream.py | Lhior/TXPipe | 58fd7612326779d4c1b0e499157dddc9e3b524c0 | [
"BSD-3-Clause"
] | 7 | 2018-07-26T11:49:46.000Z | 2022-02-23T22:14:48.000Z | """
This script prints out the commands to delete all files generated by a pipeline,
downstream of a specified stage.
If one stage was wrong, and you need to re-run everything it affected, this script
will print out the commands to delete the relevant files to that re-running the pipeline
with resume=True will re-run ... | 35.196429 | 88 | 0.704211 | 318 | 1,971 | 4.264151 | 0.358491 | 0.106195 | 0.053097 | 0.023599 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001301 | 0.220193 | 1,971 | 55 | 89 | 35.836364 | 0.880937 | 0.436327 | 0 | 0 | 1 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.206897 | 0 | 0.206897 | 0.034483 | 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 |
175eda20ec3bac976de1591a75575ec51aa097b5 | 530 | py | Python | Translator/Translator.py | ToastFreak777/Random_Projects | eda05312a0d7567ef6cec519ddec11b3838e6e37 | [
"BSD-3-Clause"
] | null | null | null | Translator/Translator.py | ToastFreak777/Random_Projects | eda05312a0d7567ef6cec519ddec11b3838e6e37 | [
"BSD-3-Clause"
] | null | null | null | Translator/Translator.py | ToastFreak777/Random_Projects | eda05312a0d7567ef6cec519ddec11b3838e6e37 | [
"BSD-3-Clause"
] | null | null | null | def translator(phrase):
translated = ""
for letter in phrase:
if letter.lower() in "aeiou":
if letter.isupper():
translated = translated + "G"
else:
translated = translated + "g"
else: # I have just experienced my first indenta... | 29.444444 | 145 | 0.579245 | 57 | 530 | 5.385965 | 0.631579 | 0.19544 | 0.136808 | 0.162866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337736 | 530 | 17 | 146 | 31.176471 | 0.874644 | 0.239623 | 0 | 0.166667 | 0 | 0 | 0.059896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.083333 | 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 |
17663eed0370282aec9db79bcee76a65547e889b | 780 | py | Python | test/test_triggers.py | PaleNutcrackers/cactbot | b88de701d456104b95640f1993a64a933b583ee0 | [
"Apache-2.0"
] | null | null | null | test/test_triggers.py | PaleNutcrackers/cactbot | b88de701d456104b95640f1993a64a933b583ee0 | [
"Apache-2.0"
] | null | null | null | test/test_triggers.py | PaleNutcrackers/cactbot | b88de701d456104b95640f1993a64a933b583ee0 | [
"Apache-2.0"
] | null | null | null | """Tests individual trigger files for the raidboss Cactbot module."""
from pathlib import Path
import subprocess
import sys
from definitions import CactbotModule, DATA_DIRECTORY
def main():
"""Validates individual trigger files within the raidboss Cactbot module.
Current validation only checks th... | 27.857143 | 96 | 0.698718 | 95 | 780 | 5.578947 | 0.557895 | 0.113208 | 0.083019 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.219231 | 780 | 27 | 97 | 28.888889 | 0.865353 | 0.401282 | 0 | 0 | 0 | 0 | 0.046117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
177114c1ab865f0eeecc4e5f85ab0e6bf2f7df56 | 365 | py | Python | resize/forms.py | kelvins/ResizeMe | 0a77c6035508c24ed2fefb73bff25b96a0cd2645 | [
"MIT"
] | 1 | 2017-03-02T19:24:24.000Z | 2017-03-02T19:24:24.000Z | resize/forms.py | kelvins/ResizeMe | 0a77c6035508c24ed2fefb73bff25b96a0cd2645 | [
"MIT"
] | 5 | 2017-03-01T00:29:20.000Z | 2020-02-15T00:59:11.000Z | resize/forms.py | kelvins/ResizeMe | 0a77c6035508c24ed2fefb73bff25b96a0cd2645 | [
"MIT"
] | null | null | null | from django import forms
class UploadFileForm(forms.Form):
# Image file
file = forms.ImageField()
# Get the width and height fields
width = forms.IntegerField()
height = forms.IntegerField()
# Image formats
CHOICES = [
('jpg','jpg'),
('png','png'),
('bmp','bmp')
]
image_format = forms.ChoiceField... | 19.210526 | 78 | 0.682192 | 43 | 365 | 5.767442 | 0.604651 | 0.137097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167123 | 365 | 19 | 78 | 19.210526 | 0.815789 | 0.153425 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.636364 | 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 |
178650e134bc585badf0606d8154aef1c3a966a5 | 14,819 | py | Python | recohut/datasets/retailrocket.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | recohut/datasets/retailrocket.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | 1 | 2022-01-12T05:40:57.000Z | 2022-01-12T05:40:57.000Z | recohut/datasets/retailrocket.py | RecoHut-Projects/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/datasets/datasets.retailrocket.ipynb (unless otherwise specified).
__all__ = ['RetailRocketDataset', 'RetailRocketDatasetv2']
# Cell
from typing import List, Optional, Callable, Union, Any, Tuple
import os
import os.path as osp
from collections.abc import Sequence
impo... | 47.345048 | 196 | 0.65578 | 1,963 | 14,819 | 4.776872 | 0.140092 | 0.02986 | 0.04479 | 0.016636 | 0.534393 | 0.494614 | 0.444812 | 0.433827 | 0.385304 | 0.34318 | 0 | 0.009448 | 0.200081 | 14,819 | 313 | 197 | 47.345048 | 0.781593 | 0.100007 | 0 | 0.296296 | 1 | 0.032407 | 0.141261 | 0.006418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.060185 | 0.013889 | 0.203704 | 0.069444 | 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 |
178a5dee0c833a669c6ba328abed617d25fecc47 | 482 | py | Python | demo/onlyuserrole/demo/views.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | 2 | 2021-03-12T00:42:13.000Z | 2021-05-24T06:31:13.000Z | demo/onlyuserrole/demo/views.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | null | null | null | demo/onlyuserrole/demo/views.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | null | null | null | from onlyuserclient.viewsets import RoleModelViewSet
from .serializers import DefaultDemoSerializer, CompleteDemoSerializer, HideDemoSerializer
from .models import RoleDemo
class RoleViewSet(RoleModelViewSet):
queryset = RoleDemo.objects.all()
user_relate_field = 'owner'
org_relate_field = 'organization'
... | 34.428571 | 90 | 0.76556 | 40 | 482 | 9.05 | 0.7 | 0.060773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165975 | 482 | 13 | 91 | 37.076923 | 0.900498 | 0 | 0 | 0 | 0 | 0 | 0.095436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
178cdf87e72c40683205a29322b346b96a62561b | 12,844 | py | Python | solarpv/deployment/pipeline.py | shivareddyiirs/solar-pv-global-inventory | 9940a454de88a39ca92dbabf07e98d8623f0ec8b | [
"MIT"
] | 64 | 2021-10-29T18:51:23.000Z | 2022-03-31T01:41:34.000Z | solarpv/deployment/pipeline.py | shivareddyiirs/solar-pv-global-inventory | 9940a454de88a39ca92dbabf07e98d8623f0ec8b | [
"MIT"
] | 3 | 2021-11-25T06:00:38.000Z | 2021-11-28T16:06:46.000Z | solarpv/deployment/pipeline.py | shivareddyiirs/solar-pv-global-inventory | 9940a454de88a39ca92dbabf07e98d8623f0ec8b | [
"MIT"
] | 9 | 2021-10-30T01:20:26.000Z | 2022-03-22T18:48:48.000Z | """
Run the pipeline
"""
# built-in
import os, sys, logging, datetime, json
# packages
import yaml
import descarteslabs as dl
import shapely.geometry as geometry
# lib
from deployment.cloud_dl_functions import DL_CLOUD_FUNCTIONS
# conf
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
def reduce2mp(polys,... | 40.263323 | 196 | 0.58611 | 1,683 | 12,844 | 4.254308 | 0.178253 | 0.025698 | 0.044972 | 0.035754 | 0.487849 | 0.448464 | 0.414944 | 0.398743 | 0.332402 | 0.29567 | 0 | 0.019266 | 0.280676 | 12,844 | 319 | 197 | 40.263323 | 0.755709 | 0.032778 | 0 | 0.267281 | 0 | 0.018433 | 0.202466 | 0.044307 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009217 | 0.023041 | null | null | 0.023041 | 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 |
178e3e4fb36da49106695f9de7f720f8193fb13f | 8,238 | py | Python | lib/bridgedb/test/test_schedule.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/test/test_schedule.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/test/test_schedule.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of BridgeDB, a Tor bridge distribution system.
#
# :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org>
# :copyright: (c) 2014, Isis Lovecruft
# (c) 2014, The Tor Project, Inc.
# :license: see LICENSE for licensing information
"""Unittests for the ... | 38.676056 | 80 | 0.696771 | 944 | 8,238 | 5.898305 | 0.164195 | 0.042744 | 0.125 | 0.070043 | 0.557471 | 0.457974 | 0.397989 | 0.25898 | 0.24569 | 0.194684 | 0 | 0.031563 | 0.200049 | 8,238 | 212 | 81 | 38.858491 | 0.813354 | 0.201627 | 0 | 0.147541 | 0 | 0 | 0.028326 | 0 | 0 | 0 | 0 | 0 | 0.204918 | 1 | 0.327869 | false | 0 | 0.040984 | 0 | 0.385246 | 0.008197 | 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 |
17907323bb4edfdf72a83695b8722c6c97a2c763 | 2,658 | py | Python | alipay/aop/api/response/AlipayBossFncGffundStandardvoucherBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayBossFncGffundStandardvoucherBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayBossFncGffundStandardvoucherBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.StandardVoucherOpenApiVO import StandardVoucherOpenApiVO
class AlipayBossFncGffundStandardvoucherBatchqueryResponse(AlipayResponse):
def __init__(self):
... | 32.024096 | 125 | 0.6693 | 296 | 2,658 | 5.692568 | 0.162162 | 0.097923 | 0.124036 | 0.081899 | 0.065282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000502 | 0.250941 | 2,658 | 82 | 126 | 32.414634 | 0.845806 | 0.015801 | 0 | 0.088235 | 0 | 0 | 0.051262 | 0.016067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.044118 | 0.088235 | 0.352941 | 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 |
17a052c53c53b7c34f8cf8e78a2a9aff9e9a18d5 | 2,159 | py | Python | examples/applications/run_multi_functions.py | JokerHB/mealpy | 4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f | [
"MIT"
] | 1 | 2021-11-24T05:03:22.000Z | 2021-11-24T05:03:22.000Z | examples/applications/run_multi_functions.py | JokerHB/mealpy | 4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f | [
"MIT"
] | null | null | null | examples/applications/run_multi_functions.py | JokerHB/mealpy | 4bd00f47ed575d01f246d5fd0ef306d7c1fa5a5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu" at 17:40, 06/11/2021 %
# ... | 44.061224 | 111 | 0.509495 | 252 | 2,159 | 4.22619 | 0.496032 | 0.097653 | 0.1277 | 0.050704 | 0.05446 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05901 | 0.270032 | 2,159 | 49 | 112 | 44.061224 | 0.616751 | 0.401575 | 0 | 0 | 0 | 0 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.107143 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
17a11c548dc4d68f2e7c3d67b955f950ef23e715 | 2,804 | py | Python | monoensemble/version.py | vasselai/monoensemble | faf8968a2b1c1938e40af4add264003b802ca6b6 | [
"BSD-3-Clause"
] | 5 | 2020-06-05T04:15:27.000Z | 2021-09-02T15:47:56.000Z | monoensemble/version.py | vasselai/monoensemble | faf8968a2b1c1938e40af4add264003b802ca6b6 | [
"BSD-3-Clause"
] | 5 | 2020-06-05T04:14:56.000Z | 2021-08-14T06:08:13.000Z | monoensemble/version.py | vasselai/monoensemble | faf8968a2b1c1938e40af4add264003b802ca6b6 | [
"BSD-3-Clause"
] | 1 | 2021-08-10T02:49:43.000Z | 2021-08-10T02:49:43.000Z | from __future__ import absolute_import, division, print_function
from os.path import join as pjoin
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 1
_version_minor = 3
_version_micro = 2 # use '' for first of series, number for 1 and above
_version_extra = 'dev'
_version_... | 35.493671 | 105 | 0.743581 | 354 | 2,804 | 5.731638 | 0.556497 | 0.044357 | 0.014786 | 0.016757 | 0.038443 | 0.038443 | 0.038443 | 0 | 0 | 0 | 0 | 0.009796 | 0.162625 | 2,804 | 78 | 106 | 35.948718 | 0.854344 | 0.099857 | 0 | 0.032787 | 0 | 0.016393 | 0.626142 | 0.062376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0.016393 | 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 |
17a1aeaced8386b3337a66219ca9b9b7c9e9ca9c | 590 | py | Python | boilerplate/setup.py | MTrajK/python-projects | 99088aa19e4e4cb5382b8e426e7983aa0fb477f2 | [
"MIT"
] | 5 | 2019-09-09T10:27:52.000Z | 2022-02-05T08:20:57.000Z | boilerplate/setup.py | MTrajK/python-projects | 99088aa19e4e4cb5382b8e426e7983aa0fb477f2 | [
"MIT"
] | null | null | null | boilerplate/setup.py | MTrajK/python-projects | 99088aa19e4e4cb5382b8e426e7983aa0fb477f2 | [
"MIT"
] | 1 | 2020-08-28T23:50:37.000Z | 2020-08-28T23:50:37.000Z | from setuptools import setup, find_packages
setup(
name='boilerplate',
version='0.0.1',
description='Python project boilerplate.',
author='Meto Trajkovski',
python_requires='>=3',
install_requires=[],
# If you have only one package then use: packages=['boilerplate']
packages=find_packag... | 29.5 | 73 | 0.654237 | 67 | 590 | 5.626866 | 0.746269 | 0.06366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008677 | 0.218644 | 590 | 20 | 74 | 29.5 | 0.809111 | 0.266102 | 0 | 0 | 0 | 0 | 0.25814 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
17a3e5dd30ac35601b4d8769d23eb95a1f8ee166 | 327 | py | Python | perfplot/__about__.py | pardha-bandaru/perfplot | 5d62fc50fd0221a05a85e356af3c75efa275d90b | [
"MIT"
] | 1 | 2019-03-10T13:49:54.000Z | 2019-03-10T13:49:54.000Z | perfplot/__about__.py | pardha-bandaru/perfplot | 5d62fc50fd0221a05a85e356af3c75efa275d90b | [
"MIT"
] | null | null | null | perfplot/__about__.py | pardha-bandaru/perfplot | 5d62fc50fd0221a05a85e356af3c75efa275d90b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
__author__ = u"Nico Schlömer"
__author_email__ = "nico.schloemer@gmail.com"
__copyright__ = u"Copyright (c) 2017-2018, {} <{}>".format(__author__, __author_email__)
__license__ = "License :: OSI Approved :: MIT License"
__version__ = "0.5.0"
__status__ = "Development Status :: 5 - Production/S... | 36.333333 | 88 | 0.706422 | 39 | 327 | 5.051282 | 0.692308 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.125382 | 327 | 8 | 89 | 40.875 | 0.643357 | 0.06422 | 0 | 0 | 0 | 0 | 0.511551 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
bd5c6e72b2464d2cc82ab173896c2c13404718a5 | 4,320 | py | Python | table_border_syntax.py | akrabat/SublimeTableEditor | 327d9d59a40214fcd7f740764bd641428a907768 | [
"Apache-2.0"
] | 313 | 2015-01-02T06:45:44.000Z | 2022-02-07T08:41:36.000Z | table_border_syntax.py | akrabat/SublimeTableEditor | 327d9d59a40214fcd7f740764bd641428a907768 | [
"Apache-2.0"
] | 17 | 2015-01-09T13:51:19.000Z | 2022-01-29T18:24:08.000Z | table_border_syntax.py | akrabat/SublimeTableEditor | 327d9d59a40214fcd7f740764bd641428a907768 | [
"Apache-2.0"
] | 88 | 2015-02-27T09:48:19.000Z | 2022-01-17T14:59:49.000Z | # table_border_syntax.py - Base classes for table with borders: Pandoc,
# Emacs Org mode, Simple, reStrucutredText
# Copyright (C) 2012 Free Software Foundation, Inc.
# Author: Valery Kocubinsky
# Package: SublimeTableEditor
# Homepage: https://github.com/vkocubinsky/SublimeTableEditor
# This file is part of Sublim... | 32 | 77 | 0.657407 | 565 | 4,320 | 4.824779 | 0.286726 | 0.044021 | 0.040352 | 0.051357 | 0.440205 | 0.37124 | 0.302274 | 0.302274 | 0.270726 | 0.245781 | 0 | 0.005843 | 0.247222 | 4,320 | 134 | 78 | 32.238806 | 0.832411 | 0.221991 | 0 | 0.373494 | 0 | 0 | 0.035607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192771 | false | 0 | 0.060241 | 0.084337 | 0.506024 | 0.012048 | 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 |
bd68070b41d4e02ad4840cfc88ac6d7927ba3541 | 2,119 | py | Python | toqito/matrices/iden.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 76 | 2020-01-28T17:02:01.000Z | 2022-02-14T18:02:15.000Z | toqito/matrices/iden.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 82 | 2020-05-31T20:09:38.000Z | 2022-03-28T17:13:59.000Z | toqito/matrices/iden.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 30 | 2020-04-02T16:07:11.000Z | 2022-02-05T13:39:22.000Z | """Identity matrix."""
from scipy import sparse
import numpy as np
def iden(dim: int, is_sparse: bool = False) -> np.ndarray:
r"""
Calculate the :code:`dim`-by-:code:`dim` identity matrix [WIKID]_.
Returns the :code:`dim`-by-:code:`dim` identity matrix. If :code:`is_sparse
= False` then the matrix w... | 30.710145 | 79 | 0.563945 | 277 | 2,119 | 4.274368 | 0.368231 | 0.023649 | 0.015203 | 0.016892 | 0.233953 | 0.179054 | 0.070946 | 0.070946 | 0.015203 | 0 | 0 | 0.03427 | 0.311468 | 2,119 | 68 | 80 | 31.161765 | 0.777245 | 0.804153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd6962af108ce2f89625d5f99811f2a044698dcb | 1,001 | py | Python | MayaPythonPlugin/pyHelloMaya.py | WendyAndAndy/MayaDev | e5d28d627dc5ee2bc32ef934043e661de40d7fce | [
"MIT"
] | 19 | 2018-09-08T16:18:25.000Z | 2022-01-12T06:45:46.000Z | MayaPythonPlugin/pyHelloMaya.py | WendyAndAndy/MayaDev | e5d28d627dc5ee2bc32ef934043e661de40d7fce | [
"MIT"
] | null | null | null | MayaPythonPlugin/pyHelloMaya.py | WendyAndAndy/MayaDev | e5d28d627dc5ee2bc32ef934043e661de40d7fce | [
"MIT"
] | 12 | 2018-11-27T06:01:50.000Z | 2022-03-17T08:56:07.000Z | # coding:utf-8
# 一个简单的Maya Python插件 By Jason (184327932@qq.com), 公众号: WendyAndAndy
import sys
from maya.api import OpenMaya as om
def maya_useNewAPI():
pass
__VENDOR = 'kingmax_res@163.com | 184327932@qq.com | iJasonLee@WeChat'
__VERSION= '2018.08.08.01'
class HelloMaya(om.MPxCommand):
command = 'pyHello'
... | 21.76087 | 70 | 0.676324 | 117 | 1,001 | 5.598291 | 0.57265 | 0.033588 | 0.042748 | 0.061069 | 0.137405 | 0.137405 | 0.137405 | 0.137405 | 0.137405 | 0 | 0 | 0.040712 | 0.214785 | 1,001 | 45 | 71 | 22.244444 | 0.792621 | 0.077922 | 0 | 0.275862 | 0 | 0 | 0.179739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.068966 | 0.034483 | 0.37931 | 0.034483 | 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 |
bd6f50850248ef00fce461b2e73d28d7dce65965 | 630 | py | Python | cursor.py | avysk/psgo_emitter | d16c936050b10eb78ec8b5a3540c9772a0df4516 | [
"BSD-2-Clause"
] | 2 | 2018-01-02T23:56:25.000Z | 2021-09-10T19:18:40.000Z | cursor.py | avysk/psgo_emitter | d16c936050b10eb78ec8b5a3540c9772a0df4516 | [
"BSD-2-Clause"
] | null | null | null | cursor.py | avysk/psgo_emitter | d16c936050b10eb78ec8b5a3540c9772a0df4516 | [
"BSD-2-Clause"
] | 1 | 2018-09-02T19:13:00.000Z | 2018-09-02T19:13:00.000Z | """Cursor on the board."""
class Cursor():
"""Entity that stores a cursor."""
def __init__(self):
self._point = [0, 0]
@property
def point(self):
"""Return cursor position."""
return tuple(self._point)
def _change(self, axis, delta):
self._point[axis] += delta
... | 25.2 | 50 | 0.501587 | 77 | 630 | 3.974026 | 0.38961 | 0.117647 | 0.084967 | 0.117647 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.319048 | 630 | 24 | 51 | 26.25 | 0.685315 | 0.174603 | 0 | 0 | 0 | 0 | 0.06012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0 | 0.4 | 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 |
bd7416f05bae1fb7bccd4d1f6e0d622c476425db | 3,957 | py | Python | uvicorn/protocols/utils.py | immerrr/uvicorn | e833335c2504f599e5c5a95dc84a0584e7fdb955 | [
"BSD-3-Clause"
] | null | null | null | uvicorn/protocols/utils.py | immerrr/uvicorn | e833335c2504f599e5c5a95dc84a0584e7fdb955 | [
"BSD-3-Clause"
] | null | null | null | uvicorn/protocols/utils.py | immerrr/uvicorn | e833335c2504f599e5c5a95dc84a0584e7fdb955 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import time
import urllib.parse
from typing import Optional, Tuple
from asgiref.typing import WWWScope
def get_remote_addr(transport: asyncio.Transport) -> Optional[Tuple[str, int]]:
socket_info = transport.get_extra_info("socket")
if socket_info is not None:
try:
info = so... | 34.112069 | 84 | 0.677786 | 518 | 3,957 | 4.928571 | 0.22973 | 0.045828 | 0.04387 | 0.047004 | 0.638073 | 0.560909 | 0.232667 | 0.232667 | 0.232667 | 0.232667 | 0 | 0.008117 | 0.221633 | 3,957 | 115 | 85 | 34.408696 | 0.820779 | 0.081375 | 0 | 0.207317 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207317 | false | 0 | 0.060976 | 0.04878 | 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 |
bd7ea7faeb053c10d6b2d8dde059251fd873ba70 | 751 | py | Python | LeetCode/198-house-robber.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/198-house-robber.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/198-house-robber.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | ###############################################################################################
# 直接参考官方方法,经典题型——打家劫舍,采用动态规划
###########
# 时间复杂度:O(n),n为数组长度
# 空间复杂度:O(1),采用滚动数组,复杂度减少到最低
###############################################################################################
class Solution:
def rob(sel... | 34.136364 | 96 | 0.376831 | 72 | 751 | 3.902778 | 0.569444 | 0.053381 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019713 | 0.256991 | 751 | 22 | 97 | 34.136364 | 0.480287 | 0.181092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd82b9080a2ab7c5a067984d4ec0de65005680dc | 1,508 | py | Python | lime/util/passwords_test.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | null | null | null | lime/util/passwords_test.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | 69 | 2018-02-04T15:08:07.000Z | 2020-03-19T22:04:16.000Z | lime/util/passwords_test.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | null | null | null | """Tests for the password descriptor.
Relies on the descriptor existing on the user model.
"""
from absl.testing import absltest
from passlib import context
from lime import app
from lime.database import models
from lime.util import testing
class PasswordsTest(absltest.TestCase):
"""Tests for the password descri... | 28.45283 | 74 | 0.700928 | 186 | 1,508 | 5.543011 | 0.408602 | 0.116392 | 0.077595 | 0.058196 | 0.349176 | 0.230844 | 0.14549 | 0 | 0 | 0 | 0 | 0.018654 | 0.182361 | 1,508 | 52 | 75 | 29 | 0.817518 | 0.185013 | 0 | 0.206897 | 0 | 0 | 0.148087 | 0.078203 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.103448 | false | 0.448276 | 0.172414 | 0 | 0.310345 | 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 |
bd8edaee5f0671f1d28a93160419982d4fe89006 | 4,035 | py | Python | mapping.py | tlfobe/LAMMPS-SIMR | 27a719d73fd13ea9909800d641785e756d295308 | [
"MIT"
] | null | null | null | mapping.py | tlfobe/LAMMPS-SIMR | 27a719d73fd13ea9909800d641785e756d295308 | [
"MIT"
] | null | null | null | mapping.py | tlfobe/LAMMPS-SIMR | 27a719d73fd13ea9909800d641785e756d295308 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Analysis scripts for mapping same phase energies to each other using signac
import signac
import numpy as np
import subprocess
import pdb
import os
import sys
import pandas
import mdtraj as md
import shutil
import yaml
#need to make yaml not just enumerate all ts and ps, but give other info like ... | 35.086957 | 117 | 0.605204 | 565 | 4,035 | 4.270796 | 0.362832 | 0.017406 | 0.026937 | 0.03937 | 0.228346 | 0.171985 | 0.12184 | 0.085371 | 0.068794 | 0.068794 | 0 | 0.018767 | 0.260471 | 4,035 | 114 | 118 | 35.394737 | 0.789879 | 0 | 0 | 0 | 0 | 0 | 0.075296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.029412 | 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 |
bdaad9457f88d788e4758ebf0c4d8d4127b1e567 | 5,326 | py | Python | saltverifier/server.py | virtru-ops/salt-verifier | 1d734cf61c36139c91a2e515ae2eea36be987c04 | [
"MIT"
] | 1 | 2015-04-10T06:52:59.000Z | 2015-04-10T06:52:59.000Z | saltverifier/server.py | virtru-ops/salt-verifier | 1d734cf61c36139c91a2e515ae2eea36be987c04 | [
"MIT"
] | null | null | null | saltverifier/server.py | virtru-ops/salt-verifier | 1d734cf61c36139c91a2e515ae2eea36be987c04 | [
"MIT"
] | null | null | null | """
A simple challenge response server
Request:
encrypted-message-of-challenge
Response:
status-code;body-of-response
Good response:
200-299;base64 of rsa-sha256 of challenge
Bad response:
400-599;error-message
"""
import os
import sys
import argparse
import time
import hashlib
import zmq
import... | 30.965116 | 92 | 0.643447 | 660 | 5,326 | 5.048485 | 0.312121 | 0.09904 | 0.042017 | 0.02401 | 0.126351 | 0.064826 | 0.020408 | 0 | 0 | 0 | 0 | 0.017571 | 0.262674 | 5,326 | 171 | 93 | 31.146199 | 0.830914 | 0.077169 | 0 | 0.087719 | 0 | 0.008772 | 0.184669 | 0.018293 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.078947 | 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 |
bdadd41153c352cf4eebb9490e63db77906b2b4e | 726 | py | Python | chapter4/pizza.py | sharad16j/Expert-Python-Programming-Third-Edition | 2c964acb2203b165c1990e1b9ebcae4a8f339f2f | [
"MIT"
] | 112 | 2019-05-19T02:55:24.000Z | 2022-03-05T03:54:21.000Z | chapter4/pizza.py | ccamateur/Expert-Python-Programming-Third-Edition | 2c964acb2203b165c1990e1b9ebcae4a8f339f2f | [
"MIT"
] | 1 | 2021-06-10T21:21:03.000Z | 2021-06-10T21:21:03.000Z | chapter4/pizza.py | ccamateur/Expert-Python-Programming-Third-Edition | 2c964acb2203b165c1990e1b9ebcae4a8f339f2f | [
"MIT"
] | 72 | 2019-05-13T17:01:49.000Z | 2022-01-18T01:01:05.000Z | class Pizza:
def __init__(self, toppings):
self.toppings = toppings
def __repr__(self):
return "Pizza with " + " and ".join(self.toppings)
@classmethod
def recommend(cls):
"""Recommend some pizza with arbitrary toppings,"""
return cls(['spam', 'ham', 'eggs'])
class Vi... | 29.04 | 65 | 0.641873 | 75 | 726 | 6 | 0.493333 | 0.08 | 0.102222 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001792 | 0.231405 | 726 | 25 | 66 | 29.04 | 0.80466 | 0.133609 | 0 | 0.235294 | 0 | 0 | 0.153473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.058824 | 0.529412 | 0.117647 | 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 |
bdb3dbcabe0e87e9efed14669ebb53adc86157a1 | 950 | py | Python | orders/migrations/0007_auto_20191223_1502.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | orders/migrations/0007_auto_20191223_1502.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | 9 | 2020-01-10T14:10:02.000Z | 2022-03-12T00:08:19.000Z | orders/migrations/0007_auto_20191223_1502.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.5 on 2019-12-23 06:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_auto_20191222_2318'),
]
operations = [
migrations.AlterField(
model_name='order'... | 31.666667 | 114 | 0.586316 | 96 | 950 | 5.666667 | 0.625 | 0.044118 | 0.051471 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049635 | 0.278947 | 950 | 29 | 115 | 32.758621 | 0.744526 | 0.047368 | 0 | 0.086957 | 1 | 0 | 0.108527 | 0.025471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
bdb897f501296858e4d541901a3e67f879335b55 | 1,430 | py | Python | meg_runtime/ui/manager.py | ibedard16/Runtime | c2901c36c79bbe835fbe9c94e4500d46eea26f01 | [
"MIT"
] | null | null | null | meg_runtime/ui/manager.py | ibedard16/Runtime | c2901c36c79bbe835fbe9c94e4500d46eea26f01 | [
"MIT"
] | null | null | null | meg_runtime/ui/manager.py | ibedard16/Runtime | c2901c36c79bbe835fbe9c94e4500d46eea26f01 | [
"MIT"
] | null | null | null | """MEG UI Manager
"""
from PyQt5 import QtWidgets, uic
from os.path import dirname
import pkg_resources
import sys
from meg_runtime.ui.mainmenupanel import MainMenuPanel
from meg_runtime.ui.clonepanel import ClonePanel
from meg_runtime.ui.repopanel import RepoPanel
from meg_runtime.logger import Logger
class UIMana... | 23.442623 | 54 | 0.652448 | 169 | 1,430 | 5.372781 | 0.402367 | 0.055066 | 0.061674 | 0.052863 | 0.066079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00092 | 0.23986 | 1,430 | 60 | 55 | 23.833333 | 0.834407 | 0.192308 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.53125 | 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 |
bdbc02546728e27b0249ee7b627d0e25b7b22ef1 | 375 | py | Python | Main/migrations/0069_auto_20210502_1223.py | Muhammet-Yildiz/Ecommerce_Website-HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | 10 | 2021-06-01T19:30:00.000Z | 2021-06-28T16:16:20.000Z | Main/migrations/0069_auto_20210502_1223.py | Muhammet-Yildiz/HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | null | null | null | Main/migrations/0069_auto_20210502_1223.py | Muhammet-Yildiz/HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-05-02 09:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Main', '0068_remove_product_discount'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='advantage',... | 19.736842 | 49 | 0.597333 | 39 | 375 | 5.589744 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071698 | 0.293333 | 375 | 18 | 50 | 20.833333 | 0.750943 | 0.12 | 0 | 0 | 1 | 0 | 0.182927 | 0.085366 | 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 |
bdbd0f116130e9bc487249456719ec23f0620f7c | 8,476 | py | Python | python/vision/error_functions.py | Oilgrim/ivs_sim | 95dc017ef2aec32173e73dc397ba00177d4f92ce | [
"MIT"
] | null | null | null | python/vision/error_functions.py | Oilgrim/ivs_sim | 95dc017ef2aec32173e73dc397ba00177d4f92ce | [
"MIT"
] | null | null | null | python/vision/error_functions.py | Oilgrim/ivs_sim | 95dc017ef2aec32173e73dc397ba00177d4f92ce | [
"MIT"
] | 1 | 2019-08-07T03:16:47.000Z | 2019-08-07T03:16:47.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 2 14:58:01 2017
@author: lracuna
"""
import autograd.numpy as np
def validation_points_error(Xi, Xo, Hestimated):
Xi = np.copy(Xi)
Xo = np.copy(Xo)
sum = 0
for i in range(Xo.shape[1]):
sum += geometric_distance(Xo[:,i],Xi[:... | 28.442953 | 94 | 0.655734 | 1,435 | 8,476 | 3.740767 | 0.197909 | 0.038748 | 0.046945 | 0.014344 | 0.303465 | 0.242176 | 0.186289 | 0.159463 | 0.159463 | 0.159463 | 0 | 0.036045 | 0.211185 | 8,476 | 297 | 95 | 28.538721 | 0.766826 | 0.164228 | 0 | 0.154839 | 0 | 0 | 0.031461 | 0.007952 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006452 | 0.019355 | null | null | 0.025806 | 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 |
bdbd9db16ef1a9412ba9e93d65695edc30951d1f | 463 | py | Python | ordia/app/__init__.py | nyurik/ordia | ef835b265b14becc0a29ce99649b6d0813be4ce3 | [
"Apache-2.0"
] | null | null | null | ordia/app/__init__.py | nyurik/ordia | ef835b265b14becc0a29ce99649b6d0813be4ce3 | [
"Apache-2.0"
] | null | null | null | ordia/app/__init__.py | nyurik/ordia | ef835b265b14becc0a29ce99649b6d0813be4ce3 | [
"Apache-2.0"
] | null | null | null | """app."""
from __future__ import absolute_import, division, print_function
from flask import Flask
from ..base import Base
def create_app(max_ids=None):
"""Create webapp.
Factory for webapp.
Returns
-------
app : flask.app.Flask
Flask app object.
"""
app = Flask(__name__)
... | 15.433333 | 64 | 0.663067 | 60 | 463 | 4.833333 | 0.45 | 0.062069 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237581 | 463 | 29 | 65 | 15.965517 | 0.82153 | 0.218143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0.333333 | 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 |
bdc48159873b7960dc24b19915be76ac179dce96 | 593 | py | Python | moya/context/sortmodifiers.py | moyaproject/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 129 | 2015-02-16T12:02:50.000Z | 2021-11-06T00:20:01.000Z | moya/context/sortmodifiers.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 5 | 2015-02-19T15:56:41.000Z | 2015-09-08T18:58:35.000Z | moya/context/sortmodifiers.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 14 | 2015-02-19T17:20:34.000Z | 2022-03-28T01:38:09.000Z | """Hacked up script to sort modifiers"""
# Couldn't find a tool for this
"""
import io
with io.open('modifiers.py', 'rt') as f:
iter_lines = iter(f)
while 1:
line = next(iter_lines, None)
if line.startswith('class ExpressionModifiers('):
break
defs = []
while 1:
l... | 21.178571 | 57 | 0.53457 | 79 | 593 | 3.974684 | 0.594937 | 0.085987 | 0.063694 | 0.089172 | 0.210191 | 0.210191 | 0.210191 | 0.210191 | 0.210191 | 0 | 0 | 0.01 | 0.325464 | 593 | 27 | 58 | 21.962963 | 0.775 | 0.109612 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bdc4d4f96f3c31c950c02ff2ab0722846e806869 | 303 | py | Python | app/__init__.py | fauzaanirsyaadi/belajar-full-stack | 603fd8ea832da7e9f8043c83d527cc2f11cbd7d2 | [
"MIT"
] | null | null | null | app/__init__.py | fauzaanirsyaadi/belajar-full-stack | 603fd8ea832da7e9f8043c83d527cc2f11cbd7d2 | [
"MIT"
] | null | null | null | app/__init__.py | fauzaanirsyaadi/belajar-full-stack | 603fd8ea832da7e9f8043c83d527cc2f11cbd7d2 | [
"MIT"
] | 1 | 2021-04-19T06:59:52.000Z | 2021-04-19T06:59:52.000Z | #ini adalah file pertama yang akan dibaca
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
from .models.users import User
| 18.9375 | 41 | 0.80198 | 45 | 303 | 5.244444 | 0.444444 | 0.114407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141914 | 303 | 15 | 42 | 20.2 | 0.907692 | 0.132013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 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 |
bdc79e4cfa4e28a25dd8b6c2c8d73eb6ff2ccb7c | 16,778 | py | Python | metastudio/lib/ext/meta-jython/metastudio.py | tovganesh/metastudio | f8e1aab06f74cb52214879c125b9be237e4e44d0 | [
"MIT"
] | 4 | 2015-11-02T12:17:17.000Z | 2017-11-02T23:18:09.000Z | metastudio/lib/ext/meta-jython/metastudio.py | tovganesh/metastudio | f8e1aab06f74cb52214879c125b9be237e4e44d0 | [
"MIT"
] | 1 | 2017-07-04T15:16:38.000Z | 2022-03-23T19:16:03.000Z | metastudio/lib/ext/meta-jython/metastudio.py | tovganesh/metastudio | f8e1aab06f74cb52214879c125b9be237e4e44d0 | [
"MIT"
] | null | null | null | #
# metastudio.py
#
# Wrappers for accessing MeTA Studio APIs. Where ever possible these
# wrappers are consistent with the ones provided in BeanShell (the default
# scripting interface for MeTA Studio).
# However, due to some restriction in Python, like no support for function
# overloading, certain functions may be... | 30.56102 | 130 | 0.68107 | 1,746 | 16,778 | 6.532073 | 0.263459 | 0.014117 | 0.021219 | 0.01929 | 0.331258 | 0.290574 | 0.259711 | 0.226567 | 0.197808 | 0.197808 | 0 | 0.007039 | 0.204077 | 16,778 | 548 | 131 | 30.616788 | 0.847012 | 0.038086 | 0 | 0.326478 | 0 | 0.005141 | 0.08735 | 0.027607 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005141 | 0.118252 | null | null | 0.041131 | 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 |
bdd1045a3ac8efad47bebf67992392ddc50c32f8 | 1,981 | py | Python | StructuralCausalModels/structural_equation.py | Black-Swan-ICL/PySCMs | ac1ede341507c24fa07dc916cee7828d0d572b1b | [
"MIT"
] | 1 | 2022-02-08T09:35:06.000Z | 2022-02-08T09:35:06.000Z | StructuralCausalModels/structural_equation.py | Black-Swan-ICL/PySCMs | ac1ede341507c24fa07dc916cee7828d0d572b1b | [
"MIT"
] | null | null | null | StructuralCausalModels/structural_equation.py | Black-Swan-ICL/PySCMs | ac1ede341507c24fa07dc916cee7828d0d572b1b | [
"MIT"
] | 3 | 2021-11-19T07:56:56.000Z | 2022-02-10T03:11:58.000Z | # TODO add string representation of Structural Equation
class StructuralEquation:
"""A class to represent structural equations.
Structural Equations are assignments of the sort
.. math::
X_{i} := g((X_j)_{j ~\in ~J}, U_i),
where :math:`U_i` is an exogenous (random) variable.
Parameters
... | 34.155172 | 80 | 0.630994 | 247 | 1,981 | 4.939271 | 0.352227 | 0.095902 | 0.07377 | 0.042623 | 0.237705 | 0.214754 | 0.214754 | 0.214754 | 0.203279 | 0.203279 | 0 | 0.0007 | 0.278647 | 1,981 | 57 | 81 | 34.754386 | 0.853044 | 0.614841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
bdd42a266ab16d76e681f9db3607359b279a82b1 | 1,751 | py | Python | backend/error_handlers.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | backend/error_handlers.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | backend/error_handlers.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | from backend import app
from flask import jsonify
invalid_country_msg = "Invalid country name. Please check using /list/countries to see valid country names."
invalid_region_msg = "Invalid region name. Please check using /list/regions to see names of regions."
invalid_country_or_no_regions_msg = "Country name invalid ... | 37.255319 | 114 | 0.698458 | 230 | 1,751 | 5.182609 | 0.404348 | 0.057047 | 0.053691 | 0.067114 | 0.097315 | 0.057047 | 0.057047 | 0 | 0 | 0 | 0 | 0.026353 | 0.198172 | 1,751 | 46 | 115 | 38.065217 | 0.82265 | 0 | 0 | 0.25641 | 0 | 0.025641 | 0.490006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.051282 | 0.102564 | 0.25641 | 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 | 1 | 0 | 0 | 0 | 1 |
bdd8c785f4a28de664275c03ab51ef37ecee077c | 494 | py | Python | setup.py | chrisbarr/bilious-rutabaga | b2d01f03c2cce8342f11139279870156c0ebc9c9 | [
"MIT"
] | null | null | null | setup.py | chrisbarr/bilious-rutabaga | b2d01f03c2cce8342f11139279870156c0ebc9c9 | [
"MIT"
] | null | null | null | setup.py | chrisbarr/bilious-rutabaga | b2d01f03c2cce8342f11139279870156c0ebc9c9 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'bucket_lister',
packages = find_packages(),
version = '0.2.3',
description = 'List S3 buckets for an account',
author = 'Chris Barr',
author_email = 'chris.barr@ntlworld.com',
url = 'https://github.com/chrisbarr/bilious-rutabaga',
... | 30.875 | 79 | 0.651822 | 61 | 494 | 5.180328 | 0.688525 | 0.075949 | 0.088608 | 0.107595 | 0.259494 | 0.259494 | 0.259494 | 0 | 0 | 0 | 0 | 0.027363 | 0.186235 | 494 | 15 | 80 | 32.933333 | 0.758706 | 0 | 0 | 0 | 0 | 0 | 0.404858 | 0.046559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
bde31635b5c315a2496dd1fea7e63086e1cd31a5 | 9,932 | py | Python | leads/views.py | beniman8/django_crm | d6768c969658065f1fa29b6a29a5dcd8fdf55fdf | [
"MIT"
] | null | null | null | leads/views.py | beniman8/django_crm | d6768c969658065f1fa29b6a29a5dcd8fdf55fdf | [
"MIT"
] | null | null | null | leads/views.py | beniman8/django_crm | d6768c969658065f1fa29b6a29a5dcd8fdf55fdf | [
"MIT"
] | null | null | null | from django.core.mail import send_mail
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render,redirect,reverse
from django.http import HttpResponse
from .models import Lead,Agent,Category
from .forms import LeadForm, LeadModelForm,CustomUserCreationForm,AssignAgentForm,LeadCategor... | 28.788406 | 153 | 0.658176 | 1,126 | 9,932 | 5.682948 | 0.14032 | 0.032661 | 0.058603 | 0.067979 | 0.614158 | 0.568995 | 0.5218 | 0.516643 | 0.469917 | 0.449758 | 0 | 0.000132 | 0.239327 | 9,932 | 344 | 154 | 28.872093 | 0.846856 | 0.251007 | 0 | 0.508475 | 0 | 0 | 0.074431 | 0.019523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135593 | false | 0 | 0.045198 | 0.039548 | 0.502825 | 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 |
bde4e60364d47a83a1123204694bffe49b212688 | 3,864 | py | Python | serialize/dynamo.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 4 | 2016-12-17T20:06:10.000Z | 2021-11-19T04:45:29.000Z | serialize/dynamo.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 11 | 2021-01-06T05:35:11.000Z | 2022-03-11T23:28:31.000Z | serialize/dynamo.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 3 | 2015-06-12T10:44:16.000Z | 2021-07-26T18:39:47.000Z | """Dynamo access"""
import os
from time import sleep
import boto.dynamodb2
from .khan_logger import KhanLogger
__author__ = 'mattjmorris'
class Dynamo(object):
def __init__(self, access_key=None, secret=None):
"""
If access_key and/or secret are not passed in, assumes we are accessing erenev's ... | 39.835052 | 116 | 0.620859 | 469 | 3,864 | 4.882729 | 0.332623 | 0.039301 | 0.024454 | 0.029694 | 0.176856 | 0.146725 | 0.089956 | 0.089956 | 0.089956 | 0.089956 | 0 | 0.005891 | 0.297101 | 3,864 | 96 | 117 | 40.25 | 0.837261 | 0.186594 | 0 | 0.140351 | 0 | 0 | 0.113546 | 0.014276 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.210526 | 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 |
bde69648a867ed7ee2f26d98a93ed6729bfb1341 | 1,019 | py | Python | ds/lru.py | haandol/algorithm_in_python | fb83cba9c685e7f796f5f35fbf5176f86a35d035 | [
"MIT"
] | null | null | null | ds/lru.py | haandol/algorithm_in_python | fb83cba9c685e7f796f5f35fbf5176f86a35d035 | [
"MIT"
] | null | null | null | ds/lru.py | haandol/algorithm_in_python | fb83cba9c685e7f796f5f35fbf5176f86a35d035 | [
"MIT"
] | null | null | null | class LRUCache(object):
def __init__(self, size):
self.size = size
self.lru = {}
self.cache = {}
self.counter = 0
def put(self, key, value):
if key not in self.cache:
if len(self.lru) >= self.size:
k, _ = min(self.lru.iteritems(), key=lambda x... | 24.853659 | 68 | 0.512267 | 142 | 1,019 | 3.584507 | 0.288732 | 0.082515 | 0.047151 | 0.078585 | 0.208251 | 0.129666 | 0.129666 | 0.129666 | 0 | 0 | 0 | 0.020802 | 0.339549 | 1,019 | 40 | 69 | 25.475 | 0.735513 | 0 | 0 | 0.176471 | 0 | 0 | 0.015702 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 0 | null | null | 0 | 0 | null | null | 0.029412 | 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 |
bde6e2eff70397a9bf086b7ee3d6c7fc0d8fbf1f | 709 | py | Python | app/speech.py | liliangbin/webBot | b538dbbf1d05217e52c3713af2aff26bf8692a53 | [
"Apache-2.0"
] | 2 | 2022-03-21T20:43:02.000Z | 2022-03-21T21:59:16.000Z | app/speech.py | liliangbin/webBot | b538dbbf1d05217e52c3713af2aff26bf8692a53 | [
"Apache-2.0"
] | null | null | null | app/speech.py | liliangbin/webBot | b538dbbf1d05217e52c3713af2aff26bf8692a53 | [
"Apache-2.0"
] | 1 | 2022-03-21T20:43:04.000Z | 2022-03-21T20:43:04.000Z | # -*- coding: utf-8 -*-
from aip import AipSpeech
# 语音识别模块。。
# baidu app use my tel to login
class Speech(object):
def __init__(self):
self.APP_ID = '16250780'
self.APP_KEY = 'xcnrNwkhe61iYGoaZVRNpnma'
self.SECRET_KEY = 'rjHGH6zwDmGcx2lGisXYGilE2bnol7e9'
self.client = AipSpeech(sel... | 28.36 | 79 | 0.620592 | 90 | 709 | 4.722222 | 0.566667 | 0.065882 | 0.042353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050657 | 0.248237 | 709 | 24 | 80 | 29.541667 | 0.746717 | 0.084626 | 0 | 0 | 0 | 0 | 0.149068 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 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 |
bdf0e2adb7700944870d4d0383cad792a49b2818 | 1,373 | py | Python | notebooks/helpers.py | thomasfrederikhoeck/ml_tooling | dff07365bf61e03511e1df08c6932d32223ff591 | [
"MIT"
] | 7 | 2018-11-22T10:20:31.000Z | 2020-11-05T07:28:06.000Z | notebooks/helpers.py | andersbogsnes/ml_tooling | 5419a0db4f057b353e37ddee5d1feeb9e2a9680a | [
"MIT"
] | 830 | 2018-10-16T12:05:46.000Z | 2022-03-12T00:41:27.000Z | notebooks/helpers.py | thomasfrederikhoeck/ml_tooling | dff07365bf61e03511e1df08c6932d32223ff591 | [
"MIT"
] | 5 | 2018-10-16T10:17:20.000Z | 2020-09-07T07:24:41.000Z | import numpy as np
import re
title_map = {
"Mr.": "Mr",
"Miss.": "Miss",
"Mrs.": "Mrs",
"Master.": "Master",
"Dr.": "Other",
"Rev.": "Other",
"Major.": "Other",
"Col.": "Other",
"Mlle.": "Miss",
"Lady.": "Other",
"Jonkheer.": "Other",
"Ms.": "Miss",
"Capt.": "Other",... | 19.338028 | 65 | 0.575382 | 173 | 1,373 | 4.439306 | 0.416185 | 0.109375 | 0.140625 | 0.109375 | 0.302083 | 0.171875 | 0.088542 | 0 | 0 | 0 | 0 | 0.005613 | 0.221413 | 1,373 | 70 | 66 | 19.614286 | 0.712816 | 0 | 0 | 0.04 | 0 | 0 | 0.144938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.04 | 0.14 | 0.44 | 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 | 1 | 0 | 0 | 0 | 1 |
bdfc3aeb7e0f3db870bf01e2b3b3de797be47883 | 6,054 | py | Python | calculator.py | savrus/algory | c8e241c0d1024ef0fb198f1cde6e382f5576d489 | [
"MIT"
] | 2 | 2020-11-14T02:00:14.000Z | 2020-11-14T03:53:45.000Z | calculator.py | savrus/algory | c8e241c0d1024ef0fb198f1cde6e382f5576d489 | [
"MIT"
] | null | null | null | calculator.py | savrus/algory | c8e241c0d1024ef0fb198f1cde6e382f5576d489 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
all_tokens = dict([
["_", -1],
["!", 0], ["~", 0], ["^", 1], ["&", 1], ["|", 1],
["**", 2], ["*", 3], ["/", 3], ["%", 3], ["+", 4], ["-", 4],
["&&", 6], ["||", 6], ["==", 7], ["!=", 7], ["<", 7], [">", 7], ["<=", 7], [">=", 7],
["=", 8], ["(", 99], [")", 99]])
unary = ... | 42.335664 | 133 | 0.480839 | 734 | 6,054 | 3.914169 | 0.143052 | 0.064741 | 0.073094 | 0.100244 | 0.453881 | 0.400278 | 0.382179 | 0.354682 | 0.320571 | 0.27567 | 0 | 0.018771 | 0.357615 | 6,054 | 142 | 134 | 42.633803 | 0.719979 | 0.002643 | 0 | 0.165414 | 0 | 0 | 0.08597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007519 | null | null | 0.022556 | 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 |
da0207900114f2d5820e47a416e618614e19fd90 | 287 | py | Python | Mundo1/aula7c.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula7c.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula7c.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | ### crie um algoritmo que leia um numero e mostre seu dobro, triplo e raizq
num = int(input('Digite um valor: '))
dobro = num * 2
triplo = num * 3
raizq = num ** (1/2)
print('{} foi recebido, o dobro de num é {}, o triplo é {} e a raiz quadrada é {}'.format(num, dobro, triplo, raizq))
| 35.875 | 117 | 0.648084 | 51 | 287 | 3.647059 | 0.588235 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.205575 | 287 | 7 | 118 | 41 | 0.798246 | 0.247387 | 0 | 0 | 0 | 0 | 0.429245 | 0 | 0 | 0 | 0 | 0 | 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 | 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 |
da0671570ab644de2ce4f71e6570e6da551814ad | 651 | py | Python | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex09_pascal_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex09_pascal_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex09_pascal_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | # Beispielprogramm für das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
import pytest
from ch03_recursion.solutions.ex09_pascal_triangle import calc_pascal_with_action
@pytest.mark.parametrize("n, expected",
[(1, [1]),
(2, [1, 1]),
... | 32.55 | 81 | 0.473118 | 81 | 651 | 3.641975 | 0.506173 | 0.101695 | 0.142373 | 0.20339 | 0.142373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120907 | 0.390169 | 651 | 19 | 82 | 34.263158 | 0.622166 | 0.122888 | 0 | 0 | 0 | 0 | 0.0194 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 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 |
da0e4a602100412b21af8fbf1860fbe8253a3bb8 | 1,797 | py | Python | views/login.py | vug/personalwebapp | 6e36010c2e031fc206d8a0ae3972686cfbe792d4 | [
"MIT"
] | null | null | null | views/login.py | vug/personalwebapp | 6e36010c2e031fc206d8a0ae3972686cfbe792d4 | [
"MIT"
] | null | null | null | views/login.py | vug/personalwebapp | 6e36010c2e031fc206d8a0ae3972686cfbe792d4 | [
"MIT"
] | null | null | null | """
This Blueprint gives the ability of user logins, and login_required functionality using Flask-Login extension.
"""
from flask import Blueprint, render_template, request, flash, redirect, url_for
from flask_login import login_required, logout_user, login_user
from extensions import login_manager
from models import ... | 34.557692 | 118 | 0.672231 | 242 | 1,797 | 4.847107 | 0.355372 | 0.046888 | 0.02387 | 0.025575 | 0.046036 | 0.046036 | 0.046036 | 0 | 0 | 0 | 0 | 0 | 0.215359 | 1,797 | 51 | 119 | 35.235294 | 0.831915 | 0.220924 | 0 | 0 | 0 | 0 | 0.162909 | 0.016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.125 | 0 | 0.375 | 0.0625 | 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 |
da12ed4dce44f37fb9109124ddb2ec31965fdf82 | 1,075 | py | Python | aggcat/tests/test_parser.py | djedi/python-aggcat | a922ee4a7eabf3714e62cbeda73c8fece511f5ca | [
"Unlicense"
] | 1 | 2021-01-14T21:44:09.000Z | 2021-01-14T21:44:09.000Z | aggcat/tests/test_parser.py | djedi/python-aggcat | a922ee4a7eabf3714e62cbeda73c8fece511f5ca | [
"Unlicense"
] | null | null | null | aggcat/tests/test_parser.py | djedi/python-aggcat | a922ee4a7eabf3714e62cbeda73c8fece511f5ca | [
"Unlicense"
] | null | null | null | from __future__ import absolute_import
from ..parser import Objectify
class TestParser(object):
"""Test XML Objectification"""
@classmethod
def setup_class(self):
self.o = None
with open('aggcat/tests/data/sample_xml.xml', 'r') as f:
self.o = Objectify(f.read()).get_object()
... | 34.677419 | 71 | 0.615814 | 144 | 1,075 | 4.506944 | 0.388889 | 0.107858 | 0.05547 | 0.11094 | 0.134052 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017136 | 0.24 | 1,075 | 30 | 72 | 35.833333 | 0.777234 | 0.117209 | 0 | 0 | 0 | 0 | 0.103966 | 0.034298 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
da13aee326d0dee33c1fde4c4b4306afba13e058 | 13,762 | py | Python | quex/engine/analyzer/door_id_address_label.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/analyzer/door_id_address_label.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/analyzer/door_id_address_label.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | import quex.engine.state_machine.index as sm_index
from quex.engine.misc.tools import print_callstack, \
TypedSet
from quex.blackboard import Lng
from quex.constants import E_IncidenceIDs, \
E_StateIndices, \
... | 41.829787 | 158 | 0.64867 | 1,676 | 13,762 | 4.710024 | 0.192124 | 0.035723 | 0.015201 | 0.018242 | 0.192678 | 0.157841 | 0.135293 | 0.096276 | 0.06638 | 0.06638 | 0 | 0.003773 | 0.268202 | 13,762 | 328 | 159 | 41.957317 | 0.780062 | 0.257012 | 0 | 0.160494 | 0 | 0 | 0.028715 | 0.003775 | 0 | 0 | 0 | 0.003049 | 0.049383 | 0 | null | null | 0.006173 | 0.037037 | null | null | 0.04321 | 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 |
da14488595a813787d3c793667c53fa2a70a79c0 | 3,905 | py | Python | software/utils/drc_utils/python/atlas_pressure_monitor.py | liangfok/oh-distro | eeee1d832164adce667e56667dafc64a8d7b8cee | [
"BSD-3-Clause"
] | 92 | 2016-01-14T21:03:50.000Z | 2021-12-01T17:57:46.000Z | software/utils/drc_utils/python/atlas_pressure_monitor.py | liangfok/oh-distro | eeee1d832164adce667e56667dafc64a8d7b8cee | [
"BSD-3-Clause"
] | 62 | 2016-01-16T18:08:14.000Z | 2016-03-24T15:16:28.000Z | software/utils/drc_utils/python/atlas_pressure_monitor.py | liangfok/oh-distro | eeee1d832164adce667e56667dafc64a8d7b8cee | [
"BSD-3-Clause"
] | 41 | 2016-01-14T21:26:58.000Z | 2022-03-28T03:10:39.000Z | import lcm
import drc as lcmdrc
import atlas as lcmatlas
import numpy as np
import time
class AtlasPressureCommander(object):
def __init__(self,
desired_rpm=5000,
max_psi=2500,
min_psi=1500):
self.desired_rpm = desired_rpm
self.max_psi = max_psi
... | 32.815126 | 128 | 0.639437 | 478 | 3,905 | 4.887029 | 0.213389 | 0.056935 | 0.083904 | 0.053938 | 0.258562 | 0.201627 | 0.201627 | 0.127997 | 0.088185 | 0.053082 | 0 | 0.020308 | 0.26863 | 3,905 | 118 | 129 | 33.09322 | 0.797619 | 0 | 0 | 0.223404 | 0 | 0 | 0.051729 | 0.011524 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053191 | null | null | 0.021277 | 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 |
da1abd3e8d7b571905c0cc69f932023b2e0afa6f | 343 | py | Python | TEP/lista7/D.py | GuilhermeBraz/unb-workflow | 37d680a675a87cea2ff936badf94d757393870c3 | [
"MIT"
] | null | null | null | TEP/lista7/D.py | GuilhermeBraz/unb-workflow | 37d680a675a87cea2ff936badf94d757393870c3 | [
"MIT"
] | null | null | null | TEP/lista7/D.py | GuilhermeBraz/unb-workflow | 37d680a675a87cea2ff936badf94d757393870c3 | [
"MIT"
] | null | null | null | # You've got a rectangular parallelepiped with integer edge lengths. You know the areas of its three faces that have a common vertex.
# Your task is to find the sum of lengths of all 12 edges of this parallelepiped.
from math import sqrt
x, y, z = map(int, input().split())
perimeter = (4*sqrt((x*y)/z)) * (1+z/x+z/y)
p... | 42.875 | 133 | 0.723032 | 64 | 343 | 3.875 | 0.734375 | 0.040323 | 0.048387 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.166181 | 343 | 7 | 134 | 49 | 0.853147 | 0.61516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
da1be4849d3797ad0f78992528cd5d5ec2f019bc | 5,836 | py | Python | home/views.py | apoorvanand/tweet-search | 9dcb94a474c638b5a44fcc2249b5ce6579a209a4 | [
"MIT"
] | 51 | 2015-10-06T10:00:09.000Z | 2021-09-10T10:27:52.000Z | home/views.py | apoorvanand/tweet-search | 9dcb94a474c638b5a44fcc2249b5ce6579a209a4 | [
"MIT"
] | 20 | 2015-12-22T04:59:29.000Z | 2021-06-10T17:45:08.000Z | home/views.py | apoorvanand/tweet-search | 9dcb94a474c638b5a44fcc2249b5ce6579a209a4 | [
"MIT"
] | 22 | 2015-03-24T14:57:20.000Z | 2021-05-29T13:51:36.000Z | import datetime
import random
import csv
import json
# TODO: Fix * imports
from django.shortcuts import *
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth import logout as auth_logout
from social.apps.django_app.default.models import UserSocialAuth
from gnip_search... | 38.394737 | 179 | 0.635367 | 679 | 5,836 | 5.297496 | 0.250368 | 0.044482 | 0.054212 | 0.020017 | 0.355296 | 0.324715 | 0.280512 | 0.280512 | 0.207117 | 0.158743 | 0 | 0.005478 | 0.249315 | 5,836 | 151 | 180 | 38.649007 | 0.815567 | 0.097156 | 0 | 0.314815 | 0 | 0 | 0.104573 | 0.008489 | 0 | 0 | 0 | 0.013245 | 0 | 1 | 0.055556 | false | 0.009259 | 0.12963 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da212e2b84f0b265de7a43b8de7a52af29dec25b | 2,013 | py | Python | server/danesfield_server/loader.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 25 | 2018-12-19T08:45:13.000Z | 2022-03-27T14:20:42.000Z | server/danesfield_server/loader.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 10 | 2018-11-30T22:21:45.000Z | 2022-01-21T19:43:47.000Z | server/danesfield_server/loader.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 7 | 2018-12-03T21:42:53.000Z | 2021-09-07T17:09:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc. and Contributors
# Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0)
# See accompanying Copyright.txt and LICENSE files for details
##########... | 32.467742 | 104 | 0.653751 | 193 | 2,013 | 6.797927 | 0.518135 | 0.053354 | 0.01372 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003008 | 0.174367 | 2,013 | 61 | 105 | 33 | 0.786402 | 0.237457 | 0 | 0 | 0 | 0 | 0.131754 | 0.055514 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.064516 | false | 0 | 0.258065 | 0 | 0.354839 | 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 |
da2b9209c864f6a687e82c3390220243f3395547 | 3,268 | py | Python | scraper/urls.py | pekasen/DBoeS-Automatization | 7888013868bb99cff324dbf374d4931231da065d | [
"MIT"
] | null | null | null | scraper/urls.py | pekasen/DBoeS-Automatization | 7888013868bb99cff324dbf374d4931231da065d | [
"MIT"
] | 43 | 2020-09-28T14:53:56.000Z | 2021-11-30T16:09:00.000Z | scraper/urls.py | pekasen/DBoeS-Automatization | 7888013868bb99cff324dbf374d4931231da065d | [
"MIT"
] | 5 | 2021-03-30T11:47:16.000Z | 2021-05-18T20:13:56.000Z | """
List of German Wikipedia pages to extract parliamentarian information from.
Index points to table indices (running id) where to find information on the page.
"""
BASE = "https://de.wikipedia.org/wiki/"
parliaments = {
"sachsen": {
"name": "Sachsen",
"url": BASE + "Liste_der_Mitglieder_des_S%C3%A... | 33.346939 | 103 | 0.599755 | 333 | 3,268 | 5.501502 | 0.315315 | 0.068777 | 0.117904 | 0.14738 | 0.298035 | 0.298035 | 0.16048 | 0 | 0 | 0 | 0 | 0.027631 | 0.24694 | 3,268 | 97 | 104 | 33.690722 | 0.716782 | 0.048042 | 0 | 0.172043 | 0 | 0 | 0.584918 | 0.406703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da3344ba8b49b44ebd44d8f027a5bbf55e7d9fa1 | 846 | py | Python | ques3.py | shreya643/test_feb_19 | 2b44c88cf2eafb0fee40a616ef5b24c20f2b1eca | [
"Apache-2.0"
] | null | null | null | ques3.py | shreya643/test_feb_19 | 2b44c88cf2eafb0fee40a616ef5b24c20f2b1eca | [
"Apache-2.0"
] | null | null | null | ques3.py | shreya643/test_feb_19 | 2b44c88cf2eafb0fee40a616ef5b24c20f2b1eca | [
"Apache-2.0"
] | null | null | null | '''Q3. Create a Employee class and initialize it with first_name, last_name and salary. Also, it has a derived attribute called email, which is self generated when instance is created. Now, make methods to :
a. Display - It should display all information of the employee instance.'''
class Employee:
def __init__(s... | 33.84 | 207 | 0.687943 | 119 | 846 | 4.756303 | 0.411765 | 0.111307 | 0.091873 | 0.060071 | 0.074205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010116 | 0.182033 | 846 | 25 | 208 | 33.84 | 0.807803 | 0.327423 | 0 | 0 | 1 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.266667 | 0.266667 | 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 |
da3356948a7848ef1bb9484d802abb48707a994b | 3,560 | py | Python | rebase/api/predicter.py | rebaseenergy/rebase-sdk | 17febf030951524f01f21a3386b261e5a36eebf2 | [
"Apache-2.0"
] | null | null | null | rebase/api/predicter.py | rebaseenergy/rebase-sdk | 17febf030951524f01f21a3386b261e5a36eebf2 | [
"Apache-2.0"
] | null | null | null | rebase/api/predicter.py | rebaseenergy/rebase-sdk | 17febf030951524f01f21a3386b261e5a36eebf2 | [
"Apache-2.0"
] | null | null | null | import rebase as rb
import pickle
from datetime import datetime
import rebase.util.api_request as api_request
class Predicter():
@classmethod
def load_data(cls, pred, start_date, end_date):
site_config = rb.Site.get(pred.site_id)
return pred.load_data(site_config, start_date, end_date)
... | 27.384615 | 84 | 0.623876 | 421 | 3,560 | 5.142518 | 0.28266 | 0.045266 | 0.027714 | 0.036952 | 0.290993 | 0.205081 | 0.181062 | 0.109007 | 0.109007 | 0.109007 | 0 | 0.003937 | 0.286517 | 3,560 | 129 | 85 | 27.596899 | 0.848425 | 0.20309 | 0 | 0.194444 | 0 | 0 | 0.133774 | 0.020948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.013889 | 0.055556 | 0.027778 | 0.361111 | 0.041667 | 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 |
da33b41acff7f9fea0047bc424929e6515de5a55 | 2,009 | py | Python | setup.py | MrBurtyyy/yoti-python-sdk | 8a3147e8bd93d736c2ae0e29ffcb8878d979dd6c | [
"MIT"
] | null | null | null | setup.py | MrBurtyyy/yoti-python-sdk | 8a3147e8bd93d736c2ae0e29ffcb8878d979dd6c | [
"MIT"
] | null | null | null | setup.py | MrBurtyyy/yoti-python-sdk | 8a3147e8bd93d736c2ae0e29ffcb8878d979dd6c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from yoti_python_sdk import __version__
long_description = (
"This package contains the tools you need to quickly "
"integrate your Python back-end with Yoti, so that your "
"users can share their identity details with your "
"applica... | 34.050847 | 107 | 0.600299 | 226 | 2,009 | 5.256637 | 0.522124 | 0.159933 | 0.210438 | 0.131313 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041105 | 0.261324 | 2,009 | 58 | 108 | 34.637931 | 0.759434 | 0.010453 | 0 | 0.037037 | 0 | 0 | 0.599698 | 0.010574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 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 |
da386a8bd3a03a66fdf1006cd632b8c029997c14 | 552 | py | Python | src/djai/util/cli/_server_files/asgi.py | Django-AI/DjAI | 85e624de78726ac52f42580121e1a04efe2da2d7 | [
"MIT"
] | 3 | 2021-12-03T13:53:17.000Z | 2021-12-15T11:51:52.000Z | src/djai/util/cli/_server_files/asgi.py | Django-AI/DjAI | 85e624de78726ac52f42580121e1a04efe2da2d7 | [
"MIT"
] | null | null | null | src/djai/util/cli/_server_files/asgi.py | Django-AI/DjAI | 85e624de78726ac52f42580121e1a04efe2da2d7 | [
"MIT"
] | 1 | 2022-01-31T08:57:16.000Z | 2022-01-31T08:57:16.000Z | """
ASGI config for DjAI project.
It exposes the ASGI callable as a module-level variable named ``application``
For more information on this file, see
docs.djangoproject.com/en/dev/howto/deployment/asgi
"""
# ref: django-configurations.readthedocs.io
import os
# from django.core.asgi import get_asgi_application... | 21.230769 | 77 | 0.79529 | 75 | 552 | 5.733333 | 0.613333 | 0.048837 | 0.125581 | 0.07907 | 0.260465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106884 | 552 | 25 | 78 | 22.08 | 0.872211 | 0.530797 | 0 | 0 | 0 | 0 | 0.228 | 0.088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
da4733f73998047244a4fd51db7cf440addac599 | 1,838 | py | Python | app/grandchallenge/algorithms/migrations/0020_auto_20200214_0912.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/algorithms/migrations/0020_auto_20200214_0912.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/algorithms/migrations/0020_auto_20200214_0912.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-02-14 09:12
import django.contrib.postgres.fields.jsonb
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("cases", "0019_auto_20200120_0604"),
("algorithms", "0019_auto_20200210_0... | 30.633333 | 193 | 0.547334 | 172 | 1,838 | 5.732558 | 0.5 | 0.054767 | 0.076065 | 0.096349 | 0.258621 | 0.193712 | 0 | 0 | 0 | 0 | 0 | 0.039363 | 0.350381 | 1,838 | 59 | 194 | 31.152542 | 0.786432 | 0.024483 | 0 | 0.415094 | 1 | 0.018868 | 0.19933 | 0.025684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.113208 | 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 |
da505b9635bd16aba71410f3c8b3e25f950dad9e | 4,393 | py | Python | rf_optimizer.py | bGhorbani/linearized_neural_networks | a6d987d960988595ec1e5ec69e211535f1d4921b | [
"Apache-2.0"
] | null | null | null | rf_optimizer.py | bGhorbani/linearized_neural_networks | a6d987d960988595ec1e5ec69e211535f1d4921b | [
"Apache-2.0"
] | null | null | null | rf_optimizer.py | bGhorbani/linearized_neural_networks | a6d987d960988595ec1e5ec69e211535f1d4921b | [
"Apache-2.0"
] | null | null | null | """This file implements functionalities that allow fitting large random feature models with
conjugate gradient type algorithms. """
import tensorflow as tf
import numpy as np
import sys
sys.path.insert(0, './linear_algebra/')
from tensor_utils import AssignmentHelper
class RF_Optimizer(object):
def __init__(self, m... | 36.608333 | 109 | 0.546324 | 568 | 4,393 | 3.978873 | 0.246479 | 0.019912 | 0.035841 | 0.04646 | 0.200442 | 0.166814 | 0.157965 | 0.137611 | 0.119027 | 0.034513 | 0 | 0.023777 | 0.339404 | 4,393 | 120 | 110 | 36.608333 | 0.754997 | 0.020487 | 0 | 0.267327 | 0 | 0 | 0.004146 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0 | null | null | 0 | 0.039604 | 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 |
da54cd7e05d3081cb95e65fbe77b709043bd39de | 801 | py | Python | 2task1.py | inwk6312fall2018/programmingtask2-Adityapuni | a8951812ec6e890492d4d3786d37586263042081 | [
"MIT"
] | null | null | null | 2task1.py | inwk6312fall2018/programmingtask2-Adityapuni | a8951812ec6e890492d4d3786d37586263042081 | [
"MIT"
] | null | null | null | 2task1.py | inwk6312fall2018/programmingtask2-Adityapuni | a8951812ec6e890492d4d3786d37586263042081 | [
"MIT"
] | null | null | null | file=open('Crime.csv')
lineA=[]
lineB=[]
dict={} #take crime id as key and crime name as value
def histogram(s):
"""to check s in string"""
d={}
for c in s:
d[c]=1+d.get(c,0)
return d
"""make list of all words"""
for line in file:
line.strip()
for i in line.split(','):
lineA.append(i)
"""all crime ID"""
i... | 21.648649 | 77 | 0.632959 | 154 | 801 | 3.292208 | 0.38961 | 0.069034 | 0.023669 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032401 | 0.15231 | 801 | 36 | 78 | 22.25 | 0.714286 | 0.104869 | 0 | 0 | 0 | 0 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 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 |
da56352e192d0570c50c8b05482a1423daaef6c9 | 4,581 | py | Python | pages/quitPage.py | amalthomas-exe/Windown-Installer-GUI | 8db9b28e44c91e3bc95f74799f7f066bae24769b | [
"MIT"
] | null | null | null | pages/quitPage.py | amalthomas-exe/Windown-Installer-GUI | 8db9b28e44c91e3bc95f74799f7f066bae24769b | [
"MIT"
] | null | null | null | pages/quitPage.py | amalthomas-exe/Windown-Installer-GUI | 8db9b28e44c91e3bc95f74799f7f066bae24769b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'quitPage.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtG... | 40.539823 | 269 | 0.651604 | 582 | 4,581 | 5.041237 | 0.297251 | 0.131902 | 0.0409 | 0.059646 | 0.269257 | 0.169052 | 0.169052 | 0.169052 | 0.113838 | 0.079073 | 0 | 0.050654 | 0.198428 | 4,581 | 112 | 270 | 40.901786 | 0.748366 | 0.059594 | 0 | 0.237113 | 1 | 0.010309 | 0.206792 | 0.025122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.010309 | 0 | 0.041237 | 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 |
da5772cfa25cac2b1709a5dd825777a660e3ade8 | 392 | py | Python | examples/root_std_map.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | examples/root_std_map.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | examples/root_std_map.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | import rootpy.stl as stl
import ROOT
# Create a vector type
StrVector = stl.vector(stl.string)
# Instantiate
strvector = StrVector()
strvector.push_back("Hello")
# etc.
MapStrRoot = stl.map(stl.string, ROOT.TH1D)
MapStrRootPtr = stl.map(stl.string, "TH1D*")
StrHist = stl.pair(stl.string, "TH1*")
m = MapStrRootPtr()
a... | 23.058824 | 44 | 0.704082 | 60 | 392 | 4.583333 | 0.516667 | 0.130909 | 0.065455 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.127551 | 392 | 16 | 45 | 24.5 | 0.774854 | 0.094388 | 0 | 0 | 0 | 0 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 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 |
da5bf7f31aee8f89e12c1f8e14701f9d592b9829 | 755 | py | Python | setup.py | gabrielfern/automated-leda-tasks | b50bb14d118d64ad7361b5eb8bee9cf248bc57cf | [
"MIT"
] | 9 | 2017-07-26T19:10:12.000Z | 2018-04-25T02:27:09.000Z | setup.py | gabrielfern/automated-leda-tasks | b50bb14d118d64ad7361b5eb8bee9cf248bc57cf | [
"MIT"
] | 3 | 2017-08-02T23:32:28.000Z | 2018-10-13T00:08:54.000Z | setup.py | hericlesme/automated-leda-tasks | f0759d310636d281789f05bac7c9c624b75ab0e5 | [
"MIT"
] | 1 | 2018-05-24T23:55:31.000Z | 2018-05-24T23:55:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Gabriel Fernandes <gabrielfernndss@gmail.com>
# Héricles Emanuel <hericles.me@gmail.com>
try:
from setuptools import setup
except ImportError:
from os import system
system('pip install --user setuptools')
from setuptools import setup
setup(
name='au... | 25.166667 | 61 | 0.675497 | 84 | 755 | 6.047619 | 0.654762 | 0.047244 | 0.090551 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.178808 | 755 | 29 | 62 | 26.034483 | 0.809677 | 0.170861 | 0 | 0.095238 | 0 | 0 | 0.435691 | 0.040193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.190476 | 0 | 0.190476 | 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 |
da61bea17c89ae5314b117d3fde00610dcc12a6b | 558 | py | Python | hits_per_minute.py | nathan242/sysadmin-tools | 6ad3a9ac8752043d6a20d3ff9f8d63e506da4f44 | [
"MIT"
] | null | null | null | hits_per_minute.py | nathan242/sysadmin-tools | 6ad3a9ac8752043d6a20d3ff9f8d63e506da4f44 | [
"MIT"
] | null | null | null | hits_per_minute.py | nathan242/sysadmin-tools | 6ad3a9ac8752043d6a20d3ff9f8d63e506da4f44 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
import time
count = {}
total = 0
highest = 0
average = 0
log = open(sys.argv[1], "r")
for line in log:
datestring = line.split()[3].replace("[", "")[:-3]
if datestring in count:
count[datestring] += 1
else:
count[datestring] = 1
for i in sorted(co... | 17.4375 | 54 | 0.598566 | 80 | 558 | 4.175 | 0.4 | 0.071856 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018561 | 0.227599 | 558 | 31 | 55 | 18 | 0.756381 | 0.028674 | 0 | 0 | 0 | 0 | 0.055453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.173913 | 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 |
da6b1ac5aa7bc73d9fac0d7f5658c30c20e52dd5 | 7,974 | py | Python | convert_ejm.py | fediskhakov/ejm2evernote | 5ee6bd173f83900a695b3efba9f434ba0c4c9d4f | [
"MIT"
] | 1 | 2020-03-19T00:51:19.000Z | 2020-03-19T00:51:19.000Z | convert_ejm.py | fediskhakov/ejm2evernote | 5ee6bd173f83900a695b3efba9f434ba0c4c9d4f | [
"MIT"
] | null | null | null | convert_ejm.py | fediskhakov/ejm2evernote | 5ee6bd173f83900a695b3efba9f434ba0c4c9d4f | [
"MIT"
] | 2 | 2019-09-11T19:07:28.000Z | 2020-03-19T00:42:02.000Z | #! /usr/bin/env python
# By Fedor Iskhakov
# fedor.iskh.me
# The packages:
# geopy is needed for geo-locating the employers
# bleach is needed for cleaning up the content of ads for Evernote standard (ENML)
# https://dev.evernote.com/doc/articles/enml.php#prohibited
# https://pypi.python.org/pypi/bleach
# http://geop... | 39.475248 | 406 | 0.693002 | 1,193 | 7,974 | 4.575021 | 0.29254 | 0.046171 | 0.026383 | 0.019787 | 0.260169 | 0.20502 | 0.152254 | 0.118358 | 0.098021 | 0.080066 | 0 | 0.011663 | 0.118259 | 7,974 | 201 | 407 | 39.671642 | 0.764614 | 0.145347 | 0 | 0.121212 | 0 | 0.060606 | 0.328464 | 0.061827 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.068182 | 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 |
da6dc222304f3d9566d3a100f6a366d0dd3ef272 | 497 | py | Python | pdbattach/exchange/exchange.py | jschwinger233/pdbattach | 74d93b0d2e27722572097fb499d66c59b9b6751e | [
"MIT"
] | 15 | 2022-02-16T07:25:40.000Z | 2022-03-11T12:05:24.000Z | pdbattach/exchange/exchange.py | jschwinger233/pdb | 74d93b0d2e27722572097fb499d66c59b9b6751e | [
"MIT"
] | 3 | 2022-03-07T15:01:06.000Z | 2022-03-07T15:19:26.000Z | pdbattach/exchange/exchange.py | jschwinger233/pdb | 74d93b0d2e27722572097fb499d66c59b9b6751e | [
"MIT"
] | 1 | 2022-03-07T02:48:07.000Z | 2022-03-07T02:48:07.000Z | from ..utils import singleton
class Subscriber:
def recv(self, msg):
handle = getattr(self, "handle_msg_" + msg.__class__.__name__, None)
if handle:
handle(msg)
@singleton
class Exchange:
def __init__(self):
self._subs = set()
def attach(self, sub: Subscriber):
... | 19.88 | 76 | 0.597586 | 62 | 497 | 4.5 | 0.435484 | 0.114695 | 0.121864 | 0.150538 | 0.179211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289738 | 497 | 24 | 77 | 20.708333 | 0.790368 | 0 | 0 | 0 | 0 | 0 | 0.022133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.470588 | 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 |
da6f6b0572343c14c159a6dcab83777db1038463 | 2,264 | py | Python | xv_leak_tools/test_device/linux_device.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 219 | 2017-12-12T09:42:46.000Z | 2022-03-13T08:25:13.000Z | xv_leak_tools/test_device/linux_device.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 11 | 2017-12-14T08:14:51.000Z | 2021-08-09T18:37:45.000Z | xv_leak_tools/test_device/linux_device.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 45 | 2017-12-14T07:26:36.000Z | 2022-03-11T09:36:56.000Z | import platform
import signal
from xv_leak_tools.exception import XVEx
from xv_leak_tools.helpers import unused
from xv_leak_tools.log import L
from xv_leak_tools.test_device.desktop_device import DesktopDevice
from xv_leak_tools.test_device.connector_helper import ConnectorHelper
from xv_leak_tools.process import XVP... | 32.811594 | 100 | 0.663869 | 282 | 2,264 | 5.106383 | 0.365248 | 0.025 | 0.041667 | 0.0625 | 0.242361 | 0.242361 | 0.179167 | 0.118056 | 0.118056 | 0.118056 | 0 | 0.000579 | 0.237633 | 2,264 | 68 | 101 | 33.294118 | 0.83372 | 0.058304 | 0 | 0.137255 | 0 | 0 | 0.12688 | 0.010808 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.196078 | false | 0 | 0.156863 | 0.058824 | 0.490196 | 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 |
da7265f8ff479f45dd04c69e1007a9dcb556a944 | 1,019 | py | Python | localstack/services/cloudwatch/cloudwatch_listener.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | localstack/services/cloudwatch/cloudwatch_listener.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | localstack/services/cloudwatch/cloudwatch_listener.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | from moto.cloudwatch.models import cloudwatch_backends
from localstack.services.generic_proxy import ProxyListener
from localstack.utils.aws import aws_stack
# path for backdoor API to receive raw metrics
PATH_GET_RAW_METRICS = "/cloudwatch/metrics/raw"
class ProxyListenerCloudWatch(ProxyListener):
def forward_... | 32.870968 | 77 | 0.603533 | 113 | 1,019 | 5.300885 | 0.575221 | 0.050083 | 0.033389 | 0.056761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310108 | 1,019 | 30 | 78 | 33.966667 | 0.852063 | 0.122669 | 0 | 0 | 0 | 0 | 0.042697 | 0.025843 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da727a9ae1c5e07681c4b20fa374a97a6a65c56c | 3,442 | py | Python | 10 Random Forest/02 Random Forest.py | Free-Machine-Learning/Machine-Learning-Classifiers | 9e22e12dfc3da18d18478f13a1b96c47680ab497 | [
"MIT"
] | 10 | 2020-01-24T06:46:10.000Z | 2022-02-04T05:50:36.000Z | 10 Random Forest/02 Random Forest.py | Free-Machine-Learning/Machine-Learning-Classifiers | 9e22e12dfc3da18d18478f13a1b96c47680ab497 | [
"MIT"
] | null | null | null | 10 Random Forest/02 Random Forest.py | Free-Machine-Learning/Machine-Learning-Classifiers | 9e22e12dfc3da18d18478f13a1b96c47680ab497 | [
"MIT"
] | 9 | 2020-04-04T15:25:24.000Z | 2021-11-06T09:55:48.000Z | # Import the libararies
import math
import numpy as np
import pandas as pd
from datetime import datetime
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('seaborn-whitegrid')
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import classification_report
fr... | 35.484536 | 143 | 0.734457 | 597 | 3,442 | 3.988275 | 0.249581 | 0.058799 | 0.043679 | 0.037799 | 0.540529 | 0.51491 | 0.459051 | 0.431751 | 0.431751 | 0.418312 | 0 | 0.047835 | 0.101104 | 3,442 | 97 | 144 | 35.484536 | 0.721719 | 0.024404 | 0 | 0.276923 | 0 | 0 | 0.122838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138462 | null | null | 0.076923 | 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 |
da7cfa86bd8cbbb1e6c476bf3509badc8cd45819 | 423 | py | Python | users/urls.py | BalighMehrez/share-school-books | 06915b408d24f2daff69b9483a3ca4584de521f6 | [
"MIT"
] | null | null | null | users/urls.py | BalighMehrez/share-school-books | 06915b408d24f2daff69b9483a3ca4584de521f6 | [
"MIT"
] | null | null | null | users/urls.py | BalighMehrez/share-school-books | 06915b408d24f2daff69b9483a3ca4584de521f6 | [
"MIT"
] | null | null | null | from django.urls import path,include
from . import views
from bookshop.views import index
from django.contrib.auth import views as auth_views
urlpatterns = [
path('account/register',views.register,name='register'),
path('account/login',views.login,name='login'),
path('dashboard',index,name='dashboard'),
... | 32.538462 | 101 | 0.747045 | 57 | 423 | 5.473684 | 0.403509 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104019 | 423 | 12 | 102 | 35.25 | 0.823219 | 0 | 0 | 0 | 0 | 0 | 0.217494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
da8243b1235b7492a5da870b5fd28808894e3e96 | 2,112 | py | Python | v0.1/membrane_solvers/FCD-2D/tests/OsmoticProperties.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 3 | 2020-05-09T20:10:03.000Z | 2020-10-01T05:28:05.000Z | v0.1/membrane_solvers/FCD-2D/tests/OsmoticProperties.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-01T04:32:46.000Z | 2020-09-01T04:32:46.000Z | v0.1/membrane_solvers/FCD-2D/tests/OsmoticProperties.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-20T00:24:08.000Z | 2020-09-20T00:24:08.000Z | import math
import formulas as f
T = 273.15 + 25
P = 1.01325
pc_wt = 0.26
print(f'Percent weight {pc_wt} kg NaCl / kg Total')
m_NaCl = f.mNaCl(pc_wt)
print(f'Mass of NaCl {m_NaCl} g')
Molal_NaCl = f.Molality(m_NaCl)
# Molal_NaCl = 6
# m_NaCl = Molal_NaCl*58.44277
print(f'Molality {Molal_NaCl} mol/kg')
D = f.RelativeDi... | 34.622951 | 78 | 0.705492 | 441 | 2,112 | 3.15873 | 0.222222 | 0.111989 | 0.030151 | 0.028715 | 0.17229 | 0.108399 | 0.066045 | 0.066045 | 0.066045 | 0.066045 | 0 | 0.030551 | 0.132102 | 2,112 | 60 | 79 | 35.2 | 0.729405 | 0.022727 | 0 | 0 | 0 | 0 | 0.340777 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.448276 | 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 |
da8373f31e15b706181e55343f8986243cd6641f | 7,741 | py | Python | dao/stock_def.py | zheng-zy/ot_root | 920236b48458aeed72968bc7ec8e01a084b15951 | [
"Artistic-2.0"
] | null | null | null | dao/stock_def.py | zheng-zy/ot_root | 920236b48458aeed72968bc7ec8e01a084b15951 | [
"Artistic-2.0"
] | null | null | null | dao/stock_def.py | zheng-zy/ot_root | 920236b48458aeed72968bc7ec8e01a084b15951 | [
"Artistic-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" etf class
"""
# import math
import gevent
from pb import base_pb2
# import quotation_def_pb2
__author__ = 'qinjing'
# RF_MUST = 0
# RF_ALLOW = 1
# RF_FORBIDDEN = 2
# class StockInfo:
# # 股票代码, 数量
# __slots__ = ['code', 'md']
#
# def __init__(sel... | 32.52521 | 94 | 0.495672 | 983 | 7,741 | 3.7294 | 0.165819 | 0.061102 | 0.063011 | 0.036825 | 0.507911 | 0.476814 | 0.454446 | 0.420622 | 0.41162 | 0.373977 | 0 | 0.030242 | 0.359256 | 7,741 | 237 | 95 | 32.662447 | 0.708871 | 0.506395 | 0 | 0.37931 | 0 | 0 | 0.05256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.057471 | 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 |
da8cd3cb1c9db0027ba363faac72410702da6dfc | 403 | py | Python | tke_project/myapp/migrations/0003_gallery_title.py | moradia100/TKE-Website | ceaf7c72905e9c6ff10d86dc7171c08984f92638 | [
"MIT"
] | null | null | null | tke_project/myapp/migrations/0003_gallery_title.py | moradia100/TKE-Website | ceaf7c72905e9c6ff10d86dc7171c08984f92638 | [
"MIT"
] | null | null | null | tke_project/myapp/migrations/0003_gallery_title.py | moradia100/TKE-Website | ceaf7c72905e9c6ff10d86dc7171c08984f92638 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-15 23:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_gallery'),
]
operations = [
migrations.AddField(
model_name='gallery',
name='title',
field... | 20.15 | 47 | 0.578164 | 42 | 403 | 5.47619 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071685 | 0.307692 | 403 | 19 | 48 | 21.210526 | 0.752688 | 0.111663 | 0 | 0 | 1 | 0 | 0.081461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da8e0bb751eaea3e86fd8397ffc3fd45f606d968 | 1,171 | py | Python | router.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | 11 | 2019-01-03T04:05:31.000Z | 2021-09-22T23:47:05.000Z | router.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | 11 | 2020-10-28T08:02:06.000Z | 2022-03-18T08:02:51.000Z | router.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | null | null | null |
from controllers import mainController
import aiohttp_cors
def routes(app):
cors = aiohttp_cors.setup(app, defaults={
"*": aiohttp_cors.ResourceOptions(
allow_methods=("*"),
allow_credentials=True,
expose_headers=("*",),
allow_headers=("*"),
max_... | 45.038462 | 83 | 0.695986 | 148 | 1,171 | 5.297297 | 0.277027 | 0.098214 | 0.140306 | 0.22449 | 0.366071 | 0.366071 | 0.140306 | 0 | 0 | 0 | 0 | 0.004008 | 0.147737 | 1,171 | 25 | 84 | 46.84 | 0.781563 | 0 | 0 | 0 | 0 | 0 | 0.091453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 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 |
da8f5b1a8e8dc68a99873000adb27aae64e426e6 | 3,388 | py | Python | exp-05/MainWindow.py | SevdanurGENC/QT-Designer-Examples | c31f40dafbaca80143fb64a235e7dfac098b7ee6 | [
"MIT"
] | null | null | null | exp-05/MainWindow.py | SevdanurGENC/QT-Designer-Examples | c31f40dafbaca80143fb64a235e7dfac098b7ee6 | [
"MIT"
] | null | null | null | exp-05/MainWindow.py | SevdanurGENC/QT-Designer-Examples | c31f40dafbaca80143fb64a235e7dfac098b7ee6 | [
"MIT"
] | 1 | 2021-02-07T06:55:25.000Z | 2021-02-07T06:55:25.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | 49.823529 | 74 | 0.690083 | 377 | 3,388 | 6.061008 | 0.246684 | 0.049015 | 0.091904 | 0.043764 | 0.189497 | 0.164989 | 0 | 0 | 0 | 0 | 0 | 0.046435 | 0.192739 | 3,388 | 67 | 75 | 50.567164 | 0.789031 | 0.054309 | 0 | 0 | 1 | 0 | 0.083706 | 0 | 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 |
da8fb2073fd42f7146947b99cef6c22936103874 | 2,835 | py | Python | sandbox/src/COSFocusOutputs.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 5 | 2016-05-28T14:12:28.000Z | 2021-04-22T10:23:12.000Z | sandbox/src/COSFocusOutputs.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | null | null | null | sandbox/src/COSFocusOutputs.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 2 | 2015-07-13T10:04:10.000Z | 2021-04-22T10:23:23.000Z | #! /usr/bin/env python
'''
DESCRIPTION:
This short script pulls out COS data from a fits file
and outputs the data to two ascii files. The first file
contains two columns; pixels and counts, while the other
file has columns; wavelength and counts.
Dispersion solutions are given in the beginning of the script
and shoul... | 26.009174 | 61 | 0.591182 | 384 | 2,835 | 4.34375 | 0.434896 | 0.021583 | 0.021583 | 0.031175 | 0.21223 | 0.166667 | 0.128297 | 0.064748 | 0 | 0 | 0 | 0.086685 | 0.210582 | 2,835 | 108 | 62 | 26.25 | 0.658624 | 0.210582 | 0 | 0.166667 | 0 | 0 | 0.100724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145833 | null | null | 0.020833 | 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 |
da92e8baedfabc54a9a3950c07ec1ac157dc013d | 3,900 | py | Python | test/Test_LinkSearchBase.py | shift4869/PictureGathering | 2ef6b2e72a698e98dc0989231904cf1aaa99701e | [
"MIT"
] | null | null | null | test/Test_LinkSearchBase.py | shift4869/PictureGathering | 2ef6b2e72a698e98dc0989231904cf1aaa99701e | [
"MIT"
] | 2 | 2020-06-05T23:15:53.000Z | 2021-03-20T10:40:26.000Z | test/Test_LinkSearchBase.py | shift4869/PictureGathering | 2ef6b2e72a698e98dc0989231904cf1aaa99701e | [
"MIT"
] | 1 | 2019-05-01T07:14:06.000Z | 2019-05-01T07:14:06.000Z | # coding: utf-8
import sys
import unittest
from contextlib import ExitStack
from logging import WARNING, getLogger
from mock import MagicMock, PropertyMock, mock_open, patch
from PictureGathering import LinkSearchBase
logger = getLogger("root")
logger.setLevel(WARNING)
class TestLinkSearchBase(unitte... | 27.857143 | 77 | 0.553333 | 379 | 3,900 | 5.546174 | 0.266491 | 0.062797 | 0.073264 | 0.088963 | 0.510466 | 0.449096 | 0.427212 | 0.351094 | 0.308278 | 0.308278 | 0 | 0.01524 | 0.343846 | 3,900 | 139 | 78 | 28.057554 | 0.806174 | 0.099744 | 0 | 0.460674 | 0 | 0 | 0.042131 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 1 | 0.134831 | false | 0.067416 | 0.067416 | 0.022472 | 0.258427 | 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 |
16f13a919f5a22105539889f444225c8e6fbfa4e | 951 | py | Python | 22_Honors_class/52_Implement_A_Producer_Consumer_Queue/Producer.py | vtkrishn/EPI | 985cdbb3e78a643a75938bf2c0811f984238b7f7 | [
"MIT"
] | null | null | null | 22_Honors_class/52_Implement_A_Producer_Consumer_Queue/Producer.py | vtkrishn/EPI | 985cdbb3e78a643a75938bf2c0811f984238b7f7 | [
"MIT"
] | null | null | null | 22_Honors_class/52_Implement_A_Producer_Consumer_Queue/Producer.py | vtkrishn/EPI | 985cdbb3e78a643a75938bf2c0811f984238b7f7 | [
"MIT"
] | null | null | null | from threading import Thread,Condition
import random
import time
#Producer thread
condition = Condition()
MAX_NUM = 10
class Producer(Thread):
def set(self,q, l):
self.queue = q
self.lock = l
#produce
def run(self):
nums = range(5) #creates [0,1,2,3,4]
while True:
... | 27.970588 | 64 | 0.545741 | 110 | 951 | 4.7 | 0.527273 | 0.052224 | 0.042553 | 0.058027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01318 | 0.361725 | 951 | 34 | 65 | 27.970588 | 0.83855 | 0.180862 | 0 | 0 | 0 | 0 | 0.090791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.130435 | 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 |
16f1b517dcab38d7c54d00ca7c8353678e237552 | 2,904 | py | Python | psec/secrets/restore.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 10 | 2019-01-29T19:07:18.000Z | 2020-12-27T23:30:44.000Z | psec/secrets/restore.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 1 | 2020-08-09T08:47:41.000Z | 2020-08-12T04:32:02.000Z | psec/secrets/restore.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 3 | 2019-01-24T20:03:23.000Z | 2021-06-29T21:23:27.000Z | # -*- coding: utf-8 -*-
import argparse
import logging
import os
import tarfile
import textwrap
from cliff.command import Command
# TODO(dittrich): https://github.com/Mckinsey666/bullet/issues/2
# Workaround until bullet has Windows missing 'termios' fix.
try:
from bullet import Bullet
except ModuleNotFoundError:... | 36.3 | 79 | 0.562672 | 322 | 2,904 | 4.987578 | 0.512422 | 0.01868 | 0.017435 | 0.011208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.337121 | 2,904 | 79 | 80 | 36.759494 | 0.825974 | 0.148072 | 0 | 0 | 0 | 0 | 0.118651 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.032787 | false | 0.016393 | 0.131148 | 0 | 0.229508 | 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 |
16f2ff252207def74bc417d5ccf19c2543a6bae1 | 800 | py | Python | run-addon.py | chinedufn/landon | 6df895621e6dd518557b6d60d0920f70e50750bb | [
"MIT"
] | 117 | 2018-09-12T12:50:01.000Z | 2022-03-14T03:24:49.000Z | run-addon.py | chinedufn/blender-exporter | 00d8daa0a3f2c9261d0e2bdd386194f141f39887 | [
"MIT"
] | 22 | 2019-03-27T11:36:41.000Z | 2022-01-03T02:21:11.000Z | run-addon.py | chinedufn/blender-exporter | 00d8daa0a3f2c9261d0e2bdd386194f141f39887 | [
"MIT"
] | 10 | 2019-09-05T05:14:22.000Z | 2021-10-10T16:51:00.000Z | # A script to temporarily install and run the addon. Useful for running
# blender-mesh-to-json via blender CLI where you might be in a
# continuous integration environment that doesn't have the addon
# installed
#
# blender file.blend --python $(mesh2json)
# -> becomes ->
# blender file.blend --python /path/to/run-... | 34.782609 | 88 | 0.76875 | 124 | 800 | 4.903226 | 0.508065 | 0.065789 | 0.064145 | 0.083882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.14 | 800 | 22 | 89 | 36.363636 | 0.880814 | 0.6425 | 0 | 0 | 0 | 0 | 0.161172 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.