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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8c3ec4f9d2b8b28d2ff65d1474527b0b933c9ef | 172 | py | Python | pf/tests/__init__.py | PiRAT4/py-pf | 7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31 | [
"BSD-3-Clause"
] | null | null | null | pf/tests/__init__.py | PiRAT4/py-pf | 7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31 | [
"BSD-3-Clause"
] | null | null | null | pf/tests/__init__.py | PiRAT4/py-pf | 7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31 | [
"BSD-3-Clause"
] | null | null | null | """Test module for pf"""
from pf.tests.cmd import TestCommand
from pf.tests.test_filter import TestPacketFilter
__all__ = ["TestCommand",
"TestPacketFilter"]
| 19.111111 | 49 | 0.72093 | 20 | 172 | 5.95 | 0.6 | 0.10084 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 172 | 8 | 50 | 21.5 | 0.838028 | 0.104651 | 0 | 0 | 0 | 0 | 0.182432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c8c83a7f56f50f202c7896daf572ff559a72aa5d | 183 | py | Python | pilates/modules/cfpb/cfpb.py | milonemario/pilates | 6dcf503f29de975027f41eb4165b09ed5af01721 | [
"BSD-3-Clause"
] | null | null | null | pilates/modules/cfpb/cfpb.py | milonemario/pilates | 6dcf503f29de975027f41eb4165b09ed5af01721 | [
"BSD-3-Clause"
] | null | null | null | pilates/modules/cfpb/cfpb.py | milonemario/pilates | 6dcf503f29de975027f41eb4165b09ed5af01721 | [
"BSD-3-Clause"
] | null | null | null | """
Provides processing functions for the CFPB data.
"""
from pilates import data_module
class cfpb(data_module):
def __init__(self, d):
data_module.__init__(self, d)
| 15.25 | 48 | 0.704918 | 25 | 183 | 4.72 | 0.64 | 0.254237 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 183 | 11 | 49 | 16.636364 | 0.802721 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c8cb0865b6804925d5a7fd434b0bfd0cfd83c3d3 | 248 | py | Python | Chapter10/moviereviewsproject/movie/models.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | Chapter10/moviereviewsproject/movie/models.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | Chapter10/moviereviewsproject/movie/models.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | from django.db import models
class Movie(models.Model):
title = models.CharField(max_length=100)
description = models.CharField(max_length=250)
image = models.ImageField(upload_to='movie/images/')
url = models.URLField(blank=True)
| 31 | 56 | 0.741935 | 33 | 248 | 5.484848 | 0.727273 | 0.165746 | 0.198895 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.141129 | 248 | 7 | 57 | 35.428571 | 0.821596 | 0 | 0 | 0 | 0 | 0 | 0.052419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c8f12e127be327ff587fb5d1cfa8a6489f27fb02 | 145 | py | Python | adc/events.py | udoprog/python-adc | 6e3775a6fddd0c4a12211a237e2ae5f62a79fd31 | [
"BSD-3-Clause"
] | 1 | 2015-02-01T15:05:16.000Z | 2015-02-01T15:05:16.000Z | adc/events.py | udoprog/python-adc | 6e3775a6fddd0c4a12211a237e2ae5f62a79fd31 | [
"BSD-3-Clause"
] | null | null | null | adc/events.py | udoprog/python-adc | 6e3775a6fddd0c4a12211a237e2ae5f62a79fd31 | [
"BSD-3-Clause"
] | null | null | null | import types
class Event:
def __init__(self):
if type(self.__signals__) != list:
raise ValueError, "self.__signals__ is not a list"
| 20.714286 | 56 | 0.696552 | 20 | 145 | 4.45 | 0.8 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 145 | 6 | 57 | 24.166667 | 0.773913 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c8f38d69d2da77305dbbb8d89381dc2f25a0e191 | 312 | py | Python | moneydog/__init__.py | Falldog/moneydog | 86e7cab1c0b35f07d1fe42e699e1159f57f1bef5 | [
"Apache-2.0"
] | null | null | null | moneydog/__init__.py | Falldog/moneydog | 86e7cab1c0b35f07d1fe42e699e1159f57f1bef5 | [
"Apache-2.0"
] | null | null | null | moneydog/__init__.py | Falldog/moneydog | 86e7cab1c0b35f07d1fe42e699e1159f57f1bef5 | [
"Apache-2.0"
] | null | null | null | # Import the Flask Framework
from flask import Flask
app = Flask(__name__)
# Note: We don't need to call run() since our application is embedded within
# the App Engine WSGI application server.
from moneydog import urls
from moneydog import views
from moneydog import views_admin
from moneydog import filters
| 24 | 76 | 0.798077 | 48 | 312 | 5.083333 | 0.604167 | 0.196721 | 0.295082 | 0.188525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 312 | 12 | 77 | 26 | 0.938462 | 0.451923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
7402cec0149c449b4a4285fadd3354f9d9b1cb90 | 4,055 | py | Python | lib/dart_project.py | my-personal-forks/dart-sublime-bundle | 580127c13c3a97d7cb0c9ac09152f68cb665946c | [
"BSD-3-Clause"
] | 182 | 2017-03-05T07:43:13.000Z | 2022-03-15T13:09:07.000Z | lib/dart_project.py | kkurian/dart-sublime-bundle | 429324e43ea487f8c05a4fb7002c5fd2c8c56b42 | [
"BSD-3-Clause"
] | 93 | 2015-01-25T00:10:01.000Z | 2021-02-01T12:11:31.000Z | lib/dart_project.py | kkurian/dart-sublime-bundle | 429324e43ea487f8c05a4fb7002c5fd2c8c56b42 | [
"BSD-3-Clause"
] | 45 | 2015-01-25T00:18:01.000Z | 2021-02-25T18:09:08.000Z | # Copyright (c) 2014, Guillermo López-Anglada. Please see the AUTHORS file for details.
# All rights reserved. Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.)
import os
from Dart.lib.path import find_pubspec_path
from Dart.out_there.yaml import load
from Dart.lib.p... | 25.34375 | 87 | 0.628113 | 548 | 4,055 | 4.423358 | 0.208029 | 0.072607 | 0.049917 | 0.057756 | 0.453795 | 0.392327 | 0.368399 | 0.183168 | 0.183168 | 0.151815 | 0 | 0.001351 | 0.270037 | 4,055 | 159 | 88 | 25.503145 | 0.817568 | 0.136621 | 0 | 0.424528 | 0 | 0 | 0.030233 | 0 | 0 | 0 | 0 | 0.012579 | 0 | 1 | 0.283019 | false | 0.018868 | 0.037736 | 0.141509 | 0.575472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7408a55691b7ab7e87d13b54b3de8e99739c017f | 84 | py | Python | tkitLogger/__init__.py | napoler/tkitLogger | 226073dd0b4bc068495af98afca241d0b073f0be | [
"Apache-2.0"
] | null | null | null | tkitLogger/__init__.py | napoler/tkitLogger | 226073dd0b4bc068495af98afca241d0b073f0be | [
"Apache-2.0"
] | null | null | null | tkitLogger/__init__.py | napoler/tkitLogger | 226073dd0b4bc068495af98afca241d0b073f0be | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#这里是引用库
# from .config import *
from .tkitLogger import *
| 12 | 25 | 0.619048 | 10 | 84 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.202381 | 84 | 6 | 26 | 14 | 0.761194 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cd9d4641275d6580aa0df050b2aa844b1a9b66ca | 1,306 | py | Python | solutions/2021/kws/tests/test_day02.py | kws/AdventOfCode | 8da337ece8a46d070185e1d81592745dae7f6744 | [
"MIT"
] | 1 | 2020-12-04T20:15:47.000Z | 2020-12-04T20:15:47.000Z | solutions/2021/kws/tests/test_day02.py | kws/AdventOfCode | 8da337ece8a46d070185e1d81592745dae7f6744 | [
"MIT"
] | 1 | 2020-12-02T08:31:35.000Z | 2020-12-02T20:24:34.000Z | solutions/2021/kws/tests/test_day02.py | kws/AdventOfCode | 8da337ece8a46d070185e1d81592745dae7f6744 | [
"MIT"
] | 3 | 2018-11-30T18:14:15.000Z | 2018-12-10T20:18:15.000Z | import unittest
import day02
class TestDay02(unittest.TestCase):
def test_parse_instruction(self):
self.assertEqual(day02.Instruction.from_string("up 4"), day02.Instruction(day02.Command.U, 4))
self.assertEqual(day02.Instruction.from_string("down 2"), day02.Instruction(day02.Command.D, 2))
... | 31.095238 | 109 | 0.655436 | 178 | 1,306 | 4.679775 | 0.219101 | 0.230492 | 0.226891 | 0.302521 | 0.740696 | 0.641056 | 0.378151 | 0.378151 | 0.378151 | 0.378151 | 0 | 0.077873 | 0.193721 | 1,306 | 41 | 110 | 31.853659 | 0.7132 | 0 | 0 | 0.222222 | 0 | 0 | 0.02144 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cdea8d89e688a8f2e1968589c8c4467b70d3a0b9 | 1,272 | py | Python | tradgram/OAreports/migrations/0003_auto_20190323_1535.py | didils/tradgram | 4868ca082ab78a1b5b96f25ee9f958567bd1bb1e | [
"MIT"
] | null | null | null | tradgram/OAreports/migrations/0003_auto_20190323_1535.py | didils/tradgram | 4868ca082ab78a1b5b96f25ee9f958567bd1bb1e | [
"MIT"
] | 4 | 2020-06-05T20:21:46.000Z | 2021-09-08T00:57:42.000Z | tradgram/OAreports/migrations/0003_auto_20190323_1535.py | didils/tradgram | 4868ca082ab78a1b5b96f25ee9f958567bd1bb1e | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2019-03-23 06:35
from django.db import migrations
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('OAreports', '0002_auto_20190323_1533'),
]
operations = [
migrations.AlterField(
model_name='oareport',
... | 31.8 | 98 | 0.601415 | 122 | 1,272 | 6.163934 | 0.360656 | 0.111702 | 0.159574 | 0.192819 | 0.731383 | 0.731383 | 0.676862 | 0.676862 | 0.676862 | 0.676862 | 0 | 0.039046 | 0.275157 | 1,272 | 39 | 99 | 32.615385 | 0.776573 | 0.035377 | 0 | 0.606061 | 1 | 0 | 0.083265 | 0.018776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 4 |
cdfbbb7360978b620ec28f829d6992bfa0f02b12 | 16 | py | Python | app/core/conf.py | jersobh/Kafka-Live-Dashboard | a24b5b77a6af296ef446df4dbd0928d18a5ded81 | [
"MIT"
] | 2 | 2020-06-20T19:09:29.000Z | 2020-07-06T02:04:29.000Z | app/core/conf.py | jersobh/Kafka-Live-Dashboard | a24b5b77a6af296ef446df4dbd0928d18a5ded81 | [
"MIT"
] | null | null | null | app/core/conf.py | jersobh/Kafka-Live-Dashboard | a24b5b77a6af296ef446df4dbd0928d18a5ded81 | [
"MIT"
] | null | null | null | APP_PORT = 8000
| 8 | 15 | 0.75 | 3 | 16 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0.1875 | 16 | 1 | 16 | 16 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8323298cb239ddaba79b0e31219765268a12f9d | 264 | py | Python | codigo/Live176/exemplos_dos_slides/exemplo_07.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live176/exemplos_dos_slides/exemplo_07.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live176/exemplos_dos_slides/exemplo_07.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | """Exemplo transformação da imagem em matriz."""
from PIL import Image
from numpy import array
im = Image.open('2x2px.jpg')
print(array(im))
"""
array([[[ 0, 0, 0],
[255, 255, 255]],
[[255, 255, 255],
[ 0, 0, 0]]], dtype=uint8)
"""
| 17.6 | 48 | 0.545455 | 37 | 264 | 3.891892 | 0.567568 | 0.208333 | 0.25 | 0.25 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137056 | 0.253788 | 264 | 14 | 49 | 18.857143 | 0.593909 | 0.159091 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a832891463fd6867d41737fdc75729a0b3811f89 | 241 | py | Python | dg-integration/intellij/dgapi/__init__.py | kassak/dg-exposer | d944fdcbb77b47bc37501f4b223427f7c0435112 | [
"MIT"
] | 3 | 2018-07-27T09:58:53.000Z | 2021-04-14T14:12:03.000Z | dg-integration/intellij/dgapi/__init__.py | kassak/dg-exposer | d944fdcbb77b47bc37501f4b223427f7c0435112 | [
"MIT"
] | 1 | 2018-06-28T18:46:30.000Z | 2018-06-28T18:46:30.000Z | dg-integration/intellij/dgapi/__init__.py | kassak/dg-exposer | d944fdcbb77b47bc37501f4b223427f7c0435112 | [
"MIT"
] | null | null | null | from intellij.dgapi.exceptions import *
from intellij.dgapi.types import *
apilevel = "2.0"
threadsafety = 0
paramstyle = "qmark"
def connect(**kwargs):
from intellij.dgapi.connection import Connection
return Connection(**kwargs)
| 20.083333 | 52 | 0.746888 | 29 | 241 | 6.206897 | 0.586207 | 0.2 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.149378 | 241 | 11 | 53 | 21.909091 | 0.863415 | 0 | 0 | 0 | 0 | 0 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b51f5affdde8b993750d45572ed590d7af6155bc | 212 | py | Python | accounts/models.py | UmarSyal/port_proj--social | f7fd04f20dec37ac4f3b686975443e2ff87c7264 | [
"MIT"
] | null | null | null | accounts/models.py | UmarSyal/port_proj--social | f7fd04f20dec37ac4f3b686975443e2ff87c7264 | [
"MIT"
] | null | null | null | accounts/models.py | UmarSyal/port_proj--social | f7fd04f20dec37ac4f3b686975443e2ff87c7264 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import models
# Create your models here.
class User(models.User, models.PermissionsMixin):
def __str__(self):
return "@{}".format(self.username) | 30.285714 | 49 | 0.735849 | 28 | 212 | 5.428571 | 0.678571 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15566 | 212 | 7 | 50 | 30.285714 | 0.849162 | 0.113208 | 0 | 0 | 0 | 0 | 0.016043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
b53f077748bc1678dce3baa54ddd44135234a123 | 201 | py | Python | graphgallery/gallery/nodeclas/dgl/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | graphgallery/gallery/nodeclas/dgl/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | graphgallery/gallery/nodeclas/dgl/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | from .gcn import GCN
from .sgc import SGC
from .gat import GAT
from .appnp import APPNP
from .dagnn import DAGNN
from .jknet import JKNet
from .mixhop import MixHop
from .ala_gnn import ALaGCN, ALaGAT
| 22.333333 | 35 | 0.791045 | 34 | 201 | 4.647059 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 201 | 8 | 36 | 25.125 | 0.940476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b5414cb4a8db690258b7f3d54c767413bf50c1b5 | 89 | py | Python | backend/barcode/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/barcode/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/barcode/apps.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | from django.apps import AppConfig
class BarcodeConfig(AppConfig):
name = 'barcode'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b5640c74e8632673a90a6f753b2f2ba6e14574dc | 226 | py | Python | auctions/utils.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | 1 | 2016-05-07T06:15:33.000Z | 2016-05-07T06:15:33.000Z | auctions/utils.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | null | null | null | auctions/utils.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | null | null | null | from datetime import datetime
from django.utils.timezone import utc
def get_current_time():
try:
now = datetime.utcnow().replace(tzinfo=utc)
except ImportError:
now = datetime.utcnow()
return now | 20.545455 | 51 | 0.690265 | 28 | 226 | 5.5 | 0.678571 | 0.142857 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225664 | 226 | 11 | 52 | 20.545455 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b582262b2d81b06c598ef275ecc49fcdf5f16dfc | 47 | py | Python | det3d/models/losses/__init__.py | motional/polarstream | 74af9548cad69a4f546b83dae7b87454bc590c9e | [
"MIT"
] | 9 | 2022-03-29T04:53:14.000Z | 2022-03-30T02:29:28.000Z | det3d/models/losses/__init__.py | motional/polarstream | 74af9548cad69a4f546b83dae7b87454bc590c9e | [
"MIT"
] | null | null | null | det3d/models/losses/__init__.py | motional/polarstream | 74af9548cad69a4f546b83dae7b87454bc590c9e | [
"MIT"
] | 1 | 2022-03-29T04:31:53.000Z | 2022-03-29T04:31:53.000Z | from .seg_loss import *
__all__ = ["SegLoss"]
| 11.75 | 23 | 0.680851 | 6 | 47 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 3 | 24 | 15.666667 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b5881a3ee4608e7812aba8231ca7936d094cbcaf | 42 | py | Python | sasstastic/version.py | samuelcolvin/sasstastic | fac226d6dafab978de509986787e5b3472f3587a | [
"MIT"
] | 27 | 2020-05-20T16:42:43.000Z | 2021-04-19T04:29:06.000Z | sasstastic/version.py | samuelcolvin/sasstastic | fac226d6dafab978de509986787e5b3472f3587a | [
"MIT"
] | 8 | 2020-05-21T20:45:13.000Z | 2020-11-12T14:30:53.000Z | sasstastic/version.py | samuelcolvin/sasstastic | fac226d6dafab978de509986787e5b3472f3587a | [
"MIT"
] | 2 | 2020-05-21T13:41:19.000Z | 2021-09-23T10:45:17.000Z | __all__ = ('VERSION',)
VERSION = '0.0.3'
| 10.5 | 22 | 0.571429 | 6 | 42 | 3.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.166667 | 42 | 3 | 23 | 14 | 0.485714 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5a1b56107f4e9368d15041b578d84aaef5505d6 | 114 | py | Python | lib/plugins/base.py | richtamblyn/PGSparkLite | 7a99116698d54109850f08810d5fd50d6d613f64 | [
"Apache-2.0"
] | 28 | 2021-01-17T00:31:05.000Z | 2021-12-30T19:20:00.000Z | lib/plugins/base.py | richtamblyn/PGSparkLite | 7a99116698d54109850f08810d5fd50d6d613f64 | [
"Apache-2.0"
] | 9 | 2021-01-17T08:05:17.000Z | 2021-11-14T09:19:59.000Z | lib/plugins/base.py | richtamblyn/PGSparkLite | 7a99116698d54109850f08810d5fd50d6d613f64 | [
"Apache-2.0"
] | 2 | 2021-03-03T00:46:46.000Z | 2021-09-10T15:47:48.000Z | class Plugin:
max = 1
min = 0
def __init__(self, name):
self.name = name
| 14.25 | 37 | 0.438596 | 13 | 114 | 3.538462 | 0.769231 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.482456 | 114 | 8 | 38 | 14.25 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a95472b09ab9c3e1a04bd363b6049bd576429e59 | 202 | py | Python | setup.py | artunduman/azure-kusto-python | d1cda6a552eb32a7c144ee834900d79468a263a3 | [
"MIT"
] | 134 | 2018-05-11T07:09:30.000Z | 2022-03-30T09:25:59.000Z | setup.py | artunduman/azure-kusto-python | d1cda6a552eb32a7c144ee834900d79468a263a3 | [
"MIT"
] | 176 | 2018-05-07T20:33:34.000Z | 2022-03-31T14:51:06.000Z | setup.py | artunduman/azure-kusto-python | d1cda6a552eb32a7c144ee834900d79468a263a3 | [
"MIT"
] | 85 | 2018-04-16T08:53:22.000Z | 2022-03-29T10:10:55.000Z | import sys
if "travis_deploy" in sys.argv:
import build_packages
sys.exit(build_packages.travis_build_package())
else:
raise ValueError("Setup file is written to support travis publish.")
| 22.444444 | 72 | 0.757426 | 29 | 202 | 5.103448 | 0.724138 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163366 | 202 | 8 | 73 | 25.25 | 0.87574 | 0 | 0 | 0 | 0 | 0 | 0.30198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a968e0037dd2e321fe349fc12ba00644d4531089 | 23 | py | Python | tests/opentelemetry-test-utils/src/opentelemetry/test/version.py | 3tilley/opentelemetry-python | 4ed4fd08db67de69369f87862e43562c2e43fed5 | [
"Apache-2.0"
] | null | null | null | tests/opentelemetry-test-utils/src/opentelemetry/test/version.py | 3tilley/opentelemetry-python | 4ed4fd08db67de69369f87862e43562c2e43fed5 | [
"Apache-2.0"
] | null | null | null | tests/opentelemetry-test-utils/src/opentelemetry/test/version.py | 3tilley/opentelemetry-python | 4ed4fd08db67de69369f87862e43562c2e43fed5 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.28b1"
| 11.5 | 22 | 0.695652 | 3 | 23 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a970db96f15e7f5902c735642b9bad58c58841b4 | 26 | py | Python | mycal/addx/__init__.py | crqzn1/pypackage-mycal | 27c0d51cca51718615c20aec09110a50107a9f5c | [
"MIT"
] | null | null | null | mycal/addx/__init__.py | crqzn1/pypackage-mycal | 27c0d51cca51718615c20aec09110a50107a9f5c | [
"MIT"
] | null | null | null | mycal/addx/__init__.py | crqzn1/pypackage-mycal | 27c0d51cca51718615c20aec09110a50107a9f5c | [
"MIT"
] | null | null | null | """
Subpackage for add
""" | 8.666667 | 18 | 0.615385 | 3 | 26 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 3 | 19 | 8.666667 | 0.727273 | 0.692308 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a9735490b51b4e02ea4501a27623577e5887c1dd | 287 | py | Python | ensure/__init__.py | KeyWeeUsr/ensure | 47becf82672906d2fcfd4e8e5b0542e43845b3ed | [
"Apache-2.0"
] | 116 | 2015-01-07T02:28:42.000Z | 2022-03-27T11:28:17.000Z | ensure/__init__.py | KeyWeeUsr/ensure | 47becf82672906d2fcfd4e8e5b0542e43845b3ed | [
"Apache-2.0"
] | 21 | 2015-05-27T14:01:33.000Z | 2019-10-31T04:54:44.000Z | ensure/__init__.py | KeyWeeUsr/ensure | 47becf82672906d2fcfd4e8e5b0542e43845b3ed | [
"Apache-2.0"
] | 11 | 2016-02-03T20:39:46.000Z | 2020-06-03T01:27:20.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from ._types import NumericString, NumericByteString, IntegerString, IntegerByteString
from .main import EnsureError, Ensure, Check, ensure, check, ensure_raises, ensure_raises_regex, ensure_annotations
| 57.4 | 115 | 0.857143 | 32 | 287 | 7.3125 | 0.65625 | 0.094017 | 0.145299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090592 | 287 | 4 | 116 | 71.75 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a97667f4c1b7dca62e9cf76a9e99c8f022b440a7 | 364 | py | Python | Exercicios-Python/074.py | LuizHenriqudesouza419/Exercicios-de-Python3-main | af53cc1eea1e22a304e206a453c4b24bf67615a8 | [
"MIT"
] | 1 | 2021-11-08T22:59:33.000Z | 2021-11-08T22:59:33.000Z | Exercicios-Python/074.py | LuizHenriqudesouza419/Exercicios-de-Python3-main | af53cc1eea1e22a304e206a453c4b24bf67615a8 | [
"MIT"
] | null | null | null | Exercicios-Python/074.py | LuizHenriqudesouza419/Exercicios-de-Python3-main | af53cc1eea1e22a304e206a453c4b24bf67615a8 | [
"MIT"
] | null | null | null | # Maior e menor valores em Tupla
from random import randint
números = randint(1, 10), randint(1, 10), randint(1, 10), \
randint(1, 10), randint(1, 10)
print('Os valores sorteados foram:', end='')
for n in números:
print(f'{n} ', end='')
print(f'\nO maior valor sorteado foi {max(números)}')
print(f'... | 36.4 | 64 | 0.648352 | 58 | 364 | 4.068966 | 0.5 | 0.169492 | 0.211864 | 0.288136 | 0.211864 | 0.211864 | 0.211864 | 0.211864 | 0.211864 | 0.211864 | 0 | 0.050847 | 0.18956 | 364 | 9 | 65 | 40.444444 | 0.749153 | 0.082418 | 0 | 0 | 0 | 0 | 0.346386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a9798e04c1596b4df1b6f5883a0919ec4bc4a47a | 94 | py | Python | peryton/Parser/operators.py | jweinst1/Peryton | 250fba0bf35d27c9d0e9a96d4adfdf92987189e0 | [
"Apache-2.0"
] | 97 | 2016-05-30T08:02:53.000Z | 2022-03-25T05:38:19.000Z | peryton/Parser/operators.py | jweinst1/Peryton | 250fba0bf35d27c9d0e9a96d4adfdf92987189e0 | [
"Apache-2.0"
] | 3 | 2016-12-26T05:18:06.000Z | 2022-03-20T22:52:41.000Z | peryton/Parser/operators.py | jweinst1/Peryton | 250fba0bf35d27c9d0e9a96d4adfdf92987189e0 | [
"Apache-2.0"
] | 30 | 2016-10-13T05:42:02.000Z | 2022-03-05T05:22:55.000Z | #objects that build operator elements, bundling them to get ready for translation to Swift.
| 23.5 | 91 | 0.797872 | 14 | 94 | 5.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 94 | 3 | 92 | 31.333333 | 0.961538 | 0.957447 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a986dafe9f3a3207a6f7e9516c70b5df0afeb1c5 | 179 | py | Python | src/pyorc/__init__.py | will-santos/pyorc | 44cca814c1ae2446d58ab516672f7b1dc02da275 | [
"Apache-2.0"
] | null | null | null | src/pyorc/__init__.py | will-santos/pyorc | 44cca814c1ae2446d58ab516672f7b1dc02da275 | [
"Apache-2.0"
] | null | null | null | src/pyorc/__init__.py | will-santos/pyorc | 44cca814c1ae2446d58ab516672f7b1dc02da275 | [
"Apache-2.0"
] | null | null | null | from pyorc._pyorc import typedescription
from .enums import *
from .errors import *
from .reader import Column, Reader, Stripe
from .writer import Writer
__version__ = "0.3.0"
| 17.9 | 42 | 0.765363 | 25 | 179 | 5.28 | 0.52 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.156425 | 179 | 9 | 43 | 19.888889 | 0.854305 | 0 | 0 | 0 | 0 | 0 | 0.027933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8d4a5c19b1a2093c18299f0ac28fd9389fbf4c76 | 205 | py | Python | llvm_cbuilder/libc.py | KennethNielsen/llvmpy | 70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e | [
"BSD-3-Clause"
] | 140 | 2015-01-07T20:58:12.000Z | 2022-01-21T17:02:21.000Z | llvm_cbuilder/libc.py | pfalcon/llvmpy | 2338eae5f6a91651125b8180abafa8c9afaa90d8 | [
"BSD-3-Clause"
] | 19 | 2015-01-15T14:45:49.000Z | 2020-09-04T14:58:23.000Z | llvm_cbuilder/libc.py | pfalcon/llvmpy | 2338eae5f6a91651125b8180abafa8c9afaa90d8 | [
"BSD-3-Clause"
] | 12 | 2015-01-12T01:49:32.000Z | 2020-07-10T22:30:38.000Z | from .builder import CExternal
import llvm.core as lc
from . import shortnames as types
class LibC(CExternal):
printf = lc.Type.function(types.int, [types.char_p], True)
# TODO a lot more to add
| 22.777778 | 62 | 0.726829 | 33 | 205 | 4.484848 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185366 | 205 | 8 | 63 | 25.625 | 0.886228 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8d69401c0c46ffcd856823f5addd8bccc3232831 | 3,341 | py | Python | src/playlist_test.py | AlexanderTankov/Music-player | f4fbaf647d7e707eb5e337736d036ec89eb153ec | [
"MIT"
] | null | null | null | src/playlist_test.py | AlexanderTankov/Music-player | f4fbaf647d7e707eb5e337736d036ec89eb153ec | [
"MIT"
] | null | null | null | src/playlist_test.py | AlexanderTankov/Music-player | f4fbaf647d7e707eb5e337736d036ec89eb153ec | [
"MIT"
] | null | null | null | import unittest
from playlist import Playlist
from song import Song
class TestPlaylist(unittest.TestCase):
def setUp(self):
self.test_playlist = Playlist("Rock'n'roll")
self.test_song = Song(
"Hells Bells",
"ACDC",
"Hells Bells",
5,
309... | 29.566372 | 115 | 0.596528 | 418 | 3,341 | 4.490431 | 0.148325 | 0.242941 | 0.204582 | 0.18114 | 0.711774 | 0.680341 | 0.657432 | 0.645178 | 0.645178 | 0.623868 | 0 | 0.019709 | 0.301407 | 3,341 | 112 | 116 | 29.830357 | 0.78449 | 0.003891 | 0 | 0.572917 | 0 | 0.010417 | 0.099489 | 0.006312 | 0 | 0 | 0 | 0.008929 | 0.104167 | 1 | 0.114583 | false | 0.010417 | 0.03125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8d91af041b5307b324125ec14a7604b733c55f41 | 379 | py | Python | src/FSISPH/FSISpecificThermalEnergyPolicyInst.cc.py | LLNL/spheral | 282a3e6987975cd22c62c11f948da3d5db23faeb | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 19 | 2020-10-21T01:49:17.000Z | 2022-03-15T12:29:17.000Z | src/FSISPH/FSISpecificThermalEnergyPolicyInst.cc.py | LLNL/spheral | 282a3e6987975cd22c62c11f948da3d5db23faeb | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/FSISPH/FSISpecificThermalEnergyPolicyInst.cc.py | LLNL/spheral | 282a3e6987975cd22c62c11f948da3d5db23faeb | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 5 | 2020-11-03T16:14:26.000Z | 2022-01-03T19:07:24.000Z | text = """
//------------------------------------------------------------------------------
// Explicit instantiation.
//------------------------------------------------------------------------------
#include "Geometry/Dimension.hh"
#include "FSISPH/FSISpecificThermalEnergyPolicy.cc"
namespace Spheral {
template cla... | 31.583333 | 80 | 0.430079 | 19 | 379 | 8.578947 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068602 | 379 | 11 | 81 | 34.454545 | 0.461756 | 0 | 0 | 0.2 | 0 | 0 | 0.963061 | 0.686016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
572b33e72f808a3c269c0502afd97e3b3b852ea7 | 129 | py | Python | src/bluepea/help/__init__.py | reputage/bluepea | ab77548b76bfd410c60fd98c2b35a0ca84715ff0 | [
"Apache-2.0"
] | null | null | null | src/bluepea/help/__init__.py | reputage/bluepea | ab77548b76bfd410c60fd98c2b35a0ca84715ff0 | [
"Apache-2.0"
] | null | null | null | src/bluepea/help/__init__.py | reputage/bluepea | ab77548b76bfd410c60fd98c2b35a0ca84715ff0 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Help package
Utilities and generic helper functions
"""
from __future__ import generator_stop
| 10.75 | 38 | 0.705426 | 15 | 129 | 5.733333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.178295 | 129 | 11 | 39 | 11.727273 | 0.801887 | 0.596899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5745d54a37d5ae75d387d4eccbc393ddb4e16866 | 148 | py | Python | scripts/get_sections.py | FriendlyUser/cad_tickers | 2f99a4494498419d8decf41fb0fbc77722dbc712 | [
"MIT"
] | 2 | 2022-03-16T02:19:25.000Z | 2022-03-16T02:22:39.000Z | scripts/get_sections.py | FriendlyUser/cad_tickers | 2f99a4494498419d8decf41fb0fbc77722dbc712 | [
"MIT"
] | 57 | 2020-07-30T15:43:43.000Z | 2022-03-28T02:04:13.000Z | scripts/get_sections.py | FriendlyUser/cad_tickers | 2f99a4494498419d8decf41fb0fbc77722dbc712 | [
"MIT"
] | null | null | null | import pandas as pd
cad_df = pd.read_csv('full_csv.csv')
print(cad_df.columns)
print(cad_df['sector'].unique())
print(cad_df['industry'].unique()) | 21.142857 | 36 | 0.736486 | 26 | 148 | 3.961538 | 0.538462 | 0.194175 | 0.291262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074324 | 148 | 7 | 37 | 21.142857 | 0.751825 | 0 | 0 | 0 | 0 | 0 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
575b19329a5d536a6574ba3e2fc76a18f691d550 | 123 | py | Python | bin/montools/memory.py | Tidanium/sysmonitor | dc744ee41e6a1267a92805cd78ddf790fc560bf5 | [
"MIT"
] | 1 | 2018-05-26T10:40:08.000Z | 2018-05-26T10:40:08.000Z | bin/montools/memory.py | Tidanium/sysmonitor | dc744ee41e6a1267a92805cd78ddf790fc560bf5 | [
"MIT"
] | null | null | null | bin/montools/memory.py | Tidanium/sysmonitor | dc744ee41e6a1267a92805cd78ddf790fc560bf5 | [
"MIT"
] | null | null | null | import psutil
async def virtual():
return psutil.virtual_memory()
async def swap():
return psutil.swap_memory()
| 13.666667 | 34 | 0.715447 | 16 | 123 | 5.375 | 0.5 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 123 | 8 | 35 | 15.375 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9389d67b64bb3bc66303defd5f86334293e2f822 | 96 | py | Python | backend/Log.py | REPOSC/llyricx | 6a24e089603b956c95afff26aff52b43c90379ee | [
"Apache-2.0"
] | null | null | null | backend/Log.py | REPOSC/llyricx | 6a24e089603b956c95afff26aff52b43c90379ee | [
"Apache-2.0"
] | null | null | null | backend/Log.py | REPOSC/llyricx | 6a24e089603b956c95afff26aff52b43c90379ee | [
"Apache-2.0"
] | null | null | null | class Log:
def log(obj, filename = "Log.txt"):
print(obj, file=open(filename, "a"))
| 24 | 44 | 0.583333 | 14 | 96 | 4 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 96 | 3 | 45 | 32 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
93916da466ca2fc041c639a495a4f3808fd7131b | 5,108 | py | Python | src/libretro-common/samples/core_options/example_categories/conversion_scripts/core_option_regex.py | arcadez2003/classic-cades | 03ee05187d667493165c5f86accf011fc684a737 | [
"RSA-MD"
] | 4 | 2021-12-03T14:58:12.000Z | 2022-03-05T11:17:16.000Z | src/libretro-common/samples/core_options/example_categories/conversion_scripts/core_option_regex.py | arcadez2003/classic-cades | 03ee05187d667493165c5f86accf011fc684a737 | [
"RSA-MD"
] | 32 | 2018-03-25T14:59:12.000Z | 2018-04-09T21:14:36.000Z | src/libretro-common/samples/core_options/example_categories/conversion_scripts/core_option_regex.py | arcadez2003/classic-cades | 03ee05187d667493165c5f86accf011fc684a737 | [
"RSA-MD"
] | 1 | 2018-03-28T16:49:27.000Z | 2018-03-28T16:49:27.000Z | import re
# 0: full struct; 1: up to & including first []; 2: content between first {}
p_struct = re.compile(r'(struct\s*[a-zA-Z0-9_\s]+\[])\s*'
r'(?:(?:\/\*(?:.|[\r\n])*?\*\/|\/\/.*[\r\n]+)\s*)*'
r'=\s*' # =
r'(?:(?:\/\*(?:.|[\r\n])*?\*\/|\/\/.*[\r\n]... | 63.061728 | 161 | 0.237275 | 535 | 5,108 | 2.224299 | 0.108411 | 0.14958 | 0.143697 | 0.184874 | 0.6 | 0.586555 | 0.573109 | 0.571429 | 0.557983 | 0.557983 | 0 | 0.010529 | 0.349256 | 5,108 | 80 | 162 | 63.85 | 0.347473 | 0.159945 | 0 | 0.712329 | 0 | 0.027397 | 0.528484 | 0.477872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
93c60f664fc84428475881186c23bb6865e0edca | 91 | py | Python | fullpage/apps.py | skoudoro/brainhack-bloomington | 0500216366a694a9f7cb3059cc4cc25b3798055a | [
"MIT"
] | null | null | null | fullpage/apps.py | skoudoro/brainhack-bloomington | 0500216366a694a9f7cb3059cc4cc25b3798055a | [
"MIT"
] | 3 | 2018-04-02T23:03:55.000Z | 2022-03-11T23:19:10.000Z | fullpage/apps.py | skoudoro/brainhack-bloomington | 0500216366a694a9f7cb3059cc4cc25b3798055a | [
"MIT"
] | 1 | 2018-04-02T22:11:47.000Z | 2018-04-02T22:11:47.000Z | from django.apps import AppConfig
class FullpageConfig(AppConfig):
name = 'fullpage'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
93ed424a64968fbda97e2f4d3aaddbf34e6af4d5 | 912 | py | Python | test_mail_room_madness.py | Tsarcastic/mailroom | bf8ba427b89559b0e4cad536a30006a639211480 | [
"MIT"
] | null | null | null | test_mail_room_madness.py | Tsarcastic/mailroom | bf8ba427b89559b0e4cad536a30006a639211480 | [
"MIT"
] | null | null | null | test_mail_room_madness.py | Tsarcastic/mailroom | bf8ba427b89559b0e4cad536a30006a639211480 | [
"MIT"
] | null | null | null | import pytest
def test_sort_report():
"""Test to make sure the report generates properly."""
from mail_room_madness import sort_report, DONORS_AMT, DONORS_CT
assert sort_report() == ['other', 'example', 'more']
def test_add_amount01():
"""Test to make sure donation works with new donor."""
from ... | 30.4 | 68 | 0.700658 | 132 | 912 | 4.583333 | 0.356061 | 0.07438 | 0.079339 | 0.12562 | 0.436364 | 0.436364 | 0.327273 | 0.327273 | 0.327273 | 0.327273 | 0 | 0.030914 | 0.184211 | 912 | 29 | 69 | 31.448276 | 0.782258 | 0.201754 | 0 | 0.117647 | 1 | 0 | 0.077793 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.235294 | true | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
93f080df8e4e81f86ecf3bb51fdbfc8cafc756e9 | 273 | py | Python | zero/core/base/__init__.py | jsa4000/OpenGL-Python | 62055ba0c16f54507b7ba709d6691b2e9c7bc152 | [
"Apache-2.0"
] | null | null | null | zero/core/base/__init__.py | jsa4000/OpenGL-Python | 62055ba0c16f54507b7ba709d6691b2e9c7bc152 | [
"Apache-2.0"
] | null | null | null | zero/core/base/__init__.py | jsa4000/OpenGL-Python | 62055ba0c16f54507b7ba709d6691b2e9c7bc152 | [
"Apache-2.0"
] | 1 | 2021-10-08T06:12:11.000Z | 2021-10-08T06:12:11.000Z | from __future__ import absolute_import, division, print_function
from .base import Base, Defaults, DBase, Datasheet, Thread
from .events import Event, Actions, Action
from .ecs import EntityCatalogue, Entity, Component
from .settings import Settings
from .utils import *
| 30.333333 | 64 | 0.809524 | 35 | 273 | 6.142857 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 273 | 8 | 65 | 34.125 | 0.907173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f524329be2928a23dfcc726179467b1b507c5324 | 61 | py | Python | python-mip/mip_helper/mip_helper/errors.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 5 | 2018-03-01T08:18:22.000Z | 2019-10-09T14:20:52.000Z | python-mip/mip_helper/mip_helper/errors.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 13 | 2018-03-18T17:47:49.000Z | 2019-02-13T11:45:06.000Z | python-mip/mip_helper/mip_helper/errors.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 3 | 2017-05-31T07:42:05.000Z | 2019-10-25T01:27:59.000Z | #!/usr/bin/env python3
class UserError(Exception):
pass
| 12.2 | 27 | 0.704918 | 8 | 61 | 5.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.163934 | 61 | 4 | 28 | 15.25 | 0.823529 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f54b3cddfa02bc1d249a16d3c5cba294647f2570 | 50 | py | Python | data/__init__.py | someshsingh22/BERT-Lexicon | 4274840541058655bbaa4ea172bd91bb05d72319 | [
"MIT"
] | null | null | null | data/__init__.py | someshsingh22/BERT-Lexicon | 4274840541058655bbaa4ea172bd91bb05d72319 | [
"MIT"
] | null | null | null | data/__init__.py | someshsingh22/BERT-Lexicon | 4274840541058655bbaa4ea172bd91bb05d72319 | [
"MIT"
] | null | null | null | from .DataLoader import BertDataset, BertIterator
| 25 | 49 | 0.86 | 5 | 50 | 8.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 50 | 1 | 50 | 50 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f54c2e53f5386e9590d4161c31d3b3ea54a3a050 | 238 | py | Python | master/teachkids-master/teachkids-master/ch01/Challenge1_MadLib.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/teachkids-master/teachkids-master/ch01/Challenge1_MadLib.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/teachkids-master/teachkids-master/ch01/Challenge1_MadLib.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | # MadLib.py
adjective = input("Please enter an adjective: ")
noun = input("Please enter a noun: ")
verb = input("Please enter a verb ending in -ed: ")
print("Your MadLib:")
print("The", adjective, noun, verb, "over the lazy brown dog.")
| 29.75 | 63 | 0.684874 | 36 | 238 | 4.527778 | 0.555556 | 0.202454 | 0.294479 | 0.208589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159664 | 238 | 7 | 64 | 34 | 0.815 | 0.037815 | 0 | 0 | 0 | 0 | 0.539823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f55ef74d37ed2ead88fb51c342f67956ecfad102 | 107 | py | Python | ajsonrpc/__init__.py | gurtam-space/ajsonrpc | e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc | [
"MIT"
] | null | null | null | ajsonrpc/__init__.py | gurtam-space/ajsonrpc | e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc | [
"MIT"
] | null | null | null | ajsonrpc/__init__.py | gurtam-space/ajsonrpc | e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc | [
"MIT"
] | null | null | null | from .dispatcher import Dispatcher
from .manager import AsyncJSONRPCResponseManager
__version__ = "2.0.6"
| 21.4 | 48 | 0.82243 | 12 | 107 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.11215 | 107 | 4 | 49 | 26.75 | 0.852632 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f5815e0dacae89019e476d51ff4508f3292572da | 63 | py | Python | src/gan/ccgan/cc_gui.py | matkir/Master_programs | 70c4c399f9c9fc3e1643e78694223b24d7b94b18 | [
"MIT"
] | null | null | null | src/gan/ccgan/cc_gui.py | matkir/Master_programs | 70c4c399f9c9fc3e1643e78694223b24d7b94b18 | [
"MIT"
] | null | null | null | src/gan/ccgan/cc_gui.py | matkir/Master_programs | 70c4c399f9c9fc3e1643e78694223b24d7b94b18 | [
"MIT"
] | null | null | null | from selector import gui
gui()
import os
os.remove('tmp.png')
| 10.5 | 24 | 0.730159 | 11 | 63 | 4.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 63 | 5 | 25 | 12.6 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f5a01b1ca0f5a28f883754620d6e517d9a88430b | 1,088 | py | Python | py_adb/common/interfaces.py | nettorta/py-adb | 12f483b61575db78ef485b82cd828ddda09f5648 | [
"MIT"
] | null | null | null | py_adb/common/interfaces.py | nettorta/py-adb | 12f483b61575db78ef485b82cd828ddda09f5648 | [
"MIT"
] | null | null | null | py_adb/common/interfaces.py | nettorta/py-adb | 12f483b61575db78ef485b82cd828ddda09f5648 | [
"MIT"
] | null | null | null | class AuthSigner(object):
"""Signer for use with authenticated ADB, introduced in 4.4.x/KitKat."""
def sign(self, data):
"""Signs given data using a private key."""
raise NotImplementedError()
def get_public_key(self):
"""Returns the public key in PEM format without headers or newl... | 22.666667 | 79 | 0.642463 | 116 | 1,088 | 5.956897 | 0.474138 | 0.382055 | 0.31259 | 0.151954 | 0.227207 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.261029 | 1,088 | 47 | 80 | 23.148936 | 0.856965 | 0.15625 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.034483 | 0 | 0 | 0.551724 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1912d5411292cea7e8a0bb98b619cf82b44293a7 | 184 | py | Python | osm/apps.py | dcopm999/django-osm | 7a5d87a4e64292b7726d4401f529020ead732c77 | [
"MIT"
] | 7 | 2021-08-19T07:18:21.000Z | 2021-09-13T19:39:18.000Z | osm/apps.py | dcopm999/django-osm | 7a5d87a4e64292b7726d4401f529020ead732c77 | [
"MIT"
] | 5 | 2021-04-22T06:42:42.000Z | 2021-09-11T15:21:22.000Z | osm/apps.py | dcopm999/django-osm | 7a5d87a4e64292b7726d4401f529020ead732c77 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class OsmConfig(AppConfig):
name = "osm"
verbose_name = _("OSM")
| 20.444444 | 54 | 0.717391 | 24 | 184 | 5.333333 | 0.75 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.173913 | 184 | 8 | 55 | 23 | 0.835526 | 0.092391 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
19209b415b12634958f1efb8484a45b0d4088f88 | 10 | py | Python | dataset/imageGenerateDataset.py | RickyDoge/WFGN | 88c70ad623f370fa76eb0b75a452c8f2c527ca6e | [
"MIT"
] | null | null | null | dataset/imageGenerateDataset.py | RickyDoge/WFGN | 88c70ad623f370fa76eb0b75a452c8f2c527ca6e | [
"MIT"
] | null | null | null | dataset/imageGenerateDataset.py | RickyDoge/WFGN | 88c70ad623f370fa76eb0b75a452c8f2c527ca6e | [
"MIT"
] | null | null | null | # For GAN
| 5 | 9 | 0.6 | 2 | 10 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 10 | 1 | 10 | 10 | 0.857143 | 0.7 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
193faff050827555e844ae3ee2776f7f3567ab60 | 586 | py | Python | math2/graph/__init__.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 2 | 2021-03-29T03:15:57.000Z | 2021-03-29T03:23:21.000Z | math2/graph/__init__.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 1 | 2021-04-07T11:07:17.000Z | 2021-04-07T11:07:17.000Z | math2/graph/__init__.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | null | null | null | from math2.graph.exceptions import NegativeCycleError
from math2.graph.graphs import AdjacencyLists, AdjacencyMatrix, Edge, EdgeList, Graph
from math2.graph.traversals import (BellmanFord, BreadthFirstSearch, DepthFirstSearch, ShortestPathFaster,
SingleSourceShortestPath, SingleSourc... | 65.111111 | 113 | 0.745734 | 40 | 586 | 10.825 | 0.475 | 0.062356 | 0.096998 | 0.189376 | 0.711316 | 0.498845 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.16041 | 586 | 8 | 114 | 73.25 | 0.873984 | 0 | 0 | 0 | 0 | 0 | 0.293515 | 0.076792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
196165a3974fc5ec7d79cd856cd799ecc896be51 | 568 | py | Python | MyExceptions.py | antek3737/JSPROJEKT | 01e3c46ad527bb706178a867f661f47bb1e57fcb | [
"MIT"
] | null | null | null | MyExceptions.py | antek3737/JSPROJEKT | 01e3c46ad527bb706178a867f661f47bb1e57fcb | [
"MIT"
] | null | null | null | MyExceptions.py | antek3737/JSPROJEKT | 01e3c46ad527bb706178a867f661f47bb1e57fcb | [
"MIT"
] | null | null | null |
class IllegalValueException(Exception):
def __init__(self, message):
super().__init__(message)
class IllegalCurrencyException(Exception):
def __init__(self, message):
super().__init__(message)
class IllegalCoinException(Exception):
def __init__(self, message):
super().__init__(m... | 22.72 | 50 | 0.72007 | 50 | 568 | 7.38 | 0.24 | 0.162602 | 0.216802 | 0.271003 | 0.636856 | 0.636856 | 0.636856 | 0.636856 | 0.520325 | 0 | 0 | 0 | 0.174296 | 568 | 24 | 51 | 23.666667 | 0.78678 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
270e47232019700b631b27cd1be3611da985b8aa | 251 | py | Python | examples/example_proj/dependency_app_fk/models.py | philsupertramp/dj-migration-test | 97ec4513b9848d96436907de7940841866895e3c | [
"MIT"
] | 4 | 2019-07-05T19:32:07.000Z | 2020-02-07T00:47:15.000Z | examples/example_proj_django_3/dependency_app_fk/models.py | philsupertramp/dj-migration-test | 97ec4513b9848d96436907de7940841866895e3c | [
"MIT"
] | 17 | 2019-08-23T07:21:23.000Z | 2021-09-22T18:44:26.000Z | examples/example_proj_django_3/dependency_app_fk/models.py | philsupertramp/dj-migration-test | 97ec4513b9848d96436907de7940841866895e3c | [
"MIT"
] | null | null | null | from django.db import models
class DepModFK(models.Model):
placeholder = models.BooleanField(default=True)
new_field = models.BooleanField(default=True)
class ExtensionModel(models.Model):
new_field = models.BooleanField(default=True)
| 22.818182 | 51 | 0.772908 | 30 | 251 | 6.4 | 0.5 | 0.28125 | 0.390625 | 0.453125 | 0.385417 | 0.385417 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131474 | 251 | 10 | 52 | 25.1 | 0.880734 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2710f5d9cd482a966d6f2e6173639fe6173ee516 | 73 | py | Python | Week 6/Exercises/calculator1.py | diegoamato/CS50x-Harvard | 68088df4b8e28660c3db2217053fb9bc0ec1b0e6 | [
"MIT"
] | 1 | 2022-03-02T21:08:05.000Z | 2022-03-02T21:08:05.000Z | Week 6/Exercises/calculator1.py | diegoamato/CS50x-Harvard | 68088df4b8e28660c3db2217053fb9bc0ec1b0e6 | [
"MIT"
] | null | null | null | Week 6/Exercises/calculator1.py | diegoamato/CS50x-Harvard | 68088df4b8e28660c3db2217053fb9bc0ec1b0e6 | [
"MIT"
] | null | null | null | import cs50
x = cs50.get_int("X: ")
y = cs50.get_int("Y: ")
print(x + y) | 14.6 | 23 | 0.589041 | 15 | 73 | 2.733333 | 0.466667 | 0.341463 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.178082 | 73 | 5 | 24 | 14.6 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
27112cf077236e002f03ce17cfe4a6875685d013 | 1,587 | py | Python | 8.string_to_integer_atoi/solution2.py | alviezhang/leetcode | 3f7517494d84a6570c102a687b20c68022973b08 | [
"MIT"
] | 1 | 2018-03-07T02:55:37.000Z | 2018-03-07T02:55:37.000Z | 8.string_to_integer_atoi/solution2.py | alviezhang/leetcode | 3f7517494d84a6570c102a687b20c68022973b08 | [
"MIT"
] | null | null | null | 8.string_to_integer_atoi/solution2.py | alviezhang/leetcode | 3f7517494d84a6570c102a687b20c68022973b08 | [
"MIT"
] | null | null | null | # coding: utf-8
MAX_INT = 2147483647
MIN_INT = -2147483648
class Solution(object):
def myAtoi(self, input_string):
"""
:type input_string: str
:rtype: int
"""
number = 0
sign = 1
i = 0
length = len(input_string)
while i < length and input_s... | 29.388889 | 81 | 0.559546 | 180 | 1,587 | 4.8 | 0.261111 | 0.243056 | 0.347222 | 0.243056 | 0.457176 | 0.449074 | 0.423611 | 0.289352 | 0.224537 | 0.135417 | 0 | 0.121454 | 0.289225 | 1,587 | 53 | 82 | 29.943396 | 0.644504 | 0.031506 | 0 | 0.135135 | 0 | 0 | 0.112957 | 0.041196 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.027027 | false | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2724876a2f39e113c876070f749a699c29bc23d7 | 72 | py | Python | src/crawler/__init__.py | haozhang1201/Crypto | 52f0ea1acd2ee8600f50146b656f61a9e00a9b2c | [
"MIT"
] | 1 | 2020-05-19T05:43:51.000Z | 2020-05-19T05:43:51.000Z | src/crawler/__init__.py | haozhang1201/Crypto | 52f0ea1acd2ee8600f50146b656f61a9e00a9b2c | [
"MIT"
] | null | null | null | src/crawler/__init__.py | haozhang1201/Crypto | 52f0ea1acd2ee8600f50146b656f61a9e00a9b2c | [
"MIT"
] | null | null | null | from .crawl import get_web_content
__all__ = [
'get_web_content'
]
| 12 | 34 | 0.722222 | 10 | 72 | 4.4 | 0.7 | 0.272727 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 72 | 5 | 35 | 14.4 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
274375fcc7a8e4d4487f27acc562e43f5527811b | 314 | py | Python | lst_intersection.py | FrancoisNadeau/loadutils | c51e641b62c588eaf2716c5af2d0468311dcae24 | [
"MIT"
] | null | null | null | lst_intersection.py | FrancoisNadeau/loadutils | c51e641b62c588eaf2716c5af2d0468311dcae24 | [
"MIT"
] | null | null | null | lst_intersection.py | FrancoisNadeau/loadutils | c51e641b62c588eaf2716c5af2d0468311dcae24 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def lst_intersection(lst1:list, lst2:list):
'''
Source: https://www.geeksforgeeks.org/python-intersection-two-lists/
'''
return [value for value in lst1 if value in set(lst2)]
def main():
return lst_intersection(lst1, lst2)
if __name__ == "__main__":
main()
| 20.933333 | 72 | 0.659236 | 42 | 314 | 4.690476 | 0.619048 | 0.152284 | 0.192893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.197452 | 314 | 14 | 73 | 22.428571 | 0.753968 | 0.286624 | 0 | 0 | 0 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 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 | 1 | 1 | 0 | 0 | 4 |
2798b1877d51cb00082375b1e78b7c05fe10a246 | 51 | py | Python | pkg/msgapi/models/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/msgapi/models/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/msgapi/models/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null |
from pkg.msgapi.models.apiuser import Msgapi_User
| 17 | 49 | 0.843137 | 8 | 51 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 51 | 2 | 50 | 25.5 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2799985519caa41e1cf83dff7e48a28e0230a791 | 58 | py | Python | utils/xbridge_custom_exceptions.py | Palem1988/blocknetdx-utils | 2d91f3a2b416ff49949cd105de733b4585e3c8b0 | [
"MIT"
] | null | null | null | utils/xbridge_custom_exceptions.py | Palem1988/blocknetdx-utils | 2d91f3a2b416ff49949cd105de733b4585e3c8b0 | [
"MIT"
] | null | null | null | utils/xbridge_custom_exceptions.py | Palem1988/blocknetdx-utils | 2d91f3a2b416ff49949cd105de733b4585e3c8b0 | [
"MIT"
] | 1 | 2019-10-02T23:40:17.000Z | 2019-10-02T23:40:17.000Z |
class ValidBlockNetException(Exception):
pass
| 9.666667 | 41 | 0.689655 | 4 | 58 | 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 58 | 5 | 42 | 11.6 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
27abc43abb1997ceffa48c452e931894cba685a6 | 65 | py | Python | contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd3e-5_2.py | hologerry/mmdetection | faea0079ce6c4651e59c481ddd53f99afaada961 | [
"Apache-2.0"
] | null | null | null | contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd3e-5_2.py | hologerry/mmdetection | faea0079ce6c4651e59c481ddd53f99afaada961 | [
"Apache-2.0"
] | null | null | null | contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd3e-5_2.py | hologerry/mmdetection | faea0079ce6c4651e59c481ddd53f99afaada961 | [
"Apache-2.0"
] | null | null | null | _base_ = './retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd3e-5.py'
| 32.5 | 64 | 0.846154 | 11 | 65 | 4.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0.046154 | 65 | 1 | 65 | 65 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.815385 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
27b8c19fd6801b8f6f49e49f78525e5e647245d9 | 11,325 | py | Python | 2020/2020_24a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2020/2020_24a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2020/2020_24a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | input = """nwswswnenwswsweswseswswnwswsweswsw
swseswsenwswnenwsesesenwseseesesenwenw
seswseswseswswseswwswneseswsese
nwwwsewenwwwwswwwe
seswwwseeseseseseseseswseswneneesew
eenewewweseneneneenene
nenenenenwnwwswseenwwneneenwneswnwnw
swneswwswwnewwwswwswwww
seseweewwnwwnwwsewwnwnenewnwne
nwwewewnwnwwwwnwswnwwsenwneww
sew... | 31.458333 | 79 | 0.895011 | 498 | 11,325 | 20.327309 | 0.7249 | 0.004445 | 0.002766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001819 | 0.077528 | 11,325 | 359 | 80 | 31.545961 | 0.967168 | 0 | 0 | 0.005797 | 0 | 0 | 0.866477 | 0.806827 | 0 | 1 | 0 | 0 | 0 | 1 | 0.005797 | false | 0 | 0.002899 | 0 | 0.014493 | 0.002899 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
27c89af104841b48bf362c80648d5f64e1b2014a | 79 | py | Python | Crawler/Zhihu/zhihuuser/Run.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | null | null | null | Crawler/Zhihu/zhihuuser/Run.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | 1 | 2020-12-11T06:21:32.000Z | 2020-12-11T06:21:32.000Z | Crawler/Zhihu/zhihuuser/Run.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | null | null | null | from scrapy.cmdline import execute
execute(['scrapy', 'crawl', 'zhihu_user'])
| 19.75 | 42 | 0.734177 | 10 | 79 | 5.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 79 | 3 | 43 | 26.333333 | 0.802817 | 0 | 0 | 0 | 0 | 0 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fd6ed51c1afd225e41cc8ffbbf493300aad51834 | 359 | py | Python | version/Default.py | TSRBerry/WAWebSessionTransfer | ce3de50306aa2eca3a673747234df2b8bf34c8cd | [
"MIT"
] | 2 | 2018-08-08T19:59:41.000Z | 2018-08-18T00:57:04.000Z | version/Default.py | TSRBerry/WAWebSessionTransfer | ce3de50306aa2eca3a673747234df2b8bf34c8cd | [
"MIT"
] | 1 | 2018-11-03T00:40:17.000Z | 2018-11-15T19:45:18.000Z | version/Default.py | jeliebig/WAWebSessionTransfer | ce3de50306aa2eca3a673747234df2b8bf34c8cd | [
"MIT"
] | null | null | null | from SessionHandler.SessionObject import SessionObject
from .Version import Version
class Default(Version):
@staticmethod
def is_version(wa_session: SessionObject) -> bool:
return "WAToken1" in wa_session.local_storage.keys() and "WAToken2" in wa_session.local_storage.keys()
def __init__(self, wa... | 29.916667 | 110 | 0.752089 | 43 | 359 | 6.023256 | 0.55814 | 0.138996 | 0.169884 | 0.123552 | 0.208494 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0.006689 | 0.167131 | 359 | 11 | 111 | 32.636364 | 0.859532 | 0 | 0 | 0 | 0 | 0 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
fd8c4704903f3adbb5f09ab446c6f0643ca8a5eb | 1,080 | py | Python | devices/models.py | vektorhalili/networkninja | bbae820a9dd240bca73eacfde51b80e83a4db3e4 | [
"MIT"
] | null | null | null | devices/models.py | vektorhalili/networkninja | bbae820a9dd240bca73eacfde51b80e83a4db3e4 | [
"MIT"
] | null | null | null | devices/models.py | vektorhalili/networkninja | bbae820a9dd240bca73eacfde51b80e83a4db3e4 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
# Create your models here.
class Device(models.Model):
name = models.CharField(max_length=30, unique=True)
type = models.CharField(max_length=3)
ipadd = models.GenericIPAddressField()
user = models.CharField(max_length=30)
password =... | 26.341463 | 56 | 0.712037 | 141 | 1,080 | 5.269504 | 0.333333 | 0.222073 | 0.266487 | 0.355316 | 0.484522 | 0.239569 | 0.239569 | 0.239569 | 0.239569 | 0.239569 | 0 | 0.023756 | 0.181481 | 1,080 | 40 | 57 | 27 | 0.816742 | 0.022222 | 0 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.032258 | 0.064516 | 0.096774 | 0.903226 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fdb9a96b0dec6f0340038bf9d83aff569d58f87d | 1,607 | py | Python | Zeus/migrations/0011_remove_event__class_remove_event_contact_and_more.py | spralja/PersonalCalendar | 28fa0180133a80ddffe73242b3591c084f4e3897 | [
"MIT"
] | null | null | null | Zeus/migrations/0011_remove_event__class_remove_event_contact_and_more.py | spralja/PersonalCalendar | 28fa0180133a80ddffe73242b3591c084f4e3897 | [
"MIT"
] | null | null | null | Zeus/migrations/0011_remove_event__class_remove_event_contact_and_more.py | spralja/PersonalCalendar | 28fa0180133a80ddffe73242b3591c084f4e3897 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-17 00:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Zeus', '0010_remove_calendar_calscale_remove_calendar_method_and_more'),
]
operations = [
migrations.RemoveField(
model_name='event',
... | 24.348485 | 82 | 0.498444 | 126 | 1,607 | 6.166667 | 0.365079 | 0.351351 | 0.435006 | 0.501931 | 0.65251 | 0.65251 | 0 | 0 | 0 | 0 | 0 | 0.019348 | 0.388923 | 1,607 | 65 | 83 | 24.723077 | 0.771894 | 0.028002 | 0 | 0.661017 | 1 | 0 | 0.146795 | 0.039103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016949 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fdc44c5a4d308fb3dce74715cc4bfe6897269f85 | 80,076 | py | Python | modules/enrich_instance_wizard_resources_rc.py | DigiArt-project/Content-interlinking-by-semantics | f7b1f639ab233922e260664eefcccfdbfab91b88 | [
"Apache-2.0"
] | null | null | null | modules/enrich_instance_wizard_resources_rc.py | DigiArt-project/Content-interlinking-by-semantics | f7b1f639ab233922e260664eefcccfdbfab91b88 | [
"Apache-2.0"
] | null | null | null | modules/enrich_instance_wizard_resources_rc.py | DigiArt-project/Content-interlinking-by-semantics | f7b1f639ab233922e260664eefcccfdbfab91b88 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file is part of the PROPheT tool.
Copyright (C) 2016: MKLab <pmitzias@iti.gr; mriga@iti.gr; skontopo@iti.gr>
http://mklab.iti.gr/project/prophet-ontology-populator
https://github.com/MKLab-ITI/prophet
Licensed under the Apache License, Version 2.0 (the "License").
You may use this f... | 64.163462 | 129 | 0.727371 | 19,320 | 80,076 | 3.01382 | 0.017081 | 0.006698 | 0.004328 | 0.003091 | 0.070328 | 0.040342 | 0.020867 | 0.015148 | 0.012417 | 0.012417 | 0 | 0.323275 | 0.016672 | 80,076 | 1,247 | 130 | 64.214916 | 0.4162 | 0.006456 | 0 | 0 | 0 | 0.981952 | 0 | 0 | 0 | 1 | 0.000101 | 0 | 0 | 1 | 0.001641 | false | 0 | 0.00082 | 0 | 0.002461 | 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 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8bf6a209ad695d52bdee7cce27bb8df817cb618f | 89 | py | Python | script/common/notify_email.py | shinhwagk/cmsfs | 652ee5779936ebf265364a098a10cde49349396e | [
"Apache-2.0"
] | null | null | null | script/common/notify_email.py | shinhwagk/cmsfs | 652ee5779936ebf265364a098a10cde49349396e | [
"Apache-2.0"
] | null | null | null | script/common/notify_email.py | shinhwagk/cmsfs | 652ee5779936ebf265364a098a10cde49349396e | [
"Apache-2.0"
] | null | null | null | def mail_send(to, subject, content):
print(to)
print(subject)
print(content)
| 17.8 | 36 | 0.662921 | 12 | 89 | 4.833333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 89 | 4 | 37 | 22.25 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e307409d16641ccd0ced8e6005c24adce165187b | 21 | py | Python | scalyr_agent/third_party/uuid_tp/__init__.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | null | null | null | scalyr_agent/third_party/uuid_tp/__init__.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | null | null | null | scalyr_agent/third_party/uuid_tp/__init__.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | null | null | null | __all__ = [ 'uuid' ]
| 10.5 | 20 | 0.52381 | 2 | 21 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 21 | 1 | 21 | 21 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e308a9c55685ba20e694be8514d8ed5a969204b8 | 827 | py | Python | codestar.py | codelucas/codestar | e6c3e31458da639097829b3abbc15c6df793ff20 | [
"Apache-2.0"
] | 2 | 2021-11-07T12:52:46.000Z | 2021-11-14T17:20:26.000Z | codestar.py | codelucas/codestar | e6c3e31458da639097829b3abbc15c6df793ff20 | [
"Apache-2.0"
] | null | null | null | codestar.py | codelucas/codestar | e6c3e31458da639097829b3abbc15c6df793ff20 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
CodeStar initial code.
Please use 4 space indenting. No tabs!
"""
__author__ = 'Lucas Ou-Yang, Jason Tanner'
__date__ = 'November 2nd, 2013'
__version__ = '0.0.1'
# Imports
from flask import Flask
from flask import render_template
#from flask.ext.scss import Scss
app = Flask(__nam... | 18.377778 | 43 | 0.659008 | 113 | 827 | 4.504425 | 0.477876 | 0.165029 | 0.196464 | 0.062868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014306 | 0.154776 | 827 | 44 | 44 | 18.795455 | 0.713877 | 0.217654 | 0 | 0 | 0 | 0 | 0.2208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.217391 | 0.521739 | 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 | 1 | 1 | 0 | 0 | 4 |
e30d8cf2d2dcd9df3dd02747c8d4df074767d4ed | 112 | py | Python | dhis2_core/src/dhis2/core/metadata/models/base.py | dhis2/dhis2-python-cli | d5ec976a5c04e6897756e3be14924ec74a4456fd | [
"BSD-3-Clause"
] | 7 | 2020-10-15T08:54:50.000Z | 2021-12-19T14:37:49.000Z | dhis2_core/src/dhis2/core/metadata/models/base.py | dhis2/dhis2-python-cli | d5ec976a5c04e6897756e3be14924ec74a4456fd | [
"BSD-3-Clause"
] | 3 | 2016-08-12T14:11:14.000Z | 2021-03-08T17:06:29.000Z | dhis2_core/src/dhis2/core/metadata/models/base.py | dhis2/dhis2-python-cli | d5ec976a5c04e6897756e3be14924ec74a4456fd | [
"BSD-3-Clause"
] | 4 | 2016-02-10T23:03:08.000Z | 2020-12-28T13:18:49.000Z | from pydantic import BaseModel
class Translation(BaseModel):
property: str
locale: str
value: str
| 14 | 30 | 0.714286 | 13 | 112 | 6.153846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 112 | 7 | 31 | 16 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e31f60f9798893bf1a3ec7d712eb8ddeb1ca5295 | 123 | py | Python | daily-questions/28-11-19/Sx3K#0449.py | fizify/vitcodealpha | 4d01eb643430b55731f36ff4c51d8c364e3f9eb8 | [
"Unlicense"
] | null | null | null | daily-questions/28-11-19/Sx3K#0449.py | fizify/vitcodealpha | 4d01eb643430b55731f36ff4c51d8c364e3f9eb8 | [
"Unlicense"
] | null | null | null | daily-questions/28-11-19/Sx3K#0449.py | fizify/vitcodealpha | 4d01eb643430b55731f36ff4c51d8c364e3f9eb8 | [
"Unlicense"
] | 1 | 2019-11-30T07:37:37.000Z | 2019-11-30T07:37:37.000Z | a = 1
b = 0
c = 0
i = 0
while True:
c = a + b
b = a
a = c
if i % 100000 == 0:
print(c)
i += 1
| 9.461538 | 23 | 0.341463 | 25 | 123 | 1.68 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 0.520325 | 123 | 12 | 24 | 10.25 | 0.508475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
e35ce345ffb309e4c525cd656f55d21cebee0343 | 1,230 | py | Python | netexp/primitives/flow/__init__.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | netexp/primitives/flow/__init__.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | netexp/primitives/flow/__init__.py | kjerabek/netexp | 362c200230ba7b2549adcedd4a9890492dad51c7 | [
"MIT"
] | null | null | null | from netexp.primitives.flow.tcpip_flow_info import TCPIPFlowInfo
from netexp.primitives.flow.tcpip_extended_biflow_info import TCPIPFlowExtendedBiFlowInfo
from netexp.primitives.flow.tcpip_extended_unibiflow_info import TCPIPFlowExtendedUniBiFlowInfo
from netexp.primitives.flow.tcpip_stats_biflow_info import TCPIPStats... | 37.272727 | 95 | 0.842276 | 143 | 1,230 | 6.895105 | 0.286713 | 0.10142 | 0.20284 | 0.243408 | 0.422921 | 0.363083 | 0.25355 | 0.091278 | 0 | 0 | 0 | 0 | 0.102439 | 1,230 | 32 | 96 | 38.4375 | 0.893116 | 0 | 0 | 0 | 0 | 0 | 0.007317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.521739 | 0 | 0.608696 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
e38093ba519b2866a1bb6fd7e86679880b18f989 | 65 | py | Python | tests/__init__.py | codehutlabs/randomjoke | f72d19b64e5a0c2481ccf26ac743be47a98c197b | [
"MIT"
] | null | null | null | tests/__init__.py | codehutlabs/randomjoke | f72d19b64e5a0c2481ccf26ac743be47a98c197b | [
"MIT"
] | null | null | null | tests/__init__.py | codehutlabs/randomjoke | f72d19b64e5a0c2481ccf26ac743be47a98c197b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for randomjoke."""
| 16.25 | 39 | 0.584615 | 8 | 65 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.169231 | 65 | 3 | 40 | 21.666667 | 0.685185 | 0.861538 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8b61710fbc35c929d4b045fb7044faf2e488115a | 10,871 | py | Python | sirius_ts.py | lnls-fac/sirius_wiki | 1995cffa149a55cd8f0184cf8a8f04492cfc347c | [
"MIT"
] | 2 | 2015-04-13T23:20:24.000Z | 2015-04-13T23:47:18.000Z | sirius_ts.py | lnls-fac/sirius_wiki | 1995cffa149a55cd8f0184cf8a8f04492cfc347c | [
"MIT"
] | 1 | 2015-04-14T04:20:36.000Z | 2015-04-14T04:20:52.000Z | sirius_ts.py | lnls-fac/sirius_wiki | 1995cffa149a55cd8f0184cf8a8f04492cfc347c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from parameter import Parameter
from definitions import ParameterDefinitions as Prms
ts_beam_energy = 3.0 # [GeV]
ts_lattice_length = 27.88 # [m]
ts_magnet_dipole_number = 2
ts_magnet_dipole_deflection_angle = 7.2 # [°]
ts_magnet_dipole_hardedge_length = 1.152 #... | 122.146067 | 410 | 0.721645 | 1,658 | 10,871 | 4.547045 | 0.071773 | 0.099748 | 0.079586 | 0.087943 | 0.912721 | 0.84547 | 0.764823 | 0.678605 | 0.574745 | 0.444887 | 0 | 0.008143 | 0.084997 | 10,871 | 88 | 411 | 123.534091 | 0.748869 | 0.01205 | 0 | 0 | 0 | 0.126761 | 0.411792 | 0.114283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028169 | 0 | 0.028169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8b6228d34ecdb0a73aef0e98e070186abf74470f | 449 | py | Python | drfsample/restsample/serializers.py | FatemeSima-Mirzabeiki/python_course | 387923cef58482457b7794f199aa2fc2acdc7fa1 | [
"Apache-2.0"
] | null | null | null | drfsample/restsample/serializers.py | FatemeSima-Mirzabeiki/python_course | 387923cef58482457b7794f199aa2fc2acdc7fa1 | [
"Apache-2.0"
] | null | null | null | drfsample/restsample/serializers.py | FatemeSima-Mirzabeiki/python_course | 387923cef58482457b7794f199aa2fc2acdc7fa1 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from ajaxsample.models import Poll,Choice,Vote
class VoteSerializer(serializers.ModelSerializer):
class Meta:
model = Vote
fields = '__all__'
class ChoiceSerializer(serializers.ModelSerializer):
class Meta:
model = Choice
fields = ... | 19.521739 | 52 | 0.685969 | 42 | 449 | 7.02381 | 0.452381 | 0.264407 | 0.315254 | 0.355932 | 0.40678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247216 | 449 | 23 | 53 | 19.521739 | 0.872781 | 0 | 0 | 0.428571 | 0 | 0 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4740b27736c420baf0cab0815b7c258eb96fa4d4 | 123 | py | Python | django_messages_bot/__init__.py | Almazishe/messagesDjangoBot | cd064c8afe83bddb891ccb628043809c391040bb | [
"MIT"
] | null | null | null | django_messages_bot/__init__.py | Almazishe/messagesDjangoBot | cd064c8afe83bddb891ccb628043809c391040bb | [
"MIT"
] | null | null | null | django_messages_bot/__init__.py | Almazishe/messagesDjangoBot | cd064c8afe83bddb891ccb628043809c391040bb | [
"MIT"
] | null | null | null | # Do not remove these 2 lines:
bot_token = '1490862295:AAHGXsPkRqS148toZA4bHu3RcZBKPjj4l5A'
app_name='django_messages_bot'
| 30.75 | 60 | 0.837398 | 15 | 123 | 6.6 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 0.089431 | 123 | 3 | 61 | 41 | 0.723214 | 0.227642 | 0 | 0 | 0 | 0 | 0.698925 | 0.494624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47626f8816de35c3269227309f93c223717ff5ad | 292 | py | Python | yes/errors.py | yescom/pyyes | 53d078e6c1e04fc03075fede5c1979f713bfbc3d | [
"MIT"
] | 1 | 2021-07-06T18:48:59.000Z | 2021-07-06T18:48:59.000Z | yes/errors.py | yescom/pyyes | 53d078e6c1e04fc03075fede5c1979f713bfbc3d | [
"MIT"
] | 1 | 2021-09-29T06:51:14.000Z | 2021-09-29T08:31:56.000Z | yes/errors.py | yescom/pyyes | 53d078e6c1e04fc03075fede5c1979f713bfbc3d | [
"MIT"
] | null | null | null | class YesError(Exception):
pass
class YesUserCanceledError(YesError):
pass
class YesUnknownIssuerError(YesError):
pass
class YesAccountSelectionRequested(YesError):
redirect_uri: str
class YesOAuthError(YesError):
oauth_error: str
oauth_error_description: str
| 14.6 | 45 | 0.763699 | 28 | 292 | 7.821429 | 0.5 | 0.123288 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174658 | 292 | 19 | 46 | 15.368421 | 0.908714 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.272727 | 0 | 0 | 0.727273 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
476402f7273a482f780f4fd173a6f258256b99ec | 50 | py | Python | tests/__init__.py | vsalvino/sphinx_wagtail_theme | df71275032df1621976d619bdceffaac6c76a76f | [
"MIT"
] | 10 | 2021-03-11T11:34:57.000Z | 2022-03-11T16:49:48.000Z | tests/__init__.py | vsalvino/sphinx_wagtail_theme | df71275032df1621976d619bdceffaac6c76a76f | [
"MIT"
] | 94 | 2021-03-10T10:59:53.000Z | 2022-03-31T10:44:04.000Z | tests/__init__.py | vsalvino/sphinx_wagtail_theme | df71275032df1621976d619bdceffaac6c76a76f | [
"MIT"
] | 9 | 2021-03-24T12:32:32.000Z | 2022-03-30T08:39:53.000Z | """Unit test package for sphinx_wagtail_theme."""
| 25 | 49 | 0.76 | 7 | 50 | 5.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 50 | 1 | 50 | 50 | 0.8 | 0.86 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4767baa5d550370924a7b4c60a503af91e99cb5f | 171 | py | Python | News_Portal_proj/app.py | mccuyper/News-Portal | a80d1c4a0ea227f5894e76ed090cf93abf337103 | [
"MIT"
] | null | null | null | News_Portal_proj/app.py | mccuyper/News-Portal | a80d1c4a0ea227f5894e76ed090cf93abf337103 | [
"MIT"
] | null | null | null | News_Portal_proj/app.py | mccuyper/News-Portal | a80d1c4a0ea227f5894e76ed090cf93abf337103 | [
"MIT"
] | null | null | null | import redis
rds = redis.Redis(
host='redis-15916.c290.ap-northeast-1-2.ec2.cloud.redislabs.com',
port=15916,
password='DQowUFB6tVGdxWTUMLiaFivRUqL7J3k5',
)
| 19 | 69 | 0.725146 | 21 | 171 | 5.904762 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.134503 | 171 | 8 | 70 | 21.375 | 0.702703 | 0 | 0 | 0 | 0 | 0.166667 | 0.523529 | 0.523529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4792ab3ed8df5b2f8d32718b70586dec4e3b35fd | 128 | py | Python | src/auto/staking.py | abstractSean/learning_numerai | 636eabceba70afae50f77a4cf3f95bdcaf0f36d9 | [
"MIT"
] | null | null | null | src/auto/staking.py | abstractSean/learning_numerai | 636eabceba70afae50f77a4cf3f95bdcaf0f36d9 | [
"MIT"
] | 5 | 2020-03-24T15:34:30.000Z | 2021-06-01T21:55:09.000Z | src/auto/staking.py | abstractSean/learning_numerai | 636eabceba70afae50f77a4cf3f95bdcaf0f36d9 | [
"MIT"
] | null | null | null | from .abs_state import AbsState
class Staking(AbsState):
def stake(self):
self._model.state = self._model.waiting
| 18.285714 | 47 | 0.710938 | 17 | 128 | 5.176471 | 0.705882 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195313 | 128 | 6 | 48 | 21.333333 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47abb0a13b14162a42112432d906ca32df3efd99 | 465 | py | Python | home/models.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | home/models.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | home/models.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class AllTask(models.Model):
taskName = models.CharField(max_length=30)
about = models.CharField(max_length=50)
dateTime = models.DateTimeField()
subDateTime = models.DateTimeField(blank=True, null=True)
status = models.CharField(max_length=... | 27.352941 | 61 | 0.724731 | 59 | 465 | 5.559322 | 0.559322 | 0.228659 | 0.27439 | 0.365854 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026042 | 0.174194 | 465 | 16 | 62 | 29.0625 | 0.828125 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
47b97001c9a143ffc9ddee7ae3bef966867e67e7 | 130 | py | Python | bugdemo/apps.py | paddymul/adminsortable2bug | 7c653e997e0ef23538dd4d1b3d4c35e775053f83 | [
"MIT"
] | null | null | null | bugdemo/apps.py | paddymul/adminsortable2bug | 7c653e997e0ef23538dd4d1b3d4c35e775053f83 | [
"MIT"
] | null | null | null | bugdemo/apps.py | paddymul/adminsortable2bug | 7c653e997e0ef23538dd4d1b3d4c35e775053f83 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class BugdemoConfig(AppConfig):
name = 'bugdemo'
| 16.25 | 39 | 0.792308 | 15 | 130 | 6.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 130 | 7 | 40 | 18.571429 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
47e6d57bd8feaf5631b9b5fddac53802ef50cc73 | 208 | py | Python | tgbotscenario/types.py | Abstract-X/tgbotscenario | bd79ff5548b9fa33c198cfda36c6533e35127dfc | [
"MIT"
] | 4 | 2021-07-12T17:40:41.000Z | 2022-02-20T17:55:45.000Z | tgbotscenario/types.py | Abstract-X/tgbotscenario | bd79ff5548b9fa33c198cfda36c6533e35127dfc | [
"MIT"
] | 1 | 2021-07-30T18:08:36.000Z | 2021-07-30T18:08:36.000Z | tgbotscenario/types.py | Abstract-X/tgbotscenario | bd79ff5548b9fa33c198cfda36c6533e35127dfc | [
"MIT"
] | 1 | 2021-07-25T15:59:34.000Z | 2021-07-25T15:59:34.000Z | from typing import Callable, Dict, Optional, Any
from tgbotscenario.common.scene import BaseScene
TelegramEvent = Any
TransitionSchemeDict = Dict[BaseScene, Dict[Callable, Dict[Optional[str], BaseScene]]]
| 26 | 86 | 0.802885 | 24 | 208 | 6.958333 | 0.583333 | 0.143713 | 0.239521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110577 | 208 | 7 | 87 | 29.714286 | 0.902703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9a0dbcce8172d2180e98d87bb2322a4c457966f1 | 26 | py | Python | kvcheetah/uix/__init__.py | Cybermals/kvcheetah | a8d2244e0d848ba13f36bb5c27acb3613e222205 | [
"MIT"
] | 3 | 2021-01-26T22:07:28.000Z | 2021-02-15T22:16:41.000Z | kvcheetah/uix/__init__.py | Cybermals/kvcheetah | a8d2244e0d848ba13f36bb5c27acb3613e222205 | [
"MIT"
] | null | null | null | kvcheetah/uix/__init__.py | Cybermals/kvcheetah | a8d2244e0d848ba13f36bb5c27acb3613e222205 | [
"MIT"
] | 1 | 2021-06-24T14:28:29.000Z | 2021-06-24T14:28:29.000Z | """kvcheetah - UI API"""
| 13 | 25 | 0.538462 | 3 | 26 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 1 | 26 | 26 | 0.666667 | 0.692308 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9a30511cb096fb9e64fa1ed034413ab6b79da711 | 12,264 | py | Python | Games/TickTackToe.py | Qinusty/Telnet-Game-Server | 0451f2bc7d6b20270872da636756cc8f41b6e38f | [
"MIT"
] | null | null | null | Games/TickTackToe.py | Qinusty/Telnet-Game-Server | 0451f2bc7d6b20270872da636756cc8f41b6e38f | [
"MIT"
] | null | null | null | Games/TickTackToe.py | Qinusty/Telnet-Game-Server | 0451f2bc7d6b20270872da636756cc8f41b6e38f | [
"MIT"
] | null | null | null | from Games.Game import Game
import random
class TickTackToe(Game):
def __init__(self):
self.gameover = True
self.player = None
self.square = [' ', '|', ' ', '|', ' ', '\n', '-+-+-', '\n', ' ', '|', ' ', '|', ' ', '\n', '-+-+-', '\n', ' ', '|',
' ', '|', ' ', '\n']... | 43.031579 | 190 | 0.470727 | 1,263 | 12,264 | 4.458432 | 0.10768 | 0.34097 | 0.107974 | 0.048304 | 0.746937 | 0.738768 | 0.701474 | 0.690819 | 0.662049 | 0.61783 | 0 | 0.033206 | 0.381197 | 12,264 | 284 | 191 | 43.183099 | 0.708789 | 0.015574 | 0 | 0.614173 | 0 | 0.003937 | 0.07095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.007874 | 0.007874 | 0.334646 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9a4e90bfd960ee7446068ef8ce74cd6d593e20bd | 149 | py | Python | Solutions/p0007.py | JCMarcoG/project_euler | 110e7207f285986912e56a4e9ccc5654a716d7a1 | [
"Unlicense"
] | null | null | null | Solutions/p0007.py | JCMarcoG/project_euler | 110e7207f285986912e56a4e9ccc5654a716d7a1 | [
"Unlicense"
] | null | null | null | Solutions/p0007.py | JCMarcoG/project_euler | 110e7207f285986912e56a4e9ccc5654a716d7a1 | [
"Unlicense"
] | null | null | null | # Solution to Problem 0007
from utils import nth_prime
def solution():
return nth_prime(10001)
if __name__ == "__main__":
print(solution()) | 13.545455 | 27 | 0.718121 | 20 | 149 | 4.85 | 0.8 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07377 | 0.181208 | 149 | 11 | 28 | 13.545455 | 0.721311 | 0.161074 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
9a657e5960cea84fb9bad1caa36a8769febb6e45 | 198 | py | Python | src/modules/data/string_shorten.py | KasinSparks/DND-Inventory | 241b8ff932f5e31025717b6acf9fcc498f08cd6c | [
"MIT"
] | 1 | 2021-10-30T14:59:59.000Z | 2021-10-30T14:59:59.000Z | src/modules/data/string_shorten.py | KasinSparks/DND-Inventory | 241b8ff932f5e31025717b6acf9fcc498f08cd6c | [
"MIT"
] | null | null | null | src/modules/data/string_shorten.py | KasinSparks/DND-Inventory | 241b8ff932f5e31025717b6acf9fcc498f08cd6c | [
"MIT"
] | 1 | 2020-10-12T18:43:43.000Z | 2020-10-12T18:43:43.000Z | def shorten_string(string : str, max_length : int):
shortened_name = string
if len(string) > max_length:
shortened_name = string[0:max_length] + '...'
return shortened_name | 28.285714 | 53 | 0.661616 | 25 | 198 | 4.96 | 0.52 | 0.217742 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.232323 | 198 | 7 | 54 | 28.285714 | 0.809211 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7bd6b10ce7f00f850a64373d069aeb47c96fc5f3 | 248 | py | Python | packages/gst-plugins-bad.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null | packages/gst-plugins-bad.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null | packages/gst-plugins-bad.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null | GstreamerPackage ('gstreamer', 'gst-plugins-bad', '0.10.23', configure_flags = [
' --disable-gtk-doc',
' --with-plugins=quicktime',
' --disable-apexsink',
' --disable-bz2',
' --disable-metadata',
' --disable-oss4',
' --disable-theoradec'
])
| 24.8 | 80 | 0.637097 | 26 | 248 | 6.038462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031963 | 0.116935 | 248 | 9 | 81 | 27.555556 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0.649194 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7bd98b86f02b099ccc7b3de97bcfdefdbdc5fd6b | 118 | py | Python | 03-Lists_Basics/1-Courses.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 03-Lists_Basics/1-Courses.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 03-Lists_Basics/1-Courses.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | n = int(input())
list_names = []
for i in range(n):
name = input()
list_names.append(name)
print(list_names) | 14.75 | 27 | 0.635593 | 19 | 118 | 3.789474 | 0.631579 | 0.375 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 118 | 8 | 28 | 14.75 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7be39d7c758be5ce7b57817dd4818527ed1e5645 | 134 | py | Python | learn/02week/code/main.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | learn/02week/code/main.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | learn/02week/code/main.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | import my_module as mm
import numpy as np
from my_pkg.convert import lb_to_oz
mm.greet('Tyler')
print(mm.flavor)
print(lb_to_oz(5))
| 14.888889 | 35 | 0.776119 | 28 | 134 | 3.5 | 0.642857 | 0.081633 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.126866 | 134 | 8 | 36 | 16.75 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7bec08d703e5e6bf441134e832e74f2157adb882 | 130 | py | Python | djh_app/admin.py | asvbkr/ttBotDemo | f663be0e9be467f18deddeb1f1d75defbacd2155 | [
"Apache-2.0"
] | 1 | 2019-07-30T10:12:59.000Z | 2019-07-30T10:12:59.000Z | djh_app/admin.py | asvbkr/ttBotDemo | f663be0e9be467f18deddeb1f1d75defbacd2155 | [
"Apache-2.0"
] | 8 | 2019-07-30T10:12:56.000Z | 2021-09-22T17:53:49.000Z | djh_app/admin.py | asvbkr/ttBotDemo | f663be0e9be467f18deddeb1f1d75defbacd2155 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:42:11.000Z | 2019-07-30T10:13:11.000Z | from django.contrib import admin
from djh_app.models import Greeting
# Register your models here.
admin.site.register(Greeting)
| 18.571429 | 35 | 0.815385 | 19 | 130 | 5.526316 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 130 | 6 | 36 | 21.666667 | 0.921053 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d0013ea2f957f02c60d6c4ddf4cbb617659d571a | 83 | py | Python | gift/apps.py | raymondyegon/awards | 2b13fffcf0736b0b5033147b5744a0fc8d1b6c98 | [
"MIT"
] | null | null | null | gift/apps.py | raymondyegon/awards | 2b13fffcf0736b0b5033147b5744a0fc8d1b6c98 | [
"MIT"
] | 12 | 2020-02-12T00:25:14.000Z | 2022-03-11T23:48:53.000Z | gift/apps.py | raymondyegon/awards | 2b13fffcf0736b0b5033147b5744a0fc8d1b6c98 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GiftConfig(AppConfig):
name = 'gift'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d00e4b494b8370ffc15e9b2f31948476e0f865de | 139 | py | Python | Exercicios/script003.py | jacksonmoreira/Curso-em-video-mundo1- | 84b09bd3b61417fab483acf9f1a38e0cf6b95a80 | [
"MIT"
] | null | null | null | Exercicios/script003.py | jacksonmoreira/Curso-em-video-mundo1- | 84b09bd3b61417fab483acf9f1a38e0cf6b95a80 | [
"MIT"
] | null | null | null | Exercicios/script003.py | jacksonmoreira/Curso-em-video-mundo1- | 84b09bd3b61417fab483acf9f1a38e0cf6b95a80 | [
"MIT"
] | null | null | null | n1 = int(input('Digite o primeiro número.'))
n2 = int(input('Digite o segundo número.'))
print('A soma dos números é: {}'.format(n1 + n2))
| 34.75 | 49 | 0.661871 | 23 | 139 | 4 | 0.695652 | 0.173913 | 0.304348 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.143885 | 139 | 3 | 50 | 46.333333 | 0.739496 | 0 | 0 | 0 | 0 | 0 | 0.52518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d013c090209b9d6c3167b5d6298a766041fc5c52 | 25 | py | Python | plugin/core/version.py | rnzhao/LSP | 767671089a6e4a0fa42f879ab910a8fa3c857426 | [
"MIT"
] | null | null | null | plugin/core/version.py | rnzhao/LSP | 767671089a6e4a0fa42f879ab910a8fa3c857426 | [
"MIT"
] | null | null | null | plugin/core/version.py | rnzhao/LSP | 767671089a6e4a0fa42f879ab910a8fa3c857426 | [
"MIT"
] | null | null | null | __version__ = (1, 15, 0)
| 12.5 | 24 | 0.6 | 4 | 25 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.2 | 25 | 1 | 25 | 25 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d020d97133ec4407f4743dbfea47668af397b0e3 | 68 | py | Python | profile_generator/model/color/white_point.py | nethy/profile-generator | 9bc54bed36b84b45902d75a273739480b4ff2204 | [
"MIT"
] | null | null | null | profile_generator/model/color/white_point.py | nethy/profile-generator | 9bc54bed36b84b45902d75a273739480b4ff2204 | [
"MIT"
] | null | null | null | profile_generator/model/color/white_point.py | nethy/profile-generator | 9bc54bed36b84b45902d75a273739480b4ff2204 | [
"MIT"
] | null | null | null | D65_XYZ = [0.95047, 1.0, 1.08883]
D50_XYZ = [0.96422, 1.0, 0.82521]
| 22.666667 | 33 | 0.617647 | 16 | 68 | 2.5 | 0.5625 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.551724 | 0.147059 | 68 | 2 | 34 | 34 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d044b65464e7c52c707884e46014cf0244e434c8 | 112 | py | Python | tests/test_doctest.py | JustinAzoff/python-cymruwhois | 022e16d7827b73f535ed6a347553a498ff4ceb1c | [
"MIT"
] | 34 | 2015-04-18T14:12:40.000Z | 2022-03-12T03:28:35.000Z | tests/test_doctest.py | JustinAzoff/python-cymruwhois | 022e16d7827b73f535ed6a347553a498ff4ceb1c | [
"MIT"
] | 7 | 2015-01-30T20:22:47.000Z | 2017-07-21T12:51:55.000Z | tests/test_doctest.py | JustinAzoff/python-cymruwhois | 022e16d7827b73f535ed6a347553a498ff4ceb1c | [
"MIT"
] | 15 | 2015-01-30T18:10:04.000Z | 2022-03-12T03:28:37.000Z | import doctest, cymruwhois
def test_doctest():
fail, ok = doctest.testmod(cymruwhois)
assert fail == 0
| 18.666667 | 42 | 0.705357 | 14 | 112 | 5.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.196429 | 112 | 5 | 43 | 22.4 | 0.855556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d090e63a788cd704fd1c8dae30240a87a45d3078 | 47 | py | Python | eos_accounts/gunicorn_settings.py | kpm2018/eos_account_creator | 6b55bb196c786adc78e47ab8309859f3cc401b58 | [
"MIT"
] | 45 | 2018-06-20T21:43:28.000Z | 2021-11-06T15:56:05.000Z | eos_accounts/gunicorn_settings.py | kpm2018/eos_account_creator | 6b55bb196c786adc78e47ab8309859f3cc401b58 | [
"MIT"
] | 2 | 2018-07-09T08:52:40.000Z | 2019-06-04T02:29:27.000Z | eos_accounts/gunicorn_settings.py | kpm2018/eos_account_creator | 6b55bb196c786adc78e47ab8309859f3cc401b58 | [
"MIT"
] | 27 | 2018-06-21T15:51:15.000Z | 2022-02-14T15:34:48.000Z | bind = "unix:/tmp/gunicorn.sock"
workers = "5"
| 15.666667 | 32 | 0.659574 | 7 | 47 | 4.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.12766 | 47 | 2 | 33 | 23.5 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0.510638 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d0a0f75bf4b3fd45bf56fadd5ed9a9442d783cf3 | 40 | py | Python | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/functions/in_1.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 8 | 2021-01-19T21:15:54.000Z | 2022-02-23T19:16:25.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/functions/in_1.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 4 | 2020-11-17T14:28:25.000Z | 2022-02-24T07:54:28.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/functions/in_1.py | nbirillo/ast-transformations | 717706765a2da29087a0de768fc851698886dd65 | [
"MIT"
] | 1 | 2022-02-23T19:16:30.000Z | 2022-02-23T19:16:30.000Z | # Invalid function definition
def fun(); | 20 | 29 | 0.775 | 5 | 40 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 2 | 30 | 20 | 0.885714 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d0b4aef50d444f66d9d21d140f6cc82a4e1101f2 | 9,527 | py | Python | mu0/Controler.py | Danni4real/Mu0 | bde72841c7904407d5301c26632cc7056c7d3a2b | [
"MIT"
] | null | null | null | mu0/Controler.py | Danni4real/Mu0 | bde72841c7904407d5301c26632cc7056c7d3a2b | [
"MIT"
] | null | null | null | mu0/Controler.py | Danni4real/Mu0 | bde72841c7904407d5301c26632cc7056c7d3a2b | [
"MIT"
] | null | null | null | from Gates import *
from Reg import *
from Mem import *
ir_en = 0
pc_en = 0
acc_en = 0
read_en = 0
write_en = 0
x_sel = 0
y_sel = 0
addr_sel = 0
m = [0, 0]
def f_to_ir_en(f0, f1, f2, state):
return not_gate(state)
def f_to_addr_sel(f0, f1, f2, state):
return state
def f_to_pc_en(f0, f1... | 28.103245 | 165 | 0.577831 | 2,050 | 9,527 | 2.386341 | 0.032683 | 0.214636 | 0.194603 | 0.103025 | 0.754497 | 0.735487 | 0.684178 | 0.600572 | 0.385119 | 0.376942 | 0 | 0.121479 | 0.22494 | 9,527 | 338 | 166 | 28.186391 | 0.541035 | 0 | 0 | 0.257962 | 0 | 0 | 0.103086 | 0.003044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063694 | false | 0 | 0.009554 | 0.025478 | 0.130573 | 0.66879 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d0da3e5fae52a2592d48ee6d5d78f9e8dd219928 | 164 | py | Python | suites/API/DatabaseApi/ContractFeePool.py | echoprotocol/pytests | 5dce698558c2ba703aea03aab79906af1437da5d | [
"MIT"
] | 1 | 2021-03-12T05:17:02.000Z | 2021-03-12T05:17:02.000Z | suites/API/DatabaseApi/ContractFeePool.py | echoprotocol/pytests | 5dce698558c2ba703aea03aab79906af1437da5d | [
"MIT"
] | 1 | 2019-11-19T12:10:59.000Z | 2019-11-19T12:10:59.000Z | suites/API/DatabaseApi/ContractFeePool.py | echoprotocol/pytests | 5dce698558c2ba703aea03aab79906af1437da5d | [
"MIT"
] | 2 | 2019-04-29T10:46:48.000Z | 2019-10-29T10:01:03.000Z | # -*- coding: utf-8 -*-
import lemoncheesecake.api as lcc
@lcc.suite("ContractFeePool")
@lcc.tags("database_api_second_pipeline")
class ContractFeePool:
pass
| 18.222222 | 41 | 0.737805 | 20 | 164 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.121951 | 164 | 8 | 42 | 20.5 | 0.8125 | 0.128049 | 0 | 0 | 0 | 0 | 0.304965 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d0e9d701a1c653eab8a248476ffe09b4b8a261ca | 185 | py | Python | examples/data/divide2range.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | examples/data/divide2range.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | examples/data/divide2range.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | import numpy as np
#DataIn = np.loadtxt('ewe_mode0.txt')
DataIn = np.loadtxt('picked_das_decon.txt')
#print(DataIn)
print(DataIn[:,0])
print(DataIn[:,1])
print(DataIn[:,1]/DataIn[:,0])
| 23.125 | 43 | 0.702703 | 30 | 185 | 4.233333 | 0.5 | 0.346457 | 0.23622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.075676 | 185 | 7 | 44 | 26.428571 | 0.71345 | 0.264865 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d0f3f5bd88f3d1762df1e466f4b0e70d9c10a28b | 198 | py | Python | bark/runtime/commons/__init__.py | RdecKa/bark | 4aa4c901417e3a2c97050894ec61fcb57cc94e6e | [
"MIT"
] | 174 | 2019-04-03T11:37:37.000Z | 2022-03-27T09:14:38.000Z | bark/runtime/commons/__init__.py | RdecKa/bark | 4aa4c901417e3a2c97050894ec61fcb57cc94e6e | [
"MIT"
] | 192 | 2019-04-05T09:41:40.000Z | 2022-03-03T14:14:28.000Z | bark/runtime/commons/__init__.py | RdecKa/bark | 4aa4c901417e3a2c97050894ec61fcb57cc94e6e | [
"MIT"
] | 55 | 2019-04-05T13:22:46.000Z | 2022-01-21T07:03:41.000Z | from .parameters import ParameterServer
from .xodr_parser import XodrParser
from .model_json_conversion import ModelJsonConversion
__all__ = ["ParameterServer", "XodrParser","ModelJsonConversion"]
| 33 | 65 | 0.843434 | 19 | 198 | 8.421053 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085859 | 198 | 5 | 66 | 39.6 | 0.883978 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ef72b7a63a24d7d62f1cd16fc2b64b6d9442e542 | 148 | py | Python | area (broken).py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null | area (broken).py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null | area (broken).py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null | firstnum=input("Please enter the first number")
secondnum=input("Please enter the second number")
print("The area is "+firstnum*secondnum+"cm2")
| 37 | 50 | 0.756757 | 21 | 148 | 5.333333 | 0.619048 | 0.196429 | 0.285714 | 0.339286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.114865 | 148 | 3 | 51 | 49.333333 | 0.847328 | 0 | 0 | 0 | 0 | 0 | 0.510345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ef982ae75722b7f349e1b98e46cc786627765633 | 4,907 | py | Python | tests/test_tag.py | cjeanner/git_wrapper | a809af53fac3ba77c927fe56901fc8d3f5189019 | [
"MIT"
] | null | null | null | tests/test_tag.py | cjeanner/git_wrapper | a809af53fac3ba77c927fe56901fc8d3f5189019 | [
"MIT"
] | null | null | null | tests/test_tag.py | cjeanner/git_wrapper | a809af53fac3ba77c927fe56901fc8d3f5189019 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""Tests for GitTag"""
from mock import patch
import git
import pytest
from git_wrapper import exceptions
from git_wrapper.repo import GitRepo
def test_create_tag(mock_repo):
"""
GIVEN GitRepo is initialized with a path and repo
WHEN tag.create is called with a valid name and ref... | 31.056962 | 78 | 0.699409 | 740 | 4,907 | 4.452703 | 0.105405 | 0.053414 | 0.050986 | 0.060698 | 0.821548 | 0.753566 | 0.708042 | 0.642489 | 0.641578 | 0.641578 | 0 | 0.006155 | 0.205421 | 4,907 | 157 | 79 | 31.254777 | 0.838933 | 0.330956 | 0 | 0.5 | 0 | 0 | 0.151375 | 0.089434 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.15625 | false | 0 | 0.078125 | 0 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ef9e797d8d031bee25000db81365bdf99dae2812 | 104 | py | Python | testproject/testproject_app/apps.py | imrk97/Learning_django | 6f19dc1c69846feda67cccc82269f0aa70f911bc | [
"MIT"
] | null | null | null | testproject/testproject_app/apps.py | imrk97/Learning_django | 6f19dc1c69846feda67cccc82269f0aa70f911bc | [
"MIT"
] | null | null | null | testproject/testproject_app/apps.py | imrk97/Learning_django | 6f19dc1c69846feda67cccc82269f0aa70f911bc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TestprojectAppConfig(AppConfig):
name = 'testproject_app'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.