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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5263e47cb8c3c0cc129353bf104a5dd08a68b0e6 | 198 | py | Python | createTable/table.py | DharmendraGITHB/python-MySql | 755928240b1b7ac6dd072ea8432ba871ce1b6520 | [
"Apache-2.0"
] | null | null | null | createTable/table.py | DharmendraGITHB/python-MySql | 755928240b1b7ac6dd072ea8432ba871ce1b6520 | [
"Apache-2.0"
] | null | null | null | createTable/table.py | DharmendraGITHB/python-MySql | 755928240b1b7ac6dd072ea8432ba871ce1b6520 | [
"Apache-2.0"
] | null | null | null | import mysql.connector
db= mysql.connector.connect(host= 'localhost', user='root', password='123456', database='mydb')
cur= db.cursor()
cur.execute("CREATE TABLE customers (name VARCHAR(200))")
| 22 | 95 | 0.732323 | 26 | 198 | 5.576923 | 0.846154 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050279 | 0.09596 | 198 | 8 | 96 | 24.75 | 0.759777 | 0 | 0 | 0 | 0 | 0 | 0.329949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5270129bed6bd03afe40ee49ef491647f1e48618 | 36,706 | py | Python | geosoft/gxapi/GXMAP.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxapi/GXMAP.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxapi/GXMAP.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
from .GXLPT import GXLPT
from .GXMETA import GXMETA
from .GXREG import GXREG
### endblock ClassImports
### block Header... | 30.310487 | 162 | 0.593936 | 4,790 | 36,706 | 4.444259 | 0.091023 | 0.028749 | 0.057497 | 0.079059 | 0.701334 | 0.650977 | 0.63773 | 0.624014 | 0.606586 | 0.597144 | 0 | 0.02107 | 0.301776 | 36,706 | 1,211 | 163 | 30.310487 | 0.809552 | 0.669291 | 0 | 0.07874 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.425197 | false | 0 | 0.03937 | 0 | 0.559055 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
52807f3c7425f8e07baf98735524360ade705780 | 1,023 | py | Python | faeAuditor/websiteResults/migrations/0003_auto_20181024_1326.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 2 | 2018-02-28T19:03:28.000Z | 2021-09-30T13:40:23.000Z | faeAuditor/websiteResults/migrations/0003_auto_20181024_1326.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 6 | 2020-02-11T21:53:58.000Z | 2022-02-10T07:57:58.000Z | faeAuditor/websiteResults/migrations/0003_auto_20181024_1326.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:05:20.000Z | 2019-12-05T06:05:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-10-24 18:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('websiteResults', '0002_auto_20181017_1615'),
]
operations = [
migrations.Ad... | 28.416667 | 54 | 0.610948 | 97 | 1,023 | 6.195876 | 0.474227 | 0.1198 | 0.153078 | 0.179701 | 0.487521 | 0.487521 | 0.487521 | 0.487521 | 0.487521 | 0.487521 | 0 | 0.050546 | 0.284457 | 1,023 | 35 | 55 | 29.228571 | 0.770492 | 0.066471 | 0 | 0.571429 | 1 | 0 | 0.213235 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bff1a110135d497a2513d374ba5c01285ab999a8 | 251 | py | Python | slim/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | 1 | 2017-09-18T07:56:25.000Z | 2017-09-18T07:56:25.000Z | slim/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | slim/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | from .base.app import Application, CORSOptions
from .base.permission import ALL_PERMISSION, EMPTY_PERMISSION
from .utils.json_ex import json_ex_dumps, json_ex_default
from . import base
from . import support
from . import utils
__version__ = '0.4.1'
| 27.888889 | 61 | 0.808765 | 38 | 251 | 5.052632 | 0.5 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.123506 | 251 | 8 | 62 | 31.375 | 0.859091 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 3 |
8700820ede52c3cf3c939c10fadc05ca170dca71 | 12,332 | py | Python | coderedcms/schema.py | fakegit/coderedcms | 10dd10635bba9c2dcecede4b8e557b5a6ffd8b23 | [
"BSD-3-Clause"
] | 1 | 2019-12-02T11:53:44.000Z | 2019-12-02T11:53:44.000Z | coderedcms/schema.py | fakegit/coderedcms | 10dd10635bba9c2dcecede4b8e557b5a6ffd8b23 | [
"BSD-3-Clause"
] | 1 | 2020-04-19T18:51:32.000Z | 2020-04-19T18:51:32.000Z | coderedcms/schema.py | fakegit/coderedcms | 10dd10635bba9c2dcecede4b8e557b5a6ffd8b23 | [
"BSD-3-Clause"
] | null | null | null | SCHEMA_ORG_CHOICES = (
('Organization', 'Organization'),
('Airline', 'Organization > Airline'),
('Corporation', 'Organization > Corporation'),
('EducationalOrganization', 'Organization > EducationalOrganization'),
('CollegeOrUniversity', 'Organization > EducationalOrganization > CollegeOrUniversity'... | 74.289157 | 108 | 0.729403 | 695 | 12,332 | 12.933813 | 0.227338 | 0.339304 | 0.10346 | 0.012237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137853 | 12,332 | 165 | 109 | 74.739394 | 0.845467 | 0 | 0 | 0 | 0 | 0 | 0.815034 | 0.098686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87032ddf8442b559533bb78d5b08993667f52ed9 | 509 | py | Python | src/endplay/dealer/__init__.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | null | null | null | src/endplay/dealer/__init__.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | null | null | null | src/endplay/dealer/__init__.py | BSalita/endplay | e99acff2e781e084f1982b336be7ee55b0417309 | [
"MIT"
] | null | null | null | """
Functionality for generating bridge deals. This submodule provides an API via
`generate_deals` as well as an executable module which can be run with
`python3 -m endplay.dealer` and which aims to emulate the behaviour of
Hans van Staveren's original dealer program
"""
__all__ = ['run_script', 'generate_deal', 'gen... | 39.153846 | 77 | 0.81336 | 72 | 509 | 5.597222 | 0.638889 | 0.129032 | 0.126551 | 0.124069 | 0.208437 | 0.208437 | 0.208437 | 0 | 0 | 0 | 0 | 0.002242 | 0.123772 | 509 | 12 | 78 | 42.416667 | 0.901345 | 0.518664 | 0 | 0 | 1 | 0 | 0.156118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8720eaa8897e11c6e250106e08efa3f1b02523cf | 1,150 | py | Python | model.py | Si-Huan/TH12.3-AI | 7a0499da9f68734a46353a5d270360d4a87dd641 | [
"Apache-2.0"
] | 1 | 2020-07-25T02:18:59.000Z | 2020-07-25T02:18:59.000Z | model.py | Gegel85/TH12.3-AI | fa946b3cc6478be6b382c5533d4371a715c40adc | [
"Apache-2.0"
] | null | null | null | model.py | Gegel85/TH12.3-AI | fa946b3cc6478be6b382c5533d4371a715c40adc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 1 11:53:33 2018
@author: 北海若
"""
import keras
def get_model():
model = keras.models.Sequential()
model.add(keras.layers.ConvLSTM2D(32, 6, strides=(2, 2), input_shape=(5, 80, 80, 3)))
model.add(keras.layers.BatchNormalization())
model.add(keras.layers.L... | 32.857143 | 89 | 0.686087 | 159 | 1,150 | 4.949686 | 0.283019 | 0.213469 | 0.346887 | 0.506989 | 0.722999 | 0.655654 | 0.655654 | 0.655654 | 0.655654 | 0.595934 | 0 | 0.053427 | 0.137391 | 1,150 | 34 | 90 | 33.823529 | 0.739919 | 0.062609 | 0 | 0.44 | 0 | 0 | 0.006542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8722c82c7373df243a202a3b7e1ba1bb008da020 | 414 | py | Python | Tools/resourceCompiler/mayaExporter/ui/__init__.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 114 | 2020-12-03T10:25:21.000Z | 2022-03-16T20:06:15.000Z | Tools/resourceCompiler/mayaExporter/ui/__init__.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | null | null | null | Tools/resourceCompiler/mayaExporter/ui/__init__.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 3 | 2021-01-11T16:22:26.000Z | 2022-01-29T16:41:09.000Z | import inspect
import os
import importlib
currPath= inspect.getfile(inspect.currentframe())
filename = currPath.split("/")[-1]
currPath= os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
files = os.listdir(currPath)
to_import = [ f for f in files if (f.find("Action.py") != -1 and f.find(".... | 27.6 | 87 | 0.702899 | 60 | 414 | 4.8 | 0.466667 | 0.104167 | 0.145833 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.113527 | 414 | 14 | 88 | 29.571429 | 0.776567 | 0 | 0 | 0 | 0 | 0 | 0.060533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
873233a0a9df856f535a20b0bfcab7688e772d99 | 64 | py | Python | arrays_practice/__init__.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | null | null | null | arrays_practice/__init__.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | 1 | 2021-05-05T04:21:19.000Z | 2021-05-06T04:50:01.000Z | arrays_practice/__init__.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | null | null | null | from .mutables import MutableArray
__all__ = ["MutableArray"]
| 12.8 | 34 | 0.765625 | 6 | 64 | 7.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 4 | 35 | 16 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
874a6a5ef0dba03c752d410470d4213ef4e73c49 | 2,893 | py | Python | zs/futures.py | njsmith/zs | 42ca7679c2b986243abcff048bc42d49c204048c | [
"BSD-2-Clause"
] | 35 | 2015-06-19T02:36:14.000Z | 2021-09-22T21:19:59.000Z | zs/futures.py | njsmith/zs | 42ca7679c2b986243abcff048bc42d49c204048c | [
"BSD-2-Clause"
] | 2 | 2016-03-07T00:52:41.000Z | 2021-11-14T16:48:33.000Z | zs/futures.py | njsmith/zs | 42ca7679c2b986243abcff048bc42d49c204048c | [
"BSD-2-Clause"
] | 4 | 2015-01-30T09:23:18.000Z | 2019-02-05T18:03:08.000Z | # This file is part of ZS
# Copyright (C) 2013-2014 Nathaniel Smith <njs@pobox.com>
# See file LICENSE.txt for license information.
# A tiny shim to let zs.reader pretend to use
# concurrent.futures.ProcessPoolExecutor on any version of Python, and whether
# or not we're actually using parallelism.
#
# We prefer to us... | 34.035294 | 78 | 0.699274 | 394 | 2,893 | 5.017767 | 0.449239 | 0.051593 | 0.030349 | 0.034901 | 0.048558 | 0.025291 | 0 | 0 | 0 | 0 | 0 | 0.004872 | 0.219495 | 2,893 | 84 | 79 | 34.440476 | 0.870682 | 0.52195 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297297 | false | 0.081081 | 0.081081 | 0.081081 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
87647b2a0e9b2ef6cbd9276148559f301899913e | 59 | py | Python | python/1004.py | nicollecnunes/uri-python | 1860c2be2eb3eb603767e829964ae7e586fb3511 | [
"MIT"
] | null | null | null | python/1004.py | nicollecnunes/uri-python | 1860c2be2eb3eb603767e829964ae7e586fb3511 | [
"MIT"
] | null | null | null | python/1004.py | nicollecnunes/uri-python | 1860c2be2eb3eb603767e829964ae7e586fb3511 | [
"MIT"
] | null | null | null | A=int(input())
B=int(input())
PROD=A*B
print("PROD =",PROD) | 14.75 | 20 | 0.627119 | 12 | 59 | 3.083333 | 0.5 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 59 | 4 | 20 | 14.75 | 0.672727 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8769cf503b55b671a68f5ca5207caaa9e491a9f4 | 140 | py | Python | benchmark/utils/metrics/__init__.py | pulltheflower/open-zoo-giltab | e06e948c9b42a6a25723aa62a6c714a94de093df | [
"Apache-2.0"
] | null | null | null | benchmark/utils/metrics/__init__.py | pulltheflower/open-zoo-giltab | e06e948c9b42a6a25723aa62a6c714a94de093df | [
"Apache-2.0"
] | null | null | null | benchmark/utils/metrics/__init__.py | pulltheflower/open-zoo-giltab | e06e948c9b42a6a25723aa62a6c714a94de093df | [
"Apache-2.0"
] | null | null | null | from .base import Base
from .detection import Detection
from .recognition import Recognition
__all__ = ['Base', 'Detection', 'Recognition'] | 28 | 46 | 0.778571 | 16 | 140 | 6.5625 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 140 | 5 | 46 | 28 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e8bfc74ffa3a38d0c0469ffa748beedbc345ccc | 596 | py | Python | CreatePackage.py | OmaeY/EffekseerForUE4 | eaa64b15d691d26219133c64a9fd16de0d39ffa3 | [
"MIT"
] | null | null | null | CreatePackage.py | OmaeY/EffekseerForUE4 | eaa64b15d691d26219133c64a9fd16de0d39ffa3 | [
"MIT"
] | null | null | null | CreatePackage.py | OmaeY/EffekseerForUE4 | eaa64b15d691d26219133c64a9fd16de0d39ffa3 | [
"MIT"
] | null | null | null | import shutil
import os
package_name = 'EffekseerForUE4/'
if os.path.exists(package_name):
shutil.rmtree(package_name)
os.makedirs(package_name, exist_ok=False)
shutil.copytree('Config/', package_name + 'Config/')
shutil.copytree('Content/', package_name +'Content/')
shutil.copytree('Plugins/', package_name +'Plu... | 31.368421 | 53 | 0.770134 | 79 | 596 | 5.607595 | 0.35443 | 0.322799 | 0.191874 | 0.189616 | 0.17833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.07047 | 596 | 18 | 54 | 33.111111 | 0.796029 | 0 | 0 | 0 | 0 | 0 | 0.236577 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5eb50b0f1a0e2eab6a49c019ac948b786b4c5b8b | 357 | py | Python | setup.py | nishant34/RotationAveraging | 79f77482681665fcf0eb16b539238432205b9d54 | [
"MIT"
] | null | null | null | setup.py | nishant34/RotationAveraging | 79f77482681665fcf0eb16b539238432205b9d54 | [
"MIT"
] | null | null | null | setup.py | nishant34/RotationAveraging | 79f77482681665fcf0eb16b539238432205b9d54 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='rotation_averaging',
version='1.0',
description='Rotation Averaging Library',
author='Rafael Marinheiro, Bryce Evans',
author_email='rf356@cornell.edu, bae43@cornell.edu',
packages= ['rotation_averaging', 'rotation_averaging.algorithms', 'rotat... | 39.666667 | 107 | 0.719888 | 38 | 357 | 6.631579 | 0.684211 | 0.337302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.156863 | 357 | 9 | 108 | 39.666667 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.53352 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5eb81106f116c8e59988115f9eead5703f67e9bf | 3,718 | py | Python | python/pyspark/ml/param/_gen_shared_params.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 24 | 2017-10-11T02:59:45.000Z | 2021-12-06T05:01:13.000Z | python/pyspark/ml/param/_gen_shared_params.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 6 | 2019-11-13T07:48:07.000Z | 2022-01-21T23:24:20.000Z | python/pyspark/ml/param/_gen_shared_params.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 18 | 2017-10-26T14:16:10.000Z | 2022-03-30T02:18:14.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 37.555556 | 80 | 0.663798 | 486 | 3,718 | 5.024691 | 0.314815 | 0.04914 | 0.038903 | 0.026208 | 0.522523 | 0.522523 | 0.497134 | 0.497134 | 0.497134 | 0.497134 | 0 | 0.006237 | 0.223776 | 3,718 | 98 | 81 | 37.938776 | 0.839917 | 0.215976 | 0 | 0.09375 | 0 | 0 | 0.735709 | 0.044172 | 0 | 0 | 0 | 0.010204 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ebd6a0c3adf1d49b959db09438c2ad2ac6a9271 | 216 | py | Python | app/tcp-server/tcp-server.py | max-lobur/k8s-weave-demo | 76909f1f76f159ccefc65b1cfe0655061adf6dc7 | [
"MIT"
] | 1 | 2017-05-12T20:25:23.000Z | 2017-05-12T20:25:23.000Z | app/tcp-server/tcp-server.py | max-lobur/k8s-weave-demo | 76909f1f76f159ccefc65b1cfe0655061adf6dc7 | [
"MIT"
] | null | null | null | app/tcp-server/tcp-server.py | max-lobur/k8s-weave-demo | 76909f1f76f159ccefc65b1cfe0655061adf6dc7 | [
"MIT"
] | 1 | 2019-03-28T05:46:59.000Z | 2019-03-28T05:46:59.000Z | import os
import SocketServer
print "Listening TCP..."
IP = "0.0.0.0"
PORT = int(os.environ['PORT'])
SocketServer.TCPServer(("0.0.0.0", PORT),
SocketServer.BaseRequestHandler).serve_forever()
| 24 | 71 | 0.652778 | 28 | 216 | 5 | 0.535714 | 0.085714 | 0.085714 | 0.057143 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.185185 | 216 | 8 | 72 | 27 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ec43b621757f1ddd759a0057943efd272bf6215 | 685 | py | Python | src/illumidesk/grades/exceptions.py | jgwerner/illumidesk.next | a571b086e992e5f4562d3a605ca45b7ee4352def | [
"Apache-2.0"
] | null | null | null | src/illumidesk/grades/exceptions.py | jgwerner/illumidesk.next | a571b086e992e5f4562d3a605ca45b7ee4352def | [
"Apache-2.0"
] | 2 | 2021-05-25T13:27:12.000Z | 2021-05-25T13:33:34.000Z | src/illumidesk/grades/exceptions.py | jgwerner/illumidesk.next | a571b086e992e5f4562d3a605ca45b7ee4352def | [
"Apache-2.0"
] | 2 | 2021-01-07T14:30:02.000Z | 2021-04-28T11:49:42.000Z | class GradesSenderError(Exception):
"""
Base class for submission errors
"""
pass
class GradesSenderCriticalError(GradesSenderError):
"""
Error to identify when something critical happened
In this case, the problem will continue until an admin checks the logs
"""
pass
class Ass... | 21.40625 | 105 | 0.715328 | 76 | 685 | 6.447368 | 0.684211 | 0.055102 | 0.146939 | 0.195918 | 0.22449 | 0.15102 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229197 | 685 | 31 | 106 | 22.096774 | 0.92803 | 0.519708 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5ec8a7960af5d6833e74428b3102a0d580d08f28 | 425 | py | Python | photographic/photos/tests/utils.py | adrianeriksen/photographic | 5418a6a79850fa887242f273a35ef9ab585d9d1a | [
"MIT"
] | null | null | null | photographic/photos/tests/utils.py | adrianeriksen/photographic | 5418a6a79850fa887242f273a35ef9ab585d9d1a | [
"MIT"
] | 6 | 2021-04-25T08:10:51.000Z | 2021-05-25T17:58:32.000Z | photographic/photos/tests/utils.py | adrianeriksen/photographic | 5418a6a79850fa887242f273a35ef9ab585d9d1a | [
"MIT"
] | null | null | null | from io import BytesIO
from PIL import Image
from django.core.files import File
def generate_example_image(size=(200, 200)):
_bytes = BytesIO()
im = Image.new("RGB", size=size, color=(12, 75, 51))
im.save(_bytes, "jpeg")
_bytes.name = "example.jpeg"
_bytes.seek(0)
return _bytes
def gener... | 19.318182 | 56 | 0.687059 | 62 | 425 | 4.516129 | 0.467742 | 0.160714 | 0.214286 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055233 | 0.190588 | 425 | 21 | 57 | 20.238095 | 0.758721 | 0 | 0 | 0 | 1 | 0 | 0.044706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d59d7e07a5388ae66f77452fbc2fd05d6ec08b5 | 2,308 | py | Python | python-dev/week7-prove.py | vwolfley/cse110-22w-22 | f8b76778a1fbd92fd0e2be783ae93e20377e9d95 | [
"MIT"
] | null | null | null | python-dev/week7-prove.py | vwolfley/cse110-22w-22 | f8b76778a1fbd92fd0e2be783ae93e20377e9d95 | [
"MIT"
] | null | null | null | python-dev/week7-prove.py | vwolfley/cse110-22w-22 | f8b76778a1fbd92fd0e2be783ae93e20377e9d95 | [
"MIT"
] | null | null | null | #####
# Date: 2022-02-19
# Week 7 Prove: Milestone - Pixel Pictures
# File: week7-prove.py
# Author: Vern Wolfley
# Purpose: Work with pictures and pixels
#####
from PIL import Image
# print("The Library is loaded correctly")
# Path to my directory where the images are stored
image_path = "/Users/vernwolfley/Document... | 33.449275 | 95 | 0.64688 | 392 | 2,308 | 3.663265 | 0.247449 | 0.189415 | 0.121866 | 0.226323 | 0.527855 | 0.479805 | 0.432451 | 0 | 0 | 0 | 0 | 0.260552 | 0.168544 | 2,308 | 69 | 96 | 33.449275 | 0.487754 | 0.77253 | 0 | 0 | 0 | 0 | 0.27991 | 0.257336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 3 |
0d5dead88726967c62b7f67964eb00fc0274e265 | 7,783 | py | Python | src/drugexr/utils/tensor_ops.py | naisuu/drugex-plus-r | 8cc3e3ad5e59e980388aec17eb3cbd5c56ee76ca | [
"MIT"
] | 1 | 2022-01-08T03:05:21.000Z | 2022-01-08T03:05:21.000Z | src/drugexr/utils/tensor_ops.py | naisuu/drugex-plus-r | 8cc3e3ad5e59e980388aec17eb3cbd5c56ee76ca | [
"MIT"
] | null | null | null | src/drugexr/utils/tensor_ops.py | naisuu/drugex-plus-r | 8cc3e3ad5e59e980388aec17eb3cbd5c56ee76ca | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
import rdkit.Chem
import torch
from torch.utils.data.dataset import Dataset, random_split
from drugexr.features.featurization import logger
# TODO: Export to test module and put large objects into files
from drugexr.models.predictor import Predictor
SAMPLE_SMILES = [
"C... | 41.844086 | 89 | 0.667352 | 1,286 | 7,783 | 3.987558 | 0.366252 | 0.0117 | 0.006825 | 0.00819 | 0.065718 | 0.035101 | 0.016186 | 0.016186 | 0 | 0 | 0 | 0.116111 | 0.129128 | 7,783 | 185 | 90 | 42.07027 | 0.640454 | 0.045227 | 0 | 0.038462 | 0 | 0.211538 | 0.624257 | 0.603728 | 0 | 0 | 0 | 0.005405 | 0 | 1 | 0.044872 | false | 0 | 0.044872 | 0 | 0.108974 | 0.051282 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d954d74657f5c2f3b323bf866869a3511875eff | 177 | py | Python | vcontrol/cli/commands/stop.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 5 | 2016-08-01T23:25:18.000Z | 2019-06-02T00:10:32.000Z | vcontrol/cli/commands/stop.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 120 | 2016-08-02T02:00:31.000Z | 2017-11-01T02:38:11.000Z | vcontrol/cli/commands/stop.py | dannypadilla/vcontrol | fe929e6138ec87e23cabd69b5c97ddb29603d0c6 | [
"Apache-2.0"
] | 15 | 2016-08-01T23:26:00.000Z | 2019-11-09T13:17:54.000Z | import requests
class StopCommandC:
def stop(self, args, daemon):
r = requests.get(daemon+"/commands/stop/"+args.machine+"/"+args.containers)
return r.text
| 25.285714 | 83 | 0.666667 | 22 | 177 | 5.363636 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19209 | 177 | 6 | 84 | 29.5 | 0.825175 | 0 | 0 | 0 | 0 | 0 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0da4edceb792c0f11268040f8e0d222ada8212a4 | 233 | py | Python | snekmer/__init__.py | PNNL-CompBio/Snekmer | 633ac5854c56249777ccdfaf666be90345e577e9 | [
"BSD-3-Clause"
] | null | null | null | snekmer/__init__.py | PNNL-CompBio/Snekmer | 633ac5854c56249777ccdfaf666be90345e577e9 | [
"BSD-3-Clause"
] | 6 | 2022-02-22T07:59:47.000Z | 2022-03-16T17:04:40.000Z | snekmer/__init__.py | PNNL-CompBio/Snekmer | 633ac5854c56249777ccdfaf666be90345e577e9 | [
"BSD-3-Clause"
] | null | null | null | from . import alphabet
from . import transform
from . import features
from . import utils
from . import io
from . import plot
from . import score
from . import model
from . import cluster
# from . import walk
__version__ = "0.1.2"
| 16.642857 | 23 | 0.733906 | 34 | 233 | 4.911765 | 0.470588 | 0.598802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.197425 | 233 | 13 | 24 | 17.923077 | 0.877005 | 0.077253 | 0 | 0 | 0 | 0 | 0.023474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.9 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0da76cebbe9ce5fb3140e540305acbd293ee722f | 174 | py | Python | emailuser/apps.py | lakesite/django-emailuser | 99e636c068d1e1d4194d9c93500865fb0ee41e60 | [
"MIT"
] | null | null | null | emailuser/apps.py | lakesite/django-emailuser | 99e636c068d1e1d4194d9c93500865fb0ee41e60 | [
"MIT"
] | 6 | 2020-06-06T01:27:12.000Z | 2021-06-10T19:47:27.000Z | emailuser/apps.py | lakesite/django-emailuser | 99e636c068d1e1d4194d9c93500865fb0ee41e60 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EmailuserConfig(AppConfig):
name = 'emailuser'
verbose_name = "django-emailuser: Replaces username field with email field."
| 24.857143 | 80 | 0.764368 | 20 | 174 | 6.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 174 | 6 | 81 | 29 | 0.90411 | 0 | 0 | 0 | 0 | 0 | 0.390805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0dc72683aa7ed115b872e1c264e2011b5aac47ca | 179 | py | Python | promotions/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | promotions/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | 7 | 2021-03-19T03:09:53.000Z | 2022-01-13T02:48:44.000Z | promotions/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | from django.db import models
class Promotion(models.Model):
description = models.CharField( max_length = 50, null = False )
discount = models.FloatField()
| 29.833333 | 73 | 0.670391 | 20 | 179 | 5.95 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.240223 | 179 | 5 | 74 | 35.8 | 0.860294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0dce597bfcd92da992afcaaa7528c1c02ef44350 | 74 | py | Python | lab/lead_crud/lead_crud/views/api/v1/__init__.py | alexandre/graphql-e-python | 1455b2d794139f635f28749086993d8960308f71 | [
"Unlicense"
] | null | null | null | lab/lead_crud/lead_crud/views/api/v1/__init__.py | alexandre/graphql-e-python | 1455b2d794139f635f28749086993d8960308f71 | [
"Unlicense"
] | null | null | null | lab/lead_crud/lead_crud/views/api/v1/__init__.py | alexandre/graphql-e-python | 1455b2d794139f635f28749086993d8960308f71 | [
"Unlicense"
] | 1 | 2020-01-14T11:50:06.000Z | 2020-01-14T11:50:06.000Z | def includeme(config):
config.add_route('graphql', '/api/v1/graphql')
| 24.666667 | 50 | 0.702703 | 10 | 74 | 5.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.108108 | 74 | 2 | 51 | 37 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0dcfdca280ec487bc06ceaa8663b9537b86b2628 | 761 | py | Python | src/hash_handler.py | rishikant42/Crypto-CLI | ee977aa476a2ac36dc74ee1ef82e815a65f2bf83 | [
"MIT"
] | 1 | 2018-06-10T06:12:06.000Z | 2018-06-10T06:12:06.000Z | src/hash_handler.py | rishikant42/Crypto-CLI | ee977aa476a2ac36dc74ee1ef82e815a65f2bf83 | [
"MIT"
] | null | null | null | src/hash_handler.py | rishikant42/Crypto-CLI | ee977aa476a2ac36dc74ee1ef82e815a65f2bf83 | [
"MIT"
] | null | null | null | from Crypto.Hash import SHA256, SHA512, MD5
def generate_hash(msg, algo='sha256'):
if algo == 'sha256':
digest = SHA256.new(msg).hexdigest()
elif algo == 'sha512':
digest = SHA512.new(msg).hexdigest()
elif algo == 'md5':
digest = MD5.new(msg).hexdigest()
else:
digest ... | 21.138889 | 50 | 0.600526 | 92 | 761 | 4.869565 | 0.271739 | 0.080357 | 0.200893 | 0.169643 | 0.575893 | 0.477679 | 0.352679 | 0.352679 | 0 | 0 | 0 | 0.073477 | 0.266754 | 761 | 35 | 51 | 21.742857 | 0.729391 | 0 | 0 | 0.347826 | 1 | 0 | 0.098684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.26087 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
217898a1c36d9fef2fe4d3f68d665849cf36946b | 289 | py | Python | facein_api/photos/management/commands/run_server.py | gda2048/facein-backend | 01a8500ffcdaef91540b0cdf94d50dd64cb46276 | [
"MIT"
] | 1 | 2021-12-27T12:35:06.000Z | 2021-12-27T12:35:06.000Z | facein_api/photos/management/commands/run_server.py | Sirkirill/facetracker-backend | 462dff11e7dccc379a6e04250b121120ec954c8d | [
"MIT"
] | 10 | 2021-06-07T16:41:35.000Z | 2022-03-12T01:04:23.000Z | facein_api/photos/management/commands/run_server.py | gda2048/facein-backend | 01a8500ffcdaef91540b0cdf94d50dd64cb46276 | [
"MIT"
] | null | null | null | from django.core.management.commands.runserver import Command as runserver
from photos.management.commands.load_images import Command as load_images
class Command(runserver):
def handle(self, *args, **options):
load_images().handle()
super().handle(*args, **options)
| 32.111111 | 74 | 0.740484 | 36 | 289 | 5.861111 | 0.527778 | 0.14218 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148789 | 289 | 8 | 75 | 36.125 | 0.857724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
219970021d5de409835533cd3eae8fb2d345e182 | 803 | py | Python | ELDAmwl/tests/test_params.py | actris-scc/ELDAmwl | c4d8426e6609a00837779a80d4acd39c580a0178 | [
"MIT"
] | 1 | 2021-12-06T09:48:07.000Z | 2021-12-06T09:48:07.000Z | ELDAmwl/tests/test_params.py | actris-scc/ELDAmwl | c4d8426e6609a00837779a80d4acd39c580a0178 | [
"MIT"
] | null | null | null | ELDAmwl/tests/test_params.py | actris-scc/ELDAmwl | c4d8426e6609a00837779a80d4acd39c580a0178 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for Signals"""
from ELDAmwl.bases.base import Params
class ParamsA(Params):
def __init__(self):
super(ParamsA, self).__init__()
self.a = 12
self.b = 14
self.sub_params = ['measurement_params']
self.measurement_params = Params()
... | 19.585366 | 50 | 0.612702 | 101 | 803 | 4.712871 | 0.376238 | 0.214286 | 0.132353 | 0.113445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02735 | 0.271482 | 803 | 40 | 51 | 20.075 | 0.786325 | 0.049813 | 0 | 0.083333 | 0 | 0 | 0.023778 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.208333 | false | 0 | 0.041667 | 0.125 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
219f4ca093d4a63bca8a1b8c9ac435ef7e31614a | 281 | py | Python | hairReserve/admin.py | Kai-Qian/webapps | 079bd25541644f7d9250b1b942010d0950fe725f | [
"MIT"
] | null | null | null | hairReserve/admin.py | Kai-Qian/webapps | 079bd25541644f7d9250b1b942010d0950fe725f | [
"MIT"
] | null | null | null | hairReserve/admin.py | Kai-Qian/webapps | 079bd25541644f7d9250b1b942010d0950fe725f | [
"MIT"
] | null | null | null | from django.contrib import admin
from hairReserve.models import *
# Register your models here.
admin.site.register(Barbershop)
admin.site.register(Profile)
admin.site.register(Address)
admin.site.register(Comments)
admin.site.register(Favorites)
admin.site.register(Reservations)
| 25.545455 | 33 | 0.825623 | 37 | 281 | 6.27027 | 0.459459 | 0.232759 | 0.439655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071174 | 281 | 10 | 34 | 28.1 | 0.888889 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21c387e2de655ecea3cb67eab7f431c8c2b0f595 | 217 | py | Python | helpers/ngrok_helper.py | haskalpa/DockerSparkBotExample | f22ee5cd59ddb10ab9e4b814aa450337c5e47ebf | [
"MIT"
] | 4 | 2019-01-26T20:53:44.000Z | 2020-01-20T19:43:37.000Z | helpers/ngrok_helper.py | haskalpa/DockerSparkBotExample | f22ee5cd59ddb10ab9e4b814aa450337c5e47ebf | [
"MIT"
] | 6 | 2021-04-29T19:07:04.000Z | 2021-05-03T15:01:07.000Z | helpers/ngrok_helper.py | haskalpa/DockerSparkBotExample | f22ee5cd59ddb10ab9e4b814aa450337c5e47ebf | [
"MIT"
] | 4 | 2018-11-10T20:35:11.000Z | 2021-04-29T19:03:00.000Z | import json
import requests
__all__ = ['get_ngrok_url']
def get_ngrok_url(addr='127.0.0.1', port=4040):
url = requests.get(f"http://{addr}:{port}/api/tunnels").json()['tunnels'][0]['public_url']
return url
| 21.7 | 94 | 0.672811 | 35 | 217 | 3.914286 | 0.571429 | 0.116788 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057592 | 0.119816 | 217 | 9 | 95 | 24.111111 | 0.659686 | 0 | 0 | 0 | 0 | 0 | 0.327189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
21c6b38e6b23ae0bd7aa10bc80066f430c0b362e | 148 | py | Python | src/main.py | Chise1/fast-tmp2 | 0dd34ac3ec7ea5452c1e4b8d922a40665264f42b | [
"Apache-2.0"
] | 1 | 2021-07-02T09:14:12.000Z | 2021-07-02T09:14:12.000Z | src/main.py | Chise1/fast-tmp2 | 0dd34ac3ec7ea5452c1e4b8d922a40665264f42b | [
"Apache-2.0"
] | null | null | null | src/main.py | Chise1/fast-tmp2 | 0dd34ac3ec7ea5452c1e4b8d922a40665264f42b | [
"Apache-2.0"
] | null | null | null | from src.factory import create_app
app=create_app()
if __name__ == '__main__':
import uvicorn
uvicorn.run(app,debug=True, lifespan="on" )
| 18.5 | 47 | 0.716216 | 21 | 148 | 4.571429 | 0.714286 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 148 | 7 | 48 | 21.142857 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
21e361ed2589b644edec92b71bf02398c9c574c8 | 136 | py | Python | JDI/core/interfaces/check_page_types.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 5 | 2020-02-14T10:32:01.000Z | 2021-07-22T08:20:28.000Z | JDI/core/interfaces/check_page_types.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 54 | 2018-07-27T14:07:33.000Z | 2021-11-08T09:24:16.000Z | JDI/core/interfaces/check_page_types.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 1 | 2021-01-20T14:31:52.000Z | 2021-01-20T14:31:52.000Z | from enum import Enum
class CheckPageTypes(Enum):
NONE = "NONE"
EQUAL = "EQUAL"
MATCH = "MATCH"
CONTAINS = "CONTAINS"
| 15.111111 | 27 | 0.625 | 15 | 136 | 5.666667 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 136 | 8 | 28 | 17 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
21f0a93f402df2d6d5a1c37e49665bca8b412887 | 263 | py | Python | djangopnp/consumers.py | aceofwings/django-pnp | 91319a7277bf338a7ceb65c3584211cd5702481a | [
"MIT"
] | null | null | null | djangopnp/consumers.py | aceofwings/django-pnp | 91319a7277bf338a7ceb65c3584211cd5702481a | [
"MIT"
] | null | null | null | djangopnp/consumers.py | aceofwings/django-pnp | 91319a7277bf338a7ceb65c3584211cd5702481a | [
"MIT"
] | null | null | null | from channels.generic.websocket import WebsocketConsumer
class PNPConsumer(WebsocketConsumer):
def connect(self):
self.accept()
def receive(self, text_data=None, bytes_data=None):
pass
def disconnect(self, close_code):
pass
| 21.916667 | 56 | 0.69962 | 30 | 263 | 6.033333 | 0.7 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21673 | 263 | 11 | 57 | 23.909091 | 0.878641 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1d092e970d239dd5e224c6edcb225adad0454223 | 272 | py | Python | app/configuration/__init__.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | app/configuration/__init__.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | 139 | 2018-12-26T07:54:31.000Z | 2021-06-01T23:14:45.000Z | app/configuration/__init__.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Configurations for the application.
"""
from app.configuration.base_configuration import BaseConfiguration
from app.configuration.test_configuration import TestConfiguration
__all__ = [
'BaseConfiguration',
'TestConfiguration'
]
| 19.428571 | 66 | 0.75 | 24 | 272 | 8.25 | 0.666667 | 0.070707 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.147059 | 272 | 13 | 67 | 20.923077 | 0.849138 | 0.213235 | 0 | 0 | 0 | 0 | 0.168317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
1d0d8fc391dac52dd01f6596f3a8329348acb2d2 | 1,022 | py | Python | scuttlebutt/messages.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | 2 | 2020-11-29T21:11:24.000Z | 2021-08-24T03:15:55.000Z | scuttlebutt/messages.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | null | null | null | scuttlebutt/messages.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import List
from scuttlebutt.peer import Peer, PeerUpdate
from uuid import UUID
class Message(object):
def __init__(self, source: Peer):
self.source = source
class Ack(Message):
pass
class Error(Message):
def __init__(self, source: Peer, message: str):
... | 23.767442 | 64 | 0.65362 | 125 | 1,022 | 4.968 | 0.24 | 0.112721 | 0.10628 | 0.164251 | 0.396135 | 0.362319 | 0.099839 | 0 | 0 | 0 | 0 | 0.001272 | 0.23092 | 1,022 | 42 | 65 | 24.333333 | 0.788804 | 0.020548 | 0 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.064516 | 0.096774 | 0 | 0.548387 | 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 | 1 | 0 | 0 | 3 |
1d0efe6337c840753f7014af3fd49228f7318d11 | 3,891 | py | Python | utils/model/rectangle.py | marcnunez/CabinMonitoringV1 | f95cf73afcd843f1a8a107517f96d4631a5d8726 | [
"Apache-2.0"
] | null | null | null | utils/model/rectangle.py | marcnunez/CabinMonitoringV1 | f95cf73afcd843f1a8a107517f96d4631a5d8726 | [
"Apache-2.0"
] | 6 | 2021-03-19T01:28:22.000Z | 2022-03-11T23:50:44.000Z | utils/model/rectangle.py | marcnunez/CabinMonitoringV1 | f95cf73afcd843f1a8a107517f96d4631a5d8726 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
class Rectangle:
"""
In the class rectangle we define a rectangle through the top left point, width and height
In the function get_bottom_right with the top-left point and the values for width and height
we find the bottom_right point
Finally we compute the area of a ... | 41.393617 | 118 | 0.639681 | 565 | 3,891 | 4.20177 | 0.120354 | 0.10615 | 0.092671 | 0.040438 | 0.511794 | 0.456613 | 0.363943 | 0.26706 | 0.245998 | 0.198821 | 0 | 0.021228 | 0.213056 | 3,891 | 94 | 119 | 41.393617 | 0.754082 | 0.080442 | 0 | 0.183333 | 0 | 0 | 0.025634 | 0.006479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.016667 | 0.166667 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
df45ff243093b7ff42557e7bdb92c79fc8c6f140 | 19,474 | py | Python | hitbasic/hitbasic.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | hitbasic/hitbasic.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | hitbasic/hitbasic.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | from contextlib import suppress
from arpeggio import UnorderedGroup, Sequence, Optional, ZeroOrMore, OneOrMore, EOF, ParserPython, And, Not, Empty, RegExMatch as RegEx
from arpeggio import ParseTreeNode
# Top tier
def program(): return trailing_spaces, Optional( statements ), trailing_spaces, EOF
def stateme... | 54.54902 | 359 | 0.610917 | 2,482 | 19,474 | 4.504029 | 0.122079 | 0.042938 | 0.026299 | 0.018785 | 0.225691 | 0.163253 | 0.134359 | 0.111101 | 0.08999 | 0.070579 | 0 | 0.001368 | 0.249153 | 19,474 | 356 | 360 | 54.702247 | 0.763165 | 0.058848 | 0 | 0 | 0 | 0 | 0.052803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.791667 | false | 0 | 0.011364 | 0.780303 | 0.810606 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
df54f32fad4d06db04bed034708e9bd4aff1d1bb | 214 | py | Python | HitchHikerDemo/shipments/urls.py | SohilaBogdadyNagdy/HitchHikerDemo | d0f0e1607d87d8eefc32688adf680ee0c45a8b42 | [
"BSD-3-Clause"
] | null | null | null | HitchHikerDemo/shipments/urls.py | SohilaBogdadyNagdy/HitchHikerDemo | d0f0e1607d87d8eefc32688adf680ee0c45a8b42 | [
"BSD-3-Clause"
] | null | null | null | HitchHikerDemo/shipments/urls.py | SohilaBogdadyNagdy/HitchHikerDemo | d0f0e1607d87d8eefc32688adf680ee0c45a8b42 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import routers
from .views import ShipmentViewSet
app_name = "shipment"
router = routers.DefaultRouter()
router.register(r'', ShipmentViewSet, base_name='Shipment')
urlpatterns = router.urls
| 21.4 | 59 | 0.799065 | 25 | 214 | 6.72 | 0.68 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107477 | 214 | 9 | 60 | 23.777778 | 0.879581 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df664c81b9d5fb277b868bd6c519ca533519b8ff | 277 | py | Python | perception/mil_vision/mil_vision_tools/__init__.py | ironmig/mil_common | 3ed6512016b9db986df1acc26cae68b8e8453bab | [
"MIT"
] | null | null | null | perception/mil_vision/mil_vision_tools/__init__.py | ironmig/mil_common | 3ed6512016b9db986df1acc26cae68b8e8453bab | [
"MIT"
] | null | null | null | perception/mil_vision/mil_vision_tools/__init__.py | ironmig/mil_common | 3ed6512016b9db986df1acc26cae68b8e8453bab | [
"MIT"
] | null | null | null | from shape_finder import RectFinder, EllipseFinder, CircleFinder
from cv_tools import *
from image_mux import ImageMux
from image_proc import ImageProc, ImageSet
from labelbox_parser import LabelBoxParser
from color_classifier import ContourClassifier, GaussianColorClassifier
| 39.571429 | 71 | 0.880866 | 33 | 277 | 7.212121 | 0.666667 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101083 | 277 | 6 | 72 | 46.166667 | 0.955823 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df7e77fe99defe8573837531a9621ddc09ecbc38 | 43 | py | Python | dd/tests/acceptance/__init__.py | octo-technology/ddapi | 08b56016bf59a02c42d79a117a8de1e23e5b4f90 | [
"Apache-2.0"
] | 4 | 2019-06-09T13:15:37.000Z | 2020-12-22T08:37:36.000Z | dd/tests/acceptance/__init__.py | octo-technology/ddapi | 08b56016bf59a02c42d79a117a8de1e23e5b4f90 | [
"Apache-2.0"
] | null | null | null | dd/tests/acceptance/__init__.py | octo-technology/ddapi | 08b56016bf59a02c42d79a117a8de1e23e5b4f90 | [
"Apache-2.0"
] | null | null | null | __all__ = [
"getting_started", "data"
] | 14.333333 | 29 | 0.604651 | 4 | 43 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 43 | 3 | 30 | 14.333333 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df80a08ecaa60992de92d2fb2abe882e11b8d14d | 164 | py | Python | salutation.py | saurabh71669/Azuredevopstest | 364fd280bd646e1df8b7bb3efee3eb2c0eb9ba8f | [
"MIT"
] | 1 | 2021-01-28T00:10:28.000Z | 2021-01-28T00:10:28.000Z | salutation.py | linz/template-python-click-cli | 53be558fe162e1fd2f8d1232f4d47c79cf77ff68 | [
"MIT"
] | 55 | 2021-01-28T00:49:43.000Z | 2022-02-28T20:07:27.000Z | salutation.py | linz/template-python-click-cli | 53be558fe162e1fd2f8d1232f4d47c79cf77ff68 | [
"MIT"
] | null | null | null | """
It's pretty simple really. Hello. World.
"""
def hello(name: str = "World") -> str:
"""Provide a name, return a greeting."""
return f"Hello, {name}!"
| 18.222222 | 44 | 0.591463 | 23 | 164 | 4.217391 | 0.652174 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 164 | 8 | 45 | 20.5 | 0.746154 | 0.457317 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df9069de55a2d7e0c92836b93260cb23f55038ea | 747 | py | Python | drone/tests/flight_emulator.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | null | null | null | drone/tests/flight_emulator.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | 18 | 2016-03-30T08:43:45.000Z | 2017-03-27T11:14:17.000Z | drone/tests/flight_emulator.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | 2 | 2016-03-06T20:38:06.000Z | 2019-09-10T14:46:35.000Z | # -*- coding: utf-8 -*-
'''
Created on 25 de feb. de 2016
@author: david
'''
from emulation.state import State
from emulation.ui.graphic import Display
class StateProvider(object):
def __init__(self):
self._state = State()
self._state._coords[2] = 5.0
self._state._angles = ... | 18.675 | 69 | 0.57162 | 93 | 747 | 4.290323 | 0.419355 | 0.203008 | 0.125313 | 0.160401 | 0.132832 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0.052142 | 0.281125 | 747 | 39 | 70 | 19.153846 | 0.690875 | 0.285141 | 0 | 0 | 0 | 0 | 0.015355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df93b11463049956a2633a543e4ad4da1a4a95ed | 85 | py | Python | template/app/accounts/urls.py | iYasha/django-template-generator | 954d3ffda328390118993ef5016a6811d6fe306d | [
"MIT"
] | null | null | null | template/app/accounts/urls.py | iYasha/django-template-generator | 954d3ffda328390118993ef5016a6811d6fe306d | [
"MIT"
] | null | null | null | template/app/accounts/urls.py | iYasha/django-template-generator | 954d3ffda328390118993ef5016a6811d6fe306d | [
"MIT"
] | null | null | null | from accounts import views
route_list = (
# (r'^user', views.CreateUserView),
)
| 14.166667 | 39 | 0.670588 | 10 | 85 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 85 | 5 | 40 | 17 | 0.811594 | 0.388235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
10f0fac793dbe08d22f23d48f85c7126b3740566 | 473 | py | Python | src/FFEAT/ffeat/measure/__init__.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | src/FFEAT/ffeat/measure/__init__.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | src/FFEAT/ffeat/measure/__init__.py | PatrikValkovic/MasterThesis | 6e9f3b186541db6c8395ebc96ace7289d01c805b | [
"MIT"
] | null | null | null | ###############################
#
# Created by Patrik Valkovic
# 3/13/2021
#
###############################
"""
Module that allows to measure and log fitness statistics.
"""
from .FitnessQuantile import FitnessMedian, FitnessQuantile, Fitness95Quantile, Fitness99Quantile, Fitness05Quantile, Fitness01Quantile
from . im... | 31.533333 | 135 | 0.716702 | 43 | 473 | 7.837209 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.10148 | 473 | 14 | 136 | 33.785714 | 0.757647 | 0.200846 | 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 | 1 | 0 | 0 | 3 |
10f153dc0fbd51580a3b141a3710d509b586690a | 578 | py | Python | TM1py/Objects/View.py | damirishpreet/TM1py | 8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac | [
"MIT"
] | 19 | 2016-03-04T19:21:40.000Z | 2021-12-10T02:39:51.000Z | TM1py/Objects/View.py | damirishpreet/TM1py | 8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac | [
"MIT"
] | 11 | 2016-08-24T19:27:11.000Z | 2017-07-30T01:10:28.000Z | TM1py/Objects/View.py | damirishpreet/TM1py | 8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac | [
"MIT"
] | 6 | 2016-08-03T19:28:45.000Z | 2017-01-30T12:25:05.000Z | # -*- coding: utf-8 -*-
from TM1py.Objects.TM1Object import TM1Object
class View(TM1Object):
""" Abstraction of TM1 View
serves as a parentclass for TM1py.Objects.MDXView and TM1py.Objects.NativeView
"""
def __init__(self, cube, name):
self._cube = cube
self._name = name
@pr... | 19.266667 | 86 | 0.608997 | 71 | 578 | 4.816901 | 0.422535 | 0.093567 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019465 | 0.288927 | 578 | 29 | 87 | 19.931034 | 0.812652 | 0.216263 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
802a9c4797e8804e7f97f07981b30c253031bd05 | 244 | py | Python | pyCuSDR/lib/safe_lists.py | mugpahug/pycu-sdr | 012aad85a66fd02bb13e325e2b0a978d7667a718 | [
"BSD-3-Clause"
] | 1 | 2021-07-10T13:13:11.000Z | 2021-07-10T13:13:11.000Z | pyCuSDR/lib/safe_lists.py | mugpahug/pycu-sdr | 012aad85a66fd02bb13e325e2b0a978d7667a718 | [
"BSD-3-Clause"
] | 1 | 2021-07-12T06:04:07.000Z | 2021-07-12T06:04:07.000Z | pyCuSDR/lib/safe_lists.py | mugpahug/pycu-sdr | 012aad85a66fd02bb13e325e2b0a978d7667a718 | [
"BSD-3-Clause"
] | 1 | 2021-07-10T13:13:15.000Z | 2021-07-10T13:13:15.000Z | # Copyright: (c) 2021, Edwin G. W. Peters
def safe_get_from_list(data,attr,default_value):
"""
Returns data['attr'] if attr is in data, else returns default_value
"""
return data[attr] if attr in data.keys() else default_value
| 30.5 | 71 | 0.692623 | 39 | 244 | 4.179487 | 0.589744 | 0.147239 | 0.122699 | 0.171779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.192623 | 244 | 7 | 72 | 34.857143 | 0.807107 | 0.442623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
337b539d346175a9564747e6e1488c2042f93f34 | 1,652 | py | Python | test/test_dependency_check.py | Rishav1/PySyft | f620ee12727b52b19a317f263789830b57ee2539 | [
"Apache-2.0"
] | 3 | 2020-09-23T14:09:09.000Z | 2020-09-23T19:26:28.000Z | test/test_dependency_check.py | Rishav1/PySyft | f620ee12727b52b19a317f263789830b57ee2539 | [
"Apache-2.0"
] | 3 | 2019-05-24T01:16:56.000Z | 2019-09-18T13:02:30.000Z | test/test_dependency_check.py | Rishav1/PySyft | f620ee12727b52b19a317f263789830b57ee2539 | [
"Apache-2.0"
] | 1 | 2021-01-31T15:16:34.000Z | 2021-01-31T15:16:34.000Z | import sys
import pytest
from syft import dependency_check
@pytest.mark.skipif(not dependency_check.tensorflow_available, reason="tf 2.0+ not installed")
def test_tensorflow_available(): # pragma: no cover
sys.modules.pop("syft", None)
sys.modules.pop("syft.dependency_check", None)
from syft import depen... | 31.769231 | 94 | 0.75908 | 223 | 1,652 | 5.430493 | 0.147982 | 0.235343 | 0.139554 | 0.126342 | 0.779521 | 0.738233 | 0.693642 | 0.622626 | 0.522709 | 0.522709 | 0 | 0.001399 | 0.134383 | 1,652 | 51 | 95 | 32.392157 | 0.845455 | 0.050847 | 0 | 0.472222 | 0 | 0 | 0.151088 | 0.067222 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.138889 | true | 0 | 0.222222 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
338d50784b7c9475c804008fde2340343b943efc | 118 | py | Python | lib/asn1/test/asn1_SUITE_data/String.py | jjhoo/otp | 808eccc796a05caf2f2a244db385df83c2680b9f | [
"Apache-2.0"
] | 8,238 | 2015-01-02T01:05:29.000Z | 2022-03-30T04:09:46.000Z | lib/asn1/test/asn1_SUITE_data/String.py | jjhoo/otp | 808eccc796a05caf2f2a244db385df83c2680b9f | [
"Apache-2.0"
] | 2,988 | 2015-01-02T11:40:59.000Z | 2022-03-31T18:29:54.000Z | lib/asn1/test/asn1_SUITE_data/String.py | jjhoo/otp | 808eccc796a05caf2f2a244db385df83c2680b9f | [
"Apache-2.0"
] | 2,459 | 2015-01-01T18:54:55.000Z | 2022-03-31T08:58:25.000Z | String DEFINITIONS IMPLICIT TAGS ::=
BEGIN
EXPORTS;
IA51 ::= IA5String (SIZE (1..128)) (FROM ("0123456789#*,"))
END
| 14.75 | 59 | 0.669492 | 14 | 118 | 5.642857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168317 | 0.144068 | 118 | 7 | 60 | 16.857143 | 0.613861 | 0 | 0 | 0 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
339b722ebf7a800aa5d50db2f7fa2a6b06241339 | 3,934 | py | Python | zentral/contrib/inventory/migrations/0042_auto_20190227_1133.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 634 | 2015-10-30T00:55:40.000Z | 2022-03-31T02:59:00.000Z | zentral/contrib/inventory/migrations/0042_auto_20190227_1133.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 145 | 2015-11-06T00:17:33.000Z | 2022-03-16T13:30:31.000Z | zentral/contrib/inventory/migrations/0042_auto_20190227_1133.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 103 | 2015-11-07T07:08:49.000Z | 2022-03-18T17:34:36.000Z | # Generated by Django 2.1.7 on 2019-02-27 11:33
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inventory', '0041_auto_20180927_0935'),
]
operations = [
migrations.AlterFiel... | 43.230769 | 191 | 0.63574 | 400 | 3,934 | 6.135 | 0.195 | 0.05542 | 0.09128 | 0.143439 | 0.814181 | 0.809291 | 0.651182 | 0.589242 | 0.589242 | 0.589242 | 0 | 0.010413 | 0.243264 | 3,934 | 90 | 192 | 43.711111 | 0.813907 | 0.011439 | 0 | 0.619048 | 1 | 0 | 0.195781 | 0.049395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
33a42c2a4dfcc161eb0bc5b595e0c15a8b2b6a4e | 43 | py | Python | pyisis/encodings/__init__.py | rodsenra/pyisis | f5815fd096a463902893f87f309f8117b5705621 | [
"MIT"
] | null | null | null | pyisis/encodings/__init__.py | rodsenra/pyisis | f5815fd096a463902893f87f309f8117b5705621 | [
"MIT"
] | null | null | null | pyisis/encodings/__init__.py | rodsenra/pyisis | f5815fd096a463902893f87f309f8117b5705621 | [
"MIT"
] | 2 | 2019-11-08T20:51:54.000Z | 2021-08-17T23:49:48.000Z | # make this a package
__all__ = ['pymx' ]
| 14.333333 | 21 | 0.627907 | 6 | 43 | 3.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 43 | 2 | 22 | 21.5 | 0.69697 | 0.44186 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
33a474052d83259b85a76db2be64cd4f7f945ed5 | 97 | py | Python | QC/pre_GRID/tester.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | 1 | 2017-05-24T02:05:20.000Z | 2017-05-24T02:05:20.000Z | QC/pre_GRID/tester.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | null | null | null | QC/pre_GRID/tester.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | null | null | null | __file__ = 'tester'
__date__ = '9/24/2014'
__author__ = 'ABREZNIC'
list = [[1,1]]
print len(list) | 19.4 | 23 | 0.670103 | 14 | 97 | 3.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.134021 | 97 | 5 | 24 | 19.4 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0.234694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
33acf76a901a0ceaac89c8f77bc2b689c40fd55d | 162 | py | Python | src/Frikr/photos/forms.py | es2812/django-course-keepcoding | 09e8ee12a57b9319e4297e184ffec652032d976a | [
"Apache-2.0"
] | null | null | null | src/Frikr/photos/forms.py | es2812/django-course-keepcoding | 09e8ee12a57b9319e4297e184ffec652032d976a | [
"Apache-2.0"
] | null | null | null | src/Frikr/photos/forms.py | es2812/django-course-keepcoding | 09e8ee12a57b9319e4297e184ffec652032d976a | [
"Apache-2.0"
] | null | null | null | from django import forms
from photos.models import Photo
class PhotoForm(forms.ModelForm):
class Meta:
model = Photo
exclude = ['owner'] | 20.25 | 33 | 0.660494 | 19 | 162 | 5.631579 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265432 | 162 | 8 | 34 | 20.25 | 0.89916 | 0 | 0 | 0 | 0 | 0 | 0.030675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
33ae1e6f3be068acf5b33f193e72ff9ad2a9a92a | 183 | py | Python | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | import unittest
class SanityCheck(unittest.TestCase):
def test_sane(self):
self.assertTrue(True)
def test_flaw(self):
self.assertNotEqual(42, 6*8)
| 16.636364 | 37 | 0.644809 | 22 | 183 | 5.272727 | 0.727273 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.256831 | 183 | 10 | 38 | 18.3 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
33d1e8c5580550227919b0e839a78b3de19f87c3 | 235 | py | Python | full_incidents/thehive_to_dwh/postgresql/delete.py | Infosecurity-LLC/ETL | d4a431559d8c56ed3826dfe87113fabe9388a114 | [
"Apache-2.0"
] | 1 | 2022-02-04T09:59:57.000Z | 2022-02-04T09:59:57.000Z | full_incidents/thehive_to_dwh/postgresql/delete.py | Infosecurity-LLC/ETL | d4a431559d8c56ed3826dfe87113fabe9388a114 | [
"Apache-2.0"
] | null | null | null | full_incidents/thehive_to_dwh/postgresql/delete.py | Infosecurity-LLC/ETL | d4a431559d8c56ed3826dfe87113fabe9388a114 | [
"Apache-2.0"
] | 1 | 2022-02-04T09:59:58.000Z | 2022-02-04T09:59:58.000Z | from sqlalchemy.orm import Session
from full_incidents.thehive_to_dwh.postgresql.models import Incident
def delete_incident(session: Session, incident_id):
session.query(Incident).filter(Incident.inc_id == incident_id).delete()
| 29.375 | 75 | 0.817021 | 32 | 235 | 5.78125 | 0.59375 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093617 | 235 | 7 | 76 | 33.571429 | 0.868545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
33deb8a14b56a3a9b66298a29760adf9218fe7f8 | 1,708 | py | Python | app/account/controller.py | Brok-Bucholtz/CloneTube | b9f4b8036db6628da28abe7c0c8524bae753468c | [
"MIT"
] | 2 | 2016-08-03T12:47:22.000Z | 2017-05-28T16:47:14.000Z | app/account/controller.py | Brok-Bucholtz/Project-CloneTube | b9f4b8036db6628da28abe7c0c8524bae753468c | [
"MIT"
] | 14 | 2016-07-09T06:05:08.000Z | 2016-07-10T22:46:20.000Z | app/account/controller.py | Brok-Bucholtz/CloneTube | b9f4b8036db6628da28abe7c0c8524bae753468c | [
"MIT"
] | 1 | 2019-05-25T04:51:26.000Z | 2019-05-25T04:51:26.000Z | from flask import Blueprint, request, render_template
from flask_login import UserMixin, login_user
from werkzeug.security import generate_password_hash, check_password_hash
from app.plugin import login_manager, mongo
from app.helper import mongo_to_json_response
account_api_routes = Blueprint('account_api', __name__... | 28 | 105 | 0.738876 | 231 | 1,708 | 5.112554 | 0.272727 | 0.040644 | 0.054191 | 0.053345 | 0.149873 | 0.03895 | 0 | 0 | 0 | 0 | 0 | 0.002034 | 0.136417 | 1,708 | 60 | 106 | 28.466667 | 0.798644 | 0 | 0 | 0.04878 | 1 | 0 | 0.131148 | 0.021663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0.073171 | 0.121951 | 0.097561 | 0.560976 | 0.073171 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
33e23fffca24ac8455c0b76f8e70518a013cc07d | 256,163 | py | Python | pysnmp-with-texts/DOCS-QOS3-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/DOCS-QOS3-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/DOCS-QOS3-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 DOCS-QOS3-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-QOS3-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:44:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 224.704386 | 14,621 | 0.813193 | 31,055 | 256,163 | 6.707616 | 0.051296 | 0.044416 | 0.077727 | 0.006068 | 0.578637 | 0.490171 | 0.450608 | 0.429015 | 0.394018 | 0.381863 | 0 | 0.044852 | 0.099007 | 256,163 | 1,139 | 14,622 | 224.901668 | 0.857678 | 0.001249 | 0 | 0.008873 | 0 | 0.320319 | 0.51696 | 0.05955 | 0 | 0 | 0.000109 | 0 | 0 | 1 | 0 | false | 0 | 0.011535 | 0 | 0.019521 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
33e864a9dadd2a809a84ff5df28c4eb3b484b6d3 | 173 | py | Python | INICIANTE/NIVEL-1/2167/2167.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | INICIANTE/NIVEL-1/2167/2167.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | INICIANTE/NIVEL-1/2167/2167.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | n = int(input())
numbers = input().split(' ')
i = 0
while i < n - 1:
if int(numbers[i + 1]) < int(numbers[i]):
print(i + 2)
exit(0)
i += 1
print(0)
| 15.727273 | 45 | 0.468208 | 29 | 173 | 2.793103 | 0.448276 | 0.246914 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0.317919 | 173 | 10 | 46 | 17.3 | 0.627119 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 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 | 3 |
d5068559ebd19aace1d5f94944fffc1bb6a616b0 | 368 | py | Python | rtcloud/matlab/__init__.py | Brainiak/rtcloud | 43c7525c9a9be12d33426b24fac353dc4d92c35a | [
"Apache-2.0"
] | null | null | null | rtcloud/matlab/__init__.py | Brainiak/rtcloud | 43c7525c9a9be12d33426b24fac353dc4d92c35a | [
"Apache-2.0"
] | 43 | 2017-11-16T22:05:42.000Z | 2017-12-12T16:20:04.000Z | rtcloud/matlab/__init__.py | Brainiak/rtcloud | 43c7525c9a9be12d33426b24fac353dc4d92c35a | [
"Apache-2.0"
] | 1 | 2017-11-26T15:42:02.000Z | 2017-11-26T15:42:02.000Z | import os
import matlab.engine
# TODO: Life would be easier if we used an existing MATLAB engine
# so we didn't have to restart MATLAB each time.
# https://www.mathworks.com/help/matlab/matlab_external/connect-python-to-running-matlab-session.html
engine = matlab.engine.start_matlab()
engine.cd(os.path.dirname(os.path... | 36.8 | 101 | 0.790761 | 60 | 368 | 4.75 | 0.7 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0.095109 | 368 | 9 | 102 | 40.888889 | 0.852853 | 0.570652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d5095591129f46f00127bdafb149f258a5b4bab6 | 654 | py | Python | HelloWorld/strings2negslicing.py | AlphaDelta1803/PythonClass | f86a2d1d412c75bbb03619d7ca30927aed2c9582 | [
"Unlicense"
] | null | null | null | HelloWorld/strings2negslicing.py | AlphaDelta1803/PythonClass | f86a2d1d412c75bbb03619d7ca30927aed2c9582 | [
"Unlicense"
] | null | null | null | HelloWorld/strings2negslicing.py | AlphaDelta1803/PythonClass | f86a2d1d412c75bbb03619d7ca30927aed2c9582 | [
"Unlicense"
] | 1 | 2021-11-05T06:05:53.000Z | 2021-11-05T06:05:53.000Z | # 11111
# 012345678901234
parrot = "Norwegian Blue"
# - 43210987654321
# 1
print(parrot[0:6]) # Norweg
print(parrot[-14:-8]) # Norweg
print(parrot[3:5]) # we
print(parrot[-11:-9]) # we
print(parrot[0:9]) # Norwegian
print(parrot[-14:-5]) # Norwegian
print(parrot[:9]... | 19.818182 | 34 | 0.587156 | 90 | 654 | 4.266667 | 0.266667 | 0.515625 | 0.234375 | 0.125 | 0.161458 | 0.161458 | 0.161458 | 0 | 0 | 0 | 0 | 0.134241 | 0.214067 | 654 | 32 | 35 | 20.4375 | 0.61284 | 0.281346 | 0 | 0.105263 | 0 | 0 | 0.032634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.947368 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1d11a65eff61d3b68387e1703c11d3eb24051dbe | 249 | py | Python | photos/admin.py | Ngina07/Gallery | 2476f141a90e5616651e97a0412ae62f4bc30480 | [
"Unlicense"
] | null | null | null | photos/admin.py | Ngina07/Gallery | 2476f141a90e5616651e97a0412ae62f4bc30480 | [
"Unlicense"
] | 5 | 2020-06-05T23:58:20.000Z | 2021-09-08T01:24:20.000Z | photos/admin.py | Ngina07/Gallery | 2476f141a90e5616651e97a0412ae62f4bc30480 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import Location,categories,Image
class ImageAdmin(admin.ModelAdmin):
filter_horizontal = ('categories',)
admin.site.register(Location)
admin.site.register(Image)
admin.site.register(categories) | 27.666667 | 45 | 0.795181 | 30 | 249 | 6.566667 | 0.533333 | 0.137056 | 0.258883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100402 | 249 | 9 | 46 | 27.666667 | 0.879464 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1d45802e7e0c078aeedc9bc87b841396b9f529e2 | 566 | py | Python | spec/construct/test_switch_manual_enum_invalid_else.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/construct/test_switch_manual_enum_invalid_else.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/construct/test_switch_manual_enum_invalid_else.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from switch_manual_enum_invalid_else import _schema
class TestSwitchManualEnumInvalidElse(unittest.TestCase):
def test_switch_manual_enum_invalid_else(self):
r = _schema.parse_file('src/enum_negative.bin')
... | 35.375 | 77 | 0.731449 | 79 | 566 | 5.075949 | 0.556962 | 0.187032 | 0.159601 | 0.229426 | 0.374065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031712 | 0.164311 | 566 | 15 | 78 | 37.733333 | 0.816068 | 0.132509 | 0 | 0 | 1 | 0 | 0.042945 | 0.042945 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1d5d4e53162d37fb539f2659eb5eb9550fc3d721 | 400 | py | Python | plugins/filter/jinja2.py | sivel/ansible-collection-jinja2 | 10edc2a7f121b87e638c672e1078e62cbd8c5c7a | [
"BSD-3-Clause"
] | 2 | 2021-04-10T06:39:59.000Z | 2021-07-14T02:57:35.000Z | plugins/filter/jinja2.py | sivel/ansible-collection-jinja2 | 10edc2a7f121b87e638c672e1078e62cbd8c5c7a | [
"BSD-3-Clause"
] | 1 | 2020-03-13T16:02:18.000Z | 2020-03-13T16:02:18.000Z | plugins/filter/jinja2.py | sivel/ansible-collection-jinja2 | 10edc2a7f121b87e638c672e1078e62cbd8c5c7a | [
"BSD-3-Clause"
] | 1 | 2020-12-26T13:17:31.000Z | 2020-12-26T13:17:31.000Z | # (c) 2020, Matt Martz <matt@sivel.net>
# 3-Clause BSD License (see https://opensource.org/licenses/BSD-3-Clause)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.sivel.jinja2.plugins.module_utils.jinja2.filters import FIL... | 26.666667 | 88 | 0.7675 | 54 | 400 | 5.462963 | 0.777778 | 0.047458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025937 | 0.1325 | 400 | 14 | 89 | 28.571429 | 0.824207 | 0.345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
1d921a21d64291564c10f6ef04eadc87c2c04644 | 25 | py | Python | MuseParse/classes/__init__.py | Godley/MusIc-Parser | 23cecafa1fdc0f2d6a87760553572b459f3c9904 | [
"MIT"
] | 5 | 2015-07-21T14:06:34.000Z | 2018-04-24T19:31:45.000Z | MuseParse/classes/__init__.py | Godley/MusIc-Parser | 23cecafa1fdc0f2d6a87760553572b459f3c9904 | [
"MIT"
] | 37 | 2015-07-20T17:03:19.000Z | 2016-08-08T09:21:40.000Z | MuseParse/classes/__init__.py | Godley/MusIc-Parser | 23cecafa1fdc0f2d6a87760553572b459f3c9904 | [
"MIT"
] | 5 | 2015-07-24T09:22:52.000Z | 2017-03-29T19:13:16.000Z | __author__ = 'charlotte'
| 12.5 | 24 | 0.76 | 2 | 25 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1d923dff8fc29c70da17901bbfbe12343aaded99 | 4,240 | py | Python | aws/amazonia/test/unit_tests/test_amz_lambda.py | linz/Geodesy-Web-Services | d2f52a5beed179f817cbf8040e6c85b623c97fb9 | [
"BSD-3-Clause"
] | 2 | 2018-06-19T04:05:19.000Z | 2020-07-17T02:31:31.000Z | aws/amazonia/test/unit_tests/test_amz_lambda.py | linz/Geodesy-Web-Services | d2f52a5beed179f817cbf8040e6c85b623c97fb9 | [
"BSD-3-Clause"
] | null | null | null | aws/amazonia/test/unit_tests/test_amz_lambda.py | linz/Geodesy-Web-Services | d2f52a5beed179f817cbf8040e6c85b623c97fb9 | [
"BSD-3-Clause"
] | null | null | null | from amazonia.classes.amz_lambda import LambdaUnit, LambdaLeaf
from amazonia.classes.lambda_config import LambdaConfig, InvalidLambdaConfigError
from network_setup import get_network_config
from nose.tools import *
from troposphere import Join
template = network_config = lambda_config = availability_zones = public_cid... | 44.631579 | 84 | 0.692453 | 498 | 4,240 | 5.518072 | 0.192771 | 0.075691 | 0.104803 | 0.144105 | 0.749272 | 0.72198 | 0.72198 | 0.695779 | 0.695779 | 0.608443 | 0 | 0.017757 | 0.203066 | 4,240 | 94 | 85 | 45.106383 | 0.795502 | 0.028538 | 0 | 0.384615 | 0 | 0 | 0.132601 | 0 | 0 | 0 | 0 | 0 | 0.320513 | 1 | 0.051282 | false | 0 | 0.064103 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d51a97741658023e49328dcd5a4ed5799a9cc909 | 470 | py | Python | Python Fundamentals/7. Dictionaries/Exercise/05. Orders.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | Python Fundamentals/7. Dictionaries/Exercise/05. Orders.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | Python Fundamentals/7. Dictionaries/Exercise/05. Orders.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | product_info = input().split()
product_info_dict = {}
while not product_info[0] == "buy":
name, price, qty = product_info
if name not in product_info_dict:
product_info_dict[name] = [float(price), int(qty)]
else:
product_info_dict[name][1] += int(qty)
product_info_dict[name][0] =... | 24.736842 | 60 | 0.63617 | 69 | 470 | 4.101449 | 0.362319 | 0.388693 | 0.318021 | 0.201413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.202128 | 470 | 18 | 61 | 26.111111 | 0.738667 | 0 | 0 | 0.166667 | 0 | 0 | 0.104255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5200c1d61fa5b3a115b43464d567ea3aa28576f | 179 | py | Python | tools/third_party/aioquic/src/aioquic/h3/exceptions.py | jimmywarting/wpt | 75d80fa43c763935dff59b3c6b21f4dffa9b03b7 | [
"BSD-3-Clause"
] | 5 | 2020-08-31T09:40:53.000Z | 2022-03-09T06:44:53.000Z | tools/third_party/aioquic/src/aioquic/h3/exceptions.py | jimmywarting/wpt | 75d80fa43c763935dff59b3c6b21f4dffa9b03b7 | [
"BSD-3-Clause"
] | 153 | 2021-01-28T16:58:19.000Z | 2022-03-30T22:15:57.000Z | tools/third_party/aioquic/src/aioquic/h3/exceptions.py | almajlis/wpt | a1d4dd189a5bdca857845b374946b8002c41d199 | [
"BSD-3-Clause"
] | 4 | 2018-11-09T00:04:40.000Z | 2022-01-21T00:22:19.000Z | class H3Error(Exception):
"""
Base class for HTTP/3 exceptions.
"""
class NoAvailablePushIDError(H3Error):
"""
There are no available push IDs left.
"""
| 16.272727 | 41 | 0.625698 | 19 | 179 | 5.894737 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.256983 | 179 | 10 | 42 | 17.9 | 0.819549 | 0.396648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d5384477281a38887b55ff153c4ef967f19bb4a3 | 134 | py | Python | backend/stripe_payments/urls.py | BloomTech-Labs/CS10-flight-log | 8597462eea7b477b48f52d5efbd0e44491484ab1 | [
"PostgreSQL",
"MIT"
] | 1 | 2019-02-02T00:11:55.000Z | 2019-02-02T00:11:55.000Z | backend/stripe_payments/urls.py | Lambda-School-Labs/CS10-flight-log | 8597462eea7b477b48f52d5efbd0e44491484ab1 | [
"PostgreSQL",
"MIT"
] | 21 | 2018-09-12T00:26:12.000Z | 2021-10-05T23:49:36.000Z | backend/stripe_payments/urls.py | BloomTech-Labs/CS10-flight-log | 8597462eea7b477b48f52d5efbd0e44491484ab1 | [
"PostgreSQL",
"MIT"
] | 3 | 2018-09-10T16:51:15.000Z | 2018-10-12T15:46:53.000Z | from django.conf.urls import url
from .views import checkout
urlpatterns = [
url(r'^create-charge/$', checkout, name="cout"),
]
| 16.75 | 52 | 0.69403 | 18 | 134 | 5.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156716 | 134 | 7 | 53 | 19.142857 | 0.823009 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d54b79ed012929d3c688f83186b3a8abaa478a2a | 356 | py | Python | Exercicios/ex022.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | Exercicios/ex022.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | Exercicios/ex022.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | nome = str(input('Digite o seu nome completo - ')).strip()
lista = nome.split()
sp = nome.count(' ')
print('O seu nome completo em maiúsculas é - ', nome.upper())
print('O seu nome em minúsculas é - ', nome.lower())
print('O seu nome tem {} letras'.format(len(nome) - sp))
print('O primeiro nome é "{}" e tem {} letras... | 35.6 | 80 | 0.643258 | 58 | 356 | 3.948276 | 0.448276 | 0.069869 | 0.139738 | 0.170306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.154494 | 356 | 9 | 81 | 39.555556 | 0.754153 | 0 | 0 | 0 | 0 | 0 | 0.449438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d557ff0ba221b74a69f83e16b3a63d0e2e85ddd9 | 48 | py | Python | brainspace/_version.py | josemariamoreira/BrainSpace | d7e8e65c6463a81146e7fcfcca902feef04d329d | [
"BSD-3-Clause"
] | null | null | null | brainspace/_version.py | josemariamoreira/BrainSpace | d7e8e65c6463a81146e7fcfcca902feef04d329d | [
"BSD-3-Clause"
] | null | null | null | brainspace/_version.py | josemariamoreira/BrainSpace | d7e8e65c6463a81146e7fcfcca902feef04d329d | [
"BSD-3-Clause"
] | null | null | null | """BrainSpace version"""
__version__ = '0.1.0'
| 12 | 24 | 0.645833 | 6 | 48 | 4.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.125 | 48 | 3 | 25 | 16 | 0.571429 | 0.375 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d55b6428dee2363904b2a29f6c9921484ad24182 | 119 | py | Python | python/renameCollumn.py | raulpy271/challengeMe | 78ea3555735da4f3437bad923a207ec8a27bbb28 | [
"MIT"
] | 3 | 2021-03-31T08:51:22.000Z | 2021-09-05T10:08:24.000Z | python/renameCollumn.py | raulpy271/challengeMe | 78ea3555735da4f3437bad923a207ec8a27bbb28 | [
"MIT"
] | null | null | null | python/renameCollumn.py | raulpy271/challengeMe | 78ea3555735da4f3437bad923a207ec8a27bbb28 | [
"MIT"
] | null | null | null | import pandas as pd
def rename_columns(df, names):
newDf = df.copy()
newDf.columns = names
return newDf
| 17 | 32 | 0.663866 | 17 | 119 | 4.588235 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 119 | 6 | 33 | 19.833333 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d56cadddbf3165112db74c147bcc44f282e90c7c | 284 | py | Python | app/helpers.py | niross/ftrack | 73196f8b72f52ad04fe67ffa2bd830e058ceaf7f | [
"MIT"
] | null | null | null | app/helpers.py | niross/ftrack | 73196f8b72f52ad04fe67ffa2bd830e058ceaf7f | [
"MIT"
] | null | null | null | app/helpers.py | niross/ftrack | 73196f8b72f52ad04fe67ffa2bd830e058ceaf7f | [
"MIT"
] | null | null | null | from flask import jsonify
def mask_string(string, visible=4):
size = len(string) - visible
return string[0:visible + 1] + ('*' * size)
def json_response(status_code, data=None):
response = jsonify(data or {})
response.status_code = status_code
return response
| 21.846154 | 47 | 0.68662 | 38 | 284 | 5 | 0.552632 | 0.157895 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.200704 | 284 | 12 | 48 | 23.666667 | 0.823789 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | 0 | 3 |
d572058315fc67177c1b5755d87850138685530e | 298 | py | Python | boltzmann_machines/__init__.py | dante831/Ising_RBM | 2f95304577b7cd51607fb477d9ea95bf27d21dde | [
"MIT"
] | null | null | null | boltzmann_machines/__init__.py | dante831/Ising_RBM | 2f95304577b7cd51607fb477d9ea95bf27d21dde | [
"MIT"
] | null | null | null | boltzmann_machines/__init__.py | dante831/Ising_RBM | 2f95304577b7cd51607fb477d9ea95bf27d21dde | [
"MIT"
] | null | null | null | __author__ = 'Yelysei Bondarenko'
__email__ = 'yell.bondarenko@gmail.com'
#from . import layers
from . import utils
from .base import *
from .base_model import *
#from .tf_model import *
from .base_rbm import *
from .rbm import *
from .rng import *
from .dataset import *
from .mixin import *
| 16.555556 | 39 | 0.728188 | 41 | 298 | 5.02439 | 0.439024 | 0.339806 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174497 | 298 | 17 | 40 | 17.529412 | 0.837398 | 0.144295 | 0 | 0 | 0 | 0 | 0.170635 | 0.099206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d5888f2de01415ed54cab0d40de5fc687fbe1c69 | 176 | py | Python | am335x/pru0_constants.py | HudsonWerks/visualpru | 5bbb44ebb0798a493ad33f4881fa7845e8aeff74 | [
"MIT"
] | 1 | 2020-07-15T18:55:07.000Z | 2020-07-15T18:55:07.000Z | am335x/pru0_constants.py | HudsonWerks/visualpru | 5bbb44ebb0798a493ad33f4881fa7845e8aeff74 | [
"MIT"
] | null | null | null | am335x/pru0_constants.py | HudsonWerks/visualpru | 5bbb44ebb0798a493ad33f4881fa7845e8aeff74 | [
"MIT"
] | null | null | null | #MEMORY BLOCK OFFSETS
PRU_IRAM_OFFSET = 0x00034000 #Size: 8KB
PRU_DRAM_OFFSET = 0x00000000 #Size: 8KB
PRU_ICSS_PRU_DEBUG_OFFSET = 0x00022400
PRUSS_PRU_CTRL_OFFSET = 0x00022000 | 29.333333 | 39 | 0.840909 | 26 | 176 | 5.269231 | 0.653846 | 0.10219 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242038 | 0.107955 | 176 | 6 | 40 | 29.333333 | 0.630573 | 0.215909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5999a40bf7bebfcb7949d49da617da25c454f34 | 1,069 | py | Python | CybORG/CybORG/Shared/Actions/ShellActionsFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 18 | 2021-08-20T15:07:55.000Z | 2022-03-11T12:05:15.000Z | CybORG/CybORG/Shared/Actions/ShellActionsFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 7 | 2021-11-09T06:46:58.000Z | 2022-03-31T12:35:06.000Z | CybORG/CybORG/Shared/Actions/ShellActionsFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 13 | 2021-08-17T00:26:31.000Z | 2022-03-29T20:06:45.000Z | from .InternalEnumerationFolder import IFConfig, IPConfig, SystemInfo, Uname
from .CredentialHarvestingFolder import ReadShadowFile, ReadPasswdFile
from .NetworkScanFolder import NmapScan, PingSweep
from .OpenConnectionFolder import \
NetcatConnect, SSHAccess, SSHHydraBruteForce, SMBAnonymousConnection
from .Delete... | 48.590909 | 76 | 0.869972 | 83 | 1,069 | 11.204819 | 0.493976 | 0.045161 | 0.058065 | 0.094624 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096352 | 1,069 | 21 | 77 | 50.904762 | 0.962733 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.047619 | 0.809524 | 0 | 0.809524 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6358f0d66d77e0acb745aea429faf77a5eaf2397 | 3,919 | py | Python | meggie/actions/tfr_save/controller/tfr.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2020-04-29T08:57:11.000Z | 2021-01-15T21:21:51.000Z | meggie/actions/tfr_save/controller/tfr.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2019-05-03T10:31:16.000Z | 2021-05-06T14:59:55.000Z | meggie/actions/tfr_save/controller/tfr.py | cibr-jyu/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2020-12-12T09:57:00.000Z | 2020-12-20T17:12:05.000Z | """ Contains controlling logic for the tfr implementation
"""
import os
import logging
import mne
import meggie.utilities.filemanager as filemanager
from meggie.utilities.formats import format_floats
from meggie.utilities.channels import average_to_channel_groups
from meggie.utilities.threading import threaded
@t... | 33.784483 | 88 | 0.558051 | 447 | 3,919 | 4.689038 | 0.217002 | 0.034351 | 0.026718 | 0.03626 | 0.722328 | 0.707061 | 0.707061 | 0.686069 | 0.686069 | 0.686069 | 0 | 0.001587 | 0.356979 | 3,919 | 115 | 89 | 34.078261 | 0.830159 | 0.067874 | 0 | 0.657895 | 0 | 0 | 0.036935 | 0.019846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.092105 | 0 | 0.118421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
635c5c16bb6e0d95263a0e63a8973a0ac5de06fc | 243 | py | Python | tests/_sandbox/settings/docker.py | bmihelac/wagtailtrans | 37d26711fd15841f3f60d22fc0bca8068ed07b81 | [
"BSD-3-Clause"
] | 76 | 2018-12-05T20:56:00.000Z | 2022-03-23T08:08:57.000Z | tests/_sandbox/settings/docker.py | bmihelac/wagtailtrans | 37d26711fd15841f3f60d22fc0bca8068ed07b81 | [
"BSD-3-Clause"
] | 128 | 2016-10-07T10:26:27.000Z | 2018-10-13T07:38:43.000Z | tests/_sandbox/settings/docker.py | bmihelac/wagtailtrans | 37d26711fd15841f3f60d22fc0bca8068ed07b81 | [
"BSD-3-Clause"
] | 42 | 2018-11-12T06:59:45.000Z | 2022-03-31T12:59:48.000Z | from .base import * # noqa
STATIC_ROOT = '/opt/sandbox/public/static/'
MEDIA_ROOT = '/opt/sandbox/public/media/'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/tmp/sandbox.sqlite3',
}
}
| 20.25 | 47 | 0.609053 | 27 | 243 | 5.407407 | 0.703704 | 0.09589 | 0.191781 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.205761 | 243 | 11 | 48 | 22.090909 | 0.746114 | 0.016461 | 0 | 0 | 0 | 0 | 0.489451 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63686517a6ef8d9d1867de3472a9f307f6668aac | 805 | py | Python | senseclust/methods/__init__.py | frankier/finn-sense-clust | 9b76ee3bdacc9b039432674306650c6edb9da3bb | [
"Apache-2.0"
] | null | null | null | senseclust/methods/__init__.py | frankier/finn-sense-clust | 9b76ee3bdacc9b039432674306650c6edb9da3bb | [
"Apache-2.0"
] | 2 | 2019-04-27T14:40:10.000Z | 2019-08-21T15:43:19.000Z | senseclust/methods/__init__.py | frankier/finn-sense-clust | 9b76ee3bdacc9b039432674306650c6edb9da3bb | [
"Apache-2.0"
] | null | null | null | from senseclust.methods.label import Label
from senseclust.methods.vec_clust import Vec
from senseclust.methods.scos import SoftCos
from senseclust.methods.baseline import Baseline
from senseclust.methods.base import BothExpGroup, WordnetOnlyExpGroup, WiktionaryOnlyExpGroup
from senseclust.methods.bert import Bert
from... | 36.590909 | 93 | 0.762733 | 90 | 805 | 6.811111 | 0.266667 | 0.205546 | 0.30832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001404 | 0.115528 | 805 | 21 | 94 | 38.333333 | 0.859551 | 0 | 0 | 0 | 0 | 0 | 0.002484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.473684 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
636ba2eae07ba0992d47a7082208ad982ecf51b2 | 326 | py | Python | expressions/booleans.py | frapa/gala | cfaba6dd3966d26715dd84101d451ff96ff37c0a | [
"MIT"
] | 1 | 2018-07-22T16:19:29.000Z | 2018-07-22T16:19:29.000Z | expressions/booleans.py | frapa/gala | cfaba6dd3966d26715dd84101d451ff96ff37c0a | [
"MIT"
] | null | null | null | expressions/booleans.py | frapa/gala | cfaba6dd3966d26715dd84101d451ff96ff37c0a | [
"MIT"
] | null | null | null | import expressions
import var_types
class Boolean(expressions.Expression):
def __init__(self, parent, expr):
super(Boolean, self).__init__(parent)
self.bool = "".join(expr.children)
def get_type(self):
return var_types.bool
def to_c(self):
return "{bool}".format(bool=self... | 23.285714 | 46 | 0.665644 | 42 | 326 | 4.880952 | 0.52381 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214724 | 326 | 14 | 46 | 23.285714 | 0.800781 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6370da150e3ed8a6a754a8fe576fd5cfd1eddad7 | 50 | py | Python | finance/__init__.py | sanjaypradeep/Django-School-Management-System | 2354d8e8a9d436300f4950f4439aca6930c2ffa5 | [
"MIT"
] | 1 | 2021-04-04T15:25:26.000Z | 2021-04-04T15:25:26.000Z | finance/__init__.py | anwar-moj/Django-School-Management-System | c5933b9802a4f6b1c9b64c44f58e018ab8faadf4 | [
"MIT"
] | 9 | 2021-03-19T04:24:05.000Z | 2022-03-12T00:33:21.000Z | finance/__init__.py | anwar-moj/Django-School-Management-System | c5933b9802a4f6b1c9b64c44f58e018ab8faadf4 | [
"MIT"
] | null | null | null | default_app_config = 'finance.apps.FinanceConfig'
| 25 | 49 | 0.84 | 6 | 50 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6383bc2e0263d1e1d5fe996c2eea92dc4b44cdfa | 99 | py | Python | maxcube/room.py | sutyagin/homeassistant_cube | 22f6735f39fa2469232279f59414050caa6fead8 | [
"MIT"
] | null | null | null | maxcube/room.py | sutyagin/homeassistant_cube | 22f6735f39fa2469232279f59414050caa6fead8 | [
"MIT"
] | null | null | null | maxcube/room.py | sutyagin/homeassistant_cube | 22f6735f39fa2469232279f59414050caa6fead8 | [
"MIT"
] | null | null | null | class MaxRoom(object):
def __init__(self):
self.id = None
self.name = None
| 19.8 | 25 | 0.555556 | 12 | 99 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.343434 | 99 | 4 | 26 | 24.75 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6383c1ea6e5ec7d39a5b50b868e6471496db67a5 | 647 | py | Python | Recursion and Back Tracking/Level-1/Recursion-a-level-up/printMazePaths/print_maze_paths.py | NeilSayok/CodeToGrow | 6f97f228e70b2fe469a3c4e0f1a88b1e523ac9cb | [
"MIT"
] | 5 | 2020-10-12T08:01:28.000Z | 2020-10-17T12:25:58.000Z | Recursion and Back Tracking/Level-1/Recursion-a-level-up/printMazePaths/print_maze_paths.py | NeilSayok/CodeToGrow | 6f97f228e70b2fe469a3c4e0f1a88b1e523ac9cb | [
"MIT"
] | 12 | 2020-10-11T06:15:13.000Z | 2020-10-25T11:25:25.000Z | Recursion and Back Tracking/Level-1/Recursion-a-level-up/printMazePaths/print_maze_paths.py | NeilSayok/CodeToGrow | 6f97f228e70b2fe469a3c4e0f1a88b1e523ac9cb | [
"MIT"
] | 18 | 2020-10-11T06:42:09.000Z | 2020-10-25T16:47:03.000Z | import sys
def printMazePath(rows, cols, r_ind, c_ind, path):
if r_ind == rows-1 and c_ind == cols-1:
print(path, end=' ')
else:
if 0 <= r_ind < rows and 0 <= c_ind < cols:
# Horizontal move
printMazePath(rows, cols, r_ind, c_ind+1, path+'h')
# Vertical move
... | 29.409091 | 63 | 0.567233 | 93 | 647 | 3.752688 | 0.419355 | 0.057307 | 0.180516 | 0.189112 | 0.260745 | 0.260745 | 0.166189 | 0 | 0 | 0 | 0 | 0.02193 | 0.295209 | 647 | 22 | 64 | 29.409091 | 0.743421 | 0.044822 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.4375 | 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 | 1 | 0 | 3 |
63851c417b640a283e03b65409bdebbf0ca6702e | 134 | py | Python | PIP/Minor Assignment 9/A9Q14.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | null | null | null | PIP/Minor Assignment 9/A9Q14.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | null | null | null | PIP/Minor Assignment 9/A9Q14.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | 1 | 2022-03-02T05:07:39.000Z | 2022-03-02T05:07:39.000Z | f=open('PYTHON','w')
f.write('failure is a part of success also, i am fine')
f = open('PYTHON', 'r')
print(f.readline())
f.close() | 26.8 | 56 | 0.626866 | 25 | 134 | 3.36 | 0.76 | 0.119048 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 5 | 57 | 26.8 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.442748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
639f413648e291627d727e353434cb0485376ca9 | 47 | py | Python | game_finder/__init__.py | ch4zm/blaseball-game-finder | 63a6d8794509d911a7560863ff5cf7b2ddf41aa9 | [
"MIT"
] | null | null | null | game_finder/__init__.py | ch4zm/blaseball-game-finder | 63a6d8794509d911a7560863ff5cf7b2ddf41aa9 | [
"MIT"
] | null | null | null | game_finder/__init__.py | ch4zm/blaseball-game-finder | 63a6d8794509d911a7560863ff5cf7b2ddf41aa9 | [
"MIT"
] | null | null | null | _program = "game-finder"
__version__ = "0.2.1"
| 15.666667 | 24 | 0.680851 | 7 | 47 | 3.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.12766 | 47 | 2 | 25 | 23.5 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63a2a08dcca8822ff0445242d339eee6e48c1c58 | 11,683 | py | Python | ILS/IntegratedLocalSearch.py | sharkeng/algorithms | bb7f165d7b2c43b17a1f62f590e1eef31765bcb0 | [
"MIT"
] | null | null | null | ILS/IntegratedLocalSearch.py | sharkeng/algorithms | bb7f165d7b2c43b17a1f62f590e1eef31765bcb0 | [
"MIT"
] | null | null | null | ILS/IntegratedLocalSearch.py | sharkeng/algorithms | bb7f165d7b2c43b17a1f62f590e1eef31765bcb0 | [
"MIT"
] | 1 | 2021-06-11T09:07:46.000Z | 2021-06-11T09:07:46.000Z | import math
import time
from random import randint
from tqdm import tqdm
def to_list(r):
return list(map(int, r.split()))
def to_str(r):
return " ".join(list(map(str, r)))
def get_coords_from_console():
n = int(input())
coords = dict()
for i in range(n):
s = input().split(' ')
... | 62.811828 | 4,897 | 0.58033 | 1,905 | 11,683 | 3.434121 | 0.5979 | 0.023234 | 0.01391 | 0.007337 | 0.176093 | 0.129624 | 0.121981 | 0.096301 | 0.073066 | 0.059615 | 0 | 0.347229 | 0.271078 | 11,683 | 185 | 4,898 | 63.151351 | 0.420972 | 0.024908 | 0 | 0.146667 | 0 | 0 | 0.022138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.033333 | 0.026667 | 0.226667 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63a41cdfa0ced845a3c981cda05f9c096392825f | 2,351 | py | Python | air-travel/db.py | davidlwzhao/davidlwzhao.github.io | f298a7cac1b972be5ccbde436edb5f216acf2788 | [
"MIT"
] | null | null | null | air-travel/db.py | davidlwzhao/davidlwzhao.github.io | f298a7cac1b972be5ccbde436edb5f216acf2788 | [
"MIT"
] | null | null | null | air-travel/db.py | davidlwzhao/davidlwzhao.github.io | f298a7cac1b972be5ccbde436edb5f216acf2788 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
### Data schema
1. Carrier level
- Carrier ID
- Carrier Name
- Carrier Parent?
- Carrier Country
- Other flags ...
2. Route level (includes layovers)
- Route ID
- Start airport
- End airport
3. Airport l... | 25.835165 | 88 | 0.561038 | 269 | 2,351 | 4.799257 | 0.535316 | 0.03718 | 0.03718 | 0.046476 | 0.041828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.34496 | 2,351 | 91 | 89 | 25.835165 | 0.831818 | 0.540196 | 0 | 0.166667 | 0 | 0 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.1 | 0.166667 | 0 | 0.533333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
63ab106492f87d4f611cac5ccc68bca61b388957 | 781 | py | Python | testauth.py | hadleyrich/mosquitto_pyauth | 8dbc5cf1c63bec0df11e205c05fd08b6d0f66c3e | [
"MIT"
] | 1 | 2015-03-03T09:50:09.000Z | 2015-03-03T09:50:09.000Z | testauth.py | hadleyrich/mosquitto_pyauth | 8dbc5cf1c63bec0df11e205c05fd08b6d0f66c3e | [
"MIT"
] | null | null | null | testauth.py | hadleyrich/mosquitto_pyauth | 8dbc5cf1c63bec0df11e205c05fd08b6d0f66c3e | [
"MIT"
] | null | null | null | from pprint import pprint
import mosquitto_auth
def plugin_init(opts):
print 'plugin_init'
pprint(opts)
def plugin_cleanup():
print 'plugin_cleanup'
def unpwd_check(username, password):
print 'unpwd_check', username, password
return True
def acl_check(clientid, username, topic, access):
pri... | 26.033333 | 68 | 0.728553 | 101 | 781 | 5.39604 | 0.29703 | 0.095413 | 0.115596 | 0.148624 | 0.095413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179257 | 781 | 29 | 69 | 26.931034 | 0.850234 | 0 | 0 | 0.181818 | 0 | 0 | 0.134443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.090909 | 0.090909 | null | null | 0.5 | 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 | 1 | 0 | 3 |
63d66dd21deb7e29571496ebd8d7e82bf8b6ae43 | 64 | py | Python | src/api_utilities/constants.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | 1 | 2021-07-21T16:51:12.000Z | 2021-07-21T16:51:12.000Z | src/api_utilities/constants.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | null | null | null | src/api_utilities/constants.py | tomfran/lastfm-project | a4acd177d69235e49653f103a897a18c37c3d230 | [
"MIT"
] | null | null | null | BASE = 'http://ws.audioscrobbler.com/2.0/?'
KEY = 'YOUR_API_KEY' | 32 | 43 | 0.6875 | 11 | 64 | 3.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.078125 | 64 | 2 | 44 | 32 | 0.677966 | 0 | 0 | 0 | 0 | 0 | 0.707692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
891d0b1b35a8098c08b3f8d248090862d8b53d27 | 1,265 | py | Python | server/models/getmail.py | mahmoudimus/cosmosquest-ng | a53014b616f557ab1a6a6532b6f81f38e8776e94 | [
"Apache-2.0"
] | 2 | 2020-08-19T22:14:37.000Z | 2020-08-19T23:31:47.000Z | server/models/getmail.py | mahmoudimus/cosmosquest-ng | a53014b616f557ab1a6a6532b6f81f38e8776e94 | [
"Apache-2.0"
] | 1 | 2020-08-19T21:35:55.000Z | 2020-08-19T21:35:55.000Z | server/models/getmail.py | mahmoudimus/kosmosquest-ng | a53014b616f557ab1a6a6532b6f81f38e8776e94 | [
"Apache-2.0"
] | null | null | null |
from __future__ import annotations
from typing import Any, Dict, List, Optional
from pydantic import BaseModel
class CurrencyItem(BaseModel):
id: str
quantity: int
class InventoryItem(BaseModel):
rank: Optional[int] = None
eid: Optional[str] = None
id: str
quantity: int
type: Optiona... | 13.901099 | 44 | 0.655336 | 161 | 1,265 | 5.068323 | 0.360248 | 0.068627 | 0.11152 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060381 | 0.253755 | 1,265 | 90 | 45 | 14.055556 | 0.804025 | 0 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.12069 | 0.051724 | 0 | 0.87931 | 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 | 1 | 0 | 0 | 3 |
891f17bdd5b7e699cf306e7dfc9cc220a5113f9a | 2,671 | py | Python | app/models.py | Rreuben/pitch | ad6cad6f016c019d23d58eed30d8db1f256554c4 | [
"MIT"
] | null | null | null | app/models.py | Rreuben/pitch | ad6cad6f016c019d23d58eed30d8db1f256554c4 | [
"MIT"
] | null | null | null | app/models.py | Rreuben/pitch | ad6cad6f016c019d23d58eed30d8db1f256554c4 | [
"MIT"
] | 1 | 2018-09-14T05:10:15.000Z | 2018-09-14T05:10:15.000Z | '''Module containing classes'''
from datetime import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from . import DB, LOGIN_MANAGER
@LOGIN_MANAGER.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMixin, ... | 23.848214 | 74 | 0.67091 | 342 | 2,671 | 5.081871 | 0.251462 | 0.087457 | 0.109321 | 0.082854 | 0.405639 | 0.249712 | 0.249712 | 0.214039 | 0.097814 | 0.097814 | 0 | 0.009781 | 0.196181 | 2,671 | 111 | 75 | 24.063063 | 0.799721 | 0.045301 | 0 | 0.206897 | 1 | 0 | 0.078502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.155172 | 0.068966 | 0.051724 | 0.810345 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
892f1d37b579dd9f5ea8230023aa594d66b95748 | 332 | py | Python | scrapy_qtwebkit/browser_engine/__init__.py | ArturGaspar/scrapy-qtwebkit | fe033a064560964fb5b3793a14c88e947c02a58e | [
"MIT"
] | 14 | 2016-08-02T16:43:15.000Z | 2019-10-28T12:42:24.000Z | scrapy_qtwebkit/browser_engine/__init__.py | ArturGaspar/scrapy-qtwebkit | fe033a064560964fb5b3793a14c88e947c02a58e | [
"MIT"
] | 2 | 2019-08-03T06:29:03.000Z | 2019-08-16T03:27:03.000Z | scrapy_qtwebkit/browser_engine/__init__.py | ArturGaspar/scrapy-qtwebkit | fe033a064560964fb5b3793a14c88e947c02a58e | [
"MIT"
] | 1 | 2019-08-16T03:22:32.000Z | 2019-08-16T03:22:32.000Z | from twisted.spread import pb
class BrowserManager(pb.Root):
def __init__(self, reactor, browser_cls):
super().__init__()
self._reactor = reactor
self.browser_cls = browser_cls
def remote_open_browser(self, downloader, options):
return self.browser_cls(self._reactor, downloade... | 27.666667 | 67 | 0.704819 | 40 | 332 | 5.45 | 0.5 | 0.183486 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 332 | 11 | 68 | 30.181818 | 0.825758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
892f68eae55c9edc2d2240f52705138b1305bcfa | 34,216 | py | Python | api/tests/opentrons/protocol_engine/state/test_command_store.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/protocol_engine/state/test_command_store.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/protocol_engine/state/test_command_store.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | """Tests for the command lifecycle state."""
import pytest
from collections import OrderedDict
from datetime import datetime
from typing import NamedTuple, Type
from opentrons.ordered_set import OrderedSet
from opentrons.types import MountType, DeckSlotName
from opentrons.hardware_control.types import DoorStateNotific... | 35.021494 | 88 | 0.668401 | 3,835 | 34,216 | 5.705085 | 0.074316 | 0.055121 | 0.052105 | 0.039353 | 0.769688 | 0.739431 | 0.711778 | 0.689565 | 0.648613 | 0.626537 | 0 | 0.019439 | 0.227204 | 34,216 | 976 | 89 | 35.057377 | 0.807995 | 0.056991 | 0 | 0.661747 | 0 | 0 | 0.047801 | 0 | 0 | 0 | 0 | 0 | 0.065191 | 1 | 0.03075 | false | 0 | 0.01476 | 0 | 0.052891 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
895b1ca52302c5dc71d8e3380cb3b34cea4f7d5a | 100 | py | Python | 2753-saida-7.py | ErickSimoes/URI-Online-Judge | 7e6f141db2647b1d0d69951b064bd95b0ce4ba1a | [
"MIT"
] | null | null | null | 2753-saida-7.py | ErickSimoes/URI-Online-Judge | 7e6f141db2647b1d0d69951b064bd95b0ce4ba1a | [
"MIT"
] | null | null | null | 2753-saida-7.py | ErickSimoes/URI-Online-Judge | 7e6f141db2647b1d0d69951b064bd95b0ce4ba1a | [
"MIT"
] | 1 | 2019-10-29T16:51:29.000Z | 2019-10-29T16:51:29.000Z | #!/usr/bin/env python
# coding: utf-8
# In[1]:
for n in range(97, 123):
print(n, 'e', chr(n))
| 10 | 24 | 0.55 | 20 | 100 | 2.75 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 0.21 | 100 | 9 | 25 | 11.111111 | 0.607595 | 0.41 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8978c48997445633439275e320109bc4cba813ba | 327 | py | Python | ggplot/components/linestyles.py | minrk/ggplot | c90ab65b959172c4a3488893e395dc3749dd1830 | [
"BSD-2-Clause"
] | null | null | null | ggplot/components/linestyles.py | minrk/ggplot | c90ab65b959172c4a3488893e395dc3749dd1830 | [
"BSD-2-Clause"
] | null | null | null | ggplot/components/linestyles.py | minrk/ggplot | c90ab65b959172c4a3488893e395dc3749dd1830 | [
"BSD-2-Clause"
] | null | null | null |
LINESTYLES = [
"-", #solid
"--", #dashed
"-.", #dash-dot
":", #dotted
".", #point
"|", #vline
"_", #hline
]
LINESTYLES = [
'solid',
'dashed',
'dashdot',
'dotted'
]
def line_gen():
while True:
for line in LINESTYLES:
yield... | 12.576923 | 26 | 0.40367 | 25 | 327 | 5.2 | 0.72 | 0.230769 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.415902 | 327 | 25 | 27 | 13.08 | 0.680628 | 0.122324 | 0 | 0.105263 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0 | 1 | 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 | 3 |
897f25fb3c470a06b931c12fe2bd687f2f41d83c | 327 | py | Python | bin/dev_bin.py | sidmontu/chess_ai | 6758ae05183d4f84ef665ec9a9ff5b8c2cade2f5 | [
"MIT"
] | null | null | null | bin/dev_bin.py | sidmontu/chess_ai | 6758ae05183d4f84ef665ec9a9ff5b8c2cade2f5 | [
"MIT"
] | null | null | null | bin/dev_bin.py | sidmontu/chess_ai | 6758ae05183d4f84ef665ec9a9ff5b8c2cade2f5 | [
"MIT"
] | null | null | null | from ch_ss.game_engine.core.piece import Piece, PieceColors, PieceNames
piece = Piece(PieceColors.BLACK, PieceNames.PAWN)
piece1 = Piece(PieceColors.BLACK, PieceNames.PAWN)
piece2 = Piece(PieceColors.WHITE, PieceNames.PAWN)
print(piece == piece1)
print(hash(piece))
print(hash(piece1))
print("%r" % (piece))
print(dir(p... | 29.727273 | 71 | 0.770642 | 44 | 327 | 5.681818 | 0.431818 | 0.256 | 0.168 | 0.248 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.085627 | 327 | 10 | 72 | 32.7 | 0.822742 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 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 | 1 | 0 | 3 |
89ac277e52186b814aa65523ed89b75d12d0ad4e | 210 | py | Python | backend_flask/app/__init__.py | chenth0517/cognitive_card | a1fb5aa4f6fd10a1587a047cce8e01a8afb8cab6 | [
"MIT"
] | null | null | null | backend_flask/app/__init__.py | chenth0517/cognitive_card | a1fb5aa4f6fd10a1587a047cce8e01a8afb8cab6 | [
"MIT"
] | null | null | null | backend_flask/app/__init__.py | chenth0517/cognitive_card | a1fb5aa4f6fd10a1587a047cce8e01a8afb8cab6 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_cors import *
# 创建webapp应用,__name__是python预定义变量,被设置为使用本模块.
webapp = Flask(__name__)
CORS(webapp, supports_credentials=True)
# 此处对应了路由文件routes.py中的内容
from app import routes
| 19.090909 | 44 | 0.819048 | 26 | 210 | 6.230769 | 0.615385 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 210 | 10 | 45 | 21 | 0.870968 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
982292560ca812bd4e86cc746997f58b693043ac | 248 | py | Python | src/compas_rhino/etoforms/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2019-03-27T22:46:29.000Z | 2019-03-27T22:46:29.000Z | src/compas_rhino/etoforms/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null | src/compas_rhino/etoforms/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2022-01-16T02:32:43.000Z | 2022-01-16T02:32:43.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .settings import *
from .text import *
from .propertylist import *
__all__ = [name for name in dir() if not name.startswith('_')]
| 20.666667 | 62 | 0.782258 | 33 | 248 | 5.30303 | 0.545455 | 0.171429 | 0.274286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153226 | 248 | 11 | 63 | 22.545455 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
98291b8065712566c94b667987167b0cc82634e6 | 631 | py | Python | tests/test_block_io.py | strongfellow/strongfellowbtc | c1575ce707706dedb9bfea6bc3c8715c1398bcab | [
"MIT"
] | null | null | null | tests/test_block_io.py | strongfellow/strongfellowbtc | c1575ce707706dedb9bfea6bc3c8715c1398bcab | [
"MIT"
] | null | null | null | tests/test_block_io.py | strongfellow/strongfellowbtc | c1575ce707706dedb9bfea6bc3c8715c1398bcab | [
"MIT"
] | null | null | null |
import nose.tools
import os.path
import strongfellowbtc.block_io as io
import strongfellowbtc.hex as hex
# def test_read_blocks():
# n = 0
# with open('tests/data/blk00000.dat', 'rb') as stream:
# for (network, block, hash) in io.generate_blocks(stream):
# assert hex.big_endian_hex(hash).s... | 31.55 | 68 | 0.621236 | 90 | 631 | 4.233333 | 0.455556 | 0.062992 | 0.102362 | 0.133858 | 0.325459 | 0.199475 | 0.199475 | 0.199475 | 0.199475 | 0 | 0 | 0.05428 | 0.240887 | 631 | 19 | 69 | 33.210526 | 0.741127 | 0.789223 | 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 | 1 | 0 | 0 | 3 |
98813d933001d4aaa08b787b6aac329cc6665369 | 5,636 | py | Python | tests/transformers/tasks/test_latest_dataset_value.py | NRCan/backdrop | ba45e21b81c09859310ca4be249b25016b8731dc | [
"MIT"
] | 9 | 2015-10-20T04:36:48.000Z | 2020-09-08T18:47:01.000Z | tests/transformers/tasks/test_latest_dataset_value.py | NRCan/backdrop | ba45e21b81c09859310ca4be249b25016b8731dc | [
"MIT"
] | 31 | 2015-01-11T11:57:05.000Z | 2021-03-24T10:52:33.000Z | tests/transformers/tasks/test_latest_dataset_value.py | alphagov/backdrop | 1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8 | [
"MIT"
] | 4 | 2015-01-25T09:06:45.000Z | 2021-04-10T20:27:36.000Z | import base64
import unittest
from hamcrest import assert_that, is_
from backdrop.transformers.tasks.latest_dataset_value import compute
from mock import patch, Mock
from unittest.case import SkipTest
data = [
{
"_day_start_at": "2013-10-07T00:00:00+00:00",
"_end_at": "2013-10-14T00:00:00+00:0... | 34.365854 | 86 | 0.562633 | 610 | 5,636 | 4.904918 | 0.167213 | 0.106952 | 0.104278 | 0.069519 | 0.785428 | 0.737968 | 0.735628 | 0.688168 | 0.679144 | 0.602941 | 0 | 0.153001 | 0.305358 | 5,636 | 163 | 87 | 34.576687 | 0.611239 | 0 | 0 | 0.461538 | 0 | 0 | 0.378637 | 0.248758 | 0 | 0 | 0 | 0 | 0.055944 | 1 | 0.020979 | false | 0 | 0.041958 | 0 | 0.06993 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98899455c45063ae445952963b2d013b7b9d7e6d | 85 | py | Python | Reversi/common/state.py | tvetan/Reversi | ad4644293f3e6f6885183bc228d3673ce54ff02b | [
"MIT"
] | 1 | 2015-06-07T18:45:23.000Z | 2015-06-07T18:45:23.000Z | Reversi/common/state.py | tvetan/Reversi | ad4644293f3e6f6885183bc228d3673ce54ff02b | [
"MIT"
] | null | null | null | Reversi/common/state.py | tvetan/Reversi | ad4644293f3e6f6885183bc228d3673ce54ff02b | [
"MIT"
] | null | null | null | from enum import Enum
class State(Enum):
empty = 1
white = 2
black = 3
| 10.625 | 21 | 0.588235 | 13 | 85 | 3.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.341176 | 85 | 7 | 22 | 12.142857 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
98b98f8fce4631185d063f297583d55ad28df288 | 2,760 | py | Python | icse38/icse38/views.py | rp17/icse38site | eff2f4c33db8f07140d681177148614c7401b976 | [
"MIT"
] | null | null | null | icse38/icse38/views.py | rp17/icse38site | eff2f4c33db8f07140d681177148614c7401b976 | [
"MIT"
] | null | null | null | icse38/icse38/views.py | rp17/icse38site | eff2f4c33db8f07140d681177148614c7401b976 | [
"MIT"
] | null | null | null | from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, Context
from django.http import HttpResponse
from django.http import HttpResponseRedirect
#from icse38.models import ContactForm
#from django import newforms as forms
#from django.newforms.widgets import *
fro... | 35.844156 | 183 | 0.711957 | 316 | 2,760 | 6.088608 | 0.297468 | 0.058212 | 0.116424 | 0.148649 | 0.18711 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002154 | 0.159058 | 2,760 | 76 | 184 | 36.315789 | 0.826799 | 0.147101 | 0 | 0 | 0 | 0 | 0.122423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.12 | 0.16 | 0.58 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.