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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d86a7610b205b3e4cc679d4d420398b2a7ef8963 | 4,872 | py | Python | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | 1 | 2022-01-29T22:24:07.000Z | 2022-01-29T22:24:07.000Z | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | null | null | null | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | null | null | null | # coding: utf-8
import subprocess
import shutil
import sys
import os
class TorMethod(object):
'''tor 代理伺服器製作
:::參數說明:::
torrc_dir: torrc要儲存的位置(必要)
tordata_dir: torrc內DataDirectory的資訊(必要)
__process: tor的process控制器, 可以使用TorMethod.get_process取得
__torname: torrc檔案和資料夾的名稱, 可以使用TorMethod.get_toruuid取... | 36.088889 | 142 | 0.594212 | 535 | 4,872 | 5.127103 | 0.28785 | 0.029165 | 0.034998 | 0.023332 | 0.13416 | 0.118848 | 0.053956 | 0.053956 | 0.026249 | 0 | 0 | 0.002933 | 0.300082 | 4,872 | 135 | 143 | 36.088889 | 0.801466 | 0.129105 | 0 | 0.142857 | 0 | 0.019048 | 0.12503 | 0.011082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.066667 | 0.066667 | 0 | 0.209524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d86e898eaf189c08d400028fbb8d2971795df000 | 5,107 | py | Python | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | import os
import re
import shutil
from ._base import DanubeCloudCommand, CommandOption, CommandError, lcd
class Command(DanubeCloudCommand):
help = 'Generate documentation files displayed in GUI.'
DOC_REPO = 'https://github.com/erigones/esdc-docs.git'
DOC_TMP_DIR = '/var/tmp/esdc-docs'
options = (
... | 44.798246 | 118 | 0.577247 | 658 | 5,107 | 4.305471 | 0.261398 | 0.047653 | 0.034945 | 0.045888 | 0.390046 | 0.298976 | 0.209319 | 0.151783 | 0.11366 | 0.08754 | 0 | 0.006639 | 0.292148 | 5,107 | 113 | 119 | 45.19469 | 0.77704 | 0.049344 | 0 | 0.209302 | 1 | 0 | 0.22608 | 0.00434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034884 | false | 0.011628 | 0.046512 | 0 | 0.162791 | 0 | 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 |
d8723e31987ced651ec6ee7cac0b7d24f592d4fe | 1,332 | py | Python | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | 1 | 2022-03-10T11:34:14.000Z | 2022-03-10T11:34:14.000Z | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
class Log(models.Model):
"""
Model that describe a Log object, it contains information about daily
executions.
"""
execution_time = models.FloatField()
users = models.IntegerField()
lessons = models.IntegerField()
... | 27.75 | 110 | 0.680931 | 170 | 1,332 | 5.164706 | 0.405882 | 0.088838 | 0.077449 | 0.045558 | 0.250569 | 0.189066 | 0.123007 | 0.123007 | 0.123007 | 0.123007 | 0 | 0.004854 | 0.226727 | 1,332 | 47 | 111 | 28.340426 | 0.847573 | 0.201952 | 0 | 0.26087 | 0 | 0 | 0.050968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.130435 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d877c087af72ca345542775e075546a6694a0d12 | 1,422 | py | Python | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from oop_di import ContainerDefinition, Extension
# #############Mailer bounded context###############
class MailerInterface(ABC):
@abstractmethod
def send_mail(self):
...
class Mailer(MailerInterface):
def __init__(self, from_email):
self.from_email... | 22.571429 | 76 | 0.699015 | 145 | 1,422 | 6.613793 | 0.324138 | 0.046924 | 0.040667 | 0.031283 | 0.06048 | 0.06048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 1,422 | 62 | 77 | 22.935484 | 0.807239 | 0.040788 | 0 | 0.117647 | 0 | 0 | 0.098297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.441176 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d881534818a726ed66374fd1b791859515909369 | 2,122 | py | Python | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-03 22:33
from django.db import migrations, models
import django.db.models.deletion
import filer.fields.file
class Migration(migrations.Migration):
initial = True
dependencies = [
('filer', '0012_file_mime_type'),
('cms', '0022_auto_20180620_1551'),
... | 55.842105 | 192 | 0.633836 | 246 | 2,122 | 5.308943 | 0.394309 | 0.084227 | 0.091884 | 0.11026 | 0.29173 | 0.244257 | 0.173047 | 0.173047 | 0.090352 | 0.090352 | 0 | 0.030448 | 0.21065 | 2,122 | 38 | 193 | 55.842105 | 0.749254 | 0.021678 | 0 | 0 | 1 | 0 | 0.207711 | 0.021687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 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 |
d881b477a22ed1f78da11df06776a0e9cf84193c | 302 | py | Python | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | 1 | 2022-01-16T00:33:57.000Z | 2022-01-16T00:33:57.000Z | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | null | null | null | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
root.config(bg='yellow')
l1 = Label(root, text='Hello World!', bg='magenta')
l1.pack(side=LEFT)
b1 = Button(root, text='Click Me Please!', bg='cyan')
b1.pack(side=LEFT)
l2 = Label(root, text='Ta-Da!', bg='green')
l2.pack(side=LEFT)
root.mainloop()
| 18.875 | 54 | 0.629139 | 48 | 302 | 3.958333 | 0.583333 | 0.126316 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.165563 | 302 | 15 | 55 | 20.133333 | 0.730159 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d883b9402b2e431043b91f8f29e4ee4248eaa1ba | 20,375 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 7 | 2021-11-16T04:05:42.000Z | 2022-02-19T21:14:29.000Z | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2022-03-01T05:43:07.000Z | 2022-03-01T05:43:07.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | 34.533898 | 147 | 0.672442 | 2,552 | 20,375 | 5.256661 | 0.174373 | 0.020872 | 0.023481 | 0.022959 | 0.495043 | 0.434141 | 0.405442 | 0.377861 | 0.357585 | 0.349981 | 0 | 0.007179 | 0.200098 | 20,375 | 589 | 148 | 34.59253 | 0.815928 | 0.046822 | 0 | 0.455466 | 0 | 0.020243 | 0.646854 | 0.035431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034413 | false | 0 | 0.012146 | 0.008097 | 0.082996 | 0.002024 | 0 | 0 | 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 |
d884d18fcb8bab9fdae1894792a48243cc8a96d8 | 690 | py | Python | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | import unittest
from app.models import BlogPost
from app import db
class CommentTest(unittest.TestCase):
def setUp(self):
self.new_blog = BlogPost(title='New Blog',blog_post='This is the content')
def tearDown(self):
db.session.delete(self.new_blog)
db.session.commit()
def test_i... | 28.75 | 82 | 0.7 | 96 | 690 | 4.875 | 0.385417 | 0.119658 | 0.141026 | 0.064103 | 0.245727 | 0.145299 | 0.145299 | 0.145299 | 0.145299 | 0 | 0 | 0.001786 | 0.188406 | 690 | 24 | 83 | 28.75 | 0.833929 | 0 | 0 | 0 | 0 | 0 | 0.078148 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.294118 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d885bcf7c2809e705cb09676abf33bf651c041a9 | 603 | py | Python | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 15 20:33:49 2017
@author: roby
"""
#dato un numero n, restituisce le prime n parole più usate
import sys
from collections import Counter
try:
num_words=int(sys.argv[1])
except:
print "usage: nomefile.py numero_parole"
sys.exit(1)
counter... | 22.333333 | 94 | 0.630182 | 91 | 603 | 4.131868 | 0.626374 | 0.095745 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032751 | 0.240464 | 603 | 26 | 95 | 23.192308 | 0.78821 | 0.129353 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d88a2d7db32e6f798da168a5ca1a0ee451bd035f | 3,973 | py | Python | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class JobSimulatorOpts(Model):
"""NOTE: This class is auto generated by the sw... | 27.783217 | 128 | 0.63403 | 500 | 3,973 | 4.756 | 0.146 | 0.04836 | 0.083263 | 0.100925 | 0.571068 | 0.433978 | 0.286796 | 0.200168 | 0.164844 | 0.04037 | 0 | 0.008806 | 0.285427 | 3,973 | 142 | 129 | 27.978873 | 0.828813 | 0.435691 | 0 | 0.24 | 0 | 0 | 0.077957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.18 | 0.1 | 0 | 0.42 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d88b2dca04f46637500ddd52a9ae3a5f2b3f87ce | 43,776 | py | Python | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | null | null | null | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | null | null | null | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | 2 | 2022-01-04T17:04:45.000Z | 2022-02-02T10:17:56.000Z | # Databricks notebook source
# MAGIC %md
# MAGIC **Description** This notebook runs the model analysis pipeline for CCU004-2
# MAGIC
# MAGIC **Project(s)** CCU004-2 - A nationwide deep learning pipeline to predict stroke and COVID-19 death in atrial fibrillation
# MAGIC
# MAGIC **Author(s)** Alex Handy
# MAGIC
# ... | 42.295652 | 297 | 0.689053 | 6,228 | 43,776 | 4.466121 | 0.087508 | 0.035484 | 0.032249 | 0.011001 | 0.516268 | 0.440302 | 0.3762 | 0.336257 | 0.297825 | 0.283696 | 0 | 0.010938 | 0.210595 | 43,776 | 1,034 | 298 | 42.336557 | 0.793964 | 0.075429 | 0 | 0.191667 | 0 | 0 | 0.112787 | 0.012458 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029167 | null | null | 0.118056 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d88dbbafb09f9e5620ebb0c0a2726af886fe10c5 | 25,165 | py | Python | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | # -*- encoding: utf-8 -*-
from openerp.report import report_sxw
import openerp.pooler
class conciliacion_bancaria_c(report_sxw.rml_parse):
ESTADOS = {
'draft':'Borrador',
'proforma':'Pro-Forma',
'posted':'Contabilizado',
'cancel':'Cancelado',
'open... | 32.85248 | 137 | 0.476972 | 2,680 | 25,165 | 4.340672 | 0.08694 | 0.048139 | 0.027078 | 0.039113 | 0.589616 | 0.551105 | 0.534944 | 0.512078 | 0.492908 | 0.484828 | 0 | 0.004472 | 0.395788 | 25,165 | 765 | 138 | 32.895425 | 0.760605 | 0.027657 | 0 | 0.47331 | 0 | 0.001779 | 0.296045 | 0.020287 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.003559 | null | null | 0.001779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d88fd615e27e9bedcbbc112337a612f942bcf04c | 400 | py | Python | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | null | null | null | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | 9 | 2019-08-06T01:57:09.000Z | 2021-09-16T16:04:04.000Z | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-02-26 18:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('images', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | 20 | 48 | 0.6 | 41 | 400 | 5.707317 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071672 | 0.2675 | 400 | 19 | 49 | 21.052632 | 0.726962 | 0.17 | 0 | 0 | 1 | 0 | 0.115502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d894c6184e52a7c8ac071f8f156fcf53e4231961 | 6,277 | py | Python | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | '''
We can use two types of loops in Python, a for loop and a while loop. A for loop iterates over a given sequence(iterator expression)
A while loop repeats as long as a boolean context evaluates to True.
the break statement terminates the loop containing it. Control of the program flows to the statement immediately ... | 33.388298 | 492 | 0.70368 | 1,130 | 6,277 | 3.846903 | 0.326549 | 0.033126 | 0.05153 | 0.061192 | 0.122383 | 0.071774 | 0.045549 | 0.045549 | 0.021164 | 0.021164 | 0 | 0.091636 | 0.18289 | 6,277 | 188 | 493 | 33.388298 | 0.755898 | 0.451968 | 0 | 0.090909 | 0 | 0 | 0.102048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010101 | 0 | 0.010101 | 0.424242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d896b92786c756abe5bfc350a2fe42f3f303203a | 1,322 | py | Python | hashdist/formats/templated_stream.py | krafczyk/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 67 | 2015-01-21T14:16:20.000Z | 2022-03-31T23:21:09.000Z | hashdist/formats/templated_stream.py | dannygriffin000/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 77 | 2015-01-01T00:38:55.000Z | 2020-06-15T22:04:42.000Z | hashdist/formats/templated_stream.py | dannygriffin000/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 20 | 2015-01-22T16:17:49.000Z | 2021-02-11T21:35:25.000Z | """
A simple stream constructor that constructs a Stream by evaluating
parameter substitutions from a dictionary parameters. Finds tokens of the form
\{\{([a-zA-Z_-][\w-]*)\}\}
and replaces {{var}} with the contents of gettattr(parameters, var) in
the new stream.
"""
import re
from StringIO import StringIO
class Te... | 30.045455 | 79 | 0.618003 | 161 | 1,322 | 4.987578 | 0.565217 | 0.044832 | 0.022416 | 0.012453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003181 | 0.286687 | 1,322 | 43 | 80 | 30.744186 | 0.848356 | 0.503782 | 0 | 0 | 0 | 0 | 0.04223 | 0.04223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d899d8df0f282d6997185cd206095a224300208b | 3,483 | py | Python | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 8 | 2018-07-12T11:12:36.000Z | 2021-07-12T13:37:51.000Z | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 3 | 2018-11-13T22:40:12.000Z | 2020-12-11T12:13:46.000Z | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 7 | 2018-07-12T11:12:39.000Z | 2021-03-09T21:52:30.000Z | import filter_env
import rospy
from rl_agent_environment_communication.srv import *
import cv2
from cv_bridge import CvBridge
import gym
import numpy as np
ENV_NAME = 'LunarLanderContinuous-v2'
#ENV_NAME = 'Pendulum-v0'
DEBUG_SERVICES_MODE = False
env = filter_env.makeFilteredEnv(gym.make(ENV_NAME))
#env = gym.wrapp... | 27.210938 | 109 | 0.729543 | 483 | 3,483 | 4.950311 | 0.254658 | 0.060226 | 0.027604 | 0.023839 | 0.168967 | 0.136345 | 0.075282 | 0.075282 | 0.075282 | 0.039314 | 0 | 0.01042 | 0.145851 | 3,483 | 127 | 110 | 27.425197 | 0.793277 | 0.079242 | 0 | 0.139535 | 0 | 0 | 0.176673 | 0.022827 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081395 | null | null | 0.232558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d89b06fcef8d37cf29e8426902af9fd2fae016ee | 807 | py | Python | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | 4 | 2020-05-10T09:20:15.000Z | 2021-03-11T22:59:04.000Z | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | null | null | null | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | 1 | 2020-09-14T02:39:02.000Z | 2020-09-14T02:39:02.000Z | import pyxel
import constants as c
import random
class Gachi:
def __init__(self, x, y):
self.x = x
self.y = y
self.x_side = [-16, 16, 16, 16, 16, 16]
self.y_side = [16, -16, 16, 16, 16, 16, 16, 16, 16, 16]
self.hp = c.gachi_hp
def draw(self):
pyxel.blt(self... | 29.888889 | 96 | 0.519207 | 147 | 807 | 2.748299 | 0.244898 | 0.178218 | 0.178218 | 0.19802 | 0.381188 | 0.35396 | 0.118812 | 0.049505 | 0.049505 | 0 | 0 | 0.192171 | 0.303594 | 807 | 27 | 97 | 29.888889 | 0.52669 | 0 | 0 | 0 | 0 | 0 | 0.011139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0.045455 | 0.409091 | 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 |
d8a04a5bb0fbfb255a9d56aeb1bca04c5479f958 | 302 | py | Python | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 21 | 2019-09-02T20:42:30.000Z | 2021-09-14T09:54:04.000Z | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 2 | 2021-06-02T00:20:39.000Z | 2021-12-13T20:14:30.000Z | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 2 | 2019-09-03T13:55:34.000Z | 2020-12-08T22:09:49.000Z | from scripts.funcs import initiate_db, load_csv_into_db, load_json_into_db
conn, cur = initiate_db("./db/acordaos-download.db")
#years = list(range(1992, 2000))
filename = "./data/api/raw/2018_2019.json"
load_json_into_db(filename, cursor=cur)
#load_csv_into_db(years, cur)
conn.commit()
conn.close()
| 30.2 | 74 | 0.774834 | 51 | 302 | 4.294118 | 0.54902 | 0.109589 | 0.100457 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 0.07947 | 302 | 9 | 75 | 33.555556 | 0.730216 | 0.195364 | 0 | 0 | 0 | 0 | 0.224066 | 0.224066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8a517012e48b5bb958e754dbf1e564082718cef | 2,759 | py | Python | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 289 | 2015-01-01T15:36:55.000Z | 2022-03-27T00:22:27.000Z | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 26 | 2015-01-21T16:34:41.000Z | 2020-08-26T15:12:54.000Z | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 35 | 2015-01-05T12:09:41.000Z | 2022-03-16T09:30:16.000Z | #!/usr/bin/env python
"""Hippy debugger.
Usage: hippydebug.py [debugger_options] ../hippy-c args...
(There are no debugger_options so far.)
"""
import sys, os, signal
import getopt
import subprocess
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from hippy.debugger import Connection,... | 29.042105 | 79 | 0.573759 | 356 | 2,759 | 4.272472 | 0.351124 | 0.035503 | 0.046022 | 0.025641 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.290323 | 2,759 | 94 | 80 | 29.351064 | 0.759959 | 0.031533 | 0 | 0.157895 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065789 | null | null | 0.092105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8a71387fda8430f0022fe54e931176d01f5e1cf | 2,380 | py | Python | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 1 | 2020-04-12T10:08:10.000Z | 2020-04-12T10:08:10.000Z | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:09:45.000Z | 2022-03-08T21:09:57.000Z | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import threading
import time
from pitmMcastOperations import pitmMcast
from pitmLogHandler import pitmLogHandler
from gpiotools2 import gpiotools2
from pitmCfg import pitmCfg
class pitmButton:
"""
pitmButton manages the toggling of mode switches.
These switches m... | 27.674419 | 95 | 0.62521 | 251 | 2,380 | 5.7251 | 0.462151 | 0.019485 | 0.016701 | 0.025052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.285294 | 2,380 | 85 | 96 | 28 | 0.840682 | 0.006723 | 0 | 0.037037 | 0 | 0 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.148148 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8a8be7176c225f7e17fbe31e29722d7b21628c6 | 1,167 | py | Python | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | """
All available event actions.
"""
from __future__ import print_function
from django.conf import settings
from evennia.utils import logger
from muddery.utils.exception import MudderyError
from muddery.utils.utils import classes_in_path
from muddery.events.base_event_action import BaseEventAction
class EventAction... | 22.882353 | 85 | 0.608398 | 141 | 1,167 | 4.879433 | 0.390071 | 0.079942 | 0.049419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29563 | 1,167 | 50 | 86 | 23.34 | 0.836983 | 0.143959 | 0 | 0 | 0 | 0 | 0.037486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.26087 | 0 | 0.565217 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8a9231416df4329b68705f67027a39e5c572589 | 3,401 | py | Python | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: ttbarzp.ipynb (unless otherwise specified).
__all__ = ['get_elijah_ttbarzp_cs', 'get_manuel_ttbarzp_cs', 'import47Ddata', 'get47Dfeatures']
# Cell
import numpy as np
import tensorflow as tf
# Cell
def get_elijah_ttbarzp_cs():
r"""
Contains cross section information... | 41.987654 | 121 | 0.614525 | 540 | 3,401 | 3.792593 | 0.32037 | 0.026367 | 0.029297 | 0.031738 | 0.129883 | 0.0625 | 0.047852 | 0.047852 | 0 | 0 | 0 | 0.112132 | 0.231697 | 3,401 | 81 | 122 | 41.987654 | 0.671642 | 0.426051 | 0 | 0 | 1 | 0 | 0.306178 | 0.022963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.315789 | 0.026316 | 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 |
d8ae73d38d5c3ddf758f8b307b86f0cea7f183a9 | 444 | py | Python | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 12 | 2021-10-15T11:48:12.000Z | 2022-03-24T07:31:43.000Z | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 2 | 2021-12-29T16:31:05.000Z | 2021-12-30T00:50:40.000Z | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | null | null | null | import typing as t
__all__ = ["Cell", "ListObject", ]
class Cell(t.NamedTuple):
"""Field data representation for html template"""
value: t.Any
url: t.Tuple[str, t.Dict[str, t.Union[str, int]]]
is_safe: bool = False
class ListObject(t.NamedTuple):
rows: t.List[t.List[Cell]]
has_next: bool
... | 21.142857 | 53 | 0.650901 | 68 | 444 | 4.102941 | 0.558824 | 0.096774 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209459 | 444 | 20 | 54 | 22.2 | 0.794872 | 0.096847 | 0 | 0 | 0 | 0 | 0.035443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8b1ac767220107dcae2af420dd45336ec49a8d3 | 9,548 | py | Python | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ ... | 36.723077 | 94 | 0.506912 | 934 | 9,548 | 5.008565 | 0.307281 | 0.04425 | 0.010688 | 0.019239 | 0.252886 | 0.207567 | 0.149637 | 0.121419 | 0.106883 | 0.089354 | 0 | 0.002506 | 0.247801 | 9,548 | 259 | 95 | 36.864865 | 0.648844 | 0.529849 | 0 | 0.216867 | 0 | 0 | 0.055986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204819 | false | 0 | 0.060241 | 0 | 0.361446 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8bd9a8ceac50742b31415693499379e4a5d5377 | 8,540 | py | Python | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
BtagPerformanceESProducer_TTBARWPBTAGCSVL = cms.ESProducer("BtagPerformanceESProducer",
# this is what it makes available
ComponentName = cms.string('TTBARWPBTAGCSVL'),
# this is where it gets the payload from
PayloadName =... | 57.315436 | 89 | 0.709133 | 741 | 8,540 | 8.031039 | 0.106613 | 0.095278 | 0.134095 | 0.14821 | 0.719039 | 0.633339 | 0.633339 | 0.633339 | 0.633339 | 0.633339 | 0 | 0.0063 | 0.219321 | 8,540 | 148 | 90 | 57.702703 | 0.886306 | 0.286885 | 0 | 0.226415 | 0 | 0 | 0.379063 | 0.325054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009434 | 0 | 0.009434 | 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 |
d8c3cd712d592f39d12428d51a6c41a7fc38afb8 | 9,316 | py | Python | qurkexp/join/pair-results.py | marcua/qurk_experiments | 453c207ff50e730aefb6e1118e0f93e33babdb0b | [
"BSD-3-Clause"
] | 1 | 2015-09-30T00:09:06.000Z | 2015-09-30T00:09:06.000Z | qurkexp/join/pair-results.py | marcua/qurk_experiments | 453c207ff50e730aefb6e1118e0f93e33babdb0b | [
"BSD-3-Clause"
] | null | null | null | qurkexp/join/pair-results.py | marcua/qurk_experiments | 453c207ff50e730aefb6e1118e0f93e33babdb0b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys, os
ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__)))
sys.path.append(ROOT)
os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings'
from django.core.management import setup_environ
from django.conf import settings
from qurkexp.join.models import *
from q... | 46.348259 | 167 | 0.584908 | 1,387 | 9,316 | 3.794521 | 0.129056 | 0.057002 | 0.076002 | 0.080752 | 0.545886 | 0.480144 | 0.424093 | 0.380581 | 0.375261 | 0.362721 | 0 | 0.061132 | 0.264277 | 9,316 | 200 | 168 | 46.58 | 0.706741 | 0.484006 | 0 | 0.29661 | 0 | 0.008475 | 0.077429 | 0.023759 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008475 | 0.059322 | null | null | 0.059322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8c54062ff8343ff9ddf5caf6e861fe863f75af6 | 8,057 | py | Python | plasmapy/utils/tests/test_checks.py | ludoro/PlasmaPy | 69712cb40b8b588400301edfd6925d41d2f13eac | [
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 1 | 2020-04-28T23:04:41.000Z | 2020-04-28T23:04:41.000Z | plasmapy/utils/tests/test_checks.py | ludoro/PlasmaPy | 69712cb40b8b588400301edfd6925d41d2f13eac | [
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | plasmapy/utils/tests/test_checks.py | ludoro/PlasmaPy | 69712cb40b8b588400301edfd6925d41d2f13eac | [
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | """Tests for methods relating to quantities."""
import numpy as np
from astropy import units as u
import pytest
from ...constants import c
from ..checks import (
_check_quantity, _check_relativistic, check_relativistic,
check_quantity
)
# (value, units, error)
quantity_error_examples_default = [
# excep... | 26.767442 | 79 | 0.655827 | 1,183 | 8,057 | 4.19273 | 0.099746 | 0.05746 | 0.052419 | 0.058065 | 0.775 | 0.758871 | 0.691935 | 0.665121 | 0.623589 | 0.575202 | 0 | 0.019467 | 0.203053 | 8,057 | 300 | 80 | 26.856667 | 0.752998 | 0.068884 | 0 | 0.557143 | 0 | 0 | 0.092209 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 1 | 0.152381 | false | 0 | 0.02381 | 0.061905 | 0.238095 | 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 |
d8d163fba6f3d79bbb87bf34a4ae8f44106e768f | 324 | py | Python | Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py | youngqqcn/QBlockChainNotes | 85122049024dc5555705bf016312491a51966621 | [
"MIT"
] | 24 | 2018-11-01T03:36:43.000Z | 2022-03-28T08:20:30.000Z | Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py | songning4/QBlockChainNotes | d65ede073f5a20f728f41cc6850409693820cdb1 | [
"MIT"
] | 57 | 2019-12-04T08:26:47.000Z | 2022-03-08T07:35:15.000Z | Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py | youngqqcn/QBlockChainNotes | 85122049024dc5555705bf016312491a51966621 | [
"MIT"
] | 11 | 2019-01-04T08:41:57.000Z | 2022-03-16T03:51:36.000Z | #!coding:utf8
#author:yqq
#date:2020/8/14 0014 19:26
#description:
import requests
def main():
url = 'http://htdf2020-test01.orientwalt.cn:1317/block_detail/1009408'
r = requests.get(url=url)
r.encoding = 'utf8'
print(r.text)
pass
if __name__ == '__main__':
ma... | 12.96 | 75 | 0.595679 | 42 | 324 | 4.380952 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142259 | 0.262346 | 324 | 25 | 76 | 12.96 | 0.627615 | 0.182099 | 0 | 0 | 0 | 0 | 0.310924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.222222 | 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 |
d8d4111b5c5d9efbe753fdccc4f3bae97104b8fb | 401 | py | Python | test_project/test_project/settings_pytest.py | mpasternak/django-reciprocity | 2bffe1ae6025675ae96bb9420e1f69cf48b414c6 | [
"MIT"
] | 1 | 2019-12-09T11:23:51.000Z | 2019-12-09T11:23:51.000Z | test_project/test_project/settings_pytest.py | mpasternak/django-reciprocity | 2bffe1ae6025675ae96bb9420e1f69cf48b414c6 | [
"MIT"
] | 7 | 2019-03-01T18:13:40.000Z | 2022-02-12T14:44:51.000Z | test_project/test_project/settings_pytest.py | mpasternak/django-reciprocity | 2bffe1ae6025675ae96bb9420e1f69cf48b414c6 | [
"MIT"
] | null | null | null | # Settings for testing with included docker-compose and pytest
from .settings import * # noqa
# Subscribe from remote selenium container to docker-compose nginx container
NGINX_PUSH_STREAM_PUB_HOST = "localhost"
NGINX_PUSH_STREAM_PUB_PORT = "9080"
# Subscribe from local TravisCI machine to docker-compose nginx cont... | 33.416667 | 76 | 0.820449 | 57 | 401 | 5.491228 | 0.54386 | 0.115016 | 0.191693 | 0.127796 | 0.28115 | 0.28115 | 0.28115 | 0.28115 | 0 | 0 | 0 | 0.017143 | 0.127182 | 401 | 11 | 77 | 36.454545 | 0.877143 | 0.528678 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8d857f5c61e30e7fbb6c701c98c28a407e889a3 | 2,184 | py | Python | UnitGenerServer.py | SachithS/UnitGener | 165912afd050e6bc20ac988291c3311e4d351c8f | [
"MIT"
] | null | null | null | UnitGenerServer.py | SachithS/UnitGener | 165912afd050e6bc20ac988291c3311e4d351c8f | [
"MIT"
] | null | null | null | UnitGenerServer.py | SachithS/UnitGener | 165912afd050e6bc20ac988291c3311e4d351c8f | [
"MIT"
] | null | null | null | """
UnitGenerCore.py - Server of the UnitGener
This file is responsible for creating the routes and the server of the UnitGener core module.
Will create all the needed routes with params and initiate the server.
@author Sachith Senarathne
@version 1.0
@maintainer Sachith Senarathne
@copyright ... | 28.736842 | 96 | 0.742216 | 288 | 2,184 | 5.402778 | 0.440972 | 0.032134 | 0.014139 | 0.025707 | 0.088689 | 0.03856 | 0 | 0 | 0 | 0 | 0 | 0.012686 | 0.169872 | 2,184 | 75 | 97 | 29.12 | 0.84556 | 0.023352 | 0 | 0 | 0 | 0 | 0.050663 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0 | null | null | 0.023256 | 0.186047 | null | null | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8d8d2b359e3e55295ef066e6f3edd2c7fb3f2d5 | 288 | py | Python | setup.py | Califrais/lights | cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d | [
"MIT"
] | 6 | 2021-01-15T14:23:33.000Z | 2022-02-01T12:25:24.000Z | setup.py | Califrais/lights | cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d | [
"MIT"
] | 11 | 2020-12-18T13:16:34.000Z | 2021-11-02T08:27:02.000Z | setup.py | Califrais/lights | cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d | [
"MIT"
] | 1 | 2021-08-12T23:07:07.000Z | 2021-08-12T23:07:07.000Z | from setuptools import setup
setup(
name='lights',
version='0.1',
author="Van-Tuan Nguyen",
description="ligths is a generalized joint model for high-dimensional multivariate longitudinal data and censored durations",
url="https://github.com/Califrais/lights",
) | 28.8 | 129 | 0.71875 | 36 | 288 | 5.75 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.173611 | 288 | 10 | 130 | 28.8 | 0.861345 | 0 | 0 | 0 | 0 | 0 | 0.584775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8da595c175dc5992171e47a8fd68be6e3fb96a1 | 6,909 | py | Python | pycg/machinery/imports.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 121 | 2020-12-16T20:31:37.000Z | 2022-03-21T20:32:43.000Z | pycg/machinery/imports.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 24 | 2021-03-13T00:04:00.000Z | 2022-03-21T17:28:11.000Z | pycg/machinery/imports.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 19 | 2021-03-23T10:58:47.000Z | 2022-03-24T19:46:50.000Z | #
# Copyright (c) 2020 Vitalis Salis.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Vers... | 31.262443 | 90 | 0.625561 | 887 | 6,909 | 4.678692 | 0.251409 | 0.031807 | 0.039759 | 0.025301 | 0.134217 | 0.086506 | 0.056627 | 0.045301 | 0.026988 | 0.026988 | 0 | 0.003439 | 0.284412 | 6,909 | 220 | 91 | 31.404545 | 0.835963 | 0.179766 | 0 | 0.126761 | 0 | 0 | 0.047153 | 0 | 0 | 0 | 0 | 0.004545 | 0 | 1 | 0.161972 | false | 0.007042 | 0.288732 | 0.042254 | 0.619718 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8e3d77e68c95fabda4facfab3e43eb49416a652 | 923 | py | Python | mit_d3m/db.py | micahjsmith/mit-d3m | a8138b2cc6329545bf3204f47cb39fe8faf7a44f | [
"MIT"
] | 6 | 2018-11-26T09:48:49.000Z | 2019-06-15T15:49:00.000Z | mit_d3m/db.py | micahjsmith/mit-d3m | a8138b2cc6329545bf3204f47cb39fe8faf7a44f | [
"MIT"
] | 12 | 2019-01-21T19:07:33.000Z | 2020-05-24T19:06:37.000Z | mit_d3m/db.py | micahjsmith/mit-d3m | a8138b2cc6329545bf3204f47cb39fe8faf7a44f | [
"MIT"
] | 6 | 2018-11-26T09:48:52.000Z | 2020-02-20T11:46:54.000Z | # -*- coding: utf-8 -*-
import getpass
import json
import logging
from pymongo import MongoClient
LOGGER = logging.getLogger(__name__)
def get_db(database=None, config=None, **kwargs):
if config:
with open(config, 'r') as f:
config = json.load(f)
else:
config = kwargs
host ... | 23.075 | 78 | 0.633803 | 109 | 923 | 5.293578 | 0.477064 | 0.093588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.245937 | 923 | 39 | 79 | 23.666667 | 0.820402 | 0.022752 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.178571 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8e3de05ad69c6353ea7726191b1fe77d3b073d2 | 53,019 | py | Python | src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | 3 | 2020-06-10T08:21:31.000Z | 2020-06-23T18:33:16.000Z | src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | null | null | null | src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | 2 | 2019-12-30T05:48:30.000Z | 2020-02-12T16:24:16.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import math
import tempfile
import numpy as np
import subprocess as sub_proc
#Plotting stuff below
from matplotlib import rc
import matplotlib.pyplot as plt
from matplotlib import ticker
SHOW_ON_MAKE = False
#Useful constants
sqrtThree = np.sqrt(3.0)
twoTh... | 35.607119 | 178 | 0.679304 | 8,104 | 53,019 | 4.270854 | 0.08465 | 0.038832 | 0.019387 | 0.025541 | 0.662708 | 0.615007 | 0.570454 | 0.541389 | 0.524689 | 0.471382 | 0 | 0.055805 | 0.152681 | 53,019 | 1,488 | 179 | 35.631048 | 0.714629 | 0.096833 | 0 | 0.496575 | 0 | 0.000856 | 0.15687 | 0.021867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006849 | null | null | 0.034247 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8f1098b74f0861cbf64404f75ae544f49b9969a | 1,617 | py | Python | src/products/migrations/0006_ShippableFullName.py | denkasyanov/education-backend | c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5 | [
"MIT"
] | 151 | 2020-04-21T09:58:57.000Z | 2021-09-12T09:01:21.000Z | src/products/migrations/0006_ShippableFullName.py | tlgtaa/education-backend | 86f8af315f9cff2c1fd19406899d593fc0852124 | [
"MIT"
] | 163 | 2020-05-29T20:52:00.000Z | 2021-09-11T12:44:56.000Z | src/products/migrations/0006_ShippableFullName.py | boochamoocha/education-backend | c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a | [
"MIT"
] | 39 | 2020-04-21T12:28:16.000Z | 2021-09-12T15:33:47.000Z | # Generated by Django 2.2.7 on 2019-11-15 21:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0005_ClickMeeetingRoomURL'),
]
operations = [
migrations.AddField(
model_name='course',
name='full_name'... | 39.439024 | 177 | 0.622758 | 198 | 1,617 | 5.005051 | 0.348485 | 0.045409 | 0.100908 | 0.095863 | 0.643794 | 0.587286 | 0.558022 | 0.489405 | 0.489405 | 0.306761 | 0 | 0.0285 | 0.262214 | 1,617 | 40 | 178 | 40.425 | 0.792121 | 0.027829 | 0 | 0.617647 | 1 | 0 | 0.291083 | 0.015924 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8f21d41b8c07b30108c551d5f9b8476610f53e3 | 2,286 | py | Python | convert_xml_to_xls.py | CharlesBuy/pyxmlspreadsheet | 9ac2064c5c44a3800c3ff8892292d12fbd57d27b | [
"MIT"
] | null | null | null | convert_xml_to_xls.py | CharlesBuy/pyxmlspreadsheet | 9ac2064c5c44a3800c3ff8892292d12fbd57d27b | [
"MIT"
] | null | null | null | convert_xml_to_xls.py | CharlesBuy/pyxmlspreadsheet | 9ac2064c5c44a3800c3ff8892292d12fbd57d27b | [
"MIT"
] | null | null | null | #
# - Very simple code to convert from office spreadsheet to xls
#
# Sneldev.com
#
import sys
import xml.etree.ElementTree as ET
import xlwt
from dateutil.parser import parse
class xml_workbook():
#hard code a tag here
_tag_prefix = "{urn:schemas-microsoft-com:office:spreadsheet}"
def _wt(self, key):
return... | 26.275862 | 76 | 0.701225 | 367 | 2,286 | 4.133515 | 0.316076 | 0.023731 | 0.042848 | 0.031641 | 0.063283 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004678 | 0.158355 | 2,286 | 86 | 77 | 26.581395 | 0.783784 | 0.08049 | 0 | 0 | 0 | 0 | 0.103448 | 0.032088 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8ff6bd51bd1471d74da2d3d069253e4211178d6 | 861 | py | Python | AutoRecon-main/autorecon/default-plugins/nmap-oracle.py | Nano-Techx/nano-tool | 6907cbaa3251ba9e47ab634b6e1a656002b3672b | [
"Apache-2.0"
] | null | null | null | AutoRecon-main/autorecon/default-plugins/nmap-oracle.py | Nano-Techx/nano-tool | 6907cbaa3251ba9e47ab634b6e1a656002b3672b | [
"Apache-2.0"
] | null | null | null | AutoRecon-main/autorecon/default-plugins/nmap-oracle.py | Nano-Techx/nano-tool | 6907cbaa3251ba9e47ab634b6e1a656002b3672b | [
"Apache-2.0"
] | null | null | null | from autorecon.plugins import ServiceScan
class NmapOracle(ServiceScan):
def __init__(self):
super().__init__()
self.name = "Nmap Oracle"
self.tags = ['default', 'safe', 'databases']
def configure(self):
self.match_service_name('^oracle')
def manual(self, service, plugin_was_run):
service.add_manual_co... | 47.833333 | 266 | 0.727062 | 123 | 861 | 4.845528 | 0.455285 | 0.080537 | 0.120805 | 0.050336 | 0.375839 | 0.315436 | 0.251678 | 0.251678 | 0.127517 | 0 | 0 | 0 | 0.10453 | 861 | 17 | 267 | 50.647059 | 0.773022 | 0 | 0 | 0 | 0 | 0.166667 | 0.586527 | 0.310105 | 0 | 0 | 0 | 0 | 0 | 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 |
2b01580378afa92e53e9be55b04e4282dd5ebf24 | 2,128 | py | Python | sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | 1 | 2021-10-02T20:05:59.000Z | 2021-10-02T20:05:59.000Z | sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | null | null | null | sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py | TomasJohansson/sweden_crs_transformations_4python | d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04 | [
"MIT"
] | null | null | null | """
| Copyright (c) Tomas Johansson , http://www.programmerare.com
| The code in this library is licensed with MIT.
| The library is based on the C#.NET library 'sweden_crs_transformations_4net' (https://github.com/TomasJohansson/sweden_crs_transformations_4net)
| which in turn is based on 'MightyLittleGeodesy' (https... | 60.8 | 146 | 0.795113 | 230 | 2,128 | 7 | 0.356522 | 0.080745 | 0.134161 | 0.074534 | 0.284472 | 0.10559 | 0.10559 | 0.073292 | 0 | 0 | 0 | 0.015873 | 0.141447 | 2,128 | 34 | 147 | 62.588235 | 0.864806 | 0.037124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | 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 |
2b066e4df5230c4aa951723634c68a3d9f727def | 1,430 | py | Python | vibromaf/signal/spectrum.py | hofbi/vibromaf | 7678042d18fa3b4ab006283bdbd1b1cc6d84e822 | [
"MIT"
] | 1 | 2022-03-11T19:56:59.000Z | 2022-03-11T19:56:59.000Z | vibromaf/signal/spectrum.py | hofbi/vibromaf | 7678042d18fa3b4ab006283bdbd1b1cc6d84e822 | [
"MIT"
] | null | null | null | vibromaf/signal/spectrum.py | hofbi/vibromaf | 7678042d18fa3b4ab006283bdbd1b1cc6d84e822 | [
"MIT"
] | null | null | null | """Spectrum module"""
import numpy as np
from scipy.stats import norm
def pow2db(power: np.array) -> np.array:
"""
Convert power to decibels
https://de.mathworks.com/help/signal/ref/pow2db.html
"""
return 10.0 * np.log10(power)
def db2pow(decibel: np.array) -> np.array:
"""
Convert deci... | 27.5 | 93 | 0.678322 | 196 | 1,430 | 4.882653 | 0.341837 | 0.095089 | 0.047022 | 0.073145 | 0.287356 | 0.265413 | 0.211076 | 0.177638 | 0.087774 | 0 | 0 | 0.025795 | 0.186713 | 1,430 | 51 | 94 | 28.039216 | 0.797077 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b0823806306e95de80b37510219b6b55f6cacc5 | 1,484 | py | Python | src/condor_tests/ornithology/io.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 217 | 2015-01-08T04:49:42.000Z | 2022-03-27T10:11:58.000Z | src/condor_tests/ornithology/io.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 185 | 2015-05-03T13:26:31.000Z | 2022-03-28T03:08:59.000Z | src/condor_tests/ornithology/io.py | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 133 | 2015-02-11T09:17:45.000Z | 2022-03-31T07:28:54.000Z | # Copyright 2019 HTCondor Team, Computer Sciences Department,
# University of Wisconsin-Madison, WI.
#
# 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/LICE... | 29.68 | 74 | 0.703504 | 210 | 1,484 | 4.938095 | 0.547619 | 0.057859 | 0.025072 | 0.030858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010239 | 0.210243 | 1,484 | 49 | 75 | 30.285714 | 0.874573 | 0.679919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b121fd3a533e1e023e1b1b4e531b0bbc5c02d6c | 621 | py | Python | main.py | m-zakeri/ADAFEST | d13f73682aecded34b4e8fa203435e56dd7a280a | [
"MIT"
] | 2 | 2022-01-04T14:47:35.000Z | 2022-02-23T07:14:11.000Z | main.py | m-zakeri/ADAFEST | d13f73682aecded34b4e8fa203435e56dd7a280a | [
"MIT"
] | 1 | 2021-03-20T07:25:30.000Z | 2021-03-20T07:25:30.000Z | main.py | m-zakeri/ADAFEST | d13f73682aecded34b4e8fa203435e56dd7a280a | [
"MIT"
] | 1 | 2022-02-23T07:14:13.000Z | 2022-02-23T07:14:13.000Z | """
The main module of DAFEST project.
ADAFEST is an abbreviation: 'A Data-Driven Approach to Estimating / Evaluating Software Testability'
The full version of source code will be available
as soon as the relevant paper(s) are published.
"""
class Main():
"""Welcome to project ADAFEST
This file contains t... | 20.7 | 101 | 0.648953 | 78 | 621 | 5.038462 | 0.653846 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256039 | 621 | 29 | 102 | 21.413793 | 0.850649 | 0.571659 | 0 | 0 | 0 | 0 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2b143c83842d129d2bd45478b75903d5f38b5a19 | 2,652 | py | Python | src/gruenbeck/requests/__init__.py | xancoder/gruenbeck | f6d6e8a27156d56017227a5ed3b79e22eacd8cda | [
"MIT"
] | null | null | null | src/gruenbeck/requests/__init__.py | xancoder/gruenbeck | f6d6e8a27156d56017227a5ed3b79e22eacd8cda | [
"MIT"
] | null | null | null | src/gruenbeck/requests/__init__.py | xancoder/gruenbeck | f6d6e8a27156d56017227a5ed3b79e22eacd8cda | [
"MIT"
] | null | null | null | import random
import xml.etree.ElementTree
import requests
def get_data(host, parameters):
result_data = {}
url = f'http://{host}/mux_http'
request_id = random.randint(4000, 6000)
payload_header = f'id={request_id}&show='
data = '|'.join(parameters)
payload = f'{payload_header}{data}~'
... | 47.357143 | 120 | 0.519608 | 345 | 2,652 | 3.802899 | 0.269565 | 0.021341 | 0.032012 | 0.224085 | 0.424543 | 0.424543 | 0.424543 | 0.424543 | 0.424543 | 0.396341 | 0 | 0.029929 | 0.206259 | 2,652 | 55 | 121 | 48.218182 | 0.593349 | 0 | 0 | 0 | 0 | 0 | 0.368401 | 0.029035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.116279 | 0.023256 | 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 |
2b1fa39d20f7750128e2a06b8ef41f905c26ad90 | 4,000 | py | Python | scripts/run_scripts/main.py | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 10 | 2019-07-30T18:52:55.000Z | 2021-02-08T07:22:33.000Z | scripts/run_scripts/main.py | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 28 | 2019-04-16T21:15:34.000Z | 2021-02-08T20:16:44.000Z | scripts/run_scripts/main.py | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 2 | 2019-05-08T17:30:01.000Z | 2019-06-27T16:12:15.000Z | from git import Repo
import subprocess
import os, shutil
# I use this later to lazily generate an error with a message
class CustomError(Exception):
pass
repo_path = "../../"
r = Repo(repo_path)
repo_heads = r.heads # or it's alias: r.branches
repo_heads_names = [h.name for h in repo_heads]
#kokkos_src = '/Users... | 32.258065 | 150 | 0.6525 | 569 | 4,000 | 4.383128 | 0.240773 | 0.038492 | 0.044106 | 0.017642 | 0.303929 | 0.251002 | 0.186047 | 0.165998 | 0.138733 | 0.138733 | 0 | 0.001278 | 0.2175 | 4,000 | 123 | 151 | 32.520325 | 0.795527 | 0.2665 | 0 | 0.064516 | 1 | 0 | 0.109655 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.032258 | false | 0.016129 | 0.048387 | 0 | 0.096774 | 0.112903 | 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 |
2b221e9fcd75b4225d8486366160ca6b79866358 | 566 | py | Python | misago/misago/socialauth/admin/tests/test_providers_list.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/socialauth/admin/tests/test_providers_list.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/socialauth/admin/tests/test_providers_list.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from django.urls import reverse
admin_link = reverse("misago:admin:settings:socialauth:index")
def test_providers_list_renders(admin_client):
response = admin_client.get(admin_link)
assert response.status_code == 200
def test_providers_list_renders_with_active_provider(admin_client, provider):
respons... | 28.3 | 88 | 0.805654 | 76 | 566 | 5.618421 | 0.355263 | 0.154567 | 0.112412 | 0.140515 | 0.653396 | 0.590164 | 0.590164 | 0.590164 | 0.590164 | 0.590164 | 0 | 0.018072 | 0.120141 | 566 | 19 | 89 | 29.789474 | 0.839357 | 0 | 0 | 0.545455 | 0 | 0 | 0.067138 | 0.067138 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b2a2cb2f442f0c61a738971056437e441c211fd | 340 | py | Python | project_name/urls.py | hotbaby/django-project-skeleton | 41ee89fa96e0df26157d5aea92ce9bcf731c0e13 | [
"MIT"
] | 1 | 2019-01-11T10:10:43.000Z | 2019-01-11T10:10:43.000Z | project_name/urls.py | hotbaby/django-project-skeleton | 41ee89fa96e0df26157d5aea92ce9bcf731c0e13 | [
"MIT"
] | 3 | 2018-12-18T12:15:28.000Z | 2020-06-05T19:38:46.000Z | project_name/urls.py | hotbaby/django-project-skeleton | 41ee89fa96e0df26157d5aea92ce9bcf731c0e13 | [
"MIT"
] | null | null | null | """{{ project_name }} URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
"""
# Django imports
from django.conf.urls import include, url
urlpatterns = [
# Examples:
# url(r'^blog/', include('blog.urls', na... | 26.153846 | 77 | 0.694118 | 45 | 340 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010381 | 0.15 | 340 | 12 | 78 | 28.333333 | 0.802768 | 0.758824 | 0 | 0 | 0 | 0 | 0 | 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 |
2b32f528d435bacb92f58da33b3b9a36bf562ce4 | 449 | py | Python | Problema 2/Problema2.py | ItaloCcosccoAlvis/ADA-UNSA---Lab2 | 00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9 | [
"MIT"
] | null | null | null | Problema 2/Problema2.py | ItaloCcosccoAlvis/ADA-UNSA---Lab2 | 00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9 | [
"MIT"
] | null | null | null | Problema 2/Problema2.py | ItaloCcosccoAlvis/ADA-UNSA---Lab2 | 00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9 | [
"MIT"
] | 1 | 2021-11-01T17:22:48.000Z | 2021-11-01T17:22:48.000Z | # Problema 2
# Generar una arreglo invertido de n números y después buscar un elemento
def generateList(size):
return list(range(size,0,-1))
def searchInvertArray(array, element):
for i in range(0,len(array)):
if array[i] == element:
return True
return False
# Casos de pru... | 24.944444 | 74 | 0.681514 | 59 | 449 | 5.186441 | 0.694915 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0.22049 | 449 | 18 | 75 | 24.944444 | 0.828571 | 0.218263 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.454545 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b3da381c58b4f82260a14be2bde2c3527be2594 | 442 | py | Python | src/rmi/bibliotheque.py | e-yuzo/distributed-systems-for-fun | 54e605265a4d78656aba815184b869b96227d3a9 | [
"Apache-2.0"
] | null | null | null | src/rmi/bibliotheque.py | e-yuzo/distributed-systems-for-fun | 54e605265a4d78656aba815184b869b96227d3a9 | [
"Apache-2.0"
] | null | null | null | src/rmi/bibliotheque.py | e-yuzo/distributed-systems-for-fun | 54e605265a4d78656aba815184b869b96227d3a9 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import Pyro4
@Pyro4.expose
class Bibliotheque(object):
books = []
def __init__(self):
self.books = []
def add(self, book):
self.books.append(book)
print("added")
def rm(self, book):
for b in self.books:
if b.title... | 19.217391 | 37 | 0.561086 | 54 | 442 | 4.425926 | 0.518519 | 0.188285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.325792 | 442 | 23 | 38 | 19.217391 | 0.795302 | 0 | 0 | 0 | 0 | 0 | 0.027088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b3e182cdb9374aefd88508287e3f0812c0864ba | 634 | py | Python | onepanman_api/migrations/0014_auto_20200319_1740.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | null | null | null | onepanman_api/migrations/0014_auto_20200319_1740.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | 12 | 2020-03-24T18:09:30.000Z | 2022-03-12T00:15:07.000Z | onepanman_api/migrations/0014_auto_20200319_1740.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-03-19 08:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('onepanman_api', '0013_auto_20200319_1714'),
]
operations = [
migrations.AlterField(
model_name='problem',
name='rul... | 25.36 | 141 | 0.570978 | 61 | 634 | 5.803279 | 0.754098 | 0.118644 | 0.141243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 0.290221 | 634 | 24 | 142 | 26.416667 | 0.715556 | 0.072555 | 0 | 0.277778 | 1 | 0 | 0.226962 | 0.039249 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 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 |
2b4181e01e4e874885f0067383123bf864197817 | 7,231 | py | Python | cinderlib/tests/unit/objects/test_snapshot.py | Akrog/cinderlib | 6481cd9a34744f80bdba130fe9089f1b8b7cb327 | [
"Apache-2.0"
] | 15 | 2018-01-04T13:46:59.000Z | 2020-07-06T13:27:57.000Z | cinderlib/tests/unit/objects/test_snapshot.py | Akrog/cinderlib | 6481cd9a34744f80bdba130fe9089f1b8b7cb327 | [
"Apache-2.0"
] | 12 | 2018-06-13T10:57:55.000Z | 2019-04-04T09:31:44.000Z | cinderlib/tests/unit/objects/test_snapshot.py | Akrog/cinderlib | 6481cd9a34744f80bdba130fe9089f1b8b7cb327 | [
"Apache-2.0"
] | 7 | 2018-03-12T22:41:30.000Z | 2019-01-17T23:16:40.000Z | # Copyright (c) 2018, Red Hat, 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 requir... | 47.261438 | 79 | 0.696584 | 935 | 7,231 | 5.136898 | 0.168984 | 0.074953 | 0.079117 | 0.062461 | 0.550281 | 0.47512 | 0.394337 | 0.320841 | 0.287945 | 0.27004 | 0 | 0.005383 | 0.203568 | 7,231 | 152 | 80 | 47.572368 | 0.828616 | 0.083529 | 0 | 0.254098 | 0 | 0 | 0.029794 | 0.006352 | 0 | 0 | 0 | 0 | 0.491803 | 1 | 0.098361 | false | 0 | 0.032787 | 0 | 0.139344 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
2b4db1ded88b7c952c097270d8ab5f711e96a0de | 627 | py | Python | python/tvm/tensor_graph/testing/datasets/mnist.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 22 | 2022-03-18T07:29:31.000Z | 2022-03-23T14:54:32.000Z | python/tvm/tensor_graph/testing/datasets/mnist.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | null | null | null | python/tvm/tensor_graph/testing/datasets/mnist.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 2 | 2022-03-18T08:26:34.000Z | 2022-03-20T06:02:48.000Z | import torch
import torchvision
from torchvision import transforms
def load_mnist_dataset(train_batch_size, test_batch_size=1):
train_set = torchvision.datasets.MNIST(".", train=True, transform=transforms.Compose([transforms.ToTensor()]), download=True)
test_set = torchvision.datasets.MNIST(".", train=False, ... | 52.25 | 129 | 0.795853 | 82 | 627 | 5.841463 | 0.341463 | 0.112735 | 0.058455 | 0.075157 | 0.584551 | 0.23382 | 0.23382 | 0 | 0 | 0 | 0 | 0.001757 | 0.092504 | 627 | 11 | 130 | 57 | 0.84007 | 0 | 0 | 0 | 0 | 0 | 0.00319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
2b53d1c33b0ce215b092396a108e1d3388123180 | 6,028 | py | Python | MLE.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | MLE.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | MLE.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 21 18:22:32 2018
@author: 79127
"""
import numpy as np
from scipy.optimize import minimize
import math
import pandas as pd
minimize?
def LL(params, data):
'''
params is a ndarray, [mean, variance, skew, kurt]
'''
mean = params[0]
sig... | 24.806584 | 144 | 0.532349 | 1,035 | 6,028 | 3.063768 | 0.143961 | 0.033113 | 0.020183 | 0.024283 | 0.626616 | 0.548723 | 0.503627 | 0.48029 | 0.48029 | 0.466099 | 0 | 0.121057 | 0.253152 | 6,028 | 243 | 145 | 24.806584 | 0.583296 | 0.034837 | 0 | 0.52027 | 0 | 0 | 0.019485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b554d39cace94bec033a5b3f6828f64cc59bedf | 450 | py | Python | setup.py | Nathaniel-Rodriguez/reservoirlib | 367261d17fa762375ae40b4cc2ffab1de2113858 | [
"MIT"
] | 4 | 2018-07-01T20:17:08.000Z | 2020-04-19T06:56:43.000Z | setup.py | Nathaniel-Rodriguez/reservoirlib | 367261d17fa762375ae40b4cc2ffab1de2113858 | [
"MIT"
] | null | null | null | setup.py | Nathaniel-Rodriguez/reservoirlib | 367261d17fa762375ae40b4cc2ffab1de2113858 | [
"MIT"
] | 5 | 2019-08-20T02:04:54.000Z | 2021-08-16T22:11:38.000Z | from setuptools import setup
setup(name='reservoirlib',
version='0.1',
description='Python 3 library that provides utilities for creating and'
' training reservoir computers.',
author='Nathaniel Rodriguez',
packages=['reservoirlib'],
url='https://github.com/Nathaniel-Rod... | 30 | 77 | 0.633333 | 44 | 450 | 6.409091 | 0.886364 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008955 | 0.255556 | 450 | 14 | 78 | 32.142857 | 0.832836 | 0 | 0 | 0 | 0 | 0 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b59f33e04abb7e7a0a838142a38b316dd787aec | 2,349 | py | Python | Python/Deep Learning/Krish Naik/How to Select how many hidden layer and neurons in a neural network.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Deep Learning/Krish Naik/How to Select how many hidden layer and neurons in a neural network.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Deep Learning/Krish Naik/How to Select how many hidden layer and neurons in a neural network.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | # todo: How to Select how many hidden layer and neurons in a neural network
# Importing the libraries
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, Activation
# Importing the dataset
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:, 3:13].values
y = dataset.ilo... | 30.506494 | 92 | 0.747126 | 340 | 2,349 | 4.973529 | 0.382353 | 0.03903 | 0.030751 | 0.026611 | 0.10408 | 0.049675 | 0 | 0 | 0 | 0 | 0 | 0.021782 | 0.14006 | 2,349 | 76 | 93 | 30.907895 | 0.815347 | 0.108983 | 0 | 0.038462 | 0 | 0 | 0.029257 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.019231 | false | 0 | 0.192308 | 0 | 0.230769 | 0.096154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2b604002fb5b796426d2078ad7992b9e321f4415 | 804 | py | Python | A3C/agent.py | gungui98/deeprl-a3c-ai2thor | 5a2699f0a4bc5fe8cd54b0f38b898e023d163e29 | [
"MIT"
] | 1 | 2020-12-14T13:11:24.000Z | 2020-12-14T13:11:24.000Z | A3C/agent.py | gungui98/deeprl-a3c-ai2thor | 5a2699f0a4bc5fe8cd54b0f38b898e023d163e29 | [
"MIT"
] | 13 | 2020-01-28T22:42:44.000Z | 2022-03-11T23:47:10.000Z | A3C/agent.py | gungui98/deeprl-a3c-ai2thor | 5a2699f0a4bc5fe8cd54b0f38b898e023d163e29 | [
"MIT"
] | 2 | 2019-06-26T05:03:12.000Z | 2021-03-29T08:26:07.000Z | import numpy as np
from keras.optimizers import RMSprop
class Agent:
""" Agent Generic Class
"""
def __init__(self, inp_dim, out_dim, lr, tau = 0.001):
self.inp_dim = inp_dim
self.out_dim = out_dim
self.tau = tau
self.rms_optimizer = RMSprop(lr=lr, epsilon=0.1, rho=0.99)
... | 28.714286 | 87 | 0.599502 | 122 | 804 | 3.836066 | 0.45082 | 0.074786 | 0.064103 | 0.064103 | 0.106838 | 0.106838 | 0.106838 | 0.106838 | 0 | 0 | 0 | 0.02735 | 0.272388 | 804 | 27 | 88 | 29.777778 | 0.77265 | 0.108209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b6092497777272f3c9eff71d04f360c6510a763 | 12,676 | py | Python | genestack_client/scripts/genestack_user_setup.py | genestack/python-client | 083eb0508dc99c7575ba7f115595f2535f007583 | [
"MIT"
] | 2 | 2017-08-30T22:32:59.000Z | 2021-07-20T10:08:23.000Z | genestack_client/scripts/genestack_user_setup.py | genestack/python-client | 083eb0508dc99c7575ba7f115595f2535f007583 | [
"MIT"
] | 58 | 2015-10-19T08:36:00.000Z | 2020-12-07T13:48:17.000Z | genestack_client/scripts/genestack_user_setup.py | genestack/python-client | 083eb0508dc99c7575ba7f115595f2535f007583 | [
"MIT"
] | 6 | 2015-10-21T21:43:45.000Z | 2021-01-06T20:33:53.000Z | #!python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import input
from builtins import *
import os
impor... | 31.376238 | 108 | 0.620069 | 1,535 | 12,676 | 4.991531 | 0.170033 | 0.023493 | 0.010572 | 0.014096 | 0.32746 | 0.283738 | 0.23597 | 0.209997 | 0.192247 | 0.180762 | 0 | 0.001316 | 0.28053 | 12,676 | 403 | 109 | 31.454094 | 0.838816 | 0.083465 | 0 | 0.352941 | 0 | 0 | 0.185835 | 0.001834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086505 | false | 0.083045 | 0.058824 | 0 | 0.32872 | 0.124567 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b619974b791b3dc319a188eb0b8ea38e14618c6 | 386 | py | Python | build_scripts/install_deps.py | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 12 | 2021-04-03T16:50:22.000Z | 2022-03-18T07:14:14.000Z | build_scripts/install_deps.py | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2021-05-06T21:02:19.000Z | 2022-02-14T11:57:27.000Z | build_scripts/install_deps.py | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2021-06-11T20:15:37.000Z | 2022-03-18T07:14:21.000Z | from common import *
os.chdir(EXTERNAL_DIR)
PKGS = env('PKGS', 'all')
ninja_template = read_file(f'{SCRIPT_DIR}/install_deps_{OS_LOWER_CASE}.ninja.in')
write_file(f'install_deps_{OS_LOWER_CASE}.ninja', ninja_template.format(**ENV_PARAMS))
for key, val in ENV_PARAMS.items():
print(f'{key} = {val}')
shel... | 32.166667 | 87 | 0.715026 | 64 | 386 | 4 | 0.515625 | 0.128906 | 0.152344 | 0.210938 | 0.324219 | 0.324219 | 0.21875 | 0 | 0 | 0 | 0 | 0.00295 | 0.121762 | 386 | 11 | 88 | 35.090909 | 0.752212 | 0 | 0 | 0 | 0 | 0 | 0.432 | 0.314667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
2b632497a6ea6fdf0bb92e774fc99e0e6b5fa507 | 957 | py | Python | en16931/tests/test_tax.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | 9 | 2018-07-09T10:34:27.000Z | 2021-10-13T20:11:04.000Z | en16931/tests/test_tax.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | null | null | null | en16931/tests/test_tax.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | 1 | 2022-02-07T15:30:53.000Z | 2022-02-07T15:30:53.000Z | import pytest
from collections import Hashable
from en16931.tax import Tax
class TestTaxes:
def test_initialization(self):
t = Tax(0.21, "S", "IVA")
assert t
def test_hashable(self):
t = Tax(0.21, "S", "IVA")
assert isinstance(t, Hashable)
def test_percent_less_than_one... | 23.925 | 44 | 0.572623 | 136 | 957 | 3.860294 | 0.279412 | 0.106667 | 0.091429 | 0.137143 | 0.598095 | 0.495238 | 0.495238 | 0.327619 | 0.287619 | 0.228571 | 0 | 0.045322 | 0.285266 | 957 | 39 | 45 | 24.538462 | 0.722222 | 0 | 0 | 0.357143 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b6800c9e35b30d919c5fb6ac7e188c956250fd2 | 1,338 | py | Python | qgisserver/migrations/0012_auto_20190305_1011.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 5 | 2018-06-07T12:54:35.000Z | 2022-01-14T10:38:38.000Z | qgisserver/migrations/0012_auto_20190305_1011.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 140 | 2018-06-18T10:27:28.000Z | 2022-03-23T09:53:15.000Z | qgisserver/migrations/0012_auto_20190305_1011.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T11:20:54.000Z | 2021-04-13T11:20:54.000Z | # Generated by Django 2.1.7 on 2019-03-05 10:11
from django.db import migrations, models
import qgisserver.models
class Migration(migrations.Migration):
dependencies = [
('qgisserver', '0011_auto_20180803_0824'),
]
operations = [
migrations.AlterField(
model_name='service',
... | 38.228571 | 219 | 0.637519 | 150 | 1,338 | 5.52 | 0.48 | 0.096618 | 0.120773 | 0.140097 | 0.346618 | 0.346618 | 0.298309 | 0.246377 | 0 | 0 | 0 | 0.049659 | 0.232436 | 1,338 | 34 | 220 | 39.352941 | 0.756573 | 0.033632 | 0 | 0.428571 | 1 | 0 | 0.215337 | 0.039504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 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 |
2b6933c7fbf6d07d10feccd70de52addfefb38ae | 658 | py | Python | python/tests/structural/test_decorator.py | harkhuang/designpatterns | dfd6623976410882753913498158dcb0ea70c1d2 | [
"Apache-2.0"
] | null | null | null | python/tests/structural/test_decorator.py | harkhuang/designpatterns | dfd6623976410882753913498158dcb0ea70c1d2 | [
"Apache-2.0"
] | null | null | null | python/tests/structural/test_decorator.py | harkhuang/designpatterns | dfd6623976410882753913498158dcb0ea70c1d2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from patterns.structural.decorator import TextTag, BoldWrapper, ItalicWrapper
class TestTextWrapping(unittest.TestCase):
def setUp(self):
self.raw_string = TextTag('raw but not cruel')
def test_italic(self):
self.assertEqual(Italic... | 34.631579 | 113 | 0.700608 | 89 | 658 | 5.067416 | 0.404494 | 0.070953 | 0.115299 | 0.124169 | 0.259424 | 0.070953 | 0 | 0 | 0 | 0 | 0 | 0.001789 | 0.150456 | 658 | 18 | 114 | 36.555556 | 0.805009 | 0.06383 | 0 | 0 | 0 | 0 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.363636 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b6da2f0c9b5f0cefbd0075526e9eb021fc084e9 | 2,092 | py | Python | dosu/utils.py | tsandrini/DoSU | 312afb1c1dccaf5088b8d5818adf08d5406076ae | [
"MIT"
] | null | null | null | dosu/utils.py | tsandrini/DoSU | 312afb1c1dccaf5088b8d5818adf08d5406076ae | [
"MIT"
] | 2 | 2017-02-07T08:23:34.000Z | 2017-09-09T08:46:25.000Z | dosu/utils.py | tsandrini/dosu | 312afb1c1dccaf5088b8d5818adf08d5406076ae | [
"MIT"
] | null | null | null | """
__/\\\\\\\\\\\\______________________/\\\\\\\\\\\____/\\\________/\\\_
_\/\\\////////\\\__________________/\\\/////////\\\_\/\\\_______\/\\\_
_\/\\\______\//\\\________________\//\\\______\///__\/\\\_______\/\\\_
_\/\\\_______\/\\\_____/\\\\\______\////\\\_________\/\\\_______\/\\\_
_\/\\\_______\/\\\___/... | 27.168831 | 91 | 0.498566 | 175 | 2,092 | 4.274286 | 0.411429 | 0.053476 | 0.034759 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000653 | 0.268164 | 2,092 | 76 | 92 | 27.526316 | 0.487916 | 0.32696 | 0 | 0.097561 | 0 | 0 | 0.074216 | 0.018363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.073171 | 0 | 0.414634 | 0.02439 | 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 |
2b6dbaaeee834ce10b296c5ec51a9014d0fbab68 | 2,113 | py | Python | mod/bad_images.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | mod/bad_images.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | mod/bad_images.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2014-2021 Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision$
# Date: $Date$
from isfdb import *
from common import *
from isfdblib import *
from ... | 30.185714 | 97 | 0.54567 | 242 | 2,113 | 4.61157 | 0.421488 | 0.035842 | 0.021505 | 0.026882 | 0.207885 | 0.136201 | 0.136201 | 0.136201 | 0 | 0 | 0 | 0.01637 | 0.335069 | 2,113 | 69 | 98 | 30.623188 | 0.777936 | 0.10885 | 0 | 0.125 | 0 | 0 | 0.300587 | 0.066204 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 0.270833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b7661631e26d7c909ec01b827d25a4ce6c56fb8 | 1,096 | py | Python | nabu/postprocessing/reconstructors/weighted_kmeans.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | 18 | 2017-10-16T13:12:46.000Z | 2022-02-15T01:20:00.000Z | nabu/postprocessing/reconstructors/weighted_kmeans.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | null | null | null | nabu/postprocessing/reconstructors/weighted_kmeans.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | 9 | 2017-10-03T18:10:10.000Z | 2020-11-13T08:26:31.000Z | # Based on: https://towardsdatascience.com/clustering-the-us-population-observation-weighted-k-means-f4d58b370002
import random
import numpy as np
import scipy.spatial
def distance(p1,p2):
return np.linalg.norm(p1,p2)
def cluster_centroids(data,weights, clusters, k):
results=[]
for i in range(k):
results.... | 29.621622 | 113 | 0.720803 | 157 | 1,096 | 4.987261 | 0.509554 | 0.066411 | 0.051086 | 0.068966 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0.021575 | 0.154197 | 1,096 | 36 | 114 | 30.444444 | 0.823085 | 0.201642 | 0 | 0 | 0 | 0 | 0.053961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | 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 |
2b7ab663452a80c4be262712173532cb7f06dc77 | 2,339 | py | Python | Web.PY/client-post.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | Web.PY/client-post.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | Web.PY/client-post.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | ###
# Python http post example.
#
# License - MIT.
###
import os
# pip install requests.
import requests
# pip install lxml
# pip install beautifulsoup4
from bs4 import BeautifulSoup
# login github class.
class login_github():
# {
# Initialization function.
def __init__(self):
# {
# Chromium c... | 20.163793 | 128 | 0.535271 | 246 | 2,339 | 4.943089 | 0.430894 | 0.054276 | 0.037007 | 0.044408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020566 | 0.334758 | 2,339 | 115 | 129 | 20.33913 | 0.760283 | 0.138948 | 0 | 0 | 0 | 0.019608 | 0.188956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.078431 | 0.058824 | 0 | 0.235294 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b7b4342609278d1a046c18ba64c0b30f5c732af | 7,772 | py | Python | wqxlib/wqx_v3_0/BiologicalHabitatCollectionInformation.py | FlippingBinary/wqxlib-python | 5aa1d41384928f1faca47d5984485e2efa93174c | [
"MIT"
] | null | null | null | wqxlib/wqx_v3_0/BiologicalHabitatCollectionInformation.py | FlippingBinary/wqxlib-python | 5aa1d41384928f1faca47d5984485e2efa93174c | [
"MIT"
] | null | null | null | wqxlib/wqx_v3_0/BiologicalHabitatCollectionInformation.py | FlippingBinary/wqxlib-python | 5aa1d41384928f1faca47d5984485e2efa93174c | [
"MIT"
] | null | null | null | from yattag import Doc
from .CollectionEffort import CollectionEffort
from .MeasureCompact import MeasureCompact
from .NetInformation import NetInformation
from .SimpleContent import CollectionDescriptionText, PassCount
class BiologicalHabitatCollectionInformation:
"""
Allows for the reporting of b... | 41.340426 | 88 | 0.665208 | 665 | 7,772 | 7.62406 | 0.130827 | 0.010651 | 0.014201 | 0.017357 | 0.244576 | 0.210651 | 0.18856 | 0.18856 | 0.178698 | 0.157791 | 0 | 0 | 0.270458 | 7,772 | 187 | 89 | 41.561497 | 0.89418 | 0.144879 | 0 | 0.062992 | 0 | 0 | 0.048317 | 0.014173 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141732 | false | 0.102362 | 0.03937 | 0.031496 | 0.322835 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b7b76037a4e898e16254c3e5645a41b057d31df | 2,434 | py | Python | Python/Search/Search-1-Billion-Users.py | sethmh82/SethDevelopment | 08f3bd22923b652f9d676ffa2af3dc037eed6d73 | [
"MIT"
] | null | null | null | Python/Search/Search-1-Billion-Users.py | sethmh82/SethDevelopment | 08f3bd22923b652f9d676ffa2af3dc037eed6d73 | [
"MIT"
] | null | null | null | Python/Search/Search-1-Billion-Users.py | sethmh82/SethDevelopment | 08f3bd22923b652f9d676ffa2af3dc037eed6d73 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 29 15:50:49 2020
@author: SethHarden
"""
import math
# Add any extra import statements you may need here
"""
We have N different apps with differnt user growth rates.
At a given time (t)
Measure in days (d)
the number of users using an app is g ^ t
can be a float
G =... | 22.962264 | 82 | 0.670501 | 391 | 2,434 | 4.079284 | 0.398977 | 0.037618 | 0.043887 | 0.017555 | 0.060188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043985 | 0.224733 | 2,434 | 106 | 83 | 22.962264 | 0.801272 | 0.208299 | 0 | 0.074074 | 0 | 0 | 0.040972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0.055556 | 0.018519 | 0 | 0.185185 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
990d999fd69482a15fa5ce17aef975e84d69d8f0 | 1,833 | py | Python | app/grandchallenge/workstations/urls.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/workstations/urls.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/workstations/urls.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from grandchallenge.workstations.views import (
SessionCreate,
WorkstationCreate,
WorkstationDetail,
WorkstationEditorsUpdate,
WorkstationImageCreate,
WorkstationImageDetail,
WorkstationImageUpdate,
WorkstationList,
WorkstationUpdate,
WorkstationUser... | 25.816901 | 71 | 0.608838 | 153 | 1,833 | 7.202614 | 0.281046 | 0.07078 | 0.117967 | 0.078947 | 0.156987 | 0.12069 | 0.087114 | 0 | 0 | 0 | 0 | 0 | 0.242226 | 1,833 | 70 | 72 | 26.185714 | 0.793377 | 0.009274 | 0 | 0.318182 | 0 | 0 | 0.237596 | 0.128997 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
990e9f8c1c95014b70321c97ccabc51b75a24bab | 8,829 | py | Python | Project10- Bank Marketing.py | vaibhav162/Banking-Marketing-Project | 1255338b0a844a6a662e3b1887e9cef1a9edc834 | [
"Unlicense"
] | null | null | null | Project10- Bank Marketing.py | vaibhav162/Banking-Marketing-Project | 1255338b0a844a6a662e3b1887e9cef1a9edc834 | [
"Unlicense"
] | null | null | null | Project10- Bank Marketing.py | vaibhav162/Banking-Marketing-Project | 1255338b0a844a6a662e3b1887e9cef1a9edc834 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Importing Libraries and Dataset
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# In[2]:
bank= pd.read_csv(r"C:\Users\shruti\Desktop\Decodr\Project\Decodr Project\Bank marketing project\bank.csv", delimiter=";")
# ... | 19.930023 | 123 | 0.654094 | 1,235 | 8,829 | 4.501215 | 0.211336 | 0.043533 | 0.043173 | 0.025904 | 0.356719 | 0.315165 | 0.215866 | 0.17809 | 0.141392 | 0.100378 | 0 | 0.02429 | 0.174652 | 8,829 | 442 | 124 | 19.975113 | 0.738576 | 0.131725 | 0 | 0.204545 | 0 | 0.007576 | 0.181793 | 0.006351 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
990ee382aab29a71c3680acb076db25c10304e41 | 829 | py | Python | backend/recotem/recotem/api/serializers/project.py | codelibs/recotem | 383ccdd6e1e9feb59bc3adb2543c00b08277317a | [
"Apache-2.0"
] | 7 | 2021-05-15T05:43:36.000Z | 2022-01-06T16:08:06.000Z | backend/recotem/recotem/api/serializers/project.py | codelibs/recotem | 383ccdd6e1e9feb59bc3adb2543c00b08277317a | [
"Apache-2.0"
] | 5 | 2021-09-25T13:30:38.000Z | 2022-01-09T12:59:03.000Z | backend/recotem/recotem/api/serializers/project.py | codelibs/recotem | 383ccdd6e1e9feb59bc3adb2543c00b08277317a | [
"Apache-2.0"
] | 1 | 2021-11-02T12:49:06.000Z | 2021-11-02T12:49:06.000Z | from rest_framework import serializers
from recotem.api.models import Project, TrainingData
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
fields = "__all__"
class TrainingDataForSummarySerializer(serializers.ModelSerializer):
n_parameter_tuning_jobs = ser... | 29.607143 | 80 | 0.756333 | 79 | 829 | 7.658228 | 0.468354 | 0.190083 | 0.046281 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165259 | 829 | 27 | 81 | 30.703704 | 0.874277 | 0 | 0 | 0.105263 | 0 | 0 | 0.118215 | 0.088058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9915ead35e605389439f3f75b603bcbfca8137f3 | 401 | py | Python | Leetcode/Move Zeroes/Move Zeroes.py | rahil-1407/Data-Structure-and-Algorithms | ea3eb9849aeb2716ef5812a0b5621a28120b1880 | [
"MIT"
] | 51 | 2021-01-14T04:05:55.000Z | 2022-01-25T11:25:37.000Z | Leetcode/Move Zeroes/Move Zeroes.py | rahil-1407/Data-Structure-and-Algorithms | ea3eb9849aeb2716ef5812a0b5621a28120b1880 | [
"MIT"
] | 638 | 2020-12-27T18:49:53.000Z | 2021-11-21T05:22:52.000Z | Leetcode/Move Zeroes/Move Zeroes.py | rahil-1407/Data-Structure-and-Algorithms | ea3eb9849aeb2716ef5812a0b5621a28120b1880 | [
"MIT"
] | 124 | 2021-01-30T06:40:20.000Z | 2021-11-21T15:14:40.000Z | class Solution:
def moveZeroes(self, nums: List[int]) -> None:
non_zeros = [i for i in range(len(nums)) if nums[i] != 0] # List comprehension to keep only numbers that are non -zero
nz = len(non_zeros)
nums[:nz] = [nums[i] for i in non_zeros] # edit the list to add non zero num... | 57.285714 | 126 | 0.598504 | 67 | 401 | 3.537313 | 0.507463 | 0.101266 | 0.042194 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.281796 | 401 | 7 | 127 | 57.285714 | 0.815972 | 0.326683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9918396b139801392f0a7cf201d6cd0639fc9b91 | 4,629 | py | Python | sandbox/test/test_misc.py | yingted/pysandbox | cb20c202459fc1b22a81e879c0efafc66e1ddd8a | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-05T13:13:09.000Z | 2019-02-05T13:13:09.000Z | sandbox/test/test_misc.py | yingted/pysandbox | cb20c202459fc1b22a81e879c0efafc66e1ddd8a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | sandbox/test/test_misc.py | yingted/pysandbox | cb20c202459fc1b22a81e879c0efafc66e1ddd8a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import with_statement
from sandbox import Sandbox, SandboxError, SandboxConfig, Timeout
from sandbox.test import createSandbox, createSandboxConfig, SkipTest
from sandbox.test.tools import capture_stdout
def test_valid_code():
def valid_code():
assert 1+2 == 3
createSandbox().call(valid... | 26.301136 | 76 | 0.600994 | 522 | 4,629 | 5.176245 | 0.243295 | 0.040711 | 0.049963 | 0.035159 | 0.409326 | 0.357513 | 0.324944 | 0.280533 | 0.254626 | 0.254626 | 0 | 0.010753 | 0.296824 | 4,629 | 175 | 77 | 26.451429 | 0.819355 | 0.023763 | 0 | 0.454545 | 0 | 0 | 0.098582 | 0 | 0 | 0 | 0 | 0.005714 | 0.167832 | 0 | null | null | 0.041958 | 0.062937 | null | null | 0.048951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9929ca378f85f069f43b01b2e6b9a5f840475d81 | 466 | py | Python | setup.py | spyoungtech/commander | 891172d31dc93b9e34c5e38097159141c863d75e | [
"MIT"
] | 3 | 2018-08-14T20:42:43.000Z | 2020-03-04T05:18:47.000Z | setup.py | spyoungtech/commander | 891172d31dc93b9e34c5e38097159141c863d75e | [
"MIT"
] | 2 | 2020-07-08T12:30:08.000Z | 2022-02-02T14:59:23.000Z | setup.py | spyoungtech/commander | 891172d31dc93b9e34c5e38097159141c863d75e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='voice-commander',
version='0.0.2a',
packages=['voice_commander'],
install_requires=['fuzzywuzzy', 'fuzzywuzzy[speedup]', 'keyboard', 'easygui', 'pyaudio', 'SpeechRecognition'],
url='https://github.com/spyoungtech/voice-commander',
license='MIT',
aut... | 33.285714 | 114 | 0.708155 | 51 | 466 | 6.411765 | 0.764706 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007444 | 0.135193 | 466 | 13 | 115 | 35.846154 | 0.80397 | 0 | 0 | 0 | 0 | 0 | 0.534335 | 0.055794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99323e8a12cde588dd2bc1c30a2dbda9df176374 | 7,804 | py | Python | neatest/genome.py | goktug97/NEATEST | f35f355fd896c8f9ab88d411752324ebcc836d71 | [
"MIT"
] | 13 | 2021-09-25T19:52:38.000Z | 2021-09-28T09:42:22.000Z | neatest/genome.py | goktug97/NEATEST | f35f355fd896c8f9ab88d411752324ebcc836d71 | [
"MIT"
] | null | null | null | neatest/genome.py | goktug97/NEATEST | f35f355fd896c8f9ab88d411752324ebcc836d71 | [
"MIT"
] | null | null | null | from typing import List
import math
import os
from .connection import Connection, GeneRate, Weight
from .node import Node, NodeType, group_nodes
from .version import VERSION
import cloudpickle # type: ignore
try:
disable_mpi = os.environ.get('NEATEST_DISABLE_MPI')
if disable_mpi and disable_mpi != '0':
... | 43.597765 | 89 | 0.563813 | 871 | 7,804 | 4.881745 | 0.202067 | 0.031044 | 0.045155 | 0.016933 | 0.407338 | 0.389464 | 0.362653 | 0.362653 | 0.362653 | 0.362653 | 0 | 0.014649 | 0.335213 | 7,804 | 178 | 90 | 43.842697 | 0.804934 | 0.014223 | 0 | 0.35 | 1 | 0 | 0.072228 | 0.040864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05625 | false | 0 | 0.08125 | 0 | 0.175 | 0.0125 | 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 |
993374093a84570c0c1ef8f2f30f5090353300ca | 558 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/FormClosedEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/FormClosedEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/FormClosedEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class FormClosedEventArgs(EventArgs):
"""
Provides data for the System.Windows.Forms.Form.FormClosed event.
FormClosedEventArgs(closeReason: CloseReason)
"""
@staticmethod
def __new__(self, closeReason):
""" __new__(cls: type,closeReason: CloseReason) """
pass
Clos... | 20.666667 | 71 | 0.645161 | 54 | 558 | 6.518519 | 0.648148 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252688 | 558 | 26 | 72 | 21.461538 | 0.844125 | 0.283154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9939051042bf55dc56637d71a73ebeb04bd0f880 | 1,085 | py | Python | doc/source/EXAMPLES/mu_reproj_interact.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2016-04-28T08:55:33.000Z | 2018-07-23T18:35:58.000Z | doc/source/EXAMPLES/mu_reproj_interact.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T12:28:37.000Z | 2021-07-13T18:26:06.000Z | doc/source/EXAMPLES/mu_reproj_interact.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2017-05-03T14:01:08.000Z | 2020-07-23T12:23:28.000Z | from kapteyn import maputils
from matplotlib import pyplot as plt
import numpy
# Read first image as base
Basefits = maputils.FITSimage(promptfie=maputils.prompt_fitsfile)
print(type(Basefits), isinstance(Basefits, maputils.FITSimage))
# Get data from a second image. This is the data that
# should be reprojected to... | 43.4 | 86 | 0.795392 | 158 | 1,085 | 5.398734 | 0.455696 | 0.079719 | 0.107855 | 0.101993 | 0.260258 | 0.260258 | 0 | 0 | 0 | 0 | 0 | 0.016719 | 0.117972 | 1,085 | 24 | 87 | 45.208333 | 0.874608 | 0.623041 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9939f19eab14d0c7a3b637eb8dcb7c8e88f38637 | 381 | py | Python | python/Container With Most Water.py | kuwarkapur/Hacktoberfest-2022 | efaafeba5ce51d8d2e2d94c6326cc20bff946f17 | [
"MIT"
] | 1 | 2021-12-03T09:23:41.000Z | 2021-12-03T09:23:41.000Z | python/Container With Most Water.py | kuwarkapur/Hacktoberfest-2022 | efaafeba5ce51d8d2e2d94c6326cc20bff946f17 | [
"MIT"
] | null | null | null | python/Container With Most Water.py | kuwarkapur/Hacktoberfest-2022 | efaafeba5ce51d8d2e2d94c6326cc20bff946f17 | [
"MIT"
] | null | null | null | class Solution:
def maxArea(self, height: List[int]) -> int:
i = 0
j = len(height)-1
res = 0
area = 0
while i < j:
area = min(height[i],height[j])*(j-i)
#print(area)
res = max(res,area)
if height[i]<height[j]:
i+... | 23.8125 | 49 | 0.393701 | 48 | 381 | 3.125 | 0.458333 | 0.093333 | 0.173333 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0.47769 | 381 | 15 | 50 | 25.4 | 0.723618 | 0.028871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 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 |
993e1a819f6f487b24a2d7f90f46158e52218a76 | 584 | py | Python | lib/hyperparams.py | J-Moravec/pairtree | 91cbba628b78aea31034efb080976fdb47d83976 | [
"MIT"
] | 15 | 2021-01-19T21:13:50.000Z | 2022-02-02T00:01:33.000Z | lib/hyperparams.py | J-Moravec/pairtree | 91cbba628b78aea31034efb080976fdb47d83976 | [
"MIT"
] | 17 | 2020-11-25T09:41:03.000Z | 2022-03-28T04:52:14.000Z | lib/hyperparams.py | J-Moravec/pairtree | 91cbba628b78aea31034efb080976fdb47d83976 | [
"MIT"
] | 6 | 2021-01-01T06:00:31.000Z | 2021-06-29T15:03:11.000Z | explanations = {
'gamma': '''
Proportion of tree modifications that should use mutrel-informed choice for
node to move, rather than uniform choice
''',
'zeta': '''
Proportion of tree modifications that should use mutrel-informed choice for
destination to move node to, rather than uniform choice
... | 23.36 | 79 | 0.674658 | 74 | 584 | 5.324324 | 0.486486 | 0.106599 | 0.081218 | 0.147208 | 0.329949 | 0.329949 | 0.329949 | 0.329949 | 0.329949 | 0.329949 | 0 | 0.013015 | 0.210616 | 584 | 24 | 80 | 24.333333 | 0.841649 | 0 | 0 | 0.2 | 0 | 0 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9943e8ba1fe715b4c9d83b3026d9f901028d6a2e | 359 | py | Python | app/database/seed/seeds/real_madrid/team.py | batistado/FlaskFootball | 4cd57edca35a7ce9864201f7ae0fc8af55a2724f | [
"MIT"
] | null | null | null | app/database/seed/seeds/real_madrid/team.py | batistado/FlaskFootball | 4cd57edca35a7ce9864201f7ae0fc8af55a2724f | [
"MIT"
] | null | null | null | app/database/seed/seeds/real_madrid/team.py | batistado/FlaskFootball | 4cd57edca35a7ce9864201f7ae0fc8af55a2724f | [
"MIT"
] | null | null | null | import os
import app.database.seed.seed_helper as helper
from app.translation.deserializer import Deserializer
from app.extensions import db
real_madrid = {
'name': 'Real Madrid CF',
'players': helper.read_csv_file(os.path.join(os.path.dirname(__file__), 'players.csv')),
}
team = Deserializer().deserialize_... | 23.933333 | 92 | 0.763231 | 51 | 359 | 5.176471 | 0.529412 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114206 | 359 | 14 | 93 | 25.642857 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.100279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9946ecb403a384000ba7abec0b673e218cfb79aa | 436 | py | Python | examples/loop.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | 1 | 2021-12-04T21:37:41.000Z | 2021-12-04T21:37:41.000Z | examples/loop.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | examples/loop.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | # This example shows how a space can be modelled with loops.
import exhaust
def generate_numbers(state: exhaust.State):
numbers = []
for _ in range(5):
numbers.append(state.randint(1, 5))
return numbers
for numbers in exhaust.space(generate_numbers):
print(numbers)
# Output:
# [1, 1, 1, 1, 1... | 18.956522 | 60 | 0.568807 | 77 | 436 | 3.181818 | 0.38961 | 0.155102 | 0.171429 | 0.146939 | 0.065306 | 0.036735 | 0.036735 | 0.036735 | 0 | 0 | 0 | 0.115502 | 0.245413 | 436 | 22 | 61 | 19.818182 | 0.629179 | 0.417431 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
994a38b1a44b5485284d61f6f94e7e736096f6bb | 488 | py | Python | app/api/v1/models/meetups_model.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | null | null | null | app/api/v1/models/meetups_model.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | 2 | 2019-01-08T06:58:47.000Z | 2019-01-08T08:46:16.000Z | app/api/v1/models/meetups_model.py | MRichardN/Questioner-api | 2697ccc976c6f4896246f7f817aab7d12f1d606c | [
"MIT"
] | null | null | null | from datetime import datetime
from ..utils.utils import idGenerator
from .base_model import Model
meetups = []
class Meetup(Model):
""" This class represents the meetup model."""
def __init__(self):
super().__init__(meetups)
def save(self, data):
""" Save a meetup."""
data['id'] ... | 17.428571 | 50 | 0.612705 | 54 | 488 | 5.37037 | 0.481481 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254098 | 488 | 27 | 51 | 18.074074 | 0.796703 | 0.110656 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
994c3e8c1a0f1cd2339af26e2dce6708adab8045 | 469 | py | Python | FootageOverview/FootageManager/migrations/0003_footage_staticpath.py | nylser/FootageOverview | 921e003550ba445d5a3308dee231a2d92e642b01 | [
"Unlicense"
] | null | null | null | FootageOverview/FootageManager/migrations/0003_footage_staticpath.py | nylser/FootageOverview | 921e003550ba445d5a3308dee231a2d92e642b01 | [
"Unlicense"
] | null | null | null | FootageOverview/FootageManager/migrations/0003_footage_staticpath.py | nylser/FootageOverview | 921e003550ba445d5a3308dee231a2d92e642b01 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-20 07:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('FootageManager', '0002_footage_length'),
]
operations = [
migrations.AddField(
model_name='footage',
name='staticpat... | 23.45 | 91 | 0.616205 | 49 | 469 | 5.755102 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06414 | 0.268657 | 469 | 19 | 92 | 24.684211 | 0.758017 | 0.095949 | 0 | 0 | 1 | 0 | 0.14455 | 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 |
99528f1bcb117738e7d9a6979b7ae04eff5afc1b | 429 | py | Python | equinox/__init__.py | marcelroed/equinox | 3804a8d60217bde685bee0a893a7bd55b1e63c26 | [
"Apache-2.0"
] | null | null | null | equinox/__init__.py | marcelroed/equinox | 3804a8d60217bde685bee0a893a7bd55b1e63c26 | [
"Apache-2.0"
] | null | null | null | equinox/__init__.py | marcelroed/equinox | 3804a8d60217bde685bee0a893a7bd55b1e63c26 | [
"Apache-2.0"
] | null | null | null | from . import experimental, nn
from .filters import (
combine,
filter,
is_array,
is_array_like,
is_inexact_array,
is_inexact_array_like,
partition,
)
from .grad import filter_custom_vjp, filter_grad, filter_value_and_grad
from .jit import filter_jit
from .module import Module, static_field
f... | 22.578947 | 71 | 0.762238 | 63 | 429 | 4.809524 | 0.507937 | 0.046205 | 0.092409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.174825 | 429 | 18 | 72 | 23.833333 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.011655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9956e73164bd63500cea24e33dc9bcf6d9f73e4e | 4,311 | py | Python | scp.py | KvantPro/SCP | 1304d03007992f223d319d41037e2b32c9fbf934 | [
"Unlicense"
] | 1 | 2021-11-12T19:28:16.000Z | 2021-11-12T19:28:16.000Z | scp.py | KvantPro/SCP | 1304d03007992f223d319d41037e2b32c9fbf934 | [
"Unlicense"
] | null | null | null | scp.py | KvantPro/SCP | 1304d03007992f223d319d41037e2b32c9fbf934 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SCP.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore... | 31.23913 | 189 | 0.566922 | 536 | 4,311 | 4.501866 | 0.324627 | 0.037298 | 0.063821 | 0.046415 | 0.051388 | 0.028181 | 0 | 0 | 0 | 0 | 0 | 0.038562 | 0.290188 | 4,311 | 137 | 190 | 31.467153 | 0.75 | 0.062167 | 0 | 0.172414 | 1 | 0.008621 | 0.124166 | 0.010262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060345 | false | 0 | 0.034483 | 0 | 0.112069 | 0 | 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 |
995a079b3191ebb48a0a239dc759e1d69f8990ae | 9,682 | py | Python | vendor/istio.io/api/python/istio_api/networking/v1alpha3/service_dependency_pb2.py | octarinesec/istio | 913b459130045fc4846a36c46c05a48da88776bb | [
"Apache-2.0"
] | 2 | 2020-07-20T06:35:29.000Z | 2021-01-22T03:35:38.000Z | vendor/istio.io/api/python/istio_api/networking/v1alpha3/service_dependency_pb2.py | octarinesec/istio | 913b459130045fc4846a36c46c05a48da88776bb | [
"Apache-2.0"
] | null | null | null | vendor/istio.io/api/python/istio_api/networking/v1alpha3/service_dependency_pb2.py | octarinesec/istio | 913b459130045fc4846a36c46c05a48da88776bb | [
"Apache-2.0"
] | 1 | 2021-01-22T03:35:42.000Z | 2021-01-22T03:35:42.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: networking/v1alpha3/service_dependency.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from googl... | 40.008264 | 837 | 0.777629 | 1,070 | 9,682 | 6.749533 | 0.160748 | 0.072279 | 0.063694 | 0.099695 | 0.596511 | 0.476599 | 0.44946 | 0.402935 | 0.368457 | 0.352534 | 0 | 0.035445 | 0.108345 | 9,682 | 241 | 838 | 40.174274 | 0.801112 | 0.058356 | 0 | 0.589623 | 1 | 0.004717 | 0.237923 | 0.210145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09434 | 0 | 0.09434 | 0 | 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 |
995ff73160e804154606204631367eefc3fb8d9c | 1,522 | py | Python | notifications/sms.py | HexNumbers/OctoPrint | ba01fdd0c625150bdbe09a2ba965e30b7f434e4a | [
"MIT"
] | null | null | null | notifications/sms.py | HexNumbers/OctoPrint | ba01fdd0c625150bdbe09a2ba965e30b7f434e4a | [
"MIT"
] | null | null | null | notifications/sms.py | HexNumbers/OctoPrint | ba01fdd0c625150bdbe09a2ba965e30b7f434e4a | [
"MIT"
] | null | null | null | import smtplib, sys, urllib2
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from PIL import Image
import io
GMAIL_USERNAME = '*******@gmail.com'
GMAIL_PASS = '*******'
RECEPIENT = '*******@tmomail.net'
SNAP_URL='http://127.0.0.1:8080/?action=s... | 35.395349 | 81 | 0.636662 | 181 | 1,522 | 5.243094 | 0.447514 | 0.054795 | 0.041096 | 0.044257 | 0.128556 | 0.128556 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.217477 | 1,522 | 42 | 82 | 36.238095 | 0.781696 | 0 | 0 | 0 | 0 | 0 | 0.181997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.153846 | 0 | 0.179487 | 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 |
9962163f869a0d942c76685500a8b2f453af027d | 6,306 | py | Python | dendropy/test/test_dataio_nexml_reader_chars.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | dendropy/test/test_dataio_nexml_reader_chars.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | dendropy/test/test_dataio_nexml_reader_chars.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # !/usr/bin/env python
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this wo... | 36.877193 | 78 | 0.599746 | 598 | 6,306 | 6.016722 | 0.220736 | 0.111173 | 0.116732 | 0.047248 | 0.704836 | 0.65592 | 0.61562 | 0.61562 | 0.61562 | 0.61562 | 0 | 0.007304 | 0.305265 | 6,306 | 170 | 79 | 37.094118 | 0.813969 | 0.09594 | 0 | 0.669291 | 0 | 0 | 0.07955 | 0.073556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07874 | false | 0 | 0.070866 | 0 | 0.188976 | 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 |
9966d637d34484011d82a970b82967f225c9276e | 2,067 | py | Python | lib.py | miami-acm/unit-testing | d074c680805f49848991bdfeab43537785238560 | [
"MIT"
] | null | null | null | lib.py | miami-acm/unit-testing | d074c680805f49848991bdfeab43537785238560 | [
"MIT"
] | null | null | null | lib.py | miami-acm/unit-testing | d074c680805f49848991bdfeab43537785238560 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def sleep_in(weekday, vacation):
"""
The parameter weekday is True if it is a weekday, and the parameter
vacation is True if we are on vacation. We sleep in if it is not a
weekday or we're on vacation. Return True if we sleep in.
sleep_in(False, False) → True
sleep_in(T... | 23.488636 | 79 | 0.627963 | 357 | 2,067 | 3.616247 | 0.291317 | 0.030984 | 0.03718 | 0.03718 | 0.079009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037259 | 0.272859 | 2,067 | 87 | 80 | 23.758621 | 0.807718 | 0.734398 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9968ab6b834c0b7f00339801637e6217641653ab | 246 | py | Python | gvars.py | MattSkiff/cow_flow | 6354842fbe3ceccc3648d956987b391670476292 | [
"MIT"
] | null | null | null | gvars.py | MattSkiff/cow_flow | 6354842fbe3ceccc3648d956987b391670476292 | [
"MIT"
] | 1 | 2022-03-12T01:03:01.000Z | 2022-03-12T01:03:01.000Z | gvars.py | MattSkiff/cow_flow | 6354842fbe3ceccc3648d956987b391670476292 | [
"MIT"
] | null | null | null | import config as c
FEAT_MOD_DIR = './models/feat_extractors/'
VIZ_DIR = './viz'
WEIGHT_DIR = './weights'
MODEL_DIR = './models'
LOG_DIR = './logs'
C_DIR = './cstates'
DMAP_DIR = './data/precompute/size_{}_sigma_{}/'.format(c.filter_size,c.sigma) | 27.333333 | 78 | 0.695122 | 37 | 246 | 4.27027 | 0.621622 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101626 | 246 | 9 | 78 | 27.333333 | 0.714932 | 0 | 0 | 0 | 0 | 0 | 0.392713 | 0.242915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
996bd5432ca4d3076b30cd7035a3ff74a9f4d4d5 | 2,220 | py | Python | elationmagic.py | lordjabez/light-maestro | ddc8a6398f818bc531f5c809ab00e69e121e25ad | [
"Apache-2.0"
] | 1 | 2015-08-20T08:05:41.000Z | 2015-08-20T08:05:41.000Z | elationmagic.py | lordjabez/light-maestro | ddc8a6398f818bc531f5c809ab00e69e121e25ad | [
"Apache-2.0"
] | null | null | null | elationmagic.py | lordjabez/light-maestro | ddc8a6398f818bc531f5c809ab00e69e121e25ad | [
"Apache-2.0"
] | null | null | null | """
@copyright: 2013 Single D Software - All Rights Reserved
@summary: Elation Magic 260 MIDI interface for Light Maestro.
"""
# Standard library imports
import logging
# Additional library imports
import rtmidi
import rtmidi.midiconstants
# Application imports
import console
# Named logger for this module
_logge... | 29.6 | 98 | 0.656757 | 243 | 2,220 | 5.872428 | 0.473251 | 0.058865 | 0.121934 | 0.134548 | 0.161177 | 0.060266 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.252252 | 2,220 | 74 | 99 | 30 | 0.84759 | 0.178378 | 0 | 0.186047 | 0 | 0 | 0.087788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.093023 | 0 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
996e1f99f31c354cf76b0192bd90d53f495fec14 | 194 | py | Python | 6 kyu/Caesar Cipher Encryption Variation.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Caesar Cipher Encryption Variation.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Caesar Cipher Encryption Variation.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def caesar_encode(phrase, shift):
res=[]
for i,j in enumerate(phrase.split()):
res.append("".join(chr(ord("a")+(ord(k)-ord("a")+shift+i)%26) for k in j))
return " ".join(res) | 38.8 | 82 | 0.582474 | 33 | 194 | 3.393939 | 0.606061 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.180412 | 194 | 5 | 83 | 38.8 | 0.691824 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99729efd1ed3e15b30cbb89f9e80540b94f9b6f9 | 557 | py | Python | python/setup.py | dune-mirrors/dune-python | e83ac8c8e6eb7c4f6e72a21b1efde8e674a226bd | [
"BSD-3-Clause"
] | null | null | null | python/setup.py | dune-mirrors/dune-python | e83ac8c8e6eb7c4f6e72a21b1efde8e674a226bd | [
"BSD-3-Clause"
] | null | null | null | python/setup.py | dune-mirrors/dune-python | e83ac8c8e6eb7c4f6e72a21b1efde8e674a226bd | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(name='dune.common',
namespace_packages=['dune'],
version='2.4',
description='Python package accompanying the DUNE project',
url='http://www.dune-project.org',
author='Dominic Kempf',
author_email='dominic.kempf@iwr.uni-heidelberg.de'... | 30.944444 | 65 | 0.572711 | 57 | 557 | 5.526316 | 0.701754 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.285458 | 557 | 17 | 66 | 32.764706 | 0.776382 | 0 | 0 | 0.125 | 0 | 0 | 0.38061 | 0.10772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
998087f02dbab8dae6c25cacb1cd710f8eb57923 | 345 | py | Python | plugins/broadcast.py | DeveloperNoob/BAD_LOKI_FACE | 75acea0e9c2403bfd7b732153a0bef284d12b16e | [
"MIT"
] | null | null | null | plugins/broadcast.py | DeveloperNoob/BAD_LOKI_FACE | 75acea0e9c2403bfd7b732153a0bef284d12b16e | [
"MIT"
] | null | null | null | plugins/broadcast.py | DeveloperNoob/BAD_LOKI_FACE | 75acea0e9c2403bfd7b732153a0bef284d12b16e | [
"MIT"
] | null | null | null | #By @Joel_Noob
from pyrogram import Client, filters
from config import Config
@Client.on_message(
filters.private
& filters.command("broadcast")
& filters.user(Config.ADMINS)
& filters.reply
)
async def broadcast_(c, m):
await c.start_broadcast(
broadcast_message=m.reply_to_message, admin... | 20.294118 | 69 | 0.715942 | 47 | 345 | 5.06383 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185507 | 345 | 16 | 70 | 21.5625 | 0.846975 | 0.037681 | 0 | 0 | 0 | 0 | 0.02719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
998f551a05620bbe51cf037cfa0f6b3d026b742d | 486 | py | Python | recipes/migrations/0004_auto_20210308_0628.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | null | null | null | recipes/migrations/0004_auto_20210308_0628.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | null | null | null | recipes/migrations/0004_auto_20210308_0628.py | PavelYasukevich/foodgram-project | d03af25d8fd0cbf1eec03467a95620b89993c9fd | [
"MIT"
] | 1 | 2021-03-27T16:34:07.000Z | 2021-03-27T16:34:07.000Z | # Generated by Django 3.1.7 on 2021-03-08 06:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0003_auto_20210304_1233'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='fav_counter... | 25.578947 | 145 | 0.650206 | 53 | 486 | 5.830189 | 0.811321 | 0.071197 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.242798 | 486 | 18 | 146 | 27 | 0.752717 | 0.092593 | 0 | 0 | 1 | 0 | 0.225513 | 0.052392 | 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 |
9993ad6982945646f5058571579df16c0d7ea0c7 | 438 | py | Python | board_app/migrations/0004_alter_boardmodel_snsimage.py | OkuboAtsushi/board-project | c73beab6ad9525f1fe31d8e9b987476e4b45fd18 | [
"MIT"
] | null | null | null | board_app/migrations/0004_alter_boardmodel_snsimage.py | OkuboAtsushi/board-project | c73beab6ad9525f1fe31d8e9b987476e4b45fd18 | [
"MIT"
] | null | null | null | board_app/migrations/0004_alter_boardmodel_snsimage.py | OkuboAtsushi/board-project | c73beab6ad9525f1fe31d8e9b987476e4b45fd18 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-08-01 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('board_app', '0003_alter_boardmodel_snsimage'),
]
operations = [
migrations.AlterField(
model_name='boardmodel',
name... | 23.052632 | 87 | 0.621005 | 48 | 438 | 5.541667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058642 | 0.260274 | 438 | 18 | 88 | 24.333333 | 0.762346 | 0.10274 | 0 | 0 | 1 | 0 | 0.14578 | 0.076726 | 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 |
99a086af551d96b57462192e6864be3a7cb52597 | 2,049 | py | Python | smartlearner/status.py | MarcCote/smartlearner | 0afdcd3b38dddfee16330b8324eb3b0e224f1c2b | [
"BSD-3-Clause"
] | null | null | null | smartlearner/status.py | MarcCote/smartlearner | 0afdcd3b38dddfee16330b8324eb3b0e224f1c2b | [
"BSD-3-Clause"
] | null | null | null | smartlearner/status.py | MarcCote/smartlearner | 0afdcd3b38dddfee16330b8324eb3b0e224f1c2b | [
"BSD-3-Clause"
] | null | null | null | from os.path import join as pjoin
from .utils import save_dict_to_json_file, load_dict_from_json_file
class Status(object):
def __init__(self, trainer=None, starting_epoch=0, starting_update=0):
self.current_epoch = starting_epoch
self.current_update = starting_update
self.current_update_... | 37.254545 | 113 | 0.585163 | 240 | 2,049 | 4.666667 | 0.1875 | 0.197321 | 0.166964 | 0.160714 | 0.338393 | 0.139286 | 0.066071 | 0 | 0 | 0 | 0 | 0.006272 | 0.299658 | 2,049 | 54 | 114 | 37.944444 | 0.774216 | 0 | 0 | 0 | 0 | 0 | 0.164959 | 0.033675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0.022727 | 0.227273 | 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 |
99a24f7bca5db37447ff93cc105a33b663fe4185 | 9,991 | py | Python | 10601-hws/HW 6/hw6/python/hwTestLeNet.py | dfreilich/machine-learning-workspace | a1b6e5bd84a4f5708461f3827d64e2bf5a32dffa | [
"MIT"
] | null | null | null | 10601-hws/HW 6/hw6/python/hwTestLeNet.py | dfreilich/machine-learning-workspace | a1b6e5bd84a4f5708461f3827d64e2bf5a32dffa | [
"MIT"
] | null | null | null | 10601-hws/HW 6/hw6/python/hwTestLeNet.py | dfreilich/machine-learning-workspace | a1b6e5bd84a4f5708461f3827d64e2bf5a32dffa | [
"MIT"
] | null | null | null | import numpy as np
import cnn_lenet
import pickle
import copy
import random
import matplotlib as mp
import matplotlib.pyplot as plt
import math
def get_lenet():
"""Define LeNet
Explanation of parameters:
type: layer type, supports convolution, pooling, relu
channel: input channel
num: output channel
k: co... | 31.319749 | 129 | 0.636273 | 1,366 | 9,991 | 4.513177 | 0.207906 | 0.023358 | 0.012976 | 0.016869 | 0.511436 | 0.453366 | 0.431144 | 0.411354 | 0.411354 | 0.411354 | 0 | 0.028686 | 0.225403 | 9,991 | 318 | 130 | 31.418239 | 0.767929 | 0.201481 | 0 | 0.326923 | 0 | 0 | 0.141084 | 0.010451 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | 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 |
99a673617423652de49110e1613b793a9d706888 | 644 | py | Python | conf/urls.py | crisariasgg/RepinSolution | 27e9b04ccc887b4300d77dda8657e761f9523123 | [
"MIT"
] | null | null | null | conf/urls.py | crisariasgg/RepinSolution | 27e9b04ccc887b4300d77dda8657e761f9523123 | [
"MIT"
] | null | null | null | conf/urls.py | crisariasgg/RepinSolution | 27e9b04ccc887b4300d77dda8657e761f9523123 | [
"MIT"
] | 1 | 2021-12-09T21:27:35.000Z | 2021-12-09T21:27:35.000Z | """URL Configuration"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.views.generic import TemplateView
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include(('apps.users.urls', 'use... | 25.76 | 96 | 0.706522 | 78 | 644 | 5.679487 | 0.358974 | 0.112867 | 0.063205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150621 | 644 | 24 | 97 | 26.833333 | 0.809872 | 0.026398 | 0 | 0 | 0 | 0 | 0.140097 | 0.035427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
99a8de2271c3c05622470fceff6ae843c59d9535 | 1,524 | py | Python | pages/migrations/0001_initial.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | pages/migrations/0001_initial.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | pages/migrations/0001_initial.py | mixnix/subject_rate | 224fdc7c17afd972596c628bda65a384274ed4a1 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-22 04:31
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CourseName',
fields=[
... | 38.1 | 173 | 0.603018 | 148 | 1,524 | 6.081081 | 0.418919 | 0.055556 | 0.111111 | 0.076667 | 0.516667 | 0.516667 | 0.516667 | 0.516667 | 0.516667 | 0.516667 | 0 | 0.027605 | 0.263123 | 1,524 | 39 | 174 | 39.076923 | 0.77382 | 0.029528 | 0 | 0.46875 | 1 | 0 | 0.073798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99a91fc05ae7123630e16e93bde5cb1b4970dfad | 570 | py | Python | src/spaceone/inventory/error/custom.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | 1 | 2020-12-04T01:37:15.000Z | 2020-12-04T01:37:15.000Z | src/spaceone/inventory/error/custom.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | null | null | null | src/spaceone/inventory/error/custom.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | 2 | 2020-12-04T01:37:18.000Z | 2020-12-28T02:53:39.000Z | from spaceone.core.error import ERROR_BASE
class ERROR_REPOSITORY_BACKEND(ERROR_BASE):
status_code = 'INTERNAL'
message = 'Repository backend has problem. ({host})'
class ERROR_DRIVER(ERROR_BASE):
status_code = 'INTERNAL'
message = '{message}'
class ERROR_NOT_INITIALIZED_EXCEPTION(ERROR_BASE):
... | 27.142857 | 94 | 0.759649 | 68 | 570 | 6.132353 | 0.544118 | 0.107914 | 0.107914 | 0.136691 | 0.244604 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15614 | 570 | 20 | 95 | 28.5 | 0.866944 | 0 | 0 | 0.25 | 0 | 0 | 0.377193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
99aacf62d8ba4b992323536e4d23c55bfd7baf04 | 706 | py | Python | db_server.py | YashithaNadiranga/MysqlFlask | 1576abc388666f3e7e5ff288d1d221a4012f991b | [
"MIT"
] | null | null | null | db_server.py | YashithaNadiranga/MysqlFlask | 1576abc388666f3e7e5ff288d1d221a4012f991b | [
"MIT"
] | null | null | null | db_server.py | YashithaNadiranga/MysqlFlask | 1576abc388666f3e7e5ff288d1d221a4012f991b | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:pass@localhost/student_details'
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, ... | 22.0625 | 85 | 0.70255 | 100 | 706 | 4.74 | 0.54 | 0.050633 | 0.063291 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008237 | 0.140227 | 706 | 31 | 86 | 22.774194 | 0.772652 | 0 | 0 | 0 | 0 | 0 | 0.150142 | 0.093484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.095238 | 0.047619 | 0.428571 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
99ac99fa9ef1118415e2e909b4f4d2bb005ce536 | 1,397 | py | Python | relay_daemon/logger.py | vt-gs/relay_daemon | 9d77cd3222a3fe3e588f7c2196a4a06e8a73a471 | [
"MIT"
] | null | null | null | relay_daemon/logger.py | vt-gs/relay_daemon | 9d77cd3222a3fe3e588f7c2196a4a06e8a73a471 | [
"MIT"
] | null | null | null | relay_daemon/logger.py | vt-gs/relay_daemon | 9d77cd3222a3fe3e588f7c2196a4a06e8a73a471 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# Logger utilities
import math, sys, os, time, struct, traceback, binascii, logging
import datetime as dt
class MyFormatter(logging.Formatter):
#Overriding formatter for datetime
converter=dt.datetime.utcfromtimestamp
def formatTime(self, record, datefmt=None):
ct = self.co... | 34.073171 | 129 | 0.655691 | 179 | 1,397 | 5.005587 | 0.446927 | 0.070313 | 0.033482 | 0.008929 | 0.120536 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0.005386 | 0.202577 | 1,397 | 40 | 130 | 34.925 | 0.798923 | 0.193271 | 0 | 0 | 0 | 0 | 0.12958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.