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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51047009ea571a8e1f957cb448ebd1d72b071fc4 | 2,679 | py | Python | build/lib/bandwidth/voice/bxml/verbs/redirect.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | 5 | 2020-11-04T14:29:37.000Z | 2022-02-23T20:33:07.000Z | build/lib/bandwidth/voice/bxml/verbs/redirect.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | 3 | 2021-07-23T18:48:48.000Z | 2022-03-15T14:59:07.000Z | build/lib/bandwidth/voice/bxml/verbs/redirect.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | 8 | 2020-04-14T09:22:53.000Z | 2022-03-11T10:46:06.000Z | """
redirect.py
Representation of Bandwidth's redirect BXML verb
@copyright Bandwidth INC
"""
from lxml import etree
from .base_verb import AbstractBxmlVerb
REDIRECT_TAG = "Redirect"
class Redirect(AbstractBxmlVerb):
def __init__(self, redirect_url=None, redirect_method=None, tag=None, username=None, passwo... | 41.215385 | 103 | 0.695035 | 331 | 2,679 | 5.456193 | 0.193353 | 0.086379 | 0.044851 | 0.064784 | 0.207641 | 0.184939 | 0.049834 | 0.049834 | 0.049834 | 0 | 0 | 0 | 0.240388 | 2,679 | 64 | 104 | 41.859375 | 0.887469 | 0.281075 | 0 | 0 | 0 | 0 | 0.068568 | 0.012068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.216216 | 0.054054 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
510acc236531ba47fd115389b56d91a1e8269505 | 15,135 | py | Python | venv/lib/python2.7/site-packages/plotnine/data/__init__.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/data/__init__.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/data/__init__.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import pandas as pd
from pandas.api.types import CategoricalDtype
__all__ = ['diamonds', 'economics', 'economics_long',
'midwest', 'mpg', 'msleep', 'presidential',
'seals', 'txhousing', 'luv_colours',
... | 29.331395 | 78 | 0.611034 | 1,856 | 15,135 | 4.900862 | 0.324892 | 0.011873 | 0.015831 | 0.019349 | 0.337291 | 0.306728 | 0.242964 | 0.183817 | 0.176781 | 0.176781 | 0 | 0.024362 | 0.191807 | 15,135 | 515 | 79 | 29.38835 | 0.718198 | 0.020152 | 0 | 0.376 | 0 | 0.013333 | 0.838249 | 0.091936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005333 | false | 0 | 0.010667 | 0 | 0.021333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
510ca732ab0febae2e491cf6527efb03bb28960e | 2,400 | py | Python | Pension & Commutation Calculator/SignUp.py | Abhijit-007a/Pension_And_Commutation_Calculator | 787467af25286fa26f50a2c025711992eb445c8f | [
"Apache-2.0"
] | 1 | 2021-09-19T11:47:44.000Z | 2021-09-19T11:47:44.000Z | Pension & Commutation Calculator/SignUp.py | Abhijit-007a/Pension_And_Commutation_Calculator | 787467af25286fa26f50a2c025711992eb445c8f | [
"Apache-2.0"
] | null | null | null | Pension & Commutation Calculator/SignUp.py | Abhijit-007a/Pension_And_Commutation_Calculator | 787467af25286fa26f50a2c025711992eb445c8f | [
"Apache-2.0"
] | null | null | null | #importing all the tkinter modules.
from tkinter import *
from tkinter import messagebox
from PIL import Image, ImageTk
import mysql.connector as sql
win = Tk()
#defining basic geometry and characteristics of the window.
win.geometry("1000x700")
image = Image.open('SignUpImage.png')
photo_image = ImageTk.Pho... | 25.806452 | 101 | 0.635833 | 301 | 2,400 | 5.063123 | 0.445183 | 0.019685 | 0.023622 | 0.031496 | 0.292651 | 0.292651 | 0.292651 | 0.272966 | 0.272966 | 0.272966 | 0 | 0.033843 | 0.236667 | 2,400 | 93 | 102 | 25.806452 | 0.798035 | 0.132917 | 0 | 0.230769 | 0 | 0 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.25 | 0.076923 | 0 | 0.096154 | 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 |
51183bc6bdbf292c7756f837673e942a502dd193 | 237 | py | Python | torchtraps/__init__.py | winzurk/torchtraps | 9a15a2f723a4cddea7efc187f84956b27eb36f2f | [
"MIT"
] | null | null | null | torchtraps/__init__.py | winzurk/torchtraps | 9a15a2f723a4cddea7efc187f84956b27eb36f2f | [
"MIT"
] | 3 | 2021-09-08T01:49:02.000Z | 2022-03-12T00:21:18.000Z | torchtraps/__init__.py | winzurk/torchtraps | 9a15a2f723a4cddea7efc187f84956b27eb36f2f | [
"MIT"
] | null | null | null | """Top-level package for Torch Traps."""
__author__ = """Zac Winzurk"""
__email__ = 'zwinzurk@asu.edu'
__version__ = '0.1.0'
# from .coco_camera_traps_loader import *
# from .imagenet import imagenet_classes
# from .lightning import *
| 23.7 | 41 | 0.725738 | 31 | 237 | 5.032258 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.135021 | 237 | 9 | 42 | 26.333333 | 0.746341 | 0.586498 | 0 | 0 | 0 | 0 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
512a41bacb1cddefe094cb3758285c75286428d1 | 680 | py | Python | labelgame/migrations/0011_auto_20170822_1902.py | capriciash/civicu_app | 102a40fb771a9d9b37878da02ea66a0920006d8c | [
"MIT"
] | null | null | null | labelgame/migrations/0011_auto_20170822_1902.py | capriciash/civicu_app | 102a40fb771a9d9b37878da02ea66a0920006d8c | [
"MIT"
] | null | null | null | labelgame/migrations/0011_auto_20170822_1902.py | capriciash/civicu_app | 102a40fb771a9d9b37878da02ea66a0920006d8c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 02:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('labelgame', '0010_auto_20170822_1857'),
]
operations = [
migrations.AlterFi... | 28.333333 | 199 | 0.598529 | 72 | 680 | 5.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0.242647 | 680 | 23 | 200 | 29.565217 | 0.700971 | 0.1 | 0 | 0.125 | 1 | 0 | 0.200328 | 0.037767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 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 |
512ea83053328520e513cb86e1b1a689945a30dc | 1,174 | py | Python | check_data_integrity/fix/fixer/fixer.py | mpmuc84/helper-scripts | 573353827d94f65efe763a93770ba75bcda90fff | [
"BSD-2-Clause"
] | 4 | 2018-10-11T09:48:39.000Z | 2019-11-12T06:17:17.000Z | check_data_integrity/fix/fixer/fixer.py | mpmuc84/helper-scripts | 573353827d94f65efe763a93770ba75bcda90fff | [
"BSD-2-Clause"
] | 26 | 2017-11-10T15:46:03.000Z | 2021-08-13T12:02:27.000Z | check_data_integrity/fix/fixer/fixer.py | mpmuc84/helper-scripts | 573353827d94f65efe763a93770ba75bcda90fff | [
"BSD-2-Clause"
] | 21 | 2017-10-12T11:47:37.000Z | 2021-05-05T13:07:59.000Z | from abc import ABCMeta, abstractmethod
class Fixer:
"""
Abstract class defining the methods every subclass has to implement for fixing inconsistent data.
"""
__metaclass__ = ABCMeta
@abstractmethod
def fix(self, opencast_url, digest_login, event_id):
"""
Fix the given event.
... | 26.088889 | 101 | 0.636286 | 130 | 1,174 | 5.623077 | 0.446154 | 0.049248 | 0.073871 | 0.136799 | 0.29275 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30494 | 1,174 | 44 | 102 | 26.681818 | 0.895833 | 0.496593 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5130a25d5ed3634e87ef47dcbe79178f60a2783b | 4,454 | py | Python | Desktop-App/UI-Based App/Result_MLP.py | EddieKaleb/CricAI | 2ce714c7dfe1495b9f579d87490ab40914670f02 | [
"MIT"
] | 9 | 2018-09-25T06:19:52.000Z | 2021-10-06T11:06:01.000Z | Desktop-App/UI-Based App/Result_MLP.py | govind-bisht03/CricAI | fa497197627ec769d9a9be6c9f1ddeab3c826f7e | [
"MIT"
] | 21 | 2017-11-23T19:44:29.000Z | 2020-10-17T11:26:46.000Z | Desktop-App/UI-Based App/Result_MLP.py | govind-bisht03/CricAI | fa497197627ec769d9a9be6c9f1ddeab3c826f7e | [
"MIT"
] | 29 | 2017-12-11T10:24:22.000Z | 2020-10-16T13:04:13.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Result_MLP.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWi... | 44.989899 | 150 | 0.691513 | 451 | 4,454 | 6.780488 | 0.2949 | 0.055592 | 0.054938 | 0.052322 | 0.267168 | 0.117724 | 0.117724 | 0.117724 | 0.117724 | 0.117724 | 0 | 0.039394 | 0.185002 | 4,454 | 98 | 151 | 45.44898 | 0.80303 | 0.041087 | 0 | 0.178571 | 1 | 0 | 0.090077 | 0.012198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.035714 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5133c8da0c788e7f385523bfdad1962d8bd3df18 | 280 | py | Python | testCreateDb.py | chaya7282/flask-shop-master | 9d1aedd6e39d4cac2b3c5585257415eee2558b71 | [
"BSD-3-Clause"
] | 1 | 2021-08-17T08:14:47.000Z | 2021-08-17T08:14:47.000Z | testCreateDb.py | chaya7282/flask-shop-master | 9d1aedd6e39d4cac2b3c5585257415eee2558b71 | [
"BSD-3-Clause"
] | null | null | null | testCreateDb.py | chaya7282/flask-shop-master | 9d1aedd6e39d4cac2b3c5585257415eee2558b71 | [
"BSD-3-Clause"
] | 1 | 2021-08-17T08:14:48.000Z | 2021-08-17T08:14:48.000Z | # -*- coding: utf-8 -*-
"""Click commands."""
from flask_script import Manager
from flaskshop import random_data
import flaskshop
import flaskshop.commands as commands
app= flaskshop.create_app()
manager = Manager(app)
if __name__ == "__main__":
manager.run()
manager.se | 21.538462 | 37 | 0.735714 | 36 | 280 | 5.416667 | 0.583333 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.146429 | 280 | 13 | 38 | 21.538462 | 0.811715 | 0.135714 | 0 | 0 | 0 | 0 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5144c4d72df0f27c405d9c186efa2f5400ee41ce | 332 | py | Python | Tarea1b_SpaceWars/hitmarker.py | salistito/Computer-Graphics | f56b453609bbe8496f504f438770fde992af68fe | [
"MIT"
] | null | null | null | Tarea1b_SpaceWars/hitmarker.py | salistito/Computer-Graphics | f56b453609bbe8496f504f438770fde992af68fe | [
"MIT"
] | null | null | null | Tarea1b_SpaceWars/hitmarker.py | salistito/Computer-Graphics | f56b453609bbe8496f504f438770fde992af68fe | [
"MIT"
] | null | null | null | """
Sebastián Salinas, CC3501, 6/05/20
Tarea1b
"""
# Importamos algunos modulos
import math
# Función para evaluar la colisión entre 2 objetos
def hitmarker(x1,y1,x2,y2):
distancia = math.sqrt((x1-x2)**2 + (y1-y2)**2) # Ecuación de la distancia
if distancia < 0.075: #0.075
return True
else:
... | 25.538462 | 77 | 0.665663 | 50 | 332 | 4.42 | 0.74 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.213855 | 332 | 13 | 78 | 25.538462 | 0.735632 | 0.448795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
514a79000a503d03dd773bda6a965fb3b20a7db7 | 737 | py | Python | solution/viz/clean_words.py | GabrielMissael/solution | aff33732d04efedb60c1ebc70fd5108ae5cc558e | [
"MIT"
] | null | null | null | solution/viz/clean_words.py | GabrielMissael/solution | aff33732d04efedb60c1ebc70fd5108ae5cc558e | [
"MIT"
] | null | null | null | solution/viz/clean_words.py | GabrielMissael/solution | aff33732d04efedb60c1ebc70fd5108ae5cc558e | [
"MIT"
] | null | null | null | import re
import unicodedata
import nltk
from nltk.corpus import stopwords
import pandas as pd
def clean_words(text_DataFrame:pd.DataFrame):
"""
A simple function to clean up the data. All the words that
are not designated as a stop word is then lemmatized after
encoding and basic regex parsing are per... | 33.5 | 75 | 0.683853 | 103 | 737 | 4.864078 | 0.631068 | 0.03992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001672 | 0.188602 | 737 | 21 | 76 | 35.095238 | 0.83612 | 0.223881 | 0 | 0 | 0 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
514a92812de5f63e1e53a1ba432f40d277ebdbba | 780 | py | Python | imagemodel/common/predictor.py | tenkeyless/imagemodel | 360c672117b5ccb1bfb3d6771b0720fa1a1f513c | [
"MIT"
] | null | null | null | imagemodel/common/predictor.py | tenkeyless/imagemodel | 360c672117b5ccb1bfb3d6771b0720fa1a1f513c | [
"MIT"
] | null | null | null | imagemodel/common/predictor.py | tenkeyless/imagemodel | 360c672117b5ccb1bfb3d6771b0720fa1a1f513c | [
"MIT"
] | null | null | null | from typing import Optional
import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.python.distribute.tpu_strategy import TPUStrategy
class Predictor:
def __init__(
self,
model: Model,
predict_dataset: tf.data.Dataset,
predict_dataset_desc... | 32.5 | 75 | 0.694872 | 86 | 780 | 6.034884 | 0.348837 | 0.16185 | 0.144509 | 0.077071 | 0.265896 | 0.157996 | 0.157996 | 0 | 0 | 0 | 0 | 0 | 0.246154 | 780 | 23 | 76 | 33.913043 | 0.882653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.210526 | 0 | 0.368421 | 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 |
514d5df2cbf6b921babea277704186e66c61af98 | 3,700 | py | Python | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | '''
Dijkstra's algorithm for weighted undirected graph
'''
from collections import deque
class Dijkstra:
def __init__(self, graph):
self.vertex_visited = list()
self.distance = {}
self.graph = graph
self.source = None
self.queue_size = 0
self.min_queue = deque()
... | 33.333333 | 104 | 0.526216 | 481 | 3,700 | 3.954262 | 0.216216 | 0.084648 | 0.138801 | 0.061514 | 0.267087 | 0.213985 | 0.179285 | 0.138276 | 0.050473 | 0.050473 | 0 | 0.028386 | 0.333514 | 3,700 | 110 | 105 | 33.636364 | 0.742903 | 0.077027 | 0 | 0.125 | 0 | 0 | 0.009006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0125 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
514d67f48ef86730369a1f20030702bb95bc30ac | 33,053 | py | Python | ServerFiles/FrontFollowingNetwork.py | Forence1999/SmartWalker | 635410bf44234eead9fd1e2fe226eb8eafa9d27d | [
"MIT"
] | 2 | 2021-11-13T14:16:06.000Z | 2022-01-12T06:07:32.000Z | ServerFiles/FrontFollowingNetwork.py | Forence1999/SmartWalker | 635410bf44234eead9fd1e2fe226eb8eafa9d27d | [
"MIT"
] | null | null | null | ServerFiles/FrontFollowingNetwork.py | Forence1999/SmartWalker | 635410bf44234eead9fd1e2fe226eb8eafa9d27d | [
"MIT"
] | 3 | 2021-08-30T04:40:39.000Z | 2022-01-09T11:34:04.000Z | #-*- coding: UTF-8 -*-
import sys,os
pwd = os.path.abspath(os.path.abspath(__file__))
father_path = os.path.abspath(os.path.dirname(pwd) + os.path.sep + "..")
sys.path.append(father_path)
import tensorflow as tf
from tensorflow import keras
import numpy as np
import os
from typing import Tuple
import random
from Networ... | 55.365159 | 184 | 0.587571 | 3,975 | 33,053 | 4.581384 | 0.064151 | 0.038054 | 0.020208 | 0.016474 | 0.75092 | 0.708912 | 0.670035 | 0.630498 | 0.614079 | 0.598649 | 0 | 0.024984 | 0.308535 | 33,053 | 596 | 185 | 55.458054 | 0.771822 | 0.033885 | 0 | 0.530815 | 0 | 0.001988 | 0.049478 | 0.022343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025845 | false | 0 | 0.015905 | 0.001988 | 0.069583 | 0.021869 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
514fd7037382f0059f2a8f6642dd4dde72119752 | 1,024 | py | Python | calendar_manager/accounts/views/signin.py | greyhub/calendar_manager | 837a0d938fdd58684279fb32f8a50805bb306fe1 | [
"MIT"
] | 6 | 2021-11-23T19:52:55.000Z | 2022-03-30T13:45:05.000Z | calendar_manager/accounts/views/signin.py | greyhub/calendar_manager | 837a0d938fdd58684279fb32f8a50805bb306fe1 | [
"MIT"
] | null | null | null | calendar_manager/accounts/views/signin.py | greyhub/calendar_manager | 837a0d938fdd58684279fb32f8a50805bb306fe1 | [
"MIT"
] | 1 | 2021-11-23T10:14:54.000Z | 2021-11-23T10:14:54.000Z | from django.views.generic import View
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from accounts.forms import SignInForm
class SignInView(View):
""" User registration view """
template_name = 'accounts/signin.html'
form_class = SignInForm
def get(... | 32 | 63 | 0.621094 | 110 | 1,024 | 5.690909 | 0.390909 | 0.047923 | 0.047923 | 0.067093 | 0.309904 | 0.309904 | 0.309904 | 0.309904 | 0.185304 | 0.185304 | 0 | 0 | 0.27832 | 1,024 | 32 | 64 | 32 | 0.847091 | 0.021484 | 0 | 0.230769 | 0 | 0 | 0.065327 | 0.024121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5156148de28f4156b72965f292cfcca3cbc248dc | 3,617 | py | Python | main.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | main.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | main.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | import os
from ai import model, process, vectorizer
from youtube import comment, getid, video
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import MessageEvent, TextMessage, TextSendMessage
SECRET = os.environ['SECRET']
TOKEN = os.environ['TOK... | 31.72807 | 170 | 0.592756 | 423 | 3,617 | 5.021277 | 0.408983 | 0.018832 | 0.035311 | 0.047081 | 0.177966 | 0.177966 | 0.177966 | 0.177966 | 0.134652 | 0.084746 | 0 | 0.021277 | 0.259331 | 3,617 | 113 | 171 | 32.00885 | 0.771557 | 0.002212 | 0 | 0.123596 | 0 | 0.033708 | 0.148836 | 0.028271 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089888 | null | null | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
515f0a6a29381f3507258c4ec4a21b66fa8b9463 | 2,808 | py | Python | RL/test_depths.py | RECON-Labs-Inc/svox2 | 2946c1573fc4c8c8f378bf8154c29ba8d62af927 | [
"BSD-2-Clause"
] | null | null | null | RL/test_depths.py | RECON-Labs-Inc/svox2 | 2946c1573fc4c8c8f378bf8154c29ba8d62af927 | [
"BSD-2-Clause"
] | null | null | null | RL/test_depths.py | RECON-Labs-Inc/svox2 | 2946c1573fc4c8c8f378bf8154c29ba8d62af927 | [
"BSD-2-Clause"
] | null | null | null | import sys
from pathlib import Path
from datetime import datetime
import argparse
import json
import torch
from torchvision.utils import save_image
import torchvision
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics import pairwise_distances_argmin
from sklea... | 26.490566 | 74 | 0.654915 | 376 | 2,808 | 4.702128 | 0.385638 | 0.031674 | 0.039593 | 0.024887 | 0.06448 | 0.022624 | 0 | 0 | 0 | 0 | 0 | 0.041409 | 0.251781 | 2,808 | 105 | 75 | 26.742857 | 0.800095 | 0.130698 | 0 | 0.030303 | 0 | 0 | 0.063041 | 0.021014 | 0 | 0 | 0 | 0.009524 | 0 | 1 | 0.015152 | false | 0 | 0.363636 | 0 | 0.378788 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
515f518715b6288fc69c17ec11ceead08e8d514f | 9,535 | py | Python | qtgui.py | izaletel/NeuroMorpho-Access-Tool | 3441785edbddaf4b357377e9c7897dbbad42dc87 | [
"MIT"
] | null | null | null | qtgui.py | izaletel/NeuroMorpho-Access-Tool | 3441785edbddaf4b357377e9c7897dbbad42dc87 | [
"MIT"
] | null | null | null | qtgui.py | izaletel/NeuroMorpho-Access-Tool | 3441785edbddaf4b357377e9c7897dbbad42dc87 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'qtgui.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#####################... | 60.732484 | 140 | 0.724698 | 1,179 | 9,535 | 5.60475 | 0.155216 | 0.036017 | 0.100636 | 0.103511 | 0.545854 | 0.38862 | 0.256053 | 0.154964 | 0.044794 | 0.020278 | 0 | 0.032334 | 0.153435 | 9,535 | 156 | 141 | 61.121795 | 0.786298 | 0.02947 | 0 | 0 | 1 | 0 | 0.101575 | 0.021813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014815 | false | 0 | 0.022222 | 0 | 0.044444 | 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 |
516143d6f8476fa2b9d91fe746b6871aa05baca3 | 4,690 | py | Python | plugins/modules/tag_member.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | plugins/modules/tag_member.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | plugins/modules/tag_member.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: tag_member
short_description: Manage TagMember objects of Tag
description:
- Returns tag members specified by id.... | 29.3125 | 117 | 0.715991 | 631 | 4,690 | 5.229794 | 0.313788 | 0.040909 | 0.048788 | 0.032727 | 0.270303 | 0.178788 | 0.152727 | 0.093333 | 0.05697 | 0.05697 | 0 | 0.00676 | 0.211514 | 4,690 | 159 | 118 | 29.496855 | 0.885073 | 0.034968 | 0 | 0.426573 | 0 | 0.034965 | 0.984962 | 0.102609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
516815174595feb3cdc84a37dc37e334c26007d4 | 941 | py | Python | sme_material_apps/core/migrations/0005_material_categoria.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/core/migrations/0005_material_categoria.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/core/migrations/0005_material_categoria.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-07-20 19:50
from django.db import migrations
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20200717_1159'),
]
operations = [
migrations.AddField(
model_name='material',
... | 47.05 | 579 | 0.676939 | 117 | 941 | 5.34188 | 0.57265 | 0.0576 | 0.0192 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051047 | 0.188098 | 941 | 19 | 580 | 49.526316 | 0.767016 | 0.047821 | 0 | 0 | 1 | 0 | 0.50783 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
516a41921de7bc6d406a64cbe02684f2db6fb80f | 833 | py | Python | RT_Group/main/models.py | DiForzza/site_one | 440efe197e1ecaab3416460f1827738d160e48b6 | [
"Apache-2.0"
] | null | null | null | RT_Group/main/models.py | DiForzza/site_one | 440efe197e1ecaab3416460f1827738d160e48b6 | [
"Apache-2.0"
] | null | null | null | RT_Group/main/models.py | DiForzza/site_one | 440efe197e1ecaab3416460f1827738d160e48b6 | [
"Apache-2.0"
] | null | null | null | from django.db import models
import datetime
class Task(models.Model):
title = models.CharField("Название", max_length=50)
task = models.TextField("Описание")
date = models.DateTimeField(u'Дата и время', default=datetime.datetime.now())
def __str__(self):
return self.title
class Meta:
... | 25.242424 | 81 | 0.681873 | 102 | 833 | 5.352941 | 0.490196 | 0.080586 | 0.054945 | 0.087912 | 0.124542 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0.00761 | 0.211285 | 833 | 33 | 82 | 25.242424 | 0.82344 | 0 | 0 | 0.217391 | 0 | 0 | 0.110312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.130435 | 0.826087 | 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 |
516aa9e7ed14b4702820fbf786e6257801f2f755 | 364 | py | Python | emapp/auth.py | azrle/flask-restful-emapp-demo | 4be19725538a5e961afb77a1495d6c57ae0be89a | [
"MIT"
] | null | null | null | emapp/auth.py | azrle/flask-restful-emapp-demo | 4be19725538a5e961afb77a1495d6c57ae0be89a | [
"MIT"
] | null | null | null | emapp/auth.py | azrle/flask-restful-emapp-demo | 4be19725538a5e961afb77a1495d6c57ae0be89a | [
"MIT"
] | null | null | null | from functools import wraps
from flask import current_app, request
from flask_restful import abort
def auth_simple_token(func):
@wraps(func)
def wrapper(*args, **kwargs):
token = request.headers.get('x-simple-auth')
if current_app.config['API_KEY'] == token:
return func(*args, **kw... | 26 | 52 | 0.667582 | 48 | 364 | 4.9375 | 0.5625 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.225275 | 364 | 13 | 53 | 28 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a9109ad68997c62118ea1f04a5cdac8b71bc9b1 | 2,289 | py | Python | categorias.py | OrlandoBitencourt/proway_python_exercicio1 | 4fe2aa48aab350cd5e949d95feefe37d1b2af387 | [
"MIT"
] | null | null | null | categorias.py | OrlandoBitencourt/proway_python_exercicio1 | 4fe2aa48aab350cd5e949d95feefe37d1b2af387 | [
"MIT"
] | null | null | null | categorias.py | OrlandoBitencourt/proway_python_exercicio1 | 4fe2aa48aab350cd5e949d95feefe37d1b2af387 | [
"MIT"
] | null | null | null | import main
def cadastrar_categoria(nome: str):
with open("categorias.txt", "a") as file:
dados = f"{nome}\n"
file.write(dados)
print("Categoria cadastrada com sucesso! \n")
def listar_categorias():
main.categorias_list.clear()
print(f"Lista de categorias: \n")
with open("cate... | 31.791667 | 103 | 0.553954 | 259 | 2,289 | 4.787645 | 0.262548 | 0.106452 | 0.18629 | 0.141129 | 0.279032 | 0.101613 | 0.045161 | 0 | 0 | 0 | 0 | 0.005636 | 0.302315 | 2,289 | 72 | 104 | 31.791667 | 0.77082 | 0 | 0 | 0.071429 | 0 | 0 | 0.151092 | 0.027074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0.017857 | 0.017857 | 0 | 0.071429 | 0.178571 | 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 |
5a9713280ba850f01b042a95ba2fef86e7e5c38e | 5,533 | py | Python | GenPasswd/genpasswd.py | Gowthaman1401/GenPass | dd6450d80e99648f1d23cb0e034189b5fe56bbd1 | [
"MIT"
] | null | null | null | GenPasswd/genpasswd.py | Gowthaman1401/GenPass | dd6450d80e99648f1d23cb0e034189b5fe56bbd1 | [
"MIT"
] | null | null | null | GenPasswd/genpasswd.py | Gowthaman1401/GenPass | dd6450d80e99648f1d23cb0e034189b5fe56bbd1 | [
"MIT"
] | null | null | null | import random
from . import constants
from . import exceptions
class PasswordGenerator:
def __init__(self, length=False, ignore=False, only=False, include=False, repeat=False, separator=False,
separator_length=False, separation=False):
self.__password = None
self.__avai... | 44.98374 | 165 | 0.590638 | 557 | 5,533 | 5.543986 | 0.156194 | 0.025259 | 0.060557 | 0.049223 | 0.359132 | 0.343588 | 0.334521 | 0.222474 | 0.182319 | 0.167746 | 0 | 0.000815 | 0.33508 | 5,533 | 122 | 166 | 45.352459 | 0.838543 | 0 | 0 | 0.293578 | 0 | 0 | 0.021807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100917 | false | 0.155963 | 0.027523 | 0 | 0.165138 | 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 |
5a9ae867d70612f2ffe19fc29174270aa28f529d | 602 | py | Python | src/astro/utils/schema_util.py | malthe/astro | 61036ab08b2826136f64fdbfc6ca21b61643a8a0 | [
"Apache-2.0"
] | null | null | null | src/astro/utils/schema_util.py | malthe/astro | 61036ab08b2826136f64fdbfc6ca21b61643a8a0 | [
"Apache-2.0"
] | null | null | null | src/astro/utils/schema_util.py | malthe/astro | 61036ab08b2826136f64fdbfc6ca21b61643a8a0 | [
"Apache-2.0"
] | null | null | null | import os
from airflow.providers.postgres.hooks.postgres import PostgresHook
from psycopg2 import sql
def set_schema_query(conn_type, hook, schema_id, user):
if conn_type == "postgres":
return (
sql.SQL("CREATE SCHEMA IF NOT EXISTS {schema} AUTHORIZATION {user}")
.format(schema=s... | 28.666667 | 80 | 0.682724 | 80 | 602 | 4.925 | 0.4625 | 0.060914 | 0.060914 | 0.086294 | 0.147208 | 0.147208 | 0 | 0 | 0 | 0 | 0 | 0.00211 | 0.212625 | 602 | 20 | 81 | 30.1 | 0.829114 | 0 | 0 | 0 | 0 | 0 | 0.245847 | 0.043189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 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 |
5aa3314ea9abea60e379f77782cb7a74e3c4aa9a | 543 | py | Python | coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | 1 | 2021-01-25T09:21:17.000Z | 2021-01-25T09:21:17.000Z | from unittest import TestCase
import numpy as np
from bokeh.models import LayoutDOM
from coord2vec.evaluation.visualizations.bokeh_plots import bokeh_pr_curve_from_y_proba
class TestBokeh_pr_curve(TestCase):
@classmethod
def setUpClass(cls):
cls.y_pred = np.random.choice((0, 1), size=10)
cls... | 30.166667 | 96 | 0.740331 | 82 | 543 | 4.658537 | 0.487805 | 0.073298 | 0.094241 | 0.08377 | 0.230366 | 0.230366 | 0.115183 | 0 | 0 | 0 | 0 | 0.019912 | 0.167587 | 543 | 17 | 97 | 31.941176 | 0.825221 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
5aa44f0e70c5feb1742576c75322458cf3b62dfc | 5,267 | py | Python | scripts/pyBusPirateLite/shtxx.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/pyBusPirateLite/shtxx.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/pyBusPirateLite/shtxx.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#based on Microwire.py and hackaday buspirate/sht tutorial
import sys,time
from optparse import OptionParser
from pyBusPirateLite.RAW_WIRE import *
def sht_command(rw, data):
##clear shtxx interface
rw.data_high()
for i in range(9):
rw.clk_tick()
#start... | 30.445087 | 181 | 0.63034 | 709 | 5,267 | 4.519041 | 0.275035 | 0.032772 | 0.03995 | 0.052434 | 0.294007 | 0.235955 | 0.225343 | 0.191011 | 0.191011 | 0.191011 | 0 | 0.024484 | 0.255553 | 5,267 | 172 | 182 | 30.622093 | 0.7924 | 0.152269 | 0 | 0.392857 | 0 | 0 | 0.177572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026786 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5aa5bff8e0546b4cefb038da047c7522a33ff849 | 788 | py | Python | screenpy/questions/text_of_the_alert.py | perrygoy/screenpy | 862c0d7e5ff9f1265e520ab383c04ddbd4d060eb | [
"MIT"
] | 39 | 2019-03-22T15:18:23.000Z | 2022-02-23T17:32:03.000Z | screenpy/questions/text_of_the_alert.py | perrygoy/screenpy | 862c0d7e5ff9f1265e520ab383c04ddbd4d060eb | [
"MIT"
] | 63 | 2019-07-17T06:25:19.000Z | 2022-01-13T07:03:53.000Z | screenpy/questions/text_of_the_alert.py | bandophahita/screenpy | db0f3ef91a891b9d095016d83fa4b589620808ce | [
"MIT"
] | 15 | 2019-07-09T11:02:56.000Z | 2021-12-24T07:43:56.000Z | """
Investigate the text of an alert.
"""
from screenpy.abilities import BrowseTheWeb
from screenpy.actor import Actor
from screenpy.pacing import beat
class TextOfTheAlert:
"""Ask what text appears in the alert.
Abilities Required:
|BrowseTheWeb|
Examples::
the_actor.should(
... | 24.625 | 77 | 0.648477 | 96 | 788 | 5.25 | 0.479167 | 0.063492 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243655 | 788 | 31 | 78 | 25.419355 | 0.845638 | 0.374365 | 0 | 0 | 0 | 0 | 0.124717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5aa673e34f00e357af0fafa959cade5423c31460 | 418 | py | Python | 4_parallel_execution/purethreads.py | TihonV/pygoexamples | ca9604862d08145057aefc60cd0f9b77c9f5346a | [
"MIT"
] | 18 | 2020-01-23T21:20:47.000Z | 2022-02-20T19:10:02.000Z | 4_parallel_execution/purethreads.py | TihonV/pygoexamples | ca9604862d08145057aefc60cd0f9b77c9f5346a | [
"MIT"
] | null | null | null | 4_parallel_execution/purethreads.py | TihonV/pygoexamples | ca9604862d08145057aefc60cd0f9b77c9f5346a | [
"MIT"
] | 4 | 2019-08-03T12:59:53.000Z | 2022-02-07T23:43:35.000Z | import time
from threading import Thread
COUNT = 50000000
def countdown(n):
while n > 0:
n -= 1
print ('Done! My final value is {0}'.format(n))
half_count = int(COUNT/2)
t1 = Thread(target=countdown, args=(half_count,))
t2 = Thread(target=countdown, args=(half_count,))
start = time.time()
t1.start()... | 17.416667 | 51 | 0.657895 | 65 | 418 | 4.184615 | 0.507692 | 0.099265 | 0.154412 | 0.183824 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.181818 | 418 | 23 | 52 | 18.173913 | 0.74269 | 0 | 0 | 0 | 0 | 0 | 0.119904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.117647 | 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 |
5aad234b18b05002548a9589e1100a906a36ebac | 2,765 | py | Python | edm_web1/app/task/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/app/task/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/app/task/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # coding=utf-8
from django import forms
from app.task.models import SendTask
from app.template.models import SendTemplate
from app.address.models import MailList
from django.utils.translation import ugettext_lazy as _
from django.core.cache import cache
class SendTaskForm(forms.ModelForm):
user = forms.CharField(l... | 42.538462 | 131 | 0.644485 | 321 | 2,765 | 5.345794 | 0.398754 | 0.034965 | 0.044289 | 0.04662 | 0.135198 | 0.054779 | 0.054779 | 0 | 0 | 0 | 0 | 0.003179 | 0.203617 | 2,765 | 64 | 132 | 43.203125 | 0.776113 | 0.294756 | 0 | 0.102564 | 0 | 0 | 0.102431 | 0.0388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.025641 | 0.512821 | 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 |
5abb45490eb0d080f875383d0f61e11894705270 | 396 | py | Python | setup.py | ajagnic/stromCLI | f36b3a97a28cb4f6bf644fdfd6660307b19a6fab | [
"MIT"
] | null | null | null | setup.py | ajagnic/stromCLI | f36b3a97a28cb4f6bf644fdfd6660307b19a6fab | [
"MIT"
] | null | null | null | setup.py | ajagnic/stromCLI | f36b3a97a28cb4f6bf644fdfd6660307b19a6fab | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='strom-cli',
author='Adrian Agnic',
author_email='adrian@tura.io',
version='0.0.1',
description='CLI tool for use with Strom',
packages=find_packages(),
include_package_data=True,
install_requires=['click', 'requests'],
entry_p... | 23.294118 | 46 | 0.669192 | 48 | 396 | 5.354167 | 0.770833 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.189394 | 396 | 16 | 47 | 24.75 | 0.791277 | 0 | 0 | 0 | 0 | 0 | 0.353535 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5abba2ed2df006c8126b41c355cba49e34d89853 | 776 | py | Python | backend/post/migrations/0005_auto_20190424_1912.py | aurma97/to52_ok | c5f940416938e1bb0d3110dfafa43cb7197df984 | [
"MIT"
] | null | null | null | backend/post/migrations/0005_auto_20190424_1912.py | aurma97/to52_ok | c5f940416938e1bb0d3110dfafa43cb7197df984 | [
"MIT"
] | 4 | 2021-04-08T22:09:42.000Z | 2021-06-10T20:38:06.000Z | backend/post/migrations/0005_auto_20190424_1912.py | aurma97/to52_ok | c5f940416938e1bb0d3110dfafa43cb7197df984 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2019-04-24 19:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('post', '0004_post_an_type'),
]
operations = [
migrations.CreateModel(
name='PostType',
... | 28.740741 | 115 | 0.595361 | 84 | 776 | 5.380952 | 0.654762 | 0.053097 | 0.061947 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039007 | 0.273196 | 776 | 26 | 116 | 29.846154 | 0.762411 | 0.05799 | 0 | 0.1 | 1 | 0 | 0.093278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5acaacc2a5d0c1b378c239243152d8b863342a4f | 2,072 | py | Python | python/waf-alb-ec2-glue-athena-s3/app.py | gsy0911/aws-cdk-small-examples | e4b4be076d22f5d35f640e59a6ca346988baa1af | [
"Apache-2.0"
] | 2 | 2021-01-19T18:15:22.000Z | 2021-02-09T22:18:09.000Z | python/waf-alb-ec2-glue-athena-s3/app.py | gsy0911/aws-cdk-small-examples | e4b4be076d22f5d35f640e59a6ca346988baa1af | [
"Apache-2.0"
] | 14 | 2020-11-20T01:54:27.000Z | 2021-01-12T08:15:39.000Z | python/waf-alb-ec2-glue-athena-s3/app.py | gsy0911/aws-cdk-small-examples | e4b4be076d22f5d35f640e59a6ca346988baa1af | [
"Apache-2.0"
] | null | null | null | from aws_cdk import (
aws_autoscaling as autoscaling,
aws_ec2 as ec2,
aws_elasticloadbalancingv2 as elbv2,
aws_wafv2 as wafv2,
core,
)
class LoadBalancerStack(core.Stack):
def __init__(self, app: core.App, id: str) -> None:
super().__init__(app, id)
vpc = ec2.Vpc(self, "VPC")
... | 29.6 | 105 | 0.599903 | 226 | 2,072 | 5.243363 | 0.530973 | 0.020253 | 0.016878 | 0.023629 | 0.042194 | 0.042194 | 0.042194 | 0 | 0 | 0 | 0 | 0.021843 | 0.292954 | 2,072 | 69 | 106 | 30.028986 | 0.787031 | 0.056467 | 0 | 0.04 | 0 | 0 | 0.070951 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.08 | 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 |
5acb201e61977d9de73500bb4e5a0c3ac26a488a | 575 | py | Python | src/twitter_utils/browser_session.py | namuan/twitter-tools | b8fad3c668f7bd65c74a0449b450bde957326ce4 | [
"MIT"
] | 1 | 2020-07-10T23:35:23.000Z | 2020-07-10T23:35:23.000Z | src/twitter_utils/browser_session.py | namuan/twitter-tools | b8fad3c668f7bd65c74a0449b450bde957326ce4 | [
"MIT"
] | 1 | 2020-10-02T01:51:51.000Z | 2020-10-02T01:51:51.000Z | src/twitter_utils/browser_session.py | namuan/twitter-tools | b8fad3c668f7bd65c74a0449b450bde957326ce4 | [
"MIT"
] | 2 | 2020-05-24T07:03:43.000Z | 2020-06-24T01:36:43.000Z | from typing import Any
from selenium import webdriver # type: ignore
class BrowserSession: # pragma: no cover
def __init__(self, given_browser: Any) -> None:
self.browser = given_browser
self.session = webdriver.Firefox("fireprofile")
def start(self) -> None:
if self.browser == "sa... | 26.136364 | 55 | 0.622609 | 65 | 575 | 5.415385 | 0.476923 | 0.15625 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267826 | 575 | 21 | 56 | 27.380952 | 0.836105 | 0.050435 | 0 | 0 | 0 | 0 | 0.042357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ad51d488ab3d8dfcae8a309205c863eaacc63bd | 717 | py | Python | main.py | jostimian/Python-To-Facebook | b52f2fb4db01263dc279241c24ad6e9515ba5f45 | [
"MIT"
] | null | null | null | main.py | jostimian/Python-To-Facebook | b52f2fb4db01263dc279241c24ad6e9515ba5f45 | [
"MIT"
] | null | null | null | main.py | jostimian/Python-To-Facebook | b52f2fb4db01263dc279241c24ad6e9515ba5f45 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
email = input("Enter Your Email: ")
password = input("Enter Your Password: ")
def login():
browser = webdriver.Chrome()
browser.get("https://www.facebook.com")
emailid = browser.find_element_by_id("email")
passid =... | 24.724138 | 55 | 0.677824 | 89 | 717 | 5.337079 | 0.438202 | 0.084211 | 0.117895 | 0.126316 | 0.463158 | 0.227368 | 0.227368 | 0.227368 | 0.227368 | 0.227368 | 0 | 0 | 0.191074 | 717 | 28 | 56 | 25.607143 | 0.818966 | 0 | 0 | 0.285714 | 0 | 0 | 0.170153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.333333 | 0.095238 | 0 | 0.142857 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ad86ff306f582b52295bb807123e900f16d76f5 | 818 | py | Python | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | ####################################
# File name: models.py #
# Author: Fred Rybin #
####################################
from rss_skill import db
class Feed(db.Model):
__tablename__ = 'feed'
rss_i = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.... | 31.461538 | 71 | 0.572127 | 105 | 818 | 4.228571 | 0.371429 | 0.108108 | 0.135135 | 0.126126 | 0.274775 | 0.274775 | 0.153153 | 0 | 0 | 0 | 0 | 0.015848 | 0.228606 | 818 | 25 | 72 | 32.72 | 0.687797 | 0.06357 | 0 | 0 | 0 | 0 | 0.050445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.705882 | 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 |
5ae239fa618e4a3a7c9f061bc545037094e16454 | 4,462 | py | Python | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 99 | 2016-04-12T06:19:35.000Z | 2021-07-23T16:19:10.000Z | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 3 | 2018-02-22T21:35:00.000Z | 2019-03-17T09:10:59.000Z | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 20 | 2016-04-21T22:23:42.000Z | 2021-04-27T11:49:50.000Z | import csv, cPickle
from numpy import *
import matplotlib.pyplot as plt
import matplotlib
from cycler import cycler
# parse learned descriptors into a dict
def read_descriptors(desc_file):
desc_map = {}
f = open(desc_file, 'r')
for i, line in enumerate(f):
line = line.split()
desc_map[i] = ... | 33.298507 | 86 | 0.536755 | 541 | 4,462 | 4.23475 | 0.343808 | 0.021388 | 0.014404 | 0.011349 | 0.09079 | 0.066347 | 0.050633 | 0.026189 | 0 | 0 | 0 | 0.025136 | 0.340206 | 4,462 | 133 | 87 | 33.548872 | 0.753057 | 0.028911 | 0 | 0.056075 | 0 | 0 | 0.104022 | 0.010402 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046729 | null | null | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5aeb5490b47cc2c338ecc2ddb29c186d556812da | 834 | py | Python | instascrape/commands/whoami.py | tnychn/instascrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 80 | 2020-05-28T17:22:14.000Z | 2022-03-25T07:15:51.000Z | instascrape/commands/whoami.py | AlphaXenon/InstaScrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 23 | 2020-05-25T12:45:40.000Z | 2022-03-06T05:44:41.000Z | instascrape/commands/whoami.py | AlphaXenon/InstaScrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 14 | 2020-06-28T05:52:28.000Z | 2022-03-28T04:27:50.000Z | from instascrape.commands import pretty_print, load_obj
from colorama import Fore, Style
def whoami_handler(**_):
insta = load_obj()
if insta is None:
name = "NOBODY"
print(Fore.BLUE + "Authenticated:", Fore.RED + "False")
else:
name = insta.my_username
data = insta.me().a... | 37.909091 | 110 | 0.651079 | 110 | 834 | 4.809091 | 0.590909 | 0.102079 | 0.049149 | 0.098299 | 0.113422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006192 | 0.22542 | 834 | 21 | 111 | 39.714286 | 0.812694 | 0 | 0 | 0 | 0 | 0 | 0.241007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5af27277b4b6e81b6335be53146342bffc0587f3 | 638 | py | Python | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | from codino.data import CodonDesign
cd = CodonDesign()
def test_default_freq():
assert cd.first.freq == {"A": 0, "T": 0, "C": 0, "G": 0}
assert cd.second.freq == {"A": 0, "T": 0, "C": 0, "G": 0}
assert cd.third.freq == {"A": 0, "T": 0, "C": 0, "G": 0}
def test_set_codon_design():
cd.set_codon_des... | 29 | 67 | 0.454545 | 111 | 638 | 2.54955 | 0.216216 | 0.04947 | 0.127208 | 0.084806 | 0.572438 | 0.572438 | 0.466431 | 0.466431 | 0.466431 | 0.367491 | 0 | 0.073118 | 0.27116 | 638 | 21 | 68 | 30.380952 | 0.535484 | 0 | 0 | 0 | 0 | 0 | 0.047022 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5af84c2461053125e4dcea1ce09da4c673cad735 | 386 | py | Python | solutions/748.shortest-completing-word.242496979.ac.py | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/748.shortest-completing-word.242496979.ac.py | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/748.shortest-completing-word.242496979.ac.py | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution(object):
def shortestCompletingWord(self, licensePlate, words):
words.sort(key = len)
s = collections.Counter()
for c in licensePlate.lower():
if c.isalpha(): s[c]+=1
for word in words:
if len(s - collections.Counter(word.lower... | 27.571429 | 63 | 0.515544 | 41 | 386 | 4.853659 | 0.585366 | 0.040201 | 0.150754 | 0.221106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.373057 | 386 | 13 | 64 | 29.692308 | 0.81405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.4 | 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 |
5afbc89d9111d4e29b3746a8d7c2d9d9aed991d4 | 476 | py | Python | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 113 | 2016-12-14T19:11:22.000Z | 2021-12-21T10:57:27.000Z | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 39 | 2020-03-25T09:17:52.000Z | 2020-07-23T08:06:42.000Z | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 17 | 2017-02-02T06:27:35.000Z | 2021-08-17T08:55:19.000Z | """
requests-respectful
A simple but powerful addon to the beloved requests library.
Seamlessly respect service rate limits. Be a good Netizen.
Keeps track of any amount of realms simultaneously. Split-second precision.
:copyright: (c) 2016 by Nicholas Brochu.
:license: Apache 2, see LICENSE f... | 28 | 79 | 0.743697 | 61 | 476 | 5.655738 | 0.836066 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020672 | 0.186975 | 476 | 16 | 80 | 29.75 | 0.870801 | 0.647059 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5afbcaba91ba4365de573ce472da35c76ce04cae | 23,170 | py | Python | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class SdwanRouterNode(o... | 33.77551 | 738 | 0.646137 | 2,653 | 23,170 | 5.511119 | 0.10441 | 0.037754 | 0.120648 | 0.039395 | 0.622187 | 0.520074 | 0.474728 | 0.433007 | 0.405718 | 0.405718 | 0 | 0.001272 | 0.287268 | 23,170 | 685 | 739 | 33.824818 | 0.884098 | 0.47596 | 0 | 0.085185 | 1 | 0 | 0.096007 | 0.016361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.011111 | 0 | 0.3 | 0.003704 | 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 |
85019f3d7d1cae80676d5bebcb02bf3cf14e54ec | 4,028 | py | Python | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Author : Simon
# Notes : Utilise un message specifique
# Input : Reçois les commandes des autres noeuds pour les moteurs sous la forme d'une pin et d'une commande en pwm
import rospy
from std_msgs.msg import Float32
from maestro.maestro import Controller
# from maestro_sim.maes... | 35.964286 | 126 | 0.634558 | 537 | 4,028 | 4.592179 | 0.324022 | 0.040146 | 0.042174 | 0.034469 | 0.1618 | 0.084347 | 0.042985 | 0.029197 | 0 | 0 | 0 | 0.016426 | 0.259434 | 4,028 | 111 | 127 | 36.288288 | 0.810258 | 0.168322 | 0 | 0.028571 | 0 | 0 | 0.102313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
850420df0410ab05f70f13324e6ce9a306169223 | 520 | py | Python | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from recipe import views
# The DefaultRouter auto generates the urls for a viewset.
# One viewset may have multiple urls.
router = DefaultRouter()
router.register('tags', views.TagViewSet)
router.register('ingredients', views.Ingre... | 27.368421 | 58 | 0.769231 | 67 | 520 | 5.940299 | 0.58209 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136538 | 520 | 18 | 59 | 28.888889 | 0.886414 | 0.282692 | 0 | 0 | 1 | 0 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
851700e39249d084847a674d19f6747456e04470 | 8,797 | py | Python | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | 1 | 2022-03-29T10:25:10.000Z | 2022-03-29T10:25:10.000Z | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | 3 | 2021-11-18T23:35:40.000Z | 2021-12-02T20:00:06.000Z | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | null | null | null | import abc
import atexit
import enum
import re
import OpenGL.error
from .variable import glsl_types
from .. import gl
import uuid
class BindSemanticObject(metaclass=abc.ABCMeta):
def __enter__(self):
self._activate()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self._de... | 33.704981 | 125 | 0.636353 | 1,074 | 8,797 | 5.040037 | 0.269088 | 0.030297 | 0.021984 | 0.022169 | 0.169961 | 0.130057 | 0.119342 | 0.106965 | 0.106965 | 0.089599 | 0 | 0.003739 | 0.270319 | 8,797 | 260 | 126 | 33.834615 | 0.839539 | 0.289303 | 0 | 0.177215 | 0 | 0.006329 | 0.046496 | 0.036388 | 0 | 0 | 0 | 0.003846 | 0 | 1 | 0.113924 | false | 0.012658 | 0.050633 | 0.025316 | 0.544304 | 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 |
851a2df4a087af1647dab5ee2a5866f9b05132bb | 1,132 | py | Python | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext as _
from datetime import date
# Create your models here.
class Pip(models.Model):
class Meta:
ordering = ['pipId']
pipId = models.CharField(_('Id'), max_length=8, unique=True)
title = models.CharField(_('Título'), max_leng... | 39.034483 | 91 | 0.672261 | 141 | 1,132 | 5.170213 | 0.524823 | 0.102881 | 0.053498 | 0.052126 | 0.098765 | 0.098765 | 0.098765 | 0 | 0 | 0 | 0 | 0.012931 | 0.180212 | 1,132 | 29 | 92 | 39.034483 | 0.772629 | 0.021201 | 0 | 0 | 0 | 0 | 0.090334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.043478 | 0.73913 | 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 |
851d822d8861c61e39a3e49eb1c83275bf94c9b9 | 1,311 | py | Python | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 5 | 2015-04-26T19:39:44.000Z | 2018-12-24T13:17:42.000Z | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 7 | 2016-03-23T16:52:32.000Z | 2018-07-24T03:08:05.000Z | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 28 | 2015-04-08T22:39:07.000Z | 2021-12-25T22:16:36.000Z | import sys
import codecs
import json
import os
from extraction.Landmark import RuleSet
from extraction import Landmark
def main(argv=None):
baseUrl = 'http://www.imfdb.org'
rules_file = '/Users/bamana/Documents/InferLink/workspace/memex/memexpython/input/_rules/imfdb_gun_urls_rules.txt'
imfdb_gun_urls_dir ... | 31.97561 | 118 | 0.606407 | 162 | 1,311 | 4.703704 | 0.41358 | 0.041995 | 0.062992 | 0.076115 | 0.259843 | 0.259843 | 0.154856 | 0.154856 | 0 | 0 | 0 | 0.004278 | 0.286804 | 1,311 | 41 | 119 | 31.97561 | 0.810695 | 0 | 0 | 0 | 0 | 0.033333 | 0.179878 | 0.137957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
851eb3b01fc05359defcd79a79da1cdab1358706 | 322 | py | Python | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | # server.py
# coding:utf-8
# 从wsgiref模块导入
from wsgiref.simple_server import make_server
# 导入我们自己编写的application函数:
from wsgi import application
# 创建一个服务器,IP地址为空,端口是8000,处理函数是application:
httpd = make_server('', 8000, application)
print("Serving HTTP on port 8000...")
# 开始监听HTTP请求:
httpd.serve_forever()
print("Listening... | 24.769231 | 45 | 0.785714 | 39 | 322 | 6.384615 | 0.74359 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044828 | 0.099379 | 322 | 13 | 46 | 24.769231 | 0.813793 | 0.347826 | 0 | 0 | 0 | 0 | 0.181373 | 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 |
85292da369d136efa8309c43f2e4a8b1ef5317f0 | 557 | py | Python | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | NCBI_GeneID = "NCBI:GeneID"
HGNC_GeneName = "HGNC:Symbol"
UMLS_ConceptID = "UMLS:CUI"
MedGen_ConceptID= "MedGen:UID"
class Vocab:
"""
Annotator Vocabulary source and type of concept.
examples: ncbi:GeneID, hgnc:GeneName, snomed:ClinicalTerm
"""
def __init__(self, qualified_label, entry=None):
... | 26.52381 | 61 | 0.664273 | 66 | 557 | 5.348485 | 0.5 | 0.1983 | 0.203966 | 0.124646 | 0.152975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235189 | 557 | 21 | 62 | 26.52381 | 0.828639 | 0.192101 | 0 | 0 | 0 | 0 | 0.092807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.384615 | 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 |
5173842aa5e2f1c4e322cf90b90360c1906a92d2 | 2,964 | py | Python | chimera_app/config.py | lennyhans/steam-buddy | 73a6c820a33302c86ef5c5988550dd48bc110ed5 | [
"MIT"
] | 76 | 2019-11-30T17:35:55.000Z | 2021-06-06T23:12:31.000Z | chimera_app/config.py | tsimouris/AppHub | 8925366da6cb001117be5f39af5417a3107ff3b4 | [
"MIT"
] | 130 | 2019-11-16T00:34:12.000Z | 2021-06-13T13:14:01.000Z | chimera_app/config.py | tsimouris/AppHub | 8925366da6cb001117be5f39af5417a3107ff3b4 | [
"MIT"
] | 15 | 2019-11-07T18:32:25.000Z | 2021-06-12T20:55:40.000Z | import os
from chimera_app.settings import Settings
import chimera_app.context as context
from chimera_app.ftp.server import Server as FTPServer
from chimera_app.authenticator import Authenticator, generate_password
from chimera_app.ssh_keys import SSHKeys
from chimera_app.steamgrid.steamgrid import Steamgrid
from chim... | 31.870968 | 71 | 0.661943 | 335 | 2,964 | 5.662687 | 0.40597 | 0.042172 | 0.051661 | 0.028466 | 0.057459 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024514 | 0.201754 | 2,964 | 92 | 72 | 32.217391 | 0.777261 | 0 | 0 | 0 | 0 | 0 | 0.297233 | 0.04892 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.115385 | 0 | 0.115385 | 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 |
517de1b2145783b157190e784d0cdca748f5eaca | 4,835 | py | Python | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
changefiles.py
Created by Peter Bakker on 2017-10-04.
Copyright (c) 2017 . All rights reserved.
"""
import sys
import os
import numpy as np
import pandas as pd
import datetime
from pytz import timezone
import pytz
import zipline.utils.calendars as cal
from zipline.data.ses... | 43.954545 | 131 | 0.657704 | 651 | 4,835 | 4.698925 | 0.310292 | 0.035959 | 0.025499 | 0.021576 | 0.290945 | 0.241582 | 0.212488 | 0.166721 | 0.166721 | 0.140569 | 0 | 0.010775 | 0.21303 | 4,835 | 109 | 132 | 44.357798 | 0.793167 | 0.157808 | 0 | 0.027778 | 0 | 0 | 0.079148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.166667 | null | null | 0.069444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
517e5c58602149b79c48537ced18f8cf6bd13fb7 | 1,422 | py | Python | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 4 | 2018-07-09T19:38:27.000Z | 2021-03-02T19:31:38.000Z | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | null | null | null | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 2 | 2020-04-25T18:05:30.000Z | 2020-07-14T21:19:17.000Z | # Goes through coordinates of body pieces and find where they are
# relative to the head.
#
# The coordinate values were manually found out by looking at the image
# in gimp. There was a fully "mounted" character at ~2400,~370 on the image
# (y goes up from top->bottom in these coordinates). The values were looked up
#... | 35.55 | 78 | 0.653305 | 249 | 1,422 | 3.706827 | 0.550201 | 0.021668 | 0.021668 | 0.032503 | 0.039003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131485 | 0.213783 | 1,422 | 39 | 79 | 36.461538 | 0.694097 | 0.566104 | 0 | 0 | 0 | 0 | 0.163333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
517f77cbabf48a0a733c8e41ba122363120f82f4 | 3,773 | py | Python | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 17 | 2017-07-24T12:05:38.000Z | 2019-03-30T19:18:14.000Z | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 3 | 2017-07-25T09:18:09.000Z | 2017-12-05T17:00:31.000Z | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 8 | 2017-07-24T09:24:29.000Z | 2021-05-01T04:55:07.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# --------------------------
# Author fzl
# Date 2017/7/20 15:13
# EMAIL fangjalylong@qq.com
# Desc
# --------------------------
import json
import requests
import sys
from ExeUtil import ExeUtil
type = sys.getfilesystemencoding()
print( "**********************************... | 36.990196 | 102 | 0.424331 | 303 | 3,773 | 5.280528 | 0.412541 | 0.0425 | 0.1 | 0.16 | 0.29625 | 0.29625 | 0.29625 | 0.21875 | 0.21875 | 0.21875 | 0 | 0.014558 | 0.289955 | 3,773 | 101 | 103 | 37.356436 | 0.58268 | 0.041346 | 0 | 0.154762 | 0 | 0 | 0.622783 | 0.114745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011905 | 0.047619 | 0 | 0.047619 | 0.22619 | 0 | 0 | 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 |
5185cdb155f8a40b6e352433978a230edcb7bda5 | 2,518 | py | Python | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | import os
import time
import pyfiglet
os.system("clear")
time.sleep(1)
print(" ############################")
print(" # Script By Mr.Jøhñ #")
print(" # INDIAN HACKERS #")
print(" ############################")
print()
print(" ##################################")
print()
char1 = input(... | 38.738462 | 85 | 0.605639 | 320 | 2,518 | 4.76875 | 0.159375 | 0.089122 | 0.119266 | 0.12844 | 0.585845 | 0.45806 | 0.368938 | 0.334207 | 0.334207 | 0 | 0 | 0.08975 | 0.19023 | 2,518 | 64 | 86 | 39.34375 | 0.658166 | 0 | 0 | 0.435484 | 0 | 0 | 0.254668 | 0.054033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.048387 | 0.419355 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5186a078b3e41d3d4070e1fffd53ee9e9fbf03e2 | 1,482 | py | Python | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 10 | 2019-09-15T00:23:57.000Z | 2022-01-05T12:53:42.000Z | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 3 | 2021-06-30T00:39:26.000Z | 2021-08-01T07:13:59.000Z | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 6 | 2020-02-08T02:55:22.000Z | 2022-01-02T22:48:18.000Z | #
# @lc app=leetcode id=932 lang=python3
#
# [932] Beautiful Array
#
# https://leetcode.com/problems/beautiful-array/description/
#
# algorithms
# Medium (61.61%)
# Likes: 650
# Dislikes: 933
# Total Accepted: 29K
# Total Submissions: 46K
# Testcase Example: '4'
#
# An array nums of length n is beautiful if:
#
... | 21.794118 | 79 | 0.571525 | 238 | 1,482 | 3.558824 | 0.390756 | 0.028335 | 0.042503 | 0.042503 | 0.246753 | 0.151122 | 0.136954 | 0.054309 | 0.054309 | 0.054309 | 0 | 0.055295 | 0.280027 | 1,482 | 67 | 80 | 22.119403 | 0.738519 | 0.486505 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.066667 | 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 |
51984836ae6425428be2132a8038261f69705e21 | 3,691 | py | Python | app/views/user.py | WishesFire/Epam-Python-Project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | 1 | 2021-11-18T11:57:02.000Z | 2021-11-18T11:57:02.000Z | app/views/user.py | WishesFire/Epam-project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | null | null | null | app/views/user.py | WishesFire/Epam-project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | null | null | null | """
Views:
- `sign_up (/signup)`: Register a new user in the system
- `login (/login)`: Sign in to an existing account
- `logout (/logout)`: Sing out from current account
- `profile (/profile)`: User profile with functions:
- Shows user vacancies
- Create a new vacancy
"""
# pylint: disa... | 30.504132 | 96 | 0.666486 | 447 | 3,691 | 5.357942 | 0.295302 | 0.027557 | 0.029228 | 0.033403 | 0.194154 | 0.174113 | 0.127766 | 0.065136 | 0.065136 | 0.065136 | 0 | 0.002075 | 0.216473 | 3,691 | 120 | 97 | 30.758333 | 0.826072 | 0.20401 | 0 | 0.129032 | 0 | 0 | 0.162123 | 0.007891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.080645 | 0.145161 | 0 | 0.419355 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
51a89957c30ea223d6bc40f4ff382714eaea3515 | 6,970 | py | Python | classes_and_tests/src/TemplateFileCreator.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | classes_and_tests/src/TemplateFileCreator.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | classes_and_tests/src/TemplateFileCreator.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | DEBUG = False
import os
import sys
import re
import ast
try:
from MirroredDirectory import MirroredDirectory
from Std import Std
from FileSystem import FileSystem
from Importer import Importer
except ImportError:
from .MirroredDirectory import MirroredDirectory
from .Std import Std
from .F... | 43.024691 | 162 | 0.654232 | 578 | 6,970 | 7.84083 | 0.275087 | 0.055605 | 0.032657 | 0.020521 | 0.277802 | 0.277802 | 0.277802 | 0.277802 | 0.265004 | 0.265004 | 0 | 0.003225 | 0.243615 | 6,970 | 162 | 163 | 43.024691 | 0.856411 | 0.007891 | 0 | 0.048387 | 0 | 0 | 0.070749 | 0.003807 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.137097 | false | 0.008065 | 0.120968 | 0.032258 | 0.346774 | 0.024194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
51afeaf4f55a43d53e19bc0e60acc3ffda999e63 | 317 | py | Python | tests/text/test_textfilter.py | evendrow/ifcc | ae6ea6f19028ba5d367c086fe94cfe4237829059 | [
"Apache-2.0"
] | 43 | 2020-10-21T03:25:21.000Z | 2022-03-26T08:13:06.000Z | tests/text/test_textfilter.py | evendrow/ifcc | ae6ea6f19028ba5d367c086fe94cfe4237829059 | [
"Apache-2.0"
] | 8 | 2020-12-04T15:06:45.000Z | 2022-03-28T12:18:14.000Z | tests/text/test_textfilter.py | evendrow/ifcc | ae6ea6f19028ba5d367c086fe94cfe4237829059 | [
"Apache-2.0"
] | 10 | 2020-11-13T03:46:09.000Z | 2022-02-05T21:39:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from clinicgen.text.textfilter import LowerTextFilter
class TestLowerTextFilter(unittest.TestCase):
def test_filter(self):
text = 'Hello NLP!'
tfilter = LowerTextFilter()
self.assertEqual(tfilter.filter(text), 'hello nlp!')
| 24.384615 | 60 | 0.690852 | 35 | 317 | 6.228571 | 0.714286 | 0.082569 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.182965 | 317 | 12 | 61 | 26.416667 | 0.837838 | 0.132492 | 0 | 0 | 0 | 0 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
51b20a17b8a9bcfd086180a80e748d7889e0c7e7 | 478 | py | Python | run.py | aquamarinn/console-snake | aabd6c8cc9b4d2d903abfb107a47eab74806e094 | [
"MIT"
] | null | null | null | run.py | aquamarinn/console-snake | aabd6c8cc9b4d2d903abfb107a47eab74806e094 | [
"MIT"
] | null | null | null | run.py | aquamarinn/console-snake | aabd6c8cc9b4d2d903abfb107a47eab74806e094 | [
"MIT"
] | null | null | null | from snake import Environment, GUI, PlayerController
if __name__ == '__main__':
try:
env = Environment()
gui = GUI(env)
controller = PlayerController(env)
running, _ = env.reset()
while running:
running, snake_pos = env.step()
print('running', runnin... | 25.157895 | 52 | 0.546025 | 45 | 478 | 5.533333 | 0.622222 | 0.11245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.370293 | 478 | 19 | 53 | 25.157895 | 0.827243 | 0 | 0 | 0.117647 | 0 | 0 | 0.031315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.058824 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
51b33fd5e4e90e4cc52168abb05d8d58cd914c5b | 752 | py | Python | topics/Bitwise/Missing_Number_268/[1_Bitwise_XOR]_Missing_Number_268.py | DmitryNaimark/leetcode-solutions-python | 16af5f3a9cb8469d82b14c8953847f0e93a92324 | [
"MIT"
] | 1 | 2019-10-31T11:06:23.000Z | 2019-10-31T11:06:23.000Z | topics/Bitwise/Missing_Number_268/[1_Bitwise_XOR]_Missing_Number_268.py | DmitryNaimark/leetcode-solutions-python | 16af5f3a9cb8469d82b14c8953847f0e93a92324 | [
"MIT"
] | null | null | null | topics/Bitwise/Missing_Number_268/[1_Bitwise_XOR]_Missing_Number_268.py | DmitryNaimark/leetcode-solutions-python | 16af5f3a9cb8469d82b14c8953847f0e93a92324 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/missing-number/
# ---------------------------------------------------
from typing import List
# Runtime Complexity: O(N)
# Space Complexity: O(1)
# Idea: XOR with all numbers in range [0, n] and XOR with all nums.
class Solution:
def missingNumber(self, nums: List[int]) -> int:
... | 25.931034 | 67 | 0.470745 | 87 | 752 | 4.068966 | 0.551724 | 0.110169 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030252 | 0.208777 | 752 | 28 | 68 | 26.857143 | 0.564706 | 0.466755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0.25 | 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 |
51be12ad14475c1998ae105630807a45e802e7d8 | 549 | py | Python | pedal/assertions/__init__.py | acbart/python-analysis | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 14 | 2019-08-22T03:40:23.000Z | 2022-03-13T00:30:53.000Z | pedal/assertions/__init__.py | pedal-edu/pedal | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 74 | 2019-09-12T04:35:56.000Z | 2022-01-26T19:21:32.000Z | pedal/assertions/__init__.py | acbart/python-analysis | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 2 | 2018-09-16T22:39:15.000Z | 2018-09-17T12:53:28.000Z | """
The assertions module contains classic unittest-style assert statements.
"""
from pedal.assertions.setup import _setup_assertions, resolve_all
from pedal.assertions.constants import TOOL_NAME
from pedal.core.report import Report, MAIN_REPORT
from pedal.assertions.commands import *
def reset(report=MAIN_REPORT):
... | 21.96 | 72 | 0.717668 | 65 | 549 | 5.923077 | 0.538462 | 0.093506 | 0.148052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002252 | 0.191257 | 549 | 24 | 73 | 22.875 | 0.864865 | 0.271403 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
51bf6b3ed4c7f402aaa77eba2ced4b65f3cd67ca | 5,373 | py | Python | safe_notification_service/firebase/tests/utils.py | vaporyorg/safe-notification-service | 7a1bf51b4bb529aab8d6f943616c88f969c98644 | [
"MIT"
] | 8 | 2018-05-17T00:49:57.000Z | 2021-08-23T12:52:49.000Z | safe_notification_service/firebase/tests/utils.py | vaporyorg/safe-notification-service | 7a1bf51b4bb529aab8d6f943616c88f969c98644 | [
"MIT"
] | 64 | 2018-11-08T17:47:18.000Z | 2022-01-31T17:00:22.000Z | safe_notification_service/firebase/tests/utils.py | vaporyorg/safe-notification-service | 7a1bf51b4bb529aab8d6f943616c88f969c98644 | [
"MIT"
] | 4 | 2020-12-28T20:28:07.000Z | 2022-03-19T16:46:44.000Z | import json
from firebase_admin import _http_client, messaging
from firebase_admin.credentials import Base
from google.auth.credentials import Credentials
from requests import adapters, models
FIREBASE_AUTH_CREDENTIALS = {
"type": "service_account",
"project_id": "mock-project-id",
"private_key_id": "mock... | 49.293578 | 1,722 | 0.758608 | 505 | 5,373 | 7.867327 | 0.370297 | 0.017619 | 0.014095 | 0.017367 | 0.113013 | 0.094135 | 0.083061 | 0.030204 | 0.030204 | 0.030204 | 0 | 0.057223 | 0.138098 | 5,373 | 108 | 1,723 | 49.75 | 0.800691 | 0.074819 | 0 | 0.026667 | 0 | 0.026667 | 0.466667 | 0.349495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146667 | false | 0 | 0.066667 | 0.026667 | 0.386667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51c1564b9fb274dd54467c39928249894cdba7a4 | 954 | py | Python | config_editor/__init__.py | penguinolog/config-editor | d0b8500eaf8e4cf7c7f93c03c4c4e78072bb51ce | [
"Apache-2.0"
] | null | null | null | config_editor/__init__.py | penguinolog/config-editor | d0b8500eaf8e4cf7c7f93c03c4c4e78072bb51ce | [
"Apache-2.0"
] | null | null | null | config_editor/__init__.py | penguinolog/config-editor | d0b8500eaf8e4cf7c7f93c03c4c4e78072bb51ce | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Alexey Stepanov aka penguinolog
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 30.774194 | 78 | 0.735849 | 129 | 954 | 5.286822 | 0.635659 | 0.087977 | 0.038123 | 0.046921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014267 | 0.191824 | 954 | 30 | 79 | 31.8 | 0.870298 | 0.650943 | 0 | 0 | 0 | 0 | 0.240506 | 0.072785 | 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 |
51cd281f3447f7a93f24738d9ec41e8cdfb758c9 | 18,705 | py | Python | tests/test_lime_structure.py | N2-Survey/SurveyFramework | 8295fd9808c95db85befb1f60391460908a7d2b0 | [
"MIT"
] | 1 | 2022-01-26T19:04:38.000Z | 2022-01-26T19:04:38.000Z | tests/test_lime_structure.py | N2-Survey/SurveyFramework | 8295fd9808c95db85befb1f60391460908a7d2b0 | [
"MIT"
] | 77 | 2021-09-14T09:33:03.000Z | 2022-03-31T18:02:47.000Z | tests/test_lime_structure.py | N2-Survey/SurveyFramework | 8295fd9808c95db85befb1f60391460908a7d2b0 | [
"MIT"
] | 3 | 2021-09-14T20:11:28.000Z | 2021-12-26T11:56:25.000Z | """Test functions related to parsing of LimeSurvey files"""
import unittest
from bs4 import BeautifulSoup
from n2survey.lime.structure import ( # TODO: test _get_clean_string,; TODO: test _get_question_group_name,
_parse_question,
_parse_question_description,
_parse_question_responses,
_parse_questio... | 35.696565 | 353 | 0.444534 | 1,492 | 18,705 | 5.459786 | 0.136059 | 0.049104 | 0.036828 | 0.051559 | 0.777928 | 0.729438 | 0.645961 | 0.613307 | 0.573533 | 0.543457 | 0 | 0.024737 | 0.446725 | 18,705 | 523 | 354 | 35.764818 | 0.762393 | 0.021492 | 0 | 0.476351 | 0 | 0 | 0.240758 | 0.005213 | 0 | 0 | 0 | 0.001912 | 0.074324 | 1 | 0.037162 | false | 0 | 0.010135 | 0 | 0.060811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51d00e635b44bc4b309c05a3baf9619e16652004 | 441 | py | Python | Introduction-to-data-visualization-with-matplotlib/3. Quantitative comparisons and statistical visualizations/script_2.py | nhutnamhcmus/datacamp-playground | 25457e813b1145e1d335562286715eeddd1c1a7b | [
"MIT"
] | 1 | 2021-05-08T11:09:27.000Z | 2021-05-08T11:09:27.000Z | Introduction-to-data-visualization-with-matplotlib/3. Quantitative comparisons and statistical visualizations/script_2.py | nhutnamhcmus/datacamp-playground | 25457e813b1145e1d335562286715eeddd1c1a7b | [
"MIT"
] | 1 | 2022-03-12T15:42:14.000Z | 2022-03-12T15:42:14.000Z | Introduction-to-data-visualization-with-matplotlib/3. Quantitative comparisons and statistical visualizations/script_2.py | nhutnamhcmus/datacamp-playground | 25457e813b1145e1d335562286715eeddd1c1a7b | [
"MIT"
] | 1 | 2021-04-30T18:24:19.000Z | 2021-04-30T18:24:19.000Z | # Add bars for "Gold" with the label "Gold"
ax.bar(medals.index, medals["Gold"], label="Gold")
# Stack bars for "Silver" on top with label "Silver"
ax.bar(medals.index, medals["Silver"], bottom=medals["Gold"], label="Silver")
# Stack bars for "Bronze" on top of that with label "Bronze"
ax.bar(medals.index, med... | 33.923077 | 95 | 0.680272 | 67 | 441 | 4.477612 | 0.343284 | 0.07 | 0.11 | 0.16 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 441 | 13 | 96 | 33.923077 | 0.793651 | 0.385488 | 0 | 0 | 0 | 0 | 0.180392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51de4c03101e87908bf9ddadb35262f495914dc2 | 1,070 | py | Python | tests/test_explainers/test_core.py | openitnovem/readml | ce5323ff18a1796aef3a81590bb480cdcdcef0b9 | [
"Apache-2.0"
] | null | null | null | tests/test_explainers/test_core.py | openitnovem/readml | ce5323ff18a1796aef3a81590bb480cdcdcef0b9 | [
"Apache-2.0"
] | 12 | 2022-01-19T13:02:58.000Z | 2022-03-31T15:17:23.000Z | tests/test_explainers/test_core.py | openitnovem/readml | ce5323ff18a1796aef3a81590bb480cdcdcef0b9 | [
"Apache-2.0"
] | 4 | 2022-01-11T16:37:50.000Z | 2022-03-18T19:48:58.000Z | import os
import pandas as pd
from fbd_interpreter.explainers.ml.explain_ml import ExplainML
from fbd_interpreter.logger import ROOT_DIR
FEATURES = ["a", "b"]
PREDICTIONS = [0, 0, 0, 0, 1, 1, 1, 1]
TARGETS = pd.Series([0, 0, 0, 0, 1, 1, 1, 1])
DATA = pd.DataFrame(
{"a": [0, 1, 2, 3, 4, 5, 6, 7], "b": [1, 1, 1, 1... | 24.318182 | 85 | 0.613084 | 151 | 1,070 | 4.18543 | 0.509934 | 0.028481 | 0.028481 | 0.018987 | 0.025316 | 0.025316 | 0.025316 | 0.025316 | 0 | 0 | 0 | 0.046856 | 0.242056 | 1,070 | 43 | 86 | 24.883721 | 0.732429 | 0.101869 | 0 | 0 | 0 | 0 | 0.017575 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 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 |
51e203fe102c1df6470ac30a413c9d445b9bab48 | 1,850 | py | Python | sa/profiles/Alcatel/AOS/get_portchannel.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | sa/profiles/Alcatel/AOS/get_portchannel.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | sa/profiles/Alcatel/AOS/get_portchannel.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Alcatel.AOS.get_portchannel
# ----------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# --------------------------------------------------... | 37.755102 | 86 | 0.452973 | 191 | 1,850 | 4.329843 | 0.387435 | 0.01451 | 0.036276 | 0.039903 | 0.183797 | 0.113664 | 0.062878 | 0.062878 | 0.062878 | 0.062878 | 0 | 0.020769 | 0.297297 | 1,850 | 48 | 87 | 38.541667 | 0.615385 | 0.196757 | 0 | 0.055556 | 0 | 0.027778 | 0.177387 | 0.107651 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.305556 | 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 |
51f26ee900478e90c670143eacc36e4d621147c8 | 392 | py | Python | app/api/views/reports/brief.py | ArenaNetworks/dto-digitalmarketplace-api | d0d58924719d889503ed112b0d5801b528b0398c | [
"MIT"
] | 6 | 2017-06-09T03:38:53.000Z | 2021-12-22T02:42:15.000Z | app/api/views/reports/brief.py | ArenaNetworks/dto-digitalmarketplace-api | d0d58924719d889503ed112b0d5801b528b0398c | [
"MIT"
] | 47 | 2016-08-02T05:21:31.000Z | 2022-03-28T01:14:17.000Z | app/api/views/reports/brief.py | AusDTO/dto-digitalmarketplace-api | 937843c9c01a71518cf4688b4daa55bbe7df1965 | [
"MIT"
] | 7 | 2016-09-13T13:07:18.000Z | 2021-02-17T10:16:21.000Z | from flask import jsonify
from app.api import api
from app.api.helpers import require_api_key_auth
from app.api.services.reports import briefs_service
@api.route('/reports/brief/published', methods=['GET'])
@require_api_key_auth
def get_published_briefs():
result = briefs_service.get_published_briefs()
return... | 26.133333 | 55 | 0.737245 | 54 | 392 | 5.12963 | 0.462963 | 0.075812 | 0.108303 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155612 | 392 | 14 | 56 | 28 | 0.836858 | 0 | 0 | 0 | 0 | 0 | 0.094388 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
51fd76c197f06b4f0e3cd25b7c5c3a572cdfb52f | 6,662 | py | Python | azure-devops/azext_devops/dev/common/credential_store.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 326 | 2019-04-10T12:38:23.000Z | 2022-03-31T23:07:49.000Z | azure-devops/azext_devops/dev/common/credential_store.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 562 | 2019-04-10T07:36:12.000Z | 2022-03-28T07:37:54.000Z | azure-devops/azext_devops/dev/common/credential_store.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 166 | 2019-04-10T07:59:40.000Z | 2022-03-16T14:17:13.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 41.123457 | 110 | 0.613029 | 745 | 6,662 | 5.238926 | 0.242953 | 0.021522 | 0.034589 | 0.04125 | 0.421214 | 0.366129 | 0.338201 | 0.257238 | 0.209582 | 0.209582 | 0 | 0.000212 | 0.290904 | 6,662 | 161 | 111 | 41.378882 | 0.825995 | 0.125038 | 0 | 0.459259 | 0 | 0.007407 | 0.111283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081481 | false | 0.081481 | 0.125926 | 0.007407 | 0.318519 | 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 |
51fd8b0ddb6e11c4e62343fed936c2c868f66e49 | 1,969 | py | Python | fhir/resources/STU3/tests/test_adverseevent.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 144 | 2019-05-08T14:24:43.000Z | 2022-03-30T02:37:11.000Z | fhir/resources/STU3/tests/test_adverseevent.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 82 | 2019-05-13T17:43:13.000Z | 2022-03-30T16:45:17.000Z | fhir/resources/STU3/tests/test_adverseevent.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 48 | 2019-04-04T14:14:53.000Z | 2022-03-30T06:07:31.000Z | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/AdverseEvent
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import adverseevent
def impl_... | 35.8 | 80 | 0.702895 | 248 | 1,969 | 5.516129 | 0.5 | 0.116959 | 0.049708 | 0.059211 | 0.113304 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0.052153 | 0.162519 | 1,969 | 54 | 81 | 36.462963 | 0.777441 | 0.169629 | 0 | 0 | 0 | 0 | 0.234161 | 0.031056 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4011bd0d4b895040b6b7aa5271e8dea8a377f95 | 1,248 | py | Python | NREL.py | gregario/NRELDownloader | c098762be22979ff6901079561694ab90206afa3 | [
"BSD-3-Clause"
] | null | null | null | NREL.py | gregario/NRELDownloader | c098762be22979ff6901079561694ab90206afa3 | [
"BSD-3-Clause"
] | null | null | null | NREL.py | gregario/NRELDownloader | c098762be22979ff6901079561694ab90206afa3 | [
"BSD-3-Clause"
] | 1 | 2018-08-07T06:52:45.000Z | 2018-08-07T06:52:45.000Z | #coding: utf-8
# Configuration file for NREL data call
# This file sets up the calls for data from NREL.
# 26/05/2016 Greg Jackson AESE Labs Imperial College
from datetime import date, datetime, timedelta
debug = True
# Location variables, determines locations from which calls will be made
# locations = [("New Y... | 43.034483 | 272 | 0.77484 | 189 | 1,248 | 4.94709 | 0.73545 | 0.017112 | 0.034225 | 0.038503 | 0.072727 | 0.072727 | 0.072727 | 0 | 0 | 0 | 0 | 0.182469 | 0.104167 | 1,248 | 28 | 273 | 44.571429 | 0.653846 | 0.431891 | 0 | 0 | 0 | 0.066667 | 0.426934 | 0.368195 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | 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 |
a4016fb77c28a57f0279db0ce2ae101971c1c395 | 4,316 | py | Python | tests/test_models/test_place.py | lowercaselife/AirBnB_clone | 503c2889a0e1f96dd6ddd497ce7649ca00589a24 | [
"MIT"
] | null | null | null | tests/test_models/test_place.py | lowercaselife/AirBnB_clone | 503c2889a0e1f96dd6ddd497ce7649ca00589a24 | [
"MIT"
] | null | null | null | tests/test_models/test_place.py | lowercaselife/AirBnB_clone | 503c2889a0e1f96dd6ddd497ce7649ca00589a24 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""Place unittests"""
import unittest
from models.place import Place
import datetime
import time
class TestPlace(unittest.TestCase):
"""class TestPlace"""
def test_place_class_membership_and_attributes(self):
"""Place is right class with correct attrs"""
place = Place()
... | 39.962963 | 71 | 0.686284 | 501 | 4,316 | 5.646707 | 0.193613 | 0.141393 | 0.167904 | 0.049487 | 0.302934 | 0.198303 | 0.189466 | 0.168257 | 0.138565 | 0.110286 | 0 | 0.00499 | 0.210612 | 4,316 | 107 | 72 | 40.336449 | 0.82536 | 0.091983 | 0 | 0.223529 | 0 | 0 | 0.014219 | 0 | 0 | 0 | 0 | 0 | 0.576471 | 1 | 0.094118 | false | 0 | 0.047059 | 0 | 0.152941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a406c16a052bf957c0176f5968826a2acaf62234 | 977 | py | Python | setup.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | 2 | 2021-08-20T05:19:37.000Z | 2022-01-11T09:39:39.000Z | setup.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | null | null | null | setup.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
description_files = ['README.md', 'AUTHORS.md', 'CHANGELOG.md']
setup(
name="arnold",
description="RPi 4 Based Robotic Platform",
long_description="".join([open(f, 'r').read() for f in description_files]),
version="0.0.1",
author='Hacklab',
author_e... | 32.566667 | 79 | 0.637666 | 113 | 977 | 5.39823 | 0.681416 | 0.12459 | 0.163934 | 0.170492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014013 | 0.19652 | 977 | 29 | 80 | 33.689655 | 0.763057 | 0 | 0 | 0 | 0 | 0 | 0.414534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
a40784a5c0a876434055151e359d7b556dab11e3 | 769 | py | Python | spaweb/migrations/0010_auto_20201120_2321.py | MokkoFm/formula-spa-django | c1149d61af833f4db2a6ccd483d357462c989765 | [
"MIT"
] | null | null | null | spaweb/migrations/0010_auto_20201120_2321.py | MokkoFm/formula-spa-django | c1149d61af833f4db2a6ccd483d357462c989765 | [
"MIT"
] | null | null | null | spaweb/migrations/0010_auto_20201120_2321.py | MokkoFm/formula-spa-django | c1149d61af833f4db2a6ccd483d357462c989765 | [
"MIT"
] | 1 | 2020-11-12T13:36:36.000Z | 2020-11-12T13:36:36.000Z | # Generated by Django 3.1.3 on 2020-11-20 21:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('spaweb', '0009_product_number_users'),
]
operations = [
migrations.RemoveField(
model_name='pro... | 27.464286 | 182 | 0.616385 | 79 | 769 | 5.848101 | 0.531646 | 0.051948 | 0.103896 | 0.12987 | 0.255411 | 0.177489 | 0 | 0 | 0 | 0 | 0 | 0.033688 | 0.26658 | 769 | 27 | 183 | 28.481481 | 0.785461 | 0.058518 | 0 | 0.47619 | 1 | 0 | 0.177285 | 0.065097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
a40bad40cfcd7ca531100b5e277511691257c17c | 2,836 | py | Python | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
import os
import ee
""" Generate a table with all the tasks that are running (or has finished) in GEE.
>>> genreport()
>>> quota(ID)
This module, which is used for checking earth engine quota,
were obtained from geeup: a Python CLI for Earth Engine Uploads... | 28.36 | 86 | 0.616714 | 353 | 2,836 | 4.855524 | 0.371105 | 0.044924 | 0.06126 | 0.05951 | 0.394983 | 0.278296 | 0.278296 | 0.278296 | 0.235123 | 0.235123 | 0 | 0.013856 | 0.261989 | 2,836 | 99 | 87 | 28.646465 | 0.805065 | 0.119887 | 0 | 0.06383 | 1 | 0 | 0.197377 | 0.026234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.148936 | 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 |
a40db821cdd40995b507a0185d3e87cf108ec33d | 3,104 | py | Python | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | """
Strip silence from recorded audio, move to file server(s).
(c) Ameryn Media LLC, 2015. All rights reserved.
"""
import os
import datetime
from ConfigParser import ConfigParser
import shutil
import pydub
CONFIG_LOCATION = 'ameryn.ini'
config = ConfigParser()
config.read(CONFIG_LOCATION)
# Input file parameters... | 32 | 141 | 0.746778 | 432 | 3,104 | 5.145833 | 0.256944 | 0.099415 | 0.047233 | 0.05758 | 0.179037 | 0.128655 | 0.100765 | 0.100765 | 0.100765 | 0.100765 | 0 | 0.004065 | 0.128222 | 3,104 | 97 | 142 | 32 | 0.817443 | 0.058312 | 0 | 0.157143 | 0 | 0 | 0.105038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf8d4235cb878e12f5c58b025ed042e67c4a28fa | 1,266 | py | Python | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | import os
from flask_migrate import Migrate
from flask_restful import Api
from flask import Flask
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from config_manager.config_manager import FileConfigManager
from utils.request_controller import RequestsController
app = Flask(__name__)
CORS(app)
api... | 28.772727 | 102 | 0.814376 | 164 | 1,266 | 6.073171 | 0.414634 | 0.045181 | 0.070281 | 0.135542 | 0.070281 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.094787 | 1,266 | 43 | 103 | 29.44186 | 0.853403 | 0.063981 | 0 | 0 | 0 | 0 | 0.218459 | 0.123624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.37037 | 0 | 0.37037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf8e7a839447ed7d56910db5a87efb42a19cb761 | 207 | py | Python | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | 2 | 2020-10-16T00:54:23.000Z | 2021-11-11T02:05:32.000Z | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | null | null | null | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | null | null | null | import cv2
cam = cv2.VideoCapture(0)
while True:
camera,frame = cam.read()
cv2.imshow('imagem camera', frame)
if cv2.waitKey(1) == ord('f'):
break
cam.release()
cv2.destroyAllWindows() | 17.25 | 38 | 0.642512 | 28 | 207 | 4.75 | 0.714286 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042424 | 0.202899 | 207 | 12 | 39 | 17.25 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf8fc6f83e41245e2996c4f4fbbce410b6cabeff | 861 | py | Python | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
import swapper
from factory import (
Sequence,
SubFactory,
)
from factory.django import DjangoModelFactory
from accelerator.tests.factories.partner_factory import PartnerFactory
from accelerator.tests.factories.pro... | 27.774194 | 70 | 0.788618 | 84 | 861 | 7.940476 | 0.464286 | 0.077961 | 0.089955 | 0.130435 | 0.107946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006793 | 0.14518 | 861 | 30 | 71 | 28.7 | 0.899457 | 0.058072 | 0 | 0 | 0 | 0 | 0.074257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
cfa6f22885e002c32f2bb0a0900115dab7f6b69c | 4,194 | py | Python | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | import sys
import getpass
import subprocess
import pkg_resources
def enter_key_only():
# Expect the user to press Enter key and suppress the output
getpass.getpass("")
def enter_key_confirmation():
print("Press \'Enter\' to continue or \'CTRL+C\' to abort the program", end="", flush=True)
#... | 42.363636 | 205 | 0.669766 | 496 | 4,194 | 5.415323 | 0.308468 | 0.026061 | 0.029784 | 0.025689 | 0.209978 | 0.146687 | 0.102755 | 0.083395 | 0.048399 | 0.048399 | 0 | 0.00158 | 0.245589 | 4,194 | 98 | 206 | 42.795918 | 0.847345 | 0.280877 | 0 | 0.166667 | 0 | 0 | 0.201524 | 0.024238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.066667 | 0.066667 | 0.016667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cfac8a3bf9b754b428774c64b5a7fb57b3b75af6 | 10,172 | py | Python | jsb/lib/rest/client.py | NURDspace/jsonbot | 400dce602700a93db80e10707c3785a0fbdfaaeb | [
"MIT"
] | 1 | 2019-04-12T12:20:12.000Z | 2019-04-12T12:20:12.000Z | jsb/lib/rest/client.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | null | null | null | jsb/lib/rest/client.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | 1 | 2020-05-06T18:46:53.000Z | 2020-05-06T18:46:53.000Z | # jsb/rest/client.py
#
#
""" Rest Client class """
## jsb imports
from jsb.utils.url import geturl4, posturl, deleteurl, useragent
from jsb.utils.generic import toenc
from jsb.utils.exception import handle_exception, exceptionmsg
from jsb.utils.locking import lockdec
from jsb.utils.lazydict import LazyDict
from jsb.... | 34.364865 | 124 | 0.54129 | 1,170 | 10,172 | 4.659829 | 0.187179 | 0.037234 | 0.034299 | 0.050073 | 0.283749 | 0.212399 | 0.136097 | 0.126192 | 0.126192 | 0.084373 | 0 | 0.004691 | 0.329335 | 10,172 | 295 | 125 | 34.481356 | 0.794488 | 0.010617 | 0 | 0.312775 | 0 | 0.004405 | 0.090909 | 0.006478 | 0 | 0 | 0 | 0 | 0.008811 | 0 | null | null | 0.008811 | 0.079295 | 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 |
cfae2232854c7e9cf552e892930d74771cc98a44 | 13,839 | py | Python | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 49 | 2017-02-21T05:35:49.000Z | 2022-03-24T19:49:13.000Z | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 17 | 2017-02-23T08:59:51.000Z | 2019-05-10T03:02:42.000Z | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 11 | 2017-05-17T20:21:50.000Z | 2021-12-14T19:01:41.000Z |
#### Purpose:
# Parse D*R files.
# Individual envelope formats are handled elsewhere (dxr_envelope etc.).
import struct
from shockabsorber.model.sections import Section, SectionMap, AssociationTable
from shockabsorber.model.cast import CastLibrary, CastLibraryTable
from shockabsorber.model.movie import Movie
from sho... | 39.315341 | 160 | 0.61146 | 1,758 | 13,839 | 4.565984 | 0.152446 | 0.043727 | 0.015697 | 0.023919 | 0.252523 | 0.152984 | 0.103899 | 0.069765 | 0.052323 | 0.052323 | 0 | 0.013498 | 0.239829 | 13,839 | 351 | 161 | 39.42735 | 0.749525 | 0.082015 | 0 | 0.153285 | 0 | 0.00365 | 0.086592 | 0.015882 | 0 | 0 | 0.000958 | 0.002849 | 0 | 0 | null | null | 0 | 0.032847 | null | null | 0.076642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfae41573fd81ac1730a5949ff6705e491a3cd0f | 6,976 | py | Python | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: parse_bpmnxml.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | 50.18705 | 821 | 0.820384 | 877 | 6,976 | 6.005701 | 0.176739 | 0.1367 | 0.075185 | 0.051832 | 0.648187 | 0.565787 | 0.559332 | 0.542624 | 0.528194 | 0.508829 | 0 | 0.02639 | 0.087443 | 6,976 | 138 | 822 | 50.550725 | 0.800974 | 0.048882 | 0 | 0.535088 | 1 | 0.008772 | 0.220914 | 0.183643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096491 | 0 | 0.096491 | 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 |
cfaec93c76fc38ff386500b38962b7e890c0d5b9 | 677 | py | Python | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | lfpratik/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 16 | 2020-03-15T15:33:30.000Z | 2021-11-26T21:57:27.000Z | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | dccnconf/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 11 | 2019-04-27T19:15:43.000Z | 2022-03-11T23:43:08.000Z | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | lfpratik/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 10 | 2020-03-14T09:25:39.000Z | 2022-02-21T16:46:33.000Z | # Generated by Django 2.1.7 on 2019-03-31 14:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('conferences', '0002_auto_20190329_1326'),
]
operations = [
migrations.AddField(
model_name='conference',
name='descr... | 28.208333 | 119 | 0.620384 | 69 | 677 | 5.971014 | 0.652174 | 0.101942 | 0.11165 | 0.131068 | 0.330097 | 0.199029 | 0 | 0 | 0 | 0 | 0 | 0.062249 | 0.264402 | 677 | 23 | 120 | 29.434783 | 0.76506 | 0.06647 | 0 | 0.352941 | 1 | 0 | 0.230159 | 0.036508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
cfb1a0dd3fc254f0d785f59a769dd324b97838e9 | 2,572 | py | Python | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | from spider import Spider
class PageSync(object):
def __init__(self, cn_url, cn_username, cn_password, eu_url, eu_username=None, eu_password=None):
self.spider_cn = Spider(url=cn_url, username=cn_username, password=cn_password)
self.spider_cn.login()
self.spider_eu = Spider(url=eu_url, use... | 41.483871 | 105 | 0.605754 | 313 | 2,572 | 4.702875 | 0.27476 | 0.047554 | 0.032609 | 0.028533 | 0.243207 | 0.22962 | 0.195652 | 0.195652 | 0.195652 | 0.095109 | 0 | 0.012555 | 0.287714 | 2,572 | 61 | 106 | 42.163934 | 0.790939 | 0 | 0 | 0 | 0 | 0 | 0.107698 | 0.010109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.145455 | 0.018182 | 0 | 0.109091 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cfb7a611580cb2074a6bd3d12a2144d33129fca3 | 837 | py | Python | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 5 | 2022-03-14T01:58:34.000Z | 2022-03-21T19:51:09.000Z | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 1 | 2022-03-14T10:18:40.000Z | 2022-03-14T15:52:25.000Z | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 1 | 2022-03-14T10:15:22.000Z | 2022-03-14T10:15:22.000Z | # import libraries
from pyrevit import EXEC_PARAMS
from pyrevit import forms
# prevent the tool, await input
mip = forms.alert("No modelling in place!", options = ["Oops, my bad...", "But you see, I am an artiste"], title = "Not going to happen", footer = "Uhoh")
# process the outcome
if mip == "Oops, my bad...":
... | 36.391304 | 154 | 0.673835 | 122 | 837 | 4.54918 | 0.54918 | 0.09009 | 0.108108 | 0.136937 | 0.277477 | 0.232432 | 0.075676 | 0 | 0 | 0 | 0 | 0.009146 | 0.216249 | 837 | 23 | 155 | 36.391304 | 0.83689 | 0.203106 | 0 | 0.384615 | 0 | 0 | 0.267071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 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 |
cfb9e12117569a0e6982c42c78bded71febf60a5 | 3,436 | py | Python | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | 3 | 2022-02-02T10:58:10.000Z | 2022-02-09T10:46:35.000Z | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | null | null | null | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | null | null | null | from unittest.mock import AsyncMock, Mock, call
import pytest
from galo_startup_commands import DependencyGraphNodeStartupCommand, startup_command
def test_without_parameters() -> None:
@startup_command
def startup():
pass
command = getattr(startup, "startup_command")
assert isinstance(comm... | 25.641791 | 84 | 0.690338 | 355 | 3,436 | 6.478873 | 0.126761 | 0.133913 | 0.070435 | 0.109565 | 0.703043 | 0.703043 | 0.677826 | 0.608696 | 0.576957 | 0.576957 | 0 | 0.002212 | 0.210419 | 3,436 | 133 | 85 | 25.834586 | 0.845558 | 0 | 0 | 0.578431 | 0 | 0 | 0.041618 | 0 | 0 | 0 | 0 | 0 | 0.22549 | 1 | 0.147059 | false | 0.04902 | 0.029412 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfbc7808f0d9aa90289024ba8002f813e7246ea1 | 1,122 | py | Python | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | 6 | 2015-09-16T11:44:17.000Z | 2021-07-19T19:11:14.000Z | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | null | null | null | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | 1 | 2015-03-19T14:37:21.000Z | 2015-03-19T14:37:21.000Z | import subprocess
import os.path
#CONFIGURES BASH STUFF
#TODO: maybe to all users?
#PREVENT TAMPERING WITH THESE FILES
#==================================
append_only = [".bash_history",".bash_profile",".bash_login",".profile",".bash_logout",".bashrc"]
for appends in append_only:
subprocess.call(("chattr +a ~/" ... | 27.365854 | 97 | 0.659537 | 145 | 1,122 | 5.055172 | 0.510345 | 0.109141 | 0.171896 | 0.090041 | 0.070941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00998 | 0.106952 | 1,122 | 40 | 98 | 28.05 | 0.721557 | 0.172014 | 0 | 0 | 0 | 0 | 0.352174 | 0.025 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 |
cfbe85800180a003ff0e85d9da08dbfb881b689b | 3,308 | py | Python | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 102 | 2019-03-15T19:57:55.000Z | 2022-03-04T06:56:18.000Z | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 26 | 2019-03-15T03:17:26.000Z | 2022-02-21T17:46:50.000Z | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 12 | 2019-03-15T01:59:04.000Z | 2022-02-24T14:53:35.000Z | # -*- coding: utf-8 -*-
from ..expr import *
def_Topic(
Title("Imaginary unit"),
Section("Definitions"),
Entries(
"be8e05",
),
Section("Domain"),
Entries(
"88ad6f",
"cd8a07",
"a08fb9",
),
Section("Quadratic equations"),
Entries(
"08ad28",
... | 18.276243 | 101 | 0.583434 | 392 | 3,308 | 4.862245 | 0.30102 | 0.108604 | 0.132739 | 0.037775 | 0.141658 | 0.044071 | 0.044071 | 0.044071 | 0.044071 | 0 | 0 | 0.096887 | 0.223096 | 3,308 | 180 | 102 | 18.377778 | 0.644747 | 0.037787 | 0 | 0.174312 | 0 | 0 | 0.157157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.009174 | 0 | 0.009174 | 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 |
cfc4d663a59f98e39d10c7f6df4d3b1a88ae5a68 | 5,169 | py | Python | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 42.368852 | 98 | 0.655833 | 605 | 5,169 | 5.398347 | 0.297521 | 0.039804 | 0.031843 | 0.033068 | 0.123699 | 0.089712 | 0.071341 | 0.043172 | 0.043172 | 0.043172 | 0 | 0.004371 | 0.24763 | 5,169 | 121 | 99 | 42.719008 | 0.835433 | 0.035597 | 0 | 0.098765 | 0 | 0 | 0.143198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.049383 | 0.061728 | null | null | 0.061728 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfc917659c598b9f2aa9c65e7f6160274733ada1 | 3,258 | py | Python | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from pcfv.layers.ConvBlock import ConvBlock
from pcfv.layers.ScalingBlock import ScalingBlock
class UNet(nn.Module):
'''
Implementation of UNet (Ronneberger et al. U-Net: Convolutional Networks for Biomedical Image Segmentation)
'''
def __init__(self, in_channels, ou... | 47.911765 | 134 | 0.7124 | 457 | 3,258 | 4.811816 | 0.194748 | 0.159618 | 0.245566 | 0.14643 | 0.517508 | 0.505684 | 0.409732 | 0.322419 | 0.307412 | 0.237381 | 0 | 0.048333 | 0.180786 | 3,258 | 68 | 135 | 47.911765 | 0.775571 | 0.045427 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
cfcd1eaf4baa629441933c1fc83033c5ec5c7761 | 351 | py | Python | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 74 | 2020-05-19T01:08:03.000Z | 2022-03-31T14:00:41.000Z | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 1 | 2021-06-04T06:08:21.000Z | 2021-06-04T06:08:21.000Z | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 47 | 2020-05-05T12:06:31.000Z | 2022-03-10T04:45:01.000Z | from stem.descriptor.remote import DescriptorDownloader
downloader = DescriptorDownloader()
descriptors = downloader.get_consensus().run()
for descriptor in descriptors:
print('Nickname:',descriptor.nickname)
print('Fingerprint:',descriptor.fingerprint)
print('Address:',descriptor.address)
print('Band... | 29.25 | 55 | 0.777778 | 33 | 351 | 8.242424 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105413 | 351 | 11 | 56 | 31.909091 | 0.866242 | 0 | 0 | 0 | 0 | 0 | 0.111429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfd382c12e449f2aff45f8f06e3114ca6cda9658 | 1,077 | py | Python | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | # Generated by Django 2.1.5 on 2019-02-07 15:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('paikkala', '0010_nonblank_room'),
('programme', '0075_auto_20181019_1918'),
]
operations = [
migrat... | 34.741935 | 163 | 0.64624 | 120 | 1,077 | 5.633333 | 0.525 | 0.047337 | 0.06213 | 0.097633 | 0.251479 | 0.251479 | 0.133136 | 0.133136 | 0.133136 | 0.133136 | 0 | 0.042527 | 0.23584 | 1,077 | 30 | 164 | 35.9 | 0.778858 | 0.041783 | 0 | 0.333333 | 1 | 0 | 0.24466 | 0.02233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.083333 | 0 | 0.208333 | 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 |
cfd4d7c0086556f8eca75a77d9aa25874ed6b8b1 | 587 | py | Python | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 2 | 2018-06-04T10:46:09.000Z | 2020-06-02T14:48:44.000Z | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 4 | 2018-07-18T13:16:50.000Z | 2021-09-07T23:41:25.000Z | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | null | null | null | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from .views import CreateView, ListView, RetrieveView, DestroyView, UpdateView
urlpatterns = {
url(r'^mentorrequests/$', CreateView.as_view(), name="create"),
url(r'^mentorrequests/$', ListView.as_view(), name="list... | 39.133333 | 78 | 0.735945 | 68 | 587 | 6.205882 | 0.411765 | 0.047393 | 0.21327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103918 | 587 | 14 | 79 | 41.928571 | 0.802281 | 0 | 0 | 0 | 0 | 0 | 0.197615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
cfd56d6ececcc1cd67817258728c7adf9fc34aee | 1,796 | py | Python | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | import os, sys
from sqlalchemy import Column, ForeignKey, Integer, String, Unicode
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
# from sqlalchemy_imageattach.entity import Image, image_attachment
from sqlalchemy import create_engine
Base = declarative_base()
class U... | 23.324675 | 67 | 0.716036 | 222 | 1,796 | 5.675676 | 0.288288 | 0.066667 | 0.071429 | 0.045238 | 0.461111 | 0.438889 | 0.438889 | 0.438889 | 0.438889 | 0.403175 | 0 | 0.013816 | 0.153675 | 1,796 | 77 | 68 | 23.324675 | 0.815132 | 0.13363 | 0 | 0.461538 | 0 | 0 | 0.078982 | 0.016319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.634615 | 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 |
cfd6ca41e1b805ea3a585af7c332ce47525812b5 | 9,903 | py | Python | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi2 | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | 1 | 2019-11-12T14:06:06.000Z | 2019-11-12T14:06:06.000Z | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | #!/usr/bin/env python
import rospkg
import rospy
import yaml
from std_msgs.msg import Int8
from duckietown_msgs.msg import PatrolBot, BoolStamped, RobotName
import numpy as np
import tf.transformations as tr
from geometry_msgs.msg import PoseStamped
import time
class PatrollingNode(object):
def __init__(self):
... | 35.880435 | 104 | 0.553065 | 1,172 | 9,903 | 4.467577 | 0.093857 | 0.065317 | 0.045455 | 0.05806 | 0.539725 | 0.450917 | 0.272727 | 0.247135 | 0.210848 | 0.210848 | 0 | 0.037179 | 0.342724 | 9,903 | 276 | 105 | 35.880435 | 0.767245 | 0.057053 | 0 | 0.6 | 0 | 0 | 0.056365 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03913 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfdf0c6bda6c585e0df43df55f4fc477cd434baa | 455 | py | Python | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 50 | 2015-01-14T17:22:27.000Z | 2022-01-15T22:07:13.000Z | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 48 | 2015-01-31T20:07:40.000Z | 2021-09-14T06:47:39.000Z | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 59 | 2015-01-31T15:14:24.000Z | 2021-09-14T06:15:24.000Z | # -*- coding: utf-8 -*-
"""
Harvest Time Tracking API Client
~~~~~~~~~~~~~~~~
:copyright: © 2012 Aurora Software LLC
:license: Apache 2.0, see LICENSE for more details.
"""
from .metadata import (
__author__,
__copyright__,
__email__,
__license__,
__maintainer__,
__version__,
)
from .harvest... | 17.5 | 62 | 0.641758 | 43 | 455 | 5.604651 | 0.697674 | 0.124481 | 0.165975 | 0.224066 | 0.365145 | 0.365145 | 0 | 0 | 0 | 0 | 0 | 0.019178 | 0.197802 | 455 | 25 | 63 | 18.2 | 0.638356 | 0.36044 | 0 | 0 | 0 | 0 | 0.265018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
cfe226a8bc6ece89901ec8ede5be41c0f659536f | 5,093 | py | Python | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | 2 | 2021-09-11T18:55:33.000Z | 2021-11-08T11:29:58.000Z | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | null | null | null | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | 1 | 2021-04-23T04:26:08.000Z | 2021-04-23T04:26:08.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/ParameterDialog.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dial... | 53.610526 | 132 | 0.721186 | 524 | 5,093 | 6.895038 | 0.295802 | 0.047329 | 0.06698 | 0.034597 | 0.134514 | 0.08165 | 0.04041 | 0 | 0 | 0 | 0 | 0.035208 | 0.169056 | 5,093 | 94 | 133 | 54.180851 | 0.818526 | 0.048694 | 0 | 0.036585 | 1 | 0 | 0.080422 | 0.010337 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.012195 | 0 | 0.04878 | 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 |
cfe2c328ca281e6e8df6b265c3b65ba3bcd9631d | 1,936 | py | Python | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 17 | 2021-04-13T06:09:52.000Z | 2021-11-24T06:39:41.000Z | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 14 | 2021-04-14T13:46:42.000Z | 2021-12-20T21:10:25.000Z | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 7 | 2021-04-09T16:47:56.000Z | 2022-03-05T11:04:30.000Z | from abc import ABC, abstractmethod
from .utils import Device, cast_tuple
class EvaluationFunction(ABC):
@abstractmethod
def __call__(self, mode, data_loader, device=Device.CPU, **kwargs):
raise NotImplementedError
@staticmethod
def filter_call_rval(rval, return_dict=None, return_keys=None, k... | 35.851852 | 105 | 0.595041 | 252 | 1,936 | 4.329365 | 0.31746 | 0.109991 | 0.032997 | 0.047663 | 0.194317 | 0.194317 | 0.054995 | 0.054995 | 0 | 0 | 0 | 0.003106 | 0.334711 | 1,936 | 53 | 106 | 36.528302 | 0.843944 | 0.125517 | 0 | 0.257143 | 0 | 0 | 0.201448 | 0 | 0 | 0 | 0 | 0.018868 | 0.028571 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfe33bb33e5b79b0415e45d5133e48665bc5bedc | 236 | py | Python | creat_name.py | Eric3911/miniDetection | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | 70 | 2019-01-07T09:45:46.000Z | 2020-04-22T01:09:41.000Z | creat_name.py | Eric3911/mini-SSD | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | null | null | null | creat_name.py | Eric3911/mini-SSD | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | 24 | 2019-01-07T09:56:48.000Z | 2019-04-02T03:42:03.000Z | #2、生成名称目录脚本
import os
imglst = os.listdir("./annotations/xmls/")
with open("./annotations/trainval_person.txt","w") as ff:
for img_path in imglst:
name = img_path.split(".")[0]
print(name)
ff.write(name+"\n") | 29.5 | 57 | 0.622881 | 34 | 236 | 4.235294 | 0.764706 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.194915 | 236 | 8 | 58 | 29.5 | 0.747368 | 0.042373 | 0 | 0 | 0 | 0 | 0.247788 | 0.146018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
cff1495f394175c6790d78adf453d9a0c02b8fdf | 685 | py | Python | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | __author__ = 'shuai'
class Solution:
# @param {integer[]} nums
# @return {string}
def largestNumber(self, nums):
ret = ""
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
str_i = str(nums[i])
str_j = str(nums[j])
if st... | 27.4 | 50 | 0.437956 | 90 | 685 | 3.222222 | 0.4 | 0.086207 | 0.072414 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033419 | 0.432117 | 685 | 24 | 51 | 28.541667 | 0.712082 | 0.112409 | 0 | 0 | 0 | 0 | 0.009934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.