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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8aee9116df68fe25686239b5c22e5e7e2f793c9d | 238 | py | Python | tests/__init__.py | OpenRoadMedia/freshbooks-python-sdk | 0bac1f47f2ddbcd353fe54e46242ad71c519e034 | [
"MIT"
] | 5 | 2020-11-12T23:18:15.000Z | 2021-03-12T09:59:35.000Z | tests/__init__.py | OpenRoadMedia/freshbooks-python-sdk | 0bac1f47f2ddbcd353fe54e46242ad71c519e034 | [
"MIT"
] | 8 | 2020-12-17T10:51:32.000Z | 2021-12-14T15:45:23.000Z | tests/__init__.py | OpenRoadMedia/freshbooks-python-sdk | 0bac1f47f2ddbcd353fe54e46242ad71c519e034 | [
"MIT"
] | 3 | 2020-12-03T14:44:00.000Z | 2022-02-04T17:22:45.000Z | import json
import os
def get_fixture(filename):
path = os.path.dirname(os.path.dirname(__file__))
with open(path + "/tests/fixtures/{}.json".format(filename)) as json_file:
data = json.load(json_file)
return data
| 19.833333 | 78 | 0.684874 | 34 | 238 | 4.588235 | 0.558824 | 0.076923 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184874 | 238 | 11 | 79 | 21.636364 | 0.804124 | 0 | 0 | 0 | 0 | 0 | 0.096639 | 0.096639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8af51976b0ef5173b62357e19c9d0f6b412efc28 | 1,284 | py | Python | final_project/machinetranslation/translator.py | FYPetro/xzceb-flask_eng_fr | eb4abc0fc6cddbf595c27eaea762aec12db70ade | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/translator.py | FYPetro/xzceb-flask_eng_fr | eb4abc0fc6cddbf595c27eaea762aec12db70ade | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/translator.py | FYPetro/xzceb-flask_eng_fr | eb4abc0fc6cddbf595c27eaea762aec12db70ade | [
"Apache-2.0"
] | null | null | null | """Provides translation between English and French"""
import os
from dotenv import load_dotenv
from ibm_watson import LanguageTranslatorV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
from ibm_cloud_sdk_core.api_exception import ApiException
load_dotenv()
apikey = os.environ['apikey']
url = os.envir... | 28.533333 | 64 | 0.709502 | 140 | 1,284 | 6.335714 | 0.407143 | 0.081172 | 0.027058 | 0.033822 | 0.27283 | 0.229989 | 0.135287 | 0.135287 | 0 | 0 | 0 | 0.011561 | 0.191589 | 1,284 | 44 | 65 | 29.181818 | 0.842967 | 0.103583 | 0 | 0.228571 | 0 | 0 | 0.085463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.057143 | 0.142857 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8af87da12ccf92e87ba6953829ccb0f892b57bed | 2,531 | py | Python | src/borland/file.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | 1 | 2020-06-23T17:02:55.000Z | 2020-06-23T17:02:55.000Z | src/borland/file.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | null | null | null | src/borland/file.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
@author rpereira
Apr 18, 2012
Colocar aqui todo tratamento especifico de arquivo da borland:
bpk
bpg
bpr
res
rc
"""
import re
import os
from controller.front import FrontController
GROUP_EXTS = ["bpg"]
PACKAGE_EXTS = ["bpk"]
EXE_EXTS = ["bpr"]
"""Wildcards para abr... | 28.761364 | 95 | 0.472936 | 249 | 2,531 | 4.570281 | 0.409639 | 0.052724 | 0.052724 | 0.070299 | 0.177504 | 0.177504 | 0.177504 | 0.177504 | 0.177504 | 0.121265 | 0 | 0.010345 | 0.427104 | 2,531 | 88 | 96 | 28.761364 | 0.774483 | 0.084947 | 0 | 0.25 | 0 | 0 | 0.034771 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.053571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c109bef028d5b4a2e70a657dd1e2ae4823653560 | 11,736 | py | Python | solarProfile_v0.2.py | erghjunk/portfolio_solarSiteProfiling | 13ead97ea3a500067a83ebbaba577e52827d9c31 | [
"MIT"
] | null | null | null | solarProfile_v0.2.py | erghjunk/portfolio_solarSiteProfiling | 13ead97ea3a500067a83ebbaba577e52827d9c31 | [
"MIT"
] | null | null | null | solarProfile_v0.2.py | erghjunk/portfolio_solarSiteProfiling | 13ead97ea3a500067a83ebbaba577e52827d9c31 | [
"MIT"
] | null | null | null | """
author: evan fedorko, evanjfedorko@gmail.com
date: 3/2021
This script takes in a polygon GIS feature class of 1 to X features and uses a bunch of
pre-generated GIS data describing various things that are important to determining
solar site suitability and spits out a table of all those things for each site, ... | 41.914286 | 175 | 0.69879 | 1,440 | 11,736 | 5.61875 | 0.319444 | 0.014955 | 0.006674 | 0.024472 | 0.154493 | 0.11692 | 0.088741 | 0.041528 | 0.041528 | 0.041528 | 0 | 0.042339 | 0.180896 | 11,736 | 279 | 176 | 42.064516 | 0.799334 | 0.217877 | 0 | 0.147959 | 1 | 0.005102 | 0.333488 | 0.145212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.020408 | 0 | 0.030612 | 0.020408 | 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 |
c109f9561be207e9e2a972dba9260e729d4f873c | 261 | py | Python | silk/__init__.py | eduzen/django-silk | 8f8d159a4209f4c294aba16bce3b1ca5789dc2d2 | [
"MIT"
] | 2,027 | 2018-01-10T16:48:35.000Z | 2022-03-31T17:11:44.000Z | silk/__init__.py | eduzen/django-silk | 8f8d159a4209f4c294aba16bce3b1ca5789dc2d2 | [
"MIT"
] | 270 | 2018-01-10T10:24:53.000Z | 2022-03-24T11:12:23.000Z | silk/__init__.py | eduzen/django-silk | 8f8d159a4209f4c294aba16bce3b1ca5789dc2d2 | [
"MIT"
] | 210 | 2018-01-10T14:03:28.000Z | 2022-03-08T06:20:55.000Z | import django
from pkg_resources import DistributionNotFound, get_distribution
try:
__version__ = get_distribution("django-silk").version
except DistributionNotFound:
pass
if django.VERSION < (3, 2):
default_app_config = "silk.apps.SilkAppConfig"
| 23.727273 | 64 | 0.781609 | 30 | 261 | 6.5 | 0.7 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.137931 | 261 | 10 | 65 | 26.1 | 0.857778 | 0 | 0 | 0 | 0 | 0 | 0.130268 | 0.088123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c10e4cd01a66de5e4f2277a437f9c9432a902b97 | 734 | py | Python | tests/unit/destination/s3/test_delete.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 69 | 2016-06-29T16:13:55.000Z | 2022-03-21T06:38:37.000Z | tests/unit/destination/s3/test_delete.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 237 | 2016-09-28T02:12:34.000Z | 2022-03-25T13:32:23.000Z | tests/unit/destination/s3/test_delete.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 45 | 2017-01-04T21:20:27.000Z | 2021-12-29T10:42:22.000Z | import pytest
from botocore.exceptions import ClientError
from moto import mock_s3
@pytest.mark.parametrize('path, key', [
(
'test_server/hourly/file1.txt',
'test_server/hourly/file1.txt'
),
(
's3://test-bucket/test_server/hourly/file1.txt',
'test_server/hourly/file1.txt'
... | 22.242424 | 56 | 0.632153 | 93 | 734 | 4.752688 | 0.376344 | 0.090498 | 0.144796 | 0.190045 | 0.316742 | 0.217195 | 0.217195 | 0.217195 | 0.217195 | 0.217195 | 0 | 0.029144 | 0.252044 | 734 | 32 | 57 | 22.9375 | 0.775956 | 0 | 0 | 0.214286 | 0 | 0 | 0.23297 | 0.175749 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.142857 | 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 |
c10ffe303b3c81e693f07b2796ab3b8aa19158b1 | 853 | py | Python | designs.py | drbenvincent/Xu-GonzalezVallejo-Vincent | 9efc6791fef678b29066558b80f4924d30697ea5 | [
"MIT"
] | 2 | 2021-02-25T19:07:39.000Z | 2021-06-25T19:14:08.000Z | designs.py | drbenvincent/Xu-GonzalezVallejo-Vincent | 9efc6791fef678b29066558b80f4924d30697ea5 | [
"MIT"
] | null | null | null | designs.py | drbenvincent/Xu-GonzalezVallejo-Vincent | 9efc6791fef678b29066558b80f4924d30697ea5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
def generate_designs():
"""Generate designs (RA, DA, RB, DB). This should precisely match the
set of questions we used in the actual experiment."""
n = 50
RA_vals = np.array([6, 12, 18, 24, 30, 36, 42, 48, 54, 60])
DB_vals = np.array([7, 15, 29, 56, 101])
... | 25.088235 | 77 | 0.595545 | 138 | 853 | 3.601449 | 0.492754 | 0.070423 | 0.044266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053312 | 0.274326 | 853 | 33 | 78 | 25.848485 | 0.749596 | 0.274326 | 0 | 0 | 1 | 0 | 0.01318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c116287a6f4e0d0763da82de8a15b281f5079709 | 777 | py | Python | api/urls.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | 3 | 2017-08-08T18:55:44.000Z | 2020-10-16T22:01:43.000Z | api/urls.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | 31 | 2016-10-17T21:03:39.000Z | 2016-10-31T20:43:09.000Z | api/urls.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
from django.conf.urls import include, url
from .views import ProductSearchFiltersView, ProductSearchQueryView
"""
Ensure following is present in your project its urls.py:
from wagtailcommerce.api.router import WagtailcommerceAPIRouter
wagtailcommerce... | 29.884615 | 104 | 0.734878 | 84 | 777 | 6.654762 | 0.547619 | 0.093023 | 0.128801 | 0.060823 | 0.08229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155727 | 777 | 25 | 105 | 31.08 | 0.852134 | 0 | 0 | 0 | 0 | 0 | 0.223919 | 0.173028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c11e4809bba2299aae74cd934a78ad2360368983 | 1,252 | py | Python | base/migrations/0002_library_alter_book_author_alter_book_id.py | Fikrahelhifzi/Website_Library_Django | bc31acdd790c2a71def01776a49610903b02f7d9 | [
"MIT"
] | null | null | null | base/migrations/0002_library_alter_book_author_alter_book_id.py | Fikrahelhifzi/Website_Library_Django | bc31acdd790c2a71def01776a49610903b02f7d9 | [
"MIT"
] | null | null | null | base/migrations/0002_library_alter_book_author_alter_book_id.py | Fikrahelhifzi/Website_Library_Django | bc31acdd790c2a71def01776a49610903b02f7d9 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-25 03:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Library',
fields=[
... | 34.777778 | 98 | 0.552716 | 124 | 1,252 | 5.451613 | 0.427419 | 0.08284 | 0.106509 | 0.142012 | 0.619822 | 0.619822 | 0.579882 | 0.133136 | 0 | 0 | 0 | 0.036215 | 0.316294 | 1,252 | 35 | 99 | 35.771429 | 0.753505 | 0.035942 | 0 | 0.241379 | 1 | 0 | 0.091453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 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 |
c12c999dfefc35eb93c23752bbc009dcf25298c6 | 5,133 | py | Python | enaml/validator.py | rogererens/enaml | 06cd917dfa4f8b924e871a8c6360ce3ef2e45971 | [
"BSD-3-Clause-Clear"
] | 26 | 2016-04-01T18:49:31.000Z | 2020-07-21T22:19:46.000Z | enaml/validator.py | rogererens/enaml | 06cd917dfa4f8b924e871a8c6360ce3ef2e45971 | [
"BSD-3-Clause-Clear"
] | 29 | 2016-02-22T17:40:55.000Z | 2018-08-21T18:18:36.000Z | enaml/validator.py | rogererens/enaml | 06cd917dfa4f8b924e871a8c6360ce3ef2e45971 | [
"BSD-3-Clause-Clear"
] | 4 | 2016-08-29T13:07:19.000Z | 2018-11-04T01:31:46.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | 28.516667 | 79 | 0.591662 | 619 | 5,133 | 4.903069 | 0.277868 | 0.023064 | 0.019769 | 0.025041 | 0.509061 | 0.495552 | 0.416474 | 0.404613 | 0.3743 | 0.3743 | 0 | 0.003387 | 0.30976 | 5,133 | 179 | 80 | 28.675978 | 0.853232 | 0.590493 | 0 | 0.543478 | 0 | 0 | 0.001904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c13403e692580501a0e1ac7d0a170c14817e12a9 | 7,572 | py | Python | simulator/simulator.py | joristork/milovision | aeb09b9c75f7bc0900cb513079bbe08b3c439bbc | [
"MIT"
] | 8 | 2015-01-04T14:45:04.000Z | 2021-08-31T21:32:39.000Z | simulator/simulator.py | joristork/milovision | aeb09b9c75f7bc0900cb513079bbe08b3c439bbc | [
"MIT"
] | null | null | null | simulator/simulator.py | joristork/milovision | aeb09b9c75f7bc0900cb513079bbe08b3c439bbc | [
"MIT"
] | 2 | 2016-03-21T08:19:32.000Z | 2021-10-18T03:12:40.000Z | #!/usr/bin/env python
#
# Milovision: A camera pose estimation programme
#
# Copyright (C) 2013 Joris Stork
# See LICENSE.txt
#
# simulator.py
"""
:synopsis: Implements the simulation of camera operation in an environment with
fiducial markers. OpenGL based.
.. moduleauthor:: Joris Stork <joris@wintermut... | 31.55 | 90 | 0.620048 | 893 | 7,572 | 5.132139 | 0.326988 | 0.04364 | 0.022693 | 0.01571 | 0.141829 | 0.11259 | 0.093825 | 0.076806 | 0.076806 | 0.076806 | 0 | 0.00914 | 0.291997 | 7,572 | 239 | 91 | 31.682008 | 0.845738 | 0.034205 | 0 | 0.191176 | 0 | 0 | 0.03826 | 0 | 0 | 0 | 0 | 0.004184 | 0 | 0 | null | null | 0 | 0.095588 | null | null | 0.007353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c13ebe4a46e0f8b2ed384f67e586f826536fe359 | 2,863 | py | Python | pylith/problems/obsolete/TimeStepUniform.py | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | pylith/problems/obsolete/TimeStepUniform.py | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | pylith/problems/obsolete/TimeStepUniform.py | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | #!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | 25.336283 | 81 | 0.574572 | 288 | 2,863 | 5.659722 | 0.472222 | 0.04908 | 0.027607 | 0.013497 | 0.153374 | 0.136196 | 0.136196 | 0.136196 | 0.136196 | 0.050307 | 0 | 0.008842 | 0.20992 | 2,863 | 112 | 82 | 25.5625 | 0.71176 | 0.506462 | 0 | 0.068966 | 0 | 0 | 0.122627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c146f2524c92ca73e8a34cc487bd7fdd2a758d45 | 813 | py | Python | Music_Scripts/single_chromatic_keyboard.py | Matthix7/music_synthetiser | 3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188 | [
"MIT"
] | null | null | null | Music_Scripts/single_chromatic_keyboard.py | Matthix7/music_synthetiser | 3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188 | [
"MIT"
] | 4 | 2021-09-02T11:41:50.000Z | 2021-09-02T19:53:07.000Z | Music_Scripts/single_chromatic_keyboard.py | Matthix7/music_synthetiser | 3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188 | [
"MIT"
] | null | null | null | from pynput.keyboard import Key
keyboard = \
{
'a': 'Mi2',
'é': 'Fa2',
'q': 'Fa#2',
'z': 'Sol2',
'"': 'Sol#2',
's': 'La2',
'e': 'La#2',
"'": 'Si2',
'd': 'Do3',
'r': 'Do#3',
'(': 'Re3',
'f': 'Re#3',
't': 'Mi3',
... | 19.357143 | 31 | 0.239852 | 85 | 813 | 2.282353 | 0.741176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 0.464945 | 813 | 41 | 32 | 19.829268 | 0.363218 | 0 | 0 | 0 | 0 | 0 | 0.199262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1518dc51fcf2aa60d888beeede4582c13ff47ea | 921 | py | Python | soapfish/lib/attribute_dict.py | soapteam/soapfish | 3f9b531d5cf14a063edbda16a62ace23fabe6d06 | [
"BSD-3-Clause"
] | 20 | 2016-07-20T01:12:40.000Z | 2021-12-16T02:49:49.000Z | soapfish/lib/attribute_dict.py | FelixSchwarz/soapfish | d98a1d7e8b92897620810e75de97de598140fafb | [
"BSD-3-Clause"
] | 42 | 2015-01-17T18:54:50.000Z | 2016-06-28T07:06:18.000Z | soapfish/lib/attribute_dict.py | soapteam/soapfish | 3f9b531d5cf14a063edbda16a62ace23fabe6d06 | [
"BSD-3-Clause"
] | 13 | 2016-09-02T09:37:42.000Z | 2021-11-29T13:11:33.000Z | # License: Public Domain
# Authors: Felix Schwarz <felix.schwarz@oss.schwarz.eu>
#
# Version 1.0
# 1.0 (06.02.2010)
# - initial release
import unittest
__all__ = ['AttrDict']
class AttrDict(dict):
def __getattr__(self, name):
if name not in self:
raise AttributeError(f"'{self.__class__.__... | 25.583333 | 97 | 0.665581 | 123 | 921 | 4.715447 | 0.471545 | 0.103448 | 0.077586 | 0.093103 | 0.287931 | 0.255172 | 0.255172 | 0.255172 | 0.255172 | 0.255172 | 0 | 0.028926 | 0.211726 | 921 | 35 | 98 | 26.314286 | 0.769972 | 0.135722 | 0 | 0.105263 | 0 | 0 | 0.102662 | 0.034221 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c15820d993c153c81b265992bfbb429f7549caab | 256 | py | Python | gnes/__init__.py | hyzcn/gnes | a556ad287f30e271676b156dc7a47dd7b86956e9 | [
"Apache-2.0"
] | 2 | 2020-07-05T03:51:44.000Z | 2022-02-18T05:56:37.000Z | gnes/__init__.py | hyzcn/gnes | a556ad287f30e271676b156dc7a47dd7b86956e9 | [
"Apache-2.0"
] | null | null | null | gnes/__init__.py | hyzcn/gnes | a556ad287f30e271676b156dc7a47dd7b86956e9 | [
"Apache-2.0"
] | null | null | null |
# do not change this line manually
# this is managed by git tag and updated on every release
__version__ = '0.0.46'
# do not change this line manually
# this is managed by shell/make-proto.sh and updated on every execution
__proto_version__ = '0.0.10'
| 23.272727 | 71 | 0.75 | 45 | 256 | 4.066667 | 0.555556 | 0.054645 | 0.120219 | 0.163934 | 0.459016 | 0.459016 | 0.459016 | 0.459016 | 0.459016 | 0.459016 | 0 | 0.038278 | 0.183594 | 256 | 10 | 72 | 25.6 | 0.837321 | 0.746094 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c15b922369a02d422c3a7d01cd6432e8226df59d | 921 | py | Python | darts/app_data/AppVoice.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | darts/app_data/AppVoice.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | darts/app_data/AppVoice.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | import playsound
from darts.errors import ListenError
from tools import VoiceInterface
class AppVoice:
def __init__(self, lang_IETF: str):
self.vi: VoiceInterface = VoiceInterface(
time_limit=2,
temp_file='temp.mp3',
lang_IETF=lang_IETF
)
@property
def... | 24.236842 | 65 | 0.634093 | 119 | 921 | 4.705882 | 0.378151 | 0.114286 | 0.032143 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.27253 | 921 | 37 | 66 | 24.891892 | 0.832836 | 0 | 0 | 0 | 0 | 0 | 0.008686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.111111 | 0.037037 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c15e27103950f6bfd4c5875733bb0197f98b3575 | 802 | py | Python | datasets/zoo/features.py | mimirsystems/20Qs | 7648da866ecff1007cc89f5fa4f212bed1cfffd1 | [
"BSD-3-Clause"
] | 4 | 2019-04-20T11:01:09.000Z | 2021-12-26T17:27:46.000Z | datasets/zoo/features.py | mimirsystems/20Qs | 7648da866ecff1007cc89f5fa4f212bed1cfffd1 | [
"BSD-3-Clause"
] | null | null | null | datasets/zoo/features.py | mimirsystems/20Qs | 7648da866ecff1007cc89f5fa4f212bed1cfffd1 | [
"BSD-3-Clause"
] | 1 | 2019-08-26T10:31:29.000Z | 2019-08-26T10:31:29.000Z | YES_NO = ["No", "Yes"]
FEATURES = [
("Name", None),
("Does it have fur?", YES_NO),
("Does it have feathers?", YES_NO),
("Does it lay eggs?", YES_NO),
("Does it produce milk?", YES_NO),
("Can it fly?", YES_NO),
("Can it swim?", YES_NO),
("Is it a predator?", YES_NO),
("Does it have t... | 33.416667 | 82 | 0.532419 | 120 | 802 | 3.425 | 0.4 | 0.194647 | 0.175182 | 0.214112 | 0.231144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234414 | 802 | 23 | 83 | 34.869565 | 0.669381 | 0 | 0 | 0 | 0 | 0 | 0.490025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c1604acea700bd98539d7b6db87e1ee3305bce19 | 311 | py | Python | backend/app/app/tools/5g_nr_radio.py | tgogos/NEF_emulator | be126a1967e11148f02f526be4ab192b6ce6df68 | [
"Apache-2.0"
] | 10 | 2022-01-27T12:13:45.000Z | 2022-03-22T10:44:37.000Z | backend/app/app/tools/5g_nr_radio.py | EVOLVED-5G/NEF_emulator | bcbce43bf1226a4ddd81db8662c982460cff2583 | [
"Apache-2.0"
] | 6 | 2022-01-28T14:22:17.000Z | 2022-02-09T13:31:45.000Z | backend/app/app/tools/5g_nr_radio.py | EVOLVED-5G/NEF_emulator | bcbce43bf1226a4ddd81db8662c982460cff2583 | [
"Apache-2.0"
] | 2 | 2022-01-27T12:04:18.000Z | 2022-01-27T12:18:59.000Z | import math
channel_bw = input("Enter the 5G Channel Bandwidth (MHz): ")
scs = input("Enter the Subcarrier Spacing (KHz): ")
mimo_layers = input("Enter the number of MIMO layers: ")
class prbs:
def __init__(self, channel_bw, scs) -> None:
self.channel_bw = channel_bw
self.scs = scs
| 23.923077 | 60 | 0.665595 | 44 | 311 | 4.5 | 0.545455 | 0.181818 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.22508 | 311 | 13 | 61 | 23.923077 | 0.817427 | 0 | 0 | 0 | 0 | 0 | 0.342949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
c1660fb74c3cfab7879a7b061102a8fda43cee91 | 2,567 | py | Python | modules/reverseip.py | noraj/SiteBroker | 98f76ea64c307c9b21ba11f04720b14a1115747e | [
"MIT"
] | null | null | null | modules/reverseip.py | noraj/SiteBroker | 98f76ea64c307c9b21ba11f04720b14a1115747e | [
"MIT"
] | 3 | 2021-03-31T18:54:36.000Z | 2021-12-13T19:51:45.000Z | modules/reverseip.py | fabiocarlettiryuw/test | 4c0ff7efe71aaeaed6b96cae5e2697e73e49e48d | [
"MIT"
] | 1 | 2021-01-11T17:15:52.000Z | 2021-01-11T17:15:52.000Z | """
_______________.___.
\______ \__ | |
| | _// | |
| | \\____ |
|______ // ______|
\/ \/
_____ _______ ________ __________.__ ._____________ __________
/ _ \ ____ \ _ \ ____ \_____ \___ __\______ | | ____ |__\__ _____... | 35.652778 | 129 | 0.523568 | 226 | 2,567 | 4.951327 | 0.451327 | 0.050045 | 0.081323 | 0.050045 | 0.198391 | 0.134048 | 0.09294 | 0.09294 | 0 | 0 | 0 | 0.004494 | 0.306584 | 2,567 | 71 | 130 | 36.15493 | 0.624157 | 0.012855 | 0 | 0.093023 | 0 | 0 | 0.213244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | 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 |
c16cf8e959260bcb2dec8f1ac806c120973184f6 | 337,930 | py | Python | hostscli/websites/list_misc.py | dhilipsiva/hosts | cabf313e93c4eb733f917e6dd7f08a9f0a9d294d | [
"MIT"
] | 18 | 2016-12-28T15:04:36.000Z | 2019-08-01T03:45:59.000Z | hostscli/websites/list_misc.py | dhilipsiva/hosts | cabf313e93c4eb733f917e6dd7f08a9f0a9d294d | [
"MIT"
] | 3 | 2016-12-29T13:41:00.000Z | 2021-07-30T11:23:26.000Z | hostscli/websites/list_misc.py | dhilipsiva/hosts | cabf313e93c4eb733f917e6dd7f08a9f0a9d294d | [
"MIT"
] | 6 | 2017-01-17T15:36:05.000Z | 2021-08-28T03:06:26.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim: fenc=utf-8
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
#
"""
File name: list_misc.py
Author: dhilipsiva <dhilipsiva@gmail.com>
Date created: 2017-01-15
"""
DOMAINS = [
"006.free-counter.co.uk",
"006.freecounters.co.uk",
"0101011.com",
... | 26.935278 | 108 | 0.621383 | 40,176 | 337,930 | 5.226578 | 0.262769 | 0.027288 | 0.016287 | 0.00561 | 0.006353 | 0.000857 | 0.000571 | 0.000276 | 0 | 0 | 0 | 0.035726 | 0.185533 | 337,930 | 12,545 | 109 | 26.937425 | 0.727202 | 0.000672 | 0 | 0.00016 | 0 | 0.00016 | 0.703077 | 0.329731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.000399 | 0 | 0 | 0 | 0.000798 | 0 | 0 | 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 |
c16d8a2bcc39a4a908f65d25d1f665a8e5a05b98 | 26,726 | py | Python | ibeatles/interfaces/ui_fittingWindow.py | indudhiman/bragg-edge | 56af0a448534ef9cb5428879ba900e194dc05db2 | [
"MIT"
] | null | null | null | ibeatles/interfaces/ui_fittingWindow.py | indudhiman/bragg-edge | 56af0a448534ef9cb5428879ba900e194dc05db2 | [
"MIT"
] | null | null | null | ibeatles/interfaces/ui_fittingWindow.py | indudhiman/bragg-edge | 56af0a448534ef9cb5428879ba900e194dc05db2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'designer/ui_fittingWindow.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 63.182033 | 215 | 0.737596 | 2,841 | 26,726 | 6.727561 | 0.115452 | 0.031392 | 0.041019 | 0.058704 | 0.587349 | 0.470308 | 0.391828 | 0.325224 | 0.178727 | 0.127243 | 0 | 0.021553 | 0.15629 | 26,726 | 422 | 216 | 63.331754 | 0.826068 | 0.007334 | 0 | 0.15122 | 1 | 0 | 0.078388 | 0.00822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004878 | false | 0 | 0.002439 | 0 | 0.009756 | 0 | 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 |
c17e1d2db2d3339c2ddc12c3fe520913461aee47 | 1,948 | py | Python | dashboard/models.py | Skchoudhary/stacknews | 5f66debb93fb847569d4bb0512c02a5866f9ecbf | [
"Apache-2.0"
] | null | null | null | dashboard/models.py | Skchoudhary/stacknews | 5f66debb93fb847569d4bb0512c02a5866f9ecbf | [
"Apache-2.0"
] | null | null | null | dashboard/models.py | Skchoudhary/stacknews | 5f66debb93fb847569d4bb0512c02a5866f9ecbf | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.db.models import CharField, URLField, IntegerField, BooleanField
from django.utils import timezone
from django.urls import reverse
# CONSTANTS
POST_TYPE = (("P", "Post"), ("J", "Job Post"), ("AMA", "Ask Me Anything"))
class BasicDet... | 27.43662 | 85 | 0.695585 | 249 | 1,948 | 5.285141 | 0.385542 | 0.037994 | 0.054711 | 0.036474 | 0.265957 | 0.191489 | 0.051672 | 0 | 0 | 0 | 0 | 0.011935 | 0.182752 | 1,948 | 70 | 86 | 27.828571 | 0.814698 | 0.083162 | 0 | 0.114286 | 0 | 0 | 0.052754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0.114286 | 0.942857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c1937b7db5e457ca919a1d1a8af293f4511e8c25 | 3,592 | py | Python | services/internal/protocol/lobby_custom_pb2.py | yanxianhe/go-xserver | 96491ade4a78371539e4baed3165a05e7de1aea1 | [
"MIT"
] | 160 | 2018-12-17T03:03:04.000Z | 2022-03-18T16:37:12.000Z | services/internal/protocol/lobby_custom_pb2.py | yanxianhe/go-xserver | 96491ade4a78371539e4baed3165a05e7de1aea1 | [
"MIT"
] | 3 | 2019-02-11T15:26:13.000Z | 2019-05-15T16:53:11.000Z | services/internal/protocol/lobby_custom_pb2.py | yanxianhe/go-xserver | 96491ade4a78371539e4baed3165a05e7de1aea1 | [
"MIT"
] | 31 | 2019-01-08T03:32:55.000Z | 2021-11-24T10:40:50.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: lobby_custom.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _... | 30.700855 | 272 | 0.756682 | 477 | 3,592 | 5.327044 | 0.262055 | 0.044077 | 0.061393 | 0.047226 | 0.568674 | 0.46832 | 0.386462 | 0.386462 | 0.341598 | 0.306966 | 0 | 0.029879 | 0.124165 | 3,592 | 116 | 273 | 30.965517 | 0.777813 | 0.078508 | 0 | 0.526882 | 1 | 0.010753 | 0.181956 | 0.118377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 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 |
c1938953d0bd715a40501e0ce990ac57a7047875 | 440 | py | Python | competition_script_template.py | derpferd/CYLGame | 03501b98ca5222019ecee4eb5d57b0005d9a8f37 | [
"MIT"
] | null | null | null | competition_script_template.py | derpferd/CYLGame | 03501b98ca5222019ecee4eb5d57b0005d9a8f37 | [
"MIT"
] | null | null | null | competition_script_template.py | derpferd/CYLGame | 03501b98ca5222019ecee4eb5d57b0005d9a8f37 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
from apple_game import AppleFinder
from littlepython import Compiler
from CYLGame.Database import GameDB
from CYLGame.Comp import sim_competition
assert len(sys.argv) >= 2
comp_token = sys.argv[1]
game = AppleFinder
compiler = Compiler()
gamedb = GameDB(sys.argv[2])
assert gamedb.is_comp... | 25.882353 | 100 | 0.8 | 66 | 440 | 5.212121 | 0.424242 | 0.104651 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015228 | 0.104545 | 440 | 17 | 100 | 25.882353 | 0.857868 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c1a34bc759182463b0bc4398edc00b54809d30da | 7,793 | py | Python | pomodorr/projects/migrations/0001_initial.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | null | null | null | pomodorr/projects/migrations/0001_initial.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | 15 | 2020-04-11T18:30:57.000Z | 2020-07-05T09:37:43.000Z | pomodorr/projects/migrations/0001_initial.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-27 15:05
import colorfield.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
... | 53.744828 | 166 | 0.601566 | 764 | 7,793 | 5.985602 | 0.158377 | 0.033457 | 0.036737 | 0.043298 | 0.702602 | 0.664115 | 0.65187 | 0.612071 | 0.601793 | 0.507763 | 0 | 0.008249 | 0.253304 | 7,793 | 144 | 167 | 54.118056 | 0.777625 | 0.005774 | 0 | 0.547445 | 1 | 0 | 0.154402 | 0.017299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051095 | 0 | 0.080292 | 0 | 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 |
c1a4912fe64fa7017bbeef513645fe29e5d3ec53 | 707 | py | Python | gamifiededucation/wsgi.py | wallysalami/gamified-education | 720a96c40f2cbd061979f86b8541b2f0b4b7cddd | [
"MIT"
] | 10 | 2018-07-04T18:21:00.000Z | 2021-12-25T07:41:12.000Z | gamifiededucation/wsgi.py | wallysalami/gamified-education | 720a96c40f2cbd061979f86b8541b2f0b4b7cddd | [
"MIT"
] | null | null | null | gamifiededucation/wsgi.py | wallysalami/gamified-education | 720a96c40f2cbd061979f86b8541b2f0b4b7cddd | [
"MIT"
] | 1 | 2021-09-06T17:57:53.000Z | 2021-09-06T17:57:53.000Z | """
WSGI config for gamifiededucation project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django im... | 29.458333 | 78 | 0.813296 | 96 | 707 | 5.78125 | 0.5625 | 0.032432 | 0.064865 | 0.05045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004658 | 0.089109 | 707 | 23 | 79 | 30.73913 | 0.857143 | 0.316832 | 0 | 0 | 0 | 0 | 0.126316 | 0.101053 | 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 |
c1a53bfb10c27ff086bc85f613f748cc5462a669 | 400 | py | Python | webapp/viewer/forms.py | impactlab/jps-handoff | 653956db0a2d3bdcb8b22252f80846bc8ce3764c | [
"MIT"
] | 2 | 2017-08-29T16:09:02.000Z | 2021-09-06T14:15:43.000Z | webapp/viewer/forms.py | impactlab/jps-handoff | 653956db0a2d3bdcb8b22252f80846bc8ce3764c | [
"MIT"
] | null | null | null | webapp/viewer/forms.py | impactlab/jps-handoff | 653956db0a2d3bdcb8b22252f80846bc8ce3764c | [
"MIT"
] | 5 | 2016-01-14T21:40:23.000Z | 2020-08-29T19:52:27.000Z | from django import forms
from django_select2 import fields, widgets
from models import Group
class GroupChoices(fields.AutoModelSelect2TagField):
queryset = Group.objects
search_fields = ['name__icontains', ]
def get_model_field_values(self, value):
return {'tag': value}
class GroupFilterForm(... | 23.529412 | 52 | 0.72 | 45 | 400 | 6.244444 | 0.666667 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.2025 | 400 | 16 | 53 | 25 | 0.874608 | 0 | 0 | 0 | 0 | 0 | 0.045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c1a5656cb224bc12c255e9a13b4da372e216ecdf | 1,002 | py | Python | Web1/apps/productos/migrations/0006_compra.py | franciscosf/PalerpWeb | 81bbc0859ffbb40db7b336a9413f7eb35e95de3c | [
"MIT"
] | null | null | null | Web1/apps/productos/migrations/0006_compra.py | franciscosf/PalerpWeb | 81bbc0859ffbb40db7b336a9413f7eb35e95de3c | [
"MIT"
] | null | null | null | Web1/apps/productos/migrations/0006_compra.py | franciscosf/PalerpWeb | 81bbc0859ffbb40db7b336a9413f7eb35e95de3c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2018-03-27 22:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | 33.4 | 121 | 0.622754 | 105 | 1,002 | 5.771429 | 0.666667 | 0.039604 | 0.046205 | 0.072607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045093 | 0.247505 | 1,002 | 29 | 122 | 34.551724 | 0.758621 | 0.066866 | 0 | 0 | 1 | 0 | 0.085837 | 0.024678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1a818d32df3202768f1f984b98523185e2cc631 | 824 | py | Python | Bugscan_exploits-master/exp_list/exp-1231.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-1231.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-1231.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__Author__ = 01001000entai
#_PlugName_ = ipowercms weak password
def assign(service, arg):
if service == 'ipowercms':
return True, arg
def audit(arg):
#No.1 http://www.wooyun.org/bugs/wooyun-2010-0110152
payloads = ["m/manager/login.xml.php?username=admin&pas... | 32.96 | 88 | 0.612864 | 108 | 824 | 4.527778 | 0.592593 | 0.042945 | 0.05317 | 0.06544 | 0.241309 | 0.130879 | 0.130879 | 0 | 0 | 0 | 0 | 0.051242 | 0.218447 | 824 | 24 | 89 | 34.333333 | 0.708075 | 0.18932 | 0 | 0 | 0 | 0.0625 | 0.324284 | 0.191554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c1aca929727bc32a3da21f0bd7ef95d6f7d17115 | 778 | py | Python | stats/migrations/0010_auto_20200502_2242.py | openkamer/openkamer | 732facf01f2bb4d1649b0c6892466ae9e0982bd6 | [
"MIT"
] | 33 | 2016-05-12T13:16:23.000Z | 2022-03-11T10:21:26.000Z | stats/migrations/0010_auto_20200502_2242.py | openkamer/openkamer | 732facf01f2bb4d1649b0c6892466ae9e0982bd6 | [
"MIT"
] | 69 | 2016-05-23T15:35:39.000Z | 2021-12-13T19:46:21.000Z | stats/migrations/0010_auto_20200502_2242.py | openkamer/openkamer | 732facf01f2bb4d1649b0c6892466ae9e0982bd6 | [
"MIT"
] | 5 | 2016-05-17T19:49:05.000Z | 2020-06-09T13:37:25.000Z | # Generated by Django 2.2.12 on 2020-05-02 20:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stats', '0009_auto_20171026_2217'),
]
operations = [
migrations.AlterField(
model_name='plot',
name='type',
... | 40.947368 | 447 | 0.641388 | 96 | 778 | 5.135417 | 0.614583 | 0.048682 | 0.154158 | 0.077079 | 0.097363 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.205656 | 778 | 18 | 448 | 43.222222 | 0.739482 | 0.059126 | 0 | 0 | 1 | 0 | 0.415068 | 0.031507 | 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 |
c1b2bacf39a0044556742dafef4a6fdd0cf953bd | 12,192 | py | Python | v0/aia_eis_v0/ml_sl/rf/rfReviseRes_0.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | 1 | 2022-03-02T12:57:19.000Z | 2022-03-02T12:57:19.000Z | v0/aia_eis_v0/ml_sl/rf/rfReviseRes_0.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | v0/aia_eis_v0/ml_sl/rf/rfReviseRes_0.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | import copy
import os
from utils.file_utils.dataset_reader_pack.ml_dataset_reader import get_TV_T_dataset, get_T_V_T_dataset
from ml_sl.rf.dt_0 import Node, save_node, load_node
from ml_sl.rf.rf_0 import RF, save_random_forest, load_random_forest
from ml_sl.ml_data_wrapper import pack_list_2_list, single_point_list_2_... | 63.5 | 123 | 0.754511 | 2,117 | 12,192 | 4.21351 | 0.116202 | 0.027803 | 0.123879 | 0.107623 | 0.640471 | 0.616256 | 0.595516 | 0.572982 | 0.53778 | 0.528363 | 0 | 0.252988 | 0.087352 | 12,192 | 191 | 124 | 63.832461 | 0.548665 | 0.038878 | 0 | 0.069444 | 0 | 0.027778 | 0.125642 | 0.086463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.111111 | 0 | 0.138889 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1bac643614c07df81bd3a6a42e7c50699020b4d | 643 | py | Python | migrations/versions/800_tweak_g9_lots.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 25 | 2015-01-14T10:45:13.000Z | 2021-05-26T17:21:41.000Z | migrations/versions/800_tweak_g9_lots.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 641 | 2015-01-15T11:10:50.000Z | 2021-06-15T22:18:42.000Z | migrations/versions/800_tweak_g9_lots.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 22 | 2015-06-13T15:37:45.000Z | 2021-08-19T23:40:49.000Z | """some lots are products for G-Cloud 9
Revision ID: 800
Revises: 790
Create Date: 2017-01-30 10:00:00.000000
"""
# revision identifiers, used by Alembic.
revision = '800'
down_revision = '790'
from alembic import op
def upgrade():
# Update G-Cloud 9 lot records
op.execute("""
UPDATE lots SET dat... | 20.09375 | 86 | 0.62675 | 80 | 643 | 5.025 | 0.6 | 0.029851 | 0.034826 | 0.094527 | 0.368159 | 0.368159 | 0.368159 | 0 | 0 | 0 | 0 | 0.067327 | 0.214619 | 643 | 31 | 87 | 20.741935 | 0.728713 | 0.273717 | 0 | 0.285714 | 0 | 0 | 0.672489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1bf828cd48b24f6ee76c678f5905dfecf65d1e1 | 1,259 | py | Python | docxx/parts/comments.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | 1 | 2022-01-19T22:09:25.000Z | 2022-01-19T22:09:25.000Z | docxx/parts/comments.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | docxx/parts/comments.py | betasewer/python-docx-xtended | 97e6a979c42bcb79d5bbe74ca4602dafdd4e6016 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
|EndnotesPart|FootnotesPart| and closely related objects
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import os
from docxx.opc.constants import CONTENT_TYPE as CT
from docxx.opc.packuri import PackURI
from docxx.opc.part import XmlPart
from doc... | 25.18 | 81 | 0.641779 | 151 | 1,259 | 5.192053 | 0.483444 | 0.057398 | 0.045918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002153 | 0.262113 | 1,259 | 49 | 82 | 25.693878 | 0.841765 | 0.191422 | 0 | 0.074074 | 0 | 0 | 0.054198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.296296 | 0.037037 | 0.555556 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c1c00b48ebd0a62cd894f3f4d527817d27f65850 | 342 | py | Python | examples/ImageToObjectPrediction/run.py | takahasi/docker-openrtm-tools | ee5f7df650df8d4100c7237af9ad0121f3f9d452 | [
"MIT"
] | 1 | 2017-10-03T06:26:52.000Z | 2017-10-03T06:26:52.000Z | examples/ImageToObjectPrediction/run.py | takahasi/docker-openrtm-examples | ee5f7df650df8d4100c7237af9ad0121f3f9d452 | [
"MIT"
] | null | null | null | examples/ImageToObjectPrediction/run.py | takahasi/docker-openrtm-examples | ee5f7df650df8d4100c7237af9ad0121f3f9d452 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
import os
def main():
os.system("git clone --depth 1 https://github.com/takahasi/ImageToObjectPrediction.git")
os.system("docker build --network=host -t sample .")
os.system("docker run --network=host -it sample")
return
if __name__ == "... | 21.375 | 92 | 0.634503 | 45 | 342 | 4.644444 | 0.711111 | 0.114833 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007117 | 0.178363 | 342 | 15 | 93 | 22.8 | 0.736655 | 0.166667 | 0 | 0 | 0 | 0 | 0.560284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c0dafe1ac7578f5b121b33c5693593157ca726 | 1,462 | py | Python | tests/unit/test_08_array_space.py | PureStorage-OpenConnect/pure-fb-prometheus-exporter | 53fd72a2a858a60d17d4ca4ade1d82540596f9f0 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_08_array_space.py | PureStorage-OpenConnect/pure-fb-prometheus-exporter | 53fd72a2a858a60d17d4ca4ade1d82540596f9f0 | [
"Apache-2.0"
] | 2 | 2022-02-15T21:30:25.000Z | 2022-02-16T15:29:48.000Z | tests/unit/test_08_array_space.py | PureStorage-OpenConnect/pure-fb-prometheus-exporter | 53fd72a2a858a60d17d4ca4ade1d82540596f9f0 | [
"Apache-2.0"
] | null | null | null | from pure_fb_openmetrics_exporter.flashblade_collector.flashblade_metrics.array_space_metrics import ArraySpaceMetrics
def test_array_space_name(fb_client):
array_space = ArraySpaceMetrics(fb_client)
for m in array_space.get_metrics():
for s in m.samples:
assert s.name in ['purefb_array_sp... | 44.30303 | 118 | 0.563611 | 162 | 1,462 | 4.753086 | 0.314815 | 0.207792 | 0.124675 | 0.066234 | 0.497403 | 0.497403 | 0.497403 | 0.497403 | 0.497403 | 0.497403 | 0 | 0.00106 | 0.354993 | 1,462 | 32 | 119 | 45.6875 | 0.815483 | 0 | 0 | 0.321429 | 0 | 0 | 0.178523 | 0.120383 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1cea795d0ef93ac61b379590ae47689c9bf9aaa | 2,923 | py | Python | supertoll_python_application.py | headmyshoulder/code_template | 3bed2241f62c49244c3b6713e8e14007d4f0c35d | [
"BSL-1.0"
] | null | null | null | supertoll_python_application.py | headmyshoulder/code_template | 3bed2241f62c49244c3b6713e8e14007d4f0c35d | [
"BSL-1.0"
] | null | null | null | supertoll_python_application.py | headmyshoulder/code_template | 3bed2241f62c49244c3b6713e8e14007d4f0c35d | [
"BSL-1.0"
] | null | null | null | #! /usr/bin/python
import os
import helpers
import copyright_notes
filename_help = "Output python name(s)"
postgres_help = "Include postgres in argument parser."
template = """#! /usr/bin/python
\"\"\" $FILENAME \"\"\"
__date__ = "$DATE"
__author__ = "$AUTHOR"
__email__ = "$AUTHOREMAIL"
$INCLUDES
$ARGPARSE
... | 28.656863 | 138 | 0.62778 | 278 | 2,923 | 6.42446 | 0.348921 | 0.020157 | 0.013438 | 0.023516 | 0.234043 | 0.234043 | 0.234043 | 0.234043 | 0.234043 | 0.192609 | 0 | 0.001846 | 0.258638 | 2,923 | 101 | 139 | 28.940594 | 0.822335 | 0.005816 | 0 | 0.191176 | 0 | 0.014706 | 0.467126 | 0.069535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.132353 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c1d47b7c5c5353f21a615e413202d2d31721d351 | 1,855 | py | Python | hard-gists/5466822/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/5466822/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/5466822/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/python
#increment the SOA by 1 - I know we could do better
import MySQLdb, sys
pdns_backend_config_file="/etc/powerdns/pdns.d/pdns.local.gmysql" # this is the file where mysql access is defined for pdns
a=open(pdns_backend_config_file)
domain=sys.argv[1] # stupid assumption
def getConfig(confFile):
""... | 29.444444 | 123 | 0.643666 | 249 | 1,855 | 4.75502 | 0.437751 | 0.040541 | 0.043074 | 0.053209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005479 | 0.212938 | 1,855 | 62 | 124 | 29.919355 | 0.805479 | 0.075472 | 0 | 0.041667 | 0 | 0 | 0.210122 | 0.024343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.020833 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c1d5e4f9d3d491c14b4a7526fb703e401a7301a4 | 8,073 | py | Python | build/pyparsing/examples/idlParse.py | diegopradogesto/MatrixWeb | 4996f516fd0a90056c092d8991474ccb802d6215 | [
"MIT"
] | null | null | null | build/pyparsing/examples/idlParse.py | diegopradogesto/MatrixWeb | 4996f516fd0a90056c092d8991474ccb802d6215 | [
"MIT"
] | null | null | null | build/pyparsing/examples/idlParse.py | diegopradogesto/MatrixWeb | 4996f516fd0a90056c092d8991474ccb802d6215 | [
"MIT"
] | null | null | null | #
# idlparse.py
#
# an example of using the parsing module to be able to process a subset of the CORBA IDL grammar
#
# Copyright (c) 2003, Paul McGuire
#
from pyparsing import Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore, \
Forward, NotAny, delimitedList, oneOf, Group, Optional, Combi... | 36.201794 | 139 | 0.507866 | 654 | 8,073 | 6.154434 | 0.316514 | 0.017888 | 0.017888 | 0.025342 | 0.165466 | 0.165466 | 0.165466 | 0.142609 | 0.142609 | 0.119255 | 0 | 0.011893 | 0.375077 | 8,073 | 222 | 140 | 36.364865 | 0.785927 | 0.078162 | 0 | 0.042373 | 0 | 0 | 0.07091 | 0.009748 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016949 | null | null | 0.076271 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c1d8af6ec8e07310787c6123cb021012de961502 | 300 | py | Python | Idat_Python2022/Semana_5/examen/ExamenCalculoArea.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_5/examen/ExamenCalculoArea.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_5/examen/ExamenCalculoArea.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | #c. Se tiene que calcular el área de un rombo, teniendo en cuenta que:
print("¡Calcular área de un rombo!")
diagonal_Mayor=float(input("Ingrese diagonal mayor= "))
Diagonal_Menor=float(input("Ingrese Diagonal menor = "))
area=(diagonal_Mayor*Diagonal_Menor)/2
print("El area de un Rombo es = ",area)
| 42.857143 | 70 | 0.753333 | 49 | 300 | 4.55102 | 0.489796 | 0.053812 | 0.121076 | 0.116592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.123333 | 300 | 6 | 71 | 50 | 0.840304 | 0.23 | 0 | 0 | 0 | 0 | 0.43913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
c1d99aee5ce40ad10e61531e67fa6f762ba75049 | 3,246 | py | Python | OPA2Vec_Prediction.py | bio-ontology-research-group/predCAN | cfe272de6d54cf9c0c776ff34ec10e116e4fa845 | [
"BSD-2-Clause"
] | 5 | 2019-10-01T18:07:37.000Z | 2020-12-19T11:09:01.000Z | OPA2Vec_Prediction.py | bio-ontology-research-group/predCAN | cfe272de6d54cf9c0c776ff34ec10e116e4fa845 | [
"BSD-2-Clause"
] | null | null | null | OPA2Vec_Prediction.py | bio-ontology-research-group/predCAN | cfe272de6d54cf9c0c776ff34ec10e116e4fa845 | [
"BSD-2-Clause"
] | 4 | 2019-04-16T23:17:20.000Z | 2020-09-12T14:26:32.000Z | import numpy as np
import pandas as pd
import csv
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import ShuffleSplit
from sklearn.preprocessing import label_binarize
from sklearn.multiclass import OneVsRestClassifier
from sklearn.mod... | 52.354839 | 527 | 0.669747 | 543 | 3,246 | 3.887661 | 0.395948 | 0.078162 | 0.042634 | 0.056845 | 0.301753 | 0.21838 | 0.21838 | 0.21838 | 0.197537 | 0.197537 | 0 | 0.147323 | 0.073629 | 3,246 | 61 | 528 | 53.213115 | 0.554706 | 0.026802 | 0 | 0 | 0 | 0 | 0.13583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c1e2e6fdb1d392958ff48a03a6aaa9fa23a43b3f | 1,459 | py | Python | tests/test_bkashwebhooklistener.py | vubon/bkash-webhook | c0c17ea549e43bc247f056e98fec0d677a2c60d8 | [
"MIT"
] | 9 | 2020-05-30T13:40:58.000Z | 2021-04-10T17:04:08.000Z | tests/test_bkashwebhooklistener.py | vubon/bkash-webhook | c0c17ea549e43bc247f056e98fec0d677a2c60d8 | [
"MIT"
] | 1 | 2020-05-30T14:25:33.000Z | 2020-05-31T18:45:29.000Z | tests/test_bkashwebhooklistener.py | vubon/bkash-webhook | c0c17ea549e43bc247f056e98fec0d677a2c60d8 | [
"MIT"
] | 2 | 2021-07-03T05:57:35.000Z | 2021-11-09T04:43:10.000Z | import os
import json
import unittest
from bkash_webhook import *
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
def file_reader(path: str) -> dict:
with open(path) as reader:
return json.loads(reader.read())
class BKashWebhookListenerTest(unittest.TestCase):
def setUp(self) -> None:
... | 36.475 | 119 | 0.742975 | 154 | 1,459 | 6.785714 | 0.357143 | 0.130144 | 0.14067 | 0.117703 | 0.388517 | 0.27177 | 0.216268 | 0.216268 | 0.216268 | 0.216268 | 0 | 0.021294 | 0.163125 | 1,459 | 39 | 120 | 37.410256 | 0.834562 | 0 | 0 | 0.142857 | 0 | 0 | 0.143249 | 0.030843 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.214286 | false | 0 | 0.142857 | 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 |
c1e9e2f75bafca632e48aaa50f85b90453703637 | 7,324 | py | Python | CTK/Plugin.py | pigmej/CTK | f2e15a190bb5b0c3a6bba3baeeee896da43b97a6 | [
"BSD-3-Clause"
] | 1 | 2018-08-27T11:56:48.000Z | 2018-08-27T11:56:48.000Z | CTK/Plugin.py | pigmej/CTK | f2e15a190bb5b0c3a6bba3baeeee896da43b97a6 | [
"BSD-3-Clause"
] | null | null | null | CTK/Plugin.py | pigmej/CTK | f2e15a190bb5b0c3a6bba3baeeee896da43b97a6 | [
"BSD-3-Clause"
] | null | null | null | # CTK: Cherokee Toolkit
#
# Authors:
# Alvaro Lopez Ortega <alvaro@alobbs.com>
#
# Copyright (C) 2010-2011 Alvaro Lopez Ortega
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License as published by the Free Software Foundation.... | 27.954198 | 88 | 0.58124 | 905 | 7,324 | 4.544751 | 0.286188 | 0.005835 | 0.015804 | 0.013859 | 0.105762 | 0.07221 | 0.041332 | 0.029176 | 0.029176 | 0 | 0 | 0.00643 | 0.29929 | 7,324 | 261 | 89 | 28.061303 | 0.795012 | 0.166439 | 0 | 0.113924 | 0 | 0 | 0.183559 | 0.026907 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | null | null | 0.006329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c1ed6b19c3126a42cd19a4a745243922701bad35 | 586 | py | Python | sphinx/fabfile.py | hhuuggoo/bokeh | cc274a5003edf91804b49bd933c99644fdb0a9fc | [
"BSD-3-Clause"
] | 2 | 2020-04-07T18:55:04.000Z | 2021-02-27T13:33:23.000Z | sphinx/fabfile.py | jeycin/bokeh | 8bf4a6f626c505dcb9c525409c0f74debf4499d7 | [
"BSD-3-Clause"
] | null | null | null | sphinx/fabfile.py | jeycin/bokeh | 8bf4a6f626c505dcb9c525409c0f74debf4499d7 | [
"BSD-3-Clause"
] | null | null | null | from fabric.api import run, env, roles
from fabric.contrib.project import rsync_project
env.roledefs = {
'web': ['bokeh.pydata.org']}
@roles('web')
def deploy(user=False):
if user:
env.user = user
run("rm -rf /www/bokeh-old")
run("cp -ar /www/bokeh-latest /www/bokeh-old")
run("rm /www/boke... | 27.904762 | 52 | 0.62116 | 91 | 586 | 3.945055 | 0.43956 | 0.245125 | 0.155989 | 0.077994 | 0.250696 | 0.150418 | 0.150418 | 0.150418 | 0.150418 | 0 | 0 | 0 | 0.197952 | 586 | 20 | 53 | 29.3 | 0.76383 | 0 | 0 | 0.111111 | 0 | 0 | 0.395904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1f0d61e124017a83128648020bdc9f133eadfc1 | 221 | py | Python | sum.py | bs10081/NCNU_Python_Class | 1f0f526d152b64626f1f4a3b4723e18026a97429 | [
"MIT"
] | null | null | null | sum.py | bs10081/NCNU_Python_Class | 1f0f526d152b64626f1f4a3b4723e18026a97429 | [
"MIT"
] | null | null | null | sum.py | bs10081/NCNU_Python_Class | 1f0f526d152b64626f1f4a3b4723e18026a97429 | [
"MIT"
] | null | null | null | a = [1, 2, 3, 4]
sumNum = 0
for i in a:
# In the for loop, "i" will sequentially read the values in list a.
sumNum += i
# sumNum = sumNum + i, means, 0 + 1 > (0+1) + 2 > (1+2) + 3 > (3+3) + 4
print(sumNum)
| 22.1 | 75 | 0.520362 | 43 | 221 | 2.674419 | 0.44186 | 0.052174 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104575 | 0.307692 | 221 | 9 | 76 | 24.555556 | 0.647059 | 0.61086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
c1fd7760faa08c050310225f9a332a5082e55fd2 | 1,337 | py | Python | machine-learning/ridge_regression.py | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | machine-learning/ridge_regression.py | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | machine-learning/ridge_regression.py | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | # Import necessary modules
import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import Ridge
from sklearn.model_selection import cross_val_score
# TODO
# import ridge_x and ridge_y from /datasets
def display_plot(cv_scores, cv_scores_std):
fig = plt.figure()
ax = fig.add_subplot(1, 1,... | 26.74 | 76 | 0.721765 | 218 | 1,337 | 4.16055 | 0.344037 | 0.114664 | 0.085998 | 0.052922 | 0.198456 | 0.14333 | 0.14333 | 0.081588 | 0.081588 | 0 | 0 | 0.016319 | 0.175019 | 1,337 | 49 | 77 | 27.285714 | 0.805984 | 0.210172 | 0 | 0 | 0 | 0 | 0.032474 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1ff01a4b28539c8e0a9cf34b824cdcc9057084e | 502 | py | Python | setup.py | boxine/rasterprynt | 3b05be108a358102b0386caef1e49cbff313fea1 | [
"MIT"
] | 8 | 2018-05-07T22:41:09.000Z | 2022-03-25T07:57:57.000Z | setup.py | boxine/rasterprynt | 3b05be108a358102b0386caef1e49cbff313fea1 | [
"MIT"
] | 6 | 2019-05-06T14:49:43.000Z | 2022-03-25T08:10:51.000Z | setup.py | boxine/rasterprynt | 3b05be108a358102b0386caef1e49cbff313fea1 | [
"MIT"
] | 5 | 2019-01-25T07:40:41.000Z | 2020-05-23T19:47:12.000Z | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='rasterprynt',
version='1.0.5',
description='Print raster graphics on Brother P950NW and 9800PCN',
author='Philipp Hagemeister (Boxine GmbH)',
author_email='philipp.h... | 26.421053 | 72 | 0.657371 | 56 | 502 | 5.857143 | 0.803571 | 0.067073 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0.215139 | 502 | 18 | 73 | 27.888889 | 0.807107 | 0.039841 | 0 | 0 | 0 | 0 | 0.388773 | 0.060291 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de0449387de2cf05e025030cb081e932e53833f5 | 6,667 | py | Python | ProjectManager/migrations/0001_initial.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | ProjectManager/migrations/0001_initial.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | ProjectManager/migrations/0001_initial.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-24 18:03
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migr... | 58.482456 | 329 | 0.629219 | 722 | 6,667 | 5.67313 | 0.275623 | 0.04834 | 0.027344 | 0.042969 | 0.460205 | 0.431152 | 0.37085 | 0.347412 | 0.347412 | 0.347412 | 0 | 0.015649 | 0.233238 | 6,667 | 113 | 330 | 59 | 0.785603 | 0.00675 | 0 | 0.40566 | 1 | 0.009434 | 0.217372 | 0.031269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009434 | 0.066038 | 0 | 0.103774 | 0 | 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 |
a9a7b1b74b27c8120bbb688aef3cdeecef3faefb | 1,012 | py | Python | polarization.py | galenreed/pyNMR | de634b9ccba50358a93f9b852d7e9e0a329db47a | [
"MIT"
] | 25 | 2016-07-13T09:59:03.000Z | 2021-12-08T03:25:23.000Z | polarization.py | galenreed/pyNMR | de634b9ccba50358a93f9b852d7e9e0a329db47a | [
"MIT"
] | 5 | 2016-09-15T15:11:06.000Z | 2019-03-29T23:27:34.000Z | polarization.py | galenreed/pyNMR | de634b9ccba50358a93f9b852d7e9e0a329db47a | [
"MIT"
] | 8 | 2016-09-05T14:26:16.000Z | 2022-03-10T09:52:44.000Z | from scipy.constants import k, hbar
import sys
sys.path.append("/Users/benno/Dropbox/Software/python")
import gammaList as gL
import numpy as np
# P = N \left ( \frac{2}{1 + \exp ( - \Delta E / k_B T)} - 1 \right )
def polarization(nucleus, Temperature, B):
"""This function returns the thermal polarization at a ... | 37.481481 | 88 | 0.657115 | 146 | 1,012 | 4.493151 | 0.547945 | 0.091463 | 0.060976 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055831 | 0.203557 | 1,012 | 26 | 89 | 38.923077 | 0.758065 | 0.066206 | 0 | 0 | 0 | 0 | 0.243902 | 0.058537 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a9ab67b7f8690b3e82a329ea1d5c90f24f9f1938 | 1,559 | py | Python | examples/readwrite.py | maliubiao/python_inotify | 1bd159aceee0e066a741cd4a09cc703c7a616ffa | [
"MIT"
] | 7 | 2015-02-18T09:17:35.000Z | 2020-07-30T12:46:22.000Z | examples/readwrite.py | maliubiao/python_inotify | 1bd159aceee0e066a741cd4a09cc703c7a616ffa | [
"MIT"
] | null | null | null | examples/readwrite.py | maliubiao/python_inotify | 1bd159aceee0e066a741cd4a09cc703c7a616ffa | [
"MIT"
] | 4 | 2015-04-29T19:59:17.000Z | 2020-07-30T12:46:24.000Z | #! /usr/bin/python
import time
import _inotify
import errno
def on_write(event):
print('write')
def on_read(event):
print("read")
def on_attrib(event):
print("attribute change")
def on_move(event):
print("move")
def on_open(event):
print("open")
def on_close(event):
print("close")
def on... | 19.987179 | 62 | 0.658756 | 211 | 1,559 | 4.611374 | 0.260664 | 0.046249 | 0.106886 | 0.16444 | 0.053443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001661 | 0.22771 | 1,559 | 77 | 63 | 20.246753 | 0.806478 | 0.010904 | 0 | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.02 | 0.06 | 0 | 0.26 | 0.18 | 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 |
a9ab9fb049c8fe64d1b4d47d8439e0fcadd08f57 | 352 | py | Python | source1/vvd/fixup.py | tltneon/SourceIO | 418224918c2b062a4c78a41d4d65329ba2decb22 | [
"MIT"
] | 1 | 2021-07-12T12:55:27.000Z | 2021-07-12T12:55:27.000Z | source1/vvd/fixup.py | syborg64/SourceIO | e4ba86d801f518e192260af08ef533759c2e1cc3 | [
"MIT"
] | null | null | null | source1/vvd/fixup.py | syborg64/SourceIO | e4ba86d801f518e192260af08ef533759c2e1cc3 | [
"MIT"
] | null | null | null | from ...utilities.byte_io_mdl import ByteIO
class Fixup:
def __init__(self):
self.lod_index = 0
self.vertex_index = 0
self.vertex_count = 0
def read(self, reader: ByteIO):
self.lod_index = reader.read_uint32()
self.vertex_index = reader.read_uint32()
self.vert... | 25.142857 | 48 | 0.647727 | 47 | 352 | 4.531915 | 0.425532 | 0.187793 | 0.225352 | 0.150235 | 0.29108 | 0.29108 | 0 | 0 | 0 | 0 | 0 | 0.034351 | 0.255682 | 352 | 13 | 49 | 27.076923 | 0.778626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 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 |
a9b6be922ecf1c9c4880678012afa4339af14d8a | 1,821 | py | Python | suunto/workout/workout.py | claha/suunto | f0ec83f1da27020aa145731e3ae60eccaaa4ec36 | [
"MIT"
] | 1 | 2016-03-31T21:02:27.000Z | 2016-03-31T21:02:27.000Z | suunto/workout/workout.py | claha/suunto | f0ec83f1da27020aa145731e3ae60eccaaa4ec36 | [
"MIT"
] | null | null | null | suunto/workout/workout.py | claha/suunto | f0ec83f1da27020aa145731e3ae60eccaaa4ec36 | [
"MIT"
] | null | null | null | # Import
import sys
from .step import Step
from .repeat import Repeat
# Workout
class Workout(object):
def __init__(self):
self.workout = []
self.steps = []
self.postfixEnabled = True
# TODO: check that len(name) <= 6
def addStep(self, name, duration):
self.workout.append(... | 24.945205 | 64 | 0.495332 | 192 | 1,821 | 4.651042 | 0.317708 | 0.030235 | 0.029115 | 0.035834 | 0.098544 | 0.098544 | 0 | 0 | 0 | 0 | 0 | 0.017767 | 0.350906 | 1,821 | 72 | 65 | 25.291667 | 0.737733 | 0.060956 | 0 | 0.156863 | 0 | 0 | 0.270429 | 0.012346 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.098039 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a9b7873f1e662ec7071901ae24c08e819809167e | 3,623 | py | Python | pagine/views.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | pagine/views.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | pagine/views.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.views.generic import (ListView, DetailView, CreateView,
TemplateView)
from django.views.generic.dates import (ArchiveIndexView, YearArchiveView,
MonthArchiveView... | 30.70339 | 84 | 0.678995 | 431 | 3,623 | 5.522042 | 0.24594 | 0.060084 | 0.070588 | 0.040336 | 0.380672 | 0.331092 | 0.308403 | 0.255462 | 0.255462 | 0.223529 | 0 | 0.003515 | 0.214739 | 3,623 | 117 | 85 | 30.965812 | 0.83304 | 0 | 0 | 0.49 | 0 | 0 | 0.078388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.08 | 0 | 0.79 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a9b8f8b38dca27ecd35c63884b8695b3a0907821 | 682 | py | Python | foxlink/pde_gen_orient_static_xlinks_solver.py | lamsoa729/FoXlink | 3c061b02968cdab1def752d5c145a6df4615504b | [
"BSD-3-Clause"
] | null | null | null | foxlink/pde_gen_orient_static_xlinks_solver.py | lamsoa729/FoXlink | 3c061b02968cdab1def752d5c145a6df4615504b | [
"BSD-3-Clause"
] | null | null | null | foxlink/pde_gen_orient_static_xlinks_solver.py | lamsoa729/FoXlink | 3c061b02968cdab1def752d5c145a6df4615504b | [
"BSD-3-Clause"
] | 2 | 2019-06-18T16:48:03.000Z | 2019-06-20T23:50:02.000Z | #!/usr/bin/env python
"""@package docstring
File: pde_gen_orient_static_xlinks.py
Author: Adam Lamson
Email: adam.lamson@colorado.edu
Description:
"""
from .pde_gen_orient_solver import PDEGenOrientSolver
from .pde_static_xlinks_solver import PDEStaticXlinksSolver
class PDEGenOrientStaticXlinksSolver(
PDEGen... | 31 | 90 | 0.762463 | 75 | 682 | 6.693333 | 0.64 | 0.023904 | 0.047809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 682 | 21 | 91 | 32.47619 | 0.861063 | 0.388563 | 0 | 0 | 0 | 0 | 0.0825 | 0.06 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9bd1c445f71e90daf670a6583841eb6990a0f7d | 304 | py | Python | T1_rho_test.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | T1_rho_test.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | T1_rho_test.py | DrSPE/NMRscipts | 166c6990103de549882fc4f812350efb3ae3862e | [
"MIT"
] | null | null | null | slope = (2.5623334091319e+03); #without minus
slope_error = (1.0441082995245e+02);
t1rho = 1/(slope);
t1rho_error = 1/(slope - slope_error) - 1/(slope +slope_error) ;
t1rho_ms = t1rho*1e3;
t1rho_error_ms = t1rho_error*1e3;
print 'T1rho in ms'
print t1rho_ms
print '+/-'
print t1rho_error_ms
| 20.266667 | 66 | 0.700658 | 46 | 304 | 4.391304 | 0.326087 | 0.19802 | 0.108911 | 0.158416 | 0.183168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 0.161184 | 304 | 14 | 67 | 21.714286 | 0.603922 | 0.042763 | 0 | 0 | 0 | 0 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9c241128252e9b9d14acdf6ee9226f676efae07 | 1,717 | py | Python | src/queries/presenters.py | alexr17/nlp-golden-globes | c0929b62e351a69c3a0319c00558b9c06fbcdb6a | [
"MIT"
] | 1 | 2019-02-13T05:52:06.000Z | 2019-02-13T05:52:06.000Z | src/queries/presenters.py | alexr17/nlp-golden-globes | c0929b62e351a69c3a0319c00558b9c06fbcdb6a | [
"MIT"
] | null | null | null | src/queries/presenters.py | alexr17/nlp-golden-globes | c0929b62e351a69c3a0319c00558b9c06fbcdb6a | [
"MIT"
] | 1 | 2020-02-11T05:30:14.000Z | 2020-02-11T05:30:14.000Z | import nltk
import re
import time
from nltk.corpus import stopwords
from src.helpers.find import find_name, find_title
from src.helpers.load import load_json
from src.helpers.clean import valid_tkn, bigrams, trigrams
from src.helpers.debug import top_keys
import json
presenters_kw = {}
presenters_sw = {'movie', 'tv','... | 39.930233 | 124 | 0.672685 | 230 | 1,717 | 4.878261 | 0.473913 | 0.024955 | 0.049911 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005069 | 0.19569 | 1,717 | 42 | 125 | 40.880952 | 0.807386 | 0.054164 | 0 | 0 | 0 | 0 | 0.155364 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.081081 | false | 0 | 0.243243 | 0.027027 | 0.405405 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9c2b923115d7cfbac0efd5d0aa383d4da8ca26f | 494 | py | Python | mmvae_hub/polymnist/utils.py | Jimmy2027/MMVAE_mnist_svhn_text | e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7 | [
"MIT"
] | null | null | null | mmvae_hub/polymnist/utils.py | Jimmy2027/MMVAE_mnist_svhn_text | e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7 | [
"MIT"
] | 24 | 2021-11-15T14:22:08.000Z | 2022-02-28T14:30:23.000Z | mmvae_hub/polymnist/utils.py | Jimmy2027/MMVAE_mnist_svhn_text | e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import tempfile
import zipfile
from pathlib import Path
import wget
def download_polymnist_clfs(out_path: Path):
with tempfile.TemporaryDirectory() as tmpdirname:
zip_file = f'{tmpdirname}/{out_path.stem}.zip'
url = "https://www.dropbox.com/sh/esbj7b6bg99jxna/AAAIa943_mues... | 27.444444 | 89 | 0.698381 | 66 | 494 | 5.075758 | 0.575758 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032419 | 0.188259 | 494 | 17 | 90 | 29.058824 | 0.802993 | 0.04251 | 0 | 0 | 0 | 0 | 0.22293 | 0.067941 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9c8cbffa9276835feba3c7bf66b73794edf15b2 | 367 | py | Python | test_superenalotto.py | davidemoro/superenalotto | cf7a0428af2ecd342e5e9cdabc235846a12dabf6 | [
"Apache-2.0"
] | null | null | null | test_superenalotto.py | davidemoro/superenalotto | cf7a0428af2ecd342e5e9cdabc235846a12dabf6 | [
"Apache-2.0"
] | 4 | 2021-03-19T02:00:04.000Z | 2022-01-13T01:25:30.000Z | test_superenalotto.py | davidemoro/superenalotto | cf7a0428af2ecd342e5e9cdabc235846a12dabf6 | [
"Apache-2.0"
] | null | null | null | def test_schedina(tmpdir):
from superenalotto.superenalotto import print_file
colonne_file = tmpdir.join('colonne.txt')
colonne_file.write_text("""1 2 3 4 5 6
1 2 3 4 5 7""", encoding='utf-8')
output_file = tmpdir.join('output.pdf')
print_file(filepath=colonne_file.strpath, outputpath=output_file.st... | 40.777778 | 77 | 0.735695 | 57 | 367 | 4.561404 | 0.578947 | 0.126923 | 0.107692 | 0.030769 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.149864 | 367 | 8 | 78 | 45.875 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.133515 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.25 | 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 |
a9cef48b1337bae951c4332415296a002914473c | 12,019 | py | Python | tests/unit/synapseclient/core/credentials/unit_test_cred_provider.py | marcomarasca/synapsePythonClient | a3825abebfee8098392d575d19e4f94c37eadbf2 | [
"Apache-2.0"
] | null | null | null | tests/unit/synapseclient/core/credentials/unit_test_cred_provider.py | marcomarasca/synapsePythonClient | a3825abebfee8098392d575d19e4f94c37eadbf2 | [
"Apache-2.0"
] | null | null | null | tests/unit/synapseclient/core/credentials/unit_test_cred_provider.py | marcomarasca/synapsePythonClient | a3825abebfee8098392d575d19e4f94c37eadbf2 | [
"Apache-2.0"
] | null | null | null | import base64
import pytest
from unittest.mock import create_autospec, patch
from synapseclient.core.credentials.credential_provider import (
cached_sessions,
CachedCredentialsProvider,
ConfigFileCredentialsProvider,
SynapseCredentialsProvider,
SynapseCredentialsProviderChain,
UserArgsCredenti... | 44.514815 | 119 | 0.737333 | 1,498 | 12,019 | 5.500668 | 0.092123 | 0.037864 | 0.053641 | 0.039199 | 0.679369 | 0.595752 | 0.54017 | 0.504612 | 0.468083 | 0.441505 | 0 | 0.004883 | 0.182128 | 12,019 | 269 | 120 | 44.680297 | 0.833367 | 0.019552 | 0 | 0.407407 | 0 | 0 | 0.035911 | 0.004415 | 0 | 0 | 0 | 0 | 0.216931 | 1 | 0.164021 | false | 0.100529 | 0.026455 | 0 | 0.227513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a9d16f6be430d050ea5ad5eee5f5132b8525eae8 | 2,732 | py | Python | storage/RedisStorage.py | baton96/RESTface | b512933de21e694c0c04fc29dd01ac16fc882407 | [
"MIT"
] | null | null | null | storage/RedisStorage.py | baton96/RESTface | b512933de21e694c0c04fc29dd01ac16fc882407 | [
"MIT"
] | null | null | null | storage/RedisStorage.py | baton96/RESTface | b512933de21e694c0c04fc29dd01ac16fc882407 | [
"MIT"
] | null | null | null | import json
from typing import Union, List
import redis
from .BaseStorage import BaseStorage
class RedisStorage(BaseStorage):
def __init__(self, _: str = None, uuid_id: bool = False):
super().__init__()
self.db = redis.Redis(decode_responses=True)
self.primary_type = str if uuid_id else ... | 32.915663 | 100 | 0.581991 | 354 | 2,732 | 4.29096 | 0.20339 | 0.221198 | 0.106649 | 0.118499 | 0.432521 | 0.290981 | 0.290981 | 0.290981 | 0.269256 | 0.193548 | 0 | 0 | 0.304539 | 2,732 | 82 | 101 | 33.317073 | 0.799474 | 0 | 0 | 0.217391 | 0 | 0 | 0.074671 | 0.059297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.057971 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9d1b04611fe58d55bc6dcb4f303cda468d57b66 | 1,247 | py | Python | djangocms_baseplugins/slider/conf.py | benzkji/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | 2 | 2019-04-14T01:31:22.000Z | 2020-03-05T13:06:57.000Z | djangocms_baseplugins/slider/conf.py | benzkji/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | 32 | 2017-04-04T09:28:06.000Z | 2021-08-18T16:23:02.000Z | djangocms_baseplugins/slider/conf.py | bnzk/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from djangocms_baseplugins.baseplugin import defaults
from djangocms_baseplugins.baseplugin.utils import get_baseplugin_fieldset
TRANSLATED_FIELDS = getattr(
settings,... | 19.793651 | 74 | 0.682438 | 111 | 1,247 | 7.297297 | 0.351351 | 0.148148 | 0.266667 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001012 | 0.207698 | 1,247 | 62 | 75 | 20.112903 | 0.818826 | 0.010425 | 0 | 0.14 | 0 | 0 | 0.246753 | 0.174513 | 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 |
a9d3ec027b821bef5c3f9030c868621a085d2a50 | 3,661 | py | Python | evaluate_coherence.py | terriyu/word-clustering | 105eac030406a1053496dcec3e0a36c5b98e442c | [
"MIT"
] | null | null | null | evaluate_coherence.py | terriyu/word-clustering | 105eac030406a1053496dcec3e0a36c5b98e442c | [
"MIT"
] | null | null | null | evaluate_coherence.py | terriyu/word-clustering | 105eac030406a1053496dcec3e0a36c5b98e442c | [
"MIT"
] | null | null | null | # Calculate coherence of clusters
from __future__ import division
import numpy as np
import argparse, json
import process_util
# Example usage: python evaluate_coherence.py --clusters clusters.json --counts counts.json
##### PARSER #####
parser = argparse.ArgumentParser(description='Evaluate coherence of a cluster... | 34.537736 | 156 | 0.704999 | 499 | 3,661 | 4.975952 | 0.292585 | 0.048731 | 0.036246 | 0.026581 | 0.096657 | 0.038663 | 0 | 0 | 0 | 0 | 0 | 0.003014 | 0.184376 | 3,661 | 105 | 157 | 34.866667 | 0.828533 | 0.096968 | 0 | 0.046875 | 0 | 0 | 0.190845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9d4e1c92ee105aebb6e5e0cd806b6d7dd0ce361 | 3,125 | py | Python | openstack/auto_scaling/v1/notification.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/auto_scaling/v1/notification.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/auto_scaling/v1/notification.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding:utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 39.0625 | 108 | 0.69824 | 376 | 3,125 | 5.614362 | 0.345745 | 0.060635 | 0.046424 | 0.03837 | 0.527712 | 0.516343 | 0.439602 | 0.439602 | 0.26054 | 0.26054 | 0 | 0.00491 | 0.21792 | 3,125 | 79 | 109 | 39.556962 | 0.858838 | 0.1808 | 0 | 0.367347 | 0 | 0 | 0.186887 | 0.054967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.55102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a9d62f7738f407e65c121357d4b3c86361001fbd | 984 | py | Python | icubam/predicu/plot/__main__.py | maximedenes/icubam | 0a4095cfa08d78058e70aa52891051d0694fdd36 | [
"Apache-2.0"
] | null | null | null | icubam/predicu/plot/__main__.py | maximedenes/icubam | 0a4095cfa08d78058e70aa52891051d0694fdd36 | [
"Apache-2.0"
] | null | null | null | icubam/predicu/plot/__main__.py | maximedenes/icubam | 0a4095cfa08d78058e70aa52891051d0694fdd36 | [
"Apache-2.0"
] | null | null | null | import argparse
import logging
import matplotlib
from ..plot import DEFAULTS, generate_plots
if __name__ == "__main__":
logging.getLogger().setLevel(logging.INFO)
matplotlib.use("Agg")
parser = argparse.ArgumentParser()
parser.add_argument(
"--api-key",
help="API key for pulling data from ICUBAM.",
... | 24.6 | 63 | 0.674797 | 115 | 984 | 5.565217 | 0.486957 | 0.070313 | 0.132813 | 0.071875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176829 | 984 | 39 | 64 | 25.230769 | 0.790123 | 0 | 0 | 0.138889 | 1 | 0 | 0.310976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9d6c838d1649a96eaa2af573c1ce78a32cd7e4c | 331 | py | Python | monocle/echo.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 4 | 2015-11-25T09:06:44.000Z | 2019-12-11T21:35:21.000Z | monocle/echo.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | null | null | null | monocle/echo.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 2 | 2015-11-25T09:19:38.000Z | 2016-02-26T03:54:06.000Z | import monocle
from monocle import _o
monocle.init("tornado")
from monocle.stack import eventloop
from monocle.stack.network import add_service, Service
@_o
def echo(conn):
their_message = yield conn.readline()
yield conn.write("you said: %s\r\n" % their_message.strip())
add_service(Service(echo, 7050))
even... | 23.642857 | 64 | 0.758308 | 49 | 331 | 5 | 0.55102 | 0.134694 | 0.130612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013841 | 0.126888 | 331 | 14 | 65 | 23.642857 | 0.83391 | 0 | 0 | 0 | 0 | 0 | 0.069277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9dc39dc094105711093de8329ed1f93c029bee7 | 27,111 | py | Python | tensorflow_gnn/graph/graph_tensor_io_test.py | mattdangerw/gnn | f39d3ea0d8fc6e51cf58814873fc1502c12554ae | [
"Apache-2.0"
] | 611 | 2021-11-18T06:04:10.000Z | 2022-03-29T11:46:42.000Z | tensorflow_gnn/graph/graph_tensor_io_test.py | mattdangerw/gnn | f39d3ea0d8fc6e51cf58814873fc1502c12554ae | [
"Apache-2.0"
] | 25 | 2021-11-18T17:21:12.000Z | 2022-03-31T06:36:55.000Z | tensorflow_gnn/graph/graph_tensor_io_test.py | mattdangerw/gnn | f39d3ea0d8fc6e51cf58814873fc1502c12554ae | [
"Apache-2.0"
] | 52 | 2021-11-18T23:12:30.000Z | 2022-03-27T06:31:08.000Z | """Tests for gt.GraphTensor extension type (go/tf-gnn-api)."""
import functools
from typing import Any, Callable, Iterable, List, Mapping, Optional
from absl.testing import parameterized
import google.protobuf.text_format as pbtext
import tensorflow as tf
from tensorflow_gnn.graph import adjacency as adj
from tensorf... | 40.464179 | 100 | 0.478145 | 2,879 | 27,111 | 4.341785 | 0.07711 | 0.0592 | 0.06272 | 0.08512 | 0.74056 | 0.7104 | 0.66216 | 0.6432 | 0.59344 | 0.54992 | 0 | 0.035647 | 0.375014 | 27,111 | 669 | 101 | 40.524664 | 0.702077 | 0.008299 | 0 | 0.516423 | 0 | 0.056569 | 0.256819 | 0.003891 | 0 | 0 | 0 | 0 | 0.021898 | 1 | 0.025547 | false | 0 | 0.020073 | 0.001825 | 0.067518 | 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 |
a9df0a2d2bd9258094dad2a6172b9202aa3eb486 | 2,851 | py | Python | Sprint_Challenge/acme_test.py | nrvanwyck/DS-Unit-3-Sprint-1-Software-Engineering | ff36bcea154f6c5c0aaabd9cdfd790ef4b589970 | [
"MIT"
] | null | null | null | Sprint_Challenge/acme_test.py | nrvanwyck/DS-Unit-3-Sprint-1-Software-Engineering | ff36bcea154f6c5c0aaabd9cdfd790ef4b589970 | [
"MIT"
] | null | null | null | Sprint_Challenge/acme_test.py | nrvanwyck/DS-Unit-3-Sprint-1-Software-Engineering | ff36bcea154f6c5c0aaabd9cdfd790ef4b589970 | [
"MIT"
] | null | null | null | import unittest
from acme import Product
from acme_report import generate_products, ADJECTIVES, NOUNS
class AcmeProductTests(unittest.TestCase):
"""Making sure Acme products are the tops!"""
def test_default_product_price(self):
"""Test default product price being integer 10."""
prod = Product(... | 42.552239 | 81 | 0.666433 | 323 | 2,851 | 5.718266 | 0.263158 | 0.089334 | 0.092583 | 0.045479 | 0.188414 | 0.125609 | 0.099621 | 0 | 0 | 0 | 0 | 0.026697 | 0.224833 | 2,851 | 67 | 82 | 42.552239 | 0.80905 | 0.17222 | 0 | 0.163265 | 1 | 0 | 0.058747 | 0 | 0 | 0 | 0 | 0 | 0.367347 | 1 | 0.142857 | false | 0 | 0.061224 | 0 | 0.244898 | 0 | 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 |
a9dfa37fc3279c1310c1321149612bc68b90c452 | 354 | py | Python | tests/test_exploreFocalPlane.py | lsst-camera-dh/datacat-utilities | ded1c021b8c2f7ed068b78ebf0af0b26fb1f9392 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/test_exploreFocalPlane.py | lsst-camera-dh/datacat-utilities | ded1c021b8c2f7ed068b78ebf0af0b26fb1f9392 | [
"BSD-3-Clause-LBNL"
] | 8 | 2017-05-03T14:59:32.000Z | 2021-02-01T23:31:49.000Z | tests/test_exploreFocalPlane.py | lsst-camera-dh/datacat-utilities | ded1c021b8c2f7ed068b78ebf0af0b26fb1f9392 | [
"BSD-3-Clause-LBNL"
] | 3 | 2017-04-24T17:33:24.000Z | 2017-05-11T14:34:27.000Z | from unittest import TestCase
from exploreFocalPlane import exploreFocalPlane
class TestExploreRFocalPlane(TestCase):
def test_focalPlaneContents(self):
eFP = exploreFocalPlane()
raft_list = eFP.focalPlaneContents(when="2018-09-07T00:00:00.0")
assert (raft_list[0][0] == 'LCA-11021_RTM-00... | 27.230769 | 84 | 0.728814 | 42 | 354 | 6.02381 | 0.690476 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088435 | 0.169492 | 354 | 12 | 85 | 29.5 | 0.772109 | 0 | 0 | 0 | 0 | 0 | 0.17847 | 0.121813 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9ec5a16f287004c731a5f411345e9c39e697ec0 | 358 | py | Python | tests/testunits/testtools/testwifitool/wpa_cli_status.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | tests/testunits/testtools/testwifitool/wpa_cli_status.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | tests/testunits/testtools/testwifitool/wpa_cli_status.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | output = '''
Using interface 'wlan0'
bssid=14:d6:4d:ec:1e:88
ssid=AU Test Network
id=1
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.20.70
p2p_device_address=e0:cb:1d:3d:84:71
address=e0:cb:1d:3d:84:71
'''
mac = "e0:cb:1d:3d:84:71"
ip = "19... | 18.842105 | 37 | 0.709497 | 70 | 358 | 3.528571 | 0.642857 | 0.048583 | 0.072874 | 0.097166 | 0.202429 | 0.202429 | 0.153846 | 0 | 0 | 0 | 0 | 0.167742 | 0.134078 | 358 | 18 | 38 | 19.888889 | 0.629032 | 0 | 0 | 0 | 0 | 0 | 0.876471 | 0.317647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9f66d50fe5b32467c1d057484adb8e336c9f40c | 3,610 | py | Python | blog/migrations/0001_initial.py | sk1t0n/django-blog | 8c5bbb890006c41c0ebf448c7e3a17a2b63af6a9 | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | sk1t0n/django-blog | 8c5bbb890006c41c0ebf448c7e3a17a2b63af6a9 | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | sk1t0n/django-blog | 8c5bbb890006c41c0ebf448c7e3a17a2b63af6a9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-01 10:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 52.318841 | 184 | 0.601939 | 379 | 3,610 | 5.519789 | 0.269129 | 0.141969 | 0.050191 | 0.042065 | 0.475621 | 0.345602 | 0.288241 | 0.288241 | 0.288241 | 0.288241 | 0 | 0.012949 | 0.251247 | 3,610 | 68 | 185 | 53.088235 | 0.761006 | 0.012465 | 0 | 0.360656 | 1 | 0 | 0.164468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9f709c3ba3cf02b3c2d07dbb9b2515e89e60160 | 1,244 | py | Python | jobs/daily_job.py | MuddyFishing/stock_data_system | ac06140d28a5cefbfdefa301d9210b8f506015f0 | [
"Apache-2.0"
] | 3 | 2020-10-21T05:17:16.000Z | 2021-09-29T08:21:36.000Z | jobs/daily_job.py | MuddyFishing/stock_data_system | ac06140d28a5cefbfdefa301d9210b8f506015f0 | [
"Apache-2.0"
] | 1 | 2021-09-29T08:21:20.000Z | 2021-09-29T08:21:28.000Z | jobs/daily_job.py | MuddyFishing/mf_stock_data_system | ac06140d28a5cefbfdefa301d9210b8f506015f0 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import libs.common as common
import sys
import os
import time
import pandas as pd
import tushare as ts
from sqlalchemy.types import NVARCHAR
from sqlalchemy import inspect
import datetime
import shutil
####### 使用 5.pdf,先做 基本面数据 的数据,然后在做交易数据。
#
def stat_all(tmp_datetim... | 25.387755 | 73 | 0.660772 | 174 | 1,244 | 4.511494 | 0.534483 | 0.098089 | 0.048408 | 0.050955 | 0.056051 | 0.056051 | 0 | 0 | 0 | 0 | 0 | 0.007071 | 0.20418 | 1,244 | 48 | 74 | 25.916667 | 0.785859 | 0.135852 | 0 | 0 | 0 | 0 | 0.110586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9fb55ff603e6c3a847fed384f995c2256bf4884 | 1,409 | py | Python | tests/test_parsers/test_codebase_parser.py | Grin941/codebase_analizer | f939cb77f118397a6d80d04e089b1a33f46c0ab4 | [
"MIT"
] | null | null | null | tests/test_parsers/test_codebase_parser.py | Grin941/codebase_analizer | f939cb77f118397a6d80d04e089b1a33f46c0ab4 | [
"MIT"
] | null | null | null | tests/test_parsers/test_codebase_parser.py | Grin941/codebase_analizer | f939cb77f118397a6d80d04e089b1a33f46c0ab4 | [
"MIT"
] | null | null | null | import os
from codebase_analizer import codebase_parser, filters
def test_files_finder_dont_fail_on_unexisting_path():
files_gen = codebase_parser._find_files('', True, '.py')
assert not len(list(files_gen))
def test_files_finder_returns_full_path(monkeypatch):
def monkey_os_walk(path):
return [... | 32.022727 | 71 | 0.626686 | 180 | 1,409 | 4.561111 | 0.355556 | 0.051157 | 0.058465 | 0.084044 | 0.353228 | 0.353228 | 0.282582 | 0.109622 | 0.109622 | 0.109622 | 0 | 0.005401 | 0.211498 | 1,409 | 43 | 72 | 32.767442 | 0.733573 | 0 | 0 | 0.181818 | 0 | 0 | 0.12775 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.212121 | false | 0 | 0.060606 | 0.090909 | 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 |
a9fc8b951724f41f0d40e80a849817e1ab7dc5cf | 1,596 | py | Python | uc_http/uchttp.py | phiberoptick/My-Shodan-Scripts | 94003231c620cfbe8d96e9ae675e4d01fa4911ea | [
"MIT"
] | 845 | 2018-03-14T14:19:23.000Z | 2022-03-26T13:03:18.000Z | uc_http/uchttp.py | phiberoptick/My-Shodan-Scripts | 94003231c620cfbe8d96e9ae675e4d01fa4911ea | [
"MIT"
] | 1 | 2020-09-20T13:43:19.000Z | 2020-09-20T13:43:19.000Z | uc_http/uchttp.py | phiberoptick/My-Shodan-Scripts | 94003231c620cfbe8d96e9ae675e4d01fa4911ea | [
"MIT"
] | 277 | 2017-09-17T22:28:03.000Z | 2022-03-31T08:49:58.000Z | #!/usr/bin/env python
#
# uc-http.py
# Search SHODAN for uc-http path traversial.
#
# Author: random_robbie
import shodan
import json
import requests
import sys
# Configuration
API_KEY = "YOURSHODANAPIKEY"
SEARCH_FOR = 'Server: uc-httpd 1.0.0'
session = requests.Session()
def grab_file (IP,PORT):
try:
print ("[*... | 28.5 | 321 | 0.644737 | 232 | 1,596 | 4.387931 | 0.508621 | 0.017682 | 0.019646 | 0.027505 | 0.058939 | 0.058939 | 0.058939 | 0.058939 | 0 | 0 | 0 | 0.030551 | 0.159148 | 1,596 | 56 | 322 | 28.5 | 0.728018 | 0.116541 | 0 | 0.181818 | 0 | 0.060606 | 0.396859 | 0.109208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.090909 | 0.121212 | 0 | 0.151515 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e70e3cc4bde1691947311641f90628c10ff2edb0 | 1,102 | py | Python | stack/1541_minimum_insertions_to_balance_a_parentheses_string/1541_minimum_insertions_to_balance_a_parentheses_string.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | stack/1541_minimum_insertions_to_balance_a_parentheses_string/1541_minimum_insertions_to_balance_a_parentheses_string.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | stack/1541_minimum_insertions_to_balance_a_parentheses_string/1541_minimum_insertions_to_balance_a_parentheses_string.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | class Solution:
def minInsertions(self, s: str) -> int:
# use stack
stack = []
count = 0
i=0
while i < len(s):
if s[i] == '(':
stack.append(s[i])
i += 1
else:
# when facing empty stack
if ... | 30.611111 | 86 | 0.311252 | 109 | 1,102 | 3.146789 | 0.376147 | 0.040816 | 0.034985 | 0.040816 | 0.081633 | 0.081633 | 0.081633 | 0.081633 | 0.081633 | 0 | 0 | 0.031513 | 0.568058 | 1,102 | 36 | 87 | 30.611111 | 0.689076 | 0.143376 | 0 | 0.5 | 0 | 0 | 0.008538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
e7100814e893c333777b5336f17e2cb06eea7eae | 543 | py | Python | setup.py | LilianYe/pypi-test | 64aec435a685a4090646e66bf34b1cef2d6267fe | [
"MIT"
] | null | null | null | setup.py | LilianYe/pypi-test | 64aec435a685a4090646e66bf34b1cef2d6267fe | [
"MIT"
] | null | null | null | setup.py | LilianYe/pypi-test | 64aec435a685a4090646e66bf34b1cef2d6267fe | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='trdbhelp', # This is the name of your PyPI-package.
packages=['trdbhelp'], # This must be the same as the name above
version='0.1', # Update the version number for new releases
description='database utils',
author='lillianye',
... | 36.2 | 88 | 0.650092 | 70 | 543 | 5.014286 | 0.685714 | 0.068376 | 0.079772 | 0.096866 | 0.188034 | 0.188034 | 0.188034 | 0 | 0 | 0 | 0 | 0.016317 | 0.209945 | 543 | 14 | 89 | 38.785714 | 0.801865 | 0.222836 | 0 | 0 | 0 | 0.076923 | 0.399522 | 0.050239 | 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 |
e7101003d3fbe087f64b1d6cb8e8a2e4f83dd927 | 329 | py | Python | pola/product/migrations/0017_remove_product_companies.py | ad-m/pola-backend | 295cc962f60844a14b9aeb23fb1b42624c7e6015 | [
"BSD-3-Clause"
] | 30 | 2015-08-13T01:05:36.000Z | 2022-01-22T03:02:50.000Z | pola/product/migrations/0017_remove_product_companies.py | ad-m/pola-backend | 295cc962f60844a14b9aeb23fb1b42624c7e6015 | [
"BSD-3-Clause"
] | 1,428 | 2015-10-08T07:38:26.000Z | 2022-03-31T08:36:08.000Z | pola/product/migrations/0017_remove_product_companies.py | ad-m/pola-backend | 295cc962f60844a14b9aeb23fb1b42624c7e6015 | [
"BSD-3-Clause"
] | 13 | 2015-12-27T22:35:25.000Z | 2022-02-01T15:55:58.000Z | # Generated by Django 3.1.7 on 2021-09-27 16:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0016_product_company'),
]
operations = [
migrations.RemoveField(
model_name='product',
name='companies',
... | 18.277778 | 47 | 0.592705 | 34 | 329 | 5.647059 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081897 | 0.294833 | 329 | 17 | 48 | 19.352941 | 0.74569 | 0.136778 | 0 | 0 | 1 | 0 | 0.152482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e710aa22ded3d629da4e5e9842ba82c01202071b | 772 | py | Python | home/migrations/0015_auto_20170214_1651.py | vaaceves/repue-repositorio-universidad-empresa | bc4c6477db0e889db9a7b973c97d7bb879e5eef5 | [
"Unlicense"
] | null | null | null | home/migrations/0015_auto_20170214_1651.py | vaaceves/repue-repositorio-universidad-empresa | bc4c6477db0e889db9a7b973c97d7bb879e5eef5 | [
"Unlicense"
] | null | null | null | home/migrations/0015_auto_20170214_1651.py | vaaceves/repue-repositorio-universidad-empresa | bc4c6477db0e889db9a7b973c97d7bb879e5eef5 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-14 22:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0014_auto_20170214_1532'),
]
operations = [
migrations.RemoveField(... | 25.733333 | 89 | 0.591969 | 77 | 772 | 5.766234 | 0.74026 | 0.060811 | 0.121622 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.28886 | 772 | 29 | 90 | 26.62069 | 0.743169 | 0.088083 | 0 | 0.272727 | 1 | 0 | 0.142653 | 0.0699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 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 |
e72505c3c1a7f605395b64bef687817405fe0d75 | 3,716 | py | Python | eduid_msg/utils.py | SUNET/eduid_msg | a844133f26bd616dc6f0db8a298722def03135ba | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | eduid_msg/utils.py | SUNET/eduid_msg | a844133f26bd616dc6f0db8a298722def03135ba | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | eduid_msg/utils.py | SUNET/eduid_msg | a844133f26bd616dc6f0db8a298722def03135ba | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-11-21T11:41:34.000Z | 2016-11-21T11:41:34.000Z | # -*- encoding: utf-8 -*-
"""
This module provides utility functions.
"""
import os
from collections import OrderedDict
from typing import Optional
def load_template(template_dir: str, filename: str, message_dict: dict, lang: str) -> str:
"""
This function loads a template file by provided language.
"""
... | 29.967742 | 112 | 0.597147 | 374 | 3,716 | 5.794118 | 0.299465 | 0.066451 | 0.025381 | 0.064605 | 0.523304 | 0.507614 | 0.494232 | 0.494232 | 0.458237 | 0.458237 | 0 | 0.021382 | 0.29521 | 3,716 | 123 | 113 | 30.211382 | 0.806033 | 0.329386 | 0 | 0.535714 | 0 | 0 | 0.078396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.107143 | 0.071429 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7276a24e1c3a2f5a052d348a2b7c34a4f73ef58 | 2,201 | py | Python | mailchimp3/client.py | farzeni/django-mailchimp3 | 2522f05059bd47a0248b95efb8e4b24f417a32db | [
"MIT"
] | null | null | null | mailchimp3/client.py | farzeni/django-mailchimp3 | 2522f05059bd47a0248b95efb8e4b24f417a32db | [
"MIT"
] | null | null | null | mailchimp3/client.py | farzeni/django-mailchimp3 | 2522f05059bd47a0248b95efb8e4b24f417a32db | [
"MIT"
] | null | null | null | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
import requests
import json
import logging
if True:
try:
import http.client as http_client
except ImportError:
# Python 2
import httplib as http_client
http_client.HTTPConnection.debuglevel = 2
... | 29.743243 | 86 | 0.550659 | 212 | 2,201 | 5.622642 | 0.424528 | 0.033557 | 0.037752 | 0.04698 | 0.052013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005061 | 0.371649 | 2,201 | 73 | 87 | 30.150685 | 0.856833 | 0.03453 | 0 | 0.185185 | 0 | 0 | 0.061479 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.203704 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e72be394193b008589d7f07ddd54c6b8d48227bc | 259 | py | Python | server/main.py | scieloorg/amp | e6df88b882119124853f6c5ef29fb86f8c3ed531 | [
"BSD-2-Clause"
] | null | null | null | server/main.py | scieloorg/amp | e6df88b882119124853f6c5ef29fb86f8c3ed531 | [
"BSD-2-Clause"
] | 2 | 2021-06-02T00:28:59.000Z | 2021-12-13T20:18:37.000Z | server/main.py | scieloorg/amp | e6df88b882119124853f6c5ef29fb86f8c3ed531 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Article Metadata Predictor"""
from sanic import Sanic
import common
import w2v1
app = Sanic(__name__)
app.blueprint(common.bp)
app.blueprint(w2v1.bp)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000, debug=True)
| 16.1875 | 50 | 0.714286 | 40 | 259 | 4.325 | 0.625 | 0.034682 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057778 | 0.131274 | 259 | 15 | 51 | 17.266667 | 0.711111 | 0.185328 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e72f659dff37c0a7709d3b632317ac508aa7cc88 | 673 | py | Python | setup.py | farivarlab/RFCoilTools | 4505070ecb559890ec61430c6968e9efe31006f2 | [
"MIT"
] | null | null | null | setup.py | farivarlab/RFCoilTools | 4505070ecb559890ec61430c6968e9efe31006f2 | [
"MIT"
] | null | null | null | setup.py | farivarlab/RFCoilTools | 4505070ecb559890ec61430c6968e9efe31006f2 | [
"MIT"
] | 1 | 2019-03-08T19:47:37.000Z | 2019-03-08T19:47:37.000Z | from setuptools import setup, find_packages
setup(
name='RFCoilTools',
version='0.0.1',
description='RF Coil Design and Evaluation Tools',
license='MIT',
#packages=['RFCoilTools'],
author='William Mathieu',
author_email='william.mathieu@mail.mcgill.ca',
keywords=['RF Coils','M... | 24.925926 | 57 | 0.536404 | 63 | 673 | 5.68254 | 0.84127 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017167 | 0.307578 | 673 | 27 | 58 | 24.925926 | 0.751073 | 0.037147 | 0 | 0 | 0 | 0 | 0.400322 | 0.048232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7308465620ba6a2638f79550e4081ac5c32e923 | 2,289 | py | Python | tests/test_cli_fileops.py | mimakaev/cooler | 84b0d510dc3baf0b9ef3592f9d27ba795e1802ee | [
"BSD-3-Clause"
] | 106 | 2016-01-15T21:24:41.000Z | 2020-09-24T12:15:13.000Z | tests/test_cli_fileops.py | mimakaev/cooler | 84b0d510dc3baf0b9ef3592f9d27ba795e1802ee | [
"BSD-3-Clause"
] | 190 | 2016-02-16T03:35:30.000Z | 2020-09-25T19:16:28.000Z | tests/test_cli_fileops.py | mimakaev/cooler | 84b0d510dc3baf0b9ef3592f9d27ba795e1802ee | [
"BSD-3-Clause"
] | 43 | 2016-08-26T18:51:21.000Z | 2020-09-08T13:38:50.000Z | from __future__ import absolute_import, division
import os.path as op
from click.testing import CliRunner
from cooler.cli import cli
testdir = op.realpath(op.dirname(__file__))
datadir = op.join(testdir, "data")
def test_cp():
runner = CliRunner()
with runner.isolated_filesystem():
result = runner.i... | 21.194444 | 58 | 0.441678 | 222 | 2,289 | 4.445946 | 0.247748 | 0.109422 | 0.164134 | 0.191489 | 0.678825 | 0.674772 | 0.525836 | 0.497467 | 0.467072 | 0.467072 | 0 | 0.016179 | 0.43294 | 2,289 | 107 | 59 | 21.392523 | 0.744222 | 0 | 0 | 0.478261 | 0 | 0 | 0.131935 | 0.100917 | 0 | 0 | 0 | 0 | 0.097826 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 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 |
e7355de48b5f14d2f1eda95746f13a0fecad2a55 | 345 | py | Python | python/getalp/wsd/optim/scheduler_noam.py | getalp/disambiguate-translate | 38ef754c786ded085d184633b21acc607902c098 | [
"MIT"
] | 53 | 2019-02-12T15:40:22.000Z | 2022-03-30T16:54:22.000Z | python/getalp/wsd/optim/scheduler_noam.py | getalp/disambiguate-translate | 38ef754c786ded085d184633b21acc607902c098 | [
"MIT"
] | 21 | 2019-06-11T15:21:17.000Z | 2022-02-05T11:53:38.000Z | python/getalp/wsd/optim/scheduler_noam.py | getalp/disambiguate-translate | 38ef754c786ded085d184633b21acc607902c098 | [
"MIT"
] | 19 | 2019-05-26T10:23:41.000Z | 2021-12-06T04:43:08.000Z |
class SchedulerNoam(object):
def __init__(self, warmup: int, model_size: int):
super().__init__()
self.warmup = warmup
self.model_size = model_size
def get_learning_rate(self, step: int):
step = max(1, step)
return self.model_size ** (-0.5) * min(step ** (-0.5), step ... | 26.538462 | 92 | 0.591304 | 47 | 345 | 4.042553 | 0.446809 | 0.189474 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0.255072 | 345 | 12 | 93 | 28.75 | 0.712062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e742402bcb4ca09d065f7d625acdd41e6a2693f0 | 2,107 | py | Python | securityheaders/models/xxssprotection/xxssprotection.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 151 | 2018-07-29T22:34:43.000Z | 2022-03-22T05:08:27.000Z | securityheaders/models/xxssprotection/xxssprotection.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 5 | 2019-04-24T07:31:36.000Z | 2021-04-15T14:31:23.000Z | securityheaders/models/xxssprotection/xxssprotection.py | th3cyb3rc0p/securityheaders | 941264be581dc01afe28f6416f2d7bed79aecfb3 | [
"Apache-2.0"
] | 42 | 2018-07-31T08:18:59.000Z | 2022-03-28T08:18:32.000Z | from securityheaders.models import SecurityHeader
from securityheaders.models.xxssprotection import XXSSProtectionDirective
from securityheaders.models.annotations import *
@requiredheader
@description('This header sets the configuration for the cross-site scripting filter built into most browsers. The recommended val... | 42.14 | 170 | 0.674419 | 196 | 2,107 | 7.209184 | 0.397959 | 0.158528 | 0.220807 | 0.121727 | 0.47983 | 0.393489 | 0.325548 | 0.325548 | 0 | 0 | 0 | 0.008217 | 0.249169 | 2,107 | 49 | 171 | 43 | 0.884956 | 0 | 0 | 0.372093 | 0 | 0.046512 | 0.138111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.372093 | 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 |
e742b7c888fed21c829364821b1a19635ee8f7ce | 1,092 | py | Python | controller/deis/wsgi.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 3,375 | 2015-01-01T04:03:45.000Z | 2022-02-08T14:53:45.000Z | controller/deis/wsgi.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 2,422 | 2015-01-01T02:40:01.000Z | 2021-11-30T07:50:32.000Z | controller/deis/wsgi.py | yun-an/deis | de27c11475bb7ca24816f288aa115699a1c37e26 | [
"Apache-2.0"
] | 688 | 2015-01-01T00:36:48.000Z | 2022-01-22T00:32:07.000Z | """
WSGI config for deis project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` set... | 28 | 86 | 0.733516 | 137 | 1,092 | 5.613139 | 0.50365 | 0.078023 | 0.078023 | 0.070221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174908 | 1,092 | 38 | 87 | 28.736842 | 0.853496 | 0.371795 | 0 | 0 | 0 | 0 | 0.077508 | 0.033435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e7455544c0403aac4d107f765b22a32373917d57 | 1,354 | py | Python | Estrutura de Repetição/Saltos de atletas.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | Estrutura de Repetição/Saltos de atletas.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | Estrutura de Repetição/Saltos de atletas.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | """
Programa 086
Área de estudos.
data 01.12.2020 (Indefinida) Hs
@Autor: Abraão A. Silva
"""
# Área de declaração e inicialização de variaveis.
cont_atleta = 1
soma_saltos = 0
maior, menor = 0, 1000
# corpo do meu programa.
print('Para finalizar aperte "space" e em seguida "enter".')
while True: # loop inifinit... | 28.208333 | 90 | 0.598966 | 178 | 1,354 | 4.5 | 0.511236 | 0.062422 | 0.0799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.282127 | 1,354 | 47 | 91 | 28.808511 | 0.796296 | 0.380355 | 0 | 0.076923 | 0 | 0 | 0.226829 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e745a29bcf722870d1bf40a812cd11285540d970 | 11,414 | py | Python | PyTujian/tujian.py | fossabot/tujian_python | 468e29e3690c8d3e3bae4a604b3a7087fe162e48 | [
"MIT"
] | 5 | 2019-08-23T15:54:58.000Z | 2021-06-04T12:13:38.000Z | PyTujian/tujian.py | fossabot/tujian_python | 468e29e3690c8d3e3bae4a604b3a7087fe162e48 | [
"MIT"
] | 1 | 2022-03-25T12:07:02.000Z | 2022-03-25T12:07:02.000Z | PyTujian/tujian.py | fossabot/tujian_python | 468e29e3690c8d3e3bae4a604b3a7087fe162e48 | [
"MIT"
] | 3 | 2020-03-03T06:59:08.000Z | 2022-03-25T12:04:18.000Z | import datetime
import json
from typing import Dict, List, NewType
UUID = NewType('UUID', str)
TujianColor = NewType('TujianColor', str)
MarkdownRaw = NewType('MarkdownRaw', str)
class TujianJSONEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, TujianSort):
return dict(o)
... | 22.919679 | 146 | 0.496846 | 1,209 | 11,414 | 4.466501 | 0.119934 | 0.088333 | 0.046296 | 0.062222 | 0.537407 | 0.500185 | 0.460556 | 0.460556 | 0.443519 | 0.443519 | 0 | 0.006984 | 0.372788 | 11,414 | 497 | 147 | 22.965795 | 0.747311 | 0.047924 | 0 | 0.547541 | 0 | 0 | 0.031042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167213 | false | 0 | 0.009836 | 0 | 0.52459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7498e0db9481687e832e68ff9e4383898190f1f | 803 | py | Python | webpage/metadata.py | karlburkhart/thunau | 900dca0259b30a229cd84f6315a7da9be94cb355 | [
"MIT"
] | null | null | null | webpage/metadata.py | karlburkhart/thunau | 900dca0259b30a229cd84f6315a7da9be94cb355 | [
"MIT"
] | 7 | 2020-03-24T16:20:07.000Z | 2021-12-13T19:51:29.000Z | webpage/metadata.py | karlburkhart/thunau | 900dca0259b30a229cd84f6315a7da9be94cb355 | [
"MIT"
] | null | null | null | # this files contains basic metadata about the project. This data will be used
# (by default) in the base.html and index.html
PROJECT_METADATA = {
'title': 'Dokuplattform Thunau am Kamp',
'author': 'Karl Burkhart',
'subtitle': 'A django project to bootstrap further web-app developments',
'description':... | 50.1875 | 136 | 0.716065 | 108 | 803 | 5.277778 | 0.740741 | 0.038596 | 0.059649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.166874 | 803 | 15 | 137 | 53.533333 | 0.847534 | 0.150685 | 0 | 0 | 0 | 0 | 0.786451 | 0.044183 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e74bc60eddb86aca080d71a2e055e05d958927ae | 335 | py | Python | brochure_wsgi/command_preprocessors/command_preprocessor.py | GreenLightSoftware/brochure-wsgi | fd2988429eedd094edde46a9e099118df81b9d26 | [
"MIT"
] | null | null | null | brochure_wsgi/command_preprocessors/command_preprocessor.py | GreenLightSoftware/brochure-wsgi | fd2988429eedd094edde46a9e099118df81b9d26 | [
"MIT"
] | 4 | 2019-10-12T16:55:58.000Z | 2022-03-21T22:16:58.000Z | brochure_wsgi/command_preprocessors/command_preprocessor.py | GreenLightSoftware/brochure-wsgi | fd2988429eedd094edde46a9e099118df81b9d26 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import Dict, Callable, Optional
class CommandPreprocessor(metaclass=ABCMeta): # pragma: no cover
@abstractmethod
def preprocess(self,
environ: Dict,
start_response: Callable) -> Optional[Callable[[Dict, Callable], str]]... | 30.454545 | 90 | 0.662687 | 33 | 335 | 6.69697 | 0.69697 | 0.108597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256716 | 335 | 10 | 91 | 33.5 | 0.88755 | 0.047761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e74c06762d712bc98f468ece627bd19203304c34 | 4,079 | py | Python | app/newspapers/fr/Lhumanite.py | protoop/newspapers-scraper | f8b556c55ef6b0646245354f51c3aa33dd7ab5e1 | [
"MIT"
] | null | null | null | app/newspapers/fr/Lhumanite.py | protoop/newspapers-scraper | f8b556c55ef6b0646245354f51c3aa33dd7ab5e1 | [
"MIT"
] | null | null | null | app/newspapers/fr/Lhumanite.py | protoop/newspapers-scraper | f8b556c55ef6b0646245354f51c3aa33dd7ab5e1 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
import datetime
from app.utils import ScraperHelper, Database
class Scraper:
def __init__(self):
self.name = "L'Humanite"
self.homepage_url = "http://www.humanite.fr"
self.watched_urls = []
self.db = Database.NewspapersDatabas... | 43.393617 | 157 | 0.616328 | 489 | 4,079 | 4.885481 | 0.304703 | 0.04144 | 0.031394 | 0.022604 | 0.173294 | 0.173294 | 0.12139 | 0.066136 | 0.066136 | 0.066136 | 0 | 0.00536 | 0.268203 | 4,079 | 93 | 158 | 43.860215 | 0.794975 | 0.059573 | 0 | 0.169014 | 0 | 0 | 0.119969 | 0.038683 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.042254 | null | null | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e753ab64a90039932827f7ec2d095ce58b052a66 | 378 | py | Python | backend/surfsara/migrations/0015_auto_20191011_2328.py | sara-nl/data-exchange | 52b9c2554a52b56686f3a06f583a7a6454bf6df6 | [
"Apache-2.0"
] | 4 | 2020-12-03T14:13:29.000Z | 2021-04-19T03:03:19.000Z | backend/surfsara/migrations/0015_auto_20191011_2328.py | sara-nl/data-exchange | 52b9c2554a52b56686f3a06f583a7a6454bf6df6 | [
"Apache-2.0"
] | null | null | null | backend/surfsara/migrations/0015_auto_20191011_2328.py | sara-nl/data-exchange | 52b9c2554a52b56686f3a06f583a7a6454bf6df6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-11 23:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("surfsara", "0014_task_review_output")]
operations = [
migrations.AlterField(
model_name="task",
name="review_output",
... | 22.235294 | 60 | 0.632275 | 42 | 378 | 5.571429 | 0.761905 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067616 | 0.256614 | 378 | 16 | 61 | 23.625 | 0.765125 | 0.119048 | 0 | 0 | 1 | 0 | 0.145015 | 0.069486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e753f0377b4c660acfcda6e293e0cddfff06da8d | 2,962 | py | Python | lib/third_party/google/iam/v1/logging/audit_data_pb2.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/third_party/google/iam/v1/logging/audit_data_pb2.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/third_party/google/iam/v1/logging/audit_data_pb2.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/logging/audit_data.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import sym... | 38.973684 | 435 | 0.794733 | 401 | 2,962 | 5.553616 | 0.329177 | 0.040413 | 0.059273 | 0.064661 | 0.26987 | 0.25595 | 0.169286 | 0.094746 | 0.081724 | 0 | 0 | 0.038903 | 0.088791 | 2,962 | 75 | 436 | 39.493333 | 0.786217 | 0.090479 | 0 | 0.145455 | 1 | 0.036364 | 0.307034 | 0.275772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109091 | 0 | 0.109091 | 0 | 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 |
e7542df73e768fba6c4591a4e03c4949c9e9370f | 3,459 | py | Python | dash_shap_components/ForcePlot.py | balajissp/dash_shap_components | dfca947c09708f81eb41f25b0cfdee920db25275 | [
"MIT"
] | 6 | 2021-01-02T08:19:39.000Z | 2022-03-04T20:33:11.000Z | dash_shap_components/ForcePlot.py | balajissp/dash_shap_components | dfca947c09708f81eb41f25b0cfdee920db25275 | [
"MIT"
] | 1 | 2021-05-03T10:47:58.000Z | 2021-05-28T07:40:13.000Z | dash_shap_components/ForcePlot.py | balajissp/dash_shap_components | dfca947c09708f81eb41f25b0cfdee920db25275 | [
"MIT"
] | 1 | 2021-05-03T10:32:29.000Z | 2021-05-03T10:32:29.000Z | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class ForcePlot(Component):
"""A ForcePlot component.
The ForcePlot component is used to visualize the shapley contributions
to a single prediction made by a tree-based ML model. This is a simple
wrapper ... | 67.823529 | 427 | 0.718416 | 442 | 3,459 | 5.533937 | 0.411765 | 0.095666 | 0.005724 | 0.015536 | 0.177433 | 0.177433 | 0.152903 | 0.152903 | 0.152903 | 0.152903 | 0 | 0.007315 | 0.169991 | 3,459 | 50 | 428 | 69.18 | 0.844653 | 0.553628 | 0 | 0 | 1 | 0 | 0.199089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 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 |
e75a12c8b77ca6fabd38369460d7a7f159bddec0 | 375 | py | Python | contents/code/selenium/11.py | johnnynode/python-spider | bd28b7af7bb94b677f97998728d7d62016de3ecc | [
"MIT"
] | 2 | 2019-04-15T15:11:27.000Z | 2020-07-12T16:36:04.000Z | contents/code/selenium/11.py | johnnynode/python-spider | bd28b7af7bb94b677f97998728d7d62016de3ecc | [
"MIT"
] | null | null | null | contents/code/selenium/11.py | johnnynode/python-spider | bd28b7af7bb94b677f97998728d7d62016de3ecc | [
"MIT"
] | 1 | 2021-08-05T05:56:22.000Z | 2021-08-05T05:56:22.000Z | from selenium import webdriver
from selenium.webdriver import ActionChains
#创建浏览器对象
driver = webdriver.Chrome()
#加载请求指定url地址
driver.get("https://www.zhihu.com/explore")
print(driver.get_cookies())
driver.add_cookie({'name':'Joh','domain':'www.zhihu.com','value':'zhangsan'})
print(driver.get_cookies())
driver.delete_al... | 28.846154 | 77 | 0.776 | 50 | 375 | 5.7 | 0.54 | 0.126316 | 0.147368 | 0.221053 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 375 | 13 | 78 | 28.846154 | 0.802817 | 0.085333 | 0 | 0.333333 | 0 | 0 | 0.199413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.333333 | 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 |
e7608e1a8bd326ff094486601d1bccb84db52a27 | 5,192 | py | Python | wz/ui/datatable_widget.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | wz/ui/datatable_widget.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | wz/ui/datatable_widget.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ui/datatable_widget.py
Last updated: 2021-10-22
Gui editor widget for "DataTables".
See datatable-editor.py for an app which can be used for testing this
widget.
=+LICENCE=================================
Copyright 2021 Michael Towers
Licensed under the Apache License, Version 2.0 (t... | 32.049383 | 82 | 0.609977 | 578 | 5,192 | 5.307958 | 0.352941 | 0.031291 | 0.014342 | 0.01043 | 0.013038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011239 | 0.280239 | 5,192 | 161 | 83 | 32.248447 | 0.809473 | 0.276002 | 0 | 0.111111 | 0 | 0 | 0.014243 | 0 | 0 | 0 | 0 | 0.018634 | 0 | 1 | 0.111111 | false | 0.010101 | 0.040404 | 0.010101 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e7670face5958b159dbfafb26609a21f8a753652 | 5,629 | py | Python | code/data_loader.py | gloriagr/audio-source-separation | d41ff852e78732dc3ec324c310aacc48a600a9ee | [
"MIT"
] | null | null | null | code/data_loader.py | gloriagr/audio-source-separation | d41ff852e78732dc3ec324c310aacc48a600a9ee | [
"MIT"
] | null | null | null | code/data_loader.py | gloriagr/audio-source-separation | d41ff852e78732dc3ec324c310aacc48a600a9ee | [
"MIT"
] | null | null | null | from torch.utils.data.dataset import Dataset
import torch
# from torchvision import transforms
# from skimage import io, transform
import os
''' train_mixture = "Train/Mixtures/"
train_bass = 'Train/Bass/'
train_vocals = 'Train/Vocals/'
train_drums = 'Train/Drums/'
train_others = 'Train/Others/'
val_mixture = "Valida... | 34.962733 | 81 | 0.638124 | 693 | 5,629 | 5 | 0.116883 | 0.060029 | 0.075036 | 0.078499 | 0.713709 | 0.694661 | 0.679942 | 0.662626 | 0.662626 | 0.649639 | 0 | 0.000237 | 0.249245 | 5,629 | 160 | 82 | 35.18125 | 0.819688 | 0.2194 | 0 | 0.602151 | 0 | 0 | 0.043522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0.032258 | 0.258065 | 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 |
e76fe917f7bd805c8906b2d8c24aad17c4fe5c01 | 188 | py | Python | ex020.py | joaovitorsud/Python-exercicios | e2b49e10eef991a9fc8029d5afdaae0a7326192c | [
"MIT"
] | null | null | null | ex020.py | joaovitorsud/Python-exercicios | e2b49e10eef991a9fc8029d5afdaae0a7326192c | [
"MIT"
] | null | null | null | ex020.py | joaovitorsud/Python-exercicios | e2b49e10eef991a9fc8029d5afdaae0a7326192c | [
"MIT"
] | null | null | null | from random import shuffle
a1 = input('aluno 1')
a2 = input('aluno 2')
a3 = input('aluno 3')
a4 = input('aluno 4')
lista = [a1, a2, a3, a4]
shuffle(lista)
print('a ordem é ')
print(lista) | 18.8 | 26 | 0.648936 | 33 | 188 | 3.69697 | 0.575758 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.170213 | 188 | 10 | 27 | 18.8 | 0.705128 | 0 | 0 | 0 | 0 | 0 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e77333e4299ca0e91f4cc89f54c9e2716a0751ca | 31,905 | py | Python | venv/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/plugins/modules/ome_device_mgmt_network.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/plugins/modules/ome_device_mgmt_network.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/plugins/modules/ome_device_mgmt_network.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Dell EMC OpenManage Ansible Modules
# Version 4.2.0
# Copyright (C) 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import (absolute_import, division, ... | 41.061776 | 137 | 0.646356 | 3,846 | 31,905 | 5.114665 | 0.128965 | 0.036602 | 0.022876 | 0.023181 | 0.520411 | 0.471354 | 0.416349 | 0.380408 | 0.337451 | 0.325047 | 0 | 0.025268 | 0.253252 | 31,905 | 776 | 138 | 41.114691 | 0.800378 | 0.009998 | 0 | 0.388736 | 0 | 0.016484 | 0.610705 | 0.12947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016484 | false | 0.006868 | 0.013736 | 0 | 0.048077 | 0.001374 | 0 | 0 | 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 |
e783c71276f6caa70974eb107999aa189a9413fc | 1,072 | py | Python | mdp_api/api/migrations/0003_frenchdepartment.py | namafutatsu/mdp_api | 9cd719bb05a8386f6db5272d650a8e20307ee059 | [
"MIT"
] | null | null | null | mdp_api/api/migrations/0003_frenchdepartment.py | namafutatsu/mdp_api | 9cd719bb05a8386f6db5272d650a8e20307ee059 | [
"MIT"
] | null | null | null | mdp_api/api/migrations/0003_frenchdepartment.py | namafutatsu/mdp_api | 9cd719bb05a8386f6db5272d650a8e20307ee059 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-22 14:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mdp_api_api', '0002_add_picture_field_to_shop'),
]
operations = [
migrations.CreateModel(
name=... | 34.580645 | 120 | 0.578358 | 112 | 1,072 | 5.348214 | 0.580357 | 0.040067 | 0.046745 | 0.073456 | 0.093489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033943 | 0.285448 | 1,072 | 30 | 121 | 35.733333 | 0.748042 | 0.041978 | 0 | 0 | 1 | 0 | 0.137561 | 0.050732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e79643541584d29a4f34c13a5535b7da416b2dfa | 212 | py | Python | fun.py | HACk4y/Python_fun_photoedit | c8e5b7ed56ec6a150361f03617104fbe0cd29e6b | [
"Unlicense"
] | null | null | null | fun.py | HACk4y/Python_fun_photoedit | c8e5b7ed56ec6a150361f03617104fbe0cd29e6b | [
"Unlicense"
] | null | null | null | fun.py | HACk4y/Python_fun_photoedit | c8e5b7ed56ec6a150361f03617104fbe0cd29e6b | [
"Unlicense"
] | null | null | null | from PIL import Image
inputi = input('Enter your image\n')
outputi = input('Enter your imageout\n')
me = Image.open(inputi)
bg = Image.open(outputi)
bg.paste(me,(0,0),me)
bg.save('Outputfromcode.jpg')
bg.show() | 21.2 | 40 | 0.712264 | 36 | 212 | 4.194444 | 0.555556 | 0.13245 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.113208 | 212 | 10 | 41 | 21.2 | 0.792553 | 0 | 0 | 0 | 0 | 0 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
e797d606ca043ea0a472a3637a22efeea9b02138 | 1,959 | py | Python | everdrive-sort.py | ooPo/RetroArch-Tools | d20eaba12fe46e81361f2ed6f70df9a98dc3975a | [
"BSD-2-Clause"
] | null | null | null | everdrive-sort.py | ooPo/RetroArch-Tools | d20eaba12fe46e81361f2ed6f70df9a98dc3975a | [
"BSD-2-Clause"
] | null | null | null | everdrive-sort.py | ooPo/RetroArch-Tools | d20eaba12fe46e81361f2ed6f70df9a98dc3975a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
##
## everdrive-sort.py by Naomi Peori <naomi@peori.ca>
## Sort roms using EverDrive compatible datfiles.
##
import os
import sys
import zipfile
import multiprocessing
##
## Check the arguments.
##
if len(sys.argv) < 2:
print "\nUsage:", sys.argv[0], "<source>"
sys.exit()
source = sys.arg... | 23.047059 | 94 | 0.662583 | 253 | 1,959 | 5.12253 | 0.383399 | 0.027778 | 0.016204 | 0.025463 | 0.087963 | 0.063272 | 0.063272 | 0 | 0 | 0 | 0 | 0.015238 | 0.196018 | 1,959 | 84 | 95 | 23.321429 | 0.807619 | 0.091884 | 0 | 0.039216 | 0 | 0 | 0.045246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.