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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70a15ece76d021e4bcaab60eee4dadef525f0f9c | 687 | py | Python | modules/devenvironments-21/python/Sobres/Sobrial.py | pomaretta/PROG2021 | b88c95e1bf5c3375bcfe6c50edfd561cd203c4ff | [
"Apache-2.0"
] | null | null | null | modules/devenvironments-21/python/Sobres/Sobrial.py | pomaretta/PROG2021 | b88c95e1bf5c3375bcfe6c50edfd561cd203c4ff | [
"Apache-2.0"
] | null | null | null | modules/devenvironments-21/python/Sobres/Sobrial.py | pomaretta/PROG2021 | b88c95e1bf5c3375bcfe6c50edfd561cd203c4ff | [
"Apache-2.0"
] | 1 | 2022-02-03T09:02:22.000Z | 2022-02-03T09:02:22.000Z | """
Crea un sobre que contingui 5 cartes creades.
El programa ha de poder llistar les cartes contingudes
dins el sobre mitjannat un mètode anomenat
VeureCartesSobre() (per exemple veure el nom de la carta,
el tipus i la raresa).
"""
# AUTHOR CARLOS POMARES
# https://carlospomares.es
from Components.Carta import Ca... | 23.689655 | 63 | 0.724891 | 94 | 687 | 5.212766 | 0.638298 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016187 | 0.190684 | 687 | 29 | 64 | 23.689655 | 0.865108 | 0.464338 | 0 | 0 | 0 | 0 | 0.120787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.090909 | 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 |
70a27f620e6f81300d0c9018b9e58cc13b1e89b0 | 595 | py | Python | hasspad/main.py | kvchen/hasspad | e270c615acccbdf15237b4ecd6400659ec1ba843 | [
"MIT"
] | 2 | 2021-01-22T23:34:20.000Z | 2021-01-24T19:41:58.000Z | hasspad/main.py | kvchen/hasspad | e270c615acccbdf15237b4ecd6400659ec1ba843 | [
"MIT"
] | null | null | null | hasspad/main.py | kvchen/hasspad | e270c615acccbdf15237b4ecd6400659ec1ba843 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import asyncio
import logging
from typing import TextIO
import click
import yaml
from rich.logging import RichHandler
from hasspad.config import HasspadConfig
from hasspad.hasspad import Hasspad
logging.basicConfig(
level="INFO",
format="%(message)s",
datefmt="[%X]",
handlers=... | 20.517241 | 62 | 0.736134 | 74 | 595 | 5.837838 | 0.567568 | 0.050926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001934 | 0.131092 | 595 | 28 | 63 | 21.25 | 0.833656 | 0.035294 | 0 | 0 | 0 | 0 | 0.045375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.45 | 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 |
70a7f04a071613fd0e71762f8a5d2e86535c5bfa | 552 | py | Python | speid/processors.py | OsvaldoRino/speid | b4725bdee4abc019d4c2de4517f67a28f18c91ab | [
"MIT"
] | 22 | 2019-08-23T03:17:42.000Z | 2022-03-17T21:28:06.000Z | speid/processors.py | cuenca-mx/speid | 157a6f9a81e4f7a3a93765ebff940a01adf4c93a | [
"MIT"
] | 268 | 2018-09-24T15:13:10.000Z | 2022-03-30T17:06:39.000Z | speid/processors.py | OsvaldoRino/speid | b4725bdee4abc019d4c2de4517f67a28f18c91ab | [
"MIT"
] | 8 | 2019-09-22T03:41:11.000Z | 2022-01-24T22:16:51.000Z | import os
from stpmex import Client
STP_PRIVATE_LOCATION = os.environ['STP_PRIVATE_LOCATION']
STP_EMPRESA = os.environ['STP_EMPRESA']
STP_KEY_PASSPHRASE = os.environ['STP_KEY_PASSPHRASE']
STP_BASE_URL = os.getenv('STP_BASE_URL', None)
SPEID_ENV = os.getenv('SPEID_ENV', '')
# Configura el cliente STP
with open(STP_P... | 23 | 57 | 0.755435 | 83 | 552 | 4.650602 | 0.349398 | 0.134715 | 0.139896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 552 | 23 | 58 | 24 | 0.810924 | 0.043478 | 0 | 0 | 0 | 0 | 0.140684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 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 |
70a9d8345f4995a5f45d63b3d041e95d1befc530 | 523 | py | Python | todolist/dashboard/models.py | Joneyviana/todolist-django-angular | 06a1c023d7390305f62a9d6c9952a094626b4507 | [
"MIT"
] | null | null | null | todolist/dashboard/models.py | Joneyviana/todolist-django-angular | 06a1c023d7390305f62a9d6c9952a094626b4507 | [
"MIT"
] | null | null | null | todolist/dashboard/models.py | Joneyviana/todolist-django-angular | 06a1c023d7390305f62a9d6c9952a094626b4507 | [
"MIT"
] | null | null | null | from django.db import models
from ..users.models import User
# Create your models here.
class Plan(models.Model):
name = models.CharField(max_length=50)
user = models.ForeignKey(User, related_name='plans')
class Task(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(blank=True)... | 30.764706 | 70 | 0.770554 | 70 | 523 | 5.685714 | 0.428571 | 0.082915 | 0.075377 | 0.105528 | 0.20603 | 0.20603 | 0.20603 | 0.20603 | 0 | 0 | 0 | 0.008529 | 0.10325 | 523 | 16 | 71 | 32.6875 | 0.840085 | 0.045889 | 0 | 0.166667 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
56089184690e3655df5f0d42220d3aa2c4e35c77 | 4,199 | py | Python | yat-master/pymodule/yat/shell/ssh.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/yat/shell/ssh.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/yat/shell/ssh.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
"""
Copyright (c) 2021 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFT... | 29.570423 | 99 | 0.627292 | 525 | 4,199 | 4.881905 | 0.375238 | 0.030043 | 0.015607 | 0.026922 | 0.050722 | 0.035115 | 0.035115 | 0.035115 | 0.035115 | 0 | 0 | 0.008278 | 0.280781 | 4,199 | 141 | 100 | 29.780142 | 0.840397 | 0.350083 | 0 | 0.03125 | 0 | 0 | 0.003675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.078125 | 0.015625 | 0.359375 | 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 |
560f2020fc86f5173a35392daaf090b267f09d24 | 3,244 | py | Python | jenkins_perf_visualizer/fetch.py | Khan/jenkins-perf-visualizer | 9416c0951d96b92f0140828e70fd7e58d4d6395d | [
"MIT"
] | null | null | null | jenkins_perf_visualizer/fetch.py | Khan/jenkins-perf-visualizer | 9416c0951d96b92f0140828e70fd7e58d4d6395d | [
"MIT"
] | null | null | null | jenkins_perf_visualizer/fetch.py | Khan/jenkins-perf-visualizer | 9416c0951d96b92f0140828e70fd7e58d4d6395d | [
"MIT"
] | null | null | null | """Routines to fetch data from Jenkins and save it to a data file.
The output data file has all the information needed to make a
visualization graph, and can be given as input to the visualizer
script. It is mostly the html of the "pipeline steps" Jenkins page
for a build, with some additional metadata thrown in.
TO... | 36.449438 | 77 | 0.671702 | 475 | 3,244 | 4.381053 | 0.32 | 0.043729 | 0.048054 | 0.054781 | 0.213359 | 0.129745 | 0.129745 | 0.129745 | 0.040365 | 0 | 0 | 0.001596 | 0.227189 | 3,244 | 88 | 78 | 36.863636 | 0.82848 | 0.245376 | 0 | 0.071429 | 0 | 0 | 0.07051 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.089286 | false | 0 | 0.125 | 0 | 0.285714 | 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 |
56109e0f62528e40a8ea3500ace487f3d125a6dd | 8,770 | py | Python | adspygoogle/dfp/DfpWebService.py | hockeyprincess/google-api-dfp-python | efa82a8d85cbdc90f030db9d168790c55bd8b12a | [
"Apache-2.0"
] | null | null | null | adspygoogle/dfp/DfpWebService.py | hockeyprincess/google-api-dfp-python | efa82a8d85cbdc90f030db9d168790c55bd8b12a | [
"Apache-2.0"
] | null | null | null | adspygoogle/dfp/DfpWebService.py | hockeyprincess/google-api-dfp-python | efa82a8d85cbdc90f030db9d168790c55bd8b12a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2010 Google 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 required b... | 35.220884 | 80 | 0.619498 | 983 | 8,770 | 5.392675 | 0.275687 | 0.039615 | 0.03056 | 0.022637 | 0.207319 | 0.125637 | 0.103754 | 0.063762 | 0.063762 | 0.055461 | 0 | 0.003474 | 0.277993 | 8,770 | 248 | 81 | 35.362903 | 0.833702 | 0.112087 | 0 | 0.168919 | 0 | 0 | 0.125715 | 0.00747 | 0 | 0 | 0 | 0.004032 | 0 | 0 | null | null | 0.02027 | 0.101351 | 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 |
561ae9747cff6aeea6eb6f3bd320bd1917e966ac | 2,090 | py | Python | surrortg/inputs/input.py | SurrogateInc/surrortg-sdk | 20db8b8553485227fbfe9e49305b1b9315833a4b | [
"MIT"
] | 21 | 2020-11-03T23:41:56.000Z | 2022-03-21T04:11:46.000Z | surrortg/inputs/input.py | SurrogateInc/surrortg-sdk | 20db8b8553485227fbfe9e49305b1b9315833a4b | [
"MIT"
] | 5 | 2021-02-11T14:36:03.000Z | 2021-07-20T11:45:07.000Z | surrortg/inputs/input.py | SurrogateInc/surrortg-sdk | 20db8b8553485227fbfe9e49305b1b9315833a4b | [
"MIT"
] | 11 | 2020-11-13T11:14:33.000Z | 2022-03-21T04:11:51.000Z | from abc import ABC, abstractmethod
from .input_config import assert_on_screen_position, convert_enums_to_values
class Input(ABC):
"""Base class for all user inputs
Read more about defaults from input_config.py
"""
def __init__(self, defaults=None):
if defaults:
self.validate_de... | 27.866667 | 76 | 0.634928 | 241 | 2,090 | 5.377593 | 0.340249 | 0.055556 | 0.032407 | 0.041667 | 0.073302 | 0.073302 | 0.073302 | 0.050926 | 0 | 0 | 0 | 0 | 0.288995 | 2,090 | 74 | 77 | 28.243243 | 0.87214 | 0.162679 | 0 | 0.225806 | 0 | 0 | 0.111378 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.16129 | false | 0.096774 | 0.064516 | 0 | 0.322581 | 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 |
561c770519018843c8ce6d1a237e106ff2ca5f77 | 1,253 | py | Python | icebook/apps/users/forms.py | RohanJnr/IceBook-social_media-django- | c8a650c7e7961fe34ac749ea8763ac12727d2e2b | [
"MIT"
] | 19 | 2019-11-18T20:14:11.000Z | 2021-10-05T15:52:20.000Z | icebook/apps/users/forms.py | RohanJnr/IceBook-social_media-django- | c8a650c7e7961fe34ac749ea8763ac12727d2e2b | [
"MIT"
] | 22 | 2019-10-01T13:19:00.000Z | 2022-03-12T00:48:57.000Z | icebook/apps/users/forms.py | RohanJnr/IceBook-social_media-django- | c8a650c7e7961fe34ac749ea8763ac12727d2e2b | [
"MIT"
] | 16 | 2019-10-01T10:44:50.000Z | 2021-12-01T10:09:45.000Z | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser, Profile
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = CustomUser
fields = ("first_name", "last_name", ... | 30.560976 | 85 | 0.661612 | 127 | 1,253 | 6.472441 | 0.496063 | 0.036496 | 0.051095 | 0.051095 | 0.138686 | 0.138686 | 0.138686 | 0.138686 | 0.138686 | 0.138686 | 0 | 0.004103 | 0.221868 | 1,253 | 40 | 86 | 31.325 | 0.838974 | 0 | 0 | 0.233333 | 0 | 0 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.133333 | 0.133333 | 0 | 0.466667 | 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 |
561f16b1119154a0139ca446d45d23bee39d4591 | 2,803 | py | Python | flask1/flask1.py | fangxian/flask_exercise | 7973acc51d6444140976f6f6e1e63e77e8e3e07a | [
"MIT"
] | null | null | null | flask1/flask1.py | fangxian/flask_exercise | 7973acc51d6444140976f6f6e1e63e77e8e3e07a | [
"MIT"
] | null | null | null | flask1/flask1.py | fangxian/flask_exercise | 7973acc51d6444140976f6f6e1e63e77e8e3e07a | [
"MIT"
] | null | null | null | from flask import Flask, flash, render_template, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from forms import RegisterForm, LoginForm, EditArticleForm
from flask_login import login_user
from datetime import datetime
import pymysql
from flask_bootstrap import Bootstrap
app = Flask(__name__)
app.config['S... | 27.213592 | 89 | 0.642526 | 356 | 2,803 | 4.86236 | 0.303371 | 0.036973 | 0.046216 | 0.02773 | 0.309648 | 0.263432 | 0.22877 | 0.196418 | 0.15829 | 0.15829 | 0 | 0.007849 | 0.227257 | 2,803 | 102 | 90 | 27.480392 | 0.79132 | 0.006778 | 0 | 0.21519 | 0 | 0 | 0.117541 | 0.025162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0.063291 | 0.088608 | 0.050633 | 0.468354 | 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 |
5623bc181383de005f8ea3da2803b762d4bac467 | 6,485 | py | Python | test_project/forms.py | ebenh/django-flex-user | efffb21e4ce33d2ea8665756334e2a391f4b5a72 | [
"MIT"
] | 1 | 2021-09-13T20:26:02.000Z | 2021-09-13T20:26:02.000Z | test_project/forms.py | ebenh/django-flex-user | efffb21e4ce33d2ea8665756334e2a391f4b5a72 | [
"MIT"
] | null | null | null | test_project/forms.py | ebenh/django-flex-user | efffb21e4ce33d2ea8665756334e2a391f4b5a72 | [
"MIT"
] | null | null | null | from django import forms
from django.utils.text import capfirst
from django.contrib.auth import get_user_model, password_validation
from django.core.exceptions import ValidationError
from django_flex_user.models.otp import TimeoutError
UserModel = get_user_model()
class OTPTokensSearchForm(forms.Form):
user_ide... | 37.485549 | 117 | 0.661372 | 762 | 6,485 | 5.5 | 0.246719 | 0.036745 | 0.050107 | 0.038416 | 0.606061 | 0.597709 | 0.568838 | 0.548318 | 0.52398 | 0.52398 | 0 | 0.002061 | 0.251658 | 6,485 | 172 | 118 | 37.703488 | 0.861529 | 0.33909 | 0 | 0.514851 | 0 | 0 | 0.085392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108911 | false | 0.267327 | 0.049505 | 0 | 0.346535 | 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 |
5625eb4506ff092f215e51bf1b2ba0e4ebdd46b8 | 2,378 | py | Python | getwpuser.py | galletitaoreo/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | 5 | 2019-08-07T08:59:53.000Z | 2021-05-14T19:35:57.000Z | getwpuser.py | Harusenpai/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | null | null | null | getwpuser.py | Harusenpai/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | 2 | 2021-03-31T21:20:19.000Z | 2021-08-28T04:21:12.000Z | #coding=utf-8
import sys
import urllib
import httplib
import re
import urlparse
#import requests
count = 100
#httplib.HTTPConnection.debuglevel = 1
def savefile(text):
pass
def checktitle(target):
i = 1
for i in range(count):
url='http://' + target + '/?author=%s' % i
pattern='<ti... | 26.131868 | 107 | 0.479394 | 287 | 2,378 | 3.926829 | 0.369338 | 0.031056 | 0.021295 | 0.019521 | 0.113576 | 0.079858 | 0.042591 | 0.042591 | 0 | 0 | 0 | 0.033201 | 0.366695 | 2,378 | 90 | 108 | 26.422222 | 0.715139 | 0.109336 | 0 | 0.153846 | 0 | 0.015385 | 0.159145 | 0.014252 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030769 | 0.076923 | null | null | 0.215385 | 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 |
56264998e16d297d3abed0378e928d2a27f0c75b | 483 | py | Python | UVa 10424 love calculator/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10424 love calculator/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10424 love calculator/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | import sys
import re
sys.stdin = open('input.txt')
while True:
try:
s1 = raw_input().strip()
s2 = raw_input().strip()
except:
break
t1 = sum(ord(c) - ord('a') + 1 for c in re.findall('[a-z]', s1.lower()))
while t1 >= 10:
t1 = sum(int(c) for c in str(t1))
t2 = sum(ord... | 26.833333 | 76 | 0.498965 | 84 | 483 | 2.845238 | 0.416667 | 0.066946 | 0.100418 | 0.083682 | 0.376569 | 0.376569 | 0.376569 | 0.242678 | 0.242678 | 0.242678 | 0 | 0.073314 | 0.293996 | 483 | 17 | 77 | 28.411765 | 0.627566 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56275e0ed7a4ab8e014f6c78372a4156eca77a63 | 1,117 | py | Python | mobycity/news/models.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/news/models.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/news/models.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | #coding:utf-8
from django.db import models
from django.utils import timezone
from djangocms_text_ckeditor.fields import HTMLField
class News(models.Model):
creation_datetime = models.DateTimeField(default=timezone.now, verbose_name=u'Date de création')
update_datetime = models.DateTimeField(default=timezone.... | 44.68 | 106 | 0.749329 | 156 | 1,117 | 5.211538 | 0.416667 | 0.175892 | 0.177122 | 0.125461 | 0.435424 | 0.435424 | 0.376384 | 0.376384 | 0.232472 | 0.232472 | 0 | 0.016701 | 0.142346 | 1,117 | 25 | 107 | 44.68 | 0.831942 | 0.010743 | 0 | 0 | 0 | 0 | 0.119457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.888889 | 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 |
56286d22672f02a84af5ced23a3d1f03c4060e0f | 2,754 | py | Python | dj_generatortools/stubbs/default/views.py | weholt/django-generation-tools | a1193f1d39521dc9f03b24e409eeb2753c5a0b3a | [
"MIT"
] | null | null | null | dj_generatortools/stubbs/default/views.py | weholt/django-generation-tools | a1193f1d39521dc9f03b24e409eeb2753c5a0b3a | [
"MIT"
] | null | null | null | dj_generatortools/stubbs/default/views.py | weholt/django-generation-tools | a1193f1d39521dc9f03b24e409eeb2753c5a0b3a | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from d... | 40.5 | 108 | 0.710603 | 344 | 2,754 | 5.375 | 0.215116 | 0.11682 | 0.098432 | 0.126555 | 0.524067 | 0.524067 | 0.524067 | 0.515414 | 0.457004 | 0.321796 | 0 | 0.000849 | 0.144517 | 2,754 | 67 | 109 | 41.104478 | 0.783956 | 0.035948 | 0 | 0.294118 | 0 | 0 | 0.197815 | 0.170686 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.156863 | 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 |
5630addb69e9aecfb92bea9132a072cf2edb6f88 | 1,342 | py | Python | student_sys/student/migrations/0001_initial.py | timTianWSRF/student_management | 741fb2b3284bd0fbc09563054f4c18c14a08c44f | [
"MIT"
] | null | null | null | student_sys/student/migrations/0001_initial.py | timTianWSRF/student_management | 741fb2b3284bd0fbc09563054f4c18c14a08c44f | [
"MIT"
] | null | null | null | student_sys/student/migrations/0001_initial.py | timTianWSRF/student_management | 741fb2b3284bd0fbc09563054f4c18c14a08c44f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-22 13:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | 40.666667 | 145 | 0.57377 | 137 | 1,342 | 5.459854 | 0.49635 | 0.161765 | 0.096257 | 0.128342 | 0.203209 | 0.203209 | 0.203209 | 0 | 0 | 0 | 0 | 0.037487 | 0.264531 | 1,342 | 32 | 146 | 41.9375 | 0.720365 | 0.033532 | 0 | 0 | 1 | 0 | 0.146718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.04 | 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 |
56333c4b116efcbccb0caf6adabdc5eff682a004 | 2,360 | py | Python | api/api_endpoints/model/posts_system/posts_system_models.py | albcristi/TheHub | e0f555e4ab49a1ae9b369493930f3368d07e3a4a | [
"MIT"
] | null | null | null | api/api_endpoints/model/posts_system/posts_system_models.py | albcristi/TheHub | e0f555e4ab49a1ae9b369493930f3368d07e3a4a | [
"MIT"
] | 5 | 2021-04-08T19:38:41.000Z | 2022-03-12T00:47:35.000Z | api/api_endpoints/model/posts_system/posts_system_models.py | albcristi/TheHub | e0f555e4ab49a1ae9b369493930f3368d07e3a4a | [
"MIT"
] | null | null | null | from django.db import models
from ...models import AppUsers
class Posts(models.Model):
"""
A post is created by a user and
is used in order for a user to
share its thoughts and emotions
"""
post_id = models.AutoField(primary_key=True)
post_title = models.CharField(max_length=... | 24.583333 | 80 | 0.636441 | 289 | 2,360 | 4.989619 | 0.32872 | 0.048544 | 0.067961 | 0.101942 | 0.400139 | 0.394591 | 0.302358 | 0.272538 | 0.221221 | 0.221221 | 0 | 0.004086 | 0.274153 | 2,360 | 95 | 81 | 24.842105 | 0.837712 | 0.162712 | 0 | 0.413793 | 0 | 0 | 0.067318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0.068966 | 0.517241 | 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 |
56349bcc2d2744f98316c516b43e366bea4a4f3c | 32,527 | py | Python | dev/tools/pqrne/wanderlust.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/tools/pqrne/wanderlust.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/tools/pqrne/wanderlust.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | #!/usr/bin/env python
# Copyright (2012) Singapore-MIT Alliance for Research and Technology
import math
from PyQt4 import QtGui, QtCore
from paper import Tracing_paper
from digital_map import Lane_marking, Kerb_line, Road_section
from network import Lane_edge
from point import Point, nearest_point, re_arrange_co_lin... | 43.896086 | 104 | 0.586774 | 4,198 | 32,527 | 4.30586 | 0.085041 | 0.050896 | 0.025669 | 0.016929 | 0.564339 | 0.458343 | 0.380671 | 0.342056 | 0.317603 | 0.286457 | 0 | 0.018941 | 0.306914 | 32,527 | 740 | 105 | 43.955405 | 0.782869 | 0.100255 | 0 | 0.36014 | 0 | 0 | 0.025628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.003497 | 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 |
563eef57792575e33140ac445b64c29dcfcdbeca | 730 | py | Python | setup.py | margulies/brainsvg | 3d5ab27579380fb0be427d1a530f61988a8075a3 | [
"MIT"
] | null | null | null | setup.py | margulies/brainsvg | 3d5ab27579380fb0be427d1a530f61988a8075a3 | [
"MIT"
] | null | null | null | setup.py | margulies/brainsvg | 3d5ab27579380fb0be427d1a530f61988a8075a3 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='brainsvg',
version='0.0.1',
install_requires = ['numpy',
'gdist',
'nibabel',
'scipy',
'xml',
'pandas',
'mat... | 34.761905 | 87 | 0.446575 | 56 | 730 | 5.767857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.439726 | 730 | 20 | 88 | 36.5 | 0.782396 | 0 | 0 | 0 | 0 | 0 | 0.309589 | 0.035616 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
564223c3197ccb86d484cfec7a89925c6f02dd50 | 2,721 | py | Python | Script/PostProcessMain.py | hkujy/LinJuanJuan | 41860db7f7622d02fc07f1e1ff966b2004f5d8cb | [
"MIT"
] | null | null | null | Script/PostProcessMain.py | hkujy/LinJuanJuan | 41860db7f7622d02fc07f1e1ff966b2004f5d8cb | [
"MIT"
] | null | null | null | Script/PostProcessMain.py | hkujy/LinJuanJuan | 41860db7f7622d02fc07f1e1ff966b2004f5d8cb | [
"MIT"
] | null | null | null | """
main entry of post process results data and plot
"""
import PlotHeatMap
import PostProcessDataFuns as psf
import PlotOperatorConverge
import para
import PlotGantt
# root_folder = r"C:\Users\phdji\OneDrive - Danmarks Tekniske Universitet\JuanJuanLin\Tests2022/"
# root_folder = r'C:/GitCodes/Res/'
# root_folde... | 30.573034 | 106 | 0.746049 | 351 | 2,721 | 5.512821 | 0.376068 | 0.05168 | 0.034109 | 0.052713 | 0.25323 | 0.173643 | 0.106977 | 0.05478 | 0.05478 | 0.05478 | 0 | 0.013043 | 0.154723 | 2,721 | 88 | 107 | 30.920455 | 0.828261 | 0.551268 | 0 | 0 | 0 | 0 | 0.120493 | 0.048373 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.12 | false | 0.04 | 0.2 | 0 | 0.32 | 0.04 | 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 |
5645c99ed12da91e9eaa553a59283af5d3bcdd84 | 813 | py | Python | src/tests/test_bacon_with_eggs.py | lipegomes/rp-tdd-pytest | ea41247ce7edcc0378ae51a5f39c02b879a56b35 | [
"MIT"
] | null | null | null | src/tests/test_bacon_with_eggs.py | lipegomes/rp-tdd-pytest | ea41247ce7edcc0378ae51a5f39c02b879a56b35 | [
"MIT"
] | null | null | null | src/tests/test_bacon_with_eggs.py | lipegomes/rp-tdd-pytest | ea41247ce7edcc0378ae51a5f39c02b879a56b35 | [
"MIT"
] | null | null | null | """
TDD - Test Driven Development
"""
import unittest
from src.base.bacon_with_eggs import bacon_with_eggs
class TestBaconWithEggs(unittest.TestCase):
def test_bacon_with_eggs_assertion_error_do_not_receive_int(self):
with self.assertRaises(AssertionError):
bacon_with_eggs('')
def test_... | 27.1 | 96 | 0.638376 | 101 | 813 | 4.722772 | 0.524752 | 0.150943 | 0.218029 | 0.067086 | 0.083857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020339 | 0.274293 | 813 | 29 | 97 | 28.034483 | 0.788136 | 0.03567 | 0 | 0 | 0 | 0 | 0.078608 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
5649eec6fae97e2861a5e1b2726344ba8a4b9f8b | 531 | py | Python | urls.py | fightingfish008/tornado-extensions | 0e115aed6081b91e0309f8023a566bfd86530ac4 | [
"Apache-2.0"
] | 5 | 2020-03-23T08:30:12.000Z | 2020-04-14T06:19:32.000Z | urls.py | fightingfish008/tornado-extensions | 0e115aed6081b91e0309f8023a566bfd86530ac4 | [
"Apache-2.0"
] | 2 | 2020-03-23T14:53:19.000Z | 2020-03-23T14:53:19.000Z | urls.py | fightingfish008/tornado-extensions | 0e115aed6081b91e0309f8023a566bfd86530ac4 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from libs.handler import ErrorHandler
from libs.decorators import route
from handlers import extensionCheck, systemInfo, celerySendSms
handlers = []
# add xxxx handlers
handlers.extend(extensionCheck.handlers) # app 版本相关功能
handlers.extend(systemInfo.handlers) # 调用 注册中心的接口
handlers.extend(... | 26.55 | 65 | 0.755179 | 65 | 531 | 6.153846 | 0.569231 | 0.14 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.135593 | 531 | 19 | 66 | 27.947368 | 0.862745 | 0.367232 | 0 | 0 | 0 | 0 | 0 | 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 |
5651d7ab4feaa3d8fa86a0d972db3a2f22d8b133 | 3,642 | py | Python | gs/group/messages/post/text/postbody.py | groupserver/gs.group.messages.post.text | 22d93ef2abef52395297a69b726e56c2e1059351 | [
"ZPL-2.1"
] | null | null | null | gs/group/messages/post/text/postbody.py | groupserver/gs.group.messages.post.text | 22d93ef2abef52395297a69b726e56c2e1059351 | [
"ZPL-2.1"
] | null | null | null | gs/group/messages/post/text/postbody.py | groupserver/gs.group.messages.post.text | 22d93ef2abef52395297a69b726e56c2e1059351 | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
############################################################################
#
# Copyright © 2012, 2013, 2014, 2015 OnlineGroups.net and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should ... | 41.862069 | 95 | 0.701538 | 413 | 3,642 | 6.106538 | 0.467312 | 0.00793 | 0.050753 | 0.022998 | 0.034893 | 0.034893 | 0 | 0 | 0 | 0 | 0 | 0.009393 | 0.181494 | 3,642 | 86 | 96 | 42.348837 | 0.836297 | 0.356398 | 0 | 0 | 0 | 0 | 0.05127 | 0.018938 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.044444 | false | 0 | 0.155556 | 0 | 0.266667 | 0.022222 | 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 |
5652ce88887d08598b09ce169b925c9492693a12 | 3,119 | py | Python | supersqlite/third_party/_apsw/tools/docmissing.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 1,520 | 2018-03-01T13:37:49.000Z | 2022-03-25T11:40:20.000Z | supersqlite/third_party/_apsw/tools/docmissing.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 87 | 2018-03-03T15:12:50.000Z | 2022-02-21T15:24:12.000Z | supersqlite/third_party/_apsw/tools/docmissing.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 121 | 2018-03-03T08:40:53.000Z | 2022-03-16T05:19:38.000Z | # python
#
# See the accompanying LICENSE file.
#
# Find things that haven't been documented and should be or have been
# but don't exist.
import glob, sys
import apsw
retval=0
classes={}
for filename in glob.glob("doc/*.rst"):
for line in open(filename, "rtU"):
line=line.strip().split()
if le... | 33.537634 | 120 | 0.54697 | 382 | 3,119 | 4.418848 | 0.403141 | 0.010664 | 0.021327 | 0.017773 | 0.016588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009781 | 0.311638 | 3,119 | 92 | 121 | 33.902174 | 0.776432 | 0.144598 | 0 | 0.15625 | 0 | 0 | 0.183189 | 0.01847 | 0 | 0 | 0 | 0 | 0.046875 | 0 | null | null | 0 | 0.03125 | null | null | 0.046875 | 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 |
565669bb30d597039d0552865517f56bd9303491 | 202 | py | Python | 15059 Hard choice.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 15059 Hard choice.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | 15059 Hard choice.py | jangThang/Baekjoon-problem | f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f | [
"MIT"
] | null | null | null | # 입력
available = list(map(int, input().split()))
needs = list(map(int, input().split()))
# 수요 예측
res = 0 # 못 먹는 사람 수
for i, j in zip(available, needs):
if i-j < 0:
res += (j-i)
print(res)
| 18.363636 | 43 | 0.554455 | 37 | 202 | 3.027027 | 0.621622 | 0.125 | 0.178571 | 0.267857 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.242574 | 202 | 10 | 44 | 20.2 | 0.718954 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
565c2449fb56c4bf782286b51bea29c3a7d107fc | 1,176 | py | Python | src/system/settings/development.py | securedirective/django-site-template | f2b9bd5e658a0b83e3afe9e40fae50f1123010a2 | [
"MIT"
] | null | null | null | src/system/settings/development.py | securedirective/django-site-template | f2b9bd5e658a0b83e3afe9e40fae50f1123010a2 | [
"MIT"
] | null | null | null | src/system/settings/development.py | securedirective/django-site-template | f2b9bd5e658a0b83e3afe9e40fae50f1123010a2 | [
"MIT"
] | null | null | null | from .base import *
CONFIG_FILE_IN_USE = get_file_name_only(__file__) # Custom setting
# Debug mode will help troubleshoot errors
DEBUG = True
# Custom settings for dynamically-generated config files
PROJECT_NAME = PROJECT_NAME+'-development'
# Must have some key, so we'll just use bogus one
SECRET_KEY = '000000000... | 34.588235 | 142 | 0.761054 | 164 | 1,176 | 5.335366 | 0.621951 | 0.025143 | 0.050286 | 0.057143 | 0.192 | 0.153143 | 0.075429 | 0.075429 | 0 | 0 | 0 | 0.074146 | 0.128401 | 1,176 | 33 | 143 | 35.636364 | 0.779512 | 0.545068 | 0 | 0 | 1 | 0 | 0.379845 | 0.24031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 |
565cd4f6c08ab56524e3d906fd50585c0db1ad92 | 689 | py | Python | projects/migrations/0122_reportcolumn_custom_display_mapping.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | projects/migrations/0122_reportcolumn_custom_display_mapping.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | projects/migrations/0122_reportcolumn_custom_display_mapping.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2021-08-17 07:46
import django.contrib.postgres.fields.jsonb
import django.core.serializers.json
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0121_projectcardsectionattribute_show_on_mobile'),
]
operations... | 32.809524 | 235 | 0.718433 | 79 | 689 | 6.164557 | 0.683544 | 0.049281 | 0.086242 | 0.110883 | 0.131417 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035524 | 0.182874 | 689 | 20 | 236 | 34.45 | 0.829485 | 0.066763 | 0 | 0 | 1 | 0 | 0.232449 | 0.107644 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 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 |
565cf94803e0d9a0cc6949e6b16d28dcba14b333 | 510 | py | Python | src/app.py | andersonvmachado/PyCRUD | e002ea1fd33fdae4eeb4ea26e6190e5e259c7221 | [
"MIT"
] | null | null | null | src/app.py | andersonvmachado/PyCRUD | e002ea1fd33fdae4eeb4ea26e6190e5e259c7221 | [
"MIT"
] | null | null | null | src/app.py | andersonvmachado/PyCRUD | e002ea1fd33fdae4eeb4ea26e6190e5e259c7221 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from src.settings import URI_CONNECTION, PORT
from src.routes import init_resources
from src.models import *
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = URI_CONNECTION
app.config['SQLALCHEMY_TRACK_MODI... | 23.181818 | 54 | 0.786275 | 75 | 510 | 5.04 | 0.386667 | 0.071429 | 0.100529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.117647 | 510 | 21 | 55 | 24.285714 | 0.831111 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.103922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
565fa97203041c59b631307aad62b8d0373c65e3 | 364 | py | Python | utils/timer.py | anilpai/leetcode | 980af3442afeef459468b381ec3a5505a4275a2e | [
"MIT"
] | null | null | null | utils/timer.py | anilpai/leetcode | 980af3442afeef459468b381ec3a5505a4275a2e | [
"MIT"
] | null | null | null | utils/timer.py | anilpai/leetcode | 980af3442afeef459468b381ec3a5505a4275a2e | [
"MIT"
] | null | null | null | import time
def timing(given_function):
'''
Outputs the time a function takes to execute.
'''
def wrapper(*args, **kwargs):
t1 = time.time()
given_function(*args, **kwargs)
t2 = time.time()
return "Time it took to run the function : " + str(round(((t2-t1)*1000*1000), 2... | 24.266667 | 111 | 0.585165 | 48 | 364 | 4.395833 | 0.583333 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049242 | 0.274725 | 364 | 14 | 112 | 26 | 0.75 | 0.123626 | 0 | 0 | 0 | 0 | 0.171617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56603bb7028b0d4e33e42eb452bcd52a3c061ed6 | 9,935 | py | Python | tests/test_coor_trans.py | PrincetonUniversity/ASPIRE-Python | 1bff8d3884183203bd77695a76bccb1efc909fd3 | [
"MIT"
] | 7 | 2018-11-07T16:45:35.000Z | 2020-01-10T16:54:26.000Z | tests/test_coor_trans.py | PrincetonUniversity/ASPIRE-Python | 1bff8d3884183203bd77695a76bccb1efc909fd3 | [
"MIT"
] | 1 | 2019-04-05T18:41:39.000Z | 2019-04-05T18:41:39.000Z | tests/test_coor_trans.py | PrincetonUniversity/ASPIRE-Python | 1bff8d3884183203bd77695a76bccb1efc909fd3 | [
"MIT"
] | 2 | 2019-06-04T17:01:53.000Z | 2019-07-08T19:01:40.000Z | import os.path
from unittest import TestCase
import numpy as np
from aspire.utils import (
Rotation,
crop_pad_2d,
get_aligned_rotations,
grid_2d,
grid_3d,
register_rotations,
uniform_random_angles,
)
DATA_DIR = os.path.join(os.path.dirname(__file__), "saved_test_data")
class UtilsTestCa... | 37.919847 | 102 | 0.583795 | 1,491 | 9,935 | 3.784038 | 0.147552 | 0.017547 | 0.079404 | 0.031904 | 0.732719 | 0.710741 | 0.652428 | 0.598369 | 0.585962 | 0.505495 | 0 | 0.044539 | 0.290388 | 9,935 | 261 | 103 | 38.065134 | 0.755745 | 0.283342 | 0 | 0.42953 | 0 | 0 | 0.035364 | 0 | 0 | 0 | 0 | 0 | 0.208054 | 1 | 0.080537 | false | 0.013423 | 0.026846 | 0 | 0.114094 | 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 |
5666903c580668efbf36a7c9ce02bb0cf8965eef | 864 | py | Python | words.py | mkous/kouspy | fca64a0920c066c215435435fa0552e8bf4b6ccc | [
"MIT"
] | null | null | null | words.py | mkous/kouspy | fca64a0920c066c215435435fa0552e8bf4b6ccc | [
"MIT"
] | null | null | null | words.py | mkous/kouspy | fca64a0920c066c215435435fa0552e8bf4b6ccc | [
"MIT"
] | null | null | null | import sys
import re
help = 'usage: words.py "<your phrase>"'
if len(sys.argv) < 2:
print help
else:
sentence = sys.argv[1]
special_characters = ";!,?.:'1234567890"
words = []
def arghify(word):
first_letter = word[0]
last_letter = word[len(word)-1]
... | 23.351351 | 64 | 0.53125 | 101 | 864 | 4.386139 | 0.415842 | 0.063205 | 0.054176 | 0.054176 | 0.108352 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032727 | 0.363426 | 864 | 36 | 65 | 24 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.06401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 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 |
5668624fd15f753c050b81d254b4653d045676b9 | 421 | py | Python | code/plotaiff.py | parrt/data-acquisition | 31c10decc3fc137a21f0bea416388c6add7e69bc | [
"MIT"
] | 7 | 2017-04-12T23:07:52.000Z | 2022-01-27T21:03:30.000Z | code/plotaiff.py | parrt/data-acquisition | 31c10decc3fc137a21f0bea416388c6add7e69bc | [
"MIT"
] | null | null | null | code/plotaiff.py | parrt/data-acquisition | 31c10decc3fc137a21f0bea416388c6add7e69bc | [
"MIT"
] | 4 | 2017-03-18T23:13:53.000Z | 2017-06-01T05:36:16.000Z | import aifc
import numpy
import matplotlib.pyplot as plt
from array import *
import sys
if len(sys.argv)>1:
f = aifc.open(sys.argv[1])
else:
print "please provide a filename"
exit()
nsamples = f.getnframes()
params = f.getparams()
print params
shorts = f.readframes(nsamples)
signal = numpy.fromstring(shorts, numpy... | 16.84 | 57 | 0.729216 | 65 | 421 | 4.723077 | 0.6 | 0.045603 | 0.052117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.128266 | 421 | 24 | 58 | 17.541667 | 0.828338 | 0 | 0 | 0 | 0 | 0 | 0.092637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56725c793fce14893b9137472d58bda9680ac72e | 3,308 | py | Python | gtrends_scraper/spiders/gtrends_spider.py | ralphqq/trending_business_news_scraper | e86a7b6391ce580be3d88094acc137b92582df2b | [
"MIT"
] | 1 | 2016-07-15T16:12:58.000Z | 2016-07-15T16:12:58.000Z | gtrends_scraper/spiders/gtrends_spider.py | larpquire/trending_business_news_scraper | e86a7b6391ce580be3d88094acc137b92582df2b | [
"MIT"
] | null | null | null | gtrends_scraper/spiders/gtrends_spider.py | larpquire/trending_business_news_scraper | e86a7b6391ce580be3d88094acc137b92582df2b | [
"MIT"
] | 1 | 2017-06-07T20:04:45.000Z | 2017-06-07T20:04:45.000Z | # -*- coding: utf-8 -*-
# Google Trends (Business Stories) Spider
import datetime
import logging
import time
import scrapy
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC... | 35.191489 | 73 | 0.62757 | 383 | 3,308 | 5.190601 | 0.368146 | 0.035211 | 0.027163 | 0.025654 | 0.156942 | 0.100604 | 0.100604 | 0.045272 | 0.045272 | 0 | 0 | 0.002474 | 0.266929 | 3,308 | 93 | 74 | 35.569892 | 0.81732 | 0.035369 | 0 | 0.030769 | 0 | 0 | 0.110169 | 0.02354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.015385 | 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 |
56732b7c0549454df66f6bbc84a2b3bc8303463e | 5,562 | py | Python | stage/standard/test_pulsar_producer_destination.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | stage/standard/test_pulsar_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | stage/standard/test_pulsar_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2020 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.423729 | 177 | 0.734088 | 741 | 5,562 | 5.226721 | 0.326586 | 0.044152 | 0.073586 | 0.065066 | 0.308805 | 0.262845 | 0.244771 | 0.206558 | 0.154919 | 0.126517 | 0 | 0.003647 | 0.161812 | 5,562 | 176 | 178 | 31.602273 | 0.827113 | 0.124595 | 0 | 0.230769 | 0 | 0.008547 | 0.129431 | 0.011336 | 0 | 0 | 0 | 0 | 0.017094 | 1 | 0.111111 | false | 0.059829 | 0.068376 | 0 | 0.188034 | 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 |
567acf53f283e45d50c2a3f604a16adc3f9e9a08 | 871 | py | Python | smart_mpls/mpls_manager/migrations/0003_auto_20200729_1241.py | ib-sang/smartMPLS-with-djqngo | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | null | null | null | smart_mpls/mpls_manager/migrations/0003_auto_20200729_1241.py | ib-sang/smartMPLS-with-djqngo | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | 7 | 2020-08-02T22:50:43.000Z | 2021-12-13T20:49:45.000Z | smart_mpls/mpls_manager/migrations/0003_auto_20200729_1241.py | ib-sang/smartMPLS-with-django | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-07-29 11:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mpls_manager', '0002_auto_20200729_1220'),
]
operations = [
migrations.RemoveField(
model_name='device',
name='proto... | 31.107143 | 160 | 0.585534 | 90 | 871 | 5.522222 | 0.566667 | 0.080483 | 0.090543 | 0.114688 | 0.301811 | 0.301811 | 0 | 0 | 0 | 0 | 0 | 0.054517 | 0.262916 | 871 | 27 | 161 | 32.259259 | 0.719626 | 0.051665 | 0 | 0.380952 | 1 | 0 | 0.214806 | 0.027913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
567cb68180010e515b2bf4bc38f09d07693bb82f | 3,694 | py | Python | src/public/management/commands/init_data.py | mine-archived/dinner | 0b7e556994a6f8e91450377631f88694a97fdcf7 | [
"MIT"
] | null | null | null | src/public/management/commands/init_data.py | mine-archived/dinner | 0b7e556994a6f8e91450377631f88694a97fdcf7 | [
"MIT"
] | null | null | null | src/public/management/commands/init_data.py | mine-archived/dinner | 0b7e556994a6f8e91450377631f88694a97fdcf7 | [
"MIT"
] | null | null | null | # coding=utf-8
# Initial table
import datetime
import calendar
from django.core.management import BaseCommand
from django.conf import settings
from public.models import Calendar, User
from public.models import Org, Conf
from dinner.models import CalendarProvider
import subprocess
import csv
CURRENT_YEAR = datetime.d... | 27.362963 | 137 | 0.562534 | 465 | 3,694 | 4.337634 | 0.346237 | 0.031235 | 0.029747 | 0.044621 | 0.021815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02609 | 0.304819 | 3,694 | 135 | 138 | 27.362963 | 0.759346 | 0.07634 | 0 | 0.047059 | 0 | 0 | 0.054922 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | null | null | 0.035294 | 0.117647 | null | null | 0.023529 | 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 |
5688c39a99ee73324d056e8f8f890f388413552d | 10,995 | py | Python | WebServiceToolUI.py | BloodElf-X/WebServiceTestTool | 27dfd5271928f8291c640a6da15fbc69a8322d06 | [
"MIT"
] | null | null | null | WebServiceToolUI.py | BloodElf-X/WebServiceTestTool | 27dfd5271928f8291c640a6da15fbc69a8322d06 | [
"MIT"
] | null | null | null | WebServiceToolUI.py | BloodElf-X/WebServiceTestTool | 27dfd5271928f8291c640a6da15fbc69a8322d06 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'WebServiceToolUI.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 56.675258 | 152 | 0.723874 | 1,103 | 10,995 | 7.108794 | 0.183137 | 0.03826 | 0.004591 | 0.003571 | 0.253156 | 0.176125 | 0.106109 | 0.051524 | 0.03724 | 0.03724 | 0 | 0.027213 | 0.167804 | 10,995 | 193 | 153 | 56.968912 | 0.829727 | 0.044839 | 0 | 0.039548 | 1 | 0 | 0.065586 | 0.007054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011299 | false | 0 | 0.011299 | 0 | 0.028249 | 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 |
568ca7da113c32e84da7c0aaf17b8b7a273a1a71 | 3,302 | py | Python | app/atlas/squaremap.py | mikkohei13/havistin2 | 89831f33cc922294c9ebf28b27ed1af9b4837774 | [
"MIT"
] | null | null | null | app/atlas/squaremap.py | mikkohei13/havistin2 | 89831f33cc922294c9ebf28b27ed1af9b4837774 | [
"MIT"
] | null | null | null | app/atlas/squaremap.py | mikkohei13/havistin2 | 89831f33cc922294c9ebf28b27ed1af9b4837774 | [
"MIT"
] | null | null | null |
from dataclasses import replace
import atlas.common as common
import json
def observation_coordinates(square_id):
url = f"https://api.laji.fi/v0/warehouse/query/unit/list?selected=gathering.conversions.wgs84CenterPoint.lat%2Cgathering.conversions.wgs84CenterPoint.lon%2Cgathering.coordinatesVerbatim&pageSize=1000... | 38.395349 | 524 | 0.699273 | 399 | 3,302 | 5.62406 | 0.360902 | 0.049911 | 0.022282 | 0.026738 | 0.013369 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055817 | 0.164446 | 3,302 | 85 | 525 | 38.847059 | 0.757521 | 0.063598 | 0 | 0.038462 | 0 | 0.038462 | 0.354828 | 0.016202 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.076923 | false | 0 | 0.057692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
568d9fc6e0fdf87582e9b3cdaae105bd4759f658 | 154 | py | Python | Coursera/Week.5/Task.7.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | Coursera/Week.5/Task.7.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | Coursera/Week.5/Task.7.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | '''
Лесенка
'''
def ladder(n):
string = ''
for i in range(1, n + 1):
string += str(i)
print(string)
n = int(input())
ladder(n)
| 11 | 29 | 0.480519 | 22 | 154 | 3.363636 | 0.636364 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.324675 | 154 | 13 | 30 | 11.846154 | 0.692308 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 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 |
5691ec168b87f37d0cf8fcedbc376f68532bc293 | 596 | py | Python | setup.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | 2 | 2021-03-20T11:52:31.000Z | 2021-03-21T22:34:46.000Z | setup.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | null | null | null | setup.py | RullDeef/MarkovAlgorifms | 2f13c99bb0084651d019edb4994f1048e974b1ef | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="math-algorithm-models",
version="0.0.1",
author="Rull Deef",
author_email="deeroll666@gmail.com",
license="MIT",
description="simple algorithms executor",
long_description=open("README.md", "rt").read(),
long_description_content_type="text/markd... | 31.368421 | 70 | 0.691275 | 68 | 596 | 5.897059 | 0.794118 | 0.074813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01165 | 0.135906 | 596 | 18 | 71 | 33.111111 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0.365772 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
5692b40f22bc73d4949d26bbc555dc926a548961 | 4,380 | py | Python | chatbot/mech.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 8 | 2015-09-28T09:09:12.000Z | 2020-10-12T07:00:54.000Z | chatbot/mech.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 1 | 2021-06-09T06:06:40.000Z | 2021-06-09T06:06:40.000Z | chatbot/mech.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 2 | 2016-09-27T06:25:47.000Z | 2017-01-19T04:56:10.000Z | from cite import Book
from obj import God_Obj, Emo_Obj, Offtopic
import random
class Converser(object):
def __init__(self, triggers, objections, outputs, DEBUG):
"""
Unpack tuple of triggers into useful little tuples... eventually
Triggers in form:
- Greetings
- Agrees
- Disagrees
- Cite
outputs ... | 27.54717 | 93 | 0.660731 | 642 | 4,380 | 4.485981 | 0.277259 | 0.055556 | 0.083333 | 0.076736 | 0.292361 | 0.2375 | 0.20625 | 0.110764 | 0.069097 | 0.069097 | 0 | 0.000605 | 0.245434 | 4,380 | 158 | 94 | 27.721519 | 0.870802 | 0.032877 | 0 | 0.444444 | 0 | 0 | 0.214696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.282051 | 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 |
569b8ea0f98b2aa037b8e28427082d707aaa3c31 | 1,369 | py | Python | custom_components/ui_lovelace_minimalist/base.py | robbinonline/UI | 22462f63a096237c79e24180dd865625f086f0b2 | [
"Apache-2.0"
] | null | null | null | custom_components/ui_lovelace_minimalist/base.py | robbinonline/UI | 22462f63a096237c79e24180dd865625f086f0b2 | [
"Apache-2.0"
] | null | null | null | custom_components/ui_lovelace_minimalist/base.py | robbinonline/UI | 22462f63a096237c79e24180dd865625f086f0b2 | [
"Apache-2.0"
] | null | null | null | """Base UI Lovelace Minimalist class."""
from __future__ import annotations
from dataclasses import asdict, dataclass, field
from typing import Any
from .const import (
DEFAULT_INCLUDE_OTHER_CARDS,
DEFAULT_LANGUAGE,
DEFAULT_SIDEPANEL_ICON,
DEFAULT_SIDEPANEL_TITLE,
DEFAULT_THEME,
DEFAULT_THEME_... | 27.38 | 62 | 0.703433 | 161 | 1,369 | 5.714286 | 0.403727 | 0.054348 | 0.055435 | 0.052174 | 0.063043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208912 | 1,369 | 49 | 63 | 27.938776 | 0.849492 | 0.099343 | 0 | 0 | 0 | 0 | 0.033969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.151515 | 0 | 0.636364 | 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 |
569bb550ce8c68739af0e4256937d5cb503862c5 | 420 | py | Python | imageflow/migrations/0009_remove_imageanalysis_target_name.py | typpo/astrokit | f3c16f73ac842be26cdf20231ac5b915ab68e68f | [
"MIT"
] | 8 | 2016-01-23T11:06:10.000Z | 2021-06-27T01:38:19.000Z | imageflow/migrations/0009_remove_imageanalysis_target_name.py | typpo/astrokit | f3c16f73ac842be26cdf20231ac5b915ab68e68f | [
"MIT"
] | 119 | 2017-02-06T18:41:47.000Z | 2022-01-13T00:43:35.000Z | imageflow/migrations/0009_remove_imageanalysis_target_name.py | typpo/astrokit | f3c16f73ac842be26cdf20231ac5b915ab68e68f | [
"MIT"
] | 7 | 2016-07-19T15:49:17.000Z | 2020-10-03T05:53:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2018-03-16 05:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('imageflow', '0008_remove_reduction_image_companion'),
]
operations = [
migrations.Re... | 21 | 63 | 0.638095 | 45 | 420 | 5.711111 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063694 | 0.252381 | 420 | 19 | 64 | 22.105263 | 0.754777 | 0.159524 | 0 | 0 | 1 | 0 | 0.2 | 0.105714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
569ffe80f13f04ca8430ec150a802ac7a18e76b4 | 7,993 | py | Python | tests/test_shell.py | rbrich/pwlockr | 6af4b7816994f307acebb3d90fc75842c46f3739 | [
"MIT"
] | 1 | 2016-08-01T16:30:42.000Z | 2016-08-01T16:30:42.000Z | tests/test_shell.py | rbrich/keys | 6af4b7816994f307acebb3d90fc75842c46f3739 | [
"MIT"
] | null | null | null | tests/test_shell.py | rbrich/keys | 6af4b7816994f307acebb3d90fc75842c46f3739 | [
"MIT"
] | 1 | 2021-10-08T02:49:57.000Z | 2021-10-08T02:49:57.000Z | import shutil
import time
from pathlib import Path
from threading import Event
import pytest
from keybox.main import main as keybox_main
from keybox.ui import BaseUI
from keybox.shell import ShellUI, BaseInput
from .expect import Expect, ExpectCopy, Send, DelayedSend
config_filename = 'test_keybox.conf'
safe_filen... | 30.861004 | 85 | 0.562367 | 940 | 7,993 | 4.63617 | 0.187234 | 0.045893 | 0.030289 | 0.022028 | 0.564479 | 0.522946 | 0.444929 | 0.424966 | 0.424966 | 0.401331 | 0 | 0.01309 | 0.273614 | 7,993 | 258 | 86 | 30.98062 | 0.737513 | 0.039409 | 0 | 0.463054 | 0 | 0.009852 | 0.247877 | 0.035542 | 0 | 0 | 0 | 0 | 0.014778 | 1 | 0.073892 | false | 0.118227 | 0.044335 | 0.009852 | 0.133005 | 0.009852 | 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 |
56a2e05db1c1f3e2a650bf4da01cfc93437af666 | 6,420 | py | Python | pandatools/MiscUtils.py | junggjo9/panda-client | 7c263e76ce065ef122ef2df12cf6e9d6fe13de71 | [
"Apache-2.0"
] | null | null | null | pandatools/MiscUtils.py | junggjo9/panda-client | 7c263e76ce065ef122ef2df12cf6e9d6fe13de71 | [
"Apache-2.0"
] | null | null | null | pandatools/MiscUtils.py | junggjo9/panda-client | 7c263e76ce065ef122ef2df12cf6e9d6fe13de71 | [
"Apache-2.0"
] | null | null | null | import re
import json
import commands
SWLISTURL='https://atlpan.web.cern.ch/atlpan/swlist/'
# wrapper for uuidgen
def wrappedUuidGen():
# check if uuidgen is available
tmpSt,tmpOut = commands.getstatusoutput('which uuidgen')
if tmpSt == 0:
# use uuidgen
return commands.getoutput('uuidgen 2... | 31.165049 | 110 | 0.566667 | 678 | 6,420 | 5.353982 | 0.314159 | 0.011019 | 0.011019 | 0.018733 | 0.06281 | 0.06281 | 0.046281 | 0.046281 | 0.046281 | 0.046281 | 0 | 0.005549 | 0.326324 | 6,420 | 205 | 111 | 31.317073 | 0.833757 | 0.094393 | 0 | 0.162338 | 0 | 0 | 0.127314 | 0.003633 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006494 | 0.038961 | null | null | 0.012987 | 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 |
3b15ef9c57b17392e67e251375847af5914cac57 | 3,117 | py | Python | pixget/pixget.py | jkubaile/pixget | 1257cf25d13172b327cfdf8dde0b78698acb5ef5 | [
"MIT"
] | null | null | null | pixget/pixget.py | jkubaile/pixget | 1257cf25d13172b327cfdf8dde0b78698acb5ef5 | [
"MIT"
] | null | null | null | pixget/pixget.py | jkubaile/pixget | 1257cf25d13172b327cfdf8dde0b78698acb5ef5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from urlparse import urlparse
import validators
import requests
class PixGet(object):
def __init__(self, infile, output):
self.infile = infile
self.output = output
self.valid_lines = []
self.invalid_lines = []
self.filenames = {}
de... | 33.880435 | 74 | 0.546679 | 360 | 3,117 | 4.630556 | 0.313889 | 0.046191 | 0.033593 | 0.031194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005837 | 0.340391 | 3,117 | 91 | 75 | 34.252747 | 0.804961 | 0.036574 | 0 | 0.033333 | 0 | 0 | 0.081269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b1fa84461be68a2aebdef1c229dd520784dde86 | 1,629 | py | Python | colt/presets.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-11-07T12:06:54.000Z | 2021-11-07T12:06:54.000Z | colt/presets.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-11-07T13:34:16.000Z | 2021-11-07T13:34:16.000Z | colt/presets.py | xiki-tempula/colt | dbd6e7e329787c2b92dc7d69b89df8680f10b738 | [
"Apache-2.0"
] | 1 | 2021-10-31T10:39:37.000Z | 2021-10-31T10:39:37.000Z | from .generator import Generator
from .slottedcls import slottedcls
Preset = slottedcls("Preset", {"default": None, "choices": None})
class PresetGenerator(Generator):
"""Generate Presets automatically"""
leafnode_type = Preset
def __init__(self, questions):
Generator.__init__(self, questions)... | 24.313433 | 67 | 0.545734 | 166 | 1,629 | 5.222892 | 0.415663 | 0.017301 | 0.039216 | 0.036909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.362799 | 1,629 | 66 | 68 | 24.681818 | 0.83526 | 0.236341 | 0 | 0.0625 | 1 | 0 | 0.018034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b21175bd905aa8dc0215959c9ec6d374f96bdab | 750 | py | Python | ActionController.py | Lilly7777/GRobot---Server | d6261b72215ba0cdc281387c23427b04b2a9311d | [
"MIT"
] | null | null | null | ActionController.py | Lilly7777/GRobot---Server | d6261b72215ba0cdc281387c23427b04b2a9311d | [
"MIT"
] | null | null | null | ActionController.py | Lilly7777/GRobot---Server | d6261b72215ba0cdc281387c23427b04b2a9311d | [
"MIT"
] | null | null | null | import requests
class ActionController:
def __init__(self):
pass
def take_action(self, objects, left_border, right_border):
if len(objects) < 0:
return
for (x,y,w,h) in objects:
x_pos = x + (w)/2
y_pos = y + (h)/2
... | 21.428571 | 62 | 0.5 | 91 | 750 | 3.879121 | 0.395604 | 0.101983 | 0.090652 | 0.113314 | 0.135977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006682 | 0.401333 | 750 | 35 | 63 | 21.428571 | 0.77951 | 0 | 0 | 0 | 0 | 0 | 0.047936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.041667 | 0.041667 | 0 | 0.375 | 0.166667 | 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 |
3b22d5236cfc91f10ffaf0934c99f3baaf4edbb1 | 983 | py | Python | chimu/v1/app.py | chaosmac1/chimu-api | 786c966f6d81591a856878131589be47dc6eb3a3 | [
"MIT"
] | 2 | 2021-02-06T19:20:42.000Z | 2021-07-22T00:25:47.000Z | chimu/v1/app.py | chaosmac1/chimu-api | 786c966f6d81591a856878131589be47dc6eb3a3 | [
"MIT"
] | 3 | 2021-02-07T14:39:00.000Z | 2021-02-21T11:44:46.000Z | chimu/v1/app.py | chaosmac1/chimu-api | 786c966f6d81591a856878131589be47dc6eb3a3 | [
"MIT"
] | 3 | 2021-04-03T10:13:27.000Z | 2022-02-14T05:33:20.000Z | from chimu.v1.routes.search import search
from chimu.shared.utils.meili import InitializeMeili
from chimu.shared.utils.mysql import InitializeMySQL
from chimu.shared.utils.datadog import InitializeDatadog
from chimu.v1.routes.get_set import get_set
from chimu.v1.routes.get_map import get_map
from chimu.shared.uti... | 30.71875 | 57 | 0.755849 | 129 | 983 | 5.658915 | 0.294574 | 0.09863 | 0.060274 | 0.093151 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009412 | 0.1353 | 983 | 31 | 58 | 31.709677 | 0.849412 | 0 | 0 | 0 | 0 | 0 | 0.094538 | 0.026261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3b2b007d1c377c840cb73859ba5e23178968fbc6 | 8,872 | py | Python | NGram/prediction_2104/user_exploration.py | mbc96325/IOHMM-for-individual-mobility-prediction | b2d346a12b902581641a0afa8e694ee8ef158195 | [
"MIT"
] | 1 | 2021-09-02T14:16:14.000Z | 2021-09-02T14:16:14.000Z | NGram/prediction_2104/user_exploration.py | mbc96325/IOHMM-for-individual-mobility-prediction | b2d346a12b902581641a0afa8e694ee8ef158195 | [
"MIT"
] | null | null | null | NGram/prediction_2104/user_exploration.py | mbc96325/IOHMM-for-individual-mobility-prediction | b2d346a12b902581641a0afa8e694ee8ef158195 | [
"MIT"
] | 1 | 2021-09-20T02:59:47.000Z | 2021-09-20T02:59:47.000Z | import math
import numpy as np
import oyster_reader as oyster
from matplotlib import pyplot as plt
import matplotlib.colors as cl
# import seaborn as sns
def plotInterTripTime(users):
count = 0
dtFreq = np.zeros(60 * 20)
for u in users:
interTripTime = u.getInterTripTime()
for dt in interTripTime:
dtFreq[dt... | 26.171091 | 77 | 0.647317 | 1,344 | 8,872 | 4.25744 | 0.193452 | 0.020447 | 0.011534 | 0.019224 | 0.457707 | 0.410696 | 0.327333 | 0.291506 | 0.282768 | 0.261098 | 0 | 0.040886 | 0.170198 | 8,872 | 338 | 78 | 26.248521 | 0.736349 | 0.028066 | 0 | 0.414894 | 0 | 0 | 0.097074 | 0.011844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017731 | null | null | 0.010638 | 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 |
3b39435fb9c3013e5825270bcfca7c9e413b8ce0 | 616 | py | Python | Myblog/config/migrations/0002_auto_20180418_2143.py | Family-TreeSY/MyBlog | 52e74f18d37abc6e937d7cb5c752bc9dfd6ed662 | [
"MIT"
] | 5 | 2018-04-17T10:32:24.000Z | 2019-09-25T14:00:19.000Z | Myblog/config/migrations/0002_auto_20180418_2143.py | Family-TreeSY/MyBlog | 52e74f18d37abc6e937d7cb5c752bc9dfd6ed662 | [
"MIT"
] | 7 | 2020-06-05T18:15:00.000Z | 2022-03-11T23:20:33.000Z | Myblog/config/migrations/0002_auto_20180418_2143.py | Family-TreeSY/MyBlog | 52e74f18d37abc6e937d7cb5c752bc9dfd6ed662 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-04-18 13:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('config', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 29.333333 | 220 | 0.628247 | 72 | 616 | 5.25 | 0.777778 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145791 | 0.209416 | 616 | 20 | 221 | 30.8 | 0.63039 | 0.11039 | 0 | 0 | 1 | 0 | 0.251376 | 0.176147 | 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 |
3b3ee614dd9784e1119e1fdc28d4c2e766177093 | 706 | py | Python | 12_funciones_listas_ej.py | jrg-sln/basic_python | a7f5a1731b0f53420487fc8da11d834e7327c9f6 | [
"MIT"
] | null | null | null | 12_funciones_listas_ej.py | jrg-sln/basic_python | a7f5a1731b0f53420487fc8da11d834e7327c9f6 | [
"MIT"
] | null | null | null | 12_funciones_listas_ej.py | jrg-sln/basic_python | a7f5a1731b0f53420487fc8da11d834e7327c9f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##############Ejercicio sobre funciones con listas#######################
'''Ahora que ya sabe manejar las funciones de las listas hacer un programa
que simule el registro de alumnos en una lista y al final la imprima en
forma descendente'''
def alta(c, a):
c.append(a)
return c
de... | 22.774194 | 78 | 0.601983 | 104 | 706 | 4.009615 | 0.605769 | 0.033573 | 0.047962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001838 | 0.229462 | 706 | 30 | 79 | 23.533333 | 0.764706 | 0.080737 | 0 | 0.117647 | 0 | 0 | 0.253394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.176471 | 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 |
3b4200100e768deec9e2c86faf373320e7a632f4 | 2,238 | py | Python | pangea/core/views/__init__.py | LongTailBio/pangea-django | 630551dded7f9e38f95eda8c36039e0de46961e7 | [
"MIT"
] | null | null | null | pangea/core/views/__init__.py | LongTailBio/pangea-django | 630551dded7f9e38f95eda8c36039e0de46961e7 | [
"MIT"
] | 27 | 2020-03-26T02:55:12.000Z | 2022-03-12T00:55:04.000Z | pangea/core/views/__init__.py | LongTailBio/pangea-django | 630551dded7f9e38f95eda8c36039e0de46961e7 | [
"MIT"
] | 1 | 2021-09-14T08:15:54.000Z | 2021-09-14T08:15:54.000Z | from .s3_views import (
S3ApiKeyCreateView,
S3ApiKeyDetailsView,
S3BucketCreateView,
S3BucketDetailsView,
)
from .user_views import (
PangeaUserListView,
PangeaUserDetailsView,
get_user_detail_by_djoser_id,
get_current_user_detail,
)
from .organization_views import (
OrganizationCrea... | 27.975 | 55 | 0.802055 | 173 | 2,238 | 9.890173 | 0.479769 | 0.057861 | 0.017534 | 0.028054 | 0.068966 | 0.030392 | 0 | 0 | 0 | 0 | 0 | 0.002654 | 0.158177 | 2,238 | 80 | 56 | 27.975 | 0.90552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1125 | 0 | 0.1125 | 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 |
3b44e58adcbac59b29c6fc21077bee3fa768a8c1 | 2,307 | py | Python | sound_stuff.py | VarunBabbar/Stroodle | 69ccac58d6fe66ca605e5bec7a570a548ba6086a | [
"MIT-0"
] | null | null | null | sound_stuff.py | VarunBabbar/Stroodle | 69ccac58d6fe66ca605e5bec7a570a548ba6086a | [
"MIT-0"
] | null | null | null | sound_stuff.py | VarunBabbar/Stroodle | 69ccac58d6fe66ca605e5bec7a570a548ba6086a | [
"MIT-0"
] | null | null | null | from nltk.stem import PorterStemmer
#from nltk.tokenize import sent_tokenize, word_tokenize
# TODO: Word2Vec
# Names
names = ["John", "Donald"]
# colours
colours = ["red", "blue", "green", "yellow", "orange", "pink", "purple"]
# key story phrases
story_phrases = ["Once upon a time", "time"]
# kinematic action word... | 26.215909 | 88 | 0.604248 | 264 | 2,307 | 5.068182 | 0.424242 | 0.052317 | 0.022422 | 0.032885 | 0.035874 | 0.035874 | 0.035874 | 0 | 0 | 0 | 0 | 0.004154 | 0.269614 | 2,307 | 87 | 89 | 26.517241 | 0.789911 | 0.247941 | 0 | 0 | 0 | 0 | 0.23843 | 0.090803 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.073171 | false | 0 | 0.02439 | 0 | 0.195122 | 0.02439 | 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 |
3b4db590f2d7e691c8bbd28c32b71b6a614a2824 | 3,074 | py | Python | tools/patch_codegen.py | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | null | null | null | tools/patch_codegen.py | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | null | null | null | tools/patch_codegen.py | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | null | null | null |
import os, re
try:
from argparse import ArgumentParser
except:
print "Failed to import module 'argparse'. Upgrade to Python 2.7, copy argparse.py to this directory or try 'apt-get install python-argparse'"
raise
parser = ArgumentParser(description='Patch some code generation, so it builds')
parser.add_ar... | 41.540541 | 146 | 0.545869 | 387 | 3,074 | 4.108527 | 0.330749 | 0.033962 | 0.015723 | 0.018868 | 0.236478 | 0.112579 | 0.054717 | 0.041509 | 0.041509 | 0.041509 | 0 | 0.008232 | 0.328237 | 3,074 | 73 | 147 | 42.109589 | 0.761743 | 0 | 0 | 0.107692 | 0 | 0.015385 | 0.191669 | 0.052066 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.015385 | 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 |
3b5133135ae80248b5d54b207002e1fe469feabc | 3,514 | py | Python | TeLoRa_v0_03/test_code/Gauge.py | OHAProject/LoRa-tracker | 61c8029c86125cb3703083777b2b266c16d8ff97 | [
"Apache-2.0"
] | null | null | null | TeLoRa_v0_03/test_code/Gauge.py | OHAProject/LoRa-tracker | 61c8029c86125cb3703083777b2b266c16d8ff97 | [
"Apache-2.0"
] | null | null | null | TeLoRa_v0_03/test_code/Gauge.py | OHAProject/LoRa-tracker | 61c8029c86125cb3703083777b2b266c16d8ff97 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import Tkinter
import time
from random import randrange
class Mod_gauge(Tkinter.Canvas):
def __init__(self, parent, titre = "Gauge",background="#222735",foreground="#00d0c7", max = 127, min = 0):
global valeur, root, arc, text, H, W, coord1, coord2
self.titre = titre
... | 40.390805 | 113 | 0.555492 | 427 | 3,514 | 4.466042 | 0.227166 | 0.110121 | 0.088096 | 0.115364 | 0.703199 | 0.675406 | 0.649712 | 0.636078 | 0.636078 | 0.636078 | 0 | 0.084318 | 0.301366 | 3,514 | 86 | 114 | 40.860465 | 0.692464 | 0.067729 | 0 | 0.454545 | 0 | 0 | 0.085145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.106061 | 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 |
3b55f35f8bd3fa411f267bf97c40cc450296e869 | 1,503 | py | Python | books/tests/inventory.py | samweru/bookkeep | 902a7393b1bb016377076473387592314a5d252c | [
"MIT"
] | null | null | null | books/tests/inventory.py | samweru/bookkeep | 902a7393b1bb016377076473387592314a5d252c | [
"MIT"
] | null | null | null | books/tests/inventory.py | samweru/bookkeep | 902a7393b1bb016377076473387592314a5d252c | [
"MIT"
] | null | null | null | from books.models import *
from freezegun import freeze_time
from django.test import TransactionTestCase
from django.test import TestCase
from django.db import DatabaseError, transaction
from books.controllers.customer import Order as SaleOrder
from books.controllers import accountant as acc
from books.controllers im... | 27.327273 | 87 | 0.755822 | 198 | 1,503 | 5.656566 | 0.429293 | 0.040179 | 0.053571 | 0.035714 | 0.076786 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004699 | 0.150366 | 1,503 | 55 | 88 | 27.327273 | 0.872357 | 0 | 0 | 0.046512 | 0 | 0 | 0.008644 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.069767 | false | 0.023256 | 0.348837 | 0 | 0.44186 | 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 |
3b5b182b56023c8d0056408db25a33099ec824a5 | 3,129 | py | Python | datapypes/model.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | 1 | 2020-04-24T23:20:54.000Z | 2020-04-24T23:20:54.000Z | datapypes/model.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | null | null | null | datapypes/model.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | null | null | null | from attribute import Attribute, InvalidAttributeValue
from source import Source
from store import Store
class InvalidAttribute(Exception): pass
class AttributeDoesNotExist(Exception): pass
class InvalidSource(Exception): pass
class InvalidStore(Exception): pass
class PypeDoesNotExist(Exception): pass
class Model(obj... | 33.645161 | 78 | 0.610738 | 336 | 3,129 | 5.28869 | 0.190476 | 0.045582 | 0.050647 | 0.011818 | 0.2009 | 0.136747 | 0.084412 | 0.052898 | 0.052898 | 0 | 0 | 0 | 0.298818 | 3,129 | 93 | 79 | 33.645161 | 0.809936 | 0.051454 | 0 | 0.166667 | 0 | 0 | 0.010132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0.069444 | 0.041667 | 0.055556 | 0.402778 | 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 |
3b5ea985c21aab28515d1459f6ce89b7d34157e3 | 2,417 | py | Python | pcloudapi/pcloudjson.py | tochev/python3-pcloudapi | 26d0aa4fe873ec3b41e026142ba547ca5271d4e9 | [
"MIT"
] | 6 | 2017-11-27T16:42:24.000Z | 2021-02-09T02:32:26.000Z | pcloudapi/pcloudjson.py | tochev/python3-pcloudapi | 26d0aa4fe873ec3b41e026142ba547ca5271d4e9 | [
"MIT"
] | 1 | 2015-11-03T16:59:10.000Z | 2015-11-04T09:48:36.000Z | pcloudapi/pcloudjson.py | tochev/python3-pcloudapi | 26d0aa4fe873ec3b41e026142ba547ca5271d4e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import requests
from .connection import AbstractPCloudConnection
PCLOUD_SERVER = "api.pcloud.com"
PCLOUD_PORT = 80
PCLOUD_SSL_PORT = 443
class PCloudJSONConnection(AbstractPCloudConnection):
"""Connection to pcloud.com based on their json protocol.
NOTE: loads the whole file in memo... | 33.109589 | 78 | 0.58916 | 274 | 2,417 | 5.054745 | 0.390511 | 0.092419 | 0.043321 | 0.030325 | 0.064982 | 0.064982 | 0.064982 | 0.064982 | 0.064982 | 0 | 0 | 0.008145 | 0.339677 | 2,417 | 72 | 79 | 33.569444 | 0.859649 | 0.313612 | 0 | 0 | 0 | 0 | 0.05168 | 0.033592 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.162162 | 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 |
3b5fe3fb7e409a9211f3326e53dceccffadcd36a | 2,624 | py | Python | manage.py | johannes-gehrs/centos_packages | 31afe052011594e37175447eae8e7a192bdc9669 | [
"MIT"
] | 9 | 2016-04-17T02:09:47.000Z | 2022-02-16T15:50:43.000Z | manage.py | johannes-gehrs/centos_packages | 31afe052011594e37175447eae8e7a192bdc9669 | [
"MIT"
] | null | null | null | manage.py | johannes-gehrs/centos_packages | 31afe052011594e37175447eae8e7a192bdc9669 | [
"MIT"
] | 6 | 2016-09-10T17:42:29.000Z | 2021-11-28T09:06:36.000Z | from __future__ import absolute_import, division, unicode_literals
import argparse
import sys
import time
import config
import packages
import index
def _stopwatch(start_time):
return "Done. Time elapsed in seconds: " + unicode(time.time() - start_time)
def _download():
start_time = time.time()
print "S... | 28.521739 | 85 | 0.657012 | 320 | 2,624 | 5.190625 | 0.3375 | 0.043347 | 0.051174 | 0.030704 | 0.184226 | 0.074654 | 0 | 0 | 0 | 0 | 0 | 0.001514 | 0.244665 | 2,624 | 91 | 86 | 28.835165 | 0.836529 | 0 | 0 | 0.202899 | 0 | 0 | 0.258384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101449 | null | null | 0.144928 | 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 |
3b61cf3fd163d503c26c567b6e0a64a8cd39649d | 836 | py | Python | aoc_2018/day_3/python/test_day3_puzzle1.py | girip11/advent_of_code | b58f9a53d219bb3bef284af6b0ca59d2addd57bb | [
"MIT"
] | null | null | null | aoc_2018/day_3/python/test_day3_puzzle1.py | girip11/advent_of_code | b58f9a53d219bb3bef284af6b0ca59d2addd57bb | [
"MIT"
] | 1 | 2021-09-29T04:20:48.000Z | 2021-09-29T04:20:48.000Z | aoc_2018/day_3/python/test_day3_puzzle1.py | girip11/advent_of_code | b58f9a53d219bb3bef284af6b0ca59d2addd57bb | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from typing import List
from aoc_2018.day_3.python.day3_puzzle1 import (
Claim,
find_square_inches_with_overlapping_claims,
parse_claim,
)
def get_input(input_file_name: str) -> List[Claim]:
input_file_path: str = os.path.join(Path(os.path.dirname(__file__)).parent,... | 28.827586 | 97 | 0.776316 | 124 | 836 | 4.782258 | 0.370968 | 0.091062 | 0.134907 | 0.168634 | 0.386172 | 0.386172 | 0.323777 | 0.323777 | 0.185497 | 0.185497 | 0 | 0.020804 | 0.13756 | 836 | 28 | 98 | 29.857143 | 0.801664 | 0 | 0 | 0 | 0 | 0 | 0.047847 | 0.028708 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
3b632fe64615313ebad95cded01864e021f8dcaa | 876 | py | Python | odmltables/xls_style.py | fabianschlebusch/python-odmltables | 90a7833516afe8864b40947f4a1757830a0dc44c | [
"BSD-3-Clause"
] | 6 | 2017-10-27T16:59:53.000Z | 2021-03-02T06:08:48.000Z | odmltables/xls_style.py | fabianschlebusch/python-odmltables | 90a7833516afe8864b40947f4a1757830a0dc44c | [
"BSD-3-Clause"
] | 68 | 2016-01-26T10:48:16.000Z | 2021-11-16T10:09:49.000Z | odmltables/xls_style.py | fabianschlebusch/python-odmltables | 90a7833516afe8864b40947f4a1757830a0dc44c | [
"BSD-3-Clause"
] | 7 | 2015-11-24T12:40:18.000Z | 2021-04-14T08:02:53.000Z | # -*- coding: utf-8 -*-
"""
"""
class XlsStyle():
"""
class to create a stylestring to use in xlwt.easyxf
:param backcolor: color of the background of the cell
:param fontcolor: color of the text inside the cell
:param fontstyle: style of the text inside the cell ('bold 1' or '')
:type back... | 25.764706 | 119 | 0.628995 | 110 | 876 | 4.936364 | 0.454545 | 0.036832 | 0.033149 | 0.055249 | 0.081031 | 0.081031 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.262557 | 876 | 33 | 120 | 26.545455 | 0.837461 | 0.460046 | 0 | 0 | 0 | 0.125 | 0.295165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b7013bda516223089503616fe8250366f2617c9 | 1,644 | py | Python | chaosmonkey/planners/planner.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 52 | 2017-02-08T13:44:13.000Z | 2021-03-13T12:50:01.000Z | chaosmonkey/planners/planner.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 11 | 2017-03-23T15:56:09.000Z | 2019-11-01T15:03:35.000Z | chaosmonkey/planners/planner.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 9 | 2017-03-23T15:49:09.000Z | 2019-06-18T08:55:21.000Z | """
Base class for planners
Every planner must extend Planner class
"""
from chaosmonkey.engine.cme_manager import manager
class Planner:
"""
Planner interface
Planners are responsible for scheduling jobs that executes attacks
:param name: plan name
"""
ref = None # must override
sc... | 26.516129 | 73 | 0.642944 | 188 | 1,644 | 5.494681 | 0.340426 | 0.058083 | 0.046467 | 0.081317 | 0.231365 | 0.092933 | 0.092933 | 0.092933 | 0 | 0 | 0 | 0 | 0.285888 | 1,644 | 61 | 74 | 26.95082 | 0.879898 | 0.368613 | 0 | 0.153846 | 0 | 0 | 0.083056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.076923 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b777028838066ebca7169c3165ff922641e4d91 | 12,247 | py | Python | pset (HangMan)/hangman.py | Hammad-001/MIT-6.0001-psets-Solutions | cd27fbae7400158590893c5f317cb8e3b4c8c68c | [
"MIT"
] | 2 | 2020-08-27T02:57:05.000Z | 2020-08-27T02:57:08.000Z | pset (HangMan)/hangman.py | Hammad-001/MIT-6.0001-psets-Solutions | cd27fbae7400158590893c5f317cb8e3b4c8c68c | [
"MIT"
] | null | null | null | pset (HangMan)/hangman.py | Hammad-001/MIT-6.0001-psets-Solutions | cd27fbae7400158590893c5f317cb8e3b4c8c68c | [
"MIT"
] | null | null | null | # Problem Set 2, hangman.py
# Name: Muhammad Hammad Faisal
# Collaborators: None
# Hangman Game
# -----------------------------------
import random
import string
WORDLIST_FILENAME = "words.txt"
def load_words():
"""
Returns a list of valid words. Words are strings of lowercase letters.
Depending on the... | 38.271875 | 152 | 0.610762 | 1,576 | 12,247 | 4.61231 | 0.152919 | 0.081167 | 0.056129 | 0.079241 | 0.670381 | 0.647269 | 0.640116 | 0.631173 | 0.631173 | 0.631173 | 0 | 0.003934 | 0.294358 | 12,247 | 319 | 153 | 38.39185 | 0.83719 | 0.359762 | 0 | 0.640244 | 0 | 0 | 0.169012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054878 | false | 0 | 0.012195 | 0 | 0.121951 | 0.231707 | 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 |
3b7e189ea4d2f0c265f6104c5b46376e35ed7641 | 3,152 | py | Python | fastapi_crud_orm_connector/api/auth.py | christinoleo/fastapi_crud_orm_connector | e0698c09ae936535b2fe5961de17ae846e9768e0 | [
"MIT"
] | null | null | null | fastapi_crud_orm_connector/api/auth.py | christinoleo/fastapi_crud_orm_connector | e0698c09ae936535b2fe5961de17ae846e9768e0 | [
"MIT"
] | null | null | null | fastapi_crud_orm_connector/api/auth.py | christinoleo/fastapi_crud_orm_connector | e0698c09ae936535b2fe5961de17ae846e9768e0 | [
"MIT"
] | null | null | null | from fastapi import Depends, HTTPException, status
from jose import jwt, JWTError
from fastapi_crud_orm_connector import schemas
from fastapi_crud_orm_connector.api import security
from fastapi_crud_orm_connector.utils.database_session import DatabaseSession
class Authentication:
def __init__(self, database_sess... | 41.473684 | 119 | 0.639594 | 361 | 3,152 | 5.268698 | 0.254848 | 0.057834 | 0.050473 | 0.02734 | 0.301262 | 0.184017 | 0.154574 | 0.142482 | 0.142482 | 0.127234 | 0 | 0.00584 | 0.293782 | 3,152 | 75 | 120 | 42.026667 | 0.848607 | 0.006028 | 0 | 0.151515 | 0 | 0 | 0.039285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.075758 | 0.075758 | 0 | 0.257576 | 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 |
3b844b6aad7540c6e46dae4b5ef3413284f53422 | 609 | py | Python | src/app/data/mongopython.py | vaiskuma/Angular-first-App | 931e08db9fd9740cb784cb67b63d9fb12411fbe3 | [
"MIT"
] | null | null | null | src/app/data/mongopython.py | vaiskuma/Angular-first-App | 931e08db9fd9740cb784cb67b63d9fb12411fbe3 | [
"MIT"
] | null | null | null | src/app/data/mongopython.py | vaiskuma/Angular-first-App | 931e08db9fd9740cb784cb67b63d9fb12411fbe3 | [
"MIT"
] | null | null | null | import pymongo
from pymongo import MongoClient
connection = MongoClient ()
#client = MongoClient('localhost', 27017)
#The client object is thread-safe and has connection-pooling built in. If an operation fails because of a network error, ConnectionFailure is raised and the client reconnects in the background. Applica... | 38.0625 | 309 | 0.799672 | 83 | 609 | 5.855422 | 0.674699 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.137931 | 609 | 15 | 310 | 40.6 | 0.902857 | 0.722496 | 0 | 0 | 0 | 0 | 0.054545 | 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 |
3b85b40752df2870ac0cf80a40dec8470bda8161 | 21,232 | py | Python | chemaxon.py | weishuzhao/group-contribution | 106f70b46c1ed98361c37735483bdca2e3bf7607 | [
"MIT"
] | 8 | 2017-12-27T05:47:09.000Z | 2021-01-14T02:38:02.000Z | chemaxon.py | weishuzhao/group-contribution | 106f70b46c1ed98361c37735483bdca2e3bf7607 | [
"MIT"
] | 2 | 2019-08-27T15:29:48.000Z | 2019-11-21T22:40:43.000Z | chemaxon.py | weishuzhao/group-contribution | 106f70b46c1ed98361c37735483bdca2e3bf7607 | [
"MIT"
] | 4 | 2018-07-17T20:20:23.000Z | 2021-05-05T17:40:00.000Z | from subprocess import Popen, PIPE
import openbabel
import logging
import numpy as np
import StringIO
import re, csv
from rdkit import Chem
from rdkit.ML.Descriptors.MoleculeDescriptors import MolecularDescriptorCalculator
#from rdkit.Chem import Descriptors, GraphDescriptors, rdMolDescriptors #the list below defines a... | 45.464668 | 209 | 0.682979 | 2,698 | 21,232 | 5.14937 | 0.161231 | 0.0524 | 0.020586 | 0.018355 | 0.414309 | 0.353271 | 0.306053 | 0.274239 | 0.247175 | 0.217088 | 0 | 0.007274 | 0.21006 | 21,232 | 467 | 210 | 45.464668 | 0.821071 | 0.063348 | 0 | 0.218121 | 0 | 0 | 0.145965 | 0.026173 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003356 | 0.026846 | null | null | 0.003356 | 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 |
3b86c89c1f65334fccc0bbb8af9dcdb5df183492 | 1,324 | py | Python | ddos_no_proxy.py | ph-fox/dos | 6166e99564427cf1c6440d3f4d00ab8085441374 | [
"BSD-3-Clause"
] | null | null | null | ddos_no_proxy.py | ph-fox/dos | 6166e99564427cf1c6440d3f4d00ab8085441374 | [
"BSD-3-Clause"
] | null | null | null | ddos_no_proxy.py | ph-fox/dos | 6166e99564427cf1c6440d3f4d00ab8085441374 | [
"BSD-3-Clause"
] | 2 | 2021-03-18T06:32:08.000Z | 2021-05-03T14:40:31.000Z | #!/usr/bin/python3
import requests, threading, os, readline, optparse
from colorama import Fore
read = optparse.OptionParser()
read.add_option('-u', '--url',help="Enter Website url", dest='url')
(value, key) = read.parse_args()
url = value.url
if url is None:
print("Coded by: Anikin Luke Abales")
print("github: http... | 30.090909 | 149 | 0.690332 | 215 | 1,324 | 4.237209 | 0.609302 | 0.030735 | 0.043908 | 0.036224 | 0.063666 | 0.048299 | 0.048299 | 0 | 0 | 0 | 0 | 0.04 | 0.150302 | 1,324 | 43 | 150 | 30.790698 | 0.769778 | 0.01284 | 0 | 0.131579 | 0 | 0.078947 | 0.45023 | 0.066616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.052632 | 0.052632 | 0 | 0.078947 | 0.157895 | 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 |
3b99bf8d5e3e06189a356b5ea3799fa35374493e | 892 | py | Python | public_admin/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | public_admin/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | public_admin/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | from django.conf.urls import include, url
from public_admin.views import dashboard_view, organization_view
urlpatterns = (
url(r'^janitor/organization/create/(.*)/2/$', organization_view.organization_create_2_page, name='public_admin_organization_create_2'),
url(r'^janitor/organization/create/(.*)/1/$', organ... | 68.615385 | 147 | 0.81278 | 109 | 892 | 6.266055 | 0.238532 | 0.112738 | 0.096633 | 0.166911 | 0.374817 | 0.108346 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.065022 | 892 | 12 | 148 | 74.333333 | 0.811751 | 0 | 0 | 0 | 0 | 0 | 0.402466 | 0.392377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
3b9aa1f3771a893c6a9d4985ba1370925b92976b | 799 | py | Python | problems/test_0059_one_loop.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | 1 | 2017-06-17T23:47:17.000Z | 2017-06-17T23:47:17.000Z | problems/test_0059_one_loop.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | problems/test_0059_one_loop.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | import unittest
from typing import List
import utils
# O(n) time. O(1) space. Matrix, one loop.
class Solution:
def generateMatrix(self, n: int) -> List[List[int]]:
m = [[0] * n for _ in range(n)]
r, c, dr, dc = 0, 0, 0, 1
for i in range(1, n * n + 1):
m[r][c] = i
... | 22.828571 | 68 | 0.521902 | 113 | 799 | 3.513274 | 0.424779 | 0.035264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0.340426 | 799 | 34 | 69 | 23.5 | 0.73814 | 0.050063 | 0 | 0 | 1 | 0 | 0.010568 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.347826 | 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 |
3b9e3fb5d19001f8d8c5e375a4abade54f5fa332 | 2,674 | py | Python | core/erp/mixins.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | null | null | null | core/erp/mixins.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | null | null | null | core/erp/mixins.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | 1 | 2021-02-25T00:57:35.000Z | 2021-02-25T00:57:35.000Z | from datetime import datetime
from crum import get_current_request
from django.contrib import messages
from django.http import HttpResponseRedirect
from django.shortcuts import redirect
from django.urls import reverse_lazy
class IsSuperuserMixin(object):
def dispatch(self, request, *args, **kwargs):
if r... | 35.653333 | 91 | 0.647345 | 296 | 2,674 | 5.702703 | 0.233108 | 0.071682 | 0.070498 | 0.061611 | 0.687204 | 0.650474 | 0.650474 | 0.600711 | 0.600711 | 0.574052 | 0 | 0 | 0.253179 | 2,674 | 74 | 92 | 36.135135 | 0.845268 | 0.282723 | 0 | 0.255814 | 0 | 0 | 0.065401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.139535 | 0 | 0.581395 | 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 |
8e5a00d23160999b54c734dff0fccee8e4a374d1 | 11,178 | py | Python | digikey_scraper/digikeyscraper.py | nicholaschiang/dl-datasheets | 1c5ab2545a85c1ea7643fc655005259544617d90 | [
"MIT"
] | null | null | null | digikey_scraper/digikeyscraper.py | nicholaschiang/dl-datasheets | 1c5ab2545a85c1ea7643fc655005259544617d90 | [
"MIT"
] | null | null | null | digikey_scraper/digikeyscraper.py | nicholaschiang/dl-datasheets | 1c5ab2545a85c1ea7643fc655005259544617d90 | [
"MIT"
] | 1 | 2019-12-07T20:13:06.000Z | 2019-12-07T20:13:06.000Z | #! /usr/bin/env python
import requests
import sys, os
import re
import urllib
import urllib2
import time
import argparse
import csv
from pprint import pprint
import subprocess
import urlparse
import posixpath
import scraper_logging
import scraper_args
# To make indexing into Digikey CSV more readable
MANUF = 4
PARTN... | 42.181132 | 142 | 0.569064 | 1,317 | 11,178 | 4.696279 | 0.267274 | 0.052061 | 0.067583 | 0.085368 | 0.398383 | 0.316411 | 0.302991 | 0.286823 | 0.241876 | 0.228618 | 0 | 0.012177 | 0.331455 | 11,178 | 264 | 143 | 42.340909 | 0.815469 | 0.197262 | 0 | 0.294798 | 0 | 0 | 0.108925 | 0 | 0 | 0 | 0 | 0.003788 | 0 | 0 | null | null | 0 | 0.080925 | null | null | 0.132948 | 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 |
8e5ab18b395ad258ce8a5a26c0a3a1a7a5fc5991 | 1,130 | py | Python | tests/environment/test_custom_environment_provider.py | TheCodingLand/pyctuator | a5c9f41e426b006892020ce3b98d5e56c27e9dbc | [
"Apache-2.0"
] | 118 | 2020-04-26T14:32:57.000Z | 2022-03-28T08:46:32.000Z | tests/environment/test_custom_environment_provider.py | yanoom/pyctuator | b3aff058e1193eb6db8b887b1c1cf8c116819f82 | [
"Apache-2.0"
] | 63 | 2020-04-29T03:38:40.000Z | 2021-12-29T21:54:52.000Z | tests/environment/test_custom_environment_provider.py | yanoom/pyctuator | b3aff058e1193eb6db8b887b1c1cf8c116819f82 | [
"Apache-2.0"
] | 10 | 2020-04-28T10:00:25.000Z | 2021-11-17T16:32:00.000Z | from typing import Dict
from pyctuator.environment.custom_environment_provider import CustomEnvironmentProvider
from pyctuator.environment.environment_provider import PropertyValue
def test_custom_environment_provider() -> None:
def produce_env() -> Dict:
return {
"a": "s1",
"b": ... | 30.540541 | 87 | 0.530088 | 103 | 1,130 | 5.68932 | 0.378641 | 0.215017 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018494 | 0.330089 | 1,130 | 36 | 88 | 31.388889 | 0.755614 | 0 | 0 | 0 | 0 | 0 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.09375 | 0.03125 | 0.1875 | 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 |
8e5b4b19c45b7b1f92b7fb87f4454cbfed46b6b8 | 8,715 | py | Python | kmeans_part3.py | o3dwade/farooq | 81d18c8114e1cb55c218104abf632d189fe45ed4 | [
"Apache-2.0"
] | null | null | null | kmeans_part3.py | o3dwade/farooq | 81d18c8114e1cb55c218104abf632d189fe45ed4 | [
"Apache-2.0"
] | null | null | null | kmeans_part3.py | o3dwade/farooq | 81d18c8114e1cb55c218104abf632d189fe45ed4 | [
"Apache-2.0"
] | null | null | null | import csv
import sys
import random
import math
k = sys.argv[2]
C = 0
# C is length of file
pt = None
points = None
centroids = None
classes = ["Iris-virginica", "Iris-setosa", "Iris-versicolor"]
ISCount =0
IVCount =0
IECount =0
objFunc=0
actualISC =0
actualIVC =0
actualIEC =0
def main():
initialize()
#initial clust... | 26.898148 | 196 | 0.635341 | 1,312 | 8,715 | 4.198171 | 0.139482 | 0.056645 | 0.021242 | 0.035948 | 0.366921 | 0.307916 | 0.220225 | 0.207879 | 0.207879 | 0.188272 | 0 | 0.038005 | 0.187837 | 8,715 | 323 | 197 | 26.981424 | 0.740181 | 0.110614 | 0 | 0.218254 | 0 | 0 | 0.067716 | 0 | 0 | 0 | 0 | 0.003096 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.015873 | 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 |
8e5b8095f0593ce498f4ea7b3e4218be0e072293 | 532 | py | Python | setup.py | yjg30737/pyqt-label-slider | 13ea0688129af38c9324067ba1032bf901db1770 | [
"MIT"
] | null | null | null | setup.py | yjg30737/pyqt-label-slider | 13ea0688129af38c9324067ba1032bf901db1770 | [
"MIT"
] | null | null | null | setup.py | yjg30737/pyqt-label-slider | 13ea0688129af38c9324067ba1032bf901db1770 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='pyqt-label-slider',
version='0.0.1',
author='Jung Gyu Yoon',
author_email='yjg30737@gmail.com',
license='MIT',
packages=find_packages(),
description='PyQt QSlider with QLabel(QLabel is on the left side, QSlider is on the right side, h... | 31.294118 | 128 | 0.665414 | 71 | 532 | 4.929577 | 0.676056 | 0.068571 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037825 | 0.204887 | 532 | 16 | 129 | 33.25 | 0.789598 | 0 | 0 | 0 | 0 | 0.066667 | 0.451128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
8e60c604266fa8b98af3036763037e4825488ba2 | 1,006 | py | Python | salt_observer/backends.py | hs-hannover/salt-observer | b16e30c4e9bb1cedb0470906cd40dfe098d4c85e | [
"MIT"
] | 6 | 2016-08-05T09:20:09.000Z | 2020-10-10T09:38:38.000Z | salt_observer/backends.py | hs-hannover/salt-observer | b16e30c4e9bb1cedb0470906cd40dfe098d4c85e | [
"MIT"
] | null | null | null | salt_observer/backends.py | hs-hannover/salt-observer | b16e30c4e9bb1cedb0470906cd40dfe098d4c85e | [
"MIT"
] | null | null | null | from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.models import User
from salt_observer.saltapis import SaltCherrypy, SaltTornado
class RestBackend(ModelBackend):
''' Authenticate against salt-api-permissions '''
def authenticate(self, username=None, password=None, request=None)... | 33.533333 | 95 | 0.668986 | 105 | 1,006 | 6.27619 | 0.419048 | 0.098634 | 0.051593 | 0.063733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255467 | 1,006 | 29 | 96 | 34.689655 | 0.87984 | 0.040755 | 0 | 0.1 | 0 | 0 | 0.038662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.2 | 0.15 | 0 | 0.35 | 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 |
8e66ab45fc1d04738f7ff900658703eee3b24530 | 617 | py | Python | setup.py | ryninho/session2s3 | 2419b747f749399dce763f21d411347615536853 | [
"MIT"
] | 1 | 2017-10-06T00:15:02.000Z | 2017-10-06T00:15:02.000Z | setup.py | ryninho/session2s3 | 2419b747f749399dce763f21d411347615536853 | [
"MIT"
] | null | null | null | setup.py | ryninho/session2s3 | 2419b747f749399dce763f21d411347615536853 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'session2s3',
packages = ['session2s3'],
version = '0.2a1',
description = 'Save your Python session to S3',
author = 'Eric Rynerson',
author_email = 'eric.rynerson@gmail.com',
license='MIT',
url = 'https://github.com/ryninho/session2s3',
download_url = 'https... | 30.85 | 76 | 0.654781 | 72 | 617 | 5.555556 | 0.694444 | 0.06 | 0.07 | 0.085 | 0.17 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.160454 | 617 | 19 | 77 | 32.473684 | 0.73166 | 0 | 0 | 0 | 0 | 0 | 0.492707 | 0.037277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
8e73ee81743d84308989e0ef6c83f33f9caac245 | 26,851 | py | Python | chainercv/functions/ps_roi_max_align_2d.py | beam2d/chainercv | 55d34c07cbbd03642b71d375db579433859bd00e | [
"MIT"
] | 1,600 | 2017-06-01T15:37:52.000Z | 2022-03-09T08:39:09.000Z | chainercv/functions/ps_roi_max_align_2d.py | beam2d/chainercv | 55d34c07cbbd03642b71d375db579433859bd00e | [
"MIT"
] | 547 | 2017-06-01T06:43:16.000Z | 2021-05-28T17:14:05.000Z | chainercv/functions/ps_roi_max_align_2d.py | beam2d/chainercv | 55d34c07cbbd03642b71d375db579433859bd00e | [
"MIT"
] | 376 | 2017-06-02T01:29:10.000Z | 2022-03-13T11:19:59.000Z | # Modified work:
# -----------------------------------------------------------------------------
# Copyright (c) 2019 Preferred Infrastructure, Inc.
# Copyright (c) 2019 Preferred Networks, Inc.
# -----------------------------------------------------------------------------
# Original work:
# -------------------------... | 43.030449 | 79 | 0.523444 | 3,493 | 26,851 | 3.726596 | 0.085027 | 0.051164 | 0.024583 | 0.015211 | 0.740954 | 0.703695 | 0.659829 | 0.631021 | 0.606207 | 0.548821 | 0 | 0.024122 | 0.374697 | 26,851 | 623 | 80 | 43.099518 | 0.751161 | 0.094969 | 0 | 0.533333 | 0 | 0 | 0.045427 | 0.003147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023333 | false | 0 | 0.04 | 0 | 0.083333 | 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 |
8e75b6270162dd14b5c1e5c902a13b18e51bc922 | 7,056 | py | Python | src/psion/jose/jwa/jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | 2 | 2021-02-22T22:12:23.000Z | 2021-02-22T22:48:33.000Z | src/psion/jose/jwa/jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | src/psion/jose/jwa/jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | import abc
import binascii
from psion.jose.exceptions import InvalidKey, InvalidSignature
from psion.jose.jwk import JsonWebKey
from psion.webtools import base64url_decode, base64url_encode
class JWSAlgorithm(abc.ABC):
"""
Implementation of the Section 3 of RFC 7518.
This class provides the expected met... | 26.931298 | 87 | 0.644416 | 825 | 7,056 | 5.123636 | 0.180606 | 0.041637 | 0.03383 | 0.062456 | 0.560918 | 0.485687 | 0.473859 | 0.418973 | 0.385853 | 0.385853 | 0 | 0.030938 | 0.262472 | 7,056 | 261 | 88 | 27.034483 | 0.781322 | 0.205215 | 0 | 0.556338 | 0 | 0 | 0.065368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0.007042 | 0.035211 | 0.007042 | 0.56338 | 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 |
8e7882776c5702e76cb1a3811982c4685d71beef | 3,933 | py | Python | instauto/api/actions/friendships.py | marosgonda/instauto | 5b464fe5b8629d40ceaeb3bf9c9978651cd9a2d0 | [
"MIT"
] | null | null | null | instauto/api/actions/friendships.py | marosgonda/instauto | 5b464fe5b8629d40ceaeb3bf9c9978651cd9a2d0 | [
"MIT"
] | null | null | null | instauto/api/actions/friendships.py | marosgonda/instauto | 5b464fe5b8629d40ceaeb3bf9c9978651cd9a2d0 | [
"MIT"
] | null | null | null | from requests import Session, Response
from typing import Union, Callable, Tuple, List
from instauto.api.actions.stubs import _request
from .structs.friendships import Create, Destroy, Remove, Show, \
GetFollowers, GetFollowing, PendingRequests, ApproveRequest
from ..structs import State, Method
class Friendships... | 42.75 | 137 | 0.650648 | 490 | 3,933 | 5.095918 | 0.263265 | 0.028034 | 0.017621 | 0.024029 | 0.437325 | 0.395274 | 0.395274 | 0.376852 | 0.348819 | 0.306768 | 0 | 0.002018 | 0.244088 | 3,933 | 91 | 138 | 43.21978 | 0.837874 | 0.259344 | 0 | 0.169811 | 0 | 0 | 0.108553 | 0.065424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0 | 0.09434 | 0 | 0.566038 | 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 |
8e7c660661fd55bfbec9befc1a0e44592abfc622 | 199 | py | Python | E2_7/fibonacci.py | AidaNajafi/AidaNajafi.github.io | a5d86dc67a1d272794586e0a5c612a3893b75e69 | [
"Apache-2.0"
] | null | null | null | E2_7/fibonacci.py | AidaNajafi/AidaNajafi.github.io | a5d86dc67a1d272794586e0a5c612a3893b75e69 | [
"Apache-2.0"
] | null | null | null | E2_7/fibonacci.py | AidaNajafi/AidaNajafi.github.io | a5d86dc67a1d272794586e0a5c612a3893b75e69 | [
"Apache-2.0"
] | null | null | null | n = int(input("Enter a number:"))
def fibonacci(n):
if n==1:
return 0
elif n==2:
return 1
else:
return fibonacci(n-1) + fibonacci(n-2)
print(fibonacci(n))
| 18.090909 | 46 | 0.527638 | 30 | 199 | 3.5 | 0.533333 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.326633 | 199 | 10 | 47 | 19.9 | 0.738806 | 0 | 0 | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.444444 | 0.111111 | 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 |
8e7ee2632c1fbcfa37d2309385bbc693951fdcb8 | 413 | py | Python | mi/73.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | 1 | 2018-11-29T01:01:32.000Z | 2018-11-29T01:01:32.000Z | mi/73.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | null | null | null | mi/73.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | null | null | null | # 此处可 import 模块
"""
@param string line 为单行测试数据
@return string 处理后的结果
"""
def solution(line):
# 缩进请使用 4 个空格,遵循 PEP8 规范
# please write your code here
# return 'your_answer'
nums = line.strip().split(',')
while nums:
num = nums.pop()
if num in nums:
nums.remove(num)
num... | 15.884615 | 34 | 0.566586 | 60 | 413 | 3.883333 | 0.616667 | 0.025751 | 0.111588 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.302663 | 413 | 26 | 35 | 15.884615 | 0.777778 | 0.326877 | 0 | 0.181818 | 0 | 0 | 0.052239 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 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 |
8e82fdab57f5e08b861f4d589c05c20c68b7d790 | 702 | py | Python | ckstyle/plugins/FEDUseSingleQuotation.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | 21 | 2015-04-27T14:54:45.000Z | 2021-11-08T09:12:08.000Z | ckstyle/plugins/FEDUseSingleQuotation.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | null | null | null | ckstyle/plugins/FEDUseSingleQuotation.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | 6 | 2015-03-02T08:08:59.000Z | 2016-03-16T14:52:38.000Z | #/usr/bin/python
#encoding=utf-8
from .Base import *
class FEDUseSingleQuotation(RuleChecker):
'''{
"summary":"使用单引号",
"desc":"CSS的属性取值一律使用单引号<code>'</code>, 不允许使用双引号"
}'''
def __init__(self):
self.id = 'single-quotation'
self.errorLevel = ERROR_LEVEL.WARNING
... | 23.4 | 60 | 0.579772 | 74 | 702 | 5.391892 | 0.621622 | 0.067669 | 0.070175 | 0.080201 | 0.195489 | 0.195489 | 0.195489 | 0.195489 | 0 | 0 | 0 | 0.003891 | 0.267806 | 702 | 29 | 61 | 24.206897 | 0.772374 | 0.155271 | 0 | 0.133333 | 0 | 0 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e904ed8a71022deb77a1d1eb15b096c40112d8c | 178 | py | Python | students/k33401/Ponomarenko_Ignatii/Lr1/two/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/k33401/Ponomarenko_Ignatii/Lr1/two/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/k33401/Ponomarenko_Ignatii/Lr1/two/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | import socket
sock = socket.socket()
sock.connect(('localhost', 9090))
S = input()
sock.send(S.encode("utf-8"))
data = sock.recv(1024)
sock.close()
print(data.decode("utf-8")) | 16.181818 | 33 | 0.679775 | 28 | 178 | 4.321429 | 0.642857 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.101124 | 178 | 11 | 34 | 16.181818 | 0.69375 | 0 | 0 | 0 | 0 | 0 | 0.106145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
8e962d5c48a95cbf23f9354421e342a2f03c4103 | 731 | py | Python | eda5/core/migrations/0001_initial.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | eda5/core/migrations/0001_initial.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | eda5/core/migrations/0001_initial.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='ObdobjeLeto',
fields=[
('oznaka', models.Intege... | 24.366667 | 83 | 0.518468 | 55 | 731 | 6.745455 | 0.636364 | 0.113208 | 0.134771 | 0.161725 | 0.312668 | 0.312668 | 0.312668 | 0.312668 | 0.312668 | 0 | 0 | 0.006356 | 0.354309 | 731 | 29 | 84 | 25.206897 | 0.779661 | 0.028728 | 0 | 0.434783 | 0 | 0 | 0.077684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
8e987bbdfeea6b526669b41e5f7e913178599000 | 11,348 | py | Python | NEMO/NEMOplots/transition_matrices/diag_amountsurfbox_subplot_avgdist.py | pdnooteboom/PO-dinocysts | 31ae3ca1d014a1144bd7b559d59de805d6e9cf23 | [
"MIT"
] | null | null | null | NEMO/NEMOplots/transition_matrices/diag_amountsurfbox_subplot_avgdist.py | pdnooteboom/PO-dinocysts | 31ae3ca1d014a1144bd7b559d59de805d6e9cf23 | [
"MIT"
] | null | null | null | NEMO/NEMOplots/transition_matrices/diag_amountsurfbox_subplot_avgdist.py | pdnooteboom/PO-dinocysts | 31ae3ca1d014a1144bd7b559d59de805d6e9cf23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 1 15:22:53 2018
Plot the diagonal of the transition matrix and the amount of boxes any bottom box is mapped to.
Use 6 m/s here.
@author: nooteboom
"""
import numpy as np
import matplotlib.pylab as plt
import matplotlib
from mpl_toolkits.basemap import Basemap
from mp... | 37.826667 | 188 | 0.573053 | 1,470 | 11,348 | 4.370748 | 0.229252 | 0.019922 | 0.012607 | 0.019611 | 0.467237 | 0.449027 | 0.404669 | 0.398599 | 0.379922 | 0.372763 | 0 | 0.052134 | 0.273176 | 11,348 | 300 | 189 | 37.826667 | 0.726843 | 0.082922 | 0 | 0.36036 | 0 | 0 | 0.057507 | 0.027282 | 0.004505 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036036 | null | null | 0.009009 | 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 |
8ea35d1a49afe878304a3550b45db0d1df81d52a | 416 | py | Python | linkedin-courses/exercises/dates.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | linkedin-courses/exercises/dates.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | linkedin-courses/exercises/dates.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | def main():
## DATE OBJECTS
# Get today's date from the simple today() method from the date class
# print out the date's individual components
note = 12
print("Echec") if note < 10 else print("Pass")
# retrieve today's weekday (0=Monday, 6=Sunday)
## DATETIME OBJECTS
# Get today's d... | 18.086957 | 73 | 0.639423 | 60 | 416 | 4.3 | 0.55 | 0.069767 | 0.116279 | 0.124031 | 0.209302 | 0.209302 | 0.209302 | 0 | 0 | 0 | 0 | 0.019608 | 0.264423 | 416 | 23 | 74 | 18.086957 | 0.823529 | 0.596154 | 0 | 0 | 0 | 0 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8eacde5263bb39bafd11e37f3a48cd0002e19848 | 440 | py | Python | Framing/join_csv.py | Gigi-G/Recognition-of-actions-on-objects-using-Microsoft-HoloLens-2 | a1f47709ebe8063c7b5c6f35166cf532055c615a | [
"MIT"
] | 6 | 2022-02-13T02:09:18.000Z | 2022-02-19T14:47:10.000Z | Framing/join_csv.py | Gigi-G/Recognition-of-actions-on-objects-using-Microsoft-HoloLens-2 | a1f47709ebe8063c7b5c6f35166cf532055c615a | [
"MIT"
] | null | null | null | Framing/join_csv.py | Gigi-G/Recognition-of-actions-on-objects-using-Microsoft-HoloLens-2 | a1f47709ebe8063c7b5c6f35166cf532055c615a | [
"MIT"
] | null | null | null | import glob
csv:list = []
for folder in glob.glob("../data/VIDEO/*"):
for file in glob.glob(folder + "/*.csv"):
csv.append(file)
columns:bool = True
with open("framing_action.csv", "w") as f:
for fcsv in csv:
with open(fcsv, "r") as fc:
if columns:
f.writelines(fc.... | 24.444444 | 45 | 0.527273 | 56 | 440 | 4.125 | 0.517857 | 0.051948 | 0.08658 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327273 | 440 | 18 | 46 | 24.444444 | 0.780405 | 0 | 0 | 0.142857 | 0 | 0 | 0.092971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
8eb06cb25478a41e9145bcb24f6797abe6ff4eec | 5,364 | py | Python | test/programytest/dialog/test_question.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | test/programytest/dialog/test_question.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | test/programytest/dialog/test_question.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | import unittest
from programy.dialog.sentence import Sentence
from programy.dialog.question import Question
from programytest.client import TestClient
class QuestionTests(unittest.TestCase):
def setUp(self):
client = TestClient()
self._client_context = client.create_client_context("test1")
... | 43.967213 | 114 | 0.686055 | 592 | 5,364 | 5.966216 | 0.116554 | 0.073613 | 0.120328 | 0.101076 | 0.663647 | 0.586636 | 0.565119 | 0.565119 | 0.542752 | 0.507078 | 0 | 0.010507 | 0.201529 | 5,364 | 121 | 115 | 44.330579 | 0.814149 | 0 | 0 | 0.43299 | 0 | 0 | 0.08352 | 0 | 0 | 0 | 0 | 0 | 0.412371 | 1 | 0.123711 | false | 0 | 0.041237 | 0 | 0.175258 | 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 |
8eb1103305b375f5686ac2334422bb5d68d099c2 | 3,254 | py | Python | pyreach/metrics.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 13 | 2021-09-01T01:10:22.000Z | 2022-03-05T10:01:52.000Z | pyreach/metrics.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | null | null | null | pyreach/metrics.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 6 | 2021-09-20T21:17:53.000Z | 2022-03-14T18:42:48.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.315315 | 80 | 0.670559 | 438 | 3,254 | 4.945205 | 0.351598 | 0.027701 | 0.044321 | 0.014774 | 0.160665 | 0.127424 | 0.060942 | 0.033241 | 0.033241 | 0.033241 | 0 | 0.004864 | 0.241856 | 3,254 | 110 | 81 | 29.581818 | 0.873125 | 0.560541 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.054054 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8eb8a97a527e123c8f9bc25e777e8ead0ca6f423 | 8,651 | py | Python | wce_triage/lib/disk_images.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 3 | 2019-07-25T03:24:23.000Z | 2021-06-23T14:01:34.000Z | wce_triage/lib/disk_images.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 1 | 2019-12-20T16:04:19.000Z | 2019-12-20T16:04:19.000Z | wce_triage/lib/disk_images.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 2 | 2019-07-25T03:24:26.000Z | 2021-02-14T05:27:11.000Z | # Copyright (c) 2019 Naoyuki tai
# MIT license - see LICENSE
"""disk_image scans the disk image candidate directories and returns availabe disk images for loading.
"""
import os, datetime, json, traceback
from ..lib.util import get_triage_logger, init_triage_logger
tlog = get_triage_logger()
global WCE_IMAGES
WCE_IMA... | 28.363934 | 150 | 0.669056 | 1,196 | 8,651 | 4.628763 | 0.224916 | 0.048772 | 0.017883 | 0.012283 | 0.299494 | 0.21315 | 0.171785 | 0.143786 | 0.125 | 0.109827 | 0 | 0.007478 | 0.227141 | 8,651 | 304 | 151 | 28.457237 | 0.82052 | 0.240781 | 0 | 0.331551 | 0 | 0 | 0.099469 | 0.02436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053476 | false | 0.181818 | 0.010695 | 0 | 0.139037 | 0.064171 | 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 |
8eb95e7bbac32e1330d1a645f13e74984972b5e6 | 959 | py | Python | app/mod_repo/package_manager.py | v-yussupov/hdtapps-prototype | 9046c204afa332b06152c76234426c1ec5a6253f | [
"Apache-2.0"
] | 2 | 2018-01-25T08:46:14.000Z | 2019-01-10T14:01:41.000Z | app/mod_repo/package_manager.py | v-yussupov/hdtapps-prototype | 9046c204afa332b06152c76234426c1ec5a6253f | [
"Apache-2.0"
] | null | null | null | app/mod_repo/package_manager.py | v-yussupov/hdtapps-prototype | 9046c204afa332b06152c76234426c1ec5a6253f | [
"Apache-2.0"
] | 1 | 2018-01-25T08:45:07.000Z | 2018-01-25T08:45:07.000Z | import json
import os
from app.mod_repo.models import *
from app.mod_repo.dockerfile_generator import Dockerfile
def read_package_specification(temp_app_dir):
try:
pkg_spec_path = os.path.join(temp_app_dir, "app-spec.json")
with open(pkg_spec_path) as data_file:
data = json.load(data_f... | 23.390244 | 74 | 0.663191 | 134 | 959 | 4.470149 | 0.358209 | 0.105175 | 0.066778 | 0.046745 | 0.313856 | 0.313856 | 0.313856 | 0.313856 | 0.313856 | 0.313856 | 0 | 0 | 0.259645 | 959 | 40 | 75 | 23.975 | 0.843662 | 0.022941 | 0 | 0.25 | 0 | 0 | 0.028908 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.107143 | false | 0.035714 | 0.142857 | 0 | 0.392857 | 0.035714 | 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 |
8eb9f5878fd970eded94f0616bf67456d7b9db44 | 388 | py | Python | examples/calc_wer.py | jumon/pywer | dbefd553090fb7cfde35660d6ff5587dc912a7fe | [
"MIT"
] | 2 | 2021-02-07T01:37:04.000Z | 2022-01-10T12:31:51.000Z | examples/calc_wer.py | jumon/pywer | dbefd553090fb7cfde35660d6ff5587dc912a7fe | [
"MIT"
] | 1 | 2021-02-07T08:52:56.000Z | 2021-02-07T08:52:56.000Z | examples/calc_wer.py | jumon/pywer | dbefd553090fb7cfde35660d6ff5587dc912a7fe | [
"MIT"
] | null | null | null | import pywer
references = [
"this is a simple python package",
"it calculates word error rate",
"it can also calculate cer",
]
hypotheses = [
"this is the simple python package",
"it calculates word error",
"it can also calculate see er",
]
wer = pywer.wer(references, hypotheses)
cer = pywer.c... | 22.823529 | 40 | 0.667526 | 54 | 388 | 4.796296 | 0.481481 | 0.046332 | 0.146718 | 0.162162 | 0.30888 | 0.30888 | 0.30888 | 0 | 0 | 0 | 0 | 0.006494 | 0.206186 | 388 | 16 | 41 | 24.25 | 0.834416 | 0 | 0 | 0 | 0 | 0 | 0.515464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 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 |
8ec2dea78726a5e985193dfa67af3be52bde11ef | 1,526 | py | Python | ccvpn/models/types.py | CCrypto/ccvpn | 6bbfd01f41816bea905518f302f4cec474fdd221 | [
"MIT"
] | 81 | 2015-03-07T20:26:55.000Z | 2016-05-16T10:22:05.000Z | ccvpn/models/types.py | CCrypto/ccvpn2 | 6bbfd01f41816bea905518f302f4cec474fdd221 | [
"MIT"
] | 1 | 2017-09-21T15:56:31.000Z | 2017-11-30T15:10:56.000Z | ccvpn/models/types.py | CCrypto/ccvpn | 6bbfd01f41816bea905518f302f4cec474fdd221 | [
"MIT"
] | 20 | 2015-03-07T22:36:46.000Z | 2016-04-23T22:47:12.000Z | from sqlalchemy import TypeDecorator, UnicodeText, String
from sqlalchemy.ext.mutable import Mutable
from sqlalchemy.dialects import postgresql # INET
import json
class JSONEncodedDict(TypeDecorator):
impl = UnicodeText
def process_bind_param(self, value, dialect):
if value:
return json.... | 25.864407 | 62 | 0.636304 | 165 | 1,526 | 5.739394 | 0.381818 | 0.042239 | 0.047518 | 0.038015 | 0.10982 | 0.061246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287025 | 1,526 | 58 | 63 | 26.310345 | 0.870404 | 0.121887 | 0 | 0.146341 | 0 | 0 | 0.10498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.097561 | 0 | 0.585366 | 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 |
8ecb842f5cea71d1c7ed4cb54ccffea1c3852b90 | 5,517 | py | Python | accounts.py | qwerith/Weather-Project | 43cbcbaefd067653ccc4c3479fc1b6380dfba04b | [
"MIT"
] | null | null | null | accounts.py | qwerith/Weather-Project | 43cbcbaefd067653ccc4c3479fc1b6380dfba04b | [
"MIT"
] | null | null | null | accounts.py | qwerith/Weather-Project | 43cbcbaefd067653ccc4c3479fc1b6380dfba04b | [
"MIT"
] | null | null | null | import psycopg2
import os
import re
import string
import random
import logging
from dotenv import load_dotenv, find_dotenv
from flask_bcrypt import Bcrypt
from flask import redirect, session
bcrypt = Bcrypt()
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter("""%(asctime... | 38.852113 | 99 | 0.591263 | 643 | 5,517 | 4.965785 | 0.273717 | 0.04228 | 0.02067 | 0.028187 | 0.327592 | 0.294707 | 0.244911 | 0.244911 | 0.227999 | 0.206076 | 0 | 0.01332 | 0.278775 | 5,517 | 141 | 100 | 39.12766 | 0.789143 | 0.037883 | 0 | 0.303279 | 0 | 0.008197 | 0.194376 | 0.027552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.180328 | 0.07377 | 0 | 0.270492 | 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 |
8ed5e65f329465348459e7e92a7a23cc6a3e3cd5 | 431 | py | Python | {{ cookiecutter.package_name }}/tests/test_config.py | triaxtec/fastapi-serverless-cookiecutter | fe5ca7ebb0fbe47ee55adbe93431b02862e62544 | [
"MIT"
] | 15 | 2020-05-09T16:34:29.000Z | 2021-06-05T14:26:34.000Z | {{ cookiecutter.package_name }}/tests/test_config.py | triaxtec/fastapi-serverless-cookiecutter | fe5ca7ebb0fbe47ee55adbe93431b02862e62544 | [
"MIT"
] | null | null | null | {{ cookiecutter.package_name }}/tests/test_config.py | triaxtec/fastapi-serverless-cookiecutter | fe5ca7ebb0fbe47ee55adbe93431b02862e62544 | [
"MIT"
] | 1 | 2020-08-13T18:40:55.000Z | 2020-08-13T18:40:55.000Z | def test_get_config_aws_load(mocker):
from {{ cookiecutter.module_name }} import config
AWSSource = mocker.patch.object(config, "AWSSource", return_value={"custom_key": "custom_value"})
mocker.patch.object(config, "_app_config", None)
config = config.get_config({"env": "testing"})
AWSSource.asser... | 39.181818 | 101 | 0.726218 | 53 | 431 | 5.584906 | 0.509434 | 0.060811 | 0.148649 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12761 | 431 | 10 | 102 | 43.1 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.259861 | 0.055684 | 0 | 0 | 0 | 0 | 0.285714 | 0 | null | null | 0 | 0.142857 | 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 |
8ee20dbdf602a63dbf73156cf3e4e77aab962ba9 | 624 | py | Python | asl-api/asl-api/urls.py | ooawagaeri/orbital-asl-application | 4e65306652edd3217eaa097ebe63506a403b2475 | [
"MIT"
] | 2 | 2021-05-29T17:35:13.000Z | 2021-05-29T17:35:14.000Z | asl-api/asl-api/urls.py | ooawagaeri/orbital-asl-application | 4e65306652edd3217eaa097ebe63506a403b2475 | [
"MIT"
] | 1 | 2021-06-18T08:50:26.000Z | 2021-06-18T08:50:26.000Z | asl-api/asl-api/urls.py | ooawagaeri/orbital-asl-application | 4e65306652edd3217eaa097ebe63506a403b2475 | [
"MIT"
] | null | null | null | """
urls.py
URL Mapping between HTTP and Views
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls import url
from django.views.static import serve
from django.conf.urls.static import static
urlpatterns = [
# Serve Admin dashboard
p... | 26 | 81 | 0.725962 | 87 | 624 | 5.149425 | 0.367816 | 0.133929 | 0.09375 | 0.080357 | 0.129464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150641 | 624 | 23 | 82 | 27.130435 | 0.845283 | 0.190705 | 0 | 0 | 0 | 0 | 0.109312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ef02822edb5b879b8c7b556fc90f1fadedc73d4 | 2,213 | py | Python | ASTParser/parser_main.py | DploY707/AST_parser | 4ddac94add05abdea264bbd33db7397b701e7b80 | [
"Apache-2.0"
] | 4 | 2021-08-05T08:01:10.000Z | 2022-02-03T12:59:35.000Z | ASTParser/parser_main.py | DploY707/AST_parser | 4ddac94add05abdea264bbd33db7397b701e7b80 | [
"Apache-2.0"
] | 1 | 2021-07-13T09:04:42.000Z | 2021-07-13T09:04:42.000Z | ASTParser/parser_main.py | DploY707/AST_parser | 4ddac94add05abdea264bbd33db7397b701e7b80 | [
"Apache-2.0"
] | null | null | null | from pprint import pprint
import json
import gzip
import pickle
import copy
from androguard.decompiler.dad.decompile import DvMethod
from androguard.misc import AnalyzeAPK
from core.parser import ASTParser
from core.parser import ConstData
from core.parser import stmtList
from core.parser import actionL... | 25.436782 | 78 | 0.600542 | 254 | 2,213 | 5.102362 | 0.437008 | 0.061728 | 0.054012 | 0.07716 | 0.097222 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.009947 | 0.318572 | 2,213 | 86 | 79 | 25.732558 | 0.84947 | 0.141889 | 0 | 0 | 0 | 0 | 0.04939 | 0.013873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.02 | 0.36 | 0 | 0.42 | 0.04 | 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 |
d9049b474f7015b96f15b10fe6cd451cc2d5d9fb | 3,119 | py | Python | polling_stations/apps/data_importers/management/commands/import_southwark.py | smsmith97/UK-Polling-Stations | ecbd98cb99e89e97354da3960b0063aa36181b11 | [
"BSD-3-Clause"
] | 29 | 2015-03-10T08:41:34.000Z | 2022-01-12T08:51:38.000Z | polling_stations/apps/data_importers/management/commands/import_southwark.py | smsmith97/UK-Polling-Stations | ecbd98cb99e89e97354da3960b0063aa36181b11 | [
"BSD-3-Clause"
] | 4,112 | 2015-04-01T21:27:38.000Z | 2022-03-31T19:22:11.000Z | polling_stations/apps/data_importers/management/commands/import_southwark.py | smsmith97/UK-Polling-Stations | ecbd98cb99e89e97354da3960b0063aa36181b11 | [
"BSD-3-Clause"
] | 31 | 2015-03-18T14:52:50.000Z | 2022-02-24T10:31:07.000Z | from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "SWK"
addresses_name = "2021-04-13T12:22:55.056323/southwark_deduped.tsv"
stations_name = "2021-04-13T12:22:55.056323/southwark_deduped.tsv"
elections = ["2... | 43.319444 | 123 | 0.579673 | 331 | 3,119 | 5.416918 | 0.55287 | 0.044618 | 0.072504 | 0.105968 | 0.04908 | 0.04908 | 0.04908 | 0.04908 | 0.04908 | 0.04908 | 0 | 0.245581 | 0.328952 | 3,119 | 71 | 124 | 43.929577 | 0.611085 | 0.344021 | 0 | 0.078125 | 0 | 0 | 0.307196 | 0.047643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.03125 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d907d02e7c8c0806f966cf2903fcdc17f123ff4f | 1,065 | py | Python | test1/noding/noding.py | gr0mph/SpringChallenge2020 | f076e4b466e255ce7b911735bd5f38084339f1f0 | [
"MIT"
] | null | null | null | test1/noding/noding.py | gr0mph/SpringChallenge2020 | f076e4b466e255ce7b911735bd5f38084339f1f0 | [
"MIT"
] | null | null | null | test1/noding/noding.py | gr0mph/SpringChallenge2020 | f076e4b466e255ce7b911735bd5f38084339f1f0 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../../')
# Global variables
from test1.test_map import PACMAN_MAP
from test1.test_map import WIDTH
from test1.test_map import HEIGHT
# Class
from Challenge import Case
from Challenge import Node
from Challenge import Edge
from Challenge import BoardNodesAndEdges
# Global
# Method
from Ch... | 21.3 | 60 | 0.633803 | 150 | 1,065 | 4.273333 | 0.406667 | 0.101404 | 0.148206 | 0.074883 | 0.221529 | 0.053042 | 0.053042 | 0 | 0 | 0 | 0 | 0.034483 | 0.264789 | 1,065 | 49 | 61 | 21.734694 | 0.784163 | 0.03662 | 0 | 0.066667 | 0 | 0 | 0.071569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.433333 | 0.166667 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.