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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d3d0c1d9acc3a51d8a1f42a990b5d5a5bad71b8 | 1,808 | py | Python | learningPygame/Derek/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Derek/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Derek/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | # TODO: Copy all of your 03-Colors.py program and put it below this comment.
# TODO One way to do so is:
# TODO 1. Inside 03-Colors.py, do:
# TODO -- Control-A (to SELECT the entire contents of the file, then
# TODO -- Control-C (to COPY that entire selection)
# TODO 2. Inside thi... | 24.106667 | 99 | 0.631637 | 275 | 1,808 | 4.036364 | 0.385455 | 0.05045 | 0.032432 | 0.075676 | 0.227027 | 0.061261 | 0.061261 | 0.061261 | 0.061261 | 0 | 0 | 0.080778 | 0.260509 | 1,808 | 75 | 100 | 24.106667 | 0.749439 | 0.327987 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
0d44fc4b06c7568f36e7a50e3d5e2a330835d457 | 3,398 | py | Python | tests/test_scripts/test_gen_jsonld_context.py | krishna-saravan/linkml | 8c34844ebaf054f44ceb386e4d51ee4c95dbebe6 | [
"CC0-1.0"
] | 83 | 2021-03-17T16:31:02.000Z | 2022-03-13T23:17:02.000Z | tests/test_scripts/test_gen_jsonld_context.py | krishna-saravan/linkml | 8c34844ebaf054f44ceb386e4d51ee4c95dbebe6 | [
"CC0-1.0"
] | 390 | 2021-03-18T18:44:11.000Z | 2022-03-30T22:55:01.000Z | tests/test_scripts/test_gen_jsonld_context.py | krishna-saravan/linkml | 8c34844ebaf054f44ceb386e4d51ee4c95dbebe6 | [
"CC0-1.0"
] | 20 | 2021-03-27T08:55:56.000Z | 2022-02-24T15:25:57.000Z | import unittest
import click
from linkml.generators import jsonldcontextgen
from tests.test_scripts.environment import env
from tests.utils.clicktestcase import ClickTestCase
from tests.utils.filters import ldcontext_metadata_filter
class GenContextTestCase(ClickTestCase):
testdir = "gencontext"
click_ep = j... | 53.09375 | 137 | 0.667451 | 426 | 3,398 | 5.07277 | 0.201878 | 0.066636 | 0.096252 | 0.05553 | 0.690421 | 0.642295 | 0.557149 | 0.534012 | 0.49329 | 0.453494 | 0 | 0.000362 | 0.186875 | 3,398 | 63 | 138 | 53.936508 | 0.781759 | 0.120954 | 0 | 0 | 0 | 0 | 0.357912 | 0.129966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.341463 | 0 | 0.560976 | 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 |
0d46b6abcf410e2074531ba57d1748b6f56b689d | 4,760 | py | Python | sqlce.py | jobead/python-excel | 0a3dfc11b3242f72445b7ef48a1fbe3705d6b4b3 | [
"MIT"
] | null | null | null | sqlce.py | jobead/python-excel | 0a3dfc11b3242f72445b7ef48a1fbe3705d6b4b3 | [
"MIT"
] | null | null | null | sqlce.py | jobead/python-excel | 0a3dfc11b3242f72445b7ef48a1fbe3705d6b4b3 | [
"MIT"
] | null | null | null | import os
import time
import datetime
import zipfile
import xml.dom.minidom
def get_files_from_folder(path = os.environ['HOME']):
homedir = os.environ['HOME'] + '/python'
def get_external_data_connections(path = os.environ['HOME'] + '/python/excelfiles', filename = 'external_data_connections'):
print 'STARTING... | 20.786026 | 174 | 0.656513 | 635 | 4,760 | 4.886614 | 0.212598 | 0.031905 | 0.056719 | 0.034805 | 0.581695 | 0.495005 | 0.443442 | 0.360296 | 0.360296 | 0.360296 | 0 | 0.011063 | 0.183403 | 4,760 | 228 | 175 | 20.877193 | 0.78724 | 0.225 | 0 | 0.55 | 0 | 0 | 0.195831 | 0.006857 | 0.01 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.18 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d46ef8916f339b078c8e9ae9e4996dd8f53de14 | 407 | py | Python | py/codeforces/872A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/872A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/872A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | 1 | 2022-03-09T04:52:55.000Z | 2022-03-09T04:52:55.000Z | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
import time
import random
import itertools
"""
created by shhuan at 2017/10/20 08:16
"""
N, M = map(int, input().split())
A = [int(x) for x in input().split()]
B = [int(x) for x in input().split()]
a = min(A)
b = min(B)
c = set(A) &... | 13.129032 | 37 | 0.601966 | 76 | 407 | 3.223684 | 0.5 | 0.122449 | 0.089796 | 0.065306 | 0.163265 | 0.163265 | 0.163265 | 0 | 0 | 0 | 0 | 0.05296 | 0.211302 | 407 | 30 | 38 | 13.566667 | 0.71028 | 0.051597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b48f370c6cd88490cff75b51a411a4c94454b90f | 5,332 | py | Python | canopy/session.py | CanopySimulations/canopy-python | 9ec37e674e65d6fbef0402ac0c612c163d55631e | [
"MIT"
] | null | null | null | canopy/session.py | CanopySimulations/canopy-python | 9ec37e674e65d6fbef0402ac0c612c163d55631e | [
"MIT"
] | 1 | 2022-01-31T10:18:08.000Z | 2022-01-31T10:18:08.000Z | canopy/session.py | CanopySimulations/canopy-python | 9ec37e674e65d6fbef0402ac0c612c163d55631e | [
"MIT"
] | null | null | null | from typing import Optional, Callable, Awaitable, Union
import canopy
import aiohttp
import atexit
import asyncio
from aiohttp.client_exceptions import ClientResponseError, ClientConnectionError, ServerTimeoutError, ClientError
import logging
logger = logging.getLogger(__name__)
class Session(object):
_sync_cl... | 33.961783 | 124 | 0.685859 | 591 | 5,332 | 5.883249 | 0.19797 | 0.043141 | 0.032212 | 0.020708 | 0.278976 | 0.21973 | 0.155882 | 0.123095 | 0.123095 | 0.034513 | 0 | 0.00049 | 0.234809 | 5,332 | 156 | 125 | 34.179487 | 0.851716 | 0 | 0 | 0.157025 | 0 | 0 | 0.009377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140496 | false | 0.024793 | 0.057851 | 0.123967 | 0.404959 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b49e05112b606f2706eb79098527e08849b60dc5 | 14,178 | py | Python | rpython/jit/codewriter/call.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | rpython/jit/codewriter/call.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | null | null | null | rpython/jit/codewriter/call.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | #
# Contains the logic to decide, based on the policy, which graphs
# to transform to JitCodes or not.
#
from rpython.jit.codewriter import support
from rpython.jit.codewriter.jitcode import JitCode
from rpython.jit.codewriter.effectinfo import (VirtualizableAnalyzer,
QuasiImmutAnalyzer, RandomEffectsAnalyzer, eff... | 43.894737 | 79 | 0.599379 | 1,576 | 14,178 | 5.203046 | 0.201777 | 0.019024 | 0.017561 | 0.00939 | 0.197439 | 0.132439 | 0.080244 | 0.064756 | 0.029268 | 0.029268 | 0 | 0.001374 | 0.332769 | 14,178 | 322 | 80 | 44.031056 | 0.865433 | 0.094372 | 0 | 0.167331 | 0 | 0 | 0.044166 | 0.012015 | 0 | 0 | 0 | 0 | 0.051793 | 0 | null | null | 0.003984 | 0.031873 | null | null | 0.007968 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4ac48ac693a1970a309dee3464b113ca83f440e | 492 | py | Python | pictures/urls.py | bintadam/My-Gallery | c63037acecc996eba90390de2a3e36411cf1addc | [
"MIT"
] | null | null | null | pictures/urls.py | bintadam/My-Gallery | c63037acecc996eba90390de2a3e36411cf1addc | [
"MIT"
] | null | null | null | pictures/urls.py | bintadam/My-Gallery | c63037acecc996eba90390de2a3e36411cf1addc | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from os import name
from django.conf.urls.static import static
from django.conf import settings
urlpatterns=[
path('',views.welcome,name ='welcome'),
path('gallery/',views.pictures,name='pictures'),
path('search/', views.search_results, name='search_results'... | 32.8 | 81 | 0.74187 | 66 | 492 | 5.439394 | 0.424242 | 0.083565 | 0.077994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 492 | 15 | 81 | 32.8 | 0.825287 | 0 | 0 | 0 | 0 | 0 | 0.150101 | 0.046653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4b40004b91139d3b8d057e075f844be61b5d2b6 | 5,685 | py | Python | flexipage/tests/test_flexipage.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | flexipage/tests/test_flexipage.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | flexipage/tests/test_flexipage.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test.utils import override_settings
from django.template import Template
from django.forms import ModelForm
from django.db i... | 40.607143 | 92 | 0.699208 | 718 | 5,685 | 5.296657 | 0.236769 | 0.050486 | 0.037865 | 0.025243 | 0.479621 | 0.479621 | 0.479621 | 0.458322 | 0.458322 | 0.427294 | 0 | 0.001366 | 0.227617 | 5,685 | 139 | 93 | 40.899281 | 0.864723 | 0.239754 | 0 | 0.580645 | 0 | 0 | 0.117804 | 0.030673 | 0 | 0 | 0 | 0 | 0.086022 | 1 | 0.107527 | false | 0.053763 | 0.139785 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b4bb2501c3e3df3a7daea3792ee67451d8042500 | 730 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/plugins/apps.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/plugins/apps.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/plugins/apps.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Plugins Application Configuration
Signal handlers are connected here.
"""
from django.apps import AppConfig
from django.conf import settings
from edx_django_utils.plugins import connect_plugin_receivers
from openedx.core.djangoapps.plugins.constants import ProjectType
class PluginsConfig(AppConfig):
"""
... | 21.470588 | 65 | 0.691781 | 78 | 730 | 6.333333 | 0.576923 | 0.078947 | 0.133603 | 0.11336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230137 | 730 | 33 | 66 | 22.121212 | 0.879004 | 0.208219 | 0 | 0 | 0 | 0 | 0.073308 | 0.058271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.615385 | 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 |
b4bc71a5abf74792ec97d81d0d3f2a84fc5566b8 | 833 | py | Python | tests/service/user/test_async_user.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 9 | 2020-04-20T23:45:44.000Z | 2021-04-18T11:22:17.000Z | tests/service/user/test_async_user.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 13 | 2020-02-08T16:15:05.000Z | 2021-09-13T22:55:28.000Z | tests/service/user/test_async_user.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 6 | 2020-03-25T17:47:45.000Z | 2021-04-18T11:22:19.000Z | import pytest
@pytest.mark.asyncio
class TestAsyncUser:
"""Test async user."""
async def test_get(self, async_api):
"""Test user get."""
user = await async_api.User.get().get()
assert user
async def test_get_with_only(self, async_api):
"""Test user get."""
user = ... | 27.766667 | 71 | 0.594238 | 106 | 833 | 4.537736 | 0.264151 | 0.116424 | 0.108108 | 0.141372 | 0.561331 | 0.411642 | 0.411642 | 0.282744 | 0.195426 | 0.195426 | 0 | 0.003306 | 0.273709 | 833 | 29 | 72 | 28.724138 | 0.791736 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4bdf8c8dd85eb1a2ed0fc8f95033651e62a1027 | 2,674 | py | Python | src/inversion/count_inversions.py | sahayabhishek/learning-algorithms | b8e7c412b3fa6d9b77817e74ad880c937048ebe5 | [
"MIT"
] | null | null | null | src/inversion/count_inversions.py | sahayabhishek/learning-algorithms | b8e7c412b3fa6d9b77817e74ad880c937048ebe5 | [
"MIT"
] | null | null | null | src/inversion/count_inversions.py | sahayabhishek/learning-algorithms | b8e7c412b3fa6d9b77817e74ad880c937048ebe5 | [
"MIT"
] | null | null | null | # Question
#
# The input file 'IntegerArray.txt' contains all of the 100,000 integers between 1 and 100,000 (inclusive) in some
# order, with no integer repeated.
#
# The task is to compute the number of inversions in the file given, where the i^{th} row of the file indicates
# the i^{th} entry of an array.
#
# load_a... | 34.282051 | 114 | 0.670905 | 422 | 2,674 | 3.990521 | 0.270142 | 0.058195 | 0.064133 | 0.078385 | 0.298694 | 0.21734 | 0.128266 | 0.051069 | 0.027316 | 0.027316 | 0 | 0.013534 | 0.253927 | 2,674 | 77 | 115 | 34.727273 | 0.830576 | 0.366492 | 0 | 0.276596 | 0 | 0 | 0.01432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4bfd8b1ee3005bd9017a48e6de6a0b48133f62a | 902 | py | Python | conf/metadata.py | underworldcode/petsc4py | fdfdd79be39b8cbe95cf57010f29a6cb2ef463a6 | [
"BSD-2-Clause"
] | 3 | 2018-06-03T08:41:40.000Z | 2021-09-10T10:47:54.000Z | conf/metadata.py | underworldcode/petsc4py | fdfdd79be39b8cbe95cf57010f29a6cb2ef463a6 | [
"BSD-2-Clause"
] | null | null | null | conf/metadata.py | underworldcode/petsc4py | fdfdd79be39b8cbe95cf57010f29a6cb2ef463a6 | [
"BSD-2-Clause"
] | 1 | 2018-02-15T15:29:16.000Z | 2018-02-15T15:29:16.000Z | classifiers = """
License :: OSI Approved :: BSD License
Operating System :: POSIX
Intended Audience :: Developers
Intended Audience :: Science/Research
Programming Language :: C
Programming Language :: C++
Programming Language :: Cython
Programming Language :: Python
Programming Language :: Python :: 2
Programming Lan... | 29.096774 | 67 | 0.640798 | 91 | 902 | 6.32967 | 0.505495 | 0.197917 | 0.130208 | 0.107639 | 0.102431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002861 | 0.225055 | 902 | 30 | 68 | 30.066667 | 0.821173 | 0 | 0 | 0.071429 | 0 | 0 | 0.679601 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4c2c8fa3b1b4056fac604b03d43659e47e5cf81 | 1,986 | py | Python | website.py | GVineeta/movie-trailer-website_2 | 0a42835f3bacbf2f148b27f5ac485323b586eea5 | [
"FSFAP"
] | null | null | null | website.py | GVineeta/movie-trailer-website_2 | 0a42835f3bacbf2f148b27f5ac485323b586eea5 | [
"FSFAP"
] | null | null | null | website.py | GVineeta/movie-trailer-website_2 | 0a42835f3bacbf2f148b27f5ac485323b586eea5 | [
"FSFAP"
] | null | null | null | # website.py
# Created by: Vineeta Gupta
# Date: 5 June 2015
# Purpouse: This file is for instantiating all the movie objects and then
# call display_page.py to render the movies in an html page
import display_page
import movie
# Creating objects for my favourite movie
cars = movie.Movie(
"Cars",
... | 32.032258 | 76 | 0.670695 | 262 | 1,986 | 5.045802 | 0.469466 | 0.037821 | 0.060514 | 0.078669 | 0.375189 | 0.329047 | 0.189107 | 0.14826 | 0.098336 | 0.098336 | 0 | 0.02635 | 0.216516 | 1,986 | 61 | 77 | 32.557377 | 0.823265 | 0.169184 | 0 | 0.142857 | 0 | 0 | 0.60418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4cdf54d0e841e8fc1d1096b8c563fee20f3b61d | 409 | py | Python | reporter/urls.py | AIRUNGU/promosy | 51974ba2ad967f53e4c64a2948220d11333add6c | [
"MIT"
] | null | null | null | reporter/urls.py | AIRUNGU/promosy | 51974ba2ad967f53e4c64a2948220d11333add6c | [
"MIT"
] | 4 | 2021-04-08T21:57:54.000Z | 2022-02-10T12:42:33.000Z | reporter/urls.py | AIRUNGU/promosy | 51974ba2ad967f53e4c64a2948220d11333add6c | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from reporter import views as r_views
from djgeojson.views import GeoJSONLayerView
from reporter import models as r_models
urlpatterns = [
path('home', r_views.Prohome, name='home'),
path('report/<str:code>/', r_views.Proreporter, name='code'),
... | 37.181818 | 91 | 0.760391 | 59 | 409 | 5.169492 | 0.457627 | 0.059016 | 0.118033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119804 | 409 | 11 | 92 | 37.181818 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.112195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4d2cb8b7a27131b08b86cc311c7829924d2eac8 | 4,190 | py | Python | yacht/config/proto/policy_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | 5 | 2021-09-03T10:16:50.000Z | 2022-02-28T07:32:43.000Z | yacht/config/proto/policy_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | null | null | null | yacht/config/proto/policy_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | 1 | 2022-03-05T16:06:46.000Z | 2022-03-05T16:06:46.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yacht/config/proto/policy.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import re... | 43.645833 | 480 | 0.78401 | 555 | 4,190 | 5.58018 | 0.243243 | 0.063933 | 0.082661 | 0.032935 | 0.477236 | 0.42751 | 0.353245 | 0.353245 | 0.342913 | 0.286406 | 0 | 0.03061 | 0.103341 | 4,190 | 95 | 481 | 44.105263 | 0.793718 | 0.057041 | 0 | 0.368421 | 1 | 0.013158 | 0.220025 | 0.181242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092105 | 0 | 0.092105 | 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 |
b4d4ce4dd46e7a9fa36d9f43dacb622b8b9197e3 | 1,084 | py | Python | app/password_generator.py | chrisstime/nutcracker | ac3122ead41b363872eeeee588ffa7717b05c1e3 | [
"MIT"
] | null | null | null | app/password_generator.py | chrisstime/nutcracker | ac3122ead41b363872eeeee588ffa7717b05c1e3 | [
"MIT"
] | null | null | null | app/password_generator.py | chrisstime/nutcracker | ac3122ead41b363872eeeee588ffa7717b05c1e3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Password generator module"""
from random import sample, choices
from string import ascii_letters, punctuation, digits
options_dict = {
'symbols': punctuation,
'letters': ascii_letters,
'numbers': digits
}
def _shuffle_characters(symbols: bool, letters: bool, numbers: bool):
... | 30.971429 | 96 | 0.752768 | 121 | 1,084 | 6.471074 | 0.380165 | 0.114943 | 0.061303 | 0.056194 | 0.191571 | 0.191571 | 0 | 0 | 0 | 0 | 0 | 0.001089 | 0.153137 | 1,084 | 34 | 97 | 31.882353 | 0.851852 | 0.043358 | 0 | 0 | 0 | 0 | 0.040737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.190476 | 0.095238 | 0.047619 | 0.380952 | 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 |
b4d64ccc89964e63126bc02a089ed9424132b478 | 741 | py | Python | random_walk.py | leksoid/data-vis-project | c314fdae45d52b9563b20a006a4f903518bfb609 | [
"MIT"
] | null | null | null | random_walk.py | leksoid/data-vis-project | c314fdae45d52b9563b20a006a4f903518bfb609 | [
"MIT"
] | null | null | null | random_walk.py | leksoid/data-vis-project | c314fdae45d52b9563b20a006a4f903518bfb609 | [
"MIT"
] | null | null | null | from random import choice
class RandomWalk:
"""A class to generate random walks"""
def __init__(self, num_points=5000):
self.num_points = num_points
self.x_values = [0]
self.y_values = [0]
def fill_walk(self):
"""Calculate all the points in the walk"""
while len... | 23.903226 | 56 | 0.545209 | 107 | 741 | 3.542056 | 0.364486 | 0.094987 | 0.116095 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034553 | 0.336032 | 741 | 31 | 56 | 23.903226 | 0.735772 | 0.093117 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.055556 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4d9e6c653f4c7b928bfd7715a8b7624d546a43c | 2,652 | py | Python | paint app/main.py | KhamisiKibet/Kivy | 23d6c6c5ac8039e6de24a81958a17ec608858db4 | [
"MIT"
] | null | null | null | paint app/main.py | KhamisiKibet/Kivy | 23d6c6c5ac8039e6de24a81958a17ec608858db4 | [
"MIT"
] | null | null | null | paint app/main.py | KhamisiKibet/Kivy | 23d6c6c5ac8039e6de24a81958a17ec608858db4 | [
"MIT"
] | null | null | null | ########################################################################
## SPINN DESIGN CODE
# YOUTUBE: (SPINN TV) https://www.youtube.com/spinnTv
# WEBSITE: spinndesign.com
# TUTORIAL: KIVY
########################################################################
###############################################... | 34.894737 | 74 | 0.390271 | 217 | 2,652 | 4.691244 | 0.345622 | 0.031434 | 0.021611 | 0.02947 | 0.043222 | 0.043222 | 0 | 0 | 0 | 0 | 0 | 0.00288 | 0.214555 | 2,652 | 76 | 75 | 34.894737 | 0.485838 | 0.194947 | 0 | 0 | 0 | 0 | 0.020654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.178571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4ecbac6ddab667c55d4a2efc553604d234f4100 | 654 | py | Python | auth/__init__.py | pfspontus/lexwheels | 0386b7bf3169c322b24e7c54037033079a38afdf | [
"MIT"
] | null | null | null | auth/__init__.py | pfspontus/lexwheels | 0386b7bf3169c322b24e7c54037033079a38afdf | [
"MIT"
] | null | null | null | auth/__init__.py | pfspontus/lexwheels | 0386b7bf3169c322b24e7c54037033079a38afdf | [
"MIT"
] | null | null | null | """
User authentication views
"""
import functools
from flask import Blueprint
from flask import g
from flask import redirect
from flask import request
from flask import url_for
from auth import views
define = views.define
auth_page = Blueprint('auth', __name__, url_prefix='/auth',
template_fol... | 21.096774 | 68 | 0.686544 | 82 | 654 | 5.329268 | 0.463415 | 0.102975 | 0.171625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223242 | 654 | 30 | 69 | 21.8 | 0.860236 | 0.126911 | 0 | 0 | 0 | 0 | 0.051095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.705882 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4efc6f19e6d115a26e1cd983f731e15d4b0619c | 2,114 | py | Python | bittrex_api/utils/urls.py | kkristof200/py_bittrex_api | 70433d6a14a32299bfd3fce62575ca8e5240d5ba | [
"MIT"
] | 18 | 2020-07-02T14:17:09.000Z | 2022-01-12T16:18:08.000Z | bittrex_api/utils/urls.py | kkristof200/py_bittrex_api | 70433d6a14a32299bfd3fce62575ca8e5240d5ba | [
"MIT"
] | 15 | 2020-06-30T08:08:20.000Z | 2021-09-12T20:11:16.000Z | bittrex_api/utils/urls.py | kkristof200/py_bittrex_api | 70433d6a14a32299bfd3fce62575ca8e5240d5ba | [
"MIT"
] | 8 | 2020-12-29T08:08:20.000Z | 2022-01-12T21:06:22.000Z | # --------------------------------------------------------------- Imports ----------------------------------------------------------------#
# System
from typing import Optional, Dict, Any
# Local
from . import strings
# -------------------------------------------------------------------------------------------------... | 28.186667 | 139 | 0.318354 | 149 | 2,114 | 4.362416 | 0.348993 | 0.073846 | 0.050769 | 0.064615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000635 | 0.254967 | 2,114 | 75 | 140 | 28.186667 | 0.412063 | 0.386944 | 0 | 0.1 | 0 | 0 | 0.012481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4f14a89a1fdded4557137d8a259f762a1ce8a7a | 7,203 | py | Python | simplifycitysimgeometry.py | architecture-building-systems/design-performance-workflows | c3213a6baf2d6ae396d09abc2e0d0d8feb846742 | [
"MIT"
] | 5 | 2017-08-30T01:31:48.000Z | 2021-02-22T14:48:18.000Z | simplifycitysimgeometry.py | architecture-building-systems/design-performance-workflows | c3213a6baf2d6ae396d09abc2e0d0d8feb846742 | [
"MIT"
] | null | null | null | simplifycitysimgeometry.py | architecture-building-systems/design-performance-workflows | c3213a6baf2d6ae396d09abc2e0d0d8feb846742 | [
"MIT"
] | 3 | 2017-07-14T10:05:39.000Z | 2022-02-01T12:59:00.000Z | '''
simplifycitysimgeometry.py
Using a similar algorithm to shading.py, simplify rectangles in
the CitySim xml file by combining walls that belong to the same
building and zone and have the same construction information.
Take special care with opacity...
'''
from eppy.geometry.surface import tilt, angle2vecs, area
fr... | 29.4 | 106 | 0.567958 | 990 | 7,203 | 4.049495 | 0.261616 | 0.019955 | 0.015964 | 0.016463 | 0.082814 | 0.058369 | 0.054378 | 0.045398 | 0.022948 | 0 | 0 | 0.020318 | 0.309871 | 7,203 | 244 | 107 | 29.520492 | 0.78616 | 0.067055 | 0 | 0.134328 | 0 | 0 | 0.046281 | 0.005659 | 0 | 0 | 0 | 0.004098 | 0.022388 | 0 | null | null | 0 | 0.029851 | null | null | 0.022388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4f4f19fee259259b508e15f9d44c90ce426e2d3 | 1,138 | py | Python | easy_maps/admin.py | cyber-barrista/django-easy-maps | 8c0e414f3c48a606dbe471ea8f8e3d06425638db | [
"MIT"
] | 114 | 2015-08-06T08:00:32.000Z | 2022-03-31T14:51:07.000Z | easy_maps/admin.py | cyber-barrista/django-easy-maps | 8c0e414f3c48a606dbe471ea8f8e3d06425638db | [
"MIT"
] | 29 | 2015-08-16T13:39:50.000Z | 2021-10-09T06:51:34.000Z | easy_maps/admin.py | cyber-barrista/django-easy-maps | 8c0e414f3c48a606dbe471ea8f8e3d06425638db | [
"MIT"
] | 55 | 2015-09-17T05:06:47.000Z | 2022-03-04T12:34:54.000Z | # -*- coding: utf-8 -*-
from django import forms
from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from .models import Address
from .widgets import AddressWithMapWidget
class HasExceptionFilter(admin.SimpleListFilter):
title = _("exception")
parameter_name = "has_except... | 27.095238 | 92 | 0.626538 | 120 | 1,138 | 5.791667 | 0.541667 | 0.043165 | 0.031655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005862 | 0.250439 | 1,138 | 41 | 93 | 27.756098 | 0.80891 | 0.018453 | 0 | 0 | 0 | 0 | 0.101345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0.035714 | 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 |
b4f5a1bd2c976360b5598b77e0ed89960805b27e | 7,420 | py | Python | isbndb/models.py | bbengfort/isbndb-python | 88edcbaead8b21a6ac80d37d1391fdbef5c7fa12 | [
"Apache-2.0"
] | 4 | 2016-06-07T00:45:44.000Z | 2021-07-06T01:51:13.000Z | isbndb/models.py | bbengfort/isbndb-python | 88edcbaead8b21a6ac80d37d1391fdbef5c7fa12 | [
"Apache-2.0"
] | null | null | null | isbndb/models.py | bbengfort/isbndb-python | 88edcbaead8b21a6ac80d37d1391fdbef5c7fa12 | [
"Apache-2.0"
] | 7 | 2015-07-01T21:07:59.000Z | 2020-06-09T07:00:54.000Z |
class Model(object):
def __init__(self, xml):
self.raw_data = xml
def __str__(self):
return self.raw_data.toprettyxml( )
def _get_attribute(self, attr):
val = self.raw_data.getAttribute(attr)
if val == '':
return None
return val
def _get_eleme... | 27.080292 | 87 | 0.565633 | 789 | 7,420 | 5.097592 | 0.124208 | 0.083541 | 0.083541 | 0.097215 | 0.660368 | 0.591994 | 0.489806 | 0.44008 | 0.44008 | 0.407011 | 0 | 0.002434 | 0.335445 | 7,420 | 273 | 88 | 27.179487 | 0.813222 | 0 | 0 | 0.577273 | 0 | 0 | 0.088691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.113636 | 0.418182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b4fbbcb5edfa8508d98e98b5117799cf57df92b9 | 4,168 | py | Python | scripts/beam_decode.py | quangvy2703/Up-Down-Captioner | c7c4bc4a36d62f67fe21efdac3c1afcf63432977 | [
"MIT"
] | 232 | 2018-02-12T06:28:12.000Z | 2022-01-11T05:52:06.000Z | scripts/beam_decode.py | quangvy2703/Up-Down-Captioner | c7c4bc4a36d62f67fe21efdac3c1afcf63432977 | [
"MIT"
] | 30 | 2018-03-05T14:32:38.000Z | 2021-08-04T08:44:16.000Z | scripts/beam_decode.py | quangvy2703/Up-Down-Captioner | c7c4bc4a36d62f67fe21efdac3c1afcf63432977 | [
"MIT"
] | 74 | 2018-03-04T09:06:12.000Z | 2021-12-14T06:33:33.000Z | #!/usr/bin/env python
"""
Decode a language model using one GPU.
"""
import numpy as np
import argparse
import sys
import json
import caffe
from evaluate import CaptionScorer
from util import restore_weights
def translate(vocab, blob):
caption = "";
w = 0;
while True:
next_word = vocab[int(blob[w]... | 33.079365 | 80 | 0.533829 | 507 | 4,168 | 4.252465 | 0.262327 | 0.029221 | 0.02551 | 0.039425 | 0.19295 | 0.142857 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0 | 0.012017 | 0.341171 | 4,168 | 125 | 81 | 33.344 | 0.773125 | 0.039827 | 0 | 0.179245 | 0 | 0.009434 | 0.107423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.084906 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4ffd388295fcd64fbf954d29c8f5dfb93602558 | 251 | py | Python | app.py | maikynata/bot-alerta-fogo | b498f173da7d677273c8aed0737da78cbd013adb | [
"MIT"
] | 1 | 2020-06-17T20:40:09.000Z | 2020-06-17T20:40:09.000Z | app.py | maikynata/bot-alerta-fogo | b498f173da7d677273c8aed0737da78cbd013adb | [
"MIT"
] | 3 | 2020-07-21T01:07:34.000Z | 2021-07-02T16:45:41.000Z | app.py | maikynata/bot-alerta-fogo | b498f173da7d677273c8aed0737da78cbd013adb | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__, static_folder='static', static_url_path='')
@app.route("/")
def index():
# Render HTML with count variable
return app.send_static_file("index.html")
if __name__ == "__main__":
app.run() | 20.916667 | 65 | 0.681275 | 34 | 251 | 4.529412 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175299 | 251 | 12 | 66 | 20.916667 | 0.743961 | 0.123506 | 0 | 0 | 0 | 0 | 0.114155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
370113ee8b47048b9ffe31de222a45a4a9da7b31 | 3,996 | py | Python | tests/dicts/test_benedict_casting.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 365 | 2019-05-21T05:50:30.000Z | 2022-03-29T11:35:35.000Z | tests/dicts/test_benedict_casting.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 78 | 2019-11-16T12:22:54.000Z | 2022-03-14T12:21:30.000Z | tests/dicts/test_benedict_casting.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 26 | 2019-12-16T06:34:12.000Z | 2022-02-28T07:16:41.000Z | # -*- coding: utf-8 -*-
from benedict import benedict
import unittest
class benedict_casting_test_case(unittest.TestCase):
def test__getitem__(self):
d = {
'a': 1,
'b': {
'c': {
'd': 2,
},
},
}
b = b... | 24.819876 | 52 | 0.386386 | 412 | 3,996 | 3.67233 | 0.114078 | 0.030403 | 0.158625 | 0.023794 | 0.673496 | 0.673496 | 0.663582 | 0.649703 | 0.642432 | 0.642432 | 0 | 0.012004 | 0.457958 | 3,996 | 160 | 53 | 24.975 | 0.686519 | 0.011512 | 0 | 0.569444 | 0 | 0 | 0.017993 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 1 | 0.0625 | false | 0 | 0.013889 | 0 | 0.083333 | 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 |
370a184fbd5162724e3eff46be946211749a3991 | 1,443 | py | Python | advanced_descriptors/__init__.py | penguinolog/advanced-descriptors | 7217e7ce05fd2c300ac787d461adac2f0b559142 | [
"Apache-2.0"
] | 2 | 2018-03-23T23:40:13.000Z | 2019-10-29T19:13:14.000Z | advanced_descriptors/__init__.py | penguinolog/advanced-descriptors | 7217e7ce05fd2c300ac787d461adac2f0b559142 | [
"Apache-2.0"
] | 24 | 2018-04-25T12:43:36.000Z | 2018-12-27T14:41:20.000Z | advanced_descriptors/__init__.py | penguinolog/advanced-descriptors | 7217e7ce05fd2c300ac787d461adac2f0b559142 | [
"Apache-2.0"
] | 1 | 2018-04-24T10:02:44.000Z | 2018-04-24T10:02:44.000Z | # Copyright 2017 - 2021 Alexey Stepanov aka penguinolog
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required b... | 37 | 78 | 0.753985 | 180 | 1,443 | 5.827778 | 0.588889 | 0.057197 | 0.038132 | 0.040038 | 0.106768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011599 | 0.163548 | 1,443 | 38 | 79 | 37.973684 | 0.857498 | 0.477477 | 0 | 0 | 0 | 0 | 0.431479 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.277778 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
370dda6711f9ead10c0479b3a88d199dda901e65 | 3,871 | py | Python | db.py | ashwani1218/OpenMEMEs | 3c4fc8b9c7abac33c4260f096e45db4bc132574b | [
"MIT"
] | 1 | 2019-09-07T11:39:58.000Z | 2019-09-07T11:39:58.000Z | db.py | ashwani1218/OpenMEMEs | 3c4fc8b9c7abac33c4260f096e45db4bc132574b | [
"MIT"
] | 25 | 2019-09-07T12:12:21.000Z | 2019-09-15T19:37:37.000Z | db.py | ashwani1218/OpenMEMEs | 3c4fc8b9c7abac33c4260f096e45db4bc132574b | [
"MIT"
] | 1 | 2019-09-08T05:41:17.000Z | 2019-09-08T05:41:17.000Z | import sqlite3
DB_FILE = 'OpenMEMEs.db'
def createDB():
""" This function creates the necessary tables in the db.
UPDATE THIS WHEN YOU CREATE NEW TABLES
TABLES:
users -> This table has all the registered users.
posts -> This table contains all the posts posted by registered users.
Co... | 29.776923 | 145 | 0.597262 | 487 | 3,871 | 4.698152 | 0.229979 | 0.052448 | 0.062937 | 0.078671 | 0.440122 | 0.344843 | 0.312063 | 0.312063 | 0.27972 | 0.27972 | 0 | 0.005515 | 0.297339 | 3,871 | 129 | 146 | 30.007752 | 0.835662 | 0.198398 | 0 | 0.417722 | 0 | 0.012658 | 0.281877 | 0.015981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113924 | false | 0.101266 | 0.012658 | 0 | 0.253165 | 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 |
3715070b076cb656e35032a93d460b7e8dee6796 | 2,191 | py | Python | examples/optmod/dcopf/dcopf_api.py | Fuinn/mos-examples | e7badef779f0918c6d09a52db00eb8f890234b57 | [
"BSD-3-Clause"
] | 2 | 2022-03-06T18:39:14.000Z | 2022-03-08T08:44:37.000Z | examples/optmod/dcopf/dcopf_api.py | Fuinn/mos-examples | e7badef779f0918c6d09a52db00eb8f890234b57 | [
"BSD-3-Clause"
] | null | null | null | examples/optmod/dcopf/dcopf_api.py | Fuinn/mos-examples | e7badef779f0918c6d09a52db00eb8f890234b57 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
from mos.interface import Interface
# Interface
interface = Interface()
# Delete model
interface.delete_model_with_name('DCOPF Model')
# New model
model = interface.new_model('./examples/optmod/dcopf/dcopf_model.py')... | 22.587629 | 69 | 0.728435 | 338 | 2,191 | 4.532544 | 0.313609 | 0.093995 | 0.05483 | 0.02611 | 0.212794 | 0.148825 | 0.08094 | 0.08094 | 0.08094 | 0.049608 | 0 | 0.01332 | 0.109083 | 2,191 | 96 | 70 | 22.822917 | 0.771516 | 0.10817 | 0 | 0.178571 | 0 | 0 | 0.12668 | 0.036194 | 0 | 0 | 0 | 0 | 0.482143 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37195bd8f8aca0c3306caf40130285e17d1df001 | 7,612 | py | Python | servicemanager/service/smplayservice.py | alphagov/service-manager | fa507758b5376a528658f32728427407fe87aaf3 | [
"Apache-2.0"
] | null | null | null | servicemanager/service/smplayservice.py | alphagov/service-manager | fa507758b5376a528658f32728427407fe87aaf3 | [
"Apache-2.0"
] | null | null | null | servicemanager/service/smplayservice.py | alphagov/service-manager | fa507758b5376a528658f32728427407fe87aaf3 | [
"Apache-2.0"
] | 2 | 2019-08-29T11:38:05.000Z | 2021-04-10T20:07:03.000Z | #!/usr/bin/env python
import os
import shutil
import zipfile
import stat
import copy
import types
from servicemanager.subprocess import Popen
from ..service.smservice import SmMicroServiceStarter
from smjvmservice import SmJvmService, SmJvmServiceStarter
from ..smfile import force_chdir, force_pushdir, remove_if_exis... | 40.924731 | 155 | 0.666054 | 937 | 7,612 | 5.120598 | 0.23159 | 0.050438 | 0.034389 | 0.018341 | 0.227595 | 0.186744 | 0.145894 | 0.116298 | 0.074614 | 0.074614 | 0 | 0.003058 | 0.226747 | 7,612 | 185 | 156 | 41.145946 | 0.812097 | 0.018129 | 0 | 0.081481 | 0 | 0 | 0.113119 | 0.017537 | 0 | 0 | 0 | 0.005405 | 0 | 0 | null | null | 0.014815 | 0.096296 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
371b2b081b66a0541fe2d0a64d070230a1d198a2 | 407 | py | Python | vote/migrations/0021_auto_20201103_1923.py | stustanet/Wahlfang | bd7eb21a187d6c985d34c7f806d6f88e7f00db06 | [
"MIT"
] | 21 | 2020-05-29T22:30:32.000Z | 2021-11-03T01:16:44.000Z | vote/migrations/0021_auto_20201103_1923.py | stustanet/Wahlfang | bd7eb21a187d6c985d34c7f806d6f88e7f00db06 | [
"MIT"
] | 1 | 2020-11-24T10:22:22.000Z | 2020-12-16T17:43:37.000Z | vote/migrations/0021_auto_20201103_1923.py | stustanet/Wahlfang | bd7eb21a187d6c985d34c7f806d6f88e7f00db06 | [
"MIT"
] | 1 | 2021-08-03T02:03:01.000Z | 2021-08-03T02:03:01.000Z | # Generated by Django 3.1.2 on 2020-11-03 18:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vote', '0020_election_remind_text_sent'),
]
operations = [
migrations.AlterField(
model_name='session',
name='start_... | 21.421053 | 62 | 0.611794 | 45 | 407 | 5.4 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064407 | 0.275184 | 407 | 18 | 63 | 22.611111 | 0.759322 | 0.110565 | 0 | 0 | 1 | 0 | 0.141667 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
371be6a2fa25677990585b1cafc77061373c8fdf | 2,214 | py | Python | zci_bio/annotations/cpgavas.py | CroP-BioDiv/zcitools | 52332b4013486e983f962c085236189292228a02 | [
"MIT"
] | null | null | null | zci_bio/annotations/cpgavas.py | CroP-BioDiv/zcitools | 52332b4013486e983f962c085236189292228a02 | [
"MIT"
] | null | null | null | zci_bio/annotations/cpgavas.py | CroP-BioDiv/zcitools | 52332b4013486e983f962c085236189292228a02 | [
"MIT"
] | null | null | null | from zci_bio.annotations.steps import AnnotationsStep
from common_utils.file_utils import write_fasta # copy_file, link_file
_instructions = """
Open web page http://www.herbalgenomics.org/cpgavas/
Probably one of mirrors:
Mirror 1: Central China : http://47.96.249.172:16019/analyzer/home
Mirror 2: East Coast USA ... | 35.142857 | 103 | 0.700542 | 308 | 2,214 | 4.850649 | 0.532468 | 0.052209 | 0.036145 | 0.033467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03032 | 0.180668 | 2,214 | 62 | 104 | 35.709677 | 0.793275 | 0.266938 | 0 | 0 | 0 | 0.096774 | 0.459037 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.16129 | 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 |
37225dc1315a60b0cb48ad32cd76bfaf27977494 | 269 | py | Python | game/model/entity/damage/damage.py | AntonYermilov/progue | 7f382208c9efc904cff9d8df4750606039801d45 | [
"MIT"
] | null | null | null | game/model/entity/damage/damage.py | AntonYermilov/progue | 7f382208c9efc904cff9d8df4750606039801d45 | [
"MIT"
] | 6 | 2019-03-25T21:11:28.000Z | 2019-06-21T16:21:47.000Z | game/model/entity/damage/damage.py | AntonYermilov/progue | 7f382208c9efc904cff9d8df4750606039801d45 | [
"MIT"
] | 1 | 2021-12-22T22:03:47.000Z | 2021-12-22T22:03:47.000Z | from dataclasses import dataclass
from enum import Enum
class DamageType(Enum):
PHYSICAL = 0
MAGIC = 1
HEALING = 2
@dataclass
class Damage:
"""
Damage class.
"""
damage_type: DamageType
damage_amount: int
confuse_turns: int = 0
| 13.45 | 33 | 0.650558 | 32 | 269 | 5.375 | 0.59375 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.27881 | 269 | 19 | 34 | 14.157895 | 0.865979 | 0.048327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
3727b098ea5602cc84e510f75cbda367af2d66af | 2,205 | py | Python | recipes/Python/577233_Adding_directory_pythexecutable_system_PATH/recipe-577233.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577233_Adding_directory_pythexecutable_system_PATH/recipe-577233.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577233_Adding_directory_pythexecutable_system_PATH/recipe-577233.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | """
a small program to run after the installation of python on windows
adds the directory path to the python executable to the PATH env. variable
with optional parameter remove, removes it
you have to open a new command prompt to see the effects (echo %PATH%)
"""
import sys
import os
import time
import _winreg... | 33.923077 | 81 | 0.65941 | 281 | 2,205 | 5.088968 | 0.491103 | 0.01049 | 0.012587 | 0.016783 | 0.114685 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0.006647 | 0.249433 | 2,205 | 64 | 82 | 34.453125 | 0.857402 | 0.019501 | 0 | 0.04878 | 0 | 0 | 0.141232 | 0.046854 | 0 | 0 | 0.006693 | 0 | 0.02439 | 0 | null | null | 0 | 0.121951 | null | null | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
372927376398030daf91b84505609046b2fc7a0c | 274 | py | Python | programming/coursera/algorithmic_toolbox/week_1/MaximumPairwiseProduct.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:42:58.000Z | 2021-01-03T06:42:58.000Z | programming/coursera/algorithmic_toolbox/week_1/MaximumPairwiseProduct.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | programming/coursera/algorithmic_toolbox/week_1/MaximumPairwiseProduct.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | # python3
def max_pairwise_product(numbers):
x = sorted(numbers)
n = len(numbers)
return x[n-1] * x[n-2]
if __name__ == '__main__':
input_n = int(input())
input_numbers = [int(x) for x in input().split()]
print(max_pairwise_product(input_numbers))
| 22.833333 | 53 | 0.649635 | 41 | 274 | 3.97561 | 0.536585 | 0.134969 | 0.220859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.20073 | 274 | 11 | 54 | 24.909091 | 0.730594 | 0.025547 | 0 | 0 | 0 | 0 | 0.030189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 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 |
372c949cb0aa590abd8e9b72d41e99fede1539e3 | 5,450 | py | Python | signup/models.py | p2pu/mechanical-mooc | b57ce2e3a61f4fc5fe4b1c485b2a69429933ebcc | [
"MIT"
] | 12 | 2015-01-12T17:26:32.000Z | 2020-02-19T19:13:18.000Z | signup/models.py | p2pu/mechanical-mooc | b57ce2e3a61f4fc5fe4b1c485b2a69429933ebcc | [
"MIT"
] | 7 | 2015-01-22T13:09:47.000Z | 2021-08-22T02:43:06.000Z | signup/models.py | p2pu/mechanical-mooc | b57ce2e3a61f4fc5fe4b1c485b2a69429933ebcc | [
"MIT"
] | 8 | 2015-10-27T22:34:01.000Z | 2020-04-10T23:15:49.000Z | import random
import string
from datetime import datetime
import json
from signup import db
from signup import emails
from mailgun import api as mailgun_api
from sequence import models as sequence_model
def create_signup( email, questions ):
""" Add signup to the current sequence """
sequence = sequence_mod... | 36.333333 | 163 | 0.722018 | 713 | 5,450 | 5.265077 | 0.192146 | 0.051145 | 0.08098 | 0.073255 | 0.400107 | 0.352158 | 0.319393 | 0.279169 | 0.267448 | 0.223495 | 0 | 0.004279 | 0.185321 | 5,450 | 149 | 164 | 36.577181 | 0.841216 | 0.105505 | 0 | 0.174757 | 0 | 0 | 0.047935 | 0 | 0 | 0 | 0 | 0.013423 | 0 | 1 | 0.126214 | false | 0 | 0.07767 | 0 | 0.31068 | 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 |
373040a1574b289ea617d5cbb33044b43b6e124a | 3,749 | py | Python | AutonomousPkg/build/lib/Autonomous/Modules/Obstacle_Avoidance.py | GabeCasciano/Capstone20 | 2730a92ac7b799f2473fff90effb4e6cbb4de89b | [
"MIT"
] | 1 | 2021-06-09T10:12:01.000Z | 2021-06-09T10:12:01.000Z | AutonomousPkg/build/lib/Autonomous/Modules/Obstacle_Avoidance.py | GabeCasciano/Capstone20 | 2730a92ac7b799f2473fff90effb4e6cbb4de89b | [
"MIT"
] | null | null | null | AutonomousPkg/build/lib/Autonomous/Modules/Obstacle_Avoidance.py | GabeCasciano/Capstone20 | 2730a92ac7b799f2473fff90effb4e6cbb4de89b | [
"MIT"
] | 2 | 2020-12-23T21:35:22.000Z | 2021-07-25T04:49:03.000Z | from Autonomous.Sensors.LIDAR import LIDAR_Interface, Utils
from Autonomous.Modules.Sensor_Fusion import Sensor_Fusion
from Autonomous.Modules.Obstacle_Detection import Obstacle_Detection
from Autonomous.Modules.Path_Planning import Path
import numpy as np
import math
class Obstacle_Avoidance:
SF = Sensor_Fusion(... | 34.081818 | 128 | 0.588157 | 475 | 3,749 | 4.286316 | 0.246316 | 0.081041 | 0.027505 | 0.019155 | 0.260314 | 0.206778 | 0.163065 | 0.146365 | 0.146365 | 0.09332 | 0 | 0.013704 | 0.338224 | 3,749 | 110 | 129 | 34.081818 | 0.806933 | 0.16431 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.083333 | 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 |
2e93503397504b6b256c2251ed982fe328a99147 | 392 | py | Python | event/migrations/0003_event_require_message.py | RevolutionTech/carrier-owl | f72f47e39ea819681fa7b50de2b52e393edeeb96 | [
"0BSD"
] | null | null | null | event/migrations/0003_event_require_message.py | RevolutionTech/carrier-owl | f72f47e39ea819681fa7b50de2b52e393edeeb96 | [
"0BSD"
] | 130 | 2019-04-04T04:27:43.000Z | 2022-03-07T01:13:56.000Z | event/migrations/0003_event_require_message.py | RevolutionTech/carrier-owl | f72f47e39ea819681fa7b50de2b52e393edeeb96 | [
"0BSD"
] | null | null | null | # Generated by Django 2.2.9 on 2020-01-13 05:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("event", "0002_event_remove_location_and_rename_fields"),
]
operations = [
migrations.AlterField(
model_name="event",
... | 20.631579 | 66 | 0.607143 | 42 | 392 | 5.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067616 | 0.283163 | 392 | 18 | 67 | 21.777778 | 0.754448 | 0.114796 | 0 | 0 | 1 | 0 | 0.176812 | 0.127536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ea086a23b4cf62f5097fa53a789adb5347df61c | 1,258 | py | Python | constants.py | OnRails-IN/backend | 5f5c9703fcda282ed54f2e6315680fb30fd91a6f | [
"MIT"
] | null | null | null | constants.py | OnRails-IN/backend | 5f5c9703fcda282ed54f2e6315680fb30fd91a6f | [
"MIT"
] | null | null | null | constants.py | OnRails-IN/backend | 5f5c9703fcda282ed54f2e6315680fb30fd91a6f | [
"MIT"
] | null | null | null | import os
ENV = os.environ.get("PYTHON_ENV")
INDEX_KEYS = {
'a':'Amelie', 'b':'Basterds', 'c':'Corleone', 'd':'Django', 'e':'Edgar',
'f':'Floorgang', 'g':'Gandalf', 'h':'HansLanda', 'i':'Ireland', 'j':'Jeeves',
'k':'Kubrick', 'l':'Lebowski', 'm':'Masterpiece', 'n':'Norman', 'o':'Ozymandias',
'p':'Pika... | 32.25641 | 86 | 0.581081 | 180 | 1,258 | 3.9 | 0.522222 | 0.141026 | 0.188034 | 0.064103 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041045 | 0.147854 | 1,258 | 38 | 87 | 33.105263 | 0.613806 | 0 | 0 | 0 | 0 | 0 | 0.333068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.034483 | 0 | 0.034483 | 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 |
2eaa64ec8309cebade80911434c2f5e45ca2c718 | 980 | py | Python | EnglishCheck.py | williamHuang5468/LearnCircleTool | fa8218d7ab61de3463b244914150f8da85bc9988 | [
"MIT"
] | null | null | null | EnglishCheck.py | williamHuang5468/LearnCircleTool | fa8218d7ab61de3463b244914150f8da85bc9988 | [
"MIT"
] | null | null | null | EnglishCheck.py | williamHuang5468/LearnCircleTool | fa8218d7ab61de3463b244914150f8da85bc9988 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
from datetime import timedelta
from datetime import date
import sys
def countLearnCirlce(date, itemName):
days = [0,1,2,3,4,5,6]
result = []
for item in days:
result.append((date + timedelta(days=item)).strftime('%Y/%m/%d'))
return result
def getTitle(date):... | 29.69697 | 67 | 0.669388 | 146 | 980 | 4.438356 | 0.356164 | 0.018519 | 0.083333 | 0.04321 | 0.287037 | 0.287037 | 0.287037 | 0.197531 | 0.197531 | 0.197531 | 0 | 0.029481 | 0.134694 | 980 | 33 | 68 | 29.69697 | 0.73467 | 0.021429 | 0 | 0.206897 | 0 | 0 | 0.102296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2eab2e10c11740deb9264204a95e79fee5ec80ed | 447 | py | Python | comments/serializers.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | comments/serializers.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | comments/serializers.py | syqu22/django-react-blog | 6c5605e1c8ef66b17d4d6453f0807947d1adfdb4 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from users.serializers import UserSerializer
from comments.models import Comment
class CommentSerializer(serializers.ModelSerializer):
author = UserSerializer(read_only=True)
class Meta:
model = Comment
fields = ['id', 'author', 'body', 'created_at']
... | 22.35 | 59 | 0.718121 | 44 | 447 | 7.227273 | 0.568182 | 0.163522 | 0.08805 | 0.132075 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199105 | 447 | 19 | 60 | 23.526316 | 0.888268 | 0 | 0 | 0.333333 | 0 | 0 | 0.058166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2eaf6fed91541feff967cd0905edc192034aff88 | 1,564 | py | Python | api/tacticalrmm/agents/migrations/0015_note.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | 1 | 2021-01-19T20:39:02.000Z | 2021-01-19T20:39:02.000Z | api/tacticalrmm/agents/migrations/0015_note.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | null | null | null | api/tacticalrmm/agents/migrations/0015_note.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-22 20:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("agents", "0014_remove_ag... | 30.666667 | 72 | 0.427749 | 121 | 1,564 | 5.355372 | 0.520661 | 0.049383 | 0.064815 | 0.101852 | 0.092593 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0.023457 | 0.482097 | 1,564 | 50 | 73 | 31.28 | 0.776543 | 0.028772 | 0 | 0.204545 | 1 | 0 | 0.059987 | 0.021753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.136364 | 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 |
2eb1e50ca4ea94641ba76702a759687b8ab07227 | 1,272 | py | Python | restaurant.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | restaurant.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | restaurant.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | # A module for class Restaurant
"""A set of classes that can be used to represent a restaurant."""
class Restaurant():
"""A model of a restaurant."""
def __init__(self, name, cuisine):
"""Initialize name and age attributes."""
self.name = name
self.cuisine = cuisine
def describe... | 33.473684 | 80 | 0.652516 | 156 | 1,272 | 5.211538 | 0.371795 | 0.0492 | 0.03936 | 0.0369 | 0.127921 | 0.078721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237421 | 1,272 | 37 | 81 | 34.378378 | 0.838144 | 0.369497 | 0 | 0.125 | 0 | 0 | 0.195479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ebcf5dffe63faa440f4f5ccad9882cd105ea3ac | 408 | py | Python | src/examples/__init__.py | flipdot/manim-gallery | a04a307f5a3d466ffa885002ec9e7b7499cbef1d | [
"MIT"
] | 14 | 2019-08-13T21:05:51.000Z | 2021-03-14T13:29:34.000Z | src/examples/__init__.py | flipdot/manim-gallery | a04a307f5a3d466ffa885002ec9e7b7499cbef1d | [
"MIT"
] | 8 | 2019-08-13T22:53:49.000Z | 2021-04-20T21:34:18.000Z | src/examples/__init__.py | flipdot/manim-gallery | a04a307f5a3d466ffa885002ec9e7b7499cbef1d | [
"MIT"
] | 6 | 2019-08-13T21:05:58.000Z | 2020-10-07T23:01:40.000Z | from os.path import dirname, join
import glob
from pathlib import Path
modules = glob.glob(join(dirname(__file__), '**/*.py'), recursive=True)
# __all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.startswith('_')]
paths = [Path(x) for x in modules]
__all__ = [
f'{p.parent.name}.{p.stem}' for p in p... | 37.090909 | 86 | 0.676471 | 68 | 408 | 3.838235 | 0.470588 | 0.068966 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.151961 | 408 | 10 | 87 | 40.8 | 0.751445 | 0.205882 | 0 | 0 | 0 | 0 | 0.124224 | 0.074534 | 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 |
2ec75946941a7e7a0708676ef0f755bc52ab3a97 | 2,648 | py | Python | django/docs/releases/1.7.7.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/releases/1.7.7.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/releases/1.7.7.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXX XXXXX XXXXXXX XXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXX XXX XXXXX
XXXXXX XXXXX XXXXX XXXXXXX XXXX XXX XXXXXXXX XXXXXX XX XXXXXX
XXXXXXXXXXXXXXXXX XXXXXXXXXXX XXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX XXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX... | 48.145455 | 80 | 0.858006 | 355 | 2,648 | 6.4 | 0.073239 | 0.038732 | 0.02993 | 0.027729 | 0.035651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141994 | 2,648 | 54 | 81 | 49.037037 | 1 | 0 | 0 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2eced14d565157bddf463c1bd488b0f5089649ce | 3,021 | py | Python | src/GimelStudio/node_importer.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 47 | 2020-05-22T09:10:05.000Z | 2021-04-08T06:27:50.000Z | src/GimelStudio/node_importer.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 24 | 2020-08-26T13:51:10.000Z | 2021-04-18T01:41:51.000Z | src/GimelStudio/node_importer.py | iwoithe/Gimel-Studio | e2750576e72edee6f2f4c268045b81459df82d89 | [
"Apache-2.0"
] | 9 | 2020-08-16T14:27:14.000Z | 2021-02-17T19:04:34.000Z | # ----------------------------------------------------------------------------
# Gimel Studio Copyright 2019-2021 by Noah Rahm and contributors
#
# 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... | 45.089552 | 78 | 0.541874 | 296 | 3,021 | 5.358108 | 0.5 | 0.094578 | 0.136192 | 0.141236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006221 | 0.36147 | 3,021 | 66 | 79 | 45.772727 | 0.815967 | 0.348229 | 0 | 0 | 0 | 0 | 0.06176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.027027 | 0.27027 | 0 | 0.27027 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2ed13988e3d7d788ec39529db0039ac94dbed4c0 | 1,096 | py | Python | setup.py | ptpt/zhub | 6b82bbc2d7d892539cbf2a0745752a35d0cc5f77 | [
"MIT"
] | null | null | null | setup.py | ptpt/zhub | 6b82bbc2d7d892539cbf2a0745752a35d0cc5f77 | [
"MIT"
] | 3 | 2019-03-02T06:08:04.000Z | 2019-03-02T09:57:50.000Z | setup.py | ptpt/zhub | 6b82bbc2d7d892539cbf2a0745752a35d0cc5f77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def readme():
with open('README.md') as f:
return f.read()
def requirements():
return list(open('requirements.txt'))
setup(name='zhub',
version='0.1',... | 25.488372 | 54 | 0.589416 | 120 | 1,096 | 5.325 | 0.725 | 0.034429 | 0.078247 | 0.081377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.262774 | 1,096 | 42 | 55 | 26.095238 | 0.780941 | 0.038321 | 0 | 0 | 0 | 0 | 0.409696 | 0.019962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | true | 0 | 0.090909 | 0.030303 | 0.212121 | 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 |
2eda030aa6a7811fb3993b7d85e4cc7bc53687ab | 408 | py | Python | monitoring/migrations/0002_alter_aspek_kegiatan.py | eewinkk/sdnantwr | 3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b | [
"MIT"
] | null | null | null | monitoring/migrations/0002_alter_aspek_kegiatan.py | eewinkk/sdnantwr | 3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b | [
"MIT"
] | null | null | null | monitoring/migrations/0002_alter_aspek_kegiatan.py | eewinkk/sdnantwr | 3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-10 15:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('monitoring', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='aspek',
name='kegiatan',
... | 21.473684 | 79 | 0.605392 | 42 | 408 | 5.833333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.27451 | 408 | 18 | 80 | 22.666667 | 0.763514 | 0.110294 | 0 | 0 | 1 | 0 | 0.149584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2edaa75c0d6c3c949b6831a09e289de4d1d19b9b | 2,066 | py | Python | 2008/1A/Milkshakes/Milkshakes.py | alexcasgarcia/GCJ | 65b2977c2df812810923d828e33472cf3b3739f5 | [
"MIT"
] | null | null | null | 2008/1A/Milkshakes/Milkshakes.py | alexcasgarcia/GCJ | 65b2977c2df812810923d828e33472cf3b3739f5 | [
"MIT"
] | null | null | null | 2008/1A/Milkshakes/Milkshakes.py | alexcasgarcia/GCJ | 65b2977c2df812810923d828e33472cf3b3739f5 | [
"MIT"
] | null | null | null | import pdb
#5 (milkshake flavors)
#4 (customers)
#2 1 0 2 0 or 0 0 None None None
#2 1 1 2 1 or 1 1 None None None
#2 1 0 2 1 or 1 0 None None None
#0 0
#1 1
#1 0
#0 1
#find
# for a set of customers with the same # of preferences, figure out which the set of milkshakes that will satisfy them
# for each customer
##... | 28.30137 | 143 | 0.621491 | 270 | 2,066 | 4.751852 | 0.348148 | 0.037412 | 0.028059 | 0.006235 | 0.021824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032235 | 0.309293 | 2,066 | 72 | 144 | 28.694444 | 0.866854 | 0.448209 | 0 | 0.181818 | 0 | 0 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2ee24b07b8c20ef55dfb51940f461691afab7ab7 | 272 | py | Python | vo/AutoScaleSettingVO.py | liujiage/DevOpsK8s | b722a855394887a91f42c46586b9724f3258f620 | [
"Apache-2.0"
] | 1 | 2022-02-26T05:20:28.000Z | 2022-02-26T05:20:28.000Z | vo/AutoScaleSettingVO.py | liujiage/DevOpsK8s | b722a855394887a91f42c46586b9724f3258f620 | [
"Apache-2.0"
] | null | null | null | vo/AutoScaleSettingVO.py | liujiage/DevOpsK8s | b722a855394887a91f42c46586b9724f3258f620 | [
"Apache-2.0"
] | null | null | null | class AutoScaleSettingVO:
def __init__(self, mini_size=1, max_size=1, mem_exc=0, deploy_name = ""):
self.miniSize = mini_size
self.maxSize = max_size
self.memExc = mem_exc
self.deployName = deploy_name
self.operationResult = ""
| 34 | 77 | 0.650735 | 34 | 272 | 4.852941 | 0.558824 | 0.09697 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.253676 | 272 | 7 | 78 | 38.857143 | 0.79803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
2ee81283714174a1abb263fbe81e25120862dae4 | 1,247 | py | Python | features/hooks/config.py | mrmayfield/pyethereum | 6a3cad803f256b012d5a3c6a254c214f9ebe815d | [
"MIT"
] | 1 | 2015-11-05T19:27:58.000Z | 2015-11-05T19:27:58.000Z | features/hooks/config.py | mrmayfield/pyethereum | 6a3cad803f256b012d5a3c6a254c214f9ebe815d | [
"MIT"
] | null | null | null | features/hooks/config.py | mrmayfield/pyethereum | 6a3cad803f256b012d5a3c6a254c214f9ebe815d | [
"MIT"
] | null | null | null | import uuid
import mock
import tempfile
from pyethereum.utils import sha3
class ConfigHook(object):
def before_feature(self, context, feature):
'''
.. note::
`context.conf` is used instead of `context.config` because `config`
is used internally in `context` by *behave*
... | 27.711111 | 79 | 0.566159 | 138 | 1,247 | 4.985507 | 0.449275 | 0.087209 | 0.093023 | 0.110465 | 0.212209 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0 | 0 | 0.014354 | 0.329591 | 1,247 | 44 | 80 | 28.340909 | 0.808612 | 0.10425 | 0 | 0 | 0 | 0 | 0.095725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.153846 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
2eeba0ba4c3e2920075960d661cb1126f3f7ed8f | 1,331 | py | Python | setup.py | jkaluzka/flask-model-mommy | e73579b1a50d5c83a4dcf83695d6f46d50dbf1e2 | [
"MIT"
] | null | null | null | setup.py | jkaluzka/flask-model-mommy | e73579b1a50d5c83a4dcf83695d6f46d50dbf1e2 | [
"MIT"
] | null | null | null | setup.py | jkaluzka/flask-model-mommy | e73579b1a50d5c83a4dcf83695d6f46d50dbf1e2 | [
"MIT"
] | null | null | null | """Setup file for flask-model-mommy."""
import setuptools
from os.path import join, dirname
setuptools.setup(
name='flask-model-mommy',
version='0.1.0',
packages=['flask_model_mommy'],
include_package_data=True, # declarations in MANIFEST.in
install_requires=open(join(dirname(__file__), 'require... | 34.128205 | 106 | 0.631856 | 151 | 1,331 | 5.456954 | 0.582781 | 0.06068 | 0.151699 | 0.09466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020173 | 0.217881 | 1,331 | 38 | 107 | 35.026316 | 0.771374 | 0.046582 | 0 | 0.058824 | 0 | 0 | 0.512272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
2eee42b01e8849f92ef60444785c276782f24eee | 2,609 | py | Python | src/som/primitives/ast/system_primitives.py | smarr/RTruffleSOM | 1efc698577830ff3fcd1607e7155d9c6423e8804 | [
"MIT"
] | 9 | 2015-02-03T23:24:23.000Z | 2020-06-28T23:49:59.000Z | src/som/primitives/ast/system_primitives.py | SOM-st/RTruffleSOM | 1efc698577830ff3fcd1607e7155d9c6423e8804 | [
"MIT"
] | null | null | null | src/som/primitives/ast/system_primitives.py | SOM-st/RTruffleSOM | 1efc698577830ff3fcd1607e7155d9c6423e8804 | [
"MIT"
] | 2 | 2016-08-28T23:25:20.000Z | 2016-08-30T16:49:50.000Z | from som.primitives.primitives import Primitives
from som.vm.globals import nilObject, falseObject, trueObject
from som.vmobjects.primitive import AstPrimitive as Primitive
from som.vm.universe import std_print, std_println
from rpython.rlib import rgc, jit
import time
def _load(ivkbl, rcvr, args):
argument =... | 31.817073 | 99 | 0.735148 | 328 | 2,609 | 5.542683 | 0.20122 | 0.049505 | 0.071507 | 0.154015 | 0.443344 | 0.280528 | 0.266227 | 0.212321 | 0.163916 | 0.163916 | 0 | 0.008182 | 0.156765 | 2,609 | 81 | 100 | 32.209877 | 0.818182 | 0 | 0 | 0.214286 | 0 | 0 | 0.029513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.107143 | 0 | 0.517857 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2ef9185c4969c475a2a62a75c17f1de7ebc05b50 | 927 | py | Python | babybuddy/settings/development.py | MCAdkins0/babybuddy | 5aa6570ce94ccc5fcf3ed2d29398ba434da6f28c | [
"BSD-2-Clause"
] | null | null | null | babybuddy/settings/development.py | MCAdkins0/babybuddy | 5aa6570ce94ccc5fcf3ed2d29398ba434da6f28c | [
"BSD-2-Clause"
] | null | null | null | babybuddy/settings/development.py | MCAdkins0/babybuddy | 5aa6570ce94ccc5fcf3ed2d29398ba434da6f28c | [
"BSD-2-Clause"
] | null | null | null | from .base import *
# Quick-start development settings - unsuitable for production
# https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
SECRET_KEY = 'CHANGE ME'
DEBUG = True
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'd... | 24.394737 | 77 | 0.73247 | 112 | 927 | 5.982143 | 0.589286 | 0.097015 | 0.098507 | 0.11194 | 0.144776 | 0.144776 | 0.144776 | 0.101493 | 0 | 0 | 0 | 0.009963 | 0.133765 | 927 | 37 | 78 | 25.054054 | 0.824408 | 0.502697 | 0 | 0 | 0 | 0 | 0.494407 | 0.41387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ef92a17c5b80fc53f27dfe22a145685ee84fef2 | 2,003 | py | Python | examples/example_reading_LAMDA_files.py | gica3618/pythonradex | 4821537b85f41451cd0c2f26017df78658d2b728 | [
"MIT"
] | 5 | 2020-01-15T02:36:32.000Z | 2021-11-16T17:25:57.000Z | examples/example_reading_LAMDA_files.py | gica3618/pythonradex | 4821537b85f41451cd0c2f26017df78658d2b728 | [
"MIT"
] | null | null | null | examples/example_reading_LAMDA_files.py | gica3618/pythonradex | 4821537b85f41451cd0c2f26017df78658d2b728 | [
"MIT"
] | 1 | 2021-06-18T11:53:34.000Z | 2021-06-18T11:53:34.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 21 16:37:59 2017
@author: gianni
"""
from pythonradex import LAMDA_file
import numpy as np
data_filepath = './co.dat' #relative or absolute path to the LAMDA datafile
data = LAMDA_file.read(data_filepath)
levels = data['levels']
rad_transitions = data['radiative trans... | 37.792453 | 92 | 0.727908 | 333 | 2,003 | 4.276276 | 0.354354 | 0.044944 | 0.049157 | 0.061798 | 0.113764 | 0.044944 | 0.044944 | 0.044944 | 0 | 0 | 0 | 0.044628 | 0.093859 | 2,003 | 53 | 93 | 37.792453 | 0.739945 | 0.147279 | 0 | 0.055556 | 0 | 0 | 0.323894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.611111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2ef9b468106f7d846497d1cce914af5af2faa4a0 | 3,328 | py | Python | py/gui/kivy/setUpGui.py | EdgardoCS/Arduino_tesis | 0e7278834fe59c4e54aff45c1152acb9c21b2a24 | [
"MIT"
] | 1 | 2019-06-24T14:51:40.000Z | 2019-06-24T14:51:40.000Z | py/gui/kivy/setUpGui.py | EdgardoCS/Arduino_tesis | 0e7278834fe59c4e54aff45c1152acb9c21b2a24 | [
"MIT"
] | null | null | null | py/gui/kivy/setUpGui.py | EdgardoCS/Arduino_tesis | 0e7278834fe59c4e54aff45c1152acb9c21b2a24 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.properties import StringProperty, ObjectProperty
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.anchorlayout import AnchorLayout
Builder.load_string("""
<Boxes>:
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
siz... | 28.93913 | 68 | 0.45643 | 267 | 3,328 | 5.524345 | 0.307116 | 0.088136 | 0.081356 | 0.037966 | 0.329492 | 0.229831 | 0.186441 | 0.168814 | 0.125424 | 0.125424 | 0 | 0.031603 | 0.467548 | 3,328 | 114 | 69 | 29.192982 | 0.80079 | 0 | 0 | 0.45 | 0 | 0 | 0.761118 | 0.027644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03 | false | 0 | 0.05 | 0.01 | 0.14 | 0.07 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ef9ca057d46698c2d0ee657e3af4e7fb1271005 | 2,753 | py | Python | scripts/import_adminlevels.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | null | null | null | scripts/import_adminlevels.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | null | null | null | scripts/import_adminlevels.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
import csv
from workflow.models import Country, Province, District, AdminLevelThree, Village
"""
Import admin levels from a csv file. First column should be country, second
should be province, etc... Country should be created before you try to upload the file, this
script will not... | 35.294872 | 109 | 0.52016 | 308 | 2,753 | 4.548701 | 0.353896 | 0.062812 | 0.064954 | 0.094932 | 0.239115 | 0.176303 | 0.104925 | 0.104925 | 0.08137 | 0.08137 | 0 | 0.020059 | 0.384308 | 2,753 | 77 | 110 | 35.753247 | 0.80649 | 0 | 0 | 0.310345 | 0 | 0 | 0.085631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.051724 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2efc3ed31f0c20a2474eb8b1a1dfae2b337f23b3 | 773 | py | Python | secondary_market/mailsender.py | chinmaysb/fomoboard | 6fe66a7363d9b5272e200abc69a800834111343c | [
"MIT"
] | null | null | null | secondary_market/mailsender.py | chinmaysb/fomoboard | 6fe66a7363d9b5272e200abc69a800834111343c | [
"MIT"
] | null | null | null | secondary_market/mailsender.py | chinmaysb/fomoboard | 6fe66a7363d9b5272e200abc69a800834111343c | [
"MIT"
] | null | null | null | from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
# set up the SMTP server
my_login = 'cborkar18@gsb.columbia.edu'
my_server = 'smtp.office365.com'
my_port = '587'
my_password = '#Fibo358132134#'
def send_mail(t... | 8.685393 | 53 | 0.6326 | 105 | 773 | 4.552381 | 0.466667 | 0.043933 | 0.054393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029982 | 0.266494 | 773 | 89 | 54 | 8.685393 | 0.813051 | 0.190168 | 0 | 0 | 0 | 0 | 0.128824 | 0.041868 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.157895 | 0 | 0.210526 | 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 |
2c05473a2e173a37ac49dfe1e2c1d19c63a3c01e | 10,836 | py | Python | growingspheres/growingspheres.py | juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations | 991c4cf6153fafef4200732a5ef8ac93f1175f27 | [
"MIT"
] | null | null | null | growingspheres/growingspheres.py | juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations | 991c4cf6153fafef4200732a5ef8ac93f1175f27 | [
"MIT"
] | null | null | null | growingspheres/growingspheres.py | juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations | 991c4cf6153fafef4200732a5ef8ac93f1175f27 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .utils.gs_utils import generate_inside_ball, get_distances
from itertools import combinations
import numpy as np
from sklearn.metrics.pairwise import pairwise_distances
from sklearn.utils import check_random_state
class GrowingSpheres:
"""
class to fit the ... | 43.518072 | 156 | 0.584348 | 1,329 | 10,836 | 4.605719 | 0.189616 | 0.011436 | 0.034308 | 0.027937 | 0.313674 | 0.273811 | 0.23836 | 0.23836 | 0.21124 | 0.21124 | 0 | 0.010782 | 0.323828 | 10,836 | 249 | 157 | 43.518072 | 0.824621 | 0.161683 | 0 | 0.155039 | 1 | 0 | 0.051393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062016 | false | 0 | 0.03876 | 0 | 0.162791 | 0.093023 | 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 |
2c0b868474e625730bd1eed7d82d435e059e3dea | 1,057 | py | Python | setup.py | mmgalushka/squids | 2d6e1bbeb89721a2ff232a7031997111c600abb6 | [
"MIT"
] | null | null | null | setup.py | mmgalushka/squids | 2d6e1bbeb89721a2ff232a7031997111c600abb6 | [
"MIT"
] | 37 | 2022-01-15T21:42:23.000Z | 2022-02-23T23:43:31.000Z | setup.py | mmgalushka/squids | 2d6e1bbeb89721a2ff232a7031997111c600abb6 | [
"MIT"
] | null | null | null | """
SquiDS setup script.
"""
import setuptools
from deeptrace import __version__
def get_long_description():
"""Reads the long project description from the 'README.md' file."""
with open("README.md", "r", encoding="utf-8") as f:
return f.read()
setuptools.setup(
name="squids",
version=__ve... | 27.815789 | 77 | 0.657521 | 117 | 1,057 | 5.760684 | 0.683761 | 0.089021 | 0.053412 | 0.071217 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004689 | 0.192999 | 1,057 | 37 | 78 | 28.567568 | 0.785463 | 0.077578 | 0 | 0 | 0 | 0 | 0.382536 | 0.02183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0.074074 | 0 | 0.148148 | 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 |
2c0baab1d0e05ba44134749abbf4bf765ae3d646 | 855 | py | Python | fermat_v2.py | Filipe-Barbos/Teste | 105831ddf2767ec16f7e9f4f4f11fdcd3d6512b0 | [
"Apache-2.0"
] | null | null | null | fermat_v2.py | Filipe-Barbos/Teste | 105831ddf2767ec16f7e9f4f4f11fdcd3d6512b0 | [
"Apache-2.0"
] | null | null | null | fermat_v2.py | Filipe-Barbos/Teste | 105831ddf2767ec16f7e9f4f4f11fdcd3d6512b0 | [
"Apache-2.0"
] | null | null | null | # Rodar script online
# https://trinket.io/features/python3
a = int(input('Digite um número qualquer: '))
result = 0
# Verificando se p é primo
while True:
p = int(input('Digite um número primo: '))
cont = 0
for i in range(1, p + 1):
if p % i == 0:
cont += 1
if cont == 2:
break
else:
print('{} não é ... | 20.357143 | 45 | 0.585965 | 137 | 855 | 3.656934 | 0.335766 | 0.01996 | 0.159681 | 0.207585 | 0.506986 | 0.419162 | 0.419162 | 0.419162 | 0.419162 | 0.419162 | 0 | 0.025185 | 0.210526 | 855 | 41 | 46 | 20.853659 | 0.717037 | 0.093567 | 0 | 0.387097 | 0 | 0 | 0.312987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.354839 | 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 |
2c0bb3de44bd71a8a4c51c18dac1b94cbe938627 | 349 | py | Python | python/game/gui/tk-realtime_timer.py | rrbb014/rrbb-playground | 5487078b882c4f0df3bacc7f55c47216bc201c04 | [
"MIT"
] | null | null | null | python/game/gui/tk-realtime_timer.py | rrbb014/rrbb-playground | 5487078b882c4f0df3bacc7f55c47216bc201c04 | [
"MIT"
] | null | null | null | python/game/gui/tk-realtime_timer.py | rrbb014/rrbb-playground | 5487078b882c4f0df3bacc7f55c47216bc201c04 | [
"MIT"
] | null | null | null | import tkinter
TIMER = 0
FONT = "Times New Roman"
def count_up():
global TIMER
TIMER += 1
label["text"] = TIMER
root.after(1000, count_up) # 1초 후, count_up함수를 재실행
if __name__ == "__main__":
root = tkinter.Tk()
label = tkinter.Label(font=(FONT, 80))
label.pack()
root.after(1000, c... | 17.45 | 57 | 0.618911 | 49 | 349 | 4.163265 | 0.591837 | 0.102941 | 0.127451 | 0.176471 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04943 | 0.246418 | 349 | 19 | 58 | 18.368421 | 0.726236 | 0.060172 | 0 | 0.142857 | 0 | 0 | 0.082822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c0e116a8abbf21b68331ff937b89de2f65eeb67 | 706 | py | Python | UserCode/cdahl/sbc_run5_make_onelines.py | RunzZhang/SBCcode | e75b8e751cec5fb2c28950edef0c82f005caedcb | [
"MIT"
] | 4 | 2018-08-27T18:02:34.000Z | 2020-06-09T21:19:04.000Z | UserCode/cdahl/sbc_run5_make_onelines.py | RunzZhang/SBCcode | e75b8e751cec5fb2c28950edef0c82f005caedcb | [
"MIT"
] | null | null | null | UserCode/cdahl/sbc_run5_make_onelines.py | RunzZhang/SBCcode | e75b8e751cec5fb2c28950edef0c82f005caedcb | [
"MIT"
] | 4 | 2019-06-20T21:36:26.000Z | 2020-11-10T17:23:14.000Z | import numpy as np
import SBCcode as sbc
import os
import re
from SBCcode.DataHandling.WriteBinary import WriteBinaryNtupleFile as wb
import pdb
recondir = '/bluearc/storage/recon/devel/SBC-15/output'
dd = sbc.read_bin(os.path.join(recondir, 'PMTpulseAnalysis_all.bin'))
ev_float = np.float64(dd['runid'][:, 0] - 20161... | 30.695652 | 76 | 0.705382 | 109 | 706 | 4.486239 | 0.522936 | 0.055215 | 0.067485 | 0.07362 | 0.151329 | 0.151329 | 0 | 0 | 0 | 0 | 0 | 0.041935 | 0.121813 | 706 | 22 | 77 | 32.090909 | 0.746774 | 0 | 0 | 0 | 0 | 0 | 0.175637 | 0.13881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2c10f89609c1bd99f5fdd741c74ba5f22100d169 | 8,162 | py | Python | spark_fhir_schemas/stu3/complex_types/address.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | 2 | 2020-10-31T23:25:01.000Z | 2021-06-09T14:12:42.000Z | spark_fhir_schemas/stu3/complex_types/address.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | spark_fhir_schemas/stu3/complex_types/address.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | from typing import Union, List, Optional
from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType
# This file is auto-generated by generate_schema so do not edit manually
# noinspection PyPep8Naming
class AddressSchema:
"""
An address expressed using postal conventions (as oppos... | 47.453488 | 96 | 0.594952 | 899 | 8,162 | 5.311457 | 0.254727 | 0.01466 | 0.02199 | 0.009215 | 0.704712 | 0.684398 | 0.678534 | 0.617801 | 0.604817 | 0.582618 | 0 | 0.00244 | 0.347341 | 8,162 | 171 | 97 | 47.730994 | 0.893937 | 0.453198 | 0 | 0.252874 | 1 | 0 | 0.059304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.045977 | 0 | 0.091954 | 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 |
2c116cb4a2e0e5a65e3f83b534c0b90c1ee47bb4 | 887 | py | Python | results/results/urls.py | gnufede/results | 9c700e21022b18ba38b645d2aa2bba747ebc8ec3 | [
"MIT"
] | null | null | null | results/results/urls.py | gnufede/results | 9c700e21022b18ba38b645d2aa2bba747ebc8ec3 | [
"MIT"
] | null | null | null | results/results/urls.py | gnufede/results | 9c700e21022b18ba38b645d2aa2bba747ebc8ec3 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib.auth.views import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', TemplateView.as_view(template_na... | 35.48 | 81 | 0.696731 | 122 | 887 | 5.016393 | 0.401639 | 0.052288 | 0.055556 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13867 | 887 | 24 | 82 | 36.958333 | 0.801047 | 0.369786 | 0 | 0 | 0 | 0 | 0.248639 | 0.128857 | 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 |
2c11ac57c8cf628c3cf1f24f56fa90b2c54535e9 | 609 | py | Python | cpsc217/as2/linguistics.py | edwardchen123/UofC | ecc49eee798772e560397fb00ad692e6f664c19b | [
"MIT"
] | 1 | 2021-04-11T10:17:41.000Z | 2021-04-11T10:17:41.000Z | cpsc217/as2/linguistics.py | edwardchen123/UofC | ecc49eee798772e560397fb00ad692e6f664c19b | [
"MIT"
] | null | null | null | cpsc217/as2/linguistics.py | edwardchen123/UofC | ecc49eee798772e560397fb00ad692e6f664c19b | [
"MIT"
] | null | null | null | #CPSC 217 Assignment 2 - Computational Linguistics
#Andrew Helwer
#10023875
import sys
file = sys.stdin.readlines()
#input sorting and handling
d = {}
linecount = 0
wordcount = 0
for line in file:
linecount += 1
for word in line.split(' '):
word = word.replace('\n','')
wordcount += 1
if word not in d:
d[w... | 16.916667 | 50 | 0.668309 | 96 | 609 | 4.239583 | 0.479167 | 0.04914 | 0.044226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041754 | 0.213465 | 609 | 35 | 51 | 17.4 | 0.807933 | 0.259442 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c16781eef37ae6a548e503f81ff0cf4a38ba591 | 7,479 | py | Python | analysis/legacy/plot_massComparison_ML.py | Fizzics/desCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | 2 | 2020-02-21T16:13:37.000Z | 2020-02-21T16:26:03.000Z | analysis/legacy/plot_massComparison_ML.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | analysis/legacy/plot_massComparison_ML.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | import pylab as pyl
from astLib import astStats
from sklearn.metrics import median_absolute_error, mean_squared_error
import h5py as hdf
from matplotlib.ticker import AutoMinorLocator
def calc_err(pred, true):
return (pred - true)/true
golden_mean = (pyl.sqrt(5.)-1.0)/2.0
f = pyl.figure(figsize=(10,10*golden_mean... | 36.305825 | 79 | 0.599545 | 1,152 | 7,479 | 3.759549 | 0.139757 | 0.033249 | 0.039483 | 0.05172 | 0.664973 | 0.603556 | 0.583699 | 0.544678 | 0.526668 | 0.514431 | 0 | 0.096846 | 0.156438 | 7,479 | 205 | 80 | 36.482927 | 0.589634 | 0.037973 | 0 | 0.293333 | 0 | 0 | 0.122064 | 0.016861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.086667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c167f9f175d475f180f608803d93758933af4b8 | 1,870 | py | Python | src/pyrin/task_queues/celery/cli/interface.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/task_queues/celery/cli/interface.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/task_queues/celery/cli/interface.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
celery cli interface module.
"""
from pyrin.cli.base import CLIHandlerBase
from pyrin.cli.params import CLIParamBase
from pyrin.core.globals import LIST_TYPES
class CeleryCLIParamBase(CLIParamBase):
"""
celery cli param base class.
all celery cli param classes must be subclas... | 25.972222 | 70 | 0.582353 | 208 | 1,870 | 5.125 | 0.394231 | 0.042214 | 0.022514 | 0.033771 | 0.136961 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0.000811 | 0.340642 | 1,870 | 71 | 71 | 26.338028 | 0.863747 | 0.365241 | 0 | 0.086957 | 0 | 0 | 0.021654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.521739 | 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 |
2c197130436551233bdbbb656ace52a2e7359e5a | 2,891 | py | Python | stac_api/config.py | waseem-aidash/arturo-stac-api | 63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f | [
"MIT"
] | null | null | null | stac_api/config.py | waseem-aidash/arturo-stac-api | 63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f | [
"MIT"
] | null | null | null | stac_api/config.py | waseem-aidash/arturo-stac-api | 63d27df8763d02bb2b98bcf66e5f5e236a7c6d4f | [
"MIT"
] | null | null | null | """Application settings."""
import enum
from typing import Optional, Set
from pydantic import BaseSettings
# TODO: Move to stac-pydantic
class ApiExtensions(enum.Enum):
"""Enumeration of available stac api extensions.
Ref: https://github.com/radiantearth/stac-api-spec/tree/master/extensions
"""
con... | 28.343137 | 144 | 0.693532 | 336 | 2,891 | 5.839286 | 0.354167 | 0.061162 | 0.026504 | 0.021407 | 0.227319 | 0.196738 | 0.127421 | 0.127421 | 0.127421 | 0.086646 | 0 | 0 | 0.212729 | 2,891 | 101 | 145 | 28.623762 | 0.862039 | 0.479765 | 0 | 0.054054 | 0 | 0.054054 | 0.240618 | 0.18543 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.081081 | false | 0.081081 | 0.081081 | 0 | 0.810811 | 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 |
2c1dd01139803154a7c96f58793e9bc2b558793a | 492 | py | Python | upman/schemas/reporter_schema.py | marcsello/upman | 9e6481f73986ba4a162962c623b8ee1c1d4dab9d | [
"MIT"
] | null | null | null | upman/schemas/reporter_schema.py | marcsello/upman | 9e6481f73986ba4a162962c623b8ee1c1d4dab9d | [
"MIT"
] | null | null | null | upman/schemas/reporter_schema.py | marcsello/upman | 9e6481f73986ba4a162962c623b8ee1c1d4dab9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from marshmallow import fields
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
from model import Reporter
class ReporterSchema(SQLAlchemyAutoSchema):
name = fields.String(required=True)
key = fields.String(required=True)
class Meta:
dump_only = ['id', 'created', 'i... | 25.894737 | 65 | 0.693089 | 54 | 492 | 6.166667 | 0.62963 | 0.09009 | 0.12012 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.221545 | 492 | 18 | 66 | 27.333333 | 0.866841 | 0.042683 | 0 | 0 | 0 | 0 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
2c1df8ccf99a4108719b0cb61541043af2d14bb2 | 615 | py | Python | estacao/tests/modules/test_modules.py | fpcardoso/projeto-estacao-meteorologica | 7c0b2d08b3614f614af6afc82e9d1249d5e359bb | [
"MIT"
] | null | null | null | estacao/tests/modules/test_modules.py | fpcardoso/projeto-estacao-meteorologica | 7c0b2d08b3614f614af6afc82e9d1249d5e359bb | [
"MIT"
] | null | null | null | estacao/tests/modules/test_modules.py | fpcardoso/projeto-estacao-meteorologica | 7c0b2d08b3614f614af6afc82e9d1249d5e359bb | [
"MIT"
] | null | null | null | from unittest import main, TestCase
from modules.bmp280 import BMP280
bmp = BMP280()
bmp.start()
class TestModuleBMP280(TestCase):
def test_read_temperatura(self):
medida_temperatura = bmp.read('Temperatura')
assert (medida_temperatura >= 0) or (medida_temperatura <= 100)
def test_read_press... | 30.75 | 79 | 0.712195 | 73 | 615 | 5.794521 | 0.452055 | 0.049645 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046185 | 0.190244 | 615 | 19 | 80 | 32.368421 | 0.803213 | 0 | 0 | 0 | 0 | 0 | 0.099187 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c221e7c38ff004ce09519076704608b5f64c18e | 757 | py | Python | pizzaapp/migrations/0016_usercart.py | vivekx01/pizzaapp-v2 | 71c028af35955c53564b96ade4ff93c4b59799fe | [
"MIT"
] | 1 | 2021-05-29T06:42:58.000Z | 2021-05-29T06:42:58.000Z | pizzaapp/migrations/0016_usercart.py | vivekx01/pizzaapp-v2 | 71c028af35955c53564b96ade4ff93c4b59799fe | [
"MIT"
] | null | null | null | pizzaapp/migrations/0016_usercart.py | vivekx01/pizzaapp-v2 | 71c028af35955c53564b96ade4ff93c4b59799fe | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-28 09:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pizzaapp', '0015_auto_20210528_1157'),
]
operations = [
migrations.CreateModel(
name='usercart',
field... | 31.541667 | 118 | 0.56539 | 75 | 757 | 5.586667 | 0.666667 | 0.071599 | 0.085919 | 0.114558 | 0.167064 | 0.167064 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.30251 | 757 | 23 | 119 | 32.913043 | 0.725379 | 0.059445 | 0 | 0 | 1 | 0 | 0.107715 | 0.033479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c23a241f32a948beb7d6d6fb95a6b46bc3e6ffc | 6,037 | py | Python | plots/plot_lead.py | kmkolasinski/Bubel | dd0f66475c5d93060e48a6a46a8debf2f2a350d0 | [
"MIT"
] | null | null | null | plots/plot_lead.py | kmkolasinski/Bubel | dd0f66475c5d93060e48a6a46a8debf2f2a350d0 | [
"MIT"
] | null | null | null | plots/plot_lead.py | kmkolasinski/Bubel | dd0f66475c5d93060e48a6a46a8debf2f2a350d0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
import csv
from xml.dom import minidom
from matplotlib.collections import LineCollection
from numpy import linalg as LA
xmldoc = minidom.parse('lead.dat')
file = "lattice.dat"
xml_shape_type = xmldoc.getElementsByTagName('shape_type')
xml_shape_dat... | 30.80102 | 124 | 0.631771 | 878 | 6,037 | 4.166287 | 0.164009 | 0.083652 | 0.076545 | 0.02105 | 0.61509 | 0.56971 | 0.557955 | 0.50164 | 0.495626 | 0.454893 | 0 | 0.02913 | 0.220971 | 6,037 | 196 | 125 | 30.80102 | 0.748671 | 0.10535 | 0 | 0.473684 | 0 | 0 | 0.066592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046053 | null | null | 0.046053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c2adc89adb0ff899b47a926046596be87e00c53 | 1,091 | py | Python | series_tiempo_ar_api/apps/metadata/migrations/0004_auto_20181219_1227.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 28 | 2017-12-16T20:30:52.000Z | 2021-08-11T17:35:04.000Z | series_tiempo_ar_api/apps/metadata/migrations/0004_auto_20181219_1227.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 446 | 2017-11-16T15:21:40.000Z | 2021-06-10T20:14:21.000Z | series_tiempo_ar_api/apps/metadata/migrations/0004_auto_20181219_1227.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 12 | 2018-08-23T16:13:32.000Z | 2022-03-01T23:12:28.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-12-19 15:27
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('metadata', '0003_metadataconfig'),
]
op... | 35.193548 | 110 | 0.501375 | 90 | 1,091 | 5.911111 | 0.644444 | 0.045113 | 0.078947 | 0.101504 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039039 | 0.389551 | 1,091 | 30 | 111 | 36.366667 | 0.75976 | 0.062328 | 0 | 0.086957 | 1 | 0 | 0.15098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
2c2cdf1e59de933cc79215c2de6c6ccdef71e7ae | 851 | py | Python | pizza_modules/pizza_combination.py | Freeways/hashcode2017-practice | 6fd9864c347de3ed8bcc232a69db4b313f6d2667 | [
"MIT"
] | 1 | 2018-02-28T13:58:08.000Z | 2018-02-28T13:58:08.000Z | pizza_modules/pizza_combination.py | Freeways/hashcode2017-practice | 6fd9864c347de3ed8bcc232a69db4b313f6d2667 | [
"MIT"
] | null | null | null | pizza_modules/pizza_combination.py | Freeways/hashcode2017-practice | 6fd9864c347de3ed8bcc232a69db4b313f6d2667 | [
"MIT"
] | null | null | null | """
Generate all possible slice shapes from max to min
"""
from math import sqrt
def generate(min, max):
if min < 1 or max < 1:
raise ValueError('min : {min} & max :{max} must be > 0'.format(min, max))
slices = []
for count in range(min, max+1)[::-1]:
slice = {}
slice["count"] = count
# Calc all divisor... | 19.790698 | 75 | 0.59812 | 126 | 851 | 4.039683 | 0.388889 | 0.047151 | 0.047151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018462 | 0.236193 | 851 | 42 | 76 | 20.261905 | 0.764615 | 0.118684 | 0 | 0 | 1 | 0 | 0.069106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25783ada836ecc86b8f1c7edc4669868b979eaec | 4,120 | py | Python | colour/models/tests/tests_cie_ucs.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | 1 | 2019-06-27T11:32:48.000Z | 2019-06-27T11:32:48.000Z | colour/models/tests/tests_cie_ucs.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | colour/models/tests/tests_cie_ucs.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.cie_ucs` module.
"""
from __future__ import division, unicode_literals
import numpy as np
import sys
if sys.version_info[:2] <= (2, 6):
import unittest2 as unittest
else:
import unittest
from colour.models import X... | 28.811189 | 77 | 0.620631 | 528 | 4,120 | 4.539773 | 0.225379 | 0.043805 | 0.075094 | 0.105131 | 0.620359 | 0.602003 | 0.592407 | 0.532332 | 0.394243 | 0.300375 | 0 | 0.211886 | 0.248544 | 4,120 | 142 | 78 | 29.014085 | 0.562339 | 0.160194 | 0 | 0.315789 | 0 | 0 | 0.074931 | 0.009443 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.184211 | 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 |
2579c424ab374b450b7d106a74b2c61950dfd84d | 14,324 | py | Python | instauto/helpers/models.py | javad94/instauto | 8d4d068863176b0a1df13e5be3d5e32388036921 | [
"MIT"
] | null | null | null | instauto/helpers/models.py | javad94/instauto | 8d4d068863176b0a1df13e5be3d5e32388036921 | [
"MIT"
] | null | null | null | instauto/helpers/models.py | javad94/instauto | 8d4d068863176b0a1df13e5be3d5e32388036921 | [
"MIT"
] | null | null | null | import dataclasses
from typing import ByteString, List, Optional, Tuple
@dataclasses.dataclass
class FriendshipStatus:
following: bool
is_private: Optional[bool]
incoming_request: Optional[bool]
outgoing_request: Optional[bool]
is_bestie: bool
is_restricted: bool
@classmethod
def parse(cls, friendsh... | 33.080831 | 124 | 0.730173 | 1,857 | 14,324 | 5.341949 | 0.145396 | 0.026815 | 0.055444 | 0.04879 | 0.171673 | 0.073891 | 0.043851 | 0.031351 | 0.020161 | 0.011089 | 0 | 0.000165 | 0.153239 | 14,324 | 432 | 125 | 33.157407 | 0.81771 | 0 | 0 | 0.234973 | 0 | 0 | 0.225511 | 0.075333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060109 | false | 0.005464 | 0.005464 | 0.040984 | 0.603825 | 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 |
257a657f962e5718d253a0419235b547421dd0c0 | 1,519 | py | Python | template/language/vc.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 25 | 2015-04-14T21:53:46.000Z | 2022-03-30T19:15:24.000Z | template/language/vc.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 5 | 2020-03-23T20:19:59.000Z | 2021-05-24T19:38:31.000Z | template/language/vc.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 7 | 2015-07-31T13:26:37.000Z | 2021-03-05T19:35:37.000Z | '''
This module is based on the ndk.exception library module. Please
consider using that module instead of this one.
'''
import ptypes, ndk, ndk.exception
from ndk.exception import *
class vtable_ptr(PVOID): pass
class type_info(TypeDescriptor): pass
class exception(pstruct.type):
_fields_ = [
(dyn.point... | 25.745763 | 64 | 0.633311 | 191 | 1,519 | 4.706806 | 0.329843 | 0.07119 | 0.113459 | 0.093437 | 0.164627 | 0.104561 | 0.073415 | 0 | 0 | 0 | 0 | 0.017767 | 0.221856 | 1,519 | 58 | 65 | 26.189655 | 0.742809 | 0.077024 | 0 | 0.181818 | 0 | 0 | 0.110473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.409091 | 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 |
257cb1e1ac136dbb6edcf53ca3fcb535424c2fd5 | 765 | py | Python | forumdemo/comment/models.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | forumdemo/comment/models.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | forumdemo/comment/models.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from article.models import Article
class Comment(models.Model):
owner = models.ForeignKey(User, verbose_name="作者")
article = models.ForeignKey(Article, verbose_name="文章ID")
content = models.CharField("评论内容", max_length=1000)
to_... | 33.26087 | 88 | 0.704575 | 98 | 765 | 5.316327 | 0.561224 | 0.105566 | 0.107486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.16732 | 765 | 22 | 89 | 34.772727 | 0.806907 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0.0625 | 0.875 | 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 |
258c38ae68cb7ae60ec5133c85370437504ae8b6 | 439 | py | Python | core/agents/default_agent.py | Yoshi-0921/MAEXP | cc03fdd46db9b1838df8f7782b4bd1b2bb3f11d5 | [
"MIT"
] | null | null | null | core/agents/default_agent.py | Yoshi-0921/MAEXP | cc03fdd46db9b1838df8f7782b4bd1b2bb3f11d5 | [
"MIT"
] | 10 | 2021-07-04T06:32:59.000Z | 2021-11-06T04:05:24.000Z | core/agents/default_agent.py | Yoshi-0921/MAEXP | cc03fdd46db9b1838df8f7782b4bd1b2bb3f11d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Source code for dqn agent class.
Author: Yoshinari Motokawa <yoshinari.moto@fuji.waseda.jp>
"""
from random import random
from .abstract_agent import AbstractAgent
class DefaultAgent(AbstractAgent):
def get_action(self, state, epsilon):
if random() < epsilon:
act... | 19.954545 | 58 | 0.660592 | 52 | 439 | 5.480769 | 0.615385 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.234624 | 439 | 21 | 59 | 20.904762 | 0.845238 | 0.261959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
258decb0c1e9cf65d94f56b15cdd403af886bde3 | 2,352 | py | Python | tests/test_vmtkScripts/test_vmtkimagecompose.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | tests/test_vmtkScripts/test_vmtkimagecompose.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | tests/test_vmtkScripts/test_vmtkimagecompose.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | 1 | 2019-06-18T23:41:11.000Z | 2019-06-18T23:41:11.000Z | ## Program: VMTK
## Language: Python
## Date: January 10, 2018
## Version: 1.4
## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved.
## See LICENSE file for details.
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNES... | 30.545455 | 75 | 0.730867 | 279 | 2,352 | 5.867384 | 0.293907 | 0.091631 | 0.109957 | 0.06964 | 0.722663 | 0.705559 | 0.646915 | 0.610263 | 0.491753 | 0.491753 | 0 | 0.011464 | 0.184099 | 2,352 | 76 | 76 | 30.947368 | 0.841584 | 0.204082 | 0 | 0.666667 | 0 | 0 | 0.096373 | 0.08013 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.044444 | 0 | 0.155556 | 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 |
2591abe54830abeb785cdfae9759c67cdc9bcddd | 411 | py | Python | Semestre_2018_2/Taller/Python/punto4_3.py | SherylA/Archivo_Fundamentos | 4b40cca6d808efdb9c96fa62dabb453931965882 | [
"CC-BY-4.0"
] | null | null | null | Semestre_2018_2/Taller/Python/punto4_3.py | SherylA/Archivo_Fundamentos | 4b40cca6d808efdb9c96fa62dabb453931965882 | [
"CC-BY-4.0"
] | null | null | null | Semestre_2018_2/Taller/Python/punto4_3.py | SherylA/Archivo_Fundamentos | 4b40cca6d808efdb9c96fa62dabb453931965882 | [
"CC-BY-4.0"
] | null | null | null | import math
N=int(input("Ingrese el grado del polinomio 1: "))
M=int(input("Ingrese el grado del polinomio 2: "))
GradRes=max(N+1,M+1)
coef1=[0.0]*GradRes
coef2=[0.0]*GradRes
for i in range(0,N+1):
coef1[i]=float(input("Ingrese el coef de x^%d "%i))
for i in range(0,M+1):
coef2[i]=float(input("Ingrese el coef de x... | 24.176471 | 52 | 0.656934 | 87 | 411 | 3.103448 | 0.367816 | 0.177778 | 0.207407 | 0.122222 | 0.6 | 0.555556 | 0.555556 | 0.303704 | 0.303704 | 0.303704 | 0 | 0.053371 | 0.13382 | 411 | 16 | 53 | 25.6875 | 0.705056 | 0 | 0 | 0 | 0 | 0 | 0.328467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 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 |
25a0db1506c441fed9d35ff37deb545c21db78fa | 1,207 | py | Python | solutions/python/2018/deceptiveTransmission.py | lucifer1198/Codesignal | 07d6d6457b8b3a9f1c51118b0e8e44cce66ee039 | [
"MIT"
] | 2 | 2020-12-21T22:09:26.000Z | 2021-01-01T15:40:01.000Z | solutions/python/2018/deceptiveTransmission.py | nsu1210/Codesignal | 07d6d6457b8b3a9f1c51118b0e8e44cce66ee039 | [
"MIT"
] | null | null | null | solutions/python/2018/deceptiveTransmission.py | nsu1210/Codesignal | 07d6d6457b8b3a9f1c51118b0e8e44cce66ee039 | [
"MIT"
] | 1 | 2021-01-28T18:15:02.000Z | 2021-01-28T18:15:02.000Z | """
Due to recent advances in our cryptographic technology (i.e. the invention of the state-of-the-art Ceasar Cipher decoder),
the opposition has been on the losing side. As their attack plans were leaked and used against them, they suffered heavy losses.
Many soldiers from the enemy side defected and the war seemed li... | 46.423077 | 212 | 0.669428 | 328 | 1,207 | 2.716463 | 0.429878 | 0.017957 | 0.016835 | 0.017957 | 0.039282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011329 | 0.195526 | 1,207 | 25 | 213 | 48.28 | 0.819773 | 0.857498 | 0 | 0 | 0 | 0 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25aae8c6051dca30d04121c8342570f08fc7ace4 | 10,102 | py | Python | collectlinks/collectlinksFire.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | collectlinks/collectlinksFire.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | collectlinks/collectlinksFire.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | # Kendall Jackson MIT License
# GetScraped Private v1
#parse_listing from https://github.com/scrapehero/yellowpages-scraper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
from lxml import html
import unicodecsv as csv
#import argparse
final_list = []
state = 'AL'
categories = ['Fire Department... | 45.300448 | 5,714 | 0.640269 | 1,074 | 10,102 | 5.970205 | 0.681564 | 0.018715 | 0.007954 | 0.007486 | 0.017155 | 0.009357 | 0 | 0 | 0 | 0 | 0 | 0.006133 | 0.160661 | 10,102 | 222 | 5,715 | 45.504505 | 0.750088 | 0.037121 | 0 | 0.126582 | 0 | 0.050633 | 0.542527 | 0.045933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0 | 0.037975 | 0 | 0.139241 | 0.101266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25b289f3b0f3a4c1fc77adeeefa054cbaf37006d | 574 | py | Python | count-primes.py | mengzhuo/my-leetcode-solution | 82d112529a6573c2c22e0210b5be16219d027890 | [
"MIT"
] | null | null | null | count-primes.py | mengzhuo/my-leetcode-solution | 82d112529a6573c2c22e0210b5be16219d027890 | [
"MIT"
] | null | null | null | count-primes.py | mengzhuo/my-leetcode-solution | 82d112529a6573c2c22e0210b5be16219d027890 | [
"MIT"
] | null | null | null | """
https://leetcode.com/problems/count-primes/
"""
class Solution:
# @param {integer} n
# @return {integer}
def countPrimes(self, n):
if n <=2:
return 0
if n == 3:
return 1
count = n-2
d = [True for i in xrange(n)]
for i in... | 19.793103 | 43 | 0.358885 | 70 | 574 | 2.942857 | 0.442857 | 0.038835 | 0.043689 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043636 | 0.520906 | 574 | 28 | 44 | 20.5 | 0.705455 | 0.141115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.294118 | 0 | 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 |
25b4090ecb8f001691da7662159800cb444b109d | 271 | py | Python | ocrapi/common.py | pengyang486868/PY-read-Document | 8d1d145cc6c384a64b3a28781dbcce1733b77513 | [
"Apache-2.0"
] | null | null | null | ocrapi/common.py | pengyang486868/PY-read-Document | 8d1d145cc6c384a64b3a28781dbcce1733b77513 | [
"Apache-2.0"
] | 4 | 2021-03-31T19:32:41.000Z | 2022-01-13T02:13:05.000Z | ocrapi/common.py | pengyang486868/PY-read-Document | 8d1d145cc6c384a64b3a28781dbcce1733b77513 | [
"Apache-2.0"
] | null | null | null | from aip import AipOcr
config = {
'appId': '16804814',
'apiKey': 'mVCRu8AmAcTdFSGaDtoRki53',
'secretKey': '48BFM2ZXRf8yF7cFIP5nXLNwQKYoiOHz'
}
client = AipOcr(**config)
def get_file_content(file):
with open(file, 'rb') as fp:
return fp.read()
| 18.066667 | 51 | 0.664207 | 28 | 271 | 6.357143 | 0.821429 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078341 | 0.199262 | 271 | 14 | 52 | 19.357143 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.317343 | 0.206642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
25b488a1782ec0ea9c788a81f11d9b3bfc2f7395 | 2,636 | py | Python | admin/getActiveDirectory.py | KleeGroup-BaseCamp/klee-office | 6683b5dfcb603de5ba18526adcb243d3e1fa31f6 | [
"MIT"
] | null | null | null | admin/getActiveDirectory.py | KleeGroup-BaseCamp/klee-office | 6683b5dfcb603de5ba18526adcb243d3e1fa31f6 | [
"MIT"
] | null | null | null | admin/getActiveDirectory.py | KleeGroup-BaseCamp/klee-office | 6683b5dfcb603de5ba18526adcb243d3e1fa31f6 | [
"MIT"
] | null | null | null | #!/home/dev/anaconda2/bin/python
# -*- coding: utf-8 -*-
import json # jsonfy search result
import sys # sys.exit()
import ldap3 as ldap # ldap connection request
from ldap3 import Server, Connection, NTLM, ALL, MODIFY_ADD, MODIFY_REPLACE
######################################################
with open('../config/... | 29.617978 | 168 | 0.659332 | 342 | 2,636 | 4.98538 | 0.277778 | 0.028152 | 0.064516 | 0.070381 | 0.466862 | 0.390616 | 0.283871 | 0.283871 | 0.242815 | 0.242815 | 0 | 0.006593 | 0.13695 | 2,636 | 88 | 169 | 29.954545 | 0.742857 | 0.041351 | 0 | 0.42029 | 0 | 0 | 0.166321 | 0.068022 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.057971 | null | null | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25b9ae3b7893a600166f475cfb940b148599596a | 7,362 | py | Python | codegen/subexpr_elim.py | gballard/fast-matmul | 7fc50cdaa48e3844cef4e05f48cce7cf73b43756 | [
"BSD-2-Clause"
] | 23 | 2015-05-28T06:51:30.000Z | 2021-10-11T07:40:05.000Z | codegen/subexpr_elim.py | gballard/fast-matmul | 7fc50cdaa48e3844cef4e05f48cce7cf73b43756 | [
"BSD-2-Clause"
] | null | null | null | codegen/subexpr_elim.py | gballard/fast-matmul | 7fc50cdaa48e3844cef4e05f48cce7cf73b43756 | [
"BSD-2-Clause"
] | 18 | 2015-07-25T16:49:35.000Z | 2021-11-18T15:59:48.000Z | # Copyright (c) 2014-2015, Sandia Corporation
# All rights reserved.
#
# This file is part of fast-matmul and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause.
import convert
import sys
import gen
def all... | 33.770642 | 108 | 0.600788 | 1,051 | 7,362 | 4.014272 | 0.205519 | 0.053093 | 0.022754 | 0.01991 | 0.161176 | 0.10666 | 0.045508 | 0.045508 | 0.015644 | 0 | 0 | 0.027084 | 0.287829 | 7,362 | 217 | 109 | 33.926267 | 0.777608 | 0.087069 | 0 | 0.125874 | 0 | 0 | 0.041143 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0 | null | null | 0 | 0.020979 | null | null | 0.041958 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25b9f0bc0510c9dc9f7b70ae2fa7fc05b17d7bc7 | 591 | py | Python | scripts/csv_to_paper_plots/4wayROC/preprocess.py | iqbal-lab-org/paper_pandora2020_analyses | 952e348107c3fec60482bb30a91620ee2ce32cb5 | [
"MIT"
] | null | null | null | scripts/csv_to_paper_plots/4wayROC/preprocess.py | iqbal-lab-org/paper_pandora2020_analyses | 952e348107c3fec60482bb30a91620ee2ce32cb5 | [
"MIT"
] | 1 | 2020-11-27T03:03:40.000Z | 2021-02-14T20:25:38.000Z | scripts/csv_to_paper_plots/4wayROC/preprocess.py | iqbal-lab-org/paper_pandora2020_analyses | 952e348107c3fec60482bb30a91620ee2ce32cb5 | [
"MIT"
] | 2 | 2020-11-10T21:40:54.000Z | 2020-11-10T21:47:17.000Z | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import os
# In[2]:
# read df
import sys
four_way_df = pd.read_csv("../pandora1_paper_analysis_output_4_way/ROC_data_old_and_new_basecall.tsv", sep="\t")
# In[3]:
# add new columns
four_way_df["methylation_aware"] = four_way_df["tool"].apply(l... | 18.46875 | 133 | 0.725888 | 105 | 591 | 3.761905 | 0.52381 | 0.106329 | 0.136709 | 0.065823 | 0.288608 | 0.288608 | 0.167089 | 0.167089 | 0.167089 | 0 | 0 | 0.013462 | 0.120135 | 591 | 31 | 134 | 19.064516 | 0.746154 | 0.160745 | 0 | 0 | 0 | 0 | 0.398357 | 0.232033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
25bfacf0d36756450056e16ab8e0a1c896b5d80b | 1,199 | py | Python | isobmff/sinf.py | kentoku24/isobmff | 6877505a75915caf440bbb80b6024ba6bf9f3baa | [
"MIT"
] | 6 | 2017-08-31T01:55:37.000Z | 2018-12-26T03:03:24.000Z | isobmff/sinf.py | kentoku24/isobmff | 6877505a75915caf440bbb80b6024ba6bf9f3baa | [
"MIT"
] | 4 | 2017-08-29T03:47:16.000Z | 2017-09-05T09:00:17.000Z | isobmff/sinf.py | m-hiki/isbmff | 0724b9892884ae35bdd0796a97a9506098c4cd25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .box import Box
from .box import FullBox
from .box import Quantity
from .box import read_int
from .box import read_string
class ProtectionSchemeInfoBox(Box):
box_type = 'sinf'
is_mandatory = False
quantity = Quantity.ONE_OR_MORE
class OriginalFormatBox(Box):
... | 25.510638 | 48 | 0.63553 | 151 | 1,199 | 4.748344 | 0.304636 | 0.083682 | 0.090656 | 0.100418 | 0.327755 | 0.283124 | 0.218968 | 0.218968 | 0.108787 | 0.108787 | 0 | 0.006897 | 0.274395 | 1,199 | 46 | 49 | 26.065217 | 0.817241 | 0.017515 | 0 | 0.305556 | 0 | 0 | 0.014159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0 | 0.694444 | 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 |
25c524c701418882813e95ceeae5ad25f33d17e6 | 7,914 | py | Python | Model Codes/RetrieveEdit/github_eval.py | lvyiwei1/StylePTB | 42c80a07b999501d741f0c5e71481e627b758e3c | [
"CC-BY-4.0"
] | 36 | 2021-04-13T06:56:44.000Z | 2022-03-23T16:35:09.000Z | Model Codes/RetrieveEdit/github_eval.py | lvyiwei1/StylePTB | 42c80a07b999501d741f0c5e71481e627b758e3c | [
"CC-BY-4.0"
] | 3 | 2021-04-17T08:54:07.000Z | 2022-03-12T21:35:50.000Z | Model Codes/RetrieveEdit/github_eval.py | lvyiwei1/StylePTB | 42c80a07b999501d741f0c5e71481e627b758e3c | [
"CC-BY-4.0"
] | 3 | 2021-05-17T11:24:25.000Z | 2022-03-10T07:52:40.000Z | # -*- coding: utf-8 -*-
import paths
import os
#os.environ['COPY_EDIT_DATA'] = paths.data_dir
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import sys
def set_output_encoding(encoding='utf-8'):
import sys
import codecs
'''When piping to the terminal, python knows the encoding needed, and
sets it autom... | 35.173333 | 135 | 0.686505 | 1,267 | 7,914 | 4.049724 | 0.226519 | 0.01871 | 0.021828 | 0.017151 | 0.302865 | 0.193335 | 0.155135 | 0.096278 | 0.083415 | 0.05574 | 0 | 0.013735 | 0.190422 | 7,914 | 224 | 136 | 35.330357 | 0.787108 | 0.064064 | 0 | 0.141104 | 0 | 0.018405 | 0.036241 | 0.005407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116564 | null | null | 0.06135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25c5e3da929ac01e689ca11081dca8652ed1eb25 | 2,935 | py | Python | ndj_pipeline/data_checks.py | ndjenkins85/ndj_cookie | b5db2ecb67cd80febf6a3a746e341c57d821323b | [
"MIT"
] | 1 | 2021-08-29T20:42:14.000Z | 2021-08-29T20:42:14.000Z | ndj_pipeline/data_checks.py | ndjenkins85/ndj_cookie | b5db2ecb67cd80febf6a3a746e341c57d821323b | [
"MIT"
] | 32 | 2021-08-28T00:33:53.000Z | 2021-11-26T22:48:32.000Z | ndj_pipeline/data_checks.py | ndjenkins85/ndj_cookie | b5db2ecb67cd80febf6a3a746e341c57d821323b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright © 2021 by Nick Jenkins. All rights reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the right... | 39.662162 | 97 | 0.739693 | 439 | 2,935 | 4.911162 | 0.507973 | 0.040816 | 0.012059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.18569 | 2,935 | 73 | 98 | 40.205479 | 0.89749 | 0.725383 | 0 | 0 | 0 | 0 | 0.14531 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0.055556 | 0.277778 | 0 | 0.388889 | 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 |
25cae9b9b09531c4ee7d65236631c62885c9dd40 | 1,207 | py | Python | src/multi2convai/pipelines/base.py | inovex/multi2convai | 5e151c5cf1504f0453dbd0d3d00bb68e83c82657 | [
"MIT"
] | 7 | 2022-03-03T07:54:28.000Z | 2022-03-15T08:03:26.000Z | src/multi2convai/pipelines/base.py | chiachienhung/multi2convai | e01b42b45535711621a8ce5066591d5fdb38dc23 | [
"MIT"
] | null | null | null | src/multi2convai/pipelines/base.py | chiachienhung/multi2convai | e01b42b45535711621a8ce5066591d5fdb38dc23 | [
"MIT"
] | 1 | 2022-03-01T14:34:01.000Z | 2022-03-01T14:34:01.000Z | from abc import ABC, abstractmethod
from typing import Any
class BasePipelineConfig:
"""Base config."""
def __init__(self, *args, **kwargs):
pass
class BasePipeline(ABC):
"""Abstract base class for end-to-end pipelines.
Args:
config (:class:`~BasePipelineConfig`): pipeline configur... | 28.069767 | 117 | 0.666114 | 131 | 1,207 | 6.068702 | 0.587786 | 0.085535 | 0.143396 | 0.154717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243579 | 1,207 | 42 | 118 | 28.738095 | 0.870756 | 0.405965 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.05 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25cb23487600c76d698e37af1ab5c5562752a81e | 5,626 | py | Python | maml/compressed_sensing/compressed_sensing.py | epyzerknapp/maml-bsd | eb0db04e7276e2f03d6033727684ba552634ed8b | [
"BSD-3-Clause"
] | 2 | 2019-03-05T09:13:07.000Z | 2019-12-24T14:03:54.000Z | maml/compressed_sensing/compressed_sensing.py | epyzerknapp/maml-bsd | eb0db04e7276e2f03d6033727684ba552634ed8b | [
"BSD-3-Clause"
] | null | null | null | maml/compressed_sensing/compressed_sensing.py | epyzerknapp/maml-bsd | eb0db04e7276e2f03d6033727684ba552634ed8b | [
"BSD-3-Clause"
] | 2 | 2017-01-27T05:19:39.000Z | 2019-12-24T14:03:58.000Z | __author__ = 'epyzerknapp'
import numpy as np
import cPickle as pkl
from maml.compressed_sensing import twist_solver as twist
from copy import deepcopy
from maml.distances.tanimoto import tanimoto_similarity
"""
With compressed sensing we are looking to locate the maximum compression which we can use to reduce the dim... | 38.534247 | 119 | 0.684145 | 778 | 5,626 | 4.830334 | 0.299486 | 0.026344 | 0.007451 | 0.011176 | 0.154071 | 0.141831 | 0.074774 | 0.044705 | 0.027142 | 0 | 0 | 0.016453 | 0.21134 | 5,626 | 145 | 120 | 38.8 | 0.830516 | 0 | 0 | 0.064103 | 0 | 0 | 0.102634 | 0.030578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25cfa7026ea4eb2ed404e0cb97e05279e352de6c | 4,389 | py | Python | analysis_vis/scripts/EpistasisCanSeqs.py | arubenstein/deep_seq | 96c2bc131dc3bd3afb05486bfbc6f7297c57e604 | [
"BSD-2-Clause"
] | null | null | null | analysis_vis/scripts/EpistasisCanSeqs.py | arubenstein/deep_seq | 96c2bc131dc3bd3afb05486bfbc6f7297c57e604 | [
"BSD-2-Clause"
] | null | null | null | analysis_vis/scripts/EpistasisCanSeqs.py | arubenstein/deep_seq | 96c2bc131dc3bd3afb05486bfbc6f7297c57e604 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""Create edges and nodes from a list of sequences that are a given hamming distance apart"""
import itertools
import sys
import operator
import numpy
from numpy import linalg as LA
import argparse
from general_seq import conv
from general_seq import seq_IO
def find_intermediates(starting_seq, e... | 36.882353 | 160 | 0.62725 | 606 | 4,389 | 4.283828 | 0.240924 | 0.035054 | 0.040447 | 0.030817 | 0.186055 | 0.151002 | 0.072419 | 0.048536 | 0.048536 | 0.048536 | 0 | 0.017231 | 0.259512 | 4,389 | 118 | 161 | 37.194915 | 0.781538 | 0.029392 | 0 | 0.131868 | 0 | 0 | 0.10257 | 0.010089 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087912 | null | null | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25d426ffaf48bc14b5825b63a3bd03be6af9447c | 800 | py | Python | apps/mh2/mh2mhx.py | teddydragoone/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | 2 | 2016-11-23T16:37:15.000Z | 2018-02-13T04:18:23.000Z | apps/mh2/mh2mhx.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | apps/mh2/mh2mhx.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
**Project Name:** MakeHuman
**Product Home Page:** http://www.makehuman.org/
**Code Home Page:** http://code.google.com/p/makehuman/
**Authors:** Thomas Larsson
**Copyright(c):** MakeHuman Team 2001-2009
**Licensing:** GPL... | 21.052632 | 92 | 0.63125 | 97 | 800 | 5.185567 | 0.628866 | 0.053678 | 0.047714 | 0.071571 | 0.139165 | 0.139165 | 0 | 0 | 0 | 0 | 0 | 0.015848 | 0.21125 | 800 | 37 | 93 | 21.621622 | 0.7813 | 0.6225 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
25d52d516ff425a024c834f225a3f5c81d1b9990 | 610 | py | Python | src/main.py | jk96491/C-COMA | 4f16d15bdc2f2f320c4b85e90765ba77991518f7 | [
"Apache-2.0"
] | 10 | 2020-11-18T06:03:45.000Z | 2021-12-29T12:01:00.000Z | src/main.py | jk96491/C-COMA | 4f16d15bdc2f2f320c4b85e90765ba77991518f7 | [
"Apache-2.0"
] | 1 | 2020-11-22T22:31:54.000Z | 2020-11-23T00:31:55.000Z | src/main.py | jk96491/C-COMA | 4f16d15bdc2f2f320c4b85e90765ba77991518f7 | [
"Apache-2.0"
] | 1 | 2021-07-31T04:00:53.000Z | 2021-07-31T04:00:53.000Z | import numpy as np
import torch as th
from utils.logging import get_logger
import random
from run import run
import config_util as cu
'''
algorithm 설정 가이드(config/algs 경로의 파일이름 그대로)
만일 QMIX 를 실행하고 싶다면 -> 'QMIX'
만일 C-COMA 를 실행하고 싶다면 -> 'C-COMA'
'''
if __name__ == '__main__':
logger = get_logger()
algorithm = 'C... | 22.592593 | 63 | 0.704918 | 94 | 610 | 4.351064 | 0.468085 | 0.122249 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012072 | 0.185246 | 610 | 27 | 64 | 22.592593 | 0.810865 | 0 | 0 | 0 | 0 | 0 | 0.092184 | 0 | 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 |
25d53f1a04b65ba92b5402771329902e68d3c4eb | 1,674 | py | Python | decrypt.py | cjntifo/pentest-tools | 76d43c6f0c38cfce77ffc7b35429e19e9a7df8aa | [
"MIT"
] | null | null | null | decrypt.py | cjntifo/pentest-tools | 76d43c6f0c38cfce77ffc7b35429e19e9a7df8aa | [
"MIT"
] | null | null | null | decrypt.py | cjntifo/pentest-tools | 76d43c6f0c38cfce77ffc7b35429e19e9a7df8aa | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Gpprefdecrypt - Decrypt the password of local users added via Windows 2008 Group Policy Preferences.
#
# This tool decrypts the cpassword attribute value embedded in the Groups.xml file stored in the domain controller's Sysvol share.
#
# Updated by Carl J. Ntifo
# Edited to run with Pyt... | 30.436364 | 132 | 0.651135 | 248 | 1,674 | 4.375 | 0.580645 | 0.082949 | 0.116129 | 0.143779 | 0.081106 | 0.081106 | 0.081106 | 0.04424 | 0.04424 | 0.04424 | 0 | 0.127644 | 0.20908 | 1,674 | 55 | 133 | 30.436364 | 0.691843 | 0.495818 | 0 | 0 | 0 | 0 | 0.188335 | 0.077764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.363636 | 0.181818 | 0 | 0.272727 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
25d5584a09a4bedef2bb2c862dfdd964e62eec69 | 261 | py | Python | test/basic/conf.py | fpoirotte/sphinxcontrib-paradoxy | 98a70f51ba1252cc725ead6883886fb61c56a2c7 | [
"BSD-2-Clause"
] | 1 | 2019-11-12T16:30:04.000Z | 2019-11-12T16:30:04.000Z | test/basic/conf.py | fpoirotte/sphinxcontrib-paradoxy | 98a70f51ba1252cc725ead6883886fb61c56a2c7 | [
"BSD-2-Clause"
] | null | null | null | test/basic/conf.py | fpoirotte/sphinxcontrib-paradoxy | 98a70f51ba1252cc725ead6883886fb61c56a2c7 | [
"BSD-2-Clause"
] | null | null | null | from os import path
extensions = ['sphinxcontrib.paradoxy']
exclude_patterns = ['_build']
version = '1.2.3'
paradoxy = {
'example': (
'http://example.com/doc/',
path.join(path.dirname(path.abspath('.')), 'doxygen', 'Example.xml')
),
}
| 20.076923 | 76 | 0.605364 | 29 | 261 | 5.37931 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.191571 | 261 | 12 | 77 | 21.75 | 0.725118 | 0 | 0 | 0 | 0 | 0 | 0.314176 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
25d5888447ebf40c92ea87cc85dc061cc1f733f7 | 3,991 | py | Python | scripts/mk_symbols_file.py | DavidLegg/StockSim | b5da697dc5fa0c4126baf79d9a3285762937a2d4 | [
"MIT"
] | 1 | 2020-07-13T09:03:36.000Z | 2020-07-13T09:03:36.000Z | scripts/mk_symbols_file.py | DavidLegg/StockSim | b5da697dc5fa0c4126baf79d9a3285762937a2d4 | [
"MIT"
] | null | null | null | scripts/mk_symbols_file.py | DavidLegg/StockSim | b5da697dc5fa0c4126baf79d9a3285762937a2d4 | [
"MIT"
] | null | null | null | from glob import glob
import os, sys, re
USAGE = """Usage: mk_symbols_file [PATTERN]...
Make resources/symbols.txt, using the files matching given PATTERN(s).
Each PATTERN must contain exactly one "*" wildcard,
for the location in the path of the symbol.
Earlier patterns have precedence over later ones.
Exampl... | 36.614679 | 124 | 0.533701 | 463 | 3,991 | 4.524838 | 0.341253 | 0.01432 | 0.005728 | 0.020048 | 0.061098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019569 | 0.35981 | 3,991 | 108 | 125 | 36.953704 | 0.800391 | 0.036833 | 0 | 0.239583 | 0 | 0 | 0.19375 | 0.025521 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.020833 | false | 0.052083 | 0.020833 | 0 | 0.09375 | 0.114583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.