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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f07986fd9499093050faa2a7efae75333d2e0de | 388 | py | Python | cogbot/extensions/ping.py | Arcensoth/cogbot | ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0 | [
"MIT"
] | 8 | 2016-12-26T14:10:38.000Z | 2021-01-02T03:50:05.000Z | cogbot/extensions/ping.py | Arcensoth/cogbot | ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0 | [
"MIT"
] | 28 | 2016-12-12T04:06:53.000Z | 2020-04-23T06:18:55.000Z | cogbot/extensions/ping.py | Arcensoth/cogbot | ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0 | [
"MIT"
] | 9 | 2017-06-03T00:33:57.000Z | 2020-10-29T18:16:02.000Z | from discord.ext import commands
from discord.ext.commands import Context
class Ping:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
async def ping(self, ctx: Context):
await self.bot.say(f'{ctx.message.author.mention} Pong!')
await self.bot.add_react... | 22.823529 | 65 | 0.677835 | 58 | 388 | 4.431034 | 0.517241 | 0.108949 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195876 | 388 | 16 | 66 | 24.25 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.090206 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f0914178ca5afe4087229305ea6dba1618d00a6 | 2,706 | py | Python | questao_02/q2.py | igoradriano/desafio_bemol_trainee | 296160909564fee707716a4f0ebbe1a0a2f8bddd | [
"MIT"
] | null | null | null | questao_02/q2.py | igoradriano/desafio_bemol_trainee | 296160909564fee707716a4f0ebbe1a0a2f8bddd | [
"MIT"
] | null | null | null | questao_02/q2.py | igoradriano/desafio_bemol_trainee | 296160909564fee707716a4f0ebbe1a0a2f8bddd | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
# Importando Bibliotecas
import os
import funcoes
arquivo = funcoes.open_file_mod()
#-------------------------------------------------------------------------------------------------------
q2 = input("Deseja passar um ano para saber o Ranking de Pib per capita por estado(caso não queira mandare... | 37.583333 | 163 | 0.626386 | 412 | 2,706 | 4.048544 | 0.371359 | 0.052758 | 0.014388 | 0.02518 | 0.258393 | 0.224221 | 0.177458 | 0.141487 | 0.141487 | 0.141487 | 0 | 0.029356 | 0.219512 | 2,706 | 72 | 164 | 37.583333 | 0.760417 | 0.201774 | 0 | 0.307692 | 0 | 0.076923 | 0.376684 | 0.055736 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.019231 | false | 0.038462 | 0.038462 | 0 | 0.057692 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f0c7caf5305424c83748c1eb5036ff944a11c57 | 717 | py | Python | django/diary/models.py | afnf33/emoTale | 0d14b7989d7a4cde741f4fcc4ca44a4a0423d561 | [
"Apache-2.0"
] | 10 | 2020-08-31T15:43:58.000Z | 2022-03-09T11:56:02.000Z | django/diary/models.py | narcotis/emoTale | 131c9392e863c5dac585dd549ea847d2a4c33a5c | [
"Apache-2.0"
] | 1 | 2020-09-01T07:54:48.000Z | 2020-09-01T07:54:48.000Z | django/diary/models.py | narcotis/emoTale | 131c9392e863c5dac585dd549ea847d2a4c33a5c | [
"Apache-2.0"
] | 5 | 2020-09-09T13:54:08.000Z | 2021-07-26T05:35:32.000Z | from django.db import models
# Create your models here.
class User(models.Model):
id = models.IntegerField()
name = models.CharField(max_length = 5)
count = models.IntegerField(default = 0)
email = models.EmailField(primary_key = True)
class Result(models.Model):
id = models.IntegerField(primary_... | 31.173913 | 61 | 0.714086 | 87 | 717 | 5.804598 | 0.45977 | 0.142574 | 0.077228 | 0.112871 | 0.421782 | 0.360396 | 0.360396 | 0.360396 | 0 | 0 | 0 | 0.010152 | 0.175732 | 717 | 22 | 62 | 32.590909 | 0.844332 | 0.033473 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f0deae4f4b0a019d3b4fdd4c28fe6d8c5f898f2 | 1,664 | py | Python | censor.py | keeeeeegan/learning-python | be93279698d883a155f0f31b18dccb5b213895b1 | [
"MIT"
] | null | null | null | censor.py | keeeeeegan/learning-python | be93279698d883a155f0f31b18dccb5b213895b1 | [
"MIT"
] | null | null | null | censor.py | keeeeeegan/learning-python | be93279698d883a155f0f31b18dccb5b213895b1 | [
"MIT"
] | null | null | null | def censor(words, cus, debug = False):
if debug:
print words
print cus.upper()
new_words = ""
count = 0
while count < len(words):
# if we find a letter match
if words[count] == cus[0]:
if debug:
print "first letter match"
prin... | 33.28 | 112 | 0.483774 | 192 | 1,664 | 4.09375 | 0.322917 | 0.081425 | 0.091603 | 0.043257 | 0.169211 | 0.073791 | 0.073791 | 0 | 0 | 0 | 0 | 0.007519 | 0.440505 | 1,664 | 49 | 113 | 33.959184 | 0.836735 | 0.097957 | 0 | 0.268293 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.243902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f0f8010280810b631fa89cd2f63bacfb01a4e6b | 3,103 | py | Python | argus/db/config.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | argus/db/config.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | argus/db/config.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from typing import Hashable, Any
from pathlib import Path
from os import getenv
import logging
import yaml
class ConfigLocationError(Exception):
pass
class BaseConfig(ABC):
def __init__(self):
self.log = logging.getLogger(self.__class__.__name__)
@property
def as_dict(se... | 25.858333 | 105 | 0.616178 | 350 | 3,103 | 5.271429 | 0.225714 | 0.089431 | 0.052033 | 0.069377 | 0.428184 | 0.366938 | 0.311111 | 0.288347 | 0.268835 | 0.225474 | 0 | 0.000446 | 0.278118 | 3,103 | 119 | 106 | 26.07563 | 0.823214 | 0 | 0 | 0.527473 | 0 | 0 | 0.108927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197802 | false | 0.087912 | 0.065934 | 0.098901 | 0.43956 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f108c805b37a6f2adc3c6b6545a6a54c4e35c5a | 11,685 | py | Python | factory_generator/fields_faker.py | marksweb/django-factory-generator | 0a839e55d56a1c7171bc4493b729458a3d6d8819 | [
"MIT"
] | 10 | 2019-04-19T03:00:09.000Z | 2022-02-23T16:17:43.000Z | factory_generator/fields_faker.py | charlesthk/django-factory-generator | cd0f7aa5b4ecc2bbe8f30a081238056c653d7265 | [
"MIT"
] | 2 | 2020-05-10T00:40:51.000Z | 2021-02-28T11:31:26.000Z | factory_generator/fields_faker.py | charlesthk/django-factory-generator | cd0f7aa5b4ecc2bbe8f30a081238056c653d7265 | [
"MIT"
] | 6 | 2019-12-19T16:26:00.000Z | 2021-05-13T23:42:35.000Z | from django.conf import settings
from django.template.loader import render_to_string
class FieldFaker:
"""
Base class to return faker and kwargs
for a given model field
:faker - the Faker method to be called
:faker_kwargs - the kwargs to be passed to the faker method
:unquote_kwargs - the kwa... | 29.2125 | 115 | 0.67086 | 1,229 | 11,685 | 6.133442 | 0.170871 | 0.045105 | 0.087556 | 0.107456 | 0.412576 | 0.383921 | 0.36389 | 0.344256 | 0.315336 | 0.260547 | 0 | 0.010521 | 0.219084 | 11,685 | 400 | 116 | 29.2125 | 0.815562 | 0.032264 | 0 | 0.426573 | 0 | 0 | 0.300526 | 0.167543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118881 | false | 0 | 0.034965 | 0.087413 | 0.723776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f1bc3253f93d276e3451a9daef202efef95f6bf | 1,124 | py | Python | setup.py | LorenzoLeonardini/Esse3Api | 879098de03f71ca2ce9cfe04faae9b7c8ef0e86c | [
"MIT"
] | 7 | 2020-11-19T23:15:42.000Z | 2022-01-09T15:34:54.000Z | setup.py | LorenzoLeonardini/Esse3Api | 879098de03f71ca2ce9cfe04faae9b7c8ef0e86c | [
"MIT"
] | 1 | 2021-08-05T13:43:19.000Z | 2021-08-05T13:43:19.000Z | setup.py | LorenzoLeonardini/Esse3Api | 879098de03f71ca2ce9cfe04faae9b7c8ef0e86c | [
"MIT"
] | 2 | 2021-03-11T23:19:27.000Z | 2021-08-10T08:04:05.000Z | from distutils.core import setup
setup(
name = 'Esse3Api',
packages = ['Esse3Api'],
version = '1.1',
license = 'MIT',
description = 'A python library to query and interact with Cineca\'s ESSE3 REST API',
author = 'Lorenzo Leonardini',
author_email = 'lorenzo@leonardini.dev',
url = 'https... | 41.62963 | 150 | 0.620107 | 122 | 1,124 | 5.688525 | 0.663934 | 0.10951 | 0.144092 | 0.149856 | 0.121037 | 0.121037 | 0 | 0 | 0 | 0 | 0 | 0.024648 | 0.241993 | 1,124 | 26 | 151 | 43.230769 | 0.789906 | 0.125445 | 0 | 0.076923 | 0 | 0 | 0.553061 | 0.022449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f213b53c6f299e97905dd483c1790893c6d7817 | 357 | py | Python | app/data/user.py | kaarych/kommersant | 74fad20e977750f8a5d2c4ecc8d24772a0b90ae5 | [
"Apache-2.0"
] | 1 | 2022-03-27T12:34:36.000Z | 2022-03-27T12:34:36.000Z | app/data/user.py | devkarych/kommersant | 74fad20e977750f8a5d2c4ecc8d24772a0b90ae5 | [
"Apache-2.0"
] | 1 | 2022-01-25T22:11:21.000Z | 2022-01-29T21:06:28.000Z | app/data/user.py | kaarych/kommersant | 74fad20e977750f8a5d2c4ecc8d24772a0b90ae5 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
# Data object of Telegram user's data.
@dataclass
class User:
id: int
username: str
fullname: str
name: str
def __init__(self, user_id: int, username: str, fullname: str, name: str):
self.id = user_id
self.username = username
self.fullname... | 21 | 78 | 0.644258 | 47 | 357 | 4.765957 | 0.425532 | 0.080357 | 0.080357 | 0.151786 | 0.339286 | 0.339286 | 0.339286 | 0.339286 | 0.339286 | 0 | 0 | 0 | 0.277311 | 357 | 16 | 79 | 22.3125 | 0.868217 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f21b2742c8ea2a8c6034400874caec22c0cd13f | 1,145 | py | Python | geopy/tests/test_geocoders.py | datadesk/latimes-mappingla-geopy | 1afcfd98292b929363007e7cd38beae55cdec12d | [
"MIT"
] | 3 | 2015-05-18T05:44:34.000Z | 2018-05-11T12:15:44.000Z | geopy/tests/test_geocoders.py | datadesk/latimes-mappingla-geopy | 1afcfd98292b929363007e7cd38beae55cdec12d | [
"MIT"
] | null | null | null | geopy/tests/test_geocoders.py | datadesk/latimes-mappingla-geopy | 1afcfd98292b929363007e7cd38beae55cdec12d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import unittest
from geopy import geocoders
class BaseTest(unittest.TestCase):
def setUp(self):
self.GOOGLE_API_KEY = 'ABQIAAAAGhi-W_UrhAbJd_oyDNEvcxTi5SvYvSQHL9wSA8Ar43CRRnpzhBQ_yTB7UeJHK00rUynRE4eLdUJp0Q'
self.google = geocoders.Google(self.GOOGLE_API_KEY)
class Goog... | 32.714286 | 118 | 0.684716 | 136 | 1,145 | 5.580882 | 0.477941 | 0.105402 | 0.111989 | 0.079051 | 0.275362 | 0.275362 | 0.137022 | 0.137022 | 0.137022 | 0.137022 | 0 | 0.085745 | 0.185153 | 1,145 | 34 | 119 | 33.676471 | 0.72776 | 0.017467 | 0 | 0 | 0 | 0 | 0.145147 | 0.076581 | 0 | 0 | 0 | 0 | 0.181818 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f24a1066960900f43c9ba4d051f78ed29c5b1f9 | 7,022 | py | Python | uncertainty_metrics/tensorflow/metrics_test.py | kashif/uncertainty-metrics | 3968dc6a1478c52b6942bdefbd096fa382d79fe6 | [
"MIT"
] | 5 | 2021-02-21T18:16:34.000Z | 2022-01-28T08:48:52.000Z | uncertainty_metrics/tensorflow/metrics_test.py | rampopat/uncertainty-metrics | 3968dc6a1478c52b6942bdefbd096fa382d79fe6 | [
"MIT"
] | null | null | null | uncertainty_metrics/tensorflow/metrics_test.py | rampopat/uncertainty-metrics | 3968dc6a1478c52b6942bdefbd096fa382d79fe6 | [
"MIT"
] | 2 | 2021-04-27T15:55:32.000Z | 2021-08-18T12:27:12.000Z | # coding=utf-8
# Copyright 2020 The uncertainty_metrics Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 40.589595 | 80 | 0.656508 | 1,165 | 7,022 | 3.749356 | 0.163949 | 0.024725 | 0.021291 | 0.015568 | 0.677656 | 0.63576 | 0.617674 | 0.608288 | 0.605082 | 0.605082 | 0 | 0.081509 | 0.199801 | 7,022 | 172 | 81 | 40.825581 | 0.695853 | 0.18556 | 0 | 0.533898 | 0 | 0 | 0.006859 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 1 | 0.025424 | false | 0 | 0.025424 | 0 | 0.059322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f26d4d01bbb69949503fc63868196f2d12d94df | 1,178 | py | Python | stocks/admin.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 11 | 2018-05-15T18:02:31.000Z | 2020-05-07T03:57:33.000Z | stocks/admin.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 1 | 2018-05-16T11:27:32.000Z | 2018-07-07T10:56:58.000Z | stocks/admin.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 13 | 2018-05-15T18:02:27.000Z | 2022-03-23T06:18:29.000Z | from django.contrib import admin
from stocks.models import Listing
from stocks.models import BlockDetail, Block
from stocks.models import RPS, RPSprepare
from stocks.models import HSGTCGHold, HSGTCGHold
# Register your models here.
admin.site.register(Listing)
admin.site.register(Block)
admin.site.register(BlockDetail... | 27.395349 | 86 | 0.704584 | 133 | 1,178 | 6.165414 | 0.368421 | 0.076829 | 0.145122 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.152801 | 1,178 | 43 | 87 | 27.395349 | 0.819639 | 0.09253 | 0 | 0 | 0 | 0 | 0.139775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f35fdc75873baee810f1d7a74bc098c90e60051 | 749 | py | Python | src/Scheduler/scheduler.py | christopher-henderson/Tweeter | 9acf716821b0c799e41acc77a800961343715370 | [
"MIT"
] | null | null | null | src/Scheduler/scheduler.py | christopher-henderson/Tweeter | 9acf716821b0c799e41acc77a800961343715370 | [
"MIT"
] | 1 | 2015-04-25T17:54:07.000Z | 2015-04-25T17:54:26.000Z | src/Scheduler/scheduler.py | christopher-henderson/Tweeter | 9acf716821b0c799e41acc77a800961343715370 | [
"MIT"
] | null | null | null | from Tweet import Tweet
import schedule
from functools import wraps
from threading import Thread
from time import sleep
def Threaded(function):
'''
Every call of the decorated function will spawn a
daemonized thread. Returns a threading.Thread object.
'''
@wraps(function)
def wrapper(*args, **k... | 24.16129 | 66 | 0.655541 | 87 | 749 | 5.586207 | 0.505747 | 0.045267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003591 | 0.256342 | 749 | 31 | 67 | 24.16129 | 0.868941 | 0.137517 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f38a013f5a3e0fb2640b72454b79944ff0bef81 | 1,314 | py | Python | src/unicon/plugins/hvrp/patterns.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | src/unicon/plugins/hvrp/patterns.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | src/unicon/plugins/hvrp/patterns.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | """
Module:
unicon.plugins.hvrp
Authors:
Miguel Botia (mibotiaf@cisco.com), Leonardo Anez (leoanez@cisco.com)
Description:
Module for defining all the Patterns required for the HVRP implementation.
"""
from unicon.patterns import UniconCorePatterns
class HvrpPatterns(UniconCorePatterns):
"""
... | 31.285714 | 157 | 0.62481 | 157 | 1,314 | 5.127389 | 0.464968 | 0.043478 | 0.037267 | 0.054658 | 0.362733 | 0.300621 | 0.300621 | 0.300621 | 0.300621 | 0.198758 | 0 | 0.003964 | 0.232116 | 1,314 | 41 | 158 | 32.04878 | 0.793855 | 0.382801 | 0 | 0 | 0 | 0.076923 | 0.360677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.230769 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3bc24116d9466f69af667365af22c4ed18d778 | 15,869 | py | Python | spades/spades.py | XanaduBarchetta/swe681-spades | a00c8e91d8bb96a1459be37751daffe57adc733c | [
"MIT"
] | 1 | 2020-03-23T00:06:24.000Z | 2020-03-23T00:06:24.000Z | spades/spades.py | XanaduBarchetta/swe681-spades | a00c8e91d8bb96a1459be37751daffe57adc733c | [
"MIT"
] | 3 | 2020-03-02T22:40:11.000Z | 2020-05-05T19:36:16.000Z | spades/spades.py | XanaduBarchetta/swe681-spades | a00c8e91d8bb96a1459be37751daffe57adc733c | [
"MIT"
] | 1 | 2020-05-25T21:36:46.000Z | 2020-05-25T21:36:46.000Z | import re
import logging
from flask import flash, redirect, url_for, request, render_template
from flask_login import current_user, LoginManager, login_required, login_user, logout_user
from spades.dbobjects import User, Game, GameStateEnum, DirectionsEnum, SuitEnum
from spades.exceptions import UserAlreadyExistsExce... | 40.585678 | 120 | 0.64125 | 1,996 | 15,869 | 4.941884 | 0.168337 | 0.035685 | 0.045418 | 0.060827 | 0.466849 | 0.366383 | 0.303021 | 0.279907 | 0.247871 | 0.225973 | 0 | 0.003504 | 0.244691 | 15,869 | 390 | 121 | 40.689744 | 0.819456 | 0.048207 | 0 | 0.351266 | 0 | 0 | 0.247157 | 0.003059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0.072785 | 0.022152 | 0.009494 | 0.212025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3ccee3340205f7697852b6cecd2043cf2595b3 | 1,547 | py | Python | app/finance/migrations/0004_auto_20190216_1854.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | null | null | null | app/finance/migrations/0004_auto_20190216_1854.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | 19 | 2018-12-10T20:06:21.000Z | 2021-06-10T21:03:31.000Z | app/finance/migrations/0004_auto_20190216_1854.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-02-16 18:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('finance', '0003_transaction_transaction_date'),
]
operations = [
migrations.AlterModelOptions(
... | 39.666667 | 226 | 0.648998 | 169 | 1,547 | 5.828402 | 0.550296 | 0.091371 | 0.081218 | 0.097462 | 0.13401 | 0.13401 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.247576 | 1,547 | 38 | 227 | 40.710526 | 0.825601 | 0.029089 | 0 | 0.375 | 1 | 0.03125 | 0.319333 | 0.022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3f41eb73613644e98c3a4f60b7c4303e2fef49 | 1,009 | py | Python | LeetCodeSolutions/python/221_Maximal_Square.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | 1 | 2017-03-27T13:38:37.000Z | 2017-03-27T13:38:37.000Z | LeetCodeSolutions/python/221_Maximal_Square.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | null | null | null | LeetCodeSolutions/python/221_Maximal_Square.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | null | null | null | class Solution(object):
def maximalSquare(self, matrix):
"""
:type matrix: List[List[str]]
:rtype: int
"""
if not matrix or len(matrix) == 0:
return 0
row, col = len(matrix), len(matrix[0])
max_size = 0
dp = [[0] * col for _ in xrange(row)]... | 27.27027 | 84 | 0.412289 | 154 | 1,009 | 2.642857 | 0.220779 | 0.044226 | 0.051597 | 0.058968 | 0.257985 | 0.167076 | 0.120393 | 0.022113 | 0 | 0 | 0 | 0.066246 | 0.371655 | 1,009 | 36 | 85 | 28.027778 | 0.57571 | 0 | 0 | 0 | 0 | 0 | 0.022436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f4035b0b588e27323fe6eb7a60c79e2544f4e76 | 6,206 | py | Python | module_utils/tetration_constants.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 6 | 2021-03-18T19:27:03.000Z | 2021-09-10T10:26:15.000Z | module_utils/tetration_constants.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 3 | 2021-04-06T07:30:40.000Z | 2021-04-29T17:00:29.000Z | module_utils/tetration_constants.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 4 | 2021-04-02T10:08:15.000Z | 2021-11-16T01:26:28.000Z | # This file contains all the constants in use by the tetration modules
# defining tetration constants
TETRATION_API_INVENTORY_TAG = '/inventory/tags'
TETRATION_API_ROLE = '/roles'
TETRATION_API_USER = '/users'
TETRATION_API_SENSORS = '/sensors'
TETRATION_API_INVENTORY_FILTER = '/filters/inventories'
TETRATION_API_SCOP... | 35.062147 | 85 | 0.619401 | 916 | 6,206 | 4.129913 | 0.413755 | 0.296061 | 0.019033 | 0.015067 | 0.018239 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06713 | 0.164679 | 6,206 | 176 | 86 | 35.261364 | 0.662616 | 0.020786 | 0 | 0 | 0 | 0 | 0.170756 | 0.012844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f594d6490eaf3f3818bb3ca82839af8f403081c | 5,933 | py | Python | model/resnet_train.py | KKarrasKallidromitis/Adversarial-Examples-on-Neural-Networks | 90ff58fdea5306dde537f809b330ec94a801166d | [
"MIT"
] | null | null | null | model/resnet_train.py | KKarrasKallidromitis/Adversarial-Examples-on-Neural-Networks | 90ff58fdea5306dde537f809b330ec94a801166d | [
"MIT"
] | null | null | null | model/resnet_train.py | KKarrasKallidromitis/Adversarial-Examples-on-Neural-Networks | 90ff58fdea5306dde537f809b330ec94a801166d | [
"MIT"
] | null | null | null | import torch
import os
import torch.nn as nn
import torch.nn.functional as fun
from torchsummary import summary
import torchvision
from torch.optim import lr_scheduler
import torchvision.transforms as transforms
from collections import Counter
import matplotlib.pyplot as plt
import numpy as np
from scipy.misc import im... | 33.145251 | 114 | 0.632227 | 840 | 5,933 | 4.384524 | 0.252381 | 0.010861 | 0.041271 | 0.06082 | 0.337497 | 0.308173 | 0.302471 | 0.292968 | 0.292968 | 0.280749 | 0 | 0.031885 | 0.212371 | 5,933 | 178 | 115 | 33.331461 | 0.756259 | 0.037249 | 0 | 0.22973 | 0 | 0 | 0.085233 | 0.020519 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114865 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f62d1475b6e37a8ec3e3e292e347389ee924506 | 1,237 | py | Python | cupyx/scipy/special/_erf.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 1 | 2021-06-17T09:17:29.000Z | 2021-06-17T09:17:29.000Z | cupyx/scipy/special/_erf.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 8 | 2019-02-11T17:20:01.000Z | 2021-09-08T01:14:51.000Z | cupyx/scipy/special/_erf.py | Pandinosaurus/cupy | c98064928c8242d0c6a07e2c714e6c811f684a4e | [
"MIT"
] | 1 | 2021-01-08T14:16:53.000Z | 2021-01-08T14:16:53.000Z | from cupy import _core
erf = _core.create_ufunc(
'cupyx_scipy_erf', ('f->f', 'd->d'),
'out0 = erf(in0)',
doc='''Error function.
.. seealso:: :meth:`scipy.special.erf`
''')
erfc = _core.create_ufunc(
'cupyx_scipy_erfc', ('f->f', 'd->d'),
'out0 = erfc(in0)',
doc='''Complementary erro... | 20.616667 | 70 | 0.581245 | 156 | 1,237 | 4.474359 | 0.25641 | 0.071633 | 0.10745 | 0.143266 | 0.796562 | 0.494269 | 0.391117 | 0.180516 | 0.180516 | 0.180516 | 0 | 0.016736 | 0.227162 | 1,237 | 59 | 71 | 20.966102 | 0.713389 | 0 | 0 | 0.297297 | 0 | 0 | 0.69038 | 0.109135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6427142aac5685cb5f373374cd1eb9a9e102fd | 896 | py | Python | dbbleeder/datatools/BleedDB.py | toddroper/dbbleed | 641f48628c9739d440895f07a16ec2348ef9c77a | [
"Apache-2.0"
] | null | null | null | dbbleeder/datatools/BleedDB.py | toddroper/dbbleed | 641f48628c9739d440895f07a16ec2348ef9c77a | [
"Apache-2.0"
] | null | null | null | dbbleeder/datatools/BleedDB.py | toddroper/dbbleed | 641f48628c9739d440895f07a16ec2348ef9c77a | [
"Apache-2.0"
] | null | null | null | import MySQLdb as MySQL
class BleedDB:
config = False
tables = False
def __init__(self, config, source=False):
self.config = config
self.source = source
self.connection = MySQL.connect(host=config["host"], user=config["user"], passwd=config["pass"],
... | 29.866667 | 104 | 0.56808 | 102 | 896 | 4.911765 | 0.431373 | 0.07984 | 0.047904 | 0.103792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304688 | 896 | 29 | 105 | 30.896552 | 0.804173 | 0 | 0 | 0.090909 | 0 | 0 | 0.079241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6817f30efaf585e8be4a793dcffbbb9edc7185 | 2,117 | py | Python | tests/vtk_ui/test_vtk_ui_label_x.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 11 | 2018-10-10T03:14:33.000Z | 2022-01-05T14:18:15.000Z | tests/vtk_ui/test_vtk_ui_label_x.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 196 | 2018-03-21T19:44:56.000Z | 2021-12-21T21:56:24.000Z | tests/vtk_ui/test_vtk_ui_label_x.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T21:54:45.000Z | 2022-03-20T04:22:14.000Z | """
Test label placement when using the x property
"""
import vcs.vtk_ui
import vtk
from vtk_ui_test import vtk_ui_test
class test_vtk_ui_label_x(vtk_ui_test):
def do(self):
self.win.SetSize(130, 130)
self.args = ["test_vtk_ui_label_x.png"]
font_sizes = [10, 18, 24, 31]
for ind,... | 35.283333 | 105 | 0.591403 | 288 | 2,117 | 4.111111 | 0.267361 | 0.081081 | 0.053209 | 0.047297 | 0.367399 | 0.307432 | 0.164696 | 0.164696 | 0.164696 | 0.164696 | 0 | 0.023826 | 0.306094 | 2,117 | 59 | 106 | 35.881356 | 0.782165 | 0.03401 | 0 | 0 | 0 | 0 | 0.108149 | 0.023139 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6c4ab9d46d7661d514886289e5bfb732b4e028 | 401 | py | Python | api/user/urls.py | vishalda/blog-django-react | cc7eca5656958be242a80ba79b9814b210806d27 | [
"MIT"
] | null | null | null | api/user/urls.py | vishalda/blog-django-react | cc7eca5656958be242a80ba79b9814b210806d27 | [
"MIT"
] | null | null | null | api/user/urls.py | vishalda/blog-django-react | cc7eca5656958be242a80ba79b9814b210806d27 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.authtoken import views
from django.conf import settings
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'',views.UserViewSet)
urlpatterns = [
path('login/',views.signin, name='signin'),
path('log... | 28.642857 | 58 | 0.74813 | 52 | 401 | 5.730769 | 0.5 | 0.067114 | 0.114094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114713 | 401 | 14 | 59 | 28.642857 | 0.839437 | 0 | 0 | 0 | 0 | 0 | 0.087065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f6ec11532d8f30fe1008e386831241c23594f09 | 5,120 | py | Python | tests/func/test_tree.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | 1 | 2019-04-16T19:51:03.000Z | 2019-04-16T19:51:03.000Z | tests/func/test_tree.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | null | null | null | tests/func/test_tree.py | vyloy/dvc | 60c89adeb5dcc293d8661d6aabeb1da6d05466f5 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
from __future__ import unicode_literals
from os.path import join
from dvc.scm import SCM
from dvc.scm.git import GitTree
from dvc.scm.tree import WorkingTree
from tests.basic_env import TestDir, TestGit
class TestWorkingTree(TestDir):
def setUp(self):
super(TestWorkingTree, self).set... | 33.907285 | 76 | 0.589258 | 607 | 5,120 | 4.815486 | 0.133443 | 0.090318 | 0.068423 | 0.102292 | 0.744441 | 0.701334 | 0.666096 | 0.565515 | 0.537804 | 0.476907 | 0 | 0.000262 | 0.253711 | 5,120 | 150 | 77 | 34.133333 | 0.764721 | 0.00293 | 0 | 0.508065 | 0 | 0 | 0.106604 | 0.005879 | 0 | 0 | 0 | 0 | 0.314516 | 1 | 0.129032 | false | 0 | 0.048387 | 0.008065 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f700dcb735145c52e86a7745eb28c87de9f0f9b | 1,074 | py | Python | vaineye/helpers.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | 1 | 2020-06-01T14:31:48.000Z | 2020-06-01T14:31:48.000Z | vaineye/helpers.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | null | null | null | vaineye/helpers.py | diascreative/VaingloriousEye | 3b1fc69a14b53d9408f0546dccab2b93b8521c90 | [
"MIT"
] | null | null | null | from webob import Request
from webob import exc
class wsgi_wrap(object):
"""
Wraps a Request-taking Response-returning webob.exc-raising
function as a WSGI app
"""
def __init__(self, func):
self.func = func
def __get__(self, obj, type=None):
return self.__class__(self.func.__get... | 26.85 | 63 | 0.610801 | 149 | 1,074 | 4.154362 | 0.422819 | 0.07916 | 0.048465 | 0.071082 | 0.100162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003822 | 0.269088 | 1,074 | 39 | 64 | 27.538462 | 0.784713 | 0 | 0 | 0 | 0 | 0 | 0.001195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.08 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f71245c05fc92f3cbc78d7e19cb2acaea64faa2 | 634 | py | Python | api/utils/const.py | novanda1/sayurmax | 82588735e2305b658ce5b668d3d29e413ea6f5d9 | [
"Apache-2.0"
] | null | null | null | api/utils/const.py | novanda1/sayurmax | 82588735e2305b658ce5b668d3d29e413ea6f5d9 | [
"Apache-2.0"
] | 1 | 2022-03-12T01:01:57.000Z | 2022-03-12T01:01:57.000Z | api/utils/const.py | novanda1/sayurmax | 82588735e2305b658ce5b668d3d29e413ea6f5d9 | [
"Apache-2.0"
] | null | null | null |
from dotenv import load_dotenv, dotenv_values
import os
config = {
**dotenv_values(".env.dev"),
**os.environ,
}
load_dotenv()
django_secret_key = config['DJANGO_SECRET_KEY']
jwt_secret = config['JWT_SECRET']
topt_32 = config['TOTP_32']
zuwinda_token = config['ZUWINDA_TOKEN']
zuwinda_instance_id = config['ZU... | 26.416667 | 64 | 0.758675 | 86 | 634 | 5.197674 | 0.383721 | 0.1566 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.100946 | 634 | 23 | 65 | 27.565217 | 0.777193 | 0 | 0 | 0 | 0 | 0 | 0.281201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f764ac377504243ccdba546c2aaa5e409f1c8d8 | 43,846 | py | Python | python_common_usage/python_usage_unclear.py | Tri-x/python_primary_programs | f2012bd2479ecbf862e8695aeaa477b0d0bbd60c | [
"Apache-2.0"
] | null | null | null | python_common_usage/python_usage_unclear.py | Tri-x/python_primary_programs | f2012bd2479ecbf862e8695aeaa477b0d0bbd60c | [
"Apache-2.0"
] | null | null | null | python_common_usage/python_usage_unclear.py | Tri-x/python_primary_programs | f2012bd2479ecbf862e8695aeaa477b0d0bbd60c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Version: Python 3.9.5
# Author: TRIX
# Use:大部分不熟悉的内容都能在这里找得到解决方法
# -*-coding:utf8 -*-
#声明python用utf-8编码py文件
#!/usr/bin/python3
#只对 Linux/Unix 用户适用 用来指定本脚本用什么解释器来执行
#版本查看
cmd python --version
#python 版本更新 https://www.cnblogs.com/huny/p/13911721.html
#pip 在终端使用(win+r cmd)
pip... | 36.116969 | 332 | 0.740318 | 6,427 | 43,846 | 4.958301 | 0.370624 | 0.003577 | 0.001036 | 0.00113 | 0.113566 | 0.084476 | 0.067907 | 0.056453 | 0.050868 | 0.039822 | 0 | 0.030888 | 0.113214 | 43,846 | 1,213 | 333 | 36.146744 | 0.788617 | 0 | 0 | 0.078044 | 0 | 0.002081 | 0.115752 | 0.032014 | 0 | 0 | 0.000729 | 0 | 0.001041 | 0 | null | null | 0.009365 | 0.03538 | null | null | 0.042664 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f76e01126702b6d3f144abbacffa8dae4389134 | 2,409 | py | Python | balance.py | 1Reinier/CapstoneThesis | e98b92d82644b006143b1be1a8c1db224fafd66f | [
"MIT"
] | 2 | 2020-05-20T10:45:08.000Z | 2021-01-15T00:34:37.000Z | balance.py | 1Reinier/CapstoneThesis | e98b92d82644b006143b1be1a8c1db224fafd66f | [
"MIT"
] | null | null | null | balance.py | 1Reinier/CapstoneThesis | e98b92d82644b006143b1be1a8c1db224fafd66f | [
"MIT"
] | 2 | 2019-07-15T18:31:53.000Z | 2020-11-23T17:04:17.000Z | """Balance.py
Implements balance sheet class.
"""
from settings import *
class BalanceSheet(object):
"""
Implements the balance sheet of a bank as in [2], according to empirical data from [1] and [3].
"""
def __init__(self, sheet_size):
"""
All fractions are floats between 0 and 1.
... | 33.929577 | 99 | 0.701951 | 278 | 2,409 | 5.809353 | 0.215827 | 0.055728 | 0.052632 | 0.059443 | 0.19195 | 0.102786 | 0 | 0 | 0 | 0 | 0 | 0.004803 | 0.222084 | 2,409 | 70 | 100 | 34.414286 | 0.85699 | 0.121627 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244444 | false | 0 | 0.022222 | 0.088889 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4895973e7fbda0772a08ff45079361c2f431beef | 3,129 | py | Python | QP optimizer/AADT_predictor.py | gmac98/Traffic-Patterns-Prediction | 5f17e16ee1c8bfa4448ffc8d264c2ed6f8540a2d | [
"Apache-2.0"
] | null | null | null | QP optimizer/AADT_predictor.py | gmac98/Traffic-Patterns-Prediction | 5f17e16ee1c8bfa4448ffc8d264c2ed6f8540a2d | [
"Apache-2.0"
] | null | null | null | QP optimizer/AADT_predictor.py | gmac98/Traffic-Patterns-Prediction | 5f17e16ee1c8bfa4448ffc8d264c2ed6f8540a2d | [
"Apache-2.0"
] | null | null | null | """
SUMMARY
Attempts to predict the original AADT values from the results obtained from the quadratic optimizer.
Designed for batch use after executing ../generate_multiple_QP_solutions.sh
Expected to fail due to singular matrix, since all streets receive cars from others, making them linear combinations of one a... | 28.972222 | 169 | 0.712049 | 502 | 3,129 | 4.179283 | 0.296813 | 0.042898 | 0.040038 | 0.042898 | 0.191611 | 0.122974 | 0.102002 | 0.068637 | 0 | 0 | 0 | 0.003556 | 0.191115 | 3,129 | 107 | 170 | 29.242991 | 0.825365 | 0.2186 | 0 | 0.041667 | 1 | 0 | 0.130229 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0 | false | 0 | 0.104167 | 0 | 0.104167 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48959dd6c0c45513ecc1e22a36f5899ac5bae7a8 | 187 | py | Python | aws_interface/cloud/auth/_constant.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 53 | 2018-10-02T05:58:54.000Z | 2020-09-15T08:58:26.000Z | aws_interface/cloud/auth/_constant.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 52 | 2018-09-26T05:16:09.000Z | 2022-03-11T23:51:14.000Z | aws_interface/cloud/auth/_constant.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 10 | 2019-03-11T16:35:14.000Z | 2019-10-23T08:03:54.000Z | """
Config variables using in auth package
"""
LOGIN_METHODS = [
'email_login',
'guest_login',
'facebook_login',
'google_login',
'naver_login',
'kakao_login',
]
| 13.357143 | 38 | 0.620321 | 20 | 187 | 5.45 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 187 | 13 | 39 | 14.384615 | 0.762238 | 0.203209 | 0 | 0 | 0 | 0 | 0.5 | 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 | 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 | 1 |
48a96e58af28c923e303cf6896c9d7a3a3f27b06 | 246 | py | Python | base/git.py | iafisher/khaganate-snapshot | 796b2c0c8053a2ef0acb852efaea8a06baad38c4 | [
"MIT"
] | null | null | null | base/git.py | iafisher/khaganate-snapshot | 796b2c0c8053a2ef0acb852efaea8a06baad38c4 | [
"MIT"
] | null | null | null | base/git.py | iafisher/khaganate-snapshot | 796b2c0c8053a2ef0acb852efaea8a06baad38c4 | [
"MIT"
] | null | null | null | import subprocess
def get_diff(path):
if not path.startswith("/"):
path = "/" + path
result = subprocess.run(
["git", "-C", path, "diff", "--staged"], capture_output=True, encoding="utf8"
)
return result.stdout
| 20.5 | 85 | 0.581301 | 28 | 246 | 5.035714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.243902 | 246 | 11 | 86 | 22.363636 | 0.752688 | 0 | 0 | 0 | 0 | 0 | 0.093496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ad0243c7b3b619b03f35c175520f3e2ea2922f | 1,089 | py | Python | microsoft_atp/komand_microsoft_atp/actions/stop_and_quarantine_file/action.py | emartin-merrill-r7/insightconnect-plugins | a589745dbcc9f01d3e601431e77ab7221a84c117 | [
"MIT"
] | 1 | 2020-03-18T09:14:55.000Z | 2020-03-18T09:14:55.000Z | microsoft_atp/komand_microsoft_atp/actions/stop_and_quarantine_file/action.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | null | null | null | microsoft_atp/komand_microsoft_atp/actions/stop_and_quarantine_file/action.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | null | null | null | import komand
from .schema import StopAndQuarantineFileInput, StopAndQuarantineFileOutput
# Custom imports below
class StopAndQuarantineFile(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name='stop_and_quarantine_file',
description='Stop executi... | 36.3 | 92 | 0.666667 | 119 | 1,089 | 5.865546 | 0.428571 | 0.050143 | 0.121777 | 0.120344 | 0.13467 | 0.13467 | 0.13467 | 0.13467 | 0.13467 | 0 | 0 | 0.004796 | 0.23416 | 1,089 | 29 | 93 | 37.551724 | 0.832134 | 0.078053 | 0 | 0 | 0 | 0 | 0.225451 | 0.052104 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b4db2ca670387ecbe5acaccb25bf9b5bdb42c8 | 1,088 | py | Python | example/myshop/models/i18n_polymorphic/commodity.py | haitwang-cloud/django-shop | 8ac767a42022d66d226c0bb342f16ac3df3ca30b | [
"BSD-3-Clause"
] | 39 | 2015-02-21T00:45:02.000Z | 2020-05-18T14:46:09.000Z | example/myshop/models/i18n_polymorphic/commodity.py | haitwang-cloud/django-shop | 8ac767a42022d66d226c0bb342f16ac3df3ca30b | [
"BSD-3-Clause"
] | 46 | 2015-02-03T19:51:37.000Z | 2017-03-24T23:40:14.000Z | example/myshop/models/i18n_polymorphic/commodity.py | haitwang-cloud/django-shop | 8ac767a42022d66d226c0bb342f16ac3df3ca30b | [
"BSD-3-Clause"
] | 23 | 2015-04-12T09:03:41.000Z | 2020-04-14T16:38:35.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from cms.models.fields import PlaceholderField
from parler.managers import TranslatableManager
from shop.money.fields import MoneyField
from .product import Product
cla... | 27.2 | 94 | 0.699449 | 124 | 1,088 | 5.943548 | 0.620968 | 0.036635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005903 | 0.221507 | 1,088 | 39 | 95 | 27.897436 | 0.864227 | 0.172794 | 0 | 0 | 0 | 0 | 0.096372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.269231 | 0.038462 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48b4f76367dadbaa281eb8c39bf7aedb0e32f6f8 | 459 | py | Python | LeetCode/Meeting Rooms II - Heap.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 13 | 2021-09-02T07:30:02.000Z | 2022-03-22T19:32:03.000Z | LeetCode/Meeting Rooms II - Heap.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | null | null | null | LeetCode/Meeting Rooms II - Heap.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 3 | 2021-08-24T16:06:22.000Z | 2021-09-17T15:39:53.000Z | class Solution:
def minMeetingRooms(self, intervals: List[List[int]]) -> int:
if not intervals:
return 0
intervals.sort(key = lambda x : x[0])
occupiedRooms = []
heappush(occupiedRooms, intervals[0][1])
for interval in intervals[1:]:
if occupiedRooms[0... | 38.25 | 65 | 0.586057 | 47 | 459 | 5.723404 | 0.510638 | 0.156134 | 0.252788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025078 | 0.305011 | 459 | 12 | 66 | 38.25 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b5fa675053002e8e6e3e16d5fb814be3c22cc9 | 2,441 | py | Python | uqbar/io/Timer.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 7 | 2018-12-02T05:59:54.000Z | 2021-12-28T22:40:18.000Z | uqbar/io/Timer.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 16 | 2017-12-28T22:08:09.000Z | 2022-02-26T14:47:23.000Z | uqbar/io/Timer.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 5 | 2020-03-28T14:57:47.000Z | 2022-02-01T10:02:18.000Z | import time
import typing
class Timer:
"""
A context manager for timing blocks of code.
This context manager is not reentrant. Use a separate instance when nesting
multiple timers.
:param exit_message: message to print on entering the context
:param enter_message: message to print on exiting... | 28.383721 | 87 | 0.613683 | 303 | 2,441 | 4.729373 | 0.247525 | 0.084438 | 0.054431 | 0.039777 | 0.294487 | 0.212142 | 0.107467 | 0.107467 | 0 | 0 | 0 | 0.004046 | 0.291274 | 2,441 | 85 | 88 | 28.717647 | 0.824277 | 0.239246 | 0 | 0.12766 | 0 | 0 | 0.002828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.042553 | 0.106383 | 0.446809 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
48b776a0ed58624c5678939a2917805de1ac2c12 | 489 | py | Python | authors/apps/articles/migrations/0016_auto_20190130_1258.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0016_auto_20190130_1258.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | 26 | 2019-01-07T14:22:05.000Z | 2019-02-28T17:11:48.000Z | authors/apps/articles/migrations/0016_auto_20190130_1258.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | 3 | 2019-09-19T22:16:09.000Z | 2019-10-16T21:16:16.000Z | # Generated by Django 2.1.5 on 2019-01-30 12:58
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0015_merge_20190128_0914'),
]
operations = [
migrations.AlterField(
model_name='art... | 24.45 | 107 | 0.654397 | 56 | 489 | 5.553571 | 0.75 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.239264 | 489 | 19 | 108 | 25.736842 | 0.752688 | 0.092025 | 0 | 0 | 1 | 0 | 0.142534 | 0.054299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c11fc75d062046f288b4f8ca8def3d42916e8b | 931 | py | Python | api/endpoints/accounts.py | Zylphrex/drakma | b68692cead378c033e0122acec7c468ea56ac121 | [
"MIT"
] | null | null | null | api/endpoints/accounts.py | Zylphrex/drakma | b68692cead378c033e0122acec7c468ea56ac121 | [
"MIT"
] | 3 | 2022-02-13T15:34:20.000Z | 2022-02-27T06:21:52.000Z | api/endpoints/accounts.py | Zylphrex/drakma | b68692cead378c033e0122acec7c468ea56ac121 | [
"MIT"
] | null | null | null | from django.http import Http404
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from api.models import Account
from api.serializers import AccountSerializer
class AccountsApi(APIView):
p... | 35.807692 | 90 | 0.704619 | 104 | 931 | 6.182692 | 0.509615 | 0.049767 | 0.105754 | 0.062208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012431 | 0.222342 | 931 | 25 | 91 | 37.24 | 0.875691 | 0 | 0 | 0 | 0 | 0 | 0.008593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48c1ecac3b2b1e0edf1c5824840d367db0142424 | 50,484 | py | Python | mini-projeto/antlr4-python3-runtime-4.7.2/src/autogen/CymbolParser.py | goncamateus/compilers-cin | a432194f07e797eec4aad393050967a894c70975 | [
"MIT"
] | null | null | null | mini-projeto/antlr4-python3-runtime-4.7.2/src/autogen/CymbolParser.py | goncamateus/compilers-cin | a432194f07e797eec4aad393050967a894c70975 | [
"MIT"
] | null | null | null | mini-projeto/antlr4-python3-runtime-4.7.2/src/autogen/CymbolParser.py | goncamateus/compilers-cin | a432194f07e797eec4aad393050967a894c70975 | [
"MIT"
] | null | null | null | # Generated from antlr4-python3-runtime-4.7.2/src/autogen/Cymbol.g4 by ANTLR 4.7.2
# encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3#")
... | 34.203252 | 430 | 0.546411 | 5,723 | 50,484 | 4.734929 | 0.087542 | 0.014983 | 0.01085 | 0.010333 | 0.706473 | 0.632999 | 0.59986 | 0.550041 | 0.491254 | 0.489114 | 0 | 0.072577 | 0.333512 | 50,484 | 1,475 | 431 | 34.226441 | 0.732785 | 0.003981 | 0 | 0.54513 | 1 | 0.067024 | 0.08077 | 0.065332 | 0.000894 | 0 | 0.000557 | 0 | 0 | 1 | 0.131367 | false | 0.022341 | 0.008043 | 0.075067 | 0.348525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c284b340323746c67cbd18e18494f95eca2cb5 | 784 | py | Python | pii-manager/src/pii_manager/lang/en/any/international_phone_number.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 23 | 2021-10-21T14:23:40.000Z | 2022-03-27T01:06:13.000Z | pii-manager/src/pii_manager/lang/en/any/international_phone_number.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 331 | 2021-11-02T00:30:56.000Z | 2022-03-08T16:48:13.000Z | pii-manager/src/pii_manager/lang/en/any/international_phone_number.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 33 | 2021-08-07T18:53:38.000Z | 2022-02-11T13:38:11.000Z | """
Detection of phone numbers written with international notation (i.e. with
prefix and country code)
"""
from pii_manager import PiiEnum
PATTERN_INT_PHONE = r"""
(?:\+ | 00)
(?: 9[976]\d | 8[987530]\d | 6[987]\d | 5[90]\d | 42\d |
3[875]\d | 2[98654321]\d | 9[8543210] | 8[6421] |
6[6543210]... | 27.034483 | 87 | 0.535714 | 104 | 784 | 3.971154 | 0.644231 | 0.058111 | 0.072639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169521 | 0.255102 | 784 | 28 | 88 | 28 | 0.537671 | 0.125 | 0 | 0 | 0 | 0.1 | 0.617994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48cf9a2fdc6fb797befec2f832ba6e531510a0fc | 1,880 | py | Python | src/emmental/logging/log_writer.py | lorr1/emmental | 9fc381d53441985b604bc2f6dae567f52e4f0266 | [
"MIT"
] | null | null | null | src/emmental/logging/log_writer.py | lorr1/emmental | 9fc381d53441985b604bc2f6dae567f52e4f0266 | [
"MIT"
] | null | null | null | src/emmental/logging/log_writer.py | lorr1/emmental | 9fc381d53441985b604bc2f6dae567f52e4f0266 | [
"MIT"
] | null | null | null | """Emmental log writer."""
import json
import os
from collections import defaultdict
from typing import Dict, Union
import yaml
from emmental.meta import Meta
class LogWriter(object):
"""A class for logging during training process."""
def __init__(self) -> None:
"""Initialize the log writer."""
... | 28.484848 | 85 | 0.596277 | 245 | 1,880 | 4.44898 | 0.289796 | 0.022018 | 0.047706 | 0.031193 | 0.148624 | 0.148624 | 0.148624 | 0.102752 | 0.102752 | 0.102752 | 0 | 0 | 0.287766 | 1,880 | 65 | 86 | 28.923077 | 0.81404 | 0.271277 | 0 | 0.071429 | 0 | 0 | 0.017427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.035714 | 0.214286 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48d8a658a43bd7bcd3e59098a381d7b32419dcfc | 22,461 | py | Python | src/compas/geometry/transformations/transformations.py | robin-oval/compas | e4dc751e95648c5ffb9449f239f3879d39f19887 | [
"MIT"
] | 1 | 2019-03-27T22:32:56.000Z | 2019-03-27T22:32:56.000Z | src/compas/geometry/transformations/transformations.py | robin-oval/compas | e4dc751e95648c5ffb9449f239f3879d39f19887 | [
"MIT"
] | null | null | null | src/compas/geometry/transformations/transformations.py | robin-oval/compas | e4dc751e95648c5ffb9449f239f3879d39f19887 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import math
from copy import deepcopy
from compas.geometry.basic import scale_vector
from compas.geometry.basic import scale_vector_xy
from compas.geometry.basic import normalize_vector
from compas.geometry.b... | 24.628289 | 112 | 0.582832 | 2,780 | 22,461 | 4.584892 | 0.080216 | 0.015691 | 0.016946 | 0.015691 | 0.772321 | 0.691433 | 0.653146 | 0.567315 | 0.497333 | 0.469794 | 0 | 0.027888 | 0.249677 | 22,461 | 911 | 113 | 24.655324 | 0.728416 | 0.566003 | 0 | 0.168539 | 0 | 0 | 0.042411 | 0.011053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146067 | false | 0 | 0.191011 | 0 | 0.505618 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48e35ae225874572da1581be2a69dac97f6206e7 | 3,014 | py | Python | intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/build/lib.linux-x86_64-2.7/vsmclient/v1/rbd_pools.py | opensds/proposals | 03735f5e19203bdff698454f2633ca483c92129d | [
"Apache-2.0"
] | 5 | 2017-03-21T09:11:55.000Z | 2018-11-19T14:44:36.000Z | intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/vsmclient/v1/rbd_pools.py | opensds/proposals | 03735f5e19203bdff698454f2633ca483c92129d | [
"Apache-2.0"
] | 3 | 2018-02-06T06:17:10.000Z | 2020-07-10T17:29:47.000Z | intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/build/lib.linux-x86_64-2.7/vsmclient/v1/rbd_pools.py | opensds/proposals | 03735f5e19203bdff698454f2633ca483c92129d | [
"Apache-2.0"
] | 7 | 2018-02-06T03:54:13.000Z | 2021-09-08T10:51:38.000Z | # Copyright 2011 Denali Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 27.4 | 80 | 0.603517 | 383 | 3,014 | 4.616188 | 0.381201 | 0.059389 | 0.013575 | 0.0181 | 0.059955 | 0.035068 | 0.035068 | 0 | 0 | 0 | 0 | 0.004653 | 0.286994 | 3,014 | 109 | 81 | 27.651376 | 0.818055 | 0.201062 | 0 | 0.095238 | 0 | 0 | 0.081996 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48e3b3839540536f92364f021dc27bf1c84b8e81 | 1,329 | py | Python | apps/cooggerapp/signals/topic.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 48 | 2018-04-13T13:00:10.000Z | 2020-03-17T23:35:23.000Z | apps/cooggerapp/signals/topic.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 77 | 2018-03-25T13:17:12.000Z | 2020-08-11T08:24:49.000Z | apps/cooggerapp/signals/topic.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 35 | 2018-03-30T21:43:21.000Z | 2020-08-11T05:51:46.000Z | from django.db.models import F
from django.db.models.signals import m2m_changed, post_save
from django.dispatch import receiver
from apps.page_views.models import DjangoViews
from ..forms import UTopicForm
from ..models import Content, Topic, UTopic
@receiver(post_save, sender=UTopic)
def when_utopic_create(instanc... | 36.916667 | 78 | 0.68623 | 171 | 1,329 | 5.192982 | 0.421053 | 0.033784 | 0.047297 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.209932 | 1,329 | 35 | 79 | 37.971429 | 0.840952 | 0.060948 | 0 | 0 | 0 | 0 | 0.035341 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48e72058ef3090d3b60e69448f248ccbf22697df | 879 | py | Python | alienbook/app/__init__.py | ant443/Alienbook | f9664845d1da656506e6cbe3ae31f5a89c11f3a2 | [
"MIT"
] | null | null | null | alienbook/app/__init__.py | ant443/Alienbook | f9664845d1da656506e6cbe3ae31f5a89c11f3a2 | [
"MIT"
] | 4 | 2021-03-29T10:12:47.000Z | 2022-03-12T00:55:22.000Z | alienbook/app/__init__.py | ant443/Facebook-clone | f9664845d1da656506e6cbe3ae31f5a89c11f3a2 | [
"MIT"
] | null | null | null | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
# Enable foreign key support in sqlite #
from sqlalchemy.engine import Engine
from sqlalchemy import event
@event.listens_for(Engine, "connect")
def set_sqli... | 30.310345 | 75 | 0.795222 | 122 | 879 | 5.54918 | 0.409836 | 0.053176 | 0.047267 | 0.067947 | 0.091581 | 0.091581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114903 | 879 | 28 | 76 | 31.392857 | 0.87018 | 0.097838 | 0 | 0 | 0 | 0 | 0.085133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48e9a8c472884d2a398ec9335b49e13ade5842d5 | 4,880 | py | Python | rolling/base.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | null | null | null | rolling/base.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | null | null | null | rolling/base.py | andrewcfreeman/rolling | 7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17 | [
"MIT"
] | null | null | null | import abc
from itertools import chain
class RollingObject(metaclass=abc.ABCMeta):
"""
Baseclass for rolling iterator objects.
The __new__ method here sets appropriate magic
methods for the class (__iter__ and __init__)
depending on window_type.
All iteration logic is handled in this class.
... | 28.208092 | 84 | 0.612705 | 584 | 4,880 | 4.871575 | 0.260274 | 0.059754 | 0.042179 | 0.042179 | 0.264675 | 0.200351 | 0.145518 | 0.12232 | 0.096309 | 0.042179 | 0 | 0.001192 | 0.31209 | 4,880 | 172 | 85 | 28.372093 | 0.846291 | 0.370082 | 0 | 0.376623 | 0 | 0 | 0.067578 | 0.008493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168831 | false | 0.077922 | 0.025974 | 0.025974 | 0.311688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
48ead31ee140ff65f81197aab20c39f7a05497d4 | 5,063 | py | Python | spark_auto_mapper_fhir/complex_types/meta.py | imranq2/SparkAutoMapper.FHIR | dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2 | [
"Apache-2.0"
] | 1 | 2020-10-31T23:25:07.000Z | 2020-10-31T23:25:07.000Z | spark_auto_mapper_fhir/complex_types/meta.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/complex_types/meta.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Optional, TYPE_CHECKING, Union
from pyspark.sql.types import StructType, DataType
from spark_auto_mapper_fhir.fhir_types.list import FhirList
from spark_auto_mapper_fhir.fhir_types.string import FhirString
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
... | 45.612613 | 204 | 0.714991 | 646 | 5,063 | 5.482972 | 0.303406 | 0.030491 | 0.040373 | 0.059006 | 0.288255 | 0.22699 | 0.22699 | 0.154715 | 0.154715 | 0.154715 | 0 | 0.000773 | 0.233853 | 5,063 | 110 | 205 | 46.027273 | 0.912349 | 0.533083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.021739 | 0.326087 | 0.021739 | 0.413043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48f02e366696cd96f99bc7edffa64a27a706e95e | 230 | py | Python | SeleniumCode/webscrape.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | SeleniumCode/webscrape.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | SeleniumCode/webscrape.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | from bs4 import BeautifulSoup
import requests
"""
get the html for my personal website
"""
markup = requests.get('http://xuguanzhou.com')
soup = BeautifulSoup(markup.text,"html.parser")
print(type(soup))
print(soup.prettify())
| 17.692308 | 47 | 0.743478 | 31 | 230 | 5.516129 | 0.709677 | 0.128655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.113043 | 230 | 12 | 48 | 19.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48f0d82f5a054c5ce02b5800723d30f27d5bd7dc | 2,408 | py | Python | codepost/models/submissions.py | jlumbroso/codePost-api-python | 501c3548332e21836ebe0d22ce438b4abf382146 | [
"MIT"
] | null | null | null | codepost/models/submissions.py | jlumbroso/codePost-api-python | 501c3548332e21836ebe0d22ce438b4abf382146 | [
"MIT"
] | null | null | null | codepost/models/submissions.py | jlumbroso/codePost-api-python | 501c3548332e21836ebe0d22ce438b4abf382146 | [
"MIT"
] | null | null | null | # =============================================================================
# codePost v2.0 SDK
#
# SUBMISSION MODEL SUB-MODULE
# =============================================================================
from __future__ import print_function # Python 2
# Python stdlib imports
import typing as _typing
# Local... | 51.234043 | 239 | 0.621678 | 271 | 2,408 | 5.431734 | 0.531365 | 0.061821 | 0.038043 | 0.02038 | 0.057065 | 0.027174 | 0 | 0 | 0 | 0 | 0 | 0.002036 | 0.18397 | 2,408 | 46 | 240 | 52.347826 | 0.747074 | 0.166944 | 0 | 0 | 0 | 0.193548 | 0.630075 | 0.011028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.290323 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ff40a306fd189013490ac1fc780f4e0767e39a | 156 | py | Python | exercícios/EX_CursoEmVideo/ex050.py | jose-carlos-code/CursoEmvideo-python | 8c9b82db2c2b906f6d8f2359a680b9b3af25da43 | [
"MIT"
] | 1 | 2021-01-11T15:10:36.000Z | 2021-01-11T15:10:36.000Z | exercícios/EX_CursoEmVideo/ex050.py | jose-carlos-code/CursoEmvideo-python | 8c9b82db2c2b906f6d8f2359a680b9b3af25da43 | [
"MIT"
] | null | null | null | exercícios/EX_CursoEmVideo/ex050.py | jose-carlos-code/CursoEmvideo-python | 8c9b82db2c2b906f6d8f2359a680b9b3af25da43 | [
"MIT"
] | null | null | null | s = 0
for c in range (1, 7):
n = int(input('me diga um numero: '))
if n%2 == 0:
s += n
print('a soma de todos os numeros pares é {}'.format(s)) | 26 | 56 | 0.538462 | 32 | 156 | 2.625 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.282051 | 156 | 6 | 56 | 26 | 0.705357 | 0 | 0 | 0 | 0 | 0 | 0.356688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0c6ca1935e0d818c78dc5c99ddf3e48bc4974a | 490 | py | Python | argo/collectAcrossDs_before.py | rist-ro/argo | a10c33346803239db8a64c104db7f22ec4e05bef | [
"MIT"
] | 4 | 2020-12-07T19:13:13.000Z | 2022-01-30T18:52:18.000Z | argo/collectAcrossDs_before.py | rist-ro/argo | a10c33346803239db8a64c104db7f22ec4e05bef | [
"MIT"
] | 12 | 2020-09-25T22:41:28.000Z | 2022-02-09T23:46:34.000Z | argo/collectAcrossDs_before.py | rist-ro/argo | a10c33346803239db8a64c104db7f22ec4e05bef | [
"MIT"
] | 2 | 2021-03-02T18:31:04.000Z | 2021-03-02T21:56:43.000Z | import sys
import argparse
from prediction.argo.core.utils.collect_across import collect_data_across_ds_before
parser = argparse.ArgumentParser(description='Collect curves for a single network across datasets', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('conf_file', help='The config f... | 35 | 155 | 0.822449 | 70 | 490 | 5.528571 | 0.614286 | 0.082687 | 0.087855 | 0.098191 | 0.129199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089796 | 490 | 13 | 156 | 37.692308 | 0.867713 | 0 | 0 | 0 | 0 | 0 | 0.236735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
5b0ce51730be52e30e226ece6070e2fb0027ed96 | 2,357 | py | Python | pictures/admin.py | NathanQ/flickr-gallery-django-site | 1e917acb6b8d7097b4be947d52de8521ea798089 | [
"MIT"
] | null | null | null | pictures/admin.py | NathanQ/flickr-gallery-django-site | 1e917acb6b8d7097b4be947d52de8521ea798089 | [
"MIT"
] | null | null | null | pictures/admin.py | NathanQ/flickr-gallery-django-site | 1e917acb6b8d7097b4be947d52de8521ea798089 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.conf import settings
from . models import Flickr_Account, Set
import flickr_api
class SetAdmin(admin.ModelAdmin):
class Meta:
model = Set
fields = '__all__'
def save_model(self, request, obj, form, change):
# '''
# the razzle dazz... | 34.661765 | 84 | 0.600764 | 308 | 2,357 | 4.49026 | 0.422078 | 0.039046 | 0.05423 | 0.028923 | 0.036153 | 0.036153 | 0 | 0 | 0 | 0 | 0 | 0.008745 | 0.320747 | 2,357 | 67 | 85 | 35.179104 | 0.855091 | 0.344081 | 0 | 0 | 0 | 0 | 0.038816 | 0.014474 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0d71522df6c2b10c8777d113e62e42c470a59d | 2,067 | py | Python | tests/test_multi_index.py | karanprime/minterpy | 75d8976b2ddcf79ebaa29b4cb80691ca02a6d180 | [
"MIT"
] | 13 | 2021-11-30T17:52:45.000Z | 2021-12-09T10:05:20.000Z | tests/test_multi_index.py | karanprime/minterpy | 75d8976b2ddcf79ebaa29b4cb80691ca02a6d180 | [
"MIT"
] | 2 | 2021-11-30T18:31:22.000Z | 2022-02-10T10:13:37.000Z | tests/test_multi_index.py | karanprime/minterpy | 75d8976b2ddcf79ebaa29b4cb80691ca02a6d180 | [
"MIT"
] | 6 | 2021-11-30T18:17:26.000Z | 2022-02-18T17:38:27.000Z | """
Test suite for multi_index.py
"""
import numpy as np
import pytest
from conftest import (
LpDegree,
PolyDegree,
SpatialDimension,
assert_call,
assert_multi_index_equal,
)
from numpy.testing import assert_, assert_equal, assert_raises
from minterpy import MultiIndexSet
from minterpy.core.utils i... | 32.809524 | 83 | 0.788582 | 238 | 2,067 | 6.529412 | 0.231092 | 0.07722 | 0.153153 | 0.066924 | 0.505792 | 0.43565 | 0.315315 | 0.181467 | 0.181467 | 0.181467 | 0 | 0.006159 | 0.135946 | 2,067 | 62 | 84 | 33.33871 | 0.863942 | 0.03193 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.404762 | 1 | 0.119048 | false | 0 | 0.142857 | 0 | 0.261905 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b1098001cbd244849bfd9c14f546e48f933e70b | 1,045 | py | Python | notes/migrations/0011_auto_20191018_2348.py | Amithnc/Diginotesm | 00b3fe37f8f69b4d2f841d7f1b84c2d6a6a723d2 | [
"bzip2-1.0.6"
] | null | null | null | notes/migrations/0011_auto_20191018_2348.py | Amithnc/Diginotesm | 00b3fe37f8f69b4d2f841d7f1b84c2d6a6a723d2 | [
"bzip2-1.0.6"
] | 3 | 2021-04-30T21:12:20.000Z | 2021-06-09T17:53:45.000Z | notes/migrations/0011_auto_20191018_2348.py | Amithnc/Diginotesmit | 00b3fe37f8f69b4d2f841d7f1b84c2d6a6a723d2 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-18 18:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0010_remove_note_uploaded_by'),
]
operations = [
migrations.AddField(
model_name='note',
name='branch_semid... | 30.735294 | 130 | 0.58756 | 113 | 1,045 | 5.265487 | 0.513274 | 0.060504 | 0.087395 | 0.114286 | 0.304202 | 0.304202 | 0 | 0 | 0 | 0 | 0 | 0.031081 | 0.291866 | 1,045 | 33 | 131 | 31.666667 | 0.772973 | 0.043062 | 0 | 0.407407 | 1 | 0 | 0.205411 | 0.028056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b1b776581ca41188bdedc3901f4628cb5749a72 | 1,047 | py | Python | base/base_model.py | dzuba29/Deeplom | 324f5e3ed913fd2fa263cdcac51924186a2c71a4 | [
"MIT"
] | 2 | 2018-12-02T20:32:48.000Z | 2019-03-18T12:11:18.000Z | base/base_model.py | dzuba29/Deeplom | 324f5e3ed913fd2fa263cdcac51924186a2c71a4 | [
"MIT"
] | null | null | null | base/base_model.py | dzuba29/Deeplom | 324f5e3ed913fd2fa263cdcac51924186a2c71a4 | [
"MIT"
] | 1 | 2019-04-02T21:28:54.000Z | 2019-04-02T21:28:54.000Z | class BaseModel:
def __init__(self, config):
self.config = config
self.model = None
def save(self, checkpoint_path):
if self.model is None:
raise Exception("You have to build the model first.")
print("Saving model...")
self.model.save_weights(checkpoint_path... | 34.9 | 106 | 0.666667 | 134 | 1,047 | 5.059701 | 0.313433 | 0.09292 | 0.076696 | 0.075221 | 0.50885 | 0.417404 | 0.345133 | 0.238938 | 0.238938 | 0.238938 | 0 | 0.004944 | 0.227316 | 1,047 | 29 | 107 | 36.103448 | 0.833127 | 0 | 0 | 0.181818 | 0 | 0 | 0.13276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.318182 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b1e203e75bebf74524b6af0326ae37b96fe8296 | 378 | py | Python | api/migrations/0009_floor_storey.py | w568w/backend | 25bdf6f890a6c59418d5a184e48bd87d697c4d23 | [
"Apache-2.0"
] | null | null | null | api/migrations/0009_floor_storey.py | w568w/backend | 25bdf6f890a6c59418d5a184e48bd87d697c4d23 | [
"Apache-2.0"
] | null | null | null | api/migrations/0009_floor_storey.py | w568w/backend | 25bdf6f890a6c59418d5a184e48bd87d697c4d23 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.14 on 2022-02-01 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0008_auto_20220123_1827'),
]
operations = [
migrations.AddField(
model_name='floor',
name='storey',
... | 21 | 49 | 0.592593 | 41 | 378 | 5.365854 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123134 | 0.291005 | 378 | 17 | 50 | 22.235294 | 0.697761 | 0.121693 | 0 | 0 | 1 | 0 | 0.112121 | 0.069697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b20df89b090b2415a00e85820524e1fc326ee42 | 1,644 | py | Python | application/models.py | bhavaniravi/book_logger | 8599bc900ccc944d7722eec882e8fc5afb1042c5 | [
"Apache-2.0"
] | 3 | 2021-07-24T06:32:18.000Z | 2021-09-07T02:55:26.000Z | application/models.py | bhavaniravi/book_logger | 8599bc900ccc944d7722eec882e8fc5afb1042c5 | [
"Apache-2.0"
] | null | null | null | application/models.py | bhavaniravi/book_logger | 8599bc900ccc944d7722eec882e8fc5afb1042c5 | [
"Apache-2.0"
] | null | null | null | from application.app import app, db
import datetime
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password = db.Column(db.String(120))
class Author(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = ... | 32.88 | 120 | 0.711679 | 245 | 1,644 | 4.673469 | 0.244898 | 0.132751 | 0.148472 | 0.133624 | 0.398253 | 0.341485 | 0.236681 | 0.236681 | 0.175546 | 0.139738 | 0 | 0.01339 | 0.136861 | 1,644 | 50 | 121 | 32.88 | 0.793517 | 0 | 0 | 0.117647 | 0 | 0 | 0.057751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.029412 | 0.058824 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d28670b1ee0dc62ad9048e6f06a01bc61ee19735 | 538 | py | Python | rmtt_tracker/scripts/controller.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | rmtt_tracker/scripts/controller.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | rmtt_tracker/scripts/controller.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import rospy
import std_msgs.msg
from geometry_msgs.msg import Twist
from sensor_msgs.msg import RegionOfInterest as ROI
import numpy as np
w = 640
h = 640
pid_w = [0.5, 0, 0] # pid parameters of yaw channel
pid_h = [0.8, 0, 0] # pid parameters of up channel
pid_f = [0.8, 0, 0] # pid parameters... | 23.391304 | 57 | 0.700743 | 91 | 538 | 3.956044 | 0.549451 | 0.058333 | 0.041667 | 0.125 | 0.152778 | 0.105556 | 0.105556 | 0 | 0 | 0 | 0 | 0.045455 | 0.182156 | 538 | 22 | 58 | 24.454545 | 0.772727 | 0.211896 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d2915483a6904a5f8a6ed223648e062b115b03de | 637 | py | Python | q2_types_genomics/feature_data/_format.py | misialq/q2-types-genomics | ece82ed928d997e23a02d225e80b067dc7292080 | [
"BSD-3-Clause"
] | null | null | null | q2_types_genomics/feature_data/_format.py | misialq/q2-types-genomics | ece82ed928d997e23a02d225e80b067dc7292080 | [
"BSD-3-Clause"
] | 8 | 2021-05-07T12:20:45.000Z | 2021-07-21T08:18:21.000Z | q2_types_genomics/feature_data/_format.py | misialq/q2-types-genomics | ece82ed928d997e23a02d225e80b067dc7292080 | [
"BSD-3-Clause"
] | 2 | 2021-05-07T12:26:01.000Z | 2021-05-19T14:08:09.000Z | # ----------------------------------------------------------------------------
# Copyright (c) 2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | 30.333333 | 78 | 0.585557 | 60 | 637 | 6.15 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015901 | 0.11146 | 637 | 20 | 79 | 31.85 | 0.636042 | 0.516484 | 0 | 0 | 0 | 0 | 0.133333 | 0.073333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
d2987fe871ab5098cd636786e5eb1672a4fca3e1 | 2,294 | py | Python | scripts/src_util/check_all.py | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 1 | 2021-03-21T10:43:16.000Z | 2021-03-21T10:43:16.000Z | scripts/src_util/check_all.py | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 1 | 2019-09-02T06:26:06.000Z | 2019-09-02T06:26:06.000Z | scripts/src_util/check_all.py | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# drawElements Quality Program utilities
# --------------------------------------
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | 35.84375 | 146 | 0.687881 | 275 | 2,294 | 5.654545 | 0.541818 | 0.038585 | 0.032797 | 0.036656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005056 | 0.137751 | 2,294 | 63 | 147 | 36.412698 | 0.781092 | 0.39102 | 0 | 0 | 0 | 0 | 0.180495 | 0.015284 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0 | false | 0.030303 | 0.272727 | 0 | 0.272727 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2990af46ea36fca13048e3ba55dcdb3ed9129d7 | 1,153 | py | Python | November/Week3/Range Sum of BST.py | vinaykumar7686/Leetcode-August_Challenge | fe1928d8b10a63d7aa561118a70eeaec2f3a2f36 | [
"MIT"
] | 1 | 2020-08-02T13:41:38.000Z | 2020-08-02T13:41:38.000Z | November/Week3/Range Sum of BST.py | vinaykumar7686/Leetcode-August_Challenge | fe1928d8b10a63d7aa561118a70eeaec2f3a2f36 | [
"MIT"
] | null | null | null | November/Week3/Range Sum of BST.py | vinaykumar7686/Leetcode-August_Challenge | fe1928d8b10a63d7aa561118a70eeaec2f3a2f36 | [
"MIT"
] | null | null | null | # Range Sum of BST
'''
Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high].
Example 1:
Input: root = [10,5,15,3,7,null,18], low = 7, high = 15
Output: 32
Example 2:
Input: root = [10,5,15,3,7,13,18,1,null,6], low = 6, high = 10
Output: 23
... | 25.065217 | 121 | 0.607112 | 185 | 1,153 | 3.762162 | 0.345946 | 0.060345 | 0.109195 | 0.034483 | 0.252874 | 0.221264 | 0.045977 | 0 | 0 | 0 | 0 | 0.059172 | 0.267129 | 1,153 | 45 | 122 | 25.622222 | 0.764497 | 0.554206 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d29de99a70b738ac6117b2e35c1ca8c04d83452d | 991 | py | Python | python/src/leetcode/2020/21.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | python/src/leetcode/2020/21.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | python/src/leetcode/2020/21.py | ccampo133/coding-challenges | 618b51d2d6f6946d3756c68b0008a178d80952ae | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def __str__(self):
if not self.next:
return str(self.val)
return f'{self.val}->{self.next}'
# TODO: This one took a while... come back and take another look
cl... | 23.595238 | 68 | 0.574168 | 132 | 991 | 4.189394 | 0.393939 | 0.037975 | 0.036166 | 0.083183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.31887 | 991 | 41 | 69 | 24.170732 | 0.739259 | 0.097881 | 0 | 0 | 0 | 0 | 0.034792 | 0.025814 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.09375 | false | 0 | 0 | 0 | 0.3125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29e7bab2fd200e7929cb37c42b69cb57b1d151e | 755 | py | Python | kludge/foo/fuzz.py | richardboydii/kludge | 464a6c392d2c929532941ff4323b7116a6979b7a | [
"MIT"
] | null | null | null | kludge/foo/fuzz.py | richardboydii/kludge | 464a6c392d2c929532941ff4323b7116a6979b7a | [
"MIT"
] | null | null | null | kludge/foo/fuzz.py | richardboydii/kludge | 464a6c392d2c929532941ff4323b7116a6979b7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This is a subcommand of the foo subcommand of the Kluge CLI. It demonstrates
how to create a subcommand in the parent group.
"""
import click
import fooutil
@click.command()
@click.argument("number")
def fuzz(number):
"""Given a NUMBER implements a Fizz Buzz test.... | 25.166667 | 79 | 0.651656 | 120 | 755 | 4.025 | 0.558333 | 0.066253 | 0.062112 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008666 | 0.235762 | 755 | 29 | 80 | 26.034483 | 0.828423 | 0.055629 | 0 | 0 | 0 | 0 | 0.177243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a6f6c276e07e9b18f2c52576f3a0911818d80f | 1,888 | py | Python | empg_erp/empg_integrations/connectors/employee_training_certification_connection.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | empg_erp/empg_integrations/connectors/employee_training_certification_connection.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | empg_erp/empg_integrations/connectors/employee_training_certification_connection.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.data_migration.doctype.data_migration_connector.connectors.base import BaseConnection
import mysql.connector as mariadb
class EmployeeTrainingCertificationConnection(BaseConnection):
def __init__(self, connector):
self.connector... | 26.591549 | 97 | 0.647246 | 208 | 1,888 | 5.701923 | 0.471154 | 0.054806 | 0.026981 | 0.030354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002853 | 0.257415 | 1,888 | 71 | 98 | 26.591549 | 0.843081 | 0 | 0 | 0.086207 | 0 | 0 | 0.335098 | 0.057702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.103448 | 0.086207 | 0 | 0.224138 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2afdb6da8c2b990393129fd2a8a6bdfcc341162 | 896 | py | Python | tests/utility.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | tests/utility.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | tests/utility.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Graviti. Licensed under MIT License.
#
"""Utility method for integration test."""
import uuid
from tensorbay.client.requests import PagingList
from tensorbay.client.struct import Draft
def get_random_dataset_name() -> str:
"""Get the random dataset name.
Returns:
... | 20.837209 | 76 | 0.66183 | 118 | 896 | 4.966102 | 0.474576 | 0.075085 | 0.087031 | 0.061433 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008902 | 0.247768 | 896 | 42 | 77 | 21.333333 | 0.860534 | 0.440848 | 0 | 0 | 0 | 0 | 0.147465 | 0.050691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2b0d22938d9fd02988d9e4bd03d35f824693f51 | 7,335 | py | Python | fast_test/E_int_F_int_K0_K1_v4 _os.py | renexdev/calculoVortices | a4b2c9f7924e5de92e3b94f61e1cda1f6107a031 | [
"MIT"
] | null | null | null | fast_test/E_int_F_int_K0_K1_v4 _os.py | renexdev/calculoVortices | a4b2c9f7924e5de92e3b94f61e1cda1f6107a031 | [
"MIT"
] | null | null | null | fast_test/E_int_F_int_K0_K1_v4 _os.py | renexdev/calculoVortices | a4b2c9f7924e5de92e3b94f61e1cda1f6107a031 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Rene Cejas Bolecek
reneczech@gmail.com / ncejas@cab.cnea.gov.ar
Low Temperatures Laboratory, Centro Atomico Bariloche
Instituto Balseiro, Universidad Nacional de Cuyo
Avenida Bustillo 9500, 8400 Bariloche, Rio Negro, Argentina
MIT License
"""
"Interaction Energy calculation v 4.0"
from vector_clas... | 36.311881 | 455 | 0.654669 | 1,394 | 7,335 | 3.248207 | 0.234577 | 0.035777 | 0.013251 | 0.015901 | 0.252871 | 0.215327 | 0.172482 | 0.137147 | 0.117491 | 0.113958 | 0 | 0.087708 | 0.11711 | 7,335 | 201 | 456 | 36.492537 | 0.611489 | 0.355283 | 0 | 0 | 0 | 0.02 | 0.184783 | 0.104249 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b22c617869c60cfebb6b69a0a4eec7d00aab68 | 460 | py | Python | search/remove_similarities_for_topics.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | search/remove_similarities_for_topics.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | search/remove_similarities_for_topics.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | import logging
from search.models import TaskServiceSimilarityScore
LOGGER = logging.getLogger('remove_similarities_for_topics')
def remove_similarities_for_topics(list_of_task_ids):
for topic_id in list_of_task_ids:
result = TaskServiceSimilarityScore.objects.filter(task_id=topic_id).delete()
nu... | 35.384615 | 85 | 0.767391 | 60 | 460 | 5.516667 | 0.533333 | 0.084592 | 0.126888 | 0.163142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005168 | 0.158696 | 460 | 12 | 86 | 38.333333 | 0.850129 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b28aa1fbff8812f068b553ba674be4c2e3e682 | 2,260 | py | Python | scripts/compute_size_spectra.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | scripts/compute_size_spectra.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | scripts/compute_size_spectra.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | from rois.models import Image, PlanktonCamera
from roistats.models import DailyHistograms
import datetime
import pytz
import numpy as np
import glob
import os
import sys
def run(*args):
print args
start_hour = datetime.datetime(
year=int(args[0].split('/')[2]),
month=int(args[0].split(... | 28.607595 | 67 | 0.614159 | 307 | 2,260 | 4.358306 | 0.332248 | 0.060538 | 0.044843 | 0.067265 | 0.155456 | 0.124066 | 0.124066 | 0.086697 | 0 | 0 | 0 | 0.052754 | 0.236726 | 2,260 | 78 | 68 | 28.974359 | 0.722899 | 0.080089 | 0 | 0 | 0 | 0 | 0.034816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.150943 | null | null | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b47adbafcfd5fe068bc8033afdccfdf4bd1323 | 251 | py | Python | proj04/proj04.py | RichardYoung5/savy | 6bb0e6404f19de8c39b4dbac5f2ce9d2d0863cd2 | [
"MIT"
] | null | null | null | proj04/proj04.py | RichardYoung5/savy | 6bb0e6404f19de8c39b4dbac5f2ce9d2d0863cd2 | [
"MIT"
] | null | null | null | proj04/proj04.py | RichardYoung5/savy | 6bb0e6404f19de8c39b4dbac5f2ce9d2d0863cd2 | [
"MIT"
] | null | null | null | # Name:Richard Young & Trey Owen
# Date: 12 July 2017
print "\nWelcome to PalindromePlus!"
fddddffd = raw_input("Press ENTER")
print ""
str = raw_input("Enter a word or phrase: ")
list1 = []
for letter in str:
list1.append(letter)
print list1
| 16.733333 | 43 | 0.697211 | 37 | 251 | 4.675676 | 0.756757 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.187251 | 251 | 14 | 44 | 17.928571 | 0.803922 | 0.195219 | 0 | 0 | 0 | 0 | 0.319797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b73c6dfe5bebe297c449130c1acfd880f9cb96 | 3,845 | py | Python | setup.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 25 | 2019-12-04T03:09:55.000Z | 2022-03-08T10:52:06.000Z | setup.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 29 | 2019-12-04T03:00:39.000Z | 2022-03-02T06:25:44.000Z | setup.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 33 | 2019-12-04T02:51:30.000Z | 2022-03-24T02:47:38.000Z | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 42.722222 | 182 | 0.772952 | 539 | 3,845 | 5.283859 | 0.350649 | 0.063202 | 0.037921 | 0.050562 | 0.22191 | 0.173806 | 0.123947 | 0.095857 | 0.062149 | 0.062149 | 0 | 0.012294 | 0.13264 | 3,845 | 89 | 183 | 43.202247 | 0.841679 | 0.005202 | 0 | 0 | 0 | 0.021277 | 0.318351 | 0.090722 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2bc8c0324c9935e8610cf35996e8824b4bc8cc0 | 10,352 | py | Python | cydia-repository-manager/ui/mwindow.py | gebeto/python | 09c00741d66a171740d15f61c6051bdde828a979 | [
"MIT"
] | 1 | 2021-12-07T01:10:21.000Z | 2021-12-07T01:10:21.000Z | cydia-repository-manager/ui/mwindow.py | gebeto/python | 09c00741d66a171740d15f61c6051bdde828a979 | [
"MIT"
] | null | null | null | cydia-repository-manager/ui/mwindow.py | gebeto/python | 09c00741d66a171740d15f61c6051bdde828a979 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mwindow.ui'
#
# Created: Sun Mar 05 22:07:45 2017
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(s... | 59.494253 | 137 | 0.736283 | 994 | 10,352 | 7.607646 | 0.176056 | 0.067442 | 0.059244 | 0.07141 | 0.293705 | 0.13105 | 0.042846 | 0.042846 | 0.042846 | 0.042846 | 0 | 0.019162 | 0.158134 | 10,352 | 173 | 138 | 59.83815 | 0.848537 | 0.021542 | 0 | 0 | 1 | 0 | 0.073814 | 0.004545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.00625 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2bdb7582fd21cc75af12929f8716826df1bb9e6 | 1,430 | py | Python | examples/mplot3d/pathpatch3d_demo.py | leejjoon/Matplotlib--JJ-s-dev | 77d7020f7333ec0a94fe3fb0cf51be40462f22f0 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2016-03-15T10:04:31.000Z | 2016-03-15T10:04:31.000Z | examples/mplot3d/pathpatch3d_demo.py | leejjoon/Matplotlib--JJ-s-dev | 77d7020f7333ec0a94fe3fb0cf51be40462f22f0 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | examples/mplot3d/pathpatch3d_demo.py | leejjoon/Matplotlib--JJ-s-dev | 77d7020f7333ec0a94fe3fb0cf51be40462f22f0 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib.patches import Circle, PathPatch
from mpl_toolkits.mplot3d import Axes3D
import mpl_toolkits.mplot3d.art3d as art3d
from matplotlib.text import TextPath
from matplotlib.transforms import Affine2D
def text3d(ax, (x, y, z), s, zdir="z", size=None, angle=0, usetex=False,
... | 26.981132 | 92 | 0.602098 | 247 | 1,430 | 3.408907 | 0.327935 | 0.047506 | 0.042755 | 0.042755 | 0.219715 | 0.172209 | 0.172209 | 0.106888 | 0.106888 | 0.106888 | 0 | 0.075586 | 0.195105 | 1,430 | 52 | 93 | 27.5 | 0.655951 | 0 | 0 | 0.105263 | 0 | 0.026316 | 0.088873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2c357c4414e93f48dc80257920e5c3c37aa58c9 | 2,321 | py | Python | remme/protos/transaction_pb2.py | gramya/DPKI-remme-core | d3ef3124ee1b33dec34766652622558c73b6c907 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | remme/protos/transaction_pb2.py | gramya/DPKI-remme-core | d3ef3124ee1b33dec34766652622558c73b6c907 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | remme/protos/transaction_pb2.py | gramya/DPKI-remme-core | d3ef3124ee1b33dec34766652622558c73b6c907 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: transaction.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _r... | 30.142857 | 164 | 0.757863 | 278 | 2,321 | 6.064748 | 0.392086 | 0.033215 | 0.053381 | 0.071174 | 0.208778 | 0.168446 | 0.168446 | 0.168446 | 0.123369 | 0.123369 | 0 | 0.030109 | 0.1271 | 2,321 | 76 | 165 | 30.539474 | 0.802073 | 0.09134 | 0 | 0.245614 | 1 | 0.017544 | 0.153115 | 0.089396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2c89e72a155a2be2f8b4b182bd28f55bdef0831 | 564 | py | Python | proxy/core/listener/__init__.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | proxy/core/listener/__init__.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | 8 | 2022-01-23T10:51:59.000Z | 2022-03-29T22:11:57.000Z | proxy/core/listener/__init__.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE... | 22.56 | 86 | 0.679078 | 57 | 564 | 6.701754 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011186 | 0.207447 | 564 | 24 | 87 | 23.5 | 0.836689 | 0.588652 | 0 | 0 | 0 | 0 | 0.244792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
d2cec2a9204ec7070b33a767c073e48848d97daa | 1,621 | py | Python | Organizations/migrations/0006_mygroup.py | Fowerus/drf-crm | be5420f1942886b685214c33537cf4b3759704a1 | [
"Apache-2.0"
] | 3 | 2021-09-20T09:21:46.000Z | 2021-09-21T08:51:14.000Z | Organizations/migrations/0006_mygroup.py | Fowerus/drf-crm | be5420f1942886b685214c33537cf4b3759704a1 | [
"Apache-2.0"
] | null | null | null | Organizations/migrations/0006_mygroup.py | Fowerus/drf-crm | be5420f1942886b685214c33537cf4b3759704a1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-21 14:16
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('Organizations', '0005_alter_mpr... | 43.810811 | 176 | 0.618754 | 161 | 1,621 | 6.031056 | 0.47205 | 0.056643 | 0.043254 | 0.067971 | 0.113285 | 0.113285 | 0.113285 | 0.113285 | 0.113285 | 0.113285 | 0 | 0.02119 | 0.24306 | 1,621 | 36 | 177 | 45.027778 | 0.770171 | 0.027761 | 0 | 0.066667 | 1 | 0 | 0.269377 | 0.090216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2d3020f069a7bc8e798ef7d9c98018760bc4b6e | 3,447 | py | Python | tests/distributed/test_levscores_n3.py | Pressio/pressio-hyperreduction | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | null | null | null | tests/distributed/test_levscores_n3.py | Pressio/pressio-hyperreduction | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | 19 | 2020-03-17T15:10:54.000Z | 2021-03-23T17:46:27.000Z | tests/distributed/test_levscores_n3.py | Pressio/pressio-tools | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | null | null | null |
import math
import numpy as np
import pathlib, sys
from pressiotools import linalg as ptla
from pressiotools.levscores import *
np.set_printoptions(linewidth=140,precision=14)
tol = 1e-14
def check_levscores(psi, comm):
rank = comm.Get_rank()
l_scores = ptla.Vector(myNumRows)
leverageScores(l_scores, psi.data... | 33.794118 | 77 | 0.501305 | 337 | 3,447 | 4.934718 | 0.335312 | 0.084185 | 0.048106 | 0.054119 | 0.269393 | 0.192423 | 0.179194 | 0.128082 | 0.046903 | 0.046903 | 0 | 0.290069 | 0.409922 | 3,447 | 101 | 78 | 34.128713 | 0.527532 | 0.021178 | 0 | 0.146341 | 0 | 0 | 0.006825 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.02439 | false | 0 | 0.073171 | 0 | 0.097561 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2d705cf21309d50f78d9bcb7cbc0ddf6afded61 | 897 | py | Python | setup.py | longapalooza/teepy | 5faf00a7136e11db95b37f80fddcfad6b1b7a054 | [
"MIT"
] | null | null | null | setup.py | longapalooza/teepy | 5faf00a7136e11db95b37f80fddcfad6b1b7a054 | [
"MIT"
] | null | null | null | setup.py | longapalooza/teepy | 5faf00a7136e11db95b37f80fddcfad6b1b7a054 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'teepy',
packages = ['teepy'],
version = '0.3.6',
license = 'MIT',
description = 'Tech Engineering Exam in Python',
long_description=open('README.rst').read(),
author = 'William Long',
author_email = 'admin@longapalooza.com',
url = 'https://github.com/lon... | 29.9 | 51 | 0.594203 | 88 | 897 | 6.011364 | 0.704545 | 0.10775 | 0.141777 | 0.147448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017493 | 0.235229 | 897 | 30 | 52 | 29.9 | 0.753644 | 0 | 0 | 0.066667 | 0 | 0 | 0.502227 | 0.024499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2deccb7f1d47a5ffb01bd772778422ccfe29649 | 929 | py | Python | app/models/survey_question.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | 2 | 2021-01-13T22:52:16.000Z | 2021-01-29T18:37:51.000Z | app/models/survey_question.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | 32 | 2021-01-08T19:05:33.000Z | 2021-04-07T22:01:54.000Z | app/models/survey_question.py | nappernick/envelope | af4f574c04c51293b90ee2e09d0f95d12ca36d2c | [
"MIT"
] | null | null | null | from .db import db
class SurveyQuestion(db.Model):
__tablename__ = "survey_questions"
id = db.Column(db.Integer, primary_key = True)
survey_id = db.Column(db.Integer, db.ForeignKey("surveys.id"), nullable = False)
question = db.Column(db.String(), nullable = False)
value = db.Column(db.String(), n... | 33.178571 | 84 | 0.620022 | 109 | 929 | 5.100917 | 0.366972 | 0.100719 | 0.125899 | 0.091727 | 0.172662 | 0.104317 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.244349 | 929 | 27 | 85 | 34.407407 | 0.787749 | 0 | 0 | 0 | 0 | 0 | 0.133477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0.045455 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2e1c6bee288107c54aee7bf4ce710842357d863 | 517 | py | Python | tv_shows/urls.py | wpiao/djangox-intro | 99f0c73124cc0bb287c73fe3899a43a985fea29b | [
"MIT"
] | null | null | null | tv_shows/urls.py | wpiao/djangox-intro | 99f0c73124cc0bb287c73fe3899a43a985fea29b | [
"MIT"
] | null | null | null | tv_shows/urls.py | wpiao/djangox-intro | 99f0c73124cc0bb287c73fe3899a43a985fea29b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import TvShowCreateView, TvShowDeleteView, TvShowDetailView, TvShowListView, TvShowUpdateView
urlpatterns = [
path('', TvShowListView.as_view(), name='tvshow_list'),
path('<int:pk>/', TvShowDetailView.as_view(), name='tvshow_detail'),
path('create/', TvShowCreateVie... | 47 | 105 | 0.729207 | 58 | 517 | 6.327586 | 0.396552 | 0.081744 | 0.13624 | 0.217984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10058 | 517 | 10 | 106 | 51.7 | 0.789247 | 0 | 0 | 0 | 0 | 0 | 0.2147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
d2e1d5b6578905c020216ea1d4def9ff9042503b | 1,939 | py | Python | tests/unit/services/tree/test_internal_branch_stats.py | yuzhenpeng/PhyKIT | 167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7 | [
"MIT"
] | 26 | 2020-10-28T10:33:33.000Z | 2022-02-04T14:59:22.000Z | tests/unit/services/tree/test_internal_branch_stats.py | yuzhenpeng/PhyKIT | 167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7 | [
"MIT"
] | 4 | 2021-03-28T22:05:39.000Z | 2022-03-22T00:33:01.000Z | tests/unit/services/tree/test_internal_branch_stats.py | JLSteenwyk/PhyKIT | 0b3194d1bb5c189993b256fe96011cce48b9bbb4 | [
"MIT"
] | 4 | 2020-11-06T11:58:25.000Z | 2021-08-17T16:57:51.000Z | import pytest
from argparse import Namespace
from Bio import Phylo
from math import isclose
from phykit.services.tree.internal_branch_stats import InternalBranchStats
@pytest.fixture
def args():
kwargs = dict(tree="/some/path/to/file.tre", verbose=None)
return Namespace(**kwargs)
class TestLBScore(object):... | 42.152174 | 87 | 0.70294 | 255 | 1,939 | 5.156863 | 0.32549 | 0.097338 | 0.127757 | 0.060837 | 0.196198 | 0.149049 | 0.149049 | 0 | 0 | 0 | 0 | 0.060415 | 0.180505 | 1,939 | 45 | 88 | 43.088889 | 0.767149 | 0 | 0 | 0.078947 | 0 | 0 | 0.110366 | 0.029912 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.105263 | false | 0 | 0.131579 | 0 | 0.289474 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2e770b5e779ebbe8a53081cfac5370778cffc1b | 318 | py | Python | Leetcode/1005. Maximize Sum Of Array After K Negations/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | null | null | null | Leetcode/1005. Maximize Sum Of Array After K Negations/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | null | null | null | Leetcode/1005. Maximize Sum Of Array After K Negations/solution2.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 1 | 2021-08-10T10:09:23.000Z | 2021-08-10T10:09:23.000Z | class Solution:
def largestSumAfterKNegations(self, A: List[int], K: int) -> int:
A, ncnt = sorted(A), sum([1 for a in A if a < 0])
cnt1, cnt2 = min(K, ncnt), K - ncnt if K > ncnt else 0
for i in range(cnt1): A[i] = -A[i]
return sum(A) - min(A) * 2 * (cnt2 % 2) if cnt2 else sum(A)
| 45.428571 | 69 | 0.544025 | 58 | 318 | 2.982759 | 0.431034 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.295597 | 318 | 6 | 70 | 53 | 0.727679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2e8457d64e93a4bfc1296ecba5f2a0f02770b84 | 453 | py | Python | MHFPython/scripts/ukf.py | enobayram/MHFlib | bfb978aee59ac1916b0a54ce881d4eb35311e763 | [
"BSD-2-Clause"
] | 1 | 2019-09-29T08:50:55.000Z | 2019-09-29T08:50:55.000Z | MHFPython/scripts/ukf.py | enobayram/MHFlib | bfb978aee59ac1916b0a54ce881d4eb35311e763 | [
"BSD-2-Clause"
] | null | null | null | MHFPython/scripts/ukf.py | enobayram/MHFlib | bfb978aee59ac1916b0a54ce881d4eb35311e763 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 11 14:34:48 2012
@author: eba
"""
import MHFPython
reload(MHFPython)
from MHFPython import *
mhd = MultiHypDist2()
mhd.GHlist.push_front(GaussianHypothesis2())
class pythonimp(transformations):
def statetrans(self, oldstate,noise,inp):
print 'called again'
... | 20.590909 | 46 | 0.695364 | 55 | 453 | 5.709091 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044737 | 0.161148 | 453 | 22 | 47 | 20.590909 | 0.781579 | 0.046358 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2e91f01c60b39e2664ca3282e78526b25d01ec4 | 3,518 | py | Python | tests/apitests/python/library/user.py | mytting/harbor-arm64 | 76b7463cf11ed367eb38539c948941d1354de129 | [
"MIT"
] | 5 | 2021-01-12T12:49:53.000Z | 2021-11-16T15:58:29.000Z | tests/apitests/python/library/user.py | mytting/harbor-arm64 | 76b7463cf11ed367eb38539c948941d1354de129 | [
"MIT"
] | 1 | 2021-09-20T22:32:44.000Z | 2021-09-21T09:59:42.000Z | tests/apitests/python/library/user.py | mytting/harbor-arm64 | 76b7463cf11ed367eb38539c948941d1354de129 | [
"MIT"
] | 2 | 2020-10-15T03:34:52.000Z | 2021-01-12T12:49:52.000Z | # -*- coding: utf-8 -*-
import base
import swagger_client
class User(base.Base):
def create_user(self, name=None,
email = None, user_password=None, realname = None, role_id = None, **kwargs):
if name is None:
name = base._random_name("user")
if realname is None:
... | 41.388235 | 133 | 0.649801 | 456 | 3,518 | 4.611842 | 0.144737 | 0.123633 | 0.049453 | 0.072278 | 0.449834 | 0.419876 | 0.328103 | 0.294817 | 0.278174 | 0.251545 | 0 | 0.013012 | 0.257248 | 3,518 | 84 | 134 | 41.880952 | 0.79181 | 0.005969 | 0 | 0.304348 | 0 | 0 | 0.019642 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 1 | 0.115942 | false | 0.130435 | 0.028986 | 0 | 0.275362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2e9c13c9c517fcff9e9b1725b76d63f785b2c7d | 1,500 | py | Python | mw_api_client/tests/test_wiki.py | saluk/mw-api-client | 11903db5af7c56a024bb4e698a26278358b84a7c | [
"MIT"
] | 10 | 2017-10-28T10:34:40.000Z | 2021-04-27T15:13:42.000Z | mw_api_client/tests/test_wiki.py | saluk/mw-api-client | 11903db5af7c56a024bb4e698a26278358b84a7c | [
"MIT"
] | 8 | 2018-08-28T12:44:30.000Z | 2020-07-20T13:19:19.000Z | mw_api_client/tests/test_wiki.py | saluk/mw-api-client | 11903db5af7c56a024bb4e698a26278358b84a7c | [
"MIT"
] | 4 | 2018-05-16T11:13:19.000Z | 2020-07-17T13:06:01.000Z | """Test various aspects of the Wiki."""
from sys import version_info
from unittest import TestCase
import mw_api_client as mw
if version_info[0] > 2:
basestring = str # pylint: disable=invalid-name
WP = mw.Wiki('https://en.wikipedia.org/w/api.php', 'Test suite')
class TestWiki(TestCase):
"""Test the Wiki clas... | 41.666667 | 79 | 0.660667 | 196 | 1,500 | 5.005102 | 0.387755 | 0.099898 | 0.085627 | 0.091743 | 0.146789 | 0.083588 | 0.083588 | 0.083588 | 0 | 0 | 0 | 0.008482 | 0.214 | 1,500 | 35 | 80 | 42.857143 | 0.823579 | 0.249333 | 0 | 0.08 | 0 | 0 | 0.054378 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.24 | false | 0 | 0.12 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2ebb64c407b30e5290657d8b5c9b1bcb6374ae5 | 2,034 | py | Python | lambdatool/cf_import_things.py | muckamuck/lambda-tool | 0b28c81d178aa61f6f264191c0cbeef894944f73 | [
"Apache-2.0"
] | 2 | 2018-03-06T23:42:23.000Z | 2019-08-13T03:39:48.000Z | lambdatool/cf_import_things.py | muckamuck/lambda-tool | 0b28c81d178aa61f6f264191c0cbeef894944f73 | [
"Apache-2.0"
] | 3 | 2018-07-18T17:31:21.000Z | 2018-07-24T02:50:30.000Z | lambdatool/cf_import_things.py | muckamuck/lambda-tool | 0b28c81d178aa61f6f264191c0cbeef894944f73 | [
"Apache-2.0"
] | 2 | 2018-07-21T17:50:49.000Z | 2018-11-27T21:15:17.000Z | '''
Stuff for the lambda role
'''
role_parameter_section = """ role:
Description: name of the role
Type: String"""
parameter_role_spec = 'Ref: role'
imported_role_spec = 'Fn::ImportValue: {}'
'''
Stuff for the subnet(s)
'''
subnets_parameter_section = """ subnetIds:
Description: list of subnets
Type:... | 23.37931 | 50 | 0.618977 | 201 | 2,034 | 6.134328 | 0.353234 | 0.056772 | 0.042174 | 0.068127 | 0.381184 | 0.381184 | 0.335766 | 0.335766 | 0.335766 | 0.335766 | 0 | 0.005416 | 0.273845 | 2,034 | 86 | 51 | 23.651163 | 0.829384 | 0.012291 | 0 | 0.422535 | 0 | 0 | 0.800104 | 0.012947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042254 | 0 | 0.042254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2ede0cf0f5c568fcc982f8e4461146dfc611a32 | 3,623 | py | Python | api/http/python/src/GstoreConnector.py | molamolaxxx/gStore | 0317606791dd867a305e4f6577289edee6d5f013 | [
"BSD-3-Clause"
] | 1 | 2019-01-25T00:36:12.000Z | 2019-01-25T00:36:12.000Z | api/http/python/src/GstoreConnector.py | molamolaxxx/gStore | 0317606791dd867a305e4f6577289edee6d5f013 | [
"BSD-3-Clause"
] | null | null | null | api/http/python/src/GstoreConnector.py | molamolaxxx/gStore | 0317606791dd867a305e4f6577289edee6d5f013 | [
"BSD-3-Clause"
] | null | null | null | """
# Filename: GStoreConnector.py
# Author: yangchaofan
# Last Modified: 2018-7-18 14:44
# Description: http api for python
"""
import requests
defaultServerIP = "127.0.0.1"
defaultServerPort = "3305"
class GstoreConnector:
def __init__(self, ip, port):
if (ip == "localhost"):
self.serverIP ... | 35.871287 | 164 | 0.554237 | 449 | 3,623 | 4.403118 | 0.262806 | 0.063733 | 0.050582 | 0.096105 | 0.517957 | 0.43045 | 0.349014 | 0.265048 | 0.236722 | 0.191199 | 0 | 0.025174 | 0.287331 | 3,623 | 100 | 165 | 36.23 | 0.740511 | 0.033122 | 0 | 0.333333 | 0 | 0 | 0.157654 | 0.060944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.153846 | 0.025641 | 0 | 0.423077 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2ef905af678ff567f621a99b8ece17ae118952c | 1,019 | py | Python | orchestra/migrations/0055_auto_20160429_0823.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 444 | 2016-07-25T05:24:30.000Z | 2022-02-21T08:12:29.000Z | orchestra/migrations/0055_auto_20160429_0823.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 395 | 2016-07-26T20:49:59.000Z | 2022-03-15T20:58:45.000Z | orchestra/migrations/0055_auto_20160429_0823.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 63 | 2016-07-26T04:10:21.000Z | 2022-03-29T03:32:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-29 08:23
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
('orchestra', '0053_worker_slack_user_id'... | 29.970588 | 115 | 0.627085 | 99 | 1,019 | 6.262626 | 0.616162 | 0.051613 | 0.045161 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029294 | 0.263003 | 1,019 | 33 | 116 | 30.878788 | 0.796272 | 0.083415 | 0 | 0.192308 | 1 | 0 | 0.219355 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f02aff581e31076a9998505dc344c0fdd8823e | 27,516 | py | Python | tests/test_helpers.py | LucienC/django-axes | 60e907dc93c6a98148969c7eea8ffb5438af4d31 | [
"MIT"
] | null | null | null | tests/test_helpers.py | LucienC/django-axes | 60e907dc93c6a98148969c7eea8ffb5438af4d31 | [
"MIT"
] | null | null | null | tests/test_helpers.py | LucienC/django-axes | 60e907dc93c6a98148969c7eea8ffb5438af4d31 | [
"MIT"
] | null | null | null | from datetime import timedelta
from hashlib import md5
from unittest.mock import patch
from django.contrib.auth import get_user_model
from django.http import JsonResponse, HttpResponseRedirect, HttpResponse, HttpRequest
from django.test import override_settings, RequestFactory
from axes.apps import AppConfig
from axe... | 37.538881 | 134 | 0.695086 | 3,275 | 27,516 | 5.474504 | 0.076947 | 0.043672 | 0.081432 | 0.007697 | 0.799041 | 0.737464 | 0.696637 | 0.648949 | 0.616822 | 0.59981 | 0 | 0.014983 | 0.197158 | 27,516 | 732 | 135 | 37.590164 | 0.796614 | 0.019988 | 0 | 0.490975 | 0 | 0.005415 | 0.109816 | 0.013401 | 0 | 0 | 0 | 0 | 0.151625 | 1 | 0.155235 | false | 0.018051 | 0.018051 | 0.01444 | 0.216607 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f0475c373f0c400d4613fe63c403f4170e0304 | 7,389 | py | Python | hackathon/MaZ/cluster/initiate_tracing_jobarray_updated.py | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/MaZ/cluster/initiate_tracing_jobarray_updated.py | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/MaZ/cluster/initiate_tracing_jobarray_updated.py | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #!/share/bin/python
# Filename: initiate_tracing_updated.py
from __future__ import division
import os
import glob
i=int(os.getenv('PBS_ARRAYID'))-1 # The first index of a list is zero
input_filenames=glob.glob('/data/mat/data_processing/input_data/*.v3dpbd')
mkdir_command='mkdir /data/mat/data_processing/'+str(i)
os.... | 45.89441 | 469 | 0.762485 | 1,213 | 7,389 | 4.390767 | 0.139324 | 0.184003 | 0.120916 | 0.087871 | 0.751971 | 0.703718 | 0.606647 | 0.559332 | 0.322569 | 0.245024 | 0 | 0.065797 | 0.097036 | 7,389 | 160 | 470 | 46.18125 | 0.732464 | 0.097577 | 0 | 0.3 | 0 | 0.009091 | 0.518563 | 0.120247 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027273 | 0 | 0.027273 | 0.263636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f0874a452bb381303c5f55aaf2e223d2044a0b | 266 | py | Python | algorithms/sem_prop/inputoutput/utils.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | algorithms/sem_prop/inputoutput/utils.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | algorithms/sem_prop/inputoutput/utils.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | from pickle import load, dump
def serialize_object(obj, path):
f = open(path, 'wb')
dump(obj, f)
f.close()
def deserialize_object(path):
f = open(path, 'rb')
obj = load(f)
return obj
if __name__ == "__main__":
print("Input output")
| 14.777778 | 32 | 0.609023 | 38 | 266 | 4 | 0.605263 | 0.065789 | 0.118421 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24812 | 266 | 17 | 33 | 15.647059 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f48a36e20b5366f6ec6e1a206ec68d11b7a86b | 928 | py | Python | src/database.py | tanrax/flask-note | e18ad814271268e1ba2a54825302dd944c50cd82 | [
"Apache-2.0"
] | 35 | 2016-10-05T13:49:14.000Z | 2020-03-29T21:27:34.000Z | src/database.py | tanrax/flask-note | e18ad814271268e1ba2a54825302dd944c50cd82 | [
"Apache-2.0"
] | 1 | 2016-10-07T22:09:58.000Z | 2016-10-07T22:09:58.000Z | src/database.py | tanrax/flask-note | e18ad814271268e1ba2a54825302dd944c50cd82 | [
"Apache-2.0"
] | 4 | 2016-10-07T13:28:11.000Z | 2018-08-26T00:25:47.000Z | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.sqlite'
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(100), unique=True)
password = db.Co... | 26.514286 | 67 | 0.659483 | 129 | 928 | 4.51938 | 0.271318 | 0.096055 | 0.120069 | 0.06175 | 0.269297 | 0.236707 | 0.236707 | 0.137221 | 0.137221 | 0.137221 | 0 | 0.010825 | 0.203664 | 928 | 34 | 68 | 27.294118 | 0.778078 | 0 | 0 | 0.16 | 0 | 0 | 0.081897 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.12 | 0.08 | 0.08 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f809cbbbb524295da10ca97699998d23c90fdf | 534 | py | Python | python/download_trained_model.py | linnostrom/DeepMVS | 4c15aa71296ffc030dcfca233df18203d8dc9137 | [
"BSD-2-Clause"
] | 301 | 2018-04-02T20:26:40.000Z | 2022-03-31T22:16:46.000Z | python/download_trained_model.py | linnostrom/DeepMVS | 4c15aa71296ffc030dcfca233df18203d8dc9137 | [
"BSD-2-Clause"
] | 24 | 2018-04-20T07:28:04.000Z | 2022-01-05T08:29:48.000Z | python/download_trained_model.py | linnostrom/DeepMVS | 4c15aa71296ffc030dcfca233df18203d8dc9137 | [
"BSD-2-Clause"
] | 85 | 2018-04-03T16:59:47.000Z | 2022-02-24T04:34:46.000Z | import os
import sys
import subprocess
def download_trained_model(path = None):
if path is None:
path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "model")
if not os.path.isdir(path):
os.mkdir(path)
print "Downloading trained model..."
subprocess.call(
"cd {:} ;".format(path) +
"wget -... | 25.428571 | 101 | 0.715356 | 75 | 534 | 4.853333 | 0.56 | 0.131868 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010823 | 0.134831 | 534 | 20 | 102 | 26.7 | 0.777056 | 0 | 0 | 0 | 0 | 0.058824 | 0.347092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f84a07d4ce347321196e10b04ae98bc433c1f4 | 546 | py | Python | web/_init_.py | hinczhang/FlightNetwork-backend | ca82f6106ef5fc189cb4bbb767f1053d12993b9b | [
"Apache-2.0"
] | 1 | 2020-11-03T09:05:03.000Z | 2020-11-03T09:05:03.000Z | web/_init_.py | hinczhang/FlightNetwork-backend | ca82f6106ef5fc189cb4bbb767f1053d12993b9b | [
"Apache-2.0"
] | null | null | null | web/_init_.py | hinczhang/FlightNetwork-backend | ca82f6106ef5fc189cb4bbb767f1053d12993b9b | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request, redirect, url_for
from flask_restful import Api
from flask_cors import CORS
from flask import Response
#start import block; free edit
from web.resource.sample import Sample
#end import block
app = Flask(__name__)
CORS(app, supports_credentials=True) # CORS handle
'''add api resource... | 23.73913 | 51 | 0.752747 | 84 | 546 | 4.77381 | 0.452381 | 0.089776 | 0.074813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124542 | 546 | 23 | 52 | 23.73913 | 0.838912 | 0.194139 | 0 | 0 | 0 | 0 | 0.074879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9608217bc18e92df51834028ccc38f3c93d009fa | 3,368 | py | Python | packages/syft/src/syft/core/node/common/metadata.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-09-14T10:56:43.000Z | 2021-09-14T10:56:43.000Z | packages/syft/src/syft/core/node/common/metadata.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 2 | 2021-04-02T10:12:44.000Z | 2021-04-02T10:12:50.000Z | packages/syft/src/syft/core/node/common/metadata.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-08-19T12:23:01.000Z | 2021-08-19T12:23:01.000Z | # stdlib
from typing import Optional
# third party
from google.protobuf.reflection import GeneratedProtocolMessageType
# relative
from .... import serialize
from ....proto.core.node.common.metadata_pb2 import Metadata as Metadata_PB
from ....util import validate_type
from ...common.serde.deserialize import _deseriali... | 34.020202 | 95 | 0.659442 | 411 | 3,368 | 5.321168 | 0.316302 | 0.025606 | 0.020576 | 0.024691 | 0.201189 | 0.141747 | 0.141747 | 0.110654 | 0.110654 | 0.110654 | 0 | 0.001229 | 0.275238 | 3,368 | 98 | 96 | 34.367347 | 0.894715 | 0.459323 | 0 | 0.044444 | 1 | 0 | 0.005079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.222222 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
960c34774561fbb73faf9b8fa1cf83b828cff8a4 | 3,190 | py | Python | foxylib/tools/env/lpasslines2envvars.py | foxytrixy-com/foxylib | 94b8c5b9f8b12423393c68f7d9f910258840ed18 | [
"BSD-3-Clause"
] | null | null | null | foxylib/tools/env/lpasslines2envvars.py | foxytrixy-com/foxylib | 94b8c5b9f8b12423393c68f7d9f910258840ed18 | [
"BSD-3-Clause"
] | null | null | null | foxylib/tools/env/lpasslines2envvars.py | foxytrixy-com/foxylib | 94b8c5b9f8b12423393c68f7d9f910258840ed18 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import logging
import os
import sys
from argparse import ArgumentParser
from pprint import pformat
import yaml
from future.utils import lfilter, lmap
from foxylib.tools.collections.collections_tool import lchain, DictTool
from foxylib.tools.env.env_tool import EnvTool
from foxylib.tools.env.yam... | 34.301075 | 98 | 0.698433 | 416 | 3,190 | 5.129808 | 0.307692 | 0.029991 | 0.052484 | 0.02671 | 0.118088 | 0.071228 | 0.071228 | 0 | 0 | 0 | 0 | 0.019817 | 0.177429 | 3,190 | 92 | 99 | 34.673913 | 0.793445 | 0.24326 | 0 | 0.042553 | 0 | 0 | 0.037192 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.06383 | false | 0.106383 | 0.297872 | 0 | 0.361702 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
960d94239ea9604d8daf4ca205b7cf6087f08cfc | 1,608 | py | Python | src/posts/api/serializers.py | arshpsingh/Blog-Api | 4f6c1f404050b8acaaa97c8f599de38c0554af08 | [
"MIT"
] | null | null | null | src/posts/api/serializers.py | arshpsingh/Blog-Api | 4f6c1f404050b8acaaa97c8f599de38c0554af08 | [
"MIT"
] | 5 | 2020-06-05T21:19:44.000Z | 2022-01-13T01:19:09.000Z | src/posts/api/serializers.py | arshpsingh/Blog-Api | 4f6c1f404050b8acaaa97c8f599de38c0554af08 | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer,HyperlinkedIdentityField,SerializerMethodField
from posts.models import Post
from comments.api.serializers import CommentSerializer
from comments.models import Comment
from accounts.api.serializers import UserDetailSerializer
class PostCreateUpdateSerializer(ModelS... | 32.816327 | 101 | 0.691542 | 167 | 1,608 | 6.520958 | 0.353293 | 0.046832 | 0.038567 | 0.049587 | 0.268136 | 0.20202 | 0.123049 | 0.123049 | 0.123049 | 0.123049 | 0 | 0 | 0.206468 | 1,608 | 49 | 102 | 32.816327 | 0.853448 | 0 | 0 | 0.272727 | 0 | 0 | 0.089497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0.022727 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9614e45799dd8ccd55a0882e15493cbb13a7d7e1 | 23,895 | py | Python | Lib/test/test_peg_parser.py | WinChua/cpython | fa098b6bc8662cceb944ad5a4a3e5eb63d3cb517 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2020-08-07T16:30:48.000Z | 2020-08-07T16:30:48.000Z | Lib/test/test_peg_parser.py | romasku/cpython | 08b47c367a08f571a986366aa33828d3951fa88d | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/test/test_peg_parser.py | romasku/cpython | 08b47c367a08f571a986366aa33828d3951fa88d | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | import ast
import _peg_parser as peg_parser
import unittest
from typing import Any, Union, Iterable, Tuple
from textwrap import dedent
from test import support
TEST_CASES = [
('annotated_assignment', 'x: int = 42'),
('annotated_assignment_with_tuple', 'x: tuple = 1, 2'),
('annotated_assignment_with_parens... | 30.018844 | 100 | 0.514292 | 2,957 | 23,895 | 3.907 | 0.113291 | 0.013503 | 0.004674 | 0.023371 | 0.4076 | 0.327967 | 0.253008 | 0.183416 | 0.159266 | 0.114602 | 0 | 0.016751 | 0.287968 | 23,895 | 795 | 101 | 30.056604 | 0.662278 | 0.004603 | 0 | 0.178571 | 0 | 0.003968 | 0.53238 | 0.145363 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.019841 | false | 0.055556 | 0.045635 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
961c024a498571186a4f9fb71b2fe27211b47e92 | 2,510 | py | Python | CVE-2021-24814/generator.py | ray0be/exploits | 8c3796743744670b4eb8cdc34db825fcb4950b69 | [
"MIT"
] | null | null | null | CVE-2021-24814/generator.py | ray0be/exploits | 8c3796743744670b4eb8cdc34db825fcb4950b69 | [
"MIT"
] | null | null | null | CVE-2021-24814/generator.py | ray0be/exploits | 8c3796743744670b4eb8cdc34db825fcb4950b69 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import requests
from urllib.parse import urlparse
print('This script generates a webpage used to exploit CVE-2021-24814')
print('')
def die(msg):
print('ERROR : ' + msg)
sys.exit()
# Get root URL of the WP
targetbaseurl = input('Please provide root URL of the target WP : '... | 31.772152 | 109 | 0.696016 | 357 | 2,510 | 4.862745 | 0.414566 | 0.038018 | 0.020737 | 0.013825 | 0.171659 | 0.134793 | 0.134793 | 0.042627 | 0.042627 | 0 | 0 | 0.025202 | 0.162151 | 2,510 | 78 | 110 | 32.179487 | 0.800285 | 0.078088 | 0 | 0.169811 | 1 | 0 | 0.475488 | 0.097614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.056604 | 0 | 0.075472 | 0.264151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
962453f696a38c8c8b97a383a98c9187ccc02ac7 | 2,739 | py | Python | src/seperates/loginUtils.py | lunAr-creator/Meta-Lipsis | 914d384c5728a98de82787276a997dc39067a97b | [
"MIT"
] | null | null | null | src/seperates/loginUtils.py | lunAr-creator/Meta-Lipsis | 914d384c5728a98de82787276a997dc39067a97b | [
"MIT"
] | null | null | null | src/seperates/loginUtils.py | lunAr-creator/Meta-Lipsis | 914d384c5728a98de82787276a997dc39067a97b | [
"MIT"
] | null | null | null | import getpass
import stdiomask
from miscUtils import *
from visualUtils import *
#Functions that deal with creation, authorisation and login process of the user
def get_existing_users():
if does_exist('accountfile.txt'):
with open('accountfile.txt', 'r') as fp:
for line in fp.readlines():
... | 28.237113 | 128 | 0.673969 | 369 | 2,739 | 4.883469 | 0.384824 | 0.062153 | 0.053274 | 0.043285 | 0.18535 | 0.163152 | 0.135405 | 0.107658 | 0 | 0 | 0 | 0.007326 | 0.202629 | 2,739 | 96 | 129 | 28.53125 | 0.817766 | 0.060606 | 0 | 0.185714 | 0 | 0.014286 | 0.281043 | 0.008174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.228571 | 0.057143 | 0 | 0.171429 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
824a82e5f01d667419ae460543939b9885318249 | 403 | py | Python | setup.py | wasperen/sonar-distance | 66bd8f93086042c879722596a59e4d55e13920c2 | [
"MIT"
] | null | null | null | setup.py | wasperen/sonar-distance | 66bd8f93086042c879722596a59e4d55e13920c2 | [
"MIT"
] | null | null | null | setup.py | wasperen/sonar-distance | 66bd8f93086042c879722596a59e4d55e13920c2 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='sonar_distance',
version='0.1',
packages=[''],
url='https://github.com/wasperen/sonar-distance',
license='MIT',
author='wasperen',
author_email='willem@van.asperen.org',
install_requires=[
'pigpio',
],
description='A python m... | 25.1875 | 107 | 0.66005 | 52 | 403 | 5.057692 | 0.807692 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.205955 | 403 | 15 | 108 | 26.866667 | 0.809375 | 0 | 0 | 0 | 0 | 0 | 0.46402 | 0.054591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
824f173f1db4b2badc501fe1a5d62c176503c8a9 | 1,801 | py | Python | torpy/documents/dir_key_certificate.py | 0x20bf-org/tor | 3b1443826d12d4956afd08a3febce0ce0dd087ef | [
"Apache-2.0"
] | null | null | null | torpy/documents/dir_key_certificate.py | 0x20bf-org/tor | 3b1443826d12d4956afd08a3febce0ce0dd087ef | [
"Apache-2.0"
] | null | null | null | torpy/documents/dir_key_certificate.py | 0x20bf-org/tor | 3b1443826d12d4956afd08a3febce0ce0dd087ef | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 James Brown
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.745455 | 88 | 0.724042 | 221 | 1,801 | 5.841629 | 0.524887 | 0.041828 | 0.020139 | 0.024787 | 0.07591 | 0.07591 | 0.034082 | 0 | 0 | 0 | 0 | 0.040513 | 0.177679 | 1,801 | 54 | 89 | 33.351852 | 0.831195 | 0.374792 | 0 | 0 | 0 | 0 | 0.209386 | 0.043321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0.043478 | 0.608696 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
82563d1bd2eebb3b9697f5800058a6c5a4730f21 | 1,429 | py | Python | alipay/aop/api/response/KoubeiMarketingToolPointsQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/KoubeiMarketingToolPointsQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/KoubeiMarketingToolPointsQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiMarketingToolPointsQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiMarketingToolPointsQueryResponse, self).__init__()
self._availab... | 31.065217 | 111 | 0.706088 | 153 | 1,429 | 6.267974 | 0.235294 | 0.140772 | 0.079249 | 0.062565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000891 | 0.214836 | 1,429 | 45 | 112 | 31.755556 | 0.853832 | 0.029391 | 0 | 0.088235 | 0 | 0 | 0.06065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.088235 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.