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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f8f74b68c8a0b624bce25aac5565a54b5d07692 | 653 | py | Python | pentest-scripts/python-web-penetration-testing-cookbook/Chapter_01_Code/6_screenshot_by_port.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 6 | 2021-12-07T21:02:12.000Z | 2022-03-03T12:08:14.000Z | pentest-scripts/python-web-penetration-testing-cookbook/Chapter_01_Code/6_screenshot_by_port.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | null | null | null | pentest-scripts/python-web-penetration-testing-cookbook/Chapter_01_Code/6_screenshot_by_port.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 1 | 2022-01-15T23:57:36.000Z | 2022-01-15T23:57:36.000Z | import screenshot
import requests
portList = [80,443,2082,2083,2086,2087,2095,2096,8080,8880,8443,9998,4643,9001,4489]
IP = '127.0.0.1'
http = 'http://'
https = 'https://'
def testAndSave(protocol, portNumber):
url = protocol + IP + ':' + str(portNumber)
try:
r = requests.get(url,timeou... | 24.185185 | 85 | 0.568147 | 80 | 653 | 4.6125 | 0.65 | 0.070461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146288 | 0.298622 | 653 | 26 | 86 | 25.115385 | 0.659389 | 0 | 0 | 0 | 0 | 0 | 0.068581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.1 | null | null | 0.05 | 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 |
7e18f2b07bd0775ef78b4f654734ad0d6dfd335d | 859 | py | Python | src/scan/config.py | lmolas-sadosky/misfortune-cookie | b9097a02a6a75264f00453357bb3d65e69fc9d2e | [
"BSD-2-Clause"
] | 3 | 2017-07-27T17:47:47.000Z | 2021-07-13T08:12:25.000Z | src/scan/config.py | lmolas-sadosky/misfortune-cookie | b9097a02a6a75264f00453357bb3d65e69fc9d2e | [
"BSD-2-Clause"
] | null | null | null | src/scan/config.py | lmolas-sadosky/misfortune-cookie | b9097a02a6a75264f00453357bb3d65e69fc9d2e | [
"BSD-2-Clause"
] | null | null | null | import os
SCAN_ROOT = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../scan/')
SCAN_DIR = os.path.join(SCAN_ROOT, 'archive/05.06.2017/')
# TODO: Discriminate between scan static (normal) files and scan dynamic (generated by code) files (archive dir).
BANNERS_DIR = os.path.join(SCAN_DIR, 'banners/')
BA... | 33.038462 | 113 | 0.743888 | 147 | 859 | 4.122449 | 0.353742 | 0.118812 | 0.115512 | 0.115512 | 0.344884 | 0.158416 | 0.089109 | 0 | 0 | 0 | 0 | 0.013175 | 0.116414 | 859 | 25 | 114 | 34.36 | 0.785244 | 0.235157 | 0 | 0 | 0 | 0 | 0.11026 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
7e27c3e61fb8f1e63186352aacd7f828a8feb9e2 | 5,152 | py | Python | src/interface_with_flask.py | qazwsx74269/Scene-Recognition-wechat-project | afa89d7a05015c387c40ceceb4e669b950f41997 | [
"MIT"
] | null | null | null | src/interface_with_flask.py | qazwsx74269/Scene-Recognition-wechat-project | afa89d7a05015c387c40ceceb4e669b950f41997 | [
"MIT"
] | null | null | null | src/interface_with_flask.py | qazwsx74269/Scene-Recognition-wechat-project | afa89d7a05015c387c40ceceb4e669b950f41997 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
from flask import Flask,request,make_response
from WXBizMsgCrypt import WXBizMsgCrypt
import time
import os
import torch
from torch.autograd import Variable
from torch import nn,optim
import torchvision.transforms as transforms
import os
import pickle
import PIL
import sys
import requests
from ... | 33.673203 | 224 | 0.685365 | 643 | 5,152 | 5.410575 | 0.354588 | 0.014085 | 0.006899 | 0.012647 | 0.197471 | 0.149181 | 0.139408 | 0.104915 | 0.06065 | 0.02357 | 0 | 0.02639 | 0.168866 | 5,152 | 153 | 225 | 33.673203 | 0.786081 | 0.085404 | 0 | 0.188525 | 0 | 0.008197 | 0.155769 | 0.090828 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188525 | null | null | 0.114754 | 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 |
7e2bd2c2ae83f00f30c16cda26c47f6028fd104d | 517 | py | Python | app/core/migrations/0040_auto_20201205_1239.py | klmsathish/forecast_api | b0e0d343179bb17d3c3033a8bcb14d01460dd301 | [
"MIT"
] | null | null | null | app/core/migrations/0040_auto_20201205_1239.py | klmsathish/forecast_api | b0e0d343179bb17d3c3033a8bcb14d01460dd301 | [
"MIT"
] | null | null | null | app/core/migrations/0040_auto_20201205_1239.py | klmsathish/forecast_api | b0e0d343179bb17d3c3033a8bcb14d01460dd301 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-05 12:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0039_auto_20201205_1218'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='postImage',
... | 22.478261 | 81 | 0.574468 | 53 | 517 | 5.509434 | 0.716981 | 0.061644 | 0.089041 | 0.116438 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086111 | 0.303675 | 517 | 22 | 82 | 23.5 | 0.725 | 0.087041 | 0 | 0.375 | 1 | 0 | 0.134043 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e2e321dd9e904370614bc5fdff0aebd684fce72 | 3,558 | py | Python | Machine Learning/Online Search Relevance Metrics/metrics/resources.py | endorama/examples | 17d9d0bf9e49863bd776d6dbce1f6a6c58fe2b24 | [
"Apache-2.0"
] | 2,561 | 2015-09-04T10:36:10.000Z | 2022-03-25T19:24:16.000Z | Machine Learning/Online Search Relevance Metrics/metrics/resources.py | Ayoush/examples | cf9d21b23ea471af7324bff0e0b66102530f33ab | [
"Apache-2.0"
] | 213 | 2015-09-03T22:15:09.000Z | 2022-01-29T14:41:48.000Z | Machine Learning/Online Search Relevance Metrics/metrics/resources.py | Ayoush/examples | cf9d21b23ea471af7324bff0e0b66102530f33ab | [
"Apache-2.0"
] | 1,341 | 2015-09-06T05:35:52.000Z | 2022-03-30T08:51:26.000Z | import json
import os
import time
from timeit import default_timer as timer
IGNORES = [400, 404]
INDEX = 'ecs-search-metrics'
TRANSFORM_NAMES = [f'{INDEX}_transform_queryid', f'{INDEX}_transform_completion']
INDEX_NAMES = [INDEX] + TRANSFORM_NAMES
PIPELINE_NAMES = INDEX_NAMES
class Timer:
def __enter__(self):
... | 25.970803 | 105 | 0.675379 | 484 | 3,558 | 4.818182 | 0.245868 | 0.043739 | 0.051458 | 0.025729 | 0.135506 | 0.095197 | 0.042453 | 0 | 0 | 0 | 0 | 0.010839 | 0.196178 | 3,558 | 136 | 106 | 26.161765 | 0.804545 | 0.103991 | 0 | 0.072289 | 0 | 0 | 0.119822 | 0.01689 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.228916 | false | 0 | 0.048193 | 0 | 0.361446 | 0.108434 | 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 |
7e331c39a878685152c83bc67c36053858c7a70e | 2,792 | py | Python | models/sdo_thing.py | trompamusic/ce-data-import | 112d2bc9ce74a85cd2a35f19f4e517891cbc98bc | [
"Apache-2.0"
] | 1 | 2019-10-02T19:06:08.000Z | 2019-10-02T19:06:08.000Z | models/sdo_thing.py | trompamusic/ce-data-import | 112d2bc9ce74a85cd2a35f19f4e517891cbc98bc | [
"Apache-2.0"
] | 10 | 2020-01-13T10:48:43.000Z | 2021-04-07T10:26:59.000Z | models/sdo_thing.py | trompamusic/ce-data-import | 112d2bc9ce74a85cd2a35f19f4e517891cbc98bc | [
"Apache-2.0"
] | 1 | 2019-06-18T11:13:37.000Z | 2019-06-18T11:13:37.000Z | """The schema.org Thing model.
For reference see schema.org: https://schema.org/Thing
"""
from dataclasses import dataclass
@dataclass
class Thing:
"""
The schema.org Thing model
Attributes
----------
identifier
PropertyValue or Text or URL
The identifier property represents any... | 33.638554 | 79 | 0.669771 | 355 | 2,792 | 5.267606 | 0.414085 | 0.03369 | 0.028877 | 0.018182 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290831 | 2,792 | 82 | 80 | 34.04878 | 0.944444 | 0.776146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.933333 | 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 |
7e369329f0bc9dc46b1254a0550eb6e1817e2bc7 | 280 | py | Python | examples/markers/create_two_dimensional.py | gugarosa/opytimark | cad25623f23ce4b509d59381cf7bd79e41a966b6 | [
"Apache-2.0"
] | 3 | 2020-06-11T22:58:26.000Z | 2021-03-15T20:12:29.000Z | examples/markers/create_two_dimensional.py | gugarosa/opytimark | cad25623f23ce4b509d59381cf7bd79e41a966b6 | [
"Apache-2.0"
] | 1 | 2020-08-13T12:10:35.000Z | 2020-08-17T14:30:45.000Z | examples/markers/create_two_dimensional.py | gugarosa/opytimark | cad25623f23ce4b509d59381cf7bd79e41a966b6 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from opytimark.markers.two_dimensional import Adjiman
# Declaring a function from the `two_dimensional` package
f = Adjiman()
# Declaring an input variable for feeding the function
x = np.array([2, 0.10578])
# Printing out the function's output
print(f(x))
| 21.538462 | 57 | 0.764286 | 44 | 280 | 4.818182 | 0.704545 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029536 | 0.153571 | 280 | 12 | 58 | 23.333333 | 0.864979 | 0.510714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e3f0be321f0f93715b98962d1c3156234461c25 | 620 | py | Python | pmf-and-cdf/main.py | mgenware/rl-experiments | ff3c25ccc64e569c4c34b3bd7fd430448ee85e8b | [
"MIT"
] | null | null | null | pmf-and-cdf/main.py | mgenware/rl-experiments | ff3c25ccc64e569c4c34b3bd7fd430448ee85e8b | [
"MIT"
] | null | null | null | pmf-and-cdf/main.py | mgenware/rl-experiments | ff3c25ccc64e569c4c34b3bd7fd430448ee85e8b | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
colors = ['gold', 'yellowgreen', 'c', 'royalblue', 'pink']
# randomly generate the number of occurrences of each color
occurrences = np.random.randint(10, size=len(colors)) + 1
# pmf of the distribution
sum = np.sum(occurrences)
pmf = occurrences / sum
print(pmf)
#... | 20 | 59 | 0.71129 | 102 | 620 | 4.284314 | 0.480392 | 0.020595 | 0.02746 | 0.06865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018553 | 0.130645 | 620 | 30 | 60 | 20.666667 | 0.792208 | 0.159677 | 0 | 0 | 1 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e41515e1f4ad0470a66d9ca11032bbfb2b5bc1b | 1,072 | py | Python | src/decol/util.py | ctberthiaume/decol | 7151d76420795be427fce113ffa3e7306c271789 | [
"MIT"
] | null | null | null | src/decol/util.py | ctberthiaume/decol | 7151d76420795be427fce113ffa3e7306c271789 | [
"MIT"
] | null | null | null | src/decol/util.py | ctberthiaume/decol | 7151d76420795be427fce113ffa3e7306c271789 | [
"MIT"
] | null | null | null | from functools import wraps
from operator import itemgetter
from signal import getsignal, signal, SIGPIPE, SIG_DFL
def dslice(x, indexes):
"""Slice with discontinuous indexes."""
if not x or not indexes:
return []
subx = itemgetter(*indexes)(x)
if len(indexes) == 1:
return [subx]
e... | 28.210526 | 84 | 0.666045 | 132 | 1,072 | 5.371212 | 0.583333 | 0.055007 | 0.045134 | 0.053597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001241 | 0.248134 | 1,072 | 37 | 85 | 28.972973 | 0.878412 | 0.363806 | 0 | 0 | 0 | 0 | 0.001538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.521739 | 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 |
7e41d449bc25951b8ba2a6ec5d9afb938a23671b | 1,431 | py | Python | setup.py | fredbaa/imgur-scraper | c1e489acf1e3ee79a74139bc1c7d2921d0c01e3f | [
"MIT"
] | 1 | 2020-02-08T20:27:37.000Z | 2020-02-08T20:27:37.000Z | setup.py | fredbaa/imgur-scraper | c1e489acf1e3ee79a74139bc1c7d2921d0c01e3f | [
"MIT"
] | null | null | null | setup.py | fredbaa/imgur-scraper | c1e489acf1e3ee79a74139bc1c7d2921d0c01e3f | [
"MIT"
] | null | null | null | import os
from setuptools import setup
NAME = "imgur_scraper"
DESCRIPTION = "Scrape years of Imgur's data without any authentication."
URL = "https://github.com/saadmanrafat/imgur-scraper"
EMAIL = "saadmanhere@gmail.com"
AUTHOR = "Saadman Rafat"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "0.1.14"
REQUIRED = ["requests-ht... | 30.446809 | 77 | 0.675751 | 162 | 1,431 | 5.814815 | 0.506173 | 0.141189 | 0.185775 | 0.110403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012942 | 0.190077 | 1,431 | 46 | 78 | 31.108696 | 0.799827 | 0 | 0 | 0 | 0 | 0 | 0.429769 | 0.04682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 |
7e435761fa789707cde4d12cadea75236dfdf04b | 3,682 | py | Python | axon/apps/stats.py | PradeepSingh1988/validation-app-engine | 81ed23939bc72ecbe188e22effed07e23f6e8b28 | [
"BSD-2-Clause"
] | null | null | null | axon/apps/stats.py | PradeepSingh1988/validation-app-engine | 81ed23939bc72ecbe188e22effed07e23f6e8b28 | [
"BSD-2-Clause"
] | null | null | null | axon/apps/stats.py | PradeepSingh1988/validation-app-engine | 81ed23939bc72ecbe188e22effed07e23f6e8b28 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2019 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2 License
# The full license information can be found in LICENSE.txt
# in the root directory of this project.
import time
from axon.db.sql.analytics import session_scope
from axon.db.sql.repository import Repos... | 42.813953 | 77 | 0.58012 | 421 | 3,682 | 4.774347 | 0.185273 | 0.114925 | 0.131343 | 0.183085 | 0.71592 | 0.697015 | 0.694527 | 0.637313 | 0.597512 | 0.597512 | 0 | 0.003306 | 0.342749 | 3,682 | 85 | 78 | 43.317647 | 0.827273 | 0.056491 | 0 | 0.492308 | 0 | 0 | 0.002883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.046154 | 0 | 0.323077 | 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 |
7e4c750d72ba48183bdd6c45d94367097ad993a8 | 4,852 | py | Python | src/utils/parser.py | stupiding/insightface | 85a3b65c07b39e7ad02aabddd6cb6529baf4e605 | [
"MIT"
] | null | null | null | src/utils/parser.py | stupiding/insightface | 85a3b65c07b39e7ad02aabddd6cb6529baf4e605 | [
"MIT"
] | null | null | null | src/utils/parser.py | stupiding/insightface | 85a3b65c07b39e7ad02aabddd6cb6529baf4e605 | [
"MIT"
] | null | null | null | import argparse
def parse_args():
parser = argparse.ArgumentParser(description='Train face network')
# general
parser.add_argument('--data-dir', default='', help='training set directory')
parser.add_argument('--prefix', default='../model/model', help='directory to save model.')
parser.add_argument('--pretrai... | 80.866667 | 144 | 0.721558 | 718 | 4,852 | 4.791086 | 0.239554 | 0.13343 | 0.252035 | 0.049419 | 0.344767 | 0.236919 | 0.164826 | 0.097384 | 0 | 0 | 0 | 0.020073 | 0.096455 | 4,852 | 59 | 145 | 82.237288 | 0.764599 | 0.001443 | 0 | 0 | 0 | 0 | 0.366171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.053571 | 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 |
7e50ff027600864c31aa7a1eb9a629679b0d2594 | 706 | py | Python | pnp/api/endpoints/ping.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 4 | 2018-10-07T11:32:00.000Z | 2019-04-23T09:34:23.000Z | pnp/api/endpoints/ping.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | null | null | null | pnp/api/endpoints/ping.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 1 | 2019-08-12T19:56:10.000Z | 2019-08-12T19:56:10.000Z | """Contains a ping endpoint."""
from fastapi import FastAPI
from starlette.responses import PlainTextResponse
from .base import Endpoint
class Ping(Endpoint):
"""Ping endpoint. When requested just returns a simple pong."""
async def endpoint(self) -> str:
"""Returns 'pong' when requested. Use this ... | 29.416667 | 78 | 0.654391 | 82 | 706 | 5.621951 | 0.597561 | 0.078091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246459 | 706 | 23 | 79 | 30.695652 | 0.866541 | 0.18272 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7e56b3a43c197eedfb30f29b99864cdc3f33ebf2 | 901 | py | Python | AppDB/test/unit/test_cassandra_prime.py | echoi-appscale/appscale | bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc | [
"Apache-2.0"
] | 1 | 2017-04-07T15:33:35.000Z | 2017-04-07T15:33:35.000Z | AppDB/test/unit/test_cassandra_prime.py | echoi-appscale/appscale | bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc | [
"Apache-2.0"
] | 1 | 2019-10-15T15:57:53.000Z | 2019-10-15T15:57:53.000Z | AppDB/test/unit/test_cassandra_prime.py | echoi-appscale/appscale | bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc | [
"Apache-2.0"
] | 1 | 2019-08-27T05:19:48.000Z | 2019-08-27T05:19:48.000Z | #!/usr/bin/env python2
import unittest
from appscale.common import appscale_info
from appscale.datastore import dbconstants
from cassandra.cluster import Cluster
from appscale.datastore.cassandra_env import schema
from flexmock import flexmock
class TestCassandraPrimer(unittest.TestCase):
def test_define_ua_schem... | 32.178571 | 71 | 0.780244 | 113 | 901 | 6.026549 | 0.415929 | 0.052863 | 0.061674 | 0.082232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011392 | 0.123196 | 901 | 27 | 72 | 33.37037 | 0.850633 | 0.023307 | 0 | 0 | 0 | 0 | 0.048919 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.473684 | 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 |
7e5cdcdd0bb1186a0795fab92f1da0ac05371959 | 10,519 | py | Python | kivymd/uix/imagelist.py | Yaaash93/Consolidate | 541d81bd44ed9b86a15e28904c45c31ddf3b7586 | [
"MIT"
] | 18 | 2020-03-14T18:26:45.000Z | 2022-02-26T13:36:26.000Z | kivymd/uix/imagelist.py | Yaaash93/Consolidate | 541d81bd44ed9b86a15e28904c45c31ddf3b7586 | [
"MIT"
] | null | null | null | kivymd/uix/imagelist.py | Yaaash93/Consolidate | 541d81bd44ed9b86a15e28904c45c31ddf3b7586 | [
"MIT"
] | 2 | 2020-03-15T13:09:58.000Z | 2020-03-16T20:13:49.000Z | """
Components/Image List
=====================
.. seealso::
`Material Design spec, Image lists <https://material.io/components/image-lists>`_
.. rubric:: Image lists display a collection of images in an organized grid.
.. image:: https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymddoc/image-list... | 25.781863 | 104 | 0.604715 | 1,256 | 10,519 | 4.950637 | 0.183917 | 0.033773 | 0.018012 | 0.027018 | 0.514635 | 0.484239 | 0.442264 | 0.433258 | 0.419106 | 0.379543 | 0 | 0.011873 | 0.279399 | 10,519 | 407 | 105 | 25.845209 | 0.808443 | 0.310771 | 0 | 0.058824 | 0 | 0 | 0.017416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.014706 | 0.117647 | 0.014706 | 0.573529 | 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 |
7e5fffe879ad60c94db7e117bc36d24c360fb0e9 | 1,093 | py | Python | target_oracle/config.py | wake-forest-ctsi/target-oracle | bf4a76296b5e74e4fc9ffc04e52bd88a6babbb91 | [
"MIT"
] | null | null | null | target_oracle/config.py | wake-forest-ctsi/target-oracle | bf4a76296b5e74e4fc9ffc04e52bd88a6babbb91 | [
"MIT"
] | 1 | 2022-03-22T19:53:48.000Z | 2022-03-22T19:53:48.000Z | target_oracle/config.py | wake-forest-ctsi/target-oracle | bf4a76296b5e74e4fc9ffc04e52bd88a6babbb91 | [
"MIT"
] | null | null | null | from singer_sdk import typing as th
target_config = th.PropertiesList(
th.Property("drivername", th.StringType, required=False, description="the name of the database backend. This name will correspond to a module in sqlalchemy/databases or a third party plug-in.", default="oracle+cx_oracle"),
th.Property("user... | 78.071429 | 226 | 0.753888 | 149 | 1,093 | 5.449664 | 0.456376 | 0.098522 | 0.123153 | 0.118227 | 0.222906 | 0.140394 | 0 | 0 | 0 | 0 | 0 | 0.004175 | 0.123513 | 1,093 | 14 | 227 | 78.071429 | 0.843424 | 0.144556 | 0 | 0 | 0 | 0.090909 | 0.364026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 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 |
7e60f3f5370b8a7dfe601f60a0f9c91134afb1e3 | 5,940 | py | Python | indico/modules/users/forms.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/modules/users/forms.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/modules/users/forms.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from operator import itemgetter
from pytz import common_timezone... | 45.692308 | 120 | 0.702189 | 646 | 5,940 | 6.26935 | 0.331269 | 0.02716 | 0.016049 | 0.022222 | 0.133827 | 0.063704 | 0.063704 | 0.042963 | 0.016296 | 0.016296 | 0 | 0.002505 | 0.193603 | 5,940 | 129 | 121 | 46.046512 | 0.843006 | 0.03367 | 0 | 0.06383 | 0 | 0 | 0.149834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0.031915 | 0.191489 | 0 | 0.606383 | 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 |
7e6f1d4289873132bae9413d9f8c1d69de8a2f82 | 353 | py | Python | pyglobi/config.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | pyglobi/config.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | pyglobi/config.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
pyglobi.config
~~~~~~~~~~~~
Configuration used by pyglobi
:copyright: (c) 2019 by Chris Nicholas.
:license: MIT, see LICENSE for more details.
"""
# Base URL's
globi_neo_url = "https://neo4j.globalbioticinteractions.org/db/data/cypher"
eol_url = "https://eol.org/pages"
eol_geo_url = "htt... | 20.764706 | 75 | 0.691218 | 51 | 353 | 4.647059 | 0.705882 | 0.101266 | 0.092827 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0.11898 | 353 | 16 | 76 | 22.0625 | 0.742765 | 0.498584 | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e7431e8383f71c70f92b3cbf9c6b494c84d9a01 | 2,353 | py | Python | python/stat_auction.py | opendp/prelim | 0ee995237f245a9f0ed4253cfd3bc8905b6019f8 | [
"MIT"
] | 1 | 2022-03-12T16:30:23.000Z | 2022-03-12T16:30:23.000Z | python/stat_auction.py | opendp/prelim | 0ee995237f245a9f0ed4253cfd3bc8905b6019f8 | [
"MIT"
] | null | null | null | python/stat_auction.py | opendp/prelim | 0ee995237f245a9f0ed4253cfd3bc8905b6019f8 | [
"MIT"
] | null | null | null | from meas_exponential import mechanism_exponential_discrete
import numpy as np
def score_auction_price_discrete(x, candidates):
return candidates * (x[None] >= candidates[:, None]).sum(axis=1)
def release_dp_auction_price_via_de(x, candidate_prices, epsilon):
"""Release a price for a digital auction that ma... | 39.216667 | 117 | 0.746281 | 332 | 2,353 | 5.087349 | 0.316265 | 0.029603 | 0.037892 | 0.033748 | 0.368265 | 0.28656 | 0.209591 | 0.08881 | 0.08881 | 0.08881 | 0 | 0.0143 | 0.167871 | 2,353 | 60 | 118 | 39.216667 | 0.848315 | 0.356566 | 0 | 0 | 0 | 0 | 0.045578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.074074 | 0.444444 | 0.074074 | 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 |
7e773d3da7d1adfaa7661821038f293cf902d654 | 20,821 | py | Python | ceof/ceof.py | castelao/pyCEOF | 0f14a4fd594aed488d2f77e8b88ad9ce8c72c2f2 | [
"BSD-3-Clause"
] | 1 | 2015-12-03T14:36:48.000Z | 2015-12-03T14:36:48.000Z | ceof/ceof.py | castelao/pyCEOF | 0f14a4fd594aed488d2f77e8b88ad9ce8c72c2f2 | [
"BSD-3-Clause"
] | null | null | null | ceof/ceof.py | castelao/pyCEOF | 0f14a4fd594aed488d2f77e8b88ad9ce8c72c2f2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: Latin-1 -*-
""" Class to deal with Complex EOF
"""
from UserDict import UserDict
import numpy
import numpy as np
from numpy import ma
import scipy.fftpack
from pyclimate.svdeofs import svdeofs, getvariancefraction
from utils import scaleEOF
def ceof_scalar2D(data):
""" Est... | 37.650995 | 184 | 0.551462 | 2,750 | 20,821 | 4.074545 | 0.167273 | 0.034984 | 0.018652 | 0.00714 | 0.336992 | 0.291299 | 0.25444 | 0.228737 | 0.195627 | 0.191879 | 0 | 0.026166 | 0.263964 | 20,821 | 552 | 185 | 37.719203 | 0.704992 | 0.312089 | 0 | 0.135338 | 0 | 0 | 0.131389 | 0.013615 | 0 | 0 | 0 | 0 | 0.018797 | 0 | null | null | 0.041353 | 0.078947 | null | null | 0.048872 | 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 |
7e7a54d5497d6e15d442539fe90333bfd4378ee5 | 4,622 | py | Python | eqllib/schemas.py | macdaliot/eqllib | 4d6070e77340f45141033c3b155e23667777a2ea | [
"MIT"
] | null | null | null | eqllib/schemas.py | macdaliot/eqllib | 4d6070e77340f45141033c3b155e23667777a2ea | [
"MIT"
] | null | null | null | eqllib/schemas.py | macdaliot/eqllib | 4d6070e77340f45141033c3b155e23667777a2ea | [
"MIT"
] | null | null | null | """Definitions for analytic metadata and schemas."""
from jsl import DocumentField, ArrayField, StringField, BooleanField, DictField
from jsl import Document as BaseDocument
import jsonschema
UUID_PATTERN = r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
OS_NAMES = ["linux", "macos", "windows"]
TACTICS... | 33.737226 | 119 | 0.681956 | 481 | 4,622 | 6.438669 | 0.286902 | 0.092993 | 0.103972 | 0.043913 | 0.073943 | 0.059089 | 0.028737 | 0.006135 | 0.006135 | 0.006135 | 0 | 0.00484 | 0.19537 | 4,622 | 136 | 120 | 33.985294 | 0.827911 | 0.075076 | 0 | 0.075269 | 0 | 0.010753 | 0.078649 | 0.019131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.55914 | 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 |
7e7fe38a501b87cce9e32f62608fe5cccf8c0009 | 9,371 | py | Python | lib/doekbase/data_api/annotation/genome_annotation/service/interface.py | scanon/data_api2 | f453a8e544cb4052feb56f4cf77ba79122aeedf8 | [
"MIT"
] | null | null | null | lib/doekbase/data_api/annotation/genome_annotation/service/interface.py | scanon/data_api2 | f453a8e544cb4052feb56f4cf77ba79122aeedf8 | [
"MIT"
] | null | null | null | lib/doekbase/data_api/annotation/genome_annotation/service/interface.py | scanon/data_api2 | f453a8e544cb4052feb56f4cf77ba79122aeedf8 | [
"MIT"
] | null | null | null | # Stdlib
import traceback
# Third-party
import zope.interface
from thrift.transport import THttpClient
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
# Local
from doekbase.data_api import exceptions
from doekbase.data_api.annotation.genome_annotation.api import GenomeAnnotationAP... | 37.939271 | 98 | 0.651585 | 1,137 | 9,371 | 5.120493 | 0.139842 | 0.032635 | 0.048952 | 0.058743 | 0.582961 | 0.564067 | 0.548437 | 0.495019 | 0.452937 | 0.412229 | 0 | 0.001876 | 0.260698 | 9,371 | 246 | 99 | 38.093496 | 0.838482 | 0.002561 | 0 | 0.324176 | 0 | 0 | 0.045386 | 0.009509 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06044 | null | null | 0.027473 | 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 |
7e8536d38da531ddeb3b37699c885352ee1311c3 | 2,535 | py | Python | src/CTL/tests/test_cupy.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 11 | 2021-06-23T15:47:03.000Z | 2022-03-17T03:29:55.000Z | src/CTL/tests/test_cupy.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 1 | 2021-10-16T15:10:54.000Z | 2021-10-16T15:10:54.000Z | src/CTL/tests/test_cupy.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 2 | 2021-06-23T09:11:20.000Z | 2021-10-16T15:35:18.000Z | from CTL.tensor.tensor import Tensor
from CTL.tensornetwork.tensornetwork import FiniteTensorNetwork
from CTL.tensornetwork.tensordict import TensorDict
from CTL.tensor.contract.link import makeLink
from CTL.tensor.contract.optimalContract import contractTensorList, generateOptimalSequence, contractWithSequence
from ... | 36.214286 | 157 | 0.686391 | 336 | 2,535 | 5.151786 | 0.431548 | 0.036395 | 0.006932 | 0.025997 | 0.064702 | 0.045061 | 0.045061 | 0 | 0 | 0 | 0 | 0.018509 | 0.21144 | 2,535 | 70 | 158 | 36.214286 | 0.847424 | 0.281262 | 0 | 0.068182 | 0 | 0 | 0.048565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.318182 | 0 | 0.454545 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e89d6ee74ff718dda4b5ef90853f2925ac451a8 | 1,050 | py | Python | tests/test_utils.py | andycasey/mcfa | 8c4135e665e47006e9ca725e8bfc67315508366e | [
"MIT"
] | 2 | 2018-08-23T06:54:17.000Z | 2021-03-05T14:38:41.000Z | tests/test_utils.py | andycasey/mcfa | 8c4135e665e47006e9ca725e8bfc67315508366e | [
"MIT"
] | null | null | null | tests/test_utils.py | andycasey/mcfa | 8c4135e665e47006e9ca725e8bfc67315508366e | [
"MIT"
] | null | null | null |
import numpy as np
from mcfa import utils
np.random.seed(42)
def test_latent_factor_rotation(D=15, J=10, noise=0.05):
# Generate fake factors.
A = np.random.uniform(-1, 1, size=(D, J))
# Randomly flip them.
true_signs = np.sign(np.random.uniform(-1, 1, size=J)).astype(int)
# Add a little n... | 21.875 | 73 | 0.650476 | 171 | 1,050 | 3.836257 | 0.403509 | 0.073171 | 0.073171 | 0.109756 | 0.227134 | 0.106707 | 0.042683 | 0 | 0 | 0 | 0 | 0.02934 | 0.220952 | 1,050 | 47 | 74 | 22.340426 | 0.772616 | 0.127619 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e8ff5a6f1a260293d9e447b076aa6a9728d1314 | 5,201 | py | Python | sdk/table/azure-table/azure/table/_deserialize.py | seankane-msft/azure-sdk-for-python | 7514e744dbf5cdf6c527e9afb11e529a948cfbc0 | [
"MIT"
] | 2 | 2021-01-15T18:30:53.000Z | 2021-09-07T18:31:31.000Z | sdk/table/azure-table/azure/table/_deserialize.py | seankane-msft/azure-sdk-for-python | 7514e744dbf5cdf6c527e9afb11e529a948cfbc0 | [
"MIT"
] | null | null | null | sdk/table/azure-table/azure/table/_deserialize.py | seankane-msft/azure-sdk-for-python | 7514e744dbf5cdf6c527e9afb11e529a948cfbc0 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# pylint: ... | 29.551136 | 89 | 0.635262 | 581 | 5,201 | 5.531842 | 0.333907 | 0.028002 | 0.017424 | 0.014935 | 0.023647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024335 | 0.233609 | 5,201 | 175 | 90 | 29.72 | 0.781987 | 0.238416 | 0 | 0.068627 | 0 | 0 | 0.058504 | 0.011131 | 0 | 0 | 0 | 0.011429 | 0 | 1 | 0.117647 | false | 0 | 0.078431 | 0.078431 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e934fa1c8c7a081ff30bf2acf17ec3206edc5b6 | 662 | py | Python | betting/migrations/0005_auto_20201210_1331.py | kubasikora/WPAM-Projekt-Backend | 09419b9d3b881c8e741ec86e985db0740f28c0c4 | [
"MIT"
] | 1 | 2020-11-06T18:25:20.000Z | 2020-11-06T18:25:20.000Z | betting/migrations/0005_auto_20201210_1331.py | kubasikora/WPAM-Projekt-Backend | 09419b9d3b881c8e741ec86e985db0740f28c0c4 | [
"MIT"
] | 20 | 2020-11-07T00:10:16.000Z | 2021-03-25T15:04:12.000Z | betting/migrations/0005_auto_20201210_1331.py | kubasikora/WPAM-Projekt-Backend | 09419b9d3b881c8e741ec86e985db0740f28c0c4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-10 12:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('betting', '0004_auto_20201208_2005'),
]
operations = [
migrations.RemoveField(
model_name='leag... | 26.48 | 146 | 0.622356 | 70 | 662 | 5.771429 | 0.614286 | 0.059406 | 0.069307 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.26284 | 662 | 24 | 147 | 27.583333 | 0.762295 | 0.067976 | 0 | 0.111111 | 1 | 0 | 0.152846 | 0.037398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e943eb1fb728c2c1a7edf8d8604a99d91188243 | 4,349 | py | Python | Plugins/MadaraLibrary/Source/ThirdParty/madara/maal/maal_stats_cmp.py | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 3 | 2020-03-25T01:59:20.000Z | 2020-06-02T17:58:05.000Z | Plugins/MadaraLibrary/Source/ThirdParty/madara/maal/maal_stats_cmp.py | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | null | null | null | Plugins/MadaraLibrary/Source/ThirdParty/madara/maal/maal_stats_cmp.py | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 1 | 2020-11-05T23:04:05.000Z | 2020-11-05T23:04:05.000Z | #!/usr/bin/env python
## @package maal_monitor
# monitors CPU and Memory usage on an Android smartphone. Does not require monkeyrunner
# "python maal_monitor.py --help" to see available parameters.
# Imports os and system modules which we need to import Ammo scripts
import os
import sys
import re
# Import the Ammo ... | 30.626761 | 87 | 0.610025 | 583 | 4,349 | 4.380789 | 0.281304 | 0.011746 | 0.014096 | 0.009397 | 0.235709 | 0.190681 | 0.114722 | 0.114722 | 0.097494 | 0.060689 | 0 | 0.017895 | 0.241895 | 4,349 | 141 | 88 | 30.843972 | 0.756749 | 0.101403 | 0 | 0.241758 | 0 | 0.032967 | 0.184548 | 0.048768 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054945 | null | null | 0.043956 | 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 |
7e94502b479e992e22986df43e0b1b2ae0d7c36f | 8,303 | py | Python | src/onepasswordconnectsdk/models/field.py | haleemur/connect-sdk-python | a21ac4abeadecf6fc0a23ffbdd092409d996d32b | [
"MIT"
] | null | null | null | src/onepasswordconnectsdk/models/field.py | haleemur/connect-sdk-python | a21ac4abeadecf6fc0a23ffbdd092409d996d32b | [
"MIT"
] | null | null | null | src/onepasswordconnectsdk/models/field.py | haleemur/connect-sdk-python | a21ac4abeadecf6fc0a23ffbdd092409d996d32b | [
"MIT"
] | null | null | null | # coding: utf-8
"""
1Password Connect
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | 26.527157 | 143 | 0.545827 | 988 | 8,303 | 4.519231 | 0.147773 | 0.068085 | 0.078835 | 0.098992 | 0.434938 | 0.399776 | 0.392385 | 0.251512 | 0.21523 | 0.144233 | 0 | 0.023964 | 0.35168 | 8,303 | 312 | 144 | 26.612179 | 0.805499 | 0.350355 | 0 | 0.099291 | 1 | 0 | 0.081087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156028 | false | 0.007092 | 0.021277 | 0 | 0.304965 | 0.014184 | 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 |
7e9d9e44d1a291eb0051d5dbc5c932c31b32f158 | 1,425 | py | Python | core/urls.py | oobobeo/PillowChatServer-django | df6e34e05c5e823faecafb007ed0a98158b737e4 | [
"MIT"
] | null | null | null | core/urls.py | oobobeo/PillowChatServer-django | df6e34e05c5e823faecafb007ed0a98158b737e4 | [
"MIT"
] | null | null | null | core/urls.py | oobobeo/PillowChatServer-django | df6e34e05c5e823faecafb007ed0a98158b737e4 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
# from utils import router
urlpatterns = [
path('', views.home),
# Search for channels
path('channels',views.channels),
# enter/alter/delete a certain channel
path('channels/<int:id>',views.channels_id),
path('channels/<int:id>/users'... | 32.386364 | 78 | 0.722105 | 182 | 1,425 | 5.456044 | 0.252747 | 0.096677 | 0.080564 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003228 | 0.130526 | 1,425 | 43 | 79 | 33.139535 | 0.798224 | 0.12 | 0 | 0 | 0 | 0 | 0.288353 | 0.149398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.16 | 0.08 | 0 | 0.08 | 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 |
7ea4c0a68e8b841f81a33bf2e12ca2efb3d951f1 | 5,462 | py | Python | quaternion/quat_test.py | IhorNehrutsa/micropython-samples | cd54064ee0b0e725bb3c7763b245797018836c2a | [
"MIT"
] | 268 | 2016-04-05T14:23:38.000Z | 2022-03-20T19:19:40.000Z | quaternion/quat_test.py | IhorNehrutsa/micropython-samples | cd54064ee0b0e725bb3c7763b245797018836c2a | [
"MIT"
] | 21 | 2017-10-11T12:49:32.000Z | 2022-01-31T10:45:36.000Z | quaternion/quat_test.py | IhorNehrutsa/micropython-samples | cd54064ee0b0e725bb3c7763b245797018836c2a | [
"MIT"
] | 70 | 2016-06-22T07:10:31.000Z | 2022-03-22T03:38:38.000Z | # quat_test.py Test for quat.py
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2020 Peter Hinch
from math import sin, cos, isclose, pi, sqrt
from quat import *
print('Properties')
q1 = Quaternion(1, 2, 3, 4)
q1.w = 5
q1.x = 6
q1.y = 7
q1.z = 8
assert q1 == Quaternion(5, 6, 7, 8)
assert (q1.w, q... | 27.039604 | 87 | 0.652142 | 1,038 | 5,462 | 3.393064 | 0.178227 | 0.107041 | 0.102215 | 0.112436 | 0.505679 | 0.42703 | 0.388984 | 0.353776 | 0.325383 | 0.288756 | 0 | 0.085802 | 0.16569 | 5,462 | 201 | 88 | 27.174129 | 0.686417 | 0.156536 | 0 | 0.302632 | 0 | 0 | 0.131194 | 0.00764 | 0 | 0 | 0 | 0 | 0.486842 | 1 | 0 | false | 0.013158 | 0.013158 | 0 | 0.013158 | 0.151316 | 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 |
7ea4f16d9b3e454a6e37d49a1f7c9b04f55383d2 | 596 | py | Python | lms/migrations/versions/d9e4bc3797b3_add_application_instance_model.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 38 | 2017-12-30T23:49:53.000Z | 2022-02-15T21:07:49.000Z | lms/migrations/versions/d9e4bc3797b3_add_application_instance_model.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 1,733 | 2017-11-09T18:46:05.000Z | 2022-03-31T11:05:50.000Z | lms/migrations/versions/d9e4bc3797b3_add_application_instance_model.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 10 | 2018-07-11T17:12:46.000Z | 2022-01-07T20:00:23.000Z | """
Add application_instance model.
Revision ID: d9e4bc3797b3
Revises: f013a6b67f91
Create Date: 2017-10-31 09:49:40.491059
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "d9e4bc3797b3"
down_revision = "f013a6b67f91"
def upgrade():
op.create_table(
... | 20.551724 | 74 | 0.689597 | 75 | 596 | 5.373333 | 0.64 | 0.079404 | 0.049628 | 0.079404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11134 | 0.186242 | 596 | 28 | 75 | 21.285714 | 0.719588 | 0.268456 | 0 | 0 | 0 | 0 | 0.185012 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ea880b7a99111ce15b582c947c1901e6e212870 | 4,750 | py | Python | textbook/migrations/0001_initial.py | audiua/shkolyar_django | a2de2dc0a42e6bdd51321f857c0aa1106c51ba80 | [
"MIT"
] | 1 | 2017-04-22T11:00:07.000Z | 2017-04-22T11:00:07.000Z | textbook/migrations/0001_initial.py | audiua/shkolyar_django | a2de2dc0a42e6bdd51321f857c0aa1106c51ba80 | [
"MIT"
] | 6 | 2017-04-20T17:49:39.000Z | 2017-04-22T11:55:07.000Z | textbook/migrations/0001_initial.py | audiua/shkolyar_django | a2de2dc0a42e6bdd51321f857c0aa1106c51ba80 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-24 18:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import main.models
import unixtimestampfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [... | 51.075269 | 182 | 0.602526 | 470 | 4,750 | 5.925532 | 0.221277 | 0.054937 | 0.060323 | 0.132136 | 0.715619 | 0.664273 | 0.598923 | 0.562298 | 0.562298 | 0.437343 | 0 | 0.021313 | 0.259158 | 4,750 | 92 | 183 | 51.630435 | 0.770105 | 0.013895 | 0 | 0.488095 | 1 | 0 | 0.117924 | 0.0141 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.059524 | 0 | 0.107143 | 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 |
7eb07930db64c99cfd5108141fbfcd783ed814e2 | 1,938 | py | Python | examples/mmLogin.py | michaelrosejr/pyaos8 | 2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5 | [
"Apache-2.0"
] | 2 | 2019-07-31T07:35:47.000Z | 2020-01-10T15:45:48.000Z | examples/mmLogin.py | michaelrosejr/pyaos8 | 2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5 | [
"Apache-2.0"
] | null | null | null | examples/mmLogin.py | michaelrosejr/pyaos8 | 2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5 | [
"Apache-2.0"
] | 2 | 2018-11-17T04:33:35.000Z | 2020-09-09T16:08:34.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import pprint as pp
import re
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# MM Login IP and credentials
userName = 'admin'
passWord = 'phattire'
deviceIP = '10... | 31.258065 | 77 | 0.692466 | 229 | 1,938 | 5.80786 | 0.401747 | 0.078195 | 0.05188 | 0.042857 | 0.226316 | 0.193233 | 0.05188 | 0.05188 | 0 | 0 | 0 | 0.02337 | 0.160991 | 1,938 | 61 | 78 | 31.770492 | 0.794588 | 0.254386 | 0 | 0 | 0 | 0 | 0.123422 | 0.025245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0.111111 | 0 | 0.138889 | 0.222222 | 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 |
7eb30224d5fa25527dae8555393e732f354ed0c7 | 553 | py | Python | application.py | jona42-ui/sabbath | 994938c1d452c67cabd158372677a5df4d97412c | [
"MIT"
] | null | null | null | application.py | jona42-ui/sabbath | 994938c1d452c67cabd158372677a5df4d97412c | [
"MIT"
] | null | null | null | application.py | jona42-ui/sabbath | 994938c1d452c67cabd158372677a5df4d97412c | [
"MIT"
] | null | null | null |
from symtable import SymbolTable
from xml.dom import NO_MODIFICATION_ALLOWED_ERR
from flask import Flask, flash, redirect, render_template, request, session, abort
from random import randint
import shabbos_web_class
import googleapi
app = Flask(__name__)
@app.route("/")
@app.route("/home")
def index():
#return ... | 21.269231 | 82 | 0.732369 | 69 | 553 | 5.492754 | 0.594203 | 0.079156 | 0.118734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169982 | 553 | 26 | 83 | 21.269231 | 0.825708 | 0.019892 | 0 | 0 | 0 | 0 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7eb37cf0c52cb51c6159d05df68c89d3fa7afe33 | 6,823 | py | Python | minimal/project_name/settings/base.py | psychok7/django-yadpt-starter | 6b4c877ad42b928e10f7ee038d14ebbaf1522945 | [
"MIT"
] | 27 | 2017-02-20T14:57:38.000Z | 2018-08-19T14:08:58.000Z | minimal/project_name/settings/base.py | psychok7/django-yadpt-starter | 6b4c877ad42b928e10f7ee038d14ebbaf1522945 | [
"MIT"
] | 28 | 2016-12-23T13:50:03.000Z | 2021-09-08T00:39:44.000Z | minimal/project_name/settings/base.py | psychok7/django-yadpt-starter | 6b4c877ad42b928e10f7ee038d14ebbaf1522945 | [
"MIT"
] | 5 | 2017-04-10T03:52:23.000Z | 2021-01-11T23:57:32.000Z | """
Django settings for {{ project_name }} project.
Generated by 'django-admin startproject' using Django {{ django_version }}.
For more information on this file, see
https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.c... | 27.84898 | 95 | 0.640334 | 718 | 6,823 | 5.9039 | 0.316156 | 0.067469 | 0.033027 | 0.042935 | 0.2477 | 0.239679 | 0.144374 | 0.12786 | 0.046945 | 0.029016 | 0 | 0.006876 | 0.211344 | 6,823 | 244 | 96 | 27.963115 | 0.780896 | 0.184523 | 0 | 0.103448 | 1 | 0.005747 | 0.418504 | 0.24485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.017241 | 0 | 0.017241 | 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 |
0e222a02a9192e23d7de8524a1c4240af1af49aa | 2,597 | py | Python | src/streamlink/plugins/clubbingtv.py | code-review-doctor/streamlink | 5dffc1520a18dca05562d1061dfae1f8c2368840 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink/plugins/clubbingtv.py | code-review-doctor/streamlink | 5dffc1520a18dca05562d1061dfae1f8c2368840 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink/plugins/clubbingtv.py | code-review-doctor/streamlink | 5dffc1520a18dca05562d1061dfae1f8c2368840 | [
"BSD-2-Clause"
] | null | null | null | """
$url clubbingtv.com
$type live, vod
$account Login required
"""
import logging
import re
from streamlink.plugin import Plugin, PluginArgument, PluginArguments, pluginmatcher
from streamlink.stream.hls import HLSStream
log = logging.getLogger(__name__)
@pluginmatcher(re.compile(
r"https?://(www\.)?clubbingt... | 27.052083 | 86 | 0.602618 | 296 | 2,597 | 5.128378 | 0.331081 | 0.05336 | 0.019763 | 0.027668 | 0.14888 | 0.077734 | 0.077734 | 0.077734 | 0.077734 | 0.077734 | 0 | 0.000535 | 0.279938 | 2,597 | 95 | 87 | 27.336842 | 0.81123 | 0.022719 | 0 | 0.188406 | 0 | 0 | 0.226877 | 0.055731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.086957 | 0.057971 | 0 | 0.304348 | 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 |
0e2a9346f1b1aaed305b605743400c7bf8cbe2b2 | 1,419 | py | Python | saleor/product/migrations/0070_auto_20181120_2312.py | smbpgroup/upibo_tuan | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | [
"BSD-3-Clause"
] | 1 | 2018-12-17T03:49:19.000Z | 2018-12-17T03:49:19.000Z | saleor/product/migrations/0070_auto_20181120_2312.py | smbpgroup/upibo_tuan | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | [
"BSD-3-Clause"
] | 5 | 2020-03-24T16:37:25.000Z | 2021-06-10T21:24:54.000Z | saleor/product/migrations/0070_auto_20181120_2312.py | smbpgroup/upibo | 625dcda9f9692c62aeb9fe8f7123a5d407c610ae | [
"BSD-3-Clause"
] | 1 | 2018-12-17T03:49:20.000Z | 2018-12-17T03:49:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-20 16:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
import versatileimagefield.fields
class Migration(migrations.Migration):
dependencies = [
('product', '0069_auto_2018111... | 33 | 132 | 0.62086 | 142 | 1,419 | 6.049296 | 0.471831 | 0.076834 | 0.074505 | 0.102445 | 0.288708 | 0.288708 | 0.14901 | 0.14901 | 0.14901 | 0.14901 | 0 | 0.04 | 0.260042 | 1,419 | 42 | 133 | 33.785714 | 0.778095 | 0.048626 | 0 | 0.342857 | 1 | 0 | 0.145509 | 0.017075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e335a21f6ee713a5808eca65dfee4164a095fbb | 1,245 | py | Python | dude/auth.py | grdocker/dude | 852f518bdccad4909aace85dded3dfd6848446bb | [
"MIT"
] | null | null | null | dude/auth.py | grdocker/dude | 852f518bdccad4909aace85dded3dfd6848446bb | [
"MIT"
] | 2 | 2021-04-29T22:52:52.000Z | 2022-02-16T10:44:16.000Z | dude/auth.py | grdocker/dude | 852f518bdccad4909aace85dded3dfd6848446bb | [
"MIT"
] | null | null | null | """
Module for app authorization
"""
from flask import Blueprint, request
from github import Github, BadCredentialsException
from .config import ALLOWED_GITHUB_USERS
auth_protected = Blueprint("auth_protected", __name__)
def _unauthorized(reason):
return reason, 401
def _forbidden(reason):
return reason, 4... | 25.408163 | 71 | 0.706827 | 147 | 1,245 | 5.741497 | 0.401361 | 0.085308 | 0.063981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008138 | 0.210442 | 1,245 | 48 | 72 | 25.9375 | 0.850458 | 0.094779 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.103448 | 0.068966 | 0.551724 | 0.068966 | 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 |
0e336b07325100db0694fbe66c090fd42ba924b2 | 1,698 | py | Python | conftest.py | ferancona/file-iterator | 4c41e0bc479107cda9124b9f9c6ba3f8d9ebc2c1 | [
"MIT"
] | 1 | 2021-03-08T16:38:36.000Z | 2021-03-08T16:38:36.000Z | conftest.py | ferancona/file-iterator | 4c41e0bc479107cda9124b9f9c6ba3f8d9ebc2c1 | [
"MIT"
] | null | null | null | conftest.py | ferancona/file-iterator | 4c41e0bc479107cda9124b9f9c6ba3f8d9ebc2c1 | [
"MIT"
] | null | null | null | import pytest
import gzip, zipfile, pathlib
from file_iterator.FileIterator import PlainIterator, \
GzipIterator, ZipIterator
from file_iterator.FileGroupIterator import FileGroupIterator
# Helper functions.
def write_nums(f, lines_no):
for i in range(lines_no):
f.write(f'{i}\n'.encode())
def get_pa... | 19.976471 | 61 | 0.687868 | 262 | 1,698 | 4.244275 | 0.221374 | 0.140288 | 0.172662 | 0.05036 | 0.292266 | 0.276978 | 0.23741 | 0.197842 | 0.106115 | 0.106115 | 0 | 0.001463 | 0.194935 | 1,698 | 85 | 62 | 19.976471 | 0.811997 | 0.010012 | 0 | 0.38806 | 0 | 0 | 0.019643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.059701 | 0.089552 | 0.358209 | 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 |
0e3986f192478b37c8e1a1ad0337cd9b7c427983 | 7,619 | py | Python | valgrind/xml_trace_gnutls.py | OSUSecLab/Stacco | a570d4288095a86b94db235756dbfbd2a36fa93d | [
"MIT"
] | 2 | 2019-02-02T23:02:23.000Z | 2020-07-26T20:23:13.000Z | valgrind/xml_trace_gnutls.py | OSUSecLab/Stacco | a570d4288095a86b94db235756dbfbd2a36fa93d | [
"MIT"
] | null | null | null | valgrind/xml_trace_gnutls.py | OSUSecLab/Stacco | a570d4288095a86b94db235756dbfbd2a36fa93d | [
"MIT"
] | 2 | 2019-01-21T05:12:26.000Z | 2020-07-26T20:23:15.000Z | import sys
import getopt
import re
from xml.dom import minidom
from xml.etree import ElementTree
from xml.etree.ElementTree import Element, SubElement
interested_obj_index = []
class fn:
def __init__(self, name):
self._name = name
self._cfn = []
def getname(self):
return self._name
... | 28.535581 | 109 | 0.565166 | 929 | 7,619 | 4.384284 | 0.159311 | 0.027498 | 0.043211 | 0.034373 | 0.335379 | 0.307881 | 0.253867 | 0.227842 | 0.168917 | 0.148294 | 0 | 0.008035 | 0.313952 | 7,619 | 266 | 110 | 28.642857 | 0.771188 | 0.181126 | 0 | 0.318681 | 0 | 0 | 0.032903 | 0.003871 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032967 | null | null | 0.016484 | 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 |
0e3ea714c123f4d5b8841d765cc787988de8c368 | 2,873 | py | Python | Python3/721.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/721.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/721.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 196 ms submission
class Solution:
def accountsMerge(self, accounts: List[List[str]]) -> List[List[str]]:
email_to_name = {}
graph = collections.defaultdict(set)
for acc in accounts:
... | 38.824324 | 107 | 0.526627 | 273 | 2,873 | 4.388278 | 0.29304 | 0.029215 | 0.036728 | 0.043406 | 0.196995 | 0.170284 | 0.12187 | 0.12187 | 0.12187 | 0.12187 | 0 | 0.009855 | 0.399582 | 2,873 | 73 | 108 | 39.356164 | 0.684638 | 0.091542 | 0 | 0.183333 | 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 |
0e4fdc7bc906b4d3fd5250f6a72aa4b7c326e157 | 929 | py | Python | ind_1 (1).py | Maria-28/LRn-6 | 47437179f6bbfa16005c661393408d29b75943fa | [
"MIT"
] | null | null | null | ind_1 (1).py | Maria-28/LRn-6 | 47437179f6bbfa16005c661393408d29b75943fa | [
"MIT"
] | null | null | null | ind_1 (1).py | Maria-28/LRn-6 | 47437179f6bbfa16005c661393408d29b75943fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Объявите функцию, которая возвращает переданную ей строку в нижнем регистре (с
# малыми буквами). Определите декоратор для этой функции, который имеет один параметр
# tag , определяющий строку с названием тега (начальное значение параметра tag равно
# h1 ). Этот дек... | 33.178571 | 86 | 0.681378 | 116 | 929 | 5.37069 | 0.672414 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008141 | 0.206674 | 929 | 27 | 87 | 34.407407 | 0.837178 | 0.615716 | 0 | 0 | 0 | 0 | 0.05296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.090909 | 0.545455 | 0.090909 | 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 |
0e516da5147d5a60719ef227602edd0a0ca5d6b1 | 3,899 | py | Python | libcst/_nodes/tests/test_internal.py | bgw/LibCST | 05c8070dfb29f9aff00c8007e5e0013d14990c5b | [
"MIT"
] | null | null | null | libcst/_nodes/tests/test_internal.py | bgw/LibCST | 05c8070dfb29f9aff00c8007e5e0013d14990c5b | [
"MIT"
] | 1 | 2019-08-21T18:58:13.000Z | 2019-08-21T18:58:13.000Z | libcst/_nodes/tests/test_internal.py | bgw/LibCST | 05c8070dfb29f9aff00c8007e5e0013d14990c5b | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import Tuple
import libcst as cst
from libcst._nodes._internal import (
BasicCodegenState,
CodePosition,
... | 35.126126 | 87 | 0.646063 | 423 | 3,899 | 5.820331 | 0.236407 | 0.035743 | 0.047522 | 0.068237 | 0.698213 | 0.623477 | 0.605605 | 0.550772 | 0.550772 | 0.476442 | 0 | 0.016151 | 0.237753 | 3,899 | 110 | 88 | 35.445455 | 0.812248 | 0.124391 | 0 | 0.460526 | 0 | 0 | 0.015303 | 0 | 0 | 0 | 0 | 0.009091 | 0.131579 | 1 | 0.118421 | false | 0.052632 | 0.065789 | 0.013158 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e5487ff55115eabe9e30e6c168507ccca770145 | 3,076 | py | Python | demo.py | pengyuanzhuo/Detection | 18ac491a41f31978216e198c4d3bf4862564789a | [
"MIT"
] | null | null | null | demo.py | pengyuanzhuo/Detection | 18ac491a41f31978216e198c4d3bf4862564789a | [
"MIT"
] | null | null | null | demo.py | pengyuanzhuo/Detection | 18ac491a41f31978216e198c4d3bf4862564789a | [
"MIT"
] | null | null | null | # coding: utf-8
import argparse
import torch
import torch.nn.functional as F
import numpy as np
import cv2
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import models.ssd as ssd
import models.detection as detection
from config import Config as cfg
COLORS = [(255, 0, 0), (0, 255, 0), (0, 0, ... | 31.387755 | 95 | 0.537386 | 399 | 3,076 | 4.06015 | 0.39599 | 0.025926 | 0.027778 | 0.018519 | 0.049383 | 0.019753 | 0 | 0 | 0 | 0 | 0 | 0.043966 | 0.304941 | 3,076 | 97 | 96 | 31.71134 | 0.713751 | 0.041938 | 0 | 0 | 0 | 0 | 0.078625 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.22973 | 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 |
0e5c39a013396897dec4da6d0fc6ad798ba38aa4 | 498 | py | Python | accounts/tokens.py | TourKakao-Carping/Carping-Backend | d4cebaceaf1820e6d850d2fc45258c6e4551e00c | [
"MIT"
] | 10 | 2021-07-14T05:18:52.000Z | 2021-12-14T07:29:20.000Z | accounts/tokens.py | TourKakao-Carping/Carping-Backend | d4cebaceaf1820e6d850d2fc45258c6e4551e00c | [
"MIT"
] | 6 | 2021-08-15T10:15:19.000Z | 2021-09-19T07:05:27.000Z | accounts/tokens.py | TourKakao-Carping/Carping-Backend | d4cebaceaf1820e6d850d2fc45258c6e4551e00c | [
"MIT"
] | 2 | 2021-10-30T12:48:40.000Z | 2021-12-01T13:31:40.000Z | import json
import requests
from rest_framework import status
from allauth.account.models import EmailAddress
from django.conf import settings
from django.http import JsonResponse
from django.shortcuts import redirect
from django.utils.translation import gettext_lazy as _
from accounts.serializers import CustomTokenRef... | 31.125 | 61 | 0.873494 | 56 | 498 | 7.660714 | 0.571429 | 0.09324 | 0.079254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100402 | 498 | 15 | 62 | 33.2 | 0.957589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e5ea1128f4e5d8cf15e3d0a8a4c79455d1e4141 | 1,797 | py | Python | management/migrations/0009_alter_relative.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | null | null | null | management/migrations/0009_alter_relative.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | 10 | 2020-02-12T00:38:38.000Z | 2022-02-10T12:12:21.000Z | management/migrations/0009_alter_relative.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-08 20:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('management', '0008_alter_relative'),
]
operations = [
migrations.AddField(
model_name='person',
name='dropout_reason... | 36.673469 | 170 | 0.588203 | 183 | 1,797 | 5.644809 | 0.437158 | 0.060987 | 0.101646 | 0.128751 | 0.528558 | 0.468538 | 0.361084 | 0.11423 | 0.11423 | 0.11423 | 0 | 0.025307 | 0.274346 | 1,797 | 48 | 171 | 37.4375 | 0.766871 | 0.025042 | 0 | 0.47619 | 1 | 0 | 0.202857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 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 |
0e64a285e2405c95dc65dd775bc04b36a1f17408 | 2,179 | py | Python | safe_transaction_service/history/urls.py | rsksmart/safe-transaction-service | 7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e | [
"MIT"
] | null | null | null | safe_transaction_service/history/urls.py | rsksmart/safe-transaction-service | 7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e | [
"MIT"
] | 2 | 2021-06-09T17:58:44.000Z | 2021-06-10T19:42:32.000Z | safe_transaction_service/history/urls.py | rsksmart/safe-transaction-service | 7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e | [
"MIT"
] | 1 | 2021-07-05T21:55:50.000Z | 2021-07-05T21:55:50.000Z | from django.conf.urls import url
from django.urls import path
from . import views
app_name = "safe"
timestamp_regex = '\\d{4}[-]?\\d{1,2}[-]?\\d{1,2} \\d{1,2}:\\d{1,2}:\\d{1,2}'
urlpatterns = [
url(r'^about/$', views.AboutView.as_view(), name='about'),
path('safes/<str:address>/', views.SafeInfoView.as_view... | 50.674419 | 106 | 0.685636 | 242 | 2,179 | 6.086777 | 0.239669 | 0.065173 | 0.108622 | 0.167685 | 0.426341 | 0.228785 | 0.11609 | 0.11609 | 0.010183 | 0.010183 | 0 | 0.005805 | 0.130335 | 2,179 | 42 | 107 | 51.880952 | 0.771504 | 0.034878 | 0 | 0 | 0 | 0.026316 | 0.390476 | 0.292857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 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 |
0e661cd43d7b5db9c359120ae69f2c9cf813a551 | 7,120 | py | Python | pyclient/confluo/rpc/schema.py | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 1,398 | 2018-12-05T19:13:15.000Z | 2022-03-29T08:26:03.000Z | pyclient/confluo/rpc/schema.py | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 53 | 2018-10-21T03:28:25.000Z | 2021-03-16T03:50:54.000Z | pyclient/confluo/rpc/schema.py | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 208 | 2018-10-28T03:05:46.000Z | 2022-02-06T06:16:37.000Z | import struct
import time
import yaml
import yaml.resolver
from collections import OrderedDict
import data_types
from data_types import TypeID
def now_ns():
return int(time.time() * 10 ** 6)
class Schema:
""" The schema for the data in the atomic multilog.
"""
def __init__(self, columns):
... | 27.384615 | 109 | 0.579494 | 882 | 7,120 | 4.487528 | 0.172336 | 0.046488 | 0.027792 | 0.01617 | 0.261243 | 0.213492 | 0.138959 | 0.125316 | 0.077312 | 0.077312 | 0 | 0.002735 | 0.332444 | 7,120 | 259 | 110 | 27.490347 | 0.830002 | 0.328652 | 0 | 0.165049 | 0 | 0 | 0.029303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203884 | false | 0.009709 | 0.067961 | 0.009709 | 0.495146 | 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 |
0e766313b9c3b9e90380ea2a41c2b936314ccaed | 6,622 | py | Python | boardfarm/devices/base_devices/board_templates.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 17 | 2018-04-19T08:35:47.000Z | 2021-11-01T01:38:33.000Z | boardfarm/devices/base_devices/board_templates.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 190 | 2018-04-19T07:00:18.000Z | 2022-02-11T01:42:51.000Z | boardfarm/devices/base_devices/board_templates.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 30 | 2018-04-12T01:49:21.000Z | 2022-02-11T14:53:19.000Z | from abc import abstractmethod
import boardfarm.devices.connection_decider as conn_dec
from boardfarm.devices import get_device_mapping_class
from boardfarm.exceptions import CodeError
from boardfarm.lib.bft_pexpect_helper import bft_pexpect_helper as PexpectHelper
from boardfarm.lib.signature_checker import __MetaSig... | 36.185792 | 83 | 0.662942 | 858 | 6,622 | 5.024476 | 0.269231 | 0.070981 | 0.016238 | 0.017397 | 0.271863 | 0.265832 | 0.189747 | 0.177221 | 0.177221 | 0.135003 | 0 | 0.000804 | 0.248565 | 6,622 | 182 | 84 | 36.384615 | 0.865555 | 0.428873 | 0 | 0.397849 | 0 | 0 | 0.016633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27957 | false | 0 | 0.064516 | 0 | 0.462366 | 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 |
0e80862ca95fd3d5dbd8774b8609097e74a74390 | 805 | py | Python | spark_auto_mapper_fhir/value_sets/v2_0734.py | imranq2/SparkAutoMapper.FHIR | dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2 | [
"Apache-2.0"
] | 1 | 2020-10-31T23:25:07.000Z | 2020-10-31T23:25:07.000Z | spark_auto_mapper_fhir/value_sets/v2_0734.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/value_sets/v2_0734.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode
from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType
# This file is auto-generated by generate_classes so do not edi... | 32.2 | 85 | 0.760248 | 106 | 805 | 5.518868 | 0.537736 | 0.051282 | 0.066667 | 0.097436 | 0.25812 | 0.179487 | 0.179487 | 0 | 0 | 0 | 0 | 0.052786 | 0.152795 | 805 | 24 | 86 | 33.541667 | 0.804985 | 0.31677 | 0 | 0 | 0 | 0 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e83eca74aa1f0ad01d01fe4cb25f3a205f3b852 | 6,342 | py | Python | tfx/components/trainer/rewriting/tflite_rewriter.py | ettiee/tfx | 8e60b158df72d1e6811ade1c934f68d08df25a0c | [
"Apache-2.0"
] | null | null | null | tfx/components/trainer/rewriting/tflite_rewriter.py | ettiee/tfx | 8e60b158df72d1e6811ade1c934f68d08df25a0c | [
"Apache-2.0"
] | null | null | null | tfx/components/trainer/rewriting/tflite_rewriter.py | ettiee/tfx | 8e60b158df72d1e6811ade1c934f68d08df25a0c | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 36.65896 | 80 | 0.721697 | 849 | 6,342 | 5.184923 | 0.241461 | 0.047706 | 0.024534 | 0.047706 | 0.360518 | 0.263517 | 0.19582 | 0.166288 | 0.15493 | 0.124943 | 0 | 0.001971 | 0.200095 | 6,342 | 172 | 81 | 36.872093 | 0.86576 | 0.355093 | 0 | 0.159091 | 0 | 0 | 0.054392 | 0 | 0 | 0 | 0 | 0.017442 | 0 | 1 | 0.079545 | false | 0.011364 | 0.113636 | 0 | 0.227273 | 0.011364 | 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 |
0e84fa6b8aaa8af915ea1a967355cd337f6919c8 | 473 | py | Python | main.py | AravindTLS/JsonPrettyPrint | d2095d951f0321518af0a5c76fd8b87cc72f4e11 | [
"BSD-2-Clause"
] | null | null | null | main.py | AravindTLS/JsonPrettyPrint | d2095d951f0321518af0a5c76fd8b87cc72f4e11 | [
"BSD-2-Clause"
] | null | null | null | main.py | AravindTLS/JsonPrettyPrint | d2095d951f0321518af0a5c76fd8b87cc72f4e11 | [
"BSD-2-Clause"
] | null | null | null | from flask import Flask, render_template, request ,json
app = Flask(__name__)
@app.route('/')
def student():
return render_template('TwoPage.html')
@app.route('/result',methods = ['POST','GET'])
def result():
if request.method == 'POST':
json_input = request.form['input2']
parsed = json.loads(json_inpu... | 26.277778 | 55 | 0.687104 | 62 | 473 | 4.967742 | 0.532258 | 0.136364 | 0.12987 | 0.175325 | 0.201299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0.147992 | 473 | 18 | 56 | 26.277778 | 0.759305 | 0 | 0 | 0 | 0 | 0 | 0.120253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.071429 | 0.357143 | 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 |
0e8974e98ea80dee3eb640b63b3011882412feaa | 1,512 | py | Python | inverse_rl/models/tf_util.py | SaminYeasar/inverse_rl | 4f5275d65ee659a0398bb4cff2b02d62b68168b9 | [
"MIT"
] | 220 | 2017-11-10T22:02:52.000Z | 2022-03-28T08:39:38.000Z | inverse_rl/models/tf_util.py | SaminYeasar/inverse_rl | 4f5275d65ee659a0398bb4cff2b02d62b68168b9 | [
"MIT"
] | 10 | 2017-09-24T15:34:55.000Z | 2021-07-24T06:30:25.000Z | inverse_rl/models/tf_util.py | SaminYeasar/inverse_rl | 4f5275d65ee659a0398bb4cff2b02d62b68168b9 | [
"MIT"
] | 70 | 2017-09-19T21:52:20.000Z | 2021-11-30T04:15:34.000Z | import tensorflow as tf
import numpy as np
REG_VARS = 'reg_vars'
def linear(X, dout, name, bias=True):
with tf.variable_scope(name):
dX = int(X.get_shape()[-1])
W = tf.get_variable('W', shape=(dX, dout))
tf.add_to_collection(REG_VARS, W)
if bias:
b = tf.get_variable('b'... | 28.528302 | 96 | 0.670635 | 232 | 1,512 | 4.185345 | 0.366379 | 0.036045 | 0.064882 | 0.061792 | 0.129763 | 0.07415 | 0.07415 | 0 | 0 | 0 | 0 | 0.009967 | 0.203704 | 1,512 | 52 | 97 | 29.076923 | 0.796512 | 0.078704 | 0 | 0.051282 | 0 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.205128 | false | 0 | 0.076923 | 0.076923 | 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 |
0e8bb74e82af00c1634ed766db9eba22732c09c5 | 4,496 | py | Python | fritzbox_state.py | pkraatz/ha_fritzbox_status | 4b4550e1772a4b9e9e1a45e41e85a2e74a2d9f47 | [
"Apache-2.0"
] | null | null | null | fritzbox_state.py | pkraatz/ha_fritzbox_status | 4b4550e1772a4b9e9e1a45e41e85a2e74a2d9f47 | [
"Apache-2.0"
] | null | null | null | fritzbox_state.py | pkraatz/ha_fritzbox_status | 4b4550e1772a4b9e9e1a45e41e85a2e74a2d9f47 | [
"Apache-2.0"
] | null | null | null | """
Support for get almost any status information from an AVM Fritz!Box router.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.fritzbox_status/
"""
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.componen... | 34.584615 | 128 | 0.695952 | 542 | 4,496 | 5.51476 | 0.309963 | 0.027099 | 0.020074 | 0.032118 | 0.163934 | 0.071596 | 0.027434 | 0 | 0 | 0 | 0 | 0.012907 | 0.207295 | 4,496 | 129 | 129 | 34.852713 | 0.825758 | 0.136788 | 0 | 0.088889 | 0 | 0 | 0.124772 | 0.005743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0.055556 | 0.122222 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e9fc5445843b308653754de600a7841fa610df0 | 613 | py | Python | __init__.py | wm215259644/gcForest | fea1326749f34ac689f1d7c70665e2364a70d2bd | [
"MIT"
] | 3 | 2019-08-15T05:31:16.000Z | 2021-09-26T08:07:02.000Z | __init__.py | wm215259644/gcForest | fea1326749f34ac689f1d7c70665e2364a70d2bd | [
"MIT"
] | null | null | null | __init__.py | wm215259644/gcForest | fea1326749f34ac689f1d7c70665e2364a70d2bd | [
"MIT"
] | 2 | 2019-08-15T12:17:29.000Z | 2021-04-27T22:52:45.000Z | #!usr/bin/env python
"""
Version : 0.1.0
Date : 8th August 2019
Author : Meng Wang
Email : wm215259644@163.com
Affiliation : Personal Development
Description :
Python3 implementation of the gcForest algorithm preesented in Zhou and Feng 2017
(paper can be found here : https://arxiv.org/abs/1702.08835 ).
It uses the ty... | 27.863636 | 81 | 0.773246 | 84 | 613 | 5.5 | 0.75 | 0.034632 | 0.038961 | 0.04329 | 0.155844 | 0.155844 | 0.155844 | 0 | 0 | 0 | 0 | 0.092803 | 0.138662 | 613 | 21 | 82 | 29.190476 | 0.782197 | 0.685155 | 0 | 0 | 0 | 0 | 0.178378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0ea0660fccd42294cd5e8806dd6f64ae47aa7702 | 30,811 | py | Python | cameo/utility.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/utility.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/utility.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2015, MuChu Hsu
Contributed by Muchu Hsu (muchu1983@gmail.com)
This file is part of BSD license
<https://opensource.org/licenses/BSD-3-Clause>
"""
import os
import re
import json
import time
import datetime
import dateparser
import pkg_resources
import shutil
import smtplib
im... | 58.576046 | 170 | 0.558015 | 2,774 | 30,811 | 6.174117 | 0.309301 | 0.04817 | 0.061015 | 0.039411 | 0.168214 | 0.145034 | 0.119752 | 0.098324 | 0.092894 | 0.077363 | 0 | 0.007389 | 0.2577 | 30,811 | 526 | 171 | 58.576046 | 0.741463 | 0.027912 | 0 | 0.087607 | 0 | 0.002137 | 0.289259 | 0.015095 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010684 | 0.032051 | 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 |
0eb16a2e73c8e1a5f4393fcdc1c0bc824f0fd4a3 | 1,054 | py | Python | cryptography_toolkit/decryption.py | ritobanrc/cryptography-toolkit | 3b24014f8b8fbd0865ea1fdd88d83c2a02d867a3 | [
"MIT"
] | null | null | null | cryptography_toolkit/decryption.py | ritobanrc/cryptography-toolkit | 3b24014f8b8fbd0865ea1fdd88d83c2a02d867a3 | [
"MIT"
] | null | null | null | cryptography_toolkit/decryption.py | ritobanrc/cryptography-toolkit | 3b24014f8b8fbd0865ea1fdd88d83c2a02d867a3 | [
"MIT"
] | null | null | null | from cryptography_toolkit.encrpytion import reverse_cipher, caesar_cipher, rot13_cipher
from math import floor, ceil
def reverse_decrypt(ciphertext):
return reverse_cipher(ciphertext)
def caesar_decrypt(ciphertext, key):
return caesar_cipher(ciphertext, 26-key)
def rot13_decrypt(ciphertext):
return ro... | 30.114286 | 103 | 0.70019 | 141 | 1,054 | 5.06383 | 0.489362 | 0.095238 | 0.064426 | 0.030812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020095 | 0.197343 | 1,054 | 35 | 104 | 30.114286 | 0.823877 | 0.173624 | 0 | 0 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0.142857 | 0.47619 | 0.047619 | 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 |
7ebb2fc9de0565cc6dcd1ed34e69ad55a503598b | 6,705 | py | Python | adsimulator/utils/parameters.py | nicolas-carolo/adsimulator | 06017982b987349ecfa0def65d4ae767bb509933 | [
"BSD-3-Clause"
] | 11 | 2022-01-09T21:08:07.000Z | 2022-02-18T20:53:38.000Z | adsimulator/utils/parameters.py | nicolas-carolo/adsimulator | 06017982b987349ecfa0def65d4ae767bb509933 | [
"BSD-3-Clause"
] | null | null | null | adsimulator/utils/parameters.py | nicolas-carolo/adsimulator | 06017982b987349ecfa0def65d4ae767bb509933 | [
"BSD-3-Clause"
] | null | null | null | import json
from adsimulator.templates.default_values import DEFAULT_VALUES
def print_all_parameters(parameters):
print("")
print("New Settings:")
print(json.dumps(parameters, indent=4, sort_keys=True))
def get_perc_param_value(node, key, parameters):
try:
if 0 <= parameters[node][key] <= 10... | 43.538961 | 141 | 0.630723 | 834 | 6,705 | 5.001199 | 0.134293 | 0.079118 | 0.062095 | 0.063774 | 0.558859 | 0.501079 | 0.320307 | 0.224646 | 0.202589 | 0.176217 | 0 | 0.038745 | 0.191648 | 6,705 | 154 | 142 | 43.538961 | 0.730812 | 0 | 0 | 0.364341 | 0 | 0 | 0.372055 | 0.007009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085271 | false | 0.031008 | 0.015504 | 0 | 0.20155 | 0.503876 | 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 |
7ebdd61f2ede85da04fe9d2c5fffb116358f49d6 | 7,457 | py | Python | generate_samples_sub_pert.py | anilkamat/DCRNN_brain_connectivity | d4c35974a8512ce425495bef08a06af0080306f7 | [
"MIT"
] | null | null | null | generate_samples_sub_pert.py | anilkamat/DCRNN_brain_connectivity | d4c35974a8512ce425495bef08a06af0080306f7 | [
"MIT"
] | null | null | null | generate_samples_sub_pert.py | anilkamat/DCRNN_brain_connectivity | d4c35974a8512ce425495bef08a06af0080306f7 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import os
import argparse
def generate_train_val_test(
input_dir, input_filename, output_dir, NSess, NSub, input_horizon=30, output_horizon=30,
scaling='n', save_data=True, train_prop=0.8, test_prop=0.1, NROIs=None, perturbations=None,
):
'''
... | 44.386905 | 171 | 0.597291 | 952 | 7,457 | 4.478992 | 0.210084 | 0.023218 | 0.031895 | 0.00985 | 0.163227 | 0.114916 | 0.080206 | 0.080206 | 0.064259 | 0.064259 | 0 | 0.010789 | 0.279067 | 7,457 | 167 | 172 | 44.652695 | 0.782366 | 0.187743 | 0 | 0.068966 | 1 | 0.017241 | 0.147621 | 0.013572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.008621 | 0.034483 | 0 | 0.060345 | 0.094828 | 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 |
7ebe9fe0e7553d9cffeba15174f7ca1681e7bf13 | 607 | py | Python | setup.py | TangoMan75/pyhelper | eb05282c4c14eff49f43d9117910607487f2e911 | [
"MIT"
] | null | null | null | setup.py | TangoMan75/pyhelper | eb05282c4c14eff49f43d9117910607487f2e911 | [
"MIT"
] | null | null | null | setup.py | TangoMan75/pyhelper | eb05282c4c14eff49f43d9117910607487f2e911 | [
"MIT"
] | null | null | null | #!/bin/python3
# -*- coding: utf-8 -*-
"""
This file is part of the TangoMan Type Validator package.
(c) "Matthias Morin" <mat@tangoman.io>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
"""
from setuptools import setup
setup(
name='tangoman-pyhel... | 22.481481 | 63 | 0.680395 | 83 | 607 | 4.951807 | 0.686747 | 0.029197 | 0.06326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014028 | 0.177924 | 607 | 26 | 64 | 23.346154 | 0.809619 | 0.397035 | 0 | 0 | 0 | 0 | 0.393768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
7ebfec488b60da52274371ccb91010b170ef6b32 | 298 | py | Python | __aulas/Parte2/exception.py | igormotta92/gta-exercices-python-flask | b094b987857a9be5d0677a61e44312cca891e448 | [
"MIT"
] | null | null | null | __aulas/Parte2/exception.py | igormotta92/gta-exercices-python-flask | b094b987857a9be5d0677a61e44312cca891e448 | [
"MIT"
] | null | null | null | __aulas/Parte2/exception.py | igormotta92/gta-exercices-python-flask | b094b987857a9be5d0677a61e44312cca891e448 | [
"MIT"
] | null | null | null | text = 2
try:
print(text)
except NameError as error:
print("NameError - Esse nome não existe:", error)
except Exception as error:
print("Exception - Vixi:", error)
else:
text +=1
print("Else:", text)
finally:
text = []
print("Finally:", text)
print("Fora do bloco!") | 18.625 | 54 | 0.620805 | 39 | 298 | 4.74359 | 0.512821 | 0.075676 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.231544 | 298 | 16 | 55 | 18.625 | 0.799127 | 0 | 0 | 0 | 0 | 0 | 0.257525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 |
7ec222b8d8aaf669f6646eb37ea54e8a27a5f19f | 17,218 | py | Python | poi_id.py | super-penguin/-Identify-Fraud-from-Enron-Email | d43ab105b41ea36ef7b8373b6abb221ac83e2d34 | [
"MIT"
] | null | null | null | poi_id.py | super-penguin/-Identify-Fraud-from-Enron-Email | d43ab105b41ea36ef7b8373b6abb221ac83e2d34 | [
"MIT"
] | null | null | null | poi_id.py | super-penguin/-Identify-Fraud-from-Enron-Email | d43ab105b41ea36ef7b8373b6abb221ac83e2d34 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import pickle
import matplotlib.pyplot as plt
import numpy as np
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from tester import dump_classifier_and_data, test_classifier
###################################################################
### ... | 36.556263 | 99 | 0.66535 | 2,298 | 17,218 | 4.791558 | 0.166667 | 0.035964 | 0.030515 | 0.015439 | 0.449732 | 0.41286 | 0.305603 | 0.241304 | 0.182726 | 0.134774 | 0 | 0.012352 | 0.167731 | 17,218 | 470 | 100 | 36.634043 | 0.756036 | 0.139737 | 0 | 0.209964 | 0 | 0 | 0.196766 | 0.044935 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092527 | null | null | 0.153025 | 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 |
7ed3590a1f59a25f15b8a7834463d463af50889b | 1,497 | py | Python | python/AutoBackup (Google Drive)/main.py | lucassantos33/meus-projetos-publicos | 70cc4276b2c74524c3261e950e06769a7aa5e412 | [
"MIT"
] | null | null | null | python/AutoBackup (Google Drive)/main.py | lucassantos33/meus-projetos-publicos | 70cc4276b2c74524c3261e950e06769a7aa5e412 | [
"MIT"
] | null | null | null | python/AutoBackup (Google Drive)/main.py | lucassantos33/meus-projetos-publicos | 70cc4276b2c74524c3261e950e06769a7aa5e412 | [
"MIT"
] | null | null | null | ###############################################################################
## author: Lucas santos
## version: 1.1
## Python 3.6.5 | UTF-8
## Required Modules:
## google-api-python-client
## google-auth-httplib2
## google-auth-oauthlib
print('='*50)
print('Importing modules.')
from backup import get_datet... | 27.218182 | 79 | 0.57515 | 171 | 1,497 | 4.912281 | 0.409357 | 0.058333 | 0.078571 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007395 | 0.187041 | 1,497 | 54 | 80 | 27.722222 | 0.682827 | 0.114896 | 0 | 0.121212 | 0 | 0 | 0.261512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.181818 | 0 | 0.212121 | 0.424242 | 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 |
7ee52a91cd5c736f5c2d3bd0516ff9981cad449e | 14,158 | py | Python | CellProfiler/tests/modules/test_measuregranularity.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | CellProfiler/tests/modules/test_measuregranularity.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | CellProfiler/tests/modules/test_measuregranularity.py | aidotse/Team-rahma.ai | 66857731e1ca2472e0783e37ba472b55a7ac9cd4 | [
"MIT"
] | null | null | null | import sys
import numpy
import six.moves
import cellprofiler_core.image
import cellprofiler.modules.measuregranularity
import cellprofiler_core.object
import cellprofiler_core.pipeline
import cellprofiler_core.workspace
import tests.modules
print((sys.path))
IMAGE_NAME = "myimage"
OBJECTS_NAME = "myobjects"
def... | 36.489691 | 87 | 0.666973 | 1,886 | 14,158 | 4.887593 | 0.109756 | 0.016489 | 0.021805 | 0.026036 | 0.720113 | 0.697223 | 0.674333 | 0.661098 | 0.648297 | 0.64233 | 0 | 0.041784 | 0.224114 | 14,158 | 387 | 88 | 36.583979 | 0.79736 | 0.134906 | 0 | 0.547445 | 0 | 0 | 0.011653 | 0.002479 | 0 | 0 | 0 | 0 | 0.237226 | 1 | 0.054745 | false | 0 | 0.032847 | 0 | 0.091241 | 0.00365 | 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 |
7ee76e543df18c8e7d07480655758309e387077b | 3,371 | py | Python | Printer_Queue_task.py | mcsoo/Exercises | 08c0c68ed52e9644cc92ad8afdc423b43b4c1326 | [
"MIT"
] | null | null | null | Printer_Queue_task.py | mcsoo/Exercises | 08c0c68ed52e9644cc92ad8afdc423b43b4c1326 | [
"MIT"
] | null | null | null | Printer_Queue_task.py | mcsoo/Exercises | 08c0c68ed52e9644cc92ad8afdc423b43b4c1326 | [
"MIT"
] | null | null | null | import random
class Queue:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def enqueue(self, item):
self.items.insert(0,item)
def dequeue(self):
return self.items.pop()
def size(self):
return len(self.items)
'''
The Printer ... | 31.504673 | 120 | 0.682587 | 446 | 3,371 | 5.132287 | 0.374439 | 0.039318 | 0.041503 | 0.016601 | 0.086064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015631 | 0.240878 | 3,371 | 106 | 121 | 31.801887 | 0.878859 | 0 | 0 | 0.15873 | 0 | 0 | 0.021815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.015873 | 0.095238 | 0.460317 | 0.126984 | 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 |
7efda6fc23a873c7a62057f7b01ef82e627bd881 | 386 | py | Python | tests/extractors/test_tvpparlament.py | radzak/RTVdownloader | b9114b7f4c35fabe6ec9ad1764a65858667a866e | [
"MIT"
] | 4 | 2019-01-27T12:44:49.000Z | 2021-02-21T02:39:05.000Z | tests/extractors/test_tvpparlament.py | radzak/RTVdownloader | b9114b7f4c35fabe6ec9ad1764a65858667a866e | [
"MIT"
] | 4 | 2018-03-20T01:02:39.000Z | 2020-01-21T20:33:59.000Z | tests/extractors/test_tvpparlament.py | radzak/RTVdownloader | b9114b7f4c35fabe6ec9ad1764a65858667a866e | [
"MIT"
] | null | null | null | from rtv.extractors.tvpparlament import TvpParlament
from ..test_extractors import ExtractorTester
class TestTvpParlamentExtractor(ExtractorTester):
extractor_class = TvpParlament
urls = [
'http://www.tvpparlament.pl/retransmisje-vod/inne/przesluchanie-przez-komisja-ds-amber-gold-b-dyr-biura-kolegium... | 35.090909 | 179 | 0.792746 | 43 | 386 | 7.069767 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0.106218 | 386 | 10 | 180 | 38.6 | 0.857971 | 0 | 0 | 0 | 0 | 0.142857 | 0.437824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7d03c795dd991b4bd95b649659e970a131348860 | 1,053 | py | Python | app/ToDoList/models.py | javaburger/comp204p | 7d929e0a65b864eaa6b4662f4d2d33a018177627 | [
"MIT"
] | null | null | null | app/ToDoList/models.py | javaburger/comp204p | 7d929e0a65b864eaa6b4662f4d2d33a018177627 | [
"MIT"
] | null | null | null | app/ToDoList/models.py | javaburger/comp204p | 7d929e0a65b864eaa6b4662f4d2d33a018177627 | [
"MIT"
] | null | null | null | from django.db import models
from django.forms import ModelForm
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
class List(models.Model):
user = models.ForeignKey(User)
title = models.CharField(max_length = 140)
id = models.AutoField(primary_key=True)
def __str__... | 27.710526 | 84 | 0.677113 | 133 | 1,053 | 5.255639 | 0.345865 | 0.057225 | 0.103004 | 0.131617 | 0.309013 | 0.309013 | 0.214592 | 0.214592 | 0.214592 | 0.214592 | 0 | 0.007186 | 0.207028 | 1,053 | 38 | 85 | 27.710526 | 0.82994 | 0 | 0 | 0.3125 | 0 | 0 | 0.057875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.125 | 0.0625 | 0.75 | 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 |
7d061eaf4ea4977c3fa08fd3f64590a8751d41aa | 3,429 | py | Python | backup.py | veeramanikandan0305/KA-UP | 85b9f529356e1465855549f6f7d1031f1452c0e3 | [
"MIT"
] | null | null | null | backup.py | veeramanikandan0305/KA-UP | 85b9f529356e1465855549f6f7d1031f1452c0e3 | [
"MIT"
] | null | null | null | backup.py | veeramanikandan0305/KA-UP | 85b9f529356e1465855549f6f7d1031f1452c0e3 | [
"MIT"
] | null | null | null |
import zipfile
import sys
import os
import datetime
import re
from distutils.dir_util import copy_tree
def zip_folder(folder_path, output_path):
"""Zip the contents of an entire folder (with that folder included
in the archive). Empty subfolders will be included in the archive
as well.
"""
paren... | 37.681319 | 116 | 0.638962 | 441 | 3,429 | 4.770975 | 0.29932 | 0.057034 | 0.036597 | 0.031369 | 0.252376 | 0.215779 | 0.162548 | 0.110266 | 0.110266 | 0.110266 | 0 | 0.010254 | 0.232138 | 3,429 | 90 | 117 | 38.1 | 0.788834 | 0.062701 | 0 | 0.213333 | 0 | 0 | 0.08459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.12 | 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 |
7d0a72637830719ad01742ddde659672eaa88658 | 6,194 | py | Python | src/models/predict_model.py | bkoz/mlops | e3cca43ca60fec777708e32131977de4beaf7c3d | [
"MIT"
] | null | null | null | src/models/predict_model.py | bkoz/mlops | e3cca43ca60fec777708e32131977de4beaf7c3d | [
"MIT"
] | null | null | null | src/models/predict_model.py | bkoz/mlops | e3cca43ca60fec777708e32131977de4beaf7c3d | [
"MIT"
] | null | null | null | import logging
import argparse
import sys
from tokenize import Double
import torch
from torch import nn, optim
import matplotlib.pyplot as plt
import numpy
from data import mnist, loadNpz
from model import MyAwesomeModel
# from src.data.data import loadNpz
train_losses=[]
train_accuracy=[]
FORMAT='%(levelname)s %(asc... | 32.772487 | 136 | 0.560704 | 687 | 6,194 | 4.965066 | 0.358079 | 0.035473 | 0.028144 | 0.034301 | 0.103196 | 0.090296 | 0.082674 | 0.042803 | 0.042803 | 0 | 0 | 0.009082 | 0.324508 | 6,194 | 188 | 137 | 32.946809 | 0.806166 | 0.190184 | 0 | 0.150943 | 0 | 0.009434 | 0.15116 | 0.025878 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.04717 | false | 0 | 0.09434 | 0 | 0.150943 | 0.009434 | 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 |
7d0b0511ea843da9287cb7b541bf3cc5ec900fe8 | 528 | py | Python | models/mail.py | Officeyutong/HelloJudge2 | e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e | [
"MIT"
] | 21 | 2020-02-24T07:56:55.000Z | 2022-01-22T11:32:28.000Z | models/mail.py | Officeyutong/HelloJudge2 | e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e | [
"MIT"
] | 1 | 2021-02-07T13:08:47.000Z | 2021-02-09T04:50:49.000Z | models/mail.py | Officeyutong/HelloJudge2 | e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e | [
"MIT"
] | 3 | 2020-06-04T07:56:20.000Z | 2021-06-21T04:04:15.000Z | from main import db
from sqlalchemy import Column, Integer, DateTime, Text, ForeignKey
class Mail(db.Model):
__tablename__ = "mail"
id = Column(Integer, primary_key=True)
# 发送者用户ID
from_id = Column(Integer, ForeignKey(
"user.id", ondelete="CASCADE"), index=True, nullable=False)
# 接收者用户ID
... | 27.789474 | 67 | 0.666667 | 64 | 528 | 5.390625 | 0.46875 | 0.150725 | 0.130435 | 0.144928 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0 | 0 | 0.212121 | 528 | 18 | 68 | 29.333333 | 0.829327 | 0.043561 | 0 | 0.181818 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 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 |
7d0bf0cd7adfe3dd71b9814cf8a3698439c32593 | 5,200 | py | Python | assessment.py | gitkoogie/SpeechRecognitionPrehospCare | c8f92191e8a50d0d8cd56e78899177634da18c51 | [
"Apache-2.0"
] | 2 | 2021-01-15T14:22:43.000Z | 2021-01-15T14:22:43.000Z | assessment.py | gitkoogie/SpeechRecognitionPrehospCare | c8f92191e8a50d0d8cd56e78899177634da18c51 | [
"Apache-2.0"
] | null | null | null | assessment.py | gitkoogie/SpeechRecognitionPrehospCare | c8f92191e8a50d0d8cd56e78899177634da18c51 | [
"Apache-2.0"
] | null | null | null | import speech_recognition as sr
import difflib
from helpers import helperfunctions
from protocols import ABCDE
#create protocol
p = ABCDE()
# create recognizer instance
r = sr.Recognizer()
# list all available input devices
#print(sr.Microphone.list_microphone_names())
# create microphone instance
mic = sr.Micropho... | 28.729282 | 70 | 0.539808 | 588 | 5,200 | 4.690476 | 0.20068 | 0.013053 | 0.042422 | 0.028281 | 0.64612 | 0.631617 | 0.631617 | 0.631617 | 0.617476 | 0.617476 | 0 | 0.006954 | 0.308654 | 5,200 | 180 | 71 | 28.888889 | 0.760223 | 0.173077 | 0 | 0.6875 | 0 | 0 | 0.224255 | 0.028149 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.339286 | 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 |
7d0bfca669929dfd545751e54ee0d02b3132981d | 1,074 | py | Python | src/flow/bfs.py | vollov/py-bpm | 2adfd3e5864ef5160414c2c000090c7cd18aec10 | [
"MIT"
] | null | null | null | src/flow/bfs.py | vollov/py-bpm | 2adfd3e5864ef5160414c2c000090c7cd18aec10 | [
"MIT"
] | null | null | null | src/flow/bfs.py | vollov/py-bpm | 2adfd3e5864ef5160414c2c000090c7cd18aec10 | [
"MIT"
] | null | null | null |
class Queue:
def __init__(self):
self.queue = []
def enqueue(self,val):
self.queue.append(val)
def dequeue(self):
val = None
try:
val = self.queue[0]
if len(self.queue) == 1:
self.queue = []
else:
self.qu... | 21.48 | 49 | 0.479516 | 126 | 1,074 | 3.904762 | 0.349206 | 0.146341 | 0.04878 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.418063 | 1,074 | 49 | 50 | 21.918367 | 0.7792 | 0.012104 | 0 | 0.058824 | 0 | 0 | 0.012609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0 | null | null | 0.058824 | 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 |
7d0d3f742311f6f312dd652fe2c21c8f0d170ae5 | 1,038 | py | Python | testing/test_rgb.py | AshkanTaghipour/ivadomed | 84c4e01831265b311c7b053ffdb19fb393fb135d | [
"MIT"
] | null | null | null | testing/test_rgb.py | AshkanTaghipour/ivadomed | 84c4e01831265b311c7b053ffdb19fb393fb135d | [
"MIT"
] | null | null | null | testing/test_rgb.py | AshkanTaghipour/ivadomed | 84c4e01831265b311c7b053ffdb19fb393fb135d | [
"MIT"
] | null | null | null | from ivadomed import visualize as imed_visualize
import numpy as np
import torch
def test_save_rbg():
# Create image with shape HxWxDxC
image = [[[[0 for i in range(10)] for i in range(10)] for i in range(4)] for i in range(3)]
for i in range(3):
image[0][2][5][i] = 1
image[1][2][5][i+3] =... | 35.793103 | 117 | 0.596339 | 178 | 1,038 | 3.342697 | 0.308989 | 0.067227 | 0.10084 | 0.184874 | 0.394958 | 0.394958 | 0.394958 | 0.394958 | 0.394958 | 0.394958 | 0 | 0.065531 | 0.264933 | 1,038 | 28 | 118 | 37.071429 | 0.714286 | 0.075145 | 0 | 0.454545 | 0 | 0.045455 | 0.100313 | 0.08464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.227273 | 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 |
7d1060e26af536f834fb8a7c393dc32ff768d576 | 717 | py | Python | Python/StandaloneExercises/NumpyMatrixes.py | TacPhoto/Learning | 28fb3c6469164c57d0ccb973732168f01b685113 | [
"MIT"
] | null | null | null | Python/StandaloneExercises/NumpyMatrixes.py | TacPhoto/Learning | 28fb3c6469164c57d0ccb973732168f01b685113 | [
"MIT"
] | null | null | null | Python/StandaloneExercises/NumpyMatrixes.py | TacPhoto/Learning | 28fb3c6469164c57d0ccb973732168f01b685113 | [
"MIT"
] | null | null | null | import numpy
arr = numpy.array([
[1, 2, 3, 4],
[10, 20, 30, 40],
[100, 200, 300, 400],
[1000, 2000, 3000, 4000]
])
print(arr)
print('Arr shape: ' + str(arr.shape))
print(arr[0,])
print(arr[0,3])
print('Extracting a submatrix')... | 22.40625 | 60 | 0.467225 | 98 | 717 | 3.418367 | 0.418367 | 0.089552 | 0.053731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101633 | 0.23152 | 717 | 31 | 61 | 23.129032 | 0.506352 | 0.052999 | 0 | 0.074074 | 0 | 0 | 0.184366 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.518519 | 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 |
7d130725c282c38b8da3eefbe5521b4fe21ef12a | 2,215 | py | Python | week_1_basics_n_setup/1_docker_sql/ingest_data.py | meswaramoorthy/gcp-de-zoomcamp | 1b01ea425404c7c101839cf363dbf556b67d86a0 | [
"MIT"
] | null | null | null | week_1_basics_n_setup/1_docker_sql/ingest_data.py | meswaramoorthy/gcp-de-zoomcamp | 1b01ea425404c7c101839cf363dbf556b67d86a0 | [
"MIT"
] | 2 | 2022-02-22T06:40:10.000Z | 2022-02-23T05:41:02.000Z | week_1_basics_n_setup/1_docker_sql/ingest_data.py | meswaramoorthy/gcp-de-zoomcamp | 1b01ea425404c7c101839cf363dbf556b67d86a0 | [
"MIT"
] | null | null | null | import os
import argparse
from time import time
import pandas as pd
from sqlalchemy import create_engine
def main(params):
user = params.user
password = params.password
host = params.host
port = params.port
db = params.db
table_name = params.table_name
url_trip_data = params.url_1
ur... | 31.197183 | 115 | 0.663657 | 319 | 2,215 | 4.369906 | 0.291536 | 0.05165 | 0.097561 | 0.107604 | 0.292683 | 0.190818 | 0.086801 | 0.086801 | 0.086801 | 0.061693 | 0 | 0.011416 | 0.209029 | 2,215 | 70 | 116 | 31.642857 | 0.784247 | 0 | 0 | 0.085106 | 0 | 0 | 0.246612 | 0.043812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.06383 | 0.106383 | 0 | 0.12766 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7d134d78f4af25174be6f129016bdb96dbe05dc8 | 774 | py | Python | UVa 10892 - LCM Cardinality/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10892 - LCM Cardinality/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10892 - LCM Cardinality/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | import sys
from math import sqrt
from itertools import product
def getGCD(a, b):
if a < b:
a, b = b, a
while b:
a, b = b, a % b
return a
def getFactors(number):
factors = set()
for i in range(1, int(sqrt(number)) + 1):
if not number % i:
factors.add(i)
... | 19.846154 | 67 | 0.542636 | 115 | 774 | 3.652174 | 0.382609 | 0.02381 | 0.021429 | 0.019048 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031068 | 0.334625 | 774 | 38 | 68 | 20.368421 | 0.784466 | 0.041344 | 0 | 0 | 0 | 0 | 0.012179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d1a2114f1f024a1d9822a7ca2a2894a8b0c26ff | 1,192 | py | Python | resources/trials/maya/nameLeftRight.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | resources/trials/maya/nameLeftRight.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | resources/trials/maya/nameLeftRight.py | adrienparis/Gapalion | 35d66c2d0de05ffb493a4d8753f675999ff9eaab | [
"MIT"
] | null | null | null | #!/bin/env mayapy
# -- coding: utf-8 --
u"""Regarde si un transform [LEFT] a bien son double en [RIGHT]
marque d'un X l'élément manquant
Si ce test ne passe pas, il y a de fortes chances que certain tests échoue
dû à une mauvaise nomination"""
__author__ = "Adrien PARIS"
__email__ = "a.paris.cs@gmail.com"
... | 27.72093 | 114 | 0.580537 | 167 | 1,192 | 4.053892 | 0.54491 | 0.053176 | 0.048744 | 0.035451 | 0.047267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.280201 | 1,192 | 42 | 115 | 28.380952 | 0.782051 | 0.19547 | 0 | 0.064516 | 0 | 0 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.129032 | 0.032258 | 0 | 0.16129 | 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 |
7d2524681e9d89bee9fd2450e1ef517a7f0c0509 | 2,306 | py | Python | custom_exceptions.py | etsalah/notetera | db77c20f638f42ec09dc47dcb1d2fd4fd614560e | [
"MIT"
] | null | null | null | custom_exceptions.py | etsalah/notetera | db77c20f638f42ec09dc47dcb1d2fd4fd614560e | [
"MIT"
] | null | null | null | custom_exceptions.py | etsalah/notetera | db77c20f638f42ec09dc47dcb1d2fd4fd614560e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
class BaseError(Exception):
def __init__(self, message):
self.message = message
class LoggedOutError(BaseError):
def __init__(self):
super(LoggedOutError, self).__init__("User is currently not logged In")
# self.message = "User is currently not logged In"
cla... | 29.564103 | 79 | 0.675629 | 239 | 2,306 | 6.167364 | 0.32636 | 0.052239 | 0.08209 | 0.135685 | 0.270692 | 0.122117 | 0.066486 | 0.066486 | 0.066486 | 0 | 0 | 0.000574 | 0.244579 | 2,306 | 77 | 80 | 29.948052 | 0.84558 | 0.030356 | 0 | 0.301887 | 0 | 0 | 0.258281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0 | 0 | 0.415094 | 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 |
7d2895039760031d4bd82859995b7837f646ba69 | 647 | py | Python | Notebooks/Giuan/gradient_descent/3d.py | alanoMartins/DIP_Nutes | e3580c5d0e269c6cd70f052bbd32d0e0ac19fe55 | [
"MIT"
] | null | null | null | Notebooks/Giuan/gradient_descent/3d.py | alanoMartins/DIP_Nutes | e3580c5d0e269c6cd70f052bbd32d0e0ac19fe55 | [
"MIT"
] | null | null | null | Notebooks/Giuan/gradient_descent/3d.py | alanoMartins/DIP_Nutes | e3580c5d0e269c6cd70f052bbd32d0e0ac19fe55 | [
"MIT"
] | 2 | 2018-08-13T18:47:55.000Z | 2018-08-13T18:49:15.000Z | from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
def function(x, y):
return (x*x)-(y*y)
def derivate_of_function_x(x): #dx
return 2*x
def derivate_of_function_y(y): #dy
return -2*y
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x = 38
y = -18
lr... | 19.029412 | 44 | 0.644513 | 121 | 647 | 3.305785 | 0.429752 | 0.04 | 0.1 | 0.105 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.188563 | 647 | 34 | 45 | 19.029412 | 0.72381 | 0.040185 | 0 | 0 | 0 | 0 | 0.043619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
7d2d843713ffbf432b1ee8145da19185241b7e5e | 936 | py | Python | servers/map.py | Code-wy/flask | 5703d7b5e72e6e2a83542361cbe1d553a4dd5da2 | [
"MIT"
] | 1 | 2021-12-10T19:30:31.000Z | 2021-12-10T19:30:31.000Z | servers/map.py | Code-wy/flask | 5703d7b5e72e6e2a83542361cbe1d553a4dd5da2 | [
"MIT"
] | null | null | null | servers/map.py | Code-wy/flask | 5703d7b5e72e6e2a83542361cbe1d553a4dd5da2 | [
"MIT"
] | 1 | 2022-02-24T10:20:23.000Z | 2022-02-24T10:20:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/1/3 20:04
# @Author : 王洋
# @FileName: map.py
# @Software: PyCharm
import pymysql
import pandas as pd
from pandas.core.frame import DataFrame
import re,time,random
import config
db = pymysql.connect(
host="localhost",
port=3306,
user=config.... | 17.333333 | 51 | 0.596154 | 127 | 936 | 4.370079 | 0.637795 | 0.028829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030216 | 0.257479 | 936 | 54 | 52 | 17.333333 | 0.768345 | 0.191239 | 0 | 0 | 0 | 0 | 0.057641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.151515 | 0 | 0.242424 | 0.030303 | 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 |
7d48663dc24608afcfc0356c2726b4c3d9d33da6 | 451 | py | Python | Python 3/extTriggerACVoltRead.py | BKPrecisionCorp/5492B-and-5492BGPIB | 3132ecf37b52b4b49f3751ec817453adcb9205fe | [
"Apache-2.0"
] | null | null | null | Python 3/extTriggerACVoltRead.py | BKPrecisionCorp/5492B-and-5492BGPIB | 3132ecf37b52b4b49f3751ec817453adcb9205fe | [
"Apache-2.0"
] | null | null | null | Python 3/extTriggerACVoltRead.py | BKPrecisionCorp/5492B-and-5492BGPIB | 3132ecf37b52b4b49f3751ec817453adcb9205fe | [
"Apache-2.0"
] | 1 | 2021-11-08T08:44:05.000Z | 2021-11-08T08:44:05.000Z | import serial
import time
ser = serial.Serial()
ser.baudrate = 9600
ser.port = '/dev/ttyUSB1'
ser.timeout = 0.1
print(ser)
ser.open()
print(ser.is_open)
ser.write(b'*idn?\n') # Read the ID
print(ser.read_until("\n"))
#Setup the function and trigger
ser.write(b'func volt:ac\n')
time.sleep(0.1)
ser.write(b'trig:source... | 18.04 | 35 | 0.696231 | 86 | 451 | 3.604651 | 0.418605 | 0.129032 | 0.145161 | 0.164516 | 0.303226 | 0.122581 | 0 | 0 | 0 | 0 | 0 | 0.02457 | 0.097561 | 451 | 24 | 36 | 18.791667 | 0.737101 | 0.090909 | 0 | 0.157895 | 0 | 0 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.263158 | 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 |
7d48bdc45db6d8ca8999539965d6dcbb774035b8 | 570 | py | Python | Level.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | Level.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | Level.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | from Point import Point
from Function import Function, LinearFunction
from Player import Player
class Level():
def __init__(self, id):
self.id = id
self.functions = [Function(lambda x : 8 - (x - 5)**2/4),
Function(lambda x : (1/3) * (x-5)**3 + 0.2*x)]
se... | 28.5 | 75 | 0.522807 | 78 | 570 | 3.717949 | 0.397436 | 0.062069 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.336842 | 570 | 19 | 76 | 30 | 0.724868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7d4abdf3d9bd9e22c405df049462e6f98ae793bb | 1,524 | py | Python | input/import_coco.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | input/import_coco.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | input/import_coco.py | jedavis82/scene_labeling | a5e819f801a4fa96a1f4b076fc2049519687b1de | [
"MIT"
] | null | null | null | """
Use the fiftyone library to load the train and validation COCO 2017 sets.
Combine the images into one directory, we will be using YOLOv3 to generate object detections
"""
import fiftyone as fo
import fiftyone.zoo as foz
import os
import shutil
DATASET_DIR = './'
TRAIN_DIR = DATASET_DIR + 'coco-2017/train/data/'
V... | 29.882353 | 101 | 0.709318 | 220 | 1,524 | 4.736364 | 0.404545 | 0.076775 | 0.049904 | 0.048944 | 0.122841 | 0.049904 | 0 | 0 | 0 | 0 | 0 | 0.021294 | 0.198819 | 1,524 | 50 | 102 | 30.48 | 0.832105 | 0.318898 | 0 | 0 | 1 | 0 | 0.115984 | 0.045809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0.03125 | 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 |
7d52dd4425613f9acfe451d053b03afffb0f6d6b | 830 | py | Python | release/stubs.min/Wms/RemotingObjects/Blobs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingObjects/Blobs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingObjects/Blobs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Wms.RemotingObjects.Blobs calls itself Blobs
# from Wms.RemotingObjects,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from __init__ import *
# no functions
# classes
class BlobContent(object):
""" BlobContent() """
def ZZZ(s... | 25.151515 | 80 | 0.690361 | 105 | 830 | 5.419048 | 0.514286 | 0.105448 | 0.045694 | 0.063269 | 0.196837 | 0.196837 | 0.196837 | 0.196837 | 0.196837 | 0.196837 | 0 | 0.014535 | 0.171084 | 830 | 32 | 81 | 25.9375 | 0.8125 | 0.310843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ada36c5262e391c7f9a38edb2bd1a3e09a5fee00 | 2,381 | py | Python | config_system/tests/run_tests_formatter.py | jbauman42/bob-build | acf70b912e6b0af30a856ac94ad0aae299444419 | [
"Apache-2.0"
] | 23 | 2018-11-12T16:38:32.000Z | 2022-02-24T06:16:52.000Z | config_system/tests/run_tests_formatter.py | jbauman42/bob-build | acf70b912e6b0af30a856ac94ad0aae299444419 | [
"Apache-2.0"
] | 24 | 2018-12-11T12:31:07.000Z | 2021-05-11T16:55:32.000Z | config_system/tests/run_tests_formatter.py | jbauman42/bob-build | acf70b912e6b0af30a856ac94ad0aae299444419 | [
"Apache-2.0"
] | 15 | 2019-01-15T09:20:19.000Z | 2022-02-07T09:44:35.000Z | #!/usr/bin/env python
# Copyright 2019 Arm Limited.
# SPDX-License-Identifier: Apache-2.0
#
# 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
#... | 29.395062 | 86 | 0.661067 | 333 | 2,381 | 4.564565 | 0.438438 | 0.039474 | 0.017105 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.229735 | 2,381 | 80 | 87 | 29.7625 | 0.817339 | 0.312054 | 0 | 0 | 0 | 0 | 0.074923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.181818 | 0.113636 | 0 | 0.181818 | 0.181818 | 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 |
adb02dd3de698f73053bc2488f677a75f778dbfb | 1,034 | py | Python | app/__init__.py | bhaktijkoli/attendance-system-flask | dbe6fff9576e95e19c5ca2881d9e95c1d09e6aab | [
"MIT"
] | null | null | null | app/__init__.py | bhaktijkoli/attendance-system-flask | dbe6fff9576e95e19c5ca2881d9e95c1d09e6aab | [
"MIT"
] | null | null | null | app/__init__.py | bhaktijkoli/attendance-system-flask | dbe6fff9576e95e19c5ca2881d9e95c1d09e6aab | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
import numpy as np
import os
app = Flask(__name__)
# DB
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
db = SQLAlchemy(app)
# MA
ma = Marshmallow(app)
# CONFIG
app.config['MAX_CONTENT_LENGTH'] =... | 27.210526 | 108 | 0.745648 | 154 | 1,034 | 4.831169 | 0.350649 | 0.108871 | 0.087366 | 0.127688 | 0.16129 | 0.104839 | 0.104839 | 0.104839 | 0.104839 | 0.104839 | 0 | 0.012115 | 0.121857 | 1,034 | 37 | 109 | 27.945946 | 0.807269 | 0.03675 | 0 | 0 | 0 | 0 | 0.2 | 0.023232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.04 | 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 |
adb7787204d3de32c3889bcd904503bb79998691 | 1,096 | py | Python | setup.py | ddunbar/zcov | 5e410696434691e2f6667980b785c953431ec6b1 | [
"X11"
] | 31 | 2015-02-19T11:56:26.000Z | 2021-06-04T23:46:23.000Z | setup.py | ddunbar/zcov | 5e410696434691e2f6667980b785c953431ec6b1 | [
"X11"
] | 1 | 2015-06-12T10:45:35.000Z | 2015-06-12T10:45:35.000Z | setup.py | ddunbar/zcov | 5e410696434691e2f6667980b785c953431ec6b1 | [
"X11"
] | 8 | 2015-06-04T15:10:58.000Z | 2021-01-29T12:57:08.000Z | import zcov
import os
from setuptools import setup, find_packages
# setuptools expects to be invoked from within the directory of setup.py, but it
# is nice to allow:
# python path/to/setup.py install
# to work (for scripts, etc.)
os.chdir(os.path.dirname(os.path.abspath(__file__)))
setup(
name = "zcov",
v... | 25.488372 | 80 | 0.685219 | 146 | 1,096 | 4.986301 | 0.609589 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218066 | 1,096 | 42 | 81 | 26.095238 | 0.849475 | 0.144161 | 0 | 0 | 0 | 0 | 0.489818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.103448 | 0 | 0.103448 | 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 |
adba4ec0a9d45010afdcedd9809b64ea72341f84 | 1,140 | py | Python | IPython/kernel/tests/test_public_api.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-18T01:07:55.000Z | 2020-12-18T01:07:55.000Z | IPython/kernel/tests/test_public_api.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/kernel/tests/test_public_api.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | """Test the IPython.kernel public API
Authors
-------
* MinRK
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | 25.333333 | 78 | 0.480702 | 115 | 1,140 | 4.626087 | 0.469565 | 0.052632 | 0.075188 | 0.090226 | 0.203008 | 0.203008 | 0.203008 | 0.105263 | 0 | 0 | 0 | 0.004184 | 0.161404 | 1,140 | 44 | 79 | 25.909091 | 0.552301 | 0.503509 | 0 | 0.235294 | 0 | 0 | 0.069091 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.411765 | 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 |
adcd49212f72000fdb7770b3531a2ccfe3656af1 | 1,172 | py | Python | sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 3 | 2020-06-23T02:25:27.000Z | 2021-09-07T18:48:11.000Z | sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 510 | 2019-07-17T16:11:19.000Z | 2021-08-02T08:38:32.000Z | sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 5 | 2019-09-04T12:51:37.000Z | 2020-09-16T07:28:40.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 48.833333 | 112 | 0.737201 | 101 | 1,172 | 8.227723 | 0.574257 | 0.115523 | 0.048135 | 0.062575 | 0.126354 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000944 | 0.096416 | 1,172 | 23 | 113 | 50.956522 | 0.783758 | 0.385666 | 0 | 0 | 0 | 0 | 0.244382 | 0.18118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
add30e20cb5b6419137214fb33a2e149a3dd0da7 | 449 | py | Python | awwwards/migrations/0016_auto_20191021_0808.py | SteveMitto/awwwards | 2564e6cd3bc87fa511f4f10e6f7e4d497f6aa82d | [
"MIT"
] | null | null | null | awwwards/migrations/0016_auto_20191021_0808.py | SteveMitto/awwwards | 2564e6cd3bc87fa511f4f10e6f7e4d497f6aa82d | [
"MIT"
] | 9 | 2020-06-06T00:04:01.000Z | 2022-02-10T13:19:30.000Z | awwwards/migrations/0016_auto_20191021_0808.py | SteveMitto/awwwards | 2564e6cd3bc87fa511f4f10e6f7e4d497f6aa82d | [
"MIT"
] | 1 | 2020-01-13T00:00:05.000Z | 2020-01-13T00:00:05.000Z | # Generated by Django 2.2.5 on 2019-10-21 05:08
import awwwards.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awwwards', '0015_image'),
]
operations = [
migrations.AlterField(
model_name='image',
name='i... | 22.45 | 104 | 0.632517 | 50 | 449 | 5.56 | 0.66 | 0.097122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056716 | 0.253898 | 449 | 19 | 105 | 23.631579 | 0.773134 | 0.100223 | 0 | 0 | 1 | 0 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
add5cd5862508186efd85971f01a12196547135f | 2,364 | py | Python | solutions/python3/problem999.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem999.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem999.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
999. Available Captures for Rook
On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns.
These are given as characters 'R', '.', 'B', and 'p' respectively.
Uppercase characters represent white pieces, and lowercase characters repres... | 29.924051 | 115 | 0.459391 | 295 | 2,364 | 3.579661 | 0.4 | 0.037879 | 0.034091 | 0.045455 | 0.246212 | 0.246212 | 0.246212 | 0.246212 | 0.17803 | 0.17803 | 0 | 0.018462 | 0.450085 | 2,364 | 78 | 116 | 30.307692 | 0.793846 | 0.383249 | 0 | 0.533333 | 0 | 0 | 0.006224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.088889 | 0 | 0 | 0.066667 | 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 |
addbe3a40a3ae4b6cc892a8c0432e1d24daee5f2 | 422 | py | Python | snpdb/migrations/0044_clinvarkey_inject_acmg_description.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | snpdb/migrations/0044_clinvarkey_inject_acmg_description.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | snpdb/migrations/0044_clinvarkey_inject_acmg_description.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | # Generated by Django 3.1.6 on 2021-08-18 00:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('snpdb', '0043_alter_clingenallele_id'),
]
operations = [
migrations.AddField(
model_name='clinvarkey',
name='inject_... | 22.210526 | 65 | 0.625592 | 45 | 422 | 5.733333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06129 | 0.265403 | 422 | 18 | 66 | 23.444444 | 0.770968 | 0.106635 | 0 | 0 | 1 | 0 | 0.173333 | 0.133333 | 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 |
ade26911dfe328f3713cf114a3ec168e13987458 | 195 | py | Python | ui_colors.py | michael-lazar/playscii | 2416e7438b993abd119a86b0fc1ffb1170eb33c3 | [
"MIT"
] | 14 | 2020-04-08T22:52:59.000Z | 2022-03-21T03:13:41.000Z | ui_colors.py | michael-lazar/playscii | 2416e7438b993abd119a86b0fc1ffb1170eb33c3 | [
"MIT"
] | 2 | 2021-09-21T12:04:21.000Z | 2021-09-21T13:42:47.000Z | ui_colors.py | squintdev/nftscii | dcefdd1deef9bdb3517c39d0129e948d238d4978 | [
"MIT"
] | 2 | 2021-11-16T03:30:59.000Z | 2021-12-23T18:29:54.000Z |
class UIColors:
"color indices for UI (c64 original) palette"
white = 2
lightgrey = 16
medgrey = 13
darkgrey = 12
black = 1
yellow = 8
red = 3
brightred = 11
| 16.25 | 49 | 0.574359 | 25 | 195 | 4.48 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112 | 0.358974 | 195 | 11 | 50 | 17.727273 | 0.784 | 0.220513 | 0 | 0 | 0 | 0 | 0.221649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.9 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ade31a0781e211e0db305ff3f8927c9a6c088671 | 877 | py | Python | arrays/array-of-products.py | shenoyrohit/data-structures-python | 16164c7751bb5296655c5bcd774601b7b252451b | [
"Apache-2.0"
] | null | null | null | arrays/array-of-products.py | shenoyrohit/data-structures-python | 16164c7751bb5296655c5bcd774601b7b252451b | [
"Apache-2.0"
] | null | null | null | arrays/array-of-products.py | shenoyrohit/data-structures-python | 16164c7751bb5296655c5bcd774601b7b252451b | [
"Apache-2.0"
] | null | null | null | # Time: O (N ^ 2) | Space: O(N)
def arrayOfProducts(array):
output = []
for i in range(len(array)):
product = 1
for j in range(len(array)):
if i != j:
product = product * array[j]
output.append(product)
return output
# Time: O(N) | Space: O(N)
def array... | 21.925 | 44 | 0.529076 | 126 | 877 | 3.68254 | 0.238095 | 0.137931 | 0.150862 | 0.226293 | 0.278017 | 0.278017 | 0.196121 | 0 | 0 | 0 | 0 | 0.017301 | 0.340935 | 877 | 39 | 45 | 22.487179 | 0.785467 | 0.124287 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 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 |
ade4c59987303f559156c736c6e5697af6ba3d46 | 722 | py | Python | ddcz/migrations/0095_tavern-booleans.py | jimmeak/graveyard | 4c0f9d5e8b6c965171d9dc228c765b662f5b7ab4 | [
"MIT"
] | 6 | 2018-06-10T09:47:50.000Z | 2022-02-13T12:22:07.000Z | ddcz/migrations/0095_tavern-booleans.py | dracidoupe/graveyard | 706e17cc60879623115bc9b8e98c0b74a607c9b1 | [
"MIT"
] | 268 | 2018-05-30T21:54:50.000Z | 2022-01-08T21:00:03.000Z | ddcz/migrations/0095_tavern-booleans.py | jimmeak/graveyard | 4c0f9d5e8b6c965171d9dc228c765b662f5b7ab4 | [
"MIT"
] | 4 | 2018-09-14T03:50:08.000Z | 2021-04-19T19:36:23.000Z | # Generated by Django 2.0.13 on 2021-07-19 16:21
import ddcz.models.magic
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("ddcz", "0094_access_nick_or_id"),
]
operations = [
migrations.AlterField(
model_name="taverntable",
... | 24.896552 | 59 | 0.576177 | 71 | 722 | 5.690141 | 0.619718 | 0.074257 | 0.111386 | 0.143564 | 0.465347 | 0.465347 | 0.247525 | 0 | 0 | 0 | 0 | 0.044807 | 0.319945 | 722 | 28 | 60 | 25.785714 | 0.778004 | 0.063712 | 0 | 0.454545 | 1 | 0 | 0.126113 | 0.032641 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
adec4d561b759cf6d6bd8bb52026db0c8893a527 | 1,513 | py | Python | sequence/Readers/WeightPileup.py | albertdow/zinv-analysis | 039f1ca2217539f2bed5cb15b3aed435fc9be40d | [
"MIT"
] | null | null | null | sequence/Readers/WeightPileup.py | albertdow/zinv-analysis | 039f1ca2217539f2bed5cb15b3aed435fc9be40d | [
"MIT"
] | null | null | null | sequence/Readers/WeightPileup.py | albertdow/zinv-analysis | 039f1ca2217539f2bed5cb15b3aed435fc9be40d | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import operator
from cachetools import cachedmethod
from cachetools.keys import hashkey
from functools import partial
from utils.NumbaFuncs import get_bin_indices, weight_numba
def evaluate_pu(var, corrs):
@cachedmethod(operator.attrgetter('cache'), key=partial(hashkey, 'fe... | 35.186047 | 85 | 0.660939 | 205 | 1,513 | 4.697561 | 0.395122 | 0.029076 | 0.034268 | 0.041537 | 0.053998 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.188367 | 1,513 | 42 | 86 | 36.02381 | 0.777687 | 0.042961 | 0 | 0 | 0 | 0 | 0.070491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.21875 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aded5e77d2779c0fe437fd92bb24624d0710aa1c | 5,509 | py | Python | libkludge/generate/ext.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | libkludge/generate/ext.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | null | null | null | libkludge/generate/ext.py | zhangxiao6776/kludge | 17a561f4b15399edd8175c883f8410a1b23c4d90 | [
"BSD-3-Clause"
] | 2 | 2017-12-01T20:44:14.000Z | 2021-08-21T21:47:04.000Z | #
# Copyright (c) 2010-2016, Fabric Software Inc. All rights reserved.
#
import os, jinja2, inspect
from libkludge.namespace_mgr import NamespaceMgr
from libkludge.type_mgr import TypeMgr
from namespace import Namespace
from libkludge.visibility import Visibility
from this_access import ThisAccess
from param import Pa... | 30.776536 | 92 | 0.643129 | 668 | 5,509 | 5.071856 | 0.22006 | 0.045455 | 0.021251 | 0.066116 | 0.231995 | 0.192739 | 0.179752 | 0.162928 | 0.039551 | 0.039551 | 0 | 0.006612 | 0.231258 | 5,509 | 178 | 93 | 30.949438 | 0.793388 | 0.01198 | 0 | 0.054795 | 0 | 0 | 0.108292 | 0.027762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061644 | 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 |
adef8fb09b87bad386a54822416663b60359ec79 | 27,526 | py | Python | plugin_test/tests/test_system.py | dongikpark/contrail | 484fb0fdcda1fb84902590f7951720891d21584f | [
"Apache-2.0"
] | null | null | null | plugin_test/tests/test_system.py | dongikpark/contrail | 484fb0fdcda1fb84902590f7951720891d21584f | [
"Apache-2.0"
] | null | null | null | plugin_test/tests/test_system.py | dongikpark/contrail | 484fb0fdcda1fb84902590f7951720891d21584f | [
"Apache-2.0"
] | null | null | null | """Copyright 2016 Mirantis, Inc.
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
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | 37.706849 | 79 | 0.608479 | 3,355 | 27,526 | 4.723398 | 0.127571 | 0.019688 | 0.031047 | 0.016786 | 0.529564 | 0.459204 | 0.399571 | 0.355146 | 0.322711 | 0.31293 | 0 | 0.015664 | 0.301896 | 27,526 | 729 | 80 | 37.758573 | 0.809013 | 0.157415 | 0 | 0.440239 | 0 | 0 | 0.110823 | 0.029818 | 0 | 0 | 0 | 0 | 0.021912 | 1 | 0.021912 | false | 0.051793 | 0.059761 | 0 | 0.101594 | 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 |
adf17500ddd38a103df0bcafdcf9c63a291cec76 | 1,080 | py | Python | random_message.py | Himan10/AutoReplyToLP | 03ef9f787e7c29250360808b1739741652efd221 | [
"MIT"
] | 5 | 2020-06-29T10:35:58.000Z | 2022-02-23T08:43:45.000Z | random_message.py | Himan10/AutoReplyToLP | 03ef9f787e7c29250360808b1739741652efd221 | [
"MIT"
] | null | null | null | random_message.py | Himan10/AutoReplyToLP | 03ef9f787e7c29250360808b1739741652efd221 | [
"MIT"
] | 2 | 2020-06-28T15:45:39.000Z | 2020-06-28T15:49:41.000Z | """ Randomly select a quote from quotes.txt
and Add a line at the end of the file
lots of love @sender_tags
"""
from random import choice, sample
def GenerateMessage():
fullMessage = ""
# Starting line
startLine = ""
with open("txtFiles/greetings.txt", "r") as file:
startLine = choice(fil... | 26.341463 | 79 | 0.594444 | 134 | 1,080 | 4.783582 | 0.485075 | 0.037442 | 0.074883 | 0.046802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003778 | 0.264815 | 1,080 | 40 | 80 | 27 | 0.803526 | 0.150926 | 0 | 0 | 1 | 0 | 0.179912 | 0.047461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
adf9928cc81d66509bc84ace8639a5ca47359dfb | 6,390 | py | Python | src/pgui/pages/index.py | crst/pgui | 2e6b8cd1256052b60cc8bd5471ceadc890d4afcc | [
"MIT"
] | 1 | 2015-11-29T17:16:12.000Z | 2015-11-29T17:16:12.000Z | src/pgui/pages/index.py | crst/pgui | 2e6b8cd1256052b60cc8bd5471ceadc890d4afcc | [
"MIT"
] | null | null | null | src/pgui/pages/index.py | crst/pgui | 2e6b8cd1256052b60cc8bd5471ceadc890d4afcc | [
"MIT"
] | null | null | null | """
This is the start page for the application and includes all the
different application modules listed in the PAGES variable.
Renders the login page as well as the index page.
"""
from collections import defaultdict
from flask import escape
from flask.ext.login import current_user
from page import Page
from pages... | 36.101695 | 150 | 0.502191 | 734 | 6,390 | 4.326975 | 0.280654 | 0.062972 | 0.027708 | 0.045025 | 0.156801 | 0.074622 | 0.013854 | 0 | 0 | 0 | 0 | 0.005149 | 0.331299 | 6,390 | 176 | 151 | 36.306818 | 0.738123 | 0.085915 | 0 | 0.068966 | 0 | 0.008621 | 0.254464 | 0.013867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025862 | false | 0.103448 | 0.051724 | 0 | 0.094828 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.