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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37802e2626cc1b9507dce96322a357fb2b1d1692 | 232 | py | Python | PythonSolutions/ItertoolsPermutations.py | MohamedMetwalli5/HackerRank_solutions | be13ba740214a966d41e6be1d643297c75499e24 | [
"Apache-2.0"
] | 37 | 2021-04-04T20:08:00.000Z | 2022-01-05T19:42:42.000Z | PythonSolutions/ItertoolsPermutations.py | ahmedsaleh1998/HackerRank_solutions | be13ba740214a966d41e6be1d643297c75499e24 | [
"Apache-2.0"
] | null | null | null | PythonSolutions/ItertoolsPermutations.py | ahmedsaleh1998/HackerRank_solutions | be13ba740214a966d41e6be1d643297c75499e24 | [
"Apache-2.0"
] | 15 | 2021-04-04T20:12:47.000Z | 2022-01-08T23:34:16.000Z | import itertools as it
x = input()
s = x.split(" ")[0]
k = int(x.split(" ")[1])
temp = list(it.permutations(s,k))
result = []
for item in temp:
result.append("".join(item))
list.sort(result)
for item in result:
print(item)
| 19.333333 | 33 | 0.625 | 39 | 232 | 3.717949 | 0.589744 | 0.082759 | 0.17931 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.176724 | 232 | 11 | 34 | 21.090909 | 0.748691 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3782c056a04231f4a743a3b43310974348309e42 | 13,750 | py | Python | core/pandajob/utils.py | kiae-grid/panda-bigmon-core | ec71fcdb6ca8751eb3b2aefe0737c899c71fc583 | [
"Apache-2.0"
] | null | null | null | core/pandajob/utils.py | kiae-grid/panda-bigmon-core | ec71fcdb6ca8751eb3b2aefe0737c899c71fc583 | [
"Apache-2.0"
] | null | null | null | core/pandajob/utils.py | kiae-grid/panda-bigmon-core | ec71fcdb6ca8751eb3b2aefe0737c899c71fc583 | [
"Apache-2.0"
] | null | null | null | """
pandajob.utils
"""
import pytz
import re
from datetime import datetime, timedelta
from django.conf import settings
from django.db.models import Q, Count
from ..common.settings import defaultDatetimeFormat
from ..common.models import JediJobRetryHistory
from ..common.models import Users
from ..resource.models... | 39.398281 | 180 | 0.581382 | 1,445 | 13,750 | 5.516955 | 0.190311 | 0.038133 | 0.036126 | 0.048169 | 0.468515 | 0.425113 | 0.37845 | 0.355494 | 0.353864 | 0.311841 | 0 | 0.008815 | 0.257455 | 13,750 | 348 | 181 | 39.511494 | 0.771988 | 0.028873 | 0 | 0.3367 | 0 | 0 | 0.215122 | 0.005051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03367 | null | null | 0.006734 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
378ebf1c14dd71da95b80f36d1128624fe1b4aa4 | 1,893 | py | Python | wagtail_references/migrations/0001_initial.py | cividi/wagtail_references | 820e4211a504ba9703401fcd131ced204506392f | [
"MIT"
] | 4 | 2019-04-19T18:24:15.000Z | 2019-11-17T13:58:48.000Z | wagtail_references/migrations/0001_initial.py | cividi/wagtail_references | 820e4211a504ba9703401fcd131ced204506392f | [
"MIT"
] | 13 | 2019-04-29T10:50:41.000Z | 2022-02-10T10:52:56.000Z | wagtail_references/migrations/0001_initial.py | cividi/wagtail_references | 820e4211a504ba9703401fcd131ced204506392f | [
"MIT"
] | 1 | 2021-12-13T22:08:20.000Z | 2021-12-13T22:08:20.000Z | # Generated by Django 2.1.4 on 2018-12-19 11:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.models
import wagtail.search.index
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0... | 49.815789 | 221 | 0.669308 | 225 | 1,893 | 5.466667 | 0.444444 | 0.071545 | 0.034146 | 0.053659 | 0.04878 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.016678 | 0.208135 | 1,893 | 37 | 222 | 51.162162 | 0.803869 | 0.023772 | 0 | 0 | 1 | 0 | 0.229144 | 0.023294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
378f51bcd0e5dc5fcc3e2e2fb4cd33e0e3e5fc36 | 1,708 | py | Python | constants.py | shamedgh/confine- | cad0092b9bef90d73f1b8a80b4d74bb5491bc426 | [
"MIT"
] | null | null | null | constants.py | shamedgh/confine- | cad0092b9bef90d73f1b8a80b4d74bb5491bc426 | [
"MIT"
] | null | null | null | constants.py | shamedgh/confine- | cad0092b9bef90d73f1b8a80b4d74bb5491bc426 | [
"MIT"
] | null | null | null | SYSDIGERR = -1
NOPROCESS = -2
NOFUNCS = -3
NOATTACH = -4
CONSTOP = -5
HSTOPS = -6
HLOGLEN = -7
HNOKILL = -8
HNORUN = -9
CACHE = ".cache"
LIBFILENAME = "libs.out"
LANGFILENAME = ".lang.cache"
BINLISTCACHE = ".binlist.cache"
LIBLISTCACHE = ".liblist.cache"
BINTOLIBCACHE = ".bintolib.cache"
TOOLNAME = "CONF... | 53.375 | 196 | 0.765222 | 237 | 1,708 | 5.514768 | 0.578059 | 0.055088 | 0.03443 | 0.029074 | 0.059679 | 0.059679 | 0 | 0 | 0 | 0 | 0 | 0.006298 | 0.163349 | 1,708 | 31 | 197 | 55.096774 | 0.908328 | 0 | 0 | 0 | 0 | 0.172414 | 0.679785 | 0.017293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
379026017a5e74fa147c875c1432918601dd3d4d | 439 | py | Python | tests/__init__.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 24 | 2021-11-04T11:02:31.000Z | 2022-01-08T14:31:53.000Z | tests/__init__.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 8 | 2021-11-04T13:23:01.000Z | 2022-01-11T20:53:18.000Z | tests/__init__.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 5 | 2021-11-05T17:54:29.000Z | 2022-03-26T11:46:06.000Z | from __future__ import annotations
import sys
from pathlib import Path
from typing import Callable
from unittest.mock import MagicMock
if sys.version_info >= (3, 8): # pragma: no cover (py38+)
from importlib.metadata import PathDistribution
else: # pragma: no cover (<py38)
from importlib_metadata import Pat... | 23.105263 | 58 | 0.742597 | 53 | 439 | 5.962264 | 0.528302 | 0.050633 | 0.082278 | 0.107595 | 0.379747 | 0.379747 | 0.379747 | 0.379747 | 0.379747 | 0 | 0 | 0.016529 | 0.173121 | 439 | 18 | 59 | 24.388889 | 0.853994 | 0.111617 | 0 | 0 | 0 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
37a1f41b8202995a02a239b975ab1754c6252166 | 5,904 | py | Python | src/piglowui.py | deanydean/py-piglow-sys | 83bd6c38e2dd7b12d25885eba6ee904d840d9bb6 | [
"Apache-2.0"
] | 1 | 2021-07-15T11:24:59.000Z | 2021-07-15T11:24:59.000Z | src/piglowui.py | deanydean/py-piglow-sys | 83bd6c38e2dd7b12d25885eba6ee904d840d9bb6 | [
"Apache-2.0"
] | null | null | null | src/piglowui.py | deanydean/py-piglow-sys | 83bd6c38e2dd7b12d25885eba6ee904d840d9bb6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2016 Deany Dean
#
# 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 ... | 25.230769 | 76 | 0.617209 | 835 | 5,904 | 4.214371 | 0.216766 | 0.034101 | 0.029838 | 0.037795 | 0.418869 | 0.353794 | 0.315146 | 0.260301 | 0.240409 | 0.192953 | 0 | 0.01147 | 0.276423 | 5,904 | 233 | 77 | 25.339056 | 0.812266 | 0.175813 | 0 | 0.476563 | 0 | 0 | 0.029532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007813 | 0.03125 | null | null | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37a2fec2142a790a7bde6819ae773d8ac552f9a7 | 1,598 | py | Python | [5] MATH/1169 - Trigo no Tabuleiro.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | 1 | 2022-03-15T03:03:26.000Z | 2022-03-15T03:03:26.000Z | [5] MATH/1169 - Trigo no Tabuleiro.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | null | null | null | [5] MATH/1169 - Trigo no Tabuleiro.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | null | null | null | '''
Uma rainha requisitou os serviços de um monge e disse-lhe que pagaria qualquer preço. O monge, necessitando de alimentos, perguntou a rainha se o pagamento poderia ser feito em grãos de trigo dispostos em um tabuleiro de damas, de forma que o primeiro quadrado tivesse apenas um grão, e os quadrados subseqüentes, o ... | 63.92 | 997 | 0.748436 | 278 | 1,598 | 4.294964 | 0.492806 | 0.0134 | 0.032663 | 0.025126 | 0.065327 | 0.031826 | 0 | 0 | 0 | 0 | 0 | 0.01489 | 0.201502 | 1,598 | 24 | 998 | 66.583333 | 0.917712 | 0.834793 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37a30ae0ff86f49ee17622353a6952e5472d855f | 1,062 | py | Python | threathunter_common_python/threathunter_common/bankcard_info/test.py | threathunterX/python_lib | e2d4052de04c82cb7bccd08042f28db824cab442 | [
"Apache-2.0"
] | 2 | 2019-03-17T04:03:08.000Z | 2019-05-01T09:42:23.000Z | threathunter_common_python/threathunter_common/bankcard_info/test.py | threathunterX/python_lib | e2d4052de04c82cb7bccd08042f28db824cab442 | [
"Apache-2.0"
] | null | null | null | threathunter_common_python/threathunter_common/bankcard_info/test.py | threathunterX/python_lib | e2d4052de04c82cb7bccd08042f28db824cab442 | [
"Apache-2.0"
] | 4 | 2019-06-24T05:47:24.000Z | 2020-09-29T05:00:31.000Z | from bankcard_bin import get_issue_bank, get_card_type
if __name__ == "__main__":
fp = open( "data/bank_bin_info.csv", "r" )
lines = fp.readlines()
fp.close()
all_count = 0
matched_count = 0
not_matched_count = 0
print "\n"
for line in lines:
if len( line.split( "," ) ) == 3:... | 31.235294 | 75 | 0.509416 | 134 | 1,062 | 3.791045 | 0.328358 | 0.165354 | 0.11811 | 0.088583 | 0.316929 | 0.21063 | 0.21063 | 0.21063 | 0.21063 | 0.21063 | 0 | 0.017518 | 0.354991 | 1,062 | 33 | 76 | 32.181818 | 0.724088 | 0.033898 | 0 | 0.307692 | 0 | 0 | 0.132813 | 0.021484 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37bdae7db180b3e0cc2d7a873c42688a818af44c | 430 | py | Python | practice_app/migrations/0010_alter_museumapicsv_accessionnumber.py | VinayArora404219/crud-ops-practice-codeops | 5e2b08d6eee8bfe43e011098a635a488fae90283 | [
"MIT"
] | null | null | null | practice_app/migrations/0010_alter_museumapicsv_accessionnumber.py | VinayArora404219/crud-ops-practice-codeops | 5e2b08d6eee8bfe43e011098a635a488fae90283 | [
"MIT"
] | null | null | null | practice_app/migrations/0010_alter_museumapicsv_accessionnumber.py | VinayArora404219/crud-ops-practice-codeops | 5e2b08d6eee8bfe43e011098a635a488fae90283 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-22 04:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('practice_app', '0009_alter_museumapicsv_additionalimages_and_more'),
]
operations = [
migrations.AlterField(
model_name='museumapi... | 22.631579 | 78 | 0.64186 | 44 | 430 | 6.090909 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062696 | 0.25814 | 430 | 18 | 79 | 23.888889 | 0.777429 | 0.1 | 0 | 0 | 1 | 0 | 0.228571 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37bdcf6e9969b505bfded2fa724338e084723b7c | 4,264 | py | Python | bcs_server/bcs_server.py | nikhilgarg459/bcs | 0b2b227532385946f1e2b99daaad868ccc78f903 | [
"MIT"
] | null | null | null | bcs_server/bcs_server.py | nikhilgarg459/bcs | 0b2b227532385946f1e2b99daaad868ccc78f903 | [
"MIT"
] | 3 | 2015-09-18T06:54:47.000Z | 2015-09-18T06:54:48.000Z | bcs_server/bcs_server.py | nishworks/bcs | 0b2b227532385946f1e2b99daaad868ccc78f903 | [
"MIT"
] | null | null | null | #!usr/bin/env python
# -*-coding:utf8-*-
from bank import Bank
from bank import Account
import socket
import time
from server import Server
from server_logger import log
__doc__ = """
* This module provide bcs_server class to access the bcs server.
* This extends the Server class.
"""
class BcsServer(Server... | 41.803922 | 79 | 0.519465 | 396 | 4,264 | 5.366162 | 0.275253 | 0.116235 | 0.059294 | 0.058824 | 0.190588 | 0.162353 | 0.107294 | 0.051765 | 0.051765 | 0 | 0 | 0.000766 | 0.387664 | 4,264 | 101 | 80 | 42.217822 | 0.813098 | 0.033537 | 0 | 0.227273 | 0 | 0 | 0.131924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.090909 | 0.068182 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
37c6b420390126b63eb8f2e9f432b364b6440cd4 | 472 | py | Python | calculation/gmhazard_calc/gmhazard_calc/exceptions.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | null | null | null | calculation/gmhazard_calc/gmhazard_calc/exceptions.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | 8 | 2021-10-13T02:33:23.000Z | 2022-03-29T21:01:08.000Z | calculation/gmhazard_calc/gmhazard_calc/exceptions.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | null | null | null | class GMHazardError(BaseException):
"""Base GMHazard error"""
def __init__(self, message: str):
self.message = message
class ExceedanceOutOfRangeError(GMHazardError):
"""Raised when the specified exceedance value is out of range when
going from exceedance to IM on the hazard curve"""
def... | 27.764706 | 70 | 0.684322 | 55 | 472 | 5.654545 | 0.563636 | 0.045016 | 0.07074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224576 | 472 | 16 | 71 | 29.5 | 0.849727 | 0.277542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37c85df450aa93fb40771e4b2db0602feed80a88 | 1,107 | py | Python | vininfo/common.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 60 | 2018-07-28T14:53:57.000Z | 2022-02-22T12:11:24.000Z | vininfo/common.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 16 | 2018-07-30T08:57:08.000Z | 2021-12-25T09:20:03.000Z | vininfo/common.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 29 | 2018-07-30T08:36:07.000Z | 2022-03-09T12:02:06.000Z | from typing import Dict, Any, Type
if False: # pragma: nocover
from .details._base import VinDetails # noqa
class Annotatable:
annotate_titles = {}
def annotate(self) -> Dict[str, Any]:
annotations = {}
no_attr = set()
for attr_name, label in self.annotate_titles.items():
... | 22.591837 | 109 | 0.607046 | 127 | 1,107 | 5.070866 | 0.440945 | 0.02795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00125 | 0.277326 | 1,107 | 48 | 110 | 23.0625 | 0.80375 | 0.036134 | 0 | 0 | 0 | 0 | 0.066038 | 0.019811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0.074074 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37ca4a9460238cac1f3b40243753109f5cb2ffaa | 1,654 | py | Python | Leetcode/27#_Remove Element_06170601.py | yanjiyue/sac | c1f2af4de5c64549e50284266fd0017a3912a22c | [
"MIT"
] | null | null | null | Leetcode/27#_Remove Element_06170601.py | yanjiyue/sac | c1f2af4de5c64549e50284266fd0017a3912a22c | [
"MIT"
] | null | null | null | Leetcode/27#_Remove Element_06170601.py | yanjiyue/sac | c1f2af4de5c64549e50284266fd0017a3912a22c | [
"MIT"
] | 1 | 2019-11-04T08:51:56.000Z | 2019-11-04T08:51:56.000Z | #Given an array nums and a value val, remove all instances of that value in-place and return the new length.
#Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
#The order of elements can be changed. It doesn't matter what you leave beyond the... | 34.458333 | 134 | 0.688029 | 287 | 1,654 | 3.965157 | 0.390244 | 0.042179 | 0.034271 | 0.036907 | 0.16696 | 0.061511 | 0.061511 | 0.061511 | 0.061511 | 0 | 0 | 0.021807 | 0.2237 | 1,654 | 47 | 135 | 35.191489 | 0.864486 | 0.816203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
806006e91fa95fe31b390ff18cbebf247145fd57 | 1,758 | py | Python | lackey/KeyCodes.py | Inobitec/lackey | 1ea404a3e003f0ef4dcaa8879ab02b1f568fa0a2 | [
"MIT"
] | 599 | 2016-08-15T22:51:53.000Z | 2022-03-29T16:16:34.000Z | lackey/KeyCodes.py | researchase/lackey | 2a6f313f83db30c0beef2cd8f2ccbe6250cd484d | [
"MIT"
] | 129 | 2016-08-16T11:11:52.000Z | 2021-10-20T20:55:40.000Z | lackey/KeyCodes.py | researchase/lackey | 2a6f313f83db30c0beef2cd8f2ccbe6250cd484d | [
"MIT"
] | 89 | 2016-08-16T01:33:27.000Z | 2021-12-09T15:40:58.000Z | class Button():
LEFT = 0
CENTER = 1
RIGHT = 2
class Key():
""" Key codes for InputEmulation.Keyboard object.
Can be entered directly or concatenated with an existing string, e.g. ``type(Key.TAB)`` """
ENTER = "{ENTER}"
ESC = "{ESC}"
BACKSPACE = "{BACKSPACE}"
DELETE = "{DELET... | 23.44 | 102 | 0.436291 | 187 | 1,758 | 4.048128 | 0.465241 | 0.01321 | 0.015852 | 0.023778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060847 | 0.354949 | 1,758 | 75 | 103 | 23.44 | 0.606702 | 0.128555 | 0 | 0.173913 | 0 | 0 | 0.263366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80641ada4457c0e9b0b5f081fbd0c64d5b58453b | 967 | py | Python | nunchuk_tester.py | mlegere1323/WiiNunchukMouse | cc4085ba3228e069e8b74c89c82e299d25c29eec | [
"MIT"
] | 1 | 2021-12-02T05:20:35.000Z | 2021-12-02T05:20:35.000Z | nunchuk_tester.py | mlegere1323/WiiNunchukMouse | cc4085ba3228e069e8b74c89c82e299d25c29eec | [
"MIT"
] | null | null | null | nunchuk_tester.py | mlegere1323/WiiNunchukMouse | cc4085ba3228e069e8b74c89c82e299d25c29eec | [
"MIT"
] | null | null | null | import nunchuk
from pymouse import PyMouse
delta = 1
pressed = 1
no_press = 0
m = PyMouse()
x_dim, y_dim = m.screen_size()
while True:
#[joy_x, joy_y, accel_x, accel_y, accel_z, c_button, z_button]...TODO {shaken}
reading = nunchuk.get_input()
curr_joy_x = reading[0]
curr_joy_y = reading[1]
#pri... | 21.977273 | 82 | 0.615305 | 157 | 967 | 3.44586 | 0.305732 | 0.077634 | 0.055453 | 0.055453 | 0.184843 | 0.12939 | 0 | 0 | 0 | 0 | 0 | 0.023022 | 0.281282 | 967 | 43 | 83 | 22.488372 | 0.755396 | 0.144778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
806e321fa487c91a4c9c7e255d061b1a09694053 | 537 | py | Python | apps/equipment/migrations/0002_checkout_user.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | 1 | 2019-02-07T05:03:30.000Z | 2019-02-07T05:03:30.000Z | apps/equipment/migrations/0002_checkout_user.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | null | null | null | apps/equipment/migrations/0002_checkout_user.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-08-22 15:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('inspectors', '0001_initial'),
('equipment', '0001_initial'),
]
operations = [
m... | 23.347826 | 119 | 0.627561 | 59 | 537 | 5.644068 | 0.644068 | 0.072072 | 0.084084 | 0.132132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056931 | 0.247672 | 537 | 22 | 120 | 24.409091 | 0.767327 | 0.083799 | 0 | 0 | 1 | 0 | 0.153061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
806f9fe75067d3d16cbd5ee48112b1c59a3d7ac9 | 3,699 | py | Python | note/meiduo34/mall/apps/areas/views.py | gaosong666/taobao | cec3be71376fb94dc38553360253b70e88855594 | [
"MIT"
] | null | null | null | note/meiduo34/mall/apps/areas/views.py | gaosong666/taobao | cec3be71376fb94dc38553360253b70e88855594 | [
"MIT"
] | null | null | null | note/meiduo34/mall/apps/areas/views.py | gaosong666/taobao | cec3be71376fb94dc38553360253b70e88855594 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
# from django.shortcuts import render
# from rest_framework import mixins
# from rest_framework import status
# from rest_framework.decorators import action
# from rest_framework.permissions import IsAuthenticated
# from rest_framework.response import Respo... | 30.073171 | 109 | 0.619086 | 355 | 3,699 | 6.338028 | 0.326761 | 0.024889 | 0.052889 | 0.028 | 0.202667 | 0.133333 | 0.107556 | 0 | 0 | 0 | 0 | 0.004765 | 0.262503 | 3,699 | 122 | 110 | 30.319672 | 0.820015 | 0.729927 | 0 | 0.235294 | 0 | 0 | 0.00949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
806fd8d0bd411d3bf84c6f22181f00f44b8c5df3 | 1,364 | py | Python | maddpg/common/env_utils_test.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 1 | 2020-12-15T08:44:36.000Z | 2020-12-15T08:44:36.000Z | maddpg/common/env_utils_test.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 11 | 2020-10-20T17:51:18.000Z | 2020-12-23T07:26:17.000Z | maddpg/common/env_utils_test.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 1 | 2020-12-22T11:38:52.000Z | 2020-12-22T11:38:52.000Z | # -*- coding:utf-8 -*-
import sys
import pytest
from maddpg.arguments import parse_experiment_args
from maddpg.common.env_utils import get_shapes, make_env, uniform_action
from maddpg.common.tf_utils import set_global_seeds
class TestEnvUtils:
def setup(self):
args = parse_experiment_args()
sel... | 34.974359 | 78 | 0.686217 | 168 | 1,364 | 5.327381 | 0.416667 | 0.039106 | 0.043575 | 0.060335 | 0.049162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256267 | 0.210411 | 1,364 | 38 | 79 | 35.894737 | 0.574745 | 0.014663 | 0 | 0 | 0 | 0 | 0.005961 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.107143 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8076bee1c5b172224fc6f615985572dcd2d283c9 | 3,130 | py | Python | navbar.py | jchudb93/website | e00b9111d3e738c773665cd05e6aa752ab47b78a | [
"MIT"
] | null | null | null | navbar.py | jchudb93/website | e00b9111d3e738c773665cd05e6aa752ab47b78a | [
"MIT"
] | null | null | null | navbar.py | jchudb93/website | e00b9111d3e738c773665cd05e6aa752ab47b78a | [
"MIT"
] | null | null | null | import dash_bootstrap_components as dbc
import dash_html_components as html
def Navbar():
links = dbc.Row(
[
dbc.DropdownMenu(
className = "nav-links-dd",
color="link",
label="Dataset",
children=[
... | 37.710843 | 103 | 0.431629 | 219 | 3,130 | 6.127854 | 0.351598 | 0.226528 | 0.116244 | 0.134128 | 0.38301 | 0.38301 | 0.14307 | 0.14307 | 0.14307 | 0 | 0 | 0.001174 | 0.455591 | 3,130 | 82 | 104 | 38.170732 | 0.786385 | 0 | 0 | 0.455696 | 0 | 0 | 0.172843 | 0.029393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.025316 | 0 | 0.050633 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
808bef917e5cfa2b46c0dce8b59ba8c948efb994 | 1,774 | py | Python | chrome/common/extensions/docs/server2/object_store_creator_test.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/extensions/docs/server2/object_store_creator_test.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/extensions/docs/server2/object_store_creator_test.py | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:25:45.000Z | 2020-11-04T07:25:45.000Z | #!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from test_object_store import TestObjectStore
from object_store_creator import ObjectStoreCreator
class _FooClass(obj... | 35.48 | 77 | 0.756483 | 201 | 1,774 | 6.532338 | 0.378109 | 0.0754 | 0.10358 | 0.060929 | 0.396801 | 0.361767 | 0.268088 | 0.102056 | 0.102056 | 0 | 0 | 0.009728 | 0.130778 | 1,774 | 49 | 78 | 36.204082 | 0.841764 | 0.099211 | 0 | 0.117647 | 0 | 0 | 0.065245 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.235294 | false | 0.029412 | 0.088235 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8092e1f97a6ea410649c29fb4c81365b1d4d54fe | 789 | py | Python | examples/location.py | timgates42/glass.py | 846638dcc2d596ba48d68859affc9f5e30823e50 | [
"Apache-2.0"
] | null | null | null | examples/location.py | timgates42/glass.py | 846638dcc2d596ba48d68859affc9f5e30823e50 | [
"Apache-2.0"
] | null | null | null | examples/location.py | timgates42/glass.py | 846638dcc2d596ba48d68859affc9f5e30823e50 | [
"Apache-2.0"
] | null | null | null | # Import glass library
import glass
# Import app configs
import configs
app = glass.Application(
name="Hello",
client_id=configs.CLIENT_ID,
client_secret=configs.CLIENT_SECRET
)
@app.subscriptions.login
def login(user):
profile = user.profile()
print "user : %s" % profile.get("given_name")
us... | 23.909091 | 87 | 0.665399 | 100 | 789 | 5.1 | 0.44 | 0.064706 | 0.043137 | 0.062745 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006309 | 0.196451 | 789 | 33 | 88 | 23.909091 | 0.798107 | 0.117871 | 0 | 0 | 0 | 0.045455 | 0.186416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8095e09d1b17ba07fdf00c70fefd6efdf17d42ef | 16,237 | py | Python | train/loader.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | train/loader.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | train/loader.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../')
import os
import numpy as np
import glob
import argparse
import csv
import sys
import pickle
import pandas as pd
import globals
from common.csv_utils import foreach_dirset
from random import randrange
from collections import defaultdict
from encoder import generate_label, get_label_bou... | 35.221258 | 144 | 0.631274 | 2,222 | 16,237 | 4.338884 | 0.121062 | 0.03008 | 0.031117 | 0.046676 | 0.533036 | 0.485945 | 0.44736 | 0.417384 | 0.357224 | 0.318847 | 0 | 0.012327 | 0.260578 | 16,237 | 460 | 145 | 35.297826 | 0.790688 | 0.050256 | 0 | 0.338462 | 0 | 0 | 0.05348 | 0.010592 | 0 | 0 | 0 | 0 | 0.015385 | 0 | null | null | 0 | 0.049231 | null | null | 0.033846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
809712c0ba465f6ee3926c83a3e89df4d0521f1c | 1,295 | py | Python | app/__init__.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | null | null | null | app/__init__.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | 2 | 2019-01-08T06:58:47.000Z | 2019-01-08T08:46:16.000Z | app/__init__.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | null | null | null |
"""
Main file.
"""
import datetime
#Third party import
from flask import Flask
from flask_jwt_extended import JWTManager
#Local import
from instance.config import app_config
from app.api.v1.views.user_views import version1 as usersBlueprint
from app.api.v1.views.meetup_views import version1 as meetupsBlueprint
from a... | 30.116279 | 76 | 0.750579 | 163 | 1,295 | 5.736196 | 0.380368 | 0.086631 | 0.042781 | 0.051337 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008242 | 0.156757 | 1,295 | 42 | 77 | 30.833333 | 0.847985 | 0.066409 | 0 | 0 | 0 | 0 | 0.09604 | 0.039596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.32 | 0 | 0.48 | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80a4407511e01379d20e6a78b7984cf55491e75e | 261 | py | Python | setup.py | janharlass/xorca | 1cab7220aa2cea8698db5d86b3e0d75449959539 | [
"MIT"
] | 12 | 2019-01-21T14:00:54.000Z | 2022-03-24T06:28:37.000Z | setup.py | janharlass/xorca | 1cab7220aa2cea8698db5d86b3e0d75449959539 | [
"MIT"
] | 34 | 2018-04-06T14:32:05.000Z | 2021-09-19T09:45:09.000Z | setup.py | janharlass/xorca | 1cab7220aa2cea8698db5d86b3e0d75449959539 | [
"MIT"
] | 11 | 2018-06-25T10:59:30.000Z | 2021-07-02T19:56:45.000Z | """Setup xorca."""
from setuptools import setup
setup(name='xorca',
description='Work on the ORCA grid with XGCM and Xarray',
packages=['xorca'],
package_dir={'xorca': 'xorca'},
install_requires=['setuptools', ],
zip_safe=False)
| 23.727273 | 63 | 0.639847 | 31 | 261 | 5.290323 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 261 | 10 | 64 | 26.1 | 0.792271 | 0.045977 | 0 | 0 | 0 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80a7d5891f930448b75298e1d0c1587429c38d8f | 18,811 | py | Python | main/admin.py | codeg8/HRMS | a5745b56f8495086eee3ec145cc1e8b78212a01b | [
"MIT"
] | 5 | 2020-01-06T09:54:47.000Z | 2020-10-07T04:06:23.000Z | main/admin.py | codeg8/HRMS | a5745b56f8495086eee3ec145cc1e8b78212a01b | [
"MIT"
] | 12 | 2017-12-12T13:09:52.000Z | 2022-02-10T09:17:53.000Z | main/admin.py | codeg8/HRMS | a5745b56f8495086eee3ec145cc1e8b78212a01b | [
"MIT"
] | null | null | null | from django.apps import apps
from django.conf import settings
from django.contrib import admin, messages
from django.contrib.admin import AdminSite
from django.contrib.admin.options import IS_POPUP_VAR
from django.contrib.admin.utils import unquote
from django.contrib.auth import update_session_auth_hash
from django.co... | 40.453763 | 122 | 0.608155 | 2,096 | 18,811 | 5.265267 | 0.195611 | 0.020841 | 0.012323 | 0.015223 | 0.180047 | 0.101939 | 0.082276 | 0.057267 | 0.039326 | 0.02374 | 0 | 0.001647 | 0.289724 | 18,811 | 464 | 123 | 40.540948 | 0.82434 | 0.15996 | 0 | 0.101796 | 0 | 0 | 0.12054 | 0.014915 | 0 | 0 | 0 | 0.002155 | 0 | 1 | 0.05988 | false | 0.086826 | 0.083832 | 0.005988 | 0.302395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80a9710b7c833ca2615cf9b34a811a2f97aa1c03 | 1,957 | py | Python | ChessRender/RenderFsmCommon/RenderFsmStates/registration_render_state.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | 1 | 2019-06-04T11:08:55.000Z | 2019-06-04T11:08:55.000Z | ChessRender/RenderFsmCommon/RenderFsmStates/registration_render_state.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | 115 | 2019-03-02T08:02:50.000Z | 2019-06-02T16:28:00.000Z | ChessRender/RenderFsmCommon/RenderFsmStates/registration_render_state.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | null | null | null | from ChessRender.RenderFsmCommon.button_fsm import ButtonFsm
from ChessRender.RenderFsmCommon.screen_states import ScreenState
from ChessRender.RenderFsmCommon.screen_text_fsm import ScreenTextFsm
from ChessRender.RenderFsmCommon.text_field_fsm import TextFieldFsm
class FsmStateRegistration(ScreenState):
def __in... | 47.731707 | 124 | 0.69954 | 244 | 1,957 | 5.327869 | 0.20082 | 0.069231 | 0.146154 | 0.087692 | 0.426923 | 0.353077 | 0.156923 | 0.066154 | 0 | 0 | 0 | 0.021472 | 0.167092 | 1,957 | 40 | 125 | 48.925 | 0.776074 | 0 | 0 | 0 | 0 | 0 | 0.153964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80b00288d03b89a2dd30b0d28f2bbab8d4a78258 | 245 | py | Python | homework/第 5 课/Yulia python第五课作业一、二/�������ҵ��.py | xrandx/-Dating-with-python-this-winter | d242faeda1598d50c3b371deeccfbbe3bbc8fb51 | [
"Apache-2.0"
] | 3 | 2021-01-03T10:10:25.000Z | 2021-01-11T06:13:40.000Z | homework/第 5 课/Yulia python第五课作业一、二/�������ҵ��.py | xrandx/-Dating-with-python-this-winter | d242faeda1598d50c3b371deeccfbbe3bbc8fb51 | [
"Apache-2.0"
] | null | null | null | homework/第 5 课/Yulia python第五课作业一、二/�������ҵ��.py | xrandx/-Dating-with-python-this-winter | d242faeda1598d50c3b371deeccfbbe3bbc8fb51 | [
"Apache-2.0"
] | 2 | 2021-01-08T10:12:17.000Z | 2021-01-19T02:03:32.000Z | #-*- codeing = utf-8 -*-
#@Time : 2021-01-14 19:41
#@Author : 苏苏
#@File : 第五课作业二.py
#@Software : PyCharm
#用递归实现阶乘函数factorial(n),对于任意的整数n都能返回其对应的阶乘。
def factorial(n):
if n == 0:
return 1
else:
return n*factorial(n-1)
| 14.411765 | 42 | 0.591837 | 33 | 245 | 4.393939 | 0.787879 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 0.240816 | 245 | 16 | 43 | 15.3125 | 0.693548 | 0.555102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80bae829fc27d2974da96b578e872a3c4d7c8eeb | 3,052 | py | Python | PiSnapND/s2a_fm/Snap!Files/Snap!Mobile/arduino/PyMata/pymata_serial.py | rasplay/PiSnap- | 657b97d2349604ee5d67dd8f055a1070ba57a676 | [
"MIT"
] | null | null | null | PiSnapND/s2a_fm/Snap!Files/Snap!Mobile/arduino/PyMata/pymata_serial.py | rasplay/PiSnap- | 657b97d2349604ee5d67dd8f055a1070ba57a676 | [
"MIT"
] | null | null | null | PiSnapND/s2a_fm/Snap!Files/Snap!Mobile/arduino/PyMata/pymata_serial.py | rasplay/PiSnap- | 657b97d2349604ee5d67dd8f055a1070ba57a676 | [
"MIT"
] | null | null | null | __author__ = 'Copyright (c) 2013 Alan Yorinks All rights reserved.'
"""
Created on Tue Sep 3 07:12:01 2013
@author: Alan Yorinks
Copyright (c) 2013-14 Alan Yorinks All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as publis... | 26.53913 | 94 | 0.61599 | 390 | 3,052 | 4.74359 | 0.453846 | 0.043243 | 0.035135 | 0.021622 | 0.101622 | 0.071351 | 0.036757 | 0 | 0 | 0 | 0 | 0.020231 | 0.31979 | 3,052 | 114 | 95 | 26.77193 | 0.870906 | 0.07536 | 0 | 0.111111 | 0 | 0 | 0.064985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.055556 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80c62cae53252a53013d1ccfe2f1b35e337e91a4 | 18,253 | py | Python | FSISAC_STIX_Parser.py | ch4meleon/FSISAC_Stix_Downloader | ac2f0ba41bbdfb4d526805e266dad828fb724869 | [
"MIT"
] | 3 | 2019-07-15T10:19:11.000Z | 2021-05-14T03:00:21.000Z | FSISAC_STIX_Parser.py | ch4meleon/FSISAC_Stix_Downloader | ac2f0ba41bbdfb4d526805e266dad828fb724869 | [
"MIT"
] | null | null | null | FSISAC_STIX_Parser.py | ch4meleon/FSISAC_Stix_Downloader | ac2f0ba41bbdfb4d526805e266dad828fb724869 | [
"MIT"
] | 5 | 2019-11-11T10:52:58.000Z | 2021-05-14T03:00:23.000Z | #!/usr/bin/env python
"""
FSISAC STIX Parser (FSISAC_STIX_Parser.py)
Written by Michael Lim (ch4meleon@protonmail.com)
"""
import os
import sys
import socket
import types
import collections
import json
import re
import io
import urllib2
import dateutil
import datetime
import time
import pytz
import pprint
import get... | 34.833969 | 129 | 0.499699 | 1,931 | 18,253 | 4.615743 | 0.153806 | 0.025917 | 0.023337 | 0.020195 | 0.49871 | 0.444295 | 0.423987 | 0.409851 | 0.38629 | 0.36789 | 0 | 0.013812 | 0.357421 | 18,253 | 523 | 130 | 34.900574 | 0.746099 | 0.234427 | 0 | 0.329412 | 0 | 0.023529 | 0.133791 | 0.035051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015686 | 0.133333 | null | null | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80cad36acd9a487c41f824fcbc046dfec1339ca7 | 2,058 | py | Python | tests/test_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 21 | 2017-12-12T20:38:43.000Z | 2019-04-14T12:46:10.000Z | tests/test_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 6 | 2018-01-06T13:32:23.000Z | 2018-09-14T15:09:11.000Z | tests/test_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 11 | 2017-12-12T20:38:46.000Z | 2018-07-19T03:12:03.000Z | """
Tests for the :mod:`regression_tests.test` module.
"""
import unittest
from regression_tests.test import Test
from regression_tests.test_settings import TestSettings
class TestTests(unittest.TestCase):
"""Tests for `Test`."""
def test_settings_returns_given_test_settings(self):
TEST_SETTING... | 33.193548 | 88 | 0.668124 | 218 | 2,058 | 6.087156 | 0.229358 | 0.088169 | 0.117558 | 0.198945 | 0.557649 | 0.394876 | 0.22532 | 0.22532 | 0.176338 | 0 | 0 | 0.006173 | 0.212828 | 2,058 | 61 | 89 | 33.737705 | 0.812963 | 0.05345 | 0 | 0.15 | 0 | 0 | 0.074247 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0.025 | 0.075 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80cbc2abda367a07323dcbb10a15ec1e7cc57bd1 | 1,246 | py | Python | weibo/serve.py | CooperLuan/collector | 8b4d15bda630a9a3968e3c5972c773801495b02c | [
"MIT"
] | null | null | null | weibo/serve.py | CooperLuan/collector | 8b4d15bda630a9a3968e3c5972c773801495b02c | [
"MIT"
] | null | null | null | weibo/serve.py | CooperLuan/collector | 8b4d15bda630a9a3968e3c5972c773801495b02c | [
"MIT"
] | null | null | null | from flask import Flask, request, Response, json
from pymongo import MongoClient
client = MongoClient('192.168.1.202')
db = client['weibo-search']
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def hello():
result = db.webpages.insert({
'collected': dict(request.form.items()),
})
... | 27.688889 | 64 | 0.609149 | 153 | 1,246 | 4.856209 | 0.437909 | 0.121131 | 0.145357 | 0.193809 | 0.339166 | 0.339166 | 0.339166 | 0.339166 | 0.228802 | 0.228802 | 0 | 0.025948 | 0.195827 | 1,246 | 44 | 65 | 28.318182 | 0.715569 | 0 | 0 | 0.222222 | 0 | 0 | 0.227929 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d287356ec9889613a9bd1b77e5a69cacd772c8 | 5,762 | py | Python | day9.1/main.py | lfscheidegger/adventofcode2018 | 52f7078ef238e70cad84d8b9c051d9aba179fd13 | [
"MIT"
] | 1 | 2018-12-09T23:41:40.000Z | 2018-12-09T23:41:40.000Z | day9.1/main.py | lfscheidegger/adventofcode2018 | 52f7078ef238e70cad84d8b9c051d9aba179fd13 | [
"MIT"
] | null | null | null | day9.1/main.py | lfscheidegger/adventofcode2018 | 52f7078ef238e70cad84d8b9c051d9aba179fd13 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
--- Day 9: Marble Mania ---
You talk to the Elves while you wait for your navigation system to initialize. To pass the time, they introduce you to their favorite marble game.
The Elves play this game by taking turns arranging the marbles in a circle according to very particular rules. The marble... | 47.619835 | 473 | 0.663311 | 1,075 | 5,762 | 3.465116 | 0.223256 | 0.012081 | 0.018792 | 0.02255 | 0.260134 | 0.161611 | 0.115436 | 0.108993 | 0.102282 | 0.096107 | 0 | 0.14194 | 0.270045 | 5,762 | 120 | 474 | 48.016667 | 0.743699 | 0.008157 | 0 | 0.041667 | 0 | 0 | 0.047271 | 0.010234 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d676824953bd46f695df3eb5266586c379e7f0 | 2,020 | py | Python | python-crons/check-online-offers.py | dantunescost/antunedo | b66517605f1231604aba620048eaca963ac2ae2b | [
"MIT"
] | null | null | null | python-crons/check-online-offers.py | dantunescost/antunedo | b66517605f1231604aba620048eaca963ac2ae2b | [
"MIT"
] | null | null | null | python-crons/check-online-offers.py | dantunescost/antunedo | b66517605f1231604aba620048eaca963ac2ae2b | [
"MIT"
] | null | null | null | #!/usr/bin python3.7
# -*- coding: utf-8 -*-
from pymongo.errors import DuplicateKeyError
from lib.mongoConnector import connect_to_mongodb, pop_offers_already_saved
from lib.queryBuilder import query_immo_offers, get_amount_of_pages
def get_offers_ids(immotype, total_pages, sort="asc"):
ids = []
if total_pa... | 38.113208 | 114 | 0.6 | 251 | 2,020 | 4.517928 | 0.378486 | 0.088183 | 0.098765 | 0.070547 | 0.185185 | 0.185185 | 0.126984 | 0.126984 | 0.126984 | 0.126984 | 0 | 0.01989 | 0.278218 | 2,020 | 52 | 115 | 38.846154 | 0.757888 | 0.047525 | 0 | 0.139535 | 0 | 0 | 0.097866 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.139535 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d9378ce58ef9e213873f886139993ee95c75f5 | 2,950 | py | Python | evaluation/metrics/metric_getters.py | adinawilliams/dynabench | 4b4dd9cb83d69aa3a7cc25832e3ccc0bdcaf646f | [
"MIT"
] | 15 | 2021-09-24T00:46:04.000Z | 2022-03-16T13:24:56.000Z | evaluation/metrics/metric_getters.py | adinawilliams/dynabench | 4b4dd9cb83d69aa3a7cc25832e3ccc0bdcaf646f | [
"MIT"
] | 98 | 2021-09-22T12:33:21.000Z | 2022-03-21T22:23:52.000Z | evaluation/metrics/metric_getters.py | adinawilliams/dynabench | 4b4dd9cb83d69aa3a7cc25832e3ccc0bdcaf646f | [
"MIT"
] | 12 | 2021-09-25T05:08:18.000Z | 2022-02-28T21:02:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import yaml
from metrics.instance_property import instance_property
from metrics.metrics_dicts import (
delta_metrics_dict,
eval_metrics... | 34.705882 | 88 | 0.716271 | 398 | 2,950 | 4.997487 | 0.268844 | 0.075415 | 0.084465 | 0.045249 | 0.219206 | 0.196078 | 0.129713 | 0.129713 | 0.129713 | 0.089492 | 0 | 0 | 0.20339 | 2,950 | 84 | 89 | 35.119048 | 0.846383 | 0.174915 | 0 | 0.101695 | 0 | 0 | 0.049855 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.20339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80da0d818d8b18b043f93028cdaad4b54e225ae7 | 15,545 | py | Python | latent_programmer/tasks/robust_fill/dsl.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-02-25T05:34:44.000Z | 2022-02-25T05:34:44.000Z | latent_programmer/tasks/robust_fill/dsl.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | latent_programmer/tasks/robust_fill/dsl.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | 25.651815 | 80 | 0.645931 | 2,054 | 15,545 | 4.631938 | 0.127069 | 0.04341 | 0.074417 | 0.062224 | 0.534581 | 0.478453 | 0.411078 | 0.384381 | 0.37366 | 0.362098 | 0 | 0.013884 | 0.230878 | 15,545 | 605 | 81 | 25.694215 | 0.781867 | 0.123898 | 0 | 0.4375 | 0 | 0.0125 | 0.022859 | 0 | 0 | 0 | 0 | 0 | 0.005 | 1 | 0.195 | false | 0.0125 | 0.02 | 0.1 | 0.5175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80de3a706f947ea3108a40eda4e3b31b403f0f07 | 1,571 | py | Python | schedule/migrations/0003_auto_20160715_0028.py | PicaMirum/django-scheduler | dba48d070ff1057fa35a63ab0fdc9677ed07b6ad | [
"BSD-3-Clause"
] | 4 | 2018-08-10T12:38:59.000Z | 2020-07-24T16:38:42.000Z | schedule/migrations/0003_auto_20160715_0028.py | PicaMirum/django-scheduler | dba48d070ff1057fa35a63ab0fdc9677ed07b6ad | [
"BSD-3-Clause"
] | 2 | 2021-06-02T00:22:29.000Z | 2021-06-10T20:32:43.000Z | schedule/migrations/0003_auto_20160715_0028.py | PicaMirum/django-scheduler | dba48d070ff1057fa35a63ab0fdc9677ed07b6ad | [
"BSD-3-Clause"
] | 6 | 2019-08-16T11:23:15.000Z | 2019-09-26T09:40:31.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0002_event_color_event'),
]
operations = [
migrations.AlterField(
model_name='event',
na... | 32.729167 | 174 | 0.584341 | 154 | 1,571 | 5.772727 | 0.350649 | 0.047244 | 0.140607 | 0.163105 | 0.586052 | 0.429696 | 0.429696 | 0.327334 | 0.327334 | 0.278965 | 0 | 0.004492 | 0.291534 | 1,571 | 47 | 175 | 33.425532 | 0.79425 | 0.013367 | 0 | 0.658537 | 0 | 0 | 0.168605 | 0.014212 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80e6b7356caed8fd6e2731c0770a73b75f3e7864 | 465 | py | Python | src/infrastructure/utils/utils.py | YegorMedvedev/python-onion-scaffold | 16ca5eebe58b3aee7dd304cc9f7856de6309b5cc | [
"MIT"
] | 1 | 2022-02-23T05:07:09.000Z | 2022-02-23T05:07:09.000Z | src/infrastructure/utils/utils.py | YegorMedvedev/python-onion-scaffold | 16ca5eebe58b3aee7dd304cc9f7856de6309b5cc | [
"MIT"
] | null | null | null | src/infrastructure/utils/utils.py | YegorMedvedev/python-onion-scaffold | 16ca5eebe58b3aee7dd304cc9f7856de6309b5cc | [
"MIT"
] | null | null | null | import os
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
def get_port() -> int:
assert os.getenv("PORT") is not None
... | 22.142857 | 81 | 0.606452 | 60 | 465 | 4.433333 | 0.466667 | 0.135338 | 0.169173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011594 | 0.258065 | 465 | 20 | 82 | 23.25 | 0.75942 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80f474527889325300335480bc0c7693e40fdda6 | 1,728 | py | Python | familysearch/discovery.py | teoliphant/familysearch-python-sdk-opensource | d055cf3e0c0d547bff5abdb4a0ff3f520ce828e4 | [
"BSD-2-Clause"
] | 1 | 2020-03-27T20:57:17.000Z | 2020-03-27T20:57:17.000Z | familysearch/discovery.py | teoliphant/familysearch-python-sdk-opensource | d055cf3e0c0d547bff5abdb4a0ff3f520ce828e4 | [
"BSD-2-Clause"
] | null | null | null | familysearch/discovery.py | teoliphant/familysearch-python-sdk-opensource | d055cf3e0c0d547bff5abdb4a0ff3f520ce828e4 | [
"BSD-2-Clause"
] | 1 | 2020-03-27T20:56:24.000Z | 2020-03-27T20:56:24.000Z | # -*- coding: utf-8 -*-
"""FamilySearch Discovery submodule"""
# Python imports
# Magic
class Discovery(object):
"""https://familysearch.org/developers/docs/api/tree/FamilySearch_Collections_resource"""
def __init__(self):
"""https://familysearch.org/developers/docs/api/resources#disc... | 36.765957 | 94 | 0.546296 | 170 | 1,728 | 5.458824 | 0.494118 | 0.080819 | 0.03556 | 0.064655 | 0.079741 | 0.079741 | 0 | 0 | 0 | 0 | 0 | 0.002542 | 0.31713 | 1,728 | 46 | 95 | 37.565217 | 0.783898 | 0.239005 | 0 | 0.076923 | 0 | 0 | 0.118989 | 0.018745 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.115385 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80fcd18b63dbad21be8165a5cbd1d46267488b0a | 1,158 | py | Python | dvc/parsing/versions.py | lucasalavapena/dvc | 230eb7087df7f063ded7422af7ae45bd04eb794a | [
"Apache-2.0"
] | 9,136 | 2018-05-30T05:10:44.000Z | 2022-03-31T16:58:52.000Z | dvc/parsing/versions.py | 4nalog/dvc | 13c1314099df131f526177b2a75bda02dfc0cdbf | [
"Apache-2.0"
] | 4,804 | 2018-05-30T00:36:42.000Z | 2022-03-31T18:34:54.000Z | dvc/parsing/versions.py | 4nalog/dvc | 13c1314099df131f526177b2a75bda02dfc0cdbf | [
"Apache-2.0"
] | 1,072 | 2018-05-30T07:59:35.000Z | 2022-03-28T20:43:49.000Z | import enum
from collections.abc import Mapping
from voluptuous import validators
SCHEMA_KWD = "schema"
META_KWD = "meta"
def lockfile_version_schema(value):
expected = [LOCKFILE_VERSION.V2.value] # pylint: disable=no-member
msg = "invalid schema version {}, expected one of {}".format(
value, expec... | 27.571429 | 76 | 0.641623 | 170 | 1,158 | 4.311765 | 0.382353 | 0.061392 | 0.013643 | 0.040928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.264249 | 1,158 | 41 | 77 | 28.243902 | 0.841549 | 0.228843 | 0 | 0.076923 | 0 | 0 | 0.068849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0.038462 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
03833ead896a4112b71e7ff239b34b2e056eb92b | 737 | py | Python | python_anvil/api_resources/mutations/generate_etch_signing_url.py | anvilco/python-anvil | a4b90678aa942cdff7af7556874d0be4d98472c4 | [
"MIT"
] | 4 | 2021-02-09T00:45:45.000Z | 2021-05-21T12:27:43.000Z | python_anvil/api_resources/mutations/generate_etch_signing_url.py | anvilco/python-anvil | a4b90678aa942cdff7af7556874d0be4d98472c4 | [
"MIT"
] | 12 | 2021-02-16T12:37:21.000Z | 2022-03-18T21:10:32.000Z | python_anvil/api_resources/mutations/generate_etch_signing_url.py | anvilco/python-anvil | a4b90678aa942cdff7af7556874d0be4d98472c4 | [
"MIT"
] | 1 | 2022-01-29T15:39:37.000Z | 2022-01-29T15:39:37.000Z | from python_anvil.api_resources.mutations.base import BaseQuery
from python_anvil.api_resources.payload import GenerateEtchSigningURLPayload
class GenerateEtchSigningURL(BaseQuery):
"""Query class to handle retrieving a signing URL."""
mutation = """
mutation ($signerEid: String!, $clientUserId: Stri... | 33.5 | 84 | 0.713704 | 79 | 737 | 6.35443 | 0.455696 | 0.089641 | 0.119522 | 0.071713 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203528 | 737 | 21 | 85 | 35.095238 | 0.855196 | 0.063772 | 0 | 0 | 1 | 0 | 0.241228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03942987fdc215e4f9b477ca2a9098cb50639882 | 627 | py | Python | Python/Udemy/biblioteca.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | Python/Udemy/biblioteca.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | Python/Udemy/biblioteca.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | importar os
importar tkinter como tk
root = tk.Tk ()
canvas1 = tk.Canvas (root, width = 300, height = 350, bg = 'lightsteelblue2', relief = 'elevado')
canvas1.pack ()
label1 = tk.Label (root, text = 'Atualizar PIP', bg = 'lightsteelblue2')
label1.config (font = ('helvetica', 20))
canvas1.create_window (150, 80, jane... | 31.35 | 126 | 0.669856 | 83 | 627 | 5.036145 | 0.650602 | 0.08134 | 0.090909 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061657 | 0.172249 | 627 | 19 | 127 | 33 | 0.743738 | 0 | 0 | 0 | 0 | 0 | 0.232855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03a2ac96e4acee48a3dc6e883f69ce9128d79af1 | 454 | py | Python | mediafeed/databases/utils.py | media-feed/mediafeed | c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf | [
"MIT"
] | null | null | null | mediafeed/databases/utils.py | media-feed/mediafeed | c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf | [
"MIT"
] | null | null | null | mediafeed/databases/utils.py | media-feed/mediafeed | c2fb37b20a5bc41a4299193fa9b11f8a3e3b2acf | [
"MIT"
] | null | null | null | from logging import getLogger
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from ..settings import DATABASE_URL
logger = getLogger('mediafeed.databases')
Base = declarative_base()
engine = create_engine(DATABASE_URL)
Session = ses... | 25.222222 | 55 | 0.806167 | 57 | 454 | 6.298246 | 0.526316 | 0.116992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11674 | 454 | 17 | 56 | 26.705882 | 0.895262 | 0 | 0 | 0 | 0 | 0 | 0.088106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
03aebef158c51aecaa397016d2d3ae956d44f0ef | 5,954 | py | Python | tests/test_format_fixer.py | Sung-Huan/ANNOgesic | af3de26f6c5ff9d2218f18a84bbc863a1bb95550 | [
"0BSD"
] | 26 | 2016-02-25T19:27:55.000Z | 2022-01-22T09:54:59.000Z | tests/test_format_fixer.py | Sung-Huan/ANNOgesic | af3de26f6c5ff9d2218f18a84bbc863a1bb95550 | [
"0BSD"
] | 28 | 2018-11-22T19:51:06.000Z | 2022-03-20T23:02:13.000Z | tests/test_format_fixer.py | Sung-Huan/ANNOgesic | af3de26f6c5ff9d2218f18a84bbc863a1bb95550 | [
"0BSD"
] | 18 | 2016-06-01T11:53:45.000Z | 2021-12-27T03:41:03.000Z | #!/usr/bin/python
import os
import sys
import csv
import shutil
from io import StringIO
import unittest
sys.path.append(".")
from mock_helper import import_data
from annogesiclib.format_fixer import FormatFixer
class TestFormatFixer(unittest.TestCase):
def setUp(self):
self.fixer = FormatFixer()
... | 51.773913 | 502 | 0.724723 | 885 | 5,954 | 4.689266 | 0.228249 | 0.020241 | 0.037108 | 0.020241 | 0.667229 | 0.650361 | 0.586265 | 0.547711 | 0.489639 | 0.472771 | 0 | 0.117256 | 0.140578 | 5,954 | 114 | 503 | 52.22807 | 0.693766 | 0.002687 | 0 | 0.306122 | 0 | 0.183673 | 0.640728 | 0.317669 | 0 | 0 | 0 | 0 | 0.030612 | 1 | 0.05102 | false | 0 | 0.112245 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03bb26052f8e4c4fe82de62a763b1719f83361f2 | 518 | py | Python | app.py | EvanLuo42/Exprimere | 034d07e3f1923332471cf443eacab1d6142700e0 | [
"MIT"
] | null | null | null | app.py | EvanLuo42/Exprimere | 034d07e3f1923332471cf443eacab1d6142700e0 | [
"MIT"
] | null | null | null | app.py | EvanLuo42/Exprimere | 034d07e3f1923332471cf443eacab1d6142700e0 | [
"MIT"
] | null | null | null | import json
import uuid
from datetime import timedelta
from flask import Flask, request
from routers.sign import sign
from routers.user import user
from routers.article import article
app = Flask(__name__)
app.register_blueprint(user)
app.register_blueprint(sign)
app.register_blueprint(article)
app.config['SECRET_KE... | 19.923077 | 60 | 0.764479 | 72 | 518 | 5.25 | 0.513889 | 0.087302 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004415 | 0.125483 | 518 | 25 | 61 | 20.72 | 0.830022 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.050193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0.055556 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
03c17a7c2fb09b84fcc9a2f2f966b554be8a3360 | 2,615 | py | Python | plugins/auth_netrc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | plugins/auth_netrc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | plugins/auth_netrc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | """
Implement credentials lookup using the ~/.netrc(5) file.
"""
import base64
import binascii
from netrc import netrc
import os.path
from ddupdate.ddplugin import AuthPlugin, AuthError
class AuthNetrc(AuthPlugin):
"""Get credentials stored in the .netrc(5) file.
This is the original storage used before 0.7... | 33.961039 | 75 | 0.559847 | 311 | 2,615 | 4.655949 | 0.392283 | 0.029006 | 0.024862 | 0.043508 | 0.03453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015084 | 0.315488 | 2,615 | 76 | 76 | 34.407895 | 0.793855 | 0.168642 | 0 | 0.037037 | 0 | 0 | 0.108757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.092593 | 0.092593 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
03c224548c0ec26f5d7f5b1a5d6ec0c6a1bed855 | 4,654 | py | Python | lib/tempora/timing.py | marcelveldt/script.module.cherrypy | e29313a7f41062dda92298c80fe898078bac29d7 | [
"BSD-3-Clause"
] | 2 | 2019-03-04T15:17:49.000Z | 2021-04-04T08:08:14.000Z | lib/tempora/timing.py | rrosajp/script.module.cherrypy | 61ae795123755f3be43611e0f2667e85ef20c9d3 | [
"BSD-3-Clause"
] | 2 | 2019-11-16T13:20:55.000Z | 2021-01-10T11:28:43.000Z | lib/tempora/timing.py | rrosajp/script.module.cherrypy | 61ae795123755f3be43611e0f2667e85ef20c9d3 | [
"BSD-3-Clause"
] | 6 | 2020-05-22T15:25:34.000Z | 2021-08-13T09:43:01.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import datetime
import functools
import numbers
import time
__metaclass__ = type
class Stopwatch:
"""
A simple stopwatch which starts automatically.
>>> w = Stopwatch()
>>> _1_sec = datetime.timedelta(seconds=1)
>>> w.split() < ... | 21.154545 | 69 | 0.682424 | 670 | 4,654 | 4.597015 | 0.276119 | 0.019481 | 0.025325 | 0.00974 | 0.079221 | 0.065584 | 0.050325 | 0.022078 | 0 | 0 | 0 | 0.018987 | 0.185217 | 4,654 | 219 | 70 | 21.251142 | 0.792985 | 0.473571 | 0 | 0.04878 | 0 | 0 | 0.064408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207317 | false | 0 | 0.060976 | 0.036585 | 0.47561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03c94d354bdb37310402137294e4e99b4e2dc9cf | 4,821 | py | Python | scripts/pyBusPirateLite/MicroWire.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/pyBusPirateLite/MicroWire.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/pyBusPirateLite/MicroWire.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import sys,time
from optparse import OptionParser
from pyBusPirateLite.RAW_WIRE import *
def main():
# First of all parse the command line
parser = OptionParser()
parser.add_option("-c", "--capacity", dest="capacity", help="size of the me... | 34.934783 | 185 | 0.532255 | 597 | 4,821 | 4.201005 | 0.345059 | 0.044657 | 0.059809 | 0.022329 | 0.151116 | 0.116826 | 0.116826 | 0.076156 | 0.076156 | 0.076156 | 0 | 0.018495 | 0.349513 | 4,821 | 137 | 186 | 35.189781 | 0.780612 | 0.204314 | 0 | 0.338235 | 0 | 0 | 0.213119 | 0 | 0 | 0 | 0.001633 | 0 | 0 | 0 | null | null | 0 | 0.044118 | null | null | 0.161765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03c9ef1f24f20ac8f4f293fd7e680b58a95d7879 | 39,779 | py | Python | training.py | SidRama/Longitudinal-VAE | 3b8a341da14063728dd37a8e76b4372eb5256c97 | [
"MIT"
] | 4 | 2021-04-02T04:06:45.000Z | 2022-03-11T08:18:36.000Z | training.py | SidRama/Longitudinal-VAE | 3b8a341da14063728dd37a8e76b4372eb5256c97 | [
"MIT"
] | 1 | 2021-10-30T14:00:59.000Z | 2021-10-30T14:00:59.000Z | training.py | SidRama/Longitudinal-VAE | 3b8a341da14063728dd37a8e76b4372eb5256c97 | [
"MIT"
] | 1 | 2022-02-19T07:23:08.000Z | 2022-02-19T07:23:08.000Z | from torchvision import transforms
from torch.utils.data import DataLoader
from torch.utils.data.sampler import BatchSampler
import numpy as np
import torch
import os
from elbo_functions import deviance_upper_bound, elbo, KL_closed, minibatch_KLD_upper_bound, minibatch_KLD_upper_bound_iter
from model_test import MSE_... | 51.998693 | 245 | 0.601423 | 5,076 | 39,779 | 4.43617 | 0.076635 | 0.021583 | 0.021139 | 0.00977 | 0.776845 | 0.723332 | 0.695755 | 0.652012 | 0.620481 | 0.595035 | 0 | 0.012561 | 0.299505 | 39,779 | 764 | 246 | 52.066754 | 0.79555 | 0.136504 | 0 | 0.503937 | 0 | 0.011811 | 0.03899 | 0.000619 | 0 | 0 | 0 | 0 | 0.003937 | 1 | 0.007874 | false | 0.005906 | 0.021654 | 0 | 0.035433 | 0.017717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03cdcfa6051b7d4127e0f25768811b368f1d5f80 | 2,588 | py | Python | S4/S4 Library/simulation/game_effect_modifier/pie_menu_modifier.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/game_effect_modifier/pie_menu_modifier.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/game_effect_modifier/pie_menu_modifier.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from game_effect_modifier.base_game_effect_modifier import BaseGameEffectModifier
from game_effect_modifier.game_effect_type import GameEffectType
from sims4.localization import TunableLocalizedStringFactory
from sims4.tuning.tunable import OptionalTunable, HasTunableSingletonFactory, AutoFactoryInit, TunableVariant, T... | 73.942857 | 543 | 0.766229 | 251 | 2,588 | 7.649402 | 0.374502 | 0.058333 | 0.047917 | 0.022917 | 0.096875 | 0.096875 | 0.096875 | 0 | 0 | 0 | 0 | 0.00092 | 0.159583 | 2,588 | 34 | 544 | 76.117647 | 0.881839 | 0 | 0 | 0.153846 | 0 | 0 | 0.220634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.230769 | 0.076923 | 0.807692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
03ddcef773532e5a4ed0aeaac997c309e44f3e4a | 1,306 | py | Python | train/2_mnist_2.py | asysbang/tensorflow | 1faa976d942e2da50bfb9e7f13c36a53da8cbc09 | [
"Apache-2.0"
] | null | null | null | train/2_mnist_2.py | asysbang/tensorflow | 1faa976d942e2da50bfb9e7f13c36a53da8cbc09 | [
"Apache-2.0"
] | null | null | null | train/2_mnist_2.py | asysbang/tensorflow | 1faa976d942e2da50bfb9e7f13c36a53da8cbc09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import tensorflow as tf
from tensorflow import keras
(train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.mnist.load_data()
train_labels = train_labels[:1000]
test_labels = test_labels[:1000]
train_images = train_images[:1000].reshape(-1... | 27.208333 | 117 | 0.652374 | 156 | 1,306 | 5.25641 | 0.5 | 0.053659 | 0.058537 | 0.053659 | 0.063415 | 0.063415 | 0.063415 | 0.063415 | 0 | 0 | 0 | 0.055281 | 0.224349 | 1,306 | 48 | 118 | 27.208333 | 0.754195 | 0.04441 | 0 | 0 | 0 | 0 | 0.05618 | 0.02488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03df3d4df0b31b2b622dbaed3fdcffa473d9bedb | 865 | py | Python | _cloud/installer.py | pythonista-cloud/cloud | a524bf3dee0689ae2fabee35b9ed90e2e8fbc533 | [
"MIT"
] | 4 | 2016-11-14T08:55:02.000Z | 2017-03-28T19:19:29.000Z | _cloud/installer.py | controversial/cloud | a524bf3dee0689ae2fabee35b9ed90e2e8fbc533 | [
"MIT"
] | 3 | 2016-08-14T01:25:31.000Z | 2016-10-01T00:56:39.000Z | _cloud/installer.py | controversial/cloud | a524bf3dee0689ae2fabee35b9ed90e2e8fbc533 | [
"MIT"
] | 2 | 2016-08-19T12:34:46.000Z | 2016-09-30T02:59:05.000Z | """Handles the installation of downloaded modules."""
import os
import shutil
import tempfile
import zipfile
from _cloud import utils
def install(zipfile, metadata):
"""Install a module once it has been downloaded locally.
Takes the GitHub repo zipped up in a BytesIO, as well as all the metadata
about t... | 30.892857 | 77 | 0.714451 | 115 | 865 | 5.295652 | 0.547826 | 0.039409 | 0.049261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001429 | 0.190751 | 865 | 27 | 78 | 32.037037 | 0.868571 | 0.336416 | 0 | 0 | 0 | 0 | 0.060109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
03df7118afd5fba02f8e59b8480078cb30eb6fc4 | 478 | py | Python | misc/joystick_servo_control.py | HuiminHe/rl-swing | d367e012b53aa7990c45480199ed7e3970471dcf | [
"MIT"
] | null | null | null | misc/joystick_servo_control.py | HuiminHe/rl-swing | d367e012b53aa7990c45480199ed7e3970471dcf | [
"MIT"
] | null | null | null | misc/joystick_servo_control.py | HuiminHe/rl-swing | d367e012b53aa7990c45480199ed7e3970471dcf | [
"MIT"
] | null | null | null | from __future__ import division
from __future__ import print_function
import sys
sys.path.append('..')
from joystick import JoyStick
from servo import ServoController
if __name__ == '__main__':
sc = ServoController(angle_range=80)
js = JoyStick()
while True:
# read serial
v = js.read()
... | 23.9 | 40 | 0.640167 | 60 | 478 | 4.8 | 0.55 | 0.069444 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008523 | 0.263598 | 478 | 19 | 41 | 25.157895 | 0.809659 | 0.07113 | 0 | 0 | 0 | 0 | 0.022676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
03dfc8ecf08da7caf00b3624df97cd382f385d70 | 426 | py | Python | datumaro/plugins/sly_pointcloud_format/format.py | certiware/posemaro | 3f9bed71dd4a1053ea27bed1a85f2ff01fdcf800 | [
"MIT"
] | null | null | null | datumaro/plugins/sly_pointcloud_format/format.py | certiware/posemaro | 3f9bed71dd4a1053ea27bed1a85f2ff01fdcf800 | [
"MIT"
] | null | null | null | datumaro/plugins/sly_pointcloud_format/format.py | certiware/posemaro | 3f9bed71dd4a1053ea27bed1a85f2ff01fdcf800 | [
"MIT"
] | null | null | null | # Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
class PointCloudPath:
BASE_DIR = 'ds0'
ANNNOTATION_DIR = 'ann'
DEFAULT_IMAGE_EXT = '.jpg'
POINT_CLOUD_DIR = 'pointcloud'
RELATED_IMAGES_DIR = 'related_images'
KEY_ID_FILE = 'key_id_map.json'
META_FILE = 'meta.json'
... | 23.666667 | 58 | 0.676056 | 50 | 426 | 5.44 | 0.78 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014663 | 0.199531 | 426 | 18 | 58 | 23.666667 | 0.782991 | 0.152582 | 0 | 0 | 0 | 0 | 0.312849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
03e250ddef07192e2b3da6b8fdcd1b7161dae4bb | 847 | py | Python | lib/file.py | encodingl/skadmin | 3a89f6123a85d13ea4d335f7986731b01dced32d | [
"Apache-2.0"
] | null | null | null | lib/file.py | encodingl/skadmin | 3a89f6123a85d13ea4d335f7986731b01dced32d | [
"Apache-2.0"
] | null | null | null | lib/file.py | encodingl/skadmin | 3a89f6123a85d13ea4d335f7986731b01dced32d | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE, STDOUT, call
import os
def new_file(file_name,file_content):
with open(file_name,"a+") as f:
f.write(file_content)
def get_ex_link(hosts,dir):
script_link_read = os.path.dirname(os.path.dirname(os.path.... | 31.37037 | 115 | 0.643447 | 126 | 847 | 4.087302 | 0.555556 | 0.046602 | 0.034951 | 0.054369 | 0.062136 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.20307 | 847 | 27 | 116 | 31.37037 | 0.748148 | 0.050767 | 0 | 0 | 0 | 0 | 0.17061 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03e2e62a60078479241607f7da35c2a530b2d535 | 28,148 | py | Python | formalchemy/tests/test_fieldset.py | samuelchen/formalchemy | ff819edda0afce3986172057ca4e00c1ef5957c6 | [
"MIT"
] | 2 | 2018-12-05T13:53:35.000Z | 2018-12-05T14:06:09.000Z | formalchemy/tests/test_fieldset.py | samuelchen/formalchemy | ff819edda0afce3986172057ca4e00c1ef5957c6 | [
"MIT"
] | null | null | null | formalchemy/tests/test_fieldset.py | samuelchen/formalchemy | ff819edda0afce3986172057ca4e00c1ef5957c6 | [
"MIT"
] | null | null | null | __doc__ = r"""
>>> from formalchemy.tests import *
>>> FieldSet.default_renderers = original_renderers.copy()
# some low-level testing first
>>> fs = FieldSet(order1)
>>> fs._raw_fields()
[AttributeField(id), AttributeField(user_id), AttributeField(quantity), AttributeField(user)]
>>> fs.user.name
'user_id'
>>> fs ... | 25.871324 | 240 | 0.654611 | 4,075 | 28,148 | 4.411043 | 0.082454 | 0.021363 | 0.025313 | 0.035049 | 0.539082 | 0.488901 | 0.421419 | 0.365285 | 0.315772 | 0.284784 | 0 | 0.01877 | 0.112299 | 28,148 | 1,087 | 241 | 25.895124 | 0.700604 | 0 | 0 | 0.553571 | 0 | 0.073413 | 0.997193 | 0.301265 | 0 | 0 | 0 | 0 | 0.00496 | 1 | 0 | false | 0.011905 | 0.002976 | 0 | 0.002976 | 0.060516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03e488593c3637d25a157f692f1a8af29b38fbae | 663 | py | Python | setup.py | wowngasb/pykl | 6dc68acdd5b2598260647ae5dc22eb27d312b0d8 | [
"MIT"
] | null | null | null | setup.py | wowngasb/pykl | 6dc68acdd5b2598260647ae5dc22eb27d312b0d8 | [
"MIT"
] | null | null | null | setup.py | wowngasb/pykl | 6dc68acdd5b2598260647ae5dc22eb27d312b0d8 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='pykl',
version='0.1.6',
packages=find_packages(),
author='pykl',
author_email='me@wowngasb.com',
description='kltool for python, toolset for web, http, cache, dht, xml, json and so on',
long_description=open('README.rst').read(... | 26.52 | 94 | 0.61086 | 88 | 663 | 4.534091 | 0.681818 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040076 | 0.209653 | 663 | 24 | 95 | 27.625 | 0.721374 | 0 | 0 | 0 | 0 | 0 | 0.434389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03ea5fde54caeed24197fddb6b8a6942d78f718e | 8,843 | py | Python | hogar/ResponseHandler.py | breyten/politwoops-hogar-bot | 671b8e84222cc7a0917916d1545fb8e5e64031cc | [
"MIT"
] | 1 | 2021-04-06T01:43:00.000Z | 2021-04-06T01:43:00.000Z | hogar/ResponseHandler.py | openstate/osf-hogar-bot | 7a8ae026b6754465978541cda4d56c529908a429 | [
"MIT"
] | null | null | null | hogar/ResponseHandler.py | openstate/osf-hogar-bot | 7a8ae026b6754465978541cda4d56c529908a429 | [
"MIT"
] | null | null | null | # The MIT License (MIT)
#
# Copyright (c) 2015 Leon Jacobs
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 33.244361 | 108 | 0.583173 | 1,056 | 8,843 | 4.783144 | 0.29072 | 0.032667 | 0.022174 | 0.011879 | 0.07939 | 0.051079 | 0.040784 | 0.011879 | 0 | 0 | 0 | 0.00252 | 0.326925 | 8,843 | 265 | 109 | 33.369811 | 0.846102 | 0.248897 | 0 | 0.15 | 0 | 0 | 0.155132 | 0 | 0 | 0 | 0 | 0.003774 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03ecf49402beb18eccc396a8cf3074e84b466189 | 1,176 | py | Python | src/pyfuzz/string_mutations.py | fabriceyhc/pyfuzz | 67f8bd844f63139ca8f795b2bc6e30a419fa037e | [
"MIT"
] | null | null | null | src/pyfuzz/string_mutations.py | fabriceyhc/pyfuzz | 67f8bd844f63139ca8f795b2bc6e30a419fa037e | [
"MIT"
] | null | null | null | src/pyfuzz/string_mutations.py | fabriceyhc/pyfuzz | 67f8bd844f63139ca8f795b2bc6e30a419fa037e | [
"MIT"
] | null | null | null | import random
def delete_random_character(s):
"""Returns s with a random character deleted"""
if s == "":
return s
pos = random.randint(0, len(s) - 1)
# print("Deleting", repr(s[pos]), "at", pos)
return s[:pos] + s[pos + 1:]
def insert_random_character(s):
"""Returns s with a random c... | 29.4 | 69 | 0.610544 | 167 | 1,176 | 4.185629 | 0.275449 | 0.236052 | 0.071531 | 0.06867 | 0.340486 | 0.297568 | 0.267525 | 0.267525 | 0.217454 | 0.091559 | 0 | 0.016779 | 0.239796 | 1,176 | 40 | 70 | 29.4 | 0.765101 | 0.304422 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03f7908458d6fd024eb279d13696be73bbe93e67 | 1,268 | py | Python | setup.py | Lyrichu/sopt | 43cfc8fe39d5d05ad01db626dd777e4ce3e8d14e | [
"MIT"
] | 40 | 2018-06-15T00:11:44.000Z | 2022-01-22T07:35:27.000Z | setup.py | Lyrichu/sopt | 43cfc8fe39d5d05ad01db626dd777e4ce3e8d14e | [
"MIT"
] | 3 | 2019-01-03T15:00:52.000Z | 2019-01-03T17:56:41.000Z | setup.py | Lyrichu/sopt | 43cfc8fe39d5d05ad01db626dd777e4ce3e8d14e | [
"MIT"
] | 14 | 2019-01-10T12:34:10.000Z | 2021-07-06T16:04:10.000Z | #!/usr/bin/env python
# coding=utf-8
from setuptools import setup,find_packages
setup(
name="sopt",
version="0.0.6.1",
description="sopt:a simple python optimizer library",
long_description=
'''
sopt is a simple python optimizer library.Currentlly,it includes some stochastic optimization
al... | 45.285714 | 110 | 0.73817 | 171 | 1,268 | 5.438596 | 0.631579 | 0.032258 | 0.027957 | 0.047312 | 0.062366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021415 | 0.152997 | 1,268 | 27 | 111 | 46.962963 | 0.844507 | 0.026025 | 0 | 0 | 0 | 0 | 0.384766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03fb3171467ca449d6a91472497392587eecf860 | 13,055 | py | Python | pycoind/blockchain/transaction.py | peerchemist/pycoind | 33a600e617ec89c5a0f680ce7725b777d6176ea8 | [
"MIT"
] | 120 | 2015-01-12T18:58:20.000Z | 2022-03-15T21:26:08.000Z | pycoind/blockchain/transaction.py | fudong1127/pycoind | 33a600e617ec89c5a0f680ce7725b777d6176ea8 | [
"MIT"
] | 7 | 2015-06-09T04:46:46.000Z | 2019-01-26T23:04:16.000Z | pycoind/blockchain/transaction.py | fudong1127/pycoind | 33a600e617ec89c5a0f680ce7725b777d6176ea8 | [
"MIT"
] | 57 | 2015-01-08T07:05:50.000Z | 2022-03-15T21:26:10.000Z | # The MIT License (MIT)
#
# Copyright (c) 2014 Richard Moore
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | 32.6375 | 94 | 0.622444 | 1,784 | 13,055 | 4.440022 | 0.242152 | 0.008837 | 0.017043 | 0.01212 | 0.155915 | 0.116273 | 0.086479 | 0.080167 | 0.080167 | 0.073476 | 0 | 0.008126 | 0.28357 | 13,055 | 399 | 95 | 32.719298 | 0.838768 | 0.362007 | 0 | 0.122905 | 0 | 0 | 0.083418 | 0 | 0 | 0 | 0 | 0.005013 | 0 | 0 | null | null | 0 | 0.055866 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03fe0e30f032fadc03ee23fb93a319dd1051b7b1 | 13,743 | py | Python | content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py | aviadr1/learn-python3 | e90f05aa026772c6db7fd4f3ccc2518d983ac4fa | [
"MIT"
] | null | null | null | content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py | aviadr1/learn-python3 | e90f05aa026772c6db7fd4f3ccc2518d983ac4fa | [
"MIT"
] | null | null | null | content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py | aviadr1/learn-python3 | e90f05aa026772c6db7fd4f3ccc2518d983ac4fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# <a href="https://colab.research.google.com/github/aviadr1/learn-advanced-python/blob/master/content/11_db_access/02_sqlalchemy_orm.ipynb" target="_blank">
# <img src="https://colab.research.google.com/assets/colab-badge.svg"
# title="Open this file in Google Colab" alt=... | 27.596386 | 156 | 0.724587 | 1,795 | 13,743 | 5.464067 | 0.242897 | 0.057096 | 0.017129 | 0.021105 | 0.293332 | 0.256321 | 0.215946 | 0.183524 | 0.161807 | 0.136215 | 0 | 0.015975 | 0.161901 | 13,743 | 497 | 157 | 27.651911 | 0.835562 | 0.392927 | 0 | 0.341584 | 0 | 0.004951 | 0.089773 | 0.011513 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09901 | null | null | 0.09901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff000699579301176a3ed48af7601514c2e5e5da | 9,985 | py | Python | zeex/core/ui/actions/split_ui.py | zbarge/dbtrix | 1321978a929586a99bdddf470d970a4aca7e594c | [
"MIT"
] | 10 | 2016-12-07T15:54:02.000Z | 2021-07-24T00:31:39.000Z | zeex/core/ui/actions/split_ui.py | zbarge/dbtrix | 1321978a929586a99bdddf470d970a4aca7e594c | [
"MIT"
] | 86 | 2016-12-12T03:28:19.000Z | 2017-01-13T18:41:07.000Z | zeex/core/ui/actions/split_ui.py | zbarge/dbtrix | 1321978a929586a99bdddf470d970a4aca7e594c | [
"MIT"
] | 5 | 2016-12-07T23:53:59.000Z | 2021-01-25T10:14:57.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:/Users/Zeke/Google Drive/dev/python/zeex/zeex/core/ui/actions/split.ui'
#
# Created: Mon Nov 13 22:57:16 2017
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import... | 68.862069 | 147 | 0.74652 | 953 | 9,985 | 7.785939 | 0.160546 | 0.073315 | 0.016173 | 0.08841 | 0.301078 | 0.137197 | 0.103504 | 0.069542 | 0.069542 | 0.069542 | 0 | 0.020049 | 0.145819 | 9,985 | 144 | 148 | 69.340278 | 0.849924 | 0.028543 | 0 | 0 | 1 | 0 | 0.092251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015267 | false | 0 | 0.038168 | 0 | 0.061069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff017f787bcabba38176acc88e53c51777ee30b7 | 1,336 | py | Python | wiki/views.py | meredithcat/makewiki_v2 | b80c1110aeebb6a15605edbca56614dac68027b2 | [
"MIT"
] | null | null | null | wiki/views.py | meredithcat/makewiki_v2 | b80c1110aeebb6a15605edbca56614dac68027b2 | [
"MIT"
] | 7 | 2020-06-06T00:36:02.000Z | 2022-02-10T13:59:22.000Z | wiki/views.py | meredithcat/makewiki_v2 | b80c1110aeebb6a15605edbca56614dac68027b2 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import FormView
from django.contrib.auth.models import User
from wiki.models import Page
from wiki.forms import PageForm
class PageListView(Li... | 29.043478 | 65 | 0.651198 | 169 | 1,336 | 5.076923 | 0.372781 | 0.058275 | 0.052448 | 0.076923 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23503 | 1,336 | 46 | 66 | 29.043478 | 0.83953 | 0.099551 | 0 | 0.121212 | 0 | 0 | 0.042445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.212121 | 0.030303 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff03d821b99c0f4eaa6cb757755ca019cffe1aeb | 3,395 | py | Python | mirrorkan_generate_feed.py | KSP-CKAN/MirrorKAN | e41d22641aea49d3d099f5246cf7fdeb03bff1ae | [
"MIT"
] | 4 | 2015-01-08T13:38:45.000Z | 2016-03-26T19:31:07.000Z | mirrorkan_generate_feed.py | KSP-CKAN/MirrorKAN | e41d22641aea49d3d099f5246cf7fdeb03bff1ae | [
"MIT"
] | 7 | 2015-01-01T12:07:23.000Z | 2021-04-22T00:34:52.000Z | mirrorkan_generate_feed.py | KSP-CKAN/MirrorKAN | e41d22641aea49d3d099f5246cf7fdeb03bff1ae | [
"MIT"
] | 4 | 2015-04-05T21:36:31.000Z | 2016-03-26T19:31:18.000Z | #!/usr/bin/env python
import os, sys
from distutils.version import LooseVersion
from dateutil.parser import parse
from datetime import datetime, timedelta
import json
import operator
import pytz
import PyRSS2Gen
from mirrorkan import parse_ckan_metadata_directory
from mirrorkan_conf import *
from mirrorkan_util impor... | 35.364583 | 103 | 0.606775 | 401 | 3,395 | 4.892768 | 0.349127 | 0.04893 | 0.056065 | 0.061162 | 0.213558 | 0.181448 | 0.137615 | 0.070336 | 0.070336 | 0.070336 | 0 | 0.019008 | 0.287187 | 3,395 | 95 | 104 | 35.736842 | 0.791736 | 0.067747 | 0 | 0.057971 | 0 | 0 | 0.127734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15942 | null | null | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff08babeac6d8d1007cf821484728c1c3ba7dcd1 | 667 | py | Python | youtubesearchpython/base/constants.py | cinemafactory2/youtube-search-python | a228818e44e65941583bcc8237517c36bc27694e | [
"MIT"
] | 1 | 2020-12-24T09:52:14.000Z | 2020-12-24T09:52:14.000Z | youtubesearchpython/base/constants.py | cinemafactory2/youtube-search-python | a228818e44e65941583bcc8237517c36bc27694e | [
"MIT"
] | null | null | null | youtubesearchpython/base/constants.py | cinemafactory2/youtube-search-python | a228818e44e65941583bcc8237517c36bc27694e | [
"MIT"
] | null | null | null |
VIDEO_ELEMENT = 'videoRenderer'
CHANNEL_ELEMENT = 'channelRenderer'
PLAYLIST_ELEMENT = 'playlistRenderer'
SHELF_ELEMENT = 'shelfRenderer'
class ResultMode:
json = 0
dict = 1
class SearchMode:
videos = 'EgIQAQ%3D%3D'
channels = 'EgIQAg%3D%3D'
playlists = 'EgIQAw%3D%3D'
class VideoU... | 20.84375 | 39 | 0.667166 | 60 | 667 | 7.35 | 0.8 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.232384 | 667 | 31 | 40 | 21.516129 | 0.845703 | 0 | 0 | 0 | 0 | 0 | 0.271772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.84 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff0a3b5cf8e0144272382801bbb626a50151c075 | 6,452 | py | Python | train_svm.py | aleaugustoplus/airline_ranker | aa72489de81a1964e4f7c9b45453ea64facb7df2 | [
"MIT"
] | null | null | null | train_svm.py | aleaugustoplus/airline_ranker | aa72489de81a1964e4f7c9b45453ea64facb7df2 | [
"MIT"
] | null | null | null | train_svm.py | aleaugustoplus/airline_ranker | aa72489de81a1964e4f7c9b45453ea64facb7df2 | [
"MIT"
] | null | null | null | from pyspark import SparkConf, SparkContext
import sys
from pyspark.sql import SQLContext
from pyspark.ml.feature import Word2Vec
import re
from pyspark.sql.types import StructType, StructField, StringType, IntegerType, ArrayType
from pyspark.mllib.classification import SVMWithSGD, SVMModel
from pyspark.mllib.regressio... | 39.582822 | 588 | 0.706293 | 920 | 6,452 | 4.855435 | 0.375 | 0.023282 | 0.032013 | 0.034923 | 0.103873 | 0.046564 | 0.042086 | 0.024177 | 0.024177 | 0.024177 | 0 | 0.01228 | 0.179634 | 6,452 | 162 | 589 | 39.82716 | 0.831664 | 0.062306 | 0 | 0.039216 | 0 | 0.039216 | 0.330324 | 0.009199 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff0aa98f168a8ac9d7cd43f2c678aea5511f3e0f | 6,267 | py | Python | company/views.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 2 | 2020-04-12T13:18:35.000Z | 2021-04-02T04:18:17.000Z | company/views.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 3 | 2020-02-11T23:58:53.000Z | 2020-09-06T18:46:17.000Z | company/views.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 1 | 2020-08-17T08:29:41.000Z | 2020-08-17T08:29:41.000Z | from builtins import super
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
# from django.core.checks import messages
from django.shortcuts import render, get_object_or_404
from django.urls import reverse_lazy
from d... | 34.816667 | 90 | 0.694431 | 714 | 6,267 | 5.95098 | 0.236695 | 0.025888 | 0.026359 | 0.009885 | 0.344081 | 0.311132 | 0.299365 | 0.257943 | 0.257943 | 0.23582 | 0 | 0.00219 | 0.1985 | 6,267 | 179 | 91 | 35.011173 | 0.843719 | 0.254667 | 0 | 0.125 | 0 | 0 | 0.075283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.182692 | 0.009615 | 0.605769 | 0.028846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff0dbffb9b3513d37bd498e1db5806dca68f9af0 | 5,886 | py | Python | cloudmersive_convert_api_client/models/replace_string_regex_request.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 3 | 2018-07-25T23:04:34.000Z | 2021-08-10T16:43:10.000Z | cloudmersive_convert_api_client/models/replace_string_regex_request.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 3 | 2020-11-23T10:46:48.000Z | 2021-12-30T14:09:34.000Z | cloudmersive_convert_api_client/models/replace_string_regex_request.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 2 | 2020-01-07T09:48:01.000Z | 2020-11-23T10:47:00.000Z | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ReplaceStringRegexRequest(objec... | 33.827586 | 158 | 0.642712 | 664 | 5,886 | 5.480422 | 0.207831 | 0.107447 | 0.120088 | 0.086562 | 0.527892 | 0.442154 | 0.429788 | 0.331959 | 0.276175 | 0.176972 | 0 | 0.015581 | 0.280326 | 5,886 | 173 | 159 | 34.023121 | 0.843484 | 0.383452 | 0 | 0.065789 | 1 | 0 | 0.063051 | 0.023848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.039474 | 0 | 0.355263 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff0e3dc431051c1cee9f665a2db88824539a5c0c | 762 | py | Python | DAO/BotDAOFile.py | sebampuero/dummy-discord-bot | 030bc6483c501ad80b6a504e886b47b41da3f609 | [
"MIT"
] | null | null | null | DAO/BotDAOFile.py | sebampuero/dummy-discord-bot | 030bc6483c501ad80b6a504e886b47b41da3f609 | [
"MIT"
] | 1 | 2021-03-31T19:48:15.000Z | 2021-03-31T19:48:15.000Z | DAO/BotDAOFile.py | sebampuero/dummy-discord-bot | 030bc6483c501ad80b6a504e886b47b41da3f609 | [
"MIT"
] | null | null | null | import json
class BotDAOFile():
def get_radios(self):
f = open("./config/radio_stations.json", "r")
radios = json.loads(f.read())
f.close()
return radios
def get_users_welcome_audios(self):
f = open("./config/users_audio_map.json", "r")
user_ids_to_audio_map = ... | 33.130435 | 79 | 0.624672 | 111 | 762 | 4.036036 | 0.369369 | 0.089286 | 0.080357 | 0.066964 | 0.544643 | 0.357143 | 0.245536 | 0.125 | 0.125 | 0 | 0 | 0.006849 | 0.233596 | 762 | 23 | 80 | 33.130435 | 0.760274 | 0 | 0 | 0.111111 | 0 | 0 | 0.167759 | 0.14941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff12073f2892dc4c9b1c9da709cd6645184778f5 | 9,283 | py | Python | kid_readout/measurement/acquire.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | kid_readout/measurement/acquire.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | kid_readout/measurement/acquire.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | """
Basic framework for acquiring a roach measurement that includes both sweep(s) and stream(s).
Acquire
-Initialize equipment.
-Initialize roach: preload frequencies, if necessary.
-Create state dictionary containing state from all equipment, including temperatures, if possible.
-Run a coarse sweep, if necessary: cre... | 35.98062 | 117 | 0.701713 | 1,285 | 9,283 | 4.898054 | 0.240467 | 0.020655 | 0.01557 | 0.020337 | 0.444233 | 0.420083 | 0.3864 | 0.364792 | 0.325072 | 0.308866 | 0 | 0.002325 | 0.212216 | 9,283 | 257 | 118 | 36.120623 | 0.858334 | 0.020144 | 0 | 0.32 | 0 | 0 | 0.067937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.112 | null | null | 0.072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff1424e96b96ed429f64973cb9e289f22c3b1902 | 1,890 | py | Python | configs/tutorial/caches.py | DownloadADuck/gem5-experiments | 0912e94ae52fbcf98f7827a02ef5ffc044604063 | [
"BSD-3-Clause"
] | null | null | null | configs/tutorial/caches.py | DownloadADuck/gem5-experiments | 0912e94ae52fbcf98f7827a02ef5ffc044604063 | [
"BSD-3-Clause"
] | null | null | null | configs/tutorial/caches.py | DownloadADuck/gem5-experiments | 0912e94ae52fbcf98f7827a02ef5ffc044604063 | [
"BSD-3-Clause"
] | null | null | null | #Caches configuration file
#We first import the simObj we are going to extend in this file
import m5
from m5.objects import Cache
#adding common scipts to our path
#m5.util.addToPath('../../')
#from common import SimpleOpts
#We can treat the BaseCache object like any python class and extend it
#We start by making th... | 29.076923 | 93 | 0.694709 | 283 | 1,890 | 4.537102 | 0.409894 | 0.03271 | 0.03972 | 0.046729 | 0.174455 | 0.133956 | 0.115265 | 0.115265 | 0.115265 | 0 | 0 | 0.030738 | 0.225397 | 1,890 | 64 | 94 | 29.53125 | 0.846311 | 0.492063 | 0 | 0.151515 | 0 | 0 | 0.013815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff1ce68308f5925af264a6f1d295c52ace60f9c2 | 266 | py | Python | dev_5/mainapp/models.py | Floou/dev-5 | bb412a4d3981f2fcd86017c84c37a3c5797ecb90 | [
"Apache-2.0"
] | null | null | null | dev_5/mainapp/models.py | Floou/dev-5 | bb412a4d3981f2fcd86017c84c37a3c5797ecb90 | [
"Apache-2.0"
] | null | null | null | dev_5/mainapp/models.py | Floou/dev-5 | bb412a4d3981f2fcd86017c84c37a3c5797ecb90 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class FullName(models.Model):
full_name = models.CharField(verbose_name='ФИО', max_length=256)
def __str__(self):
return self.full_name
class Meta:
verbose_name = 'ФИО'
verbose_name_plural = 'ФИО'
| 20.461538 | 68 | 0.672932 | 35 | 266 | 4.8 | 0.628571 | 0.196429 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.233083 | 266 | 12 | 69 | 22.166667 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0.033835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
20623498f51be19560db09bb45290a684bad0a02 | 6,330 | py | Python | model.py | rezendi/vortext | 5a599dd53b49d5bfbb0282ce486ee146f7f70017 | [
"MIT"
] | 14 | 2015-03-21T19:29:22.000Z | 2018-04-14T20:49:25.000Z | model.py | ashishnerkar1/vortext | 5a599dd53b49d5bfbb0282ce486ee146f7f70017 | [
"MIT"
] | null | null | null | model.py | ashishnerkar1/vortext | 5a599dd53b49d5bfbb0282ce486ee146f7f70017 | [
"MIT"
] | 1 | 2019-12-03T03:18:26.000Z | 2019-12-03T03:18:26.000Z | import datetime, logging
from google.appengine.api import memcache
from google.appengine.ext import db, ndb
import tweepy
TWITTER_CONSUMER_KEY = "YOUR_CONSUMER_KEY"
TWITTER_CONSUMER_SECRET = "YOUR_CONSUMER_SECRET"
STATUS_CREATED = 1
STATUS_FETCH_INITIATED = 10
STATUS_FETCH_COMPLETE = 100
STATUS_PARSE_U... | 34.590164 | 132 | 0.71485 | 860 | 6,330 | 5.077907 | 0.216279 | 0.027479 | 0.019235 | 0.028853 | 0.293107 | 0.217083 | 0.19739 | 0.169911 | 0.152965 | 0.152965 | 0 | 0.027841 | 0.171564 | 6,330 | 182 | 133 | 34.78022 | 0.80492 | 0.015798 | 0 | 0.150685 | 0 | 0 | 0.06988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027397 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
206411e134e20d5f82d0f3583568fb105d0cb56f | 4,009 | py | Python | src/dbmeta/tuple_store.py | Jon-Burr/dbobj | ea5057fc421c7f52da03a72bfe9553766c302c06 | [
"MIT"
] | null | null | null | src/dbmeta/tuple_store.py | Jon-Burr/dbobj | ea5057fc421c7f52da03a72bfe9553766c302c06 | [
"MIT"
] | null | null | null | src/dbmeta/tuple_store.py | Jon-Burr/dbobj | ea5057fc421c7f52da03a72bfe9553766c302c06 | [
"MIT"
] | null | null | null | from .store import Store, SeqStore, AssocStore, MutableSeqStore, MutableAssocStore
from .column import read_identity
from future.utils import iteritems
class TupleStore(Store):
""" Store that stores data internally as namedtuples """
def __init__(self, data=None, store_type=None, **kwargs):
super(Tuple... | 36.445455 | 82 | 0.637067 | 522 | 4,009 | 4.565134 | 0.178161 | 0.077214 | 0.032312 | 0.041125 | 0.391523 | 0.366765 | 0.342845 | 0.321024 | 0.294167 | 0.238775 | 0 | 0.000339 | 0.264156 | 4,009 | 109 | 83 | 36.779817 | 0.807458 | 0.149414 | 0 | 0.22973 | 0 | 0 | 0.01229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.040541 | 0.054054 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2065245385e7acc2b9233942aa397cae43de0eaf | 5,044 | py | Python | src/CollageImage.py | 1alexandra/collage | 671ca1713d8e9f74faae9e824552a03c253adad0 | [
"MIT"
] | 1 | 2020-07-21T12:10:58.000Z | 2020-07-21T12:10:58.000Z | src/CollageImage.py | 1alexandra/collage | 671ca1713d8e9f74faae9e824552a03c253adad0 | [
"MIT"
] | 17 | 2020-03-14T20:27:09.000Z | 2022-01-13T02:31:39.000Z | src/CollageImage.py | 1alexandra/collage | 671ca1713d8e9f74faae9e824552a03c253adad0 | [
"MIT"
] | null | null | null | from PIL import Image
from src.utils import int_clamp
from PIL import UnidentifiedImageError
import tkinter.messagebox as messagebox
def safe_open_image(filename, corner_creator):
image = None
try:
if filename is not None and filename != "":
image = PILCollageImage(filename, corner_creator... | 29.156069 | 112 | 0.638977 | 685 | 5,044 | 4.446715 | 0.148905 | 0.056139 | 0.064347 | 0.033487 | 0.28956 | 0.156271 | 0.118188 | 0.095207 | 0.095207 | 0.076165 | 0 | 0.013567 | 0.254758 | 5,044 | 172 | 113 | 29.325581 | 0.796488 | 0.045004 | 0 | 0.141667 | 0 | 0 | 0.005275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241667 | false | 0 | 0.033333 | 0.05 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2065a2c13c47c448ff966e0d33d8e5c03a1633bf | 1,610 | py | Python | article/tests/test_urls.py | mohitkhatri611/mumbleapi | 81fa0b34f3f2f079c6c261bed708e7418b6285e8 | [
"Apache-2.0"
] | 1 | 2021-05-25T09:48:48.000Z | 2021-05-25T09:48:48.000Z | article/tests/test_urls.py | mohitkhatri611/mumbleapi | 81fa0b34f3f2f079c6c261bed708e7418b6285e8 | [
"Apache-2.0"
] | null | null | null | article/tests/test_urls.py | mohitkhatri611/mumbleapi | 81fa0b34f3f2f079c6c261bed708e7418b6285e8 | [
"Apache-2.0"
] | null | null | null | from django.test import SimpleTestCase
from django.urls import reverse , resolve
from article.views import *
class TestUrls(SimpleTestCase):
def test_articles_url_is_resolved(self):
url = reverse('mumbles-api-articles:articles')
self.assertEquals(resolve(url).func,articles)
def test_artic... | 43.513514 | 85 | 0.731677 | 203 | 1,610 | 5.600985 | 0.192118 | 0.049252 | 0.091469 | 0.119613 | 0.675462 | 0.596306 | 0.596306 | 0.596306 | 0.596306 | 0.365875 | 0 | 0 | 0.146584 | 1,610 | 37 | 86 | 43.513514 | 0.827511 | 0 | 0 | 0 | 0 | 0 | 0.196151 | 0.174426 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2069b6134208471149d7fda8368a9b6392ddaee0 | 3,463 | py | Python | LAB03/02-S3/backend/cloudalbum/database/model_ddb.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 6 | 2019-08-21T04:13:34.000Z | 2019-10-29T07:15:39.000Z | LAB03/02-S3/backend/cloudalbum/database/model_ddb.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 89 | 2019-07-31T02:29:54.000Z | 2022-03-12T01:03:22.000Z | LAB03/02-S3/backend/cloudalbum/database/model_ddb.py | michaelrishiforrester/moving-to-serverless-renew | 27cbcbde9db3d2bc66212fe4f768563d25f64c19 | [
"MIT"
] | 4 | 2019-08-02T03:00:35.000Z | 2020-02-26T18:44:03.000Z | """
cloudalbum/database/model_ddb.py
~~~~~~~~~~~~~~~~~~~~~~~
Application data model defined here.
:description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course
:copyright: © 2019 written by Dayoungle Jun, Sungshik Jou.
:license: MIT, see LICENSE ... | 30.377193 | 114 | 0.700549 | 398 | 3,463 | 5.954774 | 0.31407 | 0.072152 | 0.131646 | 0.034177 | 0.053165 | 0.028692 | 0.028692 | 0 | 0 | 0 | 0 | 0.002884 | 0.19896 | 3,463 | 113 | 115 | 30.646018 | 0.851118 | 0.145827 | 0 | 0.068493 | 0 | 0 | 0.057679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0.027397 | 0.09589 | 0 | 0.60274 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2076de6ad30471085d375199e1626b4beaacd4a9 | 631 | py | Python | links/views.py | RuijiaX/w3hacks | 79e1eb81836b766737e8f053a26495ec2c6fd963 | [
"MIT"
] | 1 | 2020-08-30T04:49:20.000Z | 2020-08-30T04:49:20.000Z | links/views.py | RuijiaX/w3hacks | 79e1eb81836b766737e8f053a26495ec2c6fd963 | [
"MIT"
] | 44 | 2020-06-21T03:10:35.000Z | 2020-08-08T23:55:19.000Z | links/views.py | RuijiaX/w3hacks | 79e1eb81836b766737e8f053a26495ec2c6fd963 | [
"MIT"
] | 2 | 2020-07-01T16:54:58.000Z | 2020-07-13T21:13:06.000Z | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from app.models import ResourceLink
def index(request):
links = ResourceLink.objects.all()
return render(request, "links/index.html", context={
"links": links
})
def link(request, url_extension):
# L... | 31.55 | 77 | 0.732171 | 74 | 631 | 6.148649 | 0.445946 | 0.131868 | 0.065934 | 0.105495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175911 | 631 | 19 | 78 | 33.210526 | 0.875 | 0.047544 | 0 | 0 | 0 | 0 | 0.075251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2078ca1fffbce8a3879013696fac9f923bee5ab5 | 401 | py | Python | app/main.py | lauralex/DSBD_csv_gen | 78e4115f5209d9735444df53868fa87d56e31821 | [
"MIT"
] | null | null | null | app/main.py | lauralex/DSBD_csv_gen | 78e4115f5209d9735444df53868fa87d56e31821 | [
"MIT"
] | null | null | null | app/main.py | lauralex/DSBD_csv_gen | 78e4115f5209d9735444df53868fa87d56e31821 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from app.kafka import consumers, producers
from app.utils.advanced_scheduler import init_scheduler
app = FastAPI()
@app.on_event("startup")
def run_consumers_producers():
init_scheduler()
consumers.init_consumers()
producers.init_producers()
@app.on_event("shutdown")
def cl... | 20.05 | 55 | 0.770574 | 49 | 401 | 6.061224 | 0.367347 | 0.242424 | 0.06734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13217 | 401 | 19 | 56 | 21.105263 | 0.853448 | 0 | 0 | 0 | 0 | 0 | 0.037406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20798065c5f3a5c8112ffcfea1c69a24192a4ce4 | 719 | py | Python | data processing/deleteJudge.py | xiameng552180/SeqDynamics_V0 | 9a8e2f54aa09d56e74f5bb649e3e05a18a508d77 | [
"MIT"
] | null | null | null | data processing/deleteJudge.py | xiameng552180/SeqDynamics_V0 | 9a8e2f54aa09d56e74f5bb649e3e05a18a508d77 | [
"MIT"
] | null | null | null | data processing/deleteJudge.py | xiameng552180/SeqDynamics_V0 | 9a8e2f54aa09d56e74f5bb649e3e05a18a508d77 | [
"MIT"
] | null | null | null | import MongoProcessor
connection = MongoProcessor.Processor()
collection = connection.loadCollections('mega_authors')
collection2 = connection.loadCollections('sequences')
"""
collection.delete_many({"author":{"$regex": "judge"}})
collection.delete_many({"author":{"$regex": "nlgx"}})
"""
"""
collection2.delete_many({... | 29.958333 | 55 | 0.668985 | 80 | 719 | 5.925 | 0.4375 | 0.139241 | 0.135021 | 0.177215 | 0.405063 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.116829 | 719 | 24 | 56 | 29.958333 | 0.738583 | 0.015299 | 0 | 0 | 0 | 0 | 0.128692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
207a4022305f3fdeff75e177382916ced55dd295 | 619 | py | Python | profiles/migrations/0031_populate_mail_id.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | profiles/migrations/0031_populate_mail_id.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | profiles/migrations/0031_populate_mail_id.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-06 20:14
from __future__ import unicode_literals
import uuid
from django.db import migrations, models
def gen_uuid(apps, schema_editor):
"""Generate unique UUID values"""
Profile = apps.get_model('profiles', 'Profile')
for profile in Profil... | 22.925926 | 79 | 0.676898 | 77 | 619 | 5.25974 | 0.701299 | 0.034568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0.201939 | 619 | 26 | 80 | 23.807692 | 0.775304 | 0.156704 | 0 | 0 | 1 | 0 | 0.081553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
207fd8e996678378b527c96ecde7072322fcee9c | 2,143 | py | Python | goalboost/blueprints/auth/__init__.py | JohnLockwood/Goalboost | 1556a15f766ab762243e5d198b00ee7239b20411 | [
"RSA-MD"
] | null | null | null | goalboost/blueprints/auth/__init__.py | JohnLockwood/Goalboost | 1556a15f766ab762243e5d198b00ee7239b20411 | [
"RSA-MD"
] | 10 | 2021-07-30T14:39:05.000Z | 2021-07-30T14:39:07.000Z | goalboost/blueprints/auth/__init__.py | JohnLockwood/Goalboost | 1556a15f766ab762243e5d198b00ee7239b20411 | [
"RSA-MD"
] | null | null | null | from flask.ext.login import LoginManager
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, SignatureExpired, BadSignature
from goalboost.model.auth_models import Role, User
from flask.ext.security import Security, MongoEngineUserDatastore
from flask.ext.principal import Principal, Permission, Role... | 35.131148 | 105 | 0.742417 | 283 | 2,143 | 5.491166 | 0.385159 | 0.046332 | 0.023166 | 0.045045 | 0.033462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170322 | 2,143 | 60 | 106 | 35.716667 | 0.874016 | 0.267382 | 0 | 0.131579 | 0 | 0 | 0.008889 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208044a5ad76d993f0a9f43f84aac24f3c55af75 | 1,260 | py | Python | venv/Lib/site-packages/eyed3/id3/apple.py | shadowstriker15/Online_Ripper | 0a78cb9d5955a9889baa57f33d5281b99707f640 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/eyed3/id3/apple.py | shadowstriker15/Online_Ripper | 0a78cb9d5955a9889baa57f33d5281b99707f640 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/eyed3/id3/apple.py | shadowstriker15/Online_Ripper | 0a78cb9d5955a9889baa57f33d5281b99707f640 | [
"MIT"
] | null | null | null | """
Here lies Apple frames, all of which are non-standard. All of these would have
been standard user text frames by anyone not being a bastard, on purpose.
"""
from .frames import Frame, TextFrame
PCST_FID = b"PCST"
WFED_FID = b"WFED"
TKWD_FID = b"TKWD"
TDES_FID = b"TDES"
TGID_FID = b"TGID"
class PCST(Frame):
"... | 24.705882 | 88 | 0.66746 | 191 | 1,260 | 4.115183 | 0.382199 | 0.025445 | 0.069975 | 0.082697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005005 | 0.207143 | 1,260 | 50 | 89 | 25.2 | 0.781782 | 0.334921 | 0 | 0 | 0 | 0 | 0.029814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20823aa54bc458b5df7bd850c6560115bfff94b4 | 37,120 | py | Python | tests/core/test_optimizers_schedulers.py | jerke123/mridc | 7e22ac50f8df73f2305d61979da2a5d59874546e | [
"Apache-2.0"
] | null | null | null | tests/core/test_optimizers_schedulers.py | jerke123/mridc | 7e22ac50f8df73f2305d61979da2a5d59874546e | [
"Apache-2.0"
] | null | null | null | tests/core/test_optimizers_schedulers.py | jerke123/mridc | 7e22ac50f8df73f2305d61979da2a5d59874546e | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
__author__ = "Dimitrios Karkalousos"
# Taken and adapted from: https://github.com/wdika/NeMo/blob/main/tests/core/test_optimizers_schedulers.py
import math
import os
import random
import shutil
from abc import ABC
import numpy as np
import omegaconf
import pytest
import pytorch_lightning as pl
impo... | 34.626866 | 119 | 0.60555 | 4,422 | 37,120 | 4.828584 | 0.081185 | 0.051002 | 0.050534 | 0.058308 | 0.712252 | 0.686118 | 0.657831 | 0.639191 | 0.628513 | 0.612683 | 0 | 0.012913 | 0.29903 | 37,120 | 1,071 | 120 | 34.659197 | 0.807686 | 0.081034 | 0 | 0.676963 | 0 | 0 | 0.038128 | 0.01013 | 0 | 0 | 0 | 0 | 0.148005 | 1 | 0.048906 | false | 0.003861 | 0.024453 | 0.002574 | 0.099099 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208291a36274dc72dca8a70215ab124dc27089c8 | 3,536 | py | Python | DatabaseServer/procserv_utils.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T23:38:53.000Z | 2020-08-20T23:38:53.000Z | DatabaseServer/procserv_utils.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | 88 | 2015-09-03T11:50:41.000Z | 2021-02-18T19:13:04.000Z | DatabaseServer/procserv_utils.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T23:38:05.000Z | 2020-08-20T23:38:05.000Z | from __future__ import print_function, absolute_import, division, unicode_literals
# This file is part of the ISIS IBEX application.
# Copyright (C) 2012-2016 Science & Technology Facilities Council.
# All rights reserved.
#
# This program is distributed in the hope that it will be useful.
# This program and the accomp... | 36.833333 | 83 | 0.642251 | 499 | 3,536 | 4.486974 | 0.332665 | 0.037963 | 0.032157 | 0.040197 | 0.41983 | 0.38142 | 0.358196 | 0.298347 | 0.298347 | 0.298347 | 0 | 0.008988 | 0.276301 | 3,536 | 95 | 84 | 37.221053 | 0.865963 | 0.511595 | 0 | 0 | 0 | 0 | 0.073255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.5 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208443f261dc336fd4b7cbf68707b5b9bfdf1f1f | 437 | py | Python | 00_STARTUP/09_UPDATE_USER_PROFILE/orm_databases/blog/models.py | CrispenGari/python-and-django | f3135a96b40fe7bd403a4946fb90aae3c8577344 | [
"MIT"
] | null | null | null | 00_STARTUP/09_UPDATE_USER_PROFILE/orm_databases/blog/models.py | CrispenGari/python-and-django | f3135a96b40fe7bd403a4946fb90aae3c8577344 | [
"MIT"
] | null | null | null | 00_STARTUP/09_UPDATE_USER_PROFILE/orm_databases/blog/models.py | CrispenGari/python-and-django | f3135a96b40fe7bd403a4946fb90aae3c8577344 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=50, null=False)
content = models.TextField(null=False)
created_at = models.DateTimeField(default=timezone.now)
... | 33.615385 | 60 | 0.748284 | 60 | 437 | 5.333333 | 0.633333 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00542 | 0.155606 | 437 | 13 | 61 | 33.615385 | 0.861789 | 0.05492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2086d59c0e36167e245f0e8773a7a6407dbda3d8 | 6,937 | py | Python | MPLearn/experimental_design/hill_model.py | momeara/MPLearn | 2f84eb803a95c753a6c0eaec32b5b0867796acaf | [
"Apache-2.0"
] | 5 | 2020-05-26T14:49:40.000Z | 2022-02-14T20:37:20.000Z | MPLearn/experimental_design/hill_model.py | momeara/MPLearn | 2f84eb803a95c753a6c0eaec32b5b0867796acaf | [
"Apache-2.0"
] | null | null | null | MPLearn/experimental_design/hill_model.py | momeara/MPLearn | 2f84eb803a95c753a6c0eaec32b5b0867796acaf | [
"Apache-2.0"
] | 3 | 2020-05-21T18:24:05.000Z | 2022-02-14T20:37:21.000Z | # -*- tab-width:4;indent-tabs-mode:nil;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
# vi: set ts=4 noet:
import math
from contextlib import ExitStack
# pytorch libraries
import torch
from torch.distributions import constraints
from torch import nn
ggg# pyro libraries
import pyro
import pyro.distributions as... | 43.086957 | 97 | 0.638605 | 812 | 6,937 | 5.251232 | 0.194581 | 0.074812 | 0.055816 | 0.059334 | 0.32364 | 0.270638 | 0.217402 | 0.166276 | 0.155722 | 0.070356 | 0 | 0.012242 | 0.24636 | 6,937 | 160 | 98 | 43.35625 | 0.803366 | 0.070492 | 0 | 0.032258 | 0 | 0 | 0.051585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08871 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20897adb1a3ec64e3087b64eb2de3385a924c7f2 | 1,116 | py | Python | usaspending_api/references/constants.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | usaspending_api/references/constants.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | usaspending_api/references/constants.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | TOTAL_BUDGET_AUTHORITY = 8361447130497.72
TOTAL_OBLIGATIONS_INCURRED = 4690484214947.31
WEBSITE_AWARD_BINS = {
"<1M": {"lower": None, "upper": 1000000},
"1M..25M": {"lower": 1000000, "upper": 25000000},
"25M..100M": {"lower": 25000000, "upper": 100000000},
"100M..500M": {"lower": 100000000, "upper": 500... | 38.482759 | 117 | 0.62724 | 144 | 1,116 | 4.701389 | 0.555556 | 0.057607 | 0.070901 | 0.044313 | 0.132939 | 0.132939 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0.175627 | 1,116 | 28 | 118 | 39.857143 | 0.51087 | 0.257168 | 0 | 0 | 0 | 0 | 0.217762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208b23cf8260b33a30cbd33a521c2a8920fb10e0 | 1,618 | py | Python | basic_python/encapsulation.py | ravic499/blog-tips | e89ffb2437e8d3af81886ff4a40df4a827bc6b2b | [
"MIT"
] | null | null | null | basic_python/encapsulation.py | ravic499/blog-tips | e89ffb2437e8d3af81886ff4a40df4a827bc6b2b | [
"MIT"
] | 1 | 2019-07-21T09:41:17.000Z | 2019-07-21T09:41:17.000Z | basic_python/encapsulation.py | ravic499/blog-tips-python | e89ffb2437e8d3af81886ff4a40df4a827bc6b2b | [
"MIT"
] | null | null | null | """Module to explain Encapsulation in Python
"""
class SeeMe():
"""Class grouping the public, private varaibles and methods
"""
def __init__(self):
"""Constructor
"""
self.see_me = 'See Me' # public variable
self._still_see_me = 'Still See Me !' # private varaible
self.__cant_see_me = 'C... | 17.586957 | 72 | 0.637824 | 221 | 1,618 | 4.361991 | 0.266968 | 0.103734 | 0.074689 | 0.046681 | 0.246888 | 0.192946 | 0.10166 | 0.10166 | 0.10166 | 0 | 0 | 0.013061 | 0.242892 | 1,618 | 91 | 73 | 17.78022 | 0.773878 | 0.059333 | 0 | 0.111111 | 0 | 0 | 0.095395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208c06ed5bb357f87ddf6aaa3a380beacba30135 | 14,718 | py | Python | modules/batt_health/tools/auto_test/auto_test.py | namagi/android_device_motorola_qcom-common | 2114ad2edd693c4873e8a2897ea84864395a4c43 | [
"FTL"
] | 1 | 2015-04-20T19:08:15.000Z | 2015-04-20T19:08:15.000Z | modules/batt_health/tools/auto_test/auto_test.py | namagi/android_device_motorola_qcom-common | 2114ad2edd693c4873e8a2897ea84864395a4c43 | [
"FTL"
] | null | null | null | modules/batt_health/tools/auto_test/auto_test.py | namagi/android_device_motorola_qcom-common | 2114ad2edd693c4873e8a2897ea84864395a4c43 | [
"FTL"
] | 11 | 2017-01-14T22:29:16.000Z | 2019-02-12T22:17:20.000Z | import os
import struct
import time
import random
import traceback
import re
state = dict()
nvm_state = dict()
def adb_command(sub_cmd):
rsp =''
cmd = 'adb ' + sub_cmd
res = os.popen(cmd, "r")
while 1:
line = res.readline()
if not line: break
rsp += line
return rsp
def adb... | 31.448718 | 122 | 0.609186 | 2,079 | 14,718 | 3.989418 | 0.102934 | 0.073427 | 0.043887 | 0.030142 | 0.612853 | 0.5211 | 0.429829 | 0.366168 | 0.309139 | 0.270436 | 0 | 0.033107 | 0.248879 | 14,718 | 467 | 123 | 31.51606 | 0.717142 | 0.003873 | 0 | 0.389175 | 0 | 0.002577 | 0.271692 | 0.023874 | 0.002577 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015464 | null | null | 0.193299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208c6237c4f647ae0ddaf44b0fe5cf8a2f7a70fa | 5,577 | py | Python | plot/plot_results_tests.py | biomac-lab/COVID_schools_dashboard | 173d1b9df5735e65ec0bf2594cf942ccbbad9f5e | [
"Apache-2.0"
] | null | null | null | plot/plot_results_tests.py | biomac-lab/COVID_schools_dashboard | 173d1b9df5735e65ec0bf2594cf942ccbbad9f5e | [
"Apache-2.0"
] | null | null | null | plot/plot_results_tests.py | biomac-lab/COVID_schools_dashboard | 173d1b9df5735e65ec0bf2594cf942ccbbad9f5e | [
"Apache-2.0"
] | 2 | 2021-09-25T15:37:45.000Z | 2021-10-01T17:48:28.000Z | import sys
sys.path.append('../')
from matplotlib import figure
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import os
from tqdm import tqdm
from models import model
### Config folders
config_data = pd.read_csv('config.csv', sep=',', header=None, index_col=0)
figures_path = config_data.l... | 40.122302 | 153 | 0.65806 | 821 | 5,577 | 4.19732 | 0.227771 | 0.03047 | 0.020894 | 0.019733 | 0.683111 | 0.673825 | 0.658154 | 0.658154 | 0.658154 | 0.623331 | 0 | 0.028009 | 0.161377 | 5,577 | 138 | 154 | 40.413043 | 0.708788 | 0.08284 | 0 | 0.461538 | 0 | 0 | 0.189503 | 0.031649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.098901 | 0 | 0.120879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
208e219d67230e79d4013f2ce12aec126af6a7b8 | 973 | py | Python | choi/object_search/webcam_train.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | 2 | 2017-11-01T12:46:06.000Z | 2017-12-02T04:01:25.000Z | choi/object_search/webcam_train.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | null | null | null | choi/object_search/webcam_train.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | null | null | null | """
webcam_train
Developer: HeeJun Choi, DoYoung Han
Version: 0.1.0
Release Date: 2017-09-30
"""
import numpy as np
import cv2
import tensorflow as tf
import sys
from kwin import *
import time
import webcam
import dataset
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
#######################################... | 19.857143 | 72 | 0.594039 | 127 | 973 | 4.377953 | 0.598425 | 0.143885 | 0.086331 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.158273 | 973 | 48 | 73 | 20.270833 | 0.663004 | 0.09147 | 0 | 0 | 0 | 0 | 0.204986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
208efc1d2114737f558b9e80155f9e474ef02448 | 498 | py | Python | posts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | posts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | posts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib import admin
# Register your models here.
from .models import Post, Link
User = get_user_model()
class LinkInline(admin.StackedInline):
model = Link
extra = 0
# readonly_fields = ['url',]
fields = ['url']
class PostAdmin(admin.ModelA... | 23.714286 | 46 | 0.702811 | 61 | 498 | 5.590164 | 0.57377 | 0.058651 | 0.099707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.178715 | 498 | 21 | 47 | 23.714286 | 0.831296 | 0.106426 | 0 | 0 | 0 | 0 | 0.065463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
20910fe85309d8da9cb7991643eddfd5f8a719f3 | 1,191 | py | Python | gigbackend/about/migrations/0002_auto_20201225_1328.py | sourabhmandal/goofygig | c2194dd82c65d40372bbb32a750382929dca022c | [
"MIT"
] | null | null | null | gigbackend/about/migrations/0002_auto_20201225_1328.py | sourabhmandal/goofygig | c2194dd82c65d40372bbb32a750382929dca022c | [
"MIT"
] | null | null | null | gigbackend/about/migrations/0002_auto_20201225_1328.py | sourabhmandal/goofygig | c2194dd82c65d40372bbb32a750382929dca022c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-25 07:58
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('about', '0001_initial'),
]
operations = [
migrations.AddField(
... | 44.111111 | 447 | 0.687657 | 136 | 1,191 | 5.933824 | 0.411765 | 0.122677 | 0.126394 | 0.063197 | 0.391574 | 0.232962 | 0.232962 | 0.232962 | 0.101611 | 0 | 0 | 0.025126 | 0.164568 | 1,191 | 26 | 448 | 45.807692 | 0.78593 | 0.037783 | 0 | 0.2 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20972861a81c74d1721b63ff8b061a2f7ac473d8 | 10,045 | py | Python | graph_generation/attribute_generator.py | googleinterns/data-dependency-graph-analysis | 5629f2e4cc3fd71c8976483b0c2b4bdbcc2a7643 | [
"Apache-2.0"
] | 4 | 2020-10-03T01:41:19.000Z | 2021-01-21T16:28:16.000Z | graph_generation/attribute_generator.py | googleinterns/data-dependency-graph-analysis | 5629f2e4cc3fd71c8976483b0c2b4bdbcc2a7643 | [
"Apache-2.0"
] | 24 | 2020-08-06T16:01:14.000Z | 2020-10-10T23:02:23.000Z | graph_generation/attribute_generator.py | googleinterns/data-dependency-graph-analysis | 5629f2e4cc3fd71c8976483b0c2b4bdbcc2a7643 | [
"Apache-2.0"
] | null | null | null | """
This module implements methods for generating random attributes from nodes in a graph based on distribution and range.
Method generate() will create all the necessary attributes for the graph:
Collection: name.
Dataset collection: name.
System collection: name.
System: system criticality, environme... | 52.591623 | 123 | 0.704231 | 1,095 | 10,045 | 6.130594 | 0.128767 | 0.046477 | 0.009832 | 0.016386 | 0.408312 | 0.285863 | 0.217637 | 0.198272 | 0.158945 | 0.140176 | 0 | 0.003576 | 0.220408 | 10,045 | 190 | 124 | 52.868421 | 0.853659 | 0.285714 | 0 | 0.084112 | 1 | 0 | 0.066361 | 0.022932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130841 | false | 0 | 0.009346 | 0 | 0.196262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
209748f114455e0cec9e440cf737caad012be881 | 1,366 | py | Python | tests/models/test_vtk_sphere_model.py | NMontanaBrown/scikit-surgeryvtk | 85921775b72f40cdf4ee606ab83531758b0345bb | [
"BSD-3-Clause"
] | 1 | 2020-10-16T13:50:36.000Z | 2020-10-16T13:50:36.000Z | tests/models/test_vtk_sphere_model.py | NMontanaBrown/scikit-surgeryvtk | 85921775b72f40cdf4ee606ab83531758b0345bb | [
"BSD-3-Clause"
] | null | null | null | tests/models/test_vtk_sphere_model.py | NMontanaBrown/scikit-surgeryvtk | 85921775b72f40cdf4ee606ab83531758b0345bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import pytest
import vtk
import six
import numpy as np
import sksurgeryvtk.widgets.vtk_overlay_window as ow
import sksurgeryvtk.models.vtk_sphere_model as sm
def test_sphere_model_invalid_because_null_points():
with pytest.raises(ValueError):
sm.VTKSphereM... | 25.773585 | 65 | 0.735725 | 198 | 1,366 | 4.752525 | 0.282828 | 0.093518 | 0.096706 | 0.1339 | 0.545165 | 0.536663 | 0.415515 | 0.311371 | 0.137088 | 0.137088 | 0 | 0.022453 | 0.152269 | 1,366 | 52 | 66 | 26.269231 | 0.790155 | 0.039531 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.193548 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
209a25e6ecc0518734636cc458dfdddf8c14949a | 3,446 | py | Python | Signatures/train_classifier.py | angelos-c/OCR-with-Neural-Networks-and-Support-Vector-Machines | 4d35d00bebfb7596fc26245818846b1e090b6a17 | [
"Apache-2.0"
] | null | null | null | Signatures/train_classifier.py | angelos-c/OCR-with-Neural-Networks-and-Support-Vector-Machines | 4d35d00bebfb7596fc26245818846b1e090b6a17 | [
"Apache-2.0"
] | null | null | null | Signatures/train_classifier.py | angelos-c/OCR-with-Neural-Networks-and-Support-Vector-Machines | 4d35d00bebfb7596fc26245818846b1e090b6a17 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
import itertools
import operator
import random
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from skimage.feature import hog
from skimage import color, exposure
from scipy.misc import imread,imsave,imresize
import numpy.random as nprnd
from sklearn.svm import SVC
from sklearn ... | 36.659574 | 175 | 0.677017 | 464 | 3,446 | 4.898707 | 0.243534 | 0.043555 | 0.051474 | 0.055433 | 0.454465 | 0.407391 | 0.33436 | 0.33436 | 0.33436 | 0.269688 | 0 | 0.019331 | 0.219385 | 3,446 | 94 | 176 | 36.659574 | 0.825651 | 0.084446 | 0 | 0.230769 | 0 | 0 | 0.131997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.246154 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
209febd62752aa243a2cb21e8fd792c9790165d9 | 1,473 | py | Python | plugins/custom_operators.py | FrankSchleyCBA/docker-airflow | 44101beb0aab8896c31e0763906419ac251d4578 | [
"Apache-2.0"
] | null | null | null | plugins/custom_operators.py | FrankSchleyCBA/docker-airflow | 44101beb0aab8896c31e0763906419ac251d4578 | [
"Apache-2.0"
] | null | null | null | plugins/custom_operators.py | FrankSchleyCBA/docker-airflow | 44101beb0aab8896c31e0763906419ac251d4578 | [
"Apache-2.0"
] | null | null | null | import logging
from airflow.models import BaseOperator
from airflow.operators.sensors import BaseSensorOperator
from airflow.plugins_manager import AirflowPlugin
from airflow.utils.decorators import apply_defaults
log = logging.getLogger(__name__)
#Test comment
class CustomOperator(BaseOperator):
@apply_defaults... | 33.477273 | 101 | 0.698574 | 178 | 1,473 | 5.573034 | 0.455056 | 0.078629 | 0.050403 | 0.056452 | 0.197581 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.212492 | 1,473 | 43 | 102 | 34.255814 | 0.851724 | 0.133741 | 0 | 0.071429 | 0 | 0 | 0.130962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.178571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
20a19dea4b132ba63614a757e8b1bc9dbf64200f | 11,747 | py | Python | pilight2mqtt/core.py | mcdeck/pilight2mqtt | 5a69ed72387eabbb6322466808748a57db3ab435 | [
"MIT"
] | 6 | 2017-11-25T13:38:35.000Z | 2021-01-04T13:09:08.000Z | pilight2mqtt/core.py | mcdeck/pilight2mqtt | 5a69ed72387eabbb6322466808748a57db3ab435 | [
"MIT"
] | 3 | 2016-10-23T09:02:27.000Z | 2019-08-02T11:10:56.000Z | pilight2mqtt/core.py | mcdeck/pilight2mqtt | 5a69ed72387eabbb6322466808748a57db3ab435 | [
"MIT"
] | 6 | 2016-10-20T09:58:12.000Z | 2019-03-24T07:53:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
core module of pilight2mqtt
"""
from __future__ import print_function
import socket
import sys
import re
import json
import signal
import logging
import paho.mqtt.client as mqtt
from pilight2mqtt.discover import discover
__all__ = ['Pilight2MQTT', 'PilightServer'... | 34.347953 | 78 | 0.555206 | 1,304 | 11,747 | 4.804448 | 0.222393 | 0.034637 | 0.034477 | 0.014046 | 0.160894 | 0.076935 | 0.069274 | 0.044374 | 0.038308 | 0.038308 | 0 | 0.007685 | 0.335405 | 11,747 | 341 | 79 | 34.44868 | 0.794671 | 0.040351 | 0 | 0.152941 | 0 | 0 | 0.106993 | 0.006455 | 0 | 0 | 0 | 0 | 0.007843 | 0 | null | null | 0.019608 | 0.035294 | null | null | 0.003922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20a3f48f22a56b30c7ff73434cd799a72ba8cff5 | 1,061 | py | Python | SparkAutoML/utils/models_dict_file.py | brainalysis/sparkify | 2611531afa6705bc3b09fda6b3e2ff5feaedceab | [
"MIT"
] | null | null | null | SparkAutoML/utils/models_dict_file.py | brainalysis/sparkify | 2611531afa6705bc3b09fda6b3e2ff5feaedceab | [
"MIT"
] | null | null | null | SparkAutoML/utils/models_dict_file.py | brainalysis/sparkify | 2611531afa6705bc3b09fda6b3e2ff5feaedceab | [
"MIT"
] | null | null | null | # make a dictionary of available models in pyspark
from pyspark.ml.classification import (
LogisticRegression,
GBTClassifier,
RandomForestClassifier,
DecisionTreeClassifier,
MultilayerPerceptronClassifier,
LinearSVC,
NaiveBayes,
FMClassifier,
)
from pyspark.ml.regression import (
L... | 22.574468 | 50 | 0.71442 | 72 | 1,061 | 10.472222 | 0.652778 | 0.029178 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196041 | 1,061 | 46 | 51 | 23.065217 | 0.883939 | 0.04524 | 0 | 0 | 0 | 0 | 0.046489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.