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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dac99f04804ddae8998a0380b8ac3d35669f9f8 | 16,968 | py | Python | WhereTo/serializers.py | arefhosseini/WhereToServer | 906d737003b6aa49788d58e9abd6f13563ecf6bc | [
"Apache-2.0"
] | 2 | 2019-04-09T09:10:52.000Z | 2019-06-03T07:47:02.000Z | WhereTo/serializers.py | arefhosseini/WhereToServer | 906d737003b6aa49788d58e9abd6f13563ecf6bc | [
"Apache-2.0"
] | null | null | null | WhereTo/serializers.py | arefhosseini/WhereToServer | 906d737003b6aa49788d58e9abd6f13563ecf6bc | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from WhereToServer import settings
from .models import User, Place, PlaceImage, CoordinatePlace, Menu, Food, Review, PlaceScore, Relation, FavoritePlace, \
Token, FavoritePlaceType, ReviewVote, PlaceImageVote, Hashtag
class TokenSerializer(serializers.ModelSerializer):
... | 30.463196 | 120 | 0.673385 | 1,825 | 16,968 | 6.031781 | 0.081096 | 0.15407 | 0.048419 | 0.047965 | 0.657613 | 0.592115 | 0.56577 | 0.539426 | 0.510265 | 0.482104 | 0 | 0.004049 | 0.228607 | 16,968 | 556 | 121 | 30.517986 | 0.836962 | 0 | 0 | 0.580247 | 0 | 0 | 0.086162 | 0.005009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130864 | false | 0 | 0.007407 | 0.101235 | 0.617284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
2db59b63541b500e0432e5b09b1c6f8278639663 | 76 | py | Python | ramda/tap.py | Rafi993/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | 1 | 2018-08-05T04:41:14.000Z | 2018-08-05T04:41:14.000Z | ramda/tap.py | Rafi993/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | 3 | 2018-06-12T18:42:05.000Z | 2018-07-23T11:50:25.000Z | ramda/tap.py | slavaGanzin/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | null | null | null | from ramda.curry import curry
@curry
def tap(f, v):
f(v)
return v
| 9.5 | 29 | 0.618421 | 14 | 76 | 3.357143 | 0.642857 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276316 | 76 | 7 | 30 | 10.857143 | 0.854545 | 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 | 0 | 0 | 0 | 2 |
2db5eaef8e536179be2ca38e8b38ea496316d209 | 5,686 | py | Python | mailtest/settings.py | GermanMtzmx/mailtest | 9ec3f51344e6968698f8313ef987fca4d2907cdf | [
"Xnet",
"X11"
] | null | null | null | mailtest/settings.py | GermanMtzmx/mailtest | 9ec3f51344e6968698f8313ef987fca4d2907cdf | [
"Xnet",
"X11"
] | null | null | null | mailtest/settings.py | GermanMtzmx/mailtest | 9ec3f51344e6968698f8313ef987fca4d2907cdf | [
"Xnet",
"X11"
] | null | null | null | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
from .e... | 27.07619 | 91 | 0.744108 | 661 | 5,686 | 6.152799 | 0.3177 | 0.063929 | 0.05016 | 0.043029 | 0.135235 | 0.127367 | 0.06565 | 0.06565 | 0.029506 | 0 | 0 | 0.007034 | 0.149842 | 5,686 | 209 | 92 | 27.205742 | 0.834299 | 0.207879 | 0 | 0.047244 | 1 | 0 | 0.421417 | 0.383635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.11811 | 0.015748 | 0 | 0.015748 | 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 | 0 | 0 | 0 | 2 |
2db693bc74f2b27e9b85f6a2fa0ea3a20b11acad | 2,406 | py | Python | flaskr/auth.py | Jeffrey-zhao/flask-learning | 9bd9c6ffd2d140c615be5c2a5b5827a6914f6354 | [
"BSD-3-Clause"
] | null | null | null | flaskr/auth.py | Jeffrey-zhao/flask-learning | 9bd9c6ffd2d140c615be5c2a5b5827a6914f6354 | [
"BSD-3-Clause"
] | null | null | null | flaskr/auth.py | Jeffrey-zhao/flask-learning | 9bd9c6ffd2d140c615be5c2a5b5827a6914f6354 | [
"BSD-3-Clause"
] | null | null | null | import functools
from flask import (
Blueprint,flash,g,redirect,render_template,request,session,url_for
)
from werkzeug.security import check_password_hash,generate_password_hash
from flaskr.db import get_db
bp=Blueprint('auth',__name__,url_prefix='/auth')
@bp.route('/register',methods=('GET','POST'))
def regi... | 27.655172 | 74 | 0.603907 | 285 | 2,406 | 4.964912 | 0.252632 | 0.025442 | 0.048057 | 0.056537 | 0.332862 | 0.297527 | 0.125795 | 0.125795 | 0.125795 | 0.125795 | 0 | 0 | 0.265586 | 2,406 | 87 | 75 | 27.655172 | 0.800792 | 0 | 0 | 0.314286 | 1 | 0 | 0.17823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.128571 | 0.057143 | 0 | 0.257143 | 0.028571 | 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 | 0 | 0 | 0 | 2 |
2dc402c39c002cfa0f653309edd5f5a7879a332a | 746 | py | Python | tests/conftest.py | d-stoll/stonkmaster | ac2552c73f496cc31effb412ba1073ee63ae7d16 | [
"Apache-2.0"
] | 2 | 2021-08-16T13:49:34.000Z | 2021-09-23T12:12:40.000Z | tests/conftest.py | d-stoll/the-stonk-master | ac2552c73f496cc31effb412ba1073ee63ae7d16 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | d-stoll/the-stonk-master | ac2552c73f496cc31effb412ba1073ee63ae7d16 | [
"Apache-2.0"
] | 5 | 2021-09-22T08:09:06.000Z | 2022-03-08T18:38:37.000Z | import shutil
import tempfile
import discord.ext.test as dpytest
import pytest
from discord import Intents
from stonkmaster.core.bot import create_bot
from stonkmaster.core.config import get_config
from stonkmaster.core.setup import create_data_dir, delete_data_dir
@pytest.fixture
def config():
conf = get_confi... | 22.606061 | 76 | 0.756032 | 101 | 746 | 5.425743 | 0.356436 | 0.051095 | 0.104015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148794 | 746 | 33 | 77 | 22.606061 | 0.862992 | 0 | 0 | 0.12 | 0 | 0 | 0.053548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.32 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2dca69c8cb8ce9a48d5c2393d6324799b219a58d | 788 | py | Python | tests/test_formatters.py | dkauf42/gdess | 7945f4e7ea1c4a2e233c1ba8dd538743b6fb18b9 | [
"BSD-3-Clause"
] | 2 | 2021-09-17T14:16:42.000Z | 2021-12-18T00:02:38.000Z | tests/test_formatters.py | dkauf42/gdess | 7945f4e7ea1c4a2e233c1ba8dd538743b6fb18b9 | [
"BSD-3-Clause"
] | 1 | 2021-09-03T10:14:38.000Z | 2021-09-03T10:14:38.000Z | tests/test_formatters.py | dkauf42/gdess | 7945f4e7ea1c4a2e233c1ba8dd538743b6fb18b9 | [
"BSD-3-Clause"
] | 2 | 2021-09-02T21:39:11.000Z | 2021-11-01T02:21:36.000Z | import pytest
from co2_diag.formatters import numstr, my_round, \
tex_escape
def test_number_string_formatting_2decimals():
assert numstr(3.14159, decimalpoints=2) == '3.14'
def test_number_string_formatting_largenumber():
assert numstr(3141592.6534, decimalpoints=3) == '3,141,592.653'
def test_round... | 25.419355 | 70 | 0.717005 | 100 | 788 | 5.33 | 0.51 | 0.078799 | 0.084428 | 0.095685 | 0.363977 | 0.120075 | 0 | 0 | 0 | 0 | 0 | 0.102832 | 0.148477 | 788 | 30 | 71 | 26.266667 | 0.691505 | 0 | 0 | 0 | 0 | 0 | 0.115482 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.352941 | true | 0 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2dd13b1d8d0f0639a6c3dae2848ab1101110a368 | 684 | py | Python | thewarden/config.py | Davdegreat/thewarden | a6ea49ee989a473fef1ba3f6b2668c7c0dcc72bb | [
"MIT"
] | null | null | null | thewarden/config.py | Davdegreat/thewarden | a6ea49ee989a473fef1ba3f6b2668c7c0dcc72bb | [
"MIT"
] | null | null | null | thewarden/config.py | Davdegreat/thewarden | a6ea49ee989a473fef1ba3f6b2668c7c0dcc72bb | [
"MIT"
] | null | null | null | import os
# Config class for Application Factory
class Config:
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "alpha.db")
# You should change this secret key. But make sure it's done before any data
# is included in the database
... | 31.090909 | 80 | 0.72076 | 92 | 684 | 5.163043 | 0.728261 | 0.037895 | 0.050526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027125 | 0.19152 | 684 | 21 | 81 | 32.571429 | 0.831826 | 0.282164 | 0 | 0 | 0 | 0 | 0.189691 | 0.065979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
2ddae7f9dfa98d3dd740faa6c4472ebd6c977b4e | 333 | py | Python | dependencies.py | dpedrosac/MRItremor | 04af7e6024f99ca9392ea40e91650653ede80f9e | [
"MIT"
] | null | null | null | dependencies.py | dpedrosac/MRItremor | 04af7e6024f99ca9392ea40e91650653ede80f9e | [
"MIT"
] | null | null | null | dependencies.py | dpedrosac/MRItremor | 04af7e6024f99ca9392ea40e91650653ede80f9e | [
"MIT"
] | 1 | 2022-01-13T10:29:08.000Z | 2022-01-13T10:29:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import yaml
import getpass
ROOTDIR = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(ROOTDIR, 'config.yaml'), 'r') as f:
CONFIGDATA = yaml.load(f.read(), Loader=yaml.FullLoader)
FILEDIR = CONFIGDATA['folders'][getpass.getuser()]['datpath'... | 25.615385 | 61 | 0.693694 | 47 | 333 | 4.829787 | 0.702128 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.114114 | 333 | 13 | 62 | 25.615385 | 0.766102 | 0.126126 | 0 | 0 | 0 | 0 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2ded22c6c1652c67bd17d345deaccb540316eed8 | 457 | py | Python | lib/upload/mongodb.py | city-mobil/appsec_metrics | 6298e19ebda322f256d37aa9ed575e1715c061c0 | [
"Apache-2.0"
] | 1 | 2021-09-23T15:18:37.000Z | 2021-09-23T15:18:37.000Z | lib/upload/mongodb.py | city-mobil/appsec_metrics | 6298e19ebda322f256d37aa9ed575e1715c061c0 | [
"Apache-2.0"
] | null | null | null | lib/upload/mongodb.py | city-mobil/appsec_metrics | 6298e19ebda322f256d37aa9ed575e1715c061c0 | [
"Apache-2.0"
] | 1 | 2022-01-31T10:42:23.000Z | 2022-01-31T10:42:23.000Z | from pymongo import MongoClient
from config import config
import os
import urllib.parse
def upload_to_mongodb(timeline, db, coolections):
client = MongoClient(os.environ.get('mongodb_connect_string'))
db = client[db]
mongo_timeline_collection = db[coolections]
mongo_timeline_collection.delete_many({})
... | 26.882353 | 66 | 0.765864 | 58 | 457 | 5.655172 | 0.534483 | 0.118902 | 0.210366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142232 | 457 | 17 | 67 | 26.882353 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0.078603 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
93059457fe7e068a528e6613adec3d44e2b874e2 | 952 | py | Python | returns/_generated/pointfree/bind_context.py | kenjihiraoka/returns | 4589973520d7226b18acd7295d1a9a10ff032759 | [
"BSD-2-Clause"
] | null | null | null | returns/_generated/pointfree/bind_context.py | kenjihiraoka/returns | 4589973520d7226b18acd7295d1a9a10ff032759 | [
"BSD-2-Clause"
] | null | null | null | returns/_generated/pointfree/bind_context.py | kenjihiraoka/returns | 4589973520d7226b18acd7295d1a9a10ff032759 | [
"BSD-2-Clause"
] | null | null | null | def _bind_context(function):
"""
Lifts function from ``RequiresContext`` for better composition.
In other words, it modifies the function's
signature from: ``a -> RequiresContext[env, b]`` to:
``Container[env, a, c]`` -> ``Container[env, b, c]``
.. code:: python
>>> from returns.conte... | 34 | 78 | 0.616597 | 97 | 952 | 5.969072 | 0.474227 | 0.094991 | 0.131261 | 0.086356 | 0.172712 | 0.172712 | 0 | 0 | 0 | 0 | 0 | 0.005517 | 0.238445 | 952 | 27 | 79 | 35.259259 | 0.793103 | 0.818277 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9314942b6fcfa9061a676182f34127315beac707 | 1,177 | py | Python | src/jvm/io/fsq/twofishes/scripts/extract-wiki-buildings.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 252 | 2016-01-08T23:12:13.000Z | 2022-01-17T16:31:49.000Z | src/jvm/io/fsq/twofishes/scripts/extract-wiki-buildings.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 67 | 2016-01-13T17:34:12.000Z | 2021-08-04T18:50:24.000Z | src/jvm/io/fsq/twofishes/scripts/extract-wiki-buildings.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 59 | 2016-03-25T20:49:03.000Z | 2021-08-04T05:36:38.000Z | #!/usr/bin/python
import os
import sys
try:
os.mkdir("src/jvm/io/fsq/twofishes/indexer/data/computed/")
except:
pass
alternateNames = open("src/jvm/io/fsq/twofishes/indexer/data/downloaded/alternateNames.txt")
if len(sys.argv) == 2:
print "building buildings for %s" % sys.argv[1]
input = open("src/jvm/io/fsq... | 28.707317 | 92 | 0.713679 | 186 | 1,177 | 4.516129 | 0.322581 | 0.064286 | 0.085714 | 0.117857 | 0.55 | 0.55 | 0.55 | 0.55 | 0.545238 | 0.416667 | 0 | 0.006724 | 0.115548 | 1,177 | 40 | 93 | 29.425 | 0.800192 | 0.013594 | 0 | 0.066667 | 0 | 0.033333 | 0.498706 | 0.43572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9315bb5c89e062bfc1859335e627f97c74a5161c | 78 | py | Python | enums/process.py | gio-shara-code/console_login_system_python | b3b0d406cc185b7a5579c35b3c5dcd4048677112 | [
"MIT"
] | null | null | null | enums/process.py | gio-shara-code/console_login_system_python | b3b0d406cc185b7a5579c35b3c5dcd4048677112 | [
"MIT"
] | null | null | null | enums/process.py | gio-shara-code/console_login_system_python | b3b0d406cc185b7a5579c35b3c5dcd4048677112 | [
"MIT"
] | null | null | null | from enum import Enum
class Process(Enum):
FAILED = 0
SUCCEEDED = 1
| 11.142857 | 21 | 0.653846 | 11 | 78 | 4.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.282051 | 78 | 6 | 22 | 13 | 0.875 | 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 | 0 | 0 | 0 | 2 |
932b81c40ecf5afcf9d4036a65435f0764ea994f | 375 | py | Python | sequence_transfer/normalizer/to_lower.py | Pangeamt/sequence_transfer | 29496db9f0fe7647803ea1e86cc9dc5fdca3e8cd | [
"MIT"
] | 1 | 2020-03-20T09:00:28.000Z | 2020-03-20T09:00:28.000Z | sequence_transfer/normalizer/to_lower.py | Pangeamt/sequence_transfer | 29496db9f0fe7647803ea1e86cc9dc5fdca3e8cd | [
"MIT"
] | 5 | 2020-04-03T09:58:45.000Z | 2022-02-10T01:33:47.000Z | sequence_transfer/normalizer/to_lower.py | Pangeamt/sequence_transfer | 29496db9f0fe7647803ea1e86cc9dc5fdca3e8cd | [
"MIT"
] | null | null | null | from typing import Tuple
from sequence_transfer.sequence_transfer import SequenceTransfer
from sequence_transfer.sequence import Sequence
def to_lower(text: str) -> Tuple[str, SequenceTransfer]:
sequence = Sequence(0, len(text))
transfer = SequenceTransfer(
sequence,
sequence,
[(sequen... | 26.785714 | 64 | 0.717333 | 40 | 375 | 6.625 | 0.375 | 0.241509 | 0.150943 | 0.211321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.2 | 375 | 13 | 65 | 28.846154 | 0.88 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93379832d46b2f346fc9ae13c20ed57754e0cec8 | 350 | py | Python | pywinrt/winsdk/windows/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import winsdk
_ns_module = winsdk._import_ns_module("Windows.UI")
Color = _ns_module.Color
WindowId = _ns_module.WindowId
ColorHelper = _ns_module.ColorHelper
Colors = _ns_module.Colors
UIContentRoot = _ns_module.UIContentRoot
UIC... | 26.923077 | 86 | 0.808571 | 52 | 350 | 5.115385 | 0.557692 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012862 | 0.111429 | 350 | 12 | 87 | 29.166667 | 0.842444 | 0.24 | 0 | 0 | 1 | 0 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93456449dc042f5f46459ee1062a64d1c629d322 | 291 | py | Python | 1768.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 1768.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 1768.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | while True:
try:
n = int(input())
except EOFError: break
lim = int(n // 2)
for i in range(1, n+1, 2):
print(' ' * lim, end='')
lim -= 1
print('*' * i)
print((int(n // 2) * ' ') + '*')
print((int(n // 2) - 1) * ' ' + '***')
print()
| 22.384615 | 42 | 0.378007 | 38 | 291 | 2.894737 | 0.473684 | 0.109091 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044199 | 0.378007 | 291 | 12 | 43 | 24.25 | 0.563536 | 0 | 0 | 0 | 0 | 0 | 0.027491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
9358d88c700528b65d2a10696b582e0d287cc0c8 | 809 | py | Python | test/test_config.py | gems-uff/labsys | b8990d7ef6377b6d34f66c277684af1ef94bd5c3 | [
"MIT"
] | 1 | 2017-05-04T17:32:17.000Z | 2017-05-04T17:32:17.000Z | test/test_config.py | gems-uff/labsys | b8990d7ef6377b6d34f66c277684af1ef94bd5c3 | [
"MIT"
] | 19 | 2017-06-05T22:52:45.000Z | 2018-06-02T18:17:26.000Z | test/test_config.py | gems-uff/labsys | b8990d7ef6377b6d34f66c277684af1ef94bd5c3 | [
"MIT"
] | null | null | null | import unittest
from labsys.app import create_app
class TestConfig(unittest.TestCase):
def test_production_config(self):
app = create_app('production')
self.assertFalse(app.testing)
self.assertFalse(app.config['DEBUG'])
self.assertFalse(app.config['BOOTSTRAP_SERVE_LOCAL'])
def... | 31.115385 | 61 | 0.679852 | 94 | 809 | 5.670213 | 0.244681 | 0.168856 | 0.202627 | 0.142589 | 0.555347 | 0.390244 | 0.390244 | 0.390244 | 0.390244 | 0.390244 | 0 | 0 | 0.200247 | 809 | 25 | 62 | 32.36 | 0.823802 | 0 | 0 | 0.3 | 0 | 0 | 0.121137 | 0.051916 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.35 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9360a06e1b464d8e270b7fbbc0178c67c4ec9ed8 | 348 | py | Python | nautilus/management/__init__.py | AlecAivazis/python | 70e2acef27a2f87355590be1a6ca60ce3ab4d09c | [
"MIT"
] | 9 | 2019-02-17T01:33:43.000Z | 2022-02-03T02:14:12.000Z | nautilus/management/__init__.py | AlecAivazis/python | 70e2acef27a2f87355590be1a6ca60ce3ab4d09c | [
"MIT"
] | 59 | 2016-03-14T15:55:50.000Z | 2016-07-17T15:22:56.000Z | nautilus/management/__init__.py | AlecAivazis/python | 70e2acef27a2f87355590be1a6ca60ce3ab4d09c | [
"MIT"
] | 3 | 2017-08-03T20:18:59.000Z | 2018-07-18T02:03:41.000Z | #! /usr/bin/env python3
# external imports
import click
# local imports
from .scripts import create, publish, ask
@click.group()
def cli():
"""
A collection of functions for managing nautilus clouds.
"""
pass
# add the various sub commands to the manager
cli.add_command(create)
cli.add_command(pu... | 18.315789 | 63 | 0.712644 | 49 | 348 | 5 | 0.693878 | 0.073469 | 0.159184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.189655 | 348 | 18 | 64 | 19.333333 | 0.865248 | 0.439655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
936202bc3eadc7f27dcde6dad9db651e64f28314 | 402 | py | Python | app/forms.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | app/forms.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | app/forms.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | from app import app
from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class SearchForm(FlaskForm):
title = StringField('Book Title')
author = StringField('Author Name')
subject = StringField(app.config['SUBJEC... | 36.545455 | 71 | 0.768657 | 44 | 402 | 6.977273 | 0.568182 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144279 | 402 | 11 | 72 | 36.545455 | 0.892442 | 0 | 0 | 0 | 0 | 0 | 0.116625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
937442f341289a0b3f5105288ae6da766b9d4bda | 956 | py | Python | src/examples/freeswitch/inbound/inbound_stop_spawned.py | mknecht/plivoframework | 29fc41fb3c887d5d9022a941e87bbeb2269112ff | [
"Condor-1.1"
] | 151 | 2015-01-14T13:35:47.000Z | 2022-01-25T02:47:14.000Z | src/examples/freeswitch/inbound/inbound_stop_spawned.py | altanai/plivoframework | d8d182c7af17c3fbe514d7dfd68d0608ce798f47 | [
"Condor-1.1"
] | 14 | 2015-01-02T05:12:04.000Z | 2021-02-03T04:25:39.000Z | src/examples/freeswitch/inbound/inbound_stop_spawned.py | altanai/plivoframework | d8d182c7af17c3fbe514d7dfd68d0608ce798f47 | [
"Condor-1.1"
] | 107 | 2015-01-02T04:15:28.000Z | 2022-02-07T18:14:18.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2011 Plivo Team. See LICENSE for details.
from plivo.core.freeswitch.inboundsocket import InboundEventSocket
from plivo.core.errors import ConnectError
from plivo.utils.logger import StdoutLogger
import gevent
def stop(inbound_event_listener, log):
log.info("stopping now !"... | 29.875 | 95 | 0.67887 | 113 | 956 | 5.548673 | 0.575221 | 0.114833 | 0.191388 | 0.076555 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022427 | 0.207113 | 956 | 31 | 96 | 30.83871 | 0.804749 | 0.080544 | 0 | 0.090909 | 0 | 0 | 0.113014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.181818 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93763a59108a29a27ea786dbbea010c27a6c6fea | 10,909 | py | Python | pysnmp/TPT-HEALTH-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/TPT-HEALTH-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/TPT-HEALTH-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 TPT-HEALTH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TPT-HEALTH-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:18: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 2... | 104.894231 | 1,558 | 0.756806 | 1,275 | 10,909 | 6.461176 | 0.131765 | 0.011168 | 0.099417 | 0.018451 | 0.458242 | 0.434207 | 0.385288 | 0.385288 | 0.252731 | 0.226754 | 0 | 0.091927 | 0.091576 | 10,909 | 103 | 1,559 | 105.912621 | 0.739354 | 0.029517 | 0 | 0.021277 | 0 | 0 | 0.111458 | 0.00416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074468 | 0 | 0.159574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
937af91130e927fd8579b4aa81cb25e5c2d38714 | 5,219 | py | Python | tests/test_auth.py | nilsreichert/core | 048f45a2073f3a5c827f445bdf938c28a756af04 | [
"MIT"
] | null | null | null | tests/test_auth.py | nilsreichert/core | 048f45a2073f3a5c827f445bdf938c28a756af04 | [
"MIT"
] | null | null | null | tests/test_auth.py | nilsreichert/core | 048f45a2073f3a5c827f445bdf938c28a756af04 | [
"MIT"
] | null | null | null | import time
import datetime
from masonite.view import View
from masonite.auth import Auth
from masonite.request import Request
from masonite.testsuite.TestSuite import generate_wsgi
from masonite.auth import MustVerifyEmail
from masonite.app import App
from masonite.auth import Sign
from masonite.helpers.routes import... | 31.065476 | 89 | 0.672543 | 649 | 5,219 | 5.238829 | 0.172573 | 0.054118 | 0.023824 | 0.049412 | 0.545 | 0.52 | 0.454706 | 0.399706 | 0.371765 | 0.334118 | 0 | 0.009519 | 0.214984 | 5,219 | 167 | 90 | 31.251497 | 0.820356 | 0.027017 | 0 | 0.330435 | 1 | 0 | 0.074344 | 0.011832 | 0 | 0 | 0 | 0 | 0.191304 | 1 | 0.173913 | false | 0.052174 | 0.104348 | 0.034783 | 0.434783 | 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 | 0 | 0 | 0 | 2 |
93839bca9c0f18b0c4b5ce580f5addbfa7bcbf38 | 72 | py | Python | mccole/__init__.py | yabellini/mccole | c122db14f2c7231a9c158f8e217eeb6bd2341d49 | [
"MIT"
] | null | null | null | mccole/__init__.py | yabellini/mccole | c122db14f2c7231a9c158f8e217eeb6bd2341d49 | [
"MIT"
] | null | null | null | mccole/__init__.py | yabellini/mccole | c122db14f2c7231a9c158f8e217eeb6bd2341d49 | [
"MIT"
] | null | null | null | """McCole package."""
__version__ = "0.1.0"
__author__ = "Greg Wilson"
| 14.4 | 26 | 0.652778 | 9 | 72 | 4.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.138889 | 72 | 4 | 27 | 18 | 0.580645 | 0.208333 | 0 | 0 | 0 | 0 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa804652493ed2f86b2e706dea6e895bb6d782e7 | 1,417 | py | Python | src/algorithms/tests/test_highest_product_of_3.py | Soumithri/coding_problems | b10820d81677ef0edc9a5f2b310720d8e1df6c76 | [
"MIT"
] | null | null | null | src/algorithms/tests/test_highest_product_of_3.py | Soumithri/coding_problems | b10820d81677ef0edc9a5f2b310720d8e1df6c76 | [
"MIT"
] | 8 | 2020-08-05T02:27:45.000Z | 2021-04-20T20:48:50.000Z | src/algorithms/tests/test_highest_product_of_3.py | Soumithri/coding_problems | b10820d81677ef0edc9a5f2b310720d8e1df6c76 | [
"MIT"
] | null | null | null | import unittest
try:
from coding_problems.src.algorithms.highest_product_of_3 import solution
except ImportError as e:
from coding_problems.src.algorithms.answers.highest_product_of_3 import \
solution
class Test_Highest_Product_Of_3(unittest.TestCase):
def test_short_list(self):
actual =... | 27.784314 | 77 | 0.645025 | 180 | 1,417 | 4.811111 | 0.327778 | 0.064665 | 0.103926 | 0.167436 | 0.516166 | 0.444573 | 0.242494 | 0.099307 | 0 | 0 | 0 | 0.042293 | 0.249118 | 1,417 | 50 | 78 | 28.34 | 0.771617 | 0 | 0 | 0.210526 | 0 | 0 | 0.005646 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa8a73d7046fd816f7d027ca8bf9c699894528a3 | 449 | py | Python | 33.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | 33.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | 33.py | thaisNY/GuanabaraPy | a0a3acbd9242a39491a365b07562037d7a936bba | [
"MIT"
] | null | null | null | n1 = int(input('Digite um número'))
n2 = int(input('Digite um número'))
n3 = int(input('Digite um número'))
if n1 > n2 and n1 > n3 :
print('o maior é {}'.format(n1))
elif n2 > n1 and n2 > n3 :
print('o maior é {}'.format(n2))
else :
print('o maior é {}'.format(n3))
if n1 < n2 and n1 < n3 :
print('o meno... | 26.411765 | 36 | 0.570156 | 80 | 449 | 3.2 | 0.2375 | 0.140625 | 0.125 | 0.1875 | 0.914063 | 0.609375 | 0.382813 | 0.382813 | 0.234375 | 0.234375 | 0 | 0.072464 | 0.231626 | 449 | 16 | 37 | 28.0625 | 0.669565 | 0 | 0 | 0.133333 | 0 | 0 | 0.267857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa9ae0e83bcd1a463b3b4a4373b0387ade97fd83 | 435 | py | Python | script2.py | thatindiandude/Conjugate-Gradient-Descent-Runtime-Testing | 5fc8f4fb0e7b88ee846c91c585774ee14c371f83 | [
"CC0-1.0"
] | 1 | 2020-11-05T15:48:47.000Z | 2020-11-05T15:48:47.000Z | script2.py | thatindiandude/Conjugate-Gradient-Descent-Runtime-Testing | 5fc8f4fb0e7b88ee846c91c585774ee14c371f83 | [
"CC0-1.0"
] | null | null | null | script2.py | thatindiandude/Conjugate-Gradient-Descent-Runtime-Testing | 5fc8f4fb0e7b88ee846c91c585774ee14c371f83 | [
"CC0-1.0"
] | null | null | null | import numpy as np
import sys
import math
import sqlite3
import scipy
from scipy.sparse.linalg.isolve import _iterative
from scipy.sparse.linalg.isolve.utils import make_system
import scipy.sparse.linalg
import random
def cgr(A, b, k, eps):
A = np.matrix(A)
b = np.matrix(b)
n = length(b)
residuals = np.zeroes(k,1... | 19.772727 | 56 | 0.708046 | 81 | 435 | 3.777778 | 0.481481 | 0.107843 | 0.166667 | 0.137255 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022409 | 0.17931 | 435 | 22 | 57 | 19.772727 | 0.834734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
faa785efccc4f5d7a333af38964cedf4327cb80e | 2,133 | py | Python | menu.py | awesomehet2124/EmployeeManager | dd40f8a6da7e4eeaa4eeed90b38a5696d48d413f | [
"MIT"
] | 3 | 2021-07-31T07:06:44.000Z | 2021-08-01T13:52:48.000Z | menu.py | awesomehet2124/EmployeeManager | dd40f8a6da7e4eeaa4eeed90b38a5696d48d413f | [
"MIT"
] | null | null | null | menu.py | awesomehet2124/EmployeeManager | dd40f8a6da7e4eeaa4eeed90b38a5696d48d413f | [
"MIT"
] | null | null | null | import sys
from write import write
from update import edit
from delete import delete
from search import search
from read import read
tasks_description = ["Write", "Read", "Update", "Delete", "Search", "Exit"]
tasks = [1, 2, 3, 4, 5, 6]
def show_menu():
print()
print("----------------------------[Main Menu]--... | 36.775862 | 97 | 0.251289 | 198 | 2,133 | 5.883838 | 0.484848 | 0.030901 | 0.024034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008564 | 0.288326 | 2,133 | 58 | 98 | 36.775862 | 0.336627 | 0 | 0 | 0.117647 | 0 | 0 | 0.634958 | 0.163543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.117647 | 0 | 0.137255 | 0.196078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fabd33a7831da6492d05291ad8bde92f9db9c2f0 | 261 | py | Python | smorgasbord/smorgasbord.py | jackjennings/smorgasbord | 0d4eb8f694afafb594a8c64a96287040e5a78418 | [
"MIT"
] | 1 | 2016-07-25T04:17:22.000Z | 2016-07-25T04:17:22.000Z | smorgasbord/smorgasbord.py | jackjennings/smorgasbord | 0d4eb8f694afafb594a8c64a96287040e5a78418 | [
"MIT"
] | null | null | null | smorgasbord/smorgasbord.py | jackjennings/smorgasbord | 0d4eb8f694afafb594a8c64a96287040e5a78418 | [
"MIT"
] | null | null | null | from unicodeset import UnicodeSet
from .reporter import Reporter
class Smorgasbord(UnicodeSet):
paths = []
def __init__(self, iterable):
super(Smorgasbord, self).__init__(iterable)
self.reports = Reporter(self, self.__class__.paths)
| 21.75 | 59 | 0.716475 | 28 | 261 | 6.25 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191571 | 261 | 11 | 60 | 23.727273 | 0.829384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fac56354f1aa0d9e7a38f68a48bbdec512790074 | 418 | py | Python | tests/util.py | MSallermann/spirit_extras | a5e0046bae8e7eb1baf512e619b4113b9904198d | [
"MIT"
] | null | null | null | tests/util.py | MSallermann/spirit_extras | a5e0046bae8e7eb1baf512e619b4113b9904198d | [
"MIT"
] | null | null | null | tests/util.py | MSallermann/spirit_extras | a5e0046bae8e7eb1baf512e619b4113b9904198d | [
"MIT"
] | null | null | null | from .. spirit_utils import import_spirit
SPIRIT_ROOT_PATH = "~/Coding"
def choose_spirit(x):
return "5840c4564ba5275dc79aa7ae4cd4e79d6cf63b87".startswith(x.revision) and x.openMP and x.pinning # check for solver info revision and openMP and pinning
spirit_info = import_spirit.find_and_insert(SPIRIT_ROOT_PATH, s... | 41.8 | 159 | 0.811005 | 59 | 418 | 5.474576 | 0.525424 | 0.074303 | 0.086687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.102871 | 418 | 10 | 160 | 41.8 | 0.794667 | 0.126794 | 0 | 0 | 0 | 0 | 0.175824 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0.285714 | 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 | 0 | 0 | 0 | 2 |
fad29a161163d2e25013867393d5f868cd00fee6 | 279 | py | Python | src/python/zquantum/qaoa/problems/__init__.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 3 | 2020-10-06T13:54:40.000Z | 2021-07-04T21:02:14.000Z | src/python/zquantum/qaoa/problems/__init__.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 34 | 2020-04-30T02:52:31.000Z | 2022-03-30T19:19:14.000Z | src/python/zquantum/qaoa/problems/__init__.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 5 | 2020-06-24T10:57:01.000Z | 2021-07-09T01:14:16.000Z | from .maxcut import MaxCut
from .graph_partition import GraphPartitioning
from .vertex_cover import VertexCover
from .stable_set import StableSet
from .generators import get_random_hamiltonians_for_problem
from ._problem_evaluation import solve_problem_by_exhaustive_search
| 23.25 | 67 | 0.874552 | 36 | 279 | 6.416667 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103943 | 279 | 11 | 68 | 25.363636 | 0.924 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
faee271761a8efdc806619ae7ddf2d2cd481134d | 1,921 | py | Python | generateemails.py | ThadeuJose/DesafioSTI | ac9d4c019265d30f384b45f0379f412581fa5b43 | [
"MIT"
] | null | null | null | generateemails.py | ThadeuJose/DesafioSTI | ac9d4c019265d30f384b45f0379f412581fa5b43 | [
"MIT"
] | null | null | null | generateemails.py | ThadeuJose/DesafioSTI | ac9d4c019265d30f384b45f0379f412581fa5b43 | [
"MIT"
] | null | null | null | class GenerateEmail:
def __init__(self, name):
self.names = name.lower().split()
local_part_list = []
for generator in self._get_all_generators():
local_part = self._call_generator(generator)
local_part_list.append(local_part)
self._list = list(map(self._c... | 32.016667 | 116 | 0.638209 | 247 | 1,921 | 4.643725 | 0.242915 | 0.086312 | 0.068003 | 0.062772 | 0.218832 | 0.16129 | 0.108108 | 0.061029 | 0 | 0 | 0 | 0.012363 | 0.242061 | 1,921 | 60 | 117 | 32.016667 | 0.775412 | 0 | 0 | 0.125 | 1 | 0 | 0.023769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
faf5511ad300afdb477fee43b647ec7b10507cb7 | 819 | py | Python | 0018/solve.py | Murgio/Project-Euler | c24935a697edfa98c20077bb4206f99a4c19ef52 | [
"MIT"
] | null | null | null | 0018/solve.py | Murgio/Project-Euler | c24935a697edfa98c20077bb4206f99a4c19ef52 | [
"MIT"
] | null | null | null | 0018/solve.py | Murgio/Project-Euler | c24935a697edfa98c20077bb4206f99a4c19ef52 | [
"MIT"
] | null | null | null | nums = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 87 4... | 19.5 | 60 | 0.557998 | 221 | 819 | 2.022624 | 0.457014 | 0.026846 | 0.053691 | 0.060403 | 0.096197 | 0.096197 | 0.071588 | 0.071588 | 0.071588 | 0 | 0 | 0.466667 | 0.322344 | 819 | 41 | 61 | 19.97561 | 0.338739 | 0.039072 | 0 | 0 | 0 | 0 | 0.456743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.090909 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8786417541a7e2cf67c6d56ce2c2d1eb0bf88d05 | 539 | py | Python | Computer & Information Science Core courses/2168/A*/main.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | 1 | 2020-07-28T16:18:38.000Z | 2020-07-28T16:18:38.000Z | Computer & Information Science Core courses/2168/A*/main.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | 4 | 2020-07-15T06:40:55.000Z | 2020-08-13T16:01:30.000Z | Computer & Information Science Core courses/2168/A*/main.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | null | null | null | """
A* implementation entry point.
Claire Durand
03/10/2017
"""
from graph import Graph
g = Graph()
# Add nodes
start = g.add_node('START', 0, 1)
a = g.add_node('A', 1, 1)
b = g.add_node('B', 2, 1)
c = g.add_node('C', 2, 0)
d = g.add_node('D', 3, 1)
f = g.add_node('F', 2, 2)
o = g.add_node('O', 4, 1)
h = g.add_node... | 16.84375 | 33 | 0.608534 | 126 | 539 | 2.468254 | 0.285714 | 0.21865 | 0.231511 | 0.086817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058166 | 0.170686 | 539 | 31 | 34 | 17.387097 | 0.637584 | 0.183673 | 0 | 0 | 0 | 0 | 0.034803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87875064a02887bcafa3bcaf245b16eb40b303d8 | 3,898 | bzl | Python | bazel/build_rules/ros/ros_py_test/ros_py_test.bzl | ct2034/core | 1d03b59a034b38e26519c358a8e72cdfd07e7ce8 | [
"Apache-2.0"
] | null | null | null | bazel/build_rules/ros/ros_py_test/ros_py_test.bzl | ct2034/core | 1d03b59a034b38e26519c358a8e72cdfd07e7ce8 | [
"Apache-2.0"
] | null | null | null | bazel/build_rules/ros/ros_py_test/ros_py_test.bzl | ct2034/core | 1d03b59a034b38e26519c358a8e72cdfd07e7ce8 | [
"Apache-2.0"
] | null | null | null | """Support for Python rostest scripts."""
# _expand_template is used to generate boilerplate files required by rostest.
def _expand_template_impl(ctx):
ctx.actions.expand_template(
template = ctx.file.template,
output = ctx.outputs.out,
substitutions = ctx.attr.substitutions,
)
_expand... | 31.435484 | 90 | 0.617753 | 476 | 3,898 | 4.886555 | 0.30042 | 0.042992 | 0.030095 | 0.021926 | 0.129837 | 0.1135 | 0.1135 | 0.065348 | 0.065348 | 0.065348 | 0 | 0.00143 | 0.282453 | 3,898 | 123 | 91 | 31.691057 | 0.830175 | 0.366085 | 0 | 0.126761 | 1 | 0 | 0.18632 | 0.099454 | 0 | 0 | 0 | 0.01626 | 0 | 1 | 0.028169 | false | 0 | 0 | 0 | 0.028169 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87a33c2865238464a9170098342cc118a3bad8af | 281 | py | Python | ramda/objOf.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | ramda/objOf.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | ramda/objOf.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | from .private._curry2 import _curry2
objOf = _curry2(lambda key, val: {key: val})
"""
Since in JavaScript we can represent key-value as object,
but in Python, we can't.
So we treat objOf only works for dict in Python.
But for the naming convention, we keep the name of objOf.
"""
| 28.1 | 57 | 0.740214 | 49 | 281 | 4.183673 | 0.653061 | 0.058537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.174377 | 281 | 9 | 58 | 31.222222 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
87b6ef0204b9aebf0fa84b3aa4894d718bd78aa3 | 408 | py | Python | demo_scripts/json_setting.py | IoT-Expedition/MLClientForAndroid | de658914ab3940d45bd2c9bc7b05093f8929d4e7 | [
"BSD-3-Clause"
] | null | null | null | demo_scripts/json_setting.py | IoT-Expedition/MLClientForAndroid | de658914ab3940d45bd2c9bc7b05093f8929d4e7 | [
"BSD-3-Clause"
] | null | null | null | demo_scripts/json_setting.py | IoT-Expedition/MLClientForAndroid | de658914ab3940d45bd2c9bc7b05093f8929d4e7 | [
"BSD-3-Clause"
] | null | null | null | import json
class JsonSetting:
def __init__(self, settingFilePath="./giotto_setting.json"):
self.setting = json.loads(open(settingFilePath,'r').read())
def get(self, settingName):
return self.setting[settingName]
if __name__ == "__main__":
settingStringPath = './connector_setting.json'
... | 31.384615 | 67 | 0.693627 | 45 | 408 | 5.977778 | 0.511111 | 0.163569 | 0.111524 | 0.163569 | 0.408922 | 0.408922 | 0.408922 | 0.408922 | 0.408922 | 0.408922 | 0 | 0 | 0.169118 | 408 | 13 | 68 | 31.384615 | 0.79351 | 0 | 0 | 0.2 | 0 | 0 | 0.134474 | 0.110024 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87c0bc6a9268c6a26fa68013fdc7c7a7f314fc7b | 1,030 | py | Python | rltools/strategies/epsilongreedy.py | omtinez/rltools | ce60b906fbe109e96f7866ae98144c9c9988650b | [
"MIT"
] | null | null | null | rltools/strategies/epsilongreedy.py | omtinez/rltools | ce60b906fbe109e96f7866ae98144c9c9988650b | [
"MIT"
] | null | null | null | rltools/strategies/epsilongreedy.py | omtinez/rltools | ce60b906fbe109e96f7866ae98144c9c9988650b | [
"MIT"
] | null | null | null | import random
from rltools.strategies import Strategy
class EpsilonGreedyStrategy(Strategy):
'''
Very simple strategy in which the best action is chosen by a greedy policy with probability of
`(1 - epsilon)` times and a random action is chosen with probability `epsilon` times. Epsilon
is gradually dec... | 34.333333 | 98 | 0.7 | 133 | 1,030 | 5.233083 | 0.481203 | 0.155172 | 0.04023 | 0.057471 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011194 | 0.219417 | 1,030 | 29 | 99 | 35.517241 | 0.854478 | 0.34466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
87c6a48ceaeb1994663adfb4037e2d8d9db06d42 | 531 | py | Python | tests/cookie1_test.py | mkeilman/sirepo | 29ac632f688b019c95d69191a84848f263433dd7 | [
"Apache-2.0"
] | 49 | 2015-07-29T14:11:29.000Z | 2021-12-10T15:24:26.000Z | tests/cookie1_test.py | mkeilman/sirepo | 29ac632f688b019c95d69191a84848f263433dd7 | [
"Apache-2.0"
] | 3,732 | 2015-08-03T22:07:26.000Z | 2022-03-31T22:48:33.000Z | tests/cookie1_test.py | mkeilman/sirepo | 29ac632f688b019c95d69191a84848f263433dd7 | [
"Apache-2.0"
] | 28 | 2015-11-20T16:23:46.000Z | 2021-09-20T07:22:48.000Z | # -*- coding: utf-8 -*-
u"""test missing cookies
:copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
import pytest
def test_srw_missing_cookies(fc):
from pykern.pkunit im... | 27.947368 | 74 | 0.72693 | 72 | 531 | 5.180556 | 0.763889 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015556 | 0.152542 | 531 | 18 | 75 | 29.5 | 0.813333 | 0.320151 | 0 | 0 | 0 | 0 | 0.124294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
87c7c18b9d812dd64098c9a3e05a6952de30de31 | 245 | py | Python | account/functions.py | diegojespana/Dino-s-Pizza | aa3726709ac8b431ff24b3853cce6efbf1929f65 | [
"MIT"
] | null | null | null | account/functions.py | diegojespana/Dino-s-Pizza | aa3726709ac8b431ff24b3853cce6efbf1929f65 | [
"MIT"
] | null | null | null | account/functions.py | diegojespana/Dino-s-Pizza | aa3726709ac8b431ff24b3853cce6efbf1929f65 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login
def LogIn(request, username, password):
user = authenticate(username=username, password=password)
if user is not None:
if user.is_active:
login(request, user) | 35 | 62 | 0.689796 | 30 | 245 | 5.6 | 0.566667 | 0.142857 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 245 | 7 | 63 | 35 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
87cb547e0722848d6584a6298ab31e6f85383729 | 1,199 | py | Python | src/httpmon_kafka_pgsql/core/config.py | JonathanThorpe/httpmon_kafka_pgsql | b11b6fad2918e47c601b1af441029441258df482 | [
"MIT"
] | null | null | null | src/httpmon_kafka_pgsql/core/config.py | JonathanThorpe/httpmon_kafka_pgsql | b11b6fad2918e47c601b1af441029441258df482 | [
"MIT"
] | null | null | null | src/httpmon_kafka_pgsql/core/config.py | JonathanThorpe/httpmon_kafka_pgsql | b11b6fad2918e47c601b1af441029441258df482 | [
"MIT"
] | null | null | null | #Handles basic YAML configuration file including setting defaults
import yaml
class Config:
settings = {}
def setDefaults(self, setting, defaults):
#Apply some reasonable defaults which do not have parameters set
if setting in self.settings:
for config in self.settings[setting].values():
for... | 29.975 | 68 | 0.690575 | 147 | 1,199 | 5.632653 | 0.435374 | 0.115942 | 0.086957 | 0.036232 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216013 | 1,199 | 39 | 69 | 30.74359 | 0.880851 | 0.266889 | 0 | 0.083333 | 0 | 0 | 0.025229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.125 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
87dcc0f08ebbdec65e818c77e2d08163d5aedcc5 | 834 | py | Python | core/etl/models/authprofile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | core/etl/models/authprofile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | core/etl/models/authprofile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# AuthProfileModel
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Python modu... | 22.540541 | 72 | 0.443645 | 68 | 834 | 5.323529 | 0.514706 | 0.18232 | 0.104972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012384 | 0.22542 | 834 | 36 | 73 | 23.166667 | 0.547988 | 0.383693 | 0 | 0 | 0 | 0 | 0.120792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.173913 | 0.086957 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
87e33bb5d4224315f8e4cea7e396ace49c8247ad | 532 | py | Python | django/contrib/gis/db/backends/oracle/base.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | django/contrib/gis/db/backends/oracle/base.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | django/contrib/gis/db/backends/oracle/base.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.db.backends.oracle.base import (
DatabaseWrapper as OracleDatabaseWrapper,
)
from .features import DatabaseFeatures
from .introspection import OracleIntrospection
from .operations import OracleOperations
from .schema import OracleGISSchemaEditor
class DatabaseWrapper(OracleDatabaseWrapper):... | 31.294118 | 47 | 0.796992 | 44 | 532 | 9.477273 | 0.568182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161654 | 532 | 16 | 48 | 33.25 | 0.934978 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
87e7ca17132167d044aa01642dd7f7b3a860331f | 261 | py | Python | kb/vote/admin.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | 7 | 2015-04-17T12:01:29.000Z | 2021-06-21T01:54:15.000Z | kb/vote/admin.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | null | null | null | kb/vote/admin.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | 3 | 2015-04-17T16:21:42.000Z | 2018-06-06T13:34:03.000Z | from __future__ import unicode_literals
from django.contrib import admin
class VoteAdmin(admin.ModelAdmin):
date_hierarchy = 'created'
list_display = ['token', 'rate', 'article']
list_filter = ('rate',)
search_fields = ['article__title']
| 23.727273 | 48 | 0.704981 | 29 | 261 | 5.965517 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180077 | 261 | 10 | 49 | 26.1 | 0.808411 | 0 | 0 | 0 | 0 | 0 | 0.157088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
87e81f4ff1243a40c3b2a7feddf8fde39197e84b | 263 | py | Python | models/007_tuna_fish_can/create_vhacd.py | RKJenamani/pybullet-parallel | 4f6693bba0299a5abf31be07863c97dedbb45cff | [
"MIT"
] | null | null | null | models/007_tuna_fish_can/create_vhacd.py | RKJenamani/pybullet-parallel | 4f6693bba0299a5abf31be07863c97dedbb45cff | [
"MIT"
] | null | null | null | models/007_tuna_fish_can/create_vhacd.py | RKJenamani/pybullet-parallel | 4f6693bba0299a5abf31be07863c97dedbb45cff | [
"MIT"
] | null | null | null | import pybullet as p
import pybullet_data as pd
import os
p.connect(p.DIRECT)
name_in = "/home/rajat/sbpl_ws/src/TMOMO/models/007_tuna_fish_can/textured_simple.obj"
name_out = "textured_simple_vhacd.obj"
name_log = "log.txt"
p.vhacd(name_in, name_out, name_log)
| 26.3 | 86 | 0.798479 | 49 | 263 | 4 | 0.591837 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.091255 | 263 | 9 | 87 | 29.222222 | 0.807531 | 0 | 0 | 0 | 0 | 0 | 0.403042 | 0.376426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
87eb0fc06fd9be4f58f2340183053f6da7f58c49 | 2,248 | py | Python | src/prefect/run_configs/base.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 8,633 | 2019-03-23T17:51:03.000Z | 2022-03-31T22:17:42.000Z | src/prefect/run_configs/base.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 3,903 | 2019-03-23T19:11:21.000Z | 2022-03-31T23:21:23.000Z | src/prefect/run_configs/base.py | ngriffiths13/prefect | 7f5613abcb182494b7dc12159277c3bc5f3c9898 | [
"Apache-2.0"
] | 937 | 2019-03-23T18:49:44.000Z | 2022-03-31T21:45:13.000Z | from typing import Iterable, Set, Any # noqa
import prefect
class RunConfig:
"""
Base class for RunConfigs.
A "run config" is an object for configuring a flow run, which maps to a
specific agent backend.
Args:
- env (dict, optional): Additional environment variables to set
- la... | 31.661972 | 92 | 0.654359 | 283 | 2,248 | 5.14841 | 0.409894 | 0.04324 | 0.035003 | 0.026081 | 0.326699 | 0.284146 | 0.284146 | 0.284146 | 0.284146 | 0.284146 | 0 | 0.001209 | 0.264235 | 2,248 | 70 | 93 | 32.114286 | 0.879686 | 0.653915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
87f566894ffb26a3268b708b78131d50b8aea978 | 389 | py | Python | backend_wrappers/__init__.py | a-spichakou/sova-tts-binding | cd6313b19dba20dc539f1859451763c1029c5e63 | [
"Apache-2.0"
] | 118 | 2020-08-18T18:37:13.000Z | 2022-02-12T16:00:33.000Z | backend_wrappers/__init__.py | a-spichakou/sova-tts-binding | cd6313b19dba20dc539f1859451763c1029c5e63 | [
"Apache-2.0"
] | 10 | 2020-11-19T17:07:05.000Z | 2021-12-16T09:26:51.000Z | backend_wrappers/__init__.py | a-spichakou/sova-tts-binding | cd6313b19dba20dc539f1859451763c1029c5e63 | [
"Apache-2.0"
] | 16 | 2020-11-27T01:45:00.000Z | 2022-01-20T06:57:33.000Z | import os
import sys
backend_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../backend")
import_path = os.path.join(backend_path, "tacotron2")
sys.path.insert(0, import_path)
from .tacotron import Tacotron2Wrapper
sys.path.pop(0)
import_path = os.path.join(backend_path, "waveglow")
sys.path.insert(... | 27.785714 | 85 | 0.77635 | 61 | 389 | 4.770492 | 0.295082 | 0.103093 | 0.103093 | 0.14433 | 0.405498 | 0.405498 | 0.405498 | 0 | 0 | 0 | 0 | 0.016807 | 0.082262 | 389 | 14 | 86 | 27.785714 | 0.798319 | 0 | 0 | 0.363636 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e20a09b293ccb53a7047e7503d15a9463fd53327 | 796 | py | Python | test/test_pipeline.py | tom-010/python-pipeline | 6be08206b96d56b0c206f12384548e52f5075be6 | [
"Apache-2.0"
] | null | null | null | test/test_pipeline.py | tom-010/python-pipeline | 6be08206b96d56b0c206f12384548e52f5075be6 | [
"Apache-2.0"
] | null | null | null | test/test_pipeline.py | tom-010/python-pipeline | 6be08206b96d56b0c206f12384548e52f5075be6 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from pipeline.pipeline import pipeline, inspect
class Plain:
pass
def add_age(item):
item.age = 22
return item
def add_name(name):
def fun(item):
item.name = name
return item
return fun
class AddHeight:
def __init__(self, height):
self.h... | 19.9 | 47 | 0.577889 | 90 | 796 | 4.966667 | 0.322222 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024254 | 0.326633 | 796 | 40 | 48 | 19.9 | 0.809701 | 0.037688 | 0 | 0.107143 | 0 | 0 | 0.007864 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.214286 | false | 0.035714 | 0.071429 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e210a8888bbfc4703e41a66b1651b4dc3971a41a | 130 | py | Python | try_op3.py | ashidagithub/HJDS201909L2 | 6f0c3633d7f48630b8a1c9f91722df06609f9b55 | [
"Apache-2.0"
] | null | null | null | try_op3.py | ashidagithub/HJDS201909L2 | 6f0c3633d7f48630b8a1c9f91722df06609f9b55 | [
"Apache-2.0"
] | null | null | null | try_op3.py | ashidagithub/HJDS201909L2 | 6f0c3633d7f48630b8a1c9f91722df06609f9b55 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
#a = False
a = (1>0) or (-1>0) #False
print(a)
if not a :
print('True')
else:
print('False')
| 10 | 27 | 0.484615 | 22 | 130 | 2.863636 | 0.590909 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.269231 | 130 | 12 | 28 | 10.833333 | 0.610526 | 0.269231 | 0 | 0 | 0 | 0 | 0.098901 | 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 | 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 | 2 |
e213e426002179f91ef580945a6144f1c5ec4520 | 784 | py | Python | src/arrays/325_MaximumSizeSubarraySumEqualsk.py | tmbothe/Data-Structures-and-algorithms | ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2 | [
"MIT"
] | null | null | null | src/arrays/325_MaximumSizeSubarraySumEqualsk.py | tmbothe/Data-Structures-and-algorithms | ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2 | [
"MIT"
] | null | null | null | src/arrays/325_MaximumSizeSubarraySumEqualsk.py | tmbothe/Data-Structures-and-algorithms | ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2 | [
"MIT"
] | null | null | null | def maxSubArrayLen(nums, k):
n = len(nums)
seen = {}
maxlen = -float('inf')
total = 0
for end in range(n):
total += nums[end]
if total == k:
maxlen = end+1
if total-k in seen:
maxlen = max(maxlen, end-seen[total-k])
if total not in seen:
... | 21.777778 | 76 | 0.498724 | 115 | 784 | 3.330435 | 0.330435 | 0.18799 | 0.198433 | 0.18799 | 0.156658 | 0.156658 | 0.156658 | 0 | 0 | 0 | 0 | 0.060665 | 0.348214 | 784 | 35 | 77 | 22.4 | 0.688845 | 0.11352 | 0 | 0.115385 | 0 | 0 | 0.020231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.115385 | 0.115385 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e216fb382c1a044f9ae5cd6bb9b2fd7f55a947d6 | 424 | py | Python | janggoCompany/apply/admin.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | janggoCompany/apply/admin.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | janggoCompany/apply/admin.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Hire, Apply
# Register your models here.
class HireAdmin(admin.ModelAdmin):
list_display = ['id', 'kind', 'start_date', 'end_date']
list_display_links = ['id', 'kind']
class ApplyAdmin(admin.ModelAdmin):
list_display = ['id', 'name', 'hire']
list_dis... | 32.615385 | 59 | 0.712264 | 55 | 424 | 5.345455 | 0.454545 | 0.14966 | 0.129252 | 0.176871 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136792 | 424 | 13 | 60 | 32.615385 | 0.803279 | 0.061321 | 0 | 0 | 0 | 0 | 0.115869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
354c4a4c7ead4d2271b5fdebc15a8f310cbbcb02 | 538 | py | Python | DataStructure/codes/Tree.py | pjok1122/Interview_Question_for_Beginner | eea4aaf3fc300333b671f15f1e85737dfb3d6a40 | [
"MIT"
] | 1 | 2021-11-17T09:09:02.000Z | 2021-11-17T09:09:02.000Z | DataStructure/codes/Tree.py | pjok1122/Interview_Question_for_Beginner | eea4aaf3fc300333b671f15f1e85737dfb3d6a40 | [
"MIT"
] | null | null | null | DataStructure/codes/Tree.py | pjok1122/Interview_Question_for_Beginner | eea4aaf3fc300333b671f15f1e85737dfb3d6a40 | [
"MIT"
] | null | null | null | '''
그래프의 데이터를 저장할 때는 크게 두 가지 방법이 존재한다.
인접행렬과 인접리스트 방식이 존재하는데, 각각의 장단점이 있으니 이를 파악해두자.
먼저 인접행렬의 장단점을 살펴보자.
[인접행렬]
장점 : 구현이 쉽다.
단점 : 엣지의 개수가 적을 때, 불필요한 검색 연산이 들어가며 불필요한 메모리 낭비도 발생한다.
ex)
0 1 0 0
1 0 0 0
0 0 0 1
0 0 1 0
엣지의 개수는 2개밖에 없지만 탐색을 시작하면 16번의 연산이 일어날 수 있다.
또한, 큰 의미가 없는 '0' 이라는 데이터를 잔뜩 저장해야 한다.
이러한 인접행렬은 포화트... | 13.121951 | 54 | 0.600372 | 125 | 538 | 2.584 | 0.656 | 0.043344 | 0.037152 | 0.037152 | 0.049536 | 0.037152 | 0 | 0 | 0 | 0 | 0 | 0.079692 | 0.276952 | 538 | 40 | 55 | 13.45 | 0.750643 | 0.981413 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
355c96f6d4e2ca33635d88cd173c8d7ed6a17a80 | 1,128 | py | Python | inversion/eval/eval_reconstruction_realism.py | yohan-pg/stylegan2-ada-pytorch | e1225b08d55ff5ca38e1646fa430d3c3c3bb3c68 | [
"BSD-Source-Code"
] | null | null | null | inversion/eval/eval_reconstruction_realism.py | yohan-pg/stylegan2-ada-pytorch | e1225b08d55ff5ca38e1646fa430d3c3c3bb3c68 | [
"BSD-Source-Code"
] | null | null | null | inversion/eval/eval_reconstruction_realism.py | yohan-pg/stylegan2-ada-pytorch | e1225b08d55ff5ca38e1646fa430d3c3c3bb3c68 | [
"BSD-Source-Code"
] | null | null | null | from ..prelude import *
from .eval import *
from .fid import *
class EvalReconstructionRealism(Evaluation):
table_stat: str = "FID"
@torch.no_grad()
def produce_images(self, experiment_name: str, dataloader: InvertedDataloader) -> str:
print("Saving Reconstruction images...")
path = f"... | 32.228571 | 90 | 0.674645 | 132 | 1,128 | 5.598485 | 0.462121 | 0.040595 | 0.018945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001127 | 0.213652 | 1,128 | 34 | 91 | 33.176471 | 0.832018 | 0 | 0 | 0 | 0 | 0 | 0.077128 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.086957 | 0.565217 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3577266340b3bede9ad09d802539fd15f038a686 | 155 | py | Python | Script_Python/Exercicios_Secao4/conversao_seg_horas.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | Script_Python/Exercicios_Secao4/conversao_seg_horas.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | Script_Python/Exercicios_Secao4/conversao_seg_horas.py | WillianVieira89/WillianVieira89-Python_Geek_University | 86fc7f35514aafbad9cab8151e789ba0649314ef | [
"Apache-2.0"
] | null | null | null | seg = int(input('digite um valor inteiro: '))
min = seg / 60
hrs = seg / 3600
print(f'{seg} segundos é equivalente a {min:.2f} minutos ou {hrs:.2f} horas') | 38.75 | 77 | 0.664516 | 27 | 155 | 3.814815 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0.167742 | 155 | 4 | 77 | 38.75 | 0.736434 | 0 | 0 | 0 | 0 | 0 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3578c40a3e8a5ee17ced1edd66851d078498ded8 | 264 | py | Python | test/f1.py | PrudhviGNV/AI-models-for-bug-prediction | 35ad3707f25db700c9ddd79aaed59fab81d1a2b5 | [
"MIT"
] | 5 | 2021-04-29T09:44:24.000Z | 2022-03-03T10:48:04.000Z | test/f1.py | PrudhviGNV/AI-models-for-bug-prediction | 35ad3707f25db700c9ddd79aaed59fab81d1a2b5 | [
"MIT"
] | null | null | null | test/f1.py | PrudhviGNV/AI-models-for-bug-prediction | 35ad3707f25db700c9ddd79aaed59fab81d1a2b5 | [
"MIT"
] | 1 | 2021-05-03T18:16:07.000Z | 2021-05-03T18:16:07.000Z | # -*- coding: utf-8 -*-
"""Untitled36.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1MdrNEYLEdkdvrNak3maz1C1n3o5hIz_o
"""
print("Hello prudhvi")
x= "Garapati"
y = " Prudhvi"
print(x+" "+y) | 20.307692 | 77 | 0.719697 | 32 | 264 | 5.90625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.125 | 264 | 13 | 78 | 20.307692 | 0.779221 | 0.712121 | 0 | 0 | 1 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
357a44a663bc30a81ff54cce8164a665509d3633 | 1,074 | py | Python | 0001.py | ayaka14732/LeetCode-Python-OneLiner | 00d30f7ce382652214694b0c6e77a918bb72b79c | [
"CC-BY-4.0"
] | null | null | null | 0001.py | ayaka14732/LeetCode-Python-OneLiner | 00d30f7ce382652214694b0c6e77a918bb72b79c | [
"CC-BY-4.0"
] | null | null | null | 0001.py | ayaka14732/LeetCode-Python-OneLiner | 00d30f7ce382652214694b0c6e77a918bb72b79c | [
"CC-BY-4.0"
] | null | null | null | class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
return (lambda f: lambda *args: collections.deque(itertools.accumulate(chain((((lambda f: (lambda x: x(x))(lambda y: f(lambda *args: lambda: y(y)(*args))))(f))(*args),), itertools.repeat(None)), lambda f, _: (lambda f: f() if calla... | 59.666667 | 502 | 0.532588 | 154 | 1,074 | 3.642857 | 0.272727 | 0.087344 | 0.115865 | 0.049911 | 0.181818 | 0.139037 | 0.139037 | 0 | 0 | 0 | 0 | 0.01178 | 0.288641 | 1,074 | 17 | 503 | 63.176471 | 0.722513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
358196cd148098fe2b57deca05763d7659bcd5f1 | 876 | py | Python | src/game/model/Card.py | avijit90/blackjack-the-game | 7481e95273781ecdd5e82325bed7a19d6fe749ed | [
"Apache-2.0"
] | null | null | null | src/game/model/Card.py | avijit90/blackjack-the-game | 7481e95273781ecdd5e82325bed7a19d6fe749ed | [
"Apache-2.0"
] | null | null | null | src/game/model/Card.py | avijit90/blackjack-the-game | 7481e95273781ecdd5e82325bed7a19d6fe749ed | [
"Apache-2.0"
] | null | null | null | from tkinter import PhotoImage
class Card:
def __init__(self, face_value, face_img_path, back_img_path):
self.face_value = face_value
self.face_img_path = face_img_path
self.face_img = None # PhotoImage(file=face_img)
self.back_img_path = back_img_path
self.back_img = Non... | 32.444444 | 89 | 0.673516 | 130 | 876 | 4.169231 | 0.230769 | 0.129151 | 0.121771 | 0.083026 | 0.180812 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231735 | 876 | 26 | 90 | 33.692308 | 0.805349 | 0.058219 | 0 | 0 | 0 | 0 | 0.155718 | 0.055961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.105263 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3585aab857c582b1a9a32f887617a06748d62293 | 392 | py | Python | scripts/sfm_toolkits/ezxr_sfm/log_file/logstdout.py | TxT1212/colmap | ee87e7c8b9ee7541be62f45121febd431be134a9 | [
"BSD-3-Clause"
] | null | null | null | scripts/sfm_toolkits/ezxr_sfm/log_file/logstdout.py | TxT1212/colmap | ee87e7c8b9ee7541be62f45121febd431be134a9 | [
"BSD-3-Clause"
] | null | null | null | scripts/sfm_toolkits/ezxr_sfm/log_file/logstdout.py | TxT1212/colmap | ee87e7c8b9ee7541be62f45121febd431be134a9 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import sys
class Logstdout(object):
def __init__(self, filename='default.log', stream=sys.stdout):
self.terminal = stream
self.log = open(filename, 'a')
def write(self, message):
self.terminal.write(message)
self.log.write(message)
def flush(self):
pass
# sys.std... | 21.777778 | 79 | 0.665816 | 54 | 392 | 4.740741 | 0.574074 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.204082 | 392 | 17 | 80 | 23.058824 | 0.817308 | 0.229592 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
358965f5c64ee60c6dbd2a4290595c851137bd9e | 5,338 | py | Python | get-status.py | peterpoetzi/go-eCharger-tools | 9240f01cc6ac6ec4f2aedb58934665e35247c944 | [
"MIT"
] | 2 | 2021-01-17T16:42:54.000Z | 2022-03-25T11:10:12.000Z | get-status.py | peterpoetzi/go-eCharger-tools | 9240f01cc6ac6ec4f2aedb58934665e35247c944 | [
"MIT"
] | null | null | null | get-status.py | peterpoetzi/go-eCharger-tools | 9240f01cc6ac6ec4f2aedb58934665e35247c944 | [
"MIT"
] | null | null | null |
"""
Example:
python3 get-status.py
"""
import requests
import sys
import os
import json
import time
from datetime import timedelta, date, datetime
hostname = "go-echarger"
def main(argv):
datestring = datetime.now().strftime("%Y_%m_%d-%H-%M-%S")
url = "http://" + hostname + "/status"
r = requests.get... | 39.25 | 97 | 0.579056 | 656 | 5,338 | 4.692073 | 0.277439 | 0.382066 | 0.088369 | 0.024691 | 0.123132 | 0.084795 | 0.025991 | 0.025991 | 0 | 0 | 0 | 0.026705 | 0.15118 | 5,338 | 135 | 98 | 39.540741 | 0.652615 | 0.016298 | 0 | 0 | 0 | 0 | 0.323917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009524 | false | 0.019048 | 0.057143 | 0 | 0.066667 | 0.8 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3597eb12d45021ca5f66088f6b0221307eeccd79 | 659 | py | Python | overtime/__init__.py | Thepnathi/overtime | cdea6852eed6ac7891ad06bc36a197fcc04ad865 | [
"MIT"
] | null | null | null | overtime/__init__.py | Thepnathi/overtime | cdea6852eed6ac7891ad06bc36a197fcc04ad865 | [
"MIT"
] | null | null | null | overtime/__init__.py | Thepnathi/overtime | cdea6852eed6ac7891ad06bc36a197fcc04ad865 | [
"MIT"
] | null | null | null | """
Overtime
========
Overtime is a Python package for the creation and analysis of temporal networks.
"""
# check installed python version
import sys
if sys.version_info[:2] < (3, 7):
m = "Python 3.7 or later is required for Overtime ({}.{} detected)."
raise ImportError(m.format(sys.version_info... | 19.969697 | 81 | 0.713202 | 84 | 659 | 5.571429 | 0.464286 | 0.149573 | 0.17094 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.192716 | 659 | 32 | 82 | 20.59375 | 0.868421 | 0.210926 | 0 | 0 | 0 | 0 | 0.129707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
35995d80e78fc4126847cc38c398f79b6aa3ece9 | 1,725 | py | Python | setup.py | Andrews2017/kltk | d5f5b9e77ceed9061e5d8ec420bfa485a16f1757 | [
"MIT"
] | null | null | null | setup.py | Andrews2017/kltk | d5f5b9e77ceed9061e5d8ec420bfa485a16f1757 | [
"MIT"
] | null | null | null | setup.py | Andrews2017/kltk | d5f5b9e77ceed9061e5d8ec420bfa485a16f1757 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'kkltk', # package name
packages = ['kkltk'], # same as "name"
version = '1.0', # first version
license='MIT', # This package is licenced under MIT licence
description = 'kkltk is a toolkit designed for Kinyarwanda and Kirundi language... | 47.916667 | 215 | 0.657391 | 177 | 1,725 | 6.389831 | 0.59322 | 0.100796 | 0.132626 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.205797 | 1,725 | 36 | 216 | 47.916667 | 0.810949 | 0.068986 | 0 | 0.055556 | 0 | 0 | 0.698595 | 0.058748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
359a38eff28463b8b9b6fc422ef0642b1c65846b | 4,174 | py | Python | hiyo/vm/hiyo_vm/tree_transformer.py | NekoZ-Meow/PL-Processing-System | beed681b4f0f8513c4267ac258989e8d690ab80b | [
"FTL"
] | null | null | null | hiyo/vm/hiyo_vm/tree_transformer.py | NekoZ-Meow/PL-Processing-System | beed681b4f0f8513c4267ac258989e8d690ab80b | [
"FTL"
] | null | null | null | hiyo/vm/hiyo_vm/tree_transformer.py | NekoZ-Meow/PL-Processing-System | beed681b4f0f8513c4267ac258989e8d690ab80b | [
"FTL"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
意味解析で行う処理群を記述したクラス
'''
from lark import Transformer, v_args
from hiyo.vm.hiyo_vm.id import ID
__author__ = 'Okayama Kodai'
__version__ = '1.0.0'
@v_args(inline=True)
class TreeTransformer(Transformer):
"""
Larkで意味解析を行うためのクラス
"""
def __init__(self... | 22.562162 | 94 | 0.477719 | 442 | 4,174 | 4.368778 | 0.221719 | 0.082859 | 0.058001 | 0.087002 | 0.285862 | 0.258415 | 0.258415 | 0.160539 | 0.128431 | 0.096323 | 0 | 0.012763 | 0.361763 | 4,174 | 184 | 95 | 22.684783 | 0.712087 | 0.205319 | 0 | 0.263889 | 0 | 0 | 0.03016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.027778 | 0 | 0.527778 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35a1317391d2aa6ba5e7cb9d1dab21f718c2dbe7 | 6,903 | py | Python | masakari-controller/utils/notification_status_manage.py | ntt-sic/masakari | ef87550847dbd327cf7efe5768974b37601adef9 | [
"Apache-2.0"
] | 54 | 2015-08-19T01:58:56.000Z | 2020-08-31T09:04:15.000Z | masakari-controller/utils/notification_status_manage.py | ntt-sic/masakari | ef87550847dbd327cf7efe5768974b37601adef9 | [
"Apache-2.0"
] | 43 | 2015-12-10T05:00:38.000Z | 2020-01-30T14:38:37.000Z | masakari-controller/utils/notification_status_manage.py | ntt-sic/masakari | ef87550847dbd327cf7efe5768974b37601adef9 | [
"Apache-2.0"
] | 39 | 2015-10-01T07:12:13.000Z | 2019-10-15T11:39:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2015 Nippon Telegraph and Telephone Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lic... | 30.816964 | 110 | 0.423294 | 537 | 6,903 | 5.214153 | 0.340782 | 0.083571 | 0.068571 | 0.04 | 0.147143 | 0.108571 | 0.097857 | 0.097857 | 0.097857 | 0.073571 | 0 | 0.003819 | 0.355063 | 6,903 | 223 | 111 | 30.955157 | 0.625112 | 0.1495 | 0 | 0.241071 | 0 | 0 | 0.192423 | 0.044735 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.080357 | 0.026786 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
35ac5e6e1d60a8e36c45c02c1433ced9d6fd1acc | 1,034 | py | Python | server/utils.py | FranciscoShi/jenkins-gitlab-integrator | 9e9b101df2c67ff73f204828fdf702fc1e2a382d | [
"Apache-2.0"
] | 2 | 2017-07-19T10:39:31.000Z | 2018-03-21T10:24:42.000Z | server/utils.py | FranciscoShi/jenkins-gitlab-integrator | 9e9b101df2c67ff73f204828fdf702fc1e2a382d | [
"Apache-2.0"
] | 1 | 2017-08-11T20:29:43.000Z | 2017-08-14T15:06:14.000Z | server/utils.py | FranciscoShi/jenkins-gitlab-integrator | 9e9b101df2c67ff73f204828fdf702fc1e2a382d | [
"Apache-2.0"
] | 1 | 2021-08-08T00:07:12.000Z | 2021-08-08T00:07:12.000Z | import trafaret as T
"""
trafaret for server config
"""
TRAFARET = T.Dict({
T.Key('session_secret'): T.String(),
T.Key('users'): T.Any(),
T.Key('mysql'):
T.Dict({
'db': T.String(),
'host': T.String(),
'user': T.String(),
'password': T.String(allow_bla... | 25.219512 | 51 | 0.4294 | 121 | 1,034 | 3.578512 | 0.355372 | 0.210162 | 0.12933 | 0.177829 | 0.110855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.34913 | 1,034 | 40 | 52 | 25.85 | 0.643388 | 0 | 0 | 0.222222 | 0 | 0 | 0.188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35acd5fb86932509387e88edf25f19c77e51bbf9 | 784 | py | Python | aiarena21/server/item.py | monash-programming-team/AIArena21 | 9c75dd0cf216efd622c921138db30ce54b369ba4 | [
"MIT"
] | null | null | null | aiarena21/server/item.py | monash-programming-team/AIArena21 | 9c75dd0cf216efd622c921138db30ce54b369ba4 | [
"MIT"
] | null | null | null | aiarena21/server/item.py | monash-programming-team/AIArena21 | 9c75dd0cf216efd622c921138db30ce54b369ba4 | [
"MIT"
] | null | null | null | class Item:
# Lower mult = Less clumped and less spawns.
NOISE_MULT = 0.5
# Bigger diff = less spawns.
SPAWN_DIFF = 0.01
def __init__(self, name, points):
self.name = name
self.short_name = self.name[0]
self.points = points
# TODO: Tinker with NOISE_MULT and SPAWN_DIFF fo... | 20.102564 | 91 | 0.627551 | 114 | 784 | 3.973684 | 0.429825 | 0.099338 | 0.0883 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.265306 | 784 | 38 | 92 | 20.631579 | 0.734375 | 0.202806 | 0 | 0.136364 | 0 | 0 | 0.041935 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35bee8ef9bec4969f8a2c2a56eb1bf5f575f103b | 1,108 | py | Python | blackjack/cmake/target/LibTarget_Interface.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | 1 | 2017-05-26T00:18:26.000Z | 2017-05-26T00:18:26.000Z | blackjack/cmake/target/LibTarget_Interface.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | blackjack/cmake/target/LibTarget_Interface.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | import blackjack.cmake.cmd as cmd
from .BaseTarget import BaseTarget
class LibTarget_Interface(BaseTarget):
"""
Represents a CMake Interface Library target
An Interface library target does not directly create build output
though it may have properties set on it and it may be installed, exported and i... | 30.777778 | 90 | 0.613718 | 122 | 1,108 | 5.467213 | 0.45082 | 0.058471 | 0.065967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285199 | 1,108 | 35 | 91 | 31.657143 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.069142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.380952 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
35c44fe2c7117235d7c43ceded28a92365ba6df6 | 255 | py | Python | src/dataclay/util/management/metadataservice/DataClayInstance.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | null | null | null | src/dataclay/util/management/metadataservice/DataClayInstance.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | null | null | null | src/dataclay/util/management/metadataservice/DataClayInstance.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | null | null | null |
""" Class description goes here. """
from dataclay.util.MgrObject import ManagementObject
class DataClayInstance(ManagementObject):
_fields = ["dcID",
"hosts",
"ports",
]
_internal_fields = []
| 18.214286 | 52 | 0.568627 | 19 | 255 | 7.473684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32549 | 255 | 13 | 53 | 19.615385 | 0.825581 | 0.109804 | 0 | 0 | 0 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35c5f8338956a994b317d41b7928dd853a50842a | 591 | py | Python | src/single_peaked_bandits/helpers.py | david-lindner/single-peaked-bandits | 8e1dd52e437474e68fdd3348f41599ba629b73ff | [
"Apache-2.0"
] | null | null | null | src/single_peaked_bandits/helpers.py | david-lindner/single-peaked-bandits | 8e1dd52e437474e68fdd3348f41599ba629b73ff | [
"Apache-2.0"
] | null | null | null | src/single_peaked_bandits/helpers.py | david-lindner/single-peaked-bandits | 8e1dd52e437474e68fdd3348f41599ba629b73ff | [
"Apache-2.0"
] | null | null | null | cumulative_reward_cache = {}
def cumulative_reward(reward_function, t, cache=True):
if cache and (reward_function, t) in cumulative_reward_cache:
return cumulative_reward_cache[(reward_function, t)]
else:
res = 0
for i in range(1, t + 1):
res += reward_function(i)
if... | 31.105263 | 65 | 0.64467 | 81 | 591 | 4.481481 | 0.296296 | 0.264463 | 0.231405 | 0.14876 | 0.198347 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0.009153 | 0.260575 | 591 | 18 | 66 | 32.833333 | 0.82151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35cc2e126ac1cd32efdb69bca14c2af55984e6b9 | 3,514 | py | Python | tests/test_Row.py | gnbond/Nono | fa7946a6474e655a728bbcc9862db28c0df52eb6 | [
"Unlicense"
] | null | null | null | tests/test_Row.py | gnbond/Nono | fa7946a6474e655a728bbcc9862db28c0df52eb6 | [
"Unlicense"
] | null | null | null | tests/test_Row.py | gnbond/Nono | fa7946a6474e655a728bbcc9862db28c0df52eb6 | [
"Unlicense"
] | null | null | null |
import unittest
from nonogram import Row, Cell, Infeasible
class TestRow(unittest.TestCase):
def test_create(self):
row = Row(1)
self.assertTrue(row)
self.assertEqual(row.length, 10)
self.assertEqual(len(row), 10)
self.assertEqual(row.possible, [])
self.assertEqual(... | 32.841121 | 88 | 0.605293 | 446 | 3,514 | 4.663677 | 0.201794 | 0.201923 | 0.08125 | 0.098077 | 0.449519 | 0.378846 | 0.271154 | 0.0875 | 0.0875 | 0 | 0 | 0.022778 | 0.237906 | 3,514 | 106 | 89 | 33.150943 | 0.753921 | 0.001992 | 0 | 0.16092 | 0 | 0 | 0.041952 | 0 | 0 | 0 | 0 | 0 | 0.494253 | 1 | 0.183908 | false | 0 | 0.022989 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35d8a2efff522c8d474c3f341fd7b8cecf5f29fe | 640 | py | Python | cy_data_access/util/convert.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | cy_data_access/util/convert.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | cy_data_access/util/convert.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | import json
import pytz
import pandas as pd
from cy_components.helpers.formatter import *
def convert_df_to_json_list(df: pd.DataFrame, primary_column_name=None):
"""DF -> JSON"""
if primary_column_name is not None:
df.rename({primary_column_name: '_id'}, axis=1, inplace=True)
json_list = json.loa... | 35.555556 | 167 | 0.759375 | 104 | 640 | 4.346154 | 0.432692 | 0.106195 | 0.150442 | 0.053097 | 0.340708 | 0.340708 | 0.340708 | 0 | 0 | 0 | 0 | 0.001805 | 0.134375 | 640 | 17 | 168 | 37.647059 | 0.814079 | 0.015625 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
35e5387a70780a1b0857e94430972218fecba4dd | 850 | py | Python | pipeline/models/endpoint_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 352 | 2020-01-22T13:36:11.000Z | 2022-03-22T19:37:24.000Z | pipeline/models/endpoint_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 72 | 2020-01-24T04:53:52.000Z | 2021-07-14T19:23:29.000Z | pipeline/models/endpoint_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 86 | 2020-01-23T09:20:51.000Z | 2022-03-03T08:04:37.000Z | from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, ForeignKey, String
from .base_model import Base
from .header_model import header_association_table
class Endpoint(Base):
""" Database model that describes a URL/endpoint.
Represents gobuster data.
Relationships:
``t... | 31.481481 | 100 | 0.727059 | 98 | 850 | 6.132653 | 0.44898 | 0.086522 | 0.076539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 850 | 26 | 101 | 32.692308 | 0.846479 | 0.285882 | 0 | 0 | 0 | 0 | 0.081174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea0482628b9318e5ff5cf487d47923274e8708f7 | 343 | py | Python | Aula12/ex03.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | 1 | 2020-11-28T14:48:03.000Z | 2020-11-28T14:48:03.000Z | Aula12/ex03.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | null | null | null | Aula12/ex03.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | null | null | null | num1 = float(input('Digite o primeiro número: '))
num2 = float(input('Digite o segundo número: '))
if num1 > num2:
print(f'O primeiro número {num1} é maior que o segundo numero {num2}!')
elif num2 > num1:
print(f'O segundo número {num2} é maior que o primeiro numero {num1}!')
else:
print(f'Os número {num1}... | 38.111111 | 75 | 0.673469 | 56 | 343 | 4.125 | 0.392857 | 0.116883 | 0.138528 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.186589 | 343 | 9 | 76 | 38.111111 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.610465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea05fb366bd2b7b39a365b1a8e4753d8e52f71cb | 230 | py | Python | duplicates.py | AlexeyMavrin/duplicates | 858c46d6bca5d86d02a8e68129cfc01549ad03cb | [
"MIT"
] | 2 | 2019-08-12T20:23:43.000Z | 2022-03-07T17:29:15.000Z | duplicates.py | AlexeyMavrin/duplicates | 858c46d6bca5d86d02a8e68129cfc01549ad03cb | [
"MIT"
] | null | null | null | duplicates.py | AlexeyMavrin/duplicates | 858c46d6bca5d86d02a8e68129cfc01549ad03cb | [
"MIT"
] | null | null | null | """
Created on March 19, 2020
@author: "Alexey Mavrin"
@email alexeymavrin@gmail.com
That file is just a proxy for the duplicates package.
"""
from duplicates import duplicates
if __name__ == '__main__':
duplicates.main()
| 16.428571 | 53 | 0.730435 | 31 | 230 | 5.16129 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.169565 | 230 | 13 | 54 | 17.692308 | 0.806283 | 0.591304 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea0d78a693bfb4042fbb132a7ec032fa5085168e | 211 | py | Python | main.py | unifyingcloud/pyRyanair | 1203cff2304fd285fea1d67e8264994ae9b5b4f2 | [
"MIT"
] | 1 | 2018-01-20T14:47:37.000Z | 2018-01-20T14:47:37.000Z | main.py | unifyingcloud/pyRyanair | 1203cff2304fd285fea1d67e8264994ae9b5b4f2 | [
"MIT"
] | null | null | null | main.py | unifyingcloud/pyRyanair | 1203cff2304fd285fea1d67e8264994ae9b5b4f2 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, Ryanair!'
@app.route('/mario')
def hello_mario():
return 'Soy Mario'
if __name__ == '__main__':
app.run()
| 15.071429 | 26 | 0.668246 | 29 | 211 | 4.37931 | 0.551724 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156398 | 211 | 13 | 27 | 16.230769 | 0.713483 | 0 | 0 | 0 | 0 | 0 | 0.184834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
ea1bd2394728615a5f065b5187524958c8451a46 | 209 | py | Python | source/python/Copyright.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | source/python/Copyright.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | source/python/Copyright.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | '''
main.py
Created by Jo Hyuk Jun on 2020
Copyright © 2020 Jo Hyuk Jun. All rights reserved.
'''
import sys
a, i = map(int, sys.stdin.readline().rstrip().split(' '))
print((a * i) - a + 1) | 13.0625 | 57 | 0.583732 | 34 | 209 | 3.617647 | 0.764706 | 0.097561 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.253589 | 209 | 16 | 58 | 13.0625 | 0.724359 | 0.430622 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea4c3373c9b6ee29eeb13db105b8d3202c28711a | 5,806 | py | Python | src/ui/dialogs/character.py | vincent-lg/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 3 | 2016-10-13T01:39:20.000Z | 2017-08-01T15:58:12.000Z | src/ui/dialogs/character.py | vincent-lg/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 11 | 2018-11-27T16:13:11.000Z | 2019-12-29T11:34:54.000Z | src/ui/dialogs/character.py | vlegoff/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 2 | 2017-08-02T19:36:57.000Z | 2017-10-21T04:13:34.000Z | # Copyright (c) 2016-2020, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions a... | 38.450331 | 100 | 0.650362 | 730 | 5,806 | 5.080822 | 0.29589 | 0.024265 | 0.016177 | 0.025613 | 0.173092 | 0.126449 | 0.100297 | 0.100297 | 0.067943 | 0.067943 | 0 | 0.002109 | 0.265071 | 5,806 | 150 | 101 | 38.706667 | 0.866885 | 0.300723 | 0 | 0.044944 | 0 | 0 | 0.049909 | 0.03879 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.123596 | 0.022472 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ea4eeb9e1ce4a1892d206e46c691f2eb2b22eeae | 2,774 | py | Python | RegexExample.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | RegexExample.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | RegexExample.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | #! python3
# Regex Example: Phone and Email Scraper
#PDF: http://cdm266101.cdmhost.com/cdm/ref/collection/p266101coll7/id/25785
#Directory of Arkansas higher education personnel, 2015
print("First, we'll start by scraping the PDF \"Directory of Arkansas higher education personnel, 2015\"")
import re, pypercl... | 39.070423 | 107 | 0.490267 | 289 | 2,774 | 4.695502 | 0.394464 | 0.029477 | 0.030951 | 0.023581 | 0.414149 | 0.414149 | 0.414149 | 0.344878 | 0.344878 | 0.344878 | 0 | 0.07525 | 0.386806 | 2,774 | 70 | 108 | 39.628571 | 0.722516 | 0.136265 | 0 | 0.418605 | 0 | 0.093023 | 0.730255 | 0.012516 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea53f2e21453e17a79e1614d361bda294bcf24c4 | 10,408 | py | Python | note_jupyter/_build/jupyter_execute/baks/chapter01.02-Python-as-A-Calculator.py | zmy20062010/numerical_analysis | cbdb39b2ec4339681a6c9454c6cbb4ff3931c914 | [
"MIT"
] | null | null | null | note_jupyter/_build/jupyter_execute/baks/chapter01.02-Python-as-A-Calculator.py | zmy20062010/numerical_analysis | cbdb39b2ec4339681a6c9454c6cbb4ff3931c914 | [
"MIT"
] | null | null | null | note_jupyter/_build/jupyter_execute/baks/chapter01.02-Python-as-A-Calculator.py | zmy20062010/numerical_analysis | cbdb39b2ec4339681a6c9454c6cbb4ff3931c914 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# <h1>Table of Contents<span class="tocSkip"></span></h1>
# <div class="toc"><ul class="toc-item"><li><span><a href="#Basic-Data-Types" data-toc-modified-id="Basic-Data-Types-1"><span class="toc-item-num">1 </span>Basic Data Types</a></span></li></ul></div>
# <!--BOOK_... | 47.743119 | 618 | 0.696676 | 1,679 | 10,408 | 4.309113 | 0.285289 | 0.019903 | 0.014927 | 0.016033 | 0.098687 | 0.098687 | 0.090394 | 0.090394 | 0.079613 | 0.079613 | 0 | 0.043116 | 0.168812 | 10,408 | 217 | 619 | 47.963134 | 0.793203 | 0.961088 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea5f4bad004d236e5818c7b3efc780d13839c9fe | 1,552 | py | Python | okcupyd/__init__.py | sphericalcow/okcupyd | ae0a99d248c515eea9a6d21a9c89f51e299b33f5 | [
"MIT"
] | null | null | null | okcupyd/__init__.py | sphericalcow/okcupyd | ae0a99d248c515eea9a6d21a9c89f51e299b33f5 | [
"MIT"
] | null | null | null | okcupyd/__init__.py | sphericalcow/okcupyd | ae0a99d248c515eea9a6d21a9c89f51e299b33f5 | [
"MIT"
] | null | null | null | import argparse
import pkg_resources
import sys
import IPython
from . import tasks
from . import util
from .attractiveness_finder import AttractivenessFinder
from .photo import PhotoUploader
from .session import Session
from .statistics import Statistics
from .user import User
from .util import save_file
__version_... | 31.04 | 89 | 0.693299 | 186 | 1,552 | 5.569892 | 0.483871 | 0.02027 | 0.032819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200387 | 1,552 | 49 | 90 | 31.673469 | 0.834811 | 0.317655 | 0 | 0 | 0 | 0 | 0.143403 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.033333 | false | 0 | 0.4 | 0 | 0.466667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea6b928f28b9a62152127d9b53acc86d142e3cda | 152 | py | Python | apps/myapp/common.py | chenhuxy/myweb | eb9373434d1ca069fd37ae6688d140d99a319294 | [
"Apache-2.0"
] | 7 | 2021-04-13T02:57:11.000Z | 2022-02-07T09:08:18.000Z | apps/myapp/common.py | chenhuxy/myweb | eb9373434d1ca069fd37ae6688d140d99a319294 | [
"Apache-2.0"
] | 1 | 2021-06-27T15:06:15.000Z | 2021-06-28T08:33:53.000Z | apps/myapp/common.py | chenhuxy/myweb | eb9373434d1ca069fd37ae6688d140d99a319294 | [
"Apache-2.0"
] | 1 | 2021-04-16T06:47:15.000Z | 2021-04-16T06:47:15.000Z | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
def try_int(arg,default):
try:
arg = int(arg)
except:
arg = default
return arg | 16.888889 | 25 | 0.565789 | 21 | 152 | 3.857143 | 0.666667 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.302632 | 152 | 9 | 26 | 16.888889 | 0.754717 | 0.269737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
ea6c69fe364668b75ba0eccc7c4988fc0d2c5c50 | 3,659 | py | Python | test/acceptance/test_argument.py | DiegoPomares/sargeparseN | 32424cd1a87c8efba4a2e2c08540478bec9f63a2 | [
"Apache-2.0"
] | 1 | 2018-09-05T12:51:16.000Z | 2018-09-05T12:51:16.000Z | test/acceptance/test_argument.py | DiegoPomares/sargeparseN | 32424cd1a87c8efba4a2e2c08540478bec9f63a2 | [
"Apache-2.0"
] | 23 | 2018-05-30T10:39:38.000Z | 2018-07-11T12:50:39.000Z | test/acceptance/test_argument.py | DiegoPomares/sargeparseN | 32424cd1a87c8efba4a2e2c08540478bec9f63a2 | [
"Apache-2.0"
] | 1 | 2018-07-10T16:42:26.000Z | 2018-07-10T16:42:26.000Z | # pylint: disable=redefined-outer-name
import sys
import shlex
from collections import ChainMap
import sargeparse
def test_int_type_no_nargs():
definition = {
'arguments': [
{
'names': ['--arg'],
'type': int,
}
],
}
parser = sargep... | 17.018605 | 46 | 0.367313 | 269 | 3,659 | 4.918216 | 0.182156 | 0.034014 | 0.072562 | 0.102797 | 0.779289 | 0.730915 | 0.672714 | 0.640212 | 0.624339 | 0.600907 | 0 | 0.031887 | 0.47718 | 3,659 | 214 | 47 | 17.098131 | 0.659697 | 0.009839 | 0 | 0.568182 | 0 | 0 | 0.077603 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.034091 | false | 0 | 0.022727 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea6e69f7e2b3e7a3a47599f81afb6fa5c354d623 | 562 | py | Python | libs/revolutionTracker.py | ersincebi/enigmaEncoder | a6bf60e5cee189c53953bfd4fcba25676b03941f | [
"MIT"
] | null | null | null | libs/revolutionTracker.py | ersincebi/enigmaEncoder | a6bf60e5cee189c53953bfd4fcba25676b03941f | [
"MIT"
] | null | null | null | libs/revolutionTracker.py | ersincebi/enigmaEncoder | a6bf60e5cee189c53953bfd4fcba25676b03941f | [
"MIT"
] | null | null | null | from libs.credentials import RINGSETTING, RINGPOSITION
class revolutionTracker:
def __init__(self):
super().__init__()
self.max_state = RINGPOSITION
self.ringSetting = RINGSETTING
self.state = 1
def increase(self):
if self.state == len(self.ringSetting):
return 0
if self.ringSetting[self.... | 25.545455 | 69 | 0.679715 | 74 | 562 | 5.027027 | 0.297297 | 0.193548 | 0.188172 | 0.225806 | 0.239247 | 0.239247 | 0.16129 | 0.16129 | 0 | 0 | 0 | 0.02439 | 0.197509 | 562 | 22 | 70 | 25.545455 | 0.800443 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea76a7396b442b02eeef1f2daafa08f7874fc0d4 | 2,145 | py | Python | api/invoxia_view.py | mohnbroetchen2/cykel_jenarad | 6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4 | [
"MIT"
] | null | null | null | api/invoxia_view.py | mohnbroetchen2/cykel_jenarad | 6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4 | [
"MIT"
] | null | null | null | api/invoxia_view.py | mohnbroetchen2/cykel_jenarad | 6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4 | [
"MIT"
] | null | null | null | from .invoxia_serializer import InvoxiaLocationTrackerUpdateSerializer
from django.conf import settings
from allauth.socialaccount.models import SocialApp
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
from django.contrib.sites.shortcuts... | 36.982759 | 85 | 0.784149 | 254 | 2,145 | 6.488189 | 0.448819 | 0.06068 | 0.061893 | 0.024272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.131935 | 2,145 | 58 | 86 | 36.982759 | 0.874866 | 0.124942 | 0 | 0 | 0 | 0 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.488889 | 0 | 0.577778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eaa237c7c5758c0ed7a5c4ef3ddbe495e9f270fb | 671 | py | Python | src/main/resources/assets/openpython/opos/v1.1/lib/micropython/traceback.py | fossabot/OpenPython | 8fe3f794f2a6c543d96c1ef5c097ffa18f90b680 | [
"PSF-2.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 41 | 2018-10-25T06:15:31.000Z | 2022-02-20T11:20:43.000Z | src/main/resources/assets/openpython/opos/v1.1/lib/micropython/traceback.py | fossabot/OpenPython | 8fe3f794f2a6c543d96c1ef5c097ffa18f90b680 | [
"PSF-2.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 16 | 2018-03-20T12:25:27.000Z | 2018-03-25T13:34:44.000Z | src/main/resources/assets/openpython/opos/v1.1/lib/micropython/traceback.py | fossabot/OpenPython | 8fe3f794f2a6c543d96c1ef5c097ffa18f90b680 | [
"PSF-2.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 11 | 2020-01-02T03:59:05.000Z | 2022-03-26T05:06:54.000Z | import sys
def format_tb(tb, limit):
return ["traceback.format_tb() not implemented\n"]
def format_exception_only(type, value):
return [repr(value) + "\n"]
def format_exception(etype, value, tb, limit=None, chain=True):
return format_exception_only(etype, value)
def print_exception(t, e, tb, limit=None,... | 30.5 | 79 | 0.71237 | 102 | 671 | 4.539216 | 0.294118 | 0.077754 | 0.112311 | 0.082073 | 0.341253 | 0.237581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146051 | 671 | 21 | 80 | 31.952381 | 0.808028 | 0 | 0 | 0 | 0 | 0 | 0.061103 | 0.031297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.266667 | 0.733333 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
57679376d6da8967313cc6dfb35f6ad9578cd2b2 | 277 | py | Python | 3.5/test/pipenv-test-app/setup.py | vsbca/s2i-python-container | 5859800a0f708cf80e3bde6657215532a59736f1 | [
"Apache-2.0"
] | null | null | null | 3.5/test/pipenv-test-app/setup.py | vsbca/s2i-python-container | 5859800a0f708cf80e3bde6657215532a59736f1 | [
"Apache-2.0"
] | null | null | null | 3.5/test/pipenv-test-app/setup.py | vsbca/s2i-python-container | 5859800a0f708cf80e3bde6657215532a59736f1 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup (
name = "testapp",
version = "0.1",
description = "Example application to be deployed.",
packages = find_packages(),
install_requires = ["pymisp","pandas","requests"],
)
| 25.181818 | 61 | 0.581227 | 26 | 277 | 6.076923 | 0.846154 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.299639 | 277 | 10 | 62 | 27.7 | 0.804124 | 0 | 0 | 0 | 0 | 0 | 0.234657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5770211128579aba41f704c750f085bb25c93600 | 2,166 | py | Python | nvflare/apis/client_engine_spec.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | nvflare/apis/client_engine_spec.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | nvflare/apis/client_engine_spec.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 28.88 | 85 | 0.689289 | 283 | 2,166 | 5.180212 | 0.452297 | 0.081173 | 0.085948 | 0.065484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007308 | 0.241921 | 2,166 | 74 | 86 | 29.27027 | 0.885505 | 0.424284 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.222222 | 0.166667 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5780d78b402c53fda376d92b41eba4ee599b41dd | 1,910 | py | Python | spider/utils/__init__.py | cnwarden/mico2 | 017c52ef4626649d162904f247f21eec768fafc3 | [
"MIT"
] | null | null | null | spider/utils/__init__.py | cnwarden/mico2 | 017c52ef4626649d162904f247f21eec768fafc3 | [
"MIT"
] | null | null | null | spider/utils/__init__.py | cnwarden/mico2 | 017c52ef4626649d162904f247f21eec768fafc3 | [
"MIT"
] | null | null | null | # coding:utf-8
import random
import gzip
import StringIO
"""
using gzip to enable stream smaller
"""
USER_AGENTS = [
'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1',
'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0',
'Mozil... | 40.638298 | 143 | 0.621466 | 324 | 1,910 | 3.614198 | 0.314815 | 0.022203 | 0.076857 | 0.095645 | 0.39795 | 0.372331 | 0.319385 | 0.199829 | 0.175918 | 0.128096 | 0 | 0.153226 | 0.220942 | 1,910 | 46 | 144 | 41.521739 | 0.633737 | 0.006283 | 0 | 0 | 0 | 0.4 | 0.655402 | 0.083657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.033333 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5782e32c41ce224b2e4467546ba091ea3f2573d6 | 394 | py | Python | backend/website/views.py | Montralis/2d1G | 2fcb3dd658edd4c1000d1e1170c4e0ff29934423 | [
"MIT"
] | null | null | null | backend/website/views.py | Montralis/2d1G | 2fcb3dd658edd4c1000d1e1170c4e0ff29934423 | [
"MIT"
] | 1 | 2021-10-06T18:36:13.000Z | 2021-10-06T18:36:13.000Z | backend/website/views.py | Montralis/2d1G | 2fcb3dd658edd4c1000d1e1170c4e0ff29934423 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template
from flask_login import login_required, current_user
views = Blueprint('views', __name__)
@views.route('/', methods=['GET', 'POST'])
def home():
return render_template("/base/index.html")
@views.route('/add-data', methods=['GET', 'POST'])
@login_required
def addData... | 24.625 | 69 | 0.725888 | 52 | 394 | 5.269231 | 0.5 | 0.153285 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109137 | 394 | 15 | 70 | 26.266667 | 0.780627 | 0 | 0 | 0 | 0 | 0 | 0.164975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5796e78b416fb9ab07dcbb00647dbe926530246e | 12,751 | py | Python | Main_Bert.py | Saidsp19/Toxicity-Comments-Calculator | 41af5e79a283af4b3a6741af5010543d7efab3f2 | [
"Apache-2.0"
] | 2 | 2021-11-26T13:47:16.000Z | 2021-12-21T11:24:08.000Z | Main_Bert.py | Saidsp19/Toxicity-Comments-Calculator | 41af5e79a283af4b3a6741af5010543d7efab3f2 | [
"Apache-2.0"
] | null | null | null | Main_Bert.py | Saidsp19/Toxicity-Comments-Calculator | 41af5e79a283af4b3a6741af5010543d7efab3f2 | [
"Apache-2.0"
] | null | null | null | # %% [code] {"execution":{"iopub.status.busy":"2021-09-03T06:39:28.427498Z","iopub.execute_input":"2021-09-03T06:39:28.427884Z","iopub.status.idle":"2021-09-03T06:39:35.295609Z","shell.execute_reply.started":"2021-09-03T06:39:28.427802Z","shell.execute_reply":"2021-09-03T06:39:35.294682Z"},"jupyter":{"outputs_hidden":f... | 72.862857 | 327 | 0.71712 | 1,925 | 12,751 | 4.646234 | 0.188052 | 0.083855 | 0.089781 | 0.050872 | 0.616614 | 0.542598 | 0.492174 | 0.320103 | 0.165586 | 0.079495 | 0 | 0.213538 | 0.070818 | 12,751 | 174 | 328 | 73.281609 | 0.541357 | 0.678143 | 0 | 0.178218 | 0 | 0 | 0.126768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148515 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57a10e992d160c86b30c43fbcea2670c9236ea3c | 979 | py | Python | mysite/main/models.py | DanHunt27/Music-Website | 2764695997963047009bf6c74f14c370b6225c85 | [
"MIT"
] | null | null | null | mysite/main/models.py | DanHunt27/Music-Website | 2764695997963047009bf6c74f14c370b6225c85 | [
"MIT"
] | 12 | 2020-06-06T01:27:27.000Z | 2022-02-11T03:45:47.000Z | mysite/main/models.py | DanHunt27/Music-Website | 2764695997963047009bf6c74f14c370b6225c85 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Post(models.Model):
artist_name = models.CharField(max_length=100)
song_name = models.CharField(max_length=100)
description = models.TextField(max_length=280, bla... | 34.964286 | 92 | 0.734423 | 128 | 979 | 5.429688 | 0.414063 | 0.057554 | 0.060432 | 0.090647 | 0.4 | 0.4 | 0.310791 | 0.192806 | 0.192806 | 0.192806 | 0 | 0.015777 | 0.158325 | 979 | 27 | 93 | 36.259259 | 0.82767 | 0 | 0 | 0.181818 | 0 | 0 | 0.025536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.136364 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
57a6c10503b07cec90a5fac253f28c4843f2c13f | 18,350 | py | Python | Generators/Structures/House.py | Karaokruk/TrainCity | cf44f739a6e08e3658a79f8b09105f979d5aeece | [
"MIT"
] | null | null | null | Generators/Structures/House.py | Karaokruk/TrainCity | cf44f739a6e08e3658a79f8b09105f979d5aeece | [
"MIT"
] | null | null | null | Generators/Structures/House.py | Karaokruk/TrainCity | cf44f739a6e08e3658a79f8b09105f979d5aeece | [
"MIT"
] | null | null | null | import random
import math
import RNG
import logging
from pymclevel import alphaMaterials, BoundingBox
import toolbox as toolbox
import utility as utility
from Carpet import generateCarpet
from Object import *
def generateHouse(matrix, wood_material, h_min, h_max, x_min, x_max, z_min, z_max, ceiling = None):
logger = ... | 44.865526 | 181 | 0.711063 | 2,998 | 18,350 | 4.118746 | 0.074716 | 0.094104 | 0.046161 | 0.034985 | 0.702624 | 0.643019 | 0.609329 | 0.586573 | 0.547862 | 0.495708 | 0 | 0.020691 | 0.159837 | 18,350 | 408 | 182 | 44.97549 | 0.780243 | 0.05248 | 0 | 0.353293 | 1 | 0 | 0.017804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026946 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57b32edb5e8a6f79fd97ea71d1f1ce135b183584 | 20,093 | py | Python | spYDyishai.py | nimitzufo/spYDyishai | d240d2ea0d61cd94316e869459e3a9b2dbafbd87 | [
"BSD-3-Clause"
] | 11 | 2017-03-07T11:45:24.000Z | 2021-08-25T09:48:55.000Z | spYDyishai.py | Night46/spYDyishai | d240d2ea0d61cd94316e869459e3a9b2dbafbd87 | [
"BSD-3-Clause"
] | null | null | null | spYDyishai.py | Night46/spYDyishai | d240d2ea0d61cd94316e869459e3a9b2dbafbd87 | [
"BSD-3-Clause"
] | 8 | 2016-09-05T21:25:11.000Z | 2021-04-11T13:08:57.000Z | #!/usr/bin/env python
#TODO
# add text colors and decorations
# ##############################################################################
#
# Prerequisites
#
# ##############################################################################
#
# ####################################################################... | 32.303859 | 139 | 0.643309 | 2,514 | 20,093 | 5.044948 | 0.163882 | 0.023654 | 0.0164 | 0.026019 | 0.417251 | 0.356619 | 0.315698 | 0.284948 | 0.263029 | 0.200662 | 0 | 0.00413 | 0.192704 | 20,093 | 621 | 140 | 32.355878 | 0.777757 | 0.042901 | 0 | 0.451327 | 0 | 0.011062 | 0.506818 | 0.03588 | 0 | 0 | 0 | 0.00161 | 0 | 0 | null | null | 0.086283 | 0.019912 | null | null | 0.227876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
57bb5e954e7c0179f087ec6b4380cba968117895 | 1,201 | py | Python | tests/unit/opera/parser/tosca/v_1_3/test_operation_implementation_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 31 | 2019-02-12T06:52:24.000Z | 2022-03-23T06:48:10.000Z | tests/unit/opera/parser/tosca/v_1_3/test_operation_implementation_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 190 | 2019-05-09T09:12:38.000Z | 2022-03-31T06:21:51.000Z | tests/unit/opera/parser/tosca/v_1_3/test_operation_implementation_definition.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 19 | 2019-05-09T13:36:22.000Z | 2022-01-25T21:27:50.000Z | import pytest
from opera.error import ParseError
from opera.parser.tosca.v_1_3.operation_implementation_definition import OperationImplementationDefinition
from opera.parser.yaml.node import Node
class TestNormalize:
@pytest.mark.parametrize("data", [1, 2.3, True, (), []])
def test_invalid_data(self, data):
... | 28.595238 | 106 | 0.651124 | 113 | 1,201 | 6.769912 | 0.460177 | 0.045752 | 0.180392 | 0.128105 | 0.146405 | 0.146405 | 0.146405 | 0 | 0 | 0 | 0 | 0.006704 | 0.254788 | 1,201 | 41 | 107 | 29.292683 | 0.848045 | 0.010824 | 0 | 0 | 0 | 0 | 0.02495 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.227273 | false | 0 | 0.181818 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57d13d019cd1ee8882eae366581b1de9f33286a7 | 80 | py | Python | Python Fundamentals/Data types and Variables/Exercise/Task02.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Fundamentals/Data types and Variables/Exercise/Task02.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Fundamentals/Data types and Variables/Exercise/Task02.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | char1 = input()
char2 = input()
char3 = input()
print(f"{char1}{char2}{char3}") | 16 | 31 | 0.6375 | 11 | 80 | 4.636364 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.125 | 80 | 5 | 31 | 16 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57d5274a0480f2960f439079acef50654b164310 | 907 | py | Python | cfgov/core/split_testing_clusters.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 4 | 2020-03-19T19:32:26.000Z | 2020-06-30T11:15:00.000Z | cfgov/core/split_testing_clusters.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 100 | 2020-02-06T13:32:37.000Z | 2020-08-19T15:02:02.000Z | cfgov/core/split_testing_clusters.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 1 | 2019-12-28T14:04:07.000Z | 2019-12-28T14:04:07.000Z | ASK_CFPB_H1 = {
# Initial clusters that went live on 12/4/18,
# testing the full set of pages in each cluster:
18: [
103, 160, 187, 337, 731, 767, 951, 1157, 1161, 1403, 1405, 1439, 1447,
1567, 1695,
],
34: [
104, 105, 130, 205, 747, 841, 1423, 1791,
],
38: [
... | 28.34375 | 78 | 0.52591 | 138 | 907 | 3.413043 | 0.898551 | 0.044586 | 0.057325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.519293 | 0.314223 | 907 | 31 | 79 | 29.258065 | 0.237942 | 0.178611 | 0 | 0.185185 | 0 | 0 | 0.014845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57db81b6216cce9f9c7ea2f27857f55c66e53e4f | 16,015 | py | Python | actions/compile_report_pack.py | ContrastingSounds/compile-report-pack | 93901234cf831186238fe8352fce7736eb0f987c | [
"MIT"
] | 2 | 2022-03-21T16:00:24.000Z | 2022-03-21T16:41:15.000Z | actions/compile_report_pack.py | ContrastingSounds/compile-report-pack | 93901234cf831186238fe8352fce7736eb0f987c | [
"MIT"
] | null | null | null | actions/compile_report_pack.py | ContrastingSounds/compile-report-pack | 93901234cf831186238fe8352fce7736eb0f987c | [
"MIT"
] | null | null | null | import os
import base64
import csv
import datetime
import time
import json
import re
from pprint import pformat
from PyPDF4 import PdfFileReader, PdfFileWriter
from typing import cast
from looker_sdk import models
from main import app
from core import action_hub, get_input_file_name, get_output_file_name, get_temp_fil... | 54.84589 | 4,788 | 0.679675 | 1,354 | 16,015 | 7.823486 | 0.304284 | 0.014349 | 0.014727 | 0.008591 | 0.096951 | 0.063721 | 0.040593 | 0.040593 | 0.034362 | 0.034362 | 0 | 0.061188 | 0.238714 | 16,015 | 291 | 4,789 | 55.034364 | 0.807661 | 0.018795 | 0 | 0.115538 | 0 | 0.011952 | 0.415228 | 0.317235 | 0 | 1 | 0 | 0 | 0 | 1 | 0.01992 | false | 0 | 0.059761 | 0 | 0.099602 | 0.003984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57df7a3eebb2d4b70be57399e5c6fc4d9016588b | 179 | py | Python | hello_async.py | infotraining-team/python-asyncio-2021-05-13 | 73a8a8ea5cdc03a67b18dee70ad93d9032223422 | [
"CC0-1.0"
] | null | null | null | hello_async.py | infotraining-team/python-asyncio-2021-05-13 | 73a8a8ea5cdc03a67b18dee70ad93d9032223422 | [
"CC0-1.0"
] | null | null | null | hello_async.py | infotraining-team/python-asyncio-2021-05-13 | 73a8a8ea5cdc03a67b18dee70ad93d9032223422 | [
"CC0-1.0"
] | null | null | null | import asyncio
async def coro():
await asyncio.sleep(1)
print("Hello world")
return 42
res = asyncio.run(coro())
print(res)
#print(type(coro))
#print(type(coro()))
| 13.769231 | 26 | 0.653631 | 26 | 179 | 4.5 | 0.615385 | 0.153846 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.178771 | 179 | 12 | 27 | 14.916667 | 0.77551 | 0.201117 | 0 | 0 | 0 | 0 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
57e45d22bea11b3379174fe30fc80211edc59ed1 | 339 | py | Python | Week 3/Lecture 5 - Recursion/Questions/Lec5Problem3.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | Week 3/Lecture 5 - Recursion/Questions/Lec5Problem3.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | Week 3/Lecture 5 - Recursion/Questions/Lec5Problem3.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | # Lecture 5, Problem 3
def recurPowerNew (base, exp):
'''
base: int or float.
exp: int >= 0
returns: int or float; base^exp
'''
if (exp == 0):
return 1
elif (exp % 2 == 0):
return recurPowerNew (base * base, exp / 2)
elif (exp % 2 == 1):
return base * recurPower... | 22.6 | 51 | 0.522124 | 46 | 339 | 3.847826 | 0.391304 | 0.158192 | 0.225989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049107 | 0.339233 | 339 | 15 | 52 | 22.6 | 0.741071 | 0.259587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
57e9b8f3fa5eaccccb6a8154fcc4175107d3a0f1 | 5,483 | py | Python | test_auth_app/core/worker.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | test_auth_app/core/worker.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | test_auth_app/core/worker.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = "eduard.snezhko@gmail.com"
import os
import pydicom
import shutil
import requests
import json
from test_auth_app.core.resource_manager import ResourceManager
def make_dir_if_not_exists(dirname_, clean_if_exists_=True):
"""
create directory if directory is absent
:para... | 29.961749 | 147 | 0.628488 | 684 | 5,483 | 4.736842 | 0.233918 | 0.041975 | 0.059259 | 0.046914 | 0.25216 | 0.222531 | 0.183642 | 0.162963 | 0.162963 | 0.162963 | 0 | 0.002027 | 0.280139 | 5,483 | 182 | 148 | 30.126374 | 0.81885 | 0.057086 | 0 | 0.280303 | 0 | 0 | 0.046304 | 0.004669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.128788 | 0.05303 | 0 | 0.371212 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
17ab192921ae9078c938015d3d78e125da9f93be | 205 | py | Python | exercicios/ex024.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | exercicios/ex024.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | exercicios/ex024.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | #ex024: Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome “SANTO”.
cidade = str(input('Em qual cidade você nasceu?\n')).strip()
print(cidade[:5].capitalize() == 'Santo')
| 41 | 100 | 0.702439 | 36 | 205 | 4 | 0.833333 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0.156098 | 205 | 4 | 101 | 51.25 | 0.809249 | 0.482927 | 0 | 0 | 0 | 0 | 0.32381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
17bc4cfb1445e037dfd16158be0f7428d5a6d618 | 490 | py | Python | class-name-expr-visitor/ast.py | joaompinto/python3-visitor-pattern | e247fc3447da3ec0a6d764fb37cea741561557b1 | [
"MIT"
] | null | null | null | class-name-expr-visitor/ast.py | joaompinto/python3-visitor-pattern | e247fc3447da3ec0a6d764fb37cea741561557b1 | [
"MIT"
] | null | null | null | class-name-expr-visitor/ast.py | joaompinto/python3-visitor-pattern | e247fc3447da3ec0a6d764fb37cea741561557b1 | [
"MIT"
] | null | null | null | class Expr(object):
def accept(self, visitor):
method_name = "visit_{}".format(self.__class__.__name__.lower())
visit = getattr(visitor, method_name)
return visit(self)
class Int(Expr):
def __init__(self, value):
self.value = value
class Add(Expr):
def __init__(self, left... | 21.304348 | 72 | 0.610204 | 61 | 490 | 4.52459 | 0.344262 | 0.115942 | 0.119565 | 0.163043 | 0.362319 | 0.362319 | 0.362319 | 0.362319 | 0.362319 | 0.362319 | 0 | 0 | 0.269388 | 490 | 22 | 73 | 22.272727 | 0.77095 | 0 | 0 | 0.375 | 0 | 0 | 0.016327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17c8501976ed9ec4d34b558218525bf47c8b0936 | 242 | py | Python | comlocal/test/inter-layer-com.py | jtsiva/ComLocAL | cbc9928a0a6d6ec08660cd88f085c1d4b2dce300 | [
"MIT"
] | null | null | null | comlocal/test/inter-layer-com.py | jtsiva/ComLocAL | cbc9928a0a6d6ec08660cd88f085c1d4b2dce300 | [
"MIT"
] | 5 | 2017-12-20T21:11:53.000Z | 2018-04-04T20:06:03.000Z | comlocal/test/inter-layer-com.py | jtsiva/ComLocAL | cbc9928a0a6d6ec08660cd88f085c1d4b2dce300 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Basic usage of module for use with debugger
"""
from comlocal.core import Com
import json
import pdb
pdb.set_trace()
com = Com.Com()
com.write(json.loads('{"type": "msg", "payload": "Hello world!"}'))
print com.read() | 17.285714 | 67 | 0.68595 | 38 | 242 | 4.342105 | 0.763158 | 0.109091 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132231 | 242 | 14 | 68 | 17.285714 | 0.785714 | 0.066116 | 0 | 0 | 0 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.