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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1d5f69e5c3fddafacc15af89b5f0eac9dc39002 | 1,681 | py | Python | src/main/resources/project/wsadmin_scripts/create_jdbc_provider.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | null | null | null | src/main/resources/project/wsadmin_scripts/create_jdbc_provider.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | 12 | 2016-09-23T04:42:55.000Z | 2021-04-09T09:59:29.000Z | src/main/resources/project/wsadmin_scripts/create_jdbc_provider.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | 2 | 2016-06-13T07:24:12.000Z | 2018-05-08T12:49:33.000Z | #
# Copyright 2016 Electric Cloud, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 22.716216 | 75 | 0.697204 | 185 | 1,681 | 6.335135 | 0.540541 | 0.051195 | 0.022184 | 0.027304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007072 | 0.158834 | 1,681 | 73 | 76 | 23.027397 | 0.821782 | 0.336704 | 0 | 0.133333 | 0 | 0 | 0.205829 | 0.044627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1e4b25896a66fd72f7fdc21de7b701f62fd3706 | 1,937 | py | Python | google/cloud/monitoring_v3/types/dropped_labels.py | vinbs/python-monitoring | 39b51a2dd4319c3a326bef1c843bb80d3f2ca772 | [
"Apache-2.0"
] | null | null | null | google/cloud/monitoring_v3/types/dropped_labels.py | vinbs/python-monitoring | 39b51a2dd4319c3a326bef1c843bb80d3f2ca772 | [
"Apache-2.0"
] | null | null | null | google/cloud/monitoring_v3/types/dropped_labels.py | vinbs/python-monitoring | 39b51a2dd4319c3a326bef1c843bb80d3f2ca772 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 35.87037 | 74 | 0.738255 | 274 | 1,937 | 5.171533 | 0.547445 | 0.042343 | 0.018349 | 0.022583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00706 | 0.195663 | 1,937 | 53 | 75 | 36.54717 | 0.902439 | 0.802272 | 0 | 0 | 0 | 0 | 0.114187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1f19ac63d25d3c7a341b5e56efc6a76170e219a | 8,757 | py | Python | Access_Sentinel6MF_find_file_by_cycle_pass.py | podaac/sentinel6 | ea203ebab3fdbbfe2b4c399f7a0f54322af18433 | [
"Apache-2.0"
] | 6 | 2021-03-24T18:20:04.000Z | 2022-03-30T12:10:26.000Z | Access_Sentinel6MF_find_file_by_cycle_pass.py | podaac/sentinel6 | ea203ebab3fdbbfe2b4c399f7a0f54322af18433 | [
"Apache-2.0"
] | null | null | null | Access_Sentinel6MF_find_file_by_cycle_pass.py | podaac/sentinel6 | ea203ebab3fdbbfe2b4c399f7a0f54322af18433 | [
"Apache-2.0"
] | 2 | 2021-03-24T19:19:40.000Z | 2022-01-13T03:49:25.000Z | #!/usr/bin/env python3
# # Access Sentinel-6 MF Data using a script
# This script shows a simple way to maintain a local time series of Sentinel-6 data using the [CMR Search API](https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html). It downloads granules the ingested since the previous run to a designated... | 37.909091 | 356 | 0.66838 | 1,209 | 8,757 | 4.789909 | 0.315136 | 0.020204 | 0.024866 | 0.016405 | 0.142808 | 0.13072 | 0.114143 | 0.114143 | 0.104127 | 0.084441 | 0 | 0.00605 | 0.169464 | 8,757 | 230 | 357 | 38.073913 | 0.790183 | 0.428343 | 0 | 0.11215 | 0 | 0 | 0.234958 | 0.050561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0.102804 | 0.140187 | 0 | 0.17757 | 0.158879 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c1f374c3be2127bdaeef0e877233321933695462 | 2,837 | py | Python | Latest/venv/Lib/site-packages/pyface/ui/qt4/splash_screen.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-01-09T20:04:31.000Z | 2022-01-09T20:04:31.000Z | Latest/venv/Lib/site-packages/pyface/ui/qt4/splash_screen.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:01:57.000Z | 2022-03-24T19:48:47.000Z | Latest/venv/Lib/site-packages/pyface/ui/qt4/splash_screen.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | null | null | null | #------------------------------------------------------------------------------
# Copyright (c) 2007, Riverbank Computing Limited
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
# However, when used with the GPL version of PyQt the additional terms described in ... | 31.876404 | 117 | 0.556926 | 284 | 2,837 | 5.447183 | 0.461268 | 0.046542 | 0.027149 | 0.024564 | 0.032321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003884 | 0.183292 | 2,837 | 88 | 118 | 32.238636 | 0.663789 | 0.356715 | 0 | 0 | 0 | 0 | 0.004422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.225806 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de061f8ef236113e6114ec0c9c8473a641dfaccf | 2,667 | py | Python | envs/yumi/goal_vec_env.py | pcchenxi/skew-explore | fee27419a6168711eae23bc803875e36afe56438 | [
"MIT"
] | 3 | 2020-08-17T20:20:08.000Z | 2021-05-25T07:44:35.000Z | envs/yumi/goal_vec_env.py | yqj13777866390/skew-explore | fee27419a6168711eae23bc803875e36afe56438 | [
"MIT"
] | null | null | null | envs/yumi/goal_vec_env.py | yqj13777866390/skew-explore | fee27419a6168711eae23bc803875e36afe56438 | [
"MIT"
] | 1 | 2021-01-10T02:07:27.000Z | 2021-01-10T02:07:27.000Z | import numpy as np
from stable_baselines.common.vec_env import DummyVecEnv, SubprocVecEnv
class GaolDummyVecEnv(DummyVecEnv):
"""
extend the original DummyVecEnv class with function set_goals for goal proposing
"""
def __init__(self, env_fns):
super(GaolDummyVecEnv, self).__init__(env_fns)
... | 43.016129 | 89 | 0.672291 | 373 | 2,667 | 4.533512 | 0.174263 | 0.113542 | 0.095801 | 0.180958 | 0.63631 | 0.63631 | 0.51094 | 0.51094 | 0.51094 | 0.460674 | 0 | 0.008687 | 0.223097 | 2,667 | 61 | 90 | 43.721311 | 0.807432 | 0.188601 | 0 | 0.324324 | 0 | 0 | 0.008011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.054054 | 0.054054 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de0b80e419af4dc6fc3a94037ba0c532fce15f88 | 6,267 | py | Python | core/settings.py | ZeroExistence/blog_moe_ph_api | 03084202631105e7f8d32e3c215399804cd1bcd6 | [
"MIT"
] | null | null | null | core/settings.py | ZeroExistence/blog_moe_ph_api | 03084202631105e7f8d32e3c215399804cd1bcd6 | [
"MIT"
] | null | null | null | core/settings.py | ZeroExistence/blog_moe_ph_api | 03084202631105e7f8d32e3c215399804cd1bcd6 | [
"MIT"
] | null | null | null | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | 27.247826 | 154 | 0.657891 | 676 | 6,267 | 5.871302 | 0.37426 | 0.055682 | 0.034266 | 0.037793 | 0.248425 | 0.248425 | 0.209121 | 0.209121 | 0.18191 | 0.151675 | 0 | 0.007869 | 0.209191 | 6,267 | 229 | 155 | 27.366812 | 0.792978 | 0.162119 | 0 | 0.125 | 1 | 0 | 0.446634 | 0.278692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03125 | 0.0125 | 0 | 0.0125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9ad087156ac3a105145a098808b5c0d80354b64 | 1,014 | py | Python | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | 2 | 2020-12-10T03:10:52.000Z | 2020-12-27T06:17:01.000Z | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | 8 | 2020-12-10T06:38:10.000Z | 2021-05-01T22:27:37.000Z | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | null | null | null | from backend.common_tile import CommonTile
class Mine(CommonTile):
def __init__(self):
super().__init__()
self.production = 1
self.appeal = -1
self.acceptable_terrain = [
'deserth',
'grasslandh',
'plainsh',
'snowh',
'tund... | 26 | 83 | 0.498028 | 91 | 1,014 | 5.274725 | 0.582418 | 0.125 | 0.183333 | 0.075 | 0.1875 | 0.1875 | 0.1875 | 0 | 0 | 0 | 0 | 0.00982 | 0.397436 | 1,014 | 38 | 84 | 26.684211 | 0.775777 | 0.015779 | 0 | 0.058824 | 0 | 0 | 0.106426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9ae07b702ca400980c0c7887914c67d1f04fa3b | 700 | py | Python | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | 1 | 2020-08-21T01:35:09.000Z | 2020-08-21T01:35:09.000Z | # Generated by Django 3.0.5 on 2020-05-14 06:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('interceptor', '0005_auto_20200514_0617'),
]
operations = [
migrations.AddField(
model_name='int... | 28 | 141 | 0.632857 | 72 | 700 | 6.055556 | 0.652778 | 0.055046 | 0.06422 | 0.100917 | 0.224771 | 0.224771 | 0 | 0 | 0 | 0 | 0 | 0.064639 | 0.248571 | 700 | 24 | 142 | 29.166667 | 0.764259 | 0.064286 | 0 | 0.333333 | 1 | 0 | 0.171516 | 0.081164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9af76d2907f1842ce017c5b2767d34090fd37f8 | 471 | py | Python | scripts/sample_data/discourse_1369.py | gmatteo/awesome-panel | 7eb6965f4b3a7eca08c07561e631e5beb189ffd3 | [
"Apache-2.0"
] | 179 | 2019-12-04T14:54:53.000Z | 2022-03-30T09:08:38.000Z | scripts/sample_data/discourse_1369.py | hbueno/awesome-panel | fb27bcaf265cef1278cfa0c78799fbbf6c9a6834 | [
"Apache-2.0"
] | 62 | 2019-12-14T16:51:28.000Z | 2022-03-19T18:47:12.000Z | scripts/sample_data/discourse_1369.py | hbueno/awesome-panel | fb27bcaf265cef1278cfa0c78799fbbf6c9a6834 | [
"Apache-2.0"
] | 35 | 2019-12-08T13:19:53.000Z | 2022-03-25T10:33:02.000Z | import panel as pn
def test_alert():
my_alert = pn.pane.Alert("foo", alert_type="primary")
my_button = pn.widgets.Button(name="Toggle")
def toggle(event):
if my_alert.alert_type == "primary":
my_alert.alert_type == "success"
else:
my_alert.alert_type = "... | 22.428571 | 58 | 0.609342 | 64 | 471 | 4.203125 | 0.390625 | 0.182156 | 0.178439 | 0.237918 | 0.223048 | 0.223048 | 0.223048 | 0 | 0 | 0 | 0 | 0 | 0.271762 | 471 | 20 | 59 | 23.55 | 0.784257 | 0 | 0 | 0 | 0 | 0 | 0.08204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9b193c08d4e2b54525ea95fb1e1ee7312be2f54 | 372 | py | Python | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-10 23:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order_status', '0003_alter_orderstatus_bought_by'),
]
operations = [
migrations.AlterModelOptions(
name='orderstatus',
optio... | 20.666667 | 61 | 0.61828 | 38 | 372 | 5.894737 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069343 | 0.263441 | 372 | 17 | 62 | 21.882353 | 0.748175 | 0.120968 | 0 | 0 | 1 | 0 | 0.230769 | 0.098462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9b485b811b7ea730f833299f86e192dd1517845 | 1,426 | py | Python | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | null | null | null | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | null | null | null | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | 1 | 2020-06-27T11:12:21.000Z | 2020-06-27T11:12:21.000Z | # ------------------------------------------------------------------------
# coding=utf-8
# $Id$
# ------------------------------------------------------------------------
from django.core.management.base import NoArgsCommand
from django.db import transaction
from feincms.module.page.models import Page
class Command... | 31.688889 | 86 | 0.557504 | 165 | 1,426 | 4.69697 | 0.551515 | 0.030968 | 0.061935 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005639 | 0.253857 | 1,426 | 45 | 87 | 31.688889 | 0.722744 | 0.138149 | 0 | 0 | 0 | 0 | 0.134842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9b8dcffe0bf3a7f1f0315dd52f8c586577a6eeb | 3,503 | py | Python | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 5 | 2017-08-19T23:38:14.000Z | 2021-02-08T23:23:57.000Z | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 2 | 2015-10-31T19:54:37.000Z | 2018-06-05T21:47:12.000Z | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 5 | 2020-02-11T14:55:43.000Z | 2021-10-08T13:41:25.000Z | #!/usr/bin/env python
from optparse import OptionParser, SUPPRESS_HELP
import glob, os, time, subprocess, sys
################################################################################
# train_all.py
#
# Run train_gbk in parallel on the gbk files defined by the glob
##############################################... | 36.113402 | 161 | 0.489009 | 403 | 3,503 | 4.114144 | 0.349876 | 0.027141 | 0.045235 | 0.041616 | 0.132087 | 0.114596 | 0.059107 | 0.059107 | 0.059107 | 0.059107 | 0 | 0.005527 | 0.225236 | 3,503 | 96 | 162 | 36.489583 | 0.60538 | 0.101627 | 0 | 0.109091 | 0 | 0 | 0.198341 | 0.009087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9baeece1ff7b0efd040bc3d5f266b8de85277ad | 711 | py | Python | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 1 | 2021-01-11T06:30:44.000Z | 2021-01-11T06:30:44.000Z | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 23 | 2020-02-12T02:35:49.000Z | 2022-02-11T03:45:40.000Z | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 2 | 2020-04-08T15:39:46.000Z | 2020-10-10T10:13:09.000Z | class Fjs(object):
def __init__(self, name):
self.name = name
def hello(self):
print("said by : ", self.name)
def __getattr__(self, item):
print("访问了特性1:" + item)
return None
raise AttributeError
def __setattr__(self, key, value):
print("访问... | 20.314286 | 51 | 0.516174 | 78 | 711 | 4.397436 | 0.371795 | 0.069971 | 0.075802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01165 | 0.275668 | 711 | 35 | 52 | 20.314286 | 0.654369 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0 | 0.380952 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9baf5b8fb6aa410e1d594792ef195718d84e1d0 | 3,679 | py | Python | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | 2 | 2019-12-04T05:36:40.000Z | 2020-01-20T06:52:20.000Z | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | 9 | 2021-04-08T21:59:16.000Z | 2022-03-12T00:48:24.000Z | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
sys.path.insert(0, os.path.join(BASE_DIR, 'extra_apps'))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'l==+c9e&r^#@%... | 23.735484 | 91 | 0.642838 | 368 | 3,679 | 6.266304 | 0.494565 | 0.084562 | 0.051605 | 0.030356 | 0.133998 | 0.112749 | 0.026886 | 0.026886 | 0.026886 | 0 | 0 | 0.012418 | 0.212014 | 3,679 | 155 | 92 | 23.735484 | 0.783029 | 0.148954 | 0 | 0.039604 | 0 | 0.019802 | 0.48439 | 0.337625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.059406 | 0.029703 | 0 | 0.029703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a9bb0ce38a5e1cd7f5653a82cd103752babbcf87 | 1,686 | py | Python | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | '''
Restore configuration model.
'''
from typing import Any, Dict, Literal, Optional, Union
from pydantic import NonNegativeInt, validator
from .configuration import Configuration
class RestoreConfiguration(Configuration):
'''
Restore configuration model.
'''
#: Configuration type.
type: Liter... | 27.639344 | 98 | 0.627521 | 162 | 1,686 | 6.481481 | 0.388889 | 0.074286 | 0.148571 | 0.161905 | 0.177143 | 0.08381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265718 | 1,686 | 60 | 99 | 28.1 | 0.848142 | 0.333333 | 0 | 0.115385 | 0 | 0 | 0.116601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9bfb46007f2c7a7b605b92de35a99c3a1fced0d | 1,306 | py | Python | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | 9 | 2021-09-01T05:54:01.000Z | 2021-11-03T08:32:21.000Z | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | null | null | null | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | null | null | null | import unittest
from wrangl import metrics as M
class TestMetrics(unittest.TestCase):
def test_accuracy(self):
m = M.Accuracy()
self.assertTrue(m.single_forward('foo', 'foo'))
self.assertFalse(m.single_forward('foo', 'bar'))
self.assertDictEqual(dict(accuracy=0.5), m.forward([('fo... | 40.8125 | 113 | 0.542879 | 217 | 1,306 | 3.211982 | 0.170507 | 0.034433 | 0.05165 | 0.129125 | 0.472023 | 0.472023 | 0.472023 | 0.472023 | 0.472023 | 0.444763 | 0 | 0.104536 | 0.223583 | 1,306 | 31 | 114 | 42.129032 | 0.58284 | 0 | 0 | 0 | 0 | 0 | 0.018377 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9c994abd4d5787cc770b409bf0ea0c4399fdfc2 | 8,783 | py | Python | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 3 | 2021-03-29T13:28:31.000Z | 2021-10-12T09:33:14.000Z | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | null | null | null | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 1 | 2021-04-05T10:19:34.000Z | 2021-04-05T10:19:34.000Z | import os
import ssl
import ipaddress
import hashlib
from ipaddress import *
import asyncio
import pyminizip
import base64
import datetime
from time import gmtime, strftime
from aiohttp import web
import urllib.parse
from shutil import copyfile
import sys
import pycdlib
from io import BytesIO
stage0UrlPrefix = '/doc... | 30.496528 | 151 | 0.648981 | 1,102 | 8,783 | 5.125227 | 0.217786 | 0.022309 | 0.042139 | 0.029745 | 0.434313 | 0.354639 | 0.337465 | 0.327727 | 0.285234 | 0.248584 | 0 | 0.022405 | 0.181829 | 8,783 | 287 | 152 | 30.602787 | 0.763568 | 0.096095 | 0 | 0.305699 | 0 | 0.005181 | 0.174852 | 0.009469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020725 | false | 0.062176 | 0.088083 | 0 | 0.207254 | 0.036269 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a9e1cd974191f082d23c243943f48186cd1b8939 | 526 | py | Python | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | # 导入图像读取第三方库
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import cv2
import numpy as np
from PIL import Image
import paddle
import paddle.fluid as fluid
from paddle.fluid.dygraph.nn import Linear
# 读取图像
img1 = cv2.imread('./work/example_0.png')
example = mpimg.imread('./work/example_0.png')
# 显示图像
... | 21.04 | 52 | 0.745247 | 87 | 526 | 4.471264 | 0.436782 | 0.084833 | 0.092545 | 0.115681 | 0.205656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021322 | 0.108365 | 526 | 24 | 53 | 21.916667 | 0.808102 | 0.038023 | 0 | 0.222222 | 0 | 0 | 0.122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9e2d4d4133cf7c6e57e29e82707a4430f60649a | 253 | py | Python | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | input()
num = set(map(int,input().split()))
prime = set([i for i in range(3,max(num)+1,2)])
for i in range(3,max(num)+1,2):
if i in prime:
prime -= set([i for i in range(i*2,max(num)+1,i)])
prime.add(2)
print(len(num.intersection(prime))) | 23 | 58 | 0.604743 | 53 | 253 | 2.886792 | 0.377358 | 0.078431 | 0.117647 | 0.215686 | 0.45098 | 0.45098 | 0.45098 | 0.261438 | 0.261438 | 0 | 0 | 0.042654 | 0.166008 | 253 | 11 | 59 | 23 | 0.682464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9ebdaac7c9edcbc0581cbaab45f4e0459e8dc59 | 2,237 | py | Python | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | """
Demo of system identification on an inverted pendulum, using one step dynamics.
@author: David Fridovich-Keil
@email: dfk@eecs.berkeley.edu
"""
import gym
import tensorflow as tf
from mbrl.dynamics.dynamics import Dynamics
import numpy as np
import pickle
# Make a gym environment.
env = gym.make("Pendulum-v0")
ST... | 32.897059 | 89 | 0.614215 | 302 | 2,237 | 4.370861 | 0.397351 | 0.075 | 0.045455 | 0.066667 | 0.134091 | 0.07803 | 0.056061 | 0.056061 | 0 | 0 | 0 | 0.024104 | 0.27671 | 2,237 | 67 | 90 | 33.38806 | 0.791718 | 0 | 0 | 0 | 0 | 0 | 0.021875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9ef792277870cfcaf48a94f7940475b75c67fba | 2,572 | py | Python | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | import os
import time
import json
from PIL import Image
from .TargetDetection import *
from .ShapeDetection import *
from .Classifiers import *
class IntegratedImageProcessing(object):
@staticmethod
def run_integrated_image_processing(target_map_path, image_save_path, json_save_path):
target_detected ... | 46.763636 | 153 | 0.681182 | 321 | 2,572 | 4.993769 | 0.249221 | 0.084217 | 0.089832 | 0.07486 | 0.401123 | 0.252651 | 0.179039 | 0.111042 | 0.05864 | 0 | 0 | 0.010714 | 0.237947 | 2,572 | 54 | 154 | 47.62963 | 0.807143 | 0 | 0 | 0 | 0 | 0 | 0.078927 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9f04252a302db8ac6cb5f5e61ef42ac88be493e | 645 | py | Python | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 26 | 2018-12-03T23:02:56.000Z | 2020-08-07T06:33:21.000Z | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | null | null | null | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 5 | 2019-08-10T11:10:59.000Z | 2020-11-18T02:39:37.000Z | import numpy as np
import pytest
import pytoolkit as tk
def test_load_voc_od_split(data_dir):
ds = tk.datasets.load_voc_od_split(data_dir / "od", split="train")
assert len(ds) == 3
assert tuple(ds.metadata["class_names"]) == ("~", "〇")
ann = ds.labels[0]
assert ann.path == (data_dir / "od" / "JP... | 29.318182 | 77 | 0.609302 | 99 | 645 | 3.858586 | 0.494949 | 0.141361 | 0.04712 | 0.073298 | 0.109948 | 0.109948 | 0 | 0 | 0 | 0 | 0 | 0.079523 | 0.220155 | 645 | 21 | 78 | 30.714286 | 0.677932 | 0 | 0 | 0 | 0 | 0 | 0.058915 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7049881e61b190ec535a5a8eb9c0a17246cf92b | 976 | py | Python | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 17 | 2015-10-14T09:44:38.000Z | 2021-02-19T16:45:32.000Z | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | null | null | null | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 8 | 2015-09-07T16:29:37.000Z | 2020-08-08T05:43:12.000Z | import gensim
import sys
import glob
import codecs
from nltk.tokenize import RegexpTokenizer
import glob
import sys
class CorpusReader():
"""
Reads corpus from gzip file.
"""
def __init__(self, files):
if isinstance(files, str):
self.files = [files]
else:
self... | 21.217391 | 96 | 0.619877 | 124 | 976 | 4.790323 | 0.596774 | 0.060606 | 0.053872 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018284 | 0.271516 | 976 | 45 | 97 | 21.688889 | 0.817159 | 0 | 0 | 0.142857 | 0 | 0 | 0.053856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.25 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7061d8b63919b39dccb98d1bd784faf7195d2c9 | 3,797 | py | Python | gchaos/gae/datastore/latency.py | RealKinetic/echoes | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | null | null | null | gchaos/gae/datastore/latency.py | RealKinetic/echoes | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | 1 | 2017-01-16T01:15:37.000Z | 2017-01-16T01:15:37.000Z | gchaos/gae/datastore/latency.py | RealKinetic/gchaos | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 Real Kinetic
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, p... | 28.984733 | 80 | 0.703713 | 538 | 3,797 | 4.905204 | 0.356877 | 0.033346 | 0.013642 | 0.021599 | 0.049261 | 0.043956 | 0.022736 | 0.022736 | 0 | 0 | 0 | 0.006563 | 0.237556 | 3,797 | 130 | 81 | 29.207692 | 0.905009 | 0.640769 | 0 | 0.142857 | 0 | 0 | 0.046036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.2 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e70a05c0d2d574b75d4d1e02c12423cafe0f94e7 | 6,706 | py | Python | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 3 | 2021-07-15T22:58:00.000Z | 2022-02-18T17:42:00.000Z | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 1 | 2021-10-01T17:52:49.000Z | 2021-10-01T17:52:49.000Z | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | null | null | null | # Importando uma função que muda cor de textos no terminal, criada em outro arquivo
from ferramentas.create_db import Vagas
from .utilidades import textoCor
"""
Módulo de funções para validação de alguns dados como Nomes, CPFs e Datas de nascimento.
NOTA: Todas as funções são parecidas e utilizam o mesmo princípio.
... | 37.049724 | 117 | 0.547122 | 724 | 6,706 | 5.066298 | 0.303867 | 0.023991 | 0.026172 | 0.018539 | 0.413304 | 0.38904 | 0.343784 | 0.3247 | 0.295802 | 0.21783 | 0 | 0.010495 | 0.389055 | 6,706 | 180 | 118 | 37.255556 | 0.884794 | 0.276618 | 0 | 0.605263 | 0 | 0 | 0.157032 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.035088 | false | 0.035088 | 0.017544 | 0 | 0.114035 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e70bd9ff19d7c1e7715ff79da9a08db0f6d91132 | 1,931 | py | Python | possible-new-sites/web.py | purrcat259/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | 1 | 2019-10-17T08:26:19.000Z | 2019-10-17T08:26:19.000Z | possible-new-sites/web.py | simonamdev/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | null | null | null | possible-new-sites/web.py | simonamdev/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | null | null | null | import argparse
from flask import Flask, render_template, redirect, jsonify
from data import DataRetriever
from flask import request
from gevent.pywsgi import WSGIServer
app = Flask(__name__)
data_retriever = DataRetriever()
def parse_distance(amount):
return round(float(amount), 2)
@app.route('/')
def index... | 31.145161 | 125 | 0.655101 | 230 | 1,931 | 5.334783 | 0.356522 | 0.116544 | 0.146699 | 0.176039 | 0.309698 | 0.267319 | 0.267319 | 0.267319 | 0.267319 | 0.267319 | 0 | 0.015219 | 0.183325 | 1,931 | 61 | 126 | 31.655738 | 0.762841 | 0.242879 | 0 | 0 | 0 | 0 | 0.099448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.027778 | 0.138889 | 0.055556 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7101a3393fb1a65a444e9c370f127ccf4bbb2a5 | 2,608 | py | Python | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null |
import logging
from arango.exceptions import (
CollectionCreateError
)
from multichaindb import backend
from multichaindb.backend.localarangodb.connection import LocalArangoDBConnection
from multichaindb.backend.utils import module_dispatch_registrar
logger = logging.getLogger(__name__)
register_schema = module... | 32.6 | 81 | 0.654525 | 290 | 2,608 | 5.731034 | 0.306897 | 0.057762 | 0.030084 | 0.048135 | 0.197353 | 0.12154 | 0.049338 | 0.049338 | 0.049338 | 0 | 0 | 0 | 0.19862 | 2,608 | 80 | 82 | 32.6 | 0.795215 | 0.060199 | 0 | 0.21875 | 0 | 0 | 0.198692 | 0.023712 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.0625 | false | 0 | 0.078125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e715fe36ce118ed2d7e09d33b151a9028f461145 | 2,274 | py | Python | robot/autonomous/replay.py | frc1418/2018-robot | 7415c14c4e4a64432a07b77292fd6e332606103e | [
"MIT"
] | 1 | 2018-12-16T12:50:20.000Z | 2018-12-16T12:50:20.000Z | robot/autonomous/replay.py | frc1418/2018-robot | 7415c14c4e4a64432a07b77292fd6e332606103e | [
"MIT"
] | 4 | 2019-01-06T22:16:05.000Z | 2019-01-20T03:11:16.000Z | robot/autonomous/replay.py | frc1418/2018-robot | 7415c14c4e4a64432a07b77292fd6e332606103e | [
"MIT"
] | 2 | 2018-12-04T20:34:40.000Z | 2020-01-21T20:27:38.000Z | from magicbot.state_machine import state, AutonomousStateMachine
from magicbot import tunable
from networktables.util import ntproperty
from components import drive, arm
import json
class Replay(AutonomousStateMachine):
"""
Replay recorded control input.
"""
MODE_NAME = 'Replay'
DEFAULT = False
... | 32.956522 | 157 | 0.616974 | 267 | 2,274 | 5.23221 | 0.393258 | 0.093057 | 0.108805 | 0.131711 | 0.300644 | 0.267717 | 0.201145 | 0.141732 | 0.141732 | 0.074445 | 0 | 0.011118 | 0.248461 | 2,274 | 68 | 158 | 33.441176 | 0.806319 | 0.211961 | 0 | 0.055556 | 0 | 0 | 0.113555 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e71b359c0d67494c780e13cabfa597df168f9567 | 480 | py | Python | tests/test_cars.py | remi2257/little-car-ai | 006f2f515d46dd9e94457c191f017a9f3d749fa8 | [
"MIT"
] | 2 | 2020-11-07T15:29:42.000Z | 2022-01-18T08:59:00.000Z | tests/test_cars.py | remi2257/little-car-ai | 006f2f515d46dd9e94457c191f017a9f3d749fa8 | [
"MIT"
] | null | null | null | tests/test_cars.py | remi2257/little-car-ai | 006f2f515d46dd9e94457c191f017a9f3d749fa8 | [
"MIT"
] | null | null | null | from src.objects.Track import Track
from src.usesful_func import start_pygame_headless
start_pygame_headless()
track = Track("tracks/tiny.tra")
def test_car_human():
from src.cars.CarHuman import CarHuman
car = CarHuman(track)
assert car
def test_car_ai():
from src.cars.CarAI import CarAI
fr... | 19.2 | 56 | 0.7375 | 71 | 480 | 4.816901 | 0.43662 | 0.102339 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 480 | 24 | 57 | 20 | 0.863636 | 0 | 0 | 0.142857 | 0 | 0 | 0.08125 | 0.05 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e71cb678c34fd8498316b8548a75c980f7e64e79 | 1,869 | py | Python | api_advertisements/migrations/0001_initial.py | alex-fullstack/goods | e23f81389f868316d48095a2ce83209c9f255232 | [
"MIT"
] | null | null | null | api_advertisements/migrations/0001_initial.py | alex-fullstack/goods | e23f81389f868316d48095a2ce83209c9f255232 | [
"MIT"
] | null | null | null | api_advertisements/migrations/0001_initial.py | alex-fullstack/goods | e23f81389f868316d48095a2ce83209c9f255232 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-03 11:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Photo',
fields=[
... | 40.630435 | 114 | 0.572499 | 185 | 1,869 | 5.648649 | 0.4 | 0.03445 | 0.07177 | 0.066029 | 0.362679 | 0.362679 | 0.362679 | 0.286124 | 0.286124 | 0.286124 | 0 | 0.018059 | 0.288925 | 1,869 | 45 | 115 | 41.533333 | 0.768247 | 0.024077 | 0 | 0.5 | 1 | 0 | 0.092755 | 0.025247 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e71df5994266dd259ea2d040f060832e1c15662a | 716 | py | Python | outerJoin.py | eyalsus/python-fun | 869315a513561e5a762ce44b65887c35c328cb37 | [
"MIT"
] | null | null | null | outerJoin.py | eyalsus/python-fun | 869315a513561e5a762ce44b65887c35c328cb37 | [
"MIT"
] | null | null | null | outerJoin.py | eyalsus/python-fun | 869315a513561e5a762ce44b65887c35c328cb37 | [
"MIT"
] | null | null | null | import pandas as pd
def leftOuterJoin(left_df, right_df, key):
right_df['tmp'] = '@'
join_df = left_df.merge(right_df[['tmp', key]], how='left', on=key)
join_df = join_df[pd.isnull(join_df['tmp'])]
join_df.drop('tmp', axis=1, inplace=True)
right_df.drop('tmp', axis=1, inplace=True)
return join_... | 34.095238 | 96 | 0.648045 | 121 | 716 | 3.636364 | 0.338843 | 0.095455 | 0.05 | 0.059091 | 0.368182 | 0.213636 | 0.113636 | 0 | 0 | 0 | 0 | 0.052117 | 0.142458 | 716 | 20 | 97 | 35.8 | 0.664495 | 0 | 0 | 0 | 0 | 0 | 0.046089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e72248ccaed00f614ecfd4987c6c67cfadadfcba | 3,008 | py | Python | transform/gmb.py | lievcin/ner_tagger | 25824814de9a9998ad28198c8e5f76e2c8a1eb26 | [
"Apache-2.0"
] | null | null | null | transform/gmb.py | lievcin/ner_tagger | 25824814de9a9998ad28198c8e5f76e2c8a1eb26 | [
"Apache-2.0"
] | null | null | null | transform/gmb.py | lievcin/ner_tagger | 25824814de9a9998ad28198c8e5f76e2c8a1eb26 | [
"Apache-2.0"
] | null | null | null | import os
import csv
from utils import check_dir, make_sentences
import numpy as np
import pandas as pd
def transform(source_path):
rows = []
sentence_count = 1
new_sentence=True
for root, __subFolders, files in os.walk(source_path):
for file in files:
if file.endswith('.tags'):
... | 43.594203 | 118 | 0.642287 | 431 | 3,008 | 4.294664 | 0.299304 | 0.063209 | 0.073474 | 0.08644 | 0.374932 | 0.34792 | 0.249595 | 0.137223 | 0.137223 | 0.076715 | 0 | 0.008204 | 0.230053 | 3,008 | 69 | 119 | 43.594203 | 0.791019 | 0.095745 | 0 | 0.153846 | 0 | 0 | 0.149116 | 0.10972 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.038462 | false | 0 | 0.096154 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e726eeeb7dc6281a3fd3249127d72c8dbc4e9b9d | 936 | py | Python | codenerix/migrations/0021_auto_20171218_1039.py | centrologic/django-codenerix | 136d3cab1a19d2dfac810f902e3fcb5ea94e13ba | [
"Apache-2.0"
] | 28 | 2017-02-25T01:39:34.000Z | 2018-01-22T21:48:10.000Z | codenerix/migrations/0021_auto_20171218_1039.py | codenerix/django-codenerix | 1fc2edb451c5cf2359e243d860940876af0cf575 | [
"Apache-2.0"
] | 4 | 2018-04-11T10:19:08.000Z | 2020-02-29T18:54:36.000Z | codenerix/migrations/0021_auto_20171218_1039.py | centrologic/django-codenerix | 136d3cab1a19d2dfac810f902e3fcb5ea94e13ba | [
"Apache-2.0"
] | 6 | 2017-03-10T12:00:02.000Z | 2017-11-22T20:15:42.000Z | # Generated by Django 2.0 on 2017-12-18 09:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('codenerix', '0020_remotelog'),
]
operations = [
migrations.AddField(
... | 30.193548 | 136 | 0.621795 | 101 | 936 | 5.643564 | 0.485149 | 0.084211 | 0.049123 | 0.077193 | 0.312281 | 0.312281 | 0.312281 | 0.312281 | 0.312281 | 0.312281 | 0 | 0.034483 | 0.25641 | 936 | 30 | 137 | 31.2 | 0.784483 | 0.04594 | 0 | 0.458333 | 1 | 0 | 0.089787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7275d5d85bc1f6c9b0854a1dcb76d3bdaec9f9c | 598 | py | Python | notebook/algorithm/template.py | qixiuai/BCGHeart | b1127fa4420b658308acd883bc11945b7fcac4df | [
"MIT"
] | null | null | null | notebook/algorithm/template.py | qixiuai/BCGHeart | b1127fa4420b658308acd883bc11945b7fcac4df | [
"MIT"
] | null | null | null | notebook/algorithm/template.py | qixiuai/BCGHeart | b1127fa4420b658308acd883bc11945b7fcac4df | [
"MIT"
] | null | null | null |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
def find_template(signal, rr):
return signal[200:400]
def conv(signal, template):
scores = []
template_length = len(template)
signal_length = len(signal)
for ind in ... | 19.290323 | 65 | 0.705686 | 77 | 598 | 5.103896 | 0.467532 | 0.142494 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019068 | 0.210702 | 598 | 30 | 66 | 19.933333 | 0.813559 | 0 | 0 | 0.105263 | 0 | 0 | 0.013423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.105263 | 0.210526 | 0.052632 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e729fdcdadec47d464face84e545e740a24e49b1 | 2,239 | py | Python | setup.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | 4 | 2021-12-07T12:30:44.000Z | 2022-03-26T13:38:25.000Z | setup.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | 12 | 2021-11-15T23:06:27.000Z | 2022-03-28T15:46:55.000Z | setup.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | 1 | 2021-12-07T13:28:40.000Z | 2021-12-07T13:28:40.000Z | #!/usr/bin/env python3
import os
import pathlib
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
class CMakeExtension(Extension):
"""
Stub class to distinguish between default extensions and CMake
extensions (which contain no sources as these are listed in the
CMakeLists... | 28.705128 | 78 | 0.718624 | 311 | 2,239 | 5.009646 | 0.440514 | 0.041078 | 0.048139 | 0.040436 | 0.084082 | 0.06932 | 0 | 0 | 0 | 0 | 0 | 0.018558 | 0.15766 | 2,239 | 78 | 79 | 28.705128 | 0.806999 | 0.116123 | 0 | 0 | 0 | 0 | 0.15282 | 0.032141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e72a0ca6b792e14e75fd2eecb3abfa32cab566a5 | 19,071 | py | Python | tests/test_superelasticsearch.py | wingify/superelasticsearch | 3e6d5d7661d95e1e9207b84ae05310e313f8fd09 | [
"MIT"
] | 69 | 2015-10-09T19:55:38.000Z | 2021-11-09T13:39:44.000Z | tests/test_superelasticsearch.py | wingify/superelasticsearch | 3e6d5d7661d95e1e9207b84ae05310e313f8fd09 | [
"MIT"
] | null | null | null | tests/test_superelasticsearch.py | wingify/superelasticsearch | 3e6d5d7661d95e1e9207b84ae05310e313f8fd09 | [
"MIT"
] | 7 | 2015-10-26T08:00:46.000Z | 2020-09-03T15:16:31.000Z | import functools
import json
import logging
import os
import time
from copy import deepcopy
from datadiff.tools import assert_equal as assertDictEquals
from elasticsearch import Elasticsearch, ElasticsearchException, TransportError
from mock import Mock
from random import randint
from superelasticsearch import SuperE... | 41.012903 | 80 | 0.566619 | 2,041 | 19,071 | 5.018128 | 0.119059 | 0.041008 | 0.027924 | 0.038079 | 0.685218 | 0.640207 | 0.612087 | 0.591779 | 0.56571 | 0.538274 | 0 | 0.020562 | 0.326779 | 19,071 | 464 | 81 | 41.101293 | 0.777163 | 0.029679 | 0 | 0.522788 | 0 | 0 | 0.082274 | 0.005626 | 0 | 0 | 0 | 0 | 0.211796 | 0 | null | null | 0.002681 | 0.042895 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e731eea223ba49e889915de1e8f4b5bd9d13dbc0 | 11,833 | py | Python | Working CNN Boi v2.py | hlal1/Bebop-Autonomous-Control | 9cfd5f7475d828fbc932baf70eaeccafcdf48970 | [
"MIT"
] | 2 | 2018-12-02T04:17:18.000Z | 2018-12-18T10:56:10.000Z | Working CNN Boi v2.py | hlal1/Bebop-Autonomous-Control | 9cfd5f7475d828fbc932baf70eaeccafcdf48970 | [
"MIT"
] | null | null | null | Working CNN Boi v2.py | hlal1/Bebop-Autonomous-Control | 9cfd5f7475d828fbc932baf70eaeccafcdf48970 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[2]:
import os
import numpy as np
import pylab
import imageio
from matplotlib import pyplot as plt
import cv2
import time
from os.path import isfile, join
from keras.applications import mobilenet
from keras.models import load_model
from scipy.ndimage.measurements import label
from scipy.ndimage.... | 31.139474 | 141 | 0.604073 | 2,144 | 11,833 | 3.245336 | 0.170243 | 0.104053 | 0.136677 | 0.159241 | 0.240443 | 0.194165 | 0.173469 | 0.17117 | 0.164128 | 0.146019 | 0 | 0.126925 | 0.297558 | 11,833 | 379 | 142 | 31.221636 | 0.710178 | 0.232147 | 0 | 0.195349 | 0 | 0 | 0.028963 | 0.008466 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074419 | null | null | 0.051163 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e73b2f86358193465bc83dd50ac16ed7ccbafd76 | 891 | py | Python | import_plotting_nmr.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | import_plotting_nmr.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | import_plotting_nmr.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 10 12:19:15 2017
@author: se359
"""
# Imports
import numpy as np
import matplotlib.pyplot as plt
#data import
n, I, f, delta = np.loadtxt('nmr.txt', skiprows=1, delimiter=',', unpack=True)
# Create a new figure of size 8x6 points, using 100 dots per inch
... | 21.731707 | 79 | 0.656566 | 155 | 891 | 3.767742 | 0.6 | 0.010274 | 0.034247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079057 | 0.190797 | 891 | 41 | 80 | 21.731707 | 0.730929 | 0.609428 | 0 | 0 | 0 | 0 | 0.045614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7414b75773d5f23523a5725a52f49a652ee856f | 6,602 | py | Python | resources/src/mythbox/pool.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | null | null | null | resources/src/mythbox/pool.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 1 | 2015-04-24T02:24:31.000Z | 2015-04-24T02:24:33.000Z | resources/src/mythbox/pool.py | GetSomeBlocks/Score_Soccer | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 2 | 2018-04-17T17:34:39.000Z | 2020-07-26T03:43:33.000Z | #
# MythBox for XBMC - http://mythbox.googlecode.com
# Copyright (C) 2010 analogue@yahoo.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at yo... | 32.522167 | 112 | 0.588761 | 761 | 6,602 | 5.072273 | 0.31406 | 0.025389 | 0.046632 | 0.021762 | 0.234974 | 0.176166 | 0.112435 | 0.101554 | 0.048705 | 0.03057 | 0 | 0.006211 | 0.317177 | 6,602 | 202 | 113 | 32.683168 | 0.850044 | 0.188428 | 0 | 0.352941 | 0 | 0 | 0.069229 | 0 | 0 | 0 | 0 | 0.004951 | 0 | 0 | null | null | 0 | 0.036765 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e74b959f80a4277f2b2304174fc6600cf9953045 | 1,193 | py | Python | DAA_Assi.py | scorpion-11/2D_array_clustering | 0cf91097aa5fae6145d408c1e8896e562545b561 | [
"MIT"
] | null | null | null | DAA_Assi.py | scorpion-11/2D_array_clustering | 0cf91097aa5fae6145d408c1e8896e562545b561 | [
"MIT"
] | null | null | null | DAA_Assi.py | scorpion-11/2D_array_clustering | 0cf91097aa5fae6145d408c1e8896e562545b561 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 3 14:53:06 2019
@author: ISHA
"""
arr = [
[ 'XYZ', 1, 88, 56, 45],
[ 'ABC', 2, 45, 86, 52],
[ 'LMN', 3, 87, 39, 40],
[ 'QWS', 4, 96, 86, 85],
[ 'TRE', 5, 76, 56, 53],
[ 'UTH', 6, 35, 79, 48],
[ ... | 27.744186 | 63 | 0.396479 | 160 | 1,193 | 2.95625 | 0.54375 | 0.088795 | 0.063425 | 0.082452 | 0.071882 | 0.071882 | 0 | 0 | 0 | 0 | 0 | 0.126138 | 0.355407 | 1,193 | 43 | 64 | 27.744186 | 0.488947 | 0.102263 | 0 | 0.178571 | 0 | 0.107143 | 0.2895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e74bba43ddf663d48855498cb395dee905054ca7 | 192 | py | Python | text/color/__init__.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/color/__init__.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/color/__init__.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*graphical color*
Spectral color measures.
"""
# from ._color import Color
# from ._rgb import Rgba
# from ._hsv import Hsba
__all__ = [
"Color",
"Rgba",
"Hsba",
]
| 10.105263 | 27 | 0.583333 | 21 | 192 | 5 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276042 | 192 | 18 | 28 | 10.666667 | 0.755396 | 0.604167 | 0 | 0 | 0 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7507f0a40fe693ee905998ecfffefb63965f98e | 5,243 | py | Python | xen/xen-4.2.2/tools/python/xen/xend/XendDPCI.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/python/xen/xend/XendDPCI.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/python/xen/xend/XendDPCI.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #============================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope th... | 31.584337 | 78 | 0.586687 | 601 | 5,243 | 4.966722 | 0.284526 | 0.044221 | 0.037521 | 0.028141 | 0.111893 | 0.084422 | 0.042881 | 0 | 0 | 0 | 0 | 0.011179 | 0.283426 | 5,243 | 165 | 79 | 31.775758 | 0.783338 | 0.202174 | 0 | 0.055046 | 0 | 0 | 0.061269 | 0 | 0 | 0 | 0 | 0.006061 | 0 | 0 | null | null | 0 | 0.073395 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e752623f8b85b648901f73070fbd56e8b7f3b57a | 578 | py | Python | studio/nuke/init.py | astips/tk-astips-app-url-resolver | fd1a5d49d1ef1590a05ad640fb4f74a9579721ab | [
"MIT"
] | null | null | null | studio/nuke/init.py | astips/tk-astips-app-url-resolver | fd1a5d49d1ef1590a05ad640fb4f74a9579721ab | [
"MIT"
] | null | null | null | studio/nuke/init.py | astips/tk-astips-app-url-resolver | fd1a5d49d1ef1590a05ad640fb4f74a9579721ab | [
"MIT"
] | 3 | 2018-06-07T14:26:51.000Z | 2021-11-30T12:49:18.000Z | # -*- coding: utf-8 -*-
###########################################################################################
#
# Author: astips - (animator.well)
#
# Date: 2017.03
#
# Url: https://github.com/astips
#
# Description: nuke url resolver
#
############################################################################... | 20.642857 | 91 | 0.458478 | 51 | 578 | 5.058824 | 0.588235 | 0.124031 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014113 | 0.141869 | 578 | 27 | 92 | 21.407407 | 0.506048 | 0.224913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e75ab78356dcf425204c61db6532938fb81889de | 932 | py | Python | magnifier/base.py | koreander2001/magnifier | 6771e1ecd6abb3108c482579f5e24f210c7ebcdd | [
"MIT"
] | null | null | null | magnifier/base.py | koreander2001/magnifier | 6771e1ecd6abb3108c482579f5e24f210c7ebcdd | [
"MIT"
] | 5 | 2022-01-16T12:12:30.000Z | 2022-02-13T08:54:28.000Z | magnifier/base.py | koreander2001/magnifier | 6771e1ecd6abb3108c482579f5e24f210c7ebcdd | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from sklearn.base import (
BaseEstimator,
ClassifierMixin,
RegressorMixin,
TransformerMixin,
)
class BaseClassifier(BaseEstimator, ClassifierMixin, metaclass=ABCMeta):
@abstractmethod
def fit(self, X, y, **fit_params) -> "BaseClassifier":
raise ... | 24.526316 | 74 | 0.709227 | 85 | 932 | 7.741176 | 0.329412 | 0.045593 | 0.045593 | 0.050152 | 0.422492 | 0.404255 | 0.404255 | 0.404255 | 0.404255 | 0.404255 | 0 | 0 | 0.204936 | 932 | 37 | 75 | 25.189189 | 0.887989 | 0 | 0 | 0.444444 | 0 | 0 | 0.045064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.037037 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e75d3be60f316283c600b24e405c971784ba5c9d | 323 | py | Python | duplicate_titles.py | tomaszpasternak94/OpenX_task | 0a9985c48c8d0ac977bb8c315fa91fe2253998a5 | [
"MIT"
] | null | null | null | duplicate_titles.py | tomaszpasternak94/OpenX_task | 0a9985c48c8d0ac977bb8c315fa91fe2253998a5 | [
"MIT"
] | null | null | null | duplicate_titles.py | tomaszpasternak94/OpenX_task | 0a9985c48c8d0ac977bb8c315fa91fe2253998a5 | [
"MIT"
] | null | null | null | import titles
from titles import titlesAll
def duplicatesF():
duplicates=[]
counter = 0
for i in titlesAll:
if i in titlesAll[counter+1:]:
duplicates.append(i)
else:
pass
counter += 1
print('\nlista duplikatów:')
return print(list(set(duplicates)),'\n... | 21.533333 | 44 | 0.585139 | 37 | 323 | 5.108108 | 0.648649 | 0.031746 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.306502 | 323 | 14 | 45 | 23.071429 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.065015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e75e22fe64eb93b8f8971a78056844f02a3db2c0 | 808 | py | Python | jira_analysis/defect_rate/chart/defect.py | arrwhidev/jira-analysis | 2e04567a43dd15391b71a6c629f3489d637d6e3c | [
"MIT"
] | 10 | 2020-06-12T13:33:20.000Z | 2022-01-14T15:33:12.000Z | jira_analysis/defect_rate/chart/defect.py | arrwhidev/jira-analysis | 2e04567a43dd15391b71a6c629f3489d637d6e3c | [
"MIT"
] | 6 | 2020-06-03T06:58:15.000Z | 2022-02-10T15:02:30.000Z | jira_analysis/defect_rate/chart/defect.py | arrwhidev/jira-analysis | 2e04567a43dd15391b71a6c629f3489d637d6e3c | [
"MIT"
] | 6 | 2020-06-02T15:20:13.000Z | 2021-11-04T08:46:17.000Z | from bokeh.models.sources import ColumnDataSource
from bokeh.transform import cumsum
from functools import partial
from typing import List, Type
from jira_analysis.chart.base import Axis, IChart, Chart
from jira_analysis.defect_rate.issue import Issue
from .plot.donut import DefectRateDonut
def generate_defect_chart... | 28.857143 | 64 | 0.705446 | 101 | 808 | 5.514851 | 0.49505 | 0.032316 | 0.057451 | 0.068223 | 0.082585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012251 | 0.191832 | 808 | 27 | 65 | 29.925926 | 0.840735 | 0 | 0 | 0 | 0 | 0 | 0.033416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e767923499edba6e21645a08d475976338a43fdd | 472 | py | Python | myblog/posts/serializer.py | daxia07/fancyBlog | 8a3970da3079a48aca4f42d40e4c9a8ce0b2710e | [
"MIT"
] | 1 | 2019-09-21T01:29:22.000Z | 2019-09-21T01:29:22.000Z | myblog/posts/serializer.py | daxia07/fancyBlog | 8a3970da3079a48aca4f42d40e4c9a8ce0b2710e | [
"MIT"
] | 3 | 2020-06-05T23:25:10.000Z | 2021-04-08T20:11:17.000Z | myblog/posts/serializer.py | daxia07/fancyBlog | 8a3970da3079a48aca4f42d40e4c9a8ce0b2710e | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
from .models import Post
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email')
class PostSerializer(serializers.ModelSerializer):
author = serializers... | 24.842105 | 64 | 0.709746 | 49 | 472 | 6.714286 | 0.571429 | 0.072948 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199153 | 472 | 18 | 65 | 26.222222 | 0.87037 | 0.082627 | 0 | 0.166667 | 0 | 0 | 0.085847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e76c1be4588d99d47323cd7bbb2a9b1848adaf12 | 7,028 | py | Python | component.py | oxford-pcs/zSpec | 0879371076c25d965514a7d5576b0e1a30efa2bd | [
"MIT"
] | 1 | 2018-01-22T21:53:54.000Z | 2018-01-22T21:53:54.000Z | component.py | oxford-pcs/zSpec | 0879371076c25d965514a7d5576b0e1a30efa2bd | [
"MIT"
] | 1 | 2018-01-18T13:20:35.000Z | 2018-01-18T13:20:35.000Z | component.py | oxford-pcs/zSpec | 0879371076c25d965514a7d5576b0e1a30efa2bd | [
"MIT"
] | 1 | 2021-08-03T10:27:59.000Z | 2021-08-03T10:27:59.000Z | import numpy as np
import pylab as plt
import pyzdde.zdde as pyz
class Component(object):
def __init__(self, zmx_file, zcontroller, lumultiplier=1e-3, wumultiplier=1e6):
'''
Initialise a component.
[lumultiplier] is used to move from Zemax lens units to another
physical dimension. By default, ... | 37.784946 | 81 | 0.644138 | 800 | 7,028 | 5.57 | 0.21375 | 0.104354 | 0.046679 | 0.05386 | 0.601212 | 0.545108 | 0.524686 | 0.464542 | 0.41158 | 0.387792 | 0 | 0.008554 | 0.251423 | 7,028 | 185 | 82 | 37.989189 | 0.838434 | 0.006972 | 0 | 0.365854 | 0 | 0 | 0.050051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01626 | 0.02439 | null | null | 0.081301 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7729d185d22495a54248f29283594e126a295e3 | 412 | py | Python | django/reviewApp/migrations/0008_artist_background_image.py | Akasiek/scorethatlp | 1c669afdaa8fe990e53706f5e60d201fbb76c26a | [
"MIT"
] | 5 | 2022-03-15T18:00:40.000Z | 2022-03-25T18:19:29.000Z | django/reviewApp/migrations/0008_artist_background_image.py | Akasiek/scorethatlp | 1c669afdaa8fe990e53706f5e60d201fbb76c26a | [
"MIT"
] | null | null | null | django/reviewApp/migrations/0008_artist_background_image.py | Akasiek/scorethatlp | 1c669afdaa8fe990e53706f5e60d201fbb76c26a | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-21 17:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reviewApp', '0007_artist_image'),
]
operations = [
migrations.AddField(
model_name='artist',
name='background_image'... | 21.684211 | 72 | 0.604369 | 45 | 412 | 5.422222 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063545 | 0.274272 | 412 | 18 | 73 | 22.888889 | 0.752508 | 0.109223 | 0 | 0 | 1 | 0 | 0.131507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e77a84551720834d0ba1ec3c408dd9aaa01cbf7f | 4,668 | py | Python | emotion.py | Kukanani/emotion_game | fc2338d96e1f5ca946f8d8ef25701270b25bf511 | [
"BSD-3-Clause"
] | null | null | null | emotion.py | Kukanani/emotion_game | fc2338d96e1f5ca946f8d8ef25701270b25bf511 | [
"BSD-3-Clause"
] | null | null | null | emotion.py | Kukanani/emotion_game | fc2338d96e1f5ca946f8d8ef25701270b25bf511 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import cv2
import sys
import numpy
import requests
import time
import operator
import math
import random
api_key = None
with open("api.txt") as file:
api_key = file.read()
if api_key is None:
print("error, api.txt not found")
exit()
emotions = {
"neutral": "neutral",
"happin... | 31.972603 | 143 | 0.584833 | 614 | 4,668 | 4.364821 | 0.289902 | 0.015672 | 0.008955 | 0.015672 | 0.33209 | 0.314179 | 0.314179 | 0.309701 | 0.204104 | 0.204104 | 0 | 0.065975 | 0.256427 | 4,668 | 146 | 144 | 31.972603 | 0.706137 | 0.056341 | 0 | 0.27027 | 0 | 0 | 0.094816 | 0.011141 | 0 | 0 | 0.003638 | 0 | 0 | 0 | null | null | 0 | 0.072072 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e77bd5ef109c5f7bceab6baf18a8c95d6853f90c | 6,661 | py | Python | main.py | cpressland/bingo | 0ad07bfc65727a347703373eeda088812742cece | [
"MIT"
] | null | null | null | main.py | cpressland/bingo | 0ad07bfc65727a347703373eeda088812742cece | [
"MIT"
] | null | null | null | main.py | cpressland/bingo | 0ad07bfc65727a347703373eeda088812742cece | [
"MIT"
] | null | null | null | from random import choice
from flask import Flask, redirect
app = Flask(__name__)
words = {
"1": "One Direction",
"2": "Dr Who",
"3": "Cup of herbal tea",
"4": "Knock at the door",
"5": "Johnny's Alive",
"6": "Little Mix",
"7": "David Beckham",
"8": "Golden Gate",
"9": "Selfie Time... | 27.524793 | 83 | 0.444828 | 666 | 6,661 | 4.432432 | 0.557057 | 0.045732 | 0.020325 | 0.022358 | 0.282182 | 0.264905 | 0.245935 | 0.215447 | 0.215447 | 0.215447 | 0 | 0.058281 | 0.397238 | 6,661 | 241 | 84 | 27.639004 | 0.676961 | 0 | 0 | 0.394619 | 0 | 0 | 0.689236 | 0.024171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026906 | false | 0 | 0.008969 | 0.004484 | 0.076233 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e781adebfb42f45b3f7887c33eb51a95aeb10fb8 | 2,010 | py | Python | gd/config.py | josenavas/glowing-dangerzone | ef691aab06bf87797f3222f9e064356679ce3188 | [
"BSD-3-Clause"
] | null | null | null | gd/config.py | josenavas/glowing-dangerzone | ef691aab06bf87797f3222f9e064356679ce3188 | [
"BSD-3-Clause"
] | null | null | null | gd/config.py | josenavas/glowing-dangerzone | ef691aab06bf87797f3222f9e064356679ce3188 | [
"BSD-3-Clause"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) 2014--, The biocore Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------... | 33.5 | 79 | 0.595522 | 236 | 2,010 | 4.966102 | 0.377119 | 0.035836 | 0.087031 | 0.035836 | 0.134812 | 0.134812 | 0.087031 | 0 | 0 | 0 | 0 | 0.003309 | 0.248259 | 2,010 | 59 | 80 | 34.067797 | 0.772336 | 0.457711 | 0 | 0 | 0 | 0 | 0.142006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e78424b14306bfa799fb3574d99aac50146668c6 | 7,380 | py | Python | src/model/rfdn_old.py | yamengxi/EDSR-PyTorch | c99fa78bb57f62a0a317b0875ead79b78a2cb51f | [
"MIT"
] | null | null | null | src/model/rfdn_old.py | yamengxi/EDSR-PyTorch | c99fa78bb57f62a0a317b0875ead79b78a2cb51f | [
"MIT"
] | null | null | null | src/model/rfdn_old.py | yamengxi/EDSR-PyTorch | c99fa78bb57f62a0a317b0875ead79b78a2cb51f | [
"MIT"
] | null | null | null | from math import gcd
import torch
import torch.nn as nn
import torch.nn.functional as F
from model import common
def make_model(args, parent=False):
return RFDN(args)
def generate_masks(num):
masks = []
for i in range(num):
now = list(range(2 ** num))
length = 2 ** (num - i)
fo... | 30 | 122 | 0.577642 | 985 | 7,380 | 4.143147 | 0.163452 | 0.051458 | 0.011762 | 0.021563 | 0.361431 | 0.331536 | 0.286449 | 0.22764 | 0.172752 | 0.153149 | 0 | 0.030922 | 0.303252 | 7,380 | 245 | 123 | 30.122449 | 0.762738 | 0.10813 | 0 | 0.195266 | 1 | 0 | 0.008286 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 1 | 0.059172 | false | 0 | 0.047337 | 0.005917 | 0.16568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e784bdd424c3f8231790a74c4c0cceee56ac71b8 | 2,811 | py | Python | mlsurvey/sl/workflows/tasks/split_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | mlsurvey/sl/workflows/tasks/split_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | mlsurvey/sl/workflows/tasks/split_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | from kedro.pipeline import node
from mlsurvey.workflows.tasks import BaseTask
class SplitDataTask(BaseTask):
"""
split data from prepared data (train/test)
"""
@classmethod
def get_node(cls):
return node(SplitDataTask.split_data,
inputs=['config', 'log', 'raw_data', ... | 42.590909 | 119 | 0.615439 | 352 | 2,811 | 4.5625 | 0.232955 | 0.087173 | 0.047945 | 0.03736 | 0.380448 | 0.273973 | 0.199253 | 0.199253 | 0.14944 | 0 | 0 | 0 | 0.277481 | 2,811 | 65 | 120 | 43.246154 | 0.790743 | 0.083244 | 0 | 0.046512 | 0 | 0 | 0.114806 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.069767 | false | 0 | 0.046512 | 0.023256 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e78f62fb09e2bbb8eb8ee9208fe99efffe0f65df | 764 | py | Python | hackathon/migrations/0040_auto_20210225_1656.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 11 | 2020-10-06T13:50:46.000Z | 2021-02-27T20:19:17.000Z | hackathon/migrations/0040_auto_20210225_1656.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 174 | 2020-10-13T18:25:34.000Z | 2022-01-17T09:49:18.000Z | hackathon/migrations/0040_auto_20210225_1656.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 46 | 2020-10-14T11:27:20.000Z | 2022-01-31T17:48:12.000Z | # Generated by Django 3.1.3 on 2021-02-25 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hackathon', '0039_auto_20210224_1850'),
]
operations = [
migrations.AddField(
model_name='hackathon',
name='tag_line... | 31.833333 | 166 | 0.645288 | 86 | 764 | 5.627907 | 0.674419 | 0.03719 | 0.07438 | 0.090909 | 0.18595 | 0.18595 | 0.18595 | 0.18595 | 0 | 0 | 0 | 0.059859 | 0.256545 | 764 | 23 | 167 | 33.217391 | 0.792254 | 0.058901 | 0 | 0.235294 | 1 | 0 | 0.355649 | 0.032078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e793b8c6c2db37656d49f422576a00f5c293a6c7 | 764 | py | Python | qal/transformation/tests/test_transformation.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 3 | 2016-05-02T14:35:55.000Z | 2021-08-31T14:19:15.000Z | qal/transformation/tests/test_transformation.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | null | null | null | qal/transformation/tests/test_transformation.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 1 | 2018-03-18T13:19:52.000Z | 2018-03-18T13:19:52.000Z | import json
import os
from jsonschema.validators import Draft4Validator
from qal.transformation import generate_schema
__author__ = 'nibo'
import unittest
Test_Script_Dir = os.path.dirname(__file__)
Test_Resource_Dir = os.path.join(Test_Script_Dir, 'resources')
class MyTestCase(unittest.TestCase):
def test_j... | 26.344828 | 102 | 0.721204 | 99 | 764 | 5.20202 | 0.545455 | 0.034951 | 0.050485 | 0.054369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.167539 | 764 | 28 | 103 | 27.285714 | 0.805031 | 0.115183 | 0 | 0 | 1 | 0 | 0.085075 | 0.038806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e79800f262cb9ba9ad9c992c22e0ce9c0d9971e1 | 2,219 | py | Python | verification/alembic/versions/398d6252cdce_baseline.py | DhivakharVenkatachalam/snet-marketplace-service | 6aee606bc9b00d418caeae26c64deae03792e0ce | [
"MIT"
] | 14 | 2019-02-12T09:14:52.000Z | 2021-03-11T18:42:22.000Z | verification/alembic/versions/398d6252cdce_baseline.py | prashantramangupta/snet-marketplace-service | 7c293054e4b0207deefecc46defd743c064472a4 | [
"MIT"
] | 1,079 | 2019-01-10T04:31:24.000Z | 2022-03-29T06:16:42.000Z | verification/alembic/versions/398d6252cdce_baseline.py | prashantramangupta/snet-marketplace-service | 7c293054e4b0207deefecc46defd743c064472a4 | [
"MIT"
] | 20 | 2018-12-18T13:06:41.000Z | 2021-09-17T11:13:01.000Z | """baseline
Revision ID: 398d6252cdce
Revises:
Create Date: 2020-03-12 10:10:15.689958
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '398d6252cdce'
down_revision = None
branch_labels = None
depends_on = None
def upgrade... | 40.345455 | 79 | 0.713384 | 280 | 2,219 | 5.55 | 0.267857 | 0.10296 | 0.153153 | 0.19305 | 0.647362 | 0.591377 | 0.587516 | 0.506435 | 0.328185 | 0.208494 | 0 | 0.03876 | 0.127986 | 2,219 | 54 | 80 | 41.092593 | 0.764341 | 0.125282 | 0 | 0.054054 | 0 | 0 | 0.177521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e798df9c3613a25e49d4f31b12f398095cbd43e5 | 1,470 | py | Python | dvrip/cmd/log.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 34 | 2019-05-04T06:06:17.000Z | 2021-12-06T03:28:40.000Z | dvrip/cmd/log.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 9 | 2019-06-17T09:37:50.000Z | 2020-10-24T22:36:29.000Z | dvrip/cmd/log.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 21 | 2019-06-17T09:34:27.000Z | 2022-03-22T18:14:22.000Z | from datetime import datetime
from getopt import GetoptError, getopt
from socket import AF_INET, SOCK_STREAM, socket as Socket
from sys import stderr
from typing import List, NoReturn
from ..io import DVRIPClient
from ..message import EPOCH
from . import EX_USAGE, guard, prog_connect
def usage() -> NoReturn:
print('... | 22.96875 | 66 | 0.62449 | 199 | 1,470 | 4.572864 | 0.366834 | 0.01978 | 0.036264 | 0.079121 | 0.076923 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.003591 | 0.242177 | 1,470 | 63 | 67 | 23.333333 | 0.813285 | 0.017007 | 0 | 0.166667 | 0 | 0 | 0.040915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.074074 | 0.222222 | 0 | 0.277778 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7a3d90a6de6a45565b36fa144dea090e1ad04fd | 872 | py | Python | brainex/misc.py | ebuntel/BrainExTemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | 1 | 2020-09-04T16:15:26.000Z | 2020-09-04T16:15:26.000Z | brainex/misc.py | ebuntel/Brainextemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | null | null | null | brainex/misc.py | ebuntel/Brainextemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | null | null | null | import numpy as np
def pr_red(skk):
print("\033[91m {}\033[00m" .format(skk))
def prYellow(skk):
print("\033[93m {}\033[00m" .format(skk))
def merge_dict(dicts: list):
merged_dict = dict()
merged_len = 0
for d in dicts:
merged_len += len(d)
merged_dict = {**merged_dict, **d} # ... | 27.25 | 114 | 0.65711 | 133 | 872 | 4.210526 | 0.548872 | 0.089286 | 0.039286 | 0.053571 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031111 | 0.225917 | 872 | 32 | 115 | 27.25 | 0.798519 | 0.051606 | 0 | 0 | 0 | 0 | 0.282082 | 0.052058 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.347826 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7a8aa6b70456f5550774b4856cbe073e29b6d11 | 4,818 | py | Python | test/test_modify_contact.py | EkaterinaPentjuhina/python_training | 43f939cf690a91af9ec0fddfd18f9e3c55cfefb6 | [
"Apache-2.0"
] | 1 | 2020-06-08T17:16:29.000Z | 2020-06-08T17:16:29.000Z | test/test_modify_contact.py | EkaterinaPentjuhina/python_training | 43f939cf690a91af9ec0fddfd18f9e3c55cfefb6 | [
"Apache-2.0"
] | null | null | null | test/test_modify_contact.py | EkaterinaPentjuhina/python_training | 43f939cf690a91af9ec0fddfd18f9e3c55cfefb6 | [
"Apache-2.0"
] | null | null | null | from model.contact_properties import Contact
import random
import allure
def test_edit_contact(app, db, check_ui):
with allure.step('Given a non-empty contact list'):
if len(db.get_contact_list()) == 0:
app.contact.add_new(Contact(firstname="Ekaterina", middlename="Aleksandrovna", lastname="Pe... | 62.571429 | 127 | 0.611872 | 553 | 4,818 | 5.166365 | 0.20434 | 0.066503 | 0.049002 | 0.049002 | 0.715786 | 0.660483 | 0.660483 | 0.660483 | 0.660483 | 0.660483 | 0 | 0.034254 | 0.248651 | 4,818 | 76 | 128 | 63.394737 | 0.754972 | 0.565587 | 0 | 0.137931 | 0 | 0 | 0.234778 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7a92a95db912c80cf38633ff72e26c2c4e31c0b | 10,690 | py | Python | gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | #
# GMSK modulation and demodulation.
#
#
# Copyright 2005-2007,2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either v... | 37.118056 | 106 | 0.628344 | 1,353 | 10,690 | 4.710273 | 0.22912 | 0.053664 | 0.080339 | 0.025106 | 0.4563 | 0.408599 | 0.336419 | 0.308489 | 0.265966 | 0.199906 | 0 | 0.010757 | 0.260804 | 10,690 | 287 | 107 | 37.247387 | 0.795748 | 0.210009 | 0 | 0.333333 | 0 | 0 | 0.119113 | 0.003188 | 0 | 0 | 0 | 0.003484 | 0 | 0 | null | null | 0 | 0.048611 | null | null | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7ab9b749df400d1548577100113061652fee1a6 | 1,237 | py | Python | app/core/tests/test_models.py | samkahunga65/recipe-app | 9cc20530d9b144d63a732ebb8a882c4574571a58 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | samkahunga65/recipe-app | 9cc20530d9b144d63a732ebb8a882c4574571a58 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | samkahunga65/recipe-app | 9cc20530d9b144d63a732ebb8a882c4574571a58 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_succesful(self):
"""test thst creating a new ussful"""
email = "samkahunga65@gmail.com"
password = "7Alpha11"
user = get_user_model().objects.create_use... | 32.552632 | 69 | 0.641067 | 146 | 1,237 | 5.232877 | 0.321918 | 0.070681 | 0.078534 | 0.099476 | 0.251309 | 0.175393 | 0.099476 | 0.099476 | 0 | 0 | 0 | 0.015184 | 0.254648 | 1,237 | 38 | 70 | 32.552632 | 0.813449 | 0.109943 | 0 | 0 | 0 | 0 | 0.080481 | 0.039778 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7b2e1c4fe302de386156f3fdfc4d005279001ea | 5,267 | py | Python | gui/loadobservations_widget.py | Varnani/pywd2015-qt5 | b4865eeb80f659d8d7cf8f45807ee3e27e8555fb | [
"MIT"
] | 7 | 2020-04-17T16:33:24.000Z | 2021-12-28T14:27:53.000Z | gui/loadobservations_widget.py | Varnani/pywd2015-qt5 | b4865eeb80f659d8d7cf8f45807ee3e27e8555fb | [
"MIT"
] | null | null | null | gui/loadobservations_widget.py | Varnani/pywd2015-qt5 | b4865eeb80f659d8d7cf8f45807ee3e27e8555fb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'loadobservations_widget.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ObservationWidget(object):
def setupUi(self, Observ... | 56.031915 | 104 | 0.734574 | 523 | 5,267 | 7.284895 | 0.210325 | 0.07874 | 0.059843 | 0.056693 | 0.386877 | 0.289764 | 0.249606 | 0.249606 | 0.249606 | 0.225722 | 0 | 0.018766 | 0.160243 | 5,267 | 93 | 105 | 56.634409 | 0.842641 | 0.037403 | 0 | 0.17284 | 1 | 0 | 0.065389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.012346 | 0 | 0.049383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7ba6afcd29c252c66c5224bc72ef91b803fd6ff | 3,285 | py | Python | smida/models.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 3 | 2018-06-10T21:20:56.000Z | 2021-04-04T11:21:06.000Z | smida/models.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 7 | 2018-08-14T20:54:49.000Z | 2020-06-05T18:17:30.000Z | smida/models.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 3 | 2018-06-27T12:53:13.000Z | 2020-09-25T19:41:46.000Z | import logging
from django.db import models
from django.urls import reverse
from abstract.models import AbstractDataset
from names_translator.name_utils import (
generate_all_names,
autocomplete_suggestions,
concat_name,
)
from abstract.tools.countries import COUNTRIES
from abstract.tools.stocks import ST... | 33.520408 | 98 | 0.571994 | 344 | 3,285 | 5.212209 | 0.27907 | 0.033463 | 0.030675 | 0.033463 | 0.139989 | 0.104294 | 0.104294 | 0.104294 | 0.08589 | 0.047964 | 0 | 0.00088 | 0.308371 | 3,285 | 97 | 99 | 33.865979 | 0.788292 | 0.007306 | 0 | 0 | 1 | 0 | 0.201289 | 0.015649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.102564 | 0.012821 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7c88489a28ff18baaa2156f3f5c8d2311eb8bce | 567 | py | Python | tests/unit_tests/test_tethys_config/test_apps.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 79 | 2015-10-05T13:13:28.000Z | 2022-02-01T12:30:33.000Z | tests/unit_tests/test_tethys_config/test_apps.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 542 | 2015-08-12T22:11:32.000Z | 2022-03-29T22:18:08.000Z | tests/unit_tests/test_tethys_config/test_apps.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 71 | 2016-01-16T01:03:41.000Z | 2022-03-31T17:55:54.000Z | import unittest
from django.apps import apps
from tethys_config.apps import TethysPortalConfig
class TethysConfigAppsTest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_TethysPortalConfig(self):
app_config = apps.get_app_config('tethys_config')
... | 24.652174 | 67 | 0.714286 | 64 | 567 | 6.125 | 0.390625 | 0.114796 | 0.056122 | 0.127551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209877 | 567 | 22 | 68 | 25.772727 | 0.875 | 0 | 0 | 0.133333 | 0 | 0 | 0.068783 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0.133333 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7d01d5596c98267e2d849c7a50050a61e7e8fda | 370 | py | Python | rooms/urls.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | rooms/urls.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | rooms/urls.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | from django.urls import include, path
from rest_framework.routers import DefaultRouter
from rooms import views
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r"room", views.RoomViewSet, basename="room")
# The API URLs are now determined automatically by the router.
urlp... | 26.428571 | 62 | 0.767568 | 50 | 370 | 5.66 | 0.66 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143243 | 370 | 13 | 63 | 28.461538 | 0.892744 | 0.3 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e7db8492475b75a00d0010b8cfc1881824df5024 | 14,511 | py | Python | multiplication.py | iAnatoly/multiplication | 221d7cd2dd8c2d5ac4440568a4368b5f34f914ac | [
"Apache-2.0"
] | 1 | 2019-04-17T19:17:23.000Z | 2019-04-17T19:17:23.000Z | multiplication.py | iAnatoly/multiplication | 221d7cd2dd8c2d5ac4440568a4368b5f34f914ac | [
"Apache-2.0"
] | null | null | null | multiplication.py | iAnatoly/multiplication | 221d7cd2dd8c2d5ac4440568a4368b5f34f914ac | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# This script is free for use and redistribution in educational purposes.
# See https://github.com/iAnatoly/multiplication/ for more info.
#
# email notification configuration is defined in multiplication.config
import random
import os
import sys
import smtplib
import ConfigParser
from email.mime.t... | 33.130137 | 260 | 0.585142 | 1,493 | 14,511 | 5.659076 | 0.217683 | 0.016097 | 0.039768 | 0.03314 | 0.261924 | 0.207717 | 0.149604 | 0.101314 | 0.0677 | 0.049237 | 0 | 0.018345 | 0.3088 | 14,511 | 437 | 261 | 33.20595 | 0.824028 | 0.023155 | 0 | 0.319527 | 0 | 0.008876 | 0.130518 | 0.003249 | 0.005917 | 0 | 0 | 0.002288 | 0 | 0 | null | null | 0.008876 | 0.029586 | null | null | 0.071006 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7deb1679af25d09e1d50c1052e387e2a3fc381d | 26,463 | py | Python | src/sphinx_c_autodoc/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 7 | 2020-06-06T06:47:31.000Z | 2021-12-12T14:18:08.000Z | src/sphinx_c_autodoc/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 15 | 2020-03-12T01:43:24.000Z | 2021-04-21T06:45:13.000Z | src/sphinx_c_autodoc/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 1 | 2021-08-05T20:23:01.000Z | 2021-08-05T20:23:01.000Z | """
sphinx_c_autodoc is a package which provide c source file parsing for sphinx.
It is composed of multiple directives and settings:
.. rst:directive:: .. c:module:: filename
A directive to document a c file. This is similar to :rst:dir:`py:module`
except it's for the C domain. This can be used for both c... | 33.970475 | 109 | 0.619733 | 3,127 | 26,463 | 5.144867 | 0.195715 | 0.006837 | 0.005594 | 0.010629 | 0.206924 | 0.166087 | 0.157322 | 0.147626 | 0.126305 | 0.126305 | 0 | 0.001821 | 0.2946 | 26,463 | 778 | 110 | 34.014139 | 0.86002 | 0.404943 | 0 | 0.167683 | 0 | 0 | 0.053337 | 0.009698 | 0 | 0 | 0 | 0.020566 | 0 | 1 | 0.067073 | false | 0 | 0.051829 | 0 | 0.32622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b02eb168229b1ffb9c68b8ad493dabf5f9c87c | 7,151 | py | Python | tools/parse_log.py | KyleHai/DeepSpeech2 | 44884426e213b6d5440914882064c9142b6ea7a3 | [
"BSD-3-Clause"
] | 158 | 2018-03-28T21:58:07.000Z | 2022-02-22T00:49:46.000Z | tools/parse_log.py | KyleHai/DeepSpeech2 | 44884426e213b6d5440914882064c9142b6ea7a3 | [
"BSD-3-Clause"
] | 35 | 2018-09-03T21:27:15.000Z | 2019-05-11T02:17:49.000Z | tools/parse_log.py | KyleHai/DeepSpeech2 | 44884426e213b6d5440914882064c9142b6ea7a3 | [
"BSD-3-Clause"
] | 22 | 2017-09-21T07:47:30.000Z | 2021-09-16T11:22:01.000Z | import fileinput as fin
# funcs:
def findValWithFormat(line):
lines.append(line)
taken = line.split(" ")
raw_val = taken[-1]
val = raw_val.split("/")[-1]
val = val[0:-2]
if 'us' in val:
val = float(val[0:val.find('us')])
val = val/1000
else:
val = float(val[0:val.find('ms')])
return val
def getCellNum(l... | 32.504545 | 141 | 0.66704 | 1,152 | 7,151 | 3.939236 | 0.097222 | 0.126928 | 0.132878 | 0.132217 | 0.708903 | 0.655796 | 0.619216 | 0.56699 | 0.560379 | 0.560379 | 0 | 0.021005 | 0.201091 | 7,151 | 219 | 142 | 32.652968 | 0.773324 | 0.033142 | 0 | 0.173077 | 0 | 0 | 0.148837 | 0.015116 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00641 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b0ba7f03b2766d824e986ab5fb96ab8c0fa7e0 | 928 | py | Python | api_client/auth.py | ciandt-d1/cvtool-ingestion-pipeline | 10602668fe5980a577032c85f16f0a12262d5ea6 | [
"Apache-2.0"
] | null | null | null | api_client/auth.py | ciandt-d1/cvtool-ingestion-pipeline | 10602668fe5980a577032c85f16f0a12262d5ea6 | [
"Apache-2.0"
] | null | null | null | api_client/auth.py | ciandt-d1/cvtool-ingestion-pipeline | 10602668fe5980a577032c85f16f0a12262d5ea6 | [
"Apache-2.0"
] | null | null | null | import base64
import json
import time
from google.appengine.api import app_identity
DEFAULT_SERVICE_ACCOUNT = app_identity.get_service_account_name()
def generate_jwt():
"""Generates a signed JSON Web Token using the Google App Engine default
service account."""
now = int(time.time())
header_json =... | 27.294118 | 116 | 0.677802 | 106 | 928 | 5.679245 | 0.490566 | 0.139535 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028378 | 0.202586 | 928 | 33 | 117 | 28.121212 | 0.785135 | 0.092672 | 0 | 0.086957 | 1 | 0 | 0.074519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b421b8fc3c77a78c8b42d4e7d8dc9eab6fdc76 | 4,767 | py | Python | SimpleSAC/sampler.py | chethus/CQL | 9cceb35fe220ae517bc87ae219704d6eca409566 | [
"MIT"
] | null | null | null | SimpleSAC/sampler.py | chethus/CQL | 9cceb35fe220ae517bc87ae219704d6eca409566 | [
"MIT"
] | null | null | null | SimpleSAC/sampler.py | chethus/CQL | 9cceb35fe220ae517bc87ae219704d6eca409566 | [
"MIT"
] | null | null | null | import numpy as np
from collections import defaultdict
from .utils import flatten_dict
class StepSampler(object):
def __init__(self, env, max_traj_length=1000):
self.max_traj_length = max_traj_length
self._env = env
self._traj_steps = 0
self._current_observation = self.env.reset()... | 37.242188 | 102 | 0.550451 | 513 | 4,767 | 4.869396 | 0.177388 | 0.039231 | 0.018014 | 0.02522 | 0.743395 | 0.663331 | 0.663331 | 0.629303 | 0.629303 | 0.629303 | 0 | 0.007578 | 0.363331 | 4,767 | 128 | 103 | 37.242188 | 0.815486 | 0 | 0 | 0.650943 | 0 | 0 | 0.029782 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 1 | 0.056604 | false | 0 | 0.028302 | 0.018868 | 0.141509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b439817790c7610ae8a7e8b0e92d675cac1d00 | 2,156 | py | Python | example.py | Til-Piffl/RAVE_SelectionFunction | 0971f2578f9a474c1f0997109057b1967b276c3d | [
"MIT"
] | null | null | null | example.py | Til-Piffl/RAVE_SelectionFunction | 0971f2578f9a474c1f0997109057b1967b276c3d | [
"MIT"
] | null | null | null | example.py | Til-Piffl/RAVE_SelectionFunction | 0971f2578f9a474c1f0997109057b1967b276c3d | [
"MIT"
] | null | null | null | import pyRAVE
import numpy as np
import healpy
# Load RAVE data
RAVE = pyRAVE.readCSV('RAVE_DR4.csv')
# =======================================================
# Selection criteria by the user
user_select = np.ones(len(RAVE['rave_obs_id']),dtype=bool) # all entries
user_select = (RAVE['snr_k']>20) &\
(... | 32.179104 | 77 | 0.583952 | 268 | 2,156 | 4.593284 | 0.429104 | 0.043867 | 0.040617 | 0.05199 | 0.153534 | 0.153534 | 0.05524 | 0 | 0 | 0 | 0 | 0.011072 | 0.204082 | 2,156 | 66 | 78 | 32.666667 | 0.706294 | 0.19898 | 0 | 0.102564 | 0 | 0 | 0.227671 | 0.014594 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.25641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b6b0110cc7ef6710b3af92dbc9337bbeb8fdbb | 942 | py | Python | planner/section.py | ksu-web-dev/planner | 1aa7f50b2b8c1dda3dccf12e59ca169f19049d18 | [
"MIT"
] | null | null | null | planner/section.py | ksu-web-dev/planner | 1aa7f50b2b8c1dda3dccf12e59ca169f19049d18 | [
"MIT"
] | null | null | null | planner/section.py | ksu-web-dev/planner | 1aa7f50b2b8c1dda3dccf12e59ca169f19049d18 | [
"MIT"
] | null | null | null | import dataclasses
import time
@dataclasses.dataclass
class Section:
department: str = ''
course_number: int = 0
full_name: str = ''
type: str = ''
instructor: str = ''
section_letter: str = ''
section_number: int = 0
start_time: time.time = None
end_time: time.time = None
faci... | 24.153846 | 69 | 0.58811 | 127 | 942 | 4.15748 | 0.330709 | 0.119318 | 0.123106 | 0.060606 | 0.128788 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0.007396 | 0.282378 | 942 | 38 | 70 | 24.789474 | 0.773669 | 0 | 0 | 0 | 0 | 0 | 0.04034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
99bb94bdf7cb1735398ab3a3a859a7f3ba4af38f | 1,548 | py | Python | app.py | dcshoecousa/MimiWork | fdbb41163ac1216a8854c36ac8328fe8cc61a2d3 | [
"MIT"
] | null | null | null | app.py | dcshoecousa/MimiWork | fdbb41163ac1216a8854c36ac8328fe8cc61a2d3 | [
"MIT"
] | null | null | null | app.py | dcshoecousa/MimiWork | fdbb41163ac1216a8854c36ac8328fe8cc61a2d3 | [
"MIT"
] | null | null | null | import uvicorn
from fastapi import FastAPI, Request, status
from fastapi.encoders import jsonable_encoder
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.gzip import GZipMiddleware
from fastapi.exceptions import RequestValidationError
from fastapi.responses import PlainTextResponse
from starl... | 30.352941 | 86 | 0.786822 | 181 | 1,548 | 6.552486 | 0.425414 | 0.074199 | 0.035413 | 0.043845 | 0.112985 | 0.057336 | 0.057336 | 0 | 0 | 0 | 0 | 0.010901 | 0.111111 | 1,548 | 50 | 87 | 30.96 | 0.851017 | 0 | 0 | 0.054054 | 0 | 0 | 0.04199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.324324 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
99bf1a42c7b4098b900a012105dedc1f4e8a5099 | 438 | py | Python | django-varnish-master/setup.py | vdmann/cse-360-image-hosting-website | ad71c082353af4c10dcafd7381415d932cbfabc9 | [
"MIT"
] | null | null | null | django-varnish-master/setup.py | vdmann/cse-360-image-hosting-website | ad71c082353af4c10dcafd7381415d932cbfabc9 | [
"MIT"
] | null | null | null | django-varnish-master/setup.py | vdmann/cse-360-image-hosting-website | ad71c082353af4c10dcafd7381415d932cbfabc9 | [
"MIT"
] | 2 | 2015-02-25T23:05:21.000Z | 2021-11-07T13:15:08.000Z | from distutils.core import setup
setup(
name = "django-varnish",
version = '0.1',
url = 'http://opensource.washingtontimes.com/projects/django-varnish/',
author = 'Justin Quick',
author_email= 'justquick@gmail.com',
long_description=open('README.rst').read(),
description = 'Integration betw... | 31.285714 | 119 | 0.703196 | 51 | 438 | 6 | 0.784314 | 0.084967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.171233 | 438 | 13 | 120 | 33.692308 | 0.837466 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99d1bc40cd45f1b18fc86b0fb1fe8abea19c68d7 | 5,631 | py | Python | idfy_rest_client/models/update_signer_request_wrapper.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/update_signer_request_wrapper.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/update_signer_request_wrapper.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.update_signer_request_wrapper
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
from idfy_rest_client.api_helper import APIHelper
import idfy_rest_client.models.redirect_settings
import idfy_rest_client.mode... | 42.338346 | 187 | 0.639318 | 621 | 5,631 | 5.650564 | 0.283414 | 0.055571 | 0.047877 | 0.062696 | 0.125392 | 0.061556 | 0.023938 | 0.023938 | 0 | 0 | 0 | 0.003775 | 0.294441 | 5,631 | 132 | 188 | 42.659091 | 0.879436 | 0.37702 | 0 | 0 | 1 | 0 | 0.098082 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99d2f7973e10165dc388a3dc6849550c2db3e600 | 1,095 | py | Python | lintcode/String/956. Data Segmentation.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 23 | 2019-08-02T12:02:47.000Z | 2022-03-09T15:24:16.000Z | lintcode/String/956. Data Segmentation.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | null | null | null | lintcode/String/956. Data Segmentation.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 21 | 2019-12-22T04:47:32.000Z | 2021-09-12T14:29:35.000Z | """
Given a string str, we need to extract the symbols and words of the string in order.
Example 1:
input: str = "(hi (i am)bye)"
outut:["(","hi","(","i","am",")","bye",")"].
Explanation:Separate symbols and words.
Solution:
Go through the str, push the alphabetical into stack and append it to res list if we meet a... | 26.071429 | 107 | 0.507763 | 149 | 1,095 | 3.731544 | 0.47651 | 0.028777 | 0.053957 | 0.028777 | 0.07554 | 0.07554 | 0.07554 | 0 | 0 | 0 | 0 | 0.00578 | 0.368037 | 1,095 | 41 | 108 | 26.707317 | 0.797688 | 0.485845 | 0 | 0.444444 | 0 | 0 | 0.001873 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99d4661007ec7da5c8f2e9e867f297c616d1e26c | 709 | py | Python | src/orm.py | brianherman/Saati | b57a8c0c8030f9c21c971c2febc9dc9486386af5 | [
"Apache-2.0"
] | null | null | null | src/orm.py | brianherman/Saati | b57a8c0c8030f9c21c971c2febc9dc9486386af5 | [
"Apache-2.0"
] | 3 | 2021-09-08T03:14:51.000Z | 2022-03-12T00:57:23.000Z | src/orm.py | brianherman/Saati | b57a8c0c8030f9c21c971c2febc9dc9486386af5 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from sqlalchemy.dialects.postgresql import ARRAY, UUID
from sqlalchemy.ext.declarative import declarative_base
from pydantic import BaseModel, constr
Base = declarative_base()
class EventOrm(Base):
__tablename__ = 'EventLog'
uuid = Column(UUID, primary_key=True,... | 29.541667 | 90 | 0.733427 | 89 | 709 | 5.719101 | 0.539326 | 0.082515 | 0.066798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.170663 | 709 | 23 | 91 | 30.826087 | 0.855442 | 0 | 0 | 0 | 0 | 0 | 0.011284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99dc8a0bd852d3418f457335ddc67cfce5fb2a5d | 6,110 | py | Python | psec/secrets/generate.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 10 | 2019-01-29T19:07:18.000Z | 2020-12-27T23:30:44.000Z | psec/secrets/generate.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 1 | 2020-08-09T08:47:41.000Z | 2020-08-12T04:32:02.000Z | psec/secrets/generate.py | davedittrich/python_secrets | 63ca7001748464e1632f66cd95edf604c2b517e4 | [
"Apache-2.0"
] | 3 | 2019-01-24T20:03:23.000Z | 2021-06-29T21:23:27.000Z | # -*- coding: utf-8 -*-
import argparse
import logging
import textwrap
from cliff.command import Command
from psec.secrets_environment import (
generate_secret,
natural_number,
DELIMITER,
MAX_WORDS_LENGTH,
MIN_WORDS_LENGTH,
MAX_ACROSTIC_LENGTH,
MIN_ACROSTIC_LENGTH,
)
from xkcdpass.xkcd_pas... | 37.484663 | 116 | 0.549591 | 637 | 6,110 | 5.11617 | 0.298273 | 0.033753 | 0.052163 | 0.025775 | 0.234428 | 0.150353 | 0.150353 | 0.150353 | 0.092053 | 0.03989 | 0 | 0.004813 | 0.353846 | 6,110 | 162 | 117 | 37.716049 | 0.820669 | 0.081997 | 0 | 0.176056 | 1 | 0 | 0.325644 | 0.020207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.042254 | 0.042254 | 0 | 0.077465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99e39fb9e2ee58c7a80711e9248f8542540eb0a0 | 312 | py | Python | veyon/PySwitchTracer/tasks/task1/task_test1.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | veyon/PySwitchTracer/tasks/task1/task_test1.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | veyon/PySwitchTracer/tasks/task1/task_test1.py | IzayoiRin/VirtualVeyonST | d0c4035dba81d02135ad54f4c5a5d463e95f7925 | [
"MIT"
] | null | null | null | import time
from tasks.capp import app
from others.affine_applications import MoveApps
@app.task(name="sdc.move11", bind=True)
def task_1(self, x):
time.sleep(1)
return MoveApps(":move", x).foo()
@app.task(name="sdc.move12", bind=True)
def task_2(self, x):
return MoveApps(":move", x + 1).foo()
| 19.5 | 47 | 0.685897 | 51 | 312 | 4.137255 | 0.509804 | 0.066351 | 0.104265 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.147436 | 312 | 15 | 48 | 20.8 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
99e5a4af88f6d1b77d00c07dfde7cef554ce50b1 | 220 | py | Python | 20_exec/12_.py | ScriptErrorVGM/Project2021 | 593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb | [
"BSD-3-Clause"
] | null | null | null | 20_exec/12_.py | ScriptErrorVGM/Project2021 | 593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb | [
"BSD-3-Clause"
] | null | null | null | 20_exec/12_.py | ScriptErrorVGM/Project2021 | 593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb | [
"BSD-3-Clause"
] | null | null | null | def main():
c = input()
if c != c[::-1]: # -1 шаг строки: от конца к началу
print("It's not palindrome")
else:
print("It's palindrome")
if __name__ == "__main__":
main() | 22 | 56 | 0.486364 | 29 | 220 | 3.413793 | 0.655172 | 0.141414 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.354545 | 220 | 10 | 57 | 22 | 0.683099 | 0.145455 | 0 | 0 | 0 | 0 | 0.235955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99e60bbfcc605867a9682aab23555342422a8ed8 | 1,657 | py | Python | src/gbstrategy/core/_Interface.py | GrayBoxAI/GrayBoxStrategy | 7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b | [
"Apache-2.0"
] | 1 | 2017-12-04T16:20:59.000Z | 2017-12-04T16:20:59.000Z | src/gbstrategy/core/_Interface.py | GrayBoxAI/GrayBoxStrategy | 7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b | [
"Apache-2.0"
] | null | null | null | src/gbstrategy/core/_Interface.py | GrayBoxAI/GrayBoxStrategy | 7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b | [
"Apache-2.0"
] | 1 | 2017-12-03T21:38:03.000Z | 2017-12-03T21:38:03.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | 31.264151 | 87 | 0.658419 | 217 | 1,657 | 4.894009 | 0.460829 | 0.056497 | 0.033898 | 0.030132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003255 | 0.258298 | 1,657 | 52 | 88 | 31.865385 | 0.860862 | 0.375377 | 0 | 0 | 0 | 0 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99e82ceee46963fed497a364bf93cfa803bfca4f | 5,430 | py | Python | bordercamp/irc.py | mk-fg/bordercamp-irc-bot | c4eda5739e46bc98d6bb1f912285d210e0fa9578 | [
"WTFPL"
] | 1 | 2016-04-02T02:52:21.000Z | 2016-04-02T02:52:21.000Z | bordercamp/irc.py | mk-fg/bordercamp-irc-bot | c4eda5739e46bc98d6bb1f912285d210e0fa9578 | [
"WTFPL"
] | 2 | 2019-10-14T16:56:52.000Z | 2019-10-14T16:57:03.000Z | bordercamp/irc.py | mk-fg/bordercamp-irc-bot | c4eda5739e46bc98d6bb1f912285d210e0fa9578 | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import itertools as it, operator as op, functools as ft
from datetime import datetime
import os, sys
from twisted.internet import reactor, protocol, defer
from twisted.words.service import IRCUser, IRCFactory, InMemoryWordsRealm, Group
from twisted.cred im... | 31.941176 | 86 | 0.717311 | 727 | 5,430 | 5.275103 | 0.331499 | 0.031291 | 0.016688 | 0.011734 | 0.070404 | 0.022947 | 0.022947 | 0.022947 | 0 | 0 | 0 | 0.003225 | 0.143462 | 5,430 | 169 | 87 | 32.130178 | 0.821329 | 0.030018 | 0 | 0 | 0 | 0 | 0.103612 | 0.004373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183333 | false | 0.075 | 0.083333 | 0.008333 | 0.416667 | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
99ec3a892e6d861858a8898f705378cd048e4725 | 322 | py | Python | UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py | Sanjay9921/Python | 05ac161dd46f9b4731a5c14ff5ef52adb705e8e6 | [
"MIT"
] | null | null | null | UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py | Sanjay9921/Python | 05ac161dd46f9b4731a5c14ff5ef52adb705e8e6 | [
"MIT"
] | null | null | null | UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py | Sanjay9921/Python | 05ac161dd46f9b4731a5c14ff5ef52adb705e8e6 | [
"MIT"
] | null | null | null | str1 = "Liu Kang "
str2 = "Johnny Cage "
str3 = "Scorpion "
str4 = "Sub-Zero "
str5 = "Sonya "
str6 = "Test yo might! "
print(str1 + str2 + str3 + str4 + str5 + str6)
print(str3 * 5)
print(str3 * (5 + 4))
print(str3 * 5 + "4")
today = "Tuesday"
# bool - in operator
print("day" in today)
print("scorpion" in today)
... | 14.636364 | 46 | 0.602484 | 48 | 322 | 4.041667 | 0.541667 | 0.139175 | 0.154639 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080321 | 0.226708 | 322 | 21 | 47 | 15.333333 | 0.698795 | 0.055901 | 0 | 0 | 0 | 0 | 0.264214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
99ed63650099b14a883f9ecbd4f6ae0c07c8f1c1 | 455 | py | Python | produtos/migrations/0007_auto_20171110_1138.py | Moisestuli/karrata | 962ce0c573214bfc83720727c9cacae823a8c372 | [
"MIT"
] | null | null | null | produtos/migrations/0007_auto_20171110_1138.py | Moisestuli/karrata | 962ce0c573214bfc83720727c9cacae823a8c372 | [
"MIT"
] | null | null | null | produtos/migrations/0007_auto_20171110_1138.py | Moisestuli/karrata | 962ce0c573214bfc83720727c9cacae823a8c372 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-10 10:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('produtos', '0006_auto_20171109_1046'),
]
operations = [
migrations.AlterModelOption... | 22.75 | 86 | 0.626374 | 48 | 455 | 5.708333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095376 | 0.23956 | 455 | 19 | 87 | 23.947368 | 0.696532 | 0.149451 | 0 | 0 | 1 | 0 | 0.21875 | 0.059896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99ef47ff1aa8ca73bbcd6a2b57b5a1a59859723b | 562 | py | Python | users/models.py | barackmaund1/Awwards- | 8b749e6ad6a8124ad07434e9fad537d1abe5f274 | [
"MIT"
] | null | null | null | users/models.py | barackmaund1/Awwards- | 8b749e6ad6a8124ad07434e9fad537d1abe5f274 | [
"MIT"
] | 8 | 2021-03-19T11:24:02.000Z | 2022-03-12T00:34:31.000Z | users/models.py | barackmaund1/Awwards- | 8b749e6ad6a8124ad07434e9fad537d1abe5f274 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics/')
contacts=models.CharF... | 31.222222 | 79 | 0.713523 | 77 | 562 | 5.077922 | 0.558442 | 0.051151 | 0.092072 | 0.122762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010776 | 0.174377 | 562 | 18 | 80 | 31.222222 | 0.831897 | 0.042705 | 0 | 0 | 0 | 0 | 0.096834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
99f78b44d998e9fd68c5145c5184e776015a4e3f | 1,098 | py | Python | acxDataProcessor/utils/DsapiParams.py | etbrow/dsapi-hashed-pii-example | 9d6bb367c82173ece97b587d5498f24964dadce1 | [
"MIT"
] | 1 | 2021-02-11T23:16:05.000Z | 2021-02-11T23:16:05.000Z | acxDataProcessor/utils/DsapiParams.py | etbrow/dsapi-hashed-pii-example | 9d6bb367c82173ece97b587d5498f24964dadce1 | [
"MIT"
] | null | null | null | acxDataProcessor/utils/DsapiParams.py | etbrow/dsapi-hashed-pii-example | 9d6bb367c82173ece97b587d5498f24964dadce1 | [
"MIT"
] | 2 | 2021-02-12T13:40:17.000Z | 2022-02-21T08:07:56.000Z | class DsapiParams:
def __init__(self, limit=1, bundles = [], role=None, tenant=None, format = 'json'):
self.limit = limit
self.bundles = bundles
self.role = role
self.tenant = tenant
self.format = format
def formatForRequest(self):
formattedString = '?'
n... | 27.45 | 87 | 0.500911 | 92 | 1,098 | 5.934783 | 0.23913 | 0.054945 | 0.087912 | 0.197802 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010401 | 0.387067 | 1,098 | 40 | 88 | 27.45 | 0.800892 | 0 | 0 | 0.266667 | 0 | 0 | 0.038217 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82057f6d4aa9a37f5569d8b86010cd7634ed207a | 1,534 | py | Python | data/data_structures.py | BrancoLab/LocomotionControl | 6dc16c29c13b31f6ad70af954a237e379ee10846 | [
"MIT"
] | null | null | null | data/data_structures.py | BrancoLab/LocomotionControl | 6dc16c29c13b31f6ad70af954a237e379ee10846 | [
"MIT"
] | 2 | 2020-11-23T16:32:11.000Z | 2020-11-23T16:32:11.000Z | data/data_structures.py | BrancoLab/LocomotionControl | 6dc16c29c13b31f6ad70af954a237e379ee10846 | [
"MIT"
] | null | null | null | import pandas as pd
from dataclasses import dataclass
import numpy as np
from collections import namedtuple
@dataclass
class TrackingData:
bp: str
x: np.ndarray
y: np.ndarray
bp_speed: np.ndarray
speed: np.ndarray = None
acceleration: np.ndarray = None
orientation: np.ndarray = None
an... | 28.943396 | 72 | 0.589961 | 179 | 1,534 | 4.994413 | 0.413408 | 0.130872 | 0.145414 | 0.055928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000956 | 0.318123 | 1,534 | 52 | 73 | 29.5 | 0.853728 | 0.069752 | 0 | 0 | 0 | 0 | 0.021629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.55814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
820769d8cbca46aadeaef8a6c1a4093e4780c646 | 2,626 | py | Python | tests/phase1_test.py | jfklorenz/Python-RMedian | 8c490e003459e94b73fa2a4f51019d880dbb80b2 | [
"MIT"
] | 1 | 2020-10-27T19:58:31.000Z | 2020-10-27T19:58:31.000Z | tests/phase1_test.py | jfklorenz/RMedian-Algorithm | 8c490e003459e94b73fa2a4f51019d880dbb80b2 | [
"MIT"
] | null | null | null | tests/phase1_test.py | jfklorenz/RMedian-Algorithm | 8c490e003459e94b73fa2a4f51019d880dbb80b2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# ==================================================
"""
File: RMedian - Unittest - Phase 1
Author: Julian Lorenz
"""
# ==================================================
# Import
import math
import random
import pytest
# ==================================================
# Phase 1
def phase1(X,... | 26.795918 | 79 | 0.392232 | 376 | 2,626 | 2.731383 | 0.244681 | 0.023369 | 0.043817 | 0.038948 | 0.266796 | 0.223953 | 0.101266 | 0.074002 | 0.074002 | 0 | 0 | 0.078947 | 0.319878 | 2,626 | 97 | 80 | 27.072165 | 0.496081 | 0.247906 | 0 | 0 | 0 | 0 | 0.000514 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.034483 | false | 0 | 0.051724 | 0 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
820cd6881da500183d8e03a45a3245bddb2db4af | 4,363 | py | Python | pychemia/__init__.py | quanshengwu/PyChemia | 98e9f7a1118b694dbda3ee75411ff8f8d7b9688b | [
"MIT"
] | 1 | 2021-03-26T12:34:45.000Z | 2021-03-26T12:34:45.000Z | pychemia/__init__.py | quanshengwu/PyChemia | 98e9f7a1118b694dbda3ee75411ff8f8d7b9688b | [
"MIT"
] | null | null | null | pychemia/__init__.py | quanshengwu/PyChemia | 98e9f7a1118b694dbda3ee75411ff8f8d7b9688b | [
"MIT"
] | null | null | null | """
PyChemia is a python library for automatize atomistic-level calculations. The library provide an API to manipulate
structures, store structures and properties in a Mongo database, search for new structures of a given composition,
interact with several atomistic simulation codes and visualize atomistic-related data
... | 25.51462 | 114 | 0.674307 | 531 | 4,363 | 5.329567 | 0.305085 | 0.084099 | 0.077739 | 0.047703 | 0.225442 | 0.134276 | 0.122968 | 0.04629 | 0.028975 | 0 | 0 | 0.011593 | 0.228971 | 4,363 | 170 | 115 | 25.664706 | 0.829667 | 0.277332 | 0 | 0.293103 | 0 | 0 | 0.122147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025862 | false | 0.008621 | 0.396552 | 0.008621 | 0.439655 | 0.112069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
820cf75d4b3f5980c0f2063a6d5d3723959d1b88 | 958 | py | Python | maasaic/apps/users/managers.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | maasaic/apps/users/managers.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | maasaic/apps/users/managers.py | fceruti/maasaic | 4536c102301fa9575d9bcb29ec0d2332ad6780ba | [
"MIT"
] | null | null | null | from django.contrib.auth.models import BaseUserManager
class UserManager(BaseUserManager):
"""
A custom user manager to deal with emails as unique identifiers for auth
instead of usernames. The default that's used is "UserManager"
"""
def create_user(self, username, email, password, **extra_fields... | 34.214286 | 76 | 0.661795 | 116 | 958 | 5.344828 | 0.5 | 0.08871 | 0.087097 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246347 | 958 | 27 | 77 | 35.481481 | 0.858726 | 0.203549 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.25 | 0.0625 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
82158af77ddcb6b3f44630f4f3d88bbb57c99820 | 793 | py | Python | bin/Lib/test/test_asyncio/__init__.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 36 | 2015-02-04T10:43:31.000Z | 2022-03-30T13:01:12.000Z | bin/Lib/test/test_asyncio/__init__.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 9 | 2015-03-17T05:56:16.000Z | 2021-11-17T09:31:50.000Z | bin/Lib/test/test_asyncio/__init__.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 22 | 2015-05-13T17:37:35.000Z | 2022-01-25T06:24:42.000Z | import os
import sys
import unittest
from test.support import run_unittest, import_module
# Skip tests if we don't have threading.
import_module('threading')
# Skip tests if we don't have concurrent.futures.
import_module('concurrent.futures')
def suite():
tests = unittest.TestSuite()
loader = unittest.TestL... | 26.433333 | 63 | 0.631778 | 97 | 793 | 4.979381 | 0.505155 | 0.074534 | 0.045549 | 0.05383 | 0.086957 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0 | 0.001715 | 0.264817 | 793 | 29 | 64 | 27.344828 | 0.826758 | 0.108449 | 0 | 0 | 0 | 0 | 0.073864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
821f9c4ee53b4e67fe7293e0648f1d824408b3f9 | 4,298 | py | Python | trace/trace.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | trace/trace.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | trace/trace.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | from data_viewer import *
from volume3d_util import *
from contour_processing import *
import cv
from best_path import *
inputStack = "o:\\images\\neuropil\\seg"
outputFolder = "o:\\trace_output"
box = Box()
box.cornerA = [0, 0, 200]
box.cornerB = [700, 500, 210]
v = loadImageStack(inputStack, box)
writeStack(outpu... | 27.729032 | 100 | 0.557236 | 658 | 4,298 | 3.620061 | 0.196049 | 0.02267 | 0.025189 | 0.047019 | 0.263224 | 0.222922 | 0.218304 | 0.217045 | 0.185139 | 0.185139 | 0 | 0.051274 | 0.269428 | 4,298 | 154 | 101 | 27.909091 | 0.707325 | 0.067008 | 0 | 0.043956 | 0 | 0 | 0.026292 | 0.007386 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054945 | null | null | 0.054945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
822372b75d8fbe9ac2e0ba209d3d7cc13b9ea07d | 12,169 | py | Python | mrp_system/models.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | 1 | 2018-11-09T02:09:14.000Z | 2018-11-09T02:09:14.000Z | mrp_system/models.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | null | null | null | mrp_system/models.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | null | null | null | from django.db import models
import datetime
#from django.contrib.sites.models import Site
class Vendor(models.Model):
TYPE_CHOICES = (
('manufacturer', 'manufacturer'),
('distributor', 'distributor'),
)
name = models.CharField(max_length=128, unique=True)
vendor_type = models.CharF... | 43 | 122 | 0.667598 | 1,423 | 12,169 | 5.574139 | 0.178496 | 0.1059 | 0.12708 | 0.16944 | 0.492184 | 0.445159 | 0.388427 | 0.190242 | 0.151664 | 0.138553 | 0 | 0.038994 | 0.216041 | 12,169 | 282 | 123 | 43.152482 | 0.792453 | 0.05021 | 0 | 0.219828 | 0 | 0 | 0.081446 | 0.002106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.008621 | 0.030172 | 0.607759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8223f8a99d965f457dd7e252a84202f7ab0d8cc4 | 813 | py | Python | testing/tests/test_dummy.py | MaurizioBella/BotyPy | 5d6b7c4343ef42ff6a7493f2aaf565f64dad5c41 | [
"MIT"
] | null | null | null | testing/tests/test_dummy.py | MaurizioBella/BotyPy | 5d6b7c4343ef42ff6a7493f2aaf565f64dad5c41 | [
"MIT"
] | null | null | null | testing/tests/test_dummy.py | MaurizioBella/BotyPy | 5d6b7c4343ef42ff6a7493f2aaf565f64dad5c41 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import pytest
def sum(num1, num2):
"""It returns sum of two numbers"""
return num1 + num2
# make sure to start function name with test
@pytest.mark.parametrize... | 26.225806 | 87 | 0.586716 | 132 | 813 | 3.522727 | 0.401515 | 0.103226 | 0.094624 | 0.122581 | 0.215054 | 0.107527 | 0.107527 | 0.107527 | 0.107527 | 0.107527 | 0 | 0.080592 | 0.252153 | 813 | 30 | 88 | 27.1 | 0.684211 | 0.264453 | 0 | 0.125 | 0 | 0 | 0.033956 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
822902858ffd7f29df3c979fb531114936d3a5ed | 873 | py | Python | variants/migrations/0047_auto_20190701_1625.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 14 | 2019-09-30T12:44:17.000Z | 2022-02-04T14:45:16.000Z | variants/migrations/0047_auto_20190701_1625.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 244 | 2021-03-26T15:13:15.000Z | 2022-03-31T15:48:04.000Z | variants/migrations/0047_auto_20190701_1625.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 8 | 2020-05-19T21:55:13.000Z | 2022-03-31T07:02:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-07-01 16:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("variants", "0046_partition_smallvariants_table")]
operations =... | 31.178571 | 79 | 0.627721 | 89 | 873 | 5.977528 | 0.662921 | 0.045113 | 0.052632 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036107 | 0.270332 | 873 | 27 | 80 | 32.333333 | 0.799058 | 0.079038 | 0 | 0.1 | 1 | 0 | 0.219725 | 0.072409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
822e782f16bc428e61261ae8e8000a61fb92b939 | 1,972 | py | Python | utils.py | floschne/TERAN | 60a3644530ac3f28c89265a46d14e0c5fcf0da3d | [
"Apache-2.0"
] | null | null | null | utils.py | floschne/TERAN | 60a3644530ac3f28c89265a46d14e0c5fcf0da3d | [
"Apache-2.0"
] | null | null | null | utils.py | floschne/TERAN | 60a3644530ac3f28c89265a46d14e0c5fcf0da3d | [
"Apache-2.0"
] | 1 | 2020-12-20T20:15:29.000Z | 2020-12-20T20:15:29.000Z | from collections import OrderedDict
import numpy
from models.teran import TERAN
def get_model(config):
model = TERAN(config)
return model
def dot_sim(x, y):
return numpy.dot(x, y.T)
def cosine_sim(x, y):
x = x / numpy.expand_dims(numpy.linalg.norm(x, axis=1), 1)
y = y / numpy.expand_dims(num... | 24.962025 | 75 | 0.564909 | 275 | 1,972 | 3.956364 | 0.378182 | 0.055147 | 0.009191 | 0.027574 | 0.086397 | 0.086397 | 0 | 0 | 0 | 0 | 0 | 0.013294 | 0.313387 | 1,972 | 78 | 76 | 25.282051 | 0.790251 | 0.208418 | 0 | 0.130435 | 0 | 0 | 0.009138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0 | 0.065217 | 0.021739 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
822fb9cc31bd7348cd34bf3de00f4ec07e26322e | 3,329 | py | Python | mantrap/utility/shaping.py | simon-schaefer/mantrap | 9a2b3f32a0005cc0cb79bb78924f09da5a94587d | [
"MIT"
] | 7 | 2020-05-11T18:13:27.000Z | 2022-03-09T02:52:48.000Z | mantrap/utility/shaping.py | StanfordASL/mantrap | 9a2b3f32a0005cc0cb79bb78924f09da5a94587d | [
"MIT"
] | null | null | null | mantrap/utility/shaping.py | StanfordASL/mantrap | 9a2b3f32a0005cc0cb79bb78924f09da5a94587d | [
"MIT"
] | 3 | 2020-12-09T00:03:26.000Z | 2022-03-03T10:39:03.000Z | import torch
def check_ego_state(x: torch.Tensor, enforce_temporal: bool = False) -> bool:
assert not torch.any(torch.isnan(x))
if enforce_temporal:
assert x.size() == torch.Size([5])
else:
assert x.numel() in [4, 5]
return True
def check_ego_action(x: torch.Tensor) -> bool:
asse... | 30.541284 | 116 | 0.621808 | 555 | 3,329 | 3.596396 | 0.118919 | 0.078156 | 0.108216 | 0.09018 | 0.723948 | 0.599699 | 0.589178 | 0.542084 | 0.529058 | 0.513527 | 0 | 0.022521 | 0.239712 | 3,329 | 108 | 117 | 30.824074 | 0.7661 | 0.082908 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 1 | 0.130952 | false | 0 | 0.011905 | 0.011905 | 0.27381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8233e77c449f33aa14324409d82a1ef9635d9309 | 1,169 | py | Python | sync.py | delanym/kala | b4e760d4def03198aacf182d279c5c97ddb04a01 | [
"BSD-3-Clause"
] | null | null | null | sync.py | delanym/kala | b4e760d4def03198aacf182d279c5c97ddb04a01 | [
"BSD-3-Clause"
] | null | null | null | sync.py | delanym/kala | b4e760d4def03198aacf182d279c5c97ddb04a01 | [
"BSD-3-Clause"
] | null | null | null |
# When does the synodic new moon come back to the same nakshatra. How many revolutions?
# By how many degrees does the new moon travel each synodic month? A: 29,105216732 degrees
# So in 12,368916655 months the new moon will have returned to the same sign, but it would
# have overshot or fallen short of the same naksh... | 22.056604 | 112 | 0.666382 | 205 | 1,169 | 3.785366 | 0.468293 | 0.036082 | 0.054124 | 0.048969 | 0.145619 | 0.051546 | 0.051546 | 0.051546 | 0.051546 | 0.051546 | 0 | 0.133939 | 0.246364 | 1,169 | 52 | 113 | 22.480769 | 0.746879 | 0.282293 | 0 | 0.090909 | 0 | 0 | 0.106977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8234fc5721781919e7bf6e4d1bddfdab3b0544f6 | 351 | py | Python | openbook_circles/validators.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_circles/validators.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_circles/validators.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | from rest_framework.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
from openbook_circles.models import Circle
def circle_id_exists(circle_id):
count = Circle.objects.filter(id=circle_id).count()
if count == 0:
raise ValidationError(
_('The circl... | 25.071429 | 55 | 0.720798 | 44 | 351 | 5.545455 | 0.659091 | 0.098361 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.202279 | 351 | 13 | 56 | 27 | 0.867857 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.