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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2346b7d4b689aedf70be90e22366c7d461f0ff5d | 1,479 | py | Python | mupub/tests/test_utils.py | MutopiaProject/mupub | 8c59ae15ea13af14139570fcccfef850e1363548 | [
"MIT"
] | null | null | null | mupub/tests/test_utils.py | MutopiaProject/mupub | 8c59ae15ea13af14139570fcccfef850e1363548 | [
"MIT"
] | 1 | 2017-02-22T17:33:23.000Z | 2017-02-23T10:02:48.000Z | mupub/tests/test_utils.py | MutopiaProject/mupub | 8c59ae15ea13af14139570fcccfef850e1363548 | [
"MIT"
] | null | null | null | """Util module tests
"""
import os.path
from unittest import TestCase
import mupub
from clint.textui.validators import ValidationError
from .tutils import PREFIX
_SIMPLE_PATH = os.path.join(PREFIX, 'SorF', 'O77', 'sorf-o77-01',)
_LYS_PATH = os.path.join(PREFIX, 'PaganiniN', 'O1', 'Caprice_1',)
class UtilsTest(TestCa... | 30.183673 | 67 | 0.593644 | 176 | 1,479 | 4.869318 | 0.4375 | 0.028005 | 0.023337 | 0.032672 | 0.105018 | 0.058343 | 0 | 0 | 0 | 0 | 0 | 0.008419 | 0.277214 | 1,479 | 48 | 68 | 30.8125 | 0.793265 | 0.058147 | 0 | 0.228571 | 0 | 0 | 0.077316 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.085714 | false | 0 | 0.142857 | 0 | 0.257143 | 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 | 0 | 0 | 1 | 0 |
23479c6aeea396d6cdcce0a007d798ea7a728144 | 2,736 | py | Python | routemaster/cli.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 13 | 2018-01-16T14:26:27.000Z | 2022-03-19T12:43:17.000Z | routemaster/cli.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 86 | 2018-01-03T17:00:56.000Z | 2021-12-06T12:58:06.000Z | routemaster/cli.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 3 | 2018-02-21T23:13:45.000Z | 2022-03-19T12:43:23.000Z | """CLI handling for `routemaster`."""
import logging
import yaml
import click
import layer_loader
from routemaster.app import App
from routemaster.cron import CronThread
from routemaster.config import ConfigError, load_config
from routemaster.server import server
from routemaster.middleware import wrap_application
fr... | 23.186441 | 76 | 0.665205 | 327 | 2,736 | 5.446483 | 0.391437 | 0.058956 | 0.026951 | 0.032004 | 0.03032 | 0.03032 | 0 | 0 | 0 | 0 | 0 | 0.003775 | 0.225512 | 2,736 | 117 | 77 | 23.384615 | 0.836715 | 0.120614 | 0 | 0.157303 | 0 | 0 | 0.100972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0.044944 | 0.123596 | 0 | 0.179775 | 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 | 0 | 0 | 1 | 0 |
2348e1dd77f2ba0e869197de55900d212aa3c556 | 965 | py | Python | grid_sticky_example_3.py | crazcalm/learn_tkinter_canvas | b798a6f2217a478e9222bb6eaa2afec3d28a2758 | [
"MIT"
] | null | null | null | grid_sticky_example_3.py | crazcalm/learn_tkinter_canvas | b798a6f2217a478e9222bb6eaa2afec3d28a2758 | [
"MIT"
] | 2 | 2020-02-14T02:14:26.000Z | 2020-02-14T02:15:58.000Z | grid_sticky_example_3.py | crazcalm/learn_tkinter_canvas | b798a6f2217a478e9222bb6eaa2afec3d28a2758 | [
"MIT"
] | 1 | 2021-11-24T13:00:34.000Z | 2021-11-24T13:00:34.000Z | """
When a widget is positioned with sticky,
the size of the widget itself is just big
enough to contain any text and other
contents inside of it. It won’t fill the
entire grid cell. In order to fill the
grid, you can specify "ns" to force the
widget to fill the cell in the vertical
direction, or "ew" to fill the cell ... | 30.15625 | 51 | 0.71399 | 172 | 965 | 4.005814 | 0.430233 | 0.050798 | 0.05225 | 0.081277 | 0.101597 | 0.101597 | 0.101597 | 0.101597 | 0 | 0 | 0 | 0.034982 | 0.140933 | 965 | 32 | 52 | 30.15625 | 0.79614 | 0.462176 | 0 | 0 | 0 | 0 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 1 | 0 |
234e920fdc139ffec693a188e6071590ea84ef74 | 20,151 | py | Python | praatio/pitch_and_intensity.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 208 | 2016-04-20T12:42:05.000Z | 2022-03-25T13:44:03.000Z | praatio/pitch_and_intensity.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 37 | 2017-10-31T15:22:59.000Z | 2022-01-02T02:55:46.000Z | praatio/pitch_and_intensity.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 33 | 2016-05-09T07:34:22.000Z | 2022-03-30T09:00:58.000Z | # coding: utf-8
"""
Functions for working with pitch data
This file depends on the praat script get_pitch_and_intensity.praat
(which depends on praat) to extract pitch and intensity values from
audio data. Once the data is extracted, there are functions for
data normalization and calculating various measures from the... | 31.193498 | 97 | 0.626966 | 2,151 | 20,151 | 5.83682 | 0.194793 | 0.01147 | 0.013381 | 0.011947 | 0.472003 | 0.430346 | 0.41362 | 0.396734 | 0.39315 | 0.387893 | 0 | 0.012397 | 0.29145 | 20,151 | 645 | 98 | 31.24186 | 0.866928 | 0.234182 | 0 | 0.516432 | 0 | 0 | 0.043626 | 0.003325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023474 | false | 0 | 0.028169 | 0 | 0.075117 | 0.004695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
234efbd93d84cd1c579cc2b9b03be2e426d9604e | 1,488 | py | Python | keras_classifier.py | 03pie/SMPCUP2017 | 956f97fce8620b3b0c35e6b3757347ede30c64ba | [
"MIT"
] | 25 | 2017-11-08T08:56:45.000Z | 2021-11-24T20:24:37.000Z | keras_classifier.py | 03pie/SMPCUP2017 | 956f97fce8620b3b0c35e6b3757347ede30c64ba | [
"MIT"
] | null | null | null | keras_classifier.py | 03pie/SMPCUP2017 | 956f97fce8620b3b0c35e6b3757347ede30c64ba | [
"MIT"
] | 13 | 2017-12-11T05:47:52.000Z | 2021-03-04T13:53:41.000Z | import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.wrappers.scikit_learn import KerasClassifier
from keras.utils import np_utils
# return the best three results
def top_n(matrix_prob, label_map):
ans = []
for line in matrix_prob:
rank = [label_map[item[0]] fo... | 40.216216 | 126 | 0.755376 | 238 | 1,488 | 4.5 | 0.462185 | 0.051354 | 0.056022 | 0.078431 | 0.203548 | 0.124183 | 0.056022 | 0.056022 | 0 | 0 | 0 | 0.022405 | 0.100134 | 1,488 | 36 | 127 | 41.333333 | 0.777446 | 0.054435 | 0 | 0 | 0 | 0 | 0.158945 | 0.119031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
234f3d49dc75338604b163336e34c3247e009fb7 | 2,012 | py | Python | greening/get_tiles_from_google_maps.py | uchr/Hackathon-Urbaton | 83362fec9777054050c858eda87905c8b512372a | [
"MIT"
] | null | null | null | greening/get_tiles_from_google_maps.py | uchr/Hackathon-Urbaton | 83362fec9777054050c858eda87905c8b512372a | [
"MIT"
] | null | null | null | greening/get_tiles_from_google_maps.py | uchr/Hackathon-Urbaton | 83362fec9777054050c858eda87905c8b512372a | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import os
import time
import requests
import shutil
def get_route_tile(x, y, out_file):
#http://mt1.google.com/vt/lyrs=y&x=5975&y=2598&z=13
url = 'http://mt1.google.com/vt/lyrs=y&x={}&y={}&z=13'.format(x, y)
response = requests.get(url, stream=True)
with open(out_file, 'wb') ... | 30.029851 | 89 | 0.614811 | 331 | 2,012 | 3.507553 | 0.332326 | 0.055125 | 0.041344 | 0.048234 | 0.261843 | 0.172265 | 0.14298 | 0.14298 | 0.101637 | 0.101637 | 0 | 0.072869 | 0.236084 | 2,012 | 67 | 90 | 30.029851 | 0.682498 | 0.10835 | 0 | 0.040816 | 0 | 0.020408 | 0.050704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.122449 | 0 | 0.204082 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
23549ec1228d9e42823643453e7b9895b370ca45 | 1,933 | py | Python | reVX/utilities/cluster_methods.py | NREL/reVX | 4d62eb2c003c3b53b959f7a58bdc342d18098884 | [
"BSD-3-Clause"
] | 7 | 2020-04-06T00:29:55.000Z | 2022-01-23T20:00:14.000Z | reVX/utilities/cluster_methods.py | NREL/reVX | 4d62eb2c003c3b53b959f7a58bdc342d18098884 | [
"BSD-3-Clause"
] | 67 | 2020-02-28T20:15:35.000Z | 2022-03-31T21:34:52.000Z | reVX/utilities/cluster_methods.py | NREL/reVX | 4d62eb2c003c3b53b959f7a58bdc342d18098884 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Clustering Methods
"""
import numpy as np
from sklearn.cluster import KMeans
from sklearn.preprocessing import normalize
class ClusteringMethods:
""" Base class of clustering methods """
@staticmethod
def _normalize_values(arr, norm=None, axis=None):
"""
Normal... | 27.225352 | 77 | 0.562338 | 224 | 1,933 | 4.745536 | 0.428571 | 0.030103 | 0.024459 | 0.031985 | 0.048918 | 0.048918 | 0 | 0 | 0 | 0 | 0 | 0.003172 | 0.347646 | 1,933 | 70 | 78 | 27.614286 | 0.83981 | 0.299534 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
23585aa3fd91ad92d3f8755c7797b9e71281a6bc | 918 | py | Python | Unit3/Lesson7.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit3/Lesson7.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit3/Lesson7.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null |
#Python的内建模块itertools提供了非常有用的用于操作迭代对象的函数。
import itertools
#从10开始数自然数
naturals =itertools.count(10)
from collections import Iterator
#判断naturals的类型
print(isinstance(naturals,Iterator))
for x in naturals:
if x>70:
break
print(x)
#cycle()会把传入的一个序列无限重复下去:
cycles =itertools.cycle("szhualeilei")
pr... | 14.123077 | 58 | 0.704793 | 118 | 918 | 5.483051 | 0.466102 | 0.02473 | 0.037094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.16122 | 918 | 64 | 59 | 14.34375 | 0.807792 | 0.224401 | 0 | 0.166667 | 0 | 0 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.291667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
23593360ab941b0e68d201d7be4b82afc1cc2f9c | 8,536 | py | Python | flaskr/databaseCURD.py | Ln-Yangzl/yukiyu-webpage | f9aaf71dca18067ecbe43faccb74a7f8d4cf56b7 | [
"Apache-2.0"
] | null | null | null | flaskr/databaseCURD.py | Ln-Yangzl/yukiyu-webpage | f9aaf71dca18067ecbe43faccb74a7f8d4cf56b7 | [
"Apache-2.0"
] | null | null | null | flaskr/databaseCURD.py | Ln-Yangzl/yukiyu-webpage | f9aaf71dca18067ecbe43faccb74a7f8d4cf56b7 | [
"Apache-2.0"
] | 2 | 2021-03-23T12:22:04.000Z | 2021-05-24T13:56:26.000Z | # 该模块提供了一个数据库的通用CURD接口
# 通过该接口能够快速进行数据库的增删查改功能
# 该模块还提供了获取数据库所有表表名,各表表头的接口
import traceback
import pymysql
from userManage import commmitChangeToUserlist, privilegeOfUser, ifManage
global db
# TODO: improve the robustness
def checkValibleTableName(targetTable, user):
if user != None and targetTable == 'user_lis... | 28.740741 | 115 | 0.600633 | 925 | 8,536 | 5.523243 | 0.214054 | 0.017616 | 0.021139 | 0.022314 | 0.386768 | 0.316305 | 0.27892 | 0.262478 | 0.213936 | 0.213936 | 0 | 0.013799 | 0.278351 | 8,536 | 297 | 116 | 28.740741 | 0.815584 | 0.102156 | 0 | 0.541322 | 0 | 0 | 0.153413 | 0.009695 | 0 | 0 | 0 | 0.003367 | 0 | 1 | 0.066116 | false | 0.016529 | 0.012397 | 0 | 0.165289 | 0.144628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
236087aea9a609e4effde96065112e3417f806cd | 3,864 | py | Python | src/imreg_dft/show.py | GCBallesteros/imreg_dft | 3eb7137403dd0689711ff1dae78200b0fbdcedfb | [
"BSD-3-Clause"
] | 167 | 2015-02-28T19:14:52.000Z | 2022-03-30T03:42:33.000Z | src/imreg_dft/show.py | GCBallesteros/imreg_dft | 3eb7137403dd0689711ff1dae78200b0fbdcedfb | [
"BSD-3-Clause"
] | 40 | 2015-01-18T23:58:41.000Z | 2021-08-02T13:36:48.000Z | src/imreg_dft/show.py | GCBallesteros/imreg_dft | 3eb7137403dd0689711ff1dae78200b0fbdcedfb | [
"BSD-3-Clause"
] | 51 | 2015-02-27T21:19:55.000Z | 2022-03-24T12:28:45.000Z | # -*- coding: utf-8 -*-
# show.py
# Copyright (c) 2016-?, Matěj Týč
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice... | 35.449541 | 77 | 0.694358 | 503 | 3,864 | 5.256461 | 0.467197 | 0.023828 | 0.045008 | 0.017398 | 0.093041 | 0.074887 | 0.051437 | 0.051437 | 0.051437 | 0.051437 | 0 | 0.004864 | 0.201863 | 3,864 | 108 | 78 | 35.777778 | 0.852464 | 0.391822 | 0 | 0 | 0 | 0 | 0.233951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.152542 | 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 | 0 | 0 | 1 | 0 |
236634d05aadb9d36762574305057814f7a3b99e | 3,939 | py | Python | tests/unit/transport/pecan/models/response/test_health.py | jqxin2006/poppy | 10636e6255c7370172422afece4a5c3d95c1e937 | [
"Apache-2.0"
] | null | null | null | tests/unit/transport/pecan/models/response/test_health.py | jqxin2006/poppy | 10636e6255c7370172422afece4a5c3d95c1e937 | [
"Apache-2.0"
] | null | null | null | tests/unit/transport/pecan/models/response/test_health.py | jqxin2006/poppy | 10636e6255c7370172422afece4a5c3d95c1e937 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Rackspace, 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 a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 35.809091 | 75 | 0.68393 | 482 | 3,939 | 5.352697 | 0.242739 | 0.059302 | 0.044186 | 0.031008 | 0.502713 | 0.494961 | 0.24031 | 0.228682 | 0.228682 | 0.196899 | 0 | 0.002876 | 0.205636 | 3,939 | 109 | 76 | 36.137615 | 0.821668 | 0.140899 | 0 | 0.342857 | 0 | 0 | 0.11873 | 0.032057 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
236931ea9461223fe34c99e295340ff93405cc67 | 229 | py | Python | Src/Squar-root/squar-root.py | MadushikaPerera/Python | b7919b252c02b5e1017273a65dd022ac9d13f3e4 | [
"MIT"
] | null | null | null | Src/Squar-root/squar-root.py | MadushikaPerera/Python | b7919b252c02b5e1017273a65dd022ac9d13f3e4 | [
"MIT"
] | null | null | null | Src/Squar-root/squar-root.py | MadushikaPerera/Python | b7919b252c02b5e1017273a65dd022ac9d13f3e4 | [
"MIT"
] | null | null | null | #1
number = int(input("Enter a number to find the square root : "))
#2
if number < 0 :
print("Please enter a valid number.")
else :
#3
sq_root = number ** 0.5
#4
print("Square root of {} is {} ".format(number,sq_root))
| 20.818182 | 64 | 0.624454 | 39 | 229 | 3.615385 | 0.641026 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0.218341 | 229 | 10 | 65 | 22.9 | 0.748603 | 0.017467 | 0 | 0 | 0 | 0 | 0.420814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2369a4c986708b3067b08b2725a7bdc63e4b378b | 12,141 | py | Python | Tools/resultsdbpy/resultsdbpy/model/mock_model_factory.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/resultsdbpy/resultsdbpy/model/mock_model_factory.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/resultsdbpy/resultsdbpy/model/mock_model_factory.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | # Copyright (C) 2019 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 61.318182 | 205 | 0.730335 | 980 | 12,141 | 8.883673 | 0.312245 | 0.041006 | 0.014473 | 0.012405 | 0.247645 | 0.215369 | 0.205261 | 0.188146 | 0.175052 | 0.165403 | 0 | 0.041006 | 0.210609 | 12,141 | 197 | 206 | 61.629442 | 0.867383 | 0.105757 | 0 | 0.298701 | 0 | 0 | 0.357545 | 0.325427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0.006494 | 0.051948 | 0 | 0.123377 | 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 | 0 | 0 | 1 | 0 |
236f461f8b6d07d3beef17a23e616ee5fd033b61 | 3,488 | py | Python | 02_Flask_REST/04_MongoDB_REST/app/main.py | CrispenGari/python-flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | 2 | 2021-11-08T07:37:18.000Z | 2021-11-13T09:23:46.000Z | 02_Flask_REST/04_MongoDB_REST/app/main.py | CrispenGari/Flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | null | null | null | 02_Flask_REST/04_MongoDB_REST/app/main.py | CrispenGari/Flask | 3e7896f401920b8dd045d807212ec24b8353a75a | [
"Apache-2.0"
] | null | null | null | from keys.keys import pwd
import pymongo
from flask import Flask, request, abort
from flask_restful import Resource, Api, reqparse, marshal_with, fields
"""
DATABASE CONFIGURATION
"""
databaseName = "students"
connection_url = f'mongodb+srv://crispen:{pwd}@cluster0.3zay8.mongodb.net/{databaseName}?retryWrites=true&w=... | 33.219048 | 117 | 0.641628 | 424 | 3,488 | 5.099057 | 0.245283 | 0.120259 | 0.06938 | 0.058279 | 0.457909 | 0.419056 | 0.36309 | 0.342738 | 0.265957 | 0.236355 | 0 | 0.009934 | 0.220757 | 3,488 | 105 | 118 | 33.219048 | 0.785504 | 0 | 0 | 0.24 | 0 | 0.013333 | 0.226253 | 0.029819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.053333 | 0 | 0.186667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
236fe878b484e34a105ad050281a3bd06899f1d7 | 4,703 | py | Python | data/validate_possession.py | lpraat/scep2019 | f120ee20397648e708cce41a7949c70b523b6e56 | [
"MIT"
] | 1 | 2021-11-02T20:34:22.000Z | 2021-11-02T20:34:22.000Z | data/validate_possession.py | lpraat/scep2019 | f120ee20397648e708cce41a7949c70b523b6e56 | [
"MIT"
] | null | null | null | data/validate_possession.py | lpraat/scep2019 | f120ee20397648e708cce41a7949c70b523b6e56 | [
"MIT"
] | 1 | 2021-11-02T20:34:29.000Z | 2021-11-02T20:34:29.000Z | import csv
import math
import datetime
def build_target_possession(player_file, till):
possessions = []
to_skip = 1 # first line
with open(player_file) as csv_file:
reader = csv.reader(csv_file, delimiter=';')
for row in reader:
if to_skip:
to_skip -= 1
... | 26.874286 | 119 | 0.584095 | 506 | 4,703 | 5.278656 | 0.256917 | 0.011981 | 0.032946 | 0.019468 | 0.718832 | 0.694122 | 0.632722 | 0.593036 | 0.556346 | 0.519656 | 0 | 0.056089 | 0.313842 | 4,703 | 174 | 120 | 27.028736 | 0.771615 | 0.056772 | 0 | 0.691057 | 0 | 0 | 0.152179 | 0.024159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04065 | false | 0 | 0.02439 | 0 | 0.105691 | 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 | 0 | 0 | 1 | 0 |
2370cb70aa4ccbe33c76c9f8fc510ffbcf707f15 | 6,065 | py | Python | directory_components/context_processors.py | uktrade/directory-components | f5f52ceeecd2975bff07d1bd3afa7a84046fdd50 | [
"MIT"
] | 2 | 2019-06-24T20:22:23.000Z | 2019-07-26T12:51:31.000Z | directory_components/context_processors.py | uktrade/directory-components | f5f52ceeecd2975bff07d1bd3afa7a84046fdd50 | [
"MIT"
] | 278 | 2018-02-21T11:49:46.000Z | 2021-09-16T08:27:54.000Z | directory_components/context_processors.py | uktrade/directory-components | f5f52ceeecd2975bff07d1bd3afa7a84046fdd50 | [
"MIT"
] | 3 | 2019-05-02T15:26:26.000Z | 2020-02-18T17:47:57.000Z | from directory_constants import urls
from django.conf import settings
from django.utils import translation
from directory_components import helpers
def ga360(request):
user = helpers.get_user(request)
is_logged_in = helpers.get_is_authenticated(request)
context = {'ga360': {'site_language': translation... | 41.541096 | 120 | 0.711459 | 713 | 6,065 | 5.628331 | 0.207574 | 0.098679 | 0.040369 | 0.012709 | 0.227012 | 0.142786 | 0.085971 | 0.061301 | 0.022427 | 0 | 0 | 0.004876 | 0.188458 | 6,065 | 145 | 121 | 41.827586 | 0.810443 | 0 | 0 | 0.081301 | 0 | 0 | 0.224732 | 0.10404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065041 | false | 0 | 0.03252 | 0.03252 | 0.162602 | 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 | 0 | 0 | 1 | 0 |
237138c111b7235bbb0b60fb326edee46f57fa80 | 1,962 | py | Python | src/leetcodepython/string/remove_duplicate_letters_316.py | zhangyu345293721/leetcode | 1aa5bcb984fd250b54dcfe6da4be3c1c67d14162 | [
"MIT"
] | 90 | 2018-12-25T06:01:30.000Z | 2022-01-03T14:01:26.000Z | src/leetcodepython/string/remove_duplicate_letters_316.py | zhangyu345293721/leetcode | 1aa5bcb984fd250b54dcfe6da4be3c1c67d14162 | [
"MIT"
] | 1 | 2020-08-27T09:53:49.000Z | 2020-08-28T08:57:49.000Z | src/leetcodepython/string/remove_duplicate_letters_316.py | zhangyu345293721/leetcode | 1aa5bcb984fd250b54dcfe6da4be3c1c67d14162 | [
"MIT"
] | 27 | 2019-01-02T01:41:32.000Z | 2022-01-03T14:01:30.000Z | # encoding='utf-8'
'''
/**
* This is the solution of No.316 problem in the LeetCode,
* the website of the problem is as follow:
* https://leetcode-cn.com/problems/smallest-subsequence-of-distinct-characters
* <p>
* The description of problem is as follow:
* =======================================================... | 25.480519 | 109 | 0.469929 | 217 | 1,962 | 4.092166 | 0.40553 | 0.047297 | 0.056306 | 0.038288 | 0.146396 | 0.146396 | 0.146396 | 0.146396 | 0.146396 | 0.146396 | 0 | 0.011826 | 0.310398 | 1,962 | 76 | 110 | 25.815789 | 0.644494 | 0.463303 | 0 | 0.071429 | 0 | 0 | 0.021482 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.178571 | 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 | 0 | 0 | 1 | 0 |
23723b37428721d547ab23434d036479e7a2836c | 1,055 | py | Python | setup.py | julienvaslet/interactive-shell | 9ae800f2d9bb3365b5e68b2beef577fb39264f10 | [
"MIT"
] | null | null | null | setup.py | julienvaslet/interactive-shell | 9ae800f2d9bb3365b5e68b2beef577fb39264f10 | [
"MIT"
] | null | null | null | setup.py | julienvaslet/interactive-shell | 9ae800f2d9bb3365b5e68b2beef577fb39264f10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from setuptools import setup
current_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_directory, "VERSION"), "r", encoding="utf-8") as f:
version = f.read()
with open(os.path.join(current_directory, "README.rst"), "r", encoding="utf-8") as f:... | 31.029412 | 91 | 0.660664 | 122 | 1,055 | 5.606557 | 0.581967 | 0.035088 | 0.02924 | 0.040936 | 0.146199 | 0.146199 | 0.099415 | 0 | 0 | 0 | 0 | 0.007026 | 0.190521 | 1,055 | 33 | 92 | 31.969697 | 0.793911 | 0.019905 | 0 | 0 | 0 | 0 | 0.396318 | 0.022287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2381759676c1a13a9190cbf2cbe7006518dd9448 | 1,093 | py | Python | behaviour/models.py | red-and-black/friendly | f453344ad1e9173ad3545e4ea0c825b65190b3c5 | [
"Apache-2.0"
] | 2 | 2020-01-28T12:56:56.000Z | 2021-07-02T03:07:39.000Z | behaviour/models.py | red-and-black/friendly | f453344ad1e9173ad3545e4ea0c825b65190b3c5 | [
"Apache-2.0"
] | 5 | 2021-03-18T23:02:11.000Z | 2021-09-17T11:02:08.000Z | behaviour/models.py | red-and-black/goodchat | 1a391a04d4edfbcefaf87663f08308dd58578634 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class BehaviourReport(models.Model):
NOT_REVIEWED = 'not_reviewed'
UNDER_REVIEW = 'under_review'
COMPLETED = 'completed'
STATUS_CHOICES = (
(NOT_REVIEWED, 'Not reviewed'),
(UNDER_REVIEW, 'Under review'),
(COMPLETED, 'Completed')
)
# Automa... | 25.418605 | 66 | 0.651418 | 114 | 1,093 | 6.052632 | 0.447368 | 0.07971 | 0.078261 | 0.104348 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.342029 | 0.342029 | 0 | 0.014563 | 0.246112 | 1,093 | 42 | 67 | 26.02381 | 0.822816 | 0.049405 | 0 | 0.125 | 0 | 0 | 0.105314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.46875 | 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 | 0 | 0 | 1 | 0 |
88bb3f59329f873d5176f1525a62f453fd0b978d | 2,879 | py | Python | dockermap/map/runner/cmd.py | merll/docker-map | 54e325595fc0b6b9d154dacc790a222f957895da | [
"MIT"
] | 85 | 2015-01-02T01:05:14.000Z | 2022-03-23T22:23:12.000Z | dockermap/map/runner/cmd.py | merll/docker-map | 54e325595fc0b6b9d154dacc790a222f957895da | [
"MIT"
] | 21 | 2015-02-10T18:25:03.000Z | 2020-10-28T08:38:39.000Z | dockermap/map/runner/cmd.py | merll/docker-map | 54e325595fc0b6b9d154dacc790a222f957895da | [
"MIT"
] | 15 | 2015-02-27T12:19:35.000Z | 2021-09-29T06:20:14.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from ..action import ContainerUtilAction
from ..input import ItemType
log = logging.getLogger(__name__)
class ExecMixin(object):
"""
Utility mixin for executing configured commands inside containers.
"""
action_method_na... | 40.549296 | 115 | 0.64571 | 364 | 2,879 | 4.92033 | 0.288462 | 0.027917 | 0.030709 | 0.044668 | 0.346734 | 0.307091 | 0.307091 | 0.307091 | 0.307091 | 0.307091 | 0 | 0.000477 | 0.271969 | 2,879 | 70 | 116 | 41.128571 | 0.854008 | 0.359847 | 0 | 0.057143 | 0 | 0 | 0.128252 | 0.013914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.342857 | 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 | 0 | 0 | 1 | 0 |
88bc403d25f54bbc912895c21b6786cdfc90a30c | 3,678 | py | Python | main.py | PWN0N/Working-Time-lapse | 1ebe4cb1a669a1b77528b4f2583e27fdd4e5953b | [
"MIT"
] | null | null | null | main.py | PWN0N/Working-Time-lapse | 1ebe4cb1a669a1b77528b4f2583e27fdd4e5953b | [
"MIT"
] | null | null | null | main.py | PWN0N/Working-Time-lapse | 1ebe4cb1a669a1b77528b4f2583e27fdd4e5953b | [
"MIT"
] | null | null | null | import signal
import numpy as np
from PIL import ImageGrab
import cv2
import time
import sys
import os
flips_time_mins = 30
interval = 5 # seconds
num_frames = flips_time_mins*60/interval
num_frames = int(num_frames)
year = -1
month = -1
day = -1
out_fps = 24
cammode = 0
shutdown_msg = False
def signal_handler(sign... | 27.244444 | 83 | 0.637575 | 504 | 3,678 | 4.535714 | 0.337302 | 0.047244 | 0.022747 | 0.022747 | 0.207349 | 0.207349 | 0.2021 | 0.08224 | 0.056868 | 0.056868 | 0 | 0.039387 | 0.219957 | 3,678 | 134 | 84 | 27.447761 | 0.757407 | 0.115552 | 0 | 0.163265 | 0 | 0 | 0.074383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.071429 | 0 | 0.102041 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88bd61d6346e9f097545fab6de60f3909f62dcdf | 1,823 | py | Python | tests/test_tokenizers.py | BMarcin/MordinezNLP | 884f6c2ccade8ac796d40d3081560021e96765ca | [
"MIT"
] | 1 | 2021-02-03T19:38:05.000Z | 2021-02-03T19:38:05.000Z | tests/test_tokenizers.py | BMarcin/MordinezNLP | 884f6c2ccade8ac796d40d3081560021e96765ca | [
"MIT"
] | 13 | 2020-11-30T21:01:56.000Z | 2021-03-12T21:23:45.000Z | tests/test_tokenizers.py | BMarcin/MordinezNLP | 884f6c2ccade8ac796d40d3081560021e96765ca | [
"MIT"
] | null | null | null | import unittest
import spacy
from spacy.language import Language
try:
from src.MordinezNLP.tokenizers import spacy_tokenizer
except:
from MordinezNLP.tokenizers import spacy_tokenizer
class TestTokenizers(unittest.TestCase):
nlp: Language = spacy.load("en_core_web_sm")
nlp.tokenizer = spacy_tokenizer... | 26.808824 | 126 | 0.397696 | 143 | 1,823 | 4.902098 | 0.440559 | 0.099857 | 0.077033 | 0.091298 | 0.616262 | 0.379458 | 0.379458 | 0.28816 | 0.28816 | 0.156919 | 0 | 0.002174 | 0.495337 | 1,823 | 67 | 127 | 27.208955 | 0.759783 | 0 | 0 | 0.166667 | 0 | 0.016667 | 0.170049 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.083333 | 0 | 0.15 | 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 | 0 | 0 | 1 | 0 |
88bdb402bf1da07ef8a27f4a47f88d7c557aae53 | 3,905 | py | Python | scripts/autopost/image_maker.py | sahawaee/quotes-indonesia | ef6f0dc5afa460d8da6266f5df89d2a350cc9835 | [
"MIT"
] | 6 | 2019-11-02T06:04:37.000Z | 2022-03-27T14:41:45.000Z | scripts/autopost/image_maker.py | sahawaee/quotes-indonesia | ef6f0dc5afa460d8da6266f5df89d2a350cc9835 | [
"MIT"
] | 1 | 2021-09-29T08:33:14.000Z | 2021-11-06T02:10:38.000Z | scripts/autopost/image_maker.py | sahawaee/quotes-indonesia | ef6f0dc5afa460d8da6266f5df89d2a350cc9835 | [
"MIT"
] | 8 | 2020-03-21T20:09:38.000Z | 2022-03-11T19:14:24.000Z | import random
import requests
import tempfile
from io import BytesIO
from PIL import Image, ImageDraw, ImageFont
FONTS = [
'https://cdn.statically.io/gh/google/fonts/main/ofl/neucha/Neucha.ttf',
# 'https://cdn.statically.io/gh/google/fonts/main/ofl/catamaran/Catamaran%5Bwght%5D.ttf',
# font_base_url + 'lob... | 33.956522 | 93 | 0.560051 | 534 | 3,905 | 3.938202 | 0.346442 | 0.036614 | 0.057537 | 0.073229 | 0.138374 | 0.08369 | 0.038041 | 0.038041 | 0.038041 | 0 | 0 | 0.095238 | 0.26863 | 3,905 | 114 | 94 | 34.254386 | 0.641106 | 0.410755 | 0 | 0.135593 | 0 | 0.016949 | 0.04646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.084746 | 0 | 0.152542 | 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 | 0 | 0 | 1 | 0 |
88beff2251e1c3db657b53d33c4f8b3982f9a861 | 5,093 | py | Python | metashade/hlsl/sm5/profile.py | ppenenko/metashade | 7148e808e47bace59e61e1483da9ddf3f9daa1cc | [
"Apache-2.0"
] | 3 | 2020-04-02T13:29:06.000Z | 2020-09-07T17:43:09.000Z | metashade/hlsl/sm5/profile.py | ppenenko/metashade | 7148e808e47bace59e61e1483da9ddf3f9daa1cc | [
"Apache-2.0"
] | null | null | null | metashade/hlsl/sm5/profile.py | ppenenko/metashade | 7148e808e47bace59e61e1483da9ddf3f9daa1cc | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Pavlo Penenko
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 34.181208 | 79 | 0.634204 | 582 | 5,093 | 5.24055 | 0.293814 | 0.028852 | 0.016393 | 0.032459 | 0.118033 | 0.090492 | 0.051148 | 0.051148 | 0.030164 | 0 | 0 | 0.003009 | 0.282152 | 5,093 | 148 | 80 | 34.412162 | 0.831236 | 0.128608 | 0 | 0.082569 | 0 | 0 | 0.080751 | 0.006107 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.110092 | false | 0 | 0.045872 | 0.027523 | 0.238532 | 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 | 0 | 0 | 1 | 0 |
88c000e9e02c415df05d77f3582eae21f519869a | 8,256 | py | Python | backend/views.py | johnzhang1999/Pop | 284cc1c5195efdc676759d8494965b2dfb44cf78 | [
"MIT"
] | 1 | 2019-02-10T06:50:25.000Z | 2019-02-10T06:50:25.000Z | backend/views.py | johnzhang1999/Pop | 284cc1c5195efdc676759d8494965b2dfb44cf78 | [
"MIT"
] | null | null | null | backend/views.py | johnzhang1999/Pop | 284cc1c5195efdc676759d8494965b2dfb44cf78 | [
"MIT"
] | null | null | null | from django.http import JsonResponse, Http404
from django.views.decorators.csrf import csrf_exempt
from exponent_server_sdk import PushClient, PushMessage, DeviceNotRegisteredError
from .models import Group, User, Event
import hashlib, uuid
def getParams(request, tags):
print(request.POST)
return [request.POST... | 38.222222 | 128 | 0.56468 | 969 | 8,256 | 4.773994 | 0.177503 | 0.049719 | 0.050584 | 0.029399 | 0.428448 | 0.358193 | 0.320363 | 0.270212 | 0.226762 | 0.172503 | 0 | 0.008311 | 0.285853 | 8,256 | 216 | 129 | 38.222222 | 0.776289 | 0.02798 | 0 | 0.426316 | 0 | 0 | 0.085051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0.005263 | 0.236842 | 0.015789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88c03f34e857962f5d9b4b18e80b0b7a54e0e36b | 3,572 | py | Python | SDFConv/code/utils/vis/unet_vis.py | zshyang/FieldConvolution | ca88df568a6f2143dcb85d22c005fce4562a7523 | [
"MIT"
] | 1 | 2021-01-03T18:53:06.000Z | 2021-01-03T18:53:06.000Z | SDFConv/code/utils/vis/unet_vis.py | zshyang/FieldConvolution | ca88df568a6f2143dcb85d22c005fce4562a7523 | [
"MIT"
] | null | null | null | SDFConv/code/utils/vis/unet_vis.py | zshyang/FieldConvolution | ca88df568a6f2143dcb85d22c005fce4562a7523 | [
"MIT"
] | null | null | null | """Implement this function across different project.
----ZY.2020.Oct.
"""
import os
from easydict import EasyDict
from torchvision.utils import save_image
from logging import Logger
from subprocess import call
def create_save_folders(root_folder, folder_list: list):
"""Create folders to save visualization image.
... | 37.208333 | 114 | 0.645017 | 501 | 3,572 | 4.423154 | 0.275449 | 0.024368 | 0.031588 | 0.036101 | 0.130866 | 0.092058 | 0.092058 | 0.070397 | 0.044224 | 0.044224 | 0 | 0.006268 | 0.240761 | 3,572 | 95 | 115 | 37.6 | 0.810841 | 0.240482 | 0 | 0.155172 | 0 | 0 | 0.094046 | 0.010239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.086207 | 0 | 0.12069 | 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 | 0 | 0 | 1 | 0 |
88c151ffa4679f358142c0fae2020059a35ad3a9 | 1,465 | py | Python | tests/test_models/test_metric_report.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 6 | 2015-01-28T05:59:08.000Z | 2018-01-09T07:48:57.000Z | tests/test_models/test_metric_report.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 2 | 2020-05-09T16:36:43.000Z | 2020-05-09T16:52:35.000Z | tests/test_models/test_metric_report.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 1 | 2016-01-13T07:19:44.000Z | 2016-01-13T07:19:44.000Z | from nose.tools import assert_equals, assert_true
from wikimetrics.metrics import metric_classes
from wikimetrics.models import (
MetricReport
)
from ..fixtures import DatabaseTest
class MetricReportTest(DatabaseTest):
def setUp(self):
DatabaseTest.setUp(self)
self.common_cohort_1()
d... | 28.173077 | 57 | 0.524915 | 159 | 1,465 | 4.698113 | 0.327044 | 0.042838 | 0.104418 | 0.091031 | 0.524766 | 0.524766 | 0.524766 | 0.473896 | 0.473896 | 0.473896 | 0 | 0.076433 | 0.356997 | 1,465 | 51 | 58 | 28.72549 | 0.716561 | 0 | 0 | 0.444444 | 0 | 0 | 0.107167 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.177778 | 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 | 0 | 0 | 1 | 0 |
88c3e3d167bb3169d56f9fd93e05df1be55709b1 | 1,903 | py | Python | xugrid/data/synthetic.py | Deltares/xugrid | 41881977e5e49d0f87a90dd995960283b812b921 | [
"MIT"
] | 15 | 2021-10-04T15:18:33.000Z | 2022-03-14T13:58:27.000Z | xugrid/data/synthetic.py | Deltares/xugrid | 41881977e5e49d0f87a90dd995960283b812b921 | [
"MIT"
] | 10 | 2021-11-10T15:12:02.000Z | 2022-02-10T14:35:57.000Z | xugrid/data/synthetic.py | Deltares/xugrid | 41881977e5e49d0f87a90dd995960283b812b921 | [
"MIT"
] | null | null | null | import meshzoo
import numpy as np
import xarray as xr
import xugrid
def transform(vertices, minx, maxx, miny):
"""
Transform vertices to fit within minx to maxx.
Maintains x:y aspect ratio.
"""
x, y = vertices.T
xmin = x.min()
xmax = x.max()
ymin = y.min()
ymax = y.max()
dx = ... | 27.985294 | 105 | 0.527063 | 280 | 1,903 | 3.478571 | 0.317857 | 0.008214 | 0.036961 | 0.049281 | 0.113963 | 0.113963 | 0.113963 | 0 | 0 | 0 | 0 | 0.053071 | 0.306884 | 1,903 | 67 | 106 | 28.402985 | 0.685368 | 0.090384 | 0 | 0 | 0 | 0 | 0.010664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.188679 | 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 | 0 | 0 | 1 | 0 |
88c4cf9f6f8d805d5af7d3c164350e7934f1fcde | 2,492 | py | Python | ckanext/tess/group.py | ElixirUK/ckanext-tess | 01725ff81b74f31d906875cb0cf493e7d3533615 | [
"BSD-3-Clause"
] | 1 | 2015-05-18T08:31:28.000Z | 2015-05-18T08:31:28.000Z | ckanext/tess/group.py | ElixirUK/ckanext-tess | 01725ff81b74f31d906875cb0cf493e7d3533615 | [
"BSD-3-Clause"
] | null | null | null | ckanext/tess/group.py | ElixirUK/ckanext-tess | 01725ff81b74f31d906875cb0cf493e7d3533615 | [
"BSD-3-Clause"
] | null | null | null |
import ckan.plugins as plugins
import ckan.model as model
import ckan.logic as logic
import ckan.plugins.toolkit as toolkit
import ckan.lib.plugins as plugs
from pylons import c
NotFound = logic.NotFound
get_action = logic.get_action
class GroupPlugin(plugins.SingletonPlugin, plugs.DefaultGroupForm):
plugins.imp... | 33.675676 | 123 | 0.656902 | 292 | 2,492 | 5.35274 | 0.273973 | 0.038388 | 0.048624 | 0.026871 | 0.332694 | 0.269994 | 0.269994 | 0.269994 | 0.204734 | 0.204734 | 0 | 0.002088 | 0.23114 | 2,492 | 73 | 124 | 34.136986 | 0.813674 | 0.014848 | 0 | 0.303571 | 0 | 0 | 0.106036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.107143 | 0.035714 | 0.392857 | 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 | 0 | 0 | 1 | 0 |
88c6dfcf5b1c5b830035587feb18704990928ca6 | 2,087 | py | Python | package/spack-discovardenovo/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | 1 | 2018-07-17T07:45:09.000Z | 2018-07-17T07:45:09.000Z | package/spack-discovardenovo/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | null | null | null | package/spack-discovardenovo/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | null | null | null | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 45.369565 | 115 | 0.689506 | 290 | 2,087 | 4.948276 | 0.617241 | 0.022997 | 0.016725 | 0.029268 | 0.07108 | 0.07108 | 0.07108 | 0 | 0 | 0 | 0 | 0.045195 | 0.162434 | 2,087 | 45 | 116 | 46.377778 | 0.775744 | 0.679444 | 0 | 0 | 0 | 0.111111 | 0.492441 | 0.280778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88c7e5dd6da0bf02bd4f18142f4b9f76bc68b52c | 10,379 | py | Python | s2_convert.py | uscensusbureau/SABLE | 883d449e4e6b75636d2589f540e86a5401e09932 | [
"CC0-1.0"
] | 27 | 2017-11-06T22:55:24.000Z | 2021-06-11T12:56:03.000Z | s2_convert.py | uscensusbureau/SABLE | 883d449e4e6b75636d2589f540e86a5401e09932 | [
"CC0-1.0"
] | 1 | 2018-01-31T18:26:23.000Z | 2018-01-31T18:26:23.000Z | s2_convert.py | uscensusbureau/SABLE | 883d449e4e6b75636d2589f540e86a5401e09932 | [
"CC0-1.0"
] | 8 | 2017-10-05T19:17:05.000Z | 2020-10-21T23:08:34.000Z | #Name: s2_convert.py
#Purpose: Convert PDFs to TXT format
#Invocation: python3 s2_convert.py <projName> <lng> <clss>
import codecs
import os
import re
import sys
#Name: valid_arguments
#Purpose: Check whether the command-line arguments are valid
#Parameters: sys.argv (globally defin... | 34.946128 | 169 | 0.544561 | 1,244 | 10,379 | 4.500804 | 0.264469 | 0.003572 | 0.004286 | 0.005715 | 0.177353 | 0.131988 | 0.107162 | 0.092874 | 0.092874 | 0.092874 | 0 | 0.032161 | 0.328933 | 10,379 | 296 | 170 | 35.064189 | 0.771716 | 0.299547 | 0 | 0.190476 | 0 | 0 | 0.061449 | 0.006377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.021164 | 0.021164 | 0.153439 | 0.026455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88cc892509c73d91def940743039ba5fd8a12e2f | 5,818 | py | Python | copy-net3_main0_1_2_20-01-10_14-12-14_epoch600_lr0-3_decay0-0_decay20-0_decay39e-05_seed0/main0.py | ninfueng/nsn | a214eafbcf5cf6dedb57131bc6eb1d307797f2ab | [
"MIT"
] | null | null | null | copy-net3_main0_1_2_20-01-10_14-12-14_epoch600_lr0-3_decay0-0_decay20-0_decay39e-05_seed0/main0.py | ninfueng/nsn | a214eafbcf5cf6dedb57131bc6eb1d307797f2ab | [
"MIT"
] | null | null | null | copy-net3_main0_1_2_20-01-10_14-12-14_epoch600_lr0-3_decay0-0_decay20-0_decay39e-05_seed0/main0.py | ninfueng/nsn | a214eafbcf5cf6dedb57131bc6eb1d307797f2ab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""The code implementation of SharedGradNet.
main0.py is for neural networks without hidden layer.
Some part from: https://jhui.github.io/2018/02/09/PyTorch-Variables-functionals-and-Autograd/
2019/06/17: Update with hyper-parameter tuning script.
2019/06/25: Committed mai... | 46.174603 | 117 | 0.653489 | 775 | 5,818 | 4.682581 | 0.27871 | 0.033343 | 0.04216 | 0.016533 | 0.117112 | 0.08625 | 0.054836 | 0.020391 | 0.020391 | 0 | 0 | 0.024908 | 0.206428 | 5,818 | 125 | 118 | 46.544 | 0.7611 | 0.067377 | 0 | 0 | 0 | 0 | 0.224151 | 0.061115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12381 | 0 | 0.12381 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88cfb3f12d8dd1b1dd5417858d82ba8a891b227e | 7,694 | py | Python | etc/dbus-serialbattery/battery.py | Carstijn/dbus-serialbattery | 23afec33c2fd87fd4d4c53516f0a25f290643c82 | [
"MIT"
] | null | null | null | etc/dbus-serialbattery/battery.py | Carstijn/dbus-serialbattery | 23afec33c2fd87fd4d4c53516f0a25f290643c82 | [
"MIT"
] | null | null | null | etc/dbus-serialbattery/battery.py | Carstijn/dbus-serialbattery | 23afec33c2fd87fd4d4c53516f0a25f290643c82 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import utils
class Protection(object):
# 2 = Alarm, 1 = Warning, 0 = Normal
def __init__(self):
self.voltage_high = None
self.voltage_low = None
self.voltage_cell_low = None
... | 35.786047 | 101 | 0.618144 | 1,049 | 7,694 | 4.35367 | 0.154433 | 0.061309 | 0.033501 | 0.044668 | 0.497482 | 0.463981 | 0.456098 | 0.437048 | 0.408583 | 0.335231 | 0 | 0.021005 | 0.306992 | 7,694 | 215 | 102 | 35.786047 | 0.835521 | 0.13712 | 0 | 0.289157 | 0 | 0 | 0.010574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0 | 0.012048 | 0.018072 | 0.325301 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88d2d07a327a91f5956c30f18f5820061fc0b593 | 16,227 | py | Python | lumicks/pylake/kymotracker/detail/binding_times.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 8 | 2019-02-18T07:56:39.000Z | 2022-03-19T01:14:48.000Z | lumicks/pylake/kymotracker/detail/binding_times.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 42 | 2018-11-30T14:40:35.000Z | 2022-03-29T11:43:45.000Z | lumicks/pylake/kymotracker/detail/binding_times.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 4 | 2019-01-09T13:45:53.000Z | 2021-07-06T14:06:52.000Z | import numpy as np
from scipy.special import logsumexp
from scipy.optimize import minimize
from functools import partial
from dataclasses import dataclass, field
import matplotlib.pyplot as plt
@dataclass
class BindingDwelltimesBootstrap:
"""Bootstrap distributions for a binding dwelltime model.
This class i... | 38.913669 | 101 | 0.638442 | 1,947 | 16,227 | 5.178737 | 0.176168 | 0.052068 | 0.024993 | 0.013191 | 0.325102 | 0.278588 | 0.249727 | 0.231578 | 0.200932 | 0.179907 | 0 | 0.009721 | 0.264621 | 16,227 | 416 | 102 | 39.007212 | 0.835247 | 0.378443 | 0 | 0.121827 | 0 | 0.005076 | 0.082972 | 0.013124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091371 | false | 0 | 0.030457 | 0 | 0.233503 | 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 | 0 | 0 | 1 | 0 |
88d788b313f88688621166e29c634f6bf47ff41a | 508 | py | Python | GUI/crab.py | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 1 | 2019-07-31T01:32:17.000Z | 2019-07-31T01:32:17.000Z | GUI/crab.py | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 47 | 2017-11-04T02:04:42.000Z | 2018-06-16T01:00:48.000Z | GUI/crab.py | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 2 | 2018-06-10T21:58:49.000Z | 2019-06-18T17:21:03.000Z | class Crab:
def __init__(self, crab_id, sex, species, color, damage, carapace, mass, epibiont, molt):
self.id = crab_id
self.sex = sex
self.species = species
self.color = color
self.damage = damage
self.carapace = carapace
self.mass = mass
self.epibion... | 33.866667 | 123 | 0.622047 | 66 | 508 | 4.681818 | 0.257576 | 0.038835 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277559 | 508 | 14 | 124 | 36.285714 | 0.841962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88da52cb71a753a4cfdc782a27d2b76618927365 | 2,821 | py | Python | build/fbcode_builder_config.py | YangKian/LogDevice | e5c2168c11e9de867a1bcf519f95016e1c879b5c | [
"BSD-3-Clause"
] | 1,831 | 2018-09-12T15:41:52.000Z | 2022-01-05T02:38:03.000Z | build/fbcode_builder_config.py | YangKian/LogDevice | e5c2168c11e9de867a1bcf519f95016e1c879b5c | [
"BSD-3-Clause"
] | 183 | 2018-09-12T16:14:59.000Z | 2021-12-07T15:49:43.000Z | build/fbcode_builder_config.py | YangKian/LogDevice | e5c2168c11e9de867a1bcf519f95016e1c879b5c | [
"BSD-3-Clause"
] | 228 | 2018-09-12T15:41:51.000Z | 2022-01-05T08:12:09.000Z | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import, division, print_function, unicode_literals
import... | 31.344444 | 87 | 0.684864 | 367 | 2,821 | 5.111717 | 0.493188 | 0.048507 | 0.036247 | 0.033582 | 0.084222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009046 | 0.216235 | 2,821 | 89 | 88 | 31.696629 | 0.839439 | 0.197093 | 0 | 0.23913 | 0 | 0 | 0.269529 | 0.084675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0.021739 | 0.282609 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88dac5f28a975211597a7acd699981246fdfddd1 | 1,883 | py | Python | Python-Programs/Discord-bot-Motivation Bot/main.py | adityaverma121/Simple-Programs | 8450560b97f89e0fa3da16a623ad35c0b26409c9 | [
"MIT"
] | 71 | 2021-09-30T11:25:12.000Z | 2021-10-03T11:33:22.000Z | Python-Programs/Discord-bot-Motivation Bot/main.py | adityaverma121/Simple-Programs | 8450560b97f89e0fa3da16a623ad35c0b26409c9 | [
"MIT"
] | 186 | 2021-09-30T12:25:16.000Z | 2021-10-03T13:45:04.000Z | Python-Programs/Discord-bot-Motivation Bot/main.py | adityaverma121/Simple-Programs | 8450560b97f89e0fa3da16a623ad35c0b26409c9 | [
"MIT"
] | 385 | 2021-09-30T11:34:23.000Z | 2021-10-03T13:41:00.000Z | import json
import os
import random
import string
import requests
from keep_alive import keep_alive
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import discord
client = discord.Client()
starter_motivator = [
"Cheer Up!",
"Always remember, I am here for you!",
"You are a great person. Reme... | 25.445946 | 153 | 0.630377 | 238 | 1,883 | 4.92437 | 0.483193 | 0.055461 | 0.064846 | 0.078498 | 0.035836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002068 | 0.229421 | 1,883 | 73 | 154 | 25.794521 | 0.805651 | 0 | 0 | 0.090909 | 0 | 0.018182 | 0.305895 | 0.030271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.145455 | 0 | 0.2 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88df26756f4d2511b8925b4ee5ec1ed8cec09d0b | 1,234 | py | Python | utils.py | wangke0809/learn-statistical-learning-method | 10772659ff52ef64e7ff36dd3b701615e58de335 | [
"MIT"
] | null | null | null | utils.py | wangke0809/learn-statistical-learning-method | 10772659ff52ef64e7ff36dd3b701615e58de335 | [
"MIT"
] | null | null | null | utils.py | wangke0809/learn-statistical-learning-method | 10772659ff52ef64e7ff36dd3b701615e58de335 | [
"MIT"
] | null | null | null | import os
import numpy as np
def load_mnist(path='mnist'):
data_dir = os.path.join("./data", path)
fd = open(os.path.join(data_dir,'train-images-idx3-ubyte'))
loaded = np.fromfile(file=fd,dtype=np.uint8)
trX = loaded[16:].reshape((60000,28,28,1)).astype(np.float)
fd = open(os.path.join(data_dir,'... | 29.380952 | 63 | 0.638574 | 198 | 1,234 | 3.949495 | 0.262626 | 0.081841 | 0.063939 | 0.089514 | 0.612532 | 0.612532 | 0.612532 | 0.453964 | 0.411765 | 0.411765 | 0 | 0.054795 | 0.171799 | 1,234 | 42 | 64 | 29.380952 | 0.710372 | 0.15154 | 0 | 0.25 | 0 | 0 | 0.097115 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 |
88e15f87d60572f7354fdd0f31ccffeddc289a42 | 2,210 | py | Python | src/analysis.py | aliFrancis/mars-crater-catalogue | 5e6ac4e1f7967b1d37d95e436edaa31ef2f2ed55 | [
"CC-BY-4.0"
] | null | null | null | src/analysis.py | aliFrancis/mars-crater-catalogue | 5e6ac4e1f7967b1d37d95e436edaa31ef2f2ed55 | [
"CC-BY-4.0"
] | null | null | null | src/analysis.py | aliFrancis/mars-crater-catalogue | 5e6ac4e1f7967b1d37d95e436edaa31ef2f2ed55 | [
"CC-BY-4.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sn
from utils import convert, iou
def average_pairwise_IOU(IOU_mat):
n = IOU_mat.shape[0]
mean_IOU = (np.sum(IOU_mat)-n)/(np.size(IOU_mat)-n)
return mean_IOU
def group_IOU_matrices(paths):
survey_names = [p.repl... | 34.53125 | 97 | 0.608597 | 326 | 2,210 | 3.831288 | 0.251534 | 0.022418 | 0.044836 | 0.026421 | 0.261009 | 0.261009 | 0.261009 | 0.261009 | 0.179343 | 0.179343 | 0 | 0.01021 | 0.202262 | 2,210 | 63 | 98 | 35.079365 | 0.698242 | 0.022172 | 0 | 0.181818 | 0 | 0 | 0.128241 | 0.021759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.127273 | 0 | 0.2 | 0.345455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88e45fe24cb4ac33e12b90a494c738b76fd18630 | 3,033 | py | Python | scripts/test_tensorflow_spectrogram.py | RichardLitt/Vesper | 5360844f42a06942e7684121c650b08cf8616285 | [
"MIT"
] | 29 | 2017-07-10T14:49:15.000Z | 2022-02-02T23:14:38.000Z | scripts/test_tensorflow_spectrogram.py | Tubbz-alt/Vesper | 76e5931ca0c7fbe070c53b1362ec246ec9007beb | [
"MIT"
] | 167 | 2015-03-17T14:45:22.000Z | 2022-03-30T21:00:05.000Z | scripts/test_tensorflow_spectrogram.py | Tubbz-alt/Vesper | 76e5931ca0c7fbe070c53b1362ec246ec9007beb | [
"MIT"
] | 4 | 2015-02-06T03:30:27.000Z | 2020-12-27T08:38:52.000Z | """
Compares spectrogram computations with TensorFlow and Vesper.
As of 2018-11-09, Vesper is a little more than three times faster than
TensorFlow at computing spectrograms with a DFT size of 128.
"""
import functools
import time
import numpy as np
import tensorflow as tf
import vesper.util.data_windows as data_w... | 26.146552 | 78 | 0.672272 | 386 | 3,033 | 5.059585 | 0.300518 | 0.071685 | 0.046595 | 0.060932 | 0.287762 | 0.222222 | 0.203277 | 0.174091 | 0.064516 | 0.064516 | 0 | 0.019692 | 0.229805 | 3,033 | 115 | 79 | 26.373913 | 0.816353 | 0.081438 | 0 | 0.157143 | 0 | 0 | 0.099495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.085714 | 0 | 0.2 | 0.157143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88e644ee347cd6bc7d3ce925d9db807476d778e2 | 2,770 | py | Python | Station A/Pooling M300/v1_station_a_S30_pooling.py | Opentrons/covid19-system-30 | 4db5980a93e87f9f607b727678b7ea6d528109ba | [
"Apache-2.0"
] | null | null | null | Station A/Pooling M300/v1_station_a_S30_pooling.py | Opentrons/covid19-system-30 | 4db5980a93e87f9f607b727678b7ea6d528109ba | [
"Apache-2.0"
] | null | null | null | Station A/Pooling M300/v1_station_a_S30_pooling.py | Opentrons/covid19-system-30 | 4db5980a93e87f9f607b727678b7ea6d528109ba | [
"Apache-2.0"
] | 1 | 2020-07-29T14:52:28.000Z | 2020-07-29T14:52:28.000Z | from opentrons import protocol_api
import json
import os
import math
# metadata
metadata = {
'protocolName': 'V1 S14 Station A MagMax',
'author': 'Nick <protocols@opentrons.com>',
'source': 'Custom Protocol Request',
'apiLevel': '2.4'
}
NUM_SAMPLES = 64
SAMPLE_VOLUME = 100
TIP_TRACK = False
def run(... | 31.123596 | 78 | 0.574729 | 376 | 2,770 | 4.023936 | 0.345745 | 0.06345 | 0.065433 | 0.039656 | 0.179114 | 0.088566 | 0.035691 | 0 | 0 | 0 | 0 | 0.054592 | 0.292419 | 2,770 | 88 | 79 | 31.477273 | 0.717347 | 0.024549 | 0 | 0.042254 | 0 | 0 | 0.132047 | 0.030786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.056338 | 0 | 0.084507 | 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 | 0 | 0 | 1 | 0 |
88e9ebaa162edc8b9d8c063256bea5900e94971c | 5,101 | py | Python | Reuters/reuters.py | dheeraj7596/SCDV | e83fc81e1b59bebfa2fa1e334097caa44f9e7f48 | [
"MIT"
] | 60 | 2017-05-25T14:08:50.000Z | 2022-02-04T19:29:44.000Z | Reuters/reuters.py | vgupta123/SCDV | 329b13a413318262f1888d872d8e33b30217cbc7 | [
"MIT"
] | 2 | 2020-03-27T14:01:12.000Z | 2020-07-16T14:33:31.000Z | Reuters/reuters.py | vgupta123/SCDV | 329b13a413318262f1888d872d8e33b30217cbc7 | [
"MIT"
] | 19 | 2017-11-10T01:06:28.000Z | 2021-09-25T19:31:25.000Z | # Reuters-21578 dataset downloader and parser
#
# Author: Eustache Diemert <eustache@diemert.fr>
# http://scikit-learn.org/stable/auto_examples/applications/plot_out_of_core_classification.html
#
# Modified by @herrfz, get pandas DataFrame from the orig SGML
# License: BSD 3 clause
from __future__ import print_funct... | 30.183432 | 96 | 0.556558 | 606 | 5,101 | 4.516502 | 0.325083 | 0.032883 | 0.039459 | 0.017537 | 0.078919 | 0.042382 | 0.02996 | 0.02996 | 0.02996 | 0 | 0 | 0.011338 | 0.308371 | 5,101 | 168 | 97 | 30.363095 | 0.764456 | 0.172123 | 0 | 0.19469 | 0 | 0 | 0.072482 | 0.008998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176991 | false | 0.017699 | 0.079646 | 0.00885 | 0.318584 | 0.053097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88ebd6984c24756abffb46e10ea57a9b5e6af63f | 485 | py | Python | ratemyprof_api/professor.py | nananananate/ratemyprof-api | c037e68e763154cc60812393538c7aa380fbb90e | [
"MIT"
] | 7 | 2021-09-29T22:48:56.000Z | 2022-02-23T16:54:10.000Z | ratemyprof_api/professor.py | nananananate/ratemyprof-api | c037e68e763154cc60812393538c7aa380fbb90e | [
"MIT"
] | null | null | null | ratemyprof_api/professor.py | nananananate/ratemyprof-api | c037e68e763154cc60812393538c7aa380fbb90e | [
"MIT"
] | 1 | 2021-11-19T02:48:08.000Z | 2021-11-19T02:48:08.000Z |
class Professor:
def __init__(self, ratemyprof_id: int, first_name: str, last_name: str, num_of_ratings: int, overall_rating):
self.ratemyprof_id = ratemyprof_id
self.name = f"{first_name} {last_name}"
self.first_name = first_name
self.last_name = last_name
self.num_of_rati... | 30.3125 | 113 | 0.65567 | 66 | 485 | 4.409091 | 0.348485 | 0.123711 | 0.164948 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.263918 | 485 | 15 | 114 | 32.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 | 0 | 0 | 1 | 0 |
88ec6c26cd7a2f727e00f467fdd178e22cb46386 | 810 | py | Python | hello/hello_sqlite.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | 1 | 2017-10-23T14:58:47.000Z | 2017-10-23T14:58:47.000Z | hello/hello_sqlite.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | null | null | null | hello/hello_sqlite.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | 1 | 2018-04-06T07:49:18.000Z | 2018-04-06T07:49:18.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 导入SQLite驱动:
import sqlite3
# 连接到SQLite数据库
# 数据库文件是test.db
# 如果文件不存在,会自动在当前目录创建:
conn = sqlite3.connect('hello.db')
# 创建一个Cursor:
cursor = conn.cursor()
cursor.execute('drop table user')
# 执行一条SQL语句,创建user表:
cursor.execute('create table user (id varchar(20) primary key, n... | 26.129032 | 82 | 0.707407 | 103 | 810 | 5.563107 | 0.553398 | 0.158813 | 0.094241 | 0.125654 | 0.303665 | 0.303665 | 0.136126 | 0.136126 | 0 | 0 | 0 | 0.013793 | 0.104938 | 810 | 31 | 83 | 26.129032 | 0.776552 | 0.253086 | 0 | 0 | 0 | 0 | 0.376689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88edaae7baa65ef0737db43dff89261e7016c55e | 1,324 | py | Python | ig_data/InstaSearch.py | swapnanildutta/instagram-search | 919a3383f0f7789671108f899d9ba9092a69009f | [
"MIT"
] | 1 | 2022-01-04T16:51:50.000Z | 2022-01-04T16:51:50.000Z | ig_data/InstaSearch.py | swapnanildutta/instagram-search | 919a3383f0f7789671108f899d9ba9092a69009f | [
"MIT"
] | 3 | 2020-10-26T13:31:05.000Z | 2022-01-05T23:11:42.000Z | ig_data/InstaSearch.py | swapnanildutta/instagram-search | 919a3383f0f7789671108f899d9ba9092a69009f | [
"MIT"
] | 2 | 2020-04-07T09:24:07.000Z | 2020-04-14T06:38:49.000Z | # imports
import requests, json
# beautifulsoup4
from bs4 import BeautifulSoup
def searchDisplay(username):
# base url for the data
url = 'https://www.instagram.com/{}/'.format(username)
try:
req = requests.get(url).content
soup=BeautifulSoup(req,"html.parser")
row=soup.f... | 33.948718 | 116 | 0.58006 | 135 | 1,324 | 5.674074 | 0.474074 | 0.093995 | 0.028721 | 0.052219 | 0.422977 | 0.422977 | 0.422977 | 0.422977 | 0.315927 | 0.315927 | 0 | 0.007202 | 0.265861 | 1,324 | 38 | 117 | 34.842105 | 0.780864 | 0.033233 | 0 | 0.625 | 0 | 0 | 0.272433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88ef1b2b45df53d3ae9e2451d75c76436af81011 | 2,369 | py | Python | tests/jax_ops_test.py | ita9naiwa/fast-soft-sort | 72cbd93ecc229736f9e05bfdfd0f48c09432904f | [
"Apache-2.0"
] | 389 | 2020-06-08T22:30:18.000Z | 2022-03-25T23:04:28.000Z | tests/jax_ops_test.py | ita9naiwa/fast-soft-sort | 72cbd93ecc229736f9e05bfdfd0f48c09432904f | [
"Apache-2.0"
] | 14 | 2020-06-21T13:21:51.000Z | 2021-10-18T18:02:07.000Z | tests/jax_ops_test.py | ita9naiwa/fast-soft-sort | 72cbd93ecc229736f9e05bfdfd0f48c09432904f | [
"Apache-2.0"
] | 32 | 2020-06-20T17:25:10.000Z | 2022-03-26T13:34:23.000Z | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.452055 | 80 | 0.71718 | 304 | 2,369 | 5.457237 | 0.4375 | 0.092827 | 0.112116 | 0.135624 | 0.229054 | 0.229054 | 0.206148 | 0.174804 | 0.174804 | 0.174804 | 0 | 0.016154 | 0.189954 | 2,369 | 72 | 81 | 32.902778 | 0.848359 | 0.24103 | 0 | 0.097561 | 0 | 0 | 0.024157 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.097561 | false | 0 | 0.243902 | 0 | 0.390244 | 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 | 0 | 0 | 1 | 0 |
88f18a67e803424dde5d28eb3302913d647a3a2f | 27,163 | py | Python | src/pages/pe_cuencas.py | ValentinSilvestri/cammesa | 33ff17ad4a0447fd4668b6adad1c4bbfd88aba8e | [
"MIT"
] | null | null | null | src/pages/pe_cuencas.py | ValentinSilvestri/cammesa | 33ff17ad4a0447fd4668b6adad1c4bbfd88aba8e | [
"MIT"
] | null | null | null | src/pages/pe_cuencas.py | ValentinSilvestri/cammesa | 33ff17ad4a0447fd4668b6adad1c4bbfd88aba8e | [
"MIT"
] | null | null | null | import os
import re
import pymongo
import pandas as pd
import numpy as np
import streamlit as st
from bokeh.plotting import figure
from bokeh.palettes import Set1_9, Set3_12, Inferno256
@st.cache(suppress_st_warning=True, allow_output_mutation=True)
def get_caudales():
"""Function to obtain the rivers basin flows... | 39.538574 | 130 | 0.555793 | 2,864 | 27,163 | 5.208101 | 0.085196 | 0.059265 | 0.025476 | 0.03218 | 0.758045 | 0.65661 | 0.60244 | 0.553366 | 0.506034 | 0.434902 | 0 | 0.009018 | 0.338622 | 27,163 | 686 | 131 | 39.59621 | 0.821208 | 0.045945 | 0 | 0.424191 | 0 | 0 | 0.438753 | 0.04614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015332 | false | 0 | 0.013629 | 0 | 0.042589 | 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 | 0 | 0 | 1 | 0 |
88f1cc3699cf5781999a9874993e5299f3224a9d | 5,930 | py | Python | utils/gen-vowel-constraints.py | ctrlcctrlv/fontFeatures | 76d68586da2c1c42bb3cd79f92d583e63f52cf02 | [
"BSD-3-Clause"
] | 51 | 2020-01-15T09:28:51.000Z | 2022-03-30T06:48:36.000Z | utils/gen-vowel-constraints.py | ctrlcctrlv/fontFeatures | 76d68586da2c1c42bb3cd79f92d583e63f52cf02 | [
"BSD-3-Clause"
] | 51 | 2020-05-11T18:51:25.000Z | 2021-12-20T12:55:08.000Z | utils/gen-vowel-constraints.py | ctrlcctrlv/fontFeatures | 76d68586da2c1c42bb3cd79f92d583e63f52cf02 | [
"BSD-3-Clause"
] | 8 | 2020-08-28T20:03:14.000Z | 2021-12-08T01:22:28.000Z | #!/usr/bin/env python3
"""Generator of the function to prohibit certain vowel sequences.
It creates ``_hb_preprocess_text_vowel_constraints``, which inserts dotted
circles into sequences prohibited by the USE script development spec.
This function should be used as the ``preprocess_text`` of an
``hb_ot_complex_shaper... | 37.770701 | 130 | 0.579764 | 738 | 5,930 | 4.533875 | 0.257453 | 0.031381 | 0.026898 | 0.028392 | 0.187986 | 0.13688 | 0.063957 | 0.049014 | 0.049014 | 0.049014 | 0 | 0.014654 | 0.286509 | 5,930 | 156 | 131 | 38.012821 | 0.776176 | 0.143508 | 0 | 0.117117 | 0 | 0 | 0.208135 | 0.054762 | 0 | 0 | 0.00119 | 0 | 0.036036 | 1 | 0.054054 | false | 0 | 0.036036 | 0.009009 | 0.144144 | 0.09009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
88f5b3a545f8379f5c6bd871ff166dd1442dd335 | 1,263 | py | Python | solutions/validate-binary-search-tree.py | edab/-LC_StudyPlan_Python | e065f0ced68d23800d7b5001102c2e930ee35e23 | [
"MIT"
] | null | null | null | solutions/validate-binary-search-tree.py | edab/-LC_StudyPlan_Python | e065f0ced68d23800d7b5001102c2e930ee35e23 | [
"MIT"
] | 1 | 2022-02-22T15:42:54.000Z | 2022-02-25T00:10:04.000Z | solutions/validate-binary-search-tree.py | edab/-LC_StudyPlan_Python | e065f0ced68d23800d7b5001102c2e930ee35e23 | [
"MIT"
] | null | null | null | # Leetcode 98. Validate Binary Search Tree
#
# Link: https://leetcode.com/problems/validate-binary-search-tree/
# Difficulty: Medium
# Complexity:
# O(N) time | where N represent the number of elements in the input tree
# O(N) space | where N represent the number of elements in the input tree
# Definition for a bi... | 30.071429 | 104 | 0.63658 | 173 | 1,263 | 4.537572 | 0.364162 | 0.035669 | 0.042038 | 0.061147 | 0.170701 | 0.122293 | 0.122293 | 0.122293 | 0.122293 | 0.122293 | 0 | 0.003264 | 0.272367 | 1,263 | 41 | 105 | 30.804878 | 0.850925 | 0.366587 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.458333 | 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 | 0 | 0 | 1 | 0 |
88f8317bf62d16d93d0f7dd37a85760c1a1014e1 | 763 | py | Python | setup.py | stanford-ccb/ccb | ba75d490663958703f19e7a13f72001b050da229 | [
"MIT"
] | 3 | 2020-02-13T00:49:06.000Z | 2020-06-24T23:53:25.000Z | setup.py | stanford-ccb/ccb | ba75d490663958703f19e7a13f72001b050da229 | [
"MIT"
] | null | null | null | setup.py | stanford-ccb/ccb | ba75d490663958703f19e7a13f72001b050da229 | [
"MIT"
] | 4 | 2020-01-29T17:21:59.000Z | 2021-01-27T01:53:05.000Z | from setuptools import setup
version = open("ccb/__version__.py").read().strip('"\n')
setup_args = {
"name": "ccb",
"version": version,
"url": "https://github.com/earth-chris/ccb",
"license": "MIT",
"author": "Christopher Anderson",
"author_email": "cbanders@stanford.edu",
"description": "... | 34.681818 | 111 | 0.643512 | 87 | 763 | 5.528736 | 0.643678 | 0.056133 | 0.112266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 763 | 21 | 112 | 36.333333 | 0.735474 | 0 | 0 | 0 | 0 | 0 | 0.585845 | 0.169069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 0 | 0 | 1 | 0 |
88f8e7ad2c848fa7633da12c05df70cdb4d3835a | 1,576 | py | Python | Unit4/Lesson8.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit4/Lesson8.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit4/Lesson8.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null |
# import time
#
# def reader():
# """A generator that fakes a read from a file, socket, etc."""
# for i in range(101):
# yield '<< %s' % i
#
# def consumer():
# r = ''
# while True:
# #但是Python的yield不但可以返回一个值,它还可以接收调用者发出的参数。
# #此处的n是接受参数
# n = yield from reader()
# ... | 17.909091 | 68 | 0.498096 | 198 | 1,576 | 3.954545 | 0.378788 | 0.03576 | 0.022989 | 0.042146 | 0.048531 | 0.048531 | 0 | 0 | 0 | 0 | 0 | 0.028155 | 0.346447 | 1,576 | 87 | 69 | 18.114943 | 0.732039 | 0.564721 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88fb6794a48a5fc109dca145fcd71d6498bacc28 | 1,288 | py | Python | tools/transferComponentSelection.py | fsanges/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 165 | 2015-01-26T05:22:04.000Z | 2022-03-22T02:50:41.000Z | tools/transferComponentSelection.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 5 | 2015-12-02T02:39:44.000Z | 2020-12-09T02:45:54.000Z | tools/transferComponentSelection.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 83 | 2015-02-10T17:18:24.000Z | 2022-02-10T07:16:47.000Z | import maya.cmds as mc
import maya.OpenMaya as OpenMaya
import glTools.utils.base
def transferComponentSelection(sourceSelection,targetMesh,threshold=0.0001):
'''
'''
# Check selection target mesh
if not mc.objExists(targetMesh):
raise Exception('Target mesh "'+targetMesh+'" does not exist!')
# Flatten selec... | 22.596491 | 76 | 0.699534 | 162 | 1,288 | 5.561728 | 0.450617 | 0.059933 | 0.08657 | 0.099889 | 0.119867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.198758 | 1,288 | 56 | 77 | 23 | 0.857558 | 0.274068 | 0 | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 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 | 0 | 0 | 1 | 0 |
88fe054080de49b8785340e2f3ce23ac82e4a3fa | 324 | py | Python | the_office/test.py | zubyjaved/reddit-bots | 9f15f5ee9eede5223c975c29527c9e58d68bb517 | [
"MIT"
] | 2 | 2019-09-07T09:40:23.000Z | 2021-06-19T08:40:00.000Z | the_office/test.py | zubyjaved/reddit-bots | 9f15f5ee9eede5223c975c29527c9e58d68bb517 | [
"MIT"
] | 2 | 2019-09-05T04:42:23.000Z | 2019-09-05T04:44:37.000Z | the_office/test.py | zubyjaved/reddit-bots | 9f15f5ee9eede5223c975c29527c9e58d68bb517 | [
"MIT"
] | null | null | null | import json
import praw
reddit = praw.Reddit("dwight-schrute-bot")
for submission in reddit.subreddit('all').rising(limit=15):
submission.comments.replace_more(limit=None)
print(submission.subreddit.display_name)
if not submission.over_18:
for comment in submission.comments.list():
pri... | 29.454545 | 59 | 0.722222 | 42 | 324 | 5.5 | 0.666667 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.166667 | 324 | 11 | 60 | 29.454545 | 0.840741 | 0 | 0 | 0 | 0 | 0 | 0.064615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88fe820e78b74b43c84647fdd224db13efd8f585 | 1,311 | py | Python | Scripts/Client/ManualControlTest.py | Fzeak/sauvc-2019 | 573dcb351d0f87f9b7605667c570a5003bedb224 | [
"MIT"
] | null | null | null | Scripts/Client/ManualControlTest.py | Fzeak/sauvc-2019 | 573dcb351d0f87f9b7605667c570a5003bedb224 | [
"MIT"
] | null | null | null | Scripts/Client/ManualControlTest.py | Fzeak/sauvc-2019 | 573dcb351d0f87f9b7605667c570a5003bedb224 | [
"MIT"
] | null | null | null | from pymavlink import mavutil
import time
# Create the connection
master = mavutil.mavlink_connection('udpin:0.0.0.0:14550')
# Wait a heartbeat before sending commands
master.wait_heartbeat()
# Send a positive x value, negative y, negative z,
# positive rotation and no button.
# http://mavlink.org/messages/common#MAN... | 28.5 | 100 | 0.695652 | 200 | 1,311 | 4.465 | 0.54 | 0.013438 | 0.013438 | 0.073908 | 0.098544 | 0.098544 | 0.098544 | 0.098544 | 0 | 0 | 0 | 0.05698 | 0.196796 | 1,311 | 45 | 101 | 29.133333 | 0.791073 | 0.423341 | 0 | 0.333333 | 0 | 0 | 0.09825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00002c1133ee1a3e69c2c023cddb9b34c36440ca | 1,634 | py | Python | setup.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 3 | 2019-06-10T18:44:03.000Z | 2021-11-17T10:57:09.000Z | setup.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 2 | 2017-12-15T01:09:49.000Z | 2021-03-25T20:42:23.000Z | setup.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 4 | 2017-08-21T03:32:51.000Z | 2019-10-18T04:09:38.000Z | #!/usr/bin/env python
from setuptools import setup
from distutils.command.build import build
from setuptools.command.develop import develop
class build_with_spurious(build):
def run(self):
import os
if "CC" in os.environ:
cc = os.environ['CC']
else:
cc = "cc"
... | 29.709091 | 106 | 0.641983 | 170 | 1,634 | 6.041176 | 0.452941 | 0.046738 | 0.075949 | 0.031159 | 0.179163 | 0.144109 | 0.144109 | 0.144109 | 0.144109 | 0.144109 | 0 | 0.004036 | 0.241738 | 1,634 | 54 | 107 | 30.259259 | 0.824859 | 0.01224 | 0 | 0.136364 | 0 | 0 | 0.405456 | 0.215127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.204545 | 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 | 0 | 0 | 1 | 0 |
00004b28f6ae2b9a9b673b26fbf0fba70c90416d | 1,126 | py | Python | client/client.py | flavioribeiro/playmobil | d104b80fd666158e7ae3d1e28ce8d3ba68e93a68 | [
"Apache-2.0"
] | 1 | 2016-10-27T21:30:30.000Z | 2016-10-27T21:30:30.000Z | client/client.py | flavioribeiro/playmobil | d104b80fd666158e7ae3d1e28ce8d3ba68e93a68 | [
"Apache-2.0"
] | null | null | null | client/client.py | flavioribeiro/playmobil | d104b80fd666158e7ae3d1e28ce8d3ba68e93a68 | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.append("/Library/Frameworks/GStreamer.framework/Versions/0.10/lib/python2.7/site-packages/")
import gobject
gobject.threads_init()
import pygst
pygst.require("0.10")
import gst
class Client(object):
def __init__(self):
self.pipeline = gst.Pipeline('client')
self.videotestsrc = s... | 34.121212 | 101 | 0.71492 | 139 | 1,126 | 5.661871 | 0.402878 | 0.082592 | 0.086404 | 0.071156 | 0.142313 | 0.142313 | 0.142313 | 0.142313 | 0 | 0 | 0 | 0.016736 | 0.150977 | 1,126 | 32 | 102 | 35.1875 | 0.806485 | 0 | 0 | 0 | 0 | 0.038462 | 0.154529 | 0.072824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.153846 | 0.038462 | 0.346154 | 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 | 0 | 0 | 1 | 0 |
00005f4a70c5144076952dbbb1c77de24a5e43d7 | 3,852 | py | Python | InternetSemLimites/api/tests/test_edit_view.py | InternetSemLimites/PublicAPI | 3dd0f17fe66688ef2895de540950f45d69bcd9d8 | [
"MIT"
] | 18 | 2016-04-14T17:03:29.000Z | 2020-01-01T00:54:03.000Z | InternetSemLimites/api/tests/test_edit_view.py | InternetSemLimites/PublicAPI | 3dd0f17fe66688ef2895de540950f45d69bcd9d8 | [
"MIT"
] | 48 | 2016-04-15T12:33:33.000Z | 2018-01-25T16:01:45.000Z | InternetSemLimites/api/tests/test_edit_view.py | InternetSemLimites/PublicAPI | 3dd0f17fe66688ef2895de540950f45d69bcd9d8 | [
"MIT"
] | 4 | 2016-04-15T07:57:04.000Z | 2017-09-10T18:10:40.000Z | from django.contrib.auth.models import User
from django.core import mail
from django.shortcuts import resolve_url
from django.test import TestCase
from InternetSemLimites.core.forms import ProviderForm
from InternetSemLimites.core.models import Provider, State
class TestPostValid(TestCase):
def setUp(self):
... | 39.306122 | 98 | 0.637072 | 474 | 3,852 | 5.048523 | 0.236287 | 0.075219 | 0.067697 | 0.043878 | 0.550355 | 0.412035 | 0.412035 | 0.379858 | 0.34392 | 0.34392 | 0 | 0.004988 | 0.219367 | 3,852 | 97 | 99 | 39.71134 | 0.790821 | 0 | 0 | 0.363636 | 0 | 0 | 0.136552 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 1 | 0.116883 | false | 0.025974 | 0.077922 | 0 | 0.220779 | 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 | 0 | 0 | 1 | 0 |
000069dbeffca39b13535cbec664af30b8b425d2 | 351 | py | Python | algorithm-study/therory/selectionSort.py | Seongkyun-Yu/TIL | 2be6a2a68246bc98996b1421e2cc20e025c876ed | [
"MIT"
] | 1 | 2020-02-17T15:15:55.000Z | 2020-02-17T15:15:55.000Z | algorithm-study/therory/selectionSort.py | Seongkyun-Yu/TIL | 2be6a2a68246bc98996b1421e2cc20e025c876ed | [
"MIT"
] | 6 | 2020-07-31T17:03:56.000Z | 2022-02-27T04:17:57.000Z | algorithm-study/therory/selectionSort.py | Seongkyun-Yu/TIL | 2be6a2a68246bc98996b1421e2cc20e025c876ed | [
"MIT"
] | null | null | null | import random
data_list = random.sample(range(100), 50)
def selectionSort(arr):
for index1 in range(len(arr) - 1):
lowestIndex = index1
for index2 in range(index1, len(arr)):
if(arr[lowestIndex] > arr[index2]):
lowestIndex = index2
arr[index1] = arr[lowestIndex]
return arr
print(sele... | 18.473684 | 42 | 0.65812 | 45 | 351 | 5.088889 | 0.466667 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047794 | 0.225071 | 351 | 18 | 43 | 19.5 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00021f532b1a8ddd0a8c15783c8737edde030453 | 12,045 | py | Python | platform/core/polyaxon/monitor_statuses/monitor.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/monitor_statuses/monitor.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/monitor_statuses/monitor.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Any, Mapping
import redis
import conf
import ocular
import workers
from constants.experiment_jobs import get_experiment_job_uuid
from db.redis.containers import RedisJobContainers
from db.redis.statuses import RedisStatuses
from lifecycles.jobs import JobLifeCycle
from options.regi... | 39.491803 | 94 | 0.594687 | 1,234 | 12,045 | 5.423825 | 0.120746 | 0.099059 | 0.031376 | 0.025549 | 0.514269 | 0.466906 | 0.37457 | 0.344091 | 0.314059 | 0.314059 | 0 | 0.003225 | 0.330677 | 12,045 | 304 | 95 | 39.621711 | 0.826966 | 0.026401 | 0 | 0.313492 | 0 | 0 | 0.080901 | 0.009985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.003968 | 0.055556 | 0.003968 | 0.126984 | 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 | 0 | 0 | 1 | 0 |
0003b8ab877e0ee926932cb4211e0799fd7d5511 | 14,636 | py | Python | flow65/wing_tool.py | corygoates/Flow65 | 148eddaeeed8711eae37a16820215c89f93f01d5 | [
"MIT"
] | null | null | null | flow65/wing_tool.py | corygoates/Flow65 | 148eddaeeed8711eae37a16820215c89f93f01d5 | [
"MIT"
] | null | null | null | flow65/wing_tool.py | corygoates/Flow65 | 148eddaeeed8711eae37a16820215c89f93f01d5 | [
"MIT"
] | null | null | null | import sys
import json
import numpy as np
import matplotlib.pyplot as plt
class Wing:
"""A class for modeling a finite wing using the sine-series solution to Prandtl's lifting-line equation.
Parameters
----------
planform : str
May be "elliptic" or "tapered".
b : float
Wingspan.... | 36.227723 | 197 | 0.583903 | 2,342 | 14,636 | 3.382579 | 0.125534 | 0.031558 | 0.018177 | 0.01641 | 0.29336 | 0.206766 | 0.163974 | 0.120172 | 0.094168 | 0.086342 | 0 | 0.030131 | 0.253963 | 14,636 | 404 | 198 | 36.227723 | 0.695393 | 0.185023 | 0 | 0.119658 | 0 | 0 | 0.102032 | 0.00198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029915 | false | 0.004274 | 0.017094 | 0 | 0.051282 | 0.205128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
0005a7c39d8aea447086a691df1fb17b38ca23eb | 927 | py | Python | UAC.py | weareblahs/wsa-auto-install | 0633d2b4e36ba50ddbe5b16505b8a09ff764df26 | [
"MIT"
] | 76 | 2021-10-29T23:41:26.000Z | 2021-12-09T06:31:04.000Z | UAC.py | weareblahs/wsa-auto-install | 0633d2b4e36ba50ddbe5b16505b8a09ff764df26 | [
"MIT"
] | 7 | 2021-11-10T19:05:26.000Z | 2021-12-07T15:53:43.000Z | UAC.py | weareblahs/wsa-auto-install | 0633d2b4e36ba50ddbe5b16505b8a09ff764df26 | [
"MIT"
] | 16 | 2021-11-06T06:17:58.000Z | 2021-12-08T22:08:24.000Z | def elevate():
import ctypes, win32com, win32event, win32process, os, sys
outpath = r'%s\%s.out' % (os.environ["TEMP"], os.path.basename(__file__))
if ctypes.windll.shell32.IsUserAnAdmin():
if os.path.isfile(outpath):
sys.stderr = sys.stdout = open(outpath, 'w', 0)
return
wit... | 38.625 | 91 | 0.593312 | 105 | 927 | 5.12381 | 0.590476 | 0.022305 | 0.05948 | 0.070632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036928 | 0.269687 | 927 | 24 | 92 | 38.625 | 0.757755 | 0 | 0 | 0.086957 | 0 | 0 | 0.040948 | 0 | 0 | 0 | 0.005388 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 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 | 0 | 0 | 1 | 0 |
0006b94d0b62d69c3ab03500298cb1fb2775bd17 | 629 | py | Python | etikihead/urls.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | 1 | 2019-08-31T18:04:39.000Z | 2019-08-31T18:04:39.000Z | etikihead/urls.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | 19 | 2019-12-12T01:38:49.000Z | 2022-03-12T00:26:14.000Z | etikihead/urls.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
app_name = 'etikihead'
urlpatterns = [
path('', views.entry_mask, name='entrymask'),
path('contact/', views.contact, name='contact'),
path('privacy/', views.privacy, name='privac... | 26.208333 | 61 | 0.658188 | 78 | 629 | 5.282051 | 0.320513 | 0.072816 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151033 | 629 | 23 | 62 | 27.347826 | 0.771536 | 0 | 0 | 0 | 0 | 0 | 0.197452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0007473466f54c5bf5a586f0d058eba177c13018 | 1,070 | py | Python | test_proj/test_tcA002.py | leeltib/vizsgamunka_ref | 59dc64d499c32a548a6e83c251cf16e2787e8672 | [
"MIT"
] | null | null | null | test_proj/test_tcA002.py | leeltib/vizsgamunka_ref | 59dc64d499c32a548a6e83c251cf16e2787e8672 | [
"MIT"
] | null | null | null | test_proj/test_tcA002.py | leeltib/vizsgamunka_ref | 59dc64d499c32a548a6e83c251cf16e2787e8672 | [
"MIT"
] | null | null | null | # TC002 test case - Login in with new user data - exit
import data.data_tcA002 as da02
import func.func_01 as fu01
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
opti... | 23.26087 | 91 | 0.675701 | 134 | 1,070 | 5.216418 | 0.544776 | 0.051502 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046256 | 0.151402 | 1,070 | 45 | 92 | 23.777778 | 0.723568 | 0.171028 | 0 | 0 | 0 | 0 | 0.0876 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.04 | false | 0.04 | 0.28 | 0 | 0.36 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
000803fab8613a18bfb601cb4e0f3433d97e4dce | 966 | py | Python | lisc/tests/test_data_utils.py | jasongfleischer/lisc | ed30be957d7ce13ccbac51092990869840e6f176 | [
"Apache-2.0"
] | 1 | 2020-05-11T18:36:16.000Z | 2020-05-11T18:36:16.000Z | lisc/tests/test_data_utils.py | jasongfleischer/lisc | ed30be957d7ce13ccbac51092990869840e6f176 | [
"Apache-2.0"
] | null | null | null | lisc/tests/test_data_utils.py | jasongfleischer/lisc | ed30be957d7ce13ccbac51092990869840e6f176 | [
"Apache-2.0"
] | null | null | null | """Tests for the data utilities from lisc."""
from lisc.data.utils import *
###################################################################################################
###################################################################################################
def test_count_elements():
tdat = ['... | 23.560976 | 99 | 0.471014 | 105 | 966 | 4.161905 | 0.361905 | 0.064073 | 0.077803 | 0.064073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002541 | 0.1853 | 966 | 40 | 100 | 24.15 | 0.552732 | 0.040373 | 0 | 0.095238 | 0 | 0 | 0.113416 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0008876f23a1dced29f967f65132c7d09b0756dc | 2,316 | py | Python | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/actor.py | tmds/leapp-repository | 7c9ea115a68530eb25f5c23d3fcadd60c501bf78 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/actor.py | tmds/leapp-repository | 7c9ea115a68530eb25f5c23d3fcadd60c501bf78 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:34:11.000Z | 2022-03-07T15:35:15.000Z | repos/system_upgrade/el8toel9/actors/firewalldcheckallowzonedrifting/actor.py | tmds/leapp-repository | 7c9ea115a68530eb25f5c23d3fcadd60c501bf78 | [
"Apache-2.0"
] | null | null | null | from leapp import reporting
from leapp.actors import Actor
from leapp.models import FirewalldGlobalConfig, FirewallsFacts
from leapp.reporting import create_report, Report
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
class FirewalldCheckAllowZoneDrifting(Actor):
"""
This actor will check if AllowZone... | 44.538462 | 91 | 0.642055 | 240 | 2,316 | 6.15 | 0.470833 | 0.030488 | 0.01897 | 0.02168 | 0.056911 | 0.028455 | 0 | 0 | 0 | 0 | 0 | 0.00538 | 0.277634 | 2,316 | 51 | 92 | 45.411765 | 0.876868 | 0.189983 | 0 | 0.058824 | 0 | 0 | 0.258798 | 0.075799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.147059 | 0 | 0.382353 | 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 | 0 | 0 | 1 | 0 |
0009620a33b624fda2004552df089e8ea26f0972 | 665 | py | Python | eeve/eeve actions/list_dir.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | 1 | 2019-10-11T18:42:48.000Z | 2019-10-11T18:42:48.000Z | eeve/eeve actions/list_dir.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | null | null | null | eeve/eeve actions/list_dir.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | 1 | 2019-10-11T18:42:49.000Z | 2019-10-11T18:42:49.000Z | import os
def run(path: str, return_full_path: bool = False):
"""Gets all files and folders from a path and stores them into $file_list
Arguments:
path {str} -- The path to get files and folders from
Keyword Arguments:
return_full_path {bool} -- True to return the full path of th... | 27.708333 | 124 | 0.627068 | 98 | 665 | 4.163265 | 0.459184 | 0.078431 | 0.102941 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276692 | 665 | 23 | 125 | 28.913043 | 0.848233 | 0.518797 | 0 | 0 | 0 | 0 | 0.062271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0009cacc81bd5d1ceb8972e6ec2ff4235cfdb2ad | 11,938 | py | Python | tests/test_workspaces.py | jeokrohn/wxc_sdk | e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9 | [
"MIT"
] | null | null | null | tests/test_workspaces.py | jeokrohn/wxc_sdk | e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9 | [
"MIT"
] | null | null | null | tests/test_workspaces.py | jeokrohn/wxc_sdk | e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9 | [
"MIT"
] | 1 | 2022-03-29T18:56:59.000Z | 2022-03-29T18:56:59.000Z | """
Test for workspaces API
"""
# TODO: tests for authorization codes
import random
from collections.abc import Generator
from concurrent.futures import ThreadPoolExecutor
from contextlib import contextmanager
from wxc_sdk.rest import RestError
from wxc_sdk.all_types import *
from .base import TestCaseWithLog
TEST_WO... | 43.410909 | 116 | 0.627576 | 1,399 | 11,938 | 5.13867 | 0.149392 | 0.045625 | 0.050633 | 0.060787 | 0.594102 | 0.542774 | 0.501182 | 0.496453 | 0.475588 | 0.415774 | 0 | 0.017116 | 0.295276 | 11,938 | 274 | 117 | 43.569343 | 0.837395 | 0.128916 | 0 | 0.469945 | 0 | 0 | 0.059267 | 0.013875 | 0 | 0 | 0 | 0.00365 | 0.087432 | 1 | 0.076503 | false | 0 | 0.038251 | 0 | 0.147541 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
000aa2371b1616577368d0ba5de43105bfebe942 | 1,935 | py | Python | openpose/data/parse_tfrecord.py | calmisential/Pose_Estimation | f3546fcfdc81ef60708fbda5fc1eb499679fff2f | [
"MIT"
] | null | null | null | openpose/data/parse_tfrecord.py | calmisential/Pose_Estimation | f3546fcfdc81ef60708fbda5fc1eb499679fff2f | [
"MIT"
] | null | null | null | openpose/data/parse_tfrecord.py | calmisential/Pose_Estimation | f3546fcfdc81ef60708fbda5fc1eb499679fff2f | [
"MIT"
] | null | null | null | import tensorflow as tf
import glob
from configuration import OpenPoseCfg as cfg
from openpose.data.augmentation import Transformer
def get_tfrecord_filenames(path):
print("从"+path+"中提取TFRecords文件:")
tfrecord_files = glob.glob(path + "*")
tfrecord_files.sort()
if not tfrecord_files:
raise Va... | 34.553571 | 106 | 0.724548 | 242 | 1,935 | 5.533058 | 0.27686 | 0.083645 | 0.076176 | 0.0941 | 0.302465 | 0.278566 | 0.233757 | 0.171023 | 0.171023 | 0.134429 | 0 | 0 | 0.186047 | 1,935 | 56 | 107 | 34.553571 | 0.850159 | 0.013437 | 0 | 0.04878 | 0 | 0 | 0.023585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.097561 | 0 | 0.341463 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
000df0f38e45fa3a6986ef9af7fbf9e539d0a092 | 689 | py | Python | gbdxtools/images/quickbird.py | matthewhanson/gbdxtools | f07fed2ea2b8d62845f6cf83c3947d0c2a4c6daf | [
"MIT"
] | 81 | 2016-04-05T23:32:46.000Z | 2022-01-02T21:21:09.000Z | gbdxtools/images/quickbird.py | matthewhanson/gbdxtools | f07fed2ea2b8d62845f6cf83c3947d0c2a4c6daf | [
"MIT"
] | 624 | 2016-04-06T22:22:01.000Z | 2022-01-03T17:48:50.000Z | gbdxtools/images/quickbird.py | matthewhanson/gbdxtools | f07fed2ea2b8d62845f6cf83c3947d0c2a4c6daf | [
"MIT"
] | 66 | 2016-04-13T22:45:37.000Z | 2022-01-03T18:03:26.000Z | from gbdxtools.images.worldview import WorldViewImage
from gbdxtools.images.geoeye01 import GeoEyeDriver
from gbdxtools.images.util import vector_services_query
band_types = {
'MS': 'BGRN',
'Panchromatic': 'PAN',
'Pan': 'PAN',
'pan': 'PAN'
}
class QB02Driver(GeoEyeDriver):
pass
class QB02(WorldVi... | 25.518519 | 93 | 0.690856 | 78 | 689 | 5.858974 | 0.576923 | 0.052516 | 0.124726 | 0.052516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019964 | 0.20029 | 689 | 26 | 94 | 26.5 | 0.809437 | 0 | 0 | 0 | 0 | 0 | 0.172714 | 0.081277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.142857 | 0.047619 | 0.47619 | 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 | 0 | 0 | 1 | 0 |
000f226aca878e3b01ee23b36d3e3744fe747d69 | 1,137 | py | Python | fastISM/models/bpnet.py | kundajelab/fastISM | 1573feccba1ad5d9f1cee508f5bb03c4aa09bb2b | [
"MIT"
] | 12 | 2020-09-20T17:03:48.000Z | 2022-03-16T06:51:52.000Z | fastISM/models/bpnet.py | kundajelab/fastISM | 1573feccba1ad5d9f1cee508f5bb03c4aa09bb2b | [
"MIT"
] | 5 | 2020-10-24T20:43:45.000Z | 2022-02-25T19:40:47.000Z | fastISM/models/bpnet.py | kundajelab/fastISM | 1573feccba1ad5d9f1cee508f5bb03c4aa09bb2b | [
"MIT"
] | 2 | 2020-10-14T05:18:55.000Z | 2022-02-21T07:34:14.000Z | import tensorflow as tf
def bpnet_model(seqlen=1000, numchars=4, num_dilated_convs=9, num_tasks=1,
name='bpnet_model'):
# original as per https://www.biorxiv.org/content/10.1101/737981v1.full.pdf
inp = tf.keras.layers.Input(shape=(seqlen, 4))
x = tf.keras.layers.Conv1D(
64, kernel_... | 34.454545 | 88 | 0.62533 | 158 | 1,137 | 4.405063 | 0.455696 | 0.100575 | 0.168103 | 0.060345 | 0.166667 | 0.091954 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0.047891 | 0.228672 | 1,137 | 32 | 89 | 35.53125 | 0.745724 | 0.102023 | 0 | 0 | 0 | 0 | 0.030512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
000fb685fc9f26f073890df0d180e999e12bb012 | 801 | py | Python | leetcode/108-Convert-Sorted-Array-To-Binary-Search-Tree/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 25 | 2018-05-22T15:18:50.000Z | 2022-01-08T02:41:46.000Z | leetcode/108-Convert-Sorted-Array-To-Binary-Search-Tree/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 1 | 2019-05-24T16:55:27.000Z | 2019-05-24T16:55:27.000Z | leetcode/108-Convert-Sorted-Array-To-Binary-Search-Tree/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 18 | 2018-09-20T15:39:26.000Z | 2022-03-02T21:38:22.000Z | #!/usr/bin/env python3
#-------------------------------------------------------------------------------
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def sortedArrayToBST(self, nums)... | 27.62069 | 80 | 0.400749 | 75 | 801 | 4.226667 | 0.493333 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010772 | 0.304619 | 801 | 28 | 81 | 28.607143 | 0.558348 | 0.469413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
0011bad4390288b5a901919fe11d0ebf83273af9 | 596 | py | Python | tests/test_filter.py | rdemaria/xpart | 35fe06eeb508991dfe1dd23685331f8347d0b603 | [
"MIT"
] | 1 | 2021-09-07T14:34:10.000Z | 2021-09-07T14:34:10.000Z | tests/test_filter.py | rdemaria/xpart | 35fe06eeb508991dfe1dd23685331f8347d0b603 | [
"MIT"
] | null | null | null | tests/test_filter.py | rdemaria/xpart | 35fe06eeb508991dfe1dd23685331f8347d0b603 | [
"MIT"
] | 5 | 2021-11-04T08:23:43.000Z | 2022-03-16T10:34:23.000Z | import numpy as np
import xobjects as xo
import xpart as xp
def test_basics():
for context in xo.context.get_test_contexts():
print(f"Test {context.__class__}")
p1 = xp.Particles(x=[1,2,3], px=[10, 20, 30],
mass0=xp.ELECTRON_MASS_EV,
_context=co... | 25.913043 | 56 | 0.552013 | 83 | 596 | 3.783133 | 0.53012 | 0.012739 | 0.095541 | 0.121019 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059113 | 0.318792 | 596 | 22 | 57 | 27.090909 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.052013 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
001513d4c6890aca681f0ade18ed556b34353f85 | 4,550 | py | Python | main.py | NimaVahdat/Image-Categorization | 4addce895b14c0c663e3ee317ffcd802b774452b | [
"MIT"
] | null | null | null | main.py | NimaVahdat/Image-Categorization | 4addce895b14c0c663e3ee317ffcd802b774452b | [
"MIT"
] | null | null | null | main.py | NimaVahdat/Image-Categorization | 4addce895b14c0c663e3ee317ffcd802b774452b | [
"MIT"
] | null | null | null | from utils.loader import Loader
from utils.model import DeepSNN
import torch
import os
def feature_extraction(prop):
name = prop["name"]
epochs_l1 = prop["epochs_l1"]
epochs_l2 = prop["epochs_l2"]
trainset, testset = Loader(name)
model = DeepSNN(prop)
# Training The First... | 28.980892 | 86 | 0.575824 | 605 | 4,550 | 4.147107 | 0.247934 | 0.025907 | 0.043842 | 0.047828 | 0.479075 | 0.437625 | 0.392188 | 0.376246 | 0.274213 | 0.259864 | 0 | 0.042404 | 0.27956 | 4,550 | 157 | 87 | 28.980892 | 0.723002 | 0.112527 | 0 | 0.281553 | 0 | 0 | 0.118486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.067961 | 0 | 0.135922 | 0.116505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
001659507468ba211846a086bb3af6d259d15e23 | 409 | py | Python | 1704-determine-if-string-halves-are-alike/1704-determine-if-string-halves-are-alike.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | 2 | 2021-12-05T14:29:06.000Z | 2022-01-01T05:46:13.000Z | 1704-determine-if-string-halves-are-alike/1704-determine-if-string-halves-are-alike.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | 1704-determine-if-string-halves-are-alike/1704-determine-if-string-halves-are-alike.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | class Solution:
def halvesAreAlike(self, s: str) -> bool:
vowel = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
first = s[:int(len(s)/2)]
second = s[int(len(s)/2):]
firstsum = sum([1 for f in first if f in vowel])
secondsum = sum([1 for s in second if s in vowel])
... | 37.181818 | 66 | 0.484108 | 61 | 409 | 3.245902 | 0.508197 | 0.020202 | 0.030303 | 0.040404 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.339853 | 409 | 11 | 67 | 37.181818 | 0.718519 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 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 | 0 | 0 | 1 | 0 |
00198cc9e3c841bb01a56c333dd3c279b3334a56 | 9,789 | py | Python | honeycomb/worker_bee.py | agrc/honeycomb | a4227221759541b007c2d2a8dcfca5a40192eeff | [
"MIT"
] | 1 | 2018-06-07T13:17:40.000Z | 2018-06-07T13:17:40.000Z | honeycomb/worker_bee.py | agrc/honeycomb | a4227221759541b007c2d2a8dcfca5a40192eeff | [
"MIT"
] | 24 | 2017-08-28T19:53:15.000Z | 2022-03-28T21:36:37.000Z | honeycomb/worker_bee.py | agrc/honeycomb | a4227221759541b007c2d2a8dcfca5a40192eeff | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# * coding: utf8 *
'''
worker_bee.py
A module that contains logic for building traditional image-based caches.
'''
import os
import socket
import time
from os.path import join, dirname, realpath
from shutil import rmtree
import pygsheets
from datetime import date
import arcpy
from . import con... | 42.934211 | 227 | 0.635611 | 1,186 | 9,789 | 5.043845 | 0.250422 | 0.025744 | 0.027583 | 0.025744 | 0.194584 | 0.111668 | 0.071882 | 0.071882 | 0.051488 | 0.036443 | 0 | 0.014606 | 0.251609 | 9,789 | 227 | 228 | 43.123348 | 0.801938 | 0.053632 | 0 | 0.138554 | 0 | 0.006024 | 0.167856 | 0.022604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0.006024 | 0.060241 | 0 | 0.144578 | 0.120482 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00214dc954dea8b8ef76726b14c1872ccfd1e59a | 799 | py | Python | robotarm/armservice/app.py | AmidBidee/Robot-Arm | cfacfc779b2f025846e9748167bcfb15ce207923 | [
"MIT"
] | 1 | 2022-03-27T20:09:10.000Z | 2022-03-27T20:09:10.000Z | robotarm/armservice/app.py | AmidBidee/Robot-Arm | cfacfc779b2f025846e9748167bcfb15ce207923 | [
"MIT"
] | 4 | 2022-03-25T03:45:10.000Z | 2022-03-29T14:31:16.000Z | robotarm/armservice/app.py | AmidBidee/RobotArm | cfacfc779b2f025846e9748167bcfb15ce207923 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
RobotArm API service config file
"""
import pathlib
from robotarm.armservice.views import api_views
from flask import (
Flask,
make_response,
jsonify
)
from robotarm.armservice import getenv
# initialize flask app
app = Flask(__name__)
# register/mount blueprint
app.register_bluepri... | 17.755556 | 47 | 0.677096 | 104 | 799 | 4.971154 | 0.548077 | 0.011605 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023659 | 0.206508 | 799 | 44 | 48 | 18.159091 | 0.791798 | 0.254068 | 0 | 0 | 0 | 0 | 0.102888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 | 0 |
0023e5b95c57b280f82e4d979d1eecb37cba4ae9 | 4,685 | py | Python | xbrr/edinet/reader/element_schema.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | xbrr/edinet/reader/element_schema.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | xbrr/edinet/reader/element_schema.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | from xbrr.base.reader.base_element_schema import BaseElementSchema
from bs4.element import NavigableString, Tag
import bs4
class ElementSchema(BaseElementSchema):
def __init__(self,
name="", reference="", label="", alias="",
abstract="", data_type="",
period_type... | 41.096491 | 229 | 0.56841 | 517 | 4,685 | 4.998066 | 0.253385 | 0.03096 | 0.02322 | 0.017415 | 0.093653 | 0.020124 | 0.020124 | 0 | 0 | 0 | 0 | 0.024876 | 0.313554 | 4,685 | 113 | 230 | 41.460177 | 0.778607 | 0.127001 | 0 | 0.11236 | 0 | 0 | 0.104683 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.089888 | false | 0 | 0.033708 | 0.011236 | 0.191011 | 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 | 0 | 0 | 1 | 0 |
0024cde788e4fc1c63bad501dddfdfc712994f43 | 817 | py | Python | app/models.py | james-muriithi/news-hub | 6f0fee2ab6be5bba86c4309050592e000859f8db | [
"Unlicense"
] | null | null | null | app/models.py | james-muriithi/news-hub | 6f0fee2ab6be5bba86c4309050592e000859f8db | [
"Unlicense"
] | null | null | null | app/models.py | james-muriithi/news-hub | 6f0fee2ab6be5bba86c4309050592e000859f8db | [
"Unlicense"
] | null | null | null | from datetime import datetime
class Sources:
"""
Sources class to define sources object
"""
def __init__(self, id, name, description, url, category, country):
self.id = id
self.name = name
self.description = description
self.url = url
self.category = category
... | 27.233333 | 103 | 0.623011 | 99 | 817 | 4.969697 | 0.333333 | 0.042683 | 0.060976 | 0.069106 | 0.162602 | 0.162602 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0.274174 | 817 | 30 | 103 | 27.233333 | 0.82968 | 0.096695 | 0 | 0.222222 | 0 | 0 | 0.038136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
002d82da21503f07067ace5a4397c6b6011e7cc0 | 4,709 | py | Python | pybps/preprocess/trnsys.py | dtavan/PyBPS | 92bd063daed78a7fcff1af954d7d90d0cde8dcfc | [
"BSD-3-Clause"
] | 9 | 2015-03-12T15:23:42.000Z | 2021-12-21T13:01:42.000Z | pybps/preprocess/trnsys.py | dtavan/PyBPS | 92bd063daed78a7fcff1af954d7d90d0cde8dcfc | [
"BSD-3-Clause"
] | 3 | 2015-09-20T17:31:09.000Z | 2018-02-26T13:11:53.000Z | pybps/preprocess/trnsys.py | dtavan/PyBPS | 92bd063daed78a7fcff1af954d7d90d0cde8dcfc | [
"BSD-3-Clause"
] | 3 | 2019-02-14T08:13:03.000Z | 2020-12-10T07:04:41.000Z | """
A set of functions required to pre-process TRNSYS simulation input files
"""
# Common imports
import os
import sys
import shutil
import re
# Custom imports
from pybps import util
# Handle Python 2/3 compatibility
from six.moves import configparser
import six
if six.PY2:
ConfigParser = configparser.SafeConfigP... | 31.393333 | 86 | 0.601826 | 607 | 4,709 | 4.546952 | 0.288303 | 0.039855 | 0.025362 | 0.022826 | 0.213406 | 0.161594 | 0.142754 | 0.121014 | 0.121014 | 0.032609 | 0 | 0.010593 | 0.298365 | 4,709 | 149 | 87 | 31.604027 | 0.824758 | 0.346358 | 0 | 0.263889 | 0 | 0 | 0.082168 | 0.017047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.097222 | 0 | 0.152778 | 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 | 0 | 0 | 1 | 0 |
002fac18e96ba58a8fc58e5945a2e85038de81e9 | 1,650 | py | Python | gof/console.py | jul/game_of_life | 0ffb798679f50dea27b55f8a630c437b6ee4d8f9 | [
"Python-2.0"
] | 1 | 2015-01-13T13:42:32.000Z | 2015-01-13T13:42:32.000Z | gof/console.py | jul/game_of_life | 0ffb798679f50dea27b55f8a630c437b6ee4d8f9 | [
"Python-2.0"
] | null | null | null | gof/console.py | jul/game_of_life | 0ffb798679f50dea27b55f8a630c437b6ee4d8f9 | [
"Python-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Game of Life console.
small play ground for leanning python, or just having fun.
To use the console with an empty grid:
python -i -mgof.console
or
bpython -i -mgof.console
To use the console with a pseudo animation:
python -i -mgof.demo
Avalailble varia... | 28.448276 | 79 | 0.693939 | 254 | 1,650 | 4.405512 | 0.444882 | 0.013405 | 0.029491 | 0.02681 | 0.144772 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0.003765 | 0.195152 | 1,650 | 57 | 80 | 28.947368 | 0.838855 | 0.661818 | 0 | 0.111111 | 0 | 0 | 0.283122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00316d362ddde2a4019229bccffbafd03e33e693 | 1,129 | py | Python | covid19uk/data/tier_data_test.py | sdwfrost/covid19uk | ffd59342d9daee2d819d2f7211afbe9713880612 | [
"MIT"
] | 10 | 2020-03-21T22:36:24.000Z | 2021-05-23T22:47:13.000Z | covid19uk/data/tier_data_test.py | sdwfrost/covid19uk | ffd59342d9daee2d819d2f7211afbe9713880612 | [
"MIT"
] | 14 | 2020-03-27T19:24:51.000Z | 2021-07-21T12:41:23.000Z | covid19uk/data/tier_data_test.py | sdwfrost/covid19uk | ffd59342d9daee2d819d2f7211afbe9713880612 | [
"MIT"
] | 13 | 2020-03-21T17:17:20.000Z | 2021-05-06T22:50:18.000Z | """Tests Tier Data"""
import numpy as np
from covid.data import TierData
def test_url_tier_data():
config = {
"AreaCodeData": {
"input": "json",
"address": "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/LAD_APR_2019_UK_NC/FeatureServer/0/query?where=1%3D1&out... | 30.513514 | 258 | 0.560673 | 109 | 1,129 | 5.688073 | 0.761468 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055901 | 0.28698 | 1,129 | 36 | 259 | 31.361111 | 0.714286 | 0.013286 | 0 | 0 | 0 | 0.033333 | 0.440433 | 0.032491 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00333d9d6b82d73d347ef774e208f7a11fd780ab | 1,550 | py | Python | Baixar um arquivo Excel e mandar o resultado para emails.py | GustavooBueno/Projetos-Python-Automacao | 43ec53040cd543746d88e8523fcffbdb69112ab7 | [
"MIT"
] | null | null | null | Baixar um arquivo Excel e mandar o resultado para emails.py | GustavooBueno/Projetos-Python-Automacao | 43ec53040cd543746d88e8523fcffbdb69112ab7 | [
"MIT"
] | null | null | null | Baixar um arquivo Excel e mandar o resultado para emails.py | GustavooBueno/Projetos-Python-Automacao | 43ec53040cd543746d88e8523fcffbdb69112ab7 | [
"MIT"
] | null | null | null | import pyautogui
import time
import pyperclip
import pandas as pd
#pyautogui.displayMousePosition()
pyautogui.PAUSE = 1
#Passo 1
#Abrir uma nova aba
time.sleep(2)
pyautogui.hotkey('ctrl', 't')
#Entrar no link do sistema
link = "https://drive.google.com/drive/folders/149xknr9JvrlEnhNWO49zPcw0PW5icxga"
py... | 25 | 82 | 0.713548 | 221 | 1,550 | 4.99095 | 0.457014 | 0.095195 | 0.12058 | 0.072529 | 0.267452 | 0.24116 | 0.210335 | 0.210335 | 0.210335 | 0.210335 | 0 | 0.042411 | 0.132903 | 1,550 | 62 | 83 | 25 | 0.778274 | 0.126452 | 0 | 0.355556 | 0 | 0 | 0.325273 | 0.052262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088889 | 0 | 0.088889 | 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 | 0 | 0 | 1 | 0 |
00341cca0d8a5cb36317216f72b4964ad336e187 | 34,289 | py | Python | brain_class.py | featureCreacle/Baka-battle | 0588216ff08bec1f6d4e0679daa8ac70e7f3d83a | [
"MIT"
] | 1 | 2017-12-23T11:16:35.000Z | 2017-12-23T11:16:35.000Z | brain_class.py | featureCreacle/Baka-battle | 0588216ff08bec1f6d4e0679daa8ac70e7f3d83a | [
"MIT"
] | null | null | null | brain_class.py | featureCreacle/Baka-battle | 0588216ff08bec1f6d4e0679daa8ac70e7f3d83a | [
"MIT"
] | null | null | null | import tkinter
import json
from math import *
from random import *
from tkinter import *
class brain_abstract():
''' # один слой это лист туплов: колво нейронов в группе,
# плюс(True) или минус(False) на выходе нейронов группы,
# номер... | 46.906977 | 143 | 0.495727 | 3,746 | 34,289 | 4.235718 | 0.094768 | 0.030251 | 0.042352 | 0.018529 | 0.496376 | 0.434172 | 0.381547 | 0.349783 | 0.320413 | 0.27283 | 0 | 0.030444 | 0.421389 | 34,289 | 730 | 144 | 46.971233 | 0.769304 | 0.08023 | 0 | 0.369565 | 0 | 0 | 0.004989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06689 | false | 0.005017 | 0.008361 | 0.01505 | 0.135452 | 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 | 0 | 0 | 1 | 0 |
0034f805a844662bdcbee5246fde715c74fdfb46 | 761 | py | Python | xiamiu/urls.py | Vida42/xiamiu | 9249a20746d1da050546e3fcdfafbc5ff49ab4d0 | [
"Apache-2.0"
] | null | null | null | xiamiu/urls.py | Vida42/xiamiu | 9249a20746d1da050546e3fcdfafbc5ff49ab4d0 | [
"Apache-2.0"
] | null | null | null | xiamiu/urls.py | Vida42/xiamiu | 9249a20746d1da050546e3fcdfafbc5ff49ab4d0 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from . import views
urlpatterns = [
path('', views.index, name='home'),
url(r'^artist/(?P<inputID>.*?)/$', views.showArtistPage, name='showArtistPage'),
url(r'^album/(?P<inputID>.*?)/$', views.showAlbumPage, name='showAlbumPage'),
url(r'^so... | 44.764706 | 84 | 0.672799 | 87 | 761 | 5.885057 | 0.310345 | 0.0625 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106439 | 761 | 16 | 85 | 47.5625 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0.350854 | 0.131406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 | 0 | 0 | 1 | 0 |
00350a7f72c371d77bedf708f8a55456f2d37c38 | 19,030 | py | Python | lib/python/treadmill_aws/formatter.py | Morgan-Stanley/treadmill-aws | 4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb | [
"Apache-2.0"
] | 6 | 2018-05-24T17:17:51.000Z | 2020-06-06T02:21:59.000Z | lib/python/treadmill_aws/formatter.py | Morgan-Stanley/treadmill-aws | 4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb | [
"Apache-2.0"
] | 93 | 2018-04-16T16:14:40.000Z | 2019-09-17T22:10:28.000Z | lib/python/treadmill_aws/formatter.py | Morgan-Stanley/treadmill-aws | 4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb | [
"Apache-2.0"
] | 17 | 2017-09-29T10:30:47.000Z | 2019-01-28T21:52:03.000Z | """Table CLI formatter.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import yaml
from treadmill.formatter import tablefmt
def _sort(unsorted):
"""Sort list."""
unsorted.sort()
return '\n'.join(un... | 31.094771 | 77 | 0.534314 | 1,724 | 19,030 | 5.692575 | 0.140951 | 0.039739 | 0.020175 | 0.030467 | 0.563685 | 0.525168 | 0.489097 | 0.485225 | 0.466884 | 0.443754 | 0 | 0.001402 | 0.325328 | 19,030 | 611 | 78 | 31.145663 | 0.762988 | 0.066369 | 0 | 0.58114 | 0 | 0 | 0.17641 | 0.00944 | 0 | 0 | 0 | 0.001637 | 0 | 1 | 0.065789 | false | 0 | 0.013158 | 0.002193 | 0.203947 | 0.002193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
0035d39504b6fcd873cb06e3d139aa8135704401 | 10,156 | py | Python | src/newt/db/updater.py | bmjjr/db | 39d3833f4458fcd20d09f383711745842b5db4f2 | [
"MIT"
] | 153 | 2017-01-24T16:55:00.000Z | 2022-03-21T08:24:13.000Z | src/newt/db/updater.py | bmjjr/db | 39d3833f4458fcd20d09f383711745842b5db4f2 | [
"MIT"
] | 14 | 2017-01-25T17:04:49.000Z | 2021-12-05T19:26:35.000Z | src/newt/db/updater.py | bmjjr/db | 39d3833f4458fcd20d09f383711745842b5db4f2 | [
"MIT"
] | 16 | 2017-01-25T07:25:17.000Z | 2022-03-21T08:24:16.000Z | from __future__ import print_function
"""Updates database json representation
"""
import argparse
import itertools
import logging
import relstorage.adapters.postgresql
import relstorage.options
import sys
from . import pg_connection
from . import follow
from .jsonpickle import Jsonifier
from ._adapter import DELETE_T... | 35.760563 | 79 | 0.581824 | 1,198 | 10,156 | 4.809683 | 0.265442 | 0.017182 | 0.032454 | 0.01319 | 0.21555 | 0.180493 | 0.171468 | 0.161055 | 0.147171 | 0.147171 | 0 | 0.008814 | 0.329756 | 10,156 | 283 | 80 | 35.886926 | 0.837667 | 0.026782 | 0 | 0.321888 | 0 | 0 | 0.298322 | 0.007117 | 0 | 0 | 0 | 0 | 0.004292 | 1 | 0.012876 | false | 0 | 0.072961 | 0 | 0.128755 | 0.038627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00372000fecac8f61456e1d5394b1e5bd0e18f9f | 3,538 | py | Python | medtype-trainer/neleval/scripts/merge_evaluations.py | vsocrates/medtype | 16c6f39d38a73c4c44258bbdf78074a81e07b1c7 | [
"Apache-2.0"
] | 113 | 2015-01-07T14:12:25.000Z | 2022-01-21T12:23:57.000Z | medtype-trainer/neleval/scripts/merge_evaluations.py | vsocrates/medtype | 16c6f39d38a73c4c44258bbdf78074a81e07b1c7 | [
"Apache-2.0"
] | 27 | 2015-02-02T02:45:38.000Z | 2018-09-08T10:33:25.000Z | medtype-trainer/neleval/scripts/merge_evaluations.py | vsocrates/medtype | 16c6f39d38a73c4c44258bbdf78074a81e07b1c7 | [
"Apache-2.0"
] | 24 | 2015-02-16T18:26:48.000Z | 2021-05-25T13:23:53.000Z | #!/usr/bin/env python
"""Merge multiple evaluation files into one with prefixed measure names
If directories are given, and --out-dir, will group by filename.
Example usage:
./scripts/merge_evaluations.py --label-re='[^/]+/?$' -x eval_merged -l =TEDL2015_neleval-no1331 --out-dir /tmp/foobar tac15data/TEDL2015_nel... | 34.349515 | 218 | 0.623799 | 511 | 3,538 | 4.209393 | 0.328767 | 0.022315 | 0.036262 | 0.020921 | 0.097629 | 0.039981 | 0.039981 | 0 | 0 | 0 | 0 | 0.012182 | 0.234313 | 3,538 | 102 | 219 | 34.686275 | 0.781838 | 0.110232 | 0 | 0.036145 | 0 | 0.012048 | 0.117479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.084337 | 0 | 0.144578 | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00373487473f078500f863d310d10f7cf34f3397 | 11,276 | py | Python | IQA_BIECON_release/models/BIECON_base.py | lionzhnn/IQA_BIECON_release | 9b9452681460cbd3b670aff62f18c6661a724997 | [
"MIT"
] | 96 | 2017-07-25T07:54:59.000Z | 2022-01-09T03:33:07.000Z | IQA_BIECON_release/models/BIECON_base.py | lionzhnn/IQA_BIECON_release | 9b9452681460cbd3b670aff62f18c6661a724997 | [
"MIT"
] | 4 | 2018-04-25T09:46:05.000Z | 2019-11-08T12:44:39.000Z | IQA_BIECON_release/models/BIECON_base.py | jongyookim/IQA_BIECON_release | 9b9452681460cbd3b670aff62f18c6661a724997 | [
"MIT"
] | 35 | 2017-07-25T02:51:22.000Z | 2022-02-05T03:05:40.000Z | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import theano.tensor as T
from .model_basis import ModelBasis
from .model_record import Record
from ..layers import layers
class Model(ModelBasis):
def __init__(self, model_config, rng=None):
super... | 35.796825 | 80 | 0.55321 | 1,492 | 11,276 | 3.845845 | 0.134048 | 0.046009 | 0.054374 | 0.061345 | 0.641513 | 0.585396 | 0.537121 | 0.513768 | 0.500871 | 0.474033 | 0 | 0.01785 | 0.304452 | 11,276 | 314 | 81 | 35.910828 | 0.713757 | 0.094714 | 0 | 0.492891 | 0 | 0 | 0.049809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061611 | false | 0 | 0.033175 | 0.009479 | 0.14218 | 0.028436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00388d39e13165d5d68a97cebd954314afba1ff8 | 908 | py | Python | pi4_software/Examples/WSClient.py | stuckatmarine/srauv-sim | 30f4bae5d22a4529233ffa2705d7631d048a8130 | [
"MIT"
] | 1 | 2020-11-01T13:39:42.000Z | 2020-11-01T13:39:42.000Z | pi4_software/Examples/WSClient.py | stuckatmarine/srauv-sim | 30f4bae5d22a4529233ffa2705d7631d048a8130 | [
"MIT"
] | null | null | null | pi4_software/Examples/WSClient.py | stuckatmarine/srauv-sim | 30f4bae5d22a4529233ffa2705d7631d048a8130 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# WS client example to test server
import asyncio
import websockets
import json
import time
async def hello():
uri = "ws://localhost:8001"
async with websockets.connect(uri) as websocket:
inp = input("Input msg number? ")
obj = {
"source" : "sim",
... | 24.540541 | 61 | 0.480176 | 104 | 908 | 4.153846 | 0.692308 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050435 | 0.36674 | 908 | 37 | 62 | 24.540541 | 0.70087 | 0.05837 | 0 | 0 | 0 | 0 | 0.179157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 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 | 0 | 0 | 1 | 0 |
00389d2165f30aa4a1d559c1fcdd0bbb4c1ad957 | 1,834 | py | Python | scripts/trends.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 31 | 2021-11-08T18:42:17.000Z | 2022-03-25T07:45:46.000Z | scripts/trends.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 6 | 2021-12-20T14:15:44.000Z | 2022-03-28T16:19:12.000Z | scripts/trends.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 3 | 2021-11-13T09:38:12.000Z | 2022-03-25T07:44:17.000Z |
#NOT YET WORKING PROPERLY
#NOT INTEGRATED WITH THE ASSISTANT YET
from pytrends.request import TrendReq
# Only need to run this once, the rest of requests will use the same session.
pytrend = TrendReq()
def trending_searches():
# Get Google Hot Trends data
trending_searches = pytrend.trending_... | 35.960784 | 187 | 0.657034 | 232 | 1,834 | 5.064655 | 0.422414 | 0.061277 | 0.025532 | 0.030638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010737 | 0.238277 | 1,834 | 51 | 188 | 35.960784 | 0.830351 | 0.134678 | 0 | 0.060606 | 0 | 0.030303 | 0.278431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.181818 | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00394b6eff0f3c670ab13b288147b361f3297dc6 | 4,902 | py | Python | Speedo/helpers/convert.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/helpers/convert.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/helpers/convert.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | 3 | 2021-10-12T08:17:01.000Z | 2021-12-21T01:17:54.000Z | import os
import asyncio
import re
import requests
import time
import lottie
import PIL.ImageOps
from os.path import basename
from PIL import Image
from typing import Optional
from .. import LOGS
from ..config import Config
from ..utils.extras import edit_or_reply as eor
from .progress import *
from .runner import r... | 33.346939 | 101 | 0.625663 | 611 | 4,902 | 4.870704 | 0.346972 | 0.020161 | 0.054435 | 0.014785 | 0.130376 | 0.079301 | 0.079301 | 0.05914 | 0.031586 | 0.031586 | 0 | 0.047075 | 0.267646 | 4,902 | 146 | 102 | 33.575342 | 0.781894 | 0.077111 | 0 | 0.071429 | 0 | 0 | 0.172774 | 0.067066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.119048 | 0 | 0.206349 | 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 | 0 | 0 | 1 | 0 |
003c4c33a5e695c65aafeb6d426e17f7228d37ef | 12,953 | py | Python | assemblyline_service_server/api/v1/task.py | CybercentreCanada/assemblyline-service-server | f4fbc7dcab122fa63fcc598db1c23a770c10145f | [
"MIT"
] | 6 | 2020-06-29T14:32:24.000Z | 2022-01-03T19:40:39.000Z | assemblyline_service_server/api/v1/task.py | CybercentreCanada/assemblyline-service-server | f4fbc7dcab122fa63fcc598db1c23a770c10145f | [
"MIT"
] | null | null | null | assemblyline_service_server/api/v1/task.py | CybercentreCanada/assemblyline-service-server | f4fbc7dcab122fa63fcc598db1c23a770c10145f | [
"MIT"
] | 2 | 2021-01-15T18:31:17.000Z | 2021-05-29T15:57:08.000Z | import time
from typing import cast, Dict, Any
from flask import request
from assemblyline.common import forge
from assemblyline.common.constants import SERVICE_STATE_HASH, ServiceStatus
from assemblyline.common.dict_utils import flatten, unflatten
from assemblyline.common.forge import CachedObject
from assemblyline.... | 42.608553 | 119 | 0.63576 | 1,583 | 12,953 | 4.968414 | 0.18446 | 0.032168 | 0.019072 | 0.024031 | 0.31583 | 0.275397 | 0.221742 | 0.188938 | 0.138843 | 0.114558 | 0 | 0.012787 | 0.263414 | 12,953 | 303 | 120 | 42.749175 | 0.81155 | 0.115649 | 0 | 0.211823 | 0 | 0 | 0.123366 | 0.019075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019704 | false | 0 | 0.108374 | 0 | 0.17734 | 0.009852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
003c669ec9b5a285ed0283853c1db390654e252e | 3,627 | py | Python | install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-framework-qtwidgets/v2.6.5/python/search_completer/global_search_result_delegate.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 1 | 2020-02-15T10:42:56.000Z | 2020-02-15T10:42:56.000Z | # Copyright (c) 2017 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the S... | 38.585106 | 115 | 0.650675 | 441 | 3,627 | 5.156463 | 0.401361 | 0.036939 | 0.026385 | 0.01759 | 0.240985 | 0.220756 | 0.192612 | 0.159191 | 0.070361 | 0 | 0 | 0.015504 | 0.253102 | 3,627 | 93 | 116 | 39 | 0.82392 | 0.355942 | 0 | 0.135135 | 0 | 0.027027 | 0.109571 | 0.033095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.189189 | 0 | 0.243243 | 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 | 0 | 0 | 1 | 0 |
003e8e2269ee664c19971a3c8f0ad03c45a56847 | 2,485 | py | Python | preprocessing/generate_diffs.py | windysavage/dfdc_deepfake_challenge | d10b54cf933282366157a031954b046d87d57009 | [
"MIT"
] | null | null | null | preprocessing/generate_diffs.py | windysavage/dfdc_deepfake_challenge | d10b54cf933282366157a031954b046d87d57009 | [
"MIT"
] | null | null | null | preprocessing/generate_diffs.py | windysavage/dfdc_deepfake_challenge | d10b54cf933282366157a031954b046d87d57009 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from preprocessing.utils import get_original_with_fakes
from tqdm import tqdm
from multiprocessing.pool import Pool
from functools import partial
# from skimage.measure import compare_ssim
from skimage import metrics
import argparse
import os
os.environ["MKL_NUM_THREADS"] = "1"
os.environ... | 31.858974 | 70 | 0.612475 | 337 | 2,485 | 4.299703 | 0.37092 | 0.043478 | 0.048309 | 0.026915 | 0.075914 | 0.048309 | 0.034507 | 0 | 0 | 0 | 0 | 0.017758 | 0.274849 | 2,485 | 77 | 71 | 32.272727 | 0.786349 | 0.027364 | 0 | 0 | 0 | 0 | 0.071665 | 0.011185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.216667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
003fa9552b48b33e85beb33eaf261aef70d7ae40 | 18,905 | py | Python | Model/model_v2.py | Insper-Data/data_bcg_news | 49986db18095759adea00bb0dedc149acebb683b | [
"MIT"
] | null | null | null | Model/model_v2.py | Insper-Data/data_bcg_news | 49986db18095759adea00bb0dedc149acebb683b | [
"MIT"
] | null | null | null | Model/model_v2.py | Insper-Data/data_bcg_news | 49986db18095759adea00bb0dedc149acebb683b | [
"MIT"
] | null | null | null | import ast
import community
import datetime
import lightgbm as lgb
import math
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import pandas as pd
import pickle
import plotly.express as px
import os
from sklearn.metrics import accuracy_score, confusion_matrix, roc_auc_score
from tqdm import tqd... | 41.187364 | 118 | 0.598678 | 2,394 | 18,905 | 4.477026 | 0.155806 | 0.03984 | 0.042545 | 0.020899 | 0.509237 | 0.474156 | 0.426759 | 0.391771 | 0.358649 | 0.334018 | 0 | 0.006843 | 0.288865 | 18,905 | 458 | 119 | 41.277293 | 0.790241 | 0.029992 | 0 | 0.256906 | 0 | 0.005525 | 0.087622 | 0.023428 | 0 | 0 | 0 | 0.00655 | 0 | 1 | 0.049724 | false | 0 | 0.041436 | 0 | 0.096685 | 0.046961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
0044e564b42a943f2371101ac16d4cb0e1aee8d7 | 42,840 | py | Python | roosterize/data/DataMiner.py | EngineeringSoftware/roosterize | 2990f7bdef8889045a26f3e9aaaca96d9c92e0bc | [
"MIT"
] | 16 | 2020-06-05T20:01:56.000Z | 2022-02-09T16:10:09.000Z | roosterize/data/DataMiner.py | EngineeringSoftware/roosterize | 2990f7bdef8889045a26f3e9aaaca96d9c92e0bc | [
"MIT"
] | 6 | 2020-07-02T15:22:36.000Z | 2020-12-16T13:04:16.000Z | roosterize/data/DataMiner.py | EngineeringSoftware/roosterize | 2990f7bdef8889045a26f3e9aaaca96d9c92e0bc | [
"MIT"
] | 3 | 2020-07-21T17:37:51.000Z | 2020-12-10T05:36:32.000Z | from typing import *
import collections
import copy
import hashlib
import math
import numpy as np
from pathlib import Path
import random
import re
from tqdm import tqdm
import traceback
import sys
from seutil import LoggingUtils, IOUtils, BashUtils
from seutil.project import Project
from roosterize.data.CoqDocument ... | 49.016018 | 259 | 0.639519 | 5,252 | 42,840 | 4.977342 | 0.091013 | 0.015799 | 0.012356 | 0.00964 | 0.568226 | 0.487778 | 0.442179 | 0.404078 | 0.368922 | 0.348992 | 0 | 0.008656 | 0.266527 | 42,840 | 873 | 260 | 49.072165 | 0.823277 | 0.086835 | 0 | 0.352313 | 0 | 0.021352 | 0.121117 | 0.027954 | 0 | 0 | 0 | 0 | 0.003559 | 1 | 0.030249 | false | 0 | 0.049822 | 0.001779 | 0.140569 | 0.001779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
00464d29c3ee1cf1c9de61907d49f9253edbd2f3 | 965 | py | Python | venv/Lib/site-packages/gensim/similarities/__init__.py | saritmaitra/nlp_ner_topic_modeling | 70914b4ae4cd7d3b9cb10776161132216394883c | [
"MIT"
] | 3 | 2021-03-29T19:21:08.000Z | 2021-12-31T09:30:11.000Z | VisionAPI/lib/python3.8/site-packages/gensim/similarities/__init__.py | aniruddhakj/AnswerScriptEvaluation | 7b039b84355ecda1d55dc037ccfc4a4d661ad5e3 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T08:53:09.000Z | 2021-08-30T08:53:09.000Z | venv/Lib/site-packages/gensim/similarities/__init__.py | saritmaitra/nlp_ner_topic_modeling | 70914b4ae4cd7d3b9cb10776161132216394883c | [
"MIT"
] | 1 | 2021-03-30T05:02:53.000Z | 2021-03-30T05:02:53.000Z | """
This package contains implementations of pairwise similarity queries.
"""
# bring classes directly into package namespace, to save some typing
import warnings
try:
import Levenshtein # noqa:F401
except ImportError:
msg = (
"The gensim.similarities.levenshtein submodule is disabled, because the opt... | 32.166667 | 95 | 0.741969 | 91 | 965 | 7.868132 | 0.681319 | 0.044693 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015287 | 0.186529 | 965 | 29 | 96 | 33.275862 | 0.896815 | 0.18342 | 0 | 0 | 0 | 0 | 0.319588 | 0.039948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
004abcc62f87b11013e726a8b69a3c514744935d | 1,858 | py | Python | src/PIDController.py | methylDragon/momo-emotions | 137161632cc45227884d1a7a46dbd75d261de371 | [
"BSD-2-Clause"
] | 11 | 2019-05-24T00:25:59.000Z | 2021-05-17T07:08:58.000Z | src/PIDController.py | methylDragon/momo-emotions | 137161632cc45227884d1a7a46dbd75d261de371 | [
"BSD-2-Clause"
] | null | null | null | src/PIDController.py | methylDragon/momo-emotions | 137161632cc45227884d1a7a46dbd75d261de371 | [
"BSD-2-Clause"
] | 10 | 2019-06-21T02:38:45.000Z | 2021-07-07T04:50:39.000Z | import time
class PIDController:
def __init__(self, Kp=0.25, Ki=0.0, Kd=0.0, anti_windup=10.0, cmd_freq=0.0):
self.Kp = Kp
self.Ki = Ki
self.Kd = Kd
# Set max integral correction per timestep
self.anti_windup = anti_windup
# Set delay between updates (seconds)
... | 27.731343 | 80 | 0.595264 | 248 | 1,858 | 4.229839 | 0.209677 | 0.104862 | 0.093422 | 0.114395 | 0.326978 | 0.188751 | 0.137274 | 0.13346 | 0.13346 | 0.13346 | 0 | 0.017336 | 0.317008 | 1,858 | 66 | 81 | 28.151515 | 0.809299 | 0.104413 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.02381 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
004b29aa8664031730012b088eba2ecb4c151bb6 | 1,420 | py | Python | tilty/emitters/sqlite.py | heresurpizza/tilty | 758fc2513b5fb660ac11163941340e4c10f61081 | [
"MIT"
] | 13 | 2020-02-27T03:07:50.000Z | 2022-01-02T20:01:57.000Z | tilty/emitters/sqlite.py | heresurpizza/tilty | 758fc2513b5fb660ac11163941340e4c10f61081 | [
"MIT"
] | 10 | 2020-03-04T14:57:59.000Z | 2021-07-23T03:54:17.000Z | tilty/emitters/sqlite.py | heresurpizza/tilty | 758fc2513b5fb660ac11163941340e4c10f61081 | [
"MIT"
] | 8 | 2020-03-15T02:23:10.000Z | 2020-11-25T12:42:37.000Z | # -*- coding: utf-8 -*-
""" SQLite emitter """
import logging
import sqlite3
LOGGER = logging.getLogger()
def __type__() -> str:
return 'SQLite'
class SQLite: # pylint: disable=too-few-public-methods
""" SQLite wrapper class """
def __init__(self, config: dict) -> None:
""" Initializer
... | 26.792453 | 73 | 0.527465 | 142 | 1,420 | 5.169014 | 0.542254 | 0.065395 | 0.051771 | 0.06267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.354225 | 1,420 | 52 | 74 | 27.307692 | 0.792803 | 0.229577 | 0 | 0 | 0 | 0 | 0.409852 | 0.023645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0.034483 | 0.241379 | 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 | 0 | 0 | 1 | 0 |
004de3fdbd877d9dca8c67922ef30d1cf30e4c3c | 6,043 | py | Python | IFishFarm.py | HussamElden/IFishFarm | c49acc997229b9ae0649d9e4765255cb2db02bfc | [
"CECILL-B"
] | 1 | 2021-08-03T13:24:38.000Z | 2021-08-03T13:24:38.000Z | IFishFarm.py | HussamElden/IFishFarm | c49acc997229b9ae0649d9e4765255cb2db02bfc | [
"CECILL-B"
] | null | null | null | IFishFarm.py | HussamElden/IFishFarm | c49acc997229b9ae0649d9e4765255cb2db02bfc | [
"CECILL-B"
] | 2 | 2021-01-12T11:25:11.000Z | 2022-03-11T21:25:53.000Z | import cv2
import numpy as np
from numpy.linalg import norm
import math
import csv
from operator import itemgetter
from datetime import datetime
import VideoEnhancement
import fishpredictor
import detector
import kmeancluster
import preproccesing
import randomforst
cluster = kmeancluster.kmeans()
classifier = randomfo... | 35.547059 | 133 | 0.529869 | 721 | 6,043 | 4.223301 | 0.273232 | 0.055172 | 0.076847 | 0.055172 | 0.197701 | 0.128736 | 0.120854 | 0.10312 | 0.10312 | 0.10312 | 0 | 0.02855 | 0.350819 | 6,043 | 170 | 134 | 35.547059 | 0.747642 | 0.032269 | 0 | 0.25 | 0 | 0 | 0.024144 | 0 | 0 | 0 | 0.000685 | 0 | 0 | 1 | 0 | false | 0 | 0.090278 | 0 | 0.090278 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |