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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82fa552a0171833c0c07fa00ed134b17a1330763 | 2,974 | py | Python | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | 2 | 2017-12-06T00:58:05.000Z | 2020-05-27T21:00:59.000Z | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | null | null | null | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | 2 | 2020-01-24T09:17:11.000Z | 2020-04-02T10:15:02.000Z | """
sphinx-simulink.application
~~~~~~~~~~~~~~~~~~~~~~~
Embed Simulink diagrams on your documentation.
:copyright:
Copyright 2016 by Dennis Edward Kalinowski <dekalinowski@gmail.com>.
:license:
MIT, see LICENSE for details.
"""
import matlab.engine
import os
from sphinx.errors import S... | 23.983871 | 78 | 0.613652 | 322 | 2,974 | 5.596273 | 0.431677 | 0.026637 | 0.023307 | 0.022198 | 0.029967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005176 | 0.285474 | 2,974 | 123 | 79 | 24.178862 | 0.842824 | 0.190652 | 0 | 0.095238 | 0 | 0 | 0.091988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0.031746 | 0.095238 | 0 | 0.190476 | 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 |
82fd4ff37849618d568dd247a4ca0ff25544b1fd | 13,195 | py | Python | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 5 | 2020-08-06T04:28:27.000Z | 2022-03-23T09:10:29.000Z | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 4 | 2020-11-28T07:23:40.000Z | 2022-03-28T08:57:07.000Z | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 1 | 2020-10-18T02:39:55.000Z | 2020-10-18T02:39:55.000Z | """
Author: Konstantinos Angelopoulos
Date: 04/02/2020
All rights reserved.
Feel free to use and modify and if you like it give it a star.
Import the Robot's Step Files and Color/Scale/Assemble them using the instructions in /RoboDK/KUKA/KUKA LWR IV+ Description
(for Original=kuka_lwr_model_description.json, for custo... | 55.209205 | 177 | 0.649564 | 1,631 | 13,195 | 4.895156 | 0.118945 | 0.089554 | 0.094689 | 0.034068 | 0.621242 | 0.31726 | 0.233717 | 0.211423 | 0.197645 | 0.183241 | 0 | 0.031633 | 0.190224 | 13,195 | 238 | 178 | 55.441176 | 0.715583 | 0.215385 | 0 | 0.085106 | 0 | 0 | 0.180499 | 0.013059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028369 | 0 | 0.028369 | 0.014184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
82fdd7e670db27270125e392ffe7dfc17727a77e | 10,668 | py | Python | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of Archdiffer and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
Created on Sat May 12 20:39:46 2018
@author: Pavla Kratochvilova <pavla.kratochvilova@gmail.com>
"""
from random import choice
from datetime import datetime
from ... | 32.036036 | 79 | 0.522778 | 1,101 | 10,668 | 4.960945 | 0.168029 | 0.014647 | 0.032223 | 0.014647 | 0.467777 | 0.388685 | 0.288905 | 0.269315 | 0.228122 | 0.19004 | 0 | 0.039612 | 0.342145 | 10,668 | 332 | 80 | 32.13253 | 0.738672 | 0.176978 | 0 | 0.398406 | 0 | 0 | 0.094777 | 0.011658 | 0 | 0 | 0 | 0 | 0.047809 | 1 | 0.067729 | false | 0 | 0.01992 | 0 | 0.199203 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d202532cd5f882629e4b1ca88d649d9dd76cb423 | 9,780 | py | Python | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | null | null | null | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | 5 | 2021-06-30T11:24:14.000Z | 2021-08-04T12:53:00.000Z | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Module containing the ClusteringPredict class and the command line interface."""
import argparse
import pandas as pd
import joblib
from biobb_common.generic.biobb_object import BiobbObject
from sklearn.preprocessing import StandardScaler
from biobb_common.configuration import settings
from b... | 52.864865 | 354 | 0.645194 | 1,189 | 9,780 | 5.070648 | 0.227923 | 0.047769 | 0.055731 | 0.023885 | 0.393929 | 0.331398 | 0.254105 | 0.16205 | 0.131033 | 0.078786 | 0 | 0.008149 | 0.247137 | 9,780 | 184 | 355 | 53.152174 | 0.810675 | 0.370654 | 0 | 0.073684 | 0 | 0 | 0.163753 | 0.007061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.094737 | 0 | 0.178947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d207522acb3ce4394972c46c3f9f025ef3ebed35 | 683 | py | Python | p2/core/tasks.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/tasks.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/tasks.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | """p2 core tasks"""
from p2.core.celery import CELERY_APP
from p2.lib.reflection import path_to_class
@CELERY_APP.task(bind=True)
def signal_marshall(self, signal, args=None, kwargs=None):
"""Run signal in task worker"""
if not args:
args = []
if not kwargs:
kwargs = {}
# Lookup PK to ... | 32.52381 | 72 | 0.648609 | 99 | 683 | 4.323232 | 0.414141 | 0.042056 | 0.077103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.231332 | 683 | 20 | 73 | 34.15 | 0.809524 | 0.099561 | 0 | 0 | 0 | 0 | 0.023179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
d207656cad5f592cc3b1825bcd0b8c7607785174 | 4,463 | py | Python | tests/keras_contrib/layers/test_convolutional.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 7 | 2017-07-22T09:05:44.000Z | 2019-04-30T02:08:04.000Z | tests/keras_contrib/layers/test_convolutional.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 1 | 2017-12-26T02:59:59.000Z | 2017-12-26T02:59:59.000Z | tests/keras_contrib/layers/test_convolutional.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 11 | 2017-07-06T14:11:51.000Z | 2021-08-21T23:18:20.000Z | import pytest
import numpy as np
import itertools
from numpy.testing import assert_allclose
from keras_contrib.utils.test_utils import layer_test, keras_test
from keras.utils.conv_utils import conv_input_length
from keras import backend as K
from keras_contrib import backend as KC
from keras_contrib.layers import conv... | 37.191667 | 95 | 0.538203 | 502 | 4,463 | 4.50996 | 0.256972 | 0.05742 | 0.039753 | 0.035336 | 0.412544 | 0.371908 | 0.371908 | 0.371908 | 0.371908 | 0.371908 | 0 | 0.028452 | 0.354246 | 4,463 | 119 | 96 | 37.504202 | 0.757113 | 0.010083 | 0 | 0.363636 | 0 | 0 | 0.070879 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.020202 | false | 0 | 0.10101 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d20883f007efa4a112403e5dc5f0370600e053b9 | 8,131 | py | Python | superpyrate/task_countfiles.py | willu47/superpyrate | 60ce6f98a00cac418f62ccac9a194023a4f4b37a | [
"MIT"
] | null | null | null | superpyrate/task_countfiles.py | willu47/superpyrate | 60ce6f98a00cac418f62ccac9a194023a4f4b37a | [
"MIT"
] | null | null | null | superpyrate/task_countfiles.py | willu47/superpyrate | 60ce6f98a00cac418f62ccac9a194023a4f4b37a | [
"MIT"
] | null | null | null | """Holds the luigi tasks which count the number of rows in the files
Records the number of clean and dirty rows in the AIS data,
writing these stats to the database and finally producing a report of the
statistics
1. Count the number of rows in the raw csv files (in ``files/unzipped/<archive>``)
2. Count the number o... | 39.663415 | 101 | 0.615422 | 960 | 8,131 | 5.071875 | 0.235417 | 0.045389 | 0.020538 | 0.020949 | 0.249127 | 0.211132 | 0.171082 | 0.120353 | 0.085028 | 0.085028 | 0 | 0.00135 | 0.271307 | 8,131 | 204 | 102 | 39.857843 | 0.820422 | 0.164309 | 0 | 0.192308 | 0 | 0.007692 | 0.118781 | 0.004482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.007692 | 0.069231 | 0.007692 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d20a84d94f2ed93364b818533786034015f7b86f | 1,917 | py | Python | pyquil/api/__init__.py | stjordanis/pyquil | 36987ecb78d5dc85d299dd62395b7669a1cedd5a | [
"Apache-2.0"
] | 677 | 2017-01-09T23:20:22.000Z | 2018-11-26T10:57:49.000Z | pyquil/api/__init__.py | stjordanis/pyquil | 36987ecb78d5dc85d299dd62395b7669a1cedd5a | [
"Apache-2.0"
] | 574 | 2018-11-28T05:38:40.000Z | 2022-03-23T20:38:28.000Z | pyquil/api/__init__.py | stjordanis/pyquil | 36987ecb78d5dc85d299dd62395b7669a1cedd5a | [
"Apache-2.0"
] | 202 | 2018-11-30T06:36:28.000Z | 2022-03-29T15:38:18.000Z | ##############################################################################
# Copyright 2016-2017 Rigetti Computing
#
# 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... | 33.631579 | 112 | 0.691706 | 201 | 1,917 | 6.457711 | 0.527363 | 0.069337 | 0.080123 | 0.024653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00743 | 0.157538 | 1,917 | 56 | 113 | 34.232143 | 0.796285 | 0.336985 | 0 | 0 | 0 | 0 | 0.23653 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d20aad59d161f70830e20fabfe7cc1b0d6c4b1b9 | 946 | py | Python | nodes/makeblock_ros_one.py | to4dy/makeblock-ros | 12b58195c9be3cc95c6398704a17ceb3a841813e | [
"MIT"
] | 7 | 2017-12-17T00:45:07.000Z | 2022-03-11T10:25:54.000Z | nodes/makeblock_ros_one.py | to4dy/makeblock-ros | 12b58195c9be3cc95c6398704a17ceb3a841813e | [
"MIT"
] | null | null | null | nodes/makeblock_ros_one.py | to4dy/makeblock-ros | 12b58195c9be3cc95c6398704a17ceb3a841813e | [
"MIT"
] | 3 | 2016-06-21T05:45:24.000Z | 2017-04-19T18:48:31.000Z | #!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import Float32
from megapi import *
from makeblock_ros.srv import *
bot = None
def onRead(v):
print("and here!")
rospy.loginfo(v)
pub.publish(v)
def handle_makeblock_motors(req):
global bot
bot.motorRun(M1, req.s... | 20.12766 | 73 | 0.662791 | 124 | 946 | 4.870968 | 0.604839 | 0.07947 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024557 | 0.225159 | 946 | 46 | 74 | 20.565217 | 0.799454 | 0.056025 | 0 | 0.0625 | 0 | 0 | 0.114607 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.03125 | 0.125 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d20cfcc3e7e361f935e2feabc8a3b8078a59377a | 2,514 | py | Python | jaxopt/_src/loop.py | ianwilliamson/jaxopt | 0ff6be8094aacb3bf5472a41d780e3f56fc8e0f8 | [
"Apache-2.0"
] | 2 | 2021-10-04T15:20:55.000Z | 2021-10-05T08:52:46.000Z | jaxopt/_src/loop.py | ianwilliamson/jaxopt | 0ff6be8094aacb3bf5472a41d780e3f56fc8e0f8 | [
"Apache-2.0"
] | null | null | null | jaxopt/_src/loop.py | ianwilliamson/jaxopt | 0ff6be8094aacb3bf5472a41d780e3f56fc8e0f8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.289157 | 79 | 0.699682 | 406 | 2,514 | 4.142857 | 0.325123 | 0.064209 | 0.039239 | 0.049941 | 0.157551 | 0.098098 | 0.066587 | 0 | 0 | 0 | 0 | 0.008458 | 0.200477 | 2,514 | 82 | 80 | 30.658537 | 0.828358 | 0.404535 | 0 | 0.209302 | 0 | 0 | 0.034364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.046512 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d20e5a4fd52895393eb34015d45cba3558f08f7a | 8,407 | py | Python | official/recommendation/model_runner.py | decster/models | 82e783e3172f254b62dc4af08987754ebb7c348c | [
"Apache-2.0"
] | 3 | 2018-10-31T02:16:47.000Z | 2018-11-06T09:11:37.000Z | official/recommendation/model_runner.py | decster/models | 82e783e3172f254b62dc4af08987754ebb7c348c | [
"Apache-2.0"
] | null | null | null | official/recommendation/model_runner.py | decster/models | 82e783e3172f254b62dc4af08987754ebb7c348c | [
"Apache-2.0"
] | 1 | 2020-01-21T17:39:55.000Z | 2020-01-21T17:39:55.000Z | # Copyright 2018 The TensorFlow 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 applica... | 40.418269 | 93 | 0.692875 | 1,074 | 8,407 | 5.166667 | 0.256983 | 0.028834 | 0.017661 | 0.018021 | 0.119481 | 0.066318 | 0.05082 | 0.05082 | 0 | 0 | 0 | 0.002443 | 0.221125 | 8,407 | 207 | 94 | 40.613527 | 0.844991 | 0.34507 | 0 | 0.051724 | 0 | 0 | 0.064964 | 0.008449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0 | 0.086207 | 0 | 0.198276 | 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 |
d20f67ca5ace0109a27cb8bee9fd7724ffdbb6df | 2,342 | py | Python | main_model/example.py | benmaier/DigCT | 62fc3fddb7600e2a43761e08618b2e3df423569c | [
"MIT"
] | null | null | null | main_model/example.py | benmaier/DigCT | 62fc3fddb7600e2a43761e08618b2e3df423569c | [
"MIT"
] | null | null | null | main_model/example.py | benmaier/DigCT | 62fc3fddb7600e2a43761e08618b2e3df423569c | [
"MIT"
] | 1 | 2021-07-12T13:50:35.000Z | 2021-07-12T13:50:35.000Z | import numpy as np
from simulation import simulation_code
from tqdm import tqdm
def make_length(arr,maxlen):
dL = maxlen - len(arr)
if dL > 0:
newa = np.concatenate((arr, np.ones(dL)*arr[-1]))
else:
newa = arr
return newa
def make_equal_length(arr_list):
maxlen = max([len(a) for ... | 23.897959 | 79 | 0.62041 | 367 | 2,342 | 3.776567 | 0.365123 | 0.080808 | 0.075036 | 0.012987 | 0.16811 | 0.041847 | 0 | 0 | 0 | 0 | 0 | 0.065229 | 0.227583 | 2,342 | 97 | 80 | 24.14433 | 0.70094 | 0 | 0 | 0 | 0 | 0 | 0.07088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.052632 | 0.013158 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2126b69bc34d19eeaa2b4aa3508f4499874a0f2 | 3,069 | py | Python | affineTransform.py | LuBru90/Facemorphing | ddeb8b0d368d62c66a032290cd756f0e3f3d6a81 | [
"Apache-2.0"
] | null | null | null | affineTransform.py | LuBru90/Facemorphing | ddeb8b0d368d62c66a032290cd756f0e3f3d6a81 | [
"Apache-2.0"
] | null | null | null | affineTransform.py | LuBru90/Facemorphing | ddeb8b0d368d62c66a032290cd756f0e3f3d6a81 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import cv2
import time
def getTransformMatrix(origin, destination):
x = np.zeros(origin.shape[0] + 1) # insert [0]-element for better indexing -> x[1] = first element
x[1:] = origin[:,0]
y = np.copy(x)
y[1:] = origin[:,1]
x_ = np.copy(x)
x_[1... | 38.848101 | 121 | 0.491691 | 456 | 3,069 | 3.201754 | 0.192982 | 0.024658 | 0.018493 | 0.013699 | 0.143151 | 0.091781 | 0.079452 | 0.024658 | 0.024658 | 0.024658 | 0 | 0.090568 | 0.305637 | 3,069 | 78 | 122 | 39.346154 | 0.594557 | 0.065819 | 0 | 0 | 0 | 0 | 0.006646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d214f97afaf19189be80677ea4aa9be0be0607e7 | 4,219 | py | Python | demo_count.py | addtt/multi-object-datasets | d3b03ec56a9e971fed4d3519e8bfee5ed02ed9cb | [
"MIT"
] | 4 | 2020-01-06T08:50:04.000Z | 2021-12-06T08:41:13.000Z | demo_count.py | addtt/multi-object-datasets | d3b03ec56a9e971fed4d3519e8bfee5ed02ed9cb | [
"MIT"
] | 2 | 2021-06-08T20:48:25.000Z | 2021-09-08T01:35:58.000Z | demo_count.py | addtt/multi-object-datasets | d3b03ec56a9e971fed4d3519e8bfee5ed02ed9cb | [
"MIT"
] | 2 | 2020-11-19T14:20:29.000Z | 2021-01-12T12:00:44.000Z | import argparse
import os
import torch
import torch.nn.functional as F
from torch import nn
from torch.optim.adamax import Adamax
from multiobject.pytorch import MultiObjectDataLoader, MultiObjectDataset
epochs = 100
batch_size = 64
lr = 3e-4
dataset_filename = os.path.join(
'dsprites',
'multi_dsprites_color... | 27.756579 | 73 | 0.569803 | 504 | 4,219 | 4.626984 | 0.325397 | 0.015009 | 0.012864 | 0.025729 | 0.117496 | 0.05446 | 0.05446 | 0.027015 | 0.027015 | 0.027015 | 0 | 0.029533 | 0.309789 | 4,219 | 151 | 74 | 27.940397 | 0.771291 | 0.080825 | 0 | 0.11215 | 0 | 0 | 0.063439 | 0.00725 | 0 | 0 | 0 | 0 | 0.009346 | 1 | 0.065421 | false | 0 | 0.065421 | 0.009346 | 0.186916 | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d21501d0dc912be2f83952df41a003d90a5d9684 | 2,015 | py | Python | run_main_script.py | korombus/blender_battleVR_py | d0d0ccfabfa644fc97105e5cc99e86e37167cb55 | [
"MIT"
] | null | null | null | run_main_script.py | korombus/blender_battleVR_py | d0d0ccfabfa644fc97105e5cc99e86e37167cb55 | [
"MIT"
] | null | null | null | run_main_script.py | korombus/blender_battleVR_py | d0d0ccfabfa644fc97105e5cc99e86e37167cb55 | [
"MIT"
] | null | null | null | import bpy
import random
import math
## 固定値設定 #############################################################
# 実行ファイルパス一覧
FILE_ROOT_PATH = 'D:/blender_battleVR_py/'
setrendr_file_name = FILE_ROOT_PATH + "setting_render.py"
magicobj_file_name = FILE_ROOT_PATH + "magic_model.py"
fieldins_file_name = FILE_ROOT_PATH + "fie... | 31.984127 | 130 | 0.718114 | 284 | 2,015 | 4.707746 | 0.295775 | 0.131638 | 0.098729 | 0.071803 | 0.302169 | 0.045625 | 0.034405 | 0.034405 | 0 | 0 | 0 | 0.007659 | 0.092804 | 2,015 | 63 | 131 | 31.984127 | 0.722101 | 0.15732 | 0 | 0 | 0 | 0 | 0.160518 | 0.014887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d215f5660d06095bfa19474e13bb492e71765463 | 2,014 | py | Python | apps/genres/tests/__init__.py | GiannisClipper/payments | 94e08144597b3f4cd0de8485edf3f5535aeb9da6 | [
"MIT"
] | null | null | null | apps/genres/tests/__init__.py | GiannisClipper/payments | 94e08144597b3f4cd0de8485edf3f5535aeb9da6 | [
"MIT"
] | null | null | null | apps/genres/tests/__init__.py | GiannisClipper/payments | 94e08144597b3f4cd0de8485edf3f5535aeb9da6 | [
"MIT"
] | null | null | null | from django.test import TestCase
import copy
from django.contrib.auth import get_user_model
from funds.models import Fund
from genres.models import Genre
from users.tests import UserCreateMethods
from funds.tests import FundCreateMethods
from users.tests import USER_SAMPLES, ADMIN_SAMPLES
from funds.tests import F... | 31.968254 | 86 | 0.602781 | 247 | 2,014 | 4.825911 | 0.263158 | 0.064597 | 0.020134 | 0.033557 | 0.135906 | 0.067114 | 0.067114 | 0 | 0 | 0 | 0 | 0.021684 | 0.22145 | 2,014 | 62 | 87 | 32.483871 | 0.73852 | 0.039225 | 0 | 0.093023 | 0 | 0 | 0.125972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.209302 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2160cde3b51571cda15a85e9fdd3c56dfb2cae0 | 4,881 | py | Python | rltorch/papers/DQN/hyperparams.py | Jjschwartz/rltorch | eeb2ad955f018d768db98c4a2be5da96a75579f6 | [
"MIT"
] | null | null | null | rltorch/papers/DQN/hyperparams.py | Jjschwartz/rltorch | eeb2ad955f018d768db98c4a2be5da96a75579f6 | [
"MIT"
] | null | null | null | rltorch/papers/DQN/hyperparams.py | Jjschwartz/rltorch | eeb2ad955f018d768db98c4a2be5da96a75579f6 | [
"MIT"
] | null | null | null | """Hyperparameters from paper """
import numpy as np
import torch.optim as optim
from .model import DQN, DuelingDQN
class AtariHyperparams:
ALGO = "DQN"
SEED = 2
LOG_DISPLAY_FREQ = 10
# Image sizing
WIDTH = 84
HEIGHT = 84
# Number of most recent frames given as input to Q-network
A... | 31.901961 | 77 | 0.591477 | 571 | 4,881 | 4.870403 | 0.369527 | 0.020137 | 0.03416 | 0.041352 | 0.067602 | 0.02589 | 0 | 0 | 0 | 0 | 0 | 0.054175 | 0.315509 | 4,881 | 152 | 78 | 32.111842 | 0.77821 | 0.144642 | 0 | 0.042735 | 0 | 0 | 0.140896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.008547 | 0.025641 | 0 | 0.418803 | 0.059829 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d216db91805a0649ebde91802222cf781d19168b | 1,090 | py | Python | pandas/main.py | monishshah18/python-cp-cheatsheet | a5514b08816959de1198156f7764c54a7a585f20 | [
"Apache-2.0"
] | 140 | 2020-10-21T13:23:52.000Z | 2022-03-31T15:09:45.000Z | pandas/main.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 1 | 2021-07-22T14:01:25.000Z | 2021-07-22T14:01:25.000Z | pandas/main.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 33 | 2020-10-21T14:17:02.000Z | 2022-03-25T11:25:03.000Z | """
Summarize a column total cases column and total deaths column
Country by country data in columns, sum up and match global totals
"""
import csv
import pandas
pandas.set_option("display.max_rows", None, "display.max_columns", None)
col_list = ["Total Cases", "Country/ Other", "Total Deaths", "# 9/27/2020"]
df = p... | 34.0625 | 119 | 0.633945 | 145 | 1,090 | 4.724138 | 0.337931 | 0.072993 | 0.030657 | 0.039416 | 0.166423 | 0.166423 | 0.166423 | 0.166423 | 0.166423 | 0 | 0 | 0.032731 | 0.187156 | 1,090 | 32 | 120 | 34.0625 | 0.740406 | 0.118349 | 0 | 0.181818 | 0 | 0 | 0.257862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2179a39d18a821a8ac003b90306797cd588fe76 | 908 | py | Python | conradomateu/day08/day08.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-11T18:22:52.000Z | 2017-12-13T00:50:24.000Z | conradomateu/day08/day08.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-01T14:31:29.000Z | 2017-12-07T21:43:43.000Z | conradomateu/day08/day08.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | null | null | null | import operator
def parse(op):
dict[op[0]] = ops[op[1]](dict[op[0]], int(op[2]))
maxs.append(max(dict.values()))
def parser(exp):
return ops[exp[1]](dict[exp[0]], int(exp[2]))
def execute(op, exp):
if parser(exp):
parse(op)
def initDictVars(arr):
vars = set([x.split(' ')[0] for x in ... | 18.916667 | 71 | 0.544053 | 135 | 908 | 3.659259 | 0.362963 | 0.018219 | 0.02834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.253304 | 908 | 47 | 72 | 19.319149 | 0.710914 | 0 | 0 | 0 | 0 | 0 | 0.025386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.03125 | 0.03125 | 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 |
d21994c5a36ba9f1f16825926274957f83707bde | 912 | py | Python | Problem009/Python/solution_1.py | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 167 | 2015-08-12T19:32:03.000Z | 2022-03-25T12:26:43.000Z | Problem009/Python/solution_1.py | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 153 | 2016-02-16T02:05:31.000Z | 2020-11-06T15:35:51.000Z | Problem009/Python/solution_1.py | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 84 | 2015-08-12T20:54:04.000Z | 2022-02-27T05:14:53.000Z | #!/usr/bin/env python
# coding=utf-8
# Python Script
#
# Copyleft © Manoel Vilela
#
#
from __future__ import print_function
"""
Special Pythagorean triplet
Problem 9
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a² + b² = c²
For example, 3² + 4² = 9 + 16 = 25 = 52.
There exists ... | 19.826087 | 78 | 0.582237 | 158 | 912 | 3.335443 | 0.481013 | 0.037951 | 0.056926 | 0.026565 | 0.110057 | 0.079696 | 0 | 0 | 0 | 0 | 0 | 0.054012 | 0.289474 | 912 | 45 | 79 | 20.266667 | 0.757716 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.4375 | 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 |
d2201ef9718699e7cd1fdb19d37ed6f30c51724b | 1,248 | py | Python | contrib/automation_tests/orbit_load_presets.py | vwbaker/orbit | 361cc416d1b3ecbc07318275c1bdbc1bb1bc9651 | [
"BSD-2-Clause"
] | 2 | 2020-07-31T08:18:58.000Z | 2021-12-26T06:43:07.000Z | contrib/automation_tests/orbit_load_presets.py | jayant99acharya/orbit | f713721e33448a6b0dc8ea4c5aa587855337e32c | [
"BSD-2-Clause"
] | 3 | 2022-02-15T02:46:06.000Z | 2022-02-28T01:28:39.000Z | contrib/automation_tests/orbit_load_presets.py | jayant99acharya/orbit | f713721e33448a6b0dc8ea4c5aa587855337e32c | [
"BSD-2-Clause"
] | 1 | 2021-03-10T15:21:19.000Z | 2021-03-10T15:21:19.000Z | """
Copyright (c) 2020 The Orbit Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
"""
from absl import app
from core.orbit_e2e import E2ETestSuite
from test_cases.connection_window import FilterAndSelectFirstProcess, ConnectToStadiaInstanc... | 32 | 93 | 0.786058 | 178 | 1,248 | 5.314607 | 0.550562 | 0.047569 | 0.027484 | 0.023256 | 0.027484 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014299 | 0.159455 | 1,248 | 38 | 94 | 32.842105 | 0.887512 | 0.125 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 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 |
d2214310a3d3e2da5645867f809ad278174b1b1c | 473 | py | Python | rsa.py | overrkill/security | cd473013652903d6b21fa83f2c57a07f289078e6 | [
"MIT"
] | 1 | 2020-05-08T07:32:16.000Z | 2020-05-08T07:32:16.000Z | rsa.py | overrkill/security | cd473013652903d6b21fa83f2c57a07f289078e6 | [
"MIT"
] | null | null | null | rsa.py | overrkill/security | cd473013652903d6b21fa83f2c57a07f289078e6 | [
"MIT"
] | null | null | null | import math as m
p=int(input("enter a prime integer p "))
q=int(input("enter a prime integer q "))
num=int(input("enter a number to encrypt "))
n=p*q
z=(p-1)*(q-1)
for e in range(2,z):
if m.gcd(e,z)==1:
break
for i in range(1,10):
x=1+i*z
if x%e==0:
d=int(x/e)
break
alpha=pow(num,e)
ctt=alpha % n
beta=pow(c... | 17.518519 | 61 | 0.610994 | 102 | 473 | 2.833333 | 0.431373 | 0.083045 | 0.134948 | 0.145329 | 0.179931 | 0.179931 | 0 | 0 | 0 | 0 | 0 | 0.022277 | 0.145877 | 473 | 26 | 62 | 18.192308 | 0.693069 | 0 | 0 | 0.095238 | 0 | 0 | 0.286017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d221a299320cc8e2a6ab063e29d7c98428b76ee2 | 831 | py | Python | python_2_script/komand_python_2_script/actions/run/action.py | GreyNoise-Intelligence/insightconnect-plugins | 2ba3121d42fd96e1267bb095bc76b962678c1f56 | [
"MIT"
] | null | null | null | python_2_script/komand_python_2_script/actions/run/action.py | GreyNoise-Intelligence/insightconnect-plugins | 2ba3121d42fd96e1267bb095bc76b962678c1f56 | [
"MIT"
] | null | null | null | python_2_script/komand_python_2_script/actions/run/action.py | GreyNoise-Intelligence/insightconnect-plugins | 2ba3121d42fd96e1267bb095bc76b962678c1f56 | [
"MIT"
] | null | null | null | import komand
from .schema import RunInput, RunOutput
# Custom imports below
class Run(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name="run", description="Run command", input=RunInput(), output=RunOutput()
)
def construct(self, func):
func +... | 22.459459 | 87 | 0.545126 | 92 | 831 | 4.75 | 0.48913 | 0.018307 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.296029 | 831 | 36 | 88 | 23.083333 | 0.74188 | 0.066185 | 0 | 0 | 0 | 0 | 0.072122 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d221e2f598eaeab4c5c60286a3134659beef83e8 | 636 | py | Python | config/configSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | config/configSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | 3 | 2021-06-02T00:56:48.000Z | 2021-09-08T01:35:53.000Z | config/configSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | from config.updateConfig import UpdateConfig
sampleCONF = {
"task": {
"name": "sample",
},
"instructions": {
"text": "Give instructions",
"startPrompt": "Press any key to continue. Press q to quit.",
"alarm": "horn.wav",
"questionnaireReminder": "answerQuestionnaire.... | 22.714286 | 99 | 0.630503 | 51 | 636 | 7.862745 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.216981 | 636 | 27 | 100 | 23.555556 | 0.801205 | 0 | 0 | 0 | 0 | 0 | 0.367925 | 0.069182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22400f5a3ef8a9ceac1f66b5070a0a5f8fc69d4 | 1,090 | py | Python | scripts/Evaluation_Metrics/mean_average.py | Mr-TalhaIlyas/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using | dc1b645ad1a3a00ef650b170a4ac4c26ab0d687a | [
"CC-BY-4.0"
] | null | null | null | scripts/Evaluation_Metrics/mean_average.py | Mr-TalhaIlyas/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using | dc1b645ad1a3a00ef650b170a4ac4c26ab0d687a | [
"CC-BY-4.0"
] | null | null | null | scripts/Evaluation_Metrics/mean_average.py | Mr-TalhaIlyas/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using | dc1b645ad1a3a00ef650b170a4ac4c26ab0d687a | [
"CC-BY-4.0"
] | 1 | 2021-03-29T01:49:49.000Z | 2021-03-29T01:49:49.000Z | from Evaluation_Metrics.Average_Precision import ElevenPointInterpolatedAP
from Evaluation_Metrics.New_Metric import TP_FP
def mean_AP(GT,PRED,TH):
Rice_GT=GT[:,:,:,1]
Weed_GT=GT[:,:,:,0]
Rice_P=PRED[:,:,:,1]
Weed_P=PRED[:,:,:,0]
TP_R,FP_R=TP_FP(Rice_GT,Rice_P,TH)
Acc_TPR=[]
s=0
for i i... | 22.244898 | 74 | 0.547706 | 183 | 1,090 | 3.065574 | 0.262295 | 0.042781 | 0.035651 | 0.042781 | 0.167558 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.02656 | 0.309174 | 1,090 | 49 | 75 | 22.244898 | 0.71846 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22743bfb3140f3685546e3e673c4427883f8ae7 | 771 | py | Python | tips-lib/tools/ordo/cc.py | cosmoss-jigu/tips | 386b992894363b535876020d1e60aa95f3d05f7c | [
"Apache-2.0"
] | 13 | 2021-07-16T07:52:15.000Z | 2022-02-13T10:52:46.000Z | tips-lib/tools/ordo/cc.py | cosmoss-jigu/tips | 386b992894363b535876020d1e60aa95f3d05f7c | [
"Apache-2.0"
] | null | null | null | tips-lib/tools/ordo/cc.py | cosmoss-jigu/tips | 386b992894363b535876020d1e60aa95f3d05f7c | [
"Apache-2.0"
] | 5 | 2021-08-09T13:16:23.000Z | 2022-03-09T08:50:19.000Z | #!/usr/bin/env python3
import sys
offset_table = []
def get_freq(a):
v = {}
for i in a:
if i in v:
v[i] += 1
else:
v.update({i: 1})
return v
def process_file(filename):
freq = {}
a = []
median = 0
with open(filename, "r") as f:
a = f.read... | 17.133333 | 69 | 0.460441 | 126 | 771 | 2.722222 | 0.357143 | 0.023324 | 0.058309 | 0.052478 | 0.075802 | 0.075802 | 0 | 0 | 0 | 0 | 0 | 0.037773 | 0.347601 | 771 | 44 | 70 | 17.522727 | 0.644135 | 0.027237 | 0 | 0.0625 | 0 | 0 | 0.061415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2296fe0c90ef20ef9cee97c8335c9349c8e3dec | 1,534 | py | Python | spirecomm/spire/card.py | ysjin94/Slaying_the_Spire_AI | 172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634 | [
"MIT"
] | null | null | null | spirecomm/spire/card.py | ysjin94/Slaying_the_Spire_AI | 172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634 | [
"MIT"
] | null | null | null | spirecomm/spire/card.py | ysjin94/Slaying_the_Spire_AI | 172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634 | [
"MIT"
] | 2 | 2020-07-13T18:21:46.000Z | 2020-08-04T21:18:10.000Z | from enum import Enum
class CardType(Enum):
ATTACK = 1
SKILL = 2
POWER = 3
STATUS = 4
CURSE = 5
class CardRarity(Enum):
BASIC = 1
COMMON = 2
UNCOMMON = 3
RARE = 4
SPECIAL = 5
CURSE = 6
class Card:
def __init__(self, card_id, name, card_type, rarity, upgrades=0, has_... | 26.448276 | 156 | 0.582138 | 191 | 1,534 | 4.450262 | 0.267016 | 0.152941 | 0.061176 | 0.037647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016008 | 0.307692 | 1,534 | 57 | 157 | 26.912281 | 0.784369 | 0 | 0 | 0 | 0 | 0 | 0.045632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.020833 | 0.0625 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22a005c486e400a70fdda2609e473e34cb98a87 | 1,280 | py | Python | eval/user.py | hscspring/chatbot | 9d0bc91db0d8834a1a75cba3edcd3133191e80af | [
"Apache-2.0"
] | null | null | null | eval/user.py | hscspring/chatbot | 9d0bc91db0d8834a1a75cba3edcd3133191e80af | [
"Apache-2.0"
] | null | null | null | eval/user.py | hscspring/chatbot | 9d0bc91db0d8834a1a75cba3edcd3133191e80af | [
"Apache-2.0"
] | null | null | null | import os
import random
import numpy as np
import torch
from chatbot_agent.nlu import BERTNLU
from chatbot_agent.policy.rule import RulePolicy
from chatbot_agent.nlg import TemplateNLG
from chatbot_agent.agent import PipelineAgent
from chatbot_agent.analyzer import Analyzer
def set_seed(r_seed):
random.seed(r_se... | 26.666667 | 82 | 0.742188 | 200 | 1,280 | 4.545 | 0.325 | 0.066007 | 0.077008 | 0.107811 | 0.250825 | 0.166117 | 0.166117 | 0.068207 | 0.068207 | 0 | 0 | 0.0018 | 0.132031 | 1,280 | 48 | 83 | 26.666667 | 0.816382 | 0 | 0 | 0.051282 | 0 | 0 | 0.161593 | 0.022639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.230769 | 0 | 0.25641 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22d10f837e5ad288e126f1c5e79e0d962cba280 | 6,560 | py | Python | tests/services/http_service.py | the-gw/tomodachi | a1e2efc1abe6f4e2de4a580e58184323660b4299 | [
"MIT"
] | null | null | null | tests/services/http_service.py | the-gw/tomodachi | a1e2efc1abe6f4e2de4a580e58184323660b4299 | [
"MIT"
] | null | null | null | tests/services/http_service.py | the-gw/tomodachi | a1e2efc1abe6f4e2de4a580e58184323660b4299 | [
"MIT"
] | null | null | null | import asyncio
import os
import signal
import tomodachi
from typing import Any, Dict, Tuple, Callable, Union # noqa
from aiohttp import web
from tomodachi.transport.http import http, http_error, http_static, websocket, Response, RequestHandler
from tomodachi.discovery.dummy_registry import DummyRegistry
async def mi... | 33.989637 | 131 | 0.611738 | 796 | 6,560 | 4.930905 | 0.183417 | 0.063185 | 0.095287 | 0.112357 | 0.381656 | 0.299363 | 0.210446 | 0.185223 | 0.185223 | 0.137325 | 0 | 0.014045 | 0.240244 | 6,560 | 192 | 132 | 34.166667 | 0.773475 | 0.002134 | 0 | 0.167742 | 0 | 0 | 0.156197 | 0.029497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006452 | false | 0.012903 | 0.051613 | 0 | 0.283871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22daea1e02414a246423f9065c5355093e77a88 | 18,989 | py | Python | pyhelp/managers.py | FHuchet/pyhelp | 9d658f5c6f6d8aee8e528ca9946a40eac0ff3a68 | [
"MIT"
] | 1 | 2020-07-20T20:32:15.000Z | 2020-07-20T20:32:15.000Z | pyhelp/managers.py | FHuchet/pyhelp | 9d658f5c6f6d8aee8e528ca9946a40eac0ff3a68 | [
"MIT"
] | null | null | null | pyhelp/managers.py | FHuchet/pyhelp | 9d658f5c6f6d8aee8e528ca9946a40eac0ff3a68 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright © 2018 PyHelp Project Contributors
# https://github.com/jnsebgosselin/pyhelp
#
# This file is part of PyHelp.
# Licensed under the terms of the GNU General Public License.
# ---- Standard Library Imports
import os
import os.path as osp
# ---- Third Party imports
import numpy as ... | 37.015595 | 79 | 0.596609 | 2,424 | 18,989 | 4.483498 | 0.157178 | 0.0311 | 0.011594 | 0.015458 | 0.34827 | 0.285425 | 0.209974 | 0.176941 | 0.161943 | 0.135444 | 0 | 0.023995 | 0.297699 | 18,989 | 512 | 80 | 37.087891 | 0.790867 | 0.205171 | 0 | 0.198052 | 0 | 0 | 0.064382 | 0.002048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0 | 0.032468 | 0.003247 | 0.165584 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d22e790f560b51447016ed3ce2c5663688b5fd74 | 6,131 | py | Python | tests/unit/test_types.py | OvalMoney/momapper | 9bcf1909a80677cab831132444be27fa4adaa2a5 | [
"MIT"
] | null | null | null | tests/unit/test_types.py | OvalMoney/momapper | 9bcf1909a80677cab831132444be27fa4adaa2a5 | [
"MIT"
] | null | null | null | tests/unit/test_types.py | OvalMoney/momapper | 9bcf1909a80677cab831132444be27fa4adaa2a5 | [
"MIT"
] | null | null | null | from decimal import Decimal
import pytest
from bson import Decimal128
from momapper import MappedClass, Field
from momapper.mongodb.collection import MappedCollection
from momapper.types import (
DecimalType,
ValidationError,
IntType,
FloatType,
StringType,
ByteType,
BoolType,
ListType... | 31.280612 | 88 | 0.669222 | 637 | 6,131 | 6.291994 | 0.117739 | 0.072355 | 0.055888 | 0.066367 | 0.732535 | 0.672156 | 0.484531 | 0.473802 | 0.473802 | 0.431138 | 0 | 0.005023 | 0.220682 | 6,131 | 195 | 89 | 31.441026 | 0.833822 | 0 | 0 | 0.432099 | 0 | 0 | 0.041918 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.055556 | false | 0 | 0.037037 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d230ba96d95fc33b542202e8343f1394390c32cd | 26,878 | py | Python | sharpy/solvers/dynamiccoupled.py | ostodieck/sharpy | b85aa1c001a0ec851af4eb259cce7c01dfa68b9e | [
"BSD-3-Clause"
] | 1 | 2020-07-27T05:15:35.000Z | 2020-07-27T05:15:35.000Z | sharpy/solvers/dynamiccoupled.py | briandesilva/sharpy | aed86428ff88fd14d36cabd91cf7e04b5fc9a39a | [
"BSD-3-Clause"
] | null | null | null | sharpy/solvers/dynamiccoupled.py | briandesilva/sharpy | aed86428ff88fd14d36cabd91cf7e04b5fc9a39a | [
"BSD-3-Clause"
] | null | null | null | import ctypes as ct
import time
import copy
import numpy as np
import sharpy.aero.utils.mapping as mapping
import sharpy.utils.cout_utils as cout
import sharpy.utils.solver_interface as solver_interface
import sharpy.utils.controller_interface as controller_interface
from sharpy.utils.solver_interface import solver, ... | 43.775244 | 230 | 0.613625 | 2,983 | 26,878 | 5.308079 | 0.142474 | 0.037135 | 0.019326 | 0.015789 | 0.329544 | 0.215865 | 0.163888 | 0.123532 | 0.115195 | 0.088038 | 0 | 0.0071 | 0.29779 | 26,878 | 613 | 231 | 43.846656 | 0.831832 | 0.121363 | 0 | 0.186275 | 0 | 0.014706 | 0.17396 | 0.044278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036765 | false | 0.002451 | 0.034314 | 0 | 0.122549 | 0.02451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d232def19f888f5ef15eb9c21425eef07dc01fdd | 4,734 | py | Python | pony/orm/tests/test_generator_db_session.py | ProgHaj/pony | 52720af1728ab2931364be8615e18ad8714a7c9e | [
"Apache-2.0"
] | 2,628 | 2015-01-02T17:55:28.000Z | 2022-03-31T10:36:42.000Z | pony/orm/tests/test_generator_db_session.py | ProgHaj/pony | 52720af1728ab2931364be8615e18ad8714a7c9e | [
"Apache-2.0"
] | 525 | 2015-01-03T20:30:08.000Z | 2022-03-23T12:30:01.000Z | pony/orm/tests/test_generator_db_session.py | ProgHaj/pony | 52720af1728ab2931364be8615e18ad8714a7c9e | [
"Apache-2.0"
] | 256 | 2015-01-02T17:55:31.000Z | 2022-03-20T17:01:37.000Z | from __future__ import absolute_import, print_function, division
import unittest
from pony.orm.core import *
from pony.orm.core import local
from pony.orm.tests.testutils import *
from pony.orm.tests import setup_database, teardown_database
class TestGeneratorDbSession(unittest.TestCase):
def setUp(self):
... | 25.451613 | 113 | 0.555978 | 559 | 4,734 | 4.60644 | 0.214669 | 0.101359 | 0.060583 | 0.049709 | 0.384078 | 0.354563 | 0.29165 | 0.282718 | 0.232621 | 0.196893 | 0 | 0.042139 | 0.348331 | 4,734 | 185 | 114 | 25.589189 | 0.792545 | 0 | 0 | 0.47619 | 0 | 0 | 0.08196 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 1 | 0.176871 | false | 0.027211 | 0.040816 | 0 | 0.231293 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d235a418647a421cc3cde687c03b74bacf4239b5 | 5,759 | py | Python | Tests/Validation/Optimization/test_zdt3.py | magnetron/pyleecan | 2a3338f4ab080ad6488b5ab8746c3fea1f36f177 | [
"Apache-2.0"
] | 1 | 2021-02-26T12:28:45.000Z | 2021-02-26T12:28:45.000Z | Tests/Validation/Optimization/test_zdt3.py | magnetron/pyleecan | 2a3338f4ab080ad6488b5ab8746c3fea1f36f177 | [
"Apache-2.0"
] | null | null | null | Tests/Validation/Optimization/test_zdt3.py | magnetron/pyleecan | 2a3338f4ab080ad6488b5ab8746c3fea1f36f177 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Test Pyleecan optimization module using Zitzler–Deb–Thiele's function N. 3
"""
import pytest
from ....definitions import PACKAGE_NAME
from ....Tests.Validation.Machine.SCIM_001 import SCIM_001
from ....Classes.InputCurrent import InputCurrent
from ....Classes.MagFEMM import MagFEMM
from ....Classes... | 30.310526 | 94 | 0.581177 | 715 | 5,759 | 4.6 | 0.353846 | 0.036789 | 0.014594 | 0.009121 | 0.068106 | 0.054728 | 0.037701 | 0.037701 | 0.037701 | 0.037701 | 0 | 0.058882 | 0.298142 | 5,759 | 189 | 95 | 30.470899 | 0.75433 | 0.143428 | 0 | 0.030075 | 0 | 0 | 0.069378 | 0.024159 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.022556 | false | 0 | 0.180451 | 0 | 0.210526 | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d236f9020f43723fb7080a085f23e82a9664de09 | 590 | py | Python | example/example.py | fmilthaler/HTMLParser | ebe343796e32a25726b6659742196ceaab30bb3d | [
"MIT"
] | null | null | null | example/example.py | fmilthaler/HTMLParser | ebe343796e32a25726b6659742196ceaab30bb3d | [
"MIT"
] | null | null | null | example/example.py | fmilthaler/HTMLParser | ebe343796e32a25726b6659742196ceaab30bb3d | [
"MIT"
] | null | null | null | from htmlparser import HTMLParser
import pandas
# Here we scrap a page from Wikipedia, parse it for tables, and convert the first table found into a `pandas.DataFrame`.
url = "https://en.wikipedia.org/wiki/List_of_S%26P_500_companies"
hp = HTMLParser(url)
# scrapping the webpage
page = hp.scrap_url()
# extracting only... | 36.875 | 120 | 0.772881 | 91 | 590 | 4.912088 | 0.56044 | 0.071588 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.125424 | 590 | 15 | 121 | 39.333333 | 0.854651 | 0.391525 | 0 | 0 | 0 | 0 | 0.240113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2387686143e714809862b9c318c59cf934f177d | 4,881 | py | Python | PikaBus/tools/PikaTools.py | alexbodn/PikaBus | 5faf2e48f4d4deecb4428707f94bcf72a81cc3ee | [
"MIT"
] | 7 | 2020-03-21T12:22:18.000Z | 2022-02-10T11:43:51.000Z | PikaBus/tools/PikaTools.py | alexbodn/PikaBus | 5faf2e48f4d4deecb4428707f94bcf72a81cc3ee | [
"MIT"
] | null | null | null | PikaBus/tools/PikaTools.py | alexbodn/PikaBus | 5faf2e48f4d4deecb4428707f94bcf72a81cc3ee | [
"MIT"
] | 1 | 2021-06-21T10:56:56.000Z | 2021-06-21T10:56:56.000Z | from typing import Union, List
import pika
import pika.exceptions
import time
import logging
def CreateDurableQueue(channel: pika.adapters.blocking_connection.BlockingChannel, queue: str,
settings: dict = None):
if settings is None:
settings = {}
channel.queue_declare(queue,
... | 38.132813 | 132 | 0.629379 | 476 | 4,881 | 6.390756 | 0.205882 | 0.039776 | 0.056213 | 0.079882 | 0.619001 | 0.619001 | 0.54405 | 0.495069 | 0.403682 | 0.346483 | 0 | 0.001133 | 0.276992 | 4,881 | 127 | 133 | 38.433071 | 0.860867 | 0.009834 | 0 | 0.54902 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 1 | 0.107843 | false | 0.04902 | 0.04902 | 0 | 0.186275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d23a8dd5865bbf7ea08abcad56ee55962f12112f | 16,087 | py | Python | roundup/backends/blobfiles.py | Noschvie/roundup | 996377ed0d12c69a01c7565dc5f47d6fb0ccaf19 | [
"MIT"
] | 1 | 2015-12-17T08:09:28.000Z | 2015-12-17T08:09:28.000Z | roundup/backends/blobfiles.py | Noschvie/roundup | 996377ed0d12c69a01c7565dc5f47d6fb0ccaf19 | [
"MIT"
] | null | null | null | roundup/backends/blobfiles.py | Noschvie/roundup | 996377ed0d12c69a01c7565dc5f47d6fb0ccaf19 | [
"MIT"
] | 1 | 2015-07-10T08:16:24.000Z | 2015-07-10T08:16:24.000Z | #
# Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
# This module is free software, and you may redistribute it and/or modify
# under the same terms as Python, so long as this copyright message and
# disclaimer are retained in their original form.
#
# IN NO EVENT SHALL BIZAR SOFTWARE PTY LT... | 39.525799 | 82 | 0.654752 | 2,232 | 16,087 | 4.703405 | 0.25 | 0.020671 | 0.043818 | 0.020575 | 0.144123 | 0.093446 | 0.069156 | 0.044104 | 0.034673 | 0.013907 | 0 | 0.003351 | 0.276621 | 16,087 | 406 | 83 | 39.623153 | 0.898771 | 0.637969 | 0 | 0.201835 | 0 | 0 | 0.030735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12844 | false | 0.009174 | 0.009174 | 0 | 0.311927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d23c5a7f0d13366045cfa8ea9d83ec4de2417ed0 | 1,467 | py | Python | LeetCode/E2 - Add Two Numbers/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | LeetCode/E2 - Add Two Numbers/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | LeetCode/E2 - Add Two Numbers/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | """solution.py"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
"""
T: O(?)
S: O(?)
"""
l3 = ListNode(0)
... | 23.66129 | 68 | 0.445808 | 186 | 1,467 | 3.344086 | 0.22043 | 0.086817 | 0.088424 | 0.090032 | 0.21865 | 0.054662 | 0 | 0 | 0 | 0 | 0 | 0.088348 | 0.467621 | 1,467 | 61 | 69 | 24.04918 | 0.708067 | 0.042945 | 0 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d23c85c65422eeb7798338451574df0f59e40725 | 1,984 | py | Python | networking_mlnx/dhcp/mlnx_dhcp.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/dhcp/mlnx_dhcp.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/dhcp/mlnx_dhcp.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Mellanox Technologies, Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 34.807018 | 78 | 0.681452 | 288 | 1,984 | 4.381944 | 0.413194 | 0.095087 | 0.043582 | 0.067353 | 0.133122 | 0.133122 | 0.133122 | 0.049128 | 0.049128 | 0 | 0 | 0.023638 | 0.232359 | 1,984 | 56 | 79 | 35.428571 | 0.80499 | 0.283266 | 0 | 0.0625 | 0 | 0.03125 | 0.030561 | 0.025586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.0625 | 0.0625 | 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 |
d23df24d42dc33a797b2ad6f76f674f1c588ed01 | 679 | py | Python | solution/practice/algorithms/warmup/plus-minus/solution.py | benevolentPreta/HackerRank_Py3 | 03c4bd9e2db2d91645b72b62b060d73f5ec7e437 | [
"BSD-2-Clause"
] | null | null | null | solution/practice/algorithms/warmup/plus-minus/solution.py | benevolentPreta/HackerRank_Py3 | 03c4bd9e2db2d91645b72b62b060d73f5ec7e437 | [
"BSD-2-Clause"
] | 1 | 2020-06-06T19:56:54.000Z | 2020-06-06T19:56:54.000Z | solution/practice/algorithms/warmup/plus-minus/solution.py | benevolentPreta/HackerRank_Py3 | 03c4bd9e2db2d91645b72b62b060d73f5ec7e437 | [
"BSD-2-Clause"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the plusMinus function below.
def plusMinus(arr):
'''
There is probably a better solution than this
but this would be the trivial solution, and it
is successful.
'''
pos, neg, zero = 0, 0, 0
size = len(arr)... | 17.868421 | 51 | 0.564065 | 95 | 679 | 3.947368 | 0.578947 | 0.08 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019027 | 0.303387 | 679 | 37 | 52 | 18.351351 | 0.773784 | 0.237113 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.272727 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d23e3eac1aa7a46a82d21a527d06862f245b4e29 | 4,273 | py | Python | youtube_dl/extractor/gorillavid.py | builder07/ytdl | 2c0a5d50af7ecc7302c813d649ee72dcd457a50a | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/gorillavid.py | builder07/ytdl | 2c0a5d50af7ecc7302c813d649ee72dcd457a50a | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/gorillavid.py | builder07/ytdl | 2c0a5d50af7ecc7302c813d649ee72dcd457a50a | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
compat_urllib_request,
)
from ..utils import (
ExtractorError,
encode_dict,
int_or_none,
)
class GorillaVidIE(InfoExtractor):
IE_DESC = 'Gor... | 33.645669 | 110 | 0.528902 | 443 | 4,273 | 4.936795 | 0.388262 | 0.025606 | 0.022862 | 0.041152 | 0.083676 | 0.062643 | 0.028349 | 0 | 0 | 0 | 0 | 0.05643 | 0.286684 | 4,273 | 126 | 111 | 33.912698 | 0.661089 | 0.011701 | 0 | 0.233645 | 0 | 0.028037 | 0.383886 | 0.103081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009346 | false | 0 | 0.046729 | 0 | 0.11215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d23f4d942f6df091ea30d280bbf61284f173aee1 | 7,552 | py | Python | Tests/test_GenBank_unittest.py | cbrueffer/biopython | 1ffb1d92d4735166089e28ac07ee614d5ec80070 | [
"PostgreSQL"
] | null | null | null | Tests/test_GenBank_unittest.py | cbrueffer/biopython | 1ffb1d92d4735166089e28ac07ee614d5ec80070 | [
"PostgreSQL"
] | null | null | null | Tests/test_GenBank_unittest.py | cbrueffer/biopython | 1ffb1d92d4735166089e28ac07ee614d5ec80070 | [
"PostgreSQL"
] | null | null | null | # Copyright 2013 by Kai Blin.
# Revisions copyright 2015 by Peter Cock.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
import unittest
import warnings
from os import path
from Bio import BiopythonP... | 50.346667 | 121 | 0.659428 | 878 | 7,552 | 5.556948 | 0.271071 | 0.055339 | 0.039967 | 0.02439 | 0.546014 | 0.509736 | 0.459315 | 0.422423 | 0.279361 | 0.183234 | 0 | 0.040942 | 0.223782 | 7,552 | 149 | 122 | 50.684564 | 0.791368 | 0.135593 | 0 | 0.330275 | 0 | 0.009174 | 0.24476 | 0.053792 | 0 | 0 | 0 | 0.006711 | 0.302752 | 1 | 0.146789 | false | 0 | 0.055046 | 0 | 0.211009 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24018cb7c01fc32bd606207dd5f57d954a62e7b | 6,618 | py | Python | segtrain/trainer/trainer.py | parthi-bharathi/semantic-image-segmentation | 5dd34db4d74b0fe3d6cc9033a0e55ddf6e73420c | [
"Apache-2.0"
] | 2 | 2020-08-26T00:13:37.000Z | 2022-01-07T07:59:59.000Z | segtrain/trainer/trainer.py | parthi-bharathi/semantic-image-segmentation | 5dd34db4d74b0fe3d6cc9033a0e55ddf6e73420c | [
"Apache-2.0"
] | 1 | 2020-10-20T13:37:29.000Z | 2020-10-27T09:59:32.000Z | segtrain/trainer/trainer.py | parthi-bharathi/semantic-image-segmentation | 5dd34db4d74b0fe3d6cc9033a0e55ddf6e73420c | [
"Apache-2.0"
] | 1 | 2022-03-02T10:57:37.000Z | 2022-03-02T10:57:37.000Z | import os
import tensorflow.keras.backend as K
from dataflow import (
BatchData, RepeatedData, MultiProcessRunnerZMQ)
from tensorflow.keras.callbacks import Callback, ReduceLROnPlateau, ModelCheckpoint, TensorBoard
from tensorflow.keras.callbacks import LearningRateScheduler
from .modelcheckpoint import CustomMod... | 39.159763 | 135 | 0.630553 | 828 | 6,618 | 4.7343 | 0.213768 | 0.05051 | 0.039796 | 0.044898 | 0.310969 | 0.268367 | 0.238776 | 0.184694 | 0.169388 | 0.15102 | 0 | 0.010788 | 0.271683 | 6,618 | 168 | 136 | 39.392857 | 0.80249 | 0.063765 | 0 | 0.154545 | 0 | 0 | 0.044861 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0.090909 | false | 0 | 0.063636 | 0 | 0.209091 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24182845a6b7e4d2904f9bc95447b5c4c1ca7fd | 1,570 | py | Python | turtle/pyramid.py | luscra0/Turtle-Experiments | df9693c871dd176673667c231f7f81250a479348 | [
"MIT"
] | null | null | null | turtle/pyramid.py | luscra0/Turtle-Experiments | df9693c871dd176673667c231f7f81250a479348 | [
"MIT"
] | 6 | 2021-08-30T01:08:10.000Z | 2021-08-30T23:04:55.000Z | turtle/pyramid.py | luscra0/Turtle-Shape-Thingy | df9693c871dd176673667c231f7f81250a479348 | [
"MIT"
] | null | null | null | import turtle
import math
from time import sleep
def calculate_points(pos, r1, r2, angles):
points = []
for a in angles:
x = pos[0] + (r1 * math.cos(math.radians(a)))
y = pos[1] + (r2 * math.sin(math.radians(a)))
points.append((x, y))
return points
def draw_pyramid(tur, draw=False)... | 26.166667 | 136 | 0.625478 | 246 | 1,570 | 3.772358 | 0.247967 | 0.060345 | 0.105603 | 0.048491 | 0.144397 | 0.045259 | 0 | 0 | 0 | 0 | 0 | 0.049915 | 0.247134 | 1,570 | 60 | 137 | 26.166667 | 0.735195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.056604 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2423e50a292004365a346d8a0b8d79733015061 | 5,791 | py | Python | docker_leash/config.py | docker-leash/docker-leash | d98c0a98ddecac2c9775e839d1e64382b811a3cf | [
"MIT"
] | 1 | 2018-01-15T12:29:20.000Z | 2018-01-15T12:29:20.000Z | docker_leash/config.py | docker-leash/docker-leash | d98c0a98ddecac2c9775e839d1e64382b811a3cf | [
"MIT"
] | 92 | 2018-01-12T21:04:42.000Z | 2018-04-08T17:25:26.000Z | docker_leash/config.py | docker-leash/docker-leash | d98c0a98ddecac2c9775e839d1e64382b811a3cf | [
"MIT"
] | 2 | 2018-01-13T16:52:54.000Z | 2020-04-24T22:45:46.000Z | # vim:set ts=4 sw=4 et:
'''
Config
======
'''
import re
from .action_mapper import Action
from .checks_list import Checks
from .exceptions import ConfigurationException
class Config(object):
"""The :class:`Config` class is responsible for storing application groups
and policies read from the datastore.
... | 30.967914 | 105 | 0.583319 | 669 | 5,791 | 4.96562 | 0.216741 | 0.027092 | 0.018061 | 0.014449 | 0.209211 | 0.143287 | 0.143287 | 0.077062 | 0.051776 | 0.051776 | 0 | 0.001038 | 0.334312 | 5,791 | 186 | 106 | 31.134409 | 0.8607 | 0.370575 | 0 | 0.268293 | 0 | 0 | 0.037846 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 1 | 0.085366 | false | 0 | 0.04878 | 0 | 0.280488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d243084a9d78e560bb874101db60f382836bb734 | 7,569 | py | Python | waller.py | fredrikwahlberg/harvesters | 205dadeb3b6e25203843e71b95cb99aaf840c712 | [
"MIT"
] | 1 | 2018-02-20T16:34:26.000Z | 2018-02-20T16:34:26.000Z | waller.py | fredrikwahlberg/harvesters | 205dadeb3b6e25203843e71b95cb99aaf840c712 | [
"MIT"
] | null | null | null | waller.py | fredrikwahlberg/harvesters | 205dadeb3b6e25203843e71b95cb99aaf840c712 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Fredrik Wahlberg <fredrik.wahlberg@it.uu.se>
"""
import requests
import json
import os.path
import re
class Waller():
def __init__(self, datapath, verbose=False):
super(Waller, self).__init__()
self.reprname = "Waller"
assert os.path.exists(datapath), ... | 35.369159 | 104 | 0.492139 | 763 | 7,569 | 4.781127 | 0.229358 | 0.019737 | 0.029605 | 0.019737 | 0.2108 | 0.1483 | 0.104715 | 0.092654 | 0.077303 | 0.029605 | 0 | 0.016841 | 0.380235 | 7,569 | 213 | 105 | 35.535211 | 0.760819 | 0.016779 | 0 | 0.285714 | 0 | 0 | 0.103931 | 0.003096 | 0 | 0 | 0 | 0 | 0.005495 | 1 | 0.093407 | false | 0 | 0.043956 | 0.021978 | 0.225275 | 0.027473 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24561aa431196a52ec81712ae5c3dded61222c7 | 2,849 | py | Python | all-python-codes/bagels/main.py | abdussalam02/py-projects | 653ba4e6923ee1f55a64aef23174515c1db68758 | [
"MIT"
] | null | null | null | all-python-codes/bagels/main.py | abdussalam02/py-projects | 653ba4e6923ee1f55a64aef23174515c1db68758 | [
"MIT"
] | null | null | null | all-python-codes/bagels/main.py | abdussalam02/py-projects | 653ba4e6923ee1f55a64aef23174515c1db68758 | [
"MIT"
] | null | null | null | from random import shuffle
NUM_DIGIT = 3
MAX_GUESSES = 10
def main(): # main game
print(
f"""
Bagels, a detective logic game.
By Ibrahim raimi
I am thinking of a number {NUM_DIGIT} number with no repeted digits.
Try to guess what it is. Here re some clues:
When i ... | 30.634409 | 107 | 0.570727 | 382 | 2,849 | 4.151832 | 0.363874 | 0.07377 | 0.035309 | 0.021438 | 0.076293 | 0.025221 | 0 | 0 | 0 | 0 | 0 | 0.012889 | 0.346437 | 2,849 | 92 | 108 | 30.967391 | 0.838883 | 0.172341 | 0 | 0.079365 | 0 | 0.015873 | 0.344386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.015873 | 0 | 0.126984 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24580d757e7e7fcbb4b8b0a5b6d34e117acf284 | 2,652 | py | Python | NetEmbs/DataProcessing/unique_signatures.py | AlexWorldD/NetEmbs | ea3dc5769e2feb728dac8f21ec677a9807def3df | [
"Apache-2.0"
] | 1 | 2021-09-02T16:47:27.000Z | 2021-09-02T16:47:27.000Z | NetEmbs/DataProcessing/unique_signatures.py | AlexWorldD/NetEmbs | ea3dc5769e2feb728dac8f21ec677a9807def3df | [
"Apache-2.0"
] | null | null | null | NetEmbs/DataProcessing/unique_signatures.py | AlexWorldD/NetEmbs | ea3dc5769e2feb728dac8f21ec677a9807def3df | [
"Apache-2.0"
] | 1 | 2019-12-25T08:38:55.000Z | 2019-12-25T08:38:55.000Z | # encoding: utf-8
__author__ = 'Aleksei Maliutin'
"""
unique_signatures.py
Created by lex at 2019-03-28.
"""
import pandas as pd
from NetEmbs.CONFIG import N_DIGITS
def get_signature(df: pd.DataFrame) -> pd.Series:
"""
Aggregation function over GroupBy object: to extract unique signature for the given busines... | 34 | 120 | 0.633107 | 358 | 2,652 | 4.594972 | 0.349162 | 0.009726 | 0.038906 | 0.026748 | 0.269909 | 0.240729 | 0.233435 | 0.22614 | 0.183587 | 0.117933 | 0 | 0.017561 | 0.226998 | 2,652 | 77 | 121 | 34.441558 | 0.784878 | 0.335596 | 0 | 0.076923 | 0 | 0 | 0.103146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d249639feb0e944a523bdb5fe34255236bfa3990 | 661 | py | Python | api/settings/local.py | hartliddell/api | 73d44d2271c01fe7540fedeee9174c4032cbbbc0 | [
"MIT"
] | null | null | null | api/settings/local.py | hartliddell/api | 73d44d2271c01fe7540fedeee9174c4032cbbbc0 | [
"MIT"
] | null | null | null | api/settings/local.py | hartliddell/api | 73d44d2271c01fe7540fedeee9174c4032cbbbc0 | [
"MIT"
] | null | null | null | """Define the django settings for a local setup."""
from .base import * # noqa
# SECURITY WARNING: don't run with debug turned on in production!
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
# SECURITY WARNING: keep the secret key used in produ... | 33.05 | 70 | 0.747352 | 98 | 661 | 4.959184 | 0.530612 | 0.092593 | 0.074074 | 0.078189 | 0.27572 | 0.27572 | 0.168724 | 0.168724 | 0 | 0 | 0 | 0.001727 | 0.124054 | 661 | 19 | 71 | 34.789474 | 0.837651 | 0.717095 | 0 | 0 | 0 | 0 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24974e9a9f24d16218c96318a69ab049db6dc83 | 1,457 | py | Python | scripts/010_smultixcan/utils/ukb_gtex_variants_intersection/compute_intersection_ukb_gtex_variants.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 3 | 2020-12-07T15:06:41.000Z | 2021-05-25T06:03:38.000Z | scripts/010_smultixcan/utils/ukb_gtex_variants_intersection/compute_intersection_ukb_gtex_variants.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 1 | 2020-07-01T14:45:38.000Z | 2020-07-01T15:15:55.000Z | scripts/010_smultixcan/utils/ukb_gtex_variants_intersection/compute_intersection_ukb_gtex_variants.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 1 | 2020-08-20T13:23:40.000Z | 2020-08-20T13:23:40.000Z | #!/usr/bin/env python
import os
import argparse
import sqlite3
from glob import glob
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument('--gtex-models-dir', type=str, required=True)
parser.add_argument('--variants-file-with-gtex-id', type=str, required=True)
parser.add_argument('--output-file... | 33.883721 | 125 | 0.753603 | 224 | 1,457 | 4.705357 | 0.379464 | 0.039848 | 0.066414 | 0.05408 | 0.174573 | 0.117647 | 0.068311 | 0 | 0 | 0 | 0 | 0.006116 | 0.102265 | 1,457 | 42 | 126 | 34.690476 | 0.799694 | 0.013727 | 0 | 0 | 0 | 0 | 0.325436 | 0.119861 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.172414 | 0.275862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24c807fe0e09931fae3e0caaf649694c890f3db | 3,325 | py | Python | gdm/planing_tool/models/empresas.py | Deonstudios/GDM | ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8 | [
"Apache-2.0"
] | null | null | null | gdm/planing_tool/models/empresas.py | Deonstudios/GDM | ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8 | [
"Apache-2.0"
] | null | null | null | gdm/planing_tool/models/empresas.py | Deonstudios/GDM | ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from planing_tool.models.plazas import State, Country, City
from django.contrib.gis.db.models import PointField
from datetime import datetime, timedelta
from libs.currency_utils import CurrencyUtils
from django.contrib.gis.db.models.manager import GeoManager
from django.db import models
from simple_histo... | 29.166667 | 79 | 0.67218 | 400 | 3,325 | 5.4 | 0.3825 | 0.066204 | 0.072222 | 0.077778 | 0.265278 | 0.213889 | 0.156019 | 0.156019 | 0.074074 | 0.074074 | 0 | 0.028527 | 0.21985 | 3,325 | 114 | 80 | 29.166667 | 0.804163 | 0.011729 | 0 | 0.127907 | 0 | 0 | 0.149345 | 0.007924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.104651 | 0.011628 | 0.406977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24d2defb1725aab6afee3638c1358468609f75a | 32,111 | py | Python | tests/test_reusable_executor.py | hoodmane/loky | 00fbd9d5e8ebc8f9427096a0f64d7d7ad51b9f9b | [
"BSD-3-Clause"
] | 153 | 2020-01-29T07:26:58.000Z | 2022-03-31T23:30:55.000Z | tests/test_reusable_executor.py | hoodmane/loky | 00fbd9d5e8ebc8f9427096a0f64d7d7ad51b9f9b | [
"BSD-3-Clause"
] | 98 | 2020-01-17T09:14:16.000Z | 2022-03-10T15:32:14.000Z | tests/test_reusable_executor.py | hoodmane/loky | 00fbd9d5e8ebc8f9427096a0f64d7d7ad51b9f9b | [
"BSD-3-Clause"
] | 22 | 2020-01-17T09:26:38.000Z | 2022-02-02T09:27:59.000Z | import os
import sys
import gc
import ctypes
import psutil
import pytest
import warnings
import threading
from time import sleep
from multiprocessing import util, current_process
from pickle import PicklingError, UnpicklingError
from distutils.version import LooseVersion
import loky
from loky import cpu_count
from lok... | 38.687952 | 79 | 0.64112 | 3,858 | 32,111 | 5.163815 | 0.150337 | 0.057022 | 0.058177 | 0.053007 | 0.410401 | 0.373808 | 0.343088 | 0.296406 | 0.270706 | 0.249071 | 0 | 0.015981 | 0.269222 | 32,111 | 829 | 80 | 38.73462 | 0.832992 | 0.180125 | 0 | 0.305755 | 0 | 0 | 0.118598 | 0.007261 | 0 | 0 | 0 | 0 | 0.107914 | 1 | 0.098921 | false | 0.007194 | 0.068345 | 0.007194 | 0.228417 | 0.005396 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d24e25a2e5e83961161f51930a9dbcf5a8859141 | 3,781 | py | Python | modules/common/parsers/timetable_parser.py | hgyoseo/hdmeal | f6f96c9190701b38eb6f08e2238f4f5214b95d3b | [
"MIT"
] | 2 | 2020-03-01T13:15:57.000Z | 2020-03-25T18:53:21.000Z | modules/common/parsers/timetable_parser.py | hgyoseo/hdmeal | f6f96c9190701b38eb6f08e2238f4f5214b95d3b | [
"MIT"
] | null | null | null | modules/common/parsers/timetable_parser.py | hgyoseo/hdmeal | f6f96c9190701b38eb6f08e2238f4f5214b95d3b | [
"MIT"
] | null | null | null | # ██╗ ██╗██████╗ ███╗ ███╗███████╗ █████╗ ██╗
# ██║ ██║██╔══██╗████╗ ████║██╔════╝██╔══██╗██║
# ███████║██║ ██║██╔████╔██║█████╗ ███████║██║
# ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ██╔══██║██║
# ██║ ██║██████╔╝██║ ╚═╝ ██║███████╗██║ ██║███████╗
# ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝
# Copyrigh... | 37.81 | 122 | 0.524729 | 486 | 3,781 | 4.417695 | 0.376543 | 0.048905 | 0.055426 | 0.039124 | 0.161621 | 0.137867 | 0.094085 | 0.038193 | 0.038193 | 0.026083 | 0 | 0.011874 | 0.287226 | 3,781 | 99 | 123 | 38.191919 | 0.691651 | 0.126422 | 0 | 0.102941 | 0 | 0.029412 | 0.212759 | 0.074167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.102941 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d25277187f27f31c782ae6f4bfb336436c74c318 | 2,197 | py | Python | test/connector/exchange/wazirx/test_wazirx_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 3,027 | 2019-04-04T18:52:17.000Z | 2022-03-30T09:38:34.000Z | test/connector/exchange/wazirx/test_wazirx_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 4,080 | 2019-04-04T19:51:11.000Z | 2022-03-31T23:45:21.000Z | test/connector/exchange/wazirx/test_wazirx_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 1,342 | 2019-04-04T20:50:53.000Z | 2022-03-31T15:22:36.000Z | #!/usr/bin/env python
from os.path import join, realpath
import sys; sys.path.insert(0, realpath(join(__file__, "../../../../../")))
import conf
from hummingbot.connector.exchange.wazirx.wazirx_api_order_book_data_source import WazirxAPIOrderBookDataSource
from hummingbot.connector.exchange.wazirx.wazirx_user_stre... | 35.435484 | 115 | 0.690942 | 258 | 2,197 | 5.562016 | 0.387597 | 0.069686 | 0.059233 | 0.064808 | 0.169338 | 0.169338 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.227583 | 2,197 | 61 | 116 | 36.016393 | 0.842664 | 0.020027 | 0 | 0.043478 | 0 | 0 | 0.018014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0.021739 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2536eb6f6ea1a24212cca3d6076bd9bd30877a3 | 7,706 | py | Python | lib/pts2angmap.py | samsafadi/PointRCNN | 761d4cadb3e634dc0994f2e95318240c37fbb485 | [
"MIT"
] | 1 | 2020-11-16T20:11:26.000Z | 2020-11-16T20:11:26.000Z | lib/pts2angmap.py | samsafadi/PointRCNN | 761d4cadb3e634dc0994f2e95318240c37fbb485 | [
"MIT"
] | null | null | null | lib/pts2angmap.py | samsafadi/PointRCNN | 761d4cadb3e634dc0994f2e95318240c37fbb485 | [
"MIT"
] | null | null | null |
"""
modified from sparsify.py file. This file gnerate angle map of [H=64,W=1024,4] from velodyne lidar bins
To run this:
python3 pts2angmap.py --calib_path '/root/gdrive/My Drive/PointRCNN/data/KITTI/object/training/calib/'\
--image_path '/root/gdrive/My Drive/PointRCNN/data/KITTI/object/training/image_2/' ... | 34.401786 | 194 | 0.611601 | 1,131 | 7,706 | 3.904509 | 0.185676 | 0.040761 | 0.057745 | 0.02038 | 0.38587 | 0.313179 | 0.190444 | 0.168931 | 0.168931 | 0.136775 | 0 | 0.023711 | 0.250195 | 7,706 | 223 | 195 | 34.556054 | 0.740568 | 0.209188 | 0 | 0.076923 | 0 | 0 | 0.063463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.069231 | 0 | 0.130769 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2554278f5d4ba5a87659a474ac65fdd8acaa5a1 | 2,488 | py | Python | apps/cloud/odc/apps/cloud/thredds_to_tar.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | apps/cloud/odc/apps/cloud/thredds_to_tar.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | apps/cloud/odc/apps/cloud/thredds_to_tar.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | import tarfile
import click
import requests
from odc.io.tar import tar_mode, add_txt_file
from multiprocessing.dummy import Pool as ThreadPool
from functools import partial
from urllib.parse import urlparse
from thredds_crawler.crawl import Crawl
def download(url):
parsed_uri = urlparse(url)
target_filename ... | 33.621622 | 115 | 0.663987 | 340 | 2,488 | 4.764706 | 0.417647 | 0.069136 | 0.012346 | 0.023457 | 0.028395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012494 | 0.19574 | 2,488 | 73 | 116 | 34.082192 | 0.797101 | 0.168408 | 0 | 0 | 0 | 0 | 0.187685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.177778 | 0 | 0.244444 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d256dc1971a485e302633a36903b74f4a74ac3ab | 2,322 | py | Python | airflow/operators/hive_operator.py | nirmeshk/airflow | 4556450b88ef7682a006e9125131a5bb3a91df00 | [
"Apache-2.0"
] | 1 | 2021-03-02T20:08:53.000Z | 2021-03-02T20:08:53.000Z | airflow/operators/hive_operator.py | nirmeshk/airflow | 4556450b88ef7682a006e9125131a5bb3a91df00 | [
"Apache-2.0"
] | null | null | null | airflow/operators/hive_operator.py | nirmeshk/airflow | 4556450b88ef7682a006e9125131a5bb3a91df00 | [
"Apache-2.0"
] | null | null | null | import logging
import re
from airflow.hooks import HiveCliHook
from airflow.models import BaseOperator
from airflow.utils import apply_defaults
class HiveOperator(BaseOperator):
"""
Executes hql code in a specific Hive database.
:param hql: the hql to be executed
:type hql: string
:param hive_cl... | 33.652174 | 77 | 0.656331 | 314 | 2,322 | 4.60828 | 0.382166 | 0.048376 | 0.087077 | 0.062889 | 0.135453 | 0.064962 | 0.037319 | 0 | 0 | 0 | 0 | 0.003419 | 0.244186 | 2,322 | 68 | 78 | 34.147059 | 0.821083 | 0.300603 | 0 | 0.05 | 0 | 0 | 0.061054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.125 | 0.025 | 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 |
d257693b9fe3b1d9ae0d3ac5245b8412f3de31ea | 8,259 | py | Python | KarpuzTwitterApp/logic.py | bounswe/bounswe2018group5 | d547820bfb3070da3e3935a64429e4c45aef6098 | [
"MIT"
] | 10 | 2018-03-18T20:33:39.000Z | 2021-03-03T07:37:33.000Z | KarpuzTwitterApp/logic.py | bounswe/bounswe2018group5 | d547820bfb3070da3e3935a64429e4c45aef6098 | [
"MIT"
] | 254 | 2018-02-07T15:52:26.000Z | 2019-01-08T04:11:47.000Z | KarpuzTwitterApp/logic.py | bounswe/bounswe2018group5 | d547820bfb3070da3e3935a64429e4c45aef6098 | [
"MIT"
] | 5 | 2018-03-01T13:28:45.000Z | 2021-05-24T11:07:06.000Z | from requests import get
from utils.TwitterService import TwitterService
import tweepy
from decouple import config
def get_tweets_with_location_and_query(search_params):
""" Searches all tweets that are in the given location and contains a query string. """
if 'geocode' not in search_params:
return {'... | 36.544248 | 128 | 0.683134 | 1,015 | 8,259 | 5.31133 | 0.135961 | 0.075311 | 0.081061 | 0.106659 | 0.602671 | 0.561491 | 0.49527 | 0.463365 | 0.444073 | 0.418475 | 0 | 0.010363 | 0.193849 | 8,259 | 225 | 129 | 36.706667 | 0.799339 | 0.082092 | 0 | 0.266234 | 0 | 0 | 0.194974 | 0.019841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058442 | false | 0 | 0.025974 | 0 | 0.292208 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d25b9fd6524f688abaf7d222a5e27a028065bdf6 | 5,387 | py | Python | examples/tasks/dtw-energy-plus-models-data/code.py | dburian/ivis-core | 7789821c3750ccab68396aa2bfdd405fd4d21520 | [
"MIT"
] | 2 | 2021-05-17T13:20:56.000Z | 2021-11-04T16:36:29.000Z | examples/tasks/dtw-energy-plus-models-data/code.py | dburian/ivis-core | 7789821c3750ccab68396aa2bfdd405fd4d21520 | [
"MIT"
] | 37 | 2019-05-08T04:53:58.000Z | 2022-03-02T03:50:42.000Z | examples/tasks/dtw-energy-plus-models-data/code.py | dburian/ivis-core | 7789821c3750ccab68396aa2bfdd405fd4d21520 | [
"MIT"
] | 12 | 2019-04-06T15:00:32.000Z | 2021-11-06T08:56:07.000Z | import sys
import os
import json
from elasticsearch import Elasticsearch, helpers
from datetime import datetime, timezone
import numpy as np
from dtw import dtw
# Get parameters and set up elasticsearch
data = json.loads(sys.stdin.readline())
es = Elasticsearch([{'host': data['es']['host'], 'port': int(data['es']['po... | 25.530806 | 111 | 0.593837 | 701 | 5,387 | 4.439372 | 0.258203 | 0.041131 | 0.012853 | 0.01928 | 0.194087 | 0.097686 | 0.053342 | 0.02635 | 0.02635 | 0.02635 | 0 | 0.010669 | 0.217004 | 5,387 | 210 | 112 | 25.652381 | 0.727122 | 0.106367 | 0 | 0.202532 | 0 | 0 | 0.210263 | 0 | 0 | 0 | 0 | 0.004762 | 0 | 1 | 0.006329 | false | 0 | 0.044304 | 0 | 0.056962 | 0.031646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d25f4bca7ddaa3e56f525ab91b8973856914e4df | 6,246 | py | Python | connection/connection_handler.py | valsoares/td | 4856604c71ff7d996f4e2580e0cdd9b904805225 | [
"MIT"
] | null | null | null | connection/connection_handler.py | valsoares/td | 4856604c71ff7d996f4e2580e0cdd9b904805225 | [
"MIT"
] | null | null | null | connection/connection_handler.py | valsoares/td | 4856604c71ff7d996f4e2580e0cdd9b904805225 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Marcos F. Caetano (mfcaetano@unb.br) 11/03/2020
@description: PyDash Project
The ConnectionHandler is a Singleton class implementation
The class responsible to retrieve segments in the web server.
Also it implements a traffic shaping approach.
"""
from base.simple_module import ... | 34.131148 | 168 | 0.646013 | 772 | 6,246 | 4.988342 | 0.260363 | 0.112698 | 0.088808 | 0.04726 | 0.376526 | 0.339133 | 0.266424 | 0.224357 | 0.1906 | 0.157102 | 0 | 0.012637 | 0.252482 | 6,246 | 182 | 169 | 34.318681 | 0.812165 | 0.087256 | 0 | 0.280992 | 0 | 0.016529 | 0.098312 | 0.035878 | 0.008264 | 0 | 0 | 0 | 0 | 1 | 0.07438 | false | 0.033058 | 0.082645 | 0 | 0.190083 | 0.066116 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d260f409a5bee0d6f1b71a1546aadce5730647ca | 37,634 | py | Python | latexpp/fixes/pkg/phfqit.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 4 | 2020-08-28T18:41:48.000Z | 2021-11-11T11:23:58.000Z | latexpp/fixes/pkg/phfqit.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 4 | 2020-07-31T07:34:38.000Z | 2021-11-23T19:05:00.000Z | latexpp/fixes/pkg/phfqit.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 1 | 2020-07-22T02:44:48.000Z | 2020-07-22T02:44:48.000Z | import re
import yaml
import logging
logger = logging.getLogger(__name__)
from pylatexenc.macrospec import MacroSpec, ParsedMacroArgs, MacroStandardArgsParser
from pylatexenc import latexwalker
from latexpp.macro_subst_helper import MacroSubstHelper
from latexpp.fix import BaseFix
# parse entropy macros etc.
_q... | 37.041339 | 115 | 0.533693 | 4,118 | 37,634 | 4.787275 | 0.146916 | 0.003754 | 0.034595 | 0.042457 | 0.410165 | 0.353911 | 0.323983 | 0.299736 | 0.274272 | 0.23288 | 0 | 0.003782 | 0.332518 | 37,634 | 1,015 | 116 | 37.077833 | 0.781011 | 0.267896 | 0 | 0.37037 | 0 | 0.016835 | 0.148449 | 0.054633 | 0.001684 | 0 | 0 | 0 | 0.003367 | 1 | 0.03367 | false | 0 | 0.011785 | 0.011785 | 0.116162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26272e6f74f04e9cc5cdc1f6a997a3ad8bdee52 | 2,620 | py | Python | builder/tasks_bullet/standimitation_task_bullet.py | FrankTianTT/laikago_robot | a5d54f10ea6a5620762c2210893ae8abe2f9ac05 | [
"MIT"
] | 6 | 2020-12-02T07:49:36.000Z | 2021-12-24T01:36:07.000Z | builder/tasks_bullet/standimitation_task_bullet.py | FrankTianTT/laikago_robot | a5d54f10ea6a5620762c2210893ae8abe2f9ac05 | [
"MIT"
] | null | null | null | builder/tasks_bullet/standimitation_task_bullet.py | FrankTianTT/laikago_robot | a5d54f10ea6a5620762c2210893ae8abe2f9ac05 | [
"MIT"
] | 3 | 2021-01-12T14:09:40.000Z | 2021-12-24T01:36:17.000Z | from builder.laikago_task_bullet import LaikagoTaskBullet
from builder.laikago_task import InitPose
import math
import numpy as np
ABDUCTION_P_GAIN = 220.0
ABDUCTION_D_GAIN = 0.3
HIP_P_GAIN = 220.0
HIP_D_GAIN = 2.0
KNEE_P_GAIN = 220.0
KNEE_D_GAIN = 2.0
class LaikagoStandImitationBulletBase(LaikagoTaskBullet):
de... | 42.95082 | 92 | 0.596183 | 331 | 2,620 | 4.311178 | 0.274924 | 0.052558 | 0.042046 | 0.047652 | 0.337772 | 0.323055 | 0.232656 | 0.232656 | 0.232656 | 0.232656 | 0 | 0.041433 | 0.318321 | 2,620 | 61 | 93 | 42.95082 | 0.757559 | 0 | 0 | 0.075472 | 0 | 0 | 0.014117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.075472 | 0.018868 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26592ea9cca4872fa15f4c5aedeb743d022345c | 2,366 | py | Python | tests/integration_tests/testYieldCurve.py | neoyung/IrLib | 942793c49a477c9f5747410be74daf868391f289 | [
"MIT"
] | 1 | 2021-10-04T03:15:50.000Z | 2021-10-04T03:15:50.000Z | tests/integration_tests/testYieldCurve.py | neoyung/IrLib | 942793c49a477c9f5747410be74daf868391f289 | [
"MIT"
] | null | null | null | tests/integration_tests/testYieldCurve.py | neoyung/IrLib | 942793c49a477c9f5747410be74daf868391f289 | [
"MIT"
] | null | null | null | import unittest
from datetime import date
from irLib.marketConvention.dayCount import ACT_ACT
from irLib.marketConvention.compounding import annually_k_Spot
from irLib.helpers.yieldCurve import yieldCurve, discountCurve, forwardCurve
import numpy as np
alias_disC = 'disC'
alias_forC = 'forC'
referenceDate = date(2020... | 37.555556 | 111 | 0.674979 | 280 | 2,366 | 5.667857 | 0.328571 | 0.05293 | 0.083176 | 0.102079 | 0.298677 | 0.201638 | 0.060491 | 0.060491 | 0.060491 | 0.060491 | 0 | 0.043663 | 0.206255 | 2,366 | 62 | 112 | 38.16129 | 0.801384 | 0.049451 | 0 | 0.078431 | 0 | 0 | 0.003563 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.254902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26666e751893b180e8e39534e0d885f31d24a15 | 1,876 | py | Python | src/python/setup.py | blaine141/NVISII | 1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24 | [
"Apache-2.0"
] | 149 | 2021-02-09T11:35:23.000Z | 2022-03-29T10:06:22.000Z | src/python/setup.py | blaine141/NVISII | 1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24 | [
"Apache-2.0"
] | 66 | 2020-05-28T18:53:21.000Z | 2021-02-07T05:34:14.000Z | src/python/setup.py | blaine141/NVISII | 1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24 | [
"Apache-2.0"
] | 14 | 2021-02-09T08:51:44.000Z | 2022-03-11T00:39:21.000Z | # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
# This work is licensed under the NVIDIA Source Code License - Non-commercial. Full
# text can be found in LICENSE.md
from setuptools import setup, dist
import wheel
import os
# required to geneerate a platlib folder required by audittools
from setuptools.c... | 28 | 83 | 0.710554 | 235 | 1,876 | 5.52766 | 0.548936 | 0.053888 | 0.048499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009265 | 0.194563 | 1,876 | 66 | 84 | 28.424242 | 0.85043 | 0.326759 | 0 | 0 | 0 | 0 | 0.084868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.15 | 0.05 | 0.325 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26b10ff6669fa3fb71b08771c9e2a65a51f7bb3 | 9,074 | py | Python | deep_coach.py | jendelel/rhl-algs | d5b8779d7e271265d4f0bfcb3602bc56958e3eb3 | [
"Apache-2.0"
] | 2 | 2019-03-30T23:29:10.000Z | 2019-04-05T21:54:21.000Z | deep_coach.py | jendelel/rhl-algs | d5b8779d7e271265d4f0bfcb3602bc56958e3eb3 | [
"Apache-2.0"
] | 3 | 2019-03-29T11:23:17.000Z | 2020-12-28T02:00:17.000Z | deep_coach.py | jendelel/rhl-algs | d5b8779d7e271265d4f0bfcb3602bc56958e3eb3 | [
"Apache-2.0"
] | null | null | null | from PyQt5 import QtGui, QtCore, QtWidgets
from collections import namedtuple
import time
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from utils import utils
HumanFeedback = namedtuple('HumanFeedback', ['feedback_value'])
SavedAction = namedtuple('SavedAction', ['state', 'action', ... | 45.144279 | 119 | 0.622548 | 1,089 | 9,074 | 5.028466 | 0.233242 | 0.020088 | 0.024836 | 0.013148 | 0.189007 | 0.146457 | 0.100073 | 0.100073 | 0.07962 | 0.067568 | 0 | 0.016729 | 0.262178 | 9,074 | 200 | 120 | 45.37 | 0.801195 | 0.022372 | 0 | 0.112426 | 0 | 0 | 0.072436 | 0.005303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088757 | false | 0 | 0.047337 | 0.005917 | 0.183432 | 0.035503 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26eb2453ea9164766469c382d7b579b2c3779e5 | 22,390 | py | Python | scope/utils.py | jasonmsetiadi/scope | e718998d0a7ac64e5f86554383030341dbe940f9 | [
"MIT"
] | 3 | 2021-03-05T01:32:34.000Z | 2022-01-19T03:13:44.000Z | scope/utils.py | jasonmsetiadi/scope | e718998d0a7ac64e5f86554383030341dbe940f9 | [
"MIT"
] | 57 | 2021-01-14T19:49:44.000Z | 2022-03-25T22:32:03.000Z | scope/utils.py | jasonmsetiadi/scope | e718998d0a7ac64e5f86554383030341dbe940f9 | [
"MIT"
] | 10 | 2021-01-08T19:59:24.000Z | 2022-02-16T10:54:44.000Z | __all__ = [
"Dataset",
"forgiving_true",
"load_config",
"log",
"make_tdtax_taxonomy",
"plot_gaia_density",
"plot_gaia_hr",
"plot_light_curve_data",
"plot_periods",
]
from astropy.io import fits
import datetime
import json
import healpy as hp
import matplotlib.pyplot as plt
import nu... | 31.01108 | 109 | 0.552121 | 2,858 | 22,390 | 4.186844 | 0.190343 | 0.012034 | 0.0234 | 0.016547 | 0.331773 | 0.29776 | 0.25539 | 0.213355 | 0.188367 | 0.165887 | 0 | 0.029839 | 0.32644 | 22,390 | 721 | 110 | 31.054092 | 0.76361 | 0.15833 | 0 | 0.19057 | 0 | 0.001965 | 0.068738 | 0.002273 | 0 | 0 | 0 | 0.001387 | 0.001965 | 1 | 0.023576 | false | 0 | 0.02554 | 0.001965 | 0.062868 | 0.007859 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d26ec52370aaf5a63c525e628d70b23d3bdd5697 | 1,787 | py | Python | spacy/lang/pt/lex_attrs.py | keshan/spaCy | 45c165af448783359f99673ab6b91492033bc66b | [
"MIT"
] | 1 | 2018-12-13T18:12:18.000Z | 2018-12-13T18:12:18.000Z | spacy/lang/pt/lex_attrs.py | keshan/spaCy | 45c165af448783359f99673ab6b91492033bc66b | [
"MIT"
] | null | null | null | spacy/lang/pt/lex_attrs.py | keshan/spaCy | 45c165af448783359f99673ab6b91492033bc66b | [
"MIT"
] | null | null | null | # coding: utf8
from __future__ import unicode_literals
from ...attrs import LIKE_NUM
_num_words = ['zero', 'um', 'dois', 'três', 'tres', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez',
'onze', 'doze', 'dúzia', 'dúzias', 'duzia', 'duzias', 'treze', 'catorze', 'quinze', 'dezasseis',
... | 41.55814 | 111 | 0.567431 | 159 | 1,787 | 6.264151 | 0.742138 | 0.028112 | 0.036145 | 0.048193 | 0.076305 | 0.046185 | 0 | 0 | 0 | 0 | 0 | 0.001476 | 0.241746 | 1,787 | 42 | 112 | 42.547619 | 0.733579 | 0.006715 | 0 | 0.125 | 0 | 0 | 0.390863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 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 |
d26f2516f232179df9832fdd43a7f139a4b6d7ba | 357 | py | Python | ms/commands/autopep8.py | edcilo/flask_ms_boilerplate | 6507b7b7e61ab227df40b4701faab9ec9866e732 | [
"MIT"
] | null | null | null | ms/commands/autopep8.py | edcilo/flask_ms_boilerplate | 6507b7b7e61ab227df40b4701faab9ec9866e732 | [
"MIT"
] | null | null | null | ms/commands/autopep8.py | edcilo/flask_ms_boilerplate | 6507b7b7e61ab227df40b4701faab9ec9866e732 | [
"MIT"
] | null | null | null | import click
import os
from flask.cli import with_appcontext
@click.command(name='pep8',
help='Automatically formats Python code to conform to the PEP 8 style guide.')
@click.option('-p', '--path', default='./ms',
help='folder path to fix code')
@with_appcontext
def pep8(path: str) -> Non... | 27.461538 | 93 | 0.661064 | 51 | 357 | 4.588235 | 0.705882 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0.201681 | 357 | 12 | 94 | 29.75 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.347339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 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 |
d273a6d20b4812002b8ea1fa328f2d59bdbbb865 | 5,311 | py | Python | tasks/birds.py | CatherineWong/l3 | 53ed9dc99d9b247cb209333ae9b528974e5e7e96 | [
"Apache-2.0"
] | 46 | 2017-11-03T16:54:36.000Z | 2021-12-07T23:07:58.000Z | tasks/birds.py | CatherineWong/l3 | 53ed9dc99d9b247cb209333ae9b528974e5e7e96 | [
"Apache-2.0"
] | 7 | 2018-08-03T18:27:53.000Z | 2020-12-17T17:08:52.000Z | tasks/birds.py | CatherineWong/l3 | 53ed9dc99d9b247cb209333ae9b528974e5e7e96 | [
"Apache-2.0"
] | 6 | 2018-02-24T19:00:00.000Z | 2021-03-28T19:50:53.000Z | from misc import util
from collections import namedtuple
import csv
import numpy as np
import os
import pickle
import sys
N_EX = 4
Datum = namedtuple("Datum", ["hint", "ex_inputs", "input", "label"])
START = "<s>"
STOP = "</s>"
random = util.next_random()
birds_path = os.path.join(sys.path[0], "data/birds")
def ... | 35.644295 | 96 | 0.559217 | 640 | 5,311 | 4.484375 | 0.214063 | 0.037631 | 0.017422 | 0.020906 | 0.244599 | 0.226481 | 0.214286 | 0.204878 | 0.156794 | 0.101742 | 0 | 0.009868 | 0.313124 | 5,311 | 148 | 97 | 35.885135 | 0.776864 | 0.122388 | 0 | 0.150943 | 0 | 0 | 0.043497 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.056604 | false | 0 | 0.066038 | 0.018868 | 0.179245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27463b7bc3e1731eab5ba3103ed835b119f201f | 10,717 | py | Python | catkin_ws/src/10-lane-control/line_detector/src/line_detector_node.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/10-lane-control/line_detector/src/line_detector_node.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/10-lane-control/line_detector/src/line_detector_node.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | #!/usr/bin/env python
from anti_instagram.AntiInstagram import AntiInstagram
from cv_bridge import CvBridge, CvBridgeError
from duckietown_msgs.msg import (AntiInstagramTransform, BoolStamped, Segment,
SegmentList, Vector2D, FSMState)
from duckietown_utils.instantiate_utils import instantiate
from duckietown_utils.... | 33.701258 | 122 | 0.624149 | 1,296 | 10,717 | 4.982253 | 0.204475 | 0.017346 | 0.01812 | 0.010841 | 0.128233 | 0.088741 | 0.071705 | 0.059161 | 0.059161 | 0.059161 | 0 | 0.01409 | 0.271531 | 10,717 | 317 | 123 | 33.807571 | 0.812988 | 0.083419 | 0 | 0.04 | 0 | 0.005 | 0.062526 | 0 | 0 | 0 | 0 | 0 | 0.005 | 1 | 0.1 | false | 0 | 0.075 | 0.01 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27508d001c149eb0a10e44188a30d1458aaa3a0 | 1,339 | py | Python | AxePy3Lib/01/re/re_test_patterns_groups.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2019-01-04T05:47:50.000Z | 2019-01-04T05:47:50.000Z | AxePy3Lib/01/re/re_test_patterns_groups.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | null | null | null | AxePy3Lib/01/re/re_test_patterns_groups.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Show the groups within the matches for a pattern.
"""
# end_pymotw_header
import re
def test_patterns(text, patterns):
"""Given source text and a list of patterns, look for
matches for each pattern withi... | 29.108696 | 66 | 0.477969 | 154 | 1,339 | 4.077922 | 0.454545 | 0.033439 | 0.044586 | 0.047771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010702 | 0.371919 | 1,339 | 45 | 67 | 29.755556 | 0.736029 | 0.250187 | 0 | 0 | 0 | 0 | 0.13258 | 0.027749 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d275a759f35f51d02a7503058e5ce4b1b8c106f5 | 332 | py | Python | src/xr_embeds/urls.py | xr-web-de/xr-web | 63269e26a8752564b63e84bfc0ce180198577d35 | [
"MIT"
] | 4 | 2019-03-28T20:49:59.000Z | 2019-08-11T19:31:35.000Z | src/xr_embeds/urls.py | xr-web-de/xr-web | 63269e26a8752564b63e84bfc0ce180198577d35 | [
"MIT"
] | 4 | 2019-05-08T18:07:45.000Z | 2021-05-08T17:29:46.000Z | src/xr_embeds/urls.py | xr-web-de/xr-web | 63269e26a8752564b63e84bfc0ce180198577d35 | [
"MIT"
] | 5 | 2019-03-28T20:50:15.000Z | 2020-01-17T21:16:57.000Z | from django.urls import re_path
from xr_embeds.views import geojson_view, embed_html_view
app_name = "embeds"
urlpatterns = [
re_path(r"^(\d+)/html/$", embed_html_view, name="embed_html"),
re_path(
r"^geojson/(?P<model_slug>\w+)/(?P<query_slug>\w+)/$",
geojson_view,
name="geojson_view... | 22.133333 | 66 | 0.638554 | 48 | 332 | 4.104167 | 0.479167 | 0.091371 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189759 | 332 | 14 | 67 | 23.714286 | 0.732342 | 0 | 0 | 0 | 0 | 0 | 0.274096 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2777dd29fcc8c927860ffb94a848ef3650dcd17 | 7,858 | py | Python | publications/admin.py | lukacu/django-publications | 663ace605925f53835f441c7761a6f4b0d2d4143 | [
"BSD-3-Clause"
] | null | null | null | publications/admin.py | lukacu/django-publications | 663ace605925f53835f441c7761a6f4b0d2d4143 | [
"BSD-3-Clause"
] | 3 | 2020-02-12T03:15:47.000Z | 2021-06-10T22:05:24.000Z | publications/admin.py | lukacu/django-publications | 663ace605925f53835f441c7761a6f4b0d2d4143 | [
"BSD-3-Clause"
] | 1 | 2018-07-23T11:46:37.000Z | 2018-07-23T11:46:37.000Z | # -*- Mode: python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
from publications import list_import_formats, get_publications_importer
__license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>'
__author__ = 'Lucas Theis <lucas@theis.io>'
__docformat__ = 'epytext'
from django.cont... | 38.331707 | 241 | 0.673199 | 872 | 7,858 | 5.901376 | 0.269495 | 0.017489 | 0.018655 | 0.021376 | 0.268558 | 0.232414 | 0.194714 | 0.156238 | 0.12981 | 0.10649 | 0 | 0.002547 | 0.200687 | 7,858 | 204 | 242 | 38.519608 | 0.816749 | 0.02647 | 0 | 0.239264 | 0 | 0.006135 | 0.213557 | 0.044622 | 0 | 0 | 0 | 0.004902 | 0 | 1 | 0.04908 | false | 0 | 0.202454 | 0.006135 | 0.478528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2786b44c868c09be621a0323723a3881eb90dc7 | 7,379 | py | Python | tests/common/helpers/dut_utils.py | Rancho333/sonic-mgmt | c73836900f83c1a66b2121563511604a7b81807a | [
"Apache-2.0"
] | 2 | 2020-10-15T05:54:32.000Z | 2020-12-14T07:21:41.000Z | tests/common/helpers/dut_utils.py | Rancho333/sonic-mgmt | c73836900f83c1a66b2121563511604a7b81807a | [
"Apache-2.0"
] | 14 | 2021-08-04T05:50:21.000Z | 2021-12-14T10:06:38.000Z | tests/common/helpers/dut_utils.py | Rancho333/sonic-mgmt | c73836900f83c1a66b2121563511604a7b81807a | [
"Apache-2.0"
] | 7 | 2021-07-28T03:24:41.000Z | 2022-03-07T01:44:20.000Z | import logging
from tests.common.helpers.assertions import pytest_assert
from tests.common.utilities import get_host_visible_vars
from tests.common.utilities import wait_until
CONTAINER_CHECK_INTERVAL_SECS = 1
CONTAINER_RESTART_THRESHOLD_SECS = 180
logger = logging.getLogger(__name__)
def is_supervisor_node(inv_file... | 40.322404 | 126 | 0.69359 | 972 | 7,379 | 5.079218 | 0.199588 | 0.071096 | 0.032408 | 0.015394 | 0.473972 | 0.413206 | 0.355884 | 0.321855 | 0.307677 | 0.298967 | 0 | 0.002801 | 0.225911 | 7,379 | 182 | 127 | 40.543956 | 0.86152 | 0.387586 | 0 | 0.289474 | 0 | 0 | 0.153061 | 0.005221 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.118421 | false | 0 | 0.052632 | 0 | 0.302632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d279e09431c6846b49df5d7a332c49cc36e64bc9 | 1,059 | py | Python | senseis/models/rc_action_model1.py | armandli/ReconChessRL | 3f3f018fd347ee17452ef6ad725d82f2f11678c6 | [
"MIT"
] | 4 | 2021-08-19T14:06:01.000Z | 2021-12-24T06:34:23.000Z | senseis/models/rc_action_model1.py | captainzhu123/ReconChessRL | 6d0de7acd7aeba0ad767e29c807ee0e6f30d95fb | [
"MIT"
] | 2 | 2021-09-18T08:34:01.000Z | 2022-03-23T07:06:05.000Z | senseis/models/rc_action_model1.py | captainzhu123/ReconChessRL | 6d0de7acd7aeba0ad767e29c807ee0e6f30d95fb | [
"MIT"
] | 1 | 2021-09-18T08:30:23.000Z | 2021-09-18T08:30:23.000Z | import torch
from torch import nn
from senseis.torch_modules.activation import relu_activation
from senseis.torch_modules.residual_layer import ResidualLayer1DV5, ResidualLayer2DV3
# Dueling Q Model
class RCActionModel1(nn.Module):
def __init__(self, csz, row_sz, col_sz, a_sz):
super(RCActionModel1, self).__ini... | 31.147059 | 85 | 0.674221 | 146 | 1,059 | 4.705479 | 0.342466 | 0.101892 | 0.093159 | 0.043668 | 0.296943 | 0.215429 | 0.11936 | 0.11936 | 0 | 0 | 0 | 0.054022 | 0.213409 | 1,059 | 33 | 86 | 32.090909 | 0.770708 | 0.014164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27a9b4239643f2c105ea4c3f170a4d1c43a0714 | 5,506 | py | Python | win/msgbox.py | Zxynine/fusion360-thomasa88lib | c6570c9adffd06ec7b762032326805d13a99982e | [
"MIT"
] | 4 | 2021-11-19T17:24:44.000Z | 2022-03-18T13:17:21.000Z | win/msgbox.py | Zxynine/fusion360-thomasa88lib | c6570c9adffd06ec7b762032326805d13a99982e | [
"MIT"
] | 2 | 2021-04-15T05:47:55.000Z | 2021-12-07T17:36:53.000Z | win/msgbox.py | Zxynine/fusion360-thomasa88lib | c6570c9adffd06ec7b762032326805d13a99982e | [
"MIT"
] | 1 | 2021-12-04T23:07:53.000Z | 2021-12-04T23:07:53.000Z | # Message box functions
#
# This file is part of thomasa88lib, a library of useful Fusion 360
# add-in/script functions.
#
# Copyright (c) 2020 Thomas Axelsson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to dea... | 36.463576 | 85 | 0.680349 | 663 | 5,506 | 5.512821 | 0.437406 | 0.091929 | 0.032832 | 0.009029 | 0.092202 | 0.057729 | 0.053078 | 0.053078 | 0.053078 | 0.025718 | 0 | 0.059218 | 0.242463 | 5,506 | 150 | 86 | 36.706667 | 0.81707 | 0.287868 | 0 | 0.043478 | 0 | 0 | 0.015484 | 0 | 0 | 0 | 0.042839 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.032609 | 0 | 0.141304 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27af471667bb42fad40784d1d32e99b8d50d1f8 | 22,496 | py | Python | eispac/core/eiscube.py | MJWeberg/eispac | 8de2b282fc08da9ac66d48c396060aab6e17be70 | [
"MIT"
] | 11 | 2021-02-18T00:24:22.000Z | 2022-01-30T06:48:06.000Z | eispac/core/eiscube.py | MJWeberg/eispac | 8de2b282fc08da9ac66d48c396060aab6e17be70 | [
"MIT"
] | 23 | 2021-04-09T16:34:26.000Z | 2021-11-09T16:55:29.000Z | eispac/core/eiscube.py | MJWeberg/eispac | 8de2b282fc08da9ac66d48c396060aab6e17be70 | [
"MIT"
] | 5 | 2021-04-09T16:47:27.000Z | 2021-11-04T15:45:29.000Z | __all__ = ['EISCube']
import sys
import copy
import numpy as np
import astropy.units as u
from astropy.convolution import convolve, CustomKernel
from astropy.coordinates import SkyCoord
from ndcube import __version__ as ndcube_ver
from ndcube import NDCube
class EISCube(NDCube):
"""EIS Level-1 Data Cube
Subc... | 46.00409 | 95 | 0.581526 | 2,906 | 22,496 | 4.375086 | 0.171714 | 0.007236 | 0.008809 | 0.011955 | 0.239185 | 0.195847 | 0.168948 | 0.144958 | 0.128756 | 0.116014 | 0 | 0.010894 | 0.326725 | 22,496 | 488 | 96 | 46.098361 | 0.828536 | 0.321168 | 0 | 0.245675 | 0 | 0 | 0.174068 | 0.001505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038062 | false | 0 | 0.027682 | 0 | 0.148789 | 0.072664 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27bad13c9c160040228fa36a65d4924909e6f0d | 5,380 | py | Python | stylee/comments/serializers.py | jbaek7023/Stylee-API | ff0397ba2dc1ed17ff22c33f80eef5d13e6ae097 | [
"MIT"
] | 1 | 2020-03-06T00:34:39.000Z | 2020-03-06T00:34:39.000Z | stylee/comments/serializers.py | jbaek7023/Stylee-API | ff0397ba2dc1ed17ff22c33f80eef5d13e6ae097 | [
"MIT"
] | null | null | null | stylee/comments/serializers.py | jbaek7023/Stylee-API | ff0397ba2dc1ed17ff22c33f80eef5d13e6ae097 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth import get_user_model
from profiles.serializers import UserRowSerializer
from .models import Comment
User = get_user_model()
# content, user
def create_comment_serializer(model_type='outfit', i... | 29.723757 | 96 | 0.561152 | 527 | 5,380 | 5.537002 | 0.166983 | 0.033927 | 0.02159 | 0.028787 | 0.480809 | 0.454421 | 0.363263 | 0.354352 | 0.326594 | 0.326594 | 0 | 0.001416 | 0.343494 | 5,380 | 180 | 97 | 29.888889 | 0.824745 | 0.110223 | 0 | 0.458015 | 0 | 0 | 0.055474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076336 | false | 0 | 0.038168 | 0 | 0.389313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27d80f790828621c13dad6b6615e88b5261c7f1 | 33,166 | py | Python | bcbio/structural/cnvkit.py | YTLogos/bcbio-nextgen | f964a25ab74a31551273b7e50518f3451c90f473 | [
"MIT"
] | 1 | 2019-08-29T07:55:48.000Z | 2019-08-29T07:55:48.000Z | bcbio/structural/cnvkit.py | YTLogos/bcbio-nextgen | f964a25ab74a31551273b7e50518f3451c90f473 | [
"MIT"
] | null | null | null | bcbio/structural/cnvkit.py | YTLogos/bcbio-nextgen | f964a25ab74a31551273b7e50518f3451c90f473 | [
"MIT"
] | null | null | null | """Copy number detection with CNVkit with specific support for targeted sequencing.
http://cnvkit.readthedocs.org
"""
import copy
import math
import operator
import os
import sys
import tempfile
import subprocess
import pybedtools
import numpy as np
import toolz as tz
from bcbio import utils
from bcbio.bam import re... | 46.910891 | 117 | 0.637792 | 4,526 | 33,166 | 4.411843 | 0.120857 | 0.044872 | 0.02524 | 0.025341 | 0.398688 | 0.321615 | 0.271785 | 0.23773 | 0.212039 | 0.181641 | 0 | 0.006106 | 0.239492 | 33,166 | 706 | 118 | 46.977337 | 0.785553 | 0.106012 | 0 | 0.228723 | 0 | 0.003546 | 0.104198 | 0.005205 | 0 | 0 | 0 | 0 | 0.014184 | 1 | 0.072695 | false | 0 | 0.039007 | 0.003546 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27d939d04d3b5253e8adbdbae402c28328bae05 | 31,862 | py | Python | pyexchange/exchange2010/__init__.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 128 | 2015-01-11T10:29:40.000Z | 2021-06-25T05:27:45.000Z | pyexchange/exchange2010/__init__.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 52 | 2015-01-02T15:24:28.000Z | 2020-08-07T04:49:49.000Z | pyexchange/exchange2010/__init__.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 96 | 2015-01-02T15:16:20.000Z | 2021-12-25T01:37:46.000Z | """
(c) 2013 LinkedIn Corp. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");?you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 34.745911 | 216 | 0.701211 | 4,159 | 31,862 | 5.194999 | 0.129839 | 0.024438 | 0.025271 | 0.018467 | 0.494168 | 0.445386 | 0.414052 | 0.382348 | 0.31033 | 0.270712 | 0 | 0.006743 | 0.199454 | 31,862 | 916 | 217 | 34.783843 | 0.840318 | 0.210753 | 0 | 0.330754 | 0 | 0.001934 | 0.208398 | 0.068783 | 0 | 0 | 0 | 0.002183 | 0 | 1 | 0.094778 | false | 0.003868 | 0.021277 | 0.01354 | 0.220503 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d27e18ed16bd406812b85f4af214631d5d9da65c | 8,982 | py | Python | rnacentral_pipeline/rnacentral/r2dt/should_show.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 1 | 2018-08-09T14:41:16.000Z | 2018-08-09T14:41:16.000Z | rnacentral_pipeline/rnacentral/r2dt/should_show.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 60 | 2015-02-04T16:43:53.000Z | 2022-01-27T10:28:43.000Z | rnacentral_pipeline/rnacentral/r2dt/should_show.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright [2009-2021] EMBL-European Bioinformatics Institute
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... | 32.309353 | 87 | 0.638833 | 1,183 | 8,982 | 4.658495 | 0.240913 | 0.016331 | 0.011613 | 0.010887 | 0.215206 | 0.191435 | 0.156414 | 0.124478 | 0.097623 | 0.092542 | 0 | 0.006488 | 0.244934 | 8,982 | 277 | 88 | 32.425993 | 0.806104 | 0.066912 | 0 | 0.187215 | 0 | 0 | 0.125881 | 0.036785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073059 | false | 0 | 0.063927 | 0.013699 | 0.210046 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2824e51dfb32b914b5d61d7c72ec4e8a213bab5 | 4,959 | py | Python | models/recall/word2vec/static_model.py | ziyoujiyi/PaddleRec | bcddcf46e5cd8d4e6b2c5ee8d0d5521e292a2a81 | [
"Apache-2.0"
] | 2,739 | 2020-04-28T05:12:48.000Z | 2022-03-31T16:01:49.000Z | models/recall/word2vec/static_model.py | jiangcongxu/PaddleRec | 9a107c56af2d1ee282975bcc8edb1ad5fb7e7973 | [
"Apache-2.0"
] | 205 | 2020-05-14T13:29:14.000Z | 2022-03-31T13:01:50.000Z | models/recall/word2vec/static_model.py | jiangcongxu/PaddleRec | 9a107c56af2d1ee282975bcc8edb1ad5fb7e7973 | [
"Apache-2.0"
] | 545 | 2020-05-14T13:19:13.000Z | 2022-03-24T07:53:05.000Z | # Copyright (c) 2020 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... | 40.983471 | 79 | 0.617867 | 598 | 4,959 | 4.88796 | 0.262542 | 0.03079 | 0.043791 | 0.054738 | 0.37701 | 0.235717 | 0.185084 | 0.070818 | 0 | 0 | 0 | 0.013262 | 0.28534 | 4,959 | 120 | 80 | 41.325 | 0.811512 | 0.189353 | 0 | 0.02381 | 0 | 0 | 0.093797 | 0.061781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d285ef91afbd55e6c2220bf3361249aade406f01 | 16,219 | py | Python | sxl/sxl.py | giriannamalai/sxl | 37db962bbbc978053375ffcc51e298ee6f5272d8 | [
"MIT"
] | null | null | null | sxl/sxl.py | giriannamalai/sxl | 37db962bbbc978053375ffcc51e298ee6f5272d8 | [
"MIT"
] | null | null | null | sxl/sxl.py | giriannamalai/sxl | 37db962bbbc978053375ffcc51e298ee6f5272d8 | [
"MIT"
] | null | null | null | """
xl.py - python library to deal with *big* Excel files.
"""
from abc import ABC
from collections import namedtuple, ChainMap
from contextlib import contextmanager
import datetime
import io
from itertools import zip_longest
import os
import re
import string
import xml.etree.cElementTree as ET
from zipfile import Zip... | 35.803532 | 106 | 0.533818 | 2,064 | 16,219 | 4.050872 | 0.193314 | 0.01818 | 0.01507 | 0.020213 | 0.157876 | 0.097237 | 0.07834 | 0.059801 | 0.045449 | 0.045449 | 0 | 0.029978 | 0.356249 | 16,219 | 452 | 107 | 35.882743 | 0.770807 | 0.146803 | 0 | 0.142077 | 0 | 0 | 0.110153 | 0.00338 | 0 | 0 | 0 | 0 | 0.002732 | 1 | 0.07377 | false | 0 | 0.030055 | 0.005464 | 0.196721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9627bff44e51fdfda5ec4883f22ddd53286fedc6 | 5,156 | py | Python | sdk-python/awaazde/base.py | ashwini-ad/awaazde-api-client-sdk | c966f24d1e4b11fb9b0878d7e20c80b19cc04628 | [
"Apache-2.0"
] | null | null | null | sdk-python/awaazde/base.py | ashwini-ad/awaazde-api-client-sdk | c966f24d1e4b11fb9b0878d7e20c80b19cc04628 | [
"Apache-2.0"
] | null | null | null | sdk-python/awaazde/base.py | ashwini-ad/awaazde-api-client-sdk | c966f24d1e4b11fb9b0878d7e20c80b19cc04628 | [
"Apache-2.0"
] | null | null | null | import logging
import urllib.parse
from .api_client import ApiClient
from .constants import APIConstants
from .exceptions import APIException
from .utils import CommonUtils
class BaseAPI(object):
"""
BaseApi class, all the other api class extends it
"""
resource_url = None
resource_cls = None
... | 33.480519 | 145 | 0.597944 | 635 | 5,156 | 4.694488 | 0.228346 | 0.028178 | 0.030527 | 0.046964 | 0.321033 | 0.266018 | 0.238511 | 0.207313 | 0.207313 | 0.207313 | 0 | 0.007891 | 0.287238 | 5,156 | 153 | 146 | 33.699346 | 0.803265 | 0.18173 | 0 | 0.177778 | 0 | 0 | 0.081156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144444 | false | 0.044444 | 0.066667 | 0.011111 | 0.411111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96296ccad66334cb3060947522a0c3b215f8f83c | 774 | py | Python | configs/mmrotate/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | configs/mmrotate/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | configs/mmrotate/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | _base_ = ['./rotated-detection_static.py', '../_base_/backends/tensorrt.py']
onnx_config = dict(
output_names=['dets', 'labels'],
input_shape=None,
dynamic_axes={
'input': {
0: 'batch',
2: 'height',
3: 'width'
},
'dets': {
0: 'batch',
... | 23.454545 | 76 | 0.432817 | 77 | 774 | 4.090909 | 0.519481 | 0.095238 | 0.066667 | 0.063492 | 0.184127 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083151 | 0.409561 | 774 | 32 | 77 | 24.1875 | 0.606127 | 0 | 0 | 0.166667 | 0 | 0 | 0.162791 | 0.076227 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96298d33b6be77c822487f95da02b8e986a6434c | 4,053 | py | Python | rainy/envs/parallel_wrappers.py | alexmlamb/blocks_rl_gru_setup | fe462f79518d14f828e2c7cbf210cd105ff982f4 | [
"Apache-2.0"
] | null | null | null | rainy/envs/parallel_wrappers.py | alexmlamb/blocks_rl_gru_setup | fe462f79518d14f828e2c7cbf210cd105ff982f4 | [
"Apache-2.0"
] | null | null | null | rainy/envs/parallel_wrappers.py | alexmlamb/blocks_rl_gru_setup | fe462f79518d14f828e2c7cbf210cd105ff982f4 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from typing import Any, Iterable, Tuple
from .ext import EnvSpec
from .parallel import ParallelEnv
from ..prelude import Action, Array, State
from ..utils.rms import RunningMeanStd
class ParallelEnvWrapper(ParallelEnv[Action, State]):
def __init__(self, penv: ParallelEnv) -> None:
self.... | 32.685484 | 97 | 0.603504 | 513 | 4,053 | 4.643275 | 0.183236 | 0.06717 | 0.035264 | 0.039882 | 0.38749 | 0.29639 | 0.29639 | 0.246012 | 0.246012 | 0.212427 | 0 | 0.007682 | 0.261288 | 4,053 | 123 | 98 | 32.95122 | 0.787909 | 0.015791 | 0 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193878 | false | 0 | 0.061224 | 0.061224 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962b1992cdd2dfaf0952dfed1c1a16307ccc9f57 | 372 | py | Python | interview/leet/1029_Two_City_Scheduling.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | interview/leet/1029_Two_City_Scheduling.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | interview/leet/1029_Two_City_Scheduling.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/bin/env python
class Solution:
def twoCitySchedCost(self, costs):
N = len(costs)//2
costs = list(sorted(costs, key=lambda c: c[0]-c[1]))
s = 0
for i, c in enumerate(costs):
s += c[0] if i < N else c[1]
return s
costs = [[10,20],[30,200],[400,50],[30,20]]
... | 24.8 | 60 | 0.553763 | 59 | 372 | 3.491525 | 0.610169 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.268817 | 372 | 14 | 61 | 26.571429 | 0.669118 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
962b25ef7d6c6efe9c549cbaf3d04d00594f4f6d | 23,818 | py | Python | Metrics/plots.py | liorfrenkel1992/focal_calibration | 4f020e022be501ee3f723e6105afe793a1e522f0 | [
"MIT"
] | null | null | null | Metrics/plots.py | liorfrenkel1992/focal_calibration | 4f020e022be501ee3f723e6105afe793a1e522f0 | [
"MIT"
] | null | null | null | Metrics/plots.py | liorfrenkel1992/focal_calibration | 4f020e022be501ee3f723e6105afe793a1e522f0 | [
"MIT"
] | null | null | null | '''
This file contains method for generating calibration related plots, eg. reliability plots.
References:
[1] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger. On calibration of modern neural networks.
arXiv preprint arXiv:1706.04599, 2017.
'''
import math
import matplotlib.pyplot as plt
import numpy as np
import... | 54.00907 | 234 | 0.674196 | 3,493 | 23,818 | 4.356141 | 0.114801 | 0.056782 | 0.038644 | 0.064997 | 0.636238 | 0.602392 | 0.575513 | 0.537592 | 0.497503 | 0.477721 | 0 | 0.096805 | 0.162944 | 23,818 | 441 | 235 | 54.00907 | 0.666399 | 0.09623 | 0 | 0.415254 | 0 | 0 | 0.109309 | 0.057941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056497 | false | 0 | 0.022599 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962dd9983600a5e9baec739d1eaccc092f1e2982 | 3,258 | py | Python | manim_demo/srcs/new_Scene_demo.py | shujunge/manim_tutorial | 8e320373f0404dcc0a200ab3750ee70784dc1345 | [
"MIT"
] | null | null | null | manim_demo/srcs/new_Scene_demo.py | shujunge/manim_tutorial | 8e320373f0404dcc0a200ab3750ee70784dc1345 | [
"MIT"
] | null | null | null | manim_demo/srcs/new_Scene_demo.py | shujunge/manim_tutorial | 8e320373f0404dcc0a200ab3750ee70784dc1345 | [
"MIT"
] | null | null | null | from manimlib.imports import *
class LSystem(Scene):
CONFIG = {
'rules': {'F': 'F+F--F+F'},
'length': 1,
'start_loc': ORIGIN,
'angle': PI / 3,
'start_rot': 0,
'iteration': 1,
'initial': 'F',
'actions': {},
'locations': [],
'rotations':... | 24.313433 | 58 | 0.482198 | 387 | 3,258 | 3.963824 | 0.258398 | 0.050196 | 0.039113 | 0.036506 | 0.241199 | 0.148631 | 0.127771 | 0.093872 | 0.093872 | 0.093872 | 0 | 0.017926 | 0.366483 | 3,258 | 133 | 59 | 24.496241 | 0.725291 | 0.023634 | 0 | 0.207207 | 0 | 0 | 0.116111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099099 | false | 0 | 0.009009 | 0 | 0.18018 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962e6f77c6888ab263ac0737fad6faa36799e3b3 | 4,720 | py | Python | prototyping/OpenCv/robot_tracking.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2021-01-07T07:46:50.000Z | 2021-11-17T10:48:39.000Z | prototyping/OpenCv/robot_tracking.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2018-02-19T20:30:30.000Z | 2018-04-20T23:25:29.000Z | prototyping/OpenCv/robot_tracking.py | ssnover95/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 1 | 2021-01-07T07:46:52.000Z | 2021-01-07T07:46:52.000Z | import imutils
import cv2
import numpy as np
import math
from math import sqrt
def find_robot_orientation(image):
robot = {}
robot['angle'] = []
robot['direction'] = []
robotLower = (139, 227, 196)
robotUpper = (255, 255, 255)
distances = []
# img = cv2.imread('all_color_terrain_with_robot.... | 39.333333 | 114 | 0.587288 | 703 | 4,720 | 3.893314 | 0.28734 | 0.066496 | 0.040921 | 0.038363 | 0.161856 | 0.150164 | 0.048959 | 0.021191 | 0.021191 | 0 | 0 | 0.068325 | 0.258898 | 4,720 | 119 | 115 | 39.663866 | 0.714122 | 0.169703 | 0 | 0.037975 | 0 | 0 | 0.008877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.063291 | 0 | 0.088608 | 0.050633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962e9ec005fd784de4a3baab20160d8df9ba9898 | 7,404 | py | Python | ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_host_ntp.py | otus-devops-2019-02/yyashkin_infra | 0cd0c003884155ac922e3e301305ac202de7028c | [
"MIT"
] | 1 | 2019-04-16T21:23:15.000Z | 2019-04-16T21:23:15.000Z | ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_host_ntp.py | otus-devops-2019-02/yyashkin_infra | 0cd0c003884155ac922e3e301305ac202de7028c | [
"MIT"
] | 5 | 2020-02-26T20:10:50.000Z | 2021-09-23T23:23:18.000Z | ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_host_ntp.py | otus-devops-2019-02/yyashkin_infra | 0cd0c003884155ac922e3e301305ac202de7028c | [
"MIT"
] | 1 | 2020-02-13T14:24:57.000Z | 2020-02-13T14:24:57.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata... | 35.768116 | 122 | 0.66356 | 906 | 7,404 | 5.157837 | 0.226269 | 0.085598 | 0.036593 | 0.028461 | 0.317783 | 0.247165 | 0.230901 | 0.206077 | 0.206077 | 0.144875 | 0 | 0.003749 | 0.243517 | 7,404 | 206 | 123 | 35.941748 | 0.830566 | 0.025527 | 0 | 0.265537 | 0 | 0.016949 | 0.354736 | 0.007627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028249 | false | 0.022599 | 0.033898 | 0 | 0.079096 | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962ff9f355899a8526a5df34e1ab89d319623352 | 796 | py | Python | test_weakref.py | xzfn/retroreload | 79466ef013a2a0892e096e510b847e222478caeb | [
"MIT"
] | null | null | null | test_weakref.py | xzfn/retroreload | 79466ef013a2a0892e096e510b847e222478caeb | [
"MIT"
] | null | null | null | test_weakref.py | xzfn/retroreload | 79466ef013a2a0892e096e510b847e222478caeb | [
"MIT"
] | null | null | null | """
weakref should be valid.
"""
import gc
import importlib
import autoreload
import retroreload
switch = 2
if switch == 0:
reload_module = importlib.reload
elif switch == 1:
reload_module = autoreload.superreload
elif switch == 2:
reload_module = retroreload.retroreload
import mod3
if __name__ ==... | 18.090909 | 76 | 0.688442 | 99 | 796 | 5.414141 | 0.515152 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0144 | 0.214824 | 796 | 43 | 77 | 18.511628 | 0.8432 | 0.234925 | 0 | 0.086957 | 0 | 0 | 0.113523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
963000235c468e48e66c69225a889ee4596a7a88 | 814 | py | Python | model/model.py | Okestro-symphony/Log-Anomaly-Detection | ab6548ca93c8d6073faf96d8a39bf4517139d8ea | [
"Apache-2.0"
] | null | null | null | model/model.py | Okestro-symphony/Log-Anomaly-Detection | ab6548ca93c8d6073faf96d8a39bf4517139d8ea | [
"Apache-2.0"
] | 1 | 2021-11-03T04:17:55.000Z | 2021-11-03T04:17:55.000Z | model/model.py | Okestro-symphony/Log-Anomaly-Detection | ab6548ca93c8d6073faf96d8a39bf4517139d8ea | [
"Apache-2.0"
] | 1 | 2021-11-03T04:15:33.000Z | 2021-11-03T04:15:33.000Z | def train_isolation_forest(df, padding_data):
'''
* Isolation Forest model setting
- n_estimators=100
- max_samples='auto'
- n_jobs=-1
- max_features=2
- contamination=0.01
'''
#padding한 data load
data_df = padding_data
# model 정의
model = IsolationForest(n_estimators=100... | 24.666667 | 76 | 0.589681 | 107 | 814 | 4.308411 | 0.495327 | 0.065076 | 0.056399 | 0.073753 | 0.399132 | 0.399132 | 0.399132 | 0.26898 | 0.26898 | 0.26898 | 0 | 0.031634 | 0.300983 | 814 | 32 | 77 | 25.4375 | 0.778559 | 0.296069 | 0 | 0.285714 | 0 | 0 | 0.052533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
963036c125a200d1a52d12e53f35e03ad2ffc294 | 1,619 | py | Python | datasets.py | Tracesource/DCEC | 8b9dca56bc032fb81d18dd9709c170802600e06b | [
"MIT"
] | 154 | 2017-10-01T22:32:26.000Z | 2022-03-08T14:09:38.000Z | datasets.py | Tracesource/DCEC | 8b9dca56bc032fb81d18dd9709c170802600e06b | [
"MIT"
] | 10 | 2017-12-28T11:38:14.000Z | 2020-07-22T04:46:27.000Z | datasets.py | Tracesource/DCEC | 8b9dca56bc032fb81d18dd9709c170802600e06b | [
"MIT"
] | 59 | 2017-12-18T11:50:53.000Z | 2022-03-16T17:42:18.000Z | import numpy as np
def load_mnist():
# the data, shuffled and split between train and test sets
from keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x = np.concatenate((x_train, x_test))
y = np.concatenate((y_train, y_test))
x = x.reshape(-1, 28, 28, 1).as... | 34.446809 | 113 | 0.618901 | 264 | 1,619 | 3.659091 | 0.257576 | 0.074534 | 0.056936 | 0.052795 | 0.516563 | 0.440994 | 0.440994 | 0.401656 | 0.364389 | 0.364389 | 0 | 0.024295 | 0.211859 | 1,619 | 46 | 114 | 35.195652 | 0.732759 | 0.034589 | 0 | 0.277778 | 0 | 0.055556 | 0.194231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.083333 | 0 | 0.194444 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9630b2873f1800433cfbc8d045129730577eb455 | 121,027 | py | Python | balto_gui.py | peckhams/balto_gui | 1c599bce4e90569f34aab1546d1adfd9dcaad943 | [
"MIT"
] | 8 | 2020-07-27T16:16:50.000Z | 2022-03-09T19:42:27.000Z | balto_gui.py | peckhams/balto_gui | 1c599bce4e90569f34aab1546d1adfd9dcaad943 | [
"MIT"
] | 1 | 2020-05-21T01:36:16.000Z | 2020-05-21T01:36:16.000Z | balto_gui.py | peckhams/balto_gui | 1c599bce4e90569f34aab1546d1adfd9dcaad943 | [
"MIT"
] | 5 | 2020-05-07T13:16:42.000Z | 2021-02-18T18:57:42.000Z | """
This module defines a class called "balto_gui" that can be used to
create a graphical user interface (GUI) for downloading data from
OpenDAP servers from and into a Jupyter notebook. If used with Binder,
this GUI runs in a browser window and does not require the user to
install anything on their computer. However... | 42.811107 | 96 | 0.432118 | 11,551 | 121,027 | 4.304216 | 0.090642 | 0.017257 | 0.012651 | 0.007965 | 0.403999 | 0.322378 | 0.285028 | 0.254254 | 0.229615 | 0.215214 | 0 | 0.01947 | 0.302321 | 121,027 | 2,827 | 97 | 42.811107 | 0.569341 | 0.454163 | 0 | 0.247338 | 0 | 0 | 0.077732 | 0.004954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054873 | false | 0.001638 | 0.010647 | 0.002457 | 0.121212 | 0.038493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
963361945d482a5cef7d35e152993ddbfadb7240 | 1,889 | py | Python | launcher.py | lucaso60/DiscordDMSpammer | 336a20195cf32013cf50c98c2a400ec79750758b | [
"MIT"
] | 1 | 2021-08-15T13:21:22.000Z | 2021-08-15T13:21:22.000Z | launcher.py | lucaso60/DiscordDMSpammer | 336a20195cf32013cf50c98c2a400ec79750758b | [
"MIT"
] | 1 | 2021-09-14T15:29:30.000Z | 2021-09-14T15:42:01.000Z | launcher.py | lucaso60/DiscordDMSpammer | 336a20195cf32013cf50c98c2a400ec79750758b | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 lucaso60
Copyright (c) 2015-present Rapptz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | 33.732143 | 79 | 0.741133 | 292 | 1,889 | 4.739726 | 0.493151 | 0.063584 | 0.028902 | 0.028179 | 0.052023 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0.007727 | 0.177872 | 1,889 | 55 | 80 | 34.345455 | 0.883451 | 0.583907 | 0 | 0 | 0 | 0 | 0.282216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9633daded62c203085e90cc7105a91f913793c8c | 2,393 | py | Python | src/pipelines.py | charnley/bayes-mndo | 38662dd738af7cba73f98ffacc5c719aaa9a036d | [
"CC0-1.0"
] | null | null | null | src/pipelines.py | charnley/bayes-mndo | 38662dd738af7cba73f98ffacc5c719aaa9a036d | [
"CC0-1.0"
] | null | null | null | src/pipelines.py | charnley/bayes-mndo | 38662dd738af7cba73f98ffacc5c719aaa9a036d | [
"CC0-1.0"
] | null | null | null | import multiprocessing as mp
import os
import shutil
from functools import partial
from tqdm import tqdm
import data
from chemhelp import mndo
# def calculate(binary, filename, scr=None):
# """
# Collect sets of lines for each molecule as they become available
# and then call a parser to extract the dict... | 25.457447 | 88 | 0.670288 | 316 | 2,393 | 4.927215 | 0.389241 | 0.034682 | 0.054592 | 0.048812 | 0.128452 | 0.07964 | 0 | 0 | 0 | 0 | 0 | 0.001634 | 0.232762 | 2,393 | 93 | 89 | 25.731183 | 0.846405 | 0.320518 | 0 | 0 | 0 | 0 | 0.068922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.134615 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96343356750cc9fb146f0fb6d55a57fd12b0dbb2 | 2,915 | py | Python | lib/googlecloudsdk/api_lib/logging/common.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/logging/common.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/logging/common.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- #
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 38.355263 | 80 | 0.704974 | 394 | 2,915 | 5.124365 | 0.484772 | 0.029718 | 0.023774 | 0.015849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012742 | 0.219211 | 2,915 | 75 | 81 | 38.866667 | 0.874341 | 0.519039 | 0 | 0.066667 | 0 | 0 | 0.108631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 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 |
9634f1c7c56270380c2632695615ddd30a7c567d | 1,663 | py | Python | git_verkefni_forritun.py | JonasFreyrB/Forritun | 61cfda738693b255131bf6fb4ebea3af6f3a4ecf | [
"MIT"
] | null | null | null | git_verkefni_forritun.py | JonasFreyrB/Forritun | 61cfda738693b255131bf6fb4ebea3af6f3a4ecf | [
"MIT"
] | null | null | null | git_verkefni_forritun.py | JonasFreyrB/Forritun | 61cfda738693b255131bf6fb4ebea3af6f3a4ecf | [
"MIT"
] | null | null | null | #Jónas Freyr Bjarnason
#25.01.2017
#Forritun
#Liður 1
#Byð notanda um tölu 1
tala1=int(input("Sláðu inn tölu 1 "))
#Byð notanda um tölu 2
tala2=int(input("Sláðu inn tölu 2 "))
#Birti tölu 1 og 2 lagðar saman
print("Tölurnar lagðar saman ",tala1+tala2)
#Birti tölu 1 og 2 margfaldaðar saman
print("Tölurnar margfaldaðar... | 29.175439 | 72 | 0.723391 | 250 | 1,663 | 4.812 | 0.356 | 0.05985 | 0.049875 | 0.042394 | 0.351621 | 0.211139 | 0.177889 | 0.054863 | 0.054863 | 0 | 0 | 0.025888 | 0.187011 | 1,663 | 56 | 73 | 29.696429 | 0.863905 | 0.446783 | 0 | 0 | 0 | 0 | 0.260918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96361040937f80ec08a4104661139247c1a2e9f9 | 3,616 | py | Python | arxiv/release/dist_version.py | cul-it/arxiv-base | a5beadf44c24f72e21313299bfafc1ffb9d28ac7 | [
"MIT"
] | 23 | 2019-01-10T22:01:18.000Z | 2022-02-02T10:28:25.000Z | arxiv/release/dist_version.py | arXiv/arxiv-base | b59490abc1656c240025e19af86d6a246926914a | [
"MIT"
] | 57 | 2018-12-17T16:45:38.000Z | 2021-12-14T14:20:58.000Z | arxiv/release/dist_version.py | cul-it/arxiv-base-ui | a5beadf44c24f72e21313299bfafc1ffb9d28ac7 | [
"MIT"
] | 5 | 2019-01-10T22:01:28.000Z | 2021-11-05T12:25:31.000Z | """
Functions to deal with arxiv package versions.
It can be used in the setup.py file:
from arxiv.release.dist_version import get_version
setup(
version=get_version('arxiv-filemanager'),
....
)
"""
import sys
import pathlib
from subprocess import Popen, PIPE
from datetime import datetime
import pkg_resou... | 29.16129 | 79 | 0.634679 | 496 | 3,616 | 4.504032 | 0.334677 | 0.028648 | 0.019696 | 0.016115 | 0.209042 | 0.121755 | 0.121755 | 0.121755 | 0.121755 | 0.121755 | 0 | 0.002587 | 0.251659 | 3,616 | 123 | 80 | 29.398374 | 0.822986 | 0.419248 | 0 | 0.107143 | 0 | 0 | 0.182845 | 0.029276 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.071429 | false | 0.035714 | 0.142857 | 0 | 0.357143 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |