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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04f7290a77a03b67fec178b2b6cab432cbc35b6a | 436 | py | Python | molecule/default/tests/test_mailname.py | programmfabrik/role-postfix | 70198d6c7b26b6a826d8d50acbdacf9983295ccf | [
"Apache-2.0"
] | null | null | null | molecule/default/tests/test_mailname.py | programmfabrik/role-postfix | 70198d6c7b26b6a826d8d50acbdacf9983295ccf | [
"Apache-2.0"
] | 1 | 2019-03-13T11:47:17.000Z | 2019-03-13T11:47:17.000Z | molecule/default/tests/test_mailname.py | programmfabrik/role-postfix | 70198d6c7b26b6a826d8d50acbdacf9983295ccf | [
"Apache-2.0"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_etc_mailname(host):
f = host.file('/etc/mailname')
assert f.exists
if host.system_info.distribution == "debian":
a... | 25.647059 | 63 | 0.720183 | 55 | 436 | 5.527273 | 0.581818 | 0.069079 | 0.138158 | 0.177632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 436 | 16 | 64 | 27.25 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 0.052752 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
04fad97da87ece914ce07e607b83f17bbce513ad | 1,599 | py | Python | get_pos.py | zhuchong79/cok | 9d1d3a5ca8f2879443d715740a335658018c55db | [
"Apache-2.0"
] | null | null | null | get_pos.py | zhuchong79/cok | 9d1d3a5ca8f2879443d715740a335658018c55db | [
"Apache-2.0"
] | null | null | null | get_pos.py | zhuchong79/cok | 9d1d3a5ca8f2879443d715740a335658018c55db | [
"Apache-2.0"
] | null | null | null | import cv2
import aircv as ac
import os
from cok_tool import click,snap,back
# print circle_center_pos
def draw_circle(img, pos, circle_radius, color, line_width):
cv2.circle(img, pos, circle_radius, color, line_width)
cv2.imshow('objDetect', imsrc)
cv2.waitKey(0)
cv2.destroyAllWindows()
def hero(pic=... | 26.213115 | 77 | 0.618512 | 243 | 1,599 | 3.930041 | 0.316872 | 0.043979 | 0.026178 | 0.031414 | 0.517277 | 0.494241 | 0.446073 | 0.412565 | 0.412565 | 0.326702 | 0 | 0.089744 | 0.219512 | 1,599 | 61 | 77 | 26.213115 | 0.675481 | 0.201376 | 0 | 0.341463 | 0 | 0 | 0.10768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.04878 | 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 |
04fb3286a4756301cf23d3e6c4604bc1a9c040cf | 158 | py | Python | Python/_old/Euler048.py | sosheskaz/Project-Euler | afa1d4cba1da8443347712989a8feeb0910b35b6 | [
"BSD-2-Clause"
] | null | null | null | Python/_old/Euler048.py | sosheskaz/Project-Euler | afa1d4cba1da8443347712989a8feeb0910b35b6 | [
"BSD-2-Clause"
] | null | null | null | Python/_old/Euler048.py | sosheskaz/Project-Euler | afa1d4cba1da8443347712989a8feeb0910b35b6 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
def main():
s = 0
for j in range(1, 1001):
s += j ** j
print(str(s)[-10:])
if __name__ == '__main__':
main()
| 14.363636 | 28 | 0.487342 | 25 | 158 | 2.76 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.310127 | 158 | 10 | 29 | 15.8 | 0.550459 | 0.132911 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6bbc1af24490864cf0a72920fd9536909f26fde | 386 | py | Python | evan/migrations/0029_auto_20210308_2150.py | eillarra/evan | befe0f8daedd1b1f629097110d92e68534e43da1 | [
"MIT"
] | null | null | null | evan/migrations/0029_auto_20210308_2150.py | eillarra/evan | befe0f8daedd1b1f629097110d92e68534e43da1 | [
"MIT"
] | 20 | 2021-03-31T20:10:46.000Z | 2022-02-15T09:58:13.000Z | evan/migrations/0029_auto_20210308_2150.py | eillarra/evan | befe0f8daedd1b1f629097110d92e68534e43da1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-08 20:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("evan", "0028_auto_20210129_1454"),
]
operations = [
migrations.AlterField(
model_name="event",
name="full_name",
... | 20.315789 | 51 | 0.598446 | 43 | 386 | 5.232558 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123636 | 0.287565 | 386 | 18 | 52 | 21.444444 | 0.694545 | 0.11658 | 0 | 0 | 1 | 0 | 0.120944 | 0.067847 | 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 |
b6c1d3b1052041477daee7dc5048ee06ef9ad776 | 465 | py | Python | iopipe/contrib/logger/wrapper.py | iopipe/iopipe-python | 9bf0620bab732e82a9addcee250eabb9c0cc649f | [
"Apache-2.0"
] | 74 | 2016-08-18T14:26:50.000Z | 2021-11-21T10:58:32.000Z | iopipe/contrib/logger/wrapper.py | vemel/iopipe-python | 46c277f9447ddb00e544437ceaa7ba263a759c1d | [
"Apache-2.0"
] | 198 | 2016-08-18T18:52:43.000Z | 2021-05-09T10:01:14.000Z | iopipe/contrib/logger/wrapper.py | vemel/iopipe-python | 46c277f9447ddb00e544437ceaa7ba263a759c1d | [
"Apache-2.0"
] | 23 | 2016-08-04T23:22:21.000Z | 2020-01-20T13:54:27.000Z | import warnings
class LogWrapper(object):
def __init__(self, logger, context):
self.logger = logger
self.context = context
def __call__(self, key, value):
warnings.warn(
"Calling context.iopipe.log() has been deprecated, use "
"context.iopipe.metric() instead"
... | 25.833333 | 68 | 0.623656 | 51 | 465 | 5.45098 | 0.54902 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 465 | 17 | 69 | 27.352941 | 0.815249 | 0 | 0 | 0 | 0 | 0 | 0.227957 | 0.094624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 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 |
b6cbf5546e134537038ae0b388978e7396bee784 | 3,365 | py | Python | domoticz/plugin.py | lz129/ioplus-rpi | 1a0697171af7c30083c13c1938b49dbcfcc58a1f | [
"MIT"
] | 5 | 2021-03-22T02:47:36.000Z | 2021-09-01T22:23:55.000Z | domoticz/plugin.py | lz129/ioplus-rpi | 1a0697171af7c30083c13c1938b49dbcfcc58a1f | [
"MIT"
] | 7 | 2020-12-31T11:36:55.000Z | 2022-02-04T18:43:01.000Z | domoticz/plugin.py | lz129/ioplus-rpi | 1a0697171af7c30083c13c1938b49dbcfcc58a1f | [
"MIT"
] | 8 | 2020-12-29T18:13:16.000Z | 2021-09-01T22:24:12.000Z | # IOplus
#
# Author: Josef Pavlik, 2020
#
#
"""
<plugin key="IOplus" name="Raspberry IOplus" author="Josef Pavlik" version="0.1" externallink="">
<description>
IOplus 8 relay board on raspberry
</description>
<params>
<param field="Mode1" label="board number" width="75px" default="0"/>
<... | 27.581967 | 120 | 0.616642 | 412 | 3,365 | 4.968447 | 0.269417 | 0.05276 | 0.07914 | 0.01319 | 0.170982 | 0.085002 | 0.055691 | 0.055691 | 0 | 0 | 0 | 0.021671 | 0.245765 | 3,365 | 121 | 121 | 27.809917 | 0.78487 | 0.178306 | 0 | 0.180556 | 0 | 0 | 0.057455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.027778 | 0.055556 | 0.388889 | 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 |
b6cfc2b73f3e1ea2169e399cd8c2b9f75d4640ab | 396 | py | Python | payment/migrations/0002_float_fields_to_decimal.py | caioaraujo/bakery_payments_api_v2 | ade365bd2aa9561182be982286caa72923f36e13 | [
"MIT"
] | 4 | 2019-06-01T23:51:20.000Z | 2021-02-24T11:23:31.000Z | payment/migrations/0002_float_fields_to_decimal.py | caioaraujo/bakery_payments_api_v2 | ade365bd2aa9561182be982286caa72923f36e13 | [
"MIT"
] | 8 | 2020-06-13T23:10:46.000Z | 2022-02-28T13:58:02.000Z | payment/migrations/0002_float_fields_to_decimal.py | caioaraujo/bakery_payments_api_v2 | ade365bd2aa9561182be982286caa72923f36e13 | [
"MIT"
] | 1 | 2022-03-22T04:54:35.000Z | 2022-03-22T04:54:35.000Z | # Generated by Django 2.1.5 on 2019-02-02 14:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payment', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='payment',
name='value',
f... | 20.842105 | 71 | 0.60101 | 43 | 396 | 5.44186 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 0.282828 | 396 | 18 | 72 | 22 | 0.746479 | 0.113636 | 0 | 0 | 1 | 0 | 0.088825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6e31188d7567ebc05cfbe76fc8baceb190f4eb5 | 2,791 | py | Python | cantools/database/diagnostics/data.py | malneni/cantools | b9958577c0f616c28c7fa37a2d2b491478e065ba | [
"MIT"
] | 117 | 2021-10-30T15:40:09.000Z | 2022-03-31T12:21:47.000Z | cantools/database/diagnostics/data.py | malneni/cantools | b9958577c0f616c28c7fa37a2d2b491478e065ba | [
"MIT"
] | 63 | 2021-10-31T17:12:07.000Z | 2022-03-30T13:36:00.000Z | cantools/database/diagnostics/data.py | malneni/cantools | b9958577c0f616c28c7fa37a2d2b491478e065ba | [
"MIT"
] | 50 | 2021-10-19T04:41:37.000Z | 2022-03-25T07:55:30.000Z | # DID data.
from typing import Optional
from cantools.typechecking import ByteOrder, Choices
class Data(object):
"""A data data with position, size, unit and other information. A data
is part of a DID.
"""
def __init__(self,
name: str,
start: int,
... | 31.359551 | 78 | 0.533859 | 316 | 2,791 | 4.639241 | 0.28481 | 0.038199 | 0.042974 | 0.051842 | 0.132333 | 0.050477 | 0.050477 | 0.050477 | 0.050477 | 0 | 0 | 0.001111 | 0.35507 | 2,791 | 88 | 79 | 31.715909 | 0.813333 | 0.233966 | 0 | 0.038462 | 0 | 0 | 0.074408 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.057692 | false | 0 | 0.038462 | 0 | 0.153846 | 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 |
b6e706e9558d135f85b7c148311d6978cf3671ab | 2,558 | py | Python | Client/DataCollection/YahooFinance.py | thomasrenn37/StockAnalysis | 78f09a40df9756e083303bfff5a16ceaa2016f43 | [
"MIT"
] | null | null | null | Client/DataCollection/YahooFinance.py | thomasrenn37/StockAnalysis | 78f09a40df9756e083303bfff5a16ceaa2016f43 | [
"MIT"
] | null | null | null | Client/DataCollection/YahooFinance.py | thomasrenn37/StockAnalysis | 78f09a40df9756e083303bfff5a16ceaa2016f43 | [
"MIT"
] | null | null | null | """
Class that downloads historical data from
Yahoo and stores the requested values using
MongoDB.
"""
import requests
from enum import Enum
import datetime
import dataManagement
from dataManagement import DatabaseClient
class Frequency(Enum):
""" The frequency type for historical stock data. """
DAY = 0
... | 39.353846 | 135 | 0.668491 | 308 | 2,558 | 5.474026 | 0.467532 | 0.02669 | 0.02669 | 0.022539 | 0.03796 | 0.03796 | 0.03796 | 0 | 0 | 0 | 0 | 0.025091 | 0.25215 | 2,558 | 64 | 136 | 39.96875 | 0.856247 | 0.374511 | 0 | 0 | 0 | 0.032258 | 0.133423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.548387 | 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 |
b6ea4a363c8f3dd5af5f99abf7421b9b07202a44 | 314 | py | Python | test/test_bracelet.py | carterbox/jeweler | 9f78a2f5580db613f691061c72c4601a1699e76e | [
"BSD-3-Clause"
] | 3 | 2020-12-10T17:44:43.000Z | 2022-01-17T22:44:32.000Z | test/test_bracelet.py | carterbox/jeweler | 9f78a2f5580db613f691061c72c4601a1699e76e | [
"BSD-3-Clause"
] | null | null | null | test/test_bracelet.py | carterbox/jeweler | 9f78a2f5580db613f691061c72c4601a1699e76e | [
"BSD-3-Clause"
] | null | null | null | from jeweler.bracelet import bracelet_fc
def test_bracelet_fc():
help(bracelet_fc)
result = bracelet_fc(6, 3, [1, 2, 3])
print(type(result))
for i in result:
print(i)
print()
del result[2:]
for i in result:
print(i)
if __name__ == "__main__":
test_bracelet_fc()
| 17.444444 | 41 | 0.611465 | 46 | 314 | 3.847826 | 0.478261 | 0.282486 | 0.158192 | 0.135593 | 0.20339 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0.270701 | 314 | 17 | 42 | 18.470588 | 0.746725 | 0 | 0 | 0.307692 | 0 | 0 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0.307692 | 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 |
b6edf17942d0138adbae68ac89610fbc9ba81b06 | 735 | py | Python | git_code_debt/util/iter.py | boidolr/git-code-debt | 63b153571ca7a172f9a2d68732215ea4f72702c8 | [
"MIT"
] | 213 | 2017-05-27T10:49:05.000Z | 2022-03-30T14:57:07.000Z | git_code_debt/util/iter.py | boidolr/git-code-debt | 63b153571ca7a172f9a2d68732215ea4f72702c8 | [
"MIT"
] | 22 | 2017-08-15T02:15:11.000Z | 2021-06-28T09:04:39.000Z | git_code_debt/util/iter.py | Smirenost/git-code-debt | b31fd5332c58964782a7c0e4e8abf27d2163a611 | [
"MIT"
] | 17 | 2017-05-29T06:17:58.000Z | 2022-03-17T11:55:45.000Z | import itertools
from typing import Generator
from typing import Iterable
from typing import Tuple
from typing import TypeVar
T = TypeVar('T')
def chunk_iter(
iterable: Iterable[T],
n: int,
) -> Generator[Tuple[T, ...], None, None]:
"""Yields an iterator in chunks
For example you can do
... | 19.864865 | 52 | 0.589116 | 102 | 735 | 4.22549 | 0.470588 | 0.092807 | 0.148492 | 0.018561 | 0.185615 | 0.185615 | 0 | 0 | 0 | 0 | 0 | 0.029014 | 0.296599 | 735 | 36 | 53 | 20.416667 | 0.804642 | 0.326531 | 0 | 0.125 | 0 | 0 | 0.002252 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 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 |
b6f127b66702528750623460386a9a4b04f9aea7 | 803 | py | Python | bevim_project/bevim/migrations/0006_experimentfrequency.py | PI2-2016-2/BeViM-Web | 93e1cf29743bc1ff2f0c939e20c5c0141c724c39 | [
"BSD-2-Clause"
] | null | null | null | bevim_project/bevim/migrations/0006_experimentfrequency.py | PI2-2016-2/BeViM-Web | 93e1cf29743bc1ff2f0c939e20c5c0141c724c39 | [
"BSD-2-Clause"
] | 6 | 2016-09-10T15:51:40.000Z | 2016-11-19T18:28:05.000Z | bevim_project/bevim/migrations/0006_experimentfrequency.py | PI2-2016-2/BeViM-Web | 93e1cf29743bc1ff2f0c939e20c5c0141c724c39 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-12-09 02:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bevim', '0005_merge'),
]
operations = [
mig... | 30.884615 | 145 | 0.616438 | 81 | 803 | 5.975309 | 0.654321 | 0.049587 | 0.057851 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.247821 | 803 | 25 | 146 | 32.12 | 0.768212 | 0.083437 | 0 | 0 | 1 | 0 | 0.125512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
8e007fcaf227de7858857e3ffc9ceb7c62612ff1 | 3,015 | py | Python | dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ConvertPIL.py | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ConvertPIL.py | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | null | null | null | dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ConvertPIL.py | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | ############################################################################
#
# Program: GDCM (Grassroots DICOM). A DICOM library
#
# Copyright (c) 2006-2011 Mathieu Malaterre
# All rights reserved.
# See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
#
# This software is distributed ... | 33.876404 | 79 | 0.630846 | 369 | 3,015 | 5.03794 | 0.436314 | 0.043034 | 0.029586 | 0.022593 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029139 | 0.214594 | 3,015 | 88 | 80 | 34.261364 | 0.755912 | 0.208624 | 0 | 0.044444 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0 | 0.088889 | null | null | 0.066667 | 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 |
8e02b565cecb963b5b0eec67fea51044ec432019 | 1,397 | py | Python | day13/python/quajak/thirteen.py | razziel89/aoc-2021 | 0042891cfcecdc2b65ee32882bd04de80ecd7e1c | [
"MIT"
] | 11 | 2021-11-28T10:36:54.000Z | 2021-12-21T10:38:34.000Z | day13/python/quajak/thirteen.py | razziel89/aoc-2021 | 0042891cfcecdc2b65ee32882bd04de80ecd7e1c | [
"MIT"
] | 83 | 2021-11-22T17:02:05.000Z | 2022-01-29T10:27:31.000Z | day13/python/quajak/thirteen.py | razziel89/aoc-2021 | 0042891cfcecdc2b65ee32882bd04de80ecd7e1c | [
"MIT"
] | 19 | 2021-11-22T20:47:57.000Z | 2022-02-01T08:51:19.000Z | f = open("thirteen.txt", "r")
lines = [x.strip() for x in f.readlines()]
dots = []
for line in lines:
if line == "":
break
p = line.split(",")
dots.append((int(p[0]), int(p[1])))
folds = [line.split()[2] for line in lines if line.startswith("fold along ")]
fold = folds[0]
dir = fold[0]
line ... | 22.901639 | 77 | 0.466714 | 218 | 1,397 | 2.917431 | 0.183486 | 0.132075 | 0.163522 | 0.176101 | 0.589623 | 0.589623 | 0.506289 | 0.45912 | 0.45912 | 0.45912 | 0 | 0.015487 | 0.352899 | 1,397 | 61 | 78 | 22.901639 | 0.688053 | 0 | 0 | 0.568627 | 0 | 0 | 0.022175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.058824 | 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 |
8e0f73889e0733a2fb341f1ecc996ff87fa7b6e5 | 493 | py | Python | number_to_text/__init__.py | AOF-BudakHasan/number_to_text | 61ea52390946862c75f2a4a3ac0d3c49a792649f | [
"MIT"
] | null | null | null | number_to_text/__init__.py | AOF-BudakHasan/number_to_text | 61ea52390946862c75f2a4a3ac0d3c49a792649f | [
"MIT"
] | null | null | null | number_to_text/__init__.py | AOF-BudakHasan/number_to_text | 61ea52390946862c75f2a4a3ac0d3c49a792649f | [
"MIT"
] | 1 | 2019-11-07T22:33:22.000Z | 2019-11-07T22:33:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Helps you convert to numbers to text
===
Example usage with adapter (default: AdapterLangTr) and fraction_size (default: 2)
>>> from number_to_text import AdapterLangTr, NTT
>>> new_ntt = NTT(adapter=AdapterLangTr, fraction_size=2)
>>> new_ntt.nu... | 30.8125 | 86 | 0.709939 | 71 | 493 | 4.802817 | 0.549296 | 0.070381 | 0.105572 | 0.093842 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026634 | 0.162272 | 493 | 15 | 87 | 32.866667 | 0.786925 | 0.713996 | 0 | 0 | 0 | 0 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
8e14c9b1e2372992b2352e6e0c05d376f30ab391 | 15,486 | py | Python | tools/standalone/maketarget/maketarget-gui.py | teddydragoone/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | 2 | 2016-11-23T16:37:15.000Z | 2018-02-13T04:18:23.000Z | tools/standalone/maketarget/maketarget-gui.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | tools/standalone/maketarget/maketarget-gui.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
GUI for the commandline MakeTarget tool
**Project Name:** MakeHuman
**Product Home Page:** http://www.makehuman.org/
**Code Home Page:** http://code.google.com/p/makehuman/
**Authors:** Jonas Hauquier
**Copyright(c):** MakeHuman Team 2001-2012... | 39.505102 | 170 | 0.587176 | 1,655 | 15,486 | 5.442296 | 0.220544 | 0.027978 | 0.02487 | 0.033752 | 0.391695 | 0.322971 | 0.238925 | 0.221605 | 0.185855 | 0.153214 | 0 | 0.002501 | 0.302919 | 15,486 | 391 | 171 | 39.606138 | 0.831867 | 0.05011 | 0 | 0.381132 | 0 | 0 | 0.109526 | 0.005603 | 0 | 0 | 0 | 0.002558 | 0 | 0 | null | null | 0 | 0.015094 | null | null | 0.015094 | 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 |
8e210388a55fe42dcfa05f30888c0488b448798d | 438 | py | Python | BackTracking/palindrome.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 3 | 2021-06-28T12:04:19.000Z | 2021-09-07T07:23:41.000Z | BackTracking/palindrome.py | SupriyoDam/DS-450-python | 5dc21ce61b3279e9bd9d6ef3ad236667227ca283 | [
"MIT"
] | null | null | null | BackTracking/palindrome.py | SupriyoDam/DS-450-python | 5dc21ce61b3279e9bd9d6ef3ad236667227ca283 | [
"MIT"
] | 1 | 2021-06-28T15:42:55.000Z | 2021-06-28T15:42:55.000Z | class Solution:
# @param A : integer
# @return a list of strings
def fizzBuzz(self, n):
result = []
for i in range(1, n+1):
s = ''
if i %3 == 0:
s += 'Fizz'
if i % 5 == 0:
s += 'Buzz'
if s == ''... | 20.857143 | 32 | 0.3379 | 46 | 438 | 3.217391 | 0.608696 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.550228 | 438 | 20 | 33 | 21.9 | 0.720812 | 0.100457 | 0 | 0 | 0 | 0 | 0.020513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e226b508e0277560d07f9d990ac1fad50d27ce1 | 1,570 | py | Python | src/spoofbot/tag.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | src/spoofbot/tag.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | src/spoofbot/tag.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | class Tag:
_major: str
_minor: str
_separator: str
_factors: dict
def __init__(self, major: str, minor="", separator="", **kwargs):
self._major = major
self._minor = minor
self._separator = separator
self._factors = kwargs
@property
def major(self) -> str:
... | 24.53125 | 77 | 0.585987 | 179 | 1,570 | 4.849162 | 0.201117 | 0.062212 | 0.038018 | 0.058756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283439 | 1,570 | 63 | 78 | 24.920635 | 0.771556 | 0 | 0 | 0.081633 | 0 | 0 | 0.010191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0 | 0.081633 | 0.489796 | 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 |
8e230627a74962a85c6ff807264a0f4eaaf9c701 | 2,025 | py | Python | app/models/register_form.py | VitorBonella/ProjetoIntegrado1-2021-1 | 3193dd1967b1b8ea4fd3a46517e6de054da47d28 | [
"MIT"
] | 1 | 2021-09-02T16:24:12.000Z | 2021-09-02T16:24:12.000Z | app/models/register_form.py | VitorBonella/ProjetoIntegrado1-2021-1 | 3193dd1967b1b8ea4fd3a46517e6de054da47d28 | [
"MIT"
] | null | null | null | app/models/register_form.py | VitorBonella/ProjetoIntegrado1-2021-1 | 3193dd1967b1b8ea4fd3a46517e6de054da47d28 | [
"MIT"
] | null | null | null | from wtforms import validators
from wtforms.validators import DataRequired, ValidationError
from wtforms.fields.html5 import EmailField
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from flask import flash
from flask_wtf import FlaskForm
import phonenumbers
class RegisterForm(FlaskForm):
... | 43.085106 | 139 | 0.622222 | 200 | 2,025 | 6.275 | 0.39 | 0.129084 | 0.044622 | 0.057371 | 0.160956 | 0.130677 | 0.130677 | 0.084462 | 0 | 0 | 0 | 0.010582 | 0.253333 | 2,025 | 46 | 140 | 44.021739 | 0.819444 | 0.017778 | 0 | 0.179487 | 0 | 0 | 0.11038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.179487 | 0 | 0.435897 | 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 |
8e240ff6c9dd1c85a14a1a02b51ff330d0e05886 | 1,134 | py | Python | yatube/posts/migrations/0014_auto_20210712_1142.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | yatube/posts/migrations/0014_auto_20210712_1142.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | yatube/posts/migrations/0014_auto_20210712_1142.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.6 on 2021-07-12 11:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('posts', '0013_auto_20210... | 33.352941 | 114 | 0.61552 | 121 | 1,134 | 5.619835 | 0.595041 | 0.035294 | 0.041176 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036686 | 0.25485 | 1,134 | 33 | 115 | 34.363636 | 0.768047 | 0.039683 | 0 | 0.111111 | 1 | 0 | 0.100276 | 0.021159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e288010557014eb6535438b7e8c2f77374aa909 | 305 | py | Python | p2p/lib/python2.7/site-packages/celery/tests/security/case.py | sivaprakashniet/push_pull | 757be6fcdfdc8e73eeea5cb41a733d1916c7ae20 | [
"BSD-3-Clause"
] | null | null | null | p2p/lib/python2.7/site-packages/celery/tests/security/case.py | sivaprakashniet/push_pull | 757be6fcdfdc8e73eeea5cb41a733d1916c7ae20 | [
"BSD-3-Clause"
] | 1 | 2018-07-21T03:07:22.000Z | 2018-07-23T03:40:35.000Z | p2p/lib/python2.7/site-packages/celery/tests/security/case.py | sivaprakashniet/push_pull | 757be6fcdfdc8e73eeea5cb41a733d1916c7ae20 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from nose import SkipTest
from celery.tests.case import AppCase
class SecurityCase(AppCase):
def setup(self):
try:
from OpenSSL import crypto # noqa
except ImportError:
raise SkipTest('OpenSSL.crypto not installed')
| 20.333333 | 58 | 0.688525 | 35 | 305 | 5.857143 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259016 | 305 | 14 | 59 | 21.785714 | 0.90708 | 0.013115 | 0 | 0 | 0 | 0 | 0.093645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8e2b8e721356e2ed5023aced62a33c95141161f0 | 1,289 | py | Python | exporter/helpers.py | TaIos/code_generator | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | 2 | 2021-02-12T12:07:26.000Z | 2022-02-10T23:49:43.000Z | exporter/helpers.py | TaIos/exporter | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | 1 | 2021-02-10T21:43:04.000Z | 2021-02-14T19:09:59.000Z | exporter/helpers.py | TaIos/exporter | d01eca1cf3506e2b24fdf537de44d38d0f1dab0d | [
"MIT"
] | null | null | null | import random
import pathlib
import shutil
import string
import click
def rndstr(length):
"""Generate random string of given length which contains digits and lowercase ASCII characters"""
return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))
def ensure_tmp_dir(path):
... | 27.425532 | 108 | 0.65865 | 173 | 1,289 | 4.855491 | 0.514451 | 0.047619 | 0.030952 | 0.033333 | 0.083333 | 0.083333 | 0.083333 | 0 | 0 | 0 | 0 | 0.016244 | 0.235842 | 1,289 | 46 | 109 | 28.021739 | 0.836548 | 0.282389 | 0 | 0 | 1 | 0 | 0.179458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e314ced73089eb3eac14d70e95b8eee8900cb26 | 17,062 | py | Python | csiadmin/views.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | csiadmin/views.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | csiadmin/views.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.models import User
from django.contrib.auth import authenticate,login,logout
from django.contrib import messages
from django.views.decorators.csrf import csrf_exempt
import pandas as pd
from .models import Assignedtask,Use... | 32.375712 | 382 | 0.549818 | 2,100 | 17,062 | 4.401905 | 0.143333 | 0.054522 | 0.086326 | 0.057118 | 0.537646 | 0.502813 | 0.465058 | 0.401341 | 0.366941 | 0.342817 | 0 | 0.017085 | 0.289884 | 17,062 | 527 | 383 | 32.375712 | 0.745873 | 0.021041 | 0 | 0.515152 | 0 | 0 | 0.165008 | 0.00929 | 0.006993 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.067599 | 0.030303 | 0.006993 | 0.207459 | 0.006993 | 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 |
8e338ddaeaec1a7147737fcdb94cfba9b39627b4 | 2,827 | py | Python | tests/unit/test_extractor.py | cognitedata/python-extractor-utils-rest | 69f533c212b0753ca1338c95b780eb267d431a27 | [
"Apache-2.0"
] | 1 | 2022-01-11T12:57:02.000Z | 2022-01-11T12:57:02.000Z | tests/unit/test_extractor.py | cognitedata/python-extractor-utils-rest | 69f533c212b0753ca1338c95b780eb267d431a27 | [
"Apache-2.0"
] | 3 | 2022-01-06T15:00:13.000Z | 2022-03-03T08:56:06.000Z | tests/unit/test_extractor.py | cognitedata/python-extractor-utils-rest | 69f533c212b0753ca1338c95b780eb267d431a27 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Cognite AS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.78481 | 120 | 0.628582 | 362 | 2,827 | 4.690608 | 0.331492 | 0.123675 | 0.077739 | 0.132509 | 0.385748 | 0.372203 | 0.303298 | 0.21967 | 0.21967 | 0.116608 | 0 | 0.026702 | 0.205164 | 2,827 | 78 | 121 | 36.24359 | 0.728972 | 0.197029 | 0 | 0.088889 | 0 | 0.022222 | 0.159645 | 0 | 0 | 0 | 0 | 0 | 0.355556 | 1 | 0.288889 | false | 0 | 0.044444 | 0 | 0.422222 | 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 |
8e35717195f9f431de8c5fbf52456a1dcf0cfcd2 | 2,545 | py | Python | tools/argparser.py | lukaskln/Interpretability-of-Disentangled-Representations-by-Explanatory-Methods | 3829f4522e42c779593d8e9b6fb01d0f1ffc0676 | [
"BSD-3-Clause"
] | 1 | 2021-07-19T07:14:47.000Z | 2021-07-19T07:14:47.000Z | tools/argparser.py | lukaskln/Interpretability-of-Disentangled-Representations-by-Explanatory-Methods | 3829f4522e42c779593d8e9b6fb01d0f1ffc0676 | [
"BSD-3-Clause"
] | null | null | null | tools/argparser.py | lukaskln/Interpretability-of-Disentangled-Representations-by-Explanatory-Methods | 3829f4522e42c779593d8e9b6fb01d0f1ffc0676 | [
"BSD-3-Clause"
] | null | null | null | import argparse
from argparse import ArgumentParser
import os
"""
This file contains the declaration of the argument parser
"""
# Needed to parse booleans from command line properly
def str2bool(v):
if isinstance(v, bool):
return v
if v.lower() in ('yes', 'true', 't', 'y', '1'):
return True
... | 43.87931 | 107 | 0.656189 | 320 | 2,545 | 5.065625 | 0.390625 | 0.122147 | 0.230722 | 0.069093 | 0.290561 | 0.10549 | 0.088834 | 0.088834 | 0 | 0 | 0 | 0.017192 | 0.17721 | 2,545 | 57 | 108 | 44.649123 | 0.756925 | 0.060118 | 0 | 0 | 0 | 0 | 0.210345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
8e3a3e1cbf2349fa0cf41d3d62ace0587348f0a8 | 468 | py | Python | abriocli/util/checker.py | Kianenigma/abrio-cli | 070b337053f48e38074c5859ad39eacceba8d08d | [
"MIT"
] | 2 | 2016-10-26T13:15:09.000Z | 2016-11-13T03:19:34.000Z | abriocli/util/checker.py | Abrioengine/abrio-cli | 070b337053f48e38074c5859ad39eacceba8d08d | [
"MIT"
] | null | null | null | abriocli/util/checker.py | Abrioengine/abrio-cli | 070b337053f48e38074c5859ad39eacceba8d08d | [
"MIT"
] | null | null | null | import os
from ..conf.conf import config
from .file import load_project_config
def ensure_component_exists(name) :
config = load_project_config()
components = [ component['name'] for component in config['components'] ]
if name in components :
return True
return False
def ensure_abrio_root() :... | 26 | 76 | 0.688034 | 63 | 468 | 4.952381 | 0.396825 | 0.070513 | 0.108974 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 468 | 17 | 77 | 27.529412 | 0.852459 | 0 | 0 | 0.266667 | 0 | 0 | 0.061966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8e3af379399fc0cba62c219acbc4b1894be54730 | 960 | py | Python | DFS/197.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | DFS/197.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | DFS/197.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | """197 · Permutation Index"""
class Solution:
"""
@param A: An array of integers
@return: A long integer
"""
def permutationIndex(self, A):
# write your code here
permutation = 1
result = 0
for i in range(len(A) - 2, -1, -1):
smaller = 0
for j... | 30.967742 | 86 | 0.5875 | 142 | 960 | 4 | 0.605634 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032532 | 0.263542 | 960 | 30 | 87 | 32 | 0.765205 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e41ad0d64d591c15184b47b7a784b04e4c7a9af | 1,695 | py | Python | scripts/viewer.py | rionehome/tf-pose-estimation | 9d54692dc05662628d71efb6ee05033b901a9869 | [
"Apache-2.0"
] | 1 | 2020-08-05T09:35:14.000Z | 2020-08-05T09:35:14.000Z | scripts/viewer.py | rionehome/tf-pose-estimation | 9d54692dc05662628d71efb6ee05033b901a9869 | [
"Apache-2.0"
] | null | null | null | scripts/viewer.py | rionehome/tf-pose-estimation | 9d54692dc05662628d71efb6ee05033b901a9869 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: UTF-8
import copy
import cv2
from cv_bridge import CvBridge, CvBridgeError
import rospy
from sensor_msgs.msg import Image
from tfpose_ros.msg import *
class Visualize:
def __init__(self):
rospy.init_node("visualize")
rospy.Subscriber("/tfpose_ros/input", Image, sel... | 33.235294 | 114 | 0.561652 | 219 | 1,695 | 4.13242 | 0.378995 | 0.049724 | 0.077348 | 0.083978 | 0.088398 | 0.088398 | 0.088398 | 0.088398 | 0.088398 | 0.088398 | 0 | 0.053494 | 0.316224 | 1,695 | 50 | 115 | 33.9 | 0.727351 | 0.042478 | 0 | 0 | 0 | 0 | 0.048178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.162162 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e42165cb17421836bf21d4db78cb2b797350f29 | 3,929 | py | Python | app/sendmail.py | geokrety/GeoKrety-mole-name | ca97f27a9b2bfc3e362a2cd9bc5b87f391f9b443 | [
"MIT"
] | null | null | null | app/sendmail.py | geokrety/GeoKrety-mole-name | ca97f27a9b2bfc3e362a2cd9bc5b87f391f9b443 | [
"MIT"
] | 137 | 2017-11-05T13:14:29.000Z | 2022-03-28T00:01:03.000Z | app/sendmail.py | geokrety/GeoKrety-mole-name | ca97f27a9b2bfc3e362a2cd9bc5b87f391f9b443 | [
"MIT"
] | null | null | null | import os
import smtplib
import sys
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from flask import render_template, url_for
from ihih import IHIH
class send:
def __init__(self):
self.config = conf = IHIH(
(
os.path.join(os.path.dirname(_... | 38.90099 | 173 | 0.604225 | 491 | 3,929 | 4.755601 | 0.299389 | 0.059957 | 0.072377 | 0.053961 | 0.325482 | 0.25439 | 0.21242 | 0.21242 | 0.163597 | 0.126767 | 0 | 0.004834 | 0.262917 | 3,929 | 100 | 174 | 39.29 | 0.80145 | 0.122423 | 0 | 0.243243 | 0 | 0.027027 | 0.39936 | 0.035195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.054054 | 0.094595 | 0 | 0.216216 | 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 |
8e48d9f0362c80c7fb6773888653914093d64f8e | 9,164 | py | Python | carrier/classification/src/modeling/modeling.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | carrier/classification/src/modeling/modeling.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | carrier/classification/src/modeling/modeling.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | # %%
import shap
from alibi.explainers import ALE, plot_ale
import alibi
from sklearn.inspection import permutation_importance
from pandas.core.arrays.sparse import dtype
from xgboost import data
import set_base_path
import time
import datetime
from imblearn.over_sampling import SMOTE
from sklearn.pipeline import Pipe... | 36.07874 | 189 | 0.678197 | 1,345 | 9,164 | 4.275093 | 0.206691 | 0.040696 | 0.021913 | 0.013391 | 0.325565 | 0.230261 | 0.174261 | 0.155652 | 0.10887 | 0.097391 | 0 | 0.025353 | 0.203732 | 9,164 | 253 | 190 | 36.221344 | 0.762642 | 0.115779 | 0 | 0.028571 | 0 | 0 | 0.108701 | 0.016076 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.221429 | null | null | 0.078571 | 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 |
f3e82ff4168f904f7c98198659b89276c72ef9b0 | 3,472 | py | Python | dae_RelayBoard/dae_RelayBoard.py | petersbingham/dae-py-relay-controller | e826e042e3149ccc1e9beb1de5ca6323d9a83235 | [
"Unlicense"
] | 13 | 2016-05-25T01:56:57.000Z | 2021-08-22T06:49:14.000Z | dae_RelayBoard/dae_RelayBoard.py | petersbingham/dae-py-relay-controller | e826e042e3149ccc1e9beb1de5ca6323d9a83235 | [
"Unlicense"
] | 8 | 2017-10-20T13:16:44.000Z | 2021-03-31T23:30:22.000Z | dae_RelayBoard/dae_RelayBoard.py | petersbingham/dae-py-relay-controller | e826e042e3149ccc1e9beb1de5ca6323d9a83235 | [
"Unlicense"
] | 10 | 2017-02-23T10:28:33.000Z | 2021-12-22T07:12:42.000Z | #-----------------------------------------------------------------------------
#Copyright (c) Peter Bingham (petersbingham@hotmail.co.uk)
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software ... | 35.070707 | 114 | 0.637673 | 383 | 3,472 | 5.634465 | 0.396867 | 0.108434 | 0.047266 | 0.067192 | 0.197405 | 0.13531 | 0.067655 | 0.067655 | 0.067655 | 0.067655 | 0 | 0.007407 | 0.22235 | 3,472 | 98 | 115 | 35.428571 | 0.791852 | 0.358295 | 0 | 0.22 | 0 | 0 | 0.034017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.02 | 0.42 | 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 |
f3eca456287e86dea2af902c8ca79fba6adebd0d | 2,105 | py | Python | testing_workshop/motorsports/vehicles.py | georgetown-analytics/XBUS-501-01.Software-Engineering-for-Data | 278156bb9ad0f6477e4f0db5b6d96a991ff5a51c | [
"MIT"
] | 32 | 2016-12-23T08:35:18.000Z | 2022-02-11T04:30:15.000Z | testing_workshop/motorsports/vehicles.py | georgetown-analytics/XBUS-501-01.Software-Engineering-for-Data | 278156bb9ad0f6477e4f0db5b6d96a991ff5a51c | [
"MIT"
] | 3 | 2019-05-11T18:34:04.000Z | 2019-05-21T17:23:10.000Z | testing_workshop/motorsports/vehicles.py | georgetown-analytics/XBUS-501-01.Software-Engineering-for-Data | 278156bb9ad0f6477e4f0db5b6d96a991ff5a51c | [
"MIT"
] | 49 | 2016-09-15T17:10:48.000Z | 2021-07-12T13:18:51.000Z | # motorsports.vehicles
# description
#
# Author: Allen Leis <allen.leis@georgetown.edu>
# Created: Fri Sep 11 23:22:32 2015 -0400
#
# Copyright (C) 2015 georgetown.edu
# For license information, see LICENSE.txt
#
# ID: vehicles.py [] allen.leis@georgetown.edu $
"""
A module to supply building related classes
"""
#... | 22.880435 | 74 | 0.446081 | 184 | 2,105 | 4.907609 | 0.402174 | 0.039867 | 0.036545 | 0.056478 | 0.277962 | 0.248062 | 0.143965 | 0.143965 | 0.143965 | 0.143965 | 0 | 0.012571 | 0.244181 | 2,105 | 91 | 75 | 23.131868 | 0.554997 | 0.23848 | 0 | 0.28125 | 0 | 0 | 0.067134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0.03125 | 0.46875 | 0.09375 | 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 |
f3ee05f45c39063841e0ab09102ba76f1f70f0a6 | 3,535 | py | Python | tiddlyweb/web/challengers/cookie_form.py | angeluseve/tiddlyweb | d24a45d48faa2b014e1c1598ec176c4c1c98fb07 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T15:26:17.000Z | 2016-05-09T15:26:17.000Z | tiddlyweb/web/challengers/cookie_form.py | angeluseve/tiddlyweb | d24a45d48faa2b014e1c1598ec176c4c1c98fb07 | [
"BSD-3-Clause"
] | null | null | null | tiddlyweb/web/challengers/cookie_form.py | angeluseve/tiddlyweb | d24a45d48faa2b014e1c1598ec176c4c1c98fb07 | [
"BSD-3-Clause"
] | null | null | null | """
Present or validate a form for getting a username
and password.
"""
import Cookie
import logging
from tiddlyweb.web.challengers import ChallengerInterface
from tiddlyweb.web.util import server_host_url
from tiddlyweb.model.user import User
from tiddlyweb.store import NoUserError
from sha import sha
class Challe... | 37.210526 | 108 | 0.61867 | 416 | 3,535 | 5.149038 | 0.290865 | 0.060691 | 0.074697 | 0.037348 | 0.186741 | 0.104575 | 0.104575 | 0.072829 | 0.072829 | 0 | 0 | 0.008891 | 0.268175 | 3,535 | 94 | 109 | 37.606383 | 0.819095 | 0.194908 | 0 | 0.125 | 0 | 0 | 0.129859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.145833 | 0.145833 | 0 | 0.375 | 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 |
f3f28199fd9386cc057d22867ecef7854c1c863f | 3,342 | py | Python | devito/targets/common/passes.py | vkrGitHub/devito | 7e6db29f3ef7dc826d86a4f41de9f4eb1274676b | [
"MIT"
] | null | null | null | devito/targets/common/passes.py | vkrGitHub/devito | 7e6db29f3ef7dc826d86a4f41de9f4eb1274676b | [
"MIT"
] | null | null | null | devito/targets/common/passes.py | vkrGitHub/devito | 7e6db29f3ef7dc826d86a4f41de9f4eb1274676b | [
"MIT"
] | null | null | null | """Misc Target passes."""
import cgen
from devito.ir.iet import (Iteration, List, Prodder, FindSymbols, FindNodes,
Transformer, filter_iterations, retrieve_iteration_tree)
from devito.logger import perf_adv
from devito.targets.common.blocking import BlockDimension
from devito.targets.common... | 34.8125 | 87 | 0.643028 | 415 | 3,342 | 5.031325 | 0.438554 | 0.023946 | 0.024904 | 0.021552 | 0.05364 | 0.032567 | 0.032567 | 0.032567 | 0 | 0 | 0 | 0.000813 | 0.263615 | 3,342 | 95 | 88 | 35.178947 | 0.847623 | 0.224417 | 0 | 0.169811 | 0 | 0 | 0.136636 | 0.036756 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.075472 | false | 0.09434 | 0.09434 | 0 | 0.245283 | 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 |
f3f836c19bd0bb425bca7d62bb63078e7331a9b2 | 2,824 | py | Python | model_zoo/official/cv/resnet/export.py | dongkcs/mindspore | cd7df6dbf463ff3128e9181e9d0c779cecb81320 | [
"Apache-2.0"
] | 2 | 2020-11-23T13:46:37.000Z | 2020-12-20T02:02:38.000Z | model_zoo/official/cv/resnet/export.py | dongkcs/mindspore | cd7df6dbf463ff3128e9181e9d0c779cecb81320 | [
"Apache-2.0"
] | 1 | 2020-12-29T06:46:38.000Z | 2020-12-29T06:46:38.000Z | model_zoo/official/cv/resnet/export.py | dongkcs/mindspore | cd7df6dbf463ff3128e9181e9d0c779cecb81320 | [
"Apache-2.0"
] | 1 | 2021-01-01T08:35:01.000Z | 2021-01-01T08:35:01.000Z | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 47.066667 | 120 | 0.636686 | 340 | 2,824 | 5.123529 | 0.4 | 0.032147 | 0.032147 | 0.04822 | 0.23938 | 0.204937 | 0.097015 | 0.078071 | 0.078071 | 0.078071 | 0 | 0.038208 | 0.249292 | 2,824 | 59 | 121 | 47.864407 | 0.783491 | 0.260269 | 0 | 0.058824 | 0 | 0 | 0.1794 | 0.064797 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0 | false | 0 | 0.352941 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f3fb28172142a73de83914961498c5962496cc84 | 374 | py | Python | lists/list_prob2.py | joiellantero/Python-Tutorial-Exercises | abe9f345d5f7f8a863417c586127087ed2c67891 | [
"MIT"
] | null | null | null | lists/list_prob2.py | joiellantero/Python-Tutorial-Exercises | abe9f345d5f7f8a863417c586127087ed2c67891 | [
"MIT"
] | null | null | null | lists/list_prob2.py | joiellantero/Python-Tutorial-Exercises | abe9f345d5f7f8a863417c586127087ed2c67891 | [
"MIT"
] | null | null | null | # obtain the comma-separated value from the user
csv = input("Enter string: ")
# split the string by the coma and save it in a list
csv = csv.split(',')
# displaying each of the variables
# csv[0] is the name
# csv[1] is the age
# csv[2] is the phone number
print('\n{0:=<30}\nName: {1:30}\nAge: {2:30}\nContact: {3:30... | 34 | 114 | 0.639037 | 72 | 374 | 3.319444 | 0.569444 | 0.062762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066879 | 0.160428 | 374 | 11 | 114 | 34 | 0.694268 | 0.518717 | 0 | 0 | 0 | 0.333333 | 0.465517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d07856aea69926eccd31b8c972f6d537dcefa7b | 2,370 | py | Python | cpTool/customModules/readmeFIleGenerator.py | jspw/cp-tool | 00ce74b48e651b9ee78d30a69c02fb4750c61f5c | [
"MIT"
] | 28 | 2021-01-13T10:06:58.000Z | 2022-01-30T17:56:44.000Z | cpTool/customModules/readmeFIleGenerator.py | jspw/cp-tool | 00ce74b48e651b9ee78d30a69c02fb4750c61f5c | [
"MIT"
] | 2 | 2021-01-14T12:47:44.000Z | 2021-01-29T12:44:23.000Z | cpTool/customModules/readmeFIleGenerator.py | jspw/cp-tool | 00ce74b48e651b9ee78d30a69c02fb4750c61f5c | [
"MIT"
] | 2 | 2021-06-20T06:32:23.000Z | 2022-02-02T08:07:06.000Z | import cpTool.customModules.htmlGenerator as html
def generateMarkdownFile(file,repo_name,user_info,repos):
print("Creating markdown file .......")
file.write("# " + repo_name + "\n\n")
file.write("## Intro\n\n")
file.write(">\tAutomated by [cp-tool](https://github.com/jspw/cp-tool)\n\n")
file... | 40.169492 | 284 | 0.621941 | 309 | 2,370 | 4.676375 | 0.323625 | 0.137024 | 0.131488 | 0.0609 | 0.164014 | 0.164014 | 0.062284 | 0 | 0 | 0 | 0 | 0.001501 | 0.15654 | 2,370 | 59 | 285 | 40.169492 | 0.721361 | 0 | 0 | 0.055556 | 1 | 0.111111 | 0.389287 | 0.054407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.083333 | 0.027778 | 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 |
6d0fc386e2ec9bb1a3bc1601c1f81a745b165bdc | 1,657 | py | Python | benchmark.py | chintak/fast-hair-segmentation | 51a6994818bfe57620c45143c4eee363c517ad3d | [
"Apache-2.0"
] | 21 | 2017-12-13T07:34:32.000Z | 2021-06-01T19:50:31.000Z | benchmark.py | chintak/fast-hair-segmentation | 51a6994818bfe57620c45143c4eee363c517ad3d | [
"Apache-2.0"
] | 1 | 2017-12-07T08:33:32.000Z | 2017-12-07T08:33:32.000Z | benchmark.py | chintak/fast-hair-segmentation | 51a6994818bfe57620c45143c4eee363c517ad3d | [
"Apache-2.0"
] | 2 | 2018-06-05T07:35:34.000Z | 2018-07-13T18:03:05.000Z | import argparse
import configs
import os
from glob import glob
import data
from visualize import viz_files, viz_png_file
from skimage.io import imsave
import xgboost as xgb
from utils import get_model_feature_type
from utils import hr_name_to_models, hr_predict_single
files_to_show = [
'Adolfo_Aguilar_Zinser_000... | 29.070175 | 80 | 0.641521 | 226 | 1,657 | 4.438053 | 0.420354 | 0.087737 | 0.01994 | 0.031904 | 0.055833 | 0.055833 | 0 | 0 | 0 | 0 | 0 | 0.014162 | 0.232951 | 1,657 | 56 | 81 | 29.589286 | 0.77498 | 0 | 0 | 0 | 0 | 0 | 0.123114 | 0.035003 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.022222 | 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 |
6d1f02ee4b52bfb6f908706fedfc682fab092d98 | 1,048 | py | Python | jishaku/models.py | jab416171/jishaku | 31dd6e473dc9101ec15b8b92568bc339e836d994 | [
"MIT"
] | null | null | null | jishaku/models.py | jab416171/jishaku | 31dd6e473dc9101ec15b8b92568bc339e836d994 | [
"MIT"
] | null | null | null | jishaku/models.py | jab416171/jishaku | 31dd6e473dc9101ec15b8b92568bc339e836d994 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
jishaku.models
~~~~~~~~~~~~~~
Functions for modifying or interfacing with discord.py models.
:copyright: (c) 2021 Devon (Gorialis) R
:license: MIT, see LICENSE for more details.
"""
import copy
import typing
import discord
from jishaku.types import ContextT
async def copy_context_wi... | 23.818182 | 82 | 0.688931 | 137 | 1,048 | 5.20438 | 0.532847 | 0.070126 | 0.025245 | 0.033661 | 0.053296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.198473 | 1,048 | 43 | 83 | 24.372093 | 0.842857 | 0.321565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d23c4760c85e8531f42ad99d1d4ae9ba7a0cc53 | 286 | py | Python | code/django18/django18/newsletter/models.py | dvl/celerytalk | 312de04ea24bb073357684a3a35cfd782b2b7aae | [
"MIT"
] | null | null | null | code/django18/django18/newsletter/models.py | dvl/celerytalk | 312de04ea24bb073357684a3a35cfd782b2b7aae | [
"MIT"
] | null | null | null | code/django18/django18/newsletter/models.py | dvl/celerytalk | 312de04ea24bb073357684a3a35cfd782b2b7aae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Contato(models.Model):
nome = models.CharField(max_length=90)
email = models.EmailField()
def __unicode__(self):
return '{0} <{1}>'.format(self.nome, self.email)
| 20.428571 | 56 | 0.678322 | 37 | 286 | 4.972973 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021368 | 0.181818 | 286 | 13 | 57 | 22 | 0.764957 | 0.073427 | 0 | 0 | 0 | 0 | 0.034221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6d245352c550441091f29da2314fc598e9db1198 | 26,006 | py | Python | lda/results_processor.py | guidodizi/NLPEconomyIndicator | ee7e9dd06fa3f9277ad81128010ba093087b0ed8 | [
"Apache-2.0"
] | 1 | 2019-04-10T14:05:32.000Z | 2019-04-10T14:05:32.000Z | lda/results_processor.py | guidodizi/NLPEconomyIndicator | ee7e9dd06fa3f9277ad81128010ba093087b0ed8 | [
"Apache-2.0"
] | null | null | null | lda/results_processor.py | guidodizi/NLPEconomyIndicator | ee7e9dd06fa3f9277ad81128010ba093087b0ed8 | [
"Apache-2.0"
] | 1 | 2018-05-26T04:45:55.000Z | 2018-05-26T04:45:55.000Z | # -*- coding: utf-8 -*-
import csv
import json
import os
import sys
import numpy as np
import pandas as pd
import news_preprocessor
import guidedlda
import Stemmer
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn.datasets import fetch_20newsgroups
from sklearn.decomposition im... | 90.61324 | 6,297 | 0.633854 | 2,993 | 26,006 | 5.391914 | 0.376879 | 0.008179 | 0.009543 | 0.011526 | 0.692713 | 0.629198 | 0.61947 | 0.612901 | 0.601314 | 0.586814 | 0 | 0.0076 | 0.129739 | 26,006 | 287 | 6,298 | 90.61324 | 0.705461 | 0.107552 | 0 | 0.157233 | 0 | 0 | 0.435249 | 0.003027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044025 | false | 0 | 0.125786 | 0 | 0.194969 | 0.062893 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d254502c2320c693f12f4c89b355b9e06e71d29 | 7,893 | py | Python | sdk/python/pulumi_aws_native/appstream/get_stack.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/appstream/get_stack.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/appstream/get_stack.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 42.664865 | 301 | 0.700494 | 905 | 7,893 | 5.771271 | 0.143646 | 0.078116 | 0.039824 | 0.07467 | 0.298487 | 0.173272 | 0.12847 | 0.039441 | 0 | 0 | 0 | 0.000159 | 0.201444 | 7,893 | 184 | 302 | 42.896739 | 0.828494 | 0.038008 | 0 | 0.10596 | 1 | 0 | 0.178198 | 0.040746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112583 | false | 0 | 0.039735 | 0.086093 | 0.264901 | 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 |
6d29e7eccf96b3fdbb8b835cdf593c74d65a8142 | 1,885 | py | Python | cloudify_cli/commands/permissions.py | Ilanad/cloudify-cli | ab6dda78a92905d99872dea268951c8689848d43 | [
"Apache-2.0"
] | null | null | null | cloudify_cli/commands/permissions.py | Ilanad/cloudify-cli | ab6dda78a92905d99872dea268951c8689848d43 | [
"Apache-2.0"
] | null | null | null | cloudify_cli/commands/permissions.py | Ilanad/cloudify-cli | ab6dda78a92905d99872dea268951c8689848d43 | [
"Apache-2.0"
] | null | null | null | import click
from ..cli import cfy
from ..table import print_data
@cfy.group(name='permissions')
@cfy.options.common_options
@cfy.assert_manager_active()
def permissions():
pass
@permissions.command(name='list')
@click.option('--role', help='List permissions for this role')
@cfy.options.common_options
@cfy.pas... | 33.070175 | 74 | 0.701857 | 224 | 1,885 | 5.84375 | 0.241071 | 0.032086 | 0.048892 | 0.070283 | 0.533231 | 0.487395 | 0.487395 | 0.487395 | 0.417112 | 0.3178 | 0 | 0 | 0.15756 | 1,885 | 56 | 75 | 33.660714 | 0.824307 | 0.040849 | 0 | 0.318182 | 0 | 0 | 0.275112 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.090909 | false | 0.159091 | 0.068182 | 0 | 0.159091 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6d2bb695db785d96af2d316bbf4988bb650153e5 | 6,330 | py | Python | test_patricia.py | fnl/patricia-trie | a47f0b7698fe60a6a3a657ca899fbd89d17c0c09 | [
"Apache-2.0"
] | 26 | 2015-02-07T10:13:07.000Z | 2021-08-24T13:49:44.000Z | test_patricia.py | fnl/patricia-trie | a47f0b7698fe60a6a3a657ca899fbd89d17c0c09 | [
"Apache-2.0"
] | 2 | 2015-05-13T15:53:06.000Z | 2015-12-14T09:07:30.000Z | test_patricia.py | fnl/patricia-trie | a47f0b7698fe60a6a3a657ca899fbd89d17c0c09 | [
"Apache-2.0"
] | 7 | 2016-03-18T13:32:31.000Z | 2020-08-21T08:24:40.000Z | """
.. py:module:: test_patricia
:synopsis: Test cases for the PATRICIA trie implementation.
.. moduleauthor:: Florian Leitner <florian.leitner@gmail.com>
.. License: Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.html)
"""
from unittest import main, TestCase
from patricia import trie, _NonTerminal
... | 35.363128 | 97 | 0.54139 | 797 | 6,330 | 4.25596 | 0.158093 | 0.11763 | 0.047759 | 0.017689 | 0.350531 | 0.245578 | 0.1648 | 0.105248 | 0.069575 | 0.040094 | 0 | 0.022174 | 0.266193 | 6,330 | 178 | 98 | 35.561798 | 0.708073 | 0.036967 | 0 | 0.226667 | 0 | 0 | 0.090013 | 0 | 0 | 0 | 0 | 0 | 0.426667 | 1 | 0.12 | false | 0 | 0.013333 | 0 | 0.14 | 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 |
6d338edfdd44ee0c7fb10b4e2415a66408624cbc | 44,295 | py | Python | ed_geometry.py | ptbrown1729/exact_diag | 16c284aea88dd1fb795e89b8e877d564045b8269 | [
"MIT"
] | 2 | 2020-06-23T09:30:43.000Z | 2021-03-17T14:19:07.000Z | ed_geometry.py | ptbrown1729/exact_diag | 16c284aea88dd1fb795e89b8e877d564045b8269 | [
"MIT"
] | 1 | 2020-09-04T08:08:42.000Z | 2020-09-04T08:08:42.000Z | ed_geometry.py | ptbrown1729/exact_diag | 16c284aea88dd1fb795e89b8e877d564045b8269 | [
"MIT"
] | null | null | null | """
Tools for describing geometries of small clusters and clusters arranged on regular lattices
"""
import numpy as np
import os
# TODO: need to modify get reciprocal vectors for case when matrix inverse fails
class Geometry():
_round_decimals = 14
def __init__(self, xlocs=None, ylocs=None, adjace... | 44.206587 | 143 | 0.600203 | 5,852 | 44,295 | 4.384142 | 0.111073 | 0.013642 | 0.009822 | 0.008731 | 0.427113 | 0.358863 | 0.302619 | 0.244036 | 0.20276 | 0.187597 | 0 | 0.028374 | 0.293464 | 44,295 | 1,001 | 144 | 44.250749 | 0.791411 | 0.321346 | 0 | 0.2827 | 0 | 0 | 0.049813 | 0.001719 | 0 | 0 | 0 | 0.011988 | 0 | 1 | 0.07384 | false | 0 | 0.010549 | 0.004219 | 0.204641 | 0.00211 | 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 |
6d382ff2448d054e38ce554137f34df3a8a59f70 | 296 | py | Python | netui-gtk/netmanage/dhcpc.py | samyabdellatif/netgtkui | e9205060b53fc705fe2bd1a0dbd14fea872d5390 | [
"MIT"
] | null | null | null | netui-gtk/netmanage/dhcpc.py | samyabdellatif/netgtkui | e9205060b53fc705fe2bd1a0dbd14fea872d5390 | [
"MIT"
] | null | null | null | netui-gtk/netmanage/dhcpc.py | samyabdellatif/netgtkui | e9205060b53fc705fe2bd1a0dbd14fea872d5390 | [
"MIT"
] | null | null | null | import subprocess
def lease(ifacename):
shellcommand = r"sudo dhcpcd "+ifacename
process = subprocess.run(shellcommand, shell=True, check=True, stdout=subprocess.PIPE, universal_newlines=True)
output = list(filter(None,map(str.strip, process.stdout.split("\n"))))
return output
| 32.888889 | 115 | 0.739865 | 37 | 296 | 5.891892 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 296 | 8 | 116 | 37 | 0.851563 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
6d38d778ec529ea85fccfa3f92f31dfe88268c57 | 546 | py | Python | airmozilla/manage/tests/views/test_taskstester.py | mozilla/airmozilla | fa6acbbbacc1e22553457807bcea7ce7a9ef6fe3 | [
"BSD-3-Clause"
] | 115 | 2015-01-06T18:45:39.000Z | 2022-02-07T10:56:49.000Z | airmozilla/manage/tests/views/test_taskstester.py | april/airmozilla | ee357f5396cdcb50147c72ff1e81a610f9cb292c | [
"BSD-3-Clause"
] | 321 | 2015-01-02T15:19:25.000Z | 2018-07-05T14:58:50.000Z | airmozilla/manage/tests/views/test_taskstester.py | april/airmozilla | ee357f5396cdcb50147c72ff1e81a610f9cb292c | [
"BSD-3-Clause"
] | 101 | 2015-01-13T17:59:15.000Z | 2020-12-15T02:58:38.000Z | from nose.tools import eq_, ok_
from django.core.urlresolvers import reverse
from .base import ManageTestCase
class TestTasksTester(ManageTestCase):
def test_dashboard(self):
url = reverse('manage:tasks_tester')
response = self.client.get(url)
eq_(response.status_code, 200)
res... | 26 | 62 | 0.679487 | 67 | 546 | 5.373134 | 0.552239 | 0.1 | 0.15 | 0.166667 | 0.261111 | 0.261111 | 0.261111 | 0.261111 | 0.261111 | 0.261111 | 0 | 0.028037 | 0.216117 | 546 | 20 | 63 | 27.3 | 0.813084 | 0 | 0 | 0.307692 | 0 | 0 | 0.091575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 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 |
6d3db912bdf6b5f2bfb861275a2fd37a261fcfa7 | 815 | py | Python | bonding_curve_simulator/bonding_curve_simulator.py | stonkify/bonding-curve-simulator | a64181c0e0af608f61e155119b47a8f5c6dc9145 | [
"MIT"
] | null | null | null | bonding_curve_simulator/bonding_curve_simulator.py | stonkify/bonding-curve-simulator | a64181c0e0af608f61e155119b47a8f5c6dc9145 | [
"MIT"
] | null | null | null | bonding_curve_simulator/bonding_curve_simulator.py | stonkify/bonding-curve-simulator | a64181c0e0af608f61e155119b47a8f5c6dc9145 | [
"MIT"
] | null | null | null | """Main module."""
from bonding_curve_simulator.globals import BaseModel
from bonding_curve_simulator.market.exchange.exchange import Exchange
from bonding_curve_simulator.market.exchange.types import ExchangeConfig
from bonding_curve_simulator.mesa.simulation_model import (
SimulationModel,
SimulationModelCon... | 27.166667 | 73 | 0.808589 | 81 | 815 | 7.901235 | 0.308642 | 0.06875 | 0.1 | 0.15625 | 0.121875 | 0.121875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122699 | 815 | 29 | 74 | 28.103448 | 0.895105 | 0.014724 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6d3eabf29d7637c24403b75d9e24c5d46dd56981 | 1,820 | py | Python | test/integration/test_command.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/integration/test_command.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/integration/test_command.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | import os.path
import re
from six import assertRegex
from . import *
class TestCommand(IntegrationTest):
def __init__(self, *args, **kwargs):
IntegrationTest.__init__(
self, os.path.join(examples_dir, '07_commands'), *args, **kwargs
)
def test_hello(self):
assertRegex(sel... | 32.5 | 76 | 0.603846 | 218 | 1,820 | 4.885321 | 0.215596 | 0.059155 | 0.084507 | 0.092958 | 0.655399 | 0.428169 | 0.330516 | 0.189671 | 0.189671 | 0.078873 | 0 | 0.001443 | 0.238462 | 1,820 | 55 | 77 | 33.090909 | 0.766955 | 0 | 0 | 0.097561 | 0 | 0 | 0.133516 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 1 | 0.268293 | false | 0 | 0.097561 | 0 | 0.414634 | 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 |
6d44626f0ace8304ef02167402c51fd239809e19 | 4,173 | py | Python | eve/io/mongo/flask_pymongo.py | checkaayush/eve | 8031797458d6edd17f85df92b340be368313f12d | [
"BSD-3-Clause"
] | 1 | 2019-07-04T08:19:05.000Z | 2019-07-04T08:19:05.000Z | eve/io/mongo/flask_pymongo.py | checkaayush/eve | 8031797458d6edd17f85df92b340be368313f12d | [
"BSD-3-Clause"
] | null | null | null | eve/io/mongo/flask_pymongo.py | checkaayush/eve | 8031797458d6edd17f85df92b340be368313f12d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
eve.io.mongo.flask_pymongo
~~~~~~~~~~~~~~~~~~~
Flask extension to create Mongo connection and database based on
configuration.
:copyright: (c) 2017 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
from flask import current_app
from pymongo impor... | 35.666667 | 81 | 0.593098 | 458 | 4,173 | 5.275109 | 0.266376 | 0.085679 | 0.054636 | 0.04553 | 0.300497 | 0.222682 | 0.17053 | 0.17053 | 0.17053 | 0.17053 | 0 | 0.004383 | 0.28924 | 4,173 | 116 | 82 | 35.974138 | 0.810182 | 0.160316 | 0 | 0.117647 | 0 | 0 | 0.15791 | 0.014328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0.073529 | 0.029412 | 0.014706 | 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 |
6d4bbd4e7d96a072da28f07a2d5e0f2d425ceae9 | 2,324 | py | Python | ajaximage/fields.py | daimon99/django2-ajaximage | ec60c9427dfb4b571493d07847bf931d9e040ddf | [
"MIT"
] | 3 | 2020-03-28T15:19:35.000Z | 2020-08-18T10:39:59.000Z | ajaximage/fields.py | daimon99/django2-ajaximage | ec60c9427dfb4b571493d07847bf931d9e040ddf | [
"MIT"
] | null | null | null | ajaximage/fields.py | daimon99/django2-ajaximage | ec60c9427dfb4b571493d07847bf931d9e040ddf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import django.contrib.admin.helpers
from ajaximage.utils import format_image
from django.contrib.admin.utils import display_for_field
from django.core.files.storage import default_storage
from django.db.models import Field
from django.db.models.fields.files import FileDescriptor, ImageFieldFile
... | 34.686567 | 92 | 0.696213 | 304 | 2,324 | 5.131579 | 0.345395 | 0.034615 | 0.048077 | 0.032051 | 0.034615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007714 | 0.219019 | 2,324 | 66 | 93 | 35.212121 | 0.851791 | 0.090792 | 0 | 0 | 0 | 0 | 0.047031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.170213 | 0.021277 | 0.510638 | 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 |
6d4f2d8699e52e18d8b8d71c38e53cfb716b984c | 1,638 | py | Python | apps/labs/module06/MqttPubClientTestApp.py | GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON | da231c97bacbc3aa26096b1f94ee9201466678ca | [
"CNRI-Python"
] | null | null | null | apps/labs/module06/MqttPubClientTestApp.py | GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON | da231c97bacbc3aa26096b1f94ee9201466678ca | [
"CNRI-Python"
] | null | null | null | apps/labs/module06/MqttPubClientTestApp.py | GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES-_PYTHON | da231c97bacbc3aa26096b1f94ee9201466678ca | [
"CNRI-Python"
] | null | null | null | '''
Created on Mar 5, 2019
@author: GANESHRAM KANAKASABAI
'''
from labs.common import ConfigConst
from labs.common.ConfigUtil import ConfigUtil
from labs.module06.MqttClientConnector import MqttClientConnector
'''
# importing SensorData class to use the attributes of sensor
'''
from labs.common.SensorData... | 30.90566 | 104 | 0.759463 | 201 | 1,638 | 6.144279 | 0.437811 | 0.032389 | 0.045344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007796 | 0.138584 | 1,638 | 52 | 105 | 31.5 | 0.86747 | 0.078144 | 0 | 0 | 0 | 0 | 0.178731 | 0.039321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6d5ba6ed444ee76aa5cd3508d0ceca70130b8000 | 976 | py | Python | people/migrations/0004_ormblock.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 3 | 2018-12-05T16:44:59.000Z | 2020-08-01T14:12:32.000Z | people/migrations/0004_ormblock.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 6 | 2020-06-03T15:56:59.000Z | 2022-02-10T07:23:55.000Z | people/migrations/0004_ormblock.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-14 10:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('people', '0003_removeusername'),
]
operations = [
migrations.CreateModel(
name='ORMBlock',
... | 34.857143 | 146 | 0.605533 | 101 | 976 | 5.693069 | 0.554455 | 0.055652 | 0.073043 | 0.114783 | 0.222609 | 0.222609 | 0.222609 | 0.222609 | 0.222609 | 0.222609 | 0 | 0.026316 | 0.260246 | 976 | 27 | 147 | 36.148148 | 0.770083 | 0.046107 | 0 | 0 | 1 | 0 | 0.173305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
6d5d8c847c98b1c02351919366124cce7233a204 | 825 | py | Python | utils/memcached_helper.py | PingLu8/django-twitter | ef5c47a9b2cd6796d67028946b2ed1c7b0af51be | [
"Apache-2.0"
] | null | null | null | utils/memcached_helper.py | PingLu8/django-twitter | ef5c47a9b2cd6796d67028946b2ed1c7b0af51be | [
"Apache-2.0"
] | null | null | null | utils/memcached_helper.py | PingLu8/django-twitter | ef5c47a9b2cd6796d67028946b2ed1c7b0af51be | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from django.core.cache import caches
cache = caches['testing'] if settings.TESTING else caches['default']
class MemcachedHelper:
@classmethod
def get_key(cls, model_class, object_id):
return '{}:{}'.format(model_class.__name__, object_id)
@classmethod
def get... | 25.78125 | 68 | 0.655758 | 108 | 825 | 4.768519 | 0.333333 | 0.135922 | 0.15534 | 0.174757 | 0.258252 | 0.217476 | 0.217476 | 0.217476 | 0.217476 | 0.217476 | 0 | 0 | 0.253333 | 825 | 31 | 69 | 26.612903 | 0.836039 | 0.055758 | 0 | 0.35 | 0 | 0 | 0.024548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.45 | 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 |
6d6380096f99fa9a4f305ad2f93fb1a54f9cf135 | 264 | py | Python | wwr_ui/build_ui.py | Compynerd255/wwrando | 842cf66de03c306026937257a495d9993b1a3eca | [
"MIT"
] | 47 | 2019-12-27T21:12:12.000Z | 2022-03-23T17:44:54.000Z | wwr_ui/build_ui.py | Compynerd255/wwrando | 842cf66de03c306026937257a495d9993b1a3eca | [
"MIT"
] | 11 | 2020-03-14T15:15:31.000Z | 2022-02-05T21:52:31.000Z | wwr_ui/build_ui.py | Compynerd255/wwrando | 842cf66de03c306026937257a495d9993b1a3eca | [
"MIT"
] | 4 | 2020-01-17T20:49:59.000Z | 2021-12-25T12:17:14.000Z |
from pyside2uic import compileUi
import glob
import os
for input_path in glob.glob('*.ui'):
base_name = os.path.splitext(input_path)[0]
output_path = "ui_%s.py" % base_name
with open(output_path, "w") as output_file:
compileUi(input_path, output_file)
| 24 | 45 | 0.738636 | 43 | 264 | 4.302326 | 0.534884 | 0.145946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.147727 | 264 | 10 | 46 | 26.4 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
ed973eab94c27a564c1493e120e4dee77cb66cec | 11,839 | py | Python | ConferenceSea/gain_meetings.py | chenxiaoyouyou/ConferenceSea | 68d34a3fa333ba10e72794db95b863337f0223b7 | [
"MIT"
] | null | null | null | ConferenceSea/gain_meetings.py | chenxiaoyouyou/ConferenceSea | 68d34a3fa333ba10e72794db95b863337f0223b7 | [
"MIT"
] | null | null | null | ConferenceSea/gain_meetings.py | chenxiaoyouyou/ConferenceSea | 68d34a3fa333ba10e72794db95b863337f0223b7 | [
"MIT"
] | null | null | null | # coding=utf-8
import redis
import requests
from lxml import etree
import pymysql
import threading
from config import logger
import re
from User_Agent import User_Agent
import random
class Meeting:
# 保留organizer 和 organizer_id两个字段,一个方便链表查询,一个方便直接读取,且可能读取不到组织信息
title = ""
url = ""
start_date = ""
en... | 35.875758 | 140 | 0.49244 | 1,147 | 11,839 | 4.918919 | 0.258065 | 0.01861 | 0.025523 | 0.00709 | 0.267104 | 0.219603 | 0.176001 | 0.176001 | 0.176001 | 0.130096 | 0 | 0.017415 | 0.388884 | 11,839 | 329 | 141 | 35.984802 | 0.762405 | 0.054312 | 0 | 0.264228 | 0 | 0.02439 | 0.147818 | 0.037419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004065 | 0.036585 | null | null | 0.056911 | 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 |
eda09320e56ddd684174e873eafea9f418f6012d | 2,364 | py | Python | CoffeeMachine/Config/Services.py | kerusey/FES | e64c3ea8543d36d8cacb4310ce57d8659b857191 | [
"MIT"
] | 7 | 2020-01-26T16:07:05.000Z | 2020-06-18T00:37:21.000Z | CoffeeMachine/Config/Services.py | kerusey/FES | e64c3ea8543d36d8cacb4310ce57d8659b857191 | [
"MIT"
] | 48 | 2020-01-04T14:34:32.000Z | 2021-11-29T05:59:27.000Z | CoffeeMachine/Config/Services.py | kerusey/FES | e64c3ea8543d36d8cacb4310ce57d8659b857191 | [
"MIT"
] | 4 | 2020-01-28T22:48:46.000Z | 2021-11-29T07:15:23.000Z | from getpass import getpass
import subprocess
from os import system
import pathlib
import string
vncAutostartScript = """
[Desktop Entry]
Type=Application
Name=TightVNC
Exec=vncserver :1
StartupNotify=false
"""
def vncautostart():
system("sudo mkdir /home/" + GLOBALUSERNAME + "")
def getLan(): # OK
import netiface... | 29.55 | 90 | 0.699662 | 301 | 2,364 | 5.488372 | 0.481728 | 0.084746 | 0.021792 | 0.029056 | 0.064165 | 0.030266 | 0 | 0 | 0 | 0 | 0 | 0.000497 | 0.148477 | 2,364 | 79 | 91 | 29.924051 | 0.820169 | 0.014805 | 0 | 0.034483 | 0 | 0 | 0.398891 | 0.024206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.137931 | 0.103448 | 0 | 0.224138 | 0.103448 | 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 |
edaf01e774d4eb7078a30c05367c44e1e51e6189 | 643 | py | Python | python/mostrar-hora-y-fecha.py | Tomvargas/ProgramasDeEjemplo | b6ae0cba3e20909b9a80ba0f09fd409e5942f67d | [
"MIT"
] | null | null | null | python/mostrar-hora-y-fecha.py | Tomvargas/ProgramasDeEjemplo | b6ae0cba3e20909b9a80ba0f09fd409e5942f67d | [
"MIT"
] | null | null | null | python/mostrar-hora-y-fecha.py | Tomvargas/ProgramasDeEjemplo | b6ae0cba3e20909b9a80ba0f09fd409e5942f67d | [
"MIT"
] | null | null | null | #Software de sistema
#Lenguaje python
#author Tomas vargas
#sistema para ver la hora y la fecha actual
from datetime import date
from datetime import datetime
print("## SOFTWARE DE SISTEMA ##")
td = date.today()
now = datetime.today()
name=input("Hola, ingresa tu nombre para brindarte los datos de fecha y hora de t... | 29.227273 | 123 | 0.721617 | 102 | 643 | 4.54902 | 0.509804 | 0.043103 | 0.073276 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153966 | 643 | 21 | 124 | 30.619048 | 0.852941 | 0.147745 | 0 | 0 | 0 | 0.090909 | 0.530387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.454545 | 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 |
edaf151b1c0fc65859cd4042a77f172b6d5bdf77 | 8,082 | py | Python | tests/test_sailor/test_sap_iot/test_write.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | null | null | null | tests/test_sailor/test_sap_iot/test_write.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | 1 | 2022-02-27T18:58:37.000Z | 2022-02-27T21:14:29.000Z | tests/test_sailor/test_sap_iot/test_write.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch
import numpy as np
import pytest
from sailor.sap_iot.write import upload_indicator_data, _check_indicator_group_is_complete
from sailor.utils.timestamps import _timestamp_to_isoformat
from ..data_generators import make_dataset, get_template
@pytest.fixture(autouse=True)
def mock_uplo... | 46.716763 | 111 | 0.740411 | 1,045 | 8,082 | 5.314833 | 0.133971 | 0.10587 | 0.028088 | 0.03421 | 0.737306 | 0.702917 | 0.673569 | 0.611811 | 0.611811 | 0.588045 | 0 | 0.004454 | 0.166543 | 8,082 | 172 | 112 | 46.988372 | 0.820071 | 0.00532 | 0 | 0.484615 | 0 | 0 | 0.185416 | 0.012195 | 0 | 0 | 0 | 0 | 0.130769 | 1 | 0.069231 | false | 0 | 0.046154 | 0 | 0.115385 | 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 |
edba502cc316539f43fdce3b4ab484bad4714fdf | 698 | py | Python | p.py | Sam-Z12/algorithms | eec1b15e58ef54535ae957bdd3a3a8afa1d82e45 | [
"MIT"
] | null | null | null | p.py | Sam-Z12/algorithms | eec1b15e58ef54535ae957bdd3a3a8afa1d82e45 | [
"MIT"
] | null | null | null | p.py | Sam-Z12/algorithms | eec1b15e58ef54535ae957bdd3a3a8afa1d82e45 | [
"MIT"
] | null | null | null |
l = [2, 5, 6, 5, 11]
def isPal(x):
str_num = str(x)
if len(str_num) == 1:
return True
if len(str_num) % 2 != 0:
mid = int(len(str_num)/2)
front = str_num[:mid]
back = str_num[mid+1:]
else:
mid = int(len(str_num)/2)
front = str_num[:mid]
back =... | 20.529412 | 165 | 0.386819 | 85 | 698 | 3.070588 | 0.352941 | 0.206897 | 0.137931 | 0.114943 | 0.329502 | 0.329502 | 0.329502 | 0.329502 | 0.329502 | 0.329502 | 0 | 0.057307 | 0.5 | 698 | 34 | 165 | 20.529412 | 0.690544 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.181818 | 0.045455 | 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 |
edbb7f7640010c0c61380e1e538477d7abcac18b | 1,363 | py | Python | Code/BaselineAlgorithms/sumy_sumBasic.py | tafseer-nayeem/BengaliSummarization | 31334d12bd6bbd2db92f4b0ecc436e006cb96fd8 | [
"MIT"
] | 4 | 2021-07-11T05:08:12.000Z | 2022-01-23T08:34:51.000Z | Code/BaselineAlgorithms/sumy_sumBasic.py | tafseer-nayeem/BengaliSummarization | 31334d12bd6bbd2db92f4b0ecc436e006cb96fd8 | [
"MIT"
] | null | null | null | Code/BaselineAlgorithms/sumy_sumBasic.py | tafseer-nayeem/BengaliSummarization | 31334d12bd6bbd2db92f4b0ecc436e006cb96fd8 | [
"MIT"
] | 4 | 2021-03-07T12:32:58.000Z | 2022-02-04T19:11:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from sumy.parsers.html import HtmlParser
from sumy.parsers.plaintext import PlaintextParser
from sumy.summarizers.sum_basic import SumBasicSummarizer as Summarizer
fr... | 32.452381 | 72 | 0.707263 | 162 | 1,363 | 5.759259 | 0.524691 | 0.051447 | 0.034298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006375 | 0.194424 | 1,363 | 41 | 73 | 33.243902 | 0.843352 | 0.041086 | 0 | 0 | 0 | 0 | 0.099693 | 0.044479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.3125 | 0 | 0.34375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
edc1caffb36fa549773e3bbad9862c4550bb23b3 | 696 | py | Python | djangocms_bootstrap4/contrib/bootstrap4_picture/migrations/0005_bootstrap4picture_svg.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | null | null | null | djangocms_bootstrap4/contrib/bootstrap4_picture/migrations/0005_bootstrap4picture_svg.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | 1 | 2018-12-12T10:52:07.000Z | 2018-12-12T10:52:07.000Z | djangocms_bootstrap4/contrib/bootstrap4_picture/migrations/0005_bootstrap4picture_svg.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | 1 | 2018-12-12T09:40:11.000Z | 2018-12-12T09:40:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-04-17 04:07
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
import filer.fields.file
class Migration(migrations.Migration):
dependencies = [
('filer', '0010_auto_20180414_2058'),
... | 29 | 181 | 0.672414 | 84 | 696 | 5.369048 | 0.654762 | 0.053215 | 0.062084 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093357 | 0.199713 | 696 | 23 | 182 | 30.26087 | 0.716338 | 0.099138 | 0 | 0 | 1 | 0 | 0.174679 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.4375 | 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 |
edce1a316a0ae2b1102380f82294f1fa37f4bffa | 276 | py | Python | lvar_exemple.py | Locktopus/PaloAuto | 72ea9e3026ba120238b6a7645bb65f8af5264ae9 | [
"MIT"
] | null | null | null | lvar_exemple.py | Locktopus/PaloAuto | 72ea9e3026ba120238b6a7645bb65f8af5264ae9 | [
"MIT"
] | null | null | null | lvar_exemple.py | Locktopus/PaloAuto | 72ea9e3026ba120238b6a7645bb65f8af5264ae9 | [
"MIT"
] | null | null | null | """
File containing all local variable necessary for the script to run
"""
#Enter your domain name. A value beginning with a period can be used as a subdomain wildcard.
DOMAIN = ".locktopus.fr"
#PATHS :
DEVELOPMENT_SETTINGS_FILE_PATH = "../locktopus/web_project/settings.py" | 30.666667 | 93 | 0.768116 | 41 | 276 | 5.073171 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 276 | 9 | 94 | 30.666667 | 0.877637 | 0.601449 | 0 | 0 | 0 | 0 | 0.480392 | 0.352941 | 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 |
edced97fbff7b2ff3f869da776ab081b8d80f94f | 2,091 | py | Python | example/wrapper/common/0002-get_property.py | krasin/xArm-Python-SDK-ssh | 9c854e8bfa78d0e91b67efbab79f733ddf19e916 | [
"BSD-3-Clause"
] | 62 | 2018-11-30T05:53:32.000Z | 2022-03-20T13:15:22.000Z | example/wrapper/common/0002-get_property.py | krasin/xArm-Python-SDK-ssh | 9c854e8bfa78d0e91b67efbab79f733ddf19e916 | [
"BSD-3-Clause"
] | 25 | 2019-08-12T18:53:41.000Z | 2021-12-28T10:17:39.000Z | example/wrapper/common/0002-get_property.py | krasin/xArm-Python-SDK-ssh | 9c854e8bfa78d0e91b67efbab79f733ddf19e916 | [
"BSD-3-Clause"
] | 43 | 2019-01-03T04:47:13.000Z | 2022-03-18T06:40:59.000Z | #!/usr/bin/env python3
# Software License Agreement (BSD License)
#
# Copyright (c) 2019, UFACTORY, Inc.
# All rights reserved.
#
# Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com>
"""
Description: Get the property of XArmAPI
Note: is_radian is different when instantiating, some attribute values are ... | 25.5 | 88 | 0.642755 | 274 | 2,091 | 4.718978 | 0.408759 | 0.037123 | 0.023202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007151 | 0.13056 | 2,091 | 81 | 89 | 25.814815 | 0.70407 | 0.148733 | 0 | 0 | 0 | 0 | 0.261245 | 0.046827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102041 | 0 | 0.102041 | 0.530612 | 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 |
eddce5466759ab7b1f6de0b3802d37cfd95adae6 | 582 | py | Python | sariftoolkit/config.py | GeekMasher/sarif-toolkit | a31eb647d5ff711875a6e273339be2c8572bbffc | [
"MIT"
] | null | null | null | sariftoolkit/config.py | GeekMasher/sarif-toolkit | a31eb647d5ff711875a6e273339be2c8572bbffc | [
"MIT"
] | 4 | 2021-09-14T15:36:13.000Z | 2021-09-27T10:54:59.000Z | sariftoolkit/config.py | GeekMasher/sarif-toolkit | a31eb647d5ff711875a6e273339be2c8572bbffc | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class PluginConfig:
name: str
path: str = None
enabled: bool = False
@dataclass
class Plugins:
relativepaths: PluginConfig = PluginConfig(
"RelativePaths", "sariftoolkit.plugins.relativepaths"
)
submodules: PluginConfig = PluginConfig(
... | 17.117647 | 61 | 0.671821 | 56 | 582 | 6.982143 | 0.446429 | 0.107417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.231959 | 582 | 33 | 62 | 17.636364 | 0.868009 | 0 | 0 | 0.136364 | 0 | 0 | 0.195876 | 0.111684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 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 |
eddd976acbcf0080afb1bea0656f0ac71fad7580 | 5,146 | py | Python | tests/unit/cocoon/test_dateorcutlabel.py | finbourne/lusid-python-tools | 53f845be208df74fc48b5a9b46b2bf4af20e012b | [
"MIT"
] | 4 | 2020-07-24T10:28:14.000Z | 2021-11-05T10:55:23.000Z | tests/unit/cocoon/test_dateorcutlabel.py | finbourne/lusid-python-tools | 53f845be208df74fc48b5a9b46b2bf4af20e012b | [
"MIT"
] | 185 | 2019-11-21T14:58:38.000Z | 2022-03-04T18:44:22.000Z | tests/unit/cocoon/test_dateorcutlabel.py | finbourne/lusid-python-tools | 53f845be208df74fc48b5a9b46b2bf4af20e012b | [
"MIT"
] | 6 | 2020-01-28T19:31:04.000Z | 2021-04-21T15:50:23.000Z | import os
import unittest
import numpy as np
import pandas as pd
from lusidtools import logger
from lusidtools.cocoon.dateorcutlabel import DateOrCutLabel
from parameterized import parameterized
from datetime import datetime
import pytz
class CocoonDateOrCutLabelTests(unittest.TestCase):
@classmethod
def se... | 35.736111 | 89 | 0.492033 | 606 | 5,146 | 4.105611 | 0.257426 | 0.067524 | 0.038585 | 0.041801 | 0.503617 | 0.415595 | 0.331592 | 0.217444 | 0.151125 | 0.113344 | 0 | 0.237162 | 0.375632 | 5,146 | 143 | 90 | 35.986014 | 0.537193 | 0.013214 | 0 | 0.255639 | 0 | 0 | 0.3816 | 0.169425 | 0 | 0 | 0 | 0 | 0.015038 | 1 | 0.022556 | false | 0 | 0.067669 | 0 | 0.097744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
edf0adacf1ec4cb92664e3c35a0ef157bd7f9207 | 3,268 | py | Python | old2/day12/LearnerTemplate.py | minhncedutw/100DaysOfTechLearning | 8e7602c17d844cbf643b381dd4e3d90d1e832453 | [
"MIT"
] | null | null | null | old2/day12/LearnerTemplate.py | minhncedutw/100DaysOfTechLearning | 8e7602c17d844cbf643b381dd4e3d90d1e832453 | [
"MIT"
] | null | null | null | old2/day12/LearnerTemplate.py | minhncedutw/100DaysOfTechLearning | 8e7602c17d844cbf643b381dd4e3d90d1e832453 | [
"MIT"
] | null | null | null | from KerasUtils import save_trn_history, load_trn_history
class BaseLearner(object):
"""docstring for ClassName"""
# to be defined in each subclass
def __init__(self, input_shape, labels, verbose=True):
raise NotImplementedError("error message")
def save_weight(self, weight_path: Union[str, P... | 35.912088 | 109 | 0.53213 | 330 | 3,268 | 5.057576 | 0.336364 | 0.059317 | 0.02876 | 0.038346 | 0.179748 | 0.150989 | 0.150989 | 0.141402 | 0.095866 | 0 | 0 | 0.002023 | 0.243574 | 3,268 | 91 | 110 | 35.912088 | 0.673139 | 0.110771 | 0 | 0.051282 | 0 | 0 | 0.016136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.025641 | 0 | 0.358974 | 0.025641 | 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 |
edf21aadf4272703c591ffb000a35407044b8c7d | 1,732 | py | Python | var/spack/repos/builtin/packages/py-slepc4py/package.py | nkianggiss/spack | 3477d3375142a30f5714bb5966a6d8bb22c33c06 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-06-27T13:26:50.000Z | 2019-07-01T16:24:54.000Z | var/spack/repos/builtin/packages/py-slepc4py/package.py | openbiox/spack | bb6ec7fb40c14b37e094a860e3625af53f633174 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 75 | 2016-07-27T11:43:00.000Z | 2020-12-08T15:56:53.000Z | var/spack/repos/builtin/packages/py-slepc4py/package.py | openbiox/spack | bb6ec7fb40c14b37e094a860e3625af53f633174 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 8 | 2015-10-16T13:51:49.000Z | 2021-10-18T13:58:03.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySlepc4py(PythonPackage):
"""This package provides Python bindings for the SLEPc package.... | 46.810811 | 96 | 0.674942 | 269 | 1,732 | 4.297398 | 0.263941 | 0.101211 | 0.060554 | 0.098616 | 0.423875 | 0.297578 | 0.279412 | 0.279412 | 0.252595 | 0.145329 | 0 | 0.221349 | 0.11836 | 1,732 | 36 | 97 | 48.111111 | 0.535691 | 0.147229 | 0 | 0 | 0 | 0.045455 | 0.542916 | 0.250681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
edfd2f980ed1fca191795b3d6fa5fae9e6064496 | 2,926 | py | Python | src/image_quality/misc/model_flops.py | junyongyou/sca_iqa | 9353e3283c7513d859f38d66292dd408bdeaf2e7 | [
"MIT"
] | 3 | 2021-01-23T06:01:32.000Z | 2021-07-29T03:30:17.000Z | src/image_quality/misc/model_flops.py | junyongyou/sca_iqa | 9353e3283c7513d859f38d66292dd408bdeaf2e7 | [
"MIT"
] | 1 | 2021-01-07T09:16:31.000Z | 2021-01-07T12:13:13.000Z | src/image_quality/misc/model_flops.py | junyongyou/phiqnet | f0e10299eed47390cec79af68a2aade4f64bc5f2 | [
"MIT"
] | 1 | 2022-02-05T03:19:34.000Z | 2022-02-05T03:19:34.000Z | import numpy as np
from tensorflow.python.framework import ops
from tensorflow.python.framework import graph_util
from tensorflow.python.profiler.internal.flops_registry import (
_reduction_op_flops,
_binary_per_element_op_flops,
)
from tensorflow.keras import Sequential, Model
@ops.RegisterStatistics("FusedB... | 35.253012 | 96 | 0.734108 | 398 | 2,926 | 5.133166 | 0.344221 | 0.035242 | 0.039158 | 0.042584 | 0.267744 | 0.144885 | 0.144885 | 0.079295 | 0.079295 | 0.079295 | 0 | 0.007429 | 0.171907 | 2,926 | 82 | 97 | 35.682927 | 0.835741 | 0.170882 | 0 | 0 | 0 | 0 | 0.066331 | 0 | 0 | 0 | 0 | 0.012195 | 0.056604 | 1 | 0.075472 | false | 0 | 0.150943 | 0 | 0.301887 | 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 |
6106f90679df595b556d90b3a6daf2391f58c5a5 | 2,445 | py | Python | sktime/classification/compose/tests/test_pipeline.py | jyviko/sktime | f06b9b0a43db13e9e0217cc3c7de8f3807d3c722 | [
"BSD-3-Clause"
] | null | null | null | sktime/classification/compose/tests/test_pipeline.py | jyviko/sktime | f06b9b0a43db13e9e0217cc3c7de8f3807d3c722 | [
"BSD-3-Clause"
] | null | null | null | sktime/classification/compose/tests/test_pipeline.py | jyviko/sktime | f06b9b0a43db13e9e0217cc3c7de8f3807d3c722 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Unit tests for (dunder) composition functionality attached to the base class."""
__author__ = ["fkiraly"]
__all__ = []
from sklearn.preprocessing import StandardScaler
from sktime.classification.compose import Classifi... | 37.045455 | 83 | 0.748057 | 354 | 2,445 | 4.819209 | 0.242938 | 0.026377 | 0.020516 | 0.049238 | 0.617819 | 0.617819 | 0.617819 | 0.617819 | 0.617819 | 0.617819 | 0 | 0.048077 | 0.149284 | 2,445 | 65 | 84 | 37.615385 | 0.772115 | 0.096524 | 0 | 0.55814 | 0 | 0 | 0.003193 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 1 | 0.046512 | false | 0 | 0.139535 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
610a2efd1b54137f69ede7c4461eda19bcfd33bb | 765 | py | Python | osplus/Encryption/CryptoKey.py | QuatschVirus/osplus | 9f3f848833eb3262fc1047b6b416941cd091e825 | [
"MIT"
] | null | null | null | osplus/Encryption/CryptoKey.py | QuatschVirus/osplus | 9f3f848833eb3262fc1047b6b416941cd091e825 | [
"MIT"
] | null | null | null | osplus/Encryption/CryptoKey.py | QuatschVirus/osplus | 9f3f848833eb3262fc1047b6b416941cd091e825 | [
"MIT"
] | null | null | null | def encode(key: str, txt: str):
txt_c = ''
for index in range(0, len(txt)):
txt_int = ord(txt[index].lower()) + (ord(key[index % len(key)].upper()) - 65)
if txt_int > 122:
txt_int = txt_int - 26
if txt_int < 97 or txt_int > 122:
txt_c = txt_c + txt[index]
... | 30.6 | 85 | 0.513725 | 122 | 765 | 3.02459 | 0.213115 | 0.227642 | 0.086721 | 0.097561 | 0.596206 | 0.498645 | 0.498645 | 0.379404 | 0.379404 | 0.379404 | 0 | 0.0501 | 0.347712 | 765 | 24 | 86 | 31.875 | 0.689379 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 |
611030069642c1ff58f993e143d646fac5237e6a | 842 | py | Python | databoard/deploy.py | jorisvandenbossche/ramp-board | afb4ed38b62982dc7ea1749d4de341170ea77972 | [
"BSD-3-Clause"
] | null | null | null | databoard/deploy.py | jorisvandenbossche/ramp-board | afb4ed38b62982dc7ea1749d4de341170ea77972 | [
"BSD-3-Clause"
] | null | null | null | databoard/deploy.py | jorisvandenbossche/ramp-board | afb4ed38b62982dc7ea1749d4de341170ea77972 | [
"BSD-3-Clause"
] | null | null | null | import os
from shutil import rmtree
from databoard import (db, deployment_path, ramp_config, ramp_data_path,
ramp_kits_path)
def recreate_db():
"""Initialisation of a test database."""
db.session.close()
db.drop_all()
db.create_all()
print(db)
def deploy():
if os.gete... | 28.066667 | 76 | 0.623515 | 102 | 842 | 4.931373 | 0.5 | 0.139165 | 0.111332 | 0.095427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269596 | 842 | 29 | 77 | 29.034483 | 0.817886 | 0.04038 | 0 | 0 | 0 | 0 | 0.159601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | true | 0 | 0.130435 | 0 | 0.217391 | 0.043478 | 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 |
6113fdcf57cbc5fd9fb90a7604cf90295d6338f9 | 433 | py | Python | h/migrations/versions/98157e28a7e1_make_annotation_extra_non_nullable.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 1 | 2020-06-19T01:49:39.000Z | 2020-06-19T01:49:39.000Z | h/migrations/versions/98157e28a7e1_make_annotation_extra_non_nullable.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 5 | 2020-03-24T18:14:50.000Z | 2022-03-02T06:56:50.000Z | h/migrations/versions/98157e28a7e1_make_annotation_extra_non_nullable.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | null | null | null | """Make annotation.extra non-nullable.
Revision ID: 98157e28a7e1
Revises: 77c2af032aca
Create Date: 2016-06-06 14:52:41.277688
"""
# revision identifiers, used by Alembic.
revision = "98157e28a7e1"
down_revision = "77c2af032aca"
import sqlalchemy as sa
from alembic import op
def upgrade():
op.alter_column("an... | 18.826087 | 58 | 0.743649 | 55 | 433 | 5.8 | 0.654545 | 0.141066 | 0.081505 | 0.144201 | 0.225705 | 0.225705 | 0 | 0 | 0 | 0 | 0 | 0.13369 | 0.136259 | 433 | 22 | 59 | 19.681818 | 0.719251 | 0.378753 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61155572fa45a4f682584df5a335a9d5bd2ba67a | 450 | py | Python | examples/library-usage/querying/actions/get_all_actions_with_access_level.py | patricksanders/policy_sentry | 3559ce8d3a19728b4f64dfff4cbdf075e7629b39 | [
"MIT"
] | null | null | null | examples/library-usage/querying/actions/get_all_actions_with_access_level.py | patricksanders/policy_sentry | 3559ce8d3a19728b4f64dfff4cbdf075e7629b39 | [
"MIT"
] | 20 | 2020-03-20T06:13:09.000Z | 2022-02-10T18:15:35.000Z | examples/library-usage/querying/actions/get_all_actions_with_access_level.py | ssmbct-netops/policy_sentry | c9f4752c633fe229220b7f476aa766ea65330489 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from policy_sentry.shared.database import connect_db
from policy_sentry.querying.actions import get_actions_with_access_level
import json
if __name__ == '__main__':
db_session = connect_db('bundled')
output = get_actions_with_access_level(db_session, 'all', 'Permissions management')
p... | 32.142857 | 87 | 0.782222 | 63 | 450 | 5.238095 | 0.603175 | 0.1 | 0.09697 | 0.121212 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002538 | 0.124444 | 450 | 13 | 88 | 34.615385 | 0.835025 | 0.044444 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 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 |
6118d4804e5b3f279f18b6405ccd96ea5b8d3369 | 447 | py | Python | naloga12.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | naloga12.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | naloga12.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | def trikotniska_stevila(n):
vsota = 0
for i in range(1, n + 1):
vsota += i
return vsota
def najdi():
j = 0
n = 0
st_deliteljev = 0
while st_deliteljev <= 500:
st_deliteljev = 0
j += 1
n = trikotniska_stevila(j)
i = 1
while i <= n ** 0.5:
... | 19.434783 | 34 | 0.463087 | 62 | 447 | 3.225806 | 0.354839 | 0.3 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0.431767 | 447 | 23 | 35 | 19.434783 | 0.716535 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.190476 | 0.047619 | 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 |
6118d58601026afe82f566dbf78e994e0cbfd038 | 1,598 | py | Python | net/st_gcn_mul.py | bruceyo/EGCN | f118eade9910bd99298c23bef31433cafb8e98d5 | [
"BSD-2-Clause"
] | null | null | null | net/st_gcn_mul.py | bruceyo/EGCN | f118eade9910bd99298c23bef31433cafb8e98d5 | [
"BSD-2-Clause"
] | null | null | null | net/st_gcn_mul.py | bruceyo/EGCN | f118eade9910bd99298c23bef31433cafb8e98d5 | [
"BSD-2-Clause"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from net.utils.tgcn import ConvTemporalGraphical
from net.utils.graph import Graph
from .st_gcn_ui_prmd import Model as ST_GCN
class Model(nn.Module):
def __init__(self, *args, **kwargs):
super().__ini... | 29.592593 | 95 | 0.593867 | 287 | 1,598 | 3.04878 | 0.243902 | 0.169143 | 0.08 | 0.128 | 0.278857 | 0.217143 | 0.194286 | 0.150857 | 0.086857 | 0.086857 | 0 | 0.023952 | 0.268461 | 1,598 | 53 | 96 | 30.150943 | 0.724551 | 0.036295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | 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 |
6129017ea42b08cf83ca85558fd2751660482d5a | 25,123 | py | Python | mobject/mobject.py | S3L1M/Image-RGB-Ratio | bd0d631166211d89e12acff0345a7754eb4e53a2 | [
"MIT"
] | null | null | null | mobject/mobject.py | S3L1M/Image-RGB-Ratio | bd0d631166211d89e12acff0345a7754eb4e53a2 | [
"MIT"
] | null | null | null | mobject/mobject.py | S3L1M/Image-RGB-Ratio | bd0d631166211d89e12acff0345a7754eb4e53a2 | [
"MIT"
] | null | null | null | import numpy as np
import operator as op
import os
import copy
from PIL import Image
from colour import Color
from helpers import *
#TODO: Explain array_attrs
class Mobject(object):
"""
Mathematical Object
"""
CONFIG = {
"color" : WHITE,
"stroke_width" : DEFAULT_POINT_THICKNES... | 32.500647 | 92 | 0.607252 | 3,129 | 25,123 | 4.65612 | 0.124321 | 0.05697 | 0.042831 | 0.02368 | 0.255543 | 0.202828 | 0.140161 | 0.114284 | 0.098016 | 0.080719 | 0 | 0.005762 | 0.302313 | 25,123 | 772 | 93 | 32.542746 | 0.825422 | 0.028142 | 0 | 0.196246 | 0 | 0 | 0.014298 | 0 | 0 | 0 | 0 | 0.003886 | 0 | 0 | null | null | 0.010239 | 0.013652 | 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 |
612a7211fa78629e22f7ee51046d4a574838e04f | 2,894 | py | Python | deepcell_scripts/annotation_scripts/training_data_contrast_adjustment.py | hftsai/deepcell-tf_OIST | 55d7da0fba09c5959bf375ebdc471e3b266948a1 | [
"MIT"
] | 7 | 2018-05-09T16:25:37.000Z | 2019-10-16T03:31:45.000Z | deepcell_scripts/annotation_scripts/training_data_contrast_adjustment.py | hftsai/deepcell-tf_OIST | 55d7da0fba09c5959bf375ebdc471e3b266948a1 | [
"MIT"
] | 9 | 2018-03-19T04:08:56.000Z | 2022-03-11T23:19:31.000Z | deepcell_scripts/annotation_scripts/training_data_contrast_adjustment.py | hftsai/deepcell-tf_OIST | 55d7da0fba09c5959bf375ebdc471e3b266948a1 | [
"MIT"
] | 4 | 2018-01-19T09:45:10.000Z | 2018-05-03T07:30:43.000Z | """
training_data_contrast_adjustment.py
Code for adjusting the contrast of images to aid image annotaters
@author: David Van Valen
"""
"""
Import python packages
"""
from deepcell import get_image, get_images_from_directory
import numpy as np
import skimage as sk
import os
import tifffile as tiff
from scipy import... | 28.097087 | 147 | 0.733587 | 463 | 2,894 | 4.280778 | 0.257019 | 0.108981 | 0.028254 | 0.028759 | 0.332492 | 0.180626 | 0.134208 | 0.103935 | 0.045409 | 0.045409 | 0 | 0.024158 | 0.127505 | 2,894 | 102 | 148 | 28.372549 | 0.760792 | 0.033863 | 0 | 0 | 0 | 0 | 0.069786 | 0.027359 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145833 | 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 |
612d868987933c16935eb50c8552294f117b0937 | 4,521 | py | Python | doUtils/keypair.py | jjkimball/doUtils | 7fc17a1081bde620e07a3b820dc869d19cedf704 | [
"MIT"
] | 1 | 2018-06-02T15:04:06.000Z | 2018-06-02T15:04:06.000Z | doUtils/keypair.py | jjkimball/doUtils | 7fc17a1081bde620e07a3b820dc869d19cedf704 | [
"MIT"
] | 1 | 2021-06-01T22:18:49.000Z | 2021-06-01T22:18:49.000Z | doUtils/keypair.py | jjkimball/doUtils | 7fc17a1081bde620e07a3b820dc869d19cedf704 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
.. module:: doUtils.keypair
:platform: Unix
:synopsis: class Keypair, to make an RSA keypair, eg for ssh. (See also class SshKeypair in utils.py.)
.. moduleauthor:: John Kimball <jjkimball@acm.org>
class Keypair, to make an RSA keypair, eg for ssh. (See also class SshKeypair in utils... | 39.313043 | 247 | 0.637248 | 489 | 4,521 | 5.797546 | 0.398773 | 0.025397 | 0.012698 | 0.012698 | 0.156614 | 0.156614 | 0.156614 | 0.156614 | 0.156614 | 0.156614 | 0 | 0.006357 | 0.199735 | 4,521 | 114 | 248 | 39.657895 | 0.777225 | 0.315417 | 0 | 0.042553 | 0 | 0 | 0.063036 | 0.007833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.12766 | 0.234043 | 0 | 0.340426 | 0.06383 | 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 |
b61ac32b362d87d84631ff8684c22310fed30307 | 3,329 | py | Python | 2019/day_7.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | 1 | 2021-12-03T14:37:28.000Z | 2021-12-03T14:37:28.000Z | 2019/day_7.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | 2019/day_7.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | # https://adventofcode.com/2019/day/7
from itertools import permutations
import lib.utils as utils
class IntCodeProcessor:
def __init__(self, memory):
self.pointer = 0
self.memory = memory[:]
self.inputs = list()
self.outputs = list()
self.status = "IDLE"
def add_inpu... | 39.164706 | 105 | 0.554821 | 416 | 3,329 | 4.329327 | 0.21875 | 0.138812 | 0.139922 | 0.163243 | 0.325375 | 0.289284 | 0.238201 | 0.200444 | 0.200444 | 0.144364 | 0 | 0.02953 | 0.328627 | 3,329 | 84 | 106 | 39.630952 | 0.776286 | 0.010514 | 0 | 0.084507 | 0 | 0 | 0.030984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.028169 | 0 | 0.140845 | 0.028169 | 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 |
b61cad7fe59136e83337b8272703c70ad7905f15 | 1,595 | py | Python | lang/py/cookbook/v2/source/cb2_19_15_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_19_15_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_19_15_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | def _combinators(_handle, items, n):
''' factored-out common structure of all following combinators '''
if n==0:
yield []
return
for i, item in enumerate(items):
this_one = [ item ]
for cc in _combinators(_handle, _handle(items, i), n-1):
yield this_one + cc
def c... | 38.902439 | 70 | 0.616928 | 206 | 1,595 | 4.68932 | 0.320388 | 0.043478 | 0.045549 | 0.062112 | 0.321946 | 0.174948 | 0.174948 | 0.114907 | 0.084886 | 0 | 0 | 0.008013 | 0.217555 | 1,595 | 40 | 71 | 39.875 | 0.766026 | 0.110972 | 0 | 0 | 0 | 0 | 0.133449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.258065 | 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 |
b621ba576c13313aeedc9361da678b5c54d3e52a | 6,688 | py | Python | cppstd/set.py | lycantropos/std | 2a44dad540a8cc36e7fac8805cf2f5402be34aee | [
"MIT"
] | null | null | null | cppstd/set.py | lycantropos/std | 2a44dad540a8cc36e7fac8805cf2f5402be34aee | [
"MIT"
] | null | null | null | cppstd/set.py | lycantropos/std | 2a44dad540a8cc36e7fac8805cf2f5402be34aee | [
"MIT"
] | null | null | null | import builtins
from collections import abc
from copy import copy as _copy
from typing import (Generic,
Iterable,
Iterator,
Tuple,
overload)
from .core import red_black
from .core.abcs import LegacyInputIterator
from .core.tokenization imp... | 35.386243 | 79 | 0.551734 | 689 | 6,688 | 5.085631 | 0.188679 | 0.063927 | 0.034247 | 0.059932 | 0.463185 | 0.440354 | 0.409817 | 0.409817 | 0.369292 | 0.356164 | 0 | 0 | 0.352123 | 6,688 | 188 | 80 | 35.574468 | 0.808678 | 0.019288 | 0 | 0.302013 | 0 | 0 | 0.041718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174497 | false | 0 | 0.060403 | 0.100671 | 0.42953 | 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 |
b62e102aa06601e5ec3726f0d26aafabc03a6e67 | 9,009 | py | Python | concoord/route53.py | denizalti/concoord | 5a51ba2b475f44da221304ea7f0b9118f2e8511a | [
"BSD-3-Clause"
] | 36 | 2015-01-22T15:55:21.000Z | 2019-12-10T00:39:11.000Z | concoord/route53.py | denizalti/openreplica | 5a51ba2b475f44da221304ea7f0b9118f2e8511a | [
"BSD-3-Clause"
] | 3 | 2016-11-15T16:58:49.000Z | 2018-05-25T11:32:50.000Z | concoord/route53.py | denizalti/concoord | 5a51ba2b475f44da221304ea7f0b9118f2e8511a | [
"BSD-3-Clause"
] | 13 | 2015-01-07T00:07:59.000Z | 2018-11-24T04:39:58.000Z | # Author: Chris Moyer
#
# route53 is similar to sdbadmin for Route53, it's a simple
# console utility to perform the most frequent tasks with Route53
#
# Example usage. Use route53 get after each command to see how the
# zone changes.
#
# Add a non-weighted record, change its value, then delete. Default TTL:
#
# rout... | 44.37931 | 139 | 0.666778 | 1,220 | 9,009 | 4.759836 | 0.17623 | 0.061994 | 0.066127 | 0.049595 | 0.611159 | 0.578268 | 0.536938 | 0.485449 | 0.444119 | 0.367315 | 0 | 0.036172 | 0.22977 | 9,009 | 202 | 140 | 44.59901 | 0.800692 | 0.189144 | 0 | 0.398551 | 0 | 0 | 0.05384 | 0.003498 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050725 | 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 |
b62f113aaabdf31041c179321fce18e4de7c331e | 2,889 | py | Python | watpi/apps/dashboard/views.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 1 | 2021-01-02T23:48:19.000Z | 2021-01-02T23:48:19.000Z | watpi/apps/dashboard/views.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 47 | 2017-10-07T00:56:04.000Z | 2017-12-10T11:03:58.000Z | watpi/apps/dashboard/views.py | WatPi/WatPi | 60c77e12b2a28c3cc5cef894fae3b9089322db23 | [
"MIT"
] | 2 | 2017-10-09T03:56:02.000Z | 2017-10-16T01:24:14.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Google Cloud Vision
from google.cloud import vision
from google.cloud.vision import types
import sys
import os
import io
import json
from time import sleep
from django.urls import reverse
from django.utils import timezone
from django.shortcuts import H... | 27 | 84 | 0.652821 | 351 | 2,889 | 5.202279 | 0.407407 | 0.023001 | 0.02793 | 0.044359 | 0.088171 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010305 | 0.227414 | 2,889 | 106 | 85 | 27.254717 | 0.807796 | 0.108342 | 0 | 0.133333 | 0 | 0 | 0.092824 | 0.030421 | 0 | 0 | 0 | 0.009434 | 0 | 0 | null | null | 0 | 0.213333 | null | null | 0.08 | 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 |
b6309f840b4a282c8977a123a4db5b5fa4b80da2 | 456 | py | Python | apps/hora_extra/migrations/0004_horaextra_horas.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | apps/hora_extra/migrations/0004_horaextra_horas.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | 6 | 2020-02-08T21:28:12.000Z | 2022-03-12T00:15:11.000Z | apps/hora_extra/migrations/0004_horaextra_horas.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | # Generated by Django 2.1.5 on 2019-06-22 14:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("hora_extra", "0003_auto_20190208_0020"),
]
operations = [
migrations.AddField(
model_name="horaextra",
name="horas",... | 22.8 | 81 | 0.614035 | 51 | 456 | 5.333333 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10303 | 0.276316 | 456 | 19 | 82 | 24 | 0.721212 | 0.098684 | 0 | 0 | 1 | 0 | 0.114914 | 0.056235 | 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 |
b63816bf6068cac6d2adc9035401a994a4ddf660 | 8,307 | py | Python | DFCV.py | wharton/DataframeConversionValidator | 4f0015557d3457106c70bba30cd70dffa2cbad8f | [
"MIT"
] | null | null | null | DFCV.py | wharton/DataframeConversionValidator | 4f0015557d3457106c70bba30cd70dffa2cbad8f | [
"MIT"
] | null | null | null | DFCV.py | wharton/DataframeConversionValidator | 4f0015557d3457106c70bba30cd70dffa2cbad8f | [
"MIT"
] | null | null | null | """
Provides a way to quickly validate column conversions didn't result in null across large dataframes.
Can also be used to find problem columns and rows.
Will need to specify or create a primary key column for matching before and after rows.
Use case: Converting StringType columns to TimestampType can cause null v... | 43.041451 | 253 | 0.678584 | 1,092 | 8,307 | 4.967949 | 0.202381 | 0.042396 | 0.058986 | 0.029493 | 0.358525 | 0.260277 | 0.226728 | 0.226728 | 0.210138 | 0.174562 | 0 | 0.002648 | 0.227037 | 8,307 | 192 | 254 | 43.265625 | 0.842236 | 0.437462 | 0 | 0 | 0 | 0 | 0.110324 | 0.030239 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.138889 | false | 0 | 0.083333 | 0 | 0.472222 | 0.013889 | 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 |
b63a66d9f12268af580786247c3fc9141ea7713b | 5,096 | py | Python | windows_to_fasta.py | latticetower/top_introns | ff12be60756725f44c5ff6c62989833b44b38e4a | [
"MIT"
] | 2 | 2015-09-30T23:08:18.000Z | 2016-11-09T12:04:21.000Z | windows_to_fasta.py | latticetower/top_introns | ff12be60756725f44c5ff6c62989833b44b38e4a | [
"MIT"
] | null | null | null | windows_to_fasta.py | latticetower/top_introns | ff12be60756725f44c5ff6c62989833b44b38e4a | [
"MIT"
] | null | null | null | import fileinput
import sys
from collections import OrderedDict
from window_info import WindowInfo
from optparse import OptionParser
class WindowToFastaConverter(object):
def __init__(self):
self.current_chromosome = ""
self.chromosome_windows = list()
self.current_window = 0
def load_fasta(self, fas... | 40.125984 | 194 | 0.701531 | 704 | 5,096 | 4.833807 | 0.164773 | 0.103438 | 0.129885 | 0.111078 | 0.458713 | 0.43638 | 0.342639 | 0.31913 | 0.279459 | 0.257714 | 0 | 0.010828 | 0.184458 | 5,096 | 126 | 195 | 40.444444 | 0.807988 | 0.044349 | 0 | 0.278846 | 0 | 0 | 0.048314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048077 | null | null | 0.048077 | 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 |
b63b1834480d1eec719513d252e24e8a9af1d3ca | 470 | py | Python | examples/wait_for_tokens.py | tarunbhardwaj/limitlion | 70bc4c08b7750bfebbff3142bf1a891c8841ac99 | [
"MIT"
] | 17 | 2018-06-06T15:09:02.000Z | 2021-02-21T10:54:51.000Z | examples/wait_for_tokens.py | tarunbhardwaj/limitlion | 70bc4c08b7750bfebbff3142bf1a891c8841ac99 | [
"MIT"
] | 17 | 2018-09-12T13:03:22.000Z | 2021-06-27T07:18:35.000Z | examples/wait_for_tokens.py | tarunbhardwaj/limitlion | 70bc4c08b7750bfebbff3142bf1a891c8841ac99 | [
"MIT"
] | 3 | 2020-02-07T07:48:31.000Z | 2021-02-21T10:54:54.000Z | #!/usr/bin/env python
"""
Waiting throttle example.
Uses the throttle_wait helper that will sleep until work is allowed.
"""
import datetime
import redis
from limitlion import throttle_configure, throttle_wait
redis = redis.Redis('localhost', 6379)
throttle_configure(redis)
throttle = throttle_wait('test_wait', r... | 20.434783 | 68 | 0.751064 | 63 | 470 | 5.507937 | 0.666667 | 0.103746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.148936 | 470 | 22 | 69 | 21.363636 | 0.855 | 0.355319 | 0 | 0 | 0 | 0 | 0.105442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 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 |
b63b6db0176d33acc09173fb0daaad081431c7c6 | 315 | py | Python | python/test.py | WebReflection/js-in-json-session | 77cca96c06d577cbdbe96768e7f2522c77346425 | [
"0BSD"
] | 2 | 2021-04-24T18:15:45.000Z | 2021-04-26T10:28:54.000Z | python/test.py | WebReflection/js-in-json-session | 77cca96c06d577cbdbe96768e7f2522c77346425 | [
"0BSD"
] | null | null | null | python/test.py | WebReflection/js-in-json-session | 77cca96c06d577cbdbe96768e7f2522c77346425 | [
"0BSD"
] | null | null | null | import json
from session import Session
session = Session(json.loads('{"_":{"code":"","module":"true;"},"Test":{"code":"console.log(1)","module":"console.log(Math.random())","dependencies":[]}}'))
print('\x1b[1mPython\x1b[0m')
session.add('Test')
print(session.flush())
session.add('Test')
print(session.flush())
| 28.636364 | 156 | 0.673016 | 41 | 315 | 5.146341 | 0.512195 | 0.132701 | 0.132701 | 0.180095 | 0.293839 | 0.293839 | 0 | 0 | 0 | 0 | 0 | 0.016722 | 0.050794 | 315 | 10 | 157 | 31.5 | 0.688963 | 0 | 0 | 0.5 | 0 | 0.125 | 0.479365 | 0.390476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.375 | 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 |
b63b7630b7921156108b903282e66abcdac1eb1b | 960 | py | Python | status_info.py | loquens/cg-sublime | b264f9beaab7d4e707509f54b2ead64d2ee5bc45 | [
"MIT"
] | null | null | null | status_info.py | loquens/cg-sublime | b264f9beaab7d4e707509f54b2ead64d2ee5bc45 | [
"MIT"
] | null | null | null | status_info.py | loquens/cg-sublime | b264f9beaab7d4e707509f54b2ead64d2ee5bc45 | [
"MIT"
] | null | null | null | import sublime_plugin
import os
class CurrentPathStatusCommand(sublime_plugin.EventListener):
def updateStatus(self, view):
dirty = view.is_dirty() and '**' or '--'
eol = view.line_endings()[0]
encoding = view.encoding()
path = '%s%s%s' % (
' ' * 30,
... | 28.235294 | 73 | 0.53125 | 91 | 960 | 5.362637 | 0.483516 | 0.286885 | 0.012295 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.3625 | 960 | 33 | 74 | 29.090909 | 0.787582 | 0 | 0 | 0.064516 | 0 | 0 | 0.037756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.483871 | 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 |
b63dcd19255f0740dee3cb5ebedc48f83cab8e29 | 2,075 | py | Python | data/cc_imgfeat/clean_cc_image.py | e-bug/mpre-unmasked | cd12250b58152a558e15a33113bf98d90b88e776 | [
"MIT"
] | 5 | 2020-12-08T12:38:48.000Z | 2021-11-25T13:19:16.000Z | data/cc_imgfeat/clean_cc_image.py | e-bug/mpre-unmasked | cd12250b58152a558e15a33113bf98d90b88e776 | [
"MIT"
] | null | null | null | data/cc_imgfeat/clean_cc_image.py | e-bug/mpre-unmasked | cd12250b58152a558e15a33113bf98d90b88e776 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
import sys
import time
import argparse
import csv
from tqdm import tqdm
csv.field_size_limit(sys.maxsize)
FIELDNAMES = ["img_id", "img_h", "img_w", "objects_id", "objects_conf",
"attrs_id", "attrs_conf", "num_boxes", "boxes", "features",
"cls_prob", "attrs", "classe... | 34.016393 | 119 | 0.639036 | 265 | 2,075 | 4.833962 | 0.532075 | 0.019516 | 0.02498 | 0.046838 | 0.043716 | 0.043716 | 0.043716 | 0 | 0 | 0 | 0 | 0.111039 | 0.253494 | 2,075 | 60 | 120 | 34.583333 | 0.715946 | 0.137349 | 0 | 0 | 0 | 0 | 0.144413 | 0.034957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b641400435446f750de433175e5756d80b7a29ef | 850 | py | Python | bin/ExtractChimericRead4Retrain.py | XiDsLab/scFusion | 0398a12272683b84c712903eb1453ab058e6862f | [
"MIT"
] | 7 | 2021-08-21T05:54:12.000Z | 2022-03-14T07:24:08.000Z | bin/ExtractChimericRead4Retrain.py | XiDsLab/scFusion | 0398a12272683b84c712903eb1453ab058e6862f | [
"MIT"
] | 3 | 2021-05-29T11:12:38.000Z | 2021-09-22T06:25:22.000Z | bin/ExtractChimericRead4Retrain.py | ZijieJin/scFusion | 13beb881fd5cce096cfbd5ed436c28ccb43a57c9 | [
"MIT"
] | 4 | 2020-12-28T04:22:52.000Z | 2021-05-30T05:17:01.000Z | from __future__ import print_function
from __future__ import division
import sys
import numpy as np
import math
import random
# ***** readme *****
# This code extracts chimeric read from sam file for training, with pos and direction
# The input is *ChiDist_middle.txt
infile = open(sys.argv[1])
lines = infile.readlin... | 34 | 137 | 0.651765 | 123 | 850 | 4.422764 | 0.577236 | 0.027574 | 0.058824 | 0.069853 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038244 | 0.169412 | 850 | 24 | 138 | 35.416667 | 0.732295 | 0.158824 | 0 | 0 | 0 | 0 | 0.030942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 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 |
b65304902bc7cb39117a4a6431d04b08e7e97182 | 452 | py | Python | Dataset/Leetcode/train/110/700.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/110/700.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/110/700.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> bool:
return self.blance(root) != -1
def blance(self, node):
if not node:
return 0
lh = self.blance(node.left)
if lh == -1:
return -1
rh = self.blance(node.right)
if r... | 20.545455 | 42 | 0.418142 | 54 | 452 | 3.5 | 0.388889 | 0.148148 | 0.169312 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037815 | 0.473451 | 452 | 21 | 43 | 21.52381 | 0.756303 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
b661d0b7256f36ef2a1c074bea523a0116ee25dd | 1,497 | py | Python | vida/usgs/admin.py | ROGUE-JCTD/vida | 2b2592a6998b9bfc63e948beb2342862b657a4fb | [
"MIT"
] | 2 | 2016-01-09T15:45:46.000Z | 2019-04-28T03:56:13.000Z | vida/usgs/admin.py | ROGUE-JCTD/vida | 2b2592a6998b9bfc63e948beb2342862b657a4fb | [
"MIT"
] | 3 | 2015-09-26T16:31:19.000Z | 2015-10-07T13:03:00.000Z | vida/usgs/admin.py | ROGUE-JCTD/vida | 2b2592a6998b9bfc63e948beb2342862b657a4fb | [
"MIT"
] | 4 | 2016-01-20T13:06:31.000Z | 2019-09-13T14:52:00.000Z | from .models import GovUnits, Reserve, NativeAmericanArea, IncorporatedPlace, UnincorporatedPlace, CountyorEquivalent, \
MinorCivilDivision, StateorTerritoryHigh
from django.contrib.gis import admin
class GovUnitsAdmin(admin.OSMGeoAdmin):
pass
class ReserveAdmin(admin.OSMGeoAdmin):
search_fields = ['nam... | 36.512195 | 120 | 0.766867 | 144 | 1,497 | 7.763889 | 0.284722 | 0.072451 | 0.069767 | 0.048301 | 0.100179 | 0.100179 | 0.064401 | 0 | 0 | 0 | 0 | 0 | 0.111556 | 1,497 | 40 | 121 | 37.425 | 0.840602 | 0.269205 | 0 | 0.15 | 0 | 0 | 0.26151 | 0.042357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b6657feb8a4aa8a1d9c8051d0a6f1bbe6d70dc49 | 2,564 | py | Python | django/sales/views.py | vollov/sm | 51f6384f3ea1dc4b7d0a37135aeb2473ee081899 | [
"MIT"
] | null | null | null | django/sales/views.py | vollov/sm | 51f6384f3ea1dc4b7d0a37135aeb2473ee081899 | [
"MIT"
] | null | null | null | django/sales/views.py | vollov/sm | 51f6384f3ea1dc4b7d0a37135aeb2473ee081899 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import CustomerForm
from .models import Customer
from store.models import Store
import logging
logger = logging.getLogger(__name__)
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
from django.shortcuts import render_... | 33.298701 | 79 | 0.601404 | 266 | 2,564 | 5.62782 | 0.259399 | 0.051436 | 0.07014 | 0.04008 | 0.378758 | 0.234469 | 0.234469 | 0.197061 | 0.197061 | 0.197061 | 0 | 0.005093 | 0.310842 | 2,564 | 77 | 80 | 33.298701 | 0.842105 | 0.035101 | 0 | 0.346154 | 0 | 0 | 0.119441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.019231 | 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 |
b668b9dd8518d80df8f71ff1e0deac79c7f9529c | 267 | py | Python | create_table.py | wfaria/pythonUrlShortener | f833b64e08ed07da9d12b826c7f0354d6952655f | [
"MIT"
] | null | null | null | create_table.py | wfaria/pythonUrlShortener | f833b64e08ed07da9d12b826c7f0354d6952655f | [
"MIT"
] | null | null | null | create_table.py | wfaria/pythonUrlShortener | f833b64e08ed07da9d12b826c7f0354d6952655f | [
"MIT"
] | null | null | null | """
Small class to create the table necessary for this project.
"""
from flask import Flask
from shortened_url_data import shortenedUrlDb
app = Flask(__name__);
app.config.from_pyfile('config.py');
shortenedUrlDb.init_app(app);
shortenedUrlDb.create_all(app = app); | 24.272727 | 59 | 0.786517 | 38 | 267 | 5.289474 | 0.631579 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108614 | 267 | 11 | 60 | 24.272727 | 0.844538 | 0.220974 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b66b8af952e96ab1997eeadc3608a7f72f9f4697 | 484 | py | Python | Script/Commands/Messages/Useful/support_server.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | Script/Commands/Messages/Useful/support_server.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | Script/Commands/Messages/Useful/support_server.py | AIDRI/Clash-Of-Clans-Discord-Bot | 2a9f0495e30ae22ca487886fa48f9d206a545b99 | [
"BSD-3-Clause"
] | null | null | null | import discord
from Script.import_functions import create_embed_img
async def support_server(ctx):
url = "attachment://support_server.png"
file = discord.File("Pictures/Support_Server.png", filename="support_server.png")
embed = create_embed_img("Our support server :", "Join our support server if you have... | 44 | 198 | 0.752066 | 70 | 484 | 5.057143 | 0.528571 | 0.220339 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130165 | 484 | 10 | 199 | 48.4 | 0.840855 | 0 | 0 | 0 | 0 | 0 | 0.380165 | 0.119835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 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 |
b66f1c187ba68ff6e20dffd192d04bfd96b05b0d | 9,059 | py | Python | userlib/analysislib/paco_analysis/get_OD_.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/get_OD_.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/get_OD_.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | # Takes RAW arrays and returns calculated OD for given shot
# along with the best fit (between gaussian and TF) for ROI.
from __future__ import division
from lyse import *
from pylab import *
from common.fit_gaussian_2d import fit_2d
from common.traces import *
from spinor.aliases import *
from time import time
from s... | 45.752525 | 119 | 0.538912 | 1,274 | 9,059 | 3.597331 | 0.231554 | 0.052804 | 0.036875 | 0.005237 | 0.333188 | 0.277984 | 0.245036 | 0.191578 | 0.186123 | 0.175213 | 0 | 0.045828 | 0.327961 | 9,059 | 198 | 120 | 45.752525 | 0.706965 | 0.129153 | 0 | 0.246835 | 0 | 0 | 0.108549 | 0.014524 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107595 | null | null | 0.113924 | 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 |
b67c0c2c4127d04eaf89bf2148d2e6a7cc088740 | 625 | py | Python | blog/models.py | krystacassidy/djangoblog | 37dec5360c27b2622212ced1abdda1dfedf480cb | [
"MIT"
] | 8 | 2017-01-16T16:36:21.000Z | 2018-05-08T05:55:42.000Z | blog/models.py | krystacassidy/djangoblog | 37dec5360c27b2622212ced1abdda1dfedf480cb | [
"MIT"
] | null | null | null | blog/models.py | krystacassidy/djangoblog | 37dec5360c27b2622212ced1abdda1dfedf480cb | [
"MIT"
] | 1 | 2018-02-18T17:30:17.000Z | 2018-02-18T17:30:17.000Z | from django.db import models
from django.db.models.signals import pre_save
from .utils import unique_slug_generator
class Post(models.Model):
title = models.CharField(max_length=150)
body = models.TextField()
date = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
... | 26.041667 | 62 | 0.7472 | 86 | 625 | 5.197674 | 0.511628 | 0.06264 | 0.053691 | 0.116331 | 0.111857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005703 | 0.1584 | 625 | 23 | 63 | 27.173913 | 0.844106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.066667 | 0.8 | 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 |
b6836068a15dc976e6d5dc06ca00c4aefc505910 | 106,291 | py | Python | plots/ms_plotter.py | mcclearyj/Balrog-Galsim-NFW | 095f2245711e0172315432f49f6e79f795a457e5 | [
"MIT"
] | 4 | 2019-05-23T21:26:33.000Z | 2021-09-07T17:15:42.000Z | plots/ms_plotter.py | mcclearyj/Balrog-Galsim-NFW | 095f2245711e0172315432f49f6e79f795a457e5 | [
"MIT"
] | 81 | 2017-08-31T19:15:12.000Z | 2020-04-16T19:56:57.000Z | plots/ms_plotter.py | mcclearyj/Balrog-Galsim-NFW | 095f2245711e0172315432f49f6e79f795a457e5 | [
"MIT"
] | 9 | 2017-08-30T14:46:16.000Z | 2022-03-15T14:29:20.000Z | """Creates various plots for Balrog validation testing.
To run: $python ms_plotter.py base_path_to_catalogs output_directory realization tile
Example: $python ms_plotter.py /data/des71.a/data/kuropat/des2247-4414_sof/y3v02/ /Users/mspletts/BalValPlots/ all DES2247-4414
Relies on ms_matcher. User may need to replace ... | 38.234173 | 682 | 0.66523 | 16,420 | 106,291 | 4.055055 | 0.05743 | 0.00811 | 0.009762 | 0.010513 | 0.565391 | 0.492956 | 0.430028 | 0.387465 | 0.348147 | 0.315241 | 0 | 0.029233 | 0.210225 | 106,291 | 2,779 | 683 | 38.247931 | 0.763943 | 0.133464 | 0 | 0.301951 | 0 | 0.008482 | 0.121251 | 0.009439 | 0 | 0 | 0 | 0.001439 | 0 | 0 | null | null | 0 | 0.005937 | null | null | 0.054283 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.