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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3423ba71db2db41cb879e731705f6a063ee27081 | 12,609 | py | Python | testscripts/RDKB/component/PAM/TS_PAM_CheckLogUploadStatus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_CheckLogUploadStatus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_CheckLogUploadStatus.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 55.546256 | 362 | 0.67777 | 1,431 | 12,609 | 5.861635 | 0.192872 | 0.041965 | 0.044588 | 0.070815 | 0.604316 | 0.593705 | 0.564616 | 0.542203 | 0.511922 | 0.470315 | 0 | 0.00491 | 0.224681 | 12,609 | 226 | 363 | 55.792035 | 0.85311 | 0.139186 | 0 | 0.490909 | 0 | 0.072727 | 0.38332 | 0.119995 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3426824888bfad35d75cba1478fad8b9ddf2c4dd | 338 | py | Python | authors/apps/articles/migrations/0004_remove_favoritearticle_favorite.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0004_remove_favoritearticle_favorite.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | 56 | 2018-08-28T13:18:19.000Z | 2021-06-10T20:49:30.000Z | authors/apps/articles/migrations/0004_remove_favoritearticle_favorite.py | andela/ah-backend-tesseract | ed3c932cdfa2661662100bb50727f5239d1a6d14 | [
"BSD-3-Clause"
] | 4 | 2018-08-24T04:40:32.000Z | 2021-06-30T09:47:08.000Z | # Generated by Django 2.1 on 2018-09-25 15:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0003_auto_20180919_1427'),
]
operations = [
migrations.RemoveField(
model_name='favoritearticle',
name='favorite',... | 18.777778 | 48 | 0.606509 | 34 | 338 | 5.911765 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124481 | 0.286982 | 338 | 17 | 49 | 19.882353 | 0.709544 | 0.127219 | 0 | 0 | 1 | 0 | 0.1843 | 0.078498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3427b93f0831a3814d417fc884bc8852d8c862b1 | 439 | py | Python | test_madlib.py | glasscharlie/madlib-cli | 746fb00f5baf6d8b0843025718d58e01382007c5 | [
"MIT"
] | null | null | null | test_madlib.py | glasscharlie/madlib-cli | 746fb00f5baf6d8b0843025718d58e01382007c5 | [
"MIT"
] | null | null | null | test_madlib.py | glasscharlie/madlib-cli | 746fb00f5baf6d8b0843025718d58e01382007c5 | [
"MIT"
] | null | null | null | from madlib import print_intro
def test_index_one():
expected = "**************************************"
"** Welcome to Madlibs! **"
"**************************************"
"** You will be prompted for a list **"
"** of words to substitute **"
"** for blanks in the... | 36.583333 | 56 | 0.382688 | 35 | 439 | 4.685714 | 0.828571 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266515 | 439 | 12 | 57 | 36.583333 | 0.509317 | 0 | 0 | 0.181818 | 0 | 0 | 0.604545 | 0.259091 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3438c41eb8cb192dfc96172aa6b3e5aaf288db79 | 879 | py | Python | locations/models.py | yogoh31/Repath-App-Backend | c2cc85b05457ae7338de6f299ce369358402ce12 | [
"MIT"
] | null | null | null | locations/models.py | yogoh31/Repath-App-Backend | c2cc85b05457ae7338de6f299ce369358402ce12 | [
"MIT"
] | null | null | null | locations/models.py | yogoh31/Repath-App-Backend | c2cc85b05457ae7338de6f299ce369358402ce12 | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from django.contrib.auth import get_user_model
class Location(models.Model):
id = models.UUIDField(
primary_key=True,
default=uuid.uuid4,
editable=False,
)
latitude = models.FloatField()
longitude = models.FloatField()
address = mode... | 27.46875 | 72 | 0.686007 | 107 | 879 | 5.457944 | 0.448598 | 0.034247 | 0.041096 | 0.065068 | 0.311644 | 0.243151 | 0.243151 | 0.243151 | 0.243151 | 0.243151 | 0 | 0.007163 | 0.205916 | 879 | 31 | 73 | 28.354839 | 0.829513 | 0 | 0 | 0.4 | 0 | 0 | 0.069397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0.08 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
343ab0cbd83c8dfc439b9e60a6fc45c4d042a6f9 | 5,877 | py | Python | app/views/profile.py | felbinger/FlaskBasic | 803fc5b07638e7d85eddccd00ca20567e57519f0 | [
"MIT"
] | 2 | 2019-12-18T17:45:52.000Z | 2020-04-21T12:45:32.000Z | app/views/profile.py | felbinger/FlaskBasic | 803fc5b07638e7d85eddccd00ca20567e57519f0 | [
"MIT"
] | null | null | null | app/views/profile.py | felbinger/FlaskBasic | 803fc5b07638e7d85eddccd00ca20567e57519f0 | [
"MIT"
] | null | null | null | from flask import (
Blueprint, render_template,
request, session, url_for,
flash, send_from_directory,
redirect, current_app
)
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, PasswordField
from wtforms.validators import Length, EqualTo
from dateutil.parser import parse
imp... | 38.162338 | 103 | 0.557427 | 603 | 5,877 | 5.3267 | 0.270315 | 0.01868 | 0.030511 | 0.045766 | 0.308531 | 0.278643 | 0.22198 | 0.187111 | 0.131694 | 0.128269 | 0 | 0.007058 | 0.300834 | 5,877 | 153 | 104 | 38.411765 | 0.774641 | 0.018547 | 0 | 0.27907 | 0 | 0 | 0.280236 | 0.118515 | 0 | 0 | 0 | 0.006536 | 0 | 1 | 0.023256 | false | 0.108527 | 0.054264 | 0 | 0.232558 | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
343c7bdfb562963453367c3b9f57cfe4bd6479f9 | 311 | py | Python | App/ocr_dispatcher/urls.py | JulesVautier/rabbitmq-ocr | 5e5e30145fc4420be690ce1242ddda54d74ee1f7 | [
"MIT"
] | null | null | null | App/ocr_dispatcher/urls.py | JulesVautier/rabbitmq-ocr | 5e5e30145fc4420be690ce1242ddda54d74ee1f7 | [
"MIT"
] | null | null | null | App/ocr_dispatcher/urls.py | JulesVautier/rabbitmq-ocr | 5e5e30145fc4420be690ce1242ddda54d74ee1f7 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from django.conf.urls import url
urlpatterns = [
url(r'^$', views.home, name='home'),
path('', views.index, name='index'),
path('compute/', views.ocr_view, name='ocr'),
url('uploads/form/$', views.model_form_upload, name='model_form_upload'),
]
| 28.272727 | 77 | 0.672026 | 44 | 311 | 4.636364 | 0.454545 | 0.098039 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144695 | 311 | 10 | 78 | 31.1 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0.170418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
34420141cb8390e6a4f7c4fb29de96967abee559 | 6,856 | py | Python | vendor/packages/translate-toolkit/translate/convert/test_po2php.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/convert/test_po2php.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:55:07.000Z | 2021-12-13T20:55:07.000Z | vendor/packages/translate-toolkit/translate/convert/test_po2php.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytest import mark
from translate.convert import po2php
from translate.convert import test_convert
from translate.misc import wStringIO
from translate.storage import po
class TestPO2Php:
def po2php(self, posource):
"""helper that converts po source to ... | 40.568047 | 103 | 0.62675 | 766 | 6,856 | 5.56658 | 0.248042 | 0.02439 | 0.028143 | 0.04925 | 0.502814 | 0.432927 | 0.426829 | 0.426829 | 0.414634 | 0.372889 | 0 | 0.010606 | 0.229872 | 6,856 | 168 | 104 | 40.809524 | 0.79697 | 0.011814 | 0 | 0.390625 | 0 | 0.023438 | 0.315085 | 0.032092 | 0 | 0 | 0 | 0 | 0.085938 | 0 | null | null | 0 | 0.039063 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
344296eca199490e0cc303adb6b02cec72d7e2e0 | 387 | py | Python | ndefcdf/lnwithdrawal.py | agama-point/ndefcdf | 79bc7b30c32e1d8f2ed59f625a4b35be68cace08 | [
"Apache-2.0"
] | null | null | null | ndefcdf/lnwithdrawal.py | agama-point/ndefcdf | 79bc7b30c32e1d8f2ed59f625a4b35be68cace08 | [
"Apache-2.0"
] | null | null | null | ndefcdf/lnwithdrawal.py | agama-point/ndefcdf | 79bc7b30c32e1d8f2ed59f625a4b35be68cace08 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 Petr Kracik
from ndef.record import Record
from .baserecord import CDFBaseRecord
class CDFLNWithdrawal(CDFBaseRecord):
_type = 'cdf/lnw'
def __str__(self):
"""Return an informal representation suitable for printing."""
return ("NDEF CDFLNWithdrawal: '{} (Label: {})'").fo... | 24.1875 | 86 | 0.713178 | 43 | 387 | 6.27907 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.170543 | 387 | 15 | 87 | 25.8 | 0.82866 | 0.22739 | 0 | 0 | 0 | 0 | 0.153584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
3446619fa5fac865f7937640eb4a4761620ed9b0 | 1,111 | py | Python | reco_lcd.py | premontrei/SoundRecorder | 2f927cfb0525dd80ceac052ba5a0e6313ad851a0 | [
"MIT"
] | null | null | null | reco_lcd.py | premontrei/SoundRecorder | 2f927cfb0525dd80ceac052ba5a0e6313ad851a0 | [
"MIT"
] | null | null | null | reco_lcd.py | premontrei/SoundRecorder | 2f927cfb0525dd80ceac052ba5a0e6313ad851a0 | [
"MIT"
] | null | null | null | import pyaudio
import wave
import RPi.GPIO as gpio
import time
gpio.setmode(gpio.BCM)
inpin = 4
gpio.setup(inpin, gpio.IN)
# CHUNK = 256
CHUNK = 8192
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
RECORD_SECONDS = 15
if int(time.strftime("%H")) <= 8 and int(time.strftime("%U")) == 02:
WAVE_OUTPUT_FILENAME = "... | 20.962264 | 98 | 0.657966 | 157 | 1,111 | 4.535032 | 0.490446 | 0.067416 | 0.054775 | 0.070225 | 0.064607 | 0.064607 | 0.064607 | 0.064607 | 0.064607 | 0 | 0 | 0.025082 | 0.174617 | 1,111 | 52 | 99 | 21.365385 | 0.751363 | 0.058506 | 0 | 0 | 0 | 0 | 0.099712 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
345b7bfa174cf507eca373c39f3375d7080d3bae | 484 | py | Python | codigo/Live148/app/database.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live148/app/database.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live148/app/database.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | import databases
import sqlalchemy
from starlette.config import Config
config = Config(".env")
TESTING = config("TESTING", cast=bool, default=False)
DATABASE_URL = config("DATABASE_URL", cast=databases.DatabaseURL)
TEST_DATABASE_URL = DATABASE_URL.replace(
database="test_" + DATABASE_URL.database
)
if TESTING... | 22 | 73 | 0.77686 | 58 | 484 | 6.293103 | 0.396552 | 0.210959 | 0.123288 | 0.126027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121901 | 484 | 21 | 74 | 23.047619 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
346cb2dfdd0251a74ee46450624bdcbc8be8625c | 401 | py | Python | src/djangocatan/info/migrations/0014_auto_20201016_1838.py | takuto-litalico/django-catan | 32df1b57f433f5b992207d3f13b9abf73883b276 | [
"bzip2-1.0.6"
] | null | null | null | src/djangocatan/info/migrations/0014_auto_20201016_1838.py | takuto-litalico/django-catan | 32df1b57f433f5b992207d3f13b9abf73883b276 | [
"bzip2-1.0.6"
] | null | null | null | src/djangocatan/info/migrations/0014_auto_20201016_1838.py | takuto-litalico/django-catan | 32df1b57f433f5b992207d3f13b9abf73883b276 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-16 09:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('info', '0013_auto_20201009_1912'),
]
operations = [
migrations.AlterField(
model_name='player',
name='points_gained'... | 21.105263 | 61 | 0.605985 | 44 | 401 | 5.409091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107266 | 0.279302 | 401 | 18 | 62 | 22.277778 | 0.716263 | 0.112219 | 0 | 0 | 1 | 0 | 0.129944 | 0.064972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
346f41cececf753c457647857394a985b4de1ecb | 4,962 | py | Python | third_party/unidecode/x0b9.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 39 | 2015-06-10T23:18:07.000Z | 2021-10-21T04:29:06.000Z | third_party/unidecode/x0b9.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 2 | 2016-08-22T12:38:10.000Z | 2017-01-26T18:37:33.000Z | third_party/unidecode/x0b9.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 26 | 2015-06-10T22:09:15.000Z | 2021-06-27T15:45:15.000Z | data = (
'ruk', # 0x00
'rut', # 0x01
'rup', # 0x02
'ruh', # 0x03
'rweo', # 0x04
'rweog', # 0x05
'rweogg', # 0x06
'rweogs', # 0x07
'rweon', # 0x08
'rweonj', # 0x09
'rweonh', # 0x0a
'rweod', # 0x0b
'rweol', # 0x0c
'rweolg', # 0x0d
'rweolm', # 0x0e
'rweolb', ... | 19.158301 | 20 | 0.430673 | 513 | 4,962 | 4.165692 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182048 | 0.362354 | 4,962 | 258 | 21 | 19.232558 | 0.493363 | 0.257759 | 0 | 0 | 0 | 0 | 0.350063 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
347391386d3ba18b4141f8daa76791281d01d22c | 454 | py | Python | solidity/python/constants/PrintFunctionBancorFormula.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | solidity/python/constants/PrintFunctionBancorFormula.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | solidity/python/constants/PrintFunctionBancorFormula.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | from common import getMaxExpArray
MIN_PRECISION = 32
MAX_PRECISION = 127
maxExpArray = getMaxExpArray(MAX_PRECISION+1)
print ' uint256[{}] maxExpArray;'.format(len(maxExpArray))
print ' function BancorFormula() {'
for precision in range(len(maxExpArray)):
prefix = ' ' if MIN_PRECISION <= precision <= M... | 26.705882 | 96 | 0.696035 | 49 | 454 | 6.346939 | 0.530612 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029024 | 0.165198 | 454 | 16 | 97 | 28.375 | 0.791557 | 0 | 0 | 0 | 0 | 0 | 0.226872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
34790eb5d2ea4b87dbfcdd6dfc6d73018d928478 | 431 | py | Python | accounts/migrations/0002_accountpath_color_code.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | null | null | null | accounts/migrations/0002_accountpath_color_code.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | null | null | null | accounts/migrations/0002_accountpath_color_code.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | 1 | 2022-01-19T11:09:13.000Z | 2022-01-19T11:09:13.000Z | # Generated by Django 3.1.6 on 2021-03-24 11:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='accountpath',
name='color_code',
... | 21.55 | 62 | 0.593968 | 45 | 431 | 5.577778 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068627 | 0.290023 | 431 | 19 | 63 | 22.684211 | 0.751634 | 0.104408 | 0 | 0 | 1 | 0 | 0.106771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
ca9da13a2dc2d7625cea5d5cb43e89e60c24f2da | 568 | py | Python | constantsgen/phpwriter.py | barracudanetworks/constantsgen | ff5b0a2d9d297b5da6d4475a91b8180ce9b60f16 | [
"BSD-3-Clause"
] | null | null | null | constantsgen/phpwriter.py | barracudanetworks/constantsgen | ff5b0a2d9d297b5da6d4475a91b8180ce9b60f16 | [
"BSD-3-Clause"
] | 1 | 2016-12-15T18:41:51.000Z | 2016-12-15T18:41:51.000Z | constantsgen/phpwriter.py | barracudanetworks/constantsgen | ff5b0a2d9d297b5da6d4475a91b8180ce9b60f16 | [
"BSD-3-Clause"
] | 1 | 2016-09-25T21:26:54.000Z | 2016-09-25T21:26:54.000Z | class PHPWriter:
def __init__(self, constants):
self.constants = constants
def write(self, out):
out.write("<?php\n")
out.write("/* This file was generated by generate_constants. */\n\n")
for enum in self.constants.enum_values.values():
out.write("\n")
f... | 35.5 | 77 | 0.554577 | 68 | 568 | 4.529412 | 0.382353 | 0.12987 | 0.097403 | 0.090909 | 0.227273 | 0.227273 | 0.227273 | 0.227273 | 0 | 0 | 0 | 0 | 0.278169 | 568 | 15 | 78 | 37.866667 | 0.75122 | 0 | 0 | 0.166667 | 1 | 0 | 0.205986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 |
caa356bf882adae065d5cb91ec67224dcb770dea | 285 | py | Python | input_load.py | Wollert/beer | 57bdaebd63b06945eacb22ec38525d2d0ea79b07 | [
"MIT"
] | null | null | null | input_load.py | Wollert/beer | 57bdaebd63b06945eacb22ec38525d2d0ea79b07 | [
"MIT"
] | null | null | null | input_load.py | Wollert/beer | 57bdaebd63b06945eacb22ec38525d2d0ea79b07 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
import utils
GPIO.setmode(GPIO.BOARD)
last = utils.Load()
while(1):
try:
last.store(1)
except:
pass
try:
last.store(2)
except:
pass
#pwr = utils.PSU(13, 15)
#pwr.on()
#pwr.off()
GPIO.cleanup()
| 10.555556 | 24 | 0.568421 | 41 | 285 | 3.95122 | 0.585366 | 0.08642 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034826 | 0.294737 | 285 | 26 | 25 | 10.961538 | 0.771144 | 0.140351 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cab14d7d991efd6aca940a8558fcd1534e448a07 | 1,496 | py | Python | nappy/machine/__init__.py | ryokbys/nap | ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804 | [
"MIT"
] | 27 | 2015-10-05T06:21:28.000Z | 2021-10-04T17:08:23.000Z | nappy/machine/__init__.py | ryokbys/nap | ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804 | [
"MIT"
] | 4 | 2020-11-08T12:39:38.000Z | 2021-01-10T22:31:36.000Z | nappy/machine/__init__.py | ryokbys/nap | ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804 | [
"MIT"
] | 4 | 2015-01-29T23:10:34.000Z | 2022-01-08T05:20:13.000Z | __version__ = "170130"
__authors__ = "Ryo KOBAYASHI"
__email__ = "kobayashi.ryo@nitech.ac.jp"
class Machine():
"""
Parent class of any other machine classes.
"""
QUEUES = {
'batch': {'num_nodes': 12, 'default_sec': 86400, 'limit_sec': 604800},
'default':{'num_nodes': 12, 'default_se... | 30.530612 | 80 | 0.60762 | 186 | 1,496 | 4.650538 | 0.430108 | 0.083237 | 0.138728 | 0.184971 | 0.413873 | 0.327168 | 0.293642 | 0.221965 | 0.221965 | 0.221965 | 0 | 0.111014 | 0.235294 | 1,496 | 48 | 81 | 31.166667 | 0.645105 | 0.225936 | 0 | 0.346154 | 0 | 0 | 0.346847 | 0.023423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.038462 | 0 | 0 | 0.384615 | 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 |
cabbf2d2e5d83e1d1aacfc3d4789d9ffd5eeba90 | 436 | py | Python | domain/Types.py | Jonjump/sdm | 39930206f155fabfb8dd9db8eaa7bc024cf2ee02 | [
"MIT"
] | null | null | null | domain/Types.py | Jonjump/sdm | 39930206f155fabfb8dd9db8eaa7bc024cf2ee02 | [
"MIT"
] | null | null | null | domain/Types.py | Jonjump/sdm | 39930206f155fabfb8dd9db8eaa7bc024cf2ee02 | [
"MIT"
] | null | null | null | Amount = float
BenefitName = str
Email = str
Donor = Email
PaymentId = str
def isnotemptyinstance(value, type):
if not isinstance(value, type):
return False # None returns false
if isinstance(value, str):
return (len(value.strip()) != 0)
elif isinstance(value, int):
return (value... | 21.8 | 42 | 0.630734 | 51 | 436 | 5.392157 | 0.509804 | 0.218182 | 0.109091 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.266055 | 436 | 19 | 43 | 22.947368 | 0.846875 | 0.041284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
caca75597bf04134d2aceb30426288c176011aaf | 38,393 | py | Python | lib/statplot.py | zju3351689/SPQC-1.0.0 | d38c8756c61b292cd664e4580d30873569e54b79 | [
"BSD-3-Clause"
] | null | null | null | lib/statplot.py | zju3351689/SPQC-1.0.0 | d38c8756c61b292cd664e4580d30873569e54b79 | [
"BSD-3-Clause"
] | null | null | null | lib/statplot.py | zju3351689/SPQC-1.0.0 | d38c8756c61b292cd664e4580d30873569e54b79 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
import sys
import numpy as np
import scipy as sp
from scipy import stats
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from utils import dirDetectCreate
import matplotlib as mpl
import matplotlib.gridspec as gridspec
import matplotlib.cm as cm
from matplotlib import f... | 34.588288 | 680 | 0.684057 | 6,125 | 38,393 | 4.190041 | 0.129633 | 0.019093 | 0.019989 | 0.034055 | 0.543641 | 0.483128 | 0.448215 | 0.432084 | 0.405977 | 0.388014 | 0 | 0.035819 | 0.126664 | 38,393 | 1,109 | 681 | 34.619477 | 0.729585 | 0.157138 | 0 | 0.517609 | 0 | 0 | 0.046421 | 0.001594 | 0 | 0 | 0 | 0 | 0.010672 | 0 | null | null | 0.002134 | 0.01921 | null | null | 0.002134 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cadb8c371a8d98b1b7f471179ca942eafae146d2 | 1,717 | py | Python | formats/turtle_format.py | restful-open-annotation/oa-adapter | d40f935cdef380675e1efa051ad2e1f4b8c8ae7a | [
"MIT"
] | 1 | 2020-08-08T14:20:49.000Z | 2020-08-08T14:20:49.000Z | formats/turtle_format.py | restful-open-annotation/oa-adapter | d40f935cdef380675e1efa051ad2e1f4b8c8ae7a | [
"MIT"
] | null | null | null | formats/turtle_format.py | restful-open-annotation/oa-adapter | d40f935cdef380675e1efa051ad2e1f4b8c8ae7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Turtle content-type support for Open Annotation."""
__author__ = 'Sampo Pyysalo'
__license__ = 'MIT'
import rdftools
# Short name for this format.
format_name = 'turtle'
# The MIME types associated with this format.
# Note: "charset" is not an error: "This MIME type is used with a
# charse... | 30.122807 | 71 | 0.674432 | 244 | 1,717 | 4.692623 | 0.442623 | 0.041921 | 0.023581 | 0.031441 | 0.244541 | 0.206114 | 0.151965 | 0.151965 | 0.151965 | 0.151965 | 0 | 0.004481 | 0.220151 | 1,717 | 56 | 72 | 30.660714 | 0.850635 | 0.684333 | 0 | 0.307692 | 0 | 0 | 0.157428 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
caddaf8c2f2f5897b36a354154f9f52968e3d5cf | 458 | py | Python | clubapp/forms.py | thomaskise/pythonclub | 40361a945b9b95b17c3a8e628f18de4d062f77d1 | [
"Apache-2.0"
] | 2 | 2019-04-04T18:34:11.000Z | 2019-04-09T04:58:10.000Z | clubapp/forms.py | thomaskise/pythonclub | 40361a945b9b95b17c3a8e628f18de4d062f77d1 | [
"Apache-2.0"
] | null | null | null | clubapp/forms.py | thomaskise/pythonclub | 40361a945b9b95b17c3a8e628f18de4d062f77d1 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Meeting, Resource
class MeetingForm(forms.ModelForm):
class Meta:
model=Meeting
fields='__all__'
#can list individual fields seperated by a comma
#also definition of form fields
class ResourceForm(forms.ModelForm):
class Meta:
... | 28.625 | 56 | 0.68559 | 55 | 458 | 5.563636 | 0.472727 | 0.091503 | 0.124183 | 0.150327 | 0.673203 | 0.490196 | 0.490196 | 0.490196 | 0.490196 | 0.490196 | 0 | 0 | 0.262009 | 458 | 16 | 57 | 28.625 | 0.905325 | 0.336245 | 0 | 0.4 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cae42472b16c9a116127d142072edc903634272d | 1,707 | py | Python | chinup/util.py | smbapps/chinup | 4931dd41a0ec1dacadc31448c9437e9f6410bebd | [
"MIT"
] | null | null | null | chinup/util.py | smbapps/chinup | 4931dd41a0ec1dacadc31448c9437e9f6410bebd | [
"MIT"
] | null | null | null | chinup/util.py | smbapps/chinup | 4931dd41a0ec1dacadc31448c9437e9f6410bebd | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import hmac
import hashlib
import json
import logging
import os
import stat
import sys
logger = logging.getLogger(__name__)
def partition(cond, seq, parts=2):
"""
Partition function from Erik Wilsher on Ned's blog at
http://nedbatchelder.com/blog... | 25.102941 | 75 | 0.646163 | 242 | 1,707 | 4.42562 | 0.557851 | 0.011204 | 0.014939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010679 | 0.231986 | 1,707 | 67 | 76 | 25.477612 | 0.806255 | 0.313415 | 0 | 0 | 0 | 0 | 0.035879 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.138889 | false | 0 | 0.25 | 0 | 0.555556 | 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 |
cae5cc34d6db6e60c06b284165b6d66a1edbaadf | 303 | py | Python | test_files/test_set.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_set.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_set.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | from sets import Set
s1 = Set()
s1.add(1)
s1.add(1)
s1.add(1)
s1.add(2)
s2 = Set()
s2.add(1)
s2.add(2)
s3 = Set()
s3.add(2)
s3.add(3)
s4 = set()
s4.add(3)
s4.add(4)
s4.add(4)
s5 = frozenset(s4)
print s1
print s2
print s3
print s4
d = {}
#d[s1] = "one and two"
d[s5] = "three and four"
print d
| 8.416667 | 24 | 0.587459 | 69 | 303 | 2.57971 | 0.318841 | 0.11236 | 0.101124 | 0.134831 | 0.129213 | 0.129213 | 0.129213 | 0.129213 | 0 | 0 | 0 | 0.141667 | 0.207921 | 303 | 35 | 25 | 8.657143 | 0.6 | 0.069307 | 0 | 0.208333 | 0 | 0 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cae6f073d75fecb2d2580ca03f00cdde15de35ef | 926 | py | Python | gettaskletrace.py | wmv/appengine-ndb-experiment | b6d62e1605c6cd290f99903d1dadd796d25978eb | [
"Apache-2.0"
] | 2 | 2015-02-18T08:12:23.000Z | 2015-09-24T20:35:41.000Z | gettaskletrace.py | wmv/appengine-ndb-experiment | b6d62e1605c6cd290f99903d1dadd796d25978eb | [
"Apache-2.0"
] | null | null | null | gettaskletrace.py | wmv/appengine-ndb-experiment | b6d62e1605c6cd290f99903d1dadd796d25978eb | [
"Apache-2.0"
] | null | null | null | """Runs an infinite loop to find race conditions in context get_tasklet."""
from google.appengine.ext import testbed
from ndb import model
from ndb import tasklets
def cause_problem():
tb = testbed.Testbed()
tb.activate()
tb.init_datastore_v3_stub()
tb.init_memcache_stub()
ctx = tasklets.make_default_cont... | 24.368421 | 75 | 0.709503 | 135 | 926 | 4.644444 | 0.525926 | 0.051037 | 0.041467 | 0.044657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001319 | 0.181425 | 926 | 37 | 76 | 25.027027 | 0.825858 | 0.096112 | 0 | 0 | 0 | 0 | 0.051383 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | null | null | 0.035714 | 0.107143 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cae86db5b172adc2c9895e8a1bf0d19a0ddeb202 | 6,553 | py | Python | PasswordManager/PasswordDB.py | skorpion8909/PasswordDB | f0e6386e1b8d56bb48b143388d04ecc34211162b | [
"MIT"
] | 1 | 2020-02-10T13:38:08.000Z | 2020-02-10T13:38:08.000Z | PasswordManager/PasswordDB.py | skorpion8909/PasswordDB | f0e6386e1b8d56bb48b143388d04ecc34211162b | [
"MIT"
] | null | null | null | PasswordManager/PasswordDB.py | skorpion8909/PasswordDB | f0e6386e1b8d56bb48b143388d04ecc34211162b | [
"MIT"
] | null | null | null | """
This module is general purpose module to store up login and passwords in encrypted files.
Through PasswordDB api, provides an easy way to save and load credentials,
which are encrypted with a user key.
The main class is PasswordDB. Only this class should be used directly.
Rest of classes from this module may... | 48.540741 | 122 | 0.501908 | 531 | 6,553 | 6.186441 | 0.3371 | 0.014612 | 0.021005 | 0.026788 | 0.121461 | 0.089193 | 0.089193 | 0.089193 | 0.089193 | 0.089193 | 0 | 0.002273 | 0.194415 | 6,553 | 135 | 123 | 48.540741 | 0.620004 | 0.395697 | 0 | 0.311111 | 0 | 0.011111 | 0.035307 | 0.013273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144444 | false | 0.288889 | 0.111111 | 0.022222 | 0.333333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
caf22a023e62804be46cc16ef95cb44d44806542 | 2,951 | py | Python | ds/graph_undirected.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | 2 | 2016-07-03T06:18:37.000Z | 2016-07-03T06:22:55.000Z | ds/graph_undirected.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | null | null | null | ds/graph_undirected.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | null | null | null | class graph(object):
"""undirected graph class -- an implementation of Algorithm II"""
def __init__(self, V):
"""int V: number of vertices"""
self._v = V
self._e = 0
self._adj = [[] for x in xrange(V)] # adjacency list
def V(self):
"""return the number of vertices"""
return self._v
def E(self):
"""... | 19.287582 | 66 | 0.602508 | 497 | 2,951 | 3.509054 | 0.201207 | 0.091743 | 0.036697 | 0.032683 | 0.264335 | 0.196674 | 0.15539 | 0.135321 | 0.043578 | 0.043578 | 0 | 0.027027 | 0.235175 | 2,951 | 153 | 67 | 19.287582 | 0.74568 | 0.01491 | 0 | 0.354545 | 0 | 0 | 0.003487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
caf28d79ab82485c34343563891dfc60b4ef0e7d | 7,964 | py | Python | tb-gcp-tools/tb-auto-projects-deleter/cloud-function/deleter.py | boost-entropy-gcp/tb-gcp | 9c6fd1d6ab2433410f79a65e21b50d6063919d7c | [
"Apache-2.0"
] | null | null | null | tb-gcp-tools/tb-auto-projects-deleter/cloud-function/deleter.py | boost-entropy-gcp/tb-gcp | 9c6fd1d6ab2433410f79a65e21b50d6063919d7c | [
"Apache-2.0"
] | null | null | null | tb-gcp-tools/tb-auto-projects-deleter/cloud-function/deleter.py | boost-entropy-gcp/tb-gcp | 9c6fd1d6ab2433410f79a65e21b50d6063919d7c | [
"Apache-2.0"
] | 1 | 2021-08-31T15:13:34.000Z | 2021-08-31T15:13:34.000Z | import time
import pymsteams
from datetime import datetime
from reporter.reporter import generate_report
from services.billing_service import BillingService
from services.folders_service import FoldersService
from services.projects_service import ProjectsService
from config import dry_run
from config import credenti... | 30.51341 | 91 | 0.703541 | 999 | 7,964 | 5.23023 | 0.141141 | 0.029474 | 0.022967 | 0.029091 | 0.309282 | 0.247464 | 0.19445 | 0.15311 | 0.132823 | 0.082679 | 0 | 0.001284 | 0.217479 | 7,964 | 260 | 92 | 30.630769 | 0.837131 | 0.062155 | 0 | 0.158192 | 1 | 0 | 0.057515 | 0.00312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090395 | false | 0 | 0.073446 | 0 | 0.214689 | 0.129944 | 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 |
caf5c704cc5941b3e19d34316ccbfb04855cbd4e | 10,865 | py | Python | pirates/piratesbase/UserFunnel.py | Phil7998/Pirates-Online-Rewritten | 7f4f6c46cbead9091fd51fdfc0a7263f50f8b257 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/piratesbase/UserFunnel.py | Phil7998/Pirates-Online-Rewritten | 7f4f6c46cbead9091fd51fdfc0a7263f50f8b257 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/piratesbase/UserFunnel.py | Phil7998/Pirates-Online-Rewritten | 7f4f6c46cbead9091fd51fdfc0a7263f50f8b257 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | import requests
import json
import hmac
import base64
import hashlib
import sys
import time
from datetime import datetime
import calendar
import uuid
import gzip
import platform
from StringIO import StringIO
from panda3d.core import PandaSystem
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct... | 34.059561 | 110 | 0.614818 | 1,259 | 10,865 | 5.043685 | 0.169976 | 0.040945 | 0.034803 | 0.025354 | 0.355906 | 0.286299 | 0.244252 | 0.207717 | 0.172126 | 0.16063 | 0 | 0.005935 | 0.286608 | 10,865 | 319 | 111 | 34.059561 | 0.813314 | 0.012241 | 0 | 0.334661 | 0 | 0 | 0.14849 | 0.002051 | 0 | 0 | 0 | 0.003135 | 0 | 0 | null | null | 0 | 0.063745 | null | null | 0.043825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
caf8d2e93123505a305327145631a51379f4be2b | 693 | py | Python | tests/test_cli.py | datumbox/model-index | a39af5f8aaa2a90b8fc7180744a855282360067a | [
"MIT"
] | 12 | 2021-02-26T08:19:00.000Z | 2022-01-26T14:00:16.000Z | tests/test_cli.py | datumbox/model-index | a39af5f8aaa2a90b8fc7180744a855282360067a | [
"MIT"
] | null | null | null | tests/test_cli.py | datumbox/model-index | a39af5f8aaa2a90b8fc7180744a855282360067a | [
"MIT"
] | 3 | 2021-03-19T13:51:56.000Z | 2021-08-25T05:25:52.000Z | from click.testing import CliRunner
from modelindex.commands.cli import cli
def test_cli_invocation():
runner = CliRunner()
result = runner.invoke(cli)
assert result.exit_code == 0
def test_cli_check_ok():
runner = CliRunner()
result = runner.invoke(cli, ["check", "tests/test-mi/11_markdown/rexn... | 28.875 | 97 | 0.707071 | 101 | 693 | 4.722772 | 0.445545 | 0.067086 | 0.062893 | 0.169811 | 0.450734 | 0.406709 | 0.218029 | 0.218029 | 0.218029 | 0.218029 | 0 | 0.01406 | 0.178932 | 693 | 23 | 98 | 30.130435 | 0.824253 | 0 | 0 | 0.352941 | 0 | 0 | 0.215007 | 0.119769 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
cafd78cb56ffb2e68add6d718d1588f542c5a55b | 1,516 | py | Python | src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py | colawwj/autorest.az | 3606c06491830a3b78443d08f1757314c90128af | [
"MIT"
] | null | null | null | src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py | colawwj/autorest.az | 3606c06491830a3b78443d08f1757314c90128af | [
"MIT"
] | null | null | null | src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py | colawwj/autorest.az | 3606c06491830a3b78443d08f1757314c90128af | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 26.137931 | 106 | 0.643799 | 178 | 1,516 | 5.308989 | 0.522472 | 0.044444 | 0.050794 | 0.040212 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000789 | 0.164248 | 1,516 | 57 | 107 | 26.596491 | 0.745067 | 0.35752 | 0 | 0.241379 | 0 | 0 | 0.11875 | 0.030208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.068966 | 0.137931 | 0 | 0.344828 | 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 |
1b06c26c83a5775912f74fcefb716d4c93d721a0 | 1,837 | py | Python | my/reading/goodreads.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | 1 | 2021-08-04T18:54:52.000Z | 2021-08-04T18:54:52.000Z | my/reading/goodreads.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | my/reading/goodreads.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | 1 | 2021-03-01T13:12:33.000Z | 2021-03-01T13:12:33.000Z | #!/usr/bin/env python3
from functools import lru_cache
from typing import NamedTuple
from datetime import datetime
import pytz
from my.config.repos.goodrexport import dal as goodrexport
from my.config import goodreads as config
def get_model():
sources = list(sorted(config.export_dir.glob('*.xml')))
model = ... | 21.360465 | 60 | 0.591181 | 244 | 1,837 | 4.327869 | 0.405738 | 0.030303 | 0.017045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004552 | 0.282526 | 1,837 | 85 | 61 | 21.611765 | 0.796662 | 0.212847 | 0 | 0 | 0 | 0 | 0.11049 | 0.016084 | 0 | 0 | 0 | 0.011765 | 0.04 | 1 | 0.18 | false | 0 | 0.12 | 0.02 | 0.54 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b0e7de9622280a4ce42c2b9f1966c564ba3aa90 | 2,256 | py | Python | Lab_6/data/core/myservices/pcpingweb01.py | Opty1337/CN | bc01cf39bcc017783fdbb84ebd7958f405511e6c | [
"MIT"
] | null | null | null | Lab_6/data/core/myservices/pcpingweb01.py | Opty1337/CN | bc01cf39bcc017783fdbb84ebd7958f405511e6c | [
"MIT"
] | null | null | null | Lab_6/data/core/myservices/pcpingweb01.py | Opty1337/CN | bc01cf39bcc017783fdbb84ebd7958f405511e6c | [
"MIT"
] | null | null | null | #
# CORE
# Copyright (c)2010-2012 the Boeing Company.
# See the LICENSE file included in this distribution.
#
''' WAN BGP user-defined service.
'''
import os
from core.service import CoreService, addservice
from core.misc.ipaddr import IPv4Prefix, IPv6Prefix
class PCPingWEB01(CoreService):
''' This service start... | 34.181818 | 113 | 0.624557 | 298 | 2,256 | 4.684564 | 0.604027 | 0.017192 | 0.012894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030025 | 0.276596 | 2,256 | 65 | 114 | 34.707692 | 0.825368 | 0.445479 | 0 | 0 | 0 | 0.032258 | 0.198113 | 0.03259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1b1d440f4439c8c2d0ef0c42fdcbe39e90a3ccbe | 355 | py | Python | test.py | CharmaineKarlsen/dummy_recommender | cb62c6a007fded05ec4c5e2178546e6ebebdadf5 | [
"MIT"
] | null | null | null | test.py | CharmaineKarlsen/dummy_recommender | cb62c6a007fded05ec4c5e2178546e6ebebdadf5 | [
"MIT"
] | null | null | null | test.py | CharmaineKarlsen/dummy_recommender | cb62c6a007fded05ec4c5e2178546e6ebebdadf5 | [
"MIT"
] | null | null | null | '''
testing test
'''
import pandas as pd
from recommender import recommend_random
# testing the recommend_random function to check length equals 10
def test_recommender():
"""
testing recommender
"""
movies = pd.read_csv('./data/movies.csv')
recommendations = recommend_random(movies=movies,k=10)
... | 22.1875 | 65 | 0.723944 | 44 | 355 | 5.727273 | 0.590909 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020478 | 0.174648 | 355 | 15 | 66 | 23.666667 | 0.83959 | 0.273239 | 0 | 0 | 0 | 0 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 |
1b21493734c1fe7084564d2541b6367bc9e21eb3 | 1,422 | py | Python | hcipy/optics/__init__.py | rahulbhadani/hcipy | b52726cb9502b5225ddff9d7b1ff417f2350cda8 | [
"MIT"
] | null | null | null | hcipy/optics/__init__.py | rahulbhadani/hcipy | b52726cb9502b5225ddff9d7b1ff417f2350cda8 | [
"MIT"
] | null | null | null | hcipy/optics/__init__.py | rahulbhadani/hcipy | b52726cb9502b5225ddff9d7b1ff417f2350cda8 | [
"MIT"
] | null | null | null | __all__ = ['make_power_law_error', 'SurfaceAberration', 'SurfaceAberrationAtDistance']
__all__ += ['Apodizer', 'PhaseApodizer', 'ThinLens', 'SurfaceApodizer', 'ComplexSurfaceApodizer', 'MultiplexedComplexSurfaceApodizer']
__all__ += ['DynamicOpticalSystem']
__all__ += ['make_gaussian_influence_functions', 'make_xinetic... | 43.090909 | 142 | 0.776371 | 127 | 1,422 | 7.992126 | 0.535433 | 0.137931 | 0.047291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091421 | 1,422 | 32 | 143 | 44.4375 | 0.785604 | 0 | 0 | 0 | 0 | 0 | 0.465541 | 0.16526 | 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 |
1b26c0215d3f829ea5ad1e9e0ca9376e6731d822 | 17,759 | py | Python | mission_to_mars.py | KennyDove/JavaScript-Homework | db20b5850b1c2b1f397b95918b9fffd5d4a7301f | [
"ADSL"
] | null | null | null | mission_to_mars.py | KennyDove/JavaScript-Homework | db20b5850b1c2b1f397b95918b9fffd5d4a7301f | [
"ADSL"
] | null | null | null | mission_to_mars.py | KennyDove/JavaScript-Homework | db20b5850b1c2b1f397b95918b9fffd5d4a7301f | [
"ADSL"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"from splinter import Browser\n",
"from bs4 import BeautifulSoup\n",
"from datetime import datetime \n",
"import os\n",
"import time\n",
"from urlli... | 28.597424 | 189 | 0.486289 | 2,013 | 17,759 | 4.17238 | 0.148038 | 0.014287 | 0.018097 | 0.070008 | 0.612097 | 0.531611 | 0.476247 | 0.456959 | 0.418978 | 0.393975 | 0 | 0.028796 | 0.290163 | 17,759 | 620 | 190 | 28.643548 | 0.63684 | 0 | 0 | 0.540323 | 0 | 0.009677 | 0.59795 | 0.047582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.01129 | 0 | 0.01129 | 0.017742 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b28e71fc89c90ac1ab71f35ac56f1d6d25c3753 | 3,998 | py | Python | ecommerce-website/accounts/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | null | null | null | ecommerce-website/accounts/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | null | null | null | ecommerce-website/accounts/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | 1 | 2022-01-03T13:40:11.000Z | 2022-01-03T13:40:11.000Z | from django.contrib import admin
from django import forms
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from profiles.models import FavoritesProducts, Address
from accounts.models import User
... | 33.041322 | 102 | 0.652076 | 454 | 3,998 | 5.596916 | 0.268722 | 0.034632 | 0.033451 | 0.041322 | 0.20307 | 0.100748 | 0.028335 | 0 | 0 | 0 | 0 | 0.004872 | 0.229865 | 3,998 | 121 | 103 | 33.041322 | 0.820396 | 0.017009 | 0 | 0.082474 | 0 | 0 | 0.128564 | 0.016293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072165 | false | 0.175258 | 0.134021 | 0.030928 | 0.484536 | 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 |
1b29d257c6761a72c6e80eeacea9adea6b439c6f | 2,174 | py | Python | bots/migrations/0001_initial.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | 4 | 2016-12-05T18:32:48.000Z | 2019-01-26T21:42:53.000Z | bots/migrations/0001_initial.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | 14 | 2016-11-30T01:03:59.000Z | 2019-01-26T21:37:25.000Z | bots/migrations/0001_initial.py | jaymcgrath/ewe_ebooks | 06ffa6c881d205ab00a55c195ee79bccd2da77ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-14 03:50
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | 57.210526 | 323 | 0.668353 | 272 | 2,174 | 5.198529 | 0.433824 | 0.050919 | 0.067185 | 0.08133 | 0.229137 | 0.176803 | 0.128713 | 0.128713 | 0.128713 | 0.102546 | 0 | 0.027586 | 0.199632 | 2,174 | 37 | 324 | 58.756757 | 0.785057 | 0.031279 | 0 | 0 | 1 | 0 | 0.251545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.310345 | 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 |
1b2c3531be2537e26515653ff7a79f314ad745b8 | 1,245 | py | Python | tests/readwrite.py | redmoogle/jsonreader | b37db693a1f382661c44cf756e5ac7a6a3953010 | [
"MIT"
] | null | null | null | tests/readwrite.py | redmoogle/jsonreader | b37db693a1f382661c44cf756e5ac7a6a3953010 | [
"MIT"
] | null | null | null | tests/readwrite.py | redmoogle/jsonreader | b37db693a1f382661c44cf756e5ac7a6a3953010 | [
"MIT"
] | 1 | 2021-04-13T15:09:58.000Z | 2021-04-13T15:09:58.000Z | """
Ensures it can read and write to the file
"""
import guildreader
import unittest
import random
class FakeGuild:
def __init__(self):
self.id = random.randint(1, 1000)
class FakeBot:
def __init__(self):
self.guilds = []
for _ in range(30):
self.guilds += [FakeGuild()]
... | 22.636364 | 67 | 0.584739 | 154 | 1,245 | 4.571429 | 0.376623 | 0.049716 | 0.051136 | 0.059659 | 0.240057 | 0.240057 | 0.240057 | 0.201705 | 0.201705 | 0.201705 | 0 | 0.012543 | 0.295582 | 1,245 | 54 | 68 | 23.055556 | 0.790194 | 0.061044 | 0 | 0.194444 | 0 | 0 | 0.041344 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b2d152ab6b559ca36943e42c314c2b2bebfe552 | 691 | py | Python | AD999-flask-admin-composite/app/models/post.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2020-06-17T05:44:48.000Z | 2021-09-11T02:49:38.000Z | AD999-flask-admin-composite/app/models/post.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2021-06-08T20:57:03.000Z | 2022-02-23T14:54:59.000Z | AD999-flask-admin-composite/app/models/post.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 6 | 2020-06-17T05:44:56.000Z | 2022-03-29T12:53:05.000Z | from app.extensions import db
from .user import User
posts_tags = db.Table(
'post_tags', db.metadata,
db.Column('post_id', db.Integer, db.ForeignKey('post.id')),
db.Column('tag_id', db.Integer, db.ForeignKey('tag.id'))
)
class Post(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = d... | 27.64 | 63 | 0.670043 | 102 | 691 | 4.411765 | 0.372549 | 0.142222 | 0.133333 | 0.14 | 0.275556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005217 | 0.167873 | 691 | 24 | 64 | 28.791667 | 0.777391 | 0 | 0 | 0 | 0 | 0 | 0.065123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.722222 | 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 |
1b2e2b2b62f946ae85fa4cbd700657c58c7d1255 | 1,506 | py | Python | pyregion/conftest.py | stefanor/pyregion | 7e4378c5b41323f158cb208eea532faaf3e2745a | [
"MIT"
] | 21 | 2015-03-10T19:47:14.000Z | 2021-05-12T03:55:56.000Z | pyregion/conftest.py | stefanor/pyregion | 7e4378c5b41323f158cb208eea532faaf3e2745a | [
"MIT"
] | 100 | 2015-02-06T18:53:14.000Z | 2021-09-09T20:43:11.000Z | pyregion/conftest.py | stefanor/pyregion | 7e4378c5b41323f158cb208eea532faaf3e2745a | [
"MIT"
] | 22 | 2015-03-18T05:16:19.000Z | 2021-11-23T15:34:59.000Z | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.version import version as astropy_version
if astropy_version < '3.0':
# With older versions of Astrop... | 36.731707 | 84 | 0.760292 | 207 | 1,506 | 5.429952 | 0.497585 | 0.042705 | 0.042705 | 0.053381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.166003 | 1,506 | 40 | 85 | 37.65 | 0.89172 | 0.487384 | 0 | 0 | 0 | 0 | 0.105402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 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 |
1b31446f8baa9a77e30b174af8a2be3b87a9828f | 1,323 | py | Python | src/knowledgebaseinit.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 78 | 2016-09-29T08:26:50.000Z | 2022-02-21T23:41:23.000Z | src/knowledgebaseinit.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 7 | 2016-10-14T14:32:00.000Z | 2018-03-17T17:28:42.000Z | src/knowledgebaseinit.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 50 | 2016-10-05T06:22:38.000Z | 2022-02-03T16:08:48.000Z | #!/usr/bin/python
## Binary Analysis Tool
## Copyright 2009-2013 Armijn Hemel for Tjaldur Software Governance Solutions
## Licensed under Apache 2.0, see LICENSE file for details
'''
This script can be used to initialize an empty knowledgebase and create all tables.
'''
import os, sys, sqlite3
from optparse import O... | 33.923077 | 157 | 0.67876 | 180 | 1,323 | 4.927778 | 0.561111 | 0.036077 | 0.063134 | 0.064262 | 0.182638 | 0.110485 | 0.110485 | 0.076663 | 0 | 0 | 0 | 0.020913 | 0.204837 | 1,323 | 38 | 158 | 34.815789 | 0.822243 | 0.141345 | 0 | 0 | 0 | 0.045455 | 0.449807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b33c709fa280bddd7f04d0b712c27afbb54b636 | 282 | py | Python | practico_01/ejercicio-13.py | Pra3t0r5/soporte2019 | a27c47b2d7116a8320d4bdea91c1c91deda22c14 | [
"MIT"
] | 1 | 2019-03-18T14:01:43.000Z | 2019-03-18T14:01:43.000Z | practico_01/ejercicio-13.py | Pra3t0r5/soporte2019 | a27c47b2d7116a8320d4bdea91c1c91deda22c14 | [
"MIT"
] | 4 | 2019-04-04T15:44:01.000Z | 2021-05-11T16:56:54.000Z | practico_01/ejercicio-13.py | Pra3t0r5/soporte2019 | a27c47b2d7116a8320d4bdea91c1c91deda22c14 | [
"MIT"
] | 1 | 2019-03-26T23:34:03.000Z | 2019-03-26T23:34:03.000Z | # Implementar la función es_primo(), que devuelva un booleano en base a
# si numero es primo o no.
def es_primo(numero):
for i in range (2,numero):
if (numero % i) == 0:
return False
return True
assert(es_primo(7)== True)
assert(es_primo(6) == False)
| 21.692308 | 71 | 0.634752 | 46 | 282 | 3.804348 | 0.652174 | 0.2 | 0.137143 | 0.194286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.255319 | 282 | 12 | 72 | 23.5 | 0.814286 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
1b346da9e53ca1abed0eca243dfc7212388c8170 | 4,840 | py | Python | plugins/Gp_renderWindow.py | TheGreatRambler/extensibleRenderer | 8038d2d7bbb7503862e3858f5fe0b897063ff302 | [
"MIT"
] | 1 | 2021-04-26T20:51:43.000Z | 2021-04-26T20:51:43.000Z | plugins/Gp_renderWindow.py | TheGreatRambler/extensibleRenderer | 8038d2d7bbb7503862e3858f5fe0b897063ff302 | [
"MIT"
] | null | null | null | plugins/Gp_renderWindow.py | TheGreatRambler/extensibleRenderer | 8038d2d7bbb7503862e3858f5fe0b897063ff302 | [
"MIT"
] | null | null | null | import win32gui
import win32ui
import ctypes
import pywinauto
from pywinauto.application import Application
from pywinauto import Desktop
from PIL import Image
import subprocess
import os
# windows only solution
# the way to get all applications (including jars and programs that start through the command line) is
# by ... | 35.851852 | 106 | 0.727066 | 661 | 4,840 | 5.305598 | 0.432678 | 0.023952 | 0.010265 | 0.007414 | 0.027944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013227 | 0.172107 | 4,840 | 135 | 107 | 35.851852 | 0.861992 | 0.324174 | 0 | 0.08 | 0 | 0 | 0.024754 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 1 | 0.106667 | false | 0.013333 | 0.12 | 0 | 0.306667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1b382927e105dc0b19368671030c8ada293f79ce | 2,062 | py | Python | test/test_connection_api.py | atlanticwave-sdx/sdx-lc-client | a442eb3efc327cd39b0d227329cef207ab1505e3 | [
"Apache-2.0"
] | null | null | null | test/test_connection_api.py | atlanticwave-sdx/sdx-lc-client | a442eb3efc327cd39b0d227329cef207ab1505e3 | [
"Apache-2.0"
] | null | null | null | test/test_connection_api.py | atlanticwave-sdx/sdx-lc-client | a442eb3efc327cd39b0d227329cef207ab1505e3 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
SDX LC
You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501
OpenAPI spec version: 1.0.0
Contact: yxin@renci.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
... | 29.884058 | 156 | 0.652279 | 264 | 2,062 | 4.924242 | 0.450758 | 0.036923 | 0.03 | 0.034615 | 0.073846 | 0.035385 | 0.035385 | 0 | 0 | 0 | 0 | 0.035533 | 0.235694 | 2,062 | 68 | 157 | 30.323529 | 0.78934 | 0.36421 | 0 | 0.107143 | 0 | 0 | 0.060531 | 0.02073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.107143 | 0.178571 | 0 | 0.464286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1b3e136cc04e031ee4dda0186711a1f58852d153 | 895 | py | Python | pdd_sdk/api/rest/DdkThemePromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | 1 | 2020-07-07T06:47:15.000Z | 2020-07-07T06:47:15.000Z | pdd_sdk/api/rest/DdkThemePromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | null | null | null | pdd_sdk/api/rest/DdkThemePromUrlGenerate.py | ymj4023/pdd_sdk | a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
DdkThemePromUrlGenerate.py:
https://open.pinduoduo.com/application/document/api?id=pdd.ddk.theme.prom.url.generate
多多进宝主题推广链接生成
"""
from pdd_sdk.api.base import RestApi
class DdkThemePromUrlGenerate(RestApi):
def __init__(self, domain='gw-api.pinduoduo.com', port=80):
RestApi.... | 35.8 | 86 | 0.692737 | 117 | 895 | 5.119658 | 0.555556 | 0.100167 | 0.050083 | 0.055092 | 0.163606 | 0.163606 | 0 | 0 | 0 | 0 | 0 | 0.012363 | 0.186592 | 895 | 24 | 87 | 37.291667 | 0.81044 | 0.346369 | 0 | 0 | 1 | 0 | 0.089631 | 0.054482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.071429 | 0.357143 | 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 |
1b46c7f281423b06f230cd8d03c8d148fe744182 | 2,710 | py | Python | celulas.py | Jav10/Algoritmos-Geneticos | 9c80d2c97b3c1bb58b5aadd80a5fb192bef5e377 | [
"MIT"
] | null | null | null | celulas.py | Jav10/Algoritmos-Geneticos | 9c80d2c97b3c1bb58b5aadd80a5fb192bef5e377 | [
"MIT"
] | null | null | null | celulas.py | Jav10/Algoritmos-Geneticos | 9c80d2c97b3c1bb58b5aadd80a5fb192bef5e377 | [
"MIT"
] | null | null | null | import numpy as np
#Creando la matriz
tablero = np.zeros(30)
tableroFuturo = np.zeros(30)
#Estado inicial
tablero[1] = 1
tablero[4] = 1
tablero[5] = 1
tablero[7] = 1
tablero[9] = 1
tablero[11] = 1
tablero[13] = 1
tablero[14] = 1
contador = 0
def buscarCelulas(matrizBC):
for j in range(30):
valor ... | 19.637681 | 68 | 0.569004 | 410 | 2,710 | 3.760976 | 0.214634 | 0.045396 | 0.027237 | 0.049935 | 0.336576 | 0.287289 | 0.287289 | 0.23476 | 0.221141 | 0.221141 | 0 | 0.046851 | 0.267528 | 2,710 | 137 | 69 | 19.781022 | 0.729975 | 0.108856 | 0 | 0.424242 | 0 | 0 | 0.077594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0.050505 | 0.010101 | 0 | 0.10101 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b47f901d6a10295512391f1fb04023c6bd03538 | 2,476 | py | Python | django/engagementmanager/utils/vvp_exceptions.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | django/engagementmanager/utils/vvp_exceptions.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | django/engagementmanager/utils/vvp_exceptions.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-10-19T15:17:09.000Z | 2021-10-19T15:17:09.000Z | #
# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ===================================================================
#
# Unless ... | 36.955224 | 76 | 0.686995 | 304 | 2,476 | 5.5 | 0.384868 | 0.07177 | 0.0311 | 0.038278 | 0.603469 | 0.526914 | 0.48744 | 0.45634 | 0.45634 | 0.368421 | 0 | 0.011439 | 0.152666 | 2,476 | 66 | 77 | 37.515152 | 0.785033 | 0.670436 | 0 | 0.333333 | 0 | 0 | 0.115176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1b4a22274feb268eecc3e48b7fbca0a2ee9a4315 | 4,463 | py | Python | Step5_train_word2vec.py | lyoshiwo/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 37 | 2016-07-22T03:52:54.000Z | 2021-08-30T13:44:01.000Z | Step5_train_word2vec.py | ezcareer/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 3 | 2017-02-09T22:58:06.000Z | 2019-07-10T01:42:09.000Z | Step5_train_word2vec.py | ezcareer/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 26 | 2017-01-08T05:23:10.000Z | 2021-12-20T10:18:42.000Z | # -*- coding: utf-8 -*-
import util
__author__ = 'lin_eo'
from util import read_json
import datetime
from gensim.models import Word2Vec
def work_time(start_date, end_date):
start_date = start_date.strip()
end_date = end_date.strip()
if u'今' in end_date or 'Present' in end_date or u'其他' in end_date:
... | 34.596899 | 101 | 0.562626 | 600 | 4,463 | 4.003333 | 0.276667 | 0.069942 | 0.037469 | 0.039967 | 0.292256 | 0.259784 | 0.221066 | 0.21149 | 0.179017 | 0.179017 | 0 | 0.030212 | 0.325118 | 4,463 | 128 | 102 | 34.867188 | 0.767264 | 0.107551 | 0 | 0.230769 | 0 | 0 | 0.07512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048077 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b576c8459bd153fdcf2c82dc74e35f7cd0e1e5b | 3,122 | py | Python | demo_simtime.py | c-bata/gp-parallel-ts | 369b084a2cfe00c2efb971f200485098cc977564 | [
"MIT"
] | 27 | 2017-09-27T13:11:32.000Z | 2021-09-09T14:02:02.000Z | demo_simtime.py | c-bata/gp-parallel-ts | 369b084a2cfe00c2efb971f200485098cc977564 | [
"MIT"
] | null | null | null | demo_simtime.py | c-bata/gp-parallel-ts | 369b084a2cfe00c2efb971f200485098cc977564 | [
"MIT"
] | 11 | 2017-12-28T02:39:27.000Z | 2021-01-14T18:23:35.000Z | """
A simple demo for parallelised BO via Thompson sampling on synthetic functions and
simulated time units.
The time for each evaluation is sampled from the specified random distribution.
-- kandasamy@cs.cmu.edu
"""
# pylint: disable=relative-import
# Local imports
from bo.blackbox_optimiser import random_opt... | 34.307692 | 84 | 0.720372 | 452 | 3,122 | 4.584071 | 0.261062 | 0.049228 | 0.039093 | 0.04778 | 0.507239 | 0.341699 | 0.256757 | 0.206564 | 0.206564 | 0.206564 | 0 | 0.015689 | 0.142537 | 3,122 | 90 | 85 | 34.688889 | 0.758312 | 0.242793 | 0 | 0.1 | 0 | 0.1 | 0.162835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b5be1710b01b1d15e4bd69280bc9e20c92e27e2 | 1,028 | py | Python | tesseract.py | joesinghh/Text-Extractor | 614caaa080fdd09096a623ed65ae9e5b65babec1 | [
"MIT"
] | null | null | null | tesseract.py | joesinghh/Text-Extractor | 614caaa080fdd09096a623ed65ae9e5b65babec1 | [
"MIT"
] | 2 | 2021-05-01T05:58:53.000Z | 2021-09-29T05:55:01.000Z | tesseract.py | joesinghh/Text-Extractor | 614caaa080fdd09096a623ed65ae9e5b65babec1 | [
"MIT"
] | 1 | 2021-05-01T06:02:57.000Z | 2021-05-01T06:02:57.000Z | import cv2
import numpy as np
import pytesseract as pt
pt.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
# get grayscale image
def get_grayscale(image):
return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# noise removal
def remove_noise(image):
return cv2.medianBlur(image... | 25.7 | 80 | 0.669261 | 135 | 1,028 | 4.955556 | 0.503704 | 0.053812 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027127 | 0.211089 | 1,028 | 40 | 81 | 25.7 | 0.797781 | 0.074903 | 0 | 0 | 0 | 0 | 0.071586 | 0.036344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0.111111 | 0.481481 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
1b5ee2f7f33ada988aa00a196aef4ed8dc7ef685 | 264 | py | Python | math/18_r_gcd_lcm.py | zhuhuifeng/PyOJ | 94f2bcd6f0efab099eca5ffa7e776d149b69d8d8 | [
"Apache-2.0"
] | null | null | null | math/18_r_gcd_lcm.py | zhuhuifeng/PyOJ | 94f2bcd6f0efab099eca5ffa7e776d149b69d8d8 | [
"Apache-2.0"
] | null | null | null | math/18_r_gcd_lcm.py | zhuhuifeng/PyOJ | 94f2bcd6f0efab099eca5ffa7e776d149b69d8d8 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
#给你两个数a和b,计算出它们分别是哪两个数的最大公约数和最小公倍数。
#输出这两个数,小的在前,大的在后,以空格隔开。若有多组解,输出它们之和最小的那组。
import math
a,b = 12,36
if a > b:
a, b = b, a
p = b / a
for i in range(1, int(math.sqrt(p)) + 1):
if p % i == 0:
f1, f2 = i, p / i
print f1 * a, f2 * a | 17.6 | 42 | 0.575758 | 51 | 264 | 2.980392 | 0.588235 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.257576 | 264 | 15 | 43 | 17.6 | 0.714286 | 0.329545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b605f39d3f9e819af7a9a5ba8471cdcbcbcf0ed | 35,364 | py | Python | tests/driver/test_htcondor_driver.py | paulgessinger/kong | b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5 | [
"MIT"
] | 3 | 2020-02-14T09:23:56.000Z | 2020-08-24T16:19:00.000Z | tests/driver/test_htcondor_driver.py | paulgessinger/kong | b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5 | [
"MIT"
] | 159 | 2019-09-16T19:17:16.000Z | 2022-03-29T19:12:37.000Z | tests/driver/test_htcondor_driver.py | paulgessinger/kong | b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5 | [
"MIT"
] | null | null | null | import os
import shutil
import tempfile
from datetime import timedelta, datetime
from typing import Collection, Iterator
from unittest.mock import Mock, ANY, call
import pytest
from kong import util
from kong.config import Config, slurm_schema
from kong.drivers import InvalidJobStatus, get_driver
from kong.drivers.ht... | 29.692695 | 88 | 0.641698 | 4,388 | 35,364 | 5.011851 | 0.069964 | 0.043789 | 0.048199 | 0.052792 | 0.780511 | 0.722945 | 0.671608 | 0.631184 | 0.580075 | 0.507321 | 0 | 0.042783 | 0.236597 | 35,364 | 1,190 | 89 | 29.717647 | 0.771827 | 0.018578 | 0 | 0.565171 | 0 | 0 | 0.146609 | 0.018539 | 0 | 0 | 0 | 0 | 0.152778 | 1 | 0.03953 | false | 0.001068 | 0.014957 | 0.001068 | 0.059829 | 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 |
1b6509be45417163a20ce28b5f0f254857097e7d | 1,325 | py | Python | app/mails/models.py | atb00ker/Community-Connect | 069e2f2fd81ceed9fc4a7b3e311ccce429f85c72 | [
"MIT"
] | null | null | null | app/mails/models.py | atb00ker/Community-Connect | 069e2f2fd81ceed9fc4a7b3e311ccce429f85c72 | [
"MIT"
] | 2 | 2020-06-05T18:30:20.000Z | 2021-06-01T22:21:01.000Z | app/mails/models.py | officialrahulmandal/Community_Connect | 66314e066da29340e685d84b9173a788e5eca045 | [
"MIT"
] | null | null | null | from django.db import models
from multiselectfield import MultiSelectField
from django.contrib.auth.models import User
class UserExtended(models.Model):
user = models.ForeignKey(
User,
on_delete=models.CASCADE)
CHANNELS_CHOICES = (
('nextevent', 'Next Event Update'),
('resource... | 25.480769 | 70 | 0.661132 | 141 | 1,325 | 6.042553 | 0.453901 | 0.052817 | 0.084507 | 0.112676 | 0.268779 | 0.213615 | 0.150235 | 0.150235 | 0.150235 | 0.150235 | 0 | 0.012758 | 0.230943 | 1,325 | 51 | 71 | 25.980392 | 0.823356 | 0 | 0 | 0.225 | 0 | 0 | 0.086038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0.075 | 0.65 | 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 |
1b7311b471cbc0f8cfc4eb2852c652e275854b2d | 23,901 | py | Python | evaluation_acm_ccr_2019/runtime_comparison_separation_dynvmp_vs_lp.py | vnep-approx-py3/evaluation-acm-ccr-2019-py3 | ae0ec52fbb7104ecf722ab8c20362b6cfd0daf22 | [
"MIT"
] | null | null | null | evaluation_acm_ccr_2019/runtime_comparison_separation_dynvmp_vs_lp.py | vnep-approx-py3/evaluation-acm-ccr-2019-py3 | ae0ec52fbb7104ecf722ab8c20362b6cfd0daf22 | [
"MIT"
] | null | null | null | evaluation_acm_ccr_2019/runtime_comparison_separation_dynvmp_vs_lp.py | vnep-approx-py3/evaluation-acm-ccr-2019-py3 | ae0ec52fbb7104ecf722ab8c20362b6cfd0daf22 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2016-2018 Matthias Rost
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | 49.078029 | 215 | 0.648341 | 2,975 | 23,901 | 4.902185 | 0.140168 | 0.02057 | 0.028524 | 0.015428 | 0.723533 | 0.697545 | 0.688769 | 0.665798 | 0.618555 | 0.601892 | 0 | 0.025105 | 0.260031 | 23,901 | 486 | 216 | 49.179012 | 0.799502 | 0.167064 | 0 | 0.582781 | 0 | 0.006623 | 0.055772 | 0.012085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02649 | false | 0 | 0.033113 | 0.006623 | 0.089404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b7b73a636eb2d0541131bf8622bb0508341ed03 | 6,437 | py | Python | sandbox/cyclicgroup.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | sandbox/cyclicgroup.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | sandbox/cyclicgroup.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | """
Abstract Cyclic Group structure provided module.
"""
import logging
import nzmath.integerResidueClass as integerResidueClass
import nzmath.rational as rational
import sandbox.group as group
_log = logging.getLogger('sandbox.cyclicgroup')
import nzmath.factor.methods as factor_methods
class CyclicGroup(group.Abe... | 33.878947 | 96 | 0.609911 | 674 | 6,437 | 5.698813 | 0.232938 | 0.028118 | 0.017183 | 0.010935 | 0.263994 | 0.205415 | 0.205415 | 0.187712 | 0.153606 | 0.126009 | 0 | 0.001119 | 0.305888 | 6,437 | 189 | 97 | 34.058201 | 0.85855 | 0.242038 | 0 | 0.238938 | 0 | 0 | 0.046147 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.123894 | false | 0 | 0.044248 | 0 | 0.433628 | 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 |
1b942d6a1cdffa49acc7de8ffae41adf9e6e5c01 | 442 | py | Python | if-l-cmd.py | gynvael/iface | d5bc3385314dd9b9219a2222af30e51db88b57b7 | [
"MIT"
] | 55 | 2015-04-11T12:44:39.000Z | 2020-11-19T06:32:16.000Z | RPC/if-l-cmd.py | wrobeljakub/win-linux-setup | 1696d387190afe7f7d822ab038446ed0175205db | [
"MIT"
] | 4 | 2016-04-10T19:28:24.000Z | 2018-08-03T16:58:05.000Z | RPC/if-l-cmd.py | wrobeljakub/win-linux-setup | 1696d387190afe7f7d822ab038446ed0175205db | [
"MIT"
] | 14 | 2016-05-08T00:31:43.000Z | 2021-04-10T22:24:38.000Z | #!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
# with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib, sys
ifaceclientlib.LOG_LEVEL = ifaceclientlib.LOG_WARNING
# Check args.
if len(sys.argv) != 2:
prin... | 21.047619 | 75 | 0.701357 | 68 | 442 | 4.529412 | 0.720588 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.171946 | 442 | 20 | 76 | 22.1 | 0.833333 | 0.454751 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b9771f8e6f42a749a8be0e50e2a327252bdf8e7 | 8,510 | py | Python | SOFTWARE/A64-TERES/u-boot_new/tools/buildman/toolchain.py | xloem/DIY-LAPTOP | f2a410706f7a919ac644de073c570629d5601203 | [
"Apache-2.0"
] | null | null | null | SOFTWARE/A64-TERES/u-boot_new/tools/buildman/toolchain.py | xloem/DIY-LAPTOP | f2a410706f7a919ac644de073c570629d5601203 | [
"Apache-2.0"
] | null | null | null | SOFTWARE/A64-TERES/u-boot_new/tools/buildman/toolchain.py | xloem/DIY-LAPTOP | f2a410706f7a919ac644de073c570629d5601203 | [
"Apache-2.0"
] | 1 | 2021-10-31T18:37:47.000Z | 2021-10-31T18:37:47.000Z | # Copyright (c) 2012 The Chromium OS Authors.
#
# SPDX-License-Identifier: GPL-2.0+
#
import re
import glob
import os
import bsettings
import command
class Toolchain:
"""A single toolchain
Public members:
gcc: Full path to C compiler
path: Directory path containing C compiler
cross: ... | 34.314516 | 79 | 0.566627 | 1,006 | 8,510 | 4.740557 | 0.2833 | 0.026421 | 0.014678 | 0.011952 | 0.052422 | 0.040679 | 0.031034 | 0.013839 | 0.013839 | 0 | 0 | 0.013827 | 0.337133 | 8,510 | 247 | 80 | 34.453441 | 0.83159 | 0.015981 | 0 | 0.080357 | 0 | 0 | 0.119886 | 0.005059 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044643 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b985080d7fa8e77186bd6fbe6fb9bd100a355a6 | 386 | py | Python | lab5/DeanerySystem/day.py | R3zn0w/blue-rapier | 84cdc33e1e327c0a402a4d2e29a8d6f5cda95e9b | [
"MIT"
] | null | null | null | lab5/DeanerySystem/day.py | R3zn0w/blue-rapier | 84cdc33e1e327c0a402a4d2e29a8d6f5cda95e9b | [
"MIT"
] | null | null | null | lab5/DeanerySystem/day.py | R3zn0w/blue-rapier | 84cdc33e1e327c0a402a4d2e29a8d6f5cda95e9b | [
"MIT"
] | null | null | null | from enum import Enum
class Day(Enum):
MON = 1
TUE = 2
WED = 3
THU = 4
FRI = 5
SAT = 6
SUN = 7
def difference(self, day):
d = day.value - self.value
if d > 3:
return d - 7
elif d < -3:
return d + 7
else:
return d
de... | 15.44 | 43 | 0.443005 | 57 | 386 | 3 | 0.526316 | 0.122807 | 0.093567 | 0.105263 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.455959 | 386 | 24 | 44 | 16.083333 | 0.747619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.052632 | 0.789474 | 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 |
1b99a5f82417586adb914171cc9f6ad8536cfe8c | 6,093 | py | Python | Lab01.py | claw0ed/Python3Lab | 80ff28ad3f665deb5790472475ec7f3b3035e27c | [
"BSD-2-Clause"
] | null | null | null | Lab01.py | claw0ed/Python3Lab | 80ff28ad3f665deb5790472475ec7f3b3035e27c | [
"BSD-2-Clause"
] | null | null | null | Lab01.py | claw0ed/Python3Lab | 80ff28ad3f665deb5790472475ec7f3b3035e27c | [
"BSD-2-Clause"
] | null | null | null | #1 print() 를 이용 다음 내용을 출력
from builtins import print
print("* * * **** **** * * /////");
print("* * * * * * * * * * │ o o │");
print("***** * * **** **** * * (│ ^ │)");
print("* * ***** * * * * * │ [_] │");
print("* * * * * * * * ... | 19.160377 | 111 | 0.495487 | 1,012 | 6,093 | 3.001976 | 0.27668 | 0.009875 | 0.008887 | 0.0079 | 0.305464 | 0.244569 | 0.230744 | 0.170836 | 0.155695 | 0.141211 | 0 | 0.096838 | 0.247497 | 6,093 | 317 | 112 | 19.22082 | 0.560305 | 0.240932 | 0 | 0.146465 | 0 | 0 | 0.270921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010101 | 0 | 0.010101 | 0.69697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b9d5a24b68c7415f5ab39b3953667ba3b00dc6c | 4,247 | py | Python | tooling/slack/slacktest.py | cappetta/Toolbox | 43b5d2371dde91ecebcbb9d13d9197e1bbbb9780 | [
"MIT"
] | 21 | 2018-08-06T12:17:12.000Z | 2021-11-16T16:33:52.000Z | tooling/slack/slacktest.py | cappetta/Toolbox | 43b5d2371dde91ecebcbb9d13d9197e1bbbb9780 | [
"MIT"
] | 1 | 2017-11-27T05:35:45.000Z | 2018-09-03T02:45:36.000Z | tooling/slack/slacktest.py | cappetta/Toolbox | 43b5d2371dde91ecebcbb9d13d9197e1bbbb9780 | [
"MIT"
] | 10 | 2018-04-27T14:02:06.000Z | 2021-11-16T09:33:56.000Z | import os, time
from slackclient import SlackClient
from pyslack import SlackClient as slackclient
client = slackclient(os.environ.get('SLACK_BOT_TOKEN'))
BOT_NAME = 'aws_bot'
slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN'))
# starterbot's ID as an environment variable
# BOT_ID = os.environ.get("BOT_ID")
... | 33.976 | 112 | 0.624205 | 527 | 4,247 | 4.880455 | 0.352941 | 0.021773 | 0.021773 | 0.027994 | 0.113142 | 0.113142 | 0.113142 | 0.113142 | 0.080482 | 0.080482 | 0 | 0.0013 | 0.275253 | 4,247 | 125 | 113 | 33.976 | 0.834308 | 0.214504 | 0 | 0.230769 | 0 | 0 | 0.19073 | 0.00689 | 0.012821 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.128205 | 0.038462 | 0 | 0.217949 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1baa7271a97592f065244934ad1cff49750f8e99 | 407 | py | Python | mlfx/nodes/ArgumentsNode.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | 1 | 2020-09-12T00:11:39.000Z | 2020-09-12T00:11:39.000Z | mlfx/nodes/ArgumentsNode.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | 4 | 2020-11-13T19:00:50.000Z | 2022-02-10T02:01:01.000Z | mlfx/nodes/ArgumentsNode.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | null | null | null | from .Node import Node
class ArgumentsNode(Node) :
def __init__(self, parent) :
super().__init__('arguments', parent)
def validate(self) :
if self._attributes :
return False
if self._text and not self._is_cdata : # can only have CDATA
return False
if... | 29.071429 | 68 | 0.599509 | 48 | 407 | 4.8125 | 0.5625 | 0.142857 | 0.112554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331695 | 407 | 14 | 69 | 29.071429 | 0.849265 | 0.093366 | 0 | 0.25 | 0 | 0 | 0.024523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1baddf12ec5cdae35917b81c4c720bb84caa5519 | 576 | py | Python | astropy/utils/compat/numpycompat.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | 2 | 2020-08-25T13:55:00.000Z | 2020-08-25T16:36:03.000Z | astropy/utils/compat/numpycompat.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | 1 | 2016-06-17T15:17:33.000Z | 2016-06-22T18:40:35.000Z | astropy/utils/compat/numpycompat.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is a collection of monkey patches and workarounds for bugs in
earlier versions of Numpy.
"""
from astropy.utils import minversion
__all__ = ['NUMPY_LT_1_17', 'NUMPY_LT_1_18', 'NUMPY_LT_1_19']
# TODO: It might also be nice to have aliases to the... | 33.882353 | 73 | 0.755208 | 100 | 576 | 4.09 | 0.57 | 0.102689 | 0.117359 | 0.139364 | 0.119804 | 0.119804 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.137153 | 576 | 16 | 74 | 36 | 0.7666 | 0.545139 | 0 | 0 | 0 | 0 | 0.262948 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bae7d77edb1230d3ddb51b3f4e02ac9d0d09ff6 | 512 | py | Python | base/scripts/Find-Directories-without-SFV.py | samatjain/dotfiles | 02f08e54ef355e5ac648a6aba8abe32f12133519 | [
"Apache-2.0"
] | null | null | null | base/scripts/Find-Directories-without-SFV.py | samatjain/dotfiles | 02f08e54ef355e5ac648a6aba8abe32f12133519 | [
"Apache-2.0"
] | null | null | null | base/scripts/Find-Directories-without-SFV.py | samatjain/dotfiles | 02f08e54ef355e5ac648a6aba8abe32f12133519 | [
"Apache-2.0"
] | 1 | 2020-02-06T19:26:04.000Z | 2020-02-06T19:26:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import pprint
if len(sys.argv) < 2:
print '''Please provide a top-level path. Usage:
% find-directories-without-sfv.py .
OR
% find-directories-without-sfv.py /somewhere'''
sys.exit(1)
rootPath = sys.argv[1]
for path in os.walk(rootPath):
... | 17.655172 | 52 | 0.621094 | 74 | 512 | 4.297297 | 0.594595 | 0.044025 | 0.138365 | 0.157233 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.253906 | 512 | 28 | 53 | 18.285714 | 0.816754 | 0.082031 | 0 | 0 | 0 | 0 | 0.275641 | 0.132479 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bb2198a94bbe4caef41030d9abe32362d2b3618 | 369 | py | Python | encyclopedia/urls.py | Oliveira-Renato/me50 | 69f4530cb64ace1d21981cf5736f4896c55df825 | [
"MIT"
] | 1 | 2021-08-15T19:22:45.000Z | 2021-08-15T19:22:45.000Z | encyclopedia/urls.py | Oliveira-Renato/me50 | 69f4530cb64ace1d21981cf5736f4896c55df825 | [
"MIT"
] | null | null | null | encyclopedia/urls.py | Oliveira-Renato/me50 | 69f4530cb64ace1d21981cf5736f4896c55df825 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("wiki", views.index, name="index"),
path("wiki/<str:name>", views.page, name="page"),
path("w", views.searchPage, name="searchPage"),
path("wiki/page/new", views.create, name="create"),
p... | 28.384615 | 55 | 0.636856 | 50 | 369 | 4.7 | 0.34 | 0.13617 | 0.119149 | 0.161702 | 0.229787 | 0.229787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151762 | 369 | 12 | 56 | 30.75 | 0.750799 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bb2becb38a697fda55fae2b36215275f6681b04 | 2,227 | py | Python | evaluate_autism_wav2vec.py | HLasse/wav2vec_finetune | 084ab432ba4acbf5ce81267e2791fb36a0b70daa | [
"MIT"
] | 6 | 2021-09-10T08:18:07.000Z | 2022-01-11T16:34:48.000Z | evaluate_autism_wav2vec.py | HLasse/wav2vec_finetune | 084ab432ba4acbf5ce81267e2791fb36a0b70daa | [
"MIT"
] | null | null | null | evaluate_autism_wav2vec.py | HLasse/wav2vec_finetune | 084ab432ba4acbf5ce81267e2791fb36a0b70daa | [
"MIT"
] | 3 | 2021-09-10T09:46:17.000Z | 2021-10-31T08:40:37.000Z | """evaluate model performance
TODO
- Evaluate by window and by participant (rewrite to make windows)
"""
import torch
import torch.nn.functional as F
import torchaudio
from transformers import AutoConfig, Wav2Vec2FeatureExtractor, Wav2Vec2ForSequenceClassification
import numpy as np
import pandas as pd
import os
... | 32.275362 | 96 | 0.771441 | 291 | 2,227 | 5.680412 | 0.38488 | 0.079855 | 0.029038 | 0.041742 | 0.084694 | 0.072595 | 0.042347 | 0.042347 | 0 | 0 | 0 | 0.007139 | 0.119443 | 2,227 | 69 | 97 | 32.275362 | 0.835798 | 0.064212 | 0 | 0 | 0 | 0 | 0.069846 | 0.016859 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.071429 | false | 0 | 0.190476 | 0 | 0.333333 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bb91b0adc046724f4d2ea1e3efe5ffaa370d716 | 5,797 | py | Python | nma_algo_char/anm_en_final_en_corr.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | 1 | 2017-11-01T15:19:10.000Z | 2017-11-01T15:19:10.000Z | nma_algo_char/anm_en_final_en_corr.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | null | null | null | nma_algo_char/anm_en_final_en_corr.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | null | null | null | '''
Created on 14/12/2015
@author: victor
'''
from optparse import OptionParser
from nma_algo_char.common import load_control_json, create_directory,\
pair_parameter_values, parameter_value_to_string, MetropolisMCSimulator,\
get_values_by_hue
import os
from _collections import defaultdict
from nma_algo_char.mo... | 42.007246 | 129 | 0.643609 | 789 | 5,797 | 4.415716 | 0.264892 | 0.053674 | 0.048794 | 0.025832 | 0.33008 | 0.31372 | 0.264351 | 0.208094 | 0.095867 | 0.095867 | 0 | 0.022939 | 0.240469 | 5,797 | 137 | 130 | 42.313869 | 0.76834 | 0.107124 | 0 | 0.098901 | 0 | 0 | 0.062145 | 0.014311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.131868 | null | null | 0.032967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bbd73572229d0ac569d8ac8e30f2776bddcc319 | 1,055 | py | Python | ecat_repl/__init__.py | alessiomargan/Ecat-repl | 55aedb4903ecc5438b0cfb26ce0516061f3edf81 | [
"BSD-3-Clause"
] | null | null | null | ecat_repl/__init__.py | alessiomargan/Ecat-repl | 55aedb4903ecc5438b0cfb26ce0516061f3edf81 | [
"BSD-3-Clause"
] | null | null | null | ecat_repl/__init__.py | alessiomargan/Ecat-repl | 55aedb4903ecc5438b0cfb26ce0516061f3edf81 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ecat_repl
~~~~~~~~~
Try do it right ....
:copyright: © 2019
:license: BSD, see LICENSE for more details.
"""
__version__ = "0.1.dev"
from . base_cmd import (
MasterCmd,
FoeMaster,
FlashCmd,
CtrlCmd,
SdoCmd,
SdoInfo,
)
from . base_io import (
... | 19.181818 | 48 | 0.686256 | 157 | 1,055 | 4.063694 | 0.464968 | 0.208464 | 0.15674 | 0.040752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009926 | 0.236019 | 1,055 | 54 | 49 | 19.537037 | 0.780397 | 0.122275 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bc0d8502eb8f633d3715fb947fd77a8e338bf90 | 3,528 | py | Python | netengine/backends/ssh/openwrt.py | loacker/netengine | b37e55e82eb97c7fffc617873e41793479a90b6d | [
"X11"
] | 1 | 2015-03-10T12:57:52.000Z | 2015-03-10T12:57:52.000Z | netengine/backends/ssh/openwrt.py | loacker/netengine | b37e55e82eb97c7fffc617873e41793479a90b6d | [
"X11"
] | null | null | null | netengine/backends/ssh/openwrt.py | loacker/netengine | b37e55e82eb97c7fffc617873e41793479a90b6d | [
"X11"
] | null | null | null | """
Class to extract information from OpenWRT devices
"""
__all__ = ['OpenWRT']
from netengine.backends.ssh import SSH
class OpenWRT(SSH):
"""
OpenWRT SSH backend
"""
def __str__(self):
""" print a human readable object description """
return u"<SSH (OpenWRT): %s@%s>" % (self.... | 28.224 | 106 | 0.521825 | 380 | 3,528 | 4.776316 | 0.389474 | 0.042424 | 0.02865 | 0.023141 | 0.022039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013835 | 0.344388 | 3,528 | 124 | 107 | 28.451613 | 0.77086 | 0.089853 | 0 | 0.126761 | 0 | 0.014085 | 0.169405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014085 | null | null | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bcbea47d8dbb2a902ac60ba5e71d054477338e6 | 74,434 | py | Python | internal/llrp/generate_param_code.py | adamswsk/device-rfid-llrp | 5e1f5325cda0de6346fcd82888787f51a9862a10 | [
"Apache-2.0"
] | 1 | 2021-05-03T22:24:43.000Z | 2021-05-03T22:24:43.000Z | internal/llrp/generate_param_code.py | adamswsk/device-rfid-llrp | 5e1f5325cda0de6346fcd82888787f51a9862a10 | [
"Apache-2.0"
] | 32 | 2021-05-28T19:15:10.000Z | 2022-03-28T15:16:40.000Z | internal/llrp/generate_param_code.py | adamswsk/device-rfid-llrp | 5e1f5325cda0de6346fcd82888787f51a9862a10 | [
"Apache-2.0"
] | 12 | 2021-06-04T18:58:54.000Z | 2022-02-07T16:12:25.000Z | #
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
# This python script reads a YAML file
# to generate Go code that unpacks binary LLRP messages
# so that they can be marshaled into JSON.
#
# Why bother doing it this way? In short, because other ways weren't good;
# it's much easier to... | 38.487073 | 123 | 0.532243 | 9,806 | 74,434 | 3.952376 | 0.080359 | 0.022448 | 0.014088 | 0.007586 | 0.379106 | 0.295766 | 0.244472 | 0.219934 | 0.189282 | 0.171272 | 0 | 0.008731 | 0.335263 | 74,434 | 1,933 | 124 | 38.506984 | 0.774571 | 0.118185 | 0 | 0.339532 | 1 | 0.008953 | 0.216266 | 0.044118 | 0 | 0 | 0.000803 | 0.000517 | 0.006887 | 1 | 0.070937 | false | 0.000689 | 0.011708 | 0.006887 | 0.203168 | 0.002755 | 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 |
1bcf32e6c76426a56f598849759d0dc00f1e6486 | 805 | py | Python | hknweb/markdown_pages/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 20 | 2018-01-07T02:15:43.000Z | 2021-09-15T04:25:50.000Z | hknweb/markdown_pages/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 292 | 2018-02-01T18:31:18.000Z | 2022-03-30T22:15:08.000Z | hknweb/markdown_pages/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 85 | 2017-11-13T06:33:13.000Z | 2022-03-30T20:32:55.000Z | # Generated by Django 2.1.5 on 2019-01-24 04:15
from django.db import migrations, models
import markdownx.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MarkdownPage',
fields=[
... | 28.75 | 76 | 0.575155 | 78 | 805 | 5.833333 | 0.653846 | 0.065934 | 0.079121 | 0.105495 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.295652 | 805 | 27 | 77 | 29.814815 | 0.765432 | 0.055901 | 0 | 0 | 1 | 0 | 0.075198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bcfb2b49b483ebcf81204b0e3c7b5f02c502d55 | 2,645 | py | Python | setup.py | pietroalbini/lektor-minify-assets | e5453652c4ddac85d4cdf17eae5dbec70af59162 | [
"MIT"
] | 12 | 2017-06-28T18:44:52.000Z | 2020-11-25T17:31:56.000Z | setup.py | pietroalbini/lektor-minify-assets | e5453652c4ddac85d4cdf17eae5dbec70af59162 | [
"MIT"
] | 3 | 2017-02-23T06:08:02.000Z | 2020-08-19T10:35:16.000Z | setup.py | pietroalbini/lektor-minify-assets | e5453652c4ddac85d4cdf17eae5dbec70af59162 | [
"MIT"
] | null | null | null | # Copyright (c) 2017 Pietro Albini <pietro@pietroalbini.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | 32.256098 | 79 | 0.697164 | 342 | 2,645 | 5.347953 | 0.54386 | 0.048114 | 0.022963 | 0.018589 | 0.02515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005273 | 0.211342 | 2,645 | 81 | 80 | 32.654321 | 0.871524 | 0.651418 | 0 | 0.096774 | 0 | 0 | 0.454749 | 0.054749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 |
1bd480d2cb39dfa86df9896d3e4c9a21468ca648 | 11,206 | py | Python | google-cloud-sdk/lib/surface/service_management/deploy.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2017-11-29T18:52:27.000Z | 2017-11-29T18:52:27.000Z | google-cloud-sdk/.install/.backup/lib/surface/service_management/deploy.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/.install/.backup/lib/surface/service_management/deploy.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:09:01.000Z | 2020-07-25T12:09:01.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 39.737589 | 80 | 0.686686 | 1,305 | 11,206 | 5.763218 | 0.267433 | 0.060497 | 0.033905 | 0.015955 | 0.234809 | 0.188539 | 0.147587 | 0.119532 | 0.119532 | 0.106236 | 0 | 0.003174 | 0.240853 | 11,206 | 281 | 81 | 39.879004 | 0.880922 | 0.133143 | 0 | 0.261905 | 0 | 0 | 0.264372 | 0.011356 | 0 | 0 | 0 | 0.003559 | 0 | 0 | null | null | 0.005952 | 0.047619 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bd53f35651f0f4cad2d821853a58767e68ccc08 | 10,660 | py | Python | python_constantcontact/cc.py | riltsken/python-constant-contact | 520ae49713cf2841c018381ec9b9cf9ef903e922 | [
"MIT"
] | 1 | 2015-07-13T18:46:23.000Z | 2015-07-13T18:46:23.000Z | python_constantcontact/cc.py | riltsken/python-constant-contact | 520ae49713cf2841c018381ec9b9cf9ef903e922 | [
"MIT"
] | null | null | null | python_constantcontact/cc.py | riltsken/python-constant-contact | 520ae49713cf2841c018381ec9b9cf9ef903e922 | [
"MIT"
] | 2 | 2015-01-15T21:40:18.000Z | 2019-05-14T16:59:04.000Z | import urllib2
import copy
import httplib
#open source lib http://code.google.com/p/httplib2/
#used for setting credentials,establishing connection,pulling xml
import httplib2
#open source lib http://code.google.com/p/feedparser/
#used for parsing the xml and returning it in a usable format
import feedparser as fp
c... | 36.258503 | 79 | 0.631895 | 1,306 | 10,660 | 4.986217 | 0.222818 | 0.023649 | 0.027641 | 0.013974 | 0.287009 | 0.227733 | 0.19226 | 0.179975 | 0.148342 | 0.134214 | 0 | 0.006775 | 0.252251 | 10,660 | 293 | 80 | 36.382253 | 0.810187 | 0.134991 | 0 | 0.208122 | 0 | 0 | 0.112926 | 0.033322 | 0 | 0 | 0 | 0.003413 | 0 | 1 | 0.101523 | false | 0.050761 | 0.025381 | 0.005076 | 0.284264 | 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 |
1bd5ba1ea3f31d890864283ceb47eba9fe2d3354 | 1,854 | py | Python | tests/sources/test_all_source.py | singhgarima/enlightenme | 788ed3d90079a668bd499098619a5efdfe219088 | [
"MIT"
] | null | null | null | tests/sources/test_all_source.py | singhgarima/enlightenme | 788ed3d90079a668bd499098619a5efdfe219088 | [
"MIT"
] | null | null | null | tests/sources/test_all_source.py | singhgarima/enlightenme | 788ed3d90079a668bd499098619a5efdfe219088 | [
"MIT"
] | null | null | null | from unittest import TestCase, mock
from enlightenme.sources import Source
from enlightenme.sources.all_source import AllSource
from tests.fixtures import create_news
class TestAllSource(TestCase):
def setUp(self):
self._source = AllSource(reddit_client_id=123, reddit_client_secret=234)
def test_ini... | 37.08 | 100 | 0.712513 | 230 | 1,854 | 5.491304 | 0.26087 | 0.106888 | 0.07601 | 0.095012 | 0.258116 | 0.120348 | 0.120348 | 0 | 0 | 0 | 0 | 0.013789 | 0.178533 | 1,854 | 49 | 101 | 37.836735 | 0.815496 | 0 | 0 | 0 | 0 | 0 | 0.125674 | 0.072816 | 0 | 0 | 0 | 0 | 0.459459 | 1 | 0.162162 | false | 0 | 0.108108 | 0 | 0.297297 | 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 |
59efea078c22f5dcd11762e140d11cb394df19ba | 470 | py | Python | ricerca_app/migrations/0013_didatticatestiregolamento_testo_regdid_url.py | UniversitaDellaCalabria/storage.portale | 763f7a06c0f1a797a02cd410672702b6fd47f5db | [
"Apache-2.0"
] | null | null | null | ricerca_app/migrations/0013_didatticatestiregolamento_testo_regdid_url.py | UniversitaDellaCalabria/storage.portale | 763f7a06c0f1a797a02cd410672702b6fd47f5db | [
"Apache-2.0"
] | 3 | 2021-04-29T10:57:26.000Z | 2021-07-27T13:57:04.000Z | ricerca_app/migrations/0013_didatticatestiregolamento_testo_regdid_url.py | UniversitaDellaCalabria/Ricerca | b46157d3182d1c59cff4d36cc63b9e89f2f320c9 | [
"Apache-2.0"
] | 2 | 2021-01-07T09:39:06.000Z | 2021-01-07T09:44:54.000Z | # Generated by Django 3.2 on 2021-07-27 10:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ricerca_app', '0012_auto_20210721_0510'),
]
operations = [
migrations.AddField(
model_name='didatticatestiregolamento',
... | 24.736842 | 105 | 0.648936 | 53 | 470 | 5.54717 | 0.773585 | 0.07483 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095506 | 0.242553 | 470 | 18 | 106 | 26.111111 | 0.730337 | 0.091489 | 0 | 0 | 1 | 0 | 0.214118 | 0.112941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59f367fd5ce697980edab5d06a0bef0c2077fe80 | 2,005 | py | Python | wastebot.py | DynTylluan/wastebot | 02cda13d1dcd1b02751348ec1cdfb52b890464c4 | [
"MIT"
] | null | null | null | wastebot.py | DynTylluan/wastebot | 02cda13d1dcd1b02751348ec1cdfb52b890464c4 | [
"MIT"
] | null | null | null | wastebot.py | DynTylluan/wastebot | 02cda13d1dcd1b02751348ec1cdfb52b890464c4 | [
"MIT"
] | null | null | null | from collections import namedtuple
from datetime import datetime
from os import environ
import asyncio
import discord
import re
client = discord.Client()
trailhead = discord.Game("%help", start=datetime(1970, 1, 1, 0, 0, 0))
Command = namedtuple("Command", ["name", "desc", "usage", "regex", "action"])
commands = {}... | 30.378788 | 191 | 0.664339 | 291 | 2,005 | 4.542955 | 0.312715 | 0.036309 | 0.068079 | 0.086233 | 0.206505 | 0.155068 | 0.111952 | 0.111952 | 0.111952 | 0.111952 | 0 | 0.010976 | 0.136658 | 2,005 | 66 | 192 | 30.378788 | 0.752744 | 0.021945 | 0 | 0.136364 | 0 | 0.022727 | 0.320041 | 0.026585 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.159091 | 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 |
59f5de2d6ab2dc19ee9b7f2c28474f63e5a63a0b | 491 | py | Python | idm_lp/models/ignored_members.py | cloode/mxrtemgxd | 7826c664c68ab4a36430aa9ad852c1b8d1b3e136 | [
"MIT"
] | 1 | 2021-11-20T08:00:38.000Z | 2021-11-20T08:00:38.000Z | idm_lp/models/ignored_members.py | Dafu508/Lppp | 4f4750e38d4a3b2fa842f07635fabd08200b3531 | [
"MIT"
] | 2 | 2021-04-06T18:28:57.000Z | 2021-06-02T03:48:26.000Z | idm_lp/models/ignored_members.py | Dafu508/Lppp | 4f4750e38d4a3b2fa842f07635fabd08200b3531 | [
"MIT"
] | 1 | 2021-02-08T08:04:35.000Z | 2021-02-08T08:04:35.000Z | from tortoise import Model, fields
class IgnoredMember(Model):
member_id = fields.IntField()
chat_id = fields.IntField()
class Meta:
table = "ignored"
unique_together = (('member_id', 'chat_id',),)
class MutedMember(IgnoredMember):
class Meta:
table = "muted"
unique_... | 20.458333 | 54 | 0.645621 | 53 | 491 | 5.792453 | 0.396226 | 0.104235 | 0.156352 | 0.123779 | 0.390879 | 0.214984 | 0.214984 | 0 | 0 | 0 | 0 | 0 | 0.234216 | 491 | 23 | 55 | 21.347826 | 0.816489 | 0 | 0 | 0.333333 | 0 | 0 | 0.118126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
59f671e695c2fb5fbc7fe4cd893a594c3c0b8114 | 1,154 | py | Python | eppy/tests/geometry_tests/test_area_zone.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 116 | 2015-04-07T13:58:34.000Z | 2022-02-23T15:52:35.000Z | eppy/tests/geometry_tests/test_area_zone.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 324 | 2015-01-01T04:10:46.000Z | 2022-03-16T16:28:13.000Z | eppy/tests/geometry_tests/test_area_zone.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 65 | 2015-07-14T21:57:02.000Z | 2022-02-14T08:39:02.000Z | # Copyright (c) 2012 Tuan Tran
# =======================================================================
# Distributed under the MIT License.
# (See accompanying file LICENSE or copy at
# http://opensource.org/licenses/MIT)
# =======================================================================
""" pytest for are... | 36.0625 | 78 | 0.540728 | 159 | 1,154 | 3.767296 | 0.440252 | 0.050083 | 0.040067 | 0.040067 | 0.066778 | 0.046745 | 0.045075 | 0 | 0 | 0 | 0 | 0.062433 | 0.194974 | 1,154 | 31 | 79 | 37.225806 | 0.582347 | 0.410745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
59f934787a5f448f1381d9b6cfcf1b0ef514624c | 4,117 | py | Python | cloudrunner_server/api/tests/test_scheduler.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | 2 | 2016-03-31T08:45:29.000Z | 2021-04-28T15:18:45.000Z | cloudrunner_server/api/tests/test_scheduler.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | cloudrunner_server/api/tests/test_scheduler.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# /*******************************************************
# * Copyright (C) 2013-2014 CloudRunner.io <info@cloudrunner.io>
# *
# * Proprietary and confidential
# * This file is part of CloudRunner Server.
# *
# * CloudRunner S... | 35.491379 | 78 | 0.514695 | 431 | 4,117 | 4.767981 | 0.264501 | 0.046715 | 0.092457 | 0.058394 | 0.62871 | 0.614599 | 0.581995 | 0.553285 | 0.53236 | 0.53236 | 0 | 0.026492 | 0.312363 | 4,117 | 115 | 79 | 35.8 | 0.6994 | 0.109789 | 0 | 0.586207 | 0 | 0.011494 | 0.256775 | 0.041883 | 0 | 0 | 0 | 0 | 0.114943 | 0 | null | null | 0 | 0.034483 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94026f33ab79b44a6518c602a3403d4b2294fd9b | 1,230 | py | Python | setup.py | joemphilips/doc2vec_wikipedia | 62b10b9077ba5f923252e45c82551f1bb8b83200 | [
"MIT"
] | null | null | null | setup.py | joemphilips/doc2vec_wikipedia | 62b10b9077ba5f923252e45c82551f1bb8b83200 | [
"MIT"
] | null | null | null | setup.py | joemphilips/doc2vec_wikipedia | 62b10b9077ba5f923252e45c82551f1bb8b83200 | [
"MIT"
] | null | null | null | #!usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
# setup.py はpythonパッケージのメタデータ等を記述するpythonのスクリプトです。
setup(
name='', # パッケージ名
description='', # パッケージの1行での説明
version='0.0.1',
url='https://github.com/',
author='',
author_email='',
license='MIT', # ライセンス... | 24.6 | 63 | 0.643089 | 108 | 1,230 | 7.203704 | 0.796296 | 0.046272 | 0.064267 | 0.066838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011387 | 0.214634 | 1,230 | 49 | 64 | 25.102041 | 0.793996 | 0.469106 | 0 | 0 | 0 | 0 | 0.244833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9408cf4c17998f1104d6f4b102a0d5c0c95aa76f | 338 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0009_remove_emailmarketingconfiguration_sailthru_activation_template.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0009_remove_emailmarketingconfiguration_sailthru_activation_template.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/email_marketing/migrations/0009_remove_emailmarketingconfiguration_sailthru_activation_template.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('email_marketing', '0008_auto_20170809_0539'),
]
operations = [
migrations.RemoveField(
model_name='emailmarketingconfiguration',
name='sailthru_activation_template',... | 21.125 | 55 | 0.642012 | 27 | 338 | 7.777778 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064257 | 0.263314 | 338 | 15 | 56 | 22.533333 | 0.779116 | 0 | 0 | 0 | 0 | 0 | 0.275148 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
94099665e93eb7993be5fec8581d7744cf8e3280 | 22,075 | py | Python | arrcat.py | cmoestl/heliocats | 5e2b054990319e14859669561a361cc0c7ca4295 | [
"MIT"
] | 4 | 2020-10-03T07:39:56.000Z | 2022-03-28T12:39:54.000Z | arrcat.py | cmoestl/heliocats | 5e2b054990319e14859669561a361cc0c7ca4295 | [
"MIT"
] | 2 | 2021-01-08T13:21:54.000Z | 2022-03-12T00:11:50.000Z | arrcat.py | cmoestl/heliocats | 5e2b054990319e14859669561a361cc0c7ca4295 | [
"MIT"
] | 4 | 2020-04-09T13:49:50.000Z | 2020-06-18T04:36:07.000Z | #!/usr/bin/env python
# coding: utf-8
# ## arrcat
#
# makes the HELCATS HI ARRIVAL catalog
#
# Authors: C. Möstl, IWF Graz, Austria, D. Barnes, J. A. Davies, R. A. Harrison, RAL Space, UK.
# twitter @chrisoutofspace, part of https://github.com/cmoestl/heliocats
#
# current version ARRCAT 2.0, released 2020 May 13, ... | 34.984152 | 4,485 | 0.738075 | 3,609 | 22,075 | 4.348019 | 0.193682 | 0.02804 | 0.024853 | 0.021986 | 0.430793 | 0.350306 | 0.300535 | 0.260961 | 0.201313 | 0.16314 | 0 | 0.028842 | 0.114156 | 22,075 | 630 | 4,486 | 35.039683 | 0.773613 | 0.164938 | 0 | 0.145985 | 0 | 0.014599 | 0.405321 | 0.051085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.138686 | 0 | 0.138686 | 0.10219 | 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 |
940a29810b6548eede33724b6ff1f47a4cf22585 | 636 | py | Python | Construct String from Binary Tree.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Construct String from Binary Tree.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Construct String from Binary Tree.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def tree2str(self, t: TreeNode) -> str:
if t is None:
return ""
... | 30.285714 | 74 | 0.487421 | 81 | 636 | 3.777778 | 0.296296 | 0.078431 | 0.117647 | 0.127451 | 0.336601 | 0.336601 | 0.336601 | 0.336601 | 0.215686 | 0 | 0 | 0.012315 | 0.361635 | 636 | 20 | 75 | 31.8 | 0.741379 | 0.281447 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
940b6e33fe351f8df05d2e98ae3405bc814edf78 | 2,194 | py | Python | django/django/views/templates/technical_500.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | 1 | 2021-05-16T03:20:23.000Z | 2021-05-16T03:20:23.000Z | django/django/views/templates/technical_500.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | 4 | 2021-03-30T14:06:09.000Z | 2021-09-22T19:26:31.000Z | venv/lib/python3.8/site-packages/django/views/templates/technical_500.txt.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | null | null | null | BBBBBBB BBBBBBBBBBBBBB BBBBBBBBBB BBBBBBB XX BBBBB
BBBBBBB BBBBBBBBBBBBBBB BBB BBBBBBBBB BBBBBBB BBBBBBBBB
BB BBBBBBB
XXXXXXX XXXXXXX
XXXXXXX XXXX BBBBB
XXXXXX XXXXXXXX
XXXXXX XXXXXXXXXXX
XXXXXX XXXXXXXX
XXXXXX XXXXX
XXXXXX XXXXX FFFFFFFF
XXXXXXXXX XXXXXXXXXXXXX
FFFFFF
XXXXXXXXX XXXXXXXXXXX
FFFFFF
BB BBBBBBBBBBBBB... | 33.242424 | 177 | 0.856427 | 272 | 2,194 | 6.908088 | 0.213235 | 0.015966 | 0.015966 | 0.019159 | 0.094199 | 0.051091 | 0.051091 | 0 | 0 | 0 | 0 | 0 | 0.143573 | 2,194 | 65 | 178 | 33.753846 | 1 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
940c9f2d9ce917ba9286bc4628622adab01d4a6d | 9,518 | py | Python | Preprocess_Task.py | nishant-FL/custom_function | 4c98a9a263f2cd2bd943946287b2a9d0d700f675 | [
"MIT"
] | null | null | null | Preprocess_Task.py | nishant-FL/custom_function | 4c98a9a263f2cd2bd943946287b2a9d0d700f675 | [
"MIT"
] | 1 | 2019-10-22T12:56:27.000Z | 2019-10-22T20:28:21.000Z | Preprocess_Task.py | nishant-FL/custom_function | 4c98a9a263f2cd2bd943946287b2a9d0d700f675 | [
"MIT"
] | 5 | 2019-10-21T13:45:52.000Z | 2019-10-24T14:30:14.000Z | class Preprocess_Task:
def __init__(self):
self.get_script = "---copy script below---\n"
def missing_values_chk(self, data):
"""
column | dtype | missing value count | %
"""
for col in data.columns:
if data[col].isnull().sum()> 0:
... | 35.514925 | 149 | 0.551586 | 1,108 | 9,518 | 4.620036 | 0.222022 | 0.02813 | 0.017582 | 0.024614 | 0.261575 | 0.233835 | 0.17269 | 0.142215 | 0.132057 | 0.09494 | 0 | 0.015425 | 0.31204 | 9,518 | 267 | 150 | 35.64794 | 0.766341 | 0.042341 | 0 | 0.302703 | 0 | 0.027027 | 0.392513 | 0.081294 | 0 | 0 | 0 | 0 | 0.010811 | 1 | 0.064865 | false | 0 | 0.108108 | 0 | 0.183784 | 0.448649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
941487d645c485282054aa63c136e73628540bdf | 16,886 | py | Python | fuel-fabrication/model.kmp1.included/final.output/failure.rate.variation/false_alarm.py | TheDoctorRAB/pyroprocessing_system.model | eb071c557c27fdb5d51616a1dc4fd819f6b83740 | [
"MIT"
] | null | null | null | fuel-fabrication/model.kmp1.included/final.output/failure.rate.variation/false_alarm.py | TheDoctorRAB/pyroprocessing_system.model | eb071c557c27fdb5d51616a1dc4fd819f6b83740 | [
"MIT"
] | null | null | null | fuel-fabrication/model.kmp1.included/final.output/failure.rate.variation/false_alarm.py | TheDoctorRAB/pyroprocessing_system.model | eb071c557c27fdb5d51616a1dc4fd819f6b83740 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 10 16:00:05 2017
@author: Jieun
This is for executing the false alarm probability for each kmp.
"""
# 1/30 days
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
os.chdir(os.getcwd() + "/1000.test.runs.with.kmp1.failure.rate.one.30days")... | 24.57933 | 152 | 0.707983 | 3,220 | 16,886 | 3.302174 | 0.044099 | 0.105332 | 0.059908 | 0.036114 | 0.655506 | 0.476065 | 0.424057 | 0.32907 | 0.286937 | 0.203235 | 0 | 0.096627 | 0.159126 | 16,886 | 686 | 153 | 24.61516 | 0.652229 | 0.265427 | 0 | 0.111801 | 0 | 0 | 0.043918 | 0.025907 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009317 | null | null | 0.059006 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9414bffe3fa3d11745bd43ae08d9df66b59fc1ac | 1,379 | py | Python | sorts/mergeSort.py | MEhlinger/Algorithms-sp15 | a1c2ab4937958bdc3e39388d6e21d95ac9b4b9f3 | [
"MIT"
] | null | null | null | sorts/mergeSort.py | MEhlinger/Algorithms-sp15 | a1c2ab4937958bdc3e39388d6e21d95ac9b4b9f3 | [
"MIT"
] | null | null | null | sorts/mergeSort.py | MEhlinger/Algorithms-sp15 | a1c2ab4937958bdc3e39388d6e21d95ac9b4b9f3 | [
"MIT"
] | null | null | null | # MergeSort in Python 2.7
# By Marshall Ehlinger
# For 2015 Analysis of Algorithms class
# Implemented top-down
import math
def mergeSort(a):
if len(a) <= 1:
return a # if length of the list is 1, it is sorted, and ready to be re-merged
else:
midpoint = len(a) / 2
left = mergeSort(a[:midpoint])
right = mer... | 24.192982 | 123 | 0.640319 | 234 | 1,379 | 3.773504 | 0.423077 | 0.0453 | 0.01359 | 0.038505 | 0.13137 | 0.13137 | 0.043035 | 0.043035 | 0 | 0 | 0 | 0.019571 | 0.2219 | 1,379 | 56 | 124 | 24.625 | 0.803355 | 0.435823 | 0 | 0.351351 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94155469535a96a0f5ebba030ea2882e3e30faa0 | 2,585 | py | Python | win32/scripts/VersionStamp/BrandProject.py | zhanqxun/cv_fish | f78f4f5bdafb070c179efee8b9276719dfaef1d7 | [
"Apache-2.0"
] | 1 | 2017-08-07T14:52:02.000Z | 2017-08-07T14:52:02.000Z | Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py | adzhou/Python27 | a7113b69d54a04cc780143241c2f1fe81939ad3a | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py | adzhou/Python27 | a7113b69d54a04cc780143241c2f1fe81939ad3a | [
"bzip2-1.0.6"
] | 4 | 2021-02-11T03:51:39.000Z | 2021-02-12T05:10:43.000Z | # BrandProject.py
#
# Brand a VSS project with a "build number", then optionally
# stamp DLL/EXE files with version information.
import win32api, os, string, sys
import vssutil
import bulkstamp
def BrandProject(vssProjectName, descFile, stampPath, filesToSubstitute, buildDesc = None, auto=0, bRebrand = 0):... | 31.52439 | 114 | 0.687814 | 356 | 2,585 | 4.97191 | 0.382022 | 0.043503 | 0.023729 | 0.018079 | 0.070057 | 0.024859 | 0 | 0 | 0 | 0 | 0 | 0.009337 | 0.212766 | 2,585 | 81 | 115 | 31.91358 | 0.860442 | 0.129981 | 0 | 0.032258 | 0 | 0 | 0.389995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94158de526d91562a098920e6e1d6890f93571a8 | 496 | py | Python | authors/apps/articles/migrations/0016_auto_20180816_0934.py | andela/ah-backend-spaces- | 58e031a96a6b9555f1a4133cf8cb688c236d3f3b | [
"BSD-3-Clause"
] | 2 | 2018-08-17T15:47:36.000Z | 2018-09-13T13:58:34.000Z | authors/apps/articles/migrations/0016_auto_20180816_0934.py | andela/ah-backend-spaces- | 58e031a96a6b9555f1a4133cf8cb688c236d3f3b | [
"BSD-3-Clause"
] | 35 | 2018-07-24T11:42:53.000Z | 2021-06-10T20:34:41.000Z | authors/apps/articles/migrations/0016_auto_20180816_0934.py | andela/ah-backend-spaces- | 58e031a96a6b9555f1a4133cf8cb688c236d3f3b | [
"BSD-3-Clause"
] | 3 | 2018-07-17T13:05:35.000Z | 2018-09-06T16:03:52.000Z | # Generated by Django 2.0.6 on 2018-08-16 09:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0015_article_author'),
]
operations = [
migrations.AlterField(
model_name='article'... | 24.8 | 129 | 0.647177 | 56 | 496 | 5.642857 | 0.660714 | 0.075949 | 0.088608 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049869 | 0.231855 | 496 | 19 | 130 | 26.105263 | 0.779528 | 0.090726 | 0 | 0 | 1 | 0 | 0.142539 | 0 | 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 |
941ac12213c70e59770049a81b4bc32587fd0a16 | 421 | py | Python | fraud_detection/producer.py | arsalhuda24/credit_card_fraud_detection | 52b45173a74d180771f231fa68eca7fda6a72582 | [
"MIT"
] | 1 | 2021-04-11T09:08:00.000Z | 2021-04-11T09:08:00.000Z | fraud_detection/producer.py | arsalhuda24/credit_card_fraud_detection | 52b45173a74d180771f231fa68eca7fda6a72582 | [
"MIT"
] | null | null | null | fraud_detection/producer.py | arsalhuda24/credit_card_fraud_detection | 52b45173a74d180771f231fa68eca7fda6a72582 | [
"MIT"
] | null | null | null | from time import sleep
from json import dumps
import numpy as np
from kafka import KafkaProducer
producer = KafkaProducer(bootstrap_servers=['localhost:9092'],
value_serializer=lambda x:
dumps(x).encode('utf-8'))
for e in range(1000):
data = {'number' : np.random... | 22.157895 | 62 | 0.622328 | 56 | 421 | 4.642857 | 0.678571 | 0.061538 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.258907 | 421 | 18 | 63 | 23.388889 | 0.788462 | 0.061758 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
941d035b75f14933341e3ea3575f6cfd6854f642 | 1,063 | py | Python | bazu/launch/1_rviz.launch.py | noshluk2/ROS2-Learners-Repository | 2e8982a4f659c99ab90175253c28f1c10a60e31b | [
"MIT"
] | 3 | 2021-11-27T18:18:12.000Z | 2022-01-15T19:32:19.000Z | bazu/launch/1_rviz.launch.py | noshluk2/ROS2-Learners-Repository | 2e8982a4f659c99ab90175253c28f1c10a60e31b | [
"MIT"
] | null | null | null | bazu/launch/1_rviz.launch.py | noshluk2/ROS2-Learners-Repository | 2e8982a4f659c99ab90175253c28f1c10a60e31b | [
"MIT"
] | 5 | 2021-09-02T10:49:46.000Z | 2022-02-22T12:47:17.000Z | import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
package_dir = get_package_share_directory('bazu')
urdf = os.path.join(package_dir,'bazu.urdf')
with open(urdf, 'r') as i... | 29.527778 | 67 | 0.607714 | 107 | 1,063 | 5.747664 | 0.420561 | 0.113821 | 0.092683 | 0.078049 | 0.230894 | 0.230894 | 0.230894 | 0.230894 | 0.230894 | 0.230894 | 0 | 0.003953 | 0.285983 | 1,063 | 36 | 68 | 29.527778 | 0.806324 | 0 | 0 | 0.3 | 1 | 0 | 0.18891 | 0.106203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9422f65b2d9f017e1dcd115128930dc70703d7f6 | 471 | py | Python | Python Project/src/soumadeepPython/GetDistinctCharactersAndTheirCountInAString.py | SoumadeepChoudhury/SoumadeepChoudhury | 2419a64d7c2bde1186b3e60341e6eebeee3c6af0 | [
"MIT"
] | 1 | 2021-08-13T07:04:21.000Z | 2021-08-13T07:04:21.000Z | Python Project/src/soumadeepPython/GetDistinctCharactersAndTheirCountInAString.py | SoumadeepChoudhury/SoumadeepChoudhury | 2419a64d7c2bde1186b3e60341e6eebeee3c6af0 | [
"MIT"
] | null | null | null | Python Project/src/soumadeepPython/GetDistinctCharactersAndTheirCountInAString.py | SoumadeepChoudhury/SoumadeepChoudhury | 2419a64d7c2bde1186b3e60341e6eebeee3c6af0 | [
"MIT"
] | null | null | null | # get distinct characters and their count in a String
string = input("Enter String: ")
c = 0
for i in range(65, 91):
c = 0
for j in range(0, len(string)):
if(string[j] == chr(i)):
c += 1
if c > 0:
print("", chr(i), " is ", c, " times.")
c = 0
for i in range(97, 123):
c = 0... | 22.428571 | 54 | 0.462845 | 79 | 471 | 2.759494 | 0.35443 | 0.055046 | 0.091743 | 0.055046 | 0.66055 | 0.66055 | 0.541284 | 0.541284 | 0.541284 | 0.541284 | 0 | 0.062295 | 0.352442 | 471 | 20 | 55 | 23.55 | 0.652459 | 0.10828 | 0 | 0.823529 | 0 | 0 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
942eed8e0ca18927787ba2ce050aaf49cdf05bd9 | 165 | py | Python | run.py | 0xflotus/sandman2 | 3cae8fd1881b0242336b99b64bebb81071b324b9 | [
"Apache-2.0"
] | 1,899 | 2015-01-04T02:36:31.000Z | 2022-03-31T16:28:36.000Z | run.py | 0xflotus/sandman2 | 3cae8fd1881b0242336b99b64bebb81071b324b9 | [
"Apache-2.0"
] | 251 | 2015-03-18T09:08:55.000Z | 2022-03-21T17:25:13.000Z | run.py | 0xflotus/sandman2 | 3cae8fd1881b0242336b99b64bebb81071b324b9 | [
"Apache-2.0"
] | 238 | 2015-03-18T09:04:20.000Z | 2022-03-27T10:12:53.000Z | from sandman2 import get_app
app = get_app('sqlite+pysqlite:///tests/data/db.sqlite3')
def main():
app.run(debug=True)
if __name__ == '__main__':
main()
| 15 | 57 | 0.672727 | 24 | 165 | 4.208333 | 0.75 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.163636 | 165 | 10 | 58 | 16.5 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.290909 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
9432dd32f966af26c60afe60fb4af7fb1151c5ff | 205 | py | Python | 2015/4a.py | msullivan/advent-of-code | ba4b0c3e229bca0f632d51d18ad72ecddd2405da | [
"MIT"
] | 8 | 2016-12-01T19:41:50.000Z | 2021-12-21T18:50:55.000Z | 2015/4a.py | msullivan/advent-of-code | ba4b0c3e229bca0f632d51d18ad72ecddd2405da | [
"MIT"
] | null | null | null | 2015/4a.py | msullivan/advent-of-code | ba4b0c3e229bca0f632d51d18ad72ecddd2405da | [
"MIT"
] | 3 | 2018-12-23T06:58:47.000Z | 2021-12-20T10:09:15.000Z | #!/usr/bin/env python3
import hashlib
sekrit='bgvyzdsv'
for i in range(1000000000):
s=hashlib.md5((sekrit+str(i)).encode())
if s.hexdigest().startswith("000000"):
print(i)
break
| 17.083333 | 43 | 0.634146 | 28 | 205 | 4.642857 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 0.2 | 205 | 11 | 44 | 18.636364 | 0.682927 | 0.102439 | 0 | 0 | 0 | 0 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94336de0c173641a4cd8ae19f224c8c4c852b032 | 501 | py | Python | app/__init__.py | ednilsonlomazi/AnonymousRepSys-API | 5ccf6ca519d0c3595e6327d5923631fe5b7abd40 | [
"BSD-3-Clause"
] | null | null | null | app/__init__.py | ednilsonlomazi/AnonymousRepSys-API | 5ccf6ca519d0c3595e6327d5923631fe5b7abd40 | [
"BSD-3-Clause"
] | null | null | null | app/__init__.py | ednilsonlomazi/AnonymousRepSys-API | 5ccf6ca519d0c3595e6327d5923631fe5b7abd40 | [
"BSD-3-Clause"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from flask import Flask
app = Flask(__name__)
app.config['SECRET_KEY'] = 'uma-string-muito-segura'
app.config['DEBUG'] = True
engine = create_engine('mysql+pymysql://admdenuncia:adm-... | 25.05 | 93 | 0.796407 | 66 | 501 | 5.878788 | 0.575758 | 0.108247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011136 | 0.103792 | 501 | 19 | 94 | 26.368421 | 0.853007 | 0 | 0 | 0 | 0 | 0 | 0.187625 | 0.157685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
943415b2300847cb56a275a0cf816117e6336242 | 2,207 | py | Python | tests/mockCallbacks.py | sarog/python-insteonplm | dd38b9781167b8fd0bf3d3bf36770aa36bc0275b | [
"MIT"
] | null | null | null | tests/mockCallbacks.py | sarog/python-insteonplm | dd38b9781167b8fd0bf3d3bf36770aa36bc0275b | [
"MIT"
] | null | null | null | tests/mockCallbacks.py | sarog/python-insteonplm | dd38b9781167b8fd0bf3d3bf36770aa36bc0275b | [
"MIT"
] | null | null | null | """Mock callback module to support device and state testing."""
import logging
class MockCallbacks(object):
"""Mock callback class to support device and state testing."""
def __init__(self):
"""Initialize the MockCallbacks Class."""
self.log = logging.getLogger(__name__)
self.callback... | 33.439394 | 76 | 0.625283 | 241 | 2,207 | 5.692946 | 0.236515 | 0.05102 | 0.072157 | 0.104956 | 0.399417 | 0.276968 | 0.080175 | 0.080175 | 0.080175 | 0.080175 | 0 | 0.027726 | 0.264613 | 2,207 | 65 | 77 | 33.953846 | 0.817622 | 0.145446 | 0 | 0 | 0 | 0 | 0.132603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.02439 | 0 | 0.292683 | 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 |
9437112b52b5a4662e2aa0bddb89cc538e82e7c7 | 903 | py | Python | api/lime_comb_api/auth.py | n0npax/lime-comb | 7d8d7ede550a328a9c8c0892d12987f3b06217b5 | [
"MIT"
] | 1 | 2020-03-06T12:09:23.000Z | 2020-03-06T12:09:23.000Z | api/lime_comb_api/auth.py | n0npax/lime-comb | 7d8d7ede550a328a9c8c0892d12987f3b06217b5 | [
"MIT"
] | 2 | 2020-03-06T11:33:17.000Z | 2020-07-25T09:46:16.000Z | api/lime_comb_api/auth.py | n0npax/lime-comb | 7d8d7ede550a328a9c8c0892d12987f3b06217b5 | [
"MIT"
] | 2 | 2020-01-12T10:51:08.000Z | 2020-03-05T20:55:19.000Z | from functools import wraps
import google.oauth2.id_token
from flask import current_app, g, request
from google.auth.transport import requests
from werkzeug.exceptions import Unauthorized
google_requests = requests.Request()
def jwt_validate(f):
@wraps(f)
def decorated_function(*args, **kwargs):
id_... | 29.129032 | 77 | 0.638981 | 111 | 903 | 5.072072 | 0.504505 | 0.062167 | 0.049734 | 0.067496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004539 | 0.267996 | 903 | 30 | 78 | 30.1 | 0.847201 | 0.018826 | 0 | 0 | 0 | 0 | 0.075792 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
943d615222d2011b596b9a51316642041c5f71b0 | 263 | py | Python | setup.py | McClain98/ccds_template | c4eecf7103634b085e3feced9e29a844888d7313 | [
"MIT"
] | null | null | null | setup.py | McClain98/ccds_template | c4eecf7103634b085e3feced9e29a844888d7313 | [
"MIT"
] | null | null | null | setup.py | McClain98/ccds_template | c4eecf7103634b085e3feced9e29a844888d7313 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='This is a template repo for ccds projects with nice published documentation',
author='McClain Thiel',
license='MIT',
)
| 23.909091 | 94 | 0.69962 | 34 | 263 | 5.352941 | 0.852941 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.190114 | 263 | 10 | 95 | 26.3 | 0.840376 | 0 | 0 | 0 | 0 | 0 | 0.376426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
944b0fc00456e873a428264a8404d2a777f6fa2f | 3,083 | py | Python | json_test_confidence_clustering.py | SyedA5688/mmdetection | ae0f3f0f944ed66c6c0f9da26ad9847e916b8bf2 | [
"Apache-2.0"
] | null | null | null | json_test_confidence_clustering.py | SyedA5688/mmdetection | ae0f3f0f944ed66c6c0f9da26ad9847e916b8bf2 | [
"Apache-2.0"
] | null | null | null | json_test_confidence_clustering.py | SyedA5688/mmdetection | ae0f3f0f944ed66c6c0f9da26ad9847e916b8bf2 | [
"Apache-2.0"
] | null | null | null | import json
import numpy as np
from sklearn.cluster import KMeans
"""
This script does clustering on the pseudo annotations predicted by the teacher network. This will find the idea
cutoffs for each class, which are used in other scripts to filter out noisy pseudo labels.
Cutoffs for run 11 epoch 4 autoaug:
{'Glomer... | 48.171875 | 165 | 0.734998 | 415 | 3,083 | 5.289157 | 0.366265 | 0.045103 | 0.053303 | 0.034169 | 0.331663 | 0.276993 | 0.204556 | 0.204556 | 0.178132 | 0.178132 | 0 | 0.085559 | 0.16218 | 3,083 | 63 | 166 | 48.936508 | 0.764228 | 0.095686 | 0 | 0.111111 | 0 | 0 | 0.231618 | 0.032038 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
944e3b54bcdc1efd05a1e65f3cf2a70e268f4cd4 | 410 | py | Python | polls_server/setup.py | alex-pyasetskiy/tordja | 24db6a6f9c816ae89a47c6a7922110cb3a38cfb5 | [
"MIT"
] | null | null | null | polls_server/setup.py | alex-pyasetskiy/tordja | 24db6a6f9c816ae89a47c6a7922110cb3a38cfb5 | [
"MIT"
] | 1 | 2021-03-19T21:51:52.000Z | 2021-03-19T21:51:52.000Z | polls_server/setup.py | alex-pyasetskiy/tordja | 24db6a6f9c816ae89a47c6a7922110cb3a38cfb5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "polls_server.settings")
setup(
name="polls_server",
version="1.0",
author="Alex",
author_email="some@email.com",
description="polls_server",
long_description="polls_server",
packages=find_... | 25.625 | 72 | 0.719512 | 51 | 410 | 5.529412 | 0.686275 | 0.156028 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.14878 | 410 | 16 | 73 | 25.625 | 0.802292 | 0 | 0 | 0 | 0 | 0 | 0.265207 | 0.104623 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.