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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c32a765467990449b567bcb5b74b49876b530290 | 431 | py | Python | troupon/payment/serializers.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 14 | 2016-01-12T07:31:09.000Z | 2021-11-20T19:29:35.000Z | troupon/payment/serializers.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 52 | 2015-09-02T14:54:43.000Z | 2016-08-01T08:22:21.000Z | troupon/payment/serializers.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 17 | 2015-09-30T13:18:48.000Z | 2021-11-18T16:25:12.000Z | """Serializers for the payment app."""
from rest_framework import serializers
from models import Purchases
class TransactionSerializer(serializers.ModelSerializer):
"""Serializer for Transaction instances.
"""
class Meta:
model = Purchases
fields = ('id', 'item', 'price', 'quantity', 'ti... | 26.9375 | 61 | 0.654292 | 39 | 431 | 7.102564 | 0.717949 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238979 | 431 | 15 | 62 | 28.733333 | 0.844512 | 0.174014 | 0 | 0 | 0 | 0 | 0.234783 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
c32ab97ad989123fa02793d4bdfb1b13b2fa964a | 4,817 | py | Python | mla/kmeans.py | anshulg5/MLAlgorithms | 6c12ebe64016eabb9527fb1f18be81cd3ff0c599 | [
"MIT"
] | 1 | 2020-04-22T22:03:51.000Z | 2020-04-22T22:03:51.000Z | mla/kmeans.py | anshulg5/MLAlgorithms | 6c12ebe64016eabb9527fb1f18be81cd3ff0c599 | [
"MIT"
] | 1 | 2021-06-25T15:40:35.000Z | 2021-06-25T15:40:35.000Z | mla/kmeans.py | anshulg5/MLAlgorithms | 6c12ebe64016eabb9527fb1f18be81cd3ff0c599 | [
"MIT"
] | 2 | 2019-07-21T13:19:17.000Z | 2020-12-28T05:46:37.000Z | import random
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
from mla.base import BaseEstimator
from mla.metrics.distance import euclidean_distance
random.seed(1111)
class KMeans(BaseEstimator):
"""Partition a dataset into K clusters.
Finds clusters by repeatedly assigning each d... | 34.654676 | 119 | 0.622379 | 606 | 4,817 | 4.839934 | 0.306931 | 0.048756 | 0.018752 | 0.023525 | 0.041596 | 0.031367 | 0.031367 | 0.031367 | 0.031367 | 0.031367 | 0 | 0.004389 | 0.29043 | 4,817 | 138 | 120 | 34.905797 | 0.853716 | 0.252439 | 0 | 0.04878 | 0 | 0 | 0.015165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0 | 0.073171 | 0.02439 | 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 |
c32ad26a1993eb568f93f3377b6a0497a0eab914 | 10,741 | py | Python | train_classifier.py | justusmattern/dist-embeds | 2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8 | [
"MIT"
] | null | null | null | train_classifier.py | justusmattern/dist-embeds | 2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8 | [
"MIT"
] | null | null | null | train_classifier.py | justusmattern/dist-embeds | 2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8 | [
"MIT"
] | null | null | null | import os
import sys
import argparse
import time
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.autograd import Variable
# from sru import *
import dataloader
import modules
class Model(nn.Module):
def __init__(self, embe... | 34.536977 | 147 | 0.553114 | 1,356 | 10,741 | 4.189528 | 0.165192 | 0.035909 | 0.059849 | 0.024644 | 0.396057 | 0.315966 | 0.289386 | 0.246435 | 0.198029 | 0.156663 | 0 | 0.011466 | 0.317941 | 10,741 | 310 | 148 | 34.648387 | 0.763991 | 0.16991 | 0 | 0.260664 | 0 | 0.014218 | 0.090046 | 0.022709 | 0 | 0 | 0 | 0.003226 | 0 | 1 | 0.033175 | false | 0 | 0.061611 | 0 | 0.123223 | 0.004739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c32b3afbd77078a6af646cb681c0da4280c9fc0a | 1,844 | py | Python | app/request/queue.py | infrared5/massroute-pi | c2e16d655058c6c5531ec66f8a82fe41ad4e8427 | [
"MIT"
] | null | null | null | app/request/queue.py | infrared5/massroute-pi | c2e16d655058c6c5531ec66f8a82fe41ad4e8427 | [
"MIT"
] | null | null | null | app/request/queue.py | infrared5/massroute-pi | c2e16d655058c6c5531ec66f8a82fe41ad4e8427 | [
"MIT"
] | null | null | null | import logging
from time import sleep
logger = logging.getLogger(__name__)
class StopRequestQueue:
cursor = 0
queue = None
service = None
current_request = None
request_delay = 0 # seconds
def __init__(self, service, request_delay=10):
self.queue = []
self.service = service
self.request_dela... | 28.8125 | 96 | 0.679501 | 247 | 1,844 | 4.97166 | 0.307692 | 0.07329 | 0.102606 | 0.037459 | 0.337948 | 0.301303 | 0.262215 | 0.210098 | 0.210098 | 0.210098 | 0 | 0.006211 | 0.214208 | 1,844 | 63 | 97 | 29.269841 | 0.84127 | 0.099783 | 0 | 0.181818 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.045455 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c32c528f23adfd98c6057b14b36d3ef97d2f6fbf | 5,826 | py | Python | trimap_module.py | lnugraha/trimap_generator | a279562b0d0f387896330cf88549e67618d1eb7f | [
"MIT"
] | 168 | 2018-04-14T09:46:03.000Z | 2022-03-29T08:14:11.000Z | trimap_module.py | lnugraha/trimap_generator | a279562b0d0f387896330cf88549e67618d1eb7f | [
"MIT"
] | 7 | 2018-05-14T12:54:23.000Z | 2021-10-12T01:16:20.000Z | trimap_module.py | lnugraha/trimap_generator | a279562b0d0f387896330cf88549e67618d1eb7f | [
"MIT"
] | 35 | 2019-05-13T03:13:11.000Z | 2022-03-22T11:55:58.000Z | #!/usr/bin/env python
import cv2, os, sys
import numpy as np
def extractImage(path):
# error handller if the intended path is not found
image = cv2.imread(path, cv2.IMREAD_GRAYSCALE)
return image
def checkImage(image):
"""
Args:
image: input image to be checked
Returns:
binary ... | 35.309091 | 120 | 0.562993 | 704 | 5,826 | 4.605114 | 0.306818 | 0.030537 | 0.020049 | 0.023442 | 0.201419 | 0.140654 | 0.089451 | 0.068476 | 0.043183 | 0.043183 | 0 | 0.031235 | 0.274631 | 5,826 | 164 | 121 | 35.52439 | 0.73592 | 0.297975 | 0 | 0.024096 | 0 | 0 | 0.087947 | 0.010957 | 0 | 0 | 0 | 0.006098 | 0 | 1 | 0.108434 | false | 0 | 0.024096 | 0 | 0.192771 | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c32c82635b0888813302ed2b3bc7efe4aeb79fdb | 4,047 | py | Python | integration/keeper_secrets_manager_ansible/tests/keeper_init.py | Keeper-Security/secrets-manager | 0044dec7f323ae2e531f52ef2435bd7205949fe9 | [
"MIT"
] | 9 | 2022-01-10T18:39:45.000Z | 2022-03-06T03:51:41.000Z | integration/keeper_secrets_manager_ansible/tests/keeper_init.py | Keeper-Security/secrets-manager | 0044dec7f323ae2e531f52ef2435bd7205949fe9 | [
"MIT"
] | 10 | 2022-01-27T00:51:05.000Z | 2022-03-30T08:42:01.000Z | integration/keeper_secrets_manager_ansible/tests/keeper_init.py | Keeper-Security/secrets-manager | 0044dec7f323ae2e531f52ef2435bd7205949fe9 | [
"MIT"
] | 6 | 2021-12-17T18:59:26.000Z | 2022-03-28T16:47:28.000Z | import unittest
from unittest.mock import patch
import os
from .ansible_test_framework import AnsibleTestFramework, RecordMaker
import keeper_secrets_manager_ansible.plugins
import tempfile
records = {
"TRd_567FkHy-CeGsAzs8aA": RecordMaker.make_record(
uid="TRd_567FkHy-CeGsAzs8aA",
title="JW-F1-R1... | 37.472222 | 111 | 0.596244 | 494 | 4,047 | 4.676113 | 0.275304 | 0.049351 | 0.047619 | 0.038961 | 0.519048 | 0.49697 | 0.49697 | 0.47013 | 0.47013 | 0.47013 | 0 | 0.014696 | 0.276995 | 4,047 | 107 | 112 | 37.82243 | 0.774778 | 0.027675 | 0 | 0.367816 | 0 | 0 | 0.193844 | 0.037395 | 0 | 0 | 0 | 0 | 0.091954 | 1 | 0.068966 | false | 0.011494 | 0.068966 | 0 | 0.16092 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c33017f8651ee60d0cc6f759fc632d532c899c80 | 3,213 | py | Python | deploy/terraform/tasks.py | kinecosystem/blockchain-ops | fc21bbd2d3d405844857a8b3413718bacbaad294 | [
"MIT"
] | 15 | 2018-08-08T23:47:53.000Z | 2020-02-13T17:14:15.000Z | deploy/terraform/tasks.py | kinfoundation/stellar-ops | fc21bbd2d3d405844857a8b3413718bacbaad294 | [
"MIT"
] | 21 | 2018-10-16T09:20:32.000Z | 2019-12-15T19:01:56.000Z | deploy/terraform/tasks.py | yonikashi/blocktest | db044d74afc62f80f8f74060830347e82dd03adb | [
"MIT"
] | 9 | 2018-11-05T17:28:55.000Z | 2019-08-02T20:10:14.000Z | """Call various Terraform actions."""
import os
import os.path
from invoke import task
import jinja2
import yaml
TERRAFORM_VERSION = '0.11.7'
@task
def install(c, ostype='linux', version=TERRAFORM_VERSION):
"""Download a local version of Terraform."""
if ostype == 'mac':
ostype = 'darwin'
file... | 24.157895 | 81 | 0.62714 | 414 | 3,213 | 4.811594 | 0.335749 | 0.024096 | 0.01506 | 0.019578 | 0.264558 | 0.256526 | 0.256526 | 0.22239 | 0.22239 | 0.182229 | 0 | 0.003984 | 0.218799 | 3,213 | 132 | 82 | 24.340909 | 0.789641 | 0.16371 | 0 | 0.24 | 0 | 0 | 0.289655 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.213333 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c33241bd3d20aeeac4e2cda557798ad660937ce2 | 587 | py | Python | inferencia/task/person_reid/body_reid/model/body_reid_model_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/task/person_reid/body_reid/model/body_reid_model_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/task/person_reid/body_reid/model/body_reid_model_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | from .body_reid_model_name import BodyReidModelName
class BodyReidModelFactory():
def create(model_name,
model_path,
model_precision):
if model_name == BodyReidModelName.osnet_x0_25.value:
from .model.osnet.osnet_x0_25 import OSNetX025
return OSNetX025... | 32.611111 | 66 | 0.577513 | 54 | 587 | 6.018519 | 0.555556 | 0.110769 | 0.086154 | 0.141538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.356048 | 587 | 17 | 67 | 34.529412 | 0.828042 | 0 | 0 | 0 | 0 | 0 | 0.064736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3327d62d6a5e087ae5d5a099ea856c563dc576f | 3,931 | py | Python | cheatingbee/twitter.py | exoskellyman/cheatingbee | 1dd0710f9be8f40c3f23aa5bcac568588ac8feeb | [
"MIT"
] | null | null | null | cheatingbee/twitter.py | exoskellyman/cheatingbee | 1dd0710f9be8f40c3f23aa5bcac568588ac8feeb | [
"MIT"
] | null | null | null | cheatingbee/twitter.py | exoskellyman/cheatingbee | 1dd0710f9be8f40c3f23aa5bcac568588ac8feeb | [
"MIT"
] | null | null | null | import datetime
import io
import os
import tweepy
from dotenv import load_dotenv
from PIL import Image, ImageDraw, ImageFont
class Twitter:
"""
A class used to manage the connection with the Twitter API
...
Methods
-------
post_tweet(solver_answers, nyt_answers, pangrams)
Creates the... | 34.787611 | 86 | 0.58204 | 500 | 3,931 | 4.436 | 0.332 | 0.036069 | 0.021641 | 0.034265 | 0.291704 | 0.194319 | 0.150586 | 0.150586 | 0.150586 | 0.150586 | 0 | 0.011123 | 0.313915 | 3,931 | 112 | 87 | 35.098214 | 0.810159 | 0.275757 | 0 | 0.068966 | 0 | 0 | 0.140576 | 0.020249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.224138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3335a14a14888a29737d6b5d92bb38bedb9c886 | 2,045 | py | Python | ev3/sensors/color.py | NewThingsCo/ev3-controller | 70d30617fa3ea6ef73a39a8c5360e8e4c72a9e98 | [
"BSD-2-Clause"
] | 1 | 2019-08-06T10:16:39.000Z | 2019-08-06T10:16:39.000Z | ev3/sensors/color.py | NewThingsCo/ev3-controller | 70d30617fa3ea6ef73a39a8c5360e8e4c72a9e98 | [
"BSD-2-Clause"
] | null | null | null | ev3/sensors/color.py | NewThingsCo/ev3-controller | 70d30617fa3ea6ef73a39a8c5360e8e4c72a9e98 | [
"BSD-2-Clause"
] | 1 | 2018-03-06T10:59:50.000Z | 2018-03-06T10:59:50.000Z | import goless
import time
from sys import platform
if platform == "linux" or platform == "linux2":
import brickpi3
def start_color_sensor(brick, port, channel):
print("start color sensor")
setup_sensor(brick, port)
goless.go(run_color_sensor, brick, port, channel)
print("color sensor started")
... | 30.984848 | 89 | 0.642543 | 258 | 2,045 | 4.860465 | 0.29845 | 0.079745 | 0.083732 | 0.086124 | 0.365231 | 0.220893 | 0.088517 | 0 | 0 | 0 | 0 | 0.022383 | 0.257213 | 2,045 | 65 | 90 | 31.461538 | 0.80316 | 0.135941 | 0 | 0.166667 | 0 | 0 | 0.096481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
c3374bd201ea3739cfe629bae1ecfda55d32a4e4 | 5,022 | py | Python | setup.py | kmike/UnbalancedDataset | 777f26cee73c04ae2f3d59e43c990cbfd1725b23 | [
"MIT"
] | 6 | 2016-06-02T09:27:41.000Z | 2021-04-21T06:46:12.000Z | setup.py | kmike/UnbalancedDataset | 777f26cee73c04ae2f3d59e43c990cbfd1725b23 | [
"MIT"
] | null | null | null | setup.py | kmike/UnbalancedDataset | 777f26cee73c04ae2f3d59e43c990cbfd1725b23 | [
"MIT"
] | 1 | 2018-08-25T03:11:05.000Z | 2018-08-25T03:11:05.000Z | #! /usr/bin/env python
"""Toolbox for unbalanced dataset in machine learning."""
from setuptools import setup, find_packages
import os
import sys
import setuptools
from distutils.command.build_py import build_py
if sys.version_info[0] < 3:
import __builtin__ as builtins
else:
import builtins
descr = """Tool... | 37.477612 | 79 | 0.597172 | 542 | 5,022 | 5.391144 | 0.416974 | 0.040726 | 0.05989 | 0.027721 | 0.104723 | 0.086242 | 0.045175 | 0 | 0 | 0 | 0 | 0.006041 | 0.307845 | 5,022 | 133 | 80 | 37.759399 | 0.83458 | 0.151533 | 0 | 0.06 | 0 | 0 | 0.271162 | 0.022636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0.01 | 0.13 | 0 | 0.15 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c338d3a2b98ef137f9b2463dce7a00499cad0407 | 1,346 | py | Python | tests/test_gpreg.py | cdgreenidge/gdec | 1ee6ab0156fa8f74683f5b7a7dfcb2c3f2a57d7f | [
"MIT"
] | null | null | null | tests/test_gpreg.py | cdgreenidge/gdec | 1ee6ab0156fa8f74683f5b7a7dfcb2c3f2a57d7f | [
"MIT"
] | null | null | null | tests/test_gpreg.py | cdgreenidge/gdec | 1ee6ab0156fa8f74683f5b7a7dfcb2c3f2a57d7f | [
"MIT"
] | null | null | null | """Test gpreg.py."""
from typing import Tuple
import numpy as np
import pytest
from gdec import gpreg, npgp
@pytest.fixture(scope="module")
def dataset() -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
np.random.seed(42)
amplitude = 1.0
lengthscale = 12
sigma = 0.5
n = 128
def spe... | 26.392157 | 80 | 0.665676 | 211 | 1,346 | 4.066351 | 0.393365 | 0.062937 | 0.064103 | 0.083916 | 0.223776 | 0.223776 | 0.223776 | 0.179487 | 0.118881 | 0 | 0 | 0.015888 | 0.205052 | 1,346 | 50 | 81 | 26.92 | 0.785981 | 0.010401 | 0 | 0.162162 | 0 | 0 | 0.004525 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.108108 | false | 0 | 0.108108 | 0.027027 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c33952e0e337955829e818701b7429be3b750ed1 | 1,008 | py | Python | gizer/all_schema_engines.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | gizer/all_schema_engines.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | gizer/all_schema_engines.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
__author__ = "Yaroslav Litvinov"
__copyright__ = "Copyright 2016, Rackspace Inc."
__email__ = "yaroslav.litvinov@rackspace.com"
from mongo_schema import schema_engine
import os
def get_schema_files(schemas_dirpath):
""" get list of js / json files resided in dirpath param. """
res = []
... | 33.6 | 76 | 0.709325 | 134 | 1,008 | 5.044776 | 0.432836 | 0.10355 | 0.035503 | 0.06213 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006165 | 0.195437 | 1,008 | 29 | 77 | 34.758621 | 0.827374 | 0.161706 | 0 | 0 | 0 | 0 | 0.101449 | 0.03744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c33c9ccdc0ba66d9833eb045f4eb9b0711984aa5 | 2,416 | py | Python | links/management/commands/seed_data.py | darth-dodo/hackernews-backend | 402497a47271a90402624ed2c34b46ac08638440 | [
"MIT"
] | 3 | 2020-04-20T09:15:39.000Z | 2020-05-25T18:27:44.000Z | links/management/commands/seed_data.py | darth-dodo/hackernews-backend | 402497a47271a90402624ed2c34b46ac08638440 | [
"MIT"
] | null | null | null | links/management/commands/seed_data.py | darth-dodo/hackernews-backend | 402497a47271a90402624ed2c34b46ac08638440 | [
"MIT"
] | 1 | 2022-01-29T06:05:15.000Z | 2022-01-29T06:05:15.000Z | from random import randint
from django.core.management.base import BaseCommand
from django.db import transaction
from faker import Faker
from hn_users.models import HNUser, User
from links.models import Link, Vote
faker = Faker()
class Command(BaseCommand):
help = "Generate Links from a small user subset"
... | 31.789474 | 105 | 0.624586 | 306 | 2,416 | 4.656863 | 0.294118 | 0.037895 | 0.025263 | 0.026667 | 0.127719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.267384 | 2,416 | 75 | 106 | 32.213333 | 0.801695 | 0.004553 | 0 | 0 | 0 | 0 | 0.079517 | 0.014571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0.016949 | 0.101695 | 0 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c33fdea58a4606282019dc0ca418482457a10cef | 3,010 | py | Python | locations/spiders/cenex.py | mfjackson/alltheplaces | 37c90b4041c80a574e6e4c2f886883e97df4b636 | [
"MIT"
] | null | null | null | locations/spiders/cenex.py | mfjackson/alltheplaces | 37c90b4041c80a574e6e4c2f886883e97df4b636 | [
"MIT"
] | null | null | null | locations/spiders/cenex.py | mfjackson/alltheplaces | 37c90b4041c80a574e6e4c2f886883e97df4b636 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import json
from locations.items import GeojsonPointItem
class CenexSpider(scrapy.Spider):
name = "cenex"
item_attributes = {"brand": "Cenex", "brand_wikidata": "Q5011381"}
allowed_domains = ["www.cenex.com"]
def start_requests(self):
yield scrapy.http.Js... | 40.675676 | 88 | 0.469435 | 256 | 3,010 | 5.480469 | 0.59375 | 0.078403 | 0.055595 | 0.072701 | 0.130435 | 0.037063 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.397674 | 3,010 | 73 | 89 | 41.232877 | 0.692223 | 0.006977 | 0 | 0 | 0 | 0 | 0.27854 | 0.072313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3402d0f4328c3cbff771ca36bde6cdd1c05dd43 | 6,794 | py | Python | core/dbt/flags.py | tskleonard/dbt-core | c112050455e1f7b984c5c0d42a57a90a0d4d7053 | [
"Apache-2.0"
] | null | null | null | core/dbt/flags.py | tskleonard/dbt-core | c112050455e1f7b984c5c0d42a57a90a0d4d7053 | [
"Apache-2.0"
] | null | null | null | core/dbt/flags.py | tskleonard/dbt-core | c112050455e1f7b984c5c0d42a57a90a0d4d7053 | [
"Apache-2.0"
] | null | null | null | import os
import multiprocessing
if os.name != "nt":
# https://bugs.python.org/issue41567
import multiprocessing.popen_spawn_posix # type: ignore
from pathlib import Path
from typing import Optional
# PROFILES_DIR must be set before the other flags
# It also gets set in main.py and in set_from_args because t... | 35.94709 | 97 | 0.704592 | 935 | 6,794 | 4.785027 | 0.218182 | 0.058337 | 0.059455 | 0.035986 | 0.10371 | 0.026822 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.204298 | 6,794 | 188 | 98 | 36.138298 | 0.823344 | 0.161908 | 0 | 0.06338 | 0 | 0 | 0.168994 | 0.034294 | 0 | 0 | 0 | 0.005319 | 0 | 1 | 0.049296 | false | 0 | 0.035211 | 0.014085 | 0.147887 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c341709c7b99e4263e43265985148f2594b1d447 | 2,223 | py | Python | DataShine/DataShine.py | monk-after-90s/DataShine | e707d5a737ad1aca84a2646aa6d39fcfe430b58d | [
"MIT"
] | null | null | null | DataShine/DataShine.py | monk-after-90s/DataShine | e707d5a737ad1aca84a2646aa6d39fcfe430b58d | [
"MIT"
] | null | null | null | DataShine/DataShine.py | monk-after-90s/DataShine | e707d5a737ad1aca84a2646aa6d39fcfe430b58d | [
"MIT"
] | null | null | null | import asyncio
import functools
from copy import deepcopy
from ensureTaskCanceled import ensureTaskCanceled
def _no_closed(method):
'''
Can not be run when closed.
:return:
'''
@functools.wraps(method)
def wrapper(*args, **kwargs):
self = args[0]
if self._closed:
r... | 24.977528 | 123 | 0.604139 | 275 | 2,223 | 4.632727 | 0.356364 | 0.027473 | 0.062794 | 0.082418 | 0.062009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001298 | 0.306793 | 2,223 | 88 | 124 | 25.261364 | 0.825438 | 0.033738 | 0 | 0.085106 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.021277 | 0.085106 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c343356ef27f41702366f05b06f61bd4669c4a8d | 13,886 | py | Python | src/python/deepseq2.py | yotamfr/prot2vec | eaee36f9e3929054b1c324acd053a52d0e7be2bd | [
"MIT"
] | 8 | 2017-10-01T14:34:25.000Z | 2021-04-27T13:18:00.000Z | src/python/deepseq2.py | yotamfr/prot2vec | eaee36f9e3929054b1c324acd053a52d0e7be2bd | [
"MIT"
] | 1 | 2020-01-23T17:17:18.000Z | 2020-01-23T17:17:18.000Z | src/python/deepseq2.py | yotamfr/prot2vec | eaee36f9e3929054b1c324acd053a52d0e7be2bd | [
"MIT"
] | 1 | 2018-05-04T04:54:32.000Z | 2018-05-04T04:54:32.000Z | import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
# os.environ["CUDA_VISIBLE_DEVICES"] = "1"
from src.python.baselines import *
from pymongo import MongoClient
from tqdm import tqdm
import tensorflow as tf
### Keras
from keras import optimizers
from keras.models import Model
from keras.layers import Input... | 32.983373 | 124 | 0.631931 | 1,868 | 13,886 | 4.546574 | 0.194861 | 0.04121 | 0.044507 | 0.052985 | 0.396797 | 0.367361 | 0.306959 | 0.29071 | 0.255151 | 0.235253 | 0 | 0.031487 | 0.222382 | 13,886 | 420 | 125 | 33.061905 | 0.755047 | 0.042777 | 0 | 0.20068 | 0 | 0.003401 | 0.075701 | 0.001958 | 0 | 0 | 0 | 0 | 0.003401 | 1 | 0.098639 | false | 0 | 0.057823 | 0.013605 | 0.238095 | 0.013605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c343f679c520b2ae7bc168a588760750faee9e80 | 5,977 | py | Python | inbima.py | SkoltechAI/inbima | 4c22a864208091e3fb41ea7703c463c4189e78d1 | [
"MIT"
] | null | null | null | inbima.py | SkoltechAI/inbima | 4c22a864208091e3fb41ea7703c463c4189e78d1 | [
"MIT"
] | null | null | null | inbima.py | SkoltechAI/inbima | 4c22a864208091e3fb41ea7703c463c4189e78d1 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import openpyxl
import sys
from fs import FS
from journals import Journals
from utils import load_sheet
from utils import log
from word import Word
YEARS = [2017, 2018, 2019, 2020, 2021]
class InBiMa():
def __init__(self, is_new_folder=False):
self.fs = FS(is_new_folder... | 32.840659 | 79 | 0.543918 | 781 | 5,977 | 4.03073 | 0.183099 | 0.033037 | 0.037166 | 0.022236 | 0.321156 | 0.257306 | 0.198539 | 0.152478 | 0.134689 | 0.118806 | 0 | 0.015373 | 0.314372 | 5,977 | 181 | 80 | 33.022099 | 0.752806 | 0.013552 | 0 | 0.251748 | 0 | 0 | 0.113694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041958 | false | 0 | 0.055944 | 0 | 0.146853 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3462530e3c62749cd08fd4db0ee3cc3926324bb | 2,183 | py | Python | UkDatabaseAPI/UkDatabaseAPI/database/mongo_db.py | kplachkov/UkDatabase | 51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e | [
"Apache-2.0"
] | null | null | null | UkDatabaseAPI/UkDatabaseAPI/database/mongo_db.py | kplachkov/UkDatabase | 51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e | [
"Apache-2.0"
] | 3 | 2018-04-02T20:32:51.000Z | 2019-02-09T16:19:39.000Z | UkDatabaseAPI/UkDatabaseAPI/database/mongo_db.py | kplachkov/UkDatabase | 51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e | [
"Apache-2.0"
] | null | null | null | import pymongo
from bson.json_util import dumps
from pymongo import MongoClient
from UkDatabaseAPI.database.database import Database
from UkDatabaseAPI.database.query_builder.mongo_query_builder import MongoQueryBuilder
MONGO_URI = "mongodb://localhost:27017"
"""str: The MongoDB URI."""
class MongoDB(Database):
... | 38.982143 | 103 | 0.639945 | 262 | 2,183 | 5.099237 | 0.320611 | 0.02994 | 0.056138 | 0.040419 | 0.258982 | 0.22006 | 0.170659 | 0.073353 | 0 | 0 | 0 | 0.003075 | 0.255153 | 2,183 | 55 | 104 | 39.690909 | 0.818573 | 0.274851 | 0 | 0.066667 | 0 | 0 | 0.068661 | 0.016995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3482f320f27c64a0db4f2f20db98025fee332ce | 1,664 | py | Python | components/py-flask-wa/app.py | ajayns/amoc-project | c22ae62789568c1a784f165fbd4547ac20c290a0 | [
"MIT"
] | 26 | 2017-04-21T06:05:44.000Z | 2020-03-09T11:41:34.000Z | components/py-flask-wa/app.py | ajayns/amoc-project | c22ae62789568c1a784f165fbd4547ac20c290a0 | [
"MIT"
] | 6 | 2017-04-16T03:53:28.000Z | 2019-02-26T07:02:48.000Z | components/py-flask-wa/app.py | ajayns/amoc-project | c22ae62789568c1a784f165fbd4547ac20c290a0 | [
"MIT"
] | 5 | 2017-06-09T06:44:59.000Z | 2019-12-13T07:34:11.000Z | from flask import Flask, jsonify, request, render_template, redirect
from flask_pymongo import PyMongo
from werkzeug import secure_filename
import base64
app = Flask(__name__)
app.config['MONGO_DBNAME'] = 'restdb'
app.config['MONGO_URI'] = 'mongodb://localhost:27017/restdb'
mongo = PyMongo(app)
@app.route('/')
def ... | 24.115942 | 73 | 0.658053 | 232 | 1,664 | 4.568966 | 0.344828 | 0.060377 | 0.033962 | 0.053774 | 0.188679 | 0.188679 | 0.106604 | 0 | 0 | 0 | 0 | 0.007027 | 0.144832 | 1,664 | 68 | 74 | 24.470588 | 0.737878 | 0 | 0 | 0.109091 | 0 | 0 | 0.1875 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0 | 0.072727 | 0.054545 | 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 |
c34951b6e45c7100c95839ca25a8df621a593d38 | 2,190 | py | Python | wc_lang/util.py | KarrLab/wc_lang | 113a8b473576fa9c13688d2deb71b4b2ab400a03 | [
"MIT"
] | 7 | 2018-05-14T09:26:14.000Z | 2021-05-20T01:11:45.000Z | wc_lang/util.py | KarrLab/wc_lang | 113a8b473576fa9c13688d2deb71b4b2ab400a03 | [
"MIT"
] | 142 | 2018-03-14T16:50:56.000Z | 2021-01-03T16:25:23.000Z | wc_lang/util.py | KarrLab/wc_lang | 113a8b473576fa9c13688d2deb71b4b2ab400a03 | [
"MIT"
] | 4 | 2019-01-06T08:32:23.000Z | 2021-05-20T01:11:49.000Z | """ Utilities
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2016-11-10
:Copyright: 2016, Karr Lab
:License: MIT
"""
from obj_tables import get_models as base_get_models
from wc_lang import core
from wc_lang import io
from wc_utils.util import git
def get_model_size(model):
""" Get numbers of model components
... | 28.441558 | 89 | 0.616895 | 284 | 2,190 | 4.616197 | 0.285211 | 0.115942 | 0.134249 | 0.116705 | 0.172387 | 0.074752 | 0.05492 | 0.05492 | 0 | 0 | 0 | 0.007055 | 0.223288 | 2,190 | 76 | 90 | 28.815789 | 0.763668 | 0.283562 | 0 | 0 | 0 | 0 | 0.173169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c349777d037bf08d8ee79327a13369ab404b7431 | 5,267 | py | Python | synapse/tests/test_tools_autodoc.py | kcreyts/synapse | fe740fd1e0febfa32f8d431b32ab48f8a0cf306e | [
"Apache-2.0"
] | 1 | 2021-02-15T22:07:05.000Z | 2021-02-15T22:07:05.000Z | synapse/tests/test_tools_autodoc.py | kcreyts/synapse | fe740fd1e0febfa32f8d431b32ab48f8a0cf306e | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_tools_autodoc.py | kcreyts/synapse | fe740fd1e0febfa32f8d431b32ab48f8a0cf306e | [
"Apache-2.0"
] | null | null | null | import synapse.common as s_common
import synapse.tests.utils as s_t_utils
import synapse.tools.autodoc as s_autodoc
class TestAutoDoc(s_t_utils.SynTest):
async def test_tools_autodoc_docmodel(self):
with self.getTestDir() as path:
argv = ['--doc-model', '--savedir', path]
outp... | 41.801587 | 136 | 0.566926 | 639 | 5,267 | 4.591549 | 0.256651 | 0.09816 | 0.07362 | 0.04908 | 0.497273 | 0.466258 | 0.362304 | 0.351397 | 0.351397 | 0.320382 | 0 | 0.002646 | 0.282514 | 5,267 | 125 | 137 | 42.136 | 0.77375 | 0.004747 | 0 | 0.336957 | 0 | 0.032609 | 0.357824 | 0.113168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032609 | 0.032609 | 0 | 0.043478 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c34a6dd4d560ec8071e9109e3ca674e32bbace38 | 4,174 | py | Python | tf_idf.py | ricosr/retrieval_chatbot | 567e860f09771cae19e32b3bf20b5ce87266cda6 | [
"MIT"
] | 16 | 2018-12-04T13:55:56.000Z | 2021-11-21T05:53:57.000Z | tf_idf.py | ricosr/retrieval_chatbot | 567e860f09771cae19e32b3bf20b5ce87266cda6 | [
"MIT"
] | 5 | 2019-05-21T12:40:18.000Z | 2019-05-31T18:23:51.000Z | tf_idf.py | ricosr/retrieval_chatbot | 567e860f09771cae19e32b3bf20b5ce87266cda6 | [
"MIT"
] | 4 | 2018-11-22T13:45:05.000Z | 2019-09-16T16:30:28.000Z | # -*- coding: utf-8 -*-
import pickle
import os
import jieba
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.externals import joblib
from sklearn.metrics.pairwise import cosine_similarity
class TfIdf:
def __init__(self, config):
self.config = config
self.model_dict = {}... | 36.614035 | 94 | 0.626977 | 553 | 4,174 | 4.450271 | 0.21519 | 0.044697 | 0.028444 | 0.030882 | 0.324665 | 0.260057 | 0.217798 | 0.199106 | 0.135717 | 0.096709 | 0 | 0.004598 | 0.270484 | 4,174 | 113 | 95 | 36.938053 | 0.803612 | 0.111644 | 0 | 0.197531 | 0 | 0 | 0.008394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160494 | false | 0.024691 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c34bda54e37900d299bfad9266c734ecc115936d | 5,369 | py | Python | qklnn/plots/hyperpar_scan.py | cambouvy/BSc-Thesis-Project | ca2504cb828ab068545e130eac393ceb34f2a457 | [
"MIT"
] | 1 | 2021-10-02T11:15:10.000Z | 2021-10-02T11:15:10.000Z | qklnn/plots/hyperpar_scan.py | cambouvy/BSc-Thesis-Project | ca2504cb828ab068545e130eac393ceb34f2a457 | [
"MIT"
] | null | null | null | qklnn/plots/hyperpar_scan.py | cambouvy/BSc-Thesis-Project | ca2504cb828ab068545e130eac393ceb34f2a457 | [
"MIT"
] | null | null | null | import re
import numpy as np
import pandas as pd
import matplotlib as mpl
mpl.use("pdf")
import matplotlib.pyplot as plt
from matplotlib import gridspec
from peewee import AsIs, JOIN, prefetch, SQL
from IPython import embed
from bokeh.layouts import row, column
from bokeh.plotting import figure, show, output_file
fr... | 30.856322 | 99 | 0.67778 | 716 | 5,369 | 4.924581 | 0.315642 | 0.028077 | 0.027226 | 0.018718 | 0.18633 | 0.086784 | 0.039138 | 0.039138 | 0.039138 | 0.039138 | 0 | 0.007256 | 0.178618 | 5,369 | 173 | 100 | 31.034682 | 0.792063 | 0.080462 | 0 | 0.114094 | 0 | 0 | 0.079765 | 0.009539 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107383 | 0 | 0.107383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c34e3c84ae9852ef18383b6753e4f283c886e50c | 995 | py | Python | templating-tool.py | salayatana66/vw-serving-flask | 7b91f986b0e03e9784cf481b1f8833508dc40bfb | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2020-10-01T17:31:00.000Z | 2021-05-09T12:21:41.000Z | templating-tool.py | salayatana66/vw-serving-flask | 7b91f986b0e03e9784cf481b1f8833508dc40bfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | templating-tool.py | salayatana66/vw-serving-flask | 7b91f986b0e03e9784cf481b1f8833508dc40bfb | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-10-01T17:31:01.000Z | 2020-10-02T17:48:01.000Z | """
A simple templating tool for Dockerfiles
"""
import sys
import os
import click
import jinja2
import yaml
@click.group()
def cli():
""" @Unimplemented """
pass
@cli.command()
@click.argument("template", required=True, type=str)
@click.option("-y", "--yaml_file", required=True,
help="Yaml ... | 19.509804 | 61 | 0.648241 | 133 | 995 | 4.661654 | 0.458647 | 0.064516 | 0.03871 | 0.064516 | 0.116129 | 0.116129 | 0.116129 | 0 | 0 | 0 | 0 | 0.002574 | 0.219095 | 995 | 50 | 62 | 19.9 | 0.795367 | 0.106533 | 0 | 0 | 0 | 0 | 0.073598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.035714 | 0.178571 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3508126a16d94b29f0bc62586532976da28f49d | 11,552 | py | Python | verbforms.py | wmcooper2/Clean-Code-English-Tests | a966ed40e13608a75bb618d35bf812d9229cacc3 | [
"MIT"
] | null | null | null | verbforms.py | wmcooper2/Clean-Code-English-Tests | a966ed40e13608a75bb618d35bf812d9229cacc3 | [
"MIT"
] | 1 | 2018-09-02T12:46:41.000Z | 2018-09-02T12:55:30.000Z | verbforms.py | wmcooper2/TotalEnglishAssistant | a966ed40e13608a75bb618d35bf812d9229cacc3 | [
"MIT"
] | null | null | null | """File for holding the different verb forms for all of the verbs in the Total
English book series."""
verb_forms = {
'become' :
{
'normal' : 'become',
'present' : ['become','becomes'],
'past' : 'became',
'past participle' : 'become',
'gerund' : 'becoming',
},
'be':
{
'n... | 18.814332 | 78 | 0.428497 | 912 | 11,552 | 5.426535 | 0.347588 | 0.192362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326697 | 11,552 | 613 | 79 | 18.845024 | 0.636282 | 0.00831 | 0 | 0 | 0 | 0 | 0.430742 | 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 |
c353ac7f88d4d2f15d7dbe0bb2a19e95c08d7680 | 3,222 | py | Python | app/model/causalnex.py | splunk/splunk-mltk-container-docker | 6e98e5984d99d7a3318f3e68c224d2a5163b717b | [
"Apache-2.0"
] | 20 | 2019-10-28T10:10:00.000Z | 2022-02-17T02:31:54.000Z | app/model/causalnex.py | splunk/splunk-mltk-container-docker | 6e98e5984d99d7a3318f3e68c224d2a5163b717b | [
"Apache-2.0"
] | 13 | 2019-11-22T16:00:02.000Z | 2022-01-12T10:57:08.000Z | app/model/causalnex.py | splunk/splunk-mltk-container-docker | 6e98e5984d99d7a3318f3e68c224d2a5163b717b | [
"Apache-2.0"
] | 15 | 2019-10-25T23:19:43.000Z | 2022-03-27T16:49:21.000Z | #!/usr/bin/env python
# coding: utf-8
# In[18]:
# this definition exposes all python module imports that should be available in all subsequent commands
import json
import numpy as np
import pandas as pd
from causalnex.structure import DAGRegressor
from sklearn.model_selection import cross_val_score
from sklear... | 16.272727 | 108 | 0.624146 | 461 | 3,222 | 4.232104 | 0.368764 | 0.01794 | 0.01999 | 0.025628 | 0.13429 | 0.102512 | 0.045105 | 0.045105 | 0.045105 | 0 | 0 | 0.009186 | 0.256673 | 3,222 | 197 | 109 | 16.35533 | 0.805428 | 0.338299 | 0 | 0.051724 | 0 | 0 | 0.070983 | 0.013429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.12069 | 0.017241 | 0.362069 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3545eaf7cf8c0dfbca19e2063b2250b17a5d6be | 6,500 | py | Python | Assignment1/Q4/q4.py | NavneelSinghal/COL774 | d8b473b9cd05984ef4ffe8642ce3ce5cb9a17252 | [
"MIT"
] | null | null | null | Assignment1/Q4/q4.py | NavneelSinghal/COL774 | d8b473b9cd05984ef4ffe8642ce3ce5cb9a17252 | [
"MIT"
] | null | null | null | Assignment1/Q4/q4.py | NavneelSinghal/COL774 | d8b473b9cd05984ef4ffe8642ce3ce5cb9a17252 | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation
matplotlib.use('Agg')
import math
import numpy as np
import sys
from os.path import join, isfile
import warnings
warnings.filterwarnings("ignore")
def gda(x, y):
x = x.T
y = y.T
# phi = P(y = 1)
# mu[i] = mea... | 31.400966 | 158 | 0.534923 | 1,101 | 6,500 | 3.099001 | 0.174387 | 0.043083 | 0.039566 | 0.025791 | 0.479484 | 0.360785 | 0.274912 | 0.259086 | 0.249707 | 0.236811 | 0 | 0.040782 | 0.268154 | 6,500 | 206 | 159 | 31.553398 | 0.676477 | 0.142 | 0 | 0.340909 | 0 | 0 | 0.065801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.060606 | 0 | 0.136364 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3566cc0d033b24fec07c1d00481ebc4541fed37 | 1,865 | py | Python | xknx/knxip/disconnect_request.py | Trance-Paradox/xknx | d5603361080f96aafd19c14d17fb1ff391064b3f | [
"MIT"
] | null | null | null | xknx/knxip/disconnect_request.py | Trance-Paradox/xknx | d5603361080f96aafd19c14d17fb1ff391064b3f | [
"MIT"
] | null | null | null | xknx/knxip/disconnect_request.py | Trance-Paradox/xknx | d5603361080f96aafd19c14d17fb1ff391064b3f | [
"MIT"
] | null | null | null | """
Module for Serialization and Deserialization of a KNX Disconnect Request information.
Disconnect requests are used to disconnect a tunnel from a KNX/IP device.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
from xknx.exceptions import CouldNotParseKNXIP
from .body import KNXIPBody
from ... | 29.603175 | 85 | 0.657909 | 214 | 1,865 | 5.523364 | 0.373832 | 0.088832 | 0.111675 | 0.087986 | 0.038917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007857 | 0.24933 | 1,865 | 62 | 86 | 30.080645 | 0.836429 | 0.221448 | 0 | 0.054054 | 0 | 0 | 0.10828 | 0.069356 | 0 | 0 | 0.002831 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.189189 | 0 | 0.486486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3591dd7e4fa04185bef35a749e2e0b73d499945 | 837 | py | Python | pocs/tests/test_state_machine.py | zacharyt20/POCS | 8f785eaf27178be7d72106cb82e5400a8b852ba8 | [
"MIT"
] | 1 | 2019-07-19T10:37:08.000Z | 2019-07-19T10:37:08.000Z | pocs/tests/test_state_machine.py | zacharyt20/POCS | 8f785eaf27178be7d72106cb82e5400a8b852ba8 | [
"MIT"
] | null | null | null | pocs/tests/test_state_machine.py | zacharyt20/POCS | 8f785eaf27178be7d72106cb82e5400a8b852ba8 | [
"MIT"
] | null | null | null | import os
import pytest
import yaml
from pocs.core import POCS
from pocs.observatory import Observatory
from pocs.utils import error
@pytest.fixture
def observatory():
observatory = Observatory(simulator=['all'])
yield observatory
def test_bad_state_machine_file():
with pytest.raises(error.InvalidConf... | 22.026316 | 60 | 0.746714 | 116 | 837 | 5.12931 | 0.344828 | 0.134454 | 0.087395 | 0.090756 | 0.243697 | 0.243697 | 0.243697 | 0.157983 | 0 | 0 | 0 | 0 | 0.16129 | 837 | 37 | 61 | 22.621622 | 0.847578 | 0 | 0 | 0.083333 | 0 | 0 | 0.011947 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3592d71715ada6f67b45406f9503a1122617882 | 7,033 | py | Python | code/BacDup/scripts/gff_parser.py | JFsanchezherrero/TFM_UOC_AMoya | 74d860d90240d96d800031ff449e21e09bad826c | [
"Unlicense"
] | 2 | 2021-03-05T10:20:10.000Z | 2021-12-21T10:50:21.000Z | code/BacDup/scripts/gff_parser.py | JFsanchezherrero/TFM_UOC_AMoya | 74d860d90240d96d800031ff449e21e09bad826c | [
"Unlicense"
] | 7 | 2021-03-03T14:27:50.000Z | 2021-07-21T09:38:27.000Z | code/BacDup/scripts/gff_parser.py | JFsanchezherrero/TFM_UOC_AMoya | 74d860d90240d96d800031ff449e21e09bad826c | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
##############################################################
## Jose F. Sanchez & Alba Moya ##
## Copyright (C) 2020-2021 ##
##############################################################
'''
Created on 28 oct. 2020
@author: alba
Mo... | 35.882653 | 173 | 0.515854 | 754 | 7,033 | 4.623342 | 0.293103 | 0.02008 | 0.017212 | 0.034423 | 0.264487 | 0.21027 | 0.135112 | 0.135112 | 0.070568 | 0.04934 | 0 | 0.006399 | 0.333428 | 7,033 | 195 | 174 | 36.066667 | 0.737201 | 0.227215 | 0 | 0.097826 | 0 | 0 | 0.064718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.097826 | 0 | 0.152174 | 0.141304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c35a27ffefb517296b644e56550ee85f278c4beb | 4,742 | py | Python | conans/test/functional/old/short_paths_test.py | Manu343726/conan | fe322a672307d29f99d2e7bc1c02c45c835028d7 | [
"MIT"
] | null | null | null | conans/test/functional/old/short_paths_test.py | Manu343726/conan | fe322a672307d29f99d2e7bc1c02c45c835028d7 | [
"MIT"
] | 1 | 2020-04-18T10:13:37.000Z | 2020-04-18T10:16:37.000Z | conans/test/functional/old/short_paths_test.py | alacasta/conan | 643a9c84fe6dc0cb2f9fcbfc9dc5bd2e789c690e | [
"MIT"
] | 1 | 2018-09-03T05:04:23.000Z | 2018-09-03T05:04:23.000Z | import os
import platform
import unittest
from conans.model.ref import ConanFileReference
from conans.test.utils.tools import NO_SETTINGS_PACKAGE_ID, TestClient
class ShortPathsTest(unittest.TestCase):
@unittest.skipUnless(platform.system() == "Windows", "Requires Windows")
def inconsistent_cache_test(self)... | 41.234783 | 97 | 0.633066 | 567 | 4,742 | 5.181658 | 0.165785 | 0.052076 | 0.057522 | 0.044248 | 0.709326 | 0.6855 | 0.623894 | 0.56501 | 0.494554 | 0.485364 | 0 | 0.007638 | 0.226908 | 4,742 | 114 | 98 | 41.596491 | 0.793781 | 0.029102 | 0 | 0.536842 | 0 | 0 | 0.422266 | 0.117417 | 0 | 0 | 0 | 0 | 0.242105 | 1 | 0.021053 | false | 0 | 0.094737 | 0 | 0.126316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c35c6a6a052a8839d6a0e36986573f0ad73f479f | 3,719 | py | Python | tests/integration/frameworks/test_detectron2_impl.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 1 | 2021-06-12T17:04:07.000Z | 2021-06-12T17:04:07.000Z | tests/integration/frameworks/test_detectron2_impl.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 4 | 2021-05-16T08:06:25.000Z | 2021-11-13T08:46:36.000Z | tests/integration/frameworks/test_detectron2_impl.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | null | null | null | import typing as t
from typing import TYPE_CHECKING
import numpy as np
import torch
import pytest
import imageio
from detectron2 import model_zoo
from detectron2.data import transforms as T
from detectron2.config import get_cfg
from detectron2.modeling import build_model
import bentoml
if TYPE_CHECKING:
from det... | 30.483607 | 85 | 0.705835 | 508 | 3,719 | 4.948819 | 0.277559 | 0.022275 | 0.01432 | 0.025855 | 0.140016 | 0.107399 | 0.091488 | 0.091488 | 0.072395 | 0.072395 | 0 | 0.012326 | 0.171014 | 3,719 | 121 | 86 | 30.735537 | 0.803114 | 0.019898 | 0 | 0.022222 | 0 | 0 | 0.115998 | 0.031886 | 0 | 0 | 0 | 0 | 0.077778 | 1 | 0.077778 | false | 0 | 0.155556 | 0.011111 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c35eb72d85ca1063b3957ca321301a14a1c4baba | 3,847 | py | Python | ZIP-v0.01/Serial_to_MQTT.py | JittoThomas/IOT | 994fa25087d14e33c2d82b9c9d526f65823b6fa8 | [
"MIT"
] | null | null | null | ZIP-v0.01/Serial_to_MQTT.py | JittoThomas/IOT | 994fa25087d14e33c2d82b9c9d526f65823b6fa8 | [
"MIT"
] | null | null | null | ZIP-v0.01/Serial_to_MQTT.py | JittoThomas/IOT | 994fa25087d14e33c2d82b9c9d526f65823b6fa8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import cayenne.client, datetime, time, serial
# import random
#Delay Start
#print "Time now = ", datetime.datetime.now().strftime("%H-%M-%S")
#time.sleep(60)
#print "Starting now = ", datetime.datetime.now().strftime("%H-%M-%S")
# Cayenne authentication info. This should be obtained from the Cay... | 31.276423 | 114 | 0.641539 | 518 | 3,847 | 4.706564 | 0.361004 | 0.044299 | 0.063987 | 0.068909 | 0.495078 | 0.472108 | 0.302297 | 0.271124 | 0.037736 | 0.037736 | 0 | 0.042876 | 0.230049 | 3,847 | 122 | 115 | 31.532787 | 0.780216 | 0.339745 | 0 | 0.333333 | 0 | 0 | 0.169053 | 0.044551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0.027778 | 0.013889 | 0 | 0.027778 | 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 |
c35efbe149c76dcc538b4f5467731ccd578e9db2 | 1,841 | py | Python | test/test_slimta_queue_proxy.py | nanojob/python-slimta | 70b9c633756a56afaf1fdd53c5ead6d0001036e7 | [
"MIT"
] | 141 | 2015-01-24T23:59:18.000Z | 2022-01-30T16:36:37.000Z | test/test_slimta_queue_proxy.py | nanojob/python-slimta | 70b9c633756a56afaf1fdd53c5ead6d0001036e7 | [
"MIT"
] | 106 | 2015-01-13T22:49:07.000Z | 2021-02-17T15:14:11.000Z | test/test_slimta_queue_proxy.py | nanojob/python-slimta | 70b9c633756a56afaf1fdd53c5ead6d0001036e7 | [
"MIT"
] | 43 | 2015-07-29T14:55:09.000Z | 2021-09-24T22:30:38.000Z |
import unittest
from mox3.mox import MoxTestBase, IsA
from slimta.queue.proxy import ProxyQueue
from slimta.smtp.reply import Reply
from slimta.relay import Relay, TransientRelayError, PermanentRelayError
from slimta.envelope import Envelope
class TestProxyQueue(MoxTestBase, unittest.TestCase):
def setUp(self)... | 29.693548 | 72 | 0.634438 | 240 | 1,841 | 4.804167 | 0.304167 | 0.070252 | 0.083261 | 0.088465 | 0.418907 | 0.418907 | 0.377277 | 0.377277 | 0.342585 | 0.342585 | 0 | 0.019068 | 0.230853 | 1,841 | 61 | 73 | 30.180328 | 0.795198 | 0.017925 | 0 | 0.425532 | 0 | 0 | 0.040443 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 1 | 0.148936 | false | 0 | 0.12766 | 0 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3601f9d19e300648c3ba875a58c68aa35eadc52 | 1,912 | py | Python | tests/potential/EamPotential/Al__born_exp_fs/test____init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | tests/potential/EamPotential/Al__born_exp_fs/test____init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | tests/potential/EamPotential/Al__born_exp_fs/test____init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | import pytest
from pypospack.potential import EamPotential
symbols = ['Al']
func_pair_name = "bornmayer"
func_density_name = "eam_dens_exp"
func_embedding_name = "fs"
expected_parameter_names_pair_potential = []
expected_parameter_names_density_function = []
expected_parameter_names_embedding_function = []
expected_... | 30.83871 | 72 | 0.684623 | 254 | 1,912 | 4.708661 | 0.224409 | 0.128763 | 0.075251 | 0.040134 | 0.287625 | 0.26087 | 0.175585 | 0.175585 | 0.175585 | 0.175585 | 0 | 0.007157 | 0.19613 | 1,912 | 61 | 73 | 31.344262 | 0.770982 | 0.008368 | 0 | 0.166667 | 0 | 0 | 0.144667 | 0.011616 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.020833 | false | 0 | 0.041667 | 0 | 0.0625 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3636918f6e548937ced74b698a4a4c3213be188 | 4,008 | py | Python | setup.py | Lcvette/qtpyvcp | 4143a4a4e1f557f7d0c8998c886b4a254f0be60b | [
"BSD-3-Clause-LBNL",
"MIT"
] | 71 | 2018-12-13T20:31:18.000Z | 2022-03-26T08:44:22.000Z | setup.py | Lcvette/qtpyvcp | 4143a4a4e1f557f7d0c8998c886b4a254f0be60b | [
"BSD-3-Clause-LBNL",
"MIT"
] | 78 | 2019-01-10T18:16:33.000Z | 2022-03-18T19:30:49.000Z | setup.py | Lcvette/qtpyvcp | 4143a4a4e1f557f7d0c8998c886b4a254f0be60b | [
"BSD-3-Clause-LBNL",
"MIT"
] | 38 | 2018-10-10T19:02:26.000Z | 2022-01-30T04:38:14.000Z | import os
import versioneer
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
if os.getenv('DEB_BUILD') == 'true' or os.getenv('USER') == 'root':
"/usr/share/doc/linuxcnc/examples/sample-configs/sim"
# list of (destination, source_file) tuples
... | 31.809524 | 87 | 0.611776 | 461 | 4,008 | 5.143167 | 0.375271 | 0.04555 | 0.035428 | 0.038802 | 0.374947 | 0.356811 | 0.160692 | 0.160692 | 0.055251 | 0.039646 | 0 | 0.013311 | 0.25025 | 4,008 | 125 | 88 | 32.064 | 0.775707 | 0.05514 | 0 | 0.09 | 0 | 0.01 | 0.437004 | 0.231869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0.01 | 0.03 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c363cccc0f9ae4f989abcc27c186813cc42c4212 | 4,366 | py | Python | hidparser/UsagePage.py | NZSmartie/PyHIDParser | a2758929c82a4316a665a779b9a391740103b318 | [
"MIT"
] | 22 | 2016-04-28T10:29:11.000Z | 2022-02-02T17:30:08.000Z | hidparser/UsagePage.py | NZSmartie/PyHIDParser | a2758929c82a4316a665a779b9a391740103b318 | [
"MIT"
] | 12 | 2016-04-24T03:29:00.000Z | 2018-11-26T22:34:37.000Z | hidparser/UsagePage.py | NZSmartie/PyHIDParser | a2758929c82a4316a665a779b9a391740103b318 | [
"MIT"
] | 5 | 2017-02-21T13:01:25.000Z | 2021-10-04T07:13:53.000Z | from enum import Enum as _Enum
class UsageType(_Enum):
CONTROL_LINEAR = ()
CONTROL_ON_OFF = ()
CONTROL_MOMENTARY = ()
CONTROL_ONE_SHOT = ()
CONTROL_RE_TRIGGER = ()
DATA_SELECTOR = ()
DATA_STATIC_VALUE = ()
DATA_STATIC_FLAG = ()
DATA_DYNAMIC_VALUE = ()
DATA_DYNAMIC_FLAG = ()
... | 35.209677 | 136 | 0.633074 | 496 | 4,366 | 5.21371 | 0.215726 | 0.066125 | 0.030162 | 0.023202 | 0.12529 | 0.092807 | 0.069606 | 0.044857 | 0.044857 | 0.044857 | 0 | 0.006059 | 0.281722 | 4,366 | 123 | 137 | 35.495935 | 0.818559 | 0.021301 | 0 | 0.085714 | 0 | 0 | 0.062295 | 0 | 0 | 0 | 0.012646 | 0 | 0 | 1 | 0.104762 | false | 0 | 0.009524 | 0.028571 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3645b451a58c6438e6127bf646d7ebd0d06fa74 | 1,505 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | from reportlab.lib.pagesizes import A4
from reportlab.lib.units import cm
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.platypus import BaseDocTemplate, Frame, PageTemplate, Paragraph
class LegalDoc:
def __init__(self, path):
self.path = path
styles = getSampleStyleSheet()
... | 35 | 108 | 0.639203 | 188 | 1,505 | 5.047872 | 0.388298 | 0.054795 | 0.05058 | 0.052687 | 0.236038 | 0.145416 | 0.145416 | 0.145416 | 0.145416 | 0 | 0 | 0.011424 | 0.243854 | 1,505 | 42 | 109 | 35.833333 | 0.822496 | 0 | 0 | 0.125 | 0 | 0 | 0.10897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 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 |
c3681201a4fff8ff597af63f6abe3f4d4fb7b0ce | 5,627 | py | Python | tests/outcome/test_outcome_models.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 6 | 2018-01-25T13:49:24.000Z | 2020-03-07T16:25:09.000Z | tests/outcome/test_outcome_models.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 369 | 2018-01-17T15:22:18.000Z | 2022-03-10T19:14:56.000Z | tests/outcome/test_outcome_models.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 3 | 2018-04-11T14:18:37.000Z | 2018-10-31T19:09:48.000Z | from datetime import datetime
import uuid
from sqlalchemy.exc import IntegrityError
from dataservice.api.study.models import Study
from dataservice.api.participant.models import Participant
from dataservice.api.outcome.models import Outcome
from dataservice.extensions import db
from tests.utils import FlaskTestCase
... | 30.252688 | 72 | 0.594633 | 656 | 5,627 | 4.942073 | 0.204268 | 0.05768 | 0.044109 | 0.043183 | 0.383097 | 0.326033 | 0.253856 | 0.211906 | 0.185071 | 0.185071 | 0 | 0.010116 | 0.297317 | 5,627 | 185 | 73 | 30.416216 | 0.809813 | 0.163142 | 0 | 0.359223 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 1 | 0.087379 | false | 0 | 0.07767 | 0 | 0.184466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36a8c07a26ce0690e0700b966816f0b550bb368 | 1,568 | py | Python | src/service/eda_service.py | LiuYuWei/service-data-eda-analysis | 7dcbf205a0a3715cf3d199356bd1814b8d47b52d | [
"Apache-2.0"
] | null | null | null | src/service/eda_service.py | LiuYuWei/service-data-eda-analysis | 7dcbf205a0a3715cf3d199356bd1814b8d47b52d | [
"Apache-2.0"
] | null | null | null | src/service/eda_service.py | LiuYuWei/service-data-eda-analysis | 7dcbf205a0a3715cf3d199356bd1814b8d47b52d | [
"Apache-2.0"
] | null | null | null | """Confusion matrix calculation service."""
# coding=utf-8
# import relation package.
from pandas_profiling import ProfileReport
import pandas as pd
import datetime
import json
# import project package.
from config.config_setting import ConfigSetting
class EdaService:
"""Confusion matrix calculation service."""
... | 32.666667 | 88 | 0.655612 | 193 | 1,568 | 5.098446 | 0.398964 | 0.035569 | 0.044715 | 0.067073 | 0.044715 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000829 | 0.230867 | 1,568 | 47 | 89 | 33.361702 | 0.815091 | 0.105867 | 0 | 0.117647 | 0 | 0 | 0.132948 | 0.031792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36b30969b08b61066b6a7a3898735992cd717ad | 1,385 | py | Python | google/cloud/bigquery_v2/types/__init__.py | KoffieLabs/python-bigquery | 33b317abdc6d69f33722cb0504bb0b78c1c80e30 | [
"Apache-2.0"
] | null | null | null | google/cloud/bigquery_v2/types/__init__.py | KoffieLabs/python-bigquery | 33b317abdc6d69f33722cb0504bb0b78c1c80e30 | [
"Apache-2.0"
] | null | null | null | google/cloud/bigquery_v2/types/__init__.py | KoffieLabs/python-bigquery | 33b317abdc6d69f33722cb0504bb0b78c1c80e30 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 25.181818 | 74 | 0.724188 | 139 | 1,385 | 7.158273 | 0.633094 | 0.060302 | 0.026131 | 0.032161 | 0.180905 | 0.180905 | 0 | 0 | 0 | 0 | 0 | 0.008036 | 0.191336 | 1,385 | 54 | 75 | 25.648148 | 0.880357 | 0.41083 | 0 | 0 | 0 | 0 | 0.27125 | 0.055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36b323dde6e6584446ed2e96c3983eea6ffe2a3 | 4,365 | py | Python | blurr/core/store.py | ddrightnow/blurr | a8745101d4a8a85ccf1efc608dba8486d3cebb49 | [
"Apache-2.0"
] | null | null | null | blurr/core/store.py | ddrightnow/blurr | a8745101d4a8a85ccf1efc608dba8486d3cebb49 | [
"Apache-2.0"
] | 7 | 2019-12-16T20:58:29.000Z | 2022-02-09T23:57:32.000Z | blurr/core/store.py | ddrightnow/blurr | a8745101d4a8a85ccf1efc608dba8486d3cebb49 | [
"Apache-2.0"
] | null | null | null | from abc import abstractmethod, ABC
from datetime import datetime, timezone
from typing import Any, List, Tuple, Dict
from blurr.core.base import BaseSchema
from blurr.core.store_key import Key, KeyType
class StoreSchema(BaseSchema):
pass
class Store(ABC):
""" Base Store that allows for data to be persiste... | 33.837209 | 100 | 0.595647 | 545 | 4,365 | 4.651376 | 0.216514 | 0.035897 | 0.028402 | 0.035503 | 0.319132 | 0.224852 | 0.204339 | 0.204339 | 0.204339 | 0.204339 | 0 | 0.002691 | 0.3189 | 4,365 | 128 | 101 | 34.101563 | 0.849983 | 0.254296 | 0 | 0.402985 | 0 | 0 | 0.013136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0.014925 | 0.074627 | 0.014925 | 0.358209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36b874a06452316ba72dfbbdea4c8d952355b51 | 1,411 | py | Python | seamless/core/cache/tempref.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | seamless/core/cache/tempref.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | seamless/core/cache/tempref.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | import time, copy
import asyncio
class TempRefManager:
def __init__(self):
self.refs = []
self.running = False
def add_ref(self, ref, lifetime, on_shutdown):
expiry_time = time.time() + lifetime
self.refs.append((ref, expiry_time, on_shutdown))
def purge_all(self):
... | 26.12963 | 57 | 0.546421 | 156 | 1,411 | 4.826923 | 0.448718 | 0.063745 | 0.042497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.362155 | 1,411 | 54 | 58 | 26.12963 | 0.831111 | 0.076541 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.023256 | 0.116279 | 0 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36b9227e1e39aa4000c6b92c3dbf8f27a5ea7f5 | 8,775 | py | Python | lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 3 | 2021-08-16T00:21:08.000Z | 2022-02-23T19:19:36.000Z | ###############################################################################
# Name: choicedlg.py #
# Purpose: Generic Choice Dialog #
# Author: Cody Precord <cprecord@editra.org> #
... | 30.574913 | 79 | 0.509972 | 867 | 8,775 | 5.009227 | 0.204152 | 0.058255 | 0.008059 | 0.027631 | 0.330877 | 0.302556 | 0.240617 | 0.240617 | 0.22542 | 0.174764 | 0 | 0.015036 | 0.32547 | 8,775 | 286 | 80 | 30.681818 | 0.718702 | 0.247863 | 0 | 0.274074 | 0 | 0 | 0.021251 | 0.003542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140741 | false | 0 | 0.007407 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36e4faa6f3051be3ca85cd0b16d04294152aa32 | 3,748 | py | Python | check_digit_calc.py | zhoffm/Check-Digit-Calculator | 5f86304901279678c74858811a452866785bd8f4 | [
"MIT"
] | 1 | 2019-08-29T13:07:08.000Z | 2019-08-29T13:07:08.000Z | check_digit_calc.py | zhoffm/Check-Digit-Calculator | 5f86304901279678c74858811a452866785bd8f4 | [
"MIT"
] | null | null | null | check_digit_calc.py | zhoffm/Check-Digit-Calculator | 5f86304901279678c74858811a452866785bd8f4 | [
"MIT"
] | null | null | null | from random import randint
import pandas as pd
def random_11_digit_upc():
upc_string = ''.join(["%s" % randint(0, 9) for num in range(0, 11)])
print(upc_string)
return upc_string
# Class to calculate the check digit for 11 digit UPC's
class CheckDigitCalculations:
def __init__(self):
self.i... | 32.591304 | 109 | 0.627535 | 552 | 3,748 | 3.987319 | 0.233696 | 0.08587 | 0.068151 | 0.030895 | 0.273058 | 0.217628 | 0.121763 | 0.121763 | 0.089959 | 0.089959 | 0 | 0.018791 | 0.27588 | 3,748 | 114 | 110 | 32.877193 | 0.79182 | 0.127801 | 0 | 0.104651 | 0 | 0 | 0.023919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174419 | false | 0 | 0.023256 | 0 | 0.290698 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c36ea7dbd20120b593de7ef575a4b4b1a54e3de9 | 4,976 | py | Python | test/test_load.py | ramsdalesteve/forest | 12cac1b3dd93c4475a8a4f696c522576b44f16eb | [
"BSD-3-Clause"
] | null | null | null | test/test_load.py | ramsdalesteve/forest | 12cac1b3dd93c4475a8a4f696c522576b44f16eb | [
"BSD-3-Clause"
] | null | null | null | test/test_load.py | ramsdalesteve/forest | 12cac1b3dd93c4475a8a4f696c522576b44f16eb | [
"BSD-3-Clause"
] | null | null | null | import yaml
import forest
from forest import main
def test_earth_networks_loader_given_pattern():
loader = forest.Loader.from_pattern("Label", "EarthNetworks*.txt", "earth_networks")
assert isinstance(loader, forest.earth_networks.Loader)
def test_build_loader_given_files():
"""replicate main.py as clos... | 32.103226 | 88 | 0.696744 | 631 | 4,976 | 5.201268 | 0.134707 | 0.036258 | 0.038391 | 0.032907 | 0.683729 | 0.557282 | 0.419561 | 0.378123 | 0.329982 | 0.241621 | 0 | 0.008832 | 0.180868 | 4,976 | 154 | 89 | 32.311688 | 0.796369 | 0.015474 | 0 | 0.348214 | 0 | 0 | 0.125614 | 0.009002 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.169643 | false | 0.008929 | 0.026786 | 0 | 0.196429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3700515c9a1fa4d06df6da6a4d88cc145398124 | 481 | py | Python | tournaments/binarySearch/binarySearch.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 5 | 2020-02-06T09:51:22.000Z | 2021-03-19T00:18:44.000Z | tournaments/binarySearch/binarySearch.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | null | null | null | tournaments/binarySearch/binarySearch.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 3 | 2019-09-27T13:06:21.000Z | 2021-04-20T23:13:17.000Z | def binarySearch(inputArray, searchElement):
minIndex = -1
maxIndex = len(inputArray)
while minIndex < maxIndex - 1:
currentIndex = (minIndex + maxIndex) // 2
currentElement = inputArray[currentIndex]
if currentElement < searchElement:
minIndex = currentIndex
... | 26.722222 | 76 | 0.634096 | 40 | 481 | 7.625 | 0.4 | 0.137705 | 0.137705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.29106 | 481 | 17 | 77 | 28.294118 | 0.882698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3704e5ac8ab23d0d2914d6aa73d29d45471acf6 | 4,309 | py | Python | swagger_server/models/rule.py | Capping-WAR/API | 981823732f2b4f8bc007da657d5195579eb7dad3 | [
"MIT"
] | null | null | null | swagger_server/models/rule.py | Capping-WAR/API | 981823732f2b4f8bc007da657d5195579eb7dad3 | [
"MIT"
] | 2 | 2019-09-24T23:45:34.000Z | 2019-10-11T20:06:54.000Z | swagger_server/models/rule.py | Capping-WAR/API | 981823732f2b4f8bc007da657d5195579eb7dad3 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class Rule(Model):
"""NOTE: This class is auto generated by the swagger code g... | 27.44586 | 120 | 0.589464 | 550 | 4,309 | 4.485455 | 0.161818 | 0.08107 | 0.085124 | 0.022294 | 0.517227 | 0.453182 | 0.426834 | 0.234293 | 0.234293 | 0.182408 | 0 | 0.019904 | 0.323741 | 4,309 | 156 | 121 | 27.621795 | 0.826699 | 0.414481 | 0 | 0.214286 | 0 | 0 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.089286 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c371765c42e0c448d7d486fc65c3f350acc4e5ed | 864 | py | Python | Project1/mazes/gen_sparses.py | VFerrari/MC906 | b04d3df58ef56203882fc59c03874f92c0d223fe | [
"MIT"
] | null | null | null | Project1/mazes/gen_sparses.py | VFerrari/MC906 | b04d3df58ef56203882fc59c03874f92c0d223fe | [
"MIT"
] | null | null | null | Project1/mazes/gen_sparses.py | VFerrari/MC906 | b04d3df58ef56203882fc59c03874f92c0d223fe | [
"MIT"
] | null | null | null | import os
import re
import numpy as np
# WARNING: this function overrides the mazes in sparse directory; don't run it
# as the idea is that everyone test the same mazes
def gen_sparses(dir_path):
''' Randomly remove points from dense instances '''
pattern = re.compile('^([0-9]+[a-zA-Z]+)')
denses_fn = [x for x... | 34.56 | 102 | 0.605324 | 136 | 864 | 3.757353 | 0.529412 | 0.054795 | 0.046967 | 0.043053 | 0.066536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021148 | 0.233796 | 864 | 25 | 103 | 34.56 | 0.750755 | 0.197917 | 0 | 0 | 0 | 0 | 0.069971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.266667 | 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 |
c3718e6eac42b785991cffcfe402fff63a2a5da0 | 1,592 | py | Python | cryomem/cmtools/lib/jjivarray2.py | bebaek/cryomem | 088fba2568d10451adda51a068c15c8c2a73d9ce | [
"MIT"
] | 1 | 2018-09-16T12:29:04.000Z | 2018-09-16T12:29:04.000Z | cryomem/cmtools/lib/jjivarray2.py | bebaek/cryomem | 088fba2568d10451adda51a068c15c8c2a73d9ce | [
"MIT"
] | null | null | null | cryomem/cmtools/lib/jjivarray2.py | bebaek/cryomem | 088fba2568d10451adda51a068c15c8c2a73d9ce | [
"MIT"
] | null | null | null | """
Analyze JJ IV curve array (core) v.2
BB, 2016
"""
import numpy as np
from . import jjiv2 as jjiv
import sys
def fit2rsj_arr(iarr, varr, **kwargs):
"""Fit IV array to 2 Ic RSJ model and return arrays of fit params, error.
Keyword arguments:
guess: array of (Ic+, Ic-, Rn, Vo)
io: fixed Io.
upd... | 28.945455 | 78 | 0.478643 | 208 | 1,592 | 3.629808 | 0.432692 | 0.072848 | 0.027815 | 0.039735 | 0.02649 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0.024666 | 0.388819 | 1,592 | 54 | 79 | 29.481481 | 0.751285 | 0.172739 | 0 | 0.09375 | 0 | 0 | 0.061767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.15625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c372b444a020f4105b4dff97edb032deea88f217 | 567 | py | Python | python/0122.py | garywei944/LeetCode | 77453b6e3329f3309ad61fe578cb7b608317ba1b | [
"MIT"
] | null | null | null | python/0122.py | garywei944/LeetCode | 77453b6e3329f3309ad61fe578cb7b608317ba1b | [
"MIT"
] | null | null | null | python/0122.py | garywei944/LeetCode | 77453b6e3329f3309ad61fe578cb7b608317ba1b | [
"MIT"
] | null | null | null | from leetcode_tester import Tester
from typing import Optional, List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
r = 0
for i in range(1, len(prices)):
if prices[i] > prices[i - 1]:
r += prices[i] - prices[i - 1]
return r
if __name__ == '__m... | 19.551724 | 50 | 0.511464 | 78 | 567 | 3.602564 | 0.448718 | 0.099644 | 0.092527 | 0.099644 | 0.106762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062331 | 0.349206 | 567 | 28 | 51 | 20.25 | 0.699187 | 0 | 0 | 0.136364 | 0 | 0 | 0.014109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37355b23d392a1bb9299b5a5621376e2bdb4e8e | 1,406 | py | Python | dataset.py | songrotek/wechat_jump_end_to_end_train | 119e8a172bf31b70da1004c88567c41d3183711a | [
"MIT"
] | 26 | 2018-01-10T12:23:54.000Z | 2018-02-24T06:31:34.000Z | dataset.py | floodsung/wechat_jump_end_to_end_train | 119e8a172bf31b70da1004c88567c41d3183711a | [
"MIT"
] | 3 | 2018-06-20T17:28:31.000Z | 2018-07-03T13:35:36.000Z | dataset.py | songrotek/wechat_jump_end_to_end_train | 119e8a172bf31b70da1004c88567c41d3183711a | [
"MIT"
] | 10 | 2018-01-11T12:42:42.000Z | 2018-03-12T04:51:35.000Z | import torch
import json
import os
from torch.utils.data import DataLoader,Dataset
import torchvision.transforms as transforms
from PIL import Image
import numpy as np
data_folder = "./dataset/images"
press_times = json.load(open("./dataset/dataset.json"))
image_roots = [os.path.join(data_folder,image_file) \
... | 30.565217 | 103 | 0.687767 | 184 | 1,406 | 5.059783 | 0.391304 | 0.053706 | 0.045113 | 0.025779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041889 | 0.201991 | 1,406 | 45 | 104 | 31.244444 | 0.787879 | 0.029161 | 0 | 0 | 0 | 0 | 0.030837 | 0.016153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.212121 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c373e158e091fc846ebe00cd19f68260787532ea | 921 | py | Python | grafana_backup/create_snapshot.py | Keimille/grafana-backup-tool | ea824c908c0b98ff934cfe3efdf90121b6edd49d | [
"MIT"
] | 515 | 2016-06-16T20:01:30.000Z | 2022-03-29T03:03:24.000Z | grafana_backup/create_snapshot.py | Keimille/grafana-backup-tool | ea824c908c0b98ff934cfe3efdf90121b6edd49d | [
"MIT"
] | 159 | 2016-12-06T03:06:58.000Z | 2022-03-17T16:10:40.000Z | grafana_backup/create_snapshot.py | Keimille/grafana-backup-tool | ea824c908c0b98ff934cfe3efdf90121b6edd49d | [
"MIT"
] | 195 | 2016-07-19T06:00:13.000Z | 2022-03-09T05:58:32.000Z | import json
from grafana_backup.dashboardApi import create_snapshot
def main(args, settings, file_path):
grafana_url = settings.get('GRAFANA_URL')
http_post_headers = settings.get('HTTP_POST_HEADERS')
verify_ssl = settings.get('VERIFY_SSL')
client_cert = settings.get('CLIENT_CERT')
debug = setting... | 35.423077 | 125 | 0.674267 | 117 | 921 | 5.136752 | 0.452991 | 0.091514 | 0.074875 | 0.0599 | 0.138103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010652 | 0.184582 | 921 | 25 | 126 | 36.84 | 0.789614 | 0 | 0 | 0 | 0 | 0 | 0.205212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37733d1ef97d9bfcb5fc78d09053dd294d1f132 | 1,928 | py | Python | examples/keras_ssd_example.py | jiayunhan/perceptron-benchmark | 39958a15e9f8bfa82938a3f81d4f216457744b22 | [
"Apache-2.0"
] | 38 | 2019-06-10T04:19:42.000Z | 2022-02-15T05:21:23.000Z | examples/keras_ssd_example.py | jiayunhan/perceptron-benchmark | 39958a15e9f8bfa82938a3f81d4f216457744b22 | [
"Apache-2.0"
] | 4 | 2019-07-30T19:00:23.000Z | 2019-09-26T01:35:05.000Z | examples/keras_ssd_example.py | jiayunhan/perceptron-benchmark | 39958a15e9f8bfa82938a3f81d4f216457744b22 | [
"Apache-2.0"
] | 10 | 2019-06-10T05:45:33.000Z | 2021-04-22T08:33:28.000Z | """ Test case for Keras """
from perceptron.zoo.ssd_300.keras_ssd300 import SSD300
from perceptron.models.detection.keras_ssd300 import KerasSSD300Model
from perceptron.utils.image import load_image
from perceptron.benchmarks.brightness import BrightnessMetric
from perceptron.utils.criteria.detection import Targ... | 41.021277 | 145 | 0.669087 | 212 | 1,928 | 6.033019 | 0.438679 | 0.076622 | 0.059421 | 0.037529 | 0.046912 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034749 | 0.193983 | 1,928 | 46 | 146 | 41.913043 | 0.788288 | 0.13278 | 0 | 0 | 0 | 0 | 0.158435 | 0.014112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.269231 | 0 | 0.269231 | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c379116efb10da15e4d433c54d3c5da28ac9b233 | 46,937 | py | Python | plasmapy/diagnostics/proton_radiography.py | MarikinPaulina/PlasmaPy | 9a9e4200981618fdfba4bd9347180b6cbe3040d7 | [
"MIT",
"BSD-2-Clause-Patent",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | plasmapy/diagnostics/proton_radiography.py | MarikinPaulina/PlasmaPy | 9a9e4200981618fdfba4bd9347180b6cbe3040d7 | [
"MIT",
"BSD-2-Clause-Patent",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | plasmapy/diagnostics/proton_radiography.py | MarikinPaulina/PlasmaPy | 9a9e4200981618fdfba4bd9347180b6cbe3040d7 | [
"MIT",
"BSD-2-Clause-Patent",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | """
Routines for the analysis of proton radiographs. These routines can be broadly
classified as either creating synthetic radiographs from prescribed fields or
methods of 'inverting' experimentally created radiographs to reconstruct the
original fields (under some set of assumptions).
"""
__all__ = [
"SyntheticPr... | 38.919569 | 90 | 0.582994 | 6,119 | 46,937 | 4.397777 | 0.142017 | 0.00929 | 0.002973 | 0.005351 | 0.248086 | 0.193794 | 0.165515 | 0.140097 | 0.129283 | 0.117763 | 0 | 0.00845 | 0.316722 | 46,937 | 1,205 | 91 | 38.951867 | 0.830626 | 0.464474 | 0 | 0.128846 | 0 | 0 | 0.100489 | 0.011044 | 0 | 0 | 0 | 0.00166 | 0.001923 | 1 | 0.038462 | false | 0 | 0.021154 | 0 | 0.086538 | 0.003846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37a40407f09301be18f33044c4803950764471c | 924 | py | Python | polyengine/switch_start.py | AkanshDivker/polyengine | f81e1ef68d92470b51888db1d0c693b6d8c6b45f | [
"MIT"
] | 5 | 2020-04-11T23:56:13.000Z | 2021-05-22T09:09:36.000Z | polyengine/switch_start.py | AkanshDivker/polyengine | f81e1ef68d92470b51888db1d0c693b6d8c6b45f | [
"MIT"
] | 4 | 2019-10-29T07:17:36.000Z | 2019-11-27T05:36:01.000Z | polyengine/switch_start.py | AkanshDivker/polyengine | f81e1ef68d92470b51888db1d0c693b6d8c6b45f | [
"MIT"
] | 2 | 2020-10-29T14:03:09.000Z | 2021-01-01T07:53:16.000Z | # switch_start.py
# Adding another switch statement
# Authors : Seoyeon Hwang
import string
import random
class Switch_Start:
def __init__(self, str):
self.string = str
def insert_switch(self, str):
#generate random variable
_LENGTH = 11
string_pool = string.asci... | 30.8 | 165 | 0.548701 | 101 | 924 | 4.871287 | 0.475248 | 0.060976 | 0.097561 | 0.089431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035427 | 0.327922 | 924 | 30 | 166 | 30.8 | 0.756844 | 0.137446 | 0 | 0 | 0 | 0 | 0.086501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37d3cf95d24a23185d3d7d87e99934db95b537d | 5,494 | py | Python | focal_mech/demo/test6.py | blasscoc/FocalMechClassifier | 8d54d5a19cea447c030ada596369e47e7f39d483 | [
"MIT"
] | 12 | 2016-05-31T04:18:13.000Z | 2021-10-09T06:45:43.000Z | focal_mech/demo/test6.py | blasscoc/FocalMechClassifier | 8d54d5a19cea447c030ada596369e47e7f39d483 | [
"MIT"
] | 2 | 2019-08-09T20:30:26.000Z | 2021-02-09T02:14:04.000Z | focal_mech/demo/test6.py | blasscoc/FocalMechClassifier | 8d54d5a19cea447c030ada596369e47e7f39d483 | [
"MIT"
] | 7 | 2016-08-06T03:13:24.000Z | 2021-09-26T14:39:41.000Z | from numpy import array, rad2deg, pi, mgrid, argmin
from matplotlib.pylab import contour
import matplotlib.pyplot as plt
import mplstereonet
from obspy.imaging.beachball import aux_plane
from focal_mech.lib.classify_mechanism import classify, translate_to_sphharm
from focal_mech.io.read_hash import read_demo, read_h... | 26.669903 | 76 | 0.67874 | 879 | 5,494 | 4.133106 | 0.166098 | 0.044591 | 0.04294 | 0.047069 | 0.658684 | 0.639692 | 0.639692 | 0.590146 | 0.590146 | 0.590146 | 0 | 0.062421 | 0.139789 | 5,494 | 205 | 77 | 26.8 | 0.706306 | 0.006371 | 0 | 0.473684 | 0 | 0 | 0.030603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075188 | 0 | 0.075188 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37d8d6e64bf2027aa73ad7627b83cab9c6c0c89 | 3,102 | py | Python | gigantumcli/changelog.py | fossabot/gigantum-cli | d8054a8741484592ef1da750dd23affadc99fb5f | [
"MIT"
] | null | null | null | gigantumcli/changelog.py | fossabot/gigantum-cli | d8054a8741484592ef1da750dd23affadc99fb5f | [
"MIT"
] | null | null | null | gigantumcli/changelog.py | fossabot/gigantum-cli | d8054a8741484592ef1da750dd23affadc99fb5f | [
"MIT"
] | null | null | null | # Copyright (c) 2017 FlashX, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | 33.717391 | 94 | 0.627982 | 407 | 3,102 | 4.727273 | 0.41769 | 0.045738 | 0.025988 | 0.016632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002687 | 0.280142 | 3,102 | 91 | 95 | 34.087912 | 0.858934 | 0.508382 | 0 | 0 | 0 | 0 | 0.149014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37ed9ece51e833849523b39409da272c30bdafb | 7,311 | py | Python | main_old/understanding_smoothing_microsoft.py | benjaminleroy/smooth_rf | de166a7e777e8a203656b194d772def9d3c8f06d | [
"MIT"
] | 3 | 2019-04-04T04:57:36.000Z | 2022-01-14T09:42:05.000Z | main_old/understanding_smoothing_microsoft.py | benjaminleroy/smooth_rf | de166a7e777e8a203656b194d772def9d3c8f06d | [
"MIT"
] | 1 | 2019-04-04T04:57:24.000Z | 2019-05-29T18:03:31.000Z | main_old/understanding_smoothing_microsoft.py | benjaminleroy/smooth_rf | de166a7e777e8a203656b194d772def9d3c8f06d | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sklearn.ensemble
import sklearn.metrics
import sklearn
import progressbar
import sklearn.model_selection
from plotnine import *
import pdb
import sys
sys.path.append("smooth_rf/")
import smooth_base
import smooth_level
# function
def aver... | 34.004651 | 91 | 0.56285 | 921 | 7,311 | 4.220413 | 0.211726 | 0.039619 | 0.054026 | 0.057628 | 0.40391 | 0.355287 | 0.305377 | 0.23257 | 0.188577 | 0.143298 | 0 | 0.018282 | 0.304199 | 7,311 | 214 | 92 | 34.163551 | 0.745823 | 0.077281 | 0 | 0.115646 | 0 | 0 | 0.162652 | 0.041748 | 0.047619 | 0 | 0 | 0 | 0 | 1 | 0.006803 | false | 0 | 0.088435 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c37ef55b28f73e2f2453409e73faf8e176864615 | 1,147 | py | Python | AER/Experiments/Metrics.py | LeBenchmark/Interspeech2021 | 2a3b424389631b317b39973291b7252bbf44a73b | [
"MIT"
] | 48 | 2021-03-25T14:00:04.000Z | 2022-03-27T17:00:00.000Z | AER/Experiments/Metrics.py | LeBenchmark/Interspeech2021 | 2a3b424389631b317b39973291b7252bbf44a73b | [
"MIT"
] | 2 | 2021-04-16T13:21:44.000Z | 2021-06-16T15:23:09.000Z | AER/Experiments/Metrics.py | LeBenchmark/Interspeech2021 | 2a3b424389631b317b39973291b7252bbf44a73b | [
"MIT"
] | 2 | 2021-07-05T13:42:23.000Z | 2021-09-01T10:24:00.000Z | import numpy as np
def CCC(y_true, y_pred):
"""
Calculate the CCC for two numpy arrays.
"""
x = y_true
y = y_pred
xMean = x.mean()
yMean = y.mean()
xyCov = (x * y).mean() - (xMean * yMean)
# xyCov = ((x-xMean) * (y-yMean)).mean()
xVar = x.var()
yVar = y.var()
return 2 * ... | 23.408163 | 59 | 0.529207 | 187 | 1,147 | 3.112299 | 0.245989 | 0.120275 | 0.061856 | 0.085911 | 0.402062 | 0.37457 | 0.33677 | 0.33677 | 0.278351 | 0.278351 | 0 | 0.019084 | 0.314734 | 1,147 | 48 | 60 | 23.895833 | 0.721374 | 0.209242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.033333 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c382207d4a3aa645831dc8af78380466763f0458 | 581 | py | Python | iotest.py | AaltoRSE/ImageNetTools | 1ed8b8c38bd14eb47fc6167bf194f327a2696bf1 | [
"BSD-3-Clause"
] | 1 | 2021-11-15T11:21:55.000Z | 2021-11-15T11:21:55.000Z | iotest.py | AaltoRSE/ImageNetTools | 1ed8b8c38bd14eb47fc6167bf194f327a2696bf1 | [
"BSD-3-Clause"
] | null | null | null | iotest.py | AaltoRSE/ImageNetTools | 1ed8b8c38bd14eb47fc6167bf194f327a2696bf1 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Sep 29, 2021
@author: thomas
'''
import ImageNetTools
import sys
import getopt
def main(argv):
try:
opts, args = getopt.getopt(argv,"hd:",["dataset="])
except getopt.GetoptError:
printHelp()
sys.exit(2)
for opt, arg in opts:
if opt in... | 22.346154 | 59 | 0.555938 | 69 | 581 | 4.681159 | 0.652174 | 0.043344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02005 | 0.313253 | 581 | 26 | 60 | 22.346154 | 0.789474 | 0.068847 | 0 | 0 | 0 | 0 | 0.185393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c3825a98b9b5079c534d11d77f64da2d82f8a541 | 1,775 | py | Python | sagas/tests/sinkers/test_results_render.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 3 | 2020-01-11T13:55:38.000Z | 2020-08-25T22:34:15.000Z | sagas/tests/sinkers/test_results_render.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | null | null | null | sagas/tests/sinkers/test_results_render.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 1 | 2021-01-01T05:21:44.000Z | 2021-01-01T05:21:44.000Z | """
$ pytest -s -v test_results_render.py
"""
import logging
import pytest
from sagas.nlu.results_render import ResultsRender
def test_descriptor():
import sagas.nlu.results_render
sagas.nlu.results_render.logger.setLevel(logging.DEBUG)
# $ str 'Rezervasyonumu onaylamak istiyorum.'
results = [{'deli... | 36.979167 | 90 | 0.450704 | 133 | 1,775 | 5.894737 | 0.458647 | 0.066327 | 0.057398 | 0.080357 | 0.181122 | 0.132653 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0.393239 | 1,775 | 47 | 91 | 37.765957 | 0.727948 | 0.046197 | 0 | 0.135135 | 0 | 0 | 0.326203 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5edde40f3283ddaa109a18bcb421a16c3e99b304 | 7,343 | py | Python | bunkai/algorithm/lbd/custom_tokenizers.py | megagonlabs/bunkai | 28ea1c891f6ee8f96269f41a0642cd6194dd04e9 | [
"Apache-2.0"
] | 149 | 2021-04-21T06:25:21.000Z | 2022-03-29T08:57:49.000Z | bunkai/algorithm/lbd/custom_tokenizers.py | megagonlabs/bunkai | 28ea1c891f6ee8f96269f41a0642cd6194dd04e9 | [
"Apache-2.0"
] | 41 | 2021-05-11T00:46:16.000Z | 2022-03-22T05:17:47.000Z | bunkai/algorithm/lbd/custom_tokenizers.py | megagonlabs/bunkai | 28ea1c891f6ee8f96269f41a0642cd6194dd04e9 | [
"Apache-2.0"
] | 5 | 2021-04-21T10:54:46.000Z | 2022-02-25T17:41:21.000Z | #!/usr/bin/env python3
import collections
import logging
import os
import typing
import unicodedata
from janome.tokenizer import Tokenizer
from transformers.file_utils import cached_path
from transformers.models.bert.tokenization_bert import BertTokenizer, WordpieceTokenizer, load_vocab
import bunkai.constant
"""
T... | 36.715 | 116 | 0.626719 | 856 | 7,343 | 5.167056 | 0.246495 | 0.027131 | 0.016279 | 0.029392 | 0.206873 | 0.131359 | 0.110785 | 0.110785 | 0.075062 | 0.052001 | 0 | 0.001131 | 0.277816 | 7,343 | 199 | 117 | 36.899497 | 0.832925 | 0.216941 | 0 | 0.114754 | 0 | 0.008197 | 0.107914 | 0.048466 | 0 | 0 | 0 | 0 | 0.008197 | 1 | 0.04918 | false | 0 | 0.07377 | 0 | 0.172131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5edf354d82c1df0367e44041106c0bf97648bea1 | 1,342 | py | Python | stats/clustering.py | KNSI-Golem/assets-generation | e366b96e0f2bba16c90816e2690b3b89fd50e514 | [
"MIT"
] | null | null | null | stats/clustering.py | KNSI-Golem/assets-generation | e366b96e0f2bba16c90816e2690b3b89fd50e514 | [
"MIT"
] | 33 | 2019-12-02T18:56:18.000Z | 2022-02-10T01:18:01.000Z | stats/clustering.py | KNSI-Golem/assets-generation | e366b96e0f2bba16c90816e2690b3b89fd50e514 | [
"MIT"
] | 2 | 2020-09-11T13:11:59.000Z | 2021-02-16T17:08:33.000Z | from sklearn.cluster import KMeans
import image_processing
import numpy as np
import some_analysis
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
from autoencoder import ConvAutoencoder
input_path = './bin'
output_shape = (32, 48)
processing_output = './processed/results_processing'
data = image_pro... | 28.553191 | 83 | 0.69076 | 193 | 1,342 | 4.595855 | 0.466321 | 0.050733 | 0.022548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039198 | 0.182563 | 1,342 | 47 | 84 | 28.553191 | 0.769371 | 0.065574 | 0 | 0 | 0 | 0 | 0.065954 | 0.052585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.21875 | 0 | 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 |
5ee0230190b385a1bf8afa9cd7f0b235b7db13a2 | 4,787 | py | Python | mocu/graphical_model/mocu/scripts/visualizetoysystem.py | exalearn/oded | e706c48d60360b041b9f1cfc64fa208d01fbb65a | [
"MIT"
] | null | null | null | mocu/graphical_model/mocu/scripts/visualizetoysystem.py | exalearn/oded | e706c48d60360b041b9f1cfc64fa208d01fbb65a | [
"MIT"
] | null | null | null | mocu/graphical_model/mocu/scripts/visualizetoysystem.py | exalearn/oded | e706c48d60360b041b9f1cfc64fa208d01fbb65a | [
"MIT"
] | null | null | null | from mocu.utils.toysystems import *
import matplotlib.pyplot as plt
import matplotlib.cm as cm
def make_rhs_full_system(a,b,k,c,lam,psi,theta):
def rhs_full_system(y,t):
C = c(a,b,k,y[0],psi,theta)
y1_dot = lam[0] * (y[0] - 1)
y2_dot = lam[1] * (y[1] - C) * (y[1] - a) * (y[1] - b)... | 29.012121 | 113 | 0.524546 | 844 | 4,787 | 2.828199 | 0.167062 | 0.053624 | 0.032258 | 0.025136 | 0.579807 | 0.486385 | 0.333054 | 0.28362 | 0.245496 | 0.20486 | 0 | 0.086735 | 0.303948 | 4,787 | 164 | 114 | 29.189024 | 0.629652 | 0.069981 | 0 | 0.294643 | 0 | 0 | 0.018456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080357 | false | 0 | 0.026786 | 0 | 0.142857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee24f1707c0b95700a49b8f88fefee14ccd1a6c | 9,053 | py | Python | sbm/stochastic_block_model.py | pmacg/pysbm | e2f6ceeb4fff903b53a4d3c05694411026a084c3 | [
"MIT"
] | 1 | 2021-09-17T12:37:34.000Z | 2021-09-17T12:37:34.000Z | sbm/stochastic_block_model.py | pmacg/pysbm | e2f6ceeb4fff903b53a4d3c05694411026a084c3 | [
"MIT"
] | null | null | null | sbm/stochastic_block_model.py | pmacg/pysbm | e2f6ceeb4fff903b53a4d3c05694411026a084c3 | [
"MIT"
] | null | null | null | """
Several methods for generating graphs from the stochastic block model.
"""
import itertools
import math
import random
import scipy.sparse
import numpy as np
def _get_num_pos_edges(c1_size, c2_size, same_cluster, self_loops, directed):
"""
Compute the number of possible edges between two clusters.
:pa... | 44.377451 | 120 | 0.68353 | 1,379 | 9,053 | 4.348078 | 0.145033 | 0.044029 | 0.027518 | 0.032688 | 0.568879 | 0.526518 | 0.482822 | 0.457138 | 0.412108 | 0.371748 | 0 | 0.00791 | 0.259914 | 9,053 | 203 | 121 | 44.596059 | 0.887015 | 0.609853 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 1 | 0.096774 | false | 0 | 0.080645 | 0 | 0.274194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee3400a48d58dbe03ad61379d1f85e22cd4df99 | 7,201 | py | Python | src/scripts/load_data.py | murphycj/agfusionweb-react | 9305aa3caa653fa74608d1ae3dd59c03a3df6294 | [
"MIT"
] | 1 | 2019-12-11T22:22:02.000Z | 2019-12-11T22:22:02.000Z | src/scripts/load_data.py | murphycj/agfusionweb-react | 9305aa3caa653fa74608d1ae3dd59c03a3df6294 | [
"MIT"
] | 15 | 2020-03-25T02:21:18.000Z | 2022-03-27T20:05:01.000Z | src/scripts/load_data.py | murphycj/agfusionweb-react | 9305aa3caa653fa74608d1ae3dd59c03a3df6294 | [
"MIT"
] | null | null | null | import pyensembl
import sys
import sqlite3
import boto3
import pickle
dynamodb = boto3.resource('dynamodb')
table_agfusion_gene_synonyms = dynamodb.Table('agfusion_gene_synonyms')
table_agfusion_genes = dynamodb.Table('agfusion_genes')
table_agfusion_sequences = dynamodb.Table('agfusion_sequences')
def add_synonym(da... | 34.956311 | 150 | 0.550618 | 768 | 7,201 | 4.96875 | 0.209635 | 0.055031 | 0.023061 | 0.049528 | 0.426625 | 0.31001 | 0.261268 | 0.235849 | 0.15435 | 0.128145 | 0 | 0.007634 | 0.326899 | 7,201 | 206 | 151 | 34.956311 | 0.779658 | 0.077212 | 0 | 0.233766 | 0 | 0.019481 | 0.14486 | 0.049593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.006494 | 0.038961 | 0 | 0.090909 | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee4affc10253568c59d31e6e7ecff29108ae1b0 | 10,118 | py | Python | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache Lice... | 37.062271 | 80 | 0.720202 | 1,226 | 10,118 | 5.74633 | 0.261011 | 0.044287 | 0.025834 | 0.013627 | 0.322072 | 0.296948 | 0.27154 | 0.209084 | 0.196026 | 0.196026 | 0 | 0.002135 | 0.213086 | 10,118 | 272 | 81 | 37.198529 | 0.882693 | 0.382289 | 0 | 0.362963 | 0 | 0 | 0.044274 | 0 | 0 | 0 | 0 | 0.003676 | 0 | 1 | 0.125926 | false | 0 | 0.103704 | 0.051852 | 0.348148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee51c2ffdafe95ae165b98a996207a8a39f4653 | 10,830 | py | Python | eureka/S5_lightcurve_fitting/s5_fit.py | evamariaa/Eureka | a3e739a528fbe85ec588bca996188765649b7778 | [
"MIT"
] | 15 | 2020-08-07T12:12:17.000Z | 2022-03-29T10:20:38.000Z | eureka/S5_lightcurve_fitting/s5_fit.py | evamariaa/Eureka | a3e739a528fbe85ec588bca996188765649b7778 | [
"MIT"
] | 159 | 2020-08-05T14:34:59.000Z | 2022-03-31T21:02:10.000Z | eureka/S5_lightcurve_fitting/s5_fit.py | evamariaa/Eureka | a3e739a528fbe85ec588bca996188765649b7778 | [
"MIT"
] | 17 | 2021-06-16T09:40:41.000Z | 2022-03-22T18:28:07.000Z | import numpy as np
import matplotlib.pyplot as plt
import glob, os, time
from ..lib import manageevent as me
from ..lib import readECF as rd
from ..lib import sort_nicely as sn
from ..lib import util, logedit
from . import parameters as p
from . import lightcurve as lc
from . import models as m
from .utils import get_t... | 44.204082 | 158 | 0.568421 | 1,330 | 10,830 | 4.52782 | 0.27594 | 0.034706 | 0.007473 | 0.009963 | 0.172202 | 0.114912 | 0.098306 | 0.075722 | 0.046496 | 0.046496 | 0 | 0.01495 | 0.326777 | 10,830 | 244 | 159 | 44.385246 | 0.811 | 0.248938 | 0 | 0.14 | 0 | 0.02 | 0.138771 | 0.018736 | 0 | 0 | 0 | 0 | 0.006667 | 1 | 0.013333 | false | 0 | 0.08 | 0.006667 | 0.113333 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee6b363eabe25c724e148a500f83b42a84aa031 | 3,022 | py | Python | initialize_app_db.py | daniel-julio-iglesias/microblog | 360198198336f0dda7d20aafeb337f59cb4a2329 | [
"MIT"
] | null | null | null | initialize_app_db.py | daniel-julio-iglesias/microblog | 360198198336f0dda7d20aafeb337f59cb4a2329 | [
"MIT"
] | null | null | null | initialize_app_db.py | daniel-julio-iglesias/microblog | 360198198336f0dda7d20aafeb337f59cb4a2329 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The next steps use just in case to recreate the already existing DB
Backup and Delete the folder "migrations"
Backup and Delete the file "app.db"
Execute the next console commands
Linux
(venv) $ export FLASK_APP=microblog.py
MS Windows
(venv) $ set FLASK_APP=microblo... | 26.982143 | 67 | 0.648246 | 431 | 3,022 | 4.431555 | 0.315545 | 0.037696 | 0.098953 | 0.131937 | 0.265969 | 0.213613 | 0.119372 | 0.119372 | 0.119372 | 0.06911 | 0 | 0.026936 | 0.213766 | 3,022 | 111 | 68 | 27.225225 | 0.776936 | 0.261085 | 0 | 0.178571 | 0 | 0 | 0.127483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.017857 | 0.071429 | 0 | 0.107143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee6e99348be1e75186fd4d95f9769f455fc8a1a | 4,328 | py | Python | gpytorch/kernels/rbf_kernel.py | techshot25/gpytorch | b4aee6f81a3428172d4914e7e0fef0e71cd1f519 | [
"MIT"
] | 1 | 2019-11-08T11:25:56.000Z | 2019-11-08T11:25:56.000Z | gpytorch/kernels/rbf_kernel.py | VonRosenchild/gpytorch | 092d523027a844939ba85d7ea8c8c7b7511843d5 | [
"MIT"
] | null | null | null | gpytorch/kernels/rbf_kernel.py | VonRosenchild/gpytorch | 092d523027a844939ba85d7ea8c8c7b7511843d5 | [
"MIT"
] | 1 | 2021-07-02T19:40:07.000Z | 2021-07-02T19:40:07.000Z | #!/usr/bin/env python3
from .kernel import Kernel
from ..functions import RBFCovariance
def postprocess_rbf(dist_mat):
return dist_mat.div_(-2).exp_()
class RBFKernel(Kernel):
r"""
Computes a covariance matrix based on the RBF (squared exponential) kernel
between inputs :math:`\mathbf{x_1}` and :ma... | 47.56044 | 115 | 0.575092 | 514 | 4,328 | 4.72179 | 0.311284 | 0.061805 | 0.053564 | 0.035023 | 0.370004 | 0.315616 | 0.272765 | 0.248043 | 0.190771 | 0.106304 | 0 | 0.017574 | 0.316312 | 4,328 | 90 | 116 | 48.088889 | 0.802636 | 0.635166 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0.037037 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee75d983cd35cd4e28ec87b90865e27b89bfd3b | 5,132 | py | Python | src/dependenpy/finder.py | gitter-badger/dependenpy | db411b7bbd466b79064cbb419049f17cd3bff4c1 | [
"ISC"
] | 10 | 2020-01-08T10:42:32.000Z | 2021-07-08T01:58:08.000Z | src/dependenpy/finder.py | gitter-badger/dependenpy | db411b7bbd466b79064cbb419049f17cd3bff4c1 | [
"ISC"
] | 2 | 2020-10-07T09:48:54.000Z | 2020-11-03T23:37:13.000Z | src/dependenpy/finder.py | gitter-badger/dependenpy | db411b7bbd466b79064cbb419049f17cd3bff4c1 | [
"ISC"
] | 1 | 2019-12-10T18:32:05.000Z | 2019-12-10T18:32:05.000Z | # -*- coding: utf-8 -*-
"""dependenpy finder module."""
from importlib.util import find_spec
from os.path import basename, exists, isdir, isfile, join, splitext
class PackageSpec(object):
"""Holder for a package specification (given as argument to DSM)."""
def __init__(self, name, path, limit_to=None):
... | 28.353591 | 79 | 0.563718 | 547 | 5,132 | 5.213894 | 0.223035 | 0.017181 | 0.01683 | 0.025245 | 0.240182 | 0.240182 | 0.230365 | 0.184783 | 0.184783 | 0.184783 | 0 | 0.001185 | 0.342362 | 5,132 | 180 | 80 | 28.511111 | 0.843852 | 0.354443 | 0 | 0.205479 | 0 | 0 | 0.013934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136986 | false | 0 | 0.027397 | 0.013699 | 0.39726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ee8d965db0dc6afc3a0712b8a012c62228c1b2d | 1,738 | py | Python | pearsonr/beta.py | rkhullar/pearsonr-pure-python | 955fbca6af0a234cf5132d5f83d36a2c411fec7a | [
"MIT"
] | null | null | null | pearsonr/beta.py | rkhullar/pearsonr-pure-python | 955fbca6af0a234cf5132d5f83d36a2c411fec7a | [
"MIT"
] | null | null | null | pearsonr/beta.py | rkhullar/pearsonr-pure-python | 955fbca6af0a234cf5132d5f83d36a2c411fec7a | [
"MIT"
] | null | null | null | import math
def contfractbeta(a: float, b: float, x: float, itmax: int = 200) -> float:
# https://malishoaib.wordpress.com/2014/04/15/the-beautiful-beta-functions-in-raw-python/
# evaluates the continued fraction form of the incomplete Beta function; incompbeta()
# code translated from: Numerical Recipes ... | 34.76 | 108 | 0.533947 | 270 | 1,738 | 3.437037 | 0.314815 | 0.012931 | 0.071121 | 0.025862 | 0.301724 | 0.301724 | 0.262931 | 0.18319 | 0.18319 | 0.18319 | 0 | 0.040102 | 0.325662 | 1,738 | 49 | 109 | 35.469388 | 0.751706 | 0.271577 | 0 | 0.057143 | 0 | 0 | 0.064388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5eeb434867ca1d9eaca8effbf5839d14aaa33835 | 33,018 | py | Python | hisim/components/generic_pv_system.py | FZJ-IEK3-VSA/HiSim | e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2 | [
"MIT"
] | 12 | 2021-10-05T11:38:24.000Z | 2022-03-25T09:56:08.000Z | hisim/components/generic_pv_system.py | FZJ-IEK3-VSA/HiSim | e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2 | [
"MIT"
] | 6 | 2021-10-06T13:27:55.000Z | 2022-03-10T12:55:15.000Z | hisim/components/generic_pv_system.py | FZJ-IEK3-VSA/HiSim | e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2 | [
"MIT"
] | 4 | 2022-02-21T19:00:50.000Z | 2022-03-22T11:01:38.000Z | # Generic/Built-in
import datetime
import math
import os
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import pvlib
from dataclasses_json import dataclass_json
from typing import Optional
from dataclasses import dataclass
from functools import lru_cache
from hisim.simulationparameters import S... | 45.168263 | 183 | 0.594009 | 3,470 | 33,018 | 5.45879 | 0.170317 | 0.022806 | 0.02439 | 0.013726 | 0.568314 | 0.521117 | 0.46579 | 0.426935 | 0.386601 | 0.354134 | 0 | 0.017703 | 0.320795 | 33,018 | 730 | 184 | 45.230137 | 0.826942 | 0.252317 | 0 | 0.313869 | 0 | 0 | 0.049698 | 0.011387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041363 | false | 0.007299 | 0.041363 | 0 | 0.148418 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5eecada079f1111eeed67c73ca6a1720da167194 | 1,541 | py | Python | pythran/tests/rosetta/greatest_subsequential_sum.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/tests/rosetta/greatest_subsequential_sum.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/tests/rosetta/greatest_subsequential_sum.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | #from http://rosettacode.org/wiki/Greatest_subsequential_sum#Python
#pythran export maxsum(int list)
#pythran export maxsumseq(int list)
#pythran export maxsumit(int list)
#runas maxsum([0, 1, 0])
#runas maxsumseq([-1, 2, -1, 3, -1])
#runas maxsumit([-1, 1, 2, -5, -6])
def maxsum(sequence):
"""Return maximum sum."... | 31.44898 | 96 | 0.580792 | 203 | 1,541 | 4.26601 | 0.26601 | 0.073903 | 0.050808 | 0.073903 | 0.318707 | 0.242494 | 0.242494 | 0.184758 | 0.184758 | 0.184758 | 0 | 0.032997 | 0.292018 | 1,541 | 48 | 97 | 32.104167 | 0.76077 | 0.268657 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.088235 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5eed202c73e618fc929047ee896a35003f968654 | 28,280 | py | Python | src/binwalk/__init__.py | dotysan/binwalk | d3b5d73538557f2a290996dcea84352fcfb6d1a1 | [
"MIT"
] | 1 | 2020-03-04T15:14:40.000Z | 2020-03-04T15:14:40.000Z | src/binwalk/__init__.py | dotysan/binwalk | d3b5d73538557f2a290996dcea84352fcfb6d1a1 | [
"MIT"
] | null | null | null | src/binwalk/__init__.py | dotysan/binwalk | d3b5d73538557f2a290996dcea84352fcfb6d1a1 | [
"MIT"
] | null | null | null | __all__ = ["Binwalk"]
import os
import re
import time
import magic
from binwalk.compat import *
from binwalk.config import *
from binwalk.update import *
from binwalk.filter import *
from binwalk.parser import *
from binwalk.plugins import *
from binwalk.plotter import *
from binwalk.hexdiff import *
from binwalk.entr... | 37.858099 | 232 | 0.701627 | 4,067 | 28,280 | 4.759774 | 0.144578 | 0.014206 | 0.005786 | 0.006251 | 0.248838 | 0.191755 | 0.159211 | 0.150377 | 0.144488 | 0.130954 | 0 | 0.005922 | 0.223762 | 28,280 | 746 | 233 | 37.908847 | 0.875911 | 0.540983 | 0 | 0.218182 | 0 | 0 | 0.019133 | 0 | 0 | 0 | 0.003458 | 0.00134 | 0 | 1 | 0.045455 | false | 0.009091 | 0.054545 | 0.00303 | 0.172727 | 0.00303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ef0d5fcfc264e4c868fb459e7c8ec1ae720744a | 6,136 | py | Python | warmmail/subscribe/tasks_send.py | sahilsakhuja/warmmail | 8a1f80d26c7a24c9aa054d869266cebd4540d7f2 | [
"MIT"
] | null | null | null | warmmail/subscribe/tasks_send.py | sahilsakhuja/warmmail | 8a1f80d26c7a24c9aa054d869266cebd4540d7f2 | [
"MIT"
] | null | null | null | warmmail/subscribe/tasks_send.py | sahilsakhuja/warmmail | 8a1f80d26c7a24c9aa054d869266cebd4540d7f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import urllib.parse
from datetime import date, datetime
from functools import partial
from urllib.parse import quote_plus
import pandas as pd
import plotly.express as px
import pytz
from csci_utils.luigi.requires import Requirement, Requires
from csci_utils.luigi.target import Target... | 32.638298 | 116 | 0.64309 | 781 | 6,136 | 4.946223 | 0.346991 | 0.016309 | 0.013979 | 0.009319 | 0.086979 | 0.069894 | 0.053844 | 0.038312 | 0.018638 | 0 | 0 | 0.005917 | 0.256356 | 6,136 | 187 | 117 | 32.812834 | 0.840675 | 0.198664 | 0 | 0.095238 | 0 | 0 | 0.066389 | 0.019563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.015873 | 0.388889 | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ef27b5395234b7acc5798e9c4c4dad901d9aba3 | 2,585 | py | Python | molo/usermetadata/tests/test_tags.py | praekelt/molo.usermetadata | 90cc0dffe55db8ece208d13d37d76956daadfa5a | [
"BSD-2-Clause"
] | null | null | null | molo/usermetadata/tests/test_tags.py | praekelt/molo.usermetadata | 90cc0dffe55db8ece208d13d37d76956daadfa5a | [
"BSD-2-Clause"
] | 14 | 2016-04-21T17:19:08.000Z | 2018-06-18T12:49:58.000Z | molo/usermetadata/tests/test_tags.py | praekeltfoundation/molo.usermetadata | 90cc0dffe55db8ece208d13d37d76956daadfa5a | [
"BSD-2-Clause"
] | null | null | null | import pytest
from django.test import TestCase, Client
from django.core.urlresolvers import reverse
from molo.core.tests.base import MoloTestCaseMixin
from molo.core.models import Main, SiteLanguageRelation, Languages
from molo.usermetadata.models import PersonaIndexPage, PersonaPage
from wagtail.wagtailcore.models i... | 34.013158 | 75 | 0.659574 | 281 | 2,585 | 5.939502 | 0.302491 | 0.053925 | 0.064709 | 0.075494 | 0.309167 | 0.309167 | 0.309167 | 0.309167 | 0.309167 | 0.309167 | 0 | 0 | 0.21354 | 2,585 | 75 | 76 | 34.466667 | 0.820954 | 0.001934 | 0 | 0.222222 | 0 | 0 | 0.119472 | 0.058573 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.055556 | false | 0 | 0.148148 | 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 |
5ef2f8f0dbedcc720d930427f98c729897cff0e0 | 780 | py | Python | server/dao/messageDao.py | ZibingZhang/Level-Up | e936eef7fc4f17e8bb392f98c7dff37dfad9d47b | [
"MIT"
] | null | null | null | server/dao/messageDao.py | ZibingZhang/Level-Up | e936eef7fc4f17e8bb392f98c7dff37dfad9d47b | [
"MIT"
] | 1 | 2020-01-23T19:22:06.000Z | 2020-01-23T19:23:47.000Z | server/dao/messageDao.py | ZibingZhang/Level-Up | e936eef7fc4f17e8bb392f98c7dff37dfad9d47b | [
"MIT"
] | null | null | null | from constants import cursor
def add_message(player_name, message):
cursor.execute(
"INSERT INTO levelup.messages ("
"SENDER, MESSAGE"
") VALUES ("
"%s, %s"
")", (player_name, message)
)
def reset():
cursor.execute(
"DELETE FROM levelup.messages"
... | 21.081081 | 83 | 0.603846 | 94 | 780 | 4.904255 | 0.457447 | 0.140998 | 0.123644 | 0.091106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007181 | 0.285897 | 780 | 36 | 84 | 21.666667 | 0.820467 | 0 | 0 | 0.178571 | 0 | 0 | 0.311538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.035714 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5ef3a63fa138240896cecf671d1c8882815b58b3 | 3,248 | py | Python | skeletrack/bbox.py | mpeven/skeletal-tracker | ddb6e7d59899c0f3f0470805006e5c5c4bcabe33 | [
"MIT"
] | null | null | null | skeletrack/bbox.py | mpeven/skeletal-tracker | ddb6e7d59899c0f3f0470805006e5c5c4bcabe33 | [
"MIT"
] | null | null | null | skeletrack/bbox.py | mpeven/skeletal-tracker | ddb6e7d59899c0f3f0470805006e5c5c4bcabe33 | [
"MIT"
] | null | null | null | import numpy as np
import shapely.geometry as geom
class Bbox:
def __init__(self, name, part_id, depth_image, xyz, box_size, projection):
if not isinstance(xyz, np.ndarray):
raise ValueError("xyz must be an np.ndarray")
self.name = name
self.id = part_id
self.center = np... | 44.493151 | 120 | 0.594828 | 493 | 3,248 | 3.713996 | 0.204868 | 0.019661 | 0.061169 | 0.019661 | 0.334244 | 0.276352 | 0.196614 | 0.154014 | 0.098307 | 0.098307 | 0 | 0.036615 | 0.243227 | 3,248 | 72 | 121 | 45.111111 | 0.708299 | 0.017857 | 0 | 0 | 0 | 0.016667 | 0.053111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.033333 | 0.083333 | 0.35 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5efb27ff2e3645c70f7c8e38f1cd5d5485dc77ac | 12,418 | py | Python | srcf/database/schema.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | null | null | null | srcf/database/schema.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 2 | 2020-08-23T17:23:28.000Z | 2021-04-01T18:32:11.000Z | srcf/database/schema.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 3 | 2021-01-12T00:06:39.000Z | 2021-09-26T23:31:15.000Z | from __future__ import print_function, unicode_literals
from binascii import unhexlify
from enum import Enum
import os
import pwd
import six
from sqlalchemy import Column, Integer, String, Boolean, DateTime, Text, Enum as SQLAEnum, Numeric
from sqlalchemy import event
from sqlalchemy.dialects.postgresql import HSTOR... | 33.836512 | 102 | 0.607988 | 1,394 | 12,418 | 5.226686 | 0.228121 | 0.030332 | 0.019215 | 0.028548 | 0.319654 | 0.264754 | 0.212462 | 0.170738 | 0.145484 | 0.145484 | 0 | 0.008322 | 0.274279 | 12,418 | 366 | 103 | 33.928962 | 0.800155 | 0.053551 | 0 | 0.266667 | 0 | 0 | 0.112902 | 0.009531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081481 | false | 0 | 0.062963 | 0.037037 | 0.474074 | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5efcf7db618c88e80670f2e44849d8f110aeefaf | 15,226 | py | Python | tests/test_grid.py | ascillitoe/pyvista | b0eb948042f208a03b9feb5784854ebb8507dae8 | [
"MIT"
] | null | null | null | tests/test_grid.py | ascillitoe/pyvista | b0eb948042f208a03b9feb5784854ebb8507dae8 | [
"MIT"
] | null | null | null | tests/test_grid.py | ascillitoe/pyvista | b0eb948042f208a03b9feb5784854ebb8507dae8 | [
"MIT"
] | 1 | 2020-03-23T15:46:56.000Z | 2020-03-23T15:46:56.000Z | import os
import numpy as np
import pytest
import vtk
import pyvista
from pyvista import examples
from pyvista.plotting import system_supports_plotting
beam = pyvista.UnstructuredGrid(examples.hexbeamfile)
# create structured grid
x = np.arange(-10, 10, 2)
y = np.arange(-10, 10, 2)
z = np.arange(-10, 10, 2)
x, y, z... | 32.67382 | 97 | 0.64843 | 2,157 | 15,226 | 4.442745 | 0.109875 | 0.083481 | 0.035584 | 0.025044 | 0.6355 | 0.549202 | 0.469164 | 0.416258 | 0.398414 | 0.384639 | 0 | 0.046176 | 0.21772 | 15,226 | 465 | 98 | 32.744086 | 0.758375 | 0.021214 | 0 | 0.418283 | 0 | 0 | 0.019683 | 0.002889 | 0 | 0 | 0 | 0 | 0.373961 | 1 | 0.099723 | false | 0 | 0.019391 | 0 | 0.119114 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5efda15abd13bae316a30c8f74303450a7d645eb | 5,767 | py | Python | Server/src/quadradiusr_server/server.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | null | null | null | Server/src/quadradiusr_server/server.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | null | null | null | Server/src/quadradiusr_server/server.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | null | null | null | import asyncio
import logging
from collections import defaultdict
from typing import Optional, List, Dict
from aiohttp import web
from aiohttp.web_runner import AppRunner, TCPSite
from quadradiusr_server.auth import Auth
from quadradiusr_server.config import ServerConfig
from quadradiusr_server.cron import Cron, Setu... | 32.767045 | 81 | 0.650945 | 663 | 5,767 | 5.514329 | 0.235294 | 0.055799 | 0.05744 | 0.018873 | 0.104486 | 0.035558 | 0.035558 | 0.035558 | 0.035558 | 0.035558 | 0 | 0.002086 | 0.251951 | 5,767 | 175 | 82 | 32.954286 | 0.845387 | 0.021675 | 0 | 0.066176 | 0 | 0 | 0.051791 | 0.017737 | 0 | 0 | 0 | 0.005714 | 0 | 1 | 0.088235 | false | 0.007353 | 0.132353 | 0 | 0.308824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5effb0c993d722db84398b9fa87c2c824fbd66c6 | 2,638 | py | Python | duck/utils/cal_ints.py | galaxycomputationalchemistry/duck | a57337afd523c99ebe4babf74c1868578c6cf1e0 | [
"Apache-2.0"
] | 1 | 2020-06-20T23:27:46.000Z | 2020-06-20T23:27:46.000Z | duck/utils/cal_ints.py | galaxycomputationalchemistry/duck | a57337afd523c99ebe4babf74c1868578c6cf1e0 | [
"Apache-2.0"
] | 4 | 2018-07-17T12:48:59.000Z | 2020-04-01T11:00:42.000Z | duck/utils/cal_ints.py | xchem/duck | b98bb78284e9c92837ac1e69fc2f06306ab1e28c | [
"Apache-2.0"
] | 3 | 2019-06-15T16:04:47.000Z | 2020-04-01T07:54:53.000Z | import json, pickle, sys, os
from parmed.geometry import distance2
from parmed.topologyobjects import Atom
import operator
import parmed
import math
def check_same(atom, chain, res_name, res_number, atom_name):
if atom.residue.name == res_name:
if atom.residue.number == res_number:
if atom.nam... | 33.392405 | 88 | 0.681956 | 409 | 2,638 | 4.112469 | 0.261614 | 0.049941 | 0.038644 | 0.03805 | 0.3478 | 0.24673 | 0.147444 | 0.147444 | 0.147444 | 0.102259 | 0 | 0.016323 | 0.210387 | 2,638 | 78 | 89 | 33.820513 | 0.791167 | 0.084913 | 0 | 0.035088 | 0 | 0 | 0.026622 | 0.008735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.105263 | 0 | 0.315789 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0325adcc4e209cb06df2012d7cf8d2933313bf | 3,983 | py | Python | run_minprop_PD.py | kztakemoto/network_propagation | 7e66aca7f179cfe982b388b20b240745b4927bf9 | [
"MIT"
] | 3 | 2021-04-24T10:58:33.000Z | 2022-03-22T10:02:33.000Z | run_minprop_PD.py | kztakemoto/network_propagation | 7e66aca7f179cfe982b388b20b240745b4927bf9 | [
"MIT"
] | null | null | null | run_minprop_PD.py | kztakemoto/network_propagation | 7e66aca7f179cfe982b388b20b240745b4927bf9 | [
"MIT"
] | 1 | 2019-11-25T06:32:13.000Z | 2019-11-25T06:32:13.000Z | import warnings
warnings.simplefilter('ignore')
import argparse
import pickle
import numpy as np
import pandas as pd
import networkx as nx
import scipy.sparse as sp
from network_propagation_methods import minprop_2
from sklearn.metrics import roc_auc_score, auc
import matplotlib.pyplot as plt
#### Parameters ########... | 38.298077 | 153 | 0.726839 | 607 | 3,983 | 4.568369 | 0.280066 | 0.070682 | 0.035341 | 0.020195 | 0.145691 | 0.094483 | 0.033898 | 0.033898 | 0.033898 | 0.033898 | 0 | 0.015434 | 0.137836 | 3,983 | 103 | 154 | 38.669903 | 0.792079 | 0.153653 | 0 | 0 | 0 | 0 | 0.11128 | 0.014024 | 0 | 0 | 0 | 0.009709 | 0 | 1 | 0 | false | 0 | 0.149254 | 0 | 0.149254 | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f043f48e4529a5b4d4237cf80295c09f14302ee | 3,720 | py | Python | kaivy/geometry/line2d.py | team-kaivy/kaivy | e27b53e8e9eedc48abc99151f3adbb76f0a9b331 | [
"MIT"
] | null | null | null | kaivy/geometry/line2d.py | team-kaivy/kaivy | e27b53e8e9eedc48abc99151f3adbb76f0a9b331 | [
"MIT"
] | null | null | null | kaivy/geometry/line2d.py | team-kaivy/kaivy | e27b53e8e9eedc48abc99151f3adbb76f0a9b331 | [
"MIT"
] | null | null | null | ########################################################################################################################
# #
# This file is part of kAIvy ... | 42.758621 | 136 | 0.491129 | 406 | 3,720 | 4.364532 | 0.285714 | 0.030474 | 0.025395 | 0.029345 | 0.199774 | 0.15237 | 0.112867 | 0.081264 | 0.081264 | 0.081264 | 0 | 0.018098 | 0.36129 | 3,720 | 86 | 137 | 43.255814 | 0.727694 | 0.335215 | 0 | 0 | 0 | 0 | 0.010582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.086957 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f050e8b2c15f5d5adcf74276ee71e811d247441 | 5,813 | py | Python | data_loader/MSVD_dataset.py | dendisuhubdy/collaborative-experts | e6db63837537c054723ce00b73264101acc29d39 | [
"MIT"
] | null | null | null | data_loader/MSVD_dataset.py | dendisuhubdy/collaborative-experts | e6db63837537c054723ce00b73264101acc29d39 | [
"MIT"
] | null | null | null | data_loader/MSVD_dataset.py | dendisuhubdy/collaborative-experts | e6db63837537c054723ce00b73264101acc29d39 | [
"MIT"
] | null | null | null | import copy
from pathlib import Path
from typing import Dict, Union, List
from collections import defaultdict
import numpy as np
from typeguard import typechecked
from zsvision.zs_utils import memcache, concat_features
from utils.util import memory_summary
from base.base_dataset import BaseDataset
class MSVD(BaseDa... | 43.059259 | 90 | 0.584724 | 659 | 5,813 | 4.92261 | 0.276176 | 0.049322 | 0.048089 | 0.027127 | 0.153822 | 0.091245 | 0.073366 | 0.045006 | 0.045006 | 0.045006 | 0 | 0.016903 | 0.307931 | 5,813 | 134 | 91 | 43.380597 | 0.789461 | 0.044039 | 0 | 0.035088 | 0 | 0 | 0.203243 | 0.076937 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.122807 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f067497faf1ec468f96a34eb789dd94adfffc2e | 2,381 | py | Python | wagtail/wagtailsearch/forms.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2021-09-21T00:06:52.000Z | 2021-09-21T00:06:52.000Z | wagtail/wagtailsearch/forms.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2021-02-24T08:25:30.000Z | 2021-02-24T08:25:30.000Z | wagtail/wagtailsearch/forms.py | balkantechnologies/BalkanCMS_core | 68625199028fc96abb175e410a4a7a92c02cb261 | [
"BSD-3-Clause"
] | 1 | 2020-11-24T10:21:24.000Z | 2020-11-24T10:21:24.000Z | from django import forms
from django.forms.models import inlineformset_factory
from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailadmin.widgets import AdminPageChooser
from wagtail.wagtailsearch import models
class QueryForm(forms.Form):
query_string = forms.CharField(label=_("Search ter... | 36.075758 | 144 | 0.673667 | 287 | 2,381 | 5.414634 | 0.428571 | 0.03861 | 0.019305 | 0.024453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003829 | 0.232255 | 2,381 | 65 | 145 | 36.630769 | 0.84628 | 0.066359 | 0 | 0 | 0 | 0 | 0.12083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.111111 | 0 | 0.355556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f069669d5a2624249034f4c529c35293422204b | 6,994 | py | Python | app/utils/docs_utils.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 2 | 2021-08-19T12:35:25.000Z | 2022-02-16T04:13:38.000Z | app/utils/docs_utils.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 46 | 2021-09-02T03:22:05.000Z | 2022-03-31T09:20:00.000Z | app/utils/docs_utils.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 1 | 2021-11-17T23:18:27.000Z | 2021-11-17T23:18:27.000Z | """
Copyright BOOSTRY Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distr... | 29.635593 | 120 | 0.601373 | 674 | 6,994 | 6.163205 | 0.29822 | 0.018536 | 0.038758 | 0.043813 | 0.236639 | 0.236639 | 0.236639 | 0.218825 | 0.218825 | 0.218825 | 0 | 0.031218 | 0.299257 | 6,994 | 235 | 121 | 29.761702 | 0.816364 | 0.132971 | 0 | 0.246988 | 0 | 0 | 0.129587 | 0.017521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066265 | false | 0 | 0.03012 | 0 | 0.355422 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f06e78625c74321a938329732209995e4f8e1f0 | 2,282 | py | Python | scripts/models/arcii.py | mogumogu2333/MatchZoo | 1182b076bf571eba4af89141b93a51598afc252c | [
"Apache-2.0"
] | null | null | null | scripts/models/arcii.py | mogumogu2333/MatchZoo | 1182b076bf571eba4af89141b93a51598afc252c | [
"Apache-2.0"
] | null | null | null | scripts/models/arcii.py | mogumogu2333/MatchZoo | 1182b076bf571eba4af89141b93a51598afc252c | [
"Apache-2.0"
] | null | null | null | import os
import sys
sys.path.insert(0, "../../")
import matchzoo as mz
import typing
import pandas as pd
import matchzoo
from matchzoo.preprocessors.units.tokenize import Tokenize, WordPieceTokenize
from matchzoo.engine.base_preprocessor import load_preprocessor
import pickle
import utils
os.environ["CUDA_VISIBLE_D... | 30.837838 | 103 | 0.765995 | 326 | 2,282 | 5.122699 | 0.368098 | 0.072455 | 0.040719 | 0.026946 | 0.111377 | 0.100599 | 0.065868 | 0.034731 | 0.034731 | 0.034731 | 0 | 0.019855 | 0.095092 | 2,282 | 73 | 104 | 31.260274 | 0.788862 | 0 | 0 | 0 | 0 | 0 | 0.128014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.169492 | 0 | 0.169492 | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0871e5f1835b667efee97ba793562fead702a2 | 1,960 | py | Python | lambda.py | deepanshu-yadav/NSFW-Classifier | ec6a98eb982ec30c2a21ca11dc92d580cc8a8981 | [
"MIT"
] | 13 | 2019-09-18T18:32:17.000Z | 2022-03-01T08:01:18.000Z | lambda.py | deepanshu-yadav/NSFW-Classifier | ec6a98eb982ec30c2a21ca11dc92d580cc8a8981 | [
"MIT"
] | null | null | null | lambda.py | deepanshu-yadav/NSFW-Classifier | ec6a98eb982ec30c2a21ca11dc92d580cc8a8981 | [
"MIT"
] | 4 | 2020-03-27T10:00:52.000Z | 2021-04-23T03:30:43.000Z | import boto3
import json
import numpy as np
import base64, os, boto3, ast, json
endpoint = 'myprojectcapstone'
def format_response(message, status_code):
return {
'statusCode': str(status_code),
'body': json.dumps(message),
'headers': {
'Content-Type': 'application/json',
... | 32.131148 | 147 | 0.514286 | 189 | 1,960 | 5.269841 | 0.486772 | 0.070281 | 0.080321 | 0.063253 | 0.165663 | 0.165663 | 0.165663 | 0.165663 | 0.165663 | 0.165663 | 0 | 0.023064 | 0.380612 | 1,960 | 60 | 148 | 32.666667 | 0.797364 | 0.031122 | 0 | 0.139535 | 0 | 0 | 0.209499 | 0.025858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0.023256 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f09c66c2c39712c9d1518ff1035780b17e4b03c | 2,371 | py | Python | tests/error/test_format_error.py | GDGSNF/graphql-core | 35aa9b261c850aa5f0c335c2405956fd41ed5ca2 | [
"MIT"
] | 590 | 2015-10-06T18:22:49.000Z | 2022-03-22T16:32:17.000Z | tests/error/test_format_error.py | vpetrovykh/graphql-core | 7af97e22afb27861fc1b7d7ca0292095f8427ecb | [
"MIT"
] | 300 | 2015-10-06T18:58:11.000Z | 2022-03-22T14:01:44.000Z | tests/error/test_format_error.py | vpetrovykh/graphql-core | 7af97e22afb27861fc1b7d7ca0292095f8427ecb | [
"MIT"
] | 270 | 2015-10-08T19:47:38.000Z | 2022-03-10T04:17:51.000Z | from typing import List, Union
from pytest import raises
from graphql.error import GraphQLError, format_error
from graphql.language import Node, Source
from graphql.pyutils import Undefined
def describe_format_error():
def formats_graphql_error():
source = Source(
"""
query {
... | 31.197368 | 80 | 0.554197 | 222 | 2,371 | 5.810811 | 0.315315 | 0.068217 | 0.062016 | 0.05814 | 0.417054 | 0.387597 | 0.387597 | 0.387597 | 0.387597 | 0.387597 | 0 | 0.007528 | 0.32771 | 2,371 | 75 | 81 | 31.613333 | 0.801757 | 0.05019 | 0 | 0.293103 | 0 | 0 | 0.122421 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 1 | 0.103448 | false | 0 | 0.086207 | 0 | 0.189655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0cc8d81107fd93a3ad95d929b3e7cadc42e6cc | 10,078 | py | Python | code/App.py | KasinSparks/Arduino_RGB_Lights | 9c924ef3c7df2c7725c2178b42eb0f784168160c | [
"MIT"
] | null | null | null | code/App.py | KasinSparks/Arduino_RGB_Lights | 9c924ef3c7df2c7725c2178b42eb0f784168160c | [
"MIT"
] | null | null | null | code/App.py | KasinSparks/Arduino_RGB_Lights | 9c924ef3c7df2c7725c2178b42eb0f784168160c | [
"MIT"
] | null | null | null | from tkinter import *
from ModeEnum import Mode
import SerialHelper
import Views.StaticView
import Views.CustomWidgets.Silder
from ColorEnum import Color
from functools import partial
from Views.CommandPanel import CommandPanel
from Views.ListItem import ListItem
from ProcessControl import ProcessManager, ProcessCo... | 32.509677 | 209 | 0.594066 | 1,030 | 10,078 | 5.784466 | 0.231068 | 0.020141 | 0.013427 | 0.011749 | 0.293723 | 0.270393 | 0.233635 | 0.233635 | 0.193018 | 0.181269 | 0 | 0.012306 | 0.298472 | 10,078 | 310 | 210 | 32.509677 | 0.83041 | 0.128398 | 0 | 0.227979 | 0 | 0 | 0.066545 | 0.004459 | 0 | 0 | 0 | 0.003226 | 0 | 1 | 0.062176 | false | 0 | 0.056995 | 0 | 0.19171 | 0.046632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0d7bbee7a9caaa60cc0549c015512769c48c45 | 4,944 | py | Python | tests/io/product/test_sidd_writing.py | ngageoint/SarPy | a21ebfe136833e3d25cac4e5ebfd534f28538db4 | [
"MIT"
] | null | null | null | tests/io/product/test_sidd_writing.py | ngageoint/SarPy | a21ebfe136833e3d25cac4e5ebfd534f28538db4 | [
"MIT"
] | null | null | null | tests/io/product/test_sidd_writing.py | ngageoint/SarPy | a21ebfe136833e3d25cac4e5ebfd534f28538db4 | [
"MIT"
] | null | null | null | import os
import json
import tempfile
import shutil
import unittest
from sarpy.io.complex.sicd import SICDReader
from sarpy.io.product.sidd import SIDDReader
from sarpy.io.product.sidd_schema import get_schema_path
from sarpy.processing.sidd.sidd_product_creation import create_detected_image_sidd, create_dynamic_image... | 44.142857 | 126 | 0.619539 | 613 | 4,944 | 4.750408 | 0.202284 | 0.053571 | 0.030907 | 0.037088 | 0.484547 | 0.469437 | 0.469437 | 0.410371 | 0.372253 | 0.334135 | 0 | 0.009431 | 0.292273 | 4,944 | 111 | 127 | 44.540541 | 0.822807 | 0.045307 | 0 | 0.174419 | 0 | 0 | 0.133913 | 0.004881 | 0 | 0 | 0 | 0 | 0.034884 | 1 | 0.023256 | false | 0 | 0.151163 | 0 | 0.197674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0f9bbc343ebc2f491e5e0fa189894eb08c5ad7 | 28,213 | py | Python | src/westpa/tools/wipi.py | burntyellow/adelman_ci | cca251a51b34843faed0275cce01d7a307829993 | [
"MIT"
] | null | null | null | src/westpa/tools/wipi.py | burntyellow/adelman_ci | cca251a51b34843faed0275cce01d7a307829993 | [
"MIT"
] | null | null | null | src/westpa/tools/wipi.py | burntyellow/adelman_ci | cca251a51b34843faed0275cce01d7a307829993 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.sparse as sp
from westpa.tools import Plotter
# A useful dataclass used as a wrapper for w_ipa to facilitate
# ease-of-use in ipython/jupyter notebooks/sessions.
# It basically just wraps up numpy arrays and dicts.
class WIPIDataset(object):
def __init__(self, raw, key):
... | 43.073282 | 222 | 0.589267 | 3,384 | 28,213 | 4.607861 | 0.143026 | 0.049253 | 0.035978 | 0.038158 | 0.436991 | 0.399089 | 0.367601 | 0.343231 | 0.246842 | 0.22478 | 0 | 0.006901 | 0.286038 | 28,213 | 654 | 223 | 43.139144 | 0.767214 | 0.243753 | 0 | 0.495595 | 0 | 0.004405 | 0.117463 | 0.00794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180617 | false | 0.015419 | 0.006608 | 0.066079 | 0.370044 | 0.039648 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f0fe7aa9178367d1e8da95885ff8667f686cebb | 1,385 | py | Python | lnt/graphics/styles.py | flotwig/lnt | 2f4ab3d051508801b521f5da39f0cf522c54a96e | [
"MIT"
] | 7 | 2020-02-21T23:43:10.000Z | 2021-07-06T11:16:37.000Z | lnt/graphics/styles.py | arshbot/lntools | 9c6f344452323ff93b7a6a3763697d2ad81b4961 | [
"MIT"
] | 19 | 2019-08-07T18:00:13.000Z | 2020-12-03T17:21:01.000Z | lnt/graphics/styles.py | arshbot/lntools | 9c6f344452323ff93b7a6a3763697d2ad81b4961 | [
"MIT"
] | 1 | 2019-11-05T21:38:29.000Z | 2019-11-05T21:38:29.000Z | from PyInquirer import style_from_dict, Token, prompt, Separator
from lnt.graphics.utils import vars_to_string
# Mark styles
prompt_style = style_from_dict({
Token.Separator: '#6C6C6C',
Token.QuestionMark: '#FF9D00 bold',
#Token.Selected: '', # default
Token.Selected: '#5F819D',
Token.Pointer: '#F... | 30.108696 | 134 | 0.639711 | 169 | 1,385 | 5.059172 | 0.39645 | 0.014035 | 0.018713 | 0.042105 | 0.357895 | 0.357895 | 0.357895 | 0.357895 | 0.357895 | 0.357895 | 0 | 0.016682 | 0.220939 | 1,385 | 45 | 135 | 30.777778 | 0.773865 | 0.054152 | 0 | 0.064516 | 0 | 0 | 0.298542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f10007c40e440e0d8097efa2d2333808b818d8f | 25,327 | py | Python | dvrip.py | jackkum/python-dvr | c004606ff8a37a213715fbc835cef77add0b3014 | [
"MIT"
] | 149 | 2018-04-04T18:46:43.000Z | 2022-03-07T18:27:52.000Z | dvrip.py | jackkum/python-dvr | c004606ff8a37a213715fbc835cef77add0b3014 | [
"MIT"
] | 20 | 2018-09-05T13:10:29.000Z | 2022-03-28T12:56:36.000Z | dvrip.py | jackkum/python-dvr | c004606ff8a37a213715fbc835cef77add0b3014 | [
"MIT"
] | 51 | 2018-05-29T02:10:04.000Z | 2022-02-23T14:24:11.000Z | import os
import struct
import json
from time import sleep
import hashlib
import threading
from socket import socket, AF_INET, SOCK_STREAM, SOCK_DGRAM
from datetime import *
from re import compile
import time
import logging
class SomethingIsWrongWithCamera(Exception):
pass
class DVRIPCam(object):
DATE_FORMAT ... | 31.5798 | 232 | 0.48774 | 2,549 | 25,327 | 4.753629 | 0.194194 | 0.023108 | 0.009903 | 0.016093 | 0.276636 | 0.21573 | 0.178675 | 0.153503 | 0.116035 | 0.081208 | 0 | 0.032956 | 0.39377 | 25,327 | 801 | 233 | 31.619226 | 0.75622 | 0.021953 | 0 | 0.281729 | 0 | 0 | 0.114549 | 0.002508 | 0 | 0 | 0.006269 | 0 | 0 | 1 | 0.082287 | false | 0.025105 | 0.015342 | 0.013947 | 0.213389 | 0.025105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6f105f0927ad589737ae9605008d8f670158e4d5 | 1,423 | py | Python | practice/practice_4/main.py | Norbert2808/programming | 3dbab86718c1cee5efe3b4b92e4492f984c75ea2 | [
"Unlicense"
] | null | null | null | practice/practice_4/main.py | Norbert2808/programming | 3dbab86718c1cee5efe3b4b92e4492f984c75ea2 | [
"Unlicense"
] | null | null | null | practice/practice_4/main.py | Norbert2808/programming | 3dbab86718c1cee5efe3b4b92e4492f984c75ea2 | [
"Unlicense"
] | null | null | null | from generator import *
from iterator import *
def nInput():
while True:
try:
n = int(input("Enter n(size): "))
if n <= 0:
print("Input must be a positive integer!")
continue
except ValueError:
print("Not the correct value n!")
... | 26.351852 | 69 | 0.51019 | 165 | 1,423 | 4.327273 | 0.387879 | 0.056022 | 0.089636 | 0.046218 | 0.212885 | 0.212885 | 0.212885 | 0.103641 | 0.103641 | 0 | 0 | 0.012571 | 0.385102 | 1,423 | 54 | 70 | 26.351852 | 0.803429 | 0 | 0 | 0.354167 | 0 | 0 | 0.21559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.166667 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |