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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7420bddada43c87a09f22bf8f56a6111cae1b7e4 | 7,324 | py | Python | build.py | mumblepins-docker/dev-images | 83bb77a96181a484ed9efcc27ca4c49391940f92 | [
"MIT"
] | null | null | null | build.py | mumblepins-docker/dev-images | 83bb77a96181a484ed9efcc27ca4c49391940f92 | [
"MIT"
] | null | null | null | build.py | mumblepins-docker/dev-images | 83bb77a96181a484ed9efcc27ca4c49391940f92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import datetime
import os
import re
import shutil
import sys
import tempfile
import unicodedata
from contextlib import contextmanager
from pprint import pprint
from shlex import split as shsplit
from subprocess import check_output, PIPE, Popen
from timeit import default_timer as timer
from confi... | 32.990991 | 114 | 0.575778 | 919 | 7,324 | 4.428727 | 0.255713 | 0.020639 | 0.015971 | 0.014742 | 0.104177 | 0.057494 | 0.018182 | 0.018182 | 0.018182 | 0 | 0 | 0.006196 | 0.294784 | 7,324 | 221 | 115 | 33.140271 | 0.781801 | 0.012015 | 0 | 0.083799 | 0 | 0 | 0.109293 | 0.017487 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005587 | 0.072626 | null | null | 0.083799 | 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 |
74267d8165e66b20d9248926d412a88c2b3dfff2 | 13,270 | py | Python | pokegraphics.py | maximilan/Poke | 39cbda8301d968c6d5b5f8c0f906e9ad131d5c8b | [
"MIT"
] | 2 | 2018-06-03T16:46:14.000Z | 2018-06-07T11:46:07.000Z | pokegraphics.py | CHerfarth/Poke | 39cbda8301d968c6d5b5f8c0f906e9ad131d5c8b | [
"MIT"
] | null | null | null | pokegraphics.py | CHerfarth/Poke | 39cbda8301d968c6d5b5f8c0f906e9ad131d5c8b | [
"MIT"
] | 1 | 2018-06-02T15:26:53.000Z | 2018-06-02T15:26:53.000Z | from tkinter import *
from time import sleep
class Pokedesign():
def __init__(self, name, canvas, function, module):
self.canvas = canvas
self.module = module
if name == "Bisasam":
id1 = Bisasam(canvas)
elif name == "Bisakn... | 53.508065 | 311 | 0.552148 | 1,925 | 13,270 | 3.774545 | 0.291948 | 0.083953 | 0.014038 | 0.030278 | 0.530278 | 0.521195 | 0.5139 | 0.494633 | 0.484448 | 0.484448 | 0 | 0.268386 | 0.292992 | 13,270 | 247 | 312 | 53.724696 | 0.506075 | 0 | 0 | 0.608163 | 0 | 0 | 0.040395 | 0.013264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126531 | false | 0 | 0.008163 | 0.004082 | 0.2 | 0.004082 | 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 |
742b22e200e81e1472d9bc692a9a8b446e82d4ba | 724 | py | Python | Django/SOC/quickstart/migrations/0004_auto_20171206_0931.py | JanStoltman/100DaysOfCode | 1d18b76ed1e3e942e8392006a5d4bfb41484d047 | [
"MIT"
] | null | null | null | Django/SOC/quickstart/migrations/0004_auto_20171206_0931.py | JanStoltman/100DaysOfCode | 1d18b76ed1e3e942e8392006a5d4bfb41484d047 | [
"MIT"
] | null | null | null | Django/SOC/quickstart/migrations/0004_auto_20171206_0931.py | JanStoltman/100DaysOfCode | 1d18b76ed1e3e942e8392006a5d4bfb41484d047 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2017-12-06 09:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0003_auto_20171206_0928'),
]
operations = [
migrations.AddField(
model_name='place',
name='name',
... | 24.965517 | 63 | 0.559392 | 70 | 724 | 5.657143 | 0.557143 | 0.068182 | 0.098485 | 0.143939 | 0.431818 | 0.431818 | 0.431818 | 0.431818 | 0.237374 | 0 | 0 | 0.078629 | 0.314917 | 724 | 28 | 64 | 25.857143 | 0.719758 | 0.059392 | 0 | 0.454545 | 1 | 0 | 0.092784 | 0.033873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
7430164ed90a55d0cac925dfb2f0e7a42fafaedf | 3,100 | py | Python | src/python/twitter/pants/scm/__init__.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:27.000Z | 2019-12-20T14:13:27.000Z | src/python/twitter/pants/scm/__init__.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | null | null | null | src/python/twitter/pants/scm/__init__.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:29.000Z | 2019-12-20T14:13:29.000Z | # ==================================================================================================
# Copyright 2012 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | 37.804878 | 100 | 0.66871 | 399 | 3,100 | 5.172932 | 0.406015 | 0.033915 | 0.024709 | 0.030523 | 0.195736 | 0.174419 | 0.120155 | 0.120155 | 0.087209 | 0.087209 | 0 | 0.003514 | 0.173871 | 3,100 | 81 | 101 | 38.271605 | 0.802421 | 0.716129 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7432dfb786f0bc34a9e942721e6a7476e8b5f02d | 820 | py | Python | atypes/scrap/qc.py | otosense/atypes | ac5c8b93b4ab66db5779c56407819a96a9dae464 | [
"Apache-2.0"
] | null | null | null | atypes/scrap/qc.py | otosense/atypes | ac5c8b93b4ab66db5779c56407819a96a9dae464 | [
"Apache-2.0"
] | null | null | null | atypes/scrap/qc.py | otosense/atypes | ac5c8b93b4ab66db5779c56407819a96a9dae464 | [
"Apache-2.0"
] | null | null | null | """
Types used in qc
"""
from typing import Sequence, Union, Any, Iterable, Callable
from numbers import Number
PlcSample = Union[Number, str]
Sample = Number
Waveform = Sequence[Sample]
Plc = Sequence[PlcSample]
Chunk = Waveform # TODO: How to express "fixed size"
ChkStat = Number
ChkStatFunc = Callable[[Chunk], Num... | 27.333333 | 100 | 0.753659 | 100 | 820 | 6.17 | 0.57 | 0.019449 | 0.029173 | 0.051864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152439 | 820 | 29 | 101 | 28.275862 | 0.88777 | 0.35122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
743c3ac6966a1833529406798923daea2d3e27c6 | 20,928 | py | Python | cyberweb/controllers/newadmin.py | sumukh210991/Cyberweb | 297bd54c9e223d38818b802087055e397c403f1c | [
"Apache-2.0"
] | null | null | null | cyberweb/controllers/newadmin.py | sumukh210991/Cyberweb | 297bd54c9e223d38818b802087055e397c403f1c | [
"Apache-2.0"
] | null | null | null | cyberweb/controllers/newadmin.py | sumukh210991/Cyberweb | 297bd54c9e223d38818b802087055e397c403f1c | [
"Apache-2.0"
] | null | null | null | import logging
import sys
import re
from pylons import config, request, response, session, app_globals, tmpl_context as c
from pylons.controllers.util import abort, redirect
from pylons.decorators import jsonify
from formalchemy import FieldSet, Grid
# import sqlalchemy as sa
# import sqlalchemy.exceptions as sa_error... | 41.52381 | 160 | 0.566179 | 1,878 | 20,928 | 6.27689 | 0.12886 | 0.009332 | 0.051578 | 0.02757 | 0.422548 | 0.385731 | 0.371479 | 0.340092 | 0.304293 | 0.304293 | 0 | 0.004597 | 0.303565 | 20,928 | 503 | 161 | 41.606362 | 0.804185 | 0.038609 | 0 | 0.393401 | 0 | 0 | 0.088467 | 0.031794 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017767 | 0.088832 | null | null | 0.005076 | 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 |
743e866ab97f89f80749fe2d537a22586288f0c9 | 4,393 | py | Python | recipes/Python/576977_Context_manager_restoring/recipe-576977.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576977_Context_manager_restoring/recipe-576977.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576977_Context_manager_restoring/recipe-576977.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from __future__ import with_statement
from contextlib import contextmanager
import sys
__docformat__ = "restructuredtext"
@contextmanager
def restoring(expr, clone=None):
'''A context manager that evaluates an expression when entering the runtime
context and restores its value when exiting.
This con... | 31.156028 | 80 | 0.610061 | 591 | 4,393 | 4.379019 | 0.277496 | 0.050232 | 0.030912 | 0.013138 | 0.064915 | 0.050232 | 0.029366 | 0.029366 | 0.029366 | 0.029366 | 0 | 0.005487 | 0.294787 | 4,393 | 140 | 81 | 31.378571 | 0.82989 | 0.122695 | 0 | 0.114943 | 0 | 0 | 0.030348 | 0 | 0 | 0 | 0 | 0 | 0.218391 | 0 | null | null | 0 | 0.034483 | 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 |
743ead46a82aec17003176f495af3c72cfff9d3f | 707 | py | Python | setup.py | dashdrum/django-reportview | 617166b0c923fadebe5dcea1e73e598ca5a46d1c | [
"NCSA"
] | 7 | 2015-09-17T19:24:19.000Z | 2017-03-08T17:13:49.000Z | setup.py | dashdrum/django-reportview | 617166b0c923fadebe5dcea1e73e598ca5a46d1c | [
"NCSA"
] | null | null | null | setup.py | dashdrum/django-reportview | 617166b0c923fadebe5dcea1e73e598ca5a46d1c | [
"NCSA"
] | null | null | null | from setuptools import setup
setup(name='django_reportview',
version='0.1',
description='Class-based views for PDF output',
long_description="A mixin and class-based views, drop-in replacements for DetailView and ListView, that allow easy creation of PDF reports using Report Lab's template language",... | 41.588235 | 183 | 0.677511 | 85 | 707 | 5.564706 | 0.764706 | 0.042283 | 0.063425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005254 | 0.192362 | 707 | 17 | 184 | 41.588235 | 0.823117 | 0 | 0 | 0 | 0 | 0.0625 | 0.522599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7448576a5b3b65107018cbf9c9e8d41f8b7b5f6e | 21,660 | py | Python | UI/gui.py | Logmytech/youtube-dl-QT | 1497297719a95c4f70fbfa32e0fa4e38cdd475dc | [
"MIT"
] | 1 | 2018-03-17T17:27:36.000Z | 2018-03-17T17:27:36.000Z | UI/gui.py | Logmytech/youtube-dl-QT | 1497297719a95c4f70fbfa32e0fa4e38cdd475dc | [
"MIT"
] | null | null | null | UI/gui.py | Logmytech/youtube-dl-QT | 1497297719a95c4f70fbfa32e0fa4e38cdd475dc | [
"MIT"
] | 2 | 2020-03-27T00:30:39.000Z | 2020-04-25T03:22:24.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui_qt-designer-beta.ui'
#
# Created: Sun Jan 18 04:09:32 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
... | 60.166667 | 199 | 0.721653 | 2,110 | 21,660 | 7.291943 | 0.165403 | 0.075068 | 0.040556 | 0.003185 | 0.28071 | 0.190173 | 0.149812 | 0.093527 | 0.083582 | 0.083582 | 0 | 0.025069 | 0.16205 | 21,660 | 359 | 200 | 60.334262 | 0.822645 | 0.010388 | 0 | 0.093023 | 1 | 0.008721 | 0.127363 | 0.013114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014535 | false | 0 | 0.005814 | 0.008721 | 0.031977 | 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 |
7448e46927ad644e3309e0833e8bcf7e6f0b7ff4 | 2,166 | py | Python | secure_mail/settings.py | ckleemann/django-secure-mail | dccb8f200ee6b9b7a9a5053aee52f333dd06e73a | [
"BSD-2-Clause"
] | 14 | 2017-04-21T03:09:17.000Z | 2021-12-23T09:55:20.000Z | secure_mail/settings.py | ckleemann/django-secure-mail | dccb8f200ee6b9b7a9a5053aee52f333dd06e73a | [
"BSD-2-Clause"
] | 11 | 2018-02-23T09:26:36.000Z | 2020-09-07T23:42:23.000Z | secure_mail/settings.py | ckleemann/django-secure-mail | dccb8f200ee6b9b7a9a5053aee52f333dd06e73a | [
"BSD-2-Clause"
] | 3 | 2018-02-25T15:38:47.000Z | 2020-04-11T22:13:01.000Z | from django.conf import settings
# DEFAULT_FAILURE_HANDLERS = {
# 'message': 'secure_mail.handlers.default_handle_failed_encryption',
# 'alternative': 'secure_mail.handlers.default_handle_failed_alternative_encryption', # noqa: E501
# 'attachment': 'secure_mail.handlers.default_handle_failed_attach... | 41.653846 | 104 | 0.727608 | 250 | 2,166 | 5.864 | 0.204 | 0.102319 | 0.128922 | 0.153479 | 0.742838 | 0.598226 | 0.496589 | 0.496589 | 0.496589 | 0.496589 | 0 | 0.011905 | 0.146814 | 2,166 | 51 | 105 | 42.470588 | 0.781385 | 0.362881 | 0 | 0 | 0 | 0 | 0.430982 | 0.328988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.04 | 0 | 0.04 | 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 |
744c90eff6f8acb4c5822503c933e62c20a960bc | 6,178 | py | Python | database/mycrypto.py | HenryDangPRG/iot-sensor-framework | 9675b8e84804258cdbfe6e29c3748649f8a0acb6 | [
"CNRI-Python"
] | 6 | 2019-06-20T18:19:18.000Z | 2020-05-17T04:35:11.000Z | database/mycrypto.py | HenryDangPRG/iot-sensor-framework | 9675b8e84804258cdbfe6e29c3748649f8a0acb6 | [
"CNRI-Python"
] | null | null | null | database/mycrypto.py | HenryDangPRG/iot-sensor-framework | 9675b8e84804258cdbfe6e29c3748649f8a0acb6 | [
"CNRI-Python"
] | 5 | 2019-12-16T15:52:47.000Z | 2021-09-17T16:09:27.000Z | from werkzeug.serving import make_ssl_devcert
import ssl
from Crypto.Cipher import AES
from Crypto import Random
from Crypto.Util import Counter
import os
import os.path
import hashlib
import datetime
from dateutil import parser
import time
from Crypto.Hash.MD2 import bchr, bord
class MyCrypto:
KEY_SIZE = 32
... | 40.379085 | 186 | 0.629492 | 807 | 6,178 | 4.662949 | 0.266419 | 0.055807 | 0.037204 | 0.018602 | 0.315174 | 0.23173 | 0.203561 | 0.17114 | 0.132341 | 0.132341 | 0 | 0.027944 | 0.270152 | 6,178 | 152 | 187 | 40.644737 | 0.806609 | 0.266267 | 0 | 0.189474 | 0 | 0 | 0.064845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.094737 | 0.126316 | 0.010526 | 0.378947 | 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 |
74515f651593987d16b11a45a3e8596cd7a245ee | 1,227 | py | Python | mkt/webapps/management/commands/list_packaged_apps.py | muffinresearch/zamboni | 045a6f07c775b99672af6d9857d295ed02fe5dd9 | [
"BSD-3-Clause"
] | null | null | null | mkt/webapps/management/commands/list_packaged_apps.py | muffinresearch/zamboni | 045a6f07c775b99672af6d9857d295ed02fe5dd9 | [
"BSD-3-Clause"
] | null | null | null | mkt/webapps/management/commands/list_packaged_apps.py | muffinresearch/zamboni | 045a6f07c775b99672af6d9857d295ed02fe5dd9 | [
"BSD-3-Clause"
] | null | null | null | from optparse import make_option
from django.core.exceptions import ObjectDoesNotExist
from django.core.management.base import BaseCommand
import amo
from mkt.files.models import File
HELP = 'List all Marketplace packaged apps'
statuses = {'pending': amo.STATUS_PENDING,
'public': amo.STATUS_PUBLIC,
... | 25.040816 | 74 | 0.603912 | 129 | 1,227 | 5.581395 | 0.51938 | 0.05 | 0.038889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297474 | 1,227 | 48 | 75 | 25.5625 | 0.835267 | 0 | 0 | 0 | 0 | 0 | 0.099036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.172414 | null | null | 0.034483 | 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 |
7451e01166a79ad4b24fbba6813994c3b7f9862c | 2,754 | py | Python | src/origin/api/testing/cookies.py | RasmusGodske/eo-platform-utils | 4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d | [
"Apache-2.0"
] | null | null | null | src/origin/api/testing/cookies.py | RasmusGodske/eo-platform-utils | 4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d | [
"Apache-2.0"
] | null | null | null | src/origin/api/testing/cookies.py | RasmusGodske/eo-platform-utils | 4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from datetime import datetime
from wsgiref.headers import Headers
from http.cookies import SimpleCookie
class CookieTester(object):
"""
Helper for testing cookies in HTTP responses.
TODO Test this class.
"""
def __init__(self, headers: Headers):
"""
:pa... | 31.295455 | 79 | 0.535585 | 303 | 2,754 | 4.80198 | 0.254125 | 0.098282 | 0.113402 | 0.14433 | 0.17457 | 0.140206 | 0.140206 | 0.140206 | 0 | 0 | 0 | 0 | 0.343863 | 2,754 | 87 | 80 | 31.655172 | 0.805202 | 0.138707 | 0 | 0.041667 | 0 | 0 | 0.061688 | 0 | 0 | 0 | 0 | 0.011494 | 0.270833 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74554b313d4a4b251418937cf252d9520d633ee6 | 25,512 | py | Python | software/nnet/isbi/deploy/deploy.py | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 14 | 2017-02-07T12:41:06.000Z | 2022-01-19T02:52:32.000Z | software/nnet/isbi/deploy/deploy.py | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 5 | 2017-02-07T01:51:34.000Z | 2021-03-31T15:00:33.000Z | software/nnet/isbi/deploy/deploy.py | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 3 | 2017-11-16T04:04:55.000Z | 2018-05-11T11:33:51.000Z | import os
import yaml
import sys
import numpy as np
from scipy.ndimage.morphology import distance_transform_edt
from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage.interpolation import map_coordinates
nnetpath = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2])
sys.path.append(os.path.join(nn... | 36.813853 | 120 | 0.603128 | 3,008 | 25,512 | 5.100066 | 0.215093 | 0.002477 | 0.002607 | 0.004172 | 0.233492 | 0.193403 | 0.166612 | 0.152858 | 0.124373 | 0.102601 | 0 | 0.040119 | 0.288727 | 25,512 | 693 | 121 | 36.813853 | 0.805301 | 0.118807 | 0 | 0.201954 | 0 | 0 | 0.081198 | 0 | 0 | 0 | 0 | 0 | 0.029316 | 0 | null | null | 0 | 0.081433 | null | null | 0.019544 | 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 |
74564b5629dda1869cbd6dbb218222ac91c74319 | 510 | py | Python | src/python/function/aluguel_carro.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | src/python/function/aluguel_carro.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | src/python/function/aluguel_carro.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Aluguel de carro
Escreva um programa que pergunte a quantidade de km percorridos por um carro alugado pelo
usuario, assim como a quantidade de dias pelos quais o carro foi alugado. Calcule o preco a pagar,
sabendo que o carro custa R$ 60,00 por dia e R$ 0,15 por km rodado.
"""
def pay(km, da... | 28.333333 | 98 | 0.690196 | 91 | 510 | 3.78022 | 0.615385 | 0.052326 | 0.075581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.194118 | 510 | 18 | 99 | 28.333333 | 0.807786 | 0.576471 | 0 | 0 | 0 | 0 | 0.291866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
745d82ac3363269214e8509dbee5635531ff6219 | 345 | py | Python | Estructura de control selectivas/Ejercicio8.py | Argenta47/talleres_de_algoritmos | cfca1984c69702d48fb165070eb0c60b16977e51 | [
"MIT"
] | null | null | null | Estructura de control selectivas/Ejercicio8.py | Argenta47/talleres_de_algoritmos | cfca1984c69702d48fb165070eb0c60b16977e51 | [
"MIT"
] | null | null | null | Estructura de control selectivas/Ejercicio8.py | Argenta47/talleres_de_algoritmos | cfca1984c69702d48fb165070eb0c60b16977e51 | [
"MIT"
] | null | null | null | """
Datos de entrada
P-->p-->int
Q-->q-->int
Datos de salida
mensaje-->m-->float
"""
p=int(input("Ingrese el valor de p "))
q=int(input("Ingrese el valor de q "))
if(p**3+q**4-2*p**2>680):
print(str(p)+" y "+ str(q)+" satisfacen la expresión")
else:
(p**3+q**4-2*p**2<680)
print(str(p)+" y "+ str(q)+" no s... | 20.294118 | 61 | 0.57971 | 68 | 345 | 2.941176 | 0.397059 | 0.07 | 0.15 | 0.17 | 0.48 | 0.48 | 0.24 | 0.24 | 0.24 | 0.24 | 0 | 0.048276 | 0.15942 | 345 | 16 | 62 | 21.5625 | 0.641379 | 0.22029 | 0 | 0 | 0 | 0 | 0.386973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
7460d407ed7fda706f57e1dfc7aab62fb743016c | 209 | py | Python | PythonExercicios/ex034.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | PythonExercicios/ex034.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | PythonExercicios/ex034.py | MatthewsTomts/Python_Class | f326d521d62c45a4fcb429d2a22cf2ab958492cb | [
"MIT"
] | null | null | null | sal = float(input('Digite seu salário: R$'))
if sal <= 1250:
novo = sal * 1.15
else:
novo = sal * 1.1
print(f'Seu antigo salário era \033[1;37m{sal}\033[m e o seu novo salário é \033[36;1m{novo:.2f}')
| 29.857143 | 98 | 0.626794 | 42 | 209 | 3.119048 | 0.619048 | 0.10687 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14881 | 0.196172 | 209 | 6 | 99 | 34.833333 | 0.630952 | 0 | 0 | 0 | 0 | 0.166667 | 0.526316 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7461c57c18b52ad1d8e3cd09f650753f60224a77 | 974 | py | Python | photo_organizer/hasher.py | qchero/PhotoOrganizer | 2b617645227528087415fe15c8b7ec1f246ee1f7 | [
"MIT"
] | null | null | null | photo_organizer/hasher.py | qchero/PhotoOrganizer | 2b617645227528087415fe15c8b7ec1f246ee1f7 | [
"MIT"
] | null | null | null | photo_organizer/hasher.py | qchero/PhotoOrganizer | 2b617645227528087415fe15c8b7ec1f246ee1f7 | [
"MIT"
] | null | null | null | import hashlib
import os
import pathlib
class Hasher:
def __init__(self, size_threshold: int):
"""
@param size_threshold: The threshold of whether the hash should be calculated by MD5 or size
"""
self.size_threshold = size_threshold
def get_hash(self, file_path: pathlib.Path)... | 34.785714 | 101 | 0.654004 | 146 | 974 | 4.260274 | 0.493151 | 0.07717 | 0.081994 | 0.067524 | 0.067524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007123 | 0.279261 | 974 | 27 | 102 | 36.074074 | 0.878917 | 0.482546 | 0 | 0 | 0 | 0 | 0.004796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.727273 | 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 |
7466580fc173fa42b1d85f7ff630396e4d824a99 | 7,400 | py | Python | geoevents/operations/views.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 25 | 2015-01-06T15:37:31.000Z | 2020-12-10T19:05:22.000Z | geoevents/operations/views.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 2 | 2015-01-31T02:36:58.000Z | 2015-02-01T00:11:15.000Z | geoevents/operations/views.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 5 | 2016-01-01T15:04:49.000Z | 2019-05-30T23:34:30.000Z | # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
from django.contrib import messages
from django.core import serializers
from django.core.exceptions import Permis... | 33.183857 | 140 | 0.673784 | 896 | 7,400 | 5.422991 | 0.25558 | 0.018522 | 0.02305 | 0.013995 | 0.172052 | 0.122659 | 0.098374 | 0.098374 | 0.08438 | 0.057213 | 0 | 0.007147 | 0.22473 | 7,400 | 222 | 141 | 33.333333 | 0.839812 | 0.087162 | 0 | 0.214765 | 0 | 0 | 0.074185 | 0.009273 | 0 | 0 | 0 | 0.004505 | 0 | 1 | 0.114094 | false | 0 | 0.107383 | 0.006711 | 0.503356 | 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 |
746f42de18c5acabc2eaba8fafdf64a3edf99aec | 619 | py | Python | tests/car.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | tests/car.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | tests/car.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | from core.Navigator import Navigator
class Car:
"""
Example class
"""
def __init__(self):
self.color = 'white'
self.height = 80
self.speed = 180
self.wheels = 4
def set_color(self, color):
self.color = color
def set_properties(self, height, speed, whee... | 22.925926 | 83 | 0.57189 | 74 | 619 | 4.675676 | 0.310811 | 0.130058 | 0.16185 | 0.104046 | 0.132948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.3021 | 619 | 27 | 83 | 22.925926 | 0.787037 | 0.021002 | 0 | 0.111111 | 0 | 0 | 0.06599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.388889 | 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 |
7472eaa4e59e3d3efba573736027220b2d8640c9 | 701 | py | Python | gornany/views.py | disooqi/ALT-annotation-tool | 7121a7c02cec5d7cb467cea05e03d99ac60471ea | [
"MIT"
] | null | null | null | gornany/views.py | disooqi/ALT-annotation-tool | 7121a7c02cec5d7cb467cea05e03d99ac60471ea | [
"MIT"
] | null | null | null | gornany/views.py | disooqi/ALT-annotation-tool | 7121a7c02cec5d7cb467cea05e03d99ac60471ea | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
'''
created on 2017 Sep 03
by disooqi
'''
from django.shortcuts import render
from django.http import HttpResponse
from django_project import settings
# Create your views here.
def index(request):
proj = settings.client.projects.get('2892')
aa_spider = proj.spiders.g... | 25.962963 | 93 | 0.697575 | 102 | 701 | 4.647059 | 0.647059 | 0.063291 | 0.050633 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031987 | 0.152639 | 701 | 26 | 94 | 26.961538 | 0.765993 | 0.194009 | 0 | 0 | 0 | 0 | 0.157692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7474bab5fa85b63809e195515ce67dc3c90ae8d5 | 1,565 | py | Python | datasets/nhse_stats/topics/maternity_breastfeeding.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | null | null | null | datasets/nhse_stats/topics/maternity_breastfeeding.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 11 | 2015-03-02T16:30:20.000Z | 2016-11-29T12:16:15.000Z | datasets/nhse_stats/topics/maternity_breastfeeding.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 2 | 2020-12-25T20:38:31.000Z | 2021-04-11T07:35:01.000Z | """ http://www.england.nhs.uk/statistics/statistical-work-areas/maternity-and-breastfeeding/ """
import collections
import calendar
import datetime
import re
import urllib
from lxml.html import fromstring, tostring
import requests
import slugify
from publish.lib.helpers import to_markdown, anchor_to_resource, get_do... | 35.568182 | 97 | 0.666454 | 190 | 1,565 | 5.452632 | 0.531579 | 0.046332 | 0.096525 | 0.063707 | 0.212355 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0 | 0.004136 | 0.227476 | 1,565 | 43 | 98 | 36.395349 | 0.852771 | 0 | 0 | 0 | 0 | 0.030303 | 0.431586 | 0.015657 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
747c84066629d908160fbf46d8115c2de1f5a592 | 3,261 | py | Python | ucsmsdk/mometa/flowctrl/FlowctrlItem.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | ucsmsdk/mometa/flowctrl/FlowctrlItem.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | ucsmsdk/mometa/flowctrl/FlowctrlItem.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | """This module contains the general information for FlowctrlItem ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class FlowctrlItemConsts:
CONFIG_NOT_SUPPORTED = "not-supported"
CONFIG_OK = "ok"
PRIO_AUTO = "auto"
... | 50.169231 | 257 | 0.622202 | 355 | 3,261 | 5.597183 | 0.301408 | 0.056366 | 0.112733 | 0.169099 | 0.260695 | 0.213387 | 0 | 0 | 0 | 0 | 0 | 0.031262 | 0.185833 | 3,261 | 64 | 258 | 50.953125 | 0.717137 | 0.031892 | 0 | 0 | 0 | 0.058824 | 0.24253 | 0.08328 | 0 | 0 | 0.011125 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.058824 | 0 | 0.372549 | 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 |
7484e149e3b73601928423f61ed3a6a8419078f6 | 7,274 | py | Python | test/wrapper/system_tests/adapter_mongo/adapter_mongo.py | SRCH2/srch2-ngn | 925f36971aa6a8b31cdc59f7992790169e97ee00 | [
"BSD-3-Clause"
] | 14 | 2016-01-15T20:26:54.000Z | 2018-11-26T20:47:43.000Z | test/wrapper/system_tests/adapter_mongo/adapter_mongo.py | SRCH2/srch2-ngn | 925f36971aa6a8b31cdc59f7992790169e97ee00 | [
"BSD-3-Clause"
] | 2 | 2016-04-26T05:29:01.000Z | 2016-05-07T00:13:38.000Z | test/wrapper/system_tests/adapter_mongo/adapter_mongo.py | SRCH2/srch2-ngn | 925f36971aa6a8b31cdc59f7992790169e97ee00 | [
"BSD-3-Clause"
] | 7 | 2016-02-27T11:35:59.000Z | 2018-11-26T20:47:59.000Z | #These tests are used for the adapter_mongdb
#Require pymongo and MongoDB running as replication mode
#Test 1: test loading records from the MongoDB table to create a index.
#Test 2: test listener, during the server running, update the record in the mongodb,
# the listener will fetch the results.
#Test 3: test ... | 32.044053 | 105 | 0.658647 | 907 | 7,274 | 5.238148 | 0.24366 | 0.028415 | 0.014734 | 0.009261 | 0.31425 | 0.291307 | 0.24879 | 0.230267 | 0.197432 | 0.164176 | 0 | 0.011905 | 0.226285 | 7,274 | 226 | 106 | 32.185841 | 0.832267 | 0.291586 | 0 | 0.375887 | 0 | 0 | 0.101881 | 0.024687 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035461 | 0.021277 | null | null | 0.134752 | 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 |
7486810e7738d5d5fb042be3d6a110a2f43a5a0a | 1,898 | py | Python | exercise_2017/12th_week/classroom/BJController.py | Taewan-P/python_study | f347e370aaa33aba5ab233252bcd759b94615348 | [
"MIT"
] | null | null | null | exercise_2017/12th_week/classroom/BJController.py | Taewan-P/python_study | f347e370aaa33aba5ab233252bcd759b94615348 | [
"MIT"
] | null | null | null | exercise_2017/12th_week/classroom/BJController.py | Taewan-P/python_study | f347e370aaa33aba5ab233252bcd759b94615348 | [
"MIT"
] | null | null | null | from card import *
from hand import *
from reader import *
class BJController(object):
"""docstring for BJController"""
def __init__(self,name):
self.__player = PlayerHand(name)
self.__dealer = Hand()
self.__deck = Deck()
def play(self):
print("== new game ==")
player = self.__player
dealer =... | 26 | 62 | 0.508957 | 204 | 1,898 | 4.632353 | 0.303922 | 0.074074 | 0.069841 | 0.053968 | 0.328042 | 0.285714 | 0.15873 | 0.15873 | 0.086772 | 0 | 0 | 0.012215 | 0.353003 | 1,898 | 73 | 63 | 26 | 0.757329 | 0 | 0 | 0.280702 | 0 | 0 | 0.0782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.22807 | 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 |
748e1e1b17a2070f17bb8fc5cff4ce2b007e61bc | 525 | py | Python | books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | """create_upload_spreadsheets.py
구글 스프레드 시트 문서 열기, 생성하기, 업로드 하기
"""
import ezsheets
# 등록된 문서 열기
sheet_id = "1jDZEdvSIh4TmZxccyy0ZXrH-ELlrwq8_YYiZrEOB4jg"
ss = ezsheets.Spreadsheet(sheet_id)
print(ss) # <Spreadsheet title="Bean Count", 1 sheets>
print(ss.title) # Bean Count
# 빈 스프레드 시트 문서 만들기
ss = ezsheets.createS... | 23.863636 | 62 | 0.737143 | 82 | 525 | 4.658537 | 0.512195 | 0.091623 | 0.094241 | 0.062827 | 0.120419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.148571 | 525 | 22 | 63 | 23.863636 | 0.841163 | 0.382857 | 0 | 0.272727 | 0 | 0 | 0.266026 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 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 | 0 | 1 | 0 | 1 |
748e520c313b328b175a65901d4aec0a1d3d847c | 829 | py | Python | CloudQuestions_web/accounts/models.py | Qkessler/CloudQuestions | f9cdcb8d928f247937479929fb75856692063236 | [
"MIT"
] | 7 | 2020-08-19T10:00:47.000Z | 2020-12-18T12:13:53.000Z | CloudQuestions_web/accounts/models.py | Qkessler/CloudQuestions | f9cdcb8d928f247937479929fb75856692063236 | [
"MIT"
] | 13 | 2020-05-03T15:25:14.000Z | 2021-06-09T18:02:14.000Z | CloudQuestions_web/accounts/models.py | Qkessler/CloudQuestions | f9cdcb8d928f247937479929fb75856692063236 | [
"MIT"
] | null | null | null | from django.db import models
from datetime import datetime
from django.conf import settings
from django.utils.translation import gettext_lazy as _
class Group(models.Model):
created = models.DateField(default=datetime.now)
creator = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.DO_NOTH... | 28.586207 | 77 | 0.722557 | 102 | 829 | 5.637255 | 0.421569 | 0.076522 | 0.073043 | 0.097391 | 0.351304 | 0.264348 | 0.264348 | 0.177391 | 0.177391 | 0 | 0 | 0.002972 | 0.188179 | 829 | 28 | 78 | 29.607143 | 0.851412 | 0 | 0 | 0.095238 | 0 | 0 | 0.05314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.619048 | 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 |
749ea06cdb9b83cbd63071eb9e91478aa543f6bf | 637 | py | Python | src/house_robber_iii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null | src/house_robber_iii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null | src/house_robber_iii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null |
"""House Robber III"""
from typing import Tuple
class TreeNode:
"""Definition for a binary tree node"""
def __init__(self, val: int = 0, left: 'TreeNode' = None, right: 'TreeNode' = None):
self.val = val
self.left = left
self.right = right
def rob(root: TreeNode) -> int:
"""ht... | 21.233333 | 88 | 0.609105 | 89 | 637 | 4.224719 | 0.404494 | 0.093085 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010395 | 0.244898 | 637 | 29 | 89 | 21.965517 | 0.77131 | 0.147567 | 0 | 0 | 0 | 0 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.533333 | 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 |
74a22e987ae986ed21a9c7d780a2efb0a37ad024 | 3,772 | py | Python | todocli/views.py | thatrand0mnpc/TodoCli | 6f8136f8d4dce04cb10f694da1c997e1ae6bf34e | [
"MIT"
] | null | null | null | todocli/views.py | thatrand0mnpc/TodoCli | 6f8136f8d4dce04cb10f694da1c997e1ae6bf34e | [
"MIT"
] | null | null | null | todocli/views.py | thatrand0mnpc/TodoCli | 6f8136f8d4dce04cb10f694da1c997e1ae6bf34e | [
"MIT"
] | null | null | null | """Views for todo model."""
from todocli.base import Base, engine, Session
from todocli.models import Todo
from typing import Iterator
Base.metadata.create_all(engine) # create tables for models
def add_todo(title: str, check: bool = False) -> None:
"""Add todo items.
:param title: todo title
:type ti... | 26.942857 | 75 | 0.581124 | 464 | 3,772 | 4.69181 | 0.12931 | 0.060634 | 0.066146 | 0.073496 | 0.649058 | 0.541571 | 0.45751 | 0.378503 | 0.345429 | 0.306844 | 0 | 0 | 0.292418 | 3,772 | 139 | 76 | 27.136691 | 0.815661 | 0.236214 | 0 | 0.698795 | 0 | 0 | 0.045471 | 0 | 0 | 0 | 0 | 0.122302 | 0 | 1 | 0.084337 | false | 0 | 0.036145 | 0 | 0.120482 | 0.108434 | 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 |
74a23a99b33be96de17caa474b9a4df3a23ab6a6 | 293 | py | Python | alldata/migrations/0013_delete_file.py | askhatkenenbay/Learning_Management_System_Backend | 3e241a9f401623eec1c705ee5a38ad595b899c3b | [
"MIT"
] | null | null | null | alldata/migrations/0013_delete_file.py | askhatkenenbay/Learning_Management_System_Backend | 3e241a9f401623eec1c705ee5a38ad595b899c3b | [
"MIT"
] | null | null | null | alldata/migrations/0013_delete_file.py | askhatkenenbay/Learning_Management_System_Backend | 3e241a9f401623eec1c705ee5a38ad595b899c3b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-09 16:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('alldata', '0012_auto_20201106_0539'),
]
operations = [
migrations.DeleteModel(
name='File',
),
]
| 17.235294 | 47 | 0.600683 | 32 | 293 | 5.40625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148325 | 0.286689 | 293 | 16 | 48 | 18.3125 | 0.679426 | 0.153584 | 0 | 0 | 1 | 0 | 0.138211 | 0.093496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
776979078c2da2db11d72ca74aad5e83af27346f | 266 | py | Python | tests/test_tone.py | StevenKangWei/tone | 21a8db685bf72a57b9a3749044866934cbc68071 | [
"MIT"
] | null | null | null | tests/test_tone.py | StevenKangWei/tone | 21a8db685bf72a57b9a3749044866934cbc68071 | [
"MIT"
] | null | null | null | tests/test_tone.py | StevenKangWei/tone | 21a8db685bf72a57b9a3749044866934cbc68071 | [
"MIT"
] | null | null | null | # coding=utf-8
import time
import json
import unittest
from test_base import BaseTestCase
class TestCase(BaseTestCase):
def test_utils(self):
import tone
utils = tone.utils
return utils
if __name__ == '__main__':
TestCase.main()
| 14.777778 | 34 | 0.684211 | 33 | 266 | 5.212121 | 0.636364 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.244361 | 266 | 17 | 35 | 15.647059 | 0.850746 | 0.045113 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.727273 | 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 |
7769ff69660b97c33428f6bcc1ce5f5ae346ca0f | 454 | py | Python | basiclive/core/lims/templatetags/truncate_filters.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | null | null | null | basiclive/core/lims/templatetags/truncate_filters.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | 1 | 2020-12-03T15:27:09.000Z | 2020-12-03T15:27:09.000Z | basiclive/core/lims/templatetags/truncate_filters.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:06:09.000Z | 2021-09-28T21:06:09.000Z | from django import template
register = template.Library()
@register.filter("truncate_chars")
def truncate_chars(value, max_length):
if len(value) <= max_length:
return value
truncd_val = value[:max_length]
if value[max_length] != " ":
rightmost_space = truncd_val.rfind(... | 28.375 | 55 | 0.614537 | 51 | 454 | 5.196078 | 0.431373 | 0.169811 | 0.211321 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.27533 | 454 | 16 | 56 | 28.375 | 0.802432 | 0 | 0 | 0 | 0 | 0 | 0.041758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
776c9df66d4333fd12a36b17c97a1c3a203e6dfc | 4,589 | py | Python | poker/poker.py | jmvan/SealPupBot | f6d29f4269db9abba611e623a66b4dc9326b2cfb | [
"MIT"
] | null | null | null | poker/poker.py | jmvan/SealPupBot | f6d29f4269db9abba611e623a66b4dc9326b2cfb | [
"MIT"
] | null | null | null | poker/poker.py | jmvan/SealPupBot | f6d29f4269db9abba611e623a66b4dc9326b2cfb | [
"MIT"
] | null | null | null | import discord
from game import GameState
from game import Game
class Poker:
"""
The Poker class represents a finite state machine that determines the state of the poker game.
"""
def __init__(self):
self.game = None
def process_game_state(self, message: discord.Message) -> None:
f... | 40.973214 | 99 | 0.621922 | 556 | 4,589 | 4.942446 | 0.188849 | 0.131004 | 0.072052 | 0.090975 | 0.537846 | 0.441048 | 0.401019 | 0.351528 | 0.302766 | 0.26492 | 0 | 0.001222 | 0.286773 | 4,589 | 111 | 100 | 41.342342 | 0.838375 | 0.074962 | 0 | 0.114286 | 0 | 0 | 0.083475 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 0 | null | null | 0 | 0.042857 | 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 |
777a7ab71733d36640d77a21470f3e6aa8b6dd97 | 844 | py | Python | transactions/migrations/0007_auto_20200822_1740.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | null | null | null | transactions/migrations/0007_auto_20200822_1740.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | 4 | 2021-04-08T19:49:25.000Z | 2021-06-10T20:08:37.000Z | transactions/migrations/0007_auto_20200822_1740.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1 on 2020-08-23 00:40
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('transactions', '0006_auto_20200818_1748'),
]
operations = [
migrations.RemoveField(
... | 28.133333 | 139 | 0.623223 | 85 | 844 | 6.047059 | 0.6 | 0.052529 | 0.116732 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048154 | 0.261848 | 844 | 29 | 140 | 29.103448 | 0.776886 | 0.050948 | 0 | 0.26087 | 1 | 0 | 0.166458 | 0.060075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
777bb0f4e7694a6a8fe8f07b51ba6caaf5f62844 | 4,972 | py | Python | main.py | jinPrelude/ksp-ai | d8b235d1ef77afe413fbff2e859e1210330bde37 | [
"MIT"
] | null | null | null | main.py | jinPrelude/ksp-ai | d8b235d1ef77afe413fbff2e859e1210330bde37 | [
"MIT"
] | null | null | null | main.py | jinPrelude/ksp-ai | d8b235d1ef77afe413fbff2e859e1210330bde37 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import gym
import argparse
import os
import utils
import TD3
import kerbal_rl.env as envs
def generate_input(obs) :
mean_altitude = obs[1].mean_altitude
speed = obs[1].vertical_speed
dry_mass = obs[0].dry_mass
mass = obs[0].mass
max_thrust = obs[0].max_thrust
thrust = obs[0].t... | 33.594595 | 146 | 0.695093 | 694 | 4,972 | 4.773775 | 0.25072 | 0.035315 | 0.066707 | 0.020827 | 0.140658 | 0.128584 | 0.076064 | 0.076064 | 0.076064 | 0.076064 | 0 | 0.013058 | 0.152856 | 4,972 | 147 | 147 | 33.823129 | 0.773504 | 0.145817 | 0 | 0.114286 | 1 | 0 | 0.130806 | 0.036967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.07619 | 0 | 0.114286 | 0.07619 | 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 |
77805ee456597254eb17b44ff3f364be35f40af7 | 2,042 | py | Python | eyelab/views/ui/ui_text_window.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_text_window.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_text_window.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'ui_text_window.ui'
##
## Created by: Qt User Interface Compiler version 6.1.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 39.269231 | 189 | 0.581293 | 214 | 2,042 | 5.53271 | 0.556075 | 0.050676 | 0.040541 | 0.033784 | 0.045608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020561 | 0.214006 | 2,042 | 51 | 190 | 40.039216 | 0.717134 | 0.131734 | 0 | 0 | 1 | 0.096774 | 0.29386 | 0.033208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.193548 | 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 |
778153d7f0666680bad8325e87e95aab4543c800 | 404 | py | Python | backend/serializers/languageSerializer.py | Atari4800/fast-backend | 4864300351f5cb93638deb6c18017149eb7f17ca | [
"MIT"
] | 1 | 2021-11-25T22:57:59.000Z | 2021-11-25T22:57:59.000Z | backend/serializers/languageSerializer.py | Capstone-Team-Fast/fast-backend | 7854a2731ba0923e89581c1fbb6cc95ea210fed0 | [
"MIT"
] | null | null | null | backend/serializers/languageSerializer.py | Capstone-Team-Fast/fast-backend | 7854a2731ba0923e89581c1fbb6cc95ea210fed0 | [
"MIT"
] | 3 | 2022-01-29T21:32:54.000Z | 2022-03-09T09:30:44.000Z | from rest_framework import serializers
from backend.models import Language
class LanguageSerializer(serializers.ModelSerializer):
class Meta:
model = Language
fields = ['id', 'name']
read_only_fields = ['created_on']
# def create(self, validated_data):
# queryset = Language.o... | 23.764706 | 58 | 0.665842 | 41 | 404 | 6.414634 | 0.707317 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235149 | 404 | 16 | 59 | 25.25 | 0.851133 | 0.306931 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
77815d9f9445c13d114ac55c18e6ba49bcc17d03 | 342 | py | Python | mysterious-mice/spacebook/rovers/migrations/0005_auto_20200801_1240.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | mysterious-mice/spacebook/rovers/migrations/0005_auto_20200801_1240.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | mysterious-mice/spacebook/rovers/migrations/0005_auto_20200801_1240.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | # Generated by Django 3.0.8 on 2020-08-01 16:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("rovers", "0004_auto_20200801_1232"),
]
operations = [
migrations.RenameField(
model_name="rover", old_name="user_name", new_name="userna... | 20.117647 | 74 | 0.628655 | 40 | 342 | 5.2 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121094 | 0.251462 | 342 | 16 | 75 | 21.375 | 0.691406 | 0.131579 | 0 | 0 | 1 | 0 | 0.172881 | 0.077966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7783c72cb4b228f9aeab3c00a131339c8718382e | 1,298 | py | Python | printc/constants.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 1 | 2021-06-01T15:47:37.000Z | 2021-06-01T15:47:37.000Z | printc/constants.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 2 | 2019-08-29T01:31:10.000Z | 2019-08-29T01:34:06.000Z | printc/constants.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 2 | 2019-08-29T01:29:23.000Z | 2019-08-29T01:33:32.000Z | #!/usr/bin/env python3
# coding: utf8
"""
constants.py
Date: 08-21-2019
Description: Defines the codes required for ansi code generation
"""
START = "\033["
END = "\033[0m"
COLOR_CODES = {
"k": "black",
"b": "blue",
"r": "red",
"g": "green",
"p": "purple",
"y": "yellow",
"c": "cyan",
... | 19.373134 | 64 | 0.440678 | 153 | 1,298 | 3.679739 | 0.705882 | 0.035524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11157 | 0.254237 | 1,298 | 66 | 65 | 19.666667 | 0.470041 | 0.100154 | 0 | 0 | 0 | 0 | 0.405522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77865c9e93b91adda117fb283d8b64e46d95ed67 | 3,677 | py | Python | general/permutations.py | aziaami/python-tools | 81e5103a5357ccc4daef97d87a6dd4633f0d72c5 | [
"MIT"
] | null | null | null | general/permutations.py | aziaami/python-tools | 81e5103a5357ccc4daef97d87a6dd4633f0d72c5 | [
"MIT"
] | null | null | null | general/permutations.py | aziaami/python-tools | 81e5103a5357ccc4daef97d87a6dd4633f0d72c5 | [
"MIT"
] | null | null | null | import profile
import os
# compute all permutations of an array
def somji_all_permutations(x, y, file="somji_perms.txt"):
for i in range(len(y)):
new_x = x + y[i]
# print new_x
write_to_file(new_x, file)
new_y = y[:i] + y[i + 1:]
somji_all_permutations(new_x, n... | 24.350993 | 64 | 0.551537 | 479 | 3,677 | 4.093946 | 0.275574 | 0.068842 | 0.028047 | 0.026007 | 0.115247 | 0.046915 | 0.046915 | 0.031617 | 0 | 0 | 0 | 0.008052 | 0.324449 | 3,677 | 150 | 65 | 24.513333 | 0.781401 | 0.184661 | 0 | 0.101124 | 0 | 0 | 0.115619 | 0.034829 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022472 | null | null | 0.067416 | 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 |
77867acf6be42fc50973ce0b6ef73c24580283fe | 274 | py | Python | utils.py | BernardoCassar/MCF_IMPA_2021 | cc17a9674eb376495cd353fb6e7323b1e4e30bdb | [
"MIT"
] | null | null | null | utils.py | BernardoCassar/MCF_IMPA_2021 | cc17a9674eb376495cd353fb6e7323b1e4e30bdb | [
"MIT"
] | null | null | null | utils.py | BernardoCassar/MCF_IMPA_2021 | cc17a9674eb376495cd353fb6e7323b1e4e30bdb | [
"MIT"
] | null | null | null | from functools import wraps
from time import time
def timing(f):
@wraps(f)
def wrap(*args, **kw):
ts = time()
result = f(*args, **kw)
te = time()
print ('Tempo transcorrido: %2.4f sec' % (te-ts))
return result
return wrap | 22.833333 | 57 | 0.547445 | 37 | 274 | 4.054054 | 0.567568 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.317518 | 274 | 12 | 58 | 22.833333 | 0.791444 | 0 | 0 | 0 | 0 | 0 | 0.105455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
778c89a8598972859651f394ad07e2df7d1cc293 | 2,645 | py | Python | tarski/write/latex.py | rmellema/tarski.py | 9ae63478776e70e334a2f72e4a0bc2895b800781 | [
"MIT"
] | null | null | null | tarski/write/latex.py | rmellema/tarski.py | 9ae63478776e70e334a2f72e4a0bc2895b800781 | [
"MIT"
] | 1 | 2018-03-09T11:13:48.000Z | 2018-03-09T11:13:48.000Z | tarski/write/latex.py | rmellema/tarski.py | 9ae63478776e70e334a2f72e4a0bc2895b800781 | [
"MIT"
] | null | null | null | """
The output writer for LaTeX output of the first-order structure.
"""
from . import AbstractModelWriter
from .util import make_pair
class LaTeXModelWriter(AbstractModelWriter):
"""
The LaTeX output writer. The resulting LaTeX output is not a full document, so it can be
included in documents. It depends ... | 36.736111 | 99 | 0.58034 | 316 | 2,645 | 4.813291 | 0.325949 | 0.131492 | 0.197239 | 0.094675 | 0.221565 | 0.162393 | 0.145299 | 0.089415 | 0 | 0 | 0 | 0 | 0.278639 | 2,645 | 71 | 100 | 37.253521 | 0.79717 | 0.277505 | 0 | 0 | 0 | 0 | 0.178571 | 0.026498 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.305556 | 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 |
778e575fd1dac23ac0dc22bbf03c6a35150f9073 | 2,008 | py | Python | app/main/forms/auth_forms.py | robot2051/dto-digitalmarketplace-supplier-frontend | e9994a0b3d710384753495af1870449900150d1b | [
"MIT"
] | 1 | 2018-01-04T18:11:52.000Z | 2018-01-04T18:11:52.000Z | app/main/forms/auth_forms.py | robot2051/dto-digitalmarketplace-supplier-frontend | e9994a0b3d710384753495af1870449900150d1b | [
"MIT"
] | 18 | 2016-08-24T05:24:41.000Z | 2021-07-30T02:01:44.000Z | app/main/forms/auth_forms.py | robot2051/dto-digitalmarketplace-supplier-frontend | e9994a0b3d710384753495af1870449900150d1b | [
"MIT"
] | 5 | 2016-09-13T13:07:15.000Z | 2021-02-15T16:13:41.000Z | from wtforms import PasswordField
from wtforms.fields.core import BooleanField
from wtforms.validators import DataRequired, Email, EqualTo, Length
from dmutils.forms import DmForm, StripWhitespaceStringField
class LoginForm(DmForm):
email_address = StripWhitespaceStringField('Email address', validators=[
... | 33.466667 | 77 | 0.658367 | 198 | 2,008 | 6.656566 | 0.277778 | 0.072838 | 0.176024 | 0.072079 | 0.559181 | 0.526555 | 0.495448 | 0.495448 | 0.443096 | 0.336874 | 0 | 0.015979 | 0.251992 | 2,008 | 59 | 78 | 34.033898 | 0.861518 | 0 | 0 | 0.44898 | 0 | 0 | 0.273904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.265306 | 0.081633 | 0 | 0.326531 | 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 |
779f1d90077ed03499095ade17e3f58717965a7e | 638 | py | Python | model/models.py | TeamChicago/HR-Recommendation-System | f5180dce98545e4f20f022efe79005ef4ff0f7d9 | [
"MIT"
] | null | null | null | model/models.py | TeamChicago/HR-Recommendation-System | f5180dce98545e4f20f022efe79005ef4ff0f7d9 | [
"MIT"
] | 1 | 2021-03-09T04:09:57.000Z | 2021-03-15T02:06:13.000Z | model/models.py | TeamChicago/HR-Recommendation-System | f5180dce98545e4f20f022efe79005ef4ff0f7d9 | [
"MIT"
] | null | null | null | from model.app import db
from datetime import datetime
from sqlalchemy import Column, Integer, DateTime, String, Float
class News(db.Model):
__tablename__='news'
id = db.Column(db.Integer, primary_key=True, unique = True)
text = db.Column(db.String(4096))
# local_date_time = db.Column(DateTime(defaul... | 30.380952 | 68 | 0.68652 | 86 | 638 | 4.848837 | 0.383721 | 0.076739 | 0.1247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.206897 | 638 | 21 | 69 | 30.380952 | 0.816206 | 0.158307 | 0 | 0 | 0 | 0 | 0.041122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.785714 | 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 |
77a10c639fee6151d0d21449a7ba97f7198643a2 | 9,104 | py | Python | Python Serial App/serial_sender_reader.py | alex201102/Python-Apps | 534bf753d08d47c1da356475d1c21a5b8c621a11 | [
"MIT"
] | null | null | null | Python Serial App/serial_sender_reader.py | alex201102/Python-Apps | 534bf753d08d47c1da356475d1c21a5b8c621a11 | [
"MIT"
] | null | null | null | Python Serial App/serial_sender_reader.py | alex201102/Python-Apps | 534bf753d08d47c1da356475d1c21a5b8c621a11 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import Tkinter
import ttk
import tkFileDialog
import serial
import serial.tools.list_ports;
import time
#import sys
class simpleapp_tk(Tkinter.Tk):
def __init__(self,parent):
Tkinter.Tk.__init__(self,parent)
self.parent = parent
... | 37.159184 | 136 | 0.500659 | 839 | 9,104 | 5.405244 | 0.221692 | 0.041235 | 0.039691 | 0.049614 | 0.399559 | 0.318192 | 0.280485 | 0.196251 | 0.175965 | 0.160529 | 0 | 0.011459 | 0.386533 | 9,104 | 244 | 137 | 37.311475 | 0.800537 | 0.044706 | 0 | 0.449438 | 0 | 0 | 0.040303 | 0 | 0.011236 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033708 | null | null | 0.033708 | 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 |
77a34b66afbe1910c9be7ed7e7411620adda3c15 | 1,246 | py | Python | path_arcs.py | RobG73/InkscapeFileMaker | 7a848bac515bbba657db3e06e7d3c88431632533 | [
"MIT"
] | null | null | null | path_arcs.py | RobG73/InkscapeFileMaker | 7a848bac515bbba657db3e06e7d3c88431632533 | [
"MIT"
] | null | null | null | path_arcs.py | RobG73/InkscapeFileMaker | 7a848bac515bbba657db3e06e7d3c88431632533 | [
"MIT"
] | null | null | null | # This is a program showing arcs of circles and ellipses
from ifm import *
filename = "path_arcs.svg"
start(filename)
page_size(400,300)
line_col('#000000') # line colour black
fill_col('none')
line_width(2) # line width = 2px
# Arcs of circles
rx=60
ry=60
x=120
y1=30
y2=130
type=1
l... | 14 | 56 | 0.665329 | 234 | 1,246 | 3.384615 | 0.24359 | 0.079545 | 0.10101 | 0.121212 | 0.686869 | 0.686869 | 0.686869 | 0.686869 | 0.686869 | 0.686869 | 0 | 0.0666 | 0.192616 | 1,246 | 88 | 57 | 14.159091 | 0.720676 | 0.210273 | 0 | 0.677966 | 0 | 0 | 0.062048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016949 | 0 | 0.016949 | 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 |
77a52cf26811a420093e1855e5cc1d7672f7e637 | 354 | py | Python | jcvi/utils/console.py | paradoxcell/jcvi | 3b161796234670ce1c4894974eaeb590d35cf2a2 | [
"BSD-2-Clause"
] | 517 | 2015-01-04T13:09:55.000Z | 2022-03-30T13:42:20.000Z | jcvi/utils/console.py | xuzhougeng/jcvi | 225a7f0375a2f8b31d3c44b8134d58b68befe3d6 | [
"BSD-2-Clause"
] | 342 | 2015-05-08T03:50:42.000Z | 2022-03-30T15:30:32.000Z | jcvi/utils/console.py | xuzhougeng/jcvi | 225a7f0375a2f8b31d3c44b8134d58b68befe3d6 | [
"BSD-2-Clause"
] | 171 | 2015-01-16T13:01:51.000Z | 2022-03-19T11:28:11.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
#
# console.py
# utils
#
# Created by Haibao Tang on 01/09/21
# Copyright © 2021 Haibao Tang. All rights reserved.
#
"""
We create a singleton console instance at the module level or as an attribute
of your top-level object.
"""
from rich.console import Console
console =... | 17.7 | 77 | 0.70904 | 55 | 354 | 4.581818 | 0.836364 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.175141 | 354 | 19 | 78 | 18.631579 | 0.818493 | 0.70339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77abc6993214b479c24847c10f4c2b75e55aa5b5 | 593 | py | Python | Python/Practices/DP&Recursion/tower_of_hanoi.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Practices/DP&Recursion/tower_of_hanoi.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Practices/DP&Recursion/tower_of_hanoi.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | """
Towers of Hanoi: In the classic problem of the Towers of Hanoi, you have 3 towers and N disks of different sizes which can slide onto any tower.
The puzzle starts with disks sorted in ascending order of size from top to bottom (Le., each disk sits on top of an even larger one).
You have the following constraints:
(... | 45.615385 | 144 | 0.748735 | 114 | 593 | 3.824561 | 0.596491 | 0.034404 | 0.059633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.200675 | 593 | 12 | 145 | 49.416667 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
77ac6562fe3e34ab38010d316c4843d6c60f5ca5 | 5,412 | py | Python | augmentation.py | LSnyd/Cell-DETR | 0d68fd6064194fb6a5a0070b455e3aeb0d271ab9 | [
"MIT"
] | 55 | 2020-12-15T19:57:55.000Z | 2022-03-29T09:46:24.000Z | augmentation.py | Haixing-Hu/Cell-DETR | 1831b37395c6b111173323dcf37cdbb0d1bef7b3 | [
"MIT"
] | 14 | 2021-01-15T09:21:44.000Z | 2022-01-17T21:55:47.000Z | augmentation.py | Haixing-Hu/Cell-DETR | 1831b37395c6b111173323dcf37cdbb0d1bef7b3 | [
"MIT"
] | 20 | 2021-01-05T03:49:59.000Z | 2021-12-15T18:59:24.000Z | from typing import Tuple
import torch
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
import numpy as np
class Augmentation(object):
"""
Super class for all augmentations.
"""
def __init__(self) -> None:
"""
Constructor method... | 34.692308 | 113 | 0.615484 | 624 | 5,412 | 5.216346 | 0.245192 | 0.070968 | 0.029493 | 0.040553 | 0.354531 | 0.315515 | 0.276498 | 0.242089 | 0.226114 | 0.226114 | 0 | 0.011538 | 0.279379 | 5,412 | 155 | 114 | 34.916129 | 0.823077 | 0.375462 | 0 | 0.163636 | 0 | 0 | 0.00622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0.018182 | 0.090909 | 0 | 0.490909 | 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 |
77b571256714504dd6d06f0cc8074204ae2c19a0 | 2,394 | py | Python | ingestor/manual_ingestor.py | dlf412/comscore | 1e79d6af3b4cbf7e281d49e39bf5765a87a6ac43 | [
"MIT"
] | 1 | 2021-06-10T02:56:42.000Z | 2021-06-10T02:56:42.000Z | ingestor/manual_ingestor.py | dlf412/comscore | 1e79d6af3b4cbf7e281d49e39bf5765a87a6ac43 | [
"MIT"
] | null | null | null | ingestor/manual_ingestor.py | dlf412/comscore | 1e79d6af3b4cbf7e281d49e39bf5765a87a6ac43 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from __future__ import division
import commands
import sys
from os.path import join
import traceback
import json
import datetime
from config import (config_down_ftp, config_upload_ftp,
config_mycompany_email, config_comscore_email)
from include import PAR_DIR... | 31.5 | 78 | 0.654553 | 309 | 2,394 | 4.812298 | 0.368932 | 0.03766 | 0.03497 | 0.03228 | 0.131809 | 0.091459 | 0.091459 | 0.091459 | 0.091459 | 0.091459 | 0 | 0.012215 | 0.247703 | 2,394 | 75 | 79 | 31.92 | 0.813437 | 0.015038 | 0 | 0.21875 | 0 | 0 | 0.142615 | 0.032683 | 0 | 0 | 0 | 0 | 0.015625 | 0 | null | null | 0.03125 | 0.203125 | null | null | 0.140625 | 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 |
77b746f5b258f01ce5e018e6e4f5d74f7460eb51 | 1,274 | py | Python | login/login/middleware/xor.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 7 | 2020-09-01T21:52:37.000Z | 2022-02-25T16:00:08.000Z | login/login/middleware/xor.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 4 | 2021-09-10T22:15:09.000Z | 2022-03-25T22:17:43.000Z | login/login/middleware/xor.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 9 | 2020-09-01T21:53:39.000Z | 2022-03-30T12:03:04.000Z | from common.helpers.bytearray import ByteArray
from common.middleware.middleware import Middleware
from login.packets.init import Init
class XORMiddleware(Middleware):
@staticmethod
def encrypt(data: ByteArray, key):
stop = len(data) - 8
start = 4
ecx = Int32(key)
for pos in r... | 26.541667 | 59 | 0.49843 | 155 | 1,274 | 4.090323 | 0.296774 | 0.11041 | 0.15142 | 0.189274 | 0.29653 | 0.252366 | 0.252366 | 0.252366 | 0.252366 | 0.252366 | 0 | 0.088089 | 0.367347 | 1,274 | 47 | 60 | 27.106383 | 0.698511 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.194444 | 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 |
77b8366f25b94ed1a66f1a426c7b6f7f2ecf9b6d | 441 | py | Python | flake8_pytest_fixtures_style/errors.py | sidorov-as/flake8-pytest-fixtures-style | 2a72a980106a95b325791b5c547233c143307ece | [
"MIT"
] | 2 | 2021-05-17T17:21:11.000Z | 2021-05-29T22:02:29.000Z | flake8_pytest_fixtures_style/errors.py | sidorov-as/flake8-pytest-fixtures-style | 2a72a980106a95b325791b5c547233c143307ece | [
"MIT"
] | null | null | null | flake8_pytest_fixtures_style/errors.py | sidorov-as/flake8-pytest-fixtures-style | 2a72a980106a95b325791b5c547233c143307ece | [
"MIT"
] | null | null | null | from flake8_plugin_utils import Error
class FixtureFactoryNameError(Error):
code = 'PF001'
message = (
'pytest fixture "{func_name}" returning another fixture must be suffixed with "_factory"'
)
class UnusedFixtureError(Error):
code = 'PF002'
message = (
'pytest fixture is not us... | 25.941176 | 97 | 0.678005 | 51 | 441 | 5.764706 | 0.745098 | 0.061224 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02071 | 0.23356 | 441 | 16 | 98 | 27.5625 | 0.849112 | 0 | 0 | 0.166667 | 0 | 0 | 0.505669 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
77ba74f209e1d330ec6268b76d6e841cbb803e9f | 541 | py | Python | network_ui_dev/migrations/0005_replay.py | benthomasson/network-ui | 8c3e114d331a57848acb4004ccf090148fd36e86 | [
"Apache-2.0"
] | 1 | 2018-09-21T17:33:39.000Z | 2018-09-21T17:33:39.000Z | network_ui_dev/migrations/0005_replay.py | benthomasson/network-ui | 8c3e114d331a57848acb4004ccf090148fd36e86 | [
"Apache-2.0"
] | 14 | 2020-06-18T14:42:24.000Z | 2022-03-08T23:09:03.000Z | network_ui_dev/migrations/0005_replay.py | benthomasson/network-ui | 8c3e114d331a57848acb4004ccf090148fd36e86 | [
"Apache-2.0"
] | 1 | 2020-06-23T11:34:34.000Z | 2020-06-23T11:34:34.000Z | # Generated by Django 2.0.8 on 2018-10-04 19:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('network_ui_dev', '0004_auto'),
]
operations = [
migrations.CreateModel(
name='Replay',
fields=[
('re... | 24.590909 | 83 | 0.560074 | 55 | 541 | 5.381818 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.308688 | 541 | 21 | 84 | 25.761905 | 0.73262 | 0.083179 | 0 | 0 | 1 | 0 | 0.107287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
77c08bc528ddd8b49e368c7570c603c8c42634ff | 1,509 | py | Python | compute_averages.py | mverzett/delphes_domain_ada | 13952524e0bd912e90257c224c18aea6389c613f | [
"Apache-2.0"
] | null | null | null | compute_averages.py | mverzett/delphes_domain_ada | 13952524e0bd912e90257c224c18aea6389c613f | [
"Apache-2.0"
] | null | null | null | compute_averages.py | mverzett/delphes_domain_ada | 13952524e0bd912e90257c224c18aea6389c613f | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
import numpy as np
import pandas as pd
from glob import glob
import os
from pdb import set_trace
parser = ArgumentParser()
parser.add_argument('inputdir')
args = parser.parse_args()
def save(df, fname):
dname = os.path.dirname(fname)
if not os.path.isdir(dname):
os.makedirs... | 28.471698 | 72 | 0.695825 | 233 | 1,509 | 4.467811 | 0.334764 | 0.023055 | 0.034582 | 0.020173 | 0.172911 | 0.04611 | 0.04611 | 0.04611 | 0 | 0 | 0 | 0.00768 | 0.137177 | 1,509 | 52 | 73 | 29.019231 | 0.791859 | 0.021869 | 0 | 0 | 0 | 0 | 0.137627 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | null | null | 0 | 0.139535 | null | null | 0.023256 | 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 |
77c8155065ffa7f80581fe737a13d3b4c7ae5446 | 1,863 | py | Python | yelp/db.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | yelp/db.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | yelp/db.py | cwithmichael/yelp-camp-flask | 15d05285ff198256c396e51456a9a88bc836a342 | [
"MIT"
] | null | null | null | from flask import current_app, g
from flask.cli import with_appcontext
from flask_mongoengine import MongoEngine
import click
import random
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash
from seed.seedhelpers import descriptors, places
from seed.cities import cities
from yelp.mo... | 32.12069 | 82 | 0.629093 | 211 | 1,863 | 5.42654 | 0.450237 | 0.026201 | 0.034935 | 0.038428 | 0.071616 | 0.071616 | 0.071616 | 0 | 0 | 0 | 0 | 0.013718 | 0.256575 | 1,863 | 57 | 83 | 32.684211 | 0.812996 | 0.026302 | 0 | 0 | 0 | 0 | 0.137721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.06 | 0.2 | 0 | 0.26 | 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 |
77c9589167cdf183857fe96fba4c0ea923eac9e3 | 2,378 | py | Python | groundstation/objects/base_object_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 26 | 2015-06-18T20:17:07.000Z | 2019-09-26T09:55:35.000Z | groundstation/objects/base_object_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | null | null | null | groundstation/objects/base_object_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 5 | 2015-07-20T01:52:47.000Z | 2017-01-08T09:54:07.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: groundstation/objects/base_object.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection... | 26.719101 | 223 | 0.742641 | 289 | 2,378 | 5.875433 | 0.359862 | 0.037691 | 0.053004 | 0.056537 | 0.193757 | 0.061249 | 0.061249 | 0 | 0 | 0 | 0 | 0.032795 | 0.140875 | 2,378 | 88 | 224 | 27.022727 | 0.798336 | 0.095038 | 0 | 0.308824 | 1 | 0 | 0.059646 | 0.018173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073529 | 0 | 0.117647 | 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 |
77ca7f7508247e86e9c929f6a06977eb4248432e | 3,307 | py | Python | startScan/migrations/0001_initial.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | startScan/migrations/0001_initial.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | startScan/migrations/0001_initial.py | Suprita-25/rengine | d6aabb49f27f7ad6039477c16a96213b0d80f81f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-15 19:49
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('scanEngine', '__first__'),
('targetApp', '0001_initi... | 47.927536 | 125 | 0.594799 | 327 | 3,307 | 5.840979 | 0.281346 | 0.094241 | 0.113089 | 0.150785 | 0.657592 | 0.59267 | 0.545026 | 0.545026 | 0.503141 | 0.503141 | 0 | 0.028665 | 0.261566 | 3,307 | 68 | 126 | 48.632353 | 0.753481 | 0.013608 | 0 | 0.42623 | 1 | 0 | 0.145399 | 0.025767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.114754 | 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 |
77d27803f75f101b87827afeda3939346b679e9b | 5,533 | py | Python | algo_bends.py | ymoisan/GeoSim | 84f1482c885d7d3b1e07b92dee9580e4bcacf9cb | [
"MIT"
] | null | null | null | algo_bends.py | ymoisan/GeoSim | 84f1482c885d7d3b1e07b92dee9580e4bcacf9cb | [
"MIT"
] | null | null | null | algo_bends.py | ymoisan/GeoSim | 84f1482c885d7d3b1e07b92dee9580e4bcacf9cb | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
#####################################################################################################################################
"""
This algorithm calculates the bends along the line. A bend is defined as all the line segments that turn in the same sense either... | 32.547059 | 133 | 0.516356 | 605 | 5,533 | 4.586777 | 0.320661 | 0.018018 | 0.037477 | 0.015856 | 0.171892 | 0.168288 | 0.144144 | 0.110991 | 0.110991 | 0.08 | 0 | 0.017094 | 0.344479 | 5,533 | 169 | 134 | 32.739645 | 0.748001 | 0.386047 | 0 | 0.368421 | 0 | 0 | 0.050238 | 0.027136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0.052632 | 0.070175 | 0 | 0.245614 | 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 |
77d7775bbaa641602edcbc2a7d550c1505bf8d22 | 489 | py | Python | test/cprofile_rust_cython_complex.py | utapyngo/simplification | 0a52a0b6b9cf2b9721f99bae20798e9c43d14f47 | [
"MIT"
] | 113 | 2017-02-28T22:31:52.000Z | 2022-03-02T01:17:41.000Z | test/cprofile_rust_cython_complex.py | utapyngo/simplification | 0a52a0b6b9cf2b9721f99bae20798e9c43d14f47 | [
"MIT"
] | 23 | 2017-08-10T19:00:47.000Z | 2022-03-28T06:04:20.000Z | test/cprofile_rust_cython_complex.py | utapyngo/simplification | 0a52a0b6b9cf2b9721f99bae20798e9c43d14f47 | [
"MIT"
] | 13 | 2017-12-09T07:58:11.000Z | 2022-03-05T06:25:57.000Z | # this tests numpy array simplification using RDP
# 216804 --> 3061 points (98.5% reduction)
# 50ms per VW operation on MBA Core i7
# Note that for the equivalent VW output we should reduce tolerance by an order of magnitude, then divide by 2
# e.g. 0.01 -> 0.0005
from simplification.cutil import simplify_coords
im... | 28.764706 | 111 | 0.732106 | 84 | 489 | 4.22619 | 0.75 | 0.016901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.177914 | 489 | 16 | 112 | 30.5625 | 0.808458 | 0.521472 | 0 | 0 | 0 | 0 | 0.109649 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77dbd816a0cd5a2e497839756e56efd30caad32c | 766 | py | Python | src/rps/sequence_problems/complementing_a_strand_of_dna.py | Vikdemen/RosalindPS | 05cb3c2162e569bd92a99b9be127999cae1babf7 | [
"MIT"
] | 1 | 2020-03-01T11:57:56.000Z | 2020-03-01T11:57:56.000Z | src/rps/sequence_problems/complementing_a_strand_of_dna.py | Vikdemen/RosalindPS | 05cb3c2162e569bd92a99b9be127999cae1babf7 | [
"MIT"
] | null | null | null | src/rps/sequence_problems/complementing_a_strand_of_dna.py | Vikdemen/RosalindPS | 05cb3c2162e569bd92a99b9be127999cae1babf7 | [
"MIT"
] | 1 | 2020-03-01T18:39:44.000Z | 2020-03-01T18:39:44.000Z | """
In DNA strings, symbols 'A' and 'T' are complements of each other, as are 'C' and 'G'.
The reverse complement of a DNA string s is the string sc formed by reversing the symbols of s, then taking the
complement of each symbol (e.g., the reverse complement of "GTCA" is "TGAC").
Given: A DNA string s of length at
most... | 33.304348 | 111 | 0.719321 | 120 | 766 | 4.533333 | 0.475 | 0.1875 | 0.110294 | 0.077206 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.198433 | 766 | 22 | 112 | 34.818182 | 0.879479 | 0.608355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
77e6fbaa2d18ce2b7e0a09591a5c1df1781395fe | 1,028 | py | Python | Text/Disemvoweler/disemvoweler.py | fossabot/IdeaBag2-Solutions | 73b554d9796510fc86e5fc55016732aa866266c6 | [
"MIT"
] | 10 | 2018-07-06T22:05:45.000Z | 2021-05-22T11:29:04.000Z | Text/Disemvoweler/disemvoweler.py | jarik-marwede/IdeaBag2-Projects | c5fe9524ef03a6ebc098ab8aaee7448f5b877828 | [
"MIT"
] | 22 | 2018-07-13T17:16:43.000Z | 2022-01-11T11:16:08.000Z | Text/Disemvoweler/disemvoweler.py | jarik-marwede/IdeaBag2-Projects | c5fe9524ef03a6ebc098ab8aaee7448f5b877828 | [
"MIT"
] | 1 | 2020-06-13T18:53:51.000Z | 2020-06-13T18:53:51.000Z | #!/usr/bin/env python3
"""Remove vowels and whitespace from a string and put the vowels at the end.
Title:
Disemvoweler
Description:
Make a program that removes every vowel and whitespace found in a string.
It should output the resulting disemvoweled string
with the removed vowels concatenated to the end of it.
For e... | 25.073171 | 76 | 0.652724 | 133 | 1,028 | 4.902256 | 0.56391 | 0.055215 | 0.042945 | 0.058282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001289 | 0.245136 | 1,028 | 40 | 77 | 25.7 | 0.838918 | 0.44358 | 0 | 0 | 0 | 0 | 0.07027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0 | 0 | 0.157895 | 0.052632 | 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 |
77f75e846f47db64157ea6261e9e7153aa169dde | 690 | py | Python | models.py | agouil/podbeetle | d81bb54c604658fbf691f37c0698d5850665f97b | [
"MIT"
] | 2 | 2017-11-07T03:44:45.000Z | 2020-10-03T11:48:45.000Z | models.py | agouil/podbeetle | d81bb54c604658fbf691f37c0698d5850665f97b | [
"MIT"
] | null | null | null | models.py | agouil/podbeetle | d81bb54c604658fbf691f37c0698d5850665f97b | [
"MIT"
] | 1 | 2019-08-13T07:41:12.000Z | 2019-08-13T07:41:12.000Z | from database import Base
from sqlalchemy import Column, Integer, String
class Podcast(Base):
__tablename__ = 'podcast'
id = Column(Integer, primary_key=True)
remote_id = Column(String(256))
name = Column(String(512))
author = Column(String(128))
title = Column(String(512))
image = Column(... | 27.6 | 72 | 0.631884 | 88 | 690 | 4.761364 | 0.352273 | 0.171838 | 0.143198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034816 | 0.250725 | 690 | 24 | 73 | 28.75 | 0.775629 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
77fefb6cb9fd88733dbe2ba9c1dc50c77ba2904f | 1,024 | py | Python | src/postprocessors/footnote_remover.py | smueksch/pdf2txt | 16897d8e62d742e5d7df68aaf07fdd2447cf2d3d | [
"MIT"
] | null | null | null | src/postprocessors/footnote_remover.py | smueksch/pdf2txt | 16897d8e62d742e5d7df68aaf07fdd2447cf2d3d | [
"MIT"
] | null | null | null | src/postprocessors/footnote_remover.py | smueksch/pdf2txt | 16897d8e62d742e5d7df68aaf07fdd2447cf2d3d | [
"MIT"
] | null | null | null | import re
class FootnoteRemover:
""" Remove obvious footnotes. """
name = 'FootnoteRemover'
desc = 'Remove obvious footnotes'
def __call__(self, raw_text: str):
lines = raw_text.splitlines(True)
text = ''
for line in lines:
#if self.is_footnote(line):
... | 28.444444 | 92 | 0.567383 | 129 | 1,024 | 4.434109 | 0.503876 | 0.083916 | 0.073427 | 0.062937 | 0.167832 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.323242 | 1,024 | 35 | 93 | 29.257143 | 0.816739 | 0.450195 | 0 | 0 | 0 | 0 | 0.099206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.571429 | 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 |
ae00e56b2f0ea2e19eed060cd405b08894319c0f | 2,301 | py | Python | flask_saml2/xml_parser.py | morty/flask-saml2 | f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4 | [
"MIT"
] | null | null | null | flask_saml2/xml_parser.py | morty/flask-saml2 | f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4 | [
"MIT"
] | null | null | null | flask_saml2/xml_parser.py | morty/flask-saml2 | f89dfd25caf7b4d47b10da2b45faa2904a8bd2f4 | [
"MIT"
] | null | null | null | import logging
from typing import Iterable, Optional
import defusedxml.lxml
import lxml.etree
from signxml import XMLVerifier
from flask_saml2.types import X509, XmlNode
from flask_saml2.xml_templates import NAMESPACE_MAP
class XmlParser:
input_string: str
xml_string: str
xml_tree: XmlNode
certific... | 33.347826 | 79 | 0.675793 | 282 | 2,301 | 5.329787 | 0.375887 | 0.037259 | 0.036593 | 0.02994 | 0.059215 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015046 | 0.249022 | 2,301 | 68 | 80 | 33.838235 | 0.854745 | 0.241199 | 0 | 0 | 0 | 0 | 0.016718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.189189 | 0.081081 | 0.648649 | 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 |
ae01e628ef66b69ee8b9b06c7d982125454e10c0 | 382 | py | Python | imagine/app/main/errors.py | lanig35/smart | eea7df63533e111c902c63cfb0f74eedbd5b9fd3 | [
"MIT"
] | null | null | null | imagine/app/main/errors.py | lanig35/smart | eea7df63533e111c902c63cfb0f74eedbd5b9fd3 | [
"MIT"
] | 1 | 2017-12-14T07:59:25.000Z | 2017-12-14T07:59:25.000Z | imagine/app/main/errors.py | lanig35/smart | eea7df63533e111c902c63cfb0f74eedbd5b9fd3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import request, jsonify
from . import bp_main
@bp_main.app_errorhandler(404)
def page_not_found(e):
if request.accept_mimetypes.accept_json and \
not request.accept_mimetypes.accept_html:
response = jsonify({'error': 'not found'})
response.status_cod... | 23.875 | 53 | 0.670157 | 50 | 382 | 4.92 | 0.58 | 0.04878 | 0.178862 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043624 | 0.219895 | 382 | 15 | 54 | 25.466667 | 0.781879 | 0.054974 | 0 | 0 | 0 | 0 | 0.061281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7acdc5c08f427ebb1a7f4837a1cf51ae531ec4dc | 2,720 | py | Python | python_and_ebpf/old/_hub_fifo.py | be4r/ssh-miner-detection | 47003db1d9f72ae44d5a27e92d0109d5111bec35 | [
"MIT"
] | null | null | null | python_and_ebpf/old/_hub_fifo.py | be4r/ssh-miner-detection | 47003db1d9f72ae44d5a27e92d0109d5111bec35 | [
"MIT"
] | null | null | null | python_and_ebpf/old/_hub_fifo.py | be4r/ssh-miner-detection | 47003db1d9f72ae44d5a27e92d0109d5111bec35 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import multiprocessing as mp
import subprocess
from socket import socket
import os
import signal
import stat
from time import sleep
# sessid | ip | username | dockerid | process
fifopath = '/tmp/_pipe'
logs_path = '/home/be4r/stuff/bpf/logs'
def waitforsession(cgroups, verbose = 0):
sessions = [... | 30.561798 | 162 | 0.566176 | 364 | 2,720 | 4.167582 | 0.406593 | 0.009888 | 0.036915 | 0.021753 | 0.130521 | 0.130521 | 0.09031 | 0.04087 | 0.04087 | 0 | 0 | 0.038183 | 0.239338 | 2,720 | 88 | 163 | 30.909091 | 0.695022 | 0.364338 | 0 | 0.163636 | 0 | 0.018182 | 0.125904 | 0.01506 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.036364 | false | 0.018182 | 0.127273 | 0 | 0.163636 | 0.109091 | 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 |
7ad00ccb171e163fc2682660a735dcf5809562e7 | 2,105 | py | Python | home/test.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 20 | 2021-04-29T12:36:25.000Z | 2022-03-27T12:17:41.000Z | home/test.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 892 | 2021-02-02T13:56:06.000Z | 2022-03-31T11:25:44.000Z | home/test.py | ChrisMarsh82/iogt | 8141421a79b73bd038880a3be92fa6809adced13 | [
"BSD-2-Clause"
] | 28 | 2021-02-19T19:28:37.000Z | 2022-03-11T11:46:00.000Z | from django.test import TestCase, Client
from django.urls import reverse
from rest_framework import status
from wagtail.core.models import PageViewRestriction
from comments.models import CommentStatus
from home.factories import ArticleFactory
from home.models import HomePage
from iogt_users.factories import UserFactor... | 48.953488 | 110 | 0.732067 | 247 | 2,105 | 5.987854 | 0.315789 | 0.042596 | 0.089926 | 0.123056 | 0.377282 | 0.306288 | 0.261663 | 0.261663 | 0.261663 | 0.261663 | 0 | 0.012266 | 0.186698 | 2,105 | 42 | 111 | 50.119048 | 0.851636 | 0 | 0 | 0.147059 | 0 | 0 | 0.045606 | 0.031829 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.058824 | 0.235294 | 0 | 0.382353 | 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 |
7ad029f2d0c5719aff4246d3212abc76e66b9b78 | 2,649 | py | Python | changepw.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | changepw.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | changepw.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# Copyright (c) 2016, 2017 Fabian Wenzelmann
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the righ... | 32.304878 | 80 | 0.672707 | 387 | 2,649 | 4.529716 | 0.439276 | 0.0502 | 0.027382 | 0.034227 | 0.158015 | 0.111808 | 0.061609 | 0.061609 | 0 | 0 | 0 | 0.012764 | 0.231031 | 2,649 | 81 | 81 | 32.703704 | 0.847815 | 0.414496 | 0 | 0.327273 | 0 | 0 | 0.225996 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.036364 | false | 0.090909 | 0.072727 | 0 | 0.127273 | 0.127273 | 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 |
7ad0ae211bfe4d8499bb9b93c4ea41f63ea35803 | 10,597 | py | Python | tests/test_schema.py | center-for-threat-informed-defense/attack-flow | 93a39a29edca19be979f1a8df4b95564bba49e8d | [
"Apache-2.0"
] | 165 | 2022-03-03T14:41:10.000Z | 2022-03-31T10:36:41.000Z | tests/test_schema.py | center-for-threat-informed-defense/attack-flow | 93a39a29edca19be979f1a8df4b95564bba49e8d | [
"Apache-2.0"
] | 3 | 2022-03-03T14:55:30.000Z | 2022-03-25T14:22:57.000Z | tests/test_schema.py | center-for-threat-informed-defense/attack-flow | 93a39a29edca19be979f1a8df4b95564bba49e8d | [
"Apache-2.0"
] | 18 | 2022-03-03T16:56:05.000Z | 2022-03-24T21:05:26.000Z | import json
from pathlib import Path
from tempfile import NamedTemporaryFile
from textwrap import dedent
import pytest
from attack_flow.schema import (
anchor,
generate_html,
get_properties,
html_name,
insert_html,
InvalidRelationshipsError,
SchemaProperty,
validate_docs,
validate_... | 27.171795 | 78 | 0.487119 | 1,031 | 10,597 | 4.870029 | 0.167798 | 0.058952 | 0.066919 | 0.029277 | 0.460665 | 0.389166 | 0.332404 | 0.272456 | 0.223262 | 0.188409 | 0 | 0.021348 | 0.354629 | 10,597 | 389 | 79 | 27.241645 | 0.712824 | 0.002642 | 0 | 0.41003 | 1 | 0.00295 | 0.289297 | 0.017602 | 0 | 0 | 0 | 0 | 0.171091 | 1 | 0.047198 | false | 0 | 0.017699 | 0 | 0.064897 | 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 |
7adec2aaa6f29cb220c98f44adcc51d1b860d4f0 | 1,917 | py | Python | examples/demo/demo.py | mail2nsrajesh/wsme | 9f84e4c7c59b172a09341af2ab496d07e29e01aa | [
"MIT"
] | 2 | 2020-11-05T06:09:20.000Z | 2021-01-03T07:22:18.000Z | examples/demo/demo.py | mail2nsrajesh/wsme | 9f84e4c7c59b172a09341af2ab496d07e29e01aa | [
"MIT"
] | null | null | null | examples/demo/demo.py | mail2nsrajesh/wsme | 9f84e4c7c59b172a09341af2ab496d07e29e01aa | [
"MIT"
] | null | null | null | # coding=utf8
"""
A mini-demo of what wsme can do.
To run it::
python setup.py develop
Then::
python demo.py
"""
from wsme import WSRoot, expose, validate
from wsme.types import File
import bottle
from six import u
import logging
class Person(object):
id = int
firstname = unicode
lastname ... | 18.257143 | 61 | 0.561294 | 234 | 1,917 | 4.581197 | 0.388889 | 0.044776 | 0.022388 | 0.027985 | 0.139925 | 0.085821 | 0.085821 | 0.085821 | 0.085821 | 0.085821 | 0 | 0.012772 | 0.305686 | 1,917 | 104 | 62 | 18.432692 | 0.792637 | 0.005738 | 0 | 0.128571 | 0 | 0 | 0.105351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.042857 | 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 |
7ae3a2d040f3c736d65552b7279760f5aa5d6c58 | 471 | py | Python | pioreactor/automations/temperature/silent.py | CamDavidsonPilon/morbidostat | c6b0f397faf88144087d97047e6f6da90d8d1068 | [
"MIT"
] | 1 | 2020-11-02T14:34:59.000Z | 2020-11-02T14:34:59.000Z | pioreactor/automations/temperature/silent.py | CamDavidsonPilon/morbidostat | c6b0f397faf88144087d97047e6f6da90d8d1068 | [
"MIT"
] | 1 | 2020-11-21T01:35:02.000Z | 2020-11-21T01:35:02.000Z | pioreactor/automations/temperature/silent.py | CamDavidsonPilon/morbidostat | c6b0f397faf88144087d97047e6f6da90d8d1068 | [
"MIT"
] | 1 | 2020-11-12T04:02:24.000Z | 2020-11-12T04:02:24.000Z | # -*- coding: utf-8 -*-
from __future__ import annotations
from pioreactor.automations.events import NoEvent
from pioreactor.automations.temperature.base import TemperatureAutomationJob
class Silent(TemperatureAutomationJob):
automation_name = "silent"
def __init__(self, **kwargs) -> None:
super(Si... | 24.789474 | 76 | 0.711253 | 50 | 471 | 6.4 | 0.58 | 0.0875 | 0.15625 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.184713 | 471 | 18 | 77 | 26.166667 | 0.825521 | 0.044586 | 0 | 0.181818 | 0 | 0 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.727273 | 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 |
7ae7957eaf81192b9bc6bb89d502f61bbeee60f3 | 360 | py | Python | python/setup.py | tjhunter/karps | 7c74c3bf5b566264d6fed6e17fb1716216467a50 | [
"Apache-2.0"
] | 5 | 2017-10-25T10:53:47.000Z | 2019-01-12T19:32:36.000Z | python/setup.py | tjhunter/karps | 7c74c3bf5b566264d6fed6e17fb1716216467a50 | [
"Apache-2.0"
] | 15 | 2017-06-22T20:53:50.000Z | 2017-10-22T00:47:00.000Z | python/setup.py | tjhunter/karps | 7c74c3bf5b566264d6fed6e17fb1716216467a50 | [
"Apache-2.0"
] | 1 | 2018-08-23T04:25:57.000Z | 2018-08-23T04:25:57.000Z | from setuptools import setup
setup(
name='karps',
version='0.2.0',
packages=['karps', 'karps.functions_std', 'karps.proto'],
install_requires=['grpcio', 'pandas', 'six', 'future', 'tensorflow'],
author="Timothy Hunter",
author_email="tjhunter@cs.stanford.edu",
license='Apache 2.0',
long... | 30 | 73 | 0.655556 | 44 | 360 | 5.272727 | 0.818182 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01634 | 0.15 | 360 | 12 | 74 | 30 | 0.74183 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
7aeebd180b1e23770bc7dc03cb63ddffdf19baf2 | 1,994 | py | Python | setup.py | yangjjie94/labelSeries | 620372b7d21e410efb009500fdd6cdc668e92106 | [
"MIT"
] | null | null | null | setup.py | yangjjie94/labelSeries | 620372b7d21e410efb009500fdd6cdc668e92106 | [
"MIT"
] | null | null | null | setup.py | yangjjie94/labelSeries | 620372b7d21e410efb009500fdd6cdc668e92106 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from libs.version import __version__
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
# TODO: Different OS ... | 30.676923 | 110 | 0.654965 | 214 | 1,994 | 5.957944 | 0.53271 | 0.119216 | 0.156863 | 0.101961 | 0.042353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011421 | 0.209629 | 1,994 | 64 | 111 | 31.15625 | 0.797589 | 0.044634 | 0 | 0 | 0 | 0 | 0.464248 | 0.049422 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 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 |
7aef36aeadffec0a75891a5bb7f925fae09130e7 | 359 | py | Python | School-Management-System/students/migrations/0004_auto_20190729_0646.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/students/migrations/0004_auto_20190729_0646.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/students/migrations/0004_auto_20190729_0646.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-07-29 06:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('students', '0003_auto_20190724_1545'),
]
operations = [
migrations.AlterUniqueTogether(
name='attendance',
unique_together={... | 19.944444 | 50 | 0.604457 | 36 | 359 | 5.916667 | 0.833333 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118774 | 0.272981 | 359 | 17 | 51 | 21.117647 | 0.697318 | 0.125348 | 0 | 0 | 1 | 0 | 0.166667 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
7af0ec8b05ac8c85ccbe1d69fdc1a393f135cef6 | 640 | py | Python | src/blueshed/handlers/inline_login_handler.py | blueshed/blueshed-py | 61be378d8e24e60775cc2b8a6f17c6e959098fa2 | [
"MIT"
] | null | null | null | src/blueshed/handlers/inline_login_handler.py | blueshed/blueshed-py | 61be378d8e24e60775cc2b8a6f17c6e959098fa2 | [
"MIT"
] | null | null | null | src/blueshed/handlers/inline_login_handler.py | blueshed/blueshed-py | 61be378d8e24e60775cc2b8a6f17c6e959098fa2 | [
"MIT"
] | null | null | null | '''
Created on Apr 7, 2013
@author: peterb
'''
from blueshed.handlers.base_handler import BaseHandler
class InlineLoginHandler(BaseHandler):
"""
Pass username and password as open arguments and login
not secure, not good, but someone needed it.
"""
def get(self, error=None):
t... | 30.47619 | 72 | 0.595313 | 72 | 640 | 5.166667 | 0.666667 | 0.075269 | 0.16129 | 0.102151 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.011013 | 0.290625 | 640 | 21 | 73 | 30.47619 | 0.80837 | 0.217188 | 0 | 0.2 | 0 | 0 | 0.049251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.3 | 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 |
7af14b4b4cc2d25fde21aa6831ffbd6176dd7de7 | 967 | py | Python | ServerSydUtils/ServerSydUtils.py | 1byte2bytes/SydCogs | 10026cebf1de3582fc5e0d57e2aca2db29b13469 | [
"MIT"
] | null | null | null | ServerSydUtils/ServerSydUtils.py | 1byte2bytes/SydCogs | 10026cebf1de3582fc5e0d57e2aca2db29b13469 | [
"MIT"
] | null | null | null | ServerSydUtils/ServerSydUtils.py | 1byte2bytes/SydCogs | 10026cebf1de3582fc5e0d57e2aca2db29b13469 | [
"MIT"
] | null | null | null | import discord
from cogs.utils import checks
from discord.ext import commands
from .utils.dataIO import fileIO
from random import choice as randchoice
import os
import logging
import traceback
import aiohttp
log = logging.getLogger("ServerSydUtils")
class ServerSydUtils:
"""Insult Cog"""
def __init__(self, b... | 24.794872 | 64 | 0.647363 | 122 | 967 | 5.04918 | 0.47541 | 0.079545 | 0.058442 | 0.048701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024828 | 0.250259 | 967 | 38 | 65 | 25.447368 | 0.824828 | 0.010341 | 0 | 0 | 0 | 0 | 0.039828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.310345 | 0 | 0.448276 | 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 |
7af7543a31ca4b175c5290a61db1476a3e3d200c | 1,541 | py | Python | backend/cells/users/managers.py | CelebrateYourself/cells | daa4fbfdb39963a713ddfe2d9b62d056985179b9 | [
"MIT"
] | null | null | null | backend/cells/users/managers.py | CelebrateYourself/cells | daa4fbfdb39963a713ddfe2d9b62d056985179b9 | [
"MIT"
] | 13 | 2021-08-06T17:45:54.000Z | 2022-02-26T18:06:24.000Z | backend/cells/users/managers.py | CelebrateYourself/cells | daa4fbfdb39963a713ddfe2d9b62d056985179b9 | [
"MIT"
] | null | null | null | from django.contrib.auth.base_user import BaseUserManager
from django.utils.translation import ugettext_lazy as _
class CustomUserManager(BaseUserManager):
"""
Custom User model manager where email is
unique field for authentication instead name
"""
use_in_migrations = True
def _create_user(... | 38.525 | 77 | 0.682674 | 192 | 1,541 | 5.270833 | 0.3125 | 0.141304 | 0.131423 | 0.118577 | 0.556324 | 0.452569 | 0.409091 | 0.409091 | 0.268775 | 0.100791 | 0 | 0 | 0.221285 | 1,541 | 39 | 78 | 39.512821 | 0.843333 | 0.133031 | 0 | 0.08 | 0 | 0 | 0.124424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.24 | 0.08 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7afbd9b29bcd6d5fcf73813a78b752bcaf9feb44 | 3,840 | py | Python | base/application.py | amitava-bhattacharyya/CeNDR | e5300b249c5cbce000637951bdbc8a802cf93ee3 | [
"MIT"
] | null | null | null | base/application.py | amitava-bhattacharyya/CeNDR | e5300b249c5cbce000637951bdbc8a802cf93ee3 | [
"MIT"
] | null | null | null | base/application.py | amitava-bhattacharyya/CeNDR | e5300b249c5cbce000637951bdbc8a802cf93ee3 | [
"MIT"
] | null | null | null | import os
import json
import yaml
from os.path import basename
from flask import Flask, render_template, jsonify
from flask_debugtoolbar import DebugToolbarExtension
from flask_caching import Cache
from flask_sqlalchemy import SQLAlchemy
from base.utils.data_utils import json_encoder
from base.utils.text_utils import r... | 26.30137 | 82 | 0.730729 | 540 | 3,840 | 5.007407 | 0.316667 | 0.044379 | 0.081361 | 0.073225 | 0.067308 | 0.026627 | 0.026627 | 0 | 0 | 0 | 0 | 0.006583 | 0.169271 | 3,840 | 145 | 83 | 26.482759 | 0.841066 | 0.157552 | 0 | 0.02439 | 0 | 0 | 0.091804 | 0.01906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.012195 | 0.329268 | 0.036585 | 0.463415 | 0.121951 | 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 |
7afc579cf835964f0089acdd9092425d0cb1f711 | 5,532 | py | Python | src/coaches/trainer/scenarios.py | philipholler/RocoCup_Soccer_P6 | 7b9addf665cb5b3a8d501b1ff9c064d501cf5aba | [
"Unlicense"
] | 5 | 2020-09-09T08:37:30.000Z | 2021-02-04T14:00:50.000Z | src/coaches/trainer/scenarios.py | philipholler/RocoCup_Soccer_P6 | 7b9addf665cb5b3a8d501b1ff9c064d501cf5aba | [
"Unlicense"
] | null | null | null | src/coaches/trainer/scenarios.py | philipholler/RocoCup_Soccer_P6 | 7b9addf665cb5b3a8d501b1ff9c064d501cf5aba | [
"Unlicense"
] | 1 | 2021-02-04T14:34:07.000Z | 2021-02-04T14:34:07.000Z | """
QUICK GUIDE:
Create a list of commands, that set up an environment for testing.
Use commands likes:
(move (ball) -47 -9.16 0 0 0) conforming to (move (ball) *x* *y* *direction* *delta_x* *delta_y*)
(move (player Team1 4) {0} {1} 0 0 0)) conforming to (move (player *team* *unum*) *x* *y* *direction* *delta_x*... | 37.378378 | 125 | 0.617679 | 759 | 5,532 | 4.312253 | 0.185771 | 0.021998 | 0.006416 | 0.01711 | 0.321723 | 0.235869 | 0.191873 | 0.156431 | 0.117324 | 0.089826 | 0 | 0.057964 | 0.257773 | 5,532 | 148 | 126 | 37.378378 | 0.739162 | 0.187636 | 0 | 0.238636 | 0 | 0 | 0.106089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056818 | false | 0.090909 | 0.056818 | 0 | 0.170455 | 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 |
bb04956e4ac1f794c457965432c227ac0e3a0fbd | 5,117 | py | Python | popm/negotiation_simple.py | M-O-P-D/popm | b120ec9d8aca769887f347e450d366841c7af672 | [
"MIT"
] | null | null | null | popm/negotiation_simple.py | M-O-P-D/popm | b120ec9d8aca769887f347e450d366841c7af672 | [
"MIT"
] | 17 | 2020-08-25T13:23:57.000Z | 2020-10-26T09:44:59.000Z | popm/negotiation_simple.py | M-O-P-D/popm | b120ec9d8aca769887f347e450d366841c7af672 | [
"MIT"
] | null | null | null | """
This is a reimplementation of the negotiation algorithm for the simple_model version
It's functionally identical to the original but operates on different data structures
"""
from .initialisation import PSU_OFFICERS
import numpy as np
# NOTE: flake8 complains about (psus.assigned == False)
# BUT it is NOT the sam... | 38.765152 | 126 | 0.651358 | 739 | 5,117 | 4.397835 | 0.211096 | 0.025846 | 0.033231 | 0.036923 | 0.689231 | 0.660923 | 0.649538 | 0.629231 | 0.606462 | 0.582462 | 0 | 0.005469 | 0.213797 | 5,117 | 131 | 127 | 39.061069 | 0.802386 | 0.285128 | 0 | 0.633803 | 0 | 0.028169 | 0.157325 | 0.008324 | 0 | 0 | 0 | 0.015267 | 0.028169 | 1 | 0.042254 | false | 0 | 0.028169 | 0 | 0.098592 | 0.042254 | 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 |
bb052e21b6c1a47d1bb34b171c56de91305e289f | 3,632 | py | Python | Sprint Challenge/northwind.py | Nolanole/DS-Unit-3-Sprint-2-SQL-and-Databases | fa436537707fe0672c1b5a9865a32854338d818a | [
"MIT"
] | null | null | null | Sprint Challenge/northwind.py | Nolanole/DS-Unit-3-Sprint-2-SQL-and-Databases | fa436537707fe0672c1b5a9865a32854338d818a | [
"MIT"
] | null | null | null | Sprint Challenge/northwind.py | Nolanole/DS-Unit-3-Sprint-2-SQL-and-Databases | fa436537707fe0672c1b5a9865a32854338d818a | [
"MIT"
] | null | null | null | import sqlite3
###Part 2
print('###Part 2:\n')
#Open a connection to northwind_small.sqlite3
conn = sqlite3.connect('northwind_small.sqlite3')
curs = conn.cursor()
#Put the questions and quesries into lists:
questions = ['Q1: What are the ten most expensive items (per unit price) in the database?',
'Q2: Wh... | 48.426667 | 197 | 0.736509 | 545 | 3,632 | 4.900917 | 0.365138 | 0.015724 | 0.016848 | 0.012355 | 0.282291 | 0.251591 | 0.235118 | 0.210408 | 0.210408 | 0.196181 | 0 | 0.010234 | 0.166024 | 3,632 | 75 | 198 | 48.426667 | 0.871575 | 0.08315 | 0 | 0.479167 | 0 | 0.104167 | 0.650989 | 0.032088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0.291667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb0e4b24bda7ce45ee26ba0866d20e744e1e66c8 | 743 | py | Python | dataset.py | pranoyr/lvrd | 95b8d805a4b5aefe71d75cfede5bfc9178cc56ad | [
"MIT"
] | 8 | 2020-10-09T11:24:34.000Z | 2021-12-14T13:34:54.000Z | dataset.py | pranoyr/lvrd | 95b8d805a4b5aefe71d75cfede5bfc9178cc56ad | [
"MIT"
] | 2 | 2020-12-22T07:58:52.000Z | 2021-08-02T13:56:26.000Z | dataset.py | pranoyr/lvrd | 95b8d805a4b5aefe71d75cfede5bfc9178cc56ad | [
"MIT"
] | 3 | 2020-10-09T15:47:07.000Z | 2022-02-11T07:59:07.000Z | from datasets.vrd import VRDDataset
from datasets.custom_vrd import CustomDataset
from datasets.vg import VGDataset
def get_training_data(cfg):
if cfg.DATASET == 'VRD':
training_data = VRDDataset(cfg.DATASET_DIR, 'train')
elif cfg.DATASET == 'VG':
training_data = VGDataset(cfg.DATASET_DIR, 'tr... | 28.576923 | 64 | 0.697174 | 92 | 743 | 5.423913 | 0.25 | 0.200401 | 0.156313 | 0.108216 | 0.420842 | 0.088176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199192 | 743 | 25 | 65 | 29.72 | 0.838655 | 0 | 0 | 0.315789 | 0 | 0 | 0.049798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
bb1cf775eca297d40f0e566307190e76905cab18 | 5,936 | py | Python | CU_Replication_Tool/cu_replication_tool.py | TeCSAR-UNCC/OPENCL-FPGA-CU_REPLICATION | 36a3573416965098fa9af11c78121a4f62d8150a | [
"BSD-4-Clause-UC"
] | null | null | null | CU_Replication_Tool/cu_replication_tool.py | TeCSAR-UNCC/OPENCL-FPGA-CU_REPLICATION | 36a3573416965098fa9af11c78121a4f62d8150a | [
"BSD-4-Clause-UC"
] | null | null | null | CU_Replication_Tool/cu_replication_tool.py | TeCSAR-UNCC/OPENCL-FPGA-CU_REPLICATION | 36a3573416965098fa9af11c78121a4f62d8150a | [
"BSD-4-Clause-UC"
] | 3 | 2020-12-22T17:45:29.000Z | 2021-08-08T19:59:51.000Z | import os
import commands
import csv
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
cwd = os.getcwd()
#################################### PARAMETERS TO CHANGE #######################################
# Line 1: Provide the path for the directory
# Line 2: Provide the entire LDCLFLAG com... | 42.705036 | 110 | 0.473551 | 630 | 5,936 | 4.277778 | 0.298413 | 0.031169 | 0.012987 | 0.033395 | 0.061967 | 0.021521 | 0 | 0 | 0 | 0 | 0 | 0.019179 | 0.306098 | 5,936 | 138 | 111 | 43.014493 | 0.635106 | 0.088949 | 0 | 0.131148 | 0 | 0 | 0.118606 | 0.02658 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040984 | null | null | 0.040984 | 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 |
bb2342005ca6ee09045d54f321c4490d1c1ecce5 | 410 | py | Python | file_management/accounts/migrations/0008_customer_profile_pic.py | kibemwangi/Blog | 2ed2e22e36adbe82afd112173f8df211126c3923 | [
"MIT"
] | null | null | null | file_management/accounts/migrations/0008_customer_profile_pic.py | kibemwangi/Blog | 2ed2e22e36adbe82afd112173f8df211126c3923 | [
"MIT"
] | 1 | 2022-03-23T16:59:48.000Z | 2022-03-23T16:59:48.000Z | file_management/accounts/migrations/0008_customer_profile_pic.py | kibemwangi/Blog | 2ed2e22e36adbe82afd112173f8df211126c3923 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-21 07:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_customer_user'),
]
operations = [
migrations.AddField(
model_name='customer',
name='profile_pic',
... | 21.578947 | 73 | 0.602439 | 45 | 410 | 5.377778 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.27561 | 410 | 18 | 74 | 22.777778 | 0.750842 | 0.109756 | 0 | 0 | 1 | 0 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb2affc70e16fd1f005c52317543c1fe213092dd | 293 | py | Python | reverseString.py | baiyubin/python_practice | f3754ef00ab357299ccb3ac72bea6663bb61b1c7 | [
"Apache-2.0"
] | 2 | 2015-04-20T14:28:36.000Z | 2015-04-25T02:24:06.000Z | reverseString.py | yubinbai/python_practice | f3754ef00ab357299ccb3ac72bea6663bb61b1c7 | [
"Apache-2.0"
] | null | null | null | reverseString.py | yubinbai/python_practice | f3754ef00ab357299ccb3ac72bea6663bb61b1c7 | [
"Apache-2.0"
] | 4 | 2016-09-15T20:15:30.000Z | 2021-01-22T06:06:45.000Z | def reverse(s):
target = list(s)
for i in range(int(len(s) / 2)):
swap = target[i]
target[i] = target[len(s) - i - 1]
target[len(s) - i - 1] = swap
return ''.join(target)
if __name__ == '__main__':
s = 'abcdef'
print(reverse(s))
print(s[::-1])
| 22.538462 | 42 | 0.505119 | 44 | 293 | 3.181818 | 0.477273 | 0.085714 | 0.185714 | 0.157143 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019512 | 0.300341 | 293 | 12 | 43 | 24.416667 | 0.663415 | 0 | 0 | 0 | 0 | 0 | 0.047782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 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 |
bb2e7fcc80305936b3d3154ad7507f3c25f93afa | 484 | py | Python | Scripts/ddos.py | froyo75/IDS_NetFlow_Based_System | 54aae29c1a65844509ac9b754ce4dacdaab7f2fa | [
"MIT"
] | 1 | 2016-02-24T00:43:29.000Z | 2016-02-24T00:43:29.000Z | Scripts/ddos.py | froyo75/IDS_NetFlow_Based_System | 54aae29c1a65844509ac9b754ce4dacdaab7f2fa | [
"MIT"
] | null | null | null | Scripts/ddos.py | froyo75/IDS_NetFlow_Based_System | 54aae29c1a65844509ac9b754ce4dacdaab7f2fa | [
"MIT"
] | 2 | 2015-07-30T08:57:59.000Z | 2017-06-13T16:40:52.000Z | import sys
from scapy.all import *
def arppoison(target,spoofed_ip,mac,vb):
packet = ARP()
packet.op = 2
packet.hwsrc = mac
packet.psrc = spoofed_ip
packet.hwdst = 'ff:ff:ff:ff:ff:ff'
packet.pdst = target
srloop(packet, verbose=vb)
if len(sys.argv) != 5:
print "Usage: ddos.py <network> <spoofed_ip> <mac> <... | 22 | 127 | 0.661157 | 91 | 484 | 3.483516 | 0.538462 | 0.063091 | 0.07571 | 0.07571 | 0.037855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063882 | 0.159091 | 484 | 21 | 128 | 23.047619 | 0.714988 | 0 | 0 | 0 | 0 | 0.071429 | 0.273292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 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 |
bb321349b7a8612830cc32c96912dac2fd98c11a | 418 | py | Python | practicality/accounts/urls.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | 1 | 2019-09-02T17:31:39.000Z | 2019-09-02T17:31:39.000Z | practicality/accounts/urls.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | 5 | 2019-12-20T15:55:58.000Z | 2021-08-22T01:26:16.000Z | practicality/accounts/urls.py | broden-wanner/practicality | 7495b78c6f253a7382c7a98296ef0128fcb6eaed | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from accounts.views import RegisterAPI, LoginAPI, UserAPI
from knox import views as know_views
from rest_framework import routers
urlpatterns = [
path('', include('knox.urls')),
path('register', RegisterAPI.as_view()),
path('login', LoginAPI.as_view()),
path('accou... | 34.833333 | 71 | 0.72488 | 55 | 418 | 5.363636 | 0.454545 | 0.081356 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133971 | 418 | 12 | 72 | 34.833333 | 0.814917 | 0 | 0 | 0 | 0 | 0 | 0.109785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 |
bb32d3d6614bed110c48bfea79aa2c717b7083ff | 3,785 | py | Python | external-import/riskiq/src/riskiq/client.py | opencti-platform/connectors | a1ed484f2d275f99cf10630dc2d29ce355ee8ce3 | [
"Apache-2.0"
] | null | null | null | external-import/riskiq/src/riskiq/client.py | opencti-platform/connectors | a1ed484f2d275f99cf10630dc2d29ce355ee8ce3 | [
"Apache-2.0"
] | null | null | null | external-import/riskiq/src/riskiq/client.py | opencti-platform/connectors | a1ed484f2d275f99cf10630dc2d29ce355ee8ce3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""RiskIQ client module."""
import datetime
import json
import logging
from typing import Any, Optional
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
logger = logging.getLogger(__name__)
# Custom type to simulate a JSON format... | 30.772358 | 82 | 0.582299 | 429 | 3,785 | 5.053613 | 0.354312 | 0.016144 | 0.027675 | 0.041513 | 0.062731 | 0.049816 | 0.028598 | 0 | 0 | 0 | 0 | 0.00766 | 0.310172 | 3,785 | 122 | 83 | 31.02459 | 0.822673 | 0.268164 | 0 | 0.034483 | 0 | 0 | 0.145536 | 0.048512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.051724 | 0.12069 | 0 | 0.327586 | 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 |
bb3398c6dcd9de29377b2d2214d92955dd35e5e8 | 4,636 | py | Python | Misc/REMINDERS.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | Misc/REMINDERS.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | Misc/REMINDERS.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | #Python reminders
# Collapse the list for output
''.join(list)
#Collapse and convert items to string
''.join(map(str, lst))
#Flatten list of lists
flat_list = [item for subitem in lists for item in subitem]
#Exammple for checking list for single digit (string)
def checker(string):
print("Boom!" if "7" in str(string... | 28.268293 | 100 | 0.69327 | 808 | 4,636 | 3.950495 | 0.305693 | 0.009399 | 0.016917 | 0.013158 | 0.090539 | 0.063283 | 0.050752 | 0.050752 | 0.039474 | 0.039474 | 0 | 0.029843 | 0.176014 | 4,636 | 163 | 101 | 28.441718 | 0.805759 | 0.363676 | 0 | 0.02381 | 0 | 0.011905 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011905 | null | null | 0.119048 | 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 |
bb3e48172e431ba89da378b3046d64f2a6e60185 | 11,506 | py | Python | src/python/smet-collect/smetcollect/process/jq/jq.py | ciyer/smet-collect | 93cf94077018654eac262454408402d45ad9d668 | [
"BSD-2-Clause"
] | 1 | 2017-02-12T13:25:17.000Z | 2017-02-12T13:25:17.000Z | src/python/smet-collect/smetcollect/process/jq/jq.py | ciyer/smet-collect | 93cf94077018654eac262454408402d45ad9d668 | [
"BSD-2-Clause"
] | null | null | null | src/python/smet-collect/smetcollect/process/jq/jq.py | ciyer/smet-collect | 93cf94077018654eac262454408402d45ad9d668 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
jq.py
A module with helper classes and functions for interacting with spark.
Created by Chandrasekhar Ramakrishnan on 2015-11-02.
Copyright (c) 2015 Chandrasekhar Ramakrishnan. All rights reserved.
"""
# python2 support
import abc
import os
import subprocess
import t... | 35.512346 | 109 | 0.640448 | 1,504 | 11,506 | 4.683511 | 0.156915 | 0.058631 | 0.056218 | 0.021295 | 0.469052 | 0.383589 | 0.335321 | 0.313174 | 0.252555 | 0.236797 | 0 | 0.002511 | 0.273162 | 11,506 | 323 | 110 | 35.622291 | 0.83977 | 0.022945 | 0 | 0.276596 | 0 | 0 | 0.018829 | 0 | 0 | 0 | 0 | 0.003096 | 0 | 0 | null | null | 0 | 0.037234 | 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 |
bb44506f12770dc3878044d7965e11aecb7c7acd | 3,757 | py | Python | splider/SQL_helper.py | WangHongshuo/Acfun_Comment_Splider | 64bf822e9ceb59e296e9add14fd3ec6564efc406 | [
"MIT"
] | null | null | null | splider/SQL_helper.py | WangHongshuo/Acfun_Comment_Splider | 64bf822e9ceb59e296e9add14fd3ec6564efc406 | [
"MIT"
] | null | null | null | splider/SQL_helper.py | WangHongshuo/Acfun_Comment_Splider | 64bf822e9ceb59e296e9add14fd3ec6564efc406 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column
# 支持 MySQL的UNSIGNED INTEGER
from sqlalchemy.dialects.mysql import INTEGER, VARCHAR, BIGINT
from sqlalchemy.orm import sessionmaker
import re
# SQLHelper整体应考虑防注入,封装好增查的功能
class SQLHelper:
__Ba... | 40.397849 | 104 | 0.673942 | 423 | 3,757 | 5.56974 | 0.238771 | 0.061121 | 0.050934 | 0.063667 | 0.333192 | 0.26528 | 0.26528 | 0.250849 | 0.183786 | 0.049236 | 0 | 0.005832 | 0.224115 | 3,757 | 92 | 105 | 40.836957 | 0.802401 | 0.053766 | 0 | 0.073529 | 0 | 0 | 0.07701 | 0.020028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.088235 | 0.088235 | 0.029412 | 0.470588 | 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 |
bb4519c7aa489e6f2f37640959d115584a9eff79 | 371 | py | Python | game/migrations/0002_game_is_active.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | game/migrations/0002_game_is_active.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | game/migrations/0002_game_is_active.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-06 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='game',
name='is_active',
field=m... | 19.526316 | 52 | 0.584906 | 39 | 371 | 5.487179 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069231 | 0.299191 | 371 | 18 | 53 | 20.611111 | 0.753846 | 0.115903 | 0 | 0 | 1 | 0 | 0.088957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb4dfab5e31060de260ec79ef005d98fa918393e | 2,428 | py | Python | home/migrations/0001_initial.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | home/migrations/0001_initial.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | home/migrations/0001_initial.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-09 03:42
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | 50.583333 | 192 | 0.63715 | 266 | 2,428 | 5.62406 | 0.37218 | 0.080214 | 0.05615 | 0.096257 | 0.447861 | 0.389706 | 0.278075 | 0.229947 | 0.229947 | 0.117647 | 0 | 0.023417 | 0.226112 | 2,428 | 47 | 193 | 51.659574 | 0.772751 | 0.027595 | 0 | 0 | 1 | 0 | 0.133588 | 0.019084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb4ebdb089a725776b7feae02de864afde02b9f1 | 802 | py | Python | Dataset/Leetcode/valid/15/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/15/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/15/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int]) -> List[List[int]]:
arr = nums.copy()
arr.sort()
ans = []
for i in range(len(arr)):
if i>0 and arr[i] == arr[i-1]: continue
left,right = i+1,len(arr)-1
while left<right:
if arr[i]+arr[... | 34.869565 | 66 | 0.430175 | 107 | 802 | 3.224299 | 0.261682 | 0.069565 | 0.101449 | 0.127536 | 0.373913 | 0.257971 | 0.202899 | 0.144928 | 0.144928 | 0 | 0 | 0.032189 | 0.418953 | 802 | 22 | 67 | 36.454545 | 0.708155 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
bb50dd1f7f6fc4cd13fecc3aa3adf3c000c85c10 | 1,799 | py | Python | python/flask/app/blueprint.py | kskumgk63/trace-examples | 1de45b351aa03367c745933b4923f07d436aea3e | [
"BSD-3-Clause"
] | 75 | 2017-03-20T12:17:14.000Z | 2022-03-24T02:55:53.000Z | python/flask/app/blueprint.py | kskumgk63/trace-examples | 1de45b351aa03367c745933b4923f07d436aea3e | [
"BSD-3-Clause"
] | 25 | 2017-05-10T18:21:20.000Z | 2022-01-28T18:36:52.000Z | python/flask/app/blueprint.py | kskumgk63/trace-examples | 1de45b351aa03367c745933b4923f07d436aea3e | [
"BSD-3-Clause"
] | 54 | 2017-05-10T18:13:52.000Z | 2022-01-11T21:04:42.000Z | from ddtrace import Pin
from flask import abort, Blueprint, render_template_string
from .limiter import limiter
# Create a new Blueprint
bp = Blueprint('bp', __name__, url_prefix='/bp/')
# Just showing that we can override the service set for this blueprint
Pin.override(bp, service='flask-bp', app='flask', app_type... | 23.064103 | 70 | 0.757643 | 274 | 1,799 | 4.748175 | 0.262774 | 0.099923 | 0.048424 | 0.043044 | 0.421214 | 0.252882 | 0.106841 | 0.079939 | 0.079939 | 0.079939 | 0 | 0.012426 | 0.150083 | 1,799 | 77 | 71 | 23.363636 | 0.838457 | 0.286826 | 0 | 0.097561 | 0 | 0 | 0.201575 | 0.055906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.073171 | 0.04878 | 0.463415 | 0.243902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb59ca10812a007e0cdb4b6a0d163afa2c131808 | 1,677 | py | Python | home-assistant/custom_components/intesishome.py | grischard/pyIntesisHome | ad6958ccf65d49715a6a72b9d2e10c25043a0eee | [
"MIT"
] | 1 | 2019-03-09T15:23:22.000Z | 2019-03-09T15:23:22.000Z | home-assistant/custom_components/intesishome.py | bradleyscott/pyIntesisHome | 92835b87b193530d077a7a1a30ee00a462c574e0 | [
"MIT"
] | null | null | null | home-assistant/custom_components/intesishome.py | bradleyscott/pyIntesisHome | 92835b87b193530d077a7a1a30ee00a462c574e0 | [
"MIT"
] | null | null | null | """
Support for IntesisHome Smart AC Controllers
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/intesishome/
"""
import logging
# from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassis... | 25.409091 | 106 | 0.749553 | 201 | 1,677 | 6.069652 | 0.467662 | 0.055738 | 0.027869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.159213 | 1,677 | 65 | 107 | 25.8 | 0.861702 | 0.191413 | 0 | 0 | 0 | 0 | 0.047868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.114286 | 0.2 | 0.028571 | 0.342857 | 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 |
bb5aa2c53f28b30b924b81917eb56e6d744cf8fc | 1,781 | py | Python | Tblog/forms.py | toads/Tblog | 185a745acbd03db61b5d65878ab25ea61eb95fcf | [
"MIT"
] | 1 | 2020-02-17T11:06:34.000Z | 2020-02-17T11:06:34.000Z | Tblog/forms.py | toads/Tblog | 185a745acbd03db61b5d65878ab25ea61eb95fcf | [
"MIT"
] | 4 | 2021-01-16T04:41:35.000Z | 2021-06-02T01:01:39.000Z | Tblog/forms.py | toads/Tblog | 185a745acbd03db61b5d65878ab25ea61eb95fcf | [
"MIT"
] | null | null | null | from flask_restful import reqparse
from flask_wtf import FlaskForm
from wtforms import BooleanField, PasswordField, StringField, SubmitField, TextAreaField, validators
from wtforms.validators import DataRequired, Length
class LoginForm(FlaskForm):
username = StringField('Username',
vali... | 37.104167 | 100 | 0.626614 | 167 | 1,781 | 6.526946 | 0.365269 | 0.099083 | 0.12844 | 0.133028 | 0.180734 | 0.093578 | 0.093578 | 0 | 0 | 0 | 0 | 0.016129 | 0.26895 | 1,781 | 47 | 101 | 37.893617 | 0.821045 | 0 | 0 | 0.157895 | 0 | 0 | 0.078046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.131579 | 0.105263 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bb5d743db4bab49ae5064e31c9279cec0f9e8896 | 360 | py | Python | ANDmain.py | TheEmilyAves/avian-nutrient-distributions | 1966af95b21a019c558e4c1185646c3a8f0ec625 | [
"MIT"
] | 2 | 2018-07-21T19:46:00.000Z | 2018-07-25T02:44:36.000Z | ANDmain.py | TheEmilyAves/avian-nutrient-distributions | 1966af95b21a019c558e4c1185646c3a8f0ec625 | [
"MIT"
] | null | null | null | ANDmain.py | TheEmilyAves/avian-nutrient-distributions | 1966af95b21a019c558e4c1185646c3a8f0ec625 | [
"MIT"
] | null | null | null | """
Main file for quail carotenoid data
"""
# import modules
import ANDfunctions_Main as m
# main function
def main():
headers = ""
bird, except_files, list_except, alt_calc, outfile_name = m.storeData()
m.modifyData(bird, except_files, list_except, alt_calc)
m.getOutput(bird, headers, outfile_name)
... | 18.947368 | 75 | 0.702778 | 48 | 360 | 4.916667 | 0.541667 | 0.084746 | 0.127119 | 0.161017 | 0.271186 | 0.271186 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0.186111 | 360 | 18 | 76 | 20 | 0.805461 | 0.180556 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
bb5d7c3574aab261283a957f11ad6dc11f162aba | 1,497 | py | Python | robosuite/models/grippers/xarm_gripper.py | mihdalal/robosuite | d66905b6bdc6871ddfb9ba8c485486e1424675ad | [
"MIT"
] | null | null | null | robosuite/models/grippers/xarm_gripper.py | mihdalal/robosuite | d66905b6bdc6871ddfb9ba8c485486e1424675ad | [
"MIT"
] | null | null | null | robosuite/models/grippers/xarm_gripper.py | mihdalal/robosuite | d66905b6bdc6871ddfb9ba8c485486e1424675ad | [
"MIT"
] | null | null | null | """
Aravind's janky attempt
"""
import numpy as np
from robosuite.models.grippers.gripper_model import GripperModel
from robosuite.utils.mjcf_utils import xml_path_completion
class XarmGripper(GripperModel):
""""""
def __init__(self, idn=0):
super().__init__(xml_path_completion("grippers/xarm_grippe... | 24.95 | 83 | 0.61523 | 173 | 1,497 | 4.99422 | 0.421965 | 0.076389 | 0.078704 | 0.048611 | 0.18287 | 0.18287 | 0.106481 | 0.106481 | 0.106481 | 0.106481 | 0 | 0.017941 | 0.292585 | 1,497 | 59 | 84 | 25.372881 | 0.797923 | 0.110888 | 0 | 0.195122 | 0 | 0 | 0.238749 | 0.189169 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.195122 | false | 0 | 0.097561 | 0.146341 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
24700f6f00a76cc4ba937b6419829e252589700c | 11,807 | py | Python | SysPy_ver/funcs/_gen_ISE_script.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 4 | 2017-12-28T14:00:16.000Z | 2021-01-21T08:53:14.000Z | SysPy_ver/funcs/_gen_ISE_script.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 1 | 2018-07-31T16:27:00.000Z | 2018-07-31T16:27:37.000Z | SysPy_ver/funcs/_gen_ISE_script.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 2 | 2015-10-12T09:13:13.000Z | 2020-01-06T12:22:55.000Z | """
*****************************************************************************
Project Name: SysPy (System Python)
http://cgi.di.uoa.gr/~evlog/syspy.html
File Name: _gen_ISE_script.py
Created by: Evangelos Logaras
*****************************************************************************
... | 53.913242 | 203 | 0.501906 | 1,205 | 11,807 | 4.565145 | 0.160996 | 0.154154 | 0.11816 | 0.074168 | 0.733503 | 0.694237 | 0.658426 | 0.617161 | 0.542265 | 0.542265 | 0 | 0.024851 | 0.345642 | 11,807 | 218 | 204 | 54.16055 | 0.68716 | 0.047175 | 0 | 0.526316 | 0 | 0 | 0.202566 | 0.057578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022556 | null | null | 0.037594 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.