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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ad5cebaebfc45c709ee5e2afc5821fe88e796c9 | 1,780 | py | Python | smart-bookmarks-django/smart_bookmarks/core/interfaces.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | null | null | null | smart-bookmarks-django/smart_bookmarks/core/interfaces.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | 1 | 2021-03-10T12:22:14.000Z | 2021-03-10T12:22:14.000Z | smart-bookmarks-django/smart_bookmarks/core/interfaces.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | null | null | null | import abc
from dataclasses import dataclass
from typing import List, Optional, Sequence
from smart_bookmarks.core.models import Bookmark, Page
class CreateBookmarkInterface(abc.ABC):
@abc.abstractmethod
def create_bookmark(self, url: str) -> Bookmark:
"""TODO"""
@dataclass
class PageData:
titl... | 21.707317 | 75 | 0.685955 | 191 | 1,780 | 6.293194 | 0.303665 | 0.0599 | 0.133111 | 0.114809 | 0.27371 | 0.148087 | 0.094842 | 0.094842 | 0.094842 | 0 | 0 | 0 | 0.208427 | 1,780 | 81 | 76 | 21.975309 | 0.853087 | 0.02191 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0ad60b7e0838ae42d4399110f13c786448c3005d | 281 | py | Python | modules/runtimes/PrefabLua.py | threefoldtech/jumpscale_prefab9 | 75cb6267618d9087d4a9a7eaad121a14e497f07d | [
"Apache-2.0"
] | null | null | null | modules/runtimes/PrefabLua.py | threefoldtech/jumpscale_prefab9 | 75cb6267618d9087d4a9a7eaad121a14e497f07d | [
"Apache-2.0"
] | 31 | 2018-07-31T15:40:07.000Z | 2019-02-20T11:07:15.000Z | modules/runtimes/PrefabLua.py | threefoldtech/jumpscale_prefab | 75cb6267618d9087d4a9a7eaad121a14e497f07d | [
"Apache-2.0"
] | null | null | null | from jumpscale import j
app = j.tools.prefab._getBaseAppClass()
class PrefabLua(app):
NAME = "lua"
def package(self, name, server=''):
if server:
server = '--server=' + server
self.prefab.core.run("luarocks install %s %s" % (server, name))
| 20.071429 | 71 | 0.601423 | 34 | 281 | 4.941176 | 0.647059 | 0.214286 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252669 | 281 | 13 | 72 | 21.615385 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ae0fa03c55372ee815adc45b9952f7e256685c9 | 26,586 | py | Python | pythonocc/lib/OCC/ChFi2d.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 2 | 2017-10-30T15:51:48.000Z | 2020-11-04T02:23:36.000Z | pythonocc/lib/OCC/ChFi2d.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | null | null | null | pythonocc/lib/OCC/ChFi2d.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 4 | 2017-11-29T05:24:34.000Z | 2020-03-05T23:23:23.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ChFi2d.... | 35.120211 | 327 | 0.683555 | 3,108 | 26,586 | 5.576577 | 0.105856 | 0.060235 | 0.06237 | 0.051869 | 0.663109 | 0.486384 | 0.474613 | 0.447265 | 0.418244 | 0.399896 | 0 | 0.020427 | 0.232152 | 26,586 | 756 | 328 | 35.166667 | 0.828598 | 0.349733 | 0 | 0.206897 | 1 | 0 | 0.024265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180077 | false | 0.011494 | 0.076628 | 0.007663 | 0.509579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0aeb24969c355b039311c262ed067542c11ea60f | 3,725 | py | Python | metrices1.py | DevikalyanDas/Multiclass-Segmentation | 58a4ad3fb4bea753e53e109c62123ff26797a877 | [
"Apache-2.0"
] | 1 | 2021-04-21T12:37:49.000Z | 2021-04-21T12:37:49.000Z | metrices1.py | DevikalyanDas/Semantic-Segmentation-Pytorch | 58a4ad3fb4bea753e53e109c62123ff26797a877 | [
"Apache-2.0"
] | null | null | null | metrices1.py | DevikalyanDas/Semantic-Segmentation-Pytorch | 58a4ad3fb4bea753e53e109c62123ff26797a877 | [
"Apache-2.0"
] | null | null | null | import torch
def _threshold(x, threshold=None):
if threshold is not None:
return (x > threshold).type(x.dtype)
else:
return x
def make_one_hot(labels, classes):
one_hot = torch.FloatTensor(labels.size()[0], classes, labels.size()[2], labels.size()[3]).zero_().to(labels.device)
... | 35.141509 | 121 | 0.593826 | 541 | 3,725 | 3.857671 | 0.121996 | 0.053186 | 0.056061 | 0.034499 | 0.741255 | 0.741255 | 0.674173 | 0.643987 | 0.627695 | 0.627695 | 0 | 0.018868 | 0.274362 | 3,725 | 106 | 122 | 35.141509 | 0.753237 | 0.002953 | 0 | 0.646341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.012195 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0af3b693d57ac5b8b8c24f56b2796218115915c1 | 5,137 | py | Python | setup/setup_database.py | Gui-Luz/Empire | 6f5eeff5f46dd085e1317cb09b39853a2fce5d13 | [
"BSD-3-Clause"
] | 5,720 | 2017-02-02T13:59:40.000Z | 2022-03-31T09:50:10.000Z | setup/setup_database.py | VookiBoo/Empire | 5aae31e7de591282773d2c8498af04ee4e8778f5 | [
"BSD-3-Clause"
] | 866 | 2017-02-02T10:56:31.000Z | 2020-01-17T07:47:05.000Z | setup/setup_database.py | VookiBoo/Empire | 5aae31e7de591282773d2c8498af04ee4e8778f5 | [
"BSD-3-Clause"
] | 2,181 | 2017-02-04T10:28:41.000Z | 2022-03-31T04:36:56.000Z | #!/usr/bin/env python
import sqlite3, os, string, hashlib, random
###################################################
#
# Default values for the config
#
###################################################
# Staging Key is set up via environmental variable
# or via command line. By setting RANDOM a randomly
# selec... | 28.698324 | 221 | 0.642593 | 659 | 5,137 | 4.905918 | 0.37481 | 0.030931 | 0.030312 | 0.041138 | 0.154964 | 0.145067 | 0.128364 | 0.128364 | 0.128364 | 0.128364 | 0 | 0.019429 | 0.188437 | 5,137 | 178 | 222 | 28.859551 | 0.756057 | 0.268055 | 0 | 0.226087 | 0 | 0 | 0.628158 | 0.021289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.008696 | null | null | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0af6e2eadb4d9b50c467a824fa706d045a541dca | 445 | py | Python | wy_ctf_website/users/migrations/0007_user_rank.py | pattyjogal/wy_ctf_website | c248dcf9c5926b6534e8d8c0eae02ed220b07cde | [
"MIT"
] | null | null | null | wy_ctf_website/users/migrations/0007_user_rank.py | pattyjogal/wy_ctf_website | c248dcf9c5926b6534e8d8c0eae02ed220b07cde | [
"MIT"
] | null | null | null | wy_ctf_website/users/migrations/0007_user_rank.py | pattyjogal/wy_ctf_website | c248dcf9c5926b6534e8d8c0eae02ed220b07cde | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-11-21 06:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0006_user_terminal_password'),
]
operations = [
migrations.AddField... | 21.190476 | 49 | 0.611236 | 49 | 445 | 5.367347 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064615 | 0.269663 | 445 | 20 | 50 | 22.25 | 0.744615 | 0.150562 | 0 | 0 | 1 | 0 | 0.106667 | 0.072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0af72cf3b828c6eec9493810194b505ad11cc502 | 163 | py | Python | Unit_02/Exercise_02_06.py | icerovski/SoftUni_Python_Fundamentals | 4816304fcd459269b6a044c88b0cb7113657a986 | [
"MIT"
] | null | null | null | Unit_02/Exercise_02_06.py | icerovski/SoftUni_Python_Fundamentals | 4816304fcd459269b6a044c88b0cb7113657a986 | [
"MIT"
] | null | null | null | Unit_02/Exercise_02_06.py | icerovski/SoftUni_Python_Fundamentals | 4816304fcd459269b6a044c88b0cb7113657a986 | [
"MIT"
] | null | null | null | # 6. Math Power
def math_power(n, p):
power_output = n ** p
print(power_output)
number = float(input())
power = float(input())
math_power(number, power) | 16.3 | 25 | 0.662577 | 25 | 163 | 4.16 | 0.44 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.190184 | 163 | 10 | 26 | 16.3 | 0.780303 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e404949fb05b8a2e8735f93a8e3bf6f8c0a5b0c6 | 1,644 | py | Python | Diena_1_4_thonny/forloops.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | null | null | null | Diena_1_4_thonny/forloops.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | null | null | null | Diena_1_4_thonny/forloops.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | null | null | null | # # for loops are for definite iteration
#
# for n in range(10):
# print("Number is", n)
# # print("out of loop", n)
# for i in range(1, 11): # so careful of off-by-one errors
# print(f"I like this {i} better")
# my_name = "Valdis"
# for c in my_name: # c could be also char, or my_c, c is just shorter
# pr... | 28.344828 | 70 | 0.563869 | 273 | 1,644 | 3.285714 | 0.395604 | 0.080268 | 0.020067 | 0.036789 | 0.053512 | 0.053512 | 0.053512 | 0.053512 | 0 | 0 | 0 | 0.052808 | 0.274331 | 1,644 | 58 | 71 | 28.344828 | 0.699078 | 0.900852 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e40a7eab088beaf6a2ad1c3c0bd9fb206f824f43 | 5,329 | py | Python | sphinx/locale/__init__.py | sphinxjp/doc10 | 0f47a8091cfa976bac5033aa07ec9a39ab71e7f0 | [
"BSD-2-Clause"
] | 2 | 2019-03-03T00:04:36.000Z | 2020-10-06T16:22:38.000Z | sphinx/locale/__init__.py | sphinxjp/doc10 | 0f47a8091cfa976bac5033aa07ec9a39ab71e7f0 | [
"BSD-2-Clause"
] | null | null | null | sphinx/locale/__init__.py | sphinxjp/doc10 | 0f47a8091cfa976bac5033aa07ec9a39ab71e7f0 | [
"BSD-2-Clause"
] | 1 | 2019-03-03T00:04:38.000Z | 2019-03-03T00:04:38.000Z | # -*- coding: utf-8 -*-
"""
sphinx.locale
~~~~~~~~~~~~~
Locale utilities.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import gettext
import UserString
class _TranslationProxy(UserString.UserString, object):
"""Class for proxy s... | 26.251232 | 79 | 0.610058 | 618 | 5,329 | 4.943366 | 0.33657 | 0.062848 | 0.059574 | 0.055974 | 0.186579 | 0.140753 | 0.140753 | 0 | 0 | 0 | 0 | 0.002349 | 0.280916 | 5,329 | 202 | 80 | 26.381188 | 0.794885 | 0.217114 | 0 | 0.054688 | 0 | 0 | 0.092289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257813 | false | 0.007813 | 0.023438 | 0.1875 | 0.585938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7c24715734c0010d9582d80125f2d9915e146637 | 172,063 | py | Python | sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 49.048746 | 192 | 0.705875 | 19,759 | 172,063 | 5.971304 | 0.051622 | 0.014951 | 0.029274 | 0.037258 | 0.762643 | 0.722563 | 0.699704 | 0.666006 | 0.644393 | 0.630722 | 0 | 0.002464 | 0.191006 | 172,063 | 3,507 | 193 | 49.062732 | 0.845156 | 0.513411 | 0 | 0.627653 | 0 | 0 | 0.372125 | 0.179301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045659 | false | 0 | 0.001286 | 0 | 0.173633 | 0.012862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c26c186953548c8fe8503ae89eeb67b05e8ac59 | 277 | py | Python | Aulasatualizada/execicio_curso em video/execicio_ler_velocidadeDeumCarro.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | Aulasatualizada/execicio_curso em video/execicio_ler_velocidadeDeumCarro.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | Aulasatualizada/execicio_curso em video/execicio_ler_velocidadeDeumCarro.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | velocidade = float(input('Digite a velocidade atual do carro: '))
multa = (velocidade - 80) * 7
if velocidade > 80:
print('Você excedeu o limite de velocidade que é de 80 KM/h')
print('Sua multa é de R$ {:.2f}'.format(multa))
else:
print('Dirija com segurança! ')
| 30.777778 | 65 | 0.66426 | 43 | 277 | 4.27907 | 0.697674 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.198556 | 277 | 8 | 66 | 34.625 | 0.792793 | 0 | 0 | 0 | 0 | 0 | 0.483755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7c31b5f36f5fcde05331daba6eb7fb37b0d24746 | 18,596 | py | Python | pysnmp/MITEL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/MITEL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/MITEL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module MITEL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MITEL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:02:47 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 103.888268 | 3,875 | 0.766993 | 2,014 | 18,596 | 7.081927 | 0.114697 | 0.013602 | 0.018509 | 0.024679 | 0.358901 | 0.280586 | 0.24504 | 0.208932 | 0.182921 | 0.147164 | 0 | 0.082649 | 0.08975 | 18,596 | 178 | 3,876 | 104.47191 | 0.759969 | 0.016778 | 0 | 0.018519 | 0 | 0 | 0.094774 | 0.016908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.018519 | 0.04321 | 0 | 0.160494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c34b15d9be364634711394e9a6a5f8337fd258e | 4,750 | py | Python | DQMServices/Components/python/test/SELECT_NONE.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DQMServices/Components/python/test/SELECT_NONE.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | DQMServices/Components/python/test/SELECT_NONE.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | # Auto generated configuration file
# using:
# Revision: 1.372.2.1
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: SELECT -s NONE --filein=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A7... | 52.777778 | 329 | 0.717053 | 531 | 4,750 | 6.376648 | 0.372881 | 0.056704 | 0.055227 | 0.100709 | 0.359716 | 0.357944 | 0.357944 | 0.357944 | 0.357944 | 0.357944 | 0 | 0.207836 | 0.118737 | 4,750 | 89 | 330 | 53.370787 | 0.601051 | 0.569263 | 0 | 0 | 1 | 0.054054 | 0.258689 | 0.199603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c352a9d7d1da94d78ff62995ecbaf9e7e3e0fb1 | 399 | py | Python | 0x03-python-data_structures/6-print_matrix_integer.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | 1 | 2021-04-26T03:45:12.000Z | 2021-04-26T03:45:12.000Z | 0x03-python-data_structures/6-print_matrix_integer.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | null | null | null | 0x03-python-data_structures/6-print_matrix_integer.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | 1 | 2022-02-02T02:44:35.000Z | 2022-02-02T02:44:35.000Z | #!/usr/bin/python3
def print_matrix_integer(matrix=[[]]):
"prints a matrix of integers"
row_len = len(matrix)
col_len = len(matrix[0])
for i in range(row_len):
for j in range(col_len):
if j != col_len - 1:
print("{:d}".format(matrix[i][j]), end=' ')
else... | 26.6 | 59 | 0.501253 | 55 | 399 | 3.509091 | 0.472727 | 0.093264 | 0.124352 | 0.186529 | 0.238342 | 0.238342 | 0.238342 | 0 | 0 | 0 | 0 | 0.010949 | 0.313283 | 399 | 14 | 60 | 28.5 | 0.693431 | 0.112782 | 0 | 0.181818 | 0 | 0 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7c43a8136660a4c98e3af608a002a33c2a1bd745 | 474 | py | Python | cap_1/vector.py | gillianomenezes/fluent_python | d9168f4bfc23f7bb7100dbc6bb7d5f4e0979cb61 | [
"MIT"
] | null | null | null | cap_1/vector.py | gillianomenezes/fluent_python | d9168f4bfc23f7bb7100dbc6bb7d5f4e0979cb61 | [
"MIT"
] | null | null | null | cap_1/vector.py | gillianomenezes/fluent_python | d9168f4bfc23f7bb7100dbc6bb7d5f4e0979cb61 | [
"MIT"
] | null | null | null | from math import hypot
class Vector():
def __init__(self, x=0, y=0):
self.x = x
self.y = y
def __repr__(self):
return 'Vector(%r, %r)' % (self.x, self.y)
def __abs__(self):
return hypot(self.x, self.y)
def __bool__(self):
return bool(abs(self))
def __add... | 21.545455 | 53 | 0.578059 | 72 | 474 | 3.472222 | 0.291667 | 0.12 | 0.096 | 0.08 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005831 | 0.276371 | 474 | 22 | 54 | 21.545455 | 0.723032 | 0 | 0 | 0 | 0 | 0 | 0.029474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.333333 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7c485d24dee3c03724eadb2b1f8a1de5059d103d | 214 | py | Python | directGuiOverrides/__init__.py | FaderKing/NodeEditor | 37e5d193ff08c834ba5e901af20a48fa2adfe133 | [
"BSD-2-Clause"
] | 20 | 2019-06-17T07:21:22.000Z | 2022-02-26T08:46:35.000Z | directGuiOverrides/__init__.py | bloomv/NodeEditor | e1bfb3d77cc5fbb409dca0ee14a5779255377c33 | [
"BSD-2-Clause"
] | 6 | 2019-10-09T14:10:19.000Z | 2022-02-09T10:42:58.000Z | directGuiOverrides/__init__.py | bloomv/NodeEditor | e1bfb3d77cc5fbb409dca0ee14a5779255377c33 | [
"BSD-2-Clause"
] | 2 | 2020-05-21T22:55:59.000Z | 2021-10-06T03:45:07.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Fireclaw the Fox"
__license__ = """
Simplified BSD (BSD 2-Clause) License.
See License.txt or http://opensource.org/licenses/BSD-2-Clause for more info
"""
| 21.4 | 76 | 0.691589 | 31 | 214 | 4.516129 | 0.806452 | 0.057143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016216 | 0.135514 | 214 | 9 | 77 | 23.777778 | 0.740541 | 0.17757 | 0 | 0 | 0 | 0.2 | 0.773256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c5116a1bf23f1c8f72ddac452fa021194a37a23 | 818 | py | Python | src/fate_of_dice/discord_bot/mapper/exception_mapper.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | src/fate_of_dice/discord_bot/mapper/exception_mapper.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | src/fate_of_dice/discord_bot/mapper/exception_mapper.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | # pylint: disable=function-redefined
from discord import File
from multipledispatch import dispatch
from fate_of_dice.common import DiceException
from fate_of_dice.resources.resource_handler import ResourceImageHandler
from .dice_embed import DiceEmbed
@dispatch(DiceException)
def from_exception(error: DiceException... | 37.181818 | 77 | 0.790954 | 93 | 818 | 6.806452 | 0.397849 | 0.056872 | 0.031596 | 0.044234 | 0.281201 | 0.281201 | 0.281201 | 0.135861 | 0 | 0 | 0 | 0.016416 | 0.106357 | 818 | 21 | 78 | 38.952381 | 0.849521 | 0.041565 | 0 | 0.133333 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0.02046 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c53f2794a25dd4c321b383ea5b4ff971880fcc6 | 2,471 | py | Python | src/message.py | t-keazirian/tic-tac-toe | df557aaa6f01e3bfaf68dea96f9994bc3815067b | [
"MIT"
] | null | null | null | src/message.py | t-keazirian/tic-tac-toe | df557aaa6f01e3bfaf68dea96f9994bc3815067b | [
"MIT"
] | 5 | 2022-03-18T19:07:56.000Z | 2022-03-25T17:00:50.000Z | src/message.py | t-keazirian/tic-tac-toe | df557aaa6f01e3bfaf68dea96f9994bc3815067b | [
"MIT"
] | null | null | null | from symtable import Symbol
from src.symbol import SymbolOptions
class Message:
def welcome_message(self):
return "Welcome to Tic Tac Toe"
def menu(self):
return """
Choose one of the options below:
1. Play game with symbols 'X' and 'O'
2. Choose your own symbols
"""
def display_symbols(... | 30.8875 | 100 | 0.684338 | 385 | 2,471 | 4.316883 | 0.32987 | 0.078219 | 0.033694 | 0.045728 | 0.132972 | 0.105295 | 0.102286 | 0.102286 | 0.055355 | 0 | 0 | 0.009106 | 0.244435 | 2,471 | 79 | 101 | 31.278481 | 0.881093 | 0 | 0 | 0.114754 | 0 | 0.016393 | 0.561311 | 0.008499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.278689 | false | 0 | 0.032787 | 0.245902 | 0.606557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7c5a77e2a1ce23417f0017cf4ff099328f5d1b10 | 18,416 | py | Python | py/orbit/sns_linac/LinacLatticeFactory.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 17 | 2018-02-09T23:39:06.000Z | 2022-03-04T16:27:04.000Z | py/orbit/sns_linac/LinacLatticeFactory.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 22 | 2017-05-31T19:40:14.000Z | 2021-09-24T22:07:47.000Z | py/orbit/sns_linac/LinacLatticeFactory.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 37 | 2016-12-08T19:39:35.000Z | 2022-02-11T19:59:34.000Z | """
The Linac Lattice Factory generates the Linac Accelerator Lattice from the information
inside of the LinacStructureTree instance which in turn was generated by the LinacParser.
The Linac Lattice Factory uses a predefined set of Linac Acc Elements. If you do not have
the LinacStructureTree instance you can create t... | 43.63981 | 130 | 0.656603 | 2,237 | 18,416 | 5.357622 | 0.157801 | 0.021527 | 0.015353 | 0.028786 | 0.405173 | 0.356028 | 0.344514 | 0.285607 | 0.239466 | 0.19975 | 0 | 0.012229 | 0.191844 | 18,416 | 421 | 131 | 43.743468 | 0.793052 | 0.163771 | 0 | 0.301538 | 1 | 0 | 0.098388 | 0.013341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003077 | 0.027692 | null | null | 0.009231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c610d50c06cb3ee608f2c36c0792f69ebb3e10d | 730 | py | Python | silicoin/types/name_puzzle_condition.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | silicoin/types/name_puzzle_condition.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | silicoin/types/name_puzzle_condition.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Dict, List, Tuple
from silicoin.types.blockchain_format.sized_bytes import bytes32
from silicoin.types.condition_with_args import ConditionWithArgs
from silicoin.types.condition_opcodes import ConditionOpcode
from silicoin.util.streamable import Streamable, streamab... | 30.416667 | 69 | 0.750685 | 86 | 730 | 6.27907 | 0.5 | 0.088889 | 0.094444 | 0.096296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.182192 | 730 | 23 | 70 | 31.73913 | 0.894472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c62db0306be25f4fc8e50737d4c0c27f19ad2cc | 501 | py | Python | spirit/user/admin/forms.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 3 | 2019-08-18T19:08:48.000Z | 2019-12-04T18:14:29.000Z | spirit/user/admin/forms.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 16 | 2015-08-10T18:28:18.000Z | 2022-03-11T23:12:48.000Z | spirit/user/admin/forms.py | StepanBakshayev/Spirit | 28c053983d8323801d022c5314af7fdff4569228 | [
"MIT"
] | 6 | 2018-06-25T02:17:53.000Z | 2020-12-08T01:09:32.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from django.contrib.auth import get_user_model
from ..models import UserProfile
User = get_user_model()
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ("username", "email", "is_active"... | 20.875 | 92 | 0.690619 | 58 | 501 | 5.741379 | 0.551724 | 0.06006 | 0.072072 | 0.138138 | 0.168168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.197605 | 501 | 24 | 92 | 20.875 | 0.825871 | 0.041916 | 0 | 0.153846 | 0 | 0 | 0.160752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c70673150e9728e482c46cf7232d12fc3748283 | 12,852 | py | Python | mypy/strconv.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | 1 | 2019-06-27T11:34:27.000Z | 2019-06-27T11:34:27.000Z | mypy/strconv.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | mypy/strconv.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | """Conversion of parse tree nodes to strings."""
import re
import os
import typing
from mypy.util import dump_tagged, short_type
import mypy.nodes
from mypy.visitor import NodeVisitor
class StrConv(NodeVisitor[str]):
"""Visitor for converting a Node to a human-readable string.
For example, an MypyFile... | 31.655172 | 78 | 0.523654 | 1,780 | 12,852 | 3.676404 | 0.168539 | 0.045844 | 0.10055 | 0.066473 | 0.384933 | 0.303637 | 0.27063 | 0.236247 | 0.198808 | 0.14349 | 0 | 0.004575 | 0.336679 | 12,852 | 405 | 79 | 31.733333 | 0.76305 | 0.114535 | 0 | 0.235088 | 0 | 0 | 0.043881 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 1 | 0.221053 | false | 0.007018 | 0.042105 | 0.133333 | 0.498246 | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7c74a588f5790e6804e6dcfa5bfa2f14a0bfb8ec | 886 | py | Python | irekua_rest_api/views/terms/terms.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | null | null | null | irekua_rest_api/views/terms/terms.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 11 | 2020-03-28T18:51:50.000Z | 2022-01-13T01:47:40.000Z | irekua_rest_api/views/terms/terms.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 1 | 2021-05-06T19:38:14.000Z | 2021-05-06T19:38:14.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework.viewsets import GenericViewSet
from rest_framework import mixins
from irekua_database import models
from irekua_rest_api import serializers
from irekua_rest_api import utils
from irekua_rest_api.permissions import IsAdmin
from irekua... | 31.642857 | 65 | 0.751693 | 93 | 886 | 6.935484 | 0.473118 | 0.093023 | 0.108527 | 0.131783 | 0.229457 | 0.15814 | 0 | 0 | 0 | 0 | 0 | 0.007013 | 0.19526 | 886 | 27 | 66 | 32.814815 | 0.897616 | 0.048533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.473684 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c75b32268cf60a3b8838de9ea219575855eee6f | 1,000 | py | Python | src/sample_mnist.py | entaku/kusarigama | 0c9aa2535efa121febf941626196d2b6b0c46cac | [
"MIT"
] | null | null | null | src/sample_mnist.py | entaku/kusarigama | 0c9aa2535efa121febf941626196d2b6b0c46cac | [
"MIT"
] | null | null | null | src/sample_mnist.py | entaku/kusarigama | 0c9aa2535efa121febf941626196d2b6b0c46cac | [
"MIT"
] | null | null | null | __author__ = 'team-entaku'
import sys
import cv2
import numpy as np
import math
import matplotlib.pyplot as plt
import scipy.cluster.vq
import scipy.spatial.distance as distance
from chainer import computational_graph as c
from matplotlib.pyplot import show
from scipy.cluster.hierarchy import linkage, dendrogram, fclus... | 25.641026 | 65 | 0.734 | 149 | 1,000 | 4.798658 | 0.489933 | 0.061538 | 0.095105 | 0.083916 | 0.117483 | 0.117483 | 0.117483 | 0.117483 | 0 | 0 | 0 | 0.044686 | 0.172 | 1,000 | 38 | 66 | 26.315789 | 0.818841 | 0 | 0 | 0.058824 | 0 | 0 | 0.047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.558824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c7e4b9d48fe85935c8f302fbd27aaad5a01c2dc | 2,748 | py | Python | statsmodels/stats/api.py | nikhase/statsmodels | e1822d4513f442002816bb898ca5794785f35c32 | [
"BSD-3-Clause"
] | 34 | 2018-07-13T11:30:46.000Z | 2022-01-05T13:48:10.000Z | statsmodels/stats/api.py | nikhase/statsmodels | e1822d4513f442002816bb898ca5794785f35c32 | [
"BSD-3-Clause"
] | 6 | 2015-08-28T16:59:03.000Z | 2019-04-12T22:29:01.000Z | statsmodels/stats/api.py | nikhase/statsmodels | e1822d4513f442002816bb898ca5794785f35c32 | [
"BSD-3-Clause"
] | 28 | 2015-04-01T20:02:25.000Z | 2021-07-03T00:09:28.000Z | # pylint: disable=W0611
from . import diagnostic
from .diagnostic import (
acorr_ljungbox, acorr_breusch_godfrey,
CompareCox, compare_cox, CompareJ, compare_j,
HetGoldfeldQuandt, het_goldfeldquandt,
het_breuschpagan, het_white, het_arch,
linear_harvey_collier,... | 41.636364 | 81 | 0.667758 | 265 | 2,748 | 6.569811 | 0.535849 | 0.034463 | 0.014934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006616 | 0.284935 | 2,748 | 65 | 82 | 42.276923 | 0.879389 | 0.020378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.396226 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c7f5ef2d93aab25e7cd8e029965187cadb3d94a | 1,048 | py | Python | flight/config.py | MissouriMRR/SUAS-2022 | 90076b4a62bef640ba19c5dcea12c639c2e82815 | [
"MIT"
] | 6 | 2021-10-05T23:24:36.000Z | 2022-03-25T19:05:39.000Z | flight/config.py | MissouriMRR/SUAS-2022 | 90076b4a62bef640ba19c5dcea12c639c2e82815 | [
"MIT"
] | 31 | 2021-10-05T04:20:24.000Z | 2022-03-25T01:08:57.000Z | flight/config.py | MissouriMRR/SUAS-2022 | 90076b4a62bef640ba19c5dcea12c639c2e82815 | [
"MIT"
] | null | null | null | """File to hold important constant values and configure drone upon startup"""
from mavsdk import System
MAX_ALT: int = 750 # Feet
TAKEOFF_ALT: int = 100 # Feet
WAIT: float = 2.0 # Seconds
async def config_params(drone: System) -> None:
"""
Sets certain parameters within the drone for flight
... | 33.806452 | 77 | 0.703244 | 159 | 1,048 | 4.415094 | 0.427673 | 0.099715 | 0.149573 | 0.179487 | 0.464387 | 0.464387 | 0.424501 | 0.264957 | 0.264957 | 0.205128 | 0 | 0.016847 | 0.207061 | 1,048 | 30 | 78 | 34.933333 | 0.827918 | 0.242366 | 0 | 0 | 0 | 0 | 0.152685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c81eada5ae12fbce12215e6a8b1ce2c79a4a204 | 319 | py | Python | dict/sorting.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 13 | 2017-08-22T12:26:07.000Z | 2021-07-29T16:13:50.000Z | dict/sorting.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 1 | 2021-02-08T10:24:33.000Z | 2021-02-08T10:24:33.000Z | dict/sorting.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 17 | 2018-08-13T11:10:33.000Z | 2021-07-29T16:14:02.000Z | #!/usr/bin/python
# sorting.py
items = { "coins": 7, "pens": 3, "cups": 2,
"bags": 1, "bottles": 4, "books": 5 }
for key in sorted(items.keys()):
print ("%s: %s" % (key, items[key]))
print ("####### #######")
for key in sorted(items.keys(), reverse=True):
print ("%s: %s" % (key, items[key]))
| 21.266667 | 46 | 0.498433 | 45 | 319 | 3.533333 | 0.6 | 0.075472 | 0.100629 | 0.176101 | 0.515723 | 0.515723 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.216301 | 319 | 14 | 47 | 22.785714 | 0.612 | 0.08464 | 0 | 0.285714 | 0 | 0 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7c9342c724f3a255cda4dcd772bf6d867549e4c1 | 638 | py | Python | wrangalytics/config/api.py | acastrounis/data-wrangler | 0288449e08ebd14393e1718e6ecf3765b0ec77b2 | [
"MIT"
] | 1 | 2018-07-02T22:18:24.000Z | 2018-07-02T22:18:24.000Z | wrangalytics/config/api.py | acastrounis/data-wrangler | 0288449e08ebd14393e1718e6ecf3765b0ec77b2 | [
"MIT"
] | null | null | null | wrangalytics/config/api.py | acastrounis/data-wrangler | 0288449e08ebd14393e1718e6ecf3765b0ec77b2 | [
"MIT"
] | null | null | null | def debug(x):
print(x)
### Notebook Magics
# %matplotlib inline
def juptyerConfig(pd, max_columns=500, max_rows = 500, float_format = '{:,.6f}', max_info_rows = 1000, max_categories = 500):
pd.options.display.max_columns = 500
pd.options.display.max_rows = 500
pd.options.display.float_format = float_f... | 35.444444 | 125 | 0.736677 | 85 | 638 | 5.282353 | 0.435294 | 0.100223 | 0.178174 | 0.169265 | 0.182628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.153605 | 638 | 18 | 126 | 35.444444 | 0.781481 | 0.221003 | 0 | 0 | 0 | 0 | 0.014257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c9382218072cea7ae62cceb5f5bdb2460abf759 | 477 | py | Python | app/screens/about.py | mobile-insight/mobileInsight-mobile | ec5d64bd400d9409cd7fe5a351cbcbbd3ed2e97a | [
"Apache-2.0"
] | 63 | 2017-06-30T15:04:15.000Z | 2021-11-15T09:58:45.000Z | app/screens/about.py | mobile-insight/mobileInsight-mobile | ec5d64bd400d9409cd7fe5a351cbcbbd3ed2e97a | [
"Apache-2.0"
] | 28 | 2017-07-24T15:51:50.000Z | 2022-03-13T21:13:09.000Z | app/screens/about.py | mobile-insight/mobileInsight-mobile | ec5d64bd400d9409cd7fe5a351cbcbbd3ed2e97a | [
"Apache-2.0"
] | 45 | 2017-07-02T13:16:37.000Z | 2022-03-22T07:26:13.000Z | import main_utils
from kivy.lang import Builder
from . import MobileInsightScreenBase
Builder.load_file('screens/about.kv')
class AboutScreen(MobileInsightScreenBase):
about_text = 'MobileInsight ' + main_utils.get_cur_version() + '\n'
with open('screens/about.txt', 'r') as content_file:
content = c... | 29.8125 | 79 | 0.716981 | 60 | 477 | 5.5 | 0.583333 | 0.136364 | 0.084848 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.178197 | 477 | 15 | 80 | 31.8 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7c93e9abea4c593e3eebab1fe5fab7c1887e41b5 | 939 | py | Python | lib/aquilon/worker/commands/cat_eon_id.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | lib/aquilon/worker/commands/cat_eon_id.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | lib/aquilon/worker/commands/cat_eon_id.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2011,2013,2015,2018 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Li... | 36.115385 | 74 | 0.752929 | 138 | 939 | 5.094203 | 0.702899 | 0.085349 | 0.036984 | 0.045519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028967 | 0.15442 | 939 | 25 | 75 | 37.56 | 0.856423 | 0.759318 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c97fb14320e96504234d197d99aeb8279d8b99f | 281 | py | Python | code/ch14/chord.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 66 | 2017-01-11T14:37:31.000Z | 2022-03-20T23:23:45.000Z | code/ch14/chord.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 8 | 2019-12-14T23:44:27.000Z | 2021-01-05T02:04:10.000Z | code/ch14/chord.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 32 | 2017-08-21T11:57:55.000Z | 2021-07-22T00:42:21.000Z | from bokeh.charts import output_file, Chord
from bokeh.io import show
import pandas as pd
data = pd.read_csv('../../samples/test3.csv')
chord_from_df = Chord(data, source='name_x', target='name_y',
value='value')
output_file('chord.html')
show(chord_from_df)
| 31.222222 | 61 | 0.697509 | 44 | 281 | 4.25 | 0.568182 | 0.144385 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.163701 | 281 | 8 | 62 | 35.125 | 0.791489 | 0 | 0 | 0 | 0 | 0 | 0.177936 | 0.081851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c9b78cd1d16ec845ba9da5b1757b47bae0f978e | 7,424 | py | Python | src/robotide/lib/robot/utils/charwidth.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-09-10T07:45:58.000Z | 2020-04-13T06:25:06.000Z | src/robotide/lib/robot/utils/charwidth.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-08-03T10:01:06.000Z | 2020-08-03T10:01:06.000Z | src/robotide/lib/robot/utils/charwidth.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-10-06T13:29:50.000Z | 2021-05-31T01:04:01.000Z | # Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 53.410072 | 78 | 0.564925 | 963 | 7,424 | 4.325026 | 0.732087 | 0.014406 | 0.009364 | 0.012965 | 0.029292 | 0.022089 | 0.022089 | 0.022089 | 0.022089 | 0 | 0 | 0.513874 | 0.233028 | 7,424 | 138 | 79 | 53.797101 | 0.217597 | 0.176859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0 | 0 | 0.067961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c9ca05e9c6b7018da88c76c81ab435644d0399f | 887 | py | Python | _utils.py | Maxwell-lt/bitrate-viewer | 9398c75cdfcf60645adf7bb8745aec175abfa16e | [
"MIT"
] | 32 | 2020-11-13T01:06:08.000Z | 2022-03-06T08:52:17.000Z | _utils.py | Maxwell-lt/bitrate-viewer | 9398c75cdfcf60645adf7bb8745aec175abfa16e | [
"MIT"
] | 3 | 2021-10-29T19:23:54.000Z | 2022-01-01T20:18:49.000Z | _utils.py | Maxwell-lt/bitrate-viewer | 9398c75cdfcf60645adf7bb8745aec175abfa16e | [
"MIT"
] | 6 | 2020-12-23T22:53:12.000Z | 2022-01-01T19:01:26.000Z | import math
from ffmpeg import probe
def get_bitrate(video_path):
bitrate = probe(video_path)['format']['bit_rate']
return f'{math.trunc(int(bitrate) / 1000)} kbit/s'
def get_framerate_fraction(video_path):
r_frame_rate = [stream for stream in probe(video_path)['streams']
if stream['... | 23.972973 | 74 | 0.647125 | 118 | 887 | 4.618644 | 0.440678 | 0.13211 | 0.077064 | 0.073395 | 0.106422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.21646 | 887 | 36 | 75 | 24.638889 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.167982 | 0.027058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.086957 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7ca19f6f0d31de9770e404bea8c70cfff15061d7 | 299 | py | Python | notes_app/urls.py | infomail4575/TODO | 60a9da59eb6f2c04dbf1650ffdb42d9181e7740a | [
"MIT"
] | 1 | 2022-02-06T08:31:45.000Z | 2022-02-06T08:31:45.000Z | notes_app/urls.py | infomail4575/TODO | 60a9da59eb6f2c04dbf1650ffdb42d9181e7740a | [
"MIT"
] | null | null | null | notes_app/urls.py | infomail4575/TODO | 60a9da59eb6f2c04dbf1650ffdb42d9181e7740a | [
"MIT"
] | null | null | null | from django.urls import path
from notes_app import views
urlpatterns = [
path('',views.home,name='home'),
path('home/',views.home,name='home'),
path('add/',views.add,name='add'),
path('edit/<int:id>',views.edit,name='edit'),
path('delete/<int:id>',views.delete, name='delete')
]
| 29.9 | 55 | 0.645485 | 44 | 299 | 4.363636 | 0.363636 | 0.09375 | 0.135417 | 0.177083 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12709 | 299 | 9 | 56 | 33.222222 | 0.735632 | 0 | 0 | 0 | 0 | 0 | 0.19398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ca3a4a508ff4d760323e9077b3d78d67d2fdb67 | 12,753 | py | Python | panzerserver/panzer_pb2.py | misakahi/panzerserver | 3246138703b55d96f8749f9cccf02b6cd53bb1c6 | [
"MIT"
] | null | null | null | panzerserver/panzer_pb2.py | misakahi/panzerserver | 3246138703b55d96f8749f9cccf02b6cd53bb1c6 | [
"MIT"
] | 1 | 2018-06-19T14:50:10.000Z | 2018-08-15T12:55:45.000Z | panzerserver/panzer_pb2.py | misakahi/panzerserver | 3246138703b55d96f8749f9cccf02b6cd53bb1c6 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: panzer.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflec... | 30.582734 | 1,105 | 0.740845 | 1,482 | 12,753 | 6.093792 | 0.12753 | 0.036319 | 0.037205 | 0.019488 | 0.550548 | 0.468054 | 0.447459 | 0.447459 | 0.437825 | 0.392648 | 0 | 0.034389 | 0.131263 | 12,753 | 416 | 1,106 | 30.65625 | 0.780756 | 0.048224 | 0 | 0.625683 | 1 | 0.002732 | 0.187959 | 0.124371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016393 | 0 | 0.016393 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ca4892f85d341a0cccf15e48518db9c7629e3bf | 352 | py | Python | agent/indy_catalyst_agent/verifier/base.py | nairobi222/indy-catalyst | dcbd80524ace7747ecfecd716ff932e9b571d69a | [
"Apache-2.0"
] | 7 | 2020-07-07T15:44:41.000Z | 2022-03-26T21:20:41.000Z | agent/indy_catalyst_agent/verifier/base.py | nairobi222/indy-catalyst | dcbd80524ace7747ecfecd716ff932e9b571d69a | [
"Apache-2.0"
] | 6 | 2021-03-10T20:05:19.000Z | 2022-02-27T05:41:09.000Z | agent/indy_catalyst_agent/verifier/base.py | nairobi222/indy-catalyst | dcbd80524ace7747ecfecd716ff932e9b571d69a | [
"Apache-2.0"
] | 4 | 2019-07-09T20:41:03.000Z | 2021-06-06T10:45:23.000Z | """Base Verifier class."""
from abc import ABC
class BaseVerifier(ABC):
"""Base class for verifier."""
def __repr__(self) -> str:
"""
Return a human readable representation of this class.
Returns:
A human readable string for this class
"""
return "<{}>".... | 19.555556 | 61 | 0.590909 | 39 | 352 | 5.025641 | 0.589744 | 0.061224 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292614 | 352 | 17 | 62 | 20.705882 | 0.787149 | 0.431818 | 0 | 0 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cb6a09a5cb3a8eab0631e7da796d865d688d2cd | 4,110 | py | Python | src/oci/log_analytics/models/step_info.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/log_analytics/models/step_info.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/log_analytics/models/step_info.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 30.902256 | 245 | 0.668856 | 518 | 4,110 | 4.96139 | 0.22973 | 0.101167 | 0.116732 | 0.175097 | 0.595331 | 0.427626 | 0.288716 | 0.277821 | 0.216342 | 0.110506 | 0 | 0.005966 | 0.265937 | 4,110 | 132 | 246 | 31.136364 | 0.845873 | 0.457908 | 0 | 0.068182 | 0 | 0 | 0.101481 | 0.069665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cb94832243cf801ee066204cd1cb5b87d7502d4 | 2,776 | py | Python | fltk/datasets/dataset.py | JMGaljaard/fltk-testbed | af6af25c82f91d0e3a78dfff6071b3b423cdf3d1 | [
"BSD-2-Clause"
] | null | null | null | fltk/datasets/dataset.py | JMGaljaard/fltk-testbed | af6af25c82f91d0e3a78dfff6071b3b423cdf3d1 | [
"BSD-2-Clause"
] | 1 | 2021-10-03T08:11:25.000Z | 2021-10-04T14:47:47.000Z | fltk/datasets/dataset.py | JMGaljaard/fltk-testbed | af6af25c82f91d0e3a78dfff6071b3b423cdf3d1 | [
"BSD-2-Clause"
] | 1 | 2021-10-05T18:52:05.000Z | 2021-10-05T18:52:05.000Z | from abc import abstractmethod
import torch
from torch.utils.data import DataLoader
from torch.utils.data import TensorDataset
from fltk.util.config import DistLearningConfig
class Dataset:
def __init__(self, config, learning_params: DistLearningConfig, rank: int, world_size: int):
self.config = config... | 27.76 | 96 | 0.626801 | 329 | 2,776 | 5.106383 | 0.218845 | 0.064286 | 0.041667 | 0.042857 | 0.452976 | 0.333929 | 0.226786 | 0.195833 | 0.195833 | 0.147024 | 0 | 0 | 0.2817 | 2,776 | 99 | 97 | 28.040404 | 0.842528 | 0.29647 | 0 | 0.162162 | 0 | 0 | 0.085299 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.135135 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cbce227195172dbf3f7750df0df7b2cd4e383a2 | 5,086 | py | Python | tests/pfc/test_pfc_pause_lossless.py | macikgozwa/sonic-mgmt | 86338be8b2e55fd03d4913037d0e641e443762b0 | [
"Apache-2.0"
] | null | null | null | tests/pfc/test_pfc_pause_lossless.py | macikgozwa/sonic-mgmt | 86338be8b2e55fd03d4913037d0e641e443762b0 | [
"Apache-2.0"
] | 1 | 2020-11-26T14:24:02.000Z | 2020-11-26T14:24:02.000Z | tests/pfc/test_pfc_pause_lossless.py | macikgozwa/sonic-mgmt | 86338be8b2e55fd03d4913037d0e641e443762b0 | [
"Apache-2.0"
] | null | null | null | import pytest
from tests.common.helpers.assertions import pytest_require
from tests.common.fixtures.conn_graph_facts import conn_graph_facts,\
fanout_graph_facts
from tests.common.ixia.ixia_fixtures import ixia_api_serv_ip, ixia_api_serv_port,\
ixia_api_serv_user, ixia_api_serv_passwd, ixia_api, ixia_testbed
f... | 42.033058 | 93 | 0.599489 | 609 | 5,086 | 4.602627 | 0.164204 | 0.091331 | 0.035319 | 0.051374 | 0.763111 | 0.707813 | 0.674278 | 0.674278 | 0.638958 | 0.607207 | 0 | 0.007805 | 0.345065 | 5,086 | 120 | 94 | 42.383333 | 0.833684 | 0.273889 | 0 | 0.591549 | 0 | 0 | 0.027263 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.028169 | false | 0.014085 | 0.084507 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cc0566aa9a467c22c30455b2d966338a71401ad | 1,009 | py | Python | tests/test_timespec.py | farsightsec/axamd_client | 560dfe9a8e23163597bf4efddfa5843669ec4ba5 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2016-11-01T21:52:14.000Z | 2016-11-01T21:52:14.000Z | tests/test_timespec.py | farsightsec/axamd_client | 560dfe9a8e23163597bf4efddfa5843669ec4ba5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_timespec.py | farsightsec/axamd_client | 560dfe9a8e23163597bf4efddfa5843669ec4ba5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 by Farsight Security, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 31.53125 | 74 | 0.756194 | 147 | 1,009 | 5.040816 | 0.62585 | 0.080972 | 0.091768 | 0.080972 | 0.109312 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.170466 | 1,009 | 31 | 75 | 32.548387 | 0.842294 | 0.560951 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7ceade2dd51be562a0aadb30428612f6621b4124 | 1,136 | py | Python | py/py_0361_subsequence_of_thue-morse_sequence.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0361_subsequence_of_thue-morse_sequence.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0361_subsequence_of_thue-morse_sequence.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 361: Subsequence of Thue-Morse sequence
# https://projecteuler.net/problem=361
#
# The Thue-Morse sequence {Tn} is a binary sequence satisfying:T0 = 0T2n =
# TnT2n+1 = 1 - TnThe first several terms of {Tn} are given as
# follows:01101001100101101001011001101001. . . . We define... | 37.866667 | 79 | 0.707746 | 183 | 1,136 | 4.360656 | 0.535519 | 0.015038 | 0.042607 | 0.047619 | 0.0401 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165208 | 0.195423 | 1,136 | 29 | 80 | 39.172414 | 0.701313 | 0.836268 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf2fe104419cc11fe22abe8dc977fa80ba5a1d2 | 1,160 | py | Python | v2.5.7/toontown/toonbase/HolidayData.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v2.5.7/toontown/toonbase/HolidayData.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v2.5.7/toontown/toonbase/HolidayData.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from toontown.toonbase.ToontownGlobals import *
ONCELY_HOLIDAYS = []
WEEKLY_HOLIDAYS = [
[
TROLLEY_HOLIDAY, 3],
[
CIRCUIT_RACING, 0]]
YEARLY_HOLIDAYS = [
[
TOP_TOONS_MARATHON, [1, 1, 0, 0], [1, 1, 23, 59]],
[
VALENTINES_DAY, [2, 9, 0, 0], [2, 16, 23, 59]],
[
IDES_OF_MARCH, [3, 17, 0, 0], [3, 17, 23, 59]]... | 26.363636 | 62 | 0.52931 | 201 | 1,160 | 2.920398 | 0.313433 | 0.061329 | 0.07155 | 0.061329 | 0.310051 | 0.310051 | 0.265758 | 0.250426 | 0.078365 | 0 | 0 | 0.248337 | 0.222414 | 1,160 | 44 | 63 | 26.363636 | 0.402439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf6b672498e72c73fe4fe762a1a4d35c3583c8d | 842 | py | Python | pypika/selectable.py | rob-blackbourn/pypika | 8241f0bed8435cb5911e06ef476466f477ab9f59 | [
"Apache-2.0"
] | null | null | null | pypika/selectable.py | rob-blackbourn/pypika | 8241f0bed8435cb5911e06ef476466f477ab9f59 | [
"Apache-2.0"
] | null | null | null | pypika/selectable.py | rob-blackbourn/pypika | 8241f0bed8435cb5911e06ef476466f477ab9f59 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Optional
from .node import Node
from .terms import Field, Star
from .utils import copy_if_immutable, ignore_copy
class Selectable(Node):
def __init__(self, alias: Optional[str]) -> None:
self.alias = alias
def as_(self, alias: str) -> Selectabl... | 22.756757 | 53 | 0.644893 | 109 | 842 | 4.743119 | 0.302752 | 0.069633 | 0.06383 | 0.092843 | 0.17795 | 0.135397 | 0.135397 | 0.135397 | 0 | 0 | 0 | 0 | 0.260095 | 842 | 36 | 54 | 23.388889 | 0.829856 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.2 | 0.2 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7cf8648629ea8530623d1f55e84653adfb2d1cf7 | 722 | py | Python | scripts/issues/issue14_streamlit.py | jlstevens/awesome-panel | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | [
"Apache-2.0"
] | null | null | null | scripts/issues/issue14_streamlit.py | jlstevens/awesome-panel | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | [
"Apache-2.0"
] | null | null | null | scripts/issues/issue14_streamlit.py | jlstevens/awesome-panel | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | [
"Apache-2.0"
] | 1 | 2021-10-05T05:40:19.000Z | 2021-10-05T05:40:19.000Z | import streamlit as st
text = """\
## Custom CSS does not play nicely with Bokeh HTML, CSS and Javascipt
I've experienced numerous problems when using css.
I have a feeling that the Bokeh Javascript on elements does not take everything like images and inline css into account. But it's difficult for me to catch and u... | 45.125 | 185 | 0.778393 | 121 | 722 | 4.61157 | 0.735537 | 0.02509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011345 | 0.145429 | 722 | 15 | 186 | 48.133333 | 0.893031 | 0 | 0 | 0 | 0 | 0.333333 | 0.925208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf9f68411f88c3635ff8fa8678ea49c4cb628dd | 2,465 | py | Python | parser/team28/models/column.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team28/models/column.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team28/models/column.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | class Column(object):
def __init__(self, name, dataType):
self._number = 0
self._name = name
self._dataType = dataType
self._length = None
self._default = None
self._notNull = False
self._unique = False
self._constraint = None
self._check = []
... | 21.25 | 71 | 0.615822 | 252 | 2,465 | 5.845238 | 0.130952 | 0.088255 | 0.123557 | 0.02444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000579 | 0.298986 | 2,465 | 115 | 72 | 21.434783 | 0.851852 | 0.037728 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 1 | 0.295455 | false | 0 | 0 | 0.147727 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6b0a3fbe6835f42e5d4e69d6c636f3ed4410b535 | 508 | py | Python | main.py | zhenweil/Bag-of-words-for-Scene-Classification | 7db72cb89c2f07edcb41ce2caa69b8fac0e54ab1 | [
"MIT"
] | 1 | 2020-12-24T05:53:46.000Z | 2020-12-24T05:53:46.000Z | main.py | zhenweil/Bag-of-words-for-Scene-Classification | 7db72cb89c2f07edcb41ce2caa69b8fac0e54ab1 | [
"MIT"
] | null | null | null | main.py | zhenweil/Bag-of-words-for-Scene-Classification | 7db72cb89c2f07edcb41ce2caa69b8fac0e54ab1 | [
"MIT"
] | null | null | null | from os.path import join
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import util
import visual_words
import visual_recog
from opts import get_opts
def main():
opts = get_opts()
n_cpu = util.get_num_CPU()
visual_words.compute_dictionary(opts, n_worker=n_cpu)
... | 24.190476 | 84 | 0.742126 | 77 | 508 | 4.519481 | 0.454545 | 0.057471 | 0.094828 | 0.103448 | 0.227011 | 0.183908 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0.187008 | 508 | 20 | 85 | 25.4 | 0.842615 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6b16a2ee3b2f4bfd764ab5b80b55a7e93a1d13f6 | 1,520 | py | Python | catalog/models.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | catalog/models.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | catalog/models.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.db import models
from django.urls import reverse
class Category(models.Model):
name = models.CharField('Nome', max_length=100)
slug = models.SlugField('Identificador', max_length=100)
created = models.DateTimeField('Criado em', auto_now_add=True)
modified = models.DateTime... | 32.340426 | 104 | 0.686842 | 182 | 1,520 | 5.554945 | 0.395604 | 0.054402 | 0.047478 | 0.041543 | 0.563798 | 0.563798 | 0.563798 | 0.563798 | 0.563798 | 0.563798 | 0 | 0.012185 | 0.190132 | 1,520 | 47 | 105 | 32.340426 | 0.809098 | 0.007895 | 0 | 0.529412 | 0 | 0 | 0.140677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.117647 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6b1a3a965664049ab3d653d6d66991c5424fc16c | 273 | py | Python | demo_video.py | dovietchinh/via-laneline-segmentation | d1a1cc87c44e1275784ce0c0acf5be4ba619eeea | [
"Unlicense"
] | 5 | 2021-03-26T09:26:14.000Z | 2021-06-29T23:29:10.000Z | demo_video.py | dovietchinh/via-laneline-segmentation | d1a1cc87c44e1275784ce0c0acf5be4ba619eeea | [
"Unlicense"
] | null | null | null | demo_video.py | dovietchinh/via-laneline-segmentation | d1a1cc87c44e1275784ce0c0acf5be4ba619eeea | [
"Unlicense"
] | null | null | null | """ author:
name : Do Viet Chinh
personal email: dovietchinh1998@mgail.com
personal facebook: https://www.facebook.com/profile.php?id=100005935236259
VNOpenAI team: vnopenai@gmail.com
via team :
date:
26.3.2021
""" | 27.3 | 79 | 0.604396 | 31 | 273 | 5.322581 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134715 | 0.29304 | 273 | 10 | 80 | 27.3 | 0.720207 | 0.970696 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b2594de711a8f10da1512dbeef1090ec017a0aa | 4,740 | py | Python | frappe/email/smtp.py | Steggur/frappe | be95a19704dd3ac667f7ad64e1694dc5d59856fe | [
"MIT"
] | null | null | null | frappe/email/smtp.py | Steggur/frappe | be95a19704dd3ac667f7ad64e1694dc5d59856fe | [
"MIT"
] | null | null | null | frappe/email/smtp.py | Steggur/frappe | be95a19704dd3ac667f7ad64e1694dc5d59856fe | [
"MIT"
] | 1 | 2018-03-22T00:24:53.000Z | 2018-03-22T00:24:53.000Z | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
import smtplib
import _socket
from frappe.utils import cint
from frappe import _
def send(email, as_bulk=False, append_to=None):
"""send the message or add it ... | 30.779221 | 111 | 0.735021 | 681 | 4,740 | 4.895742 | 0.220264 | 0.136773 | 0.031194 | 0.025495 | 0.193461 | 0.130774 | 0.130774 | 0.130774 | 0.032993 | 0 | 0 | 0.005016 | 0.158861 | 4,740 | 153 | 112 | 30.980392 | 0.831201 | 0.054852 | 0 | 0.154545 | 0 | 0 | 0.156272 | 0.012094 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.063636 | 0.054545 | null | null | 0.063636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6b29bdf5804b793d94bf282f532f1bff3e2c9152 | 206 | py | Python | assignment8/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-AliZafar120 | 5d5b35d290a3d5072ee6d116ba082eb6c21a2e9e | [
"MIT"
] | null | null | null | assignment8/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-AliZafar120 | 5d5b35d290a3d5072ee6d116ba082eb6c21a2e9e | [
"MIT"
] | 1 | 2017-11-01T12:25:31.000Z | 2017-11-18T16:25:45.000Z | assignment8/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-AliZafar120 | 5d5b35d290a3d5072ee6d116ba082eb6c21a2e9e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
files=dict()
for line in sys.stdin:
files[line]=int(files.get(line,0))+1
maxhit=str(max(files,key=files.get))
print "{0} {1}".format(maxhit.split("\n")[0], files.get(maxhit))
| 22.888889 | 64 | 0.684466 | 38 | 206 | 3.710526 | 0.605263 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.07767 | 206 | 8 | 65 | 25.75 | 0.715789 | 0.07767 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b2c56c6235b809f9d9e040eb7f31bf8abd268d7 | 329 | py | Python | view/interface.py | gcleiton/pgm-processing-image-py | 63bd17b7eeb586942fb7b41649d27be71e197966 | [
"MIT"
] | null | null | null | view/interface.py | gcleiton/pgm-processing-image-py | 63bd17b7eeb586942fb7b41649d27be71e197966 | [
"MIT"
] | null | null | null | view/interface.py | gcleiton/pgm-processing-image-py | 63bd17b7eeb586942fb7b41649d27be71e197966 | [
"MIT"
] | null | null | null | import npyscreen
from view.home import InitialScreen
from view.process import ProcessScreen
class CreateInterface(npyscreen.NPSAppManaged):
def onStart(self):
self.addForm("MAIN", InitialScreen, name="PGM Image Processing Program")
self.addForm("PROCESSING", ProcessScreen, name="Processing I... | 41.125 | 81 | 0.74772 | 35 | 329 | 7.028571 | 0.6 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155015 | 329 | 8 | 82 | 41.125 | 0.884892 | 0 | 0 | 0 | 0 | 0 | 0.188854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6b3e2834ece7f73024f06f3f7d1fa5e83f965414 | 159 | py | Python | pfdo_mgz2img/__main__.py | FNNDSC/pl-pfdo_mgz2img | 0eb289aecd0769e47e1603dc9c7386a90c0649bd | [
"MIT"
] | null | null | null | pfdo_mgz2img/__main__.py | FNNDSC/pl-pfdo_mgz2img | 0eb289aecd0769e47e1603dc9c7386a90c0649bd | [
"MIT"
] | null | null | null | pfdo_mgz2img/__main__.py | FNNDSC/pl-pfdo_mgz2img | 0eb289aecd0769e47e1603dc9c7386a90c0649bd | [
"MIT"
] | 3 | 2020-10-22T01:30:04.000Z | 2020-12-17T17:20:25.000Z | from pfdo_mgz2img.pfdo_mgz2img import Pfdo_mgz2img
def main():
chris_app = Pfdo_mgz2img()
chris_app.launch()
if __name__ == "__main__":
main()
| 14.454545 | 50 | 0.698113 | 21 | 159 | 4.619048 | 0.52381 | 0.453608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.194969 | 159 | 10 | 51 | 15.9 | 0.726563 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b45dbe9f7042ed3eb8fd15c80c06dd2eb5ab9f3 | 2,845 | py | Python | dispel4py/examples/graph_testing/delayed_pipeline.py | AndreiFrunze/wrangler | 076a07de00fc966dcf18ca6b6a6e804be5245ed9 | [
"Apache-2.0"
] | 2 | 2017-09-07T04:33:18.000Z | 2019-01-07T13:32:15.000Z | dispel4py/examples/graph_testing/delayed_pipeline.py | AndreiFrunze/wrangler | 076a07de00fc966dcf18ca6b6a6e804be5245ed9 | [
"Apache-2.0"
] | 2 | 2016-10-06T13:07:05.000Z | 2017-12-20T09:47:08.000Z | dispel4py/examples/graph_testing/delayed_pipeline.py | AndreiFrunze/wrangler | 076a07de00fc966dcf18ca6b6a6e804be5245ed9 | [
"Apache-2.0"
] | 5 | 2016-09-01T08:38:20.000Z | 2018-08-28T12:08:39.000Z | # Copyright (c) The University of Edinburgh 2014
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 41.838235 | 214 | 0.723726 | 387 | 2,845 | 5.29199 | 0.447028 | 0.029297 | 0.039063 | 0.015625 | 0.084961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034361 | 0.202109 | 2,845 | 67 | 215 | 42.462687 | 0.867841 | 0.829525 | 0 | 0 | 0 | 0 | 0.054321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
860fb914a3d3a66024a520f717f81b7fd6c506ed | 2,283 | py | Python | app/forms.py | Hamudi0/BLOGGER | e013f92badca5ebaa36abf0478e314ccfad6a4fc | [
"MIT"
] | null | null | null | app/forms.py | Hamudi0/BLOGGER | e013f92badca5ebaa36abf0478e314ccfad6a4fc | [
"MIT"
] | 3 | 2021-06-08T19:36:08.000Z | 2022-01-13T01:03:39.000Z | app/forms.py | Hamudi0/BLOGGER | e013f92badca5ebaa36abf0478e314ccfad6a4fc | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_login import current_user
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length
from app.models impor... | 43.075472 | 89 | 0.74113 | 256 | 2,283 | 6.550781 | 0.292969 | 0.118068 | 0.031008 | 0.045319 | 0.480024 | 0.360167 | 0.25641 | 0.189624 | 0.189624 | 0.189624 | 0 | 0.002536 | 0.136224 | 2,283 | 53 | 90 | 43.075472 | 0.84787 | 0 | 0 | 0.377778 | 0 | 0 | 0.142025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.111111 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
8617f344951a72474031fde55dcff214052b252d | 1,200 | py | Python | tests/contrib/test_securecookie.py | lucashangxu/Ancient-Werkzeug | 5f6312f6cde5466aed545bfbef8c53c15d935a0f | [
"BSD-3-Clause"
] | null | null | null | tests/contrib/test_securecookie.py | lucashangxu/Ancient-Werkzeug | 5f6312f6cde5466aed545bfbef8c53c15d935a0f | [
"BSD-3-Clause"
] | null | null | null | tests/contrib/test_securecookie.py | lucashangxu/Ancient-Werkzeug | 5f6312f6cde5466aed545bfbef8c53c15d935a0f | [
"BSD-3-Clause"
] | null | null | null | from werkzeug import Request, Response, parse_cookie
from werkzeug.contrib.securecookie import SecureCookie
def test_basic_support():
"""Basid SecureCookie support"""
c = SecureCookie(secret_key='foo')
assert c.new
print c.modified, c.should_save
assert not c.modified
assert not c.should_save
... | 26.086957 | 87 | 0.660833 | 164 | 1,200 | 4.719512 | 0.262195 | 0.093023 | 0.062016 | 0.069767 | 0.18863 | 0.144703 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0.01824 | 0.223333 | 1,200 | 45 | 88 | 26.666667 | 0.812232 | 0 | 0 | 0.166667 | 0 | 0 | 0.055752 | 0 | 0 | 0 | 0 | 0 | 0.472222 | 0 | null | null | 0 | 0.055556 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
861fc453e9213a792fa108ee19e1c9fe255b6ab5 | 767 | py | Python | Python/5 kyu/Common Denominators/test_convertFracts.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-29T23:29:35.000Z | 2021-08-12T03:16:44.000Z | Python/5 kyu/Common Denominators/test_convertFracts.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | null | null | null | Python/5 kyu/Common Denominators/test_convertFracts.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-22T12:14:55.000Z | 2021-04-15T12:52:42.000Z | from unittest import TestCase
from convertfracts import convertFracts
class TestConvertFracts(TestCase):
def test_convertFracts_01(self):
self.assertEqual(convertFracts([[1, 2], [1, 3], [1, 4]]),
[[6, 12], [4, 12], [3, 12]])
def test_convertFracts_02(self):
... | 34.863636 | 65 | 0.530639 | 59 | 767 | 6.79661 | 0.508475 | 0.052369 | 0.149626 | 0.239402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 0.357236 | 767 | 21 | 66 | 36.52381 | 0.503043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
863cd6e9e74a184af736af2f6356721fcb42c289 | 721 | py | Python | timebank_site/timebank_app/permissions.py | SombiriX/TimeBank | 94f379e341ac6f34ef127dc65ce07f494e2f4f8a | [
"MIT"
] | 1 | 2019-10-01T17:57:03.000Z | 2019-10-01T17:57:03.000Z | timebank_site/timebank_app/permissions.py | SombiriX/TimeBank | 94f379e341ac6f34ef127dc65ce07f494e2f4f8a | [
"MIT"
] | 35 | 2018-09-21T18:12:24.000Z | 2022-02-27T07:55:08.000Z | timebank_site/timebank_app/permissions.py | SombiriX/TimeBank | 94f379e341ac6f34ef127dc65ce07f494e2f4f8a | [
"MIT"
] | null | null | null | from rest_framework.permissions import SAFE_METHODS, BasePermission
class SafeMethodsOnly(BasePermission):
def has_permission(self, request, view):
return request.method in SAFE_METHODS
def has_object_permission(self, request, view, obj=None):
return request.method in SAFE_METHODS
class Ad... | 28.84 | 67 | 0.710125 | 87 | 721 | 5.701149 | 0.436782 | 0.08871 | 0.127016 | 0.15121 | 0.358871 | 0.306452 | 0.177419 | 0.177419 | 0.177419 | 0 | 0 | 0 | 0.223301 | 721 | 24 | 68 | 30.041667 | 0.885714 | 0.0638 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
864a26525040d8070ddd4d430e5d6a1076c804ca | 680 | py | Python | leasing/renderers.py | hkotkanen/mvj | a22d40869ef1b13924da428f3026d248acef81a7 | [
"MIT"
] | null | null | null | leasing/renderers.py | hkotkanen/mvj | a22d40869ef1b13924da428f3026d248acef81a7 | [
"MIT"
] | null | null | null | leasing/renderers.py | hkotkanen/mvj | a22d40869ef1b13924da428f3026d248acef81a7 | [
"MIT"
] | null | null | null | from rest_framework.renderers import BrowsableAPIRenderer
# From: https://bradmontgomery.net/blog/disabling-forms-django-rest-frameworks-browsable-api/
class BrowsableAPIRendererWithoutForms(BrowsableAPIRenderer):
"""Renders the browsable api, but excludes the html form."""
def get_context(self, *args, **kwa... | 34 | 93 | 0.692647 | 81 | 680 | 5.740741 | 0.654321 | 0.051613 | 0.047312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 680 | 19 | 94 | 35.789474 | 0.861111 | 0.372059 | 0 | 0 | 0 | 0 | 0.031863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
864e36381307d60d47d2565702cdadf5209c455c | 4,231 | py | Python | skimage/data/__init__.py | genp/scikit-image | 0295d5423585efc39bea7b25b5b00a6f6ee4533a | [
"BSD-3-Clause"
] | null | null | null | skimage/data/__init__.py | genp/scikit-image | 0295d5423585efc39bea7b25b5b00a6f6ee4533a | [
"BSD-3-Clause"
] | null | null | null | skimage/data/__init__.py | genp/scikit-image | 0295d5423585efc39bea7b25b5b00a6f6ee4533a | [
"BSD-3-Clause"
] | 1 | 2020-02-25T10:44:47.000Z | 2020-02-25T10:44:47.000Z | """Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
from ..io import imread
from skimage import data_dir
__all__ = ['load',
'camera',
'lena',
'text',
'checkerboard',
'coins',
'moon',
... | 22.625668 | 79 | 0.665564 | 524 | 4,231 | 5.34542 | 0.446565 | 0.039272 | 0.017137 | 0.023563 | 0.108533 | 0.079971 | 0.030703 | 0.030703 | 0.030703 | 0 | 0 | 0.004704 | 0.246277 | 4,231 | 186 | 80 | 22.747312 | 0.873628 | 0.684472 | 0 | 0 | 0 | 0 | 0.197746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
864fa86ab5f2cae736cf8742507940ca1f53be56 | 791 | py | Python | ansible/install/roles/rally/files/browbeat-rally/browbeat_rally/db/models.py | cloud-bulldozer/browbeat | 47eacfe85e6c236a2a9a21984c1692754203eda3 | [
"Apache-2.0"
] | 19 | 2019-07-12T08:46:58.000Z | 2022-03-11T19:25:28.000Z | ansible/install/roles/rally/files/browbeat-rally/browbeat_rally/db/models.py | cloud-bulldozer/browbeat | 47eacfe85e6c236a2a9a21984c1692754203eda3 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:05:53.000Z | 2022-03-30T07:05:53.000Z | ansible/install/roles/rally/files/browbeat-rally/browbeat_rally/db/models.py | cloud-bulldozer/browbeat | 47eacfe85e6c236a2a9a21984c1692754203eda3 | [
"Apache-2.0"
] | 31 | 2019-06-10T20:08:44.000Z | 2022-02-23T15:43:32.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed ... | 32.958333 | 76 | 0.745891 | 118 | 791 | 4.949153 | 0.70339 | 0.10274 | 0.044521 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.180784 | 791 | 23 | 77 | 34.391304 | 0.891975 | 0.673831 | 0 | 0 | 0 | 0 | 0.040984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86520ad31274062e1d8abe30cb8363d6d73adaea | 378 | py | Python | contacts/validators.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 3 | 2022-03-08T19:02:41.000Z | 2022-03-16T23:04:37.000Z | contacts/validators.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 5 | 2022-03-17T02:16:52.000Z | 2022-03-18T02:55:25.000Z | contacts/validators.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | null | null | null | import re
from django.core.exceptions import ValidationError
def validate_country(value):
if len(value) != 2 or not re.match('[A-Z]{2}', value):
raise ValidationError('Please enter your country code. e.g. US')
def validate_phone(value):
if not re.match('\+\d{1,3}\.\d+', value):
raise Valida... | 27 | 77 | 0.674603 | 57 | 378 | 4.438596 | 0.578947 | 0.086957 | 0.079051 | 0.245059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.174603 | 378 | 13 | 78 | 29.076923 | 0.762821 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86600d392defe0b3255e61eb50ee1a7c5f3a381a | 893 | py | Python | tests/contrib/autoguide/test_mean_field_entropy.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | tests/contrib/autoguide/test_mean_field_entropy.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | tests/contrib/autoguide/test_mean_field_entropy.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | import torch
import scipy.special as sc
import pytest
import pyro
import pyro.distributions as dist
from pyro.contrib.autoguide import mean_field_entropy
from tests.common import assert_equal
def mean_field_guide(batch_tensor, design):
# A batched variable
w_p = pyro.param("w_p", 0.2*torch.ones(batch_tensor.... | 30.793103 | 84 | 0.707727 | 149 | 893 | 4.067114 | 0.342282 | 0.074257 | 0.069307 | 0.118812 | 0.20462 | 0.019802 | 0 | 0 | 0 | 0 | 0 | 0.023196 | 0.131019 | 893 | 28 | 85 | 31.892857 | 0.757732 | 0.020157 | 0 | 0 | 0 | 0 | 0.040092 | 0.030928 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.15 | false | 0 | 0.35 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86670724a0af0be723927543829c5c15c9211ec9 | 809 | py | Python | github/memoized.py | alextbok/py-github | 56e11e9694c0e99a9814382249061c83afe09000 | [
"MIT"
] | 2 | 2017-06-14T15:39:13.000Z | 2022-02-06T18:43:58.000Z | github/memoized.py | alextbok/py-github | 56e11e9694c0e99a9814382249061c83afe09000 | [
"MIT"
] | null | null | null | github/memoized.py | alextbok/py-github | 56e11e9694c0e99a9814382249061c83afe09000 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from github import collections, functools
'''
Decorator that caches a function's return value each time it is called so if it is
called later with the same arguments, the cached value is returned, instead of
reevaluating the function
'''
class Memoized(object):
def __init__(self, func):
... | 31.115385 | 82 | 0.640297 | 105 | 809 | 4.704762 | 0.514286 | 0.080972 | 0.040486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270705 | 809 | 26 | 83 | 31.115385 | 0.837288 | 0.019778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8677ea9b68816e00837b2c99a64640c65e781cc0 | 1,205 | py | Python | Homework/HW08.py | siljaxane/Beetroot | 30385c2a78ae2599fc986f0268c83908d482643c | [
"MIT"
] | null | null | null | Homework/HW08.py | siljaxane/Beetroot | 30385c2a78ae2599fc986f0268c83908d482643c | [
"MIT"
] | null | null | null | Homework/HW08.py | siljaxane/Beetroot | 30385c2a78ae2599fc986f0268c83908d482643c | [
"MIT"
] | null | null | null | # TASK 1
# Write a function called oops that explicitly raises an IndexError exception when called.
# Then write another function that calls oops inside a try/except statement to catch the error.
# What happens if you change oops to raise KeyError instead of IndexError?
def oops():
raise IndexError
try:
In... | 20.083333 | 121 | 0.675519 | 190 | 1,205 | 4.289474 | 0.463158 | 0.034356 | 0.058896 | 0.053988 | 0.112883 | 0.066258 | 0.066258 | 0 | 0 | 0 | 0 | 0.004353 | 0.237344 | 1,205 | 60 | 122 | 20.083333 | 0.881393 | 0.580913 | 0 | 0.666667 | 0 | 0 | 0.130526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.066667 | 0 | 0.033333 | 0.266667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8680bae6bbc27c723d919daac6d889323eac84e0 | 212 | py | Python | utils.py | ramonmedeiros/Pypermail | 342c0bbe324ed1f8bd927cb7656855360c330873 | [
"MIT"
] | 1 | 2018-08-21T14:41:55.000Z | 2018-08-21T14:41:55.000Z | utils.py | ramonmedeiros/Pypermail | 342c0bbe324ed1f8bd927cb7656855360c330873 | [
"MIT"
] | null | null | null | utils.py | ramonmedeiros/Pypermail | 342c0bbe324ed1f8bd927cb7656855360c330873 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import urllib2
def getContent(url):
"""
Retrives url content
"""
try:
content = urllib2.urlopen(url)
except IOError:
return ""
return content.read()
| 13.25 | 38 | 0.575472 | 22 | 212 | 5.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.306604 | 212 | 15 | 39 | 14.133333 | 0.816327 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
868899b5d3ed976e958ad41b19a94891758cb263 | 1,709 | py | Python | aether/python/avro/tests/__init__.py | eHealthAfrica/aether-python-library | d595b4e4b7a4d824c08da0e5162a620efac2b6ee | [
"Apache-2.0"
] | null | null | null | aether/python/avro/tests/__init__.py | eHealthAfrica/aether-python-library | d595b4e4b7a4d824c08da0e5162a620efac2b6ee | [
"Apache-2.0"
] | 1 | 2020-08-10T11:27:31.000Z | 2020-08-10T11:30:41.000Z | aether/python/avro/tests/__init__.py | eHealthAfrica/aether-python-library | d595b4e4b7a4d824c08da0e5162a620efac2b6ee | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org
#
# See the NOTICE file distributed with this work for additional information
# regarding copyright ownership.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with
# the License. Y... | 25.893939 | 75 | 0.775307 | 227 | 1,709 | 5.748899 | 0.449339 | 0.045977 | 0.064368 | 0.091954 | 0.260536 | 0.260536 | 0.260536 | 0.260536 | 0.229119 | 0.099617 | 0 | 0.005413 | 0.135167 | 1,709 | 65 | 76 | 26.292308 | 0.877537 | 0.406085 | 0 | 0.363636 | 0 | 0 | 0.042126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 0 | 0.121212 | 0.181818 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8688cbeaeec4107e0c591dc4ef46598f7f2749a8 | 4,387 | py | Python | grr/tools/console.py | mikecb/grr | 52fdd977729af2a09a147301c55b8b7f1eccfa67 | [
"Apache-2.0"
] | 2 | 2019-06-02T13:11:16.000Z | 2019-06-25T13:30:46.000Z | grr/tools/console.py | mikecb/grr | 52fdd977729af2a09a147301c55b8b7f1eccfa67 | [
"Apache-2.0"
] | null | null | null | grr/tools/console.py | mikecb/grr | 52fdd977729af2a09a147301c55b8b7f1eccfa67 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""This is the GRR Console.
We can schedule a new flow for a specific client.
"""
# pylint: disable=unused-import
# Import things that are useful from the console.
import collections
import csv
import datetime
import getpass
import os
import re
import sys
import time
# pylint: disable=unused-... | 30.255172 | 78 | 0.724185 | 634 | 4,387 | 4.880126 | 0.310726 | 0.067873 | 0.087266 | 0.103426 | 0.257595 | 0.089528 | 0.063348 | 0.063348 | 0.063348 | 0.031028 | 0 | 0.003947 | 0.191475 | 4,387 | 144 | 79 | 30.465278 | 0.868339 | 0.140871 | 0 | 0.042105 | 0 | 0 | 0.194862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021053 | 0.410526 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8690dab25dcfe244b19e8b1f2065a916c9c873cf | 1,488 | py | Python | framewirc/filters.py | meshy/framewirc | 3a75e95c3cdad8705d09e1e80d05feb766e97893 | [
"BSD-2-Clause"
] | 41 | 2015-10-13T22:46:07.000Z | 2018-05-06T16:46:18.000Z | framewirc/filters.py | meshy/framewirc | 3a75e95c3cdad8705d09e1e80d05feb766e97893 | [
"BSD-2-Clause"
] | 22 | 2015-10-13T22:52:00.000Z | 2018-03-05T20:30:50.000Z | framewirc/filters.py | meshy/framewirc | 3a75e95c3cdad8705d09e1e80d05feb766e97893 | [
"BSD-2-Clause"
] | 2 | 2015-10-16T22:51:10.000Z | 2015-11-23T23:19:49.000Z | def deny(blacklist):
"""
Decorates a handler to filter out a blacklist of commands.
The decorated handler will not be called if message.command is in the
blacklist:
@deny(['A', 'B'])
def handle_everything_except_a_and_b(client, message):
pass
Single-item blacklists may... | 28.075472 | 74 | 0.639113 | 180 | 1,488 | 5.183333 | 0.272222 | 0.111468 | 0.068596 | 0.040729 | 0.578778 | 0.525188 | 0.411576 | 0.411576 | 0.276527 | 0.276527 | 0 | 0 | 0.284946 | 1,488 | 52 | 75 | 28.615385 | 0.87688 | 0.491935 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
869218d7545d89609eba773b1264fb9fe6ad4a5d | 769 | py | Python | filing_fetcher/items.py | benbarber/companies_house_filing_fetcher | efab107541c557e7d1af2009e0617792bf5fd567 | [
"MIT"
] | 2 | 2020-08-10T14:43:25.000Z | 2021-05-14T11:54:19.000Z | filing_fetcher/items.py | benbarber/companies_house_filing_fetcher | efab107541c557e7d1af2009e0617792bf5fd567 | [
"MIT"
] | null | null | null | filing_fetcher/items.py | benbarber/companies_house_filing_fetcher | efab107541c557e7d1af2009e0617792bf5fd567 | [
"MIT"
] | 4 | 2019-11-18T15:37:23.000Z | 2020-05-01T22:36:35.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class FilingItem(scrapy.Item):
# From the BasicCompanyInformation file
company_number = scrapy.Field()
company_status = scrapy.Field()
... | 26.517241 | 52 | 0.698309 | 96 | 769 | 5.416667 | 0.520833 | 0.296154 | 0.144231 | 0.132692 | 0.080769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001603 | 0.188557 | 769 | 28 | 53 | 27.464286 | 0.831731 | 0.262679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
86941abaf0c0fbd6627a7b5d5cde43c582d440dc | 1,306 | py | Python | __manifest__.py | davidkimolo/library_management_system_with_odoo | 0f3aca132f4e46d3aef9eab99d11194aa2eaecf1 | [
"Apache-2.0"
] | null | null | null | __manifest__.py | davidkimolo/library_management_system_with_odoo | 0f3aca132f4e46d3aef9eab99d11194aa2eaecf1 | [
"Apache-2.0"
] | null | null | null | __manifest__.py | davidkimolo/library_management_system_with_odoo | 0f3aca132f4e46d3aef9eab99d11194aa2eaecf1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
{
'name': 'Library Management system odoo',
'version': "10.0.1.0.6",
'author': "David Kimolo",
'category': 'School Management',
'website': '',
'license': "AGPL-3",
'summary': """A Module For Library Managem... | 34.368421 | 60 | 0.557427 | 132 | 1,306 | 5.348485 | 0.545455 | 0.05949 | 0.084986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.29709 | 1,306 | 37 | 61 | 35.297297 | 0.760349 | 0.061256 | 0 | 0 | 0 | 0 | 0.651676 | 0.324612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86958af3dec9da1ec0742ebda86080c1c8920272 | 665 | py | Python | kozit/Update.py | zarlo/GitScripts | 3cc65aafaa1ce96fc07aca28a64f11b614500f31 | [
"MIT"
] | null | null | null | kozit/Update.py | zarlo/GitScripts | 3cc65aafaa1ce96fc07aca28a64f11b614500f31 | [
"MIT"
] | null | null | null | kozit/Update.py | zarlo/GitScripts | 3cc65aafaa1ce96fc07aca28a64f11b614500f31 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import subprocess
import os.path
import platform
def git(*args):
return subprocess.check_call(['git'] + list(args))
def gitupdate(repo, mPath):
if os.path.exists(mPath) == False:
git("clone", repo, mPath)
else:
git("pull", repo, mPath)
def Restore(*args):
return sub... | 23.75 | 69 | 0.684211 | 85 | 665 | 5.329412 | 0.411765 | 0.12362 | 0.1766 | 0.203091 | 0.375276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 665 | 27 | 70 | 24.62963 | 0.77969 | 0.02406 | 0 | 0 | 0 | 0 | 0.328704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.117647 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
869961aa3781955bb934debf0b5dfd7fd0b453f5 | 2,760 | py | Python | FP.py | demarchenac/PAKEv2- | 2b468aad30ac8b0557dc75c56403ac05d0a13424 | [
"MIT"
] | null | null | null | FP.py | demarchenac/PAKEv2- | 2b468aad30ac8b0557dc75c56403ac05d0a13424 | [
"MIT"
] | null | null | null | FP.py | demarchenac/PAKEv2- | 2b468aad30ac8b0557dc75c56403ac05d0a13424 | [
"MIT"
] | null | null | null | import random
class FP:
def __init__(self, rep, p):
self.p = p
self.rep = rep % p
def __add__(self, b):
rep = (self.rep + b.rep) % self.p
return FP(rep, self.p)
def __sub__(self, b):
rep = (self.rep - b.rep) % self.p
return FP(rep, self.p)
def get_ran... | 24 | 54 | 0.50471 | 396 | 2,760 | 3.325758 | 0.156566 | 0.098709 | 0.066819 | 0.058466 | 0.426727 | 0.364465 | 0.364465 | 0.345482 | 0.345482 | 0.296887 | 0 | 0.017714 | 0.365942 | 2,760 | 114 | 55 | 24.210526 | 0.734857 | 0 | 0 | 0.238095 | 0 | 0 | 0.006522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.011905 | 0.119048 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
869cf20e5f2ad85c36e0cca21930d0a1f79d951e | 402 | py | Python | cyder/cydhcp/vrf/tests.py | jwasinger/cyder | de3e61ca47b71ac28d0a36568f250f4bc2617f22 | [
"BSD-3-Clause"
] | null | null | null | cyder/cydhcp/vrf/tests.py | jwasinger/cyder | de3e61ca47b71ac28d0a36568f250f4bc2617f22 | [
"BSD-3-Clause"
] | null | null | null | cyder/cydhcp/vrf/tests.py | jwasinger/cyder | de3e61ca47b71ac28d0a36568f250f4bc2617f22 | [
"BSD-3-Clause"
] | null | null | null | from cyder.base.tests import ModelTestMixin, TestCase
from cyder.cydhcp.vrf.models import Vrf
class VrfTests(TestCase, ModelTestMixin):
@property
def objs(self):
"""Create objects for test_create_delete."""
return (
Vrf.objects.create(name='a'),
Vrf.objects.create(name=... | 28.714286 | 53 | 0.639303 | 45 | 402 | 5.666667 | 0.6 | 0.117647 | 0.188235 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 402 | 13 | 54 | 30.923077 | 0.833333 | 0.094527 | 0 | 0 | 0 | 0 | 0.075419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
869ec4477ed0c6a645fd89a6caa85c13e59473a8 | 574 | py | Python | src/dqn/dqn.py | bestvibes/multi-agent-cooperation | d1233865123fde388ba84a917221265c1cfea550 | [
"MIT"
] | 3 | 2019-11-02T05:14:49.000Z | 2019-11-12T12:48:53.000Z | src/dqn/dqn.py | bestvibes/multi-agent-cooperation | d1233865123fde388ba84a917221265c1cfea550 | [
"MIT"
] | null | null | null | src/dqn/dqn.py | bestvibes/multi-agent-cooperation | d1233865123fde388ba84a917221265c1cfea550 | [
"MIT"
] | 1 | 2019-10-02T17:22:39.000Z | 2019-10-02T17:22:39.000Z | from collections import namedtuple
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
class DQN(nn.Module):
def __init__(self):
super(DQN, self).__init__()
self.linear1 = nn.Linear(4, 64)
self.linear2 = nn.Linear(64, 64)
... | 26.090909 | 40 | 0.614983 | 89 | 574 | 3.876404 | 0.337079 | 0.127536 | 0.086957 | 0.06087 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052009 | 0.263066 | 574 | 21 | 41 | 27.333333 | 0.763593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86a56f0edecf80d356ff08ee98bf71f2570298d6 | 475 | py | Python | chrome/test/pyautolib/pyauto_errors.py | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/test/pyautolib/pyauto_errors.py | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/test/pyautolib/pyauto_errors.py | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | #!/usr/bin/python
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""PyAuto Errors."""
class JSONInterfaceError(RuntimeError):
"""Represent an error in the JSON ipc interface."""
pass
class NTPT... | 27.941176 | 74 | 0.745263 | 68 | 475 | 5.205882 | 0.779412 | 0.028249 | 0.129944 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010127 | 0.168421 | 475 | 16 | 75 | 29.6875 | 0.886076 | 0.711579 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
86d7d9118c2549b70d76206f61993c2c3d5ee250 | 163 | py | Python | class/lect/Lect-08/read-phone5.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | 5 | 2021-09-09T21:08:14.000Z | 2021-12-14T02:30:52.000Z | class/lect/Lect-08/read-phone5.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | null | null | null | class/lect/Lect-08/read-phone5.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | 8 | 2021-09-09T17:46:07.000Z | 2022-02-08T22:41:35.000Z |
from readNameListCSV import readNameListCSV
x = readNameListCSV("5-lines.phone.csv" )
for key in x:
print ( "name={} phone={}".format(key,x[key]))
| 18.111111 | 58 | 0.650307 | 21 | 163 | 5.047619 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.196319 | 163 | 8 | 59 | 20.375 | 0.801527 | 0 | 0 | 0 | 0 | 0 | 0.254658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86dcd8884ecf99a16857b6f5eb7e9dcece6c8729 | 658 | py | Python | backend/app/db/init_db.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | 2 | 2021-01-11T23:24:29.000Z | 2021-01-12T09:55:58.000Z | backend/app/db/init_db.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | null | null | null | backend/app/db/init_db.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | null | null | null | from sqlalchemy.orm import Session
from app import schemas, services
from app.core.config import settings
from app.db import base # noqa: F401
# make sure all SQL Alchemy models are imported (app.db.base) before initializing DB
# otherwise, SQL Alchemy might fail to initialize relationships properly
def init_db(db... | 32.9 | 84 | 0.720365 | 90 | 658 | 5.144444 | 0.566667 | 0.045356 | 0.142549 | 0.116631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005758 | 0.208207 | 658 | 19 | 85 | 34.631579 | 0.882917 | 0.24924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
86df2a9250c300c37cd41f2757a8c92ef85c2966 | 8,355 | py | Python | utils/data_utils.py | luweishuang/TransFG | 4edfa775775ff96c703e4d907584cbbb23c6d595 | [
"MIT"
] | 1 | 2021-09-15T10:58:07.000Z | 2021-09-15T10:58:07.000Z | utils/data_utils.py | luweishuang/TransFG | 4edfa775775ff96c703e4d907584cbbb23c6d595 | [
"MIT"
] | null | null | null | utils/data_utils.py | luweishuang/TransFG | 4edfa775775ff96c703e4d907584cbbb23c6d595 | [
"MIT"
] | null | null | null | import logging
from PIL import Image
import os
import torch
from torchvision import transforms
from torch.utils.data import DataLoader, RandomSampler, DistributedSampler, SequentialSampler
from .dataset import CUB, CarsDataset, NABirds, dogs, INat2017, emptyJudge
from .autoaugment import AutoAugImageNetPolicy
logge... | 61.433824 | 108 | 0.502214 | 763 | 8,355 | 5.390564 | 0.134993 | 0.031121 | 0.046681 | 0.113786 | 0.73912 | 0.722587 | 0.68636 | 0.656212 | 0.61099 | 0.61099 | 0 | 0.096806 | 0.389228 | 8,355 | 135 | 109 | 61.888889 | 0.709191 | 0.046798 | 0 | 0.521008 | 0 | 0 | 0.022496 | 0.007164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0 | 0.067227 | 0 | 0.084034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86e6a6818068e8a11e3df04731b18fdc8388018b | 565 | py | Python | data/getLocs.py | qmkarriem/endings | 4a17c69cac02ac0ef0c7fb7e6fc242666598d28c | [
"MIT"
] | null | null | null | data/getLocs.py | qmkarriem/endings | 4a17c69cac02ac0ef0c7fb7e6fc242666598d28c | [
"MIT"
] | null | null | null | data/getLocs.py | qmkarriem/endings | 4a17c69cac02ac0ef0c7fb7e6fc242666598d28c | [
"MIT"
] | null | null | null | latLongList = open('/Users/quran/Dropbox/MusicArtProjects/endsSentenceFunction/data/latLongList.txt', "r")
longsList = open('/Users/quran/Dropbox/MusicArtProjects/endsSentenceFunction/data/longsList.txt', "w")
#get Longitudes from list
for line in latLongList:
temp = line.split(', ')
longsList.write(temp[1][:-... | 33.235294 | 106 | 0.752212 | 64 | 565 | 6.640625 | 0.4375 | 0.063529 | 0.098824 | 0.148235 | 0.487059 | 0.487059 | 0.487059 | 0.343529 | 0.343529 | 0 | 0 | 0.003945 | 0.102655 | 565 | 16 | 107 | 35.3125 | 0.83432 | 0.042478 | 0 | 0 | 0 | 0 | 0.444444 | 0.431481 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86eb73046442ff7a83f84d6ee23935575c381893 | 646 | py | Python | pack/demos/Couple_different_packages.py | kingeta/VOPP | 2d1b80cf9be9f035cb9bda7f0b8f82fbda9bf226 | [
"MIT"
] | 4 | 2020-10-24T18:37:06.000Z | 2020-10-25T19:48:17.000Z | pack/demos/Couple_different_packages.py | kingeta/VOPP | 2d1b80cf9be9f035cb9bda7f0b8f82fbda9bf226 | [
"MIT"
] | null | null | null | pack/demos/Couple_different_packages.py | kingeta/VOPP | 2d1b80cf9be9f035cb9bda7f0b8f82fbda9bf226 | [
"MIT"
] | null | null | null | from request import request_function
payload = """{
"itemSets": [
{
"refId": 0,
"color": "tomato",
"weight": 0,
"dimensions": {
"x": 5,
"y": 6,
"z": 4
},
"quantity": 1
},
{
"refId": 1,
"color": "cornflowerblue",
"weight": 0,
... | 14.681818 | 36 | 0.362229 | 57 | 646 | 4.070175 | 0.561404 | 0.142241 | 0.189655 | 0.155172 | 0.12931 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0.060773 | 0.439628 | 646 | 43 | 37 | 15.023256 | 0.580111 | 0 | 0 | 0.225 | 0 | 0 | 0.843653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0.025 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86fe482ad65fd62cf82770175f958166e697b592 | 11,092 | py | Python | lib/matplotlib/pylab.py | jbbrokaw/matplotlib | 86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427 | [
"MIT",
"BSD-3-Clause"
] | 113 | 2015-08-16T22:38:56.000Z | 2022-01-27T16:46:09.000Z | lib/matplotlib/pylab.py | yingkailiang/matplotlib | 255a79b106c98c1904489afe6a754e4d943179d6 | [
"MIT",
"BSD-3-Clause"
] | 7 | 2016-10-21T04:15:22.000Z | 2020-02-15T04:06:19.000Z | lib/matplotlib/pylab.py | yingkailiang/matplotlib | 255a79b106c98c1904489afe6a754e4d943179d6 | [
"MIT",
"BSD-3-Clause"
] | 41 | 2015-08-16T22:38:28.000Z | 2022-01-26T21:21:30.000Z | """
This is a procedural interface to the matplotlib object-oriented
plotting library.
The following plotting commands are provided; the majority have
MATLAB |reg| [*]_ analogs and similar arguments.
.. |reg| unicode:: 0xAE
_Plotting commands
acorr - plot the autocorrelation function
annotate - annotate som... | 38.648084 | 89 | 0.716372 | 1,576 | 11,092 | 4.995558 | 0.385152 | 0.013972 | 0.024768 | 0.04001 | 0.089038 | 0.017782 | 0.010669 | 0.010669 | 0.010669 | 0.010669 | 0 | 0.003348 | 0.245943 | 11,092 | 286 | 90 | 38.783217 | 0.937948 | 0.826632 | 0 | 0 | 0 | 0 | 0.002627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.488372 | 0 | 0.488372 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
810b2f5910eadb2cbbd8b9860fd49ee49a7f7731 | 21,760 | py | Python | Tests/test_SearchIO_hhsuite2_text.py | fredricj/biopython | 922063e5fec0b3c0c975f030b36eeea962e51091 | [
"BSD-3-Clause"
] | 2 | 2019-10-25T18:20:34.000Z | 2019-10-28T15:26:40.000Z | Tests/test_SearchIO_hhsuite2_text.py | fredricj/biopython | 922063e5fec0b3c0c975f030b36eeea962e51091 | [
"BSD-3-Clause"
] | null | null | null | Tests/test_SearchIO_hhsuite2_text.py | fredricj/biopython | 922063e5fec0b3c0c975f030b36eeea962e51091 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T07:55:09.000Z | 2021-01-07T07:55:09.000Z | # Copyright 2019 by Jens Thomas. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Tests for SearchIO HhsuiteIO parsers."""
import os
import unittest
from Bio.SearchIO impor... | 46.101695 | 125 | 0.656204 | 2,342 | 21,760 | 5.979078 | 0.198121 | 0.224952 | 0.023995 | 0.042848 | 0.644005 | 0.537099 | 0.497679 | 0.386989 | 0.369992 | 0.356281 | 0 | 0.044903 | 0.245726 | 21,760 | 471 | 126 | 46.199575 | 0.808262 | 0.056388 | 0 | 0.407507 | 0 | 0.008043 | 0.280763 | 0.179272 | 0 | 0 | 0 | 0 | 0.632708 | 1 | 0.024129 | false | 0 | 0.008043 | 0 | 0.037534 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
811caa4ddae0fb9555b35a25b391f8d84b850935 | 3,964 | py | Python | starthinker/task/dcm_api/schema/conversionStatus.py | quan/starthinker | 4e392415d77affd4a3d91165d1141ab38efd3b8b | [
"Apache-2.0"
] | null | null | null | starthinker/task/dcm_api/schema/conversionStatus.py | quan/starthinker | 4e392415d77affd4a3d91165d1141ab38efd3b8b | [
"Apache-2.0"
] | null | null | null | starthinker/task/dcm_api/schema/conversionStatus.py | quan/starthinker | 4e392415d77affd4a3d91165d1141ab38efd3b8b | [
"Apache-2.0"
] | null | null | null | ###########################################################################
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/l... | 25.410256 | 78 | 0.478809 | 362 | 3,964 | 5.232044 | 0.555249 | 0.133052 | 0.170011 | 0.185322 | 0.383316 | 0.353749 | 0.133052 | 0.133052 | 0.099789 | 0.099789 | 0 | 0.075027 | 0.293895 | 3,964 | 155 | 79 | 25.574194 | 0.601643 | 0.140515 | 0 | 0.773723 | 0 | 0.051095 | 0.506173 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
81245449ce95fdf57bb1c4c72d405f29413a1815 | 136 | py | Python | insta loader.py | mhamaneamogh50/All_Python_Pro | e943d1924f160a98e5df612b920a67ef80be3b61 | [
"0BSD"
] | null | null | null | insta loader.py | mhamaneamogh50/All_Python_Pro | e943d1924f160a98e5df612b920a67ef80be3b61 | [
"0BSD"
] | null | null | null | insta loader.py | mhamaneamogh50/All_Python_Pro | e943d1924f160a98e5df612b920a67ef80be3b61 | [
"0BSD"
] | null | null | null | import instaloader
mod=instaloader.Instaloader
a=input("Enter the profile name --> ")
mod.download_profile(a,profile_pic_only=True)
| 27.2 | 46 | 0.786765 | 19 | 136 | 5.473684 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 136 | 4 | 47 | 34 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
81287d1cbc1ce6953c401f5c870a6781a855265e | 1,654 | py | Python | examples/kubernetes/files/conda_store_config.py | peytondmurray/conda-store | 40fe4a0cecbefaff7cac819244f9862bd188b045 | [
"BSD-3-Clause"
] | null | null | null | examples/kubernetes/files/conda_store_config.py | peytondmurray/conda-store | 40fe4a0cecbefaff7cac819244f9862bd188b045 | [
"BSD-3-Clause"
] | null | null | null | examples/kubernetes/files/conda_store_config.py | peytondmurray/conda-store | 40fe4a0cecbefaff7cac819244f9862bd188b045 | [
"BSD-3-Clause"
] | null | null | null | import logging
from conda_store_server.storage import S3Storage
from conda_store_server.server.auth import DummyAuthentication
# ==================================
# conda-store settings
# ==================================
c.CondaStore.storage_class = S3Storage
c.CondaStore.store_directory = "/opt/conda-store/c... | 33.755102 | 87 | 0.649335 | 175 | 1,654 | 5.988571 | 0.417143 | 0.145992 | 0.087786 | 0.07729 | 0.038168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.096131 | 1,654 | 48 | 88 | 34.458333 | 0.674916 | 0.25393 | 0 | 0 | 0 | 0 | 0.141099 | 0.07055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
812da82da010a04e832a8cfb9414792af6e7a630 | 481 | py | Python | setup.py | braveheuel/prniotlet | 86eb56a1ab0841a84637e4b8f61ee4820c052855 | [
"MIT"
] | 1 | 2020-09-08T22:09:14.000Z | 2020-09-08T22:09:14.000Z | setup.py | braveheuel/prniotlet | 86eb56a1ab0841a84637e4b8f61ee4820c052855 | [
"MIT"
] | null | null | null | setup.py | braveheuel/prniotlet | 86eb56a1ab0841a84637e4b8f61ee4820c052855 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
from setuptools import setup
setup(
name="prniotlet",
version="0.2.1",
author="Christoph Heuel",
author_email="christoph@heuel-web.de",
license="MIT",
install_requires=['python-escpos', 'aiomas[mp]', 'click'],
packages=setuptools.find_packages(),
scripts=[
... | 26.722222 | 62 | 0.650728 | 53 | 481 | 5.849057 | 0.698113 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.180873 | 481 | 17 | 63 | 28.294118 | 0.77665 | 0.045738 | 0 | 0 | 0 | 0 | 0.427948 | 0.296943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8138a427810e5e0b1d5421d00c14a306d2cf9c1e | 1,174 | py | Python | Yikai_helper_funcs/_nbdev.py | DavidykZhao/Yikai_helper_funcs | fe2bed7ae3d0b5b722766358ed1405831837cfa3 | [
"Apache-2.0"
] | null | null | null | Yikai_helper_funcs/_nbdev.py | DavidykZhao/Yikai_helper_funcs | fe2bed7ae3d0b5b722766358ed1405831837cfa3 | [
"Apache-2.0"
] | 2 | 2021-09-28T05:38:10.000Z | 2022-02-26T10:06:59.000Z | Yikai_helper_funcs/_nbdev.py | DavidykZhao/Yikai_helper_funcs | fe2bed7ae3d0b5b722766358ed1405831837cfa3 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"say_hello": "00_core.ipynb",
"say_bye": "00_core.ipynb",
"optimize_bayes_param": "01_bayes_opt.ipynb",
"ReadTabBatchIdentity": "02_tab_ae.ipynb",
"TabularPandasIdentity": ... | 36.6875 | 74 | 0.651618 | 133 | 1,174 | 5.37594 | 0.466165 | 0.048951 | 0.058741 | 0.100699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.202726 | 1,174 | 31 | 75 | 37.870968 | 0.731838 | 0.030664 | 0 | 0 | 1 | 0 | 0.621479 | 0.15669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0.041667 | 0.041667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
813d84a4b51823c471c1f733063cefbb8d02891a | 294 | py | Python | tensor_rl/__init__.py | umd-huang-lab/reinforcement-learning-via-spectral-methods | c7bd04d7eea6869807ed70af76960dcc542b0a82 | [
"MIT"
] | null | null | null | tensor_rl/__init__.py | umd-huang-lab/reinforcement-learning-via-spectral-methods | c7bd04d7eea6869807ed70af76960dcc542b0a82 | [
"MIT"
] | null | null | null | tensor_rl/__init__.py | umd-huang-lab/reinforcement-learning-via-spectral-methods | c7bd04d7eea6869807ed70af76960dcc542b0a82 | [
"MIT"
] | null | null | null |
try:
xrange
except NameError:
xrange = range
# Fix input to cooperate with python 2 and 3.
try:
input = raw_input
except NameError:
pass
# Imports.
import tensor_rl.agents, tensor_rl.experiments, tensor_rl.mdp, tensor_rl.tasks, tensor_rl.utils
import tensor_rl.run_experiments
| 18.375 | 95 | 0.758503 | 44 | 294 | 4.886364 | 0.590909 | 0.223256 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0.173469 | 294 | 15 | 96 | 19.6 | 0.876543 | 0.176871 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d48f1da85175184e5f2c61925936133a57c8f80a | 467 | py | Python | fjord/redirector/tests/__init__.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 16 | 2015-02-06T14:35:57.000Z | 2021-07-10T11:14:00.000Z | fjord/redirector/tests/__init__.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 310 | 2015-01-07T14:39:35.000Z | 2016-05-02T17:41:30.000Z | fjord/redirector/tests/__init__.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 22 | 2015-01-15T13:46:03.000Z | 2020-07-24T10:08:51.000Z | from fjord.base.plugin_utils import load_providers
from fjord.redirector import _REDIRECTORS
class RedirectorTestMixin(object):
"""Mixin that loads Redirectors specified with ``redirectors`` attribute"""
redirectors = []
def setUp(self):
_REDIRECTORS[:] = load_providers(self.redirectors)
... | 29.1875 | 79 | 0.706638 | 45 | 467 | 7.2 | 0.533333 | 0.138889 | 0.123457 | 0.240741 | 0.265432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186296 | 467 | 15 | 80 | 31.133333 | 0.852632 | 0.147752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d491bce2ea5abf9a60f9a2661a9e69099888b73a | 561 | py | Python | mystery/tests/utils.py | anselmbradford/collab-mystery-meet | cda20bd1888edf8666f290c87817e63d8921f3bd | [
"CC0-1.0"
] | 2 | 2015-07-11T17:52:13.000Z | 2016-08-15T04:04:03.000Z | mystery/tests/utils.py | anselmbradford/collab-mystery-meet | cda20bd1888edf8666f290c87817e63d8921f3bd | [
"CC0-1.0"
] | null | null | null | mystery/tests/utils.py | anselmbradford/collab-mystery-meet | cda20bd1888edf8666f290c87817e63d8921f3bd | [
"CC0-1.0"
] | 3 | 2017-07-14T03:20:05.000Z | 2021-02-20T10:40:57.000Z | from django.contrib.auth import get_user_model
from django.test.client import RequestFactory
from core.models import Person
import random
import string
def random_user():
user = get_user_model().objects.create_user(
''.join(random.choice(string.lowercase) for _ in range(12)))
person = Person.object... | 23.375 | 72 | 0.673797 | 75 | 561 | 4.92 | 0.466667 | 0.086721 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.215686 | 561 | 23 | 73 | 24.391304 | 0.834091 | 0.046346 | 0 | 0 | 0 | 0 | 0.001931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d491d23747b7a1b75b028540bf735ad5eca55d90 | 2,766 | py | Python | python/pikov/properties.py | google/pikov | e13f114cab829c18c6a5447d5bec17990267d092 | [
"Apache-2.0"
] | 17 | 2018-04-29T21:08:27.000Z | 2021-12-23T16:11:22.000Z | python/pikov/properties.py | google/pikov | e13f114cab829c18c6a5447d5bec17990267d092 | [
"Apache-2.0"
] | 31 | 2018-06-06T13:50:21.000Z | 2019-05-02T16:06:59.000Z | python/pikov/properties.py | google/pikov | e13f114cab829c18c6a5447d5bec17990267d092 | [
"Apache-2.0"
] | 9 | 2018-04-28T21:14:05.000Z | 2021-10-16T09:13:01.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 27.386139 | 76 | 0.685105 | 356 | 2,766 | 5.143258 | 0.359551 | 0.039323 | 0.032769 | 0.0355 | 0.23266 | 0.222829 | 0.210268 | 0.166029 | 0.166029 | 0.166029 | 0 | 0.006648 | 0.238612 | 2,766 | 100 | 77 | 27.66 | 0.862773 | 0.354302 | 0 | 0.442308 | 0 | 0 | 0.009065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0.019231 | 0.057692 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d492c782df81e0b1685a07e42535a9c0a95a53b1 | 7,461 | py | Python | pyDefi/defi.py | richardstrnad/pyDefi | 172f9e599508b9723ab33088a3df935b7fdf0c6a | [
"MIT"
] | 1 | 2022-03-01T14:09:29.000Z | 2022-03-01T14:09:29.000Z | pyDefi/defi.py | richardstrnad/pyDefi | 172f9e599508b9723ab33088a3df935b7fdf0c6a | [
"MIT"
] | null | null | null | pyDefi/defi.py | richardstrnad/pyDefi | 172f9e599508b9723ab33088a3df935b7fdf0c6a | [
"MIT"
] | 1 | 2022-03-24T12:26:36.000Z | 2022-03-24T12:26:36.000Z | from jsonrpcclient import request
import requests
import logging
logger = logging.getLogger('main.defi')
logger.addHandler(logging.NullHandler())
class Defi(object):
def __init__(self, host, walletpassphrase):
self.host = host
self.walletpassphrase = walletpassphrase
self.account = self.... | 28.048872 | 78 | 0.416432 | 505 | 7,461 | 5.982178 | 0.182178 | 0.097981 | 0.106587 | 0.159881 | 0.467395 | 0.387289 | 0.204568 | 0.204568 | 0.204568 | 0.121152 | 0 | 0.002154 | 0.502212 | 7,461 | 265 | 79 | 28.154717 | 0.811255 | 0 | 0 | 0.353712 | 0 | 0 | 0.068624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144105 | false | 0.017467 | 0.0131 | 0.104803 | 0.30131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d4a62f50c00248be5e70bd42cb0f0ac4496cf3ac | 1,268 | py | Python | src/activation.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | 1 | 2022-03-02T19:05:25.000Z | 2022-03-02T19:05:25.000Z | src/activation.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | null | null | null | src/activation.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | null | null | null | import numpy as np
import math
class Activation:
#stil need to improve reLU and numpy datatype as they always overflow when use RELU
def __init__(self): return None
def ReLU(self, x, Derivative=False):
x = np.clip(x, -600, 600)
if not Derivative:
return np.maximum(0,x)
e... | 34.27027 | 87 | 0.554416 | 199 | 1,268 | 3.502513 | 0.236181 | 0.043042 | 0.129125 | 0.172166 | 0.605452 | 0.605452 | 0.559541 | 0.559541 | 0.493544 | 0.493544 | 0 | 0.072581 | 0.315457 | 1,268 | 36 | 88 | 35.222222 | 0.730415 | 0.064669 | 0 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.058824 | 0.029412 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4afdfbaa85ef9310751bf5604559fa24cc21822 | 819 | py | Python | Part_2_intermediate/mod_2/lesson_3/examples/ex_4_constructor.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_3/examples/ex_4_constructor.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_3/examples/ex_4_constructor.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null |
class Student:
# Konstruktor może przyjąć argumenty
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
self.promoted = False
student = Student()
# Obiekty możemy przekazywać jako argumenty do funkcji
def print_student(student):
prin... | 24.088235 | 93 | 0.71917 | 100 | 819 | 5.57 | 0.39 | 0.251347 | 0.102334 | 0.057451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18315 | 819 | 34 | 94 | 24.088235 | 0.832586 | 0.175824 | 0 | 0.105263 | 0 | 0 | 0.162444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.263158 | 0.263158 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4ba2cacca7171c8add0ad912b812dc890f59eb8 | 586 | py | Python | doxygen/examples/python.py | SwerveRoboticSystems/swerve_resources | f35fa21d8134fbd31255cfa3791a6322188c0457 | [
"MIT"
] | null | null | null | doxygen/examples/python.py | SwerveRoboticSystems/swerve_resources | f35fa21d8134fbd31255cfa3791a6322188c0457 | [
"MIT"
] | null | null | null | doxygen/examples/python.py | SwerveRoboticSystems/swerve_resources | f35fa21d8134fbd31255cfa3791a6322188c0457 | [
"MIT"
] | null | null | null | #! /usr/bin/python
## @file <file_name>
# @brief <file_description>
# @author <first_name> <last_name> - <email>
# @date Created: <date>
## <var_description>
var = 0
class <class_name>:
"""!
@brief <brief_description>
@author <first_name> <last_name> - <email>
@date Created: <date>
"""
def function(input, s... | 20.206897 | 45 | 0.675768 | 71 | 586 | 5.309859 | 0.309859 | 0.148541 | 0.175066 | 0.206897 | 0.482759 | 0.482759 | 0.482759 | 0.482759 | 0.482759 | 0.482759 | 0 | 0.002012 | 0.151877 | 586 | 28 | 46 | 20.928571 | 0.756539 | 0.25256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4c874e28d40be672e9d74c9e7779aa2746f3152 | 133 | py | Python | screenshot/__init__.py | imThinking/wininfo | 5230cbe3f8a68a9124daa5905a4c819fd004149f | [
"Apache-2.0"
] | null | null | null | screenshot/__init__.py | imThinking/wininfo | 5230cbe3f8a68a9124daa5905a4c819fd004149f | [
"Apache-2.0"
] | null | null | null | screenshot/__init__.py | imThinking/wininfo | 5230cbe3f8a68a9124daa5905a4c819fd004149f | [
"Apache-2.0"
] | null | null | null | __title__ = 'wininfo'
__version__ = '0.1'
__author__ = 'ZHOU'
__license__ = 'Apache v2.0 License'
from .screenshot import ScreenShot | 22.166667 | 35 | 0.75188 | 16 | 133 | 5.25 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.135338 | 133 | 6 | 36 | 22.166667 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.246269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4c99edca4e06a1b4c521f8db100e690fb2e0295 | 615 | py | Python | api/anubis/views/public/repos.py | synoet/Anubis | 051888a88e37c67e5e772245604c79ceb4db8764 | [
"MIT"
] | 2 | 2022-02-24T17:39:27.000Z | 2022-02-25T02:14:06.000Z | api/anubis/views/public/repos.py | synoet/Anubis | 051888a88e37c67e5e772245604c79ceb4db8764 | [
"MIT"
] | null | null | null | api/anubis/views/public/repos.py | synoet/Anubis | 051888a88e37c67e5e772245604c79ceb4db8764 | [
"MIT"
] | null | null | null | from flask import Blueprint
from anubis.utils.auth import current_user, require_user
from anubis.utils.http.decorators import json_response
from anubis.utils.http.https import success_response
from anubis.utils.lms.repos import get_repos
repos_ = Blueprint("public-repos", __name__, url_prefix="/public/repos")
@repo... | 22.777778 | 72 | 0.731707 | 86 | 615 | 5.011628 | 0.418605 | 0.092807 | 0.139211 | 0.088167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15935 | 615 | 26 | 73 | 23.653846 | 0.833656 | 0.136585 | 0 | 0 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d4d2646b43665695a46ce83dfa1601e9aa7aa96a | 236 | py | Python | src/main/helloworld/git_info.py | salimfadhley/python_hello_world_server | eaffd7ffa0d5b5c11e548d0c8efbfab856df0bee | [
"MIT"
] | null | null | null | src/main/helloworld/git_info.py | salimfadhley/python_hello_world_server | eaffd7ffa0d5b5c11e548d0c8efbfab856df0bee | [
"MIT"
] | null | null | null | src/main/helloworld/git_info.py | salimfadhley/python_hello_world_server | eaffd7ffa0d5b5c11e548d0c8efbfab856df0bee | [
"MIT"
] | null | null | null | """
A very important module, designed to do something hella-useful.
"""
import git
def get_git_info(repo_root="/project") -> git.refs.log.RefLogEntry:
"""Such a cool function!
"""
return git.Repo(repo_root).head.log()[-1]
| 21.454545 | 67 | 0.677966 | 35 | 236 | 4.457143 | 0.771429 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.161017 | 236 | 10 | 68 | 23.6 | 0.782828 | 0.381356 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d4d317010492dc86a5da83834fb290dc9e7d805e | 1,962 | py | Python | functionaltests/api/v2/clients/zone_client.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | functionaltests/api/v2/clients/zone_client.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | functionaltests/api/v2/clients/zone_client.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 33.254237 | 72 | 0.69368 | 273 | 1,962 | 4.882784 | 0.358974 | 0.066017 | 0.052513 | 0.067517 | 0.385596 | 0.385596 | 0.35934 | 0.217554 | 0.099025 | 0.099025 | 0 | 0.008264 | 0.198267 | 1,962 | 58 | 73 | 33.827586 | 0.839161 | 0.279817 | 0 | 0.290323 | 0 | 0 | 0.011388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.064516 | 0.096774 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4d48bfaae76f28897549b255d01e8ba270298c6 | 2,258 | py | Python | run.py | mcarans/hdx-scraper-unesco | 01185326de5f8f041618ff5ae538880ca2ee6ba1 | [
"MIT"
] | null | null | null | run.py | mcarans/hdx-scraper-unesco | 01185326de5f8f041618ff5ae538880ca2ee6ba1 | [
"MIT"
] | null | null | null | run.py | mcarans/hdx-scraper-unesco | 01185326de5f8f041618ff5ae538880ca2ee6ba1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Top level script. Calls other functions that generate datasets that this script then creates in HDX.
"""
import logging
from os.path import join, expanduser
from timeit import default_timer
from hdx.hdx_configuration import Configuration
from hdx.utilities.downloader impo... | 42.603774 | 194 | 0.675819 | 260 | 2,258 | 5.619231 | 0.411538 | 0.013689 | 0.036961 | 0.035592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000574 | 0.228964 | 2,258 | 52 | 195 | 43.423077 | 0.838599 | 0.085917 | 0 | 0 | 1 | 0 | 0.081094 | 0.012213 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.03125 | false | 0 | 0.25 | 0 | 0.28125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.