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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dba89946ffbf4b4e0ca04987e645e105d52edb8a | 2,412 | py | Python | dags/mailsdag.py | rvacaru/airflow-training-skeleton | 45fc6a8938d055b98c62c85b7c8085cb7d6f23ba | [
"Apache-2.0"
] | null | null | null | dags/mailsdag.py | rvacaru/airflow-training-skeleton | 45fc6a8938d055b98c62c85b7c8085cb7d6f23ba | [
"Apache-2.0"
] | null | null | null | dags/mailsdag.py | rvacaru/airflow-training-skeleton | 45fc6a8938d055b98c62c85b7c8085cb7d6f23ba | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | 25.125 | 66 | 0.717247 | 319 | 2,412 | 5.291536 | 0.45768 | 0.035545 | 0.047393 | 0.018957 | 0.075829 | 0.047393 | 0 | 0 | 0 | 0 | 0 | 0.005612 | 0.187396 | 2,412 | 95 | 67 | 25.389474 | 0.855612 | 0.354892 | 0 | 0.1 | 0 | 0 | 0.091384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.216667 | 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 |
dba99e90b4b43e354898ce74c9ce989b11885ee9 | 1,359 | py | Python | appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py | speedplane/python-compat-runtime | 743ade7e1350c790c4aaa48dd2c0893d06d80cee | [
"Apache-2.0"
] | 26 | 2015-01-20T08:02:38.000Z | 2020-06-10T04:57:41.000Z | appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py | speedplane/python-compat-runtime | 743ade7e1350c790c4aaa48dd2c0893d06d80cee | [
"Apache-2.0"
] | 53 | 2016-04-06T21:10:43.000Z | 2018-03-19T23:14:33.000Z | appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py | speedplane/python-compat-runtime | 743ade7e1350c790c4aaa48dd2c0893d06d80cee | [
"Apache-2.0"
] | 23 | 2016-04-19T05:45:26.000Z | 2021-12-31T23:22:36.000Z | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 20.283582 | 74 | 0.725533 | 217 | 1,359 | 4.529954 | 0.723502 | 0.061038 | 0.02645 | 0.032553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074886 | 0.19426 | 1,359 | 66 | 75 | 20.590909 | 0.822831 | 0.626932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbaa5fe4d5410450515867da0876df0842647fcf | 2,406 | py | Python | GestiRED/views.py | osabogal10/GestiREDBackend | 99aa3b01bd67910cc0f96751c88d0f4e83763392 | [
"MIT"
] | null | null | null | GestiRED/views.py | osabogal10/GestiREDBackend | 99aa3b01bd67910cc0f96751c88d0f4e83763392 | [
"MIT"
] | null | null | null | GestiRED/views.py | osabogal10/GestiREDBackend | 99aa3b01bd67910cc0f96751c88d0f4e83763392 | [
"MIT"
] | 1 | 2018-11-19T00:08:05.000Z | 2018-11-19T00:08:05.000Z | from django.http import HttpResponse
from django.core.mail import send_mail
import json
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from GestiRED.models import User
from GestiRED.models import QualityControl, Phase, Resource, ResourceType,PhaseType
from django.core import se... | 36.454545 | 130 | 0.656692 | 269 | 2,406 | 5.732342 | 0.386617 | 0.038911 | 0.033722 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000542 | 0.232751 | 2,406 | 65 | 131 | 37.015385 | 0.834778 | 0.018703 | 0 | 0.039216 | 0 | 0 | 0.150191 | 0.009758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0.019608 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbaa65a763de8c1cfbc863205e539ed71151b214 | 2,181 | py | Python | ext_modules/_maix_nn/example/yolo2_camera.py | sipeed/python3-maix | 9ced31b8f1c1e4ef93b6a57bbfced27ae9e3361e | [
"MIT"
] | 93 | 2021-01-12T01:56:06.000Z | 2022-03-30T12:52:01.000Z | ext_modules/_maix_nn/example/yolo2_camera.py | JasperG1998/MaixPy3 | b36800b8d6aebf55018894c215c23a73d2fe406d | [
"MIT"
] | 29 | 2021-02-04T10:37:26.000Z | 2022-03-20T15:10:55.000Z | ext_modules/_maix_nn/example/yolo2_camera.py | JasperG1998/MaixPy3 | b36800b8d6aebf55018894c215c23a73d2fe406d | [
"MIT"
] | 25 | 2021-01-25T18:10:09.000Z | 2022-03-31T13:55:36.000Z |
from maix import nn
from PIL import Image, ImageDraw, ImageFont
from maix import display, camera
import time
from maix.nn import decoder
def draw_rectangle_with_title(draw, box, disp_str, bg_color=(255, 0, 0, 255), font_color=(255, 255, 255, 255)):
# draw = ImageDraw.Draw(img)
font = ImageFont.load_defaul... | 27.2625 | 111 | 0.596057 | 342 | 2,181 | 3.690058 | 0.345029 | 0.050713 | 0.022187 | 0.019017 | 0.126783 | 0.090333 | 0 | 0 | 0 | 0 | 0 | 0.087982 | 0.202659 | 2,181 | 79 | 112 | 27.607595 | 0.637723 | 0.017423 | 0 | 0.068966 | 0 | 0 | 0.121425 | 0.030942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.086207 | 0 | 0.103448 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbaa6f31a1ce95280bfdff82b4090e6bc54d2002 | 10,143 | py | Python | tests/test_metadata_options.py | Fatal1ty/mashumaro | f32acf98f7cc7cdf638b921fe3fde96bef4fbefb | [
"Apache-2.0"
] | 394 | 2018-11-09T11:55:11.000Z | 2022-03-27T07:39:48.000Z | tests/test_metadata_options.py | Fatal1ty/mashumaro | f32acf98f7cc7cdf638b921fe3fde96bef4fbefb | [
"Apache-2.0"
] | 70 | 2018-12-10T19:43:01.000Z | 2022-03-17T07:37:45.000Z | tests/test_metadata_options.py | Fatal1ty/mashumaro | f32acf98f7cc7cdf638b921fe3fde96bef4fbefb | [
"Apache-2.0"
] | 29 | 2018-12-10T19:44:19.000Z | 2022-03-11T00:12:26.000Z | from dataclasses import dataclass, field
from datetime import date, datetime, time, timezone
from pathlib import Path
from typing import Any, Dict, Optional, Union
import ciso8601
import pytest
from mashumaro import DataClassDictMixin
from mashumaro.exceptions import UnserializableField
from mashumaro.types import Se... | 30.1875 | 79 | 0.648822 | 1,165 | 10,143 | 5.498712 | 0.108155 | 0.044958 | 0.082579 | 0.147206 | 0.688885 | 0.615673 | 0.561973 | 0.514518 | 0.455354 | 0.433812 | 0 | 0.053177 | 0.219462 | 10,143 | 335 | 80 | 30.277612 | 0.755968 | 0 | 0 | 0.414343 | 0 | 0 | 0.077098 | 0.007098 | 0 | 0 | 0 | 0 | 0.123506 | 1 | 0.12749 | false | 0 | 0.039841 | 0.031873 | 0.414343 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbaae886d43e46ac193d1e7f28a6367192d2a640 | 7,552 | py | Python | vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py | owennewo/kfserving | 89f73c87525b8e06ea799f69f2979c4ad272fcb3 | [
"Apache-2.0"
] | 2 | 2018-12-12T23:33:05.000Z | 2019-02-26T07:20:22.000Z | vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py | owennewo/kfserving | 89f73c87525b8e06ea799f69f2979c4ad272fcb3 | [
"Apache-2.0"
] | 13 | 2020-11-13T18:53:29.000Z | 2022-03-12T00:33:00.000Z | vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py | owennewo/kfserving | 89f73c87525b8e06ea799f69f2979c4ad272fcb3 | [
"Apache-2.0"
] | 2 | 2020-10-06T09:24:31.000Z | 2020-12-20T15:10:56.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... | 34.801843 | 80 | 0.742585 | 1,047 | 7,552 | 5.115568 | 0.217765 | 0.071695 | 0.037341 | 0.050784 | 0.316468 | 0.218447 | 0.165982 | 0.130134 | 0.094473 | 0.046303 | 0 | 0.007289 | 0.164327 | 7,552 | 216 | 81 | 34.962963 | 0.841388 | 0.263639 | 0 | 0.209302 | 0 | 0 | 0.04794 | 0.012031 | 0 | 0 | 0 | 0.00463 | 0 | 1 | 0.124031 | false | 0 | 0.069767 | 0.054264 | 0.341085 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbaf82c57c0e8e70a6ba6faeba1bc88a6aa96173 | 996 | py | Python | requires.py | lydaaa/fzutils | 5f775d046876e3ce35d0b1174b5a3db96e9d627e | [
"MIT"
] | 1 | 2018-08-04T13:55:03.000Z | 2018-08-04T13:55:03.000Z | requires.py | lydaaa/fzutils | 5f775d046876e3ce35d0b1174b5a3db96e9d627e | [
"MIT"
] | null | null | null | requires.py | lydaaa/fzutils | 5f775d046876e3ce35d0b1174b5a3db96e9d627e | [
"MIT"
] | null | null | null | # coding:utf-8
'''
@author = super_fazai
@File : requires.py
@Time : 2016/8/3 12:59
@connect : superonesfazai@gmail.com
'''
install_requires = [
'ipython',
'wheel',
'utils',
'db',
'greenlet==0.4.13',
'web.py==0.40.dev1',
'pytz',
'requests',
'selenium==3.8.0', # 3.8.1及其以上版... | 16.6 | 53 | 0.491968 | 93 | 996 | 5.236559 | 0.860215 | 0.008214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044993 | 0.308233 | 996 | 60 | 54 | 16.6 | 0.661829 | 0.179719 | 0 | 0 | 0 | 0 | 0.447891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbafb8e5a5c72fd3abd02eb1cca23ac263bc48ce | 2,433 | py | Python | m15_dos/dos.py | venkatarjun/Python3 | 606adf8588a74a53d592e62e07e81a5a1530b993 | [
"MIT"
] | 80 | 2020-11-14T19:19:27.000Z | 2022-03-10T17:43:17.000Z | m15_dos/dos.py | nerbertb/python-52-weeks | 55add5d75d1aabed4c59d445e1d1b773ede047b0 | [
"MIT"
] | 10 | 2020-11-24T06:19:45.000Z | 2022-02-27T23:53:28.000Z | m15_dos/dos.py | nerbertb/python-52-weeks | 55add5d75d1aabed4c59d445e1d1b773ede047b0 | [
"MIT"
] | 58 | 2020-11-13T18:35:22.000Z | 2022-03-28T06:40:08.000Z | import subprocess
import requests
import argparse
from concurrent.futures import ThreadPoolExecutor
from time import sleep
from datetime import datetime
ICMP_ATTACK = "ICMP"
HTTP_ATTACK = "HTTP"
valid_attacks = {HTTP_ATTACK, ICMP_ATTACK}
parser = argparse.ArgumentParser(description="DoS HTTP")
parser.add_argument('-P... | 27.337079 | 102 | 0.630908 | 300 | 2,433 | 4.996667 | 0.386667 | 0.044029 | 0.045364 | 0.045364 | 0.168112 | 0.168112 | 0.168112 | 0.082722 | 0.040027 | 0.040027 | 0 | 0.009651 | 0.233457 | 2,433 | 88 | 103 | 27.647727 | 0.794102 | 0.011097 | 0 | 0.213115 | 0 | 0.016393 | 0.238769 | 0.052413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.098361 | 0 | 0.163934 | 0.131148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbb02044e102ff75841402e288f20f24bd0e7921 | 3,444 | py | Python | maestro/backends/django/contrib/signals.py | estudio89/maestro-python | 331079cb3f0c10de2e19210cbade793544510f33 | [
"BSD-3-Clause"
] | null | null | null | maestro/backends/django/contrib/signals.py | estudio89/maestro-python | 331079cb3f0c10de2e19210cbade793544510f33 | [
"BSD-3-Clause"
] | null | null | null | maestro/backends/django/contrib/signals.py | estudio89/maestro-python | 331079cb3f0c10de2e19210cbade793544510f33 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import apps
from django.db import models
from django.db.models.signals import post_save, pre_delete
from typing import Type, Optional, List, cast, TYPE_CHECKING
from maestro.backends.django.settings import maestro_settings
from maestro.backends.django.contrib.factory import create_django_data_store
fro... | 30.210526 | 86 | 0.702962 | 418 | 3,444 | 5.45933 | 0.210526 | 0.039439 | 0.033304 | 0.043821 | 0.539001 | 0.489045 | 0.456617 | 0.456617 | 0.416301 | 0.416301 | 0 | 0 | 0.196574 | 3,444 | 113 | 87 | 30.477876 | 0.82472 | 0 | 0 | 0.344086 | 0 | 0 | 0.074042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.11828 | 0.010753 | 0.236559 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbb4a7b40915f984e1d6c4fb86487617ba753bc3 | 2,421 | py | Python | Scripts/ReduceFragments.py | mike72353/FragFeatureNet | ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930 | [
"BSD-3-Clause"
] | 1 | 2021-10-13T11:49:37.000Z | 2021-10-13T11:49:37.000Z | Scripts/ReduceFragments.py | mike72353/FragFeatureNet | ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930 | [
"BSD-3-Clause"
] | null | null | null | Scripts/ReduceFragments.py | mike72353/FragFeatureNet | ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T04:42:20.000Z | 2021-09-09T04:42:20.000Z | """
Remove Fragments not in Knowledgebase
"""
__author__ = "Michael Suarez"
__email__ = "masv@connect.ust.hk"
__copyright__ = "Copyright 2019, Hong Kong University of Science and Technology"
__license__ = "3-clause BSD"
from argparse import ArgumentParser
import numpy as np
import pickle
parser = ArgumentParser(desc... | 38.428571 | 142 | 0.687732 | 340 | 2,421 | 4.808824 | 0.388235 | 0.012232 | 0.009174 | 0.085627 | 0.268502 | 0.225688 | 0.225688 | 0.166972 | 0.091743 | 0.091743 | 0 | 0.014983 | 0.145394 | 2,421 | 62 | 143 | 39.048387 | 0.775254 | 0.12185 | 0 | 0 | 0 | 0 | 0.186377 | 0.084674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbb4ba3a72efae417ef662fbf9ea83724f57fdc1 | 11,352 | py | Python | client/core/tests/billing_tests.py | vbohinc/CommunityCellularManager | ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c | [
"BSD-3-Clause"
] | null | null | null | client/core/tests/billing_tests.py | vbohinc/CommunityCellularManager | ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c | [
"BSD-3-Clause"
] | 3 | 2021-03-20T00:02:37.000Z | 2022-02-11T03:46:59.000Z | client/core/tests/billing_tests.py | vbohinc/CommunityCellularManager | ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c | [
"BSD-3-Clause"
] | null | null | null | """Tests for core.billing.
Run this test from the project root
$ nosetests core.tests.billing_tests
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of ... | 38.481356 | 79 | 0.587738 | 1,338 | 11,352 | 4.703288 | 0.189088 | 0.06102 | 0.05085 | 0.060385 | 0.574289 | 0.457969 | 0.388527 | 0.332751 | 0.290958 | 0.267917 | 0 | 0.047747 | 0.313689 | 11,352 | 294 | 80 | 38.612245 | 0.759979 | 0.177149 | 0 | 0.271429 | 0 | 0 | 0.179624 | 0.05654 | 0 | 0 | 0 | 0 | 0.090476 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.185714 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbba66cc16504421bbf294d9cd7ab892cc735e8e | 4,880 | py | Python | apps/greencheck/forms.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | apps/greencheck/forms.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | apps/greencheck/forms.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.forms import ModelForm
from django.contrib.auth import get_user_model
from django.core.exceptions import ValidationError
from .choices import ActionChoice
from .choices import StatusApproval
from .models import GreencheckIp
from .models import GreencheckIpApprove
from .models impor... | 30.886076 | 85 | 0.608811 | 509 | 4,880 | 5.711198 | 0.269155 | 0.078431 | 0.028896 | 0.023392 | 0.280358 | 0.21431 | 0.184727 | 0.094255 | 0.094255 | 0.094255 | 0 | 0 | 0.317623 | 4,880 | 157 | 86 | 31.082803 | 0.872973 | 0.127049 | 0 | 0.317757 | 0 | 0 | 0.050181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056075 | false | 0 | 0.084112 | 0 | 0.327103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbbc25c0d987a2badd4b10e9df8a681d25f102e8 | 23,904 | py | Python | ipamanager/entities.py | Tjev/freeipa-manager | 0d40e64d81a86d4312b4e22cd57dcaecf25d0801 | [
"BSD-3-Clause"
] | null | null | null | ipamanager/entities.py | Tjev/freeipa-manager | 0d40e64d81a86d4312b4e22cd57dcaecf25d0801 | [
"BSD-3-Clause"
] | null | null | null | ipamanager/entities.py | Tjev/freeipa-manager | 0d40e64d81a86d4312b4e22cd57dcaecf25d0801 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: BSD-3-Clause
# Copyright © 2017-2019, GoodData Corporation. All rights reserved.
"""
FreeIPA Manager - entity module
Object representations of the entities configured in FreeIPA.
"""
import os
import re
import voluptuous
import yaml
from abc imp... | 39.058824 | 79 | 0.616508 | 2,657 | 23,904 | 5.392548 | 0.164471 | 0.027638 | 0.023451 | 0.024567 | 0.382119 | 0.329146 | 0.25998 | 0.226549 | 0.196678 | 0.181044 | 0 | 0.001006 | 0.293047 | 23,904 | 611 | 80 | 39.12275 | 0.846796 | 0.255982 | 0 | 0.246032 | 0 | 0 | 0.104401 | 0.009874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100529 | false | 0 | 0.02381 | 0.021164 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbbe56b29123b2a0ee8c4986b892e3949b69a274 | 2,362 | py | Python | __main__.py | SHUcream00/MLBPitchVisual | a3092cef7cbd4e73f8d0010dd62811df6cc36cac | [
"MIT"
] | null | null | null | __main__.py | SHUcream00/MLBPitchVisual | a3092cef7cbd4e73f8d0010dd62811df6cc36cac | [
"MIT"
] | null | null | null | __main__.py | SHUcream00/MLBPitchVisual | a3092cef7cbd4e73f8d0010dd62811df6cc36cac | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def visualize(dataframe, balltype):
df = dataframe
#Filter by balltype
res = df[df["pitch_type"] == balltype]
#Group by results
groups = res.groupby("description")
for name, group in groups:
if name ==... | 37.492063 | 192 | 0.615157 | 336 | 2,362 | 4.142857 | 0.443452 | 0.030172 | 0.028736 | 0.028017 | 0.188218 | 0.188218 | 0.177443 | 0.12069 | 0.086207 | 0.086207 | 0 | 0.017507 | 0.201948 | 2,362 | 62 | 193 | 38.096774 | 0.720955 | 0.07155 | 0 | 0 | 0 | 0 | 0.286387 | 0.024023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.075 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbc0541470856937f6eef50be9d0887839277ab1 | 3,472 | py | Python | utils/ghost.py | JayJJChen/LoveXueXiQiangGuo | 648a38cd73d1eb7ed7267721f1a23c90afb0daee | [
"MIT"
] | 3 | 2019-04-16T07:52:20.000Z | 2021-08-16T03:07:14.000Z | utils/ghost.py | JayJJChen/LoveXueXiQiangGuo | 648a38cd73d1eb7ed7267721f1a23c90afb0daee | [
"MIT"
] | 1 | 2019-04-17T02:23:32.000Z | 2020-12-24T11:04:52.000Z | utils/ghost.py | JayJJChen/LoveXueXiQiangGuo | 648a38cd73d1eb7ed7267721f1a23c90afb0daee | [
"MIT"
] | 2 | 2019-04-17T04:00:55.000Z | 2019-09-18T00:57:35.000Z | import os
import time
from utils.eye import Eye
from utils.finger import Finger
class Ghost:
"""class to navigate the app, with Eye and Finger"""
def __init__(self, adb_path, temp_path, sleep_sec=2):
self.eye = Eye(adb_path, temp_path)
self.finger = Finger(adb_path, sleep_sec=sleep_sec)
... | 30.191304 | 97 | 0.563652 | 484 | 3,472 | 3.855372 | 0.254132 | 0.037513 | 0.041265 | 0.036442 | 0.383708 | 0.326902 | 0.259378 | 0.229368 | 0.192926 | 0.192926 | 0 | 0.028657 | 0.326613 | 3,472 | 114 | 98 | 30.45614 | 0.769461 | 0.128168 | 0 | 0.337662 | 0 | 0 | 0.058276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168831 | false | 0 | 0.051948 | 0 | 0.298701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbc489c4f1e6739cd6d3b2e54cc4268da59045a7 | 336 | py | Python | quran_text/urls.py | Quran-Tafseer/tafseer_api | 49eede15a6e50812a4bab1e0e1e38069fcb0da4d | [
"MIT"
] | 16 | 2019-03-02T13:08:59.000Z | 2022-02-26T17:26:09.000Z | quran_text/urls.py | EmadMokhtar/tafseer_api | abb2d53eb917f58db1e09f7d92180b0eb8001a40 | [
"MIT"
] | 45 | 2017-10-25T06:17:50.000Z | 2018-12-08T17:01:41.000Z | quran_text/urls.py | Quran-Tafseer/tafseer_api | 49eede15a6e50812a4bab1e0e1e38069fcb0da4d | [
"MIT"
] | 6 | 2019-02-09T03:57:09.000Z | 2021-12-29T02:54:29.000Z | from django.urls import path
from . import views
urlpatterns = [
path('',
view=views.SuraListView.as_view(), name='sura-list'),
path('<int:sura_num>/<int:number>/',
view=views.AyahTextView.as_view(), name='ayah-detail'),
path('<int:sura_num>/<int:number>',
view=views.AyahTextVie... | 25.846154 | 64 | 0.630952 | 43 | 336 | 4.813953 | 0.44186 | 0.130435 | 0.096618 | 0.135266 | 0.483092 | 0.483092 | 0.483092 | 0.483092 | 0.483092 | 0.483092 | 0 | 0 | 0.181548 | 336 | 12 | 65 | 28 | 0.752727 | 0 | 0 | 0 | 0 | 0 | 0.223214 | 0.16369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbc6237f7856e6445933721e9b53e17ec980bef0 | 8,205 | py | Python | main.py | PotentialParadox/PyReparm | 70062e351eebacb9c6cb3dc0262e97256c52be3d | [
"Apache-2.0"
] | null | null | null | main.py | PotentialParadox/PyReparm | 70062e351eebacb9c6cb3dc0262e97256c52be3d | [
"Apache-2.0"
] | null | null | null | main.py | PotentialParadox/PyReparm | 70062e351eebacb9c6cb3dc0262e97256c52be3d | [
"Apache-2.0"
] | null | null | null | import random
from evaluation import Evaluator
from generator import generator
from mutate import mutateset
from deap import base
from deap import creator
from deap import tools
from parameter_group import ParameterGroup
import gaussian_output
from analysis import Analysis
from gaussian_input import GaussianInput
from ... | 36.145374 | 92 | 0.584156 | 905 | 8,205 | 5.140331 | 0.259669 | 0.081685 | 0.045142 | 0.045142 | 0.11221 | 0.061049 | 0.061049 | 0.037403 | 0.022356 | 0.022356 | 0 | 0.006928 | 0.155637 | 8,205 | 226 | 93 | 36.30531 | 0.66455 | 0.271176 | 0 | 0.110092 | 0 | 0 | 0.065442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.211009 | 0 | 0.211009 | 0.055046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbc6b99c48a68e88a0554cb932a77dac52c1e5c0 | 1,460 | py | Python | repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 3 | 2020-03-03T13:21:44.000Z | 2021-07-21T09:53:31.000Z | repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | null | null | null | repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 2 | 2020-04-01T22:11:12.000Z | 2020-05-07T23:54:52.000Z | # -*- coding: utf-8 -*-
import re,urlparse,cookielib,os,urllib
from liveresolver.modules import client,recaptcha_v2,control,constants, decryptionUtils
from liveresolver.modules.log_utils import log
cookieFile = os.path.join(control.dataPath, 'finecastcookie.lwp')
def resolve(url):
#try:
try:
... | 30.416667 | 87 | 0.619178 | 171 | 1,460 | 5.239766 | 0.502924 | 0.030134 | 0.051339 | 0.051339 | 0.087054 | 0.087054 | 0.087054 | 0 | 0 | 0 | 0 | 0.021016 | 0.217808 | 1,460 | 48 | 88 | 30.416667 | 0.763573 | 0.031507 | 0 | 0.258065 | 0 | 0.032258 | 0.139815 | 0.031228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbc7c8fe7bece88307002636b27bacde286985d2 | 3,520 | py | Python | app.py | pizzapanther/google-actions-python-example | 40d13fc1821e1e11f15cc7413571cb5bd6327024 | [
"MIT"
] | 9 | 2017-11-17T07:09:08.000Z | 2020-07-03T13:32:16.000Z | app.py | pizzapanther/google-actions-python-example | 40d13fc1821e1e11f15cc7413571cb5bd6327024 | [
"MIT"
] | 2 | 2019-08-10T05:49:47.000Z | 2021-04-30T20:51:40.000Z | app.py | pizzapanther/google-actions-python-example | 40d13fc1821e1e11f15cc7413571cb5bd6327024 | [
"MIT"
] | 5 | 2018-05-04T08:05:55.000Z | 2021-08-25T05:49:18.000Z | #!/usr/bin/env python
import os
import json
import tornado.ioloop
import tornado.log
import tornado.web
from google.oauth2 import id_token
from google.auth.transport import requests as google_requests
import jwt
import requests
API_KEY = os.environ.get('OPEN_WEATHER_MAP_KEY', None)
PROJECT_ID = os.environ.get('PRO... | 25.693431 | 98 | 0.563352 | 368 | 3,520 | 5.263587 | 0.391304 | 0.021683 | 0.026846 | 0.043366 | 0.247806 | 0.247806 | 0.247806 | 0.247806 | 0.20857 | 0.121838 | 0 | 0.011722 | 0.297159 | 3,520 | 136 | 99 | 25.882353 | 0.771221 | 0.023864 | 0 | 0.294643 | 0 | 0 | 0.224585 | 0.016312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.080357 | 0.008929 | 0.142857 | 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 |
dbc99a75d68d09d60f840eae7b285af4fedbeeae | 2,988 | py | Python | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2018-07-23T08:59:24.000Z | 2018-07-23T08:59:24.000Z | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2018-11-29T14:46:42.000Z | 2018-11-29T14:46:42.000Z | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2018-08-28T14:36:47.000Z | 2018-08-28T14:36:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 44.597015 | 81 | 0.662316 | 309 | 2,988 | 6.249191 | 0.433657 | 0.029001 | 0.072501 | 0.029001 | 0.047644 | 0.047644 | 0.047644 | 0 | 0 | 0 | 0 | 0.000405 | 0.174364 | 2,988 | 66 | 82 | 45.272727 | 0.782327 | 0.593039 | 0 | 0 | 0 | 0 | 0.305657 | 0.060219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbca2b427044c8866cf81d44e473638aa489abca | 274 | py | Python | ia870/iagradm.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 5 | 2018-10-15T12:02:03.000Z | 2022-02-11T12:47:12.000Z | ia870/iagradm.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 1 | 2018-10-15T12:04:36.000Z | 2019-01-25T12:04:35.000Z | ia870/iagradm.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 4 | 2019-01-25T11:13:48.000Z | 2020-12-20T01:42:33.000Z | # -*- encoding: utf-8 -*-
# Module iagradm
def iagradm(f, Bdil=None, Bero=None):
from ia870 import iasubm,iadil,iaero,iasecross
if Bdil is None: Bdil = iasecross()
if Bero is None: Bero = iasecross()
y = iasubm( iadil(f,Bdil),iaero(f,Bero))
return y
| 21.076923 | 50 | 0.642336 | 41 | 274 | 4.292683 | 0.512195 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.218978 | 274 | 12 | 51 | 22.833333 | 0.803738 | 0.138686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbcc6f4ccb0dabce5252e1dd4108228b2c863f99 | 721 | py | Python | web/web-lemonthinker/src/app/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | 2 | 2021-08-09T17:08:12.000Z | 2021-08-09T17:08:17.000Z | web/web-lemonthinker/src/app/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | web/web-lemonthinker/src/app/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | 1 | 2021-10-09T16:51:56.000Z | 2021-10-09T16:51:56.000Z | from flask import Flask, request, redirect, url_for
import os
import random
import string
import time # lemonthink
clean = time.time()
app = Flask(__name__)
chars = list(string.ascii_letters + string.digits)
@app.route('/')
def main():
return open("index.html").read()
@app.route('/generate', methods=['POST'])
de... | 28.84 | 79 | 0.653259 | 96 | 721 | 4.833333 | 0.572917 | 0.051724 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013267 | 0.163662 | 721 | 25 | 79 | 28.84 | 0.756219 | 0.01387 | 0 | 0.090909 | 0 | 0 | 0.138028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0.045455 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbccbf08a5c6a38fe09196877c8bb3f8a56251c4 | 816 | py | Python | aprendizado/codewars/descending_order.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/codewars/descending_order.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/codewars/descending_order.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | # Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. Essentially, rearrange the digits to create the highest possible number.
# Função que recebe um número inteiro (não negativo) como argumento e o retorna com os dígitos em ordem des... | 38.857143 | 211 | 0.734069 | 127 | 816 | 4.645669 | 0.622047 | 0.047458 | 0.030508 | 0.023729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.191176 | 816 | 20 | 212 | 40.8 | 0.887879 | 0.582108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 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 |
dbd1044b9a9e2ac21f72f6855560f0e23688f3f9 | 8,025 | py | Python | docs/conf.py | urm8/django-translations | e8f66710af9433044937b75c061e1988add398a5 | [
"BSD-3-Clause"
] | 100 | 2018-11-20T19:30:49.000Z | 2022-03-10T07:46:27.000Z | docs/conf.py | urm8/django-translations | e8f66710af9433044937b75c061e1988add398a5 | [
"BSD-3-Clause"
] | 30 | 2018-11-27T19:53:53.000Z | 2022-02-04T14:56:52.000Z | docs/conf.py | urm8/django-translations | e8f66710af9433044937b75c061e1988add398a5 | [
"BSD-3-Clause"
] | 25 | 2019-05-30T13:41:47.000Z | 2022-03-25T04:28:17.000Z | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | 27.389078 | 79 | 0.642492 | 947 | 8,025 | 5.372756 | 0.370644 | 0.015723 | 0.005503 | 0.005896 | 0.186124 | 0.129127 | 0.112421 | 0.112421 | 0.096698 | 0.082547 | 0 | 0.002711 | 0.172586 | 8,025 | 292 | 80 | 27.482877 | 0.763554 | 0.530841 | 0 | 0.152542 | 0 | 0 | 0.536845 | 0.148199 | 0 | 0 | 0 | 0.003425 | 0 | 1 | 0 | false | 0 | 0.110169 | 0 | 0.110169 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd2339bf7055960ea772c1eecf31ab430a3ae71 | 5,297 | py | Python | src/waldur_core/core/tests/helpers.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_core/core/tests/helpers.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_core/core/tests/helpers.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | import copy
from django.conf import settings
from django.test.utils import override_settings
from rest_framework import status, test
class PermissionsTest(test.APITransactionTestCase):
"""
Abstract class for permissions tests.
Methods `get_urls_configs`, `get_users_with_permission`,
`get_users_witho... | 37.302817 | 106 | 0.605815 | 596 | 5,297 | 5.20302 | 0.233221 | 0.028378 | 0.034827 | 0.028378 | 0.403096 | 0.320542 | 0.268301 | 0.242825 | 0.20058 | 0.112222 | 0 | 0.004093 | 0.308099 | 5,297 | 141 | 107 | 37.567376 | 0.842019 | 0.343968 | 0 | 0.163934 | 0 | 0.032787 | 0.085113 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 1 | 0.131148 | false | 0.016393 | 0.065574 | 0.016393 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd3d31bd1a8e525699ace640bf7abf893c326e1 | 1,121 | py | Python | data/benchmark.py | Gummary/denet | 00d814d75eea54d5b259fce128ae7b625a900140 | [
"MIT"
] | 343 | 2020-04-02T06:22:18.000Z | 2022-03-25T12:51:55.000Z | data/benchmark.py | sanglee325/cutblur | 1589718b27973bec41289bbd5ad5a71ebe2e9925 | [
"MIT"
] | 26 | 2020-04-30T03:23:15.000Z | 2022-02-20T07:31:42.000Z | data/benchmark.py | sanglee325/cutblur | 1589718b27973bec41289bbd5ad5a71ebe2e9925 | [
"MIT"
] | 66 | 2020-04-02T06:55:37.000Z | 2022-03-10T15:44:19.000Z | """
CutBlur
Copyright 2020-present NAVER corp.
MIT license
"""
import os
import glob
import data
class BenchmarkSR(data.BaseDataset):
def __init__(self, phase, opt):
root = opt.dataset_root
self.scale = opt.scale
dir_HQ, dir_LQ = self.get_subdir()
self.HQ_paths = sorted(glob.glob(o... | 22.877551 | 78 | 0.611954 | 152 | 1,121 | 4.203947 | 0.276316 | 0.062598 | 0.065728 | 0.062598 | 0.571205 | 0.516432 | 0.450704 | 0.344288 | 0.344288 | 0.231612 | 0 | 0.00479 | 0.255129 | 1,121 | 48 | 79 | 23.354167 | 0.760479 | 0.048171 | 0 | 0.451613 | 0 | 0 | 0.021719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.096774 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd4271941c1c0d5952f6d9d574008a25b255d3d | 917 | py | Python | pytglib/api/types/update_chat_is_pinned.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/update_chat_is_pinned.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/update_chat_is_pinned.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class UpdateChatIsPinned(Object):
"""
A chat was pinned or unpinned
Attributes:
ID (:obj:`str`): ``UpdateChatIsPinned``
Args:
chat_id (:obj:`int`):
Chat identifier
is_pinned (:obj:`bool`):
New value of is_pinned
... | 22.365854 | 60 | 0.563795 | 106 | 917 | 4.698113 | 0.386792 | 0.128514 | 0.104418 | 0.084337 | 0.076305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320611 | 917 | 40 | 61 | 22.925 | 0.799358 | 0.368593 | 0 | 0 | 0 | 0 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd513568e3fe748df68592f5efb0230845ec0a5 | 990 | py | Python | setup.py | dylancrockett/iot.io | 472767186a5500e05b02d821f32e1208f3652418 | [
"MIT"
] | null | null | null | setup.py | dylancrockett/iot.io | 472767186a5500e05b02d821f32e1208f3652418 | [
"MIT"
] | null | null | null | setup.py | dylancrockett/iot.io | 472767186a5500e05b02d821f32e1208f3652418 | [
"MIT"
] | null | null | null | from setuptools import setup
import iotio
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="iot.io",
version=iotio.__version__,
packages=["iotio"],
author="Dylan Crockett",
author_email="dylanrcrockett@gmail.com",
license="MIT",
description="A management API ... | 28.285714 | 98 | 0.639394 | 106 | 990 | 5.839623 | 0.669811 | 0.096931 | 0.061389 | 0.096931 | 0.103393 | 0.103393 | 0 | 0 | 0 | 0 | 0 | 0.003881 | 0.219192 | 990 | 34 | 99 | 29.117647 | 0.796895 | 0 | 0 | 0.0625 | 0 | 0 | 0.441414 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd57373c1091216c9a267bad2a40451008902b2 | 1,820 | py | Python | trellominer/api/trello.py | xnoder/trellominer | 629d8f916486aa94a5bfa3a9497c36316c2864ed | [
"MIT"
] | null | null | null | trellominer/api/trello.py | xnoder/trellominer | 629d8f916486aa94a5bfa3a9497c36316c2864ed | [
"MIT"
] | null | null | null | trellominer/api/trello.py | xnoder/trellominer | 629d8f916486aa94a5bfa3a9497c36316c2864ed | [
"MIT"
] | null | null | null | import os
import requests
from trellominer.config import yaml
class HTTP(object):
def __init__(self):
self.config = yaml.read(os.getenv("TRELLO_CONFIG", default=os.path.join(os.path.expanduser('~'), ".trellominer.yaml")))
self.api_url = os.getenv("TRELLO_URL", default=self.config['api']['url'])... | 40.444444 | 165 | 0.644505 | 255 | 1,820 | 4.419608 | 0.239216 | 0.093168 | 0.074534 | 0.088731 | 0.341615 | 0.325643 | 0.325643 | 0.325643 | 0.233363 | 0.233363 | 0 | 0.010804 | 0.186264 | 1,820 | 44 | 166 | 41.363636 | 0.750169 | 0 | 0 | 0.30303 | 0 | 0.030303 | 0.231868 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd5cd5e6175ef560ba478a76fe061ded7bfc8d7 | 2,337 | py | Python | alexnet_guided_bp_vanilla.py | wezteoh/face_perception_thru_backprop | 449f78ce330876ff25fbcdf892023fd2ba86005c | [
"MIT"
] | null | null | null | alexnet_guided_bp_vanilla.py | wezteoh/face_perception_thru_backprop | 449f78ce330876ff25fbcdf892023fd2ba86005c | [
"MIT"
] | null | null | null | alexnet_guided_bp_vanilla.py | wezteoh/face_perception_thru_backprop | 449f78ce330876ff25fbcdf892023fd2ba86005c | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
import os
from scipy.io import savemat
from scipy.io import loadmat
from scipy.misc import imread
from scipy.misc import imsave
from alexnet_face_classifier import *
import matplotlib.pyplot as plt
plt.switch_backend('agg')
class backprop_graph:
def __init__(self, num_... | 37.095238 | 110 | 0.693624 | 360 | 2,337 | 4.330556 | 0.255556 | 0.085311 | 0.041052 | 0.051315 | 0.20077 | 0.20077 | 0.116742 | 0 | 0 | 0 | 0 | 0.031672 | 0.175867 | 2,337 | 62 | 111 | 37.693548 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.003432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd6ae222f06041fd60daf0b6a6b62ee66225c4f | 18,729 | py | Python | tests/test_sqlalchemy_registry.py | AferriDaniel/coaster | 3ffbc9d33c981284593445299aaee0c3cc0cdb0b | [
"BSD-2-Clause"
] | 48 | 2015-01-15T08:57:24.000Z | 2022-01-26T04:04:34.000Z | tests/test_sqlalchemy_registry.py | AferriDaniel/coaster | 3ffbc9d33c981284593445299aaee0c3cc0cdb0b | [
"BSD-2-Clause"
] | 169 | 2015-01-16T13:17:38.000Z | 2021-05-31T13:23:23.000Z | tests/test_sqlalchemy_registry.py | AferriDaniel/coaster | 3ffbc9d33c981284593445299aaee0c3cc0cdb0b | [
"BSD-2-Clause"
] | 17 | 2015-02-15T07:39:04.000Z | 2021-10-05T11:20:22.000Z | """Registry and RegistryMixin tests."""
from types import SimpleNamespace
import pytest
from coaster.db import db
from coaster.sqlalchemy import BaseMixin
from coaster.sqlalchemy.registry import Registry
# --- Fixtures -------------------------------------------------------------------------
@pytest.fixture()
def... | 33.148673 | 88 | 0.724171 | 2,008 | 18,729 | 6.539343 | 0.10757 | 0.070368 | 0.063057 | 0.038535 | 0.646028 | 0.587389 | 0.518849 | 0.467977 | 0.409717 | 0.374914 | 0 | 0.010394 | 0.183245 | 18,729 | 564 | 89 | 33.207447 | 0.848009 | 0.17545 | 0 | 0.543478 | 0 | 0 | 0.009265 | 0 | 0 | 0 | 0 | 0.001773 | 0.225543 | 1 | 0.105978 | false | 0.002717 | 0.013587 | 0.021739 | 0.244565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbd936c5bdf9f66abffeaa3d4ec25c893af108da | 4,239 | py | Python | api/controller/activity.py | DXCChina/pms | c779a69f25fb08101593c6ff0451debc0abce6e4 | [
"MIT"
] | 27 | 2017-11-06T06:58:30.000Z | 2021-04-23T02:47:23.000Z | api/controller/activity.py | DXCChina/pms | c779a69f25fb08101593c6ff0451debc0abce6e4 | [
"MIT"
] | 3 | 2017-12-08T02:55:42.000Z | 2019-06-04T15:23:03.000Z | api/controller/activity.py | DXCChina/pms | c779a69f25fb08101593c6ff0451debc0abce6e4 | [
"MIT"
] | 16 | 2017-10-12T03:06:39.000Z | 2020-12-24T09:00:49.000Z | # -*- coding: utf-8 -*-
'''活动管理接口'''
from flask import request
from model.db import database, Activity, ActivityMember, Demand, ActivityBase, ProjectMember, User
from model.role import identity
from flask_jwt_extended import (fresh_jwt_required)
def demand_activity_add(activity_id, data):
'''添加活动需求'''
for d... | 35.033058 | 98 | 0.599198 | 459 | 4,239 | 5.352941 | 0.169935 | 0.10582 | 0.08954 | 0.039072 | 0.524217 | 0.460317 | 0.319088 | 0.293854 | 0.258038 | 0.258038 | 0 | 0.000655 | 0.279547 | 4,239 | 120 | 99 | 35.325 | 0.803864 | 0.082095 | 0 | 0.3 | 0 | 0 | 0.071466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.044444 | 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 |
dbd96b797fa91e96b8a7f838f8fb68571c587fa0 | 326 | py | Python | math/9. Palindrome number.py | Rage-ops/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | 1 | 2020-11-23T13:52:11.000Z | 2020-11-23T13:52:11.000Z | math/9. Palindrome number.py | harsha-sam/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | null | null | null | math/9. Palindrome number.py | harsha-sam/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | null | null | null | # Easy
# https://leetcode.com/problems/palindrome-number/
# Time Complexity: O(log(x) to base 10)
# Space Complexity: O(1)
class Solution:
def isPalindrome(self, x: int) -> bool:
temp = x
rev = 0
while temp > 0:
rev = rev * 10 + temp % 10
temp //= 10
return re... | 27.166667 | 50 | 0.542945 | 44 | 326 | 4.022727 | 0.659091 | 0.124294 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050459 | 0.331288 | 326 | 12 | 51 | 27.166667 | 0.761468 | 0.349693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbdc8acd947df0cf5d903b9fd18f947cd84ecb24 | 4,762 | py | Python | prtg/client.py | kevinschoon/prtg-py | 714e0750606e55b2cd4c7dff8770d94057fa932b | [
"MIT"
] | null | null | null | prtg/client.py | kevinschoon/prtg-py | 714e0750606e55b2cd4c7dff8770d94057fa932b | [
"MIT"
] | null | null | null | prtg/client.py | kevinschoon/prtg-py | 714e0750606e55b2cd4c7dff8770d94057fa932b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Python library for Paessler's PRTG (http://www.paessler.com/)
"""
import logging
import xml.etree.ElementTree as Et
from urllib import request
from prtg.cache import Cache
from prtg.models import Sensor, Device, Status, PrtgObject
from prtg.exceptions import BadTarget, UnknownResponse
cl... | 32.616438 | 145 | 0.558169 | 518 | 4,762 | 5.063707 | 0.295367 | 0.020587 | 0.010294 | 0.019443 | 0.035837 | 0.035837 | 0.035837 | 0.035837 | 0.035837 | 0.035837 | 0 | 0.00094 | 0.330113 | 4,762 | 145 | 146 | 32.841379 | 0.821317 | 0.059219 | 0 | 0.166667 | 0 | 0 | 0.040552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0.030303 | 0.090909 | 0 | 0.287879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbdd97337631bf234182cdf6ceb595a8b38fcc53 | 359 | py | Python | pyunitwizard/_private_tools/parsers.py | uibcdf/pyunitwizard | 54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7 | [
"MIT"
] | null | null | null | pyunitwizard/_private_tools/parsers.py | uibcdf/pyunitwizard | 54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7 | [
"MIT"
] | null | null | null | pyunitwizard/_private_tools/parsers.py | uibcdf/pyunitwizard | 54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7 | [
"MIT"
] | null | null | null | parsers = ['openmm.unit', 'pint', 'unyt']
def digest_parser(parser: str) -> str:
""" Check if parser is correct."""
if parser is not None:
if parser.lower() in parsers:
return parser.lower()
else:
raise ValueError
else:
from pyunitwizard.kernel import default... | 25.642857 | 54 | 0.601671 | 42 | 359 | 5.071429 | 0.619048 | 0.112676 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29805 | 359 | 13 | 55 | 27.615385 | 0.845238 | 0.075209 | 0 | 0.2 | 0 | 0 | 0.058642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 |
dbddb2e414eaaea37bf5ee700d9d3c21f697c101 | 6,606 | py | Python | metric_wsd/utils/data_utils.py | bartonlin/MWSD | 70ad446ee7f00a11988acb290270e32d8e6af925 | [
"MIT"
] | 4 | 2021-04-27T16:28:51.000Z | 2021-08-30T11:10:28.000Z | metric_wsd/utils/data_utils.py | bartonlin/MWSD | 70ad446ee7f00a11988acb290270e32d8e6af925 | [
"MIT"
] | null | null | null | metric_wsd/utils/data_utils.py | bartonlin/MWSD | 70ad446ee7f00a11988acb290270e32d8e6af925 | [
"MIT"
] | 2 | 2021-08-25T14:29:45.000Z | 2022-02-12T02:09:45.000Z | '''
Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Code taken from: https://github.com/facebookresearch/wsd-biencoders/blob/master/wsd_models/util.py
'''
import os
import re
impo... | 29.891403 | 98 | 0.673479 | 990 | 6,606 | 4.369697 | 0.261616 | 0.020342 | 0.011558 | 0.014794 | 0.251271 | 0.111188 | 0.092233 | 0.092233 | 0.085761 | 0.085761 | 0 | 0.011389 | 0.189222 | 6,606 | 220 | 99 | 30.027273 | 0.796303 | 0.189979 | 0 | 0.2375 | 0 | 0 | 0.079526 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.0625 | false | 0 | 0.0375 | 0 | 0.1625 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9155e8339948407989efd32f44f9c2682f1c678e | 931 | py | Python | groclient/constants.py | eric-gro/api-client | 0ca73422c25b5065907d068a44b72bdc43fea79f | [
"MIT"
] | 18 | 2019-01-10T21:06:17.000Z | 2022-03-15T06:22:18.000Z | groclient/constants.py | eric-gro/api-client | 0ca73422c25b5065907d068a44b72bdc43fea79f | [
"MIT"
] | 138 | 2019-01-16T15:35:35.000Z | 2022-03-23T13:05:03.000Z | groclient/constants.py | eric-gro/api-client | 0ca73422c25b5065907d068a44b72bdc43fea79f | [
"MIT"
] | 24 | 2019-02-22T19:24:54.000Z | 2022-03-15T10:17:37.000Z | """Constants about the Gro ontology that can be imported and re-used anywhere."""
REGION_LEVELS = {
'world': 1,
'continent': 2,
'country': 3,
'province': 4, # Equivalent to state in the United States
'district': 5, # Equivalent to county in the United States
'city': 6,
'market': 7,
'o... | 22.707317 | 88 | 0.628357 | 115 | 931 | 4.782609 | 0.582609 | 0.058182 | 0.04 | 0.061818 | 0.083636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.216971 | 931 | 40 | 89 | 23.275 | 0.742112 | 0.170784 | 0 | 0 | 0 | 0 | 0.415686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9156c4aa90ea0469b8acd15340e3ebcae1eab123 | 1,535 | py | Python | asv_bench/benchmarks/tslibs/period.py | CitizenB/pandas | ee1efb6d923a2c3e5a912efe20a336179614993d | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 6 | 2020-09-10T15:03:25.000Z | 2021-04-01T22:48:33.000Z | asv_bench/benchmarks/tslibs/period.py | ivan-vasilev/pandas | 4071dde86e33434e1bee8304fa62074949f813cc | [
"BSD-3-Clause"
] | 7 | 2015-08-30T23:51:00.000Z | 2018-12-29T19:52:35.000Z | asv_bench/benchmarks/tslibs/period.py | ivan-vasilev/pandas | 4071dde86e33434e1bee8304fa62074949f813cc | [
"BSD-3-Clause"
] | 5 | 2017-10-04T22:24:49.000Z | 2021-08-06T13:50:13.000Z | """
Period benchmarks that rely only on tslibs. See benchmarks.period for
Period benchmarks that rely on other parts fo pandas.
"""
from pandas import Period
from pandas.tseries.frequencies import to_offset
class PeriodProperties:
params = (
["M", "min"],
[
"year",
"mont... | 21.619718 | 70 | 0.536808 | 173 | 1,535 | 4.641619 | 0.381503 | 0.099626 | 0.054795 | 0.07472 | 0.117061 | 0.117061 | 0.089664 | 0.089664 | 0.089664 | 0.089664 | 0 | 0.023369 | 0.330945 | 1,535 | 70 | 71 | 21.928571 | 0.75852 | 0.080782 | 0 | 0.040816 | 0 | 0 | 0.119743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.040816 | 0 | 0.387755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
915bb507e25fc7cb08c5d136b971e88a2d706d9b | 1,934 | py | Python | tests/integration/test_infrastructure_persistence.py | othercodes/sample-todo-list-hexagonal-achitecture | a958c6906d8e777e837c8348c754b637b89a7031 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_infrastructure_persistence.py | othercodes/sample-todo-list-hexagonal-achitecture | a958c6906d8e777e837c8348c754b637b89a7031 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_infrastructure_persistence.py | othercodes/sample-todo-list-hexagonal-achitecture | a958c6906d8e777e837c8348c754b637b89a7031 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from complexheart.domain.criteria import Criteria
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.orm import sessionmaker
from to_do_list.tasks.domain.models import Task
from to_do_list.tasks.infrastructure.persistence.relational import RelationalT... | 27.628571 | 104 | 0.73061 | 231 | 1,934 | 5.909091 | 0.281385 | 0.046886 | 0.049817 | 0.067399 | 0.591941 | 0.567033 | 0.524542 | 0.524542 | 0.524542 | 0.524542 | 0 | 0.00496 | 0.165977 | 1,934 | 69 | 105 | 28.028986 | 0.84129 | 0 | 0 | 0.363636 | 0 | 0 | 0.044984 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.113636 | false | 0 | 0.159091 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
915c531ce1a9edc3c8480b0c6bf84bed9c0ec81f | 2,934 | py | Python | wagtail_jinja2/extensions.py | minervaproject/wagtail-jinja2-extensions | 708f2f873273312ead80d67c3eff0555f152d072 | [
"MIT"
] | 6 | 2015-09-25T15:33:17.000Z | 2021-11-17T23:25:52.000Z | wagtail_jinja2/extensions.py | minervaproject/wagtail-jinja2-extensions | 708f2f873273312ead80d67c3eff0555f152d072 | [
"MIT"
] | 1 | 2015-09-29T15:53:40.000Z | 2015-09-29T15:53:40.000Z | wagtail_jinja2/extensions.py | minervaproject/wagtail-jinja2-extensions | 708f2f873273312ead80d67c3eff0555f152d072 | [
"MIT"
] | null | null | null | from jinja2.ext import Extension
from jinja2 import nodes
from jinja2 import Markup
from wagtail.wagtailadmin.templatetags.wagtailuserbar import wagtailuserbar as original_wagtailuserbar
from wagtail.wagtailimages.models import Filter, SourceImageIOError
class WagtailUserBarExtension(Extension):
tags = set(['wag... | 40.75 | 113 | 0.65576 | 354 | 2,934 | 5.279661 | 0.378531 | 0.048154 | 0.069556 | 0.032103 | 0.122525 | 0.055645 | 0.055645 | 0.055645 | 0.055645 | 0.055645 | 0 | 0.002313 | 0.263122 | 2,934 | 71 | 114 | 41.323944 | 0.862165 | 0.224608 | 0 | 0.108696 | 0 | 0 | 0.026979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.108696 | 0.021739 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
915d76b7f2fcca50d25cf033042e2f1d7c43e461 | 14,694 | py | Python | nn_dataflow/tests/unit_test/test_network.py | Pingziwalk/nn_dataflow | 5ae8eeba4e243df6e9a69127073513a852a62d17 | [
"BSD-3-Clause"
] | 170 | 2017-02-28T01:33:11.000Z | 2022-03-12T09:56:47.000Z | nn_dataflow/tests/unit_test/test_network.py | Pingziwalk/nn_dataflow | 5ae8eeba4e243df6e9a69127073513a852a62d17 | [
"BSD-3-Clause"
] | 24 | 2017-09-18T20:14:51.000Z | 2022-01-23T06:43:28.000Z | nn_dataflow/tests/unit_test/test_network.py | Pingziwalk/nn_dataflow | 5ae8eeba4e243df6e9a69127073513a852a62d17 | [
"BSD-3-Clause"
] | 71 | 2017-02-07T17:36:17.000Z | 2022-03-26T00:45:00.000Z | """ $lic$
Copyright (C) 2016-2020 by Tsinghua University and The Board of Trustees of
Stanford University
This program is free software: you can redistribute it and/or modify it under
the terms of the Modified BSD-3 License as published by the Open Source
Initiative.
This program is distributed in the hope that it wi... | 38.365535 | 79 | 0.598884 | 1,793 | 14,694 | 4.815393 | 0.104852 | 0.143966 | 0.063238 | 0.031619 | 0.690294 | 0.555594 | 0.485986 | 0.452861 | 0.35754 | 0.329743 | 0 | 0.054428 | 0.242276 | 14,694 | 382 | 80 | 38.465969 | 0.721035 | 0.101538 | 0 | 0.42126 | 0 | 0 | 0.062774 | 0 | 0 | 0 | 0 | 0 | 0.366142 | 1 | 0.133858 | false | 0 | 0.011811 | 0 | 0.149606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
915df7659ad33f08dc46ec91edcb67d2d6a2b9af | 365 | py | Python | apps/division/urls.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | apps/division/urls.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | apps/division/urls.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .views import DivisionListCreateAPIView, DivisionRetrieveUpdateDestroyAPIView, MainDivisionListAPIView
urlpatterns = [
path('division/', DivisionListCreateAPIView.as_view()),
path('division/<division_pk>', DivisionRetrieveUpdateDestroyAPIView.as_view()),
path('division/m... | 33.181818 | 107 | 0.794521 | 30 | 365 | 9.533333 | 0.5 | 0.125874 | 0.06993 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 365 | 10 | 108 | 36.5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 0.060274 | 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 |
915ff60df252f62c3f259d30deba52d17fbf124c | 9,077 | py | Python | sympy/solvers/tests/test_pde.py | nashalex/sympy | aec3e6512be46f0558f5dbcf2b4d723496c91649 | [
"BSD-3-Clause"
] | 8,323 | 2015-01-02T15:51:43.000Z | 2022-03-31T13:13:19.000Z | sympy/solvers/tests/test_pde.py | nashalex/sympy | aec3e6512be46f0558f5dbcf2b4d723496c91649 | [
"BSD-3-Clause"
] | 15,102 | 2015-01-01T01:33:17.000Z | 2022-03-31T22:53:13.000Z | sympy/solvers/tests/test_pde.py | nashalex/sympy | aec3e6512be46f0558f5dbcf2b4d723496c91649 | [
"BSD-3-Clause"
] | 4,490 | 2015-01-01T17:48:07.000Z | 2022-03-31T17:24:05.000Z | from sympy import (Derivative as D, Eq, exp, sin,
Function, Symbol, symbols, cos, log)
from sympy.core import S
from sympy.solvers.pde import (pde_separate, pde_separate_add, pde_separate_mul,
pdsolve, classify_pde, checkpdesol)
from sympy.testing.pytest import raises
a, b, c, x, y = symbols('a b c x y')
def... | 38.299578 | 84 | 0.537512 | 1,794 | 9,077 | 2.634894 | 0.074136 | 0.041464 | 0.041252 | 0.038502 | 0.660038 | 0.614132 | 0.545166 | 0.471123 | 0.453353 | 0.416966 | 0 | 0.030389 | 0.220557 | 9,077 | 236 | 85 | 38.461864 | 0.637739 | 0.036245 | 0 | 0.391304 | 0 | 0 | 0.093407 | 0.080357 | 0 | 0 | 0 | 0 | 0.282609 | 1 | 0.059783 | false | 0 | 0.021739 | 0 | 0.081522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91613dad90fa3ec0c081f265b28f59e30cdfc17e | 6,376 | py | Python | GCN/GCN.py | EasternJournalist/learn-deep-learning | cc424713ffc57b8a796ebd81354a1b887f9c5092 | [
"MIT"
] | 6 | 2021-08-18T03:29:12.000Z | 2022-03-22T13:15:35.000Z | GCN/GCN.py | EasternJournalist/learn-deep-learning | cc424713ffc57b8a796ebd81354a1b887f9c5092 | [
"MIT"
] | null | null | null | GCN/GCN.py | EasternJournalist/learn-deep-learning | cc424713ffc57b8a796ebd81354a1b887f9c5092 | [
"MIT"
] | 2 | 2022-01-06T12:25:02.000Z | 2022-03-22T13:15:36.000Z | import torch
import torch.nn.functional as F
import pandas as pd
import numpy as np
from torch_geometric.data import Data
from torch_geometric.nn import GCNConv, PairNorm
from torch_geometric.utils.undirected import to_undirected
import random
import matplotlib.pyplot as plt
data_name = 'citeseer' # 'cora' or 'ci... | 44.587413 | 134 | 0.674875 | 932 | 6,376 | 4.345494 | 0.187768 | 0.041481 | 0.062222 | 0.051358 | 0.377531 | 0.354815 | 0.318272 | 0.276543 | 0.276543 | 0.274074 | 0 | 0.01186 | 0.166876 | 6,376 | 143 | 135 | 44.587413 | 0.750565 | 0.015213 | 0 | 0.035714 | 0 | 0 | 0.201914 | 0.024402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.080357 | 0.008929 | 0.169643 | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9163007875867d67440a283e2e9737b0b98baef2 | 3,724 | py | Python | esg_leipzig_homepage_2015/views.py | ESG-Leipzig/Homepage-2015 | 6b77451881031dcb640d2e61ce862617d634f9ac | [
"MIT"
] | null | null | null | esg_leipzig_homepage_2015/views.py | ESG-Leipzig/Homepage-2015 | 6b77451881031dcb640d2e61ce862617d634f9ac | [
"MIT"
] | 4 | 2015-03-31T22:37:09.000Z | 2015-10-22T21:37:17.000Z | esg_leipzig_homepage_2015/views.py | ESG-Leipzig/Homepage-2015 | 6b77451881031dcb640d2e61ce862617d634f9ac | [
"MIT"
] | 3 | 2015-02-03T10:23:24.000Z | 2018-04-11T12:29:23.000Z | import datetime
import json
from django.conf import settings
from django.http import Http404
from django.utils import timezone
from django.views import generic
from .models import Event, FlatPage, News
class HomeView(generic.ListView):
"""
View for the first page called 'Home'.
"""
context_object_na... | 31.559322 | 78 | 0.603652 | 419 | 3,724 | 5.186158 | 0.295943 | 0.02485 | 0.038656 | 0.02347 | 0.178555 | 0.133456 | 0.090198 | 0.052462 | 0.052462 | 0.052462 | 0 | 0.004231 | 0.301826 | 3,724 | 117 | 79 | 31.82906 | 0.831538 | 0.153867 | 0 | 0.150685 | 0 | 0 | 0.049949 | 0.007136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.09589 | 0 | 0.383562 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91632bfaf2e874f47f67ae904c5dae1d1c06cb7a | 3,509 | py | Python | train.py | ronniechong/tensorflow-trainer | 79e58d224ce1e5ae687abee2bfd81deb49bd41dd | [
"MIT"
] | null | null | null | train.py | ronniechong/tensorflow-trainer | 79e58d224ce1e5ae687abee2bfd81deb49bd41dd | [
"MIT"
] | 6 | 2021-06-08T21:56:34.000Z | 2022-03-12T00:39:34.000Z | train.py | ronniechong/tensorflow-trainer | 79e58d224ce1e5ae687abee2bfd81deb49bd41dd | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
load_dotenv()
from flask import Flask, flash, request, redirect, url_for
from flask_ngrok import run_with_ngrok
from flask_cors import CORS
from werkzeug.utils import secure_filename
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.applications import vgg16
fro... | 29 | 121 | 0.654032 | 478 | 3,509 | 4.638075 | 0.32636 | 0.035183 | 0.024808 | 0.03834 | 0.331078 | 0.308525 | 0.308525 | 0.291385 | 0.291385 | 0.291385 | 0 | 0.022159 | 0.202622 | 3,509 | 121 | 122 | 29 | 0.770193 | 0.065261 | 0 | 0.319588 | 0 | 0 | 0.112741 | 0.013138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0 | 0.134021 | 0.020619 | 0.268041 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91633c0b686a90b166f71428baf166c3cd9fcb51 | 4,555 | py | Python | src/models/train_model.py | sandorfoldi/chess_positions_recognition | b051f5ba066876d54c435d96cf7e339dfc369b3b | [
"FTL"
] | null | null | null | src/models/train_model.py | sandorfoldi/chess_positions_recognition | b051f5ba066876d54c435d96cf7e339dfc369b3b | [
"FTL"
] | null | null | null | src/models/train_model.py | sandorfoldi/chess_positions_recognition | b051f5ba066876d54c435d96cf7e339dfc369b3b | [
"FTL"
] | 1 | 2022-01-08T20:26:08.000Z | 2022-01-08T20:26:08.000Z | import random
import matplotlib.pyplot as plt
import wandb
import hydra
import torch
import torch.utils.data as data_utils
from model import ChessPiecePredictor
from torch import nn, optim
from google.cloud import storage
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.datas... | 29.967105 | 100 | 0.636004 | 542 | 4,555 | 5.130996 | 0.273063 | 0.019417 | 0.01726 | 0.012226 | 0.187702 | 0.152463 | 0.118662 | 0.089896 | 0.035239 | 0.035239 | 0 | 0.011498 | 0.255324 | 4,555 | 151 | 101 | 30.165563 | 0.808373 | 0.013611 | 0 | 0.091743 | 0 | 0 | 0.108289 | 0.004679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0.110092 | 0 | 0.119266 | 0.06422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9164b76283b749a665c678ccd635362448fe685d | 10,817 | py | Python | dfn/tests/test_FractureNetworkThermal.py | richardhaslam/discrete-fracture-network | 2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f | [
"MIT"
] | 1 | 2021-06-01T17:38:15.000Z | 2021-06-01T17:38:15.000Z | dfn/tests/test_FractureNetworkThermal.py | richardhaslam/discrete-fracture-network | 2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f | [
"MIT"
] | null | null | null | dfn/tests/test_FractureNetworkThermal.py | richardhaslam/discrete-fracture-network | 2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f | [
"MIT"
] | null | null | null | import copy
import unittest
import networkx as nx
import numpy as np
from scipy.special import erf
from dfn import Fluid, FractureNetworkThermal
class TestFractureNetworkThermal(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestFractureNetworkThermal, self).__init__(*args, **kwargs)
... | 38.222615 | 79 | 0.547194 | 1,627 | 10,817 | 3.38783 | 0.119238 | 0.056604 | 0.016328 | 0.026125 | 0.49746 | 0.421081 | 0.393324 | 0.328374 | 0.312591 | 0.297714 | 0 | 0.101461 | 0.303874 | 10,817 | 282 | 80 | 38.358156 | 0.630544 | 0.102894 | 0 | 0.209945 | 0 | 0 | 0.013083 | 0 | 0 | 0 | 0 | 0 | 0.099448 | 1 | 0.066298 | false | 0 | 0.033149 | 0 | 0.121547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91674cee92c414668d806e044c2d5ffc326ce9fc | 10,775 | py | Python | dataapi/AWS/getawsdata.py | gusamarante/Quantequim | 3968d9965e8e2c3b5850f1852b56c485859a9c89 | [
"MIT"
] | 296 | 2018-10-19T21:00:53.000Z | 2022-03-29T21:50:55.000Z | dataapi/AWS/getawsdata.py | gusamarante/Quantequim | 3968d9965e8e2c3b5850f1852b56c485859a9c89 | [
"MIT"
] | 11 | 2019-06-18T11:43:35.000Z | 2021-11-14T21:39:20.000Z | dataapi/AWS/getawsdata.py | gusamarante/FinanceLab | 3968d9965e8e2c3b5850f1852b56c485859a9c89 | [
"MIT"
] | 102 | 2018-10-18T14:14:34.000Z | 2022-03-06T00:34:53.000Z | """
Author: Gustavo Amarante
"""
import numpy as np
import pandas as pd
from datetime import datetime
class TrackerFeeder(object):
"""
Feeder for the trackers of the FinanceHub database.
"""
def __init__(self, db_connect):
"""
Feeder construction
:param db_connect: sql connec... | 35.212418 | 117 | 0.604826 | 1,408 | 10,775 | 4.464489 | 0.169744 | 0.044543 | 0.020999 | 0.030544 | 0.43923 | 0.36987 | 0.328349 | 0.276487 | 0.240057 | 0.189628 | 0 | 0.005101 | 0.290487 | 10,775 | 305 | 118 | 35.327869 | 0.817135 | 0.227749 | 0 | 0.344595 | 0 | 0 | 0.132171 | 0.011372 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.094595 | false | 0 | 0.02027 | 0 | 0.202703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9167fe0a7f3eeef9305940bbccf9dcc614aaf736 | 569 | py | Python | assets/utils/config.py | mklew/quickstart-data-lake-qubole | bb9b4a559815fc293b0fa06aa7e536fe14ced6dd | [
"Apache-2.0"
] | null | null | null | assets/utils/config.py | mklew/quickstart-data-lake-qubole | bb9b4a559815fc293b0fa06aa7e536fe14ced6dd | [
"Apache-2.0"
] | null | null | null | assets/utils/config.py | mklew/quickstart-data-lake-qubole | bb9b4a559815fc293b0fa06aa7e536fe14ced6dd | [
"Apache-2.0"
] | null | null | null | from configparser import ConfigParser
CONFIG_INT_KEYS = {
'hadoop_max_nodes_count',
'hadoop_ebs_volumes_count',
'hadoop_ebs_volume_size',
'spark_max_nodes_count',
'spark_ebs_volumes_count',
'spark_ebs_volume_size'
}
def read_config(config_path):
parser = ConfigParser()
parser.read(con... | 27.095238 | 101 | 0.72232 | 75 | 569 | 5.066667 | 0.386667 | 0.071053 | 0.068421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193322 | 569 | 20 | 102 | 28.45 | 0.827887 | 0 | 0 | 0 | 0 | 0 | 0.233743 | 0.233743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
916aaa2f9132fad05b66933ca386d50c7aed073b | 6,083 | py | Python | project/starter_code/student_utils.py | nihaagarwalla/nd320-c1-emr-data-starter | 6ce6bb65e89b38f1c2119a739b892ad2504adf7d | [
"MIT"
] | null | null | null | project/starter_code/student_utils.py | nihaagarwalla/nd320-c1-emr-data-starter | 6ce6bb65e89b38f1c2119a739b892ad2504adf7d | [
"MIT"
] | null | null | null | project/starter_code/student_utils.py | nihaagarwalla/nd320-c1-emr-data-starter | 6ce6bb65e89b38f1c2119a739b892ad2504adf7d | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import os
import tensorflow as tf
import functools
####### STUDENTS FILL THIS OUT ######
#Question 3
def reduce_dimension_ndc(df, ndc_df):
'''
df: pandas dataframe, input dataset
ndc_df: pandas dataframe, drug code dataset used for mapping in generic names
return:... | 40.553333 | 158 | 0.706395 | 848 | 6,083 | 4.840802 | 0.245283 | 0.035323 | 0.040195 | 0.054811 | 0.325213 | 0.27162 | 0.231181 | 0.197077 | 0.181486 | 0.173447 | 0 | 0.005239 | 0.18412 | 6,083 | 149 | 159 | 40.825503 | 0.821882 | 0.444518 | 0 | 0 | 0 | 0 | 0.115149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.096154 | 0 | 0.403846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
916ad498f5f7937a47cd76bb93a7df7cec38d72f | 5,354 | py | Python | core_tools/utility/plotting/plot_1D.py | peendebak/core_tools | 2e43edf0bbc1d7ceb7042559db499535e8f6a076 | [
"BSD-2-Clause"
] | null | null | null | core_tools/utility/plotting/plot_1D.py | peendebak/core_tools | 2e43edf0bbc1d7ceb7042559db499535e8f6a076 | [
"BSD-2-Clause"
] | null | null | null | core_tools/utility/plotting/plot_1D.py | peendebak/core_tools | 2e43edf0bbc1d7ceb7042559db499535e8f6a076 | [
"BSD-2-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import copy
from core_tools.utility.plotting.plot_settings import plot_layout, graph_settings_1D, _1D_raw_plot_data
from core_tools.utility.plotting.plot_general import _data_plotter
class plotter_1D(_data_plotter):
def __init__(self, plt_la... | 31.309942 | 111 | 0.686216 | 972 | 5,354 | 3.587449 | 0.156379 | 0.068827 | 0.055062 | 0.064239 | 0.440206 | 0.429596 | 0.368225 | 0.320333 | 0.229137 | 0.215945 | 0 | 0.054048 | 0.139522 | 5,354 | 171 | 112 | 31.309942 | 0.702844 | 0.030071 | 0 | 0.107438 | 0 | 0 | 0.070754 | 0 | 0 | 0 | 0 | 0.005848 | 0 | 1 | 0.049587 | false | 0.008264 | 0.057851 | 0 | 0.123967 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
916bb212bcbe679ba4c75cb54521ee006fb78140 | 5,110 | py | Python | v0.3/achat.py | Forec/lan-ichat | f2ae85ef6a8f2b30126be787e52785971c926d8c | [
"0BSD"
] | 63 | 2016-10-25T06:05:29.000Z | 2021-06-11T01:13:30.000Z | v0.3/achat.py | yyfhust/lan-ichat | f2ae85ef6a8f2b30126be787e52785971c926d8c | [
"0BSD"
] | 1 | 2018-10-16T10:06:19.000Z | 2018-10-16T10:06:19.000Z | v0.3/achat.py | yyfhust/lan-ichat | f2ae85ef6a8f2b30126be787e52785971c926d8c | [
"0BSD"
] | 55 | 2016-10-25T06:05:33.000Z | 2021-12-10T04:58:57.000Z | # last edit date: 2016/11/2
# author: Forec
# LICENSE
# Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn>
# Permission to use, copy, modify, and/or distribute this code for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
... | 34.066667 | 77 | 0.541292 | 574 | 5,110 | 4.722997 | 0.329268 | 0.044264 | 0.019919 | 0.023608 | 0.451494 | 0.432313 | 0.392475 | 0.392475 | 0.392475 | 0.357064 | 0 | 0.016184 | 0.371233 | 5,110 | 150 | 78 | 34.066667 | 0.827575 | 0.154599 | 0 | 0.6 | 0 | 0 | 0.046447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0.030769 | 0.076923 | 0 | 0.153846 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
916e1ddff0241cef174fcd4e5ccac0206688c76b | 636 | py | Python | initcmds/models.py | alldevic/mtauksync | 1a5d325ca8a7878aba5b292d7835546b24bb554c | [
"MIT"
] | null | null | null | initcmds/models.py | alldevic/mtauksync | 1a5d325ca8a7878aba5b292d7835546b24bb554c | [
"MIT"
] | null | null | null | initcmds/models.py | alldevic/mtauksync | 1a5d325ca8a7878aba5b292d7835546b24bb554c | [
"MIT"
] | null | null | null | from django.db import models
TASK_STATUS = (
("c", "created"),
("p", "progress"),
("s", "success"),
("f", "failed")
)
class TaskModel(models.Model):
lastrunned = models.DateTimeField(
"lastrunned", auto_now=False, auto_now_add=False)
taskname = models.CharField("taskname", max_lengt... | 27.652174 | 77 | 0.636792 | 75 | 636 | 5.213333 | 0.626667 | 0.051151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.207547 | 636 | 22 | 78 | 28.909091 | 0.769841 | 0 | 0 | 0 | 0 | 0 | 0.16195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.055556 | 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 |
916fbb01e62cdbb436021c5d032e0ff8b5532255 | 3,171 | py | Python | src/Data.py | jhlee93/WNet-cGAN-Keras | 89666be91083735c3259e04907bbfbe1c89fc8f8 | [
"MIT"
] | 7 | 2019-07-09T15:16:52.000Z | 2021-05-13T14:14:48.000Z | src/Data.py | jhlee93/WNet-cGAN-Keras | 89666be91083735c3259e04907bbfbe1c89fc8f8 | [
"MIT"
] | 4 | 2019-07-24T13:35:11.000Z | 2021-04-20T07:59:49.000Z | src/Data.py | jhlee93/WNet-cGAN-Keras | 89666be91083735c3259e04907bbfbe1c89fc8f8 | [
"MIT"
] | 1 | 2021-12-16T13:19:13.000Z | 2021-12-16T13:19:13.000Z | import glob
import numpy as np
class Data:
def __init__(self, path, random=False):
"""
input:
path: path to the folder with subfolders: DSM, PAN, LABEL
max_num: int, num of samples
random: bool, to load samples randomly or from 0 to num_max
... | 44.661972 | 198 | 0.571429 | 495 | 3,171 | 3.50303 | 0.191919 | 0.051903 | 0.025952 | 0.036332 | 0.339677 | 0.306805 | 0.214533 | 0.153979 | 0.153979 | 0.130911 | 0 | 0.010662 | 0.290129 | 3,171 | 70 | 199 | 45.3 | 0.759662 | 0.082308 | 0 | 0.085106 | 0 | 0 | 0.067367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.042553 | 0 | 0.191489 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
917058eae76c95edb3644d77520d9eb1f3e8a1e9 | 8,908 | py | Python | liberaforms/views/admin.py | ngi-nix/liberaforms | 5882994736292e7ab34c4c9207805b307478a6c7 | [
"MIT"
] | 3 | 2021-09-02T16:45:42.000Z | 2022-02-21T19:06:25.000Z | liberaforms/views/admin.py | ngi-nix/liberaforms | 5882994736292e7ab34c4c9207805b307478a6c7 | [
"MIT"
] | 2 | 2021-08-17T04:13:10.000Z | 2021-09-14T22:48:21.000Z | liberaforms/views/admin.py | ngi-nix/liberaforms | 5882994736292e7ab34c4c9207805b307478a6c7 | [
"MIT"
] | 1 | 2021-08-17T07:13:15.000Z | 2021-08-17T07:13:15.000Z | """
This file is part of LiberaForms.
# SPDX-FileCopyrightText: 2020 LiberaForms.org
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
import os, json
from flask import g, request, render_template, redirect
from flask import session, flash, Blueprint
from flask import send_file, after_this_request
from flask_babel imp... | 36.064777 | 84 | 0.635608 | 1,088 | 8,908 | 4.993566 | 0.153493 | 0.032211 | 0.03534 | 0.050064 | 0.441377 | 0.351555 | 0.283821 | 0.242039 | 0.207436 | 0.147985 | 0 | 0.001176 | 0.236529 | 8,908 | 246 | 85 | 36.211382 | 0.797677 | 0.03132 | 0 | 0.270833 | 0 | 0 | 0.182428 | 0.049464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088542 | false | 0 | 0.078125 | 0.03125 | 0.322917 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91705feef5320bb231c5d61b510ee6321361c934 | 29,405 | py | Python | python/zephyr/datasets/score_dataset.py | r-pad/zephyr | c8f45e207c11bfc2b21df169db65a7df892d2848 | [
"MIT"
] | 18 | 2021-05-27T04:40:38.000Z | 2022-02-08T19:46:31.000Z | python/zephyr/datasets/score_dataset.py | r-pad/zephyr | c8f45e207c11bfc2b21df169db65a7df892d2848 | [
"MIT"
] | null | null | null | python/zephyr/datasets/score_dataset.py | r-pad/zephyr | c8f45e207c11bfc2b21df169db65a7df892d2848 | [
"MIT"
] | 2 | 2021-11-07T12:42:00.000Z | 2022-03-01T12:51:54.000Z | import os, copy
import cv2
from functools import partial
import numpy as np
import torch
import torchvision
from torch.utils.data import Dataset
from zephyr.data_util import to_np, vectorize, img2uint8
from zephyr.utils import torch_norm_fast
from zephyr.utils.mask_edge import getRendEdgeScore
from zephyr... | 44.218045 | 167 | 0.534875 | 3,604 | 29,405 | 4.122087 | 0.107658 | 0.017905 | 0.015751 | 0.018309 | 0.349825 | 0.287964 | 0.238018 | 0.186457 | 0.1458 | 0.132337 | 0 | 0.018448 | 0.347424 | 29,405 | 664 | 168 | 44.284639 | 0.755745 | 0.067948 | 0 | 0.168357 | 0 | 0 | 0.054035 | 0.001689 | 0 | 0 | 0 | 0 | 0.008114 | 1 | 0.016227 | false | 0.002028 | 0.036511 | 0.002028 | 0.070994 | 0.022312 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91762cf01e789ac760eedf4942c7a866b5214252 | 632 | py | Python | src/lingcomp/farm/features.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | 2 | 2020-12-18T12:26:22.000Z | 2020-12-19T18:47:07.000Z | src/lingcomp/farm/features.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | null | null | null | src/lingcomp/farm/features.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | 1 | 2021-05-19T13:39:45.000Z | 2021-05-19T13:39:45.000Z | import torch
from farm.data_handler.samples import Sample
from farm.modeling.prediction_head import RegressionHead
class FeaturesEmbeddingSample(Sample):
def __init__(self, id, clear_text, tokenized=None, features=None, feat_embeds=None):
super().__init__(id, clear_text, tokenized, features)
self.... | 31.6 | 88 | 0.724684 | 77 | 632 | 5.74026 | 0.584416 | 0.036199 | 0.049774 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001934 | 0.181962 | 632 | 19 | 89 | 33.263158 | 0.852998 | 0.129747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9176ff87702ba5b114dba78865e902b3d3390b83 | 2,259 | py | Python | dashboard/dashboard.py | TrustyJAID/Toxic-Cogs | 870d92067ba2a99b9ade2f957f945b95fdbc80f7 | [
"MIT"
] | null | null | null | dashboard/dashboard.py | TrustyJAID/Toxic-Cogs | 870d92067ba2a99b9ade2f957f945b95fdbc80f7 | [
"MIT"
] | null | null | null | dashboard/dashboard.py | TrustyJAID/Toxic-Cogs | 870d92067ba2a99b9ade2f957f945b95fdbc80f7 | [
"MIT"
] | null | null | null | from collections import defaultdict
import discord
from redbot.core import Config, checks, commands
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import box, humanize_list, inline
from abc import ABC
# ABC Mixins
from dashboard.abc.abc import MixinMeta
from dashboard.abc.mixin impor... | 30.945205 | 110 | 0.657371 | 248 | 2,259 | 5.895161 | 0.516129 | 0.062244 | 0.05472 | 0.030096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019197 | 0.239044 | 2,259 | 72 | 111 | 31.375 | 0.831297 | 0.107127 | 0 | 0 | 0 | 0 | 0.057453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.26 | 0.02 | 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 |
91773a1b99193243fe941616b2fc5339f203eb98 | 410 | py | Python | algorithms/162.Find-Peak-Element/Python/solution_2.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | algorithms/162.Find-Peak-Element/Python/solution_2.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | algorithms/162.Find-Peak-Element/Python/solution_2.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | """
https://leetcode.com/problems/find-peak-element/submissions/
"""
from typing import List
class Solution:
def findPeakElement(self, nums: List[int]) -> int:
l, r = 0, len(nums)-1
while l < r:
lmid = (l + r) // 2
rmid = lmid + 1
if nums[lmid] < nums[rmid]:
... | 22.777778 | 60 | 0.473171 | 51 | 410 | 3.803922 | 0.607843 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024292 | 0.397561 | 410 | 17 | 61 | 24.117647 | 0.761134 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9177bf15b6da687a6ae646c46fc3addf65d8004a | 2,684 | py | Python | data_loader.py | vinbigdata-medical/MIDL2021-Xray-Classification | 51359126d07573053059c36e3cd95a7fd7100e0e | [
"MIT"
] | 4 | 2021-04-14T08:04:08.000Z | 2021-08-10T10:15:00.000Z | data_loader.py | vinbigdata-medical/MIDL2021-Xray-Classification | 51359126d07573053059c36e3cd95a7fd7100e0e | [
"MIT"
] | 1 | 2022-01-13T12:51:31.000Z | 2022-01-13T12:51:31.000Z | data_loader.py | vinbigdata-medical/MIDL2021-Xray-Classification | 51359126d07573053059c36e3cd95a7fd7100e0e | [
"MIT"
] | null | null | null | from torchvision.datasets import ImageFolder
from torchvision import transforms
import random
import os
import torch
from torch.utils.data.dataloader import DataLoader
from utils import constants, get_default_device
from image_folder_with_path import ImageFolderWithPaths
def to_device(data, device):
"""Move tensor... | 37.277778 | 118 | 0.770492 | 351 | 2,684 | 5.663818 | 0.287749 | 0.045775 | 0.059859 | 0.091549 | 0.372233 | 0.372233 | 0.248491 | 0.248491 | 0.248491 | 0.191147 | 0 | 0.008651 | 0.138599 | 2,684 | 72 | 119 | 37.277778 | 0.851211 | 0.175857 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.186047 | 0 | 0.372093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9177c031d705388dfe8031bad5b727ad1032aa9e | 4,254 | py | Python | calliope/test/test_analysis.py | sjpfenninger/calliope | a4e49c3b7d37f908bafc84543510eec0b4cf5d9f | [
"Apache-2.0"
] | 1 | 2019-11-11T15:50:16.000Z | 2019-11-11T15:50:16.000Z | calliope/test/test_analysis.py | mhdella/calliope | a4e49c3b7d37f908bafc84543510eec0b4cf5d9f | [
"Apache-2.0"
] | null | null | null | calliope/test/test_analysis.py | mhdella/calliope | a4e49c3b7d37f908bafc84543510eec0b4cf5d9f | [
"Apache-2.0"
] | 1 | 2019-11-11T15:50:18.000Z | 2019-11-11T15:50:18.000Z | # import matplotlib
# matplotlib.use('Qt5Agg') # Prevents `Invalid DISPLAY variable` errors
import pytest
import tempfile
from calliope import Model
from calliope.utils import AttrDict
from calliope import analysis
from . import common
from .common import assert_almost_equal, solver, solver_io
import matplotlib.p... | 36.672414 | 99 | 0.603197 | 485 | 4,254 | 5.103093 | 0.305155 | 0.06303 | 0.041212 | 0.027475 | 0.40404 | 0.270707 | 0.245657 | 0.217374 | 0.217374 | 0.217374 | 0 | 0.018945 | 0.305125 | 4,254 | 115 | 100 | 36.991304 | 0.818336 | 0.132581 | 0 | 0.166667 | 0 | 0 | 0.211214 | 0.011976 | 0 | 0 | 0 | 0.008696 | 0.095238 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.27381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
917a93c6b5689f031c6779f12176c0d60e186575 | 13,198 | py | Python | cinder/tests/unit/targets/test_spdknvmf.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 3 | 2015-04-02T21:44:36.000Z | 2016-04-29T21:19:04.000Z | cinder/tests/unit/targets/test_spdknvmf.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 3 | 2016-04-29T21:45:26.000Z | 2016-05-04T19:41:23.000Z | cinder/tests/unit/targets/test_spdknvmf.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 4 | 2016-01-27T00:25:52.000Z | 2021-03-25T19:54:08.000Z | # 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, software
# d... | 32.268949 | 78 | 0.539855 | 1,342 | 13,198 | 5.076006 | 0.195976 | 0.051527 | 0.020992 | 0.027452 | 0.4931 | 0.430123 | 0.412214 | 0.391368 | 0.381092 | 0.361568 | 0 | 0.057786 | 0.329974 | 13,198 | 408 | 79 | 32.348039 | 0.712541 | 0.04137 | 0 | 0.451253 | 0 | 0 | 0.233758 | 0.048113 | 0 | 0 | 0.000475 | 0 | 0.022284 | 1 | 0.050139 | false | 0.002786 | 0.016713 | 0.002786 | 0.111421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
917afbcd55aefac0dcfd4785b8010a4e43b0d1c3 | 4,204 | py | Python | server/algos/euler/transformer.py | yizhang7210/Acre | c98cf8a4fdfb223a1958e8e61df759f889a1b13f | [
"MIT"
] | 2 | 2017-11-27T21:55:21.000Z | 2017-12-30T03:34:40.000Z | server/algos/euler/transformer.py | yizhang7210/Acre | c98cf8a4fdfb223a1958e8e61df759f889a1b13f | [
"MIT"
] | 30 | 2017-09-06T12:00:08.000Z | 2018-06-20T22:47:46.000Z | server/algos/euler/transformer.py | yizhang7210/Acre | c98cf8a4fdfb223a1958e8e61df759f889a1b13f | [
"MIT"
] | 1 | 2021-04-05T13:59:37.000Z | 2021-04-05T13:59:37.000Z | """ This is algos.euler.transformer module.
This module is responsible for transforming raw candle data into training
samples usable to the Euler algorithm.
"""
import datetime
import decimal
from algos.euler.models import training_samples as ts
from core.models import instruments
from datasource.models import... | 35.033333 | 80 | 0.674833 | 553 | 4,204 | 4.943942 | 0.251356 | 0.075713 | 0.030724 | 0.018654 | 0.17959 | 0.148135 | 0.148135 | 0.148135 | 0.087783 | 0.046086 | 0 | 0.005411 | 0.252617 | 4,204 | 119 | 81 | 35.327731 | 0.864736 | 0.41746 | 0 | 0.04 | 0 | 0 | 0.006548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 |
917d24af3dd098f693a886046f82e8514c7bd83a | 2,628 | py | Python | CEST/Evaluation/lorenzian.py | ludgerradke/bMRI | dcf93749bb2fba3700e6bcfde691355d55090951 | [
"MIT"
] | null | null | null | CEST/Evaluation/lorenzian.py | ludgerradke/bMRI | dcf93749bb2fba3700e6bcfde691355d55090951 | [
"MIT"
] | null | null | null | CEST/Evaluation/lorenzian.py | ludgerradke/bMRI | dcf93749bb2fba3700e6bcfde691355d55090951 | [
"MIT"
] | null | null | null | import numpy as np
import math
from scipy.optimize import curve_fit
def calc_lorentzian(CestCurveS, x_calcentires, mask, config):
(rows, colums, z_slices, entires) = CestCurveS.shape
lorenzian = {key: np.zeros((rows, colums, z_slices), dtype=float) for key in config.lorenzian_keys}
for k in range(z_slice... | 45.310345 | 117 | 0.459665 | 324 | 2,628 | 3.530864 | 0.287037 | 0.020979 | 0.028846 | 0.034965 | 0.189685 | 0.081294 | 0.034091 | 0.034091 | 0.034091 | 0.034091 | 0 | 0.057516 | 0.417808 | 2,628 | 57 | 118 | 46.105263 | 0.690196 | 0.060122 | 0 | 0 | 0 | 0 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.022222 | 0.066667 | 0.022222 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
917ddc860e3cb5987c6d77cf2eda4923d9234d7a | 7,572 | py | Python | components/network_models_LSTU.py | neuralchen/CooGAN | 3155cbb5a283226474356d3a9f01918609ddd4ec | [
"MIT"
] | 12 | 2020-12-09T07:04:12.000Z | 2022-03-01T03:30:46.000Z | components/network_models_LSTU.py | neuralchen/CooGAN | 3155cbb5a283226474356d3a9f01918609ddd4ec | [
"MIT"
] | null | null | null | components/network_models_LSTU.py | neuralchen/CooGAN | 3155cbb5a283226474356d3a9f01918609ddd4ec | [
"MIT"
] | 4 | 2020-12-23T03:57:53.000Z | 2022-03-28T13:56:14.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
#############################################################
# File: network_models_LSTU.py
# Created Date: Tuesday February 25th 2020
# Author: Chen Xuanhong
# Email: chenxuanhongzju@outlook.com
# Last Modified: Tuesday, 25th February 2020 9:57:06 pm
# Modified By: Chen ... | 39.233161 | 118 | 0.58822 | 1,119 | 7,572 | 3.748883 | 0.186774 | 0.026698 | 0.013349 | 0.01907 | 0.366865 | 0.325387 | 0.29702 | 0.257926 | 0.20739 | 0.189273 | 0 | 0.026734 | 0.268885 | 7,572 | 192 | 119 | 39.4375 | 0.731033 | 0.148838 | 0 | 0.25 | 0 | 0 | 0.012863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064286 | false | 0.035714 | 0.05 | 0 | 0.192857 | 0.007143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9181932ab3632366f38b401fcbe5e47425259914 | 6,809 | py | Python | test/functional/bchn-txbroadcastinterval.py | 1Crazymoney/bitcoin-cash-node | 8f82823b3c5d4bcb401b0e4e6b464c1228f936e1 | [
"MIT"
] | 1 | 2021-11-24T03:54:05.000Z | 2021-11-24T03:54:05.000Z | test/functional/bchn-txbroadcastinterval.py | 1Crazymoney/bitcoin-cash-node | 8f82823b3c5d4bcb401b0e4e6b464c1228f936e1 | [
"MIT"
] | null | null | null | test/functional/bchn-txbroadcastinterval.py | 1Crazymoney/bitcoin-cash-node | 8f82823b3c5d4bcb401b0e4e6b464c1228f936e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2020 The Bitcoin Cash Node developers
# Author matricz
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test that inv messages are sent according to
an exponential distribution with scale -... | 46.958621 | 110 | 0.679101 | 800 | 6,809 | 5.70625 | 0.34125 | 0.045783 | 0.050602 | 0.035487 | 0.147207 | 0.147207 | 0.132749 | 0.121796 | 0.121796 | 0.121796 | 0 | 0.020995 | 0.223528 | 6,809 | 144 | 111 | 47.284722 | 0.842444 | 0.321339 | 0 | 0.121951 | 0 | 0 | 0.143231 | 0.051747 | 0 | 0 | 0 | 0 | 0.036585 | 1 | 0.085366 | false | 0 | 0.060976 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9183b4d3330e5dc6c4da3188d85901cf1703c4d4 | 3,178 | py | Python | plugins/voila/voila/__init__.py | srinivasreddych/aws-orbit-workbench | 2d154addff58d26f5459a73c06148aaf5e9fad46 | [
"Apache-2.0"
] | 94 | 2021-03-19T19:55:11.000Z | 2022-03-31T19:50:01.000Z | plugins/voila/voila/__init__.py | srinivasreddych/aws-orbit-workbench | 2d154addff58d26f5459a73c06148aaf5e9fad46 | [
"Apache-2.0"
] | 410 | 2021-03-19T18:04:48.000Z | 2022-03-22T13:56:53.000Z | plugins/voila/voila/__init__.py | srinivasreddych/aws-orbit-workbench | 2d154addff58d26f5459a73c06148aaf5e9fad46 | [
"Apache-2.0"
] | 24 | 2021-03-19T23:16:23.000Z | 2022-03-04T01:05:18.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 37.833333 | 116 | 0.701385 | 425 | 3,178 | 5.04 | 0.36 | 0.071895 | 0.056022 | 0.029412 | 0.170868 | 0.118581 | 0.096172 | 0.076564 | 0.076564 | 0.076564 | 0 | 0.002746 | 0.197923 | 3,178 | 83 | 117 | 38.289157 | 0.837583 | 0.193518 | 0 | 0.163934 | 0 | 0 | 0.131083 | 0.034144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.114754 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91848acd7c9a76b40212893d24a66f1267e0b221 | 4,316 | py | Python | tools/generate_driver_list.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 11 | 2015-08-25T13:11:18.000Z | 2020-10-15T11:29:20.000Z | tools/generate_driver_list.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 5 | 2018-01-25T11:31:56.000Z | 2019-05-06T23:13:35.000Z | tools/generate_driver_list.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 11 | 2015-02-20T18:48:24.000Z | 2021-01-30T20:26:18.000Z | #! /usr/bin/env python
#
# 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... | 30.609929 | 78 | 0.621177 | 550 | 4,316 | 4.690909 | 0.345455 | 0.063953 | 0.048837 | 0.029457 | 0.143798 | 0.087209 | 0.066279 | 0 | 0 | 0 | 0 | 0.001225 | 0.243281 | 4,316 | 140 | 79 | 30.828571 | 0.788732 | 0.202271 | 0 | 0.069767 | 0 | 0 | 0.137295 | 0.026932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.046512 | 0.011628 | 0.197674 | 0.081395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9186f6c899c8a19e537fae60a274b21c711b183a | 7,649 | py | Python | demos/odyssey/dodyssey.py | steingabelgaard/reportlab | b9a537e8386fb4b4b80e9ec89e0cdf392dbd6f61 | [
"BSD-3-Clause"
] | 55 | 2019-09-21T02:45:18.000Z | 2021-12-10T13:38:51.000Z | demos/odyssey/dodyssey.py | cnauroth/reportlab | 377d4ff58491dc6de48551e730c3d7f72db783e5 | [
"BSD-3-Clause"
] | 4 | 2019-09-26T03:16:50.000Z | 2021-12-10T13:40:49.000Z | demos/odyssey/dodyssey.py | cnauroth/reportlab | 377d4ff58491dc6de48551e730c3d7f72db783e5 | [
"BSD-3-Clause"
] | 26 | 2019-09-25T03:54:30.000Z | 2022-03-21T14:03:12.000Z | #Copyright ReportLab Europe Ltd. 2000-2017
#see license.txt for license details
__version__='3.3.0'
__doc__=''
#REPORTLAB_TEST_SCRIPT
import sys, copy, os
from reportlab.platypus import *
_NEW_PARA=os.environ.get('NEW_PARA','0')[0] in ('y','Y','1')
_REDCAP=int(os.environ.get('REDCAP','0'))
_CALLBACK=os.environ.get('CA... | 31.093496 | 104 | 0.587397 | 1,060 | 7,649 | 4.195283 | 0.248113 | 0.03463 | 0.010119 | 0.006746 | 0.204183 | 0.117158 | 0.07848 | 0.061839 | 0.061839 | 0.037104 | 0 | 0.024272 | 0.245915 | 7,649 | 245 | 105 | 31.220408 | 0.746706 | 0.023532 | 0 | 0.211823 | 0 | 0 | 0.126759 | 0.009782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083744 | false | 0 | 0.054187 | 0 | 0.147783 | 0.049261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9187649de93ea28a41bff761a58a3a5d39922848 | 764 | py | Python | tests/test_fred_fred_view.py | Traceabl3/GamestonkTerminal | 922353cade542ce3f62701e10d816852805b9386 | [
"MIT"
] | null | null | null | tests/test_fred_fred_view.py | Traceabl3/GamestonkTerminal | 922353cade542ce3f62701e10d816852805b9386 | [
"MIT"
] | null | null | null | tests/test_fred_fred_view.py | Traceabl3/GamestonkTerminal | 922353cade542ce3f62701e10d816852805b9386 | [
"MIT"
] | null | null | null | """ econ/fred_view.py tests """
import unittest
from unittest import mock
from io import StringIO
import pandas as pd
# pylint: disable=unused-import
from gamestonk_terminal.econ.fred_view import get_fred_data # noqa: F401
fred_data_mock = """
,GDP
2019-01-01,21115.309
2019-04-01,21329.877
2019-07-01,21540.325
2019-... | 24.645161 | 80 | 0.747382 | 128 | 764 | 4.257813 | 0.492188 | 0.102752 | 0.066055 | 0.091743 | 0.106422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199102 | 0.125654 | 764 | 30 | 81 | 25.466667 | 0.616766 | 0.086387 | 0 | 0 | 0 | 0 | 0.33913 | 0.071014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9187b814b570a612e2b93ab230ce46d039efd3f1 | 4,974 | py | Python | lecarb/estimator/lw/lw_tree.py | anshumandutt/AreCELearnedYet | e2286c3621dea8e4961057b6197c1e14e75aea5a | [
"MIT"
] | 34 | 2020-12-14T01:21:29.000Z | 2022-03-29T04:52:46.000Z | lecarb/estimator/lw/lw_tree.py | anshumandutt/AreCELearnedYet | e2286c3621dea8e4961057b6197c1e14e75aea5a | [
"MIT"
] | 5 | 2020-12-28T16:06:22.000Z | 2022-01-19T18:28:53.000Z | lecarb/estimator/lw/lw_tree.py | anshumandutt/AreCELearnedYet | e2286c3621dea8e4961057b6197c1e14e75aea5a | [
"MIT"
] | 12 | 2021-02-08T17:50:13.000Z | 2022-03-28T11:09:06.000Z | import time
import logging
from typing import Dict, Any, Tuple
import pickle
import numpy as np
import xgboost as xgb
from .common import load_lw_dataset, encode_query, decode_label
from ..postgres import Postgres
from ..estimator import Estimator
from ..utils import evaluate, run_test
from ...dataset.dataset import ... | 34.783217 | 130 | 0.65963 | 696 | 4,974 | 4.518678 | 0.242816 | 0.015898 | 0.01717 | 0.026709 | 0.231797 | 0.201908 | 0.133545 | 0.103657 | 0.081399 | 0.081399 | 0 | 0.007366 | 0.208484 | 4,974 | 142 | 131 | 35.028169 | 0.791466 | 0.06916 | 0 | 0.137255 | 0 | 0.019608 | 0.14208 | 0.032855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.127451 | 0 | 0.245098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9187ef6ed78f1f18095fecd6ea3ce015376d4dfc | 2,525 | py | Python | fsim/utils.py | yamasampo/fsim | 30100789b03981dd9ea11c5c2e17a3c53910f724 | [
"MIT"
] | null | null | null | fsim/utils.py | yamasampo/fsim | 30100789b03981dd9ea11c5c2e17a3c53910f724 | [
"MIT"
] | null | null | null | fsim/utils.py | yamasampo/fsim | 30100789b03981dd9ea11c5c2e17a3c53910f724 | [
"MIT"
] | null | null | null |
import os
import configparser
from warnings import warn
def read_control_file(control_file):
# Initialize ConfigParser object
config = configparser.ConfigParser(
strict=True,
comment_prefixes=('/*', ';', '#'),
inline_comment_prefixes=('/*', ';', '#')
)
# Parse control file
... | 32.371795 | 98 | 0.613861 | 325 | 2,525 | 4.593846 | 0.369231 | 0.073677 | 0.026792 | 0.029471 | 0.045546 | 0.045546 | 0.045546 | 0 | 0 | 0 | 0 | 0.003231 | 0.264554 | 2,525 | 77 | 99 | 32.792208 | 0.800754 | 0.100198 | 0 | 0 | 0 | 0 | 0.253221 | 0.013772 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.053571 | false | 0 | 0.053571 | 0 | 0.125 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
918946b8867e4746cc6439a71e8ab2ad6d7dc6a7 | 2,950 | py | Python | src/pymortests/function.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | 1 | 2021-07-26T12:58:50.000Z | 2021-07-26T12:58:50.000Z | src/pymortests/function.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | src/pymortests/function.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2017 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
import pytest
from pymor.core.pickle import dumps, loads
from pymor.functions.... | 38.815789 | 108 | 0.671186 | 410 | 2,950 | 4.697561 | 0.297561 | 0.037383 | 0.050883 | 0.047767 | 0.275182 | 0.188474 | 0.141225 | 0.106957 | 0.066459 | 0 | 0 | 0.029055 | 0.218305 | 2,950 | 75 | 109 | 39.333333 | 0.806158 | 0.146102 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288462 | 1 | 0.115385 | false | 0 | 0.134615 | 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 |
918a293306bf241e1a965c6b6c86f2b524157237 | 4,603 | py | Python | Code/userIDCrawler.py | CarberZ/social-media-mining | 41aee64a41244a0692987b75b30dedbd0552be49 | [
"MIT"
] | 2 | 2018-10-16T23:09:00.000Z | 2018-11-14T04:08:00.000Z | Code/userIDCrawler.py | CarberZ/social-media-mining | 41aee64a41244a0692987b75b30dedbd0552be49 | [
"MIT"
] | 1 | 2018-11-14T04:06:13.000Z | 2018-11-14T04:15:56.000Z | Code/userIDCrawler.py | CarberZ/social-media-mining | 41aee64a41244a0692987b75b30dedbd0552be49 | [
"MIT"
] | 1 | 2018-11-14T04:06:31.000Z | 2018-11-14T04:06:31.000Z |
'''
step 1
get the userID and their locations
put them all into a database
'''
from bs4 import BeautifulSoup
import urllib
import sqlite3
from selenium import webdriver
import time
import re
from urllib import request
import random
import pickle
import os
import pytesseract
url_dog = "http... | 30.483444 | 138 | 0.550728 | 497 | 4,603 | 5.070423 | 0.374245 | 0.036111 | 0.047619 | 0.020238 | 0.184127 | 0.12619 | 0.103968 | 0.029365 | 0 | 0 | 0 | 0.027653 | 0.324354 | 4,603 | 150 | 139 | 30.686667 | 0.782637 | 0.13274 | 0 | 0.072289 | 0 | 0.012048 | 0.167916 | 0.020816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.13253 | 0 | 0.253012 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
918a81c6af8725a4b95ff16551cc06a18c633a21 | 709 | py | Python | tbase/network/polices_test.py | iminders/TradeBaselines | 26eb87f2bcd5f6ff479149219b38b17002be6a40 | [
"MIT"
] | 16 | 2020-03-19T15:12:28.000Z | 2021-12-20T06:02:32.000Z | tbase/network/polices_test.py | iminders/TradeBaselines | 26eb87f2bcd5f6ff479149219b38b17002be6a40 | [
"MIT"
] | 14 | 2020-03-23T03:57:00.000Z | 2021-12-20T05:53:33.000Z | tbase/network/polices_test.py | iminders/TradeBaselines | 26eb87f2bcd5f6ff479149219b38b17002be6a40 | [
"MIT"
] | 7 | 2020-03-25T00:30:18.000Z | 2021-01-31T18:45:09.000Z | import unittest
import numpy as np
from tbase.common.cmd_util import set_global_seeds
from tbase.network.polices import RandomPolicy
class TestPolices(unittest.TestCase):
@classmethod
def setUpClass(self):
set_global_seeds(0)
def test_random_policy(self):
policy = RandomPolicy(2)
... | 25.321429 | 65 | 0.671368 | 84 | 709 | 5.464286 | 0.5 | 0.039216 | 0.061002 | 0.104575 | 0.352941 | 0.352941 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0.076087 | 0.221439 | 709 | 27 | 66 | 26.259259 | 0.755435 | 0.023977 | 0 | 0.222222 | 0 | 0 | 0.011611 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
918a8725328fa6920f55c21e0bb7c5f7406c3135 | 36,887 | py | Python | keystone/tests/unit/core.py | knikolla/keystone | 50f0a50cf4d52d3f61b64713bd4faa7a4626ae53 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/core.py | knikolla/keystone | 50f0a50cf4d52d3f61b64713bd4faa7a4626ae53 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/core.py | knikolla/keystone | 50f0a50cf4d52d3f61b64713bd4faa7a4626ae53 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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... | 34.217996 | 79 | 0.619676 | 4,443 | 36,887 | 4.979743 | 0.186811 | 0.023593 | 0.031458 | 0.018983 | 0.273446 | 0.231322 | 0.196158 | 0.155299 | 0.134734 | 0.117876 | 0 | 0.007054 | 0.281319 | 36,887 | 1,077 | 80 | 34.249768 | 0.827537 | 0.194893 | 0 | 0.301501 | 0 | 0.001364 | 0.097711 | 0.01699 | 0 | 0 | 0 | 0.001857 | 0.030014 | 1 | 0.100955 | false | 0.013643 | 0.05457 | 0.017735 | 0.245566 | 0.001364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
918dd351f71913e5bfee0b534327c85070c34d0b | 17,327 | py | Python | PyISY/Nodes/__init__.py | sneelco/PyISY | f1f916cd7951b1b6a5235bb36444c695fe3294e1 | [
"Apache-2.0"
] | null | null | null | PyISY/Nodes/__init__.py | sneelco/PyISY | f1f916cd7951b1b6a5235bb36444c695fe3294e1 | [
"Apache-2.0"
] | null | null | null | PyISY/Nodes/__init__.py | sneelco/PyISY | f1f916cd7951b1b6a5235bb36444c695fe3294e1 | [
"Apache-2.0"
] | null | null | null |
from .group import Group
from .node import (Node, parse_xml_properties, ATTR_ID)
from time import sleep
from xml.dom import minidom
class Nodes(object):
"""
This class handles the ISY nodes. This class can be used as a dictionary to
navigate through the controller's structure to objects of type
:cla... | 36.324948 | 100 | 0.48612 | 1,749 | 17,327 | 4.719268 | 0.168096 | 0.024231 | 0.021323 | 0.012358 | 0.221468 | 0.188636 | 0.147807 | 0.12915 | 0.12915 | 0.12915 | 0 | 0.005745 | 0.417326 | 17,327 | 476 | 101 | 36.401261 | 0.811807 | 0.137416 | 0 | 0.302115 | 0 | 0 | 0.047904 | 0 | 0 | 0 | 0.000275 | 0 | 0 | 1 | 0.07855 | false | 0.003021 | 0.012085 | 0.006042 | 0.190332 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
918e36c7c2d321203012c2cecdfb70b87e94940f | 1,329 | py | Python | easyCore/Utils/Logging.py | easyScience/easyCore | 5d16d5b27803277d0c44886f94dab599f764ae0b | [
"BSD-3-Clause"
] | 2 | 2021-11-02T10:22:45.000Z | 2022-02-18T23:41:19.000Z | easyCore/Utils/Logging.py | easyScience/easyCore | 5d16d5b27803277d0c44886f94dab599f764ae0b | [
"BSD-3-Clause"
] | 114 | 2020-06-30T08:52:27.000Z | 2022-03-30T20:47:56.000Z | easyCore/Utils/Logging.py | easyScience/easyCore | 5d16d5b27803277d0c44886f94dab599f764ae0b | [
"BSD-3-Clause"
] | 1 | 2022-03-04T13:01:09.000Z | 2022-03-04T13:01:09.000Z | # SPDX-FileCopyrightText: 2021 easyCore contributors <core@easyscience.software>
# SPDX-License-Identifier: BSD-3-Clause
# © 2021 Contributors to the easyCore project <https://github.com/easyScience/easyCore>
__author__ = 'github.com/wardsimon'
__version__ = '0.1.0'
import logging
class Logger:
def __init__... | 36.916667 | 91 | 0.645598 | 152 | 1,329 | 5.434211 | 0.513158 | 0.048426 | 0.053269 | 0.05569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014213 | 0.258841 | 1,329 | 35 | 92 | 37.971429 | 0.82335 | 0.536494 | 0 | 0 | 0 | 0 | 0.049091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
919092189581e9b39163223362020fad3bbd08e7 | 3,416 | py | Python | defaultsob/core.py | honewatson/defaults | c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81 | [
"0BSD"
] | null | null | null | defaultsob/core.py | honewatson/defaults | c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81 | [
"0BSD"
] | null | null | null | defaultsob/core.py | honewatson/defaults | c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
def ordered_set(iter):
"""Creates an ordered set
@param iter: list or tuple
@return: list with unique values
"""
final = []
for i in iter:
if i not in final:
final.append(i)
return final
def class_slots(ob):
"""Get object attributes from... | 27.772358 | 77 | 0.624415 | 447 | 3,416 | 4.599553 | 0.241611 | 0.029183 | 0.01751 | 0.011673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000833 | 0.297424 | 3,416 | 122 | 78 | 28 | 0.855833 | 0.425351 | 0 | 0.081633 | 0 | 0 | 0.022183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0 | 0 | 0.367347 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9190a55060e46f0f4d728a8eb6583235a5fc4dcf | 3,140 | py | Python | tests/bot_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 36 | 2017-06-12T01:09:46.000Z | 2021-01-31T17:57:41.000Z | tests/bot_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 145 | 2017-06-21T13:31:29.000Z | 2021-06-20T01:01:30.000Z | tests/bot_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 21 | 2017-07-24T15:53:19.000Z | 2021-12-23T04:18:31.000Z | import asyncio
from collections import defaultdict
from datetime import timedelta
import pytest
from yui.api import SlackAPI
from yui.bot import Bot
from yui.box import Box
from yui.types.slack.response import APIResponse
from yui.utils import json
from .util import FakeImportLib
def test_bot_init(event_loop, monk... | 27.787611 | 75 | 0.605414 | 367 | 3,140 | 5.111717 | 0.217984 | 0.074627 | 0.095949 | 0.154584 | 0.567697 | 0.567697 | 0.541045 | 0.491471 | 0.491471 | 0.491471 | 0 | 0.023671 | 0.233121 | 3,140 | 112 | 76 | 28.035714 | 0.755399 | 0 | 0 | 0.446809 | 0 | 0 | 0.214331 | 0.007325 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.010638 | false | 0 | 0.138298 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9190bf228865d048848fd87f601781ac36e5057a | 2,901 | py | Python | scripts/marker_filter.py | CesMak/aruco_detector_ocv | bb45e39664247779cbbbc8d37b89c4556b4984d6 | [
"BSD-3-Clause"
] | 12 | 2019-03-12T08:47:07.000Z | 2022-02-09T03:59:39.000Z | scripts/marker_filter.py | vprooks/simple_aruco_detector | 40cb7354d7da67028c91b4c4652e8c4a1d2abbbb | [
"MIT"
] | 3 | 2020-07-02T04:25:10.000Z | 2021-08-31T15:56:13.000Z | scripts/marker_filter.py | CesMak/aruco_detector_ocv | bb45e39664247779cbbbc8d37b89c4556b4984d6 | [
"BSD-3-Clause"
] | 11 | 2019-10-25T17:36:44.000Z | 2022-02-16T17:12:38.000Z | #!/usr/bin/env python
import numpy as np
import rospy
import geometry_msgs.msg
import tf2_ros
from tf.transformations import quaternion_slerp
def translation_to_numpy(t):
return np.array([t.x, t.y, t.z])
def quaternion_to_numpy(q):
return np.array([q.x, q.y, q.z, q.w])
if __name__ == '__main__':
rosp... | 36.2625 | 109 | 0.666322 | 352 | 2,901 | 5.215909 | 0.286932 | 0.092593 | 0.103486 | 0.073529 | 0.08061 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015131 | 0.24819 | 2,901 | 79 | 110 | 36.721519 | 0.826685 | 0.055843 | 0 | 0.033898 | 0 | 0 | 0.045355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.084746 | 0.033898 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9190f1884667aaeb95f3ee0745ae12dfce3341d8 | 3,713 | py | Python | src/backbone/utils.py | hankyul2/FaceDA | 73006327df3668923d4206f81d4976ca1240329d | [
"Apache-2.0"
] | 20 | 2021-11-26T18:05:30.000Z | 2022-02-15T12:21:10.000Z | src/backbone/utils.py | hankyul2/FaceDA | 73006327df3668923d4206f81d4976ca1240329d | [
"Apache-2.0"
] | null | null | null | src/backbone/utils.py | hankyul2/FaceDA | 73006327df3668923d4206f81d4976ca1240329d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:21:17.000Z | 2022-02-15T12:21:17.000Z | import os
import subprocess
from pathlib import Path
from torch.hub import load_state_dict_from_url
import numpy as np
model_urls = {
# ResNet
'resnet18': 'https://download.pytorch.org/models/resnet18-f37072fd.pth',
'resnet34': 'https://download.pytorch.org/models/resnet34-b627a593.pth',
'resnet50':... | 50.175676 | 127 | 0.720442 | 503 | 3,713 | 5.091451 | 0.260437 | 0.052714 | 0.078094 | 0.089809 | 0.56228 | 0.370558 | 0.370558 | 0.283483 | 0.283483 | 0.283483 | 0 | 0.084704 | 0.131969 | 3,713 | 73 | 128 | 50.863014 | 0.709898 | 0.015082 | 0 | 0 | 0 | 0.096154 | 0.552329 | 0.024932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91918e0b4360daa841c2dd658213e7f9249510fa | 702 | py | Python | crawler1.py | pjha1994/Scrape_reddit | 2a00a83854085e09f0cf53aef81969025876039b | [
"Apache-2.0"
] | null | null | null | crawler1.py | pjha1994/Scrape_reddit | 2a00a83854085e09f0cf53aef81969025876039b | [
"Apache-2.0"
] | null | null | null | crawler1.py | pjha1994/Scrape_reddit | 2a00a83854085e09f0cf53aef81969025876039b | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
def recursiveUrl(url, link, depth):
if depth == 5:
return url
else:
print(link['href'])
page = requests.get(url + link['href'])
soup = BeautifulSoup(page.text, 'html.parser')
newlink = soup.find('a')
if len(newlink) =... | 27 | 62 | 0.602564 | 88 | 702 | 4.795455 | 0.431818 | 0.106635 | 0.090047 | 0.085308 | 0.165877 | 0.165877 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.266382 | 702 | 26 | 63 | 27 | 0.809709 | 0 | 0 | 0.173913 | 0 | 0 | 0.076814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
9191a318c08b49c9339f1e4504f721d3f2d1d83b | 2,428 | py | Python | chime2/tests/normal/models/seir_test.py | BrianThomasRoss/CHIME-2 | f084ab552fac5e50841a922293b74d653450790b | [
"BSD-3-Clause"
] | null | null | null | chime2/tests/normal/models/seir_test.py | BrianThomasRoss/CHIME-2 | f084ab552fac5e50841a922293b74d653450790b | [
"BSD-3-Clause"
] | null | null | null | chime2/tests/normal/models/seir_test.py | BrianThomasRoss/CHIME-2 | f084ab552fac5e50841a922293b74d653450790b | [
"BSD-3-Clause"
] | 1 | 2020-11-19T23:08:52.000Z | 2020-11-19T23:08:52.000Z | """Tests for SEIR model in this repo
* Compares conserved quantities
* Compares model against SEIR wo social policies in limit to SIR
"""
from pandas import Series
from pandas.testing import assert_frame_equal, assert_series_equal
from bayes_chime.normal.models import SEIRModel, SIRModel
from pytest import fixture
fro... | 28.232558 | 81 | 0.710461 | 340 | 2,428 | 4.773529 | 0.347059 | 0.033272 | 0.027726 | 0.046211 | 0.039433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017409 | 0.195634 | 2,428 | 85 | 82 | 28.564706 | 0.81362 | 0.177924 | 0 | 0.039216 | 0 | 0 | 0.083376 | 0.02046 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.078431 | false | 0 | 0.098039 | 0 | 0.215686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91928996da1f5de4298b9395563c76e7f7e3542f | 4,681 | py | Python | Libraries/mattsLibraries/mathOperations.py | mrware91/PhilTransA-TRXS-Limits | 5592c6c66276cd493d10f066aa636aaf600d3a00 | [
"MIT"
] | null | null | null | Libraries/mattsLibraries/mathOperations.py | mrware91/PhilTransA-TRXS-Limits | 5592c6c66276cd493d10f066aa636aaf600d3a00 | [
"MIT"
] | 2 | 2018-06-19T00:01:27.000Z | 2018-10-16T18:33:24.000Z | Libraries/mattsLibraries/mathOperations.py | mrware91/PhilTransA-TRXS-Limits | 5592c6c66276cd493d10f066aa636aaf600d3a00 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.interpolate import interp1d
from pyTools import *
################################################################################
#~~~~~~~~~Log ops
################################################################################
def logPolyVal(p,x):
ord = p.order()
logs = []
... | 32.734266 | 129 | 0.470626 | 663 | 4,681 | 3.300151 | 0.221719 | 0.014625 | 0.015082 | 0.034278 | 0.326325 | 0.285649 | 0.234461 | 0.190585 | 0.157678 | 0.131627 | 0 | 0.032709 | 0.19013 | 4,681 | 142 | 130 | 32.964789 | 0.544447 | 0.026063 | 0 | 0.147368 | 0 | 0 | 0.053824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147368 | false | 0 | 0.031579 | 0.010526 | 0.326316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91941908fbc07382f07b7bc44926ab4220545f9d | 947 | py | Python | src/routes/web.py | enflo/weather-flask | c4d905e1f557b4c9b39d0a578fdbb6fefc839028 | [
"Apache-2.0"
] | null | null | null | src/routes/web.py | enflo/weather-flask | c4d905e1f557b4c9b39d0a578fdbb6fefc839028 | [
"Apache-2.0"
] | null | null | null | src/routes/web.py | enflo/weather-flask | c4d905e1f557b4c9b39d0a578fdbb6fefc839028 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, render_template
from gateways.models import getWeatherData
web = Blueprint("web", __name__, template_folder='templates')
@web.route("/", methods=['GET'])
def home():
items = getWeatherData.get_last_item()
cityName = items["city"]
return render_template("index.html",
... | 32.655172 | 61 | 0.564942 | 87 | 947 | 6 | 0.37931 | 0.10728 | 0.074713 | 0.099617 | 0.367816 | 0.252874 | 0.252874 | 0.252874 | 0.252874 | 0.252874 | 0 | 0.001486 | 0.289335 | 947 | 28 | 62 | 33.821429 | 0.774146 | 0.414995 | 0 | 0 | 0 | 0 | 0.104779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91979003f9cb74dc9f591b8277facbe005dfd825 | 532 | py | Python | swapidemo1.py | anvytran-dev/mycode | 3753c19828f0ecc506a6450bb6b71b4a5d651e5f | [
"MIT"
] | null | null | null | swapidemo1.py | anvytran-dev/mycode | 3753c19828f0ecc506a6450bb6b71b4a5d651e5f | [
"MIT"
] | null | null | null | swapidemo1.py | anvytran-dev/mycode | 3753c19828f0ecc506a6450bb6b71b4a5d651e5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Star Wars API HTTP response parsing"""
# requests is used to send HTTP requests (get it?)
import requests
URL= "https://swapi.dev/api/people/1"
def main():
"""sending GET request, checking response"""
# SWAPI response is stored in "resp" object
resp= requests.get(URL)
# wh... | 22.166667 | 52 | 0.654135 | 77 | 532 | 4.415584 | 0.675325 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.203008 | 532 | 23 | 53 | 23.130435 | 0.79717 | 0.468045 | 0 | 0 | 0 | 0 | 0.329588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9198600a03831a59503bb3d3f2827b284d0e1c16 | 2,316 | bzl | Python | format/format.bzl | harshad-deo/TorchVI | f66d1486201368c9906869477ba7ae254d2e7191 | [
"Apache-2.0"
] | null | null | null | format/format.bzl | harshad-deo/TorchVI | f66d1486201368c9906869477ba7ae254d2e7191 | [
"Apache-2.0"
] | null | null | null | format/format.bzl | harshad-deo/TorchVI | f66d1486201368c9906869477ba7ae254d2e7191 | [
"Apache-2.0"
] | null | null | null | def _replace_formatted(ctx, manifest, files):
out = ctx.actions.declare_file(ctx.label.name)
# this makes it easier to add variables
file_lines = [
"""#!/bin/bash -e
WORKSPACE_ROOT="${1:-$BUILD_WORKSPACE_DIRECTORY}" """,
"""RUNPATH="${TEST_SRCDIR-$0.runfiles}"/""" + ctx.workspace_name,
... | 30.473684 | 88 | 0.577288 | 254 | 2,316 | 5.070866 | 0.346457 | 0.046584 | 0.037267 | 0.048913 | 0.091615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001786 | 0.274611 | 2,316 | 75 | 89 | 30.88 | 0.764881 | 0.015976 | 0 | 0.09434 | 0 | 0 | 0.055904 | 0.01255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
919e14a6393eda0c7e38c0fd3d5e470f7982030f | 11,038 | py | Python | first-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | first-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | 1 | 2021-06-02T03:55:13.000Z | 2021-06-02T03:55:13.000Z | first-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import json
import argparse
import re
import datetime
import paramiko
import requests
# cmd ['ssh', 'smart',
# 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor;
# cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json']
from miio import chuangmi_plug
from btlewrap import availabl... | 37.80137 | 118 | 0.602102 | 1,379 | 11,038 | 4.704133 | 0.171139 | 0.030831 | 0.032064 | 0.018499 | 0.631417 | 0.566209 | 0.539232 | 0.480962 | 0.449669 | 0.433945 | 0 | 0.055024 | 0.252491 | 11,038 | 291 | 119 | 37.931271 | 0.731184 | 0.111705 | 0 | 0.486486 | 0 | 0.004505 | 0.217982 | 0.055858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058559 | false | 0.004505 | 0.040541 | 0 | 0.202703 | 0.058559 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
919e36250164a66af6592305ae454fa0dbde1d43 | 642 | py | Python | reservior_classification.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | 1 | 2020-02-04T12:51:47.000Z | 2020-02-04T12:51:47.000Z | reservior_classification.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | null | null | null | reservior_classification.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | null | null | null | import pickle
from sklearn.neural_network import MLPClassifier
train = pickle.load(open('train_pca_reservoir_output_200samples.pickle','rb'))
test = pickle.load(open('test_pca_reservoir_output_50samples.pickle','rb'))
train_num = 200
test_num = 50
mlp = MLPClassifier(hidden_layer_sizes=(2000,), max_iter=100, alpha=1... | 37.764706 | 78 | 0.700935 | 99 | 642 | 4.333333 | 0.535354 | 0.055944 | 0.065268 | 0.055944 | 0.195804 | 0.11655 | 0.11655 | 0 | 0 | 0 | 0 | 0.059783 | 0.140187 | 642 | 16 | 79 | 40.125 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.207165 | 0.133956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
919f4e67778a5a961b0e58f4deb0ff4d5a7ee8e6 | 4,099 | py | Python | util.py | delmarrerikaine/LPG-PCA | deb631ee2c4c88190ce4204fcbc0765ae5cd8f53 | [
"MIT"
] | 1 | 2021-05-07T01:00:18.000Z | 2021-05-07T01:00:18.000Z | util.py | delmarrerikaine/LPG-PCA | deb631ee2c4c88190ce4204fcbc0765ae5cd8f53 | [
"MIT"
] | null | null | null | util.py | delmarrerikaine/LPG-PCA | deb631ee2c4c88190ce4204fcbc0765ae5cd8f53 | [
"MIT"
] | 2 | 2019-06-29T16:30:32.000Z | 2020-11-18T17:40:47.000Z | import numpy as np
import pandas as pd
from skimage import io
import skimage.measure as measure
import os
from lpg_pca_impl import denoise
def getNoisedImage(originalImage, variance):
# return random_noise(originalImage, mode='gaussian', var=variance)
np.random.seed(42)
noise = np.random.normal(size=origi... | 36.598214 | 141 | 0.658941 | 562 | 4,099 | 4.553381 | 0.24911 | 0.051973 | 0.065651 | 0.040641 | 0.227042 | 0.157093 | 0.04533 | 0 | 0 | 0 | 0 | 0.014072 | 0.185167 | 4,099 | 111 | 142 | 36.927928 | 0.752096 | 0.015858 | 0 | 0.026316 | 0 | 0 | 0.141865 | 0.009673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0 | 0.078947 | 0.039474 | 0.263158 | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91a0653094ec563d20865f6d3bbca729f2752582 | 3,178 | py | Python | ui/ui.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | ui/ui.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | ui/ui.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | import redis
from rq import Queue, Connection
from flask import Flask, render_template, Blueprint, jsonify, request
import tasks
import rq_dashboard
from wingnut import Wingnut
app = Flask(
__name__,
template_folder="./templates",
static_folder="./static",
)
app.config.from_object(rq_dashb... | 29.425926 | 77 | 0.608559 | 337 | 3,178 | 5.52819 | 0.25816 | 0.082662 | 0.064412 | 0.072464 | 0.331723 | 0.271605 | 0.234031 | 0.234031 | 0.234031 | 0.234031 | 0 | 0.014523 | 0.241661 | 3,178 | 107 | 78 | 29.700935 | 0.758506 | 0 | 0 | 0.308511 | 0 | 0 | 0.189113 | 0.020768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.06383 | 0.010638 | 0.191489 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91a63511fb79b5745ac6428aee3eedeaa5046fe6 | 1,410 | py | Python | omkar/code.py | omi28/ga-learner-dst-repo | 396c35ea56028717a96aed6ca771e39ebf68dc5b | [
"MIT"
] | null | null | null | omkar/code.py | omi28/ga-learner-dst-repo | 396c35ea56028717a96aed6ca771e39ebf68dc5b | [
"MIT"
] | null | null | null | omkar/code.py | omi28/ga-learner-dst-repo | 396c35ea56028717a96aed6ca771e39ebf68dc5b | [
"MIT"
] | null | null | null | # --------------
# Importing header files
import numpy as np
import warnings
warnings.filterwarnings('ignore')
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#New record
#Reading file
data = np.genfromtxt(path, delimiter=",", skip_header=1)
data.shape
cenus=np.concatenate((new_record,data),axis=0)
cenus.... | 20.434783 | 57 | 0.719858 | 246 | 1,410 | 3.878049 | 0.247967 | 0.050314 | 0.057652 | 0.041929 | 0.062893 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0.039231 | 0.114184 | 1,410 | 68 | 58 | 20.735294 | 0.72458 | 0.085816 | 0 | 0 | 0 | 0 | 0.005771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.26 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91aa65150dc0f4a17f1e9ed16821f5753cc86fa6 | 389 | py | Python | python/Excel/enumerateCells.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | python/Excel/enumerateCells.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | python/Excel/enumerateCells.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | import openpyxl
wb = openpyxl.load_workbook('example.xlsx')
sheet = wb.get_sheet_by_name('Sheet1')
rows = sheet.get_highest_row()
cols = sheet.get_highest_column()
for i in range(1, rows + 1):
for j in range(1, cols + 1):
print('%s: %s' % (sheet.cell(row=i, column=j).coordinate, sheet.cell(row=i, column=j).... | 32.416667 | 96 | 0.59126 | 57 | 389 | 3.894737 | 0.491228 | 0.072072 | 0.135135 | 0.117117 | 0.18018 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.138817 | 389 | 12 | 97 | 32.416667 | 0.647761 | 0 | 0 | 0 | 0 | 0 | 0.182058 | 0.118734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
91ac9d140e7247cc524f64941c877611ed2cbd70 | 6,257 | py | Python | CurrencyExchange.py | aarana14/CurrencyExchange | e3f35c1481acf19683a74a41509b1dd37ae48594 | [
"MIT"
] | null | null | null | CurrencyExchange.py | aarana14/CurrencyExchange | e3f35c1481acf19683a74a41509b1dd37ae48594 | [
"MIT"
] | null | null | null | CurrencyExchange.py | aarana14/CurrencyExchange | e3f35c1481acf19683a74a41509b1dd37ae48594 | [
"MIT"
] | null | null | null | #import external libraries used in code
import requests, json
import pycountry
print('Currency Exchange')
currencies = []
def findCurrency():
#Finds all avaliable currencies
allCurrency = (list(pycountry.currencies))
for x in allCurrency:
y = str(x)
y = y[18:21]
#Adds th... | 38.863354 | 189 | 0.61563 | 739 | 6,257 | 5.184032 | 0.281461 | 0.028191 | 0.031323 | 0.036544 | 0.144871 | 0.102062 | 0.052728 | 0.024537 | 0 | 0 | 0 | 0.007687 | 0.293112 | 6,257 | 160 | 190 | 39.10625 | 0.858467 | 0.307496 | 0 | 0.215686 | 0 | 0.019608 | 0.194088 | 0.005331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0.009804 | 0.019608 | 0 | 0.147059 | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91ad8a5fd94219e90c24839542dbfefd0cc9fc70 | 6,142 | py | Python | scripts/analyse_bse.py | QU-XIAO/yambopy | ff65a4f90c1bfefe642ebc61e490efe781709ff9 | [
"BSD-3-Clause"
] | 21 | 2016-04-07T20:53:29.000Z | 2021-05-14T08:06:02.000Z | scripts/analyse_bse.py | alexmoratalla/yambopy | 8ec0e1e18868ccaadb3eab36c55e6a47021e257d | [
"BSD-3-Clause"
] | 22 | 2016-06-14T22:29:47.000Z | 2021-09-16T15:36:26.000Z | scripts/analyse_bse.py | alexmoratalla/yambopy | 8ec0e1e18868ccaadb3eab36c55e6a47021e257d | [
"BSD-3-Clause"
] | 15 | 2016-06-14T18:40:57.000Z | 2021-08-07T13:17:43.000Z | # Copyright (C) 2018 Alexandre Morlet, Henrique Pereira Coutada Miranda
# All rights reserved.
#
# This file is part of yambopy
#
from __future__ import print_function
from builtins import range
from yambopy import *
from qepy import *
import json
import matplotlib.pyplot as plt
import numpy as np
import sys
import arg... | 36.559524 | 122 | 0.632693 | 813 | 6,142 | 4.697417 | 0.369004 | 0.015711 | 0.007332 | 0.00995 | 0.070175 | 0.070175 | 0.042943 | 0.025137 | 0.025137 | 0.025137 | 0 | 0.006644 | 0.240313 | 6,142 | 167 | 123 | 36.778443 | 0.81183 | 0.279551 | 0 | 0.041667 | 0 | 0 | 0.238428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.114583 | 0 | 0.125 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91aeb848169969b77dd6c9be3484be7a02c40a1b | 2,218 | py | Python | tools/acetz.py | arkhipenko/AceTime | bc6e6aa530e309b62a204b7574322ba013066b06 | [
"MIT"
] | 1 | 2021-02-23T06:17:36.000Z | 2021-02-23T06:17:36.000Z | tools/acetz.py | arkhipenko/AceTime | bc6e6aa530e309b62a204b7574322ba013066b06 | [
"MIT"
] | null | null | null | tools/acetz.py | arkhipenko/AceTime | bc6e6aa530e309b62a204b7574322ba013066b06 | [
"MIT"
] | null | null | null | from typing import cast, Optional
from datetime import datetime, tzinfo, timedelta
from zonedbpy import zone_infos
from zone_processor.zone_specifier import ZoneSpecifier
from zone_processor.inline_zone_info import ZoneInfo
__version__ = '1.1'
class acetz(tzinfo):
"""An implementation of datetime.tzinfo using th... | 34.65625 | 73 | 0.628945 | 300 | 2,218 | 4.453333 | 0.226667 | 0.053892 | 0.067365 | 0.056886 | 0.50524 | 0.50524 | 0.50524 | 0.50524 | 0.50524 | 0.50524 | 0 | 0.023213 | 0.261948 | 2,218 | 63 | 74 | 35.206349 | 0.792914 | 0.038774 | 0 | 0.48 | 0 | 0 | 0.166273 | 0.113368 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.12 | false | 0 | 0.1 | 0.02 | 0.34 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91b37c8672721c9195859e7e71caa5db1a857b4d | 25,928 | py | Python | examples/run_chemistry_parser.py | ZhuoyuWei/transformers | 16d0ebd55d17dd5095231566a0544ecebd56bc9c | [
"Apache-2.0"
] | null | null | null | examples/run_chemistry_parser.py | ZhuoyuWei/transformers | 16d0ebd55d17dd5095231566a0544ecebd56bc9c | [
"Apache-2.0"
] | null | null | null | examples/run_chemistry_parser.py | ZhuoyuWei/transformers | 16d0ebd55d17dd5095231566a0544ecebd56bc9c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2019 The HuggingFace Inc. team.
# Copyright (c) 2019 The HuggingFace 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.a... | 34.432935 | 127 | 0.612234 | 3,024 | 25,928 | 5.005622 | 0.146825 | 0.016384 | 0.028077 | 0.007994 | 0.373258 | 0.300522 | 0.261214 | 0.209355 | 0.185704 | 0.154258 | 0 | 0.007957 | 0.277808 | 25,928 | 752 | 128 | 34.478723 | 0.800427 | 0.144747 | 0 | 0.294798 | 0 | 0.001927 | 0.115507 | 0.013172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021195 | false | 0.001927 | 0.026975 | 0.001927 | 0.063584 | 0.017341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
91b47f9da5c47dfa6628ace04164ad0d1bc8a057 | 1,710 | py | Python | vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py | duanqiaobb/vim-for-java | 01b60e4494e65a73c9a9de00f50259d8a7c8d0bb | [
"MIT"
] | null | null | null | vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py | duanqiaobb/vim-for-java | 01b60e4494e65a73c9a9de00f50259d8a7c8d0bb | [
"MIT"
] | null | null | null | vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py | duanqiaobb/vim-for-java | 01b60e4494e65a73c9a9de00f50259d8a7c8d0bb | [
"MIT"
] | null | null | null | from test.vim_test_case import VimTestCase as _VimTest
from test.constant import *
# Anonymous Expansion {{{#
class _AnonBase(_VimTest):
args = ''
def _extra_options_pre_init(self, vim_config):
vim_config.append('inoremap <silent> %s <C-R>=UltiSnips#Anon(%s)<cr>'
% (EA, se... | 25.147059 | 77 | 0.615789 | 214 | 1,710 | 4.742991 | 0.271028 | 0.079803 | 0.124138 | 0.118227 | 0.539901 | 0.461084 | 0.423645 | 0.362562 | 0.151724 | 0.151724 | 0 | 0.034928 | 0.229825 | 1,710 | 67 | 78 | 25.522388 | 0.735763 | 0.031579 | 0 | 0.348837 | 0 | 0 | 0.300424 | 0.016959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.953488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |