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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a38f6345567fe84d9ea114cc52922b5d2013340 | 337 | py | Python | doc/source/plots/spherharm42.py | dimpase/mpmath | 1bb25a42cb162faed87040c4cb86c256e4f5f535 | [
"BSD-3-Clause"
] | 625 | 2015-01-07T04:56:25.000Z | 2022-03-28T16:30:27.000Z | doc/source/plots/spherharm42.py | dimpase/mpmath | 1bb25a42cb162faed87040c4cb86c256e4f5f535 | [
"BSD-3-Clause"
] | 322 | 2015-01-01T15:19:37.000Z | 2022-03-27T05:07:51.000Z | doc/source/plots/spherharm42.py | dimpase/mpmath | 1bb25a42cb162faed87040c4cb86c256e4f5f535 | [
"BSD-3-Clause"
] | 160 | 2015-01-25T01:16:52.000Z | 2022-03-21T14:44:20.000Z | # Real part of spherical harmonic Y_(4,2)(theta,phi)
def Y(l,m):
def g(theta,phi):
R = abs(fp.re(fp.spherharm(l,m,theta,phi)))
x = R*fp.cos(phi)*fp.sin(theta)
y = R*fp.sin(phi)*fp.sin(theta)
z = R*fp.cos(theta)
return [x,y,z]
return g
fp.splot(Y(4,2), [0,fp.pi], [0,2*fp.... | 28.083333 | 52 | 0.545994 | 69 | 337 | 2.652174 | 0.42029 | 0.131148 | 0.032787 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038911 | 0.237389 | 337 | 11 | 53 | 30.636364 | 0.673152 | 0.148368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a3ad797125a50375fecfba6ed21a55c7a930f51 | 12,961 | py | Python | armi/reactor/parameters/__init__.py | ZanderUF/armi | c55ebe4d77821d3357ddd3326478ffaf44962c89 | [
"Apache-2.0"
] | 1 | 2022-01-23T06:09:50.000Z | 2022-01-23T06:09:50.000Z | armi/reactor/parameters/__init__.py | ZanderUF/armi | c55ebe4d77821d3357ddd3326478ffaf44962c89 | [
"Apache-2.0"
] | null | null | null | armi/reactor/parameters/__init__.py | ZanderUF/armi | c55ebe4d77821d3357ddd3326478ffaf44962c89 | [
"Apache-2.0"
] | 1 | 2020-08-26T09:02:06.000Z | 2020-08-26T09:02:06.000Z | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 43.203333 | 98 | 0.727259 | 1,656 | 12,961 | 5.647947 | 0.328502 | 0.016465 | 0.022453 | 0.017321 | 0.066503 | 0.041484 | 0 | 0 | 0 | 0 | 0 | 0.00493 | 0.201913 | 12,961 | 299 | 99 | 43.347826 | 0.899265 | 0.830414 | 0 | 0.057143 | 0 | 0 | 0.113712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.128571 | 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 |
0a41df2d5f6b37e6d1c09f5c15650f3624e05bd0 | 584 | py | Python | helloworld/cli.py | essembeh/python-helloworld | db319dc90d01af79f848985216fcd41d5a9020fc | [
"Apache-2.0"
] | 2 | 2022-01-23T19:33:32.000Z | 2022-02-19T21:42:45.000Z | helloworld/cli.py | essembeh/python-helloworld | db319dc90d01af79f848985216fcd41d5a9020fc | [
"Apache-2.0"
] | null | null | null | helloworld/cli.py | essembeh/python-helloworld | db319dc90d01af79f848985216fcd41d5a9020fc | [
"Apache-2.0"
] | 2 | 2021-11-30T11:46:47.000Z | 2022-01-23T19:40:07.000Z | """
command line interface
"""
from argparse import ONE_OR_MORE, ArgumentParser
from colorama import Fore
from . import __version__
from .model import User
def run():
"""
entry point
"""
parser = ArgumentParser(prog="helloworld", description="some documentation here")
parser.add_argument("--vers... | 26.545455 | 88 | 0.702055 | 75 | 584 | 5.266667 | 0.6 | 0.025316 | 0.04557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 584 | 21 | 89 | 27.809524 | 0.809426 | 0.058219 | 0 | 0 | 0 | 0 | 0.239089 | 0.068311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a43103f402292d8a606c9903a90a93c212055de | 4,629 | py | Python | tests/test_subspace.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | 1 | 2021-02-05T16:22:16.000Z | 2021-02-05T16:22:16.000Z | tests/test_subspace.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | null | null | null | tests/test_subspace.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | null | null | null | import numpy as np
from data import indicator_basis, ou_process
from utils import allclose_sign, allclose_trajs
import ivac
def make_data(ns, dt, nbins):
"""Generate featurized data for testing."""
return [indicator_basis(ou_process(n, dt), nbins) for n in ns]
def gram_schmidt(x):
"""Perform the Gram-S... | 32.145833 | 79 | 0.647656 | 622 | 4,629 | 4.770096 | 0.236334 | 0.109201 | 0.111223 | 0.072801 | 0.370071 | 0.350185 | 0.273677 | 0.238288 | 0.214695 | 0.195147 | 0 | 0.040202 | 0.231584 | 4,629 | 143 | 80 | 32.370629 | 0.793927 | 0.171095 | 0 | 0.193548 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.053763 | false | 0 | 0.043011 | 0.010753 | 0.129032 | 0 | 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 |
0a44ecf55f84ceec8b5641b88914ad5e7bc4b3a1 | 12,371 | py | Python | usu_data_service/servicefunctions/terrainFunctions.py | sblack-usu/Hydro-DS | f0149e864c9c065aeaf2ede5bd79ffc958de0acc | [
"BSD-3-Clause"
] | 6 | 2015-09-06T01:19:06.000Z | 2020-03-16T20:04:28.000Z | usu_data_service/servicefunctions/terrainFunctions.py | sblack-usu/Hydro-DS | f0149e864c9c065aeaf2ede5bd79ffc958de0acc | [
"BSD-3-Clause"
] | 3 | 2015-07-09T03:42:17.000Z | 2018-02-12T03:14:19.000Z | usu_data_service/servicefunctions/terrainFunctions.py | sblack-usu/Hydro-DS | f0149e864c9c065aeaf2ede5bd79ffc958de0acc | [
"BSD-3-Clause"
] | 3 | 2020-04-30T23:23:48.000Z | 2021-09-23T06:06:05.000Z | try:
from osgeo import gdal
except:
import gdal
try:
from osgeo import ogr
except:
import ogr
try:
from osgeo import osr
except:
import osr
from gdalconst import *
#import shlex
#import subprocess
import os
from . watershedFunctions import create_OutletShape
from . netcdfFunctions import revers... | 43.713781 | 150 | 0.700186 | 1,478 | 12,371 | 5.669824 | 0.179973 | 0.057757 | 0.065871 | 0.054773 | 0.720883 | 0.689857 | 0.626492 | 0.616706 | 0.588902 | 0.588902 | 0 | 0.008702 | 0.19182 | 12,371 | 282 | 151 | 43.868794 | 0.829466 | 0.211866 | 0 | 0.568862 | 0 | 0 | 0.17709 | 0 | 0.023952 | 0 | 0 | 0.014184 | 0 | 1 | 0.065868 | false | 0.005988 | 0.077844 | 0 | 0.323353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0a46f22780349f419b4d9cf9a4cc8fcb3c757109 | 9,123 | py | Python | TweetClassificationOnSpark/twitter_sa_v2.py | sampathsree/data-science-my-way | da3966f1363aa6de446671376b2621c351f695b4 | [
"Apache-2.0"
] | null | null | null | TweetClassificationOnSpark/twitter_sa_v2.py | sampathsree/data-science-my-way | da3966f1363aa6de446671376b2621c351f695b4 | [
"Apache-2.0"
] | null | null | null | TweetClassificationOnSpark/twitter_sa_v2.py | sampathsree/data-science-my-way | da3966f1363aa6de446671376b2621c351f695b4 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import string
import csv,re,io
import nltk
os.environ['SPARK_HOME'] = "/home/sam/spark-1.6.1-bin-hadoop2.6/"
sys.path.append("/home/sam/spark-1.6.1-bin-hadoop2.6/python")
os.environ['PYSPARK_PYTHON'] = "/home/sam/anaconda3/bin/python3.5"
try:
from nltk.corpus import stopwords
from nltk.s... | 35.360465 | 113 | 0.685739 | 1,152 | 9,123 | 5.295139 | 0.226563 | 0.036066 | 0.023443 | 0.016066 | 0.319344 | 0.222623 | 0.187869 | 0.16918 | 0.161967 | 0.108361 | 0 | 0.012268 | 0.169023 | 9,123 | 257 | 114 | 35.498054 | 0.792376 | 0.375754 | 0 | 0.044444 | 0 | 0 | 0.125145 | 0.049734 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.311111 | 0.011111 | 0.433333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a4701a1cc2abfa578d5ce41996fcd600efa8c4c | 3,017 | py | Python | docs/conf.py | EvanKepner/m | 45606314e597516c4b26b51e27daeb02e503c292 | [
"MIT"
] | 49 | 2019-01-06T15:57:03.000Z | 2022-03-23T18:25:02.000Z | docs/conf.py | EvanKepner/m | 45606314e597516c4b26b51e27daeb02e503c292 | [
"MIT"
] | 31 | 2019-01-18T11:54:13.000Z | 2022-02-20T19:18:45.000Z | docs/conf.py | EvanKepner/m | 45606314e597516c4b26b51e27daeb02e503c292 | [
"MIT"
] | 10 | 2019-05-09T00:20:48.000Z | 2021-02-15T14:55:17.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
import ... | 30.785714 | 99 | 0.659596 | 400 | 3,017 | 4.825 | 0.44 | 0.032642 | 0.020207 | 0.015544 | 0.074611 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.156778 | 3,017 | 97 | 100 | 31.103093 | 0.756682 | 0.53298 | 0 | 0 | 0 | 0 | 0.250185 | 0.032568 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0a479b0931a56b799f80050adebedc89507e4f0e | 980 | py | Python | common/trunk/bin/scripts/preparation/conf/monitor/users.py | sswv/lingcloud | c9c8cba7122101a1cfaf4c8badb4bef909dd7943 | [
"Apache-1.1"
] | 4 | 2016-01-24T21:01:16.000Z | 2016-01-27T03:52:55.000Z | common/trunk/bin/scripts/preparation/conf/monitor/users.py | sswv/lingcloud | c9c8cba7122101a1cfaf4c8badb4bef909dd7943 | [
"Apache-1.1"
] | 1 | 2021-02-05T02:21:37.000Z | 2021-02-05T02:21:37.000Z | common/trunk/bin/scripts/preparation/conf/monitor/users.py | sswv/lingcloud | c9c8cba7122101a1cfaf4c8badb4bef909dd7943 | [
"Apache-1.1"
] | 4 | 2016-01-25T13:32:21.000Z | 2021-03-30T07:55:26.000Z | #!/usr/bin/python
#
# Copyright (C) 2008-2011,
# LingCloud Team,
# Institute of Computing Technology,
# Chinese Academy of Sciences.
# P.O.Box 2704, 100190, Beijing, China.
#
# http://lingcloud.org
#
import commands
descriptors = list()
def get_current_user(name):
cmd = 'who'
(stat, out) = commands.getstatusoutput... | 19.215686 | 48 | 0.652041 | 133 | 980 | 4.654135 | 0.669173 | 0.053312 | 0.045234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035847 | 0.17449 | 980 | 50 | 49 | 19.6 | 0.729295 | 0.227551 | 0 | 0 | 0 | 0 | 0.257062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.035714 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4efd76c530b83996463e6b8140a0b7a75ca377 | 5,537 | py | Python | digsby/lib/pyxmpp/message.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/lib/pyxmpp/message.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/lib/pyxmpp/message.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | #
# (C) Copyright 2003-2010 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be u... | 36.427632 | 108 | 0.612787 | 712 | 5,537 | 4.658708 | 0.297753 | 0.024118 | 0.009647 | 0.017184 | 0.186313 | 0.174857 | 0.149834 | 0.077781 | 0.041604 | 0.041604 | 0 | 0.015072 | 0.281019 | 5,537 | 151 | 109 | 36.668874 | 0.818136 | 0.1257 | 0 | 0.229508 | 0 | 0 | 0.107739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032787 | 0.065574 | 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 |
0a59d40fdd4bd2ef6e8dd0edcad69e2871aee363 | 268 | py | Python | part_1_read_test_dat.py | esuder/cc_tools | 5c4f3e79885424e5eeb4f9a495db8a21c3b9742b | [
"MIT"
] | null | null | null | part_1_read_test_dat.py | esuder/cc_tools | 5c4f3e79885424e5eeb4f9a495db8a21c3b9742b | [
"MIT"
] | null | null | null | part_1_read_test_dat.py | esuder/cc_tools | 5c4f3e79885424e5eeb4f9a495db8a21c3b9742b | [
"MIT"
] | null | null | null | import cc_dat_utils
#Part 1
input_dat_file = "data/pfgd_test.dat"
#Use cc_dat_utils.make_cc_level_pack_from_dat() to load the file specified by input_dat_file
mylevel = cc_dat_utils.make_cc_level_pack_from_dat(input_dat_file)
#print the resulting data
print(mylevel) | 29.777778 | 92 | 0.843284 | 51 | 268 | 3.980392 | 0.470588 | 0.073892 | 0.147783 | 0.137931 | 0.315271 | 0.315271 | 0.315271 | 0.315271 | 0.315271 | 0 | 0 | 0.004115 | 0.093284 | 268 | 9 | 93 | 29.777778 | 0.831276 | 0.451493 | 0 | 0 | 0 | 0 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a5f9ac7b8bd891ef7b10a7fc9b8b9f2cb347dea | 564 | py | Python | driver/migrations/0004_auto_20180520_1323.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | driver/migrations/0004_auto_20180520_1323.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | 5 | 2020-02-12T00:43:34.000Z | 2021-06-10T20:18:42.000Z | driver/migrations/0004_auto_20180520_1323.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-20 10:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('driver', '0003_auto_20180520_1217'),
]
operations = [
migrations.AlterModelOptions(
... | 22.56 | 52 | 0.588652 | 56 | 564 | 5.678571 | 0.767857 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.29078 | 564 | 24 | 53 | 23.5 | 0.715 | 0.117021 | 0 | 0.117647 | 1 | 0 | 0.169697 | 0.046465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 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 |
0a6bebf7df6acae4464c702f10a320ad0efdd4d0 | 1,246 | py | Python | tech_project/lib/python2.7/site-packages/filer/migrations/0005_auto_20160623_1425.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 134 | 2015-01-01T17:57:03.000Z | 2021-11-01T15:21:47.000Z | tech_project/lib/python2.7/site-packages/filer/migrations/0005_auto_20160623_1425.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 143 | 2015-01-05T04:53:01.000Z | 2015-11-27T14:44:29.000Z | tech_project/lib/python2.7/site-packages/filer/migrations/0005_auto_20160623_1425.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 86 | 2015-01-05T13:05:25.000Z | 2021-04-03T01:36:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-23 18:25
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('filer', '0004_auto_20160328... | 37.757576 | 196 | 0.67496 | 151 | 1,246 | 5.344371 | 0.384106 | 0.049566 | 0.069393 | 0.109046 | 0.565056 | 0.565056 | 0.565056 | 0.522924 | 0.522924 | 0.522924 | 0 | 0.032291 | 0.204655 | 1,246 | 32 | 197 | 38.9375 | 0.782038 | 0.053772 | 0 | 0.32 | 1 | 0 | 0.115646 | 0.039966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.28 | 0 | 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 |
0a706f7014d89ecd04c8585101a75a6a95ab5c9b | 3,373 | py | Python | chrome/test/chromedriver/embed_mobile_devices_in_cpp.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/test/chromedriver/embed_mobile_devices_in_cpp.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/test/chromedriver/embed_mobile_devices_in_cpp.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
# 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.
"""Embeds standalone JavaScript snippets in C++ code.
The script requires the Source/devtools/front_end/emulated_devices/module.json
f... | 34.773196 | 79 | 0.643937 | 429 | 3,373 | 4.969697 | 0.428904 | 0.041276 | 0.022514 | 0.02439 | 0.040338 | 0.040338 | 0.040338 | 0.040338 | 0 | 0 | 0 | 0.006889 | 0.225319 | 3,373 | 96 | 80 | 35.135417 | 0.809032 | 0.165135 | 0 | 0.029851 | 0 | 0 | 0.204427 | 0.031388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119403 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a708fa8026ff31f7aa8b3ab33175817348c8138 | 2,434 | py | Python | tests/parsers/olecf_plugins/summary.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 2 | 2019-10-23T03:37:59.000Z | 2020-08-14T17:09:26.000Z | tests/parsers/olecf_plugins/summary.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | null | null | null | tests/parsers/olecf_plugins/summary.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the OLE Compound File summary and document summary plugins."""
import unittest
from plaso.parsers.olecf_plugins import summary
from tests.parsers.olecf_plugins import test_lib
class TestSummaryInformationOLECFPlugin(test_lib.OLECFPluginTestCase):
"""Tes... | 33.342466 | 78 | 0.701726 | 268 | 2,434 | 6.141791 | 0.41791 | 0.078979 | 0.053463 | 0.068044 | 0.472661 | 0.381531 | 0.381531 | 0.330498 | 0.330498 | 0.258809 | 0 | 0.020101 | 0.182416 | 2,434 | 72 | 79 | 33.805556 | 0.807035 | 0.163517 | 0 | 0.272727 | 0 | 0 | 0.242032 | 0.013446 | 0 | 0 | 0 | 0.013889 | 0.090909 | 1 | 0.045455 | false | 0 | 0.068182 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6a53cb5144221ce6b8ba6e1884e2cdca1cf30afb | 21,310 | py | Python | kubespec/k8s/autoscaling/v2beta2.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | 7 | 2019-10-22T14:21:16.000Z | 2021-03-18T15:57:41.000Z | kubespec/k8s/autoscaling/v2beta2.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | kubespec/k8s/autoscaling/v2beta2.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | # Code is generated: DO NOT EDIT
# Copyright 2019 Machine Zone, Inc. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from kubespec import context
from kubespec import types
from kubespec.k8s import base
from kubespec.k8s import resource
from ... | 35.339967 | 137 | 0.635054 | 2,438 | 21,310 | 5.415505 | 0.131665 | 0.019768 | 0.017042 | 0.015754 | 0.459062 | 0.412482 | 0.369916 | 0.341286 | 0.338105 | 0.333106 | 0 | 0.002077 | 0.276959 | 21,310 | 602 | 138 | 35.398671 | 0.854816 | 0.33557 | 0 | 0.459302 | 1 | 0 | 0.121126 | 0.020405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.023256 | 0.002907 | 0.302326 | 0 | 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 |
6a5a01539b73404293f3d5284409828a98e029d3 | 1,116 | py | Python | ephios/core/migrations/0004_auto_20210305_1855.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | 14 | 2021-01-13T12:15:03.000Z | 2022-03-20T10:02:11.000Z | ephios/core/migrations/0004_auto_20210305_1855.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | 570 | 2020-09-19T13:37:27.000Z | 2022-03-31T09:14:37.000Z | ephios/core/migrations/0004_auto_20210305_1855.py | garinm90/ephios | 7d04d3287ae16ee332e31add1f25829b199f29a5 | [
"MIT"
] | 5 | 2021-01-08T16:52:31.000Z | 2022-03-20T10:02:25.000Z | # Generated by Django 3.1.5 on 2021-03-05 17:55
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("contenttypes", "0002_remove_content_type_name"),
("core", "0003_migrate_content_type_to_core_20210219_1642"),
]
... | 30.162162 | 75 | 0.578853 | 101 | 1,116 | 6.188119 | 0.524752 | 0.0512 | 0.0672 | 0.1056 | 0.3264 | 0.3264 | 0.1536 | 0.1536 | 0.1536 | 0 | 0 | 0.046235 | 0.321685 | 1,116 | 36 | 76 | 31 | 0.779392 | 0.040323 | 0 | 0.4 | 1 | 0 | 0.235734 | 0.173059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a5d74522a9fbb9140678f7e3926a20d3d08f36c | 489 | py | Python | drf_demo/model_less/migrations/0008_auto_20160504_2333.py | Thiyageshv/PizzaReminder | ebb10055249721474ea98c9ff2b94976bb8a1cd0 | [
"BSD-3-Clause"
] | null | null | null | drf_demo/model_less/migrations/0008_auto_20160504_2333.py | Thiyageshv/PizzaReminder | ebb10055249721474ea98c9ff2b94976bb8a1cd0 | [
"BSD-3-Clause"
] | null | null | null | drf_demo/model_less/migrations/0008_auto_20160504_2333.py | Thiyageshv/PizzaReminder | ebb10055249721474ea98c9ff2b94976bb8a1cd0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-04 23:33
from __future__ import unicode_literals
from django.db import migrations
import drf_demo.model_less.models
class Migration(migrations.Migration):
dependencies = [
('model_less', '0007_auto_20160504_2331'),
]
operations = [
... | 22.227273 | 57 | 0.640082 | 57 | 489 | 5.245614 | 0.719298 | 0.090301 | 0.080268 | 0.107023 | 0.147157 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.247444 | 489 | 21 | 58 | 23.285714 | 0.725543 | 0.137014 | 0 | 0 | 1 | 0 | 0.114558 | 0.054893 | 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 |
6a5dcac78774dc4247756bafdf16770e71193f6c | 7,315 | py | Python | tools/analogcommunication/ServerSocket.py | jAchillus/pythontools | 518d72a46dada6c62db94cd3d49e848f11129442 | [
"Apache-2.0"
] | null | null | null | tools/analogcommunication/ServerSocket.py | jAchillus/pythontools | 518d72a46dada6c62db94cd3d49e848f11129442 | [
"Apache-2.0"
] | null | null | null | tools/analogcommunication/ServerSocket.py | jAchillus/pythontools | 518d72a46dada6c62db94cd3d49e848f11129442 | [
"Apache-2.0"
] | null | null | null | # coding=UTF-8
# python version=3.5
import socket
import sys
import time
import threading
class ServerSocket(object):
conn = None
addr = None
mesStr = []
recv = ''
name = 'a'
threadLock1 = threading.Lock()
"""docstring for ServerSocket"""
def __init__(self):
super(ServerSocke... | 26.125 | 93 | 0.527546 | 757 | 7,315 | 5.058124 | 0.211361 | 0.018804 | 0.023505 | 0.009402 | 0.144424 | 0.093497 | 0.093497 | 0.075738 | 0.075738 | 0.052755 | 0 | 0.011968 | 0.360355 | 7,315 | 279 | 94 | 26.218638 | 0.806369 | 0.12823 | 0 | 0.409574 | 0 | 0 | 0.048423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058511 | false | 0.074468 | 0.021277 | 0 | 0.117021 | 0.143617 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a61c779b53e6ed2101d0416b1bc149e9597b9b9 | 373 | py | Python | advanced/networking/tcpClient.py | Dilmuratjan/MyProject | 26f4ee708eb4a7ceef780842ad737fef64a39d7e | [
"WTFPL"
] | 2 | 2017-02-19T15:11:06.000Z | 2017-02-22T18:34:10.000Z | advanced/networking/tcpClient.py | Dilmuratjan/MyProject | 26f4ee708eb4a7ceef780842ad737fef64a39d7e | [
"WTFPL"
] | null | null | null | advanced/networking/tcpClient.py | Dilmuratjan/MyProject | 26f4ee708eb4a7ceef780842ad737fef64a39d7e | [
"WTFPL"
] | 4 | 2017-02-26T08:10:30.000Z | 2017-05-02T10:02:03.000Z | import socket
def Main():
host = '127.0.0.1'
port = 8080
s = socket.socket()
s.connect((host, port))
message = raw_input("-> ")
while message != 'q':
s.send(message)
data = s.recv(1024)
print 'Recieved from server: ' + str(data)
message = raw_input("-> ")
... | 17.761905 | 50 | 0.520107 | 46 | 373 | 4 | 0.630435 | 0.108696 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0.313673 | 373 | 21 | 51 | 17.761905 | 0.664063 | 0 | 0 | 0.133333 | 0 | 0 | 0.122995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a65020be8c98d6e9bb175622915c87cc4a234d3 | 730 | py | Python | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtDielectron_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtDielectron_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtDielectron_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
LowPtDielectronPSet = cms.PSet(
hltPathsToCheck = cms.vstring(
"HLT_DoubleEle33_CaloIdL_GsfTrkIdVL_MW_v", # Run2
"HLT_DoubleEle33_CaloIdL_GsfTrkIdVL_v", # Run1 & Run2
"HLT_DoubleEle33_CaloIdL_MW_v", # 2016 menu
"HLT_DoubleEle33_... | 36.5 | 77 | 0.575342 | 75 | 730 | 5.386667 | 0.666667 | 0.138614 | 0.207921 | 0.153465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106339 | 0.330137 | 730 | 19 | 78 | 38.421053 | 0.719836 | 0.126027 | 0 | 0.133333 | 0 | 0 | 0.226624 | 0.202853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6552baa0f703e7660f4a208eb916e6286f424e | 1,284 | py | Python | pyethapp/__init__.py | vapory-testing/pyvapapp | f9072d7018dd294ea12d2c97e600b0669fc12940 | [
"MIT"
] | null | null | null | pyethapp/__init__.py | vapory-testing/pyvapapp | f9072d7018dd294ea12d2c97e600b0669fc12940 | [
"MIT"
] | null | null | null | pyethapp/__init__.py | vapory-testing/pyvapapp | f9072d7018dd294ea12d2c97e600b0669fc12940 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ############# version ##################
from pkg_resources import get_distribution, DistributionNotFound
import os.path
import subprocess
try:
_dist = get_distribution('pyethapp')
# Normalize case for Windows systems
dist_loc = os.path.normcase(_dist.location)
here = os.path.n... | 33.789474 | 87 | 0.591121 | 141 | 1,284 | 5.042553 | 0.510638 | 0.042194 | 0.039381 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004128 | 0.245327 | 1,284 | 37 | 88 | 34.702703 | 0.729618 | 0.15109 | 0 | 0.3 | 0 | 0 | 0.08619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a67772913d8609643362e34fef033444e3efd93 | 1,201 | py | Python | tests/asserters.py | OrBin/aioswitcher | 114911d63985f80333e40295b460b4eaef554b90 | [
"MIT"
] | 1 | 2021-04-02T17:23:43.000Z | 2021-04-02T17:23:43.000Z | tests/asserters.py | fabaff/aioswitcher | e88462c2f490f90ddda6962791ffcd116004d5f6 | [
"MIT"
] | null | null | null | tests/asserters.py | fabaff/aioswitcher | e88462c2f490f90ddda6962791ffcd116004d5f6 | [
"MIT"
] | null | null | null | """Common assertion tools for use with the Switcher integration test cases."""
# fmt: off
from typing import Any, List, Optional
from aioswitcher.api.messages import (ResponseMessageType,
SwitcherV2BaseResponseMSG)
# fmt: on
async def assert_seconds_to_iso_time(
... | 30.025 | 79 | 0.654455 | 147 | 1,201 | 5.183673 | 0.462585 | 0.059055 | 0.055118 | 0.041995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.245629 | 1,201 | 39 | 80 | 30.794872 | 0.821192 | 0.074938 | 0 | 0.083333 | 0 | 0 | 0.001115 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6c09c47080609875dfb47bb64bbdc867e9397c | 755 | py | Python | sdk/wrkchain/keys.py | unification-com/workchain | 0ae93e8a265a482220fe13bc8f0a91fb968fb0bb | [
"MIT"
] | 2 | 2019-03-18T05:36:23.000Z | 2022-03-09T09:53:24.000Z | sdk/wrkchain/keys.py | unification-com/workchain | 0ae93e8a265a482220fe13bc8f0a91fb968fb0bb | [
"MIT"
] | 5 | 2019-05-13T04:48:25.000Z | 2021-09-23T23:24:09.000Z | sdk/wrkchain/keys.py | unification-com/workchain | 0ae93e8a265a482220fe13bc8f0a91fb968fb0bb | [
"MIT"
] | 1 | 2019-05-06T16:24:50.000Z | 2019-05-06T16:24:50.000Z | from cryptography.hazmat.primitives import serialization as crypto_serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.backends import (
default_backend as crypto_default_backend)
def generate_ssh_keys():
key = rsa.generate_private_key(
backend=crypto_defau... | 32.826087 | 80 | 0.754967 | 82 | 755 | 6.658537 | 0.402439 | 0.208791 | 0.120879 | 0.117216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016155 | 0.180132 | 755 | 22 | 81 | 34.318182 | 0.865913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 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 |
6a70dc9bb26952aafc49bb0abab52f18f82bbc8a | 923 | py | Python | matchzoo/engine/base_task.py | JacobPolloreno/MatchZoo | e49d619a52b2e96b6f0e8e76164d76f623210198 | [
"Apache-2.0"
] | null | null | null | matchzoo/engine/base_task.py | JacobPolloreno/MatchZoo | e49d619a52b2e96b6f0e8e76164d76f623210198 | [
"Apache-2.0"
] | null | null | null | matchzoo/engine/base_task.py | JacobPolloreno/MatchZoo | e49d619a52b2e96b6f0e8e76164d76f623210198 | [
"Apache-2.0"
] | null | null | null | """Base task."""
import typing
import abc
class BaseTask(abc.ABC):
"""Base Task, shouldn't be used directly."""
@classmethod
@abc.abstractmethod
def list_available_losses(cls) -> list:
""":return: a list of available losses."""
@classmethod
@abc.abstractmethod
def list_available... | 24.945946 | 78 | 0.651138 | 112 | 923 | 5.241071 | 0.383929 | 0.115843 | 0.136286 | 0.06644 | 0.402044 | 0.248722 | 0.098808 | 0 | 0 | 0 | 0 | 0 | 0.219935 | 923 | 36 | 79 | 25.638889 | 0.815278 | 0.286024 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a73f98b0beb9b39c0459ce559984a2e856f56af | 1,528 | py | Python | database/apps.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | null | null | null | database/apps.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | 10 | 2020-06-05T16:38:25.000Z | 2022-03-11T23:12:12.000Z | database/apps.py | gbriones1/django-skelleton | ee067594e3994f1bac5bf754f618d365bb5248d8 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
import os
import shutil
import datetime
class WarehouseConfig(AppConfig):
name = 'database'
class BackupManager(object):
# DIRECTORY = os.path.join(os.getcwd(), "backups")# if settings.DEBUG else "C:\\MODB\\backups/"
DIRECTORY =... | 32.510638 | 140 | 0.628927 | 214 | 1,528 | 4.350467 | 0.331776 | 0.067669 | 0.030075 | 0.045113 | 0.227712 | 0.189044 | 0.189044 | 0.13319 | 0.13319 | 0.13319 | 0 | 0.029678 | 0.206152 | 1,528 | 46 | 141 | 33.217391 | 0.73784 | 0.106021 | 0 | 0.066667 | 0 | 0 | 0.061029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.033333 | 0.166667 | 0.033333 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a792c28adf7716eb35d6ba23f16406aac1acecd | 17,916 | py | Python | pid_control/segmented_cte.py | bringBackm/Artificial-Intelligence-for-Robotics | 675e38074519251b70477931fe5bd45b1dd93311 | [
"MIT"
] | null | null | null | pid_control/segmented_cte.py | bringBackm/Artificial-Intelligence-for-Robotics | 675e38074519251b70477931fe5bd45b1dd93311 | [
"MIT"
] | null | null | null | pid_control/segmented_cte.py | bringBackm/Artificial-Intelligence-for-Robotics | 675e38074519251b70477931fe5bd45b1dd93311 | [
"MIT"
] | 1 | 2019-12-12T05:46:36.000Z | 2019-12-12T05:46:36.000Z | # -----------
# User Instructions
#
# Familiarize yourself with the code below. Most of it
# reproduces results that you have obtained at some
# point in this class. Once you understand the code,
# write a function, cte, in the run class that
# computes the crosstrack
# error for the case of a segmented path. You will
... | 27.690881 | 86 | 0.479627 | 2,195 | 17,916 | 3.826424 | 0.14533 | 0.00762 | 0.021431 | 0.017026 | 0.287296 | 0.262293 | 0.230504 | 0.198595 | 0.16121 | 0.154542 | 0 | 0.03483 | 0.379828 | 17,916 | 646 | 87 | 27.733746 | 0.721087 | 0.160415 | 0 | 0.187861 | 0 | 0 | 0.010402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00578 | null | null | 0.031792 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a7a3316fb9b05a7dbc572ea8ff44e1183ccdb15 | 1,699 | py | Python | examples/scripts/vs30/txt2float.py | baagaard-usgs/UCVMC | 53d3c136ea32bceaa02a89c351fee7e8155a5af5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 18 | 2017-01-27T09:26:15.000Z | 2022-03-21T14:40:26.000Z | examples/scripts/vs30/txt2float.py | baagaard-usgs/UCVMC | 53d3c136ea32bceaa02a89c351fee7e8155a5af5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 85 | 2016-12-10T01:50:34.000Z | 2022-01-05T20:46:36.000Z | examples/scripts/vs30/txt2float.py | baagaard-usgs/UCVMC | 53d3c136ea32bceaa02a89c351fee7e8155a5af5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2017-10-19T16:57:34.000Z | 2021-06-18T16:26:47.000Z | #!/usr/bin/env python2
##########################################################
#
# Script: txt2float.py
#
# Description: Convert GMT text grid files into float
#
##########################################################
# Basic modules
import os
import sys
import struct
from ParseHeader import *
class txt2float... | 19.988235 | 62 | 0.49794 | 194 | 1,699 | 4.28866 | 0.438144 | 0.042067 | 0.057692 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012853 | 0.313125 | 1,699 | 84 | 63 | 20.22619 | 0.700086 | 0.071218 | 0 | 0.039216 | 0 | 0 | 0.052957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7c21123882e9972d2906b4f80c56f688cf62e3 | 1,191 | py | Python | profiles/management/commands/add_user_profile.py | incuna/django-extensible-profiles | b6fe6fd05baaa60e754bfb3a5ff485a9e29150d5 | [
"BSD-2-Clause"
] | null | null | null | profiles/management/commands/add_user_profile.py | incuna/django-extensible-profiles | b6fe6fd05baaa60e754bfb3a5ff485a9e29150d5 | [
"BSD-2-Clause"
] | 2 | 2018-01-09T10:08:52.000Z | 2018-01-09T10:09:06.000Z | profiles/management/commands/add_user_profile.py | incuna/django-extensible-profiles | b6fe6fd05baaa60e754bfb3a5ff485a9e29150d5 | [
"BSD-2-Clause"
] | null | null | null | from django.core.management.base import LabelCommand, CommandError
class Command(LabelCommand):
help = 'Add a profile for the specified user(s).'
args = '[username1, username2, email1, ...]'
def handle_label(self, username, **options):
from django.contrib.auth.models import User
from profi... | 36.090909 | 88 | 0.586062 | 132 | 1,191 | 5.242424 | 0.477273 | 0.028902 | 0.046243 | 0.063584 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.299748 | 1,191 | 32 | 89 | 37.21875 | 0.826139 | 0 | 0 | 0.153846 | 0 | 0 | 0.135181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7e855ae4f5d72bb8c6173d1acef395fc81cdb1 | 22,046 | py | Python | build/env/lib/python2.7/site-packages/ipython-0.10-py2.7.egg/IPython/external/pretty.py | lumanjiao/XLS_BigData | 2c4c37872b8636df1c8b0e005bc12a635a753c7a | [
"Apache-2.0"
] | 11 | 2019-03-20T07:38:35.000Z | 2021-06-18T09:42:46.000Z | build/env/lib/python2.6/site-packages/ipython-0.10-py2.6.egg/IPython/external/pretty.py | lockhart39/HueQualityAndIngestionApp | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | [
"Apache-2.0"
] | null | null | null | build/env/lib/python2.6/site-packages/ipython-0.10-py2.6.egg/IPython/external/pretty.py | lockhart39/HueQualityAndIngestionApp | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | [
"Apache-2.0"
] | 5 | 2019-06-29T03:13:02.000Z | 2020-04-23T04:47:11.000Z | # -*- coding: utf-8 -*-
"""
pretty
~~
Python advanced pretty printer. This pretty printer is intended to
replace the old `pprint` python module which does not allow developers
to provide their own pretty print callbacks.
This module is based on ruby's `prettyprint.rb` library by `Tanaka Akira... | 31.226629 | 81 | 0.575388 | 2,629 | 22,046 | 4.640928 | 0.176493 | 0.011474 | 0.005901 | 0.009835 | 0.170888 | 0.142775 | 0.119498 | 0.108516 | 0.076551 | 0.068355 | 0 | 0.00613 | 0.326635 | 22,046 | 705 | 82 | 31.270922 | 0.815763 | 0.029711 | 0 | 0.23913 | 0 | 0 | 0.075506 | 0.007895 | 0 | 0 | 0 | 0.001418 | 0 | 0 | null | null | 0.007246 | 0.024155 | null | null | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a88a9467020eb67c8121c2dc1c027f86785cffb | 817 | py | Python | old/relu_static.py | flint-stone/OpenTPU | ca5d381c93752a504e8de1fa10c9d51649853c70 | [
"BSD-3-Clause"
] | 248 | 2017-06-25T00:03:16.000Z | 2022-03-19T05:53:06.000Z | old/relu_static.py | JieQunLee/OpenTPU | ca5d381c93752a504e8de1fa10c9d51649853c70 | [
"BSD-3-Clause"
] | 4 | 2017-12-05T18:18:01.000Z | 2020-07-23T08:36:41.000Z | old/relu_static.py | JieQunLee/OpenTPU | ca5d381c93752a504e8de1fa10c9d51649853c70 | [
"BSD-3-Clause"
] | 63 | 2017-08-14T07:22:07.000Z | 2022-03-05T04:32:37.000Z | # Function: Relu and normalization
# Comments: offset defined during design phase (not runtime)
import pyrtl
# relu and normalization
def relu_nrml(din, offset=0):
assert len(din) == 32
assert offset <= 24
dout = pyrtl.WireVector(32)
with pyrtl.conditional_assignment:
with din[-1] == 0:
dout |= din
wit... | 25.53125 | 60 | 0.724602 | 123 | 817 | 4.715447 | 0.479675 | 0.031034 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039187 | 0.156671 | 817 | 31 | 61 | 26.354839 | 0.802612 | 0.250918 | 0 | 0 | 0 | 0 | 0.011551 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.045455 | 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 |
6a88b0d791fd636063657df37dc82b68d75a906e | 569 | py | Python | src/1952-ThreeDivisors.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | 1 | 2022-03-03T15:11:48.000Z | 2022-03-03T15:11:48.000Z | src/1952-ThreeDivisors.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | null | null | null | src/1952-ThreeDivisors.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | 2 | 2022-01-20T22:49:58.000Z | 2022-01-20T22:53:13.000Z | #!/usr/bin/env python
"""
CREATED AT: 2021/8/1
Des:
https://leetcode.com/contest/weekly-contest-252/problems/three-divisors/
GITHUB: https://github.com/Jiezhi/myleetcode
"""
class Solution:
def isThree(self, n: int) -> bool:
cnt = 0
for i in range(2, int(n / 2) + 1):
if n % i == 0:
... | 19.62069 | 72 | 0.58348 | 82 | 569 | 3.95122 | 0.560976 | 0.185185 | 0.197531 | 0.148148 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.253076 | 569 | 28 | 73 | 20.321429 | 0.715294 | 0.288225 | 0 | 0 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8b445aff624e78ebb9777d2493a4b8949a97ef | 147 | py | Python | test_scripts/hello.py | clayne/ida-qscripts | 974ddbb808bfd8c995cd440d1f474d93be3b23e7 | [
"MIT"
] | null | null | null | test_scripts/hello.py | clayne/ida-qscripts | 974ddbb808bfd8c995cd440d1f474d93be3b23e7 | [
"MIT"
] | null | null | null | test_scripts/hello.py | clayne/ida-qscripts | 974ddbb808bfd8c995cd440d1f474d93be3b23e7 | [
"MIT"
] | null | null | null | try:
var1 += 1
except:
var1 = 1
def __quick_unload_script():
print("Unloaded: %s" % str(var1))
print(f"Just edit and save! {var1}")
| 13.363636 | 37 | 0.605442 | 22 | 147 | 3.863636 | 0.772727 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0.231293 | 147 | 10 | 38 | 14.7 | 0.699115 | 0 | 0 | 0 | 0 | 0 | 0.260274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a918446ae9ea72a27f27363ec40fac964951c5a | 4,249 | py | Python | common/python/protobuf/pyproto/intermediate_data_pb2.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 39 | 2021-10-12T01:43:27.000Z | 2022-03-28T04:46:35.000Z | common/python/protobuf/pyproto/intermediate_data_pb2.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 6 | 2021-10-14T02:11:47.000Z | 2022-03-23T02:41:50.000Z | common/python/protobuf/pyproto/intermediate_data_pb2.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 10 | 2021-10-14T09:36:03.000Z | 2022-02-10T11:05:12.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: intermediate-data.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as... | 38.627273 | 341 | 0.728642 | 466 | 4,249 | 6.388412 | 0.248927 | 0.02956 | 0.040309 | 0.063823 | 0.55089 | 0.540813 | 0.497817 | 0.464562 | 0.452469 | 0.452469 | 0 | 0.023424 | 0.156037 | 4,249 | 109 | 342 | 38.981651 | 0.806748 | 0.088727 | 0 | 0.565217 | 1 | 0.01087 | 0.196946 | 0.140528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a9264328c4a715831063e9779d2e2d0aa673072 | 16,115 | py | Python | pyvidesk/properties.py | MuriloScarpaSitonio/pyvidesk | 0d2366db0899b0ab7425d09f306b4f6d4722f843 | [
"MIT"
] | null | null | null | pyvidesk/properties.py | MuriloScarpaSitonio/pyvidesk | 0d2366db0899b0ab7425d09f306b4f6d4722f843 | [
"MIT"
] | null | null | null | pyvidesk/properties.py | MuriloScarpaSitonio/pyvidesk | 0d2366db0899b0ab7425d09f306b4f6d4722f843 | [
"MIT"
] | null | null | null | """
Módulo com todos os tipos de propriedades do Movidesk.
Exemplo de uso:
>>> from datetime import datetime
>>> from pyvidesk.tickets import Tickets
>>> my_date = datetime(2020, 1, 1, 20, 0, 0)
>>> tickets = Tickets(token="my_token")
>>> tickets_properties = tickets.get_properties()
>>> print(tickets_properties["cr... | 30.81262 | 99 | 0.574744 | 1,774 | 16,115 | 5.129087 | 0.212514 | 0.023739 | 0.019782 | 0.014837 | 0.4162 | 0.35916 | 0.331135 | 0.312342 | 0.238708 | 0.238708 | 0 | 0.00516 | 0.338567 | 16,115 | 522 | 100 | 30.871648 | 0.848203 | 0.241514 | 0 | 0.461794 | 0 | 0.006645 | 0.224724 | 0.013371 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.146179 | false | 0 | 0.013289 | 0.046512 | 0.425249 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6a94cb3aa00c05ce634ab7e978620e45292a557a | 5,867 | py | Python | alexaskillz.py | willchis/alexaskillz | 11107e55061e8141383020422081071111b802c9 | [
"Apache-2.0"
] | null | null | null | alexaskillz.py | willchis/alexaskillz | 11107e55061e8141383020422081071111b802c9 | [
"Apache-2.0"
] | null | null | null | alexaskillz.py | willchis/alexaskillz | 11107e55061e8141383020422081071111b802c9 | [
"Apache-2.0"
] | null | null | null | import os
import time
import urllib, json
from random import randint
from flask import Flask
from flask_ask import Ask, statement, question
app = Flask(__name__)
ask = Ask(app, '/')
MAGIC_SEAWEED_KEY = 'e96ca9b1f03a627aaab136eafe4f83ee'
SPOT_ID = '1449'
@ask.launch
def launched():
return question("This is a sur... | 35.131737 | 614 | 0.661326 | 653 | 5,867 | 5.810107 | 0.485452 | 0.016605 | 0.008698 | 0.016342 | 0.024776 | 0.013179 | 0 | 0 | 0 | 0 | 0 | 0.009751 | 0.213397 | 5,867 | 166 | 615 | 35.343373 | 0.812351 | 0.044145 | 0 | 0.015504 | 0 | 0.046512 | 0.45849 | 0.014462 | 0 | 0 | 0 | 0.006024 | 0 | 0 | null | null | 0.007752 | 0.046512 | null | null | 0.031008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a95b708a7fb1963de9f1220f2bd005ae0fbb88b | 2,175 | py | Python | tes_test.py | ncos/checkq | 79506a9eafc9c5dacc84ee3dc37f799d734f4701 | [
"MIT"
] | 3 | 2016-01-25T02:19:28.000Z | 2019-09-01T22:03:31.000Z | tes_test.py | ncos/checkq | 79506a9eafc9c5dacc84ee3dc37f799d734f4701 | [
"MIT"
] | null | null | null | tes_test.py | ncos/checkq | 79506a9eafc9c5dacc84ee3dc37f799d734f4701 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import tesseract
import cv2
import cv2.cv as cv
import numpy as np
scale = 1
delta = 0
ddepth = cv2.CV_16S
gray=cv2.imread("/root/Desktop/b.jpg")
gray = cv2.resize(gray, None, fx=0.2, fy=0.2, interpolation = cv2.INTER_CUBIC)
### trim the edges
cut_offset=23
gray=gray[cut_offset:-cut_offset,cut_o... | 29 | 108 | 0.742989 | 340 | 2,175 | 4.644118 | 0.414706 | 0.026599 | 0.022799 | 0.034199 | 0.09373 | 0.09373 | 0.070931 | 0.070931 | 0.070931 | 0.070931 | 0 | 0.059701 | 0.106667 | 2,175 | 74 | 109 | 29.391892 | 0.752959 | 0.205977 | 0 | 0.043478 | 0 | 0 | 0.053066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | 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 |
6a99eebcebd3d8766208e6f14756495c7b1f7859 | 356 | py | Python | nester.py | leaf8742/python-sample | d836158e237fad5b73f33cc015fede19bbd99d9a | [
"MIT"
] | null | null | null | nester.py | leaf8742/python-sample | d836158e237fad5b73f33cc015fede19bbd99d9a | [
"MIT"
] | null | null | null | nester.py | leaf8742/python-sample | d836158e237fad5b73f33cc015fede19bbd99d9a | [
"MIT"
] | null | null | null | def print_lol(the_list, indent = False, level = 0):
"""This function ..."""
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_item, indent, level + 1)
else:
if indent:
for tab_stop in range(level):
print("\t", e... | 29.666667 | 51 | 0.516854 | 44 | 356 | 3.977273 | 0.545455 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.365169 | 356 | 11 | 52 | 32.363636 | 0.765487 | 0.047753 | 0 | 0 | 0 | 0 | 0.006006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a9cf64eb1a0c8015b49082d5009993076eec10f | 60,606 | py | Python | aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py | xxiao-1/timeShift | 3a9ce6b15996c279393f367d6eea5b26e935dec1 | [
"BSD-4-Clause"
] | null | null | null | aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py | xxiao-1/timeShift | 3a9ce6b15996c279393f367d6eea5b26e935dec1 | [
"BSD-4-Clause"
] | null | null | null | aslam_offline_calibration/kalibr/python/kalibr_imu_camera_calibration/IccSensors.py | xxiao-1/timeShift | 3a9ce6b15996c279393f367d6eea5b26e935dec1 | [
"BSD-4-Clause"
] | null | null | null | import sm
import aslam_cv as acv
import aslam_cameras_april as acv_april
import aslam_splines as asp
import aslam_backend as aopt
import bsplines
import kalibr_common as kc
import kalibr_errorterms as ket
import IccCalibrator as ic
import cv2
import sys
import math
import numpy as np
import pylab as pl
import scipy.op... | 45.637048 | 182 | 0.589414 | 6,576 | 60,606 | 5.30368 | 0.115268 | 0.002867 | 0.001806 | 0.002581 | 0.556298 | 0.508129 | 0.482553 | 0.457293 | 0.43424 | 0.420879 | 0 | 0.010829 | 0.31586 | 60,606 | 1,328 | 183 | 45.637048 | 0.830331 | 0.119955 | 0 | 0.45302 | 0 | 0.005593 | 0.071822 | 0.001166 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016779 | null | null | 0.095078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a9eee03120b7cad9685395e99acf58950d01962 | 861 | py | Python | source/tools/download.py | crcx/parable | 724aa73f8cae2ffcf10e45118a5b3c26322290d7 | [
"0BSD"
] | 15 | 2015-01-09T22:56:21.000Z | 2019-01-09T14:44:50.000Z | source/tools/download.py | crcx/parable | 724aa73f8cae2ffcf10e45118a5b3c26322290d7 | [
"0BSD"
] | 23 | 2015-03-18T20:42:33.000Z | 2016-05-04T12:09:23.000Z | source/tools/download.py | crcx/parable | 724aa73f8cae2ffcf10e45118a5b3c26322290d7 | [
"0BSD"
] | 8 | 2015-01-09T22:56:24.000Z | 2021-05-15T09:16:07.000Z | # coding: utf-8
# This is a small script to download / update the Parable sources
# under Pythonista.
import requests
import os.path
import sys
urls = ['https://raw.githubusercontent.com/crcx/parable/master/py/allegory',
'https://raw.githubusercontent.com/crcx/parable/master/py/parable.py',
'https://r... | 33.115385 | 90 | 0.656214 | 120 | 861 | 4.708333 | 0.491667 | 0.053097 | 0.176991 | 0.19823 | 0.4 | 0.332743 | 0.332743 | 0.332743 | 0 | 0 | 0 | 0.001412 | 0.1777 | 861 | 26 | 91 | 33.115385 | 0.79661 | 0.110337 | 0 | 0 | 0 | 0.05 | 0.418087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.15 | 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 |
6aa37a162672ee52f0f15e689f62e6be8f82cc06 | 1,477 | py | Python | pi/server.py | jeffninghan/tracker | 42a0cfda4b611c9649f2900be851335f82da2fcf | [
"MIT"
] | null | null | null | pi/server.py | jeffninghan/tracker | 42a0cfda4b611c9649f2900be851335f82da2fcf | [
"MIT"
] | null | null | null | pi/server.py | jeffninghan/tracker | 42a0cfda4b611c9649f2900be851335f82da2fcf | [
"MIT"
] | null | null | null | from flask import Flask
import pygame
app = Flask(__name__)
song_filename = 'song.mp3'
playing = False
song_list = ['song.mp3', 'song2.mp3', 'song3.mp3']
@app.route('/play')
def play():
global playing
if not playing:
pygame.mixer.music.play()
playing = True
else:
pygame.mixer.mus... | 20.232877 | 51 | 0.624915 | 193 | 1,477 | 4.642487 | 0.274611 | 0.135045 | 0.178571 | 0.075893 | 0.367188 | 0.367188 | 0.367188 | 0.328125 | 0.328125 | 0.328125 | 0 | 0.025778 | 0.238321 | 1,477 | 72 | 52 | 20.513889 | 0.770667 | 0 | 0 | 0.288136 | 0 | 0 | 0.106369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aa37a3f613ffa2d4d4b2dcafcf79ab3994ef43e | 715 | py | Python | overlays/b-toggle.py | werpu/emulation_tools | 8293fbf566c66362fc7238cacdea118da5b86d9d | [
"MIT"
] | null | null | null | overlays/b-toggle.py | werpu/emulation_tools | 8293fbf566c66362fc7238cacdea118da5b86d9d | [
"MIT"
] | 4 | 2020-10-06T14:49:27.000Z | 2021-08-31T19:07:47.000Z | overlays/b-toggle.py | werpu/emulation_tools | 8293fbf566c66362fc7238cacdea118da5b86d9d | [
"MIT"
] | null | null | null | # plugin which demonstrates
# how to toggle a state
# on a keypress, for simplicity reasons we just start vlc in hidden mode
import os
cfg = globals()["config"]
drv = globals()["drivers"]
AUTOFIRE_PRESS = "_b_autofire_press"
# plugin_data is a user reserved namespace which can be used by the plugins to store global ... | 27.5 | 96 | 0.735664 | 107 | 715 | 4.803738 | 0.551402 | 0.126459 | 0.101167 | 0.081712 | 0.29572 | 0.194553 | 0.194553 | 0.194553 | 0.194553 | 0.194553 | 0 | 0 | 0.172028 | 715 | 25 | 97 | 28.6 | 0.868243 | 0.297902 | 0 | 0.133333 | 0 | 0 | 0.359596 | 0.175758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.066667 | 0 | 0.066667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6aa6fe8ab00bbad5f2f996dea0d9cb49a2b3085d | 2,428 | py | Python | prototype/api/FlaskApp/FlaskApp/azure_components/azure/storage/_common_conversion.py | Grey-Peters/IanPeters | 3f3bb124ff9f340fad1057d96305594070ce8be9 | [
"Apache-2.0"
] | null | null | null | prototype/api/FlaskApp/FlaskApp/azure_components/azure/storage/_common_conversion.py | Grey-Peters/IanPeters | 3f3bb124ff9f340fad1057d96305594070ce8be9 | [
"Apache-2.0"
] | null | null | null | prototype/api/FlaskApp/FlaskApp/azure_components/azure/storage/_common_conversion.py | Grey-Peters/IanPeters | 3f3bb124ff9f340fad1057d96305594070ce8be9 | [
"Apache-2.0"
] | null | null | null | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apa... | 25.030928 | 75 | 0.644563 | 324 | 2,428 | 4.617284 | 0.333333 | 0.018717 | 0.033422 | 0.02607 | 0.173797 | 0.145722 | 0.145722 | 0.145722 | 0.145722 | 0.122995 | 0 | 0.024505 | 0.210049 | 2,428 | 96 | 76 | 25.291667 | 0.754953 | 0.294069 | 0 | 0.263158 | 0 | 0 | 0.025898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087719 | 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 |
6aa9bbef2966697bccbd0e6abc6f1c7dca422d92 | 2,041 | py | Python | metadata/tests/unit/api/feature/test_feature_tag_api.py | jdavidheiser/amundsen | fc18c0ed0cca80f90d3d11436f2c73eb5e385235 | [
"Apache-2.0"
] | null | null | null | metadata/tests/unit/api/feature/test_feature_tag_api.py | jdavidheiser/amundsen | fc18c0ed0cca80f90d3d11436f2c73eb5e385235 | [
"Apache-2.0"
] | null | null | null | metadata/tests/unit/api/feature/test_feature_tag_api.py | jdavidheiser/amundsen | fc18c0ed0cca80f90d3d11436f2c73eb5e385235 | [
"Apache-2.0"
] | null | null | null | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
from metadata_service.entity.resource_type import ResourceType
from metadata_service.exception import NotFoundException
from tests.unit.api.feature.feature_test_case import FeatureTestCase
FEATURE_URI ... | 43.425532 | 97 | 0.648212 | 233 | 2,041 | 5.390558 | 0.296137 | 0.063694 | 0.072452 | 0.076433 | 0.691083 | 0.676752 | 0.676752 | 0.676752 | 0.659236 | 0.659236 | 0 | 0.001324 | 0.259677 | 2,041 | 46 | 98 | 44.369565 | 0.829914 | 0.040666 | 0 | 0.482759 | 0 | 0 | 0.10844 | 0.065473 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.137931 | false | 0 | 0.137931 | 0 | 0.310345 | 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 |
6aac521887e6852e8a6fae7fa635f43a272d92ab | 1,445 | py | Python | adminmgr/media/code/A3/task1/BD_0177_1116_1731_811_S5b8HEk.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 9 | 2019-11-08T02:05:27.000Z | 2021-12-13T12:06:35.000Z | adminmgr/media/code/A3/task1/BD_0177_1116_1731_811_S5b8HEk.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 6 | 2019-11-27T03:23:16.000Z | 2021-06-10T19:15:13.000Z | adminmgr/media/code/A3/task1/BD_0177_1116_1731_811_S5b8HEk.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 4 | 2019-11-26T17:04:27.000Z | 2021-12-13T11:57:03.000Z | from __future__ import print_function
import sys
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
from pyspark.sql.types import *
spark_session_object = SparkSession.builder.appName('structuredstreaming').getOrCreate()
#schema creation
schema = StructType([
StructField('ID', IntegerType(), T... | 36.125 | 141 | 0.767474 | 163 | 1,445 | 6.723926 | 0.509202 | 0.17792 | 0.182482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006042 | 0.083737 | 1,445 | 39 | 142 | 37.051282 | 0.821752 | 0.078201 | 0 | 0 | 0 | 0 | 0.1875 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.172414 | 0.034483 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aac6aadaeed491def8519eac6bce67fa79f624f | 1,219 | py | Python | NationalHighSchoolExamDataCrawler/Main.py | dewanderelex/WebScrapingTools | 2edcb03b0d00f3f45e4e0c4a4d3aa9f565d49309 | [
"MIT"
] | null | null | null | NationalHighSchoolExamDataCrawler/Main.py | dewanderelex/WebScrapingTools | 2edcb03b0d00f3f45e4e0c4a4d3aa9f565d49309 | [
"MIT"
] | null | null | null | NationalHighSchoolExamDataCrawler/Main.py | dewanderelex/WebScrapingTools | 2edcb03b0d00f3f45e4e0c4a4d3aa9f565d49309 | [
"MIT"
] | null | null | null | import bs4, requests, os, xlsxwriter, time
start_time = time.time()
def generateID(n):
canID = str(n)
count = 0
num = n
while num > 0:
count += 1
num//=10
count0 = 4 - count
for i in range (count0):
canID = "0" + canID
return canID
'''
workbook = xlsxwriter.Workbook... | 28.348837 | 106 | 0.626743 | 164 | 1,219 | 4.640244 | 0.420732 | 0.091984 | 0.111695 | 0.131406 | 0.268068 | 0.141919 | 0.141919 | 0.141919 | 0.141919 | 0.141919 | 0 | 0.048907 | 0.211649 | 1,219 | 42 | 107 | 29.02381 | 0.742976 | 0 | 0 | 0 | 1 | 0.0625 | 0.192225 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aacb0b435decacb2cc16c4a8bb01f1d61179cf9 | 4,251 | py | Python | SDM/apps/SynPullingController.py | jalilm/SDN-Monitoring | 4ba8dd0f0ed5e44c0e803713d6c82ee2c815c7e4 | [
"Apache-2.0"
] | 1 | 2017-01-02T12:05:21.000Z | 2017-01-02T12:05:21.000Z | SDM/apps/SynPullingController.py | jalilm/SDN-Monitoring | 4ba8dd0f0ed5e44c0e803713d6c82ee2c815c7e4 | [
"Apache-2.0"
] | null | null | null | SDM/apps/SynPullingController.py | jalilm/SDN-Monitoring | 4ba8dd0f0ed5e44c0e803713d6c82ee2c815c7e4 | [
"Apache-2.0"
] | null | null | null | from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_5
from SDM.apps.PullingController import PullingController
from SDM.rules.FlagsDestRule import FlagsDestRule
from SDM.rules.SynDestRule import SynDestR... | 46.714286 | 120 | 0.545048 | 448 | 4,251 | 4.928571 | 0.321429 | 0.036232 | 0.036232 | 0.03442 | 0.210145 | 0.133152 | 0.115036 | 0.078804 | 0.050725 | 0.050725 | 0 | 0.021363 | 0.361327 | 4,251 | 90 | 121 | 47.233333 | 0.791897 | 0.094566 | 0 | 0.081081 | 0 | 0 | 0.088258 | 0.01458 | 0 | 0 | 0 | 0.011111 | 0.013514 | 1 | 0.040541 | false | 0.013514 | 0.108108 | 0.013514 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6ab24aa5b234c4e8a0eb64830cc991a14b4aa949 | 780 | py | Python | atmega328p-nano-interfaces/utils/setDeviceID.py | Nextfood/grow-unit-control | dbf9255500e5940ac7af806756c0412d14bdd90d | [
"MIT"
] | 1 | 2017-08-26T21:28:10.000Z | 2017-08-26T21:28:10.000Z | atmega328p-nano-interfaces/utils/setDeviceID.py | Nextfood/grow-unit-control | dbf9255500e5940ac7af806756c0412d14bdd90d | [
"MIT"
] | null | null | null | atmega328p-nano-interfaces/utils/setDeviceID.py | Nextfood/grow-unit-control | dbf9255500e5940ac7af806756c0412d14bdd90d | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import json
import serial
import serial.tools.list_ports
import time
def set_serialport_id(serialport, idstring):
print "Opening interface module on " + serialport
ser = serial.Serial(serialport, 57600, timeout=0.5)
time.sleep(2)
ser.write(json.dumps({'id':idstring}))
... | 21.666667 | 84 | 0.652564 | 102 | 780 | 4.862745 | 0.54902 | 0.072581 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028381 | 0.232051 | 780 | 36 | 85 | 21.666667 | 0.799666 | 0.020513 | 0 | 0 | 0 | 0 | 0.205497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ab3884e8ce4cf8cdbe3a08be8ec76027b18e364 | 471 | py | Python | exercicios/section04/39.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | exercicios/section04/39.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | exercicios/section04/39.py | Tiesco789/guppe | 464702a2d618e149439a9b5c763f82c5376d2c32 | [
"MIT"
] | null | null | null | # A importancia de R$780.000.00 será dividida entre tres ganhadores de um concurso
# sendo que da quantia total:
# - O primeiro ganhador receberá 46%
# - O segundo recebera 32%
# - O terceiro receberá o restante
premio = 780000.00
primeiro = premio * 0.46
segundo = premio * 0.32
terceiro = premio - primeiro - segundo... | 29.4375 | 82 | 0.719745 | 76 | 471 | 4.460526 | 0.5 | 0.053097 | 0.061947 | 0.132743 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081218 | 0.163482 | 471 | 15 | 83 | 31.4 | 0.779188 | 0.426752 | 0 | 0 | 0 | 0 | 0.439394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ab3ebbac4842724f7caed2c0b8a60f84b30ddbc | 5,082 | py | Python | fzw-backend/fzw/settings.py | edukaton/stowarzyszenie-demagog | 0c3046f711b7c38c7f83baa108b8d7a5593a401e | [
"MIT"
] | 1 | 2018-03-14T21:02:01.000Z | 2018-03-14T21:02:01.000Z | fzw-backend/fzw/settings.py | edukaton/stowarzyszenie-demagog | 0c3046f711b7c38c7f83baa108b8d7a5593a401e | [
"MIT"
] | 1 | 2018-02-23T14:16:35.000Z | 2018-02-23T18:58:23.000Z | fzw-backend/fzw/settings.py | edukaton/stowarzyszenie-demagog | 0c3046f711b7c38c7f83baa108b8d7a5593a401e | [
"MIT"
] | null | null | null | """
Django settings for fzw project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
impor... | 26.331606 | 105 | 0.67316 | 599 | 5,082 | 5.512521 | 0.338898 | 0.059055 | 0.032707 | 0.052998 | 0.214718 | 0.162023 | 0.123561 | 0.123561 | 0.036342 | 0 | 0 | 0.015034 | 0.188508 | 5,082 | 192 | 106 | 26.46875 | 0.785645 | 0.20307 | 0 | 0.032258 | 1 | 0.008065 | 0.43461 | 0.279214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0.040323 | 0.016129 | 0.008065 | 0.032258 | 0 | 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 |
6abf5c99350f5b0de6f020c89fff1aea97d91e9a | 1,433 | py | Python | Python Scripts/Restaurants/Visualization/Restaurants_Elbow.py | angadp/YELPClustering | 8494a37cc245fa9dfed47753305072272cbb9bf6 | [
"MIT"
] | 3 | 2020-05-12T07:51:48.000Z | 2021-08-07T21:59:40.000Z | Python Scripts/Restaurants/Visualization/Restaurants_Elbow.py | angadp/YELPClustering | 8494a37cc245fa9dfed47753305072272cbb9bf6 | [
"MIT"
] | null | null | null | Python Scripts/Restaurants/Visualization/Restaurants_Elbow.py | angadp/YELPClustering | 8494a37cc245fa9dfed47753305072272cbb9bf6 | [
"MIT"
] | 1 | 2019-08-19T15:23:28.000Z | 2019-08-19T15:23:28.000Z | import matplotlib.pyplot as plt
from pyspark.mllib.linalg import Vectors
from pyspark.mllib.clustering import KMeans
from pyspark import SparkContext, SparkConf
import datetime as dt
import dateutil.parser as par
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pandas as pd
import numpy as... | 34.95122 | 115 | 0.757153 | 211 | 1,433 | 5.004739 | 0.473934 | 0.052083 | 0.045455 | 0.079545 | 0.100379 | 0.058712 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.112352 | 1,433 | 40 | 116 | 35.825 | 0.823899 | 0 | 0 | 0.052632 | 0 | 0 | 0.136078 | 0.06141 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342105 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6abf916b10d8ad3b79eef9688dfbd51bd14a427b | 2,726 | py | Python | mlflow_export_import/common/mlflow_utils.py | mirhendi/mlflow-export-import | 5be6217eda6a9178793cbc5ebe877b5dddc9a73e | [
"Apache-2.0"
] | null | null | null | mlflow_export_import/common/mlflow_utils.py | mirhendi/mlflow-export-import | 5be6217eda6a9178793cbc5ebe877b5dddc9a73e | [
"Apache-2.0"
] | null | null | null | mlflow_export_import/common/mlflow_utils.py | mirhendi/mlflow-export-import | 5be6217eda6a9178793cbc5ebe877b5dddc9a73e | [
"Apache-2.0"
] | null | null | null | import os
import mlflow
def dump_mlflow_info():
print("MLflow Info:")
print(" MLflow Version:", mlflow.version.VERSION)
print(" Tracking URI:", mlflow.tracking.get_tracking_uri())
mlflow_host = get_mlflow_host()
print(" Real MLflow host:", mlflow_host)
print(" MLFLOW_TRACKING_URI:", os.envi... | 38.394366 | 110 | 0.706897 | 369 | 2,726 | 4.926829 | 0.203252 | 0.024202 | 0.048405 | 0.048405 | 0.410341 | 0.368537 | 0.368537 | 0.256326 | 0.256326 | 0.213421 | 0 | 0.000452 | 0.188555 | 2,726 | 70 | 111 | 38.942857 | 0.821429 | 0.147836 | 0 | 0.3 | 0 | 0 | 0.201236 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.14 | false | 0 | 0.1 | 0 | 0.38 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ad1e6493ff3932b62d6add38d9c357cefea8658 | 1,157 | py | Python | stopWords.py | yeshwindbz9/natural-language-processing_crash_codes | 9656d9b20eec787eab0dd1acbf2b57c537c58ef2 | [
"MIT"
] | null | null | null | stopWords.py | yeshwindbz9/natural-language-processing_crash_codes | 9656d9b20eec787eab0dd1acbf2b57c537c58ef2 | [
"MIT"
] | null | null | null | stopWords.py | yeshwindbz9/natural-language-processing_crash_codes | 9656d9b20eec787eab0dd1acbf2b57c537c58ef2 | [
"MIT"
] | null | null | null | """
Words like "a" and "the" appear so frequently that they
don't require tagging as thoroughly as nouns, verbs and modifiers.
We call these stop words, and they can be filtered from the text to be processed.
spaCy holds a built-in list of some 305 English stop words.
"""
import spacy
nlp = spacy.loa... | 42.851852 | 86 | 0.729473 | 197 | 1,157 | 4.19797 | 0.370558 | 0.152358 | 0.108827 | 0.145103 | 0.321645 | 0.166868 | 0.166868 | 0.166868 | 0.166868 | 0.166868 | 0 | 0.003027 | 0.143475 | 1,157 | 27 | 87 | 42.851852 | 0.831483 | 0.414866 | 0 | 0.2 | 0 | 0 | 0.29584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ad20d03c52893adec7c67e2ded1af720557678d | 1,447 | py | Python | observations/r/randu.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/randu.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/randu.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def randu(path):
"""Random Numbers from Congruential Generator RANDU
4... | 27.826923 | 74 | 0.693158 | 206 | 1,447 | 4.73301 | 0.572816 | 0.032821 | 0.049231 | 0.047179 | 0.045128 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013465 | 0.230131 | 1,447 | 51 | 75 | 28.372549 | 0.861759 | 0.436766 | 0 | 0 | 0 | 0 | 0.092545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6ad2910b6e1354e29a3d7662de7210a88e5dec76 | 6,031 | py | Python | fastgame/core/sprite.py | stripepython/fastgame | 6bf399753600ba4745b181b5256c6ff7e1c9cf88 | [
"MIT"
] | 1 | 2022-01-31T05:28:53.000Z | 2022-01-31T05:28:53.000Z | fastgame/core/sprite.py | stripepython/fastgame | 6bf399753600ba4745b181b5256c6ff7e1c9cf88 | [
"MIT"
] | null | null | null | fastgame/core/sprite.py | stripepython/fastgame | 6bf399753600ba4745b181b5256c6ff7e1c9cf88 | [
"MIT"
] | null | null | null | """
fastgame.core.sprite
主角色基类文件。
>>> from fastgame import Sprite
>>> sprite = Sprite('test.jpg')
"""
from typing import Union, Tuple
from os.path import join, isfile
import pygame
import fastgame
from fastgame.exceptions import *
__all__ = ['Sprite']
class Sprite(pygame.sprite.Sprite):
d... | 24.921488 | 79 | 0.474714 | 631 | 6,031 | 4.467512 | 0.22504 | 0.09365 | 0.046825 | 0.062433 | 0.365733 | 0.301525 | 0.244413 | 0.213906 | 0.151117 | 0.151117 | 0 | 0.001956 | 0.406566 | 6,031 | 241 | 80 | 25.024896 | 0.785694 | 0.217377 | 0 | 0.264368 | 0 | 0 | 0.016863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218391 | false | 0 | 0.057471 | 0.022989 | 0.356322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6adbfdf4da01841420c929061b79f623af7c31ec | 72,544 | py | Python | 202201/jd_zha_nian_shou.py | XunYi-H/jd_pc_auto_practise | cda5d6bfbfa4dcc5eddc6e49aea7f4813155607f | [
"BSD-2-Clause"
] | 33 | 2021-10-30T17:16:44.000Z | 2022-02-10T06:19:25.000Z | 202201/jd_zha_nian_shou.py | XunYi-H/jd_pc_auto_practise | cda5d6bfbfa4dcc5eddc6e49aea7f4813155607f | [
"BSD-2-Clause"
] | 5 | 2022-01-13T01:16:50.000Z | 2022-01-16T16:30:19.000Z | 202201/jd_zha_nian_shou.py | XunYi-H/jd_pc_auto_practise | cda5d6bfbfa4dcc5eddc6e49aea7f4813155607f | [
"BSD-2-Clause"
] | 23 | 2021-10-31T02:40:49.000Z | 2022-02-15T03:22:24.000Z | #!/usr/bin/python
# coding=utf-8
# 公众号:testerzhang
__author__ = 'testerzhang'
import os
import time
import traceback
from appium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException, TimeoutEx... | 42.773585 | 172 | 0.48248 | 7,172 | 72,544 | 4.610151 | 0.087005 | 0.04824 | 0.046455 | 0.029216 | 0.7549 | 0.724837 | 0.685247 | 0.635465 | 0.598899 | 0.55813 | 0 | 0.006943 | 0.428209 | 72,544 | 1,695 | 173 | 42.79882 | 0.790164 | 0.046206 | 0 | 0.662745 | 0 | 0.012549 | 0.162091 | 0.126773 | 0 | 0 | 0 | 0.00059 | 0 | 1 | 0.023529 | false | 0.007059 | 0.009412 | 0 | 0.061176 | 0.007843 | 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 |
6adc03b0cf23c3b57605f8df2b2fed981719f032 | 343 | py | Python | pspgamer/test/TestTV.py | totomz/pspgamer | 6a0f71294cacff40a26aec0015b68e0303d2c853 | [
"Apache-2.0"
] | null | null | null | pspgamer/test/TestTV.py | totomz/pspgamer | 6a0f71294cacff40a26aec0015b68e0303d2c853 | [
"Apache-2.0"
] | null | null | null | pspgamer/test/TestTV.py | totomz/pspgamer | 6a0f71294cacff40a26aec0015b68e0303d2c853 | [
"Apache-2.0"
] | null | null | null | import samsungctl
import samsungctl
import time
config = {
"name": "samsungctl",
"description": "PC",
"id": "",
"host": "192.168.0.10",
"port": 55000,
"method": "legacy",
"timeout": 0,
}
with samsungctl.Remote(config) as remote:
for i in range(10):
remote.control("KEY_MENU")
... | 17.15 | 41 | 0.577259 | 42 | 343 | 4.690476 | 0.714286 | 0.162437 | 0.22335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073643 | 0.247813 | 343 | 19 | 42 | 18.052632 | 0.689922 | 0 | 0 | 0.125 | 0 | 0 | 0.221574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ade60063c64fd61f43fe825f3bc1ea6619cb55a | 3,842 | py | Python | Calibration/IsolatedParticles/python/isolatedTracksCone_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Calibration/IsolatedParticles/python/isolatedTracksCone_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Calibration/IsolatedParticles/python/isolatedTracksCone_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
isolatedTracksCone= cms.EDAnalyzer("IsolatedTracksCone",
doMC = cms.untracked.bool(False),
Verbosity = cms.untracked.int32( 1 ),
useJetTrigger = cms.untracked.b... | 69.854545 | 108 | 0.417231 | 224 | 3,842 | 7.15625 | 0.370536 | 0.097318 | 0.059888 | 0.052402 | 0.024953 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031529 | 0.504685 | 3,842 | 54 | 109 | 71.148148 | 0.810825 | 0 | 0 | 0 | 0 | 0 | 0.052577 | 0.006767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ae2abd1cbbfd4ba14a95576a04fda75cdfb2ca3 | 1,813 | py | Python | lib/surface/debug/__init__.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/__init__.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/__init__.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | 2 | 2020-11-04T03:08:21.000Z | 2020-11-05T08:14:41.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 32.375 | 74 | 0.737452 | 235 | 1,813 | 5.676596 | 0.557447 | 0.044978 | 0.065967 | 0.062969 | 0.046477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.188086 | 1,813 | 55 | 75 | 32.963636 | 0.900815 | 0.544953 | 0 | 0 | 0 | 0 | 0.160784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ae4f2660752606c33b398206cfdb4e0ad1607e1 | 18,281 | py | Python | tests/test_user_display.py | samuelcolvin/morpheus | c7215945b0830bc9d05e8ecfbdebcc190006f73f | [
"MIT"
] | null | null | null | tests/test_user_display.py | samuelcolvin/morpheus | c7215945b0830bc9d05e8ecfbdebcc190006f73f | [
"MIT"
] | null | null | null | tests/test_user_display.py | samuelcolvin/morpheus | c7215945b0830bc9d05e8ecfbdebcc190006f73f | [
"MIT"
] | null | null | null | import hashlib
import hmac
import json
import uuid
from buildpg import V, Values
from datetime import date, datetime, timedelta, timezone
from foxglove import glove
from foxglove.db.helpers import SyncDb
from operator import itemgetter
from pytest_toolbox.comparison import RegexStr
from starlette.testclient import Test... | 38.813163 | 119 | 0.59127 | 2,426 | 18,281 | 4.296373 | 0.11418 | 0.031949 | 0.018133 | 0.040775 | 0.730404 | 0.7045 | 0.681953 | 0.650772 | 0.625636 | 0.588698 | 0 | 0.030148 | 0.217986 | 18,281 | 470 | 120 | 38.895745 | 0.698937 | 0 | 0 | 0.491443 | 0 | 0 | 0.273016 | 0.049724 | 0 | 0 | 0 | 0 | 0.161369 | 1 | 0.0489 | false | 0 | 0.031785 | 0 | 0.08313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ae4fa7bb703717cab29c7cd89db34262abd4bdf | 3,326 | py | Python | tests/test_kenken.py | billwright/GridPuzzles | 9660880748c656d1a9ac6205eff8cfd22555e069 | [
"MIT"
] | 1 | 2021-01-14T00:29:52.000Z | 2021-01-14T00:29:52.000Z | tests/test_kenken.py | billwright/GridPuzzles | 9660880748c656d1a9ac6205eff8cfd22555e069 | [
"MIT"
] | null | null | null | tests/test_kenken.py | billwright/GridPuzzles | 9660880748c656d1a9ac6205eff8cfd22555e069 | [
"MIT"
] | null | null | null | import unittest
from Kenken import Kenken
kenken_size_3 = [
('/', 3, ['A1', 'A2']),
('-', 1, ['B1', 'C1']),
('/', 3, ['B2', 'B3']),
('/', 2, ['C2', 'C3']),
('', 2, ['A3'])
]
kenken_size_4 = [
('*', 24, ['A1', 'A2', 'B1']),
('', 3, ['A3']),
('-', 3, ['A4', 'B4']),
('/', 2, ['B2', '... | 25.782946 | 57 | 0.407697 | 367 | 3,326 | 3.490463 | 0.33515 | 0.132709 | 0.060109 | 0.066354 | 0.453552 | 0.41452 | 0.393443 | 0.346604 | 0.346604 | 0.302888 | 0 | 0.093684 | 0.29074 | 3,326 | 128 | 58 | 25.984375 | 0.449343 | 0 | 0 | 0.306306 | 0 | 0 | 0.097114 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 1 | 0.054054 | false | 0 | 0.018018 | 0 | 0.081081 | 0.018018 | 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 |
6ae811ecf36c13f5d7c18f2f148b879f8ce8d39f | 825 | py | Python | {{cookiecutter.github_repository}}/{{cookiecutter.project_name}}/urls.py | caravel/django-in | 7c23f8ca26329f77b5daf4a1370729d111909cc1 | [
"MIT"
] | 2 | 2020-10-05T09:55:20.000Z | 2020-10-21T18:54:56.000Z | {{cookiecutter.github_repository}}/{{cookiecutter.project_name}}/urls.py | caravel/django-in | 7c23f8ca26329f77b5daf4a1370729d111909cc1 | [
"MIT"
] | 110 | 2018-08-02T21:17:01.000Z | 2022-03-28T14:36:09.000Z | {{cookiecutter.github_repository}}/{{cookiecutter.project_name}}/urls.py | caravel/django-in | 7c23f8ca26329f77b5daf4a1370729d111909cc1 | [
"MIT"
] | 4 | 2018-04-17T07:06:26.000Z | 2020-11-28T06:22:41.000Z | """{{ cookiecutter.project_name }} URL Configuration
"""
from django.contrib import admin
from django.urls import path
from django.views.generic import TemplateView
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
urlpatterns = [
path('admin... | 28.448276 | 70 | 0.724848 | 102 | 825 | 5.696078 | 0.343137 | 0.10327 | 0.118761 | 0.061962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134545 | 825 | 28 | 71 | 29.464286 | 0.813725 | 0.270303 | 0 | 0.125 | 0 | 0 | 0.1875 | 0.084459 | 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 |
6aee11e3459fd0464ff32a58ca89cd077de9f835 | 311 | py | Python | ca_ab_edmonton/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | 2 | 2017-06-02T09:41:28.000Z | 2017-11-17T15:27:07.000Z | ca_ab_edmonton/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | null | null | null | ca_ab_edmonton/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from utils import CanadianJurisdiction
class Edmonton(CanadianJurisdiction):
classification = 'legislature'
division_id = 'ocd-division/country:ca/csd:4811061'
division_name = 'Edmonton'
name = 'Edmonton City Council'
url = 'http://www.edmonton.ca'
| 28.272727 | 55 | 0.752412 | 34 | 311 | 6.676471 | 0.705882 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026718 | 0.157556 | 311 | 10 | 56 | 31.1 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0.311897 | 0.11254 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a7226b606e6db020c29c0bf3764ee40d4f2c774 | 764 | py | Python | rong_tools/pyExecJs.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | 3 | 2017-08-11T20:59:00.000Z | 2017-10-04T01:23:24.000Z | rong_tools/pyExecJs.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | null | null | null | rong_tools/pyExecJs.py | wanghuafeng/auth_login_tools | b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0 | [
"MIT"
] | 1 | 2018-07-26T02:49:41.000Z | 2018-07-26T02:49:41.000Z | from PyQt4.QtCore import QUrl
from PyQt4.QtGui import QApplication
from PyQt4.QtWebKit import QWebPage
import sys
import re
class Render(QWebPage):
def __init__(self, url):
self.app = QApplication(sys.argv)
QWebPage.__init__(self)
self.loadFinished.connect(self._loadFinished)
self.ma... | 31.833333 | 70 | 0.683246 | 106 | 764 | 4.754717 | 0.462264 | 0.053571 | 0.039683 | 0.031746 | 0.111111 | 0.111111 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0.023401 | 0.160995 | 764 | 23 | 71 | 33.217391 | 0.762871 | 0.068063 | 0 | 0 | 0 | 0 | 0.105634 | 0.097183 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a74517217ec4bf428010382cc44b16d7ddc5bbb | 18,625 | py | Python | strongpoc/cli.py | dropbox/strongpoc | 978a94406faf0222cc1b5e610116b5d3797f1f1c | [
"Apache-2.0"
] | 1 | 2016-03-25T09:43:53.000Z | 2016-03-25T09:43:53.000Z | strongpoc/cli.py | dropbox/strongpoc | 978a94406faf0222cc1b5e610116b5d3797f1f1c | [
"Apache-2.0"
] | 2 | 2015-12-17T06:53:00.000Z | 2015-12-17T07:50:14.000Z | strongpoc/cli.py | dropbox/strongpoc | 978a94406faf0222cc1b5e610116b5d3797f1f1c | [
"Apache-2.0"
] | 4 | 2015-12-17T04:03:30.000Z | 2020-11-18T18:05:19.000Z | #!/usr/bin/env python
""" Command-line interface to StrongPOC."""
from __future__ import division
import argparse
import logging
import slumber
import sys
import textwrap
import traceback
import urllib
from strongpoc.version import __version__
from strongpoc.settings_client import settings
logging.getLogger("reque... | 30.284553 | 85 | 0.671893 | 2,413 | 18,625 | 4.980937 | 0.070866 | 0.123554 | 0.039604 | 0.027956 | 0.742741 | 0.637241 | 0.530909 | 0.483817 | 0.393377 | 0.38306 | 0 | 0.001721 | 0.219973 | 18,625 | 614 | 86 | 30.333876 | 0.825578 | 0.028993 | 0 | 0.392265 | 0 | 0 | 0.172191 | 0.001632 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027624 | null | null | 0.044199 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a7a6374c6b8a67a22a3f5f50009ee08c097225e | 399 | py | Python | test/com/facebook/buck/cli/testdata/external_test_runner/test_runner_additional_coverage.py | jasonnam/buck | 1ddbbf986312b30413aa36cac337267536a11f04 | [
"Apache-2.0"
] | null | null | null | test/com/facebook/buck/cli/testdata/external_test_runner/test_runner_additional_coverage.py | jasonnam/buck | 1ddbbf986312b30413aa36cac337267536a11f04 | [
"Apache-2.0"
] | null | null | null | test/com/facebook/buck/cli/testdata/external_test_runner/test_runner_additional_coverage.py | jasonnam/buck | 1ddbbf986312b30413aa36cac337267536a11f04 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3 -u
from __future__ import print_function
import json
import optparse
import subprocess
import sys
parser = optparse.OptionParser()
parser.add_option("--buck-test-info")
parser.add_option("--jobs", type=int)
(options, args) = parser.parse_args()
with open(options.buck_test_info) as f:
test_i... | 19.95 | 58 | 0.75188 | 58 | 399 | 4.931034 | 0.62069 | 0.062937 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008499 | 0.115288 | 399 | 19 | 59 | 21 | 0.8017 | 0.050125 | 0 | 0 | 0 | 0 | 0.12963 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a82877785f4e8af3ff352ca370b4577fd2958d9 | 1,984 | py | Python | dongguan/dongguan/spiders/crawl.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | dongguan/dongguan/spiders/crawl.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | dongguan/dongguan/spiders/crawl.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from dongguan.items import DongguanItem
import time
class SunSpider(CrawlSpider):
name = 'crawl'
allowed_domains = ['wz.sun0769.com']
start_urls = ['http://wz.sun0769.com/inde... | 33.627119 | 100 | 0.597782 | 221 | 1,984 | 5.321267 | 0.511312 | 0.02551 | 0.022959 | 0.022109 | 0.120748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.239919 | 1,984 | 59 | 101 | 33.627119 | 0.761936 | 0.295363 | 0 | 0.068966 | 0 | 0.034483 | 0.203785 | 0.060408 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a853164dc2219e5fbc70086b4b04b4b836a0484 | 3,848 | py | Python | model/test_redis.py | xstsp/bio-query-expansion | b6cc9f404b7d554ef55ba8f0728c129ca5396a11 | [
"MIT"
] | 4 | 2018-02-27T06:49:35.000Z | 2019-05-07T09:01:31.000Z | model/test_redis.py | xstsp/bio-query-expansion | b6cc9f404b7d554ef55ba8f0728c129ca5396a11 | [
"MIT"
] | null | null | null | model/test_redis.py | xstsp/bio-query-expansion | b6cc9f404b7d554ef55ba8f0728c129ca5396a11 | [
"MIT"
] | 1 | 2021-07-22T02:16:44.000Z | 2021-07-22T02:16:44.000Z | import time
import nltk
import random
import redis
import re
import conf as con
t0 = time.time()
text = '''Pulmonary arterial hypertension (PAH) is a rare disease with prevalence estimated between 15 and 50 cases per million people1. PAH prevalence is two-to-four times higher in women than in men2,3, and the d... | 67.508772 | 785 | 0.753898 | 560 | 3,848 | 5.164286 | 0.483929 | 0.041148 | 0.026279 | 0.020055 | 0.044952 | 0.044952 | 0.029046 | 0.029046 | 0.029046 | 0 | 0 | 0.016196 | 0.181653 | 3,848 | 56 | 786 | 68.714286 | 0.902191 | 0.017412 | 0 | 0.090909 | 0 | 0.151515 | 0.778388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a8aeb5e8dc4fa1cbfe984a03897f82d4e9ec2a8 | 6,196 | py | Python | objects.py | bormanjo/py-pong | 34a0992ae0fa0b476482c0e25aa8d32a15d396d3 | [
"MIT"
] | null | null | null | objects.py | bormanjo/py-pong | 34a0992ae0fa0b476482c0e25aa8d32a15d396d3 | [
"MIT"
] | null | null | null | objects.py | bormanjo/py-pong | 34a0992ae0fa0b476482c0e25aa8d32a15d396d3 | [
"MIT"
] | null | null | null | import math
import pygame
import random
import config
class GameObject(object):
def __init__(self, position, dimensions, color=config.black):
self.pos = position
self.dim = dimensions
self.color = color
self.rect = pygame.Rect(*self.pos, *self.dim)
self.boundary = dict(
... | 27.784753 | 88 | 0.595384 | 864 | 6,196 | 4.039352 | 0.148148 | 0.018911 | 0.031519 | 0.021777 | 0.253582 | 0.148424 | 0.110602 | 0.069914 | 0.014327 | 0 | 0 | 0.021022 | 0.270658 | 6,196 | 223 | 89 | 27.784753 | 0.751272 | 0.017269 | 0 | 0.141935 | 0 | 0 | 0.049951 | 0.003451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245161 | false | 0.006452 | 0.025806 | 0.083871 | 0.43871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a929dfba19f0ac23c34e6327d3244b532c1382f | 555 | py | Python | 03-check_metadata.py | dramsay9/huxley | 27b5cf936091283a3c036ec1082dce7b4a550497 | [
"MIT"
] | null | null | null | 03-check_metadata.py | dramsay9/huxley | 27b5cf936091283a3c036ec1082dce7b4a550497 | [
"MIT"
] | 6 | 2019-02-25T19:18:54.000Z | 2019-02-25T19:22:33.000Z | 03-check_metadata.py | dramsay9/huxley | 27b5cf936091283a3c036ec1082dce7b4a550497 | [
"MIT"
] | null | null | null | import cPickle as pickle
from PIL import Image
from helper_eink_render import load_doc, get_page, make_page, binarize_img
#check our book data for each book
book_data = pickle.load(open('models/book_metadata.pkl', 'rb'))
for book in book_data:
for k,v in book.items():
if k == 'text': print k + ':\t' + s... | 26.428571 | 74 | 0.643243 | 90 | 555 | 3.8 | 0.555556 | 0.070175 | 0.087719 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205405 | 555 | 20 | 75 | 27.75 | 0.77551 | 0.059459 | 0 | 0 | 0 | 0 | 0.165385 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
0a949bb7f0fc990af601de385acbe66db1229edc | 4,720 | py | Python | lcm-types/python/rpc_inputs_t.py | zzssee5432/quadruped | bd6f55624648f7c922bccb1613df1ace73ca7495 | [
"MIT"
] | 12 | 2020-09-16T06:21:36.000Z | 2021-12-21T12:42:39.000Z | lcm-types/python/rpc_inputs_t.py | zzssee5432/quadruped | bd6f55624648f7c922bccb1613df1ace73ca7495 | [
"MIT"
] | null | null | null | lcm-types/python/rpc_inputs_t.py | zzssee5432/quadruped | bd6f55624648f7c922bccb1613df1ace73ca7495 | [
"MIT"
] | 5 | 2021-02-16T10:14:54.000Z | 2022-03-02T03:16:58.000Z | """LCM type definitions
This file automatically generated by lcm.
DO NOT MODIFY BY HAND!!!!
"""
try:
import cStringIO.StringIO as BytesIO
except ImportError:
from io import BytesIO
import struct
class rpc_inputs_t(object):
__slots__ = ["current_state", "p_foot0", "r_hip", "x_desired", "gait_enabled", "pha... | 44.11215 | 190 | 0.601907 | 675 | 4,720 | 4.025185 | 0.168889 | 0.050055 | 0.082444 | 0.105999 | 0.454545 | 0.401914 | 0.308428 | 0.151638 | 0.052264 | 0.035333 | 0 | 0.059241 | 0.223941 | 4,720 | 106 | 191 | 44.528302 | 0.682501 | 0.018644 | 0 | 0 | 1 | 0 | 0.071799 | 0 | 0 | 0 | 0.015571 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.044444 | 0 | 0.288889 | 0.088889 | 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 |
0a94c998cb83ad36120d1244e4d584727f27f026 | 1,567 | py | Python | tests/system/action/motion_comment_section/test_delete.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | tests/system/action/motion_comment_section/test_delete.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | tests/system/action/motion_comment_section/test_delete.py | r-peschke/openslides-backend | 83d0dab68bb914f06a0f50cffe23fc10ca45376f | [
"MIT"
] | null | null | null | from tests.system.action.base import BaseActionTestCase
class MotionCommentSectionActionTest(BaseActionTestCase):
def test_delete_correct(self) -> None:
self.create_model("motion_comment_section/111", {"name": "name_srtgb123"})
response = self.client.post(
"/",
json=[{"acti... | 39.175 | 113 | 0.617103 | 169 | 1,567 | 5.443787 | 0.319527 | 0.141304 | 0.195652 | 0.091304 | 0.607609 | 0.607609 | 0.569565 | 0.530435 | 0.436957 | 0.436957 | 0 | 0.044613 | 0.241863 | 1,567 | 39 | 114 | 40.179487 | 0.729798 | 0 | 0 | 0.294118 | 0 | 0 | 0.289726 | 0.15635 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.088235 | false | 0 | 0.029412 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a984de28cf2b98071dc14d4c3aac370ea57f2e6 | 4,975 | py | Python | NRPyPN/PN_Hamiltonian_SS.py | ksible/nrpytutorial | 4ca6e9da22def2a9c9bcbcad75847fd1db159f4b | [
"BSD-2-Clause"
] | 1 | 2020-06-09T16:16:21.000Z | 2020-06-09T16:16:21.000Z | NRPyPN/PN_Hamiltonian_SS.py | ksible/nrpytutorial | 4ca6e9da22def2a9c9bcbcad75847fd1db159f4b | [
"BSD-2-Clause"
] | null | null | null | NRPyPN/PN_Hamiltonian_SS.py | ksible/nrpytutorial | 4ca6e9da22def2a9c9bcbcad75847fd1db159f4b | [
"BSD-2-Clause"
] | null | null | null | # As documented in the NRPyPN notebook
# PN-Hamiltonian-Spin-Spin.ipynb, this Python script
# generates spin-spin coupling pieces of the
# post-Newtonian (PN) Hamiltonian, up to and
# including 3PN order.
# Core functions:
# f_H_SS_2PN(m1,m2, S1U,S2U, nU, q):
# Compute the complete H_SS_2PN term and store to
# ... | 50.765306 | 118 | 0.544523 | 822 | 4,975 | 3.184915 | 0.182482 | 0.071047 | 0.057296 | 0.033613 | 0.533995 | 0.454545 | 0.296409 | 0.232238 | 0.139801 | 0.139801 | 0 | 0.147676 | 0.243216 | 4,975 | 97 | 119 | 51.28866 | 0.547676 | 0.28603 | 0 | 0 | 1 | 0 | 0.000602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.052632 | 0 | 0.140351 | 0 | 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 |
0a9ff80aad3d60818aa9c3ef17ea08a9ed9ebeae | 835 | py | Python | setup.py | elmcrest/async-telegram-client | 567df1cce0a04a708d7d477bc91a0ccb9b2dce56 | [
"MIT"
] | null | null | null | setup.py | elmcrest/async-telegram-client | 567df1cce0a04a708d7d477bc91a0ccb9b2dce56 | [
"MIT"
] | null | null | null | setup.py | elmcrest/async-telegram-client | 567df1cce0a04a708d7d477bc91a0ccb9b2dce56 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='aioteleclient',
version='0.0.1',
url='https://github.com/elmcrest/aioteleclient',
license='MIT',
description='An fast and heavily tested async telegram messenger client.',
long_description="An fast and heavily tested async telegram messen... | 33.4 | 87 | 0.668263 | 89 | 835 | 6.213483 | 0.640449 | 0.070524 | 0.061483 | 0.072333 | 0.220615 | 0.220615 | 0.220615 | 0.220615 | 0.220615 | 0.220615 | 0 | 0.006098 | 0.214371 | 835 | 24 | 88 | 34.791667 | 0.83689 | 0 | 0 | 0.086957 | 0 | 0 | 0.559281 | 0.02515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aa30199d24a2996fada9b9da8d955a0ff0f1579 | 1,678 | py | Python | main.py | pmikla14/kpi-clustering-sustainability-I40 | 8da83b660958ac2143de4b0c0f07ea724ba22b47 | [
"MIT"
] | null | null | null | main.py | pmikla14/kpi-clustering-sustainability-I40 | 8da83b660958ac2143de4b0c0f07ea724ba22b47 | [
"MIT"
] | null | null | null | main.py | pmikla14/kpi-clustering-sustainability-I40 | 8da83b660958ac2143de4b0c0f07ea724ba22b47 | [
"MIT"
] | null | null | null | from sklearn.cluster import AgglomerativeClustering
import numpy as np
from numpy import genfromtxt
# S ... symmetric k-dimensional array that stores the similarity between each pair of the k kpis
# similarity of kpis was computed by postgresql pg_trgm.word_similarity method
# so S(n,m) returns the similarity between ... | 50.848485 | 125 | 0.752682 | 269 | 1,678 | 4.657993 | 0.423792 | 0.015962 | 0.009577 | 0.021548 | 0.166002 | 0.166002 | 0.118117 | 0.055866 | 0 | 0 | 0 | 0.014045 | 0.151371 | 1,678 | 33 | 126 | 50.848485 | 0.865871 | 0.700238 | 0 | 0 | 0 | 0 | 0.202479 | 0.152893 | 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 |
0aa42e71bcabe86cb2482181f813364d61c92060 | 117 | py | Python | num.py | pradeep8909/Hang_man | 69e9dd7d96efaa811e49756141dffbf5ee0c760c | [
"MIT"
] | 8 | 2019-03-03T06:00:14.000Z | 2020-05-30T08:06:08.000Z | num.py | pradeep8909/Hang_man | 69e9dd7d96efaa811e49756141dffbf5ee0c760c | [
"MIT"
] | 1 | 2020-04-11T04:00:26.000Z | 2020-04-11T04:00:26.000Z | num.py | pradeep8909/Hang_man | 69e9dd7d96efaa811e49756141dffbf5ee0c760c | [
"MIT"
] | 1 | 2019-08-08T14:58:28.000Z | 2019-08-08T14:58:28.000Z | q=str(raw_input("give the number...\n"))
a=0
v=0
print("0")
while(a<len(a)):
b=int(a)
c=q(a)
v=v+c
a+=1
print v | 11.7 | 40 | 0.564103 | 31 | 117 | 2.096774 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.153846 | 117 | 10 | 41 | 11.7 | 0.616162 | 0 | 0 | 0 | 0 | 0 | 0.177966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0aa7b4599ac605135d5d3177da2135910cdd424c | 412 | py | Python | Past/HackerRank/apple_orange.py | Moons08/TIL | e257854e1f7b9af5a6e349f38037f3010c07310f | [
"MIT"
] | null | null | null | Past/HackerRank/apple_orange.py | Moons08/TIL | e257854e1f7b9af5a6e349f38037f3010c07310f | [
"MIT"
] | null | null | null | Past/HackerRank/apple_orange.py | Moons08/TIL | e257854e1f7b9af5a6e349f38037f3010c07310f | [
"MIT"
] | null | null | null | s, t = 7, 11
a, b = 5, 15
m, n = 3, 2
apple = [-2, 2, 1]
orange = [5, -6]
a_score, b_score = 0, 0
''' too slow
for i in apple:
if (a + i) in list(range(s, t+1)):
a_score +=1
for i in orange:
if (b + i) in list(range(s, t+1)):
b_score +=1
'''
for i in apple:
if (a+i >= s) and (a+i <= t):
... | 16.48 | 38 | 0.458738 | 89 | 412 | 2.05618 | 0.303371 | 0.098361 | 0.131148 | 0.163934 | 0.601093 | 0.568306 | 0.568306 | 0.251366 | 0.251366 | 0.251366 | 0 | 0.077206 | 0.339806 | 412 | 24 | 39 | 17.166667 | 0.595588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aab2281a885228267c33181b801b7d5cafc7412 | 453 | py | Python | accounts/migrations/0009_account_name.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | accounts/migrations/0009_account_name.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | 8 | 2020-06-05T20:58:52.000Z | 2022-03-11T23:48:48.000Z | accounts/migrations/0009_account_name.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-05-21 14:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_auto_20190521_1937'),
]
operations = [
migrations.AddField(
model_name='account',
name='name',
... | 22.65 | 83 | 0.602649 | 49 | 453 | 5.428571 | 0.77551 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 0.278146 | 453 | 19 | 84 | 23.842105 | 0.712538 | 0.099338 | 0 | 0 | 1 | 0 | 0.1133 | 0.05665 | 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 |
0ab782228e5a517a66312f9fb886d07ac2460316 | 47,521 | py | Python | python/ccxt/bitmax.py | lostleaf/ccxt | da44f61e102fcaf07038dda05eb74ff24698d3dc | [
"MIT"
] | null | null | null | python/ccxt/bitmax.py | lostleaf/ccxt | da44f61e102fcaf07038dda05eb74ff24698d3dc | [
"MIT"
] | null | null | null | python/ccxt/bitmax.py | lostleaf/ccxt | da44f61e102fcaf07038dda05eb74ff24698d3dc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import ... | 42.581541 | 181 | 0.468256 | 4,141 | 47,521 | 5.317315 | 0.170249 | 0.032699 | 0.013488 | 0.009537 | 0.477179 | 0.433989 | 0.404015 | 0.376084 | 0.359916 | 0.344702 | 0 | 0.047158 | 0.408304 | 47,521 | 1,115 | 182 | 42.619731 | 0.735934 | 0.358284 | 0 | 0.323171 | 1 | 0.003049 | 0.097791 | 0.001404 | 0 | 0 | 0 | 0.000897 | 0 | 1 | 0.042683 | false | 0 | 0.015244 | 0.003049 | 0.102134 | 0 | 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 |
0ab86c75c21694d4ab206b44732dc2a1d50cdd1a | 1,272 | py | Python | backup/test.py | pizard/UniVL | f1c277b4b608329f245a34748beead97cda29d9c | [
"MIT"
] | null | null | null | backup/test.py | pizard/UniVL | f1c277b4b608329f245a34748beead97cda29d9c | [
"MIT"
] | null | null | null | backup/test.py | pizard/UniVL | f1c277b4b608329f245a34748beead97cda29d9c | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch
# x = torch.tensor([0., 1., 0., 0., 0.])
x = torch.eye(5)
# x = torch.tensor([0, 1, 2, 3, 4])
x.requires_grad = True
f1 = nn.Embedding(5, 10)
l1 = torch.randn(10,1)
o1 = torch.matmul(x, f1.weight)
# o1 = f1(x)
o = torch.matmul(o1, l1)
o = o.mean()
print(1)
# import torch
#
# # a =... | 27.06383 | 89 | 0.632075 | 227 | 1,272 | 3.471366 | 0.255507 | 0.121827 | 0.162437 | 0.204315 | 0.513959 | 0.478426 | 0.401015 | 0.322335 | 0.17132 | 0 | 0 | 0.059041 | 0.147799 | 1,272 | 47 | 90 | 27.06383 | 0.667897 | 0.781447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 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 |
0ab8ad13b346b7e0ce88e605c15c6ca52b873175 | 14,437 | py | Python | trio_cdp/generated/css.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | trio_cdp/generated/css.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | trio_cdp/generated/css.py | eNcacz/trio-chrome-devtools-protocol | 6b30e52d5617d56f397604f80d30a8fed45b7090 | [
"MIT"
] | null | null | null | # DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.
from __future__ import annotations
import typing
from ..context import get_connection_context, get_session_context
import cdp.css
from cdp.css import (
CS... | 34.787952 | 460 | 0.714137 | 1,915 | 14,437 | 5.194256 | 0.177546 | 0.035186 | 0.046145 | 0.062732 | 0.487886 | 0.412285 | 0.330854 | 0.234744 | 0.183975 | 0.101035 | 0 | 0.002417 | 0.197479 | 14,437 | 414 | 461 | 34.871981 | 0.856119 | 0.01039 | 0 | 0.135417 | 1 | 0 | 0.084141 | 0.072196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026042 | 0 | 0.161458 | 0 | 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 |
0ab8fa562c8ccf2cec78285aeee55721a7800726 | 20,880 | py | Python | neon/backends/kernel_specs.py | sjuvekar/neon | abe5d30a68663c739a97a9e657516d530c66dbd9 | [
"Apache-2.0"
] | null | null | null | neon/backends/kernel_specs.py | sjuvekar/neon | abe5d30a68663c739a97a9e657516d530c66dbd9 | [
"Apache-2.0"
] | 4 | 2021-03-26T00:21:20.000Z | 2022-03-12T00:46:11.000Z | neon/backends/kernel_specs.py | huamichaelchen/neon | abe5d30a68663c739a97a9e657516d530c66dbd9 | [
"Apache-2.0"
] | 1 | 2016-08-12T09:05:04.000Z | 2016-08-12T09:05:04.000Z | # Copyright 2014 Nervana Systems Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 42.439024 | 170 | 0.543726 | 2,945 | 20,880 | 3.576231 | 0.097114 | 0.161793 | 0.024687 | 0.026586 | 0.725598 | 0.714679 | 0.687334 | 0.657045 | 0.642138 | 0.59305 | 0 | 0.106926 | 0.26499 | 20,880 | 491 | 171 | 42.525458 | 0.579331 | 0.040613 | 0 | 0.525581 | 0 | 0 | 0.489107 | 0.012592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.011628 | 0 | 0.034884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0acc85540c34004d4d4efb8cddbdcdbb6a825468 | 39,903 | py | Python | google/cloud/dataproc_v1/types/jobs.py | renovate-bot/python-dataproc | 229f919e31c39bc028cd2e6062437b0a8d061556 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc_v1/types/jobs.py | renovate-bot/python-dataproc | 229f919e31c39bc028cd2e6062437b0a8d061556 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc_v1/types/jobs.py | renovate-bot/python-dataproc | 229f919e31c39bc028cd2e6062437b0a8d061556 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 40.926154 | 157 | 0.638599 | 5,000 | 39,903 | 5.02 | 0.1228 | 0.040319 | 0.050797 | 0.042669 | 0.632749 | 0.599801 | 0.524821 | 0.485538 | 0.465179 | 0.431554 | 0 | 0.010318 | 0.273764 | 39,903 | 974 | 158 | 40.968172 | 0.855827 | 0.652658 | 0 | 0.25 | 0 | 0 | 0.063556 | 0.002101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003571 | false | 0 | 0.010714 | 0.003571 | 0.560714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ad51ee33bb5f61a4d843f8a4c7350259122c3ca | 233 | py | Python | hanuka/api/__init__.py | haizaar/hanuka | 7591e629251f589a45307b6b77832485749c99d5 | [
"Apache-2.0"
] | 1 | 2019-12-09T14:10:28.000Z | 2019-12-09T14:10:28.000Z | hanuka/api/__init__.py | haizaar/hanuka | 7591e629251f589a45307b6b77832485749c99d5 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:51:51.000Z | 2021-06-02T00:51:51.000Z | hanuka/api/__init__.py | haizaar/hanuka | 7591e629251f589a45307b6b77832485749c99d5 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter, Depends
from . import v1
from .utils import set_log_context
router = APIRouter()
router.include_router(
v1.router,
prefix="/v1",
dependencies=(
Depends(set_log_context),
),
)
| 15.533333 | 38 | 0.686695 | 28 | 233 | 5.535714 | 0.5 | 0.077419 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.214592 | 233 | 14 | 39 | 16.642857 | 0.830601 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad63c846a9deaac8e8010f3c9e8a61fc5efb6ee | 596 | py | Python | do.py | amansharma2910/RealStonks | 5f3a4780f2b793fe2267a14a6b6fef19cd8b1ae5 | [
"MIT"
] | null | null | null | do.py | amansharma2910/RealStonks | 5f3a4780f2b793fe2267a14a6b6fef19cd8b1ae5 | [
"MIT"
] | 1 | 2021-12-14T11:02:23.000Z | 2021-12-14T11:02:23.000Z | do.py | amansharma2910/RealStonks | 5f3a4780f2b793fe2267a14a6b6fef19cd8b1ae5 | [
"MIT"
] | 2 | 2021-04-13T09:51:24.000Z | 2021-09-19T20:55:10.000Z | import json
from flask import Flask, jsonify
from flask_restful import Api, Resource, reqparse
from scrapy import Scrapy
#TODO: Implement the API methods
app = Flask(__name__)
api = Api(app=app)
class Stock(Resource):
def get(self, name: str):
if name:
try:
stock = Scrapy(stoc... | 23.84 | 55 | 0.629195 | 75 | 596 | 4.813333 | 0.546667 | 0.049862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.275168 | 596 | 24 | 56 | 24.833333 | 0.814815 | 0.052013 | 0 | 0 | 0 | 0 | 0.132979 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ae195b14489de9bf0acd3a15b52a0e9607b6f71 | 498 | py | Python | api/utilities/helpers/adapt_resource_to_env.py | ascii-dev/flight-booking | 3a64951f91d0254402bc5c14e5ef6d1bd2cf372e | [
"MIT"
] | null | null | null | api/utilities/helpers/adapt_resource_to_env.py | ascii-dev/flight-booking | 3a64951f91d0254402bc5c14e5ef6d1bd2cf372e | [
"MIT"
] | 30 | 2019-05-26T09:39:12.000Z | 2021-06-02T00:16:58.000Z | api/utilities/helpers/adapt_resource_to_env.py | ascii-dev/flight-booking | 3a64951f91d0254402bc5c14e5ef6d1bd2cf372e | [
"MIT"
] | null | null | null | """Module for mocking resources"""
from unittest.mock import Mock
from config import AppConfig
def adapt_resource_to_env(resource):
"""Helper function to mock resources.
Args:
resource (object): The resource to be mocked depending on environment
Returns:
A dummy function if mocked else t... | 23.714286 | 77 | 0.688755 | 63 | 498 | 5.380952 | 0.603175 | 0.058997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238956 | 498 | 20 | 78 | 24.9 | 0.894459 | 0.419679 | 0 | 0 | 0 | 0 | 0.027344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ae39647f0d2c82926208919b5a1e8173534ef48 | 978 | py | Python | problem_set/baekjoon5430.py | changeui99/python-study | a0226ff2361d5a08ea0661d23b7af0a4feab4876 | [
"MIT"
] | null | null | null | problem_set/baekjoon5430.py | changeui99/python-study | a0226ff2361d5a08ea0661d23b7af0a4feab4876 | [
"MIT"
] | null | null | null | problem_set/baekjoon5430.py | changeui99/python-study | a0226ff2361d5a08ea0661d23b7af0a4feab4876 | [
"MIT"
] | null | null | null | import sys
from collections import deque
t = int(sys.stdin.readline())
for i in range(t):
f_list = sys.stdin.readline()[:-1]
n = int(sys.stdin.readline())
if (n == 0):
sys.stdin.readline()
queue = deque([])
else :
queue = deque(list(map(int, (sys.stdin.readline()[1:-2]).split("... | 22.744186 | 78 | 0.424335 | 113 | 978 | 3.584071 | 0.380531 | 0.098765 | 0.197531 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.407975 | 978 | 43 | 79 | 22.744186 | 0.689119 | 0 | 0 | 0.142857 | 0 | 0 | 0.012257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.114286 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ae6e0ef9378eb025311f28e453d3b1014cb59dc | 26,190 | py | Python | asoc_automation_iast/AsocUtils.py | hclproducts/asoc_automation_iast | 5c23b2d8e771de1d32d92c6e5c9cf246d4c73c5f | [
"Apache-2.0"
] | null | null | null | asoc_automation_iast/AsocUtils.py | hclproducts/asoc_automation_iast | 5c23b2d8e771de1d32d92c6e5c9cf246d4c73c5f | [
"Apache-2.0"
] | 1 | 2021-07-26T04:28:00.000Z | 2021-07-26T04:28:00.000Z | asoc_automation_iast/AsocUtils.py | hclproducts/asoc_automation_iast | 5c23b2d8e771de1d32d92c6e5c9cf246d4c73c5f | [
"Apache-2.0"
] | 1 | 2021-07-26T04:26:57.000Z | 2021-07-26T04:26:57.000Z | #!/usr/bin/env python3
#######################################################################################################################
# Licensed Materials –Property of HCL Technologies Ltd.
# © Copyright HCL Technologies Ltd. 2020.
# All rights reserved. See product license for details. US Government Users... | 47.359855 | 128 | 0.629477 | 3,101 | 26,190 | 5.181877 | 0.099323 | 0.047794 | 0.04574 | 0.059742 | 0.760035 | 0.717157 | 0.683926 | 0.643288 | 0.598046 | 0.541726 | 0 | 0.005655 | 0.210042 | 26,190 | 552 | 129 | 47.445652 | 0.770941 | 0.26659 | 0 | 0.529577 | 0 | 0 | 0.217215 | 0.052412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067606 | false | 0 | 0.019718 | 0.002817 | 0.157746 | 0.005634 | 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 |
0aea5da405eae4b1a8a8d11f1faaf412dd64c3cc | 13,992 | py | Python | convert_dose.py | hn617/paINDICATOR | 67f1dbca5151ed166ef4fda213c4798fdc07b3c0 | [
"MIT"
] | 1 | 2021-09-29T16:39:41.000Z | 2021-09-29T16:39:41.000Z | convert_dose.py | hn617/paINDICATOR | 67f1dbca5151ed166ef4fda213c4798fdc07b3c0 | [
"MIT"
] | null | null | null | convert_dose.py | hn617/paINDICATOR | 67f1dbca5151ed166ef4fda213c4798fdc07b3c0 | [
"MIT"
] | null | null | null | import os
import pydicom
import numpy as np
import scipy
from dicom2nrrd import simple_plot_nrrd, get_graph_points, get_rt_structure, convert_rt_structure
import cv2
from PIL import Image, ImageDraw
from skimage import measure
from shapely.geometry import Point
from shapely.geometry.polygon import Polygon
def get_dos... | 44 | 153 | 0.635077 | 2,482 | 13,992 | 3.284448 | 0.107575 | 0.016928 | 0.028337 | 0.014352 | 0.434249 | 0.398553 | 0.328386 | 0.296737 | 0.267296 | 0.190383 | 0 | 0.028437 | 0.223413 | 13,992 | 318 | 154 | 44 | 0.721793 | 0.264508 | 0 | 0.133333 | 0 | 0 | 0.035139 | 0.007589 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005128 | 0.051282 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0aee86e3bd5eff61bd64590e8f2d4d1a3e9373c4 | 1,197 | py | Python | setup.py | pauldalewilliams/amieclient | b96c3bc759b240dbaece5df8d0aa6b7130887dfb | [
"Apache-2.0"
] | null | null | null | setup.py | pauldalewilliams/amieclient | b96c3bc759b240dbaece5df8d0aa6b7130887dfb | [
"Apache-2.0"
] | null | null | null | setup.py | pauldalewilliams/amieclient | b96c3bc759b240dbaece5df8d0aa6b7130887dfb | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name='amieclient',
version='0.4.0',
packages=find_packages(),
install_requires=[
'requests>=2.20.0,<3',
'python-dateutil>=2.6.1,<2.7'
],
auth... | 33.25 | 74 | 0.619048 | 138 | 1,197 | 5.282609 | 0.557971 | 0.130316 | 0.171468 | 0.178326 | 0.079561 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029979 | 0.219716 | 1,197 | 35 | 75 | 34.2 | 0.750535 | 0 | 0 | 0.060606 | 0 | 0 | 0.503759 | 0.022556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 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 |
0af20f87d2b5c0d518ad2c24ffd4874d7d83d655 | 3,493 | py | Python | cms/plugins/text/settings.py | Wordbank/django-cms | bff2354d4bcc214bc41a24a0b0ec84dc54d60c84 | [
"BSD-3-Clause"
] | 4 | 2016-05-07T11:50:25.000Z | 2017-12-04T10:30:20.000Z | cms/plugins/text/settings.py | Wordbank/django-cms | bff2354d4bcc214bc41a24a0b0ec84dc54d60c84 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T02:38:49.000Z | 2019-11-08T02:38:49.000Z | cms/plugins/text/settings.py | Wordbank/django-cms | bff2354d4bcc214bc41a24a0b0ec84dc54d60c84 | [
"BSD-3-Clause"
] | 1 | 2019-02-13T06:24:02.000Z | 2019-02-13T06:24:02.000Z | from django.conf import settings
# Uses TinyMCE as editor (no inline plugins). Requires django-tinymce app.
# If false, then WYMEditor is used.
USE_TINYMCE = getattr(settings, 'CMS_USE_TINYMCE', "tinymce" in settings.INSTALLED_APPS)
if USE_TINYMCE:
import tinymce.settings
TINYMCE_CONFIG = getattr(settings, ... | 52.134328 | 105 | 0.627827 | 416 | 3,493 | 5.004808 | 0.271635 | 0.080692 | 0.089817 | 0.014409 | 0.025937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008224 | 0.129688 | 3,493 | 66 | 106 | 52.924242 | 0.676645 | 0.152018 | 0 | 0.086957 | 0 | 0.065217 | 0.663051 | 0.081695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 0 | 0 | 0 | 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 |
0af22e0d7815c489499bb95130c2a7d81686176f | 1,447 | py | Python | scripts/gather_subset/gather_10pct_step2.py | CoyoPartners/forestplanner | 342814619f023aa9177cd2cbcc319e89333749a2 | [
"BSD-3-Clause"
] | 23 | 2015-10-08T15:15:19.000Z | 2022-01-11T16:21:48.000Z | scripts/gather_subset/gather_10pct_step2.py | CoyoPartners/forestplanner | 342814619f023aa9177cd2cbcc319e89333749a2 | [
"BSD-3-Clause"
] | 245 | 2015-02-06T23:05:25.000Z | 2021-09-10T23:41:54.000Z | scripts/gather_subset/gather_10pct_step2.py | CoyoPartners/forestplanner | 342814619f023aa9177cd2cbcc319e89333749a2 | [
"BSD-3-Clause"
] | 9 | 2016-01-09T21:47:54.000Z | 2021-09-10T18:21:14.000Z |
CERTAINTY_THRESHOLD = 0.85
COUNT_THRESHOLD = 2
PCT = 0.66
# CERTAINTY_THRESHOLD = 0.90
# COUNT_THRESHOLD = 1
# PCT = 0.80
# This subset of plots represents at least 80% of the plots that match w/ 90% certainty
# to at least 1 plot other than itself.
counts = {
'PN': {},
'EC': {},
'WC': {},
'BM': {},... | 21.279412 | 87 | 0.563925 | 202 | 1,447 | 3.910891 | 0.425743 | 0.012658 | 0.034177 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.303386 | 1,447 | 67 | 88 | 21.597015 | 0.742063 | 0.125777 | 0 | 0.122449 | 0 | 0 | 0.026253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040816 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0af2ec8ee55bc34caeec3fca07d2c2e1217f61fb | 2,360 | py | Python | users/forms.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | null | null | null | users/forms.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | 4 | 2020-06-05T23:46:45.000Z | 2021-06-10T19:06:27.000Z | users/forms.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class InstaRegistrationForm(UserCreationForm):
email = forms.EmailField(required = True,label='',widget=forms.TextInput(attrs = {'class':'form-control','placehold... | 41.403509 | 153 | 0.667797 | 256 | 2,360 | 6.109375 | 0.214844 | 0.061381 | 0.086957 | 0.117647 | 0.570332 | 0.570332 | 0.570332 | 0.570332 | 0.512788 | 0.512788 | 0 | 0.011247 | 0.171186 | 2,360 | 56 | 154 | 42.142857 | 0.788344 | 0 | 0 | 0.386364 | 0 | 0 | 0.192797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.25 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0af4b4298b74c84f2c5d045959f906ce93897093 | 22,473 | py | Python | tests/test_client.py | daniellibonati/odooly | 0d377696ace879d236c4062333a2340946e3b16f | [
"BSD-3-Clause"
] | 49 | 2018-12-07T02:07:28.000Z | 2022-03-26T17:20:05.000Z | tests/test_client.py | daniellibonati/odooly | 0d377696ace879d236c4062333a2340946e3b16f | [
"BSD-3-Clause"
] | 13 | 2018-12-20T15:45:55.000Z | 2021-12-10T16:07:32.000Z | tests/test_client.py | daniellibonati/odooly | 0d377696ace879d236c4062333a2340946e3b16f | [
"BSD-3-Clause"
] | 30 | 2019-02-01T16:14:29.000Z | 2022-02-24T13:50:20.000Z | # -*- coding: utf-8 -*-
import mock
from mock import call, sentinel, ANY
import odooly
from ._common import XmlRpcTestCase, OBJ
AUTH = sentinel.AUTH
ID1, ID2 = 4001, 4002
STABLE = ['uninstallable', 'uninstalled', 'installed']
def _skip_test(test_case):
pass
def imm(method, *params):
return ('object.execut... | 38.948007 | 152 | 0.583901 | 2,522 | 22,473 | 5.040048 | 0.100317 | 0.019275 | 0.061364 | 0.072772 | 0.585556 | 0.527181 | 0.455196 | 0.375266 | 0.261742 | 0.232948 | 0 | 0.01979 | 0.251235 | 22,473 | 576 | 153 | 39.015625 | 0.735603 | 0.012326 | 0 | 0.311015 | 0 | 0 | 0.153346 | 0.003701 | 0 | 0 | 0 | 0 | 0.298056 | 1 | 0.088553 | false | 0.053996 | 0.008639 | 0.015119 | 0.194384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0af9a35fd952a00ff4da5a79309cf28a4dc2dbf9 | 314 | py | Python | chapter_2/test_2_2.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | chapter_2/test_2_2.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | chapter_2/test_2_2.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | """."""
class Node(object):
"""."""
def __init__(self, val, next=None):
"""."""
self.val = val
self.next = next
def test_2_2():
"""."""
from CTCI_2_2 import kth_to_last
head = Node('a', Node('b', Node('c', Node('d'))))
assert kth_to_last(2, head) == ['c', 'd']
| 17.444444 | 53 | 0.480892 | 44 | 314 | 3.159091 | 0.522727 | 0.100719 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0.27707 | 314 | 17 | 54 | 18.470588 | 0.590308 | 0.022293 | 0 | 0 | 0 | 0 | 0.020979 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0af9cecef990586a0720d8ad38020c7e71183168 | 5,582 | py | Python | live_demo/viz/create-point-cloud.py | dsikar/cleargrasp | 78627622c1b59561273d14321d283711d0e5e50c | [
"Apache-2.0"
] | 2 | 2020-09-30T10:08:23.000Z | 2021-07-22T21:08:31.000Z | live_demo/viz/create-point-cloud.py | dsikar/cleargrasp | 78627622c1b59561273d14321d283711d0e5e50c | [
"Apache-2.0"
] | 1 | 2021-08-08T20:25:23.000Z | 2021-08-17T11:16:22.000Z | live_demo/viz/create-point-cloud.py | dsikar/cleargrasp | 78627622c1b59561273d14321d283711d0e5e50c | [
"Apache-2.0"
] | null | null | null | # from open3d import *
import open3d as o3d
# import matplotlib.pyplot as plt
import numpy as np
import argparse
import cv2
def generate_point_cloud(rgb, depth, camera, depth_type):
"""
Generate a point cloud from RGB and Depth acquisitions
Inputs
rgb: path to RGB file
depth: path to depth ... | 39.871429 | 183 | 0.64923 | 752 | 5,582 | 4.671543 | 0.244681 | 0.028181 | 0.029604 | 0.022773 | 0.318247 | 0.263592 | 0.231711 | 0.231711 | 0.220325 | 0.220325 | 0 | 0.093007 | 0.223755 | 5,582 | 139 | 184 | 40.158273 | 0.717748 | 0.48316 | 0 | 0 | 1 | 0 | 0.092019 | 0 | 0 | 0 | 0 | 0.007194 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.147059 | 0 | 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 |
0afa56f6745b269117e6fb6fa128889cd8cfd6e4 | 2,131 | py | Python | sheldon_servos/src/sheldon_servos/all_home.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | 1 | 2021-01-02T18:17:52.000Z | 2021-01-02T18:17:52.000Z | sheldon_servos/src/sheldon_servos/all_home.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | null | null | null | sheldon_servos/src/sheldon_servos/all_home.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | 4 | 2017-09-16T03:56:01.000Z | 2018-09-19T02:15:57.000Z | #!/usr/bin/env python
import roslib
#roslib.load_manifest('sheldon_servos')
import rospy, time
from dynamixel_controllers.srv import TorqueEnable, SetTorqueLimit, SetSpeed
from servo_joint_list import *
#all_servo_joints, head_joints, right_arm_joints, left_arm_joints
from standard_servo_positions import *
class Set... | 31.80597 | 106 | 0.61755 | 232 | 2,131 | 5.340517 | 0.344828 | 0.088781 | 0.101695 | 0.053269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004743 | 0.307367 | 2,131 | 66 | 107 | 32.287879 | 0.834688 | 0.106992 | 0 | 0.139535 | 0 | 0 | 0.11029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.116279 | null | null | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e4074ddd0e734987389fb8a04b0eda8fbebbd3de | 903 | py | Python | languages/python/sqlalchemy-oso/sqlalchemy_oso/oso.py | connec/oso | a12d94206807b69beb6fe7a9070b9afcacdfc845 | [
"Apache-2.0"
] | 2,167 | 2020-07-28T15:49:48.000Z | 2022-03-31T06:11:28.000Z | languages/python/sqlalchemy-oso/sqlalchemy_oso/oso.py | connec/oso | a12d94206807b69beb6fe7a9070b9afcacdfc845 | [
"Apache-2.0"
] | 1,060 | 2020-07-25T18:37:07.000Z | 2022-03-30T05:49:44.000Z | languages/python/sqlalchemy-oso/sqlalchemy_oso/oso.py | connec/oso | a12d94206807b69beb6fe7a9070b9afcacdfc845 | [
"Apache-2.0"
] | 118 | 2020-08-05T19:27:14.000Z | 2022-03-31T16:37:39.000Z | from oso import Oso
from .auth import register_models
class SQLAlchemyOso(Oso):
"""The central object to manage application policy state, e.g.
the policy data, and verify requests when using Oso with SQLAlchemy.
Supports SQLAlchemy-specific functionality, including data filtering.
Accepts a SQLAlch... | 30.1 | 86 | 0.72979 | 107 | 903 | 5.981308 | 0.476636 | 0.0875 | 0.05625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001383 | 0.199336 | 903 | 29 | 87 | 31.137931 | 0.883817 | 0.668882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c166628aa76565935bcd14bce00acf09877e621 | 664 | py | Python | restaurantes/migrations/0010_auto_20200123_2316.py | Rchaves12/apiRestaurante | ec14f5b302bf2578a0ab33bfb278e928bb6d28c7 | [
"MIT"
] | null | null | null | restaurantes/migrations/0010_auto_20200123_2316.py | Rchaves12/apiRestaurante | ec14f5b302bf2578a0ab33bfb278e928bb6d28c7 | [
"MIT"
] | 10 | 2020-05-14T18:19:13.000Z | 2022-03-12T00:13:29.000Z | restaurantes/migrations/0010_auto_20200123_2316.py | Rchaves12/apiRestaurante | ec14f5b302bf2578a0ab33bfb278e928bb6d28c7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-24 02:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('restaurantes', '0009_auto_20200123_2310'),
]
operations = [
migrations.RemoveField(
model_name=... | 26.56 | 136 | 0.628012 | 69 | 664 | 5.927536 | 0.652174 | 0.05868 | 0.06846 | 0.107579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065173 | 0.260542 | 664 | 24 | 137 | 27.666667 | 0.767821 | 0.067771 | 0 | 0.111111 | 1 | 0 | 0.158833 | 0.072934 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c1749b4ca25c53b0c50c149b4b3f3b2012a37ec | 3,902 | py | Python | third_party/WebKit/Source/devtools/scripts/optimize_png_images.py | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | third_party/WebKit/Source/devtools/scripts/optimize_png_images.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | third_party/WebKit/Source/devtools/scripts/optimize_png_images.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | #!/usr/bin/env python
# Copyright (c) 2014 Google 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
# notice, this list ... | 41.956989 | 130 | 0.773193 | 581 | 3,902 | 4.994836 | 0.359725 | 0.033081 | 0.034459 | 0.02929 | 0.166092 | 0.119228 | 0.068918 | 0.046864 | 0.046864 | 0.046864 | 0 | 0.003299 | 0.145566 | 3,902 | 92 | 131 | 42.413043 | 0.867127 | 0.383137 | 0 | 0 | 0 | 0 | 0.110971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.156863 | null | null | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c19639d9793372d73775e3142b4df979d3bee74 | 1,395 | py | Python | dataapi/AWS/aws_test.py | merz9b/FinanceHub | c15ad6bb91ee0711d4974eb66e1cfe0e80a3f570 | [
"MIT"
] | 1 | 2019-09-23T22:00:18.000Z | 2019-09-23T22:00:18.000Z | dataapi/AWS/aws_test.py | paulogomesfreitas/FinanceHub | a8e1b0e645f5811a5cf3b178a75f718ff6871769 | [
"MIT"
] | null | null | null | dataapi/AWS/aws_test.py | paulogomesfreitas/FinanceHub | a8e1b0e645f5811a5cf3b178a75f718ff6871769 | [
"MIT"
] | null | null | null | from dataapi import TrackerFeeder
from sqlalchemy import create_engine
import matplotlib.pyplot as plt
connect_dict = {'flavor': 'postgres+psycopg2',
'database': '[DATABASE NAME]',
'schema': '[DATABASE SCHEMA]',
'user': '[USERNAME]',
'password': '[PASSWOR... | 34.02439 | 86 | 0.559857 | 136 | 1,395 | 5.610294 | 0.455882 | 0.100917 | 0.044561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002051 | 0.301075 | 1,395 | 40 | 87 | 34.875 | 0.780513 | 0.118996 | 0 | 0.107143 | 0 | 0 | 0.236304 | 0.046607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.107143 | 0.107143 | 0 | 0.107143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.