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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c478a3bd10411c7f1ec8a901267dc3442748c724 | 1,463 | py | Python | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | 5 | 2021-03-18T21:34:44.000Z | 2022-03-11T23:35:23.000Z | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | import socket
import unittest
from eats.webdriver import PytractorWebDriver
from eats.tests.common import SimpleWebServerProcess as SimpleServer
def _get_local_ip_addr():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("gmail.com",80))
local_ip_addr = s.getsockname()[0]
s.close()
re... | 30.479167 | 93 | 0.663705 | 159 | 1,463 | 5.899371 | 0.45283 | 0.044776 | 0.070362 | 0.059701 | 0.317697 | 0.296375 | 0.296375 | 0.296375 | 0.296375 | 0.296375 | 0 | 0.016422 | 0.209159 | 1,463 | 48 | 94 | 30.479167 | 0.794296 | 0 | 0 | 0.263158 | 0 | 0 | 0.09153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.105263 | 0.052632 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c479ce0c9f3fb47a8ec7bf6ff4db304b73d1a05c | 2,262 | py | Python | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
class QNetwork(nn.Module):
"""Actor (Policy) Model using a Single DQN."""
def __init__(self, state_size, action_size, seed):
"""Initialize parameters and build model.
Params
======
state_size (int): Dimension of each state
acti... | 30.16 | 63 | 0.545977 | 256 | 2,262 | 4.660156 | 0.230469 | 0.060352 | 0.033529 | 0.058676 | 0.697402 | 0.697402 | 0.658843 | 0.60855 | 0.60855 | 0.539816 | 0 | 0.020946 | 0.345712 | 2,262 | 75 | 64 | 30.16 | 0.785135 | 0.276304 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c47bf0eadf4438f1d2983cdc88c09d3954cd62d8 | 17,789 | py | Python | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 416 | 2015-01-05T18:16:36.000Z | 2022-03-28T21:44:26.000Z | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 140 | 2015-01-18T23:32:34.000Z | 2022-03-17T05:40:24.000Z | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 344 | 2015-01-08T06:44:23.000Z | 2022-03-26T04:06:27.000Z | # Copyright 2017 James McCauley
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 27.034954 | 78 | 0.652426 | 2,599 | 17,789 | 4.311658 | 0.20354 | 0.019275 | 0.014992 | 0.015706 | 0.300643 | 0.25174 | 0.22247 | 0.207835 | 0.170087 | 0.153132 | 0 | 0.032107 | 0.231379 | 17,789 | 657 | 79 | 27.076104 | 0.787464 | 0.175502 | 0 | 0.226293 | 0 | 0 | 0.028847 | 0.01054 | 0 | 0 | 0.016781 | 0.003044 | 0 | 1 | 0.133621 | false | 0.002155 | 0.025862 | 0.038793 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c47c240782affe27a9180c58c326bd1012c03ca6 | 5,754 | py | Python | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 5 | 2021-08-31T08:07:41.000Z | 2022-01-04T02:09:25.000Z | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 3 | 2021-09-23T09:06:35.000Z | 2021-12-08T04:53:01.000Z | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 2 | 2022-01-19T17:50:56.000Z | 2022-03-06T18:59:41.000Z | # 2020 Tommaso Ciussani and Giacomo Giuliari
import os
import json
import numpy as np
from typing import Set, List
from geopy.distance import great_circle
from scipy.spatial.ckdtree import cKDTree
from shapely.geometry import Polygon, shape, Point
from icarus_simulator.sat_core.coordinate_util import geo2cart
from i... | 38.36 | 115 | 0.616093 | 725 | 5,754 | 4.729655 | 0.289655 | 0.032663 | 0.020414 | 0.020414 | 0.184019 | 0.144065 | 0.131234 | 0.117819 | 0.036162 | 0.036162 | 0 | 0.015585 | 0.252868 | 5,754 | 149 | 116 | 38.61745 | 0.782042 | 0.114703 | 0 | 0.114754 | 0 | 0 | 0.11789 | 0.013974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0.008197 | 0.081967 | 0.016393 | 0.180328 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c47e515541dd250050db71c9315d649403e7ce2b | 1,575 | py | Python | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 5 | 2018-12-13T17:46:39.000Z | 2022-03-29T02:07:47.000Z | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 42 | 2019-12-08T18:41:13.000Z | 2021-08-28T13:08:55.000Z | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 8 | 2018-12-25T04:19:01.000Z | 2021-03-24T17:02:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: stdrickforce (Tengyuan Fan)
# Email: <stdrickforce@gmail.com> <fantengyuan@baixing.com>
import cat
import time
def ignore_exception(func):
def wraps(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception:
... | 22.183099 | 64 | 0.572698 | 189 | 1,575 | 4.645503 | 0.52381 | 0.072893 | 0.06492 | 0.031891 | 0.041002 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040107 | 0.287619 | 1,575 | 70 | 65 | 22.5 | 0.742424 | 0.166984 | 0 | 0.111111 | 0 | 0 | 0.073668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.022222 | 0.066667 | 0 | 0.244444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c47ef70151ad606b1f9596045a1960c4c4dec6a6 | 1,948 | py | Python | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | # Definition for binary tree with next pointer.
class TreeLinkNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
self.next = None
class Solution:
# @param root, a tree link node
# @return nothing
def connect(self, root):
node = root
... | 31.419355 | 63 | 0.464579 | 205 | 1,948 | 4.360976 | 0.287805 | 0.053691 | 0.040268 | 0.040268 | 0.17226 | 0.17226 | 0.067114 | 0.067114 | 0 | 0 | 0 | 0 | 0.488706 | 1,948 | 61 | 64 | 31.934426 | 0.89759 | 0.176078 | 0 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c481812f6f75096a79bbca57dd3f97e48ea22078 | 3,845 | py | Python | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | import boto3
from prettytable import PrettyTable
class LexIntentManager:
def __init__(self):
self.client = boto3.client('lex-models')
def create_new_intent(self, intent_name, description="n/a", sample_utterances=[], slot_types=[]):
intent_info = {'name': intent_name,
... | 39.639175 | 129 | 0.490507 | 322 | 3,845 | 5.602484 | 0.319876 | 0.04878 | 0.033259 | 0.039911 | 0.156319 | 0.035477 | 0 | 0 | 0 | 0 | 0 | 0.000883 | 0.410923 | 3,845 | 96 | 130 | 40.052083 | 0.795585 | 0 | 0 | 0.084507 | 0 | 0 | 0.17872 | 0.005723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0.014085 | 0.028169 | 0 | 0.126761 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4821b9a95d728a178a666ea50065578f645972b | 7,025 | py | Python | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
'''
Author : Lyubimov, A.Y.
Created : 04/14/2014
Last Changed: 11/05/2018
Description : wxPython 3-4 compatibility tools
The context managers, classes, and other tools below can be used to make the
GUI code compatible with wxPython 3 and 4. Mos... | 32.981221 | 96 | 0.691103 | 892 | 7,025 | 5.267937 | 0.29148 | 0.030645 | 0.017876 | 0.02043 | 0.276016 | 0.226644 | 0.226644 | 0.176633 | 0.156629 | 0.156629 | 0 | 0.010208 | 0.191174 | 7,025 | 212 | 97 | 33.136792 | 0.81679 | 0.084982 | 0 | 0.174242 | 0 | 0 | 0.090645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.037879 | 0 | 0.204545 | 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 |
c483b92cbfbdabe1b45008c539e6179a5bd43a9f | 1,548 | py | Python | BMVC_version/utils.py | ZhengyuZhao/ACE | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 19 | 2020-05-13T07:51:00.000Z | 2021-06-13T11:03:47.000Z | BMVC_version/utils.py | ZhengyuZhao/AdvCF | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 1 | 2020-09-09T09:39:28.000Z | 2020-09-10T20:30:02.000Z | BMVC_version/utils.py | ZhengyuZhao/AdvCF | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 3 | 2020-09-05T11:32:23.000Z | 2021-03-30T01:41:07.000Z | import torch
import torch.nn as nn
import csv
#image quantization
def quantization(x):
x_quan=torch.round(x*255)/255
return x_quan
#picecwise-linear color filter
def CF(img, param,pieces):
param=param[:,:,None,None]
color_curve_sum = torch.sum(param, 4) + 1e-30
total_image = img * 0
f... | 29.769231 | 99 | 0.660207 | 228 | 1,548 | 4.298246 | 0.425439 | 0.040816 | 0.033673 | 0.032653 | 0.110204 | 0.110204 | 0.071429 | 0.071429 | 0.071429 | 0 | 0 | 0.032573 | 0.206718 | 1,548 | 51 | 100 | 30.352941 | 0.765472 | 0.152455 | 0 | 0 | 0 | 0 | 0.02144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0.030303 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4847cc6bababbdf22257962d4c32b15d776c5ed | 8,277 | py | Python | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | # Convert the caffe2 model into tensorboard GraphDef
#
# The details of caffe2 model is on the compat/proto/caffe2/caffe2.proto
# And the details of GraphDef model is on the compat/proto/graph.proto
#
################################################################################
from tensorboard.compat.proto import ... | 44.5 | 106 | 0.618461 | 1,086 | 8,277 | 4.485267 | 0.174033 | 0.032847 | 0.027715 | 0.037364 | 0.282283 | 0.212482 | 0.15233 | 0.079655 | 0.049271 | 0 | 0 | 0.017104 | 0.286577 | 8,277 | 185 | 107 | 44.740541 | 0.80779 | 0.206717 | 0 | 0.08871 | 0 | 0 | 0.043396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.080645 | 0 | 0.153226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4852e08624ac34e2478471564d3403491679e03 | 1,251 | py | Python | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# The MIT License (MIT)
# Copyright (c) 2014 Alex Aquino dos Santos
# Technische Universität München (TUM)
# Autonomous Navigation for Flying Robots
# Homework 2.1
from plot import plot
class UserCode:
def __init__(self):
# initialize data you want to store in this object between c... | 34.75 | 109 | 0.686651 | 176 | 1,251 | 4.636364 | 0.431818 | 0.102941 | 0.073529 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010384 | 0.230216 | 1,251 | 35 | 110 | 35.742857 | 0.836968 | 0.353317 | 0 | 0 | 0 | 0 | 0.059055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4855377edb8f2377a14569ead5ae6f4b477315f | 1,651 | py | Python | src_tf/templates/tf_estimator_template/model/example.py | ashishpatel26/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2019-02-12T09:22:00.000Z | 2019-02-12T09:22:00.000Z | src_tf/templates/tf_estimator_template/model/example.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | null | null | null | src_tf/templates/tf_estimator_template/model/example.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2020-10-15T21:34:17.000Z | 2020-10-15T21:34:17.000Z | from configs import args
import tensorflow as tf
def forward(x, mode):
is_training = (mode == tf.estimator.ModeKeys.TRAIN)
x = tf.contrib.layers.embed_sequence(x, args.vocab_size, args.embed_dim)
x = tf.layers.dropout(x, 0.2, training=is_training)
feat_map = []
for k_size in [3, 4, 5]:
_... | 34.395833 | 80 | 0.637795 | 241 | 1,651 | 4.174274 | 0.373444 | 0.023857 | 0.035785 | 0.068588 | 0.185885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017913 | 0.22229 | 1,651 | 47 | 81 | 35.12766 | 0.765576 | 0 | 0 | 0 | 0 | 0 | 0.019988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c48919ef78498ed664eb6156c8117a86edb141da | 3,344 | py | Python | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- python -*-
"""@file
@brief pyserial transport for pato
Copyright (c) 2014-2015 Dimitry Kloper <kloper@users.sf.net>.
All rights reserved.
@page License
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistribut... | 34.122449 | 79 | 0.712022 | 448 | 3,344 | 5.294643 | 0.459821 | 0.008432 | 0.014334 | 0.019393 | 0.077572 | 0.057336 | 0.057336 | 0.057336 | 0.057336 | 0.057336 | 0 | 0.004277 | 0.230861 | 3,344 | 97 | 80 | 34.474227 | 0.917963 | 0.738935 | 0 | 0 | 0 | 0 | 0.065598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c489ac681275868dff6ed544c5b85d56c81ef128 | 4,072 | py | Python | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QFont, QPixmap
from PyQt5.QtCore import QTimer
from random import randint
font = QFont("Times", 14)
buttonFont = QFont("Arial", 12)
computerScore = 0
playerScore = 0
class Windows(QWidget):
def __init__(self):
super().__init__()
sel... | 34.218487 | 116 | 0.590128 | 418 | 4,072 | 5.708134 | 0.263158 | 0.07544 | 0.082984 | 0.055323 | 0.381391 | 0.248952 | 0.238894 | 0 | 0 | 0 | 0 | 0.029221 | 0.243615 | 4,072 | 118 | 117 | 34.508475 | 0.745455 | 0.007122 | 0 | 0.069767 | 0 | 0 | 0.085312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.05814 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c48abebb839f713d689a09683874c38aef9511d6 | 1,128 | py | Python | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 280 | 2018-10-21T01:07:18.000Z | 2021-12-30T11:29:48.000Z | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 3 | 2018-11-13T08:04:48.000Z | 2020-04-17T09:20:03.000Z | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 59 | 2018-10-21T04:38:23.000Z | 2021-03-29T07:58:47.000Z | import torch.nn as nn
import pretrainedmodels
class classifier(nn.Module):
def __init__(self, model_name='resnet32'):
super(classifier, self).__init__()
# Load pretrained ImageNet model
self.model = pretrainedmodels.__dict__[model_name](num_classes=1000, pretrained='imagenet')
... | 31.333333 | 109 | 0.60461 | 128 | 1,128 | 5.109375 | 0.46875 | 0.068807 | 0.103976 | 0.119266 | 0.155963 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0.013802 | 0.29344 | 1,128 | 35 | 110 | 32.228571 | 0.806775 | 0.056738 | 0 | 0 | 0 | 0 | 0.069201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0.045455 | 0.318182 | 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 |
6700a5bb5f070e2573ae2cc0040f1d1a36a7e4ca | 13,050 | py | Python | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | """
Given a Boolean function/network, get its algebraic state-space representation.
A logical vector `\delta_n^i` is represented by an integer `i` for space efficiency. Consequently, a logical matrix
is represented by a list, each element for one column, (also known as the "condensed form").
[1] Conversion from an in... | 39.071856 | 144 | 0.604828 | 1,642 | 13,050 | 4.712546 | 0.190621 | 0.019902 | 0.013957 | 0.02016 | 0.147842 | 0.108814 | 0.082063 | 0.060739 | 0.037477 | 0.022486 | 0 | 0.004792 | 0.296398 | 13,050 | 333 | 145 | 39.189189 | 0.837944 | 0.304291 | 0 | 0.242009 | 0 | 0 | 0.102181 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.050228 | false | 0 | 0.018265 | 0.013699 | 0.127854 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6701184b0bdf306dd90792d6a104891f22b55364 | 4,953 | py | Python | datasets/voc_dataset.py | ming71/DAL | 48cd29fdbf5eeea1b5b642bd1f04bbf1863b31e3 | [
"Apache-2.0"
] | 206 | 2020-09-12T06:17:00.000Z | 2022-03-28T08:05:51.000Z | datasets/voc_dataset.py | JOOCHANN/DAL | 0f379de70ba01c6c9162f4e980a8bd2491976e9c | [
"Apache-2.0"
] | 47 | 2020-10-21T06:14:18.000Z | 2022-03-16T01:54:28.000Z | datasets/voc_dataset.py | JOOCHANN/DAL | 0f379de70ba01c6c9162f4e980a8bd2491976e9c | [
"Apache-2.0"
] | 38 | 2020-10-22T10:39:51.000Z | 2022-03-17T12:36:46.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# Extended by Linjie Deng
# --------------------------------------------------------
import os
import cv2
import numpy as np
import... | 37.240602 | 93 | 0.557238 | 616 | 4,953 | 4.269481 | 0.308442 | 0.041065 | 0.03346 | 0.045627 | 0.158175 | 0.13308 | 0.124715 | 0.118631 | 0.063878 | 0.063878 | 0 | 0.009169 | 0.295377 | 4,953 | 133 | 94 | 37.240602 | 0.744413 | 0.112457 | 0 | 0.083333 | 0 | 0 | 0.092308 | 0.006527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.010417 | 0.072917 | 0.010417 | 0.239583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6706ffad81c03f382360a4810c2bf16d4cc561bb | 4,364 | py | Python | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | 20 | 2020-08-25T06:10:14.000Z | 2022-03-27T15:42:55.000Z | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | null | null | null | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | 7 | 2020-09-25T15:12:53.000Z | 2022-03-25T15:23:43.000Z | import os
import time
import argparse
import pandas as pd
from smf import SessionMF
parser = argparse.ArgumentParser()
parser.add_argument('--K', type=int, default=20, help="K items to be used in Recall@K and MRR@K")
parser.add_argument('--factors', type=int, default=100, help="Number of latent factors.")
parser.add_a... | 47.956044 | 182 | 0.695921 | 622 | 4,364 | 4.734727 | 0.292605 | 0.051952 | 0.098132 | 0.028862 | 0.129032 | 0.101188 | 0.021732 | 0.021732 | 0 | 0 | 0 | 0.020272 | 0.17484 | 4,364 | 91 | 183 | 47.956044 | 0.797556 | 0.041476 | 0 | 0.103896 | 0 | 0.012987 | 0.256951 | 0.011745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064935 | 0 | 0.064935 | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6707397442e36941efca1b5ee8ee3696d4dcdf31 | 25,163 | py | Python | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class Device(object)... | 32.21895 | 505 | 0.632953 | 3,285 | 25,163 | 4.616134 | 0.074277 | 0.066473 | 0.072804 | 0.072804 | 0.738987 | 0.636771 | 0.578673 | 0.504286 | 0.385321 | 0.302625 | 0 | 0.024524 | 0.28375 | 25,163 | 780 | 506 | 32.260256 | 0.816845 | 0.482733 | 0 | 0.083056 | 0 | 0 | 0.12356 | 0.024545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172757 | false | 0 | 0.009967 | 0 | 0.289037 | 0.006645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6707dd7b43e33c316be804768ef020a089466983 | 14,107 | py | Python | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | import time
import os
import pickle
import warnings
from typing import Union, Type, Optional, Dict, Any, Callable
import gym
import torch as th
import numpy as np
from stable_baselines3.common import logger
from stable_baselines3.common.base_class import BaseAlgorithm
from stable_baselines3.common.policies import Bas... | 50.382143 | 122 | 0.607571 | 1,706 | 14,107 | 4.834701 | 0.208089 | 0.029098 | 0.021823 | 0.028371 | 0.136397 | 0.086688 | 0.043889 | 0.034433 | 0.020126 | 0.020126 | 0 | 0.007353 | 0.325158 | 14,107 | 279 | 123 | 50.562724 | 0.859034 | 0.29893 | 0 | 0.070513 | 0 | 0 | 0.068814 | 0.002203 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.032051 | false | 0.012821 | 0.108974 | 0 | 0.160256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6708d69bfe7f1ec1d25240a2e512900542ce4a78 | 820 | py | Python | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | import pandas as pd
import pickle
def read_metric_logs(bucket_type):
metrics = pd.DataFrame(columns=['source_type', 'target_type', 'stats'])
type_list_path = f'/l/users/shikhar.srivastava/data/pannuke/{bucket_type}/selected_types.csv'
type_list = pd.read_csv(type_list_path)['0']
for source_type in t... | 43.157895 | 164 | 0.684146 | 116 | 820 | 4.560345 | 0.456897 | 0.090737 | 0.10586 | 0.113422 | 0.10586 | 0.10586 | 0 | 0 | 0 | 0 | 0 | 0.00152 | 0.197561 | 820 | 19 | 165 | 43.157895 | 0.802432 | 0.019512 | 0 | 0 | 0 | 0.076923 | 0.332503 | 0.261519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6709a543eab8bce61601cfd76117d243faac013b | 5,373 | py | Python | train_DEU.py | JosephineRabbit/MLMSNet | 755e07afd1c19797b02cf88b7bbb195112ffec77 | [
"MIT"
] | 61 | 2019-04-23T15:17:36.000Z | 2021-08-20T15:48:11.000Z | train_DEU.py | zhuxinang/MLMSNet | a824a70fa37aeb4536bc72d8032e871328c687e8 | [
"MIT"
] | 8 | 2019-05-04T04:38:26.000Z | 2020-08-16T15:15:15.000Z | train_DEU.py | JosephineRabbit/MLMSNet | 755e07afd1c19797b02cf88b7bbb195112ffec77 | [
"MIT"
] | 7 | 2019-06-12T07:02:06.000Z | 2020-09-20T02:37:36.000Z | from D_E_U import *
D_E = DSS(*extra_layer(vgg(base['dss'], 3), extra['dss']),config.BATCH_SIZE).cuda()
U = D_U().cuda()
U.cuda()
data_dirs = [
("/home/rabbit/Datasets/DUTS/DUT-train/DUT-train-Image",
"/home/rabbit/Datasets/DUTS/DUT-train/DUT-train-Mask"),
]
test_dirs = [("/home/rabbit/Datasets/SED1/SED1-I... | 24.760369 | 116 | 0.594826 | 825 | 5,373 | 3.579394 | 0.204848 | 0.050796 | 0.024382 | 0.038605 | 0.484253 | 0.428039 | 0.390789 | 0.273959 | 0.248222 | 0.248222 | 0 | 0.02696 | 0.25442 | 5,373 | 216 | 117 | 24.875 | 0.710185 | 0.084497 | 0 | 0.27193 | 0 | 0 | 0.082127 | 0.062474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.008772 | 0 | 0.04386 | 0.04386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
670ac7303b14fc10b0803485c55a62a568d00950 | 445 | py | Python | solutions/1497_check_if_array_pairs_are_divisible_by_k.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | solutions/1497_check_if_array_pairs_are_divisible_by_k.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | solutions/1497_check_if_array_pairs_are_divisible_by_k.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | class Solution:
def canArrange(self, arr: List[int], k: int) -> bool:
"""Hash table.
Running time: O(n) where n == len(arr).
"""
d = collections.defaultdict(int)
for a in arr:
d[a % k] += 1
for key, v in d.items():
if key == 0 and v % 2 == 1:
... | 27.8125 | 57 | 0.442697 | 60 | 445 | 3.283333 | 0.6 | 0.040609 | 0.071066 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.431461 | 445 | 15 | 58 | 29.666667 | 0.758893 | 0.116854 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
670c1bac34e09541ccb5d179f3199b3e5c901751 | 2,866 | py | Python | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
import goldsberry
test_data = [
(goldsberry._nbaLeague, 'NBA', '00'),
(goldsberry._nbaLeague, 'WNBA', '10'),
(goldsberry._nbaLeague, 'NBADL', '20'),
(goldsberry._nbaSeason, 1999, '1999-00'),
(goldsberry._nbaSeason, 2000, '2000-01'),
(goldsberry._seasonID, 1999, '21999'),
(goldsb... | 33.717647 | 56 | 0.691207 | 298 | 2,866 | 6.395973 | 0.328859 | 0.086569 | 0.035677 | 0.027282 | 0.072403 | 0.043022 | 0 | 0 | 0 | 0 | 0 | 0.048207 | 0.124215 | 2,866 | 84 | 57 | 34.119048 | 0.711155 | 0.007327 | 0 | 0 | 0 | 0 | 0.096729 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 1 | 0.025316 | false | 0 | 0.025316 | 0 | 0.050633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
670d0a8e1a1197c9ec69df947dabd43d08e4160b | 4,295 | py | Python | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | #poly_gauss_coil model
#conversion of Poly_GaussCoil.py
#converted by Steve King, Mar 2016
r"""
This empirical model describes the scattering from *polydisperse* polymer
chains in theta solvents or polymer melts, assuming a Schulz-Zimm type
molecular weight distribution.
To describe the scattering from *monodisperse* ... | 32.293233 | 116 | 0.584633 | 659 | 4,295 | 3.76783 | 0.385432 | 0.00886 | 0.004833 | 0.039871 | 0.163915 | 0.106323 | 0.068466 | 0.038663 | 0.038663 | 0.038663 | 0 | 0.06846 | 0.238184 | 4,295 | 132 | 117 | 32.537879 | 0.690403 | 0.593714 | 0 | 0.037037 | 0 | 0 | 0.153353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
670fa5323287fc9c400ddc9fd03e291ab3a5896f | 4,939 | py | Python | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | 1 | 2021-07-22T08:33:53.000Z | 2021-07-22T08:33:53.000Z | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | null | null | null | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.512 | 226 | 0.70905 | 679 | 4,939 | 4.92489 | 0.353461 | 0.033493 | 0.020933 | 0.013457 | 0.147428 | 0.107656 | 0.062799 | 0.043062 | 0.020335 | 0 | 0 | 0.007487 | 0.188702 | 4,939 | 124 | 227 | 39.830645 | 0.827053 | 0.148411 | 0 | 0 | 0 | 0 | 0.140535 | 0.005258 | 0.011364 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.170455 | 0 | 0.204545 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
670fb8129b5e60d52265e167fb8a005a31688d39 | 14,814 | py | Python | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 82 | 2018-02-02T04:03:49.000Z | 2022-03-25T07:41:08.000Z | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 152 | 2017-09-18T15:49:05.000Z | 2022-03-16T21:07:07.000Z | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 27 | 2017-09-19T14:52:56.000Z | 2021-11-25T14:43:47.000Z | import os
from itertools import product
from concurrent import futures
from contextlib import closing
from datetime import datetime
import numpy as np
from . import _z5py
from .file import File, S3File
from .dataset import Dataset
from .shape_utils import normalize_slices
def product1d(inrange):
for ii in inrang... | 37.887468 | 120 | 0.645876 | 2,125 | 14,814 | 4.315765 | 0.167529 | 0.015702 | 0.021808 | 0.013085 | 0.345546 | 0.287646 | 0.262785 | 0.255806 | 0.234762 | 0.226911 | 0 | 0.005305 | 0.274673 | 14,814 | 390 | 121 | 37.984615 | 0.848208 | 0.337924 | 0 | 0.118483 | 0 | 0 | 0.036256 | 0.00477 | 0 | 0 | 0 | 0 | 0.014218 | 1 | 0.104265 | false | 0 | 0.090047 | 0 | 0.236967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671044f92c1e2bb7a547bce5cdc307d31e50194b | 8,485 | py | Python | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | """Sensor platform support for Waste Collection Schedule."""
import collections
import datetime
import logging
from enum import Enum
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, CONF... | 32.140152 | 99 | 0.635357 | 927 | 8,485 | 5.530744 | 0.186624 | 0.062415 | 0.02048 | 0.013263 | 0.220597 | 0.149015 | 0.110786 | 0.110786 | 0.097328 | 0.08699 | 0 | 0.003115 | 0.281202 | 8,485 | 263 | 100 | 32.262357 | 0.837514 | 0.09888 | 0 | 0.170854 | 0 | 0 | 0.039718 | 0.005446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075377 | false | 0 | 0.060302 | 0.030151 | 0.231156 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671186e2f94db3759070c3a35c61ae043b2efdd5 | 2,622 | py | Python | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
from functools import partial
from json import JSONDecodeError
import requests
from funcy.calc import cache
from funcy.debug import print_calls
from funcy.simple_funcs import curry
HEADERS = {
"Accept": "application/json, text/javascript, */*; q=0.01",
"User-A... | 29.133333 | 113 | 0.666667 | 314 | 2,622 | 5.458599 | 0.372611 | 0.03734 | 0.036756 | 0.044341 | 0.36056 | 0.36056 | 0.336639 | 0.336639 | 0.248541 | 0.187865 | 0 | 0.020733 | 0.209001 | 2,622 | 89 | 114 | 29.460674 | 0.805689 | 0 | 0 | 0.190476 | 0 | 0.015873 | 0.257056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.015873 | 0.111111 | 0 | 0.269841 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6714f1b0e63e554da53c6d95c385058b29428db0 | 2,095 | py | Python | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 3 | 2022-01-14T00:37:58.000Z | 2022-03-26T12:26:32.000Z | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 29 | 2021-07-20T12:42:44.000Z | 2022-03-28T13:01:33.000Z | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 12 | 2021-07-20T12:27:07.000Z | 2022-02-24T11:10:12.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 30.362319 | 74 | 0.630072 | 265 | 2,095 | 4.898113 | 0.449057 | 0.046225 | 0.025424 | 0.043914 | 0.249615 | 0.16641 | 0.16641 | 0.064715 | 0 | 0 | 0 | 0.007388 | 0.28926 | 2,095 | 68 | 75 | 30.808824 | 0.864338 | 0.369451 | 0 | 0.27027 | 0 | 0 | 0.175382 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6715015a823d4efe629d554c1f06e22bd2b8c5e4 | 7,518 | py | Python | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | import os
import io
import sys
import subprocess
import shlex
import logging
from threading import Timer
from typing import Callable, Any, List
from pathlib import Path # noqa: for doctest
import tempfile # noqa: for doctest
from .toolz import (
merge, map, pipe, curry, do, cprint
)
log = log... | 28.477273 | 91 | 0.580607 | 926 | 7,518 | 4.631749 | 0.214903 | 0.020518 | 0.030776 | 0.022383 | 0.583353 | 0.513406 | 0.508277 | 0.508277 | 0.47377 | 0.434134 | 0 | 0.005973 | 0.287443 | 7,518 | 263 | 92 | 28.585551 | 0.794661 | 0.548151 | 0 | 0.454545 | 0 | 0 | 0.040095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0 | 0.111111 | 0.010101 | 0.242424 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6715fb7acc45572b00524312f06dff2708091d1d | 8,934 | py | Python | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 11 | 2021-11-08T20:38:50.000Z | 2022-01-30T02:46:39.000Z | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 1 | 2022-01-13T19:46:32.000Z | 2022-02-09T16:23:56.000Z | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 1 | 2021-12-17T18:38:26.000Z | 2021-12-17T18:38:26.000Z | """
Data creation:
Load the data, normalize it, and split into train and test.
"""
'''
Added the capability of loading pre-separated UCI train/test data
function LoadData_Splitted_UCI
'''
import numpy as np
import os
import pandas as pd
import tensorflow as tf
DATA_PATH = "../UCI_Datasets"
class DataGenerator:... | 36.317073 | 123 | 0.580479 | 1,211 | 8,934 | 4.074319 | 0.198183 | 0.025537 | 0.022294 | 0.026348 | 0.325091 | 0.297122 | 0.261857 | 0.214836 | 0.157073 | 0.157073 | 0 | 0.024229 | 0.288561 | 8,934 | 245 | 124 | 36.465306 | 0.752045 | 0.156817 | 0 | 0.25 | 0 | 0 | 0.074677 | 0.036852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0.006944 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671762a970ef464f89d67b583ec5b5c7d9146820 | 1,427 | py | Python | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | # This script adds a new message to a specific SQS queue
#
# Author - Paul Doyle Aug 2013
#
#
#from __future__ import print_function
import sys
import Queue
import boto.sqs
import argparse
import socket
import datetime
import sys
import time
from boto.sqs.attributes import Attributes
parser = argparse.ArgumentParser()... | 24.603448 | 154 | 0.733006 | 216 | 1,427 | 4.685185 | 0.467593 | 0.055336 | 0.029644 | 0.025692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021104 | 0.13665 | 1,427 | 57 | 155 | 25.035088 | 0.800325 | 0.084093 | 0 | 0.047619 | 0 | 0 | 0.149346 | 0.030793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.261905 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6718237fd3891c8aa0d6df664410cd0f7651353e | 1,547 | py | Python | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | null | null | null | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | 3 | 2020-03-24T17:57:46.000Z | 2021-02-02T22:25:37.000Z | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | null | null | null | from typing import Optional
import pandas as pd
from dero.ml.typing import ModelDict, AllModelResultsDict, DfDict
def model_dict_to_df(model_results: ModelDict, model_name: Optional[str] = None) -> pd.DataFrame:
df = pd.DataFrame(model_results).T
df.drop('score', inplace=True)
df['score'] = model_results[... | 37.731707 | 97 | 0.700711 | 222 | 1,547 | 4.594595 | 0.225225 | 0.061765 | 0.031373 | 0.038235 | 0.519608 | 0.415686 | 0.309804 | 0.309804 | 0.235294 | 0.235294 | 0 | 0 | 0.202327 | 1,547 | 40 | 98 | 38.675 | 0.82658 | 0 | 0 | 0.25 | 0 | 0 | 0.035553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67194cbd5bb79a7249d2ae1d8a3b2168422d756c | 1,640 | py | Python | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import shelve, random
arguments = ["self", "info", "args", "world"]
minlevel = 2
helpstring = "coin <bet>"
def main(connection, info, args, world) :
"""Decides heads or tails based on the coinchance variable. Adds or removes appropriate amount of money"""
money = shelve.open("money-%s.db" % (connection.netwo... | 60.740741 | 251 | 0.587805 | 208 | 1,640 | 4.610577 | 0.423077 | 0.135558 | 0.12513 | 0.104275 | 0.372263 | 0.34098 | 0.34098 | 0.277372 | 0.198123 | 0.198123 | 0 | 0.003981 | 0.234146 | 1,640 | 26 | 252 | 63.076923 | 0.759554 | 0.062195 | 0 | 0.130435 | 0 | 0.043478 | 0.33812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6719b8a502c31dfe0118ee06e1a1b37092b216f3 | 13,562 | py | Python | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | from __future__ import print_function
import emcee
from multiprocessing import Pool
import numpy as np
import corner
import matplotlib.pyplot as plt
import sys
import scipy.optimize as op
from rbvfit.rb_vfit import rb_veldiff as rb_veldiff
from rbvfit import rb_setline as rb
import pdb
def plot_model(wave_obs,fnorm,e... | 36.262032 | 204 | 0.539891 | 1,838 | 13,562 | 3.855277 | 0.177911 | 0.016088 | 0.024838 | 0.010867 | 0.448913 | 0.425205 | 0.370731 | 0.338696 | 0.319785 | 0.278436 | 0 | 0.029528 | 0.308288 | 13,562 | 374 | 205 | 36.262032 | 0.725829 | 0.115691 | 0 | 0.237705 | 0 | 0.008197 | 0.04694 | 0.005365 | 0.016393 | 0 | 0 | 0 | 0 | 1 | 0.036885 | false | 0 | 0.053279 | 0 | 0.122951 | 0.040984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671a19cd137db70202b7e3303f276604903cd2b5 | 6,409 | py | Python | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) Megvii, Inc. and its affiliates.
import torch
from torch.utils.data.dataloader import DataLoader as torchDataLoader
from torch.utils.data.dataloader import default_collate
import os
import random
from .samplers import YoloBatchSampler
def ... | 35.804469 | 99 | 0.555469 | 740 | 6,409 | 4.691892 | 0.290541 | 0.065668 | 0.024194 | 0.017281 | 0.146025 | 0.127304 | 0.080069 | 0.066244 | 0.066244 | 0.066244 | 0 | 0.032243 | 0.341863 | 6,409 | 178 | 100 | 36.005618 | 0.790896 | 0.459354 | 0 | 0.263158 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.092105 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
671aa126c99ce28f4a40eb764f765d0b5bf6665c | 10,454 | py | Python | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | 1 | 2021-04-30T06:38:31.000Z | 2021-04-30T06:38:31.000Z | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | null | null | null | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | 1 | 2019-04-28T03:33:35.000Z | 2019-04-28T03:33:35.000Z | import discord
from discord.ext import commands
from pathlib import Path
from config import bot
from collections import OrderedDict
import json
class RoleSelector(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.messages_path = str(Path('cogs/data/messages.json'))
async def opener(... | 46.052863 | 147 | 0.505931 | 1,052 | 10,454 | 4.921103 | 0.282319 | 0.043461 | 0.040178 | 0.027622 | 0.197025 | 0.155495 | 0.121885 | 0.103149 | 0.103149 | 0 | 0 | 0.062884 | 0.330687 | 10,454 | 226 | 148 | 46.256637 | 0.677004 | 0 | 0 | 0.284264 | 0 | 0.010152 | 0.29465 | 0.045846 | 0 | 0 | 0.000851 | 0 | 0 | 1 | 0.020305 | false | 0 | 0.030457 | 0 | 0.101523 | 0.005076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671bdca4dcc88d2670523ab9386ad959165e1bf4 | 1,876 | py | Python | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T09:01:40.000Z | 2020-06-05T09:01:40.000Z | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 14 | 2019-11-15T12:01:18.000Z | 2019-12-12T14:37:42.000Z | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 3 | 2019-11-15T15:56:25.000Z | 2019-11-21T10:34:59.000Z | #!/usr/bin/env python3
from .base_test import BaseTest
from fbc.symphony.cli.graphql_compiler.gql.utils_codegen import CodeChunk
class TestRendererDataclasses(BaseTest):
def test_codegen_write_simple_strings(self):
gen = CodeChunk()
gen.write('def sum(a, b):')
gen.indent()
gen.wri... | 24.363636 | 73 | 0.537846 | 250 | 1,876 | 3.904 | 0.204 | 0.098361 | 0.086066 | 0.067623 | 0.61168 | 0.61168 | 0.556352 | 0.556352 | 0.556352 | 0.490779 | 0 | 0.015723 | 0.321962 | 1,876 | 76 | 74 | 24.684211 | 0.751572 | 0.011194 | 0 | 0.618182 | 0 | 0 | 0.108414 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 1 | 0.109091 | false | 0 | 0.036364 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
671c98674cb5f008f240bb63dd21b79174a4ca79 | 898 | py | Python | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | null | null | null | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | null | null | null | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | 1 | 2021-05-08T04:29:44.000Z | 2021-05-08T04:29:44.000Z | import os
import json
def get_config(action, optimised = False):
""" action: train, test, export or gdrive
optimised: False --> DenseNet121
True --> DenseNet121Eff
"""
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
config_path = os.... | 33.259259 | 93 | 0.609131 | 111 | 898 | 4.765766 | 0.297297 | 0.090737 | 0.075614 | 0.085066 | 0.455577 | 0.455577 | 0.455577 | 0.296786 | 0.21172 | 0.21172 | 0 | 0.027607 | 0.273942 | 898 | 26 | 94 | 34.538462 | 0.783742 | 0.116927 | 0 | 0.333333 | 0 | 0 | 0.111111 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67217c13d08aaa4cb02ed01fdfa62904c93ef245 | 2,652 | py | Python | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | 2 | 2022-01-27T20:10:19.000Z | 2022-01-29T04:26:16.000Z | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | null | null | null | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | null | null | null | from numpy import logspace
from sys import path as sysPath
sysPath.append('../../src')
#load the module
from interfacePy import Cosmo
cosmo=Cosmo('../../src/data/eos2020.dat',0,1e5)
for T in logspace(-5,5,50):
print(
'T=',T,'GeV\t',
'H=',cosmo.Hubble(T),'GeV\t',
'h_eff=',cosmo.heff(T),... | 28.212766 | 92 | 0.584465 | 457 | 2,652 | 3.306346 | 0.249453 | 0.04368 | 0.016545 | 0.023163 | 0.66777 | 0.645268 | 0.472535 | 0.444077 | 0.41231 | 0.396426 | 0 | 0.050863 | 0.169683 | 2,652 | 93 | 93 | 28.516129 | 0.635332 | 0.031297 | 0 | 0.396552 | 0 | 0.017241 | 0.190533 | 0.029833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6721e6112f2f0c4cefe44686fc888d2b7c5c0f42 | 5,236 | py | Python | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | 2 | 2021-02-22T22:12:23.000Z | 2021-02-22T22:48:33.000Z | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Optional
from psion.oauth2.exceptions import InvalidClient, OAuth2Error, UnsupportedTokenType
from psion.oauth2.models import JSONResponse, Request
from .base import BaseEndpoint
class RevocationEndpoint(BaseEndpoint):
"""
Endpoint used by the `Client` ... | 41.228346 | 86 | 0.661383 | 644 | 5,236 | 5.271739 | 0.338509 | 0.029161 | 0.038292 | 0.01296 | 0.095434 | 0.078351 | 0.078351 | 0.060088 | 0.037703 | 0.037703 | 0 | 0.013721 | 0.290107 | 5,236 | 126 | 87 | 41.555556 | 0.89965 | 0.103896 | 0 | 0 | 0 | 0 | 0.042113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 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 |
67221620473d936c0d65eea07a40a563dbd162cf | 1,851 | py | Python | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 3 | 2021-12-01T02:11:15.000Z | 2022-02-03T22:45:00.000Z | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 4 | 2021-11-27T11:04:36.000Z | 2022-02-17T02:53:21.000Z | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 5 | 2021-07-01T20:23:43.000Z | 2022-03-12T18:10:34.000Z | #!/usr/bin/env python3
import argparse
import logging
import sys
import zlib
sys.path.append("../..")
from bento.client.api import ClientConnection
from bento.common.protocol import *
import bento.common.util as util
function_name= "browser"
function_code= """
import requests
import zlib
import os
def browser(url, ... | 27.626866 | 76 | 0.686116 | 251 | 1,851 | 4.940239 | 0.410359 | 0.03629 | 0.054839 | 0.030645 | 0.114516 | 0.114516 | 0.114516 | 0.114516 | 0.114516 | 0.114516 | 0 | 0.002633 | 0.179363 | 1,851 | 66 | 77 | 28.045455 | 0.813693 | 0.011345 | 0 | 0.12 | 0 | 0 | 0.392564 | 0.043193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.2 | 0 | 0.22 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67224f47630e980eac0b94abcd62dd84644278c0 | 3,429 | py | Python | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | from app import webapp, mysql
from app.models import Search , Utils, Collection, WebUtils
from flask import request, jsonify
from flask.ext.jsonpify import jsonify as jsonp
import json
'''
Generic search call
@params
q: search query
page: the page number of search results (default 0)
t... | 34.636364 | 84 | 0.680082 | 413 | 3,429 | 5.552058 | 0.307506 | 0.068033 | 0.104666 | 0.083733 | 0.075883 | 0.040122 | 0 | 0 | 0 | 0 | 0 | 0.002852 | 0.181977 | 3,429 | 98 | 85 | 34.989796 | 0.814617 | 0.013415 | 0 | 0.028571 | 0 | 0 | 0.13517 | 0.016336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.071429 | 0.042857 | 0.328571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6722b1ddb17bb6d89f4ea39b1f185bec7d6cfcf6 | 555 | py | Python | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | from flask import Flask, make_response
app = Flask(__name__)
@app.route("/")
@app.route("/index.html")
def index():
html = open("assets/index.html").read()
return html
@app.route("/assets/<name>")
def wasm(name):
r = make_response(open(f"assets/{name}","rb").read())
if name.endswith(".wasm"):
... | 20.555556 | 57 | 0.625225 | 79 | 555 | 4.21519 | 0.455696 | 0.096096 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008677 | 0.169369 | 555 | 26 | 58 | 21.346154 | 0.713666 | 0 | 0 | 0.1 | 0 | 0 | 0.221622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.35 | 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 |
6728b39bc11d9e4b1e1974a7a10fb1bb5d2f22d9 | 3,368 | py | Python | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 1,732 | 2018-03-05T19:20:48.000Z | 2022-03-31T08:11:03.000Z | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 70 | 2018-06-29T07:48:43.000Z | 2022-03-29T13:14:07.000Z | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 357 | 2018-03-14T06:35:24.000Z | 2022-03-31T11:04:39.000Z | import numpy as np
import pytest
import torch
from PIL import Image
from pytorch_fid import fid_score, inception
@pytest.fixture
def device():
return torch.device('cpu')
def test_calculate_fid_given_statistics(mocker, tmp_path, device):
dim = 2048
m1, m2 = np.zeros((dim,)), np.ones((dim,))
sigma = ... | 32.699029 | 77 | 0.540974 | 414 | 3,368 | 4.236715 | 0.297101 | 0.035918 | 0.054162 | 0.065564 | 0.263968 | 0.214937 | 0.163056 | 0.163056 | 0.118586 | 0.051311 | 0 | 0.028143 | 0.345903 | 3,368 | 102 | 78 | 33.019608 | 0.768044 | 0.019596 | 0 | 0.148649 | 0 | 0 | 0.025455 | 0.014545 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.081081 | false | 0 | 0.067568 | 0.013514 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6728f13a7364357219192b47721a96d415fff8dc | 873 | py | Python | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | 6 | 2018-04-13T09:48:26.000Z | 2020-06-22T13:42:10.000Z | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | null | null | null | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | 2 | 2018-09-04T07:09:50.000Z | 2019-08-18T15:11:00.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import time
class emsc_client:
def __init__(self):
self.host = "10.10.83.174"
self.port = 5000
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
def run(self):
try:
self.conn.connect((self.ho... | 24.942857 | 77 | 0.514318 | 99 | 873 | 4.363636 | 0.575758 | 0.092593 | 0.050926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040886 | 0.327606 | 873 | 35 | 78 | 24.942857 | 0.69506 | 0.066438 | 0 | 0 | 0 | 0 | 0.093481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.2 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
672a72c5fc5af6da05a603f68e577831d5bb4e8d | 8,000 | py | Python | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from __future__ import absolute_import, print_function
from optparse import OptionParser, make_option
import os
import sys
import uuid
import dbus
import dbus.service
import dbus.mainloop.glib
import time
import socket
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
impor... | 34.188034 | 103 | 0.59525 | 998 | 8,000 | 4.668337 | 0.275551 | 0.008586 | 0.010947 | 0.01202 | 0.221292 | 0.201975 | 0.167203 | 0.143164 | 0.122773 | 0.087572 | 0 | 0.038711 | 0.30575 | 8,000 | 233 | 104 | 34.334764 | 0.798163 | 0.167375 | 0 | 0.224719 | 0 | 0 | 0.138489 | 0.009233 | 0 | 0 | 0.009687 | 0 | 0 | 1 | 0.073034 | false | 0 | 0.08427 | 0 | 0.213483 | 0.016854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
672b2fd274da4c3abef696a1ce2183fc11422e30 | 11,479 | py | Python | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | import ai2thor.controller
import numpy as np
from PIL import Image, ImageDraw
def get_rotation_matrix(agent_rot):
#######
# Construct the rotation matrix. Ref: https://en.wikipedia.org/wiki/Rotation_matrix
#######
r_y = np.array([[np.cos(np.radians(agent_rot["y"])), 0, np.sin(np.radians(agent_rot["y"... | 46.100402 | 119 | 0.4787 | 1,285 | 11,479 | 4.165759 | 0.163424 | 0.016813 | 0.018494 | 0.025406 | 0.420512 | 0.369139 | 0.348216 | 0.308986 | 0.299645 | 0.276854 | 0 | 0.035116 | 0.402126 | 11,479 | 248 | 120 | 46.28629 | 0.744864 | 0.161164 | 0 | 0.35503 | 0 | 0 | 0.066282 | 0.026219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023669 | false | 0 | 0.017751 | 0 | 0.065089 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
672ca5a86d4634cb29b428fe498eec5d2e6591d7 | 17,041 | py | Python | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import print_function
__author__ = "Gianluca Santoni"
__copyright__ = "Copyright 20150-2019"
__credits__ = ["Gianluca Santoni, Alexander Popov"]
__license__ = ""
__version__ = "1.0"
__maintainer__ = "Gianluca Santoni"
__email__ = "gianluca.santoni@esrf.fr"
__status__ = "Beta"
from scipy.cluster impo... | 38.123043 | 146 | 0.589813 | 2,032 | 17,041 | 4.861713 | 0.200787 | 0.039478 | 0.02065 | 0.037251 | 0.478996 | 0.464723 | 0.445187 | 0.427877 | 0.410365 | 0.399636 | 0 | 0.011402 | 0.289772 | 17,041 | 446 | 147 | 38.20852 | 0.804842 | 0.115662 | 0 | 0.448598 | 0 | 0.009346 | 0.177913 | 0.050186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05919 | false | 0 | 0.040498 | 0 | 0.124611 | 0.080997 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
672fde99dcb82eabf8b0425ec9a63d4e04194da7 | 9,992 | py | Python | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Author: Nick Zwart
# Date: 2015oct31
from __future__ import print_function
import os
import sys
import stat
import errno
import shutil
import optparse
import traceback
import subprocess
wrappaconda_name_string = 'Wr[App]-A-Conda'
class AppAtizer(object):
def __init__(self):
# ... | 39.650794 | 236 | 0.618995 | 1,146 | 9,992 | 5.216405 | 0.263525 | 0.021077 | 0.022583 | 0.018735 | 0.139846 | 0.086986 | 0.045166 | 0.031449 | 0.020074 | 0.020074 | 0 | 0.00725 | 0.254604 | 9,992 | 251 | 237 | 39.808765 | 0.795381 | 0.056345 | 0 | 0.165 | 0 | 0.015 | 0.28497 | 0.063138 | 0 | 0 | 0 | 0 | 0.035 | 1 | 0.065 | false | 0 | 0.045 | 0.005 | 0.13 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
673174539407b646c8c0d2d08573c676c84a2fa0 | 557 | py | Python | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | import requests
class Wallet(object):
def __init__(self, testnet=False):
if testnet:
self.base_url = 'https://testnet.watchtower.cash/api/'
else:
self.base_url = 'https://watchtower.cash/api/'
def _get_utxos(self, wallet_hash, amount):
url = self.base_url + f'... | 26.52381 | 66 | 0.606822 | 69 | 557 | 4.695652 | 0.478261 | 0.074074 | 0.101852 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016908 | 0.256733 | 557 | 20 | 67 | 27.85 | 0.7657 | 0 | 0 | 0 | 0 | 0 | 0.220826 | 0.044883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6733155cbc1b3ee12cbd1d7e111f38daa85f1326 | 858 | py | Python | test/unit/test_finalize.py | phated/binaryen | 50e66800dc28d67ea1cc88172f459df1ca96507d | [
"Apache-2.0"
] | 5,871 | 2015-11-13T19:06:43.000Z | 2022-03-31T17:40:21.000Z | test/unit/test_finalize.py | sthagen/binaryen | ce592cbdc8e58f36e7f39a3bd24b403f43adae34 | [
"Apache-2.0"
] | 2,743 | 2015-11-13T03:46:49.000Z | 2022-03-31T20:27:05.000Z | test/unit/test_finalize.py | sthagen/binaryen | ce592cbdc8e58f36e7f39a3bd24b403f43adae34 | [
"Apache-2.0"
] | 626 | 2015-11-23T08:00:11.000Z | 2022-03-17T01:58:18.000Z | from scripts.test import shared
from . import utils
class EmscriptenFinalizeTest(utils.BinaryenTestCase):
def do_output_test(self, args):
# without any output file specified, don't error, don't write the wasm,
# but do emit metadata
p = shared.run_process(shared.WASM_EMSCRIPTEN_FINALIZE + ... | 33 | 79 | 0.637529 | 107 | 858 | 4.962617 | 0.504673 | 0.045198 | 0.067797 | 0.071563 | 0.120527 | 0.120527 | 0.120527 | 0 | 0 | 0 | 0 | 0.006221 | 0.250583 | 858 | 25 | 80 | 34.32 | 0.819596 | 0.182984 | 0 | 0 | 0 | 0 | 0.070504 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67351c5ed22ca30713ae796c8d4fe75b64c848ee | 6,206 | py | Python | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-04-29T05:36:44.000Z | 2021-04-29T05:36:44.000Z | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2020-03-28T17:43:18.000Z | 2020-03-28T17:43:18.000Z | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-01-15T20:09:24.000Z | 2021-01-15T20:09:24.000Z | from PyQt5.QtWidgets import QTreeWidget
from PyQt5.Qt import pyqtSignal
from PyQt5.QtWidgets import QTreeWidgetItem
from PyQt5.Qt import Qt
class TreeWidget(QTreeWidget):
# enum ItemShowMode
ItemsCollapsed = 0
ItemsExpanded = 1
def __init__(self, parent=None):
super().__init__(parent)
s... | 28.731481 | 75 | 0.586046 | 534 | 6,206 | 6.720974 | 0.207865 | 0.075787 | 0.042909 | 0.050711 | 0.329897 | 0.274728 | 0.245194 | 0.245194 | 0.214544 | 0.179994 | 0 | 0.003347 | 0.325975 | 6,206 | 215 | 76 | 28.865116 | 0.85465 | 0.100226 | 0 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143939 | false | 0 | 0.030303 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
673572261f6221c9f0594203352cc527924c075f | 1,400 | py | Python | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | 21 | 2018-10-16T09:29:03.000Z | 2022-03-11T23:31:35.000Z | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | import os
import sys
LOCALPATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, LOCALPATH + '/../../../../')
from app.api.v2.db import Db
def format_sale(sale):
"""Formats the results to a dictionary"""
sale = {
"id": sale[0],
"books": sale[1],
"total": sale[2],
... | 25.454545 | 89 | 0.547143 | 182 | 1,400 | 4.054945 | 0.406593 | 0.056911 | 0.056911 | 0.03252 | 0.04607 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016495 | 0.307143 | 1,400 | 54 | 90 | 25.925926 | 0.74433 | 0.119286 | 0 | 0 | 0 | 0.027778 | 0.214582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6736c3bf19a38443467bf3214084087a92e23009 | 10,984 | py | Python | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Sony Semiconductors Israel, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 47.549784 | 120 | 0.638929 | 1,279 | 10,984 | 5.206411 | 0.179828 | 0.027632 | 0.030635 | 0.036342 | 0.705962 | 0.673825 | 0.649647 | 0.613155 | 0.599339 | 0.581319 | 0 | 0.021184 | 0.265113 | 10,984 | 231 | 121 | 47.549784 | 0.803766 | 0.122269 | 0 | 0.571429 | 0 | 0 | 0.007286 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 1 | 0.180124 | false | 0 | 0.074534 | 0.043478 | 0.397516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67379ede0d1ebb11453ed5424da8aed4d1402f30 | 33,494 | py | Python | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | """:run
"""
import curses
import datetime
import json
import logging
import os
import re
import shlex
import shutil
import time
import uuid
from math import floor
from queue import Queue
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
from ... | 37.091916 | 100 | 0.559921 | 3,662 | 33,494 | 4.88367 | 0.134353 | 0.021472 | 0.018452 | 0.012302 | 0.288806 | 0.196824 | 0.13856 | 0.087005 | 0.069 | 0.051499 | 0 | 0.004237 | 0.330507 | 33,494 | 902 | 101 | 37.133038 | 0.793302 | 0.07673 | 0 | 0.236652 | 0 | 0 | 0.1404 | 0.010373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036075 | false | 0.008658 | 0.05772 | 0 | 0.138528 | 0.004329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
673a1a8a7022fbc7e3838045a6969aad19ff37aa | 8,279 | py | Python | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.214008 | 125 | 0.613721 | 989 | 8,279 | 5.022245 | 0.311426 | 0.033219 | 0.036239 | 0.019328 | 0.320918 | 0.281458 | 0.281458 | 0.245621 | 0.213006 | 0.213006 | 0 | 0.007442 | 0.204735 | 8,279 | 256 | 126 | 32.339844 | 0.746962 | 0.323469 | 0 | 0.289474 | 0 | 0 | 0.390491 | 0.148716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.032895 | 0 | 0.059211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
673f2e75107755cce6965c485de6141329c56f72 | 1,868 | py | Python | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 12 | 2022-01-18T20:04:41.000Z | 2022-03-24T21:26:31.000Z | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 163 | 2022-01-14T19:30:23.000Z | 2022-03-31T23:48:48.000Z | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 4 | 2022-01-19T20:40:13.000Z | 2022-02-22T21:36:34.000Z | import logging
import re
from warn.cache import Cache as BaseCache
from .urls import urls
logger = logging.getLogger(__name__)
class Cache(BaseCache):
"""A custom cache for Job Center sites."""
def save(self, url, params, html):
"""Save file to the cache."""
cache_key = self.key_from_url(u... | 34.592593 | 83 | 0.579764 | 243 | 1,868 | 4.255144 | 0.333333 | 0.077369 | 0.05029 | 0.030948 | 0.075435 | 0.075435 | 0.075435 | 0.075435 | 0.075435 | 0.075435 | 0 | 0.003145 | 0.319058 | 1,868 | 53 | 84 | 35.245283 | 0.809748 | 0.161135 | 0 | 0.105263 | 0 | 0 | 0.141192 | 0.049223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | 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 |
673f39d965787c5f1eaa35294c38eb2b5dda219c | 7,312 | py | Python | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 110 | 2020-01-15T22:58:46.000Z | 2022-03-27T20:47:33.000Z | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 89 | 2020-01-15T23:18:34.000Z | 2022-03-31T21:56:05.000Z | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 50 | 2020-01-15T22:58:53.000Z | 2022-02-11T17:39:28.000Z | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 33.085973 | 101 | 0.603665 | 767 | 7,312 | 5.551499 | 0.322034 | 0.03969 | 0.021137 | 0.021137 | 0.205026 | 0.147722 | 0.103805 | 0.06294 | 0.06294 | 0.06294 | 0 | 0.003558 | 0.308124 | 7,312 | 220 | 102 | 33.236364 | 0.83811 | 0.128146 | 0 | 0.154839 | 0 | 0 | 0.102454 | 0.043818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077419 | false | 0.025806 | 0.083871 | 0.006452 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674032fc8a912ba3dd53e6c5a60619d54e34cbd4 | 482 | py | Python | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import sys
temperatures=[10,-20,-289,100]
def c2f(cel_temp):
if cel_temp < -273.15:
return "The lowest possible temperature that physical matter can reach is -273.15C"
else:
fah_temp=(cel_temp*1.8)+32
return fah_temp
for temp in temperatures:
file = open('... | 22.952381 | 91 | 0.620332 | 71 | 482 | 4.112676 | 0.647887 | 0.071918 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085399 | 0.246888 | 482 | 20 | 92 | 24.1 | 0.719008 | 0.045643 | 0 | 0 | 0 | 0 | 0.204793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67409afcdfe55eae6e448c076e01c6ac7a7788be | 2,285 | py | Python | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# METADATA OF THIS TAL_SERVICE:
problem="eggs"
service="confirm_min_throws"
args_list = [
('min',int),
('n_eggs',int),
('n_floors',int),
('lang',str),
('ISATTY',bool),
]
from sys import stderr, exit, argv
from random import randrange
from math import inf as IMPOSSIBLE
from ... | 46.632653 | 279 | 0.688403 | 378 | 2,285 | 4.074074 | 0.309524 | 0.049351 | 0.064935 | 0.038961 | 0.481169 | 0.440909 | 0.424026 | 0.424026 | 0.396753 | 0.396753 | 0 | 0.006771 | 0.159737 | 2,285 | 48 | 280 | 47.604167 | 0.795313 | 0.200438 | 0 | 0 | 0 | 0.09375 | 0.476348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
67470f3c7a77e0bc298ea17e0cb678c91fe2570a | 4,067 | py | Python | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null |
from backend.entity.entity import DefinedFuntion
from backend.ir.dumper import Dumper
from backend.ir.stmt import Assign
from backend.ir.stmt import Return
from backend.ir.expr import Bin
from backend.ir.expr import Call
from backend.entity.scope import *
def import_ir(data, asm_file):
def_vars = list()
def_... | 27.856164 | 113 | 0.588149 | 487 | 4,067 | 4.786448 | 0.225873 | 0.04719 | 0.042042 | 0.029172 | 0.205491 | 0.06864 | 0.03003 | 0 | 0 | 0 | 0 | 0 | 0.30391 | 4,067 | 145 | 114 | 28.048276 | 0.823384 | 0.0627 | 0 | 0.229358 | 0 | 0 | 0.060638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174312 | false | 0 | 0.073395 | 0.06422 | 0.46789 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67475ec9e070602cd855d1d0690b385ad1b9adb8 | 10,060 | py | Python | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 40 | 2019-01-25T18:35:24.000Z | 2022-03-13T11:21:18.000Z | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 140 | 2019-01-25T20:09:02.000Z | 2022-03-12T01:08:01.000Z | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 22 | 2019-02-01T13:18:35.000Z | 2022-01-12T15:03:13.000Z | import numpy as np
from pyquil.gate_matrices import X, Y, Z, H
from forest.benchmarking.operator_tools.superoperator_transformations import *
# Test philosophy:
# Using the by hand calculations found in the docs we check conversion
# between one qubit channels with one Kraus operator (Hadamard) and two
# Kraus operat... | 34.930556 | 98 | 0.602485 | 1,431 | 10,060 | 4.075472 | 0.141859 | 0.025377 | 0.021605 | 0.026749 | 0.452503 | 0.347051 | 0.323903 | 0.283608 | 0.249143 | 0.189815 | 0 | 0.054329 | 0.257157 | 10,060 | 287 | 99 | 35.052265 | 0.726081 | 0.094632 | 0 | 0.331707 | 0 | 0 | 0.00022 | 0 | 0 | 0 | 0 | 0.003484 | 0.195122 | 1 | 0.121951 | false | 0 | 0.014634 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6749e169faceb4050a87041472715faed2d19901 | 2,866 | py | Python | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-03-05T10:54:32.000Z | 2021-03-05T14:14:52.000Z | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 32 | 2020-12-15T17:29:20.000Z | 2022-03-21T15:08:31.000Z | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-07-19T20:31:27.000Z | 2021-07-19T21:14:14.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import sys
import spack.cmd
import spack.cmd.common.arguments as arguments
import spack.environment as ev
import spack.st... | 34.119048 | 79 | 0.664689 | 369 | 2,866 | 5.0271 | 0.382114 | 0.029111 | 0.024259 | 0.043127 | 0.145553 | 0.092722 | 0.044205 | 0.044205 | 0 | 0 | 0 | 0.005005 | 0.233077 | 2,866 | 83 | 80 | 34.53012 | 0.838944 | 0.092812 | 0 | 0.079365 | 0 | 0 | 0.265093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.111111 | 0 | 0.15873 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674ba1aa522d2bf108faa75b0291c6fcbe497e66 | 1,680 | py | Python | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import imageio
from PoissonTemperature import FiniteDifferenceMatrixConstruction
def ind_sub_conversion(img, ind2sub_fn, sub2ind_fn):
rows, cols = img.shape[:2]
num = rows*cols
arange = np.arange(rows*cols, dtype=np.int32)
ind2sub = np.empty((num, 2), dtype=np.int32)
ind2sub[:, ... | 32.941176 | 72 | 0.671429 | 226 | 1,680 | 4.818584 | 0.314159 | 0.041322 | 0.044077 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.179762 | 1,680 | 50 | 73 | 33.6 | 0.751814 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
674c93e05bb72036422e17078331287c9f481a64 | 10,343 | py | Python | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 261 | 2018-09-28T02:32:17.000Z | 2018-12-10T06:30:54.000Z | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 27 | 2018-09-26T08:49:11.000Z | 2018-12-10T14:42:52.000Z | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 46 | 2018-10-06T10:11:18.000Z | 2018-12-10T04:02:17.000Z | from distutils.version import LooseVersion
import requests
import os
import shutil
import threading
import webbrowser
from zipfile import ZipFile
from pathlib import Path
import traceback
import tempfile
# import concurrent.futures
from flask import Flask, url_for, make_response
from flask.json import dumps
from flask_... | 34.591973 | 178 | 0.667601 | 1,344 | 10,343 | 4.907738 | 0.216518 | 0.039418 | 0.02547 | 0.014554 | 0.173893 | 0.103851 | 0.03396 | 0.009703 | 0 | 0 | 0 | 0.00566 | 0.231364 | 10,343 | 298 | 179 | 34.708054 | 0.824025 | 0.067969 | 0 | 0.195455 | 0 | 0 | 0.123023 | 0.021704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.104545 | 0.004545 | 0.236364 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674df0520020cb5c060d141941c47d1d5a1e8c48 | 9,686 | py | Python | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 22 | 2021-09-14T04:33:11.000Z | 2022-02-01T21:33:05.000Z | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 7 | 2021-11-02T13:48:35.000Z | 2022-03-23T18:08:35.000Z | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 6 | 2021-09-18T01:06:51.000Z | 2022-01-10T02:22:06.000Z | # Copyright Contributors to the Pyro-Cov project.
# SPDX-License-Identifier: Apache-2.0
import functools
import io
import logging
import math
import re
import sys
import torch
import torch.multiprocessing as mp
from Bio import AlignIO
from Bio.Phylo.NewickIO import Parser
from Bio.Seq import Seq
from Bio.SeqRecord im... | 31.044872 | 88 | 0.574024 | 1,332 | 9,686 | 4.066066 | 0.214715 | 0.029542 | 0.027696 | 0.026588 | 0.204948 | 0.169498 | 0.120753 | 0.110414 | 0.094165 | 0.059453 | 0 | 0.03523 | 0.276172 | 9,686 | 311 | 89 | 31.144695 | 0.73727 | 0.137518 | 0 | 0.188596 | 0 | 0 | 0.070011 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.070175 | false | 0 | 0.057018 | 0.017544 | 0.188596 | 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 |
674dfe34110c0256d54ed4a145016c108d5fa7fa | 1,439 | py | Python | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
def convert_to_sqft(str):
tokens = str.split(' - ')
if len(tokens) == 2:
return (float(tokens[0]) + float(tokens[1])) / 2
try:
return float(tokens[0])
except Exception:
return np.NAN
def co... | 31.977778 | 100 | 0.648367 | 205 | 1,439 | 4.395122 | 0.341463 | 0.054384 | 0.056604 | 0.059933 | 0.055494 | 0.055494 | 0 | 0 | 0 | 0 | 0 | 0.012898 | 0.1918 | 1,439 | 44 | 101 | 32.704545 | 0.761823 | 0 | 0 | 0.051282 | 0 | 0 | 0.109104 | 0.018068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
674ebc40e603703da0b0ddbc5fe2fad3846b9a69 | 3,305 | py | Python | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 353 | 2020-10-31T10:38:51.000Z | 2022-03-30T05:22:52.000Z | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 353 | 2020-10-27T23:25:12.000Z | 2022-03-31T22:16:05.000Z | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 66 | 2020-11-01T06:08:08.000Z | 2022-03-29T02:03:07.000Z | import warnings
from typing import Dict, Tuple
from lhotse import CutSet
from lhotse.dataset.sampling.base import CutSampler
def find_pessimistic_batches(
sampler: CutSampler, batch_tuple_index: int = 0
) -> Tuple[Dict[str, CutSet], Dict[str, float]]:
"""
Function for finding 'pessimistic' batches, i.e. ... | 39.345238 | 108 | 0.644781 | 418 | 3,305 | 4.992823 | 0.351675 | 0.028749 | 0.014375 | 0.023958 | 0.067561 | 0.034499 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.271407 | 3,305 | 83 | 109 | 39.819277 | 0.863787 | 0.470197 | 0 | 0.075 | 0 | 0 | 0.119209 | 0.070414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674fc8fb47108fcde4353966aaff882285b50e79 | 1,087 | py | Python | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | 1 | 2021-02-02T02:58:38.000Z | 2021-02-02T02:58:38.000Z | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | null | null | null | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | null | null | null | import math
import numpy as np
from mathipy.math import calculus
class Linearithmic(calculus.Function):
"""
f(x) = (mx + h)log_b(kx + a)
"""
function_type = 'Linearithmic'
def __init__(self, m = 1, h = 0, b = 10, a = 0, k = 1):
self.m = m
self.h = h
self.b = b
self.... | 30.194444 | 92 | 0.554738 | 165 | 1,087 | 3.545455 | 0.309091 | 0.042735 | 0.020513 | 0.034188 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028424 | 0.287948 | 1,087 | 36 | 93 | 30.194444 | 0.72739 | 0.025759 | 0 | 0 | 0 | 0 | 0.08046 | 0.021073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0.037037 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674feabbfb04fd43b656a2ee09e804a9db0cc338 | 11,479 | py | Python | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 18 | 2019-11-01T13:50:03.000Z | 2022-03-14T03:07:34.000Z | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 7 | 2020-01-03T13:53:26.000Z | 2021-03-25T22:55:52.000Z | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 3 | 2019-09-16T02:03:59.000Z | 2021-06-12T07:03:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module contains the necessary functions to load a text-corpus from
NLTK, contract all possible sentences, applying POS-tags to the
contracted sentences and compare that with the original text.
The information about which contraction+pos-tag pair gets expanded to
... | 40.850534 | 77 | 0.586811 | 1,449 | 11,479 | 4.534852 | 0.227053 | 0.013697 | 0.009588 | 0.013697 | 0.196165 | 0.146249 | 0.116877 | 0.104702 | 0.093441 | 0.093441 | 0 | 0.006345 | 0.34097 | 11,479 | 280 | 78 | 40.996429 | 0.86226 | 0.445248 | 0 | 0.188976 | 0 | 0 | 0.052754 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 1 | 0.031496 | false | 0 | 0.031496 | 0 | 0.07874 | 0.086614 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6751ed6431d090ba5f0d7abc986bd5b1a678af78 | 3,295 | py | Python | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | null | null | null | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 8 | 2021-03-30T12:52:01.000Z | 2022-03-12T00:19:45.000Z | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 1 | 2020-06-12T13:29:34.000Z | 2020-06-12T13:29:34.000Z | from io import BytesIO
from typing import List, Dict
from PIL import Image
from hit_analysis.commons.config import Config
from hit_analysis.commons.consts import IMAGE, CROP_X, CROP_Y, CROP_SIZE, FRAME_DECODED, CLASSIFIED, CLASS_ARTIFACT, ORIG_IMAGE
def append_to_frame(image: Image, detection: dict):
hit_img = ... | 35.815217 | 132 | 0.643703 | 490 | 3,295 | 4.226531 | 0.263265 | 0.017383 | 0.019314 | 0.02028 | 0.191212 | 0.1352 | 0.102366 | 0.07436 | 0.039594 | 0 | 0 | 0.007413 | 0.222155 | 3,295 | 91 | 133 | 36.208791 | 0.800624 | 0.233687 | 0 | 0.057692 | 0 | 0 | 0.044563 | 0.011856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.096154 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6756dc638ee04975afad0eae2f92936de0c1062f | 42,937 | py | Python | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | 5 | 2021-09-01T18:04:18.000Z | 2022-02-25T04:48:21.000Z | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | null | null | null | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from scipy.fftpack import fft, fftshift, ifft
from scipy.fftpack import fftfreq
from scipy.signal import find_peaks
from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
import pickle
import warnings
import sys
from scipy.signal.filter_design import maxflat
warnings.filter... | 42.851297 | 153 | 0.613038 | 4,455 | 42,937 | 5.893378 | 0.167677 | 0.010093 | 0.008798 | 0.005713 | 0.384955 | 0.335022 | 0.293925 | 0.274386 | 0.251762 | 0.226928 | 0 | 0.039445 | 0.27552 | 42,937 | 1,001 | 154 | 42.894106 | 0.804578 | 0.206605 | 0 | 0.326316 | 0 | 0 | 0.039131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015038 | false | 0.001504 | 0.016541 | 0 | 0.067669 | 0.067669 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6757319350181b82afbdb20fa5b589436eb598b6 | 3,623 | py | Python | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 12 | 2020-12-06T15:30:06.000Z | 2021-12-14T06:37:15.000Z | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | null | null | null | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 5 | 2021-03-18T05:53:11.000Z | 2022-02-16T15:18:43.000Z | import numpy as np
import numpy.testing as npt
import slippy
import slippy.core as core
"""
If you add a material you need to add the properties that it will be tested with to the material_parameters dict,
the key should be the name of the class (what ever it is declared as after the class key word).
The value should ... | 43.650602 | 118 | 0.666299 | 492 | 3,623 | 4.731707 | 0.310976 | 0.033076 | 0.030928 | 0.036082 | 0.342354 | 0.271907 | 0.228522 | 0.228522 | 0.228522 | 0.228522 | 0 | 0.027768 | 0.244549 | 3,623 | 82 | 119 | 44.182927 | 0.822799 | 0.040298 | 0 | 0.16 | 0 | 0 | 0.066055 | 0.008807 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675790d51afdb63e5ecaf1442d2db56ff733f532 | 2,602 | py | Python | python/dash_tools/restore_from_bup.py | Dash-Industry-Forum/media-tools | 66be01ce09c8998d47d05729e0721857b2517017 | [
"BSD-3-Clause"
] | 60 | 2017-01-02T07:44:17.000Z | 2022-03-29T07:39:53.000Z | media-tools/python/dash_tools/restore_from_bup.py | roolrz/ABR-Alg-Implementation | 02ba8fbc804eeabeae1dcd51d359c6b0a2dc7566 | [
"MIT"
] | 4 | 2018-03-23T07:56:21.000Z | 2021-11-22T06:45:12.000Z | media-tools/python/dash_tools/restore_from_bup.py | roolrz/ABR-Alg-Implementation | 02ba8fbc804eeabeae1dcd51d359c6b0a2dc7566 | [
"MIT"
] | 36 | 2016-08-04T14:28:30.000Z | 2022-03-20T09:41:17.000Z | #!/usr/bin/env python
"""Restore files with ending BACKUP_ENDING to original files."""
# The copyright in this software is being made available under the BSD License,
# included below. This software may be subject to other third party and contributor
# rights, including patent rights, and no such rights are granted un... | 41.967742 | 85 | 0.737894 | 366 | 2,602 | 5.180328 | 0.502732 | 0.031646 | 0.014768 | 0.024262 | 0.097046 | 0.07173 | 0.07173 | 0.07173 | 0.07173 | 0.07173 | 0 | 0.002885 | 0.200615 | 2,602 | 61 | 86 | 42.655738 | 0.908654 | 0.7206 | 0 | 0 | 0 | 0 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67588c7659b325ae0aa6ae1b1ce63ec6f84fa51d | 4,851 | py | Python | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 3 | 2021-06-24T01:54:25.000Z | 2021-12-12T16:21:24.000Z | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 5 | 2021-07-04T07:38:50.000Z | 2021-12-12T16:18:47.000Z | # Copyright 2020-2021 OpenDR European Project
#
# 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 agree... | 46.644231 | 119 | 0.520305 | 653 | 4,851 | 3.728943 | 0.287902 | 0.055852 | 0.052567 | 0.024641 | 0.126078 | 0.079671 | 0.055031 | 0.055031 | 0.033676 | 0.033676 | 0 | 0.025149 | 0.344259 | 4,851 | 103 | 120 | 47.097087 | 0.740333 | 0.150072 | 0 | 0.02439 | 0 | 0 | 0.012174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.036585 | 0 | 0.109756 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675abb614add4be960125080b494d7201adec0de | 2,352 | py | Python | aqg/utils/summarizer.py | Sicaida/Automatic_Question_Generation | a228c166d40103a194e1daa23ff37f73c9488a5d | [
"MIT"
] | 134 | 2018-04-04T19:06:09.000Z | 2022-02-24T03:24:36.000Z | aqg/utils/summarizer.py | Sicaida/Automatic_Question_Generation | a228c166d40103a194e1daa23ff37f73c9488a5d | [
"MIT"
] | 22 | 2018-09-20T07:17:11.000Z | 2022-03-11T23:45:15.000Z | aqg/utils/summarizer.py | sagarparikh2013/Automatic-Question-Generation-NLP | 6a2cf5d90e47980676f57c67f2ed73be6f8d7fed | [
"MIT"
] | 50 | 2018-07-09T16:29:15.000Z | 2021-12-20T11:37:33.000Z | from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from sumy.parsers.html import HtmlParser
from sumy.parsers.plaintext import PlaintextParser
from sumy.nlp.tokenizers import Tokenizer
#from sumy.summarizers.lsa import LsaSummarizer as Summarizer
from sumy.summariz... | 31.783784 | 79 | 0.676446 | 287 | 2,352 | 5.313589 | 0.243902 | 0.039344 | 0.062951 | 0.078689 | 0.534426 | 0.534426 | 0.534426 | 0.534426 | 0.534426 | 0.534426 | 0 | 0.014658 | 0.216837 | 2,352 | 73 | 80 | 32.219178 | 0.813246 | 0.084609 | 0 | 0.625 | 0 | 0 | 0.070764 | 0.060056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.270833 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675c672977a46ec740f1a913b376d847b4aabb59 | 4,212 | py | Python | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | # An example of a turbulent BEC in a harmonic trap. The groundstate is found
# and then some vortices randomly printed about with a phase printing. Some
# evolution in imaginary time is then performed to smooth things out before
# evolving the BEC in time.
# Run with 'mpirun -n <N CPUs> python run_example.py'
from __... | 39.364486 | 116 | 0.626068 | 611 | 4,212 | 4.188216 | 0.379705 | 0.021102 | 0.011723 | 0.01524 | 0.214146 | 0.153185 | 0.119578 | 0.098476 | 0.059398 | 0.026573 | 0 | 0.048572 | 0.276591 | 4,212 | 106 | 117 | 39.735849 | 0.79127 | 0.334283 | 0 | 0 | 0 | 0 | 0.015619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.084746 | 0 | 0.152542 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675c80c6427e7f597a41119f9db761e49256c6ca | 3,918 | py | Python | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 28 09:33:53 2020
@author: dhulls
"""
from __future__ import print_function
from __future__ import absolute_import
from argparse import ArgumentParser
import numpy as nm
import sys
sys.path.append('.')
from sfepy.base.base import IndexedStruct, St... | 41.242105 | 234 | 0.70342 | 605 | 3,918 | 4.38843 | 0.319008 | 0.033898 | 0.033898 | 0.033145 | 0.159322 | 0.101695 | 0.082109 | 0.05951 | 0.027119 | 0 | 0 | 0.045508 | 0.130679 | 3,918 | 95 | 235 | 41.242105 | 0.733999 | 0.024502 | 0 | 0 | 0 | 0 | 0.154955 | 0.013896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.225352 | 0 | 0.225352 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675d0fb6b3b1a21973d25abe79cafce5b94844f8 | 4,063 | py | Python | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | null | null | null | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | 10 | 2018-11-12T21:53:56.000Z | 2019-04-27T06:24:13.000Z | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import frappe
import json
from frappe.utils import now, cint
from functools import partial
from toolz import compose
@frappe.whitelist()
def deliver_result(lab_test, revert=0, delivery_time=None):
doc = frappe.get_doc("Lab Test", lab_test)
if doc... | 36.603604 | 87 | 0.628846 | 509 | 4,063 | 4.768173 | 0.202358 | 0.060569 | 0.037083 | 0.039555 | 0.407499 | 0.328389 | 0.295426 | 0.230326 | 0.142563 | 0.086939 | 0 | 0.002745 | 0.282796 | 4,063 | 110 | 88 | 36.936364 | 0.83013 | 0.005169 | 0 | 0.133333 | 0 | 0 | 0.102723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.088889 | 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 |
675e10e80e4d185d1bb67fc4f8ca4f7d8148f472 | 2,283 | py | Python | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | 1 | 2020-02-24T04:09:25.000Z | 2020-02-24T04:09:25.000Z | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | null | null | null | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | 1 | 2020-07-15T05:03:18.000Z | 2020-07-15T05:03:18.000Z | #!/usr/bin/env python3
from scripts.workflow import get_app_name, is_name_valid
from scripts.workflow import get_args, is_args_valid
from scripts.workflow import create_dir, create_app, create_templates_folder, create_static_folder, create_dockerfile
from scripts.manual import print_manual
from scripts.messages import... | 31.708333 | 117 | 0.616732 | 295 | 2,283 | 4.518644 | 0.288136 | 0.099775 | 0.042761 | 0.056264 | 0.093773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000618 | 0.290845 | 2,283 | 72 | 118 | 31.708333 | 0.82273 | 0.113009 | 0 | 0.196078 | 0 | 0 | 0.196827 | 0.013386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.215686 | 0 | 0.215686 | 0.313725 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675e7374895c08103fdfc9d9f90f2f45da303fe7 | 2,960 | py | Python | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | null | null | null | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | 11 | 2020-01-23T16:45:07.000Z | 2020-02-08T16:53:22.000Z | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | 2 | 2020-01-29T18:18:20.000Z | 2020-01-29T19:55:25.000Z | import os
from pathlib import Path
from jinja2 import Template
import parser
from utils import write_to_file
from utils import mkdir_p
parser.init()
# parse and assign to vars
spec = parser.spec
def _concat(slice: str) -> str:
"""helper to concatenate each template slice."""
return "{}\n".format(slice)
... | 33.636364 | 82 | 0.65777 | 361 | 2,960 | 5.210526 | 0.299169 | 0.019139 | 0.027645 | 0.026582 | 0.087188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000427 | 0.208784 | 2,960 | 87 | 83 | 34.022989 | 0.802733 | 0.106757 | 0 | 0.031746 | 0 | 0 | 0.142148 | 0.008024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.015873 | 0.095238 | 0 | 0.253968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
676411e3c65abd02fa317570d558db02833381e4 | 7,673 | py | Python | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 7 | 2020-01-10T09:34:52.000Z | 2020-01-27T13:51:12.000Z | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 6 | 2020-01-26T20:38:07.000Z | 2022-02-10T12:12:53.000Z | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 4 | 2020-01-27T16:44:31.000Z | 2021-02-11T16:52:26.000Z | from open_anafi.models import Indicator, IndicatorParameter, IndicatorLibelle
from open_anafi.serializers import IndicatorSerializer
from .frame_tools import FrameTools
from open_anafi.lib import parsing_tools
from open_anafi.lib.ply.parsing_classes import Indic
import re
from django.db import transaction
from django.c... | 37.985149 | 129 | 0.639776 | 839 | 7,673 | 5.717521 | 0.205006 | 0.045028 | 0.021889 | 0.025016 | 0.21847 | 0.120909 | 0.083802 | 0.054201 | 0.03252 | 0.03252 | 0 | 0.002742 | 0.287111 | 7,673 | 201 | 130 | 38.174129 | 0.874223 | 0.224814 | 0 | 0.236842 | 0 | 0 | 0.044528 | 0.003934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 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 |
6767ec882d17e62fa49469a5e7630e14c022c42d | 16,089 | py | Python | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 31 | 2015-03-28T09:43:53.000Z | 2022-02-27T18:20:06.000Z | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 24 | 2015-01-16T03:00:33.000Z | 2022-02-08T00:06:05.000Z | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 21 | 2015-01-15T23:00:26.000Z | 2020-11-04T08:30:13.000Z | ##############################################################################
# Copyright (c) 2009-2021, Hajime Nakagami<nakagami@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * ... | 38.675481 | 85 | 0.604139 | 2,084 | 16,089 | 4.365163 | 0.145873 | 0.038254 | 0.035176 | 0.035067 | 0.570957 | 0.518413 | 0.505771 | 0.470924 | 0.438386 | 0.421897 | 0 | 0.024655 | 0.279011 | 16,089 | 415 | 86 | 38.768675 | 0.759569 | 0.085276 | 0 | 0.517442 | 0 | 0 | 0.000895 | 0 | 0 | 0 | 0.016928 | 0 | 0.008721 | 1 | 0.081395 | false | 0 | 0.008721 | 0.02907 | 0.142442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6769164b195db417c53c603f5e118948e48af7f8 | 8,230 | py | Python | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | null | null | null | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | null | null | null | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | 1 | 2020-10-05T12:10:32.000Z | 2020-10-05T12:10:32.000Z | import logging
from credstuffer.db.connector import DBConnector
from credstuffer.exceptions import DBCreatorError
class Database:
""" class Database to build a sql string for Database creation
USAGE:
Database(name="web")
"""
def __init__(self, name):
self.logger = logging.getLogg... | 31.776062 | 116 | 0.615188 | 1,028 | 8,230 | 4.698444 | 0.109922 | 0.053623 | 0.042236 | 0.043064 | 0.605383 | 0.509524 | 0.426501 | 0.397516 | 0.397516 | 0.386542 | 0 | 0.001367 | 0.289064 | 8,230 | 258 | 117 | 31.899225 | 0.824133 | 0.235358 | 0 | 0.511628 | 0 | 0 | 0.076254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147287 | false | 0 | 0.023256 | 0 | 0.364341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67692e8a3e167b8004f399714ed1c11e30cf9ebb | 897 | py | Python | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | from __future__ import annotations
from pathlib import Path
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from poetry.core.poetry import Poetry
class Builder:
def __init__(self, poetry: Poetry) -> None:
from poetry.core.masonry.builders.sdist import SdistBuilder
from poetry.core.masonr... | 27.181818 | 76 | 0.630992 | 100 | 897 | 5.5 | 0.41 | 0.08 | 0.076364 | 0.076364 | 0.105455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277592 | 897 | 32 | 77 | 28.03125 | 0.848765 | 0 | 0 | 0 | 0 | 0 | 0.037904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 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 |
676b193319b9f06972fcafcb462e36e367c9d59d | 659 | py | Python | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | 2 | 2021-02-15T12:56:58.000Z | 2021-02-21T12:38:47.000Z | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | """users.country
Revision ID: 429d596c43a7
Revises: 77e0c0edaa04
Create Date: 2020-10-23 21:26:55.598146
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '429d596c43a7'
down_revision = '77e0c0edaa04'
branch_labels = None
depends_on = None
def upgrade():
# ... | 22.724138 | 84 | 0.691958 | 82 | 659 | 5.5 | 0.597561 | 0.059867 | 0.093126 | 0.101996 | 0.195122 | 0.195122 | 0.195122 | 0.195122 | 0 | 0 | 0 | 0.093407 | 0.171472 | 659 | 28 | 85 | 23.535714 | 0.732601 | 0.447648 | 0 | 0 | 0 | 0 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
676bce0736ccad204cb3cef87d200632b75f487f | 4,535 | py | Python | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | 1 | 2018-06-28T09:45:59.000Z | 2018-06-28T09:45:59.000Z | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | null | null | null | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | null | null | null | """ Module for processing mentions of the bot via the Twitter API.
"""
from ConnectFourGame import *
from databasehelpers import *
from helpers import *
from minimax import *
def process_mentions():
""" Scan through recent mentions and send them to be processed.
"""
api = get_twitter_api()
first = Tru... | 39.780702 | 114 | 0.613892 | 614 | 4,535 | 4.32899 | 0.241042 | 0.028969 | 0.026336 | 0.029345 | 0.334086 | 0.293078 | 0.244545 | 0.176825 | 0.125658 | 0.048909 | 0 | 0.009938 | 0.289967 | 4,535 | 113 | 115 | 40.132743 | 0.815528 | 0.235502 | 0 | 0.147059 | 0 | 0 | 0.089914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.058824 | 0 | 0.161765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
676c11480ace0b3ea4cda5237879a07a2c1fe362 | 3,448 | py | Python | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | 2 | 2019-07-22T09:42:25.000Z | 2021-03-31T09:29:29.000Z | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | null | null | null | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | null | null | null | import pandas as pd
def get_seasonality_weekly(bills, date_column='dates', group_column='level_4_name',
regular_only=False, promo_fact_column=None):
bills['week'] = pd.to_datetime(bills[date_column]).dt.week
bills['year'] = pd.to_datetime(bills[date_column]).dt.year
# - Группиру... | 74.956522 | 120 | 0.690255 | 512 | 3,448 | 4.359375 | 0.300781 | 0.100358 | 0.058244 | 0.043011 | 0.362903 | 0.256272 | 0.16129 | 0.114695 | 0.085125 | 0.085125 | 0 | 0.011834 | 0.166763 | 3,448 | 45 | 121 | 76.622222 | 0.765054 | 0.237529 | 0 | 0 | 0 | 0 | 0.151758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
676d15fe9000290c81a06864a2972f44722d480f | 1,729 | py | Python | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 10 | 2021-11-30T06:22:20.000Z | 2021-12-16T00:36:14.000Z | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 5 | 2021-12-03T10:21:15.000Z | 2022-01-18T11:08:48.000Z | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 3 | 2021-12-10T08:34:28.000Z | 2022-01-21T11:59:46.000Z | from .command import Command, ApiCommand
class Application:
def __init__(self, client):
self.client = client
self.http = client.http
self.__commands = []
async def fetch_commands(self) -> List[ApiCommand]:
"""
This can fetch discord application commands from dis... | 28.816667 | 72 | 0.520532 | 171 | 1,729 | 5.140351 | 0.315789 | 0.040956 | 0.031854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.385772 | 1,729 | 59 | 73 | 29.305085 | 0.827684 | 0.126084 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 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 |
676d7655b19bd0498b46ef17e54ab70538bcef0d | 1,563 | py | Python | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 512 | 2021-06-15T08:52:44.000Z | 2022-03-31T09:49:53.000Z | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 75 | 2021-06-20T13:49:50.000Z | 2022-03-30T02:45:31.000Z | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 156 | 2021-06-18T11:56:36.000Z | 2022-03-29T16:34:22.000Z | import responses
from tests.util import random_str
from tests.util import mock_http_response
from binance.spot import Spot as Client
from binance.lib.utils import encoded_string
from binance.error import ParameterRequiredError
mock_item = {"key_1": "value_1", "key_2": "value_2"}
key = random_str()
secret = random_st... | 26.05 | 79 | 0.690339 | 193 | 1,563 | 5.367876 | 0.300518 | 0.121622 | 0.098456 | 0.138996 | 0.587838 | 0.55888 | 0.444015 | 0.370656 | 0.333977 | 0.247104 | 0 | 0.015686 | 0.184261 | 1,563 | 59 | 80 | 26.491525 | 0.796863 | 0.104926 | 0 | 0.357143 | 0 | 0 | 0.132321 | 0.027477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
676fd905727818efa8eda82566b5e796e9f06ce8 | 11,273 | py | Python | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | 3 | 2022-02-23T09:05:45.000Z | 2022-02-23T20:18:18.000Z | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | null | null | null | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | null | null | null | from tensorflow.keras.models import Model
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
import cv2
import numpy as np
import pandas as pd
from tensorflow.keras.models import load_model
import tensorflow as tf
import os
#--------------... | 37.327815 | 86 | 0.593808 | 1,453 | 11,273 | 4.399862 | 0.220922 | 0.025184 | 0.034569 | 0.020804 | 0.258564 | 0.202722 | 0.120914 | 0.102769 | 0.048491 | 0.048491 | 0 | 0.021956 | 0.236406 | 11,273 | 301 | 87 | 37.451827 | 0.720725 | 0.35004 | 0 | 0.144654 | 0 | 0 | 0.149166 | 0.078414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025157 | false | 0 | 0.075472 | 0 | 0.119497 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677019eb7c18145cccb4dc9a2d50f339eddc7e89 | 5,038 | py | Python | start.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 20 | 2019-11-14T02:53:53.000Z | 2022-03-26T02:44:04.000Z | start.py | janlle/12306 | 73b1d5423492013447ebdbbfcc6f1fe3a719ee0b | [
"Apache-2.0"
] | 9 | 2019-11-17T09:16:37.000Z | 2022-03-12T00:07:14.000Z | start.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 7 | 2019-12-05T09:26:09.000Z | 2020-11-15T15:13:16.000Z | # coding:utf-8
"""
start rob task good luck!
> python start.py
"""
import datetime
import time
from sys import version_info
import threadpool
import ticket_config as config
from config.stations import check_station_exists
from train.login import Login
from train.order import Order
from train.ticket import Ticket
f... | 37.044118 | 117 | 0.502382 | 528 | 5,038 | 4.585227 | 0.263258 | 0.037175 | 0.023131 | 0.005783 | 0.022305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013861 | 0.412862 | 5,038 | 135 | 118 | 37.318519 | 0.804598 | 0.030171 | 0 | 0.201835 | 0 | 0 | 0.051087 | 0.004719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0.009174 | 0.100917 | 0 | 0.110092 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6770f980c35e8599c5cad58c26a50fad3654f206 | 2,769 | py | Python | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null |
import subprocess
import sys
import os
import setup_util
from os.path import expanduser
def start(args, logfile, errfile):
fwroot = args.fwroot
setup_util.replace_text("cakephp/app/Config/database.php", "'host' => '.*',", "'host' => '" + args.database_host + "',")
setup_util.replace_text("cakephp/app/Config/cor... | 57.6875 | 186 | 0.717226 | 382 | 2,769 | 5.125654 | 0.316754 | 0.059755 | 0.097038 | 0.101124 | 0.552094 | 0.538815 | 0.522472 | 0.401941 | 0.332993 | 0.164454 | 0 | 0.005843 | 0.134706 | 2,769 | 47 | 187 | 58.914894 | 0.811352 | 0.176598 | 0 | 0.342857 | 0 | 0.085714 | 0.361515 | 0.205196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67719e766692980e9b9fa0f337632160d3b1343e | 624 | py | Python | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 19 | 2019-02-23T02:17:28.000Z | 2022-03-17T16:27:10.000Z | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 1 | 2019-05-05T09:11:22.000Z | 2019-06-15T04:48:29.000Z | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 3 | 2019-06-09T01:53:48.000Z | 2019-09-09T07:04:51.000Z | import os, stat
def addPermission(Filename):
os.chmod(Filename, os.stat(Filename).st_mode | stat.S_IXUSR);
def transform(content):
name = '';
for i in range(0, len(content)):
if (content[i] == ' ' and content[i + 1] == ' '):
name += '\n';
else:
name += content[i];
... | 26 | 65 | 0.464744 | 84 | 624 | 3.428571 | 0.380952 | 0.072917 | 0.041667 | 0.076389 | 0.104167 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.358974 | 624 | 23 | 66 | 27.130435 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677367dc85c6f920d38d59e7cc33a0e5eafc5a8c | 6,987 | py | Python | Code/utils.py | minna-ust/SemanticMapGeneration | ab50ed853552713d4d4447b4c1d44e0b8f147318 | [
"BSD-3-Clause"
] | 8 | 2020-01-15T02:49:35.000Z | 2021-11-26T08:29:50.000Z | Code/utils.py | Hezip/SemanticMapGeneration | 98920045c1da5812f6691e6eb75bcc3413406035 | [
"BSD-3-Clause"
] | null | null | null | Code/utils.py | Hezip/SemanticMapGeneration | 98920045c1da5812f6691e6eb75bcc3413406035 | [
"BSD-3-Clause"
] | 6 | 2020-03-05T06:40:24.000Z | 2022-02-16T04:56:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Common utility functions
Created on Sun May 27 16:37:42 2018
@author: chen
"""
import math
import cv2
import os
from imutils import paths
import numpy as np
import scipy.ndimage
def rotate_cooridinate(cooridinate_og,rotate_angle,rotate_center):
"""
calculat... | 32.347222 | 123 | 0.640046 | 1,012 | 6,987 | 4.287549 | 0.232213 | 0.022816 | 0.024199 | 0.005531 | 0.289468 | 0.255128 | 0.230698 | 0.207652 | 0.194284 | 0.160867 | 0 | 0.038947 | 0.228281 | 6,987 | 216 | 124 | 32.347222 | 0.765764 | 0.205095 | 0 | 0.272 | 0 | 0 | 0.005991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096 | false | 0 | 0.048 | 0.008 | 0.232 | 0.008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6773e2cae4ca1a7fe539b33cf15047934bd21fc6 | 1,225 | py | Python | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | 1 | 2021-02-27T19:34:43.000Z | 2021-02-27T19:34:43.000Z | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | null | null | null | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | null | null | null | import os
import sys
from subprocess import CalledProcessError
from working_with_github.utils import run
def checkout_pr():
user, branch = sys.argv[1].split(":")
_checkout_pr(user, branch)
def _checkout_pr(user, branch):
run(f"git remote add {user} git@github.com:{user}/addons.git", fail_ok=True)
r... | 26.630435 | 80 | 0.646531 | 181 | 1,225 | 4.270718 | 0.292818 | 0.051746 | 0.081501 | 0.103493 | 0.284605 | 0.11643 | 0.11643 | 0.11643 | 0.11643 | 0.11643 | 0 | 0.003024 | 0.190204 | 1,225 | 45 | 81 | 27.222222 | 0.77621 | 0 | 0 | 0.117647 | 0 | 0 | 0.395918 | 0.062041 | 0 | 0 | 0 | 0 | 0.029412 | 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 |
67752967909d812410a7c0a4e3e611d417d432d0 | 4,144 | py | Python | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | import logging
import time
import re
import serial
from threading import Thread, Event
from respeaker import Microphone
from respeaker import BingSpeechAPI
from respeaker import PixelRing,pixel_ring
BING_KEY = '95e4fe8b3a324389be4595bd1813121c'
ser = serial.Serial('/dev/ttyS1',115200,timeout=0)
data=[0xAA,0x01,0x64,... | 30.925373 | 129 | 0.516651 | 481 | 4,144 | 4.405405 | 0.259875 | 0.060406 | 0.038226 | 0.04908 | 0.206701 | 0.17697 | 0.162813 | 0.162813 | 0.152902 | 0.124587 | 0 | 0.083208 | 0.356178 | 4,144 | 134 | 130 | 30.925373 | 0.711019 | 0.014479 | 0 | 0.231405 | 0 | 0 | 0.09777 | 0.007841 | 0 | 0 | 0.054889 | 0 | 0 | 1 | 0.024793 | false | 0 | 0.066116 | 0 | 0.090909 | 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 |
677586a1690b5ab7c02ad679b07e602f0cadd49c | 1,063 | py | Python | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
'''
@author: caroline
@license: (C) Copyright 2019-2022, Node Supply Chain Manager Corporation Limited.
@contact: caroline.fang.cc@gmail.com
@software: pycharm
@file: account_voteCredit.py
@time: 2020/1/8 11:23 上午
@desc:
'''
from apis.API import request_Api
def voteCredit(api_... | 31.264706 | 265 | 0.74318 | 128 | 1,063 | 6.03125 | 0.703125 | 0.045337 | 0.050518 | 0.059585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.099718 | 1,063 | 34 | 266 | 31.264706 | 0.634274 | 0.562559 | 0 | 0 | 0 | 0 | 0.342342 | 0.189189 | 0 | 0 | 0.231982 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |