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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e9b577b7f413d5ad5843da3f3b556606b15fe32 | 8,709 | py | Python | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | null | null | null | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | null | null | null | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | 3 | 2021-05-21T12:11:05.000Z | 2022-03-11T06:05:45.000Z | import bs4
import requests
from urllib.request import urlopen
from itertools import chain
from html.parser import HTMLParser
from requests import get
import os
import time
from pathlib import Path
import pandas as pd
from keras.preprocessing.text import text_to_word_sequence
# WIKI TEXT BODY SCRAPING FUNCTION
def wik... | 52.463855 | 128 | 0.662303 | 1,158 | 8,709 | 4.879102 | 0.226252 | 0.141239 | 0.322832 | 0.383363 | 0.565487 | 0.275929 | 0.033982 | 0 | 0 | 0 | 0 | 0.002358 | 0.172236 | 8,709 | 165 | 129 | 52.781818 | 0.781384 | 0.041107 | 0 | 0 | 0 | 0 | 0.592855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.084615 | 0 | 0.161538 | 0.023077 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e9c3050599f663b533b1cb0a02ba2db691c8a25 | 10,680 | py | Python | submitReason.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | submitReason.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | submitReason.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | # Import external modules
from google.appengine.ext import ndb
import json
import logging
import os
import webapp2
# Import app modules
from configuration import const as conf
import httpServer
import linkKey
import proposal
import reason
import requestForProposals
import user
import text
from text import LogMessage
... | 57.112299 | 202 | 0.71573 | 1,001 | 10,680 | 7.604396 | 0.150849 | 0.04887 | 0.091435 | 0.148975 | 0.763006 | 0.746453 | 0.717551 | 0.675512 | 0.648187 | 0.615607 | 0 | 0.000694 | 0.190075 | 10,680 | 186 | 203 | 57.419355 | 0.879306 | 0.082772 | 0 | 0.40678 | 0 | 0 | 0.098095 | 0.00983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.118644 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e9c781b419e835c7eced196ef491e5128f9bbdb | 62 | py | Python | ACM-Solution/powerof2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 2 | 2016-04-26T15:40:40.000Z | 2018-07-18T10:16:42.000Z | ACM-Solution/powerof2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2016-04-26T15:44:15.000Z | 2016-04-29T14:44:40.000Z | ACM-Solution/powerof2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2018-10-02T16:12:19.000Z | 2018-10-02T16:12:19.000Z | exec("x=0;N=int(input());print(2**(sum()+1));"*int(input()))
| 31 | 61 | 0.532258 | 12 | 62 | 2.75 | 0.833333 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.032258 | 62 | 1 | 62 | 62 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.639344 | 0.639344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
1e9d25884d2e5c0101e720dedd1422a914d3a51f | 6,921 | py | Python | utils/search_methods/improved_genetic_algorithm.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | null | null | null | utils/search_methods/improved_genetic_algorithm.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | null | null | null | utils/search_methods/improved_genetic_algorithm.py | Yzx835/AISafety | eb09551814898c7f6d86641b47faf7845c948640 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# coding=UTF-8
"""
@Author: WEN Hao
@LastEditors: WEN Hao
@Description:
@Date: 2021-09-09
@LastEditTime: 2022-04-17
文章Natural Language Adversarial Attack and Defense in Word Level中提出的遗传算法
注意!中文因为切词,可能进行 crossover 的操作之后,词的数目发生变化,
目前暂时把搜索范围截断为两个句子词数目较小的句子的词数目。
"""
from typing import NoReturn, L... | 40.238372 | 146 | 0.675625 | 828 | 6,921 | 5.353865 | 0.292271 | 0.074442 | 0.094293 | 0.024363 | 0.18836 | 0.138055 | 0.089781 | 0.0388 | 0.022558 | 0.022558 | 0 | 0.011036 | 0.253721 | 6,921 | 171 | 147 | 40.473684 | 0.847241 | 0.4063 | 0 | 0.043956 | 0 | 0 | 0.058009 | 0.058009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065934 | false | 0 | 0.076923 | 0.010989 | 0.21978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea072b732c5079452f155039380955fd1aa5f1c | 1,471 | py | Python | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | samEshop/main/migrations/0011_auto_20211002_1844.py | Tedd-console/Django-Ecomm | fd74af3625888b76bb7f8da6b0ae5331c71b15f9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-02 15:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0010_cartorder_c... | 36.775 | 128 | 0.597553 | 149 | 1,471 | 5.751678 | 0.516779 | 0.03734 | 0.049008 | 0.077013 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0.128355 | 0 | 0.033945 | 0.259007 | 1,471 | 39 | 129 | 37.717949 | 0.752294 | 0.030591 | 0 | 0.181818 | 1 | 0 | 0.142556 | 0.020365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea0fd1be68cf1a8b16e2cd75440fa8dee7e1872 | 303 | py | Python | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/word-count/word_count.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | import re
def count_words(sentence):
words: list[str] = [match.group(0) for match in re.finditer(r"[a-z0-9]+(['][a-z]+)?", sentence.lower())]
word_occurrences: dict[str, int] = {word: 0 for word in words}
for word in words:
word_occurrences[word] += 1
return word_occurrences
| 27.545455 | 108 | 0.643564 | 47 | 303 | 4.06383 | 0.553191 | 0.235602 | 0.094241 | 0.146597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020492 | 0.194719 | 303 | 10 | 109 | 30.3 | 0.762295 | 0 | 0 | 0 | 0 | 0 | 0.069307 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea33dcbed661949c9cfc5e0d749a5bbbbaa4357 | 1,595 | py | Python | tests/operations/test_set_op.py | andypalmer9669/74_series_computer | 0b8a4776b49a2380a51863634b48bcc441bf74ec | [
"MIT"
] | null | null | null | tests/operations/test_set_op.py | andypalmer9669/74_series_computer | 0b8a4776b49a2380a51863634b48bcc441bf74ec | [
"MIT"
] | 46 | 2019-02-22T16:46:02.000Z | 2020-03-08T20:26:37.000Z | tests/operations/test_set_op.py | andypalmer9669/74_series_computer | 0b8a4776b49a2380a51863634b48bcc441bf74ec | [
"MIT"
] | null | null | null | import pytest
from eight_bit_computer.operations import set_op
from eight_bit_computer.data_structures import get_machine_code_byte_template
from eight_bit_computer.exceptions import OperationParsingError
def generate_parse_line_test_data():
ret = []
test_input = ""
expected = []
ret.append((test_in... | 25.725806 | 77 | 0.676489 | 219 | 1,595 | 4.557078 | 0.228311 | 0.144289 | 0.119238 | 0.09018 | 0.638277 | 0.467936 | 0.421844 | 0.421844 | 0.244489 | 0.244489 | 0 | 0.038911 | 0.194357 | 1,595 | 61 | 78 | 26.147541 | 0.737743 | 0 | 0 | 0.333333 | 0 | 0 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea38c7f548e4b34fc071140ff19d681459f019f | 5,066 | py | Python | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/model/model.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | from tensorflow import keras
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Conv2DTranspose,\
Activation, Add
def build_vgg(weights_path, input_width=224, input_height=224):
# input_height and width must be devisible by 32 because maxpooling with
# filter size = (2,2) is operated 5 times, which... | 44.052174 | 79 | 0.603237 | 617 | 5,066 | 4.769854 | 0.179903 | 0.119266 | 0.127421 | 0.195379 | 0.654434 | 0.562012 | 0.528372 | 0.505946 | 0.493034 | 0.493034 | 0 | 0.066453 | 0.260363 | 5,066 | 114 | 80 | 44.438596 | 0.718975 | 0.072246 | 0 | 0.329114 | 0 | 0 | 0.097545 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 1 | 0.025316 | false | 0 | 0.025316 | 0 | 0.075949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea3c749e4408cf0fa0ebae421190ee713d5bf51 | 10,098 | py | Python | src/models/ToothModel.py | arminnh/ma2-computer-vision | 9e931c87e097cd444ea292cdfff727636f003c36 | [
"MIT"
] | null | null | null | src/models/ToothModel.py | arminnh/ma2-computer-vision | 9e931c87e097cd444ea292cdfff727636f003c36 | [
"MIT"
] | null | null | null | src/models/ToothModel.py | arminnh/ma2-computer-vision | 9e931c87e097cd444ea292cdfff727636f003c36 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.spatial.distance
from scipy import linalg
import procrustes_analysis
import util
from Landmark import Landmark
from models.CenterInitializationModel import CenterInitializationModel
class ToothModel:
def __init__(self, name, landmarks, pcaComponents, sampleAmount):
self.na... | 42.970213 | 120 | 0.672509 | 997 | 10,098 | 6.794383 | 0.271815 | 0.014615 | 0.007086 | 0.005314 | 0.109536 | 0.109536 | 0.084145 | 0.060526 | 0.02982 | 0.02982 | 0 | 0.004095 | 0.250248 | 10,098 | 234 | 121 | 43.153846 | 0.890635 | 0.25005 | 0 | 0.080882 | 0 | 0 | 0.025003 | 0 | 0 | 0 | 0 | 0.004274 | 0 | 1 | 0.095588 | false | 0 | 0.051471 | 0.007353 | 0.242647 | 0.007353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea6959c71f84b4fbb20cdee1843fe3bbf5d0e59 | 4,169 | py | Python | ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py | rafaelapcruz/Awesome_Python_Scripts | 6493ce989c1bcd707a10836f09462916388476a1 | [
"MIT"
] | 1 | 2021-12-07T17:37:56.000Z | 2021-12-07T17:37:56.000Z | ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py | rafaelapcruz/Awesome_Python_Scripts | 6493ce989c1bcd707a10836f09462916388476a1 | [
"MIT"
] | null | null | null | ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py | rafaelapcruz/Awesome_Python_Scripts | 6493ce989c1bcd707a10836f09462916388476a1 | [
"MIT"
] | null | null | null | import os
import sys
import getopt
import random as r
from PIL import Image
from pixelsort import pixelsort
def randomize_params():
angle = r.randint(90, 359)
# --- DEFINE ALL PARAMETERS ---
params = {
1: 'interval_function',
2: 'randomness',
3: 'lower_threshold',
4: 'upper... | 32.317829 | 84 | 0.562725 | 474 | 4,169 | 4.767932 | 0.267932 | 0.061947 | 0.055752 | 0.047788 | 0.103982 | 0.040708 | 0.017699 | 0 | 0 | 0 | 0 | 0.018512 | 0.300312 | 4,169 | 129 | 85 | 32.317829 | 0.756256 | 0.118734 | 0 | 0.051546 | 0 | 0 | 0.201366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030928 | false | 0.010309 | 0.061856 | 0 | 0.113402 | 0.123711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea73bdb618160f1e19273aa3d6ae48a8b2062e6 | 1,434 | py | Python | curl-monitor.py | geekvikas/hello-kubernetes | cdb94ef83adcb9ab4169f67137638aadc3d7509c | [
"MIT"
] | null | null | null | curl-monitor.py | geekvikas/hello-kubernetes | cdb94ef83adcb9ab4169f67137638aadc3d7509c | [
"MIT"
] | null | null | null | curl-monitor.py | geekvikas/hello-kubernetes | cdb94ef83adcb9ab4169f67137638aadc3d7509c | [
"MIT"
] | null | null | null | import requests
import time
import subprocess as sp
start_time = 0
running_instances = {}
errCount = 0
reqCount = 0
def printStatus(hostname,version):
global running_instances
global start_time, errCount, reqCount
elapsed_time = int(time.time() - start_time)
# if (elapsed_time % 2) == 0 :
strin... | 26.072727 | 139 | 0.608787 | 171 | 1,434 | 4.906433 | 0.374269 | 0.190703 | 0.046484 | 0.059595 | 0.154946 | 0.081049 | 0 | 0 | 0 | 0 | 0 | 0.023969 | 0.272664 | 1,434 | 55 | 140 | 26.072727 | 0.780441 | 0.019526 | 0 | 0.243902 | 0 | 0 | 0.099644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.121951 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea74131c12620ae3e193010c7e32820c125cd7c | 2,835 | py | Python | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 8 | 2020-04-11T23:13:58.000Z | 2021-05-06T02:39:45.000Z | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | null | null | null | training/argparser.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 1 | 2020-05-26T01:56:24.000Z | 2020-05-26T01:56:24.000Z | import argparse
# Parse command line args
def argparser():
parser = argparse.ArgumentParser()
parser.add_argument('-c',
'--continue_train',
action='store_true',
help='when set, training will continue from before')
#error: ambiguous option: --t... | 35.886076 | 133 | 0.479718 | 292 | 2,835 | 4.520548 | 0.373288 | 0.081818 | 0.154545 | 0.07197 | 0.168182 | 0.128788 | 0.069697 | 0.069697 | 0.069697 | 0.069697 | 0 | 0.006024 | 0.414462 | 2,835 | 78 | 134 | 36.346154 | 0.789157 | 0.077601 | 0 | 0.237288 | 0 | 0.016949 | 0.310728 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.016949 | false | 0 | 0.016949 | 0 | 0.050847 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea7b89e8805b8150979e44b372cf9c7862d376d | 4,352 | py | Python | utils/test_utils.py | kedartatwawadi/stanford_compression_library | a472a81c71aeb81e181421e42aed75971a1cf4be | [
"MIT"
] | 2 | 2022-01-10T06:18:47.000Z | 2022-01-10T06:18:55.000Z | utils/test_utils.py | kedartatwawadi/stanford_compression_library | a472a81c71aeb81e181421e42aed75971a1cf4be | [
"MIT"
] | 20 | 2021-10-17T23:40:52.000Z | 2022-03-08T04:35:42.000Z | utils/test_utils.py | kedartatwawadi/stanford_compression_library | a472a81c71aeb81e181421e42aed75971a1cf4be | [
"MIT"
] | null | null | null | """
Utility functions useful for testing
"""
import filecmp
from typing import Tuple
from core.data_block import DataBlock
from core.data_stream import TextFileDataStream
from core.data_encoder_decoder import DataDecoder, DataEncoder
from core.prob_dist import ProbabilityDist
from utils.bitarray_utils import BitArray,... | 36.881356 | 136 | 0.735064 | 607 | 4,352 | 5.041186 | 0.257002 | 0.05 | 0.021242 | 0.017647 | 0.111111 | 0.063399 | 0 | 0 | 0 | 0 | 0 | 0.003741 | 0.201517 | 4,352 | 117 | 137 | 37.196581 | 0.876835 | 0.398438 | 0 | 0.041667 | 0 | 0 | 0.013398 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.104167 | false | 0 | 0.208333 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ea81ca38b70040f597d87185746d3648aaa4910 | 25,332 | py | Python | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | arijitnoobstar/UAVProjectileCatcher | 3c1bed80df167192cb4b971b58c891187628142e | [
"Apache-2.0"
] | 1 | 2021-09-09T15:29:31.000Z | 2021-09-09T15:29:31.000Z | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 4 | 2021-03-06T09:35:58.000Z | 2021-05-24T14:34:11.000Z | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mavros_msgs/CommandCode.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class CommandCode(genpy.Message):
_md5sum = "9c980aa1230f756ac9d693ff35accb29... | 60.748201 | 516 | 0.702195 | 3,565 | 25,332 | 4.817952 | 0.207854 | 0.020028 | 0.008326 | 0.003784 | 0.323416 | 0.250699 | 0.204879 | 0.182464 | 0.172799 | 0.161737 | 0 | 0.051715 | 0.249645 | 25,332 | 416 | 517 | 60.894231 | 0.851904 | 0.046502 | 0 | 0.065672 | 1 | 0.140299 | 0.810818 | 0.045754 | 0 | 0 | 0.000417 | 0 | 0 | 1 | 0.020896 | false | 0.00597 | 0.020896 | 0 | 0.414925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ea982d48261ba22b7efd1730632578e34e4f859 | 337 | py | Python | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Note
class NoteAdmin(admin.ModelAdmin):
readonly_fields= ['created_at', 'updated_at', 'author']
def save_model(self, request, obj, form, change):
obj.author = request.user
super().save_model(request, obj, form, change)
admin.site.register(... | 25.923077 | 59 | 0.712166 | 44 | 337 | 5.340909 | 0.636364 | 0.076596 | 0.119149 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169139 | 337 | 12 | 60 | 28.083333 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1ea9efb4fb19e24813db0928c0ed0206e678e2ed | 2,605 | py | Python | accounts/tests/test_password_change_done.py | chrstsrs/ToDoList | 8e13c5a8f6cabad0cf3f715ba9134dd82a46cc3e | [
"MIT"
] | 1 | 2019-01-18T07:47:04.000Z | 2019-01-18T07:47:04.000Z | accounts/tests/test_password_change_done.py | chrstsrs/ToDoList | 8e13c5a8f6cabad0cf3f715ba9134dd82a46cc3e | [
"MIT"
] | 6 | 2020-02-11T23:33:32.000Z | 2022-03-11T23:38:01.000Z | accounts/tests/test_password_change_done.py | chrstsrs/todolist | 8e13c5a8f6cabad0cf3f715ba9134dd82a46cc3e | [
"MIT"
] | null | null | null | from django.contrib.auth import views as auth_views
from django.contrib.auth.models import User
from django.urls import resolve, reverse
from django.test import TestCase
class PasswordChangeDoneIntoAccountTests(TestCase):
def setUp(self):
self.user = User.objects.create_user(
username... | 47.363636 | 83 | 0.732438 | 311 | 2,605 | 5.81672 | 0.221865 | 0.185738 | 0.199005 | 0.092869 | 0.595357 | 0.550028 | 0.458264 | 0.352681 | 0.352681 | 0.352681 | 0 | 0.010176 | 0.170058 | 2,605 | 54 | 84 | 48.240741 | 0.826549 | 0 | 0 | 0.302326 | 0 | 0 | 0.155625 | 0.123873 | 0 | 0 | 0 | 0 | 0.232558 | 1 | 0.209302 | false | 0.604651 | 0.093023 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1eab2801fa3a5a8256f44b1bd99c1e958db0f033 | 3,094 | py | Python | objects/classical_storage.py | h-oll/QuNetSim | e3647e512182eda2a303085ded30c7d1e55a4e01 | [
"MIT"
] | null | null | null | objects/classical_storage.py | h-oll/QuNetSim | e3647e512182eda2a303085ded30c7d1e55a4e01 | [
"MIT"
] | 4 | 2021-02-02T23:10:37.000Z | 2022-02-11T03:47:21.000Z | objects/classical_storage.py | h-oll/QuNetSim | e3647e512182eda2a303085ded30c7d1e55a4e01 | [
"MIT"
] | null | null | null | import components.protocols as protocols
class ClassicalStorage(object):
"""
A classical storage for messages.
"""
def __init__(self):
self._host_to_msg_dict = {}
self._host_to_read_index = {}
def _add_new_host_id(self, host_id):
self._host_to_msg_dict[host_id] = []
... | 33.268817 | 94 | 0.616031 | 433 | 3,094 | 4.066975 | 0.212471 | 0.0954 | 0.113572 | 0.110733 | 0.387848 | 0.31289 | 0.28109 | 0.172061 | 0.172061 | 0.156729 | 0 | 0.000932 | 0.306723 | 3,094 | 92 | 95 | 33.630435 | 0.820047 | 0.275048 | 0 | 0.090909 | 0 | 0 | 0.017068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.022727 | 0 | 0.386364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eabccfd77a86f3f295b6a683297245028bed3b7 | 4,331 | py | Python | build.py | sug0/libgoimg | 46545f2a9a68a1063579e8b15c09fa8600128986 | [
"MIT"
] | 3 | 2019-02-26T13:41:46.000Z | 2019-05-02T16:43:13.000Z | build.py | sugoiuguu/libgoimg | 46545f2a9a68a1063579e8b15c09fa8600128986 | [
"MIT"
] | 1 | 2019-02-04T22:07:56.000Z | 2019-02-04T22:07:56.000Z | build.py | sugoiuguu/libgoimg | 46545f2a9a68a1063579e8b15c09fa8600128986 | [
"MIT"
] | null | null | null | import re
import os
from sys import exit, argv
from platform import machine
from functools import reduce
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
def which(program):
if os.name == 'nt':
program += '.exe'
fpath, fname = os.path.split(program)
if fpath and... | 27.585987 | 98 | 0.529439 | 581 | 4,331 | 3.884682 | 0.342513 | 0.008861 | 0.019495 | 0.026584 | 0.095702 | 0.030128 | 0.030128 | 0.030128 | 0 | 0 | 0 | 0.034563 | 0.305241 | 4,331 | 156 | 99 | 27.762821 | 0.71552 | 0.070423 | 0 | 0.140496 | 0 | 0.008264 | 0.173058 | 0.011205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.041322 | 0.033058 | 0.297521 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eac22c7615b08f822c855110b5fa481a819bff8 | 273 | py | Python | sisbp_cat.py | naotohori/cafysis | 9d8534121c01ea75ae965cf39a1e307052ff8523 | [
"MIT"
] | 2 | 2022-02-25T17:32:41.000Z | 2022-03-31T14:38:55.000Z | sisbp_cat.py | naotohori/cafysis | 9d8534121c01ea75ae965cf39a1e307052ff8523 | [
"MIT"
] | 2 | 2020-05-03T08:36:10.000Z | 2021-01-27T12:40:50.000Z | sisbp_cat.py | naotohori/life-of-py | 9d8534121c01ea75ae965cf39a1e307052ff8523 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from cafysis.file_io.sisbp import SisbpFile
import sys
f = SisbpFile(sys.argv[1])
f.open_to_read()
while f.has_more_data():
pairs = f.read_onestep()
for p in pairs:
print(f" ({p[0]:d}, {p[1]:d})", end='')
print("")
f.close()
| 15.166667 | 47 | 0.611722 | 47 | 273 | 3.425532 | 0.680851 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.194139 | 273 | 17 | 48 | 16.058824 | 0.718182 | 0.07326 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eac32e0121b7c0cf9d2b404b91b0f2a824ee7a2 | 535 | py | Python | sendemail.py | kenelite/pypractise | ef79ca760533096e6da89846e2974fa47a060440 | [
"MIT"
] | null | null | null | sendemail.py | kenelite/pypractise | ef79ca760533096e6da89846e2974fa47a060440 | [
"MIT"
] | null | null | null | sendemail.py | kenelite/pypractise | ef79ca760533096e6da89846e2974fa47a060440 | [
"MIT"
] | null | null | null | #/usr/bin/env python
import smtplib
mail_server = 'localhost'
mail_server_port = 25
from_addr = 'sender@devcentos.example.com'
to_addr = 'root@devcentos.example.com'
from_header = 'From: %s\r\n' % from_addr
to_header = 'To: %s\r\n\r\n' % to_addr
subject_header = 'Subject: nothing interesting'
body = 'This is not... | 22.291667 | 84 | 0.73271 | 90 | 535 | 4.133333 | 0.411111 | 0.107527 | 0.075269 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.121495 | 535 | 23 | 85 | 23.26087 | 0.787234 | 0.035514 | 0 | 0 | 0 | 0 | 0.324272 | 0.104854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ead0b0255a3ba3da34a217fdcc1371caa46d76d | 717 | py | Python | factioncli/commands/log.py | s3b4stian/CLI | 057e4e9e2bff7bdce0f60106a0c61938386f7d01 | [
"BSD-3-Clause"
] | null | null | null | factioncli/commands/log.py | s3b4stian/CLI | 057e4e9e2bff7bdce0f60106a0c61938386f7d01 | [
"BSD-3-Clause"
] | null | null | null | factioncli/commands/log.py | s3b4stian/CLI | 057e4e9e2bff7bdce0f60106a0c61938386f7d01 | [
"BSD-3-Clause"
] | null | null | null | import logging
from cliff.command import Command
from factioncli.processing.docker.logs import get_logs
class Log(Command):
"Handles Log Command"
def get_parser(self, prog_name):
parser = super(Log, self).get_parser(prog_name)
parser.add_argument('-f','--follow',
he... | 34.142857 | 63 | 0.559275 | 75 | 717 | 5.173333 | 0.493333 | 0.07732 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002146 | 0.35007 | 717 | 21 | 63 | 34.142857 | 0.830472 | 0.026499 | 0 | 0 | 0 | 0 | 0.133705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eae734936bb5f5f20b1a21628c6561d92b1f27b | 82 | py | Python | python_modules/dagster/dagster/core/launcher/__init__.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | 1 | 2020-09-19T16:35:59.000Z | 2020-09-19T16:35:59.000Z | python_modules/dagster/dagster/core/launcher/__init__.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/launcher/__init__.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | null | null | null | from .base import RunLauncher
from .cli_api_run_launcher import CliApiRunLauncher
| 27.333333 | 51 | 0.878049 | 11 | 82 | 6.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 82 | 2 | 52 | 41 | 0.932432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1eaeeb70f4d3820cedf81ea0c740713a9b0641c3 | 10,097 | py | Python | delfick_project/option_merge/path.py | delfick/delfick_project | 4b49209639dd10cff6f48b4f5617cb7874481aaa | [
"MIT"
] | 1 | 2020-12-01T21:11:24.000Z | 2020-12-01T21:11:24.000Z | delfick_project/option_merge/path.py | delfick/delfick_project | 4b49209639dd10cff6f48b4f5617cb7874481aaa | [
"MIT"
] | 2 | 2019-11-18T05:28:19.000Z | 2019-11-18T07:12:24.000Z | delfick_project/option_merge/path.py | delfick/delfick_project | 4b49209639dd10cff6f48b4f5617cb7874481aaa | [
"MIT"
] | 2 | 2019-11-18T05:35:39.000Z | 2021-01-06T18:48:37.000Z | """
Option_merge uses this Path object to encapsulate the idea of a path and the
converters that are available to use.
We are able to use this to store a reference to the root of the configuration
as well as whether the converters should be ignored or not.
It's purpose is to behave like a string regardless of whether... | 31.751572 | 95 | 0.571754 | 1,229 | 10,097 | 4.560618 | 0.147274 | 0.064228 | 0.023194 | 0.022837 | 0.275468 | 0.196075 | 0.146833 | 0.094202 | 0.058162 | 0.043533 | 0 | 0.001826 | 0.349015 | 10,097 | 317 | 96 | 31.851735 | 0.850905 | 0.212142 | 0 | 0.236715 | 0 | 0 | 0.004335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.009662 | 0.004831 | 0.36715 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eaf0d7cba39f6baabe80e6ccc1b07ab55100c68 | 7,468 | py | Python | test/helpers/acmeair_utils.py | cloudant-labs/spark-cloudant | 07f772eb21ec268f2e013a65dc2f21e01232f82b | [
"Apache-2.0"
] | 25 | 2015-11-02T16:50:47.000Z | 2020-11-07T13:41:36.000Z | test/helpers/acmeair_utils.py | cloudant-labs/spark-cloudant | 07f772eb21ec268f2e013a65dc2f21e01232f82b | [
"Apache-2.0"
] | 80 | 2015-10-14T11:08:00.000Z | 2018-03-26T01:30:20.000Z | test/helpers/acmeair_utils.py | cloudant-labs/spark-cloudant | 07f772eb21ec268f2e013a65dc2f21e01232f82b | [
"Apache-2.0"
] | 30 | 2015-10-13T19:14:13.000Z | 2020-11-08T07:23:30.000Z | #*******************************************************************************
# Copyright (c) 2015 IBM Corp.
#
# 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/li... | 32.611354 | 115 | 0.684922 | 978 | 7,468 | 5.101227 | 0.309816 | 0.033674 | 0.025256 | 0.015234 | 0.197835 | 0.156344 | 0.108439 | 0.076568 | 0.043295 | 0.043295 | 0 | 0.009508 | 0.183182 | 7,468 | 229 | 116 | 32.611354 | 0.808361 | 0.243706 | 0 | 0.216418 | 0 | 0 | 0.229223 | 0.02046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.022388 | 0.059701 | 0 | 0.19403 | 0.067164 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eaff492508ad7fb7bb92e8d684b7499f0632a98 | 596 | py | Python | hackerrank-python/py-collections-namedtuple.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | 2 | 2021-09-06T22:13:12.000Z | 2021-11-22T08:50:04.000Z | hackerrank-python/py-collections-namedtuple.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null | hackerrank-python/py-collections-namedtuple.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null |
# https://www.hackerrank.com/challenges/py-collections-namedtuple/problem
from collections import namedtuple
if __name__ == '__main__':
test_cases = int(input())
length = test_cases
sum_marks = 0
colums = input().split()
while(test_cases > 0):
attributes = input().split... | 14.9 | 79 | 0.580537 | 64 | 596 | 5.171875 | 0.53125 | 0.108761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021226 | 0.288591 | 596 | 39 | 80 | 15.282051 | 0.759434 | 0.119128 | 0 | 0 | 0 | 0 | 0.042146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eb018ba89293cb747d6c0136e0a017d5a47aefe | 2,898 | py | Python | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | package/cloudshell/cm/customscript/domain/script_downloader.py | qualidan/CustomScript-Shell | 672ee31fe52edfce94ebc795172df76eae1d19a7 | [
"Apache-2.0"
] | null | null | null | import urllib
from logging import Logger
import re
import requests
from cloudshell.cm.customscript.domain.cancellation_sampler import CancellationSampler
from cloudshell.cm.customscript.domain.script_file import ScriptFile
class HttpAuth(object):
def __init__(self, username, password):
self.username = u... | 38.64 | 120 | 0.640442 | 338 | 2,898 | 5.322485 | 0.366864 | 0.048916 | 0.042246 | 0.031128 | 0.125625 | 0.087827 | 0.087827 | 0 | 0 | 0 | 0 | 0.007892 | 0.256729 | 2,898 | 75 | 121 | 38.64 | 0.827298 | 0.062112 | 0 | 0.117647 | 0 | 0 | 0.154834 | 0.042674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.058824 | 0.117647 | 0 | 0.313725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb38cc7954053068f5d059c1327bd8c4d8d37be | 4,365 | py | Python | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | 19 | 2021-02-16T12:32:22.000Z | 2022-01-06T11:16:44.000Z | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | 20 | 2021-01-13T20:58:07.000Z | 2022-03-21T15:53:07.000Z | starling_sim/basemodel/algorithms/dispatcher.py | tellae/starling | 56121c728eb5de3dfc77cdf08da89548f3315c87 | [
"CECILL-B"
] | null | null | null | import numpy as np
from abc import ABC
class Dispatcher(ABC):
"""
This class describes a dispatcher for a transport service.
The dispatcher is called to affect requests online or punctually.
The Dispatcher class allows a complete specification (punctual and online)
and separation (from the opera... | 27.980769 | 121 | 0.635052 | 505 | 4,365 | 5.392079 | 0.312871 | 0.033052 | 0.019097 | 0.013955 | 0.069776 | 0.031583 | 0 | 0 | 0 | 0 | 0 | 0.002586 | 0.291409 | 4,365 | 155 | 122 | 28.16129 | 0.877789 | 0.435281 | 0 | 0.042553 | 0 | 0 | 0.047351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.042553 | 0.021277 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb6aa4e2227819f8ee6cee396c7d5b44ecaa7f9 | 2,147 | py | Python | 0.5.12/ui_tweak/dashcamd.py | eFiniLan/openpilot-patches | ec8f1552651c17e6e0d1821d958412b6fa049228 | [
"MIT"
] | 9 | 2019-03-02T14:54:48.000Z | 2021-09-06T13:48:08.000Z | 0.5.12/ui_tweak/dashcamd.py | eFiniLan/openpilot-patches | ec8f1552651c17e6e0d1821d958412b6fa049228 | [
"MIT"
] | null | null | null | 0.5.12/ui_tweak/dashcamd.py | eFiniLan/openpilot-patches | ec8f1552651c17e6e0d1821d958412b6fa049228 | [
"MIT"
] | 9 | 2019-02-28T18:48:08.000Z | 2021-11-07T20:12:54.000Z | #!/usr/bin/env python2.7
#
# courtesy of pjlao307 (https://github.com/pjlao307/)
# this is just his original implementation but
# in openpilot service form so it's always on
#
# with the highest bit rates, the video is approx. 0.5MB per second
# the default value is set to 2.56Mbps = 0.32MB per second
#
import os
impor... | 35.783333 | 123 | 0.695855 | 342 | 2,147 | 4.201754 | 0.44152 | 0.104384 | 0.048713 | 0.029228 | 0.141962 | 0.10856 | 0.069589 | 0.069589 | 0.069589 | 0.069589 | 0 | 0.041496 | 0.203074 | 2,147 | 59 | 124 | 36.389831 | 0.798364 | 0.389846 | 0 | 0 | 0 | 0 | 0.079969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0.03125 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eb6f6fcdd74e9a025f3ed02c6d00363deabff53 | 666 | py | Python | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/integration/flask_endpoints_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | from tests.base_test import BaseTest
class FlaskEndpointsTest(BaseTest):
def test_defects_endpoint_exists(self):
with self.app_context():
response = self.app.get(r'/defects')
self.assertEqual(response.status_code, 200)
def test_defects_empty(self):
with self.app_conte... | 28.956522 | 64 | 0.647147 | 77 | 666 | 5.402597 | 0.363636 | 0.100962 | 0.221154 | 0.108173 | 0.557692 | 0.557692 | 0.439904 | 0.439904 | 0.439904 | 0.439904 | 0 | 0.011905 | 0.243243 | 666 | 22 | 65 | 30.272727 | 0.813492 | 0 | 0 | 0.6 | 0 | 0 | 0.06006 | 0.036036 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb741324553de85b65c74694b1a8e5d44149bad | 989 | py | Python | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | null | null | null | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | 2 | 2022-02-12T23:03:18.000Z | 2022-02-26T19:08:27.000Z | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | 1 | 2019-10-19T22:21:33.000Z | 2019-10-19T22:21:33.000Z | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import viewsets, filters, generics
from rest_framework.views import APIView
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.pagination import PageNumberPagination
from cms.models import Page
fr... | 35.321429 | 96 | 0.772497 | 108 | 989 | 6.916667 | 0.518519 | 0.069612 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001174 | 0.138524 | 989 | 27 | 97 | 36.62963 | 0.875587 | 0.047523 | 0 | 0 | 0 | 0 | 0.091587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0.05 | 0.95 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1eb775eefae8b7ad81e9c1edc49fc135b3659d88 | 1,196 | py | Python | Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py | andor2718/LeetCode | 59874f49085818e6da751f1cc26867b31079d35d | [
"BSD-3-Clause"
] | 1 | 2022-01-17T19:51:15.000Z | 2022-01-17T19:51:15.000Z | Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py | andor2718/LeetCode | 59874f49085818e6da751f1cc26867b31079d35d | [
"BSD-3-Clause"
] | null | null | null | Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py | andor2718/LeetCode | 59874f49085818e6da751f1cc26867b31079d35d | [
"BSD-3-Clause"
] | null | null | null | # https://leetcode.com/problems/find-the-winner-of-the-circular-game/
class ListNode:
def __init__(self, val=0, next=None, prev=None):
self.val = val
self.next = next
self.prev = prev
class Solution:
def findTheWinner(self, n: int, k: int) -> int:
if n == 1:
return... | 34.171429 | 75 | 0.579431 | 170 | 1,196 | 3.841176 | 0.329412 | 0.159265 | 0.073507 | 0.073507 | 0.162328 | 0.098009 | 0.098009 | 0.098009 | 0 | 0 | 0 | 0.012547 | 0.333612 | 1,196 | 34 | 76 | 35.176471 | 0.806775 | 0.165552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 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 |
1eb7c03290fb08e39908cee05b1cbf3161290e22 | 1,237 | py | Python | gmql/dataset/parsers/__init__.py | DEIB-GECO/PyGMQL | c7582b916c985a1521276a3e7eaba010b7902687 | [
"Apache-2.0"
] | 12 | 2017-06-10T13:18:32.000Z | 2021-05-06T12:19:07.000Z | gmql/dataset/parsers/__init__.py | DEIB-GECO/PyGMQL | c7582b916c985a1521276a3e7eaba010b7902687 | [
"Apache-2.0"
] | 28 | 2017-05-09T13:38:17.000Z | 2021-09-29T11:54:23.000Z | gmql/dataset/parsers/__init__.py | DEIB-GECO/PyGMQL | c7582b916c985a1521276a3e7eaba010b7902687 | [
"Apache-2.0"
] | 5 | 2017-10-11T13:53:57.000Z | 2020-02-28T06:21:21.000Z | # -*- coding: utf-8 -*-
# strings to recognize as NaN
NULL = "null"
INF = "∞"
UNDEFINED = "�"
null_values = [NULL, INF, UNDEFINED]
GTF = "gtf"
TAB = "tab"
VCF = "vcf"
string_aliases = ['string', 'char']
int_aliases = ['long', 'int', 'integer']
float_aliases = ['double', 'float']
bool_aliases = ['bool', 'boolean']
al... | 22.907407 | 74 | 0.662894 | 162 | 1,237 | 4.858025 | 0.388889 | 0.060991 | 0.060991 | 0.060991 | 0.129606 | 0.129606 | 0.129606 | 0.129606 | 0.129606 | 0.129606 | 0.000808 | 0.003125 | 0.223929 | 1,237 | 54 | 75 | 22.907407 | 0.814583 | 0.039612 | 0 | 0.097561 | 0 | 0 | 0.137437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 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 |
1eb85d0b0b100f5bb627dcd79ecd47d9d0502716 | 15,321 | py | Python | src/atomicfileio/__init__.py | sammck/python-atomicfileio | 23ec410815cf5f825e49cf18cb822b352943b758 | [
"MIT"
] | null | null | null | src/atomicfileio/__init__.py | sammck/python-atomicfileio | 23ec410815cf5f825e49cf18cb822b352943b758 | [
"MIT"
] | null | null | null | src/atomicfileio/__init__.py | sammck/python-atomicfileio | 23ec410815cf5f825e49cf18cb822b352943b758 | [
"MIT"
] | null | null | null | """Support for safely atomically updating files
This module provides tools for overwriting files in such a way that a reader will never see a partially written file.
Portions borrowed from https://code.activestate.com/recipes/579097-safely-and-atomically-write-to-a-file/,
also under the MIT license.
"""
__version__ =... | 46.427273 | 140 | 0.685595 | 2,316 | 15,321 | 4.48532 | 0.213731 | 0.02628 | 0.026184 | 0.009241 | 0.188487 | 0.149981 | 0.118598 | 0.079322 | 0.076242 | 0.054293 | 0 | 0.007757 | 0.251159 | 15,321 | 329 | 141 | 46.568389 | 0.897673 | 0.713204 | 0 | 0.229008 | 0 | 0 | 0.025177 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 1 | 0.038168 | false | 0.030534 | 0.099237 | 0 | 0.175573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eb9591fd39a90fbd8bda4b94d081bf78a89b3dc | 213,087 | py | Python | 3algo/homo/c6_7_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/c6_7_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/c6_7_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
timely6_7_7 = 2972
untimely6_7_7 = 52
record7 = [[({'t4.110.126.0': {'wcet': 1, 'period': 10, 'deadline': 9}, 't2.110.126.0': {'wcet': 1, 'period': 5, 'deadline': 4}}, {'t4.110.126.0': [0.326, 1.6], 't2.110.126.0': [0.415, 1.6]}), 'osboxes-0'], [({'t5.113.126.1': {'wcet': 3, 'period': 15, 'deadline': 12}}, {'t5.113.1... | 16,391.307692 | 175,533 | 0.558786 | 39,373 | 213,087 | 3.023442 | 0.099535 | 0.029385 | 0.128627 | 0.055695 | 0.67099 | 0.578922 | 0.559433 | 0.440282 | 0.440282 | 0 | 0 | 0.421754 | 0.100658 | 213,087 | 13 | 175,534 | 16,391.307692 | 0.199428 | 0 | 0 | 0 | 0 | 0 | 0.398931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1eba6e10d003d68291fee67453a429a61abfe604 | 794 | py | Python | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 8 | 2020-03-19T10:59:25.000Z | 2022-01-22T22:33:07.000Z | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2022-01-22T11:24:45.000Z | 2022-01-22T11:24:45.000Z | examples/coupled_cavity.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2020-03-19T13:27:41.000Z | 2020-03-19T13:27:41.000Z |
from simba import transfer_function_to_graph, tf2rss
from sympy import symbols
# passive realisation (g = 0)
s = symbols('s')
gamma_f, omega_s = symbols('gamma_f omega_s', real=True, positive=True)
tf = (s**2 + s * gamma_f + omega_s**2) / (s**2 - s * gamma_f + omega_s**2)
h_int = tf2rss(tf).to_slh().split().interac... | 30.538462 | 74 | 0.717884 | 130 | 794 | 4.130769 | 0.346154 | 0.026071 | 0.065177 | 0.089385 | 0.404097 | 0.193669 | 0.158287 | 0.158287 | 0.115456 | 0.115456 | 0 | 0.020115 | 0.123426 | 794 | 25 | 75 | 31.76 | 0.751437 | 0.18262 | 0 | 0 | 0 | 0 | 0.122862 | 0.079316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1ebaa882aa44892e3a1918f92d6f8a028a36933a | 2,259 | py | Python | iv_plan/examples/hironxsys_hand_ar.py | ryhanai/iv-plan-hironx | 2f89293a55df4608cb35e6a9676db97b9e486e7d | [
"BSD-3-Clause"
] | null | null | null | iv_plan/examples/hironxsys_hand_ar.py | ryhanai/iv-plan-hironx | 2f89293a55df4608cb35e6a9676db97b9e486e7d | [
"BSD-3-Clause"
] | null | null | null | iv_plan/examples/hironxsys_hand_ar.py | ryhanai/iv-plan-hironx | 2f89293a55df4608cb35e6a9676db97b9e486e7d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import roslib; roslib.load_manifest('iv_plan')
from ivutils import *
from hironxsys import *
import rospy
from ar_pose.msg import ARMarkers
from tf.transformations import *
import operator
def encode_FRAME(f):
return reduce(operator.__add__, f.mat) + f.vec
def decode_FRAME(ds):
retu... | 32.271429 | 104 | 0.660912 | 308 | 2,259 | 4.698052 | 0.357143 | 0.009675 | 0.008293 | 0.029026 | 0.143746 | 0.109191 | 0.109191 | 0.100898 | 0.100898 | 0.052522 | 0 | 0.024444 | 0.203187 | 2,259 | 69 | 105 | 32.73913 | 0.779444 | 0.062417 | 0 | 0.083333 | 0 | 0 | 0.061051 | 0.02461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.166667 | 0.041667 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ebb910855fd59083774495a20a52d1eeadfcf75 | 1,513 | py | Python | tests/test_randomvariablelist.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | tests/test_randomvariablelist.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | tests/test_randomvariablelist.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from probnum._randomvariablelist import _RandomVariableList
from probnum.random_variables import Dirac
class TestRandomVariableList(unittest.TestCase):
def setUp(self):
self.rv_list = _RandomVariableList([Dirac(0.1), Dirac(0.2)])
def test_inputs(self):
"""In... | 29.666667 | 73 | 0.623265 | 184 | 1,513 | 4.918478 | 0.342391 | 0.039779 | 0.066298 | 0.057459 | 0.028729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.269002 | 1,513 | 50 | 74 | 30.26 | 0.799277 | 0.037013 | 0 | 0.054054 | 0 | 0 | 0.005513 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.189189 | false | 0 | 0.108108 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ebbb91a70ab0433fe37a2b4712f72a2b687acc4 | 416 | py | Python | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | simple.py | julia2288-cmis/julia2288-cmis-cs2 | a6925b34bad8e46f2e437d3e174ba1fa2942791f | [
"CC0-1.0"
] | null | null | null | def mult(m,a):
return m * a
#Defines the critical functions.
def output(m, a, F):
out = """
The force you want to find is:
{} = {} * {}
""". format(F, m, a,)
return out
#Defines the output.
def main():
m = raw_input("What is the mass?")
a = raw_input("What is the acceleration?")
F = mult(float(m), float(a))
o... | 18.909091 | 44 | 0.622596 | 72 | 416 | 3.569444 | 0.416667 | 0.038911 | 0.062257 | 0.070039 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206731 | 416 | 21 | 45 | 19.809524 | 0.778788 | 0.180288 | 0 | 0 | 0 | 0 | 0.31454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ebbf6764706c37fc954f30837690895994c3e65 | 1,759 | py | Python | example_code/python/plot_curve_fit.py | NicoJG/PraktikumPhysikRepoVorlage | b29a4302958edc6205e2b107f7253f614cea0181 | [
"MIT"
] | 1 | 2021-08-21T17:08:39.000Z | 2021-08-21T17:08:39.000Z | example_code/python/plot_curve_fit.py | NicoJG/PraktikumPhysikRepoVorlage | b29a4302958edc6205e2b107f7253f614cea0181 | [
"MIT"
] | null | null | null | example_code/python/plot_curve_fit.py | NicoJG/PraktikumPhysikRepoVorlage | b29a4302958edc6205e2b107f7253f614cea0181 | [
"MIT"
] | null | null | null | # Erstelle aus gegebnen Daten eine Ausgleichskurve
# Und Plotte diese Kurve + die Daten
# wechsle die Working Directory zum Versuchsordner, damit das Python-Script von überall ausgeführt werden kann
import os,pathlib
project_path = pathlib.Path(__file__).absolute().parent.parent
os.chdir(project_path)
# benutze die ma... | 30.859649 | 110 | 0.728823 | 278 | 1,759 | 4.532374 | 0.507194 | 0.034921 | 0.022222 | 0.031746 | 0.052381 | 0.052381 | 0 | 0 | 0 | 0 | 0 | 0.014829 | 0.118249 | 1,759 | 57 | 111 | 30.859649 | 0.79755 | 0.388289 | 0 | 0 | 0 | 0 | 0.194707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0.037037 | 0.222222 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ebc01631e08d866baf1828fd8f7817027107805 | 2,547 | py | Python | pachicounter/util.py | yukkeorg/PachiCounter | 764526874e9ec03e06e7b61b136b20100e32d471 | [
"MIT"
] | null | null | null | pachicounter/util.py | yukkeorg/PachiCounter | 764526874e9ec03e06e7b61b136b20100e32d471 | [
"MIT"
] | null | null | null | pachicounter/util.py | yukkeorg/PachiCounter | 764526874e9ec03e06e7b61b136b20100e32d471 | [
"MIT"
] | null | null | null | # vim: ts=4 sts=4 sw=4 et
#####################################################################
# Pachi Counter
# Copyright (c) 2011-2020, Yusuke Ohshima All rights reserved.
#
# License: MIT.
# For details, please see LICENSE file.
#####################################################################
def bit_is_enab... | 26.53125 | 74 | 0.505693 | 366 | 2,547 | 3.39071 | 0.34153 | 0.008058 | 0.035455 | 0.016116 | 0.059629 | 0.038678 | 0.038678 | 0 | 0 | 0 | 0 | 0.054083 | 0.274048 | 2,547 | 95 | 75 | 26.810526 | 0.61709 | 0.058893 | 0 | 0.060606 | 0 | 0 | 0.084814 | 0.043517 | 0 | 0 | 0.001776 | 0 | 0 | 1 | 0.151515 | false | 0 | 0 | 0.060606 | 0.287879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ebea48b67d5622f6da1e6d92ac82373b246ae19 | 309 | py | Python | Prediction.py | neerajgupta2407/Fake-News-Foe | 394c83be8ea98caa60af7fdca2c8ec34af67c33f | [
"Apache-2.0"
] | 9 | 2020-03-26T12:22:57.000Z | 2021-05-01T20:07:55.000Z | Prediction.py | neerajgupta2407/Fake-News-Foe | 394c83be8ea98caa60af7fdca2c8ec34af67c33f | [
"Apache-2.0"
] | 4 | 2020-10-20T15:13:44.000Z | 2022-02-10T01:46:36.000Z | Prediction.py | neerajgupta2407/Fake-News-Foe | 394c83be8ea98caa60af7fdca2c8ec34af67c33f | [
"Apache-2.0"
] | 5 | 2020-03-25T15:26:14.000Z | 2020-12-03T20:07:23.000Z | import pickle
#function to run for prediction
def detecting_fake_news(var):
#retrieving the best model for prediction call
load_model = pickle.load(open('model/final_model.sav', 'rb'))
prediction = load_model.predict([var])
prob = load_model.predict_proba([var])
return prediction, prob
| 28.090909 | 65 | 0.734628 | 43 | 309 | 5.116279 | 0.604651 | 0.122727 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 309 | 10 | 66 | 30.9 | 0.852713 | 0.242718 | 0 | 0 | 0 | 0 | 0.099138 | 0.090517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec140a711eadb53834529c9948538cfabdd7acf | 9,058 | py | Python | chapter01/tic_tac_toe.py | TomaszGolan/rl-intro | 1676bfaea0c1661f931c160ed9ae104ee0b7b968 | [
"MIT"
] | null | null | null | chapter01/tic_tac_toe.py | TomaszGolan/rl-intro | 1676bfaea0c1661f931c160ed9ae104ee0b7b968 | [
"MIT"
] | null | null | null | chapter01/tic_tac_toe.py | TomaszGolan/rl-intro | 1676bfaea0c1661f931c160ed9ae104ee0b7b968 | [
"MIT"
] | null | null | null | import re
import random
import numpy as np
from itertools import product
from enum import Enum, unique
from abc import ABC, abstractmethod
from typing import Iterator, Dict, List
SIZE = 3 # board size (represented by numpy.array SIZExSIZE)
# for human player
KEYS = {'q': (0, 0), 'w': (0, 1), 'e': (0, 2),
'a'... | 31.894366 | 80 | 0.593729 | 1,234 | 9,058 | 4.269044 | 0.210697 | 0.027904 | 0.029233 | 0.013288 | 0.104973 | 0.069476 | 0.037206 | 0.026196 | 0 | 0 | 0 | 0.022633 | 0.278097 | 9,058 | 283 | 81 | 32.007067 | 0.782994 | 0.261758 | 0 | 0.087248 | 0 | 0 | 0.038072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147651 | false | 0.026846 | 0.04698 | 0 | 0.302013 | 0.040268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec1f348503a6ddff54e195931bc4015e263f684 | 2,034 | py | Python | run/make_cal_sinograms.py | TysonReimer/itDAS | d4b4313afe253186b12e1e8eda5ef55bada0c764 | [
"Apache-2.0"
] | 8 | 2020-04-27T05:43:33.000Z | 2021-12-05T14:48:09.000Z | run/make_cal_sinograms.py | TysonReimer/itDAS | d4b4313afe253186b12e1e8eda5ef55bada0c764 | [
"Apache-2.0"
] | null | null | null | run/make_cal_sinograms.py | TysonReimer/itDAS | d4b4313afe253186b12e1e8eda5ef55bada0c764 | [
"Apache-2.0"
] | 2 | 2021-02-16T11:07:07.000Z | 2021-12-05T14:48:27.000Z | """
Tyson Reimer
University of Manitoba
January 28th, 2020
"""
import os
from umbms import get_proj_path, get_script_logger
from umbms.loadsave import load_pickle, save_pickle
from umbms.beamform.sigproc import iczt
###############################################################################
__DA... | 30.358209 | 80 | 0.576696 | 266 | 2,034 | 4.007519 | 0.379699 | 0.067542 | 0.028143 | 0.028143 | 0.031895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.272861 | 2,034 | 66 | 81 | 30.818182 | 0.709263 | 0.26352 | 0 | 0 | 0 | 0 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec58569c44771c682f58f8e09b37bae0d7d95c2 | 5,477 | py | Python | waveform_analysis/tests/test_ITU_R_468_weighting.py | pirun/waveform_analysis | 66809614b1fc985e694af1720341035316a5ac8e | [
"MIT"
] | 125 | 2017-08-27T01:48:02.000Z | 2022-01-20T10:47:13.000Z | waveform_analysis/tests/test_ITU_R_468_weighting.py | pirun/waveform_analysis | 66809614b1fc985e694af1720341035316a5ac8e | [
"MIT"
] | 13 | 2017-06-25T14:57:43.000Z | 2022-03-18T19:54:19.000Z | waveform_analysis/tests/test_ITU_R_468_weighting.py | pirun/waveform_analysis | 66809614b1fc985e694af1720341035316a5ac8e | [
"MIT"
] | 48 | 2017-06-25T10:42:10.000Z | 2022-03-09T18:13:55.000Z | import pytest
from scipy import signal
from scipy.interpolate import interp1d
import numpy as np
from numpy import pi
# This package must first be installed with `pip install -e .` or similar
from waveform_analysis import (ITU_R_468_weighting_analog,
ITU_R_468_weighting, ITU_R_468_weight... | 34.88535 | 75 | 0.606171 | 815 | 5,477 | 3.955828 | 0.26135 | 0.022333 | 0.026055 | 0.044665 | 0.583747 | 0.530087 | 0.514888 | 0.486352 | 0.463089 | 0.463089 | 0 | 0.099926 | 0.258171 | 5,477 | 156 | 76 | 35.108974 | 0.693576 | 0.148074 | 0 | 0.359649 | 0 | 0 | 0.02816 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec6ee8435e7b21f5ea4fab4d3b576dbdb55a35f | 14,154 | py | Python | src/ride.py | yuanmingqi/RISE | 95577ac03c91937e5ddc22a8596270ad3e9d5e49 | [
"MIT"
] | null | null | null | src/ride.py | yuanmingqi/RISE | 95577ac03c91937e5ddc22a8596270ad3e9d5e49 | [
"MIT"
] | null | null | null | src/ride.py | yuanmingqi/RISE | 95577ac03c91937e5ddc22a8596270ad3e9d5e49 | [
"MIT"
] | null | null | null | import torch
from torch import nn, optim
from torch.nn import functional as F
from torch.utils import data
import os
import time
from collections import deque
import numpy as np
import torch
from a2c_ppo_acktr import algo
from a2c_ppo_acktr import utils
from a2c_ppo_acktr.envs import make_vec_envs
from a2c_ppo_acktr... | 37.84492 | 145 | 0.608026 | 1,814 | 14,154 | 4.483462 | 0.162624 | 0.015492 | 0.012787 | 0.017214 | 0.344399 | 0.29325 | 0.249354 | 0.213697 | 0.202877 | 0.189352 | 0 | 0.02109 | 0.273068 | 14,154 | 374 | 146 | 37.84492 | 0.769365 | 0.046701 | 0 | 0.231579 | 0 | 0.003509 | 0.038945 | 0 | 0 | 0 | 0 | 0.002674 | 0 | 1 | 0.059649 | false | 0.003509 | 0.049123 | 0 | 0.161404 | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec708f7c7d52019396b6d58f4230f1d5dfb0d4a | 57 | py | Python | nexinfosys/__init__.py | MAGIC-nexus/nis-python-client | f8ac51514ce3ef8249b06189c0d489aed956b5c0 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T23:30:53.000Z | 2020-04-28T23:30:53.000Z | nexinfosys/__init__.py | MAGIC-nexus/nis-python-client | f8ac51514ce3ef8249b06189c0d489aed956b5c0 | [
"BSD-3-Clause"
] | null | null | null | nexinfosys/__init__.py | MAGIC-nexus/nis-python-client | f8ac51514ce3ef8249b06189c0d489aed956b5c0 | [
"BSD-3-Clause"
] | null | null | null |
from .client import NISClient, display_visjs_jupyterlab
| 19 | 55 | 0.859649 | 7 | 57 | 6.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 57 | 2 | 56 | 28.5 | 0.921569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1ec73c33d161f5986058bec7dbdd80972b054c47 | 957 | py | Python | contents/monte_carlo_integration/code/python/monte_carlo.py | hybrideagle/algorithm-archive | f94e22021dce5bda08b74dbc42d19da0b530e068 | [
"MIT"
] | null | null | null | contents/monte_carlo_integration/code/python/monte_carlo.py | hybrideagle/algorithm-archive | f94e22021dce5bda08b74dbc42d19da0b530e068 | [
"MIT"
] | null | null | null | contents/monte_carlo_integration/code/python/monte_carlo.py | hybrideagle/algorithm-archive | f94e22021dce5bda08b74dbc42d19da0b530e068 | [
"MIT"
] | null | null | null | # submitted by hybrideagle
from random import random
from math import pi
def in_circle(x_pos, y_pos):
radius = 1
# Compute euclidian distance from origin
return (x_pos * x_pos + y_pos * y_pos) < (radius * radius)
def monte_carlo(n):
"""
Computes PI using the monte carlo method using `n` points
... | 25.864865 | 74 | 0.61442 | 150 | 957 | 3.76 | 0.493333 | 0.021277 | 0.037234 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031977 | 0.281087 | 957 | 36 | 75 | 26.583333 | 0.787791 | 0.410658 | 0 | 0 | 0 | 0 | 0.064695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
1ec7a8be20c3634cc19668635b92d2ba016dc6b4 | 665 | py | Python | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | 1 | 2019-12-16T08:18:25.000Z | 2019-12-16T08:18:25.000Z | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | null | null | null | src/1011. Capacity To Ship Packages Within D Days.py | rajshrivastava/LeetCode | dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0 | [
"MIT"
] | null | null | null | class Solution:
def shipWithinDays(self, weights: List[int], D: int) -> int:
def isValid(capacity):
day_count = 1
cum_sum = 0
for weight in weights:
cum_sum += weight
if cum_sum > capacity:
day_count += 1
... | 27.708333 | 64 | 0.407519 | 67 | 665 | 3.940299 | 0.432836 | 0.090909 | 0.121212 | 0.128788 | 0.174242 | 0.174242 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0.514286 | 665 | 23 | 65 | 28.913043 | 0.798762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ec8250d4bb968d047bd4b22e1b37d8786d787f0 | 4,703 | py | Python | crawler/crawlerhelpers/efa_beta.py | jenerous/vvs-delay | cb02813552422392b88fe64dd57a880e1a726025 | [
"MIT"
] | null | null | null | crawler/crawlerhelpers/efa_beta.py | jenerous/vvs-delay | cb02813552422392b88fe64dd57a880e1a726025 | [
"MIT"
] | null | null | null | crawler/crawlerhelpers/efa_beta.py | jenerous/vvs-delay | cb02813552422392b88fe64dd57a880e1a726025 | [
"MIT"
] | null | null | null | from time import strftime
class API_efaBeta(object):
def __init__( self ):
self.name = 'efaBeta'
self.baseurl = 'https://www3.vvs.de/mngvvs/XML_DM_REQUEST'
def convert_station_id( self, station_id ):
"""
convert station id that is given to the api specific
repre... | 41.991071 | 107 | 0.512439 | 447 | 4,703 | 5.232662 | 0.346756 | 0.050876 | 0.030782 | 0.02779 | 0.054724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010166 | 0.372528 | 4,703 | 111 | 108 | 42.369369 | 0.782447 | 0.182862 | 0 | 0.043478 | 0 | 0 | 0.212896 | 0.018344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.014493 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ec9904fcb66688f08930c6c48ee5257e08b8488 | 450 | py | Python | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/20/26.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, s):
if len(s) % 2 == 1: # 奇数长度
return False
d = {'(': ')', '{': '}', '[': ']'}
stack = []
for char in s:
if char in d: # 左括号入栈
stack.append(char)
else:
if not stack o... | 25 | 79 | 0.411111 | 50 | 450 | 3.7 | 0.58 | 0.032432 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.457778 | 450 | 17 | 80 | 26.470588 | 0.75 | 0.068889 | 0 | 0.153846 | 0 | 0 | 0.014528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ecae2e0cdf0ce7ac01b4920249b41f67edaa21f | 1,075 | py | Python | 2019/d22/d22.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | 2019/d22/d22.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | 2019/d22/d22.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
class Day22:
deck = list(range(0, 10007))
def dealIntoNewStack(self):
self.deck = self.deck[::-1]
def cutNCards(self, n):
self.deck = self.deck[n:] + self.deck[:n]
def incrementN(self, n):
deck_copy = [None] * len(self.deck)
pointer = 0
... | 28.289474 | 54 | 0.476279 | 125 | 1,075 | 3.992 | 0.4 | 0.144289 | 0.048096 | 0.064128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036309 | 0.385116 | 1,075 | 37 | 55 | 29.054054 | 0.718608 | 0.019535 | 0 | 0 | 0 | 0 | 0.026591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.2 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ecc0290eeff6784236144e86f30d69d20b84f0f | 4,567 | py | Python | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | 1 | 2017-11-03T15:32:33.000Z | 2017-11-03T15:32:33.000Z | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | null | null | null | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | null | null | null | #==============================================================================
# node_master.py
# SNAP Master Node code that interacts with other nodes on the SNAP network
# to receive their data and forward it onto a serial-to-Internet gateway for
# remote monitoring purposes. This is part of an Exosite-compatible S... | 47.082474 | 90 | 0.597986 | 503 | 4,567 | 5.349901 | 0.481113 | 0.029729 | 0.013378 | 0.015608 | 0.068376 | 0.050539 | 0.050539 | 0.050539 | 0.050539 | 0.050539 | 0 | 0.011801 | 0.146486 | 4,567 | 96 | 91 | 47.572917 | 0.678553 | 0.71097 | 0 | 0 | 0 | 0 | 0.076861 | 0.024272 | 0 | 0 | 0.004854 | 0 | 0 | 0 | null | null | 0.105263 | 0.078947 | null | null | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1ed18e3a5bc3e56a30a5c177a3d61fd5dbe77a14 | 3,373 | py | Python | scripts/utils/MatlabUtils.py | Vants/stampsreplacer | a61d5174e1ee1d840a327ce6ec059a3a9f84a13b | [
"MIT"
] | 18 | 2019-02-04T11:22:25.000Z | 2022-02-15T10:02:14.000Z | scripts/utils/MatlabUtils.py | Vants/stampsreplacer | a61d5174e1ee1d840a327ce6ec059a3a9f84a13b | [
"MIT"
] | 1 | 2019-02-12T11:19:41.000Z | 2019-06-01T14:46:48.000Z | scripts/utils/MatlabUtils.py | Vants/stampsreplacer | a61d5174e1ee1d840a327ce6ec059a3a9f84a13b | [
"MIT"
] | 5 | 2019-11-27T16:22:12.000Z | 2021-04-14T11:10:44.000Z | import scipy.interpolate
import scipy.signal
from builtins import staticmethod
import numpy as np
from scripts.utils.ArrayUtils import ArrayUtils
class MatlabUtils:
@staticmethod
def max(array: np.ndarray):
if len(array) > 1:
return np.amax(array, axis=0)
else:
return... | 33.068627 | 140 | 0.631782 | 460 | 3,373 | 4.567391 | 0.365217 | 0.051404 | 0.026654 | 0.057116 | 0.121847 | 0.099952 | 0.057116 | 0.031414 | 0.031414 | 0 | 0 | 0.031715 | 0.242811 | 3,373 | 101 | 141 | 33.39604 | 0.790916 | 0.27394 | 0 | 0.245902 | 0 | 0 | 0.003843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.081967 | 0 | 0.47541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ed1ace2d823b49a93272f810565d84a9f472fcc | 1,185 | py | Python | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | 4 | 2020-04-01T01:09:15.000Z | 2021-12-28T09:22:59.000Z | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | null | null | null | Data Structures/Week1/Program1.py | ChanchalKumarMaji/Data-Structures-and-Algorithms-Specialization | 8eed0b4f01f2ab122c75707b15d4d2d7d0f56d38 | [
"MIT"
] | 3 | 2019-10-26T18:05:10.000Z | 2021-06-15T06:07:58.000Z | # python3
def solve(S):
brackets = []
for i in range(len(S)):
if S[i]=='(' or S[i]==')' or S[i]=='{' or S[i]=='}' or S[i]=='[' or S[i]==']':
brackets.append((S[i], i+1))
#print(brackets)
stack = []
for bracket in brackets:
b, idx = bracket[0], bracket[1]
... | 20.084746 | 86 | 0.316456 | 123 | 1,185 | 2.943089 | 0.235772 | 0.038674 | 0.055249 | 0.069061 | 0.348066 | 0.21547 | 0.21547 | 0.21547 | 0.21547 | 0.21547 | 0 | 0.019366 | 0.520675 | 1,185 | 58 | 87 | 20.431034 | 0.617958 | 0.018565 | 0 | 0.242424 | 0 | 0 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.212121 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ed2ac907fbfedb11ec7c3978dc0e38575801a04 | 476 | py | Python | libalgs-py/sorting/insertion_sort.py | tdudz/libalgs-py | 9b2610de66217c0564193096702c47478de5db5e | [
"MIT"
] | null | null | null | libalgs-py/sorting/insertion_sort.py | tdudz/libalgs-py | 9b2610de66217c0564193096702c47478de5db5e | [
"MIT"
] | null | null | null | libalgs-py/sorting/insertion_sort.py | tdudz/libalgs-py | 9b2610de66217c0564193096702c47478de5db5e | [
"MIT"
] | null | null | null | """
Insertion Sort
--------------
Builds the sorted array by inserting one at a time.
Time Complexity: O(n^2)
Space Complexity: O(n)
Stable: Yes
"""
def insertion_sort(A):
"""
Takes a list of integers and sorts them in ascending order, then returns it.
Args:
A (arr): A list of integers
Returns:
arr: A li... | 14.875 | 77 | 0.596639 | 88 | 476 | 3.215909 | 0.511364 | 0.028269 | 0.074205 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019499 | 0.245798 | 476 | 31 | 78 | 15.354839 | 0.768802 | 0.655462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 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 |
1ed5accf155e250073bc7bdf2bd30e6dea3370a8 | 428 | py | Python | src/infi/app_repo/errors.py | pombredanne/infi.app_repo | 6ef53d2b33080dd2a187fbb52b932440646ca05c | [
"BSD-3-Clause"
] | null | null | null | src/infi/app_repo/errors.py | pombredanne/infi.app_repo | 6ef53d2b33080dd2a187fbb52b932440646ca05c | [
"BSD-3-Clause"
] | null | null | null | src/infi/app_repo/errors.py | pombredanne/infi.app_repo | 6ef53d2b33080dd2a187fbb52b932440646ca05c | [
"BSD-3-Clause"
] | 2 | 2016-02-12T14:52:40.000Z | 2020-08-18T12:53:39.000Z | from infi.rpc.errors import RPCUserException
class AppRepoBaseException(RPCUserException):
pass
class FileAlreadyExists(AppRepoBaseException):
pass
class FileRejected(AppRepoBaseException):
pass
class FilenameParsingFailed(FileRejected):
pass
class FileProcessingFailed(FileRejected):
pass
... | 14.266667 | 46 | 0.78972 | 34 | 428 | 9.941176 | 0.470588 | 0.159763 | 0.186391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156542 | 428 | 29 | 47 | 14.758621 | 0.936288 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.466667 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
1ed6fb3058696a7fab8ff068f87872a50fb687c5 | 2,001 | py | Python | vespa/simulation/dialog_experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | null | null | null | vespa/simulation/dialog_experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 4 | 2021-04-17T13:58:31.000Z | 2022-01-20T14:19:57.000Z | vespa/simulation/dialog_experiment_list.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 3 | 2021-06-05T16:34:57.000Z | 2022-01-19T16:13:22.000Z | # Python modules
# 3rd party modules
import wx
# Our modules
import vespa.simulation.auto_gui.experiment_list as gui_experiment_list
import vespa.common.wx_gravy.common_dialogs as common_dialogs
import vespa.common.wx_gravy.util as wx_util
#---------------------------------------------------------------------------... | 32.274194 | 79 | 0.668666 | 245 | 2,001 | 5.342857 | 0.485714 | 0.039725 | 0.051948 | 0.02903 | 0.036669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000612 | 0.183908 | 2,001 | 61 | 80 | 32.803279 | 0.80098 | 0.487256 | 0 | 0 | 0 | 0 | 0.037849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ed76eae61cc1ae67ed7991861d56ea74fb9b976 | 696 | py | Python | Practice/Problem Solving/CutTheSticks.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 1 | 2018-07-08T15:44:15.000Z | 2018-07-08T15:44:15.000Z | Practice/Problem Solving/CutTheSticks.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | null | null | null | Practice/Problem Solving/CutTheSticks.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 2 | 2018-08-10T06:49:34.000Z | 2020-10-01T04:50:59.000Z | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the cutTheSticks function below.
def cutTheSticks(arr):
l = len(arr)
result = []
referer = list(set(arr))
# print('array is', arr)
refer = sorted(referer,reverse = True)
# print('reference is', refer)
lr = len... | 19.333333 | 50 | 0.586207 | 96 | 696 | 4.166667 | 0.5 | 0.03 | 0.045 | 0.055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007828 | 0.265805 | 696 | 35 | 51 | 19.885714 | 0.774951 | 0.186782 | 0 | 0 | 0 | 0 | 0.01426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eda1c5ec3fa4c66e9bfd290be0bda0294371158 | 12,713 | py | Python | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | anella/tenor_client/tenor_nsi.py | Fundacio-i2CAT/ai4.0-tenor | cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1 | [
"curl",
"Vim",
"Ruby",
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""TeNOR Network Service Instance Class and Client"""
import requests
import json
import uuid
from tenor_vnfi import TenorVNFI
from template_management import create_ssh_client
from template_management import render_template
from models.instance_configuration import InstanceCo... | 38.641337 | 112 | 0.526154 | 1,328 | 12,713 | 4.850151 | 0.198042 | 0.020959 | 0.034932 | 0.042385 | 0.357864 | 0.315945 | 0.271386 | 0.232883 | 0.204006 | 0.180096 | 0 | 0.011366 | 0.363329 | 12,713 | 328 | 113 | 38.759146 | 0.784408 | 0.004877 | 0 | 0.318182 | 0 | 0.003497 | 0.134123 | 0.012425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052448 | null | null | 0.059441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eda3ffb7cd59c6c60967f92603c29ba38922e8a | 5,054 | py | Python | ODS - Staging - Illuminate/loadTables.py | achievementfirst/af-edfi-shared | 996a201a23b56d498eee75251bb2455201c17308 | [
"Apache-2.0"
] | 2 | 2020-10-06T22:06:52.000Z | 2020-12-24T17:27:48.000Z | ODS - Staging - Illuminate/loadTables.py | achievementfirst/af-edfi-shared | 996a201a23b56d498eee75251bb2455201c17308 | [
"Apache-2.0"
] | null | null | null | ODS - Staging - Illuminate/loadTables.py | achievementfirst/af-edfi-shared | 996a201a23b56d498eee75251bb2455201c17308 | [
"Apache-2.0"
] | 1 | 2020-10-07T18:43:17.000Z | 2020-10-07T18:43:17.000Z | """
Name: loadTables.py
Description: Script extracts data (specific to Illuminate assessments) from the edfi ODS and loads
it into the AWS Aurora db
Note:
The following code can be run locally or as a lambda function by converting the main function
to a lambda handler.
"""
import argparse
import configparser
import... | 31.197531 | 98 | 0.641472 | 527 | 5,054 | 6.028463 | 0.296015 | 0.069248 | 0.075543 | 0.01385 | 0.160529 | 0.139125 | 0.139125 | 0.090652 | 0.038401 | 0.038401 | 0 | 0.000797 | 0.255046 | 5,054 | 161 | 99 | 31.391304 | 0.843028 | 0.096953 | 0 | 0.188034 | 0 | 0 | 0.186118 | 0.062334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034188 | false | 0.017094 | 0.068376 | 0 | 0.136752 | 0.136752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1eda6198db3d13f656d2b6dfb7c8f3b811602a4d | 6,788 | py | Python | tst/schedulers/bayesopt/gpautograd/test_gp.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 97 | 2021-11-18T17:14:30.000Z | 2022-03-29T00:33:12.000Z | tst/schedulers/bayesopt/gpautograd/test_gp.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 54 | 2021-11-18T17:14:12.000Z | 2022-03-22T08:11:48.000Z | tst/schedulers/bayesopt/gpautograd/test_gp.py | awslabs/syne-tune | 1dd8e157477b86db01047a9a7821780ea04389bc | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2021-11-29T11:47:32.000Z | 2022-02-24T15:28:11.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 38.568182 | 161 | 0.725692 | 1,009 | 6,788 | 4.653122 | 0.199207 | 0.047923 | 0.050692 | 0.061342 | 0.612567 | 0.573163 | 0.552503 | 0.532907 | 0.444728 | 0.426837 | 0 | 0.02096 | 0.177666 | 6,788 | 175 | 162 | 38.788571 | 0.820136 | 0.289923 | 0 | 0.432692 | 0 | 0 | 0.001674 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 1 | 0.067308 | false | 0 | 0.076923 | 0.028846 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1edfdd935af453f5e2a4d99084ce76fa471248d6 | 975 | py | Python | demystifying/feature_extraction/random_feature_extractor.py | delemottelab/demystifying | e8527b52d5fbe0570cd391921ecda5aefceb797a | [
"MIT"
] | 16 | 2020-01-04T14:46:03.000Z | 2021-07-10T05:54:05.000Z | demystifying/feature_extraction/random_feature_extractor.py | delemottelab/demystifying | e8527b52d5fbe0570cd391921ecda5aefceb797a | [
"MIT"
] | 11 | 2020-01-10T16:18:17.000Z | 2022-03-20T09:53:33.000Z | demystifying/feature_extraction/random_feature_extractor.py | delemottelab/demystifying | e8527b52d5fbe0570cd391921ecda5aefceb797a | [
"MIT"
] | 3 | 2020-03-16T04:35:01.000Z | 2022-02-10T12:39:01.000Z | from __future__ import absolute_import, division, print_function
import logging
import sys
logging.basicConfig(
stream=sys.stdout,
format='%(asctime)s %(name)s-%(levelname)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
import numpy as np
from .feature_extractor import FeatureExtractor
logger = logging.get... | 27.857143 | 65 | 0.594872 | 104 | 975 | 5.413462 | 0.615385 | 0.028419 | 0.042629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005839 | 0.297436 | 975 | 34 | 66 | 28.676471 | 0.816058 | 0.10359 | 0 | 0 | 0 | 0 | 0.095858 | 0.027219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.045455 | 0.272727 | 0 | 0.5 | 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 |
1ee06c159a5190fe153a2a3803927439c25c1fef | 116 | py | Python | chat/exceptions.py | arseniybanayev/chatapi | b9af139e4572f3b5206fcfe709c78575509a5966 | [
"MIT"
] | 8 | 2020-05-26T19:58:49.000Z | 2021-11-17T13:51:33.000Z | chat/exceptions.py | arseniybanayev/chatapi | b9af139e4572f3b5206fcfe709c78575509a5966 | [
"MIT"
] | 1 | 2021-06-01T07:20:34.000Z | 2021-06-01T14:17:26.000Z | chat/exceptions.py | arseniybanayev/chatapi | b9af139e4572f3b5206fcfe709c78575509a5966 | [
"MIT"
] | 2 | 2021-02-05T20:32:59.000Z | 2021-06-17T15:21:51.000Z | class Rejected(Exception):
"""
Raised when the server rejects with a ctrl.code of 400-499.
"""
pass | 19.333333 | 63 | 0.62931 | 16 | 116 | 4.5625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 0.267241 | 116 | 6 | 64 | 19.333333 | 0.788235 | 0.508621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1ee382a0125a89f5fdc7cff849261c133ebb7a31 | 692 | py | Python | config.py | bruce30262/ghidra-dark | ee955a8afa3c4d28bdefe3db7970b762254b3411 | [
"MIT"
] | null | null | null | config.py | bruce30262/ghidra-dark | ee955a8afa3c4d28bdefe3db7970b762254b3411 | [
"MIT"
] | null | null | null | config.py | bruce30262/ghidra-dark | ee955a8afa3c4d28bdefe3db7970b762254b3411 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import yaml
""" Get flatlaf config """
flatlaf_version, flatlaf_style = None, None
font_decomp, font_ld = {}, {}
try:
with open("config.yml", "r") as f:
config = yaml.load(f, Loader=yaml.FullLoader)
flatlaf_version = config['flatlaf']['version']
flatlaf_style = confi... | 30.086957 | 140 | 0.66185 | 90 | 692 | 4.977778 | 0.566667 | 0.087054 | 0.089286 | 0.120536 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.197977 | 692 | 22 | 141 | 31.454545 | 0.801802 | 0.030347 | 0 | 0.117647 | 0 | 0.058824 | 0.286159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1ee4ad6117c78e893b5821384c2ff01a4418bed8 | 1,310 | py | Python | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/HSV/inertia.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | """Collection of blocks needed for 3-DoF vehicle model.
"""
from sysopt import Block, Metadata
from sysopt.backends import heaviside
import numpy as np
class InertiaMassOnly(Block):
"""
Simple inertia model that evaluates 'vehicle mass (wet)'
"""
def __init__(self):
metadata = Metadata(
... | 29.111111 | 81 | 0.622137 | 156 | 1,310 | 4.916667 | 0.320513 | 0.215124 | 0.146023 | 0.05867 | 0.344198 | 0.344198 | 0.211213 | 0.211213 | 0.211213 | 0.211213 | 0 | 0.014909 | 0.283206 | 1,310 | 44 | 82 | 29.772727 | 0.801917 | 0.187786 | 0 | 0.2 | 0 | 0 | 0.093539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ee51c35bc679d160d7d39ce6956fbb88b6ed8ad | 1,531 | py | Python | 2015/solutions/20.py | adtok/advent-of-code | df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01 | [
"MIT"
] | null | null | null | 2015/solutions/20.py | adtok/advent-of-code | df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01 | [
"MIT"
] | null | null | null | 2015/solutions/20.py | adtok/advent-of-code | df1f61759bd8f3bfd7995b7e2a124d7f6e97ba01 | [
"MIT"
] | null | null | null | """Advent of Code 2015: Day 20"""
from itertools import count
from typing import Callable, List
def get_factors(n: int) -> List[int]:
divisors = []
sqrt = int(n ** 0.5) + 1
for i in range(1, sqrt):
if n % i == 0:
divisors.append(i)
divisors.append(n // i)
return diviso... | 24.301587 | 84 | 0.606793 | 214 | 1,531 | 4.116822 | 0.32243 | 0.102157 | 0.051078 | 0.036322 | 0.224745 | 0.186152 | 0.186152 | 0.186152 | 0.106697 | 0.106697 | 0 | 0.027347 | 0.283475 | 1,531 | 62 | 85 | 24.693548 | 0.775752 | 0.028086 | 0 | 0.047619 | 0 | 0 | 0.036437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.047619 | 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 |
1ee540097c32429348fbeb504278fb986bd3a9e7 | 1,864 | py | Python | python/examples/bert/test_multi_fetch_client.py | hysunflower/Serving | 50d0c2900f3385b049f76b91e38cc69d8e8a102d | [
"Apache-2.0"
] | 789 | 2019-04-05T09:20:46.000Z | 2022-03-31T13:43:54.000Z | python/examples/bert/test_multi_fetch_client.py | hysunflower/Serving | 50d0c2900f3385b049f76b91e38cc69d8e8a102d | [
"Apache-2.0"
] | 1,195 | 2019-04-08T10:05:28.000Z | 2022-03-31T03:43:42.000Z | python/examples/bert/test_multi_fetch_client.py | hysunflower/Serving | 50d0c2900f3385b049f76b91e38cc69d8e8a102d | [
"Apache-2.0"
] | 229 | 2019-04-05T09:20:57.000Z | 2022-03-30T06:21:22.000Z | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 34.518519 | 77 | 0.67221 | 269 | 1,864 | 4.513011 | 0.464684 | 0.049423 | 0.021417 | 0.026359 | 0.093904 | 0.067545 | 0.067545 | 0.067545 | 0.067545 | 0.067545 | 0 | 0.036961 | 0.216202 | 1,864 | 53 | 78 | 35.169811 | 0.793977 | 0.312768 | 0 | 0.055556 | 0 | 0 | 0.132597 | 0.037885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
948fa3226659c8d5d08bc6395c25891bde4c906c | 23,434 | py | Python | gs_quant/markets/core.py | alexanu/gs-quant | fbb8d88d570aee545ed3a8601d9052c281ecca19 | [
"Apache-2.0"
] | 1 | 2020-05-18T02:09:39.000Z | 2020-05-18T02:09:39.000Z | gs_quant/markets/core.py | atefar2/gs-quant | d31ae3204d5421861897bac49383bc213d5497a2 | [
"Apache-2.0"
] | null | null | null | gs_quant/markets/core.py | atefar2/gs-quant | d31ae3204d5421861897bac49383bc213d5497a2 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software di... | 41.996416 | 120 | 0.622856 | 2,605 | 23,434 | 5.312476 | 0.161612 | 0.024568 | 0.013874 | 0.016186 | 0.226606 | 0.158321 | 0.119084 | 0.113158 | 0.086856 | 0.063516 | 0 | 0.003184 | 0.303064 | 23,434 | 557 | 121 | 42.071813 | 0.844171 | 0.192242 | 0 | 0.233618 | 0 | 0 | 0.017491 | 0 | 0 | 0 | 0 | 0.001795 | 0 | 1 | 0.091168 | false | 0 | 0.048433 | 0.011396 | 0.245014 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
949098c824cfbd3da37cadae478a4ffc0d23053a | 4,553 | py | Python | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 2 | 2021-04-01T00:23:44.000Z | 2021-04-01T00:23:48.000Z | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | null | null | null | DjangoECom/products/migrations/0001_initial.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 1 | 2021-01-23T13:06:25.000Z | 2021-01-23T13:06:25.000Z | # Generated by Django 3.1.4 on 2020-12-21 17:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('user... | 53.564706 | 141 | 0.595212 | 483 | 4,553 | 5.47619 | 0.231884 | 0.057467 | 0.05293 | 0.083176 | 0.620038 | 0.579206 | 0.537996 | 0.511531 | 0.479773 | 0.479773 | 0 | 0.012873 | 0.249286 | 4,553 | 84 | 142 | 54.202381 | 0.760971 | 0.009884 | 0 | 0.467532 | 1 | 0 | 0.111185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038961 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
949348fb8fb9c95b02cdfcf92957d20bc4c5574a | 898 | py | Python | tests/test_c_evluater.py | jiamo/pcc | fde1173e3ba81a41b4f901780711cffb7934107e | [
"Unlicense"
] | 4 | 2018-06-20T16:32:30.000Z | 2018-09-15T15:12:38.000Z | tests/test_c_evluater.py | jiamo/pcc | fde1173e3ba81a41b4f901780711cffb7934107e | [
"Unlicense"
] | 5 | 2018-05-19T08:35:06.000Z | 2021-10-13T05:23:57.000Z | tests/test_c_evluater.py | jiamo/pcc | fde1173e3ba81a41b4f901780711cffb7934107e | [
"Unlicense"
] | null | null | null | import sys
import os
this_dir = os.path.dirname(__file__)
parent_dir = os.path.dirname(this_dir)
sys.path.insert(0, parent_dir)
from pcc.evaluater.c_evaluator import CEvaluator
import unittest
import unittest
class TestCevluatar(unittest.TestCase):
def test_simple(self):
pcc = CEvaluator()
# k... | 21.902439 | 49 | 0.544543 | 111 | 898 | 4.171171 | 0.513514 | 0.030238 | 0.038877 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.337416 | 898 | 40 | 50 | 22.45 | 0.769748 | 0.172606 | 0 | 0.08 | 0 | 0 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.36 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9499184764c0bbbcd1c2025cd6e25f142d3e1024 | 276 | py | Python | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | pizzapi/Address.py | lukejuusola/PizzaTracker | c7b583003322bc42c8e84b0b5a07fa160c1a08a2 | [
"MIT"
] | null | null | null | class Address(object):
def __init__(self, street, city, region='', zip=''):
data = {'Street': street.strip(), 'City': city.strip(),
'Region': region.strip(), 'PostalCode': str(zip).strip()}
self.data = {k: v for k, v in data.items() if v}
| 39.428571 | 73 | 0.554348 | 36 | 276 | 4.138889 | 0.555556 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 276 | 6 | 74 | 46 | 0.709524 | 0 | 0 | 0 | 0 | 0 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9499935e046ef24294dc0f8b1d160b07bb4cedd9 | 15,621 | py | Python | tests/datasets/test_mnist.py | dbcollection/dbcollection | a36f57a11bc2636992e26bba4406914162773dd9 | [
"MIT"
] | 23 | 2017-09-20T19:23:26.000Z | 2022-01-09T16:18:11.000Z | tests/datasets/test_mnist.py | dbcollection/dbcollection | a36f57a11bc2636992e26bba4406914162773dd9 | [
"MIT"
] | 148 | 2017-07-23T14:28:28.000Z | 2022-01-13T00:35:17.000Z | tests/datasets/test_mnist.py | dbcollection/dbcollection | a36f57a11bc2636992e26bba4406914162773dd9 | [
"MIT"
] | 6 | 2018-01-12T15:47:57.000Z | 2021-02-09T06:32:39.000Z | """
Test the base classes for managing datasets and tasks.
"""
import os
import sys
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from dbcollection.utils.string_ascii import convert_str_to_ascii as str2ascii
from dbcollection.utils.pad import pad_list
from dbcollection.datasets.mnist.... | 39.150376 | 151 | 0.679534 | 2,014 | 15,621 | 4.90715 | 0.077458 | 0.031165 | 0.048164 | 0.056663 | 0.57948 | 0.449256 | 0.34271 | 0.301022 | 0.260852 | 0.245674 | 0 | 0.02042 | 0.209974 | 15,621 | 398 | 152 | 39.248744 | 0.780407 | 0.115101 | 0 | 0.177419 | 0 | 0 | 0.06877 | 0.012821 | 0 | 0 | 0 | 0 | 0.245968 | 1 | 0.129032 | false | 0 | 0.032258 | 0.040323 | 0.237903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9499bf696b293047856ed9f2ec46e452e8a7ad7f | 669 | py | Python | apps/stringbyte/stringbyte.py | jeonghoonkang/BerePi | e04283a94a6a0487ab0049dc3e514d6c5dda39cc | [
"BSD-2-Clause"
] | 22 | 2015-06-03T06:28:27.000Z | 2022-03-18T08:02:45.000Z | apps/stringbyte/stringbyte.py | jeonghoonkang/BerePi | e04283a94a6a0487ab0049dc3e514d6c5dda39cc | [
"BSD-2-Clause"
] | 14 | 2015-06-08T01:31:53.000Z | 2020-08-30T02:19:15.000Z | apps/stringbyte/stringbyte.py | jeonghoonkang/BerePi | e04283a94a6a0487ab0049dc3e514d6c5dda39cc | [
"BSD-2-Clause"
] | 26 | 2015-05-12T09:33:55.000Z | 2021-08-30T05:41:00.000Z | # -*- coding: utf-8 -*-
# Author : Jeonghoonkang, github.com/jeonghoonkang
hexstr = '123456'
# 1) [ for ... ]
hlist = [hexstr[i:i+2] for i in range(0,len(hexstr),2)]
#2) re.findall
hlist = re.findall(r'..',hexstr)
#3) map, zip, iter 이용
hlist = map(''.join, zip(*[iter(hexstr)]*2))
'''
iter(hxstr) 는 글자 하나씩 가져오는 이터레... | 23.068966 | 55 | 0.566517 | 129 | 669 | 2.937985 | 0.635659 | 0.021108 | 0.023747 | 0.021108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049091 | 0.177877 | 669 | 28 | 56 | 23.892857 | 0.64 | 0.176383 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
949a575e64bb72e464301f15610f9e5cb6055022 | 760 | py | Python | statuscake/apis/__init__.py | StatusCakeDev/statuscake-py | 267f485e6c18a6ed6e17667ceaddfce6271ec4af | [
"MIT"
] | null | null | null | statuscake/apis/__init__.py | StatusCakeDev/statuscake-py | 267f485e6c18a6ed6e17667ceaddfce6271ec4af | [
"MIT"
] | null | null | null | statuscake/apis/__init__.py | StatusCakeDev/statuscake-py | 267f485e6c18a6ed6e17667ceaddfce6271ec4af | [
"MIT"
] | null | null | null |
# flake8: noqa
# Import all APIs into this package.
# If you have many APIs here with many many models used in each API this may
# raise a `RecursionError`.
# In order to avoid this, import only the API that you directly need like:
#
# from .api.contact_groups_api import ContactGroupsApi
#
# or import this package,... | 33.043478 | 76 | 0.803947 | 111 | 760 | 5.414414 | 0.513514 | 0.104825 | 0.169717 | 0.063228 | 0.136439 | 0.136439 | 0 | 0 | 0 | 0 | 0 | 0.001534 | 0.142105 | 760 | 22 | 77 | 34.545455 | 0.920245 | 0.521053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
949b48cef09179339869e0e0e398444e8cad808f | 3,383 | py | Python | coronastat/utils.py | theNocturnalGuy/coronastat | a5f6ee1ad59a709c48f18d09413ba89b39572b97 | [
"MIT"
] | 1 | 2020-07-29T21:05:20.000Z | 2020-07-29T21:05:20.000Z | coronastat/utils.py | thenocturnalguy/coronastat | a5f6ee1ad59a709c48f18d09413ba89b39572b97 | [
"MIT"
] | null | null | null | coronastat/utils.py | thenocturnalguy/coronastat | a5f6ee1ad59a709c48f18d09413ba89b39572b97 | [
"MIT"
] | null | null | null | ########### IMPORTING THE REQURIED LIBRARIES ###########
from __future__ import print_function
from terminaltables import AsciiTable
import sys, time
########## DECLARING THE GLOBAL VARIABLES #############
WORLD_URL = "https://www.worldometers.info/coronavirus"
INDIA_URL = "https://www.mohfw.gov.in/"
MAX_TIMEOUT = 3... | 31.324074 | 111 | 0.514336 | 390 | 3,383 | 5.482051 | 0.446154 | 0.016838 | 0.021048 | 0.03508 | 0.297474 | 0.284378 | 0.284378 | 0.284378 | 0.284378 | 0.284378 | 0 | 0.022313 | 0.205143 | 3,383 | 108 | 112 | 31.324074 | 0.620305 | 0.080106 | 0 | 0.211268 | 0 | 0.028169 | 0.339482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0 | 0.309859 | 0.211268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
949c67ffc18b5f1e8255608fad78da04a4deef69 | 4,744 | py | Python | host/function/send_files.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 2 | 2020-04-15T11:20:59.000Z | 2021-05-12T13:01:36.000Z | host/function/send_files.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-06-05T04:48:56.000Z | 2018-06-05T04:48:56.000Z | host/function/send_files.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-08-15T06:45:46.000Z | 2018-08-15T06:45:46.000Z | import os
import shutil
from stat import S_ISDIR
from datetime import datetime
from common_util import Error, Success
from host.util import mylog
from messages import HostFileTransferMessage
__author__ = 'Mike'
def send_tree(db, other_id, cloud, requested_root, connection):
"""
Note: This can't be used to ... | 34.376812 | 99 | 0.638702 | 614 | 4,744 | 4.672638 | 0.275244 | 0.029278 | 0.037644 | 0.020913 | 0.278843 | 0.210178 | 0.194493 | 0.11328 | 0.070408 | 0.0481 | 0 | 0.002577 | 0.263912 | 4,744 | 137 | 100 | 34.627737 | 0.819015 | 0.194983 | 0 | 0.213483 | 0 | 0 | 0.054293 | 0 | 0 | 0 | 0 | 0.007299 | 0 | 1 | 0.044944 | false | 0 | 0.078652 | 0 | 0.134831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
949c84290c5d2af0d114a3443ba14a44a3e3161b | 1,174 | py | Python | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | config.py | RobertStuartUalberta/CMPUT355 | 82502446552bb09dfa6d680649ae2b4646a4c4dc | [
"Apache-2.0"
] | null | null | null | from io import open
from importlib import import_module
from app.Exceptions.exceptions import *
def config():
try:
config = open("CONFIG.txt", "r+")
lines = config.readlines()
config.seek(0)
all_modules_installed = True
for line in lines:
if line[0] != "#":
... | 30.894737 | 94 | 0.581772 | 130 | 1,174 | 5.138462 | 0.5 | 0.04491 | 0.085329 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.326235 | 1,174 | 37 | 95 | 31.72973 | 0.835651 | 0.054514 | 0 | 0.1 | 0 | 0 | 0.080397 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0 | 0.3 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
949ea06e98739eef69309f8bebfeb873270bebd7 | 795 | py | Python | mrobpy/tests/point_cloud_test.py | miloserdova-l/mrob | 48bef772ba3158d2122991069196d6efd4a39f8c | [
"Apache-2.0"
] | 12 | 2020-09-22T15:33:48.000Z | 2022-03-02T17:27:39.000Z | mrobpy/tests/point_cloud_test.py | MobileRoboticsSkoltech/mrob | 7668a3ee35345c4878aa86fff082cc017992d205 | [
"Apache-2.0"
] | 46 | 2020-09-22T15:47:08.000Z | 2022-01-22T10:56:44.000Z | mrobpy/tests/point_cloud_test.py | MobileRoboticsSkoltech/mrob | 7668a3ee35345c4878aa86fff082cc017992d205 | [
"Apache-2.0"
] | 9 | 2020-09-22T15:59:33.000Z | 2021-12-20T20:15:16.000Z | import numpy as np
import mrob
import pytest
class TestPointCloud:
def test_point_cloud_registration(self):
# example equal to ./PC_alignment/examples/example_align.cpp
# generate random data
N = 500
X = np.random.rand(N,3)
T = mrob.geometry.SE3(np.random.rand(6))
... | 28.392857 | 68 | 0.583648 | 122 | 795 | 3.704918 | 0.42623 | 0.022124 | 0.053097 | 0.070796 | 0.137168 | 0.137168 | 0.137168 | 0.137168 | 0.137168 | 0.137168 | 0 | 0.010187 | 0.25912 | 795 | 27 | 69 | 29.444444 | 0.757216 | 0.122013 | 0 | 0 | 0 | 0 | 0.115274 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
949f8b0b268ad53be3b2e03a7886ed9475f6d1c0 | 1,698 | py | Python | src/pyams_utils/attr.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/attr.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/attr.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 33.96 | 98 | 0.732627 | 230 | 1,698 | 5.369565 | 0.556522 | 0.012146 | 0.022672 | 0.017814 | 0.02753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.190813 | 1,698 | 49 | 99 | 34.653061 | 0.890102 | 0.603651 | 0 | 0 | 0 | 0 | 0.035256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 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 |
94a23063115af6a9b0dee607fd43ac955b2fab32 | 794 | py | Python | examples/tutorials/tutorial_1.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 666 | 2016-11-14T18:17:40.000Z | 2022-03-29T03:53:22.000Z | examples/tutorials/tutorial_1.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 598 | 2016-10-20T21:04:09.000Z | 2022-03-15T22:44:49.000Z | examples/tutorials/tutorial_1.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 95 | 2017-01-19T12:23:58.000Z | 2022-03-06T18:16:21.000Z | import sys
sys.path.append("../../")
from appJar import gui
count = 0
def press(btn):
global count
count += 1
app.setLabel("title", "Count=" + str(count))
if btn == "PRESS":
app.setFg("white")
app.setBg("green")
elif btn == "PRESS ME TOO":
app.setFg("green")
app.se... | 20.358974 | 59 | 0.596977 | 116 | 794 | 4.086207 | 0.474138 | 0.067511 | 0.107595 | 0.059072 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013008 | 0.225441 | 794 | 38 | 60 | 20.894737 | 0.757724 | 0 | 0 | 0 | 0 | 0 | 0.265743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94a3721f1a6e647e0a04fb6c974da5b5a1d53263 | 2,024 | py | Python | Hash Table/811. Subdomain Visit Count.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Hash Table/811. Subdomain Visit Count.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Hash Table/811. Subdomain Visit Count.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | """
811. Subdomain Visit Count
Example 1:
Input:
["9001 discuss.leetcode.com"]
Output:
["9001 discuss.leetcode.com", "9001 leetcode.com", "9001 com"]
Explanation:
We only have one website domain: "discuss.leetcode.com". As discussed above, the subdomain "leetcode.com" and "com" will also be visited. So the... | 36.142857 | 228 | 0.552372 | 261 | 2,024 | 4.283525 | 0.337165 | 0.050089 | 0.048301 | 0.039356 | 0.26297 | 0.205725 | 0.205725 | 0.135957 | 0.135957 | 0.135957 | 0 | 0.050978 | 0.29249 | 2,024 | 56 | 229 | 36.142857 | 0.729749 | 0.467391 | 0 | 0.24 | 0 | 0 | 0.012592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 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 |
94a51cb03cd32d86e85ab731f06b185ae8faa39d | 1,223 | py | Python | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###
### DO NOT CHANGE THIS FILE
###
### The code is auto generated, your change will be overwritten by
### code generating.
###
from __future__ import absolute_import
from .api.timeslots_dentistID import TimeslotsDentistid
from .api.timeslots import Timeslots
from .api.timeslots_dentistID_ti... | 50.958333 | 168 | 0.800491 | 121 | 1,223 | 7.900826 | 0.322314 | 0.150628 | 0.175732 | 0.104603 | 0.22908 | 0.119247 | 0 | 0 | 0 | 0 | 0 | 0.000888 | 0.079313 | 1,223 | 24 | 169 | 50.958333 | 0.848135 | 0.103843 | 0 | 0 | 1 | 0 | 0.290622 | 0.255339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
94a6826e247a30c899f1dfbebb5660a35c3394dc | 1,523 | py | Python | src/control_single.py | RidgeX/zenwheels-python | 83804281f09bb1b3947715f11bd61611283cfc14 | [
"MIT"
] | 2 | 2017-08-11T05:17:59.000Z | 2018-02-19T06:29:25.000Z | src/control_single.py | RidgeX/zenwheels-python | 83804281f09bb1b3947715f11bd61611283cfc14 | [
"MIT"
] | null | null | null | src/control_single.py | RidgeX/zenwheels-python | 83804281f09bb1b3947715f11bd61611283cfc14 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from bluetooth import *
from protocol import *
import sys
import threading
def chunks(l, n):
"""
Yield successive n-sized chunks from l.
"""
for i in range(0, len(l), n):
yield l[i:i + n]
# MAC address to connect to
address = '00:06:66:61:AC:9E' # MicroCar-58
# Whether the processing... | 22.397059 | 64 | 0.621799 | 212 | 1,523 | 4.386792 | 0.509434 | 0.016129 | 0.080645 | 0.074194 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031814 | 0.236376 | 1,523 | 67 | 65 | 22.731343 | 0.767842 | 0.16415 | 0 | 0 | 0 | 0 | 0.055112 | 0 | 0 | 0 | 0.008786 | 0 | 0 | 1 | 0.066667 | false | 0.022222 | 0.088889 | 0 | 0.155556 | 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 |
94a709bea76252538506a491da154f22aa286fe8 | 15,383 | py | Python | analysis/202102--dither_pattern_ghost/13_removal_test.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | analysis/202102--dither_pattern_ghost/13_removal_test.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | analysis/202102--dither_pattern_ghost/13_removal_test.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 :
#
# Attempt removal of fading residual ghost image from image set.
#
# Rob Siverd
# Created: 2021-02-16
# Last modified: 2021-02-16
#--------------------------------------------------------------------------
#**************************... | 37.703431 | 79 | 0.593512 | 1,882 | 15,383 | 4.72848 | 0.333688 | 0.025958 | 0.026745 | 0.004944 | 0.150803 | 0.112035 | 0.090909 | 0.077424 | 0.046634 | 0.041802 | 0 | 0.018887 | 0.149841 | 15,383 | 407 | 80 | 37.796069 | 0.661569 | 0.755249 | 0 | 0.095745 | 0 | 0 | 0.125263 | 0.00781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.170213 | 0 | 0.180851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94a709c7f27ee0b74f048f79e1615f51f51da338 | 353 | py | Python | py/helpers/position.py | mezhov/goArm | c066f9ee28fd26bb3f53352ee8508f388b71c499 | [
"BSD-3-Clause"
] | null | null | null | py/helpers/position.py | mezhov/goArm | c066f9ee28fd26bb3f53352ee8508f388b71c499 | [
"BSD-3-Clause"
] | null | null | null | py/helpers/position.py | mezhov/goArm | c066f9ee28fd26bb3f53352ee8508f388b71c499 | [
"BSD-3-Clause"
] | null | null | null | class PositionHolder:
def __init__(self, p=''):
self._position = []
@property
def position(self):
return self._position
@position.setter
def position(self, new_position):
# check for new moves
# emit moves to UI if needed
self._position = new_position
d... | 20.764706 | 37 | 0.603399 | 41 | 353 | 4.95122 | 0.512195 | 0.17734 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311615 | 353 | 16 | 38 | 22.0625 | 0.835391 | 0.130312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
94a7c591d47067f6549e87406e4215a9225d03db | 647 | py | Python | fsu/__main__.py | jamesabel/fsu | 652e9f37a83e4df545dc785ea807c818ee04104a | [
"MIT"
] | null | null | null | fsu/__main__.py | jamesabel/fsu | 652e9f37a83e4df545dc785ea807c818ee04104a | [
"MIT"
] | null | null | null | fsu/__main__.py | jamesabel/fsu | 652e9f37a83e4df545dc785ea807c818ee04104a | [
"MIT"
] | null | null | null | import os
import argparse
from fsu import __application_name__, longest_path, longest_path_command
def fsu():
parser = argparse.ArgumentParser(prog=__application_name__)
parser.add_argument("-c", "--command", required=True, help="commands: {longest_path_command}")
parser.add_argument("-p", "--path", help... | 28.130435 | 98 | 0.658423 | 87 | 647 | 4.563218 | 0.45977 | 0.138539 | 0.13602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194745 | 647 | 22 | 99 | 29.409091 | 0.761996 | 0 | 0 | 0 | 0 | 0 | 0.204019 | 0.034003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 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 |
94a92c7220f442afdf93bb1104fa4c59061bf49f | 3,914 | py | Python | authors/apps/follows/views.py | andela/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 1 | 2019-12-25T18:59:34.000Z | 2019-12-25T18:59:34.000Z | authors/apps/follows/views.py | katherine95/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 26 | 2019-04-23T11:20:35.000Z | 2022-03-11T23:45:54.000Z | authors/apps/follows/views.py | katherine95/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 8 | 2019-05-21T06:54:34.000Z | 2019-11-18T19:45:22.000Z | from django.shortcuts import render
from rest_framework import status
from rest_framework.generics import (
RetrieveAPIView, CreateAPIView, DestroyAPIView)
from rest_framework.response import Response
from .models import UserFollow
from .utils import Utilities
from .serializers import FollowsSerializer, FollowersS... | 26.268456 | 70 | 0.645631 | 365 | 3,914 | 6.79726 | 0.189041 | 0.053204 | 0.051592 | 0.048368 | 0.653366 | 0.546957 | 0.495768 | 0.495768 | 0.421604 | 0.371624 | 0 | 0.004171 | 0.264946 | 3,914 | 148 | 71 | 26.445946 | 0.858186 | 0.057486 | 0 | 0.526316 | 0 | 0 | 0.021101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.131579 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94aaa566c7e8105c57c524e1fcc4322e548e50a4 | 364 | py | Python | tests/conftest.py | goodeggs/dayforce-client | 0e994509482061e7bbde1c602dd1e6c339245d44 | [
"MIT"
] | 3 | 2020-08-05T23:46:45.000Z | 2022-03-14T22:12:23.000Z | tests/conftest.py | goodeggs/dayforce-client | 0e994509482061e7bbde1c602dd1e6c339245d44 | [
"MIT"
] | 5 | 2020-01-29T14:38:00.000Z | 2022-03-14T21:44:03.000Z | tests/conftest.py | goodeggs/dayforce-client | 0e994509482061e7bbde1c602dd1e6c339245d44 | [
"MIT"
] | 1 | 2021-04-03T21:21:53.000Z | 2021-04-03T21:21:53.000Z | import pytest
from dayforce_client.client import Dayforce, DayforceSFTP
@pytest.fixture(scope="session")
def client():
return Dayforce(username="foo", password="bar", client_namespace="foobar")
@pytest.fixture(scope="session")
def sftpclient():
return DayforceSFTP(
hostname="sftp://foo.bar.com", us... | 22.75 | 78 | 0.714286 | 43 | 364 | 6 | 0.534884 | 0.100775 | 0.139535 | 0.193798 | 0.217054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.134615 | 364 | 15 | 79 | 24.266667 | 0.812698 | 0 | 0 | 0.2 | 0 | 0 | 0.137363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0.2 | 0.2 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
94ab75228b05a2963c183365296413528d246a91 | 92 | py | Python | parameters_8000.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | 2 | 2018-12-08T23:59:12.000Z | 2019-02-13T23:04:36.000Z | parameters_8000.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | null | null | null | parameters_8000.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | 3 | 2018-12-08T23:59:17.000Z | 2019-02-13T23:04:38.000Z | password="pbkdf2(1000,20,sha512)$ba0f5757f7b448ec$d9c2e5887e65f45311047c8ff518f200ee11b98f"
| 46 | 91 | 0.891304 | 7 | 92 | 11.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.505495 | 0.01087 | 92 | 1 | 92 | 92 | 0.395604 | 0 | 0 | 0 | 0 | 0 | 0.869565 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
94ac6044959d983d47c287f915e389ed8d95187d | 328 | py | Python | src/omfgp/cli.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | null | null | null | src/omfgp/cli.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | null | null | null | src/omfgp/cli.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | 1 | 2021-08-16T10:19:52.000Z | 2021-08-16T10:19:52.000Z | DEFAULT_KEY = {
"ENC": b"\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F",
"MAC": b"\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F",
"DEK": b"\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F",
}
def list(key=DEFAULT_KEY):
"""Lists all applets"""
pr... | 36.444444 | 79 | 0.643293 | 66 | 328 | 3.166667 | 0.424242 | 0.057416 | 0.100478 | 0.143541 | 0.703349 | 0.703349 | 0.703349 | 0.703349 | 0.703349 | 0.703349 | 0 | 0.267123 | 0.109756 | 328 | 9 | 80 | 36.444444 | 0.44863 | 0.051829 | 0 | 0 | 0 | 0.428571 | 0.656863 | 0.627451 | 0 | 1 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
94ad6a21c0e36974f4e1b9968bd669337deebb18 | 3,987 | py | Python | server.py | Chase-Warwick/CMPUT404-Assignment-1 | b224c13309879d4894616267f396494ad37d1a9d | [
"Apache-2.0"
] | null | null | null | server.py | Chase-Warwick/CMPUT404-Assignment-1 | b224c13309879d4894616267f396494ad37d1a9d | [
"Apache-2.0"
] | null | null | null | server.py | Chase-Warwick/CMPUT404-Assignment-1 | b224c13309879d4894616267f396494ad37d1a9d | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import socketserver
import os
from HTTP_Parser import HTTP_Parser
# Copyright 2013 Abram Hindle, Eddie Antonio Santos, Chase Warwick
#
# 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 ... | 34.669565 | 127 | 0.651618 | 526 | 3,987 | 4.836502 | 0.38403 | 0.055031 | 0.060535 | 0.040094 | 0.241745 | 0.241745 | 0.155267 | 0.123035 | 0.105346 | 0.105346 | 0 | 0.028513 | 0.261099 | 3,987 | 114 | 128 | 34.973684 | 0.834691 | 0.365438 | 0 | 0.294118 | 0 | 0 | 0.120985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.058824 | 0 | 0.333333 | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94ae2a18c46e0824f96fd46435cacfc8f3b0d962 | 3,542 | py | Python | polire/interpolate/idw/idw.py | patel-zeel/ALdeploy | 58212209c4b495db471ada0fd695eab38e2acfe8 | [
"BSD-3-Clause"
] | null | null | null | polire/interpolate/idw/idw.py | patel-zeel/ALdeploy | 58212209c4b495db471ada0fd695eab38e2acfe8 | [
"BSD-3-Clause"
] | null | null | null | polire/interpolate/idw/idw.py | patel-zeel/ALdeploy | 58212209c4b495db471ada0fd695eab38e2acfe8 | [
"BSD-3-Clause"
] | null | null | null | r"""
This is a module for IDW Spatial Interpolation
"""
import numpy as np
from ...utils.distance import haversine, euclidean
from ..base import Base
from copy import deepcopy
def is_row_in_array(row, arr):
return list(row) in arr.tolist()
def get_index(row, arr):
t1 = np.where(arr[:, 0] == row[0])
t2 =... | 34.057692 | 106 | 0.627329 | 464 | 3,542 | 4.717672 | 0.357759 | 0.015989 | 0.010964 | 0.015075 | 0.068524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014769 | 0.273574 | 3,542 | 103 | 107 | 34.38835 | 0.835989 | 0.398645 | 0 | 0.04 | 0 | 0 | 0.046452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.08 | 0.02 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94ae725011a08e4c8517cf30bebcb0c980693e6f | 306 | py | Python | rucken_todo/helpers/jwt_utils.py | site15/rucken-todo-django | bf30d4ad43be22bd8383447e07b151d6dc99da72 | [
"MIT"
] | 3 | 2018-06-04T07:36:59.000Z | 2019-10-07T05:33:56.000Z | rucken_todo/helpers/jwt_utils.py | site15/rucken-todo-django-example | bf30d4ad43be22bd8383447e07b151d6dc99da72 | [
"MIT"
] | 428 | 2017-11-24T20:19:39.000Z | 2022-03-26T04:13:25.000Z | rucken_todo/helpers/jwt_utils.py | rucken/todo-django | bf30d4ad43be22bd8383447e07b151d6dc99da72 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from rucken_todo.serializers import AccountSerializer
def jwt_response_payload_handler(token, user=None, request=None):
user_info = AccountSerializer(user, context={'request': request})
return {
'token': token,
'user': user_info.data
}
| 27.818182 | 69 | 0.732026 | 35 | 306 | 6.085714 | 0.628571 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 306 | 10 | 70 | 30.6 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 |
94ae9dc93f1afd0836d68bb47efd279b23b7bf97 | 4,464 | py | Python | Bitrate/bitrate_api.py | AnirudhJanagam/Applied-Network-Management | 95ceac895976ef55dd1889660920de70d1f53012 | [
"Apache-2.0"
] | 1 | 2021-01-21T06:15:29.000Z | 2021-01-21T06:15:29.000Z | Bitrate/bitrate_api.py | AnirudhJanagam/Applied-Network-Management | 95ceac895976ef55dd1889660920de70d1f53012 | [
"Apache-2.0"
] | null | null | null | Bitrate/bitrate_api.py | AnirudhJanagam/Applied-Network-Management | 95ceac895976ef55dd1889660920de70d1f53012 | [
"Apache-2.0"
] | null | null | null | import os, sys
import subprocess
from subprocess import Popen
from bitrate_db import influx
from flask import Flask
from flask import request, Response, make_response
from functools import wraps
import threading
from threading import Thread
dpmi = Flask(__name__)
interface="ens4"
directory="/home/ajheartnett/consume... | 25.363636 | 144 | 0.691084 | 627 | 4,464 | 4.861244 | 0.236045 | 0.034449 | 0.041339 | 0.052493 | 0.221785 | 0.168963 | 0.156496 | 0.12664 | 0.076115 | 0.076115 | 0 | 0.0034 | 0.143593 | 4,464 | 175 | 145 | 25.508571 | 0.793879 | 0 | 0 | 0.214815 | 0 | 0.022222 | 0.255152 | 0.03181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.02963 | 0.066667 | 0 | 0.281481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94af70908d2b3dd85709ae398d03903d5cfe364f | 3,438 | py | Python | tutorials/ot-oti-find-tree.py | mtholder/peyotl | bbbe0e828c0cd706a11cd1b25a739d4603cbbe63 | [
"BSD-2-Clause"
] | 6 | 2015-01-11T06:24:38.000Z | 2017-11-23T17:18:12.000Z | tutorials/ot-oti-find-tree.py | OpenTreeOfLife/peyotl | bbbe0e828c0cd706a11cd1b25a739d4603cbbe63 | [
"BSD-2-Clause"
] | 60 | 2015-01-09T10:30:58.000Z | 2020-05-20T17:08:36.000Z | tutorials/ot-oti-find-tree.py | OpenTreeOfLife/peyotl | bbbe0e828c0cd706a11cd1b25a739d4603cbbe63 | [
"BSD-2-Clause"
] | 3 | 2015-09-03T15:29:00.000Z | 2015-10-08T20:03:30.000Z | #!/usr/bin/env python
from __future__ import print_function
'''Simple command-line tool that wraps OTI to get trees for an argument which is a property value pair
e.g. python ot-oti-find-tree.py '{"ot:ottTaxonName": "Bos"}'
which is described at https://github.com/OpenTreeOfLife/opentree/wiki/Open-Tree-of-Life-... | 45.236842 | 159 | 0.670157 | 482 | 3,438 | 4.643154 | 0.356846 | 0.031278 | 0.02681 | 0.032172 | 0.154156 | 0.133155 | 0.071492 | 0.035746 | 0 | 0 | 0 | 0.000377 | 0.228621 | 3,438 | 75 | 160 | 45.84 | 0.843514 | 0.213496 | 0 | 0.040816 | 0 | 0 | 0.198821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.122449 | 0 | 0.204082 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94af9687241b62e54f2ba2743065ae7f38faf540 | 5,817 | py | Python | negmgan/model_Imeans.py | junzhuang-code/NEGMGAN | aae8912cf03e3590abc81f66a255b891cee4443d | [
"MIT"
] | null | null | null | negmgan/model_Imeans.py | junzhuang-code/NEGMGAN | aae8912cf03e3590abc81f66a255b891cee4443d | [
"MIT"
] | null | null | null | negmgan/model_Imeans.py | junzhuang-code/NEGMGAN | aae8912cf03e3590abc81f66a255b891cee4443d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@title: Non-Exhaustive Gaussian Mixture Generative Adversarial Networks (NE-GM-GAN)
@topic: I-means Model
@author: Jun Zhuang, Mohammad Al Hasan
@ref:
https://math.stackexchange.com/questions/20593/calculate-variance-from-a-stream-of-sample-values
"""
import numpy... | 48.882353 | 121 | 0.552347 | 882 | 5,817 | 3.52381 | 0.240363 | 0.029279 | 0.022523 | 0.021236 | 0.151223 | 0.098777 | 0.064672 | 0.048263 | 0.007079 | 0 | 0 | 0.022424 | 0.31769 | 5,817 | 118 | 122 | 49.29661 | 0.760393 | 0.413959 | 0 | 0.1 | 0 | 0 | 0.066154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.028571 | 0 | 0.142857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94afc3801ad33ac542a38c7c118aaf3297b38ae2 | 64 | py | Python | matrix/__init__.py | exted/matrix | 365421e8e462872087173e41c63adee96f76d207 | [
"MIT"
] | null | null | null | matrix/__init__.py | exted/matrix | 365421e8e462872087173e41c63adee96f76d207 | [
"MIT"
] | null | null | null | matrix/__init__.py | exted/matrix | 365421e8e462872087173e41c63adee96f76d207 | [
"MIT"
] | null | null | null | from . import nodes
from . import algos
from . import simulation | 21.333333 | 24 | 0.78125 | 9 | 64 | 5.555556 | 0.555556 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 64 | 3 | 24 | 21.333333 | 0.943396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
94b2972116bf954df018e058f59806dfa116f612 | 9,733 | py | Python | board.py | jimages/Surakarta-AI-Core | 6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06 | [
"MIT"
] | 1 | 2021-01-04T12:08:29.000Z | 2021-01-04T12:08:29.000Z | board.py | jimages/Surakarta-AI-Core | 6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06 | [
"MIT"
] | null | null | null | board.py | jimages/Surakarta-AI-Core | 6b6e5ddde7337676212cff0ee9f5c7ac2cb01f06 | [
"MIT"
] | null | null | null | from status import Chess, GameStatus, Direction
class Action(object):
def __init__(self, x, y, eat_pos=None, direction=None):
self.x = x
self.y = y
if direction is not None:
self.is_move = True
self.direction = direction
self.to_x = None
self... | 32.228477 | 115 | 0.494606 | 1,248 | 9,733 | 3.642628 | 0.107372 | 0.017598 | 0.052794 | 0.027717 | 0.375715 | 0.284866 | 0.24593 | 0.199956 | 0.16894 | 0.16894 | 0 | 0.017279 | 0.393507 | 9,733 | 301 | 116 | 32.335548 | 0.752838 | 0.059797 | 0 | 0.285088 | 0 | 0 | 0.008931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.004386 | 0 | 0.285088 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94b31dcd01a9c5b2acc1e8e7cd78ecaf4e1b79f0 | 1,422 | py | Python | plotting/plot_seed_variation/prepare_data_for_r.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | 4 | 2020-10-12T14:26:36.000Z | 2021-08-19T17:26:00.000Z | plotting/plot_seed_variation/prepare_data_for_r.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | null | null | null | plotting/plot_seed_variation/prepare_data_for_r.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | null | null | null | import argparse
import sys
def get_precision_values(input_file):
seednumbs = []
precs = []
with open(input_file) as lines:
for line in lines:
if "RESULTS_SEEDNUMB" in line:
values = line.strip().split()
seednumbs.append(str(values[1]))
if "RES... | 33.069767 | 100 | 0.600563 | 175 | 1,422 | 4.742857 | 0.405714 | 0.043373 | 0.081928 | 0.057831 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003683 | 0.236287 | 1,422 | 42 | 101 | 33.857143 | 0.760589 | 0.068917 | 0 | 0 | 0 | 0 | 0.115064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
94b49ac2ff944d6a036aac4514f2d4f0959b3e08 | 12,058 | py | Python | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | 4 | 2022-02-16T20:57:06.000Z | 2022-03-23T01:32:58.000Z | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | null | null | null | code/pre_processing/pre_processing_utils.py | brainML/great-apes | 293195c6b1274a5e9b5c5f7e30ac963292efeab1 | [
"BSD-3-Clause"
] | null | null | null | import h5py
import pandas as pd
import numpy as np
import json
import scipy as sp
import nibabel as nib
from glob import glob
import fnmatch
import os
run_name_dict = {
"REST1": "REST1_7T_PA",
"REST2": "REST2_7T_AP",
"REST3": "REST3_7T_PA",
"REST4": "REST4_7T_AP",
"MOVIE1": 'MOVIE1_CC1',
"MOV... | 45.674242 | 170 | 0.637917 | 1,730 | 12,058 | 4.152601 | 0.173988 | 0.03118 | 0.020045 | 0.020045 | 0.465618 | 0.402561 | 0.372912 | 0.349805 | 0.293291 | 0.279092 | 0 | 0.01947 | 0.246061 | 12,058 | 263 | 171 | 45.847909 | 0.770762 | 0.105158 | 0 | 0.255102 | 0 | 0.010204 | 0.150028 | 0.07929 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045918 | null | null | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |