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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d40426202b9b155286b4717780f009edeeea81e4 | 634 | py | Python | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | null | null | null | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | null | null | null | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | 1 | 2021-12-22T13:19:52.000Z | 2021-12-22T13:19:52.000Z | # Generated by Django 4.0 on 2021-12-24 20:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('santabot', '0003_alter_event_last_register_date_and_more'),
]
operations = [
migrations.AlterField(
model_name='event',
... | 26.416667 | 82 | 0.626183 | 65 | 634 | 5.892308 | 0.646154 | 0.062663 | 0.083551 | 0.151436 | 0.402089 | 0.402089 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.271293 | 634 | 23 | 83 | 27.565217 | 0.790043 | 0.067823 | 0 | 0.352941 | 1 | 0 | 0.235993 | 0.074703 | 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 |
d408e83d104994c7b56a60993f81203af1d2e4b2 | 2,491 | py | Python | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 2 | 2022-02-24T08:47:48.000Z | 2022-03-23T09:44:22.000Z | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | null | null | null | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 1 | 2021-12-27T19:03:38.000Z | 2021-12-27T19:03:38.000Z | import numpy as np
import pickle as pkl
from envs.babyai.oracle.teacher import Teacher
class XYCorrections(Teacher):
def __init__(self, *args, **kwargs):
super(XYCorrections, self).__init__(*args, **kwargs)
self.next_state_coords = self.empty_feedback()
def empty_feedback(self):
"""
... | 42.220339 | 113 | 0.620233 | 328 | 2,491 | 4.503049 | 0.338415 | 0.103588 | 0.132024 | 0.154367 | 0.323629 | 0.253893 | 0.181449 | 0.132701 | 0.132701 | 0.132701 | 0 | 0.01855 | 0.285829 | 2,491 | 58 | 114 | 42.948276 | 0.811692 | 0.179847 | 0 | 0.054054 | 0 | 0 | 0.010157 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.162162 | false | 0 | 0.081081 | 0.027027 | 0.405405 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d409828d34c91d7940cba40bf708e67a3916a479 | 3,785 | py | Python | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from loc import (we_are_frozen,
module_path)
import os
import datetime
import time
import loc
import traceback
import sys
from win32com.client import Dispatch
logfile = sys.stdout
def determine_redirect(filename):
"""
Determine where to redirect stdout
... | 23.805031 | 83 | 0.572523 | 444 | 3,785 | 4.734234 | 0.313063 | 0.05138 | 0.03568 | 0.049952 | 0.136061 | 0.104662 | 0.104662 | 0.088487 | 0.05138 | 0.05138 | 0 | 0.004249 | 0.315984 | 3,785 | 158 | 84 | 23.955696 | 0.807648 | 0.084808 | 0 | 0.175258 | 0 | 0 | 0.03247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216495 | false | 0 | 0.082474 | 0.030928 | 0.443299 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d40b54816ee88b394aeebc54a80db5a3a1d2930a | 2,349 | py | Python | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/105_models.RNNPlus.ipynb (unless otherwise specified).
__all__ = ['RNNPlus', 'LSTMPlus', 'GRUPlus']
# Cell
from ..imports import *
from ..utils import *
from ..data.core import *
from .layers import *
# Cell
class _RNNPlus_Base(Module):
def __init__(self, c_in, c_o... | 48.9375 | 148 | 0.640272 | 341 | 2,349 | 4.167155 | 0.269795 | 0.033779 | 0.038705 | 0.084448 | 0.171006 | 0.137227 | 0.08867 | 0 | 0 | 0 | 0 | 0.011918 | 0.249894 | 2,349 | 48 | 149 | 48.9375 | 0.794552 | 0.16688 | 0 | 0 | 1 | 0 | 0.035421 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.088235 | false | 0 | 0.117647 | 0 | 0.470588 | 0 | 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 |
d40ed53a9263c70e7ce5de9501d2ca2c5b50b7dc | 4,332 | py | Python | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 2 | 2019-10-03T16:47:11.000Z | 2022-02-22T11:56:02.000Z | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 23 | 2019-05-30T20:27:38.000Z | 2019-08-20T07:23:09.000Z | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T03:01:19.000Z | 2022-03-24T03:01:19.000Z | from __future__ import absolute_import
import logging
from spidermon.results.monitor import (
MonitorResult,
actions_step_required,
monitors_step_required,
)
from spidermon.runners import MonitorRunner
from spidermon.utils.text import Message, line, line_title
LOG_MESSAGE_HEADER = "Spidermon"
class Spi... | 32.328358 | 83 | 0.649354 | 513 | 4,332 | 5.235867 | 0.185185 | 0.111318 | 0.125093 | 0.063663 | 0.396873 | 0.212211 | 0.100149 | 0.078555 | 0.078555 | 0.06143 | 0 | 0.000611 | 0.24446 | 4,332 | 133 | 84 | 32.571429 | 0.820043 | 0 | 0 | 0.207547 | 0 | 0 | 0.025162 | 0.006002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.04717 | 0.009434 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d410e56dbc9df1300a47006e894b37f0f670424b | 711 | py | Python | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 1 | 2020-10-01T11:59:46.000Z | 2020-10-01T11:59:46.000Z | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 2 | 2021-05-06T05:51:12.000Z | 2021-06-15T07:12:55.000Z | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 2 | 2020-10-22T14:34:45.000Z | 2021-12-22T00:51:28.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2020/9/26 9:41
# Author: Zheng Shaoxiang
# @Email: zhengsx95@163.com
# Description:
from enum import Enum
ReducedEpsilon = 1e-5
IntegerEpsilon = 1e-6
ComparisonEpsilon = 1e-5
def is_integer(num):
if abs(round(num) - num) <= IntegerEpsilon:
... | 17.341463 | 48 | 0.59775 | 89 | 711 | 4.606742 | 0.775281 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085193 | 0.30661 | 711 | 40 | 49 | 17.775 | 0.74645 | 0.177215 | 0 | 0 | 0 | 0 | 0.014842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.04 | 0 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4254f76dfd5ea2d8a20ec85e3bc7b40b5572cba | 244 | py | Python | cupyx/scipy/special/_statistics.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 1 | 2021-05-16T11:52:30.000Z | 2021-05-16T11:52:30.000Z | cupyx/scipy/special/_statistics.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 8 | 2019-02-11T17:20:01.000Z | 2021-09-08T01:14:51.000Z | cupyx/scipy/special/_statistics.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 1 | 2021-01-08T14:16:53.000Z | 2021-01-08T14:16:53.000Z | from cupy import _core
ndtr = _core.create_ufunc(
'cupyx_scipy_ndtr', ('f->f', 'd->d'),
'out0 = normcdf(in0)',
doc='''Cumulative distribution function of normal distribution.
.. seealso:: :meth:`scipy.special.ndtr`
''')
| 20.333333 | 67 | 0.631148 | 30 | 244 | 4.966667 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.192623 | 244 | 11 | 68 | 22.181818 | 0.746193 | 0 | 0 | 0 | 0 | 0 | 0.614754 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d425877abba4e1d9027f49ed030c5510ffa8f6f2 | 827 | py | Python | zshoes/articles/models.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | zshoes/articles/models.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | zshoes/articles/models.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from zshoes.stores.models import Store
@python_2_unicode_compatible
class Article(models.Model):
"""
Entity that represents the articles of the store
"""
#: Name of the ... | 28.517241 | 61 | 0.732769 | 105 | 827 | 5.580952 | 0.47619 | 0.042662 | 0.081911 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008982 | 0.192261 | 827 | 28 | 62 | 29.535714 | 0.868263 | 0.241838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0.071429 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d425a87d278fdb1d8bc123af1626c4050e1112e2 | 1,465 | py | Python | Cousins_in_Binary_Tree.py | raniyer/Learning-competitive-coding | e79ab7f1cd74bd635ccc1d817db65d8101289c9c | [
"MIT"
] | 2 | 2020-05-16T03:38:32.000Z | 2020-06-04T13:41:28.000Z | Cousins_in_Binary_Tree.py | raniyer/30daysofcode-May-leetcode | e79ab7f1cd74bd635ccc1d817db65d8101289c9c | [
"MIT"
] | null | null | null | Cousins_in_Binary_Tree.py | raniyer/30daysofcode-May-leetcode | e79ab7f1cd74bd635ccc1d817db65d8101289c9c | [
"MIT"
] | null | null | null | """
In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.
Two nodes of a binary tree are cousins if they have the same depth, but have different parents.
We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree.
R... | 31.170213 | 117 | 0.6 | 254 | 1,465 | 3.444882 | 0.322835 | 0.032 | 0.050286 | 0.037714 | 0.084571 | 0.038857 | 0.038857 | 0 | 0 | 0 | 0 | 0.039767 | 0.296246 | 1,465 | 46 | 118 | 31.847826 | 0.808923 | 0.624573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d425fc5115d843da5d542a9a1da650d07eb3e7e7 | 5,901 | py | Python | main.py | Smaniac1/02-Text-adeventure | e6b408cc346c6eb6075392234dc417cb0b2e914a | [
"MIT"
] | null | null | null | main.py | Smaniac1/02-Text-adeventure | e6b408cc346c6eb6075392234dc417cb0b2e914a | [
"MIT"
] | null | null | null | main.py | Smaniac1/02-Text-adeventure | e6b408cc346c6eb6075392234dc417cb0b2e914a | [
"MIT"
] | 2 | 2020-02-04T16:33:35.000Z | 2020-02-07T04:02:38.000Z | #!/usr/bin/env python3
import sys, os, json
import random
# Check to make sure we are running the correct version of Python
assert sys.version_info >= (3,7), "This script requires at least Python 3.7"
# The game and item description files (in the same folder as this script)
game_file = 'game.json'
# Load the content... | 42.76087 | 190 | 0.583799 | 724 | 5,901 | 4.707182 | 0.316298 | 0.04108 | 0.033451 | 0.044014 | 0.298415 | 0.276115 | 0.267312 | 0.241491 | 0.220951 | 0.220951 | 0 | 0.008629 | 0.293001 | 5,901 | 138 | 191 | 42.76087 | 0.808245 | 0.085409 | 0 | 0.367521 | 0 | 0.042735 | 0.390941 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 1 | 0.042735 | false | 0 | 0.017094 | 0 | 0.102564 | 0.42735 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d42a0af3f17b3dbc0f8ef130a5ff8a3db39f80c0 | 1,860 | py | Python | pydisco/disco/modutil.py | jseppanen/disco | 23ef8badfc7c539672e8834875d9908974b646dc | [
"BSD-3-Clause"
] | 2 | 2016-05-09T17:03:08.000Z | 2016-07-19T11:27:54.000Z | pydisco/disco/modutil.py | jseppanen/disco | 23ef8badfc7c539672e8834875d9908974b646dc | [
"BSD-3-Clause"
] | null | null | null | pydisco/disco/modutil.py | jseppanen/disco | 23ef8badfc7c539672e8834875d9908974b646dc | [
"BSD-3-Clause"
] | null | null | null | import re, struct, sys, os, imp, modulefinder
import functools
from os.path import abspath, dirname
from opcode import opname
from disco.error import ModUtilImportError
def user_paths():
return set(os.getenv('PYTHONPATH', '').split(':') + [''])
def parse_function(function):
if isinstance(function, functools... | 35.09434 | 88 | 0.63871 | 238 | 1,860 | 4.844538 | 0.37395 | 0.023417 | 0.05464 | 0.039896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002138 | 0.245699 | 1,860 | 52 | 89 | 35.769231 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.032796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.159091 | 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 |
d42e217f0e3b4b173a405214d76e0e8bf0d90bff | 875 | py | Python | djangoq_demo/order_reminder/migrations/0001_initial.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | djangoq_demo/order_reminder/migrations/0001_initial.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | djangoq_demo/order_reminder/migrations/0001_initial.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-17 12:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='orders'... | 32.407407 | 118 | 0.614857 | 99 | 875 | 5.272727 | 0.727273 | 0.030651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032159 | 0.253714 | 875 | 26 | 119 | 33.653846 | 0.767228 | 0.076571 | 0 | 0 | 1 | 0 | 0.12795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
d439037ffb5d79c61b4fbc99b0bc04b3e553d76d | 1,493 | py | Python | samples/vis_amass_and_h36m.py | zaverichintan/mocap | 43db09af5be092b73ce5d1df1d1834a865d62441 | [
"MIT"
] | 22 | 2019-04-17T13:42:47.000Z | 2022-03-03T23:48:16.000Z | samples/vis_amass_and_h36m.py | zaverichintan/mocap | 43db09af5be092b73ce5d1df1d1834a865d62441 | [
"MIT"
] | 5 | 2019-04-17T13:57:25.000Z | 2021-04-16T12:31:38.000Z | samples/vis_amass_and_h36m.py | zaverichintan/mocap | 43db09af5be092b73ce5d1df1d1834a865d62441 | [
"MIT"
] | 3 | 2020-08-27T19:32:40.000Z | 2021-02-24T08:52:23.000Z | import sys
sys.path.insert(0, '../')
from mocap.settings import get_amass_validation_files, get_amass_test_files
from mocap.math.amass_fk import rotmat2euclidean, exp2euclidean
from mocap.visualization.sequence import SequenceVisualizer
from mocap.math.mirror_smpl import mirror_p3d
from mocap.datasets.dataset import Li... | 27.145455 | 102 | 0.734092 | 226 | 1,493 | 4.628319 | 0.376106 | 0.068834 | 0.06501 | 0.043977 | 0.122371 | 0.122371 | 0.068834 | 0.068834 | 0.068834 | 0.068834 | 0 | 0.058824 | 0.146015 | 1,493 | 55 | 103 | 27.145455 | 0.761569 | 0 | 0 | 0.052632 | 0 | 0 | 0.042169 | 0.016064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d43e75fb89304bc9b1ab29d6bf1e74be0ea2345f | 1,222 | py | Python | review/tests/test_review_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 16 | 2021-09-22T19:08:28.000Z | 2022-03-18T18:57:02.000Z | review/tests/test_review_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-09-30T12:36:02.000Z | 2022-03-18T22:18:00.000Z | review/tests/test_review_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-12-06T02:04:51.000Z | 2022-03-13T14:38:14.000Z | from django.test import TestCase
from review.models import Review
class TestReviewModel(TestCase):
'''
Test suite for review modules.
'''
def setUp(self):
'''
Set up test data for the review model.
'''
Review.objects.create(
feedback='Test rev... | 27.772727 | 85 | 0.58347 | 128 | 1,222 | 5.476563 | 0.296875 | 0.171184 | 0.077033 | 0.119829 | 0.313837 | 0.219686 | 0.114123 | 0.114123 | 0.114123 | 0 | 0 | 0 | 0.317512 | 1,222 | 43 | 86 | 28.418605 | 0.840528 | 0.180851 | 0 | 0 | 0 | 0 | 0.129383 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.277778 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d43edfd68011c8d5534ee2b154094bc55dd24e36 | 146 | py | Python | app.py | BodhisattwaMandal/wembedder | dd384db9a021cb7e3682f4153226d5fe53d05c9f | [
"Apache-2.0",
"MIT"
] | 42 | 2017-08-15T20:51:40.000Z | 2021-07-01T15:33:58.000Z | app.py | BodhisattwaMandal/wembedder | dd384db9a021cb7e3682f4153226d5fe53d05c9f | [
"Apache-2.0",
"MIT"
] | 17 | 2017-07-07T17:46:34.000Z | 2021-07-31T19:54:03.000Z | app.py | BodhisattwaMandal/wembedder | dd384db9a021cb7e3682f4153226d5fe53d05c9f | [
"Apache-2.0",
"MIT"
] | 11 | 2017-09-10T09:02:14.000Z | 2021-07-02T08:50:46.000Z | """Script to start webserving."""
from wembedder.app import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)
| 13.272727 | 36 | 0.691781 | 20 | 146 | 4.55 | 0.75 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171233 | 146 | 10 | 37 | 14.6 | 0.752066 | 0.184932 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
d442c238e8821d0cdc0c3f3b94495eca939a45ec | 2,987 | py | Python | app/routes.py | mattkantor/basic-flask-app | ec893ca44b1c9c4772c24b81394b58644fefd29a | [
"MIT"
] | null | null | null | app/routes.py | mattkantor/basic-flask-app | ec893ca44b1c9c4772c24b81394b58644fefd29a | [
"MIT"
] | null | null | null | app/routes.py | mattkantor/basic-flask-app | ec893ca44b1c9c4772c24b81394b58644fefd29a | [
"MIT"
] | null | null | null | from app.api.feed import FeedController
from app.api.follows import FollowController
from .api import apiv1, app_routes
from .api.news import *
from .api.user import *
from .api.group import *
from .api.auth import get_auth_token, register
class Route():
def __init__(self):
''''''
@staticmethod
... | 50.627119 | 143 | 0.667559 | 358 | 2,987 | 5.304469 | 0.156425 | 0.078989 | 0.131648 | 0.189573 | 0.413902 | 0.381253 | 0.25961 | 0.043181 | 0.043181 | 0 | 0 | 0.010835 | 0.165718 | 2,987 | 59 | 144 | 50.627119 | 0.751204 | 0 | 0 | 0.073171 | 0 | 0 | 0.229712 | 0.073776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.170732 | 0 | 0.268293 | 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 |
d448253fd36b0f18b3b060f1981126a0797ec2c8 | 1,598 | py | Python | main.py | LN-24111/RPC_Sim | 976dcc7f2acd533fe788347be3ed875ae418d766 | [
"MIT"
] | null | null | null | main.py | LN-24111/RPC_Sim | 976dcc7f2acd533fe788347be3ed875ae418d766 | [
"MIT"
] | null | null | null | main.py | LN-24111/RPC_Sim | 976dcc7f2acd533fe788347be3ed875ae418d766 | [
"MIT"
] | null | null | null | from tournament import *
from strategies import *
resultSetPoints = {}
resultSetWins = {}
observer = Documenter()
for i in range(100):
if i % 100 == 0:
print (i//100)
participants = []
# participants.append(WaPlayer1())
# participants.append(Adam())
# participants.append(Rock())
# participants.append(Paper())
... | 27.084746 | 80 | 0.721527 | 173 | 1,598 | 6.66474 | 0.427746 | 0.249783 | 0.038161 | 0.060711 | 0.06418 | 0.06418 | 0 | 0 | 0 | 0 | 0 | 0.020685 | 0.122653 | 1,598 | 59 | 81 | 27.084746 | 0.801712 | 0.152065 | 0 | 0 | 0 | 0 | 0.089087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.093023 | 0.093023 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4484ad6bf63fa89fa298eca8eea4369a0042fe5 | 7,795 | py | Python | npc/gui/uis/new_character.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | npc/gui/uis/new_character.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | npc/gui/uis/new_character.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'npc/gui/uis/new_character.ui'
#
# Created by: PyQt5 UI code generator 5.7.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_NewCharacterDialog(object):
def setupUi(self, NewC... | 61.377953 | 130 | 0.751123 | 684 | 7,795 | 8.524854 | 0.236842 | 0.064826 | 0.028812 | 0.026754 | 0.178357 | 0.178357 | 0.120734 | 0.120734 | 0.046819 | 0 | 0 | 0.007407 | 0.151379 | 7,795 | 126 | 131 | 61.865079 | 0.874074 | 0.025401 | 0 | 0.070175 | 1 | 0 | 0.096192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.008772 | 0 | 0.035088 | 0 | 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 |
d44927253825e1c5d306c639c38985c68db197c9 | 2,111 | py | Python | tests/integration/test_dataframe_logging.py | mbseid/rubicon | d48d34e4b6580ef29bb8dbe6a8ed473b954af087 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_dataframe_logging.py | mbseid/rubicon | d48d34e4b6580ef29bb8dbe6a8ed473b954af087 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_dataframe_logging.py | mbseid/rubicon | d48d34e4b6580ef29bb8dbe6a8ed473b954af087 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import pytest
from dask import dataframe as dd
from rubicon.exceptions import RubiconException
def test_pandas_df(rubicon_local_filesystem_client):
rubicon = rubicon_local_filesystem_client
project = rubicon.create_project("Dataframe Test Project")
multi_index_df = pd.DataFrame(
... | 31.044118 | 112 | 0.720985 | 285 | 2,111 | 5.080702 | 0.235088 | 0.087017 | 0.09116 | 0.116022 | 0.662293 | 0.638122 | 0.638122 | 0.638122 | 0.638122 | 0.638122 | 0 | 0.011435 | 0.171483 | 2,111 | 67 | 113 | 31.507463 | 0.816467 | 0.03837 | 0 | 0.52381 | 0 | 0.02381 | 0.090237 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.095238 | 0 | 0.166667 | 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 |
d449f83e2eb0a2d2d6d61b2e3a88d0cfd7006157 | 39,855 | py | Python | 820.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 820.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 820.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | # 给定一个单词列表,我们将这个列表编码成一个索引字符串 S 与一个索引列表 A。
# 例如,如果这个列表是 ["time", "me", "bell"],我们就可以将其表示为 S = "time#bell#" 和 indexes = [0, 2, 5]。
# 对于每一个索引,我们可以通过从字符串 S 中索引的位置开始读取字符串,直到 "#" 结束,来恢复我们之前的单词列表。
# 那么成功对给定单词列表进行编码的最小字符串长度是多少呢?
#
# 示例:
# 输入: words = ["time", "me", "bell"]
# 输出: 10
# 说明: S = "time#bell#" ... | 19.1795 | 87 | 0.325254 | 2,230 | 39,855 | 5.809417 | 0.939013 | 0.002161 | 0.002779 | 0.001544 | 0.00988 | 0.006947 | 0.006947 | 0.006947 | 0 | 0 | 0 | 0.001404 | 0.517451 | 39,855 | 2,077 | 88 | 19.188734 | 0.672213 | 0.016685 | 0 | 0.000983 | 0 | 0 | 0.323257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000983 | false | 0 | 0 | 0 | 0.003441 | 0.000492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
d44c23f4260429a2ed754abb9b2f421c367d9fa9 | 2,753 | py | Python | app/core/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/core/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/core/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-19 02:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.manager
import markdownx.models
import components
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(... | 46.661017 | 158 | 0.603342 | 289 | 2,753 | 5.543253 | 0.287197 | 0.082397 | 0.05618 | 0.052434 | 0.548065 | 0.513109 | 0.513109 | 0.513109 | 0.513109 | 0.464419 | 0 | 0.011782 | 0.26008 | 2,753 | 58 | 159 | 47.465517 | 0.774669 | 0.016346 | 0 | 0.45098 | 1 | 0 | 0.096822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.098039 | 0 | 0.176471 | 0 | 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 |
d44e45e9b90fc8e34b0ae5fc97646b84ba004c81 | 670 | py | Python | tests/utils/environment_vars.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | tests/utils/environment_vars.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | tests/utils/environment_vars.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Contains a context manager for temporarily introducing an environment var.
import os
import contextlib
@contextlib.contextmanager
def use_environment_variable(key, value):
""" Used to temporarily introduce a new environment variable as if it
was set by th... | 25.769231 | 76 | 0.707463 | 95 | 670 | 4.968421 | 0.505263 | 0.114407 | 0.09322 | 0.059322 | 0.220339 | 0.097458 | 0 | 0 | 0 | 0 | 0 | 0.003824 | 0.219403 | 670 | 25 | 77 | 26.8 | 0.898662 | 0.476119 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d44e934fa1525818148b189132b9513d98218d03 | 25,355 | py | Python | data/analyzer.py | morelab/teseo2014 | 568ff66cf25bf7017dd371cf503f6b99df462fff | [
"Apache-2.0"
] | null | null | null | data/analyzer.py | morelab/teseo2014 | 568ff66cf25bf7017dd371cf503f6b99df462fff | [
"Apache-2.0"
] | null | null | null | data/analyzer.py | morelab/teseo2014 | 568ff66cf25bf7017dd371cf503f6b99df462fff | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 22 08:55:14 2014
@author: aitor
"""
import mysql.connector
import networkx as nx
from networkx.generators.random_graphs import barabasi_albert_graph
import json
import os.path
import numpy as np
import pandas as pd
from pandas import Series
from pandas import DataFrame
i... | 32.885863 | 221 | 0.559771 | 3,041 | 25,355 | 4.50148 | 0.115751 | 0.020454 | 0.018628 | 0.024545 | 0.551099 | 0.491563 | 0.445613 | 0.388341 | 0.355322 | 0.303455 | 0 | 0.025173 | 0.315322 | 25,355 | 771 | 222 | 32.885863 | 0.763364 | 0.015421 | 0 | 0.450949 | 0 | 0.007911 | 0.22324 | 0.043379 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001582 | 0.015823 | null | null | 0.113924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d454419e3e6cdb058ce6e7d5edb4c86210ee2dd2 | 7,751 | py | Python | primal_dual_models.py | louisenaud/pytorch_primal_dual | 05e212729299174e918b6f53f380f78986bcc135 | [
"MIT"
] | 2 | 2019-04-01T03:39:24.000Z | 2022-03-12T01:13:38.000Z | primal_dual_models.py | louisenaud/pytorch_primal_dual | 05e212729299174e918b6f53f380f78986bcc135 | [
"MIT"
] | null | null | null | primal_dual_models.py | louisenaud/pytorch_primal_dual | 05e212729299174e918b6f53f380f78986bcc135 | [
"MIT"
] | null | null | null | """
Project: pytorch_primal_dual
File: primal_dual_models.py
Created by: louise
On: 29/11/17
At: 4:00 PM
"""
import numpy as np
from numpy import random
from torch.autograd import Variable
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import transforms
fr... | 34.602679 | 103 | 0.608051 | 1,024 | 7,751 | 4.448242 | 0.161133 | 0.055982 | 0.039517 | 0.032931 | 0.668935 | 0.654226 | 0.610318 | 0.610318 | 0.603732 | 0.603732 | 0 | 0.020908 | 0.278029 | 7,751 | 223 | 104 | 34.757848 | 0.793066 | 0.227067 | 0 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084034 | false | 0 | 0.084034 | 0 | 0.252101 | 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 |
d455611f97cde8ae042a94f5b98d6334789fdf55 | 485 | py | Python | .venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py | FedericoFontana/ray | 5a7feae15f8c74d5d196fea6697c1827008018f3 | [
"Apache-2.0"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | .venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py | FedericoFontana/ray | 5a7feae15f8c74d5d196fea6697c1827008018f3 | [
"Apache-2.0"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | .venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py | FedericoFontana/ray | 5a7feae15f8c74d5d196fea6697c1827008018f3 | [
"Apache-2.0"
] | 1 | 2020-11-06T18:46:35.000Z | 2020-11-06T18:46:35.000Z | """Sources for media playback."""
# Collect public interface
from .loader import load, have_avbin
from .base import AudioFormat, VideoFormat, AudioData, SourceInfo
from .base import Source, StreamingSource, StaticSource, SourceGroup
# help the docs figure out where these are supposed to live (they live here)
__all__ ... | 23.095238 | 76 | 0.727835 | 53 | 485 | 6.54717 | 0.679245 | 0.04611 | 0.074928 | 0.236311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160825 | 485 | 20 | 77 | 24.25 | 0.85258 | 0.263918 | 0 | 0 | 0 | 0 | 0.282857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
d457ee3cfd1e0db55001718ecea3c52991bf2068 | 410 | py | Python | tests/plot/test_layouts.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 29 | 2015-09-02T15:53:48.000Z | 2022-02-04T19:47:49.000Z | tests/plot/test_layouts.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 531 | 2015-01-13T20:58:33.000Z | 2022-03-30T13:59:14.000Z | tests/plot/test_layouts.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 7 | 2015-02-28T22:34:32.000Z | 2020-12-06T05:16:13.000Z | """Test pyiem.plot.layouts."""
# third party
import pytest
# local
from pyiem.plot.layouts import figure_axes
@pytest.mark.mpl_image_compare(tolerance=0.1)
def test_crawl_before_walk():
"""Test that we can do basic things."""
fig, ax = figure_axes(
title="This is my Fancy Pants Title.",
subt... | 21.578947 | 52 | 0.658537 | 62 | 410 | 4.241935 | 0.629032 | 0.022814 | 0.121673 | 0.098859 | 0.136882 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.209756 | 410 | 18 | 53 | 22.777778 | 0.79321 | 0.187805 | 0 | 0 | 0 | 0 | 0.190031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d457f75e99a83dac762342d37904956309e359c4 | 235 | py | Python | python_sets/set_elements_sum.py | antonarnaudov/python-tigers-2021-02 | 8af6c121e4d373b7d98bf76dc1777753587262ef | [
"MIT"
] | null | null | null | python_sets/set_elements_sum.py | antonarnaudov/python-tigers-2021-02 | 8af6c121e4d373b7d98bf76dc1777753587262ef | [
"MIT"
] | null | null | null | python_sets/set_elements_sum.py | antonarnaudov/python-tigers-2021-02 | 8af6c121e4d373b7d98bf76dc1777753587262ef | [
"MIT"
] | null | null | null | def set_elements_sum(a, b):
c = []
for i in range(len(a)):
result = a[i] + b[i]
c.append(result)
return c
ll = [1, 2, 3, 4, 5]
ll2 = [3, 4, 5, 6, 7]
print(set_elements_sum(ll, ll2))
# [4, 6, 8, 10, 12]
| 14.6875 | 32 | 0.489362 | 46 | 235 | 2.413043 | 0.608696 | 0.198198 | 0.252252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117284 | 0.310638 | 235 | 15 | 33 | 15.666667 | 0.567901 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 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 |
d45e91dbb62c867d411f2c3492ce392f573d7768 | 3,450 | py | Python | mlops/parallelm/mlops/config_info.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mlops/parallelm/mlops/config_info.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mlops/parallelm/mlops/config_info.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z |
import os
from parallelm.mlops.mlops_env_constants import MLOpsEnvConstants
from parallelm.mlops.constants import Constants
class ConfigInfo:
def __init__(self):
self.mlops_mode = None
self.output_channel_type = None
self.zk_host = None
self.token = None
self.ion_id = None... | 44.805195 | 114 | 0.671304 | 449 | 3,450 | 4.801782 | 0.131403 | 0.204082 | 0.066327 | 0.081633 | 0.551484 | 0.513451 | 0.472171 | 0.275046 | 0.119202 | 0 | 0 | 0 | 0.231884 | 3,450 | 77 | 115 | 44.805195 | 0.813585 | 0.041739 | 0 | 0 | 0 | 0 | 0.042958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.050847 | 0 | 0.220339 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d45f1586c5630bca9421e3233108ec6725f2dae3 | 27,344 | py | Python | pyupdater/vendor/PyInstaller/hooks/hookutils.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | pyupdater/vendor/PyInstaller/hooks/hookutils.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | pyupdater/vendor/PyInstaller/hooks/hookutils.py | rsumner31/PyUpdater1 | d9658000472e57453267ee8fa174ae914dd8d33c | [
"BSD-2-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this softwa... | 36.851752 | 102 | 0.656378 | 3,641 | 27,344 | 4.808569 | 0.165614 | 0.022961 | 0.018849 | 0.014393 | 0.382625 | 0.333105 | 0.295751 | 0.28467 | 0.267992 | 0.239719 | 0 | 0.006265 | 0.241186 | 27,344 | 741 | 103 | 36.901484 | 0.837534 | 0.191962 | 0 | 0.340686 | 0 | 0 | 0.209551 | 0.059154 | 0 | 0 | 0 | 0.00135 | 0.004902 | 0 | null | null | 0.004902 | 0.095588 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d462cfa4f4831e5253a0564fc15f691201c2c792 | 2,837 | py | Python | people/migrations/0001_initial.py | David5627/instagram-clone | f9c4db320d59e757303f247ebc2ff5666b715d0d | [
"MIT"
] | null | null | null | people/migrations/0001_initial.py | David5627/instagram-clone | f9c4db320d59e757303f247ebc2ff5666b715d0d | [
"MIT"
] | null | null | null | people/migrations/0001_initial.py | David5627/instagram-clone | f9c4db320d59e757303f247ebc2ff5666b715d0d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-17 15:24
import cloudinary.models
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_US... | 44.328125 | 141 | 0.59711 | 290 | 2,837 | 5.710345 | 0.275862 | 0.05314 | 0.075483 | 0.069444 | 0.546498 | 0.512681 | 0.512681 | 0.512681 | 0.490942 | 0.490942 | 0 | 0.014833 | 0.263306 | 2,837 | 63 | 142 | 45.031746 | 0.777512 | 0.015862 | 0 | 0.446429 | 1 | 0 | 0.071685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d463d9c0f6d6f7152fed820bc41a2196a8aa9a63 | 2,506 | py | Python | jobs/models.py | soheltarir/django-es-test | 2cdce24fb0288f16f2526b38d139359dbe8472f5 | [
"MIT"
] | 5 | 2019-12-01T13:06:55.000Z | 2020-01-22T04:21:54.000Z | jobs/models.py | soheltarir/django-es-test | 2cdce24fb0288f16f2526b38d139359dbe8472f5 | [
"MIT"
] | 2 | 2020-06-06T00:15:11.000Z | 2022-02-10T11:24:31.000Z | jobs/models.py | soheltarir/django-elastic-postgres | 2cdce24fb0288f16f2526b38d139359dbe8472f5 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models, connection
from elasticsearch import Elasticsearch
from jobs.managers import BaseManager
class ElasticModelMixin(models.Model):
class Meta:
abstract = True
app_label = 'jobs'
@classmethod
def elastic_index(cls):
"""
... | 30.560976 | 117 | 0.660016 | 290 | 2,506 | 5.496552 | 0.344828 | 0.047051 | 0.022585 | 0.030113 | 0.272271 | 0.272271 | 0.272271 | 0.184442 | 0.184442 | 0.067754 | 0 | 0.005252 | 0.240223 | 2,506 | 81 | 118 | 30.938272 | 0.831933 | 0.163208 | 0 | 0.195652 | 0 | 0 | 0.04156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.021739 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d46f9cdaa97cb7c58424bb09eee06de910375f45 | 288 | py | Python | unmasked/m3/read_serial.py | saber-collection/saber-collection | b3cbf340c168c8c79a8b2371649934fa90c8be30 | [
"CC0-1.0"
] | 3 | 2021-07-27T09:01:04.000Z | 2022-01-14T03:21:54.000Z | unmasked/m3/read_serial.py | saber-collection/saber-collection | b3cbf340c168c8c79a8b2371649934fa90c8be30 | [
"CC0-1.0"
] | 2 | 2021-12-10T08:59:07.000Z | 2022-01-20T15:04:33.000Z | unmasked/m3/read_serial.py | saber-collection/saber-collection | b3cbf340c168c8c79a8b2371649934fa90c8be30 | [
"CC0-1.0"
] | 1 | 2022-01-07T07:39:45.000Z | 2022-01-07T07:39:45.000Z | #!/usr/bin/env python3
import platform
import serial
import sys
from config import Settings
dev = serial.Serial(Settings.SERIAL_DEVICE, Settings.BAUD_RATE)
print("> Returned data:", file=sys.stderr)
while True:
x = dev.read()
sys.stdout.buffer.write(x)
sys.stdout.flush()
| 18 | 63 | 0.729167 | 42 | 288 | 4.952381 | 0.666667 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.149306 | 288 | 15 | 64 | 19.2 | 0.844898 | 0.072917 | 0 | 0 | 0 | 0 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d472bfcdd59367d1ed14df00006f9db40ba1e325 | 924 | py | Python | planner/migrations/0008_lawnproduct.py | pmontgo33/lawn-care-planner | 0b79a07a301eeb9a15ff1f4f461bdd364151f86a | [
"MIT"
] | 7 | 2016-12-07T18:34:42.000Z | 2021-08-03T15:22:35.000Z | planner/migrations/0008_lawnproduct.py | pmontgo33/lawn-care-planner | 0b79a07a301eeb9a15ff1f4f461bdd364151f86a | [
"MIT"
] | 35 | 2016-11-23T15:40:46.000Z | 2017-05-18T22:58:17.000Z | planner/migrations/0008_lawnproduct.py | pmontgo33/lawn-care-planner | 0b79a07a301eeb9a15ff1f4f461bdd364151f86a | [
"MIT"
] | 1 | 2017-04-13T15:13:01.000Z | 2017-04-13T15:13:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-06 03:59
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('planner', '0007_auto_20161123_0805'),
]
operations = [
... | 34.222222 | 201 | 0.599567 | 94 | 924 | 5.755319 | 0.648936 | 0.083179 | 0.073937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056115 | 0.247836 | 924 | 26 | 202 | 35.538462 | 0.722302 | 0.073593 | 0 | 0 | 1 | 0 | 0.181712 | 0.026964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 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 |
d47599305c1d1b7b8d20de48c506ff172cde37a3 | 5,173 | py | Python | pyaz/search/service/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/search/service/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/search/service/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage Azure Search services.
'''
from ... pyaz_utils import _call_az
def list(resource_group):
'''
Required Parameters:
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
'''
return _call_az("az search service list... | 49.740385 | 312 | 0.715832 | 693 | 5,173 | 5.258297 | 0.226551 | 0.078485 | 0.05708 | 0.034577 | 0.581778 | 0.574918 | 0.531559 | 0.531559 | 0.531559 | 0.506312 | 0 | 0.000955 | 0.190218 | 5,173 | 103 | 313 | 50.223301 | 0.868942 | 0.744442 | 0 | 0 | 0 | 0 | 0.134111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0.076923 | 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 |
d47c7410ad2e1d295e58a4e424616eb38492c3d3 | 3,502 | py | Python | care_batch/train.py | amedyukhina/care_batch | 7670eb7bbd9339dcc580cf8686c79900253392eb | [
"Apache-2.0"
] | null | null | null | care_batch/train.py | amedyukhina/care_batch | 7670eb7bbd9339dcc580cf8686c79900253392eb | [
"Apache-2.0"
] | null | null | null | care_batch/train.py | amedyukhina/care_batch | 7670eb7bbd9339dcc580cf8686c79900253392eb | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, unicode_literals, absolute_import, division
import os
import matplotlib.pyplot as plt
from csbdeep.io import load_training_data
from csbdeep.models import Config, CARE
from csbdeep.utils import axes_dict, plot_history
from csbdeep.utils.tf import limit_gpu_memory
def train(dat... | 41.690476 | 114 | 0.679326 | 474 | 3,502 | 4.814346 | 0.339662 | 0.021034 | 0.028484 | 0.037248 | 0.124014 | 0.124014 | 0.074496 | 0 | 0 | 0 | 0 | 0.013086 | 0.214449 | 3,502 | 83 | 115 | 42.192771 | 0.81643 | 0.625928 | 0 | 0 | 0 | 0 | 0.040703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d48253284557462c50068a4ee14dab1e8cdaa744 | 623 | py | Python | weather_bot/generate_audio_files.py | tinalimbudev/weather-bot | 6e59420cac3a6b31d52983287c42ef9f4feb3422 | [
"MIT"
] | null | null | null | weather_bot/generate_audio_files.py | tinalimbudev/weather-bot | 6e59420cac3a6b31d52983287c42ef9f4feb3422 | [
"MIT"
] | null | null | null | weather_bot/generate_audio_files.py | tinalimbudev/weather-bot | 6e59420cac3a6b31d52983287c42ef9f4feb3422 | [
"MIT"
] | null | null | null | import os
from gtts import gTTS
from pathlib import Path
def generate_audio_file_from_text(
text, file_name, file_type="mp3", language="en", slow=False
):
audio = gTTS(text=text, lang=language, slow=slow)
file_path = os.path.join(
Path().absolute(),
"media",
"common_responses",
f"{file_name}.{f... | 22.25 | 61 | 0.701445 | 93 | 623 | 4.354839 | 0.505376 | 0.079012 | 0.088889 | 0.103704 | 0.182716 | 0.182716 | 0.182716 | 0.182716 | 0 | 0 | 0 | 0.001942 | 0.173355 | 623 | 27 | 62 | 23.074074 | 0.784466 | 0.126806 | 0 | 0 | 1 | 0 | 0.10536 | 0.042514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 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 |
d4831cb1233c25b64c8427e8a7e41ee32b1bfca1 | 2,917 | py | Python | app.py | sohje/__flask_psgr | 4d8b201b93b72f55965cbaa030fcfb062b818803 | [
"MIT"
] | null | null | null | app.py | sohje/__flask_psgr | 4d8b201b93b72f55965cbaa030fcfb062b818803 | [
"MIT"
] | null | null | null | app.py | sohje/__flask_psgr | 4d8b201b93b72f55965cbaa030fcfb062b818803 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import (create_engine, MetaData,
Table, Column, Integer, Text, String, DateTime)
from flask import Flask, request, jsonify, g
from mock_session import session_info_retriever
app = Flask(__name__)
# config.DevelopmentConfig -> sqlite://testing.db
# config.ProductionConfig -> postgresql:/... | 31.031915 | 82 | 0.685979 | 390 | 2,917 | 4.938462 | 0.312821 | 0.028037 | 0.031153 | 0.034268 | 0.281412 | 0.252336 | 0.223261 | 0.199377 | 0.170301 | 0.170301 | 0 | 0.000825 | 0.168666 | 2,917 | 93 | 83 | 31.365591 | 0.793402 | 0.097017 | 0 | 0.144928 | 0 | 0 | 0.14716 | 0.027068 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.101449 | false | 0 | 0.072464 | 0 | 0.275362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d489decc18d8071a490883065a8c77ea014b486d | 1,221 | py | Python | draw.py | Adamv27/Pygame-drawing | 7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58 | [
"MIT"
] | null | null | null | draw.py | Adamv27/Pygame-drawing | 7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58 | [
"MIT"
] | null | null | null | draw.py | Adamv27/Pygame-drawing | 7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58 | [
"MIT"
] | null | null | null | import sys
import pygame
def draw_canvas(screen, colors):
screen.fill(colors[0])
pygame.draw.rect(screen, colors[5], (20, 20, 500, 500))
index = 1 # skip light grey
for row in range(2):
for column in range(4):
pygame.draw.rect(screen, colors[index], ((60 * column) + 20... | 32.131579 | 100 | 0.564292 | 176 | 1,221 | 3.875 | 0.340909 | 0.087977 | 0.123167 | 0.175953 | 0.250733 | 0.21261 | 0.093842 | 0 | 0 | 0 | 0 | 0.119639 | 0.274365 | 1,221 | 38 | 101 | 32.131579 | 0.650113 | 0.043407 | 0 | 0 | 0 | 0 | 0.007092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.185185 | 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 |
d48a44f09de17b16e44c7192aa9ce93c25f50f90 | 1,027 | py | Python | fixture/soap.py | AlekseyVR/Python_mantis | ee07710d2fb5578bfe2d1906344ee7366c5878d4 | [
"Apache-2.0"
] | null | null | null | fixture/soap.py | AlekseyVR/Python_mantis | ee07710d2fb5578bfe2d1906344ee7366c5878d4 | [
"Apache-2.0"
] | null | null | null | fixture/soap.py | AlekseyVR/Python_mantis | ee07710d2fb5578bfe2d1906344ee7366c5878d4 | [
"Apache-2.0"
] | null | null | null | from suds.client import Client
from suds import WebFault
from model.project import Project
class SoapHelper:
def __init__(self, app):
self.app = app
def can_login(self, username, password):
client = Client(self.app.base_url + "api/soap/mantisconnect.php?wsdl")
try:
client.... | 32.09375 | 116 | 0.646543 | 118 | 1,027 | 5.449153 | 0.372881 | 0.124417 | 0.062208 | 0.087092 | 0.22395 | 0.22395 | 0.22395 | 0.22395 | 0.22395 | 0.22395 | 0 | 0 | 0.27556 | 1,027 | 31 | 117 | 33.129032 | 0.864247 | 0 | 0 | 0.32 | 0 | 0 | 0.060429 | 0.060429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.2 | 0.12 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d48ad6f933339a03da03cb3447d55414174ab54a | 303 | py | Python | samples/sample.py | andy1xx8/spacy-train-tools | 8b3416c2505f43fcd06d40578d1938f284f8535b | [
"MIT"
] | null | null | null | samples/sample.py | andy1xx8/spacy-train-tools | 8b3416c2505f43fcd06d40578d1938f284f8535b | [
"MIT"
] | null | null | null | samples/sample.py | andy1xx8/spacy-train-tools | 8b3416c2505f43fcd06d40578d1938f284f8535b | [
"MIT"
] | null | null | null | from src.spacy_train_tools.train import train_spacy_model
if __name__ == "__main__":
train_spacy_model(
config_file='./en_config.cfg',
vector_file='en_core_web_lg',
train_file='./data/train.jsonl',
dev_file='./data/dev.jsonl',
output_folder='./models'
)
| 27.545455 | 57 | 0.653465 | 40 | 303 | 4.375 | 0.6 | 0.114286 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211221 | 303 | 10 | 58 | 30.3 | 0.732218 | 0 | 0 | 0 | 0 | 0 | 0.260726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
00f755c8104812d495b3d40142b84b1df9d1f2b7 | 7,970 | py | Python | cpc.py | vkramskikh/cgminer-pool-chooser | 507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325 | [
"MIT"
] | 1 | 2018-02-12T12:52:59.000Z | 2018-02-12T12:52:59.000Z | cpc.py | vkramskikh/cgminer-pool-chooser | 507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325 | [
"MIT"
] | null | null | null | cpc.py | vkramskikh/cgminer-pool-chooser | 507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import time
import json
import yaml
import socket
import argparse
import traceback
from pycgminer import CgminerAPI
from data_providers import CoinwarzAPI, CryptsyAPI
from rating_calculator import RatingCalculator
import logging
logging.basicConfig(
level=logging.INFO,
format=... | 43.791209 | 156 | 0.599749 | 864 | 7,970 | 5.332176 | 0.239583 | 0.046885 | 0.02583 | 0.01628 | 0.168656 | 0.067289 | 0.02952 | 0 | 0 | 0 | 0 | 0.005771 | 0.28256 | 7,970 | 181 | 157 | 44.033149 | 0.79993 | 0.002509 | 0 | 0.139241 | 0 | 0.006329 | 0.179645 | 0.005913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006329 | 0.06962 | null | null | 0.006329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00f8e507c83b1e8a355cf2a4def195c5fc9c92f9 | 997 | py | Python | tournaments/migrations/0010_auto_20210413_1103.py | lejbron/arkenstone | d5341c27ba81eaf116e5ee5983b4fa422437d294 | [
"MIT"
] | null | null | null | tournaments/migrations/0010_auto_20210413_1103.py | lejbron/arkenstone | d5341c27ba81eaf116e5ee5983b4fa422437d294 | [
"MIT"
] | 4 | 2021-03-17T19:46:35.000Z | 2021-04-09T11:37:53.000Z | tournaments/migrations/0010_auto_20210413_1103.py | lejbron/arkenstone | d5341c27ba81eaf116e5ee5983b4fa422437d294 | [
"MIT"
] | 1 | 2021-04-11T07:50:56.000Z | 2021-04-11T07:50:56.000Z | # Generated by Django 3.1.4 on 2021-04-13 11:03
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tournaments', '0009_mat... | 35.607143 | 226 | 0.68004 | 114 | 997 | 5.754386 | 0.561404 | 0.04878 | 0.064024 | 0.10061 | 0.091463 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0.02375 | 0.197593 | 997 | 27 | 227 | 36.925926 | 0.79625 | 0.045135 | 0 | 0.2 | 1 | 0 | 0.174737 | 0.023158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e021c651d7a900ad2c435ab111127800dcc4a9d | 358 | py | Python | Exe19_centena_dezena_unidade.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null | Exe19_centena_dezena_unidade.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null | Exe19_centena_dezena_unidade.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null | numero = int(input("Entre com um numero inteiro e menor que 1000: "))
if numero > 1000:
print("Numero invalido")
else:
unidade = numero % 10
numero = (numero - unidade) / 10
dezena = int(numero % 10)
numero = (numero - dezena) / 10
centena = int(numero)
print(f"{centena} centena(s) , {dezena... | 29.833333 | 78 | 0.625698 | 49 | 358 | 4.571429 | 0.428571 | 0.071429 | 0.125 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058182 | 0.231844 | 358 | 11 | 79 | 32.545455 | 0.756364 | 0 | 0 | 0 | 0 | 0.1 | 0.35014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
2e0377ac4e43c9d229393037f3e74eee30abc01b | 2,363 | py | Python | tests/report_test.py | thepatrik/corunner | a68ed8e4f9f659b71a03c37833710544532c302d | [
"MIT"
] | null | null | null | tests/report_test.py | thepatrik/corunner | a68ed8e4f9f659b71a03c37833710544532c302d | [
"MIT"
] | null | null | null | tests/report_test.py | thepatrik/corunner | a68ed8e4f9f659b71a03c37833710544532c302d | [
"MIT"
] | null | null | null | import time
from corunner.report import Execution, Report
def test_fastest():
report = _get_report()
assert report.fastest().latency == 100.0
assert report.fastest(include_errored=True).latency == 1.0
def test_slowest():
report = _get_report()
assert report.slowest().latency == 100.0
asse... | 21.87963 | 74 | 0.679221 | 317 | 2,363 | 4.817035 | 0.173502 | 0.133595 | 0.098232 | 0.11002 | 0.244925 | 0.037983 | 0.037983 | 0 | 0 | 0 | 0 | 0.041204 | 0.1989 | 2,363 | 107 | 75 | 22.084112 | 0.765452 | 0 | 0 | 0.151515 | 0 | 0 | 0.024968 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.19697 | false | 0 | 0.030303 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
2e06145b8cef85327fb9fa4107bd574429bd28d9 | 3,891 | py | Python | lib/synthetic_data.py | ppmdatix/rtdl | a01ecd9ae6b673f4e82e51f804ffd7031c7350a0 | [
"Apache-2.0"
] | 298 | 2021-06-22T15:41:18.000Z | 2022-03-09T07:52:30.000Z | lib/synthetic_data.py | ppmdatix/rtdl | a01ecd9ae6b673f4e82e51f804ffd7031c7350a0 | [
"Apache-2.0"
] | 15 | 2022-03-15T15:28:27.000Z | 2022-03-30T12:15:01.000Z | lib/synthetic_data.py | ppmdatix/rtdl | a01ecd9ae6b673f4e82e51f804ffd7031c7350a0 | [
"Apache-2.0"
] | 37 | 2021-06-25T03:56:37.000Z | 2022-03-10T11:07:51.000Z | "Code used to generate data for experiments with synthetic data"
import math
import typing as ty
import numba
import numpy as np
import torch
import torch.nn as nn
from numba.experimental import jitclass
from tqdm.auto import tqdm
class MLP(nn.Module):
def __init__(
self,
*,
d_in: int,
... | 31.128 | 85 | 0.542534 | 522 | 3,891 | 3.8659 | 0.256705 | 0.035679 | 0.044599 | 0.029732 | 0.160555 | 0.144698 | 0.095144 | 0.070367 | 0.03667 | 0.03667 | 0 | 0.020101 | 0.335132 | 3,891 | 124 | 86 | 31.379032 | 0.759954 | 0.049859 | 0 | 0.04 | 1 | 0 | 0.050577 | 0 | 0 | 0 | 0 | 0 | 0.01 | 1 | 0.07 | false | 0 | 0.08 | 0.01 | 0.21 | 0 | 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 |
2e11b018571f8da8d5cc1bd1ec0a76cb6a0343dc | 792 | py | Python | importer.py | CSwigg/stellarmass_pca | 6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75 | [
"MIT"
] | null | null | null | importer.py | CSwigg/stellarmass_pca | 6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75 | [
"MIT"
] | 1 | 2019-08-14T15:37:41.000Z | 2019-08-29T18:28:40.000Z | importer.py | CSwigg/stellarmass_pca | 6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75 | [
"MIT"
] | null | null | null | import os, sys, matplotlib
import faulthandler; faulthandler.enable()
mpl_v = 'MPL-8'
daptype = 'SPX-MILESHC-MILESHC'
os.environ['STELLARMASS_PCA_RESULTSDIR'] = '/Users/admin/sas/mangawork/manga/mangapca/zachpace/CSPs_CKC14_MaNGA_20190215-1/v2_5_3/2.3.0/results'
manga_results_basedir = os.environ['STELLARMASS_PCA_RESU... | 39.6 | 144 | 0.790404 | 110 | 792 | 5.472727 | 0.518182 | 0.089701 | 0.166113 | 0.19103 | 0.506645 | 0.219269 | 0.219269 | 0.219269 | 0.219269 | 0.219269 | 0 | 0.04235 | 0.075758 | 792 | 19 | 145 | 41.684211 | 0.780055 | 0 | 0 | 0 | 0 | 0.0625 | 0.463384 | 0.380051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
2e128579da620ba7e1fb47af33782a7c01aadb8f | 502 | py | Python | src/google-cloud-speech/python/client.py | d-iii-s/teaching-introduction-middleware | 6d1129571c33059ca0c6ace8df18d3865e6205a0 | [
"Apache-2.0"
] | 2 | 2020-10-14T19:01:17.000Z | 2021-09-13T12:08:31.000Z | src/google-cloud-speech/python/client.py | d-iii-s/teaching-introduction-middleware | 6d1129571c33059ca0c6ace8df18d3865e6205a0 | [
"Apache-2.0"
] | 1 | 2021-01-07T08:32:05.000Z | 2021-01-07T08:32:05.000Z | src/google-cloud-speech/python/client.py | D-iii-S/teaching-introduction-middleware | 46abce8b4b6994a6fbc7c3c2abfb5962ed503a43 | [
"Apache-2.0"
] | 4 | 2020-10-15T13:26:43.000Z | 2021-10-07T11:07:30.000Z | #!/usr/bin/env python3
import sys
from google.cloud import speech as google_cloud_speech
# Create the object representing the API to the client.
client = google_cloud_speech.SpeechClient ()
content = open (sys.argv [1], 'rb').read ()
audio = google_cloud_speech.RecognitionAudio (content = content)
config = google_c... | 27.888889 | 72 | 0.768924 | 68 | 502 | 5.544118 | 0.588235 | 0.145889 | 0.180371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.135458 | 502 | 17 | 73 | 29.529412 | 0.864055 | 0.24502 | 0 | 0 | 0 | 0 | 0.018617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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 |
2e19e9cc056c63106926ce23bba19316b4c83198 | 477 | py | Python | service_catalog/utils.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | service_catalog/utils.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | service_catalog/utils.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | def str_to_bool(s):
if isinstance(s, bool): # do not convert if already a boolean
return s
else:
if s == 'True' \
or s == 'true' \
or s == '1' \
or s == 1 \
or s == True:
return True
elif s == 'False' \
... | 26.5 | 66 | 0.350105 | 55 | 477 | 3 | 0.381818 | 0.145455 | 0.084848 | 0.09697 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.542977 | 477 | 17 | 67 | 28.058824 | 0.738532 | 0.073375 | 0 | 0.117647 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
2e2cd6de05e6f854d4a44bdc3069fb849e91ed70 | 608 | py | Python | tests/test_conns.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | tests/test_conns.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | tests/test_conns.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | import sys
import os
import unittest
from mock import MagicMock, patch
import json
sys.path.append(os.path.dirname(os.path.dirname(
os.path.abspath(__file__))))
import app
from app.config import db_conn_str
import base64
import sqlalchemy
class TestConnections(unittest.TestCase):
def setUp(self):
self.... | 24.32 | 57 | 0.700658 | 81 | 608 | 5.024691 | 0.530864 | 0.044226 | 0.063882 | 0.07371 | 0.078624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.202303 | 608 | 24 | 58 | 25.333333 | 0.835052 | 0.067434 | 0 | 0 | 0 | 0 | 0.014311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.45 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e373c6d12f335af7154c7c8478202f3eb936444 | 666 | py | Python | docs/core/examples/stdin.py | Khymeira/twisted | a8aae6853b729a742ed4a99b95e8fe0c5f1dad97 | [
"Unlicense",
"MIT"
] | 4,612 | 2015-01-01T12:57:23.000Z | 2022-03-30T01:08:23.000Z | docs/core/examples/stdin.py | Khymeira/twisted | a8aae6853b729a742ed4a99b95e8fe0c5f1dad97 | [
"Unlicense",
"MIT"
] | 1,243 | 2015-01-23T17:23:59.000Z | 2022-03-28T13:46:17.000Z | docs/core/examples/stdin.py | Khymeira/twisted | a8aae6853b729a742ed4a99b95e8fe0c5f1dad97 | [
"Unlicense",
"MIT"
] | 1,236 | 2015-01-13T14:41:26.000Z | 2022-03-17T07:12:36.000Z | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
An example of reading a line at a time from standard input
without blocking the reactor.
"""
from os import linesep
from twisted.internet import stdio
from twisted.protocols import basic
class Echo(basic.LineReceiver):
delimiter = lin... | 18.5 | 58 | 0.68018 | 83 | 666 | 5.361446 | 0.60241 | 0.074157 | 0.085393 | 0.11236 | 0.098876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205706 | 666 | 35 | 59 | 19.028571 | 0.84121 | 0.235736 | 0 | 0.125 | 0 | 0 | 0.054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2e416e106618e66359cbd6f5a9c858ba2efcc685 | 2,854 | py | Python | goodsManage/admin.py | z-Wind/warehouse | 3a1ebee4d37bc4e3b6783fee78062eb7aa8da152 | [
"MIT"
] | null | null | null | goodsManage/admin.py | z-Wind/warehouse | 3a1ebee4d37bc4e3b6783fee78062eb7aa8da152 | [
"MIT"
] | null | null | null | goodsManage/admin.py | z-Wind/warehouse | 3a1ebee4d37bc4e3b6783fee78062eb7aa8da152 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from goodsManage.models import *
class GoodInventoryInline(admin.TabularInline):
model = GoodInventory
extra = 1
@admin.register(GoodKind)
class GoodKindAdmin(admin.ModelAdmin):
list_display = [f.name for f in GoodKind._meta.fields if f.name !... | 38.053333 | 83 | 0.711983 | 360 | 2,854 | 5.441667 | 0.177778 | 0.061256 | 0.116386 | 0.159265 | 0.601327 | 0.601327 | 0.591118 | 0.561511 | 0.497703 | 0.210311 | 0 | 0.000412 | 0.149264 | 2,854 | 75 | 84 | 38.053333 | 0.806425 | 0.037491 | 0 | 0.107143 | 0 | 0 | 0.125775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e44d40deef066981e5898570685011fbd57c186 | 1,068 | py | Python | 2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 1. SHUFFLE AN ARRAY:
class Solution:
def __init__(self, nums):
self.array = nums
self.original = list(nums)
def reset(self):
self.array = self.original
self.original = list(self.original)
return self.array
def shuffle(self):
aux = list(s... | 24.837209 | 56 | 0.532772 | 139 | 1,068 | 3.964029 | 0.323741 | 0.087114 | 0.15971 | 0.065336 | 0.208711 | 0.079855 | 0 | 0 | 0 | 0 | 0 | 0.015581 | 0.338951 | 1,068 | 43 | 57 | 24.837209 | 0.764873 | 0.046816 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e4813e101148d2aa8ef55663105ba34b2d5e596 | 13,170 | py | Python | lib/python2.7/site-packages/appionlib/apTilt/autotilt.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/appionlib/apTilt/autotilt.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/appionlib/apTilt/autotilt.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | #!/usr/bin/env python
#python
import os
import sys
import time
import numpy
import threading
from PIL import Image
from pyami import quietscipy
from scipy import ndimage, optimize
#appion
try:
import radermacher
except:
print "using slow tilt angle calculator"
import slowmacher as radermacher
from appionlib import ... | 32.679901 | 122 | 0.620881 | 1,554 | 13,170 | 5.258044 | 0.212355 | 0.041121 | 0.011137 | 0.016155 | 0.243422 | 0.219312 | 0.191409 | 0.173785 | 0.16375 | 0.128993 | 0 | 0.032511 | 0.156872 | 13,170 | 402 | 123 | 32.761194 | 0.70335 | 0.150569 | 0 | 0.262069 | 0 | 0.003448 | 0.094854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062069 | null | null | 0.093103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e48140d20f0f36746242230c58ba92c4fce4b01 | 676 | py | Python | bin/utils/topo.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 8 | 2018-06-21T03:20:26.000Z | 2021-10-15T03:53:49.000Z | bin/utils/topo.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 12 | 2018-05-21T17:26:59.000Z | 2018-06-14T02:48:21.000Z | bin/utils/topo.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 3 | 2018-08-30T22:37:20.000Z | 2019-03-31T18:29:52.000Z | import json
# use adjacency list for representing network would be intuitive for human
class topo:
def __init__(self):
self.graph=[]
@staticmethod
def read_from_json(filename):
raw=open(filename).read()
jdata=json.loads(raw)
nodes=[]
# init graph based on how many nodes we have
node_count=len(jdata)
... | 21.806452 | 74 | 0.723373 | 107 | 676 | 4.429907 | 0.53271 | 0.056962 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.162722 | 676 | 30 | 75 | 22.533333 | 0.833922 | 0.33284 | 0 | 0.105263 | 0 | 0 | 0.042793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e483ff8bc55f318b8c66a3d2be4b382f2c8b3ca | 527 | py | Python | __getYardAndMiles.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __getYardAndMiles.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __getYardAndMiles.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | '''
Python program to convert the distance (in feet) to inches,yards, and miles
'''
def distanceInInches (d_ft):
print("The distance in inches is %i inches." %(d_ft * 12))
def distanceInYard (d_ft):
print("The distance in yards is %.2f yards." %(d_ft / 3.0))
def distanceInMiles (d_ft):
print("The distanc... | 25.095238 | 75 | 0.650854 | 80 | 527 | 4.1625 | 0.3625 | 0.09009 | 0.156156 | 0.099099 | 0.189189 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0.026506 | 0.212524 | 527 | 21 | 76 | 25.095238 | 0.775904 | 0.142315 | 0 | 0 | 0 | 0 | 0.296629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e650c253e8a6cac26c779a3546cf34701f3d990 | 1,085 | py | Python | securityheaders/checkers/hsts/test_maxagezero.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 151 | 2018-07-29T22:34:43.000Z | 2022-03-22T05:08:27.000Z | securityheaders/checkers/hsts/test_maxagezero.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 5 | 2019-04-24T07:31:36.000Z | 2021-04-15T14:31:23.000Z | securityheaders/checkers/hsts/test_maxagezero.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 42 | 2018-07-31T08:18:59.000Z | 2022-03-28T08:18:32.000Z | import unittest
from securityheaders.checkers.hsts import HSTSMaxAgeZeroChecker
class HSTSMaxAgeZeroCheckerTest(unittest.TestCase):
def setUp(self):
self.x = HSTSMaxAgeZeroChecker()
def test_checkNoHSTS(self):
nox = dict()
nox['test'] = 'value'
self.assertEqual(self.x.check(nox), ... | 28.552632 | 81 | 0.647926 | 119 | 1,085 | 5.798319 | 0.378151 | 0.050725 | 0.086957 | 0.115942 | 0.336232 | 0.084058 | 0 | 0 | 0 | 0 | 0 | 0.020024 | 0.217512 | 1,085 | 37 | 82 | 29.324324 | 0.792697 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.069124 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e66a4f133f98300f3f7bd13dd28274a3ef5f09d | 6,534 | py | Python | GUI.py | wtarimo/CFCScorePredictor | 2823dffdd4c13e29ebc5e77d85e000fa9977ef90 | [
"Artistic-2.0"
] | null | null | null | GUI.py | wtarimo/CFCScorePredictor | 2823dffdd4c13e29ebc5e77d85e000fa9977ef90 | [
"Artistic-2.0"
] | null | null | null | GUI.py | wtarimo/CFCScorePredictor | 2823dffdd4c13e29ebc5e77d85e000fa9977ef90 | [
"Artistic-2.0"
] | null | null | null | """
William Tarimo
COSI 157 - Final Project: CFC Score Predictor
This module manages instances of games
11/11/2012
"""
from Game import *
def userInputBox(win):
"""Creates and diplays graphical fields for user signing and registration"""
Text(Point(55,50), "Full Name:").draw(win)
rName... | 46.340426 | 143 | 0.632537 | 904 | 6,534 | 4.513274 | 0.225664 | 0.092647 | 0.048529 | 0.070588 | 0.277451 | 0.187745 | 0.166422 | 0.118137 | 0.118137 | 0.118137 | 0 | 0.096554 | 0.191613 | 6,534 | 140 | 144 | 46.671429 | 0.67588 | 0.08494 | 0 | 0.125 | 0 | 0 | 0.099931 | 0.004142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067308 | false | 0.057692 | 0.009615 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2e6a1028d97ccf09e8a08b43ffd57fa04c969dd7 | 11,300 | py | Python | doctor_jsonschema_md.py | rdpickard/doctor_jsonschema_md | e710ed89e877aba9e72abb9867bceaad6dddd87f | [
"BSD-3-Clause"
] | 6 | 2016-01-12T18:31:12.000Z | 2021-09-29T12:32:14.000Z | doctor_jsonschema_md.py | rdpickard/doctor_jsonschema_md | e710ed89e877aba9e72abb9867bceaad6dddd87f | [
"BSD-3-Clause"
] | null | null | null | doctor_jsonschema_md.py | rdpickard/doctor_jsonschema_md | e710ed89e877aba9e72abb9867bceaad6dddd87f | [
"BSD-3-Clause"
] | null | null | null | import json
import os
import logging
import time
import argparse
def _mds(s, iscode=False):
"""
Convert a string to a 'markdown' string by escaping control and syntax highlighting characters
:param s: The string to escape
:param iscode: The string appears in a (tick)(tick)code(tick)(tick) block
:... | 39.649123 | 120 | 0.57354 | 1,277 | 11,300 | 4.984338 | 0.203602 | 0.020896 | 0.036764 | 0.011312 | 0.15271 | 0.117203 | 0.081697 | 0.043362 | 0.025452 | 0.013511 | 0 | 0.002231 | 0.285929 | 11,300 | 284 | 121 | 39.788732 | 0.786591 | 0.007699 | 0 | 0.204082 | 0 | 0 | 0.192455 | 0.002451 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02551 | 0.02551 | null | null | 0.005102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e79e519ed71cec0148d3ba0c2654172c86976af | 4,737 | py | Python | zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py | xxdunedainxx/zdiscord | e79039621969fd7a2987ccac4e8d6fcff11ee754 | [
"MIT"
] | null | null | null | zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py | xxdunedainxx/zdiscord | e79039621969fd7a2987ccac4e8d6fcff11ee754 | [
"MIT"
] | 57 | 2020-06-05T18:33:17.000Z | 2020-08-17T18:28:37.000Z | zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py | xxdunedainxx/zdiscord | e79039621969fd7a2987ccac4e8d6fcff11ee754 | [
"MIT"
] | null | null | null | # contains connectors between discord api logic && command logic
from zdiscord.service.messaging.CommandFactory import CommandFactory
from zdiscord.service.ServiceFactory import ServiceFactory
from zdiscord.service.integration.chat.discord.DiscordEvents import DiscordEvent
from zdiscord.service.messaging.Events import ... | 49.863158 | 195 | 0.649778 | 585 | 4,737 | 5.17265 | 0.14188 | 0.059484 | 0.099141 | 0.138797 | 0.668539 | 0.659617 | 0.624587 | 0.624587 | 0.609716 | 0.609716 | 0 | 0.001097 | 0.230315 | 4,737 | 95 | 196 | 49.863158 | 0.828854 | 0.037365 | 0 | 0.567901 | 0 | 0 | 0.108476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.098765 | 0 | 0.234568 | 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 |
2e7bd3d7ad84ae06f1e5357bb603f820856ea85c | 866 | py | Python | 0656 Gene Mutation Groups.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 1 | 2020-12-29T21:17:26.000Z | 2020-12-29T21:17:26.000Z | 0656 Gene Mutation Groups.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | 0656 Gene Mutation Groups.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 4 | 2021-09-09T17:42:43.000Z | 2022-03-18T04:54:03.000Z | class Solution:
def solve(self, genes):
ans = 0
seen = set()
genes = set(genes)
for gene in genes:
if gene in seen:
continue
ans += 1
dfs = [gene]
seen.add(gene)
while dfs:
cur = dfs.pop()
... | 26.242424 | 70 | 0.362587 | 91 | 866 | 3.351648 | 0.395604 | 0.114754 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005141 | 0.550808 | 866 | 32 | 71 | 27.0625 | 0.77892 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
2e826e5485a0fdc41f7a7c7fdbeb5bb0e08fa5d3 | 286 | py | Python | Server/utils/blueprints/Logging.py | thearyadev/Security-System | f9fa48196eef4dc83a9059e10e3c97e2f0842b8d | [
"MIT"
] | 1 | 2022-02-26T21:43:19.000Z | 2022-02-26T21:43:19.000Z | Server/utils/blueprints/Logging.py | thearyadev/Security-System | f9fa48196eef4dc83a9059e10e3c97e2f0842b8d | [
"MIT"
] | null | null | null | Server/utils/blueprints/Logging.py | thearyadev/Security-System | f9fa48196eef4dc83a9059e10e3c97e2f0842b8d | [
"MIT"
] | null | null | null | from _testcapi import instancemethod
from .ParentView import View
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..Server import Server
class Logging(View):
def __init__(self, server: 'Server'):
super().__init__(name=self.__class__.__name__, server=server)
| 22 | 69 | 0.755245 | 36 | 286 | 5.472222 | 0.5 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 286 | 12 | 70 | 23.833333 | 0.820833 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e87c0bdf562862b65d0f64835fcb315496fe1df | 9,494 | py | Python | evalution/composes/composition/composition_model.py | esantus/evalution2 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2017-12-06T21:46:26.000Z | 2017-12-06T21:46:26.000Z | evalution/composes/composition/composition_model.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 5 | 2020-03-24T15:27:40.000Z | 2021-06-01T21:47:18.000Z | evalution/composes/composition/composition_model.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2018-02-15T17:13:02.000Z | 2018-02-15T17:13:02.000Z | '''
Created on Oct 5, 2012
@author: Georgiana Dinu, Pham The Nghia
'''
import time
import math
from warnings import warn
from composes.semantic_space.space import Space
from composes.matrix.dense_matrix import DenseMatrix
from composes.utils.gen_utils import assert_is_instance
from composes.utils.matrix_utils import r... | 36.515385 | 126 | 0.58321 | 1,130 | 9,494 | 4.686726 | 0.200885 | 0.035687 | 0.029079 | 0.033988 | 0.373301 | 0.27398 | 0.232817 | 0.191465 | 0.147659 | 0.106118 | 0 | 0.029582 | 0.344849 | 9,494 | 259 | 127 | 36.656371 | 0.821865 | 0.020223 | 0 | 0.111111 | 0 | 0.007937 | 0.076767 | 0.003053 | 0 | 0 | 0 | 0 | 0.039683 | 0 | null | null | 0 | 0.079365 | null | null | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e8c0b9ec91bd9f40ae51c082d96946532cbb9b5 | 1,139 | py | Python | test/plugin_support_test.py | spbrogan/rvc2mqtt | fca47bd302c895ae89af21d08a652fa595ea482b | [
"Apache-2.0"
] | 6 | 2022-01-16T18:36:03.000Z | 2022-03-10T02:01:24.000Z | test/plugin_support_test.py | ccirrinc/rvc2mqtt | 108328323357e55be6242887b964ca936ea7b3fc | [
"Apache-2.0"
] | 38 | 2022-01-09T22:20:36.000Z | 2022-03-21T06:28:46.000Z | test/plugin_support_test.py | ccirrinc/rvc2mqtt | 108328323357e55be6242887b964ca936ea7b3fc | [
"Apache-2.0"
] | 1 | 2022-01-30T00:20:40.000Z | 2022-01-30T00:20:40.000Z | """
Unit tests for the plugin_support module
This is just a hack to invoke it..not a unit test
Copyright 2022 Sean Brogan
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the L... | 33.5 | 111 | 0.765584 | 179 | 1,139 | 4.75419 | 0.620112 | 0.070505 | 0.030552 | 0.037603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01357 | 0.158911 | 1,139 | 34 | 112 | 33.5 | 0.874739 | 0.698859 | 0 | 0 | 0 | 0 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5cf3021973cd6275c26935e79845f01ddda593d2 | 449 | py | Python | core/urls.py | kevincornish/Genesis | 6bc424fe97be954776dec2bdc4c7d214992cc3e2 | [
"MIT"
] | null | null | null | core/urls.py | kevincornish/Genesis | 6bc424fe97be954776dec2bdc4c7d214992cc3e2 | [
"MIT"
] | null | null | null | core/urls.py | kevincornish/Genesis | 6bc424fe97be954776dec2bdc4c7d214992cc3e2 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from core import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^profile/$', views.profile, name='profile'),
url(r'^login/$', views.doLo... | 29.933333 | 54 | 0.683742 | 63 | 449 | 4.873016 | 0.380952 | 0.065147 | 0.136808 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138085 | 449 | 15 | 55 | 29.933333 | 0.793282 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cf0562de443d67001cb57718f67ebe5a0d8e1e3c | 4,559 | py | Python | awacs/redshift.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | null | null | null | awacs/redshift.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | null | null | null | awacs/redshift.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'Amazon Redshift'
prefix = 'redshift'
class Action(BaseAction):
def __init__(self, action=None):
sup = super(Acti... | 46.050505 | 73 | 0.830884 | 274 | 4,559 | 13.762774 | 0.383212 | 0.004243 | 0.006895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001906 | 0.079403 | 4,559 | 98 | 74 | 46.520408 | 0.896593 | 0.023251 | 0 | 0 | 0 | 0 | 0.341727 | 0.265962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.023256 | 0 | 0.069767 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf10ed3e2eb2a9811b1265ceb9d30e65333e6e5f | 1,019 | py | Python | daiquiri/metadata/management/commands/update_access_level.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 14 | 2018-12-23T18:35:02.000Z | 2021-12-15T04:55:12.000Z | daiquiri/metadata/management/commands/update_access_level.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 40 | 2018-12-20T12:44:05.000Z | 2022-03-21T11:35:20.000Z | daiquiri/metadata/management/commands/update_access_level.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 5 | 2019-05-16T08:03:35.000Z | 2021-08-23T20:03:11.000Z | from django.core.management.base import BaseCommand,CommandError
from django.utils.translation import ugettext_lazy as _
from daiquiri.core.constants import ACCESS_LEVEL_CHOICES
from daiquiri.metadata.models import Schema
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('... | 36.392857 | 94 | 0.708538 | 124 | 1,019 | 5.612903 | 0.427419 | 0.237069 | 0.12931 | 0.137931 | 0.221264 | 0.221264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191364 | 1,019 | 27 | 95 | 37.740741 | 0.84466 | 0 | 0 | 0 | 0 | 0 | 0.167812 | 0.020608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf2211cf683c450a9ee0fff5f91b9dcf3295ad09 | 1,314 | py | Python | 04 - Class vs Static Methods/helper.py | ThiagoPiovesan/OOP-Python | 02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e | [
"MIT"
] | null | null | null | 04 - Class vs Static Methods/helper.py | ThiagoPiovesan/OOP-Python | 02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e | [
"MIT"
] | null | null | null | 04 - Class vs Static Methods/helper.py | ThiagoPiovesan/OOP-Python | 02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e | [
"MIT"
] | null | null | null | #--------------------------------------------------------------------#
# Help program.
# Created by: Jim - https://www.youtube.com/watch?v=XCgWYx-lGl8
# Changed by: Thiago Piovesan
#--------------------------------------------------------------------#
# When to use class methods and when to use static methods ?
#-----... | 37.542857 | 94 | 0.503805 | 130 | 1,314 | 5.046154 | 0.630769 | 0.059451 | 0.027439 | 0.054878 | 0.140244 | 0.140244 | 0.140244 | 0.140244 | 0.140244 | 0.140244 | 0 | 0.003724 | 0.182648 | 1,314 | 35 | 95 | 37.542857 | 0.607076 | 0.760274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf225d26cd1440c60b616f74880dc9c6c8368650 | 12,146 | py | Python | tests/test_dataset_and_algorithm_match.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | 2 | 2022-01-29T03:46:31.000Z | 2022-02-14T14:06:35.000Z | tests/test_dataset_and_algorithm_match.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | null | null | null | tests/test_dataset_and_algorithm_match.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | null | null | null | import tempfile
import unittest
from pathlib import Path
from typing import Iterable
import numpy as np
from tests.fixtures.algorithms import SupervisedDeviatingFromMean
from timeeval import (
TimeEval,
Algorithm,
Datasets,
TrainingType,
InputDimensionality,
Status,
Metric,
ResourceCon... | 44.328467 | 116 | 0.619299 | 1,152 | 12,146 | 6.335938 | 0.145833 | 0.067818 | 0.064118 | 0.047952 | 0.681189 | 0.672969 | 0.657213 | 0.650774 | 0.63173 | 0.61529 | 0 | 0.01169 | 0.288655 | 12,146 | 273 | 117 | 44.490842 | 0.833102 | 0.009797 | 0 | 0.504032 | 0 | 0 | 0.071048 | 0.015225 | 0 | 0 | 0 | 0 | 0.169355 | 1 | 0.044355 | false | 0 | 0.040323 | 0 | 0.092742 | 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 |
cf329e5f66247bbca95e4bf363db6bddf61b921c | 1,046 | py | Python | DataAggregator/FIPS_Reference.py | Trigition/Village | bf22077f54e87be2dda1bf8984d0a62914e8e70f | [
"Apache-2.0"
] | 1 | 2017-05-17T15:28:52.000Z | 2017-05-17T15:28:52.000Z | DataAggregator/FIPS_Reference.py | Trigition/Village | bf22077f54e87be2dda1bf8984d0a62914e8e70f | [
"Apache-2.0"
] | null | null | null | DataAggregator/FIPS_Reference.py | Trigition/Village | bf22077f54e87be2dda1bf8984d0a62914e8e70f | [
"Apache-2.0"
] | null | null | null | FIPS_Reference = {
"AL":"01",
"AK":"02",
"AZ":"04",
"AR":"05",
"AS":"60",
"CA":"06",
"CO":"08",
"CT":"09",
"DE":"10",
"FL":"12",
"GA":"13",
"GU":"66",
"HI":"15",
"ID":"16",
"IL":"17",
"IN":"18... | 18.350877 | 18 | 0.219885 | 110 | 1,046 | 2.081818 | 0.990909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194245 | 0.468451 | 1,046 | 56 | 19 | 18.678571 | 0.217626 | 0 | 0 | 0 | 0 | 0 | 0.206501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf3597f5b36dd3406bf59bd803fe6c7acdc72251 | 8,920 | py | Python | yoapi/yos/queries.py | YoApp/yo-api | a162e51804ab91724cc7ad3e7608410329da6789 | [
"MIT"
] | 1 | 2021-12-17T03:25:34.000Z | 2021-12-17T03:25:34.000Z | yoapi/yos/queries.py | YoApp/yo-api | a162e51804ab91724cc7ad3e7608410329da6789 | [
"MIT"
] | null | null | null | yoapi/yos/queries.py | YoApp/yo-api | a162e51804ab91724cc7ad3e7608410329da6789 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Yo querying package."""
from itertools import takewhile
from mongoengine import Q, DoesNotExist
from ..core import cache
from ..async import async_job
from ..errors import YoTokenInvalidError
from ..helpers import get_usec_timestamp
from ..models import Yo, YoToken, User
from ..permissions... | 31.743772 | 89 | 0.67287 | 1,351 | 8,920 | 4.172465 | 0.135455 | 0.027674 | 0.015966 | 0.025546 | 0.576903 | 0.469044 | 0.351783 | 0.335817 | 0.319496 | 0.315771 | 0 | 0.005477 | 0.222197 | 8,920 | 280 | 90 | 31.857143 | 0.807005 | 0.014462 | 0 | 0.284916 | 0 | 0.005587 | 0.048136 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0 | null | null | 0 | 0.055866 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf36eb9a3d6a5a3acd94c393ea381b2d178ecae2 | 720 | py | Python | exam_system/exams/models.py | munirhaque/recruitment-system | 1405efdf9ec88d41c595e346231ae883836106ff | [
"bzip2-1.0.6"
] | null | null | null | exam_system/exams/models.py | munirhaque/recruitment-system | 1405efdf9ec88d41c595e346231ae883836106ff | [
"bzip2-1.0.6"
] | null | null | null | exam_system/exams/models.py | munirhaque/recruitment-system | 1405efdf9ec88d41c595e346231ae883836106ff | [
"bzip2-1.0.6"
] | null | null | null | from django.db import models
from questions.models import Question
from topics.models import Topic
class Exam(models.Model):
id = models.AutoField(primary_key = True)
name = models.TextField()
start_date = models.DateField()
end_date = models.DateField()
number_of_question = models.IntegerField()
time_duration =... | 36 | 65 | 0.781944 | 91 | 720 | 6.043956 | 0.362637 | 0.072727 | 0.109091 | 0.114545 | 0.152727 | 0.152727 | 0.152727 | 0.152727 | 0 | 0 | 0 | 0 | 0.111111 | 720 | 20 | 66 | 36 | 0.859375 | 0.138889 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cf37e22c1c71e2bafbb71d46e0f31afa46a234ff | 1,002 | py | Python | meleagris/__init__.py | kmayerb/Meleagris | b45ca01bd1bf46242272330236b74fc7b572b7b1 | [
"MIT"
] | null | null | null | meleagris/__init__.py | kmayerb/Meleagris | b45ca01bd1bf46242272330236b74fc7b572b7b1 | [
"MIT"
] | null | null | null | meleagris/__init__.py | kmayerb/Meleagris | b45ca01bd1bf46242272330236b74fc7b572b7b1 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from .version import __version__ # noqa
from meleagris import carve
from meleagris import roast
__all__ = [
'roast',
'carve'
]
# For a review of the basics of the __init__.py file
#__init__.py is what is invoked when the package is impor... | 23.857143 | 81 | 0.727545 | 151 | 1,002 | 4.596026 | 0.463576 | 0.086455 | 0.092219 | 0.04611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204591 | 1,002 | 41 | 82 | 24.439024 | 0.870765 | 0.748503 | 0 | 0 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cf386355b5e43d0303322e0ce9830069d230850a | 2,187 | py | Python | anadama2/taskcontainer.py | biobakery/anadama2_test | 46d06f7efc24ae067a1b6cc2841eda0c2a328daf | [
"MIT"
] | 4 | 2020-06-08T22:10:48.000Z | 2021-07-27T13:57:43.000Z | anadama2/taskcontainer.py | biobakery/anadama2_test | 46d06f7efc24ae067a1b6cc2841eda0c2a328daf | [
"MIT"
] | null | null | null | anadama2/taskcontainer.py | biobakery/anadama2_test | 46d06f7efc24ae067a1b6cc2841eda0c2a328daf | [
"MIT"
] | 1 | 2020-09-10T08:29:22.000Z | 2020-09-10T08:29:22.000Z | # -*- coding: utf-8 -*-
import re
import fnmatch
import itertools
import six
from .util import matcher
class TaskContainer(list):
"""Contains tasks. Tasks can be accessed by task_no or by name"""
def __init__(self, *args, **kwargs):
self.by_name = dict()
return super(TaskContainer, self).__... | 27.683544 | 74 | 0.569273 | 261 | 2,187 | 4.582375 | 0.329502 | 0.055184 | 0.120401 | 0.140468 | 0.11204 | 0.11204 | 0.11204 | 0.076923 | 0 | 0 | 0 | 0.002034 | 0.32556 | 2,187 | 78 | 75 | 28.038462 | 0.808814 | 0.037494 | 0 | 0.092593 | 0 | 0 | 0.049547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.092593 | 0.018519 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf4608779dce90116381a48c64482664f32fa28c | 477 | py | Python | marketplace/migrations/0003_auto_20171106_1454.py | 18F/cloud-marketplace-prototype | 4098d7e5391274e5317be2525d9deb5bc40eb2ad | [
"CC0-1.0"
] | null | null | null | marketplace/migrations/0003_auto_20171106_1454.py | 18F/cloud-marketplace-prototype | 4098d7e5391274e5317be2525d9deb5bc40eb2ad | [
"CC0-1.0"
] | 7 | 2017-11-06T20:35:53.000Z | 2017-11-08T00:25:23.000Z | marketplace/migrations/0003_auto_20171106_1454.py | 18F/cloud-marketplace-prototype | 4098d7e5391274e5317be2525d9deb5bc40eb2ad | [
"CC0-1.0"
] | 2 | 2020-04-03T19:39:32.000Z | 2021-02-14T11:06:53.000Z | # Generated by Django 2.0b1 on 2017-11-06 14:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('marketplace', '0002_auto_20171106_1452'),
]
operations = [
migrations.AlterField(
model_name='p... | 23.85 | 104 | 0.645702 | 53 | 477 | 5.716981 | 0.679245 | 0.079208 | 0.092409 | 0.145215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085399 | 0.238994 | 477 | 19 | 105 | 25.105263 | 0.749311 | 0.09434 | 0 | 0 | 1 | 0 | 0.144186 | 0.053488 | 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 |
cf51151a10753ed1d358548f36337ff54fb5fd8f | 559 | py | Python | aioface/dispatcher/utils.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | 1 | 2020-09-12T21:10:54.000Z | 2020-09-12T21:10:54.000Z | aioface/dispatcher/utils.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | null | null | null | aioface/dispatcher/utils.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | null | null | null | def check_full_text(fb_full_text, filter_full_text) -> bool:
if filter_full_text is None or fb_full_text == filter_full_text:
return True
return False
def check_contains(fb_contains, filter_contains) -> bool:
if filter_contains is None:
return True
intersection = list(fb_contains & fil... | 27.95 | 68 | 0.713775 | 79 | 559 | 4.746835 | 0.253165 | 0.128 | 0.112 | 0.085333 | 0.128 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0.002309 | 0.225403 | 559 | 19 | 69 | 29.421053 | 0.863741 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 |
cf570cd02e631b3b5db311ff2825b9555c99f6c9 | 5,469 | py | Python | testscripts/RDKB/component/HAL_Platform/TS_platform_stub_hal_SNMPOnboardReboot_InvalidInput.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/HAL_Platform/TS_platform_stub_hal_SNMPOnboardReboot_InvalidInput.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/HAL_Platform/TS_platform_stub_hal_SNMPOnboardReboot_InvalidInput.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 43.752 | 149 | 0.722436 | 704 | 5,469 | 5.474432 | 0.34517 | 0.023612 | 0.023352 | 0.010898 | 0.183705 | 0.183705 | 0.147898 | 0.141671 | 0.141671 | 0.126103 | 0 | 0.00714 | 0.154873 | 5,469 | 124 | 150 | 44.104839 | 0.826698 | 0.18998 | 0 | 0.25 | 0 | 0 | 0.417808 | 0.136301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf5f5b44e44e3ba3b7ed0e8ffb3e498e72891f7c | 8,316 | py | Python | ReanalysisRetreival_orig/UnimakPass/UP_Winds_Trans_vs_SST.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/UnimakPass/UP_Winds_Trans_vs_SST.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/UnimakPass/UP_Winds_Trans_vs_SST.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env
"""
UP_Winds_Trans_vs_SST.py
Using U,V (6hr from NARR) to calculate a transport index
Using SST (daily) from HR
NARR U/V winds (triangel filtered and subsampled to 6 hours)
----
NCEP Reanalysis data provided by the NOAA/OAR/ESRL PSD, Boulder,
Colorado, USA, from their Web site ... | 37.125 | 118 | 0.592232 | 1,120 | 8,316 | 4.259821 | 0.299107 | 0.014672 | 0.018864 | 0.01572 | 0.377489 | 0.347726 | 0.341857 | 0.341857 | 0.341857 | 0.334731 | 0 | 0.037754 | 0.23557 | 8,316 | 224 | 119 | 37.125 | 0.712758 | 0.100048 | 0 | 0.162791 | 0 | 0 | 0.105314 | 0.026572 | 0 | 0 | 0 | 0.004464 | 0 | 0 | null | null | 0 | 0.054264 | null | null | 0.03876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf6149728d0a4d14dac89fc7b43a49eb3065e261 | 576 | py | Python | src_nlp/tensorflow/toward_control/mains/pretrain.py | ashishpatel26/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2019-02-12T09:22:00.000Z | 2019-02-12T09:22:00.000Z | src_nlp/tensorflow/toward_control/mains/pretrain.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | null | null | null | src_nlp/tensorflow/toward_control/mains/pretrain.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2020-10-15T21:34:17.000Z | 2020-10-15T21:34:17.000Z | import tensorflow as tf
import pprint
import os, sys
sys.path.append(os.path.dirname(os.getcwd()))
from model import VAE
from data.imdb import VAEDataLoader
from vocab.imdb import IMDBVocab
from trainers import VAETrainer
from log import create_logging
def main():
create_logging()
sess = tf.Session()
voc... | 22.153846 | 66 | 0.713542 | 78 | 576 | 5.128205 | 0.487179 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175347 | 576 | 26 | 67 | 22.153846 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.017331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cf62df099326bf29d570a34b64f7dc86c916f3eb | 3,767 | py | Python | mpopt/population/base.py | CavalloneChen/mpopt | 9d39f613cc840c25416ec060ac503fb0599bde1b | [
"Xnet",
"X11",
"RSA-MD"
] | 3 | 2020-11-05T05:55:55.000Z | 2021-04-19T08:24:06.000Z | mpopt/population/base.py | CavalloneChen/mpopt | 9d39f613cc840c25416ec060ac503fb0599bde1b | [
"Xnet",
"X11",
"RSA-MD"
] | null | null | null | mpopt/population/base.py | CavalloneChen/mpopt | 9d39f613cc840c25416ec060ac503fb0599bde1b | [
"Xnet",
"X11",
"RSA-MD"
] | 2 | 2020-11-23T02:11:48.000Z | 2020-12-01T01:56:03.000Z | import numpy as np
from ..operator import operator as opt
class BasePop(object):
""" Base class for population """
def __init__(self, pop, fit, lb=-float('inf'), ub=float('inf')):
# init pop
self.pop = pop
self.fit = fit
self.gen_pop = None
self.gen_fit = None
... | 26.342657 | 81 | 0.576586 | 435 | 3,767 | 4.91954 | 0.209195 | 0.190654 | 0.176636 | 0.061682 | 0.634112 | 0.620093 | 0.580841 | 0.534112 | 0.534112 | 0.519626 | 0 | 0.00117 | 0.319352 | 3,767 | 143 | 82 | 26.342657 | 0.833463 | 0.242633 | 0 | 0.565789 | 0 | 0 | 0.006657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.026316 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf661f6c62d7243ea412ab586f9de155fce581e4 | 568 | py | Python | service/surf/vendor/surfconext/migrations/0004_users_update.py | surfedushare/search-portal | 708a0d05eee13c696ca9abd7e84ab620d3900fbe | [
"MIT"
] | 2 | 2021-08-19T09:40:59.000Z | 2021-12-14T11:08:20.000Z | service/surf/vendor/surfconext/migrations/0004_users_update.py | surfedushare/search-portal | 708a0d05eee13c696ca9abd7e84ab620d3900fbe | [
"MIT"
] | 159 | 2020-05-14T14:17:34.000Z | 2022-03-23T10:28:13.000Z | service/surf/vendor/surfconext/migrations/0004_users_update.py | surfedushare/search-portal | 708a0d05eee13c696ca9abd7e84ab620d3900fbe | [
"MIT"
] | 1 | 2021-11-11T13:37:22.000Z | 2021-11-11T13:37:22.000Z | # Generated by Django 3.2.8 on 2021-12-28 14:50
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('surfconext', '0003_boolean_field'),
]
operations... | 27.047619 | 133 | 0.672535 | 61 | 568 | 6.114754 | 0.672131 | 0.053619 | 0.085791 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042986 | 0.221831 | 568 | 20 | 134 | 28.4 | 0.800905 | 0.079225 | 0 | 0 | 1 | 0 | 0.143954 | 0.055662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 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 |
cf6b4412d0c395f437f036a7b2a75ce1aea65192 | 1,583 | py | Python | core/tests/test_models.py | UlmBlois/website | 01e652dd0c9c5b7026efe2a923ea3c4668d5a5b4 | [
"MIT"
] | null | null | null | core/tests/test_models.py | UlmBlois/website | 01e652dd0c9c5b7026efe2a923ea3c4668d5a5b4 | [
"MIT"
] | 2 | 2019-06-03T06:17:29.000Z | 2019-06-17T05:26:02.000Z | core/tests/test_models.py | UlmBlois/website | 01e652dd0c9c5b7026efe2a923ea3c4668d5a5b4 | [
"MIT"
] | null | null | null | from django.test import TestCase
# from django.db.utils import IntegrityError
from core.models import User
class CaseInsensitiveUserNameManagerTest(TestCase):
@classmethod
def setUpTestData(cls):
cls.user1 = User.objects.create_user(username="user1",
pass... | 39.575 | 67 | 0.53127 | 143 | 1,583 | 5.734266 | 0.258741 | 0.117073 | 0.131707 | 0.128049 | 0.669512 | 0.669512 | 0.642683 | 0.642683 | 0.642683 | 0.578049 | 0 | 0.016145 | 0.373973 | 1,583 | 39 | 68 | 40.589744 | 0.811302 | 0.026532 | 0 | 0.483871 | 0 | 0 | 0.083821 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.129032 | false | 0.16129 | 0.064516 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cf6cd344f584cd701a4076d93e4150b1102f79aa | 1,448 | py | Python | crop_video.py | ckjellson/tt_tracker | 99800b586e517ea8f048cf2add85cb4b3b091f73 | [
"MIT"
] | 15 | 2020-12-22T08:50:52.000Z | 2022-03-24T09:48:51.000Z | crop_video.py | ckjellson/tt_tracker | 99800b586e517ea8f048cf2add85cb4b3b091f73 | [
"MIT"
] | 2 | 2021-07-04T02:23:00.000Z | 2021-07-05T01:05:47.000Z | crop_video.py | ckjellson/tt_tracker | 99800b586e517ea8f048cf2add85cb4b3b091f73 | [
"MIT"
] | 3 | 2021-01-17T14:39:51.000Z | 2022-01-01T23:52:18.000Z | import cv2
import numpy as np
'''
Loads two videos and generates an interface to crop these to equal length
and being synced in time.
Specify:
path1: path to first video
path2: path to second video
vidname: name of the instance to be created
'''
path1 = "videos_original\out_a_full.mp4"
path2 = "videos_or... | 25.857143 | 108 | 0.662983 | 225 | 1,448 | 4.151111 | 0.466667 | 0.059957 | 0.03212 | 0.027837 | 0.182013 | 0.182013 | 0.139186 | 0.087794 | 0.087794 | 0 | 0 | 0.073567 | 0.19268 | 1,448 | 55 | 109 | 26.327273 | 0.725406 | 0.059392 | 0 | 0.162162 | 1 | 0 | 0.087688 | 0.053144 | 0 | 0 | 0.003543 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 0 | 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 |
cf706ce509e2571be6ee751f269f1f260863436a | 859 | py | Python | Ecommerce/migrations/0010_auto_20200203_0112.py | aryanshridhar/Ecommerce-Website | c582659e9b530555b9715ede7bb774c39f101c7e | [
"MIT"
] | 1 | 2020-06-01T16:41:33.000Z | 2020-06-01T16:41:33.000Z | Ecommerce/migrations/0010_auto_20200203_0112.py | aryanshridhar/Ecommerce-Website | c582659e9b530555b9715ede7bb774c39f101c7e | [
"MIT"
] | 4 | 2020-03-17T03:37:23.000Z | 2021-09-22T18:36:18.000Z | Ecommerce/migrations/0010_auto_20200203_0112.py | aryanshridhar/Ecommerce-Website | c582659e9b530555b9715ede7bb774c39f101c7e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-02-02 19:42
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('Ecommerce', '0009_review_date'),
]
operations = [
mig... | 29.62069 | 114 | 0.613504 | 95 | 859 | 5.473684 | 0.589474 | 0.046154 | 0.053846 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058176 | 0.259604 | 859 | 28 | 115 | 30.678571 | 0.759434 | 0.052387 | 0 | 0.090909 | 1 | 0 | 0.078818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf71abfca7c5e19ff69fd1894a754a844173e256 | 30,747 | py | Python | marmot/plottingmodules/reserves.py | equinor/Marmot | 99ab6336f920f460df335d4a1b3e4f36d847ae46 | [
"BSD-3-Clause"
] | 2 | 2021-08-05T19:52:02.000Z | 2021-12-10T23:47:52.000Z | marmot/plottingmodules/reserves.py | equinor/Marmot | 99ab6336f920f460df335d4a1b3e4f36d847ae46 | [
"BSD-3-Clause"
] | 21 | 2021-09-01T21:56:42.000Z | 2022-03-31T18:01:48.000Z | marmot/plottingmodules/reserves.py | equinor/Marmot | 99ab6336f920f460df335d4a1b3e4f36d847ae46 | [
"BSD-3-Clause"
] | 3 | 2021-12-14T18:12:33.000Z | 2022-03-25T18:27:26.000Z | # -*- coding: utf-8 -*-
"""Generator reserve plots.
This module creates plots of reserve provision and shortage at the generation
and region level.
@author: Daniel Levie
"""
import logging
import numpy as np
import pandas as pd
import datetime as dt
import matplotlib.pyplot as plt
import matplotlib as mpl
from matp... | 47.230415 | 148 | 0.606921 | 3,505 | 30,747 | 5.138374 | 0.12525 | 0.036424 | 0.041866 | 0.013326 | 0.711938 | 0.701555 | 0.658412 | 0.624986 | 0.603998 | 0.572959 | 0 | 0.005525 | 0.317104 | 30,747 | 651 | 149 | 47.230415 | 0.852217 | 0.287117 | 0 | 0.532308 | 0 | 0 | 0.075273 | 0.015953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024615 | false | 0 | 0.036923 | 0 | 0.098462 | 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 |
cf7b65fc64ee28b65b720c458202445033d75918 | 142,649 | py | Python | dcase_framework/datasets.py | thisisjl/DCASE2017-modified | 4755e712e3b53277120c142cc6c14f279cc396d4 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | dcase_framework/datasets.py | thisisjl/DCASE2017-modified | 4755e712e3b53277120c142cc6c14f279cc396d4 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | dcase_framework/datasets.py | thisisjl/DCASE2017-modified | 4755e712e3b53277120c142cc6c14f279cc396d4 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Datasets
==================
Classes for dataset handling
Dataset - Base class
^^^^^^^^^^^^^^^^^^^^
This is the base class, and all the specialized datasets are inherited from it. One should never use base class itself.
Usage examples:
.. code-block:: python
:lin... | 38.890131 | 192 | 0.55223 | 14,930 | 142,649 | 5.037642 | 0.053382 | 0.023055 | 0.030181 | 0.035367 | 0.729179 | 0.691565 | 0.667633 | 0.644605 | 0.624767 | 0.611113 | 0 | 0.016129 | 0.3424 | 142,649 | 3,667 | 193 | 38.900736 | 0.785653 | 0.136916 | 0 | 0.498825 | 0 | 0.026798 | 0.18594 | 0.036683 | 0.00047 | 0 | 0 | 0 | 0.002351 | 1 | 0.046074 | false | 0.00094 | 0.013164 | 0.003291 | 0.102492 | 0.002351 | 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 |
cf896e2bac34dddb9638290d95518117931f9f94 | 522 | py | Python | api/v1/exceptions.py | SVArago/alexia | 96ae6dfabb893388bd4610ea971574a993b8029d | [
"BSD-3-Clause"
] | 3 | 2015-12-22T00:50:43.000Z | 2017-01-07T18:09:36.000Z | api/v1/exceptions.py | SVArago/alexia | 96ae6dfabb893388bd4610ea971574a993b8029d | [
"BSD-3-Clause"
] | 24 | 2015-11-02T15:38:40.000Z | 2017-01-07T21:18:42.000Z | api/v1/exceptions.py | SVArago/alexia | 96ae6dfabb893388bd4610ea971574a993b8029d | [
"BSD-3-Clause"
] | null | null | null | from jsonrpc.exceptions import Error
class ForbiddenError(Error):
""" The token was not recognized. """
code = 403
status = 200
message = 'Forbidden.'
class NotFoundError(Error):
""" The token was not recognized. """
code = 404
status = 200
message = 'Not Found.'
class InvalidParam... | 20.076923 | 71 | 0.653257 | 56 | 522 | 6.089286 | 0.571429 | 0.079179 | 0.140762 | 0.093842 | 0.193548 | 0.193548 | 0.193548 | 0 | 0 | 0 | 0 | 0.058376 | 0.245211 | 522 | 25 | 72 | 20.88 | 0.807107 | 0.298851 | 0 | 0.230769 | 0 | 0 | 0.103858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d83d65f8e83449bb166797c179bfdf461170d4c2 | 546 | py | Python | tests/urls.py | klowe0100/wagtail-transfer | 90245b1cff1f542a3698273e745d858857de8722 | [
"BSD-3-Clause"
] | null | null | null | tests/urls.py | klowe0100/wagtail-transfer | 90245b1cff1f542a3698273e745d858857de8722 | [
"BSD-3-Clause"
] | null | null | null | tests/urls.py | klowe0100/wagtail-transfer | 90245b1cff1f542a3698273e745d858857de8722 | [
"BSD-3-Clause"
] | 1 | 2022-02-23T11:45:04.000Z | 2022-02-23T11:45:04.000Z | from __future__ import absolute_import, unicode_literals
from django.urls import include, re_path
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core import urls as wagtail_urls
from wagtail_transfer import urls as wagtailtransfer_urls
urlpatterns = [
re_path(r'^admin/', include(wagtailadmin_u... | 30.333333 | 73 | 0.776557 | 77 | 546 | 5.285714 | 0.467532 | 0.058968 | 0.088452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148352 | 546 | 17 | 74 | 32.117647 | 0.875269 | 0.173993 | 0 | 0 | 0 | 0 | 0.055804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d8400315a945f18534e51ba7e9f07635b5c88b42 | 1,381 | py | Python | examples/rl/train/play.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 156 | 2020-10-02T14:33:22.000Z | 2022-03-17T22:30:30.000Z | examples/rl/train/play.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 10 | 2020-12-14T01:24:03.000Z | 2022-02-16T10:01:16.000Z | examples/rl/train/play.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 43 | 2020-10-02T00:01:17.000Z | 2022-03-06T17:02:38.000Z | import sys
import os
base_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../')
sys.path.append(base_dir)
sys.path.append(os.path.join(base_dir, 'rl'))
import numpy as np
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import gym
gym.log... | 23.810345 | 82 | 0.766112 | 229 | 1,381 | 4.401747 | 0.39738 | 0.029762 | 0.029762 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.11803 | 1,381 | 57 | 83 | 24.22807 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0.041334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d84582c0c8bdca35e7b408f03d12bcdbc039c3f0 | 252 | py | Python | setup.py | KieberLab/indCAPS | 6b0a75d99f39a3273ed31fc6cf45ba1b002ca313 | [
"BSD-3-Clause"
] | 1 | 2018-04-13T18:02:27.000Z | 2018-04-13T18:02:27.000Z | setup.py | KieberLab/indCAPS | 6b0a75d99f39a3273ed31fc6cf45ba1b002ca313 | [
"BSD-3-Clause"
] | null | null | null | setup.py | KieberLab/indCAPS | 6b0a75d99f39a3273ed31fc6cf45ba1b002ca313 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2
from setuptools import setup
setup(name='indCAPS',
version='0.1',
description='OpenShift App',
author='Charles Hodgens',
author_email='hodgens@email.unc.edu',
# install_requires=['Flask==0.10.1'],
) | 22.909091 | 43 | 0.650794 | 32 | 252 | 5.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0.18254 | 252 | 11 | 44 | 22.909091 | 0.752427 | 0.246032 | 0 | 0 | 0 | 0 | 0.312169 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d845c8b1f227bb85466c78b3c158732c8901248a | 9,474 | py | Python | sparse_decomposition/decomposition/decomposition.py | bdpedigo/sparse_matrix_analysis | dbdff69b8ec56f60ba96b723a616f442755eacda | [
"MIT"
] | 2 | 2021-03-18T14:51:52.000Z | 2021-03-18T16:05:55.000Z | sparse_decomposition/decomposition/decomposition.py | bdpedigo/sparse_matrix_analysis | dbdff69b8ec56f60ba96b723a616f442755eacda | [
"MIT"
] | 1 | 2021-03-18T05:08:25.000Z | 2021-03-18T16:17:05.000Z | sparse_decomposition/decomposition/decomposition.py | bdpedigo/sparse_matrix_analysis | dbdff69b8ec56f60ba96b723a616f442755eacda | [
"MIT"
] | null | null | null | # Some of the implementation inspired by:
# REF: https://github.com/fchen365/epca
import time
from abc import abstractmethod
import numpy as np
from factor_analyzer import Rotator
from sklearn.base import BaseEstimator
from sklearn.preprocessing import StandardScaler
from sklearn.utils import check_array
from graspo... | 26.389972 | 88 | 0.541799 | 1,085 | 9,474 | 4.490323 | 0.214747 | 0.031199 | 0.020115 | 0.019704 | 0.359811 | 0.31876 | 0.267652 | 0.22968 | 0.209975 | 0.182677 | 0 | 0.005342 | 0.348005 | 9,474 | 358 | 89 | 26.463687 | 0.78339 | 0.343994 | 0 | 0.101563 | 0 | 0 | 0.058524 | 0 | 0 | 0 | 0 | 0.011173 | 0 | 1 | 0.125 | false | 0.015625 | 0.078125 | 0.007813 | 0.3125 | 0.070313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d8460399c532214a703651f1b44dd2db303623f8 | 829 | py | Python | guess_a_number.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | guess_a_number.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | guess_a_number.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | import maths
import random
print "Let's guess a number."
bottom = input("Pick a range; bottom number: ")
top = input("Pick a top number? ")
guess_range = range(bottom, top+1)
ans = random.randint(bottom, top)
games = 0
average_guesses = []
again = 'y'
while again == 'y':
ans = random.randint(bottom, top)
games += 1... | 23.027778 | 88 | 0.656212 | 125 | 829 | 4.288 | 0.376 | 0.104478 | 0.072761 | 0.08209 | 0.11194 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.199035 | 829 | 35 | 89 | 23.685714 | 0.798193 | 0 | 0 | 0.0625 | 0 | 0 | 0.249698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03125 | 0.0625 | null | null | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d84e1367a97b3daad73881d637cea224686cd672 | 331 | py | Python | test_lambda.py | unbiased-coder/python-aws-lambda-guide | 36c3112a0a49eca1ddcaef967ca80fac573f50ac | [
"Unlicense"
] | null | null | null | test_lambda.py | unbiased-coder/python-aws-lambda-guide | 36c3112a0a49eca1ddcaef967ca80fac573f50ac | [
"Unlicense"
] | null | null | null | test_lambda.py | unbiased-coder/python-aws-lambda-guide | 36c3112a0a49eca1ddcaef967ca80fac573f50ac | [
"Unlicense"
] | null | null | null | import os
import json
def lambda_handler(event, context):
first_name = event['first_name']
last_name = event['last_name']
country = os.environ['COUNTRY']
return {
'statusCode': 200,
'body': json.dumps('Hello I am %s %s and I am from %s'%(first_name, last_name, country... | 25.461538 | 97 | 0.595166 | 44 | 331 | 4.318182 | 0.545455 | 0.142105 | 0.136842 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.277946 | 331 | 12 | 98 | 27.583333 | 0.782427 | 0 | 0 | 0 | 0 | 0 | 0.22884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
d851a89f9002b0dda4ccf4ff65e9d8b1cb4dfa03 | 592 | py | Python | tensorflow-example/tensor_placeholder.py | dinkar1708/machine-learning-examples | 40d7d1fa77de5fd8414697f27da889c3e08a3eff | [
"Apache-2.0"
] | null | null | null | tensorflow-example/tensor_placeholder.py | dinkar1708/machine-learning-examples | 40d7d1fa77de5fd8414697f27da889c3e08a3eff | [
"Apache-2.0"
] | null | null | null | tensorflow-example/tensor_placeholder.py | dinkar1708/machine-learning-examples | 40d7d1fa77de5fd8414697f27da889c3e08a3eff | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
# placeholder - Inserts a placeholder for a tensor that will be always fed.
# Example1-
a = tf.placeholder(tf.float32)
b = tf.placeholder(tf.float32)
adder_node = a + b
sess = tf.Session()
print(sess.run(adder_node, {a: [1, 2], b: [2, 3]}))
sess.close()
# Example2
x = tf.p... | 25.73913 | 75 | 0.677365 | 100 | 592 | 3.96 | 0.47 | 0.131313 | 0.113636 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05726 | 0.173986 | 592 | 22 | 76 | 26.909091 | 0.752556 | 0.285473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.153846 | 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 |
d8542a8bab379d24ecb097c9415b72c7698225bb | 1,812 | py | Python | validator/checks/md.py | KeepSafe/content-validator | 30e59100f3251aee20b3165d42fceba15a3f5ede | [
"Apache-2.0"
] | 1 | 2018-04-25T19:42:47.000Z | 2018-04-25T19:42:47.000Z | validator/checks/md.py | KeepSafe/content-validator | 30e59100f3251aee20b3165d42fceba15a3f5ede | [
"Apache-2.0"
] | 12 | 2015-07-21T11:01:53.000Z | 2021-03-31T18:53:35.000Z | validator/checks/md.py | KeepSafe/content-validator | 30e59100f3251aee20b3165d42fceba15a3f5ede | [
"Apache-2.0"
] | 2 | 2016-11-05T04:25:35.000Z | 2018-04-25T19:42:49.000Z | import re
from typing import Type
from sdiff import diff, renderer, MdParser
from markdown import markdown
from ..errors import MdDiff, ContentData
LINK_RE = r'\]\(([^\)]+)\)'
def save_file(content, filename):
with open(filename, 'w') as fp:
fp.write(content)
class MarkdownComparator(object):
def... | 35.529412 | 89 | 0.573951 | 208 | 1,812 | 4.759615 | 0.346154 | 0.045455 | 0.044444 | 0.045455 | 0.094949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003331 | 0.337196 | 1,812 | 50 | 90 | 36.24 | 0.820983 | 0.017108 | 0 | 0.051282 | 0 | 0 | 0.011804 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8569c4866fa822712890e85b3227b7cef16ca10 | 3,305 | py | Python | src/conversations/migrations/0001_initial.py | earth-emoji/august | 065d4b449a138ead1557293bffcb20cd2db90a41 | [
"BSD-2-Clause"
] | null | null | null | src/conversations/migrations/0001_initial.py | earth-emoji/august | 065d4b449a138ead1557293bffcb20cd2db90a41 | [
"BSD-2-Clause"
] | 10 | 2021-03-19T10:47:13.000Z | 2022-03-12T00:28:30.000Z | src/conversations/migrations/0001_initial.py | earth-emoji/august | 065d4b449a138ead1557293bffcb20cd2db90a41 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-21 03:10
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0002_auto_20200501_0524'),
('classifications', '0001_initial'),
]
... | 56.982759 | 170 | 0.625416 | 345 | 3,305 | 5.852174 | 0.292754 | 0.053492 | 0.048539 | 0.076275 | 0.565627 | 0.495295 | 0.442298 | 0.379891 | 0.379891 | 0.379891 | 0 | 0.017074 | 0.220272 | 3,305 | 57 | 171 | 57.982456 | 0.766395 | 0.013918 | 0 | 0.34 | 1 | 0 | 0.174087 | 0.059871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.14 | 0 | 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 |
d85a4d460505324fde409b6130001dc85cb93b73 | 2,099 | py | Python | output/dfg_mix/mix_rotate_chains.py | tmcclintock/fit_mass_functions | 3edc05004d734c48e8138de098ade8b77a0cfd61 | [
"BSD-2-Clause"
] | null | null | null | output/dfg_mix/mix_rotate_chains.py | tmcclintock/fit_mass_functions | 3edc05004d734c48e8138de098ade8b77a0cfd61 | [
"BSD-2-Clause"
] | null | null | null | output/dfg_mix/mix_rotate_chains.py | tmcclintock/fit_mass_functions | 3edc05004d734c48e8138de098ade8b77a0cfd61 | [
"BSD-2-Clause"
] | null | null | null | """
Instead of rotating the chains in the entire parameter space,
just rotate all the intercepts together and then all the slopes together.
"""
import numpy as np
import corner, sys
import matplotlib.pyplot as plt
old_labels = [r"$d0$",r"$d1$",r"$f0$",r"$f1$",r"$g0$",r"$g1$"]
N_z = 10
N_boxes = 39
N_p = 6
mean_models... | 32.292308 | 77 | 0.604097 | 353 | 2,099 | 3.484419 | 0.339943 | 0.05122 | 0.026016 | 0.045528 | 0.263415 | 0.25935 | 0.160163 | 0.126016 | 0.126016 | 0.126016 | 0 | 0.025577 | 0.236303 | 2,099 | 64 | 78 | 32.796875 | 0.741734 | 0.168652 | 0 | 0.136364 | 0 | 0 | 0.179648 | 0.122487 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | 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 |
d85e74f3d68877675e7e2b4e7d3a786bcaedf85c | 720 | py | Python | Room/api/migrations/0002_auto_20210129_1554.py | zarif007/Club-Room | 57e15aecbc8e88e6ca46616c001e4c25ae22068c | [
"MIT"
] | 1 | 2021-03-15T22:28:28.000Z | 2021-03-15T22:28:28.000Z | Room/api/migrations/0002_auto_20210129_1554.py | zarif007/Club-Room | 57e15aecbc8e88e6ca46616c001e4c25ae22068c | [
"MIT"
] | null | null | null | Room/api/migrations/0002_auto_20210129_1554.py | zarif007/Club-Room | 57e15aecbc8e88e6ca46616c001e4c25ae22068c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-29 09:54
import api.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | 26.666667 | 114 | 0.580556 | 77 | 720 | 5.298701 | 0.649351 | 0.044118 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041257 | 0.293056 | 720 | 26 | 115 | 27.692308 | 0.760314 | 0.0625 | 0 | 0.1 | 1 | 0 | 0.059435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
d86022ebba92fcc28f93038a020bb13a52cd248a | 12,280 | py | Python | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Scalyr Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 37.901235 | 117 | 0.674267 | 1,726 | 12,280 | 4.6292 | 0.238702 | 0.014018 | 0.011389 | 0.017021 | 0.150563 | 0.108886 | 0.075594 | 0.058573 | 0.048811 | 0.027284 | 0 | 0.003945 | 0.256922 | 12,280 | 324 | 118 | 37.901235 | 0.871671 | 0.100407 | 0 | 0.279412 | 0 | 0 | 0.037329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080882 | 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 |
d8676de497ac9bb9955ea09500c27f424ac41cbf | 6,647 | py | Python | scripts/download_grid_images.py | edwardoughton/taddle | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 9 | 2020-08-18T04:25:00.000Z | 2022-03-18T16:42:33.000Z | scripts/download_grid_images.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | null | null | null | scripts/download_grid_images.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 4 | 2020-01-27T01:48:30.000Z | 2021-12-01T16:48:17.000Z | """
Generate download locations within a country and download them.
Written by Jatin Mathur.
5/2020
"""
import os
import configparser
import math
import pandas as pd
import numpy as np
import random
import geopandas as gpd
from shapely.geometry import Point
import requests
import matplotlib.pyplot as plt
from PIL impo... | 31.803828 | 99 | 0.641643 | 890 | 6,647 | 4.608989 | 0.301124 | 0.049732 | 0.024378 | 0.017065 | 0.228425 | 0.213554 | 0.155534 | 0.155534 | 0.10629 | 0.08825 | 0 | 0.006274 | 0.256657 | 6,647 | 208 | 100 | 31.956731 | 0.823922 | 0.18294 | 0 | 0.175573 | 1 | 0 | 0.123002 | 0.028211 | 0 | 0 | 0 | 0 | 0.022901 | 1 | 0.030534 | false | 0.007634 | 0.137405 | 0 | 0.183206 | 0.061069 | 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 |
d86a1d3f8be7cc0277c9fbefaafac0fb5dcf11a6 | 1,351 | py | Python | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-06-11 02:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0218_auto_20190611_1026'),
]
... | 39.735294 | 208 | 0.655811 | 132 | 1,351 | 6.484848 | 0.492424 | 0.037383 | 0.049065 | 0.077103 | 0.200935 | 0.200935 | 0.200935 | 0.200935 | 0.200935 | 0.200935 | 0 | 0.031549 | 0.225759 | 1,351 | 33 | 209 | 40.939394 | 0.786807 | 0.050333 | 0 | 0.076923 | 1 | 0 | 0.283594 | 0.164844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.230769 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.