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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd8d8365ca2301a760424dae1ee2e706688adc1f | 9,678 | py | Python | main/views.py | QingShuiXiFan/Style-Transfer | f79951323cdfd0c72f2157623209d9067376306b | [
"Apache-2.0"
] | null | null | null | main/views.py | QingShuiXiFan/Style-Transfer | f79951323cdfd0c72f2157623209d9067376306b | [
"Apache-2.0"
] | null | null | null | main/views.py | QingShuiXiFan/Style-Transfer | f79951323cdfd0c72f2157623209d9067376306b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, render_to_response, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse, FileResponse
from django.urls import reverse
import os
from django.contrib.auth import authenticate, login, logout # 两个默认的用户认证和管理应用中的方法
from django.contrib import auth
from django... | 36.247191 | 198 | 0.615726 | 1,060 | 9,678 | 5.471698 | 0.295283 | 0.043448 | 0.068793 | 0.083276 | 0.257931 | 0.149483 | 0.112931 | 0.112931 | 0.072586 | 0.072586 | 0 | 0.0035 | 0.262038 | 9,678 | 266 | 199 | 36.383459 | 0.808597 | 0.105807 | 0 | 0.170213 | 0 | 0 | 0.16087 | 0.036175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101064 | false | 0.042553 | 0.085106 | 0.053191 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd8e00f631a120690eef589a528899913c4b3443 | 781 | py | Python | edj/Spot_square.py | CircuitLaunch/Spot_Bootcamp | 47735ce474a59c5478099f6095b68c46b77d3da6 | [
"BSD-3-Clause"
] | null | null | null | edj/Spot_square.py | CircuitLaunch/Spot_Bootcamp | 47735ce474a59c5478099f6095b68c46b77d3da6 | [
"BSD-3-Clause"
] | null | null | null | edj/Spot_square.py | CircuitLaunch/Spot_Bootcamp | 47735ce474a59c5478099f6095b68c46b77d3da6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from Spot import *
import time
from bosdyn.client import math_helpers
if __name__ == '__main__':
spot = Spot()
try:
# It's ALIVE!
spot.power_on()
spot.move_to(1.0, 0.0, 0.0, math_helpers.Quat(), duration=5.0)
time.sleep(5.0)
spot.move_to(0.0, 1... | 21.694444 | 71 | 0.577465 | 129 | 781 | 3.356589 | 0.341085 | 0.064665 | 0.055427 | 0.127021 | 0.48037 | 0.48037 | 0.48037 | 0.48037 | 0.48037 | 0.48037 | 0 | 0.076923 | 0.267606 | 781 | 35 | 72 | 22.314286 | 0.68007 | 0.056338 | 0 | 0.227273 | 0 | 0 | 0.077657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd90fb8f4961d4f54d2eb80fcec8b04e412e1af3 | 626 | py | Python | sources/classic/messaging_kombu/handlers.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | 1 | 2021-11-12T08:19:53.000Z | 2021-11-12T08:19:53.000Z | sources/classic/messaging_kombu/handlers.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | null | null | null | sources/classic/messaging_kombu/handlers.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Dict, Any, Callable
from kombu import Message
from classic.components import component
MessageBody = Dict[str, Any]
@component
class MessageHandler(ABC):
@abstractmethod
def handle(self, message: Message, body: MessageBody):
pass
@component... | 18.969697 | 58 | 0.680511 | 72 | 626 | 5.875 | 0.416667 | 0.049645 | 0.061466 | 0.094563 | 0.297872 | 0.198582 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0.233227 | 626 | 32 | 59 | 19.5625 | 0.88125 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd937e31435e325df9a3ac8d8fa5487807539935 | 1,440 | py | Python | byceps/services/shop/order/event_service.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 33 | 2018-01-16T02:04:51.000Z | 2022-03-22T22:57:29.000Z | byceps/services/shop/order/event_service.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 7 | 2019-06-16T22:02:03.000Z | 2021-10-02T13:45:31.000Z | byceps/services/shop/order/event_service.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 14 | 2019-06-01T21:39:24.000Z | 2022-03-14T17:56:43.000Z | """
byceps.services.shop.order.event_service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from __future__ import annotations
from datetime import datetime
from typing import Sequence
from ....database import db
from .d... | 26.181818 | 76 | 0.690972 | 182 | 1,440 | 5.285714 | 0.379121 | 0.065489 | 0.058212 | 0.053015 | 0.212058 | 0.191268 | 0.164241 | 0.101871 | 0.101871 | 0 | 0 | 0.006728 | 0.174306 | 1,440 | 54 | 77 | 26.666667 | 0.802355 | 0.21875 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd95b58b744f084920dc507989ebf490290a8ec2 | 637 | py | Python | app/models/columns/suit.py | abcnever/euchre-game | 5446e345e0dfdcf83d5fe87c3d2cedc31b3ae669 | [
"MIT"
] | 1 | 2018-12-31T05:38:56.000Z | 2018-12-31T05:38:56.000Z | app/models/columns/suit.py | abcnever/euchre-game | 5446e345e0dfdcf83d5fe87c3d2cedc31b3ae669 | [
"MIT"
] | 4 | 2018-11-03T15:51:13.000Z | 2019-01-12T21:09:23.000Z | app/models/columns/suit.py | abcnever/euchre-game | 5446e345e0dfdcf83d5fe87c3d2cedc31b3ae669 | [
"MIT"
] | null | null | null | from attr import attrs, attrib
import enum
from .enum import EnumColumn
class Suit(EnumColumn):
class Enum(enum.Enum):
@attrs(frozen=True)
class _Suit():
suit_name = attrib()
ascii_icon = attrib()
spades = _Suit(
suit_name="Spades",
ascii_i... | 21.233333 | 40 | 0.486656 | 65 | 637 | 4.615385 | 0.384615 | 0.15 | 0.16 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047244 | 0.401884 | 637 | 29 | 41 | 21.965517 | 0.729659 | 0 | 0 | 0 | 0 | 0 | 0.089482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd977d3ad4e8e4d9141853e4e08a51d0ffa0f771 | 1,881 | py | Python | dataset.py | sreza1/Diabetic-Retinopathy-Detection | 75f10423ef161d3040756253a8ba0b9012e391b7 | [
"MIT"
] | null | null | null | dataset.py | sreza1/Diabetic-Retinopathy-Detection | 75f10423ef161d3040756253a8ba0b9012e391b7 | [
"MIT"
] | null | null | null | dataset.py | sreza1/Diabetic-Retinopathy-Detection | 75f10423ef161d3040756253a8ba0b9012e391b7 | [
"MIT"
] | null | null | null | import config
import os
import pandas as pd
import numpy as np
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from tqdm import tqdm
class DRDataset(Dataset):
def __init__(self, images_folder, path_to_csv, train=True, transform=None):
super().__init__()
self.data = pd.read_cs... | 29.857143 | 84 | 0.617757 | 245 | 1,881 | 4.497959 | 0.379592 | 0.098004 | 0.043557 | 0.049002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009559 | 0.27698 | 1,881 | 63 | 85 | 29.857143 | 0.800735 | 0.12068 | 0 | 0 | 0 | 0 | 0.042991 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.190476 | 0.02381 | 0.333333 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd988eff24525966178311b4c694188e2f3b5038 | 507 | py | Python | server/server.py | Filipos27/Celebrity_classification | 802474516b9ecaee70c4019600572bbbbd8b582a | [
"MIT"
] | null | null | null | server/server.py | Filipos27/Celebrity_classification | 802474516b9ecaee70c4019600572bbbbd8b582a | [
"MIT"
] | null | null | null | server/server.py | Filipos27/Celebrity_classification | 802474516b9ecaee70c4019600572bbbbd8b582a | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify
import util
app= Flask(__name__)
@app.route("/classify_image",methods=["GET","POST"])
def classify_image():
image_data=request.form["image_data"]
response=jsonify(util.classify_image(image_data))
response.headers.add("Access-Control-Allow-Origin","*")
... | 28.166667 | 77 | 0.710059 | 63 | 507 | 5.396825 | 0.634921 | 0.114706 | 0.105882 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009412 | 0.161736 | 507 | 17 | 78 | 29.823529 | 0.790588 | 0 | 0 | 0 | 0 | 0 | 0.267894 | 0.055215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cd9a1323c7a15a9388bdc8532ce60de3beb414fa | 7,827 | py | Python | tests/e2e/performance/csi_tests/test_pvc_bulk_clone_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | 1 | 2021-03-12T09:01:36.000Z | 2021-03-12T09:01:36.000Z | tests/e2e/performance/csi_tests/test_pvc_bulk_clone_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | 1 | 2021-08-30T20:06:00.000Z | 2021-09-30T20:05:46.000Z | tests/e2e/performance/csi_tests/test_pvc_bulk_clone_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | null | null | null | """
Test to measure pvc scale creation time. Total pvc count would be 50, 1 clone per PVC
Total number of clones in bulk will be 50
"""
import logging
import pytest
from ocs_ci.utility import utils
from ocs_ci.ocs.perftests import PASTest
from ocs_ci.framework.testlib import performance
from ocs_ci.helpers import help... | 38.747525 | 118 | 0.614028 | 979 | 7,827 | 4.575077 | 0.191011 | 0.060951 | 0.078589 | 0.010717 | 0.336459 | 0.230409 | 0.187765 | 0.132842 | 0.126814 | 0.099129 | 0 | 0.005232 | 0.316213 | 7,827 | 201 | 119 | 38.940299 | 0.831652 | 0.095311 | 0 | 0.089655 | 0 | 0.006897 | 0.109359 | 0.009746 | 0 | 0 | 0 | 0 | 0.006897 | 1 | 0.02069 | false | 0 | 0.062069 | 0 | 0.096552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2696d944b45b7b26bd7dbbe253779f41871a415a | 7,779 | py | Python | islandGen.py | Popcorn05/IslandGen | a06821c1db8f33befb1fb3db32fd2e18d323a23a | [
"MIT"
] | null | null | null | islandGen.py | Popcorn05/IslandGen | a06821c1db8f33befb1fb3db32fd2e18d323a23a | [
"MIT"
] | null | null | null | islandGen.py | Popcorn05/IslandGen | a06821c1db8f33befb1fb3db32fd2e18d323a23a | [
"MIT"
] | null | null | null | #Import libraries
import random
import os
import noise
import numpy
import math
import sys
from chunks import Chunks as chk
from PIL import Image
import subprocess
from scipy.misc import toimage
import threading
random.seed(os.urandom(6))
#Delete old chunks
filelist = [ f for f in os.listdir("world/") if f.endswith... | 33.530172 | 202 | 0.549556 | 1,085 | 7,779 | 3.913364 | 0.257143 | 0.02261 | 0.049458 | 0.03203 | 0.311116 | 0.233867 | 0.197833 | 0.19171 | 0.131418 | 0.131418 | 0 | 0.054748 | 0.319064 | 7,779 | 232 | 203 | 33.530172 | 0.746838 | 0.118396 | 0 | 0.287293 | 0 | 0 | 0.006449 | 0.003518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027624 | false | 0.049724 | 0.066298 | 0.005525 | 0.099448 | 0.005525 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26978b08939270913183c7dd0c609cfa2e52874f | 4,363 | py | Python | reagent/gym/tests/test_gym_replay_buffer.py | dmitryvinn/ReAgent | f98825b9d021ec353a1f9087840a05fea259bf42 | [
"BSD-3-Clause"
] | 1,156 | 2019-10-02T12:15:31.000Z | 2022-03-31T16:01:27.000Z | reagent/gym/tests/test_gym_replay_buffer.py | dmitryvinn/ReAgent | f98825b9d021ec353a1f9087840a05fea259bf42 | [
"BSD-3-Clause"
] | 448 | 2019-10-03T13:40:52.000Z | 2022-03-28T07:49:15.000Z | reagent/gym/tests/test_gym_replay_buffer.py | dmitryvinn/ReAgent | f98825b9d021ec353a1f9087840a05fea259bf42 | [
"BSD-3-Clause"
] | 214 | 2019-10-13T13:28:33.000Z | 2022-03-24T04:11:52.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import numpy.testing as npt
from reagent.core.parameters import ProblemDomain
from reagent.gym.envs import Gym
from reagent.gym.envs.wrappers.simple_minigrid import SimpleObsWrapper
from reagent.gym.utils impo... | 33.821705 | 86 | 0.60165 | 543 | 4,363 | 4.593002 | 0.26151 | 0.020048 | 0.036087 | 0.017642 | 0.179631 | 0.092221 | 0.056135 | 0.056135 | 0.032879 | 0 | 0 | 0.014469 | 0.303003 | 4,363 | 128 | 87 | 34.085938 | 0.805656 | 0.082054 | 0 | 0.060606 | 0 | 0 | 0.02993 | 0.005282 | 0 | 0 | 0 | 0 | 0.10101 | 1 | 0.050505 | false | 0 | 0.080808 | 0.010101 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
269a18ede77adaabe0e01c16057d910f3519fa89 | 30,573 | py | Python | depparse.py | viadee/eric | 680508cc5bf2d322638c6cf2c466a06c3c1f33d4 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"CC0-1.0",
"BSD-3-Clause"
] | 4 | 2020-04-07T07:05:02.000Z | 2020-09-23T14:23:16.000Z | depparse.py | viadee/eric | 680508cc5bf2d322638c6cf2c466a06c3c1f33d4 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | depparse.py | viadee/eric | 680508cc5bf2d322638c6cf2c466a06c3c1f33d4 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"CC0-1.0",
"BSD-3-Clause"
] | 1 | 2021-12-27T03:00:44.000Z | 2021-12-27T03:00:44.000Z | import pickle
import stanza
import test_stuff
from datetime import datetime
from dictionary import cd, dictionary, nlp_dictionary, ph_outcome, ph_key, ph_value, ph_dvalue, ph_subject
import eric_nlp
#does not do preprocessing
def depparse(sentences, pipeline):
output = ["OUTPUT:\n"]
roots = dict()
for sen... | 40.387054 | 384 | 0.603735 | 4,023 | 30,573 | 4.391996 | 0.125031 | 0.011602 | 0.015281 | 0.012678 | 0.2707 | 0.185579 | 0.138152 | 0.108495 | 0.099666 | 0.079065 | 0 | 0.007568 | 0.30419 | 30,573 | 756 | 385 | 40.440476 | 0.823015 | 0.165604 | 0 | 0.26975 | 0 | 0.001927 | 0.07377 | 0.025234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046243 | false | 0.011561 | 0.011561 | 0.001927 | 0.098266 | 0.044316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
269ad28a75a19ae401ecbe624997f530c5904d6d | 706 | py | Python | ch03/simple_cbow_pytorch.py | tomy-0000/deep-learning-from-scratch-2 | 3d3d7fd614b8021499ffc103199be5e32622717e | [
"MIT"
] | null | null | null | ch03/simple_cbow_pytorch.py | tomy-0000/deep-learning-from-scratch-2 | 3d3d7fd614b8021499ffc103199be5e32622717e | [
"MIT"
] | null | null | null | ch03/simple_cbow_pytorch.py | tomy-0000/deep-learning-from-scratch-2 | 3d3d7fd614b8021499ffc103199be5e32622717e | [
"MIT"
] | null | null | null | # coding: utf-8
import torch.nn as nn
class SimpleCBOW(nn.Module):
def __init__(self, vocab_size, hidden_size):
super(SimpleCBOW, self).__init__()
V, H = vocab_size, hidden_size
self.in_layer = nn.Linear(V, H, bias=False)
self.out_layer = nn.Linear(H, V, bias=False)
self.... | 27.153846 | 54 | 0.609065 | 100 | 706 | 4.09 | 0.44 | 0.05868 | 0.107579 | 0.09291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.260623 | 706 | 25 | 55 | 28.24 | 0.766284 | 0.018414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.055556 | 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 |
269c16b6afd598ff0e05a59d38e14e46ebde748b | 7,814 | py | Python | modules/input_output.py | nicolasying/WordNet-Embeddings | a6a5782dca97376e487df41fb83542729f284197 | [
"MIT"
] | null | null | null | modules/input_output.py | nicolasying/WordNet-Embeddings | a6a5782dca97376e487df41fb83542729f284197 | [
"MIT"
] | null | null | null | modules/input_output.py | nicolasying/WordNet-Embeddings | a6a5782dca97376e487df41fb83542729f284197 | [
"MIT"
] | null | null | null | # coding=utf-8
#! /usr/bin/env python3.4
"""
MIT License
Copyright (c) 2018 NLX-Group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights... | 36.344186 | 126 | 0.572562 | 972 | 7,814 | 4.486626 | 0.291152 | 0.01651 | 0.024077 | 0.020179 | 0.15524 | 0.094474 | 0.060995 | 0.052282 | 0.052282 | 0.052282 | 0 | 0.009253 | 0.294599 | 7,814 | 214 | 127 | 36.514019 | 0.78193 | 0.222805 | 0 | 0.20438 | 0 | 0 | 0.152505 | 0.029407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051095 | false | 0 | 0.021898 | 0 | 0.087591 | 0.065693 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
269f222cd807eb64aa23f3a0beb347f29492e7b2 | 4,089 | py | Python | dqc/utils/safeops.py | Jaikinator/dqc | 47c964c7d1323a35f4f69521d40476c41843810e | [
"Apache-2.0"
] | 39 | 2021-05-31T17:01:23.000Z | 2022-03-23T19:20:35.000Z | dqc/utils/safeops.py | Jaikinator/dqc | 47c964c7d1323a35f4f69521d40476c41843810e | [
"Apache-2.0"
] | 14 | 2021-09-01T13:39:11.000Z | 2022-03-13T16:45:39.000Z | dqc/utils/safeops.py | Jaikinator/dqc | 47c964c7d1323a35f4f69521d40476c41843810e | [
"Apache-2.0"
] | 6 | 2021-07-16T09:08:29.000Z | 2022-02-24T01:13:54.000Z | import math
import torch
from typing import Union, Optional, Tuple
from dqc.utils.datastruct import ZType
eps = 1e-12
########################## safe operations ##########################
def safepow(a: torch.Tensor, p: torch.Tensor, eps: float = 1e-12) -> torch.Tensor:
if torch.any(a < 0):
raise Runtime... | 36.837838 | 106 | 0.595011 | 580 | 4,089 | 4.072414 | 0.253448 | 0.042337 | 0.017782 | 0.027942 | 0.225233 | 0.212955 | 0.212955 | 0.118544 | 0.118544 | 0.061812 | 0 | 0.008581 | 0.258988 | 4,089 | 110 | 107 | 37.172727 | 0.770957 | 0.147713 | 0 | 0.194805 | 0 | 0 | 0.063746 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.103896 | false | 0 | 0.051948 | 0.012987 | 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 |
269fd1b0bc7030c4e1f6c761faa1320701f6d9dc | 4,713 | py | Python | extra_envs/extra_envs/envs/point.py | Fanshaoliu/safe_rl | 16ab54bebb70a86a80e1bfadb62656afb1547965 | [
"MIT"
] | 13 | 2021-06-19T03:19:36.000Z | 2022-03-29T10:44:37.000Z | extra_envs/extra_envs/envs/point.py | Fanshaoliu/safe_rl | 16ab54bebb70a86a80e1bfadb62656afb1547965 | [
"MIT"
] | 5 | 2021-06-16T20:06:51.000Z | 2021-12-14T22:55:54.000Z | extra_envs/extra_envs/envs/point.py | Fanshaoliu/safe_rl | 16ab54bebb70a86a80e1bfadb62656afb1547965 | [
"MIT"
] | 4 | 2021-11-03T13:30:08.000Z | 2022-01-05T11:16:47.000Z | import numpy as np
import gym
from gym import spaces
from gym.utils import seeding
class PointEnv(gym.Env):
metadata = {'render.modes': ['human', 'rgb_array'],
'video.frames_per_second' : 30}
def __init__(self, mass=1., target_dist=5., xlim=2.5, cost_smoothing=0.):
self.mass = mass
... | 38.317073 | 92 | 0.569064 | 637 | 4,713 | 4.072214 | 0.205651 | 0.065921 | 0.026985 | 0.021588 | 0.250193 | 0.216654 | 0.14919 | 0.14919 | 0.132614 | 0.132614 | 0 | 0.030862 | 0.298748 | 4,713 | 122 | 93 | 38.631148 | 0.754009 | 0.026947 | 0 | 0.086957 | 0 | 0 | 0.013755 | 0.005022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0 | 0.054348 | 0.032609 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26aabfb0114adf3aa767a0e26c7a937d741efc5e | 9,018 | py | Python | factom_core/blocks/entry_credit_block.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | factom_core/blocks/entry_credit_block.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | factom_core/blocks/entry_credit_block.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | import hashlib
import struct
from dataclasses import dataclass, field
from typing import Dict, List, Union
from factom_core.block_elements.balance_increase import BalanceIncrease
from factom_core.block_elements.chain_commit import ChainCommit
from factom_core.block_elements.entry_commit import EntryCommit
from factom_... | 36.216867 | 118 | 0.622422 | 991 | 9,018 | 5.455096 | 0.177598 | 0.033296 | 0.025897 | 0.018498 | 0.378838 | 0.301147 | 0.250832 | 0.241953 | 0.188309 | 0.151313 | 0 | 0.018622 | 0.285429 | 9,018 | 248 | 119 | 36.362903 | 0.820298 | 0.092038 | 0 | 0.25641 | 0 | 0 | 0.033457 | 0.007901 | 0 | 0 | 0.001975 | 0.004032 | 0.020513 | 1 | 0.092308 | false | 0.020513 | 0.046154 | 0.015385 | 0.292308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26ac0f2a19c349ef5a8b08d5da941091d8465553 | 487 | py | Python | alpinelib/aws/aws_lambda.py | nbcnews/alpinelib | 8e0d065611b69fdc431ca30ca1a257516670bcf9 | [
"MIT"
] | null | null | null | alpinelib/aws/aws_lambda.py | nbcnews/alpinelib | 8e0d065611b69fdc431ca30ca1a257516670bcf9 | [
"MIT"
] | null | null | null | alpinelib/aws/aws_lambda.py | nbcnews/alpinelib | 8e0d065611b69fdc431ca30ca1a257516670bcf9 | [
"MIT"
] | null | null | null | import boto3
from .. import logging
logger = logging.getFormattedLogger()
lambda_client = boto3.client('lambda', region_name='us-west-2')
def invoke(function_name, message):
try:
response = lambda_client.invoke(
FunctionName=function_name,
InvocationType='Event',
Payl... | 24.35 | 77 | 0.648871 | 52 | 487 | 5.961538 | 0.615385 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008287 | 0.256674 | 487 | 19 | 78 | 25.631579 | 0.848066 | 0 | 0 | 0 | 0 | 0 | 0.096509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26ad9a93696193c618815ae5d8967a74a464da8c | 766 | py | Python | test/test_lazy.py | sixty-north/python-transducers | 575357e3a17ff3b4c757967afd396bf0ea042c08 | [
"MIT"
] | 54 | 2015-10-02T02:45:36.000Z | 2021-06-22T04:40:33.000Z | test/test_lazy.py | sixty-north/python-transducers | 575357e3a17ff3b4c757967afd396bf0ea042c08 | [
"MIT"
] | 3 | 2017-06-11T13:39:18.000Z | 2017-06-12T06:07:24.000Z | test/test_lazy.py | sixty-north/python-transducers | 575357e3a17ff3b4c757967afd396bf0ea042c08 | [
"MIT"
] | 9 | 2015-10-28T23:36:50.000Z | 2019-01-11T13:47:05.000Z | import unittest
from transducer.functional import compose
from transducer.lazy import transduce
from transducer.transducers import (mapping, filtering, taking, dropping_while, distinct)
class TestComposedTransducers(unittest.TestCase):
def test_chained_transducers(self):
result = transduce(transducer=com... | 31.916667 | 89 | 0.574413 | 78 | 766 | 5.487179 | 0.576923 | 0.018692 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02549 | 0.334204 | 766 | 23 | 90 | 33.304348 | 0.813725 | 0 | 0 | 0 | 0 | 0 | 0.010444 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26adf150baad599be77596f054bbe7e015db202c | 2,246 | py | Python | cmake_pc_hooks/cppcheck.py | Takishima/cmake-pre-commit-hooks | a6d96865602f68f413f7f368aa1dbbb8bf495109 | [
"Apache-2.0"
] | 2 | 2021-08-10T21:48:05.000Z | 2022-02-28T11:46:51.000Z | cmake_pc_hooks/cppcheck.py | Takishima/cmake-pre-commit-hooks | a6d96865602f68f413f7f368aa1dbbb8bf495109 | [
"Apache-2.0"
] | null | null | null | cmake_pc_hooks/cppcheck.py | Takishima/cmake-pre-commit-hooks | a6d96865602f68f413f7f368aa1dbbb8bf495109 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Damien Nguyen
#
# 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... | 29.946667 | 116 | 0.662066 | 296 | 2,246 | 4.908784 | 0.537162 | 0.041294 | 0.024776 | 0.044047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010514 | 0.237756 | 2,246 | 74 | 117 | 30.351351 | 0.838201 | 0.501781 | 0 | 0 | 0 | 0 | 0.154916 | 0.055611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
26af8dafdbc00b0bb2091823b9a4a72611dc7cfc | 521 | py | Python | apps/boards/apps.py | julianwachholz/thefarland | c7259311fafb60beba167422eefd0d0c5d362514 | [
"WTFPL"
] | null | null | null | apps/boards/apps.py | julianwachholz/thefarland | c7259311fafb60beba167422eefd0d0c5d362514 | [
"WTFPL"
] | null | null | null | apps/boards/apps.py | julianwachholz/thefarland | c7259311fafb60beba167422eefd0d0c5d362514 | [
"WTFPL"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_save, post_delete
from . import signals
class BoardsAppConfig(AppConfig):
name = 'apps.boards'
def ready(self):
Board = self.get_model('Board')
Thread = self.get_model('Thread')
Post = self.get_model('Post')
... | 30.647059 | 70 | 0.71785 | 69 | 521 | 5.217391 | 0.347826 | 0.111111 | 0.1 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182342 | 521 | 16 | 71 | 32.5625 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.049904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 |
26af8f12a06f8edb90f5fc54b553edce179f388f | 2,445 | py | Python | danmu.py | wjhtime/douyu_danmu_python | 432198f86bc9f6facd7ef531f301e8c7c8a9285f | [
"MIT"
] | 4 | 2018-12-15T10:35:20.000Z | 2019-06-04T20:20:32.000Z | danmu.py | wjhtime/douyu_danmu_python | 432198f86bc9f6facd7ef531f301e8c7c8a9285f | [
"MIT"
] | null | null | null | danmu.py | wjhtime/douyu_danmu_python | 432198f86bc9f6facd7ef531f301e8c7c8a9285f | [
"MIT"
] | 2 | 2019-04-29T08:20:08.000Z | 2020-05-19T09:51:19.000Z | '''
利用斗鱼弹幕 api
尝试抓取斗鱼tv指定房间的弹幕
'''
import multiprocessing
import socket
import time
import re
import signal
# 构造socket连接,和斗鱼api服务器相连接
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostbyname("openbarrage.douyutv.com")
port = 8601
client.connect((host, port))
# 弹幕查询正则表达式
danmu_re = re.co... | 21.447368 | 75 | 0.578323 | 285 | 2,445 | 4.807018 | 0.463158 | 0.025547 | 0.036496 | 0.037956 | 0.110949 | 0.084672 | 0.084672 | 0.046715 | 0.046715 | 0.046715 | 0 | 0.025452 | 0.276892 | 2,445 | 113 | 76 | 21.637168 | 0.749434 | 0.112065 | 0 | 0.079365 | 0 | 0 | 0.103019 | 0.052228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.079365 | 0 | 0.15873 | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26afa6ab00539bb702ecf9ce1071e801dd9694da | 3,828 | py | Python | 03_spider_douyin/spider_douyin.py | theThreeKingdom/python-exercises | fc08a7bbb9d6b53d5761b9e1017f293bff4e26db | [
"Apache-2.0"
] | null | null | null | 03_spider_douyin/spider_douyin.py | theThreeKingdom/python-exercises | fc08a7bbb9d6b53d5761b9e1017f293bff4e26db | [
"Apache-2.0"
] | null | null | null | 03_spider_douyin/spider_douyin.py | theThreeKingdom/python-exercises | fc08a7bbb9d6b53d5761b9e1017f293bff4e26db | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/4/1 0:48
# @Author : Nixin
# @Email : nixin@foxmail.com
# @File : spider_douyin.py
# @Software: PyCharm
import requests, re, sys, os, time, random, socket
import http.client
from bs4 import BeautifulSoup
def get_html(url, data=None):
header = {
'Accept': '... | 33.876106 | 163 | 0.562696 | 496 | 3,828 | 4.266129 | 0.409274 | 0.008507 | 0.048204 | 0.049622 | 0.175331 | 0.127599 | 0.127599 | 0.127599 | 0.127599 | 0.111059 | 0 | 0.058932 | 0.290752 | 3,828 | 112 | 164 | 34.178571 | 0.720074 | 0.130355 | 0 | 0.181818 | 0 | 0.064935 | 0.22528 | 0.078319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0.038961 | 0.038961 | 0 | 0.116883 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26b4665a5f013ded26bc910df476a322704eda91 | 475 | py | Python | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/logcat/pagefactory/logcat_template_path.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 6 | 2018-11-26T08:42:52.000Z | 2020-06-01T08:33:48.000Z | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/logcat/pagefactory/logcat_template_path.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | null | null | null | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/logcat/pagefactory/logcat_template_path.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 1 | 2019-01-22T06:45:36.000Z | 2019-01-22T06:45:36.000Z | #coding=utf-8
'''
Created on 2015-10-10
@author: Devuser
'''
class LogcatPagePath(object):
left_nav_template_path="home/home_left_nav.html"
logger_page_path="logcat/logcat_index.html"
logger_list_page="logcat/logcat_list_page.html"
logger_list_controll="logcat/logcat_loger_list_controll.html"
... | 19 | 65 | 0.751579 | 64 | 475 | 5.203125 | 0.484375 | 0.12012 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022167 | 0.145263 | 475 | 25 | 66 | 19 | 0.79803 | 0.109474 | 0 | 0 | 0 | 0 | 0.399038 | 0.350962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 |
26b76d047c1414efdb3d56d1cf6e2c55efd68449 | 745 | py | Python | icepll.py | carlosedp/fusesoc-generators | 4ee343ce0013952bd89d6986bfb5ed861b2cf6b2 | [
"MIT"
] | null | null | null | icepll.py | carlosedp/fusesoc-generators | 4ee343ce0013952bd89d6986bfb5ed861b2cf6b2 | [
"MIT"
] | null | null | null | icepll.py | carlosedp/fusesoc-generators | 4ee343ce0013952bd89d6986bfb5ed861b2cf6b2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from fusesoc.capi2.generator import Generator
import subprocess
class IcepllGenerator(Generator):
def run(self):
fin = self.config.get('freq_in', 12)
fout = self.config.get('freq_out', 60)
module = self.config.get('module', False)
filename = self.config.... | 31.041667 | 79 | 0.555705 | 90 | 745 | 4.533333 | 0.588889 | 0.098039 | 0.127451 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.287248 | 745 | 23 | 80 | 32.391304 | 0.757062 | 0.021477 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26bd34791b254cf4bcb5957b49692dda6546cfa1 | 1,059 | py | Python | BUNKURO/BUNKURO.py | kantoku-code/Fusion360_BUNKURO | 0c83f2ab57f03c83fcad98b85b59792360f7a804 | [
"MIT"
] | 1 | 2022-03-18T13:06:57.000Z | 2022-03-18T13:06:57.000Z | BUNKURO/BUNKURO.py | kantoku-code/Fusion360_BUNKURO | 0c83f2ab57f03c83fcad98b85b59792360f7a804 | [
"MIT"
] | null | null | null | BUNKURO/BUNKURO.py | kantoku-code/Fusion360_BUNKURO | 0c83f2ab57f03c83fcad98b85b59792360f7a804 | [
"MIT"
] | null | null | null | # Author-kantoku
# Description-コンポーネント毎に分割してクローン作るよ!
# Fusion360API Python
import adsk.core
import traceback
try:
from . import config
from .apper import apper
from .commands.BUNKUROCore import BUNKUROCore
# Create our addin definition object
my_addin = apper.FusionApp(config.app_name, config.co... | 23.021739 | 75 | 0.634561 | 109 | 1,059 | 5.972477 | 0.541284 | 0.053763 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003827 | 0.259679 | 1,059 | 45 | 76 | 23.533333 | 0.826531 | 0.097262 | 0 | 0 | 0 | 0 | 0.205047 | 0.045216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.16129 | 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 |
26c07cd4c709d13692e520d5fa627ce985733c5a | 3,172 | py | Python | sfc_models/examples/scripts/deprecated/ex20170108_model_PC.py | MachineLP/SFC_models | d438a4e3e88534a206c761cda7a3f6a58ac3a0ac | [
"Apache-2.0"
] | 21 | 2016-11-03T12:30:50.000Z | 2022-03-24T06:54:14.000Z | sfc_models/examples/scripts/deprecated/ex20170108_model_PC.py | MachineLP/SFC_models | d438a4e3e88534a206c761cda7a3f6a58ac3a0ac | [
"Apache-2.0"
] | 1 | 2019-04-02T02:01:27.000Z | 2019-04-07T21:07:10.000Z | sfc_models/examples/scripts/deprecated/ex20170108_model_PC.py | MachineLP/SFC_models | d438a4e3e88534a206c761cda7a3f6a58ac3a0ac | [
"Apache-2.0"
] | 12 | 2016-11-03T12:30:57.000Z | 2021-09-14T23:08:23.000Z | """
ex20170108_model_PC.py
Create Model PC (Godley & Lavoie Chapter 4).
Copyright 2017 Brian Romanchuk
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-... | 39.65 | 122 | 0.669294 | 428 | 3,172 | 4.86215 | 0.474299 | 0.028832 | 0.024988 | 0.015377 | 0.01826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029092 | 0.187264 | 3,172 | 79 | 123 | 40.151899 | 0.778123 | 0.482661 | 0 | 0 | 0 | 0 | 0.213003 | 0.03096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.147059 | 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 |
26c5a0a8bb014c980c7a75f56eb95838d11757a4 | 2,287 | py | Python | qingcloud/cli/iaas_client/actions/cluster/deploy_app_version.py | knktc/qingcloud-cli | 2be8bba43e08bd7a76e1326ece871386cc9b5b55 | [
"Apache-2.0"
] | 11 | 2015-05-27T19:52:36.000Z | 2021-04-15T09:07:39.000Z | qingcloud/cli/iaas_client/actions/cluster/deploy_app_version.py | knktc/qingcloud-cli | 2be8bba43e08bd7a76e1326ece871386cc9b5b55 | [
"Apache-2.0"
] | 7 | 2017-07-19T05:05:03.000Z | 2019-04-25T07:18:04.000Z | qingcloud/cli/iaas_client/actions/cluster/deploy_app_version.py | knktc/qingcloud-cli | 2be8bba43e08bd7a76e1326ece871386cc9b5b55 | [
"Apache-2.0"
] | 19 | 2016-03-15T07:31:47.000Z | 2021-07-26T09:31:33.000Z | # =========================================================================
# Copyright 2012-present Yunify, Inc.
# -------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the Licens... | 40.122807 | 91 | 0.567118 | 262 | 2,287 | 4.885496 | 0.496183 | 0.054688 | 0.039844 | 0.025 | 0.098438 | 0.05625 | 0.05625 | 0.05625 | 0 | 0 | 0 | 0.006399 | 0.24836 | 2,287 | 56 | 92 | 40.839286 | 0.73822 | 0.35024 | 0 | 0.133333 | 0 | 0 | 0.246939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.366667 | 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 |
26c6baf54f78e9c92b1e52fb48aafcc91b720d02 | 1,409 | py | Python | server/getSert.py | sviridovt/WIE | 9af6d3dff7e774f5e332e6c77eadde815d4c375d | [
"MIT"
] | 1 | 2021-09-03T11:36:02.000Z | 2021-09-03T11:36:02.000Z | server/getSert.py | sviridovt/WIE | 9af6d3dff7e774f5e332e6c77eadde815d4c375d | [
"MIT"
] | null | null | null | server/getSert.py | sviridovt/WIE | 9af6d3dff7e774f5e332e6c77eadde815d4c375d | [
"MIT"
] | 1 | 2021-09-03T11:36:04.000Z | 2021-09-03T11:36:04.000Z | # allows to import RSA lib from different dir
import sys
# inserts path to access RSA encryption lib
# sys.path.insert(0, '../RSAEncryption')
import socket
import json
from libs.communication import sendEncrypted, recvEncrypted, sendData, readData
from libs.RSAKeys import readPrivateKey
from libs.EncryptedSocket imp... | 21.029851 | 79 | 0.675656 | 185 | 1,409 | 5.140541 | 0.432432 | 0.033649 | 0.050473 | 0.056782 | 0.115668 | 0.050473 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.197303 | 1,409 | 66 | 80 | 21.348485 | 0.816976 | 0.178141 | 0 | 0.232558 | 0 | 0 | 0.058515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.27907 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26c71f804645b9d738d4394f797c6533de859d14 | 7,085 | py | Python | code/billiard_game_multi_ball.py | ifsheldon/billiard_game | 1ce13d39158734efd76e617bba2bb319d5498c3f | [
"BSD-2-Clause"
] | null | null | null | code/billiard_game_multi_ball.py | ifsheldon/billiard_game | 1ce13d39158734efd76e617bba2bb319d5498c3f | [
"BSD-2-Clause"
] | null | null | null | code/billiard_game_multi_ball.py | ifsheldon/billiard_game | 1ce13d39158734efd76e617bba2bb319d5498c3f | [
"BSD-2-Clause"
] | null | null | null | import taichi as ti
import numpy as np
from functools import partial
from itertools import combinations
from billiard_game_dual_ball import normalize_vector, two_ball_collides, calc_next_pos_and_velocity, \
calc_after_collision_velocity, rectify_positions_in_collision, rectify_positions_and_velocities
# Constants... | 44.006211 | 203 | 0.651941 | 1,119 | 7,085 | 3.701519 | 0.18588 | 0.047803 | 0.03042 | 0.021729 | 0.355867 | 0.257605 | 0.146548 | 0.103573 | 0.060357 | 0.049252 | 0 | 0.023709 | 0.261821 | 7,085 | 160 | 204 | 44.28125 | 0.76826 | 0.117572 | 0 | 0.096774 | 0 | 0 | 0.009794 | 0.003854 | 0 | 0 | 0.005138 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.040323 | 0 | 0.072581 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26c8199913901f96201fe9b8091ee36c1351a53e | 347 | py | Python | examples/prompt.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | 1 | 2021-03-22T07:55:30.000Z | 2021-03-22T07:55:30.000Z | examples/prompt.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | null | null | null | examples/prompt.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | null | null | null | from bullet import Bullet, Prompt, Check, Input, YesNo
from bullet import styles
cli = Prompt(
[
Bullet("Choose from a list: ", **styles.Example),
Check("Choose from a list: ", **styles.Example),
Input("Who are you? "),
YesNo("Are you a student? ")
],
spacing = 2
)
result =... | 23.133333 | 57 | 0.599424 | 44 | 347 | 4.727273 | 0.5 | 0.096154 | 0.153846 | 0.144231 | 0.269231 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.262248 | 347 | 15 | 58 | 23.133333 | 0.808594 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26cacd8b2394e2ededf66d1f7ced4b0560e95348 | 594 | py | Python | src/volume_0/0011_Drawing_Lots.py | DaikiShimada/aoj-exercise | dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803 | [
"MIT"
] | null | null | null | src/volume_0/0011_Drawing_Lots.py | DaikiShimada/aoj-exercise | dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803 | [
"MIT"
] | null | null | null | src/volume_0/0011_Drawing_Lots.py | DaikiShimada/aoj-exercise | dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
def amida(w, side_bar):
result = []
side_bar.reverse()
for x in range(1, w+1):
status = x
for bar in side_bar:
if status == bar[0]:
status = bar[1]
elif status == bar[1]:
status = bar[0]
resu... | 21.214286 | 73 | 0.503367 | 82 | 594 | 3.487805 | 0.414634 | 0.122378 | 0.06993 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017995 | 0.345118 | 594 | 27 | 74 | 22 | 0.717224 | 0.035354 | 0 | 0 | 0 | 0 | 0.015762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26cbd6df4059d6dbdf0c29f052b92ccdc1a7a881 | 1,832 | py | Python | mglg/util/profiler.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | null | null | null | mglg/util/profiler.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | 9 | 2019-08-05T21:11:09.000Z | 2021-11-18T18:19:33.000Z | mglg/util/profiler.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | null | null | null | from timeit import default_timer
import numpy as np
class Profiler:
__slots__ = ('active', 'gpuquery', 't0',
'cpubuffer', 'gpubuffer', 'counter',
'_size', 'worst_cpu', 'worst_gpu')
def __init__(self, gpu=False, ctx=None, buffer_size=200):
self.active = False
... | 31.586207 | 90 | 0.555131 | 229 | 1,832 | 4.222707 | 0.240175 | 0.111686 | 0.074457 | 0.040331 | 0.322647 | 0.229576 | 0.229576 | 0.171665 | 0.171665 | 0.084798 | 0 | 0.027341 | 0.341157 | 1,832 | 57 | 91 | 32.140351 | 0.773819 | 0.002729 | 0 | 0.265306 | 0 | 0 | 0.037281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.040816 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26cf29a0e44e798901be0b42a84cea83caaf14fe | 364 | py | Python | plugins/rain.py | xditya/PikaBotPlugins | 2c5c52716158cd8964220bcc71fa383ccaf1210a | [
"Apache-2.0"
] | 2 | 2021-02-16T05:35:41.000Z | 2021-05-25T16:59:47.000Z | plugins/rain.py | xditya/PikaBotPlugins | 2c5c52716158cd8964220bcc71fa383ccaf1210a | [
"Apache-2.0"
] | null | null | null | plugins/rain.py | xditya/PikaBotPlugins | 2c5c52716158cd8964220bcc71fa383ccaf1210a | [
"Apache-2.0"
] | 2 | 2021-02-07T03:09:40.000Z | 2021-05-25T16:59:59.000Z | #Originally created By KingMars ✅ Rain Sequence 2 {Updated}
from telethon import events
import asyncio
from collections import deque
@ItzSjDude(outgoing=True, pattern=r"km_rain2")
async def _(event):
if event.fwd_from:
return
deq = deque(list("☁️⛈Ř/~\İŇ🌬⚡🌪"))
for _ in range(100):
await asyncio.sleep(0.1)
a... | 22.75 | 59 | 0.717033 | 60 | 364 | 4.416667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.142857 | 364 | 15 | 60 | 24.266667 | 0.798077 | 0.159341 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
26cfb507f5245413925f5d6ffbbfcea4aa484298 | 6,126 | py | Python | plot.py | lizzieayton/PrimordialOozebot | 1e330b1ac6f27bd167734ad6c6ecff70f816986a | [
"MIT"
] | null | null | null | plot.py | lizzieayton/PrimordialOozebot | 1e330b1ac6f27bd167734ad6c6ecff70f816986a | [
"MIT"
] | null | null | null | plot.py | lizzieayton/PrimordialOozebot | 1e330b1ac6f27bd167734ad6c6ecff70f816986a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import csv
import statistics
import math
plt.title('Population Diversity')
plt.ylabel('Diversity Score')
plt.xlabel('Iteration Number')
random = []
randombars = []
rmin = []
rmax = []
hill = []
hillbars = []
hmin = []
hmax = []
evo = []
emin = []
emax = []
evobars = []
cross = []
cross... | 30.939394 | 90 | 0.623572 | 658 | 6,126 | 5.799392 | 0.218845 | 0.037736 | 0.011792 | 0.014675 | 0.334382 | 0.269392 | 0.245807 | 0.245807 | 0.223008 | 0.19392 | 0 | 0.019503 | 0.238328 | 6,126 | 197 | 91 | 31.096447 | 0.798328 | 0.049625 | 0 | 0.216561 | 0 | 0 | 0.039752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025478 | 0 | 0.025478 | 0.012739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26cfea22c43edc42786c9199d503d77927f66e4d | 1,918 | py | Python | python/obra_hacks/backend/commands.py | brandond/obra-hacks | df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3 | [
"Apache-2.0"
] | null | null | null | python/obra_hacks/backend/commands.py | brandond/obra-hacks | df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3 | [
"Apache-2.0"
] | null | null | null | python/obra_hacks/backend/commands.py | brandond/obra-hacks | df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from datetime import date
import click
from .data import DISCIPLINE_MAP
from .outputs import OUTPUT_MAP
@click.command()
@click.option('--discipline', type=click.Choice(DISCIPLINE_MAP.keys()), required=True)
@click... | 34.25 | 100 | 0.684567 | 239 | 1,918 | 5.301255 | 0.451883 | 0.034728 | 0.023678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003313 | 0.213243 | 1,918 | 55 | 101 | 34.872727 | 0.836315 | 0.142336 | 0 | 0 | 0 | 0 | 0.08369 | 0.029933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.294118 | 0 | 0.323529 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26d2a8925926b05405485ed3b4fa01550942c26f | 657 | py | Python | join_json.py | ryavorsky/med_robo | 56f8d2067921ef7208166380e50af0600c10032a | [
"CC0-1.0"
] | null | null | null | join_json.py | ryavorsky/med_robo | 56f8d2067921ef7208166380e50af0600c10032a | [
"CC0-1.0"
] | null | null | null | join_json.py | ryavorsky/med_robo | 56f8d2067921ef7208166380e50af0600c10032a | [
"CC0-1.0"
] | null | null | null | import json
with open('bibliography.json', 'r', encoding='utf-8') as bib_data:
bib = sorted(json.load(bib_data), key=lambda d: d['ID'])
with open('abstracts.json', 'r', encoding='utf-8') as tex_data:
tex = sorted(json.load(tex_data), key=lambda d: d['ID'])
ID1 = [b['ID'] for b in bib]
ID2 = [t['ID'... | 28.565217 | 82 | 0.614916 | 110 | 657 | 3.572727 | 0.463636 | 0.061069 | 0.091603 | 0.10687 | 0.183206 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0.01306 | 0.18417 | 657 | 22 | 83 | 29.863636 | 0.720149 | 0 | 0 | 0 | 0 | 0 | 0.175079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26d8d630adbf36e69e2b1f614c164c0bdbf94301 | 7,563 | py | Python | pizzerias/pizzerias_search.py | LiushaHe0317/pizzerias_block_search | 16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b | [
"MIT"
] | null | null | null | pizzerias/pizzerias_search.py | LiushaHe0317/pizzerias_block_search | 16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b | [
"MIT"
] | null | null | null | pizzerias/pizzerias_search.py | LiushaHe0317/pizzerias_block_search | 16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b | [
"MIT"
] | null | null | null | from typing import Sequence
import numpy
class PizzeriasSearcher:
"""
This object takes the size of the city and number of shops, and construct the matrices each shop delivery can cover
and number of delivery for each cell in the city. It can also computes number of delivery for a given cell,
... | 42.728814 | 123 | 0.627793 | 1,092 | 7,563 | 4.203297 | 0.14652 | 0.014379 | 0.038344 | 0.049673 | 0.301961 | 0.216776 | 0.185839 | 0.157081 | 0.135948 | 0.106754 | 0 | 0.012885 | 0.291948 | 7,563 | 177 | 124 | 42.728814 | 0.844258 | 0.365331 | 0 | 0.2875 | 0 | 0.0125 | 0.101429 | 0.012218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.025 | 0 | 0.3 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26da85c2640497939b911d5705595d7671906491 | 1,158 | py | Python | tests/test_stats.py | janjaappape/pastas | 521b27efd921e240df0717038f8389d62099b8ff | [
"MIT"
] | 252 | 2017-01-25T05:48:53.000Z | 2022-03-31T17:46:37.000Z | tests/test_stats.py | janjaappape/pastas | 521b27efd921e240df0717038f8389d62099b8ff | [
"MIT"
] | 279 | 2017-02-14T10:59:01.000Z | 2022-03-31T09:17:37.000Z | tests/test_stats.py | janjaappape/pastas | 521b27efd921e240df0717038f8389d62099b8ff | [
"MIT"
] | 57 | 2017-02-14T10:26:54.000Z | 2022-03-11T14:04:48.000Z | import numpy as np
import pandas as pd
import pastas as ps
def acf_func(**kwargs):
index = pd.to_datetime(np.arange(0, 100, 1), unit="D", origin="2000")
data = np.sin(np.linspace(0, 10 * np.pi, 100))
r = pd.Series(data=data, index=index)
acf_true = np.cos(np.linspace(0.0, np.pi, 11))[1:]
acf = ps... | 27.571429 | 79 | 0.638169 | 195 | 1,158 | 3.651282 | 0.415385 | 0.058989 | 0.070225 | 0.036517 | 0.162921 | 0.162921 | 0.162921 | 0.089888 | 0.089888 | 0.089888 | 0 | 0.063441 | 0.196891 | 1,158 | 41 | 80 | 28.243902 | 0.702151 | 0.092401 | 0 | 0.08 | 0 | 0 | 0.040896 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.2 | false | 0 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26db23f57ee2cf9c420d9e5404d2b60d7671991a | 320 | py | Python | venv/lib64/python3.8/site-packages/tld/registry.py | nrfkhira/dnx-engine | 99a326d83058bcfe54a0f455672d90637fe753c6 | [
"MIT"
] | null | null | null | venv/lib64/python3.8/site-packages/tld/registry.py | nrfkhira/dnx-engine | 99a326d83058bcfe54a0f455672d90637fe753c6 | [
"MIT"
] | null | null | null | venv/lib64/python3.8/site-packages/tld/registry.py | nrfkhira/dnx-engine | 99a326d83058bcfe54a0f455672d90637fe753c6 | [
"MIT"
] | null | null | null | import warnings
from .base import Registry
__author__ = "Artur Barseghyan"
__copyright__ = "2013-2021 Artur Barseghyan"
__license__ = "MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later"
__all__ = ("Registry",)
warnings.warn(
"The `Registry` class is moved from `tld.registry` to `tld.base`.",
DeprecationWarning,
)
| 24.615385 | 71 | 0.721875 | 45 | 320 | 4.777778 | 0.666667 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.146875 | 320 | 12 | 72 | 26.666667 | 0.736264 | 0 | 0 | 0 | 0 | 0.1 | 0.49375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26ddb52d2be72d7d4dbeca2609c7ac5ce525625e | 2,091 | py | Python | SingleIRdetection/get_data.py | biqute/QTLab2122 | 4d53d4c660bb5931615d8652e698f6d689a4dead | [
"MIT"
] | 3 | 2021-11-30T18:41:11.000Z | 2021-12-12T12:27:14.000Z | SingleIRdetection/get_data.py | biqute/QTLab2122 | 4d53d4c660bb5931615d8652e698f6d689a4dead | [
"MIT"
] | null | null | null | SingleIRdetection/get_data.py | biqute/QTLab2122 | 4d53d4c660bb5931615d8652e698f6d689a4dead | [
"MIT"
] | null | null | null | from instruments import VNA_handler, Fridge_handler
import os
import time
from datetime import date, datetime
today = date.today()
d1 = today.strftime("_%d_%m")
directory = "data"+d1
dir_path=os.path.join(os.path.dirname(os.path.abspath(__file__)),directory)
if not os.path.isdir(dir_path):
try:
os.mkdir(di... | 27.155844 | 169 | 0.595887 | 317 | 2,091 | 3.772871 | 0.328076 | 0.045151 | 0.050167 | 0.037625 | 0.265886 | 0.175585 | 0.175585 | 0.175585 | 0.175585 | 0.175585 | 0 | 0.026038 | 0.228599 | 2,091 | 76 | 170 | 27.513158 | 0.715437 | 0 | 0 | 0.274194 | 0 | 0.016129 | 0.182209 | 0.10043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0.032258 | 0.064516 | 0 | 0.080645 | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26ddc48f78a12f6195556b4fffb431166aa3a248 | 1,356 | py | Python | repos.py | gigamonkey/git-utils | ac26ccab836b276fb7061167b4b2dc2a6bd87e66 | [
"BSD-3-Clause"
] | null | null | null | repos.py | gigamonkey/git-utils | ac26ccab836b276fb7061167b4b2dc2a6bd87e66 | [
"BSD-3-Clause"
] | 1 | 2021-05-04T19:45:16.000Z | 2021-05-04T19:45:16.000Z | repos.py | gigamonkey/git-utils | ac26ccab836b276fb7061167b4b2dc2a6bd87e66 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
Get a json dump of all the repos belonging to a GitHub org or user.
"""
import json
import os
import sys
from functools import reduce
import requests
url = "https://api.github.com/graphql"
token = os.environ["GITHUB_TOKEN"]
headers = {"Authorization": "bearer {}".format(token)}
FIELDS =... | 22.229508 | 153 | 0.597345 | 175 | 1,356 | 4.565714 | 0.508571 | 0.020025 | 0.032541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008604 | 0.228614 | 1,356 | 60 | 154 | 22.6 | 0.755258 | 0.065634 | 0 | 0 | 0 | 0.025641 | 0.303415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.128205 | 0.025641 | 0.282051 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26de76c7a526dbcb257d0562f65b8f5f56302812 | 994 | py | Python | tfLego/logger/BasicLogger.py | FrancescoSaverioZuppichini/tfLego | 485653eff6d3b8c6677b600a4e0d3623c844749f | [
"MIT"
] | null | null | null | tfLego/logger/BasicLogger.py | FrancescoSaverioZuppichini/tfLego | 485653eff6d3b8c6677b600a4e0d3623c844749f | [
"MIT"
] | null | null | null | tfLego/logger/BasicLogger.py | FrancescoSaverioZuppichini/tfLego | 485653eff6d3b8c6677b600a4e0d3623c844749f | [
"MIT"
] | null | null | null | class BasicLogger:
def __init__(self):
self.loss_history = []
self.accuracy_history = []
self.val_loss_history = []
self.val_accuracy_history = []
self.initialise()
def initialise(self):
self.total_loss = 0
self.total_accuracy = 0
self.curren... | 23.116279 | 86 | 0.585513 | 122 | 994 | 4.557377 | 0.278689 | 0.097122 | 0.070144 | 0.064748 | 0.089928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01567 | 0.293763 | 994 | 42 | 87 | 23.666667 | 0.776353 | 0 | 0 | 0.076923 | 0 | 0.038462 | 0.044355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.192308 | 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 |
26e3cb56bf5c43ffe1ebc53ce33bf565445ae974 | 6,107 | py | Python | FGMabiotic.py | tjscott214/long-term-conflict-with-1nFGM | 1c701e83c71ebe21fbc1192ca3d523a000614819 | [
"MIT"
] | 2 | 2019-09-13T13:46:33.000Z | 2020-05-14T17:21:09.000Z | FGMabiotic.py | tjscott214/long-term-conflict-with-1nFGM | 1c701e83c71ebe21fbc1192ca3d523a000614819 | [
"MIT"
] | null | null | null | FGMabiotic.py | tjscott214/long-term-conflict-with-1nFGM | 1c701e83c71ebe21fbc1192ca3d523a000614819 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
### This program simulates Fisher's geometric model with abiotic change equal to fixations during conflict simulations (from FGMconflict.py) ###
### python3 FGMabiotic.py -help for input options ###
### Written by Trey J Scott 2018 ###
### python --version ###
### Python 3.5.2 :: Anaconda 4.2.0 (... | 34.117318 | 192 | 0.7159 | 890 | 6,107 | 4.767416 | 0.252809 | 0.014141 | 0.036766 | 0.016969 | 0.185246 | 0.13811 | 0.098515 | 0.098515 | 0.074476 | 0.055621 | 0 | 0.018951 | 0.144588 | 6,107 | 178 | 193 | 34.308989 | 0.793262 | 0.150811 | 0 | 0.119403 | 0 | 0 | 0.155902 | 0.012683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0 | 0.074627 | 0.007463 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26e5678c410804c82e1a66c1a1c30cc2e8b118d5 | 873 | py | Python | epdif.py | cvasqxz/rpi-epd | b7921190dd84b1187364902f0e3059cba5a1973f | [
"MIT"
] | null | null | null | epdif.py | cvasqxz/rpi-epd | b7921190dd84b1187364902f0e3059cba5a1973f | [
"MIT"
] | null | null | null | epdif.py | cvasqxz/rpi-epd | b7921190dd84b1187364902f0e3059cba5a1973f | [
"MIT"
] | null | null | null | import spidev
import RPi.GPIO as GPIO
import time
import yaml
with open("config.yml", 'r') as f:
cfg = yaml.load(f, Loader=yaml.FullLoader)
# Pin definition
RST_PIN = cfg['pinout']['RST_PIN']
DC_PIN = cfg['pinout']['DC_PIN']
CS_PIN = cfg['pinout']['CS_PIN']
BUSY_PIN = cfg['pinout']['BUSY_PIN']
# SPI device, bus... | 21.292683 | 46 | 0.683849 | 143 | 873 | 4.013986 | 0.412587 | 0.041812 | 0.083624 | 0.073171 | 0.099303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027624 | 0.170676 | 873 | 40 | 47 | 21.825 | 0.765193 | 0.052692 | 0 | 0 | 0 | 0 | 0.075243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0.034483 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26e616bae86ed51b35013c799f67005f184552f2 | 2,469 | py | Python | main.py | amankumarjsr/BinanceDataScrapper | e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14 | [
"Apache-2.0"
] | null | null | null | main.py | amankumarjsr/BinanceDataScrapper | e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14 | [
"Apache-2.0"
] | null | null | null | main.py | amankumarjsr/BinanceDataScrapper | e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14 | [
"Apache-2.0"
] | null | null | null | from datetime import date
from unicodedata import name
from urllib import request
import requests
from bs4 import BeautifulSoup as bs
import pandas as pd
import datetime
import os
import zipfile
import glob
CoinName= input('Enter the coin name: ').upper()
duration= input('Enter the duration of data you w... | 34.291667 | 177 | 0.681247 | 349 | 2,469 | 4.73639 | 0.355301 | 0.033878 | 0.033273 | 0.054446 | 0.253479 | 0.215971 | 0.215971 | 0.215971 | 0.215971 | 0.215971 | 0 | 0.002438 | 0.169299 | 2,469 | 71 | 178 | 34.774648 | 0.80351 | 0 | 0 | 0.081633 | 0 | 0.020408 | 0.389237 | 0.089695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.204082 | 0 | 0.204082 | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26e61f306df9220c42f34738c067514777287317 | 19,370 | py | Python | api/api.py | geoai-lab/GeoAnnotator | 6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3 | [
"MIT"
] | 1 | 2022-02-14T20:43:41.000Z | 2022-02-14T20:43:41.000Z | api/api.py | geoai-lab/GeoAnnotator | 6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3 | [
"MIT"
] | null | null | null | api/api.py | geoai-lab/GeoAnnotator | 6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3 | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request, session,redirect, url_for
import bcrypt
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql import func
from sqlalchemy.exc import IntegrityError
import os
from sqlalchemy.orm import load_only
from flask_bcrypt import Bcrypt
import urllib.parse
from itertools import g... | 40.10352 | 257 | 0.663087 | 2,345 | 19,370 | 5.348827 | 0.202985 | 0.034202 | 0.01451 | 0.011481 | 0.188153 | 0.147333 | 0.124292 | 0.097106 | 0.072471 | 0.06697 | 0 | 0.013129 | 0.237119 | 19,370 | 483 | 258 | 40.10352 | 0.835691 | 0.356995 | 0 | 0.167331 | 0 | 0 | 0.138887 | 0.020331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059761 | false | 0.039841 | 0.099602 | 0 | 0.262948 | 0.015936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26ed69ff9590d721e4368e521015afe41d5f9df5 | 2,536 | py | Python | samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py | vgvoleg/gst-video-analytics | 7e4006551f38334bc59b2ef3d205273d07d40ce4 | [
"MIT"
] | null | null | null | samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py | vgvoleg/gst-video-analytics | 7e4006551f38334bc59b2ef3d205273d07d40ce4 | [
"MIT"
] | null | null | null | samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py | vgvoleg/gst-video-analytics | 7e4006551f38334bc59b2ef3d205273d07d40ce4 | [
"MIT"
] | 1 | 2020-05-14T15:30:03.000Z | 2020-05-14T15:30:03.000Z | from os.path import join, realpath
from os import listdir, environ
import shlex
import subprocess
import pickle
import json
import pickle as pkl
import time
import numpy as np
from copy import copy
MODEL_PATH = ("/root/Projects/models/intel/person-detection-retail-0013/FP32"
"/person-detection-retail-0... | 32.101266 | 89 | 0.615536 | 295 | 2,536 | 5.047458 | 0.444068 | 0.021491 | 0.042982 | 0.02955 | 0.065816 | 0.034923 | 0 | 0 | 0 | 0 | 0 | 0.019459 | 0.270505 | 2,536 | 78 | 90 | 32.512821 | 0.785405 | 0 | 0 | 0 | 0 | 0 | 0.27011 | 0.132098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.15873 | 0 | 0.238095 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26f1b913f1ee12f1e92139c51f5d8c9e44276d06 | 4,335 | py | Python | pymockserver/client.py | MXWest/py-mockserver | cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc | [
"MIT"
] | 3 | 2018-06-14T19:44:05.000Z | 2020-12-14T04:33:21.000Z | pymockserver/client.py | MXWest/py-mockserver | cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc | [
"MIT"
] | 4 | 2020-02-01T16:20:18.000Z | 2021-03-23T14:43:54.000Z | pymockserver/client.py | MXWest/py-mockserver | cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc | [
"MIT"
] | 2 | 2020-02-01T16:25:50.000Z | 2021-03-23T13:06:25.000Z | import requests
import json
from urllib3.exceptions import HTTPError
class Client(object):
"""Client to connect to the mockserver"""
def __init__(self, host='localhost', port=1080):
"""
Class initialization
:param str host: host of the mockserver
:param int port: port of th... | 29.290541 | 90 | 0.514418 | 422 | 4,335 | 5.220379 | 0.251185 | 0.028597 | 0.041307 | 0.05084 | 0.322742 | 0.270086 | 0.218793 | 0.218793 | 0.218793 | 0.218793 | 0 | 0.008029 | 0.367935 | 4,335 | 147 | 91 | 29.489796 | 0.795985 | 0.217762 | 0 | 0.402174 | 0 | 0 | 0.111853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0 | 0.032609 | 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 |
26f481dfc45ad24d352172f8f79006991163fc28 | 5,277 | py | Python | workflow/executors/validation_tasks.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null | workflow/executors/validation_tasks.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null | workflow/executors/validation_tasks.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null | from validators.validation_configurator import ValidationConfigurator
from pipeline.models import InputFile
class HugoValidator(object):
# hugo_genes_map (Dictionary): a dictionary that has the hugo genes and
# respective aliases. Each entry is db:{gene: Set(aliases),}.
# This is created the first time th... | 49.783019 | 83 | 0.617965 | 688 | 5,277 | 4.5625 | 0.273256 | 0.04014 | 0.038229 | 0.031857 | 0.079325 | 0.01784 | 0.01784 | 0.01784 | 0 | 0 | 0 | 0.00499 | 0.316468 | 5,277 | 105 | 84 | 50.257143 | 0.865262 | 0.379761 | 0 | 0.070175 | 0 | 0 | 0.020421 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 1 | 0.052632 | false | 0 | 0.035088 | 0 | 0.175439 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26f602e46a5eecf3c443505b6bc8ba0c321a760e | 1,290 | py | Python | pytglib/api/types/input_message_video_note.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/input_message_video_note.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/input_message_video_note.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 InputMessageVideoNote(Object):
"""
A video note message
Attributes:
ID (:obj:`str`): ``InputMessageVideoNote``
Args:
video_note (:class:`telegram.api.types.InputFile`):
Video note to be sent
thumbnail (:class:`telegram.api.type... | 28.666667 | 77 | 0.615504 | 134 | 1,290 | 5.843284 | 0.41791 | 0.103448 | 0.068966 | 0.05364 | 0.081737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.276744 | 1,290 | 44 | 78 | 29.318182 | 0.836013 | 0.424806 | 0 | 0 | 0 | 0 | 0.113464 | 0.06354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 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 |
26f984eeef056e7ffe65f198d0e3689278e5fc57 | 2,098 | py | Python | aiida_logger/calculations/test_calculations.py | SINTEF/aiida-logger | d97aced2ec8967cb359f488d2218cc3b47c92f6b | [
"MIT"
] | null | null | null | aiida_logger/calculations/test_calculations.py | SINTEF/aiida-logger | d97aced2ec8967cb359f488d2218cc3b47c92f6b | [
"MIT"
] | null | null | null | aiida_logger/calculations/test_calculations.py | SINTEF/aiida-logger | d97aced2ec8967cb359f488d2218cc3b47c92f6b | [
"MIT"
] | null | null | null | """
Tests for calculations.
"""
from __future__ import print_function
from __future__ import absolute_import
import os
import numpy as np
def test_process(logger_code):
"""
Test running a calculation.
Also checks its outputs.
"""
from aiida.plugins import DataFactory, CalculationFactory
fr... | 29.138889 | 84 | 0.594376 | 232 | 2,098 | 5.24569 | 0.482759 | 0.023007 | 0.026294 | 0.011504 | 0.016434 | 0.016434 | 0 | 0 | 0 | 0 | 0 | 0.035976 | 0.284557 | 2,098 | 71 | 85 | 29.549296 | 0.774817 | 0.088656 | 0 | 0 | 0 | 0 | 0.183511 | 0.012766 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.020833 | false | 0 | 0.166667 | 0 | 0.1875 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
26fdabbca3431190e788d02f52c14a320298b8ac | 9,425 | py | Python | discopy/components/sense/explicit/bert_conn_sense.py | rknaebel/discopy | 5507d656987af2df9e595434a82c0a12bbc713e4 | [
"MIT"
] | 14 | 2019-04-14T16:10:23.000Z | 2022-03-09T14:56:10.000Z | discopy/components/sense/explicit/bert_conn_sense.py | rknaebel/discopy | 5507d656987af2df9e595434a82c0a12bbc713e4 | [
"MIT"
] | 15 | 2019-04-15T16:44:40.000Z | 2021-11-23T17:36:41.000Z | discopy/components/sense/explicit/bert_conn_sense.py | rknaebel/discopy | 5507d656987af2df9e595434a82c0a12bbc713e4 | [
"MIT"
] | 1 | 2020-02-28T23:36:35.000Z | 2020-02-28T23:36:35.000Z | import json
import logging
import os
from typing import List, Dict
import click
import numpy as np
import tensorflow as tf
from sklearn.metrics import cohen_kappa_score, precision_recall_fscore_support, accuracy_score
from tqdm import tqdm
from discopy.components.component import Component
from discopy.components.con... | 44.042056 | 119 | 0.634589 | 1,295 | 9,425 | 4.408494 | 0.185328 | 0.03223 | 0.023121 | 0.014714 | 0.301279 | 0.267122 | 0.251182 | 0.213698 | 0.196882 | 0.182169 | 0 | 0.01087 | 0.248382 | 9,425 | 213 | 120 | 44.248826 | 0.795031 | 0.006578 | 0 | 0.113514 | 0 | 0 | 0.067628 | 0.012927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075676 | false | 0 | 0.086486 | 0.005405 | 0.216216 | 0.021622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8065cbbdc71ae71f6d602d2671a71b28b0eea4a | 2,057 | py | Python | tools/draw_comparison_head_design_choices.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 87 | 2020-07-24T01:28:39.000Z | 2021-08-29T08:40:18.000Z | tools/draw_comparison_head_design_choices.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 3 | 2020-09-27T12:59:28.000Z | 2022-01-06T13:14:08.000Z | tools/draw_comparison_head_design_choices.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 20 | 2020-09-05T04:37:19.000Z | 2021-12-13T02:25:48.000Z | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
labels = ['AP on bin (0,10)', 'AP on bin (10,100)']
baseline = [0.0, 13.3]
fc2_ncm = [6.0, 18.9]
fc2 = [8.6, 22.0]
fc3_rand = [9.1, 18.8]
fc3_ft = [13.2, 23.1]
x = np.arange(len(labels)) # the label locations
width = 0.15 # the width of the bars
... | 31.166667 | 96 | 0.6456 | 334 | 2,057 | 3.904192 | 0.347305 | 0.038344 | 0.023006 | 0.092025 | 0.232362 | 0.125767 | 0 | 0 | 0 | 0 | 0 | 0.066548 | 0.181818 | 2,057 | 65 | 97 | 31.646154 | 0.708259 | 0.24842 | 0 | 0 | 0 | 0 | 0.112418 | 0.015033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f807e6a714508c55a5204cce88f3927910a26a1e | 9,916 | py | Python | src/entry.py | akilmarshall/vash-2 | 5307bc414afba24b235ae0ae9b2583c33ea69b1f | [
"MIT"
] | null | null | null | src/entry.py | akilmarshall/vash-2 | 5307bc414afba24b235ae0ae9b2583c33ea69b1f | [
"MIT"
] | null | null | null | src/entry.py | akilmarshall/vash-2 | 5307bc414afba24b235ae0ae9b2583c33ea69b1f | [
"MIT"
] | null | null | null | from datetime import datetime
from itertools import count
from tkinter import *
import tkinter.ttk as ttk
from functools import partial
from tkcalendar import DateEntry
from case import COD, CONTRIES, Case, INCIDENT, ORGANIZATION, POLICESTATION, STATES
from db import referred_other_agency
from preview import CasePrev... | 38.583658 | 93 | 0.588846 | 1,188 | 9,916 | 4.763468 | 0.108586 | 0.043294 | 0.038169 | 0.066796 | 0.406256 | 0.251635 | 0.15144 | 0.070507 | 0 | 0 | 0 | 0.007508 | 0.28812 | 9,916 | 256 | 94 | 38.734375 | 0.794163 | 0.031263 | 0 | 0.133641 | 0 | 0 | 0.04444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046083 | false | 0 | 0.041475 | 0 | 0.092166 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8082f1e3f5f385cac811686714cd680277f4584 | 7,406 | py | Python | repro_eval/__main__.py | irgroup/repro_eval | 35a4cf083dbb5f4b29d6ef602a604f0686a537c9 | [
"MIT"
] | 8 | 2020-10-27T02:11:53.000Z | 2022-03-02T11:00:10.000Z | repro_eval/__main__.py | irgroup/repro_eval | 35a4cf083dbb5f4b29d6ef602a604f0686a537c9 | [
"MIT"
] | 2 | 2021-01-25T19:59:39.000Z | 2021-12-07T09:29:01.000Z | repro_eval/__main__.py | irgroup/repro_eval | 35a4cf083dbb5f4b29d6ef602a604f0686a537c9 | [
"MIT"
] | 1 | 2021-04-16T16:21:16.000Z | 2021-04-16T16:21:16.000Z | """
Use repro_eval from the command line with e.g.
python -m repro_eval -t rpd -q qrel_orig -r orig_b rpd_b
python -m repro_eval -t rpd -q qrel_orig -r orig_b orig_a rpd_b rpd_a
python -m repro_eval -t rpd -m rmse -q qrel_orig -r orig_b rpd_b
python -m repro_eval -t rpl -q qrel_orig qrel_rpl -r orig_b rpl_b
python... | 43.309942 | 109 | 0.498785 | 892 | 7,406 | 3.94843 | 0.146861 | 0.045429 | 0.040886 | 0.03322 | 0.754685 | 0.640829 | 0.609597 | 0.609597 | 0.58234 | 0.58234 | 0 | 0.005152 | 0.318526 | 7,406 | 170 | 110 | 43.564706 | 0.692689 | 0.086011 | 0 | 0.554622 | 0 | 0 | 0.171776 | 0.087961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0 | 0.033613 | 0 | 0.042017 | 0.327731 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f809139d6c632c257d27b2da4aee81ff3ca5dcc2 | 2,377 | py | Python | main.py | juligreen/towerdefense-prototype | 1cdac58acf697ca856a60dec6533caed17acf656 | [
"MIT"
] | null | null | null | main.py | juligreen/towerdefense-prototype | 1cdac58acf697ca856a60dec6533caed17acf656 | [
"MIT"
] | null | null | null | main.py | juligreen/towerdefense-prototype | 1cdac58acf697ca856a60dec6533caed17acf656 | [
"MIT"
] | null | null | null | import math
from game_objects import Turret, Troop
players = []
class Location:
def __init__(self, x: int, y: int):
self.x = x
self.y = y
class Lane:
# for this prototype we are going to imagine our lanes as straight lines
def __init__(self, left_start_location: Location, right_start_l... | 30.088608 | 94 | 0.636096 | 296 | 2,377 | 4.945946 | 0.320946 | 0.053279 | 0.040984 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011461 | 0.265881 | 2,377 | 78 | 95 | 30.474359 | 0.827507 | 0.092133 | 0 | 0 | 0 | 0 | 0.03714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0 | 0.036364 | 0 | 0.254545 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8094b25e0893a5bce69fe2d108d090003595a0e | 7,110 | py | Python | bib_processing.py | GAIGResearch/GAIGResearch.github.io | 90d0555348ad8f3f500b6480168ad65fa0226dce | [
"MIT"
] | null | null | null | bib_processing.py | GAIGResearch/GAIGResearch.github.io | 90d0555348ad8f3f500b6480168ad65fa0226dce | [
"MIT"
] | null | null | null | bib_processing.py | GAIGResearch/GAIGResearch.github.io | 90d0555348ad8f3f500b6480168ad65fa0226dce | [
"MIT"
] | 2 | 2019-07-09T11:08:15.000Z | 2020-12-04T14:55:00.000Z | import os
from pathlib import Path
from difflib import SequenceMatcher
supported_bibtex_types = {"article", "book", "booklet", "inbook", "incollection", "inproceedings", "manual",
"mastersthesis", "misc", "phdthesis", "proceedings", "techreport", "unpublished"}
supported_fields = ["author",... | 33.696682 | 119 | 0.568636 | 877 | 7,110 | 4.443558 | 0.255416 | 0.020785 | 0.009238 | 0.011547 | 0.084167 | 0.064665 | 0.05594 | 0.042597 | 0.028227 | 0.028227 | 0 | 0.009744 | 0.307173 | 7,110 | 210 | 120 | 33.857143 | 0.781364 | 0.165541 | 0 | 0.1 | 0 | 0 | 0.095337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.021429 | 0 | 0.142857 | 0.021429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f80a066211d5845a2d19529db9ed13271bcad6dc | 2,105 | py | Python | browser.py | 7Cortez7/instagram-giveaway-bot | 43246e3ded06ea3a6cbf2ef20164b229fe90ee0e | [
"MIT"
] | null | null | null | browser.py | 7Cortez7/instagram-giveaway-bot | 43246e3ded06ea3a6cbf2ef20164b229fe90ee0e | [
"MIT"
] | null | null | null | browser.py | 7Cortez7/instagram-giveaway-bot | 43246e3ded06ea3a6cbf2ef20164b229fe90ee0e | [
"MIT"
] | null | null | null | from selenium import webdriver
import time
import userdata as udata
import random
randomUsers = set()
class Browser:
def __init__(self, link):
self.link = link
self.browser = webdriver.Chrome()
Browser.Instagram(self)
Browser.Login(self)
Browser.goFollowers(s... | 31.893939 | 121 | 0.59715 | 230 | 2,105 | 5.352174 | 0.443478 | 0.10723 | 0.060926 | 0.071487 | 0.180341 | 0.105605 | 0 | 0 | 0 | 0 | 0 | 0.010731 | 0.291686 | 2,105 | 65 | 122 | 32.384615 | 0.814889 | 0 | 0 | 0.188679 | 0 | 0 | 0.190686 | 0.055882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.037736 | 0.075472 | 0 | 0.207547 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f80b2ee49671a1d6b544de429dd777345fa6df27 | 246 | py | Python | HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | 8 | 2020-08-03T01:53:13.000Z | 2022-01-09T14:47:58.000Z | HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | null | null | null | HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | 4 | 2020-09-29T11:28:53.000Z | 2021-06-02T15:34:55.000Z | '''
Title : Linear Algebra
Subdomain : Numpy
Domain : Python
Author : codeperfectplus
Created : 10 May 2020
'''
import numpy
n=int(input())
a=numpy.array([input().split() for _ in range(n)],float)
print(round(numpy.linalg.det(a),2))
| 18.923077 | 56 | 0.670732 | 35 | 246 | 4.685714 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034314 | 0.170732 | 246 | 12 | 57 | 20.5 | 0.769608 | 0.46748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
f810064772dd89a3265f0776de267483682a707d | 23,282 | py | Python | trtools/dumpSTR/tests/test_dumpSTR.py | Kulivox/TRTools | ea05f9126f5145405cced8fd85821ce929657b3a | [
"MIT"
] | 14 | 2020-04-20T15:38:52.000Z | 2022-02-07T11:45:23.000Z | trtools/dumpSTR/tests/test_dumpSTR.py | Kulivox/TRTools | ea05f9126f5145405cced8fd85821ce929657b3a | [
"MIT"
] | 74 | 2020-03-02T23:34:53.000Z | 2022-03-21T18:32:10.000Z | trtools/dumpSTR/tests/test_dumpSTR.py | Kulivox/TRTools | ea05f9126f5145405cced8fd85821ce929657b3a | [
"MIT"
] | 15 | 2018-10-29T19:41:33.000Z | 2020-02-21T18:41:51.000Z | import argparse
import gzip
import os
import pytest
from ..dumpSTR import *
from trtools.testsupport.utils import assert_same_vcf, assert_same_file
# Set up base argparser
@pytest.fixture
def args(tmpdir):
args = argparse.ArgumentParser()
args.vcf = None
args.vcftype = "auto"
args.out = str(tmpdir /... | 34.038012 | 129 | 0.683489 | 3,314 | 23,282 | 4.574532 | 0.102293 | 0.043272 | 0.046174 | 0.037599 | 0.755871 | 0.698153 | 0.63562 | 0.600989 | 0.53529 | 0.49314 | 0 | 0.024362 | 0.22425 | 23,282 | 683 | 130 | 34.087848 | 0.815016 | 0.111717 | 0 | 0.616698 | 0 | 0 | 0.101182 | 0.054055 | 0 | 0 | 0 | 0.002928 | 0.185958 | 1 | 0.055028 | false | 0 | 0.011385 | 0.001898 | 0.070209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81075d9a768c275f1cbe075abbbe7e3dce2e3c6 | 2,554 | py | Python | src/weekly_contest_251/1946_largest-number-after-mutating-substring.py | dongminlee94/leetcode-practice | 4d33816d66df8ab447087a04b76008f6bec51f23 | [
"MIT"
] | null | null | null | src/weekly_contest_251/1946_largest-number-after-mutating-substring.py | dongminlee94/leetcode-practice | 4d33816d66df8ab447087a04b76008f6bec51f23 | [
"MIT"
] | null | null | null | src/weekly_contest_251/1946_largest-number-after-mutating-substring.py | dongminlee94/leetcode-practice | 4d33816d66df8ab447087a04b76008f6bec51f23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
1946. Largest Number After Mutating Substring
https://leetcode.com/problems/largest-number-after-mutating-substring/
Example 1:
Input: num = "132", change = [9,8,5,0,3,6,4,2,6,8]
Output: "832"
Explanation: Replace the substring "1":
- 1 maps to change[1] = 8.
Thus, "132" becomes "832".
"8... | 30.047059 | 98 | 0.523101 | 378 | 2,554 | 3.473545 | 0.219577 | 0.04265 | 0.073115 | 0.068545 | 0.555979 | 0.453161 | 0.393755 | 0.323686 | 0.323686 | 0.281036 | 0 | 0.056647 | 0.322631 | 2,554 | 84 | 99 | 30.404762 | 0.702312 | 0.35787 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f812c1ff23e3b82b8ed9c4bca10c6b857649c53a | 2,358 | py | Python | src/qbrobot/util/log.py | jucuguru/crypto-robot-basic | 3addaaff9fb2f41d8e9dcd66bae7ae7f75216704 | [
"BSD-2-Clause"
] | null | null | null | src/qbrobot/util/log.py | jucuguru/crypto-robot-basic | 3addaaff9fb2f41d8e9dcd66bae7ae7f75216704 | [
"BSD-2-Clause"
] | null | null | null | src/qbrobot/util/log.py | jucuguru/crypto-robot-basic | 3addaaff9fb2f41d8e9dcd66bae7ae7f75216704 | [
"BSD-2-Clause"
] | null | null | null | import logging
from qbrobot import qsettings
try :
from util import send_dingding
except ImportError:
DINGDING_CANUSE = False
else:
DINGDING_CANUSE = True
"""
class DingDingLogger
pass all args to logger.method, and call dingding.send_msg()
1. debug message don't send to dingding.
2.... | 25.912088 | 116 | 0.651399 | 280 | 2,358 | 5.332143 | 0.275 | 0.046885 | 0.087073 | 0.056932 | 0.320161 | 0.255191 | 0.182853 | 0.182853 | 0.182853 | 0.182853 | 0 | 0.007743 | 0.233249 | 2,358 | 90 | 117 | 26.2 | 0.818031 | 0.035199 | 0 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.097561 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81309425c4d43dc4fcef12218a6de6d14c72768 | 722 | py | Python | Country cleaning/Chile/PRT/OfflineRB.py | Demonliquid/cars-python-cleaning | 91c516a33c4522114dc024cfaf04f1c1d594f973 | [
"MIT"
] | null | null | null | Country cleaning/Chile/PRT/OfflineRB.py | Demonliquid/cars-python-cleaning | 91c516a33c4522114dc024cfaf04f1c1d594f973 | [
"MIT"
] | null | null | null | Country cleaning/Chile/PRT/OfflineRB.py | Demonliquid/cars-python-cleaning | 91c516a33c4522114dc024cfaf04f1c1d594f973 | [
"MIT"
] | null | null | null | # %%
import os
import pandas as pd
import numpy as np
import datetime
# %% CARGA DE DATOS
path = r'F:\Trabajo\Promotive\Chile\PRT\7\CSV\3'
os.chdir(path)
files = os.listdir(path)
files
# %%
files_xls = [f for f in files if f[-3:] == 'csv']
files_xls
# %%
columnas = ['PPU', 'MARCA', 'MODELO', 'ANO_FABRICACION', 'NU... | 17.609756 | 90 | 0.65651 | 109 | 722 | 4.256881 | 0.541284 | 0.051724 | 0.038793 | 0.077586 | 0.112069 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0.008157 | 0.15097 | 722 | 40 | 91 | 18.05 | 0.748777 | 0.060942 | 0 | 0 | 0 | 0 | 0.23988 | 0.134933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f815471c4b7feac192ccd8f44032afcd4c9605be | 3,850 | py | Python | datasets/lfw_crop.py | laoreja/face-identity-transformer | 5569d93017ad9371deae7e2b35564523c64b501e | [
"BSD-3-Clause"
] | 13 | 2020-10-09T07:15:02.000Z | 2022-03-28T20:51:30.000Z | datasets/lfw_crop.py | laoreja/face-identity-transformer | 5569d93017ad9371deae7e2b35564523c64b501e | [
"BSD-3-Clause"
] | 2 | 2021-03-03T15:04:51.000Z | 2021-06-02T03:42:03.000Z | datasets/lfw_crop.py | laoreja/face-identity-transformer | 5569d93017ad9371deae7e2b35564523c64b501e | [
"BSD-3-Clause"
] | 5 | 2021-03-02T11:44:19.000Z | 2021-07-09T16:42:02.000Z | import os.path as osp
import numpy as np
from PIL import Image
import torch.utils.data as data
import torch
__all__ = ['LFW_CROP']
EXTENSION_FACTOR = 2
class LFW_CROP(data.Dataset):
def __init__(self, train, transform, args):
self.root = osp.join(args.data_root, 'lfw')
self.transform = transfor... | 37.745098 | 114 | 0.540779 | 508 | 3,850 | 3.852362 | 0.242126 | 0.053143 | 0.101175 | 0.033214 | 0.119571 | 0.086868 | 0.075626 | 0.049055 | 0.049055 | 0 | 0 | 0.023978 | 0.339221 | 3,850 | 101 | 115 | 38.118812 | 0.745283 | 0.012727 | 0 | 0.026667 | 0 | 0 | 0.037388 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.066667 | 0.013333 | 0.173333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f816945723bd501f06ebbe8199fa11cd256a3a52 | 1,065 | py | Python | test.py | JFF-Bohdan/pyimei | d881f4a11374d29828867e2de397d1fcc8413d25 | [
"MIT"
] | 1 | 2021-07-29T17:39:34.000Z | 2021-07-29T17:39:34.000Z | test.py | JFF-Bohdan/pyimei | d881f4a11374d29828867e2de397d1fcc8413d25 | [
"MIT"
] | null | null | null | test.py | JFF-Bohdan/pyimei | d881f4a11374d29828867e2de397d1fcc8413d25 | [
"MIT"
] | 3 | 2018-08-07T08:01:01.000Z | 2020-03-24T17:14:31.000Z | from pyimei import ImeiSupport
def checkImeisArray(imeis):
for imei in imeis:
if ImeiSupport.isValid(imei):
print("IMEI: '{}' is valid".format(imei))
else:
print("IMEI '{}' is NOT valid".format(imei))
#testing classes
ImeiSupport.test()
valid_imeis = [
356... | 23.152174 | 73 | 0.66385 | 113 | 1,065 | 6.141593 | 0.39823 | 0.063401 | 0.080692 | 0.043228 | 0.135447 | 0.135447 | 0.072046 | 0 | 0 | 0 | 0 | 0.111772 | 0.210329 | 1,065 | 46 | 74 | 23.152174 | 0.713436 | 0.014085 | 0 | 0.060606 | 0 | 0 | 0.19602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.030303 | 0 | 0.060606 | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f818d292ca6f1460d6aa1027f16f35e13ba6829c | 5,441 | py | Python | fipomdp/experiments/NYC_experiment.py | xbrlej/FiPOMDP | b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f | [
"MIT"
] | null | null | null | fipomdp/experiments/NYC_experiment.py | xbrlej/FiPOMDP | b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f | [
"MIT"
] | null | null | null | fipomdp/experiments/NYC_experiment.py | xbrlej/FiPOMDP | b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import platform
import time
from functools import partial
from statistics import stdev
from typing import List, Tuple, Dict, Union, Any
import psutil
from joblib import Parallel, delayed
from fimdp.objectives import BUCHI
from fipomdp import ConsPOMDP
from fipomdp.energy_solvers ... | 33.58642 | 147 | 0.695093 | 685 | 5,441 | 5.322628 | 0.316788 | 0.043884 | 0.045255 | 0.020845 | 0.105869 | 0.06418 | 0.03017 | 0.03017 | 0.03017 | 0.03017 | 0 | 0.018165 | 0.19059 | 5,441 | 161 | 148 | 33.795031 | 0.809718 | 0.081051 | 0 | 0 | 0 | 0.017699 | 0.178973 | 0.031501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026549 | false | 0 | 0.132743 | 0 | 0.176991 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8197ad55d7f3b5e1e727b66b9aaef3047efa623 | 3,317 | py | Python | hikcamerabot/services/tasks/video.py | CamVipQ/hikvision-camera-bot | 84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2 | [
"MIT"
] | 44 | 2019-03-07T00:25:44.000Z | 2022-02-20T15:57:11.000Z | hikcamerabot/services/tasks/video.py | CamVipQ/hikvision-camera-bot | 84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2 | [
"MIT"
] | 25 | 2019-02-17T13:37:27.000Z | 2022-03-22T16:11:46.000Z | hikcamerabot/services/tasks/video.py | CamVipQ/hikvision-camera-bot | 84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2 | [
"MIT"
] | 14 | 2019-06-28T05:40:10.000Z | 2022-03-24T08:05:01.000Z | import asyncio
import logging
import os
import time
from addict import Addict
from aiogram.types import Message
from hikcamerabot.config.config import get_result_queue
from hikcamerabot.constants import Event, VideoGifType
from hikcamerabot.utils.utils import format_ts, gen_random_str
class RecordVideoTask:
_vi... | 35.666667 | 88 | 0.621948 | 410 | 3,317 | 4.707317 | 0.270732 | 0.037306 | 0.049741 | 0.026425 | 0.080829 | 0.034197 | 0.034197 | 0.034197 | 0 | 0 | 0 | 0.003753 | 0.277058 | 3,317 | 92 | 89 | 36.054348 | 0.801084 | 0 | 0 | 0.052632 | 0 | 0 | 0.104589 | 0.006556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.118421 | 0.013158 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81adf96e79c10244b5314e809ea884419299412 | 71,349 | py | Python | HyperOXO/hypercube.py | drtjc/Hyper | 83579186d915de603d27b8757dfc5a0f82c6770e | [
"MIT"
] | null | null | null | HyperOXO/hypercube.py | drtjc/Hyper | 83579186d915de603d27b8757dfc5a0f82c6770e | [
"MIT"
] | null | null | null | HyperOXO/hypercube.py | drtjc/Hyper | 83579186d915de603d27b8757dfc5a0f82c6770e | [
"MIT"
] | null | null | null | """ Provides functionalilty for working with celled hypercubes.
Hypercubes are extensions of lines, squares and cubes into higher
dimensions. Celled hypercubes can be thought as a grid or lattice
structure. From this point, hypercubes is used to mean celled
hypercubes.
A hypercube can be described by its dimension a... | 30.374202 | 116 | 0.510575 | 10,336 | 71,349 | 3.442047 | 0.064725 | 0.016246 | 0.010962 | 0.007196 | 0.63364 | 0.590213 | 0.56025 | 0.541333 | 0.518088 | 0.502909 | 0 | 0.060476 | 0.31238 | 71,349 | 2,348 | 117 | 30.387138 | 0.66454 | 0.704887 | 0 | 0.31348 | 0 | 0 | 0.021765 | 0 | 0.003135 | 0 | 0 | 0 | 0 | 1 | 0.106583 | false | 0 | 0.021944 | 0 | 0.22884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81e6f765fb2c951a1b3a358bc3ab07fe69f4752 | 11,140 | py | Python | simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py | IMSY-DKFZ/simpa | b8bddcf43a4bff2564f0ec208dc511b82e49bfb4 | [
"MIT"
] | 3 | 2022-03-14T15:40:09.000Z | 2022-03-20T02:34:25.000Z | simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py | jgroehl/simpa | e56f0802e5a8555ee8bb139dd4f776025e7e9267 | [
"MIT"
] | 3 | 2022-03-18T07:19:12.000Z | 2022-03-30T12:15:19.000Z | simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py | IMSY-DKFZ/simpa | b8bddcf43a4bff2564f0ec208dc511b82e49bfb4 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Division of Intelligent Medical Systems, DKFZ
# SPDX-FileCopyrightText: 2021 Janek Groehl
# SPDX-License-Identifier: MIT
from simpa.core.device_digital_twins import SlitIlluminationGeometry, LinearArrayDetectionGeometry, PhotoacousticDevice
from simpa import perform_k_wave_acoustic_forw... | 48.859649 | 119 | 0.668223 | 1,262 | 11,140 | 5.559429 | 0.248019 | 0.063854 | 0.049173 | 0.023945 | 0.295468 | 0.236745 | 0.172891 | 0.100912 | 0.043615 | 0.043044 | 0 | 0.021028 | 0.26149 | 11,140 | 227 | 120 | 49.07489 | 0.831773 | 0.107989 | 0 | 0.017241 | 0 | 0 | 0.024221 | 0.007735 | 0 | 0 | 0 | 0.004405 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.114943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81ea939afded2dfd41116deec7708196341c5d1 | 10,881 | py | Python | oc_ocdm/counter_handler/filesystem_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 1 | 2020-12-17T15:33:01.000Z | 2020-12-17T15:33:01.000Z | oc_ocdm/counter_handler/filesystem_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 26 | 2021-01-08T08:32:23.000Z | 2022-03-29T10:01:40.000Z | oc_ocdm/counter_handler/filesystem_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 3 | 2021-04-16T08:44:44.000Z | 2022-02-15T11:09:22.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
... | 42.503906 | 111 | 0.637074 | 1,531 | 10,881 | 4.246244 | 0.15872 | 0.041994 | 0.048454 | 0.020766 | 0.566067 | 0.518843 | 0.487156 | 0.451469 | 0.427934 | 0.408553 | 0 | 0.006504 | 0.265233 | 10,881 | 255 | 112 | 42.670588 | 0.806629 | 0.082621 | 0 | 0.391304 | 0 | 0 | 0.095544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0 | 0.038043 | 0.016304 | 0.217391 | 0.005435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f81fb7d0b255f47fb45c7a694f335756c5c2bb24 | 3,823 | py | Python | backend_app/serializers.py | ilveroluca/backend | 91b80b154c4e1e45587797cc41bf2b2b75c23e68 | [
"MIT"
] | null | null | null | backend_app/serializers.py | ilveroluca/backend | 91b80b154c4e1e45587797cc41bf2b2b75c23e68 | [
"MIT"
] | null | null | null | backend_app/serializers.py | ilveroluca/backend | 91b80b154c4e1e45587797cc41bf2b2b75c23e68 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from backend_app import models
class AllowedPropertySerializer(serializers.ModelSerializer):
class Meta:
model = models.AllowedProperty
fields = '__all__'
# exclude = ['id']
class DatasetSerializer(serializers.ModelSerializer):
class Meta:
... | 27.905109 | 96 | 0.698666 | 347 | 3,823 | 7.512968 | 0.244957 | 0.109705 | 0.059072 | 0.084388 | 0.416187 | 0.303797 | 0.125815 | 0.092827 | 0.06214 | 0.06214 | 0 | 0.000649 | 0.193565 | 3,823 | 136 | 97 | 28.110294 | 0.844956 | 0.074549 | 0 | 0.373494 | 0 | 0 | 0.064626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024096 | 0 | 0.674699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8207cbc88a40509eaabe2f12c2e9fb96d02736a | 1,154 | py | Python | app/cvp.py | ekiminatorn/murmur-rest | 594060264cd6ea594d5c07f40163782946f48eb2 | [
"Unlicense",
"MIT"
] | 73 | 2015-01-08T19:58:36.000Z | 2022-01-25T20:44:07.000Z | app/cvp.py | ekiminatorn/murmur-rest | 594060264cd6ea594d5c07f40163782946f48eb2 | [
"Unlicense",
"MIT"
] | 34 | 2015-01-08T19:52:34.000Z | 2022-03-15T08:36:30.000Z | app/cvp.py | ekiminatorn/murmur-rest | 594060264cd6ea594d5c07f40163782946f48eb2 | [
"Unlicense",
"MIT"
] | 33 | 2015-01-08T19:22:40.000Z | 2022-01-19T06:28:37.000Z | """
cvp.py
Functions for generating CVP feeds.
:copyright: (C) 2014 by github.com/alfg.
:license: MIT, see README for more details.
"""
def cvp_player_to_dict(player):
"""
Convert a player object from a Tree to a CVP-compliant dict.
"""
return {
"session": player.session,
"userid": ... | 26.837209 | 78 | 0.604853 | 140 | 1,154 | 4.9 | 0.385714 | 0.081633 | 0.03207 | 0.043732 | 0.055394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.261698 | 1,154 | 42 | 79 | 27.47619 | 0.800469 | 0.230503 | 0 | 0.08 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8238013e026edf0a1b82a52242ee8f202d32c83 | 693 | py | Python | func.py | CrownCrafter/School | 488810b223ad746d7d1b396e609ce8f90f25662c | [
"MIT"
] | null | null | null | func.py | CrownCrafter/School | 488810b223ad746d7d1b396e609ce8f90f25662c | [
"MIT"
] | null | null | null | func.py | CrownCrafter/School | 488810b223ad746d7d1b396e609ce8f90f25662c | [
"MIT"
] | 1 | 2021-02-06T04:28:17.000Z | 2021-02-06T04:28:17.000Z | def cyl(h, r):
area_cyl = 2 * 3.14 * r * h
return(area_cyl)
def con(r, l):
area_con = 3.14 * r * l
return(area_con)
def final_price(cost):
tax = 0.18 * cost
re_price = cost + tax
return(re_price)
print("Enter Values of cylindrical part of tent ")
h = float(input("Height : "))
r = float(inpu... | 28.875 | 53 | 0.658009 | 121 | 693 | 3.603306 | 0.322314 | 0.018349 | 0.022936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023297 | 0.194805 | 693 | 23 | 54 | 30.130435 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0.235209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.136364 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f823c6094a403ab6a62faccb2e76b2e2b2d997a0 | 1,282 | py | Python | pymoku/plotly_support.py | manekawije/Liquid | 284991ceca70ec3fcd0cca7e19f4100463600a6c | [
"MIT"
] | null | null | null | pymoku/plotly_support.py | manekawije/Liquid | 284991ceca70ec3fcd0cca7e19f4100463600a6c | [
"MIT"
] | null | null | null | pymoku/plotly_support.py | manekawije/Liquid | 284991ceca70ec3fcd0cca7e19f4100463600a6c | [
"MIT"
] | null | null | null | # Plotly integration for the Moku:Lab Datalogger
# Copyright 2016 Liquid Instruments Pty. Ltd.
from pymoku import InvalidOperationException
def stream_init(moku, uname, api_key, str_id1, str_id2, npoints=100, mode='lines', line={}):
line = ';'.join([ '='.join(i) for i in list(line.items())])
settings = [
('plo... | 26.163265 | 92 | 0.705148 | 190 | 1,282 | 4.652632 | 0.447368 | 0.040724 | 0.024887 | 0.022624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021878 | 0.144306 | 1,282 | 49 | 93 | 26.163265 | 0.783956 | 0.070203 | 0 | 0 | 0 | 0 | 0.146218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.151515 | 0.030303 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f82c17e0d48a8946b94491663089d67afc63ece3 | 1,185 | py | Python | tracpro/msgs/migrations/0005_inboxmessage.py | rapidpro/tracpro | a68a782a7ff9bb0ccee85368132d8847c280fea3 | [
"BSD-3-Clause"
] | 5 | 2015-07-21T15:58:31.000Z | 2019-09-14T22:34:00.000Z | tracpro/msgs/migrations/0005_inboxmessage.py | rapidpro/tracpro | a68a782a7ff9bb0ccee85368132d8847c280fea3 | [
"BSD-3-Clause"
] | 197 | 2015-03-24T15:26:04.000Z | 2017-11-28T19:24:37.000Z | tracpro/msgs/migrations/0005_inboxmessage.py | rapidpro/tracpro | a68a782a7ff9bb0ccee85368132d8847c280fea3 | [
"BSD-3-Clause"
] | 10 | 2015-03-24T12:26:36.000Z | 2017-02-21T13:08:57.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('orgs', '0013_auto_20150715_1831'),
('contacts', '0004_auto_20150324_1024'),
('msgs', '0004_message_pollrun'),
]
oper... | 38.225806 | 118 | 0.599156 | 113 | 1,185 | 6.035398 | 0.566372 | 0.046921 | 0.092375 | 0.109971 | 0.244868 | 0.117302 | 0 | 0 | 0 | 0 | 0 | 0.045249 | 0.254008 | 1,185 | 30 | 119 | 39.5 | 0.726244 | 0.017722 | 0 | 0 | 0 | 0 | 0.203959 | 0.039587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f831926e75acbe42ce6d5e5261d3946d9b9dfea1 | 1,176 | py | Python | _example/xor_embedded/make.py | backwardn/go-tflite | 30f5e2a268d2eb053f758636609c5c379a3016b5 | [
"MIT"
] | 3 | 2020-01-09T02:57:30.000Z | 2020-07-17T15:56:50.000Z | _example/xor_embedded/make.py | backwardn/go-tflite | 30f5e2a268d2eb053f758636609c5c379a3016b5 | [
"MIT"
] | null | null | null | _example/xor_embedded/make.py | backwardn/go-tflite | 30f5e2a268d2eb053f758636609c5c379a3016b5 | [
"MIT"
] | null | null | null | import numpy as np
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import RMSprop
from tensorflow.lite.python import lite
X_train = np.array([[0.0, 0.0],
[1.0, 0.0],
[0.0, 1.0],
[1.0, ... | 30.947368 | 75 | 0.662415 | 170 | 1,176 | 4.394118 | 0.405882 | 0.026774 | 0.024096 | 0.016064 | 0.128514 | 0.026774 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0.213435 | 1,176 | 37 | 76 | 31.783784 | 0.764324 | 0.036565 | 0 | 0.058824 | 0 | 0 | 0.077807 | 0.020336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.147059 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f835c7244c8f288b00b860e6cef6f64c28c3ea69 | 473 | py | Python | app/sso/user/models.py | ChristianKreuzberger/django-oauth-sso | b019e2e8232ae141b50b8270e79e0617e24f54bb | [
"MIT"
] | null | null | null | app/sso/user/models.py | ChristianKreuzberger/django-oauth-sso | b019e2e8232ae141b50b8270e79e0617e24f54bb | [
"MIT"
] | null | null | null | app/sso/user/models.py | ChristianKreuzberger/django-oauth-sso | b019e2e8232ae141b50b8270e79e0617e24f54bb | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):
"""
Extends the basic django user model with a longer first and last name
"""
first_name = models.CharField(
_("first name"),
... | 21.5 | 73 | 0.649049 | 58 | 473 | 5.155172 | 0.551724 | 0.100334 | 0.12709 | 0.107023 | 0.167224 | 0.167224 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.268499 | 473 | 21 | 74 | 22.52381 | 0.846821 | 0.145877 | 0 | 0.285714 | 0 | 0 | 0.049096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f837af8b513ac4ce60f3ce335c72f8849a0bd813 | 1,710 | py | Python | src/fusanet_utils/features/base.py | fusa-project/fusa-net-utils | b8740c67c0c789889b7abce477c894d77c70a20c | [
"MIT"
] | null | null | null | src/fusanet_utils/features/base.py | fusa-project/fusa-net-utils | b8740c67c0c789889b7abce477c894d77c70a20c | [
"MIT"
] | null | null | null | src/fusanet_utils/features/base.py | fusa-project/fusa-net-utils | b8740c67c0c789889b7abce477c894d77c70a20c | [
"MIT"
] | null | null | null | import logging
from abc import ABC, abstractmethod
from os.path import isfile, splitext
import pathlib
import torch
from .waveform import get_waveform
logger = logging.getLogger(__name__)
class Feature(ABC):
def __init__(self, params):
self.params = params
super().__init__()
@abstr... | 35.625 | 83 | 0.657895 | 210 | 1,710 | 5.090476 | 0.338095 | 0.12348 | 0.084191 | 0.086062 | 0.241347 | 0.157156 | 0.157156 | 0.157156 | 0.093545 | 0.093545 | 0 | 0.002297 | 0.236257 | 1,710 | 47 | 84 | 36.382979 | 0.816233 | 0 | 0 | 0.054054 | 0 | 0 | 0.055588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.027027 | 0.162162 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f838fea76677e89d488005a23aab7f853eac184d | 11,397 | py | Python | app.py | KendraObika/Froggit | 3734d74de6b7febabb6c1645b61e42928203cf63 | [
"MIT"
] | null | null | null | app.py | KendraObika/Froggit | 3734d74de6b7febabb6c1645b61e42928203cf63 | [
"MIT"
] | null | null | null | app.py | KendraObika/Froggit | 3734d74de6b7febabb6c1645b61e42928203cf63 | [
"MIT"
] | null | null | null | """
Primary module for Froggit
This module contains the main controller class for the Froggit application. There
is no need for any additional classes in this module. If you need more classes, 99%
of the time they belong in either the lanes module or the models module. If you are
unsure about where a new class should... | 41.443636 | 87 | 0.668246 | 1,643 | 11,397 | 4.537432 | 0.224589 | 0.022938 | 0.035681 | 0.019316 | 0.313213 | 0.245473 | 0.208719 | 0.176258 | 0.15721 | 0.146747 | 0 | 0.002167 | 0.271124 | 11,397 | 274 | 88 | 41.594891 | 0.895269 | 0.59542 | 0 | 0.35443 | 0 | 0 | 0.030877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0.063291 | 0 | 0.164557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f83ba25f5a20e6c46fa842756d48009b7d4b11f6 | 4,444 | py | Python | neural_semigroups/mace4_semigroups_dataset.py | zarebulic/neural-semigroup-experiment | c554acb17d264ba810009f8b86c35ee9f8c4d1f4 | [
"Apache-2.0"
] | 6 | 2020-04-05T23:24:54.000Z | 2021-11-15T11:17:09.000Z | neural_semigroups/mace4_semigroups_dataset.py | zarebulic/neural-semigroup-experiment | c554acb17d264ba810009f8b86c35ee9f8c4d1f4 | [
"Apache-2.0"
] | 23 | 2020-03-15T09:09:54.000Z | 2022-03-29T22:32:23.000Z | neural_semigroups/mace4_semigroups_dataset.py | zarebulic/neural-semigroup-experiment | c554acb17d264ba810009f8b86c35ee9f8c4d1f4 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019-2021 Boris Shminke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 34.71875 | 78 | 0.617912 | 532 | 4,444 | 4.994361 | 0.37782 | 0.022582 | 0.030109 | 0.023711 | 0.065487 | 0.048927 | 0 | 0 | 0 | 0 | 0 | 0.013863 | 0.269577 | 4,444 | 127 | 79 | 34.992126 | 0.804683 | 0.489424 | 0 | 0 | 0 | 0 | 0.115972 | 0.01119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.14 | 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 |
f83bb94361c259b35e4ff208fa028f2496100f01 | 7,501 | py | Python | samples/data_inspect_utils.py | shachargluska/centerpose | 01c2c8bfa9d3ee91807f2ffdcc48728d104265bd | [
"MIT"
] | 245 | 2019-11-29T02:55:25.000Z | 2022-03-30T07:30:18.000Z | samples/data_inspect_utils.py | shachargluska/centerpose | 01c2c8bfa9d3ee91807f2ffdcc48728d104265bd | [
"MIT"
] | 24 | 2019-11-29T10:05:00.000Z | 2022-03-30T07:16:06.000Z | samples/data_inspect_utils.py | FishLiuabc/centerpose | 555d753cd82693476f91f78c53aa4147f5a83015 | [
"MIT"
] | 45 | 2019-11-29T05:12:02.000Z | 2022-03-21T02:20:36.000Z | from __future__ import absolute_import, division, print_function
import cv2
import random
import numpy as np
import colorsys
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.patches import Polygon
from skimage.measure import find_contours
def log(text, array=None):
"""Prints a... | 35.382075 | 94 | 0.55046 | 1,033 | 7,501 | 3.93514 | 0.264279 | 0.00861 | 0.005904 | 0.007872 | 0.032964 | 0.0123 | 0.0123 | 0 | 0 | 0 | 0 | 0.047572 | 0.321824 | 7,501 | 211 | 95 | 35.549763 | 0.751523 | 0.240101 | 0 | 0.059701 | 0 | 0 | 0.025332 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 1 | 0.052239 | false | 0 | 0.067164 | 0 | 0.156716 | 0.022388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f83c3a927ff9df79fe83f0ce7fdfd551b1c6f921 | 7,741 | py | Python | dapy/filters/particle.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 11 | 2020-07-29T07:46:39.000Z | 2022-03-17T01:28:07.000Z | dapy/filters/particle.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 1 | 2020-07-14T11:49:17.000Z | 2020-07-29T07:43:22.000Z | dapy/filters/particle.py | hassaniqbal209/data-assimilation | ec52d655395dbed547edf4b4f3df29f017633f1b | [
"MIT"
] | 10 | 2020-07-14T11:34:24.000Z | 2022-03-07T09:08:12.000Z | """Particle filters for inference in state space models."""
import abc
from typing import Tuple, Dict, Callable, Any, Optional
import numpy as np
from numpy.random import Generator
from scipy.special import logsumexp
from scipy.sparse import csr_matrix
from dapy.filters.base import AbstractEnsembleFilter
from dapy.mod... | 44.745665 | 88 | 0.689058 | 879 | 7,741 | 5.88851 | 0.302617 | 0.074189 | 0.063756 | 0.027821 | 0.283037 | 0.267195 | 0.191461 | 0.186631 | 0.118624 | 0.098532 | 0 | 0.010064 | 0.255523 | 7,741 | 172 | 89 | 45.005814 | 0.888079 | 0.463764 | 0 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067416 | false | 0.011236 | 0.101124 | 0 | 0.247191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f83d223baea30c7408f539bf887906161d4b99ea | 1,477 | py | Python | pokemon.py | bran-almeida/Pokemon_Game | 061c9e1b53d8cbaa7366634535288bb2868d6885 | [
"MIT"
] | null | null | null | pokemon.py | bran-almeida/Pokemon_Game | 061c9e1b53d8cbaa7366634535288bb2868d6885 | [
"MIT"
] | null | null | null | pokemon.py | bran-almeida/Pokemon_Game | 061c9e1b53d8cbaa7366634535288bb2868d6885 | [
"MIT"
] | null | null | null | import random
class Pokemon:
def __init__(self, especie, level=None, nome=None):
self.especie = especie
if nome:
self.nome = nome
else:
self.nome = especie
if level:
self.level = level
else:
self.level = ra... | 27.867925 | 83 | 0.564658 | 176 | 1,477 | 4.676136 | 0.272727 | 0.080194 | 0.063183 | 0.082625 | 0.315917 | 0.315917 | 0.315917 | 0.274605 | 0.17983 | 0.17983 | 0 | 0.00995 | 0.319567 | 1,477 | 53 | 84 | 27.867925 | 0.808955 | 0 | 0 | 0.25 | 0 | 0.025 | 0.227334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.025 | 0.025 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f83f6977354074227de8507f3a2a55a87f9d6abe | 5,752 | py | Python | sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class BranchConfigur... | 29.497436 | 113 | 0.595271 | 611 | 5,752 | 5.518822 | 0.212766 | 0.054567 | 0.156584 | 0.131673 | 0.449585 | 0.433867 | 0.394721 | 0.262159 | 0.113286 | 0.11032 | 0 | 0.019653 | 0.318846 | 5,752 | 194 | 114 | 29.649485 | 0.84099 | 0.410814 | 0 | 0.071429 | 0 | 0 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.035714 | 0 | 0.357143 | 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 |
f840464edc80ddc50844d1de4a6669b63272a7ea | 1,156 | py | Python | tests/cli/version_test.py | longhuei/floyd-cli | 82709f1e301d7a56ac354e4615a354e2c36d71b8 | [
"Apache-2.0"
] | 162 | 2017-01-27T02:54:17.000Z | 2022-03-03T09:06:28.000Z | tests/cli/version_test.py | longhuei/floyd-cli | 82709f1e301d7a56ac354e4615a354e2c36d71b8 | [
"Apache-2.0"
] | 79 | 2017-02-17T08:58:39.000Z | 2021-05-29T09:24:31.000Z | tests/cli/version_test.py | longhuei/floyd-cli | 82709f1e301d7a56ac354e4615a354e2c36d71b8 | [
"Apache-2.0"
] | 43 | 2017-02-23T10:58:42.000Z | 2022-01-17T10:29:31.000Z | from click.testing import CliRunner
import unittest
from mock import patch, Mock, PropertyMock
from floyd.cli.version import upgrade
class TestFloydVersion(unittest.TestCase):
"""
Tests cli utils helper functions
"""
def setUp(self):
self.runner = CliRunner()
@patch('floyd.cli.version.pi... | 32.111111 | 98 | 0.702422 | 163 | 1,156 | 4.773006 | 0.355828 | 0.071979 | 0.100257 | 0.102828 | 0.40874 | 0.40874 | 0.40874 | 0.40874 | 0.40874 | 0.40874 | 0 | 0.047269 | 0.176471 | 1,156 | 35 | 99 | 33.028571 | 0.769958 | 0.027682 | 0 | 0.347826 | 0 | 0.086957 | 0.26083 | 0.108303 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.130435 | false | 0 | 0.173913 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8423088619bdfe61a95a3f318f27fab6ca0c75a | 4,181 | py | Python | offthedialbot/help.py | DJam98/bot | 366a46bcca55098e1030a4f05d63e8872a791bf8 | [
"MIT"
] | 2 | 2020-08-31T15:45:07.000Z | 2021-09-26T22:15:43.000Z | offthedialbot/help.py | DJam98/bot | 366a46bcca55098e1030a4f05d63e8872a791bf8 | [
"MIT"
] | 17 | 2020-06-02T02:29:48.000Z | 2021-10-13T23:47:44.000Z | offthedialbot/help.py | DJam98/bot | 366a46bcca55098e1030a4f05d63e8872a791bf8 | [
"MIT"
] | 3 | 2020-05-31T23:17:10.000Z | 2022-03-09T22:23:22.000Z | """Contains HelpCommand class."""
import discord
from discord.ext import commands
from offthedialbot import utils
class HelpCommand(commands.DefaultHelpCommand):
"""Set up help command for the bot."""
async def send_bot_help(self, mapping):
"""Send bot command page."""
list_commands = [
... | 38.712963 | 165 | 0.577613 | 479 | 4,181 | 4.941545 | 0.227557 | 0.034221 | 0.047317 | 0.048585 | 0.362907 | 0.31052 | 0.297 | 0.247571 | 0.215463 | 0.162653 | 0 | 0.000688 | 0.304233 | 4,181 | 107 | 166 | 39.074766 | 0.812994 | 0.026788 | 0 | 0.25 | 0 | 0.025 | 0.167284 | 0.028322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0375 | 0 | 0.1375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f8470708904f8b5b4aa1dabc0a1785bf58a61c23 | 7,178 | py | Python | qpricesim/model_code/QLearningAgent.py | ToFeWe/qpricesim | 2d4312ed1d1356449f0c168835a0662b238a27bb | [
"MIT"
] | 2 | 2022-03-22T12:16:37.000Z | 2022-03-22T12:48:46.000Z | qpricesim/model_code/QLearningAgent.py | ToFeWe/qpricesim | 2d4312ed1d1356449f0c168835a0662b238a27bb | [
"MIT"
] | null | null | null | qpricesim/model_code/QLearningAgent.py | ToFeWe/qpricesim | 2d4312ed1d1356449f0c168835a0662b238a27bb | [
"MIT"
] | null | null | null | """
A module that defines the QLearning Agent for the pricing game as a class.
Note that we have a numba version (for speed) which inherits everything from
QLearningAgentBase.
"""
import numpy as np
from numba import float64
from numba import int32
from numba import njit
from numba.experimental import jitclass
from .... | 31.621145 | 97 | 0.633185 | 923 | 7,178 | 4.827736 | 0.208017 | 0.023564 | 0.070018 | 0.075404 | 0.212074 | 0.177962 | 0.125898 | 0.099865 | 0.098519 | 0.098519 | 0 | 0.003759 | 0.295765 | 7,178 | 226 | 98 | 31.761062 | 0.877745 | 0.563249 | 0 | 0 | 0 | 0 | 0.017907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149254 | false | 0 | 0.104478 | 0 | 0.373134 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f84a7601115fccffa87d1679d8be58c1f83890a1 | 1,561 | py | Python | stanCode_Projects/my_photoshop/shrink.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/shrink.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/shrink.py | wilson51678/sc-projects | a4b9a0c542449372181f6bd20d4ad81b87bfcb46 | [
"MIT"
] | null | null | null | """
File: shrink.py
Name: Wilson Wang 2020/08/05
-------------------------------
Create a new "out" image half the width and height of the original.
Set pixels at x=0 1 2 3 in out , from x=0 2 4 6 in original,
and likewise in the y direction.
"""
from simpleimage import SimpleImage
def shrink(filename):
... | 31.857143 | 95 | 0.632287 | 240 | 1,561 | 3.970833 | 0.35 | 0.062959 | 0.04617 | 0.008395 | 0.06086 | 0.050367 | 0 | 0 | 0 | 0 | 0 | 0.022609 | 0.263293 | 1,561 | 48 | 96 | 32.520833 | 0.806087 | 0.474055 | 0 | 0 | 0 | 0 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f84a986b558a36ee9782c5da91c77b0601aa7b43 | 15,349 | py | Python | src/genie/libs/parser/iosxe/show_ip_dhcp.py | komurzak-cisco/genieparser | e6cd6bb133bab7260b2b82da198fd14a4dec66c7 | [
"Apache-2.0"
] | 1 | 2021-07-26T02:56:27.000Z | 2021-07-26T02:56:27.000Z | src/genie/libs/parser/iosxe/show_ip_dhcp.py | zhangineer/genieparser | d6abcb49bf6d39092d835d9490d817452920ae98 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/show_ip_dhcp.py | zhangineer/genieparser | d6abcb49bf6d39092d835d9490d817452920ae98 | [
"Apache-2.0"
] | null | null | null | """
show ip dhcp database
show ip dhcp snooping database
show ip dhcp snooping database detail
"""
# Python
import re
# Metaparser
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import (Schema, Any, Optional,
Or, And, Default, Use)
# Pa... | 37.436585 | 133 | 0.485699 | 1,509 | 15,349 | 4.799867 | 0.109344 | 0.046942 | 0.040039 | 0.048046 | 0.405633 | 0.359105 | 0.228773 | 0.143863 | 0.116526 | 0.094988 | 0 | 0.018199 | 0.369926 | 15,349 | 410 | 134 | 37.436585 | 0.730741 | 0.223272 | 0 | 0.441176 | 0 | 0.02521 | 0.273369 | 0.074509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012605 | false | 0 | 0.016807 | 0 | 0.084034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f84d7afc084777032cfb27a9f3d492736584d51d | 1,051 | py | Python | backend/flaskr/__init__.py | DakyungAndEunji/2021-ICE-Capstone-Project | 71761bf66bd170eae48a8084331ed1d00f9c184b | [
"MIT"
] | 1 | 2021-05-11T04:08:58.000Z | 2021-05-11T04:08:58.000Z | backend/flaskr/__init__.py | DakyungAndEunji/2021-ICE-Capstone-Project | 71761bf66bd170eae48a8084331ed1d00f9c184b | [
"MIT"
] | 11 | 2021-04-06T15:22:47.000Z | 2021-06-01T05:13:43.000Z | backend/flaskr/__init__.py | DakyungAndEunji/2021-ICE-Capstone-Project | 71761bf66bd170eae48a8084331ed1d00f9c184b | [
"MIT"
] | null | null | null | ### flaskr/__init__.py
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def create_app(test_config = None):
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:toor!@lo... | 26.948718 | 104 | 0.698382 | 137 | 1,051 | 5.153285 | 0.510949 | 0.063739 | 0.080737 | 0.065156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006039 | 0.212179 | 1,051 | 39 | 105 | 26.948718 | 0.846618 | 0.163654 | 0 | 0 | 0 | 0 | 0.170872 | 0.127294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.041667 | 0.166667 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f84fd6a36061acc80024ef6237230dcd9e8feabc | 7,228 | py | Python | backend/ec2.py | yubinhong/AutoAws | 92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d | [
"MIT"
] | 1 | 2020-02-21T07:40:46.000Z | 2020-02-21T07:40:46.000Z | backend/ec2.py | yubinhong/AutoAws | 92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d | [
"MIT"
] | null | null | null | backend/ec2.py | yubinhong/AutoAws | 92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d | [
"MIT"
] | null | null | null | import boto3
import time
class AwsEc2(object):
def __init__(self, access_key, secret_key):
self.access_key = access_key
self.secret_key = secret_key
self.client = boto3.client(service_name='ec2', region_name="ap-northeast-1", aws_access_key_id=self.access_key,
... | 34.419048 | 119 | 0.445075 | 598 | 7,228 | 5.140468 | 0.198997 | 0.027651 | 0.029603 | 0.034157 | 0.496096 | 0.447625 | 0.400781 | 0.353286 | 0.353286 | 0.333116 | 0 | 0.009439 | 0.457665 | 7,228 | 209 | 120 | 34.583732 | 0.774745 | 0 | 0 | 0.468421 | 0 | 0 | 0.088443 | 0.006644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057895 | false | 0 | 0.010526 | 0 | 0.131579 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f851380879e61799e28a7ffd91239a32f370bf71 | 2,299 | py | Python | control/voiceControl.py | Lluxent/CorporateClashUtility | 36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272 | [
"MIT"
] | 2 | 2021-03-08T02:30:58.000Z | 2021-03-17T12:57:33.000Z | control/voiceControl.py | Lluxent/CorporateClashUtility | 36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272 | [
"MIT"
] | null | null | null | control/voiceControl.py | Lluxent/CorporateClashUtility | 36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272 | [
"MIT"
] | null | null | null | import control
import speech_recognition as sr
def recognize_speech_from_mic(recognizer, microphone):
"""Transcribe speech from recorded from `microphone`.
Returns a dictionary with three keys:
"success": a boolean indicating whether or not the API request was
successful
"error": `Non... | 33.808824 | 104 | 0.653763 | 255 | 2,299 | 5.85098 | 0.423529 | 0.030161 | 0.025469 | 0.029491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260983 | 2,299 | 68 | 105 | 33.808824 | 0.878164 | 0.373206 | 0 | 0.105263 | 0 | 0 | 0.19181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.026316 | 0.052632 | 0 | 0.105263 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f85295b6cbccfde4504d51121948d6ed5ff3e3c4 | 6,721 | py | Python | lookatweb/rules/objects.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T13:22:29.000Z | 2018-02-03T13:10:20.000Z | lookatweb/rules/objects.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | lookatweb/rules/objects.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | from .consts import *
# Object matching by classid
OBJECTS_CLSID_RULES = [
{'type' : RULETYPE_EQUAL, 'text' : 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',
'entities' : [
{'name' : 'web:tech/flash'}
]
},
{'type' : RULETYPE_EQUAL, 'text' : 'clsid:d27cdb6e-ae6d-11cf-96b8-44455354... | 30.139013 | 112 | 0.494867 | 639 | 6,721 | 5.123631 | 0.247261 | 0.085522 | 0.174099 | 0.154551 | 0.69609 | 0.571167 | 0.431888 | 0.372022 | 0.357056 | 0.343311 | 0 | 0.040803 | 0.296236 | 6,721 | 222 | 113 | 30.274775 | 0.651374 | 0.016218 | 0 | 0.288557 | 0 | 0 | 0.456101 | 0.175901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004975 | 0 | 0.004975 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f856a06399d0483aa5762d750435935c90b3dd55 | 6,020 | py | Python | src/failprint/cli.py | pawamoy/woof | 5c8eccfe5c1343b5a399b5794c486b3c0de67c78 | [
"0BSD"
] | 6 | 2020-10-14T07:22:31.000Z | 2022-02-13T23:17:56.000Z | src/failprint/cli.py | pawamoy/woof | 5c8eccfe5c1343b5a399b5794c486b3c0de67c78 | [
"0BSD"
] | 10 | 2020-04-29T12:29:43.000Z | 2021-07-31T10:35:36.000Z | src/failprint/cli.py | pawamoy/woof | 5c8eccfe5c1343b5a399b5794c486b3c0de67c78 | [
"0BSD"
] | 1 | 2021-08-07T03:23:41.000Z | 2021-08-07T03:23:41.000Z | # Why does this file exist, and why not put this in `__main__`?
#
# You might be tempted to import things from `__main__` later,
# but that will cause problems: the code will get executed twice:
#
# - When you run `python -m failprint` python will execute
# `__main__.py` as a script. That means there won't be any
# ... | 36.707317 | 126 | 0.635382 | 770 | 6,020 | 4.849351 | 0.315584 | 0.026513 | 0.024103 | 0.02812 | 0.143278 | 0.129888 | 0.096679 | 0.096679 | 0.096679 | 0.074183 | 0 | 0.001324 | 0.247342 | 6,020 | 163 | 127 | 36.932515 | 0.822776 | 0.318106 | 0 | 0.152174 | 0 | 0.01087 | 0.333846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.032609 | 0.054348 | 0 | 0.141304 | 0.076087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f85a24e0d9a829e5ba4097a173e5c180ffe2795f | 1,410 | py | Python | Summarizing-Data-with-statistics-/code.py | Tushar23dhongade/ga-learner-dsmp-repo | cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1 | [
"MIT"
] | null | null | null | Summarizing-Data-with-statistics-/code.py | Tushar23dhongade/ga-learner-dsmp-repo | cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1 | [
"MIT"
] | null | null | null | Summarizing-Data-with-statistics-/code.py | Tushar23dhongade/ga-learner-dsmp-repo | cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1 | [
"MIT"
] | null | null | null | # --------------
#Header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#path of the data file- path
data=pd.read_csv(path)
data["Gender"].replace("-","Agender",inplace=True)
gender_count=data.Gender.value_counts()
gender_count.plot(kind="bar")
#Code starts here
# ---... | 20.434783 | 53 | 0.698582 | 212 | 1,410 | 4.415094 | 0.330189 | 0.053419 | 0.074786 | 0.021368 | 0.023504 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.114894 | 1,410 | 68 | 54 | 20.735294 | 0.737179 | 0.137589 | 0 | 0 | 0 | 0 | 0.074588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f85c11db5b31e7e4088a63d0697d91e4986e3c85 | 6,962 | py | Python | soc/python/checkDB.py | idea-fasoc/fasoc | 5a1fc8cf980b24a48b17f4447f13fb50d49e366a | [
"MIT"
] | 48 | 2019-09-16T09:49:54.000Z | 2022-02-09T20:59:10.000Z | soc/python/checkDB.py | idea-fasoc/fasoc | 5a1fc8cf980b24a48b17f4447f13fb50d49e366a | [
"MIT"
] | 18 | 2019-10-15T04:17:35.000Z | 2021-05-25T00:12:52.000Z | soc/python/checkDB.py | idea-fasoc/fasoc | 5a1fc8cf980b24a48b17f4447f13fb50d49e366a | [
"MIT"
] | 8 | 2019-10-15T17:27:41.000Z | 2022-01-26T20:42:07.000Z | #!/usr/bin/env python3
#MIT License
#Copyright (c) 2018 The University of Michigan
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
... | 44.063291 | 418 | 0.668342 | 894 | 6,962 | 5.042506 | 0.250559 | 0.046362 | 0.034605 | 0.048802 | 0.547915 | 0.547471 | 0.535492 | 0.512866 | 0.511979 | 0.487578 | 0 | 0.005441 | 0.234415 | 6,962 | 158 | 419 | 44.063291 | 0.840338 | 0.225223 | 0 | 0.65 | 0 | 0 | 0.118666 | 0.013413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008333 | false | 0 | 0.05 | 0 | 0.133333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f85e27ad10e7814b11be2c93c0c4dca76deac4ea | 2,222 | py | Python | Piquant/Debug/script/matlplotlib_pyplot实操代码.py | QuantPengPeng/Piquant | 88047831a3ce4eb5b67fc68c752243084ba90199 | [
"MIT"
] | 9 | 2019-04-07T06:17:50.000Z | 2021-07-11T14:31:36.000Z | Piquant/Debug/script/matlplotlib_pyplot实操代码.py | QuantPengPeng/Piquant | 88047831a3ce4eb5b67fc68c752243084ba90199 | [
"MIT"
] | 1 | 2019-05-17T01:57:07.000Z | 2019-11-19T01:57:05.000Z | Piquant/Debug/script/matlplotlib_pyplot实操代码.py | QuantPengPeng/Piquant | 88047831a3ce4eb5b67fc68c752243084ba90199 | [
"MIT"
] | 6 | 2019-04-15T07:17:26.000Z | 2019-08-04T02:55:36.000Z |
# coding: utf-8
# In[35]:
import matplotlib.pyplot as plt
from pylab import *
import numpy as np
main_image=plt.figure(figsize=(10,10))
subplots_adjust(hspace=0.3,wspace=0.3)#控制子图间的行间距、列间距
#子图1-单线
x_0=np.linspace(0,2*np.pi,20) #自变量X的取值范围
sub_image_1=plt.subplot(2,2,1)
plt.xlabel('X value')
plt.ylabel('Sin value')... | 32.676471 | 165 | 0.729973 | 425 | 2,222 | 3.625882 | 0.317647 | 0.098637 | 0.029202 | 0.031149 | 0.19987 | 0.177807 | 0.107722 | 0.032446 | 0 | 0 | 0 | 0.057377 | 0.066607 | 2,222 | 67 | 166 | 33.164179 | 0.685632 | 0.077408 | 0 | 0.145833 | 0 | 0 | 0.111713 | 0 | 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 |
f85f1ff5fdc55f6eaa86305ff1243afdf2c3c231 | 7,624 | py | Python | colour/models/rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | 1 | 2019-06-27T11:32:48.000Z | 2019-06-27T11:32:48.000Z | colour/models/rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | colour/models/rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
RGB Colourspace Transformations
===============================
Defines the *RGB* colourspace transformations:
- :func:`XYZ_to_RGB`
- :func:`RGB_to_XYZ`
- :func:`RGB_to_RGB`
See Also
--------
`RGB Colourspaces IPython Notebook
<http://nbviewer.ipython.org/gith... | 31.766667 | 115 | 0.613458 | 852 | 7,624 | 5.2723 | 0.188967 | 0.097284 | 0.105744 | 0.020036 | 0.62333 | 0.503117 | 0.466162 | 0.42854 | 0.342832 | 0.307881 | 0 | 0.08627 | 0.251967 | 7,624 | 239 | 116 | 31.899582 | 0.701385 | 0.60585 | 0 | 0.206897 | 0 | 0 | 0.091166 | 0.012505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f85f4b7c7b491177a0f091a1844ac24655fff102 | 1,768 | py | Python | tests/assign_folds_test.py | turku-rad-ai/pe-detection | d9b49800de45a40030db72db65f4806b23d97a63 | [
"Apache-2.0"
] | null | null | null | tests/assign_folds_test.py | turku-rad-ai/pe-detection | d9b49800de45a40030db72db65f4806b23d97a63 | [
"Apache-2.0"
] | null | null | null | tests/assign_folds_test.py | turku-rad-ai/pe-detection | d9b49800de45a40030db72db65f4806b23d97a63 | [
"Apache-2.0"
] | null | null | null | from typing import List
import pandas as pd
import pytest
from preprocessing.assign_folds import assign_folds
testdata = [
[
[
"patient1",
"patient2",
"patient3",
"patient4",
"patient5",
"patient6",
"patient7",
... | 24.901408 | 99 | 0.526584 | 200 | 1,768 | 4.54 | 0.43 | 0.046256 | 0.006608 | 0.008811 | 0.121145 | 0.121145 | 0.121145 | 0.121145 | 0.121145 | 0.121145 | 0 | 0.041916 | 0.338801 | 1,768 | 70 | 100 | 25.257143 | 0.734816 | 0.084276 | 0 | 0.105263 | 0 | 0 | 0.221947 | 0.028518 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.017544 | false | 0 | 0.070175 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f86011337ef051c071ef0fd89e5bf4792bb54439 | 1,116 | py | Python | tests/test_main.py | dadaloop82/viseron | 1c6c446a4856e16c0e2ed6b9323d169fbdcae20f | [
"MIT"
] | 399 | 2020-08-31T21:13:07.000Z | 2022-03-31T18:54:26.000Z | tests/test_main.py | dadaloop82/viseron | 1c6c446a4856e16c0e2ed6b9323d169fbdcae20f | [
"MIT"
] | 157 | 2020-09-01T18:59:56.000Z | 2022-03-25T07:14:19.000Z | tests/test_main.py | dadaloop82/viseron | 1c6c446a4856e16c0e2ed6b9323d169fbdcae20f | [
"MIT"
] | 53 | 2020-09-01T07:35:59.000Z | 2022-03-28T23:21:16.000Z | """Tests for __main__.py."""
# import logging
from unittest.mock import MagicMock, patch
import pytest
import viseron.__main__
@pytest.fixture
def mocked_viseron(mocker):
"""Mock Viseron class."""
mocker.patch("viseron.__main__.Viseron", return_value="Testing")
def test_init(simple_config, mocked_viseron)... | 27.219512 | 74 | 0.606631 | 113 | 1,116 | 5.495575 | 0.433628 | 0.141707 | 0.048309 | 0.070853 | 0.083736 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.252688 | 1,116 | 40 | 75 | 27.9 | 0.741007 | 0.503584 | 0 | 0 | 0 | 0 | 0.097514 | 0.045889 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.25 | 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 |