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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d46254bc6da1d9fa96b27b2b63b7b8bb009d7dda | 514 | py | Python | analyze.py | justinshenk/sonic-face | 54cd08dfe00af13926365dacd6ab82c9c9c62c2f | [
"MIT"
] | 2 | 2018-06-25T10:50:53.000Z | 2018-09-03T12:11:02.000Z | analyze.py | justinshenk/sonic-face | 54cd08dfe00af13926365dacd6ab82c9c9c62c2f | [
"MIT"
] | 1 | 2020-09-21T09:16:19.000Z | 2020-09-21T09:16:19.000Z | analyze.py | justinshenk/sonic-face | 54cd08dfe00af13926365dacd6ab82c9c9c62c2f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
print('y1')
def main(filename):
raw_data = load_data(filename)
# TODO - Clean data
print(raw_data[0])
return raw_data
def load_data(filename):
with open(filename, 'r') as file:
raw = file.read()
raw_data = frames = raw.split... | 17.724138 | 61 | 0.61284 | 75 | 514 | 3.973333 | 0.546667 | 0.11745 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01269 | 0.233463 | 514 | 28 | 62 | 18.357143 | 0.743655 | 0.116732 | 0 | 0.117647 | 0 | 0 | 0.066519 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d46832def7ab8d657ad4fb1cd94534b366f94635 | 9,493 | py | Python | auc_vs_p50_1_model_v2_val_folds.py | kkraoj/lfmc_for_ignitions | 0562f0cc6a4d276cfa4d487a1432ae2c7b277dec | [
"Apache-2.0"
] | null | null | null | auc_vs_p50_1_model_v2_val_folds.py | kkraoj/lfmc_for_ignitions | 0562f0cc6a4d276cfa4d487a1432ae2c7b277dec | [
"Apache-2.0"
] | null | null | null | auc_vs_p50_1_model_v2_val_folds.py | kkraoj/lfmc_for_ignitions | 0562f0cc6a4d276cfa4d487a1432ae2c7b277dec | [
"Apache-2.0"
] | 1 | 2022-02-10T05:30:02.000Z | 2022-02-10T05:30:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon May 25 22:33:04 2020
@author: kkrao
"""
import os
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import sklearn.ensemble
import sklearn.metrics
import sklearn.model_selection
import statsmodels.api as sm
import init
sns.set(st... | 38.278226 | 148 | 0.631623 | 1,415 | 9,493 | 4.007774 | 0.20212 | 0.019397 | 0.016928 | 0.01975 | 0.429907 | 0.358491 | 0.304355 | 0.282843 | 0.222712 | 0.194851 | 0 | 0.023914 | 0.2071 | 9,493 | 247 | 149 | 38.433198 | 0.729507 | 0.112293 | 0 | 0.06962 | 0 | 0.006329 | 0.190243 | 0.087419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06962 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d46b258bafefe2859f2d2762db4f386c5ea7ff5e | 15,768 | py | Python | ultipro/operations.py | ftnt-dspille/connector-utlitpro | ee1a3d35e4b1ee17e0bb5eb38d3021b60eead992 | [
"MIT"
] | null | null | null | ultipro/operations.py | ftnt-dspille/connector-utlitpro | ee1a3d35e4b1ee17e0bb5eb38d3021b60eead992 | [
"MIT"
] | 1 | 2022-02-12T20:52:48.000Z | 2022-02-12T20:52:48.000Z | ultipro/operations.py | ftnt-dspille/connector-utlitpro | ee1a3d35e4b1ee17e0bb5eb38d3021b60eead992 | [
"MIT"
] | 1 | 2022-02-12T19:57:16.000Z | 2022-02-12T19:57:16.000Z | """
Steps related to making SOAP requests
"""
import requests
import xmltodict
import zeep
from connectors.core.connector import get_logger, ConnectorError
logger = get_logger("ultipro")
class Ultipro(object):
"""
Soap connector. Configured by a WSDL file provided by the soap service. Does
not currently ... | 43.318681 | 188 | 0.590753 | 1,396 | 15,768 | 6.617479 | 0.16404 | 0.049361 | 0.03031 | 0.02533 | 0.714007 | 0.710652 | 0.685754 | 0.625893 | 0.620156 | 0.595583 | 0 | 0.007963 | 0.29915 | 15,768 | 363 | 189 | 43.438017 | 0.827979 | 0.046867 | 0 | 0.612179 | 0 | 0.048077 | 0.373082 | 0.049307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0.012821 | 0.012821 | 0 | 0.108974 | 0.003205 | 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 |
d4705ff7b8556a92d16f1aac5171ed70b17badf6 | 5,800 | py | Python | ldh/pure.py | blurks/ldh | 36532c122c6904d9ca952d9027c03cdba0f85ed5 | [
"Apache-2.0"
] | 3 | 2019-10-16T14:44:19.000Z | 2021-11-30T16:45:11.000Z | ldh/pure.py | blurks/ldh | 36532c122c6904d9ca952d9027c03cdba0f85ed5 | [
"Apache-2.0"
] | 3 | 2019-07-26T06:59:59.000Z | 2021-01-15T10:16:22.000Z | ldh/pure.py | blurks/ldh | 36532c122c6904d9ca952d9027c03cdba0f85ed5 | [
"Apache-2.0"
] | 1 | 2021-12-07T01:35:59.000Z | 2021-12-07T01:35:59.000Z | import json
import collections
import re
import attr
from clldutils.source import Source
from clldutils.licenses import find
from ldh.util import REPOS
@attr.s
class Rights(object):
name = attr.ib()
url = attr.ib()
@attr.s
class Creator(object):
type = attr.ib(default='PERSON')
role = attr.ib(defa... | 29.896907 | 90 | 0.564655 | 725 | 5,800 | 4.484138 | 0.223448 | 0.064596 | 0.039988 | 0.031375 | 0.169179 | 0.121193 | 0.098431 | 0.087973 | 0.069517 | 0.027069 | 0 | 0.00338 | 0.285862 | 5,800 | 194 | 91 | 29.896907 | 0.781507 | 0 | 0 | 0.165644 | 0 | 0 | 0.106016 | 0.005689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09816 | false | 0 | 0.042945 | 0.02454 | 0.503067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d477a5599125fff99b4c7b9b7880e2bb52175a4f | 453 | py | Python | gae/urls.py | paulormart/gae-project-skeleton-100 | cf9f174d4209b213292fd267b241590102a74a68 | [
"MIT"
] | null | null | null | gae/urls.py | paulormart/gae-project-skeleton-100 | cf9f174d4209b213292fd267b241590102a74a68 | [
"MIT"
] | null | null | null | gae/urls.py | paulormart/gae-project-skeleton-100 | cf9f174d4209b213292fd267b241590102a74a68 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()
from .views import IndexView
urlpatterns = patterns('',
url(r'^$', IndexView.as_view(), name='index'),
url(r'^', include('gae.apps.auth_ndb.urls', n... | 28.3125 | 92 | 0.708609 | 63 | 453 | 4.984127 | 0.555556 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 453 | 15 | 93 | 30.2 | 0.792929 | 0.399559 | 0 | 0 | 0 | 0 | 0.172285 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d47dcea38796cd983b7fc5ec28b1c4dd3f6eaf46 | 504 | py | Python | onlinecoach/qa/admin.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | null | null | null | onlinecoach/qa/admin.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | 8 | 2019-12-04T23:02:42.000Z | 2022-02-10T11:45:46.000Z | onlinecoach/qa/admin.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Answer, Question
# Register your models here.
class AnswerInline(admin.TabularInline):
model = Answer
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fields = ('question_title', 'question_text', 'author' , 'category','is_solved', 'pub_date')
list_... | 31.5 | 95 | 0.72619 | 58 | 504 | 6.12069 | 0.586207 | 0.109859 | 0.107042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002342 | 0.152778 | 504 | 16 | 96 | 31.5 | 0.82904 | 0.051587 | 0 | 0 | 0 | 0 | 0.213836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 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 |
d47df016d85a42af496c2af9374e936c92d0434b | 2,223 | py | Python | reporting-plugins/register-sample-batch/script.py | qbicsoftware/etl-scripts | e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6 | [
"MIT"
] | 2 | 2018-04-20T15:48:02.000Z | 2021-11-30T17:39:28.000Z | reporting-plugins/register-sample-batch/script.py | qbicsoftware/etl-scripts | e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6 | [
"MIT"
] | 41 | 2017-07-19T11:17:26.000Z | 2021-09-28T12:10:49.000Z | reporting-plugins/register-sample-batch/script.py | qbicsoftware/etl-scripts | e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6 | [
"MIT"
] | 2 | 2017-04-27T10:32:33.000Z | 2018-02-20T09:26:12.000Z | import sys
sys.path.append('/abi-projects/QBiC/scripts')
# registers a list of samples and their metadata with openBIS
from ch.systemsx.cisd.openbis.generic.shared.api.v1.dto import SearchCriteria
class SampleAlreadyExistsError(Exception):
def __init__(self, value):
self.value = value
def __str__... | 35.285714 | 124 | 0.671165 | 242 | 2,223 | 6.090909 | 0.429752 | 0.105834 | 0.030529 | 0.027137 | 0.036635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002262 | 0.204678 | 2,223 | 62 | 125 | 35.854839 | 0.831448 | 0.040936 | 0 | 0 | 0 | 0 | 0.129638 | 0.022546 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d47e24c0d1df334eddbe55b9f55e0fe921e92082 | 3,467 | py | Python | test/integration/ggrc/memcache/testcachemanager.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/integration/ggrc/memcache/testcachemanager.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/integration/ggrc/memcache/testcachemanager.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
import json
import logging
import sys, os
from integration.ggrc import TestCase
from integration.ggrc.services.test_common import TestResource
from ggrc import settings
from ggrc.cache import CacheManager, M... | 37.27957 | 107 | 0.693106 | 469 | 3,467 | 5.078891 | 0.296375 | 0.050378 | 0.053736 | 0.030227 | 0.489924 | 0.434089 | 0.369857 | 0.333333 | 0.264484 | 0.242653 | 0 | 0.011951 | 0.179406 | 3,467 | 92 | 108 | 37.684783 | 0.825308 | 0.606288 | 0 | 0.235294 | 0 | 0 | 0.063396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.264706 | 0 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d484c3f7e9bbeb0708b36974561af15d3d64c95c | 6,346 | py | Python | src/spc/scheduler.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 12 | 2017-01-25T02:13:34.000Z | 2020-03-11T18:22:31.000Z | src/spc/scheduler.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 1 | 2018-01-08T19:21:24.000Z | 2018-01-08T19:21:24.000Z | src/spc/scheduler.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 2 | 2017-06-14T04:29:14.000Z | 2018-01-28T20:25:54.000Z | #!/usr/bin/env python
import threading, time, os, subprocess, signal, datetime
from multiprocessing import Process, BoundedSemaphore, Lock, Manager
from gluino import DAL
from user_data import user_dir
import config
STATE_RUN = 'R'
STATE_QUEUED = 'Q'
STATE_COMPLETED = 'C'
STATE_STOPPED = 'X'
class Scheduler(object):... | 35.651685 | 93 | 0.578475 | 848 | 6,346 | 4.266509 | 0.293632 | 0.028192 | 0.027363 | 0.034826 | 0.289939 | 0.260088 | 0.237424 | 0.188778 | 0.173853 | 0.157269 | 0 | 0.001808 | 0.302868 | 6,346 | 177 | 94 | 35.853107 | 0.816004 | 0.122754 | 0 | 0.232 | 0 | 0 | 0.024044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008 | 0.104 | null | null | 0.024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00fa37bf108206c8aa1bd79b9a2b610638a79d75 | 1,550 | py | Python | google-datacatalog-vertica-connector/tests/google/datacatalog_connectors/vertica/scrape/metadata_scraper_test.py | Linzee/datacatalog-connectors-rdbms | f66072732d3eaec8b982a4e389ba29947c5b6c3d | [
"Apache-2.0"
] | 46 | 2020-04-27T21:55:50.000Z | 2022-02-06T04:34:06.000Z | google-datacatalog-vertica-connector/tests/google/datacatalog_connectors/vertica/scrape/metadata_scraper_test.py | Linzee/datacatalog-connectors-rdbms | f66072732d3eaec8b982a4e389ba29947c5b6c3d | [
"Apache-2.0"
] | 45 | 2020-05-20T21:09:04.000Z | 2022-03-24T00:14:30.000Z | google-datacatalog-vertica-connector/tests/google/datacatalog_connectors/vertica/scrape/metadata_scraper_test.py | Linzee/datacatalog-connectors-rdbms | f66072732d3eaec8b982a4e389ba29947c5b6c3d | [
"Apache-2.0"
] | 47 | 2020-05-02T14:48:06.000Z | 2022-03-28T22:12:22.000Z | #!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31 | 78 | 0.683226 | 186 | 1,550 | 5.526882 | 0.575269 | 0.058366 | 0.025292 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.225806 | 1,550 | 49 | 79 | 31.632653 | 0.843333 | 0.371613 | 0 | 0.166667 | 0 | 0 | 0.19833 | 0.08977 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0.083333 | 0.125 | 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 |
00fe620bf466953364d0deb1b7b3abb4e0023b37 | 1,420 | py | Python | unported/no_wikidata.py | harej/reports_bot | 5cd82d4815fb58736a610293e6e74ad143b6a0e9 | [
"MIT"
] | 2 | 2017-01-21T03:03:49.000Z | 2020-09-10T23:45:31.000Z | unported/no_wikidata.py | harej/reports_bot | 5cd82d4815fb58736a610293e6e74ad143b6a0e9 | [
"MIT"
] | null | null | null | unported/no_wikidata.py | harej/reports_bot | 5cd82d4815fb58736a610293e6e74ad143b6a0e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Generates a report for English Wikipedia articles with no Wikidata item
Copyright (C) 2015 James Hare
Licensed under MIT License: http://mitlicense.org
"""
from urllib.parse import quote
import pywikibot
from project_index import WikiProjectTools
def main():
wptools = WikiProjectTool... | 33.809524 | 88 | 0.640141 | 186 | 1,420 | 4.709677 | 0.543011 | 0.079909 | 0.031963 | 0.043379 | 0.050228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013736 | 0.230986 | 1,420 | 41 | 89 | 34.634146 | 0.788462 | 0.149296 | 0 | 0 | 1 | 0 | 0.392827 | 0.05588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.16 | 0 | 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 |
2e09fb71035cfe8aa3bd795f62f13c8b85dfe9b7 | 1,455 | py | Python | tests/test_postgresql_watcher.py | stuartbeattie84/postgresql-watcher | 81aeb4cc40b62c9b79cb1f2bcc8773e3a0f6d5e5 | [
"Apache-2.0"
] | 2 | 2020-12-21T08:36:01.000Z | 2021-05-30T02:16:22.000Z | tests/test_postgresql_watcher.py | stuartbeattie84/postgresql-watcher | 81aeb4cc40b62c9b79cb1f2bcc8773e3a0f6d5e5 | [
"Apache-2.0"
] | 18 | 2020-12-27T01:26:56.000Z | 2022-02-07T09:15:02.000Z | tests/test_postgresql_watcher.py | stuartbeattie84/postgresql-watcher | 81aeb4cc40b62c9b79cb1f2bcc8773e3a0f6d5e5 | [
"Apache-2.0"
] | 9 | 2020-12-26T02:39:18.000Z | 2021-06-22T10:20:25.000Z | import sys
import unittest
from multiprocessing.connection import Pipe
from postgresql_watcher import PostgresqlWatcher
from multiprocessing import connection, context
# Warning!!! , Please setup yourself config
HOST = "127.0.0.1"
PORT = 5432
USER = "postgres"
PASSWORD = "123456"
def get_watcher():
return Postg... | 25.526316 | 80 | 0.725773 | 178 | 1,455 | 5.61236 | 0.398876 | 0.099099 | 0.054054 | 0.075075 | 0.177177 | 0.09009 | 0.09009 | 0 | 0 | 0 | 0 | 0.017167 | 0.199313 | 1,455 | 56 | 81 | 25.982143 | 0.840343 | 0.028179 | 0 | 0 | 0 | 0 | 0.025496 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.179487 | false | 0.076923 | 0.205128 | 0.025641 | 0.435897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e0ba3f83bef52839e5f0e16d38745a42e14fa6b | 6,371 | py | Python | vars2specs.py | ansible-middleware/collections-helper-scripts | 3466f29e35091f1639866e85b9692cfb425884cb | [
"Apache-2.0"
] | null | null | null | vars2specs.py | ansible-middleware/collections-helper-scripts | 3466f29e35091f1639866e85b9692cfb425884cb | [
"Apache-2.0"
] | null | null | null | vars2specs.py | ansible-middleware/collections-helper-scripts | 3466f29e35091f1639866e85b9692cfb425884cb | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2022 Guido Grazioli <guido.grazioli@gmail.com>
# SPDX-License-Identifier: MIT
#
# pylint: disable=invalid-name
"""Generates argument_specs.yml from variables parsed in role.
Usage:
vars2specs.py [-c] [-r DIR]
Options:
-c Parse all roles in a collection [default: no]
-r DIR ... | 34.814208 | 143 | 0.614032 | 780 | 6,371 | 4.792308 | 0.232051 | 0.037453 | 0.044141 | 0.029963 | 0.189941 | 0.11557 | 0.096843 | 0.079722 | 0 | 0 | 0 | 0.003238 | 0.272956 | 6,371 | 182 | 144 | 35.005495 | 0.803756 | 0.10124 | 0 | 0.07874 | 1 | 0 | 0.105812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086614 | false | 0 | 0.102362 | 0 | 0.299213 | 0.03937 | 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 |
2e116aa9a36ad0711a6e7fb2c2f9deb960bd06f0 | 1,008 | py | Python | app.py | y-du/module-update-service | 34de1474ab26cd8f590d93809ddf1376a62d8b49 | [
"Apache-2.0"
] | null | null | null | app.py | y-du/module-update-service | 34de1474ab26cd8f590d93809ddf1376a62d8b49 | [
"Apache-2.0"
] | null | null | null | app.py | y-du/module-update-service | 34de1474ab26cd8f590d93809ddf1376a62d8b49 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 Yann Dumont
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 to in wr... | 25.846154 | 75 | 0.756944 | 143 | 1,008 | 5.286713 | 0.615385 | 0.079365 | 0.034392 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010804 | 0.173611 | 1,008 | 38 | 76 | 26.526316 | 0.896759 | 0.546627 | 0 | 0 | 0 | 0 | 0.066826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e2132df6dc67e6bcb0fd9bcd3181906bb45bd57 | 3,554 | py | Python | configs/keypoints/cascade_mask_rcnn_x101_3x_coco.py | VGrondin/CBNetV2_mask_remote | b27246af5081d5395db3c3105d32226de05fcd13 | [
"Apache-2.0"
] | null | null | null | configs/keypoints/cascade_mask_rcnn_x101_3x_coco.py | VGrondin/CBNetV2_mask_remote | b27246af5081d5395db3c3105d32226de05fcd13 | [
"Apache-2.0"
] | null | null | null | configs/keypoints/cascade_mask_rcnn_x101_3x_coco.py | VGrondin/CBNetV2_mask_remote | b27246af5081d5395db3c3105d32226de05fcd13 | [
"Apache-2.0"
] | null | null | null | _base_ = '../cascade_rcnn/cascade_mask_rcnn_r50_fpn_mstrain_3x_coco.py'
model = dict(
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=8,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=Fa... | 37.020833 | 79 | 0.490152 | 371 | 3,554 | 4.428571 | 0.28841 | 0.107121 | 0.046865 | 0.051126 | 0.628119 | 0.628119 | 0.628119 | 0.628119 | 0.628119 | 0.628119 | 0 | 0.077428 | 0.400394 | 3,554 | 95 | 80 | 37.410526 | 0.693571 | 0 | 0 | 0.574468 | 0 | 0 | 0.123804 | 0.04108 | 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 | 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 |
2e235042349a71fc28db304132749d13ce4ca73b | 1,905 | py | Python | mainappengine.py | dittophantassy/accessicalc | 0c82a506c98890a7fc12e8d4a9e5aaf70a045a11 | [
"MIT"
] | null | null | null | mainappengine.py | dittophantassy/accessicalc | 0c82a506c98890a7fc12e8d4a9e5aaf70a045a11 | [
"MIT"
] | null | null | null | mainappengine.py | dittophantassy/accessicalc | 0c82a506c98890a7fc12e8d4a9e5aaf70a045a11 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
import json
import audio
import analisis
import valuar
import recorrer
import graficar
class Home(webapp.RequestHandler):
... | 35.277778 | 75 | 0.572178 | 177 | 1,905 | 6.141243 | 0.293785 | 0.110396 | 0.126955 | 0.143514 | 0.402944 | 0.351426 | 0.351426 | 0.351426 | 0.308188 | 0.308188 | 0 | 0.000747 | 0.297113 | 1,905 | 53 | 76 | 35.943396 | 0.810306 | 0.022047 | 0 | 0.142857 | 0 | 0 | 0.105914 | 0.012366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
2e2732a48946c34a2f2309cc89a6291229d34390 | 6,078 | py | Python | networkx/generators/tests/test_random_graphs.py | theaverageguy/networkx | b2b74b3ba028ef3788f796aa64b037c8ea446539 | [
"BSD-3-Clause"
] | null | null | null | networkx/generators/tests/test_random_graphs.py | theaverageguy/networkx | b2b74b3ba028ef3788f796aa64b037c8ea446539 | [
"BSD-3-Clause"
] | null | null | null | networkx/generators/tests/test_random_graphs.py | theaverageguy/networkx | b2b74b3ba028ef3788f796aa64b037c8ea446539 | [
"BSD-3-Clause"
] | 2 | 2016-09-04T10:59:12.000Z | 2020-02-17T07:43:04.000Z | # -*- encoding: utf-8 -*-
# test_random_graphs.py - unit tests for random graph generators
#
# Copyright 2010–2016 NetworkX developers.
#
# This file is part of NetworkX.
#
# NetworkX is distributed under a BSD license; see LICENSE.txt for more
# information.
"""Unit tests for the :mod:`networkx.generators.random_graph... | 36.178571 | 86 | 0.665021 | 920 | 6,078 | 4.159783 | 0.154348 | 0.103475 | 0.069506 | 0.070551 | 0.637314 | 0.591847 | 0.509799 | 0.422002 | 0.36138 | 0.274628 | 0 | 0.065826 | 0.230174 | 6,078 | 167 | 87 | 36.39521 | 0.75187 | 0.092465 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.401709 | 1 | 0.068376 | false | 0 | 0.17094 | 0.017094 | 0.264957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e355e491b45cab59fbf7f6aec5741cb6376eb1f | 3,448 | py | Python | pedantic/decorators/fn_deco_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | 15 | 2020-09-10T13:06:53.000Z | 2021-12-21T12:39:18.000Z | pedantic/decorators/fn_deco_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | 39 | 2020-08-12T12:38:03.000Z | 2022-03-22T18:09:48.000Z | pedantic/decorators/fn_deco_pedantic.py | LostInDarkMath/pedantic-python-decorators | 66865a958a36440b48e790f22ea42d2beb725b16 | [
"Apache-2.0"
] | null | null | null | from functools import wraps
from typing import Any, Optional
from pedantic.type_checking_logic.check_docstring import _check_docstring
from pedantic.constants import ReturnType, F
from pedantic.models.decorated_function import DecoratedFunction
from pedantic.models.function_call import FunctionCall
from pedantic.env_v... | 41.047619 | 119 | 0.671984 | 438 | 3,448 | 5.166667 | 0.27169 | 0.044189 | 0.03977 | 0.037119 | 0.340698 | 0.332744 | 0.319929 | 0.319929 | 0.29916 | 0.260274 | 0 | 0.009091 | 0.234339 | 3,448 | 83 | 120 | 41.542169 | 0.848106 | 0.470128 | 0 | 0.121212 | 0 | 0 | 0.005025 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.121212 | false | 0 | 0.242424 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e382da173eb9d616697afe15a45124d729ee448 | 2,449 | py | Python | presto/migrations/0025_auto_20180226_0902.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | null | null | null | presto/migrations/0025_auto_20180226_0902.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | 8 | 2020-07-28T07:59:09.000Z | 2022-03-11T23:43:01.000Z | presto/migrations/0025_auto_20180226_0902.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-02-26 08:02
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
import django.utils.timezone
class Migration(migrations.Migration):
dep... | 36.552239 | 130 | 0.601878 | 243 | 2,449 | 5.925926 | 0.395062 | 0.0875 | 0.111806 | 0.13125 | 0.440278 | 0.440278 | 0.350694 | 0.31875 | 0.281944 | 0.115278 | 0 | 0.021922 | 0.273581 | 2,449 | 66 | 131 | 37.106061 | 0.787521 | 0.027766 | 0 | 0.40678 | 1 | 0 | 0.132464 | 0.009672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101695 | 0 | 0.152542 | 0 | 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 |
2e38e821a8c5bf38d133bf1e799faa213a5cba04 | 542 | py | Python | app/views.py | Wambita/News | 145d67f5e9165f496d2a40b04f9b8e9f8f0b508c | [
"Unlicense"
] | null | null | null | app/views.py | Wambita/News | 145d67f5e9165f496d2a40b04f9b8e9f8f0b508c | [
"Unlicense"
] | null | null | null | app/views.py | Wambita/News | 145d67f5e9165f496d2a40b04f9b8e9f8f0b508c | [
"Unlicense"
] | null | null | null | from flask import render_template
from app import app
from .request import get_sources, get_articles
# Views
@app.route('/')
def index():
'''
View root page function that returns the index page and its data
'''
title = 'Home - Welcome to The best Online News Website'
return render_template('index... | 25.809524 | 75 | 0.686347 | 79 | 542 | 4.607595 | 0.455696 | 0.115385 | 0.087912 | 0.126374 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210332 | 542 | 21 | 76 | 25.809524 | 0.850467 | 0.263838 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2e39e7e3f5dce51f17824f31296aa5c09dc463da | 6,713 | py | Python | models/models.py | carlo007/AI-Pygame | 549a1d7d3ee4d08f57ccdd44ce6c4e97471586d0 | [
"CC0-1.0"
] | null | null | null | models/models.py | carlo007/AI-Pygame | 549a1d7d3ee4d08f57ccdd44ce6c4e97471586d0 | [
"CC0-1.0"
] | null | null | null | models/models.py | carlo007/AI-Pygame | 549a1d7d3ee4d08f57ccdd44ce6c4e97471586d0 | [
"CC0-1.0"
] | null | null | null | #models.py
#Models
import time
import math
import pygame
import physics
import environment
pygame.init()
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
class Signature():
def __init__(self, construct):
self.spawn_time = time.clock()
if construc... | 30.652968 | 117 | 0.555489 | 917 | 6,713 | 3.925845 | 0.155943 | 0.040278 | 0.05 | 0.05 | 0.413333 | 0.321111 | 0.300556 | 0.228611 | 0.224722 | 0.199722 | 0 | 0.034948 | 0.326531 | 6,713 | 219 | 118 | 30.652968 | 0.761336 | 0.068077 | 0 | 0.189024 | 0 | 0 | 0.010608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030488 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e4813b36e300a0841a9b7144bb462f7d6efa998 | 1,269 | py | Python | app/services/reverse_geocode.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | app/services/reverse_geocode.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | app/services/reverse_geocode.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | import decimal
from typing import Dict
import requests
from flask import current_app
# https://nominatim.org/release-docs/develop/api/Reverse/#other asks for the API user's
# email to be included in the request if a large number of requests is being made
from app.config import WASTE_MANAGEMENT_PROVIDER_NAME
... | 43.758621 | 111 | 0.72104 | 163 | 1,269 | 5.453988 | 0.527607 | 0.067492 | 0.103487 | 0.121485 | 0.053993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001883 | 0.163121 | 1,269 | 28 | 112 | 45.321429 | 0.835217 | 0.212766 | 0 | 0 | 0 | 0 | 0.237552 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e4d30bb490b2bf085d6e0d696bf7edb33ae2a74 | 3,357 | py | Python | test/IECore/TypedDataAsObject.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 386 | 2015-01-02T11:10:43.000Z | 2022-03-10T15:12:20.000Z | test/IECore/TypedDataAsObject.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 484 | 2015-01-09T18:28:06.000Z | 2022-03-31T16:02:04.000Z | test/IECore/TypedDataAsObject.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 99 | 2015-01-28T23:18:04.000Z | 2022-03-27T00:59:39.000Z | ##########################################################################
#
# Copyright (c) 2007, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | 31.669811 | 76 | 0.666965 | 456 | 3,357 | 4.892544 | 0.350877 | 0.147916 | 0.031376 | 0.047064 | 0.294487 | 0.218288 | 0.171672 | 0.154639 | 0.131779 | 0.060959 | 0 | 0.015146 | 0.193625 | 3,357 | 105 | 77 | 31.971429 | 0.809014 | 0.506107 | 0 | 0.326531 | 0 | 0 | 0.012925 | 0 | 0 | 0 | 0 | 0 | 0.591837 | 1 | 0.040816 | false | 0 | 0.040816 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e50db023a59184d8e816b8b17dc58128bd6edfe | 938 | py | Python | example.py | JaySon-Huang/pyjpegtbx | 5d3475c0a9dc1051048055f2c65e0a7e2371e952 | [
"MIT"
] | 16 | 2015-03-31T19:09:01.000Z | 2021-11-24T02:57:32.000Z | example.py | xigua0106/pyjpegtbx | e416d49cd179bf37b848fa3b4f55a7bcb40c4a5e | [
"MIT"
] | 18 | 2015-01-16T18:28:26.000Z | 2021-07-26T07:19:25.000Z | example.py | xigua0106/pyjpegtbx | e416d49cd179bf37b848fa3b4f55a7bcb40c4a5e | [
"MIT"
] | 5 | 2016-08-05T02:06:28.000Z | 2020-08-20T14:32:46.000Z | #! /usr/bin/env python3
#encoding=utf-8
from __future__ import print_function
from pyjpegtbx import JPEGImage
# 第二个参数为 JPEGImage.MODE_RGB, 表示读取RGB数据
img = JPEGImage.open('test/pics/lfs.jpg', JPEGImage.MODE_RGB)
newdata = []
# img.data中存储着RGB数据
# for rgb in img.data:
# newdata.append((0, rgb[1], rgb[2]))
# img.da... | 21.813953 | 61 | 0.702559 | 140 | 938 | 4.585714 | 0.485714 | 0.043614 | 0.049844 | 0.062305 | 0.133956 | 0.133956 | 0.133956 | 0.133956 | 0.133956 | 0 | 0 | 0.016209 | 0.144989 | 938 | 42 | 62 | 22.333333 | 0.784289 | 0.36887 | 0 | 0 | 0 | 0 | 0.187063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2e5142423d02332946a951af3e479e27dc80723f | 1,297 | py | Python | src/config.py | llalon/git-repo-backup | 6c258a66940c47c9ab84767dfc1665038b7700c5 | [
"MIT"
] | 1 | 2022-02-25T18:12:51.000Z | 2022-02-25T18:12:51.000Z | src/config.py | llalon/git-repo-backup | 6c258a66940c47c9ab84767dfc1665038b7700c5 | [
"MIT"
] | null | null | null | src/config.py | llalon/git-repo-backup | 6c258a66940c47c9ab84767dfc1665038b7700c5 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from pathlib import Path
from enum import Enum, auto
from filehandler import is_path_exists_or_creatable
import settings
class GitProvider(Enum):
gitlab = auto()
github = auto()
@dataclass
class Config:
token: str
owners: list[str]
directory: Path
method: Gi... | 24.942308 | 102 | 0.677718 | 172 | 1,297 | 5.017442 | 0.290698 | 0.063731 | 0.050985 | 0.060255 | 0.132097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217425 | 1,297 | 51 | 103 | 25.431373 | 0.850246 | 0.012336 | 0 | 0.083333 | 0 | 0 | 0.047694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e5391581dd3a9f1a141bb0df2a6b60a4fad6acc | 1,094 | py | Python | papermerge/core/migrations/0023_auto_20200921_0456.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 45 | 2021-01-10T14:33:52.000Z | 2022-03-27T14:02:56.000Z | papermerge/core/migrations/0023_auto_20200921_0456.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 8 | 2021-01-08T20:02:21.000Z | 2022-02-01T13:12:24.000Z | papermerge/core/migrations/0023_auto_20200921_0456.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 12 | 2021-01-07T20:03:07.000Z | 2022-03-24T04:07:51.000Z | # Generated by Django 3.0.10 on 2020-09-21 04:56
from django.db import migrations, models
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('core', '0022_auto_20200909_0826'),
]
operations = [
migrations.AlterModelOptions(
name='tag',
... | 33.151515 | 200 | 0.615174 | 117 | 1,094 | 5.641026 | 0.632479 | 0.031818 | 0.042424 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.265082 | 1,094 | 32 | 201 | 34.1875 | 0.781095 | 0.042048 | 0 | 0.230769 | 1 | 0.038462 | 0.297323 | 0.021989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 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 |
2e5b7e76e3e965a1d8f6bd79407d9e4cd03dfec0 | 14,344 | py | Python | Deprecated/GGP/analogy/rule_mapper/partialmap.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Deprecated/GGP/analogy/rule_mapper/partialmap.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | Deprecated/GGP/analogy/rule_mapper/partialmap.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | import sys
from comb_perm import *
import predicate
from GDL import Sentence
import placetype
from move_effects import calc_move_effects
from find_max import find_max
import options
import pdb
def debug_print(s):
print s
pass
def possible_matchings(s1, s2):
# we can't match two instances of the same predicate in o... | 31.114967 | 117 | 0.684677 | 2,311 | 14,344 | 3.919515 | 0.123323 | 0.016781 | 0.031464 | 0.037757 | 0.360896 | 0.227865 | 0.163833 | 0.127291 | 0.091411 | 0.068889 | 0 | 0.012287 | 0.205661 | 14,344 | 460 | 118 | 31.182609 | 0.782693 | 0.140128 | 0 | 0.252976 | 0 | 0 | 0.021549 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | null | null | 0.005952 | 0.026786 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e5c2a5347dc62e17b2ba2fd9fe438af20601bc5 | 689 | py | Python | setup.py | randovania/retro-data-structures | ec59d1a5cf59ea8e1809616a709ef8a2ce122ef3 | [
"MIT"
] | null | null | null | setup.py | randovania/retro-data-structures | ec59d1a5cf59ea8e1809616a709ef8a2ce122ef3 | [
"MIT"
] | null | null | null | setup.py | randovania/retro-data-structures | ec59d1a5cf59ea8e1809616a709ef8a2ce122ef3 | [
"MIT"
] | null | null | null | import os
import subprocess
import sys
from pathlib import Path
from setuptools import setup
from setuptools.command.egg_info import egg_info
def generate_property_templates():
subprocess.run([
sys.executable,
os.fspath(Path(__file__).parent.joinpath("parse_pwe_templates.py"))
], check=True)
... | 20.878788 | 75 | 0.698113 | 78 | 689 | 5.910256 | 0.538462 | 0.075922 | 0.10846 | 0.095445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206096 | 689 | 32 | 76 | 21.53125 | 0.842779 | 0.085631 | 0 | 0 | 1 | 0 | 0.074919 | 0.035831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.47619 | 0 | 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 |
2e65466c8bb5a67ea44e977feb3c33779da965c9 | 301 | py | Python | setup.py | ErikEkstedt/Project | c56b852440041775caaa242b7e86779666c0f1c3 | [
"MIT"
] | 3 | 2018-06-14T12:16:30.000Z | 2022-03-20T11:42:27.000Z | setup.py | ErikEkstedt/Project | c56b852440041775caaa242b7e86779666c0f1c3 | [
"MIT"
] | 12 | 2020-01-28T22:11:11.000Z | 2022-02-09T23:30:06.000Z | setup.py | ErikEkstedt/Gestures | c56b852440041775caaa242b7e86779666c0f1c3 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='gesture',
version='0.1',
description='Learning to gesture',
url='https://github.com/ErikEkstedt/Project.git',
author='Erik',
author_email='eeckee@gmail.com',
license='MIT',
packages=['gesture'],
zip_safe=False)
| 25.083333 | 55 | 0.631229 | 35 | 301 | 5.371429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.212625 | 301 | 11 | 56 | 27.363636 | 0.78481 | 0 | 0 | 0 | 0 | 0 | 0.335548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e78cbc1674ed432499a89f02452eb6830d5e936 | 4,208 | py | Python | pyNastran/bdf/bdf_interface/bdf_card.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/bdf/bdf_interface/bdf_card.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/bdf/bdf_interface/bdf_card.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | """
Defines the BDFCard class that is passed into the various Nastran cards.
"""
from __future__ import (nested_scopes, generators, division, absolute_import,
print_function, unicode_literals)
from typing import List, Union, Optional
from pyNastran.bdf.field_writer import print_card
from pyNastr... | 28.053333 | 87 | 0.527329 | 535 | 4,208 | 4.007477 | 0.228037 | 0.05597 | 0.025187 | 0.032649 | 0.207556 | 0.150653 | 0.083955 | 0.083955 | 0.083955 | 0.045709 | 0 | 0.017844 | 0.347433 | 4,208 | 149 | 88 | 28.241611 | 0.762928 | 0.389496 | 0 | 0 | 0 | 0 | 0.000968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.102041 | 0 | 0.571429 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e7a71ca8fa0f52a32e9a22008de5ea6cb44ecfb | 4,871 | py | Python | stock_prediction.py | thebishorup/stock-prediction | ac726bba2a61624c6af4c0f724d61e700f052938 | [
"MIT"
] | null | null | null | stock_prediction.py | thebishorup/stock-prediction | ac726bba2a61624c6af4c0f724d61e700f052938 | [
"MIT"
] | null | null | null | stock_prediction.py | thebishorup/stock-prediction | ac726bba2a61624c6af4c0f724d61e700f052938 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""stock-prediction.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1amgI6VqbJRj8XSLlozTmme5ZPjL3Pi3B
"""
#pip install quandl
# Import required libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as... | 25.369792 | 97 | 0.699035 | 696 | 4,871 | 4.761494 | 0.208333 | 0.067592 | 0.023537 | 0.031684 | 0.496379 | 0.379602 | 0.36029 | 0.345202 | 0.345202 | 0.266747 | 0 | 0.014223 | 0.1628 | 4,871 | 192 | 98 | 25.369792 | 0.798431 | 0.133443 | 0 | 0.392523 | 1 | 0 | 0.114217 | 0.015532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065421 | false | 0 | 0.102804 | 0 | 0.233645 | 0.056075 | 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 |
2e85faa7dd1b0ff49db5a202aaa7e931d8e3669f | 455 | py | Python | src/pygnmi/get.py | fredhsu/openmgmt | 0556e169e200ac0410efcd228e88e207074de4c0 | [
"Apache-2.0"
] | 30 | 2021-04-13T13:25:25.000Z | 2022-02-26T18:54:00.000Z | src/pygnmi/get.py | fredhsu/openmgmt | 0556e169e200ac0410efcd228e88e207074de4c0 | [
"Apache-2.0"
] | 55 | 2021-03-31T22:08:12.000Z | 2022-03-26T12:47:38.000Z | src/pygnmi/get.py | fredhsu/openmgmt | 0556e169e200ac0410efcd228e88e207074de4c0 | [
"Apache-2.0"
] | 13 | 2021-05-19T14:39:46.000Z | 2022-02-28T10:25:23.000Z | from pygnmi.client import gNMIclient, telemetryParser
import json
host = ('10.73.1.105', '6030')
paths=['interfaces/interface[name=Ethernet1]/state/counters', 'network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state']
with gNMIclient(target=host, username='arista', password='arista', ins... | 35 | 147 | 0.758242 | 62 | 455 | 5.5 | 0.790323 | 0.041056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.092308 | 455 | 12 | 148 | 37.916667 | 0.791768 | 0 | 0 | 0 | 0 | 0 | 0.373068 | 0.293598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2e874a933a06ea7feba3eda698cd20c84193b539 | 1,522 | py | Python | codeonproject/urls.py | VenesaOkuna/CodeOn | 88bcc79cab09b54958e693f00e2cc6bc680d7392 | [
"MIT"
] | null | null | null | codeonproject/urls.py | VenesaOkuna/CodeOn | 88bcc79cab09b54958e693f00e2cc6bc680d7392 | [
"MIT"
] | null | null | null | codeonproject/urls.py | VenesaOkuna/CodeOn | 88bcc79cab09b54958e693f00e2cc6bc680d7392 | [
"MIT"
] | null | null | null | """codeonproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | 36.238095 | 116 | 0.729304 | 205 | 1,522 | 5.336585 | 0.365854 | 0.045704 | 0.013711 | 0.021938 | 0.167276 | 0.106947 | 0.068556 | 0 | 0 | 0 | 0 | 0.006144 | 0.144547 | 1,522 | 41 | 117 | 37.121951 | 0.834101 | 0.445466 | 0 | 0 | 0 | 0 | 0.178657 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5cea4c018cd6d20ba0be488b542ad56ba8867d70 | 18,261 | py | Python | formTest.py | faisalarkan21/mbti-test-qt | 06d701ba9f95ee278b029d122908b18cac07033d | [
"Apache-2.0"
] | null | null | null | formTest.py | faisalarkan21/mbti-test-qt | 06d701ba9f95ee278b029d122908b18cac07033d | [
"Apache-2.0"
] | null | null | null | formTest.py | faisalarkan21/mbti-test-qt | 06d701ba9f95ee278b029d122908b18cac07033d | [
"Apache-2.0"
] | null | null | null | __author__ = 'faisal21'
import sys
from PyQt4 import QtGui
from PyQt4.QtGui import QDialog
from PyQt4 import QtCore
from dialog import Ui_Dialog
from Tkinter import *
class Test(QtGui.QDialog,Toplevel):
def __init__(self,parent):
QtGui.QMainWindow.__init__(self,parent)
self.ui = Ui_Di... | 31.980736 | 201 | 0.523082 | 1,858 | 18,261 | 5.106566 | 0.131862 | 0.080944 | 0.07968 | 0.02656 | 0.320194 | 0.192664 | 0.053963 | 0.015177 | 0 | 0 | 0 | 0.054386 | 0.313291 | 18,261 | 570 | 202 | 32.036842 | 0.702233 | 0.005038 | 0 | 0.063107 | 0 | 0 | 0.040726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014563 | null | null | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ced460d0db7d83b4dfa61d0e0e57792c42c50de | 571 | py | Python | cloudmesh/pi/grove_air_quality_sensor.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 2 | 2017-09-18T00:56:36.000Z | 2018-06-01T23:41:23.000Z | cloudmesh/pi/grove_air_quality_sensor.py | cloudmesh/cloudmesh-pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 1 | 2018-04-16T18:37:17.000Z | 2018-04-16T18:37:17.000Z | cloudmesh/pi/grove_air_quality_sensor.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 3 | 2017-09-20T11:13:54.000Z | 2017-11-30T23:48:37.000Z | import time
import grovepi
class GroveAirQualitySensor:
def __init__(self, pin = 0):
"""
connect to an analog pin to get input, pin A0 by default
"""
self.air_sensor = pin
grovepi.pinMode(self.air_sensor,"INPUT")
def get(self):
"""
return the analog value of air quality recieved.
less value means fr... | 21.961538 | 58 | 0.712785 | 79 | 571 | 4.911392 | 0.506329 | 0.054124 | 0.100515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008602 | 0.185639 | 571 | 25 | 59 | 22.84 | 0.825806 | 0 | 0 | 0 | 0 | 0 | 0.068127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cefd9e17c0722da80597e8acdcaae3d9a760477 | 815 | py | Python | myproject/hello/admin.py | jbking/demo-appengine-django-golang | 99b185754af41f69f3f4c3aef76b0dc92a13dc8b | [
"MIT"
] | null | null | null | myproject/hello/admin.py | jbking/demo-appengine-django-golang | 99b185754af41f69f3f4c3aef76b0dc92a13dc8b | [
"MIT"
] | null | null | null | myproject/hello/admin.py | jbking/demo-appengine-django-golang | 99b185754af41f69f3f4c3aef76b0dc92a13dc8b | [
"MIT"
] | null | null | null | from django import forms
from django.contrib import admin
from django.contrib.admin.sites import NotRegistered
from django.contrib.auth.admin import UserAdmin
from .models import Greeting, User
admin.site.register(Greeting)
# This is ignore displaying that Custom User may also many-to-many to Group
# https://github... | 26.290323 | 78 | 0.717791 | 102 | 815 | 5.637255 | 0.558824 | 0.069565 | 0.088696 | 0.062609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.177914 | 815 | 30 | 79 | 27.166667 | 0.855224 | 0.159509 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.25 | 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 |
5cf017417b133f28b92495303e71a5fd62a94949 | 202 | py | Python | sqlplay.py | ajtowns/brithint | 72e086b45aceb3a682f8b51839dd7a8789f0f0db | [
"MIT"
] | null | null | null | sqlplay.py | ajtowns/brithint | 72e086b45aceb3a682f8b51839dd7a8789f0f0db | [
"MIT"
] | null | null | null | sqlplay.py | ajtowns/brithint | 72e086b45aceb3a682f8b51839dd7a8789f0f0db | [
"MIT"
] | null | null | null | import sqlalchemy
from sqlalchemy import *
engine = create_engine("sqlite:///brithint.sqlite")
m = MetaData(bind=engine)
m.reflect()
c = engine.connect()
ev = m.tables["events"]
b = m.tables["block"]
| 18.363636 | 51 | 0.712871 | 28 | 202 | 5.107143 | 0.642857 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 202 | 10 | 52 | 20.2 | 0.803371 | 0 | 0 | 0 | 0 | 0 | 0.178218 | 0.123762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cf056adc20d3ec80f2b9270cece6ac0c4343b43 | 762 | py | Python | python/complete/no008.py | dhermes/project-euler | 2aabf89b28f033a3e59b7411a9c9c261117818cf | [
"Apache-2.0"
] | 7 | 2015-03-24T21:30:33.000Z | 2021-03-13T14:01:23.000Z | python/complete/no008.py | dhermes/project-euler | 2aabf89b28f033a3e59b7411a9c9c261117818cf | [
"Apache-2.0"
] | 2 | 2015-03-25T22:53:54.000Z | 2016-08-15T16:07:48.000Z | python/complete/no008.py | dhermes/project-euler | 2aabf89b28f033a3e59b7411a9c9c261117818cf | [
"Apache-2.0"
] | 1 | 2015-03-25T22:34:04.000Z | 2015-03-25T22:34:04.000Z | #!/usr/bin/env python
# Find the greatest product of five consecutive
# digits in the 1000-digit number.
import operator
from python.decorators import euler_timer
from python.functions import get_data
def product_consec_digits(number, consecutive):
"""
Returns the largest product of "consecutive"
conse... | 25.4 | 70 | 0.698163 | 109 | 762 | 4.715596 | 0.513761 | 0.035019 | 0.07393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012924 | 0.187664 | 762 | 29 | 71 | 26.275862 | 0.817448 | 0.129921 | 0 | 0 | 0 | 0 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cf255b9c810d952f34ccceaa0b9ef437e020439 | 1,557 | py | Python | source/powder.py | cssidy/powder-day-alerts | 00bad81d3f5f02b8f33e87d1fd2fefebb1f88ae4 | [
"MIT"
] | null | null | null | source/powder.py | cssidy/powder-day-alerts | 00bad81d3f5f02b8f33e87d1fd2fefebb1f88ae4 | [
"MIT"
] | 1 | 2021-06-01T22:05:35.000Z | 2021-06-01T22:05:35.000Z | source/powder.py | cssidy/powder-day-alerts | 00bad81d3f5f02b8f33e87d1fd2fefebb1f88ae4 | [
"MIT"
] | null | null | null | #! /usr/bin/python3.5
# scrapes Smugglers' Notch snow report for snow status, sends a text if it's a powder day
import bs4
import requests
import datetime
from twilio.rest import Client
def scraper():
today = datetime.datetime.now()
print('Downloading current snow report for %s...' % (today))
# get page... | 22.242857 | 89 | 0.588953 | 200 | 1,557 | 4.495 | 0.5 | 0.060067 | 0.043382 | 0.022247 | 0.084538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013812 | 0.302505 | 1,557 | 69 | 90 | 22.565217 | 0.813996 | 0.162492 | 0 | 0.073171 | 0 | 0 | 0.174248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.073171 | 0.097561 | 0 | 0.146341 | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5cfcd215b4a45ac01e5acdaad4adda9d9a236ed7 | 554 | py | Python | Feature Selection - Novel Viz/FeatureSelection_Experiments/SleeveP&P3DComparison.py | JWolff98/summer_fellows | 9ebfaaa1f879759ff6d8e2273211914c753aea85 | [
"MIT"
] | null | null | null | Feature Selection - Novel Viz/FeatureSelection_Experiments/SleeveP&P3DComparison.py | JWolff98/summer_fellows | 9ebfaaa1f879759ff6d8e2273211914c753aea85 | [
"MIT"
] | null | null | null | Feature Selection - Novel Viz/FeatureSelection_Experiments/SleeveP&P3DComparison.py | JWolff98/summer_fellows | 9ebfaaa1f879759ff6d8e2273211914c753aea85 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from mpl_toolkits.mplot3d import Axes3D
DatabaseDF = pd.read_csv('Feature Selection - Novel Viz\CleanedDataset.csv')
filteredDF = DatabaseDF[DatabaseDF['Completion Type'] == 'Sleeves and P & P']
fig = plt.figure(figsize = (... | 32.588235 | 94 | 0.723827 | 83 | 554 | 4.795181 | 0.638554 | 0.015075 | 0.050251 | 0.070352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035565 | 0.137184 | 554 | 17 | 95 | 32.588235 | 0.797071 | 0 | 0 | 0 | 0 | 0 | 0.248649 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 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 |
cf14caf24e626eaea5ded5c0281a5b46abf608dd | 1,182 | py | Python | script_builder/serializers.py | cscanlin/munger-builder | adb95ae31b8fc15fd914fee469be94895b285a6d | [
"MIT"
] | 9 | 2015-11-06T10:37:37.000Z | 2021-02-24T03:59:39.000Z | script_builder/serializers.py | cscanlin/munger-builder | adb95ae31b8fc15fd914fee469be94895b285a6d | [
"MIT"
] | null | null | null | script_builder/serializers.py | cscanlin/munger-builder | adb95ae31b8fc15fd914fee469be94895b285a6d | [
"MIT"
] | 3 | 2015-12-21T17:40:44.000Z | 2018-05-15T13:46:15.000Z | from rest_framework import serializers
from .models import MungerBuilder, DataField, PivotField, FieldType
class PartialAllowed(serializers.ModelSerializer):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.partial = True
class FieldTypeSerializer(PartialAllowed):
cl... | 35.818182 | 102 | 0.703046 | 121 | 1,182 | 6.53719 | 0.471074 | 0.045512 | 0.070796 | 0.106195 | 0.075853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195431 | 1,182 | 32 | 103 | 36.9375 | 0.831756 | 0 | 0 | 0.153846 | 0 | 0 | 0.178511 | 0.041455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf19c88a95074ef78cba1d4bb7be98bf3fb11ba4 | 5,453 | py | Python | code/ensemble.py | skbly7/smai-project | b53ec7b798e2c802c1e0ee21690a5ee46e6aad84 | [
"MIT"
] | null | null | null | code/ensemble.py | skbly7/smai-project | b53ec7b798e2c802c1e0ee21690a5ee46e6aad84 | [
"MIT"
] | null | null | null | code/ensemble.py | skbly7/smai-project | b53ec7b798e2c802c1e0ee21690a5ee46e6aad84 | [
"MIT"
] | null | null | null | from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from sklearn.base import TransformerMixin
from sklearn.preprocessing import LabelEncoder
from sklearn.externals import six
from sklearn.base import clone
from sklearn.pipeline import _name_estimators
import numpy as np
import operator
from ... | 32.458333 | 122 | 0.620026 | 682 | 5,453 | 4.882698 | 0.293255 | 0.04955 | 0.018018 | 0.025225 | 0.105105 | 0.1003 | 0.062462 | 0 | 0 | 0 | 0 | 0.016589 | 0.248304 | 5,453 | 167 | 123 | 32.652695 | 0.795804 | 0.019989 | 0 | 0.035714 | 0 | 0 | 0.080929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007143 | 0.142857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf1f595b9873735f2def634945d54fd354129d0f | 1,161 | py | Python | BAC.py | 666Yeet/BAC | f17b81f8e150a95fb55f0a662e0fec26d2a8ef33 | [
"MIT"
] | 1 | 2021-09-03T22:07:31.000Z | 2021-09-03T22:07:31.000Z | BAC.py | 666Yeet/BAC | f17b81f8e150a95fb55f0a662e0fec26d2a8ef33 | [
"MIT"
] | null | null | null | BAC.py | 666Yeet/BAC | f17b81f8e150a95fb55f0a662e0fec26d2a8ef33 | [
"MIT"
] | null | null | null | #imports
import pyautogui
import time
import keyboard
################################################################
#vars
IsPressed = False
sleep = time.sleep
################################################################
#configs
print("Made By Cody666#5618, v1.0.3")
print("Enter Amount Of Clicks:")
k... | 24.702128 | 76 | 0.406546 | 100 | 1,161 | 4.5 | 0.55 | 0.053333 | 0.048889 | 0.053333 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024499 | 0.226529 | 1,161 | 46 | 77 | 25.23913 | 0.476615 | 0.037037 | 0 | 0.30303 | 0 | 0 | 0.296196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.121212 | 0.181818 | 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 |
cf25d9d9fa1315f805fed2ca23a0fba83e37e6c7 | 809 | py | Python | hknweb/alumni/migrations/0002_auto_20220228_1252.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/alumni/migrations/0002_auto_20220228_1252.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/alumni/migrations/0002_auto_20220228_1252.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2022-02-28 20:52
import django.core.validators
from django.db import migrations, models
import hknweb.alumni.models
class Migration(migrations.Migration):
dependencies = [
('alumni', '0001_squashed_0016_auto_20190219_0832'),
]
operations = [
migrations.Alt... | 31.115385 | 190 | 0.666255 | 90 | 809 | 5.822222 | 0.6 | 0.038168 | 0.076336 | 0.110687 | 0.152672 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0.068254 | 0.221261 | 809 | 25 | 191 | 32.36 | 0.763492 | 0.055624 | 0 | 0.315789 | 1 | 0 | 0.111549 | 0.048556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 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 |
cf2c64476bb02d04aee37dc8ca25dc4acffecad0 | 794 | py | Python | products/migrations/0001_initial.py | gaston38kpo/tienda-messirve-commerce | bb485789e9a65ae03a6408d89138d7026bf0c38a | [
"MIT"
] | 2 | 2021-11-14T09:29:56.000Z | 2021-11-14T21:20:12.000Z | products/migrations/0001_initial.py | gaston38kpo/tienda-messirve-commerce | bb485789e9a65ae03a6408d89138d7026bf0c38a | [
"MIT"
] | 4 | 2021-11-12T16:12:09.000Z | 2021-11-15T15:14:42.000Z | products/migrations/0001_initial.py | gaston38kpo/tienda-messirve-commerce | bb485789e9a65ae03a6408d89138d7026bf0c38a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-13 20:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.BigAutoFie... | 30.538462 | 117 | 0.585642 | 83 | 794 | 5.493976 | 0.686747 | 0.059211 | 0.078947 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054291 | 0.280856 | 794 | 25 | 118 | 31.76 | 0.744308 | 0.056675 | 0 | 0 | 1 | 0 | 0.058902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 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 |
cf30c3b3c63825058c78b0f45ad969124878e073 | 254 | py | Python | src/velmu/velmu/views.py | haltu/velmu-mpass-demo | 19eb0e14fa6710e4aee5d47c898cf570bf7621e5 | [
"MIT"
] | null | null | null | src/velmu/velmu/views.py | haltu/velmu-mpass-demo | 19eb0e14fa6710e4aee5d47c898cf570bf7621e5 | [
"MIT"
] | 11 | 2018-08-16T12:09:57.000Z | 2018-08-22T14:26:15.000Z | src/velmu/velmu/views.py | haltu/velmu-mpass-demo | 19eb0e14fa6710e4aee5d47c898cf570bf7621e5 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import logging
from django.views.generic import TemplateView
LOG = logging.getLogger(__name__)
class IndexView(TemplateView):
template_name = 'velmu/views/index.html'
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2
| 16.933333 | 53 | 0.751969 | 32 | 254 | 5.8125 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.133858 | 254 | 14 | 54 | 18.142857 | 0.827273 | 0.287402 | 0 | 0 | 0 | 0 | 0.124294 | 0.124294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cf32f58e3304afc4abc1a5f0d39e25a272834537 | 1,288 | py | Python | pyvisdk/do/application_quiesce_fault.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/do/application_quiesce_fault.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/do/application_quiesce_fault.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def ApplicationQuiesceFault(vim, *args, **kwargs):
'''This fault is thrown when creating ... | 35.777778 | 124 | 0.643634 | 148 | 1,288 | 5.574324 | 0.662162 | 0.058182 | 0.033939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003884 | 0.200311 | 1,288 | 35 | 125 | 36.8 | 0.797087 | 0.285714 | 0 | 0 | 1 | 0 | 0.197561 | 0.041463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf36f8554413e95eaceedbbee46fa13d58c237a1 | 3,414 | py | Python | ip_update.py | Foristkirito/tunet-python | bde7a3a004769d82f3ab0c493e4888ab9890f84c | [
"MIT"
] | null | null | null | ip_update.py | Foristkirito/tunet-python | bde7a3a004769d82f3ab0c493e4888ab9890f84c | [
"MIT"
] | null | null | null | ip_update.py | Foristkirito/tunet-python | bde7a3a004769d82f3ab0c493e4888ab9890f84c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# IP CHECKER
# Checks saved WAN IP against the current IP
# (ideally every 30 mins via a cron job) and
# emails new IP to email address of your choice
from __future__ import print_function
from datetime import datetime
import logging
import os
from smtplib import SMTP_SSL
import sh # install wi... | 33.470588 | 99 | 0.65993 | 492 | 3,414 | 4.398374 | 0.355691 | 0.045287 | 0.025416 | 0.018484 | 0.137708 | 0.102588 | 0.023105 | 0 | 0 | 0 | 0 | 0.007446 | 0.21324 | 3,414 | 101 | 100 | 33.80198 | 0.798213 | 0.24048 | 0 | 0.111111 | 0 | 0 | 0.129622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.069444 | 0.125 | 0 | 0.25 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf3fded8910dcb6bc1e6bf53f3be95d613cbd490 | 2,737 | py | Python | recipes/recipes/recipe_simulation.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | 1 | 2018-01-02T05:47:07.000Z | 2018-01-02T05:47:07.000Z | recipes/recipes/recipe_simulation.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | null | null | null | recipes/recipes/recipe_simulation.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A continuous builder which runs recipe tests."""
from recipe_engine.recipe_api import Property
DEPS = [
'depot_tools/bot_update',
'depot_tools/gclien... | 30.076923 | 80 | 0.671173 | 345 | 2,737 | 5.092754 | 0.371014 | 0.056915 | 0.072851 | 0.054639 | 0.266363 | 0.253273 | 0.236767 | 0.236767 | 0.236767 | 0.236767 | 0 | 0.001822 | 0.198027 | 2,737 | 90 | 81 | 30.411111 | 0.798633 | 0.128973 | 0 | 0.318841 | 0 | 0 | 0.283607 | 0.037084 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.028986 | false | 0 | 0.014493 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cf44a12addb97334fdb8a5e43d6ee3d28f61d2e4 | 3,302 | py | Python | django_seriously/minimaluser/admin.py | tfranzel/django-seriously | 50da33e49ce351bf4c3f86595c5dc8933d297bcd | [
"BSD-3-Clause"
] | 4 | 2022-01-23T23:34:17.000Z | 2022-03-28T16:44:00.000Z | django_seriously/minimaluser/admin.py | tfranzel/django-seriously | 50da33e49ce351bf4c3f86595c5dc8933d297bcd | [
"BSD-3-Clause"
] | null | null | null | django_seriously/minimaluser/admin.py | tfranzel/django-seriously | 50da33e49ce351bf4c3f86595c5dc8933d297bcd | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from django.contrib.auth import password_validation
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.contrib.auth.forms import UserCreationForm as DjangoUserCreationForm
from django.core.exceptions import ValidationError
from django.utils.translation import gettext... | 35.12766 | 88 | 0.575106 | 316 | 3,302 | 5.822785 | 0.373418 | 0.038043 | 0.048913 | 0.03913 | 0.16087 | 0.102174 | 0.102174 | 0.045652 | 0 | 0 | 0 | 0.005707 | 0.310115 | 3,302 | 93 | 89 | 35.505376 | 0.802019 | 0.027862 | 0 | 0.164706 | 0 | 0 | 0.204928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.317647 | 0.082353 | 0 | 0.258824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf50f8334d035852bee6f1e9dcac36a8700c303e | 907 | py | Python | chapter_5/sys-Module.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_5/sys-Module.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_5/sys-Module.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "Program Exits"
'sys Module Exits'
import sys
# sys.exit(N) # exit with status N, else exits on end of script
# print('This line will not be printed')
"""
Interestingly, this call really just raises the built-in SystemExit exception. Because of
this, we can catch it as usual to in... | 32.392857 | 99 | 0.696803 | 132 | 907 | 4.780303 | 0.621212 | 0.033281 | 0.041204 | 0.053883 | 0.091918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23484 | 907 | 27 | 100 | 33.592593 | 0.909222 | 0.200662 | 0 | 0 | 0 | 0 | 0.348958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf53ddbb4dcd6c18160f70c36572322d929145ce | 261 | py | Python | python/func_desc.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 7 | 2016-01-03T19:42:07.000Z | 2018-10-23T14:03:12.000Z | python/func_desc.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | null | null | null | python/func_desc.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 1 | 2018-03-09T08:52:01.000Z | 2018-03-09T08:52:01.000Z | import platform
for m in dir(platform):
mtc = getattr(platform, m)
if type(mtc) == "function":
result = mtc()
else:
result = mtc
print '-'*10
print "platform.{}".format(m)
print mtc.__doc__
print "{}".format(result)
| 20.076923 | 33 | 0.56705 | 32 | 261 | 4.5 | 0.53125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.283525 | 261 | 12 | 34 | 21.75 | 0.759358 | 0 | 0 | 0 | 0 | 0 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf59ce957dc5a287d1934cb36896f2c067f1d7de | 8,085 | py | Python | dsmirai/linux_container_migration.py | mboukhalfa/backend | 5c3c3bd375ed1110ccda517b30c36003ca4b0426 | [
"MIT"
] | null | null | null | dsmirai/linux_container_migration.py | mboukhalfa/backend | 5c3c3bd375ed1110ccda517b30c36003ca4b0426 | [
"MIT"
] | null | null | null | dsmirai/linux_container_migration.py | mboukhalfa/backend | 5c3c3bd375ed1110ccda517b30c36003ca4b0426 | [
"MIT"
] | null | null | null |
import dsmirai.client_broker as client_broker
import dsmirai.intent_based_networking as intent_based_networking
from operator import itemgetter
from dsmirai.persistent_model import helpers
from dsmirai.persistent_model import dashboard_helper
import dsmirai.onos_helpers as onos_helpers
"""
Code communication: migra... | 46.465517 | 112 | 0.640816 | 937 | 8,085 | 5.239061 | 0.179296 | 0.035853 | 0.022815 | 0.042371 | 0.308413 | 0.209004 | 0.126299 | 0.049297 | 0.024445 | 0.024445 | 0 | 0.006933 | 0.2329 | 8,085 | 173 | 113 | 46.734104 | 0.784586 | 0.005318 | 0 | 0.175573 | 0 | 0 | 0.225525 | 0.039211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007634 | false | 0 | 0.045802 | 0 | 0.091603 | 0.427481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
cf5cbb10348022e68443f2829e8078d33ead95d6 | 7,298 | py | Python | src/execute.py | ADVENCHER4/PasswordManager | 0e2a20fb95e52d04f2d4697d1970b0155493498d | [
"MIT"
] | null | null | null | src/execute.py | ADVENCHER4/PasswordManager | 0e2a20fb95e52d04f2d4697d1970b0155493498d | [
"MIT"
] | null | null | null | src/execute.py | ADVENCHER4/PasswordManager | 0e2a20fb95e52d04f2d4697d1970b0155493498d | [
"MIT"
] | null | null | null | from model import Item
import inspect
import os
import random
import sqlite3
import string
CHARS = string.ascii_letters + string.digits + string.punctuation
PASSWORD_LENTH = 10
# create dir for db
filename = inspect.getframeinfo(inspect.currentframe()).filename
path = os.path.dirname(os.path.abspath(filename)) + '\\re... | 30.282158 | 116 | 0.589751 | 871 | 7,298 | 4.823192 | 0.174512 | 0.03404 | 0.009998 | 0.033325 | 0.487503 | 0.398715 | 0.374197 | 0.35682 | 0.275887 | 0.256844 | 0 | 0.002553 | 0.302275 | 7,298 | 240 | 117 | 30.408333 | 0.822467 | 0.052754 | 0 | 0.505155 | 0 | 0 | 0.186739 | 0.006601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0.273196 | 0.030928 | 0 | 0.185567 | 0.113402 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf60975f3b02eb83aa021b9d97c1d5838112572c | 389 | py | Python | study/account/management/commands/sendreminders.py | yenarhee/password-study | 35695c65adf066ea8de494bf42022b0a975dab67 | [
"MIT"
] | null | null | null | study/account/management/commands/sendreminders.py | yenarhee/password-study | 35695c65adf066ea8de494bf42022b0a975dab67 | [
"MIT"
] | null | null | null | study/account/management/commands/sendreminders.py | yenarhee/password-study | 35695c65adf066ea8de494bf42022b0a975dab67 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from account.utils import send_bulk_reminders
class Command(BaseCommand):
help = 'Send reminders to users who have not signed in today'
def handle(self, *args, **options):
self.stdout.write('Preparing to send reminder emails...')
send_bulk_... | 29.923077 | 65 | 0.727506 | 50 | 389 | 5.58 | 0.7 | 0.057348 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182519 | 389 | 12 | 66 | 32.416667 | 0.877358 | 0 | 0 | 0 | 0 | 0 | 0.29563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf61947fa439414a88e3a92c5e2432cbd7374f4b | 573 | py | Python | ukbot/rules/word.py | danmichaelo/UKBot | 7d5796bbf009ba9dcc32564b0375eb105271c99f | [
"MIT"
] | 2 | 2018-01-27T12:07:46.000Z | 2019-03-13T14:12:14.000Z | ukbot/rules/word.py | danmichaelo/UKBot | 7d5796bbf009ba9dcc32564b0375eb105271c99f | [
"MIT"
] | 5 | 2017-03-12T21:29:28.000Z | 2022-03-11T09:24:50.000Z | ukbot/rules/word.py | danmichaelo/UKBot | 7d5796bbf009ba9dcc32564b0375eb105271c99f | [
"MIT"
] | 3 | 2016-07-02T18:45:44.000Z | 2018-01-02T10:02:48.000Z | # encoding=utf-8
# vim: fenc=utf-8 et sw=4 ts=4 sts=4 ai
from ..common import _
from ..contributions import UserContribution
from .rule import Rule
from .decorators import family
class WordRule(Rule):
rule_name = 'word'
@family('wikipedia.org', 'wikibooks.org')
def test(self, rev):
words_added =... | 27.285714 | 94 | 0.623037 | 73 | 573 | 4.794521 | 0.520548 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.260035 | 573 | 20 | 95 | 28.65 | 0.811321 | 0.09075 | 0 | 0 | 0 | 0 | 0.098456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf68d24ef22663d168d7958b986a232bc4b040cb | 1,272 | py | Python | 20_parenthesis.py | sreedharg/leetcode | 28c162c0f6923e4feaa0d6279c00dfe8237c726d | [
"MIT"
] | null | null | null | 20_parenthesis.py | sreedharg/leetcode | 28c162c0f6923e4feaa0d6279c00dfe8237c726d | [
"MIT"
] | null | null | null | 20_parenthesis.py | sreedharg/leetcode | 28c162c0f6923e4feaa0d6279c00dfe8237c726d | [
"MIT"
] | null | null | null | from collections import deque
class Solution(object):
def isValid(self, s):
"""
:type s: str
:rtype: bool
"""
d = deque([])
started = False
opening = ['[', '{', '(']
closing = [']', '}', ')']
pairs = {']': '[', '}': '{', ')': '('}
op... | 22.714286 | 46 | 0.36478 | 110 | 1,272 | 4.145455 | 0.363636 | 0.120614 | 0.085526 | 0.125 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0 | 0.009554 | 0.506289 | 1,272 | 55 | 47 | 23.127273 | 0.716561 | 0.019654 | 0 | 0.425 | 0 | 0 | 0.025535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.225 | 0.1 | 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 |
cf6e4718a3c05435057654e62a2e7bf63df3d898 | 1,195 | py | Python | 13.py | daniiarkhodzhaev-at/lab2 | 5a547e3e5e94d9145b8074d17b608891d33cfd87 | [
"MIT"
] | null | null | null | 13.py | daniiarkhodzhaev-at/lab2 | 5a547e3e5e94d9145b8074d17b608891d33cfd87 | [
"MIT"
] | null | null | null | 13.py | daniiarkhodzhaev-at/lab2 | 5a547e3e5e94d9145b8074d17b608891d33cfd87 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import turtle
def halfcircle(N, a=1):
for i in range(180):
turtle.forward(N)
turtle.left(a)
return 0
def main() -> int:
turtle.shape("turtle")
turtle.tracer(False)
turtle.penup()
turtle.goto(0,-200)
turtle.pendown()
turtle.begin_fill()
halfcircle... | 20.254237 | 28 | 0.606695 | 150 | 1,195 | 4.74 | 0.333333 | 0.098453 | 0.14346 | 0.177215 | 0.506329 | 0.47398 | 0.420534 | 0.420534 | 0.420534 | 0.420534 | 0 | 0.096175 | 0.23431 | 1,195 | 58 | 29 | 20.603448 | 0.680874 | 0.014226 | 0 | 0.566038 | 0 | 0 | 0.053526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.018868 | 0 | 0.09434 | 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 |
cf7d9401bf7404ab8ba6489698c0889359298091 | 2,398 | py | Python | corehq/apps/app_manager/management/commands/ptop_make_app_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/app_manager/management/commands/ptop_make_app_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/app_manager/management/commands/ptop_make_app_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
import pprint
from django.core.management.base import NoArgsCommand
import sys
import os
from corehq.apps.app_manager.models import Application
from corehq.apps.hqcase.management.commands.ptop_generate_mapping import MappingOutputCommand
from corehq.pillows import dynamic
from corehq.pillo... | 42.070175 | 153 | 0.701001 | 311 | 2,398 | 5.18328 | 0.376206 | 0.055831 | 0.032258 | 0.042184 | 0.139578 | 0.057072 | 0.057072 | 0.057072 | 0.057072 | 0.057072 | 0 | 0.000516 | 0.19141 | 2,398 | 56 | 154 | 42.821429 | 0.830841 | 0.024604 | 0 | 0 | 0 | 0 | 0.201199 | 0.026969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.261905 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf7dbc984adc84c2be49fae438cedf06dc279241 | 610 | py | Python | schedule/models.py | irfanmaulananasution/guidian | b5224c58d320c81bb085a89bcc011e020207a1f2 | [
"MIT"
] | 1 | 2021-09-09T02:34:59.000Z | 2021-09-09T02:34:59.000Z | schedule/models.py | irfanmaulananasution/guidian | b5224c58d320c81bb085a89bcc011e020207a1f2 | [
"MIT"
] | null | null | null | schedule/models.py | irfanmaulananasution/guidian | b5224c58d320c81bb085a89bcc011e020207a1f2 | [
"MIT"
] | null | null | null | from django.db import models
from regularTour.models import RegularTourModel
from django.core.validators import MinValueValidator, MaxValueValidator
# Create your models here.
class RegTourScheduleModel(models.Model):
date = models.DateField()
startTime = models.TimeField()
slot = models.IntegerField(valid... | 35.882353 | 71 | 0.713115 | 59 | 610 | 7.322034 | 0.59322 | 0.046296 | 0.083333 | 0.111111 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.208197 | 610 | 16 | 72 | 38.125 | 0.879917 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf7dd00b4e6d5e2026d04140d717c97add9ed4eb | 858 | py | Python | Diena_9_sets_tuples/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_9_sets_tuples/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_9_sets_tuples/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | # Vitauts
def is_pangram_en(mytext, a=set('abcdefghijklmnopqrstuvwxyz')):
return len(set(mytext.lower()).intersection(a)) == 26
def is_pangram_lv(mytext, a='aābcčdeēfgģhiījkķlļmnņoprsštuūvzž'):
return len(set(mytext.lower()).intersection(a)) == 33
def main():
print(is_pangram_en('The quick brown fox jum... | 34.32 | 87 | 0.642191 | 110 | 858 | 4.790909 | 0.490909 | 0.136622 | 0.159393 | 0.091082 | 0.45351 | 0.303605 | 0.303605 | 0.166983 | 0.166983 | 0.166983 | 0 | 0.006015 | 0.224942 | 858 | 24 | 88 | 35.75 | 0.786466 | 0.066434 | 0 | 0 | 0 | 0 | 0.38966 | 0.074401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.133333 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
cf88c7735bfea5a226dd3dbecec07e9a94c0741c | 2,649 | py | Python | clients/python/kafka.py | JerryYuYG/kafka | 644c19ebed1a22fdf5c589f825335ec158c6f895 | [
"Apache-2.0"
] | 1 | 2015-07-14T13:59:40.000Z | 2015-07-14T13:59:40.000Z | clients/python/kafka.py | JerryYuYG/kafka | 644c19ebed1a22fdf5c589f825335ec158c6f895 | [
"Apache-2.0"
] | null | null | null | clients/python/kafka.py | JerryYuYG/kafka | 644c19ebed1a22fdf5c589f825335ec158c6f895 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 35.797297 | 134 | 0.667422 | 353 | 2,649 | 4.917847 | 0.413598 | 0.051843 | 0.031682 | 0.024194 | 0.048387 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0.009135 | 0.214798 | 2,649 | 73 | 135 | 36.287671 | 0.825481 | 0.377501 | 0 | 0 | 0 | 0 | 0.068796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8405c48884d7e409c78039ddf35612bb6b6e602 | 401 | py | Python | tests/io/test_txt_file.py | tillbiskup/cwepr | fb5df019238b63f36c7cfdf2d88264e5d18078be | [
"BSD-2-Clause"
] | null | null | null | tests/io/test_txt_file.py | tillbiskup/cwepr | fb5df019238b63f36c7cfdf2d88264e5d18078be | [
"BSD-2-Clause"
] | null | null | null | tests/io/test_txt_file.py | tillbiskup/cwepr | fb5df019238b63f36c7cfdf2d88264e5d18078be | [
"BSD-2-Clause"
] | null | null | null | import os
import unittest
import cwepr.io
import cwepr.dataset
ROOTPATH = os.path.split(os.path.abspath(__file__))[0]
class TestTxtImporter(unittest.TestCase):
def test_import(self):
source = os.path.join(ROOTPATH, 'testdata/noisy_data')
importer = cwepr.io.TxtImporter(source=source)
dat... | 25.0625 | 62 | 0.72818 | 49 | 401 | 5.816327 | 0.55102 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.164589 | 401 | 15 | 63 | 26.733333 | 0.847761 | 0 | 0 | 0 | 0 | 0 | 0.047382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.727273 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d840c6b7f4485e14a04a52561cbd0a5d92a7bf83 | 10,412 | py | Python | tests/rtllib/test_aes.py | SwiftWinds/PyRTL | cf5a682313f20be204ed6ea586ce51ce6861c998 | [
"BSD-3-Clause"
] | 159 | 2015-10-01T05:42:49.000Z | 2022-03-19T05:53:15.000Z | tests/rtllib/test_aes.py | SwiftWinds/PyRTL | cf5a682313f20be204ed6ea586ce51ce6861c998 | [
"BSD-3-Clause"
] | 221 | 2015-09-23T06:34:21.000Z | 2022-02-12T20:24:35.000Z | tests/rtllib/test_aes.py | pllab/PyRTL | 8b42f566a3c2c23de21f1b534900232219a3b313 | [
"BSD-3-Clause"
] | 61 | 2015-10-21T22:27:37.000Z | 2022-03-30T19:46:55.000Z | import unittest
import pyrtl
import pyrtl.corecircuits
from pyrtl.rtllib import aes, testingutils
class TestAESDecrypt(unittest.TestCase):
"""
Test vectors are retrieved from:
http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
"""
def setUp(self):
pyrtl.reset_working_block()
... | 47.761468 | 100 | 0.66433 | 974 | 10,412 | 6.824435 | 0.162218 | 0.036107 | 0.050549 | 0.046036 | 0.62043 | 0.599067 | 0.585527 | 0.542199 | 0.512412 | 0.50158 | 0 | 0.206892 | 0.255859 | 10,412 | 217 | 101 | 47.981567 | 0.651007 | 0.046677 | 0 | 0.553459 | 0 | 0 | 0.016598 | 0 | 0 | 0 | 0.243295 | 0 | 0.100629 | 1 | 0.08805 | false | 0 | 0.025157 | 0 | 0.125786 | 0 | 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 |
d84152b2ca58fef9866864be3bd7fc508d779f2a | 745 | py | Python | Random Drafts/median.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | 1 | 2020-07-09T23:10:56.000Z | 2020-07-09T23:10:56.000Z | Random Drafts/median.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | null | null | null | Random Drafts/median.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | null | null | null | def median(l):
l.sort()
length=len(l)
if length%2==0:
m=(l[length/2]+l[length/2-1])/2.0
else:
m=l[length/2]
return m
import random
def Ivan():
s=random.randint(1,100)
if s<=10:
return 1
else:
return 0
def play():
l=[]
f... | 14.9 | 42 | 0.421477 | 113 | 745 | 2.778761 | 0.309735 | 0.089172 | 0.076433 | 0.105096 | 0.210191 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0.093301 | 0.438926 | 745 | 49 | 43 | 15.204082 | 0.657895 | 0 | 0 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d85b7bdeee038a84450fe5c219c6e1818e24d8af | 1,444 | py | Python | rating/responsive_layout.py | thegreenwebfoundation/green-spider | 68f22886178bbe5b476a4591a6812ee25cb5651b | [
"Apache-2.0"
] | 19 | 2018-04-20T11:03:41.000Z | 2022-01-12T20:58:56.000Z | rating/responsive_layout.py | thegreenwebfoundation/green-spider | 68f22886178bbe5b476a4591a6812ee25cb5651b | [
"Apache-2.0"
] | 160 | 2018-04-05T16:12:59.000Z | 2022-03-01T13:01:27.000Z | rating/responsive_layout.py | thegreenwebfoundation/green-spider | 68f22886178bbe5b476a4591a6812ee25cb5651b | [
"Apache-2.0"
] | 8 | 2018-11-05T13:07:57.000Z | 2021-06-11T11:46:43.000Z | """
This gives a score if the site's minimal document width during checks
was smaller than or equal to the minimal viewport size tested.
"""
from rating.abstract_rater import AbstractRater
class Rater(AbstractRater):
rating_type = 'boolean'
default_value = False
depends_on_checks = ['load_in_browser']
... | 31.391304 | 90 | 0.587258 | 173 | 1,444 | 4.618497 | 0.375723 | 0.135169 | 0.130163 | 0.175219 | 0.360451 | 0.360451 | 0.360451 | 0.321652 | 0.275344 | 0.222778 | 0 | 0.003012 | 0.310249 | 1,444 | 45 | 91 | 32.088889 | 0.799197 | 0.114266 | 0 | 0.129032 | 0 | 0 | 0.173092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.290323 | 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 |
d864a64a1a1f72ed6ea9ed17566072983058b0f3 | 2,825 | py | Python | train/cluster/simple/run.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | null | null | null | train/cluster/simple/run.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | null | null | null | train/cluster/simple/run.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | 2 | 2019-07-08T20:18:22.000Z | 2020-06-01T20:04:08.000Z | #!/usr/bin/env python2.7
from argparse import ArgumentParser
parser = ArgumentParser()
args = parser.parse_args()
from sys import exit
from subtlenet.models import cluster as train
import numpy as np
from subtlenet.utils import mpl, plt
from mpl_toolkits.mplot3d import Axes3D
train.NEPOCH = 10
train.encoded_size=2
... | 29.427083 | 104 | 0.681062 | 521 | 2,825 | 3.637236 | 0.201536 | 0.031662 | 0.036939 | 0.116095 | 0.688127 | 0.688127 | 0.682322 | 0.682322 | 0.673879 | 0.583641 | 0 | 0.045472 | 0.096991 | 2,825 | 95 | 105 | 29.736842 | 0.697374 | 0.013097 | 0 | 0.352113 | 0 | 0 | 0.232675 | 0.206822 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084507 | null | null | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d86c4b1748c0b1b14e0e53da06a26b87b3a9d070 | 1,436 | py | Python | python/tests/test_2381.py | SousaPedro11/urionlinejudge | 7422fb706d4f470ef492566e6e536b35cf5f62fd | [
"MIT"
] | null | null | null | python/tests/test_2381.py | SousaPedro11/urionlinejudge | 7422fb706d4f470ef492566e6e536b35cf5f62fd | [
"MIT"
] | null | null | null | python/tests/test_2381.py | SousaPedro11/urionlinejudge | 7422fb706d4f470ef492566e6e536b35cf5f62fd | [
"MIT"
] | null | null | null | import io
from unittest import TestCase
from unittest import mock
from unittest.mock import patch
from python.implementations.problem2381 import Problem2381
TARGET = 'sys.stdout'
@patch('builtins.input', create=True)
class Test2381(TestCase):
def test_2381_5_1(self, mocked_input):
mocked_input.side_effe... | 39.888889 | 88 | 0.660864 | 182 | 1,436 | 5.016484 | 0.263736 | 0.072289 | 0.036145 | 0.03943 | 0.742607 | 0.742607 | 0.637459 | 0.637459 | 0.515882 | 0.515882 | 0 | 0.042291 | 0.20961 | 1,436 | 35 | 89 | 41.028571 | 0.762115 | 0 | 0 | 0.413793 | 0 | 0 | 0.110028 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0 | 0.172414 | 0 | 0.310345 | 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 |
d86e08ac414955d1815569078d34af072d8995a8 | 630 | py | Python | App_demo.py | abdullahi318/learn-python | 62ea4750ff291c9be90362018f77047e1af9d63d | [
"MIT"
] | null | null | null | App_demo.py | abdullahi318/learn-python | 62ea4750ff291c9be90362018f77047e1af9d63d | [
"MIT"
] | 2 | 2021-04-17T10:22:21.000Z | 2021-04-25T11:36:08.000Z | App_demo.py | abdullahi318/learn-python | 62ea4750ff291c9be90362018f77047e1af9d63d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#variable delaration
names = []
address = []
age = []
institute = []
dept = []
print('------+++++++Welcome to student info software+++++++------\n')
names.insert(0, input('Enter your Full name: '))
address.insert(0, input('Enter your Address: '))
age.insert(0, input('Enter your Ag... | 27.391304 | 125 | 0.601587 | 80 | 630 | 4.7375 | 0.4375 | 0.092348 | 0.158311 | 0.224274 | 0.424802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.147619 | 630 | 22 | 126 | 28.636364 | 0.6946 | 0.063492 | 0 | 0 | 0 | 0.071429 | 0.488095 | 0.039116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d872e5cb1eeaf107664750a401d4868c3fa969a1 | 866 | py | Python | grapher_admin/migrations/0044_auto_20180310_1851.py | stjordanis/owid-importer | 4341713d7fa88b41327ea48419ed5785b5cb9faf | [
"MIT"
] | 15 | 2018-12-07T06:11:49.000Z | 2022-01-24T03:38:05.000Z | grapher_admin/migrations/0044_auto_20180310_1851.py | stjordanis/owid-importer | 4341713d7fa88b41327ea48419ed5785b5cb9faf | [
"MIT"
] | 10 | 2020-04-05T01:08:27.000Z | 2022-02-17T23:54:13.000Z | grapher_admin/migrations/0044_auto_20180310_1851.py | stjordanis/owid-importer | 4341713d7fa88b41327ea48419ed5785b5cb9faf | [
"MIT"
] | 6 | 2018-11-03T09:14:58.000Z | 2021-05-17T21:59:59.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-10 18:51
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 = [
('grapher_admin', '0043_auto_2... | 30.928571 | 145 | 0.668591 | 96 | 866 | 5.84375 | 0.53125 | 0.057041 | 0.074866 | 0.117647 | 0.356506 | 0.253119 | 0 | 0 | 0 | 0 | 0 | 0.047128 | 0.215935 | 866 | 27 | 146 | 32.074074 | 0.779087 | 0.076212 | 0 | 0.3 | 1 | 0 | 0.181932 | 0.087829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 0 | 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 |
d8771081a3c1e85739036a1e4d2bc8a46d4c338a | 370 | py | Python | src/raspberrypi_video_loop/read_config.py | linuxluigi/RaspberryPi_video_loop | de2bef45e39304e1bf5a6d9ee8b08db16fefcca7 | [
"MIT"
] | null | null | null | src/raspberrypi_video_loop/read_config.py | linuxluigi/RaspberryPi_video_loop | de2bef45e39304e1bf5a6d9ee8b08db16fefcca7 | [
"MIT"
] | null | null | null | src/raspberrypi_video_loop/read_config.py | linuxluigi/RaspberryPi_video_loop | de2bef45e39304e1bf5a6d9ee8b08db16fefcca7 | [
"MIT"
] | null | null | null | import ConfigParser, os
def read_config():
'''
Read the config '/etc/RaspberryPi_video_loop.conf' and return it's content
Returns:
String Video Path
'''
config_path = "/etc/RaspberryPi_video_loop.conf"
# read config
config = ConfigParser.ConfigParser()
config.readfp(open(conf... | 20.555556 | 78 | 0.664865 | 46 | 370 | 5.195652 | 0.543478 | 0.083682 | 0.158996 | 0.192469 | 0.225941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.221622 | 370 | 17 | 79 | 21.764706 | 0.826389 | 0.318919 | 0 | 0 | 0 | 0 | 0.166667 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8772a731553839d6ed54f85c2a5114fccefd39d | 3,056 | py | Python | utils/file_handler.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | 9 | 2018-06-21T12:44:39.000Z | 2021-03-29T11:45:50.000Z | utils/file_handler.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | null | null | null | utils/file_handler.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | 1 | 2018-08-22T03:40:51.000Z | 2018-08-22T03:40:51.000Z | import os
import platform
import socket
import subprocess
from random import choice
from typing import List
from urllib.request import Request, urlopen
#######################################################################
# allow downloading stuff with a random user agent
# see http://wolfprojects.altervista.org/art... | 39.688312 | 134 | 0.667866 | 512 | 3,056 | 3.916016 | 0.373047 | 0.008978 | 0.03591 | 0.02793 | 0.199501 | 0.176559 | 0.119701 | 0.065835 | 0.0399 | 0.0399 | 0 | 0.099049 | 0.174084 | 3,056 | 76 | 135 | 40.210526 | 0.695325 | 0.215969 | 0 | 0.122449 | 0 | 0.204082 | 0.457568 | 0.009624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.142857 | 0 | 0.367347 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d87972923b3808791127ccbea200564f0f2275a8 | 2,435 | py | Python | index/models.py | scarey9/google-form-clone | 03f9fe28b1675ae684083a8212388ee7904abaf7 | [
"MIT"
] | 99 | 2020-11-30T06:48:20.000Z | 2022-03-29T11:15:39.000Z | index/models.py | scarey9/google-form-clone | 03f9fe28b1675ae684083a8212388ee7904abaf7 | [
"MIT"
] | 37 | 2021-10-01T17:14:52.000Z | 2021-10-21T17:26:14.000Z | index/models.py | scarey9/google-form-clone | 03f9fe28b1675ae684083a8212388ee7904abaf7 | [
"MIT"
] | 52 | 2020-12-30T22:46:43.000Z | 2022-03-23T01:46:46.000Z | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser, models.Model):
email = models.EmailField(unique = True)
class Choices(models.Model):
choice = models.CharField(max_length=5000)
is_answer = models.BooleanField(default=False... | 50.729167 | 122 | 0.754004 | 295 | 2,435 | 6.061017 | 0.288136 | 0.11745 | 0.14094 | 0.187919 | 0.310403 | 0.136465 | 0.100671 | 0.058166 | 0.058166 | 0 | 0 | 0.025813 | 0.140862 | 2,435 | 48 | 123 | 50.729167 | 0.828872 | 0.009856 | 0 | 0 | 0 | 0 | 0.043983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 1 | 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 |
d879d2358abcb134787bdf0171d8e979e922bfa1 | 309 | py | Python | run.py | codergolem/marsRover-python | 2845b4cab3967b805b65690fe6a23419747cf7c2 | [
"Unlicense"
] | 1 | 2019-10-06T21:31:06.000Z | 2019-10-06T21:31:06.000Z | run.py | codergolem/marsRover-python | 2845b4cab3967b805b65690fe6a23419747cf7c2 | [
"Unlicense"
] | null | null | null | run.py | codergolem/marsRover-python | 2845b4cab3967b805b65690fe6a23419747cf7c2 | [
"Unlicense"
] | null | null | null | from marsrover.inputfilecontroller import InputFileController
from marsrover.parser import Parser
def main():
parser = Parser()
inputFileController = InputFileController()
inputFile = 'inputFile.txt'
inputFileController.processFile(inputFile, parser)
if __name__ == '__main__':
main()
| 22.071429 | 61 | 0.754045 | 27 | 309 | 8.333333 | 0.444444 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161812 | 309 | 13 | 62 | 23.769231 | 0.868726 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d87f9c154b85f9d78e29c600a0f71724dd493ae3 | 219 | py | Python | pyprogress/writer.py | toan-n-phan/pyprogress | dd7da583472d277b9db13be2fecda5a68f3df482 | [
"MIT"
] | null | null | null | pyprogress/writer.py | toan-n-phan/pyprogress | dd7da583472d277b9db13be2fecda5a68f3df482 | [
"MIT"
] | null | null | null | pyprogress/writer.py | toan-n-phan/pyprogress | dd7da583472d277b9db13be2fecda5a68f3df482 | [
"MIT"
] | null | null | null | from typing import TextIO
def overwrite(stdout: TextIO, text: str) -> None:
"""Overwrite the current line by moving the cursor to the front.
"""
stdout.write('\r')
stdout.write(text)
stdout.flush()
| 24.333333 | 68 | 0.6621 | 30 | 219 | 4.833333 | 0.7 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214612 | 219 | 8 | 69 | 27.375 | 0.843023 | 0.278539 | 0 | 0 | 0 | 0 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d884cfc1e6265c65704c6106517d21e2a54333a0 | 5,986 | py | Python | dryxPython/mysql/convert_collate_and_charset_of_mysql_database.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | 2 | 2015-08-01T16:00:44.000Z | 2017-02-24T21:06:50.000Z | dryxPython/mysql/convert_collate_and_charset_of_mysql_database.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | dryxPython/mysql/convert_collate_and_charset_of_mysql_database.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
*Convert the Collate of tables within database to `latin1_swedish_ci` and the charset to `latin1`*
:Author:
David Young
:Date Created:
April 28, 2014
.. todo::
@review: when complete pull all general functions and classes into dryxPython
# @review Code to... | 30.540816 | 159 | 0.52155 | 588 | 5,986 | 5.129252 | 0.352041 | 0.046419 | 0.056366 | 0.079576 | 0.232427 | 0.217838 | 0.217838 | 0.136936 | 0.081565 | 0.081565 | 0 | 0.005727 | 0.270799 | 5,986 | 195 | 160 | 30.697436 | 0.685223 | 0.363348 | 0 | 0.153846 | 0 | 0 | 0.262206 | 0.05565 | 0 | 0 | 0 | 0.010256 | 0 | 1 | 0.021978 | false | 0 | 0.087912 | 0 | 0.131868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d889af9a804cb97d6e51f05568bfbbd34e8834af | 723 | py | Python | algorithms/implementation/between_two_sets.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/between_two_sets.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/between_two_sets.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | def get_numbers_between(set_a, set_b):
numbers_between = 0
for candidate in range(1, 101):
found = True
for item in set_a:
if candidate % item:
found = False
break
if not found:
continue
for item in set_b:
if... | 21.909091 | 50 | 0.502075 | 89 | 723 | 3.865169 | 0.393258 | 0.203488 | 0.130814 | 0.069767 | 0.145349 | 0.145349 | 0 | 0 | 0 | 0 | 0 | 0.013363 | 0.378976 | 723 | 32 | 51 | 22.59375 | 0.752784 | 0 | 0 | 0.166667 | 0 | 0 | 0.015214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.083333 | 0.041667 | 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 |
d8981dd111da8f82f2bde1a5215342360388871f | 2,393 | py | Python | tests/test_Utils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | tests/test_Utils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | tests/test_Utils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | 2 | 2016-12-27T12:12:09.000Z | 2020-09-24T18:06:58.000Z | import unittest
import os
from xl_helper.Utils import Utils
from tests.util.TestingUtils import TestingUtils
class UtilsTest(unittest.TestCase):
config = TestingUtils.get_test_config()
downloads_username = config.get('downloads', 'username')
downloads_password = config.get('downloads', 'password')
... | 41.982456 | 112 | 0.667363 | 361 | 2,393 | 4.254848 | 0.196676 | 0.016927 | 0.025391 | 0.109375 | 0.622396 | 0.571615 | 0.414714 | 0.299479 | 0.210938 | 0.188802 | 0 | 0.040424 | 0.173005 | 2,393 | 57 | 113 | 41.982456 | 0.735725 | 0 | 0 | 0.095238 | 0 | 0.142857 | 0.333333 | 0.015455 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.119048 | false | 0.071429 | 0.095238 | 0 | 0.309524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8984bd7037841b041ca77568c6d52eb521386c3 | 18,031 | py | Python | geist/vision.py | kebarr/Geist | 9bda3bc4e11ef06ebf8cb7c2b0ecd666ef40491a | [
"MIT"
] | 5 | 2015-05-01T15:58:48.000Z | 2017-04-19T03:38:25.000Z | geist/vision.py | tonysimpson/Geist | a1ef16d8b4c3777735008b671a50acfde3ce7bf1 | [
"MIT"
] | 1 | 2016-08-05T17:05:02.000Z | 2016-08-05T17:05:02.000Z | geist/vision.py | tonysimpson/Geist | a1ef16d8b4c3777735008b671a50acfde3ce7bf1 | [
"MIT"
] | 2 | 2016-09-27T13:45:31.000Z | 2017-05-21T14:08:57.000Z | from __future__ import division
from numpy.fft import irfft2, rfft2
import numpy
import itertools
import operator
def subimage(rect, image):
x, y, w, h = rect
return image[y:y + h, x:x + w]
def pad_bin_image_to_shape(image, shape):
"""
Padd image to size :shape: with zeros
"""
... | 33.956685 | 85 | 0.563918 | 2,546 | 18,031 | 3.853103 | 0.152396 | 0.01631 | 0.015596 | 0.013558 | 0.318756 | 0.258919 | 0.201121 | 0.166871 | 0.140265 | 0.124975 | 0 | 0.036384 | 0.320171 | 18,031 | 530 | 86 | 34.020755 | 0.763909 | 0.070545 | 0 | 0.234332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013624 | 0 | null | null | 0 | 0.013624 | null | null | 0.002725 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d89b17adfdb77a96d08ff40d630ebc2fe787c3e8 | 297 | py | Python | tests/__init__.py | st-pasha/typechecking | a14617980647da536ae5da68854b3ea4565bb6d4 | [
"Apache-2.0"
] | 1 | 2021-03-12T17:28:56.000Z | 2021-03-12T17:28:56.000Z | tests/__init__.py | st-pasha/typechecking | a14617980647da536ae5da68854b3ea4565bb6d4 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | st-pasha/typechecking | a14617980647da536ae5da68854b3ea4565bb6d4 | [
"Apache-2.0"
] | 1 | 2021-03-12T17:30:34.000Z | 2021-03-12T17:30:34.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import print_function
import sys
sys.path.insert(0, "..")
import typesentry # noqa
_tc = typesentry.Config()
typed = _tc.typed
TypeError = _tc.TypeError
ValueError = _tc.ValueError
__all__ = ("typed", "TypeError", "ValueError")
| 18.5625 | 46 | 0.710438 | 37 | 297 | 5.351351 | 0.648649 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.138047 | 297 | 15 | 47 | 19.8 | 0.765625 | 0.164983 | 0 | 0 | 0 | 0 | 0.106122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d89b1e0c796414ac4440ed1a8ab6612f300f3a98 | 209 | py | Python | server/memory.py | zhmzlzn/Network-Pj-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | 6 | 2019-11-28T10:47:46.000Z | 2021-11-04T08:22:56.000Z | server/memory.py | zhmzlzn/python-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | null | null | null | server/memory.py | zhmzlzn/python-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | 4 | 2019-12-17T15:29:22.000Z | 2021-05-28T16:39:51.000Z | socket_to_sc = {}
# 已建立的安全通道列表
# 不一定是登入状态,只是连接
scs = []
def remove_sc_from_socket_mapping(sc):
if sc in scs:
scs.remove(sc)
if sc.socket in socket_to_sc:
del socket_to_sc[sc.socket]
| 16.076923 | 38 | 0.660287 | 34 | 209 | 3.764706 | 0.411765 | 0.1875 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239234 | 209 | 12 | 39 | 17.416667 | 0.805031 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 |
d89b749c61f8b5a94d395c138272b255d0f7d4c3 | 20,687 | py | Python | rcnn/io/rpn.py | sjiang17/keypoint-maskrcnn | f78562d4701a57fe1b95ba56f946e33658d7d039 | [
"Apache-2.0"
] | 3 | 2018-12-13T09:00:01.000Z | 2019-09-11T03:38:02.000Z | rcnn/io/rpn.py | sjiang17/keypoint-maskrcnn | f78562d4701a57fe1b95ba56f946e33658d7d039 | [
"Apache-2.0"
] | null | null | null | rcnn/io/rpn.py | sjiang17/keypoint-maskrcnn | f78562d4701a57fe1b95ba56f946e33658d7d039 | [
"Apache-2.0"
] | 1 | 2019-12-01T09:22:36.000Z | 2019-12-01T09:22:36.000Z | """
RPN:
data =
{'data': [num_images, c, h, w],
'im_info': [num_images, 4] (optional)}
label =
{'gt_boxes': [num_boxes, 5] (optional),
'label': [batch_size, 1] <- [batch_size, num_anchors, feat_height, feat_width],
'bbox_target': [batch_size, num_anchors, feat_height, feat_width],
'bbox_weig... | 45.666667 | 149 | 0.647556 | 2,980 | 20,687 | 4.236242 | 0.094631 | 0.019962 | 0.026616 | 0.034617 | 0.623099 | 0.569154 | 0.528834 | 0.497624 | 0.459838 | 0.406765 | 0 | 0.02012 | 0.233577 | 20,687 | 452 | 150 | 45.767699 | 0.776096 | 0.097839 | 0 | 0.368056 | 0 | 0 | 0.018084 | 0 | 0 | 0 | 0 | 0.002212 | 0.006944 | 0 | null | null | 0 | 0.020833 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d89f0aedd368684bfef8c394ee97deaa9c0e881b | 1,097 | py | Python | api_client/standalone_client.py | tarof429/tron_legacy_cast | 9314328dc75595d7046a2337878f7afabaca76df | [
"BSD-3-Clause"
] | null | null | null | api_client/standalone_client.py | tarof429/tron_legacy_cast | 9314328dc75595d7046a2337878f7afabaca76df | [
"BSD-3-Clause"
] | null | null | null | api_client/standalone_client.py | tarof429/tron_legacy_cast | 9314328dc75595d7046a2337878f7afabaca76df | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import json
import pymysql
import api_client_lib
import os
dbHost = os.environ['MYSQL_HOST']
dblUser = os.environ['MYSQL_USER']
dbPassword = os.environ['MYSQL_PASSWORD']
dbDatabase = os.environ['MYSQL_DATABASE']
client = None
def getClient():
global client
if client == None:
client ... | 22.387755 | 104 | 0.608933 | 118 | 1,097 | 5.508475 | 0.440678 | 0.055385 | 0.086154 | 0.123077 | 0.253846 | 0.253846 | 0.212308 | 0.12 | 0 | 0 | 0 | 0.009877 | 0.261623 | 1,097 | 49 | 105 | 22.387755 | 0.792593 | 0.014585 | 0 | 0.294118 | 0 | 0 | 0.113784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.117647 | 0 | 0.176471 | 0.264706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8a1d8b0116aef3c68927e7661cffa59e5b83e06 | 732 | py | Python | cl_app/migrations/0003_auto_20160625_2131.py | talley/craigslistpython | fbc6e9fc64a7bcaaded0d369259a338cf1c91194 | [
"MIT"
] | 22 | 2018-06-03T08:30:49.000Z | 2021-12-31T19:10:36.000Z | cl_app/migrations/0003_auto_20160625_2131.py | talley/craigslistpython | fbc6e9fc64a7bcaaded0d369259a338cf1c91194 | [
"MIT"
] | 10 | 2019-02-19T13:08:47.000Z | 2022-03-11T23:15:44.000Z | cl_app/migrations/0003_auto_20160625_2131.py | talley/craigslistpython | fbc6e9fc64a7bcaaded0d369259a338cf1c91194 | [
"MIT"
] | 20 | 2018-07-30T17:19:59.000Z | 2022-03-23T23:58:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-25 21:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cl_app', '0002_auto_20160624_1600'),
]
operations =... | 27.111111 | 152 | 0.628415 | 83 | 732 | 5.337349 | 0.650602 | 0.054176 | 0.063205 | 0.099323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058288 | 0.25 | 732 | 26 | 153 | 28.153846 | 0.748634 | 0.09153 | 0 | 0.105263 | 1 | 0 | 0.140483 | 0.034743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 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 |
d8a2248c268d30a1d2eff3310a05de81b5610b48 | 6,685 | py | Python | src/sst/elements/memHierarchy/tests/testHashXor.py | zhangyjBU/sst-elements | d2c6725ea5fbb4dd493bf7d1a8c321aea4ff556c | [
"BSD-3-Clause"
] | 2 | 2021-12-24T03:24:33.000Z | 2022-01-11T23:03:39.000Z | src/sst/elements/memHierarchy/tests/testHashXor.py | zhangyjBU/sst-elements | d2c6725ea5fbb4dd493bf7d1a8c321aea4ff556c | [
"BSD-3-Clause"
] | null | null | null | src/sst/elements/memHierarchy/tests/testHashXor.py | zhangyjBU/sst-elements | d2c6725ea5fbb4dd493bf7d1a8c321aea4ff556c | [
"BSD-3-Clause"
] | 2 | 2021-05-23T02:28:02.000Z | 2021-09-08T13:38:46.000Z | # Automatically generated SST Python input
import sst
# Define shared parameters
cpu_params = {
"commFreq" : "10",
"do_write" : "1",
"num_loadstore" : "10000",
"memSize" : "0x40000000",
}
l1_params = {
"access_latency_cycles" : "1",
"cache_frequency" : "2 Ghz",
"replacement_policy" : "lru"... | 37.982955 | 117 | 0.713837 | 884 | 6,685 | 5.024887 | 0.168552 | 0.034219 | 0.059883 | 0.040522 | 0.296938 | 0.235254 | 0.139127 | 0.108059 | 0.108059 | 0.108059 | 0 | 0.076291 | 0.125505 | 6,685 | 175 | 118 | 38.2 | 0.683544 | 0.03261 | 0 | 0.234483 | 1 | 0 | 0.362002 | 0.052069 | 0 | 0 | 0.003564 | 0 | 0 | 1 | 0 | false | 0 | 0.006897 | 0 | 0.006897 | 0 | 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 |
d8b12ef41caee3435148d46f497e66877d2afa33 | 343 | py | Python | kool/All-in-one calulator.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | 1 | 2020-10-21T04:48:44.000Z | 2020-10-21T04:48:44.000Z | kool/All-in-one calulator.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | null | null | null | kool/All-in-one calulator.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | null | null | null | # User input
num1=float(input("Enter the 1st number: "))
num2=float(input("Enter your 2nd number: "))
# Operations the program should perform
sum = num1 + num2
difference = num1 - num2
product = num1 * num2
divide = num1 / num2
modulus = num1 % num2
# Computer output
print(sum)
print(difference)
print(product)
print(... | 19.055556 | 44 | 0.728863 | 48 | 343 | 5.208333 | 0.479167 | 0.16 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048443 | 0.157434 | 343 | 17 | 45 | 20.176471 | 0.816609 | 0.186589 | 0 | 0 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d8b2b2e98882b7e1977eee41b188a1e3ced373d4 | 645 | py | Python | src/fibonacci.py | marc1404/python-practice | f5ea0170ad321a83886f1fcb356dc7d1a629a052 | [
"MIT"
] | null | null | null | src/fibonacci.py | marc1404/python-practice | f5ea0170ad321a83886f1fcb356dc7d1a629a052 | [
"MIT"
] | null | null | null | src/fibonacci.py | marc1404/python-practice | f5ea0170ad321a83886f1fcb356dc7d1a629a052 | [
"MIT"
] | null | null | null | def main():
print("Iterative:")
print("n=0 ->", fibonacci_iterative(0))
print("n=1 ->", fibonacci_iterative(1))
print("n=6 ->", fibonacci_iterative(6))
print()
print("Recursive:")
print("n=0 ->", fibonacci_recursive(0))
print("n=1 ->", fibonacci_recursive(1))
print("n=6 ->", fibonacc... | 19.545455 | 66 | 0.575194 | 91 | 645 | 3.967033 | 0.208791 | 0.099723 | 0.157895 | 0.088643 | 0.188366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041152 | 0.246512 | 645 | 32 | 67 | 20.15625 | 0.701646 | 0 | 0 | 0.181818 | 0 | 0 | 0.086822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.318182 | 0.409091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d8b32090e935bf6b0bb901df5ae43221cd9c5d8a | 918 | py | Python | caching/settings.py | theatlantic/django-cache-machine | 8c716b6097f67a2f544e94795637950d4cafd997 | [
"BSD-3-Clause"
] | null | null | null | caching/settings.py | theatlantic/django-cache-machine | 8c716b6097f67a2f544e94795637950d4cafd997 | [
"BSD-3-Clause"
] | null | null | null | caching/settings.py | theatlantic/django-cache-machine | 8c716b6097f67a2f544e94795637950d4cafd997 | [
"BSD-3-Clause"
] | null | null | null | import warnings
from django.conf import settings
CACHEMACHINE_ENABLED = getattr(settings, 'CACHEMACHINE_ENABLED', True)
CACHE_PREFIX = getattr(settings, 'CACHEMACHINE_PREFIX', None)
CACHE_DEBUG = getattr(settings, 'CACHEMACHINE_DEBUG', None)
NO_INVALIDATION = getattr(settings, 'CACHEMACHINE_NO_INVALIDATION', False)
... | 39.913043 | 83 | 0.769063 | 110 | 918 | 6.154545 | 0.345455 | 0.132939 | 0.159527 | 0.076809 | 0.085672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132898 | 918 | 23 | 84 | 39.913043 | 0.850503 | 0.041394 | 0 | 0 | 0 | 0 | 0.225256 | 0.031854 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 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 |
d8b41937ec89a33377b6d4a312124898f13ce76e | 2,243 | py | Python | src/SeparateByChrom.py | zanglab/recognicer | 3240259d0348c0c469ed69b097150470a6daa0b7 | [
"BSD-2-Clause"
] | 2 | 2021-08-04T06:32:45.000Z | 2022-02-20T16:09:52.000Z | stjude_sicer_noControl/resources/home/SICER_V1.1/SICER/lib/SeparateByChrom.py | stjude/ChIP-Seq | 1133d709042c303145bf7c5bd3520b4508b6a4d0 | [
"Apache-2.0"
] | null | null | null | stjude_sicer_noControl/resources/home/SICER_V1.1/SICER/lib/SeparateByChrom.py | stjude/ChIP-Seq | 1133d709042c303145bf7c5bd3520b4508b6a4d0 | [
"Apache-2.0"
] | 3 | 2019-11-11T18:49:58.000Z | 2021-10-03T19:16:08.000Z | #!/usr/bin/env python
# Copyright (c) 2007 NHLBI, NIH
# Authors: Dustin E Schones and Keji Zhao
#
# This software is distributable under the terms of the GNU General
# Public License (GPL) v2, the text of which can be found at
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or
# otherwise using this modul... | 26.388235 | 108 | 0.634418 | 307 | 2,243 | 4.62215 | 0.508143 | 0.007047 | 0.049331 | 0.033827 | 0.194503 | 0.12544 | 0.12544 | 0.054968 | 0 | 0 | 0 | 0.007665 | 0.24387 | 2,243 | 84 | 109 | 26.702381 | 0.829009 | 0.362907 | 0 | 0.3 | 0 | 0 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8b4cd2719d7badc63a2baaf2bbca31289756aa7 | 911 | py | Python | src/models/train_model.py | ri-heme/mnist-classifier | be5e83d6a9c3e649a6291644a7ff4b7544fb1649 | [
"MIT"
] | null | null | null | src/models/train_model.py | ri-heme/mnist-classifier | be5e83d6a9c3e649a6291644a7ff4b7544fb1649 | [
"MIT"
] | null | null | null | src/models/train_model.py | ri-heme/mnist-classifier | be5e83d6a9c3e649a6291644a7ff4b7544fb1649 | [
"MIT"
] | null | null | null | __all__ = []
import hydra
import wandb
from omegaconf import DictConfig
from pytorch_lightning import LightningModule, Trainer
from pytorch_lightning.loggers import WandbLogger
from src.data.dataloaders import dataloaders
from src.path import CONF_PATH, WEIGHTS_PATH
@hydra.main(config_path=CONF_PATH.as_posix(), con... | 26.028571 | 110 | 0.766191 | 113 | 911 | 5.920354 | 0.39823 | 0.032885 | 0.059791 | 0.080717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145993 | 911 | 34 | 111 | 26.794118 | 0.859897 | 0.045005 | 0 | 0 | 0 | 0 | 0.013873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d8b72a0c9d67dffcd5c4d24a71010ffd02adc204 | 3,374 | py | Python | csgo_analysis/ingestion/converter.py | jamestrew/csgo_demo_parser | c1e8fc6341aaad9fefe29e9e3314643b24189c54 | [
"MIT"
] | 1 | 2022-01-17T02:48:31.000Z | 2022-01-17T02:48:31.000Z | csgo_analysis/ingestion/converter.py | jamestrew/csgo_demo_parser | c1e8fc6341aaad9fefe29e9e3314643b24189c54 | [
"MIT"
] | null | null | null | csgo_analysis/ingestion/converter.py | jamestrew/csgo_demo_parser | c1e8fc6341aaad9fefe29e9e3314643b24189c54 | [
"MIT"
] | null | null | null | import json
import re
from csgo_analysis.ingestion.const import EventTypes
class JsonConverter:
PLAYER_P = r'player info'
PLAYER_R = r'player_info'
MAIN_KEY_P = r'([a-z_]+)\n({\n)'
MAIN_KEY_R = r'{"\1": \2'
INNER_KEY_P = r' ([0-9a-zA-Z_]+):'
INNER_KEY_R = r'"\1":'
DETAILS_KEY_P = r' (... | 29.33913 | 76 | 0.553646 | 533 | 3,374 | 3.262664 | 0.210131 | 0.051754 | 0.082806 | 0.107533 | 0.189764 | 0.170788 | 0.13571 | 0.026452 | 0 | 0 | 0 | 0.0082 | 0.277119 | 3,374 | 114 | 77 | 29.596491 | 0.704797 | 0.114997 | 0 | 0 | 0 | 0 | 0.137835 | 0.024713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.042254 | 0 | 0.577465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8ba2007752efa3bb2c852b1ea6200ee7e7815c4 | 381 | py | Python | remove.py | LaureoleSAS/RaspberryPi | fc68c28fc2b7e5f3433856d097f6e07358403587 | [
"MIT"
] | null | null | null | remove.py | LaureoleSAS/RaspberryPi | fc68c28fc2b7e5f3433856d097f6e07358403587 | [
"MIT"
] | null | null | null | remove.py | LaureoleSAS/RaspberryPi | fc68c28fc2b7e5f3433856d097f6e07358403587 | [
"MIT"
] | null | null | null | import os, sys
path = "/home/pi/Documents/Serveur/Videos/copy/"
dirs = os.listdir(path)
for file in dirs:
if '.mp4' in file:
nom_split = file.split('-')
os.system('sudo cp '+ path + file + ' /home/pi/Documents/Serveur/Videos/'+nom_split[0]+'_'+nom_split[1]+'/')
os.system('sudo rm ' + file)... | 31.75 | 116 | 0.590551 | 57 | 381 | 3.877193 | 0.45614 | 0.108597 | 0.162896 | 0.199095 | 0.41629 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.220472 | 381 | 12 | 117 | 31.75 | 0.723906 | 0 | 0 | 0.2 | 0 | 0 | 0.287958 | 0.191099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
d8bbf11153f05a231d549a19f27acae463da143b | 754 | py | Python | data/train/python/d8bbf11153f05a231d549a19f27acae463da143bcelery.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/d8bbf11153f05a231d549a19f27acae463da143bcelery.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/d8bbf11153f05a231d549a19f27acae463da143bcelery.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | '''
Created on Oct 31, 2013
@author: c3h3
'''
from __future__ import absolute_import
from celery import Celery
import os
BROKER_URL = "mongodb://localhost:27017/ptt_crawler_broker"
CELERY_MONGODB_BACKEND_HOST = os.environ.get('CELERY_MONGODB_BACKEND_HOST', 'localhost')
CELERY_MONGODB_BACKEND_PORT = int(os.environ.... | 21.542857 | 88 | 0.722812 | 93 | 754 | 5.387097 | 0.387097 | 0.181637 | 0.279441 | 0.143713 | 0.127745 | 0.127745 | 0 | 0 | 0 | 0 | 0 | 0.028708 | 0.168435 | 754 | 34 | 89 | 22.176471 | 0.770335 | 0.076923 | 0 | 0 | 0 | 0 | 0.239826 | 0.142442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
d8c77eab333594ae4a94f532c4eea3b6fad95555 | 1,965 | py | Python | shadowsocks/util.py | lyrl/ssmgr-ssrest | 33c60190189dea9d948008385b31ea843f49c63e | [
"Apache-2.0"
] | null | null | null | shadowsocks/util.py | lyrl/ssmgr-ssrest | 33c60190189dea9d948008385b31ea843f49c63e | [
"Apache-2.0"
] | null | null | null | shadowsocks/util.py | lyrl/ssmgr-ssrest | 33c60190189dea9d948008385b31ea843f49c63e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2016-07-26 11:04:34
import socket
import urllib2
import json
import requests
import logging
def is_port_using(port):
'''
https://docs.python.org/2/library/socket.html#example
'''
while True:
s = socket.socket(socket.AF_INET, socket.S... | 26.2 | 91 | 0.597964 | 249 | 1,965 | 4.586345 | 0.497992 | 0.038529 | 0.019264 | 0.02627 | 0.096322 | 0.096322 | 0.096322 | 0.096322 | 0.096322 | 0.096322 | 0 | 0.025052 | 0.268702 | 1,965 | 75 | 92 | 26.2 | 0.769659 | 0.107888 | 0 | 0.238095 | 0 | 0 | 0.1501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8ce039e8451d86b1263ba2a5496b9bc9a8a514b | 601 | py | Python | serie10/ex10_2.py | roctubre/compmath | 06b287b2d24d6f033c60defb5a70d97e045644ad | [
"MIT"
] | null | null | null | serie10/ex10_2.py | roctubre/compmath | 06b287b2d24d6f033c60defb5a70d97e045644ad | [
"MIT"
] | null | null | null | serie10/ex10_2.py | roctubre/compmath | 06b287b2d24d6f033c60defb5a70d97e045644ad | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
def main():
fig = plt.figure()
# add big axes
ax1 = fig.add_axes([0.09, 0.1, 0.8, 0.8])
x = np.linspace(0,100)
ax1.set_xlabel("x")
ax1.set_ylabel("$x^2$")
ax1.plot(x, 2*x, color="r", label='$x^2$')
ax1.legend()
# add smaller axe... | 21.464286 | 47 | 0.559068 | 110 | 601 | 2.918182 | 0.418182 | 0.037383 | 0.062305 | 0.068536 | 0.124611 | 0.124611 | 0.124611 | 0.124611 | 0.124611 | 0 | 0 | 0.105832 | 0.229617 | 601 | 28 | 48 | 21.464286 | 0.585313 | 0.048253 | 0 | 0 | 0 | 0 | 0.063269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
d8cf9420dc4eba23457840f397f6df3f4e9d2567 | 1,686 | py | Python | Solutions/python/ex4-communicator/ringcart.py | PawseySC/Develop-with-MPI | 65a2ad84b62d2387585ce37277c93fc384faa44b | [
"CC0-1.0"
] | 3 | 2018-06-19T05:47:59.000Z | 2022-03-22T11:43:47.000Z | Solutions/python/ex4-communicator/ringcart.py | PawseySupercomputing/Develop-with-MPI | e0d11994450e944048059e663397a7e31e504a3f | [
"CC0-1.0"
] | null | null | null | Solutions/python/ex4-communicator/ringcart.py | PawseySupercomputing/Develop-with-MPI | e0d11994450e944048059e663397a7e31e504a3f | [
"CC0-1.0"
] | 4 | 2017-09-15T06:21:17.000Z | 2021-01-06T19:24:07.000Z | ########################################################################
## Pass a message around a ring in one dimension with the aid of a
## periodic Cartesian communicator.
##
## We use synchronous non-blocking communications and mpi_waitall()
## to pass the message
###################################... | 30.107143 | 100 | 0.634045 | 249 | 1,686 | 4.236948 | 0.433735 | 0.014218 | 0.015166 | 0.024645 | 0.034123 | 0.034123 | 0 | 0 | 0 | 0 | 0 | 0.018923 | 0.185053 | 1,686 | 55 | 101 | 30.654545 | 0.748908 | 0.461447 | 0 | 0 | 0 | 0 | 0.046008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8d1981354b8c85975747af611f1f1074b55289d | 412 | py | Python | test/tests/resurrection.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | test/tests/resurrection.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/resurrection.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | # Objects are allowed to resurrect themselves in their __del__ methods...
x = None
running = True
class C(object):
def __init__(self):
self.n = 0
def __del__(self):
if running:
global x
self.n += 1
print "__del__ #%d" % self.n
x = self
import gc... | 17.166667 | 73 | 0.543689 | 57 | 412 | 3.649123 | 0.614035 | 0.072115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018939 | 0.359223 | 412 | 23 | 74 | 17.913043 | 0.768939 | 0.191748 | 0 | 0.117647 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8d5b0130fab079644a8f16fcf98e577edb74184 | 1,800 | py | Python | tests/test_testing.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | tests/test_testing.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | tests/test_testing.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | from unittest.mock import Mock
from ward import expect
from ward.fixtures import fixture
from ward.testing import Test, test
def f():
expect(1).equals(1)
mod = "my_module"
t = Test(fn=f, module_name=mod)
@fixture
def anonymous_test():
def _():
expect(1).equals(1)
return Test(fn=_, module_nam... | 23.376623 | 78 | 0.711111 | 265 | 1,800 | 4.596226 | 0.203774 | 0.138752 | 0.065681 | 0.082102 | 0.566502 | 0.430213 | 0.385878 | 0.385878 | 0.236453 | 0.064039 | 0 | 0.007227 | 0.154444 | 1,800 | 76 | 79 | 23.684211 | 0.793035 | 0 | 0 | 0.333333 | 0 | 0 | 0.287778 | 0.015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.083333 | 0.020833 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8db2277a3719c9f5aeaf3e571e119ac6d891979 | 10,380 | py | Python | projDir/uw/scripts/makeDOEsoundings.py | NCAR/lrose-projects-relampago | 8208e4bd83ac8007a04987c0531fb60cc629a05a | [
"BSD-2-Clause"
] | 1 | 2018-12-03T19:51:14.000Z | 2018-12-03T19:51:14.000Z | projDir/uw/scripts/makeDOEsoundings.py | NCAR/lrose-projects-relampago | 8208e4bd83ac8007a04987c0531fb60cc629a05a | [
"BSD-2-Clause"
] | null | null | null | projDir/uw/scripts/makeDOEsoundings.py | NCAR/lrose-projects-relampago | 8208e4bd83ac8007a04987c0531fb60cc629a05a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import os
import sys
#import glob
#from shutil import copyfile
from ftplib import FTP
import time
import datetime
from datetime import timedelta
import subprocess
import paramiko
def find_nth(string, substring, n):
if (n == 1):
return string.find(substring)
else:
return strin... | 41.027668 | 149 | 0.51262 | 949 | 10,380 | 5.58588 | 0.270811 | 0.07093 | 0.124128 | 0.070741 | 0.343709 | 0.242218 | 0.147897 | 0.122618 | 0.08904 | 0.072062 | 0 | 0.0074 | 0.38815 | 10,380 | 252 | 150 | 41.190476 | 0.827271 | 0.05106 | 0 | 0.258883 | 0 | 0 | 0.150646 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010152 | 0.040609 | null | null | 0.243655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8e22a9933955d8fc2924849eee4a7a9c2d3e6f8 | 1,791 | py | Python | PyObjCTest/test_nsbundle.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsbundle.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsbundle.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
import Foundation
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSBundle(TestCase):
def testMethods(self):
b = AppKit.NSBundle.mainBundle()
# Test on an instance because AppKit.NSBundle has class methods
# that interfere with this test
self.asse... | 43.682927 | 84 | 0.763261 | 157 | 1,791 | 8.585987 | 0.420382 | 0.083086 | 0.062315 | 0.080119 | 0.117211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.159129 | 1,791 | 40 | 85 | 44.775 | 0.855246 | 0.05081 | 0 | 0 | 0 | 0 | 0.069534 | 0.054803 | 0 | 0 | 0.023571 | 0 | 0.612903 | 1 | 0.16129 | false | 0 | 0.096774 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.