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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f05a88f36eb6a5ca408e8f042b27fc19940abf94 | 442 | py | Python | server/athenian/api/models/web/pull_request_event.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 9 | 2020-10-11T22:12:03.000Z | 2022-02-26T02:16:45.000Z | server/athenian/api/models/web/pull_request_event.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 246 | 2019-12-05T06:37:30.000Z | 2022-03-29T10:00:07.000Z | server/athenian/api/models/web/pull_request_event.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 5 | 2019-12-04T22:38:05.000Z | 2021-02-26T00:50:04.000Z | from athenian.api.models.web.base_model_ import Enum, Model
class PullRequestEvent(Model, metaclass=Enum):
"""PR's modelled lifecycle events."""
CREATED = "created"
COMMITTED = "committed"
REVIEW_REQUESTED = "review_requested"
REVIEWED = "reviewed"
APPROVED = "approved"
CHANGES_REQUESTED ... | 26 | 59 | 0.690045 | 44 | 442 | 6.795455 | 0.636364 | 0.100334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201357 | 442 | 16 | 60 | 27.625 | 0.847026 | 0.070136 | 0 | 0 | 0 | 0 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
f060e98babef381292ead1de50ae579632643947 | 818 | py | Python | setup.py | Goggin/djeasyroute | 67395c16480293dc530c35bdf9636d0e46c01ab6 | [
"MIT"
] | null | null | null | setup.py | Goggin/djeasyroute | 67395c16480293dc530c35bdf9636d0e46c01ab6 | [
"MIT"
] | null | null | null | setup.py | Goggin/djeasyroute | 67395c16480293dc530c35bdf9636d0e46c01ab6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
setup(name='djeasyroute',
version='0.0.3',
description='A simple class based route system for django similar to flask',
author='Ryan Goggin',
author_email='info@ryangoggin.... | 27.266667 | 82 | 0.575795 | 79 | 818 | 5.924051 | 0.78481 | 0.042735 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007005 | 0.301956 | 818 | 29 | 83 | 28.206897 | 0.812609 | 0.02445 | 0 | 0.115385 | 0 | 0 | 0.430364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f06325ca4e3265eda01bbbfa84f3a5f82fd792a3 | 596 | py | Python | event_management/events/tests/test_apps.py | shihanng/app-event-management | 07a67d8e396a1e2e243b6b77c855904b1f97839a | [
"MIT"
] | null | null | null | event_management/events/tests/test_apps.py | shihanng/app-event-management | 07a67d8e396a1e2e243b6b77c855904b1f97839a | [
"MIT"
] | null | null | null | event_management/events/tests/test_apps.py | shihanng/app-event-management | 07a67d8e396a1e2e243b6b77c855904b1f97839a | [
"MIT"
] | null | null | null | from django.apps import apps
from django.test import TestCase
from event_management.events.apps import EventsConfig
class EventsConfigTest(TestCase):
def test_apps(self):
self.assertEqual(EventsConfig.name, "event_management.events")
self.assertEqual(apps.get_app_config("events").name, "event_man... | 33.111111 | 87 | 0.719799 | 68 | 596 | 6.117647 | 0.352941 | 0.144231 | 0.201923 | 0.120192 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186242 | 596 | 17 | 88 | 35.058824 | 0.857732 | 0 | 0 | 0 | 0 | 0 | 0.166107 | 0.145973 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0691fc109e0a9c48b968348be4c55cb6c1a9aab | 2,876 | py | Python | scripts/artifacts/vaulty_info.py | Krypterry/ALEAPP | 970b2e62742603336fe791b7c02e12e1f1e77375 | [
"MIT"
] | null | null | null | scripts/artifacts/vaulty_info.py | Krypterry/ALEAPP | 970b2e62742603336fe791b7c02e12e1f1e77375 | [
"MIT"
] | null | null | null | scripts/artifacts/vaulty_info.py | Krypterry/ALEAPP | 970b2e62742603336fe791b7c02e12e1f1e77375 | [
"MIT"
] | null | null | null | import xmltodict
from hashlib import md5
import base64
import binascii
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, is_platform_windows
from scripts.parse3 import ParseProto
def get_vaulty_info(files_found, report_folder, seeker, wrap_text):
title = "Vaulty ... | 33.057471 | 92 | 0.614395 | 348 | 2,876 | 4.902299 | 0.304598 | 0.041032 | 0.049238 | 0.041032 | 0.206917 | 0.206917 | 0.206917 | 0.15592 | 0.126612 | 0.126612 | 0 | 0.016455 | 0.260431 | 2,876 | 86 | 93 | 33.44186 | 0.785614 | 0.024339 | 0 | 0.084746 | 0 | 0 | 0.120443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0.135593 | 0.118644 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f06c7b18351c585541a2ca8bbbd25038904ac277 | 275 | py | Python | db/data/submission_files/hello.py | Xyene/Markus | c99d1a793101ccb5b24b9e6d3104bba73b06df35 | [
"MIT"
] | 149 | 2015-01-03T08:27:59.000Z | 2022-03-24T20:11:33.000Z | db/data/submission_files/hello.py | Xyene/Markus | c99d1a793101ccb5b24b9e6d3104bba73b06df35 | [
"MIT"
] | 1,472 | 2015-01-02T21:01:26.000Z | 2022-03-24T16:14:31.000Z | db/data/submission_files/hello.py | Xyene/Markus | c99d1a793101ccb5b24b9e6d3104bba73b06df35 | [
"MIT"
] | 143 | 2015-01-05T22:18:17.000Z | 2022-02-24T03:11:35.000Z | class Hello(object):
""" Hello class """
def __init__(self, msg):
self.msg = msg
def print_msg(self):
""" Print a hello message. """
print "Hello " + self.msg
if (__name__ == "__main__"):
hello = Hello("Joe")
hello.print_msg()
| 18.333333 | 38 | 0.545455 | 33 | 275 | 4.121212 | 0.424242 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294545 | 275 | 14 | 39 | 19.642857 | 0.701031 | 0 | 0 | 0 | 0 | 0 | 0.075221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f079b4184af137a2de80581291bc912f1c48c303 | 1,203 | py | Python | reconnect.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 32 | 2015-01-07T01:48:05.000Z | 2022-03-02T07:07:42.000Z | reconnect.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 1 | 2015-04-13T21:00:18.000Z | 2015-04-13T21:00:18.000Z | reconnect.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 30 | 2015-01-28T09:31:29.000Z | 2022-03-07T03:08:28.000Z | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
from IPython.lib.kernel import find_connection_file
from IPython.kernel import BlockingKernelClient
import os
# <codecell>
cf = '/home/epilib/Envs/env1/.ipython/profile_default/security/kernel-c5bd6be3-7df6-4b6f-8289-4d54908e39db.json'
# <codecell>
c... | 19.095238 | 112 | 0.679135 | 157 | 1,203 | 5.101911 | 0.547771 | 0.052434 | 0.034956 | 0.072409 | 0.087391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05123 | 0.188695 | 1,203 | 62 | 113 | 19.403226 | 0.769467 | 0.243558 | 0 | 0 | 0 | 0.08 | 0.293393 | 0.221725 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f07a561d5e6df05a09f19329c9be24414dc92869 | 4,783 | py | Python | Scripts/simulation/temple/temple_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/temple/temple_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/temple/temple_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\temple\temple_tuning.py
# Compiled at: 2018-05-11 00:23:42
# Size of source mod 2**32: 5035 bytes
fr... | 97.612245 | 448 | 0.69078 | 628 | 4,783 | 5.173567 | 0.323248 | 0.055402 | 0.041551 | 0.023084 | 0.373961 | 0.342875 | 0.243767 | 0.20868 | 0.17944 | 0.117882 | 0 | 0.019699 | 0.235835 | 4,783 | 49 | 449 | 97.612245 | 0.86922 | 0.063768 | 0 | 0.190476 | 0 | 0.214286 | 0.530188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.190476 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f07e117ae6acd1cccbde62cb2498915ea862593f | 1,850 | py | Python | pyscript/sel_effect2.py | Hap-Hugh/quicksel | 10eee90b759638d5c54ba19994ae8e36e90e12b8 | [
"Apache-2.0"
] | 15 | 2020-07-07T16:32:53.000Z | 2022-03-16T14:23:23.000Z | pyscript/sel_effect2.py | Hap-Hugh/quicksel | 10eee90b759638d5c54ba19994ae8e36e90e12b8 | [
"Apache-2.0"
] | 2 | 2020-09-02T15:25:39.000Z | 2020-09-24T08:37:18.000Z | pyscript/sel_effect2.py | Hap-Hugh/quicksel | 10eee90b759638d5c54ba19994ae8e36e90e12b8 | [
"Apache-2.0"
] | 6 | 2020-08-14T22:02:07.000Z | 2021-03-31T07:08:29.000Z | '''
test=# select min(l_shipdate), max(l_shipdate) from lineitem;
min | max
------------+------------
1992-01-02 | 1998-12-01
(1 row)
'''
import psycopg2
import time
conn = psycopg2.connect("dbname=test user=postgres")
cur = conn.cursor()
cur.execute('set search_path to tpch50g')
cur.execute("set work... | 23.417722 | 76 | 0.624865 | 259 | 1,850 | 4.335907 | 0.355212 | 0.124666 | 0.138914 | 0.16919 | 0.369546 | 0.319679 | 0.142476 | 0.085485 | 0.085485 | 0.085485 | 0 | 0.039353 | 0.230811 | 1,850 | 78 | 77 | 23.717949 | 0.749824 | 0.115135 | 0 | 0.307692 | 0 | 0 | 0.397538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.076923 | 0.096154 | 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 |
f0825eae42d1aab018781c76c99ebde96030bc1a | 383 | py | Python | companies/migrations/0004_company_notes.py | Tookmund/hackerforce | d757910db1631e26e489a10a99fa67cd74292c4e | [
"Apache-2.0"
] | 11 | 2019-11-11T23:27:21.000Z | 2021-07-19T16:41:44.000Z | companies/migrations/0004_company_notes.py | Tookmund/hackerforce | d757910db1631e26e489a10a99fa67cd74292c4e | [
"Apache-2.0"
] | 11 | 2019-12-24T17:10:05.000Z | 2021-06-09T18:22:59.000Z | companies/migrations/0004_company_notes.py | hackumass/hackerforce | dfb6ac1304a7db21853765de9da795e8e9ef20bf | [
"Apache-2.0"
] | 7 | 2019-11-21T03:32:06.000Z | 2021-07-18T15:30:29.000Z | # Generated by Django 2.1.4 on 2019-06-30 06:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0003_auto_20181205_2332'),
]
operations = [
migrations.AddField(
model_name='company',
name='notes',
... | 20.157895 | 49 | 0.5953 | 41 | 383 | 5.463415 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113971 | 0.289817 | 383 | 18 | 50 | 21.277778 | 0.709559 | 0.117493 | 0 | 0 | 1 | 0 | 0.130952 | 0.068452 | 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 |
b2b1cf341988655b36e8a784e5ba37b6cdf6b86e | 1,936 | py | Python | gui/ui_generated/ui_dialogwindow.py | Owycool/cupat | 285dc43f0071ba4769032f78d07492f78ebcaf69 | [
"MIT"
] | null | null | null | gui/ui_generated/ui_dialogwindow.py | Owycool/cupat | 285dc43f0071ba4769032f78d07492f78ebcaf69 | [
"MIT"
] | 9 | 2020-08-03T20:44:01.000Z | 2020-09-04T20:39:51.000Z | gui/ui_generated/ui_dialogwindow.py | iccet/cupat | 285dc43f0071ba4769032f78d07492f78ebcaf69 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Code\Python\cupat\static\ui\dialogwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doi... | 39.510204 | 106 | 0.712293 | 202 | 1,936 | 6.821782 | 0.49505 | 0.066038 | 0.036284 | 0.044993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011465 | 0.18905 | 1,936 | 48 | 107 | 40.333333 | 0.866242 | 0.159091 | 0 | 0 | 1 | 0 | 0.020988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.029412 | 0.029412 | 0 | 0.117647 | 0 | 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 |
b2bba648a5058ae3301c92bb43bdf83fd3889bec | 625 | py | Python | dps-api/dps_api/blueprints/dentist.py | mrendi29/dental-patient-schedule | d5e2777d135d7379d1941cd911b71fe2be2fc759 | [
"BSD-3-Clause"
] | null | null | null | dps-api/dps_api/blueprints/dentist.py | mrendi29/dental-patient-schedule | d5e2777d135d7379d1941cd911b71fe2be2fc759 | [
"BSD-3-Clause"
] | null | null | null | dps-api/dps_api/blueprints/dentist.py | mrendi29/dental-patient-schedule | d5e2777d135d7379d1941cd911b71fe2be2fc759 | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint, jsonify
from ..model import Dentist, User
from dps_api import db, auth
bp = Blueprint("dentist", __name__, url_prefix="/dentist")
@bp.route("/hi")
@auth.login_required
def hi():
# user = User("testuser1", "test1@test.com", "123")
# db.session.add(user)
# db.session.commit()
... | 21.551724 | 88 | 0.6112 | 79 | 625 | 4.708861 | 0.506329 | 0.05914 | 0.091398 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010438 | 0.2336 | 625 | 28 | 89 | 22.321429 | 0.76618 | 0.144 | 0 | 0.111111 | 0 | 0 | 0.131827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.111111 | 0.388889 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b2cc4d87ae22a14ea924ec60cd41a3034641708b | 3,136 | py | Python | xbot/dbtables.py | xinthral/streamlabs | f1a70dc21d04e60ea3460c0b6b186e3fe8432cb7 | [
"MIT"
] | null | null | null | xbot/dbtables.py | xinthral/streamlabs | f1a70dc21d04e60ea3460c0b6b186e3fe8432cb7 | [
"MIT"
] | 1 | 2021-04-19T01:42:08.000Z | 2021-04-19T01:42:08.000Z | xbot/dbtables.py | xinthral/streamlabs | f1a70dc21d04e60ea3460c0b6b186e3fe8432cb7 | [
"MIT"
] | null | null | null | from xsql import Database
"""
Handy Suite Console Scripts to interact with the database
"""
def menu():
""" Display Menu Items """
menu = [[1, 'Display an item in more readable formats'],
[2, 'Enable / Disable an item'],
[3, 'Change category of item']]
print("User Menu:")
for _ in menu:
... | 33.010526 | 115 | 0.575255 | 379 | 3,136 | 4.670185 | 0.350923 | 0.044068 | 0.049718 | 0.025424 | 0.137288 | 0.049718 | 0 | 0 | 0 | 0 | 0 | 0.015178 | 0.264668 | 3,136 | 94 | 116 | 33.361702 | 0.752385 | 0.007972 | 0 | 0.213333 | 0 | 0 | 0.193572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013333 | 0.013333 | null | null | 0.146667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2ce6e78ae51c1ffec7a9f14816eb513ee0e584d | 6,403 | py | Python | selene_sdk/predict/_in_silico_mutagenesis.py | taskina-alena/selene | 3d86c61346909cdae5a3a4d9559e60e0736cf6b0 | [
"BSD-3-Clause-Clear"
] | 307 | 2018-09-21T16:48:12.000Z | 2022-03-23T21:42:04.000Z | selene_sdk/predict/_in_silico_mutagenesis.py | taskina-alena/selene | 3d86c61346909cdae5a3a4d9559e60e0736cf6b0 | [
"BSD-3-Clause-Clear"
] | 104 | 2018-08-07T13:44:29.000Z | 2022-01-12T01:35:30.000Z | selene_sdk/predict/_in_silico_mutagenesis.py | taskina-alena/selene | 3d86c61346909cdae5a3a4d9559e60e0736cf6b0 | [
"BSD-3-Clause-Clear"
] | 85 | 2018-10-20T08:06:31.000Z | 2022-03-29T15:17:30.000Z | import itertools
import numpy as np
from ..sequences import Genome
def in_silico_mutagenesis_sequences(sequence,
mutate_n_bases=1,
reference_sequence=Genome,
start_position=0,
... | 37.444444 | 89 | 0.615805 | 782 | 6,403 | 4.929668 | 0.23913 | 0.045655 | 0.024903 | 0.012451 | 0.307652 | 0.239689 | 0.197406 | 0.114656 | 0.099092 | 0.073671 | 0 | 0.007207 | 0.306575 | 6,403 | 170 | 90 | 37.664706 | 0.861036 | 0.428081 | 0 | 0.059701 | 0 | 0 | 0.193733 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b2cf6c2637b2fbc28983adcf5ea1eead0ff15511 | 1,155 | py | Python | ch11/ch11-3-web-wenzi.py | programming-book-practice/Web-Scraping-with-Python | bab8498ff9cfad923a10087053c3eda4996211ea | [
"MIT"
] | 2 | 2019-11-15T00:33:00.000Z | 2019-12-17T10:39:29.000Z | ch11/ch11-3-web-wenzi.py | programming-book-practice/Web-Scraping-with-Python | bab8498ff9cfad923a10087053c3eda4996211ea | [
"MIT"
] | null | null | null | ch11/ch11-3-web-wenzi.py | programming-book-practice/Web-Scraping-with-Python | bab8498ff9cfad923a10087053c3eda4996211ea | [
"MIT"
] | 1 | 2020-10-22T01:50:40.000Z | 2020-10-22T01:50:40.000Z | import time
from urllib.request import urlretrieve
import subprocess
from selenium import webdriver
# 创建新的Selenium driver
driver = webdriver.PhantomJS(executable_path='<Path to Phantom JS>')
# 有时我发现PhantomJS查找元素有问题,但是Firefox没有。
# 如果你运行程序的时候出现问题,去掉下面这行注释,
# 用Selenium试试Firefox浏览器:
# driver = webdriver.Firefox()
driver.ge... | 30.394737 | 74 | 0.780952 | 147 | 1,155 | 6.034014 | 0.598639 | 0.045096 | 0.057497 | 0.064262 | 0.127396 | 0.10372 | 0 | 0 | 0 | 0 | 0 | 0.012161 | 0.074459 | 1,155 | 37 | 75 | 31.216216 | 0.817587 | 0.197403 | 0 | 0.074074 | 0 | 0.037037 | 0.258734 | 0.090611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2d617e07fe4b39c7c361491dcde37798efe80e0 | 534 | py | Python | parfive/__init__.py | nabobalis/parfive | a19dc00412d4c20f7da7818636b9aec9078b0a1b | [
"MIT"
] | 26 | 2018-10-08T19:46:11.000Z | 2022-03-03T17:38:16.000Z | parfive/__init__.py | nabobalis/parfive | a19dc00412d4c20f7da7818636b9aec9078b0a1b | [
"MIT"
] | 67 | 2018-06-19T14:23:49.000Z | 2022-02-08T10:41:43.000Z | parfive/__init__.py | nabobalis/parfive | a19dc00412d4c20f7da7818636b9aec9078b0a1b | [
"MIT"
] | 15 | 2019-03-12T16:02:22.000Z | 2022-01-18T17:50:14.000Z |
"""
*******
parfive
*******
A parallel file downloader using asyncio.
* Documentation: https://parfive.readthedocs.io/en/stable/
* Source code: https://github.com/Cadair/parfive
"""
import logging as _logging
from .downloader import Downloader
from .results import Results
__all__ = ['Downloader', 'Results', 'log',... | 20.538462 | 58 | 0.720974 | 60 | 534 | 6.1 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142322 | 534 | 25 | 59 | 21.36 | 0.799127 | 0.327715 | 0 | 0 | 0 | 0 | 0.254286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2dd39897f6be0220fa3527a2f808da09ed27ae0 | 424 | py | Python | cohdigo/aula04.py | joamho-luiz/notas-python | 13ea9bb54e36f568efab38fb316c47e5571419cd | [
"MIT"
] | null | null | null | cohdigo/aula04.py | joamho-luiz/notas-python | 13ea9bb54e36f568efab38fb316c47e5571419cd | [
"MIT"
] | null | null | null | cohdigo/aula04.py | joamho-luiz/notas-python | 13ea9bb54e36f568efab38fb316c47e5571419cd | [
"MIT"
] | null | null | null | # DESAFIO 1
'''nome = input('Qual o seu nome?')
print('Olá', nome, '! Sejá bem-vinde!')'''
# DESAFIO 2
'''dia = input('Dia: ')
mes = input('Mês: ')
ano = input('Ano: ')
print('Você nasceu no dia:' , dia , 'de' , mes , 'de' , ano , '. Certo?')'''
# DESAFIO 3
''' Precisa especificar tipo primitivo.
num1 = input('1º ... | 20.190476 | 76 | 0.551887 | 57 | 424 | 4.105263 | 0.578947 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032738 | 0.207547 | 424 | 20 | 77 | 21.2 | 0.66369 | 0.242925 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2e01b40d77298eb56ac9cb5ef3e1fe29006405e | 3,206 | py | Python | android/retranslator.py | vacxe/Retranslator | 24c54e71426749e30d2102dee904b1d13781e77e | [
"MIT"
] | 61 | 2018-05-16T17:55:03.000Z | 2018-08-07T14:19:09.000Z | android/retranslator.py | marcoscgdev/Retranslator | da08878847d89c15cac15555d6a21a7b6a72ad8e | [
"MIT"
] | 5 | 2018-05-18T04:13:44.000Z | 2018-05-30T05:39:34.000Z | android/retranslator.py | Vacxe/Retranslator | 24c54e71426749e30d2102dee904b1d13781e77e | [
"MIT"
] | 4 | 2018-05-16T18:38:40.000Z | 2018-05-28T15:37:55.000Z | import sys
import os
from xml.etree import ElementTree
from requests.utils import quote
import requests
import json
import io
import re
supportedLocales = ['ru', 'es', 'de', 'zh', 'cz', 'nl', 'fr',
'it', 'ja', 'ko', 'pl', 'ar', 'bg', 'ca',
'hr', 'da', 'fi', 'el', 'iw', 'hi', 'hu... | 29.145455 | 108 | 0.607299 | 346 | 3,206 | 5.601156 | 0.447977 | 0.012384 | 0.017028 | 0.014448 | 0.125903 | 0.103199 | 0.103199 | 0.070175 | 0.070175 | 0.070175 | 0 | 0.004562 | 0.247973 | 3,206 | 109 | 109 | 29.412844 | 0.799253 | 0 | 0 | 0.128205 | 0 | 0.012821 | 0.171241 | 0.014972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.102564 | 0 | 0.179487 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2e05112879c7d947c29438fac233fb419416bde | 17,763 | py | Python | ucscsdk/mometa/storage/StorageScsiLun.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 9 | 2016-12-22T08:39:25.000Z | 2019-09-10T15:36:19.000Z | ucscsdk/mometa/storage/StorageScsiLun.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 10 | 2017-01-31T06:59:56.000Z | 2021-11-09T09:14:37.000Z | ucscsdk/mometa/storage/StorageScsiLun.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 13 | 2016-11-14T07:42:58.000Z | 2022-02-10T17:32:05.000Z | """This module contains the general information for StorageScsiLun ManagedObject."""
from ...ucscmo import ManagedObject
from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta
from ...ucscmeta import VersionMeta
class StorageScsiLunConsts():
ADMIN_STATE_CLEAR_TRANSPORT_READY = "clear-transport-ready"
... | 67.030189 | 701 | 0.689242 | 1,869 | 17,763 | 6.303906 | 0.136972 | 0.052962 | 0.04787 | 0.112035 | 0.247411 | 0.218469 | 0.182482 | 0.181209 | 0.17654 | 0.169241 | 0 | 0.021267 | 0.155548 | 17,763 | 264 | 702 | 67.284091 | 0.7642 | 0.00608 | 0 | 0 | 0 | 0.016 | 0.328062 | 0.075894 | 0 | 0 | 0.001984 | 0 | 0 | 1 | 0.004 | false | 0 | 0.012 | 0 | 0.512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2e18d2c53bfdd982f79c374b4b5f296cade4b54 | 1,039 | py | Python | src/test/test_dialog.py | NoOneXXX/magic-wormhole-client | 6b8bebebdf058d66fa4e519092558e8d95090c58 | [
"MIT"
] | null | null | null | src/test/test_dialog.py | NoOneXXX/magic-wormhole-client | 6b8bebebdf058d66fa4e519092558e8d95090c58 | [
"MIT"
] | null | null | null | src/test/test_dialog.py | NoOneXXX/magic-wormhole-client | 6b8bebebdf058d66fa4e519092558e8d95090c58 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import *
import sys
class QLabelBuddy(QDialog) :
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.setWindowTitle('QLabel Example')
self.setFixedWidth(250)
nameLabel = QLabel('&Name',self)
nameLineEdit = QLineEdit(... | 27.342105 | 54 | 0.647738 | 104 | 1,039 | 6.307692 | 0.432692 | 0.17378 | 0.060976 | 0.039634 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.233879 | 1,039 | 38 | 55 | 27.342105 | 0.798995 | 0 | 0 | 0 | 0 | 0 | 0.044231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.172414 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2e45f9db01b269905ab31fe87da6246ab69daa7 | 698 | py | Python | server/dockerVersion/app/main.py | ChenLi0830/Clevo-Emotion-Detection-Service | 2983963e01b92deac447b0b953adffe8e0455c29 | [
"Apache-2.0"
] | null | null | null | server/dockerVersion/app/main.py | ChenLi0830/Clevo-Emotion-Detection-Service | 2983963e01b92deac447b0b953adffe8e0455c29 | [
"Apache-2.0"
] | null | null | null | server/dockerVersion/app/main.py | ChenLi0830/Clevo-Emotion-Detection-Service | 2983963e01b92deac447b0b953adffe8e0455c29 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# encoding: utf-8
from flask import Flask
# from api import *
import os
from flask_graphql import GraphQLView
from schema import graphqlSchema
app = Flask(__name__)
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
app.add_url_rule('/graphql', view_func=GraphQLView.as_view('graph... | 24.068966 | 107 | 0.704871 | 116 | 698 | 4.051724 | 0.534483 | 0.017021 | 0.038298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0.151862 | 698 | 28 | 108 | 24.928571 | 0.763514 | 0.43553 | 0 | 0 | 0 | 0 | 0.133508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b2e53cc19e382e5940f27d1774a3c4376d12aa49 | 434 | py | Python | tests/test_fast/test_env.py | lamflam/EasyProcess | 3274e399e2cbfa93f2366a3634faa3a53595d370 | [
"BSD-2-Clause"
] | 86 | 2015-02-17T11:41:18.000Z | 2022-03-05T08:05:29.000Z | tests/test_fast/test_env.py | lamflam/EasyProcess | 3274e399e2cbfa93f2366a3634faa3a53595d370 | [
"BSD-2-Clause"
] | 18 | 2015-02-11T21:03:13.000Z | 2022-03-20T14:32:51.000Z | tests/test_fast/test_env.py | lamflam/EasyProcess | 3274e399e2cbfa93f2366a3634faa3a53595d370 | [
"BSD-2-Clause"
] | 22 | 2015-02-11T20:47:00.000Z | 2021-11-01T15:26:23.000Z | import json
import sys
from easyprocess import EasyProcess
python = sys.executable
def pass_env(e):
prog = "import os,json;print(json.dumps(dict(os.environ)))"
s = EasyProcess([python, "-c", prog], env=e).call().stdout
return json.loads(s)
def test_env():
assert len(pass_env(None)) > 0
e = pas... | 20.666667 | 63 | 0.640553 | 69 | 434 | 3.942029 | 0.463768 | 0.128676 | 0.088235 | 0.102941 | 0.147059 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.191244 | 434 | 20 | 64 | 21.7 | 0.766382 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.099078 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0.357143 | 0.285714 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2eaa6edd0d0ce55d49f3b4ac6c932c2cd97b166 | 385 | py | Python | cuqueue/migrations/0004_remove_detail_check.py | karanjakhar/Virtual-Queue | ae0a5e16dc8445db43a39f5844fa480e850a67c4 | [
"MIT"
] | 2 | 2019-07-17T14:27:59.000Z | 2019-08-26T13:48:28.000Z | cuqueue/migrations/0004_remove_detail_check.py | karanjakhar/Virtual-Queue | ae0a5e16dc8445db43a39f5844fa480e850a67c4 | [
"MIT"
] | null | null | null | cuqueue/migrations/0004_remove_detail_check.py | karanjakhar/Virtual-Queue | ae0a5e16dc8445db43a39f5844fa480e850a67c4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-01-14 21:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cuqueue', '0003_detail_check'),
]
operations = [
migrations.RemoveField(
... | 19.25 | 46 | 0.607792 | 42 | 385 | 5.380952 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071685 | 0.275325 | 385 | 19 | 47 | 20.263158 | 0.738351 | 0.171429 | 0 | 0 | 1 | 0 | 0.110759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2ef83809d073a621b5c5ee2469551e795d58da2 | 626 | py | Python | core/models.py | mrvafa/django-grpc | ae6115d287698e091ae3c31cd798f8cd2c0f76d4 | [
"MIT"
] | 2 | 2021-11-15T18:34:51.000Z | 2021-12-04T10:31:51.000Z | core/models.py | mrvafa/django-grpc | ae6115d287698e091ae3c31cd798f8cd2c0f76d4 | [
"MIT"
] | null | null | null | core/models.py | mrvafa/django-grpc | ae6115d287698e091ae3c31cd798f8cd2c0f76d4 | [
"MIT"
] | null | null | null | from django.db import models
class Tag(models.Model):
title = models.CharField(max_length=100)
body = models.TextField()
def __str__(self):
return self.title
class Post(models.Model):
title = models.CharField(max_length=100)
status = models.CharField(
choices=[('non_status', 'No s... | 25.04 | 50 | 0.603834 | 69 | 626 | 5.289855 | 0.463768 | 0.123288 | 0.087671 | 0.120548 | 0.372603 | 0.372603 | 0.235616 | 0.235616 | 0 | 0 | 0 | 0.017467 | 0.268371 | 626 | 24 | 51 | 26.083333 | 0.779476 | 0 | 0 | 0.4 | 0 | 0 | 0.097444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0.1 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2f51b385044610eb71acacac434b10964925592 | 1,162 | py | Python | sorting/radix_sort.py | dave5801/data-structures | b23b7d6e2201325fe94c6fa5d6c0a33ea53be3cc | [
"MIT"
] | null | null | null | sorting/radix_sort.py | dave5801/data-structures | b23b7d6e2201325fe94c6fa5d6c0a33ea53be3cc | [
"MIT"
] | null | null | null | sorting/radix_sort.py | dave5801/data-structures | b23b7d6e2201325fe94c6fa5d6c0a33ea53be3cc | [
"MIT"
] | null | null | null |
import operator
'''
set buckets to keys of 1-10 - they remain fixed
assign unique numbers to values of these buckes
'''
def radix_sort(lst):
limit = len(str(max(lst)))
buckets = [[] for i in range(len(lst))]
unsorted = {}
sorted_nums = []
n = 1
while n < limit:
for i in range(len(... | 18.444444 | 68 | 0.561962 | 161 | 1,162 | 3.919255 | 0.391304 | 0.042789 | 0.028526 | 0.034865 | 0.174326 | 0.129952 | 0.129952 | 0 | 0 | 0 | 0 | 0.026961 | 0.297762 | 1,162 | 62 | 69 | 18.741935 | 0.746324 | 0 | 0 | 0 | 0 | 0 | 0.028604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2f5218a3c99e28a27d5f0341365fdc5d4f41943 | 3,021 | py | Python | tests/tests_utils.py | sjktje/sjkscan | c2b933797125a323864543c95d7920cf1f396d1e | [
"BSD-2-Clause"
] | null | null | null | tests/tests_utils.py | sjktje/sjkscan | c2b933797125a323864543c95d7920cf1f396d1e | [
"BSD-2-Clause"
] | 3 | 2016-02-10T22:46:51.000Z | 2016-02-26T21:30:46.000Z | tests/tests_utils.py | sjktje/sjkscan | c2b933797125a323864543c95d7920cf1f396d1e | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import shutil
import tempfile
import unittest
from sjkscan.utils import files, move, remove, is_scan_name, version
from sjkscan.config import load_config
from sjkscan import __version__
class TestFiles(unittest.TestCase):
def setUp(self):
self.temp... | 28.233645 | 68 | 0.649454 | 416 | 3,021 | 4.456731 | 0.221154 | 0.06904 | 0.09493 | 0.037756 | 0.526969 | 0.511866 | 0.500539 | 0.487055 | 0.471413 | 0.449838 | 0 | 0.010283 | 0.227408 | 3,021 | 106 | 69 | 28.5 | 0.784062 | 0.013903 | 0 | 0.480519 | 0 | 0 | 0.048707 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 1 | 0.220779 | false | 0 | 0.090909 | 0 | 0.376623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2f94725cd2b5997ee710f17dcda8a353cfeb264 | 919 | py | Python | orders/migrations/0002_auto_20180217_1555.py | JaveBychkov/dmitriy-shop | 71856b0c9dff375e5491b001790807b3c7b01ae8 | [
"MIT"
] | null | null | null | orders/migrations/0002_auto_20180217_1555.py | JaveBychkov/dmitriy-shop | 71856b0c9dff375e5491b001790807b3c7b01ae8 | [
"MIT"
] | null | null | null | orders/migrations/0002_auto_20180217_1555.py | JaveBychkov/dmitriy-shop | 71856b0c9dff375e5491b001790807b3c7b01ae8 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-17 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='user',
),
... | 27.848485 | 110 | 0.568009 | 92 | 919 | 5.532609 | 0.5 | 0.070727 | 0.11002 | 0.141454 | 0.353635 | 0.353635 | 0 | 0 | 0 | 0 | 0 | 0.04375 | 0.303591 | 919 | 32 | 111 | 28.71875 | 0.751563 | 0.048966 | 0 | 0.423077 | 1 | 0 | 0.116972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2fd7b27818c6dab34c20676040186e9249b76ff | 2,717 | py | Python | example_programs/Stroop_congruency_balanced.py | musslick/sweetpea-py | b0d9769025022936d57d71a501c9ab5f51b4a4ef | [
"MIT"
] | 1 | 2022-03-13T10:28:08.000Z | 2022-03-13T10:28:08.000Z | example_programs/Stroop_congruency_balanced.py | musslick/sweetpea-py | b0d9769025022936d57d71a501c9ab5f51b4a4ef | [
"MIT"
] | null | null | null | example_programs/Stroop_congruency_balanced.py | musslick/sweetpea-py | b0d9769025022936d57d71a501c9ab5f51b4a4ef | [
"MIT"
] | null | null | null | # Make SweetPea visible regardless of whether it's been installed.
import sys
sys.path.append("..")
from sweetpea.primitives import factor, derived_level, within_trial, transition
from sweetpea.constraints import no_more_than_k_in_a_row
from sweetpea import fully_cross_block, synthesize_trials_non_uniform, print_exper... | 28.302083 | 88 | 0.724696 | 334 | 2,717 | 5.721557 | 0.263473 | 0.056515 | 0.020931 | 0.035583 | 0.060701 | 0.017792 | 0.017792 | 0 | 0 | 0 | 0 | 0.002602 | 0.15127 | 2,717 | 95 | 89 | 28.6 | 0.826106 | 0.083916 | 0 | 0.065217 | 0 | 0 | 0.068753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.173913 | 0.434783 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
65021cfe13f278ba8f8bd156cdd30ecf774e9f55 | 5,361 | py | Python | Reference/progs/simulation-customs.py | waynerv/data-structures-and-algorithms-in-python | fa78eca47d8f6d29382172873cd0922c09fd9c5e | [
"MIT"
] | 14 | 2019-03-27T15:46:58.000Z | 2022-02-14T08:11:10.000Z | Reference/progs/simulation-customs.py | waynerv/data-structures-and-algorithms-in-python | fa78eca47d8f6d29382172873cd0922c09fd9c5e | [
"MIT"
] | null | null | null | Reference/progs/simulation-customs.py | waynerv/data-structures-and-algorithms-in-python | fa78eca47d8f6d29382172873cd0922c09fd9c5e | [
"MIT"
] | 6 | 2019-09-11T14:42:06.000Z | 2021-08-06T07:26:52.000Z | """ 公路收费站模拟,队列和优先队列的应用
"""
from random import randint
from prioqueue import PrioQueue # , PrioQueueError
from queue_list import SQueue # , QueueUnderflow
class Simulation:
def __init__(self, duration):
self._eventq = PrioQueue()
self._time = 0
self._duration = duration
... | 27.777202 | 66 | 0.571908 | 654 | 5,361 | 4.438838 | 0.17737 | 0.038581 | 0.022735 | 0.024802 | 0.245264 | 0.181881 | 0.133655 | 0.113676 | 0.113676 | 0.081295 | 0 | 0.006394 | 0.329043 | 5,361 | 192 | 67 | 27.921875 | 0.800667 | 0.085245 | 0 | 0.19708 | 0 | 0 | 0.034527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218978 | false | 0.036496 | 0.021898 | 0.065693 | 0.372263 | 0.043796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65029e2fc75603cac2d9a010f1ca1dbc94d135e4 | 3,673 | py | Python | routes/user.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | routes/user.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | routes/user.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | from fastapi import Body, APIRouter
from fastapi.encoders import jsonable_encoder
from fastapi.security import HTTPBasicCredentials
from passlib.context import CryptContext
from pydantic import BaseModel
from database.database import login_token, send_activate_mail, user_collection
from auth.jwt_handler import signJWT... | 40.362637 | 147 | 0.694528 | 425 | 3,673 | 5.875294 | 0.24 | 0.044854 | 0.053264 | 0.046055 | 0.279135 | 0.242691 | 0.173408 | 0.173408 | 0.090108 | 0.036844 | 0 | 0.011678 | 0.184046 | 3,673 | 91 | 148 | 40.362637 | 0.821488 | 0 | 0 | 0.157895 | 0 | 0 | 0.151062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.144737 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65055f6e1380eb533272d949f91be1a56afaceeb | 881 | py | Python | torrents/migrations/0004_auto_20190222_0114.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | torrents/migrations/0004_auto_20190222_0114.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | torrents/migrations/0004_auto_20190222_0114.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | # Generated by Django 2.1.7 on 2019-02-22 01:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('torrents', '0003_auto_20190222_0029'),
]
operations = [
migrations.AddField(
model_name='torrent',
name='download_lo... | 26.69697 | 65 | 0.567537 | 80 | 881 | 6.0875 | 0.625 | 0.036961 | 0.082136 | 0.094456 | 0.110883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.309875 | 881 | 32 | 66 | 27.53125 | 0.738487 | 0.051078 | 0 | 0.307692 | 1 | 0 | 0.131894 | 0.027578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6507c4402f63169a621c42c668a89fb106643022 | 3,965 | py | Python | Preprocessing_code_for_train.py | Bonnie970/tesla | 39985bde127ac71ecc249c2a91cf48c4db27c569 | [
"Adobe-2006",
"Adobe-Glyph"
] | null | null | null | Preprocessing_code_for_train.py | Bonnie970/tesla | 39985bde127ac71ecc249c2a91cf48c4db27c569 | [
"Adobe-2006",
"Adobe-Glyph"
] | null | null | null | Preprocessing_code_for_train.py | Bonnie970/tesla | 39985bde127ac71ecc249c2a91cf48c4db27c569 | [
"Adobe-2006",
"Adobe-Glyph"
] | null | null | null | #Set your paths here
#Path to folder where you want the composited images to go
out_rgb_path = '/home/vortex/bonniehu/Adobe_data/Training_set/composed_images/'
out_fg_path = '/home/vortex/bonniehu/Adobe_data/Training_set/composed_fg/'
out_bg_path = '/home/vortex/bonniehu/Adobe_data/Training_set/composed_bg/'
out_al... | 37.761905 | 180 | 0.667087 | 617 | 3,965 | 3.969206 | 0.230146 | 0.049 | 0.0294 | 0.044916 | 0.354839 | 0.352389 | 0.323397 | 0.279706 | 0.245406 | 0.115557 | 0 | 0.036047 | 0.188398 | 3,965 | 104 | 181 | 38.125 | 0.724984 | 0.132661 | 0 | 0.054795 | 0 | 0 | 0.122249 | 0.08834 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109589 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65080da84a0d0c4149b4ac3d4ddfc9a4943ee956 | 1,979 | py | Python | ApplicationServer/descriptors/colorcorrelogram.py | paltmey/scias | 9006b85ad5a0084d7501413649e0679ba8adbe63 | [
"MIT"
] | null | null | null | ApplicationServer/descriptors/colorcorrelogram.py | paltmey/scias | 9006b85ad5a0084d7501413649e0679ba8adbe63 | [
"MIT"
] | null | null | null | ApplicationServer/descriptors/colorcorrelogram.py | paltmey/scias | 9006b85ad5a0084d7501413649e0679ba8adbe63 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module provides a color correlogram feature extraction.
@copyright: Copyright 2010 Deutsches Forschungszentrum fuer Kuenstliche
Intelligenz GmbH or its licensors, as applicable.
@license: This is free software: you can redistribute it and/or modify it ... | 39.58 | 97 | 0.707933 | 239 | 1,979 | 5.794979 | 0.531381 | 0.028881 | 0.049819 | 0.047653 | 0.040433 | 0.040433 | 0 | 0 | 0 | 0 | 0 | 0.014984 | 0.224356 | 1,979 | 49 | 98 | 40.387755 | 0.887296 | 0.642244 | 0 | 0 | 0 | 0 | 0.011785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6510ccfa9abc4084ee1dccf2f73f43af2914e0ae | 2,046 | py | Python | sdk/python/pulumi_aws/iam/group_policy_attachment.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/iam/group_policy_attachment.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/iam/group_policy_attachment.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class GroupPolicyAttachment(pulumi.CustomResource):
"""
Attaches a Managed IAM Policy to a... | 37.888889 | 101 | 0.64174 | 232 | 2,046 | 5.306034 | 0.37069 | 0.0658 | 0.071487 | 0.077985 | 0.155971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000675 | 0.276149 | 2,046 | 53 | 102 | 38.603774 | 0.83052 | 0.152493 | 0 | 0 | 1 | 0 | 0.248263 | 0.032217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 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 |
6511b04284506e874004a2d966c0b0e3900e3d2a | 215 | py | Python | exercicios/section04/25.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | exercicios/section04/25.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | exercicios/section04/25.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | # Leia um valor de áreas em acres e apresente-o convertido em m².
# A formula de conversão é: M = A * 4048.58
A = float(input("Digite um valor em acres: "))
M = A * 4048.58
print(f"O valor em acres para m² é: {M}")
| 35.833333 | 65 | 0.669767 | 44 | 215 | 3.272727 | 0.568182 | 0.145833 | 0.083333 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082353 | 0.209302 | 215 | 5 | 66 | 43 | 0.764706 | 0.488372 | 0 | 0 | 0 | 0 | 0.53271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65143ec30b29b250a2b9d695902d92d824afdcd2 | 411 | py | Python | motes/network.py | yunzhaoyu2050/lora-motes-emulator | fa481f44f355c08fb49709f8573982162e6e764e | [
"MIT"
] | 18 | 2018-06-18T10:22:31.000Z | 2022-01-17T02:48:24.000Z | motes/network.py | yunzhaoyu2050/lora-motes-emulator | fa481f44f355c08fb49709f8573982162e6e764e | [
"MIT"
] | 8 | 2019-09-26T11:19:56.000Z | 2022-01-24T13:01:57.000Z | motes/network.py | yunzhaoyu2050/lora-motes-emulator | fa481f44f355c08fb49709f8573982162e6e764e | [
"MIT"
] | 8 | 2018-08-01T09:51:05.000Z | 2021-08-19T07:51:28.000Z | import socket
class UDPClient:
def __init__(self, target, address=None, timeout=10):
self.s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.s.settimeout(timeout)
if address:
self.s.bind(address)
self.target = target
def send(self, data):
self.s.send... | 24.176471 | 65 | 0.627737 | 55 | 411 | 4.581818 | 0.509091 | 0.099206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019672 | 0.257908 | 411 | 16 | 66 | 25.6875 | 0.806557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 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 |
65189e85789fb344ec226b58a77b8dd14ce39480 | 1,806 | py | Python | searchlogger/form/migrations/0008_auto_20160531_2202.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | searchlogger/form/migrations/0008_auto_20160531_2202.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | searchlogger/form/migrations/0008_auto_20160531_2202.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-31 22:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('form', '0007_auto_20160531_2159'),
]
operations = [
migrations.AlterField(
... | 44.04878 | 236 | 0.605205 | 213 | 1,806 | 5.018779 | 0.352113 | 0.093545 | 0.116932 | 0.135641 | 0.620206 | 0.568756 | 0.568756 | 0.359214 | 0.359214 | 0.359214 | 0 | 0.06383 | 0.245293 | 1,806 | 40 | 237 | 45.15 | 0.72047 | 0.037099 | 0 | 0.424242 | 1 | 0 | 0.287442 | 0.027074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 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 |
651b733a82d787f45e481d68fa59ad837a10a3ba | 4,178 | py | Python | models/sent140/erm_log_reg.py | krishnap25/tRFA | 71e27f79394930be2a1ed200b447b5b990d36399 | [
"BSD-2-Clause"
] | null | null | null | models/sent140/erm_log_reg.py | krishnap25/tRFA | 71e27f79394930be2a1ed200b447b5b990d36399 | [
"BSD-2-Clause"
] | null | null | null | models/sent140/erm_log_reg.py | krishnap25/tRFA | 71e27f79394930be2a1ed200b447b5b990d36399 | [
"BSD-2-Clause"
] | null | null | null | from model import Model, Optimizer
import numpy as np
IMAGE_SIZE = 28
class ClientModel(Model):
def __init__(self, lr, num_classes, max_batch_size=None, seed=None, optimizer=None):
self.num_classes = num_classes
super(ClientModel, self).__init__(lr, seed, max_batch_size, optimizer=ErmOptimizer()... | 34.816667 | 112 | 0.58473 | 602 | 4,178 | 3.903654 | 0.255814 | 0.031915 | 0.012766 | 0.018723 | 0.214043 | 0.144681 | 0.125957 | 0.09617 | 0.074894 | 0.030638 | 0 | 0.025845 | 0.277645 | 4,178 | 119 | 113 | 35.109244 | 0.752816 | 0.336046 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209677 | false | 0 | 0.032258 | 0.032258 | 0.403226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
651d9278292cc0c48d72d88711349e27f52afd1e | 349 | py | Python | quadlib/test/updatertest.py | symunona/quadroscope | 8bd9591b6e8201daebc9804a9e35204a9a9eb512 | [
"MIT"
] | null | null | null | quadlib/test/updatertest.py | symunona/quadroscope | 8bd9591b6e8201daebc9804a9e35204a9a9eb512 | [
"MIT"
] | null | null | null | quadlib/test/updatertest.py | symunona/quadroscope | 8bd9591b6e8201daebc9804a9e35204a9a9eb512 | [
"MIT"
] | null | null | null | # TEST SSH
cmd = 'ssh pi@emp4 "uname -a"'
# import commands
# print commands.getstatusoutput('ssh pi@emp1 "uname -a"')
import subprocess
def subprocess_cmd(command):
process = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
proc_stdout = process.communicate()[0].strip()
return proc_stdout... | 19.388889 | 75 | 0.727794 | 46 | 349 | 5.434783 | 0.565217 | 0.04 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.151862 | 349 | 17 | 76 | 20.529412 | 0.834459 | 0.232092 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6529d008edde43ce4a5098f59220b1b92dd265a9 | 843 | py | Python | apt2sbom/piplist.py | sthagen/elear-apt2sbom | 75dd44f28be644c414da41167d096c56dcbfaa59 | [
"BSD-3-Clause"
] | 11 | 2021-12-08T19:32:56.000Z | 2022-01-31T05:02:46.000Z | apt2sbom/piplist.py | sbomtools/apt2sbom | 8e0ccaf46a91411788c3278d1188fb6b48d174d6 | [
"BSD-3-Clause"
] | 1 | 2021-12-13T09:13:56.000Z | 2021-12-20T08:40:48.000Z | apt2sbom/piplist.py | sbomtools/apt2sbom | 8e0ccaf46a91411788c3278d1188fb6b48d174d6 | [
"BSD-3-Clause"
] | 8 | 2021-12-08T19:32:58.000Z | 2022-01-31T05:02:48.000Z | #!python
# Copyright (c) 2022, Cisco Systems, Inc. and/or its affiliates.
# All rights reserved.
# See accompanying LICENSE file in apt2sbom distribution.
"""
Routines to generate lists of python modules installed.
"""
import re
import pip_api
from pip_api._call import call
# return an array of global packages.
def... | 22.184211 | 64 | 0.575326 | 104 | 843 | 4.615385 | 0.644231 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013722 | 0.308422 | 843 | 37 | 65 | 22.783784 | 0.809605 | 0.317912 | 0 | 0 | 1 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 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 |
652c63c1d934bf9fdd784760210878253d637f33 | 876 | py | Python | py/tasks/my_task.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null | py/tasks/my_task.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null | py/tasks/my_task.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null |
"""
>python my_task.py MyTask --x 23 --y 6 --lock-pid-dir "."
"""
import luigi
class RTask(luigi.Task):
x = luigi.IntParameter()
y = luigi.IntParameter(default=45)
def output(self):
return luigi.LocalTarget("abc.dat")
def run(self):
self.z = self.x * self.y
wit... | 19.909091 | 57 | 0.517123 | 105 | 876 | 4.228571 | 0.409524 | 0.153153 | 0.060811 | 0.067568 | 0.315315 | 0.256757 | 0.256757 | 0.256757 | 0.256757 | 0.256757 | 0 | 0.012111 | 0.340183 | 876 | 44 | 58 | 19.909091 | 0.756055 | 0 | 0 | 0.315789 | 0 | 0 | 0.025518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
652cd2245375b372752650e4f3bf6fff4619c3e3 | 1,585 | py | Python | resources/users.py | lennykioko/Flask-API | b53d0b5780239789fbe31d261aedabcaf2ee0d55 | [
"MIT"
] | 1 | 2018-04-15T19:35:45.000Z | 2018-04-15T19:35:45.000Z | resources/users.py | lennykioko/Flask-API | b53d0b5780239789fbe31d261aedabcaf2ee0d55 | [
"MIT"
] | null | null | null | resources/users.py | lennykioko/Flask-API | b53d0b5780239789fbe31d261aedabcaf2ee0d55 | [
"MIT"
] | null | null | null | import json
from flask import Blueprint, abort, make_response
from flask_restful import (Resource, Api, reqparse, inputs, fields,
marshal, marshal_with, url_for)
import models
user_fields = {
'username': fields.String,
'email': fields.String,
'password': fields.String
}
cla... | 32.346939 | 102 | 0.592429 | 165 | 1,585 | 5.50303 | 0.369697 | 0.079295 | 0.066079 | 0.101322 | 0.230176 | 0.230176 | 0.155286 | 0.155286 | 0 | 0 | 0 | 0.005296 | 0.285174 | 1,585 | 48 | 103 | 33.020833 | 0.796117 | 0 | 0 | 0.27907 | 0 | 0 | 0.172871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.162791 | 0.093023 | 0 | 0.209302 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6531e92d527f85f750d6b85b40c13fb5e8d17a61 | 1,158 | py | Python | src/models/double_exponential_smoothing.py | kmana1995/DE4S_Model | f0f6a1c590a29a94c95876478ab3fbf6fac8392f | [
"MIT"
] | 4 | 2020-08-10T09:30:25.000Z | 2021-06-15T03:26:01.000Z | src/models/double_exponential_smoothing.py | kmana1995/DE4S_Model | f0f6a1c590a29a94c95876478ab3fbf6fac8392f | [
"MIT"
] | null | null | null | src/models/double_exponential_smoothing.py | kmana1995/DE4S_Model | f0f6a1c590a29a94c95876478ab3fbf6fac8392f | [
"MIT"
] | 1 | 2020-08-15T18:01:09.000Z | 2020-08-15T18:01:09.000Z | def double_exponential_smoothing(series, initial_level, initial_trend,
level_smoothing, trend_smoothing):
"""
Fit the trend and level to the timeseries using double exponential smoothing
Args:
- series: series, time-series to perform double exponential smoothing on
... | 35.090909 | 93 | 0.634715 | 133 | 1,158 | 5.390977 | 0.300752 | 0.11855 | 0.181311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003681 | 0.2962 | 1,158 | 33 | 94 | 35.090909 | 0.876074 | 0.400691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6535a34f58c65aa72f5556f454c6af22753a5214 | 2,343 | py | Python | test_lunch.py | chexenia/bot-appetit | 1adaec944ad69c9f2e5196cb672bdb36994041e2 | [
"Apache-2.0"
] | null | null | null | test_lunch.py | chexenia/bot-appetit | 1adaec944ad69c9f2e5196cb672bdb36994041e2 | [
"Apache-2.0"
] | null | null | null | test_lunch.py | chexenia/bot-appetit | 1adaec944ad69c9f2e5196cb672bdb36994041e2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import datetime
import arteclunch as arl
import pickle
#from pytz.gae import pytz
import json
import urllib
import urllib2
def test_db_query(person, wday, hday):
return arl.reply_order(person, wday, hday)
def print_db():
with open(arl.MEAL_DB, 'rb') as f:
meal_db = ... | 30.038462 | 321 | 0.604353 | 316 | 2,343 | 4.31962 | 0.389241 | 0.026374 | 0.030769 | 0.024908 | 0.096703 | 0.096703 | 0.060073 | 0.060073 | 0 | 0 | 0 | 0.034311 | 0.228767 | 2,343 | 77 | 322 | 30.428571 | 0.721085 | 0.075544 | 0 | 0 | 0 | 0.017241 | 0.27121 | 0.154381 | 0 | 0 | 0 | 0 | 0.017241 | 0 | null | null | 0 | 0.12069 | null | null | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6536cffa2033bd18f8154296a75a0cfb46340f23 | 1,319 | py | Python | src/models/tune_lstm.py | d-laub/lucid | a7925c0b1f360c3ad3b4564f34f3370dd3d736c3 | [
"MIT"
] | 1 | 2021-12-10T21:54:43.000Z | 2021-12-10T21:54:43.000Z | src/models/tune_lstm.py | d-laub/lucid | a7925c0b1f360c3ad3b4564f34f3370dd3d736c3 | [
"MIT"
] | null | null | null | src/models/tune_lstm.py | d-laub/lucid | a7925c0b1f360c3ad3b4564f34f3370dd3d736c3 | [
"MIT"
] | null | null | null | import argparse
from functools import partial
import optuna
# TODO: load data
def prep_data(path):
return X_train, X_val, y_train, y_val
#
def objective_lstm(trial: optuna.Trial, data):
# suggest params
params = {}
# instantiate model
# clf = LogisticRegression(**params)
X_train, X_val, ... | 25.862745 | 97 | 0.691433 | 182 | 1,319 | 4.796703 | 0.368132 | 0.051546 | 0.097365 | 0.02291 | 0.045819 | 0.045819 | 0.045819 | 0.045819 | 0 | 0 | 0 | 0.003714 | 0.183472 | 1,319 | 51 | 98 | 25.862745 | 0.806871 | 0.155421 | 0 | 0.083333 | 0 | 0 | 0.169538 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.041667 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
653b99cf866dec32e831c85a238349da90d965c4 | 552 | py | Python | MoMMI/Modules/based.py | swissloaf/MoMMI | 32f139af695ad354d9ac67ed21b2ecf5951a1532 | [
"MIT"
] | null | null | null | MoMMI/Modules/based.py | swissloaf/MoMMI | 32f139af695ad354d9ac67ed21b2ecf5951a1532 | [
"MIT"
] | null | null | null | MoMMI/Modules/based.py | swissloaf/MoMMI | 32f139af695ad354d9ac67ed21b2ecf5951a1532 | [
"MIT"
] | null | null | null | import random
import re
from typing import Match
from discord import Message
from MoMMI import master, always_command, MChannel
@always_command("based")
async def based(channel: MChannel, _match: Match, message: Message) -> None:
if not channel.server_config("based.enabled", True):
return
match = re.s... | 27.6 | 81 | 0.672101 | 75 | 552 | 4.893333 | 0.506667 | 0.070845 | 0.087193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00907 | 0.201087 | 552 | 19 | 82 | 29.052632 | 0.823129 | 0 | 0 | 0.125 | 0 | 0 | 0.117754 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
653e071b52f5c483cb46e297fb552599f83b9179 | 252 | py | Python | Scripts/writeKandDistC.py | Neseebits/SpaceGrantMachineVision | 451244e05354abd8c866b6560b105b62c404896e | [
"MIT"
] | 1 | 2022-02-09T05:16:10.000Z | 2022-02-09T05:16:10.000Z | Scripts/writeKandDistC.py | Neseebits/SpaceGrantMachineVision | 451244e05354abd8c866b6560b105b62c404896e | [
"MIT"
] | null | null | null | Scripts/writeKandDistC.py | Neseebits/SpaceGrantMachineVision | 451244e05354abd8c866b6560b105b62c404896e | [
"MIT"
] | null | null | null | import numpy as np
from Source.cameras.cameras import writeKandDistNPZ
if __name__ == '__main__' :
lk = np.asarray([[10,0,320],[0,10,240],[0,0,1]])
ld = np.asarray([[0],[0],[0],[0]])
rk = lk
rd = ld
writeKandDistNPZ(lk, rk, ld, rd) | 28 | 52 | 0.603175 | 41 | 252 | 3.512195 | 0.512195 | 0.055556 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0.194444 | 252 | 9 | 53 | 28 | 0.615764 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
653ebbbb01f33d171b1b56f6c03a15b26c961ad2 | 567 | py | Python | my_homepage/contact_me/forms.py | beasyx0/my_homepage | 12df4fedfe3f39c03a898a229a96c431627d19bd | [
"MIT"
] | null | null | null | my_homepage/contact_me/forms.py | beasyx0/my_homepage | 12df4fedfe3f39c03a898a229a96c431627d19bd | [
"MIT"
] | null | null | null | my_homepage/contact_me/forms.py | beasyx0/my_homepage | 12df4fedfe3f39c03a898a229a96c431627d19bd | [
"MIT"
] | null | null | null | from django import forms
from my_homepage.contact_me.models import NewContact
class NewContactForm(forms.ModelForm):
'''Form to process new contacts from the homepage'''
def __init__(self, *args, **kwargs):
super(NewContactForm, self).__init__(*args, **kwargs)
for field in self.fields:
... | 31.5 | 77 | 0.664903 | 67 | 567 | 5.477612 | 0.641791 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002193 | 0.195767 | 567 | 18 | 78 | 31.5 | 0.802632 | 0.081129 | 0 | 0 | 0 | 0 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
654210c578f985cf210d48a218287570f83663fe | 1,705 | py | Python | DataCollection-Kaushal/DataCollectionCodes/Data_collection_for_India.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | DataCollection-Kaushal/DataCollectionCodes/Data_collection_for_India.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | DataCollection-Kaushal/DataCollectionCodes/Data_collection_for_India.py | UIC-InDeXLab/CovidInsights | b2fca84bd3bf205b8fc8095c81d54197078fb7b2 | [
"zlib-acknowledgement"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 09:08:00 2020
@author: kaush
"""
from selenium import webdriver
from bs4 import BeautifulSoup
import time
from datetime import datetime
import sqlite3
from selenium.webdriver.chrome.options import Options
import urllib.request
# import shutil
from selenium.webdriver.c... | 32.788462 | 127 | 0.722581 | 238 | 1,705 | 5.10084 | 0.516807 | 0.086491 | 0.108731 | 0.056837 | 0.197694 | 0.1771 | 0.10626 | 0 | 0 | 0 | 0 | 0.018942 | 0.102053 | 1,705 | 51 | 128 | 33.431373 | 0.774004 | 0.326686 | 0 | 0 | 0 | 0 | 0.185714 | 0.077551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6543177827698f3bbc422a0e6bf73571b33a3ce4 | 2,435 | py | Python | seekrtools/tests/conftest.py | seekrcentral/seekrtools | 12a771e42c857a10e1b912528a0dae1e5a6c49b8 | [
"MIT"
] | null | null | null | seekrtools/tests/conftest.py | seekrcentral/seekrtools | 12a771e42c857a10e1b912528a0dae1e5a6c49b8 | [
"MIT"
] | 1 | 2021-09-17T18:20:57.000Z | 2021-09-17T18:35:31.000Z | seekrtools/tests/conftest.py | seekrcentral/seekrtools | 12a771e42c857a10e1b912528a0dae1e5a6c49b8 | [
"MIT"
] | null | null | null | """
conftest.py
configurations for all tests
"""
import os
import pytest
import copy
import seekr2.prepare as prepare
import seekr2.tests.create_model_input as create_model_input
TEST_DIRECTORY = os.path.dirname(__file__)
@pytest.fixture(scope="session")
def host_guest_mmvt_model_input_persistent(tmpdir_factory):
... | 36.343284 | 78 | 0.746612 | 338 | 2,435 | 4.967456 | 0.245562 | 0.112567 | 0.162597 | 0.225134 | 0.700417 | 0.593806 | 0.449672 | 0.301965 | 0.214413 | 0.159619 | 0 | 0.002036 | 0.193018 | 2,435 | 66 | 79 | 36.893939 | 0.852417 | 0.182341 | 0 | 0.051282 | 0 | 0 | 0.014652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 0 | 0.333333 | 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 |
6548559e6de4126dd4ce2e54ad2b89c3cc7b50b6 | 573 | py | Python | helper.py | mhBahrami/CarND-Advanced-Lane-Lines | ee47b633a92dc7b4aaff4b6956b0a775e9dbb365 | [
"MIT"
] | null | null | null | helper.py | mhBahrami/CarND-Advanced-Lane-Lines | ee47b633a92dc7b4aaff4b6956b0a775e9dbb365 | [
"MIT"
] | null | null | null | helper.py | mhBahrami/CarND-Advanced-Lane-Lines | ee47b633a92dc7b4aaff4b6956b0a775e9dbb365 | [
"MIT"
] | null | null | null | import scipy as sp
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
import glob
def plot_image(img, title ='data', save=False, save_path = None):
"""
Plots the steering data set distribution
"""
#print(type(img))
plt.imshow(img)
plt.title(title)
... | 22.038462 | 71 | 0.612565 | 83 | 573 | 4.168675 | 0.566265 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016627 | 0.265271 | 573 | 26 | 72 | 22.038462 | 0.805226 | 0.099476 | 0 | 0.111111 | 0 | 0 | 0.055888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6549d4bf3f6acd6d68b34374721355e73ec75732 | 5,344 | py | Python | blueapps/contrib/bk_commands/management/handlers/migrate_from_djcelery_handler.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | 2 | 2021-07-28T01:48:31.000Z | 2021-11-17T11:02:26.000Z | blueapps/contrib/bk_commands/management/handlers/migrate_from_djcelery_handler.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | null | null | null | blueapps/contrib/bk_commands/management/handlers/migrate_from_djcelery_handler.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import CommandError
from django.db import models
from django.utils.translation import ugettext_lazy as _
class DjCrontabSchedule(models.Model):
minute = models.CharField(max_length=64, default="*")
hour = models.CharField(max_length=64, default="*")
day_of_week = models.Ch... | 41.426357 | 120 | 0.673653 | 612 | 5,344 | 5.601307 | 0.269608 | 0.039673 | 0.019253 | 0.035006 | 0.269545 | 0.205659 | 0.128938 | 0.108518 | 0.060677 | 0.025671 | 0 | 0.009283 | 0.193675 | 5,344 | 128 | 121 | 41.75 | 0.786261 | 0.014596 | 0 | 0.059406 | 0 | 0 | 0.128498 | 0.017514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0 | 0.029703 | 0 | 0.564356 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e8df0c76267a05b8eca8d415aea2286a081849ca | 5,290 | py | Python | ckan/new_tests/model/test_user.py | nigelbabu/ckan | bfab554772b7530fe18ceca8681c1db55386e547 | [
"Apache-2.0"
] | 12 | 2015-08-28T16:59:07.000Z | 2020-03-08T01:39:30.000Z | ckan/new_tests/model/test_user.py | nigelbabu/ckan | bfab554772b7530fe18ceca8681c1db55386e547 | [
"Apache-2.0"
] | 13 | 2019-05-02T21:01:28.000Z | 2020-10-20T23:34:48.000Z | ckan/new_tests/model/test_user.py | nigelbabu/ckan | bfab554772b7530fe18ceca8681c1db55386e547 | [
"Apache-2.0"
] | 10 | 2015-05-08T04:33:20.000Z | 2020-03-03T15:17:58.000Z | import os
import hashlib
import unittest
import nose.tools as nt
from passlib.hash import pbkdf2_sha512
import ckan.new_tests.factories as factories
import ckan.new_tests.helpers as helpers
import ckan.model as model
class TestPassword(unittest.TestCase):
@classmethod
def teardown_class(clss):
model... | 35.743243 | 76 | 0.678639 | 695 | 5,290 | 4.884892 | 0.181295 | 0.084536 | 0.079529 | 0.041237 | 0.659499 | 0.622386 | 0.562592 | 0.562592 | 0.494551 | 0.459499 | 0 | 0.021187 | 0.232703 | 5,290 | 147 | 77 | 35.986395 | 0.815225 | 0.116824 | 0 | 0.525253 | 0 | 0 | 0.041612 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0.555556 | 0.080808 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e8e3441673c07ee28442bc33a0bbad911e5b27b3 | 950 | py | Python | Demo.py | IT-BillDeng/Garbage-Classification | f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5 | [
"MIT"
] | null | null | null | Demo.py | IT-BillDeng/Garbage-Classification | f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5 | [
"MIT"
] | null | null | null | Demo.py | IT-BillDeng/Garbage-Classification | f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5 | [
"MIT"
] | null | null | null | import os
import torch as t
from utils.config import opt
from model import FasterRCNNVGG16
from trainer import FasterRCNNTrainer
from data.util import read_image
from utils.vis_tool import vis_bbox
from utils import array_tool as at
from train import train
from Test import test
# train()
# test()
fas... | 28.787879 | 78 | 0.701053 | 136 | 950 | 4.713235 | 0.389706 | 0.056162 | 0.056162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.191579 | 950 | 33 | 79 | 28.787879 | 0.826823 | 0.049474 | 0 | 0 | 0 | 0 | 0.00576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e8ed30e6276a00354e377cf8004619e88aff51af | 3,344 | py | Python | Project _ 1 -- Tutorial Site/main/views.py | AyemunHossain/Django | 0b1ed21fd6bd2906a4a1a220c029a2193658320f | [
"MIT"
] | 2 | 2020-02-14T19:23:50.000Z | 2020-04-19T08:26:38.000Z | Project _ 1 -- Tutorial Site/main/views.py | AyemunHossain/Django | 0b1ed21fd6bd2906a4a1a220c029a2193658320f | [
"MIT"
] | 42 | 2021-02-02T23:08:30.000Z | 2022-03-12T00:54:55.000Z | Project _ 1 -- Tutorial Site/main/views.py | AyemunHossain/Django | 0b1ed21fd6bd2906a4a1a220c029a2193658320f | [
"MIT"
] | 1 | 2022-03-07T08:09:41.000Z | 2022-03-07T08:09:41.000Z | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import Tutorials, TutorialSeries, TutorialCategory
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login,logout,authenticate
from django.contrib import messages
from .forms import UC_... | 29.857143 | 141 | 0.748505 | 434 | 3,344 | 5.571429 | 0.246544 | 0.02895 | 0.039289 | 0.032258 | 0.29115 | 0.229115 | 0.156328 | 0.040529 | 0 | 0 | 0 | 0.001738 | 0.139653 | 3,344 | 112 | 142 | 29.857143 | 0.838721 | 0.006878 | 0 | 0.253165 | 0 | 0 | 0.149611 | 0.022706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.050633 | 0.088608 | 0.012658 | 0.265823 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e8ed35de3c2d41d711f9c05ee260396fea1999d4 | 454 | py | Python | leetcode/p35.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | leetcode/p35.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | leetcode/p35.py | mythnc/lab | 9f69482a063e3cfce2ce8832c2ef1425658c31b9 | [
"MIT"
] | null | null | null | class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
start_i = 0
end_i = len(nums) - 1
while start_i <= end_i:
index = (start_i + end_i) // 2
if nums[index] == target:
return index
elif nums[index] > target:... | 28.375 | 64 | 0.471366 | 55 | 454 | 3.727273 | 0.381818 | 0.146341 | 0.219512 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.433921 | 454 | 15 | 65 | 30.266667 | 0.77821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8edfe16fd49b2e6e43765c62d81dbbdf9e457e6 | 2,148 | py | Python | speechmatics/models.py | DavidHowlett/speechmatics-python | 444aebe19f706621f4969942c99c3de14dd3e135 | [
"MIT"
] | null | null | null | speechmatics/models.py | DavidHowlett/speechmatics-python | 444aebe19f706621f4969942c99c3de14dd3e135 | [
"MIT"
] | null | null | null | speechmatics/models.py | DavidHowlett/speechmatics-python | 444aebe19f706621f4969942c99c3de14dd3e135 | [
"MIT"
] | null | null | null | """
Models used by speechmatics
"""
import ssl
from dataclasses import asdict, dataclass, field
from enum import Enum
def del_none(dictionary):
"""
Recursively delete from the dictionary all entries which values are None.
Args:
dictionary (dict): input dictionary
Returns:
dict: outpu... | 23.866667 | 77 | 0.66527 | 223 | 2,148 | 6.282511 | 0.524664 | 0.014989 | 0.024268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012508 | 0.255587 | 2,148 | 89 | 78 | 24.134831 | 0.863665 | 0.125698 | 0 | 0.084746 | 0 | 0 | 0.098853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.050847 | 0 | 0.728814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e8f91ec3b4c99db3c6053d7762ed63eff9c4dad7 | 321 | py | Python | tests/test_pykblib_exceptions.py | pykblib/PyKBLib | a6084c99758c1e0ad2928d867b2bdb25ca6ee2ca | [
"MIT"
] | null | null | null | tests/test_pykblib_exceptions.py | pykblib/PyKBLib | a6084c99758c1e0ad2928d867b2bdb25ca6ee2ca | [
"MIT"
] | 11 | 2019-04-04T23:18:36.000Z | 2019-05-21T15:10:29.000Z | tests/test_pykblib_exceptions.py | pykblib/PyKBLib | a6084c99758c1e0ad2928d867b2bdb25ca6ee2ca | [
"MIT"
] | null | null | null | from unittest import TestCase
from pykblib.exceptions import KBLibException
class KeybaseExceptionTest(TestCase):
def test_exception(self):
with self.assertRaises(KBLibException) as raised:
raise KBLibException("test message")
self.assertEqual(raised.exception.message, "test message")... | 29.181818 | 66 | 0.750779 | 33 | 321 | 7.272727 | 0.606061 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 321 | 10 | 67 | 32.1 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
e8fbc7b6fedceab5c4a204c58a7a0df423e29b97 | 17,338 | py | Python | src/simple_report/xls/section.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | src/simple_report/xls/section.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | src/simple_report/xls/section.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
from datetime import datetime, date, time
import decimal
import re
import xlrd
import xlwt
from xlwt.Style import default_style
from simple_report.interface import ISpreadsheetSection
from simple_report.core.exception import XLSReportWriteException
from simple_report.core.spreadsheet_section import (
... | 35.970954 | 88 | 0.514362 | 1,782 | 17,338 | 4.783951 | 0.209315 | 0.029326 | 0.024633 | 0.018065 | 0.176892 | 0.136188 | 0.117654 | 0.089853 | 0.077185 | 0.058182 | 0 | 0.004028 | 0.412908 | 17,338 | 481 | 89 | 36.045738 | 0.833481 | 0.085016 | 0 | 0.14094 | 0 | 0 | 0.004318 | 0 | 0 | 0 | 0 | 0.004158 | 0.003356 | 0 | null | null | 0.010067 | 0.040268 | 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 |
3300da427718236895a06557e9568b189ee8874c | 5,649 | py | Python | omics_dashboard_client/record/record.py | BiRG/Omics-Dashboard-Python-Client | c5122978d61c4060e015d97742c779b88d95267e | [
"MIT"
] | null | null | null | omics_dashboard_client/record/record.py | BiRG/Omics-Dashboard-Python-Client | c5122978d61c4060e015d97742c779b88d95267e | [
"MIT"
] | null | null | null | omics_dashboard_client/record/record.py | BiRG/Omics-Dashboard-Python-Client | c5122978d61c4060e015d97742c779b88d95267e | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Dict, Any, Union
class Record(object):
def __init__(self, res_data, base_url):
# type: (Dict[str, Any], str) -> None
"""
:param res_data: The dictionary received as JSON from the server.
:param base_url: The url of the record_type's... | 31.735955 | 119 | 0.600637 | 744 | 5,649 | 4.412634 | 0.170699 | 0.029851 | 0.023454 | 0.049345 | 0.499239 | 0.483399 | 0.483399 | 0.439537 | 0.308559 | 0.249772 | 0 | 0 | 0.293326 | 5,649 | 177 | 120 | 31.915254 | 0.822395 | 0.270667 | 0 | 0.348315 | 0 | 0 | 0.161576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269663 | false | 0 | 0.022472 | 0 | 0.382022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
330931a04af27f79ee7ff9a2655ada3f2c7f8376 | 1,015 | py | Python | datasets/bicubic.py | heeycoen/BasicSRClone | 94733413e3f9db6c49d783020ef2b0f0279cca3b | [
"Apache-2.0",
"MIT"
] | null | null | null | datasets/bicubic.py | heeycoen/BasicSRClone | 94733413e3f9db6c49d783020ef2b0f0279cca3b | [
"Apache-2.0",
"MIT"
] | null | null | null | datasets/bicubic.py | heeycoen/BasicSRClone | 94733413e3f9db6c49d783020ef2b0f0279cca3b | [
"Apache-2.0",
"MIT"
] | null | null | null | import os.path as osp
import cv2
import numpy as np
import math
import sys, time
import glob
gt_tr_img_folder = 'Training_GT/*'
lr_tr_img_folder = 'Training_LR/'
gt_ev_img_folder = 'Eval_GT/*'
lr_ev_img_folder = 'Eval_LR/'
idx = 0
for path in glob.glob(gt_tr_img_folder):
idx += 1
base = osp.splitext(osp.basen... | 26.710526 | 91 | 0.660099 | 170 | 1,015 | 3.752941 | 0.288235 | 0.112853 | 0.068966 | 0.034483 | 0.763323 | 0.673981 | 0.61442 | 0.61442 | 0.61442 | 0.61442 | 0 | 0.034525 | 0.200985 | 1,015 | 37 | 92 | 27.432432 | 0.752158 | 0.073892 | 0 | 0.444444 | 0 | 0 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.074074 | 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 |
330e4bb580abe5782c8fa551dc529d5f04d49ebf | 2,523 | py | Python | transposon_annotation/ecolopy_scripts/ecolopy.py | sestaton/sesbio | a50c08d47db810669f257e6fce0b05a1bd3db24c | [
"MIT"
] | 15 | 2015-01-14T17:25:00.000Z | 2021-03-09T01:15:18.000Z | transposon_annotation/ecolopy_scripts/ecolopy.py | sestaton/sesbio | a50c08d47db810669f257e6fce0b05a1bd3db24c | [
"MIT"
] | null | null | null | transposon_annotation/ecolopy_scripts/ecolopy.py | sestaton/sesbio | a50c08d47db810669f257e6fce0b05a1bd3db24c | [
"MIT"
] | 6 | 2015-10-09T02:56:51.000Z | 2018-12-02T12:07:39.000Z | import matplotlib
matplotlib.use('Agg')
from ecolopy_dev import Community
from ecolopy_dev.utils import draw_shannon_distrib
##test_abund.txt would be the genome abundance / the diploid number of chromosomes
## j_tot is obtained by taking the total number of individuals
com = Community('test_log_abund.txt', j_to... | 33.64 | 98 | 0.678161 | 387 | 2,523 | 4.286822 | 0.392765 | 0.033755 | 0.026522 | 0.038577 | 0.027728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014514 | 0.180737 | 2,523 | 74 | 99 | 34.094595 | 0.788099 | 0.18589 | 0 | 0 | 0 | 0 | 0.190802 | 0.028376 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.150943 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
331db0cc4486d1519ad15cef1d6cfdbec0fae3fd | 1,401 | py | Python | subparsers/parser_setup.py | dman777/image_share | a99c4f0a386201e10eaec0ab0efa50271b7ae122 | [
"MIT"
] | 1 | 2016-10-07T06:50:37.000Z | 2016-10-07T06:50:37.000Z | subparsers/parser_setup.py | dman777/image_share | a99c4f0a386201e10eaec0ab0efa50271b7ae122 | [
"MIT"
] | null | null | null | subparsers/parser_setup.py | dman777/image_share | a99c4f0a386201e10eaec0ab0efa50271b7ae122 | [
"MIT"
] | null | null | null | import argparse
import textwrap
from argparse import RawDescriptionHelpFormatter
import help_text
from subparsers.share_image import share_image_subparser
from subparsers.consumer_set_status import consumer_set_status_subparser
from subparsers.list_custom_images import list_custom_images_subparser
from subparsers.list_... | 38.916667 | 72 | 0.773733 | 161 | 1,401 | 6.36646 | 0.304348 | 0.109268 | 0.157073 | 0.105366 | 0.06439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167737 | 1,401 | 35 | 73 | 40.028571 | 0.879074 | 0 | 0 | 0 | 0 | 0 | 0.024982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
33235e10abbfae91091935fe4ca00adac3a57466 | 1,698 | py | Python | src/utils/tests/test_jsondict.py | HOP-Ubiquitous/ngsi-timeseries-api | 8dd7dba2e320d843811bad6246d8a5ddc39a7a4f | [
"MIT"
] | null | null | null | src/utils/tests/test_jsondict.py | HOP-Ubiquitous/ngsi-timeseries-api | 8dd7dba2e320d843811bad6246d8a5ddc39a7a4f | [
"MIT"
] | null | null | null | src/utils/tests/test_jsondict.py | HOP-Ubiquitous/ngsi-timeseries-api | 8dd7dba2e320d843811bad6246d8a5ddc39a7a4f | [
"MIT"
] | 1 | 2020-06-14T19:57:59.000Z | 2020-06-14T19:57:59.000Z | import pytest
from utils.jsondict import *
@pytest.mark.parametrize('maybe_dict, key, expected', [
({}, '', None), ({}, 'k', None),
(123, '', 123), (123, 'k', 123),
({'h': 1}, '', None), ({'h': 1}, 'k', None),
({'k': 1}, '', None), ({'k': 1}, 'k', 1)
])
def test_safe_get_value(maybe_dict, key, expecte... | 36.913043 | 73 | 0.365135 | 226 | 1,698 | 2.681416 | 0.146018 | 0.085809 | 0.064356 | 0.066007 | 0.524752 | 0.50165 | 0.448845 | 0.183168 | 0.140264 | 0.140264 | 0 | 0.03869 | 0.208481 | 1,698 | 45 | 74 | 37.733333 | 0.412202 | 0 | 0 | 0.128205 | 0 | 0 | 0.089517 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.051282 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
332482d131af5dc87baad8ff32e0caa1a9c6cea8 | 1,146 | py | Python | diff-operations.py | suhasksv/py-ground | 8c04a845c6b5c4efcb335c8ad59416874e8226d1 | [
"Apache-2.0"
] | 3 | 2020-06-01T09:40:41.000Z | 2020-08-26T12:09:27.000Z | diff-operations.py | suhasksv/py-ground | 8c04a845c6b5c4efcb335c8ad59416874e8226d1 | [
"Apache-2.0"
] | null | null | null | diff-operations.py | suhasksv/py-ground | 8c04a845c6b5c4efcb335c8ad59416874e8226d1 | [
"Apache-2.0"
] | 4 | 2020-07-20T10:38:23.000Z | 2020-10-16T08:41:05.000Z | import time
print("Hi, Welcome to Quantum Tricks")
time.sleep(1.0)
print("This a different operations calculator using same numbers")
time.sleep(2.0)
print("Lets start calculating")
time.sleep(1.0)
num1 = int(input("Enter an integer:"))
num2 = int(input("Enter an integer:"))
# Calculating addition
def add(a, b):
... | 21.222222 | 128 | 0.604712 | 163 | 1,146 | 4.251534 | 0.398773 | 0.034632 | 0.069264 | 0.077922 | 0.229437 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0.011086 | 0.212914 | 1,146 | 53 | 129 | 21.622642 | 0.757206 | 0.112565 | 0 | 0.066667 | 0 | 0 | 0.318812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.033333 | 0.2 | 0.433333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
332c35f479ba3a2d0c5be86fe224e6ca9837679d | 2,125 | py | Python | python-dtf/dtf/colors.py | jakev/dtf | a761ace77cea051bfb88d56df65ae6b83f664480 | [
"Apache-2.0"
] | 58 | 2015-01-13T16:24:31.000Z | 2016-11-21T16:00:58.000Z | python-dtf/dtf/colors.py | jakev/dtf | a761ace77cea051bfb88d56df65ae6b83f664480 | [
"Apache-2.0"
] | 51 | 2015-03-11T20:42:21.000Z | 2017-01-18T02:49:10.000Z | python-dtf/dtf/colors.py | jakev/dtf | a761ace77cea051bfb88d56df65ae6b83f664480 | [
"Apache-2.0"
] | 15 | 2016-02-01T00:37:21.000Z | 2016-12-09T07:03:36.000Z | # Android Device Testing Framework ("dtf")
# Copyright 2013-2016 Jake Valletta (@jake_valletta)
#
# 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
... | 22.368421 | 74 | 0.661176 | 304 | 2,125 | 4.490132 | 0.391447 | 0.017582 | 0.048352 | 0.074725 | 0.362637 | 0.362637 | 0.235165 | 0.103297 | 0.048352 | 0 | 0 | 0.014528 | 0.222588 | 2,125 | 94 | 75 | 22.606383 | 0.811743 | 0.427294 | 0 | 0.45 | 0 | 0 | 0.049053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.075 | 0 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
332c4b19330013511a74d445eeecd39d603f46dd | 23,788 | py | Python | src/learning/TreeListLearner.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | src/learning/TreeListLearner.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | src/learning/TreeListLearner.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | import networkx as nx
import re
import json
from learning.PageManager import PageManager
class TreeListLearner(object):
def __init__(self):
self.__minEdgeWeight = 2
self.__DEBUG = False
"""
pageRepresentation is the invisible/visible data structure
only_consider_tag lets you f... | 46.37037 | 164 | 0.557382 | 3,007 | 23,788 | 4.193216 | 0.147988 | 0.007614 | 0.008724 | 0.022682 | 0.240939 | 0.167896 | 0.133397 | 0.111825 | 0.095012 | 0.08026 | 0 | 0.007261 | 0.351564 | 23,788 | 512 | 165 | 46.460938 | 0.810178 | 0.257146 | 0 | 0.181818 | 0 | 0 | 0.0475 | 0.009797 | 0 | 0 | 0 | 0.005859 | 0 | 0 | null | null | 0 | 0.012987 | null | null | 0.055195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
332d42e946ac748b94eb905221428b7e52b7fccd | 1,581 | py | Python | blog/models.py | Benz-Solutions/MyWebsite | d60601f7f390c9d8a4b4394b321cf3b2cdc4b26a | [
"MIT"
] | null | null | null | blog/models.py | Benz-Solutions/MyWebsite | d60601f7f390c9d8a4b4394b321cf3b2cdc4b26a | [
"MIT"
] | null | null | null | blog/models.py | Benz-Solutions/MyWebsite | d60601f7f390c9d8a4b4394b321cf3b2cdc4b26a | [
"MIT"
] | null | null | null | from django.db import models
from ckeditor.fields import RichTextField
from django.urls import reverse
import readtime
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=50, verbose_name='Categoría')
slug = models.SlugField(null=False, verbose_name="Clase", default="n... | 32.9375 | 88 | 0.682479 | 187 | 1,581 | 5.582888 | 0.42246 | 0.136973 | 0.034483 | 0.045977 | 0.235632 | 0.136015 | 0.136015 | 0 | 0 | 0 | 0 | 0.003185 | 0.205566 | 1,581 | 47 | 89 | 33.638298 | 0.827229 | 0.01518 | 0 | 0.166667 | 0 | 0 | 0.105534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.111111 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3333e9b6ac19e8e0a94e568fac7943e3db6d9636 | 1,855 | py | Python | digsby/ext/cguisetup.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/ext/cguisetup.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/ext/cguisetup.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | '''
defines all the sources necessary for building cgui.pyd
'''
import os
BUILD_BUDDYLIST_GUI = False
thisdir = os.path.dirname(os.path.abspath(__file__))
sources = '''
src/ctextutil.cpp
src/SplitImage4.cpp
src/ScrollWindow.cpp
src/skinvlist.cpp
src/pyutils.cpp
src/cwindowfx.cpp
... | 19.322917 | 56 | 0.645283 | 227 | 1,855 | 5.176211 | 0.374449 | 0.148085 | 0.053617 | 0.03234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002141 | 0.244744 | 1,855 | 95 | 57 | 19.526316 | 0.836545 | 0.032345 | 0 | 0.096774 | 0 | 0 | 0.664945 | 0.246611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 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 |
33353cf61164808c8e960bd86227b5588fa4abd1 | 630 | py | Python | puzzle1/1a.py | muellerd/advent_of_code21 | 411670a9589b6434f4eb2ac6b4046a14f0a8a72b | [
"MIT"
] | null | null | null | puzzle1/1a.py | muellerd/advent_of_code21 | 411670a9589b6434f4eb2ac6b4046a14f0a8a72b | [
"MIT"
] | null | null | null | puzzle1/1a.py | muellerd/advent_of_code21 | 411670a9589b6434f4eb2ac6b4046a14f0a8a72b | [
"MIT"
] | null | null | null | input = "input1.txt"
depthReadings = []
changes = [] # 1 = increase, 0 = no change, -1 = decrease
with open(input) as f:
for l in f:
depthReadings.append(int(l.strip()))
i = 1
changes.append(0)
while i < len(depthReadings):
if depthReadings[i] < depthReadings[i-1]:
changes.append(-1)
... | 20.322581 | 64 | 0.596825 | 84 | 630 | 4.47619 | 0.357143 | 0.223404 | 0.095745 | 0.159574 | 0.401596 | 0.356383 | 0.356383 | 0.356383 | 0.356383 | 0.356383 | 0 | 0.032397 | 0.265079 | 630 | 30 | 65 | 21 | 0.779698 | 0.07619 | 0 | 0.086957 | 0 | 0 | 0.017271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.043478 | 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 |
3336c072451040a0edf53ef789f9d99643cd4ccf | 747 | py | Python | server/gymPlanner.py | pritam001/gymPlanner | 1e9272a5b1ddcf700563a55788b384a0956a7ea7 | [
"MIT"
] | 1 | 2018-10-28T15:58:38.000Z | 2018-10-28T15:58:38.000Z | server/gymPlanner.py | pritam001/gymPlanner | 1e9272a5b1ddcf700563a55788b384a0956a7ea7 | [
"MIT"
] | null | null | null | server/gymPlanner.py | pritam001/gymPlanner | 1e9272a5b1ddcf700563a55788b384a0956a7ea7 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from planner import algorithm, constants
from model.body import Body
app = Flask(__name__)
@app.route('/hello')
def hello_world():
return render_template('main.html')
@app.route('/planner/')
@app.route('/planner/<username>')
def hello(username="Guest"):
one_hot_enco... | 20.189189 | 67 | 0.676037 | 90 | 747 | 5.266667 | 0.355556 | 0.118143 | 0.109705 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010017 | 0.198126 | 747 | 36 | 68 | 20.75 | 0.781302 | 0 | 0 | 0.074074 | 0 | 0 | 0.104418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.037037 | 0.333333 | 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 |
333a30bd9a6be2d59f8734a4e53f3a22655d51f5 | 8,726 | py | Python | circadia_gamma.py | hooyah/Circadia | e2947725a6d0bb8843c3230c8dda901c25716640 | [
"MIT"
] | 25 | 2016-12-18T14:33:56.000Z | 2022-02-01T15:37:17.000Z | circadia_gamma.py | hooyah/Circadia | e2947725a6d0bb8843c3230c8dda901c25716640 | [
"MIT"
] | null | null | null | circadia_gamma.py | hooyah/Circadia | e2947725a6d0bb8843c3230c8dda901c25716640 | [
"MIT"
] | 5 | 2017-05-02T01:59:55.000Z | 2020-12-15T08:37:53.000Z | """
an app to quickly adjust LED gamma curves
GUI, so needs to run in X
"""
import Tkinter as tk
import tkMessageBox
import json
from MSR_OS.engine import loadConfig
from MSR_OS.floatCanvas import Gradient3
from MSR_HAL import circadiahw
class Application(tk.Frame):
def __init__(self, master=None):
... | 33.953307 | 162 | 0.589159 | 1,221 | 8,726 | 4.116298 | 0.168714 | 0.073418 | 0.035814 | 0.015519 | 0.362515 | 0.232193 | 0.183048 | 0.160764 | 0.155392 | 0.155392 | 0 | 0.034621 | 0.258538 | 8,726 | 256 | 163 | 34.085938 | 0.742195 | 0.022691 | 0 | 0.213115 | 0 | 0 | 0.034948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032787 | null | null | 0.005464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
333a451e63f43faf8ce3f23e0327ced18847776c | 333 | py | Python | votes/migrations/0002_auto_20210305_2121.py | ericthelemur/uwcs-vote | 616b635014289962de84c800966c98fe230b802f | [
"MIT"
] | null | null | null | votes/migrations/0002_auto_20210305_2121.py | ericthelemur/uwcs-vote | 616b635014289962de84c800966c98fe230b802f | [
"MIT"
] | null | null | null | votes/migrations/0002_auto_20210305_2121.py | ericthelemur/uwcs-vote | 616b635014289962de84c800966c98fe230b802f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-03-05 21:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('votes', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='election',
options={'ordering': ('id',)},
... | 18.5 | 47 | 0.570571 | 33 | 333 | 5.727273 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.294294 | 333 | 17 | 48 | 19.588235 | 0.723404 | 0.135135 | 0 | 0 | 1 | 0 | 0.122378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
333f57acee1fc03dd9c73f465285b0c14cf6cd3e | 7,369 | py | Python | qr-w100s/input/video.py | FlyingSelfie/qr-w100s | 08d6003175e30b1db42b0950351af343ed6af30a | [
"MIT"
] | 2 | 2017-04-26T14:25:45.000Z | 2021-02-20T08:59:12.000Z | qr-w100s/input/video.py | FlyingSelfie/qr-w100s | 08d6003175e30b1db42b0950351af343ed6af30a | [
"MIT"
] | null | null | null | qr-w100s/input/video.py | FlyingSelfie/qr-w100s | 08d6003175e30b1db42b0950351af343ed6af30a | [
"MIT"
] | 1 | 2015-03-20T20:18:51.000Z | 2015-03-20T20:18:51.000Z | #!/usr/bin/env python
import urllib2
import cv2
import multiprocessing
import Queue #needed separately for the Empty exception
import time, datetime
import sys
from PySide import QtGui, QtCore
import numpy as np
def printnow(string):
print string
sys.stdout.flush()
class SystemCameraVideoProcess(multiproces... | 30.576763 | 103 | 0.602117 | 787 | 7,369 | 5.467598 | 0.263024 | 0.026028 | 0.044155 | 0.030676 | 0.367883 | 0.345108 | 0.341157 | 0.341157 | 0.294678 | 0.294678 | 0 | 0.03004 | 0.295291 | 7,369 | 241 | 104 | 30.576763 | 0.798575 | 0.035012 | 0 | 0.450867 | 0 | 0 | 0.027277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023121 | 0.046243 | null | null | 0.023121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3341427b5ff819c67cfe3ee8b7832b62742a049e | 290 | py | Python | status/urls.py | NERSC/newt-2.0 | 9b16d61b3bb6b03d731573fc11c85b1527e8a40a | [
"BSD-2-Clause"
] | 11 | 2015-04-15T02:09:51.000Z | 2022-03-06T15:54:36.000Z | status/urls.py | shreddd/newt-2.0 | 8ef448ac1a6f34c2f16b0deafdcdc27ebfc255ae | [
"BSD-2-Clause"
] | 21 | 2019-06-06T17:54:09.000Z | 2021-07-14T05:57:14.000Z | status/urls.py | shreddd/newt-2.0 | 8ef448ac1a6f34c2f16b0deafdcdc27ebfc255ae | [
"BSD-2-Clause"
] | 3 | 2015-08-27T00:42:43.000Z | 2019-04-04T23:10:18.000Z | from django.conf.urls import patterns
from status.views import StatusView, ExtraStatusView
urlpatterns = patterns('status.views',
(r'^/?$', StatusView.as_view()),
(r'^/(?P<machine_name>[^/]+)$', StatusView.as_view()),
(r'^(?P<query>.+)/$', ExtraStatusView.as_view()),
)
| 24.166667 | 58 | 0.641379 | 33 | 290 | 5.515152 | 0.545455 | 0.098901 | 0.175824 | 0.186813 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134483 | 290 | 11 | 59 | 26.363636 | 0.7251 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
3345c6211d75dba45b770e0a1b72c0d0012c8703 | 4,680 | py | Python | src/data_processing/SFCMapper.py | rz4/ParticleTracks | 28c41e31a25f8e3f6eec218124698fe2b82347e0 | [
"MIT"
] | 1 | 2019-07-23T19:57:36.000Z | 2019-07-23T19:57:36.000Z | src/data_processing/SFCMapper.py | rz4/ParticleTracks | 28c41e31a25f8e3f6eec218124698fe2b82347e0 | [
"MIT"
] | null | null | null | src/data_processing/SFCMapper.py | rz4/ParticleTracks | 28c41e31a25f8e3f6eec218124698fe2b82347e0 | [
"MIT"
] | null | null | null | '''
SFCMapper.py
Updated: 2/6/18
This script contains methods to generate space filling curves and uses them to
map high dimensional data into lower dimensions.
'''
import numpy as np
class SFCMapper(object):
"""
SFCMapper object is used to generate 3D and 2D space filling curves and map
the traveseral o... | 36.27907 | 108 | 0.481197 | 794 | 4,680 | 2.755668 | 0.139798 | 0.030165 | 0.027422 | 0.032907 | 0.482633 | 0.404022 | 0.404022 | 0.404022 | 0.378428 | 0.326325 | 0 | 0.082325 | 0.364103 | 4,680 | 128 | 109 | 36.5625 | 0.65289 | 0.199573 | 0 | 0.163934 | 1 | 0 | 0.026888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.016393 | 0 | 0.180328 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
334cbdccc3313315d3e085c6332d14dc7521c664 | 2,046 | py | Python | upnpy/exceptions.py | f1d094/CallStranger | 5faa57f3429e75b2f8a291ac460f10bb258a993f | [
"MIT"
] | 376 | 2020-06-08T15:09:44.000Z | 2022-03-15T16:00:35.000Z | upnpy/exceptions.py | f1d094/CallStranger | 5faa57f3429e75b2f8a291ac460f10bb258a993f | [
"MIT"
] | 23 | 2020-06-09T06:57:34.000Z | 2021-05-25T16:01:04.000Z | upnpy/exceptions.py | f1d094/CallStranger | 5faa57f3429e75b2f8a291ac460f10bb258a993f | [
"MIT"
] | 62 | 2020-06-08T15:09:50.000Z | 2021-08-07T16:40:05.000Z | class SOAPError(Exception):
"""
**Custom SOAP exception**
Custom SOAP exception class.
Raised whenever an error response has been received during action invocation.
"""
def __init__(self, description, code):
self.description = description
self.error = code
class ... | 22.483516 | 90 | 0.652493 | 222 | 2,046 | 5.923423 | 0.297297 | 0.136882 | 0.106464 | 0.149049 | 0.286692 | 0.225095 | 0.062357 | 0 | 0 | 0 | 0 | 0 | 0.278592 | 2,046 | 90 | 91 | 22.733333 | 0.890921 | 0.506354 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.136364 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
334d57c8926dcde70942402af255205bbe7d4427 | 3,133 | py | Python | samples/export_wb.py | rrobertsrgare/server-client-python | 3f4db45584fb352e9f21c870027a2302cb824909 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-02-17T18:39:09.000Z | 2021-02-17T18:39:09.000Z | samples/export_wb.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-02-24T00:26:46.000Z | 2021-02-24T00:26:46.000Z | samples/export_wb.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-02-17T18:39:10.000Z | 2021-02-17T18:39:10.000Z | ####
# This sample uses the PyPDF2 library for combining pdfs together to get the full pdf for all the views in a
# workbook.
#
# You will need to do `pip install PyPDF2` to use this sample.
#
# To run the script, you must have installed Python 3.5 or later.
####
import argparse
import getpass
import logging
import t... | 32.635417 | 111 | 0.690073 | 419 | 3,133 | 5.040573 | 0.353222 | 0.02983 | 0.056345 | 0.010417 | 0.071023 | 0.029356 | 0.029356 | 0 | 0 | 0 | 0 | 0.003171 | 0.194702 | 3,133 | 95 | 112 | 32.978947 | 0.833928 | 0.114587 | 0 | 0.031746 | 0 | 0 | 0.169873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.095238 | 0.174603 | 0 | 0.301587 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
334db82fc47082903b098e1b5aead79105aec286 | 4,185 | py | Python | cla_frontend/apps/cla_auth/tests/test_backend.py | farrepa/cla_frontend | a789ad96cf91daf755784e3a5ed11350a85bddf6 | [
"MIT"
] | 3 | 2018-02-19T09:50:06.000Z | 2022-01-13T10:17:05.000Z | cla_frontend/apps/cla_auth/tests/test_backend.py | farrepa/cla_frontend | a789ad96cf91daf755784e3a5ed11350a85bddf6 | [
"MIT"
] | 171 | 2015-01-02T09:27:37.000Z | 2022-03-24T08:56:57.000Z | cla_frontend/apps/cla_auth/tests/test_backend.py | farrepa/cla_frontend | a789ad96cf91daf755784e3a5ed11350a85bddf6 | [
"MIT"
] | 3 | 2019-03-14T08:31:47.000Z | 2021-05-04T16:01:42.000Z | import mock
from requests import ConnectionError
from slumber.exceptions import HttpClientError
from django.test.testcases import SimpleTestCase
from django.conf import settings
from ..backend import get_backend, ClaBackend
from . import base
class TestClaBackend(ClaBackend):
zone_name = base.DEFAULT_ZONE_NAM... | 37.366071 | 111 | 0.670729 | 422 | 4,185 | 6.364929 | 0.189573 | 0.028667 | 0.06962 | 0.085629 | 0.543932 | 0.485108 | 0.485108 | 0.485108 | 0.467238 | 0.467238 | 0 | 0.00494 | 0.226045 | 4,185 | 111 | 112 | 37.702703 | 0.824329 | 0.009797 | 0 | 0.361446 | 0 | 0 | 0.111785 | 0.008729 | 0 | 0 | 0 | 0 | 0.192771 | 1 | 0.084337 | false | 0.096386 | 0.084337 | 0 | 0.228916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
335f85ba235b13165a9dcc4b818690e274678b78 | 515 | py | Python | yxtx/myApp/migrations/0009_auto_20200117_1349.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0009_auto_20200117_1349.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0009_auto_20200117_1349.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-17 05:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0008_usergroup'),
]
operations = [
migrations.RemoveField(
model_name='usergroup',
name='id',
),
... | 22.391304 | 85 | 0.578641 | 52 | 515 | 5.634615 | 0.769231 | 0.061433 | 0.122867 | 0.150171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058659 | 0.304854 | 515 | 22 | 86 | 23.409091 | 0.759777 | 0.087379 | 0 | 0.25 | 1 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
336083f9e114ea9ce495669b9bd59e812eeeb62e | 1,320 | py | Python | utilities/setapache_static.py | theism/commcare-hq | 9b56ee5debd45590a892b9a0e2514f88bfd7c362 | [
"BSD-3-Clause"
] | 1 | 2017-05-19T07:23:00.000Z | 2017-05-19T07:23:00.000Z | utilities/setapache_static.py | theism/commcare-hq | 9b56ee5debd45590a892b9a0e2514f88bfd7c362 | [
"BSD-3-Clause"
] | null | null | null | utilities/setapache_static.py | theism/commcare-hq | 9b56ee5debd45590a892b9a0e2514f88bfd7c362 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import logging
import os, sys
from rapidsms.webui import settings
from django.conf.urls.defaults import *
def run():
# iterate each of the active rapidsms apps (from the ini),
# and (attempt to) import the urls.py from each. it's okay
# if this fails, si... | 38.823529 | 92 | 0.558333 | 166 | 1,320 | 4.301205 | 0.524096 | 0.05042 | 0.05042 | 0.05042 | 0.10084 | 0.10084 | 0.10084 | 0.10084 | 0.10084 | 0 | 0 | 0.003409 | 0.333333 | 1,320 | 33 | 93 | 40 | 0.807955 | 0.189394 | 0 | 0 | 0 | 0 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
3360d56ba8cdf72ce3784a4a65538f8993777955 | 1,703 | py | Python | Counter game.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Counter game.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Counter game.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | """
Louise and Richard play a game. They have a counter set to N. Louise gets the first turn and the turns alternate
thereafter. In the game, they perform the following operations.
If N is not a power of 2, they reduce the counter by the largest power of 2 less than N.
If N is a power of 2, they reduce the counter by ... | 28.383333 | 112 | 0.577217 | 254 | 1,703 | 3.822835 | 0.429134 | 0.041195 | 0.024717 | 0.018538 | 0.063852 | 0.063852 | 0.063852 | 0.063852 | 0.063852 | 0 | 0 | 0.015986 | 0.338814 | 1,703 | 59 | 113 | 28.864407 | 0.846359 | 0.021139 | 0 | 0.074074 | 0 | 0 | 0.049137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33618f3e2d30bf668e9e437e2eee310d356a1489 | 13,522 | py | Python | wake/helpers/data_class.py | awaldm/flowpost | f9215ae5ec86768b4b39e01a38a2584ef4155c4e | [
"MIT"
] | null | null | null | wake/helpers/data_class.py | awaldm/flowpost | f9215ae5ec86768b4b39e01a38a2584ef4155c4e | [
"MIT"
] | null | null | null | wake/helpers/data_class.py | awaldm/flowpost | f9215ae5ec86768b4b39e01a38a2584ef4155c4e | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import flowpost.wake.helpers.wake_stats as ws
from wake_config import WakeCaseParams
import flowpost.IO.pyTecIO.tecreader as tecreader
import os
import numpy as np
from ...calc.stats import VelocityStatistics, ReynoldsStresses
###########################################################... | 36.15508 | 142 | 0.592072 | 1,910 | 13,522 | 4.02199 | 0.152356 | 0.035538 | 0.025514 | 0.028769 | 0.446889 | 0.413304 | 0.38831 | 0.357329 | 0.324265 | 0.291591 | 0 | 0.007262 | 0.26675 | 13,522 | 373 | 143 | 36.252011 | 0.767524 | 0.075433 | 0 | 0.262887 | 0 | 0 | 0.061848 | 0.007667 | 0 | 0 | 0 | 0.013405 | 0 | 1 | 0.123711 | false | 0.005155 | 0.046392 | 0 | 0.257732 | 0.056701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
33651653e9203b75ced2ce0eb5c78cc2d051c295 | 824 | py | Python | Apps/phsignalfx/signalfx_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 74 | 2019-10-22T02:00:53.000Z | 2022-03-15T12:56:13.000Z | Apps/phsignalfx/signalfx_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 375 | 2019-10-22T20:53:50.000Z | 2021-11-09T21:28:43.000Z | Apps/phsignalfx/signalfx_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 175 | 2019-10-23T15:30:42.000Z | 2021-11-05T21:33:31.000Z | # File: signalfx_consts.py
# Copyright (c) 2021 Splunk Inc.
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
# Define your constants here
# exception handling
ERR_CODE_MSG = "Error code unavailable"
ERR_MSG_UNAVAILABLE = "Error message unavailable. Please check the asset configuration ... | 39.238095 | 114 | 0.786408 | 124 | 824 | 5.08871 | 0.5 | 0.047544 | 0.07607 | 0.10935 | 0.41046 | 0.315372 | 0.269414 | 0.167987 | 0.167987 | 0 | 0 | 0.015471 | 0.137136 | 824 | 20 | 115 | 41.2 | 0.872011 | 0.262136 | 0 | 0 | 0 | 0 | 0.682274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
336561b6c9544b29ee98ee1c28119d820782aaa8 | 854 | py | Python | Getting Started/loops.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | Getting Started/loops.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | Getting Started/loops.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | # # For loops
# emails = ["email1@email.com", "email2@gmail.com", "email3@email.com"]
#
# for email in emails:
# print(email)
# pass
# # For loops advance
# emails = ["email1@email.com", "email2@gmail.com", "email3@email.com"]
# for email in emails:
# if 'gmail' in email:
# print(email)
# # el... | 21.35 | 71 | 0.593677 | 114 | 854 | 4.429825 | 0.385965 | 0.063366 | 0.067327 | 0.079208 | 0.372277 | 0.253465 | 0.253465 | 0.253465 | 0.253465 | 0.253465 | 0 | 0.013413 | 0.214286 | 854 | 39 | 72 | 21.897436 | 0.739195 | 0.790398 | 0 | 0.5 | 0 | 0 | 0.144828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
336a976710640f57dca61ade1f6fafa8b81e4e58 | 1,286 | py | Python | sme_uniforme_apps/core/migrations/0006_limitecategoria.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | null | null | null | sme_uniforme_apps/core/migrations/0006_limitecategoria.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | null | null | null | sme_uniforme_apps/core/migrations/0006_limitecategoria.py | prefeiturasp/SME-PortalUniforme-BackEnd | d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f | [
"MIT"
] | 1 | 2020-02-01T12:10:42.000Z | 2020-02-01T12:10:42.000Z | # Generated by Django 2.2.9 on 2020-02-06 15:23
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20200206_1222'),
]
operations = [
migrations.CreateModel(
name='LimiteCategoria',
fiel... | 38.969697 | 119 | 0.576983 | 129 | 1,286 | 5.581395 | 0.604651 | 0.091667 | 0.058333 | 0.069444 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041712 | 0.291602 | 1,286 | 32 | 120 | 40.1875 | 0.748628 | 0.034992 | 0 | 0 | 1 | 0 | 0.199354 | 0.018563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
336db6c2ca3755e9027b42b469ea9d81bf11a016 | 523 | py | Python | src/constants.py | meysam81/notable-newts | 4271ac1a7790f0ea1e26b8edfe9d47dad85577d0 | [
"MIT"
] | 1 | 2021-07-09T15:34:52.000Z | 2021-07-09T15:34:52.000Z | src/constants.py | meysam81/notable-newts | 4271ac1a7790f0ea1e26b8edfe9d47dad85577d0 | [
"MIT"
] | 1 | 2021-07-11T10:15:31.000Z | 2021-07-11T10:15:31.000Z | src/constants.py | meysam81/notable-newts | 4271ac1a7790f0ea1e26b8edfe9d47dad85577d0 | [
"MIT"
] | 2 | 2021-07-09T17:40:16.000Z | 2021-07-11T14:57:12.000Z | from enum import Enum
# Inheriting from `str` because it makes string comparison possible
class BaseEnum(str, Enum):
"""Enum"""
def __str__(self):
return self.value
class Directions(BaseEnum):
"""Directions"""
UP = "UP"
RIGHT = "RIGHT"
DOWN = "DOWN"
LEFT = "LEFT"
class Contro... | 14.942857 | 67 | 0.58891 | 58 | 523 | 5.206897 | 0.534483 | 0.099338 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269598 | 523 | 34 | 68 | 15.382353 | 0.790576 | 0.187381 | 0 | 0 | 0 | 0 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 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 |
336dd568c31a2fa46d3e726460f51cb332e91b7f | 7,345 | py | Python | api/flags/migrations/0001_squashed_0012_auto_20210309_1521.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/flags/migrations/0001_squashed_0012_auto_20210309_1521.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/flags/migrations/0001_squashed_0012_auto_20210309_1521.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | # Generated by Django 3.1.8 on 2021-04-23 08:35
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import uuid
class Migration(migrations.Migration):
replaces = [('flags', '0001_initial'), ('flags... | 49.628378 | 487 | 0.602995 | 698 | 7,345 | 6.170487 | 0.244986 | 0.035524 | 0.048758 | 0.05642 | 0.650104 | 0.632227 | 0.550964 | 0.509635 | 0.509635 | 0.480845 | 0 | 0.034223 | 0.240163 | 7,345 | 147 | 488 | 49.965986 | 0.737502 | 0.006127 | 0 | 0.633094 | 1 | 0 | 0.240751 | 0.051932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043165 | 0 | 0.079137 | 0 | 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 |
68294f62a061320ce6822666ebb9743bd9b193aa | 270 | py | Python | openfoodfacts/autosuggest.py | Pablohn26/openfoodfacts-python | b109b957fc144ab23bd543b539e6d44a8c7bfae6 | [
"MIT"
] | 176 | 2016-06-27T18:08:32.000Z | 2022-03-05T05:36:06.000Z | openfoodfacts/autosuggest.py | manalsaadi/Loreal | 4c761b7ebe0a0181217f78322bcfb99136855dfd | [
"MIT"
] | 67 | 2016-09-14T21:35:47.000Z | 2022-03-27T10:50:24.000Z | openfoodfacts/autosuggest.py | manalsaadi/Loreal | 4c761b7ebe0a0181217f78322bcfb99136855dfd | [
"MIT"
] | 53 | 2016-05-27T22:10:02.000Z | 2022-03-25T10:32:17.000Z | # -*- coding: utf-8 -*-
def get_autosuggest_url(tag_type, language, geography):
base_url = "https://" + geography + ".openfoodfacts.org"
autosuggest = base_url + "/cgi/suggest.pl?lc=" + language
autosuggest += "&tagtype=" + tag_type
return autosuggest
| 30 | 61 | 0.662963 | 31 | 270 | 5.580645 | 0.677419 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.177778 | 270 | 8 | 62 | 33.75 | 0.774775 | 0.077778 | 0 | 0 | 0 | 0 | 0.218623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68324f9d00be5f8a3689cc50c3e35c315b7d3afd | 7,146 | py | Python | hap-monitor-cron.py | vigne/HAP-Monitor | 7459fc8ee2575823958272666074763a55494a0f | [
"Apache-2.0"
] | 6 | 2015-03-24T19:38:42.000Z | 2018-09-21T04:59:33.000Z | hap-monitor-cron.py | vigne/HAP-Monitor | 7459fc8ee2575823958272666074763a55494a0f | [
"Apache-2.0"
] | 4 | 2015-04-08T11:20:33.000Z | 2018-03-14T22:10:09.000Z | hap-monitor-cron.py | vigne/HAP-Monitor | 7459fc8ee2575823958272666074763a55494a0f | [
"Apache-2.0"
] | 15 | 2015-03-25T13:02:17.000Z | 2021-08-11T15:15:50.000Z | #!/usr/bin/env python
# Copyright European Organization for Nuclear Research (CERN) 2013
#
# 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
#
# Authors... | 40.602273 | 216 | 0.606353 | 962 | 7,146 | 4.423077 | 0.258836 | 0.010341 | 0.007756 | 0.025382 | 0.274031 | 0.256169 | 0.224207 | 0.20141 | 0.184489 | 0.163807 | 0 | 0.010419 | 0.247831 | 7,146 | 176 | 217 | 40.602273 | 0.781209 | 0.099216 | 0 | 0.33813 | 0 | 0.014388 | 0.229942 | 0.022433 | 0.007194 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057554 | null | null | 0.021583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68370cdb2b02be6de6ad808cfef9c9965bcc9214 | 35,746 | py | Python | laptop_credential/winsys/dialogs.py | kgonyo/ope1 | 46d556c59e706df6775b6e32aee545241d18dcfa | [
"MIT"
] | null | null | null | laptop_credential/winsys/dialogs.py | kgonyo/ope1 | 46d556c59e706df6775b6e32aee545241d18dcfa | [
"MIT"
] | null | null | null | laptop_credential/winsys/dialogs.py | kgonyo/ope1 | 46d556c59e706df6775b6e32aee545241d18dcfa | [
"MIT"
] | null | null | null | ur"""Provides for simple dialog boxes, doing just enough to return input
from the user using edit controls, dropdown lists and checkboxes. Most
interaction is via the :func:`dialog`, :func:`progress_dialog` or
:func:`info_dialog` functions. This example offers the user a drop-down
list of installed Python directories, ... | 37.004141 | 196 | 0.684244 | 4,919 | 35,746 | 4.834723 | 0.182964 | 0.033429 | 0.006938 | 0.002187 | 0.276386 | 0.219536 | 0.173114 | 0.132453 | 0.118829 | 0.100202 | 0 | 0.01871 | 0.222486 | 35,746 | 965 | 197 | 37.042487 | 0.836973 | 0.041683 | 0 | 0.259934 | 0 | 0 | 0.041399 | 0.002616 | 0 | 0 | 0.003798 | 0 | 0 | 0 | null | null | 0.014901 | 0.033113 | 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 |
683913ef06631b24f5ea30978a5445a04abe4b70 | 5,942 | py | Python | engineauth/middleware.py | gregorynicholas/engineauth | df609fd945a55b796229b3cda9baec79105c6446 | [
"Apache-2.0"
] | 1 | 2015-12-14T10:37:52.000Z | 2015-12-14T10:37:52.000Z | engineauth/middleware.py | gregorynicholas/engineauth | df609fd945a55b796229b3cda9baec79105c6446 | [
"Apache-2.0"
] | null | null | null | engineauth/middleware.py | gregorynicholas/engineauth | df609fd945a55b796229b3cda9baec79105c6446 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from engineauth import models
from engineauth import utils
from engineauth.config import load_config
import re
from webob import Response
from webob import Request
class EngineAuthResponse(Response):
def _save_session(self):
session = self.request.session
# C... | 36.453988 | 83 | 0.602154 | 730 | 5,942 | 4.675342 | 0.20274 | 0.045122 | 0.022854 | 0.019338 | 0.089071 | 0.04395 | 0.015822 | 0 | 0 | 0 | 0 | 0.001715 | 0.313026 | 5,942 | 162 | 84 | 36.679012 | 0.834395 | 0.144732 | 0 | 0.123967 | 0 | 0 | 0.0593 | 0 | 0 | 0 | 0 | 0.006173 | 0 | 0 | null | null | 0.024793 | 0.07438 | 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 |
6839253390c41e18683799effce1e49755687089 | 5,061 | py | Python | app/errors/errorcode.py | mrakzero/FlaskCMS | 03ad35610befca1f45d5705f07cfb4794f9b2d3b | [
"MulanPSL-1.0"
] | 1 | 2022-03-31T03:57:45.000Z | 2022-03-31T03:57:45.000Z | app/errors/errorcode.py | mrakzero/FlaskCMS | 03ad35610befca1f45d5705f07cfb4794f9b2d3b | [
"MulanPSL-1.0"
] | null | null | null | app/errors/errorcode.py | mrakzero/FlaskCMS | 03ad35610befca1f45d5705f07cfb4794f9b2d3b | [
"MulanPSL-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# version: 1.0.0
# author:Zhang Zhijun
# time: 2021-03-13
# file: errorcode.py
# function:
# modify:
class ResponseCode(object):
"""
成功类错误码:20000000 ~ 20099999
错误类错误码:40000000 ~ 40099999
服务器错误码:50000000 ~ 50099999
通用成功类错误码:20000000
登录注册类错误码:20... | 24.1 | 89 | 0.672002 | 609 | 5,061 | 5.252874 | 0.321839 | 0.06502 | 0.019694 | 0.016255 | 0.03251 | 0.03251 | 0.03251 | 0 | 0 | 0 | 0 | 0.135499 | 0.251927 | 5,061 | 209 | 90 | 24.215311 | 0.709456 | 0.123296 | 0 | 0.05042 | 0 | 0 | 0.074531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0 | 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 |
6841de37054cf65c568000be8c4c594adf5b2caa | 6,706 | py | Python | sdk/python/pulumi_gcp/compute/router_status.py | la3mmchen/pulumi-gcp | 0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/compute/router_status.py | la3mmchen/pulumi-gcp | 0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/compute/router_status.py | la3mmchen/pulumi-gcp | 0e3c6fecd062dff78a4fd95b7ebd5ce4492ad1ea | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 36.644809 | 146 | 0.667015 | 823 | 6,706 | 5.235723 | 0.204131 | 0.055697 | 0.036203 | 0.055697 | 0.514272 | 0.427942 | 0.376189 | 0.331399 | 0.308192 | 0.29334 | 0 | 0.000586 | 0.236206 | 6,706 | 182 | 147 | 36.846154 | 0.840687 | 0.3051 | 0 | 0.116505 | 1 | 0 | 0.146045 | 0.048456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106796 | false | 0 | 0.058252 | 0.048544 | 0.271845 | 0 | 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 |
6842617cdaef6bb749523c38784fe7e57e85d7c9 | 3,541 | py | Python | angola_erp/angola_erpnext/validations/stock_entry.py | resourcefactors/angola_erp | 8cbe1f655f11807769ddf16872f074e3a80e655b | [
"MIT"
] | 4 | 2019-06-12T06:54:10.000Z | 2021-08-28T06:07:42.000Z | angola_erp/angola_erpnext/validations/stock_entry.py | proenterprise/angola_erp | 1c171362b132e567390cf702e6ebd72577297cdf | [
"MIT"
] | 4 | 2017-08-24T17:33:45.000Z | 2017-09-24T16:54:01.000Z | angola_erp/angola_erpnext/validations/stock_entry.py | proenterprise/angola_erp | 1c171362b132e567390cf702e6ebd72577297cdf | [
"MIT"
] | 4 | 2018-02-10T21:08:10.000Z | 2021-08-28T06:08:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import frappe
from frappe import msgprint
def validate(doc,method):
#If STE linked to PO then status of Stock Entry cannot be different from PO
#along with posting date and time
if doc.purchase_order:
po = frappe.get_doc("Purchase Order", doc.purcha... | 46.592105 | 122 | 0.709122 | 559 | 3,541 | 4.34347 | 0.18068 | 0.065898 | 0.037068 | 0.032949 | 0.603377 | 0.563427 | 0.563427 | 0.563427 | 0.563427 | 0.563427 | 0 | 0.008219 | 0.175374 | 3,541 | 76 | 123 | 46.592105 | 0.823288 | 0.121717 | 0 | 0.460317 | 0 | 0.015873 | 0.313991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0.047619 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
684312819682424f2dda5a85d14b45b42e011c66 | 8,288 | py | Python | tiddlyweb/web/util.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | tiddlyweb/web/util.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | tiddlyweb/web/util.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | """
General utility routines shared by various web related modules.
"""
import Cookie
import urllib
import time
from datetime import datetime
try:
from email.utils import parsedate
except ImportError: # Python < 2.5
from email.Utils import parsedate
from tiddlyweb.serializer import Serializer
from tiddlyweb.... | 28.094915 | 78 | 0.631515 | 1,040 | 8,288 | 4.901923 | 0.234615 | 0.005492 | 0.012554 | 0.019223 | 0.139663 | 0.088858 | 0.088858 | 0.062181 | 0.041585 | 0.034916 | 0 | 0.006733 | 0.247346 | 8,288 | 294 | 79 | 28.190476 | 0.810516 | 0.015565 | 0 | 0.179012 | 0 | 0 | 0.104871 | 0.011899 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.061728 | 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 |
684d4bdae902d0db0596bf4b543c9e11be56bc82 | 4,852 | py | Python | pca/storejson.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | null | null | null | pca/storejson.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | 14 | 2021-11-26T14:43:25.000Z | 2022-03-22T00:39:17.000Z | pca/storejson.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | null | null | null | """ contains a class to store the a dictionary of properties,
as produced by the VariantMatrix class .model property,
as json.
This is required because of
a) the need to store these dictionaries for unittesting
b) the insecurity of pickle
c) the fact that pickled data doesn't unpickle properly... | 35.416058 | 105 | 0.642622 | 600 | 4,852 | 5.096667 | 0.323333 | 0.046763 | 0.041203 | 0.039241 | 0.292348 | 0.200131 | 0.200131 | 0.200131 | 0.200131 | 0.200131 | 0 | 0.001399 | 0.263603 | 4,852 | 136 | 106 | 35.676471 | 0.854464 | 0.485161 | 0 | 0.050847 | 0 | 0 | 0.065236 | 0.009632 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.067797 | false | 0.067797 | 0.101695 | 0 | 0.237288 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
684de899571ffa23d5c8e8545c75f41123902241 | 1,473 | py | Python | angr-doc/examples/android_arm_license_validation/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/android_arm_license_validation/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/android_arm_license_validation/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
'''
Quick-and-dirty solution for the (un-obfuscated) Android License Check crackme from the Obfuscation Metrics Project.
The full how-to can be found in the 'Android' section of the OWASP Mobile Security Testing Guide:
https://github.com/OWASP/owasp-mstg/blob/master/Document/0x06a-Reverse-Engineerin... | 28.882353 | 117 | 0.712831 | 208 | 1,473 | 4.956731 | 0.644231 | 0.042677 | 0.029098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058149 | 0.171079 | 1,473 | 50 | 118 | 29.46 | 0.786241 | 0.316361 | 0 | 0.105263 | 0 | 0 | 0.051051 | 0 | 0 | 0 | 0.042042 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
684e7719b1373def2aa4db87a889de1df2a74d7b | 817 | py | Python | gan/PyTorch-GAN-Mnist/model.py | hadleyhzy34/GANs-practice | 37d1dcf4e4b492e6d070b0ba72f320913af9b17a | [
"MIT"
] | null | null | null | gan/PyTorch-GAN-Mnist/model.py | hadleyhzy34/GANs-practice | 37d1dcf4e4b492e6d070b0ba72f320913af9b17a | [
"MIT"
] | null | null | null | gan/PyTorch-GAN-Mnist/model.py | hadleyhzy34/GANs-practice | 37d1dcf4e4b492e6d070b0ba72f320913af9b17a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch.nn as nn
class discriminator(nn.Module):
def __init__(self):
super(discriminator, self).__init__()
self.main = nn.Sequential(
nn.Linear(784, 256),
nn.LeakyReLU(0.2),
nn.Linear(256, 256),
nn.LeakyReLU(0.2),
... | 23.342857 | 45 | 0.50918 | 94 | 817 | 4.255319 | 0.340426 | 0.12 | 0.055 | 0.075 | 0.735 | 0.735 | 0.505 | 0.505 | 0 | 0 | 0 | 0.081132 | 0.351285 | 817 | 34 | 46 | 24.029412 | 0.673585 | 0.025704 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.074074 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
684f69b10cbb576e01399f37b5b9ba8177da1df5 | 12,815 | py | Python | cvguipy/cvhomog.py | gwparikh/cvgui | 027fea9cc0193a88d8a37a23dbc616dbf3d45f8d | [
"MIT"
] | null | null | null | cvguipy/cvhomog.py | gwparikh/cvgui | 027fea9cc0193a88d8a37a23dbc616dbf3d45f8d | [
"MIT"
] | null | null | null | cvguipy/cvhomog.py | gwparikh/cvgui | 027fea9cc0193a88d8a37a23dbc616dbf3d45f8d | [
"MIT"
] | 1 | 2017-10-22T20:23:52.000Z | 2017-10-22T20:23:52.000Z | #!/usr/bin/python
"""Classes for working with homographies easily."""
import os, sys, time, argparse, traceback
import ast
import numpy as np
import multiprocessing, queue
import cv2
from . import cvgeom
class Homography(object):
"""
A class containing a homography computed from a set of point
corresponde... | 46.6 | 190 | 0.636364 | 1,536 | 12,815 | 5.294271 | 0.23763 | 0.011067 | 0.019921 | 0.018692 | 0.253074 | 0.236104 | 0.214584 | 0.196877 | 0.196877 | 0.186055 | 0 | 0.009304 | 0.278736 | 12,815 | 275 | 191 | 46.6 | 0.870497 | 0.347405 | 0 | 0.230263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010909 | 0 | 1 | 0.125 | false | 0 | 0.039474 | 0 | 0.276316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
68563ee5168ecd51cc586767dc9cca25db8728f1 | 810 | py | Python | rasterio/enums.py | rouault/rasterio | 0b101b0414a575b263dcebefb0775b672f07cdeb | [
"BSD-3-Clause"
] | null | null | null | rasterio/enums.py | rouault/rasterio | 0b101b0414a575b263dcebefb0775b672f07cdeb | [
"BSD-3-Clause"
] | null | null | null | rasterio/enums.py | rouault/rasterio | 0b101b0414a575b263dcebefb0775b672f07cdeb | [
"BSD-3-Clause"
] | 1 | 2017-10-16T12:50:16.000Z | 2017-10-16T12:50:16.000Z |
from enum import Enum, IntEnum
class ColorInterp(IntEnum):
undefined=0
grey=1
gray=1
palette=2
red=3
green=4
blue=5
alpha=6
hue=7
saturation=8
lightness=9
cyan=10
magenta=11
yellow=12
black=13
class Resampling(Enum):
nearest='NEAREST'
gauss='GAUSS... | 14.464286 | 39 | 0.619753 | 100 | 810 | 4.98 | 0.62 | 0.060241 | 0.052209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.266667 | 810 | 55 | 40 | 14.727273 | 0.792929 | 0 | 0 | 0.045455 | 0 | 0 | 0.144623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.