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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6d14c3a0e50cbaa9937240a272a4ce70adc37f9 | 930 | py | Python | django/publicmapping/redistricting/management/__init__.py | azavea/district-builder-dtl-pa | 2906bc9eba52e5d9d05e3ed964990bd2c53f5e24 | [
"Apache-2.0"
] | 5 | 2018-08-18T13:34:21.000Z | 2022-03-09T11:32:24.000Z | django/publicmapping/redistricting/management/__init__.py | azavea/district-builder-dtl-pa | 2906bc9eba52e5d9d05e3ed964990bd2c53f5e24 | [
"Apache-2.0"
] | 66 | 2018-04-10T15:45:31.000Z | 2019-12-13T18:19:10.000Z | django/publicmapping/redistricting/management/__init__.py | azavea/district-builder-dtl-pa | 2906bc9eba52e5d9d05e3ed964990bd2c53f5e24 | [
"Apache-2.0"
] | 1 | 2018-10-28T16:28:10.000Z | 2018-10-28T16:28:10.000Z | """
Define redistricting.management as a Python package.
This file serves the purpose of defining a Python package for
this folder. It is intentionally left empty.
This file is part of The Public Mapping Project
https://github.com/PublicMapping/
License:
Copyright 2010-2012 Micah Altman, Michael McDonald
Li... | 33.214286 | 76 | 0.746237 | 137 | 930 | 5.065693 | 0.671533 | 0.086455 | 0.040346 | 0.04611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016238 | 0.205376 | 930 | 27 | 77 | 34.444444 | 0.922869 | 0.990323 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6e3189a5cfb70ec988b1b0fd36cdbdc80c9b9ba | 313 | py | Python | crawl/dirbot/items.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | 5 | 2015-05-25T19:58:55.000Z | 2022-02-11T16:19:40.000Z | crawl/dirbot/items.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | 6 | 2015-01-01T10:57:15.000Z | 2015-02-03T08:27:34.000Z | crawl/dirbot/items.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | null | null | null | from scrapy.item import Item, Field
class Website(Item):
name = Field()
description = Field()
url = Field()
Stadt_URL = Field()
URL_Datei = Field()
URL_Text = Field()
URL_Dateiname = Field()
Format = Field()
URL_PARENT = Field()
Title_PARENT = Field()
geo = Field()
| 18.411765 | 35 | 0.600639 | 37 | 313 | 4.918919 | 0.486486 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277955 | 313 | 16 | 36 | 19.5625 | 0.80531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f6ecbcf40f6dd83120b01bc62047793e15b78d5a | 16,440 | py | Python | src/libraries/brython/Lib/subprocess.py | coursemdetw/reeborg_tw | 953217f86a7ccb1e4807cf94f6e885643a484352 | [
"MIT"
] | 3 | 2017-04-04T06:18:16.000Z | 2020-01-17T02:03:39.000Z | src/libraries/brython/Lib/subprocess.py | coursemdetw/reeborg_tw | 953217f86a7ccb1e4807cf94f6e885643a484352 | [
"MIT"
] | 1 | 2019-07-08T05:28:59.000Z | 2021-01-14T10:44:49.000Z | src/libraries/brython/Lib/subprocess.py | coursemdetw/reeborg_tw | 953217f86a7ccb1e4807cf94f6e885643a484352 | [
"MIT"
] | 8 | 2017-06-27T05:38:52.000Z | 2021-06-19T16:00:03.000Z | """subprocess - Subprocesses with accessible I/O streams
This module allows you to spawn processes, connect to their
input/output/error pipes, and obtain their return codes. This module
intends to replace several other, older modules and functions, like:
os.system
os.spawn*
os.popen*
popen2.*
commands.*
Information... | 31.554702 | 128 | 0.698844 | 2,371 | 16,440 | 4.799663 | 0.203712 | 0.011951 | 0.010545 | 0.014763 | 0.301054 | 0.269772 | 0.228647 | 0.21819 | 0.20123 | 0.188225 | 0 | 0.006694 | 0.200304 | 16,440 | 520 | 129 | 31.615385 | 0.858903 | 0 | 0 | 0.24 | 0 | 0.02 | 0.375989 | 0.093008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.24 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
100ba5e890c3ecd040448a4f81da7ceaf2f8fd3c | 392 | py | Python | src/ros/src/ros_homebot_lrf/setup.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 8 | 2017-11-19T01:42:59.000Z | 2021-02-08T09:18:58.000Z | src/ros/src/ros_homebot_lrf/setup.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 24 | 2017-02-14T16:50:02.000Z | 2017-06-07T18:38:20.000Z | src/ros/src/ros_homebot_lrf/setup.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 6 | 2017-05-17T03:07:05.000Z | 2019-11-14T09:33:06.000Z | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['ros_homebot_lrf'],
package_dir={'': 'src'},
# install_requires=[
# 'Pillow>=2.3.0',
# 'numpy>=1.8.2',
# 'pytest>=1.6.1',
# ... | 20.631579 | 60 | 0.579082 | 52 | 392 | 4.173077 | 0.673077 | 0.156682 | 0.202765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053156 | 0.232143 | 392 | 18 | 61 | 21.777778 | 0.667774 | 0.441327 | 0 | 0 | 1 | 0 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63dc65c1cf57fbbde50c72ac05783ed7fac8ab1c | 555 | py | Python | src/creeps/__init__.py | ppolewicz/screeps-starter-python | dd2f5646a53c9353bf99e976e5f362e297715e96 | [
"MIT"
] | null | null | null | src/creeps/__init__.py | ppolewicz/screeps-starter-python | dd2f5646a53c9353bf99e976e5f362e297715e96 | [
"MIT"
] | null | null | null | src/creeps/__init__.py | ppolewicz/screeps-starter-python | dd2f5646a53c9353bf99e976e5f362e297715e96 | [
"MIT"
] | null | null | null | from creeps.builder import Builder
from creeps.harvester import Harvester
from creeps.miner import Miner
from creeps.hauler import Hauler
from creeps.scout import Scout
from creeps.claimer import Claimer
from creeps.upgrader import Upgrader
from creeps.settler import Settler
from creeps.cleanser import Cleanser
CREEP... | 24.130435 | 38 | 0.736937 | 66 | 555 | 6.181818 | 0.227273 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172973 | 555 | 22 | 39 | 25.227273 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.111712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
120011f715c9374a621c118af4124b349fcab0c8 | 6,671 | py | Python | test/test_dpres_plevel.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 4 | 2021-02-20T20:02:11.000Z | 2021-11-24T13:35:32.000Z | test/test_dpres_plevel.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 27 | 2020-12-07T17:00:05.000Z | 2022-03-24T16:42:17.000Z | test/test_dpres_plevel.py | NCAR/geocat-f2py | fee07e680f61ca2ebfbb33f1554d9d85271fa32a | [
"Apache-2.0"
] | 4 | 2021-01-07T01:50:11.000Z | 2021-07-07T13:05:42.000Z | import sys
import time
import unittest as ut
import numpy as np
import numpy.testing as nt
import xarray as xr
# Import from directory structure if coverage test, or from installed
# packages otherwise
if "--cov" in str(sys.argv):
from src.geocat.f2py import dpres_plevel
else:
from geocat.f2py import dpres_pl... | 41.69375 | 84 | 0.705142 | 1,096 | 6,671 | 3.916058 | 0.135949 | 0.136067 | 0.198509 | 0.257223 | 0.747437 | 0.687558 | 0.585275 | 0.585275 | 0.551258 | 0.526794 | 0 | 0.176812 | 0.172538 | 6,671 | 159 | 85 | 41.955975 | 0.600725 | 0.063109 | 0 | 0.163793 | 0 | 0 | 0.000802 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1201a1c61fecb43de521f62a649ca54dc060a49c | 1,698 | py | Python | authentication/models.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | authentication/models.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | authentication/models.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import (AbstractBaseUser,BaseUserManager,PermissionsMixin)
from rest_framework_simplejwt.tokens import RefreshToken
# Create your models here.
class UserManager(BaseUserManager):
def create_user(self,username,email,password=None):
if username... | 28.779661 | 90 | 0.699647 | 204 | 1,698 | 5.681373 | 0.357843 | 0.02761 | 0.054357 | 0.051769 | 0.217429 | 0.169111 | 0.115617 | 0.056946 | 0 | 0 | 0 | 0.004468 | 0.209069 | 1,698 | 59 | 91 | 28.779661 | 0.858526 | 0.014134 | 0 | 0.1 | 0 | 0 | 0.062762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.075 | 0.025 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
1204924c2340fdc2863f440dc37f2be0f500c12f | 2,915 | py | Python | scripts/construct_bakeoff_graphs.py | vgteam/toil-vg | 9ef7175d110d8f82e63330fb275c05cd8c1c7f32 | [
"Apache-2.0"
] | 6 | 2019-08-04T17:15:53.000Z | 2022-01-19T03:54:57.000Z | scripts/construct_bakeoff_graphs.py | vgteam/toil-vg | 9ef7175d110d8f82e63330fb275c05cd8c1c7f32 | [
"Apache-2.0"
] | 245 | 2017-07-19T16:41:13.000Z | 2021-06-12T05:06:46.000Z | scripts/construct_bakeoff_graphs.py | vgteam/toil-vg | 9ef7175d110d8f82e63330fb275c05cd8c1c7f32 | [
"Apache-2.0"
] | 11 | 2017-08-03T05:42:28.000Z | 2021-04-06T08:06:58.000Z | #!/usr/bin/python
"""
Locally regenerate all the bakeoff regions graphs and indexes that are
found here s3://vg-data/bakeoff/
The input fasta's and vcf's are expected to be there already.
Assumes you have authenticated S3 access configured. If not, the files are
mirrored to https://courtyard.gi.ucsc.edu/~anovak/vg-data... | 37.371795 | 97 | 0.61578 | 399 | 2,915 | 4.305764 | 0.380952 | 0.048894 | 0.030268 | 0.026193 | 0.175786 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077093 | 0.225729 | 2,915 | 77 | 98 | 37.857143 | 0.684094 | 0.050429 | 0 | 0.038462 | 1 | 0 | 0.215951 | 0.058078 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.019231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1209b4045b42d1585afad005fd46757536e6bbca | 295 | py | Python | coolshell-puzzle-answers/3-QR Code.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | coolshell-puzzle-answers/3-QR Code.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | coolshell-puzzle-answers/3-QR Code.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | a = 'abcdefghijklmnopqrstuvwxyz'
b = 'pvwdgazxubqfsnrhocitlkeymj'
trans = str.maketrans(b, a)
src = 'Wxgcg txgcg ui p ixgff, txgcg ui p epm. I gyhgwt mrl lig txg ixgff wrsspnd tr irfkg txui hcrvfgs, nre, hfgpig tcm liunz txg crt13 ra "ixgff" tr gntgc ngyt fgkgf.'
print(src.translate(trans))
| 32.777778 | 169 | 0.749153 | 46 | 295 | 4.804348 | 0.76087 | 0.063348 | 0.072398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.162712 | 295 | 8 | 170 | 36.875 | 0.88664 | 0 | 0 | 0 | 0 | 0.2 | 0.722034 | 0.176271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
120a22cf54294f2464f7a758d3cafbafffe457cb | 1,017 | py | Python | Sistema/sisprel/backend/app/app/models/survey.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | Sistema/sisprel/backend/app/app/models/survey.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | Sistema/sisprel/backend/app/app/models/survey.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import TYPE_CHECKING
from sqlalchemy.sql.schema import PrimaryKeyConstraint, UniqueConstraint
from app.db.base_class import Base
from sqlalchemy import Column, DateTime, ForeignKey, Integer, Boolean, String, Text
from sqlalchemy.orm import relationship
if TYPE_CHECKING:
... | 39.115385 | 93 | 0.748279 | 126 | 1,017 | 5.960317 | 0.47619 | 0.055925 | 0.04261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012806 | 0.155359 | 1,017 | 26 | 94 | 39.115385 | 0.861467 | 0.051131 | 0 | 0 | 0 | 0 | 0.047867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.95 | 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 | 1 | 0 | 0 | 2 |
121910570688e3e575ff87a65265bc8f835bf959 | 554 | py | Python | Ronit/mysite/grader/migrations/0005_auto_20180812_1549.py | anirbansen3027/UdacityOpenSource | c032f610a7861c234e189841f996bff877c94e34 | [
"Apache-2.0"
] | 3 | 2021-01-26T14:48:14.000Z | 2021-06-30T18:19:48.000Z | Ronit/mysite/grader/migrations/0005_auto_20180812_1549.py | anirbansen3027/UdacityOpenSource | c032f610a7861c234e189841f996bff877c94e34 | [
"Apache-2.0"
] | null | null | null | Ronit/mysite/grader/migrations/0005_auto_20180812_1549.py | anirbansen3027/UdacityOpenSource | c032f610a7861c234e189841f996bff877c94e34 | [
"Apache-2.0"
] | 1 | 2019-08-20T13:14:59.000Z | 2019-08-20T13:14:59.000Z | # Generated by Django 2.1 on 2018-08-12 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grader', '0004_auto_20180812_1546'),
]
operations = [
migrations.AlterField(
model_name='essay',
name='content',
... | 23.083333 | 54 | 0.586643 | 55 | 554 | 5.763636 | 0.672727 | 0.126183 | 0.157729 | 0.182965 | 0.22082 | 0.22082 | 0 | 0 | 0 | 0 | 0 | 0.108808 | 0.303249 | 554 | 23 | 55 | 24.086957 | 0.712435 | 0.077617 | 0 | 0.352941 | 1 | 0 | 0.123772 | 0.045187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
12207504f599104bd10565b1b9c5555424f4cc88 | 327 | py | Python | python-exercises/FirstSteps.py | forkd/jam | fd17bf5a961d5b52fc52988fea8787d48aaa140e | [
"MIT"
] | null | null | null | python-exercises/FirstSteps.py | forkd/jam | fd17bf5a961d5b52fc52988fea8787d48aaa140e | [
"MIT"
] | null | null | null | python-exercises/FirstSteps.py | forkd/jam | fd17bf5a961d5b52fc52988fea8787d48aaa140e | [
"MIT"
] | null | null | null | # Comecando a programar em Python!
# Imprime uma linha de texto na tela.
print "Hello World!"
# Inserindo uma virgula apos o comando print, o interpretador nao fara' a
# +quebra de linha. Ele ira' inserir um espaco ao final da string.
print "Welcome",
print "to Python!"
# Usando sequencias de escape!
print "Hello\ng... | 27.25 | 73 | 0.743119 | 51 | 327 | 4.764706 | 0.764706 | 0.082305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174312 | 327 | 12 | 74 | 27.25 | 0.9 | 0.715596 | 0 | 0 | 0 | 0 | 0.488636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
122311ebba1bc180fb4f8d5aa3209b212072f653 | 55 | py | Python | packages/pytea/pylib/torch/backends/cudnn/__init__.py | Sehun0819/pytea | 3f068016a71a1915722e51d977fedab01427a42c | [
"MIT"
] | 241 | 2021-03-19T01:11:44.000Z | 2022-03-25T03:15:22.000Z | packages/pytea/pylib/torch/backends/cudnn/__init__.py | Sehun0819/pytea | 3f068016a71a1915722e51d977fedab01427a42c | [
"MIT"
] | 2 | 2021-02-26T08:16:04.000Z | 2022-02-28T02:52:58.000Z | packages/pytea/pylib/torch/backends/cudnn/__init__.py | Sehun0819/pytea | 3f068016a71a1915722e51d977fedab01427a42c | [
"MIT"
] | 14 | 2021-01-08T02:22:58.000Z | 2022-01-19T14:13:14.000Z | enabled = True
deterministic = False
benchmark = False
| 13.75 | 21 | 0.781818 | 6 | 55 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 55 | 3 | 22 | 18.333333 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
123b83eb208bedb950b775960a8be9ec95386ab7 | 593 | py | Python | roboPortal/migrations/0005_auto_20200219_1747.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | null | null | null | roboPortal/migrations/0005_auto_20200219_1747.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | null | null | null | roboPortal/migrations/0005_auto_20200219_1747.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | 2 | 2021-01-30T08:22:57.000Z | 2021-02-04T09:42:59.000Z | # Generated by Django 2.1.7 on 2020-02-19 12:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('roboPortal', '0004_auto_20200219_1745'),
]
operations = [
migrations.AlterField(
model_name='problem_statement',
nam... | 24.708333 | 65 | 0.60371 | 58 | 593 | 6.017241 | 0.672414 | 0.114613 | 0.143266 | 0.166189 | 0.280802 | 0.280802 | 0.280802 | 0 | 0 | 0 | 0 | 0.096698 | 0.284992 | 593 | 23 | 66 | 25.782609 | 0.726415 | 0.075885 | 0 | 0.352941 | 1 | 0 | 0.164835 | 0.042125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
125460c63ab244f7f97aa53666b61c0f9e7ced23 | 199 | py | Python | test_motor.py | ankworld/Rpi_Therapy | e6fa454098a3947d29e469b4bbacb26fe322552f | [
"MIT"
] | null | null | null | test_motor.py | ankworld/Rpi_Therapy | e6fa454098a3947d29e469b4bbacb26fe322552f | [
"MIT"
] | null | null | null | test_motor.py | ankworld/Rpi_Therapy | e6fa454098a3947d29e469b4bbacb26fe322552f | [
"MIT"
] | null | null | null | from myLib import controlcore
from time import sleep
motor = controlcore.Motor(11, 13, 1000)
dc = 100
for i in range(10):
motor.l_drive(dc)
sleep(5)
motor.r_drive(dc)
sleep(5)
| 11.705882 | 39 | 0.663317 | 33 | 199 | 3.939394 | 0.636364 | 0.107692 | 0.184615 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098684 | 0.236181 | 199 | 16 | 40 | 12.4375 | 0.756579 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1258f0708c53f88f27bf3af12d3c109bdef0b16d | 5,707 | py | Python | app/models.py | Gupta-Anubhav12/bhagavadgita-api | 133ab6bf2a1adba943b9cbfe3394e30df5d7c8b2 | [
"MIT"
] | null | null | null | app/models.py | Gupta-Anubhav12/bhagavadgita-api | 133ab6bf2a1adba943b9cbfe3394e30df5d7c8b2 | [
"MIT"
] | null | null | null | app/models.py | Gupta-Anubhav12/bhagavadgita-api | 133ab6bf2a1adba943b9cbfe3394e30df5d7c8b2 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from typing import List
example_chapters_list = [
{
"chapter_number": 1,
"name": "अर्जुनविषादयोग",
"name_translation": "Arjuna Visada Yoga",
"name_transliterated": "Arjun Viṣhād Yog",
"name_meaning": "Arjuna's Dilemma",
"chapter_summary": "The fir... | 78.178082 | 773 | 0.729455 | 1,035 | 5,707 | 4.13913 | 0.303382 | 0.015173 | 0.018207 | 0.02381 | 0.616013 | 0.552521 | 0.550887 | 0.550887 | 0.550887 | 0.550887 | 0 | 0.005513 | 0.173646 | 5,707 | 72 | 774 | 79.263889 | 0.869805 | 0 | 0 | 0.080645 | 0 | 0.209677 | 0.791659 | 0.018048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.370968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89d1189e0d3aa08f453dd5a862cc6895c6500212 | 1,258 | py | Python | tests/csrf_tests/views.py | imjvdn/scratch-game-1 | 5dffd79f17e0b66d3d2e57262749311aca28e850 | [
"PSF-2.0",
"BSD-3-Clause"
] | 19 | 2015-07-07T02:08:59.000Z | 2021-11-08T11:05:40.000Z | tests/csrf_tests/views.py | imjvdn/scratch-game-1 | 5dffd79f17e0b66d3d2e57262749311aca28e850 | [
"PSF-2.0",
"BSD-3-Clause"
] | 57 | 2018-10-08T12:37:30.000Z | 2018-10-08T17:39:26.000Z | tests/csrf_tests/views.py | imjvdn/scratch-game-1 | 5dffd79f17e0b66d3d2e57262749311aca28e850 | [
"PSF-2.0",
"BSD-3-Clause"
] | 145 | 2019-03-14T18:54:45.000Z | 2022-03-04T20:25:31.000Z | from django.http import HttpResponse
from django.middleware.csrf import get_token
from django.template import Context, RequestContext, Template
from django.template.context_processors import csrf
from django.views.decorators.csrf import ensure_csrf_cookie
def post_form_view(request):
"""Return a POST form (withou... | 33.105263 | 90 | 0.748808 | 157 | 1,258 | 5.859873 | 0.350318 | 0.054348 | 0.052174 | 0.104348 | 0.259783 | 0.217391 | 0.126087 | 0 | 0 | 0 | 0 | 0.006404 | 0.131161 | 1,258 | 37 | 91 | 34 | 0.835316 | 0.133545 | 0 | 0.173913 | 0 | 0.043478 | 0.108939 | 0.063315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.217391 | 0.043478 | 0.652174 | 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 | 1 | 0 | 0 | 2 |
89d89098b89740a3fdaceb4946a48dc97dc7a32e | 292 | py | Python | todo.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 1 | 2020-10-06T01:27:11.000Z | 2020-10-06T01:27:11.000Z | todo.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 5 | 2019-09-19T10:08:00.000Z | 2021-08-22T18:42:58.000Z | todo.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 1 | 2019-12-14T16:01:33.000Z | 2019-12-14T16:01:33.000Z | """A module provides entrypoint API to run `to-do` task master application."""
from lib import master
def _run_master_application() -> None:
"""Runs `to-do` task master application."""
master.run(host="0.0.0.0", port=7777)
if __name__ == "__main__":
_run_master_application()
| 24.333333 | 78 | 0.691781 | 42 | 292 | 4.47619 | 0.571429 | 0.361702 | 0.085106 | 0.148936 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.160959 | 292 | 11 | 79 | 26.545455 | 0.734694 | 0.376712 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89e3fac1880b919492d71ed576894aa36eb4db40 | 3,214 | py | Python | moonboard.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null | moonboard.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null | moonboard.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null |
class MoonBoard():
"""
Class that encapsulates Moonboard layout info for a specific year.
:param year_layout: Year in which this board layout was published
:type year_layout: int
:param image: Path to the image file for this board layout
:type image: str
:param rows: Number of rows of the... | 30.609524 | 138 | 0.615121 | 414 | 3,214 | 4.596618 | 0.214976 | 0.057803 | 0.031529 | 0.023647 | 0.270625 | 0.249606 | 0.179716 | 0.09774 | 0.037835 | 0 | 0 | 0.02563 | 0.295893 | 3,214 | 104 | 139 | 30.903846 | 0.815289 | 0.440884 | 0 | 0 | 0 | 0 | 0.106676 | 0.024088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 2 |
89e780bf86bd338d3bc5de4a17a586889e1babd9 | 1,051 | py | Python | tests/validate/test_brands_check copy.py | kiss2u/integration | 230b7035898b5faa3b40af76261d362bc2224b77 | [
"MIT"
] | 15 | 2022-02-25T13:17:43.000Z | 2022-03-24T15:23:22.000Z | tests/validate/test_brands_check copy.py | kiss2u/integration | 230b7035898b5faa3b40af76261d362bc2224b77 | [
"MIT"
] | 6 | 2019-03-02T10:13:15.000Z | 2019-03-02T14:00:40.000Z | tests/validate/test_brands_check copy.py | ludeeus/harm | 55794176fccf55321780decf9ef354e91a41d1b9 | [
"MIT"
] | 1 | 2022-03-08T13:25:35.000Z | 2022-03-08T13:25:35.000Z | import json
import pytest
from custom_components.hacs.validate.brands import Validator
from tests.sample_data import response_rate_limit_header
@pytest.mark.asyncio
async def test_added_to_brands(repository, aresponses):
aresponses.add(
"brands.home-assistant.io",
"/domains.json",
"get"... | 25.02381 | 60 | 0.657469 | 114 | 1,051 | 5.885965 | 0.377193 | 0.053651 | 0.076006 | 0.102832 | 0.769001 | 0.769001 | 0.682563 | 0.682563 | 0.682563 | 0.682563 | 0 | 0 | 0.234063 | 1,051 | 41 | 61 | 25.634146 | 0.83354 | 0 | 0 | 0.647059 | 0 | 0 | 0.098953 | 0.045671 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d6246df2bc8e8f3babd8ff9d59729f75cc905366 | 665 | py | Python | accounts/models.py | Nkarnaud/mywebsite | ea37eb0e5901348bd96e66110c0120cb437b5ea9 | [
"MIT"
] | null | null | null | accounts/models.py | Nkarnaud/mywebsite | ea37eb0e5901348bd96e66110c0120cb437b5ea9 | [
"MIT"
] | 3 | 2019-04-26T21:35:38.000Z | 2019-04-26T21:36:37.000Z | accounts/models.py | Nkarnaud/mywebsite | ea37eb0e5901348bd96e66110c0120cb437b5ea9 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class AuthUser(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
password = models.CharField(max_length=128)
last_login = models.DateTimeField(blank=True, null=True)
is_superuse... | 36.944444 | 62 | 0.754887 | 86 | 665 | 5.686047 | 0.511628 | 0.153374 | 0.147239 | 0.196319 | 0.114519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024605 | 0.144361 | 665 | 18 | 63 | 36.944444 | 0.834798 | 0.03609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d62a867bef6c86fcc53be34656722c962f08e976 | 40,232 | py | Python | wbuilder/wbuilder.py | rmaniego/wbuilder | 062285961ea5f5401e07960264eadb484c042cbd | [
"MIT"
] | 6 | 2020-03-09T14:16:57.000Z | 2020-12-26T04:17:40.000Z | wbuilder/wbuilder.py | rmaniego/wbuilder | 062285961ea5f5401e07960264eadb484c042cbd | [
"MIT"
] | null | null | null | wbuilder/wbuilder.py | rmaniego/wbuilder | 062285961ea5f5401e07960264eadb484c042cbd | [
"MIT"
] | null | null | null | """
wBuilder v2.0
(c) 2020 Rodney Maniego Jr.
https://github.com/rmaniego/wbuilder
MIT License
"""
import os
import html5lib
from bs4 import BeautifulSoup as bs
class WebBuilder:
def __init__(self, html="<!doctype html>"):
"""
Initialize class as an HTML document or a snippet
... | 31.284603 | 2,855 | 0.524533 | 4,519 | 40,232 | 4.657668 | 0.104227 | 0.078487 | 0.11488 | 0.085519 | 0.496769 | 0.347206 | 0.336897 | 0.177594 | 0.154409 | 0.085376 | 0 | 0.002017 | 0.322281 | 40,232 | 1,286 | 2,856 | 31.284603 | 0.769933 | 0.066589 | 0 | 0.359777 | 0 | 0 | 0.121359 | 0.007818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.231285 | false | 0 | 0.004469 | 0.001117 | 0.469274 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d62cc0ad7bca835bf58785ec934a0b49bac7f4ab | 3,228 | py | Python | assets/src/ba_data/python/bastd/mapdata/doom_shroom.py | SahandAslani/ballistica | 7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e | [
"MIT"
] | 2 | 2020-07-02T22:18:58.000Z | 2020-07-02T22:19:49.000Z | assets/src/ba_data/python/bastd/mapdata/doom_shroom.py | MalTarDesigns/ballistica | c38ae5c39b3cc7985be166a959245ca060d3bf31 | [
"MIT"
] | null | null | null | assets/src/ba_data/python/bastd/mapdata/doom_shroom.py | MalTarDesigns/ballistica | c38ae5c39b3cc7985be166a959245ca060d3bf31 | [
"MIT"
] | null | null | null | # Copyright (c) 2011-2020 Eric Froemling
#
# 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, publish,... | 59.777778 | 79 | 0.638476 | 418 | 3,228 | 4.87799 | 0.454545 | 0.01177 | 0.01177 | 0.01177 | 0.204022 | 0.177538 | 0.138303 | 0.109858 | 0.103973 | 0.103973 | 0 | 0.305873 | 0.214064 | 3,228 | 53 | 80 | 60.90566 | 0.497832 | 0.385688 | 0 | 0.1 | 0 | 0 | 0.118938 | 0.011741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d636443a8a36748026b385e036e346a12bb8a6cc | 316 | py | Python | src/tensorneko/callback/display_metrics_callback.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | 9 | 2021-05-23T17:38:09.000Z | 2021-12-30T19:12:12.000Z | src/tensorneko/callback/display_metrics_callback.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | null | null | null | src/tensorneko/callback/display_metrics_callback.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | null | null | null | from pytorch_lightning import Callback, Trainer, LightningModule
class DisplayMetricsCallback(Callback):
"""A test callback to display the callback metrics."""
def on_validation_epoch_end(self, trainer: Trainer, pl_module: LightningModule) -> None:
print(trainer.logger_connector.callback_metrics) | 39.5 | 92 | 0.78481 | 36 | 316 | 6.694444 | 0.75 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136076 | 316 | 8 | 93 | 39.5 | 0.882784 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d6527542aada8a893c896f2bef7924e846bdb6ab | 402 | py | Python | aio_pika/compat.py | askabelin/aio-pika | 38fd5897c556dd41624b8571b061f486e8e7508e | [
"Apache-2.0"
] | null | null | null | aio_pika/compat.py | askabelin/aio-pika | 38fd5897c556dd41624b8571b061f486e8e7508e | [
"Apache-2.0"
] | null | null | null | aio_pika/compat.py | askabelin/aio-pika | 38fd5897c556dd41624b8571b061f486e8e7508e | [
"Apache-2.0"
] | null | null | null | try:
from typing import Awaitable
except ImportError:
from typing import Generic, TypeVar
from abc import ABCMeta, abstractmethod
T_co = TypeVar('T_co', covariant=True)
class _Awaitable(metaclass=ABCMeta):
__slots__ = ()
@abstractmethod
def __await__(self):
yi... | 21.157895 | 53 | 0.649254 | 42 | 402 | 5.809524 | 0.571429 | 0.036885 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271144 | 402 | 18 | 54 | 22.333333 | 0.832765 | 0 | 0 | 0.153846 | 0 | 0 | 0.00995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d658736df51f46b58037a9c1162a09f89a175b2b | 530 | py | Python | tests/elementary/test_right_to_left.py | roman-kachanovsky/checkio | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | 1 | 2017-02-07T19:50:52.000Z | 2017-02-07T19:50:52.000Z | tests/elementary/test_right_to_left.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | tests/elementary/test_right_to_left.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | import unittest
from solutions.elementary.right_to_left import my_solution
class TestSolution(unittest.TestCase):
def test_solution(self):
self.assertEqual(my_solution(('left', 'right', 'left', 'stop')), 'left,left,left,stop')
self.assertEqual(my_solution(('bright aright', 'ok')), 'bleft aleft,o... | 31.176471 | 95 | 0.690566 | 62 | 530 | 5.629032 | 0.516129 | 0.143266 | 0.194842 | 0.286533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14717 | 530 | 16 | 96 | 33.125 | 0.772124 | 0 | 0 | 0 | 0 | 0 | 0.243396 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c38bdaad9a37319e47428ade06e8371a1be33324 | 1,461 | py | Python | unittest/test_name_functions.py | chmendonca/python | 4b336ebf0bc29aa4c644f0996431d13f853ac6e7 | [
"MIT"
] | null | null | null | unittest/test_name_functions.py | chmendonca/python | 4b336ebf0bc29aa4c644f0996431d13f853ac6e7 | [
"MIT"
] | 2 | 2020-04-30T15:36:56.000Z | 2020-04-30T15:36:57.000Z | unittest/test_name_functions.py | chmendonca/python | 4b336ebf0bc29aa4c644f0996431d13f853ac6e7 | [
"MIT"
] | 1 | 2022-01-17T04:11:10.000Z | 2022-01-17T04:11:10.000Z | import unittest
from name_functions import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Testes para 'name_function.py'."""
def test_first_last_name(self):
"""Nomes como Janis Joplin funcionam?"""
formatted_name = get_formatted_name('janis','joplin')
self.assertEqual(fo... | 38.447368 | 75 | 0.703628 | 172 | 1,461 | 5.686047 | 0.197674 | 0.252556 | 0.114519 | 0.110429 | 0.773006 | 0.587935 | 0.48773 | 0.48773 | 0.48773 | 0.48773 | 0 | 0 | 0.182067 | 1,461 | 38 | 76 | 38.447368 | 0.81841 | 0.164956 | 0 | 0.090909 | 0 | 0 | 0.140084 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c393eee44d1158b27320536fe0b53e483e563d36 | 1,569 | py | Python | pylibscrypt/__init__.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 19 | 2015-02-03T22:25:09.000Z | 2021-09-01T05:25:44.000Z | pylibscrypt/__init__.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 16 | 2015-06-03T15:52:43.000Z | 2019-03-24T16:47:52.000Z | pylibscrypt/__init__.py | jvarho/pylibscrypt | 46f9c0a2f2c909a5765f748f2c188e336af221ed | [
"0BSD"
] | 3 | 2015-05-26T01:39:20.000Z | 2017-12-15T23:44:19.000Z | # Copyright (c) 2014-2021, Jan Varho
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL... | 25.306452 | 74 | 0.699809 | 218 | 1,569 | 4.940367 | 0.490826 | 0.025998 | 0.085422 | 0.100279 | 0.224698 | 0.18013 | 0.18013 | 0.18013 | 0.100279 | 0.100279 | 0 | 0.00919 | 0.237094 | 1,569 | 61 | 75 | 25.721311 | 0.89056 | 0.579987 | 0 | 0.75 | 0 | 0 | 0.05836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.28125 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c3b22aa5d2679a73097dbd5a85a28e6b5f056719 | 21,713 | py | Python | pilot_main.py | byndcivilization/rgi-data-parse | 56af0971c6ec0b72b7cfc0fe9e8886c1800e4025 | [
"MIT"
] | 1 | 2015-05-18T05:17:01.000Z | 2015-05-18T05:17:01.000Z | pilot_main.py | byndcivilization/rgi-data-parse | 56af0971c6ec0b72b7cfc0fe9e8886c1800e4025 | [
"MIT"
] | null | null | null | pilot_main.py | byndcivilization/rgi-data-parse | 56af0971c6ec0b72b7cfc0fe9e8886c1800e4025 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Parses and loads RGI questions from excel into MongoDB"""
from xlrd import open_workbook
from sys import argv
from pilot_parser import parse
from pymongo import MongoClient
import json
from pprint import pprint
# from utils import write_json
def main(args):
"""Main body"""
args_len = l... | 57.290237 | 116 | 0.523695 | 2,366 | 21,713 | 4.679205 | 0.406593 | 0.202421 | 0.017343 | 0.008581 | 0.026466 | 0.014994 | 0.011381 | 0.011381 | 0 | 0 | 0 | 0.016943 | 0.222586 | 21,713 | 378 | 117 | 57.441799 | 0.638922 | 0.217243 | 0 | 0.075812 | 0 | 0 | 0.425374 | 0.002375 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021661 | 0.021661 | null | null | 0.057762 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3b2c982617f090f911b279573f931907eef5b76 | 7,905 | py | Python | tests/test_builder.py | katsuya0719/geomeppy | 0012371d5df7c31f99e5f7403f57eab9ba6a16d0 | [
"MIT"
] | 29 | 2016-10-01T01:23:48.000Z | 2021-11-08T11:47:00.000Z | tests/test_builder.py | katsuya0719/geomeppy | 0012371d5df7c31f99e5f7403f57eab9ba6a16d0 | [
"MIT"
] | 142 | 2016-09-13T10:13:17.000Z | 2022-02-10T09:07:11.000Z | tests/test_builder.py | katsuya0719/geomeppy | 0012371d5df7c31f99e5f7403f57eab9ba6a16d0 | [
"MIT"
] | 19 | 2017-01-04T23:15:19.000Z | 2022-02-11T18:19:43.000Z | """Test for builder module."""
from geomeppy.builder import Block
breaking_coords = [
(531023.28, 183220.85),
(531023.09, 183220.78),
(531022.99, 183220.74),
(531022.956, 183220.725),
(531022.9, 183220.7),
(531022.8, 183220.65),
(531022.71, 183220.6),
(531022.62, 183220.55),
(531022... | 29.386617 | 85 | 0.558634 | 1,046 | 7,905 | 4.125239 | 0.207457 | 0.039397 | 0.0292 | 0.026651 | 0.260023 | 0.232908 | 0.194206 | 0.161761 | 0.155504 | 0.155504 | 0 | 0.412866 | 0.270462 | 7,905 | 268 | 86 | 29.496269 | 0.335356 | 0.018722 | 0 | 0.196787 | 0 | 0 | 0.024019 | 0.003099 | 0 | 0 | 0 | 0 | 0.056225 | 1 | 0.02008 | false | 0 | 0.004016 | 0 | 0.028112 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3be689fe89ba820f96c97fdfc49e94ae92aef0c | 529 | py | Python | mule/util/download_util.py | algorand/mule | 6524e1a5692090be52ef23af93ee70dd8149b669 | [
"MIT"
] | 8 | 2020-04-03T15:22:38.000Z | 2021-07-29T03:17:57.000Z | mule/util/download_util.py | algorand/mule | 6524e1a5692090be52ef23af93ee70dd8149b669 | [
"MIT"
] | 31 | 2020-03-31T13:35:12.000Z | 2021-05-10T20:34:13.000Z | mule/util/download_util.py | algorand/mule | 6524e1a5692090be52ef23af93ee70dd8149b669 | [
"MIT"
] | 4 | 2020-03-16T20:30:25.000Z | 2021-07-29T03:18:01.000Z | import shutil
import wget
import tempfile
import os
from contextlib import contextmanager
from mule.ci import config
from mule.util import file_util
def download_to_bin(url):
path = wget.download(url, config.EKS_CLUSTER_NAME)
file_util.make_executable(path)
def download_to_dir(url, dir):
os.mkdir(dir)... | 18.241379 | 54 | 0.731569 | 75 | 529 | 5.013333 | 0.453333 | 0.087766 | 0.103723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187146 | 529 | 28 | 55 | 18.892857 | 0.874419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.35 | 0 | 0.55 | 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 | 1 | 0 | 0 | 2 |
c3c3a6bcb5c0a82fdcaa4fa416d2a70499068d81 | 52 | py | Python | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/version.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | 1 | 2017-04-25T13:15:10.000Z | 2017-04-25T13:15:10.000Z | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/version.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | Libraries/Python/requests_negotiate_sspi/v0.3.1/requests_negotiate_sspi/version.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | """Current package version"""
__version__ = '0.3.1'
| 17.333333 | 29 | 0.673077 | 7 | 52 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.115385 | 52 | 2 | 30 | 26 | 0.608696 | 0.442308 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3c84a1c803033c36022616aa41d9933414dbcc1 | 4,078 | py | Python | Python Implementation/mtree/tests/fixtures/f12.py | mavroudo/BPM-outlierDetection-distance-based | 0b056f87d3b9c42e0039052c15212d4aab46dd39 | [
"MIT"
] | 48 | 2015-02-09T14:46:40.000Z | 2022-02-16T14:27:38.000Z | Python Implementation/mtree/tests/fixtures/f12.py | mavroudo/BPM-outlierDetection-distance-based | 0b056f87d3b9c42e0039052c15212d4aab46dd39 | [
"MIT"
] | 1 | 2021-12-01T03:14:57.000Z | 2021-12-01T03:14:57.000Z | Python Implementation/mtree/tests/fixtures/f12.py | mavroudo/BPM-outlierDetection-distance-based | 0b056f87d3b9c42e0039052c15212d4aab46dd39 | [
"MIT"
] | 24 | 2015-03-10T06:58:02.000Z | 2022-03-11T04:43:40.000Z | from mtree.tests.fixtures.generator import ADD, REMOVE, QUERY
"""
actions = '12a12r12a12r'
dimensions = 4
remove_chance = 0.1
"""
DIMENSIONS = 4
def PERFORM(callback):
callback(ADD((98, 6, 62, 83), QUERY((76, 5, 88, 66), 26.243784265073067, 3)))
callback(ADD((50, 28, 1, 72), QUERY((90, 40, 27, 38), 47.3551429390136... | 69.118644 | 84 | 0.62408 | 694 | 4,078 | 3.665706 | 0.226225 | 0.103774 | 0.028302 | 0.005503 | 0.238208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.451503 | 0.13536 | 4,078 | 58 | 85 | 70.310345 | 0.269994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.019608 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3deb3554211e51508e260b891c6ab54878039da | 284 | py | Python | Vote.py | omeh2003/PythonAlgoritmSorting | 10890061dd5925a1bb64ac764a4f5d807c0bcdbf | [
"MIT"
] | null | null | null | Vote.py | omeh2003/PythonAlgoritmSorting | 10890061dd5925a1bb64ac764a4f5d807c0bcdbf | [
"MIT"
] | null | null | null | Vote.py | omeh2003/PythonAlgoritmSorting | 10890061dd5925a1bb64ac764a4f5d807c0bcdbf | [
"MIT"
] | null | null | null | def ssort(array):
for i in range(len(array)):
indxMin = i
for j in range(i+1, len(array)):
if array[j] < array[indxMin]:
indxMin = j
tmp = array[indxMin]
array[indxMin] = array[i]
array[i] = tmp
return array
| 25.818182 | 41 | 0.5 | 38 | 284 | 3.736842 | 0.368421 | 0.338028 | 0.239437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.380282 | 284 | 10 | 42 | 28.4 | 0.801136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3e9dbcaa6f96dd979fcd337bef326c6eb947a4e | 99 | py | Python | configs/mmpose/pose-detection_static.py | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | configs/mmpose/pose-detection_static.py | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | configs/mmpose/pose-detection_static.py | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | _base_ = ['../_base_/onnx_config.py']
codebase_config = dict(type='mmpose', task='PoseDetection')
| 24.75 | 59 | 0.717172 | 12 | 99 | 5.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 99 | 3 | 60 | 33 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.434343 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3f127c57f5d06e714c053594be6b24283ef1512 | 1,194 | py | Python | Python_basics/day04.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | 2 | 2019-07-30T13:47:43.000Z | 2021-12-27T09:03:47.000Z | Python_basics/day04.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | Python_basics/day04.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | # _*_ conding:utf8-
'''
# 如果要有默认参数,那么一定统一塞到最后面
def test(name1,name2='Joker',name3='Joker2'):
print(name1,name2,name3)
test('h','h','j')
# * 强制命名,*后面的所有参数,在传参过程中必须要带上
# 参数名防止传参错误
def NB(name1,*,name2='Joker',name3='Joker2'):
print(name1,name2,name3)
# 1. 位置参数,可以不带参数名
# 2. 带参数名的传参方式
NB('Joker3',name2='hahah',... | 20.237288 | 48 | 0.656616 | 162 | 1,194 | 4.82716 | 0.567901 | 0.051151 | 0.015345 | 0.051151 | 0.171356 | 0.171356 | 0.171356 | 0.171356 | 0.171356 | 0 | 0 | 0.072534 | 0.134003 | 1,194 | 58 | 49 | 20.586207 | 0.683752 | 0.990787 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3fa4f6f4f7ed8a30e5377e63272311e110c445a | 643 | py | Python | salesforce/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | salesforce/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | salesforce/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
from setuptools import setup, find_packages
setup(name='salesforce-rapid7-plugin',
version='1.0.0',
description='Salesforce is a CRM solution that brings together all customer information in a single, integrated platform that enables building a customer-centred busi... | 42.866667 | 256 | 0.723173 | 81 | 643 | 5.679012 | 0.753086 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009579 | 0.18818 | 643 | 14 | 257 | 45.928571 | 0.871648 | 0.150855 | 0 | 0 | 1 | 0.090909 | 0.546961 | 0.082873 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3fed5a07d445c7ae060cc3c9b59fd0bfb526980 | 6,781 | py | Python | GUI/Controllers/controller.py | joshuamitchell192/DLS_Project | 3d81be19e08a65f8322a30811af18755b98706eb | [
"Apache-2.0"
] | 1 | 2019-10-18T08:54:52.000Z | 2019-10-18T08:54:52.000Z | GUI/Controllers/controller.py | joshuamitchell192/DLS_Project | 3d81be19e08a65f8322a30811af18755b98706eb | [
"Apache-2.0"
] | 4 | 2019-10-16T02:51:12.000Z | 2021-02-07T11:02:01.000Z | GUI/Controllers/controller.py | joshuamitchell192/DLS_Project | 3d81be19e08a65f8322a30811af18755b98706eb | [
"Apache-2.0"
] | null | null | null |
import struct
from enum import Enum
import pycrc.algorithms
from Services.settings import Settings
class State(Enum):
Idle = 0
ScanBetween = 1
StationarySample = 2
Calibration = 3
class Controller:
def __init__(self):
pass
def __init__(self, serialConnection, Instructions, sampleDa... | 41.09697 | 131 | 0.673057 | 616 | 6,781 | 7.387987 | 0.233766 | 0.162602 | 0.223028 | 0.248517 | 0.555043 | 0.479895 | 0.37706 | 0.337508 | 0.314217 | 0.280598 | 0 | 0.009683 | 0.223271 | 6,781 | 164 | 132 | 41.347561 | 0.854376 | 0.043356 | 0 | 0.322034 | 0 | 0 | 0.035245 | 0 | 0 | 0 | 0.002783 | 0 | 0 | 1 | 0.101695 | false | 0.008475 | 0.033898 | 0 | 0.20339 | 0.025424 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f0a4babbb3c88da3334a4a1c8c8e190901687e6 | 301 | py | Python | fastlabel/exceptions.py | SNC-HealthcareBiz/fastlabel-python-sdk | 0035edad7388305f6243a08fbc3372e74de7f311 | [
"MIT"
] | 6 | 2020-12-26T05:29:20.000Z | 2022-02-05T07:48:39.000Z | fastlabel/exceptions.py | SNC-HealthcareBiz/fastlabel-python-sdk | 0035edad7388305f6243a08fbc3372e74de7f311 | [
"MIT"
] | 16 | 2021-02-23T02:40:06.000Z | 2022-03-17T03:23:36.000Z | fastlabel/exceptions.py | SNC-HealthcareBiz/fastlabel-python-sdk | 0035edad7388305f6243a08fbc3372e74de7f311 | [
"MIT"
] | null | null | null | class FastLabelException(Exception):
def __init__(self, message, errcode):
super(FastLabelException, self).__init__(
"<Response [{}]> {}".format(errcode, message)
)
self.code = errcode
class FastLabelInvalidException(FastLabelException, ValueError):
pass
| 27.363636 | 64 | 0.667774 | 24 | 301 | 8.041667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219269 | 301 | 10 | 65 | 30.1 | 0.821277 | 0 | 0 | 0 | 0 | 0 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7f158949e219ec2c7b528723bec6125303c0fdf2 | 441 | py | Python | backend/app/model/resource_change_log.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | null | null | null | backend/app/model/resource_change_log.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 368 | 2018-12-18T14:43:20.000Z | 2022-03-02T02:54:18.000Z | backend/app/model/resource_change_log.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 2 | 2019-10-02T03:06:06.000Z | 2020-10-05T16:53:48.000Z | from sqlalchemy import func
from app import db
class ResourceChangeLog(db.Model):
__tablename__ = 'resource_change_log'
id = db.Column(db.Integer, primary_key=True)
type = db.Column(db.String)
user_id = db.Column(db.Integer)
user_email = db.Column(db.String)
resource_id = db.Column(db.Integer... | 29.4 | 76 | 0.721088 | 64 | 441 | 4.78125 | 0.46875 | 0.183007 | 0.228758 | 0.117647 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160998 | 441 | 14 | 77 | 31.5 | 0.827027 | 0 | 0 | 0 | 0 | 0 | 0.043084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
7f1cef291c1cb281e08310e040c017e6d7f74d84 | 3,257 | py | Python | simple_lambda.py | nzinov/simple_lambda | e8cd2f1c3151f9876f43b0cfb9ae7682c0cca431 | [
"MIT"
] | null | null | null | simple_lambda.py | nzinov/simple_lambda | e8cd2f1c3151f9876f43b0cfb9ae7682c0cca431 | [
"MIT"
] | null | null | null | simple_lambda.py | nzinov/simple_lambda | e8cd2f1c3151f9876f43b0cfb9ae7682c0cca431 | [
"MIT"
] | null | null | null | import string
def get_free(used):
"""
Returns variable name that is not used yet
Args:
used: iterable of used variable names
Returns:
some unused variable name
"""
for el in string.ascii_lowercase:
if not el in used:
return el
raise ValueError()
class V... | 22.156463 | 80 | 0.527172 | 397 | 3,257 | 4.256927 | 0.188917 | 0.057988 | 0.033136 | 0.030178 | 0.229586 | 0.195858 | 0.04142 | 0 | 0 | 0 | 0 | 0 | 0.369665 | 3,257 | 146 | 81 | 22.308219 | 0.823186 | 0.215229 | 0 | 0.338028 | 0 | 0 | 0.006748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28169 | false | 0 | 0.014085 | 0.084507 | 0.521127 | 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 | 1 | 0 | 0 | 2 |
6135322d6c957d9e21557d00f111748182bb8f84 | 12,047 | py | Python | torchdiffeq/_impl/fixed_adams.py | MaricelaM/torchdiffeq | 4e070fb687167e53082a91f32e102af7f4521058 | [
"MIT"
] | 4,088 | 2018-11-14T18:59:07.000Z | 2022-03-30T14:18:29.000Z | torchdiffeq/_impl/fixed_adams.py | MaricelaM/torchdiffeq | 4e070fb687167e53082a91f32e102af7f4521058 | [
"MIT"
] | 192 | 2018-11-15T12:32:50.000Z | 2022-03-27T11:58:12.000Z | torchdiffeq/_impl/fixed_adams.py | MaricelaM/torchdiffeq | 4e070fb687167e53082a91f32e102af7f4521058 | [
"MIT"
] | 800 | 2018-11-14T23:04:51.000Z | 2022-03-31T04:08:57.000Z | import collections
import sys
import torch
import warnings
from .solvers import FixedGridODESolver
from .misc import _compute_error_ratio, _linf_norm
from .misc import Perturb
from .rk_common import rk4_alt_step_func
_BASHFORTH_COEFFICIENTS = [
[], # order 0
[11],
[3, -1],
[23, -16, 5],
[55, -59, ... | 52.606987 | 121 | 0.71246 | 994 | 12,047 | 8.50503 | 0.560362 | 0.012302 | 0.007452 | 0.005678 | 0.039626 | 0.033357 | 0.019399 | 0 | 0 | 0 | 0 | 0.625993 | 0.195235 | 12,047 | 228 | 122 | 52.837719 | 0.246003 | 0.029302 | 0 | 0.107317 | 0 | 0 | 0.012586 | 0 | 0 | 0 | 0 | 0.004386 | 0.004878 | 1 | 0.029268 | false | 0 | 0.039024 | 0.004878 | 0.102439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6142b45ea9accc30d4508e2bbf814523a508dbe8 | 4,640 | py | Python | src/tests/testScripts/test_scenarioIntegrators.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | src/tests/testScripts/test_scenarioIntegrators.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | src/tests/testScripts/test_scenarioIntegrators.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | ''' '''
'''
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all c... | 41.061947 | 105 | 0.709483 | 534 | 4,640 | 6.155431 | 0.501873 | 0.010952 | 0.016428 | 0.024643 | 0.107089 | 0.107089 | 0.088226 | 0.069364 | 0.031031 | 0.031031 | 0 | 0.217914 | 0.210776 | 4,640 | 112 | 106 | 41.428571 | 0.679683 | 0.246121 | 0 | 0.117647 | 0 | 0 | 0.026641 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | null | null | 0.019608 | 0.078431 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61514f65bb45d5c3500da633bcf8d4ed24c554e2 | 18,338 | py | Python | software/faps_hatpro.py | chpolste/MScAtmosphericSciences | 52918f8452b6459cf19fc43a3103f2e37215fdae | [
"MIT"
] | 2 | 2019-10-05T02:51:17.000Z | 2020-07-18T21:39:22.000Z | software/faps_hatpro.py | chpolste/MScAtmosphericSciences | 52918f8452b6459cf19fc43a3103f2e37215fdae | [
"MIT"
] | null | null | null | software/faps_hatpro.py | chpolste/MScAtmosphericSciences | 52918f8452b6459cf19fc43a3103f2e37215fdae | [
"MIT"
] | 1 | 2021-06-22T12:41:00.000Z | 2021-06-22T12:41:00.000Z | from mwrt import FastAbsorptionPredictor
class FAP22240MHz(FastAbsorptionPredictor):
@staticmethod
def gas_absorption(p, T, qvap):
return (+ 2.827686459400131e-07
+ 1.871726683202199e-08 * p
+ 2.3434541937062388e-11 * p**2
- 4.7939946415343025e-15 * p**... | 38.204167 | 216 | 0.49711 | 1,813 | 18,338 | 5.004964 | 0.234418 | 0.01058 | 0.013886 | 0.063258 | 0.18272 | 0.163544 | 0.163544 | 0.163544 | 0.163544 | 0.142715 | 0 | 0.570067 | 0.393336 | 18,338 | 479 | 217 | 38.283925 | 0.245573 | 0 | 0 | 0.133971 | 0 | 0 | 0.008398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066986 | false | 0 | 0.002392 | 0.066986 | 0.169856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6166139c3d677dcddc5bc754cdebbe9981c33c36 | 268 | py | Python | MysteryGang/gui/__init__.py | thetiguy/GGJTeamSpaceBubbles2021 | 2628dfe0b60e66f4ebc8cf963840f8aaecfbed0d | [
"MIT"
] | null | null | null | MysteryGang/gui/__init__.py | thetiguy/GGJTeamSpaceBubbles2021 | 2628dfe0b60e66f4ebc8cf963840f8aaecfbed0d | [
"MIT"
] | 6 | 2021-01-31T22:02:15.000Z | 2021-01-31T22:04:44.000Z | MysteryGang/gui/__init__.py | thetiguy/GGJTeamSpaceBubbles2021 | 2628dfe0b60e66f4ebc8cf963840f8aaecfbed0d | [
"MIT"
] | null | null | null | from .Pane import Pane # Since the other classes use Pane is must be first
from .CluePane import CluePane
from .MediaPane import MediaPane
from .ChatPane import ChatPane
from .AppPane import AppPane
__all__ = ['CluePane', 'MediaPane', 'Pane', 'ChatPane', 'AppPane']
| 33.5 | 75 | 0.764925 | 36 | 268 | 5.583333 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 268 | 7 | 76 | 38.285714 | 0.881579 | 0.182836 | 0 | 0 | 0 | 0 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
617a5d9542ce20534e04588ed751595567602256 | 765 | py | Python | test/test_group_model.py | zuarbase/server-client-python | 1e5e02a550727d72fa90c3d8e4caa4c5f416dc74 | [
"CC0-1.0",
"MIT"
] | 470 | 2016-09-14T23:38:48.000Z | 2022-03-31T07:59:53.000Z | test/test_group_model.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 772 | 2016-09-09T18:15:44.000Z | 2022-03-31T22:01:08.000Z | test/test_group_model.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 346 | 2016-09-10T00:05:00.000Z | 2022-03-30T18:55:47.000Z | import unittest
import tableauserverclient as TSC
class GroupModelTests(unittest.TestCase):
def test_invalid_name(self):
self.assertRaises(ValueError, TSC.GroupItem, None)
self.assertRaises(ValueError, TSC.GroupItem, "")
group = TSC.GroupItem("grp")
with self.assertRaises(ValueErro... | 30.6 | 58 | 0.658824 | 81 | 765 | 6.074074 | 0.333333 | 0.195122 | 0.317073 | 0.243902 | 0.593496 | 0.439024 | 0.351626 | 0.351626 | 0.351626 | 0.239837 | 0 | 0 | 0.243137 | 765 | 24 | 59 | 31.875 | 0.849741 | 0 | 0 | 0.368421 | 0 | 0 | 0.024837 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6188392411aa259b7a8c7b46097096f998b1d979 | 747 | py | Python | docs/assets/examples/kernel_base.py | ANSSI-FR/Faults_analyzer | 08ed35f2f9f906a06798d21138decfc30772ce45 | [
"X11"
] | 6 | 2021-04-08T07:14:26.000Z | 2021-07-13T00:59:06.000Z | docs/assets/examples/kernel_base.py | ANSSI-FR/Faults_analyzer | 08ed35f2f9f906a06798d21138decfc30772ce45 | [
"X11"
] | null | null | null | docs/assets/examples/kernel_base.py | ANSSI-FR/Faults_analyzer | 08ed35f2f9f906a06798d21138decfc30772ce45 | [
"X11"
] | 2 | 2021-04-20T21:29:32.000Z | 2022-03-08T19:55:20.000Z | import time # For example purpose only (NOT MANDATORY)
from labmanager.manager import KernelBase
class Kernel(KernelBase):
def __init__(self):
KernelBase.__init__(self)
self.i = 0 # For example purpose only (NOT MANDATORY)
def open(self) -> None:
pass
def work(self, exp) -> dict:... | 28.730769 | 72 | 0.5917 | 94 | 747 | 4.595745 | 0.5 | 0.034722 | 0.078704 | 0.097222 | 0.361111 | 0.361111 | 0.208333 | 0.208333 | 0 | 0 | 0 | 0.005882 | 0.317269 | 747 | 25 | 73 | 29.88 | 0.841176 | 0.310576 | 0 | 0.222222 | 0 | 0 | 0.019763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
61a06797c47e4f6e2c1da56db791b7f6251e5035 | 1,498 | py | Python | tuprolog/solve/plp/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 1 | 2021-08-07T06:29:28.000Z | 2021-08-07T06:29:28.000Z | tuprolog/solve/plp/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 14 | 2021-09-16T13:25:12.000Z | 2022-01-03T10:12:22.000Z | tuprolog/solve/plp/__init__.py | DavideEva/2ppy | 55609415102f8116165a42c8e33e029c4906e160 | [
"Apache-2.0"
] | 1 | 2021-12-22T00:25:32.000Z | 2021-12-22T00:25:32.000Z | from tuprolog import logger
# noinspection PyUnresolvedReferences
import jpype.imports
# noinspection PyUnresolvedReferences
import it.unibo.tuprolog.solve as _solve
from tuprolog.utils import Taggable
from tuprolog.solve import SolveOptions, solve_options as _solve_options, MAX_TIMEOUT, ALL_SOLUTIONS
from typing impor... | 28.807692 | 100 | 0.761015 | 166 | 1,498 | 6.716867 | 0.349398 | 0.04843 | 0.078924 | 0.09148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156208 | 1,498 | 51 | 101 | 29.372549 | 0.88212 | 0.047397 | 0 | 0 | 0 | 0 | 0.037921 | 0.020365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.193548 | 0.16129 | 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 | 1 | 1 | 0 | 0 | 2 |
61b8a634a4fe431dfd65a39734e26469887e3016 | 2,095 | py | Python | tests/test_models.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 2 | 2018-08-18T12:53:49.000Z | 2020-06-19T23:31:11.000Z | tests/test_models.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 21 | 2017-09-04T19:49:18.000Z | 2017-12-19T09:07:39.000Z | tests/test_models.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 2 | 2017-09-15T18:43:02.000Z | 2017-10-09T10:48:36.000Z | """Module for testing modles for the API"""
from tests.basetest import TestBase
from api_v1.models import User, Shoppinglist, Shoppingitem
class UserTestCase(TestBase):
"""Class to to test the user model"""
def test_create_models_instance(self):
"""Test number of users in the users table"""
s... | 36.12069 | 75 | 0.677804 | 253 | 2,095 | 5.490119 | 0.300395 | 0.046076 | 0.032397 | 0.034557 | 0.187185 | 0.12527 | 0.12527 | 0.12527 | 0.12527 | 0.12527 | 0 | 0.002405 | 0.206205 | 2,095 | 57 | 76 | 36.754386 | 0.832832 | 0.215752 | 0 | 0.151515 | 0 | 0 | 0.05104 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.212121 | false | 0.060606 | 0.060606 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
61c01362eb68a6e3d2f70181f2e07f000e6761e1 | 129 | py | Python | test_002.py | YukiShinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | 4 | 2018-08-07T02:31:27.000Z | 2020-07-18T15:43:28.000Z | test_002.py | yukishinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | null | null | null | test_002.py | yukishinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | null | null | null | s = input()
sort_s = sorted(s)
print(sort_s)
# str型の文字列を直接sorted()に入れると
# str型の文字列を1文字ずつに分割したlist型として認識して
# それをソートしたlist型を取得できる。 | 18.428571 | 33 | 0.790698 | 13 | 129 | 7.692308 | 0.692308 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.100775 | 129 | 7 | 34 | 18.428571 | 0.853448 | 0.596899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4efce3f000fdb0c2afb0c54405557c4a0df0a72a | 2,160 | py | Python | language/onehand.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 8 | 2015-09-28T09:09:12.000Z | 2020-10-12T07:00:54.000Z | language/onehand.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 1 | 2021-06-09T06:06:40.000Z | 2021-06-09T06:06:40.000Z | language/onehand.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 2 | 2016-09-27T06:25:47.000Z | 2017-01-19T04:56:10.000Z | #! /usr/bin/python
# I assume https://github.com/vinces1979/pwgen/ knows what he's doing, so I'll
# get entropy the same way
import random
import string
import pickle
choice = random.choice
righthand = ['7', '8', '9', '0', '-', '=', '&', '*', '(', ')', '_', '+', 'y',
'u', 'i', 'o', 'p', '[', ']', '\\', 'Y', 'U', 'I'... | 28.8 | 78 | 0.4625 | 303 | 2,160 | 3.270627 | 0.386139 | 0.010091 | 0.024218 | 0.051463 | 0.078708 | 0.058527 | 0 | 0 | 0 | 0 | 0 | 0.013384 | 0.273611 | 2,160 | 74 | 79 | 29.189189 | 0.618228 | 0.086574 | 0 | 0.137931 | 0 | 0 | 0.092018 | 0.015252 | 0.017241 | 0 | 0 | 0.013514 | 0 | 0 | null | null | 0 | 0.051724 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f604f7c31fa8e5558d4bc2dae995e78b3bafe07b | 895 | py | Python | Dataset/Leetcode/train/12/124.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/12/124.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/12/124.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, num: int) -> str:
data = {1: 'I', 5: 'V', 10: 'X', 50: 'L', 100: 'C', 500: 'D', 1000: 'M'}
ans = ""
i = 0
while num:
cur = (num % 10) * (10 ** i)
num = num // 10
while cur >= 1:
if cur in data:
... | 34.423077 | 80 | 0.280447 | 103 | 895 | 2.436893 | 0.330097 | 0.155378 | 0.095618 | 0.119522 | 0.111554 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 0.57095 | 895 | 25 | 81 | 35.8 | 0.507813 | 0 | 0 | 0.083333 | 0 | 0 | 0.00783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f606430c960e9db0ccde13adac58dce774494edc | 491 | py | Python | src/models/article.py | onl1ner/python-simple-flask | a0bdae0462e26ad73005ff4704f20d3fe370175a | [
"MIT"
] | 1 | 2021-11-09T17:38:02.000Z | 2021-11-09T17:38:02.000Z | src/models/article.py | onl1ner/python-simple-flask | a0bdae0462e26ad73005ff4704f20d3fe370175a | [
"MIT"
] | null | null | null | src/models/article.py | onl1ner/python-simple-flask | a0bdae0462e26ad73005ff4704f20d3fe370175a | [
"MIT"
] | null | null | null | from utils.database import db
class Article(db.Model):
__tablename__ = 'articles'
id = db.Column(db.Integer, primary_key=True)
author_id = db.Column(db.Integer, db.ForeignKey('users.id'))
created_at = db.Column(db.BigInteger)
text = db.Column(db.String())
def serialize(self):
... | 23.380952 | 64 | 0.582485 | 61 | 491 | 4.508197 | 0.47541 | 0.116364 | 0.145455 | 0.087273 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289206 | 491 | 21 | 65 | 23.380952 | 0.787966 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
f607ada4b8100e18a0edac01eef269d4ec98a8a7 | 3,482 | py | Python | code/dynamic.py | BruntonUWBio/plumetracknets | 0738bbb509d1e53c200b72fdcd33b54fe5169608 | [
"MIT"
] | 7 | 2021-09-30T17:06:21.000Z | 2022-01-08T21:58:06.000Z | code/dynamic.py | BruntonUWBio/plumetracknets | 0738bbb509d1e53c200b72fdcd33b54fe5169608 | [
"MIT"
] | null | null | null | code/dynamic.py | BruntonUWBio/plumetracknets | 0738bbb509d1e53c200b72fdcd33b54fe5169608 | [
"MIT"
] | null | null | null | class DynamicPlume():
def __init__(self,
sim_dt=0.01,
birth_rate=1.0,
env_dt=0.04,
birthx=1.0, # per-episode puff birth rate sparsity minimum
birthx_max=1.0, # overall odor puff birth rate sparsity max
qvar=1.0, # Variance of init. location; higher = more off-plume ini... | 37.847826 | 116 | 0.639288 | 566 | 3,482 | 3.713781 | 0.261484 | 0.05138 | 0.034253 | 0.017127 | 0.109895 | 0.058991 | 0.058991 | 0.034253 | 0.034253 | 0.034253 | 0 | 0.026802 | 0.207065 | 3,482 | 91 | 117 | 38.263736 | 0.734516 | 0.175187 | 0 | 0.028986 | 0 | 0.014493 | 0.088679 | 0.008763 | 0 | 0 | 0 | 0.010989 | 0 | 0 | null | null | 0 | 0 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f60f6ea006277260f9921ae54eb5c8cda52e1b29 | 533 | py | Python | __computeSumMultipliedByIndex.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __computeSumMultipliedByIndex.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __computeSumMultipliedByIndex.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | '''
Write a Python program to compute the sum of all items of a
given array of integers where each integer is multiplied by its
index. Return 0 if there is no number.
Sample Input:
[1,2,3,4]
[-1,-2,-3,-4]
[]
Sample Output:
20
-20
0
'''
def sum_index_multiplier(nums):
# use enumerate to return count and value
... | 23.173913 | 63 | 0.699812 | 96 | 533 | 3.802083 | 0.552083 | 0.021918 | 0.032877 | 0.043836 | 0.210959 | 0.210959 | 0.210959 | 0.210959 | 0.210959 | 0.210959 | 0 | 0.050114 | 0.17636 | 533 | 22 | 64 | 24.227273 | 0.781321 | 0.577861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 2 |
f616c6c59e93a198e5b31d718976b07ee6aeb746 | 7,463 | py | Python | controllers/product/search_products.py | ValentineSean/product-catalog-api | 7bd50555eba390a25920983daf01ee05a89cbf5f | [
"Apache-2.0"
] | null | null | null | controllers/product/search_products.py | ValentineSean/product-catalog-api | 7bd50555eba390a25920983daf01ee05a89cbf5f | [
"Apache-2.0"
] | null | null | null | controllers/product/search_products.py | ValentineSean/product-catalog-api | 7bd50555eba390a25920983daf01ee05a89cbf5f | [
"Apache-2.0"
] | null | null | null | import json
from datetime import datetime
from bson.json_util import dumps
from bson.objectid import ObjectId
from flask import Blueprint, request, jsonify
# Database
from configurations.database import mongo
search_products_blueprint = Blueprint("search_products_blueprint", __name__)
@search_products_blueprint.ro... | 29.852 | 106 | 0.359373 | 452 | 7,463 | 5.767699 | 0.161504 | 0.064825 | 0.094745 | 0.088224 | 0.634446 | 0.622555 | 0.556578 | 0.541235 | 0.541235 | 0.50748 | 0 | 0.012662 | 0.513198 | 7,463 | 250 | 107 | 29.852 | 0.704927 | 0.011122 | 0 | 0.747475 | 0 | 0 | 0.190567 | 0.003388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005051 | false | 0 | 0.030303 | 0 | 0.10101 | 0.025253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f61ac939c69d6d4b1482c7f615c5a7ea8cb11d9b | 70,474 | py | Python | sogs/session_pb2.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | 1 | 2022-03-08T06:34:34.000Z | 2022-03-08T06:34:34.000Z | sogs/session_pb2.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | sogs/session_pb2.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sogs/session.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _... | 42.81531 | 6,720 | 0.752192 | 8,393 | 70,474 | 6.045157 | 0.049684 | 0.053767 | 0.062913 | 0.045095 | 0.72249 | 0.655616 | 0.636735 | 0.605475 | 0.589235 | 0.567554 | 0 | 0.041355 | 0.126415 | 70,474 | 1,645 | 6,721 | 42.841337 | 0.782766 | 0.024037 | 0 | 0.691462 | 1 | 0.005175 | 0.175684 | 0.136545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003234 | 0 | 0.003234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f62e60185e953c88ea0893ab945198bb9f6d9a2e | 1,163 | py | Python | paddle.py | polowis/ping-_pong_game | 23467ab8ef01aa3f901bb5f17f8b11df4f4f3734 | [
"Apache-2.0"
] | null | null | null | paddle.py | polowis/ping-_pong_game | 23467ab8ef01aa3f901bb5f17f8b11df4f4f3734 | [
"Apache-2.0"
] | null | null | null | paddle.py | polowis/ping-_pong_game | 23467ab8ef01aa3f901bb5f17f8b11df4f4f3734 | [
"Apache-2.0"
] | null | null | null | class Paddle():
def __init__(self, x1, x2 , y1, y2):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
#private method
def __setPaddleRight(self):
self.x1 = 4
self.x2 = 4
self.y1 = 0
self.y2 = 1
display.set_pixel(self.x1, self.y1, 9)... | 22.803922 | 49 | 0.527945 | 167 | 1,163 | 3.568862 | 0.179641 | 0.120805 | 0.151007 | 0.191275 | 0.412752 | 0.412752 | 0.412752 | 0.412752 | 0.412752 | 0.412752 | 0 | 0.087533 | 0.351677 | 1,163 | 50 | 50 | 23.26 | 0.702918 | 0.024076 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.026316 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6455329fd7ffb167c9c800128a8018574c6f150 | 1,929 | py | Python | similarityworkbench/bin/mcs/Cmcs.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | 2 | 2017-12-11T23:17:40.000Z | 2020-08-17T08:35:01.000Z | similarityworkbench/bin/mcs/Cmcs.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | null | null | null | similarityworkbench/bin/mcs/Cmcs.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.35
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _Cmcs
import new
new_instancemethod = new.instancem... | 20.967391 | 70 | 0.645931 | 248 | 1,929 | 4.685484 | 0.399194 | 0.046472 | 0.04475 | 0.05852 | 0.204819 | 0.185886 | 0.185886 | 0.134251 | 0 | 0 | 0 | 0.007628 | 0.252462 | 1,929 | 91 | 71 | 21.197802 | 0.798197 | 0.147227 | 0 | 0.333333 | 1 | 0 | 0.050122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0.047619 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6479e03d980f6f858785f0e3a94abe6a8988fd2 | 731 | py | Python | cogs/__init__.py | Cenoon/yin-bot | 8324b4ef75e42ce11bb3545e4c4db8999cdf1f58 | [
"MIT"
] | null | null | null | cogs/__init__.py | Cenoon/yin-bot | 8324b4ef75e42ce11bb3545e4c4db8999cdf1f58 | [
"MIT"
] | null | null | null | cogs/__init__.py | Cenoon/yin-bot | 8324b4ef75e42ce11bb3545e4c4db8999cdf1f58 | [
"MIT"
] | null | null | null | from cogs.admin import Admin
from cogs.filter import Filter
from cogs.gateway import Gateway
from cogs.info import Info
from cogs.logging import Logging
from cogs.moderation import Moderation
from cogs.owner import Owner
from cogs.pings import Pings
from cogs.rng import RNG
from cogs.roles import Roles
from c... | 21.5 | 39 | 0.678523 | 91 | 731 | 5.406593 | 0.208791 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236662 | 731 | 33 | 40 | 22.151515 | 0.88172 | 0 | 0 | 0 | 0 | 0 | 0.133238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.46875 | 0 | 0.46875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f64aa64221bd8633d27de04265876c9bfe04c92b | 1,001 | py | Python | QRSMS/initial/migrations/0037_auto_20200415_0658.py | Srishti-Ahuja/QRSMS-V1 | 1f2fa82e8ddaeb62e633fcd6a136696355317bba | [
"Apache-2.0"
] | 4 | 2020-06-16T09:42:20.000Z | 2021-11-24T08:18:16.000Z | QRSMS/initial/migrations/0037_auto_20200415_0658.py | Srishti-Ahuja/QRSMS-V1 | 1f2fa82e8ddaeb62e633fcd6a136696355317bba | [
"Apache-2.0"
] | 7 | 2021-04-08T21:57:34.000Z | 2022-02-27T06:41:15.000Z | QRSMS/initial/migrations/0037_auto_20200415_0658.py | Srishti-Ahuja/QRSMS-V1 | 1f2fa82e8ddaeb62e633fcd6a136696355317bba | [
"Apache-2.0"
] | 7 | 2020-11-29T09:45:44.000Z | 2022-03-30T15:27:33.000Z | # Generated by Django 2.2 on 2020-04-15 01:58
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('initial', '0036_auto_20200414_0456'),
]
operations = [
migrations.AlterField(
model_name='sectionattendance',
... | 28.6 | 87 | 0.599401 | 98 | 1,001 | 6.010204 | 0.418367 | 0.135823 | 0.169779 | 0.196944 | 0.602716 | 0.602716 | 0.512733 | 0.512733 | 0.512733 | 0.512733 | 0 | 0.042076 | 0.287712 | 1,001 | 34 | 88 | 29.441176 | 0.784011 | 0.042957 | 0 | 0.571429 | 1 | 0 | 0.123431 | 0.024059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f653a9dcb00d3b46fc9e0f23f723016551219f19 | 765 | py | Python | bokchoy/utils/types.py | ulule/bokchoy | 58afaf325ce275edf5c4a955379afb1cc5eb5de3 | [
"MIT"
] | null | null | null | bokchoy/utils/types.py | ulule/bokchoy | 58afaf325ce275edf5c4a955379afb1cc5eb5de3 | [
"MIT"
] | null | null | null | bokchoy/utils/types.py | ulule/bokchoy | 58afaf325ce275edf5c4a955379afb1cc5eb5de3 | [
"MIT"
] | null | null | null | import datetime
from bokchoy.compat import as_text
def enum(name, *sequential, **named):
values = dict(zip(sequential, range(len(sequential))), **named)
# NOTE: Yes, we *really* want to cast using str() here.
# On Python 2 type() requires a byte string (which is str() on Python 2).
# On Python 3 it ... | 23.90625 | 77 | 0.626144 | 116 | 765 | 4.103448 | 0.577586 | 0.05042 | 0.037815 | 0.021008 | 0.046218 | 0.046218 | 0.046218 | 0 | 0 | 0 | 0 | 0.005128 | 0.235294 | 765 | 31 | 78 | 24.677419 | 0.808547 | 0.261438 | 0 | 0.125 | 0 | 0 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f65842c1c1f7f3d7fd7281f633a8f128dedaad11 | 1,582 | py | Python | tests/test_area.py | Leikt/map_generator | 86c6359ed84056f32642cb7e23db855beba62923 | [
"MIT"
] | 1 | 2021-06-09T10:02:04.000Z | 2021-06-09T10:02:04.000Z | tests/test_area.py | Leikt/map_generator | 86c6359ed84056f32642cb7e23db855beba62923 | [
"MIT"
] | null | null | null | tests/test_area.py | Leikt/map_generator | 86c6359ed84056f32642cb7e23db855beba62923 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# coding: utf-8
import unittest
from src.helpers.area import Area, OffsetedArea
class Test_Area(unittest.TestCase):
def test_coordinates(self):
area = Area(5, 10)
self.assertEqual(area.surface, 5 * 10)
self.assertEqual(area.width, 5)
self.assertEqual(area.... | 32.285714 | 47 | 0.570164 | 198 | 1,582 | 4.525253 | 0.227273 | 0.301339 | 0.169643 | 0.09375 | 0.652902 | 0.575893 | 0.575893 | 0.482143 | 0.482143 | 0.482143 | 0 | 0.033241 | 0.315424 | 1,582 | 49 | 48 | 32.285714 | 0.79409 | 0.022756 | 0 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f659ecf0fae560025107fcbe993917bd2e3d3fd5 | 1,208 | py | Python | pythran/analyses/global_declarations.py | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | pythran/analyses/global_declarations.py | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | pythran/analyses/global_declarations.py | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | """ GlobalDeclarations gathers top-level declarations. """
from pythran.passmanager import ModuleAnalysis
from beniget import DefUseChains
import sys
class SilentDefUseChains(DefUseChains):
def unbound_identifier(self, name, node):
pass
class GlobalDeclarations(ModuleAnalysis):
""" Gather all kin... | 26.844444 | 65 | 0.623344 | 133 | 1,208 | 5.586466 | 0.503759 | 0.044415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003286 | 0.244205 | 1,208 | 44 | 66 | 27.454545 | 0.810515 | 0.483444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0.2 | 0 | 0.533333 | 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 | 1 | 0 | 0 | 2 |
f66cff904965ef3bc07da5fc625bf0da2fbc6f00 | 1,397 | py | Python | examples/action_models/AD5_Resource_Wrong_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | examples/action_models/AD5_Resource_Wrong_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | examples/action_models/AD5_Resource_Wrong_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | from sysmpy import *
import asyncio
"""
+---------------+
| |
| start |
| |
+---------------+
| process
|
+---------------+
... | 28.510204 | 68 | 0.213314 | 61 | 1,397 | 4.819672 | 0.704918 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027375 | 0.555476 | 1,397 | 48 | 69 | 29.104167 | 0.446055 | 0.073014 | 0 | 0 | 0 | 0 | 0.219124 | 0.091633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f673203eb20e3c73b91e2c71d5c0b87ec940ab58 | 883 | py | Python | app/__init__.py | gibran-abdillah/flask-blog-app | 17a1b4a9ba4fd56c92104ddd2c4d8a18365d292a | [
"MIT"
] | null | null | null | app/__init__.py | gibran-abdillah/flask-blog-app | 17a1b4a9ba4fd56c92104ddd2c4d8a18365d292a | [
"MIT"
] | null | null | null | app/__init__.py | gibran-abdillah/flask-blog-app | 17a1b4a9ba4fd56c92104ddd2c4d8a18365d292a | [
"MIT"
] | 1 | 2021-12-18T02:36:22.000Z | 2021-12-18T02:36:22.000Z | from flask_sqlalchemy import SQLAlchemy
from flask import Flask
from flask_login import LoginManager
from config import conf_obj
from .utils.mail import Mail
login_manager = LoginManager()
db = SQLAlchemy()
mail = Mail()
def create_app(env_type: str='development'):
app = Flask(__name__)
app.config.from_obje... | 25.970588 | 49 | 0.751982 | 120 | 883 | 5.283333 | 0.291667 | 0.082019 | 0.100946 | 0.182965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1812 | 883 | 33 | 50 | 26.757576 | 0.876902 | 0.055493 | 0 | 0 | 0 | 0 | 0.021661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.458333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9c911d0ade1676143353ef0100724e5fc4390a74 | 1,796 | py | Python | server/apps/vartype/api_views.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/vartype/api_views.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/vartype/api_views.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | import logging
from django.utils.decorators import method_decorator
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters, viewsets
from apps.utils.rest.cached_views import cache_on_auth
from apps.utils.rest.permissions import HasAuthAPIKeyNoOrg, IsStaffOrReadOnly, ReadOnly... | 38.212766 | 115 | 0.749443 | 217 | 1,796 | 6.073733 | 0.589862 | 0.015175 | 0.028832 | 0.025797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002701 | 0.17539 | 1,796 | 46 | 116 | 39.043478 | 0.887238 | 0.268374 | 0 | 0 | 0 | 0 | 0.047012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.333333 | 0.041667 | 0.875 | 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 | 1 | 0 | 0 | 2 |
9c96541f6a127802dcaa7f654766c2de88ffe348 | 1,157 | py | Python | plume/exception.py | vbatoufflet/plume | 3262173c5c291359ca3294c30a05c042bd13d247 | [
"BSD-3-Clause"
] | 1 | 2016-11-25T08:39:31.000Z | 2016-11-25T08:39:31.000Z | plume/exception.py | vbatoufflet/plume | 3262173c5c291359ca3294c30a05c042bd13d247 | [
"BSD-3-Clause"
] | null | null | null | plume/exception.py | vbatoufflet/plume | 3262173c5c291359ca3294c30a05c042bd13d247 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013 Vincent Batoufflet.
#
# License: BSD, see LICENSE for more details.
#
from flask.ext.babel import _
class GenericException(Exception):
message = None
def __init__(self, **kwargs):
Exception.__init__(self)
[setattr(self, x, y) for x, y in kwargs.... | 18.365079 | 60 | 0.68885 | 117 | 1,157 | 6.641026 | 0.57265 | 0.198198 | 0.096525 | 0.123552 | 0.195624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030635 | 0.210026 | 1,157 | 62 | 61 | 18.66129 | 0.819475 | 0.096802 | 0 | 0.225806 | 0 | 0 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.096774 | 0.032258 | 0.032258 | 0.903226 | 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 | 1 | 0 | 0 | 2 |
9ca0deb5ef2c4f5ba39c73b7cf4abdc8bbaefd83 | 1,368 | py | Python | custom/icds_reports/migrations/0189_new_fields_to_bihar_demogrpahics.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/migrations/0189_new_fields_to_bihar_demogrpahics.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/migrations/0189_new_fields_to_bihar_demogrpahics.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-10 08:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('icds_reports', '0188_rebuild_view_bihar_api'),
]
operations = [
migrations.... | 30.4 | 56 | 0.600146 | 121 | 1,368 | 6.570248 | 0.454545 | 0.135849 | 0.173585 | 0.203774 | 0.623899 | 0.543396 | 0.479245 | 0.479245 | 0.405031 | 0.320755 | 0 | 0.022822 | 0.295322 | 1,368 | 44 | 57 | 31.090909 | 0.801867 | 0.050439 | 0 | 0.578947 | 1 | 0 | 0.208333 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9cab4ce2189fd5d7f268e74a138e7599c87528ed | 548 | py | Python | tests/r/test_macdonell_df.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_macdonell_df.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_macdonell_df.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.macdonell_df import macdonell_df
def test_macdonell_df():
"""Test module macdonell_df.py by downloading
macdonell_df.csv and testing shape of... | 22.833333 | 52 | 0.768248 | 78 | 548 | 5.064103 | 0.538462 | 0.167089 | 0.121519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.169708 | 548 | 23 | 53 | 23.826087 | 0.846154 | 0.224453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9cbf28fba62ab2cb2ec4a316a103e93e8a743656 | 5,255 | py | Python | dpa/imgres/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 55 | 2015-07-15T02:33:55.000Z | 2020-12-28T08:02:54.000Z | dpa/imgres/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 5 | 2015-07-11T03:21:10.000Z | 2016-12-27T12:20:07.000Z | dpa/imgres/__init__.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 12 | 2015-07-08T04:48:39.000Z | 2020-06-27T11:35:58.000Z | # -----------------------------------------------------------------------------
# Module: dpa.imgres
# Author: Chuqiao Wang (chuqiaw)
# -----------------------------------------------------------------------------
"""An image resolution API
An image resolution API that handles resolution change.
Classes
-------
ImgRe... | 28.101604 | 89 | 0.458421 | 465 | 5,255 | 4.982796 | 0.253763 | 0.038843 | 0.047475 | 0.025896 | 0.336642 | 0.308157 | 0.257229 | 0.257229 | 0.216659 | 0.216659 | 0 | 0.018859 | 0.233111 | 5,255 | 186 | 90 | 28.252688 | 0.556079 | 0.579258 | 0 | 0.148148 | 0 | 0 | 0.029141 | 0.010736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.018519 | 0.037037 | 0.018519 | 0.592593 | 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 | 1 | 0 | 0 | 2 |
9cc0f623f259d9dd7987219c57a67d4e2e727f9c | 2,804 | py | Python | tests/cloudcraft_graph_test.py | tjunnone/modules.tf-lambda | d631fcc3dbea752e5ed3ba23ce59ab47b4dc28e7 | [
"MIT"
] | 312 | 2018-09-15T12:56:49.000Z | 2022-03-14T06:04:06.000Z | tests/cloudcraft_graph_test.py | tjunnone/modules.tf-lambda | d631fcc3dbea752e5ed3ba23ce59ab47b4dc28e7 | [
"MIT"
] | 30 | 2018-09-15T17:41:29.000Z | 2021-09-30T02:08:10.000Z | tests/cloudcraft_graph_test.py | tjunnone/modules.tf-lambda | d631fcc3dbea752e5ed3ba23ce59ab47b4dc28e7 | [
"MIT"
] | 48 | 2018-09-17T12:05:16.000Z | 2022-01-20T11:35:51.000Z | # #!/usr/bin/env pytest
#
# from json import loads
# from os import environ
#
# import pytest
# from modulestf.cloudcraft.graph import populate_graph
#
# events = (
# (
# {
# "AlarmType": "Unsupported alarm type",
# "AWSAccountId": "000000000000",
# "NewStateValue": "ALARM",
# }
... | 40.637681 | 376 | 0.633738 | 248 | 2,804 | 7.084677 | 0.572581 | 0.091064 | 0.076836 | 0.027319 | 0.135458 | 0.104724 | 0.104724 | 0.081958 | 0.081958 | 0.081958 | 0 | 0.084699 | 0.216833 | 2,804 | 68 | 377 | 41.235294 | 0.715392 | 0.948645 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9cc160beb6165b7a466d49703239fd9fc178d421 | 393 | py | Python | lmchallenge/core/__init__.py | Bhaskers-Blu-Org2/LMChallenge | 80d1d26fb8bd4810dce70e6071b92add6051ae47 | [
"MIT"
] | 50 | 2017-10-08T17:26:55.000Z | 2019-02-06T17:21:52.000Z | lmchallenge/core/__init__.py | Microsoft/LMChallenge | 80d1d26fb8bd4810dce70e6071b92add6051ae47 | [
"MIT"
] | 1 | 2019-12-13T15:11:22.000Z | 2019-12-13T15:11:22.000Z | lmchallenge/core/__init__.py | microsoft/LMChallenge | 80d1d26fb8bd4810dce70e6071b92add6051ae47 | [
"MIT"
] | 7 | 2019-11-03T16:18:32.000Z | 2021-09-13T12:48:46.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
'''Core components supporting LM Challenge, defining
`lmchallenge.core.model.Model`, as well as various utilities
for implementing the top-level functionality (which lives in
the other submodules).
'''
from .model import Fil... | 32.75 | 64 | 0.776081 | 50 | 393 | 6.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 393 | 11 | 65 | 35.727273 | 0.907738 | 0.750636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9cc16ac91ee45af011e16d809d5da4f9ddecff7e | 7,719 | py | Python | SCRIPTS/ASA/ASA.py | TheNoiselessNoise/RandomGarbage | f9663fc705dee6e214a0e6c8f5996a5a1c97f99b | [
"MIT"
] | null | null | null | SCRIPTS/ASA/ASA.py | TheNoiselessNoise/RandomGarbage | f9663fc705dee6e214a0e6c8f5996a5a1c97f99b | [
"MIT"
] | 1 | 2022-02-19T08:38:56.000Z | 2022-02-19T08:38:56.000Z | SCRIPTS/ASA/ASA.py | TheNoiselessNoise/RandomGarbage | f9663fc705dee6e214a0e6c8f5996a5a1c97f99b | [
"MIT"
] | null | null | null | #
# VERSION: 69
# NAME: AngerSadnessAlcohol.py
#
# ! This script was created under the influence of anger, sadness and alcohol.
# ! This script exploits an old XPath vulnerability which involves extractvalue()
#
# ----------------------------------------
# ____ ________.___._____________________
# \ \/... | 59.376923 | 1,667 | 0.708641 | 1,084 | 7,719 | 4.719557 | 0.262915 | 0.017592 | 0.023456 | 0.033229 | 0.425723 | 0.408131 | 0.398554 | 0.385262 | 0.381939 | 0.370211 | 0 | 0.069133 | 0.093017 | 7,719 | 129 | 1,668 | 59.837209 | 0.66162 | 0.125534 | 0 | 0.077922 | 0 | 0.142857 | 0.612461 | 0.398867 | 0 | 0 | 0.005962 | 0 | 0 | 1 | 0.038961 | false | 0.025974 | 0.064935 | 0 | 0.12987 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9cc7819e0e279c62897d4613efb18da65b50e15d | 2,922 | py | Python | tests/test_vtkgenerator.py | donghaozhang/swc2vtk | 285e4981a3f1f54b8f819f3490f2e451569ce541 | [
"Apache-2.0"
] | 9 | 2018-10-28T16:02:41.000Z | 2022-03-15T17:33:59.000Z | tests/test_vtkgenerator.py | donghaozhang/swc2vtk | 285e4981a3f1f54b8f819f3490f2e451569ce541 | [
"Apache-2.0"
] | 9 | 2017-01-14T15:34:43.000Z | 2021-06-07T11:04:43.000Z | tests/test_vtkgenerator.py | donghaozhang/swc2vtk | 285e4981a3f1f54b8f819f3490f2e451569ce541 | [
"Apache-2.0"
] | 4 | 2017-01-20T10:01:32.000Z | 2022-03-20T04:24:31.000Z | # -*- coding: utf-8 -*-
import unittest
import os
import swc2vtk
class TestVtkGenerator(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls):
pass
def setUp(self):
self.swc_file_path = os.path.join('tests', 'simple.swc')
s... | 33.204545 | 123 | 0.688569 | 429 | 2,922 | 4.342657 | 0.202797 | 0.097692 | 0.223296 | 0.152979 | 0.601181 | 0.577563 | 0.577563 | 0.479871 | 0.479871 | 0.446055 | 0 | 0.024464 | 0.202601 | 2,922 | 87 | 124 | 33.586207 | 0.775107 | 0.007187 | 0 | 0.3125 | 0 | 0 | 0.020007 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 1 | 0.265625 | false | 0.03125 | 0.046875 | 0 | 0.34375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ce23585137a4d241eee75f867acc530ed807d92 | 311 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/instructor/settings/devstack.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/instructor/settings/devstack.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/instructor/settings/devstack.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """Devstack environment variables unique to the instructor plugin."""
def plugin_settings(settings):
"""Settings for the instructor plugin."""
# Set this to the dashboard URL in order to display the link from the
# dashboard to the Analytics Dashboard.
settings.ANALYTICS_DASHBOARD_URL = None
| 34.555556 | 73 | 0.745981 | 41 | 311 | 5.585366 | 0.536585 | 0.065502 | 0.165939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18328 | 311 | 8 | 74 | 38.875 | 0.901575 | 0.662379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ce4e4aef491c9f3acb02bed3e69182f7ffb51db | 1,136 | py | Python | treefrog/parse/parsers.py | dawsonbooth/treefrog | 0ff0866b3ba9b316e4e719aab6113f82d79c98a9 | [
"MIT"
] | 1 | 2022-01-16T17:27:40.000Z | 2022-01-16T17:27:40.000Z | treefrog/parse/parsers.py | dawsonbooth/treefrog | 0ff0866b3ba9b316e4e719aab6113f82d79c98a9 | [
"MIT"
] | null | null | null | treefrog/parse/parsers.py | dawsonbooth/treefrog | 0ff0866b3ba9b316e4e719aab6113f82d79c98a9 | [
"MIT"
] | null | null | null | from __future__ import annotations
import calendar
from datetime import timezone
from slippi import Game
from .utils import character_name, characters, stage_name
def matchup(game: Game) -> str:
c1, c2 = tuple(characters(game))
return f"{character_name(c1)} vs {character_name(c2)}"
def stage(game: Game) ... | 22.27451 | 93 | 0.691901 | 170 | 1,136 | 4.529412 | 0.252941 | 0.093506 | 0.128571 | 0.154545 | 0.233766 | 0.233766 | 0.233766 | 0.233766 | 0 | 0 | 0 | 0.014599 | 0.15581 | 1,136 | 50 | 94 | 22.72 | 0.788321 | 0 | 0 | 0 | 0 | 0.037037 | 0.147007 | 0.065141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.185185 | 0.259259 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
140df9c6eb41ab5073d000f8b32c18d9ceaf5645 | 2,358 | py | Python | arvet/batch_analysis/tasks/tests/test_train_system_task.py | jskinn/arvet | 742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9 | [
"BSD-2-Clause"
] | 2 | 2021-05-27T21:48:34.000Z | 2021-06-12T02:58:44.000Z | arvet/batch_analysis/tasks/tests/test_train_system_task.py | jskinn/arvet | 742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9 | [
"BSD-2-Clause"
] | null | null | null | arvet/batch_analysis/tasks/tests/test_train_system_task.py | jskinn/arvet | 742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9 | [
"BSD-2-Clause"
] | null | null | null | # # Copyright (c) 2017, John Skinner
# import unittest
# import numpy as np
# import bson
# import arvet.database.tests.test_entity
# import arvet.util.dict_utils as du
# import arvet.batch_analysis.task
# import arvet.batch_analysis.tasks.train_system_task as task
#
#
# class TestTrainSystemTask(arvet.database.tests.t... | 44.490566 | 103 | 0.627226 | 269 | 2,358 | 5.371747 | 0.360595 | 0.114187 | 0.152249 | 0.033218 | 0.066436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037989 | 0.240882 | 2,358 | 52 | 104 | 45.346154 | 0.769274 | 0.954623 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
142f4fef613fe5b10d3d4e11b562d9391652b140 | 6,527 | py | Python | Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 05 - Databricks Best Practices.py | databricks-academy/scalable-machine-learning-with-apache-spark | 2b560dea766e2e6589defaaf6d9d15f361ce6db6 | [
"CC0-1.0"
] | null | null | null | Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 05 - Databricks Best Practices.py | databricks-academy/scalable-machine-learning-with-apache-spark | 2b560dea766e2e6589defaaf6d9d15f361ce6db6 | [
"CC0-1.0"
] | null | null | null | Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 05 - Databricks Best Practices.py | databricks-academy/scalable-machine-learning-with-apache-spark | 2b560dea766e2e6589defaaf6d9d15f361ce6db6 | [
"CC0-1.0"
] | 8 | 2021-12-09T19:40:48.000Z | 2022-03-24T19:19:42.000Z | # Databricks notebook source
# MAGIC %md-sandbox
# MAGIC
# MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;">
# MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px">
# MAGIC </div>
# COMMAND ----------
# M... | 58.276786 | 285 | 0.739084 | 952 | 6,527 | 5.04937 | 0.347689 | 0.039526 | 0.039526 | 0.037861 | 0.157895 | 0.133763 | 0.114208 | 0.100062 | 0.064905 | 0.064905 | 0 | 0.003901 | 0.13605 | 6,527 | 111 | 286 | 58.801802 | 0.848555 | 0.966447 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
142f59eba57db6c8a43c3551e03b755bd4ddd2c6 | 288 | py | Python | pyords/genetic_algorithm/environments.py | cnpls/pyords | 249591e96031cb2c49045a9984fd9c5f50ef757d | [
"MIT"
] | null | null | null | pyords/genetic_algorithm/environments.py | cnpls/pyords | 249591e96031cb2c49045a9984fd9c5f50ef757d | [
"MIT"
] | null | null | null | pyords/genetic_algorithm/environments.py | cnpls/pyords | 249591e96031cb2c49045a9984fd9c5f50ef757d | [
"MIT"
] | null | null | null | class BasicEnvironment:
"""Object to pass containing data used for solve. Individuals are mapped
to this data upon evaluation. Environments also hold additional evaluation
data."""
def __init__(self, df, _dict=None):
self.df = df
self._dict = _dict
| 36 | 79 | 0.677083 | 36 | 288 | 5.222222 | 0.722222 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253472 | 288 | 7 | 80 | 41.142857 | 0.874419 | 0.520833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
143a11a1b3daa721a9367d9e2bf6c12757c3f0c1 | 4,776 | py | Python | Python_lib/task_before/run_palybooks.py | mndarren/CPP-Lib | d821e5468d7c76f5a28db28b12670d6a7bce7360 | [
"Apache-2.0"
] | 5 | 2017-10-25T15:34:37.000Z | 2020-06-28T17:58:55.000Z | Python_lib/task_before/run_palybooks.py | mndarren/CPP-Lib | d821e5468d7c76f5a28db28b12670d6a7bce7360 | [
"Apache-2.0"
] | null | null | null | Python_lib/task_before/run_palybooks.py | mndarren/CPP-Lib | d821e5468d7c76f5a28db28b12670d6a7bce7360 | [
"Apache-2.0"
] | 4 | 2018-05-19T20:43:31.000Z | 2020-06-28T17:09:16.000Z | #!/usr/bin/python
'''
This is a tool for run multiple playbooks, Command like:
python run_playbooks.py --password xxx --target_host xxx --hostname xxx
--bitbucket_user xxx --playbooks playbook1,playbook2,playbook1
Note: playbooks need to be separated by ','
'''
import os, sys
import re
import optparse
import ... | 36.738462 | 108 | 0.677764 | 577 | 4,776 | 5.45234 | 0.270364 | 0.041322 | 0.026701 | 0.028608 | 0.203115 | 0.195486 | 0.153846 | 0.153846 | 0.120788 | 0.104259 | 0 | 0.001567 | 0.198074 | 4,776 | 129 | 109 | 37.023256 | 0.819843 | 0.174414 | 0 | 0.160494 | 0 | 0 | 0.191088 | 0.007381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.123457 | null | null | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
145a5bd5c5cfb4ca091237a3f8cad31e5a53bff8 | 23,876 | py | Python | pysnmp-with-texts/Juniper-PPPOE-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Juniper-PPPOE-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Juniper-PPPOE-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Juniper-PPPOE-PROFILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-PPPOE-PROFILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:03:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 171.769784 | 1,836 | 0.789956 | 2,754 | 23,876 | 6.847858 | 0.1565 | 0.049631 | 0.061244 | 0.088658 | 0.508829 | 0.413437 | 0.393658 | 0.384962 | 0.371388 | 0.368524 | 0 | 0.04807 | 0.09298 | 23,876 | 138 | 1,837 | 173.014493 | 0.822774 | 0.014408 | 0 | 0.121951 | 0 | 0.162602 | 0.462994 | 0.150406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065041 | 0 | 0.065041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
146fa414e2d377664508718550bca25960c302e8 | 977 | py | Python | task_assignment/tests/factory.py | My-Garage/resourceideaapi | b872a6f15277989870572ba6e523c9dc378b7a24 | [
"MIT"
] | 1 | 2021-01-20T14:40:06.000Z | 2021-01-20T14:40:06.000Z | task_assignment/tests/factory.py | My-Garage/resourceideaapi | b872a6f15277989870572ba6e523c9dc378b7a24 | [
"MIT"
] | null | null | null | task_assignment/tests/factory.py | My-Garage/resourceideaapi | b872a6f15277989870572ba6e523c9dc378b7a24 | [
"MIT"
] | null | null | null | import factory
from faker import Faker
from faker.providers import lorem # type: ignore
from faker.providers import date_time # type: ignore
import pytz # type: ignore
from employee.tests.factory import EmployeeFactory
from engagement.tests.factory import EngagementFactory
from organization.tests.factory import Org... | 31.516129 | 96 | 0.78608 | 118 | 977 | 6.355932 | 0.415254 | 0.064 | 0.072 | 0.064 | 0.077333 | 0.077333 | 0.077333 | 0 | 0 | 0 | 0 | 0.004728 | 0.134084 | 977 | 30 | 97 | 32.566667 | 0.881797 | 0.064483 | 0 | 0 | 0 | 0 | 0.045254 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.809524 | 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 | 1 | 0 | 0 | 2 |
148d381df9fdd93ba17627298aeffc49b55cd9cc | 76 | py | Python | .venv/lib/python3.8/site-packages/cv2/version.py | justpns/image-processing | c451ec0e9344998c2978f75eff7193a957dfdcb6 | [
"MIT"
] | 2 | 2020-06-05T17:33:24.000Z | 2021-01-21T08:59:38.000Z | .venv/lib/python3.8/site-packages/cv2/version.py | justpns/image-processing | c451ec0e9344998c2978f75eff7193a957dfdcb6 | [
"MIT"
] | 1 | 2020-12-18T15:49:24.000Z | 2020-12-18T15:49:24.000Z | .venv/lib/python3.8/site-packages/cv2/version.py | justpns/image-processing | c451ec0e9344998c2978f75eff7193a957dfdcb6 | [
"MIT"
] | null | null | null | opencv_version = "4.4.0.42"
contrib = False
headless = False
ci_build = True | 19 | 27 | 0.736842 | 13 | 76 | 4.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.144737 | 76 | 4 | 28 | 19 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1494dba6d3a5f4650b0d469ad61841537612f737 | 280 | py | Python | pytest_demo.py | vis7/django_pytest_fixture_tutorial | e4662aaca6ffebdc6d467e06115c249dc5106665 | [
"MIT"
] | null | null | null | pytest_demo.py | vis7/django_pytest_fixture_tutorial | e4662aaca6ffebdc6d467e06115c249dc5106665 | [
"MIT"
] | null | null | null | pytest_demo.py | vis7/django_pytest_fixture_tutorial | e4662aaca6ffebdc6d467e06115c249dc5106665 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth.models import Group, User
# # simple test
def test_foo():
assert True
# accessing database
def test_should_create_user_with_username(db):
user = User.objects.create_user("Haki")
assert user.username == "vis"
| 23.333333 | 50 | 0.753571 | 40 | 280 | 5.1 | 0.625 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153571 | 280 | 11 | 51 | 25.454545 | 0.860759 | 0.107143 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
149b2bcc3c75aab013d6898fdd35a71241966d6c | 153 | py | Python | koi/cli.py | Hanaasagi/koi | 4e8c5e5df9cacf34ef3d2d866cec98bee95a3719 | [
"BSD-3-Clause"
] | null | null | null | koi/cli.py | Hanaasagi/koi | 4e8c5e5df9cacf34ef3d2d866cec98bee95a3719 | [
"BSD-3-Clause"
] | null | null | null | koi/cli.py | Hanaasagi/koi | 4e8c5e5df9cacf34ef3d2d866cec98bee95a3719 | [
"BSD-3-Clause"
] | null | null | null | import click
from migrate_command import migrate
@click.group()
def cli():
""""""
cli.add_command(migrate)
if __name__ == '__main__':
cli()
| 10.928571 | 35 | 0.660131 | 19 | 153 | 4.789474 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 153 | 13 | 36 | 11.769231 | 0.733871 | 0 | 0 | 0 | 0 | 0 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
149fda53aa635695917707acc0b9f0c87cd37ed7 | 2,109 | py | Python | sites/gocd-interface/apps/forms.py | scaryclam/gocd-interface | b1faac45ece35f9bc7d5065281717c313501e04b | [
"MIT"
] | null | null | null | sites/gocd-interface/apps/forms.py | scaryclam/gocd-interface | b1faac45ece35f9bc7d5065281717c313501e04b | [
"MIT"
] | null | null | null | sites/gocd-interface/apps/forms.py | scaryclam/gocd-interface | b1faac45ece35f9bc7d5065281717c313501e04b | [
"MIT"
] | null | null | null | import urlparse
from django.contrib.auth.forms import AuthenticationForm
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.core import validators
class LoginForm(AuthenticationForm):
# Username field must be the same length as the email ... | 35.745763 | 78 | 0.678046 | 239 | 2,109 | 5.824268 | 0.393305 | 0.060345 | 0.068247 | 0.05819 | 0.244253 | 0.150862 | 0.150862 | 0.113506 | 0.113506 | 0.113506 | 0 | 0.002413 | 0.213845 | 2,109 | 58 | 79 | 36.362069 | 0.837153 | 0.06496 | 0 | 0.181818 | 0 | 0 | 0.13872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.431818 | 0.136364 | 0 | 0.522727 | 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 | 1 | 0 | 0 | 2 |
14a5bebeaa10541009a21168ce2e3468b65b33cf | 1,224 | py | Python | aiotdlib/api/types/found_messages.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/types/found_messages.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/types/found_messages.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 33.081081 | 92 | 0.5 | 113 | 1,224 | 5.318584 | 0.530973 | 0.066556 | 0.046589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001172 | 0.303105 | 1,224 | 36 | 93 | 34 | 0.7034 | 0.617647 | 0 | 0 | 1 | 0 | 0.044888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
14aeaa80548e22b619191aa94c03220527748f63 | 4,623 | py | Python | prettyqt/widgets/treewidgetitem.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/widgets/treewidgetitem.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/widgets/treewidgetitem.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from __future__ import annotations
from typing import Iterator, Literal
from prettyqt import constants, core, gui, iconprovider
from prettyqt.qt import QtWidgets
from prettyqt.utils import InvalidParamError, bidict, types
mod = QtWidgets.QTreeWidgetItem
CHILD_INDICATOR_POLICY = bidict(
show=mod.ChildIndicatorP... | 30.615894 | 85 | 0.64417 | 513 | 4,623 | 5.608187 | 0.253411 | 0.053528 | 0.076469 | 0.026764 | 0.101147 | 0.089329 | 0.074731 | 0.027807 | 0.027807 | 0.027807 | 0 | 0.003785 | 0.256976 | 4,623 | 150 | 86 | 30.82 | 0.83377 | 0.108588 | 0 | 0 | 0 | 0 | 0.018433 | 0.012033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.059524 | 0.095238 | 0.511905 | 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 | 1 | 0 | 0 | 2 |
14bd44a6e19e29c6c1793e0cd50305c693b4adaf | 643 | py | Python | examples/bad_words.py | MertGM/simplediscord | 59eecf954fba1a6e56bb6333e06ece500fcffa7a | [
"MIT"
] | null | null | null | examples/bad_words.py | MertGM/simplediscord | 59eecf954fba1a6e56bb6333e06ece500fcffa7a | [
"MIT"
] | null | null | null | examples/bad_words.py | MertGM/simplediscord | 59eecf954fba1a6e56bb6333e06ece500fcffa7a | [
"MIT"
] | null | null | null | import os
from simplediscord import SimpleDiscord as Discord
token = "Bot " + os.getenv("DISCORD_TOKEN")
api = os.getenv("DISCORD_API")
guild = os.getenv("DISCORD_GUILD")
bad_words = {}
# When modifying: make sure the language keyword begins with an uppercase and the words are all lowercased.
Discord.Filter("bad_wor... | 30.619048 | 107 | 0.755832 | 89 | 643 | 5.325843 | 0.58427 | 0.050633 | 0.094937 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122862 | 643 | 20 | 108 | 32.15 | 0.840426 | 0.163297 | 0 | 0 | 0 | 0 | 0.324627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1ae848fc8ec065f8c1819685a0b33c4b9a99c596 | 356 | py | Python | PyChan/Core/Commands/SKNIKOD/skni_kod.py | ErnestBytnar/PyChan-Bot | 7ce38547fa85e6f56c1702db5bea4ef2700d9b6f | [
"MIT"
] | 1 | 2021-12-03T17:19:27.000Z | 2021-12-03T17:19:27.000Z | PyChan/Core/Commands/SKNIKOD/skni_kod.py | ErnestBytnar/PyChan-Bot | 7ce38547fa85e6f56c1702db5bea4ef2700d9b6f | [
"MIT"
] | 11 | 2021-04-12T18:37:43.000Z | 2022-01-10T20:48:25.000Z | PyChan/Core/Commands/SKNIKOD/skni_kod.py | ErnestBytnar/PyChan-Bot | 7ce38547fa85e6f56c1702db5bea4ef2700d9b6f | [
"MIT"
] | 3 | 2020-12-22T09:31:07.000Z | 2021-12-07T23:36:45.000Z | import discord
from discord.ext import commands
from Core.Commands.SKNIKOD.Functions.get_members_projects import GetMembersProjects
class SKNIKOD(commands.Cog):
"""Class contains SKNI KOD methods
"""
def __init__(self, bot):
"""Constructor method
"""
self.bot = bot
self.b... | 22.25 | 83 | 0.69382 | 41 | 356 | 5.853659 | 0.609756 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 356 | 15 | 84 | 23.733333 | 0.857143 | 0.154494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ae971b1310a6724e4b04f1e6edd9b827853e18d | 223 | py | Python | conftest.py | jamandbees/misc-scripts | 619e89914892098714597e920e9f6b263caa5fe2 | [
"MIT"
] | null | null | null | conftest.py | jamandbees/misc-scripts | 619e89914892098714597e920e9f6b263caa5fe2 | [
"MIT"
] | null | null | null | conftest.py | jamandbees/misc-scripts | 619e89914892098714597e920e9f6b263caa5fe2 | [
"MIT"
] | null | null | null | import os
import pytest
@pytest.fixture()
def bin_path():
this_file_path = os.path.realpath(__file__)
this_file_dir = os.path.dirname(this_file_path)
return os.path.abspath(os.path.join(this_file_dir, "bin"))
| 22.3 | 62 | 0.73991 | 36 | 223 | 4.222222 | 0.416667 | 0.210526 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134529 | 223 | 9 | 63 | 24.777778 | 0.787565 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2113c7c084c9d40b4f74897e6fd88fbe86dad94c | 549 | py | Python | plugins/logging/syslog/__init__.py | madflojo/automon | 59a70506258c8b2354ebbe2bc91934c69800e17b | [
"Apache-2.0"
] | 414 | 2016-07-27T12:53:56.000Z | 2022-02-16T14:56:51.000Z | plugins/logging/syslog/__init__.py | SelecaoGlobocom/automatron | 5a3ccfe65f42800fbd7ee02987a290d578a3d45b | [
"Apache-2.0"
] | 121 | 2016-06-04T05:30:56.000Z | 2018-09-13T17:38:05.000Z | plugins/logging/syslog/__init__.py | SelecaoGlobocom/automatron | 5a3ccfe65f42800fbd7ee02987a290d578a3d45b | [
"Apache-2.0"
] | 72 | 2016-06-12T21:37:21.000Z | 2021-09-08T22:07:04.000Z | ''' Syslog logging handler '''
import logging
import logging.handlers
import sys
from core.logs import BaseLogging
class Logger(BaseLogging):
''' Handler class for Syslog Logging '''
def setup(self):
''' Setup class for handler '''
lh = logging.handlers.SysLogHandler(
facility=sel... | 28.894737 | 89 | 0.642987 | 61 | 549 | 5.786885 | 0.540984 | 0.073654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214936 | 549 | 18 | 90 | 30.5 | 0.819026 | 0.147541 | 0 | 0 | 0 | 0 | 0.176339 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
211b237c510048c7623a29ddca8fd601f71090a8 | 525 | py | Python | main/admin.py | hbble/monni | 800b8a190b5b0ca876bd5e4326dff3f4d4caed95 | [
"MIT"
] | null | null | null | main/admin.py | hbble/monni | 800b8a190b5b0ca876bd5e4326dff3f4d4caed95 | [
"MIT"
] | null | null | null | main/admin.py | hbble/monni | 800b8a190b5b0ca876bd5e4326dff3f4d4caed95 | [
"MIT"
] | null | null | null | from django.contrib import admin
from modeltranslation.admin import TranslationAdmin
from .models import InCategory, OutCategory, Income, Expense
class InCategoryAdmin(TranslationAdmin):
'''Allowing translate InCategory in admin panel'''
pass
class OutCategoryAdmin(TranslationAdmin):
'''Allowing translate... | 27.631579 | 60 | 0.80381 | 56 | 525 | 7.535714 | 0.410714 | 0.085308 | 0.161137 | 0.075829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 525 | 18 | 61 | 29.166667 | 0.907527 | 0.180952 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.181818 | 0.272727 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
212378cba7a88654cd2e95ff9931da4e809af617 | 4,388 | py | Python | PyPoll/pypoll_main.py | rzh0033/python-challenge | ba575f816528fbe817ceafaba56118e950bbe15e | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyPoll/pypoll_main.py | rzh0033/python-challenge | ba575f816528fbe817ceafaba56118e950bbe15e | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyPoll/pypoll_main.py | rzh0033/python-challenge | ba575f816528fbe817ceafaba56118e950bbe15e | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "9de928d7",
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import csv\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "8f1478f8",
"metadata": {},
"outputs"... | 26.920245 | 162 | 0.499088 | 509 | 4,388 | 4.212181 | 0.308448 | 0.041978 | 0.039179 | 0.068563 | 0.30597 | 0.217351 | 0.204291 | 0.182369 | 0.163246 | 0.113806 | 0 | 0.056808 | 0.261851 | 4,388 | 162 | 163 | 27.08642 | 0.605125 | 0 | 0 | 0.283951 | 0 | 0.024691 | 0.690975 | 0.154057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.018519 | 0 | 0.018519 | 0.04321 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
212ed125854dcd7316ba86ed7edfa8d957384769 | 2,733 | py | Python | lib/googlecloudsdk/api_lib/app/build.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/app/build.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/app/build.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- #
# Copyright 2018 Google Inc. All Rights Reserved.
#
# 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 requir... | 32.927711 | 78 | 0.745335 | 377 | 2,733 | 5.246684 | 0.371353 | 0.03185 | 0.032861 | 0.053084 | 0.152679 | 0.139535 | 0.139535 | 0.121335 | 0.044489 | 0 | 0 | 0.005314 | 0.173802 | 2,733 | 82 | 79 | 33.329268 | 0.870682 | 0.342115 | 0 | 0.113636 | 0 | 0 | 0.032405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.113636 | 0.136364 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
21333cf0a3056c7806621055d36ff013c423eebf | 506 | py | Python | libraries/botbuilder-azure/botbuilder/azure/__init__.py | awaemmanuel/botbuilder-python | bcc85a49f1426ccf682205566fd03937ee6d315c | [
"MIT"
] | 1 | 2019-05-31T10:55:15.000Z | 2019-05-31T10:55:15.000Z | libraries/botbuilder-azure/botbuilder/azure/__init__.py | awaemmanuel/botbuilder-python | bcc85a49f1426ccf682205566fd03937ee6d315c | [
"MIT"
] | null | null | null | libraries/botbuilder-azure/botbuilder/azure/__init__.py | awaemmanuel/botbuilder-python | bcc85a49f1426ccf682205566fd03937ee6d315c | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | 36.142857 | 76 | 0.51581 | 39 | 506 | 6.358974 | 0.769231 | 0.233871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002283 | 0.134387 | 506 | 13 | 77 | 38.923077 | 0.563927 | 0.618577 | 0 | 0 | 0 | 0 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2133a16b8ad9a22da30aef5b2b7ac1c52e80d4b1 | 248 | py | Python | collect_data/source_scripts/replace.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | collect_data/source_scripts/replace.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | collect_data/source_scripts/replace.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | import sys
if len(sys.argv) == 4:
find=sys.argv[1]
replace=sys.argv[2]
with open(sys.argv[3]) as f:
text = f.read()
text = text.replace(find,replace)
with open(sys.argv[3],"w") as f:
f.write(text)
| 19.076923 | 41 | 0.53629 | 41 | 248 | 3.243902 | 0.463415 | 0.263158 | 0.165414 | 0.225564 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.298387 | 248 | 12 | 42 | 20.666667 | 0.735632 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
213d929a3c980e9fe834f7fa747acce8f309753a | 1,314 | py | Python | views/parameterizer/state.py | computablelabs/compas | fbde4e2ef61ebadc5ffd6453bff60f678e6002d6 | [
"MIT"
] | 1 | 2019-10-24T19:16:10.000Z | 2019-10-24T19:16:10.000Z | views/parameterizer/state.py | computablelabs/compas | fbde4e2ef61ebadc5ffd6453bff60f678e6002d6 | [
"MIT"
] | 7 | 2019-10-31T14:55:07.000Z | 2019-12-11T19:29:15.000Z | views/parameterizer/state.py | computablelabs/compas | fbde4e2ef61ebadc5ffd6453bff60f678e6002d6 | [
"MIT"
] | null | null | null | from asciimatics.widgets import Label, Divider, Text
from viewmodels.parameterizer.state import State
"""
Our subviews simply take a layout and inject their content into it
"""
def inject_parameterizer_state(layout, col=0):
layout.add_widget(Label('Parameterizer'), col)
layout.add_widget(Divider(line_char='-'),... | 46.928571 | 83 | 0.716895 | 182 | 1,314 | 4.961538 | 0.340659 | 0.139535 | 0.232558 | 0.259136 | 0.307863 | 0.06423 | 0 | 0 | 0 | 0 | 0 | 0.021949 | 0.133181 | 1,314 | 27 | 84 | 48.666667 | 0.770852 | 0.060122 | 0 | 0 | 0 | 0 | 0.281223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
214511c4cd0cdead39b7751f6dc7a9b5431be393 | 363 | py | Python | PythonLearn/test/after_fix_style.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | PythonLearn/test/after_fix_style.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | PythonLearn/test/after_fix_style.py | OKKyu/PythonLearn | 48dc4cc2a1a34d99b09f8d37a5566d448dcf987c | [
"MIT"
] | null | null | null | #!python3
# -*- coding:utf-8 -*-
'''
this code is a sample of code for learn how to use python test modules.
'''
def aaa():
'''
printing tree ! mark.
'''
print("!!!")
def bbb():
'''
printing tree chars.
'''
print("BBB")
def ccc():
'''
printing number with loop.
'... | 12.964286 | 72 | 0.487603 | 45 | 363 | 3.933333 | 0.755556 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.333333 | 363 | 27 | 73 | 13.444444 | 0.719008 | 0.471074 | 0 | 0 | 0 | 0 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.428571 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.