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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21b74b7349b10bb0b3587f824e5c158c5c335fe8 | 42,398 | py | Python | evaluation.py | jalayrac/weakactionloc | 53a50fa6128bd873190ad783482a884dfe8a453f | [
"MIT"
] | 21 | 2018-12-04T15:50:04.000Z | 2021-05-11T11:53:01.000Z | evaluation.py | jalayrac/weakactionloc | 53a50fa6128bd873190ad783482a884dfe8a453f | [
"MIT"
] | 1 | 2019-02-11T08:32:26.000Z | 2019-02-11T08:32:26.000Z | evaluation.py | jalayrac/weakactionloc | 53a50fa6128bd873190ad783482a884dfe8a453f | [
"MIT"
] | 6 | 2018-12-19T17:19:13.000Z | 2021-05-15T17:56:35.000Z | import track_utils as utils
import pickle
import re
import os
import scipy.signal as signal
import multiprocessing
import time
import numpy as np
import copy
import ipdb
import collections
import glob
global global_tracks
def smooth_padding(scores, smooth_window, smoothing):
# define the window size in which we ... | 35.748735 | 121 | 0.505944 | 5,158 | 42,398 | 3.980419 | 0.112447 | 0.009011 | 0.010521 | 0.01018 | 0.230919 | 0.169354 | 0.12542 | 0.104866 | 0.092007 | 0.07306 | 0 | 0.012345 | 0.392448 | 42,398 | 1,185 | 122 | 35.778903 | 0.784697 | 0.093118 | 0 | 0.200644 | 0 | 0.002146 | 0.059312 | 0.004311 | 0 | 0 | 0 | 0 | 0.043991 | 0 | null | null | 0 | 0.012876 | null | null | 0.030043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21ba7a34879bcc399cf2ec4a0383e78641097c6b | 1,214 | py | Python | power4.py | valentinp72/PuissanceQuatre_bot | a9c96e38efdfde2e79d75d92546e8afb6d8076ef | [
"MIT"
] | null | null | null | power4.py | valentinp72/PuissanceQuatre_bot | a9c96e38efdfde2e79d75d92546e8afb6d8076ef | [
"MIT"
] | null | null | null | power4.py | valentinp72/PuissanceQuatre_bot | a9c96e38efdfde2e79d75d92546e8afb6d8076ef | [
"MIT"
] | null | null | null | '''
power4.py
Valentin Pelloin - 14/10/2016
MIT License
Version 0.1
====
This is the main file for the twitter bot power4
'''
# -------
# Imports
import tweepy
import sys
import os
# Import config file
from config import *
from msgLogger import *
from gridFunctions import *
# ---------
# ... | 19.269841 | 109 | 0.665568 | 167 | 1,214 | 4.760479 | 0.568862 | 0.020126 | 0.015094 | 0.027673 | 0.030189 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020182 | 0.18369 | 1,214 | 62 | 110 | 19.580645 | 0.782038 | 0.12603 | 0 | 0 | 0 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21c33d77fc429134f2079417b2b72b79ea86cfa4 | 306 | py | Python | RecoTBCalo/EcalTBTDCReconstructor/python/Ecal2006TBH2TDCRanges_v1_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoTBCalo/EcalTBTDCReconstructor/python/Ecal2006TBH2TDCRanges_v1_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoTBCalo/EcalTBTDCReconstructor/python/Ecal2006TBH2TDCRanges_v1_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
tdcZeros = cms.VPSet(cms.PSet(
endRun = cms.int32(31031),
tdcZero = cms.double(1050.5),
startRun = cms.int32(27540)
),
cms.PSet(
endRun = cms.int32(999999),
tdcZero = cms.double(1058.5),
startRun = cms.int32(31032)
))
| 21.857143 | 40 | 0.614379 | 39 | 306 | 4.820513 | 0.538462 | 0.170213 | 0.138298 | 0.170213 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 0.245098 | 306 | 13 | 41 | 23.538462 | 0.645022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
21cb4dfd4b71eb01115b4184e4ef57d738c6cec6 | 1,664 | py | Python | lib/surface/firebase/test/ip_blocks/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/firebase/test/ip_blocks/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/firebase/test/ip_blocks/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 31.396226 | 80 | 0.694111 | 227 | 1,664 | 5.022026 | 0.590308 | 0.052632 | 0.042105 | 0.02807 | 0.049123 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0.00702 | 0.229567 | 1,664 | 52 | 81 | 32 | 0.882215 | 0.545673 | 0 | 0 | 0 | 0 | 0.046341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.285714 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
21d4a184eb982ef6ed7553fa9efa709ea184b931 | 9,030 | py | Python | invade_keepass.py | cgio/invade_keepass | 05b1b7af2185d2564b4b3bb785e2f71255637566 | [
"MIT"
] | null | null | null | invade_keepass.py | cgio/invade_keepass | 05b1b7af2185d2564b4b3bb785e2f71255637566 | [
"MIT"
] | null | null | null | invade_keepass.py | cgio/invade_keepass | 05b1b7af2185d2564b4b3bb785e2f71255637566 | [
"MIT"
] | null | null | null | """invade_keepass main module.
Warning: your passwords and other sensitive data may be displayed on the screen
in plaintext.
This is a proof of concept. New instances of the KeePass process are not
sought. Only the currently running KeePass process will be targeted.
"""
import sys
import time
import string
import in... | 38.755365 | 79 | 0.695681 | 1,283 | 9,030 | 4.652377 | 0.238504 | 0.062657 | 0.057296 | 0.042386 | 0.344781 | 0.239236 | 0.139889 | 0.114927 | 0.07539 | 0.043223 | 0 | 0.046755 | 0.23732 | 9,030 | 232 | 80 | 38.922414 | 0.819951 | 0.249391 | 0 | 0.217105 | 0 | 0.032895 | 0.24038 | 0.04457 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.032895 | 0 | 0.032895 | 0.072368 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21e358ecfec934508a8e5efb3ef4b744cefecb53 | 5,967 | py | Python | cvs2svn/contrib/show_db.py | TimothyEBaldwin/RO_cvs2git2 | 43cdd43204809447b24cee966defc9a1daf3708c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvs2svn/contrib/show_db.py | TimothyEBaldwin/RO_cvs2git2 | 43cdd43204809447b24cee966defc9a1daf3708c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvs2svn/contrib/show_db.py | TimothyEBaldwin/RO_cvs2git2 | 43cdd43204809447b24cee966defc9a1daf3708c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import anydbm
import marshal
import sys
import os
import getopt
import cPickle as pickle
from cStringIO import StringIO
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from cvs2svn_lib import config
from cvs2svn_lib.context import Ctx
from cvs2svn_lib.common impo... | 28.279621 | 79 | 0.647897 | 858 | 5,967 | 4.287879 | 0.230769 | 0.029899 | 0.038054 | 0.016309 | 0.26094 | 0.189454 | 0.143789 | 0.124762 | 0.106823 | 0.073118 | 0 | 0.010542 | 0.221049 | 5,967 | 210 | 80 | 28.414286 | 0.780981 | 0.003352 | 0 | 0.186441 | 0 | 0 | 0.158844 | 0.003912 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00565 | 0.096045 | null | null | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21f3831a45f74c32522ea25af6316e61881a5e8d | 1,738 | py | Python | tests/core/test_sdk.py | alteia-ai/alteia-python-sdk | 27ec7458334334ed6a1edae52cb25d5ce8734177 | [
"MIT"
] | 11 | 2020-12-22T14:39:21.000Z | 2022-02-18T16:34:34.000Z | tests/core/test_sdk.py | alteia-ai/alteia-python-sdk | 27ec7458334334ed6a1edae52cb25d5ce8734177 | [
"MIT"
] | 1 | 2021-08-05T14:21:12.000Z | 2021-08-09T13:22:55.000Z | tests/core/test_sdk.py | alteia-ai/alteia-python-sdk | 27ec7458334334ed6a1edae52cb25d5ce8734177 | [
"MIT"
] | null | null | null | import json
from unittest import mock
import alteia
from tests.core.resource_test_base import ResourcesTestBase
DEFAULT_MOCK_CONTENT = {'url': 'some url',
'connection': {
'max_retries': 1,
'disable_ssl_certificate': True}}
class TestSDK... | 36.978723 | 87 | 0.654776 | 197 | 1,738 | 5.583756 | 0.345178 | 0.065455 | 0.065455 | 0.069091 | 0.413636 | 0.413636 | 0.346364 | 0.346364 | 0.346364 | 0.310909 | 0 | 0.000744 | 0.226697 | 1,738 | 46 | 88 | 37.782609 | 0.817708 | 0 | 0 | 0.243243 | 0 | 0 | 0.171461 | 0.104143 | 0 | 0 | 0 | 0 | 0.27027 | 1 | 0.135135 | false | 0.054054 | 0.108108 | 0 | 0.27027 | 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 |
21f69ef18738fc87802b455acc350c0d198f3e22 | 1,462 | py | Python | cli/commands/cmd_api.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | cli/commands/cmd_api.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | cli/commands/cmd_api.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | import os
from subprocess import call
import click
@click.group()
def cli():
"""
Api operations.
:return:
"""
pass
@cli.command(name = "make:api")
@click.argument("api_name", required = True)
@click.option("--model", is_flag = True)
def make_api(api_name, model):
"""
Create new api reso... | 28.666667 | 91 | 0.567031 | 194 | 1,462 | 4.170103 | 0.371134 | 0.112485 | 0.168109 | 0.074166 | 0.190358 | 0.190358 | 0.098888 | 0 | 0 | 0 | 0 | 0.017241 | 0.28591 | 1,462 | 50 | 92 | 29.24 | 0.757663 | 0.114911 | 0 | 0.068966 | 0 | 0 | 0.438103 | 0.205788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.275862 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
21fb100a8e0eee91760a364c5b6cf949a4ba12ad | 754 | py | Python | fastapi/model/base.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 33 | 2017-08-14T09:39:12.000Z | 2021-09-11T14:54:28.000Z | fastapi/model/base.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | null | null | null | fastapi/model/base.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 9 | 2017-12-05T11:54:01.000Z | 2020-11-10T08:03:35.000Z | from datetime import datetime
import flask
from fastapi.fastapi import db, ms
class BaseModel(db.Model):
__abstract__ = True
created_at = db.Column(db.DateTime, default=datetime.now)
updated_at = db.Column(db.DateTime, default=datetime.now)
def save(self):
db.session.add(self)
db.s... | 25.133333 | 64 | 0.607427 | 96 | 754 | 4.708333 | 0.46875 | 0.053097 | 0.115044 | 0.053097 | 0.168142 | 0.168142 | 0.168142 | 0.168142 | 0 | 0 | 0 | 0.003527 | 0.248011 | 754 | 30 | 65 | 25.133333 | 0.793651 | 0 | 0 | 0.095238 | 0 | 0 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
21fe1e053123be5a2c0df370615bb3a36a488da5 | 536 | py | Python | councilmatic_core/migrations/0043_membership_extras.py | datamade/django-councilmatic | 5b074f376667766e4b6dbf093871d294bb35fc51 | [
"MIT"
] | 26 | 2015-12-05T03:36:49.000Z | 2022-03-05T12:17:59.000Z | councilmatic_core/migrations/0043_membership_extras.py | datamade/django-councilmatic | 5b074f376667766e4b6dbf093871d294bb35fc51 | [
"MIT"
] | 181 | 2015-10-14T18:01:19.000Z | 2021-06-30T13:52:47.000Z | councilmatic_core/migrations/0043_membership_extras.py | datamade/django-councilmatic | 5b074f376667766e4b6dbf093871d294bb35fc51 | [
"MIT"
] | 18 | 2015-10-22T09:01:24.000Z | 2020-10-22T19:33:09.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-10-05 19:37
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('councilmatic_core', '0042_eventagendaitem_plain_text'),
... | 24.363636 | 79 | 0.662313 | 59 | 536 | 5.847458 | 0.762712 | 0.075362 | 0.121739 | 0.156522 | 0.185507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050602 | 0.225746 | 536 | 21 | 80 | 25.52381 | 0.780723 | 0.126866 | 0 | 0 | 1 | 0 | 0.137634 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d0139a795f21885d6fdff4b81ba9a4e06101feb | 709 | py | Python | app/db/mongodb_utils.py | vattikondahemanth/rulemanager | ff38aa5f5fad83bb4f9779c602a370986a258f62 | [
"MIT"
] | null | null | null | app/db/mongodb_utils.py | vattikondahemanth/rulemanager | ff38aa5f5fad83bb4f9779c602a370986a258f62 | [
"MIT"
] | null | null | null | app/db/mongodb_utils.py | vattikondahemanth/rulemanager | ff38aa5f5fad83bb4f9779c602a370986a258f62 | [
"MIT"
] | null | null | null | import logging
from motor.motor_asyncio import AsyncIOMotorClient
from ..core.config import MONGODB_URL, MAX_CONNECTIONS_COUNT, MIN_CONNECTIONS_COUNT
from .mongodb import db
async def connect_to_mongo():
print("Trying to connect to Mongo...")
logging.info("Trying to connect to Mongo...")
db.client = AsyncIOMotorC... | 32.227273 | 83 | 0.702398 | 81 | 709 | 5.962963 | 0.395062 | 0.132505 | 0.086957 | 0.070393 | 0.091097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197461 | 709 | 21 | 84 | 33.761905 | 0.848858 | 0 | 0 | 0 | 0 | 0 | 0.214386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d04805379a72e1fe86816907894a8bc68535fe5 | 2,770 | py | Python | python_script/mendels_first_law.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | python_script/mendels_first_law.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | python_script/mendels_first_law.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Mendel's First Law
# ## Problem
#
# Probability is the mathematical study of randomly occurring phenomena. We will model such a phenomenon with a random variable, which is simply a variable that can take a number of different distinct outcomes depending on the result of an un... | 62.954545 | 656 | 0.713357 | 449 | 2,770 | 4.398664 | 0.405345 | 0.042532 | 0.040506 | 0.011139 | 0.026329 | 0.026329 | 0 | 0 | 0 | 0 | 0 | 0.011957 | 0.184838 | 2,770 | 43 | 657 | 64.418605 | 0.86271 | 0.812274 | 0 | 0 | 0 | 0 | 0.036437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.230769 | 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 |
1d06b07f38d36beacdd3f5ca05a7d584fc81fe3c | 516 | py | Python | src/mog2.py | cornelltech/opencv-video-loops | a18db3c8831ed25a7b995b46f416b8f872ace5b2 | [
"MIT"
] | 2 | 2018-09-08T13:40:20.000Z | 2019-11-21T03:01:43.000Z | src/mog2.py | cornelltech/opencv-video-loops | a18db3c8831ed25a7b995b46f416b8f872ace5b2 | [
"MIT"
] | null | null | null | src/mog2.py | cornelltech/opencv-video-loops | a18db3c8831ed25a7b995b46f416b8f872ace5b2 | [
"MIT"
] | 1 | 2019-01-08T13:13:23.000Z | 2019-01-08T13:13:23.000Z | #!/usr/bin/env python3
"""mog2.py"""
import sys
import cv2
from gray import Gray
class Mog2(Gray):
"""Mog2 background subtraction"""
def __init__(self, stream, *args, **kwargs):
super().__init__(stream, *args, **kwargs)
self.fgbg = cv2.createBackgroundSubtractorMOG2()
def process_frame(... | 21.5 | 56 | 0.643411 | 61 | 516 | 5.147541 | 0.540984 | 0.089172 | 0.159236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.205426 | 516 | 23 | 57 | 22.434783 | 0.741463 | 0.164729 | 0 | 0 | 0 | 0 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d08efa1168d615c95485906adbf560a24d318f6 | 858 | py | Python | aci_tasks/cloud/util.py | iphilpot/ACITasks | a57d2f1aab0011d8b4b5eaeb00c0f368d6b689e5 | [
"MIT"
] | null | null | null | aci_tasks/cloud/util.py | iphilpot/ACITasks | a57d2f1aab0011d8b4b5eaeb00c0f368d6b689e5 | [
"MIT"
] | 1 | 2021-06-02T00:43:06.000Z | 2021-06-02T00:43:06.000Z | aci_tasks/cloud/util.py | ianphil/ACITasks | a57d2f1aab0011d8b4b5eaeb00c0f368d6b689e5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import websocket
from azure.common.credentials import ServicePrincipalCredentials
from azure.mgmt.containerinstance import ContainerInstanceManagementClient
def _poll_for_complete(result):
while result.done() is False:
time.sleep(1)
def _get_ci_client(config... | 26 | 75 | 0.727273 | 89 | 858 | 6.752809 | 0.561798 | 0.02995 | 0.066556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001468 | 0.206294 | 858 | 32 | 76 | 26.8125 | 0.881057 | 0.02331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.130435 | 0.173913 | 0.086957 | 0.434783 | 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 |
1d0d5d5ac42782a1435f47277f50769804a086fc | 1,671 | py | Python | functional-programming/set__dict_comprehensions.py | Ch-sriram/python-advanced-concepts | a041eedbcff683b487d292808fba5fd0a3b9aebd | [
"MIT"
] | null | null | null | functional-programming/set__dict_comprehensions.py | Ch-sriram/python-advanced-concepts | a041eedbcff683b487d292808fba5fd0a3b9aebd | [
"MIT"
] | null | null | null | functional-programming/set__dict_comprehensions.py | Ch-sriram/python-advanced-concepts | a041eedbcff683b487d292808fba5fd0a3b9aebd | [
"MIT"
] | null | null | null | # examples on set and dict comprehensions
# EXAMPLES OF SET COMPREHENSION
# making a set comprehension is actually really easy
# instead of a list, we'll just use a set notation as follows:
my_list = [char for char in 'hello']
my_set = {char for char in 'hello'}
print(my_list)
print(my_set)
my_list1 = [num for num i... | 31.528302 | 144 | 0.64213 | 338 | 1,671 | 3.100592 | 0.319527 | 0.060115 | 0.030534 | 0.049618 | 0.186069 | 0.151718 | 0.117366 | 0.117366 | 0.117366 | 0.117366 | 0 | 0.168168 | 0.202873 | 1,671 | 52 | 145 | 32.134615 | 0.618619 | 0.359665 | 0 | 0 | 0 | 0 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dfbe3ca82dc8ea19f7a0dcbd1bd4313e014ec0f | 2,600 | py | Python | Trakttv.bundle/Contents/Libraries/Shared/elapsed/main.py | disrupted/Trakttv.bundle | 24712216c71f3b22fd58cb5dd89dad5bb798ed60 | [
"RSA-MD"
] | 1,346 | 2015-01-01T14:52:24.000Z | 2022-03-28T12:50:48.000Z | Trakttv.bundle/Contents/Libraries/Shared/elapsed/main.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 474 | 2015-01-01T10:27:46.000Z | 2022-03-21T12:26:16.000Z | Trakttv.bundle/Contents/Libraries/Shared/elapsed/main.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 191 | 2015-01-02T18:27:22.000Z | 2022-03-29T10:49:48.000Z | from elapsed.sample import DummySample, Sample
import inspect
import logging
log = logging.getLogger(__name__)
ENABLED = False
SAMPLES = []
DUMMY_SAMPLE = DummySample()
def setup(enabled=False):
global ENABLED
ENABLED = enabled
# Reset current samples
reset()
def reset():
global SAMPLES
... | 21.311475 | 81 | 0.594231 | 310 | 2,600 | 4.835484 | 0.3 | 0.037358 | 0.028019 | 0.03002 | 0.064043 | 0.038692 | 0 | 0 | 0 | 0 | 0 | 0.011488 | 0.296923 | 2,600 | 121 | 82 | 21.487603 | 0.808534 | 0.053077 | 0 | 0.118421 | 0 | 0 | 0.053404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df0877663b1c3becbb81e8794c08176267043743 | 828 | py | Python | src/html_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | src/html_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | src/html_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | class HtmlReportException(Exception):
pass
class HtmlReport:
def __init__(self):
self.path = None
self.file = None
self.header = None
self.start_time = None
self.is_initialized = False
def __del__(self):
if self.is_initialized and self.file:
sel... | 27.6 | 84 | 0.591787 | 102 | 828 | 4.656863 | 0.411765 | 0.101053 | 0.143158 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006814 | 0.291063 | 828 | 29 | 85 | 28.551724 | 0.802385 | 0 | 0 | 0.086957 | 0 | 0 | 0.082126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0 | 0 | 0.304348 | 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 |
df0df0f67b66c884e6b2e3b8be8e82c147361ed0 | 272 | py | Python | data/useconomic/graph.py | Tianqi0708/1dPPH | f85d6fad6033e472dcd6e1cfbe76f7b7c9393918 | [
"BSD-3-Clause"
] | null | null | null | data/useconomic/graph.py | Tianqi0708/1dPPH | f85d6fad6033e472dcd6e1cfbe76f7b7c9393918 | [
"BSD-3-Clause"
] | null | null | null | data/useconomic/graph.py | Tianqi0708/1dPPH | f85d6fad6033e472dcd6e1cfbe76f7b7c9393918 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import networkx as nx
import torch as th
with open('1997.txt', 'r') as f:
l = [[float(num) for num in line.split(' ')[:-1]] for line in f]
mat=np.matrix(l)
mat.resize((15, 15))
#print(mat.shape)
G=nx.from_numpy_matrix(mat, create_using=nx.DiGraph)
| 24.727273 | 68 | 0.683824 | 53 | 272 | 3.45283 | 0.622642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038793 | 0.147059 | 272 | 10 | 69 | 27.2 | 0.75 | 0.058824 | 0 | 0 | 0 | 0 | 0.039216 | 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 |
df1a3c8d356e3085b1ddfcca33abe4081e52b45b | 2,479 | py | Python | docker/app/app/backend/apps/_archive/blog_codewheel/templatetags/navbar_tags.py | JTarball/tetherbox | cae7a4bb6e29da0f34670f8c8d228faf5f909f3a | [
"0BSD"
] | 1 | 2018-02-26T07:26:30.000Z | 2018-02-26T07:26:30.000Z | docker/app/app/backend/apps/_archive/blog_codewheel/templatetags/navbar_tags.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | docker/app/app/backend/apps/_archive/blog_codewheel/templatetags/navbar_tags.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | from __future__ import unicode_literals
import logging
from inspect import ismethod
from django.core.urlresolvers import (reverse, resolve, NoReverseMatch,
Resolver404)
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.utils.encoding i... | 32.618421 | 109 | 0.68455 | 313 | 2,479 | 5.242812 | 0.396166 | 0.054845 | 0.036563 | 0.043876 | 0.154174 | 0.154174 | 0.054845 | 0.054845 | 0 | 0 | 0 | 0.007187 | 0.214199 | 2,479 | 75 | 110 | 33.053333 | 0.835216 | 0.149254 | 0 | 0.045455 | 0 | 0 | 0.088832 | 0.041624 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.295455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df1eb935fa2d7d1b2240b4a336487d58337b8c47 | 792 | py | Python | ncov/apps/news/signals.py | ExchangeAnn/2019ncov | dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e | [
"MIT"
] | null | null | null | ncov/apps/news/signals.py | ExchangeAnn/2019ncov | dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e | [
"MIT"
] | 274 | 2020-02-22T07:54:37.000Z | 2021-06-23T12:48:05.000Z | ncov/apps/news/signals.py | ExchangeAnn/2019ncov | dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e | [
"MIT"
] | 4 | 2020-02-20T11:19:33.000Z | 2020-09-30T12:40:34.000Z | import requests
import logging
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.conf import settings
from apps.news.models import News
from apps.news.serializers import TransferNewsSerializer
logger = logging.getLogger("django")
headers = getattr(settings, "POST_HEADERS... | 29.333333 | 75 | 0.709596 | 101 | 792 | 5.465347 | 0.465347 | 0.050725 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.19697 | 792 | 26 | 76 | 30.461538 | 0.858491 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 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 |
df216d9b215b6df18e5b7116d3c7597921ec4bab | 12,608 | py | Python | src/basically_ti_basic/tokens/__init__.py | thenaterhood/basically-ti-basic | 2cadb1bc4d4e9be83d5ab97d76a762ed30e75568 | [
"MIT"
] | 24 | 2015-01-21T06:23:46.000Z | 2021-09-17T17:41:27.000Z | src/basically_ti_basic/tokens/__init__.py | thenaterhood/basically-ti-basic | 2cadb1bc4d4e9be83d5ab97d76a762ed30e75568 | [
"MIT"
] | 1 | 2016-04-26T12:48:19.000Z | 2016-09-22T01:48:26.000Z | src/basically_ti_basic/tokens/__init__.py | thenaterhood/basically-ti-basic | 2cadb1bc4d4e9be83d5ab97d76a762ed30e75568 | [
"MIT"
] | 3 | 2016-08-25T02:51:32.000Z | 2021-02-03T23:01:54.000Z | def get_tokens():
return _tokens
def get_inverse_tokens():
flipped = dict()
for key in _tokens:
flipped[_tokens[key]] = key
return flipped
_tokens = dict([
(b'\x01', '>DMS'),
(b'\x02', '>Dec'),
(b'\x03', '>Frac'),
(b'\x04', '→'),
(b'\x05', 'BoxPlot'),
(b'\x06', '['),
... | 25.626016 | 75 | 0.384518 | 1,780 | 12,608 | 2.713483 | 0.366292 | 0.050518 | 0.006211 | 0.015735 | 0.04058 | 0.032298 | 0.032298 | 0.032298 | 0.032298 | 0 | 0 | 0.108273 | 0.245479 | 12,608 | 491 | 76 | 25.678208 | 0.399138 | 0.101364 | 0 | 0 | 0 | 0 | 0.388707 | 0 | 0 | 0 | 0 | 0.002037 | 0 | 1 | 0.004545 | false | 0 | 0 | 0.002273 | 0.009091 | 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 |
df240f367dd55d9a2bdcea6a2ce92c19bed87d5d | 2,188 | py | Python | test_user.py | mwaniki9322/Password-Locker | 1dacf25555c838e8f59508a344f5ff4001f8add3 | [
"MIT"
] | null | null | null | test_user.py | mwaniki9322/Password-Locker | 1dacf25555c838e8f59508a344f5ff4001f8add3 | [
"MIT"
] | null | null | null | test_user.py | mwaniki9322/Password-Locker | 1dacf25555c838e8f59508a344f5ff4001f8add3 | [
"MIT"
] | null | null | null | #import test framework
#import class user
import unittest
from user import User
#create a subclass
class TestUser(unittest.TestCase):
def tearDown(self):
User.User_list=[]
def setUp(self):
'''
define a set of instructions to be executed before each task
'''
self.new... | 23.276596 | 77 | 0.595978 | 271 | 2,188 | 4.568266 | 0.269373 | 0.084006 | 0.079968 | 0.060582 | 0.333603 | 0.285945 | 0.285945 | 0.285945 | 0.285945 | 0.258481 | 0 | 0.018819 | 0.295704 | 2,188 | 93 | 78 | 23.526882 | 0.784555 | 0.169561 | 0 | 0.35 | 0 | 0 | 0.057704 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.225 | false | 0.05 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df27e2c3f0862a068f7f219907aee36cce3b98fa | 1,102 | py | Python | rpgpy/utils.py | tukiains/rpg_cython | e0f97392d3ed58818fefdacc176f9d216428c11a | [
"MIT"
] | null | null | null | rpgpy/utils.py | tukiains/rpg_cython | e0f97392d3ed58818fefdacc176f9d216428c11a | [
"MIT"
] | null | null | null | rpgpy/utils.py | tukiains/rpg_cython | e0f97392d3ed58818fefdacc176f9d216428c11a | [
"MIT"
] | null | null | null | import numpy.ma as ma
def get_rpg_file_type(header):
"""Find level and version of RPG cloud radar binary file.
Args:
header (dict): Header of the radar file containing *file_code* key.
Returns:
tuple: 2-element tuple containing Level (0 or 1) and Version (2 or 3).
Raises:
Run... | 22.958333 | 78 | 0.567151 | 146 | 1,102 | 4.191781 | 0.458904 | 0.078431 | 0.058824 | 0.042484 | 0.073529 | 0.073529 | 0.073529 | 0 | 0 | 0 | 0 | 0.056528 | 0.325771 | 1,102 | 47 | 79 | 23.446809 | 0.76716 | 0.461887 | 0 | 0 | 0 | 0 | 0.077075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df32da704e1e090018b76d61b869a2e5891fa405 | 5,374 | py | Python | python/postprocess/make_strata_map.py | dondealban/coded | b6abfffbd173e507655e4989894442681e7b3da7 | [
"MIT"
] | 25 | 2018-06-06T18:42:32.000Z | 2022-02-08T04:51:24.000Z | python/postprocess/make_strata_map.py | dondealban/coded | b6abfffbd173e507655e4989894442681e7b3da7 | [
"MIT"
] | 3 | 2019-05-23T18:30:11.000Z | 2021-10-12T22:50:55.000Z | python/postprocess/make_strata_map.py | dondealban/coded | b6abfffbd173e507655e4989894442681e7b3da7 | [
"MIT"
] | 17 | 2018-12-07T21:12:45.000Z | 2022-03-02T00:29:52.000Z | """ Get map strata for entire study period
Parameters:
param: postprocessing yaml parameter
image[1-3]: postprocessed images (1990-2000, 2000-2010, 2010-2013)
raw_image[1-3]: raw algorithm outptus (1990-2000, 2000-2010, 2010-2013)
output: location to save output raster
Usage: strata_map.py [options] <param> ... | 29.36612 | 88 | 0.653331 | 786 | 5,374 | 4.259542 | 0.21374 | 0.018519 | 0.023895 | 0.037634 | 0.25 | 0.207885 | 0.147849 | 0.125149 | 0.101553 | 0.064516 | 0 | 0.042064 | 0.199293 | 5,374 | 182 | 89 | 29.527473 | 0.735998 | 0.11965 | 0 | 0.168317 | 0 | 0 | 0.047826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089109 | null | null | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
df3bdabc3faf9465f31db5649998dcef4203c5bf | 3,186 | py | Python | src/fund/analyzer/tf/softmax.py | krizex/fund | 3f920a1df60fc4348f1eb426c7c0d491332488fe | [
"MIT"
] | 3 | 2017-08-30T02:53:24.000Z | 2022-01-09T11:00:51.000Z | src/fund/analyzer/tf/softmax.py | krizex/fund | 3f920a1df60fc4348f1eb426c7c0d491332488fe | [
"MIT"
] | null | null | null | src/fund/analyzer/tf/softmax.py | krizex/fund | 3f920a1df60fc4348f1eb426c7c0d491332488fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import tensorflow as tf
from fund.log.logger import log
__author__ = 'David Qian'
"""
Created on 07/03/2017
@author: David Qian
"""
# http://www.shareditor.com/blogshow/?blogId=94
class SoftmaxTrainer(object):
def __init__(self, feature_count, label_coun... | 36.62069 | 103 | 0.621155 | 422 | 3,186 | 4.507109 | 0.331754 | 0.026288 | 0.029443 | 0.020505 | 0.178759 | 0.087277 | 0.055731 | 0.055731 | 0.032597 | 0 | 0 | 0.012563 | 0.250471 | 3,186 | 87 | 104 | 36.62069 | 0.78392 | 0.173572 | 0 | 0.125 | 0 | 0 | 0.029949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df45c758d7b0f703af5cf6c6db370945c164f03e | 1,463 | py | Python | nbdev_template/core.py | nicolas998/Parameter_identifiability | bdc7e677b65a09f033d3386a605d3194b91cb741 | [
"Apache-2.0"
] | 1 | 2020-08-08T14:05:38.000Z | 2020-08-08T14:05:38.000Z | nbdev_template/core.py | nicolas998/Parameter_identifiability | bdc7e677b65a09f033d3386a605d3194b91cb741 | [
"Apache-2.0"
] | 2 | 2021-09-28T04:03:37.000Z | 2022-02-26T08:53:12.000Z | nbdev_template/core.py | nicolas998/Parameter_identifiability | bdc7e677b65a09f033d3386a605d3194b91cb741 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_Virtual_data_setup.ipynb (unless otherwise specified).
__all__ = ['Get_sub_watersheds']
# Cell
def Get_sub_watersheds(watershed, order_max, order_min = 4):
'''Obtains the sub-watersheds a different orders starting from the order_max and
ending on the order_min, t... | 47.193548 | 124 | 0.626111 | 205 | 1,463 | 4.341463 | 0.439024 | 0.188764 | 0.095506 | 0.08764 | 0.180899 | 0.076404 | 0 | 0 | 0 | 0 | 0 | 0.011009 | 0.254956 | 1,463 | 31 | 125 | 47.193548 | 0.805505 | 0.300752 | 0 | 0.105263 | 1 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.052632 | 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 |
df4b51a4557bfff1802af963d040fe52e063e6ed | 1,001 | py | Python | tools/mk_pymd.py | fastai/nbdev-stdlib | 8a956e40ee31c32170ab96f832fc8e0c9510c83e | [
"Apache-2.0"
] | 2 | 2020-10-15T14:59:56.000Z | 2020-10-15T17:29:18.000Z | tools/mk_pymd.py | fastai/nbdev-index | 6fb8e36160d88b71c6e1f86562f741274558c74f | [
"Apache-2.0"
] | 28 | 2021-02-15T08:40:38.000Z | 2022-03-20T03:07:28.000Z | tools/mk_pymd.py | fastai/nbdev-stdlib | 8a956e40ee31c32170ab96f832fc8e0c9510c83e | [
"Apache-2.0"
] | 2 | 2020-12-03T16:50:55.000Z | 2021-02-19T05:47:08.000Z | #!/usr/bin/env python
from nbdev_stdlib.python_mods import *
from fastcore.all import *
def create_pymd(f):
print(f"## All of the python 3.9 standard library\n", file=f)
for m,n in mods.items():
print(f"#### [{m}]({n})\n", file=f)
print('<details>\n', file=f)
s = syms[m]
for o,p... | 34.517241 | 68 | 0.555445 | 178 | 1,001 | 3.08427 | 0.269663 | 0.118397 | 0.098361 | 0.04918 | 0.557377 | 0.506375 | 0.429873 | 0.429873 | 0.429873 | 0.429873 | 0 | 0.005057 | 0.20979 | 1,001 | 28 | 69 | 35.75 | 0.689001 | 0.01998 | 0 | 0.434783 | 0 | 0 | 0.313265 | 0.068367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.173913 | 0.565217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
df5809da6c63c1360b37b4e1e6885c67efef936a | 321 | py | Python | xgriddedaxis/__init__.py | NCAR/xtime | 17e39bba802a211dda3819fca29d263606f07e4d | [
"Apache-2.0"
] | 3 | 2020-03-11T16:24:10.000Z | 2020-03-13T14:17:04.000Z | xgriddedaxis/__init__.py | NCAR/xtime | 17e39bba802a211dda3819fca29d263606f07e4d | [
"Apache-2.0"
] | 3 | 2020-03-19T18:13:54.000Z | 2020-04-14T22:51:12.000Z | xgriddedaxis/__init__.py | NCAR/xtime | 17e39bba802a211dda3819fca29d263606f07e4d | [
"Apache-2.0"
] | 1 | 2020-03-11T14:51:12.000Z | 2020-03-11T14:51:12.000Z | #!/usr/bin/env python
""" Top-level module for xgriddedaxis. """
from pkg_resources import DistributionNotFound, get_distribution
from .remapper import Remapper # noqa: F401
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
__version__ = '0.0.0'... | 26.75 | 64 | 0.757009 | 38 | 321 | 6 | 0.736842 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.152648 | 321 | 11 | 65 | 29.181818 | 0.816176 | 0.286604 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
df684e6e0cbc02848ff94587bece1b618a0cde02 | 1,750 | py | Python | The Assignment/cipher.py | AlbMej/Code-Breakers | cb9241798935dd34b3c4524e9b5feca9f43a8095 | [
"MIT"
] | null | null | null | The Assignment/cipher.py | AlbMej/Code-Breakers | cb9241798935dd34b3c4524e9b5feca9f43a8095 | [
"MIT"
] | null | null | null | The Assignment/cipher.py | AlbMej/Code-Breakers | cb9241798935dd34b3c4524e9b5feca9f43a8095 | [
"MIT"
] | null | null | null | class Cipher:
def __init__(self, codestring):
# Hints:
# Does the capitalization of the words or letter matter here?
# Is hello the same as Hello or even hElLo in terms of definition? Yes
# Maybe we should convert everything to uppercase
# Add your code here
self.a... | 38.888889 | 98 | 0.584571 | 213 | 1,750 | 4.751174 | 0.323944 | 0.108696 | 0.118577 | 0.117589 | 0.349802 | 0.33004 | 0.146245 | 0.083004 | 0.083004 | 0.083004 | 0 | 0.004325 | 0.339429 | 1,750 | 44 | 99 | 39.772727 | 0.871107 | 0.360571 | 0 | 0.2 | 0 | 0 | 0.032727 | 0.023636 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df6abc92736160caa6986ebd9dce4e0ff0446f9f | 1,792 | py | Python | 2d/sloping_fault_water/plot_okada.py | rjleveque/seismic | 962cbf6d541fe547cc2093ea1368a9752d5f9659 | [
"BSD-2-Clause"
] | 6 | 2017-03-08T14:57:07.000Z | 2021-07-16T01:03:22.000Z | 2d/sloping_fault_water/plot_okada.py | clawpack/seismic | 962cbf6d541fe547cc2093ea1368a9752d5f9659 | [
"BSD-2-Clause"
] | 9 | 2015-04-17T04:58:09.000Z | 2016-12-22T00:26:57.000Z | 2d/sloping_fault_water/plot_okada.py | rjleveque/seismic | 962cbf6d541fe547cc2093ea1368a9752d5f9659 | [
"BSD-2-Clause"
] | 5 | 2015-04-17T04:48:20.000Z | 2017-03-08T01:45:37.000Z | from pylab import *
from clawpack.clawutil.data import ClawData
import dtopotools_horiz_okada as dtopotools
reload(dtopotools)
fault = dtopotools.Fault()
fault.subfaults = []
# Read in fault info
probdata = ClawData()
probdata.read('setprob.data',force=True)
width = probdata.fault_width
theta = probdata.fault_dip
xce... | 26.746269 | 69 | 0.688616 | 260 | 1,792 | 4.626923 | 0.392308 | 0.043225 | 0.022444 | 0.034913 | 0.144638 | 0.109726 | 0.109726 | 0.109726 | 0.109726 | 0.109726 | 0 | 0.042481 | 0.172433 | 1,792 | 66 | 70 | 27.151515 | 0.768712 | 0.027344 | 0 | 0.127273 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
df6fd5ff704b6234782a76153c330c0e342a1728 | 358 | py | Python | lessions/01-data/fetch.py | FlynnMa/quantBob | 0b7b51ff0c056d45e367ff5281013799a12ab6c1 | [
"MIT"
] | 4 | 2021-08-28T04:28:27.000Z | 2021-10-16T03:30:00.000Z | lessions/01-data/fetch.py | FlynnMa/quantBob | 0b7b51ff0c056d45e367ff5281013799a12ab6c1 | [
"MIT"
] | null | null | null | lessions/01-data/fetch.py | FlynnMa/quantBob | 0b7b51ff0c056d45e367ff5281013799a12ab6c1 | [
"MIT"
] | 1 | 2021-09-01T02:49:51.000Z | 2021-09-01T02:49:51.000Z | """
如何获取数据
"""
import os
import matplotlib.pyplot as plt
import pandas_datareader as pdr
df = pdr.get_data_tiingo('601398', start='2021-01-01',
end='2021-08-05', api_key=os.getenv('TIINGO_API_KEY'))
fig = plt.figure(figsize=(20, 12))
fig.suptitle("price plotting")
df['adjClose'].plot(rot=90... | 21.058824 | 79 | 0.670391 | 55 | 358 | 4.254545 | 0.727273 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.159218 | 358 | 16 | 80 | 22.375 | 0.684385 | 0.01676 | 0 | 0 | 0 | 0 | 0.206395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
df728c2a17bd6f107f42f7c5fd12b7a6f829bdfd | 1,763 | py | Python | vendor/packages/translate-toolkit/translate/misc/stdiotell.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/misc/stdiotell.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:55:07.000Z | 2021-12-13T20:55:07.000Z | vendor/packages/translate-toolkit/translate/misc/stdiotell.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2006 Zuza Software Foundation
#
# This file is part of translate.
#
# translate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of t... | 30.396552 | 76 | 0.659104 | 250 | 1,763 | 4.616 | 0.464 | 0.051993 | 0.055459 | 0.058925 | 0.2513 | 0.22877 | 0.180243 | 0.180243 | 0.147314 | 0.147314 | 0 | 0.007541 | 0.247873 | 1,763 | 57 | 77 | 30.929825 | 0.862745 | 0.446965 | 0 | 0.259259 | 0 | 0 | 0.117771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0.037037 | 0.37037 | 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 |
df880cfeee5741a0fc98864a6d38211029cfd1c6 | 2,318 | py | Python | Python/pillar_converter.py | familug/FAMILUG | ef8c11d92f4038d80f3f1a24cbab022c19791acf | [
"BSD-2-Clause"
] | 5 | 2015-10-13T04:13:04.000Z | 2020-12-23T13:47:43.000Z | Python/pillar_converter.py | familug/FAMILUG | ef8c11d92f4038d80f3f1a24cbab022c19791acf | [
"BSD-2-Clause"
] | null | null | null | Python/pillar_converter.py | familug/FAMILUG | ef8c11d92f4038d80f3f1a24cbab022c19791acf | [
"BSD-2-Clause"
] | 8 | 2015-07-20T15:37:38.000Z | 2021-04-14T07:18:10.000Z | #!/usr/bin/env python
# coding: utf-8
# Author: Nguyen Viet Hung
# Email: hvnsweeting@gmail.com
import sys
import re
p = re.compile("pillar\[.*default\(.*\)")
def normalize(s):
'''
Convert double quote to single quote
'''
return s.replace('"', "'")
def new2old(s):
'''
Convert salt['pillar.... | 24.924731 | 78 | 0.518982 | 292 | 2,318 | 4.068493 | 0.318493 | 0.045455 | 0.054714 | 0.026936 | 0.13468 | 0.06734 | 0.06734 | 0.06734 | 0.06734 | 0 | 0 | 0.008918 | 0.274374 | 2,318 | 92 | 79 | 25.195652 | 0.697384 | 0.133305 | 0 | 0.145455 | 0 | 0 | 0.112514 | 0.056831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
df8a1e6291bcf1dd6853ea220f23fcf988f634e4 | 1,557 | py | Python | solvers/evolution/Population.py | powertomato/heuOpt_2017_G1 | ee97f18cfd7ef6c9548708a539b1cf2ac4acfdc9 | [
"MIT"
] | null | null | null | solvers/evolution/Population.py | powertomato/heuOpt_2017_G1 | ee97f18cfd7ef6c9548708a539b1cf2ac4acfdc9 | [
"MIT"
] | null | null | null | solvers/evolution/Population.py | powertomato/heuOpt_2017_G1 | ee97f18cfd7ef6c9548708a539b1cf2ac4acfdc9 | [
"MIT"
] | null | null | null | from solvers.evolution.Chromosome_RandKey import Chromosome_RK
import numpy as np
import random, bisect
class Population(object):
def __init__(self, graph, size):
self.specimen = list()
self.graph = graph
self.edgeList = list()
for edge in graph.edgeList:
self.edgeList.... | 31.77551 | 123 | 0.565832 | 180 | 1,557 | 4.85 | 0.383333 | 0.082474 | 0.013746 | 0.0252 | 0.148912 | 0.148912 | 0.105384 | 0.105384 | 0.105384 | 0.105384 | 0 | 0.003791 | 0.322415 | 1,557 | 49 | 124 | 31.77551 | 0.823697 | 0 | 0 | 0 | 0 | 0 | 0.044288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0.076923 | 0.410256 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
df9606a0b2f52b31eb315f22a926d623ff1f6a72 | 2,626 | py | Python | mindwave_teleop/scripts/client_teleop_arm.py | osrf/gsoc-ros-neural | c622e24e90639b0631df5c90c580e59e2a7497a2 | [
"Apache-2.0"
] | 5 | 2017-02-28T08:18:51.000Z | 2018-04-22T07:32:44.000Z | mindwave_teleop/scripts/client_teleop_arm.py | jacquelinekay/gsoc-ros-neural | c622e24e90639b0631df5c90c580e59e2a7497a2 | [
"Apache-2.0"
] | null | null | null | mindwave_teleop/scripts/client_teleop_arm.py | jacquelinekay/gsoc-ros-neural | c622e24e90639b0631df5c90c580e59e2a7497a2 | [
"Apache-2.0"
] | 4 | 2015-09-08T10:37:36.000Z | 2017-09-13T01:58:23.000Z | #!/usr/bin/env python
import rospy
import roslib
import time
import sys
import pdb
import tf
from mindwave_msgs.srv import ExecuteCartesianIKTrajectory
from geometry_msgs.msg import Pose
#execute a Cartesian trajectory defined by a root frame, a list of
#positions (x,y,z), and a list of orientations (quaternions:... | 32.825 | 95 | 0.656893 | 337 | 2,626 | 4.946588 | 0.41543 | 0.046191 | 0.088182 | 0.10078 | 0.080384 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024012 | 0.238766 | 2,626 | 80 | 96 | 32.825 | 0.809905 | 0.168698 | 0 | 0 | 0 | 0 | 0.182237 | 0.074551 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145455 | 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 |
df967d3ad9667aac68c67ae530b7abbe3192b8df | 16,471 | py | Python | etc/valences.py | LR-POR/tools | dfb654ad9cc4a9fe4248a335021d810f4804035c | [
"BSD-3-Clause"
] | 2 | 2021-08-31T23:52:18.000Z | 2021-11-09T10:38:42.000Z | etc/valences.py | LR-POR/tools | dfb654ad9cc4a9fe4248a335021d810f4804035c | [
"BSD-3-Clause"
] | 30 | 2021-07-17T16:16:19.000Z | 2022-01-30T21:33:13.000Z | etc/valences.py | LR-POR/tools | dfb654ad9cc4a9fe4248a335021d810f4804035c | [
"BSD-3-Clause"
] | null | null | null | from conllu import parse
import joblib
DEPRELS = ['nsubj','obj','iobj','xcomp','ccomp','csubj','expl','nsubj:pass','aux:pass']
## Funçoes auxiliares
def binary_search(x,l):
""" Esse algorítmo é o algorítmo de busca binária, mas ele retorna
qual o índice o qual devo colocar o elemento para que a lista
pe... | 35.806522 | 163 | 0.517941 | 2,006 | 16,471 | 4.135095 | 0.114158 | 0.018083 | 0.022785 | 0.026522 | 0.369138 | 0.290898 | 0.240747 | 0.202291 | 0.184087 | 0.176371 | 0 | 0.003307 | 0.357355 | 16,471 | 459 | 164 | 35.884532 | 0.78035 | 0.073948 | 0 | 0.268097 | 0 | 0 | 0.100568 | 0.042629 | 0 | 0 | 0 | 0.002179 | 0 | 1 | 0.069705 | false | 0.053619 | 0.005362 | 0.021448 | 0.144772 | 0.029491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
10c49fd0e6e6189645dcad2a971423f9bf638942 | 8,488 | py | Python | fhemExtended/core/RPiSensors/bmp180.py | opit7/fhem-docker | d44c9913155318eeae9500767f947a02bbcbac76 | [
"MIT"
] | 9 | 2018-02-06T11:57:50.000Z | 2021-12-10T13:59:03.000Z | fhemExtended/core/RPiSensors/bmp180.py | opit7/fhem-docker | d44c9913155318eeae9500767f947a02bbcbac76 | [
"MIT"
] | null | null | null | fhemExtended/core/RPiSensors/bmp180.py | opit7/fhem-docker | d44c9913155318eeae9500767f947a02bbcbac76 | [
"MIT"
] | 1 | 2020-03-20T18:04:49.000Z | 2020-03-20T18:04:49.000Z | #!/usr/bin/env python
# Copyright 2014 IIJ Innovation Institute Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# n... | 34.786885 | 77 | 0.617578 | 1,113 | 8,488 | 4.493261 | 0.249775 | 0.044391 | 0.021996 | 0.019196 | 0.531094 | 0.481504 | 0.471106 | 0.462707 | 0.462707 | 0.455909 | 0 | 0.055294 | 0.29901 | 8,488 | 243 | 78 | 34.930041 | 0.78521 | 0.319039 | 0 | 0.113636 | 0 | 0 | 0.015021 | 0 | 0 | 0 | 0.01358 | 0 | 0.022727 | 0 | null | null | 0 | 0.030303 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
10c4d0faded5c0c614b17257deb8e506ccce0d81 | 19,808 | py | Python | fbastani-solution/graphextract/graph_extract_good.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 180 | 2018-04-27T15:42:28.000Z | 2022-03-20T02:37:37.000Z | fbastani-solution/graphextract/graph_extract_good.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 6 | 2018-09-21T18:31:37.000Z | 2020-04-28T19:11:20.000Z | fbastani-solution/graphextract/graph_extract_good.py | Hulihrach/RoadDetector | 9fedd537d7d3a5c81a60562a185fc13370af9a99 | [
"Apache-2.0"
] | 82 | 2018-04-30T13:53:10.000Z | 2022-03-20T02:37:43.000Z | import numpy as np
from scipy.ndimage import imread
from scipy.misc import imsave
from itertools import izip
from collections import deque
from pylibs.spatialfunclib import projection_onto_line
import sqlite3
import math
import sys
import os
import pickle
# globals
min_lat, min_lon, max_lat, max_lon = None, None, None... | 36.749536 | 571 | 0.537258 | 2,540 | 19,808 | 4.014173 | 0.098032 | 0.063554 | 0.0153 | 0.014123 | 0.47754 | 0.412907 | 0.38162 | 0.358474 | 0.330228 | 0.288054 | 0 | 0.030566 | 0.326131 | 19,808 | 538 | 572 | 36.817844 | 0.733293 | 0.080725 | 0 | 0.171171 | 0 | 0 | 0.040073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006006 | 0.036036 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
10ca8551ee7df4a3adbf04c9943dc9b870065562 | 1,168 | py | Python | actinia_gdi/model/geodata.py | anikaweinmann/actinia-gdi | 0a32212a9f1e89d7691b1cef1fb9cf9f30a6d2c9 | [
"Apache-2.0"
] | null | null | null | actinia_gdi/model/geodata.py | anikaweinmann/actinia-gdi | 0a32212a9f1e89d7691b1cef1fb9cf9f30a6d2c9 | [
"Apache-2.0"
] | 3 | 2021-02-25T07:58:08.000Z | 2021-04-09T08:12:58.000Z | actinia_gdi/model/geodata.py | anikaweinmann/actinia-gdi | 0a32212a9f1e89d7691b1cef1fb9cf9f30a6d2c9 | [
"Apache-2.0"
] | 1 | 2021-02-23T16:25:11.000Z | 2021-02-23T16:25:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (c) 2018-present mundialis GmbH & Co. KG
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
... | 29.2 | 72 | 0.730308 | 163 | 1,168 | 5.159509 | 0.631902 | 0.071344 | 0.109394 | 0.057075 | 0.066587 | 0.066587 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.182363 | 1,168 | 39 | 73 | 29.948718 | 0.864921 | 0.652397 | 0 | 0 | 0 | 0 | 0.161376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
10cde9b3a61a1a9a35607cc6c5aa4c6e120458da | 3,296 | py | Python | src/datasetGenerator.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | src/datasetGenerator.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | src/datasetGenerator.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | import os
import random
import yaml
from collections import Counter
from nltk.corpus import movie_reviews
from nltk.corpus import senseval
import pandas as pd
import json
class datasetGenerator:
"""
creates a base dataset from senseval in NLTK
it generates data.json dataset by instanciating it
or by... | 32.96 | 84 | 0.586165 | 351 | 3,296 | 5.461538 | 0.356125 | 0.054251 | 0.015649 | 0.021909 | 0.127282 | 0.077204 | 0.077204 | 0.051122 | 0 | 0 | 0 | 0.005175 | 0.29642 | 3,296 | 99 | 85 | 33.292929 | 0.821475 | 0.088592 | 0 | 0.051948 | 0 | 0 | 0.100134 | 0.014113 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.090909 | false | 0.012987 | 0.103896 | 0.012987 | 0.246753 | 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 |
10d37b880180380133569a25197198d56d9c990c | 1,449 | py | Python | home/migrations/0003_auto_20190619_1423.py | dikshaRaj/Diksha | 0086d89a39c272670e8e499934d7bea93af438c4 | [
"bzip2-1.0.6"
] | null | null | null | home/migrations/0003_auto_20190619_1423.py | dikshaRaj/Diksha | 0086d89a39c272670e8e499934d7bea93af438c4 | [
"bzip2-1.0.6"
] | 8 | 2019-12-04T23:24:47.000Z | 2022-02-10T09:14:21.000Z | home/migrations/0003_auto_20190619_1423.py | dikshaRaj/Diksha | 0086d89a39c272670e8e499934d7bea93af438c4 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-19 08:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20190619_1136'),
]
operations = [
migrations.CreateModel(
name='Book_Author',
fields=[
... | 36.225 | 114 | 0.569358 | 150 | 1,449 | 5.333333 | 0.346667 | 0.05 | 0.06 | 0.08 | 0.58875 | 0.47125 | 0.39125 | 0.39125 | 0.39125 | 0.29625 | 0 | 0.04187 | 0.291235 | 1,449 | 39 | 115 | 37.153846 | 0.737098 | 0.031056 | 0 | 0.484848 | 1 | 0 | 0.111983 | 0.016405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.121212 | 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 |
10dbfb3c0500819af941c87b136d1b1ec5c57c05 | 246 | py | Python | test/common/test_str2path.py | rivergold/rutils | 6cb89f671e64741237ce0c71ddf06a4a5dbff410 | [
"MIT"
] | null | null | null | test/common/test_str2path.py | rivergold/rutils | 6cb89f671e64741237ce0c71ddf06a4a5dbff410 | [
"MIT"
] | null | null | null | test/common/test_str2path.py | rivergold/rutils | 6cb89f671e64741237ce0c71ddf06a4a5dbff410 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from rutils.common import str2path
if __name__ == '__main__':
opt_parser = ArgumentParser()
opt_parser.add_argument('--in_path', type=str2path)
opt = opt_parser.parse_args()
print(opt.in_path)
| 27.333333 | 55 | 0.743902 | 32 | 246 | 5.25 | 0.625 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.154472 | 246 | 8 | 56 | 30.75 | 0.798077 | 0 | 0 | 0 | 0 | 0 | 0.069106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
10e23df80f3297c9a7727611ecf740c4161428dd | 3,009 | py | Python | handler/salt_handler.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | handler/salt_handler.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | handler/salt_handler.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Powered By KK Studio
from BaseHandler import BaseHandler
from model.models import SaltMaster
from tornado.web import authenticated as Auth
from model.models import or_
# Salt-Master管理
class MasterHandler(BaseHandler):
@Auth
def get(self):
data = self.db.que... | 34.586207 | 135 | 0.519774 | 352 | 3,009 | 4.380682 | 0.267045 | 0.038911 | 0.103761 | 0.108949 | 0.405966 | 0.343709 | 0.343709 | 0.343709 | 0.24773 | 0.24773 | 0 | 0.008416 | 0.328681 | 3,009 | 86 | 136 | 34.988372 | 0.754951 | 0.04121 | 0 | 0.42029 | 0 | 0 | 0.118567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.057971 | 0.057971 | 0 | 0.275362 | 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 |
10f4a32597bc33fe982d91f67468a0367b003429 | 1,068 | py | Python | tests/test_parser.py | lispparser/sexp-python | 588ba16c0e846486295e5e699f7c714d1391560a | [
"Zlib"
] | null | null | null | tests/test_parser.py | lispparser/sexp-python | 588ba16c0e846486295e5e699f7c714d1391560a | [
"Zlib"
] | null | null | null | tests/test_parser.py | lispparser/sexp-python | 588ba16c0e846486295e5e699f7c714d1391560a | [
"Zlib"
] | null | null | null | # SExp - A S-Expression Parser for Python
# Copyright (C) 2015 Ingo Ruhnke <grumbel@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your op... | 33.375 | 82 | 0.725655 | 169 | 1,068 | 4.573965 | 0.60355 | 0.042691 | 0.050453 | 0.073739 | 0.10608 | 0.072445 | 0 | 0 | 0 | 0 | 0 | 0.024166 | 0.18633 | 1,068 | 31 | 83 | 34.451613 | 0.865362 | 0.659176 | 0 | 0 | 0 | 0 | 0.037681 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
10f6dfacf0841b543ce6420cf8112116b7d20f7d | 348 | py | Python | pymt/__init__.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | pymt/__init__.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | pymt/__init__.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | import numpy as np
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
# See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode
try:
np.set_printoptions(legacy="1.13")
except... | 23.2 | 154 | 0.770115 | 55 | 348 | 4.709091 | 0.727273 | 0.127413 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022364 | 0.100575 | 348 | 14 | 155 | 24.857143 | 0.805112 | 0.433908 | 0 | 0 | 0 | 0 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
10fb00a097aabc2955f5235dbf66083cb0b00edb | 9,946 | py | Python | api/src/service/framework/SqlAlchemyProxy.py | SamuelJansen/PythonFramework | 543ec4023e5a0b2893d73cbb38703de4e41a932b | [
"MIT"
] | null | null | null | api/src/service/framework/SqlAlchemyProxy.py | SamuelJansen/PythonFramework | 543ec4023e5a0b2893d73cbb38703de4e41a932b | [
"MIT"
] | null | null | null | api/src/service/framework/SqlAlchemyProxy.py | SamuelJansen/PythonFramework | 543ec4023e5a0b2893d73cbb38703de4e41a932b | [
"MIT"
] | null | null | null | import os
from python_helper import Constant as c
import sqlalchemy
from sqlalchemy import create_engine, exists, select
from sqlalchemy.orm import sessionmaker, scoped_session, relationship
from sqlalchemy.orm.collections import InstrumentedList
from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta
... | 34.296552 | 145 | 0.669918 | 1,088 | 9,946 | 5.994485 | 0.178309 | 0.040478 | 0.028672 | 0.031739 | 0.312787 | 0.287335 | 0.25023 | 0.241644 | 0.143208 | 0.052438 | 0 | 0.001411 | 0.216067 | 9,946 | 289 | 146 | 34.415225 | 0.835065 | 0.057511 | 0 | 0.233184 | 0 | 0 | 0.134324 | 0.076298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098655 | false | 0.06278 | 0.049327 | 0.013453 | 0.246637 | 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 |
10fb7997c4b981539f2ee880bf2bd126a42dbf9d | 447 | py | Python | basta/migrations/0004_session_slug.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 1 | 2021-03-23T19:14:27.000Z | 2021-03-23T19:14:27.000Z | basta/migrations/0004_session_slug.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 4 | 2021-03-30T14:20:11.000Z | 2021-06-10T20:12:34.000Z | basta/migrations/0004_session_slug.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-19 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basta', '0003_auto_20200419_1634'),
]
operations = [
migrations.AddField(
model_name='session',
name='slug',
... | 22.35 | 80 | 0.60179 | 49 | 447 | 5.367347 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0.281879 | 447 | 19 | 81 | 23.526316 | 0.716511 | 0.100671 | 0 | 0 | 1 | 0 | 0.11 | 0.0575 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80056b82c3f01c6e537a7d9f07734c284f9057d1 | 9,454 | py | Python | replace_items.py | matanki-saito/EU4JPModAppendixII | 7e669b79763773bfe17a89d6f7aa8b4ca59faf6c | [
"MIT"
] | null | null | null | replace_items.py | matanki-saito/EU4JPModAppendixII | 7e669b79763773bfe17a89d6f7aa8b4ca59faf6c | [
"MIT"
] | 3 | 2019-03-22T04:16:38.000Z | 2020-01-02T06:11:56.000Z | replace_items.py | matanki-saito/EU4JPModAppendixII | 7e669b79763773bfe17a89d6f7aa8b4ca59faf6c | [
"MIT"
] | null | null | null | import os
import pathlib
import re
from os.path import join as _
from generate_map import generate_dynasty_name_mapping, generate_first_name_mapping
from special_escape import generate_printer, generate_encoder
encoder = generate_encoder("eu4", "txt")
printer = generate_printer("eu4", "txt")
# 万能ではないが、とりあえずこれで
force... | 34.885609 | 117 | 0.562936 | 1,110 | 9,454 | 4.522523 | 0.172973 | 0.034861 | 0.032869 | 0.022311 | 0.328287 | 0.233865 | 0.223506 | 0.213147 | 0.19243 | 0.178884 | 0 | 0.012527 | 0.307595 | 9,454 | 270 | 118 | 35.014815 | 0.754048 | 0.101015 | 0 | 0.261111 | 1 | 0 | 0.116573 | 0.066338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.033333 | 0 | 0.116667 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8005d01e3ce09b714c5da2b2d3d345952a05b36e | 625 | py | Python | vaas-app/src/vaas/manager/migrations/0003_auto_20210414_1138.py | allegro/vaas | 3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2 | [
"Apache-2.0"
] | 251 | 2015-09-02T10:50:51.000Z | 2022-03-16T08:00:35.000Z | vaas-app/src/vaas/manager/migrations/0003_auto_20210414_1138.py | allegro/vaas | 3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2 | [
"Apache-2.0"
] | 154 | 2015-09-02T14:54:08.000Z | 2022-03-16T08:34:17.000Z | vaas-app/src/vaas/manager/migrations/0003_auto_20210414_1138.py | allegro/vaas | 3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2 | [
"Apache-2.0"
] | 31 | 2015-09-03T07:51:05.000Z | 2020-09-24T09:02:40.000Z | # Generated by Django 3.1.6 on 2021-04-14 09:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cluster', '0002_logicalcluster_partial_reload'),
('manager', '0002_auto_20210225_1216'),
]
operations = [
migrations.AddField(
... | 25 | 70 | 0.5984 | 59 | 625 | 6.20339 | 0.711864 | 0.04918 | 0.092896 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0783 | 0.2848 | 625 | 24 | 71 | 26.041667 | 0.740492 | 0.072 | 0 | 0.222222 | 1 | 0 | 0.212803 | 0.136678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
800bd07c0f6d6c03fbd692c32dc76866de7aff3c | 1,383 | py | Python | backend/internal_stats/management/commands/getinternalstats.py | Sarrus1/Tensor | cb6e2359a019e5034bca62240a16b8084ccc4b3d | [
"MIT"
] | null | null | null | backend/internal_stats/management/commands/getinternalstats.py | Sarrus1/Tensor | cb6e2359a019e5034bca62240a16b8084ccc4b3d | [
"MIT"
] | null | null | null | backend/internal_stats/management/commands/getinternalstats.py | Sarrus1/Tensor | cb6e2359a019e5034bca62240a16b8084ccc4b3d | [
"MIT"
] | 3 | 2021-09-06T18:01:52.000Z | 2021-10-18T02:49:53.000Z | from internal_stats.models import *
from gamestatistics.models import CkWrcps, Rank_awp, Rank_retake
from sourcebans.models import SbBans
from django.db.models import Sum
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Get internal server stats'
def handle(self, *args... | 36.394737 | 88 | 0.647867 | 154 | 1,383 | 5.61039 | 0.396104 | 0.081019 | 0.059028 | 0.050926 | 0.166667 | 0.166667 | 0.097222 | 0 | 0 | 0 | 0 | 0.005877 | 0.26175 | 1,383 | 37 | 89 | 37.378378 | 0.839373 | 0.015184 | 0 | 0 | 0 | 0 | 0.064801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | 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 |
801179da0184414f96972baf79829cf191e7abbf | 1,752 | py | Python | gogo/views.py | Bivectorfoil/gogosearch | bea02cfc3dabb69bcda6f2d763dd6aa35d31c487 | [
"MIT"
] | 1 | 2019-08-21T23:08:21.000Z | 2019-08-21T23:08:21.000Z | gogo/views.py | Bivectorfoil/gogosearch | bea02cfc3dabb69bcda6f2d763dd6aa35d31c487 | [
"MIT"
] | 2 | 2021-07-14T13:35:12.000Z | 2021-07-14T13:35:12.000Z | gogo/views.py | Bivectorfoil/gogosearch | bea02cfc3dabb69bcda6f2d763dd6aa35d31c487 | [
"MIT"
] | 1 | 2019-08-21T23:08:25.000Z | 2019-08-21T23:08:25.000Z | # -*- coding:utf-8 -*-
from flask_wtf import FlaskForm
from flask import render_template, request, redirect, url_for, session
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
from gogo import app
try:
# Py2
import socks_search
except ImportError:
# Py3
from . i... | 29.2 | 75 | 0.679795 | 217 | 1,752 | 5.37788 | 0.317972 | 0.071979 | 0.08569 | 0.032562 | 0.359897 | 0.269066 | 0.214225 | 0.214225 | 0.214225 | 0.214225 | 0 | 0.017218 | 0.171233 | 1,752 | 59 | 76 | 29.694915 | 0.786501 | 0.030251 | 0 | 0.227273 | 0 | 0 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.181818 | 0.045455 | 0.522727 | 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 |
8017d50781056bf3f0b786bd164f007c8f6b18ca | 2,410 | py | Python | scikits/statsmodels/examples/example_gls.py | matthew-brett/statsmodels | 915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c | [
"BSD-3-Clause"
] | null | null | null | scikits/statsmodels/examples/example_gls.py | matthew-brett/statsmodels | 915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c | [
"BSD-3-Clause"
] | null | null | null | scikits/statsmodels/examples/example_gls.py | matthew-brett/statsmodels | 915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c | [
"BSD-3-Clause"
] | null | null | null | """
Example: scikis.statsmodels.GLS
"""
import scikits.statsmodels.api as sm
import numpy as np
data = sm.datasets.longley.load()
data.exog = sm.add_constant(data.exog)
# The Longley dataset is a time series dataset
# Let's assume that the data is heteroskedastic and that we know
# the nature of the heteroskedasticit... | 31.710526 | 73 | 0.73361 | 416 | 2,410 | 4.194712 | 0.399038 | 0.022923 | 0.02235 | 0.029226 | 0.029226 | 0.008596 | 0.008596 | 0.008596 | 0.008596 | 0 | 0 | 0.02009 | 0.173859 | 2,410 | 75 | 74 | 32.133333 | 0.856354 | 0.654357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
801fd1aac573ebde5e8aa91c514535a8e1961f16 | 2,086 | py | Python | parser/fase2/team17/Traduccion/InterpreteF2/RAISE/RAISE_complex.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team17/Traduccion/InterpreteF2/RAISE/RAISE_complex.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team17/Traduccion/InterpreteF2/RAISE/RAISE_complex.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from InterpreteF2.NodoAST import NodoArbol
from InterpreteF2.Tabla_de_simbolos import Tabla_de_simbolos
from InterpreteF2.Arbol import Arbol
from InterpreteF2.Valor.Valor import Valor
from InterpreteF2.Primitivos.TIPO import TIPO
from InterpreteF2.Reporteria.ErroresSemanticos import ErroresSemanticos
class RAISE_compl... | 40.115385 | 137 | 0.645733 | 237 | 2,086 | 5.544304 | 0.337553 | 0.037291 | 0.079909 | 0.068493 | 0.16895 | 0.146119 | 0.146119 | 0.063927 | 0 | 0 | 0 | 0.007629 | 0.245925 | 2,086 | 51 | 138 | 40.901961 | 0.827718 | 0.091083 | 0 | 0.051282 | 0 | 0 | 0.08254 | 0.028571 | 0.025641 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.051282 | 0.153846 | 0.051282 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8021545b04c22a4b55096c2b40b58c52d10c0184 | 2,620 | py | Python | Reto1/solucion.py | Juan9507/Retos-ciclo1 | 8042807c9e59c896c18b20297c82cc759baf6999 | [
"MIT"
] | null | null | null | Reto1/solucion.py | Juan9507/Retos-ciclo1 | 8042807c9e59c896c18b20297c82cc759baf6999 | [
"MIT"
] | null | null | null | Reto1/solucion.py | Juan9507/Retos-ciclo1 | 8042807c9e59c896c18b20297c82cc759baf6999 | [
"MIT"
] | null | null | null | import random
import math
vector = [4, 1, 3, 4, 5]
"""Este procedimiento permite imprimir vectores en la consola"""
def imprimeVector(vector, mensaje="vector sin nombre: \t"):
print("\n", mensaje, end=" ")
for i in range(1, vector[0]):
print(vector[i], end=", ")
if i % 30... | 41.587302 | 103 | 0.632824 | 394 | 2,620 | 4.167513 | 0.335025 | 0.038977 | 0.014616 | 0.026797 | 0.2838 | 0.237515 | 0.221681 | 0.221681 | 0.193666 | 0.193666 | 0 | 0.029212 | 0.268321 | 2,620 | 63 | 104 | 41.587302 | 0.827334 | 0.093893 | 0 | 0.121212 | 0 | 0 | 0.072604 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.151515 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
80223d80fcdff8b75485261b7cebaba5b8382ebf | 1,006 | py | Python | app_code/api/rental_api.py | tjsullivan1/sih | 6559db601e39f032a7d5c0ed4ae02fc9d9e65680 | [
"MIT"
] | null | null | null | app_code/api/rental_api.py | tjsullivan1/sih | 6559db601e39f032a7d5c0ed4ae02fc9d9e65680 | [
"MIT"
] | null | null | null | app_code/api/rental_api.py | tjsullivan1/sih | 6559db601e39f032a7d5c0ed4ae02fc9d9e65680 | [
"MIT"
] | null | null | null | from typing import Optional, List
import fastapi
from fastapi import Depends
from models.tenant import Tenant, TenantSubmittal
from models.validation_error import ValidationError
from models.location import Location
from services import tenant_service
router = fastapi.APIRouter()
@router.get('/api/tenants', name='all... | 38.692308 | 115 | 0.809145 | 132 | 1,006 | 5.893939 | 0.333333 | 0.134961 | 0.073265 | 0.053985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.114314 | 1,006 | 26 | 115 | 38.692308 | 0.869809 | 0 | 0 | 0 | 0 | 0 | 0.044687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.45 | 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 |
8022507dff7e45599069b2ba95c8a1cda2ce4cb4 | 2,497 | py | Python | ex03-dynp/ex03-dynp.py | FlxB2/rl-course | 0db6632fbb2e9f90977b5b3422494279477cb8a8 | [
"MIT"
] | null | null | null | ex03-dynp/ex03-dynp.py | FlxB2/rl-course | 0db6632fbb2e9f90977b5b3422494279477cb8a8 | [
"MIT"
] | null | null | null | ex03-dynp/ex03-dynp.py | FlxB2/rl-course | 0db6632fbb2e9f90977b5b3422494279477cb8a8 | [
"MIT"
] | null | null | null | import gym
import numpy as np
# Init environment
env = gym.make("FrozenLake-v0")
# you can set it to deterministic with:
# env = gym.make("FrozenLake-v0", is_slippery=False)
# If you want to try larger maps you can do this using:
# random_map = gym.envs.toy_text.frozen_lake.generate_random_map(size=5, p=0.8)
# env = ... | 29.034884 | 117 | 0.586704 | 361 | 2,497 | 3.950139 | 0.376731 | 0.024544 | 0.02244 | 0.042076 | 0.147966 | 0.085554 | 0.042076 | 0.042076 | 0 | 0 | 0 | 0.015029 | 0.307169 | 2,497 | 85 | 118 | 29.376471 | 0.809249 | 0.35002 | 0 | 0.037736 | 0 | 0 | 0.07486 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.09434 | 0.150943 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
802264fe9057bf8804df2e6b58349b1c1e0489a3 | 267 | py | Python | app/services/models/base.py | tirinox/runebridgebotpy | 77f60e2a039a9c2fe6044fcb3e46b7814a00f211 | [
"MIT"
] | null | null | null | app/services/models/base.py | tirinox/runebridgebotpy | 77f60e2a039a9c2fe6044fcb3e46b7814a00f211 | [
"MIT"
] | null | null | null | app/services/models/base.py | tirinox/runebridgebotpy | 77f60e2a039a9c2fe6044fcb3e46b7814a00f211 | [
"MIT"
] | null | null | null | import json
from dataclasses import dataclass, asdict
@dataclass
class BaseModelMixin:
@property
def as_json(self):
return json.dumps(asdict(self))
@classmethod
def from_json(cls, jstr):
d = json.loads(jstr)
return cls(**d)
| 17.8 | 41 | 0.655431 | 33 | 267 | 5.242424 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250936 | 267 | 14 | 42 | 19.071429 | 0.865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80244d2f515e7fe321b4701dfa9c5a5db60edd74 | 2,980 | py | Python | deslib/tests/des/test_knorau.py | qhduan/DESlib | 683802915f5975fb771aee3b0a0091f5b119289f | [
"BSD-3-Clause"
] | null | null | null | deslib/tests/des/test_knorau.py | qhduan/DESlib | 683802915f5975fb771aee3b0a0091f5b119289f | [
"BSD-3-Clause"
] | null | null | null | deslib/tests/des/test_knorau.py | qhduan/DESlib | 683802915f5975fb771aee3b0a0091f5b119289f | [
"BSD-3-Clause"
] | 1 | 2018-12-26T06:56:23.000Z | 2018-12-26T06:56:23.000Z | import pytest
from deslib.des.knora_u import KNORAU
from deslib.tests.examples_test import *
from sklearn.linear_model import Perceptron
@pytest.mark.parametrize('index, expected', [(0, [4.0, 3.0, 4.0]),
(1, [5.0, 2.0, 5.0]),
(... | 33.483146 | 109 | 0.654698 | 416 | 2,980 | 4.413462 | 0.235577 | 0.088235 | 0.141612 | 0.068627 | 0.660131 | 0.620915 | 0.601852 | 0.601852 | 0.601852 | 0.601852 | 0 | 0.03288 | 0.234564 | 2,980 | 88 | 110 | 33.863636 | 0.77203 | 0.079866 | 0 | 0.568966 | 0 | 0 | 0.016465 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.086207 | false | 0 | 0.068966 | 0 | 0.155172 | 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 |
803621a8a7d19c197644848a1a8dfb619ecbdf77 | 729 | py | Python | Simulation/mcad.py | SEPHIRONOVA/TradingDataAnalyzer | 314cb5bc5f5327ceb16d0ce4e283694eb3f16e99 | [
"MIT"
] | null | null | null | Simulation/mcad.py | SEPHIRONOVA/TradingDataAnalyzer | 314cb5bc5f5327ceb16d0ce4e283694eb3f16e99 | [
"MIT"
] | null | null | null | Simulation/mcad.py | SEPHIRONOVA/TradingDataAnalyzer | 314cb5bc5f5327ceb16d0ce4e283694eb3f16e99 | [
"MIT"
] | null | null | null | from Simulation.calculation_status import CalculationStatus
from Simulation.exponential_moving_average import ExponentialMovingAverage
__author__ = 'raymond'
class Mcad:
ema15_constant = 15
ema40_constant = 40
def __init__(self):
self.ema15 = ExponentialMovingAverage(Mcad.ema15_constant)
self.ema40 = Exponen... | 27 | 92 | 0.806584 | 84 | 729 | 6.714286 | 0.369048 | 0.047872 | 0.060284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055988 | 0.11797 | 729 | 26 | 93 | 28.038462 | 0.821151 | 0 | 0 | 0 | 0 | 0 | 0.009602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 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 |
803a0f1bcd2c61febf1dada364726ed95ad3207e | 1,529 | py | Python | accounting/models/payments.py | lubegamark/senkumba | d7caf577ae7d1a44e9faa8a219847d7e5c531777 | [
"MIT"
] | 1 | 2018-02-05T10:28:48.000Z | 2018-02-05T10:28:48.000Z | accounting/models/payments.py | lubegamark/senkumba | d7caf577ae7d1a44e9faa8a219847d7e5c531777 | [
"MIT"
] | null | null | null | accounting/models/payments.py | lubegamark/senkumba | d7caf577ae7d1a44e9faa8a219847d7e5c531777 | [
"MIT"
] | null | null | null | """
Models Dealing with Payments
"""
from django.contrib.auth.models import User
from django.db.models import Model, ForeignKey, CharField, IntegerField, TextField, DateField, DateTimeField
from django.utils import timezone
class Payment(Model):
SHARES = 'shares'
SAVINGS = 'savings'
FINE = 'fine'
OPER... | 27.303571 | 108 | 0.624591 | 169 | 1,529 | 5.52071 | 0.426036 | 0.032154 | 0.041801 | 0.054662 | 0.158628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003466 | 0.245258 | 1,529 | 55 | 109 | 27.8 | 0.805026 | 0.018313 | 0 | 0 | 0 | 0 | 0.087073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.068182 | 0.045455 | 0.659091 | 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 |
803a3bcb849d2294ad2c553a92694a8e96b56211 | 452 | py | Python | functional-problems/maxLevelSumInBinaryTree.py | vikas-t/DS-Algo | ea654d1cad5374c824c52da9d3815a9546eb43fa | [
"Apache-2.0"
] | null | null | null | functional-problems/maxLevelSumInBinaryTree.py | vikas-t/DS-Algo | ea654d1cad5374c824c52da9d3815a9546eb43fa | [
"Apache-2.0"
] | null | null | null | functional-problems/maxLevelSumInBinaryTree.py | vikas-t/DS-Algo | ea654d1cad5374c824c52da9d3815a9546eb43fa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# https://practice.geeksforgeeks.org/problems/max-level-sum-in-binary-tree/1
def maxLevelSum(root):
# Code here
h = {}
level = 0
getLevelSum(root, level, h)
return max(h.values())
def getLevelSum(root, level, h):
if root == None:
return
if level not in h... | 22.6 | 76 | 0.599558 | 64 | 452 | 4.234375 | 0.484375 | 0.221402 | 0.051661 | 0.154982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.256637 | 452 | 20 | 77 | 22.6 | 0.78869 | 0.225664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
803a75175e15fce80ad2adafacedaa4a4488a6d3 | 1,060 | py | Python | examples/draw_tilings.py | alexwlchan/specktre | dcdd0d5486e5c3f612f64221b2e0dbc6fb7adafc | [
"MIT"
] | 11 | 2016-11-29T05:22:51.000Z | 2022-02-04T16:09:59.000Z | examples/draw_tilings.py | alexwlchan/specktre | dcdd0d5486e5c3f612f64221b2e0dbc6fb7adafc | [
"MIT"
] | 5 | 2017-09-02T20:19:07.000Z | 2019-05-03T18:15:42.000Z | examples/draw_tilings.py | alexwlchan/specktre | dcdd0d5486e5c3f612f64221b2e0dbc6fb7adafc | [
"MIT"
] | 7 | 2019-01-31T21:59:27.000Z | 2021-02-24T12:07:00.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""This script demonstrates the use of the tiling generators to draw some
simple grids.
When run from the command-line, it generates three images which
demonstrate black-and-white tilings of the plain.
"""
from PIL import Image, ImageDraw
from specktre.tilings import ... | 32.121212 | 79 | 0.730189 | 142 | 1,060 | 5.267606 | 0.528169 | 0.053476 | 0.072193 | 0.061497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007982 | 0.172642 | 1,060 | 32 | 80 | 33.125 | 0.844926 | 0.335849 | 0 | 0 | 1 | 0 | 0.107872 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
803aecfe7762c9f1b3337e59b1f16ed4c8da705f | 358 | py | Python | demo_app/demo/urls.py | phuonghoanglua/cadmin | 2c61ee15716f15e1ec5ff1670c1003d6496959de | [
"BSD-3-Clause"
] | 10 | 2020-06-13T14:42:29.000Z | 2021-03-15T03:26:18.000Z | demo_app/demo/urls.py | phuonghoanglua/cadmin | 2c61ee15716f15e1ec5ff1670c1003d6496959de | [
"BSD-3-Clause"
] | null | null | null | demo_app/demo/urls.py | phuonghoanglua/cadmin | 2c61ee15716f15e1ec5ff1670c1003d6496959de | [
"BSD-3-Clause"
] | 3 | 2020-11-26T04:57:49.000Z | 2021-03-25T17:08:39.000Z | # -*- coding: utf-8 -*-
from django.urls import path
# Uncomment the next two lines to enable the admin:
import xadmin
xadmin.autodiscover()
# version模块自动注册需要版本控制的 Model
from xadmin.plugins import xversion
xversion.register_models()
from django.contrib import admin
urlpatterns = [
path(r'admin/', admin.site.url... | 19.888889 | 51 | 0.73743 | 48 | 358 | 5.479167 | 0.583333 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.150838 | 358 | 17 | 52 | 21.058824 | 0.861842 | 0.273743 | 0 | 0 | 0 | 0 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
803ebcc433eb9585956b30b0d10fc7f1f6cfec92 | 885 | py | Python | attending/fallback.py | marwahaha/attending | 2517bcd60b38fdd798a55d13c9ecfb726c678d57 | [
"BSD-3-Clause"
] | 2 | 2019-07-13T20:08:13.000Z | 2019-07-14T22:10:00.000Z | attending/fallback.py | marwahaha/attending | 2517bcd60b38fdd798a55d13c9ecfb726c678d57 | [
"BSD-3-Clause"
] | 31 | 2019-05-09T18:52:48.000Z | 2019-09-10T22:26:07.000Z | attending/fallback.py | marwahaha/attending | 2517bcd60b38fdd798a55d13c9ecfb726c678d57 | [
"BSD-3-Clause"
] | 3 | 2019-05-07T15:21:31.000Z | 2019-09-14T04:00:44.000Z | """The code in this module is used when a patient module does not have
`__doc_url__`, or that `__doc_url__` has failed to resolve.
"""
import json
from urllib.request import urlopen
# By default this'll be pypi.org, but can be package index mirror, or an
# internal package index.
API_BASE_URL = "https://pypi.org"
AP... | 25.285714 | 72 | 0.707345 | 133 | 885 | 4.518797 | 0.518797 | 0.02995 | 0.033278 | 0.066556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004172 | 0.187571 | 885 | 34 | 73 | 26.029412 | 0.831711 | 0.308475 | 0 | 0 | 0 | 0 | 0.23773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.111111 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
804311faf831185e7a4f6678b440c21cf0d7f920 | 3,546 | py | Python | data_preprocess/orthaffine_projection/src/cropper.py | ZhiangChen/Deep-Learning | 89e3d440478cd49f54115f34a6a8fb5e5dd29da8 | [
"MIT"
] | 18 | 2016-09-19T01:33:12.000Z | 2021-02-13T09:12:50.000Z | data_preprocess/orthaffine_projection/src/cropper.py | ZhiangChen/Deep-Learning | 89e3d440478cd49f54115f34a6a8fb5e5dd29da8 | [
"MIT"
] | 2 | 2018-04-27T18:30:57.000Z | 2021-11-27T22:19:31.000Z | data_preprocess/orthaffine_projection/src/cropper.py | ZhiangChen/Deep-Learning | 89e3d440478cd49f54115f34a6a8fb5e5dd29da8 | [
"MIT"
] | 8 | 2017-04-04T13:39:59.000Z | 2019-10-12T06:45:58.000Z | #!/usr/bin/env python
import numpy as np
from sensor_msgs.msg import Image
from rospy.numpy_msg import numpy_msg
import matplotlib.pyplot as plt
from cv_bridge import CvBridge, CvBridgeError
import rospy
from rospy_tutorials.msg import Floats
import os
import sys
from six.moves import cPickle as pickle
class Cropper... | 30.568966 | 108 | 0.714326 | 564 | 3,546 | 4.322695 | 0.258865 | 0.062756 | 0.069319 | 0.028712 | 0.287121 | 0.268253 | 0.228876 | 0.212469 | 0.19032 | 0.154225 | 0 | 0.009244 | 0.145798 | 3,546 | 115 | 109 | 30.834783 | 0.795642 | 0.00564 | 0 | 0.170213 | 0 | 0.010638 | 0.099856 | 0.020719 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | 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 |
8047a80888c898da0d149ef6d65dbfe767195f57 | 10,250 | py | Python | main.py | amar-laksh/pyWrite | 59fcf3fc6eb9ace1810f8c8945ac6a90a32ee0d1 | [
"MIT"
] | null | null | null | main.py | amar-laksh/pyWrite | 59fcf3fc6eb9ace1810f8c8945ac6a90a32ee0d1 | [
"MIT"
] | null | null | null | main.py | amar-laksh/pyWrite | 59fcf3fc6eb9ace1810f8c8945ac6a90a32ee0d1 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import tensorflow as tf
from scipy import ndimage
import sys
import os
import math
def getBestShift(img):
"""
params - image to get shifts of
returns - finds the best shifts to do on the image and returns the x and y coordinates of shifts
"""
cy,cx = ndimage.measuremen... | 39.423077 | 134 | 0.505171 | 1,275 | 10,250 | 3.967059 | 0.262745 | 0.011862 | 0.02847 | 0.015817 | 0.146896 | 0.111111 | 0.082246 | 0.07928 | 0.065045 | 0.040134 | 0 | 0.051697 | 0.379122 | 10,250 | 259 | 135 | 39.57529 | 0.743086 | 0.014439 | 0 | 0.069444 | 0 | 0 | 0.012133 | 0 | 0 | 0 | 0.000533 | 0.007722 | 0 | 0 | null | null | 0 | 0.048611 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
804816c0f06a776a14183b608e0c935c28cec202 | 4,551 | py | Python | baseline/data_prepare/prepare.py | icoxfog417/yans-2018-ttk | 040c41e8d42dad21edf5e4a444e15949281b72b3 | [
"MIT"
] | 1 | 2018-08-27T19:01:10.000Z | 2018-08-27T19:01:10.000Z | baseline/data_prepare/prepare.py | icoxfog417/yans-2018-ttk | 040c41e8d42dad21edf5e4a444e15949281b72b3 | [
"MIT"
] | null | null | null | baseline/data_prepare/prepare.py | icoxfog417/yans-2018-ttk | 040c41e8d42dad21edf5e4a444e15949281b72b3 | [
"MIT"
] | null | null | null | import os,sys,glob
from collections import Counter
from shutil import copyfile,rmtree
from sklearn.model_selection import train_test_split
sys.path.insert(1,os.path.join(sys.path[0],'..'))
from models.Paper import Paper
from models.Review import Review
def main(args):
print args
data_dir = args[1]
pdf_dir = os... | 35.834646 | 117 | 0.675236 | 674 | 4,551 | 4.390208 | 0.209199 | 0.056776 | 0.060831 | 0.066239 | 0.238256 | 0.226766 | 0.181142 | 0.148361 | 0.108821 | 0.057452 | 0 | 0.005095 | 0.18062 | 4,551 | 126 | 118 | 36.119048 | 0.788415 | 0.028785 | 0 | 0.09 | 0 | 0.01 | 0.162438 | 0.017898 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | 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 |
8048f22bcd694817199eed974a8a0b92a0f61006 | 5,612 | py | Python | MACchangerGUI.py | dinhkhuong/MACchangerGUI | f5693ac5f40e5f4e622a020ce0b0aecdee2d3191 | [
"MIT"
] | 1 | 2022-03-31T13:38:37.000Z | 2022-03-31T13:38:37.000Z | MACchangerGUI.py | dinhkhuong/MACchangerGUI | f5693ac5f40e5f4e622a020ce0b0aecdee2d3191 | [
"MIT"
] | 1 | 2020-11-26T07:06:21.000Z | 2020-12-01T07:13:21.000Z | MACchangerGUI.py | dinhkhuong/MACchangerGUI | f5693ac5f40e5f4e622a020ce0b0aecdee2d3191 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MACchangerGUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 imp... | 56.12 | 175 | 0.726835 | 544 | 5,612 | 7.393382 | 0.288603 | 0.026852 | 0.027847 | 0.031328 | 0.327698 | 0.225758 | 0.199403 | 0.178518 | 0.114371 | 0.023869 | 0 | 0.022771 | 0.170527 | 5,612 | 99 | 176 | 56.686869 | 0.841246 | 0.049537 | 0 | 0.096386 | 1 | 0 | 0.095083 | 0.031184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.024096 | 0 | 0.060241 | 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 |
80562d4a3b778e058a515222b5d68350d94467cf | 328 | py | Python | python/beginner/sum-of-all-numbers-edeard95.py | saumyasingh048/hacktoberithms | 6eb5472e846650b73e75e04f717bdf500d171052 | [
"MIT"
] | 16 | 2018-10-05T07:35:06.000Z | 2021-10-02T12:12:52.000Z | python/beginner/sum-of-all-numbers-edeard95.py | saumyasingh048/hacktoberithms | 6eb5472e846650b73e75e04f717bdf500d171052 | [
"MIT"
] | 50 | 2018-10-04T00:04:24.000Z | 2019-10-25T16:29:58.000Z | python/beginner/sum-of-all-numbers-edeard95.py | saumyasingh048/hacktoberithms | 6eb5472e846650b73e75e04f717bdf500d171052 | [
"MIT"
] | 115 | 2018-10-04T02:42:18.000Z | 2021-01-27T17:34:21.000Z | A = [10,13,7]
B = [1,2,3,4,5,6]
def sum_all(A, B):
ASum = sum(A)
#print(ASum)
BSum = sum(B)
#print(BSum)
TSum = ASum+BSum
#print(TSum)
return ASum, BSum, TSum
ASum, BSum, TSum = sum_all(A,B)
print('The sum of list 1 is '+str(ASum))
print('The sum of list 2 is '+str(BSum))
print('The sum of both lists is '+str... | 19.294118 | 44 | 0.621951 | 69 | 328 | 2.927536 | 0.376812 | 0.158416 | 0.163366 | 0.193069 | 0.168317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048689 | 0.185976 | 328 | 16 | 45 | 20.5 | 0.707865 | 0.10061 | 0 | 0 | 0 | 0 | 0.229452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.272727 | 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 |
8058ddf1c2599ade98d4bb5f8edd9ac0cd81b30b | 602 | py | Python | app/helper.py | mnadev/Muezzin | 95f51ae4c3b64d2c49fe76d8bd599bec8471ac03 | [
"MIT"
] | 2 | 2020-11-30T01:29:33.000Z | 2021-01-06T08:55:21.000Z | app/helper.py | mnadev/Muezzin | 95f51ae4c3b64d2c49fe76d8bd599bec8471ac03 | [
"MIT"
] | null | null | null | app/helper.py | mnadev/Muezzin | 95f51ae4c3b64d2c49fe76d8bd599bec8471ac03 | [
"MIT"
] | null | null | null | import datetime
def celcius_to_fahrenheit(celsius):
"""
Converts a temperature from celcius to fahrenheit
:param celsius: The temperature in Celcius
:return: The converted fahrenheit temperature
"""
return round((celsius * 9 / 5) + 32, 2)
def get_tomorrow_date():
"""
Creates and retu... | 28.666667 | 75 | 0.70598 | 75 | 602 | 5.613333 | 0.546667 | 0.042755 | 0.090261 | 0.128266 | 0.213777 | 0.213777 | 0.213777 | 0 | 0 | 0 | 0 | 0.020921 | 0.20598 | 602 | 20 | 76 | 30.1 | 0.859833 | 0.450166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
805951c117269dbcdaa1ce540057684ae2be1b4b | 1,301 | py | Python | blog/migrations/0007_mention.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 3 | 2016-10-10T10:07:39.000Z | 2018-10-29T19:57:52.000Z | blog/migrations/0007_mention.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 12 | 2016-11-04T18:59:17.000Z | 2022-03-11T23:32:52.000Z | blog/migrations/0007_mention.py | higab85/drugsandme | 7db66d9687ac9a04132de94edda364f191d497d7 | [
"MIT"
] | 2 | 2016-09-29T22:48:26.000Z | 2019-10-01T19:55:14.000Z | # Generated by Django 2.0.9 on 2018-10-14 09:45
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailimages', '0021_image_file_hash'),
... | 37.171429 | 191 | 0.594158 | 127 | 1,301 | 5.913386 | 0.582677 | 0.04261 | 0.055925 | 0.087883 | 0.090546 | 0.090546 | 0.090546 | 0 | 0 | 0 | 0 | 0.040752 | 0.264412 | 1,301 | 34 | 192 | 38.264706 | 0.743992 | 0.034589 | 0 | 0 | 1 | 0 | 0.203349 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
337ec3fda96e95204a6e2b6efda44797a6f81453 | 537 | py | Python | write-a-function.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | write-a-function.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | write-a-function.py | iliankostadinov/hackerrank-python | 4082eb5a6da7ab11ead9b687fdc2d9a846f59f99 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
def is_leap(year):
leap = False
if year % 400 == 0:
leap = True
elif year % 100 == 0:
leap = False
elif year % 4 == 0:
leap = True
return leap
if __name__ == '__main__':
year = int(raw_input())
if year < 1900:
print "You should enter y... | 19.178571 | 68 | 0.556797 | 79 | 537 | 3.620253 | 0.405063 | 0.052448 | 0.104895 | 0.157343 | 0.433566 | 0.433566 | 0.433566 | 0.433566 | 0.433566 | 0.433566 | 0 | 0.087324 | 0.33892 | 537 | 27 | 69 | 19.888889 | 0.71831 | 0.029795 | 0 | 0.5 | 0 | 0 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3395845f1eb6aad52e016f2d71f93fea829ca31c | 408 | py | Python | NysaServer/server/server_base.py | CospanDesign/nysa-server | b35461a3f0cb293322b6746723672d3e4cb61fd4 | [
"MIT"
] | 1 | 2015-05-10T13:39:47.000Z | 2015-05-10T13:39:47.000Z | NysaServer/server/server_base.py | CospanDesign/nysa-server | b35461a3f0cb293322b6746723672d3e4cb61fd4 | [
"MIT"
] | null | null | null | NysaServer/server/server_base.py | CospanDesign/nysa-server | b35461a3f0cb293322b6746723672d3e4cb61fd4 | [
"MIT"
] | null | null | null |
class ScriptBase(type):
def __init__(cls, name, bases, attrs):
if cls is None:
return
if not hasattr(cls, "plugins"):
cls.plugins = []
else:
cls.plugins.append(cls)
class ServerBase:
__metaclass__ = ScriptBase
def __init__(self):
su... | 17 | 43 | 0.54902 | 44 | 408 | 4.727273 | 0.568182 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348039 | 408 | 23 | 44 | 17.73913 | 0.781955 | 0 | 0 | 0 | 0 | 0 | 0.017199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
339f43eadb4d41630604ef3f58bf059eaafde3e8 | 2,694 | py | Python | picoCTF/cryptography/credstuff/examplecode.py | Estheryu991/CaptureTheFlag | ada4528f12fe4ae1deae18a5c75323c4c2361faf | [
"MIT"
] | null | null | null | picoCTF/cryptography/credstuff/examplecode.py | Estheryu991/CaptureTheFlag | ada4528f12fe4ae1deae18a5c75323c4c2361faf | [
"MIT"
] | null | null | null | picoCTF/cryptography/credstuff/examplecode.py | Estheryu991/CaptureTheFlag | ada4528f12fe4ae1deae18a5c75323c4c2361faf | [
"MIT"
] | null | null | null | #this code is just an example from 2018 nur luege /
from flask import Flask, request, render_template, abort
import os, requests
app = Flask(__name__)
class user:
def __init__(self, username, password):
self.username = username
self.__password = password
self.files = []
def getPass(se... | 36.405405 | 106 | 0.604306 | 324 | 2,694 | 4.941358 | 0.342593 | 0.137414 | 0.118676 | 0.104934 | 0.153029 | 0.114304 | 0.114304 | 0.114304 | 0.114304 | 0.114304 | 0 | 0.012627 | 0.235709 | 2,694 | 73 | 107 | 36.90411 | 0.764934 | 0.042316 | 0 | 0.05 | 0 | 0 | 0.156711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0.15 | 0.033333 | 0.033333 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33a0903c7f23c5306ee7ef8a64e92859f18f2214 | 310 | py | Python | snmpsim/record/sap.py | RuiCunhaM/snmpsim | a2d845724c0be001e1956a538b56bea0103a8fc0 | [
"BSD-2-Clause"
] | 298 | 2016-03-17T18:12:52.000Z | 2022-03-08T20:30:41.000Z | snmpsim/record/sap.py | RuiCunhaM/snmpsim | a2d845724c0be001e1956a538b56bea0103a8fc0 | [
"BSD-2-Clause"
] | 143 | 2016-04-02T02:07:34.000Z | 2022-02-09T19:05:57.000Z | snmpsim/record/sap.py | RuiCunhaM/snmpsim | a2d845724c0be001e1956a538b56bea0103a8fc0 | [
"BSD-2-Clause"
] | 93 | 2016-04-02T15:29:13.000Z | 2022-03-29T07:42:22.000Z | #
# This file is part of snmpsim software.
#
# Copyright (c) 2010-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/snmpsim/license.html
#
from snmpsim.grammar import sap
from snmpsim.record import dump
class SapRecord(dump.DumpRecord):
grammar = sap.SapGrammar()
ext = 'sapwalk'
| 22.142857 | 59 | 0.732258 | 42 | 310 | 5.404762 | 0.738095 | 0.096916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030418 | 0.151613 | 310 | 13 | 60 | 23.846154 | 0.8327 | 0.470968 | 0 | 0 | 0 | 0 | 0.044586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
33a921b287c7c5cb4217166bfae3fd3d348f960d | 2,349 | py | Python | hintgen/migrations/0014_auto_20170114_1919.py | krivers/ITAP-django | dd6af07b02897f5b11305a1888a0b8df1f0f3d8e | [
"MIT"
] | 19 | 2017-06-22T20:58:52.000Z | 2022-03-29T18:30:30.000Z | hintgen/migrations/0014_auto_20170114_1919.py | akonoroshi/ITAP-django | 17d690e0f4c3bbc6bb73406bcaedb673225d34e8 | [
"MIT"
] | 1 | 2018-08-30T15:04:28.000Z | 2020-08-12T20:50:30.000Z | hintgen/migrations/0014_auto_20170114_1919.py | akonoroshi/ITAP-django | 17d690e0f4c3bbc6bb73406bcaedb673225d34e8 | [
"MIT"
] | 5 | 2019-07-01T12:59:01.000Z | 2021-12-27T05:42:50.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-01-15 00:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hintgen', '0013_auto_20170114_1854'),
]
operations =... | 41.210526 | 162 | 0.63857 | 257 | 2,349 | 5.661479 | 0.237354 | 0.049485 | 0.076976 | 0.120962 | 0.674227 | 0.674227 | 0.613058 | 0.613058 | 0.540206 | 0.461856 | 0 | 0.017778 | 0.233716 | 2,349 | 56 | 163 | 41.946429 | 0.790556 | 0.028097 | 0 | 0.510204 | 1 | 0 | 0.163158 | 0.019737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.122449 | 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 |
33ae6a7f33963f683a39248063279fdf53d98dc7 | 1,099 | py | Python | tests/test_aaf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | null | null | null | tests/test_aaf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | null | null | null | tests/test_aaf.py | shahbazk8194/pyaaf2 | 56a49b45b7aee0454629f79497e3f476ea08328e | [
"MIT"
] | null | null | null | from __future__ import (
unicode_literals,
absolute_import,
print_function,
division,
)
import os
from aaf2.file import AAFFile
base = os.path.join(os.path.dirname(os.path.abspath(__file__)))
test_dir = os.path.join(base, 'results')
if not os.path.exists(test_dir):
os.makedirs(test_dir)
test_... | 30.527778 | 116 | 0.639672 | 156 | 1,099 | 4.288462 | 0.474359 | 0.071749 | 0.074738 | 0.041854 | 0.203288 | 0.203288 | 0.203288 | 0.122571 | 0.122571 | 0.122571 | 0 | 0.041522 | 0.211101 | 1,099 | 35 | 117 | 31.4 | 0.730104 | 0.428571 | 0 | 0 | 0 | 0 | 0.066451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.263158 | 0 | 0.263158 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
33c36ed966742f026fb981f08cbfedcdb5f74bcf | 379 | py | Python | test_data/intermediate/expected/class/methods_with_contracts/meta_model.py | aas-core-works/aas-core-csharp-codegen | 731f706e2d12bf80722ac55d920fcf5402fb26ef | [
"MIT"
] | null | null | null | test_data/intermediate/expected/class/methods_with_contracts/meta_model.py | aas-core-works/aas-core-csharp-codegen | 731f706e2d12bf80722ac55d920fcf5402fb26ef | [
"MIT"
] | 2 | 2021-11-17T22:11:59.000Z | 2021-11-18T15:17:40.000Z | test_data/intermediate/expected/class/methods_with_contracts/meta_model.py | aas-core-works/aas-core-csharp-codegen | 731f706e2d12bf80722ac55d920fcf5402fb26ef | [
"MIT"
] | null | null | null | class Concrete:
x: int
@require(lambda x: x > 0)
def __init__(self, x: int) -> None:
self.x = x
@require(lambda self: self.x > 2)
@require(lambda number: number > 0)
def some_func(self, number: int) -> int:
"""Do something."""
class Reference:
pass
__book_url__ = "dummy... | 18.047619 | 44 | 0.614776 | 51 | 379 | 4.235294 | 0.509804 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.253298 | 379 | 20 | 45 | 18.95 | 0.75265 | 0.034301 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33c3804e0586688b2c72fdc0b4c244089564e1c0 | 788 | py | Python | zoo/datacenters/tasks.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 90 | 2018-11-20T10:58:24.000Z | 2022-02-19T16:12:46.000Z | zoo/datacenters/tasks.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 348 | 2018-11-21T09:22:31.000Z | 2021-11-03T13:45:08.000Z | zoo/datacenters/tasks.py | aexvir/the-zoo | 7816afb9a0a26c6058b030b4a987c73e952d92bd | [
"MIT"
] | 11 | 2018-12-08T18:42:07.000Z | 2021-02-21T06:27:58.000Z | import arrow
from celery import shared_task
from ..services.models import Service
from .mapping import AmazonRancherMapper, GoogleCloudPlatformMapper, map_infra_to_nodes
from .models import InfraNode
@shared_task
def link_service_to_datacenters(service_id):
service = Service.objects.get(id=service_id)
amazon... | 28.142857 | 87 | 0.784264 | 98 | 788 | 5.989796 | 0.438776 | 0.074957 | 0.088586 | 0.163543 | 0.158433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001464 | 0.133249 | 788 | 27 | 88 | 29.185185 | 0.85798 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.35 | 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 |
33c51cebcd6e5301e1b741e929139602ae01c5d4 | 1,852 | py | Python | versions/3.0/karma/python/uri_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 5 | 2015-04-26T19:39:44.000Z | 2018-12-24T13:17:42.000Z | versions/3.0/karma/python/uri_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 7 | 2016-03-23T16:52:32.000Z | 2018-07-24T03:08:05.000Z | versions/3.0/karma/python/uri_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 28 | 2015-04-08T22:39:07.000Z | 2021-12-25T22:16:36.000Z | from urllib import quote
import re
import uuid
class UM(object):
def __init__(self):
self.name = "Uri Manipulation"
@staticmethod
def uuid_uri(prefix):
"""Construct a URI using a UUID"""
return prefix + str(uuid.uuid1())
@staticmethod
def uuid_uri_or_empty(prefix, value)... | 26.84058 | 101 | 0.545896 | 241 | 1,852 | 4.107884 | 0.348548 | 0.106061 | 0.039394 | 0.044444 | 0.19596 | 0.19596 | 0.149495 | 0.034343 | 0.034343 | 0 | 0 | 0.008842 | 0.328294 | 1,852 | 68 | 102 | 27.235294 | 0.786977 | 0.218683 | 0 | 0.333333 | 0 | 0 | 0.054953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.066667 | 0 | 0.533333 | 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 |
33cfea6cd88f5037cc8cb035ee8f04629cce9a68 | 629 | py | Python | gempy/gemini/eti/sextractoretiparam.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 19 | 2017-10-23T14:52:51.000Z | 2022-03-28T04:49:00.000Z | gempy/gemini/eti/sextractoretiparam.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 194 | 2017-11-01T17:32:45.000Z | 2022-03-31T21:32:59.000Z | gempy/gemini/eti/sextractoretiparam.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 16 | 2017-11-01T05:18:04.000Z | 2021-12-14T23:08:57.000Z | from gempy.eti_core.etiparam import ETIParam
PARAMETERS = "parameters"
__PARAMETERS_SET_INTERNALLY__ = ["FLAG_IMAGE",
"CHECKIMAGE_NAME",
"CATALOG_NAME"]
class SExtractorETIParam(ETIParam):
def __init__(self, params):
super().__init__(para... | 28.590909 | 71 | 0.572337 | 61 | 629 | 5.508197 | 0.655738 | 0.089286 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.36089 | 629 | 21 | 72 | 29.952381 | 0.835821 | 0.103339 | 0 | 0 | 0 | 0 | 0.08363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.066667 | 0 | 0.266667 | 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 |
33d3d3a3ebf5947824ef8adf1883e16e3351dca2 | 671 | py | Python | addons/rigonthefly/RemoveWorldTransformsOperator.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/rigonthefly/RemoveWorldTransformsOperator.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/rigonthefly/RemoveWorldTransformsOperator.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | #########################################
####### Rig On The Fly #######
####### Copyright © 2020 Dypsloom #######
####### https://dypsloom.com/ #######
#########################################
import bpy
from . RemoveWorldTransforms import RemoveWorldTransformsUtils
class RemoveWorldTransformsOperato... | 37.277778 | 71 | 0.596125 | 55 | 671 | 7.163636 | 0.781818 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008834 | 0.156483 | 671 | 18 | 72 | 37.277778 | 0.685512 | 0.107303 | 0 | 0 | 0 | 0 | 0.250535 | 0.083512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.9 | 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 |
33d5571f0c4eba22da655b34582ca54d4d87995d | 1,220 | py | Python | src/sunstruck/schemas/query_filter.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | 3 | 2021-04-04T07:48:48.000Z | 2022-02-19T17:42:12.000Z | src/sunstruck/schemas/query_filter.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | src/sunstruck/schemas/query_filter.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | from typing import Callable, Dict, List, Optional
from pydantic import root_validator, validator
from pydantic.fields import ModelField
from sqlalchemy import and_, or_
from const import FilterOperator
from schemas.bases import BaseModel
class FilterParam(BaseModel):
conjunctive: Optional[Callable]
field_na... | 27.111111 | 82 | 0.642623 | 144 | 1,220 | 5.270833 | 0.444444 | 0.063241 | 0.02635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001093 | 0.25 | 1,220 | 44 | 83 | 27.727273 | 0.828415 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.181818 | 0.090909 | 0.757576 | 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 |
33dbad9f0de7a35f51ac75dc6047f177b18106a7 | 4,057 | py | Python | src/Pybind11Wraps/SPH/SPHMOD.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Pybind11Wraps/SPH/SPHMOD.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Pybind11Wraps/SPH/SPHMOD.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | """
Spheral SPH module.
Provides implementations of SPH, PSPH, and ASPH
"""
from PYB11Generator import *
from SpheralCommon import *
from spheralDimensions import *
dims = spheralDimensions()
from NodeCoupling import *
from SPHHydroBase import *
from PSPHHydroBase import *
from SolidSPHHydroBase import *
#--------... | 48.879518 | 132 | 0.537343 | 281 | 4,057 | 7.733096 | 0.295374 | 0.115048 | 0.061206 | 0.086977 | 0.239301 | 0.239301 | 0.239301 | 0.217211 | 0.217211 | 0.117809 | 0 | 0.007702 | 0.199901 | 4,057 | 82 | 133 | 49.47561 | 0.661738 | 0.209268 | 0 | 0.181818 | 0 | 0 | 0.572428 | 0.470177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.181818 | 0 | 0.254545 | 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 |
33ddde40fd8b008fa76810a6cefb2b5dd4efab8b | 499 | py | Python | utils/middleware_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-30T05:46:44.000Z | 2021-09-30T05:46:44.000Z | utils/middleware_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | null | null | null | utils/middleware_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-24T15:46:39.000Z | 2021-09-24T15:46:39.000Z | #!/usr/bin/env python
# -*- coding=utf-8 -*-
# 关闭浏览器缓存
# https://stackoverflow.com/questions/2095520/fighting-client-side-caching-in-django
# This approach (slight modification of L. De Leo's solution) with a custom middleware has worked well for me as a site wide solution:
from django.utils.cache import add_never_cac... | 38.384615 | 134 | 0.769539 | 68 | 499 | 5.544118 | 0.838235 | 0.04244 | 0.068966 | 0.106101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.138277 | 499 | 13 | 135 | 38.384615 | 0.85814 | 0.531062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
33e4f9fa7f1353aaa432d38efa2a2309018c12e0 | 3,021 | py | Python | xmppd.py | ogashiwa/xmppd | 315883ec8ad8d12105eeb18ae1b316c90fb65ed4 | [
"Unlicense"
] | 2 | 2015-07-07T15:51:53.000Z | 2021-02-01T15:22:21.000Z | xmppd.py | ogashiwa/xmppd | 315883ec8ad8d12105eeb18ae1b316c90fb65ed4 | [
"Unlicense"
] | null | null | null | xmppd.py | ogashiwa/xmppd | 315883ec8ad8d12105eeb18ae1b316c90fb65ed4 | [
"Unlicense"
] | null | null | null | #!/usr/local/bin/python3.2
# Copyright (c) 2011, Nobuo Ogashiwa <ogashiwa@wide.ad.jp>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the ab... | 34.329545 | 81 | 0.585237 | 360 | 3,021 | 4.886111 | 0.494444 | 0.006822 | 0.01137 | 0.01535 | 0.122797 | 0.095509 | 0.077317 | 0.077317 | 0.077317 | 0.077317 | 0 | 0.006833 | 0.321748 | 3,021 | 87 | 82 | 34.724138 | 0.851635 | 0.515061 | 0 | 0.291667 | 0 | 0 | 0.150313 | 0.025052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.041667 | 0 | 0.083333 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33eaee95aacc481ecdc1222d84b0361b53e49cc7 | 1,012 | py | Python | creators/models.py | samuelviveiros/connector | 85f7a93f15ef3d01b648a64422fbfdea0191de76 | [
"MIT"
] | null | null | null | creators/models.py | samuelviveiros/connector | 85f7a93f15ef3d01b648a64422fbfdea0191de76 | [
"MIT"
] | 13 | 2021-11-23T00:19:34.000Z | 2021-11-29T21:05:57.000Z | creators/models.py | samuelviveiros/connector | 85f7a93f15ef3d01b648a64422fbfdea0191de76 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class Creator(models.Model):
name = models.CharField(max_length=255)
phone = models.CharField(max_length=255, verbose_name='Phone number')
created_at = models.DateTimeField(auto_now_add=True, verbose_name='Created at')
updated_at... | 40.48 | 118 | 0.751976 | 136 | 1,012 | 5.345588 | 0.316176 | 0.136176 | 0.115543 | 0.137552 | 0.462173 | 0.332875 | 0.332875 | 0.332875 | 0.332875 | 0.332875 | 0 | 0.006857 | 0.135375 | 1,012 | 24 | 119 | 42.166667 | 0.824 | 0 | 0 | 0.333333 | 0 | 0 | 0.091897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
33eba55b268408ac2bb87a3354c7100b38a3f5c9 | 17,071 | py | Python | scripts/3DcellStats.py | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | 1 | 2019-08-29T20:48:32.000Z | 2019-08-29T20:48:32.000Z | scripts/3DcellStats.py | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | 1 | 2021-11-02T18:14:21.000Z | 2021-11-02T18:19:50.000Z | scripts/3DcellStats.py | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | null | null | null | # Copyright (C) 2011 - 2019, Raytheon BBN Technologies and contributors listed
# in the AUTHORS file in TASBE Flow Analytics distribution's top directory.
#
# This file is part of the TASBE Flow Analytics package, and is distributed
# under the terms of the GNU General Public License, with a linking
# exception, as des... | 42.150617 | 168 | 0.613555 | 2,001 | 17,071 | 5.218891 | 0.234383 | 0.04424 | 0.080437 | 0.012066 | 0.192569 | 0.127262 | 0.076319 | 0.061572 | 0.058221 | 0.056784 | 0 | 0.008268 | 0.270224 | 17,071 | 405 | 169 | 42.150617 | 0.829989 | 0.128405 | 0 | 0.108772 | 0 | 0.014035 | 0.187157 | 0.013127 | 0.003509 | 0 | 0.000677 | 0 | 0 | 0 | null | null | 0 | 0.017544 | null | null | 0.154386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33f5b67844f6f68e17af02d55a105016d4dea065 | 2,643 | py | Python | leaf_recognition/utils/RedisBackend.py | xudshen/leaf_recognition | 6a47b02b247ff2c686dbd8df10770a207a7d5bf5 | [
"MIT"
] | 1 | 2015-09-02T21:24:03.000Z | 2015-09-02T21:24:03.000Z | leaf_recognition/utils/RedisBackend.py | xudshen/leaf_recognition | 6a47b02b247ff2c686dbd8df10770a207a7d5bf5 | [
"MIT"
] | null | null | null | leaf_recognition/utils/RedisBackend.py | xudshen/leaf_recognition | 6a47b02b247ff2c686dbd8df10770a207a7d5bf5 | [
"MIT"
] | null | null | null | #! /usr/bin/python
import redis
import base64
class RedisBackend:
_r_sample_id = 'next.sample.id'
_r_samples = 'samples'
_r_samples_hmap = 'samples.hmap'
_r_samples_features = 'samples:%s:features'
_r_species_id = 'next.species.id'
_r_species = 'species'
_r_species_hmap = 'species.hmap'
... | 34.324675 | 84 | 0.626939 | 374 | 2,643 | 4.082888 | 0.176471 | 0.108055 | 0.089064 | 0.05501 | 0.339882 | 0.301899 | 0.138834 | 0.05501 | 0 | 0 | 0 | 0.00823 | 0.264472 | 2,643 | 76 | 85 | 34.776316 | 0.777263 | 0.022701 | 0 | 0.066667 | 0 | 0 | 0.05157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.033333 | 0.066667 | 0.533333 | 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 |
33f5f41ba8552318a31558bd0664f2658e85c461 | 1,101 | py | Python | example.py | statusfailed/riscv-macroassembler | a0e376dfcfec1d0692c9966815f3568a1a759429 | [
"MIT"
] | 1 | 2021-02-25T08:25:58.000Z | 2021-02-25T08:25:58.000Z | example.py | statusfailed/riscv-macroassembler | a0e376dfcfec1d0692c9966815f3568a1a759429 | [
"MIT"
] | null | null | null | example.py | statusfailed/riscv-macroassembler | a0e376dfcfec1d0692c9966815f3568a1a759429 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from macroassembler import instructions
# Generate a simple "Hello, World" program that writes to the QEMU Virt
# machine's UART device
def gen_hello_world():
# Put the UART address (0x10000000) into R1
yield 'addi', dict(imm=0x1, rs1=0x0, rd=0x1) # R1 ← R0 + 1
... | 37.965517 | 82 | 0.621253 | 177 | 1,101 | 3.785311 | 0.559322 | 0.059701 | 0.038806 | 0.047761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063473 | 0.241599 | 1,101 | 28 | 83 | 39.321429 | 0.734132 | 0.296094 | 0 | 0 | 1 | 0 | 0.091503 | 0 | 0 | 0 | 0.036601 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33f7429a1090e3fe257673485a40d71de7f21e21 | 8,041 | py | Python | src/anim_test_old.py | MaxThom/SpectrumLight | 34fcc670ccb35c956518453ceef94bd17611c771 | [
"MIT"
] | null | null | null | src/anim_test_old.py | MaxThom/SpectrumLight | 34fcc670ccb35c956518453ceef94bd17611c771 | [
"MIT"
] | null | null | null | src/anim_test_old.py | MaxThom/SpectrumLight | 34fcc670ccb35c956518453ceef94bd17611c771 | [
"MIT"
] | null | null | null | from rpi_ws281x import Color, PixelStrip, ws
import time
from threading import Thread
import random
# LED strip configuration:
LED_COUNT = 2304 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 8... | 40.817259 | 134 | 0.621191 | 1,183 | 8,041 | 4.090448 | 0.114117 | 0.037198 | 0.078115 | 0.094854 | 0.738996 | 0.711511 | 0.687952 | 0.617483 | 0.589585 | 0.565819 | 0 | 0.100972 | 0.244994 | 8,041 | 197 | 135 | 40.817259 | 0.696096 | 0.347718 | 0 | 0.330645 | 0 | 0 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072581 | false | 0 | 0.032258 | 0 | 0.104839 | 0.040323 | 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 |
d50544b3e849537c9ee5a27d6a41925ebf154b3d | 6,892 | py | Python | tests/test_tokenize_types.py | diyclassics/qcrit | 2edd15720f709202d0bfa3a5dc2dfcfcbdbc5558 | [
"MIT"
] | null | null | null | tests/test_tokenize_types.py | diyclassics/qcrit | 2edd15720f709202d0bfa3a5dc2dfcfcbdbc5558 | [
"MIT"
] | 5 | 2020-03-24T17:38:39.000Z | 2021-05-23T00:55:25.000Z | tests/test_tokenize_types.py | diyclassics/qcrit | 2edd15720f709202d0bfa3a5dc2dfcfcbdbc5558 | [
"MIT"
] | 2 | 2019-12-23T20:02:30.000Z | 2020-03-01T13:15:55.000Z | # -*- coding: utf-8 -*-
#pylint: disable = missing-docstring, blacklisted-name, unused-argument, invalid-name, line-too-long, protected-access
import unittest
import re
from nltk.tokenize.punkt import PunktSentenceTokenizer, PunktLanguageVars
import context #pylint: disable=unused-import
from qcrit import textual_fea... | 56.03252 | 638 | 0.59112 | 1,009 | 6,892 | 4.080278 | 0.261645 | 0.03692 | 0.048093 | 0.054409 | 0.703911 | 0.699781 | 0.682293 | 0.680107 | 0.674034 | 0.633957 | 0 | 0.021536 | 0.14437 | 6,892 | 122 | 639 | 56.491803 | 0.65474 | 0.045995 | 0 | 0.428571 | 0 | 0.076923 | 0.463463 | 0.031698 | 0 | 0 | 0 | 0.008197 | 0.120879 | 1 | 0.131868 | false | 0.010989 | 0.054945 | 0 | 0.197802 | 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 |
d5079b575b2d1fa9a4ab1775056adeed33f98655 | 2,201 | py | Python | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T10:57:32.000Z | 2020-07-23T10:57:32.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class Gatekeeper(recipe_api.RecipeApi):
"""Module for Gatekeeper NG."""
def __call__(self, gatekeeper_json, gateke... | 39.303571 | 80 | 0.633348 | 286 | 2,201 | 4.72028 | 0.342657 | 0.142222 | 0.105926 | 0.115556 | 0.09037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002271 | 0.199909 | 2,201 | 55 | 81 | 40.018182 | 0.764338 | 0.089959 | 0 | 0 | 0 | 0 | 0.280843 | 0.044132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.068182 | 0.022727 | 0 | 0.068182 | 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 |
d50a80e695f671ee9c1311010a0becab9a912af2 | 4,121 | py | Python | src/depthrender/depthrender_pb2_grpc.py | probcomp/depthrender | 06439d68a0128e9c0fc028b11a79513e5e142a5e | [
"MIT"
] | null | null | null | src/depthrender/depthrender_pb2_grpc.py | probcomp/depthrender | 06439d68a0128e9c0fc028b11a79513e5e142a5e | [
"MIT"
] | null | null | null | src/depthrender/depthrender_pb2_grpc.py | probcomp/depthrender | 06439d68a0128e9c0fc028b11a79513e5e142a5e | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import depthrender.depthrender_pb2 as depthrender__pb2
class DepthRenderStub(object):
"""The greeting service definition.
"""
def __init__(self, c... | 40.009709 | 106 | 0.675807 | 345 | 4,121 | 7.823188 | 0.278261 | 0.072619 | 0.035569 | 0.026677 | 0.523157 | 0.412745 | 0.385328 | 0.357169 | 0.357169 | 0.357169 | 0 | 0.004529 | 0.249939 | 4,121 | 102 | 107 | 40.401961 | 0.868651 | 0.111138 | 0 | 0.444444 | 1 | 0 | 0.085532 | 0.051375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0.027778 | 0.180556 | 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 |
d50f47f7cc9d5666617a2e3abb910c26f3e5b46e | 3,809 | py | Python | verify_vote.py | betatim/lhcb-voting | ac78abb8660eb7cd9050b0c1dab7a8e8958ae525 | [
"MIT"
] | 4 | 2015-02-27T11:23:02.000Z | 2017-05-11T10:30:50.000Z | verify_vote.py | betatim/lhcb-voting | ac78abb8660eb7cd9050b0c1dab7a8e8958ae525 | [
"MIT"
] | null | null | null | verify_vote.py | betatim/lhcb-voting | ac78abb8660eb7cd9050b0c1dab7a8e8958ae525 | [
"MIT"
] | null | null | null | import sys
import csv
import operator
from collections import Counter
from itertools import chain
def load_votes(fname="election.csv"):
votes = []
with open(fname) as csvfile:
lines = csv.reader(csvfile)
for line in lines:
votes.append(line[1:])
# slice off the header
retu... | 28.425373 | 70 | 0.619585 | 460 | 3,809 | 4.986957 | 0.3 | 0.083697 | 0.019616 | 0.020924 | 0.11116 | 0.076722 | 0.05231 | 0.05231 | 0.05231 | 0.05231 | 0 | 0.008547 | 0.293515 | 3,809 | 133 | 71 | 28.639098 | 0.843924 | 0.057495 | 0 | 0.064516 | 0 | 0 | 0.105307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010753 | 0.053763 | null | null | 0.182796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d5130b57dab89127689ac21b0d32cf78086b2645 | 2,342 | py | Python | azure-mgmt-relay/azure/mgmt/relay/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 4 | 2016-06-17T23:25:29.000Z | 2022-03-30T22:37:45.000Z | azure-mgmt-relay/azure/mgmt/relay/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | azure-mgmt-relay/azure/mgmt/relay/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 32.985915 | 76 | 0.74082 | 202 | 2,342 | 8.410891 | 0.475248 | 0.032372 | 0.023543 | 0.029429 | 0.085933 | 0.085933 | 0 | 0 | 0 | 0 | 0 | 0.000494 | 0.135781 | 2,342 | 70 | 77 | 33.457143 | 0.838933 | 0.192997 | 0 | 0 | 0 | 0 | 0.230442 | 0.109633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.37931 | 0 | 0.37931 | 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 |
d5150b76b0cc75c6e820b7ec8eed5ca0b878ba74 | 1,411 | py | Python | programs/analysis_opensnp/osp_set.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | programs/analysis_opensnp/osp_set.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | programs/analysis_opensnp/osp_set.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
# encoding:utf-8
#
# Author: CORDEA
# Created: 2014-08-14
#
import sys, commands
arg = sys.argv[1]
ls = commands.getoutput("ls " + arg)
lst = [item for item in ls.split("\n")]
idList = []
print "start [[1]]"
for i in range(len(lst)):
infile = open(arg + "/" + lst[i], "r")
lines = infi... | 23.131148 | 86 | 0.523742 | 189 | 1,411 | 3.904762 | 0.42328 | 0.0271 | 0.03252 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038542 | 0.319631 | 1,411 | 60 | 87 | 23.516667 | 0.730208 | 0.048901 | 0 | 0.130435 | 0 | 0 | 0.102545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.021739 | null | null | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d515293f1802e6152db08ff04038976221c5dd32 | 5,708 | py | Python | src/awsrun/__init__.py | pkazmier/awsrun | b6f6e0daff602e7831d054bff45d50598c8309eb | [
"MIT"
] | 48 | 2019-11-16T15:22:05.000Z | 2020-08-30T20:56:34.000Z | src/awsrun/__init__.py | pkazmier/awsrun | b6f6e0daff602e7831d054bff45d50598c8309eb | [
"MIT"
] | 2 | 2019-11-18T05:12:17.000Z | 2019-11-18T20:58:27.000Z | src/awsrun/__init__.py | pkazmier/awsrun | b6f6e0daff602e7831d054bff45d50598c8309eb | [
"MIT"
] | 6 | 2019-11-16T03:54:49.000Z | 2020-08-30T20:59:19.000Z | #
# Copyright 2019 FMR LLC <opensource@fmr.com>
#
# SPDX-License-Identifier: MIT
#
"""CLI and library to concurrently execute user-defined commands across AWS accounts.
## Overview
`awsrun` is both a CLI and library to execute commands over one or more AWS
accounts concurrently. Commands are user-defined Python modul... | 45.301587 | 85 | 0.783637 | 915 | 5,708 | 4.873224 | 0.32459 | 0.013456 | 0.01211 | 0.016147 | 0.053599 | 0.043508 | 0.043508 | 0.031846 | 0.020632 | 0.020632 | 0 | 0.003139 | 0.162754 | 5,708 | 125 | 86 | 45.664 | 0.929902 | 0.990014 | 0 | 0 | 0 | 0 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5155d88e1043bbd158f839dd2e341f7b5670a5d | 1,179 | py | Python | ex045.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | 1 | 2021-11-23T21:41:25.000Z | 2021-11-23T21:41:25.000Z | ex045.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | ex045.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | # Crie um programa que faça o computador jogar Jokenpô com você.
from random import choice
from time import sleep
#Armazenamento de Dados
escolha_do_jogador = str(input('\033[1;4;31;40mSUAS OPÇÕES:'
'\n[PEDRA]'
'\n[PAPEL]'
'\n... | 28.071429 | 99 | 0.625106 | 158 | 1,179 | 4.5 | 0.43038 | 0.164557 | 0.157525 | 0.084388 | 0.098453 | 0.098453 | 0.098453 | 0 | 0 | 0 | 0 | 0.032787 | 0.223919 | 1,179 | 42 | 100 | 28.071429 | 0.744262 | 0.124682 | 0 | 0.148148 | 0 | 0 | 0.270244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0.407407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1d12451e8b02ae4b5ce9e7eba6a76897491bff1d | 1,972 | py | Python | xproj_src/tmp.py | Qingluan/xproj | ae9f1a4a25f21adde0c57fcfbef4fe5b5c49391c | [
"Apache-2.0"
] | null | null | null | xproj_src/tmp.py | Qingluan/xproj | ae9f1a4a25f21adde0c57fcfbef4fe5b5c49391c | [
"Apache-2.0"
] | null | null | null | xproj_src/tmp.py | Qingluan/xproj | ae9f1a4a25f21adde0c57fcfbef4fe5b5c49391c | [
"Apache-2.0"
] | null | null | null | py_ignore = """
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are... | 12.641026 | 100 | 0.689655 | 257 | 1,972 | 5.155642 | 0.700389 | 0.010566 | 0.015094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003679 | 0.172921 | 1,972 | 156 | 101 | 12.641026 | 0.808706 | 0 | 0 | 0.033613 | 0 | 0.008403 | 0.956918 | 0.088191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016807 | 0 | 0.016807 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.