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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4101732a8e5e7c9e56203bc886b8d1f2fbcc59d4 | 396 | py | Python | SimpleConditionalStatements/AreaOfFigures.py | yani-valeva/Programming-Basics-Python | c553d331ffd210d362df0098bedf28e125a65dbf | [
"MIT"
] | null | null | null | SimpleConditionalStatements/AreaOfFigures.py | yani-valeva/Programming-Basics-Python | c553d331ffd210d362df0098bedf28e125a65dbf | [
"MIT"
] | null | null | null | SimpleConditionalStatements/AreaOfFigures.py | yani-valeva/Programming-Basics-Python | c553d331ffd210d362df0098bedf28e125a65dbf | [
"MIT"
] | null | null | null | import math
figure = input()
area = 0.0
if figure == "square":
a = float(input())
area = a * a
elif figure == "rectangle":
a = float(input())
b = float(input())
area = a * b
elif figure == "circle":
r = float(input())
area = math.pi * (r ** 2)
elif figure == "triangle":
a = float(input()... | 20.842105 | 29 | 0.527778 | 57 | 396 | 3.666667 | 0.385965 | 0.287081 | 0.267943 | 0.215311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020761 | 0.270202 | 396 | 19 | 30 | 20.842105 | 0.702422 | 0 | 0 | 0.166667 | 0 | 0 | 0.09068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4106750da8ab13ed9c340394a5e8d587e268c46f | 1,455 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/texture_object.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/texture_object.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/texture_object.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import... | 39.324324 | 116 | 0.80756 | 216 | 1,455 | 5.050926 | 0.337963 | 0.082493 | 0.038497 | 0.059578 | 0.414299 | 0.203483 | 0.131072 | 0.131072 | 0.131072 | 0.131072 | 0 | 0.022573 | 0.086598 | 1,455 | 36 | 117 | 40.416667 | 0.798345 | 0.068729 | 0 | 0.25 | 1 | 0 | 0.124238 | 0.124238 | 0 | 0 | 0.022866 | 0 | 0 | 1 | 0.21875 | false | 0.1875 | 0.1875 | 0.03125 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4112a54c62574cd03e1d9faccf9dc874a3d01f17 | 174 | py | Python | exercicios/desafio24.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | exercicios/desafio24.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | exercicios/desafio24.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | print('============= Verificar Nomes de Cidades =============')
nome = str(input('Informe o nome da Cidade ')).strip()
santo = nome.split()
print(santo[0].upper() in 'SANTO') | 43.5 | 63 | 0.586207 | 23 | 174 | 4.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.109195 | 174 | 4 | 64 | 43.5 | 0.651613 | 0 | 0 | 0 | 0 | 0 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4127070efd874b1e586a33c286b0d9a51b18cee6 | 216 | py | Python | paynter/__init__.py | elkiwy/paynter | 35a31600b65aa91b26d2f089aaa15051e697a637 | [
"MIT"
] | 2 | 2019-02-11T17:10:35.000Z | 2022-03-12T23:20:45.000Z | paynter/__init__.py | elkiwy/paynter | 35a31600b65aa91b26d2f089aaa15051e697a637 | [
"MIT"
] | 3 | 2021-09-08T00:35:47.000Z | 2022-03-11T23:33:18.000Z | paynter/__init__.py | elkiwy/paynter | 35a31600b65aa91b26d2f089aaa15051e697a637 | [
"MIT"
] | 2 | 2020-03-08T18:19:05.000Z | 2020-12-14T05:07:05.000Z | #Import all the paynter modules
name = "paynter"
from .brush import *
from .paynter import *
from .layer import *
from .image import *
from .color import *
from .blendModes import *
import paynter.config as config
| 18 | 31 | 0.74537 | 30 | 216 | 5.366667 | 0.466667 | 0.310559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 216 | 11 | 32 | 19.636364 | 0.904494 | 0.138889 | 0 | 0 | 0 | 0 | 0.037838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f5b4f58e20d319cda5c1ca35238772c0003899a6 | 378 | py | Python | pplp/builders/bev_generator_panoptic_builder.py | UoE-AIRS/PPLP | 34b165b95262bc8ee0f22b22e293d0932f6cbc11 | [
"MIT"
] | 7 | 2020-06-11T07:44:44.000Z | 2021-07-18T11:27:07.000Z | pplp/builders/bev_generator_panoptic_builder.py | UoE-AIRS/PPLP | 34b165b95262bc8ee0f22b22e293d0932f6cbc11 | [
"MIT"
] | 1 | 2020-08-03T22:45:48.000Z | 2020-08-03T22:45:48.000Z | pplp/builders/bev_generator_panoptic_builder.py | UoE-AIRS/PPLP | 34b165b95262bc8ee0f22b22e293d0932f6cbc11 | [
"MIT"
] | 3 | 2020-01-28T15:49:42.000Z | 2021-03-30T08:00:20.000Z | from pplp.core.bev_generators import bev_panoptic_slices
def build(bev_maps_type_config, panoptic_utils):
bev_maps_type = bev_maps_type_config.WhichOneof('bev_maps_type')
if bev_maps_type == 'slices':
return bev_panoptic_slices.BevSlices(
bev_maps_type_config.slices, panoptic_utils)
... | 29.076923 | 68 | 0.772487 | 54 | 378 | 4.925926 | 0.388889 | 0.210526 | 0.330827 | 0.191729 | 0.165414 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156085 | 378 | 12 | 69 | 31.5 | 0.833856 | 0 | 0 | 0 | 0 | 0 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f5e04b35e061556e7459c0a3993974fe637aabe1 | 1,051 | py | Python | deltasigma/_nabsH.py | michi7x7/python-deltasigma | 029e97eb6de748744f62840114ae6725ec5a721b | [
"OLDAP-2.6",
"Python-2.0"
] | 43 | 2015-01-11T14:42:21.000Z | 2022-01-06T13:07:06.000Z | deltasigma/_nabsH.py | thomasrussellmurphy/python-deltasigma | 826ccbcfaadc0597e62f55b2d0eda39b26f7c4c1 | [
"OLDAP-2.6",
"Python-2.0"
] | 33 | 2015-06-04T10:47:36.000Z | 2022-01-07T10:20:44.000Z | deltasigma/_nabsH.py | thomasrussellmurphy/python-deltasigma | 826ccbcfaadc0597e62f55b2d0eda39b26f7c4c1 | [
"OLDAP-2.6",
"Python-2.0"
] | 39 | 2015-02-10T06:55:58.000Z | 2022-01-20T19:23:44.000Z | # -*- coding: utf-8 -*-
# _nabsH.py
# This module provides the nabsH function.
# Copyright 2013 Giuseppe Venturini
# This file is part of python-deltasigma.
#
# python-deltasigma is a 1:1 Python replacement of Richard Schreier's
# MATLAB delta sigma toolbox (aka "delsigma"), upon which it is heavily based.
# The delta ... | 30.028571 | 78 | 0.722169 | 162 | 1,051 | 4.67284 | 0.574074 | 0.063408 | 0.047556 | 0.055482 | 0.195509 | 0.195509 | 0.10568 | 0.10568 | 0.10568 | 0 | 0 | 0.014118 | 0.191246 | 1,051 | 34 | 79 | 30.911765 | 0.876471 | 0.823977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f5e7e3eaabf80881efdd10ed11facfca05654aca | 602 | py | Python | lib/transforms.py | vuvko/fair_face | 52a867b06344137c1a0095e443c1abbe2d756ef3 | [
"MIT"
] | 1 | 2021-04-22T03:17:36.000Z | 2021-04-22T03:17:36.000Z | lib/transforms.py | vuvko/fair_face | 52a867b06344137c1a0095e443c1abbe2d756ef3 | [
"MIT"
] | null | null | null | lib/transforms.py | vuvko/fair_face | 52a867b06344137c1a0095e443c1abbe2d756ef3 | [
"MIT"
] | null | null | null | import numpy as np
import mxnet as mx
from mxnet.gluon.nn import Block, HybridBlock
class AlbumentationTransform(Block):
def __init__(self, augmentation):
super(AlbumentationTransform, self).__init__()
self.augmentation = augmentation
def forward(self, x):
return mx.nd.array(self.aug... | 24.08 | 73 | 0.662791 | 73 | 602 | 5.219178 | 0.452055 | 0.08399 | 0.062992 | 0.08399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229236 | 602 | 25 | 74 | 24.08 | 0.821121 | 0 | 0 | 0 | 0 | 0 | 0.008292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f5f3f9add7813380eb51ad31626b6885f90f0a8b | 178 | py | Python | pyclassifiers/static.py | veltzer/pyclassifiers | e6cce84f47c4d03fb25654a9e0e860ab9d920199 | [
"MIT"
] | null | null | null | pyclassifiers/static.py | veltzer/pyclassifiers | e6cce84f47c4d03fb25654a9e0e860ab9d920199 | [
"MIT"
] | null | null | null | pyclassifiers/static.py | veltzer/pyclassifiers | e6cce84f47c4d03fb25654a9e0e860ab9d920199 | [
"MIT"
] | null | null | null | """ version which can be consumed from within the module """
VERSION_STR = "0.0.6"
DESCRIPTION = "classifiers from pypi"
APP_NAME = "pyclassifiers"
LOGGER_NAME = "pyclassifiers"
| 29.666667 | 60 | 0.747191 | 24 | 178 | 5.416667 | 0.791667 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.140449 | 178 | 5 | 61 | 35.6 | 0.830065 | 0.292135 | 0 | 0 | 0 | 0 | 0.440678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb1896cd56ab32861bf2064bb48b42cacdd84639 | 433 | py | Python | exchanges/migrations/0002_auto_20191220_0659.py | Zeppelin17/django-cryptocalc | 350b6fd757410bfaf114e7e953d1516135e7b613 | [
"Unlicense",
"MIT"
] | 1 | 2021-02-04T16:17:43.000Z | 2021-02-04T16:17:43.000Z | exchanges/migrations/0002_auto_20191220_0659.py | Zeppelin17/django-cryptocalc | 350b6fd757410bfaf114e7e953d1516135e7b613 | [
"Unlicense",
"MIT"
] | null | null | null | exchanges/migrations/0002_auto_20191220_0659.py | Zeppelin17/django-cryptocalc | 350b6fd757410bfaf114e7e953d1516135e7b613 | [
"Unlicense",
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2019-12-20 05:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exchanges', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='exchange',
name='pair_name',
),
... | 19.681818 | 47 | 0.561201 | 42 | 433 | 5.666667 | 0.690476 | 0.176471 | 0.218487 | 0.252101 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0.065068 | 0.325635 | 433 | 21 | 48 | 20.619048 | 0.75 | 0.103926 | 0 | 0.4 | 1 | 0 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb44225ce2cea931407d0e03bd0d1b04593558b9 | 4,334 | py | Python | village/types.py | healyou/travian_bot | 4b702cd098719106a53f7fcda9c82ba768673b65 | [
"CC0-1.0"
] | null | null | null | village/types.py | healyou/travian_bot | 4b702cd098719106a53f7fcda9c82ba768673b65 | [
"CC0-1.0"
] | null | null | null | village/types.py | healyou/travian_bot | 4b702cd098719106a53f7fcda9c82ba768673b65 | [
"CC0-1.0"
] | null | null | null | from abc import abstractmethod
from enum import Enum
from collections import namedtuple
ProductionTuple = namedtuple('ProductionTuple', ['code', 'displayName'])
class Production(Enum):
WOOD = ProductionTuple('wood', 'Лесопилка')
CLAY = ProductionTuple('clay', 'Глиняный карьер')
IRON = ProductionTuple('iro... | 27.96129 | 100 | 0.681126 | 373 | 4,334 | 7.898123 | 0.22252 | 0.069246 | 0.06721 | 0.076375 | 0.255601 | 0.233198 | 0.233198 | 0.233198 | 0.233198 | 0.217244 | 0 | 0 | 0.225427 | 4,334 | 155 | 101 | 27.96129 | 0.877569 | 0.007153 | 0 | 0.521368 | 0 | 0 | 0.09112 | 0.005114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239316 | false | 0.102564 | 0.025641 | 0.08547 | 0.529915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
de1eb4a4edc76e26e2f1d02e8d41f5119b1a1fbb | 460 | py | Python | pyregion/__init__.py | sargas/pyregion | cefe5eef7b6fd403c45b64dad91eb1f7d2997ee5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pyregion/__init__.py | sargas/pyregion | cefe5eef7b6fd403c45b64dad91eb1f7d2997ee5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pyregion/__init__.py | sargas/pyregion | cefe5eef7b6fd403c45b64dad91eb1f7d2997ee5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | """
pyregion: a Python parser for ds9 region files
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import *
# ------------------------------------------------... | 32.857143 | 78 | 0.48913 | 48 | 460 | 4.5625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.134783 | 460 | 13 | 79 | 35.384615 | 0.547739 | 0.78913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
de332d89db4c31658abbf046c10c95d6fbe7645a | 565 | py | Python | trabalho1/Vertice.py | Brunokrk/TEG | 4d9e6271a84563018c5af8b019be90455080f69b | [
"MIT"
] | null | null | null | trabalho1/Vertice.py | Brunokrk/TEG | 4d9e6271a84563018c5af8b019be90455080f69b | [
"MIT"
] | null | null | null | trabalho1/Vertice.py | Brunokrk/TEG | 4d9e6271a84563018c5af8b019be90455080f69b | [
"MIT"
] | null | null | null | #Bruno Marchi Pires
class Vertice:
def __init__(self,rotulo):
self.rotulo = rotulo
self.visitado = False
self.predecessor = ""
self.cor = 0
self.raiz = False
self.distancia = 0
def igualA(self,r):
return r == self.rotulo
def foiVisitado(self):
... | 19.482759 | 31 | 0.564602 | 65 | 565 | 4.846154 | 0.384615 | 0.152381 | 0.107937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.345133 | 565 | 28 | 32 | 20.178571 | 0.845946 | 0.031858 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0 | 0.15 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
de46ca7d692e1bcea652d1f54eeb2842b885245d | 292 | py | Python | src/fifteen/puzzle_type.py | simone-campagna/fifteen | b28af830743bbdc940c6149804cbf41c7829a717 | [
"Apache-2.0"
] | null | null | null | src/fifteen/puzzle_type.py | simone-campagna/fifteen | b28af830743bbdc940c6149804cbf41c7829a717 | [
"Apache-2.0"
] | null | null | null | src/fifteen/puzzle_type.py | simone-campagna/fifteen | b28af830743bbdc940c6149804cbf41c7829a717 | [
"Apache-2.0"
] | null | null | null | import enum
__all__ = [
'PuzzleType',
'rot_puzzle_type',
]
class PuzzleType(enum.IntEnum):
BR = 0
UL = 1
ROT_PUZZLE_TYPE = {
PuzzleType.BR: PuzzleType.UL,
PuzzleType.UL: PuzzleType.BR,
}
def rot_puzzle_type(puzzle_type):
return ROT_PUZZLE_TYPE[puzzle_type]
| 13.272727 | 39 | 0.678082 | 38 | 292 | 4.842105 | 0.394737 | 0.326087 | 0.282609 | 0.206522 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.215753 | 292 | 21 | 40 | 13.904762 | 0.79476 | 0 | 0 | 0 | 0 | 0 | 0.085616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de49872d10049d5427b1fafbb0b782ccad1af9fb | 125 | py | Python | config/development.py | Jaydonjin/seer | adeb14601b07de93603176694115c9673f010989 | [
"MIT"
] | null | null | null | config/development.py | Jaydonjin/seer | adeb14601b07de93603176694115c9673f010989 | [
"MIT"
] | null | null | null | config/development.py | Jaydonjin/seer | adeb14601b07de93603176694115c9673f010989 | [
"MIT"
] | null | null | null | # Local development environment setting
DEBUG = True
# DB
SQLALCHEMY_DATABASE_URI = 'mysql://root:root@localhost:3306/seer'
| 20.833333 | 65 | 0.784 | 16 | 125 | 6 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.112 | 125 | 5 | 66 | 25 | 0.828829 | 0.32 | 0 | 0 | 0 | 0 | 0.45122 | 0.45122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de6ae6e4528e417af28150dd32e1d3796ed36796 | 160 | py | Python | unsorted/pythonsnippets_ID86bn.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_ID86bn.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_ID86bn.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | def organize(tree, key):
if key is None: return []
result = [key, []]
for k in tree.get(key, [None]):
result[-1].append(organize(tree, k))
return result
| 20 | 38 | 0.6375 | 26 | 160 | 3.923077 | 0.576923 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.18125 | 160 | 7 | 39 | 22.857143 | 0.770992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de8bc39d705b7a5f50cd4a5f7e984193e2388918 | 501 | py | Python | finished/python_principles/07_add_dots.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 8 | 2021-05-29T23:30:12.000Z | 2021-09-24T03:25:44.000Z | finished/python_principles/07_add_dots.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | null | null | null | finished/python_principles/07_add_dots.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 6 | 2021-06-02T14:20:24.000Z | 2021-08-19T00:49:26.000Z | def add_dots(string: str) -> str:
return ".".join(string)
# return "".join(
# [
# char + "." if index != len(string) - 1 else char
# for index, char in enumerate(string)
# ]
# )
def remove_dots(string: str) -> str:
return string.replace(".", "")
# return ""... | 20.875 | 62 | 0.532934 | 60 | 501 | 4.233333 | 0.4 | 0.082677 | 0.102362 | 0.125984 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0.285429 | 501 | 23 | 63 | 21.782609 | 0.706704 | 0.37525 | 0 | 0 | 0 | 0 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
de9a3ff8777e1533653500ba89cf0d86f33f34fb | 18 | py | Python | wechatbot/wechatbot/sayhello/__init__.py | pixelworksIT/wechat-bot-code-b | 15b9e0d91782c1950845ccfdd5a03cef49e5886a | [
"Apache-2.0"
] | null | null | null | wechatbot/wechatbot/sayhello/__init__.py | pixelworksIT/wechat-bot-code-b | 15b9e0d91782c1950845ccfdd5a03cef49e5886a | [
"Apache-2.0"
] | null | null | null | wechatbot/wechatbot/sayhello/__init__.py | pixelworksIT/wechat-bot-code-b | 15b9e0d91782c1950845ccfdd5a03cef49e5886a | [
"Apache-2.0"
] | null | null | null | name = u'sayhello' | 18 | 18 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 18 | 1 | 18 | 18 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
debbc2794bb3a1a7842c1c493a046575720bbeac | 3,149 | py | Python | python_libs/variables.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | 1 | 2020-09-20T09:38:05.000Z | 2020-09-20T09:38:05.000Z | python_libs/variables.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | python_libs/variables.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: latin-1 -*-
##############################################
# Author: Ruben Izquierdo Bevia #
# VU University of Amsterdam #
# Mail: ruben.izquierdobevia@vu.nl #
# rubensanvi@gmail.com #
# Webpage: http://rubenizquierdobevia.com #
# Version:... | 112.464286 | 2,105 | 0.774532 | 423 | 3,149 | 5.692671 | 0.846336 | 0.018272 | 0.019934 | 0.033638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003791 | 0.162274 | 3,149 | 27 | 2,106 | 116.62963 | 0.909022 | 0.098444 | 0 | 0 | 0 | 0.071429 | 0.852604 | 0.018471 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ded19baf2ca029ce347886c4d1b9cbe332895cd6 | 975 | py | Python | pitches/models.py | peterndungukamau/Pitches-app | d4a975e700ee4efd105d4a383fd1be4a62df3f6e | [
"MIT"
] | null | null | null | pitches/models.py | peterndungukamau/Pitches-app | d4a975e700ee4efd105d4a383fd1be4a62df3f6e | [
"MIT"
] | null | null | null | pitches/models.py | peterndungukamau/Pitches-app | d4a975e700ee4efd105d4a383fd1be4a62df3f6e | [
"MIT"
] | null | null | null | from pitches import db
from datetime import datetime
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(15), unique=True, nullable=False)
email = db.Column(db.String(100), unique=True, nullable=False)
image_file = db.Column(db.String(15), nullable=False, default=... | 36.111111 | 78 | 0.695385 | 140 | 975 | 4.75 | 0.314286 | 0.120301 | 0.150376 | 0.120301 | 0.314286 | 0.120301 | 0.120301 | 0.120301 | 0.120301 | 0.120301 | 0 | 0.014303 | 0.139487 | 975 | 26 | 79 | 37.5 | 0.778308 | 0 | 0 | 0.210526 | 0 | 0 | 0.130256 | 0.048205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0.105263 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
dee6565d8624614b589fc81fc175fc409104bf0a | 72 | py | Python | venv/lib/python3.5/token.py | patientman/flasky | 4ec08fba58bb0f484487aa657db02a1d1671830d | [
"MIT"
] | 5 | 2015-10-03T20:46:17.000Z | 2020-06-20T17:40:05.000Z | venv/lib/python3.5/token.py | patientman/flasky | 4ec08fba58bb0f484487aa657db02a1d1671830d | [
"MIT"
] | 5 | 2018-06-11T22:23:06.000Z | 2020-02-28T02:20:52.000Z | lib/python3.5/token.py | lincolnmroth/phsapp-API | 95d7edc94e4007f8148034953c23eb90820adec8 | [
"MIT"
] | 1 | 2018-07-09T09:49:01.000Z | 2018-07-09T09:49:01.000Z | /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/token.py | 72 | 72 | 0.833333 | 12 | 72 | 5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 72 | 1 | 72 | 72 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
def19a5fcd77a4274d5b6a780e2cca04010f4dc6 | 56 | py | Python | scripts/portal/101072000_east.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 9 | 2021-04-26T11:59:29.000Z | 2021-12-20T13:15:27.000Z | scripts/portal/101072000_east.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/portal/101072000_east.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 6 | 2021-07-14T06:32:05.000Z | 2022-02-06T02:32:56.000Z | # Elliniel Academy Lobby portal to
sm.warp(101072100)
| 14 | 35 | 0.767857 | 8 | 56 | 5.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 0.160714 | 56 | 3 | 36 | 18.666667 | 0.723404 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
def783d898847543240ab558c84ff4d18a3012a7 | 525 | py | Python | qcfractal/dashboard/start_dashboard.py | radical-cybertools/QCFractal | 676997ef4bc267ae9adfe0064843c42a5701dcf4 | [
"BSD-3-Clause"
] | null | null | null | qcfractal/dashboard/start_dashboard.py | radical-cybertools/QCFractal | 676997ef4bc267ae9adfe0064843c42a5701dcf4 | [
"BSD-3-Clause"
] | null | null | null | qcfractal/dashboard/start_dashboard.py | radical-cybertools/QCFractal | 676997ef4bc267ae9adfe0064843c42a5701dcf4 | [
"BSD-3-Clause"
] | null | null | null |
try:
import flask
import dash
import dash_core_components
import dash_html_components
except ModuleNotFound:
raise ModuleNotFound("Could not find `dash`, please `conda install dash -c conda-forge` to use the dashboard.")
try:
import dash_bootstrap_components
except ModuleNotFound:
raise Mo... | 30.882353 | 157 | 0.769524 | 70 | 525 | 5.671429 | 0.385714 | 0.100756 | 0.173804 | 0.176322 | 0.468514 | 0.468514 | 0.468514 | 0.327456 | 0.327456 | 0 | 0 | 0 | 0.165714 | 525 | 16 | 158 | 32.8125 | 0.906393 | 0 | 0 | 0.307692 | 0 | 0.153846 | 0.412214 | 0.101145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.538462 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7218a0817cfdb9ba828d239b7d71be18722e9cb6 | 322 | py | Python | web/transiq/notification/urls.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/notification/urls.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/notification/urls.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from notification import views
notification_url_pattern = [
url(r'^create-notification-device/$', csrf_exempt(views.create_notification_device)),
url(r'^get-all-mobile-devices/$', csrf_exempt(views.get_all_mobile_devices)),
... | 32.2 | 89 | 0.791925 | 45 | 322 | 5.444444 | 0.422222 | 0.122449 | 0.195918 | 0.155102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093168 | 322 | 9 | 90 | 35.777778 | 0.839041 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 0.167702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
72440f1d9fb1b55e8aed0abdae853e2f386ac5c2 | 51 | py | Python | modules/types.py | Multi-Agent-io/feecc-analytics-backend | 052d41a81b48f87f7ff33438c059b3087a45f5f3 | [
"Apache-2.0"
] | null | null | null | modules/types.py | Multi-Agent-io/feecc-analytics-backend | 052d41a81b48f87f7ff33438c059b3087a45f5f3 | [
"Apache-2.0"
] | 1 | 2021-12-03T11:17:59.000Z | 2021-12-03T11:17:59.000Z | modules/types.py | Multi-Agent-io/feecc-analytics-backend | 052d41a81b48f87f7ff33438c059b3087a45f5f3 | [
"Apache-2.0"
] | 1 | 2022-03-23T14:10:43.000Z | 2022-03-23T14:10:43.000Z | import typing as tp
Filter = tp.Dict[str, tp.Any]
| 12.75 | 29 | 0.705882 | 10 | 51 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 51 | 3 | 30 | 17 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7253eecd39ea37de8a910476a50f5a3f57a7ff3a | 153 | py | Python | server/templates.py | clomia/Chatting-Space | 181b6a3977616cfaa07bb6674a3048eb8e1f14ab | [
"Beerware"
] | 7 | 2021-03-13T21:12:11.000Z | 2021-12-12T16:33:25.000Z | publish/server/linux-server/templates.py | clomia/Clomia-Network | 181b6a3977616cfaa07bb6674a3048eb8e1f14ab | [
"Beerware"
] | 5 | 2021-03-01T03:35:24.000Z | 2021-03-14T13:34:52.000Z | server/templates.py | clomia/Clomia-Network | 181b6a3977616cfaa07bb6674a3048eb8e1f14ab | [
"Beerware"
] | null | null | null | DEFAULT_PAGE = "templates/intro"
TEMPLATE_MAPPING = {
'/intro':"templates/intro",
'/forum':"templates/forum",
'/docs':"templates/docs",
} | 25.5 | 32 | 0.633987 | 15 | 153 | 6.333333 | 0.533333 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163399 | 153 | 6 | 33 | 25.5 | 0.742188 | 0 | 0 | 0 | 0 | 0 | 0.493506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0d42a761f329bb45b023ca63fd5558db25ccb8c | 709 | py | Python | api/migrations/0014_auto_20181029_1349.py | tayyipgoren/yuru-api | 3c9c4fd9c858df2e9bdfa98c0d390716e991c03f | [
"Apache-2.0"
] | null | null | null | api/migrations/0014_auto_20181029_1349.py | tayyipgoren/yuru-api | 3c9c4fd9c858df2e9bdfa98c0d390716e991c03f | [
"Apache-2.0"
] | null | null | null | api/migrations/0014_auto_20181029_1349.py | tayyipgoren/yuru-api | 3c9c4fd9c858df2e9bdfa98c0d390716e991c03f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-29 13:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0013_auto_20181029_1344'),
]
operations = [
migrations.AlterField(
model_name='campaign',
name='capacity_take... | 24.448276 | 73 | 0.565585 | 69 | 709 | 5.695652 | 0.637681 | 0.152672 | 0.19084 | 0.221374 | 0.305344 | 0.305344 | 0.305344 | 0.305344 | 0.305344 | 0 | 0 | 0.068323 | 0.318759 | 709 | 28 | 74 | 25.321429 | 0.745342 | 0.06347 | 0 | 0.363636 | 1 | 0 | 0.093656 | 0.034743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0eb1007b8c3a7d86c20128503032fa366f9b92d | 62 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/shielded helion gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/shielded helion gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/shielded helion gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["shielded helion gyromag. ratio"] | 62 | 62 | 0.854839 | 7 | 62 | 7.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 62 | 1 | 62 | 62 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d1848c7c5480e65548f3757833818b66388af74 | 1,715 | py | Python | numpy/numpy1.py | priyalbhatewara123/Python-programs | 90b84310101b76c14b89f256ee9206711908a4ae | [
"bzip2-1.0.6"
] | null | null | null | numpy/numpy1.py | priyalbhatewara123/Python-programs | 90b84310101b76c14b89f256ee9206711908a4ae | [
"bzip2-1.0.6"
] | null | null | null | numpy/numpy1.py | priyalbhatewara123/Python-programs | 90b84310101b76c14b89f256ee9206711908a4ae | [
"bzip2-1.0.6"
] | null | null | null | Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import numpy
>>> arr = ('i' ,[1,2,3])
>>> arr
('i', [1, 2, 3])
>>> a = [1,5,7,8]
>>> a
[1, 5, 7, 8]
>>> ae = ([1,0,9,8] , int)
>>> ae
([1, 0, 9, 8],... | 31.181818 | 94 | 0.552187 | 277 | 1,715 | 3.418773 | 0.371841 | 0.014784 | 0.022175 | 0.021119 | 0.381204 | 0.263992 | 0.24076 | 0.213305 | 0.124604 | 0.124604 | 0 | 0.277695 | 0.220991 | 1,715 | 54 | 95 | 31.759259 | 0.431138 | 0.029738 | 0 | 0.185185 | 0 | 0 | 0.055355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.148148 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d1bded362f9045949fa529b307519f4e2f7fecc | 66,656 | py | Python | pysnmp-with-texts/CISCO-VISM-DSX0-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-VISM-DSX0-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-VISM-DSX0-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 CISCO-VISM-DSX0-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VISM-DSX0-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:18:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 240.635379 | 3,413 | 0.786006 | 9,164 | 66,656 | 5.716936 | 0.096028 | 0.035274 | 0.061729 | 0.035427 | 0.611166 | 0.51319 | 0.50126 | 0.478679 | 0.466196 | 0.444283 | 0 | 0.05362 | 0.114738 | 66,656 | 276 | 3,414 | 241.507246 | 0.834226 | 0.004981 | 0 | 0.037594 | 0 | 0.214286 | 0.569811 | 0.033582 | 0 | 0 | 0 | 0 | 0.003759 | 1 | 0 | false | 0 | 0.030075 | 0 | 0.030075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d30b49eb5fdaa2ad2d8736176d20d01bdde2c30 | 3,417 | py | Python | brobin/settings.py | Brobin/brobin.me | 4a625aedee4a9ebe35c14bdb3118afb98f97b48d | [
"Unlicense",
"MIT"
] | 4 | 2016-01-30T20:40:38.000Z | 2020-11-24T12:23:30.000Z | brobin/settings.py | Brobin/brobin.me | 4a625aedee4a9ebe35c14bdb3118afb98f97b48d | [
"Unlicense",
"MIT"
] | 4 | 2021-04-08T18:29:06.000Z | 2022-02-10T08:55:47.000Z | brobin/settings.py | Brobin/brobin.me | 4a625aedee4a9ebe35c14bdb3118afb98f97b48d | [
"Unlicense",
"MIT"
] | 3 | 2016-06-14T02:38:43.000Z | 2020-11-24T13:46:49.000Z | """
Django settings for brobin project.
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
try:
from ... | 25.5 | 91 | 0.700907 | 351 | 3,417 | 6.703704 | 0.430199 | 0.127072 | 0.050574 | 0.042499 | 0.160646 | 0.132597 | 0.066298 | 0.066298 | 0.033999 | 0 | 0 | 0.008466 | 0.170325 | 3,417 | 133 | 92 | 25.691729 | 0.821517 | 0.163594 | 0 | 0.022727 | 1 | 0 | 0.575949 | 0.476793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056818 | 0.034091 | 0 | 0.034091 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9d419e75b083d656cd685054fcd69233ce58ed2f | 321 | py | Python | ansible-devel/test/integration/targets/connection_delegation/action_plugins/delegation_action.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/connection_delegation/action_plugins/delegation_action.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/connection_delegation/action_plugins/delegation_action.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
return {
'remote_password': self._connection.get_option('remote_password'),
}... | 24.692308 | 78 | 0.722741 | 36 | 321 | 6.027778 | 0.777778 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 321 | 12 | 79 | 26.75 | 0.831418 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0.125 | 0.625 | 0.125 | 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 | 1 | 1 | 0 | 0 | 3 |
9d4f0b0609196bbc878b69d044cca394875f5637 | 183 | py | Python | apps/api/worker/urls.py | Failjak/constructCompany_DRF | 458a8e33d7bca72db883745388065a05c42bbd1f | [
"BSD-3-Clause"
] | null | null | null | apps/api/worker/urls.py | Failjak/constructCompany_DRF | 458a8e33d7bca72db883745388065a05c42bbd1f | [
"BSD-3-Clause"
] | null | null | null | apps/api/worker/urls.py | Failjak/constructCompany_DRF | 458a8e33d7bca72db883745388065a05c42bbd1f | [
"BSD-3-Clause"
] | null | null | null | from rest_framework.routers import SimpleRouter
from .views import WorkerView
router = SimpleRouter()
router.register('', WorkerView, basename='worker')
urlpatterns = router.urls
| 18.3 | 50 | 0.79235 | 20 | 183 | 7.2 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 183 | 9 | 51 | 20.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9d5f16c26a24ce3400568c967520b590198496ca | 395 | py | Python | Python-Advanced/Python Exam-exercise_16_dec/problem_3.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/Python Exam-exercise_16_dec/problem_3.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/Python Exam-exercise_16_dec/problem_3.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | def get_magic_triangle(number):
magic_triangle = [[1], [1, 1]]
number -= 2
while number:
number -= 1
magic_triangle.append([1])
for n in range(1, len(magic_triangle[-2])):
magic_triangle[-1].append(magic_triangle[-2][n - 1] + magic_triangle[-2][n])
magic_triangle[... | 24.6875 | 88 | 0.607595 | 55 | 395 | 4.145455 | 0.309091 | 0.570175 | 0.184211 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.240506 | 395 | 16 | 89 | 24.6875 | 0.71 | 0.070886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d6190b24d77c97b16b6da25b1bf46323f5149ac | 13 | py | Python | services.py | pinodex/ghost-proxy | e1c8c6b21a9c81a5792fb0044c336023fa699a0c | [
"MIT"
] | null | null | null | services.py | pinodex/ghost-proxy | e1c8c6b21a9c81a5792fb0044c336023fa699a0c | [
"MIT"
] | null | null | null | services.py | pinodex/ghost-proxy | e1c8c6b21a9c81a5792fb0044c336023fa699a0c | [
"MIT"
] | null | null | null | redis = None
| 6.5 | 12 | 0.692308 | 2 | 13 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 13 | 1 | 13 | 13 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19b66523784a2455e7417d75c2c0076c3d2c530a | 210 | py | Python | tests/test_func_asyncio.py | ohduran/ring | 44202e3b89aab2e4c79e32d65c6a2fdc768d7d62 | [
"BSD-2-Clause-FreeBSD"
] | 450 | 2016-08-11T08:56:51.000Z | 2022-02-10T14:05:12.000Z | tests/test_func_asyncio.py | ohduran/ring | 44202e3b89aab2e4c79e32d65c6a2fdc768d7d62 | [
"BSD-2-Clause-FreeBSD"
] | 164 | 2017-03-20T14:13:24.000Z | 2022-03-02T15:52:01.000Z | tests/test_func_asyncio.py | ohduran/ring | 44202e3b89aab2e4c79e32d65c6a2fdc768d7d62 | [
"BSD-2-Clause-FreeBSD"
] | 53 | 2017-03-20T13:59:24.000Z | 2022-03-08T09:55:30.000Z |
import sys
import pytest
if sys.version_info >= (3, 5):
from ._test_func_asyncio import * # noqa
else:
@pytest.mark.skip
def test_this_version_of_python_does_not_support_asyncio():
pass
| 17.5 | 63 | 0.709524 | 31 | 210 | 4.419355 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.209524 | 210 | 11 | 64 | 19.090909 | 0.813253 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
19b7551f92c4372120c3b510a9d22e7ba764d505 | 1,591 | py | Python | tests/test_uselessly_complexified_examples.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-03-30T11:18:37.000Z | 2022-03-30T11:18:37.000Z | tests/test_uselessly_complexified_examples.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-02-23T10:26:38.000Z | 2022-02-23T10:26:38.000Z | tests/test_uselessly_complexified_examples.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | null | null | null | import unittest
from PEPit.examples.unconstrained_convex_minimization import wc_proximal_point
from PEPit.examples.composite_convex_minimization import wc_proximal_gradient
from tests.additional_complexified_examples_tests import wc_proximal_gradient_complexified
from tests.additional_complexified_examples_tests impo... | 36.159091 | 102 | 0.705217 | 219 | 1,591 | 4.885845 | 0.187215 | 0.093458 | 0.08972 | 0.042056 | 0.803738 | 0.713084 | 0.713084 | 0.670093 | 0.617757 | 0.505607 | 0 | 0.023566 | 0.199874 | 1,591 | 43 | 103 | 37 | 0.816968 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.172414 | false | 0 | 0.172414 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19be17d881a50922c30d6999d1a8e32baf70e98d | 2,136 | py | Python | cloudshell-orch-core/tests/test_sandbox.py | QualiSystems/cloudshell-orchestration | ec012a4ec5f6777bbd6e48bf6a29d9d6baa8d742 | [
"Apache-2.0"
] | 1 | 2022-02-07T19:56:20.000Z | 2022-02-07T19:56:20.000Z | cloudshell-orch-core/tests/test_sandbox.py | QualiSystems/cloudshell-orchestration | ec012a4ec5f6777bbd6e48bf6a29d9d6baa8d742 | [
"Apache-2.0"
] | 74 | 2016-07-21T10:58:41.000Z | 2020-06-07T12:05:08.000Z | cloudshell-orch-core/tests/test_sandbox.py | QualiSystems/cloudshell-orchestration | ec012a4ec5f6777bbd6e48bf6a29d9d6baa8d742 | [
"Apache-2.0"
] | 12 | 2016-04-13T16:16:21.000Z | 2022-02-07T19:56:21.000Z | import logging
import unittest
from cloudshell.api import cloudshell_api
import multiprocessing
from cloudshell.logging import interprocess_logger
from cloudshell.workflow.orchestration.sandbox import Sandbox
import sys
if (sys.version_info >= (3,0)):
from unittest.mock import MagicMock, patch
from unittes... | 49.674419 | 468 | 0.715356 | 212 | 2,136 | 7.103774 | 0.509434 | 0.027888 | 0.031873 | 0.039841 | 0.066401 | 0.045153 | 0 | 0 | 0 | 0 | 0 | 0.039609 | 0.137172 | 2,136 | 43 | 469 | 49.674419 | 0.777537 | 0.11236 | 0 | 0 | 0 | 0.096774 | 0.478077 | 0.369255 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.096774 | false | 0.064516 | 0.387097 | 0 | 0.516129 | 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 | 1 | 0 | 0 | 3 |
19f4142f3af5dcd876276b96a764895b264dde4a | 82 | py | Python | app/models/auth_type.py | cmd-ntrf/mc-hub | a636c9019d2af29727c95f5a13ade83f89de3821 | [
"BSD-3-Clause"
] | 5 | 2020-09-04T16:34:36.000Z | 2020-09-25T19:14:59.000Z | app/models/auth_type.py | cmd-ntrf/mc-hub | a636c9019d2af29727c95f5a13ade83f89de3821 | [
"BSD-3-Clause"
] | 39 | 2020-09-12T17:37:14.000Z | 2022-03-10T17:49:57.000Z | app/models/auth_type.py | cmd-ntrf/mc-hub | a636c9019d2af29727c95f5a13ade83f89de3821 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T15:42:13.000Z | 2021-03-29T15:42:13.000Z | from enum import Enum
class AuthType(Enum):
SAML = "SAML"
NONE = "NONE"
| 11.714286 | 21 | 0.621951 | 11 | 82 | 4.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 82 | 6 | 22 | 13.666667 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c2067450e47a089f1a3ac4d15125c1c69813fcee | 634 | py | Python | train/piwise/criterion.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | train/piwise/criterion.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | train/piwise/criterion.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
class CrossEntropyLoss2d(nn.Module):
def __init__(self, weight=None):
super().__init__()
self.loss=nn.NLLLoss2d(weight)
def forward(self, outputs, targets):
return self.loss(F.log_softmax(outputs),targets)
cla... | 26.416667 | 106 | 0.667192 | 84 | 634 | 4.821429 | 0.321429 | 0.079012 | 0.064198 | 0.074074 | 0.651852 | 0.330864 | 0.330864 | 0.330864 | 0.330864 | 0.330864 | 0 | 0.013834 | 0.201893 | 634 | 23 | 107 | 27.565217 | 0.786561 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c2155db66cd4f7fa0ef2db6e958a6d11963361c6 | 3,252 | py | Python | hail/python/hail/experimental/lens.py | 3vivekb/hail | 82c9e0f3ec2154335f91f2219b84c0fb5dbac526 | [
"MIT"
] | 789 | 2016-09-05T04:14:25.000Z | 2022-03-30T09:51:54.000Z | hail/python/hail/experimental/lens.py | 3vivekb/hail | 82c9e0f3ec2154335f91f2219b84c0fb5dbac526 | [
"MIT"
] | 5,724 | 2016-08-29T18:58:40.000Z | 2022-03-31T23:49:42.000Z | hail/python/hail/experimental/lens.py | 3vivekb/hail | 82c9e0f3ec2154335f91f2219b84c0fb5dbac526 | [
"MIT"
] | 233 | 2016-08-31T20:42:38.000Z | 2022-02-17T16:42:39.000Z | import abc
import hail as hl
class TableLike(abc.ABC):
@abc.abstractmethod
def annotate(self, *args, **kwargs):
raise NotImplementedError
@abc.abstractmethod
def drop(self, *args, **kwargs):
raise NotImplementedError
@abc.abstractmethod
def select(self, *args, **kwargs):
... | 26.439024 | 75 | 0.637454 | 374 | 3,252 | 5.417112 | 0.114973 | 0.197433 | 0.165844 | 0.157947 | 0.765548 | 0.698421 | 0.680158 | 0.552813 | 0.175716 | 0.093781 | 0 | 0 | 0.225707 | 3,252 | 122 | 76 | 26.655738 | 0.804607 | 0 | 0 | 0.623529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 1 | 0.364706 | false | 0 | 0.023529 | 0.211765 | 0.670588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c21f82cb8e77ad37dddb34f350ae05e6b550abcd | 106 | py | Python | ex025.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex025.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex025.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | name = input('Enter a name: ')
print('Does this name have \'Silva\'? {}'.format('silva' in name.lower()))
| 35.333333 | 74 | 0.632075 | 16 | 106 | 4.1875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 106 | 2 | 75 | 53 | 0.728261 | 0 | 0 | 0 | 0 | 0 | 0.415094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
df9b1f34ec0ce6283391a2be27e63cb1f484f2e5 | 201 | py | Python | ccal/get_gff3_attribute.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | ccal/get_gff3_attribute.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | ccal/get_gff3_attribute.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | def get_gff3_attribute(attributes, field):
for field_value in attributes.split(sep=";"):
field_, value = field_value.split(sep="=")
if field == field_:
return value
| 20.1 | 50 | 0.616915 | 24 | 201 | 4.916667 | 0.541667 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.263682 | 201 | 9 | 51 | 22.333333 | 0.790541 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfa2f5a39189137aba72b0f466c305dd2cfc7390 | 88 | py | Python | cloud_snitch/meta.py | bunchc/FleetDeploymentReporting | a93af06573f2715e14b4d18b7a394c26fc19a32d | [
"Apache-2.0"
] | 1 | 2018-07-11T20:20:21.000Z | 2018-07-11T20:20:21.000Z | cloud_snitch/meta.py | bunchc/FleetDeploymentReporting | a93af06573f2715e14b4d18b7a394c26fc19a32d | [
"Apache-2.0"
] | 46 | 2018-08-08T19:46:15.000Z | 2019-02-22T20:33:49.000Z | cloud_snitch/meta.py | dani4571/FleetDeploymentReporting | 8b132a20fa3e9c4e4215feade79f689be6e4b364 | [
"Apache-2.0"
] | 7 | 2018-06-26T15:27:55.000Z | 2018-12-05T19:41:25.000Z | version = '0.2.2'
description = "Utility to store cloud_snitch information in neo4j."""
| 29.333333 | 69 | 0.738636 | 13 | 88 | 4.923077 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.136364 | 88 | 2 | 70 | 44 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfd1086b7983be8c708f89be8cbe18a377b5e690 | 281 | py | Python | colorific/routes.py | stkrizh/colorific | 2b49e9598523bfcf12b0195f4718341bd09af901 | [
"MIT"
] | 1 | 2020-07-19T15:04:40.000Z | 2020-07-19T15:04:40.000Z | colorific/routes.py | stkrizh/colorific | 2b49e9598523bfcf12b0195f4718341bd09af901 | [
"MIT"
] | 7 | 2020-07-19T13:45:52.000Z | 2022-03-02T09:26:18.000Z | colorific/routes.py | stkrizh/colorific | 2b49e9598523bfcf12b0195f4718341bd09af901 | [
"MIT"
] | null | null | null | from aiohttp.web import Application
from . import views
def setup(app: Application):
app.router.add_view(r"/image", views.ColorExtractionView)
app.router.add_view(r"/images", views.ImageListView)
app.router.add_view(r"/images/{image_id:\d+}", views.ImageDetailView)
| 28.1 | 73 | 0.747331 | 39 | 281 | 5.282051 | 0.512821 | 0.131068 | 0.174757 | 0.23301 | 0.305825 | 0.223301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113879 | 281 | 9 | 74 | 31.222222 | 0.827309 | 0 | 0 | 0 | 0 | 0 | 0.124555 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
dfe2c96ec7d33b9e3f585a53fe655c9b240121b4 | 271 | py | Python | src/handlers/__init__.py | vegaprotocol/social-media-verification | 5e2d23ff5781136de1692c4dc46b4bb02e588e65 | [
"MIT"
] | null | null | null | src/handlers/__init__.py | vegaprotocol/social-media-verification | 5e2d23ff5781136de1692c4dc46b4bb02e588e65 | [
"MIT"
] | 23 | 2021-03-31T10:19:54.000Z | 2021-10-29T23:55:34.000Z | src/handlers/__init__.py | vegaprotocol/social-media-verification | 5e2d23ff5781136de1692c4dc46b4bb02e588e65 | [
"MIT"
] | null | null | null | from .parties import handle_parties
from .process_tweets import handle_process_tweets
from .statistics import handle_statistics
from .tweet import handle_tweet
__all__ = [
"handle_parties",
"handle_process_tweets",
"handle_statistics",
"handle_tweet",
]
| 22.583333 | 49 | 0.778598 | 32 | 271 | 6.125 | 0.28125 | 0.244898 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151292 | 271 | 11 | 50 | 24.636364 | 0.852174 | 0 | 0 | 0 | 0 | 0 | 0.236162 | 0.077491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dfe671b7d4b17de019aec43cc4baafb2f04af79c | 1,818 | py | Python | testes_do_simulador.py | cadualves/jogos_vorazes | e8caf062fc58b6188e94152084383940c96dba9a | [
"MIT"
] | 8 | 2017-10-11T19:49:28.000Z | 2021-06-16T12:20:39.000Z | testes_do_simulador.py | cadualves/jogos_vorazes | e8caf062fc58b6188e94152084383940c96dba9a | [
"MIT"
] | 6 | 2017-02-02T18:26:34.000Z | 2018-11-08T16:32:52.000Z | testes_do_simulador.py | cadualves/jogos_vorazes | e8caf062fc58b6188e94152084383940c96dba9a | [
"MIT"
] | 26 | 2016-01-15T16:20:57.000Z | 2018-12-11T21:32:57.000Z | import unittest
import os
os.chdir('..')
import simulador
from estrategias.jogadores import Jogador
from io import StringIO
simulador.R = StringIO()
class TesteSimulador(unittest.TestCase):
def setUp(self):
self.torneio = simulador.Torneio()
def testa_instanciacao_dos_jogadores(self):
self.... | 32.464286 | 183 | 0.682068 | 224 | 1,818 | 5.401786 | 0.294643 | 0.209091 | 0.099174 | 0.198347 | 0.37686 | 0.272727 | 0.238843 | 0.200826 | 0 | 0 | 0 | 0.020534 | 0.19637 | 1,818 | 55 | 184 | 33.054545 | 0.807666 | 0.023652 | 0 | 0.195122 | 0 | 0 | 0.019763 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 1 | 0.219512 | false | 0 | 0.121951 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfebaa3a4a812e186fcfa5872bc3b7fbc9ef5338 | 369 | py | Python | models.py | map711/sortedm2m-filter-horizontal-widget | 2175a21bb769a3ce7814aa2ecd55372fd398a25a | [
"BSD-3-Clause"
] | null | null | null | models.py | map711/sortedm2m-filter-horizontal-widget | 2175a21bb769a3ce7814aa2ecd55372fd398a25a | [
"BSD-3-Clause"
] | null | null | null | models.py | map711/sortedm2m-filter-horizontal-widget | 2175a21bb769a3ce7814aa2ecd55372fd398a25a | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from sortedm2m.fields import SortedManyToManyField
class Author(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class Book(models.Model):
name = models.CharField(max_length=100)
authors = SortedManyToManyField(Author)
... | 19.421053 | 50 | 0.720867 | 45 | 369 | 5.688889 | 0.488889 | 0.085938 | 0.117188 | 0.164063 | 0.515625 | 0.515625 | 0.328125 | 0.328125 | 0 | 0 | 0 | 0.023569 | 0.195122 | 369 | 18 | 51 | 20.5 | 0.838384 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dffe6bb9b10a1984d31ce0db7c460f68f62cb326 | 259 | py | Python | bit/network/__init__.py | Lusmft/bit | 9a228823422b82448b7370ab75881bbb5632109c | [
"MIT"
] | null | null | null | bit/network/__init__.py | Lusmft/bit | 9a228823422b82448b7370ab75881bbb5632109c | [
"MIT"
] | null | null | null | bit/network/__init__.py | Lusmft/bit | 9a228823422b82448b7370ab75881bbb5632109c | [
"MIT"
] | null | null | null | from .fees import get_fee, get_fee_cached
from .rates import (
currency_to_satoshi, currency_to_satoshi_cached, satoshi_to_currency, satoshi_to_currency_cached,
currency_to_cryptocurrency, cryptocurrency_to_currency
)
from .services import NetworkAPI
| 37 | 101 | 0.849421 | 35 | 259 | 5.8 | 0.371429 | 0.147783 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 259 | 6 | 102 | 43.166667 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5f0349925bd0a78a78e6315431ff8a72474fac7c | 170 | py | Python | regtests/class/__call__.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | regtests/class/__call__.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | regtests/class/__call__.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | """custom callable"""
class A:
def __init__(self):
self.x = 5
def __call__(self):
return 'XXX'
def main():
a = A()
TestError(a.x == 5)
TestError( a()=='XXX' ) | 13.076923 | 24 | 0.582353 | 26 | 170 | 3.5 | 0.538462 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.205882 | 170 | 13 | 24 | 13.076923 | 0.659259 | 0.088235 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5f15d8411851ae749dc73d4a239c43e51442616e | 19,568 | py | Python | recipes/Python/577652_Unit_Conversions_Using_Decimal/recipe-577652.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577652_Unit_Conversions_Using_Decimal/recipe-577652.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577652_Unit_Conversions_Using_Decimal/recipe-577652.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | """
This recipe generates a module convert.py and convertTest.txt which is used
to test conversion.py when it is run.
conversion.py is built from the table defining the unit conversions
* uses the decimal module as a base class and unit types are class properties.
* provides exact decimal representation
* contro... | 42.263499 | 218 | 0.630468 | 2,940 | 19,568 | 3.973129 | 0.132993 | 0.033131 | 0.107696 | 0.139372 | 0.576064 | 0.522558 | 0.460663 | 0.424193 | 0.382416 | 0.353566 | 0 | 0.106157 | 0.163328 | 19,568 | 462 | 219 | 42.354978 | 0.607317 | 0.000971 | 0 | 0.253197 | 1 | 0.066496 | 0.73985 | 0.277875 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02046 | null | null | 0.038363 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f2784328dc9665286d57902e43a2b0cddad180d | 390 | py | Python | utils/utils.py | AlexVonEinzbern/Proyecto-FADA | d7d21c25ff482e11b954e4f1636b21588aef5055 | [
"MIT"
] | null | null | null | utils/utils.py | AlexVonEinzbern/Proyecto-FADA | d7d21c25ff482e11b954e4f1636b21588aef5055 | [
"MIT"
] | null | null | null | utils/utils.py | AlexVonEinzbern/Proyecto-FADA | d7d21c25ff482e11b954e4f1636b21588aef5055 | [
"MIT"
] | null | null | null | """
UNIVERSIDAD DEL VALLE
FUNDAMENTOS DE ANÁLISIS Y DISEÑO DE ALGORITMOS | MINI-PROYECTO
ESTUDIANTES:
MARIO ALEXANDER DÍAZ, COD. 1825106
LISETH DAYANA CASTILLO QUIÑONES, CÓD. 1843187
"""
def less_equal_than(x, y):
return x <= y
def greater_than(x, y):
return x > y
def total_hours(data):
total_h = 0
... | 19.5 | 63 | 0.692308 | 60 | 390 | 4.366667 | 0.666667 | 0.030534 | 0.045802 | 0.091603 | 0.129771 | 0.129771 | 0.129771 | 0 | 0 | 0 | 0 | 0.04918 | 0.217949 | 390 | 20 | 64 | 19.5 | 0.809836 | 0.461538 | 0 | 0 | 0 | 0 | 0.029557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 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 | 1 | 1 | 0 | 0 | 3 |
a026339aad5316083e99fda2747dbf9a2d6eb86c | 1,289 | py | Python | crescent/resources/rds/db_security_group_ingress/db_security_group_ingress.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/rds/db_security_group_ingress/db_security_group_ingress.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/rds/db_security_group_ingress/db_security_group_ingress.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Resource
from crescent.functions import AnyFn
from .constants import ResourceRequiredProperties
from typing import Union
class DBSecurityGroupIngress(Resource):
__TYPE = "AWS::RDS::DBSecurityGroupIngress"
def __init__(self, id: str):
super(DBSecurityGroupIngress, self).__ini... | 41.580645 | 101 | 0.767261 | 147 | 1,289 | 6.238095 | 0.265306 | 0.12759 | 0.104689 | 0.103599 | 0.296619 | 0.248637 | 0.248637 | 0.248637 | 0.207197 | 0.119956 | 0 | 0.011009 | 0.154383 | 1,289 | 30 | 102 | 42.966667 | 0.830275 | 0 | 0 | 0 | 0 | 0 | 0.024825 | 0.024825 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.227273 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a060dcf35c483fde8e2ade51746f6b7e92f61663 | 931 | py | Python | lectures/lecture02/code/banking.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 101 | 2017-11-28T15:08:25.000Z | 2022-03-26T13:59:49.000Z | lectures/lecture02/code/banking.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 1 | 2017-12-16T19:41:39.000Z | 2017-12-16T19:41:39.000Z | lectures/lecture02/code/banking.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 54 | 2017-12-15T19:19:53.000Z | 2022-03-01T23:36:55.000Z | from __future__ import print_function
class bank_account:
def __init__(self, initial_balance=0.0, initial_debt=0.0):
self.balance = initial_balance
self.debt = initial_debt
def withdraw(self, ammount):
self.balance -= ammount
self.print_balance()
d... | 26.6 | 89 | 0.604726 | 117 | 931 | 4.606838 | 0.299145 | 0.204082 | 0.111317 | 0.163265 | 0.411874 | 0.411874 | 0.411874 | 0.411874 | 0.411874 | 0.233766 | 0 | 0.039454 | 0.292159 | 931 | 35 | 90 | 26.6 | 0.778452 | 0 | 0 | 0.307692 | 0 | 0 | 0.046771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0 | 0.307692 | 0.269231 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a062a1306732e71d0762a57881f6430e318d14e5 | 190 | py | Python | 0136. Single Number/Solution2.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | 0136. Single Number/Solution2.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | 0136. Single Number/Solution2.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | class Solution(object):
def singleNumber(self, nums):
return sum(list(set(nums)))*2 - sum(nums)
s = Solution()
print(s.singleNumber([2,2,1]))
print(s.singleNumber([4,1,2,1,2])) | 23.75 | 49 | 0.647368 | 31 | 190 | 3.967742 | 0.516129 | 0.097561 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055215 | 0.142105 | 190 | 8 | 50 | 23.75 | 0.699387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.5 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a07c477d8e971ef95325edc5c253292b5ea8bc42 | 3,247 | py | Python | tests/test_enumerate.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | 27 | 2020-05-17T20:48:43.000Z | 2022-01-08T21:32:30.000Z | tests/test_enumerate.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | null | null | null | tests/test_enumerate.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | null | null | null | from textwrap import dedent
from tests import check_as_expected
ROOT = 'superhelp.helpers.enumerate_help.'
def test_misc():
test_conf = [
(
dedent("""\
pet = 'cat'
"""),
{
ROOT + 'manual_incrementing': 0,
}
),
(
... | 26.398374 | 80 | 0.342778 | 278 | 3,247 | 3.870504 | 0.223022 | 0.027881 | 0.163569 | 0.104089 | 0.713755 | 0.713755 | 0.637546 | 0.574349 | 0.574349 | 0.574349 | 0 | 0.03833 | 0.550046 | 3,247 | 122 | 81 | 26.614754 | 0.698152 | 0.028642 | 0 | 0.641026 | 0 | 0 | 0.654482 | 0.01049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.017094 | 0 | 0.025641 | 0.068376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a094bc7e7f761eb345856f5fde1605a2327e7c94 | 4,346 | py | Python | app/models.py | sylvestus/blog | a7ef1cf672654614333385f9350eca80b11cea8a | [
"Unlicense"
] | null | null | null | app/models.py | sylvestus/blog | a7ef1cf672654614333385f9350eca80b11cea8a | [
"Unlicense"
] | null | null | null | app/models.py | sylvestus/blog | a7ef1cf672654614333385f9350eca80b11cea8a | [
"Unlicense"
] | null | null | null | from sqlalchemy import desc
from . import db
from datetime import datetime
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin,current_user
from . import login_manager
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
cl... | 27.1625 | 98 | 0.659917 | 551 | 4,346 | 5.038113 | 0.192378 | 0.054755 | 0.068444 | 0.057637 | 0.529899 | 0.451369 | 0.451369 | 0.37536 | 0.351585 | 0.337896 | 0 | 0.006169 | 0.216751 | 4,346 | 159 | 99 | 27.333333 | 0.809342 | 0.043948 | 0 | 0.423077 | 1 | 0 | 0.082099 | 0.017974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211538 | false | 0.153846 | 0.057692 | 0.067308 | 0.682692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
26246283c5477b3829b1d93baaca750b1c7076b6 | 516 | py | Python | supervised_learning/0x06-keras/13-predict.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | supervised_learning/0x06-keras/13-predict.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | supervised_learning/0x06-keras/13-predict.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Keras Module
"""
import tensorflow.keras as K
def predict(network, data, verbose=False):
"""
Makes a prediction using a neural network
network is the network model to test
data is the input data to test the model with
labels are the correct one-hot labels of data
ve... | 24.571429 | 75 | 0.713178 | 78 | 516 | 4.717949 | 0.628205 | 0.089674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.224806 | 516 | 20 | 76 | 25.8 | 0.9175 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
26271498d5b228fef665e0400a8598a1d55f8835 | 566 | py | Python | envergo/geodata/tests/factories.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | envergo/geodata/tests/factories.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | 6 | 2021-07-12T14:33:18.000Z | 2022-02-14T10:36:09.000Z | envergo/geodata/tests/factories.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | import random
from string import ascii_uppercase
import factory
from factory import fuzzy
from factory.django import DjangoModelFactory
from envergo.geodata.models import Parcel
def generate_section():
length = random.randint(1, 2)
section = "".join(random.choices(ascii_uppercase, k=length))
return sect... | 22.64 | 64 | 0.745583 | 66 | 566 | 6.333333 | 0.575758 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042918 | 0.176678 | 566 | 24 | 65 | 23.583333 | 0.854077 | 0 | 0 | 0 | 1 | 0 | 0.0053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2635bcd441de5793ac030d616a9d2d81b0bd3789 | 400 | py | Python | coins.py | GYosifov88/Python-Basics | f4290061264aebc417bde4948948e4a64739fec9 | [
"MIT"
] | null | null | null | coins.py | GYosifov88/Python-Basics | f4290061264aebc417bde4948948e4a64739fec9 | [
"MIT"
] | null | null | null | coins.py | GYosifov88/Python-Basics | f4290061264aebc417bde4948948e4a64739fec9 | [
"MIT"
] | null | null | null | sum = float(input())
sum = int(sum * 100)
number_of_coins = 0
number_of_coins += sum // 200
sum %= 200
number_of_coins += sum // 100
sum %= 100
number_of_coins += sum // 50
sum %= 50
number_of_coins += sum // 20
sum %= 20
number_of_coins += sum // 10
sum %= 10
number_of_coins += sum // 5
sum %= 5
number_of_coins += sum... | 19.047619 | 29 | 0.65 | 72 | 400 | 3.333333 | 0.25 | 0.333333 | 0.541667 | 0.533333 | 0.158333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104938 | 0.19 | 400 | 21 | 30 | 19.047619 | 0.635802 | 0 | 0 | 0 | 0 | 0 | 0.042394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26547d23f7e851e77dabad29c8ecb33f6edd77c5 | 68 | py | Python | linear_regression/__init__.py | pierreablin/Repo_8-11_seminar | ece61abdf7e3a7f25dc094e8d01be1cbfe0be8c4 | [
"MIT"
] | null | null | null | linear_regression/__init__.py | pierreablin/Repo_8-11_seminar | ece61abdf7e3a7f25dc094e8d01be1cbfe0be8c4 | [
"MIT"
] | 1 | 2021-12-03T18:05:51.000Z | 2021-12-03T18:11:46.000Z | linear_regression/__init__.py | pierreablin/Repo_8-11_seminar | ece61abdf7e3a7f25dc094e8d01be1cbfe0be8c4 | [
"MIT"
] | 1 | 2021-12-03T17:58:05.000Z | 2021-12-03T17:58:05.000Z | __version__ = '0.01'
from .regression import least_squares # noqa
| 17 | 45 | 0.75 | 9 | 68 | 5.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.161765 | 68 | 3 | 46 | 22.666667 | 0.754386 | 0.058824 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2675f0a9b4e4c119041dd45c52fed5ecc07eafeb | 174 | py | Python | bloggitt/core/urls.py | yashshah14093/Blo | d828ab5d2846bae63e504ea390439b8997993e2f | [
"MIT"
] | 1 | 2021-01-19T05:33:40.000Z | 2021-01-19T05:33:40.000Z | bloggitt/core/urls.py | yashshah14093/Bloggitt | d828ab5d2846bae63e504ea390439b8997993e2f | [
"MIT"
] | null | null | null | bloggitt/core/urls.py | yashshah14093/Bloggitt | d828ab5d2846bae63e504ea390439b8997993e2f | [
"MIT"
] | null | null | null | from . import views
from django.urls import path
urlpatterns = [
path('', views.postlist, name='home'),
path('<slug:slug>/', views.postdetail, name='post_detail'),
] | 24.857143 | 63 | 0.672414 | 22 | 174 | 5.272727 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 174 | 7 | 64 | 24.857143 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.154286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
268b5ac780054b84073adf62254e1806cb7e1d96 | 158 | py | Python | src/cyclisme/apps/strava/apps.py | marcelblijleven/cyclisme | dfbb955c2e18a2c0353d18447a69bf5fc07daf2c | [
"MIT"
] | null | null | null | src/cyclisme/apps/strava/apps.py | marcelblijleven/cyclisme | dfbb955c2e18a2c0353d18447a69bf5fc07daf2c | [
"MIT"
] | null | null | null | src/cyclisme/apps/strava/apps.py | marcelblijleven/cyclisme | dfbb955c2e18a2c0353d18447a69bf5fc07daf2c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class StravaConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'cyclisme.apps.strava'
| 22.571429 | 56 | 0.765823 | 19 | 158 | 6.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 158 | 6 | 57 | 26.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.310127 | 0.183544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cd210d7e45fb98b58f3e1151aa9613d07c56e941 | 555 | py | Python | src/node.py | abullrich91/dijkstra-and-ford-bellman | 90548e5e3970580e045236a6da92ee0867e509ef | [
"MIT"
] | null | null | null | src/node.py | abullrich91/dijkstra-and-ford-bellman | 90548e5e3970580e045236a6da92ee0867e509ef | [
"MIT"
] | null | null | null | src/node.py | abullrich91/dijkstra-and-ford-bellman | 90548e5e3970580e045236a6da92ee0867e509ef | [
"MIT"
] | null | null | null | from path import Path
class Node(object):
name: str = None
outgoing_paths: 'list of Paths' = []
def __init__(self, node_name: str, outgoing_paths: 'list of Paths'):
self.name = node_name
self.outgoing_paths = outgoing_paths
def add_outgoing_path(self, path: Path):
self.outgoi... | 27.75 | 72 | 0.645045 | 77 | 555 | 4.428571 | 0.363636 | 0.266862 | 0.199413 | 0.111437 | 0.281525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259459 | 555 | 19 | 73 | 29.210526 | 0.829684 | 0 | 0 | 0 | 0 | 0 | 0.095496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd2a5d86d4d57c1b1aef781ae1a1c0a0c64dd1ec | 537 | py | Python | learningpythonthehardway/ex4_5.py | stephaneAG/Python_tests | dc0a8819b4f49f50f17b3ffcf009c082535e1dbe | [
"MIT"
] | null | null | null | learningpythonthehardway/ex4_5.py | stephaneAG/Python_tests | dc0a8819b4f49f50f17b3ffcf009c082535e1dbe | [
"MIT"
] | null | null | null | learningpythonthehardway/ex4_5.py | stephaneAG/Python_tests | dc0a8819b4f49f50f17b3ffcf009c082535e1dbe | [
"MIT"
] | null | null | null | # remember: to run: 'python ex4.py'
cars = 100
my_name = 'Tef'
my_age = 25 # years ;p
my_brain_is = 'Fucked up with data'
my_stuff = 'I do Stuff'
print "I got", cars, "cars behind my house"
print "Hi. My name's %s" % my_name
print "I am %d years old, my brain is currently '%s' , and I hope I'll continue to say out l... | 38.357143 | 161 | 0.642458 | 103 | 537 | 3.213592 | 0.514563 | 0.072508 | 0.108761 | 0.048338 | 0.096677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.210428 | 537 | 13 | 162 | 41.307692 | 0.766509 | 0.154562 | 0 | 0 | 0 | 0.222222 | 0.544444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.444444 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cd49a0bda95bf75721ba67ddea6688f1674a55ae | 245,558 | py | Python | web/transiq/driver/management/waytrack_response.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/driver/management/waytrack_response.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/driver/management/waytrack_response.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | html_response="""
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1"><title>
GPS TRACKING
</title><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><meta http-equiv="CACHE-CONTROL" content="NO-CACHE" /><me... | 53.7679 | 6,084 | 0.417926 | 18,864 | 245,558 | 5.430874 | 0.102576 | 0.007575 | 0.013578 | 0.008053 | 0.460175 | 0.416992 | 0.374902 | 0.332334 | 0.3019 | 0.284554 | 0 | 0.050247 | 0.444017 | 245,558 | 4,567 | 6,085 | 53.7679 | 0.700145 | 0 | 0 | 0.368593 | 0 | 0.047236 | 0.999914 | 0.273156 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0.000251 | 0.000503 | 0 | 0.009045 | 0.000251 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd4ccc485c84e6c751e1aba5540108d28384aa49 | 1,016 | py | Python | sdk2-src/src/cli/src/machinelearningservices/azext_ml/manual/_help/_job_help.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | 1 | 2021-09-27T07:54:40.000Z | 2021-09-27T07:54:40.000Z | sdk2-src/src/cli/src/machinelearningservices/azext_ml/manual/_help/_job_help.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | null | null | null | sdk2-src/src/cli/src/machinelearningservices/azext_ml/manual/_help/_job_help.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from knack.help_files import helps
def get_job_help():
helps[
"ml job create"
] = """
type: command
short... | 23.627907 | 70 | 0.459646 | 98 | 1,016 | 4.734694 | 0.44898 | 0.090517 | 0.12931 | 0.297414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316929 | 1,016 | 42 | 71 | 24.190476 | 0.668588 | 0.170276 | 0 | 0.611111 | 0 | 0 | 0.67938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | true | 0 | 0.027778 | 0 | 0.055556 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd75bf9a75888bb635fd69ada6cd704f5ecdf612 | 1,201 | py | Python | TemperatureChange.py | guillempp/TemperatureChange | c8b9e6b3531739c2a668377faf6b18aa39a215c7 | [
"MIT"
] | 1 | 2018-11-12T16:38:48.000Z | 2018-11-12T16:38:48.000Z | TemperatureChange.py | guillempp/TemperatureChange | c8b9e6b3531739c2a668377faf6b18aa39a215c7 | [
"MIT"
] | null | null | null | TemperatureChange.py | guillempp/TemperatureChange | c8b9e6b3531739c2a668377faf6b18aa39a215c7 | [
"MIT"
] | null | null | null | degrees = int()
#Celsius to fahrenheit
def celsiusToFahrenheit(degrees):
def to_fahrenheit(degrees):
return degrees * 1.8 + 32
result = to_fahrenheit(degrees)
return result
#Fahrenheit to Celsius
def fahrenheitToCelsius(degrees):
def to_celsius(degrees):
return (degrees - 32) / 1.8
... | 21.070175 | 35 | 0.676103 | 150 | 1,201 | 5.306667 | 0.14 | 0.163317 | 0.120603 | 0.165829 | 0.570352 | 0.461055 | 0.270101 | 0.218593 | 0.218593 | 0.10804 | 0 | 0.039517 | 0.241465 | 1,201 | 56 | 36 | 21.446429 | 0.834248 | 0.096586 | 0 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0 | 0 | 0.216216 | 0.756757 | 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 | 1 | 0 | 0 | 0 | 3 |
cd893ef7f988cc5ca69a4edf1fe5a53ee5764444 | 123 | py | Python | test/unit/test_cpu.py | Justintime50/service | 237ccdedd94b813a9fdd601062bfae80decc074c | [
"MIT"
] | 1 | 2021-02-26T21:44:23.000Z | 2021-02-26T21:44:23.000Z | test/unit/test_cpu.py | Justintime50/service-stats | 237ccdedd94b813a9fdd601062bfae80decc074c | [
"MIT"
] | 1 | 2020-10-04T02:03:23.000Z | 2020-11-03T07:35:01.000Z | test/unit/test_cpu.py | Justintime50/service-stats | 237ccdedd94b813a9fdd601062bfae80decc074c | [
"MIT"
] | 1 | 2020-11-03T11:18:40.000Z | 2020-11-03T11:18:40.000Z | from service_stats import Cpu
def test_cpu_serve():
result = Cpu.serve_data()
assert 'CPU Information' in result
| 17.571429 | 38 | 0.731707 | 18 | 123 | 4.777778 | 0.722222 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 123 | 6 | 39 | 20.5 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd89ef1da91a745430c41cbed5b2e339973407f9 | 634 | py | Python | config.py | eunicechy/fyp_product_recommendation | 8bf712dd5259766ca73f625f0bda6822f6abfcd1 | [
"MIT"
] | null | null | null | config.py | eunicechy/fyp_product_recommendation | 8bf712dd5259766ca73f625f0bda6822f6abfcd1 | [
"MIT"
] | null | null | null | config.py | eunicechy/fyp_product_recommendation | 8bf712dd5259766ca73f625f0bda6822f6abfcd1 | [
"MIT"
] | null | null | null | import os
class Config(object):
SQLALCHEMY_DATABASE_URI = 'postgresql://my_user:admin@localhost/my_database'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "admin"
ELASTICSEARCH_URL = 'http://localhost:9200'
# ELASTICSEARCH_URL='http://localhost:9200'
MAIL_SERVER = os.environ.get('MAIL_SERVER'... | 39.625 | 79 | 0.736593 | 89 | 634 | 4.966292 | 0.550562 | 0.10181 | 0.135747 | 0.180995 | 0.149321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.138801 | 634 | 16 | 80 | 39.625 | 0.785714 | 0.064669 | 0 | 0 | 0 | 0 | 0.272097 | 0.126516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cd95e4f79dadeab48f64f1be044caeb6f12c9b82 | 242 | py | Python | Python/Dimensionality-Reduction/initial-review.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | Python/Dimensionality-Reduction/initial-review.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | Python/Dimensionality-Reduction/initial-review.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | # Initial aim is to remove variables with no variance as they add no value
# Review the output stats for the std, min and max
df.describe()
# Review categorical features - remove variables with low cardinality
df.describe(exclude="number")
| 30.25 | 74 | 0.77686 | 38 | 242 | 4.947368 | 0.789474 | 0.159574 | 0.202128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 242 | 7 | 75 | 34.571429 | 0.930693 | 0.780992 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26b08ba974cda2791d659581caff1015547f232e | 64 | py | Python | allstop.py | RedRobotics/HeadBoard | 71f00e96f4cac6617a1b00a245da57e15ac27285 | [
"MIT"
] | null | null | null | allstop.py | RedRobotics/HeadBoard | 71f00e96f4cac6617a1b00a245da57e15ac27285 | [
"MIT"
] | null | null | null | allstop.py | RedRobotics/HeadBoard | 71f00e96f4cac6617a1b00a245da57e15ac27285 | [
"MIT"
] | null | null | null | from redboard import *
M1(0)
M2(0)
servo0_off()
servo1_off()
| 7.111111 | 22 | 0.6875 | 11 | 64 | 3.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.171875 | 64 | 8 | 23 | 8 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26c51a6ccf6f929f2830153d3f5c7813c790bfe4 | 788 | py | Python | src/compas_blender/helpers/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | 1 | 2019-03-27T22:32:56.000Z | 2019-03-27T22:32:56.000Z | src/compas_blender/helpers/__init__.py | robin-oval/compas | e4dc751e95648c5ffb9449f239f3879d39f19887 | [
"MIT"
] | null | null | null | src/compas_blender/helpers/__init__.py | robin-oval/compas | e4dc751e95648c5ffb9449f239f3879d39f19887 | [
"MIT"
] | null | null | null | """
********************************************************************************
compas_blender.helpers
********************************************************************************
.. currentmodule:: compas_blender.helpers
Helpers make it easier to work with datastructures in Blender.
mesh
====
.. autosum... | 14.867925 | 80 | 0.554569 | 68 | 788 | 5.852941 | 0.352941 | 0.100503 | 0.203518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149746 | 788 | 52 | 81 | 15.153846 | 0.59403 | 0.652284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f8105887d57d50a9f5b591c5c38f6b8e060b4245 | 218 | py | Python | bsmsg/templatetags/bsmsg.py | lzantal/bsmsg | ae6bd89ac53118d528d66d6643f512b3612d9594 | [
"MIT"
] | 1 | 2018-04-20T21:57:10.000Z | 2018-04-20T21:57:10.000Z | bsmsg/templatetags/bsmsg.py | lzantal/bsmsg | ae6bd89ac53118d528d66d6643f512b3612d9594 | [
"MIT"
] | null | null | null | bsmsg/templatetags/bsmsg.py | lzantal/bsmsg | ae6bd89ac53118d528d66d6643f512b3612d9594 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.inclusion_tag('bsmsg/bsmsg.html', takes_context=True)
def bsmsg(context):
return context # not altering context simply use it by returning it
| 21.8 | 71 | 0.775229 | 30 | 218 | 5.566667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142202 | 218 | 9 | 72 | 24.222222 | 0.893048 | 0.229358 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
f8180a76189e1c671ad267ad4778684cf137bdb3 | 260 | py | Python | lens/wsgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | lens/wsgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | lens/wsgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | import os
from django.core.wsgi import get_wsgi_application
# Set the default settings module for the django wsgi application.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lens.settings')
# Get the wsgi application.
application = get_wsgi_application()
| 26 | 66 | 0.811538 | 36 | 260 | 5.694444 | 0.472222 | 0.292683 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 260 | 9 | 67 | 28.888889 | 0.891304 | 0.346154 | 0 | 0 | 0 | 0 | 0.209581 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f82ad9e75e3f3ececc872a0918162015ab029326 | 425 | py | Python | ch01/r110.py | claudiordgz/GoodrichTamassiaGoldwasser | 0e434caa5bf6f2adefaeff9c17b4f3910c1cff7b | [
"MIT"
] | 2 | 2017-01-04T02:00:39.000Z | 2018-10-10T17:43:51.000Z | ch01/r110.py | claudiordgz/GoodrichTamassiaGoldwasser | 0e434caa5bf6f2adefaeff9c17b4f3910c1cff7b | [
"MIT"
] | null | null | null | ch01/r110.py | claudiordgz/GoodrichTamassiaGoldwasser | 0e434caa5bf6f2adefaeff9c17b4f3910c1cff7b | [
"MIT"
] | null | null | null | """ What parameters should be sent to the range constructor, to produce a
range with values 8, 6, 4, 2, 0, -2, -4, -6, -8?
>>> range_from_eigth()
[8, 6, 4, 2, 0, -2, -4, -6, -8]
"""
def range_from_eigth():
""" Return the list [8, 6, 4, 2, 0, -2, -4, -6, -8]
:return:
the list [8, 6, 4, 2, 0, -2, -4, -6... | 26.5625 | 73 | 0.489412 | 81 | 425 | 2.493827 | 0.296296 | 0.049505 | 0.074257 | 0.09901 | 0.519802 | 0.519802 | 0.519802 | 0.519802 | 0.519802 | 0.519802 | 0 | 0.154341 | 0.268235 | 425 | 15 | 74 | 28.333333 | 0.495177 | 0.778824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f82ff4db1c26e69d49b1880d322dd33f46dcca75 | 1,209 | py | Python | pano/templatetags/puppetdb_extras.py | jeroenzeegers/panopuppet | 5024bf3a8b87a54aade197385438cec80120fac6 | [
"Apache-2.0"
] | 60 | 2015-03-26T14:24:47.000Z | 2016-08-09T17:48:00.000Z | panopuppet/pano/templatetags/puppetdb_extras.py | propyless/panopuppet | 6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a | [
"Apache-2.0"
] | 108 | 2015-04-17T12:05:46.000Z | 2016-08-23T14:42:19.000Z | pano/templatetags/puppetdb_extras.py | jeroenzeegers/panopuppet | 5024bf3a8b87a54aade197385438cec80120fac6 | [
"Apache-2.0"
] | 27 | 2015-03-30T13:23:03.000Z | 2016-10-25T20:18:27.000Z | import datetime
from django import template
__author__ = 'etaklar'
register = template.Library()
# used for json_to_datetime filter
class UTC(datetime.tzinfo):
"""UTC"""
def utcoffset(self, dt):
return datetime.timedelta(0)
def tzname(self, dt):
return str('UTC')
def dst(self, dt... | 22.388889 | 94 | 0.644334 | 162 | 1,209 | 4.666667 | 0.481481 | 0.031746 | 0.047619 | 0.059524 | 0.137566 | 0.087302 | 0.087302 | 0 | 0 | 0 | 0 | 0.002193 | 0.245658 | 1,209 | 53 | 95 | 22.811321 | 0.826754 | 0.305211 | 0 | 0.142857 | 0 | 0 | 0.057285 | 0.026152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.25 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f833320a600c6ed36507b96b7b7b34634773ec81 | 3,645 | py | Python | app/models.py | AgbaD/Ecommerce | 1a56b6240196e93d1d984991572c9ff24071108a | [
"MIT"
] | null | null | null | app/models.py | AgbaD/Ecommerce | 1a56b6240196e93d1d984991572c9ff24071108a | [
"MIT"
] | null | null | null | app/models.py | AgbaD/Ecommerce | 1a56b6240196e93d1d984991572c9ff24071108a | [
"MIT"
] | null | null | null | #!usr/bin/python3
# Author: @AgbaD || @agba_dr3
import ast
from . import db
from datetime import datetime
class Merchant(db.Model):
__tablename__ = "merchants"
id = db.Column(db.Integer, primary_key=True)
public_id = db.Column(db.String(256))
store_id = db.Column(db.Integer)
first_name = db.Col... | 31.153846 | 68 | 0.649931 | 508 | 3,645 | 4.496063 | 0.175197 | 0.178634 | 0.223292 | 0.217163 | 0.672942 | 0.621716 | 0.497373 | 0.373905 | 0.318739 | 0.318739 | 0 | 0.029645 | 0.204115 | 3,645 | 116 | 69 | 31.422414 | 0.75767 | 0.01262 | 0 | 0.430108 | 0 | 0 | 0.023637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053763 | false | 0.043011 | 0.032258 | 0.021505 | 0.83871 | 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 | 1 | 0 | 0 | 3 |
f871f1c021843e2ec09dde287b2ed5695a9c6e9a | 332 | py | Python | vaishali/jeevan/views.py | JeevanVaishali/addition-of-two-no.s | fb732aac8beffedae4c24467b6d22e36d47fac95 | [
"MIT"
] | null | null | null | vaishali/jeevan/views.py | JeevanVaishali/addition-of-two-no.s | fb732aac8beffedae4c24467b6d22e36d47fac95 | [
"MIT"
] | null | null | null | vaishali/jeevan/views.py | JeevanVaishali/addition-of-two-no.s | fb732aac8beffedae4c24467b6d22e36d47fac95 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def a(request):
return render(request,'a.html',{'name':'jeevan'})
def add (request):
val1=int(request.GET['num1'])
val2=int(request.GET['num2'])
res=val1+val2
return render (request,'result.html',{'re... | 27.666667 | 56 | 0.695783 | 47 | 332 | 4.914894 | 0.574468 | 0.08658 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.141566 | 332 | 11 | 57 | 30.181818 | 0.789474 | 0.069277 | 0 | 0 | 0 | 0 | 0.13355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 3 |
f8ac4a04a0efa0c4347f8689b26baca6a0769c6f | 254 | py | Python | ddsp/__init__.py | fromjupiter/ReverbNN | 19c078e0d37c4f6bf85e749a31c40f36f3562145 | [
"MIT"
] | null | null | null | ddsp/__init__.py | fromjupiter/ReverbNN | 19c078e0d37c4f6bf85e749a31c40f36f3562145 | [
"MIT"
] | null | null | null | ddsp/__init__.py | fromjupiter/ReverbNN | 19c078e0d37c4f6bf85e749a31c40f36f3562145 | [
"MIT"
] | null | null | null | # -*-coding:utf-8 -*-
"""
The ``ddsp`` module
========================
This package contains all classes for synthesis purposes
Contributors
------------------------
* Philippe Esling (esling@ircam.fr)
"""
| 18.142857 | 60 | 0.437008 | 20 | 254 | 5.55 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.279528 | 254 | 13 | 61 | 19.538462 | 0.601093 | 0.830709 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
6efdbd9ec4c9d69b0f8eef34bdd92e1bb5218a72 | 248 | py | Python | main.py | mdryden/pr-merge-tool | 4bc6b91035df6bb1133d2bfa24dcc5e81d34749e | [
"MIT"
] | null | null | null | main.py | mdryden/pr-merge-tool | 4bc6b91035df6bb1133d2bfa24dcc5e81d34749e | [
"MIT"
] | null | null | null | main.py | mdryden/pr-merge-tool | 4bc6b91035df6bb1133d2bfa24dcc5e81d34749e | [
"MIT"
] | null | null | null | import requests
import merge_pulls
from merge_pulls.config import Config
config = Config.load_from_args()
merge_pulls.display_warning()
# TODO:
# run checks
# reset test
# update local working copy
# pull
# delete local copy of test branch first
| 17.714286 | 40 | 0.790323 | 37 | 248 | 5.135135 | 0.648649 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149194 | 248 | 13 | 41 | 19.076923 | 0.900474 | 0.391129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3e2aee07696b91e861dc1cc5ac9f4f144c6a3c6e | 420 | py | Python | pymoq/stub/matcher.py | snifter/pymoq | dfe32a3a5cd7ebc9243cc81e9127acae4dc078af | [
"MIT"
] | 1 | 2018-02-22T03:59:25.000Z | 2018-02-22T03:59:25.000Z | pymoq/stub/matcher.py | snifter/pymoq | dfe32a3a5cd7ebc9243cc81e9127acae4dc078af | [
"MIT"
] | null | null | null | pymoq/stub/matcher.py | snifter/pymoq | dfe32a3a5cd7ebc9243cc81e9127acae4dc078af | [
"MIT"
] | null | null | null | import re
class UrlMatcher(object):
def __init__(self, pattern):
self.__re = re.compile(pattern)
def match(self, request_handler):
return self.__re.match(request_handler.path) is not None
class MethodMatcher(object):
def __init__(self, method):
self.__method = method.upper()
... | 23.333333 | 64 | 0.688095 | 52 | 420 | 5.173077 | 0.423077 | 0.208178 | 0.096654 | 0.126394 | 0.237918 | 0.237918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207143 | 420 | 17 | 65 | 24.705882 | 0.807808 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e414ed911fbf64cf757418ef0d4fa10ab59e7851 | 53 | py | Python | armyknife_src/pynamodb_config.py | actingweb/armyknife | c3010be5b27c8db78bb12eb420980d4e8e92f692 | [
"BSD-3-Clause"
] | null | null | null | armyknife_src/pynamodb_config.py | actingweb/armyknife | c3010be5b27c8db78bb12eb420980d4e8e92f692 | [
"BSD-3-Clause"
] | 6 | 2020-07-20T07:36:30.000Z | 2021-04-25T06:49:16.000Z | armyknife_src/pynamodb_config.py | actingweb/armyknife | c3010be5b27c8db78bb12eb420980d4e8e92f692 | [
"BSD-3-Clause"
] | 1 | 2020-04-12T16:28:11.000Z | 2020-04-12T16:28:11.000Z | connect_timeout_seconds = 1
read_timeout_seconds = 2
| 17.666667 | 27 | 0.849057 | 8 | 53 | 5.125 | 0.75 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.113208 | 53 | 2 | 28 | 26.5 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e419dfd3a45d5940720fde16233d1f6af8b4e721 | 1,334 | py | Python | variables.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | variables.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | variables.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | import re
from token import Token
class Variable(Token):
def __init__(self, variables, name):
Token.__init__(self)
self.variables = variables
self.name = name
def token_name(self):
return 'Variable: ' + self.name
class MultilineVariable(Variable):
VAR_REFERENCE = re.compile(r'\$([a-zA-Z0-9_]+)... | 25.169811 | 74 | 0.705397 | 173 | 1,334 | 5.144509 | 0.283237 | 0.146067 | 0.114607 | 0.117978 | 0.152809 | 0.125843 | 0.125843 | 0.125843 | 0.125843 | 0.125843 | 0 | 0.004575 | 0.18066 | 1,334 | 52 | 75 | 25.653846 | 0.809698 | 0 | 0 | 0.179487 | 0 | 0 | 0.047976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.051282 | 0.102564 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e4280df1df97dbe81168dcbd86b9dcd7027b8756 | 134 | py | Python | ecs/SystemTemplate.py | Akhier/ECS-Py | c571d41d1e614b43ac5f35e9fc3a35420e5312af | [
"MIT"
] | null | null | null | ecs/SystemTemplate.py | Akhier/ECS-Py | c571d41d1e614b43ac5f35e9fc3a35420e5312af | [
"MIT"
] | null | null | null | ecs/SystemTemplate.py | Akhier/ECS-Py | c571d41d1e614b43ac5f35e9fc3a35420e5312af | [
"MIT"
] | null | null | null | class SystemTemplate:
def __init__(self):
self.Manager = None
def process(self, *args):
raise NotImplemented
| 19.142857 | 29 | 0.641791 | 14 | 134 | 5.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276119 | 134 | 6 | 30 | 22.333333 | 0.845361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e432eea3ba820f11cbfe26101cb31fa74f34ae4e | 165 | py | Python | lib_xml/country.py | dmilos/python_tutorial | f2f901a68cbc696e19350455da9b7db312d1a9fa | [
"MIT-0"
] | null | null | null | lib_xml/country.py | dmilos/python_tutorial | f2f901a68cbc696e19350455da9b7db312d1a9fa | [
"MIT-0"
] | null | null | null | lib_xml/country.py | dmilos/python_tutorial | f2f901a68cbc696e19350455da9b7db312d1a9fa | [
"MIT-0"
] | null | null | null | import xml.etree.ElementTree as ET
tree = ET.parse('./country_data.xml')
root = tree.getroot()
for neighbor in root.iter('neighbor'):
print neighbor.attrib | 27.5 | 39 | 0.715152 | 24 | 165 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 6 | 40 | 27.5 | 0.835714 | 0 | 0 | 0 | 0 | 0 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e43b3cda62b5c2ac390abcadd905e0bc01654d06 | 1,808 | py | Python | InftyDoubleSpinBox.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | InftyDoubleSpinBox.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | InftyDoubleSpinBox.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | from PyQt5.QtWidgets import QDoubleSpinBox
from PyQt5 import QtGui, QtCore
import numpy as np
class InftyDoubleSpinBox(QDoubleSpinBox):
def __init__(self, min=-np.inf, max=np.inf, default=0):
super(QDoubleSpinBox, self).__init__()
self.setMinimum(min)
self.setMaximum(max)
self.set... | 33.481481 | 120 | 0.668142 | 244 | 1,808 | 4.819672 | 0.405738 | 0.034014 | 0.037415 | 0.047619 | 0.02551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005069 | 0.236173 | 1,808 | 53 | 121 | 34.113208 | 0.846488 | 0.28042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.16129 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e444399c227948bb06c232498e91dc6f30628478 | 592 | py | Python | tests/beta_tests/test_make_acronym.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/beta_tests/test_make_acronym.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/beta_tests/test_make_acronym.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.beta.make_acronym import to_acronym
class ToAcronymTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(to_acronym('Code Wars'), 'CW')
def test_equal_2(self):
self.assertEqual(to_acronym('Water Closet'), 'WC')
def test_equal_3(self):
s... | 28.190476 | 74 | 0.702703 | 78 | 592 | 5.115385 | 0.5 | 0.135338 | 0.150376 | 0.263158 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010246 | 0.175676 | 592 | 20 | 75 | 29.6 | 0.807377 | 0 | 0 | 0 | 0 | 0 | 0.190878 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.384615 | false | 0 | 0.153846 | 0 | 0.615385 | 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 | 1 | 0 | 0 | 3 |
e448468e64b072773a512f4d1935197b3c0f261d | 138 | py | Python | resources/usr/local/lib/python2.7/dist-packages/pysam/config.py | edawson/parliament2 | 2632aa3484ef64c9539c4885026b705b737f6d1e | [
"Apache-2.0"
] | null | null | null | resources/usr/local/lib/python2.7/dist-packages/pysam/config.py | edawson/parliament2 | 2632aa3484ef64c9539c4885026b705b737f6d1e | [
"Apache-2.0"
] | null | null | null | resources/usr/local/lib/python2.7/dist-packages/pysam/config.py | edawson/parliament2 | 2632aa3484ef64c9539c4885026b705b737f6d1e | [
"Apache-2.0"
] | 1 | 2020-05-28T23:01:44.000Z | 2020-05-28T23:01:44.000Z | HTSLIB = "builtin"
ENABLE_PLUGINS = 0
HAVE_COMMONCRYPTO = 0
HAVE_GMTIME_R = 0
HAVE_HMAC = 0
HAVE_IRODS = 0
HAVE_LIBCURL = 0
HAVE_MMAP = 0
| 15.333333 | 21 | 0.753623 | 24 | 138 | 4 | 0.541667 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061404 | 0.173913 | 138 | 8 | 22 | 17.25 | 0.780702 | 0 | 0 | 0 | 0 | 0 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e45575e130d5f0497f2bc60a9f8940ed6efa7eb7 | 65 | py | Python | chapter03/3-9.py | alberthao/Python-Crash-Course-Homework | 105ffb3075db075425d6cf0d08d9837ef0548866 | [
"MIT"
] | 138 | 2019-07-26T13:42:31.000Z | 2021-04-13T23:51:49.000Z | chapter03/3-9.py | alberthao/Python-Crash-Course-Homework | 105ffb3075db075425d6cf0d08d9837ef0548866 | [
"MIT"
] | 6 | 2019-07-20T13:47:47.000Z | 2019-08-04T06:49:06.000Z | chapter03/3-9.py | alberthao/Python-Crash-Course-Homework | 105ffb3075db075425d6cf0d08d9837ef0548866 | [
"MIT"
] | 51 | 2019-07-26T09:46:28.000Z | 2021-03-29T07:58:16.000Z | names = ['David','Susan','Kitty']
print(names)
print(len(names)) | 16.25 | 33 | 0.661538 | 9 | 65 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 65 | 4 | 34 | 16.25 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e459ebe5949b62f974efd891c01d6a4fdafe5f4d | 2,875 | py | Python | examples/setFlowRate.py | fannemel/neqsimpython | 0b9ebdf20e1b47834bb924f600645fc2c603a6f9 | [
"Apache-2.0"
] | 20 | 2019-11-06T17:02:12.000Z | 2022-03-29T18:01:02.000Z | examples/setFlowRate.py | fannemel/neqsimpython | 0b9ebdf20e1b47834bb924f600645fc2c603a6f9 | [
"Apache-2.0"
] | 8 | 2019-06-21T10:21:47.000Z | 2022-03-12T09:47:00.000Z | examples/setFlowRate.py | fannemel/neqsimpython | 0b9ebdf20e1b47834bb924f600645fc2c603a6f9 | [
"Apache-2.0"
] | 7 | 2019-08-19T17:55:46.000Z | 2022-03-15T13:51:26.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 17 12:51:59 2020
@author: ESOL
"""
# -*- coding: utf-8 -*-
"""
The current python script demonstrates simple ways of creating fluids in neqsim
@author: esol
"""
import neqsim
from neqsim.thermo.thermoTools import *
from neqsim.thermo import fluid, fluid_df, addOilFracti... | 31.25 | 147 | 0.76 | 339 | 2,875 | 6.433628 | 0.312684 | 0.053645 | 0.077487 | 0.166896 | 0.689133 | 0.689133 | 0.689133 | 0.689133 | 0.663916 | 0.663916 | 0 | 0.064405 | 0.087304 | 2,875 | 91 | 148 | 31.593407 | 0.766768 | 0.053217 | 0 | 0.730769 | 0 | 0 | 0.146969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0.346154 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
e46469dd82cd06a96f5bf0e39e3f2f7408289a09 | 3,815 | py | Python | steamextract.py | SirSharpest/wineappdb-ratings | 24563e004205fc6740c5ca459537ac1b3eea99b5 | [
"Apache-2.0"
] | null | null | null | steamextract.py | SirSharpest/wineappdb-ratings | 24563e004205fc6740c5ca459537ac1b3eea99b5 | [
"Apache-2.0"
] | null | null | null | steamextract.py | SirSharpest/wineappdb-ratings | 24563e004205fc6740c5ca459537ac1b3eea99b5 | [
"Apache-2.0"
] | null | null | null | #!/bin/python3
import re #regular expressions
import requests
from bs4 import BeautifulSoup
import argparse
def ProcessGameName(game):
#game = game.lower()
game = game.replace("&","and")
game = game.replace(".","")
game = game.replace(" :",":")
game = re.sub("\(.*\)","",game)
game = game.replace(" "," ")
game... | 35 | 132 | 0.640105 | 474 | 3,815 | 5.147679 | 0.272152 | 0.245902 | 0.42418 | 0.342623 | 0.343033 | 0.281148 | 0.255738 | 0.234426 | 0.165164 | 0.081967 | 0 | 0.012531 | 0.142333 | 3,815 | 108 | 133 | 35.324074 | 0.733191 | 0.04194 | 0 | 0.117021 | 0 | 0 | 0.308473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.010638 | 0.042553 | 0 | 0.074468 | 0.021277 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e470fdc0f59652082337f0917fa9f32a821aa1b1 | 1,832 | py | Python | fuzzysets/sets/finite.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | 1 | 2021-09-22T13:40:25.000Z | 2021-09-22T13:40:25.000Z | fuzzysets/sets/finite.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | null | null | null | fuzzysets/sets/finite.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | 1 | 2021-12-04T00:11:15.000Z | 2021-12-04T00:11:15.000Z | import numpy as np
from fuzzysets.sets import base
class FiniteDomain(base.Domain):
"""
Represents the domain of a finite fuzzy set.
"""
def __init__(self, items):
"""
:param items: an iterable of hashable items.
"""
self.__items = set(items)
self.__sequenced_i... | 26.171429 | 69 | 0.579148 | 220 | 1,832 | 4.522727 | 0.404545 | 0.054271 | 0.022111 | 0.01407 | 0.026131 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003223 | 0.322598 | 1,832 | 69 | 70 | 26.550725 | 0.79855 | 0.259825 | 0 | 0 | 0 | 0 | 0.033717 | 0.033717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.057143 | 0.142857 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e483c75052fc93ca1b5cb58526b927c0dc683a54 | 9,639 | py | Python | tests/models/data/bravado_getInstance_gc3-naac-cdmt-d05-jcsdb.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | tests/models/data/bravado_getInstance_gc3-naac-cdmt-d05-jcsdb.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | tests/models/data/bravado_getInstance_gc3-naac-cdmt-d05-jcsdb.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | {'domain': 'compute-587626604.oraclecloud.internal.',
'placement_requirements': ['/system/compute/placement/default',
'/oracle/compute/dedicated/fcbaed9f-242b-42ce-ac77-dd727f9710eb',
'/system/compute/allow_instances'],
'ip': '10.19.9.86',
'fingerprint': '59:9b:36:df:e8:b4:02:e6:5c:5b:9f:7b:d4:33:65:ad',
'image... | 43.813636 | 605 | 0.709928 | 1,230 | 9,639 | 5.350407 | 0.364228 | 0.070506 | 0.040115 | 0.051056 | 0.350403 | 0.311807 | 0.297827 | 0.278985 | 0.278985 | 0.262574 | 0 | 0.127526 | 0.091296 | 9,639 | 219 | 606 | 44.013699 | 0.623816 | 0 | 0 | 0.018349 | 0 | 0.114679 | 0.770308 | 0.475568 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.004587 | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4d5d1f9289e4cdfd5f2e59ea3ac75caece5d222 | 339 | py | Python | test/ut/test_split_attributes.py | KordianD/filepy | 92563d87ac8cbb754af838e8ee39219313d9b9ba | [
"MIT"
] | 1 | 2018-11-20T19:15:49.000Z | 2018-11-20T19:15:49.000Z | test/ut/test_split_attributes.py | KordianD/filepy | 92563d87ac8cbb754af838e8ee39219313d9b9ba | [
"MIT"
] | null | null | null | test/ut/test_split_attributes.py | KordianD/filepy | 92563d87ac8cbb754af838e8ee39219313d9b9ba | [
"MIT"
] | null | null | null | from filepy.analyse_helper import split_attributes
def test_should_return_correctly_split_attributes_when_columns_are_passed_in_parentheses():
line_with_parentheses = '@attribute age {young, pre-presbyopic, presbyopic}'
assert split_attributes(line_with_parentheses) == (
'age', '{young, pre-presbyo... | 42.375 | 91 | 0.79056 | 40 | 339 | 6.25 | 0.65 | 0.18 | 0.152 | 0.168 | 0.248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123894 | 339 | 7 | 92 | 48.428571 | 0.841751 | 0 | 0 | 0 | 0 | 0 | 0.268437 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e4f1fbb16f1eec4dbcc80108e1fe64f7262b2fb3 | 187 | py | Python | meaao/meaao_site/apps.py | ProjectInitiative/sp19-me369p-meaao | 9fe41342415ce2c0c78796aabced158908d607fe | [
"MIT"
] | 1 | 2019-05-28T04:22:46.000Z | 2019-05-28T04:22:46.000Z | meaao/meaao_site/apps.py | ProjectInitiative/sp19-me369p-meaao | 9fe41342415ce2c0c78796aabced158908d607fe | [
"MIT"
] | null | null | null | meaao/meaao_site/apps.py | ProjectInitiative/sp19-me369p-meaao | 9fe41342415ce2c0c78796aabced158908d607fe | [
"MIT"
] | null | null | null | """
Registering configuration for the site
"""
from django.apps import AppConfig
class MeaaoSiteConfig(AppConfig):
"""
Site configuration class
"""
name = 'meaao_site'
| 14.384615 | 38 | 0.684492 | 19 | 187 | 6.684211 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213904 | 187 | 12 | 39 | 15.583333 | 0.863946 | 0.336898 | 0 | 0 | 0 | 0 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
900e12114796e99e78ddb0323d15432fb184a93f | 239 | py | Python | beebird/ui/cli/__main__.py | randydu/beebird | 4f7e4a891b34b09e31174822a9acb5a9a46127de | [
"MIT"
] | 1 | 2021-02-09T07:19:54.000Z | 2021-02-09T07:19:54.000Z | beebird/ui/cli/__main__.py | randydu/beebird | 4f7e4a891b34b09e31174822a9acb5a9a46127de | [
"MIT"
] | null | null | null | beebird/ui/cli/__main__.py | randydu/beebird | 4f7e4a891b34b09e31174822a9acb5a9a46127de | [
"MIT"
] | null | null | null | ''' CLI mode '''
import sys
import beebird.utils
def main(*argv):
''' entry point of bee in CLI mode '''
print("CLI >>", *argv)
beebird.utils.import_builtin_tasks()
if __name__ == "__main__":
sys.exit(main(sys.argv))
| 14.9375 | 42 | 0.623431 | 33 | 239 | 4.212121 | 0.606061 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209205 | 239 | 15 | 43 | 15.933333 | 0.73545 | 0.167364 | 0 | 0 | 0 | 0 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9019db90f85f5a2ca5985d0a574039d27e928626 | 742 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/hw2/animation.py | sequoiap/cookiecutter-controlshw | bf71c7b9e497b1c3a2af4d06a843c2dab9f2a1d7 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/hw2/animation.py | sequoiap/cookiecutter-controlshw | bf71c7b9e497b1c3a2af4d06a843c2dab9f2a1d7 | [
"MIT"
] | 1 | 2020-12-18T23:37:12.000Z | 2020-12-18T23:37:13.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/hw2/animation.py | sequoiap/cookiecutter-controlshw | bf71c7b9e497b1c3a2af4d06a843c2dab9f2a1d7 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import numpy as np
import {{cookiecutter.project_name}}.parameters as P
class Animation:
'''
A matplotlib window containing an animation for the system. There are
no parameters for initialization, as the Animation object can directly
... | 26.5 | 78 | 0.649596 | 92 | 742 | 5.173913 | 0.586957 | 0.067227 | 0.096639 | 0.138655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001859 | 0.274933 | 742 | 27 | 79 | 27.481481 | 0.8829 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.222222 | 0.444444 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
90247d5addcc0edcbe858e3d5edc5e492a5180fa | 1,374 | py | Python | Exercise-2/NewNewtonRaphson.py | dgiakatos/1-Numerical-Analysis | 6e9322d68d91658aaf804608227d4dbe932ac161 | [
"MIT"
] | null | null | null | Exercise-2/NewNewtonRaphson.py | dgiakatos/1-Numerical-Analysis | 6e9322d68d91658aaf804608227d4dbe932ac161 | [
"MIT"
] | null | null | null | Exercise-2/NewNewtonRaphson.py | dgiakatos/1-Numerical-Analysis | 6e9322d68d91658aaf804608227d4dbe932ac161 | [
"MIT"
] | null | null | null | import math
def f(x):
y = 94 * pow(math.cos(x), 3) - 24 * math.cos(x) + 177 * pow(math.sin(x), 2) - 108 * pow(math.sin(x), 4) - 72 * pow(math.cos(x), 3) * pow(math.sin(x), 2) - 65
return y
def f1(x):
y = - 282 * pow(math.cos(x), 2) * math.sin(x) + 24 * math.sin(x) + 354 * math.sin(x) * math.cos... | 31.227273 | 400 | 0.499272 | 270 | 1,374 | 2.540741 | 0.196296 | 0.234694 | 0.198251 | 0.19242 | 0.478134 | 0.22449 | 0.22449 | 0.169096 | 0.169096 | 0.104956 | 0 | 0.110784 | 0.257642 | 1,374 | 43 | 401 | 31.953488 | 0.561765 | 0.007278 | 0 | 0.107143 | 0 | 0 | 0.031061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.25 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
903a1fccf125dacc2ad683558a97dc39454fbd35 | 256 | py | Python | db/__init__.py | ArtemD/bootcamp2022-mini-demo | 28fa576c42031417c967560a78a62979f03e89a1 | [
"MIT"
] | null | null | null | db/__init__.py | ArtemD/bootcamp2022-mini-demo | 28fa576c42031417c967560a78a62979f03e89a1 | [
"MIT"
] | null | null | null | db/__init__.py | ArtemD/bootcamp2022-mini-demo | 28fa576c42031417c967560a78a62979f03e89a1 | [
"MIT"
] | 2 | 2022-03-22T12:38:59.000Z | 2022-03-23T07:33:29.000Z | import sqlalchemy
from sqlalchemy.orm import sessionmaker
from dotenv import load_dotenv, find_dotenv
# Load .env file
load_dotenv(find_dotenv())
import os
engine = sqlalchemy.create_engine(os.environ.get('DATABASE'))
Session = sessionmaker(bind=engine) | 23.272727 | 61 | 0.8125 | 35 | 256 | 5.8 | 0.514286 | 0.118227 | 0.137931 | 0.197044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101563 | 256 | 11 | 62 | 23.272727 | 0.882609 | 0.054688 | 0 | 0 | 0 | 0 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f4303a04cc7be758c66418acd13dba8d595c9fa | 144 | py | Python | server_py/flatgov/uscongress/urls.py | aih/BillMap | d130b1396cb25b415cd7d9ea7389ad558a34eec1 | [
"CC0-1.0"
] | 2 | 2022-01-18T14:55:52.000Z | 2022-01-31T03:38:39.000Z | server_py/flatgov/uscongress/urls.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 321 | 2020-09-01T16:20:35.000Z | 2021-07-03T06:42:34.000Z | server_py/flatgov/uscongress/urls.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 1 | 2022-03-31T15:02:49.000Z | 2022-03-31T15:02:49.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.UscongressDebugView.as_view(), name='uscongress-test'),
]
| 18 | 74 | 0.715278 | 17 | 144 | 6 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 144 | 7 | 75 | 20.571429 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.