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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1c021de79d124febfa8a831e976cd4dc12aeed9 | 1,647 | py | Python | src/compute_trust_values.py | johndpope/FacialRetargeting | 5fb0c1da6af6c3d59aef264f567bfa7a244d0764 | [
"MIT"
] | 21 | 2020-08-19T02:52:16.000Z | 2022-02-25T12:35:04.000Z | src/compute_trust_values.py | johndpope/FacialRetargeting | 5fb0c1da6af6c3d59aef264f567bfa7a244d0764 | [
"MIT"
] | 3 | 2020-10-16T07:11:25.000Z | 2021-06-30T10:26:04.000Z | src/compute_trust_values.py | johndpope/FacialRetargeting | 5fb0c1da6af6c3d59aef264f567bfa7a244d0764 | [
"MIT"
] | 7 | 2020-08-24T08:30:53.000Z | 2022-03-28T15:55:24.000Z | import numpy as np
from src.compute_corr_coef import compute_corr_coef
from utils.plotting import plot_similarities
def compute_trust_values(dsk, do_plot=False):
"""
Compute trust values following formula 6
k:= number of blendshapes
n:= num_features (num_markers*3)
:param dsk: delta_sk vector (k... | 26.564516 | 123 | 0.651488 | 252 | 1,647 | 4.055556 | 0.353175 | 0.093933 | 0.123288 | 0.02544 | 0.043053 | 0.043053 | 0.043053 | 0.043053 | 0 | 0 | 0 | 0.010383 | 0.23983 | 1,647 | 61 | 124 | 27 | 0.805911 | 0.226472 | 0 | 0 | 0 | 0 | 0.096035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c16c5d4d00c03eee3d9db1e1fe2c9c3aca5189 | 2,042 | py | Python | test/core/test_constant.py | haikusw/jaqalpaq | d507e894cb897756a1e51c99582b736254995b4e | [
"Apache-2.0"
] | 8 | 2021-02-19T23:25:28.000Z | 2021-09-24T20:11:13.000Z | test/core/test_constant.py | haikusw/jaqalpaq | d507e894cb897756a1e51c99582b736254995b4e | [
"Apache-2.0"
] | null | null | null | test/core/test_constant.py | haikusw/jaqalpaq | d507e894cb897756a1e51c99582b736254995b4e | [
"Apache-2.0"
] | null | null | null | import unittest
from jaqalpaq.core.parameter import ParamType
from jaqalpaq.core.constant import Constant
from . import randomize
from . import common
class ConstantTester(unittest.TestCase):
def test_valid_types(self):
"""Test that a Constant can only be created from valid types."""
valid_values... | 37.127273 | 82 | 0.669931 | 244 | 2,042 | 5.393443 | 0.368852 | 0.045593 | 0.072948 | 0.091185 | 0.115502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246327 | 2,042 | 54 | 83 | 37.814815 | 0.855101 | 0.196866 | 0 | 0 | 0 | 0 | 0.004969 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.108108 | false | 0 | 0.135135 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c26fda7f69a42db47f3f5783c055c679831e9b | 8,035 | py | Python | src/richard/videos/migrations/0001_initial.py | pyvideo/richard | 894f5380e07d7e66453fe730891a21aca32d8edb | [
"Apache-2.0"
] | 51 | 2015-01-24T07:53:56.000Z | 2020-08-30T12:19:39.000Z | src/richard/videos/migrations/0001_initial.py | westurner/richard | 894f5380e07d7e66453fe730891a21aca32d8edb | [
"Apache-2.0"
] | 34 | 2015-02-23T11:15:00.000Z | 2016-01-04T11:25:42.000Z | src/richard/videos/migrations/0001_initial.py | westurner/richard | 894f5380e07d7e66453fe730891a21aca32d8edb | [
"Apache-2.0"
] | 16 | 2015-03-20T17:36:09.000Z | 2022-01-07T01:04:17.000Z | # -*- coding: utf-8 -*-
# richard -- video index system
# Copyright (C) 2012, 2013, 2014, 2015 richard contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, eithe... | 49.598765 | 191 | 0.571873 | 827 | 8,035 | 5.417171 | 0.247884 | 0.052232 | 0.040179 | 0.04933 | 0.566518 | 0.500893 | 0.422545 | 0.320089 | 0.227902 | 0.216741 | 0 | 0.014311 | 0.28687 | 8,035 | 161 | 192 | 49.906832 | 0.767539 | 0.093964 | 0 | 0.410072 | 0 | 0.007194 | 0.17541 | 0.012805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014388 | 0 | 0.035971 | 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 | 0 | 0 | 1 | 0 |
f1c41c955777189a3b733180afda82b9ed458a7c | 1,399 | py | Python | descwl_shear_sims/tests/test_artifacts.py | LSSTDESC/descwl_shear_sims | 1c696518104b7f301dd6c69571239431c6232110 | [
"BSD-3-Clause"
] | null | null | null | descwl_shear_sims/tests/test_artifacts.py | LSSTDESC/descwl_shear_sims | 1c696518104b7f301dd6c69571239431c6232110 | [
"BSD-3-Clause"
] | 11 | 2019-12-10T23:30:27.000Z | 2019-12-24T13:59:32.000Z | descwl_shear_sims/tests/test_artifacts.py | LSSTDESC/wl-shear-testing-sims | 6e4a0baa6f664b5bc52b08b55614eaa58c8b0748 | [
"BSD-3-Clause"
] | null | null | null | """
copy-paste from my (beckermr) personal code here
https://github.com/beckermr/metadetect-coadding-sims
"""
import numpy as np
import galsim
from descwl_shear_sims.masking import get_bmask_and_set_image
from descwl_shear_sims.artifacts import (
generate_bad_columns,
generate_cosmic_rays,
)
def test_basic_m... | 25.436364 | 68 | 0.719085 | 211 | 1,399 | 4.530806 | 0.279621 | 0.050209 | 0.112971 | 0.138075 | 0.65272 | 0.539749 | 0.539749 | 0.539749 | 0.518828 | 0.351464 | 0 | 0.043404 | 0.160114 | 1,399 | 54 | 69 | 25.907407 | 0.770213 | 0.072194 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.151515 | false | 0 | 0.121212 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
f1c47788397390c41f153d775e370f60b472f99d | 628 | py | Python | leetcode_submissions/7.reverse-integer.18198620.ac.py | aenon/online_judge | bff3991519cd4f2d80dea9b17680dbc5d4c44b9b | [
"MIT"
] | null | null | null | leetcode_submissions/7.reverse-integer.18198620.ac.py | aenon/online_judge | bff3991519cd4f2d80dea9b17680dbc5d4c44b9b | [
"MIT"
] | null | null | null | leetcode_submissions/7.reverse-integer.18198620.ac.py | aenon/online_judge | bff3991519cd4f2d80dea9b17680dbc5d4c44b9b | [
"MIT"
] | 1 | 2015-01-10T16:02:43.000Z | 2015-01-10T16:02:43.000Z | #!/usr/bin/env python
# Reverse Integer https://oj.leetcode.com/problems/reverse-integer/
# Reverse digits of an integer.
# Example1: x = 123, return 321
# Example2: x = -123, return -321
#Math
# Xilin SUN
# Dec 7 2014
class Solution:
# @return an integer
def reverse(self, x):
if x > 2147483646:
... | 19.030303 | 68 | 0.593949 | 91 | 628 | 4.098901 | 0.43956 | 0.075067 | 0.072386 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 0.302548 | 628 | 33 | 69 | 19.030303 | 0.687215 | 0.353503 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c529b5976d0a2cdf007169fc8e0ee8525206e1 | 1,400 | py | Python | src/z3c/configurator/tests.py | zopefoundation/z3c.configurator | 390416d2fa61ddf97c28e6af32eae3660bb725e2 | [
"ZPL-2.1"
] | null | null | null | src/z3c/configurator/tests.py | zopefoundation/z3c.configurator | 390416d2fa61ddf97c28e6af32eae3660bb725e2 | [
"ZPL-2.1"
] | 1 | 2021-01-08T15:34:08.000Z | 2021-01-08T15:34:08.000Z | src/z3c/configurator/tests.py | zopefoundation/z3c.configurator | 390416d2fa61ddf97c28e6af32eae3660bb725e2 | [
"ZPL-2.1"
] | 1 | 2015-04-03T05:49:32.000Z | 2015-04-03T05:49:32.000Z | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 31.818182 | 78 | 0.620714 | 145 | 1,400 | 5.965517 | 0.565517 | 0.041619 | 0.03237 | 0.043931 | 0.087861 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.165 | 1,400 | 43 | 79 | 32.55814 | 0.733961 | 0.342857 | 0 | 0 | 0 | 0 | 0.221629 | 0.12016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c6b2f9d9acd98dcef1131f691572e33395120a | 528 | py | Python | time_to_speech.py | besi/stereopi | c03a1ae990af67dde4e2cd832a20b49d697de230 | [
"MIT"
] | 2 | 2020-02-18T18:10:50.000Z | 2020-08-04T21:00:29.000Z | time_to_speech.py | besi/stereopi | c03a1ae990af67dde4e2cd832a20b49d697de230 | [
"MIT"
] | 4 | 2020-02-19T10:46:02.000Z | 2021-01-09T18:52:45.000Z | time_to_speech.py | besi/stereopi | c03a1ae990af67dde4e2cd832a20b49d697de230 | [
"MIT"
] | null | null | null | # Credits go to <http://codereview.stackexchange.com/q/37522>
import random
import time
def current_time():
'''Returns a tuple containing (hour, minute) for current local time.'''
local_time = time.localtime(time.time())
return (local_time.tm_hour, local_time.tm_min)
(hour, minute) = current_time()
de... | 22 | 75 | 0.657197 | 70 | 528 | 4.857143 | 0.514286 | 0.105882 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018824 | 0.195076 | 528 | 23 | 76 | 22.956522 | 0.781176 | 0.238636 | 0 | 0 | 0 | 0 | 0.063131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c6e01e5913573733f519b9c5d164e6fed7195b | 575 | py | Python | setup.py | ckuzma/solar-viability-tester | c34d03d1914374279ca269ab402eb5074f7555a6 | [
"MIT"
] | null | null | null | setup.py | ckuzma/solar-viability-tester | c34d03d1914374279ca269ab402eb5074f7555a6 | [
"MIT"
] | 2 | 2017-04-03T13:59:00.000Z | 2017-04-06T04:57:50.000Z | setup.py | ckuzma/solar-viability-tester | c34d03d1914374279ca269ab402eb5074f7555a6 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='solar-viabili... | 30.263158 | 89 | 0.707826 | 82 | 575 | 4.865854 | 0.621951 | 0.150376 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.175652 | 575 | 18 | 90 | 31.944444 | 0.829114 | 0.078261 | 0 | 0 | 0 | 0 | 0.329412 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1c78560c5fc55f8dc09c8791ab3fa9dcc1ccd67 | 31,028 | py | Python | framework/framework.py | wbqhb/SEPC | 1a5e03b70984b759b615424dc06f530d5de00f51 | [
"MIT"
] | null | null | null | framework/framework.py | wbqhb/SEPC | 1a5e03b70984b759b615424dc06f530d5de00f51 | [
"MIT"
] | null | null | null | framework/framework.py | wbqhb/SEPC | 1a5e03b70984b759b615424dc06f530d5de00f51 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/5/4 下午3:05
# @Author : godwaitup
# @FileName: framework.py
# original framework for joint extraction.
import torch.optim as optim
from torch import nn
import os
import data_loader
import torch.nn.functional as F
import numpy as np
import json
from functools import partial
fro... | 48.786164 | 223 | 0.561718 | 4,093 | 31,028 | 3.831664 | 0.071341 | 0.035707 | 0.013008 | 0.011222 | 0.629599 | 0.557738 | 0.495824 | 0.459351 | 0.423197 | 0.398648 | 0 | 0.015954 | 0.339403 | 31,028 | 635 | 224 | 48.862992 | 0.749183 | 0.040222 | 0 | 0.321586 | 0 | 0 | 0.02536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037445 | false | 0 | 0.022026 | 0 | 0.096916 | 0.004405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1c88d2448c823f942e8276b943c094ce146f49b | 799 | py | Python | tests/settings.py | rjw57/componentsdb | 7e5fd96d3afbbcde09d2f7fba1d6c86975e41272 | [
"MIT"
] | null | null | null | tests/settings.py | rjw57/componentsdb | 7e5fd96d3afbbcde09d2f7fba1d6c86975e41272 | [
"MIT"
] | null | null | null | tests/settings.py | rjw57/componentsdb | 7e5fd96d3afbbcde09d2f7fba1d6c86975e41272 | [
"MIT"
] | null | null | null | """
Settings for application when being run in the test suite.
"""
import os
import sys
# Add the directory containing this file to the search path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# Import function to generate a self-signed cert dynamically
from x509cert import gen_self_signed_cert
DEBUG... | 26.633333 | 70 | 0.787234 | 113 | 799 | 5.274336 | 0.575221 | 0.073826 | 0.07047 | 0.057047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008608 | 0.12766 | 799 | 29 | 71 | 27.551724 | 0.846485 | 0.366708 | 0 | 0 | 0 | 0 | 0.156187 | 0.05071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1cbb897fe4f7aa594e93ad56844d2bed4a73d65 | 1,995 | py | Python | Alt_DE/psacard/psa_card/code/loadall_auction_items.py | royadityak94/Interview | 40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f | [
"MIT"
] | null | null | null | Alt_DE/psacard/psa_card/code/loadall_auction_items.py | royadityak94/Interview | 40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f | [
"MIT"
] | null | null | null | Alt_DE/psacard/psa_card/code/loadall_auction_items.py | royadityak94/Interview | 40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f | [
"MIT"
] | null | null | null | # Module to scrap all auction listings on the auction prices page
from selenium import webdriver
from bs4 import BeautifulSoup
import csv
import os
# Utility to write as .csv file format
def save_to_csv(data, SAVE_PATH, MODE):
if not os.path.exists(SAVE_PATH.split('/')[0]):
os.makedirs(SAVE_PATH.s... | 37.641509 | 128 | 0.700752 | 264 | 1,995 | 5.07197 | 0.465909 | 0.047797 | 0.035848 | 0.04705 | 0.093353 | 0.074683 | 0.074683 | 0.074683 | 0.074683 | 0.074683 | 0 | 0.01036 | 0.177444 | 1,995 | 52 | 129 | 38.365385 | 0.805606 | 0.144361 | 0 | 0 | 0 | 0.027778 | 0.160389 | 0.103281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1ccaa26614fd533c6b9140b49b0a5e2c602d313 | 3,343 | py | Python | onirim/card/_location.py | cwahbong/onirim-py | d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3 | [
"MIT"
] | null | null | null | onirim/card/_location.py | cwahbong/onirim-py | d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3 | [
"MIT"
] | null | null | null | onirim/card/_location.py | cwahbong/onirim-py | d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3 | [
"MIT"
] | null | null | null | """Location cards."""
import logging
from onirim.card._base import ColorCard
from onirim import exception
from onirim import util
LOGGER = logging.getLogger(__name__)
class LocationKind(util.AutoNumberEnum):
"""
Enumerated kinds of locations.
Attributes:
sun
moon
key
"""
... | 23.055172 | 80 | 0.606342 | 393 | 3,343 | 4.994911 | 0.284987 | 0.048905 | 0.024452 | 0.036679 | 0.172695 | 0.152318 | 0.108507 | 0.108507 | 0.108507 | 0.108507 | 0 | 0.003845 | 0.299731 | 3,343 | 144 | 81 | 23.215278 | 0.834686 | 0.211188 | 0 | 0.102941 | 0 | 0 | 0.019664 | 0 | 0 | 0 | 0 | 0.006944 | 0 | 1 | 0.161765 | false | 0.014706 | 0.058824 | 0.014706 | 0.397059 | 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 | 0 | 0 | 1 | 0 |
f1ccfab0d2faebbdb592b40f848ee1bf3127a09c | 4,247 | py | Python | gitlabform/gitlabform/test/test_branches.py | rbartuzel/gitlabform | 4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18 | [
"MIT"
] | null | null | null | gitlabform/gitlabform/test/test_branches.py | rbartuzel/gitlabform | 4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18 | [
"MIT"
] | null | null | null | gitlabform/gitlabform/test/test_branches.py | rbartuzel/gitlabform | 4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18 | [
"MIT"
] | null | null | null | import pytest
from gitlabform.gitlabform import GitLabForm
from gitlabform.gitlabform.test import create_group, create_project_in_group, get_gitlab, create_readme_in_project, \
GROUP_NAME
PROJECT_NAME = 'branches_project'
GROUP_AND_PROJECT_NAME = GROUP_NAME + '/' + PROJECT_NAME
@pytest.fixture(scope="module")
d... | 31.227941 | 117 | 0.721215 | 527 | 4,247 | 5.354839 | 0.119545 | 0.101347 | 0.090716 | 0.094259 | 0.788094 | 0.681786 | 0.614812 | 0.594259 | 0.594259 | 0.487597 | 0 | 0.001192 | 0.210031 | 4,247 | 135 | 118 | 31.459259 | 0.83994 | 0.01554 | 0 | 0.647619 | 0 | 0 | 0.384965 | 0.176442 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.047619 | false | 0 | 0.028571 | 0 | 0.095238 | 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 | 0 | 0 | 1 | 0 |
f1cdf2cb5f5f7dc477b7b2cf95774b2b25e88788 | 2,543 | py | Python | bespin/layers.py | delfick/bespin | 4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd | [
"MIT"
] | 5 | 2017-04-05T00:46:41.000Z | 2017-11-09T01:21:44.000Z | bespin/layers.py | delfick/bespin | 4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd | [
"MIT"
] | 69 | 2016-10-11T04:40:09.000Z | 2022-01-12T23:57:27.000Z | bespin/layers.py | delfick/bespin | 4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd | [
"MIT"
] | 7 | 2016-10-11T04:32:21.000Z | 2017-12-18T05:59:17.000Z | from bespin.errors import StackDepCycle
class Layers(object):
"""
Used to order the creation of many stacks.
Usage::
layers = Layers({"stack1": stack1, "stack2": "stack2, "stack3": stack3, "stack4": stack4})
layers.add_to_layers("stack3")
for layer in layers.layered:
#... | 31.012195 | 98 | 0.563508 | 294 | 2,543 | 4.761905 | 0.306122 | 0.064286 | 0.074286 | 0.036429 | 0.06 | 0.06 | 0.06 | 0.06 | 0 | 0 | 0 | 0.01003 | 0.333464 | 2,543 | 81 | 99 | 31.395062 | 0.815929 | 0.274479 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.020408 | 0 | 0.183673 | 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 | 0 | 0 | 1 | 0 |
f1ce356bd1c13f7cdfe09167b87b3a43fdb85c66 | 6,851 | py | Python | src/pulsebox/events.py | rhosak/pulsebox | f2ce859ac5cd968bcd85a1e0eedf320414602a40 | [
"MIT"
] | 3 | 2019-02-23T23:15:48.000Z | 2020-03-23T12:33:15.000Z | src/pulsebox/events.py | rhosak/pulsebox | f2ce859ac5cd968bcd85a1e0eedf320414602a40 | [
"MIT"
] | null | null | null | src/pulsebox/events.py | rhosak/pulsebox | f2ce859ac5cd968bcd85a1e0eedf320414602a40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""events.py
Pulse sequence events for the Arduino Due pulsebox.
Radim Hošák <hosak(at)optics.upol.cz>
2021 Quantum Optics Lab Olomouc
"""
from functools import reduce
from pulsebox.codeblocks import state_change, loop, channel_states_to_odsr
from pulsebox.config impor... | 34.084577 | 80 | 0.618888 | 866 | 6,851 | 4.786374 | 0.284065 | 0.041013 | 0.010615 | 0.01737 | 0.072376 | 0.041978 | 0 | 0 | 0 | 0 | 0 | 0.01285 | 0.295723 | 6,851 | 200 | 81 | 34.255 | 0.846218 | 0.3671 | 0 | 0.198113 | 0 | 0 | 0.107186 | 0.006049 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.113208 | false | 0 | 0.028302 | 0.028302 | 0.254717 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1d2400def017bc7e08b7a2881ecb907828aa29c | 1,839 | py | Python | saber/postprocessing/blob_detect/blob_detect.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 12 | 2018-05-14T17:43:18.000Z | 2021-11-16T04:03:33.000Z | saber/postprocessing/blob_detect/blob_detect.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 34 | 2019-05-06T19:13:36.000Z | 2021-05-06T19:12:35.000Z | saber/postprocessing/blob_detect/blob_detect.py | elenimath/saber | 71acab9798cf3aee1c4d64b09453e5234f8fdf1e | [
"Apache-2.0"
] | 3 | 2019-10-08T17:42:17.000Z | 2021-07-28T05:52:02.000Z | # Copyright 2020 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | 34.055556 | 86 | 0.707993 | 259 | 1,839 | 4.92278 | 0.486486 | 0.047059 | 0.053333 | 0.025098 | 0.064314 | 0.064314 | 0.064314 | 0.064314 | 0.064314 | 0 | 0 | 0.006676 | 0.185427 | 1,839 | 53 | 87 | 34.698113 | 0.844459 | 0.32137 | 0 | 0.064516 | 0 | 0 | 0.13047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.258065 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1d3dc26cb6e1253349d57f3b6bf5b06931d5da6 | 774 | py | Python | forms_app/views.py | sudee404/forms_project | ba60e41d13d72c80f412a7928e32000db200ea17 | [
"Apache-2.0"
] | null | null | null | forms_app/views.py | sudee404/forms_project | ba60e41d13d72c80f412a7928e32000db200ea17 | [
"Apache-2.0"
] | null | null | null | forms_app/views.py | sudee404/forms_project | ba60e41d13d72c80f412a7928e32000db200ea17 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from .models import User
from . import forms
# Create your views here.
def index(request):
context = {
'django':'The Web Framework for Developers with a deadline'
}
return render(request,'index.html', context=context)
def signup(request):
sign_up = forms.User... | 26.689655 | 67 | 0.639535 | 96 | 774 | 5.083333 | 0.479167 | 0.061475 | 0.116803 | 0.077869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241602 | 774 | 29 | 68 | 26.689655 | 0.831346 | 0.029716 | 0 | 0.08 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1d9fe63dcda29a6aafbbbb348278fbcaa1eb8c3 | 3,449 | py | Python | metrics.py | mksarker/data_preprocessing | dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027 | [
"MIT"
] | null | null | null | metrics.py | mksarker/data_preprocessing | dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027 | [
"MIT"
] | null | null | null | metrics.py | mksarker/data_preprocessing | dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027 | [
"MIT"
] | null | null | null | import os
import argparse
import logging
import numpy as np
import SimpleITK as sitk
logging.basicConfig(level=logging.INFO)
from tqdm import tqdm
import cv2
import sys
from PIL import Image
from sklearn import metrics
def Accuracy(y_true, y_pred):
TP = np.sum(np.logical_and(y_pred == 255, y_true == 255))
TN =... | 35.556701 | 114 | 0.643665 | 551 | 3,449 | 3.854809 | 0.199637 | 0.051789 | 0.046139 | 0.092279 | 0.366761 | 0.319209 | 0.269303 | 0.269303 | 0.269303 | 0.231638 | 0 | 0.02462 | 0.199188 | 3,449 | 96 | 115 | 35.927083 | 0.744388 | 0.039722 | 0 | 0.155844 | 0 | 0 | 0.082022 | 0.019673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0 | 0.12987 | 0 | 0.272727 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1dc37b00019bdcd4fd7800d93e149be0dfe2bdf | 11,747 | py | Python | synapse/tools/storm.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 216 | 2017-01-17T18:52:50.000Z | 2022-03-31T18:44:49.000Z | synapse/tools/storm.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 2,189 | 2017-01-17T22:31:48.000Z | 2022-03-31T20:41:45.000Z | synapse/tools/storm.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 44 | 2017-01-17T16:50:57.000Z | 2022-03-16T18:35:52.000Z | import os
import sys
import copy
import asyncio
import logging
import argparse
import synapse.exc as s_exc
import synapse.common as s_common
import synapse.telepath as s_telepath
import synapse.lib.cli as s_cli
import synapse.lib.cmd as s_cmd
import synapse.lib.node as s_node
import synapse.lib.time as s_time
import ... | 29.589421 | 125 | 0.556823 | 1,397 | 11,747 | 4.600573 | 0.212598 | 0.034231 | 0.029096 | 0.014003 | 0.170842 | 0.137078 | 0.137078 | 0.129298 | 0.118718 | 0.118718 | 0 | 0.016973 | 0.327914 | 11,747 | 396 | 126 | 29.664141 | 0.797087 | 0.07338 | 0 | 0.164659 | 0 | 0 | 0.132979 | 0.001957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040161 | false | 0 | 0.064257 | 0 | 0.216867 | 0.144578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1dcbdb70b490e3b7a9741698dbd0c921ce6d7ff | 374 | py | Python | Feature Selection/variance-thresholding-binary-features.py | WyckliffeAluga/data-chronicles | 5219fe9cdbafb9fd7be88727483952c4c13f2790 | [
"MIT"
] | null | null | null | Feature Selection/variance-thresholding-binary-features.py | WyckliffeAluga/data-chronicles | 5219fe9cdbafb9fd7be88727483952c4c13f2790 | [
"MIT"
] | null | null | null | Feature Selection/variance-thresholding-binary-features.py | WyckliffeAluga/data-chronicles | 5219fe9cdbafb9fd7be88727483952c4c13f2790 | [
"MIT"
] | 1 | 2021-02-09T12:22:55.000Z | 2021-02-09T12:22:55.000Z | from sklearn.feature_selection import VarianceThreshold
# Create feature matrix with:
# Feature 0: 80% class 0
# Feature 1: 80% class 1
# Feature 2: 60% class 0, 40% class 1
X = [[0, 1, 0],
[0, 1, 1],
[0, 1, 0],
[0, 1, 1],
[1, 0, 0]]
# Run threshold by variance
thresholder = VarianceThreshold(thre... | 23.375 | 60 | 0.628342 | 58 | 374 | 4.017241 | 0.431034 | 0.034335 | 0.038627 | 0.034335 | 0.051502 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0.119863 | 0.219251 | 374 | 15 | 61 | 24.933333 | 0.678082 | 0.360963 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 1 | 0 |
f1dd06b091ae6fa97dc90f3e28bc1d5770af8082 | 1,677 | py | Python | scripts/03_BuildLITypeModels/14_TrainLemmaModel.py | danielplatt/LemmInflect | 7db0633098409800fbe7056bdab7d6f5f144cebb | [
"MIT"
] | 157 | 2019-05-11T21:17:20.000Z | 2022-03-21T12:05:12.000Z | scripts/03_BuildLITypeModels/14_TrainLemmaModel.py | danielplatt/LemmInflect | 7db0633098409800fbe7056bdab7d6f5f144cebb | [
"MIT"
] | 10 | 2019-05-14T19:49:04.000Z | 2021-06-03T13:15:16.000Z | scripts/03_BuildLITypeModels/14_TrainLemmaModel.py | danielplatt/LemmInflect | 7db0633098409800fbe7056bdab7d6f5f144cebb | [
"MIT"
] | 20 | 2019-08-21T12:40:51.000Z | 2021-10-02T15:06:07.000Z | #!/usr/bin/python3
import sys
sys.path.insert(0, '../..') # make '..' first in the lib search path
import gzip
import numpy
from lemminflect.kmodels.ModelLemma import ModelLemma
from lemminflect.kmodels.ModelLemmaInData import ModelLemmaInData
from lemminflect.kmodels.ModelLemmaClasses import ModelLemm... | 31.641509 | 75 | 0.690519 | 203 | 1,677 | 5.551724 | 0.394089 | 0.053239 | 0.056788 | 0.031943 | 0.035492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007468 | 0.20155 | 1,677 | 52 | 76 | 32.25 | 0.834205 | 0.097794 | 0 | 0.05 | 0 | 0 | 0.06503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.175 | 0 | 0.175 | 0.225 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1dd06cdb53d42d5c3f71ef66179e31f525e4e55 | 9,006 | py | Python | python/snips_nlu_parsers/builtin_entities.py | f-laurens/snips-nlu-parsers | 82d24c0b4258acd1191af5d558b7592a18f2dada | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 14 | 2019-04-17T15:10:39.000Z | 2022-02-14T09:38:47.000Z | python/snips_nlu_parsers/builtin_entities.py | f-laurens/snips-nlu-parsers | 82d24c0b4258acd1191af5d558b7592a18f2dada | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2019-04-07T19:36:24.000Z | 2020-05-28T12:46:37.000Z | python/snips_nlu_parsers/builtin_entities.py | f-laurens/snips-nlu-parsers | 82d24c0b4258acd1191af5d558b7592a18f2dada | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 43 | 2019-04-20T07:31:57.000Z | 2022-01-12T16:24:13.000Z | # coding=utf-8
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import json
from _ctypes import byref, pointer
from builtins import range, str
from ctypes import c_char_p, string_at
from snips_nlu_parsers.utils import (CStringArray, check_ffi_error, lib,
... | 40.751131 | 87 | 0.67777 | 1,069 | 9,006 | 5.379794 | 0.1029 | 0.053208 | 0.028691 | 0.029734 | 0.623022 | 0.58216 | 0.532603 | 0.50113 | 0.482351 | 0.435055 | 0 | 0.003106 | 0.249167 | 9,006 | 220 | 88 | 40.936364 | 0.847382 | 0.108039 | 0 | 0.293333 | 0 | 0 | 0.098116 | 0.002655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073333 | false | 0 | 0.04 | 0 | 0.186667 | 0.006667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1decafed3dd9912b1ab456a5f7d5b245e48033e | 521 | py | Python | picoctf-2019/got/shellcode.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | 9 | 2021-04-20T15:28:36.000Z | 2022-03-08T19:53:48.000Z | picoctf-2019/got/shellcode.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | null | null | null | picoctf-2019/got/shellcode.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | 6 | 2021-06-24T03:25:21.000Z | 2022-02-20T21:44:52.000Z | import os;os.environ['TMPDIR'] = os.path.join(os.environ['HOME'], 'tmp')
import pwn
remote_binary = "/problems/got_5_c5119617c90aa544a639812dbc41e24e/vuln"
def segfault():
try:
pr = pwn.process(remote_binary)
elf = pwn.ELF(remote_binary, False)
print(elf.got)
pr.sendlineafter("Inpu... | 27.421053 | 72 | 0.629559 | 68 | 521 | 4.75 | 0.573529 | 0.111455 | 0.123839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06068 | 0.209213 | 521 | 18 | 73 | 28.944444 | 0.723301 | 0 | 0 | 0 | 0 | 0 | 0.195777 | 0.101727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1e15b839857a50eb242db9bce20dc2231b79a03 | 9,518 | py | Python | miscellaneous/utils.py | tingyuansen/Weak_Lensing | f8f0833345687648c467b4dea7074d9596c81c14 | [
"MIT"
] | null | null | null | miscellaneous/utils.py | tingyuansen/Weak_Lensing | f8f0833345687648c467b4dea7074d9596c81c14 | [
"MIT"
] | null | null | null | miscellaneous/utils.py | tingyuansen/Weak_Lensing | f8f0833345687648c467b4dea7074d9596c81c14 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# *Author: Dezso Ribli*
"""
Util functions for training CNN on weak lesnsing maps.
Mostly data loaders and data generators with some
additional functionality.
"""
import numpy as np
# https://github.com/IntelPython/mkl_fft/issues/11
#np.fft.restore_all()
import cv2
import math... | 37.179688 | 87 | 0.604434 | 1,433 | 9,518 | 3.796232 | 0.18702 | 0.023162 | 0.020588 | 0.039706 | 0.332537 | 0.309007 | 0.281066 | 0.263603 | 0.252206 | 0.225 | 0 | 0.014335 | 0.267073 | 9,518 | 255 | 88 | 37.32549 | 0.765482 | 0.165161 | 0 | 0.152439 | 0 | 0 | 0.090136 | 0.021375 | 0 | 0 | 0 | 0 | 0.018293 | 1 | 0.091463 | false | 0 | 0.02439 | 0 | 0.207317 | 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 | 0 | 0 | 1 | 0 |
f1e232b6730dde2945dc690b0f6fddabcc0f6b8b | 4,683 | py | Python | bert/utils/common.py | rschoon/bert | 5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13 | [
"MIT"
] | null | null | null | bert/utils/common.py | rschoon/bert | 5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13 | [
"MIT"
] | null | null | null | bert/utils/common.py | rschoon/bert | 5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13 | [
"MIT"
] | null | null | null |
import hashlib
import io
import json
import os
import re
import struct
def decode_bin(s, encoding=None):
if encoding is None:
encoding = "utf-8"
if encoding in ("bin", "binary", "bytes", "raw"):
return s
return s.decode(encoding)
class open_output(object):
def __init__(self, filename,... | 23.771574 | 74 | 0.558189 | 599 | 4,683 | 4.230384 | 0.263773 | 0.04341 | 0.044199 | 0.023678 | 0.136938 | 0.066298 | 0.050513 | 0.028414 | 0 | 0 | 0 | 0.006283 | 0.320308 | 4,683 | 196 | 75 | 23.892857 | 0.789821 | 0 | 0 | 0.143791 | 0 | 0 | 0.035028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0.006536 | 0.039216 | 0.071895 | 0.424837 | 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 | 0 | 0 | 1 | 0 |
f1e338fa1474985107d12ea6bcd66b88abed94fc | 2,924 | py | Python | projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py | vmware/versatile-data-kit | c4e10324a4f3203c58079cb18203880f68053f15 | [
"Apache-2.0"
] | 100 | 2021-10-04T09:32:04.000Z | 2022-03-30T11:23:53.000Z | projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py | vmware/versatile-data-kit | c4e10324a4f3203c58079cb18203880f68053f15 | [
"Apache-2.0"
] | 208 | 2021-10-04T16:56:40.000Z | 2022-03-31T10:41:44.000Z | projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py | vmware/versatile-data-kit | c4e10324a4f3203c58079cb18203880f68053f15 | [
"Apache-2.0"
] | 14 | 2021-10-11T14:15:13.000Z | 2022-03-11T13:39:17.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import logging
import unittest
from unittest import mock
from vdk.plugin.control_api_auth.authentication import Authentication
from vdk_provider.hooks.vdk import VDKHook
log = logging.getLogger(__name__)
# Monkey-patch the authentication logic to a... | 38.986667 | 129 | 0.703146 | 398 | 2,924 | 4.824121 | 0.253769 | 0.05625 | 0.046875 | 0.06875 | 0.544271 | 0.524479 | 0.524479 | 0.524479 | 0.489063 | 0.459896 | 0 | 0.011227 | 0.177497 | 2,924 | 74 | 130 | 39.513514 | 0.78711 | 0.051642 | 0 | 0.173077 | 0 | 0.057692 | 0.332009 | 0.136199 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.115385 | false | 0 | 0.096154 | 0.019231 | 0.269231 | 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 | 0 | 0 | 1 | 0 |
f1e3adf84f989f48fb009dcc9e422f44d758219c | 720 | py | Python | skater/util/logger.py | RPUTHUMA/Skater | 317460b88065b41eebe6790e9efdbb0595cbe450 | [
"UPL-1.0"
] | 718 | 2017-05-19T22:49:40.000Z | 2019-03-27T06:40:54.000Z | skater/util/logger.py | quant1729/Skater | b46a4abe3465ddc7b19ffc762ad45d1414b060a6 | [
"UPL-1.0"
] | 114 | 2017-05-24T16:55:59.000Z | 2019-03-27T12:48:18.000Z | skater/util/logger.py | quant1729/Skater | b46a4abe3465ddc7b19ffc762ad45d1414b060a6 | [
"UPL-1.0"
] | 121 | 2017-05-22T17:20:19.000Z | 2019-03-21T15:06:19.000Z | """Funcs for logging"""
import logging
_CRITICAL = logging.CRITICAL
_ERROR = logging.ERROR
_WARNING = logging.WARNING
_INFO = logging.INFO
_DEBUG = logging.DEBUG
_NOTSET = logging.NOTSET
def build_logger(log_level, logger_name, capture_warning=True):
logger = logging.Logger(logger_name)
# All warnings are ... | 24 | 63 | 0.740278 | 84 | 720 | 6.107143 | 0.452381 | 0.101365 | 0.097466 | 0.109162 | 0.14425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163889 | 720 | 29 | 64 | 24.827586 | 0.852159 | 0.073611 | 0 | 0.105263 | 0 | 0 | 0.078669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1e6fe5da799ee54688ff5ee8d7c10fc529546e8 | 1,818 | py | Python | examples/hsmm-geo.py | bikash/pyhsmm | 94fab0ea66072a639b20163c40db04c18069496c | [
"MIT"
] | 1 | 2015-11-08T05:20:39.000Z | 2015-11-08T05:20:39.000Z | examples/hsmm-geo.py | bikash/pyhsmm | 94fab0ea66072a639b20163c40db04c18069496c | [
"MIT"
] | null | null | null | examples/hsmm-geo.py | bikash/pyhsmm | 94fab0ea66072a639b20163c40db04c18069496c | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
np.seterr(divide='ignore') # these warnings are usually harmless for this code
from matplotlib import pyplot as plt
import copy, os
import pyhsmm
from pyhsmm.util.text import progprint_xrange
###################
# generate data #
###################
T = 1000
obs_d... | 25.25 | 95 | 0.669417 | 230 | 1,818 | 5.095652 | 0.408696 | 0.046075 | 0.085324 | 0.064846 | 0.303754 | 0.303754 | 0.295222 | 0.295222 | 0.230375 | 0.230375 | 0 | 0.025914 | 0.172167 | 1,818 | 71 | 96 | 25.605634 | 0.752824 | 0.069857 | 0 | 0.177778 | 0 | 0 | 0.025721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1e7704fa789f92ccdaa67ed757a654c38ed5fda | 2,644 | py | Python | drf_nested/mixins/update_nested_mixin.py | promoteinternational/drf-nested | 0042b9e4c100df4ae43a10684c30348160b39187 | [
"MIT"
] | 1 | 2020-01-05T07:23:48.000Z | 2020-01-05T07:23:48.000Z | drf_nested/mixins/update_nested_mixin.py | promoteinternational/drf-nested | 0042b9e4c100df4ae43a10684c30348160b39187 | [
"MIT"
] | null | null | null | drf_nested/mixins/update_nested_mixin.py | promoteinternational/drf-nested | 0042b9e4c100df4ae43a10684c30348160b39187 | [
"MIT"
] | 2 | 2019-08-12T07:36:57.000Z | 2019-11-30T01:40:30.000Z | from django.db import transaction
from rest_framework.exceptions import ValidationError
from .base_nested_mixin import BaseNestedMixin
class UpdateNestedMixin(BaseNestedMixin):
@transaction.atomic
def update(self, instance, validated_data):
"""
:param instance:
:param validated_data:
... | 44.066667 | 112 | 0.655825 | 298 | 2,644 | 5.489933 | 0.244966 | 0.071516 | 0.071516 | 0.056235 | 0.496333 | 0.469438 | 0.410147 | 0.355134 | 0.330073 | 0.330073 | 0 | 0 | 0.274962 | 2,644 | 59 | 113 | 44.813559 | 0.853417 | 0.156203 | 0 | 0.27027 | 0 | 0 | 0.05807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.162162 | 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 | 0 | 0 | 1 | 0 |
f1ee53bc0c6e33469f0d38aac5f3576590fc8660 | 14,142 | py | Python | allocate.py | tomdavsmi/ncl-spa | baa714071d18cc388ccc73702d78a53f7096db6e | [
"MIT"
] | null | null | null | allocate.py | tomdavsmi/ncl-spa | baa714071d18cc388ccc73702d78a53f7096db6e | [
"MIT"
] | null | null | null | allocate.py | tomdavsmi/ncl-spa | baa714071d18cc388ccc73702d78a53f7096db6e | [
"MIT"
] | null | null | null | import library
import random
import re
def allocate(studPrefs,unassignedStudents,lecturerprefs,projLects,lectProjs,lecturercaps,projCaps,randomise,updates,iterationLimit):
# Create projected preference list - first pass; add students not on lecturer's list
for k, v in studPrefs.items():
for project in v:
... | 38.53406 | 172 | 0.680031 | 1,398 | 14,142 | 6.877682 | 0.101574 | 0.029745 | 0.028081 | 0.040562 | 0.679563 | 0.627977 | 0.610192 | 0.602496 | 0.598336 | 0.590016 | 0 | 0.005402 | 0.214609 | 14,142 | 367 | 173 | 38.53406 | 0.860268 | 0.04172 | 0 | 0.646875 | 0 | 0 | 0.09171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009375 | false | 0.00625 | 0.009375 | 0 | 0.021875 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1f2709a9b0d54f4549f4f5b2c964cce095a32f9 | 3,655 | py | Python | example/experiments/01_experiment.py | dzwiedziu-nkg/credo-classify-framework | 45417b505b4f4b20a7248f3487ca57a3fd49ccee | [
"MIT"
] | null | null | null | example/experiments/01_experiment.py | dzwiedziu-nkg/credo-classify-framework | 45417b505b4f4b20a7248f3487ca57a3fd49ccee | [
"MIT"
] | null | null | null | example/experiments/01_experiment.py | dzwiedziu-nkg/credo-classify-framework | 45417b505b4f4b20a7248f3487ca57a3fd49ccee | [
"MIT"
] | 3 | 2020-06-19T15:41:19.000Z | 2020-06-29T12:47:05.000Z | import bz2
import time
import urllib.request
import io
from typing import List, Tuple
from credo_cf import load_json_from_stream, progress_and_process_image, group_by_device_id, group_by_resolution, too_often, near_hot_pixel2, \
too_bright
from credo_cf import xor_preprocess
from credo_cf.commons.utils import get_... | 31.782609 | 142 | 0.642681 | 507 | 3,655 | 4.335306 | 0.274162 | 0.038217 | 0.045041 | 0.044586 | 0.198817 | 0.153321 | 0.077343 | 0.077343 | 0.077343 | 0.047316 | 0 | 0.007565 | 0.240492 | 3,655 | 114 | 143 | 32.061404 | 0.784222 | 0.118468 | 0 | 0.128571 | 0 | 0.014286 | 0.120674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.114286 | 0 | 0.171429 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1f2f70605379c3a09598bf2b8739bb4f47caa1b | 3,944 | py | Python | 30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py | zhaobingwang/python-samples | d59f84d2b967cc793cb9b8999f8cdef349fd6fd5 | [
"MIT"
] | null | null | null | 30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py | zhaobingwang/python-samples | d59f84d2b967cc793cb9b8999f8cdef349fd6fd5 | [
"MIT"
] | null | null | null | 30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py | zhaobingwang/python-samples | d59f84d2b967cc793cb9b8999f8cdef349fd6fd5 | [
"MIT"
] | null | null | null | print('---------- Opening Files for Reading ----------')
f = open('./files/reading_file_example.txt')
print(f) # <_io.TextIOWrapper name='./files/reading_file_example.txt' mode='r' encoding='cp936'>
print('\t---------- read() ----------')
# read(): read the whole text as string. If we want to limit the number of char... | 31.806452 | 113 | 0.606491 | 542 | 3,944 | 4.333948 | 0.239852 | 0.056194 | 0.07152 | 0.078331 | 0.489144 | 0.43593 | 0.413367 | 0.338442 | 0.310345 | 0.281396 | 0 | 0.002979 | 0.148834 | 3,944 | 123 | 114 | 32.065041 | 0.696753 | 0.230223 | 0 | 0.526316 | 0 | 0.010526 | 0.533378 | 0.125208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031579 | 0 | 0.031579 | 0.326316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1f6211abde32ba71ccaac35e7c39eb9935dfa7c | 2,491 | py | Python | data/grady-memorial-hospital/parse.py | Afellman/hospital-chargemaster | 1b87bc64d95d97c0538be7633f9e469e5db624e2 | [
"MIT"
] | 34 | 2019-01-18T00:15:58.000Z | 2022-03-26T15:01:08.000Z | data/grady-memorial-hospital/parse.py | wsheffel/hospital-chargemaster | b3473c798fd2f343f7f02c1e32496f9eea9fa94d | [
"MIT"
] | 8 | 2019-01-16T22:06:11.000Z | 2019-02-25T00:59:25.000Z | data/grady-memorial-hospital/parse.py | wsheffel/hospital-chargemaster | b3473c798fd2f343f7f02c1e32496f9eea9fa94d | [
"MIT"
] | 10 | 2019-02-20T14:58:16.000Z | 2021-11-22T21:57:04.000Z | #!/usr/bin/env python
import os
from glob import glob
import json
import pandas
import datetime
import sys
here = os.path.dirname(os.path.abspath(__file__))
folder = os.path.basename(here)
latest = '%s/latest' % here
year = datetime.datetime.today().year
output_data = os.path.join(here, 'data-latest.tsv')
output_year... | 29.654762 | 75 | 0.583701 | 318 | 2,491 | 4.490566 | 0.349057 | 0.042017 | 0.028011 | 0.023109 | 0.118347 | 0.033613 | 0.033613 | 0.033613 | 0 | 0 | 0 | 0.004464 | 0.28061 | 2,491 | 83 | 76 | 30.012048 | 0.792411 | 0.109996 | 0 | 0.033898 | 0 | 0 | 0.133394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.101695 | 0 | 0.135593 | 0.118644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1f62ac7868b351e283f53daaf44f5e2562dfc27 | 10,476 | py | Python | DeterministicParticleFlowControl/tests/test_pytorch_kernel.py | dimitra-maoutsa/DeterministicParticleFlowControl | 106bc9b01d7a4888e4ded18c5fb5a989fe672386 | [
"MIT"
] | 6 | 2021-12-13T14:30:31.000Z | 2022-01-24T07:54:57.000Z | DeterministicParticleFlowControl/tests/test_pytorch_kernel.py | dimitra-maoutsa/DeterministicParticleFlowControl | 106bc9b01d7a4888e4ded18c5fb5a989fe672386 | [
"MIT"
] | 10 | 2021-12-18T23:04:53.000Z | 2022-02-05T02:06:34.000Z | DeterministicParticleFlowControl/tests/test_pytorch_kernel.py | dimitra-maoutsa/DeterministicParticleFlowControl | 106bc9b01d7a4888e4ded18c5fb5a989fe672386 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 10 07:20:39 2022
@author: maout
"""
import numpy as np
from scipy.spatial.distance import cdist
import torch
#from score_function_estimators import my_cdist
from typing import Union
from torch.autograd import grad
#%% select available device
def set_device():
device... | 37.683453 | 180 | 0.612447 | 1,491 | 10,476 | 4.22334 | 0.18444 | 0.041925 | 0.026679 | 0.019057 | 0.510719 | 0.494521 | 0.464507 | 0.441798 | 0.413054 | 0.397808 | 0 | 0.014371 | 0.262696 | 10,476 | 278 | 181 | 37.683453 | 0.80088 | 0.317106 | 0 | 0.283582 | 0 | 0 | 0.055916 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.067164 | false | 0 | 0.037313 | 0.014925 | 0.179104 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1f6905a9916f479816181eeb443cb6b650cc61b | 11,075 | py | Python | components.py | zachgk/tfcomponents | 6c33349ab13549debfc9b347df795c82e38cfa73 | [
"MIT"
] | null | null | null | components.py | zachgk/tfcomponents | 6c33349ab13549debfc9b347df795c82e38cfa73 | [
"MIT"
] | null | null | null | components.py | zachgk/tfcomponents | 6c33349ab13549debfc9b347df795c82e38cfa73 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import tensorflow as tf
import tflearn
from tflearn import variables as vs
from tflearn import activations
from tflearn import initializations
from tflearn import losses
from tflearn import utils
def condition(cond, t, f):
i... | 34.182099 | 116 | 0.557562 | 1,131 | 11,075 | 5.312997 | 0.168877 | 0.033283 | 0.018306 | 0.029289 | 0.339324 | 0.300549 | 0.275254 | 0.275254 | 0.269096 | 0.269096 | 0 | 0.006302 | 0.340948 | 11,075 | 323 | 117 | 34.287926 | 0.816961 | 0.018781 | 0 | 0.3 | 0 | 0 | 0.066218 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 1 | 0.080769 | false | 0.003846 | 0.030769 | 0.003846 | 0.211538 | 0.003846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1f9c0eee8a8c52481a3d1792850e6310a0a8163 | 1,984 | py | Python | tests/unit/warnings_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 421 | 2015-06-02T16:29:59.000Z | 2021-06-03T18:44:42.000Z | tests/unit/warnings_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 404 | 2015-06-02T20:23:42.000Z | 2019-08-21T16:59:41.000Z | tests/unit/warnings_test.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 16 | 2015-06-16T17:21:02.000Z | 2020-03-27T02:27:09.000Z | from ..testcases import DustyTestCase
from dusty.warnings import Warnings
class TestWarnings(DustyTestCase):
def setUp(self):
super(TestWarnings, self).setUp()
self.warnings = Warnings()
def test_warn(self):
message_1 = 'Something is wrong, yo'
message_2 = 'Yo this thing is al... | 45.090909 | 229 | 0.689516 | 257 | 1,984 | 5.182879 | 0.233463 | 0.18018 | 0.084084 | 0.105105 | 0.63964 | 0.576577 | 0.5503 | 0.52027 | 0.385886 | 0.328829 | 0 | 0.011823 | 0.19002 | 1,984 | 43 | 230 | 46.139535 | 0.81705 | 0 | 0 | 0.314286 | 0 | 0.057143 | 0.245968 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 |
f1fa3f6469623ef44f7b253d9c5da8307b330081 | 4,655 | py | Python | dndice.py | Ar4093/PythonUtils | fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3 | [
"MIT"
] | null | null | null | dndice.py | Ar4093/PythonUtils | fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3 | [
"MIT"
] | null | null | null | dndice.py | Ar4093/PythonUtils | fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3 | [
"MIT"
] | null | null | null | from random import randint
import re
# Supported formats:
# [A]dX[(L|H|K)n][.Y1[.Y2[...]]]
# A - number of dice
# X - number of sides of dice
# . - operation: allowed are + - * x /
# Ln/Hn/Kn - discard the Lowest n dice or Keep the Highest n dice. - will only apply the first of these, in order LHK
# Y1,Y2,...... | 34.738806 | 140 | 0.478195 | 566 | 4,655 | 3.932862 | 0.293286 | 0.016173 | 0.016173 | 0.02965 | 0.293801 | 0.268194 | 0.248877 | 0.194519 | 0.173405 | 0.154987 | 0 | 0.020166 | 0.403437 | 4,655 | 133 | 141 | 35 | 0.781419 | 0.299033 | 0 | 0.35 | 0 | 0.025 | 0.042058 | 0.031705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.15 | 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 | 0 | 0 | 1 | 0 |
f1fbbda465699c148d64aca8b6b9736f618761e2 | 2,471 | py | Python | cfg/configure_model.py | dadelani/sentiment-discovery | 0cbfc5f6345dacbf52f1f806a9e136a61ca35cf8 | [
"BSD-3-Clause"
] | 2 | 2019-04-24T08:23:54.000Z | 2020-06-24T10:25:34.000Z | cfg/configure_model.py | mikekestemont/sentiment-discovery | 84bf39846ddf6b099d99318214a013269b5b0e61 | [
"BSD-3-Clause"
] | null | null | null | cfg/configure_model.py | mikekestemont/sentiment-discovery | 84bf39846ddf6b099d99318214a013269b5b0e61 | [
"BSD-3-Clause"
] | 1 | 2019-03-23T08:07:33.000Z | 2019-03-23T08:07:33.000Z | import os
from sentiment_discovery.reparameterization import remove_weight_norm
from sentiment_discovery.model import make_model
class ModuleConfig(object):
def __init__(self, parser):
super(ModuleConfig, self).__init__()
self.parser = parser
def apply(self, cfg, opt):
"""make model and format model... | 39.854839 | 93 | 0.718737 | 352 | 2,471 | 4.821023 | 0.321023 | 0.058338 | 0.100177 | 0.033589 | 0.032999 | 0.032999 | 0 | 0 | 0 | 0 | 0 | 0.004369 | 0.166329 | 2,471 | 61 | 94 | 40.508197 | 0.819417 | 0.048563 | 0 | 0 | 0 | 0 | 0.248793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.056604 | 0 | 0.150943 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
f1ff198ad462185fb2910c252e87000aebf824f5 | 6,351 | py | Python | backend/modules/cache.py | fheyen/ClaVis | 528ca85dd05606d39761b5a00d755500cf1cd2f6 | [
"MIT"
] | 2 | 2021-01-11T20:09:32.000Z | 2021-05-14T14:52:48.000Z | backend/modules/cache.py | fheyen/ClaVis | 528ca85dd05606d39761b5a00d755500cf1cd2f6 | [
"MIT"
] | null | null | null | backend/modules/cache.py | fheyen/ClaVis | 528ca85dd05606d39761b5a00d755500cf1cd2f6 | [
"MIT"
] | null | null | null | from os import listdir, remove, makedirs
from os.path import isfile, join, exists
import shutil
import joblib
from termcolor import cprint
import json
from pathlib import Path
_cache_path = None
_log_actions = True
def init(cache_path, log_actions=True):
"""
Initializes the cache.
Keyword Arguments:
... | 26.352697 | 140 | 0.597859 | 767 | 6,351 | 4.805737 | 0.221643 | 0.048833 | 0.035269 | 0.024417 | 0.363266 | 0.32854 | 0.290016 | 0.263972 | 0.253391 | 0.233858 | 0 | 0.002462 | 0.296489 | 6,351 | 240 | 141 | 26.4625 | 0.822516 | 0.204377 | 0 | 0.362963 | 0 | 0.007407 | 0.163453 | 0.00461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.051852 | 0 | 0.192593 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b00a8aae5f5c462bd8742df1743968940cbb675 | 8,123 | py | Python | training/data/sampler.py | jpjuvo/PANDA-challenge-raehmae | 5748cd23f18e2dd36d56918dcee495b822d2a5cd | [
"MIT"
] | null | null | null | training/data/sampler.py | jpjuvo/PANDA-challenge-raehmae | 5748cd23f18e2dd36d56918dcee495b822d2a5cd | [
"MIT"
] | null | null | null | training/data/sampler.py | jpjuvo/PANDA-challenge-raehmae | 5748cd23f18e2dd36d56918dcee495b822d2a5cd | [
"MIT"
] | 1 | 2021-04-20T04:37:47.000Z | 2021-04-20T04:37:47.000Z | import torch
import os
import numpy as np
import random
import pandas as pd
from sklearn.model_selection import StratifiedKFold
from data.tileimages import *
from data.multitask import *
import fastai
from fastai.vision import *
class FoldSampler:
def __init__(self, TRAIN, LABELS,
mean, std, N,
... | 40.819095 | 111 | 0.519266 | 891 | 8,123 | 4.530864 | 0.225589 | 0.020808 | 0.023532 | 0.013624 | 0.232351 | 0.224919 | 0.208075 | 0.208075 | 0.182314 | 0.182314 | 0 | 0.005217 | 0.386434 | 8,123 | 198 | 112 | 41.025253 | 0.804775 | 0.056752 | 0 | 0.164706 | 0 | 0 | 0.050621 | 0.010464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.005882 | 0.170588 | 0.005882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b02e549c87583bcf554b71f024544d0bb0dac0a | 2,735 | py | Python | FEM/src/FemIo.py | BartSiwek/Neurotransmitter2D | 200c1b7e74de0786b1bb52d456e227f9d64cebc6 | [
"MIT"
] | null | null | null | FEM/src/FemIo.py | BartSiwek/Neurotransmitter2D | 200c1b7e74de0786b1bb52d456e227f9d64cebc6 | [
"MIT"
] | null | null | null | FEM/src/FemIo.py | BartSiwek/Neurotransmitter2D | 200c1b7e74de0786b1bb52d456e227f9d64cebc6 | [
"MIT"
] | null | null | null | import string
import scipy
import PslgIo, ElementAwarePslg
def loadEle(filename):
pslg = ElementAwarePslg.ElementAwarePslg()
file = open(filename, "r")
try:
PslgIo.readFromFile(file, pslg, filename)
finally:
file.close()
return pslg
def saveFem(filename, femResults):
#Open the ... | 27.35 | 102 | 0.571115 | 301 | 2,735 | 5.189369 | 0.30897 | 0.049296 | 0.040973 | 0.03265 | 0.166453 | 0.112676 | 0.067862 | 0.067862 | 0.067862 | 0.067862 | 0 | 0.012137 | 0.30713 | 2,735 | 100 | 103 | 27.35 | 0.812137 | 0.02925 | 0 | 0.395062 | 0 | 0 | 0.049434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.012346 | 0.037037 | 0.012346 | 0.234568 | 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 | 0 | 0 | 1 | 0 |
7b04376d12aae979563b6b36b34ff0b76d2dcff0 | 3,466 | py | Python | dianna/__init__.py | cffbots/dianna | 21e272dce2862747a5109341b622798f667d9248 | [
"Apache-2.0"
] | null | null | null | dianna/__init__.py | cffbots/dianna | 21e272dce2862747a5109341b622798f667d9248 | [
"Apache-2.0"
] | null | null | null | dianna/__init__.py | cffbots/dianna | 21e272dce2862747a5109341b622798f667d9248 | [
"Apache-2.0"
] | null | null | null | """
DIANNA: Deep Insight And Neural Network Analysis.
Modern scientific challenges are often tackled with (Deep) Neural Networks (DNN).
Despite their high predictive accuracy, DNNs lack inherent explainability. Many DNN
users, especially scientists, do not harvest DNNs power because of lack of trust and
understanding ... | 42.790123 | 99 | 0.742643 | 483 | 3,466 | 5.15942 | 0.407867 | 0.028892 | 0.036116 | 0.032103 | 0.369181 | 0.369181 | 0.337079 | 0.243178 | 0.243178 | 0.198234 | 0 | 0.002147 | 0.193883 | 3,466 | 80 | 100 | 43.325 | 0.889764 | 0.644836 | 0 | 0.1 | 0 | 0 | 0.038154 | 0.023957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b0494a9e41efc09a0891a5e4ffe2bfd4e84d0d3 | 2,925 | py | Python | printer/gpio.py | 3DRPP/printer | 7826c7c82a5331d916d8ea038bd3a44aff6e35b5 | [
"MIT"
] | null | null | null | printer/gpio.py | 3DRPP/printer | 7826c7c82a5331d916d8ea038bd3a44aff6e35b5 | [
"MIT"
] | null | null | null | printer/gpio.py | 3DRPP/printer | 7826c7c82a5331d916d8ea038bd3a44aff6e35b5 | [
"MIT"
] | null | null | null | try:
import RPi.GPIO as GPIO
except RuntimeError:
print("Error importing RPi.GPIO! This is probably because you need "
"superuser privileges. You can achieve this by using 'sudo' to run "
"your script")
gpios = [7, 8, 10, 11, 12, 13, 15, 16, 18, 19, 21, 22, 23, 24, 26, 29,
31, 32... | 29.545455 | 79 | 0.523419 | 372 | 2,925 | 4.026882 | 0.258065 | 0.078104 | 0.048064 | 0.053405 | 0.389186 | 0.333111 | 0.280374 | 0.23765 | 0.23765 | 0.23765 | 0 | 0.025932 | 0.367179 | 2,925 | 98 | 80 | 29.846939 | 0.78336 | 0 | 0 | 0.378049 | 0 | 0 | 0.094701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.02439 | 0.02439 | 0 | 0.256098 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b04e005435865593cbdccc3f6d9e91235157df4 | 1,395 | py | Python | simple_joint_subscriber/scripts/joint_subscriber.py | itk-thrivaldi/thrivaldi_examples | 7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd | [
"Apache-2.0"
] | null | null | null | simple_joint_subscriber/scripts/joint_subscriber.py | itk-thrivaldi/thrivaldi_examples | 7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd | [
"Apache-2.0"
] | 1 | 2017-12-14T14:04:24.000Z | 2017-12-14T16:58:05.000Z | simple_joint_subscriber/scripts/joint_subscriber.py | itk-thrivaldi/thrivaldi_examples | 7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import rospy # For all things ros with python
# JointState is defined in sensor_msgs.msg
# If you know a message but not where it is
# call rosmsg info MSGNAME from the terminal
from sensor_msgs.msg import JointState
# This tutorial takes heavily from
# http://wiki.ros.org/ROS/Tutorials/WritingP... | 34.875 | 79 | 0.7319 | 197 | 1,395 | 5.076142 | 0.558376 | 0.039 | 0.026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194982 | 1,395 | 39 | 80 | 35.769231 | 0.890472 | 0.658781 | 0 | 0 | 0 | 0 | 0.133183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
7b0bcb46e200df6f78d9fe78eb07f700564fadd3 | 4,084 | py | Python | csv_to_table.py | canary-for-cognition/multimodal-ml-framework | 379963e2815165b28a28c983d32dd17656fba9a9 | [
"MIT"
] | 1 | 2021-11-10T10:28:01.000Z | 2021-11-10T10:28:01.000Z | csv_to_table.py | canary-for-cognition/multimodal-ml-framework | 379963e2815165b28a28c983d32dd17656fba9a9 | [
"MIT"
] | null | null | null | csv_to_table.py | canary-for-cognition/multimodal-ml-framework | 379963e2815165b28a28c983d32dd17656fba9a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
# import pylatex
from pylatex import Document, Section, Tabular, Math, Axis, Subsection
import pandas as pd
import sys
import os
def main():
pm = u"\u00B1"
filename = sys.argv[1]
results = pd.read_csv(filename+'.csv')
cols = results.col... | 51.696203 | 131 | 0.578355 | 488 | 4,084 | 4.754098 | 0.256148 | 0.094828 | 0.080603 | 0.118534 | 0.3125 | 0.243103 | 0.228448 | 0.108621 | 0 | 0 | 0 | 0.011698 | 0.225514 | 4,084 | 78 | 132 | 52.358974 | 0.721783 | 0.027669 | 0 | 0.065574 | 0 | 0 | 0.160061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.081967 | 0 | 0.098361 | 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 | 0 | 0 | 1 | 0 |
7b0d0466817dc17050d1085421ef9276feb2fb86 | 2,803 | py | Python | torch_audioset/vggish/model.py | Guillaume-oso/torch_audioset | e8852c53becef811784754a2de9c4617d8db2156 | [
"MIT"
] | 26 | 2020-03-25T21:19:33.000Z | 2022-02-01T15:14:29.000Z | torch_audioset/vggish/model.py | Guillaume-oso/torch_audioset | e8852c53becef811784754a2de9c4617d8db2156 | [
"MIT"
] | 7 | 2020-05-31T07:57:05.000Z | 2021-12-23T10:16:55.000Z | torch_audioset/vggish/model.py | Guillaume-oso/torch_audioset | e8852c53becef811784754a2de9c4617d8db2156 | [
"MIT"
] | 8 | 2020-10-27T16:22:55.000Z | 2022-03-28T22:48:07.000Z | import os.path as osp
import yaml
import torch.nn as nn
from torch import hub
__all__ = ['get_vggish', 'vggish_category_metadata']
model_urls = {
'vggish': "https://github.com/w-hc/vggish/releases/download/v0.1/vggish_orig.pth",
'vggish_with_classifier': "https://github.com/w-hc/vggish/releases/download/v0.1... | 29.197917 | 112 | 0.576882 | 373 | 2,803 | 4.126005 | 0.351206 | 0.02729 | 0.051982 | 0.023392 | 0.128655 | 0.096166 | 0.096166 | 0.062378 | 0.062378 | 0.062378 | 0 | 0.03672 | 0.29076 | 2,803 | 95 | 113 | 29.505263 | 0.737425 | 0.081698 | 0 | 0.169014 | 0 | 0.028169 | 0.10782 | 0.03594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.056338 | 0 | 0.253521 | 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 | 0 | 0 | 1 | 0 |
7b0d272861a3704f10e9a92801a2d879819c1a06 | 12,584 | py | Python | common/cuchemcommon/data/helper/chembldata.py | dorukozturk/cheminformatics | c0fa66dd4f4e6650d7286ae2be533c66b7a2b270 | [
"Apache-2.0"
] | null | null | null | common/cuchemcommon/data/helper/chembldata.py | dorukozturk/cheminformatics | c0fa66dd4f4e6650d7286ae2be533c66b7a2b270 | [
"Apache-2.0"
] | null | null | null | common/cuchemcommon/data/helper/chembldata.py | dorukozturk/cheminformatics | c0fa66dd4f4e6650d7286ae2be533c66b7a2b270 | [
"Apache-2.0"
] | null | null | null | import os
import warnings
import pandas
import sqlite3
import logging
from typing import List
from dask import delayed, dataframe
from contextlib import closing
from cuchemcommon.utils.singleton import Singleton
from cuchemcommon.context import Context
warnings.filterwarnings("ignore", message=r"deprecated", categor... | 39.202492 | 101 | 0.565559 | 1,398 | 12,584 | 4.912732 | 0.175966 | 0.030577 | 0.020821 | 0.03145 | 0.533925 | 0.50131 | 0.459377 | 0.444525 | 0.425451 | 0.385993 | 0 | 0.005983 | 0.335903 | 12,584 | 320 | 102 | 39.325 | 0.815843 | 0.112127 | 0 | 0.452174 | 0 | 0 | 0.348969 | 0.002474 | 0.004348 | 0 | 0 | 0.003125 | 0 | 1 | 0.056522 | false | 0 | 0.043478 | 0 | 0.152174 | 0.013043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b15f666dd8b6c5e2030f1efa5c2aa16458ac78c | 14,567 | py | Python | workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py | sykang808/aws-well-architected-labs-kor | da021a9f7501088f871b08560673deac4488eef4 | [
"Apache-2.0"
] | null | null | null | workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py | sykang808/aws-well-architected-labs-kor | da021a9f7501088f871b08560673deac4488eef4 | [
"Apache-2.0"
] | null | null | null | workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py | sykang808/aws-well-architected-labs-kor | da021a9f7501088f871b08560673deac4488eef4 | [
"Apache-2.0"
] | null | null | null | #
# MIT No Attribution
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify,
# merge, publish, distribute, subli... | 39.800546 | 139 | 0.674126 | 1,697 | 14,567 | 5.608132 | 0.226282 | 0.023117 | 0.04203 | 0.062204 | 0.341284 | 0.281917 | 0.166334 | 0.129873 | 0.097089 | 0.088894 | 0 | 0.00848 | 0.214732 | 14,567 | 365 | 140 | 39.909589 | 0.823499 | 0.125283 | 0 | 0.276364 | 0 | 0.003636 | 0.278101 | 0.038177 | 0 | 0 | 0 | 0 | 0.014545 | 1 | 0.04 | false | 0.010909 | 0.029091 | 0.003636 | 0.123636 | 0.010909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b17163e98fca69e6d9d2a2ecd44f5b5e78cfd5c | 6,095 | py | Python | Coursework 2/nn_preprocess.py | martinferianc/Pattern-Recognition-EIE4 | 412d437582b236dadd81c0621935f6b3bd5dbad5 | [
"MIT"
] | 1 | 2019-08-20T11:17:56.000Z | 2019-08-20T11:17:56.000Z | Coursework 2/nn_preprocess.py | martinferianc/Pattern-Recognition-EIE4 | 412d437582b236dadd81c0621935f6b3bd5dbad5 | [
"MIT"
] | null | null | null | Coursework 2/nn_preprocess.py | martinferianc/Pattern-Recognition-EIE4 | 412d437582b236dadd81c0621935f6b3bd5dbad5 | [
"MIT"
] | null | null | null | import numpy as np
# For file manipulation and locating
import os
# For the progress bar
from tqdm import tqdm
# To create a deep copy of the data
import copy
# To load the pre-processed and split data
from pre_process import load_data as ld
# For normalization of the samples
from sklearn.preprocessing import normalize... | 33.674033 | 164 | 0.642986 | 847 | 6,095 | 4.42621 | 0.217237 | 0.028007 | 0.024006 | 0.032009 | 0.421179 | 0.327287 | 0.267805 | 0.249933 | 0.240331 | 0.157109 | 0 | 0.01701 | 0.26694 | 6,095 | 180 | 165 | 33.861111 | 0.822068 | 0.263495 | 0 | 0.212766 | 0 | 0 | 0.06509 | 0.01077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.06383 | 0 | 0.12766 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b180f7965af3a7127ae86b77bf7384badafe436 | 776 | py | Python | src/main.py | M10han/image-scores | 509e2e9f9d3a484631a97a2e025849c266f71c43 | [
"MIT"
] | null | null | null | src/main.py | M10han/image-scores | 509e2e9f9d3a484631a97a2e025849c266f71c43 | [
"MIT"
] | 1 | 2021-06-08T21:41:19.000Z | 2021-06-08T21:41:19.000Z | src/main.py | M10han/image-scores | 509e2e9f9d3a484631a97a2e025849c266f71c43 | [
"MIT"
] | null | null | null | import pandas as pd
import time
from image_matcher import read_image, bjorn_score
def main(data_location='../data/', data_file='input.csv'):
df = pd.read_csv(data_location + data_file)
score_list, runtime_list = [], []
for idx, row in df.iterrows():
image1_file, image2_file = data_location + \
... | 26.758621 | 58 | 0.643041 | 104 | 776 | 4.490385 | 0.394231 | 0.102784 | 0.068522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018487 | 0.233247 | 776 | 28 | 59 | 27.714286 | 0.766387 | 0 | 0 | 0 | 0 | 0 | 0.081186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 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 | 0 | 0 | 1 | 0 |
7b1bfc88d4da28ede06e1a7e0dc3ba09c6ec9cb9 | 3,081 | py | Python | openstates/openstates-master/openstates/ia/__init__.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ia/__init__.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ia/__init__.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | import re
import datetime
import lxml.html
import requests
from billy.utils.fulltext import text_after_line_numbers
from .bills import IABillScraper
from .legislators import IALegislatorScraper
from .events import IAEventScraper
from .votes import IAVoteScraper
# Silencing unverified HTTPS request warnings.
requests.p... | 29.066038 | 72 | 0.563778 | 320 | 3,081 | 5.296875 | 0.415625 | 0.132743 | 0.023009 | 0.035398 | 0.189381 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0.08196 | 0.291139 | 3,081 | 105 | 73 | 29.342857 | 0.694139 | 0.024343 | 0 | 0.064516 | 0 | 0 | 0.318015 | 0.019314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b204556097cfdfd3ff88e8d7bc8bf1337b3e12c | 660 | py | Python | server/main.py | DarthBenro008/gh-release-paniker | 757845b1eebef9d2219c88706fd4277f4261391f | [
"MIT"
] | 5 | 2021-12-08T06:37:33.000Z | 2021-12-20T17:17:18.000Z | server/main.py | DarthBenro008/gh-release-paniker | 757845b1eebef9d2219c88706fd4277f4261391f | [
"MIT"
] | null | null | null | server/main.py | DarthBenro008/gh-release-paniker | 757845b1eebef9d2219c88706fd4277f4261391f | [
"MIT"
] | null | null | null | from typing import Optional
from fastapi import FastAPI
app = FastAPI()
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
LED=21
BUZZER=23
GPIO.setup(LED,GPIO.OUT)
def panikMode():
print("Entering PanikMode")
GPIO.output(LED,GPIO.HIGH)
GPIO.output(BUZZER,GPIO.HIGH)
... | 16.5 | 33 | 0.672727 | 89 | 660 | 4.977528 | 0.449438 | 0.090293 | 0.085779 | 0.099323 | 0.117381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007286 | 0.168182 | 660 | 40 | 34 | 16.5 | 0.799636 | 0 | 0 | 0 | 0 | 0 | 0.114977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0.034483 | 0.413793 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b20674499d7148c6a6ca240f5128fad607757fd | 8,656 | py | Python | virtual/lib/python3.10/site-packages/bootstrap_py/tests/test_package.py | alex-mu/Moringa-blog | 430ab9c1f43f2f0066369433ac3f60c41a51a01c | [
"MIT"
] | null | null | null | virtual/lib/python3.10/site-packages/bootstrap_py/tests/test_package.py | alex-mu/Moringa-blog | 430ab9c1f43f2f0066369433ac3f60c41a51a01c | [
"MIT"
] | 7 | 2021-03-30T14:10:56.000Z | 2022-03-12T00:43:13.000Z | virtual/lib/python3.6/site-packages/bootstrap_py/tests/test_package.py | sarahsindet/pitch | c7a4256e19c9a250b6d88d085699a34f508eb86b | [
"Unlicense",
"MIT"
] | 1 | 2021-08-19T06:07:23.000Z | 2021-08-19T06:07:23.000Z | # -*- coding: utf-8 -*-
"""bootstrap_py.tests.test_package."""
import unittest
import os
import shutil
import tempfile
from glob import glob
from datetime import datetime
from mock import patch
from bootstrap_py import package
from bootstrap_py.tests.stub import stub_request_metadata
# pylint: disable=too-few-public-... | 42.019417 | 79 | 0.586992 | 1,070 | 8,656 | 4.595327 | 0.135514 | 0.054098 | 0.076063 | 0.06569 | 0.576164 | 0.529184 | 0.478544 | 0.455359 | 0.41265 | 0.377466 | 0 | 0.009107 | 0.26421 | 8,656 | 205 | 80 | 42.22439 | 0.762914 | 0.080291 | 0 | 0.393548 | 0 | 0 | 0.107829 | 0.013367 | 0 | 0 | 0 | 0.004878 | 0.335484 | 1 | 0.109677 | false | 0 | 0.058065 | 0 | 0.187097 | 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 | 0 | 0 | 1 | 0 |
7b20cd11ee3f48070fe24a5a912f30b91ada5d46 | 1,175 | py | Python | utils/migrate_cmds_idx_32bit.py | jzuhone/kadi | de4885327d256e156cfe42b2b1700775f5b4d6cf | [
"BSD-3-Clause"
] | 1 | 2015-07-30T18:33:14.000Z | 2015-07-30T18:33:14.000Z | utils/migrate_cmds_idx_32bit.py | jzuhone/kadi | de4885327d256e156cfe42b2b1700775f5b4d6cf | [
"BSD-3-Clause"
] | 104 | 2015-01-20T18:44:36.000Z | 2022-03-29T18:51:55.000Z | utils/migrate_cmds_idx_32bit.py | jzuhone/kadi | de4885327d256e156cfe42b2b1700775f5b4d6cf | [
"BSD-3-Clause"
] | 2 | 2018-08-23T02:36:08.000Z | 2020-03-13T19:24:36.000Z | from pathlib import Path
import numpy as np
import tables
# Use snapshot from aug08 before the last update that broke things.
with tables.open_file('cmds_aug08.h5') as h5:
cmds = h5.root.data[:]
print(cmds.dtype)
# [('idx', '<u2'), ('date', 'S21'), ('type', 'S12'), ('tlmsid', 'S10'),
# ('scs', 'u1'), ('step', '<... | 31.756757 | 85 | 0.613617 | 183 | 1,175 | 3.836066 | 0.36612 | 0.068376 | 0.059829 | 0.076923 | 0.407407 | 0.376068 | 0.307692 | 0.307692 | 0.307692 | 0.307692 | 0 | 0.043744 | 0.163404 | 1,175 | 36 | 86 | 32.638889 | 0.670397 | 0.228085 | 0 | 0.173913 | 0 | 0 | 0.126386 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b21a08900385c33387348bb5cf7b32f2eca5c0f | 579 | py | Python | 1_estrutura_sequencial/18_velocidade_download.py | cecilmalone/lista_de_exercicios_pybr | 6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5 | [
"MIT"
] | null | null | null | 1_estrutura_sequencial/18_velocidade_download.py | cecilmalone/lista_de_exercicios_pybr | 6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5 | [
"MIT"
] | null | null | null | 1_estrutura_sequencial/18_velocidade_download.py | cecilmalone/lista_de_exercicios_pybr | 6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5 | [
"MIT"
] | null | null | null | """
18. Faça um programa que peça o tamanho de um arquivo para download (em MB) e
a velocidade de um link de Internet (em Mbps), calcule e informe o tempo
aproximado de download do arquivo usando este link (em minutos).
"""
mb_arquivo = float(input('Informe o tamanho de um arquivo para download (em MB): '))
mbps_lin... | 38.6 | 91 | 0.753022 | 93 | 579 | 4.602151 | 0.397849 | 0.028037 | 0.046729 | 0.056075 | 0.257009 | 0.163551 | 0.163551 | 0.163551 | 0.163551 | 0 | 0 | 0.008264 | 0.164076 | 579 | 14 | 92 | 41.357143 | 0.876033 | 0.374784 | 0 | 0 | 0 | 0 | 0.478754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b2304794deb520b2f5f87d0e37dcca35db22896 | 4,802 | py | Python | src/rte_pac/train_pyramid.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 5 | 2019-11-08T09:17:07.000Z | 2022-01-25T19:37:06.000Z | src/rte_pac/train_pyramid.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 18 | 2020-01-28T22:17:34.000Z | 2022-03-11T23:57:22.000Z | src/rte_pac/train_pyramid.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 1 | 2021-03-08T12:02:24.000Z | 2021-03-08T12:02:24.000Z | import argparse
import pickle
import os
import json
from sklearn.metrics import confusion_matrix
from utils.data_reader import embed_data_sets_with_glove, embed_data_set_given_vocab, prediction_2_label
from utils.text_processing import vocab_map
from common.util.log_helper import LogHelper
from deep_models.MatchPyramid... | 52.195652 | 139 | 0.641399 | 629 | 4,802 | 4.667727 | 0.246423 | 0.038147 | 0.063692 | 0.021798 | 0.230586 | 0.13624 | 0.032016 | 0.032016 | 0.032016 | 0.032016 | 0 | 0.005682 | 0.230321 | 4,802 | 91 | 140 | 52.769231 | 0.78869 | 0.024157 | 0 | 0.160494 | 0 | 0 | 0.189103 | 0.020085 | 0 | 0 | 0 | 0 | 0.049383 | 1 | 0.012346 | false | 0 | 0.111111 | 0.012346 | 0.135802 | 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 | 0 | 0 | 1 | 0 |
7b2354c08ba6d3f70427aa659e1ba9d3a3e03c13 | 854 | py | Python | annotation/helpers/helpers/extract_noise.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T09:05:11.000Z | 2022-01-24T00:48:22.000Z | annotation/helpers/helpers/extract_noise.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T19:12:10.000Z | 2022-02-08T14:46:34.000Z | annotation/helpers/helpers/extract_noise.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 25 | 2020-08-07T20:03:08.000Z | 2022-03-16T07:33:25.000Z | import shutil, os, random
from pydub import AudioSegment
try:
os.mkdir('noise')
except:
shutil.rmtree('noise')
os.mkdir('noise')
def extract_noise(filename, length):
song = AudioSegment.from_mp3(filename)
first = song[100:100+length]
first.export(filename[0:-4]+'_noise.mp3')
shutil.move(os.getcwd()+'/'+filename[... | 27.548387 | 108 | 0.688525 | 134 | 854 | 4.343284 | 0.358209 | 0.068729 | 0.051546 | 0.07732 | 0.237113 | 0.120275 | 0.120275 | 0.120275 | 0.120275 | 0.120275 | 0 | 0.04047 | 0.103045 | 854 | 30 | 109 | 28.466667 | 0.719321 | 0 | 0 | 0.266667 | 0 | 0 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b248b5ee36bb65d830c7b56e66b0b390aa45baa | 1,030 | py | Python | ARMODServers/Apps/Apiv2/urls.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | 1 | 2021-11-04T09:03:27.000Z | 2021-11-04T09:03:27.000Z | ARMODServers/Apps/Apiv2/urls.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | ARMODServers/Apps/Apiv2/urls.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from Apps.Apiv2.views import GetARResourcesView, GetARExperienceDetailView
from Apps.Apiv2.views import GetTagListView,GetARExperienceRecommendList,GetARExperiencePublicListView,GetARExperiencesView
from Apps.Apiv2.views import GetARexperienceByTagsListView
app_name = 'Apps.Users'
urlp... | 60.588235 | 123 | 0.794175 | 91 | 1,030 | 8.901099 | 0.373626 | 0.034568 | 0.08642 | 0.066667 | 0.160494 | 0.071605 | 0 | 0 | 0 | 0 | 0 | 0.004233 | 0.082524 | 1,030 | 17 | 124 | 60.588235 | 0.85291 | 0.006796 | 0 | 0 | 0 | 0 | 0.272994 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 |
7b24aa6646e92566319ce68092ddf4db0af43da1 | 2,600 | py | Python | make.py | loicseguin/astronomie | b489d615adb136991ff3fc82ca06c4f6791ca8c6 | [
"BSD-2-Clause"
] | null | null | null | make.py | loicseguin/astronomie | b489d615adb136991ff3fc82ca06c4f6791ca8c6 | [
"BSD-2-Clause"
] | 7 | 2020-01-19T21:27:07.000Z | 2020-01-19T21:28:09.000Z | make.py | loicseguin/astronomie | b489d615adb136991ff3fc82ca06c4f6791ca8c6 | [
"BSD-2-Clause"
] | null | null | null | """Construit le site Explorer et comprendre l'Univers, incluant les diapositives
et le livre. Le logiciel Pandoc est utilisé pour obtenir des présentations
dans différents formats.
On peut construire tous les fichiers html avec la commande
$ python make.py
"""
import subprocess
import os
import sys
# Dossiers... | 30.232558 | 82 | 0.576154 | 317 | 2,600 | 4.62776 | 0.416404 | 0.02863 | 0.05317 | 0.0409 | 0.205862 | 0.08998 | 0.059986 | 0.059986 | 0.059986 | 0.059986 | 0 | 0.002163 | 0.288846 | 2,600 | 85 | 83 | 30.588235 | 0.791239 | 0.202692 | 0 | 0.172414 | 0 | 0 | 0.18591 | 0.022994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.051724 | 0 | 0.12069 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b26132c0d8b78762b805dd6438fa5d2c8d060b1 | 13,370 | py | Python | plotting/utils.py | plai-group/amortized-rejection-sampling | 1e85253ae1e6ef1c939e1c488e55f9d95ee48355 | [
"MIT"
] | null | null | null | plotting/utils.py | plai-group/amortized-rejection-sampling | 1e85253ae1e6ef1c939e1c488e55f9d95ee48355 | [
"MIT"
] | null | null | null | plotting/utils.py | plai-group/amortized-rejection-sampling | 1e85253ae1e6ef1c939e1c488e55f9d95ee48355 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from tqdm import tqdm
import matplotlib as mpl
# https://gist.github.com/thriveth/8560036
color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']
labels_dict = {"ic": "IC",
"prior": ... | 35.558511 | 128 | 0.618624 | 1,870 | 13,370 | 4.235829 | 0.227273 | 0.059336 | 0.01515 | 0.008332 | 0.292135 | 0.212094 | 0.203005 | 0.203005 | 0.180028 | 0.156925 | 0 | 0.02245 | 0.240389 | 13,370 | 376 | 129 | 35.558511 | 0.757483 | 0.287509 | 0 | 0.20297 | 0 | 0.004951 | 0.110347 | 0.015667 | 0 | 0 | 0 | 0 | 0.014851 | 1 | 0.113861 | false | 0 | 0.024752 | 0.019802 | 0.20297 | 0.029703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b28352f856a9eaa1fa2b24d293fcd81d28eb11c | 4,750 | py | Python | dfa/visualize.py | garyzhao/FRGAN | 8aeb064fc93b45d3d8e074c5253b4f7a287582f4 | [
"Apache-2.0"
] | 39 | 2018-07-28T04:37:48.000Z | 2022-01-20T18:34:37.000Z | dfa/visualize.py | garyzhao/FRGAN | 8aeb064fc93b45d3d8e074c5253b4f7a287582f4 | [
"Apache-2.0"
] | 2 | 2018-08-27T08:19:22.000Z | 2019-08-16T09:15:34.000Z | dfa/visualize.py | garyzhao/FRGAN | 8aeb064fc93b45d3d8e074c5253b4f7a287582f4 | [
"Apache-2.0"
] | 8 | 2018-07-31T09:33:49.000Z | 2020-12-06T10:16:53.000Z | from __future__ import division
from __future__ import print_function
import numpy as np
import cv2
import matplotlib.pyplot as plt
from .face import compute_bbox_size
end_list = np.array([17, 22, 27, 42, 48, 31, 36, 68], dtype=np.int32) - 1
def plot_kpt(image, kpt):
''' Draw 68 key points
Args:
ima... | 35.714286 | 129 | 0.573895 | 720 | 4,750 | 3.629167 | 0.259722 | 0.050899 | 0.049751 | 0.055109 | 0.316877 | 0.252966 | 0.244164 | 0.244164 | 0.224646 | 0.224646 | 0 | 0.07013 | 0.270526 | 4,750 | 132 | 130 | 35.984848 | 0.683983 | 0.098526 | 0 | 0.086957 | 0 | 0 | 0.019664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.141304 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7b2c3dcb95bb9538fdb4cb9f25daeb1cf42bc3eb | 875 | py | Python | cocos/tests/test_numerics/test_statistics/test_mean.py | michaelnowotny/cocos | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | [
"MIT"
] | 101 | 2019-03-30T05:23:01.000Z | 2021-11-27T09:09:40.000Z | cocos/tests/test_numerics/test_statistics/test_mean.py | michaelnowotny/cocos | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | [
"MIT"
] | 3 | 2019-04-17T06:04:12.000Z | 2020-12-14T17:36:01.000Z | cocos/tests/test_numerics/test_statistics/test_mean.py | michaelnowotny/cocos | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | [
"MIT"
] | 5 | 2020-02-07T14:29:50.000Z | 2020-12-09T17:54:07.000Z | import cocos.device
import cocos.numerics as cn
import numpy as np
import pytest
test_data = [np.array([[1, 2, 3], [4, 5, 6], [7, 8, 20]],
dtype=np.int32),
np.array([[0.2, 1.0, 0.5], [0.4, 0.5, 0.6], [0.7, 0.2, 0.25]],
dtype=np.float32),
np.array([... | 26.515152 | 80 | 0.537143 | 149 | 875 | 3.087248 | 0.295302 | 0.097826 | 0.06087 | 0.095652 | 0.232609 | 0.167391 | 0.117391 | 0 | 0 | 0 | 0 | 0.088468 | 0.276571 | 875 | 32 | 81 | 27.34375 | 0.638231 | 0.121143 | 0 | 0 | 0 | 0 | 0.001319 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.058824 | false | 0 | 0.235294 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b332b95f4298d84e9d671c6d88abc96e79fcae6 | 7,145 | py | Python | cheshire3/parser.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 3 | 2015-08-02T09:03:28.000Z | 2017-12-06T09:26:14.000Z | cheshire3/parser.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 5 | 2015-08-17T01:16:35.000Z | 2015-09-16T21:51:27.000Z | cheshire3/parser.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 6 | 2015-05-17T15:32:20.000Z | 2020-04-22T08:43:16.000Z |
import cStringIO
import StringIO
from xml.sax import make_parser, ErrorHandler, SAXParseException
from xml.sax import InputSource as SaxInput
from xml.dom.minidom import parseString as domParseString
from xml.parsers.expat import ExpatError
from lxml import etree
from cheshire3.baseObjects import Parser
from cheshir... | 31.065217 | 77 | 0.588383 | 759 | 7,145 | 5.467721 | 0.300395 | 0.034458 | 0.030361 | 0.037108 | 0.256867 | 0.220241 | 0.18988 | 0.155663 | 0.136867 | 0.113735 | 0 | 0.004477 | 0.312246 | 7,145 | 229 | 78 | 31.200873 | 0.840049 | 0.088873 | 0 | 0.323864 | 0 | 0 | 0.076947 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 1 | 0.0625 | false | 0.017045 | 0.068182 | 0.005682 | 0.238636 | 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 | 0 | 0 | 1 | 0 |
9e26ff289e7c1f363b136e3f4b93da4585664e71 | 6,275 | py | Python | scripts/checkpT_curv.py | masamuch/hepqpr-qallse | 0b39f8531c6f3c758b94c31f4633f75dcfeb67ad | [
"Apache-2.0"
] | null | null | null | scripts/checkpT_curv.py | masamuch/hepqpr-qallse | 0b39f8531c6f3c758b94c31f4633f75dcfeb67ad | [
"Apache-2.0"
] | null | null | null | scripts/checkpT_curv.py | masamuch/hepqpr-qallse | 0b39f8531c6f3c758b94c31f4633f75dcfeb67ad | [
"Apache-2.0"
] | null | null | null | from hepqpr.qallse import *
from hepqpr.qallse.plotting import *
from hepqpr.qallse.cli.func import time_this
import time
import pickle
# import the method
from hepqpr.qallse.dsmaker import create_dataset
modelName = "D0"
#modelName = "Mp"
#modelName = "Doublet"
maxTry=1
# 5e-3 : 167 MeV
# 8e-4 : 1.04 GeV
varDen... | 35.055866 | 140 | 0.577211 | 824 | 6,275 | 4.258495 | 0.229369 | 0.056996 | 0.050157 | 0.019949 | 0.240809 | 0.169849 | 0.075235 | 0.069535 | 0.053577 | 0.053577 | 0 | 0.031452 | 0.285578 | 6,275 | 178 | 141 | 35.252809 | 0.751283 | 0.07012 | 0 | 0.106061 | 0 | 0 | 0.127645 | 0.021159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113636 | 0 | 0.113636 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
9e287d153cff7385984c9cc16aca63539ed882d4 | 3,382 | py | Python | api/views/movies.py | iamvukasin/filminds | 54c9d7175f3a06f411cc750a694758bd683af1ee | [
"MIT"
] | 2 | 2019-06-15T01:40:04.000Z | 2019-12-19T05:11:17.000Z | api/views/movies.py | iamvukasin/filminds | 54c9d7175f3a06f411cc750a694758bd683af1ee | [
"MIT"
] | 1 | 2021-03-09T05:22:51.000Z | 2021-03-09T05:22:51.000Z | api/views/movies.py | iamvukasin/filminds | 54c9d7175f3a06f411cc750a694758bd683af1ee | [
"MIT"
] | 2 | 2019-06-24T19:24:25.000Z | 2020-05-29T13:57:35.000Z | from abc import ABC, abstractmethod
import tmdbsimple as tmdb
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.utils.decorators import method_decorator
from rest_framework.response import Response
from rest_framework.views import APIView
from api.serializers import... | 27.274194 | 119 | 0.646363 | 411 | 3,382 | 5.192214 | 0.326034 | 0.022493 | 0.032802 | 0.028116 | 0.31537 | 0.278351 | 0.265698 | 0.223524 | 0.223524 | 0.176195 | 0 | 0.007692 | 0.269663 | 3,382 | 123 | 120 | 27.495935 | 0.856275 | 0.181549 | 0 | 0.28125 | 0 | 0 | 0.054287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.015625 | 0.140625 | 0 | 0.359375 | 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 | 0 | 0 | 1 | 0 |
9e29911c2cf893692ea46e7dbded4b692a9e33a0 | 3,853 | py | Python | apps/lk/views.py | DaniilGorokhov/CaloryHelper | 6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51 | [
"MIT"
] | null | null | null | apps/lk/views.py | DaniilGorokhov/CaloryHelper | 6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51 | [
"MIT"
] | null | null | null | apps/lk/views.py | DaniilGorokhov/CaloryHelper | 6bf5ddce85479508b6498c3e4b2e0f4e5dd01b51 | [
"MIT"
] | 1 | 2021-02-15T17:40:23.000Z | 2021-02-15T17:40:23.000Z | from django.shortcuts import render
from django.http import Http404, HttpResponseRedirect
from django.urls import reverse
from apps.index.models import User, UserHistory
from sova_avia.settings import MEDIA_ROOT
from imageai.Prediction import ImagePrediction
import json
from .models import Article
from .forms import ... | 35.675926 | 125 | 0.659227 | 426 | 3,853 | 5.819249 | 0.267606 | 0.119806 | 0.090359 | 0.07261 | 0.376361 | 0.318677 | 0.275111 | 0.260186 | 0.217426 | 0.161355 | 0 | 0.007631 | 0.217752 | 3,853 | 107 | 126 | 36.009346 | 0.814864 | 0.102777 | 0 | 0.194444 | 0 | 0 | 0.127974 | 0.01538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0.027778 | 0.125 | 0 | 0.347222 | 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 | 0 | 0 | 1 | 0 |
9e2d53249be23d06d560e65260043ec473bab942 | 1,159 | py | Python | setup.py | CZ-NIC/deckard | 35ed3c59b27c52fc2e3a187679251353f5efe6c0 | [
"BSD-2-Clause"
] | 30 | 2016-08-06T20:56:17.000Z | 2021-12-13T07:56:23.000Z | setup.py | CZ-NIC/deckard | 35ed3c59b27c52fc2e3a187679251353f5efe6c0 | [
"BSD-2-Clause"
] | 6 | 2016-05-31T10:48:51.000Z | 2018-07-03T09:05:12.000Z | setup.py | CZ-NIC/deckard | 35ed3c59b27c52fc2e3a187679251353f5efe6c0 | [
"BSD-2-Clause"
] | 10 | 2016-04-03T13:55:19.000Z | 2020-11-28T01:23:49.000Z | #!/usr/bin/env python3
from distutils.core import setup
version = '3.0'
setup(
name='deckard',
version=version,
description='DNS toolkit',
long_description=(
"Deckard is a DNS software testing based on library pydnstest."
"It supports parsing and running Unbound-like test scenarios,"
... | 31.324324 | 71 | 0.609146 | 127 | 1,159 | 5.527559 | 0.669291 | 0.055556 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011521 | 0.251079 | 1,159 | 36 | 72 | 32.194444 | 0.797235 | 0.018119 | 0 | 0 | 0 | 0 | 0.583993 | 0.023747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 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 | 0 | 0 | 1 | 0 |
9e301c912b42abb46c781523b9340a9c6ccd01d4 | 13,317 | py | Python | source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py | aws-samples/aws-media-replay-engine-samples | d9b479f3c7da87c8b6d2a265334a6d3aae58d885 | [
"MIT-0"
] | 4 | 2022-02-03T17:23:19.000Z | 2022-03-16T13:13:09.000Z | source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py | aws-samples/aws-media-replay-engine-samples | d9b479f3c7da87c8b6d2a265334a6d3aae58d885 | [
"MIT-0"
] | 1 | 2022-02-22T01:25:57.000Z | 2022-03-10T21:27:31.000Z | source/mre-plugin-samples/Plugins/DetectShotsByRekognitionVideo/DetectShotsByRekognitionVideo.py | aws-samples/aws-media-replay-engine-samples | d9b479f3c7da87c8b6d2a265334a6d3aae58d885 | [
"MIT-0"
] | 1 | 2022-02-16T02:23:43.000Z | 2022-02-16T02:23:43.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import boto3
import json
import sys
import time
import ffmpeg
from MediaReplayEnginePluginHelper import OutputHelper
from MediaReplayEnginePluginHelper import Status
from MediaReplayEnginePluginHelper import DataPlane... | 39.283186 | 139 | 0.535181 | 1,139 | 13,317 | 6.152766 | 0.296752 | 0.023973 | 0.019692 | 0.012842 | 0.158676 | 0.147831 | 0.143836 | 0.143836 | 0.143836 | 0.143836 | 0 | 0.008759 | 0.348427 | 13,317 | 338 | 140 | 39.399408 | 0.798894 | 0.086431 | 0 | 0.15444 | 0 | 0 | 0.21319 | 0.077988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.030888 | 0 | 0.119691 | 0.196911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e316afea9883b374b2578dfd94ecad511320c5f | 1,567 | py | Python | chempy/kinetics/tests/test_integrated.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | null | null | null | chempy/kinetics/tests/test_integrated.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | null | null | null | chempy/kinetics/tests/test_integrated.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import division
from chempy.util.testing import requires
from ..integrated import pseudo_irrev, pseudo_rev, binary_irrev, binary_rev
import pytest
try:
import sympy
except ImportError:
sympy = None
else:
one = sympy.S(1)
t, kf, kb, prod, major, minor = sympy.symbols(
't kf kb... | 27.017241 | 81 | 0.640715 | 240 | 1,567 | 4.066667 | 0.258333 | 0.057377 | 0.086066 | 0.036885 | 0.589139 | 0.544057 | 0.449795 | 0.449795 | 0.449795 | 0.449795 | 0 | 0.012019 | 0.203574 | 1,567 | 57 | 82 | 27.491228 | 0.770032 | 0.017869 | 0 | 0.325581 | 0 | 0 | 0.028627 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.093023 | false | 0 | 0.139535 | 0 | 0.232558 | 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 | 0 | 0 | 1 | 0 |
9e36f2c784f6f44bd775bdedd2272a8be3601516 | 525 | py | Python | src/response.py | vcokltfre/snowflake.vcokltf.re | 5b8324a4fbc2e512dbc263d4ed65edb89d72a549 | [
"MIT"
] | 1 | 2021-03-23T15:13:04.000Z | 2021-03-23T15:13:04.000Z | src/response.py | vcokltfre/snowflake.vcokltf.re | 5b8324a4fbc2e512dbc263d4ed65edb89d72a549 | [
"MIT"
] | null | null | null | src/response.py | vcokltfre/snowflake.vcokltf.re | 5b8324a4fbc2e512dbc263d4ed65edb89d72a549 | [
"MIT"
] | null | null | null | from starlette.responses import HTMLResponse
class ResponseBuilder:
def __init__(self):
self.items = []
def addtag(self, name: str, value: str):
self.items.append((name, value))
def build(self):
og_tags = ""
for item in self.items:
og_tags += f"\n<meta property... | 23.863636 | 82 | 0.485714 | 55 | 525 | 4.509091 | 0.581818 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.367619 | 525 | 21 | 83 | 25 | 0.740964 | 0 | 0 | 0 | 0 | 0 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e3a0239409f0db941b17e1b31a07a8a3ed673cb | 694 | py | Python | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 4 | 2019-11-15T15:21:27.000Z | 2020-07-08T15:04:30.000Z | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 9 | 2019-11-18T15:54:36.000Z | 2020-07-14T13:56:53.000Z | lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/Tools/clang.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 3 | 2021-01-25T15:41:30.000Z | 2021-09-21T08:51:36.000Z | #!/usr/bin/env python
# Krzysztof Kosiński 2014
"""
Detect the Clang C compiler
"""
from waflib.Configure import conf
from waflib.Tools import ar
from waflib.Tools import ccroot
from waflib.Tools import gcc
@conf
def find_clang(conf):
"""
Finds the program clang and executes it to ensure it really is clang
... | 22.387097 | 72 | 0.693084 | 106 | 694 | 4.367925 | 0.433962 | 0.086393 | 0.097192 | 0.136069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.184438 | 694 | 30 | 73 | 23.133333 | 0.810954 | 0.20317 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
9e3b5a48a7befde960b0ddd0c42b6f209d9a2b77 | 457 | py | Python | test_lambda_function.py | gavinbull/loyalty_anagram | a91d23083d8c040916733751932fb47d00592890 | [
"MIT"
] | null | null | null | test_lambda_function.py | gavinbull/loyalty_anagram | a91d23083d8c040916733751932fb47d00592890 | [
"MIT"
] | null | null | null | test_lambda_function.py | gavinbull/loyalty_anagram | a91d23083d8c040916733751932fb47d00592890 | [
"MIT"
] | null | null | null | import unittest
from lambda_function import gather_anagrams
class TestSum(unittest.TestCase):
def test_list_int(self):
"""
Basic unit test to verify anagram of cinema including upper+lower case
"""
test_word = "iceman"
get_result = gather_anagrams(test_word)
... | 28.5625 | 86 | 0.654267 | 52 | 457 | 5.423077 | 0.692308 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251641 | 457 | 15 | 87 | 30.466667 | 0.824561 | 0.153173 | 0 | 0 | 0 | 0 | 0.090141 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e3d9a4ab5c166e9fe2b7e4de49e51e3488a6de5 | 577 | py | Python | euler62.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | euler62.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | euler62.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | '''
Find the smallest cube for which exactly five permutations of its digits are cube.
'''
import math, itertools
print(math.pow(8, 1/3).is_integer())
tried = {}
for i in range(1000, 1200):
cb = int(math.pow(i, 3))
#print(cb)
#print(math.pow(int(cb), 1/3))
roots = 1
tried[i] = [str(cb)]
for x in itertools.permuta... | 21.37037 | 82 | 0.587522 | 106 | 577 | 3.188679 | 0.396226 | 0.08284 | 0.071006 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046256 | 0.213172 | 577 | 27 | 83 | 21.37037 | 0.698238 | 0.259965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
9e3eca14631d828c95eda787a3d066e5994ecfdb | 3,010 | py | Python | examples/reeds_problem.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | examples/reeds_problem.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | examples/reeds_problem.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | from ants.medium import MediumX
from ants.materials import Materials
from ants.mapper import Mapper
from ants.multi_group import source_iteration
import numpy as np
import matplotlib.pyplot as plt
def reeds(cells):
width = 16.
delta_x = width/cells
group = 1
boundaries = [slice(0,int(2/delta_x)),sli... | 29.80198 | 87 | 0.679734 | 514 | 3,010 | 3.805447 | 0.225681 | 0.055215 | 0.04499 | 0.05726 | 0.140082 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0.054033 | 0.151495 | 3,010 | 101 | 88 | 29.80198 | 0.711825 | 0.046512 | 0 | 0 | 0 | 0 | 0.044646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.084507 | 0 | 0.112676 | 0.098592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e40a4a7ae6fa13448f345e341c1c32845116799 | 29,411 | py | Python | exp_runner.py | BoifZ/NeuS | a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525 | [
"MIT"
] | null | null | null | exp_runner.py | BoifZ/NeuS | a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525 | [
"MIT"
] | null | null | null | exp_runner.py | BoifZ/NeuS | a2900fa5c0b2a9d54b9cb5b364440ee7eecfb525 | [
"MIT"
] | null | null | null | import os
import time
import logging
import argparse
import numpy as np
import cv2 as cv
import trimesh
import torch
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from shutil import copyfile
from icecream import ic
from tqdm import tqdm
from pyhocon import ConfigFactory
from models.d... | 47.590615 | 180 | 0.605352 | 3,826 | 29,411 | 4.356769 | 0.108207 | 0.023517 | 0.025916 | 0.019317 | 0.401344 | 0.328274 | 0.258624 | 0.207931 | 0.160837 | 0.127122 | 0 | 0.015732 | 0.278161 | 29,411 | 617 | 181 | 47.667747 | 0.76943 | 0.044643 | 0 | 0.156118 | 0 | 0 | 0.074344 | 0.012021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.046414 | 0.004219 | 0.099156 | 0.014768 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e44b7345e9261d66e37f31753ad1afb6577bc5f | 2,007 | py | Python | code/video-analiz/python/camshift.py | BASARIRR/computer-vision-guide | 0a11726fb2be0cad63738ab45fd4edc4515441d2 | [
"MIT"
] | 230 | 2019-01-17T01:00:53.000Z | 2022-03-31T18:00:09.000Z | code/video-analiz/python/camshift.py | sturlu/goruntu-isleme-kilavuzu | e9377ace3823ca5f2d06ca78a11884256539134d | [
"MIT"
] | 8 | 2019-05-03T07:44:50.000Z | 2022-02-10T00:14:38.000Z | code/video-analiz/python/camshift.py | sturlu/goruntu-isleme-kilavuzu | e9377ace3823ca5f2d06ca78a11884256539134d | [
"MIT"
] | 71 | 2019-01-17T12:11:06.000Z | 2022-03-03T22:02:46.000Z | #Python v3, OpenCV v3.4.2
import numpy as np
import cv2
videoCapture = cv2.VideoCapture("video.mp4")
ret,camera_input = videoCapture.read()
rows, cols = camera_input.shape[:2]
'''
Video dosyası üzerine Mean Shift için bir alan belirlenir.
Bu koordinatlar ağırlıklı ortalaması belirlenecek olan dörtgen alanıdır. '''
... | 32.901639 | 125 | 0.727454 | 274 | 2,007 | 5.255474 | 0.514599 | 0.045833 | 0.019444 | 0.036111 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045131 | 0.160937 | 2,007 | 61 | 126 | 32.901639 | 0.809976 | 0.103637 | 0 | 0.071429 | 0 | 0 | 0.042662 | 0 | 0 | 0 | 0.003413 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e459ba91afb3134b739b9c40e6c311ac98e5335 | 346 | py | Python | DTT_files/dtt.py | stecik/Directory_to_text | f93c76f820ff7dc39e213779115861e53ed6a266 | [
"MIT"
] | null | null | null | DTT_files/dtt.py | stecik/Directory_to_text | f93c76f820ff7dc39e213779115861e53ed6a266 | [
"MIT"
] | null | null | null | DTT_files/dtt.py | stecik/Directory_to_text | f93c76f820ff7dc39e213779115861e53ed6a266 | [
"MIT"
] | null | null | null | from dtt_class import DTT
from parser import args
if __name__ == "__main__":
dtt = DTT()
# Creates a list of files and subdirectories
try:
l = dtt.dir_to_list(args.directory, args)
# Creates a .txt file with the list
dtt.list_to_txt(args.output_file, l)
except Exception as e:
... | 28.833333 | 49 | 0.644509 | 53 | 346 | 3.943396 | 0.622642 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265896 | 346 | 12 | 50 | 28.833333 | 0.822835 | 0.219653 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e45b73d08315aaa5770ad5f620934e0e80ebd70 | 1,675 | py | Python | src/models/head.py | takedarts/DenseResNet | d5f9c143ed3c484436a2a5bac366c3795e5d47ec | [
"MIT"
] | null | null | null | src/models/head.py | takedarts/DenseResNet | d5f9c143ed3c484436a2a5bac366c3795e5d47ec | [
"MIT"
] | null | null | null | src/models/head.py | takedarts/DenseResNet | d5f9c143ed3c484436a2a5bac366c3795e5d47ec | [
"MIT"
] | null | null | null | import torch.nn as nn
import collections
class BasicHead(nn.Sequential):
def __init__(self, in_channels, out_channels, **kwargs):
super().__init__()
class PreActHead(nn.Sequential):
def __init__(self, in_channels, out_channels, normalization, activation, **kwargs):
super().__i... | 36.413043 | 93 | 0.605373 | 188 | 1,675 | 5.12766 | 0.271277 | 0.091286 | 0.118257 | 0.108921 | 0.681535 | 0.681535 | 0.681535 | 0.681535 | 0.642116 | 0.561203 | 0 | 0.021809 | 0.260896 | 1,675 | 45 | 94 | 37.222222 | 0.756866 | 0 | 0 | 0.34375 | 0 | 0 | 0.027607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 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 | 0 | 0 | 1 | 0 |
9e473c9d126543858d93cd7cc38a1863415d85a8 | 3,419 | py | Python | siam_tracker/models/train_wrappers/pairwise_wrapper.py | microsoft/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 28 | 2020-03-18T04:41:21.000Z | 2022-02-24T16:44:01.000Z | siam_tracker/models/train_wrappers/pairwise_wrapper.py | HengFan2010/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 1 | 2020-04-05T15:23:22.000Z | 2020-04-07T16:23:12.000Z | siam_tracker/models/train_wrappers/pairwise_wrapper.py | HengFan2010/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 11 | 2020-03-19T00:30:06.000Z | 2021-11-10T08:22:35.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import torch
from collections import OrderedDict
from ..builder import build_tracker, TRAIN_WRAPPERS
from ...datasets import TrainPairDataset, build_dataloader
from ...runner import Runner
from ...utils.parallel import MMDat... | 38.852273 | 99 | 0.623867 | 418 | 3,419 | 4.856459 | 0.344498 | 0.070936 | 0.023645 | 0.014778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001672 | 0.300088 | 3,419 | 87 | 100 | 39.298851 | 0.846636 | 0.150044 | 0 | 0.033898 | 0 | 0 | 0.031458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.118644 | 0 | 0.237288 | 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 | 0 | 0 | 1 | 0 |
9e4d5fb0fa81e143693d4b850e79279a83dcb058 | 622 | py | Python | preprocessed_data/RGHS/Code/S_model.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/RGHS/Code/S_model.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/RGHS/Code/S_model.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | import numpy as np
import pylab as pl
x = [] # Make an array of x values
y = [] # Make an array of y values for each x value
for i in range(-128,127):
x.append(i)
for j in range(-128,127):
temp = j *(2**(1 - abs((j/128))))
y.append(temp)
# print('y',y)
# pl.xlim(-128, 127)# set axis limits
# pl.ylim(... | 23.037037 | 66 | 0.639871 | 119 | 622 | 3.344538 | 0.478992 | 0.090452 | 0.055276 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093626 | 0.192926 | 622 | 27 | 67 | 23.037037 | 0.699203 | 0.360129 | 0 | 0 | 0 | 0 | 0.126289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 | 0 | 0 | 1 | 0 |
9e4db1ef4c553d26b23cdf167ecc2ec7e965d780 | 36,578 | py | Python | tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py | PhoenixTales/gothic-devk | 48193bef8fd37626f8909853bfc5ad4b7126f176 | [
"FSFAP"
] | 3 | 2021-04-13T07:12:30.000Z | 2021-06-18T17:26:10.000Z | tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py | PhoenixTales/gothic-devk | 48193bef8fd37626f8909853bfc5ad4b7126f176 | [
"FSFAP"
] | null | null | null | tools/Blender Stuff/Plugins/Gothic_MaT_Blender/1.3/Gothic_MaT_Blender_1_3.py | PhoenixTales/gothic-devk | 48193bef8fd37626f8909853bfc5ad4b7126f176 | [
"FSFAP"
] | 2 | 2021-03-23T19:45:39.000Z | 2021-04-17T17:21:48.000Z | bl_info = {
"name": "Gothic Materials and Textures Blender",
"description": "Makes life easier for Gothic material export",
"author": "Diego",
"version": (1, 3, 0),
"blender": (2, 78, 0),
"location": "3D View > Tools",
"warning": "", # used for warning icon and text in addons panel
... | 43.963942 | 194 | 0.561458 | 3,885 | 36,578 | 5.137194 | 0.133848 | 0.022046 | 0.020844 | 0.011424 | 0.322177 | 0.280689 | 0.242259 | 0.23339 | 0.205632 | 0.190951 | 0 | 0.006702 | 0.347285 | 36,578 | 832 | 195 | 43.963942 | 0.829236 | 0.205588 | 0 | 0.336134 | 0 | 0.001681 | 0.128926 | 0.02056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.005042 | 0.02521 | 0 | 0.189916 | 0.005042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e4e27c4f397f2c0b09121050df5d040566af2dd | 7,881 | py | Python | v1/GCRCatalogs/MB2GalaxyCatalog.py | adam-broussard/descqa | d9681bd393553c31882ec7e28e6c1c7b6e482dd3 | [
"BSD-3-Clause"
] | 4 | 2017-11-14T03:33:57.000Z | 2021-06-05T16:35:40.000Z | v1/GCRCatalogs/MB2GalaxyCatalog.py | adam-broussard/descqa | d9681bd393553c31882ec7e28e6c1c7b6e482dd3 | [
"BSD-3-Clause"
] | 136 | 2017-11-06T16:02:58.000Z | 2021-11-11T18:20:23.000Z | v1/GCRCatalogs/MB2GalaxyCatalog.py | adam-broussard/descqa | d9681bd393553c31882ec7e28e6c1c7b6e482dd3 | [
"BSD-3-Clause"
] | 31 | 2017-11-06T19:55:35.000Z | 2020-12-15T13:53:53.000Z | # Massive Black 2 galaxy catalog class
import numpy as np
from astropy.table import Table
import astropy.units as u
import astropy.cosmology
from .GalaxyCatalogInterface import GalaxyCatalog
class MB2GalaxyCatalog(GalaxyCatalog):
"""
Massive Black 2 galaxy catalog class.
"""
def __init__(self, **kwar... | 52.192053 | 134 | 0.53242 | 836 | 7,881 | 4.776316 | 0.248804 | 0.040321 | 0.072126 | 0.082645 | 0.399449 | 0.304783 | 0.151265 | 0.065615 | 0.065615 | 0.032557 | 0 | 0.014241 | 0.358457 | 7,881 | 150 | 135 | 52.54 | 0.775514 | 0.153534 | 0 | 0.058824 | 0 | 0 | 0.109676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.04902 | 0.009804 | 0.254902 | 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 | 0 | 0 | 1 | 0 |
9e4e87db0add45d330be3d156367bbd52e0ded32 | 714 | py | Python | skylernet/views.py | skylermishkin/skylernet | d715c69348c050d976ba7931127a576565b67ff1 | [
"MIT"
] | null | null | null | skylernet/views.py | skylermishkin/skylernet | d715c69348c050d976ba7931127a576565b67ff1 | [
"MIT"
] | null | null | null | skylernet/views.py | skylermishkin/skylernet | d715c69348c050d976ba7931127a576565b67ff1 | [
"MIT"
] | null | null | null | from django.shortcuts import get_object_or_404, render
from django.contrib.staticfiles.templatetags.staticfiles import static
def index(request):
return render(request, 'skylernet/landing.html')
def connect(request):
context = {'online_media': [{"name": 'LinkedIn',
'href': '... | 42 | 96 | 0.564426 | 67 | 714 | 5.955224 | 0.58209 | 0.050125 | 0.095238 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022044 | 0.30112 | 714 | 16 | 97 | 44.625 | 0.777555 | 0 | 0 | 0 | 0 | 0 | 0.305322 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e4f2abe49eca6572412ecb2672b250ab2b29afd | 1,217 | py | Python | specs/core.py | farleykr/acrylamid | c6c0f60b594d2920f6387ba82b552093d7c5fe1b | [
"BSD-2-Clause-FreeBSD"
] | 61 | 2015-01-15T23:23:11.000Z | 2022-03-24T16:39:31.000Z | specs/core.py | farleykr/acrylamid | c6c0f60b594d2920f6387ba82b552093d7c5fe1b | [
"BSD-2-Clause-FreeBSD"
] | 28 | 2015-01-26T22:32:24.000Z | 2022-01-13T01:11:56.000Z | specs/core.py | farleykr/acrylamid | c6c0f60b594d2920f6387ba82b552093d7c5fe1b | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2015-01-22T19:26:29.000Z | 2021-06-30T21:53:06.000Z | # -*- coding: utf-8 -*-
import attest
from acrylamid.core import cache
class Cache(attest.TestBase):
def __context__(self):
with attest.tempdir() as path:
self.path = path
cache.init(self.path)
yield
@attest.test
def persistence(self):
cache.init(self.p... | 23.862745 | 56 | 0.532457 | 147 | 1,217 | 4.380952 | 0.251701 | 0.136646 | 0.173913 | 0.158385 | 0.473602 | 0.473602 | 0.473602 | 0.473602 | 0.473602 | 0.301242 | 0 | 0.001152 | 0.286771 | 1,217 | 50 | 57 | 24.34 | 0.740783 | 0.017256 | 0 | 0.457143 | 0 | 0 | 0.126466 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.114286 | false | 0 | 0.057143 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e554dd387e1b98981fc98073b0b6ac0775be949 | 812 | py | Python | swcf/controllers/index.py | pratiwilestari/simpleWebContactForm | 56369daadb8130bb72c19ae8ee10ad590804c84d | [
"MIT"
] | null | null | null | swcf/controllers/index.py | pratiwilestari/simpleWebContactForm | 56369daadb8130bb72c19ae8ee10ad590804c84d | [
"MIT"
] | null | null | null | swcf/controllers/index.py | pratiwilestari/simpleWebContactForm | 56369daadb8130bb72c19ae8ee10ad590804c84d | [
"MIT"
] | null | null | null | from flask.helpers import flash
from flask.wrappers import Request
from swcf import app
from flask import render_template, redirect, request, url_for
from swcf.dao.indexDAO import *
@app.route("/", methods=['GET'])
def index():
return render_template("layout.html")
@app.route("/sendPost", methods=['POST'])
def se... | 31.230769 | 61 | 0.674877 | 100 | 812 | 5.44 | 0.49 | 0.080882 | 0.073529 | 0.095588 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181034 | 812 | 26 | 62 | 31.230769 | 0.818045 | 0 | 0 | 0.086957 | 0 | 0 | 0.190652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0.043478 | 0.391304 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e5734bc9428d420f659a156adfa25e7ae27b0df | 4,668 | py | Python | tests/broker/test_show_machine.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | tests/broker/test_show_machine.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | tests/broker/test_show_machine.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | #!/usr/bin/env python
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2016 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with... | 45.320388 | 79 | 0.646744 | 538 | 4,668 | 5.557621 | 0.371747 | 0.120401 | 0.161873 | 0.108361 | 0.251505 | 0.104348 | 0.080936 | 0.052843 | 0.052843 | 0.052843 | 0 | 0.06807 | 0.216367 | 4,668 | 102 | 80 | 45.764706 | 0.749317 | 0.161954 | 0 | 0.040541 | 0 | 0 | 0.163239 | 0.057069 | 0 | 0 | 0 | 0 | 0.337838 | 1 | 0.067568 | false | 0 | 0.054054 | 0 | 0.135135 | 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 | 0 | 0 | 1 | 0 |
9e5cfbb9bf026d80e086f27d5037c72987aa2b73 | 447 | py | Python | secret/forms.py | MinisterioPublicoRJ/apilabcontas | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 2 | 2019-06-10T18:34:15.000Z | 2020-04-29T14:23:34.000Z | secret/forms.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 5 | 2020-01-09T15:59:16.000Z | 2021-06-10T21:06:13.000Z | secret/forms.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from secret.models import Secret
class SecretForm(forms.ModelForm):
class Meta:
model = Secret
fields = ['username', 'email']
def clean_username(self):
username = self.cleaned_data['username']
if Secr... | 26.294118 | 61 | 0.686801 | 49 | 447 | 6.22449 | 0.632653 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223714 | 447 | 16 | 62 | 27.9375 | 0.878963 | 0 | 0 | 0 | 0 | 0 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e5e1d23daee791eaea271ade55225f743349e3f | 1,067 | py | Python | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | from datetime import date
from os import environ
PARAMS_LESSON_PLAN = [
(
date(2018, 9, 4),
[
{"IdPrzedmiot": 173, "IdPracownik": 99},
{"IdPrzedmiot": 123, "IdPracownik": 101},
{"IdPrzedmiot": 172, "IdPracownik": 92},
{"IdPrzedmiot": 189, "IdPracownik... | 24.813953 | 78 | 0.492034 | 97 | 1,067 | 5.360825 | 0.484536 | 0.061538 | 0.144231 | 0.103846 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.325211 | 1,067 | 42 | 79 | 25.404762 | 0.572222 | 0 | 0 | 0.135135 | 0 | 0 | 0.256795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.054054 | 0.027027 | 0.108108 | 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 | 0 | 0 | 1 | 0 |
9e5eaad811b723cd9fbdf58606b08cc92c36666b | 886 | py | Python | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 3 | 2018-10-14T12:38:49.000Z | 2021-06-05T08:13:42.000Z | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 1 | 2017-07-02T15:27:45.000Z | 2017-10-28T20:52:54.000Z | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 5 | 2016-12-26T08:06:24.000Z | 2020-02-22T17:20:16.000Z | # vim:fileencoding=utf8
from distutils.core import setup
import os
README = os.path.join(os.path.dirname(__file__),'PKG-INFO')
long_description = open(README).read() + "\n"
setup(name="vbcode",
version='0.2.0',
py_modules=['vbcode'],
description="Variable byte codes",
author="utahta",
aut... | 36.916667 | 83 | 0.595937 | 88 | 886 | 5.897727 | 0.727273 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007764 | 0.273138 | 886 | 23 | 84 | 38.521739 | 0.798137 | 0.023702 | 0 | 0 | 0 | 0 | 0.420626 | 0.024334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 | 0 | 0 | 1 | 0 |
9e5f5a16f32d2c7ad12cdebabca7ff18c984b6b6 | 1,221 | py | Python | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | """
Extension desined to test bot functionality, just for testing
"""
# Library includes
from discord.ext import commands
# App includes
from app.client import BotClient
class TestCog(commands.Cog):
"""
Class cog for the testing_cog cog extension
"""
def __init__(self, client: BotClient):
... | 24.42 | 74 | 0.63964 | 153 | 1,221 | 5.03268 | 0.405229 | 0.051948 | 0.046753 | 0.062338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019523 | 0.244881 | 1,221 | 49 | 75 | 24.918367 | 0.815618 | 0.208845 | 0 | 0 | 0 | 0 | 0.256881 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e5ff0af4ee8d2c0f56518f7dfc6f17b87b1d4b4 | 44,126 | py | Python | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | ## This script set up classes for 4 bus and 2 bus environment
import pandapower as pp
import pandapower.networks as nw
import pandapower.plotting as plot
import enlopy as el
import numpy as np
import pandas as pd
import pickle
import copy
import math
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import... | 48.436883 | 173 | 0.604496 | 5,862 | 44,126 | 4.348686 | 0.112078 | 0.046956 | 0.021183 | 0.015809 | 0.666209 | 0.609172 | 0.575004 | 0.547309 | 0.524361 | 0.491605 | 0 | 0.033267 | 0.290169 | 44,126 | 910 | 174 | 48.49011 | 0.780601 | 0.183135 | 0 | 0.477833 | 0 | 0 | 0.078518 | 0.01599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050903 | false | 0.003284 | 0.022989 | 0.003284 | 0.106732 | 0.054187 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e66f7324f463b84e3db235287a63c2e184564ad | 10,104 | py | Python | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | 1 | 2020-01-12T18:55:45.000Z | 2020-01-12T18:55:45.000Z | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | null | null | null | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | null | null | null | import logging
import time
from datetime import datetime, timedelta
from itertools import product
from typing import List
import requests
from python_flights.itinerary import Itinerary
from python_flights.pods import Country, Currency, Airport, Place, Agent, Carrier, Direction, Trip, Segment, Price, \
CabinClass,... | 42.1 | 120 | 0.597387 | 1,137 | 10,104 | 5.065963 | 0.218997 | 0.054167 | 0.019444 | 0.023611 | 0.322396 | 0.267882 | 0.210764 | 0.174653 | 0.133333 | 0.133333 | 0 | 0.005215 | 0.278899 | 10,104 | 239 | 121 | 42.276151 | 0.785342 | 0.009006 | 0 | 0.198068 | 0 | 0 | 0.175607 | 0.063131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.038647 | 0 | 0.149758 | 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 | 0 | 0 | 1 | 0 |
9e675b79e0383d49ce47e747d971a54a4f4b735e | 8,636 | py | Python | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | null | null | null | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | 8 | 2019-03-30T13:27:46.000Z | 2019-06-05T13:55:26.000Z | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | 1 | 2019-03-22T12:38:32.000Z | 2019-03-22T12:38:32.000Z | #!/usr/bin/python
# coding: utf-8
# Copyright 2018 AstroLab Software
# Author: Chris Arnault
#
# 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... | 28.50165 | 81 | 0.559287 | 1,013 | 8,636 | 4.661402 | 0.24383 | 0.041931 | 0.017154 | 0.024778 | 0.371453 | 0.286955 | 0.257518 | 0.250318 | 0.232952 | 0.197374 | 0 | 0.008476 | 0.275938 | 8,636 | 302 | 82 | 28.596026 | 0.746682 | 0.201135 | 0 | 0.430168 | 0 | 0 | 0.317011 | 0.018718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01676 | false | 0 | 0.022346 | 0 | 0.055866 | 0.055866 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e687cbd3bdfdf17c399fa781c8f96210ee0138e | 8,457 | py | Python | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 57 | 2015-01-06T13:07:04.000Z | 2022-03-26T04:05:50.000Z | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 34 | 2015-01-01T21:18:50.000Z | 2021-09-02T16:28:10.000Z | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 11 | 2015-02-23T18:56:22.000Z | 2020-07-19T07:50:11.000Z | import click
import json
import os
import re
from tqdm import tqdm
from utils.imutil import *
import numpy as np
import math
PROCESSED_SCAN_FOLDER = 'processedScan'
def buildXyzMap(data_dir, prefix):
projector_size = get_projector_size(data_dir)
click.echo("Projector resolution %i x %i (from settings.json)" ... | 38.793578 | 114 | 0.653541 | 1,182 | 8,457 | 4.432318 | 0.192047 | 0.028631 | 0.034358 | 0.021378 | 0.244131 | 0.127505 | 0.064325 | 0.031113 | 0.016797 | 0.016797 | 0 | 0.017294 | 0.220527 | 8,457 | 217 | 115 | 38.97235 | 0.777458 | 0.159513 | 0 | 0.044444 | 0 | 0.007407 | 0.11281 | 0.006369 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.051852 | false | 0 | 0.059259 | 0 | 0.155556 | 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 | 0 | 0 | 1 | 0 |
9e698f12281208ec9285a26a2656c4de0a23f99f | 3,383 | py | Python | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 2 | 2016-12-11T18:00:08.000Z | 2017-12-26T22:47:15.000Z | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 10 | 2015-09-24T00:32:55.000Z | 2017-09-14T02:15:53.000Z | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 2 | 2016-12-21T16:49:47.000Z | 2019-02-24T23:58:11.000Z | # Copyright 2015 Planet Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 24.875 | 79 | 0.617204 | 413 | 3,383 | 4.893462 | 0.300242 | 0.106878 | 0.083622 | 0.122217 | 0.516576 | 0.443345 | 0.374072 | 0.339436 | 0.30381 | 0.30381 | 0 | 0.024638 | 0.244162 | 3,383 | 135 | 80 | 25.059259 | 0.765741 | 0.164056 | 0 | 0.494737 | 0 | 0 | 0.185501 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.136842 | false | 0 | 0.021053 | 0 | 0.168421 | 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 | 0 | 0 | 1 | 0 |
9e69ba962e4d092d4863d5beb5b0972723e70fc5 | 936 | py | Python | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home, name="home"),
path('signup', views.signup, name="signup"),
path('activate/<uidb64>/<token>/', views.activate_account, name='activate'),
path('sell-book', views.sell_book, name='sell_book'),
path('book/<in... | 52 | 97 | 0.698718 | 130 | 936 | 4.846154 | 0.269231 | 0.038095 | 0.057143 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002404 | 0.111111 | 936 | 18 | 98 | 52 | 0.754808 | 0 | 0 | 0 | 0 | 0 | 0.339381 | 0.086446 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e6d433ebfb2152c9c032a7b2793db23253d6dbb | 10,464 | py | Python | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | 1 | 2020-09-09T15:02:31.000Z | 2020-09-09T15:02:31.000Z | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | null | null | null | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from LIPM_with_dsupport import *
import random
import subprocess
from mono_define import *
from nav_msgs.msg import Odometry
from std_srvs.srv import Empty
def walk_test(initiate_time, T_dbl, zc, foot_height):
rospy.init_node('mono_move')
print('function called')
l_2.pub = rospy.Pu... | 39.338346 | 112 | 0.503727 | 1,309 | 10,464 | 3.779985 | 0.148205 | 0.060631 | 0.031124 | 0.042441 | 0.670372 | 0.617219 | 0.551132 | 0.526475 | 0.425627 | 0.425627 | 0 | 0.046747 | 0.36831 | 10,464 | 265 | 113 | 39.486792 | 0.701815 | 0.079606 | 0 | 0.517588 | 0 | 0 | 0.084324 | 0.060454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020101 | false | 0 | 0.030151 | 0 | 0.080402 | 0.030151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e6ee084797d0ef64a6ff35e8d531e000c40a386 | 781 | py | Python | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | from BCBio import GFF
from Bio import SeqIO
import csv
import sys
in_gff_file = sys.argv[1]
out_file = sys.argv[2]
#Add annotations to sequences
print("Parsing .gff file...")
in_handle = open(in_gff_file)
limit_info = dict(gff_type = ["mRNA"])
protnames = []
protanno = []
for rec in GFF.parse(in_handle, limit_info ... | 23.666667 | 75 | 0.713188 | 122 | 781 | 4.442623 | 0.508197 | 0.027675 | 0.03321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008915 | 0.138284 | 781 | 32 | 76 | 24.40625 | 0.796434 | 0.103713 | 0 | 0 | 0 | 0 | 0.123386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e6ee92ffbfcbd13c35e3bca05e4f1adb80adce8 | 1,657 | py | Python | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | """
In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters.
Given a sequence of words written in the alien language, and the order of the alphabet, return true if and only if the given words are s... | 35.255319 | 182 | 0.631261 | 211 | 1,657 | 4.938389 | 0.417062 | 0.034549 | 0.020154 | 0.024952 | 0.143954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016461 | 0.266747 | 1,657 | 47 | 183 | 35.255319 | 0.841152 | 0.418226 | 0 | 0.173913 | 0 | 0 | 0.114017 | 0.08159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.217391 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
9e714ffa033577119fdde50aec9e7885109ed239 | 3,524 | py | Python | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | 2 | 2019-08-14T08:17:33.000Z | 2019-11-13T18:03:11.000Z | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | null | null | null | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | 2 | 2020-05-26T05:11:15.000Z | 2021-10-08T08:01:21.000Z | import pandas as pd
from collections import Counter
import re
def Mystats(directory):
df=pd.read_csv(directory)
id=df['social_id'].unique()
#1
print('Q1:Number of unique users:',len(id))
mes=df['comment_tokens']
#2
print('Q2:Number of unique messages:',len(mes.unique()))
#4
word=[]... | 34.54902 | 74 | 0.607832 | 511 | 3,524 | 4.105675 | 0.191781 | 0.076263 | 0.045758 | 0.064824 | 0.584366 | 0.584366 | 0.522402 | 0.491897 | 0.491897 | 0.4347 | 0 | 0.042576 | 0.206867 | 3,524 | 101 | 75 | 34.891089 | 0.70805 | 0.004824 | 0 | 0.282051 | 0 | 0 | 0.285061 | 0.01114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.038462 | 0 | 0.076923 | 0.25641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |