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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e06474c43b1ed7e57e8105ff4d740033d05881dd | 152 | py | Python | echopy/processing/correct_soundspeed.py | open-ocean-sounding/echopy | b666d14480d04d74696e04daf6cab4c98cad091f | [
"MIT"
] | 3 | 2021-03-10T23:27:41.000Z | 2022-03-31T06:04:52.000Z | echopy/processing/correct_soundspeed.py | open-ocean-sounding/echopy | b666d14480d04d74696e04daf6cab4c98cad091f | [
"MIT"
] | 3 | 2021-01-13T12:21:22.000Z | 2021-02-12T09:44:54.000Z | echopy/processing/correct_soundspeed.py | open-ocean-sounding/echopy | b666d14480d04d74696e04daf6cab4c98cad091f | [
"MIT"
] | 3 | 2020-12-11T14:00:47.000Z | 2021-06-30T23:32:35.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Correct Sv data for new sound speed
"""
def correct_soundspeed(Sv, r, T, S):
print('TODO') | 15.2 | 36 | 0.592105 | 23 | 152 | 3.869565 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.210526 | 152 | 10 | 37 | 15.2 | 0.725 | 0.519737 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0eb48197e376eac545852d0039b17aaa3aff5783 | 12,013 | py | Python | schedule/south_migrations/0005_auto__del_calendarupcomingpluginmodel__add_field_calendarpluginmodel_n.py | damianmoore/django-scheduler | cd5d332abd5ae662e94718a0a2fcca656ea04a3e | [
"BSD-3-Clause"
] | null | null | null | schedule/south_migrations/0005_auto__del_calendarupcomingpluginmodel__add_field_calendarpluginmodel_n.py | damianmoore/django-scheduler | cd5d332abd5ae662e94718a0a2fcca656ea04a3e | [
"BSD-3-Clause"
] | null | null | null | schedule/south_migrations/0005_auto__del_calendarupcomingpluginmodel__add_field_calendarpluginmodel_n.py | damianmoore/django-scheduler | cd5d332abd5ae662e94718a0a2fcca656ea04a3e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'CalendarUpcomingPluginModel'
db.delete_table(u'cmsplugi... | 72.806061 | 187 | 0.573462 | 1,208 | 12,013 | 5.583609 | 0.133278 | 0.109118 | 0.188881 | 0.26983 | 0.731801 | 0.722165 | 0.685841 | 0.6 | 0.538769 | 0.437213 | 0 | 0.006493 | 0.192292 | 12,013 | 165 | 188 | 72.806061 | 0.688653 | 0.018397 | 0 | 0.24 | 0 | 0 | 0.579367 | 0.34572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0.006667 | 0.026667 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
0ec946e921c3adabc29cbb76a0911fb2b5c602c9 | 1,248 | py | Python | var/spack/repos/builtin/packages/r-fnn/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-fnn/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/r-fnn/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RFnn(RPackage):
"""Fast Nearest Neighbor Search Algorithms and Applications.
... | 46.222222 | 97 | 0.78766 | 118 | 1,248 | 8.322034 | 0.627119 | 0.032587 | 0.027495 | 0.063136 | 0.069246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299548 | 0.114583 | 1,248 | 26 | 98 | 48 | 0.58914 | 0.33734 | 0 | 0 | 0 | 0 | 0.620347 | 0.555831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0eca2a026784aec0ffdcd3c18fb3b3452c129ff2 | 8,395 | py | Python | webdom.py | JackKirbyCook82/webscraping | e59d0e641395ea68991915758b3ec51b32e26b18 | [
"MIT"
] | null | null | null | webdom.py | JackKirbyCook82/webscraping | e59d0e641395ea68991915758b3ec51b32e26b18 | [
"MIT"
] | null | null | null | webdom.py | JackKirbyCook82/webscraping | e59d0e641395ea68991915758b3ec51b32e26b18 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 30 2019
@name: WebDOM Objects
@author: Jack Kirby Cook
"""
import logging
import pandas as pd
import lxml.html
from functools import update_wrapper
from lxml.html import HtmlElement as StaticElement
from selenium.webdriver.support.ui import Select as SelectElement
from... | 33.850806 | 123 | 0.671948 | 1,093 | 8,395 | 4.978042 | 0.177493 | 0.060651 | 0.043742 | 0.040434 | 0.308767 | 0.275317 | 0.237456 | 0.212277 | 0.173314 | 0.158978 | 0 | 0.002339 | 0.184991 | 8,395 | 247 | 124 | 33.987854 | 0.792897 | 0.011674 | 0 | 0.267045 | 0 | 0 | 0.044785 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 1 | 0.380682 | false | 0.028409 | 0.0625 | 0.261364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
0ece8f3fbce1b10f766090392088a1519691beab | 669 | py | Python | bmlfs/deep_learning/activations.py | nguyentritai2906/bmlfs | cf5128065289caae9f38a29bbb762bcf2fe7fd3a | [
"MIT"
] | null | null | null | bmlfs/deep_learning/activations.py | nguyentritai2906/bmlfs | cf5128065289caae9f38a29bbb762bcf2fe7fd3a | [
"MIT"
] | null | null | null | bmlfs/deep_learning/activations.py | nguyentritai2906/bmlfs | cf5128065289caae9f38a29bbb762bcf2fe7fd3a | [
"MIT"
] | null | null | null | import numpy as np
class Sigmoid():
def __call__(self, x):
return 1 / (1 + np.exp(-x))
def gradient(self, x):
return self.__call__(x) * (1 - self.__call__(x))
class Softmax():
def __call__(self, x):
e_x = np.exp(x - np.max(x, axis=-1, keepdims=True))
return e_x / np.sum(... | 23.892857 | 59 | 0.520179 | 103 | 669 | 3.116505 | 0.252427 | 0.062305 | 0.074766 | 0.074766 | 0.34891 | 0.099688 | 0.099688 | 0 | 0 | 0 | 0 | 0.026144 | 0.313901 | 669 | 27 | 60 | 24.777778 | 0.673203 | 0.245142 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
0ed331327fc3ea106d16b9d0b6b3f7d22e30edf7 | 14 | py | Python | yamlconf/tests/util/value.py | halfak/yamlconf | 6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8 | [
"MIT"
] | 1 | 2019-01-20T23:03:08.000Z | 2019-01-20T23:03:08.000Z | yamlconf/tests/util/value.py | halfak/yamlconf | 6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8 | [
"MIT"
] | 3 | 2015-12-16T21:05:23.000Z | 2020-05-27T19:18:39.000Z | yamlconf/tests/util/value.py | halfak/yamlconf | 6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8 | [
"MIT"
] | 2 | 2015-09-15T04:38:09.000Z | 2020-05-27T17:58:26.000Z | value = "foo"
| 7 | 13 | 0.571429 | 2 | 14 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ef8471a01bb6fd23c578ef0bb17bd059efffd77 | 184 | py | Python | eveIntel/__init__.py | Marclass/EveIntel | 18d9bfef1b671ae189b413a807905e0895bc0224 | [
"Apache-2.0"
] | null | null | null | eveIntel/__init__.py | Marclass/EveIntel | 18d9bfef1b671ae189b413a807905e0895bc0224 | [
"Apache-2.0"
] | null | null | null | eveIntel/__init__.py | Marclass/EveIntel | 18d9bfef1b671ae189b413a807905e0895bc0224 | [
"Apache-2.0"
] | null | null | null | __all__ = ["dataprocessinginterface", "evelinkinterface",
"intelinterface", "limboRun", "sdeinterface", "sqlinterface",
"zkillinterface"]
__author__ = 'marclass'
| 36.8 | 72 | 0.673913 | 10 | 184 | 11.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184783 | 184 | 4 | 73 | 46 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.581522 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0efdd76501e590ba396f8c53b60ed202bc40d03f | 186 | py | Python | app/config.py | Web-Dev-Collaborative/Quiz.md | ef2cfc93b332092d286ea6fe5748c280ecbf8b80 | [
"Unlicense",
"MIT"
] | 3 | 2021-01-25T18:25:22.000Z | 2021-03-09T07:19:25.000Z | app/config.py | Web-Dev-Collaborative/Quiz.md | ef2cfc93b332092d286ea6fe5748c280ecbf8b80 | [
"Unlicense",
"MIT"
] | 1 | 2021-01-25T18:40:20.000Z | 2021-01-25T18:40:22.000Z | app/config.py | jpremo/open_bar | ee08e4b51af11d21fa339e15daea1248e8409e4d | [
"MIT",
"PostgreSQL",
"Unlicense"
] | 1 | 2021-07-15T05:35:05.000Z | 2021-07-15T05:35:05.000Z | import os
class Config:
SECRET_KEY=os.environ.get('SECRET_KEY')
SQLALCHEMY_TRACK_MODIFICATIONS=False
SQLALCHEMY_DATABASE_URI=os.environ.get('DATABASE_URL')
SQLALCHEMY_ECHO=True
| 23.25 | 56 | 0.817204 | 26 | 186 | 5.538462 | 0.653846 | 0.125 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091398 | 186 | 7 | 57 | 26.571429 | 0.852071 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1601973390c0cafdc5d99bfe38444335746c2a3c | 2,709 | py | Python | test/unit/test_action_delete_snapshots.py | ssavrim/curator | 3ddfbb95ea7a164bb3f8c773b0392481f067da7c | [
"Apache-2.0"
] | 2,449 | 2015-03-11T05:04:13.000Z | 2022-03-30T11:24:31.000Z | test/unit/test_action_delete_snapshots.py | ssavrim/curator | 3ddfbb95ea7a164bb3f8c773b0392481f067da7c | [
"Apache-2.0"
] | 960 | 2015-03-10T20:58:11.000Z | 2022-03-24T15:26:40.000Z | test/unit/test_action_delete_snapshots.py | lenn4rd/curator | 1bfa366325e0651397999999367b65df2c3c5c86 | [
"Apache-2.0"
] | 702 | 2015-03-11T09:35:39.000Z | 2022-03-28T06:22:59.000Z | from unittest import TestCase
from mock import Mock, patch
import elasticsearch
import curator
# Get test variables and constants from a single source
from . import testvars as testvars
class TestActionDeleteSnapshots(TestCase):
def test_init_raise(self):
self.assertRaises(TypeError, curator.DeleteSnapshot... | 49.254545 | 74 | 0.729051 | 326 | 2,709 | 5.849693 | 0.202454 | 0.09806 | 0.139486 | 0.069219 | 0.761405 | 0.750918 | 0.735711 | 0.687467 | 0.687467 | 0.687467 | 0 | 0.000908 | 0.187154 | 2,709 | 54 | 75 | 50.166667 | 0.865123 | 0.019564 | 0 | 0.596154 | 0 | 0 | 0.002638 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.115385 | false | 0 | 0.096154 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
160e049c13f82ea03c6d030e4c20817fe9b68569 | 614 | py | Python | windows_packages_gpu/torch/nn/intrinsic/modules/__init__.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | windows_packages_gpu/torch/nn/intrinsic/modules/__init__.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | windows_packages_gpu/torch/nn/intrinsic/modules/__init__.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z |
from .fused import ConvBn1d
from .fused import ConvBn2d
from .fused import ConvBn3d
from .fused import ConvBnReLU1d
from .fused import ConvBnReLU2d
from .fused import ConvBnReLU3d
from .fused import ConvReLU1d
from .fused import ConvReLU2d
from .fused import ConvReLU3d
from .fused import LinearReLU
from .fu... | 20.466667 | 32 | 0.68241 | 61 | 614 | 6.803279 | 0.262295 | 0.260241 | 0.433735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046809 | 0.234528 | 614 | 29 | 33 | 21.172414 | 0.83617 | 0 | 0 | 0 | 0 | 0 | 0.19863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
161e7ed301fd0a0fa0d408248d609838ff024da0 | 93 | py | Python | visualizations/__init__.py | GitianOberhuber/Selforganizing_Systems_Ex3_TU_Vienna_2022 | b0e7a2dba176db0bd7e71061380d522c2dc0bcbf | [
"MIT"
] | 1 | 2022-01-30T12:47:26.000Z | 2022-01-30T12:47:26.000Z | visualizations/__init__.py | GitianOberhuber/Selforganizing_Systems_Ex3_TU_Vienna_2022 | b0e7a2dba176db0bd7e71061380d522c2dc0bcbf | [
"MIT"
] | null | null | null | visualizations/__init__.py | GitianOberhuber/Selforganizing_Systems_Ex3_TU_Vienna_2022 | b0e7a2dba176db0bd7e71061380d522c2dc0bcbf | [
"MIT"
] | 1 | 2022-01-30T19:16:24.000Z | 2022-01-30T19:16:24.000Z | __all__ = ['iVisualization','complane','dmatrix','hithistogram', 'sdh', 'qerror', 'upmatrix'] | 93 | 93 | 0.698925 | 8 | 93 | 7.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 93 | 1 | 93 | 93 | 0.693182 | 0 | 0 | 0 | 0 | 0 | 0.617021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
161f4885c8b17e6bfee1579fd79bc1a9fe8c11d7 | 637 | py | Python | internal/thingiverse.py | makecodes/genshin-card-backend | 611093846e56a2251336845ccf849b01b7d3f447 | [
"Unlicense"
] | null | null | null | internal/thingiverse.py | makecodes/genshin-card-backend | 611093846e56a2251336845ccf849b01b7d3f447 | [
"Unlicense"
] | null | null | null | internal/thingiverse.py | makecodes/genshin-card-backend | 611093846e56a2251336845ccf849b01b7d3f447 | [
"Unlicense"
] | null | null | null | import requests
class ThingiverseApi:
def __init__(self, api_key):
self.api_key = api_key
self.base_url = "https://api.thingiverse.com"
def _get(self, url):
headers = {"Authorization": f"Bearer {self.api_key}"}
response = requests.get(url, headers=headers)
if response.... | 30.333333 | 68 | 0.645212 | 86 | 637 | 4.523256 | 0.383721 | 0.061697 | 0.077121 | 0.087404 | 0.251928 | 0.251928 | 0.251928 | 0.251928 | 0.251928 | 0.251928 | 0 | 0.006048 | 0.22135 | 637 | 20 | 69 | 31.85 | 0.778226 | 0 | 0 | 0 | 0 | 0 | 0.254317 | 0.147567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1647d5fed757d966affff9b5373d0ffacfaf81a2 | 545 | py | Python | core/forms.py | dilshodbekikromov/weatherapp | 105ca8c7a142a4afdff9bff7c758896f0335610c | [
"PostgreSQL"
] | 1 | 2021-12-17T05:17:22.000Z | 2021-12-17T05:17:22.000Z | core/forms.py | GiovannaK/Weather-app-django | 3138f03b34baa5866ed63f52dc4b759be6eb7aa4 | [
"MIT"
] | null | null | null | core/forms.py | GiovannaK/Weather-app-django | 3138f03b34baa5866ed63f52dc4b759be6eb7aa4 | [
"MIT"
] | null | null | null | from django.forms import ModelForm, TextInput
from .models import City
from . import views
from django.contrib import messages
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class CityForm(ModelForm):
class Meta:
model = City
fields = ['name']
... | 27.25 | 74 | 0.684404 | 61 | 545 | 6.114754 | 0.491803 | 0.107239 | 0.136729 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.211009 | 545 | 20 | 75 | 27.25 | 0.862791 | 0 | 0 | 0.133333 | 0 | 0 | 0.108059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.4 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1663f2c5fe51b922770dc0b93fbd42bec228822a | 220 | py | Python | Task1/chapter13.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | Task1/chapter13.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | Task1/chapter13.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | name = "shakeel";
studentId = 1735;
if name == "shakeel":
print("name is cleared !!");
if studentId == 1735:
print("identified");
else:
print("wrong person");
else:
print("wrong person"); | 20 | 32 | 0.568182 | 24 | 220 | 5.208333 | 0.5 | 0.176 | 0.224 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0.259091 | 220 | 11 | 33 | 20 | 0.717791 | 0 | 0 | 0.4 | 0 | 0 | 0.298643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
1683c879839bee7b5dae2393f75f433db20347a4 | 60 | py | Python | web/settings/base/wsgi.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | 1 | 2018-05-23T15:58:40.000Z | 2018-05-23T15:58:40.000Z | web/settings/base/wsgi.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | 1 | 2018-05-24T11:30:35.000Z | 2018-05-24T11:30:35.000Z | web/settings/base/wsgi.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | null | null | null | ROOT_URLCONF = 'urls'
WSGI_APPLICATION = 'wsgi.application'
| 20 | 37 | 0.783333 | 7 | 60 | 6.428571 | 0.714286 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 60 | 2 | 38 | 30 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
168c3e902727ffd757649aa33ac91c11ef78602f | 8,630 | py | Python | ana/material.py | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | 1 | 2020-05-13T06:55:49.000Z | 2020-05-13T06:55:49.000Z | ana/material.py | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | ana/material.py | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | 41.690821 | 105 | 0.400463 | 858 | 8,630 | 3.983683 | 0.386946 | 0.114687 | 0.125512 | 0.018432 | 0.227618 | 0.153306 | 0.12639 | 0.039789 | 0.014043 | 0.014043 | 0 | 0.280462 | 0.457937 | 8,630 | 206 | 106 | 41.893204 | 0.450192 | 0.084357 | 0 | 0 | 0 | 0 | 0.043426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
169353d5b32810cec940e95290be9b23fbadb477 | 85 | py | Python | examples/example14.py | Time2003/lr5 | 5513d79dec6581d128d6d64c7f08e2a34463c843 | [
"MIT"
] | null | null | null | examples/example14.py | Time2003/lr5 | 5513d79dec6581d128d6d64c7f08e2a34463c843 | [
"MIT"
] | null | null | null | examples/example14.py | Time2003/lr5 | 5513d79dec6581d128d6d64c7f08e2a34463c843 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
for i in range(5):
print("Hello") | 17 | 23 | 0.564706 | 14 | 85 | 3.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.188235 | 85 | 5 | 24 | 17 | 0.652174 | 0.505882 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
16ae8b21ba5d7f34bfebc5f45aaddff495a08ad8 | 723 | py | Python | process_request/test_helpers.py | ulsdevteam/request_broker | ee076f43acc7dcd89395dc56c3ab9be239a04fc6 | [
"MIT"
] | null | null | null | process_request/test_helpers.py | ulsdevteam/request_broker | ee076f43acc7dcd89395dc56c3ab9be239a04fc6 | [
"MIT"
] | 97 | 2020-03-05T14:44:49.000Z | 2022-03-10T15:28:19.000Z | process_request/test_helpers.py | ulsdevteam/request_broker | ee076f43acc7dcd89395dc56c3ab9be239a04fc6 | [
"MIT"
] | 2 | 2021-12-16T20:29:21.000Z | 2021-12-16T20:44:17.000Z | import json
import random
import string
from os.path import join
from request_broker import settings
FIXTURES_DIR = join(settings.BASE_DIR, "fixtures")
def random_string(length=20):
"""Returns a random string of specified length."""
return "".join(random.choice(string.ascii_letters) for m in range(length))
... | 22.59375 | 78 | 0.691563 | 102 | 723 | 4.803922 | 0.509804 | 0.044898 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008636 | 0.19917 | 723 | 31 | 79 | 23.322581 | 0.837651 | 0.266943 | 0 | 0 | 0 | 0 | 0.018256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.384615 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
16e3a351d2d86b51ebcb0ac0b84b29e5850dd7f5 | 922 | py | Python | rxbp/multicast/testing/testmulticastobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 24 | 2018-11-22T21:04:49.000Z | 2021-11-08T11:18:09.000Z | rxbp/multicast/testing/testmulticastobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2019-02-06T15:58:46.000Z | 2019-02-12T20:31:50.000Z | rxbp/multicast/testing/testmulticastobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:41:37.000Z | 2021-01-26T12:41:37.000Z | from dataclasses import dataclass
from typing import Optional
import rx
from rx.disposable import Disposable
from rxbp.multicast.multicastobservable import MultiCastObservable
from rxbp.multicast.multicastobserver import MultiCastObserver
from rxbp.multicast.multicastobserverinfo import MultiCastObserverInfo
class ... | 26.342857 | 84 | 0.745119 | 101 | 922 | 6.633663 | 0.356436 | 0.107463 | 0.076119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186551 | 922 | 34 | 85 | 27.117647 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.318182 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
bc3f01a018b1fc870377dec57df8d329dcfc9d54 | 25,685 | py | Python | lib/model/rie.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 23 | 2022-03-22T05:09:34.000Z | 2022-03-31T08:24:43.000Z | lib/model/rie.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 4 | 2022-03-22T05:11:48.000Z | 2022-03-30T03:27:10.000Z | lib/model/rie.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 2 | 2022-03-23T09:47:50.000Z | 2022-03-25T01:12:18.000Z |
import torch
import torch.nn as nn
from lib.model.embedding import Embedding
class TemporalBlock(nn.Module):
"""
Reference 3D pose estimation model with temporal convolutions.
This implementation can be used for all use-cases.
"""
def __init__(self, num_joints_in, in_features, num_joints_out,
... | 45.948122 | 129 | 0.573681 | 3,468 | 25,685 | 4.054498 | 0.064879 | 0.039044 | 0.03051 | 0.032003 | 0.784724 | 0.74319 | 0.703435 | 0.663466 | 0.636726 | 0.614466 | 0 | 0.048128 | 0.289741 | 25,685 | 559 | 130 | 45.948122 | 0.722633 | 0.032782 | 0 | 0.437018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015424 | 1 | 0.056555 | false | 0 | 0.007712 | 0 | 0.097686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
bc3f356812e98e4a3af4552b5b07b1ea2230bf90 | 3,239 | py | Python | tests/base/sdk/python/tdldk/v1_0/gatask.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 18 | 2015-06-24T18:35:20.000Z | 2022-01-19T19:04:00.000Z | tests/base/sdk/python/tdldk/v1_0/gatask.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 63 | 2015-11-03T18:57:12.000Z | 2020-09-30T02:54:49.000Z | tests/base/sdk/python/tdldk/v1_0/gatask.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 38 | 2015-10-23T19:04:44.000Z | 2021-06-04T08:13:33.000Z | # -*- coding: utf-8 -*-
#
# __code_header example
# put your license header here
# it will be added to all the generated files
#
from .fetchers import GAMetadatasFetcher
from .fetchers import GAUsersFetcher
from bambou import NURESTObject
class GATask(NURESTObject):
""" Represents a Task in the TDL
... | 21.309211 | 156 | 0.543686 | 325 | 3,239 | 5.227692 | 0.363077 | 0.035315 | 0.045909 | 0.042378 | 0.287816 | 0.185403 | 0.185403 | 0.132431 | 0.051795 | 0 | 0 | 0.00049 | 0.369559 | 3,239 | 152 | 157 | 21.309211 | 0.831538 | 0.287743 | 0 | 0.076923 | 1 | 0 | 0.045234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.512821 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc4e57c29b711aeee1ee44965a8d08e1f4f1e87a | 91 | py | Python | .history/py/UserInput_20201230124426.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/py/UserInput_20201230124426.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/py/UserInput_20201230124426.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | person = input("Enter your name: ")
print("Hello ", person)
x = input("Enter a number: ")
| 18.2 | 35 | 0.637363 | 13 | 91 | 4.461538 | 0.769231 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 91 | 4 | 36 | 22.75 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc53a28f99118aa8af9a280bb6ebb334feaea287 | 291 | py | Python | django_analyses/serializers/input/definitions/float_input_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | django_analyses/serializers/input/definitions/float_input_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | django_analyses/serializers/input/definitions/float_input_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | from django_analyses.models.input.definitions.float_input_definition import \
FloatInputDefinition
from rest_framework import serializers
class FloatInputDefinitionSerializer(serializers.ModelSerializer):
class Meta:
model = FloatInputDefinition
fields = "__all__"
| 29.1 | 77 | 0.797251 | 26 | 291 | 8.615385 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 291 | 9 | 78 | 32.333333 | 0.910569 | 0 | 0 | 0 | 0 | 0 | 0.024055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc562b1c7cacd99c3f41cbc9dfc8c569000b5806 | 670 | py | Python | pytorch-ppo-old/replay_memory.py | umd-agrc/QuadRL | 428eb16a374a863db9e18b7831a1d682cb26a3b6 | [
"BSD-3-Clause"
] | 47 | 2017-08-13T09:08:05.000Z | 2022-01-17T14:45:27.000Z | pytorch-ppo-old/replay_memory.py | umd-agrc/QuadRL | 428eb16a374a863db9e18b7831a1d682cb26a3b6 | [
"BSD-3-Clause"
] | 3 | 2017-08-14T23:14:01.000Z | 2020-02-26T14:04:49.000Z | pytorch-ppo-old/replay_memory.py | umd-agrc/QuadRL | 428eb16a374a863db9e18b7831a1d682cb26a3b6 | [
"BSD-3-Clause"
] | 14 | 2017-08-21T09:08:55.000Z | 2021-04-08T13:33:34.000Z | import random
from collections import namedtuple
# Taken from
# https://github.com/pytorch/tutorials/blob/master/Reinforcement%20(Q-)Learning%20with%20PyTorch.ipynb
Transition = namedtuple('Transition', ('state', 'action', 'mask', 'next_state',
'reward'))
class Memory(object):
... | 29.130435 | 102 | 0.640299 | 76 | 670 | 5.5 | 0.526316 | 0.095694 | 0.107656 | 0.136364 | 0.263158 | 0.263158 | 0.191388 | 0 | 0 | 0 | 0 | 0.011538 | 0.223881 | 670 | 22 | 103 | 30.454545 | 0.792308 | 0.197015 | 0 | 0 | 0 | 0 | 0.077213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
bc591e7fe7044557b92d0fc45589052d7b58d510 | 386 | py | Python | MDRSREID/Networks/RESIDUAL_NETWORK/convolution_layers.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 43 | 2020-09-20T09:40:04.000Z | 2022-03-29T11:25:22.000Z | MDRSREID/Networks/RESIDUAL_NETWORK/convolution_layers.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 19 | 2020-10-05T05:35:38.000Z | 2021-12-10T03:17:31.000Z | MDRSREID/Networks/RESIDUAL_NETWORK/convolution_layers.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 18 | 2020-10-01T14:41:53.000Z | 2021-09-02T06:57:57.000Z | import torch.nn as nn
def conv3x3(in_planes, out_planes, stride=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
padding=1, bias=False)
def conv1x1(in_planes, out_planes, stride=1):
"""1x1 convolution"""
return nn.Conv2... | 32.166667 | 85 | 0.694301 | 57 | 386 | 4.526316 | 0.421053 | 0.124031 | 0.170543 | 0.263566 | 0.503876 | 0.503876 | 0.317829 | 0.317829 | 0.317829 | 0 | 0 | 0.047619 | 0.183938 | 386 | 12 | 85 | 32.166667 | 0.771429 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc67ee637fd89143ca7c38ac9255fbc93190b712 | 387 | py | Python | agents/agent.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | agents/agent.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | agents/agent.py | nashikun/SpeedNet | 186c223cdf760d677c0d9b9d58eeec82251de50e | [
"MIT"
] | null | null | null | class Agent:
def __init__(self, name=None):
if name:
self.name = name
else:
self.name = f"{self.__class__.__name__} Player {id(self)}"
def set_name(self, name):
self.name = name
def choose_move(self, grid):
# Choose where to move based on the grid
... | 22.764706 | 70 | 0.565891 | 51 | 387 | 3.941176 | 0.45098 | 0.238806 | 0.179104 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338501 | 387 | 16 | 71 | 24.1875 | 0.785156 | 0.098191 | 0 | 0.166667 | 0 | 0 | 0.123919 | 0.072046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.583333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bc7369d112de01c2d173a2160a2ca65caca7ce64 | 6,706 | py | Python | borg_hydro/swimpy/tests/test_config.py | sluedtke/borg_hydro | ef856784191e21e98e7fe8dd906c0dd9f82fd4ff | [
"MIT"
] | null | null | null | borg_hydro/swimpy/tests/test_config.py | sluedtke/borg_hydro | ef856784191e21e98e7fe8dd906c0dd9f82fd4ff | [
"MIT"
] | null | null | null | borg_hydro/swimpy/tests/test_config.py | sluedtke/borg_hydro | ef856784191e21e98e7fe8dd906c0dd9f82fd4ff | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Tests for the swim_setup class.
'''
#
######################################################################
# Filename: test_config.py
# Author: Stefan Luedtke
######################################################################
from borg_hydro.swimpy import config
import pytest... | 41.395062 | 73 | 0.653445 | 860 | 6,706 | 4.855814 | 0.12093 | 0.146073 | 0.203065 | 0.163793 | 0.713602 | 0.682232 | 0.625 | 0.487548 | 0.248324 | 0.172653 | 0 | 0.060817 | 0.163883 | 6,706 | 161 | 74 | 41.652174 | 0.683966 | 0.090218 | 0 | 0.196262 | 0 | 0 | 0.224288 | 0.009208 | 0 | 0 | 0 | 0 | 0.588785 | 1 | 0.084112 | false | 0 | 0.018692 | 0 | 0.102804 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc79914a01ad7426340a27a2db612d75e9815629 | 195 | py | Python | python_experiments/playground/abstract_words.py | mexuaz/AccTrussDecomposition | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | [
"MIT"
] | 9 | 2020-03-30T13:00:15.000Z | 2022-03-17T13:40:17.000Z | python_experiments/playground/abstract_words.py | mexuaz/AccTrussDecomposition | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | [
"MIT"
] | null | null | null | python_experiments/playground/abstract_words.py | mexuaz/AccTrussDecomposition | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | [
"MIT"
] | 2 | 2020-08-17T10:05:51.000Z | 2020-08-30T22:57:55.000Z | with open('abstract.txt') as ifs:
paragraph = ' '.join([l.strip() for l in ifs.readlines()]).replace('$\ge$', '>=').replace('$>$', '>')
print(paragraph)
print(len(paragraph.split()))
| 39 | 105 | 0.579487 | 24 | 195 | 4.708333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14359 | 195 | 4 | 106 | 48.75 | 0.676647 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bc7ef3c701f8503d6cc31d82ab3b880e93078832 | 12,033 | py | Python | pages/Overview.py | ubco-mds-2020-labs/WineVison | 93778bf055c3c59913718f802a652c47ec6a849a | [
"MIT"
] | 1 | 2021-02-26T01:46:22.000Z | 2021-02-26T01:46:22.000Z | pages/Overview.py | ubco-mds-2020-labs/dashboard-project-data551_group8 | 93778bf055c3c59913718f802a652c47ec6a849a | [
"MIT"
] | 1 | 2021-03-10T18:51:21.000Z | 2021-03-10T19:15:36.000Z | pages/Overview.py | ubco-mds-2020-labs/dashboard-project-data551_group8 | 93778bf055c3c59913718f802a652c47ec6a849a | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import altair as alt
import pathlib
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from utils import Header, make_dash_table
# Allow large data set
alt.data_transformers.disable_max_rows()
# Get data
wine = pd.rea... | 76.158228 | 1,446 | 0.715782 | 1,727 | 12,033 | 4.9641 | 0.380428 | 0.009332 | 0.008748 | 0.008398 | 0.186516 | 0.164936 | 0.155605 | 0.147206 | 0.115479 | 0.101948 | 0 | 0.013889 | 0.228123 | 12,033 | 157 | 1,447 | 76.643312 | 0.90913 | 0.019945 | 0 | 0.067308 | 0 | 0.211538 | 0.658067 | 0.005177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.009615 | 0.105769 | 0 | 0.144231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc81fb37236445a80e6b5c1819cbef0b2058b96b | 3,500 | py | Python | torchkbnufft/math.py | zaccharieramzi/torchkbnufft | 37e5808ab73ddb52cbd4655f3d7fd6273b3dd89a | [
"MIT"
] | 1 | 2021-04-16T15:41:28.000Z | 2021-04-16T15:41:28.000Z | torchkbnufft/math.py | edongdongchen/torchkbnufft | f9ac098c8f122026e8e8866828cb5957118a5679 | [
"MIT"
] | null | null | null | torchkbnufft/math.py | edongdongchen/torchkbnufft | f9ac098c8f122026e8e8866828cb5957118a5679 | [
"MIT"
] | null | null | null | import torch
def complex_mult(a, b, dim=0):
"""Complex multiplication, real/imag are in dimension dim.
Args:
a (tensor): A tensor where dimension dim is the complex dimension.
b (tensor): A tensor where dimension dim is the complex dimension.
dim (int): An integer indicating the compl... | 26.515152 | 76 | 0.620857 | 526 | 3,500 | 4.060837 | 0.121673 | 0.134831 | 0.133427 | 0.075843 | 0.729869 | 0.715356 | 0.715356 | 0.697566 | 0.673689 | 0.673689 | 0 | 0.015576 | 0.266286 | 3,500 | 131 | 77 | 26.717557 | 0.816199 | 0.523429 | 0 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.12766 | false | 0 | 0.021277 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
bc823a06e728b2ca37499d41591c2780ed1a32e5 | 327 | py | Python | kinto_auth0_openid_connect/__init__.py | ClubExpressions/kinto-auth0-openid-connect | 4a68bd2c7c8688ceb61533305f9c4970b7f37768 | [
"Apache-2.0"
] | null | null | null | kinto_auth0_openid_connect/__init__.py | ClubExpressions/kinto-auth0-openid-connect | 4a68bd2c7c8688ceb61533305f9c4970b7f37768 | [
"Apache-2.0"
] | null | null | null | kinto_auth0_openid_connect/__init__.py | ClubExpressions/kinto-auth0-openid-connect | 4a68bd2c7c8688ceb61533305f9c4970b7f37768 | [
"Apache-2.0"
] | null | null | null | """kinto_auth0_openid_connect - Auth0 Authentication support for Kinto with OpenId Connect flow"""
__author__ = 'Damien Lecan <dev@dlecan.com>'
__all__ = []
def includeme(config):
print("Initiliazing kinto_auth0_openid_connect plugin ...")
# Activate end-points.
config.scan('kinto_auth0_openid_connect.vi... | 27.25 | 98 | 0.752294 | 40 | 327 | 5.725 | 0.675 | 0.227074 | 0.209607 | 0.30131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.137615 | 327 | 11 | 99 | 29.727273 | 0.797872 | 0.348624 | 0 | 0 | 0 | 0 | 0.538835 | 0.281553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
bc8a9a276fe0782ab868447c4cdb5fbb5f1769ce | 201 | py | Python | edx_adapt/settings.py | raccoongang/edx-adapt | 9534d5c040aa78d0cfa23b0445de742cf5f2b083 | [
"Apache-2.0"
] | 3 | 2018-02-02T20:33:21.000Z | 2020-11-16T20:23:42.000Z | edx_adapt/settings.py | raccoongang/edx-adapt | 9534d5c040aa78d0cfa23b0445de742cf5f2b083 | [
"Apache-2.0"
] | 15 | 2016-10-31T12:37:26.000Z | 2018-08-11T03:27:08.000Z | edx_adapt/settings.py | raccoongang/edx-adapt | 9534d5c040aa78d0cfa23b0445de742cf5f2b083 | [
"Apache-2.0"
] | 7 | 2016-10-28T12:04:52.000Z | 2021-07-28T19:33:35.000Z | # FIXME(idegtiarov) Log dir is set to the project dir to avoid changing dirs permissions in travis tests runs. Should be
# changed to the appropriate log dir on production.
LOGS_DIR = 'log/edx-adapt/'
| 50.25 | 120 | 0.776119 | 34 | 201 | 4.558824 | 0.764706 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 201 | 3 | 121 | 67 | 0.922619 | 0.835821 | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcbbc239ce53ea21422c96c676d683d2d844a669 | 126 | py | Python | Python 基础教程/练习/定时器.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | Python 基础教程/练习/定时器.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | Python 基础教程/练习/定时器.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | #引入库 threading
import threading
#定义函数
def printaaa():
print(111)
timer = threading.Timer(1,printaaa) #首次启动
timer.start() | 15.75 | 42 | 0.730159 | 17 | 126 | 5.411765 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.142857 | 126 | 8 | 43 | 15.75 | 0.814815 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bcc4b6f77b91e5e3e56480d531f5ced68fbcc23a | 96 | py | Python | profiles_api/apps.py | Piyush9960/django-test | c02ce65824ec8d7e79119f8a3392edd290dd1b13 | [
"MIT"
] | null | null | null | profiles_api/apps.py | Piyush9960/django-test | c02ce65824ec8d7e79119f8a3392edd290dd1b13 | [
"MIT"
] | null | null | null | profiles_api/apps.py | Piyush9960/django-test | c02ce65824ec8d7e79119f8a3392edd290dd1b13 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProfilsApiConfig(AppConfig):
name = 'profils_api'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bce9685f866f7dc2dfa868d821abc5c7b596fc0a | 11,134 | py | Python | pservice/test/UnitTests.py | sambacha/private-data-objects | 635049918b362ba81ad74469cbea6b2c53380d9e | [
"Apache-2.0"
] | 84 | 2018-05-04T15:07:53.000Z | 2022-03-23T09:38:17.000Z | pservice/test/UnitTests.py | sambacha/private-data-objects | 635049918b362ba81ad74469cbea6b2c53380d9e | [
"Apache-2.0"
] | 218 | 2018-05-07T20:10:25.000Z | 2022-03-23T17:27:44.000Z | pservice/test/UnitTests.py | sambacha/private-data-objects | 635049918b362ba81ad74469cbea6b2c53380d9e | [
"Apache-2.0"
] | 33 | 2018-03-02T20:32:18.000Z | 2021-09-17T07:07:57.000Z | # Copyright 2018 Intel Corporation
#
# 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 wri... | 57.097436 | 196 | 0.790911 | 1,036 | 11,134 | 8.397683 | 0.216216 | 0.037241 | 0.018621 | 0.025402 | 0.693678 | 0.676207 | 0.612069 | 0.608621 | 0.603448 | 0.603448 | 0 | 0.1905 | 0.115053 | 11,134 | 194 | 197 | 57.391753 | 0.692479 | 0.191575 | 0 | 0.37963 | 0 | 0.157407 | 0.646147 | 0.555147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.185185 | 0.027778 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcfc17487cb8db846171f5ecddc2891a0a1f103c | 373 | py | Python | services/connectors/ocpp-connector/source/connector/tests/test_main.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | 4 | 2021-09-10T09:46:18.000Z | 2021-12-05T17:55:14.000Z | services/connectors/ocpp-connector/source/connector/tests/test_main.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | services/connectors/ocpp-connector/source/connector/tests/test_main.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | import unittest
import pytest
from ..main import Connector
class TestReceiveRawMsg(unittest.TestCase):
def test_dummy(self):
"""
Replace this. It is just here to prevent that the build
fails if you don't add a single test.
"""
class TestParseRawMsg(unittest.TestCase):
pass
... | 16.954545 | 63 | 0.686327 | 46 | 373 | 5.543478 | 0.76087 | 0.188235 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243968 | 373 | 21 | 64 | 17.761905 | 0.904255 | 0.24933 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
4c0532ede6ceca68ab2aa8a24d9d2e8121764071 | 370 | py | Python | tests/test_sgeirFails.py | uclchem/SpectralRadex | 5dde77cac49e0fb2ef4af0e116600cff9e862b17 | [
"MIT"
] | 9 | 2021-01-21T15:05:51.000Z | 2022-01-16T13:37:26.000Z | tests/test_sgeirFails.py | jonholdship/SpectralRadex | 2c38e136b963aac43ec2b17101da56a83c9884e4 | [
"MIT"
] | 4 | 2021-02-01T16:45:47.000Z | 2022-02-10T12:41:04.000Z | tests/test_sgeirFails.py | jonholdship/SpectralRadex | 2c38e136b963aac43ec2b17101da56a83c9884e4 | [
"MIT"
] | 3 | 2021-01-21T14:23:16.000Z | 2022-02-17T15:13:49.000Z | from spectralradex import radex
params={'molfile': 'SO-pH2.dat', 'tkin': 240.23288848051274, 'tbg': 2.73, 'cdmol': 2.7117385194476626e+19, 'h2': 1477400.1189838066, 'h': 0.0, 'e-': 0.0, 'p-h2': 369350.02974595164, 'o-h2': 1108050.0892378548, 'h+': 0.0, 'linewidth': 125.49076959987242, 'fmin': 0.0, 'fmax': 30000000.0}
... | 61.666667 | 286 | 0.681081 | 56 | 370 | 4.5 | 0.714286 | 0.031746 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.379822 | 0.089189 | 370 | 6 | 287 | 61.666667 | 0.367953 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c0665584adee06fbc5ea759f00aa8b264136f6e | 1,402 | py | Python | namespace/weapons/Master.py | tsingson/flatbuffers-sample | 97454dda67587e85d07ede0c5737387e052ddbc9 | [
"MIT"
] | null | null | null | namespace/weapons/Master.py | tsingson/flatbuffers-sample | 97454dda67587e85d07ede0c5737387e052ddbc9 | [
"MIT"
] | null | null | null | namespace/weapons/Master.py | tsingson/flatbuffers-sample | 97454dda67587e85d07ede0c5737387e052ddbc9 | [
"MIT"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: weapons
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class Master(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsMaster(cls, buf, offset):
n = flatbuffers.encode.Get(f... | 23.762712 | 114 | 0.650499 | 158 | 1,402 | 5.664557 | 0.398734 | 0.06257 | 0.026816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006679 | 0.252496 | 1,402 | 58 | 115 | 24.172414 | 0.847328 | 0.082739 | 0 | 0.157895 | 1 | 0 | 0.015637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.026316 | 0.078947 | 0.052632 | 0.578947 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4c1d3c78972ebaf8f3855f9851a542dfab9a6b0e | 190 | wsgi | Python | haas.wsgi | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | haas.wsgi | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | haas.wsgi | gsilvis/haas | 70d4b5dec081b803c87f0295e7ae8dc3b2a76ce9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import haas.api
from haas import config, model
config.load('/etc/haas.cfg')
config.configure_logging()
model.init_db()
from moc.rest import wsgi_handler as application
| 23.75 | 48 | 0.789474 | 31 | 190 | 4.741935 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 190 | 7 | 49 | 27.142857 | 0.854651 | 0.105263 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c255b0c5e7b0f69b77f46aed31e1409676b27a7 | 434 | py | Python | demo/core.py | sizhky/nbdev-demo | fc8ac1579c48e715ca9abac9fd93a8a3ceeec9a2 | [
"Apache-2.0"
] | null | null | null | demo/core.py | sizhky/nbdev-demo | fc8ac1579c48e715ca9abac9fd93a8a3ceeec9a2 | [
"Apache-2.0"
] | null | null | null | demo/core.py | sizhky/nbdev-demo | fc8ac1579c48e715ca9abac9fd93a8a3ceeec9a2 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_example.ipynb (unless otherwise specified).
__all__ = ['Circle']
# Cell
import math
class Circle:
def __init__(self, r:float): self.r = r
@property
def perimeter(self):
"""return the perimeter of the circle"""
return 2 * math.pi * self.r
... | 27.125 | 94 | 0.624424 | 61 | 434 | 4.295082 | 0.52459 | 0.076336 | 0.091603 | 0.129771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.248848 | 434 | 16 | 95 | 27.125 | 0.791411 | 0.37788 | 0 | 0.2 | 1 | 0 | 0.023166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4c2c5b7721a712c2f8d47e24eb2c5cbf012d08da | 141 | py | Python | tests/__init__.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 235 | 2018-01-22T01:22:10.000Z | 2021-02-02T04:57:26.000Z | tests/__init__.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 847 | 2018-01-22T05:49:16.000Z | 2021-02-10T17:05:19.000Z | tests/__init__.py | jorgemarpa/lightkurve | 86320a67eabb3a93f60e9faff0447e4b235bccf2 | [
"MIT"
] | 121 | 2018-01-22T01:11:19.000Z | 2021-01-26T21:07:07.000Z | import os
# Where is the test data located?
TESTROOT = os.path.abspath(os.path.dirname(__file__))
TESTDATA = os.path.join(TESTROOT, "data")
| 23.5 | 53 | 0.744681 | 22 | 141 | 4.590909 | 0.681818 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120567 | 141 | 5 | 54 | 28.2 | 0.814516 | 0.219858 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c4431340b1428daa2975eb8b6d5e2be8d09631e | 72 | py | Python | topojson/__init__.py | EduardoCastanho/topojson.py | 7f5cd145ae57838c18dd05035174f8dee110c39a | [
"BSD-3-Clause"
] | 69 | 2015-03-04T16:33:55.000Z | 2022-02-15T10:19:01.000Z | topojson/__init__.py | EduardoCastanho/topojson.py | 7f5cd145ae57838c18dd05035174f8dee110c39a | [
"BSD-3-Clause"
] | 18 | 2015-09-03T00:12:09.000Z | 2019-05-16T08:58:34.000Z | topojson/__init__.py | EduardoCastanho/topojson.py | 7f5cd145ae57838c18dd05035174f8dee110c39a | [
"BSD-3-Clause"
] | 35 | 2015-02-18T18:17:04.000Z | 2022-01-31T16:51:21.000Z | from .conversion import convert as topojson
__version__ = '0.1.01.dev0' | 24 | 43 | 0.777778 | 11 | 72 | 4.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 0.125 | 72 | 3 | 44 | 24 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c466ca1cc1103690f7f7bfcc0f04e4944f3f33f | 718 | py | Python | quartic_sdk/core/iterators/entity_list_iterator.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 1 | 2021-03-26T12:39:44.000Z | 2021-03-26T12:39:44.000Z | quartic_sdk/core/iterators/entity_list_iterator.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 95 | 2021-02-18T03:15:38.000Z | 2022-03-25T05:39:12.000Z | quartic_sdk/core/iterators/entity_list_iterator.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 1 | 2021-09-03T12:46:18.000Z | 2021-09-03T12:46:18.000Z |
class EntityListIterator:
"""
The given class is the entity list iterator which will be used to iterate
for the given list of entities
"""
def __init__(self, base_entity_list):
"""
Initialize the iterator. We set the current index as 0
:param base_entity_list: Refers to th... | 28.72 | 77 | 0.632312 | 91 | 718 | 4.692308 | 0.483516 | 0.163934 | 0.196721 | 0.168618 | 0.107728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00996 | 0.300836 | 718 | 24 | 78 | 29.916667 | 0.840637 | 0.391365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c5394b3f72f5c00940a0d5da8fdb4db9ad57973 | 11,168 | py | Python | openmdao.lib/src/openmdao/lib/drivers/test/test_distributioncasedriver.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.lib/src/openmdao/lib/drivers/test/test_distributioncasedriver.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.lib/src/openmdao/lib/drivers/test/test_distributioncasedriver.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | """
Test DistributionCaseDriver.
"""
import unittest
from openmdao.main.api import Assembly, Component, set_as_top
from openmdao.main.datatypes.api import Float
from openmdao.lib.drivers.distributioncasedriver import DistributionCaseDriver
from openmdao.lib.drivers.distributioncasedriver import FiniteDifferenceGenera... | 39.323944 | 103 | 0.643535 | 1,302 | 11,168 | 5.431644 | 0.120584 | 0.105769 | 0.114536 | 0.131222 | 0.746889 | 0.704186 | 0.661058 | 0.646776 | 0.634757 | 0.612557 | 0 | 0.026243 | 0.225466 | 11,168 | 283 | 104 | 39.462898 | 0.791329 | 0.024266 | 0 | 0.544041 | 0 | 0 | 0.073127 | 0 | 0 | 0 | 0 | 0 | 0.134715 | 0 | null | null | 0.005181 | 0.036269 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
4c64f0157bcf72a0fb96e63232fd255fe5c9d470 | 757 | py | Python | home/rules.py | balgrat/CID19 | ed27f177a1ff8d5fe9cad1fde7da6ec3611e52ce | [
"MIT"
] | null | null | null | home/rules.py | balgrat/CID19 | ed27f177a1ff8d5fe9cad1fde7da6ec3611e52ce | [
"MIT"
] | 12 | 2020-02-12T00:00:40.000Z | 2022-03-11T23:44:47.000Z | home/rules.py | lucvd/CID19 | 826c1ff75e0e33154c48a5b386b2718306a239db | [
"MIT"
] | null | null | null | import rules
@rules.predicate
def is_project_owner(user, project):
return user == project.owner
@rules.predicate
def is_project_editor(user, project): # user must always be the first parameter
return False # TODO add editors
@rules.predicate
def project_visible(user, project): # user must always be the... | 27.035714 | 91 | 0.788639 | 113 | 757 | 5.00885 | 0.256637 | 0.127208 | 0.123675 | 0.141343 | 0.533569 | 0.441696 | 0.441696 | 0.321555 | 0.321555 | 0.176678 | 0 | 0 | 0.120211 | 757 | 28 | 92 | 27.035714 | 0.84985 | 0.126816 | 0 | 0.222222 | 0 | 0 | 0.141337 | 0.066869 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.222222 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
4c66bef686f1ab981349a9ef4f237cf3a62b4267 | 1,200 | py | Python | rotors_gazebo/scripts/collaborative/MARL/replay_buffer.py | intelligent-control-lab/collaborative-aerial-transportation | ec5556d11dda80ab2b9c3bc894fb94c7f63b2dde | [
"MIT"
] | 1 | 2019-07-30T20:07:18.000Z | 2019-07-30T20:07:18.000Z | rotors_gazebo/scripts/collaborative/MARL/replay_buffer.py | intelligent-control-lab/collaborative-aerial-transportation | ec5556d11dda80ab2b9c3bc894fb94c7f63b2dde | [
"MIT"
] | null | null | null | rotors_gazebo/scripts/collaborative/MARL/replay_buffer.py | intelligent-control-lab/collaborative-aerial-transportation | ec5556d11dda80ab2b9c3bc894fb94c7f63b2dde | [
"MIT"
] | null | null | null | from collections import deque
import itertools
import random
class ReplayBuffer(object):
def __init__(self, buffer_size):
self.buffer_size = buffer_size
self.num_experiences = 0
self.buffer = deque()
def get_batch(self, batch_size):
# Randomly sample batch_size exa... | 30.769231 | 82 | 0.625 | 143 | 1,200 | 5.104895 | 0.356643 | 0.150685 | 0.123288 | 0.049315 | 0.145205 | 0.079452 | 0 | 0 | 0 | 0 | 0 | 0.003517 | 0.289167 | 1,200 | 39 | 82 | 30.769231 | 0.852286 | 0.128333 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.111111 | 0.148148 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c67840c52603d35a85396532638c7831523f583 | 3,356 | py | Python | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/datetime_extractor_config.py | CcKeima/Recognizers-Text | 19a4e351b6aace506cdbd70abbe0d5e938ed3560 | [
"MIT"
] | null | null | null | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/datetime_extractor_config.py | CcKeima/Recognizers-Text | 19a4e351b6aace506cdbd70abbe0d5e938ed3560 | [
"MIT"
] | null | null | null | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/datetime_extractor_config.py | CcKeima/Recognizers-Text | 19a4e351b6aace506cdbd70abbe0d5e938ed3560 | [
"MIT"
] | null | null | null | from typing import Pattern
import regex
from recognizers_text import RegExpUtility
from ...resources.chinese_date_time import ChineseDateTime
from ..extractors import DateTimeExtractor
from ..base_datetime import DateTimeExtractorConfiguration
from .date_extractor import ChineseDateExtractor
from .time_extractor impo... | 29.182609 | 120 | 0.709476 | 378 | 3,356 | 5.933862 | 0.219577 | 0.098083 | 0.121266 | 0.147124 | 0.448952 | 0.307624 | 0.246545 | 0.124833 | 0.094962 | 0.057512 | 0 | 0 | 0.226162 | 3,356 | 114 | 121 | 29.438596 | 0.863689 | 0.032777 | 0 | 0.329545 | 0 | 0 | 0.000308 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.25 | false | 0 | 0.090909 | 0.238636 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
d5bc6dfcb6de36a9a013d5c0d0ce4ec7129f3a9b | 1,420 | py | Python | lumin/nn/ensemble/abs_ensemble.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 43 | 2019-02-11T16:16:42.000Z | 2021-12-13T15:35:20.000Z | lumin/nn/ensemble/abs_ensemble.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 48 | 2020-05-21T02:40:50.000Z | 2021-08-10T11:07:08.000Z | lumin/nn/ensemble/abs_ensemble.py | choisant/lumin | c039136eb096e8f3800f13925f9325b99cf7e76b | [
"Apache-2.0"
] | 14 | 2019-05-02T15:09:41.000Z | 2022-01-12T21:13:34.000Z | import numpy as np
from typing import Union, List, Optional, Tuple
from abc import ABCMeta, abstractmethod
from ..models.abs_model import AbsModel
from ..data.fold_yielder import FoldYielder
__all__ = []
class AbsEnsemble(metaclass=ABCMeta):
'''Abstract classs for ensembles'''
def __init__(self): self.model... | 33.809524 | 158 | 0.669718 | 200 | 1,420 | 4.59 | 0.33 | 0.098039 | 0.098039 | 0.039216 | 0.175381 | 0.12963 | 0.082789 | 0 | 0 | 0 | 0 | 0.003463 | 0.18662 | 1,420 | 41 | 159 | 34.634146 | 0.791342 | 0.020423 | 0 | 0.076923 | 0 | 0.038462 | 0.059206 | 0.044043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0.038462 | 0.192308 | 0.115385 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
d5ca3bd1579c7e4d613d3c295daea1d5b8abae06 | 152 | py | Python | tests/benchmarks/list-methods/shallowCopy.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 116 | 2020-07-30T22:09:20.000Z | 2022-03-09T11:08:10.000Z | tests/benchmarks/list-methods/shallowCopy.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 130 | 2020-08-02T19:30:51.000Z | 2022-03-27T01:13:50.000Z | tests/benchmarks/list-methods/shallowCopy.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 50 | 2020-08-01T12:27:01.000Z | 2022-02-24T03:46:52.000Z | import time
import copy
start = time.perf_counter()
x = ["Dictu is great!"]
for _ in range(10000):
copy.copy(x)
print(time.perf_counter() - start) | 16.888889 | 34 | 0.690789 | 24 | 152 | 4.25 | 0.625 | 0.156863 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.164474 | 152 | 9 | 34 | 16.888889 | 0.76378 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5ce35dd29540616c40090fb8208a6ab78fcba06 | 125 | py | Python | orders/__init__.py | ahmedemad3965/Koshkie-Server | 7c361a31c5225c6ad649fcf92e323bdb10cc4c16 | [
"MIT"
] | 4 | 2020-02-26T17:17:17.000Z | 2022-01-15T04:43:36.000Z | orders/__init__.py | Gilles00/Koshkie-Server | 01bb28b88c52461d475535e8cea7780cc343f07d | [
"MIT"
] | 2 | 2020-05-28T12:07:57.000Z | 2020-06-06T16:35:44.000Z | orders/__init__.py | ahmedemad3965/Koshkie-Server | 7c361a31c5225c6ad649fcf92e323bdb10cc4c16 | [
"MIT"
] | 3 | 2020-03-29T00:29:40.000Z | 2020-04-28T20:07:16.000Z | # Copyright (c) Code Written and Tested by Ahmed Emad in 14/02/2020, 14:50
default_app_config = 'orders.apps.OrdersConfig'
| 31.25 | 75 | 0.76 | 21 | 125 | 4.428571 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 0.144 | 125 | 3 | 76 | 41.666667 | 0.757009 | 0.576 | 0 | 0 | 0 | 0 | 0.48 | 0.48 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5d28bed776384fb7efbcea7e13c6ab0f37cc9ac | 30,940 | py | Python | ta/volatility.py | twopirllc/ta | e7b6a29608f7ef083201376a7168dca7a934f5ea | [
"MIT"
] | 6 | 2018-11-24T22:17:27.000Z | 2021-12-20T03:29:24.000Z | ta/volatility.py | twopirllc/ta | e7b6a29608f7ef083201376a7168dca7a934f5ea | [
"MIT"
] | null | null | null | ta/volatility.py | twopirllc/ta | e7b6a29608f7ef083201376a7168dca7a934f5ea | [
"MIT"
] | 3 | 2019-05-30T21:39:54.000Z | 2021-09-01T10:16:12.000Z | # -*- coding: utf-8 -*-
"""
.. module:: volatility
:synopsis: Volatility Indicators.
.. moduleauthor:: Dario Lopez Padial (Bukosabino)
"""
import numpy as np
import pandas as pd
from .utils import *
from .overlap import ema, hlc3, sma
from .statistics import variance, stdev
def accbands(high, low, close, lengt... | 30.097276 | 131 | 0.651422 | 4,187 | 30,940 | 4.740387 | 0.074755 | 0.027711 | 0.01058 | 0.015316 | 0.768894 | 0.726068 | 0.706771 | 0.675584 | 0.634321 | 0.622179 | 0 | 0.008777 | 0.22298 | 30,940 | 1,027 | 132 | 30.126582 | 0.816771 | 0.207854 | 0 | 0.536517 | 0 | 0 | 0.079484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064607 | false | 0 | 0.014045 | 0 | 0.143258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
d5d8a2c6d2b58894153462ab930ae591959c59e2 | 6,388 | py | Python | helios_auth/tests.py | cfp-ufcg/helios-server | 3db537638f60020f30bae2d73a12e4febc1ebd35 | [
"Apache-2.0"
] | 24 | 2019-03-22T12:11:30.000Z | 2021-11-23T20:14:19.000Z | helios_auth/tests.py | cfp-ufcg/helios-server | 3db537638f60020f30bae2d73a12e4febc1ebd35 | [
"Apache-2.0"
] | 4 | 2018-08-15T18:29:52.000Z | 2020-09-11T12:16:06.000Z | helios_auth/tests.py | cfp-ufcg/helios-server | 3db537638f60020f30bae2d73a12e4febc1ebd35 | [
"Apache-2.0"
] | 41 | 2018-09-27T14:32:59.000Z | 2022-02-17T00:35:38.000Z | """
Unit Tests for Auth Systems
"""
import unittest
import models
from django.db import IntegrityError, transaction
from django.test.client import Client
from django.test import TestCase
from django.core import mail
from auth_systems import AUTH_SYSTEMS
class UserModelTests(unittest.TestCase):
def setUp(self... | 38.481928 | 152 | 0.661396 | 807 | 6,388 | 5.054523 | 0.230483 | 0.068644 | 0.035303 | 0.035303 | 0.397401 | 0.334641 | 0.283893 | 0.26428 | 0.26428 | 0.26428 | 0 | 0.002857 | 0.232937 | 6,388 | 165 | 153 | 38.715152 | 0.829592 | 0.216656 | 0 | 0.204819 | 0 | 0 | 0.103391 | 0.009153 | 0 | 0 | 0 | 0.012121 | 0.216867 | 1 | 0.204819 | false | 0.096386 | 0.144578 | 0 | 0.385542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d5da0a307410d3ec25deb75300307e90c773f68f | 491 | py | Python | ImmOrbit/settings.py | RedMap/Django-ImmOrbit | de0d862d8e9bc374f5ae0784e8b51c8b2daaa7b9 | [
"Apache-2.0"
] | null | null | null | ImmOrbit/settings.py | RedMap/Django-ImmOrbit | de0d862d8e9bc374f5ae0784e8b51c8b2daaa7b9 | [
"Apache-2.0"
] | null | null | null | ImmOrbit/settings.py | RedMap/Django-ImmOrbit | de0d862d8e9bc374f5ae0784e8b51c8b2daaa7b9 | [
"Apache-2.0"
] | null | null | null | REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
],
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framewor... | 37.769231 | 73 | 0.741344 | 40 | 491 | 8.875 | 0.625 | 0.183099 | 0.228169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171079 | 491 | 12 | 74 | 40.916667 | 0.872236 | 0.221996 | 0 | 0 | 0 | 0 | 0.707124 | 0.707124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5ece90fcae8544071279ea7ff60b7803b3b4acc | 81 | py | Python | python/testData/resolve/ResolveInGenerator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/ResolveInGenerator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/ResolveInGenerator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def function():
gen_expr = (foo for foo in xrange(10))
# <ref> | 27 | 42 | 0.506173 | 11 | 81 | 3.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.358025 | 81 | 3 | 43 | 27 | 0.730769 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5f28198b24ef306b75ff701277113bdde521f24 | 155 | py | Python | LuoguCodes/AT1444.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT1444.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT1444.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | import itertools
a = map(int, raw_input().split())
b = list(itertools.combinations(a, 3))
sm = []
for i in b:
sm.append(sum(i))
sm.sort()
print sm[-3]
| 17.222222 | 38 | 0.63871 | 28 | 155 | 3.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.16129 | 155 | 8 | 39 | 19.375 | 0.738462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5ffe68636757a8d3d64407b20547a2033a68591 | 165 | py | Python | cfw/framework/args/__init__.py | zinic/python-cfw | 48d339537cb958c29294eca5fbf81b98e5858fde | [
"MIT"
] | 1 | 2017-07-21T00:34:15.000Z | 2017-07-21T00:34:15.000Z | cfw/framework/args/__init__.py | zinic/python-cfw | 48d339537cb958c29294eca5fbf81b98e5858fde | [
"MIT"
] | null | null | null | cfw/framework/args/__init__.py | zinic/python-cfw | 48d339537cb958c29294eca5fbf81b98e5858fde | [
"MIT"
] | null | null | null | from cfw.framework.args.model import (
Argument,
WildcardArgument,
ListArgument,
Flag,
Positional,
WildcardPositional,
ListPositional,
)
| 16.5 | 38 | 0.684848 | 13 | 165 | 8.692308 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 165 | 9 | 39 | 18.333333 | 0.904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9137dc975b46d6f3f5ec3dfc9a77c8f33c903318 | 178 | py | Python | xicam/SAXS/operations/arrayrotate.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 1 | 2020-06-12T01:28:49.000Z | 2020-06-12T01:28:49.000Z | xicam/SAXS/operations/arrayrotate.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 31 | 2020-03-03T22:25:43.000Z | 2022-02-02T23:05:00.000Z | xicam/SAXS/operations/arrayrotate.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 2 | 2020-06-29T21:15:58.000Z | 2020-08-13T23:23:45.000Z | from xicam.plugins.operationplugin import operation
import numpy as np
array_rotate = operation(np.rot90, name="Rotate Array (numpy)", categories=(("General", "Mathematics"),))
| 35.6 | 105 | 0.769663 | 22 | 178 | 6.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.095506 | 178 | 4 | 106 | 44.5 | 0.832298 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
913e70f3b3c46ef03352e240e4810c7ccb75c8dc | 2,624 | py | Python | twitch/helix/helix.py | klagroix/Twitch-Python | f478c33564b789ab8f55bed8b783d196ba78f002 | [
"MIT"
] | null | null | null | twitch/helix/helix.py | klagroix/Twitch-Python | f478c33564b789ab8f55bed8b783d196ba78f002 | [
"MIT"
] | null | null | null | twitch/helix/helix.py | klagroix/Twitch-Python | f478c33564b789ab8f55bed8b783d196ba78f002 | [
"MIT"
] | null | null | null | from datetime import timedelta
from typing import List, Union, Optional
import twitch.helix as helix
from twitch.api import API
class Helix:
BASE_URL: str = 'https://api.twitch.tv/helix/'
def __init__(self,
client_id: str,
client_secret: str = None,
use_cac... | 34.986667 | 107 | 0.587271 | 321 | 2,624 | 4.641745 | 0.199377 | 0.066443 | 0.02953 | 0.034899 | 0.108725 | 0.077852 | 0.042953 | 0 | 0 | 0 | 0 | 0.002672 | 0.286966 | 2,624 | 74 | 108 | 35.459459 | 0.793693 | 0.108613 | 0 | 0 | 0 | 0 | 0.06749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.085106 | 0.170213 | 0.574468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
91401076b30c6ff2230472e65b1063394df00887 | 2,023 | py | Python | src/help.py | spankratov/celery-exporter | f4c98f8e73d8af881675db950e14f8f1b9483d6c | [
"MIT"
] | 132 | 2021-02-06T21:42:28.000Z | 2022-03-31T15:24:20.000Z | src/help.py | spankratov/celery-exporter | f4c98f8e73d8af881675db950e14f8f1b9483d6c | [
"MIT"
] | 47 | 2021-02-09T11:47:47.000Z | 2022-03-29T15:14:18.000Z | src/help.py | spankratov/celery-exporter | f4c98f8e73d8af881675db950e14f8f1b9483d6c | [
"MIT"
] | 26 | 2021-02-09T11:41:55.000Z | 2022-03-15T11:43:41.000Z | # pylint: disable=protected-access
from .exporter import Exporter
prometheus_logo = """
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@((((((((((((((((((((((@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@((((((((((((((@@((((((((((((((((@@@@@@@@@@@@@@
@@@@@@@@@@@((((((((((((((((@@@((((((((((((((((((... | 34.288136 | 63 | 0.196243 | 69 | 2,023 | 5.434783 | 0.492754 | 0.16 | 0.058667 | 0.08 | 0.224 | 0.101333 | 0 | 0 | 0 | 0 | 0 | 0.002094 | 0.055858 | 2,023 | 58 | 64 | 34.87931 | 0.194241 | 0.015818 | 0 | 0.22 | 0 | 0 | 0.813474 | 0.751131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
914071df7b991ce027ed7dc252afa9c5412ffb67 | 206 | py | Python | algorithms/find_digits.py | benjamincongdon/HackerRank | c81aa6d5204c1128f856eeb32454cfec34b22409 | [
"MIT"
] | null | null | null | algorithms/find_digits.py | benjamincongdon/HackerRank | c81aa6d5204c1128f856eeb32454cfec34b22409 | [
"MIT"
] | null | null | null | algorithms/find_digits.py | benjamincongdon/HackerRank | c81aa6d5204c1128f856eeb32454cfec34b22409 | [
"MIT"
] | null | null | null | #!/bin/python
import sys
t = int(raw_input().strip())
for a0 in xrange(t):
n = int(raw_input().strip())
digits = [int(i) for i in str(n)]
print sum(1 for i in digits if i != 0 and n % i == 0) | 20.6 | 57 | 0.57767 | 41 | 206 | 2.853659 | 0.560976 | 0.102564 | 0.188034 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.242718 | 206 | 10 | 57 | 20.6 | 0.724359 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e67e86f34263f5e29d811e9af74d18570b2a26f9 | 240 | py | Python | imgcls/__init__.py | TuranSKT/detectron2_class | c90e68abbd39afa8c34d83ac760cabf3b5d02868 | [
"MIT"
] | 22 | 2020-06-09T11:06:15.000Z | 2022-03-29T16:24:23.000Z | imgcls/__init__.py | TuranSKT/detectron2_class | c90e68abbd39afa8c34d83ac760cabf3b5d02868 | [
"MIT"
] | 4 | 2020-07-09T16:39:48.000Z | 2020-11-25T13:34:52.000Z | imgcls/__init__.py | TuranSKT/detectron2_class | c90e68abbd39afa8c34d83ac760cabf3b5d02868 | [
"MIT"
] | 9 | 2020-06-10T09:55:09.000Z | 2021-08-20T12:55:26.000Z | '''
@Copyright (c) tkianai All Rights Reserved.
@Author : tkianai
@Github : https://github.com/tkianai
@Date : 2020-04-26 14:00:17
@FilePath : /ImageCls.detectron2/imgcls/__init__.py
@Description :
'''
| 21.818182 | 57 | 0.604167 | 27 | 240 | 5.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083799 | 0.254167 | 240 | 10 | 58 | 24 | 0.703911 | 0.95 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e67f1e8706b591834f87f3e4b22e0a8be2e7285c | 9,386 | py | Python | tests/test_initial_condition.py | Steakkk/bioptim-1 | ccced00a581d9bf469631cc8a186c055f2e567e1 | [
"MIT"
] | null | null | null | tests/test_initial_condition.py | Steakkk/bioptim-1 | ccced00a581d9bf469631cc8a186c055f2e567e1 | [
"MIT"
] | null | null | null | tests/test_initial_condition.py | Steakkk/bioptim-1 | ccced00a581d9bf469631cc8a186c055f2e567e1 | [
"MIT"
] | null | null | null | import pytest
import importlib.util
from pathlib import Path
import numpy as np
from bioptim import Data, InterpolationType, Simulate, InitialGuess
# TODO: Add negative test for sizes
def test_initial_guess_constant():
nb_elements = 6
nb_shoot = 10
init_val = np.random.random(
nb_elements,
... | 37.544 | 111 | 0.678138 | 1,397 | 9,386 | 4.278454 | 0.125984 | 0.03915 | 0.06525 | 0.09135 | 0.798059 | 0.752719 | 0.71039 | 0.689811 | 0.649824 | 0.624059 | 0 | 0.055891 | 0.187939 | 9,386 | 249 | 112 | 37.694779 | 0.728287 | 0.042297 | 0 | 0.449438 | 0 | 0 | 0.048033 | 0.027973 | 0 | 0 | 0 | 0.004016 | 0.146067 | 1 | 0.05618 | false | 0 | 0.061798 | 0.005618 | 0.123596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e6897ac9d187643bd9e25bbdfeb37e51aa88fcf2 | 139 | py | Python | chatApp/client/ui/run_ui.py | Mark-Suckau/ChatApp | d64edf40d004ce7e9ff91f39547e24f99c3ac0de | [
"MIT"
] | 2 | 2021-07-24T02:20:12.000Z | 2021-07-24T14:04:53.000Z | chatApp/client/ui/run_ui.py | Mark-Suckau/ChatApp | d64edf40d004ce7e9ff91f39547e24f99c3ac0de | [
"MIT"
] | null | null | null | chatApp/client/ui/run_ui.py | Mark-Suckau/ChatApp | d64edf40d004ce7e9ff91f39547e24f99c3ac0de | [
"MIT"
] | 1 | 2021-07-17T14:39:40.000Z | 2021-07-17T14:39:40.000Z | from tkinter import *
from chatapp.client.ui.main_window import Window
def run_ui():
root = Tk()
window = Window(root)
run_ui()
| 13.9 | 48 | 0.690647 | 21 | 139 | 4.428571 | 0.571429 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201439 | 139 | 9 | 49 | 15.444444 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6a1411a434e7bbff273e5fd25dfe8f300799c44 | 216 | py | Python | RelevantGif/test.py | stevewillows/limnoria-plugins | d2a148e4bce14b042e0bdd92bcdb2ddd27e2d6b5 | [
"MIT"
] | 9 | 2016-05-05T11:58:17.000Z | 2020-05-09T08:43:28.000Z | RelevantGif/test.py | stevewillows/limnoria-plugins | d2a148e4bce14b042e0bdd92bcdb2ddd27e2d6b5 | [
"MIT"
] | 40 | 2015-09-18T08:12:09.000Z | 2021-12-20T07:11:43.000Z | RelevantGif/test.py | stevewillows/limnoria-plugins | d2a148e4bce14b042e0bdd92bcdb2ddd27e2d6b5 | [
"MIT"
] | 22 | 2015-10-18T01:31:15.000Z | 2022-03-19T09:28:24.000Z | ###
# Copyright (c) 2015, lunchdump
# All Rights Reserved
#
###
from supybot.test import *
class GiphyTestCase(PluginTestCase):
plugins = ('Giphy',)
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
| 13.5 | 56 | 0.694444 | 25 | 216 | 6 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044693 | 0.171296 | 216 | 15 | 57 | 14.4 | 0.793296 | 0.481481 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
e6a7e40bec8acc551056d414b984b24c58669b87 | 79 | py | Python | cheatsheets/__init__.py | Tlalocan/cheatsheet | 90cbaa0470324a7c27730d3a051a9794e0ce9ca9 | [
"MIT"
] | null | null | null | cheatsheets/__init__.py | Tlalocan/cheatsheet | 90cbaa0470324a7c27730d3a051a9794e0ce9ca9 | [
"MIT"
] | 5 | 2021-01-28T08:34:34.000Z | 2021-01-29T15:52:02.000Z | cheatsheets/__init__.py | Tlalocan/cheatsheets | 90cbaa0470324a7c27730d3a051a9794e0ce9ca9 | [
"MIT"
] | null | null | null | from pathlib import Path
CHEAT_DIRECTORY = f'{str(Path.home())}/.cheatsheets/' | 26.333333 | 53 | 0.746835 | 11 | 79 | 5.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 79 | 3 | 53 | 26.333333 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6ae64ba3b97d9ef603973f3e71b682f886d0cc9 | 251 | py | Python | atgql/pyutils/print_path_array.py | ATyped/atgql | 3fa9e09c9cea346dc42c205452487420ceb493e2 | [
"MIT"
] | null | null | null | atgql/pyutils/print_path_array.py | ATyped/atgql | 3fa9e09c9cea346dc42c205452487420ceb493e2 | [
"MIT"
] | null | null | null | atgql/pyutils/print_path_array.py | ATyped/atgql | 3fa9e09c9cea346dc42c205452487420ceb493e2 | [
"MIT"
] | null | null | null | __all__ = ['print_path_array']
from collections.abc import Sequence
from typing import Union
def print_path_array(path: Sequence[Union[str, int]]) -> str:
return ''.join(map(lambda key: f'[{key}]' if isinstance(key, int) else f'.{key}', path))
| 27.888889 | 92 | 0.705179 | 38 | 251 | 4.447368 | 0.605263 | 0.106509 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135458 | 251 | 8 | 93 | 31.375 | 0.778802 | 0 | 0 | 0 | 0 | 0 | 0.115538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
e6b0e964c14da389767c5fd1a8fd90960a2a7877 | 617 | py | Python | src/mmLib/tests/test_Library.py | jpictor/tlsmd | dc2c593aebedbe0dc822d467e7b0fb7407762d61 | [
"Artistic-1.0"
] | null | null | null | src/mmLib/tests/test_Library.py | jpictor/tlsmd | dc2c593aebedbe0dc822d467e7b0fb7407762d61 | [
"Artistic-1.0"
] | null | null | null | src/mmLib/tests/test_Library.py | jpictor/tlsmd | dc2c593aebedbe0dc822d467e7b0fb7407762d61 | [
"Artistic-1.0"
] | null | null | null | import os
from unittest import skip
from django.test import TestCase
from mmLib.Library import library_get_element_desc, ELEMENT_CIF_FILE
class LibraryTestCase(TestCase):
def test_library_get_element_desc(self):
h = library_get_element_desc("H")
def test_element_file(self):
for cif_data in EL... | 36.294118 | 127 | 0.640194 | 87 | 617 | 4.275862 | 0.37931 | 0.13172 | 0.177419 | 0.169355 | 0.239247 | 0.198925 | 0.198925 | 0.198925 | 0.198925 | 0.198925 | 0 | 0.002119 | 0.235008 | 617 | 16 | 128 | 38.5625 | 0.786017 | 0 | 0 | 0 | 0 | 0 | 0.111831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6b54ec7160a8814d47029cf7018fd672bd3de4f | 369 | py | Python | app/utils/md5.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | app/utils/md5.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | app/utils/md5.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# @Time : 2019/8/25 18:31
# @Author : Thanlon
# @Email : thanlon@sina.com
# @File : md5.py
# @Project : code_count
import hashlib
from settings import Config
def md5(password):
hash = hashlib.md5(Config.SALT)
# hash.update(b'thanlon')
hash.update(bytes(password, encoding='utf-8'))
... | 23.0625 | 50 | 0.661247 | 52 | 369 | 4.673077 | 0.692308 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074675 | 0.165312 | 369 | 16 | 51 | 23.0625 | 0.714286 | 0.460705 | 0 | 0 | 0 | 0 | 0.026178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e6c46e5957150d3ae56f3720492f3b782ffcb5ff | 717 | py | Python | minishift_library/networkpolicy.py | ianmiell/shutit-minishift | 78977865969f3326c7a347240afb0e3cafe2f5ab | [
"Apache-2.0"
] | null | null | null | minishift_library/networkpolicy.py | ianmiell/shutit-minishift | 78977865969f3326c7a347240afb0e3cafe2f5ab | [
"Apache-2.0"
] | null | null | null | minishift_library/networkpolicy.py | ianmiell/shutit-minishift | 78977865969f3326c7a347240afb0e3cafe2f5ab | [
"Apache-2.0"
] | null | null | null | def do_networkpolicy(s):
# See: https://blog.openshift.com/networkpolicies-and-microsegmentation/
# Example network policy - needs access to default namespace for router connections
s.send_file('''np.yaml''','''kind: NetworkPolicy
apiVersion: extensions/v1beta1
metadata:
name: allow-same-and-default-namespace
spe... | 26.555556 | 84 | 0.723849 | 83 | 717 | 6.228916 | 0.698795 | 0.092843 | 0.058027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00335 | 0.167364 | 717 | 26 | 85 | 27.576923 | 0.862647 | 0.485356 | 0 | 0.133333 | 0 | 0 | 0.764543 | 0.088643 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.066667 | false | 0.066667 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6e28ca269021cacbcf2ade0db64a484215f2339 | 338 | py | Python | src/ufdl/json/core/jobs/_ValueTypePair.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/jobs/_ValueTypePair.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/jobs/_ValueTypePair.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | from wai.json.object import StrictJSONObject
from wai.json.object.property import StringProperty
class ValueTypePair(StrictJSONObject['ValueTypePair']):
"""
A pair of a value and its type.
"""
# The value passed to the input
value: str = StringProperty()
# The type of the value
type: str ... | 26 | 55 | 0.704142 | 42 | 338 | 5.666667 | 0.52381 | 0.058824 | 0.092437 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210059 | 338 | 13 | 56 | 26 | 0.891386 | 0.248521 | 0 | 0 | 0 | 0 | 0.054622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e6e5d9735b157665b302cb87634d3dad22034b60 | 373 | py | Python | 2020/examples-in-class-2020-11-19/exception_handling_func_specific_error.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2021-02-04T16:59:11.000Z | 2021-02-04T16:59:11.000Z | 2020/examples-in-class-2020-11-19/exception_handling_func_specific_error.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | null | null | null | 2020/examples-in-class-2020-11-19/exception_handling_func_specific_error.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2019-10-30T14:37:48.000Z | 2019-10-30T14:37:48.000Z | def print_division(a,b):
try:
result = a / b
print(f"result: {result}")
except ZeroDivisionError:
print("Zero division error occurred, check your inputs")
print_division(10,5)
print_division(10,0)
print_division(10,2)
# since we do catch
# TypeError: unsupported operand type(s) for /: 'str' and 'str'
# bel... | 19.631579 | 63 | 0.713137 | 58 | 373 | 4.5 | 0.637931 | 0.249042 | 0.229885 | 0.122605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.155496 | 373 | 18 | 64 | 20.722222 | 0.790476 | 0.294906 | 0 | 0 | 0 | 0 | 0.254826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 3 |
fc12f399ff5dea89db9617378ea3ba2108ebcfef | 1,684 | py | Python | duck-typing-polimorphism/demo.py | Minkov/python-oop-2020-02 | d2acb1504c1a135cded2ae6ff42acccb303d9ab1 | [
"MIT"
] | 2 | 2020-02-27T18:34:45.000Z | 2020-10-25T17:34:15.000Z | duck-typing-polimorphism/demo.py | Minkov/python-oop-2020-02 | d2acb1504c1a135cded2ae6ff42acccb303d9ab1 | [
"MIT"
] | null | null | null | duck-typing-polimorphism/demo.py | Minkov/python-oop-2020-02 | d2acb1504c1a135cded2ae6ff42acccb303d9ab1 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from math import pi, sqrt
# class Shape:
# def __init__(self):
# if type(self) == Shape:
# raise TypeError('Shape is an abstract class')
#
# def __str__(self):
# return f'Area: {self.area()}; Perimeter: {self.perimeter()}'
#
# def area(self):... | 22.756757 | 88 | 0.625891 | 204 | 1,684 | 4.911765 | 0.20098 | 0.095808 | 0.047904 | 0.063872 | 0.212575 | 0.181637 | 0.121756 | 0 | 0 | 0 | 0 | 0.015188 | 0.257126 | 1,684 | 73 | 89 | 23.068493 | 0.785771 | 0.184679 | 0 | 0.210526 | 0 | 0 | 0.051508 | 0.038263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342105 | false | 0.052632 | 0.052632 | 0.157895 | 0.684211 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
fc3ad5daaf48fb4119014f23e24f8ab5e227292c | 2,951 | py | Python | 352/mini-projects/hw3/CENG352_Mini_Project_3_Files/source/validators.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 33 | 2019-03-19T07:51:17.000Z | 2022-03-15T11:04:35.000Z | 352/mini-projects/hw3/CENG352_Mini_Project_3_Files/source/validators.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 1 | 2019-11-09T18:08:21.000Z | 2019-11-09T18:08:21.000Z | 352/mini-projects/hw3/CENG352_Mini_Project_3_Files/source/validators.py | ysyesilyurt/Metu-CENG | a83fcab00f68e28bda307bb94c060f55042a1389 | [
"MIT"
] | 13 | 2019-11-08T06:18:21.000Z | 2022-01-07T17:17:38.000Z | import messages
def sign_up_validator(auth_customer, cmd_tokens):
# disregard already signed in users
if auth_customer:
return False, messages.USER_ALREADY_SIGNED_IN
# sign_up <email> <password> <first_name> <last_name> <plan_id>
elif len(cmd_tokens) == 6:
return True, None
... | 29.808081 | 76 | 0.689258 | 390 | 2,951 | 4.905128 | 0.189744 | 0.108207 | 0.153685 | 0.17564 | 0.727653 | 0.705698 | 0.633037 | 0.596968 | 0.56874 | 0.56874 | 0 | 0.007606 | 0.24263 | 2,951 | 98 | 77 | 30.112245 | 0.848322 | 0.111827 | 0 | 0.559322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0 | 0.016949 | 0.067797 | 0.627119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
fc402a3f121628f013e1d332a94f14d9ea3ae070 | 2,088 | py | Python | src/scs_core/particulate/pmx_datum.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/particulate/pmx_datum.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/particulate/pmx_datum.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | """
Created on 18 Sep 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from collections import OrderedDict
from scs_core.data.datum import Datum
from scs_core.data.json import JSONable
from scs_core.sample.sample import Sample
# ------------------------------------------------------------------... | 25.156627 | 118 | 0.400862 | 178 | 2,088 | 4.511236 | 0.275281 | 0.043587 | 0.087173 | 0.03736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046688 | 0.2409 | 2,088 | 82 | 119 | 25.463415 | 0.459937 | 0.340517 | 0 | 0.135135 | 0 | 0.027027 | 0.05295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.108108 | 0.162162 | 0.540541 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fc40fffb3fd56d166d58991b614d4ed73065ad9d | 1,435 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/TreeViewImageKeyConverter.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/TreeViewImageKeyConverter.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/TreeViewImageKeyConverter.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | class TreeViewImageKeyConverter(ImageKeyConverter):
"""
Provides a type converter to convert data for an image key to and from another data type.
TreeViewImageKeyConverter()
"""
def Instance(self):
""" This function has been arbitrarily put into the stubs"""
return TreeViewImageKeyConverter()
d... | 47.833333 | 268 | 0.767944 | 172 | 1,435 | 6.395349 | 0.488372 | 0.024545 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 1,435 | 29 | 269 | 49.482759 | 0.925147 | 0.66899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fc45c8235e5937630b681bf25740206a94ac0769 | 349 | py | Python | ch2_practice/18_autoGUI/00_gui_test/spiral.py | dreddsa5dies/automatePy | 2a24b38b8e0705a33b8bff0942079f30a0ab22d3 | [
"MIT"
] | 2 | 2019-10-09T13:11:03.000Z | 2020-03-20T23:01:45.000Z | ch2_practice/18_autoGUI/00_gui_test/spiral.py | dreddsa5dies/automatePy | 2a24b38b8e0705a33b8bff0942079f30a0ab22d3 | [
"MIT"
] | null | null | null | ch2_practice/18_autoGUI/00_gui_test/spiral.py | dreddsa5dies/automatePy | 2a24b38b8e0705a33b8bff0942079f30a0ab22d3 | [
"MIT"
] | 1 | 2020-03-20T23:01:46.000Z | 2020-03-20T23:01:46.000Z | #! python
import pyautogui, time
time.sleep(5)
pyautogui.click()
dist = 200
while dist > 0 :
pyautogui.dragRel(dist, 0, duration=0.2) #сдвиг вправо
dist = dist - 5
pyautogui.dragRel(0, dist, duration=0.2)
pyautogui.dragRel(-dist, 0, duration=0.2)
dist = dist - 5
pyautogui.dr... | 20.529412 | 59 | 0.627507 | 50 | 349 | 4.38 | 0.32 | 0.292237 | 0.182648 | 0.191781 | 0.648402 | 0.648402 | 0.648402 | 0.365297 | 0.365297 | 0.365297 | 0 | 0.071429 | 0.237822 | 349 | 17 | 60 | 20.529412 | 0.75188 | 0.057307 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
fc496bede7d6e8405f12e79225bb4ddec005f7f9 | 577 | py | Python | backend/microservices/audio-generator/config/server.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | 3 | 2021-04-26T00:17:14.000Z | 2021-07-04T15:30:09.000Z | backend/microservices/audio-generator/config/server.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | null | null | null | backend/microservices/audio-generator/config/server.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | null | null | null | import os
SECRET_KEY_LENGTH = 32
SERVER_EMAIL = 'smtp.gmail.com'
SERVER_EMAIL_PORT = 465
SERVER_EMAIL_USERNAME = 'bookbeat.project@gmail.com'
SERVER_EMAIL_PASSWORD = '8_R75a</V^Ew**/L^c~C'
AUTHOR_NAME = "Author"
JWT_ACCESS_TOKEN_LIFETIME_IN_MINUTES = int(os.environ.get('JWT_ACCESS_TOKEN_LIFETIME_IN_MINUT... | 36.0625 | 103 | 0.786828 | 92 | 577 | 4.48913 | 0.434783 | 0.188862 | 0.217918 | 0.319613 | 0.612591 | 0.612591 | 0.372881 | 0.372881 | 0.193705 | 0 | 0 | 0.027559 | 0.119584 | 577 | 15 | 104 | 38.466667 | 0.785433 | 0 | 0 | 0 | 0 | 0 | 0.377224 | 0.30605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fc5080260799cdfe869f919000d70743c993f7b3 | 12,623 | py | Python | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py | wwendyc/azure-sdk-for-python | 0c110288c8b8d2078328bfe3f1c6d8db30dd8c17 | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py | wwendyc/azure-sdk-for-python | 0c110288c8b8d2078328bfe3f1c6d8db30dd8c17 | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py | wwendyc/azure-sdk-for-python | 0c110288c8b8d2078328bfe3f1c6d8db30dd8c17 | [
"MIT"
] | null | null | null | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import pytest
from azure.containerregistry import (
DeleteRepositoryResult,
ArtifactTagProperties,
ContentPrope... | 38.367781 | 112 | 0.68193 | 1,368 | 12,623 | 5.955409 | 0.097222 | 0.119676 | 0.044679 | 0.044311 | 0.804468 | 0.782374 | 0.736713 | 0.669817 | 0.625752 | 0.598257 | 0 | 0.004968 | 0.250574 | 12,623 | 329 | 113 | 38.367781 | 0.856237 | 0.014497 | 0 | 0.558594 | 0 | 0 | 0.009491 | 0 | 0 | 0 | 0 | 0 | 0.183594 | 1 | 0 | false | 0 | 0.050781 | 0 | 0.054688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 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 | 3 |
fc72860535bbd3a3329b979bbca4756c9deba2cf | 707 | py | Python | test/test_linear_regression.py | IgnacioAnguita/ML-Testing | f50d7f5580249ca2fb0444c7334cf968fc11776b | [
"Apache-2.0"
] | null | null | null | test/test_linear_regression.py | IgnacioAnguita/ML-Testing | f50d7f5580249ca2fb0444c7334cf968fc11776b | [
"Apache-2.0"
] | null | null | null | test/test_linear_regression.py | IgnacioAnguita/ML-Testing | f50d7f5580249ca2fb0444c7334cf968fc11776b | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from ml_models.Linear_Regression_Analytic import Linear_Regression_Analytic
import numpy as np
class myTest(unittest.TestCase):
X = np.array([[1, 1], [1, 2], [2, 2], [2, 3]])
y = np.dot(X, np.array([1, 2])) + 3
Linear_Model_Analytic = Linear_Regression_Analytic()
Lin... | 29.458333 | 76 | 0.704385 | 106 | 707 | 4.424528 | 0.339623 | 0.140725 | 0.24307 | 0.21322 | 0.347548 | 0.347548 | 0.347548 | 0 | 0 | 0 | 0 | 0.033003 | 0.142857 | 707 | 23 | 77 | 30.73913 | 0.740924 | 0 | 0 | 0.117647 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
fc9448ca058ca00ebca28bef2cc3d02693055186 | 711 | py | Python | config.env.py | crigney3/csh-quotefault-bot | fa5975efb28913292548bfcdf241a9b9f788cd37 | [
"MIT"
] | null | null | null | config.env.py | crigney3/csh-quotefault-bot | fa5975efb28913292548bfcdf241a9b9f788cd37 | [
"MIT"
] | null | null | null | config.env.py | crigney3/csh-quotefault-bot | fa5975efb28913292548bfcdf241a9b9f788cd37 | [
"MIT"
] | null | null | null | import os
# Flask Config
DEBUG = True
IP = os.environ.get('API_IP', '127.0.0.1')
PORT = os.environ.get('API_PORT', 5000)
SERVER_NAME = os.environ.get('API_SERVER_NAME', '')
# Quotefault API config
QUOTEFAULT_ADDR = os.environ.get('QUOTEFAULT_API_ADDR', 'quotefault-api.csh.rit.edu')
QUOTEFAULT_KEY = os.environ.get('QU... | 32.318182 | 85 | 0.735584 | 110 | 711 | 4.472727 | 0.318182 | 0.20122 | 0.268293 | 0.138211 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015528 | 0.094233 | 711 | 21 | 86 | 33.857143 | 0.748447 | 0.085795 | 0 | 0 | 0 | 0 | 0.313178 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fc99de71d194f86a45997abc3f7da6f5e93252a2 | 14,997 | py | Python | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_query_features.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | 1 | 2020-12-24T13:28:35.000Z | 2020-12-24T13:28:35.000Z | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_query_features.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | Chatbot_DockerVersion/webapp/requirements/mindmeld/tests/test_query_features.py | ptrckhmmr/ChatBotforCulturalInstitutions | c3da1a6d142e306c2e3183ba5609553e15a0e124 | [
"Apache-2.0"
] | null | null | null | import pytest
import math
EXACT_QUERY_MATCH_SCALING_FACTOR = 10
EPSILON = math.pow(10, -5)
@pytest.mark.parametrize(
"query, feature_keys, expected_feature_values, dynamic_resource",
[
# Test for extract_in_gaz_feature
("set alarm potato",
['in_gaz|type:duration'],
... | 37.680905 | 98 | 0.56478 | 1,839 | 14,997 | 4.357259 | 0.11528 | 0.031199 | 0.048297 | 0.064645 | 0.819793 | 0.756396 | 0.723699 | 0.674155 | 0.616623 | 0.558467 | 0 | 0.067284 | 0.309262 | 14,997 | 397 | 99 | 37.775819 | 0.706246 | 0.107822 | 0 | 0.436923 | 0 | 0 | 0.40221 | 0.292552 | 0 | 0 | 0 | 0 | 0.024615 | 1 | 0.009231 | false | 0 | 0.006154 | 0 | 0.015385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 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 | 3 |
fc9a0d2e90f194416dee4185ab6ef13c1df7db92 | 419 | py | Python | umanage/change_password/forms.py | movermeyer/django-umanage | 9327772efbf1f13c05b22afcbccaebb2c8595850 | [
"MIT"
] | 4 | 2015-04-21T01:01:23.000Z | 2016-01-15T08:41:56.000Z | umanage/change_password/forms.py | movermeyer/django-umanage | 9327772efbf1f13c05b22afcbccaebb2c8595850 | [
"MIT"
] | 1 | 2018-03-04T20:46:41.000Z | 2018-03-04T20:46:41.000Z | umanage/change_password/forms.py | movermeyer/django-umanage | 9327772efbf1f13c05b22afcbccaebb2c8595850 | [
"MIT"
] | 3 | 2017-08-14T01:53:44.000Z | 2019-06-06T17:47:49.000Z | from __future__ import unicode_literals
from django.contrib.auth.forms import PasswordChangeForm
from django_core.utils.validators import validate_password_strength
class UManagePasswordChangeForm(PasswordChangeForm):
def __init__(self, *args, **kwargs):
super(UManagePasswordChangeForm, self).__init__(*... | 34.916667 | 82 | 0.806683 | 44 | 419 | 7.25 | 0.636364 | 0.062696 | 0.15047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.109785 | 419 | 11 | 83 | 38.090909 | 0.852547 | 0 | 0 | 0 | 0 | 0 | 0.031026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.714286 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
fca229e212970fe77a6ed58e619bf544723a70f9 | 199 | py | Python | tests/sol-memoverflow.py | France-ioi/taskgrader | 72b043195af752d68cfee1d28fb52ae6012bc9a2 | [
"MIT"
] | 12 | 2015-02-19T20:09:04.000Z | 2021-12-25T13:52:17.000Z | tests/sol-memoverflow.py | France-ioi/taskgrader | 72b043195af752d68cfee1d28fb52ae6012bc9a2 | [
"MIT"
] | 102 | 2015-08-03T14:07:46.000Z | 2022-02-18T19:56:55.000Z | tests/sol-memoverflow.py | France-ioi/taskgrader | 72b043195af752d68cfee1d28fb52ae6012bc9a2 | [
"MIT"
] | 3 | 2016-05-12T15:03:16.000Z | 2019-07-31T14:38:24.000Z | #!/usr/bin/env python2.7
# This solution tries to use a lot of memory to test the memory limits.
import sys
t = 1
t = [t]*1024
t = [t]*1024
t = [t]*1024
t = [t]*1024
print int(sys.stdin.read())*2
| 15.307692 | 71 | 0.643216 | 41 | 199 | 3.121951 | 0.658537 | 0.0625 | 0.1875 | 0.164063 | 0.1875 | 0.1875 | 0.1875 | 0.1875 | 0.1875 | 0 | 0 | 0.125 | 0.19598 | 199 | 12 | 72 | 16.583333 | 0.675 | 0.467337 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d77d37c5ba6f16d4c05a95c4e7fd1831eea8761 | 1,167 | py | Python | tests/test_import.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | tests/test_import.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | tests/test_import.py | utkarsh2102/walinuxagent | c5f2376a4870962838c388924ae530caee6d6db5 | [
"Apache-2.0"
] | null | null | null | from tests.tools import AgentTestCase
import azurelinuxagent.common.osutil as osutil
import azurelinuxagent.common.dhcp as dhcp
import azurelinuxagent.common.protocol as protocol
import azurelinuxagent.pa.provision as provision
import azurelinuxagent.pa.deprovision as deprovision
import azurelinuxagent.daemon as daemon... | 38.9 | 58 | 0.797772 | 132 | 1,167 | 6.856061 | 0.242424 | 0.278453 | 0.101657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145673 | 1,167 | 29 | 59 | 40.241379 | 0.907723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.518519 | 0 | 0.592593 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
5da4f7c3c4bb9b70df99a55cd8e69db535d452df | 29,665 | py | Python | tests/test_athena_parquet.py | loftwah/aws-data-wrangler | ba6646479a5c10a13c23da88683e7f80d34ec02d | [
"Apache-2.0"
] | null | null | null | tests/test_athena_parquet.py | loftwah/aws-data-wrangler | ba6646479a5c10a13c23da88683e7f80d34ec02d | [
"Apache-2.0"
] | null | null | null | tests/test_athena_parquet.py | loftwah/aws-data-wrangler | ba6646479a5c10a13c23da88683e7f80d34ec02d | [
"Apache-2.0"
] | null | null | null | import datetime
import logging
import math
from decimal import Decimal
import boto3
import numpy as np
import pandas as pd
import pyarrow as pa
import pytest
import awswrangler as wr
from awswrangler._data_types import _split_fields
from ._utils import ensure_data_types, get_df, get_df_cast, get_df_list
logging.get... | 38.525974 | 165 | 0.612405 | 4,147 | 29,665 | 4.201592 | 0.071377 | 0.081267 | 0.097567 | 0.081784 | 0.785009 | 0.756313 | 0.719066 | 0.677112 | 0.649105 | 0.622647 | 0 | 0.042346 | 0.224642 | 29,665 | 769 | 166 | 38.576073 | 0.715186 | 0.000303 | 0 | 0.52924 | 0 | 0.00731 | 0.094324 | 0.0259 | 0 | 0 | 0 | 0 | 0.179825 | 1 | 0.05117 | false | 0.001462 | 0.017544 | 0 | 0.068713 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
5ddc1ff522ce1a21ac2136a01b7390bb93555478 | 132 | py | Python | tests/syntax/assign_to_literal_set.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/syntax/assign_to_literal_set.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/syntax/assign_to_literal_set.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | """Should raise SyntaxError:
Python 3.8: cannot assign to set display
Python 3.6, 3.7: can't assign to literal
"""
{1, 2, 3} = 4
| 16.5 | 40 | 0.659091 | 25 | 132 | 3.48 | 0.76 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0.19697 | 132 | 7 | 41 | 18.857143 | 0.726415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5dec6b50f6b84d174346c6be34b89fee87508dc2 | 163 | py | Python | flaskHtai/manage.py | MisterZhouZhou/python3demo | da0b6771cc12e8e1066a115c3f72a90c100108ac | [
"Apache-2.0"
] | 3 | 2019-03-04T08:39:57.000Z | 2019-12-06T08:29:47.000Z | flaskHtai/manage.py | MisterZhouZhou/python3demo | da0b6771cc12e8e1066a115c3f72a90c100108ac | [
"Apache-2.0"
] | null | null | null | flaskHtai/manage.py | MisterZhouZhou/python3demo | da0b6771cc12e8e1066a115c3f72a90c100108ac | [
"Apache-2.0"
] | null | null | null | from flask_script import Manager
from utils.functions import create_app
app = create_app()
manage = Manager(app=app)
if __name__ == '__main__':
manage.run() | 18.111111 | 38 | 0.748466 | 23 | 163 | 4.826087 | 0.608696 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153374 | 163 | 9 | 39 | 18.111111 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8dfb4608d7402d0e6438a48deaff80dcef15205 | 1,780 | py | Python | lib/independence/fs.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T11:34:52.000Z | 2020-02-26T05:22:15.000Z | lib/independence/fs.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | null | null | null | lib/independence/fs.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import urllib.request
import tarfile
import zipfile
import gzip
import shutil
import threading
import sys
def abspath(path):
return os.path.abspath(path)
def basename(path):
return os.path.basename(path)
def cp(path_src, path_dst):
shutil.copyfileobj(path_src, path_dst)
d... | 24.054054 | 85 | 0.695506 | 265 | 1,780 | 4.6 | 0.286792 | 0.059065 | 0.068909 | 0.052502 | 0.241181 | 0.067268 | 0.067268 | 0.067268 | 0.067268 | 0 | 0 | 0.000686 | 0.181461 | 1,780 | 74 | 86 | 24.054054 | 0.835964 | 0.027528 | 0 | 0.036364 | 0 | 0 | 0.019075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309091 | false | 0 | 0.145455 | 0.163636 | 0.690909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
f8e5ba0ef75849507bac95b412cec3eb859ae720 | 1,234 | py | Python | fom/identity_objects.py | MichalKononenko/FoundationsOfMechanics | d1ca2cc961a98be4761b3938f3a7f58d82daed62 | [
"MIT"
] | null | null | null | fom/identity_objects.py | MichalKononenko/FoundationsOfMechanics | d1ca2cc961a98be4761b3938f3a7f58d82daed62 | [
"MIT"
] | null | null | null | fom/identity_objects.py | MichalKononenko/FoundationsOfMechanics | d1ca2cc961a98be4761b3938f3a7f58d82daed62 | [
"MIT"
] | null | null | null | """
Describes objects
"""
from typing import Generic, Container, TypeVar, Hashable, Collection, Iterator
T = TypeVar('T')
class EmptyContainer(Container[T], Generic[T], Hashable):
"""
Describes an empty container
"""
def __contains__(self, item: object) -> bool:
return False
def __hash__... | 23.730769 | 78 | 0.637763 | 137 | 1,234 | 5.379562 | 0.372263 | 0.054274 | 0.086839 | 0.077341 | 0.211669 | 0.164179 | 0.164179 | 0.116689 | 0.116689 | 0 | 0 | 0.002132 | 0.23987 | 1,234 | 51 | 79 | 24.196078 | 0.783582 | 0.125608 | 0 | 0.28 | 0 | 0 | 0.000975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.04 | 0.32 | 0.88 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
f8f7559ac0422bf9e244554944713ace5f83b752 | 299 | py | Python | kickstart_salt_imports.py | discentem/kickstart-salt | d4a407f8d7449f89912e0759134277bd34cf1b9d | [
"Apache-2.0"
] | 2 | 2019-01-15T17:37:17.000Z | 2019-05-10T14:57:12.000Z | kickstart_salt_imports.py | discentem/kickstart_salt | d4a407f8d7449f89912e0759134277bd34cf1b9d | [
"Apache-2.0"
] | null | null | null | kickstart_salt_imports.py | discentem/kickstart_salt | d4a407f8d7449f89912e0759134277bd34cf1b9d | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import subprocess
import hashlib
import json
import pprint
import sys
import platform
import pathlib
import logging
import yaml
import deep_merge
import requests
if sys.version_info[0] < 3:
import urllib
else:
import urllib.request as urllib
| 15.736842 | 37 | 0.816054 | 44 | 299 | 5.386364 | 0.613636 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.160535 | 299 | 18 | 38 | 16.611111 | 0.936255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.882353 | 0 | 0.882353 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
5d09ebde5a7face50d3914772488e8c4af878e2f | 5,725 | py | Python | CTCI/Chapter 9/Question9_08/change_making.py | aliyah3/Udacity | 3e7a228e65a75501b077e1a9ed033c329e05508e | [
"BSD-3-Clause"
] | 1 | 2020-04-24T22:51:13.000Z | 2020-04-24T22:51:13.000Z | CTCI/Chapter 9/Question9_08/change_making.py | aliyah3/Udacity | 3e7a228e65a75501b077e1a9ed033c329e05508e | [
"BSD-3-Clause"
] | null | null | null | CTCI/Chapter 9/Question9_08/change_making.py | aliyah3/Udacity | 3e7a228e65a75501b077e1a9ed033c329e05508e | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# Author: Victor Terron (c) 2014
# Email: `echo vt2rron1iaa32s | tr 132 @.e`
# License: GNU GPLv3
# 9.8. Given an infinite number of quarters (25 cents), dimes (10 cents),
# nickels (5 cents) and pennies (1 cent), write code to calculate the
# number of ways of representing n cents.
import fun... | 33.479532 | 78 | 0.588996 | 818 | 5,725 | 4.101467 | 0.299511 | 0.451565 | 0.481669 | 0.025335 | 0.020864 | 0.020864 | 0.020864 | 0.020864 | 0 | 0 | 0 | 0.105502 | 0.269869 | 5,725 | 170 | 79 | 33.676471 | 0.697129 | 0.190044 | 0 | 0.015038 | 0 | 0 | 0.001738 | 0 | 0 | 0 | 0 | 0 | 0.759399 | 1 | 0.030075 | false | 0 | 0.015038 | 0 | 0.090226 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d0d4ce4219cb811375fbb0d13b3b1bb36cace22 | 192 | py | Python | ecom/landing/urls.py | archeski/ecom | fb09730146ceb51894cc67fa3411ce4cd1b1b9fb | [
"MIT"
] | null | null | null | ecom/landing/urls.py | archeski/ecom | fb09730146ceb51894cc67fa3411ce4cd1b1b9fb | [
"MIT"
] | 6 | 2020-06-05T18:35:05.000Z | 2022-03-11T23:26:37.000Z | ecom/landing/urls.py | arturkuchynski/ecom | fb09730146ceb51894cc67fa3411ce4cd1b1b9fb | [
"MIT"
] | null | null | null | from django.urls import path
from landing import views
urlpatterns = [
path('', views.landing, name='landing'),
path('subscription-completed/', views.subscribed, name='subscribed'),
] | 27.428571 | 73 | 0.71875 | 22 | 192 | 6.272727 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 192 | 7 | 74 | 27.428571 | 0.831325 | 0 | 0 | 0 | 0 | 0 | 0.207254 | 0.119171 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5d1122d9e7a6068fd23ff56f32de7c21a29b6882 | 1,448 | py | Python | yadage/backends/trivialbackend.py | alintulu/yadage | b03a637f2afa53f5967472e5df7d17b229905e0a | [
"MIT"
] | 14 | 2017-01-09T03:48:51.000Z | 2018-07-03T06:59:11.000Z | yadage/backends/trivialbackend.py | alintulu/yadage | b03a637f2afa53f5967472e5df7d17b229905e0a | [
"MIT"
] | 52 | 2017-05-11T10:12:54.000Z | 2018-06-24T15:52:31.000Z | yadage/backends/trivialbackend.py | alintulu/yadage | b03a637f2afa53f5967472e5df7d17b229905e0a | [
"MIT"
] | 5 | 2019-01-29T10:50:30.000Z | 2020-05-12T14:10:30.000Z | from packtivity.asyncbackends import PacktivityProxyBase
from packtivity import datamodel as _datamodel
class TrivialProxy(PacktivityProxyBase):
"""
A trivial proxy that carries the results and status already
"""
def __init__(self, status, resultdata, datamodel):
self.status = status
... | 25.857143 | 83 | 0.65953 | 151 | 1,448 | 6.245033 | 0.430464 | 0.079533 | 0.089077 | 0.053022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258287 | 1,448 | 55 | 84 | 26.327273 | 0.878026 | 0.129834 | 0 | 0.060606 | 0 | 0 | 0.081367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.060606 | 0.242424 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d118c997860617ec47cdcb4007a962e93253fe8 | 178 | py | Python | read/read/str/readers/bz2.py | vitalfadeev/read | f8893daa732d50bb6f1da94e66d016d5611f1983 | [
"MIT"
] | null | null | null | read/read/str/readers/bz2.py | vitalfadeev/read | f8893daa732d50bb6f1da94e66d016d5611f1983 | [
"MIT"
] | null | null | null | read/read/str/readers/bz2.py | vitalfadeev/read | f8893daa732d50bb6f1da94e66d016d5611f1983 | [
"MIT"
] | null | null | null | import io
import bz2
from . import file_binary
def Reader( f: io.FileIO, url ):
# use bz2 file object
file_object = f
# open bz2
return bz2.open( file_object )
| 16.181818 | 34 | 0.662921 | 28 | 178 | 4.107143 | 0.535714 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.264045 | 178 | 10 | 35 | 17.8 | 0.847328 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5d127c80bfbf10d10023f90828f0f91bc6d614de | 169 | py | Python | signac_dashboard/version.py | glotzerlab/signac-dashboard | 3309103a193904516c830ab5ac7665596d1fd69a | [
"BSD-3-Clause"
] | 16 | 2019-01-31T01:37:27.000Z | 2022-02-21T17:27:00.000Z | signac_dashboard/version.py | glotzerlab/signac-dashboard | 3309103a193904516c830ab5ac7665596d1fd69a | [
"BSD-3-Clause"
] | 64 | 2019-02-04T20:46:07.000Z | 2022-03-30T19:07:07.000Z | signac_dashboard/version.py | glotzerlab/signac-dashboard | 3309103a193904516c830ab5ac7665596d1fd69a | [
"BSD-3-Clause"
] | 3 | 2019-04-02T16:33:27.000Z | 2022-03-01T17:13:24.000Z | # Copyright (c) 2019 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
__version__ = "0.2.8"
| 28.166667 | 62 | 0.751479 | 27 | 169 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.171598 | 169 | 5 | 63 | 33.8 | 0.821429 | 0.822485 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d12ee447c713fdd270b543a9aa1d4d47aef97f6 | 362 | py | Python | src/page_object/elements/table.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 13 | 2016-12-15T22:53:54.000Z | 2022-03-11T03:39:47.000Z | src/page_object/elements/table.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 10 | 2016-11-21T14:45:02.000Z | 2020-06-08T11:49:59.000Z | src/page_object/elements/table.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 11 | 2016-11-21T13:58:43.000Z | 2019-03-05T16:22:00.000Z | from .element import Element
class Table(Element):
"""
Element class to represent HTML Table
"""
def __iter__(self):
return iter(self.row_elements({'css': 'tbody tr'}))
def find_row(self, predicate=None):
if predicate is None:
raise Exception
return next(row f... | 22.625 | 66 | 0.629834 | 48 | 362 | 4.625 | 0.583333 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273481 | 362 | 15 | 67 | 24.133333 | 0.844106 | 0.10221 | 0 | 0 | 0 | 0 | 0.035599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d1cf2f829bfcc49f99a82e1f9023b3fb359b814 | 155 | py | Python | HackerRank/Interview Preparation Kit/Recursion and Backtracking/FibonacciNumbers.py | sawantaditi24/Competitive-Programming | 36e024215d8041c92c5ec78a22561aaa0025f8d2 | [
"MIT"
] | 2 | 2020-06-01T09:16:47.000Z | 2021-09-04T12:39:41.000Z | HackerRank/Interview Preparation Kit/Recursion and Backtracking/FibonacciNumbers.py | sawantaditi24/Competitive-Programming | 36e024215d8041c92c5ec78a22561aaa0025f8d2 | [
"MIT"
] | null | null | null | HackerRank/Interview Preparation Kit/Recursion and Backtracking/FibonacciNumbers.py | sawantaditi24/Competitive-Programming | 36e024215d8041c92c5ec78a22561aaa0025f8d2 | [
"MIT"
] | 2 | 2020-10-21T17:12:05.000Z | 2020-10-27T09:34:57.000Z | def fibonacci(n):
if(n is 0 or n is 1) :
return n
else :
return fibonacci(n-1)+fibonacci(n-2)
n = int(input())
print(fibonacci(n))
| 19.375 | 44 | 0.567742 | 27 | 155 | 3.259259 | 0.518519 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.283871 | 155 | 7 | 45 | 22.142857 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d48127d103d59c0bd61655037fcca67411bc49b | 13,430 | py | Python | barbican/tests/api/controllers/test_secretmeta.py | mail2nsrajesh/barbican | d16d932b77486e9b2f8c6d30e628a6e66517b1a6 | [
"Apache-2.0"
] | 36 | 2017-11-08T23:36:35.000Z | 2022-03-20T16:01:55.000Z | barbican/tests/api/controllers/test_secretmeta.py | mail2nsrajesh/barbican | d16d932b77486e9b2f8c6d30e628a6e66517b1a6 | [
"Apache-2.0"
] | 2 | 2017-11-17T03:19:17.000Z | 2018-07-04T03:37:36.000Z | barbican/tests/api/controllers/test_secretmeta.py | mail2nsrajesh/barbican | d16d932b77486e9b2f8c6d30e628a6e66517b1a6 | [
"Apache-2.0"
] | 12 | 2017-11-13T03:20:40.000Z | 2021-07-16T03:26:41.000Z | # Copyright (c) 2017 IBM
#
# 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, softw... | 37.619048 | 77 | 0.589054 | 1,395 | 13,430 | 5.379211 | 0.129032 | 0.032649 | 0.038113 | 0.037313 | 0.773987 | 0.734009 | 0.715752 | 0.699494 | 0.683369 | 0.662047 | 0 | 0.015764 | 0.319806 | 13,430 | 356 | 78 | 37.724719 | 0.805692 | 0.04557 | 0 | 0.634686 | 0 | 0 | 0.125371 | 0.076941 | 0 | 0 | 0 | 0 | 0.099631 | 1 | 0.066421 | false | 0 | 0.01845 | 0 | 0.103321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
537be8882367387e86b073a9f7ec3bbdf7745e66 | 4,990 | py | Python | trabantsim/progwar/trabant/math.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | trabantsim/progwar/trabant/math.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | trabantsim/progwar/trabant/math.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from math import cos,sin,sqrt,pi,atan2
from random import random
_axis = None
def almosteq(a,b):
return int(((a-b) if a>b else (b-a))*1000) == 0
def rndvec():
return vec3(*[random()*2-1 for _ in range(3)])
def sin2(a):
x = sin(a)
return x*x
def cos2(a):
x = cos(a)
return x*x
def an... | 23.101852 | 94 | 0.608617 | 1,047 | 4,990 | 2.799427 | 0.103152 | 0.069942 | 0.0348 | 0.03753 | 0.489935 | 0.386899 | 0.276697 | 0.230297 | 0.146025 | 0.134425 | 0 | 0.039464 | 0.177355 | 4,990 | 215 | 95 | 23.209302 | 0.674543 | 0.004208 | 0 | 0.226415 | 0 | 0 | 0.011675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.308176 | false | 0 | 0.012579 | 0.188679 | 0.691824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
5392e14c77cce9d5ac11dca47fa921f42581cec4 | 571 | py | Python | example/simplecms/appconfig.py | vinnyrose/django-fluent-contents | 7fa1a58a97099d8e2898a2016bf8abe2ea651b02 | [
"Apache-2.0"
] | null | null | null | example/simplecms/appconfig.py | vinnyrose/django-fluent-contents | 7fa1a58a97099d8e2898a2016bf8abe2ea651b02 | [
"Apache-2.0"
] | null | null | null | example/simplecms/appconfig.py | vinnyrose/django-fluent-contents | 7fa1a58a97099d8e2898a2016bf8abe2ea651b02 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
SIMPLECMS_TEMPLATE_CHOICES = getattr(settings, "SIMPLECMS_TEMPLATE_CHOICES", ())
SIMPLECMS_DEFAULT_TEMPLATE = getattr(settings, "SIMPLECMS_DEFAULT_TEMPLATE", SIMPLECMS_TEMPLATE_CHOICES[0][0] if SIMPLECMS_TEMPLATE_CHOICES else None... | 43.923077 | 150 | 0.837128 | 68 | 571 | 6.735294 | 0.338235 | 0.222707 | 0.31441 | 0.161572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003868 | 0.094571 | 571 | 12 | 151 | 47.583333 | 0.882012 | 0 | 0 | 0 | 0 | 0 | 0.276708 | 0.189142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.