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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
608c22777b56d9cf666ec3250a4f4ccb1c127d26 | 848 | py | Python | mcmc/plot_graph.py | hudalao/mcmc | 148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791 | [
"MIT"
] | null | null | null | mcmc/plot_graph.py | hudalao/mcmc | 148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791 | [
"MIT"
] | null | null | null | mcmc/plot_graph.py | hudalao/mcmc | 148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791 | [
"MIT"
] | null | null | null | # commend the lines for plotting using
import matplotlib.pyplot as plt
import networkx as nx
def plot_graph(G, N, time_point, posi):
#setting up for graph plotting
#setting the positions for all nodes
pos = {}
for ii in range(N):
pos[ii] = posi[ii]
# plt.figure(time_point + 1)
elarge=[(... | 33.92 | 110 | 0.681604 | 148 | 848 | 3.763514 | 0.425676 | 0.129264 | 0.10772 | 0.093357 | 0.301616 | 0.301616 | 0.301616 | 0.301616 | 0.301616 | 0.157989 | 0 | 0.019774 | 0.165094 | 848 | 24 | 111 | 35.333333 | 0.766949 | 0.554245 | 0 | 0 | 0 | 0 | 0.032877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
608d2fef138f592a57bb71b64db9742a86c572f7 | 293 | py | Python | Number Theory/Sieve_of_Eratosthenes.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Number Theory/Sieve_of_Eratosthenes.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Number Theory/Sieve_of_Eratosthenes.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | from sys import stdin
input = stdin.readline
N = int(input())
primes = [1]*(N+1)
primes[0] = 0
primes[1] = 0
for i in range(2,int(N**0.5)+1):
if primes[i]:
for j in range(i*i,N+1,i):
primes[j] = 0
for i in range(N+1):
if primes[i]:
print(i,end = " ")
| 19.533333 | 34 | 0.522184 | 57 | 293 | 2.684211 | 0.368421 | 0.039216 | 0.065359 | 0.091503 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062201 | 0.286689 | 293 | 14 | 35 | 20.928571 | 0.669856 | 0 | 0 | 0.153846 | 0 | 0 | 0.003413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
608e2946d7df6fc1e0129b19ce4192449ba804b9 | 6,118 | py | Python | powerline/lib/tree_watcher.py | kruton/powerline | f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6 | [
"MIT"
] | 19 | 2015-09-01T20:49:16.000Z | 2022-01-08T22:13:23.000Z | powerline/lib/tree_watcher.py | kruton/powerline | f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6 | [
"MIT"
] | null | null | null | powerline/lib/tree_watcher.py | kruton/powerline | f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6 | [
"MIT"
] | 6 | 2019-04-25T03:42:35.000Z | 2020-06-05T15:25:23.000Z | # vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, absolute_import, print_function)
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import sys
import os
import errno
from time import sleep
from powerline.lib.monotonic import monotonic
from powe... | 27.936073 | 152 | 0.698431 | 897 | 6,118 | 4.610925 | 0.259755 | 0.029255 | 0.007253 | 0.015474 | 0.183027 | 0.153046 | 0.127901 | 0.127901 | 0.079545 | 0.062621 | 0 | 0.005078 | 0.195325 | 6,118 | 218 | 153 | 28.06422 | 0.83506 | 0.112782 | 0 | 0.319527 | 0 | 0.005917 | 0.083256 | 0.006846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088757 | false | 0.023669 | 0.047337 | 0.011834 | 0.278107 | 0.017751 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60903b5f4352258ad0e0ec223250ecb5c743a43e | 3,642 | py | Python | python/qisys/test/fake_interact.py | PrashantKumar-sudo/qibuild | a16ce425cf25127ceff29507feeeeca37af23351 | [
"BSD-3-Clause"
] | null | null | null | python/qisys/test/fake_interact.py | PrashantKumar-sudo/qibuild | a16ce425cf25127ceff29507feeeeca37af23351 | [
"BSD-3-Clause"
] | null | null | null | python/qisys/test/fake_interact.py | PrashantKumar-sudo/qibuild | a16ce425cf25127ceff29507feeeeca37af23351 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" Fake Interact """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import... | 31.396552 | 84 | 0.556013 | 397 | 3,642 | 4.969773 | 0.274559 | 0.072478 | 0.032945 | 0.04815 | 0.195641 | 0.169285 | 0.139888 | 0.100355 | 0.100355 | 0.100355 | 0 | 0.004482 | 0.326194 | 3,642 | 115 | 85 | 31.669565 | 0.799511 | 0.113674 | 0 | 0.270588 | 0 | 0 | 0.064209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129412 | false | 0 | 0.035294 | 0 | 0.317647 | 0.164706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6090c304e6f8f9a2666ec59c479f530bc3d45c1f | 7,727 | py | Python | muselsl/cli.py | kowalej/muse-lsl | 9086f2588bee3b2858b0ff853b7a08cdcd0e7612 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T15:01:19.000Z | 2021-11-20T23:05:38.000Z | muselsl/cli.py | fahad101/muse-lsl | 32aced5eb29db8834cbffd8533607e8d32cfa2b7 | [
"BSD-3-Clause"
] | null | null | null | muselsl/cli.py | fahad101/muse-lsl | 32aced5eb29db8834cbffd8533607e8d32cfa2b7 | [
"BSD-3-Clause"
] | 1 | 2020-12-03T21:28:01.000Z | 2020-12-03T21:28:01.000Z | #!/usr/bin/python
import sys
import argparse
class main:
def __init__(self):
parser = argparse.ArgumentParser(
description='Python package for streaming, recording, and visualizing EEG data from the Muse 2016 headset.',
usage='''muselsl <command> [<args>]
Available commands:
... | 52.209459 | 140 | 0.533325 | 876 | 7,727 | 4.659817 | 0.175799 | 0.046301 | 0.087457 | 0.039686 | 0.693533 | 0.641842 | 0.571044 | 0.534297 | 0.499755 | 0.490691 | 0 | 0.009447 | 0.356154 | 7,727 | 147 | 141 | 52.564626 | 0.811055 | 0.023424 | 0 | 0.480916 | 0 | 0.038168 | 0.421639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045802 | false | 0 | 0.053435 | 0 | 0.10687 | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
609290208240ce63b7e6295f7ddcd5f772b8a453 | 2,420 | py | Python | src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | 1 | 2021-03-27T17:41:16.000Z | 2021-03-27T17:41:16.000Z | src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2021- QuOCS Team
#
# 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://ww... | 48.4 | 110 | 0.704132 | 259 | 2,420 | 6.332046 | 0.440154 | 0.087805 | 0.060976 | 0.058537 | 0.046341 | 0.046341 | 0.046341 | 0 | 0 | 0 | 0 | 0.005413 | 0.160331 | 2,420 | 50 | 111 | 48.4 | 0.801673 | 0.32438 | 0 | 0 | 0 | 0 | 0.048237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.041667 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6096d49f97f28ce9400a93ea2f44d5ab24de77e4 | 2,701 | py | Python | faceRecognition.py | sequery/Face-Recognition-Project | 84d29322228e140c3d18c9c4d169819375a8e256 | [
"MIT"
] | 2 | 2020-12-23T13:39:54.000Z | 2021-01-11T15:34:29.000Z | faceRecognition.py | sequery/Face-Recognition-Project | 84d29322228e140c3d18c9c4d169819375a8e256 | [
"MIT"
] | null | null | null | faceRecognition.py | sequery/Face-Recognition-Project | 84d29322228e140c3d18c9c4d169819375a8e256 | [
"MIT"
] | null | null | null | import cv2
import os
import numpy as np
# This module contains all common functions that are called in tester.py file
# Given an image below function returns rectangle for face detected alongwith gray scale image
def faceDetection(test_img):
gray_img = cv2.cvtColor(test_img, cv2.COLOR_BGR2GRAY) # convert color... | 41.553846 | 120 | 0.66716 | 364 | 2,701 | 4.832418 | 0.428571 | 0.035816 | 0.02274 | 0.004548 | 0.018192 | 0.018192 | 0 | 0 | 0 | 0 | 0 | 0.014406 | 0.25472 | 2,701 | 64 | 121 | 42.203125 | 0.859414 | 0.336542 | 0 | 0.069767 | 0 | 0 | 0.059155 | 0.026479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.255814 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60985f194b3e048052f9cb34471c7382107a1768 | 2,704 | py | Python | evaluation/datasets/build_dataset_images.py | hsiehkl/pdffigures2 | 9ff2978a097f3d500dcb840d31587c26d994cb68 | [
"Apache-2.0"
] | 296 | 2016-06-19T02:41:09.000Z | 2022-03-10T05:46:08.000Z | evaluation/datasets/build_dataset_images.py | hsiehkl/pdffigures2 | 9ff2978a097f3d500dcb840d31587c26d994cb68 | [
"Apache-2.0"
] | 37 | 2016-07-07T00:11:53.000Z | 2022-03-18T07:27:32.000Z | evaluation/datasets/build_dataset_images.py | hsiehkl/pdffigures2 | 9ff2978a097f3d500dcb840d31587c26d994cb68 | [
"Apache-2.0"
] | 81 | 2016-07-06T23:51:21.000Z | 2022-03-19T13:50:25.000Z | import argparse
from os import listdir, mkdir
from os.path import join, isdir
from subprocess import call
import sys
import datasets
from shutil import which
"""
Script to use pdftoppm to turn the pdfs into single images per page
"""
def get_images(pdf_dir, output_dir, dpi, mono=True):
if which("pdftoppm") is N... | 36.053333 | 94 | 0.616864 | 366 | 2,704 | 4.393443 | 0.31694 | 0.037313 | 0.024254 | 0.037313 | 0.105721 | 0.105721 | 0.105721 | 0.105721 | 0.057214 | 0.057214 | 0 | 0.003483 | 0.256657 | 2,704 | 74 | 95 | 36.540541 | 0.796517 | 0 | 0 | 0.101695 | 0 | 0 | 0.177634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.118644 | 0 | 0.135593 | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
609c86e4469f43e38a1d6ec5480ccb39cd4fde7a | 1,776 | py | Python | vision/_file_utils.py | BrianOfrim/boja | 6571fbbfb7f015e96e80e822d9dc96b4636b4119 | [
"MIT"
] | 7 | 2020-01-27T18:39:02.000Z | 2022-02-14T13:23:40.000Z | vision/_file_utils.py | a428tm/boja | 6571fbbfb7f015e96e80e822d9dc96b4636b4119 | [
"MIT"
] | 1 | 2021-06-02T00:55:25.000Z | 2021-06-02T00:55:25.000Z | vision/_file_utils.py | a428tm/boja | 6571fbbfb7f015e96e80e822d9dc96b4636b4119 | [
"MIT"
] | 6 | 2020-01-28T21:28:23.000Z | 2020-12-28T14:35:06.000Z | from typing import List
import os
import re
def create_output_dir(dir_name) -> bool:
if not os.path.isdir(dir_name) or not os.path.exists(dir_name):
print("Creating output directory: %s" % dir_name)
try:
os.makedirs(dir_name)
except OSError:
print("Creation of the d... | 29.6 | 85 | 0.628378 | 261 | 1,776 | 4.034483 | 0.260536 | 0.060779 | 0.025641 | 0.037037 | 0.353276 | 0.271605 | 0.173789 | 0.094967 | 0.094967 | 0.094967 | 0 | 0.004677 | 0.27759 | 1,776 | 59 | 86 | 30.101695 | 0.816056 | 0 | 0 | 0.24 | 0 | 0 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.06 | 0 | 0.32 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
609cf5344b535f0910e1e3a47704f4e750a0c25d | 5,355 | py | Python | vaccine_allocation/epi_simulations.py | COVID-IWG/epimargin-studies | 7d4a78e2e6713c6a0aea2cd2440529153e9a635d | [
"MIT"
] | null | null | null | vaccine_allocation/epi_simulations.py | COVID-IWG/epimargin-studies | 7d4a78e2e6713c6a0aea2cd2440529153e9a635d | [
"MIT"
] | null | null | null | vaccine_allocation/epi_simulations.py | COVID-IWG/epimargin-studies | 7d4a78e2e6713c6a0aea2cd2440529153e9a635d | [
"MIT"
] | null | null | null | import dask
import numpy as np
import pandas as pd
from epimargin.models import Age_SIRVD
from epimargin.utils import annually, normalize, percent, years
from studies.vaccine_allocation.commons import *
from tqdm import tqdm
import warnings
warnings.filterwarnings("error")
num_sims = 1000
simulation_range = 1... | 45 | 150 | 0.597572 | 740 | 5,355 | 4.071622 | 0.283784 | 0.055758 | 0.018586 | 0.022569 | 0.124461 | 0.09625 | 0.037836 | 0.014935 | 0.014935 | 0.014935 | 0 | 0.038135 | 0.275257 | 5,355 | 118 | 151 | 45.381356 | 0.738212 | 0.024837 | 0 | 0.019417 | 0 | 0 | 0.047354 | 0.018788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.07767 | 0 | 0.145631 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
609d2577b79fe5b4822db1b8e2ab1b0bb0027683 | 1,975 | py | Python | src/core/agent_state.py | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | 4 | 2018-08-06T08:55:36.000Z | 2018-09-28T12:54:21.000Z | src/core/agent_state.py | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | null | null | null | src/core/agent_state.py | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | null | null | null | '''Every agent has an agent state, which is its local view of the world'''
import numpy as np
import itertools
class AgentState:
def __init__(self, name, agt, seed=1234):
self.name = name
self.prng = np.random.RandomState(seed)
# contains the variable assignment (exploreD) for this agent a... | 38.72549 | 86 | 0.663797 | 250 | 1,975 | 5.136 | 0.32 | 0.038162 | 0.11215 | 0.10514 | 0.270249 | 0.23053 | 0.193146 | 0.162773 | 0.162773 | 0.123053 | 0 | 0.004804 | 0.262278 | 1,975 | 51 | 87 | 38.72549 | 0.876458 | 0.241013 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.34375 | 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 |
60a02b70b3feadeb7f3f6ef29e2296758c121c15 | 2,782 | py | Python | src/routes/scoring.py | jtillman20/cfb-data-api | 69bcae225e4fa0616eb526bd608e20ace17f1816 | [
"MIT"
] | null | null | null | src/routes/scoring.py | jtillman20/cfb-data-api | 69bcae225e4fa0616eb526bd608e20ace17f1816 | [
"MIT"
] | null | null | null | src/routes/scoring.py | jtillman20/cfb-data-api | 69bcae225e4fa0616eb526bd608e20ace17f1816 | [
"MIT"
] | null | null | null | from typing import Union
from flask import request
from flask_restful import Resource
from exceptions import InvalidRequestError
from models import Scoring
from utils import flask_response, rank, sort
class ScoringRoute(Resource):
@flask_response
def get(self, side_of_ball: str) -> Union[Scoring, list[Scori... | 30.571429 | 74 | 0.626528 | 335 | 2,782 | 5.023881 | 0.271642 | 0.042781 | 0.071301 | 0.030897 | 0.199643 | 0.130719 | 0.042781 | 0.042781 | 0 | 0 | 0 | 0 | 0.300503 | 2,782 | 90 | 75 | 30.911111 | 0.864851 | 0.193386 | 0 | 0.156863 | 0 | 0 | 0.146273 | 0.011252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60a3e925a35adb27a53e4a197d8b807d37a073ac | 13,745 | py | Python | swagger_server/controllers/threadFactory.py | garagonc/optimization-framework | 1ca57699d6a3f2f98dcaea96430e75c3f847b49f | [
"Apache-2.0"
] | null | null | null | swagger_server/controllers/threadFactory.py | garagonc/optimization-framework | 1ca57699d6a3f2f98dcaea96430e75c3f847b49f | [
"Apache-2.0"
] | null | null | null | swagger_server/controllers/threadFactory.py | garagonc/optimization-framework | 1ca57699d6a3f2f98dcaea96430e75c3f847b49f | [
"Apache-2.0"
] | null | null | null | import os
import configparser
import json
import time
from IO.inputConfigParser import InputConfigParser
from IO.redisDB import RedisDB
from optimization.ModelException import MissingKeysException
from optimization.controllerDiscrete import OptControllerDiscrete
from optimization.controllerMpc import OptControllerMPC... | 56.102041 | 120 | 0.587923 | 1,473 | 13,745 | 5.270876 | 0.133741 | 0.042504 | 0.037223 | 0.028336 | 0.535291 | 0.470762 | 0.411772 | 0.367079 | 0.27035 | 0.216641 | 0 | 0.000968 | 0.323463 | 13,745 | 244 | 121 | 56.331967 | 0.833961 | 0.051437 | 0 | 0.269608 | 0 | 0 | 0.125396 | 0.010134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.073529 | 0.004902 | 0.142157 | 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 |
60a47f3e241e5f669273b6d0c92cbb5374b0f349 | 3,970 | py | Python | cohesity_management_sdk/models/scheduling_policy.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | 1 | 2021-01-07T20:36:22.000Z | 2021-01-07T20:36:22.000Z | cohesity_management_sdk/models/scheduling_policy.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | null | null | null | cohesity_management_sdk/models/scheduling_policy.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
import cohesity_management_sdk.models.continuous_schedule
import cohesity_management_sdk.models.daily_schedule
import cohesity_management_sdk.models.monthly_schedule
import cohesity_management_sdk.models.rpo_schedule
class SchedulingPolicy(object):
"""Implem... | 43.152174 | 203 | 0.688917 | 423 | 3,970 | 6.319149 | 0.269504 | 0.041152 | 0.062851 | 0.080808 | 0.195286 | 0.166106 | 0 | 0 | 0 | 0 | 0 | 0.001682 | 0.251134 | 3,970 | 91 | 204 | 43.626374 | 0.89741 | 0.429975 | 0 | 0 | 0 | 0 | 0.125951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
60a5c5419df750bc2b6508ae2377a189aff71a1a | 3,575 | py | Python | networking_mlnx/eswitchd/cli/ebrctl.py | mail2nsrajesh/networking-mlnx | 9051eac0c2bc6abf3c8790e01917e405dc479922 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/eswitchd/cli/ebrctl.py | mail2nsrajesh/networking-mlnx | 9051eac0c2bc6abf3c8790e01917e405dc479922 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/eswitchd/cli/ebrctl.py | mail2nsrajesh/networking-mlnx | 9051eac0c2bc6abf3c8790e01917e405dc479922 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2013 Mellanox Technologies, Ltd
#
# 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 applicab... | 30.555556 | 73 | 0.683636 | 497 | 3,575 | 4.748491 | 0.295775 | 0.045763 | 0.047458 | 0.038983 | 0.434746 | 0.32161 | 0.24661 | 0.205932 | 0.205932 | 0.205932 | 0 | 0.005722 | 0.217902 | 3,575 | 116 | 74 | 30.818966 | 0.83834 | 0.235804 | 0 | 0.323944 | 0 | 0 | 0.083612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.056338 | 0 | 0.140845 | 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 |
60a739a78fd701a33047ec6e80de5f418140cf06 | 2,567 | py | Python | src/FinanceLib/analysis.py | Chahat-M/FinanceLib | 0428779220a97e7fe0ad35a50207b737059b9c86 | [
"MIT"
] | 3 | 2021-06-20T14:55:16.000Z | 2021-12-29T03:55:34.000Z | src/FinanceLib/analysis.py | Chahat-M/FinanceLib | 0428779220a97e7fe0ad35a50207b737059b9c86 | [
"MIT"
] | null | null | null | src/FinanceLib/analysis.py | Chahat-M/FinanceLib | 0428779220a97e7fe0ad35a50207b737059b9c86 | [
"MIT"
] | 1 | 2021-06-26T05:39:08.000Z | 2021-06-26T05:39:08.000Z | from typing import List, Union
import numpy as np
import pandas_datareader as pdr
import pandas as pd
import matplotlib.pyplot as plt
def rsi(symbol :str ,name :str, date :str) -> None :
"""
Calculates and visualises the Relative Stock Index on a Stock of the company.
Parameters:
symbol(str) : Sy... | 34.689189 | 96 | 0.626023 | 382 | 2,567 | 4.123037 | 0.332461 | 0.04 | 0.030476 | 0.017778 | 0.267937 | 0.267937 | 0.213333 | 0.177778 | 0.177778 | 0.177778 | 0 | 0.030923 | 0.218933 | 2,567 | 74 | 97 | 34.689189 | 0.754613 | 0.270355 | 0 | 0.045455 | 0 | 0 | 0.039955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.159091 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60ae786acbdf645e9d5e08b60bc5b3249a338b60 | 6,496 | py | Python | jarvis/stats.py | aburgd/sheila | 556cf3e4a6992b8ba609ba281f5a3657cd91e709 | [
"MIT"
] | null | null | null | jarvis/stats.py | aburgd/sheila | 556cf3e4a6992b8ba609ba281f5a3657cd91e709 | [
"MIT"
] | null | null | null | jarvis/stats.py | aburgd/sheila | 556cf3e4a6992b8ba609ba281f5a3657cd91e709 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
###############################################################################
# Module Imports
###############################################################################
import pyscp
import textwrap
from dominate import tags as dt
from . import core, lex, ext
########################... | 28.121212 | 79 | 0.475985 | 672 | 6,496 | 4.541667 | 0.287202 | 0.023591 | 0.017038 | 0.006881 | 0.155963 | 0.129423 | 0.111075 | 0.079948 | 0.053735 | 0.026868 | 0 | 0.010487 | 0.26601 | 6,496 | 230 | 80 | 28.243478 | 0.629614 | 0.011853 | 0 | 0.107595 | 0 | 0.012658 | 0.262844 | 0.065053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.006329 | 0.031646 | 0 | 0.151899 | 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 |
60b1ecdd22ff60b0f76eb9a849e552628f551e26 | 6,547 | py | Python | python/manager.py | Kiku-Reise/vsmart | dd8cf84816da8734e72dbb46c07694f561597648 | [
"Apache-2.0"
] | null | null | null | python/manager.py | Kiku-Reise/vsmart | dd8cf84816da8734e72dbb46c07694f561597648 | [
"Apache-2.0"
] | null | null | null | python/manager.py | Kiku-Reise/vsmart | dd8cf84816da8734e72dbb46c07694f561597648 | [
"Apache-2.0"
] | null | null | null | from telethon.sync import TelegramClient
from telethon.errors.rpcerrorlist import PhoneNumberBannedError
import pickle, os
from colorama import init, Fore
from time import sleep
init()
n = Fore.RESET
lg = Fore.LIGHTGREEN_EX
r = Fore.RED
w = Fore.WHITE
cy = Fore.CYAN
ye = Fore.YELLOW
colors = [lg, r, w, cy, ye]
try:
... | 36.780899 | 109 | 0.494578 | 760 | 6,547 | 4.144737 | 0.264474 | 0.032381 | 0.022857 | 0.028571 | 0.193333 | 0.18254 | 0.136508 | 0.08 | 0.08 | 0.041905 | 0 | 0.022662 | 0.359707 | 6,547 | 177 | 110 | 36.988701 | 0.728769 | 0.040171 | 0 | 0.233129 | 0 | 0.018405 | 0.316075 | 0.022782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01227 | false | 0 | 0.04908 | 0 | 0.06135 | 0.159509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60b2db27faa35c5bbae9711262c54fdad4d8f495 | 1,212 | py | Python | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 23 | 2015-11-26T12:05:45.000Z | 2022-03-17T10:24:22.000Z | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 54 | 2016-07-26T12:44:07.000Z | 2022-02-17T10:08:01.000Z | src/m2ee/client_errno.py | rus-kh/m2ee-tools | 70000796a53131bb1cd8d199f48cd5e7aab2c505 | [
"BSD-3-Clause"
] | 34 | 2015-01-04T07:05:48.000Z | 2022-02-15T10:23:52.000Z | #
# Copyright (C) 2009 Mendix. All rights reserved.
#
SUCCESS = 0
# Starting the Mendix Runtime can fail in both a temporary or permanent way.
# Some of the errors can be fixed with some help of the user.
#
# The default m2ee cli program will only handle a few of these cases, by
# providing additional hints or intera... | 30.3 | 76 | 0.792079 | 194 | 1,212 | 4.778351 | 0.623711 | 0.05178 | 0.03452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024728 | 0.165842 | 1,212 | 39 | 77 | 31.076923 | 0.892186 | 0.657591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60b31fb7e46f9a498f1975750fe02489646c609d | 2,456 | py | Python | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | datasets/__init__.py | andrewliao11/detr | 944bb60e090e6b72aede9574cd2b7f75202cfe05 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch.utils.data
import torchvision
def get_coco_api_from_dataset(dataset_val):
for _ in range(10):
# if isinstance(dataset, torchvision.datasets.CocoDetection):
# break
if isinstance(dataset_val, torch.utils... | 47.230769 | 112 | 0.733713 | 316 | 2,456 | 5.39557 | 0.199367 | 0.11261 | 0.14956 | 0.08915 | 0.54956 | 0.478592 | 0.41349 | 0.392375 | 0.392375 | 0.392375 | 0 | 0.004014 | 0.188518 | 2,456 | 51 | 113 | 48.156863 | 0.85148 | 0.151873 | 0 | 0.057143 | 0 | 0 | 0.065092 | 0.012054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.228571 | 0 | 0.542857 | 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 |
60b3e5f9c1bddecc88bf9ce4ae8e78ecc1b7e1ee | 11,139 | py | Python | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | dkhomeleague/dkhomeleague.py | sansbacon/dkhomeleague | 17ab695df9ceccf5b7f135181b19ade8d47add5f | [
"Apache-2.0"
] | null | null | null | # dkhomeleague.py
import json
import logging
import os
from string import ascii_uppercase
import pandas as pd
from requests_html import HTMLSession
import browser_cookie3
import pdsheet
class Scraper:
"""scrapes league results"""
def __init__(self, league_key=None, username=None):
"""Creates instan... | 33.250746 | 133 | 0.586767 | 1,301 | 11,139 | 4.883167 | 0.216756 | 0.026916 | 0.018417 | 0.014324 | 0.33858 | 0.320006 | 0.299701 | 0.277979 | 0.260507 | 0.252322 | 0 | 0.007787 | 0.296705 | 11,139 | 334 | 134 | 33.350299 | 0.803166 | 0.212946 | 0 | 0.213018 | 0 | 0.005917 | 0.191497 | 0.04586 | 0 | 0 | 0 | 0.002994 | 0 | 1 | 0.16568 | false | 0.023669 | 0.047337 | 0.017751 | 0.372781 | 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 |
60b401f8d464942d7d88868c9047da1188916d43 | 246 | py | Python | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | Graphing/Example1.py | Wadden12/Semester1 | a13c4486848daec3b5865e8a2a778689c81528fe | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(0.0, 3.0, 0.01)
s = np.sin(2.5 * np.pi * t)
plt.plot(t, s)
plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.title('Sine Wave')
plt.grid(True)
plt.show() | 15.375 | 31 | 0.646341 | 50 | 246 | 3.18 | 0.64 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047393 | 0.142276 | 246 | 16 | 32 | 15.375 | 0.706161 | 0.069106 | 0 | 0 | 0 | 0 | 0.126638 | 0 | 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 |
60bc8d5255a0bd875f4af98e1eec0327e1d5bb7e | 34,771 | py | Python | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | null | null | null | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | 1 | 2021-05-25T16:34:10.000Z | 2021-05-25T16:34:10.000Z | pysd/py_backend/external.py | rogersamso/pysd_dev | 85606265aa92878c35a41dd81ce9588d23350e19 | [
"MIT"
] | null | null | null | """
These classes are a collection of the needed tools to read external data.
The External type objects created by these classes are initialized before
the Stateful objects by functions.Model.initialize.
"""
import re
import os
import warnings
import pandas as pd # TODO move to openpyxl
import numpy as np
import xarr... | 34.156189 | 79 | 0.515516 | 4,033 | 34,771 | 4.313662 | 0.106868 | 0.01414 | 0.017819 | 0.01644 | 0.447836 | 0.396103 | 0.334713 | 0.284934 | 0.261654 | 0.241363 | 0 | 0.006891 | 0.3865 | 34,771 | 1,017 | 80 | 34.189774 | 0.808644 | 0.224239 | 0 | 0.403448 | 0 | 0 | 0.091609 | 0.000913 | 0 | 0 | 0 | 0.001967 | 0.017241 | 1 | 0.056897 | false | 0.003448 | 0.013793 | 0.005172 | 0.143103 | 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 |
60bd44a6d884dfc054933f1d7828b758d91a71b3 | 15,921 | py | Python | pirates/piratesgui/ChatBar.py | ksmit799/POTCO-PS | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 8 | 2017-01-24T04:33:29.000Z | 2020-11-01T08:36:24.000Z | pirates/piratesgui/ChatBar.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 1 | 2017-03-02T18:05:17.000Z | 2017-03-14T06:47:10.000Z | pirates/piratesgui/ChatBar.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 11 | 2017-03-02T18:46:07.000Z | 2020-11-01T08:36:26.000Z | # File: C (Python 2.4)
from direct.gui.DirectGui import *
from direct.interval.IntervalGlobal import *
from direct.fsm.FSM import FSM
from direct.showbase.PythonUtil import Functor
from pandac.PandaModules import *
from pirates.piratesbase import PiratesGlobals
from pirates.piratesbase import PLocalizer
from pirates.p... | 43.5 | 464 | 0.655172 | 1,593 | 15,921 | 6.490898 | 0.181419 | 0.032495 | 0.0147 | 0.018569 | 0.459188 | 0.394971 | 0.361025 | 0.309188 | 0.267215 | 0.200774 | 0 | 0.086765 | 0.228315 | 15,921 | 365 | 465 | 43.619178 | 0.754843 | 0.001256 | 0 | 0.363971 | 0 | 0 | 0.051959 | 0.011826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113971 | false | 0.025735 | 0.033088 | 0.003676 | 0.172794 | 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 |
60bd4912fb3c20a7cbfabbd3fdd321346095f54b | 6,610 | py | Python | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | mozmill-env/python/Lib/site-packages/mozlog/logger.py | lucashmorais/x-Bench | 2080b8753dd6e45c2212666bcdb05327752a94e9 | [
"MIT"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from logging import getLogger as getSysLogger
from logging import *
# Some of the build slave environments don't see the... | 36.519337 | 100 | 0.637065 | 810 | 6,610 | 5.120988 | 0.31358 | 0.031823 | 0.04918 | 0.030376 | 0.081485 | 0.058341 | 0.036162 | 0 | 0 | 0 | 0 | 0.00539 | 0.270197 | 6,610 | 180 | 101 | 36.722222 | 0.854478 | 0.366415 | 0 | 0.043956 | 0 | 0 | 0.07532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120879 | false | 0.043956 | 0.043956 | 0 | 0.263736 | 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 |
60c1a81157e41324b28041d302b03e92ee199d40 | 14,335 | py | Python | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 7 | 2016-05-20T21:56:39.000Z | 2022-02-07T21:09:48.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2019-03-21T16:10:04.000Z | 2019-03-22T17:21:56.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2020-05-19T16:17:17.000Z | 2020-05-19T16:17:17.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | 35.134804 | 209 | 0.548936 | 1,585 | 14,335 | 4.849211 | 0.181073 | 0.042935 | 0.030445 | 0.037211 | 0.269321 | 0.228858 | 0.161202 | 0.139735 | 0.130887 | 0.115405 | 0 | 0.005864 | 0.31001 | 14,335 | 407 | 210 | 35.22113 | 0.771105 | 0.387792 | 0 | 0.157895 | 0 | 0 | 0.100957 | 0 | 0 | 0 | 0 | 0.004914 | 0 | 1 | 0.078947 | false | 0 | 0.087719 | 0 | 0.184211 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60c1d48ace52455ffd7fc2885603c6dc3baa53ba | 5,876 | py | Python | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 154 | 2015-02-04T08:41:23.000Z | 2022-03-18T19:39:53.000Z | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 115 | 2015-06-14T13:31:07.000Z | 2022-02-14T23:02:19.000Z | venv/Lib/site-packages/rivescript/inheritance.py | Hazemcodes/GimmyBot | f24cb90e0d3c045100f59def1d5e14bef367cba7 | [
"Apache-2.0"
] | 87 | 2015-04-18T23:15:18.000Z | 2022-03-18T09:52:06.000Z | # RiveScript-Python
#
# This code is released under the MIT License.
# See the "LICENSE" file for more information.
#
# https://www.rivescript.com/
def get_topic_triggers(rs, topic, thats, depth=0, inheritance=0, inherited=False):
"""Recursively scan a topic and return a list of all triggers.
Arguments:
... | 40.524138 | 107 | 0.651293 | 790 | 5,876 | 4.798734 | 0.268354 | 0.013717 | 0.018992 | 0.020311 | 0.192561 | 0.129254 | 0.100765 | 0.08441 | 0.08441 | 0.08441 | 0 | 0.003679 | 0.259871 | 5,876 | 144 | 108 | 40.805556 | 0.868016 | 0.534888 | 0 | 0.204082 | 0 | 0 | 0.12476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60c2063c53b34bc28b910dfe0bb280da49581724 | 2,560 | py | Python | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | 1 | 2016-10-24T02:45:11.000Z | 2016-10-24T02:45:11.000Z | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | null | null | null | src/dataAccess/Connection.py | mattmillr/utaka | 6622e9057c323b0aed1113f8723404d264a7c82e | [
"Apache-2.0"
] | null | null | null | #Copyright 2009 Humanitarian International Services Group
#
#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... | 29.767442 | 98 | 0.75625 | 331 | 2,560 | 5.800604 | 0.459215 | 0.094792 | 0.029688 | 0.016667 | 0.035417 | 0.035417 | 0.035417 | 0 | 0 | 0 | 0 | 0.006428 | 0.149219 | 2,560 | 85 | 99 | 30.117647 | 0.875115 | 0.349609 | 0 | 0.196078 | 0 | 0 | 0.098668 | 0.033293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.078431 | 0.058824 | 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 |
60c55601d180bba88cdc945fcda09ef1976ad00b | 1,617 | py | Python | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | setup.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as fin:
long_description = fin.read()
setup(
name='pylint-pytest',
version='1.0.3',
author='Reverb Chu',
... | 33 | 78 | 0.63389 | 174 | 1,617 | 5.793103 | 0.54023 | 0.131944 | 0.173611 | 0.128968 | 0.051587 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.213358 | 1,617 | 48 | 79 | 33.6875 | 0.778302 | 0.025974 | 0 | 0.04878 | 0 | 0 | 0.497139 | 0.030515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 |
60c5712ca1f4ef817490766e027dfd8c59267d52 | 1,637 | py | Python | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | 1 | 2021-05-18T04:35:38.000Z | 2021-05-18T04:35:38.000Z | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | null | null | null | Shells/Python/Client/TCPReverseShell.py | lismore/OffensiveCyberTools | c43fb78f0067498e53cfa5aad9e0fd60ebd6e069 | [
"MIT"
] | 1 | 2021-05-18T04:35:40.000Z | 2021-05-18T04:35:40.000Z | # Reverse TCP Shell in Python For Offensive Security/Penetration Testing Assignments
# Connect on LinkedIn https://www.linkedin.com/in/lismore or Twitter @patricklismore
#=========================================================================================================================================
# Python... | 43.078947 | 166 | 0.508247 | 164 | 1,637 | 5.060976 | 0.585366 | 0.050602 | 0.026506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016886 | 0.348809 | 1,637 | 37 | 167 | 44.243243 | 0.761726 | 0.444105 | 0 | 0 | 0 | 0 | 0.02349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60c720ca02631a4c8efcc9abc342c50fb241f153 | 1,324 | py | Python | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | tests/products/test_products.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | import pytest
from httpx import AsyncClient
from conf_test_db import app
from tests.shared.info import category_info, product_info
@pytest.mark.asyncio
async def test_new_product():
async with AsyncClient(app=app, base_url="http://test") as ac:
category_obj = await category_info()
payload = {
... | 29.422222 | 70 | 0.654834 | 166 | 1,324 | 5.072289 | 0.313253 | 0.071259 | 0.085511 | 0.071259 | 0.393112 | 0.24228 | 0.173397 | 0.173397 | 0.173397 | 0.173397 | 0 | 0.015595 | 0.225076 | 1,324 | 44 | 71 | 30.090909 | 0.805068 | 0 | 0 | 0.181818 | 0 | 0 | 0.157855 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60c89c536a5a429da0bac1d845d414b2ea221030 | 4,251 | py | Python | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 4 | 2020-07-14T19:45:44.000Z | 2021-08-11T20:15:51.000Z | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 1 | 2020-07-26T03:06:09.000Z | 2020-07-26T03:06:09.000Z | restcord/http.py | Yandawl/restcord.py | eeaf75f4a3d05f3837906a60d5f4a9395c4933ff | [
"MIT"
] | 1 | 2021-05-28T07:23:40.000Z | 2021-05-28T07:23:40.000Z | # -*- coding: utf-8 -*-
import asyncio
import datetime
import json
import logging
import sys
from typing import Optional
import aiohttp
from aiohttp import ClientSession
from . import __version__
from .errors import (
BadGateway,
BadRequest,
Forbidden,
HTTPException,
InternalServerError,
NotFo... | 29.317241 | 173 | 0.593037 | 490 | 4,251 | 4.904082 | 0.302041 | 0.026217 | 0.017478 | 0.032459 | 0.088223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0106 | 0.289814 | 4,251 | 144 | 174 | 29.520833 | 0.785359 | 0.017172 | 0 | 0 | 0 | 0.018868 | 0.154123 | 0.043145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04717 | false | 0.009434 | 0.09434 | 0.009434 | 0.254717 | 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 |
60ca8c56131d2ab13002b353ba23eeec4638f221 | 2,613 | py | Python | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null | mechanical_markdown/parsers.py | greenie-msft/mechanical-markdown | 4fb410a34038fab7d270383561726dd4da7a2aca | [
"MIT"
] | null | null | null |
"""
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
"""
import re
import yaml
from html.parser import HTMLParser
from mistune import Renderer
from mechanical_markdown.step import Step
start_token = 'STEP'
end_token = 'END_STEP'
ignore_links_token = 'IGNORE_LINKS'
end_ignore_links_token = 'END_... | 30.034483 | 111 | 0.64026 | 309 | 2,613 | 5.148867 | 0.281553 | 0.089881 | 0.075424 | 0.035827 | 0.200503 | 0.095537 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.252966 | 2,613 | 86 | 112 | 30.383721 | 0.813012 | 0.026024 | 0 | 0.169492 | 0 | 0 | 0.091483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.016949 | 0.084746 | 0 | 0.305085 | 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 |
60cb62275d3608a9262e293a2d9784988739e4b8 | 7,082 | py | Python | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | cchecker.py | jakepolatty/compliance-checker | 89d362c0616df0267a6a14227fdb9a05daada28e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import argparse
import sys
from compliance_checker.runner import ComplianceChecker, CheckSuite
from compliance_checker.cf.util import download_cf_standard_name_table
from compliance_checker import __version__
def main():
# Load all available checker cla... | 48.841379 | 119 | 0.515391 | 730 | 7,082 | 4.867123 | 0.256164 | 0.025331 | 0.047847 | 0.016043 | 0.192232 | 0.126091 | 0.126091 | 0.126091 | 0.126091 | 0.094005 | 0 | 0.002762 | 0.386614 | 7,082 | 144 | 120 | 49.180556 | 0.815147 | 0.031629 | 0 | 0.182609 | 0 | 0 | 0.305357 | 0.00759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008696 | false | 0 | 0.052174 | 0 | 0.104348 | 0.078261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60cf079213b806efdae39b46a5d5e92189e230e8 | 1,404 | py | Python | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | student/urls.py | rummansadik/Admission-Automation | a2fd305644cf60bfd0a381b855fb8c2810507f36 | [
"MIT"
] | null | null | null | from django.contrib.auth.views import LoginView
from django.urls import path
from student import views
urlpatterns = [
path('studentclick', views.studentclick_view, name='student-click'),
path('studentlogin', LoginView.as_view(
template_name='student/studentlogin.html'), name='studentlogin'),
path... | 52 | 80 | 0.718661 | 187 | 1,404 | 5.219251 | 0.192513 | 0.106557 | 0.092213 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110399 | 1,404 | 26 | 81 | 54 | 0.781425 | 0 | 0 | 0 | 0 | 0 | 0.319088 | 0.017806 | 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 |
60cfe2b25e1fd15d3b1f9eec1ded9e4ee805612a | 10,381 | py | Python | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/neb.py | lin-cp/aiida-quantumespresso | 55f2bc8c137a69be24709a119bc285c700997907 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from aiida.common import NotExistent
from aiida.orm import Dict
from aiida_quantumespresso.calculations.pw import PwCalculation
from aiida_quantumespresso.parsers import QEOutputParsingError
from aiida_quantumespresso.parsers.parse_raw import convert_qe_to_aiida_structure
from aiida_quantumespr... | 47.619266 | 119 | 0.652731 | 1,269 | 10,381 | 5.117415 | 0.224586 | 0.029566 | 0.02587 | 0.033261 | 0.224361 | 0.205574 | 0.155066 | 0.133816 | 0.119341 | 0.099476 | 0 | 0.00093 | 0.275311 | 10,381 | 217 | 120 | 47.83871 | 0.862289 | 0.202485 | 0 | 0.190476 | 0 | 0 | 0.07021 | 0 | 0 | 0 | 0 | 0.004608 | 0 | 1 | 0.013605 | false | 0 | 0.108844 | 0 | 0.22449 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60d008a523955b3331abaa74c2b768ea0d2cf905 | 6,942 | py | Python | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 418 | 2019-06-26T05:55:42.000Z | 2022-03-31T10:46:57.000Z | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 362 | 2019-06-26T20:41:17.000Z | 2022-02-10T16:02:16.000Z | training/horovod/base/horovod_wrapper.py | thehardikv/ai-platform-samples | 0050d12476bcbfdb99d9894a3755a97da5cd80fe | [
"Apache-2.0"
] | 229 | 2019-06-29T17:55:33.000Z | 2022-03-14T15:52:58.000Z | import collections
import datetime
import json
import multiprocessing
import os
import subprocess
import sys
import time
_SSHD_BINARY_PATH = "/usr/sbin/sshd"
EnvironmentConfig = collections.namedtuple(
"EnvironmentConfig",
["hosts", "port", "is_chief", "pools", "job_id"])
class DeadlineExceededError(Excepti... | 33.699029 | 81 | 0.659896 | 951 | 6,942 | 4.569926 | 0.249211 | 0.07248 | 0.030373 | 0.027382 | 0.123102 | 0.079153 | 0.04878 | 0.036815 | 0 | 0 | 0 | 0.008069 | 0.214492 | 6,942 | 205 | 82 | 33.863415 | 0.788924 | 0.066695 | 0 | 0.072727 | 0 | 0 | 0.141662 | 0.009144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.012121 | 0.054545 | 0 | 0.163636 | 0.012121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60d5e102f224ce9da90306668a9ad7d31fe50111 | 1,332 | py | Python | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | 1 | 2022-01-05T13:26:26.000Z | 2022-01-05T13:26:26.000Z | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | null | null | null | car & pedestrian_tracker.py | Ishita-2001/Car-And-Pedestrian-prediction | 6c4aeca84ae49d40ff6d27e51800c6f50db55070 | [
"MIT"
] | null | null | null | import cv2
video=cv2.VideoCapture(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.mp4')
#pre trained pedestrian and car classifier
car_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\car.xml')
pedestrian_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.x... | 28.340426 | 94 | 0.712462 | 204 | 1,332 | 4.539216 | 0.367647 | 0.043197 | 0.022678 | 0.042117 | 0.2527 | 0.2527 | 0.233261 | 0.233261 | 0.233261 | 0.233261 | 0 | 0.036348 | 0.153153 | 1,332 | 46 | 95 | 28.956522 | 0.784574 | 0.180931 | 0 | 0 | 0 | 0 | 0.208872 | 0.17098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60d7aa6b6e26e469afd18baf5e09fc751d3bc828 | 1,658 | py | Python | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | 1 | 2018-05-03T06:17:02.000Z | 2018-05-03T06:17:02.000Z | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | 8 | 2018-05-07T16:42:35.000Z | 2022-02-26T03:31:56.000Z | saleor/wing/api/serializers.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | null | null | null | # site settings rest api serializers
from rest_framework import serializers
from saleor.wing.models import Wing as Table
class TableListSerializer(serializers.ModelSerializer):
update_url = serializers.HyperlinkedIdentityField(view_name='wing:api-update')
delete_url = serializers.HyperlinkedIdentityField(vie... | 27.180328 | 86 | 0.581423 | 145 | 1,658 | 6.544828 | 0.303448 | 0.09589 | 0.084299 | 0.060063 | 0.561644 | 0.515279 | 0.407798 | 0.149631 | 0.149631 | 0.149631 | 0 | 0 | 0.3269 | 1,658 | 60 | 87 | 27.633333 | 0.850358 | 0.020507 | 0 | 0.413043 | 0 | 0 | 0.090012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.391304 | 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 |
60d8e5a0116e064e77e230eb96c9a8d6cada4db5 | 525 | py | Python | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | project_euler/problem_01/sol6.py | mudit-chopra/Python | 5d186f16d1f6d497c95c28c0ced7134314f65168 | [
"MIT"
] | null | null | null | '''
Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3,5,6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below N.
'''
from __future__ import print_function
try:
raw_input # Python 2
except NameError:
raw_input = i... | 21 | 73 | 0.638095 | 103 | 525 | 3.184466 | 0.504854 | 0.10061 | 0.109756 | 0.085366 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050761 | 0.249524 | 525 | 24 | 74 | 21.875 | 0.781726 | 0.415238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60d91e2f9fc2f2ed156791ead05310dd7eaf0d26 | 2,017 | py | Python | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | null | null | null | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | 2 | 2019-05-31T23:46:05.000Z | 2019-06-02T06:54:54.000Z | jsonfallback/functions.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | null | null | null | import copy
from django.db import NotSupportedError
from django.db.models import Expression
from .fields import mysql_compile_json_path, postgres_compile_json_path, FallbackJSONField
class JSONExtract(Expression):
def __init__(self, expression, *path, output_field=FallbackJSONField(), **extra):
super()._... | 41.163265 | 116 | 0.695092 | 248 | 2,017 | 5.407258 | 0.282258 | 0.047726 | 0.044743 | 0.067114 | 0.447427 | 0.447427 | 0.418345 | 0.418345 | 0.418345 | 0.36167 | 0 | 0.000625 | 0.206247 | 2,017 | 48 | 117 | 42.020833 | 0.836977 | 0 | 0 | 0.3 | 0 | 0 | 0.054041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60d99db002da009becee8998564d797726db9d1f | 6,460 | py | Python | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | 11 | 2018-02-12T16:57:26.000Z | 2021-03-12T03:04:53.000Z | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | 1 | 2018-02-04T20:53:35.000Z | 2018-02-04T22:08:35.000Z | excelify/tests.py | pmbaumgartner/excelify | c0e29733efe407248810c3a8d3ec874f0cc0daca | [
"MIT"
] | null | null | null | import unittest
import tempfile
import pathlib
import datetime
import warnings
from IPython.testing.globalipapp import start_ipython, get_ipython
import pandas.util.testing as tm
from pandas.core.frame import DataFrame
from pandas.core.series import Series
from pandas import read_excel
import pytest
ip = get_ipytho... | 37.34104 | 126 | 0.658204 | 818 | 6,460 | 4.964548 | 0.185819 | 0.077567 | 0.037675 | 0.058606 | 0.574243 | 0.54297 | 0.508003 | 0.452844 | 0.442502 | 0.327013 | 0 | 0.005375 | 0.222446 | 6,460 | 172 | 127 | 37.55814 | 0.803106 | 0.0113 | 0 | 0.422535 | 0 | 0 | 0.08272 | 0 | 0 | 0 | 0 | 0 | 0.133803 | 1 | 0.133803 | false | 0 | 0.084507 | 0 | 0.225352 | 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 |
60db6ae3957694fa22eea77ea766c2665fc6212f | 13,015 | py | Python | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 89 | 2015-08-28T14:17:33.000Z | 2022-01-20T16:19:34.000Z | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 24 | 2015-08-28T19:06:22.000Z | 2022-02-21T21:10:13.000Z | gputools/core/oclmultireduction.py | gmazzamuto/gputools | 73a4dee76a119f94d8163781a85b691fd080d506 | [
"BSD-3-Clause"
] | 17 | 2015-08-28T18:56:43.000Z | 2021-09-15T23:15:36.000Z | """
an adaptation of pyopencl's reduction kernel for weighted avarages
like sum(a*b)
mweigert@mpi-cbg.de
"""
from __future__ import print_function, unicode_literals, absolute_import, division
from six.moves import zip
import pyopencl as cl
from pyopencl.tools import (
context_dependent_memoize,
dtype_to_cty... | 28.417031 | 108 | 0.542374 | 1,553 | 13,015 | 4.251127 | 0.188023 | 0.057255 | 0.019994 | 0.010603 | 0.203878 | 0.145259 | 0.106483 | 0.05665 | 0.031506 | 0.026659 | 0 | 0.0146 | 0.357972 | 13,015 | 457 | 109 | 28.479212 | 0.775491 | 0.063388 | 0 | 0.18543 | 0 | 0.003311 | 0.224889 | 0.02573 | 0 | 0 | 0 | 0 | 0.013245 | 1 | 0.016556 | false | 0.003311 | 0.066225 | 0 | 0.10596 | 0.016556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60de65cd7b893d039ce64092d8888cd693558525 | 831 | py | Python | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | 2 | 2016-09-08T11:39:09.000Z | 2016-11-29T14:04:38.000Z | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | null | null | null | example/example01.py | ChenglongChen/TextRank4ZH | 5af7b9d33d9e686411576362dfccf6f9d3d3282b | [
"MIT"
] | 5 | 2017-03-03T03:18:32.000Z | 2018-09-18T02:46:27.000Z | #-*- encoding:utf-8 -*-
from __future__ import print_function
import sys
try:
reload(sys)
sys.setdefaultencoding('utf-8')
except:
pass
import codecs
from textrank4zh import TextRank4Keyword, TextRank4Sentence
text = codecs.open('../test/doc/01.txt', 'r', 'utf-8').read()
tr4w = TextRank4Keyword()
tr4w.an... | 24.441176 | 109 | 0.731649 | 113 | 831 | 5.247788 | 0.530973 | 0.020236 | 0.05059 | 0.067454 | 0.080944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.127557 | 831 | 34 | 110 | 24.441176 | 0.777931 | 0.098676 | 0 | 0.08 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.16 | 0 | 0.16 | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60de82d5bb8ba90b967a1ecc746d150756ee64d4 | 1,833 | py | Python | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 1 | 2018-11-13T06:03:27.000Z | 2018-11-13T06:03:27.000Z | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 1 | 2020-06-12T08:58:58.000Z | 2020-06-12T08:58:58.000Z | scripts/anonymize_dumpdata.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | null | null | null | import random
import uuid
import sys
import json
from faker import Factory
from faker.providers.person.fi_FI import Provider as PersonProvider
fake = Factory.create('fi_FI')
email_by_user = {}
users_by_id = {}
def anonymize_users(users):
usernames = set()
emails = set()
for data in users:
if data... | 31.067797 | 67 | 0.582106 | 213 | 1,833 | 4.868545 | 0.300469 | 0.048216 | 0.054002 | 0.038573 | 0.104147 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005178 | 0.262411 | 1,833 | 58 | 68 | 31.603448 | 0.761834 | 0 | 0 | 0.039216 | 0 | 0 | 0.173486 | 0.039825 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.019608 | 0.117647 | 0 | 0.156863 | 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 |
60ded314d6e25af4b6bb277bc0ff9652a4d9cb93 | 12,252 | py | Python | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 2,350 | 2021-09-12T08:32:50.000Z | 2022-03-31T18:09:36.000Z | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 588 | 2021-09-12T08:49:08.000Z | 2022-03-31T21:02:13.000Z | torch_geometric/utils/negative_sampling.py | NucciTheBoss/pytorch_geometric | e220a2c08fa1b2f1672d616c22eac2a67b5c8967 | [
"MIT"
] | 505 | 2021-09-13T13:13:32.000Z | 2022-03-31T15:54:00.000Z | import random
from typing import Optional, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from torch_geometric.utils import coalesce, degree, remove_self_loops
from .num_nodes import maybe_num_nodes
def negative_sampling(edge_index: Tensor,
num_nodes: Optional[Union[int... | 39.395498 | 79 | 0.614675 | 1,676 | 12,252 | 4.321599 | 0.137232 | 0.05633 | 0.025128 | 0.017672 | 0.54563 | 0.493856 | 0.414331 | 0.387409 | 0.379953 | 0.350683 | 0 | 0.00768 | 0.266732 | 12,252 | 310 | 80 | 39.522581 | 0.798531 | 0.337251 | 0 | 0.3125 | 0 | 0 | 0.006075 | 0 | 0 | 0 | 0 | 0 | 0.028409 | 1 | 0.039773 | false | 0 | 0.039773 | 0 | 0.153409 | 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 |
60e37ada66e51ab9afb000b29227a5b5f48e9d09 | 6,230 | py | Python | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | p_io.py | JeremyBuchanan/psf-photometry-pipeline | 864818dc8dd946a6e4d8dde1667bf948b769bb39 | [
"MIT"
] | null | null | null | import astropy.io.fits as fits
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import obj_data as od
import saphires as saph
from astropy.time import Time
from astropy.visualization import ZScaleInterval, SqrtStretch, ImageNormalize
from matplotlib.backends.backend_pdf import PdfPages
ra = od.ra
d... | 40.193548 | 135 | 0.586035 | 911 | 6,230 | 3.91438 | 0.255763 | 0.037858 | 0.011778 | 0.012339 | 0.142176 | 0.124229 | 0.103477 | 0.08525 | 0.029164 | 0 | 0 | 0.018333 | 0.264526 | 6,230 | 154 | 136 | 40.454545 | 0.75993 | 0.154414 | 0 | 0.133929 | 0 | 0.008929 | 0.120226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.080357 | 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 |
60e53510234906afd7570dd7318d1a436abfb43e | 2,752 | py | Python | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 2,227 | 2019-02-25T09:34:46.000Z | 2022-03-31T21:30:59.000Z | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 1,728 | 2019-02-25T17:18:16.000Z | 2022-03-31T23:49:18.000Z | Solutions/TenableIO/Data Connectors/azure_sentinel.py | johnbilliris/Azure-Sentinel | ef3c2e3919023e80e15a94544e06e37623e7c1d3 | [
"MIT"
] | 1,624 | 2019-02-28T16:17:38.000Z | 2022-03-31T18:00:02.000Z | import re
import base64
import hmac
import hashlib
import logging
import requests
from datetime import datetime
class AzureSentinel:
def __init__(self, workspace_id, workspace_key, log_type, log_analytics_url=''):
self._workspace_id = workspace_id
self._workspace_key = workspace_key
self.... | 42.338462 | 100 | 0.630087 | 324 | 2,752 | 5.123457 | 0.364198 | 0.06506 | 0.072289 | 0.028916 | 0.072289 | 0.045783 | 0 | 0 | 0 | 0 | 0 | 0.019436 | 0.25218 | 2,752 | 64 | 101 | 43 | 0.787172 | 0 | 0 | 0 | 0 | 0 | 0.18423 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.12069 | 0 | 0.224138 | 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 |
60e59ef3909991b68e7bb0525872e77256366019 | 3,553 | py | Python | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | MiniProject.py | siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion | 42d79fc262d60ecc9eebbe0e77a1576a04979501 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from PIL import ImageGrab
import numpy as np
import cv2
import time
import pyautogui as pg
import DirectInputRoutines as DIR
from LogKey import key_check
last_time = time.time()
one_hot = [0, 0, 0, 0, 0, 0]
hash_dict = {'w':0, 's':1, 'a':2, 'd':3, 'c':4, 'v':5}
X = []
y = []
def a... | 32.3 | 110 | 0.627357 | 517 | 3,553 | 4.203095 | 0.336557 | 0.077312 | 0.034515 | 0.022089 | 0.35803 | 0.355269 | 0.355269 | 0.355269 | 0.355269 | 0.355269 | 0 | 0.057049 | 0.225443 | 3,553 | 110 | 111 | 32.3 | 0.732558 | 0.187447 | 0 | 0.349398 | 0 | 0 | 0.03764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096386 | false | 0 | 0.096386 | 0 | 0.26506 | 0.120482 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60e76b8b07e06048ecf1a15c72134fecf5c97346 | 3,227 | py | Python | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 109 | 2018-07-02T13:52:26.000Z | 2019-09-23T02:33:24.000Z | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 36 | 2018-08-15T19:05:09.000Z | 2019-07-14T17:51:20.000Z | tests/transformation/streamline/test_move_identical_op_past_join_op.py | mmrahorovic/finn | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | [
"BSD-3-Clause"
] | 28 | 2018-08-23T12:46:06.000Z | 2019-09-08T14:19:09.000Z | import pytest
from onnx import TensorProto
from onnx import helper as oh
import finn.core.onnx_exec as oxe
from finn.core.modelwrapper import ModelWrapper
from finn.transformation.streamline.reorder import MoveTransposePastJoinAdd
from finn.util.basic import gen_finn_dt_tensor
def create_model(perm):
if perm ==... | 33.968421 | 84 | 0.707468 | 434 | 3,227 | 4.937788 | 0.221198 | 0.027998 | 0.027998 | 0.039664 | 0.344377 | 0.237051 | 0.163322 | 0.094727 | 0.094727 | 0.094727 | 0 | 0.041395 | 0.191509 | 3,227 | 94 | 85 | 34.329787 | 0.779992 | 0.044004 | 0 | 0.027778 | 0 | 0 | 0.06461 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.027778 | false | 0 | 0.097222 | 0 | 0.138889 | 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 |
60e7afd023af256d856d33c530545d41d0b53bb0 | 1,537 | py | Python | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 1 | 2020-09-23T21:40:16.000Z | 2020-09-23T21:40:16.000Z | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | null | null | null | app/lib/ncr_util.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 3 | 2020-07-11T19:18:12.000Z | 2021-08-14T17:43:06.000Z | import json
from lib import authz
from lib.logger import logger
from lib.exclusions import exclusions, state_machine
def get_allowed_actions(user, account_id, requirement, exclusion):
allowed_actions = {
'remediate': False,
'requestExclusion': False,
'requestExclusionChange': False,
}... | 37.487805 | 96 | 0.739753 | 180 | 1,537 | 6.094444 | 0.35 | 0.076572 | 0.095716 | 0.025524 | 0.16773 | 0.100273 | 0.100273 | 0.100273 | 0.100273 | 0 | 0 | 0.001576 | 0.174366 | 1,537 | 40 | 97 | 38.425 | 0.862884 | 0.167209 | 0 | 0 | 0 | 0 | 0.125 | 0.035032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.32 | 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 |
60e862c41a954427496e89a9970f3280bae259e6 | 2,158 | py | Python | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | SentDex/Chapter05.py | harimaruthachalam/SentDexChapters | b3753ae27b6f965f3611edea9bde2ed5e9478f8f | [
"MIT"
] | null | null | null | import quandl
import math
import numpy as np
from sklearn import preprocessing, cross_validation, svm
from sklearn.linear_model import LinearRegression
import pickle
import datetime
from matplotlib import style
import matplotlib.pyplot as plot
# Config
isLoadFromLocal = True
quandl.ApiConfig.api_key = '76eCnz6z9XTH8nf... | 26.975 | 111 | 0.70899 | 308 | 2,158 | 4.886364 | 0.412338 | 0.026578 | 0.033223 | 0.02392 | 0.094352 | 0.029236 | 0 | 0 | 0 | 0 | 0 | 0.015401 | 0.127433 | 2,158 | 80 | 112 | 26.975 | 0.783856 | 0.095922 | 0 | 0.036364 | 0 | 0 | 0.175864 | 0.034038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.163636 | 0 | 0.163636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60e88e1b2de1fea540026e9d706f57f0d6656209 | 7,824 | py | Python | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | 1 | 2018-05-17T09:48:53.000Z | 2018-05-17T09:48:53.000Z | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | 4 | 2018-05-12T10:43:03.000Z | 2021-02-24T11:17:44.000Z | tifinity/actions/icc_parser.py | pmay/tifinity | e004a0e616c7b7455fac6f01ee9acb892cd560c0 | [
"Apache-2.0"
] | null | null | null | class IccProfile():
"""Parses an ICC Colour Profile.
According to spec: all Profile data shall be encoded as big-endian"""
def __init__(self, bytes):
self.header = {}
self.parse_icc(bytes)
def get_colour_space(self):
"""Returns the data colour space type, or None if not defi... | 45.225434 | 121 | 0.597393 | 977 | 7,824 | 4.647902 | 0.216991 | 0.154151 | 0.079278 | 0.067826 | 0.271306 | 0.192248 | 0.135213 | 0.119797 | 0.055494 | 0.039198 | 0 | 0.03747 | 0.266616 | 7,824 | 173 | 122 | 45.225434 | 0.753921 | 0.092664 | 0 | 0.159091 | 0 | 0 | 0.079167 | 0.013313 | 0 | 0 | 0.003399 | 0.00578 | 0.045455 | 1 | 0.121212 | false | 0 | 0.015152 | 0.015152 | 0.234848 | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60ead80e847ae9dc084472d4e5417a3a4311cbff | 9,413 | py | Python | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | analisis_de_variables.py | scmarquez/Hause-Price-Kaggle-Competition | 5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 29 16:40:53 2017
@author: Sergio
"""
#Analisis de variables
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import ensemble, tree, linear_model
from sklearn.model_selection import train_test_split, cr... | 41.46696 | 147 | 0.739403 | 1,362 | 9,413 | 5.097651 | 0.307636 | 0.034855 | 0.023765 | 0.031687 | 0.115368 | 0.101829 | 0.093764 | 0.08685 | 0.053147 | 0.053147 | 0 | 0.01572 | 0.141719 | 9,413 | 226 | 148 | 41.650442 | 0.843669 | 0.220227 | 0 | 0.101695 | 0 | 0 | 0.130911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076271 | 0 | 0.076271 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60eb25016e8dffa48a7ee4e49cffca99635d22f2 | 566 | py | Python | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | query-gen.py | mdatsev/prostgres | 3418258a8b832546ef4d5009867bf1cf79248b7b | [
"Unlicense"
] | null | null | null | import random
import sys
ntables = 100
ncols = 100
nrows = 10000
def printstderr(s):
sys.stderr.write(s + '\n')
sys.stderr.flush()
def get_value():
return random.randint(-99999999, 99999999)
for t in range(ntables):
printstderr(f'{t}/{ntables}')
print(f"create table x ({','.join(['x int'] * ncols)});")
... | 21.769231 | 76 | 0.609541 | 85 | 566 | 4.023529 | 0.552941 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067834 | 0.19258 | 566 | 26 | 77 | 21.769231 | 0.680525 | 0.061837 | 0 | 0 | 0 | 0 | 0.224953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.277778 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60ec772a2bff1ce4c7f82d3ad31a4b3889b15287 | 708 | py | Python | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | api/main.py | Ju99ernaut/super-fastapi | 83c232bcaff1006d413a9945ced3ba398b673505 | [
"MIT"
] | null | null | null | import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routes import items
import config
from constants import *
config.parse_args()
app = FastAPI(
title="API",
description="API boilerplate",
version="1.0.0",
openapi_tags=API_TAGS_METADATA,
)
app.add_midd... | 18.153846 | 82 | 0.686441 | 87 | 708 | 5.37931 | 0.574713 | 0.047009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005146 | 0.176554 | 708 | 38 | 83 | 18.631579 | 0.797599 | 0 | 0 | 0 | 0 | 0 | 0.117232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60edce602ee84c179651834e36a3725524081131 | 3,522 | py | Python | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 18 | 2021-12-22T09:41:24.000Z | 2022-03-19T12:54:30.000Z | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | null | null | null | sts/train.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 4 | 2021-12-26T11:31:46.000Z | 2022-03-28T07:55:45.000Z | import argparse
import numpy as np
import os
import torch
from transformers import AutoTokenizer, AutoConfig, Trainer, TrainingArguments
from model import RobertaForStsRegression
from dataset import KlueStsWithSentenceMaskDataset
from utils import read_json, seed_everything
from metric import compute_metrics
def ma... | 37.073684 | 87 | 0.727144 | 457 | 3,522 | 5.282276 | 0.2407 | 0.06338 | 0.119718 | 0.024855 | 0.228252 | 0.206711 | 0.158658 | 0.118476 | 0.027341 | 0 | 0 | 0.01253 | 0.161556 | 3,522 | 94 | 88 | 37.468085 | 0.804944 | 0.007666 | 0 | 0 | 0 | 0 | 0.107992 | 0.027499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.118421 | 0 | 0.131579 | 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 |
60edf40403e6f66a0e02912003729be0d59531bb | 1,760 | py | Python | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 28 | 2015-03-26T10:25:31.000Z | 2022-01-31T21:59:11.000Z | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 3 | 2015-09-14T04:10:04.000Z | 2020-01-29T03:52:05.000Z | test/test_base_client.py | walkr/nanoservice | e2098986b1baa5f283167ae487d14f3c6c21961a | [
"MIT"
] | 9 | 2015-09-10T08:11:37.000Z | 2020-11-08T10:41:51.000Z | import unittest
from nanoservice import Responder
from nanoservice import Requester
class BaseTestCase(unittest.TestCase):
def setUp(self):
addr = 'inproc://test'
self.client = Requester(addr)
self.service = Responder(addr)
self.service.register('divide', lambda x, y: x / y)
... | 29.830508 | 62 | 0.630682 | 209 | 1,760 | 5.215311 | 0.339713 | 0.082569 | 0.044037 | 0.040367 | 0.053211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.241477 | 1,760 | 58 | 63 | 30.344828 | 0.812734 | 0.021023 | 0 | 0 | 0 | 0 | 0.067442 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.162791 | false | 0 | 0.069767 | 0 | 0.27907 | 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 |
60f2562d19bb7ab823ff8910d39c430258f1cd35 | 723 | py | Python | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py | kaka-lin/autonomous-driving-notes | 6c1b29752d6deb679637766b6cea5c6fe5b72319 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def gaussian(x, mean, std):
std2 = np.power(std, 2)
return (1 / np.sqrt(2* np.pi * std2)) * np.exp(-.5 * (x - mean)**2 / std2)
if __name__ == "__main__":
gauss_1 = gaussian(10, 8, 2) # 0.12098536225957168
gauss_2 = gaussian(10, 10, 2) # 0.1994711402... | 23.322581 | 78 | 0.580913 | 114 | 723 | 3.578947 | 0.412281 | 0.02451 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149723 | 0.251729 | 723 | 30 | 79 | 24.1 | 0.604436 | 0.120332 | 0 | 0 | 0 | 0 | 0.074485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60f26fe4816d83e373acca7a0999becfe86e2ce4 | 9,029 | py | Python | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 1,682 | 2015-06-15T11:42:03.000Z | 2022-03-29T12:40:35.000Z | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 10 | 2017-06-22T11:35:21.000Z | 2022-02-26T17:37:42.000Z | part19/test_interpreter.py | fazillatheef/lsbasi | 07e1a14516156a21ebe2d82e0bae4bba5ad73dd6 | [
"MIT"
] | 493 | 2015-07-05T09:05:09.000Z | 2022-03-28T03:33:33.000Z | import unittest
class LexerTestCase(unittest.TestCase):
def makeLexer(self, text):
from spi import Lexer
lexer = Lexer(text)
return lexer
def test_tokens(self):
from spi import TokenType
records = (
('234', TokenType.INTEGER_CONST, 234),
('3.14'... | 27.95356 | 84 | 0.507144 | 895 | 9,029 | 5.001117 | 0.165363 | 0.087131 | 0.0563 | 0.08445 | 0.569482 | 0.546917 | 0.509383 | 0.461796 | 0.412645 | 0.395442 | 0 | 0.030057 | 0.373574 | 9,029 | 322 | 85 | 28.040373 | 0.761315 | 0.005427 | 0 | 0.350711 | 0 | 0.004739 | 0.115077 | 0 | 0 | 0 | 0 | 0 | 0.156398 | 1 | 0.090047 | false | 0.004739 | 0.056872 | 0.004739 | 0.194313 | 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 |
60f6336cf78fe6b4d87ec03f5cf82a49ade1394b | 3,493 | py | Python | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | 1 | 2021-04-10T08:21:21.000Z | 2021-04-10T08:21:21.000Z | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | null | null | null | recnn/utils/plot.py | ihash5/reinforcement-learning | c72e9db33c6ed6abd34e9f48012189369b7cd5d0 | [
"Apache-2.0"
] | null | null | null | from scipy.spatial import distance
from scipy import ndimage
import matplotlib.pyplot as plt
import torch
from scipy import stats
import numpy as np
def pairwise_distances_fig(embs):
embs = embs.detach().cpu().numpy()
similarity_matrix_cos = distance.cdist(embs, embs, 'cosine')
similarity_matrix_euc = dis... | 30.373913 | 96 | 0.590896 | 445 | 3,493 | 4.494382 | 0.310112 | 0.028 | 0.012 | 0.0225 | 0.144 | 0.097 | 0.038 | 0.038 | 0.038 | 0.038 | 0 | 0.014464 | 0.287432 | 3,493 | 114 | 97 | 30.640351 | 0.789072 | 0.036358 | 0 | 0.136364 | 0 | 0 | 0.041679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.068182 | 0.022727 | 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 |
60f86292339dc07295795b770971581f3a845840 | 2,855 | py | Python | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | backend/user/scripter.py | ivaivalous/ivodb | e9b0969225fdb725d35a2ecfab21f87d1d9b2a00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import responses
from selenium import webdriver
# This file contains/references the default JS
# used to provide functions dealing with input/output
SCRIPT_RUNNER = "runner.html"
ENCODING = 'utf-8'
PAGE_LOAD_TIMEOUT = 5
PAGE_LOAD_TIMEOUT_MS = PAGE_LOAD_TIMEOUT * 1000
capabilities = webdriver.D... | 31.032609 | 79 | 0.652539 | 327 | 2,855 | 5.48318 | 0.348624 | 0.031233 | 0.058561 | 0.038483 | 0.066927 | 0.039041 | 0 | 0 | 0 | 0 | 0 | 0.006497 | 0.245184 | 2,855 | 91 | 80 | 31.373626 | 0.825522 | 0.090368 | 0 | 0.045455 | 0 | 0.015152 | 0.206497 | 0.028229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.030303 | 0.015152 | 0.227273 | 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 |
60f89950c5e281ca1dca03166764cafad747aec6 | 1,490 | py | Python | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | null | null | null | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | null | null | null | bwtougu/api/names.py | luhouxiang/byrobot | e110e7865965a344d2b61cb925c959cee1387758 | [
"Apache-2.0"
] | 1 | 2018-09-28T08:59:38.000Z | 2018-09-28T08:59:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
VALID_HISTORY_FIELDS = [
'datetime', 'open', 'close', 'high', 'low', 'total_turnover', 'volume',
'acc_net_value', 'discount_rate', 'unit_net_value',
'limit_up', 'limit_down', 'open_interest', 'basis_spread', 'settlement', 'prev_settlement'
]
VALID_GET_PRICE_FI... | 25.689655 | 94 | 0.619463 | 160 | 1,490 | 5.43125 | 0.6875 | 0.018412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022801 | 0.175839 | 1,490 | 57 | 95 | 26.140351 | 0.684853 | 0.028188 | 0 | 0 | 0 | 0 | 0.515214 | 0.047026 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60f8eaaad292345c3bccc32bf4de41d8a5ec6e07 | 9,830 | py | Python | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 114 | 2019-05-31T03:54:05.000Z | 2022-03-28T06:37:27.000Z | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 7 | 2019-08-12T01:35:22.000Z | 2020-09-23T17:32:46.000Z | src/PeerRead/data_cleaning/process_PeerRead_abstracts.py | dveni/causal-text-embeddings | 82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a | [
"MIT"
] | 20 | 2019-06-03T05:33:10.000Z | 2022-02-04T19:34:41.000Z | """
Simple pre-processing for PeerRead papers.
Takes in JSON formatted data from ScienceParse and outputs a tfrecord
Reference example:
https://github.com/tensorlayer/tensorlayer/blob/9528da50dfcaf9f0f81fba9453e488a1e6c8ee8f/examples/data_process/tutorial_tfrecord3.py
"""
import argparse
import glob
import os
import... | 33.896552 | 132 | 0.662665 | 1,257 | 9,830 | 4.945903 | 0.249006 | 0.016889 | 0.021232 | 0.019302 | 0.189641 | 0.175808 | 0.130931 | 0.111629 | 0.105839 | 0.105839 | 0 | 0.013627 | 0.238555 | 9,830 | 289 | 133 | 34.013841 | 0.8167 | 0.219532 | 0 | 0.06875 | 0 | 0 | 0.073226 | 0.017841 | 0 | 0 | 0 | 0.00346 | 0.01875 | 1 | 0.06875 | false | 0.00625 | 0.075 | 0 | 0.23125 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60fad164495b1d30558324f3422b6ab9ad4d496c | 5,268 | py | Python | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | 6 | 2018-05-07T04:04:58.000Z | 2021-05-15T17:44:16.000Z | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | null | null | null | lib/shop.py | ZakDoesGaming/OregonTrail | 90cab35536ac5c6ba9e772ac5c29c914017c9c23 | [
"MIT"
] | 2 | 2017-05-27T17:06:23.000Z | 2020-08-26T17:57:10.000Z | from pygame import Surface, font
from copy import copy
from random import randint, choice
import string
from lib.transactionButton import TransactionButton
SHOP_PREFIX = ["archer", "baker", "fisher", "miller", "rancher", "robber"]
SHOP_SUFFIX = ["cave", "creek", "desert", "farm", "field", "forest", "hill", "lake", "m... | 41.480315 | 137 | 0.650721 | 643 | 5,268 | 5.301711 | 0.200622 | 0.140804 | 0.105896 | 0.114696 | 0.523614 | 0.485186 | 0.397771 | 0.306248 | 0.295688 | 0.295688 | 0 | 0.050152 | 0.186219 | 5,268 | 127 | 138 | 41.480315 | 0.745043 | 0 | 0 | 0.32381 | 0 | 0 | 0.038337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.009524 | 0.047619 | 0 | 0.114286 | 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 |
60fb27a39e6c08f8aae7d5554b69bcd58cf5b1d9 | 2,047 | py | Python | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | core/dataflow/test/test_runners.py | ajmal017/amp | 8de7e3b88be87605ec3bad03c139ac64eb460e5c | [
"BSD-3-Clause"
] | null | null | null | import logging
import numpy as np
import core.dataflow as dtf
import helpers.unit_test as hut
_LOG = logging.getLogger(__name__)
class TestRollingFitPredictDagRunner(hut.TestCase):
def test1(self) -> None:
"""
Test the DagRunner using `ArmaReturnsBuilder`
"""
dag_builder = dtf.... | 31.984375 | 76 | 0.616512 | 247 | 2,047 | 4.8583 | 0.42915 | 0.083333 | 0.053333 | 0.025 | 0.405 | 0.358333 | 0.291667 | 0.291667 | 0.291667 | 0.291667 | 0 | 0.040273 | 0.284319 | 2,047 | 63 | 77 | 32.492063 | 0.77884 | 0.128969 | 0 | 0.238095 | 0 | 0 | 0.057192 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.047619 | false | 0 | 0.095238 | 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 |
60fb78d100400013bb9e1879a2d59065d01b4f6b | 4,478 | py | Python | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | Main Project/Main_Program.py | hmnk-1967/OCR-Python-Project-CS-BUIC | 28c72d9913a25655f6183a7b960e527a0432c8e1 | [
"MIT"
] | null | null | null | import tkinter.messagebox
from tkinter import *
import tkinter as tk
from tkinter import filedialog
import numpy
import pytesseract #Python wrapper for Google-owned OCR engine known by the name of Tesseract.
import cv2
from PIL import Image, ImageTk
import os
root = tk.Tk()
root.title("Object Character Recognizer")
ro... | 44.336634 | 209 | 0.692497 | 664 | 4,478 | 4.587349 | 0.308735 | 0.068943 | 0.019698 | 0.018385 | 0.516415 | 0.487196 | 0.451412 | 0.435653 | 0.408076 | 0.408076 | 0 | 0.048106 | 0.192273 | 4,478 | 100 | 210 | 44.78 | 0.794028 | 0.125726 | 0 | 0.458824 | 0 | 0.011765 | 0.079345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0 | 0.105882 | 0 | 0.152941 | 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 |
60fc4c563a78f035d637363b6ec3e80079aa3d28 | 10,095 | py | Python | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | python/tests/test-1-vector.py | wence-/libCEED | c785ad36304ed34c5edefb75cf1a0fe5445db17b | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
# reserved. See files LICENSE and NOTICE for details.
#
# This file is part of CEED, a collection of benchmarks, miniapps, software
# libraries and APIs for efficient h... | 28.597734 | 81 | 0.470134 | 1,210 | 10,095 | 3.81405 | 0.187603 | 0.075406 | 0.045287 | 0.057638 | 0.554496 | 0.505309 | 0.478873 | 0.478873 | 0.450054 | 0.450054 | 0 | 0.02457 | 0.19366 | 10,095 | 352 | 82 | 28.678977 | 0.542383 | 0.404656 | 0 | 0.555556 | 0 | 0 | 0.000505 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 1 | 0.083333 | false | 0 | 0.022222 | 0 | 0.105556 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60ff05c6f96bea8d8b81dd6255359543dc3d93ad | 1,562 | py | Python | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | 2 | 2017-01-20T15:26:25.000Z | 2017-08-03T04:38:08.000Z | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | src/waldur_mastermind/billing/tests/test_price_current.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | from freezegun import freeze_time
from rest_framework import test
from waldur_mastermind.billing.tests.utils import get_financial_report_url
from waldur_mastermind.invoices import models as invoice_models
from waldur_mastermind.invoices.tests import factories as invoice_factories
from waldur_mastermind.invoices.tests ... | 37.190476 | 80 | 0.68822 | 174 | 1,562 | 5.977011 | 0.37931 | 0.074038 | 0.076923 | 0.080769 | 0.365385 | 0.305769 | 0.230769 | 0.230769 | 0.230769 | 0.230769 | 0 | 0.021488 | 0.225352 | 1,562 | 41 | 81 | 38.097561 | 0.838017 | 0 | 0 | 0.166667 | 0 | 0 | 0.060819 | 0.042254 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
60ff33dc263000945ad4491d74e8e10a35657808 | 16,741 | py | Python | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | tests/test_cli/test_utils/test_utils.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 39.206089 | 88 | 0.696792 | 2,063 | 16,741 | 5.383907 | 0.128454 | 0.024309 | 0.043576 | 0.049968 | 0.588998 | 0.494103 | 0.439092 | 0.395696 | 0.338795 | 0.311245 | 0 | 0.002403 | 0.179798 | 16,741 | 426 | 89 | 39.298122 | 0.806496 | 0.173227 | 0 | 0.293478 | 0 | 0 | 0.201941 | 0.124871 | 0 | 0 | 0 | 0 | 0.155797 | 1 | 0.112319 | false | 0 | 0.054348 | 0 | 0.228261 | 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 |
88019b110382885f8543e3444fa6b00a5c38b567 | 3,691 | py | Python | run_clone.py | tGhattas/IMP-seamless-cloning | 2c81e0bd9bc99955afe06ec4eea187a5a42761e3 | [
"MIT"
] | null | null | null | run_clone.py | tGhattas/IMP-seamless-cloning | 2c81e0bd9bc99955afe06ec4eea187a5a42761e3 | [
"MIT"
] | null | null | null | run_clone.py | tGhattas/IMP-seamless-cloning | 2c81e0bd9bc99955afe06ec4eea187a5a42761e3 | [
"MIT"
] | null | null | null | import cv2
import getopt
import sys
from gui import MaskPainter, MaskMover
from clone import seamless_cloning, shepards_seamless_cloning
from utils import read_image, plt
from os import path
def usage():
print(
"Usage: python run_clone.py [options] \n\n\
Options: \n\
\t-h\t Flag to specify... | 33.554545 | 147 | 0.629098 | 538 | 3,691 | 4.200743 | 0.289963 | 0.030973 | 0.026549 | 0.035398 | 0.153097 | 0.133628 | 0.133628 | 0.133628 | 0.09292 | 0.09292 | 0 | 0.006874 | 0.251151 | 3,691 | 110 | 148 | 33.554545 | 0.810781 | 0.056082 | 0 | 0.108108 | 0 | 0.040541 | 0.151379 | 0.025016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.094595 | 0 | 0.108108 | 0.121622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88044ce700e39ec36bb7ba44d3c9905b593ae3a4 | 4,460 | py | Python | painter.py | MikhailNakhatovich/rooms_painting | 51b92797c867d4bb1c8d42a58785c0f4dacd4075 | [
"MIT"
] | null | null | null | painter.py | MikhailNakhatovich/rooms_painting | 51b92797c867d4bb1c8d42a58785c0f4dacd4075 | [
"MIT"
] | null | null | null | painter.py | MikhailNakhatovich/rooms_painting | 51b92797c867d4bb1c8d42a58785c0f4dacd4075 | [
"MIT"
] | null | null | null | import cv2
import ezdxf
import numpy as np
def draw_hatch(img, entity, color, mask):
for poly_path in entity.paths.paths:
# print(poly_path.path_type_flags)
polygon = np.array([vertex[:-1] for vertex in poly_path.vertices]).astype(int)
if poly_path.path_type_flags & 1 == 1:
cv2... | 35.11811 | 99 | 0.578924 | 686 | 4,460 | 3.69242 | 0.218659 | 0.0379 | 0.044216 | 0.049743 | 0.305567 | 0.240821 | 0.196605 | 0.192657 | 0.11291 | 0.071062 | 0 | 0.054997 | 0.241704 | 4,460 | 126 | 100 | 35.396825 | 0.693968 | 0.014574 | 0 | 0.133333 | 0 | 0 | 0.024362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07619 | false | 0 | 0.028571 | 0 | 0.171429 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8804685e3bac745bbfacb5b5cab8b6e032a05238 | 3,064 | py | Python | misago/misago/users/serializers/auth.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/users/serializers/auth.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/users/serializers/auth.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework import serializers
from ...acl.useracl import serialize_user_acl
from .user import UserSerializer
User = get_user_model()
__all__ = ["AuthenticatedUserSerializer", "AnonymousUserSerializer"]
class AuthFlags:
def ... | 31.587629 | 87 | 0.616841 | 310 | 3,064 | 5.903226 | 0.251613 | 0.071038 | 0.087432 | 0.10929 | 0.329508 | 0.236066 | 0.212022 | 0.212022 | 0.212022 | 0.212022 | 0 | 0 | 0.262402 | 3,064 | 96 | 88 | 31.916667 | 0.809735 | 0 | 0 | 0.253165 | 0 | 0 | 0.234987 | 0.152415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0.037975 | 0.063291 | 0.050633 | 0.379747 | 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 |
8805528dd519906fc019a797eb45969b31e9b633 | 7,470 | py | Python | supriya/patterns/NoteEvent.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/patterns/NoteEvent.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/patterns/NoteEvent.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | import uuid
import supriya.commands
import supriya.realtime
from supriya.patterns.Event import Event
class NoteEvent(Event):
### CLASS VARIABLES ###
__slots__ = ()
### INITIALIZER ###
def __init__(
self,
add_action=None,
delta=None,
duration=None,
is_stop=T... | 35.571429 | 86 | 0.545382 | 740 | 7,470 | 5.306757 | 0.163514 | 0.045837 | 0.033613 | 0.029539 | 0.403871 | 0.346066 | 0.310924 | 0.302521 | 0.270945 | 0.176725 | 0 | 0.00215 | 0.377242 | 7,470 | 209 | 87 | 35.741627 | 0.842003 | 0.018876 | 0 | 0.409574 | 0 | 0 | 0.018612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026596 | false | 0.005319 | 0.053191 | 0 | 0.117021 | 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 |
88055aadf736a00daf291c08df0121953d6b59c8 | 443 | py | Python | emoji_utils.py | ApacheAA/LastSeen | 1fe675b3ee3072d56e9fe094d1d80e1f7d876215 | [
"MIT"
] | null | null | null | emoji_utils.py | ApacheAA/LastSeen | 1fe675b3ee3072d56e9fe094d1d80e1f7d876215 | [
"MIT"
] | null | null | null | emoji_utils.py | ApacheAA/LastSeen | 1fe675b3ee3072d56e9fe094d1d80e1f7d876215 | [
"MIT"
] | 1 | 2021-04-04T02:46:10.000Z | 2021-04-04T02:46:10.000Z | # unicode digit emojis
# digits from '0' to '9'
zero_digit_code = zd = 48
# excluded digits
excl_digits = [2, 4, 5, 7]
# unicode digit keycap
udkc = '\U0000fe0f\U000020e3'
hours_0_9 = [chr(i) + udkc for i in range(zd, zd + 10)
if i - zd not in excl_digits]
# number '10' emoji
hours_0_9.append('\U0001f51f')
# ... | 26.058824 | 54 | 0.654628 | 77 | 443 | 3.636364 | 0.584416 | 0.085714 | 0.05 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143258 | 0.196388 | 443 | 17 | 55 | 26.058824 | 0.643258 | 0.293454 | 0 | 0 | 0 | 0 | 0.159609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88059d921ab4392734ab0df3051f19d38efd4fa5 | 1,131 | py | Python | TFBertForMaskedLM/main.py | Sniper970119/ExampleForTransformers | 3348525957c38b2a45898d4f4652879933503b25 | [
"Apache-2.0"
] | 3 | 2021-01-24T04:55:46.000Z | 2021-05-12T15:11:35.000Z | TFBertForMaskedLM/main.py | Sniper970119/ExampleForTransformers | 3348525957c38b2a45898d4f4652879933503b25 | [
"Apache-2.0"
] | null | null | null | TFBertForMaskedLM/main.py | Sniper970119/ExampleForTransformers | 3348525957c38b2a45898d4f4652879933503b25 | [
"Apache-2.0"
] | 1 | 2021-01-24T04:55:53.000Z | 2021-01-24T04:55:53.000Z | # -*- coding:utf-8 -*-
"""
┏┛ ┻━━━━━┛ ┻┓
┃ ┃
┃ ━ ┃
┃ ┳┛ ┗┳ ┃
┃ ┃
┃ ┻ ┃
┃ ┃
┗━┓ ┏━━━┛
┃ ┃ 神兽保佑
┃ ┃ 代码无BUG!
┃ ┗━━━━━━━━━┓
┃CREATE BY SNIPER┣┓
┃ ┏┛
┗━┓ ┓ ┏━━━┳ ┓ ┏━┛
... | 21.75 | 78 | 0.546419 | 157 | 1,131 | 4.43949 | 0.484076 | 0.028694 | 0.017217 | 0.063128 | 0.364419 | 0.209469 | 0.209469 | 0.209469 | 0.209469 | 0.209469 | 0 | 0.008547 | 0.275862 | 1,131 | 51 | 79 | 22.176471 | 0.735043 | 0.227233 | 0 | 0.222222 | 0 | 0 | 0.13264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88063bdddf555a3761172dbc965029eec4f02090 | 6,071 | py | Python | kornia/geometry/calibration/undistort.py | belltailjp/kornia | cfa3b6823d55e276893847f1c3f06ddf108c606a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-06T00:36:04.000Z | 2022-01-06T00:36:04.000Z | kornia/geometry/calibration/undistort.py | belltailjp/kornia | cfa3b6823d55e276893847f1c3f06ddf108c606a | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2021-09-26T14:07:49.000Z | 2022-03-20T14:08:08.000Z | kornia/geometry/calibration/undistort.py | belltailjp/kornia | cfa3b6823d55e276893847f1c3f06ddf108c606a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import torch
from kornia.geometry.linalg import transform_points
from kornia.geometry.transform import remap
from kornia.utils import create_meshgrid
from .distort import distort_points, tilt_projection
# Based on https://github.com/opencv/opencv/blob/master/modules/calib3d/src/undistort.dispatch.cpp#L384
def undis... | 39.679739 | 109 | 0.567452 | 954 | 6,071 | 3.519916 | 0.205451 | 0.058964 | 0.030971 | 0.008338 | 0.419297 | 0.402621 | 0.379393 | 0.366885 | 0.366885 | 0.366885 | 0 | 0.06257 | 0.260254 | 6,071 | 152 | 110 | 39.940789 | 0.685148 | 0.447373 | 0 | 0.092308 | 0 | 0 | 0.116677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.076923 | 0 | 0.138462 | 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 |
8808d379a8ce975e29508dea21a42397452fc552 | 2,489 | py | Python | vispy/io/datasets.py | hmaarrfk/vispy | 7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2 | [
"BSD-3-Clause"
] | 2,617 | 2015-01-02T07:52:18.000Z | 2022-03-29T19:31:15.000Z | vispy/io/datasets.py | hmaarrfk/vispy | 7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2 | [
"BSD-3-Clause"
] | 1,674 | 2015-01-01T00:36:08.000Z | 2022-03-31T19:35:56.000Z | vispy/io/datasets.py | hmaarrfk/vispy | 7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2 | [
"BSD-3-Clause"
] | 719 | 2015-01-10T14:25:00.000Z | 2022-03-02T13:24:56.000Z | # -*- coding: utf-8 -*-
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
import numpy as np
from os import path as op
from ..util import load_data_file
# This is the package data dir, not the dir for config, etc.
DATA_DIR = op.join... | 26.2 | 73 | 0.60225 | 313 | 2,489 | 4.722045 | 0.485623 | 0.016238 | 0.024357 | 0.023004 | 0.139378 | 0.110961 | 0.078484 | 0.078484 | 0.078484 | 0.078484 | 0 | 0.032009 | 0.271997 | 2,489 | 94 | 74 | 26.478723 | 0.783664 | 0.482925 | 0 | 0 | 0 | 0 | 0.166968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 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 |
8809a9e20076798a2ad0ec40dc57152d0a032e41 | 13,731 | py | Python | universal_portfolio/knapsack.py | jehung/universal_portfolio | de731a6166ff057c8d6f3f73f80f9aca151805fa | [
"CC-BY-3.0"
] | 14 | 2017-03-01T07:54:17.000Z | 2021-10-10T11:07:56.000Z | universal_portfolio/knapsack.py | jehung/universal_portfolio | de731a6166ff057c8d6f3f73f80f9aca151805fa | [
"CC-BY-3.0"
] | null | null | null | universal_portfolio/knapsack.py | jehung/universal_portfolio | de731a6166ff057c8d6f3f73f80f9aca151805fa | [
"CC-BY-3.0"
] | 3 | 2017-06-27T10:18:03.000Z | 2020-07-03T01:29:56.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function
import numpy as np
np.random.seed(1335) # for reproducibility
np.set_printoptions(precision=5, suppress=True, linewidth=150)
import os
import pandas as pd
import backtest as twp
from matplotlib import pyplot as plt
from sklearn import metrics, preprocessin... | 36.134211 | 145 | 0.610516 | 1,841 | 13,731 | 4.435633 | 0.23031 | 0.03037 | 0.009429 | 0.011021 | 0.296228 | 0.267205 | 0.24602 | 0.187607 | 0.170463 | 0.155033 | 0 | 0.023539 | 0.269827 | 13,731 | 379 | 146 | 36.229551 | 0.790944 | 0.165247 | 0 | 0.212766 | 0 | 0 | 0.045692 | 0.002109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029787 | false | 0.004255 | 0.068085 | 0.004255 | 0.13617 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
880a98e6cfdd279e5621d17d6384a4912cab6353 | 7,165 | py | Python | experiments/experiment_01.py | bask0/q10hybrid | 9b18af9dd382c65dd667139f97e7da0241091a2c | [
"Apache-2.0"
] | 2 | 2021-05-05T13:37:58.000Z | 2021-05-05T15:11:07.000Z | experiments/experiment_01.py | bask0/q10hybrid | 9b18af9dd382c65dd667139f97e7da0241091a2c | [
"Apache-2.0"
] | null | null | null | experiments/experiment_01.py | bask0/q10hybrid | 9b18af9dd382c65dd667139f97e7da0241091a2c | [
"Apache-2.0"
] | 1 | 2021-11-23T18:13:08.000Z | 2021-11-23T18:13:08.000Z |
import pytorch_lightning as pl
import optuna
import xarray as xr
from pytorch_lightning.callbacks.early_stopping import EarlyStopping
from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
import os
import shutil
from argparse import ArgumentParser
from datetime import datetime
from project.fluxda... | 32.130045 | 112 | 0.579204 | 839 | 7,165 | 4.72348 | 0.330155 | 0.020187 | 0.017663 | 0.014635 | 0.09084 | 0.081252 | 0.055514 | 0.055514 | 0.040373 | 0.040373 | 0 | 0.029578 | 0.282763 | 7,165 | 222 | 113 | 32.274775 | 0.741584 | 0.105234 | 0 | 0.074324 | 0 | 0 | 0.101067 | 0.014595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.074324 | 0 | 0.128378 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
880bad578d9944f1ec06e580824fc923f1978b8e | 2,886 | py | Python | main.py | warifp/InstagramPostAndDelete | d22577325eccf42e629cef076ab43f7788587bc4 | [
"MIT"
] | 4 | 2019-06-03T04:00:51.000Z | 2021-11-09T21:34:38.000Z | main.py | nittaya1990/InstagramPostAndDelete | d22577325eccf42e629cef076ab43f7788587bc4 | [
"MIT"
] | null | null | null | main.py | nittaya1990/InstagramPostAndDelete | d22577325eccf42e629cef076ab43f7788587bc4 | [
"MIT"
] | 4 | 2019-10-30T19:44:08.000Z | 2021-09-07T16:30:09.000Z | #! @@Author : WAHYU ARIF PURNOMO
#! @@Create : 18 Januari 2019
#! @@Modify : 19 Januari 2019
#! Gambar dari reddit.
#! Gunakan VPN karena DNS situs reddit sudah di blokir dari negara Indonesia.
import os
import json
import requests
import progressbar
from PIL import Image
from lxml import html
from time import sleep
f... | 28.574257 | 125 | 0.615731 | 372 | 2,886 | 4.61828 | 0.330645 | 0.057043 | 0.034924 | 0.025611 | 0.071595 | 0.023283 | 0 | 0 | 0 | 0 | 0 | 0.017274 | 0.257796 | 2,886 | 100 | 126 | 28.86 | 0.784781 | 0.063756 | 0 | 0.149425 | 0 | 0 | 0.114201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0.045977 | 0.103448 | 0 | 0.16092 | 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 |
880bf5d9dd1fda0ba4fc9eafcb000337f1273e4d | 1,673 | py | Python | DFS_Backtracking/31. Next Permutation.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | 2 | 2021-04-02T11:57:46.000Z | 2021-04-02T11:57:47.000Z | DFS_Backtracking/31. Next Permutation.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | DFS_Backtracking/31. Next Permutation.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | class Solution:
def __init__(self):
self.res = []
self.path = []
def arr_to_num(self, arr):
s = ""
for x in arr:
s += str(x)
return int(s)
def find_position(self, nums):
for i in range(len(self.res)):
if self.res[i] == nums:
... | 26.140625 | 89 | 0.499701 | 218 | 1,673 | 3.733945 | 0.348624 | 0.060197 | 0.029484 | 0.040541 | 0.09828 | 0.046683 | 0 | 0 | 0 | 0 | 0 | 0.013579 | 0.383742 | 1,673 | 63 | 90 | 26.555556 | 0.775946 | 0.156007 | 0 | 0 | 0 | 0 | 0.058611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
880c149eaa01b78f766f6b8032706b3698b74fbc | 1,392 | py | Python | plugin/DataExport/extend.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | plugin/DataExport/extend.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | plugin/DataExport/extend.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | #!/usr/bin/python
# Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved
import subprocess
import re
pluginName = 'DataExport'
pluginDir = ""
networkFS = ["nfs", "cifs"]
localFS = ["ext4", "ext3", "xfs", "ntfs", "exfat", "vboxsf"]
supportedFS = ",".join(localFS + networkFS)
def test(bucket):
return... | 27.84 | 131 | 0.569684 | 156 | 1,392 | 5.057692 | 0.538462 | 0.035488 | 0.035488 | 0.048162 | 0.17744 | 0.17744 | 0.17744 | 0.17744 | 0.17744 | 0.17744 | 0 | 0.014042 | 0.283764 | 1,392 | 49 | 132 | 28.408163 | 0.777332 | 0.05819 | 0 | 0.057143 | 0 | 0 | 0.097021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.057143 | 0.028571 | 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 |
880c1d871834c4fa9a80907f77053c53af975688 | 5,205 | py | Python | boids/biods_object.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | 1 | 2022-02-21T15:54:01.000Z | 2022-02-21T15:54:01.000Z | boids/biods_object.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | null | null | null | boids/biods_object.py | PaulAustin/sb7-pgz | fca3e50132b9d1894fb348b2082e83ce7b937b19 | [
"MIT"
] | 2 | 2020-11-21T16:34:22.000Z | 2021-01-27T10:30:34.000Z | # Ported from JavaSript version to Python and Pygame Zero
# Designed to work well with mu-editor environment.
#
# The original Javascript version wasdonw by Ben Eater
# at https://github.com/beneater/boids (MIT License)
# No endorsement implied.
#
# Complex numbers are are used as vectors to integrate x and y positions... | 31.932515 | 88 | 0.602882 | 714 | 5,205 | 4.2493 | 0.292717 | 0.055372 | 0.015821 | 0.019776 | 0.223797 | 0.212591 | 0.158866 | 0.051417 | 0.051417 | 0.023731 | 0 | 0.024722 | 0.308357 | 5,205 | 162 | 89 | 32.12963 | 0.818056 | 0.244573 | 0 | 0.117117 | 0 | 0 | 0.005644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.018018 | 0 | 0.144144 | 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 |
880d1df9e7fa8cda82be2e587cdbae5ea94afb44 | 4,960 | py | Python | upoutdf/types/recurring/yearly.py | UpOut/UpOutDF | 5d2f87884565d98b77e25c6a26af7dbea266be76 | [
"MIT"
] | null | null | null | upoutdf/types/recurring/yearly.py | UpOut/UpOutDF | 5d2f87884565d98b77e25c6a26af7dbea266be76 | [
"MIT"
] | null | null | null | upoutdf/types/recurring/yearly.py | UpOut/UpOutDF | 5d2f87884565d98b77e25c6a26af7dbea266be76 | [
"MIT"
] | null | null | null | # coding: utf-8
import pytz
from dateutil.relativedelta import relativedelta
from .base import BaseRecurring
from upoutdf.occurences import OccurenceBlock, OccurenceGroup
from upoutdf.constants import YEARLY_TYPE
class YearlyType(BaseRecurring):
year_day = None
required_attributes = [
'every',
... | 30.060606 | 87 | 0.594153 | 526 | 4,960 | 5.359316 | 0.222433 | 0.074495 | 0.044697 | 0.025541 | 0.208585 | 0.125576 | 0.092941 | 0.077332 | 0.044697 | 0 | 0 | 0.002107 | 0.330242 | 4,960 | 164 | 88 | 30.243902 | 0.846478 | 0.050806 | 0 | 0.157895 | 0 | 0 | 0.053214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.04386 | 0.008772 | 0.184211 | 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 |
880d94d22915e741e24ad40b49de37d7ad8757e9 | 625 | py | Python | project/urls.py | dbinetti/captable | 29769b2b99a3185fda241b3087ccbe621f8c97a2 | [
"BSD-2-Clause"
] | 18 | 2016-05-12T18:49:09.000Z | 2021-10-05T13:29:09.000Z | project/urls.py | dbinetti/captable | 29769b2b99a3185fda241b3087ccbe621f8c97a2 | [
"BSD-2-Clause"
] | null | null | null | project/urls.py | dbinetti/captable | 29769b2b99a3185fda241b3087ccbe621f8c97a2 | [
"BSD-2-Clause"
] | 5 | 2015-08-28T02:50:30.000Z | 2019-11-14T04:03:05.000Z | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
urlpatterns = patterns(
'',
url(r'^$', TemplateView.as_view(template_name='home.html'), ... | 31.25 | 85 | 0.7248 | 79 | 625 | 5.658228 | 0.367089 | 0.044743 | 0.076063 | 0.116331 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1088 | 625 | 19 | 86 | 32.894737 | 0.802513 | 0 | 0 | 0 | 0 | 0 | 0.1664 | 0.0464 | 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 |
880ea7ec7f81ab78d2446766017eac398be3d80f | 9,388 | py | Python | common/evaluators/bert_emotion_evaluator.py | marjanhs/procon20 | c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b | [
"MIT"
] | 5 | 2020-07-12T08:27:47.000Z | 2021-10-16T11:40:48.000Z | common/evaluators/bert_emotion_evaluator.py | marjanhs/procon20 | c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b | [
"MIT"
] | null | null | null | common/evaluators/bert_emotion_evaluator.py | marjanhs/procon20 | c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b | [
"MIT"
] | 1 | 2021-04-12T09:54:37.000Z | 2021-04-12T09:54:37.000Z | import warnings
import numpy as np
import torch
import torch.nn.functional as F
from sklearn import metrics
from torch.utils.data import DataLoader, SequentialSampler, TensorDataset
from tqdm import tqdm
from datasets.bert_processors.abstract_processor import convert_examples_to_features_with_emotion, \
... | 51.582418 | 166 | 0.678526 | 1,188 | 9,388 | 5.022727 | 0.127104 | 0.041562 | 0.018435 | 0.016759 | 0.686275 | 0.651249 | 0.604491 | 0.589073 | 0.580694 | 0.549858 | 0 | 0.003474 | 0.233383 | 9,388 | 181 | 167 | 51.867403 | 0.825622 | 0.004048 | 0 | 0.450704 | 0 | 0 | 0.028263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021127 | false | 0 | 0.077465 | 0 | 0.126761 | 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 |
881189eb3c68f5eb6d4b3bde9fa97065430d1651 | 781 | py | Python | model/mlp1.py | andrearosasco/DistilledReplay | 2a4efa88d22b9afc7016f07549114688f346dbe8 | [
"MIT"
] | 7 | 2021-06-27T16:09:13.000Z | 2022-03-17T20:02:55.000Z | model/mlp1.py | andrew-r96/DistilledReplay | 2a4efa88d22b9afc7016f07549114688f346dbe8 | [
"MIT"
] | null | null | null | model/mlp1.py | andrew-r96/DistilledReplay | 2a4efa88d22b9afc7016f07549114688f346dbe8 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
class Model(nn.Module):
def __init__(self, config):
super(Model, self).__init__()
self.drop = nn.Dropout(config['dropout'])
self.fc1 = nn.Linear(784, 2000)
self.fc2 = nn.Linear(2000, 2000)
self.fc3 = nn.Linea... | 28.925926 | 50 | 0.516005 | 111 | 781 | 3.558559 | 0.27027 | 0.121519 | 0.121519 | 0.101266 | 0.412658 | 0.260759 | 0.260759 | 0.205063 | 0.205063 | 0 | 0 | 0.162835 | 0.331626 | 781 | 27 | 51 | 28.925926 | 0.59387 | 0.079385 | 0 | 0 | 0 | 0 | 0.010174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
881335d234ca66e078e1413e1e2269e82e80ed06 | 5,709 | py | Python | train.py | VArdulov/learning-kis | 2637f08d5e8027a22feff17064be45ea51f738e5 | [
"MIT"
] | null | null | null | train.py | VArdulov/learning-kis | 2637f08d5e8027a22feff17064be45ea51f738e5 | [
"MIT"
] | null | null | null | train.py | VArdulov/learning-kis | 2637f08d5e8027a22feff17064be45ea51f738e5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
""" Learning Koopman Invariant Subspace
(c) Naoya Takeishi, 2017.
takeishi@ailab.t.u-tokyo.ac.jp
"""
import numpy as np
np.random.seed(1234567890)
from argparse import ArgumentParser
from os import path
import time
from lkis import TimeSeriesBatchMaker, KoopmanInvariantSubspa... | 38.574324 | 145 | 0.669294 | 825 | 5,709 | 4.432727 | 0.266667 | 0.044025 | 0.065081 | 0.016407 | 0.196883 | 0.121411 | 0.073831 | 0.073831 | 0.073831 | 0.05469 | 0 | 0.013932 | 0.207917 | 5,709 | 147 | 146 | 38.836735 | 0.794781 | 0.088632 | 0 | 0.163462 | 0 | 0 | 0.216712 | 0.028753 | 0 | 0 | 0 | 0.006803 | 0 | 1 | 0 | false | 0 | 0.096154 | 0 | 0.096154 | 0.048077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8813da3968ae4a879a3ffd1fca43f066e89df5ea | 671 | py | Python | Algorithms/Easy/1200. Minimum Absolute Difference/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1200. Minimum Absolute Difference/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1200. Minimum Absolute Difference/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | from typing import List
class Solution:
def minimumAbsDifference(self, arr: List[int]) -> List[List[int]]:
arr.sort()
res = []
min_diff = arr[1] - arr[0]
res.append([arr[0], arr[1]])
for i in range(1, len(arr)-1):
diff = arr[i+1]-arr[i]
if diff < min... | 26.84 | 70 | 0.490313 | 91 | 671 | 3.483516 | 0.43956 | 0.07571 | 0.113565 | 0.082019 | 0.113565 | 0.113565 | 0.113565 | 0 | 0 | 0 | 0 | 0.050459 | 0.350224 | 671 | 24 | 71 | 27.958333 | 0.676606 | 0 | 0 | 0.1 | 0 | 0 | 0.011923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.2 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8814231575bbe6e4934834a1434e867f02c0e57d | 2,125 | py | Python | resources/physequations.py | VijayStroup/Physics_Problem_Solver_Basic | fc6944475ed8bcfe91bbd207734c3f9aee31e0fe | [
"MIT"
] | null | null | null | resources/physequations.py | VijayStroup/Physics_Problem_Solver_Basic | fc6944475ed8bcfe91bbd207734c3f9aee31e0fe | [
"MIT"
] | null | null | null | resources/physequations.py | VijayStroup/Physics_Problem_Solver_Basic | fc6944475ed8bcfe91bbd207734c3f9aee31e0fe | [
"MIT"
] | null | null | null | import math
def close(expected, actual, maxerror):
'''checks to see if the actual number is within expected +- maxerror.'''
low = expected - maxerror
high = expected + maxerror
if actual >= low and actual <= high:
return True
else:
return False
def grav_potential_energy(mass, height, gravity=9.81):
'''calcu... | 32.19697 | 88 | 0.631059 | 304 | 2,125 | 4.299342 | 0.3125 | 0.080337 | 0.072686 | 0.035195 | 0.175976 | 0.076511 | 0.076511 | 0 | 0 | 0 | 0 | 0.100845 | 0.164706 | 2,125 | 65 | 89 | 32.692308 | 0.635493 | 0.212706 | 0 | 0 | 0 | 0 | 0.135192 | 0.029268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.025641 | 0 | 0.282051 | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71467296157c3ad9afffaf380b92ae10d722c419 | 10,659 | py | Python | mvpa2/tests/test_erdataset.py | andycon/PyMVPA | 67f7ee68012e3a1128168c583d6c83303b7a2c27 | [
"MIT"
] | null | null | null | mvpa2/tests/test_erdataset.py | andycon/PyMVPA | 67f7ee68012e3a1128168c583d6c83303b7a2c27 | [
"MIT"
] | null | null | null | mvpa2/tests/test_erdataset.py | andycon/PyMVPA | 67f7ee68012e3a1128168c583d6c83303b7a2c27 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | 48.45 | 96 | 0.626888 | 1,369 | 10,659 | 4.700511 | 0.211833 | 0.047863 | 0.049728 | 0.040404 | 0.44289 | 0.404196 | 0.366589 | 0.33986 | 0.271329 | 0.254701 | 0 | 0.014513 | 0.250117 | 10,659 | 219 | 97 | 48.671233 | 0.790567 | 0.164837 | 0 | 0.275641 | 0 | 0 | 0.052252 | 0 | 0 | 0 | 0 | 0.004566 | 0.378205 | 1 | 0.012821 | false | 0 | 0.057692 | 0 | 0.070513 | 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 |
7148d1a57a15a29836e2ab0aae7b7bc5dc398f57 | 1,174 | py | Python | userbot/plugins/delfp.py | aksr-aashish/FIREXUSERBOT | dff0b7bf028cb27779626ce523402346cc990402 | [
"MIT"
] | null | null | null | userbot/plugins/delfp.py | aksr-aashish/FIREXUSERBOT | dff0b7bf028cb27779626ce523402346cc990402 | [
"MIT"
] | 1 | 2022-01-09T11:35:06.000Z | 2022-01-09T11:35:06.000Z | userbot/plugins/delfp.py | aksr-aashish/FIREXUSERBOT | dff0b7bf028cb27779626ce523402346cc990402 | [
"MIT"
] | null | null | null | from telethon.tl.functions.photos import DeletePhotosRequest, GetUserPhotosRequest
from telethon.tl.types import InputPhoto
from userbot.cmdhelp import CmdHelp
from userbot.utils import admin_cmd, edit_or_reply, sudo_cmd
CmdHelp("delfp").add_command("delpfp", None, "delete ur currnt profile picture").add()
@borg.on... | 34.529412 | 86 | 0.67632 | 149 | 1,174 | 5.187919 | 0.496644 | 0.054334 | 0.036223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005371 | 0.206985 | 1,174 | 33 | 87 | 35.575758 | 0.824919 | 0 | 0 | 0 | 0 | 0 | 0.120109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7149245bb6b3dda015cca0a397d867fb3542c00d | 1,308 | py | Python | amlb/benchmarks/file.py | pplonski/automlbenchmark | f49ddfa2583643173296ed8ab45a8c14c62a6987 | [
"MIT"
] | 282 | 2018-09-19T09:45:46.000Z | 2022-03-30T04:05:51.000Z | amlb/benchmarks/file.py | pplonski/automlbenchmark | f49ddfa2583643173296ed8ab45a8c14c62a6987 | [
"MIT"
] | 267 | 2018-11-02T11:43:11.000Z | 2022-03-31T08:58:16.000Z | amlb/benchmarks/file.py | pplonski/automlbenchmark | f49ddfa2583643173296ed8ab45a8c14c62a6987 | [
"MIT"
] | 104 | 2018-10-17T19:32:36.000Z | 2022-03-19T22:47:59.000Z | import logging
import os
from typing import List, Tuple, Optional
from amlb.utils import config_load, Namespace
log = logging.getLogger(__name__)
def _find_local_benchmark_definition(name: str, benchmark_definition_dirs: List[str]) -> str:
# 'name' should be either a full path to the benchmark,
# or a filen... | 39.636364 | 119 | 0.727829 | 180 | 1,308 | 5.1 | 0.405556 | 0.14488 | 0.125272 | 0.061002 | 0.14597 | 0.08061 | 0.08061 | 0 | 0 | 0 | 0 | 0.001867 | 0.181193 | 1,308 | 32 | 120 | 40.875 | 0.855275 | 0.204128 | 0 | 0 | 0 | 0 | 0.13773 | 0.027158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
714957e1bb0b1384b108ed8e7921b1c771c5effe | 4,815 | py | Python | pybuspro/devices/control.py | eyesoft/pybuspro | 9a178117be2db40ef1399cc60afdc18e251682bc | [
"MIT"
] | 2 | 2019-03-15T03:47:10.000Z | 2019-10-30T15:34:09.000Z | pybuspro/devices/control.py | eyesoft/pybuspro | 9a178117be2db40ef1399cc60afdc18e251682bc | [
"MIT"
] | null | null | null | pybuspro/devices/control.py | eyesoft/pybuspro | 9a178117be2db40ef1399cc60afdc18e251682bc | [
"MIT"
] | 4 | 2019-01-12T17:50:24.000Z | 2020-01-12T16:56:24.000Z | from ..core.telegram import Telegram
from ..helpers.enums import OperateCode
class _Control:
def __init__(self, buspro):
self._buspro = buspro
self.subnet_id = None
self.device_id = None
@staticmethod
def build_telegram_from_control(control):
if control is None:
... | 28.660714 | 106 | 0.655867 | 452 | 4,815 | 6.564159 | 0.165929 | 0.055612 | 0.056623 | 0.072801 | 0.229525 | 0.221436 | 0.198517 | 0.198517 | 0.198517 | 0.140546 | 0 | 0.001409 | 0.263136 | 4,815 | 167 | 107 | 28.832335 | 0.834837 | 0.032399 | 0 | 0.288288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126126 | false | 0 | 0.018018 | 0.009009 | 0.288288 | 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 |
7149b8c5cf18fd7bdd1bfdc804b0918d755edaae | 5,961 | py | Python | appengine/chrome_infra_console_loadtest/main.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | appengine/chrome_infra_console_loadtest/main.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | appengine/chrome_infra_console_loadtest/main.py | eunchong/infra | ce3728559112bfb3e8b32137eada517aec6d22f9 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import endpoints
import random
import webapp2
from apiclient import discovery
from google.appengine.ext import ndb
from oauth2client.client i... | 33.301676 | 78 | 0.690824 | 687 | 5,961 | 5.896652 | 0.24163 | 0.02666 | 0.022217 | 0.015552 | 0.158973 | 0.150827 | 0.132066 | 0.132066 | 0.121205 | 0.096026 | 0 | 0.008384 | 0.199631 | 5,961 | 178 | 79 | 33.488764 | 0.840704 | 0.0411 | 0 | 0.105263 | 0 | 0 | 0.053305 | 0.009118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037594 | false | 0 | 0.082707 | 0 | 0.466165 | 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 |
7149cd13d14ac2cce8176e2e198709907cc8c456 | 9,523 | py | Python | src/mitre/securingai/restapi/task_plugin/controller.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 14 | 2021-06-17T15:16:12.000Z | 2021-11-08T10:25:37.000Z | src/mitre/securingai/restapi/task_plugin/controller.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 7 | 2021-09-20T20:20:26.000Z | 2022-03-30T13:17:43.000Z | src/mitre/securingai/restapi/task_plugin/controller.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 4 | 2021-06-29T16:52:42.000Z | 2022-01-21T16:56:45.000Z | # This Software (Dioptra) is being made available as a public service by the
# National Institute of Standards and Technology (NIST), an Agency of the United
# States Department of Commerce. This software was developed in part by employees of
# NIST and in part by NIST contractors. Copyright in portions of this softwar... | 37.789683 | 88 | 0.676888 | 1,065 | 9,523 | 5.844131 | 0.201878 | 0.086761 | 0.062821 | 0.043862 | 0.562661 | 0.503695 | 0.486343 | 0.486343 | 0.486343 | 0.486343 | 0 | 0.003009 | 0.23228 | 9,523 | 251 | 89 | 37.940239 | 0.848311 | 0.186076 | 0 | 0.57377 | 0 | 0 | 0.133655 | 0.029991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.076503 | 0 | 0.20765 | 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 |
714a5d7f1ebf03213e86c878b9d094ccb13ebf53 | 16,181 | py | Python | dulwich/tests/test_lru_cache.py | mjmaenpaa/dulwich | d13a0375f4cc3099ff1c6edacda97f317c28f67a | [
"Apache-2.0"
] | null | null | null | dulwich/tests/test_lru_cache.py | mjmaenpaa/dulwich | d13a0375f4cc3099ff1c6edacda97f317c28f67a | [
"Apache-2.0"
] | null | null | null | dulwich/tests/test_lru_cache.py | mjmaenpaa/dulwich | d13a0375f4cc3099ff1c6edacda97f317c28f67a | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2006, 2008 Canonical Ltd
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# General Public License as public by the Free Software Foundation; version 2.0
# or (at your option) any later version. You can redistribute it and/or
# modify it under the terms of either of these t... | 35.798673 | 79 | 0.603115 | 2,258 | 16,181 | 4.182905 | 0.136847 | 0.138168 | 0.044044 | 0.039598 | 0.574484 | 0.522499 | 0.463632 | 0.44648 | 0.40847 | 0.378295 | 0 | 0.046813 | 0.265991 | 16,181 | 451 | 80 | 35.878049 | 0.748421 | 0.17743 | 0 | 0.522152 | 0 | 0 | 0.040467 | 0 | 0 | 0 | 0 | 0 | 0.310127 | 1 | 0.110759 | false | 0 | 0.006329 | 0.003165 | 0.126582 | 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 |
714cfc19c240490817e3657df9cb9287844afbb6 | 16,391 | py | Python | release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py | lsica-scopely/mgear4 | 28ed5d66370a9516da05d93d447bfc15f4c0c9f4 | [
"MIT"
] | null | null | null | release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py | lsica-scopely/mgear4 | 28ed5d66370a9516da05d93d447bfc15f4c0c9f4 | [
"MIT"
] | null | null | null | release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py | lsica-scopely/mgear4 | 28ed5d66370a9516da05d93d447bfc15f4c0c9f4 | [
"MIT"
] | null | null | null | import pymel.core as pm
import ast
from pymel.core import datatypes
from mgear.shifter import component
from mgear.core import node, applyop, vector
from mgear.core import attribute, transform, primitive
class Component(component.Main):
"""Shifter component Class"""
# ======================================... | 33.865702 | 79 | 0.505887 | 1,809 | 16,391 | 4.408513 | 0.156993 | 0.017555 | 0.036865 | 0.010031 | 0.424702 | 0.333041 | 0.244765 | 0.217053 | 0.217053 | 0.2 | 0 | 0.014341 | 0.336343 | 16,391 | 483 | 80 | 33.935818 | 0.71879 | 0.119944 | 0 | 0.272727 | 0 | 0 | 0.042153 | 0.001957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.017045 | 0 | 0.0625 | 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 |
714e74c6035390e31e82cb8cc61f9783ca761b5f | 58,939 | py | Python | opac/webapp/main/views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | null | null | null | opac/webapp/main/views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | null | null | null | opac/webapp/main/views.py | rafaelpezzuto/opac | 9b54202350e262a27cb9cb756a892185b288df24 | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
import logging
import requests
import mimetypes
from io import BytesIO
from urllib.parse import urlparse
from datetime import datetime, timedelta
from collections import OrderedDict
from flask_babelex import gettext as _
from flask import (
render_template,
abort,
current_app,
request,
... | 34.957888 | 128 | 0.625358 | 7,103 | 58,939 | 4.929044 | 0.101929 | 0.024678 | 0.015595 | 0.010625 | 0.523435 | 0.470881 | 0.424124 | 0.383137 | 0.361258 | 0.34015 | 0 | 0.009688 | 0.252193 | 58,939 | 1,685 | 129 | 34.978635 | 0.784663 | 0.055753 | 0 | 0.405186 | 0 | 0.005673 | 0.154816 | 0.049895 | 0 | 0 | 0 | 0.001187 | 0 | 1 | 0.051053 | false | 0 | 0.019449 | 0.004052 | 0.143436 | 0.002431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |