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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ced8a7719384d6ad60a462b943540657f08b7e9b | 2,807 | py | Python | feffery_antd_components/AntdInput.py | Beddow/feffery-antd-components | c4372e82f8bd0baba9a5052c966775276168dcc8 | [
"MIT"
] | null | null | null | feffery_antd_components/AntdInput.py | Beddow/feffery-antd-components | c4372e82f8bd0baba9a5052c966775276168dcc8 | [
"MIT"
] | null | null | null | feffery_antd_components/AntdInput.py | Beddow/feffery-antd-components | c4372e82f8bd0baba9a5052c966775276168dcc8 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class AntdInput(Component):
"""An AntdInput component.
Keyword arguments:
- id (string; optional)
- addonAfter (string; optional)
- addonBefore (string; optional)
- allowClear (boolean; optional)
-... | 37.426667 | 579 | 0.697542 | 290 | 2,807 | 6.606897 | 0.317241 | 0.169102 | 0.020877 | 0.024008 | 0.159708 | 0.159708 | 0.159708 | 0.159708 | 0.159708 | 0.159708 | 0 | 0.000867 | 0.178482 | 2,807 | 74 | 580 | 37.932432 | 0.830009 | 0.351265 | 0 | 0 | 1 | 0 | 0.216648 | 0.012679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 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 |
ceddc87b917b9bf81d1d43a77c9fb8463dc1f8a7 | 322 | py | Python | helpers/sett/resolvers/StrategyCurveGaugeResolver.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | helpers/sett/resolvers/StrategyCurveGaugeResolver.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | helpers/sett/resolvers/StrategyCurveGaugeResolver.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | from helpers.sett.resolvers.StrategyCoreResolver import StrategyCoreResolver
class StrategyCurveGaugeResolver(StrategyCoreResolver):
def get_strategy_destinations(self):
strategy = self.manager.strategy
return {
"gauge": strategy.gauge(),
"mintr": strategy.mintr(),
... | 29.272727 | 76 | 0.689441 | 26 | 322 | 8.461538 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223602 | 322 | 10 | 77 | 32.2 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c757d903bb5fb1b18a74d7d75f11a37d2a0a0c5 | 1,215 | py | Python | rapidsms/backends/kannel/migrations/0002_auto_20150801_2142.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 330 | 2015-01-11T03:00:14.000Z | 2022-03-21T11:34:23.000Z | rapidsms/backends/kannel/migrations/0002_auto_20150801_2142.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 45 | 2015-01-06T16:14:19.000Z | 2022-03-16T13:12:53.000Z | rapidsms/backends/kannel/migrations/0002_auto_20150801_2142.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 166 | 2015-01-30T19:53:38.000Z | 2021-11-09T18:44:44.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('kannel', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='deliveryreport',
name=... | 31.153846 | 169 | 0.583539 | 113 | 1,215 | 6.079646 | 0.442478 | 0.116448 | 0.14556 | 0.16885 | 0.535662 | 0.535662 | 0.419214 | 0.419214 | 0.294032 | 0.197962 | 0 | 0.022067 | 0.291358 | 1,215 | 38 | 170 | 31.973684 | 0.775842 | 0.017284 | 0 | 0.5 | 0 | 0 | 0.159396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
0c8149fe679e6b67718d9b9f2006f44a1133e874 | 1,560 | py | Python | drift/loaders.py | monokrome/django-drift | e8a0b20e489508badd4a27e81ad41da5a0f79dcb | [
"MIT"
] | null | null | null | drift/loaders.py | monokrome/django-drift | e8a0b20e489508badd4a27e81ad41da5a0f79dcb | [
"MIT"
] | null | null | null | drift/loaders.py | monokrome/django-drift | e8a0b20e489508badd4a27e81ad41da5a0f79dcb | [
"MIT"
] | 1 | 2018-06-21T23:58:07.000Z | 2018-06-21T23:58:07.000Z | from django.conf import settings
import xlrd
import os
base_loader_error = 'The Loader class can only be used by extending it.'
extensions = getattr(
settings,
'DRIFT_LOADER_EXTENSIONS',
{
'excel': ('.xls', '.xlsx'),
'csv': ('csv',)
}
)
class Loader(object):
""" Detects and lo... | 21.971831 | 78 | 0.64359 | 201 | 1,560 | 4.855721 | 0.412935 | 0.04918 | 0.046107 | 0.02459 | 0.102459 | 0.069672 | 0.069672 | 0 | 0 | 0 | 0 | 0.000858 | 0.253205 | 1,560 | 70 | 79 | 22.285714 | 0.83691 | 0.140385 | 0 | 0.097561 | 0 | 0 | 0.076748 | 0.017477 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.170732 | false | 0.02439 | 0.073171 | 0 | 0.512195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0c8809a3d6d577b2659f56453f79358220f1af9a | 27,168 | py | Python | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/crypto/module_backends/privatekey.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/crypto/module_backends/privatekey.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/crypto/module_backends/privatekey.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org>
# Copyright: (c) 2020, Felix Fontein <felix@fontein.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ ... | 45.969543 | 147 | 0.647711 | 2,940 | 27,168 | 5.77415 | 0.119048 | 0.05655 | 0.050895 | 0.04795 | 0.511487 | 0.403334 | 0.359979 | 0.299776 | 0.245641 | 0.196395 | 0 | 0.031556 | 0.262809 | 27,168 | 590 | 148 | 46.047458 | 0.816058 | 0.090437 | 0 | 0.29718 | 0 | 0 | 0.130074 | 0.001791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078091 | false | 0.062907 | 0.052061 | 0.006508 | 0.247289 | 0.013015 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c913a8c1675d4a7585d5dc4ec7026c3d3f36021 | 1,111 | py | Python | scripts/transform_corpus.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 18 | 2015-02-11T20:11:19.000Z | 2020-11-13T23:22:47.000Z | scripts/transform_corpus.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | null | null | null | scripts/transform_corpus.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 6 | 2015-10-26T20:51:26.000Z | 2021-04-18T16:47:30.000Z |
# coding: utf-8
# In[1]:
import sys
import os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.path.pardir))
# In[2]:
import logging
logging.basicConfig(filename='log/transform_corpus.log', format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
# In[3]:
import setti... | 17.919355 | 128 | 0.706571 | 160 | 1,111 | 4.74375 | 0.36875 | 0.063241 | 0.065876 | 0.094862 | 0.225296 | 0.160738 | 0.086957 | 0 | 0 | 0 | 0 | 0.01367 | 0.144014 | 1,111 | 61 | 129 | 18.213115 | 0.784437 | 0.078308 | 0 | 0 | 0 | 0 | 0.105941 | 0.023762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c9a51ad778a53b7020da60d0d7b21689b64a58e | 3,653 | py | Python | mean-variance/fastRNN.py | luddz/folk-music-similarity | 42324aff2f3fbfa36a53c04d0e20b087d2936b06 | [
"MIT"
] | null | null | null | mean-variance/fastRNN.py | luddz/folk-music-similarity | 42324aff2f3fbfa36a53c04d0e20b087d2936b06 | [
"MIT"
] | null | null | null | mean-variance/fastRNN.py | luddz/folk-music-similarity | 42324aff2f3fbfa36a53c04d0e20b087d2936b06 | [
"MIT"
] | null | null | null | import sys
import os
import time
import importlib
if sys.version_info < (3,0):
import cPickle as pickle
else:
import pickle
import numpy as np
import argparse
import pdb
import json
def throughRNN(seed=""):
metadata_path = '../config5-wrepeats-20160112-222521.pkl'
rng_seed = 42
temperature =1.0
... | 33.513761 | 139 | 0.607993 | 550 | 3,653 | 3.88 | 0.287273 | 0.09747 | 0.142455 | 0.164011 | 0.126992 | 0.056232 | 0.024367 | 0 | 0 | 0 | 0 | 0.042914 | 0.240898 | 3,653 | 108 | 140 | 33.824074 | 0.72665 | 0.04818 | 0 | 0.06383 | 0 | 0 | 0.071429 | 0.011233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.106383 | 0.010638 | 0.159574 | 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 |
0ca6828d21e9486dae880a1c7a0f6b71889ab7a6 | 7,479 | py | Python | src/oci/identity/models/db_credential_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/identity/models/db_credential_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/identity/models/db_credential_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 30.651639 | 245 | 0.640059 | 893 | 7,479 | 5.210526 | 0.191489 | 0.039974 | 0.161186 | 0.07479 | 0.594455 | 0.528261 | 0.450032 | 0.375242 | 0.333548 | 0.32968 | 0 | 0.019238 | 0.291082 | 7,479 | 243 | 246 | 30.777778 | 0.858355 | 0.568124 | 0 | 0.084507 | 0 | 0 | 0.084347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225352 | false | 0 | 0.028169 | 0.028169 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ca76b11cdfcadae949a61d7e77bc22c59408872 | 4,889 | py | Python | src/entitas/context.py | UpUpLiu/python_entitas | 91878683f00811fa3afd0e5ab707b5054d832fec | [
"MIT"
] | 1 | 2020-03-02T08:49:38.000Z | 2020-03-02T08:49:38.000Z | src/entitas/context.py | UpUpLiu/python_entitas | 91878683f00811fa3afd0e5ab707b5054d832fec | [
"MIT"
] | null | null | null | src/entitas/context.py | UpUpLiu/python_entitas | 91878683f00811fa3afd0e5ab707b5054d832fec | [
"MIT"
] | null | null | null | from collections import deque
from .entity import Entity
from .matcher import Matcher
from .group import Group
from .exceptions import MissingEntity
class Context(object):
"""A context is a data structure managing entities."""
def __init__(self):
#: Entities retained by this context.
self._... | 31.746753 | 84 | 0.648803 | 609 | 4,889 | 4.958949 | 0.178982 | 0.059603 | 0.029801 | 0.029801 | 0.373841 | 0.287086 | 0.246358 | 0.225166 | 0.225166 | 0.225166 | 0 | 0.002476 | 0.256494 | 4,889 | 153 | 85 | 31.954248 | 0.828336 | 0.179791 | 0 | 0.186047 | 0 | 0 | 0.035129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.05814 | 0.046512 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ca81404ebba49687eb7e3a54a19c86c2331fc29 | 2,307 | py | Python | src/mmwall.py | esabouraud/mmwall | af3115a576eb67bbc95b2b65baa66ba110058756 | [
"BSD-3-Clause"
] | null | null | null | src/mmwall.py | esabouraud/mmwall | af3115a576eb67bbc95b2b65baa66ba110058756 | [
"BSD-3-Clause"
] | null | null | null | src/mmwall.py | esabouraud/mmwall | af3115a576eb67bbc95b2b65baa66ba110058756 | [
"BSD-3-Clause"
] | null | null | null | #!/bin/python
# mmwall launcher
# mmwall currently only works on Windows and CentOS, for wallpaper local and remote setting:
# Win32 API, network drive mount and psexec for Windows >= XP.
# sftp, ssh and Gnome configuration tool for CentOS >= 5.
import json
import optparse
import set_wallpaper
import ... | 37.209677 | 145 | 0.718249 | 267 | 2,307 | 6.074906 | 0.41573 | 0.066584 | 0.033292 | 0.023428 | 0.107275 | 0.107275 | 0.04439 | 0.04439 | 0.04439 | 0 | 0 | 0.004069 | 0.147811 | 2,307 | 61 | 146 | 37.819672 | 0.820956 | 0.118336 | 0 | 0.166667 | 0 | 0 | 0.238555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.166667 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ca9534b521d941f89fd915c44f427ff47379cdd | 4,520 | py | Python | jogos/migrations/0001_initial.py | rafacasa/zebra-manager | 9c2aae0f6595896388d93f2d23fa872fcce6adc3 | [
"MIT"
] | null | null | null | jogos/migrations/0001_initial.py | rafacasa/zebra-manager | 9c2aae0f6595896388d93f2d23fa872fcce6adc3 | [
"MIT"
] | null | null | null | jogos/migrations/0001_initial.py | rafacasa/zebra-manager | 9c2aae0f6595896388d93f2d23fa872fcce6adc3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-23 19:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import localflavor.br.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 54.457831 | 207 | 0.614381 | 465 | 4,520 | 5.776344 | 0.251613 | 0.135145 | 0.026061 | 0.040953 | 0.450112 | 0.450112 | 0.418094 | 0.385331 | 0.362621 | 0.254654 | 0 | 0.01118 | 0.248009 | 4,520 | 82 | 208 | 55.121951 | 0.779053 | 0.009956 | 0 | 0.32 | 1 | 0 | 0.207243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053333 | 0 | 0.106667 | 0 | 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 |
0cada3cdaedb37b3d036d59188d96eb49cc6f1d1 | 627 | py | Python | vtelem/stream/__init__.py | vkottler/vtelem | 3908f2445249ddb5f2057fe3a7f46c204b677bbb | [
"MIT"
] | 3 | 2021-02-03T01:14:44.000Z | 2022-02-27T00:14:13.000Z | vtelem/stream/__init__.py | vkottler/vtelem | 3908f2445249ddb5f2057fe3a7f46c204b677bbb | [
"MIT"
] | 27 | 2021-05-04T21:19:41.000Z | 2022-02-27T00:49:18.000Z | vtelem/stream/__init__.py | vkottler/vtelem | 3908f2445249ddb5f2057fe3a7f46c204b677bbb | [
"MIT"
] | null | null | null | """
vtelem - Some Queue wrappers and 'stream' utilities.
"""
# built-in
from queue import Empty, Queue
from typing import Any, Optional
QUEUE_TIMEOUT = 2
def queue_get(queue: Queue, timeout: int = QUEUE_TIMEOUT) -> Optional[Any]:
"""
Wrap a de-queue operation into one that will return None if the timeout
... | 21.62069 | 75 | 0.671451 | 88 | 627 | 4.715909 | 0.465909 | 0.144578 | 0.053012 | 0.096386 | 0.154217 | 0.154217 | 0 | 0 | 0 | 0 | 0 | 0.002066 | 0.22807 | 627 | 28 | 76 | 22.392857 | 0.855372 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | 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 |
0cade8025f15e490924ddad87f7445da661cf235 | 1,075 | py | Python | zeeguu/core/test/model_test_mixin.py | mircealungu/Zeeguu-API-2 | 1e8ea7f5dd0b883ed2d714b9324162b1a8edd170 | [
"MIT"
] | 8 | 2018-02-06T15:47:55.000Z | 2021-05-26T15:24:49.000Z | zeeguu/core/test/model_test_mixin.py | mircealungu/Zeeguu-API-2 | 1e8ea7f5dd0b883ed2d714b9324162b1a8edd170 | [
"MIT"
] | 57 | 2018-02-02T19:54:38.000Z | 2021-07-15T15:45:15.000Z | zeeguu/core/test/model_test_mixin.py | mircealungu/Zeeguu-API-2 | 1e8ea7f5dd0b883ed2d714b9324162b1a8edd170 | [
"MIT"
] | 13 | 2017-10-12T09:05:19.000Z | 2020-02-19T09:38:01.000Z | # import warnings
# warnings.filterwarnings("ignore", category=DeprecationWarning)
import requests_mock
import zeeguu.core.model
from faker import Faker
from unittest import TestCase
from zeeguu.core.test.test_data.mocking_the_web import mock_requests_get
class ModelTestMixIn(TestCase):
db = zeeguu.core.db
... | 26.219512 | 72 | 0.669767 | 145 | 1,075 | 4.882759 | 0.544828 | 0.042373 | 0.063559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253953 | 1,075 | 40 | 73 | 26.875 | 0.882793 | 0.339535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cb1993ba5e1ca24df75a46b06fffb0773922ed3 | 1,592 | py | Python | codes/construct_d2q.py | jacky18008/TREC-CAsT-ASCFDA | 6d3e480efe0ee14502bf862230aaf1f668e711fb | [
"MIT"
] | null | null | null | codes/construct_d2q.py | jacky18008/TREC-CAsT-ASCFDA | 6d3e480efe0ee14502bf862230aaf1f668e711fb | [
"MIT"
] | null | null | null | codes/construct_d2q.py | jacky18008/TREC-CAsT-ASCFDA | 6d3e480efe0ee14502bf862230aaf1f668e711fb | [
"MIT"
] | 2 | 2021-11-18T23:31:39.000Z | 2021-12-28T11:16:52.000Z | import torch
from transformers import T5Tokenizer, T5ForConditionalGeneration
import argparse
from tqdm import tqdm
parser = argparse.ArgumentParser(description='Generate potential queries with t5.')
parser.add_argument('--collections', help='the path to the collections')
parser.add_argument('--output', help='the path... | 35.377778 | 89 | 0.616206 | 185 | 1,592 | 5.167568 | 0.486486 | 0.025105 | 0.035565 | 0.027197 | 0.138075 | 0.104603 | 0.104603 | 0.104603 | 0 | 0 | 0 | 0.014567 | 0.26696 | 1,592 | 44 | 90 | 36.181818 | 0.804627 | 0.024497 | 0 | 0 | 1 | 0 | 0.16129 | 0.070323 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.129032 | 0 | 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 |
0cb7c4de3719280b7a472732871193c4750fe954 | 4,704 | py | Python | payloads/promethea.py | k3170makan/PyMLProjects | 0676bb89119d509c9c44d7af8820aa8d620d0e4a | [
"MIT"
] | 156 | 2017-07-26T17:33:24.000Z | 2021-11-17T16:52:20.000Z | payloads/promethea.py | k3170makan/PyMLProjects | 0676bb89119d509c9c44d7af8820aa8d620d0e4a | [
"MIT"
] | 1 | 2017-09-01T01:34:35.000Z | 2017-09-01T01:34:35.000Z | payloads/promethea.py | k3170makan/PyMLProjects | 0676bb89119d509c9c44d7af8820aa8d620d0e4a | [
"MIT"
] | 29 | 2017-07-30T13:39:45.000Z | 2021-06-01T06:17:51.000Z | #!/usr/bin/python
import numpy
from random import random
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
from sys import argv
from sys import stdout
from sys imp... | 35.104478 | 115 | 0.735757 | 737 | 4,704 | 4.578019 | 0.331072 | 0.035566 | 0.022525 | 0.015412 | 0.153823 | 0.06639 | 0.056313 | 0.032602 | 0 | 0 | 0 | 0.005698 | 0.179209 | 4,704 | 133 | 116 | 35.368421 | 0.868169 | 0.030825 | 0 | 0.028571 | 0 | 0.028571 | 0.095988 | 0.034871 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.185714 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cb7cef8756fd4d21a1eb6b8fab45bd708fe2119 | 18,247 | py | Python | sdk/python/pulumi_aws_native/dynamodb/global_table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/dynamodb/global_table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/dynamodb/global_table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 52.134286 | 157 | 0.70724 | 1,818 | 18,247 | 6.722222 | 0.09571 | 0.074707 | 0.071516 | 0.051141 | 0.757794 | 0.683414 | 0.577203 | 0.464692 | 0.412241 | 0.322805 | 0 | 0.000068 | 0.188305 | 18,247 | 349 | 158 | 52.283668 | 0.825062 | 0.056174 | 0 | 0.418182 | 1 | 0 | 0.232731 | 0.173566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152727 | false | 0.003636 | 0.025455 | 0.090909 | 0.28 | 0 | 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 |
0cbcab30c009ca6e38b804e2f517debf92f8c410 | 417 | py | Python | timeweb/timewebapp/migrations/0042_timewebmodel_tags.py | snapsnap123/TimeWeb | 9e3a3459fa71f6edf730addf3c7e15d87b6c80b5 | [
"Apache-2.0"
] | 1 | 2021-11-29T18:37:02.000Z | 2021-11-29T18:37:02.000Z | timeweb/timewebapp/migrations/0042_timewebmodel_tags.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | timeweb/timewebapp/migrations/0042_timewebmodel_tags.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-18 04:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timewebapp', '0041_alter_settingsmodel_background_image'),
]
operations = [
migrations.AddField(
model_name='timewebmodel',
... | 21.947368 | 68 | 0.621103 | 44 | 417 | 5.772727 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062295 | 0.268585 | 417 | 18 | 69 | 23.166667 | 0.770492 | 0.107914 | 0 | 0 | 1 | 0 | 0.181081 | 0.110811 | 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 |
0cbf2a7506c8a30dc6dbdb5ff9fb9b8e9babe1fc | 1,693 | py | Python | etl_server/blueprint.py | datopian/ckan-ng-harvest-app | d0f1d93ef1fb4eb2ca8e62eebc0fc124d0b3fe59 | [
"MIT"
] | 1 | 2020-03-07T02:36:25.000Z | 2020-03-07T02:36:25.000Z | etl_server/blueprint.py | datopian/ckan-ng-harvest-app | d0f1d93ef1fb4eb2ca8e62eebc0fc124d0b3fe59 | [
"MIT"
] | 5 | 2021-03-10T06:16:48.000Z | 2022-03-02T07:11:32.000Z | etl_server/blueprint.py | datopian/ckan-ng-harvest-app | d0f1d93ef1fb4eb2ca8e62eebc0fc124d0b3fe59 | [
"MIT"
] | 1 | 2020-02-16T07:39:08.000Z | 2020-02-16T07:39:08.000Z | from flask import Blueprint, request
from .controllers import Controllers
def make_blueprint(db_connection_string=None, configuration={}): # noqa
"""Create blueprint.
"""
controllers = Controllers(configuration=configuration,
connection_string=db_connection_string)
# ... | 30.781818 | 83 | 0.66391 | 174 | 1,693 | 6.149425 | 0.229885 | 0.084112 | 0.084112 | 0.106542 | 0.158879 | 0.158879 | 0.158879 | 0.08972 | 0.08972 | 0 | 0 | 0 | 0.224454 | 1,693 | 54 | 84 | 31.351852 | 0.814928 | 0.045481 | 0 | 0.166667 | 0 | 0 | 0.129434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.055556 | 0.138889 | 0.472222 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cc1e48466eb6d697dd52290957fc9fc3556ac6d | 525 | py | Python | backend/org/models.py | arturfelipe/condobus | 1c6757ad51eee78e5737469ed2ddba2e33903c80 | [
"MIT"
] | null | null | null | backend/org/models.py | arturfelipe/condobus | 1c6757ad51eee78e5737469ed2ddba2e33903c80 | [
"MIT"
] | null | null | null | backend/org/models.py | arturfelipe/condobus | 1c6757ad51eee78e5737469ed2ddba2e33903c80 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
class Organization(models.Model):
name = models.CharField(_('Name'), max_length=200)
logo = models.ImageField(null=True, blank=True)
description = models.TextField(_('Description'), null=True, blank=True)
rules = mod... | 29.166667 | 75 | 0.699048 | 62 | 525 | 5.677419 | 0.548387 | 0.068182 | 0.110795 | 0.144886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006977 | 0.180952 | 525 | 17 | 76 | 30.882353 | 0.811628 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cc689c35cdebfbdcaecd416198a6a2b27466eb2 | 1,379 | py | Python | app/protostory/portal/views.py | mizikanikyuuri/theStory | 81591b4fc8168ca6c5705f1be9f48d63d99594fd | [
"BSD-3-Clause"
] | null | null | null | app/protostory/portal/views.py | mizikanikyuuri/theStory | 81591b4fc8168ca6c5705f1be9f48d63d99594fd | [
"BSD-3-Clause"
] | null | null | null | app/protostory/portal/views.py | mizikanikyuuri/theStory | 81591b4fc8168ca6c5705f1be9f48d63d99594fd | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import get_object_or_404,render
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login ,logout
from django.http import JsonResponse, Http404
from django.views.decorators.csrf import ensure_csrf_cookie
import json
import ... | 34.475 | 112 | 0.667875 | 156 | 1,379 | 5.846154 | 0.416667 | 0.065789 | 0.075658 | 0.088816 | 0.285088 | 0.212719 | 0.212719 | 0.212719 | 0.153509 | 0.153509 | 0 | 0.005581 | 0.22045 | 1,379 | 40 | 113 | 34.475 | 0.842791 | 0.077592 | 0 | 0.25 | 0 | 0 | 0.107959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.25 | 0.03125 | 0.5 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0cc893cd4098cc0c1d27f4e0847dcfe6eafc0900 | 1,500 | py | Python | commanderbot/ext/automod/triggers/member_updated.py | CommanderBot-Dev/commanderbot-ext | c8798b4475b892c234a1e4ffbfb4fed3fb702938 | [
"MIT"
] | 4 | 2020-09-25T19:22:48.000Z | 2021-06-16T18:08:49.000Z | commanderbot/ext/automod/triggers/member_updated.py | CommanderBot-Dev/commanderbot-py | 835841f733e466c5a0e6724d4020747c55856fe3 | [
"MIT"
] | 23 | 2021-08-30T04:07:29.000Z | 2021-11-08T17:44:41.000Z | commanderbot/ext/automod/triggers/member_updated.py | CommanderBot-Dev/commanderbot-py | 835841f733e466c5a0e6724d4020747c55856fe3 | [
"MIT"
] | 3 | 2020-09-25T19:23:22.000Z | 2021-03-16T18:19:48.000Z | from dataclasses import dataclass
from typing import Optional, Type, TypeVar
from commanderbot.ext.automod import events
from commanderbot.ext.automod.automod_event import AutomodEvent
from commanderbot.ext.automod.automod_trigger import (
AutomodTrigger,
AutomodTriggerBase,
)
from commanderbot.lib import Json... | 25.862069 | 95 | 0.688667 | 174 | 1,500 | 5.856322 | 0.465517 | 0.062807 | 0.055937 | 0.076546 | 0.064769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219333 | 1,500 | 57 | 96 | 26.315789 | 0.870196 | 0.227333 | 0 | 0 | 0 | 0 | 0.016379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0.068966 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ce1ae96ec803d1eeaffd0053a893a86bae2b3c4 | 3,426 | py | Python | tests/viewcode/test_viewcode.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 7 | 2020-06-06T06:47:31.000Z | 2021-12-12T14:18:08.000Z | tests/viewcode/test_viewcode.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 15 | 2020-03-12T01:43:24.000Z | 2021-04-21T06:45:13.000Z | tests/viewcode/test_viewcode.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 1 | 2021-08-05T20:23:01.000Z | 2021-08-05T20:23:01.000Z | """
View code is basically a post processing of a parsed document tree.
In order to more easily test this it generates an entire sphinx project and
then the resultant html files are analyzed to ensure they have the right
content.
For all of these tests warnigns are treated as errors so that any warnings
from bad logic... | 32.942308 | 157 | 0.640397 | 481 | 3,426 | 4.413721 | 0.363825 | 0.030146 | 0.016957 | 0.044748 | 0.354216 | 0.339614 | 0.325954 | 0.314649 | 0.285445 | 0.24211 | 0 | 0.002336 | 0.250438 | 3,426 | 103 | 158 | 33.262136 | 0.824377 | 0.342966 | 0 | 0.453125 | 1 | 0 | 0.245924 | 0.172101 | 0 | 0 | 0 | 0 | 0.078125 | 1 | 0.015625 | false | 0 | 0.0625 | 0 | 0.078125 | 0 | 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 |
0ce577483069673b812be5933a0b0eef61d3428f | 837 | py | Python | GoogleCodeJam/2018/Qual/C-GoGopher/C.py | eltrai/algsContests | af6a0c61ab4bab0aebd4c76f93bbe06bc18152c9 | [
"MIT"
] | null | null | null | GoogleCodeJam/2018/Qual/C-GoGopher/C.py | eltrai/algsContests | af6a0c61ab4bab0aebd4c76f93bbe06bc18152c9 | [
"MIT"
] | null | null | null | GoogleCodeJam/2018/Qual/C-GoGopher/C.py | eltrai/algsContests | af6a0c61ab4bab0aebd4c76f93bbe06bc18152c9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
def readint():
return int(input())
def readints():
return map(int, input().split())
def readline():
return str(input())
def newMatrix():
return [[0 for x in range(3)] for y in range(3)]
def matrixFull(m):
for i in range(3):
for j in range(3):
... | 19.465116 | 52 | 0.480287 | 113 | 837 | 3.557522 | 0.39823 | 0.087065 | 0.079602 | 0.054726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034351 | 0.373955 | 837 | 42 | 53 | 19.928571 | 0.732824 | 0.02509 | 0 | 0.057143 | 0 | 0 | 0.009828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.028571 | 0.114286 | 0.4 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ce7a44cc5f2f51bbd023150530861940d0372cf | 15,168 | py | Python | 2D_LJ_MD.py | michael-cowan/Molecular-Dynamics | a448a2488eb9e32f80d4e3d5c62f6dd852e349a7 | [
"MIT"
] | 7 | 2018-04-15T22:10:11.000Z | 2022-02-24T04:19:26.000Z | 2D_LJ_MD.py | michael-cowan/Molecular-Dynamics | a448a2488eb9e32f80d4e3d5c62f6dd852e349a7 | [
"MIT"
] | null | null | null | 2D_LJ_MD.py | michael-cowan/Molecular-Dynamics | a448a2488eb9e32f80d4e3d5c62f6dd852e349a7 | [
"MIT"
] | 1 | 2020-12-27T10:47:07.000Z | 2020-12-27T10:47:07.000Z | """
2D Molecular Dynamics simulation that models Lennard-Jones particles with periodic boundaries
Author: Michael Cowan
"""
import numpy as np
import matplotlib.pyplot as plt
from time import time
# All values taken as estimates to represent Argon atoms in the gaseous phase
eps = 1.65E-21 # J... | 29.625 | 113 | 0.548853 | 2,289 | 15,168 | 3.531236 | 0.154653 | 0.022764 | 0.007423 | 0.010392 | 0.412842 | 0.36385 | 0.328096 | 0.306693 | 0.260794 | 0.245825 | 0 | 0.041213 | 0.297732 | 15,168 | 511 | 114 | 29.682975 | 0.717612 | 0.141416 | 0 | 0.330247 | 0 | 0 | 0.076017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009259 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ce7ff46036153751e672c6a8b2f59efa1239dc5 | 2,018 | py | Python | osc_bge/school/migrations/0004_auto_20181130_1342.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | osc_bge/school/migrations/0004_auto_20181130_1342.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | 5 | 2020-06-05T19:49:47.000Z | 2021-09-08T00:50:55.000Z | osc_bge/school/migrations/0004_auto_20181130_1342.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2018-11-30 13:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0003_auto_20181128_1859'),
]
operations = [
migrations.CreateModel(
name='SchoolPhotos',
fields=[
... | 32.031746 | 114 | 0.53221 | 180 | 2,018 | 5.777778 | 0.405556 | 0.046154 | 0.057692 | 0.144231 | 0.548077 | 0.548077 | 0.548077 | 0.444231 | 0.444231 | 0.338462 | 0 | 0.024849 | 0.341923 | 2,018 | 62 | 115 | 32.548387 | 0.758283 | 0.022299 | 0 | 0.625 | 1 | 0 | 0.130898 | 0.011669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cf3567241064f76d52cd80d390a71034fbfb40f | 327 | py | Python | presigned-url.py | MarcoPolo/hydra-booster-infra | 37bc1e2906c0c1ecc63f11bb38d716e90f706cbf | [
"MIT"
] | null | null | null | presigned-url.py | MarcoPolo/hydra-booster-infra | 37bc1e2906c0c1ecc63f11bb38d716e90f706cbf | [
"MIT"
] | 4 | 2022-03-28T17:36:58.000Z | 2022-03-28T21:16:22.000Z | presigned-url.py | MarcoPolo/hydra-booster-infra | 37bc1e2906c0c1ecc63f11bb38d716e90f706cbf | [
"MIT"
] | 2 | 2022-03-06T14:04:38.000Z | 2022-03-23T23:48:44.000Z | from sys import argv
import boto3
# unfortunately the AWS CLI cannot generate presigned S3 URLs for PutObject requests,
# so we have to do it with a proper AWS SDK
url = boto3.client('s3').generate_presigned_url(
ClientMethod='put_object',
Params={'Bucket': argv[1], 'Key': argv[2]},
ExpiresIn=3600
)
prin... | 23.357143 | 85 | 0.721713 | 50 | 327 | 4.66 | 0.8 | 0.145923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.174312 | 327 | 13 | 86 | 25.153846 | 0.825926 | 0.382263 | 0 | 0 | 1 | 0 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cf7220c412fd8a8b89fe45f17f89dba0c4ffed0 | 1,128 | py | Python | simulations/simul_abm.py | wazaahhh/pgames | acf6fbb86d689ee307b6b2f807bc29fb6a818535 | [
"MIT"
] | null | null | null | simulations/simul_abm.py | wazaahhh/pgames | acf6fbb86d689ee307b6b2f807bc29fb6a818535 | [
"MIT"
] | 9 | 2015-11-06T18:21:13.000Z | 2015-11-06T20:28:50.000Z | simulations/simul_abm.py | wazaahhh/pgames | acf6fbb86d689ee307b6b2f807bc29fb6a818535 | [
"MIT"
] | 1 | 2022-02-01T15:55:10.000Z | 2022-02-01T15:55:10.000Z | import os
import numpy as np
from datetime import datetime
constants = {}
variables = {"M" : [9],
'd' : list(np.linspace(0.7,1,4)),
's' : [0]} # + list(np.linspace(0.005,0.060,12))
#variables = {"M" : [1,2,3,5,7,9],
# 'd' : list(np.linspace(0.1,1,10)),
# 's' : [0] ... | 32.228571 | 109 | 0.545213 | 146 | 1,128 | 4.212329 | 0.39726 | 0.039024 | 0.091057 | 0.097561 | 0.139837 | 0.139837 | 0.084553 | 0.084553 | 0.084553 | 0.084553 | 0 | 0.048721 | 0.272163 | 1,128 | 35 | 110 | 32.228571 | 0.700365 | 0.154255 | 0 | 0 | 0 | 0 | 0.060063 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4900870ebec3e5c9c1bcd633d6886c384188a9d4 | 92,886 | py | Python | StRoot/StSpinPool/StChargedPionAnalysisMaker/scripts/plots/old.py | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StSpinPool/StChargedPionAnalysisMaker/scripts/plots/old.py | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StSpinPool/StChargedPionAnalysisMaker/scripts/plots/old.py | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | import os
import math
from glob import glob
import ROOT
import analysis
run5_tree_dir = '/Users/kocolosk/data/run5/tree'
run5_hist_dir = '/Users/kocolosk/data/run5/hist'
run6_tree_dir = '/Users/kocolosk/data/run6/tree'
run6_hist_dir = '/Users/kocolosk/data/run6/hist'
run5_scalar_path = os.environ['STAR'] + '/StRoot... | 38.978598 | 137 | 0.576642 | 12,410 | 92,886 | 4.224174 | 0.074134 | 0.00309 | 0.011407 | 0.004273 | 0.680649 | 0.640361 | 0.601599 | 0.569494 | 0.53943 | 0.530789 | 0 | 0.054732 | 0.262171 | 92,886 | 2,382 | 138 | 38.994962 | 0.710173 | 0.051612 | 0 | 0.515575 | 0 | 0.004834 | 0.119904 | 0.025108 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.000537 | 0.004296 | null | null | 0.048872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4902031ff8cda3cc8cad79607f73cce38a1d0ad3 | 10,696 | py | Python | scripts/kegg_parser.py | Midnighter/component-contribution | e580480a1979fa7b57b378c9a02a99f2f0b5bde6 | [
"MIT"
] | 1 | 2018-01-31T13:44:03.000Z | 2018-01-31T13:44:03.000Z | scripts/kegg_parser.py | Midnighter/component-contribution | e580480a1979fa7b57b378c9a02a99f2f0b5bde6 | [
"MIT"
] | 19 | 2017-06-07T06:28:55.000Z | 2018-06-05T13:14:17.000Z | scripts/kegg_parser.py | Midnighter/component-contribution | e580480a1979fa7b57b378c9a02a99f2f0b5bde6 | [
"MIT"
] | 1 | 2016-12-12T14:33:25.000Z | 2016-12-12T14:33:25.000Z | #!/usr/bin/python
import logging
import re
from itertools import imap
import gzip
from types import StringType
class KeggParsingException(Exception):
pass
def NormalizeNames(name_str):
"""Normalize a KEGG-style list of names."""
all_names = name_str.replace('\t', ' ').split(';')
return [n.strip() fo... | 31.366569 | 107 | 0.541417 | 1,209 | 10,696 | 4.666667 | 0.196857 | 0.036866 | 0.025523 | 0.033499 | 0.342963 | 0.306097 | 0.273839 | 0.255406 | 0.255406 | 0.238391 | 0 | 0.005597 | 0.348542 | 10,696 | 341 | 108 | 31.366569 | 0.804104 | 0.006825 | 0 | 0.345794 | 0 | 0.004673 | 0.079705 | 0.011587 | 0 | 0 | 0 | 0.002933 | 0 | 0 | null | null | 0.009346 | 0.023364 | 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 |
49042f9058d411cc01d40ded9bec2273d5562d33 | 57 | py | Python | src/testing/c1.py | nsnave/qft | 25095d65e991135f60cf2e205e23f99a10d14df0 | [
"Apache-2.0"
] | 1 | 2021-03-13T20:59:44.000Z | 2021-03-13T20:59:44.000Z | src/testing/c1.py | nsnave/quantum-framework-transpiler | 25095d65e991135f60cf2e205e23f99a10d14df0 | [
"Apache-2.0"
] | null | null | null | src/testing/c1.py | nsnave/quantum-framework-transpiler | 25095d65e991135f60cf2e205e23f99a10d14df0 | [
"Apache-2.0"
] | null | null | null |
# Random Comment
x = 3
y = x + 2
y = y * 2
print(y)
| 5.181818 | 16 | 0.473684 | 12 | 57 | 2.25 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.385965 | 57 | 10 | 17 | 5.7 | 0.685714 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4907a9af673409855cd2161699c314692d7cf30d | 3,795 | py | Python | ControlDeBasesDeDatos/MySQL.py | jaimeandrescatano/ekorre | d2e4ba6a4cdec4e3c796e18c172c4dbcf2f3ecbb | [
"MIT"
] | 2 | 2017-10-08T08:46:44.000Z | 2017-11-19T15:53:51.000Z | ControlDeBasesDeDatos/MySQL.py | jaimeandrescatano/ekorre | d2e4ba6a4cdec4e3c796e18c172c4dbcf2f3ecbb | [
"MIT"
] | null | null | null | ControlDeBasesDeDatos/MySQL.py | jaimeandrescatano/ekorre | d2e4ba6a4cdec4e3c796e18c172c4dbcf2f3ecbb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Control de una base de datos en MySQL con Python
# 16072012
# Este programa accede a una base de datos previamente creada en MySQL
# desde PHPMyAdmin, permite realizar las operaciones principales de un
# sistema CRUD
#
# - Create: crea un registro en una tabla
# - Retrieve: permite buscar y... | 27.302158 | 87 | 0.556258 | 472 | 3,795 | 4.434322 | 0.324153 | 0.068801 | 0.068323 | 0.043 | 0.389393 | 0.370282 | 0.298137 | 0.298137 | 0.298137 | 0.298137 | 0 | 0.010773 | 0.315152 | 3,795 | 138 | 88 | 27.5 | 0.794536 | 0.119631 | 0 | 0.363636 | 0 | 0 | 0.296185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034091 | null | null | 0.193182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b29ab33ea4eef27f5d47b8b9e05b66201924dca | 844 | py | Python | make_art.py | nprapps/sotomayor | 72c86f0f5950be88d0124e0b1028fa786d692838 | [
"FSFAP"
] | 1 | 2016-04-27T16:04:22.000Z | 2016-04-27T16:04:22.000Z | make_art.py | nprapps/sotomayor | 72c86f0f5950be88d0124e0b1028fa786d692838 | [
"FSFAP"
] | null | null | null | make_art.py | nprapps/sotomayor | 72c86f0f5950be88d0124e0b1028fa786d692838 | [
"FSFAP"
] | 1 | 2021-02-23T10:32:43.000Z | 2021-02-23T10:32:43.000Z | #!/usr/bin/env python
from glob import glob
import os
from shutil import rmtree
from itertools import chain
from PIL import Image
output_dir = 'www/img/art'
widths = [120, 480, 979, 1200]
rmtree(output_dir)
os.mkdir(output_dir)
for path in chain(glob('art/*.jpg'), glob('art/*.png')):
filename = os.path.split(p... | 24.823529 | 76 | 0.645735 | 124 | 844 | 4.322581 | 0.475806 | 0.067164 | 0.063433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025411 | 0.207346 | 844 | 33 | 77 | 25.575758 | 0.775785 | 0.023697 | 0 | 0 | 0 | 0 | 0.072904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b308600dfb2288d12931e915c8f9b6a44974f40 | 408 | py | Python | WebMirror/management/rss_parser_funcs/feed_parse_extractPenguTaichou.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractPenguTaichou.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractPenguTaichou.py | rrosajp/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z | def extractPenguTaichou(item):
"""
Pengu Taichou
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
if item['title'].lower().startswith('sword shisho chapter'):
return buildReleaseMessageWithType(item, 'I... | 37.090909 | 118 | 0.727941 | 53 | 408 | 5.603774 | 0.566038 | 0.090909 | 0.06734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134804 | 408 | 10 | 119 | 40.8 | 0.84136 | 0.031863 | 0 | 0 | 0 | 0 | 0.197403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
0b34f018505a241f6f7663c330aa73d3f8cc0365 | 365 | py | Python | cryptics/config.py | eigenfoo/cryptics | 5d0aee1fd608e02338f0310c6c2e280e3433cc0d | [
"BlueOak-1.0.0",
"MIT"
] | 9 | 2021-09-02T04:17:14.000Z | 2021-10-03T20:08:10.000Z | cryptics/config.py | eigenfoo/cryptics | 5d0aee1fd608e02338f0310c6c2e280e3433cc0d | [
"BlueOak-1.0.0",
"MIT"
] | 22 | 2021-09-02T20:26:41.000Z | 2022-03-19T14:30:27.000Z | cryptics/config.py | eigenfoo/cryptics | 5d0aee1fd608e02338f0310c6c2e280e3433cc0d | [
"BlueOak-1.0.0",
"MIT"
] | null | null | null | import os
import json
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
INITIALIZE_DB_SQL = os.path.join(PROJECT_DIR, "queries", "initialize-db.sql")
SITEMAPS_JSON = os.path.join(PROJECT_DIR, "sitemaps.json")
SQLITE_DATABASE = os.path.join(PROJECT_DIR, "cryptics.sqlite3")
with open(SITEMAPS_... | 28.076923 | 77 | 0.753425 | 57 | 365 | 4.596491 | 0.438596 | 0.137405 | 0.114504 | 0.194656 | 0.351145 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.09863 | 365 | 12 | 78 | 30.416667 | 0.793313 | 0 | 0 | 0 | 0 | 0 | 0.147945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
0b356523a2a18aebe86480d452aef429d72a3ec2 | 18,225 | py | Python | src/falconpy/host_group.py | CrowdStrike/falconpy | e7245202224647a2c8d134e72f27d2f6c667a1ce | [
"Unlicense"
] | 111 | 2020-11-19T00:44:18.000Z | 2022-03-03T21:02:32.000Z | src/falconpy/host_group.py | CrowdStrike/falconpy | e7245202224647a2c8d134e72f27d2f6c667a1ce | [
"Unlicense"
] | 227 | 2020-12-05T03:02:27.000Z | 2022-03-22T14:12:42.000Z | src/falconpy/host_group.py | CrowdStrike/falconpy | e7245202224647a2c8d134e72f27d2f6c667a1ce | [
"Unlicense"
] | 47 | 2020-11-23T21:00:14.000Z | 2022-03-28T18:30:19.000Z | """CrowdStrike Falcon Host Groups API interface class
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|... | 43.810096 | 108 | 0.616077 | 1,988 | 18,225 | 5.506036 | 0.160966 | 0.025489 | 0.019185 | 0.0148 | 0.674493 | 0.642701 | 0.633017 | 0.626348 | 0.621871 | 0.604239 | 0 | 0.00264 | 0.314239 | 18,225 | 415 | 109 | 43.915663 | 0.87318 | 0.62321 | 0 | 0.46087 | 0 | 0 | 0.080846 | 0.0089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078261 | false | 0.017391 | 0.052174 | 0 | 0.295652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b3ae9261950b626d94eaac554c1f66994aabe96 | 3,146 | py | Python | bin/imgt2counthist.py | laserson/vdj | 7ff5efa1e990cd6cc77a986849f4b32731b46a10 | [
"Apache-2.0"
] | 6 | 2015-02-13T06:50:09.000Z | 2020-03-06T02:01:40.000Z | bin/imgt2counthist.py | laserson/vdj | 7ff5efa1e990cd6cc77a986849f4b32731b46a10 | [
"Apache-2.0"
] | 2 | 2015-02-25T08:53:12.000Z | 2015-02-27T22:14:24.000Z | bin/imgt2counthist.py | churchlab/vdj | 7ff5efa1e990cd6cc77a986849f4b32731b46a10 | [
"Apache-2.0"
] | 5 | 2015-10-14T11:35:08.000Z | 2020-03-06T02:03:24.000Z | #! /usr/bin/env python
# Copyright 2014 Uri Laserson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 34.955556 | 150 | 0.697394 | 446 | 3,146 | 4.834081 | 0.497758 | 0.027829 | 0.020872 | 0.029221 | 0.134508 | 0.093692 | 0.093692 | 0.093692 | 0.093692 | 0.093692 | 0 | 0.027037 | 0.141767 | 3,146 | 89 | 151 | 35.348315 | 0.771481 | 0.204704 | 0 | 0.032258 | 0 | 0 | 0.121932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | 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 |
0b3b5f63b638a4f3eedbaf8c4591bd6276a33532 | 2,025 | py | Python | easymunk/abc/game_object.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | 1 | 2021-07-02T11:59:07.000Z | 2021-07-02T11:59:07.000Z | easymunk/abc/game_object.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | null | null | null | easymunk/abc/game_object.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | 1 | 2022-01-14T20:18:35.000Z | 2022-01-14T20:18:35.000Z | from abc import ABC, abstractmethod
from typing import Any, TypeVar, Optional
GOType = TypeVar("GOType", bound="GameObjectInterface")
class GameObjectInterface(ABC):
"""
A game object is a composable element in game.
"""
_parent: Optional["GameObjectInterface"] = None
def __init_subclass__(cls,... | 30.681818 | 82 | 0.619259 | 233 | 2,025 | 5.227468 | 0.450644 | 0.024631 | 0.049261 | 0.036125 | 0.047619 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289877 | 2,025 | 65 | 83 | 31.153846 | 0.84701 | 0.309136 | 0 | 0.068966 | 0 | 0 | 0.059495 | 0.017115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b3f88f0cc8d9d9950d18ecf873f5d28411727ef | 5,685 | py | Python | RunMe.py | shukkkur/storage | bf2141b1edacdba53370aa13e664d1d720df77b1 | [
"Unlicense"
] | 11 | 2021-04-20T10:02:29.000Z | 2021-11-15T04:48:31.000Z | RunMe.py | shukkkur/storage | bf2141b1edacdba53370aa13e664d1d720df77b1 | [
"Unlicense"
] | null | null | null | RunMe.py | shukkkur/storage | bf2141b1edacdba53370aa13e664d1d720df77b1 | [
"Unlicense"
] | null | null | null | __author__ = 'shukkkur'
'''
GitHub: https://github.com/shukkkur
Date: 17/05/2021
***
I build and trained the following linear model classifiers:
Ridge
SVC
KNN
Logistic Regression
Decision Tree
According to my results, SVC performs the best. The final answers would be based on these ... | 42.111111 | 157 | 0.727177 | 735 | 5,685 | 5.491156 | 0.307483 | 0.035431 | 0.074331 | 0.083251 | 0.321606 | 0.261645 | 0.236868 | 0.236868 | 0.236868 | 0.236868 | 0 | 0.010944 | 0.148109 | 5,685 | 134 | 158 | 42.425373 | 0.822424 | 0.302726 | 0 | 0.037037 | 0 | 0.222222 | 0.414884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.240741 | 0 | 0.240741 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b3fdc26dda77bd646d4040cb859860553b3e953 | 3,298 | py | Python | tests/tests/test_token.py | kjaskiewiczz/deviceauth | a98adb81f8eaaf487c82aff8847905aed8f3c02f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/tests/test_token.py | kjaskiewiczz/deviceauth | a98adb81f8eaaf487c82aff8847905aed8f3c02f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/tests/test_token.py | kjaskiewiczz/deviceauth | a98adb81f8eaaf487c82aff8847905aed8f3c02f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import bravado
import pytest
import requests
from client import BaseDevicesApiClient, ManagementClient, \
SimpleInternalClient, SimpleManagementClient
from common import Device, DevAuthorizer, device_auth_req, \
make_devid, explode_jwt
class TestToken(ManagementClient):
intclient = SimpleInternalClient(... | 35.085106 | 85 | 0.61886 | 405 | 3,298 | 4.925926 | 0.355556 | 0.045113 | 0.06015 | 0.07619 | 0.23208 | 0.192982 | 0.178947 | 0.178947 | 0.154887 | 0.154887 | 0 | 0.012304 | 0.285324 | 3,298 | 93 | 86 | 35.462366 | 0.834111 | 0.208005 | 0 | 0.272727 | 0 | 0 | 0.080154 | 0 | 0 | 0 | 0 | 0.010753 | 0.272727 | 1 | 0.018182 | false | 0 | 0.090909 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0b44b0644691ce1d4a1e76e6074488c2b74dd838 | 1,315 | py | Python | tests/test_player_draft.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 3 | 2017-02-01T15:37:23.000Z | 2017-08-31T20:41:46.000Z | tests/test_player_draft.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 41 | 2017-09-13T02:13:21.000Z | 2018-11-07T03:29:39.000Z | tests/test_player_draft.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 1 | 2017-03-09T14:58:39.000Z | 2017-03-09T14:58:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from db.player_draft import PlayerDraft
from db.team import Team
def test_find_by_id():
pdft = PlayerDraft.find_by_player_id(8475883) # Frederik Andersen
assert len(pdft) == 2
pdft = PlayerDraft.find_by_player_id(8466145) # Nick Boynton
assert len(pdft)... | 32.875 | 76 | 0.703422 | 191 | 1,315 | 4.623037 | 0.350785 | 0.05436 | 0.115515 | 0.156285 | 0.178935 | 0.065685 | 0 | 0 | 0 | 0 | 0 | 0.109972 | 0.18403 | 1,315 | 39 | 77 | 33.717949 | 0.712954 | 0.105703 | 0 | 0.071429 | 0 | 0 | 0.01458 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b4c0eef742020d7edd3b3ff98754773f29e97db | 584 | py | Python | etilog/migrations/0020_auto_20191003_1651.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | 1 | 2019-08-31T18:04:39.000Z | 2019-08-31T18:04:39.000Z | etilog/migrations/0020_auto_20191003_1651.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | 19 | 2019-12-12T01:38:49.000Z | 2022-03-12T00:26:14.000Z | etilog/migrations/0020_auto_20191003_1651.py | hodeld/etiki-prototype1 | bcae893423519f6ddfa4f67b980066e04062d9f3 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-10-03 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('etilog', '0019_auto_20190919_1704'),
]
operations = [
migrations.AddField(
model_name='impactevent',
name='article_te... | 25.391304 | 74 | 0.592466 | 62 | 584 | 5.451613 | 0.66129 | 0.106509 | 0.136095 | 0.159763 | 0.248521 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0.082126 | 0.291096 | 584 | 22 | 75 | 26.545455 | 0.7343 | 0.077055 | 0 | 0.352941 | 1 | 0 | 0.134078 | 0.042831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 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 |
0b54354a1d1f81ce157cbc62cd0b58c049419901 | 3,949 | py | Python | convrnn/train_noise.py | esizikova/anytime-prediction | 5c2672d6454a91873ca2b40796a29c6f5db5ec99 | [
"MIT"
] | 3 | 2021-06-08T10:43:42.000Z | 2022-02-17T02:20:47.000Z | convrnn/train_noise.py | esizikova/anytime-prediction | 5c2672d6454a91873ca2b40796a29c6f5db5ec99 | [
"MIT"
] | null | null | null | convrnn/train_noise.py | esizikova/anytime-prediction | 5c2672d6454a91873ca2b40796a29c6f5db5ec99 | [
"MIT"
] | 2 | 2021-06-16T17:15:42.000Z | 2021-08-28T06:04:41.000Z | import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
from PIL import Image, ImageEnhance
import cv2
import urllib
import numpy as np
from tensorflow.keras.utils import to_categorical
import glob
from random import shuffle
import h5py
import torch
from torchvision import ... | 35.258929 | 97 | 0.753862 | 592 | 3,949 | 4.876689 | 0.41723 | 0.030481 | 0.026325 | 0.022861 | 0.066505 | 0.042258 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0.133958 | 3,949 | 111 | 98 | 35.576577 | 0.823392 | 0.069131 | 0 | 0.028169 | 0 | 0 | 0.126421 | 0.01505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.309859 | 0 | 0.309859 | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b55e83d988f30b4f950174d12f4c9c7eb2ad11d | 1,768 | py | Python | calibration_tool/observer/base_observer.py | liwen-deepmotion/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | 26 | 2021-04-24T08:07:20.000Z | 2022-03-13T15:21:02.000Z | calibration_tool/observer/base_observer.py | Grandzxw/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | null | null | null | calibration_tool/observer/base_observer.py | Grandzxw/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | 9 | 2021-04-19T23:32:21.000Z | 2022-03-03T06:31:19.000Z | # Author: Liwen Liu (liwenliu@deepmotion.ai)
from typing import Iterable, Tuple, Any, Callable, TYPE_CHECKING
if TYPE_CHECKING:
from map_based_calibrator import MapBasedCalibrator
class BaseObserver(object):
"""
This is a base class for all observer classes implemented in the project.
It provides c... | 28.063492 | 78 | 0.682692 | 216 | 1,768 | 5.361111 | 0.416667 | 0.060449 | 0.051813 | 0.041451 | 0.146805 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0.002221 | 0.23586 | 1,768 | 62 | 79 | 28.516129 | 0.854922 | 0.247172 | 0 | 0.0625 | 0 | 0 | 0.013964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.0625 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b5ee177c9b32b303af82273eb74fca30a8a77d6 | 1,392 | py | Python | csv_parser.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | csv_parser.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | csv_parser.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 18 21:10:52 2017
@author: roby
"""
#data parsing di file csv con valori errati
import dateutil.parser
import csv
def parse_row(input_row, parsers):
#return [parser(value) if parser is not None else value for value, parser in zip(input_row,parsers)]
... | 28.408163 | 118 | 0.66523 | 219 | 1,392 | 4.063927 | 0.347032 | 0.033708 | 0.050562 | 0.04382 | 0.307865 | 0.288764 | 0.242697 | 0.242697 | 0.159551 | 0.159551 | 0 | 0.012322 | 0.242098 | 1,392 | 49 | 119 | 28.408163 | 0.83128 | 0.170259 | 0 | 0 | 0 | 0 | 0.013397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b5f0db9e592cafbc0221685504f4126c52a8f08 | 1,534 | py | Python | src/common/special_numbers.py | FranzDiebold/project-euler-solutions | 37633803b194eaf65d4bb242142dea835f5efd0d | [
"MIT"
] | 1 | 2019-09-27T07:05:29.000Z | 2019-09-27T07:05:29.000Z | src/common/special_numbers.py | FranzDiebold/project-euler-solutions | 37633803b194eaf65d4bb242142dea835f5efd0d | [
"MIT"
] | null | null | null | src/common/special_numbers.py | FranzDiebold/project-euler-solutions | 37633803b194eaf65d4bb242142dea835f5efd0d | [
"MIT"
] | null | null | null | """
Special numbers utility functions.
"""
# pylint: disable=invalid-name
import math
def get_triangle_number(n: int) -> int:
"""Get Triangle number `T_n=n(n+1)/2` for a given number `n`."""
return (n * (n + 1)) // 2
def is_triangle_number(number: int) -> bool:
"""Check if a given number `number` is a ... | 29.5 | 96 | 0.604302 | 274 | 1,534 | 3.30292 | 0.189781 | 0.092818 | 0.119337 | 0.086188 | 0.58453 | 0.374586 | 0.374586 | 0.349171 | 0.241989 | 0.21326 | 0 | 0.039571 | 0.209257 | 1,534 | 51 | 97 | 30.078431 | 0.702391 | 0.438722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b6313dcb837ed941f1607f3d4a5eadd42a7d260 | 4,753 | py | Python | controller/plot_step_and_weights.py | romenr/bachelorthesis | 1f4325d5f10274597efb81194b6869768cc38659 | [
"MIT"
] | 2 | 2018-12-07T11:21:24.000Z | 2021-08-31T05:41:10.000Z | controller/plot_step_and_weights.py | romenr/bachelorthesis | 1f4325d5f10274597efb81194b6869768cc38659 | [
"MIT"
] | null | null | null | controller/plot_step_and_weights.py | romenr/bachelorthesis | 1f4325d5f10274597efb81194b6869768cc38659 | [
"MIT"
] | 1 | 2021-11-07T11:56:57.000Z | 2021-11-07T11:56:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import h5py
import matplotlib.pyplot as plt
from matplotlib import gridspec
from os import path
import parameters as param
import argparse
import pandas as pd
ewma = pd.stats.moments.ewma
# Configure Command Line interface
controller = dict(tf="target ... | 34.442029 | 122 | 0.719546 | 863 | 4,753 | 3.780997 | 0.247972 | 0.011952 | 0.021453 | 0.018388 | 0.246705 | 0.186945 | 0.140975 | 0.101747 | 0.101747 | 0.101747 | 0 | 0.040668 | 0.104986 | 4,753 | 137 | 123 | 34.693431 | 0.725435 | 0.076583 | 0 | 0.161905 | 0 | 0 | 0.120831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07619 | null | null | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b63e031faaa58de511d4cb8f9880e1b7a7e4e80 | 4,034 | py | Python | tools/formatting.py | rtthread-bot/rt-thread | 8e2d2f6caba1343b775b396702157d8e52f5a0b0 | [
"Apache-2.0"
] | 15 | 2017-07-10T14:06:19.000Z | 2021-07-03T07:09:04.000Z | tools/formatting.py | rtthread-bot/rt-thread | 8e2d2f6caba1343b775b396702157d8e52f5a0b0 | [
"Apache-2.0"
] | 1 | 2020-11-08T00:08:37.000Z | 2020-11-08T00:08:37.000Z | tools/formatting.py | rtthread-bot/rt-thread | 8e2d2f6caba1343b775b396702157d8e52f5a0b0 | [
"Apache-2.0"
] | 6 | 2017-11-02T05:19:29.000Z | 2021-05-14T13:14:06.000Z | #
# File : formatting.py
# This file is part of RT-Thread RTOS
# COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 ... | 29.661765 | 94 | 0.621963 | 508 | 4,034 | 4.870079 | 0.464567 | 0.016977 | 0.015764 | 0.02304 | 0.033145 | 0.022635 | 0 | 0 | 0 | 0 | 0 | 0.035702 | 0.270947 | 4,034 | 135 | 95 | 29.881481 | 0.805508 | 0.363907 | 0 | 0.139241 | 0 | 0 | 0.077535 | 0.021471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025316 | null | null | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b6ab3614878aad457348747b4fac1825d08fccf | 1,270 | py | Python | src/translate_winogender.py | alexissavva/NLP | 100963e96ebd6aae26027c2f13f42675dbd5ed9f | [
"MIT"
] | 31 | 2019-07-28T07:56:29.000Z | 2022-03-24T17:54:11.000Z | src/translate_winogender.py | alexissavva/NLP | 100963e96ebd6aae26027c2f13f42675dbd5ed9f | [
"MIT"
] | 10 | 2020-08-04T05:07:32.000Z | 2021-11-27T17:00:58.000Z | src/translate_winogender.py | alexissavva/NLP | 100963e96ebd6aae26027c2f13f42675dbd5ed9f | [
"MIT"
] | 22 | 2019-06-11T14:56:55.000Z | 2021-11-04T13:01:33.000Z | """ Usage:
<file-name> --in=IN_FILE --langs=LANGUAGES --out=OUT_FILE [--debug]
"""
# External imports
import logging
import pdb
from pprint import pprint
from pprint import pformat
from docopt import docopt
from collections import defaultdict
from operator import itemgetter
from tqdm import tqdm
# Local imports
fr... | 30.238095 | 85 | 0.625197 | 161 | 1,270 | 4.782609 | 0.428571 | 0.058442 | 0.041558 | 0.077922 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004053 | 0.222835 | 1,270 | 41 | 86 | 30.97561 | 0.776089 | 0.111024 | 0 | 0 | 0 | 0 | 0.099641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0b6ab46ff60fc2d3ac21b035ff0d105df7bc9566 | 1,075 | py | Python | nwb_conversion_tools/datainterfaces/ecephys/spikeinterface/sipickledatainterfaces.py | Saksham20/nwb-conversion-tools | db9e06e584c5bdde89317bfb3146d7b154667036 | [
"BSD-3-Clause"
] | null | null | null | nwb_conversion_tools/datainterfaces/ecephys/spikeinterface/sipickledatainterfaces.py | Saksham20/nwb-conversion-tools | db9e06e584c5bdde89317bfb3146d7b154667036 | [
"BSD-3-Clause"
] | null | null | null | nwb_conversion_tools/datainterfaces/ecephys/spikeinterface/sipickledatainterfaces.py | Saksham20/nwb-conversion-tools | db9e06e584c5bdde89317bfb3146d7b154667036 | [
"BSD-3-Clause"
] | null | null | null | """Authors: Alessio Buccino."""
from spikeextractors import load_extractor_from_pickle
from ..baserecordingextractorinterface import BaseRecordingExtractorInterface
from ..basesortingextractorinterface import BaseSortingExtractorInterface
from ....utils import FilePathType
class SIPickleRecordingExtractorInterface(B... | 38.392857 | 107 | 0.794419 | 110 | 1,075 | 7.472727 | 0.381818 | 0.077859 | 0.062044 | 0.083942 | 0.425791 | 0.425791 | 0.425791 | 0.296837 | 0.124088 | 0.124088 | 0 | 0 | 0.138605 | 1,075 | 27 | 108 | 39.814815 | 0.887689 | 0.203721 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0b7844a71f3e5a4f0c1666b79192069b7d923929 | 918 | py | Python | hs_access_control/management/commands/groups_with_public_resources.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | null | null | null | hs_access_control/management/commands/groups_with_public_resources.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | null | null | null | hs_access_control/management/commands/groups_with_public_resources.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | null | null | null | """
This prints a list of publicly accessible resources in a group
"""
from django.core.management.base import BaseCommand
from hs_access_control.models import GroupAccess
def usage():
print("groups_with_public_resources usage:")
print(" groups_with_public_resources ")
def shorten(title, length):
if ... | 22.390244 | 62 | 0.641612 | 110 | 918 | 5.236364 | 0.536364 | 0.104167 | 0.083333 | 0.130208 | 0.121528 | 0.121528 | 0 | 0 | 0 | 0 | 0 | 0.004261 | 0.233115 | 918 | 40 | 63 | 22.95 | 0.81392 | 0.111111 | 0 | 0.083333 | 0 | 0 | 0.208178 | 0.069393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.583333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0b89d90aa343623d345ec593a9aae8bdc8cc4cc4 | 1,948 | py | Python | Submodules/Peano/src/peano/performanceanalysis/merge-log-files.py | annereinarz/ExaHyPE-Workshop-Engine | 714a6052a8accace0235fd2483566d7e9cbacb0a | [
"BSD-3-Clause"
] | 2 | 2019-08-14T22:41:26.000Z | 2020-02-04T19:30:24.000Z | Submodules/Peano/src/peano/performanceanalysis/merge-log-files.py | annereinarz/ExaHyPE-Workshop-Engine | 714a6052a8accace0235fd2483566d7e9cbacb0a | [
"BSD-3-Clause"
] | null | null | null | Submodules/Peano/src/peano/performanceanalysis/merge-log-files.py | annereinarz/ExaHyPE-Workshop-Engine | 714a6052a8accace0235fd2483566d7e9cbacb0a | [
"BSD-3-Clause"
] | 3 | 2019-07-22T10:27:36.000Z | 2020-05-11T12:25:29.000Z | import sys
import re
#
# main
#
if len(sys.argv)!=3:
print "Usage: python merge-log-files.py logfilename ranks"
print ""
print "logfilename is the name of the log files without the rank-x- prefix."
print "ranks is the number of ranks you have used for your simulation. If "
print "four MPI ranks have been us... | 33.586207 | 119 | 0.658624 | 247 | 1,948 | 5.182186 | 0.412955 | 0.035156 | 0.039844 | 0.049219 | 0.0875 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0.016556 | 0.224846 | 1,948 | 58 | 120 | 33.586207 | 0.831126 | 0.002053 | 0 | 0.090909 | 0 | 0.022727 | 0.298815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.045455 | null | null | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b8f8c96fa59e3a65ef2e78b6281946437b7f0d4 | 4,312 | py | Python | zerologon_tester.py | tothi/CVE-2020-1472 | e095e1ef10be87c01ba24637ab9fc55c970649c3 | [
"MIT"
] | 4 | 2020-09-15T13:44:39.000Z | 2021-08-17T02:17:51.000Z | zerologon_tester.py | tothi/CVE-2020-1472 | e095e1ef10be87c01ba24637ab9fc55c970649c3 | [
"MIT"
] | null | null | null | zerologon_tester.py | tothi/CVE-2020-1472 | e095e1ef10be87c01ba24637ab9fc55c970649c3 | [
"MIT"
] | 3 | 2020-09-15T13:44:50.000Z | 2021-07-07T08:19:45.000Z | #!/usr/bin/env python3
from impacket.dcerpc.v5 import nrpc, epm
from impacket.dcerpc.v5.dtypes import NULL
from impacket.dcerpc.v5 import transport
from impacket import crypto
import hmac, hashlib, struct, sys, socket, time
from binascii import hexlify, unhexlify
from subprocess import check_call
from termcolor impo... | 38.5 | 119 | 0.71846 | 578 | 4,312 | 5.200692 | 0.453287 | 0.021956 | 0.033932 | 0.01996 | 0.110446 | 0.093147 | 0.052562 | 0.052562 | 0.02994 | 0 | 0 | 0.026581 | 0.17115 | 4,312 | 111 | 120 | 38.846847 | 0.814494 | 0.190399 | 0 | 0.111111 | 0 | 0 | 0.255393 | 0.012942 | 0 | 0 | 0.005752 | 0 | 0.012346 | 1 | 0.037037 | false | 0.08642 | 0.098765 | 0 | 0.160494 | 0.209877 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b9dc330a8407cc411e746ed806a7d1eb7793697 | 221 | py | Python | anviz_sync/__init__.py | sergiocorato/anviz-sync | 15320a2a8ad43b73bb5b1a0660d1fea9dccc6085 | [
"BSD-3-Clause"
] | 11 | 2016-01-22T15:17:17.000Z | 2020-09-26T01:32:13.000Z | anviz_sync/__init__.py | sergiocorato/anviz-sync | 15320a2a8ad43b73bb5b1a0660d1fea9dccc6085 | [
"BSD-3-Clause"
] | 2 | 2017-01-24T15:44:17.000Z | 2019-08-11T23:25:22.000Z | anviz_sync/__init__.py | sergiocorato/anviz-sync | 15320a2a8ad43b73bb5b1a0660d1fea9dccc6085 | [
"BSD-3-Clause"
] | 14 | 2015-06-11T00:27:45.000Z | 2020-02-11T00:34:54.000Z | """
anviz_sync
~~~~~~~~~~
Sync Anviz Time & Attendance data with specified database.
:copyright: (c) 2014 by Augusto Roccasalva
:license: BSD, see LICENSE for more details.
"""
__version__ = '0.1.0'
| 20.090909 | 62 | 0.628959 | 27 | 221 | 4.962963 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0.230769 | 221 | 10 | 63 | 22.1 | 0.747059 | 0.769231 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ba1ca83fbd0f468dfaedc7a9ebc7edf67125d40 | 607 | py | Python | src/brewlog/tasting/forms.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 3 | 2019-03-11T04:30:06.000Z | 2020-01-26T03:21:52.000Z | src/brewlog/tasting/forms.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 23 | 2019-02-06T20:37:37.000Z | 2020-06-01T07:08:35.000Z | src/brewlog/tasting/forms.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | null | null | null | from flask_babel import lazy_gettext as _
from flask_login import current_user
from wtforms.fields import TextAreaField
from wtforms.fields.html5 import DateField
from wtforms.validators import InputRequired
from ..forms.base import BaseObjectForm
from ..models import TastingNote
class TastingNoteForm(BaseObjectForm... | 33.722222 | 65 | 0.76771 | 71 | 607 | 6.450704 | 0.492958 | 0.072052 | 0.074236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001912 | 0.138386 | 607 | 17 | 66 | 35.705882 | 0.873805 | 0 | 0 | 0 | 0 | 0 | 0.01318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.538462 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ba3e1c5598d1d54e169ef7aeb08f15c62ef4ed2 | 444 | py | Python | host_manager_19/rbac/migrations/0006_menu_weight.py | gengna92/PythonProjects | 12d223eb1ec8f90992ea87df79f10ea8c745c4cb | [
"MIT"
] | null | null | null | host_manager_19/rbac/migrations/0006_menu_weight.py | gengna92/PythonProjects | 12d223eb1ec8f90992ea87df79f10ea8c745c4cb | [
"MIT"
] | null | null | null | host_manager_19/rbac/migrations/0006_menu_weight.py | gengna92/PythonProjects | 12d223eb1ec8f90992ea87df79f10ea8c745c4cb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-16 06:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rbac', '0005_auto_20190616_1137'),
]
operations = [
migrations.AddField(
... | 21.142857 | 49 | 0.61036 | 49 | 444 | 5.346939 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108025 | 0.27027 | 444 | 20 | 50 | 22.2 | 0.700617 | 0.155405 | 0 | 0 | 1 | 0 | 0.099462 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ba6d92eaa9b31fa8c9de8e8bea99be4b70fc043 | 3,031 | py | Python | walletlib/scripts/dumpwallet.py | satoshi-n/walletlib | 272ddf0a974a4da0f417eed632e9d028ee19bf79 | [
"Unlicense"
] | null | null | null | walletlib/scripts/dumpwallet.py | satoshi-n/walletlib | 272ddf0a974a4da0f417eed632e9d028ee19bf79 | [
"Unlicense"
] | null | null | null | walletlib/scripts/dumpwallet.py | satoshi-n/walletlib | 272ddf0a974a4da0f417eed632e9d028ee19bf79 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""CLI Interface to Walletlib
This is a simple implementation to allow walletlib to be used from the cli.
It will certainly gain more features as they are added. Currently it takes a wallet.dat file and dumps either a full
seet of its contents or just the keys out.
"""
... | 36.963415 | 116 | 0.587925 | 369 | 3,031 | 4.766938 | 0.327913 | 0.066515 | 0.025014 | 0.027288 | 0.565662 | 0.565662 | 0.565662 | 0.535532 | 0.437749 | 0.437749 | 0 | 0.003268 | 0.293303 | 3,031 | 81 | 117 | 37.419753 | 0.817927 | 0.101287 | 0 | 0.492754 | 0 | 0 | 0.157701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0.086957 | 0.043478 | 0 | 0.057971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ba80c47d83e1cdf60ada32530c9f6b3b7d0be99 | 222 | py | Python | django_q/compat.py | Balletie/django-q | 03abbc960f8c35d0c4206c60ad01f08085539609 | [
"MIT"
] | null | null | null | django_q/compat.py | Balletie/django-q | 03abbc960f8c35d0c4206c60ad01f08085539609 | [
"MIT"
] | null | null | null | django_q/compat.py | Balletie/django-q | 03abbc960f8c35d0c4206c60ad01f08085539609 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
"""
Compatibility layer.
Intentionally replaces use of python-future
"""
# https://github.com/Koed00/django-q/issues/4
try:
range = xrange
except NameError:
range = range
| 14.8 | 45 | 0.738739 | 28 | 222 | 5.678571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.162162 | 222 | 14 | 46 | 15.857143 | 0.83871 | 0.193694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bab5f05bf4eda7b914196e4788f5b171b189c47 | 3,820 | py | Python | data/train/python/0bab5f05bf4eda7b914196e4788f5b171b189c47simpleActivemqMonitor.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/0bab5f05bf4eda7b914196e4788f5b171b189c47simpleActivemqMonitor.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/0bab5f05bf4eda7b914196e4788f5b171b189c47simpleActivemqMonitor.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #-*-coding:utf-8-*-
'use restful api to monitor activemq broker'
__author__ = 'afred.lyj'
import httplib
import urllib
import base64
import json
import logging
from logging.handlers import TimedRotatingFileHandler
logHandler = TimedRotatingFileHandler("logfile.log",when="d", interval=1, backupCount=5)
logFormatter... | 33.217391 | 136 | 0.652618 | 436 | 3,820 | 5.676606 | 0.385321 | 0.032323 | 0.018182 | 0.02303 | 0.180606 | 0.171313 | 0.143838 | 0.109091 | 0.109091 | 0.109091 | 0 | 0.020497 | 0.220942 | 3,820 | 114 | 137 | 33.508772 | 0.811156 | 0.097644 | 0 | 0.129412 | 0 | 0.035294 | 0.251019 | 0.090274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023529 | 0.070588 | null | null | 0.070588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0babc119862aeec76a6ee54e34c7501d9a47e572 | 17,346 | py | Python | nicu_los/src/utils/modelling.py | bt-s/NICU-length-of-stay-prediction | 8ae2f72ba90996c552e17edce9b0bcddff43eb8f | [
"MIT"
] | 2 | 2020-06-25T20:34:30.000Z | 2021-10-09T09:30:32.000Z | nicu_los/src/utils/modelling.py | bt-s/NICU-length-of-stay-prediction | 8ae2f72ba90996c552e17edce9b0bcddff43eb8f | [
"MIT"
] | null | null | null | nicu_los/src/utils/modelling.py | bt-s/NICU-length-of-stay-prediction | 8ae2f72ba90996c552e17edce9b0bcddff43eb8f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""modelling.py
Various utility functions for modelling
"""
__author__ = "Bas Straathof"
import os
import numpy as np
import tensorflow as tf
from tensorflow.keras.callbacks import Callback
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Activation, BatchNormaliza... | 34.213018 | 81 | 0.641358 | 2,106 | 17,346 | 5.120608 | 0.117759 | 0.059811 | 0.02207 | 0.021142 | 0.681194 | 0.657734 | 0.637055 | 0.626484 | 0.604599 | 0.601168 | 0 | 0.01735 | 0.255679 | 17,346 | 506 | 82 | 34.280632 | 0.817907 | 0.251816 | 0 | 0.594891 | 0 | 0 | 0.07537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032847 | false | 0 | 0.036496 | 0 | 0.09854 | 0.010949 | 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 |
0bae3b0fe662ad934a8c968c78c52e6cffd0eafc | 54,938 | py | Python | event_rpcgen.py | mengzhisuoliu/libevent | 3daebf308a01b4b2d3fb867be3d6631f7b5a2dbb | [
"Apache-2.0"
] | 8,731 | 2015-01-01T15:45:54.000Z | 2022-03-31T16:21:08.000Z | event_rpcgen.py | PrettySea/libevent | f17eb6f509b41f0f9ccb719cb939d3dad2f143cf | [
"Apache-2.0"
] | 1,052 | 2015-01-01T03:44:01.000Z | 2022-03-29T18:43:42.000Z | event_rpcgen.py | PrettySea/libevent | f17eb6f509b41f0f9ccb719cb939d3dad2f143cf | [
"Apache-2.0"
] | 3,295 | 2015-01-01T02:43:31.000Z | 2022-03-30T15:27:56.000Z | #!/usr/bin/env python
#
# Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu>
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
# All rights reserved.
#
# Generates marshaling code based on libevent.
# pylint: disable=too-many-lines
# pylint: disable=too-many-branches
# pylint: disable=too-many-public... | 28.524403 | 88 | 0.519841 | 6,090 | 54,938 | 4.501149 | 0.086864 | 0.029002 | 0.018021 | 0.00788 | 0.512987 | 0.426383 | 0.36422 | 0.299249 | 0.259996 | 0.228841 | 0 | 0.005749 | 0.328716 | 54,938 | 1,925 | 89 | 28.539221 | 0.737547 | 0.045579 | 0 | 0.440387 | 1 | 0.005961 | 0.203743 | 0.043411 | 0 | 0 | 0 | 0.000519 | 0.00149 | 1 | 0.109538 | false | 0.000745 | 0.002235 | 0.032042 | 0.216841 | 0.000745 | 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 |
0bb08f554246095377e57978a5c9cb478558174d | 700 | py | Python | ticketing_system/domain/user.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | 1 | 2020-05-16T09:24:51.000Z | 2020-05-16T09:24:51.000Z | ticketing_system/domain/user.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | null | null | null | ticketing_system/domain/user.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | 1 | 2020-10-08T13:14:27.000Z | 2020-10-08T13:14:27.000Z | from .base import Base
class User(Base):
def __init__(self, token, email, user_type, name):
self.token = token
self.email = email
self.user_type = user_type
self.name = name
@classmethod
def from_dict(cls, adict):
return cls(
token=adict['token'],
... | 22.580645 | 54 | 0.522857 | 81 | 700 | 4.283951 | 0.246914 | 0.161383 | 0.112392 | 0.092219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355714 | 700 | 30 | 55 | 23.333333 | 0.769401 | 0 | 0 | 0 | 0 | 0 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0bbbbcb604f8b241b6676495a1dba3a39a8c3c9c | 7,369 | py | Python | offlinetools/__init__.py | OpenCIOC/offlinetools | d73b151b1b17029b3d61fea23f3d09455fb04901 | [
"Apache-2.0"
] | 1 | 2018-01-31T04:39:30.000Z | 2018-01-31T04:39:30.000Z | offlinetools/__init__.py | OpenCIOC/offlinetools | d73b151b1b17029b3d61fea23f3d09455fb04901 | [
"Apache-2.0"
] | null | null | null | offlinetools/__init__.py | OpenCIOC/offlinetools | d73b151b1b17029b3d61fea23f3d09455fb04901 | [
"Apache-2.0"
] | null | null | null | # =========================================================================================
# Copyright 2016 Community Information Online Consortium (CIOC) and KCL Software Solutions Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lic... | 45.208589 | 135 | 0.708237 | 823 | 7,369 | 6.134872 | 0.27582 | 0.055258 | 0.041196 | 0.079224 | 0.323232 | 0.318281 | 0.300852 | 0.273718 | 0.227966 | 0.146168 | 0 | 0.001935 | 0.158502 | 7,369 | 162 | 136 | 45.487654 | 0.812288 | 0.116841 | 0 | 0.076923 | 0 | 0 | 0.228919 | 0.130569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.144231 | 0.144231 | 0.009615 | 0.240385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7e310a9f2494e5100488d1f8ab2800da75cb566 | 1,347 | py | Python | crud/migrations/0008_auto_20210701_0715.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | null | null | null | crud/migrations/0008_auto_20210701_0715.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 18 | 2021-07-01T08:35:13.000Z | 2021-07-25T08:18:09.000Z | crud/migrations/0008_auto_20210701_0715.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 1 | 2021-07-13T05:12:14.000Z | 2021-07-13T05:12:14.000Z | # Generated by Django 3.2.4 on 2021-07-01 07:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('crud', '0007_auto_202107... | 36.405405 | 157 | 0.591685 | 153 | 1,347 | 5.071895 | 0.470588 | 0.103093 | 0.128866 | 0.149485 | 0.409794 | 0.409794 | 0.31701 | 0.31701 | 0.260309 | 0.141753 | 0 | 0.036275 | 0.242762 | 1,347 | 36 | 158 | 37.416667 | 0.72451 | 0.033408 | 0 | 0.4 | 1 | 0 | 0.113077 | 0.017692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7eacd98dd24ed8bd44cbbfa9dc97a5284c1d867 | 303 | py | Python | code/create-tinsley.py | diaaalfar/web-app-python | 5ab31e9d490d43cbac0ca0a97c3146357be9e62e | [
"CC-BY-4.0"
] | 7 | 2015-03-08T10:26:31.000Z | 2021-02-24T15:08:26.000Z | code/create-tinsley.py | diaaalfar/web-app-python | 5ab31e9d490d43cbac0ca0a97c3146357be9e62e | [
"CC-BY-4.0"
] | null | null | null | code/create-tinsley.py | diaaalfar/web-app-python | 5ab31e9d490d43cbac0ca0a97c3146357be9e62e | [
"CC-BY-4.0"
] | 11 | 2015-03-07T22:33:58.000Z | 2021-01-26T14:52:52.000Z | import jinja2
loader = jinja2.FileSystemLoader(['.'])
environment = jinja2.Environment(loader=loader)
template = environment.get_template('biography.html')
who = 'Beatrice Tinsley'
what = ['Born 1941', 'Died 1981', 'Studied stellar aging']
result = template.render(name=who, facts=what)
print result
| 25.25 | 58 | 0.752475 | 36 | 303 | 6.305556 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040741 | 0.108911 | 303 | 11 | 59 | 27.545455 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.231023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7eb695c28529da903bcd0d059280cbbcf70e557 | 1,119 | py | Python | rnacentral/portal/models/taxonomy.py | RNAcentral/rnacentral-webcode | be29973373c24c052d99c033123c7769a58aff05 | [
"Apache-2.0"
] | 21 | 2015-01-17T10:37:02.000Z | 2021-12-21T13:37:53.000Z | rnacentral/portal/models/taxonomy.py | RNAcentral/rnacentral-webcode | be29973373c24c052d99c033123c7769a58aff05 | [
"Apache-2.0"
] | 437 | 2015-01-29T16:36:54.000Z | 2022-01-21T18:12:20.000Z | rnacentral/portal/models/taxonomy.py | RNAcentral/rnacentral-webcode | be29973373c24c052d99c033123c7769a58aff05 | [
"Apache-2.0"
] | 7 | 2015-01-17T10:37:12.000Z | 2022-03-15T23:51:02.000Z | """
Copyright [2009-2019] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 36.096774 | 94 | 0.759607 | 153 | 1,119 | 5.496732 | 0.653595 | 0.071344 | 0.030916 | 0.03805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012807 | 0.162645 | 1,119 | 30 | 95 | 37.3 | 0.884739 | 0.521001 | 0 | 0 | 0 | 0 | 0.051136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7fd0fa75d6d3ff13d58ade53235d11af221f661 | 7,756 | py | Python | onlinepayments/sdk/domain/mobile_payment_method_specific_input.py | wl-online-payments-direct/sdk-python2 | eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04 | [
"Apache-2.0"
] | null | null | null | onlinepayments/sdk/domain/mobile_payment_method_specific_input.py | wl-online-payments-direct/sdk-python2 | eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04 | [
"Apache-2.0"
] | null | null | null | onlinepayments/sdk/domain/mobile_payment_method_specific_input.py | wl-online-payments-direct/sdk-python2 | eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This class was auto-generated.
#
from onlinepayments.sdk.data_object import DataObject
from onlinepayments.sdk.domain.decrypted_payment_data import DecryptedPaymentData
from onlinepayments.sdk.domain.mobile_payment_product320_specific_input import MobilePaymentProduct320SpecificInput
class... | 42.615385 | 245 | 0.707452 | 851 | 7,756 | 6.216216 | 0.199765 | 0.054064 | 0.049149 | 0.062382 | 0.305293 | 0.210964 | 0.088091 | 0.076371 | 0.038941 | 0.020794 | 0 | 0.010688 | 0.227953 | 7,756 | 181 | 246 | 42.850829 | 0.872745 | 0.291129 | 0 | 0.076923 | 1 | 0 | 0.113588 | 0.029075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173077 | false | 0 | 0.028846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7fda1357c3bc11f81be5a1eafa2cea9ea674b26 | 461 | py | Python | preserialize/deconstructor/builtins.py | jahs/preserialize | 1a1bb3f6e2f2c97d26b94afdd941dc2906c1f16e | [
"MIT"
] | 2 | 2021-02-20T13:06:06.000Z | 2021-05-06T12:29:44.000Z | preserialize/deconstructor/builtins.py | jahs/preserialize | 1a1bb3f6e2f2c97d26b94afdd941dc2906c1f16e | [
"MIT"
] | null | null | null | preserialize/deconstructor/builtins.py | jahs/preserialize | 1a1bb3f6e2f2c97d26b94afdd941dc2906c1f16e | [
"MIT"
] | 1 | 2019-03-07T03:01:24.000Z | 2019-03-07T03:01:24.000Z | import importlib
from .. import Deconstructor, STR
class TypeDeconstructor(Deconstructor):
name = u"type"
def deconstruct(self, obj):
return None, {u"name" : STR(obj.__name__),
u"module" : STR(obj.__module__)}
def construct(self, args, kwargs):
class_name, module_n... | 27.117647 | 66 | 0.642082 | 53 | 461 | 5.339623 | 0.433962 | 0.035336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240781 | 461 | 16 | 67 | 28.8125 | 0.808571 | 0.017354 | 0 | 0 | 0 | 0 | 0.053215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f0068f10c916edc2e4643f6d22c4d9a2f23cd658 | 5,309 | py | Python | pysnmp-with-texts/NBS-NTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/NBS-NTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/NBS-NTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module NBS-NTP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-NTP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:17:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 136.128205 | 769 | 0.788661 | 650 | 5,309 | 6.438462 | 0.343077 | 0.045878 | 0.080287 | 0.006691 | 0.290323 | 0.160812 | 0.147909 | 0.116368 | 0.116368 | 0.116368 | 0 | 0.044658 | 0.097382 | 5,309 | 38 | 770 | 139.710526 | 0.828673 | 0.059522 | 0 | 0 | 0 | 0.096774 | 0.412119 | 0.014647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.225806 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f008a0a65be371ea4339bb3acc9af7151c2144d4 | 1,244 | py | Python | c_test_environment/c_index_strings.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 61 | 2015-02-09T17:27:40.000Z | 2022-03-28T14:37:53.000Z | c_test_environment/c_index_strings.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 201 | 2015-01-03T02:46:19.000Z | 2017-09-19T02:16:36.000Z | c_test_environment/c_index_strings.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 17 | 2015-06-03T12:01:30.000Z | 2021-11-27T15:49:21.000Z | import csv
import sys
#TODO take a schema as input
class WordIndexer:
def __init__(self, indexf):
self.words = {}
self.count = 0
self.indexfw = open(indexf, 'w')
def add_word(self, w):
if w in self.words:
return self.words[w]
else:
self.indexfw... | 21.448276 | 68 | 0.537781 | 162 | 1,244 | 4.012346 | 0.382716 | 0.053846 | 0.030769 | 0.036923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008505 | 0.338424 | 1,244 | 57 | 69 | 21.824561 | 0.781288 | 0.021704 | 0 | 0.05 | 0 | 0 | 0.04122 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f01ed9aa22eff9e682277d6401a2222b0160d5f5 | 1,284 | py | Python | handlers/base_handler.py | Krishna10798/Multi-User-Blog | a7b177acc4f900bfa92d00435c94ffbde1570496 | [
"MIT"
] | 5 | 2016-06-03T17:25:31.000Z | 2017-10-01T19:06:53.000Z | handlers/base_handler.py | Krishna10798/Multi-User-Blog | a7b177acc4f900bfa92d00435c94ffbde1570496 | [
"MIT"
] | 6 | 2017-01-22T20:13:22.000Z | 2017-02-07T21:32:01.000Z | handlers/base_handler.py | Krishna10798/Multi-User-Blog | a7b177acc4f900bfa92d00435c94ffbde1570496 | [
"MIT"
] | 2 | 2017-04-05T10:45:35.000Z | 2020-10-02T08:17:56.000Z | import webapp2
import os
import jinja2
from utility import check_secure_val, filterKey, showCount
from models import User
template_dir = os.path.join(os.path.dirname(__file__), '../views')
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir),
autoescape=True)
jinja... | 31.317073 | 76 | 0.661994 | 161 | 1,284 | 5.068323 | 0.36646 | 0.039216 | 0.0625 | 0.056373 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.224299 | 1,284 | 40 | 77 | 32.1 | 0.813253 | 0 | 0 | 0.121212 | 0 | 0 | 0.030374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.151515 | 0.030303 | 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 |
f026a0ed40c99ac5e7f820ae2e99d3e48ca1f633 | 8,570 | py | Python | proposals/migrations/0034_auto_20211213_1503.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 2 | 2017-04-22T11:07:13.000Z | 2018-03-02T12:23:24.000Z | proposals/migrations/0034_auto_20211213_1503.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 6 | 2017-07-24T09:59:13.000Z | 2019-04-01T15:15:57.000Z | proposals/migrations/0034_auto_20211213_1503.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-12-13 14:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import main.validators
import proposals.utils.proposal_utils
import proposals.validators
class Migration(migrations.Migration):
dependencies = [
('p... | 69.112903 | 799 | 0.691715 | 1,047 | 8,570 | 5.56829 | 0.297039 | 0.072041 | 0.090051 | 0.10446 | 0.423842 | 0.383019 | 0.295369 | 0.236707 | 0.197942 | 0.162264 | 0 | 0.007594 | 0.216336 | 8,570 | 123 | 800 | 69.674797 | 0.860482 | 0.005368 | 0 | 0.529915 | 1 | 0.059829 | 0.462802 | 0.028397 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008547 | 0.051282 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f03213b73c77b901cb8df3746588953d924e7d8a | 15,487 | py | Python | networkapi/filter/models.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/filter/models.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/filter/models.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lic... | 39.108586 | 158 | 0.579712 | 1,884 | 15,487 | 4.571125 | 0.166136 | 0.005109 | 0.00627 | 0.006503 | 0.436368 | 0.394566 | 0.356828 | 0.317348 | 0.292499 | 0.286693 | 0 | 0.014279 | 0.335249 | 15,487 | 395 | 159 | 39.207595 | 0.822244 | 0.123071 | 0 | 0.309623 | 0 | 0 | 0.068169 | 0.00407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004184 | 0.058577 | 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 |
f0323c4e790b98eec47779e06cfe40ddc28a8e3e | 1,535 | py | Python | tickets/migrations/0001_initial.py | dieisonborges/sicario | 3282c7bc89e7e6ae087ab4b67a9387dca9c71a4f | [
"MIT"
] | 1 | 2019-04-16T12:42:36.000Z | 2019-04-16T12:42:36.000Z | tickets/migrations/0001_initial.py | dieisonborges/sicario | 3282c7bc89e7e6ae087ab4b67a9387dca9c71a4f | [
"MIT"
] | 11 | 2019-02-28T02:39:56.000Z | 2019-02-28T19:19:15.000Z | tickets/migrations/0001_initial.py | dieisonborges/sicario | 3282c7bc89e7e6ae087ab4b67a9387dca9c71a4f | [
"MIT"
] | 1 | 2019-04-28T13:36:44.000Z | 2019-04-28T13:36:44.000Z | # Generated by Django 3.1.2 on 2020-10-20 19:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 39.358974 | 118 | 0.616287 | 161 | 1,535 | 5.732919 | 0.378882 | 0.043337 | 0.097508 | 0.130011 | 0.577465 | 0.577465 | 0.577465 | 0.577465 | 0.577465 | 0.577465 | 0 | 0.02354 | 0.252769 | 1,535 | 38 | 119 | 40.394737 | 0.781168 | 0.029316 | 0 | 0.516129 | 1 | 0 | 0.078629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 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 |
f0372776b6fc6704ba32f05904648f54115bfdf7 | 1,961 | py | Python | gen_colors.py | kewitz/master | fd07c7ec40bc72e8870b2bdff770390487977a2f | [
"MIT"
] | 3 | 2015-03-23T20:23:55.000Z | 2020-04-14T15:18:43.000Z | gen_colors.py | kewitz/master | fd07c7ec40bc72e8870b2bdff770390487977a2f | [
"MIT"
] | null | null | null | gen_colors.py | kewitz/master | fd07c7ec40bc72e8870b2bdff770390487977a2f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 Leonardo Kewitz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... | 36.314815 | 81 | 0.697093 | 308 | 1,961 | 4.428571 | 0.50974 | 0.064516 | 0.019062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011118 | 0.220296 | 1,961 | 54 | 82 | 36.314815 | 0.880968 | 0.022947 | 0 | 0 | 0 | 0 | 0.110303 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0378c2f854193620448f466dc0b72ed59fcdad7 | 1,036 | py | Python | setup.py | tuanle618/Img2Mol | 2c9f5aec95f380b1ebab279c43baf57a3bef622b | [
"Apache-2.0"
] | 53 | 2021-03-29T20:35:27.000Z | 2022-03-31T08:50:32.000Z | setup.py | tuanle618/Img2Mol | 2c9f5aec95f380b1ebab279c43baf57a3bef622b | [
"Apache-2.0"
] | 5 | 2022-01-07T08:21:44.000Z | 2022-03-17T07:30:49.000Z | setup.py | tuanle618/Img2Mol | 2c9f5aec95f380b1ebab279c43baf57a3bef622b | [
"Apache-2.0"
] | 20 | 2021-03-30T06:48:51.000Z | 2022-03-21T09:33:49.000Z | # Copyright 2021 Machine Learning Research @ Bayer AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 34.533333 | 78 | 0.736486 | 149 | 1,036 | 5.114094 | 0.66443 | 0.07874 | 0.052493 | 0.055118 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017361 | 0.166023 | 1,036 | 29 | 79 | 35.724138 | 0.864583 | 0.584942 | 0 | 0 | 0 | 0 | 0.546117 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f03facc7daaa11fe440c74f8b6e911632473e320 | 8,670 | py | Python | cmake_targets/autotests/tools/configure_cots_bandrich_ue.py | t0930198/OAI_nb_IoT | 45212d3b2fd22fdeec8e0062844eaff8de3039a0 | [
"Apache-2.0"
] | 2 | 2018-01-08T06:59:34.000Z | 2019-04-07T13:56:25.000Z | cmake_targets/autotests/tools/configure_cots_bandrich_ue.py | t0930198/OAI_nb_IoT | 45212d3b2fd22fdeec8e0062844eaff8de3039a0 | [
"Apache-2.0"
] | 1 | 2021-05-28T09:06:21.000Z | 2021-05-28T14:49:39.000Z | cmake_targets/autotests/tools/configure_cots_bandrich_ue.py | t0930198/OAI_nb_IoT | 45212d3b2fd22fdeec8e0062844eaff8de3039a0 | [
"Apache-2.0"
] | 5 | 2019-02-14T16:06:26.000Z | 2022-01-05T03:52:29.000Z | #!/usr/bin/python
#/*
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# * contributor license agreements. See the NOTICE file distributed with
# * this work for additional information regarding copyright ownership.
# * The OpenAirInterface Software Alliance licenses this file to You und... | 34.268775 | 174 | 0.607612 | 1,162 | 8,670 | 4.430293 | 0.296902 | 0.044678 | 0.022727 | 0.019425 | 0.217366 | 0.14899 | 0.121018 | 0.080031 | 0.059052 | 0.059052 | 0 | 0.01425 | 0.255363 | 8,670 | 252 | 175 | 34.404762 | 0.783147 | 0.238408 | 0 | 0.255556 | 0 | 0.005556 | 0.25286 | 0.021504 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072222 | null | null | 0.161111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f04423800a8ee69b3ed48b1f63ad602ff0e865c1 | 3,766 | py | Python | home/scripts/memory/genld.py | ParksProjets/Mips-Applications | d4284a5ee357b0e5f348b9af28bb0d90c036ae99 | [
"MIT"
] | 1 | 2019-01-08T08:41:22.000Z | 2019-01-08T08:41:22.000Z | home/scripts/memory/genld.py | ParksProjets/Mips-Applications | d4284a5ee357b0e5f348b9af28bb0d90c036ae99 | [
"MIT"
] | null | null | null | home/scripts/memory/genld.py | ParksProjets/Mips-Applications | d4284a5ee357b0e5f348b9af28bb0d90c036ae99 | [
"MIT"
] | null | null | null | """
Generate the LD script.
Copyright (C) 2018, Guillaume Gonnet
License MIT
"""
import io, os.path as path
import argparse
import configparser
import json
import re
from getobjsizes import get_sections_size_prefixed
from sectionsutils import (split_sections, get_mem_sections as refine_sections,
sort_sections,... | 25.106667 | 80 | 0.63197 | 499 | 3,766 | 4.673347 | 0.284569 | 0.027444 | 0.023585 | 0.024443 | 0.120497 | 0.091338 | 0.056604 | 0 | 0 | 0 | 0 | 0.004384 | 0.212693 | 3,766 | 149 | 81 | 25.275168 | 0.782125 | 0.082315 | 0 | 0.070588 | 1 | 0 | 0.245724 | 0.011404 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.082353 | false | 0 | 0.082353 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f048b82a2d65e667caf412003e8823a6599b7fec | 8,711 | py | Python | pysnmp-with-texts/JUNIPER-WX-STATUS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/JUNIPER-WX-STATUS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/JUNIPER-WX-STATUS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module JUNIPER-WX-STATUS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-WX-GLOBAL-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:01:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 124.442857 | 943 | 0.787051 | 938 | 8,711 | 7.309168 | 0.180171 | 0.012544 | 0.110268 | 0.010502 | 0.4243 | 0.280338 | 0.280338 | 0.256418 | 0.237165 | 0.237165 | 0 | 0.060295 | 0.08231 | 8,711 | 69 | 944 | 126.246377 | 0.797348 | 0.038572 | 0 | 0 | 0 | 0 | 0.201171 | 0.024265 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112903 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f04e0691b98b7051a421a3bab74130af7539810b | 335 | py | Python | test/models/Group.py | cofepy/torm | a2f0f1b19eed24f9b1b6af139637c98362760d3f | [
"MIT"
] | 2 | 2020-06-28T03:00:18.000Z | 2020-07-15T16:14:39.000Z | test/models/Group.py | cofepy/torm | a2f0f1b19eed24f9b1b6af139637c98362760d3f | [
"MIT"
] | null | null | null | test/models/Group.py | cofepy/torm | a2f0f1b19eed24f9b1b6af139637c98362760d3f | [
"MIT"
] | null | null | null | import wpath
from torm import Model
from torm import f
class Group(Model):
__config__ = "mongo"
group = f.EmailList()
group_hash = f.Str()
display_name = f.Str()
update_at = f.Timestamp()
create_at = f.Timestamp()
user_email = 'thhk06@163.com'
groups = Group.FindMany({"group": user_email})... | 16.75 | 46 | 0.671642 | 47 | 335 | 4.574468 | 0.574468 | 0.074419 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0.202985 | 335 | 19 | 47 | 17.631579 | 0.786517 | 0 | 0 | 0 | 0 | 0 | 0.071642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.769231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f0552c6a35265695f0b2bc161a46ed5c97c59b0f | 1,128 | py | Python | 2021/day-06/python/main.py | cdrowley/advent-of-code | e9f57db31cb5a5b87accfdd55c42965790ea19e6 | [
"MIT"
] | null | null | null | 2021/day-06/python/main.py | cdrowley/advent-of-code | e9f57db31cb5a5b87accfdd55c42965790ea19e6 | [
"MIT"
] | null | null | null | 2021/day-06/python/main.py | cdrowley/advent-of-code | e9f57db31cb5a5b87accfdd55c42965790ea19e6 | [
"MIT"
] | null | null | null | def load_parse_data(path: str) -> list:
with open(path, mode='r', encoding="utf-8") as f:
return list(map(int, f.read().split(',')))
def school_by_age(data: list) -> list:
school_by_age = [0] * 9
for age in data:
school_by_age[age] += 1
return school_by_age
def model_school_growth(sc... | 31.333333 | 69 | 0.613475 | 164 | 1,128 | 3.878049 | 0.304878 | 0.163522 | 0.224843 | 0.070755 | 0.462264 | 0.267296 | 0.138365 | 0.138365 | 0.138365 | 0.138365 | 0 | 0.015368 | 0.192376 | 1,128 | 35 | 70 | 32.228571 | 0.682766 | 0 | 0 | 0.08 | 0 | 0 | 0.117908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.08 | 0.4 | 0.16 | 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 |
f055fc75629c7df5b793b101cdce7d079583e589 | 14,805 | py | Python | bestflags/task.py | jingpad-bsp/android_external_toolchain-utils | 6d59b0c61a2bfed55d783ee68978cf7352d6bc5e | [
"BSD-3-Clause"
] | null | null | null | bestflags/task.py | jingpad-bsp/android_external_toolchain-utils | 6d59b0c61a2bfed55d783ee68978cf7352d6bc5e | [
"BSD-3-Clause"
] | null | null | null | bestflags/task.py | jingpad-bsp/android_external_toolchain-utils | 6d59b0c61a2bfed55d783ee68978cf7352d6bc5e | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A reproducing entity.
Part of the Chrome build flags optimization.
The Task class is used by different modules. Each module fills in the
correspon... | 32.827051 | 80 | 0.683012 | 2,084 | 14,805 | 4.698656 | 0.153071 | 0.013787 | 0.003676 | 0.002859 | 0.405637 | 0.34518 | 0.307904 | 0.277778 | 0.251634 | 0.208129 | 0 | 0.0009 | 0.249375 | 14,805 | 450 | 81 | 32.9 | 0.88023 | 0.23823 | 0 | 0.216867 | 0 | 0 | 0.02927 | 0.006262 | 0 | 0 | 0 | 0 | 0.054217 | 0 | null | null | 0 | 0.024096 | 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 |
f058789099e648f37ed2b1c5f8e2fcf2275ebc52 | 9,481 | py | Python | python_exceptions_improved/debug_exception.py | sk-/python-exceptions-improved | 089f7389bb54757d768e046f2ddf095343d83f65 | [
"Apache-2.0"
] | null | null | null | python_exceptions_improved/debug_exception.py | sk-/python-exceptions-improved | 089f7389bb54757d768e046f2ddf095343d83f65 | [
"Apache-2.0"
] | null | null | null | python_exceptions_improved/debug_exception.py | sk-/python-exceptions-improved | 089f7389bb54757d768e046f2ddf095343d83f65 | [
"Apache-2.0"
] | 1 | 2019-11-24T22:17:56.000Z | 2019-11-24T22:17:56.000Z | # Copyright 2013-2014 Sebastian Kreft
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.623016 | 148 | 0.596456 | 1,235 | 9,481 | 4.339271 | 0.217004 | 0.031722 | 0.026684 | 0.028364 | 0.320022 | 0.251539 | 0.206195 | 0.133794 | 0.105057 | 0.078559 | 0 | 0.007916 | 0.293851 | 9,481 | 251 | 149 | 37.772908 | 0.792532 | 0.075203 | 0 | 0.190476 | 0 | 0.015873 | 0.069765 | 0.01376 | 0 | 0 | 0 | 0.003984 | 0 | 0 | null | null | 0 | 0.058201 | 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 |
f05f7395122145af43a903fb2de353658f3fdfa5 | 15,125 | py | Python | lstm_deep_name_generator.py | Ladvien/gan_name_maker | ac2cb733656c82d254673398926865a7c53d3d1b | [
"MIT"
] | null | null | null | lstm_deep_name_generator.py | Ladvien/gan_name_maker | ac2cb733656c82d254673398926865a7c53d3d1b | [
"MIT"
] | null | null | null | lstm_deep_name_generator.py | Ladvien/gan_name_maker | ac2cb733656c82d254673398926865a7c53d3d1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""deep_name_generator.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Y_WqpnCdnBFm3142rtp6zlZQaZNkF3xi
# Deep Name Generator
This project is meant to be a proof-of-concept. Showing "organic" first names can be generate... | 31.379668 | 287 | 0.699835 | 2,089 | 15,125 | 4.845381 | 0.223552 | 0.006718 | 0.008299 | 0.003952 | 0.21557 | 0.167556 | 0.14266 | 0.125568 | 0.114503 | 0.103636 | 0 | 0.021396 | 0.187306 | 15,125 | 481 | 288 | 31.444906 | 0.802066 | 0.315835 | 0 | 0.123932 | 1 | 0.004274 | 0.088873 | 0.019342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029915 | false | 0 | 0.055556 | 0.008547 | 0.115385 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f060398f854a4a031eb2c7041ebe6dd047e2b49d | 7,670 | py | Python | networkapi/api_pools/tests/sanity/test_pool_put_spec.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/api_pools/tests/sanity/test_pool_put_spec.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/api_pools/tests/sanity/test_pool_put_spec.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
import json
import logging
from django.core.management import call_command
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
log = logging.getLogger(__name__)
def setup():
call_command(
'loaddata',
'networkapi/system/fixtures/... | 40.157068 | 96 | 0.696871 | 962 | 7,670 | 5.136175 | 0.122661 | 0.051002 | 0.056669 | 0.080955 | 0.839911 | 0.674357 | 0.537543 | 0.508804 | 0.508804 | 0.501316 | 0 | 0.006721 | 0.204694 | 7,670 | 190 | 97 | 40.368421 | 0.803279 | 0.083572 | 0 | 0.401575 | 0 | 0 | 0.345541 | 0.298639 | 0 | 0 | 0 | 0 | 0.023622 | 1 | 0.188976 | false | 0.007874 | 0.03937 | 0 | 0.244094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
f068cd633502d4cf1ad328198c391318101ea0e7 | 3,376 | py | Python | tests/test_util.py | nozyh/maf | 8bdf36d0c2ab56e09e2b4747fec8138c11a3c9c3 | [
"BSD-2-Clause"
] | null | null | null | tests/test_util.py | nozyh/maf | 8bdf36d0c2ab56e09e2b4747fec8138c11a3c9c3 | [
"BSD-2-Clause"
] | null | null | null | tests/test_util.py | nozyh/maf | 8bdf36d0c2ab56e09e2b4747fec8138c11a3c9c3 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2013, Preferred Infrastructure, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this l... | 39.255814 | 78 | 0.606635 | 438 | 3,376 | 4.621005 | 0.372146 | 0.031126 | 0.025692 | 0.025198 | 0.130435 | 0.086957 | 0.067194 | 0.067194 | 0.067194 | 0.067194 | 0 | 0.018868 | 0.262145 | 3,376 | 85 | 79 | 39.717647 | 0.793657 | 0.393365 | 0 | 0.081633 | 0 | 0 | 0.034108 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.204082 | false | 0 | 0.061224 | 0 | 0.326531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f06905cc05a1ae77a742b9e44dc939b6d0892ea0 | 269 | py | Python | setup.py | EpicScizor/climatenet | 2d449c4f9700c5ed06f98396378549a4f1d5e9e2 | [
"Apache-2.0"
] | null | null | null | setup.py | EpicScizor/climatenet | 2d449c4f9700c5ed06f98396378549a4f1d5e9e2 | [
"Apache-2.0"
] | null | null | null | setup.py | EpicScizor/climatenet | 2d449c4f9700c5ed06f98396378549a4f1d5e9e2 | [
"Apache-2.0"
] | null | null | null | #
# This is a setup file for Cython
#
#
#
#
#
#
from setuptools import setup
from Cython.Build import cythonize
setup(
name = "Climate",
ext_modules = cythonize(["*.py"],
build_dir="output"),
)
#python setup.py build_ext --inplace | 14.157895 | 48 | 0.60223 | 32 | 269 | 4.96875 | 0.65625 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275093 | 269 | 19 | 49 | 14.157895 | 0.815385 | 0.245353 | 0 | 0 | 0 | 0 | 0.087629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f06c4b63e3f82b73f3c526b5e0d8cb1d7063f4c3 | 572 | py | Python | jp.atcoder/abc144/abc144_a/8525603.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc144/abc144_a/8525603.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc144/abc144_a/8525603.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | # 2019-11-19 19:43:48(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# import re
# import heapq
# import... | 23.833333 | 63 | 0.66958 | 90 | 572 | 4.1 | 0.633333 | 0.02168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042986 | 0.227273 | 572 | 23 | 64 | 24.869565 | 0.791855 | 0.613636 | 0 | 0 | 0 | 0 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f06e352f38851cf56d70b860e2c7833a460ed006 | 1,924 | py | Python | python/koheron/cli.py | Koheron/koheron-sdk | 82b732635f1adf5dd0b04b9290b589c1fc091f29 | [
"MIT"
] | 77 | 2016-09-20T18:44:14.000Z | 2022-03-30T16:04:09.000Z | python/koheron/cli.py | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 101 | 2016-09-05T15:44:25.000Z | 2022-03-29T09:22:09.000Z | python/koheron/cli.py | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 34 | 2016-12-12T07:21:57.000Z | 2022-01-12T21:00:52.000Z | import click
# --------------------------------------------
# Call koheron-server
# --------------------------------------------
class ConnectionType(object):
def __init__(self, host="", unixsock=""):
self.host = host
@click.group()
@click.option('--host', default='', help='Host ip address', envvar='HOST... | 29.151515 | 74 | 0.635655 | 229 | 1,924 | 5.161572 | 0.283843 | 0.054146 | 0.050761 | 0.064298 | 0.281726 | 0.208968 | 0.186125 | 0.186125 | 0.109983 | 0.109983 | 0 | 0 | 0.149168 | 1,924 | 65 | 75 | 29.6 | 0.722053 | 0.196466 | 0 | 0.288889 | 0 | 0 | 0.050331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0.111111 | 0.133333 | 0 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f073b4eaa15268327616311fa8ea8807e7342393 | 3,487 | py | Python | mcazurerm/amsrp.py | pjshi23/mcazurerm | e17eb075ec8ffc5593e2a169c7479111478f43ee | [
"MIT"
] | null | null | null | mcazurerm/amsrp.py | pjshi23/mcazurerm | e17eb075ec8ffc5593e2a169c7479111478f43ee | [
"MIT"
] | null | null | null | mcazurerm/amsrp.py | pjshi23/mcazurerm | e17eb075ec8ffc5593e2a169c7479111478f43ee | [
"MIT"
] | null | null | null | # amsrp.py - azurerm functions for the Microsoft.Media resource provider
from .restfns import do_get, do_post, do_put, do_delete
from .settings import azure_rm_endpoint, MEDIA_API
# check_name_availability of a media service name(access_token, subscription_id, rgname)
# check the media service name availability in a... | 51.279412 | 269 | 0.66877 | 381 | 3,487 | 5.850394 | 0.165354 | 0.125617 | 0.123822 | 0.13459 | 0.743383 | 0.703903 | 0.626738 | 0.52445 | 0.52445 | 0.429341 | 0 | 0 | 0.221394 | 3,487 | 67 | 270 | 52.044776 | 0.820994 | 0.223688 | 0 | 0.575 | 0 | 0 | 0.26179 | 0.143706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.35 | 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 |
f07cfc02121e6ac6c09e331eb0c78041a8bb04f7 | 5,046 | py | Python | ytelapi/controllers/recording_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/controllers/recording_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/controllers/recording_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ytelapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
from .base_controller import BaseController
from ..api_helper import APIHelper
from ..configuration import Configuration
from ..http.auth.basic_auth import BasicAuth
class Rec... | 34.094595 | 84 | 0.599881 | 514 | 5,046 | 5.719844 | 0.2607 | 0.02449 | 0.030612 | 0.05102 | 0.673469 | 0.665306 | 0.656122 | 0.62619 | 0.62619 | 0.590816 | 0 | 0.001204 | 0.341855 | 5,046 | 147 | 85 | 34.326531 | 0.884071 | 0.435989 | 0 | 0.56 | 1 | 0 | 0.061505 | 0.03828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.08 | 0 | 0.22 | 0 | 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 |
b2c303167fb51e10efd3f9764e49959cb8fc809b | 1,467 | py | Python | gravity/migrations/0003_tiltbridge_mdns_id.py | fossabot/fermentrack | 3070bc14791b1482ec661607005ebda961ca3a8f | [
"MIT"
] | 114 | 2017-03-19T22:51:45.000Z | 2022-01-18T06:00:23.000Z | gravity/migrations/0003_tiltbridge_mdns_id.py | fossabot/fermentrack | 3070bc14791b1482ec661607005ebda961ca3a8f | [
"MIT"
] | 392 | 2017-03-12T17:09:16.000Z | 2022-03-31T22:08:45.000Z | gravity/migrations/0003_tiltbridge_mdns_id.py | fossabot/fermentrack | 3070bc14791b1482ec661607005ebda961ca3a8f | [
"MIT"
] | 67 | 2017-03-19T18:11:54.000Z | 2022-01-31T12:12:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2019-03-18 23:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('gravity', '0002_tilt_refactor'),
]
operations = [
... | 43.147059 | 310 | 0.667348 | 183 | 1,467 | 5.240437 | 0.540984 | 0.025026 | 0.059437 | 0.07195 | 0.419187 | 0.419187 | 0.419187 | 0.419187 | 0.419187 | 0.316997 | 0 | 0.02972 | 0.220177 | 1,467 | 33 | 311 | 44.454545 | 0.808566 | 0.182004 | 0 | 0.333333 | 1 | 0.083333 | 0.309883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
b2c49930043d7ee2d2a1b672ce9ebb1eaa365b11 | 1,187 | py | Python | tiaApp/models.py | cxcarvaj/DjangoServer | 79a965982646ec8637bb20eef92c79b39111adf6 | [
"MIT"
] | null | null | null | tiaApp/models.py | cxcarvaj/DjangoServer | 79a965982646ec8637bb20eef92c79b39111adf6 | [
"MIT"
] | null | null | null | tiaApp/models.py | cxcarvaj/DjangoServer | 79a965982646ec8637bb20eef92c79b39111adf6 | [
"MIT"
] | null | null | null | from django.db import models
class DepartmentsF(models.Model):
department_id = models.AutoField(primary_key=True)
department = models.CharField(max_length=100)
class Meta:
managed = False
db_table = 'departments_f'
class OrdersF(models.Model):
order_id = models.AutoField(primary_key=... | 29.675 | 101 | 0.710194 | 143 | 1,187 | 5.72028 | 0.321678 | 0.05379 | 0.06846 | 0.102689 | 0.43643 | 0.43643 | 0.254279 | 0.173594 | 0.173594 | 0.173594 | 0 | 0.006257 | 0.192081 | 1,187 | 40 | 102 | 29.675 | 0.846715 | 0 | 0 | 0.275862 | 0 | 0 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2ccde698a468f385b9542774851761a8c8a1536 | 409 | py | Python | backend/models/promoCodes.py | salah-walid/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | 1 | 2021-12-12T12:53:14.000Z | 2021-12-12T12:53:14.000Z | backend/models/promoCodes.py | JetLightStudio/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | null | null | null | backend/models/promoCodes.py | JetLightStudio/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | 1 | 2021-06-08T10:22:08.000Z | 2021-06-08T10:22:08.000Z | from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
class promoCode(models.Model):
title = models.CharField(max_length=40, unique=True, blank=False, null=False)
code = models.CharField(max_length=40, blank=False, null=False)
promo = models.FloatField(default... | 37.181818 | 81 | 0.757946 | 52 | 409 | 5.846154 | 0.596154 | 0.065789 | 0.118421 | 0.157895 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016997 | 0.136919 | 409 | 10 | 82 | 40.9 | 0.844193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b2cd36568bd36831d66007b1976e2aaa69b10d1d | 5,232 | py | Python | unit_tests/test_training_agents.py | ihopethiswillfi/ElegantRL-1 | b81052a0bc6802443eb0f653c69158396b613b00 | [
"Apache-2.0"
] | null | null | null | unit_tests/test_training_agents.py | ihopethiswillfi/ElegantRL-1 | b81052a0bc6802443eb0f653c69158396b613b00 | [
"Apache-2.0"
] | null | null | null | unit_tests/test_training_agents.py | ihopethiswillfi/ElegantRL-1 | b81052a0bc6802443eb0f653c69158396b613b00 | [
"Apache-2.0"
] | null | null | null | """
This script tests whether or not each of the agents is able to train, depending
on whether or not it receives an environment with a discrete or continuous
action space.
"""
import gym
import unittest
from elegantrl.agents import *
from elegantrl.train.config import Arguments
from elegantrl.envs.Gym import get_gym_... | 36.082759 | 85 | 0.747515 | 666 | 5,232 | 5.435435 | 0.147147 | 0.069613 | 0.096961 | 0.136464 | 0.640055 | 0.551105 | 0.515746 | 0.515746 | 0.391989 | 0.331768 | 0 | 0.003524 | 0.186544 | 5,232 | 144 | 86 | 36.333333 | 0.847039 | 0.043196 | 0 | 0.02 | 0 | 0 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0.31 | false | 0 | 0.06 | 0 | 0.38 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2cdfdb7ac29aa039402ab3080ce5965de32b2fa | 236 | py | Python | sources_non_forked/vim-visual-multi/test/tests/oO/commands.py | doitsu2014/vimrc | bc3f206cc69618698e88d4a921e3a9fb120072e9 | [
"MIT"
] | 2,083 | 2018-04-13T02:33:48.000Z | 2022-03-31T17:02:16.000Z | sources_non_forked/vim-visual-multi/test/tests/oO/commands.py | doitsu2014/vimrc | bc3f206cc69618698e88d4a921e3a9fb120072e9 | [
"MIT"
] | 194 | 2018-05-21T09:09:20.000Z | 2022-03-27T11:51:45.000Z | sources_non_forked/vim-visual-multi/test/tests/oO/commands.py | doitsu2014/vimrc | bc3f206cc69618698e88d4a921e3a9fb120072e9 | [
"MIT"
] | 63 | 2018-05-24T14:03:42.000Z | 2022-02-26T16:28:56.000Z | # insert CR, insert line above
keys(':setf vim\<CR>jw')
keys('4\<C-Down>')
keys('Ea')
keys('\<CR>')
keys('CARRYING OVER ')
keys('\<Esc>A')
keys('\<CR>')
keys('CR at EOL')
keys('\<Esc>k')
keys('O')
keys('above CR')
keys('\<Esc>\<Esc>')
| 15.733333 | 30 | 0.572034 | 41 | 236 | 3.292683 | 0.487805 | 0.133333 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.105932 | 236 | 14 | 31 | 16.857143 | 0.635071 | 0.118644 | 0 | 0.166667 | 0 | 0 | 0.466019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2cf91c0fe561457e9527f872b14545cc3b2a401 | 1,631 | py | Python | wifi_conf/wifi_conf_client.py | mbunse/wifi_conf | 8760db12a228ae6dc7f357cbd74dbe3e1f03e632 | [
"MIT"
] | 1 | 2019-05-05T23:14:37.000Z | 2019-05-05T23:14:37.000Z | wifi_conf/wifi_conf_client.py | mbunse/wifi_conf | 8760db12a228ae6dc7f357cbd74dbe3e1f03e632 | [
"MIT"
] | null | null | null | wifi_conf/wifi_conf_client.py | mbunse/wifi_conf | 8760db12a228ae6dc7f357cbd74dbe3e1f03e632 | [
"MIT"
] | 1 | 2020-07-04T16:43:45.000Z | 2020-07-04T16:43:45.000Z | from socket_client_server.socket_client_server import Sock_Client
import os
SERVER_ADDRESS = os.getenv("WIFI_CONF_SOCKET", '/var/run/wifi_conf/wifi_conf.socket')
def start_access_point(ssid):
"""Switch wifi to access point mode.
`ssid`: Name of wifi to be spawned.
"""
sock_client = Sock_Client(SERV... | 25.092308 | 85 | 0.635193 | 203 | 1,631 | 4.8867 | 0.261084 | 0.100806 | 0.045363 | 0.060484 | 0.559476 | 0.515121 | 0.515121 | 0.515121 | 0.452621 | 0.452621 | 0 | 0.007438 | 0.258124 | 1,631 | 65 | 86 | 25.092308 | 0.812397 | 0.234212 | 0 | 0.540541 | 0 | 0 | 0.170711 | 0.08954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.081081 | 0.054054 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2d18608adc262ee1466dc52ce48204577220ec9 | 973 | py | Python | otcextensions/sdk/dms/v1/message.py | spielkind/python-otcextensions | 47ba917df2d85db6cb347f2038fd7f79a8a806b7 | [
"Apache-2.0"
] | null | null | null | otcextensions/sdk/dms/v1/message.py | spielkind/python-otcextensions | 47ba917df2d85db6cb347f2038fd7f79a8a806b7 | [
"Apache-2.0"
] | null | null | null | otcextensions/sdk/dms/v1/message.py | spielkind/python-otcextensions | 47ba917df2d85db6cb347f2038fd7f79a8a806b7 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 30.40625 | 75 | 0.741007 | 139 | 973 | 5.100719 | 0.654676 | 0.084626 | 0.036671 | 0.045134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.177801 | 973 | 31 | 76 | 31.387097 | 0.88 | 0.571429 | 0 | 0 | 0 | 0 | 0.154229 | 0.072139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b2d23e4ed37eb65d295eb78cf62f5796b278d776 | 1,059 | py | Python | posts/admin.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | posts/admin.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | posts/admin.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | from django.contrib import admin, messages
from django_summernote.admin import SummernoteModelAdmin
from posts.models import Post, Tag
@admin.register(Post)
class PostAdmin(SummernoteModelAdmin):
summernote_fields = ('body',)
list_display = ('title', 'id', 'is_public', 'slug',
'author', '... | 32.090909 | 62 | 0.660057 | 119 | 1,059 | 5.697479 | 0.420168 | 0.047198 | 0.073746 | 0.097345 | 0.250737 | 0.250737 | 0.250737 | 0 | 0 | 0 | 0 | 0 | 0.201133 | 1,059 | 32 | 63 | 33.09375 | 0.801418 | 0 | 0 | 0.08 | 0 | 0 | 0.1983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2d7e614da51e318ceddb39de8dd46b981d16352 | 1,766 | py | Python | main.py | manojpandey/hackinthenorth | 9a8dba19ea002354138171b7fa7556378ddf1701 | [
"MIT"
] | null | null | null | main.py | manojpandey/hackinthenorth | 9a8dba19ea002354138171b7fa7556378ddf1701 | [
"MIT"
] | null | null | null | main.py | manojpandey/hackinthenorth | 9a8dba19ea002354138171b7fa7556378ddf1701 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import copy
import datetime
from close_n import best_match
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
# face_cascade = cv2.CascadeClassifier('./haarcascade_profileface.xml')
cap = cv2.VideoCapture(0)
n = 0
d = np.zeros((480, 640, 3), dtype='int')
n_fram... | 26.358209 | 75 | 0.498301 | 251 | 1,766 | 3.434263 | 0.374502 | 0.016241 | 0.013921 | 0.018561 | 0.204176 | 0.106729 | 0.092807 | 0.067285 | 0.067285 | 0.067285 | 0 | 0.063589 | 0.349943 | 1,766 | 66 | 76 | 26.757576 | 0.687282 | 0.177237 | 0 | 0 | 0 | 0 | 0.052156 | 0.024339 | 0 | 0 | 0.002782 | 0 | 0 | 0 | null | null | 0.026316 | 0.131579 | 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 |
b2d819d89d8c4aa551a52bae7f0b714a15b215e9 | 5,960 | py | Python | goturn/loader/loader_imagenet.py | amosarbiv/Tracking | 330e326ab9975a4eba3d17b415c9dd716ce18a96 | [
"MIT"
] | null | null | null | goturn/loader/loader_imagenet.py | amosarbiv/Tracking | 330e326ab9975a4eba3d17b415c9dd716ce18a96 | [
"MIT"
] | null | null | null | goturn/loader/loader_imagenet.py | amosarbiv/Tracking | 330e326ab9975a4eba3d17b415c9dd716ce18a96 | [
"MIT"
] | null | null | null | # Date: Nrupatunga: Tuesday 04 July 2017
# Email: nrupatunga@whodat.com
# Name: Nrupatunga
# Description: loading Imagenet dataset
from __future__ import print_function
import sys
import os
import cv2
import glob
from annotation import annotation
import xml.etree.ElementTree as ET
from ..logger.logger import setup_log... | 36.564417 | 186 | 0.647483 | 725 | 5,960 | 5.052414 | 0.223448 | 0.02457 | 0.064974 | 0.03822 | 0.120666 | 0.072618 | 0.0273 | 0 | 0 | 0 | 0 | 0.024264 | 0.253188 | 5,960 | 162 | 187 | 36.790123 | 0.798697 | 0.079866 | 0 | 0.069307 | 0 | 0.009901 | 0.103352 | 0.047858 | 0 | 0 | 0 | 0.04321 | 0 | 1 | 0.049505 | false | 0 | 0.089109 | 0 | 0.188119 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.