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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4012033dc557a9acee5693b0291d1d05afe295c0 | 680 | py | Python | notesapp/api_v1/models.py | kampkelly/drf_template | 44cda3fd4ebf0dc073a46205b392d5e783d9ceea | [
"MIT"
] | null | null | null | notesapp/api_v1/models.py | kampkelly/drf_template | 44cda3fd4ebf0dc073a46205b392d5e783d9ceea | [
"MIT"
] | null | null | null | notesapp/api_v1/models.py | kampkelly/drf_template | 44cda3fd4ebf0dc073a46205b392d5e783d9ceea | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class CommonFieldsMixin(models.Model):
"""Add created_at and updated_at fields."""
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True, null=True)
class Meta:
"""Define metadata options.... | 23.448276 | 80 | 0.733824 | 85 | 680 | 5.752941 | 0.529412 | 0.055215 | 0.08589 | 0.102249 | 0.286299 | 0.171779 | 0.171779 | 0.171779 | 0 | 0 | 0 | 0.01049 | 0.158824 | 680 | 28 | 81 | 24.285714 | 0.844406 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
401276c3187f1d2baed3d5f8ab8ae0afba6d8f18 | 8,534 | py | Python | src/main_TS_tsconv_jma.py | inoue0406/radarJMA | f8996c3fe201f97d414fc96c4abfc6f930738d47 | [
"MIT"
] | 6 | 2018-12-20T00:32:17.000Z | 2021-05-24T08:29:08.000Z | src/main_TS_tsconv_jma.py | inoue0406/radarJMA | f8996c3fe201f97d414fc96c4abfc6f930738d47 | [
"MIT"
] | null | null | null | src/main_TS_tsconv_jma.py | inoue0406/radarJMA | f8996c3fe201f97d414fc96c4abfc6f930738d47 | [
"MIT"
] | 4 | 2018-09-20T07:08:03.000Z | 2020-06-07T21:43:31.000Z | # seq2seq LSTM (no-convolutional model) for time series prediction
import numpy as np
import torch
import torchvision
import torch.utils.data as data
import torchvision.transforms as transforms
import pandas as pd
import h5py
import os
import sys
import json
import time
import pdb
from jma_timeseries_dataset import... | 40.832536 | 99 | 0.522498 | 923 | 8,534 | 4.64247 | 0.232936 | 0.027305 | 0.03944 | 0.033372 | 0.388331 | 0.326488 | 0.273746 | 0.254842 | 0.223337 | 0.204667 | 0 | 0.008964 | 0.385634 | 8,534 | 208 | 100 | 41.028846 | 0.808316 | 0.106046 | 0 | 0.236111 | 0 | 0 | 0.064253 | 0.010797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006944 | false | 0 | 0.125 | 0 | 0.131944 | 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 |
4013520787f6cc9bbf08df7635faa9848889aff8 | 13,500 | py | Python | onemsdk/parser/tag.py | mvnm/onemsdk | d6293c632d15af3b044f130343899d3b242e287a | [
"MIT"
] | null | null | null | onemsdk/parser/tag.py | mvnm/onemsdk | d6293c632d15af3b044f130343899d3b242e287a | [
"MIT"
] | 6 | 2019-07-05T07:54:03.000Z | 2019-09-30T10:47:10.000Z | onemsdk/parser/tag.py | mvnm/onemsdk | d6293c632d15af3b044f130343899d3b242e287a | [
"MIT"
] | 2 | 2019-08-30T07:36:48.000Z | 2020-01-13T01:40:06.000Z | import inspect
import sys
from abc import ABC, abstractmethod
from enum import Enum
from typing import List, Union, Type, Optional, Dict, Any
from pydantic import BaseModel
from onemsdk.exceptions import NodeTagMismatchException, ONEmSDKException
from .node import Node
__all__ = ['Tag', 'HeaderTag', 'FooterTag', 'Br... | 28.421053 | 91 | 0.605333 | 1,562 | 13,500 | 5.080666 | 0.120359 | 0.044229 | 0.045363 | 0.027218 | 0.332283 | 0.251008 | 0.232863 | 0.200605 | 0.172505 | 0.172505 | 0 | 0.004129 | 0.28237 | 13,500 | 474 | 92 | 28.481013 | 0.815029 | 0.027407 | 0 | 0.275148 | 0 | 0 | 0.094686 | 0.009453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109467 | false | 0.002959 | 0.023669 | 0.053254 | 0.470414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4014970fe4ab56a4d4e3af8b117a8432e328801e | 12,113 | py | Python | backend/syntax/rule.py | austinmarsray/Ccompiler | b3ef61283e33d06294c491b71586a945c38c6e54 | [
"MIT"
] | null | null | null | backend/syntax/rule.py | austinmarsray/Ccompiler | b3ef61283e33d06294c491b71586a945c38c6e54 | [
"MIT"
] | null | null | null | backend/syntax/rule.py | austinmarsray/Ccompiler | b3ef61283e33d06294c491b71586a945c38c6e54 | [
"MIT"
] | null | null | null | class Sign:
"""
符号
"""
def __init__(self, sign_type, sign_str='', sign_line=-1):
"""
构造
:param sign_type: 符号的类型
:param sign_str: 符号的内容(可以为空)
:param sign_line: 符号所在行数(可以为空)
"""
self.type = sign_type
self.str = sign_str
self.line = si... | 29.834975 | 103 | 0.536366 | 1,208 | 12,113 | 5.339404 | 0.126656 | 0.024806 | 0.018605 | 0.015504 | 0.374264 | 0.217829 | 0.16155 | 0.128682 | 0.103566 | 0.075969 | 0 | 0.017933 | 0.277223 | 12,113 | 406 | 104 | 29.834975 | 0.718789 | 0.064311 | 0 | 0.044248 | 0 | 0 | 0.396078 | 0.010933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022124 | false | 0 | 0 | 0 | 0.057522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4015db6712f5e331d7a0bca4b41018047675a6cf | 24,566 | py | Python | redash/models.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-06-27T07:40:51.000Z | 2019-06-27T07:40:51.000Z | redash/models.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-03-20T05:38:23.000Z | 2021-03-20T05:38:23.000Z | redash/models.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import json
import hashlib
import logging
import os
import threading
import time
import datetime
import itertools
import peewee
from passlib.apps import custom_app_context as pwd_context
from playhouse.postgres_ext import ArrayField, DateTimeTZField, PostgresqlExtDatabase
from flask.ext.login import UserMixin, Anonymo... | 33.790922 | 121 | 0.620492 | 2,855 | 24,566 | 5.14641 | 0.132049 | 0.028585 | 0.022051 | 0.029402 | 0.343973 | 0.242769 | 0.171306 | 0.159464 | 0.133465 | 0.115769 | 0 | 0.004551 | 0.266588 | 24,566 | 726 | 122 | 33.837466 | 0.810956 | 0.043393 | 0 | 0.303142 | 0 | 0 | 0.061537 | 0.003748 | 0 | 0 | 0 | 0.001377 | 0 | 1 | 0.123845 | false | 0.014787 | 0.027726 | 0.053604 | 0.42329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40163fa4a642e9716f853bee7c3624573ecfac17 | 10,112 | py | Python | xclib/classifier/ova.py | sushantsondhi/pyxclib | ecdfab6b72f9a02892eee617f45bef73c928ca81 | [
"MIT"
] | 4 | 2019-07-11T14:43:22.000Z | 2019-08-08T19:12:53.000Z | xclib/classifier/ova.py | kunaldahiya/xclib | b40e4dd49533ac78231a12f8af362e7f8c6f5df2 | [
"MIT"
] | null | null | null | xclib/classifier/ova.py | kunaldahiya/xclib | b40e4dd49533ac78231a12f8af362e7f8c6f5df2 | [
"MIT"
] | null | null | null | import numpy as np
import time
import logging
from .base import BaseClassifier
import scipy.sparse as sp
from ._svm import train_one
from functools import partial
from ..utils import sparse
from ..data import data_loader
from ._svm import train_one, _get_liblinear_solver_type
from joblib import Parallel, delayed
from .... | 37.313653 | 79 | 0.598497 | 1,235 | 10,112 | 4.723077 | 0.213765 | 0.036002 | 0.018001 | 0.019544 | 0.188411 | 0.157552 | 0.135265 | 0.124293 | 0.096348 | 0.096348 | 0 | 0.011058 | 0.311412 | 10,112 | 270 | 80 | 37.451852 | 0.826655 | 0.287777 | 0 | 0.072848 | 0 | 0.006623 | 0.066677 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 1 | 0.086093 | false | 0 | 0.086093 | 0.019868 | 0.238411 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40179a2e52133e978bed3c8e59ac4742ba5dae20 | 6,555 | py | Python | ipgroup_test.py | RyPeck/python-ipgroup | 8fb1037d886a52127e7231f051403396dcb4dc60 | [
"Apache-2.0"
] | 1 | 2015-01-10T18:34:51.000Z | 2015-01-10T18:34:51.000Z | ipgroup_test.py | RyPeck/python-ipgroup | 8fb1037d886a52127e7231f051403396dcb4dc60 | [
"Apache-2.0"
] | null | null | null | ipgroup_test.py | RyPeck/python-ipgroup | 8fb1037d886a52127e7231f051403396dcb4dc60 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import ipaddress
import random
import unittest
import ipgroup
class TestGroupIPs(unittest.TestCase):
def setUp(self):
pass
def test_group(self):
IPs = ["127.0.0.1",
"127.0.1.1",
"127.1.1.1",
"127.1.0.1",
"127... | 31.666667 | 79 | 0.438139 | 751 | 6,555 | 3.739015 | 0.189081 | 0.034188 | 0.019231 | 0.014957 | 0.628205 | 0.575499 | 0.55057 | 0.455484 | 0.455484 | 0.437322 | 0 | 0.152455 | 0.43463 | 6,555 | 206 | 80 | 31.820388 | 0.605235 | 0.11106 | 0 | 0.40458 | 0 | 0 | 0.126851 | 0.012197 | 0 | 0 | 0 | 0 | 0.114504 | 1 | 0.122137 | false | 0.015267 | 0.030534 | 0 | 0.167939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4017c147f527555c7fa69c7bf75c0f142e6a0a28 | 2,566 | py | Python | progress.py | PsiLupan/calcprogress | 05b77e1eedb7726c34f545e10837283e2a1c6180 | [
"MIT"
] | 2 | 2022-03-07T06:41:35.000Z | 2022-03-11T04:26:40.000Z | progress.py | PsiLupan/calcprogress | 05b77e1eedb7726c34f545e10837283e2a1c6180 | [
"MIT"
] | 1 | 2022-02-22T02:08:06.000Z | 2022-02-22T02:08:06.000Z | progress.py | PsiLupan/calcprogress | 05b77e1eedb7726c34f545e10837283e2a1c6180 | [
"MIT"
] | 1 | 2022-02-21T19:47:10.000Z | 2022-02-21T19:47:10.000Z | from dataclasses import dataclass
from pickle import FALSE
from dol import Dol
from asm_section_list import AsmSection, AsmSectionType
@dataclass
class Slice:
start: int
end: int
def size(self) -> int:
assert self.end > self.start
return self.end - self.start
def contains_section(self... | 33.763158 | 102 | 0.66212 | 341 | 2,566 | 4.718475 | 0.170088 | 0.067122 | 0.034183 | 0.046613 | 0.472965 | 0.418272 | 0.233686 | 0.183965 | 0.151647 | 0.088254 | 0 | 0.002079 | 0.250195 | 2,566 | 76 | 102 | 33.763158 | 0.8342 | 0.039361 | 0 | 0.305085 | 0 | 0 | 0.134255 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.101695 | false | 0 | 0.067797 | 0.016949 | 0.355932 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4018589aba6937e4ecc7ee0d948bf2a417774d03 | 13,993 | py | Python | main_qm9.py | maxxxzdn/en_flows | 04ed4dd45431cafcd23f8bf5199a47f917a72058 | [
"MIT"
] | null | null | null | main_qm9.py | maxxxzdn/en_flows | 04ed4dd45431cafcd23f8bf5199a47f917a72058 | [
"MIT"
] | null | null | null | main_qm9.py | maxxxzdn/en_flows | 04ed4dd45431cafcd23f8bf5199a47f917a72058 | [
"MIT"
] | null | null | null | import utils
import argparse
import wandb
from os.path import join
from qm9 import dataset
from qm9 import losses
from qm9.models import get_optim, get_model
from flows.utils import assert_mean_zero_with_mask, remove_mean_with_mask,\
assert_correctly_masked
import torch
import time
import pickle
import numpy as np
... | 38.977716 | 116 | 0.622811 | 1,836 | 13,993 | 4.520153 | 0.166667 | 0.034703 | 0.06555 | 0.015424 | 0.409085 | 0.341969 | 0.304615 | 0.246536 | 0.232558 | 0.199542 | 0 | 0.009356 | 0.251411 | 13,993 | 358 | 117 | 39.086592 | 0.782912 | 0.012649 | 0 | 0.241007 | 0 | 0.003597 | 0.156949 | 0.021583 | 0 | 0 | 0 | 0 | 0.02518 | 1 | 0.028777 | false | 0.003597 | 0.061151 | 0 | 0.104317 | 0.043165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
401926cb60c477135712ef8b53eac69d6cf43064 | 421 | py | Python | code/ch_02_foundations/_02_noneness.py | SuppMonkey/write.pythonic.code | 4400b219198c14ea0d7d9453cf6d367123b6ce8c | [
"MIT"
] | 679 | 2016-06-16T22:19:40.000Z | 2022-03-25T19:31:45.000Z | code/ch_02_foundations/_02_noneness.py | SuppMonkey/write.pythonic.code | 4400b219198c14ea0d7d9453cf6d367123b6ce8c | [
"MIT"
] | 11 | 2017-04-17T15:25:42.000Z | 2019-11-30T15:58:28.000Z | code/ch_02_foundations/_02_noneness.py | SuppMonkey/write.pythonic.code | 4400b219198c14ea0d7d9453cf6d367123b6ce8c | [
"MIT"
] | 199 | 2016-06-21T19:13:47.000Z | 2022-03-25T03:36:54.000Z | def find_accounts(search_text):
# perform search...
if not db_is_available:
return None
# returns a list of account IDs
return db_search(search_text)
accounts = find_accounts('python')
if accounts is None:
print("Error: DB not available")
else:
print("Accounts found: Would list them he... | 10.268293 | 52 | 0.655582 | 58 | 421 | 4.568966 | 0.534483 | 0.113208 | 0.10566 | 0.135849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.254157 | 421 | 40 | 53 | 10.525 | 0.834395 | 0.111639 | 0 | 0 | 0 | 0 | 0.183288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
401b154f2a06b6253bd915fb79af056b04b243aa | 6,008 | py | Python | packaging/bdist_trinoadmin.py | wgzhao/trino-admin | cd2c71e4d0490cf836a7ddf0dbab69b967408ac8 | [
"Apache-2.0"
] | null | null | null | packaging/bdist_trinoadmin.py | wgzhao/trino-admin | cd2c71e4d0490cf836a7ddf0dbab69b967408ac8 | [
"Apache-2.0"
] | 2 | 2021-10-19T05:37:09.000Z | 2022-03-29T22:07:21.000Z | packaging/bdist_trinoadmin.py | wgzhao/trino-admin | cd2c71e4d0490cf836a7ddf0dbab69b967408ac8 | [
"Apache-2.0"
] | 1 | 2021-12-27T02:38:32.000Z | 2021-12-27T02:38:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 37.55 | 116 | 0.621172 | 733 | 6,008 | 4.884038 | 0.298772 | 0.040223 | 0.01676 | 0.01257 | 0.081564 | 0.046927 | 0.02067 | 0.02067 | 0 | 0 | 0 | 0.008092 | 0.280127 | 6,008 | 159 | 117 | 37.786164 | 0.819653 | 0.118509 | 0 | 0.036364 | 0 | 0 | 0.179837 | 0.033163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081818 | false | 0 | 0.081818 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
401c85c8336927c2f23953dd8bb76eb17a0d8316 | 1,877 | py | Python | loc.py | relax-space/pandas-first | c8aceae09263a9566ef7dc7631e27f25d569aad4 | [
"Apache-2.0"
] | null | null | null | loc.py | relax-space/pandas-first | c8aceae09263a9566ef7dc7631e27f25d569aad4 | [
"Apache-2.0"
] | null | null | null | loc.py | relax-space/pandas-first | c8aceae09263a9566ef7dc7631e27f25d569aad4 | [
"Apache-2.0"
] | null | null | null | '''
说明: loc和iloc有几个功能
1. 可以获取一行或者多行数据
2. 可以获取1列或多列数据
3. 可以获取某个单元格的数据
对应dataframe来说, 在不指定index和columns的情况下,iloc和loc一样
区别在于,iloc根据索引下标取值, loc根据索引值取值
'''
import numpy as np
import pandas as pd
def test_1():
# 按行取值
pf = pd.DataFrame([[1, 2], [3, 4]])
iloc_0 = pf.iloc[0]
loc_0 = pf.loc[0]
assert pd.Se... | 26.069444 | 79 | 0.559403 | 293 | 1,877 | 3.443686 | 0.204778 | 0.069376 | 0.103072 | 0.019822 | 0.314172 | 0.295342 | 0.295342 | 0.222002 | 0.189296 | 0.150644 | 0 | 0.092539 | 0.257326 | 1,877 | 71 | 80 | 26.43662 | 0.631277 | 0.118807 | 0 | 0.045455 | 0 | 0 | 0.096341 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.090909 | 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 |
401e8c47a022914e9d9cdffe16372061e6ecc752 | 4,673 | py | Python | checkproject/runner.py | perror/checkproject | 9321470164e010778d32e24dc77c0b28eccd9429 | [
"BSD-3-Clause"
] | null | null | null | checkproject/runner.py | perror/checkproject | 9321470164e010778d32e24dc77c0b28eccd9429 | [
"BSD-3-Clause"
] | null | null | null | checkproject/runner.py | perror/checkproject | 9321470164e010778d32e24dc77c0b28eccd9429 | [
"BSD-3-Clause"
] | null | null | null | """Runner to discover, run and collect the results of all the checks."""
def import_module(module_path):
"""Import a Python file as a module in the current context.
@param module_path: Path to the Python file.
@return: A reference to the module once loaded.
"""
import os
import sys
modu... | 32.227586 | 85 | 0.596833 | 579 | 4,673 | 4.687392 | 0.217617 | 0.066323 | 0.026529 | 0.035372 | 0.395726 | 0.329403 | 0.285925 | 0.285925 | 0.285925 | 0.285925 | 0 | 0.003805 | 0.325059 | 4,673 | 144 | 86 | 32.451389 | 0.85669 | 0.283972 | 0 | 0.414286 | 0 | 0 | 0.013531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40202bd57c8aba134557450b58ae36c3239d01dd | 4,345 | py | Python | model_hub/model_hub/mmdetection/utils.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | model_hub/model_hub/mmdetection/utils.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | model_hub/model_hub/mmdetection/utils.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | """
Various utility functions for using mmdetection in Determined that may be useful
even if not using the provided MMDetTrial.
build_fp16_loss_scaler is large derived from the original mmcv code at
https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/optimizer.py
mmcv is covered by the Apache 2.0 License.... | 40.990566 | 95 | 0.61519 | 540 | 4,345 | 4.814815 | 0.362963 | 0.038077 | 0.018462 | 0.033846 | 0.154615 | 0.105385 | 0.043077 | 0.043077 | 0.043077 | 0.043077 | 0 | 0.011288 | 0.306789 | 4,345 | 105 | 96 | 41.380952 | 0.851926 | 0.478021 | 0 | 0 | 0 | 0 | 0.071088 | 0.010496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.108696 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40203044d0b70862532fc8cce70af574c829a8d8 | 2,465 | py | Python | gcloud/datastores/tests/STUB_test_bigquery.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 2 | 2017-03-01T20:09:06.000Z | 2019-02-08T17:10:16.000Z | gcloud/datastores/tests/STUB_test_bigquery.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 40 | 2015-10-10T15:02:21.000Z | 2020-03-17T22:32:04.000Z | gcloud/datastores/tests/STUB_test_bigquery.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 2 | 2018-11-14T21:50:58.000Z | 2022-03-07T20:59:27.000Z | """tests bigquery client"""
import unittest
from gcloud.datastores.bigquery import BigqueryClient
class BigqueryClientTestCases(unittest.TestCase):
"""stuff"""
@classmethod
def setUpClass(cls):
cls.project_id = 'test'
cls.dataset_id = 'etl_test'
cls.table_id = 'etl_test'
... | 22.409091 | 78 | 0.539959 | 267 | 2,465 | 4.734082 | 0.213483 | 0.077532 | 0.099684 | 0.050633 | 0.298259 | 0.172468 | 0.137658 | 0.137658 | 0.06962 | 0.06962 | 0 | 0 | 0.361866 | 2,465 | 109 | 79 | 22.614679 | 0.80356 | 0.066531 | 0 | 0.092105 | 0 | 0 | 0.051551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.026316 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40219219083fe79c8f213a75f899041ef2518cf2 | 354 | py | Python | filter_hash.py | mbougarne/python-algos | f05c491903dfce95ee134852252c55c2cee1b07a | [
"MIT"
] | null | null | null | filter_hash.py | mbougarne/python-algos | f05c491903dfce95ee134852252c55c2cee1b07a | [
"MIT"
] | null | null | null | filter_hash.py | mbougarne/python-algos | f05c491903dfce95ee134852252c55c2cee1b07a | [
"MIT"
] | null | null | null | fruits = ["orange", "banana", "apple", "avocado", "kiwi", "apricot",
"cherry", "grape", "coconut", "lemon", "mango", "peach",
"pear", "strawberry", "pineapple", "apple", "orange", "pear",
"grape", "banana"
]
filters = dict()
for key in fruits:
filters[key] = 1
result =... | 27.230769 | 73 | 0.536723 | 36 | 354 | 5.277778 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.245763 | 354 | 13 | 74 | 27.230769 | 0.707865 | 0 | 0 | 0 | 0 | 0 | 0.329577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
40293f7dca9ef672564fb8730fe1d23ecd590f2b | 23,410 | py | Python | simple_playgrounds/playground.py | Asjidkalam/simple-playgrounds | 72ec42987a33175103191fa9722e0e002f889954 | [
"MIT"
] | null | null | null | simple_playgrounds/playground.py | Asjidkalam/simple-playgrounds | 72ec42987a33175103191fa9722e0e002f889954 | [
"MIT"
] | null | null | null | simple_playgrounds/playground.py | Asjidkalam/simple-playgrounds | 72ec42987a33175103191fa9722e0e002f889954 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Playground documentation.
Module defining Playground Base Class
"""
import os
from abc import ABC
import yaml
import pymunk
from .utils import PositionAreaSampler
from .utils.definitions import SPACE_DAMPING, CollisionTypes, SceneElementTypes
# pylint: disable=unused-argument
# pylint:... | 31.893733 | 125 | 0.641948 | 2,801 | 23,410 | 5.114602 | 0.114245 | 0.064498 | 0.018986 | 0.026106 | 0.483108 | 0.408348 | 0.325003 | 0.278096 | 0.245917 | 0.219461 | 0 | 0.005939 | 0.287954 | 23,410 | 733 | 126 | 31.937244 | 0.853501 | 0.141606 | 0 | 0.299213 | 0 | 0 | 0.021041 | 0.001437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091864 | false | 0.007874 | 0.015748 | 0.002625 | 0.188976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
402b9f4345d8a408ad36e88d31b1b6668765cd8b | 2,679 | py | Python | UEManifestReader/classes/FManifestData.py | ryryburge/UEManifestReader | 970b24dd80fc6b5d599d1bd77de78a1b19f4432e | [
"MIT"
] | null | null | null | UEManifestReader/classes/FManifestData.py | ryryburge/UEManifestReader | 970b24dd80fc6b5d599d1bd77de78a1b19f4432e | [
"MIT"
] | null | null | null | UEManifestReader/classes/FManifestData.py | ryryburge/UEManifestReader | 970b24dd80fc6b5d599d1bd77de78a1b19f4432e | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import zlib
from UEManifestReader.enums import *
from UEManifestReader.classes.FCustomFields import FCustomFields
from UEManifestReader.classes.FManifestMeta import FManifestMeta
from UEManifestReader.classes.FChunkDataList import FChunkDataList
from UEManifestReader.classes.FManifestHeader imp... | 46.189655 | 117 | 0.711459 | 257 | 2,679 | 7.385214 | 0.389105 | 0.073762 | 0.085353 | 0.061644 | 0.084299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000481 | 0.224337 | 2,679 | 57 | 118 | 47 | 0.912897 | 0.164614 | 0 | 0 | 0 | 0 | 0.018427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
402eafa1a88db63bd7cacd91e03e8377d8b8d5d8 | 2,375 | py | Python | apps/dc_tools/odc/apps/dc_tools/fs_to_dc.py | opendatacube/odc-tools | 42950e93305846b640a1c6135c9da16ba76c1b3a | [
"Apache-2.0"
] | 29 | 2019-09-18T10:21:07.000Z | 2022-03-10T07:46:57.000Z | apps/dc_tools/odc/apps/dc_tools/fs_to_dc.py | opendatacube/odc-tools | 42950e93305846b640a1c6135c9da16ba76c1b3a | [
"Apache-2.0"
] | 259 | 2019-12-11T03:19:01.000Z | 2022-03-31T22:46:11.000Z | apps/dc_tools/odc/apps/dc_tools/fs_to_dc.py | opendatacube/odc-tools | 42950e93305846b640a1c6135c9da16ba76c1b3a | [
"Apache-2.0"
] | 18 | 2020-01-22T14:50:27.000Z | 2022-03-01T14:48:12.000Z | import json
from pathlib import Path
import click
import datacube
from datacube.index.hl import Doc2Dataset
from odc.apps.dc_tools.utils import (
index_update_dataset,
update_if_exists,
allow_unsafe,
transform_stac,
)
from ._stac import stac_transform
from typing import Generator, Optional
import loggi... | 26.388889 | 84 | 0.596211 | 297 | 2,375 | 4.592593 | 0.356902 | 0.026393 | 0.05132 | 0.055718 | 0.142229 | 0.105572 | 0.105572 | 0.049853 | 0.049853 | 0.049853 | 0 | 0.005952 | 0.292632 | 2,375 | 89 | 85 | 26.685393 | 0.805952 | 0.015579 | 0 | 0.084507 | 0 | 0 | 0.126712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.183099 | 0 | 0.225352 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4030d959e7cf60e57a2223602eae1667433715a2 | 651 | py | Python | scripts/fullizer.py | stijm/jazzjackrabbit2 | e47f1c42fd7c450c2e12bcb7dcaae0f695a0dc12 | [
"MIT"
] | 5 | 2021-08-03T20:02:00.000Z | 2021-11-19T20:29:36.000Z | scripts/fullizer.py | stijm/jj2 | e47f1c42fd7c450c2e12bcb7dcaae0f695a0dc12 | [
"MIT"
] | null | null | null | scripts/fullizer.py | stijm/jj2 | e47f1c42fd7c450c2e12bcb7dcaae0f695a0dc12 | [
"MIT"
] | null | null | null | """
WARNING:
Using this script outside any server except one with IP 127.0.0.1 means risking getting
an instant and permanent ban, anywhere you use it.
The script was created *ONLY FOR LOCAL* testing purposes.
NEVER, NEVER, *NEVER* run it in an online multiplayer server.
At least unless you're a dumb freak.
""... | 26.04 | 91 | 0.666667 | 96 | 651 | 4.427083 | 0.75 | 0.018824 | 0.023529 | 0.028235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.235023 | 651 | 24 | 92 | 27.125 | 0.817269 | 0.480799 | 0 | 0 | 0 | 0 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403346598a2baf176ef8cdcf1186f9c5ce45137d | 14,184 | py | Python | docs/_downloads/dbc5873471dad3c21022112121cbd008/tensorboard_profiler_tutorial.py | woojinsong/PyTorch-tutorials-kr | 36fefd556f45c2b1f5db912793172c0369430fd4 | [
"BSD-3-Clause"
] | 221 | 2018-04-06T01:42:58.000Z | 2021-11-28T10:12:45.000Z | intermediate_source/tensorboard_profiler_tutorial.py | konlidoo/tutorials | 75b1c673a73ca285a16f52a62fc8ffcc6d069936 | [
"BSD-3-Clause"
] | 280 | 2018-05-25T08:53:21.000Z | 2021-12-02T05:37:25.000Z | intermediate_source/tensorboard_profiler_tutorial.py | konlidoo/tutorials | 75b1c673a73ca285a16f52a62fc8ffcc6d069936 | [
"BSD-3-Clause"
] | 181 | 2018-05-25T02:00:28.000Z | 2021-11-19T11:56:39.000Z | """
PyTorch Profiler With TensorBoard
====================================
This tutorial demonstrates how to use TensorBoard plugin with PyTorch Profiler
to detect performance bottlenecks of the model.
Introduction
------------
PyTorch 1.8 includes an updated profiler API capable of
recording the CPU side operations ... | 40.758621 | 150 | 0.666314 | 1,863 | 14,184 | 5.030596 | 0.296296 | 0.012911 | 0.016432 | 0.025822 | 0.168907 | 0.121852 | 0.104353 | 0.087495 | 0.07341 | 0.057618 | 0 | 0.00946 | 0.150381 | 14,184 | 347 | 151 | 40.876081 | 0.768235 | 0.796954 | 0 | 0 | 0 | 0 | 0.015844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.216216 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40339ee3fc200a5b40a0b837adca77cf33b0c95c | 4,298 | py | Python | packages/gradient_boosting_model/gradient_boosting_model/processing/validation.py | g-nightingale/testing-and-monitoring-ml-deployments | 770d2889968e7195dba1697c164b3344cff3c5ee | [
"BSD-3-Clause"
] | 99 | 2019-11-14T11:58:51.000Z | 2022-03-19T14:23:17.000Z | packages/gradient_boosting_model/gradient_boosting_model/processing/validation.py | hoai-nguyen/testing-and-monitoring-ml-deployments | c4c0bc8d857326cc10899be6fe7c5bb03586347c | [
"BSD-3-Clause"
] | 1 | 2020-03-05T04:08:26.000Z | 2020-03-05T04:08:26.000Z | packages/gradient_boosting_model/gradient_boosting_model/processing/validation.py | hoai-nguyen/testing-and-monitoring-ml-deployments | c4c0bc8d857326cc10899be6fe7c5bb03586347c | [
"BSD-3-Clause"
] | 188 | 2019-12-13T16:48:23.000Z | 2022-03-29T09:25:12.000Z | import typing as t
from gradient_boosting_model.config.core import config
import numpy as np
import pandas as pd
from marshmallow import fields, Schema, ValidationError
class HouseDataInputSchema(Schema):
Alley = fields.Str(allow_none=True)
BedroomAbvGr = fields.Integer()
BldgType = fields.Str()
Bsm... | 34.66129 | 85 | 0.704281 | 509 | 4,298 | 5.823183 | 0.332024 | 0.130567 | 0.131579 | 0.139676 | 0.27969 | 0.025641 | 0.025641 | 0 | 0 | 0 | 0 | 0.002574 | 0.186598 | 4,298 | 123 | 86 | 34.943089 | 0.845252 | 0.056073 | 0 | 0 | 0 | 0 | 0.001731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.047619 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403486f59aaf160172f092701ccd24e42088b089 | 2,458 | py | Python | pyplan_engine/classes/IOEngine.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 17 | 2019-12-04T19:22:19.000Z | 2021-07-28T11:17:05.000Z | pyplan_engine/classes/IOEngine.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 9 | 2019-12-13T15:34:43.000Z | 2022-02-10T11:43:00.000Z | pyplan_engine/classes/IOEngine.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 5 | 2019-12-04T15:57:06.000Z | 2021-08-20T19:59:26.000Z |
class IOEngine(object):
def __init__(self, node):
self.node = node
self.inputs = []
self.outputs = []
def release(self):
self.inputs = None
self.outputs = None
self.node = None
def updateInputs(self, names):
# remove prior outputs
for input... | 32.342105 | 77 | 0.58869 | 257 | 2,458 | 5.614786 | 0.14786 | 0.11088 | 0.108108 | 0.06237 | 0.550243 | 0.534997 | 0.419958 | 0.356202 | 0.356202 | 0.356202 | 0 | 0 | 0.320179 | 2,458 | 75 | 78 | 32.773333 | 0.863555 | 0.008137 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0 | 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 |
4037b08c119c1be84f8a39d7cd954a0ebc06a052 | 1,198 | py | Python | externals/binaryen/test/emscripten/tools/distill_asm.py | caokun8008/ckeos | 889093599eb59c90e4cbcff2817f4421302fada1 | [
"MIT"
] | 40 | 2018-05-14T11:05:03.000Z | 2020-10-20T03:03:06.000Z | externals/binaryen/test/emscripten/tools/distill_asm.py | caokun8008/ckeos | 889093599eb59c90e4cbcff2817f4421302fada1 | [
"MIT"
] | 4 | 2019-08-19T13:07:10.000Z | 2020-10-17T02:45:04.000Z | externals/binaryen/test/emscripten/tools/distill_asm.py | caokun8008/ckeos | 889093599eb59c90e4cbcff2817f4421302fada1 | [
"MIT"
] | 14 | 2018-05-28T09:45:02.000Z | 2018-12-18T10:54:26.000Z | '''
Gets the core asm module out of an emscripten output file.
By default it adds a ';' to end the
var asm = ...
statement. You can add a third param to customize that. If the third param is 'swap-in', it will emit code to swap this asm module in, instead of the default one.
XXX this probably doesn't work with cl... | 32.378378 | 162 | 0.69783 | 189 | 1,198 | 4.396825 | 0.555556 | 0.054152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006042 | 0.171119 | 1,198 | 36 | 163 | 33.277778 | 0.830816 | 0.444908 | 0 | 0 | 0 | 0.055556 | 0.505344 | 0.232061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403ab8cc728f6138166c183502ef116ca738da28 | 3,037 | py | Python | ironic_inspector/cmd/dbsync.py | namnx228/ironic-inspector | fb5955bccef367af58c972718643fe5fdb18ffa5 | [
"Apache-2.0"
] | 31 | 2015-06-23T08:06:05.000Z | 2021-11-20T05:34:32.000Z | ironic_inspector/cmd/dbsync.py | sapcc/ironic-inspector | dee8734f8ca2b0fb0acc4c56f1806237234bf55d | [
"Apache-2.0"
] | 1 | 2019-11-22T12:07:56.000Z | 2019-11-22T12:07:59.000Z | ironic_inspector/cmd/dbsync.py | sapcc/ironic-inspector | dee8734f8ca2b0fb0acc4c56f1806237234bf55d | [
"Apache-2.0"
] | 33 | 2015-12-02T05:27:56.000Z | 2022-02-28T07:57:43.000Z | # Copyright 2015 Cisco Systems
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 33.01087 | 76 | 0.709582 | 396 | 3,037 | 5.252525 | 0.366162 | 0.080769 | 0.040865 | 0.064904 | 0.226923 | 0.10625 | 0.10625 | 0.10625 | 0.10625 | 0.10625 | 0 | 0.004049 | 0.186697 | 3,037 | 91 | 77 | 33.373626 | 0.838057 | 0.18999 | 0 | 0.075472 | 0 | 0 | 0.088789 | 0.011047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.150943 | 0.018868 | 0.320755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403ceb47a5257374ece3af5ee6603178afb5bfd2 | 5,704 | py | Python | experiments/colorization_cINN/data.py | jlmaccal/FrEIA | 64a04cb784e19bdff69546657f602fd31835c21f | [
"MIT"
] | null | null | null | experiments/colorization_cINN/data.py | jlmaccal/FrEIA | 64a04cb784e19bdff69546657f602fd31835c21f | [
"MIT"
] | null | null | null | experiments/colorization_cINN/data.py | jlmaccal/FrEIA | 64a04cb784e19bdff69546657f602fd31835c21f | [
"MIT"
] | null | null | null | import sys
import glob
from os.path import join
from multiprocessing import Pool
import numpy as np
import matplotlib.pyplot as plt
from skimage import io, color
from PIL import Image, ImageEnhance
import torch
from torch.utils.data import Dataset, DataLoader, TensorDataset
import torch.nn.functional as F
import torch... | 32.971098 | 144 | 0.603086 | 869 | 5,704 | 3.81588 | 0.279632 | 0.0193 | 0.009047 | 0.016586 | 0.106755 | 0.063329 | 0.053679 | 0.053679 | 0.043426 | 0.043426 | 0 | 0.040763 | 0.255961 | 5,704 | 172 | 145 | 33.162791 | 0.740575 | 0.134116 | 0 | 0.049587 | 0 | 0 | 0.026493 | 0.010393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041322 | false | 0 | 0.123967 | 0.008264 | 0.214876 | 0.033058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403d3f7c3cad2d68df2456deb94e9f014798faf1 | 16,215 | py | Python | utils/editor.py | tien1504/idinvert_pytorch | 19999e9945aef4843a464930426a565256863ded | [
"MIT"
] | 415 | 2020-04-02T03:06:47.000Z | 2022-03-28T09:32:13.000Z | utils/editor.py | tien1504/idinvert_pytorch | 19999e9945aef4843a464930426a565256863ded | [
"MIT"
] | 52 | 2020-04-03T04:13:57.000Z | 2021-11-23T16:52:31.000Z | utils/editor.py | tien1504/idinvert_pytorch | 19999e9945aef4843a464930426a565256863ded | [
"MIT"
] | 68 | 2020-04-03T10:08:30.000Z | 2021-10-29T20:13:45.000Z | # python 3.7
"""Utility functions for image editing from latent space."""
import os.path
import numpy as np
__all__ = [
'parse_indices', 'interpolate', 'mix_style',
'get_layerwise_manipulation_strength', 'manipulate', 'parse_boundary_list'
]
def parse_indices(obj, min_val=None, max_val=None):
"""Parses in... | 41.259542 | 80 | 0.687882 | 2,353 | 16,215 | 4.60561 | 0.145771 | 0.039863 | 0.034788 | 0.018271 | 0.300544 | 0.210298 | 0.167113 | 0.130479 | 0.115715 | 0.084525 | 0 | 0.010137 | 0.221277 | 16,215 | 392 | 81 | 41.364796 | 0.848103 | 0.478939 | 0 | 0.119565 | 0 | 0 | 0.161298 | 0.011065 | 0 | 0 | 0 | 0 | 0.054348 | 1 | 0.032609 | false | 0 | 0.01087 | 0 | 0.076087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
403e17c5ec985065a02c6baa32d0dcd4699f18d1 | 1,277 | py | Python | pymoo/util/normalization.py | Electr0phile/pymoo | 652428473cc68b6d9deada3792635bc8a831b255 | [
"Apache-2.0"
] | 1 | 2020-08-27T09:51:27.000Z | 2020-08-27T09:51:27.000Z | pymoo/util/normalization.py | Asurada2015/pymoo | 023a787d0b78813e789f170a3e94b2de85605aff | [
"Apache-2.0"
] | null | null | null | pymoo/util/normalization.py | Asurada2015/pymoo | 023a787d0b78813e789f170a3e94b2de85605aff | [
"Apache-2.0"
] | null | null | null | import numpy as np
def denormalize(x, x_min, x_max):
if x_max is None:
_range = 1
else:
_range = (x_max - x_min)
return x * _range + x_min
def normalize(x, x_min=None, x_max=None, return_bounds=False, estimate_bounds_if_none=True):
# if the bounds should be estimated if none do it... | 21.644068 | 92 | 0.617071 | 212 | 1,277 | 3.542453 | 0.320755 | 0.058589 | 0.037284 | 0.039947 | 0.231691 | 0.151798 | 0.151798 | 0 | 0 | 0 | 0 | 0.008939 | 0.299139 | 1,277 | 58 | 93 | 22.017241 | 0.830168 | 0.205168 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.030303 | 0.030303 | 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 |
4040e2297e78d48d586c2e4b34ffa775eb46c92e | 5,633 | py | Python | build/lib/adb_utils/adb_utils.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | build/lib/adb_utils/adb_utils.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | build/lib/adb_utils/adb_utils.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | import subprocess
import os
def get_connected_devices() -> list:
"""
Returns a list of tuples containing the Device name and the android Version
:return:
"""
devices = []
devices_output = subprocess.check_output(["adb", "devices"]).decode("utf-8").strip("List of devices attached").split("\n")
... | 27.081731 | 129 | 0.617788 | 755 | 5,633 | 4.513907 | 0.207947 | 0.026702 | 0.024648 | 0.024648 | 0.274061 | 0.195129 | 0.117371 | 0.098592 | 0.098592 | 0.098592 | 0 | 0.007165 | 0.256702 | 5,633 | 207 | 130 | 27.21256 | 0.806783 | 0.19084 | 0 | 0.4 | 0 | 0 | 0.146478 | 0.00558 | 0 | 0 | 0 | 0.004831 | 0 | 1 | 0.12 | false | 0.05 | 0.02 | 0 | 0.24 | 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 |
4041a6092503143d16664ce5f9772df9bdedc920 | 2,664 | py | Python | tests/unit/test_cl61d.py | griesche/cloudnetpy-1 | 0675677d1cb8dc4b09dfe5d76129df4483725fce | [
"MIT"
] | 1 | 2021-11-16T15:23:24.000Z | 2021-11-16T15:23:24.000Z | tests/unit/test_cl61d.py | griesche/cloudnetpy-1 | 0675677d1cb8dc4b09dfe5d76129df4483725fce | [
"MIT"
] | null | null | null | tests/unit/test_cl61d.py | griesche/cloudnetpy-1 | 0675677d1cb8dc4b09dfe5d76129df4483725fce | [
"MIT"
] | null | null | null | import glob
import os
import sys
from tempfile import TemporaryDirectory
import netCDF4
import numpy as np
import numpy.ma as ma
from all_products_fun import Check
from lidar_fun import LidarFun
from cloudnetpy import concat_lib
from cloudnetpy.instruments import ceilo2nc
SCRIPT_PATH = os.path.dirname(os.path.realpa... | 30.62069 | 81 | 0.634384 | 344 | 2,664 | 4.726744 | 0.351744 | 0.03321 | 0.055351 | 0.01968 | 0.099631 | 0.077491 | 0.077491 | 0.077491 | 0.077491 | 0.077491 | 0 | 0.032369 | 0.23461 | 2,664 | 86 | 82 | 30.976744 | 0.765081 | 0 | 0 | 0.027778 | 0 | 0 | 0.156532 | 0.019895 | 0 | 0 | 0 | 0 | 0.180556 | 1 | 0.083333 | false | 0 | 0.152778 | 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 |
4043eb802b57171a6cc605056ffc3abeca7f2a68 | 1,343 | py | Python | tests/functions/test_count.py | athre0z/clickhouse-sqlalchemy | d4be4a818c2fadef8eeb76a59d11ff82fc2c433a | [
"MIT"
] | 1 | 2021-07-07T09:06:00.000Z | 2021-07-07T09:06:00.000Z | tests/functions/test_count.py | athre0z/clickhouse-sqlalchemy | d4be4a818c2fadef8eeb76a59d11ff82fc2c433a | [
"MIT"
] | null | null | null | tests/functions/test_count.py | athre0z/clickhouse-sqlalchemy | d4be4a818c2fadef8eeb76a59d11ff82fc2c433a | [
"MIT"
] | null | null | null | from sqlalchemy import Column, func
from clickhouse_sqlalchemy import types, Table
from tests.testcase import (
BaseAbstractTestCase, HttpSessionTestCase, NativeSessionTestCase,
)
class CountTestCaseBase(BaseAbstractTestCase):
def create_table(self):
metadata = self.metadata()
return Table(
... | 27.408163 | 72 | 0.63589 | 141 | 1,343 | 5.93617 | 0.29078 | 0.064516 | 0.043011 | 0.0681 | 0.406213 | 0.293907 | 0.293907 | 0.193548 | 0.193548 | 0.129032 | 0 | 0.008982 | 0.253909 | 1,343 | 48 | 73 | 27.979167 | 0.826347 | 0.005957 | 0 | 0.235294 | 0 | 0 | 0.087055 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.117647 | false | 0 | 0.088235 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4043f84908b97607d02cc9c6faf2b455d08e20a4 | 1,055 | py | Python | scripts/commands/html/actions/search.py | stevekineeve88/orb | 284cc78659e88e85e8773599da3bda382a8bb833 | [
"MIT"
] | null | null | null | scripts/commands/html/actions/search.py | stevekineeve88/orb | 284cc78659e88e85e8773599da3bda382a8bb833 | [
"MIT"
] | null | null | null | scripts/commands/html/actions/search.py | stevekineeve88/orb | 284cc78659e88e85e8773599da3bda382a8bb833 | [
"MIT"
] | null | null | null | import click
import requests
from bs4 import BeautifulSoup
from modules.Word.managers.DictionaryManager import DictionaryManager
import re
@click.command()
@click.option('--url', help='URL to fetch from')
@click.pass_context
def search(ctx, url):
dictionary_manager: DictionaryManager = ctx.obj[DictionaryManager]
... | 30.142857 | 70 | 0.6 | 120 | 1,055 | 5.166667 | 0.483333 | 0.064516 | 0.035484 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013263 | 0.285308 | 1,055 | 34 | 71 | 31.029412 | 0.809019 | 0 | 0 | 0 | 0 | 0 | 0.087204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.03125 | 0.15625 | 0 | 0.1875 | 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 |
404411fc8cdef43afe8b983d66104ed1efd7c616 | 16,089 | py | Python | cell2cell/plotting/cci_plot.py | ckmah/cell2cell | ce18bbb63e12f9b1da8699567dec9a2a8b78f824 | [
"BSD-3-Clause"
] | 16 | 2020-09-30T01:53:43.000Z | 2022-03-25T09:58:54.000Z | cell2cell/plotting/cci_plot.py | ckmah/cell2cell | ce18bbb63e12f9b1da8699567dec9a2a8b78f824 | [
"BSD-3-Clause"
] | 2 | 2021-08-09T21:26:54.000Z | 2021-11-08T14:47:39.000Z | cell2cell/plotting/cci_plot.py | ckmah/cell2cell | ce18bbb63e12f9b1da8699567dec9a2a8b78f824 | [
"BSD-3-Clause"
] | 3 | 2021-11-08T07:47:44.000Z | 2022-03-30T18:40:00.000Z | # -*- coding: utf-8 -*-
import matplotlib as mpl
import numpy as np
import pandas as pd
import seaborn as sns
from matplotlib import pyplot as plt
from cell2cell.clustering import compute_linkage
from cell2cell.preprocessing.manipulate_dataframes import check_symmetry
from cell2cell.plotting.aesthetics import map_col... | 38.307143 | 122 | 0.605134 | 1,828 | 16,089 | 5.189825 | 0.178337 | 0.03879 | 0.02203 | 0.009487 | 0.499947 | 0.461157 | 0.412881 | 0.390956 | 0.331822 | 0.310741 | 0 | 0.005435 | 0.325253 | 16,089 | 420 | 123 | 38.307143 | 0.86846 | 0.374417 | 0 | 0.343915 | 0 | 0 | 0.074019 | 0.006537 | 0 | 0 | 0 | 0 | 0.005291 | 1 | 0.026455 | false | 0 | 0.042328 | 0 | 0.095238 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40465e4dbbb9334d5135c8ffe536947ae617c71d | 1,051 | py | Python | var/spack/repos/builtin.mock/packages/gnuconfig/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin.mock/packages/gnuconfig/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin.mock/packages/gnuconfig/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
class Gnuconfig(Package):
"""
The GNU config.guess and config.sub scripts... | 29.194444 | 78 | 0.669838 | 147 | 1,051 | 4.727891 | 0.578231 | 0.110791 | 0.040288 | 0.057554 | 0.192806 | 0.126619 | 0.126619 | 0.126619 | 0.126619 | 0.126619 | 0 | 0.032218 | 0.23216 | 1,051 | 35 | 79 | 30.028571 | 0.828996 | 0.404377 | 0 | 0 | 0 | 0 | 0.217755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40472eab6c9976684dd368889d9c68536758019e | 378 | py | Python | mp4box/parsing/ctts.py | abhijeetbhagat/mp4box | 841ff0ef70c7f5a96548f47414bba69c00aa2f5e | [
"BSD-3-Clause"
] | 7 | 2019-08-14T03:03:51.000Z | 2021-11-14T19:10:00.000Z | mp4box/parsing/ctts.py | wanyhamo/mp4box | c5c73cd37c01bd9d637f1f3ed82221065dc86d6f | [
"BSD-3-Clause"
] | 10 | 2019-08-03T16:27:08.000Z | 2019-09-10T10:05:23.000Z | mp4box/parsing/ctts.py | abhijeetbhagat/mp4box | 841ff0ef70c7f5a96548f47414bba69c00aa2f5e | [
"BSD-3-Clause"
] | 7 | 2019-08-19T17:58:03.000Z | 2021-03-03T07:25:54.000Z | from mp4box.box import CompositionTimeToSampleBox
def parse_ctts(reader, my_size):
version = reader.read32()
box = CompositionTimeToSampleBox(my_size, version, 0)
box.entry_count = reader.read32()
for _ in range(0, box.entry_count):
box.sample_count.append(reader.read32())
box... | 29.076923 | 58 | 0.693122 | 46 | 378 | 5.521739 | 0.5 | 0.188976 | 0.102362 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036667 | 0.206349 | 378 | 12 | 59 | 31.5 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
4047883a8f6ee83210f65d3f654ff142172cb4a8 | 24,485 | py | Python | MsLightweaverManager.py | Goobley/MsLightweaver | 6383867ba2a7ab00df947c8470b438d9eadcc321 | [
"MIT"
] | null | null | null | MsLightweaverManager.py | Goobley/MsLightweaver | 6383867ba2a7ab00df947c8470b438d9eadcc321 | [
"MIT"
] | 1 | 2020-05-05T13:49:54.000Z | 2021-04-29T12:41:40.000Z | MsLightweaverManager.py | Goobley/MsLightweaver | 6383867ba2a7ab00df947c8470b438d9eadcc321 | [
"MIT"
] | null | null | null | import pickle
import numpy as np
import matplotlib.pyplot as plt
from lightweaver.rh_atoms import H_6_atom, C_atom, O_atom, OI_ord_atom, Si_atom, Al_atom, Fe_atom, FeI_atom, MgII_atom, N_atom, Na_atom, S_atom, CaII_atom
from lightweaver.atmosphere import Atmosphere, ScaleType
from lightweaver.atomic_table import Defaul... | 37.611367 | 260 | 0.575128 | 3,126 | 24,485 | 4.420985 | 0.163148 | 0.047612 | 0.028654 | 0.020695 | 0.370912 | 0.332127 | 0.301447 | 0.284877 | 0.263676 | 0.263676 | 0 | 0.018221 | 0.305166 | 24,485 | 650 | 261 | 37.669231 | 0.794099 | 0.13739 | 0 | 0.416847 | 0 | 0 | 0.036141 | 0.00214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058315 | false | 0.00216 | 0.064795 | 0.00216 | 0.159827 | 0.019438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404999f8afb17c0ba6be91ab0f875db288f28bae | 1,895 | py | Python | common/writeExcel.py | lixiaofeng1993/DjangoBlog | 94d062324367b8a30edf8d29e2e661c822bcb7c1 | [
"MIT"
] | null | null | null | common/writeExcel.py | lixiaofeng1993/DjangoBlog | 94d062324367b8a30edf8d29e2e661c822bcb7c1 | [
"MIT"
] | 6 | 2020-06-06T00:44:08.000Z | 2022-01-13T01:52:46.000Z | common/writeExcel.py | lixiaofeng1993/DjangoBlog | 94d062324367b8a30edf8d29e2e661c822bcb7c1 | [
"MIT"
] | null | null | null | # coding:utf-8
from openpyxl import load_workbook
import openpyxl
from openpyxl.styles import Font, colors
def copy_excel(cese_path, report_path):
"""
复制测试用例到report_path
:param cese_path:
:param report_path:
:return:
"""
wb2 = openpyxl.Workbook()
wb2.save(report_path) # 在设置的路径下创建一个exc... | 28.712121 | 65 | 0.601055 | 259 | 1,895 | 4.220077 | 0.409266 | 0.045746 | 0.025618 | 0.029277 | 0.076853 | 0.060384 | 0.060384 | 0.043916 | 0.043916 | 0 | 0 | 0.036612 | 0.264908 | 1,895 | 65 | 66 | 29.153846 | 0.748026 | 0.168338 | 0 | 0.095238 | 0 | 0 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.02381 | 0.071429 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404a28cfcd9e972210d8ead53be99918c37812fc | 1,904 | py | Python | test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py | zhaoming0/webml-polyfill | 56cf96eff96665da0f5fd7ef86fd5748f4bd22b9 | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py | zhaoming0/webml-polyfill | 56cf96eff96665da0f5fd7ef86fd5748f4bd22b9 | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py | ibelem/webml-polyfill | aaf1ba4f5357eaf6e89bf9990f5bdfb543cd2bc2 | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | #
# Copyright (C) 2018 The Android Open Source Project
#
# 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 la... | 31.733333 | 74 | 0.56355 | 282 | 1,904 | 3.741135 | 0.439716 | 0.056872 | 0.03981 | 0.030332 | 0.032227 | 0.032227 | 0 | 0 | 0 | 0 | 0 | 0.13037 | 0.290966 | 1,904 | 59 | 75 | 32.271186 | 0.651111 | 0.419118 | 0 | 0 | 0 | 0 | 0.142593 | 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 |
404bea024a89b873fc6d227cd6a12a54af3b3b8c | 3,447 | py | Python | src/semantic_parsing_with_constrained_lm/eval.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 17 | 2021-09-22T13:08:37.000Z | 2022-03-27T10:39:53.000Z | src/semantic_parsing_with_constrained_lm/eval.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2022-03-12T01:05:15.000Z | 2022-03-12T01:05:15.000Z | src/semantic_parsing_with_constrained_lm/eval.py | microsoft/semantic_parsing_with_constrained_lm | 7e3c099500c3102e46d7a47469fe6840580c2b11 | [
"MIT"
] | 1 | 2021-12-16T22:26:54.000Z | 2021-12-16T22:26:54.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import dataclasses
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Dict, Generic, List, Optional, Sequence, TypeVar
from semantic_parsing_with_constrained_lm.datum import FullDatum, FullDatumSub
from sema... | 32.214953 | 81 | 0.630403 | 437 | 3,447 | 4.883295 | 0.315789 | 0.019681 | 0.021087 | 0.025305 | 0.176195 | 0.14433 | 0.086223 | 0.086223 | 0.086223 | 0.086223 | 0 | 0.003864 | 0.249202 | 3,447 | 106 | 82 | 32.518868 | 0.820711 | 0.140992 | 0 | 0.25 | 0 | 0 | 0.110656 | 0.00888 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.118421 | false | 0.039474 | 0.078947 | 0 | 0.315789 | 0.118421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404beb06647e2d6fc143a0b58a7a3cacb5877553 | 959 | py | Python | irrigation_control/irrigation_control_py3/common_irrigation_chains_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 2 | 2018-02-21T03:46:51.000Z | 2019-12-24T16:40:51.000Z | irrigation_control/irrigation_control_py3/common_irrigation_chains_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 7 | 2020-07-16T19:54:08.000Z | 2022-03-02T03:29:07.000Z | irrigation_control/irrigation_control_py3/common_irrigation_chains_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 2 | 2018-04-16T07:02:35.000Z | 2020-07-23T21:57:19.000Z |
class Check_Excessive_Current(object):
def __init__(self,chain_name,cf,handlers,irrigation_io,irrigation_hash_control,get_json_object):
self.get_json_object = get_json_object
cf.define_chain(chain_name, False )
#cf.insert.log("check_excessive_current")
cf.insert.ass... | 33.068966 | 100 | 0.691345 | 116 | 959 | 5.318966 | 0.405172 | 0.103728 | 0.170178 | 0.074554 | 0.094003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002692 | 0.225235 | 959 | 28 | 101 | 34.25 | 0.827725 | 0.084463 | 0 | 0 | 0 | 0 | 0.084323 | 0.084323 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0 | 0.066667 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404c32173164735222505b93f1ef2b7219cec987 | 8,913 | py | Python | lib/surface/spanner/operations/list.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/spanner/operations/list.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/spanner/operations/list.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 37.766949 | 95 | 0.674072 | 1,064 | 8,913 | 5.556391 | 0.223684 | 0.037889 | 0.014885 | 0.020298 | 0.509303 | 0.468031 | 0.407307 | 0.368572 | 0.328315 | 0.312077 | 0 | 0.002463 | 0.225738 | 8,913 | 235 | 96 | 37.92766 | 0.854224 | 0.230001 | 0 | 0.321678 | 0 | 0.020979 | 0.45464 | 0.154075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034965 | false | 0 | 0.076923 | 0 | 0.202797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404d173b85da7aa2302b72d549875f4086a67bcc | 1,790 | py | Python | data_scripts/translation.py | wangcongcong123/transection | 3b931ce09c9b5e03ec6afdea6f58a317ad07361b | [
"MIT"
] | 4 | 2021-01-11T06:21:27.000Z | 2021-12-19T17:49:07.000Z | data_scripts/translation.py | wangcongcong123/transection | 3b931ce09c9b5e03ec6afdea6f58a317ad07361b | [
"MIT"
] | null | null | null | data_scripts/translation.py | wangcongcong123/transection | 3b931ce09c9b5e03ec6afdea6f58a317ad07361b | [
"MIT"
] | 2 | 2021-01-21T02:48:49.000Z | 2021-03-19T09:45:52.000Z | # coding=utf-8
# This script is finished following HF's datasets' template:
# https://github.com/huggingface/datasets/blob/master/templates/new_dataset_script.py
# More examples as references to write a customized dataset can be found here:
# https://github.com/huggingface/datasets/tree/master/datasets
from __future__... | 32.545455 | 103 | 0.622346 | 188 | 1,790 | 5.68617 | 0.521277 | 0.04116 | 0.026193 | 0.046773 | 0.192703 | 0.057998 | 0 | 0 | 0 | 0 | 0 | 0.003799 | 0.264804 | 1,790 | 54 | 104 | 33.148148 | 0.808511 | 0.194972 | 0 | 0.052632 | 0 | 0 | 0.073427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.078947 | 0.026316 | 0.236842 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404f20db207c728bba35266d11df1248aa4d138a | 7,941 | py | Python | utils/chat_formatting.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 13 | 2018-11-26T15:55:28.000Z | 2022-02-05T16:07:02.000Z | utils/chat_formatting.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 8 | 2018-11-12T19:04:01.000Z | 2018-11-23T15:11:55.000Z | utils/chat_formatting.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 23 | 2019-01-01T23:53:37.000Z | 2022-03-12T14:52:45.000Z | import itertools
from typing import Sequence, Iterator
# Source: https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/core/utils/chat_formatting.py
def error(text: str) -> str:
"""Get text prefixed with an error emoji.
Returns
-------
str
The new message.
"""
return "... | 27.28866 | 109 | 0.546783 | 970 | 7,941 | 4.398969 | 0.23299 | 0.029529 | 0.03656 | 0.02742 | 0.249824 | 0.246309 | 0.220295 | 0.189829 | 0.10218 | 0.093743 | 0 | 0.004986 | 0.318096 | 7,941 | 290 | 110 | 27.382759 | 0.781902 | 0.401209 | 0 | 0.100917 | 0 | 0 | 0.068924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119266 | false | 0 | 0.018349 | 0 | 0.247706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
404ff68f947024e93fe50b765fa029be24f36c84 | 35,410 | py | Python | strategy/trade/strategymargintrade.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | strategy/trade/strategymargintrade.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | strategy/trade/strategymargintrade.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | # @date 2018-12-28
# @author Frederic Scherma, All rights reserved without prejudices.
# @license Copyright (c) 2018 Dream Overflow
# Strategy trade for margin with multiples positions.
from __future__ import annotations
from typing import TYPE_CHECKING, Optional, Tuple
if TYPE_CHECKING:
from trader.trader impor... | 37.352321 | 119 | 0.553347 | 4,178 | 35,410 | 4.512686 | 0.073001 | 0.029702 | 0.029172 | 0.022276 | 0.730084 | 0.674976 | 0.622202 | 0.585976 | 0.558767 | 0.549273 | 0 | 0.005604 | 0.365038 | 35,410 | 947 | 120 | 37.391763 | 0.832948 | 0.141316 | 0 | 0.66835 | 0 | 0 | 0.062048 | 0.010281 | 0 | 0 | 0 | 0.004224 | 0 | 1 | 0.038721 | false | 0.003367 | 0.016835 | 0.010101 | 0.153199 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4050460227ae968820c1eb94e5dff24549e4e557 | 1,165 | py | Python | ultron/utilities/zlib_engine.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 4 | 2019-06-06T09:38:49.000Z | 2022-01-29T00:02:11.000Z | ultron/utilities/zlib_engine.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 1 | 2022-02-11T03:43:10.000Z | 2022-02-11T03:43:10.000Z | ultron/utilities/zlib_engine.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 8 | 2019-06-02T13:11:00.000Z | 2021-11-11T01:06:22.000Z | # -*- coding: utf-8 -*-
import os,os.path
import zipfile
def zip_compress(dir_name, zip_filename):
filelist = []
if os.path.isfile(dir_name):
filelist.append(dir_name)
else :
for root, dirs, files in os.walk(dir_name):
for name in files:
filelist.append(os.path.... | 32.361111 | 66 | 0.581974 | 153 | 1,165 | 4.287582 | 0.313725 | 0.073171 | 0.045732 | 0.07622 | 0.118902 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0.001211 | 0.290987 | 1,165 | 36 | 67 | 32.361111 | 0.792978 | 0.018026 | 0 | 0.064516 | 0 | 0 | 0.006124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4050b29c16a41f96705714cdbf17492431b85f0e | 1,985 | py | Python | scripts/instances2inventory.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | scripts/instances2inventory.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | scripts/instances2inventory.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import boto
import boto.ec2
import sys
from pprint import pprint
from collections import defaultdict
output = defaultdict(lambda: [])
comments = defaultdict(lambda: {})
skip_region_strings = ['us-gov', 'cn-', 'ca-']
#skip_region_strings = ['us-gov', 'cn-', 'ca-', 'eu-', 'ap-']
if len(sys.arg... | 25.126582 | 144 | 0.602519 | 272 | 1,985 | 4.308824 | 0.327206 | 0.051195 | 0.076792 | 0.05802 | 0.272184 | 0.272184 | 0.120307 | 0.068259 | 0 | 0 | 0 | 0.006605 | 0.23728 | 1,985 | 78 | 145 | 25.448718 | 0.767503 | 0.040806 | 0 | 0.288136 | 0 | 0 | 0.099895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084746 | 0 | 0.084746 | 0.135593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4051ffa508f128d4ca3a6951f908adec0dd2fce3 | 1,235 | py | Python | 0000_examples/grasping_antipodal_planning.py | huzhengtao14z/wrs | d567787ca41818f1756c325b304215faf7f10f29 | [
"MIT"
] | null | null | null | 0000_examples/grasping_antipodal_planning.py | huzhengtao14z/wrs | d567787ca41818f1756c325b304215faf7f10f29 | [
"MIT"
] | null | null | null | 0000_examples/grasping_antipodal_planning.py | huzhengtao14z/wrs | d567787ca41818f1756c325b304215faf7f10f29 | [
"MIT"
] | null | null | null | import math
import visualization.panda.world as wd
import modeling.geometric_model as gm
import modeling.collision_model as cm
import grasping.planning.antipodal as gpa
import robot_sim.end_effectors.grippers.yumi_gripper.yumi_gripper as yg
base = wd.World(cam_pos=[1, 1, 1],w=960,
h=540, lookat_pos=[0... | 44.107143 | 95 | 0.701215 | 184 | 1,235 | 4.36413 | 0.51087 | 0.05604 | 0.044832 | 0.03736 | 0.067248 | 0.067248 | 0 | 0 | 0 | 0 | 0 | 0.035247 | 0.195951 | 1,235 | 28 | 96 | 44.107143 | 0.773414 | 0.009717 | 0 | 0 | 0 | 0 | 0.043407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
40544e3050932f38de418744707458dee5d3337b | 60,103 | py | Python | keystone/assignment/core.py | pritha-srivastava/keystone | 69abe058328954becdea13cc245459f2ba2342fc | [
"Apache-2.0"
] | null | null | null | keystone/assignment/core.py | pritha-srivastava/keystone | 69abe058328954becdea13cc245459f2ba2342fc | [
"Apache-2.0"
] | null | null | null | keystone/assignment/core.py | pritha-srivastava/keystone | 69abe058328954becdea13cc245459f2ba2342fc | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.520741 | 79 | 0.606842 | 7,386 | 60,103 | 4.683455 | 0.082318 | 0.029487 | 0.012257 | 0.008326 | 0.523676 | 0.465397 | 0.437269 | 0.396855 | 0.375173 | 0.343085 | 0 | 0.000473 | 0.33198 | 60,103 | 1,349 | 80 | 44.553744 | 0.861096 | 0.304744 | 0 | 0.363517 | 0 | 0 | 0.064577 | 0.002394 | 0 | 0 | 0 | 0.002965 | 0 | 1 | 0.074803 | false | 0 | 0.014436 | 0.003937 | 0.165354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4059ed80d6a8d54038d707dea3406a21f8501339 | 3,193 | py | Python | single-shot-pose/lib/linemod_dataset.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 112 | 2018-04-18T07:13:03.000Z | 2022-03-11T03:36:34.000Z | single-shot-pose/lib/linemod_dataset.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 16 | 2018-05-11T11:41:08.000Z | 2021-04-24T03:50:54.000Z | single-shot-pose/lib/linemod_dataset.py | take-cheeze/models | 3ded8fd062c57f20f6154cac2dd0d998181de755 | [
"MIT"
] | 45 | 2018-04-18T07:13:06.000Z | 2021-12-22T03:46:18.000Z | import numpy as np
import os
from chainercv.chainer_experimental.datasets.sliceable import GetterDataset
from chainercv.utils import read_image
linemod_object_diameters = {
'ape': 0.103,
'benchvise': 0.286908,
'cam': 0.173,
'can': 0.202,
'cat': 0.155,
'driller': 0.262,
'duck': 0.109,
... | 30.409524 | 75 | 0.551832 | 435 | 3,193 | 3.887356 | 0.333333 | 0.082791 | 0.02602 | 0.024837 | 0.081609 | 0.061502 | 0.061502 | 0.061502 | 0.061502 | 0.061502 | 0 | 0.060633 | 0.287191 | 3,193 | 104 | 76 | 30.701923 | 0.682337 | 0.009082 | 0 | 0.023529 | 0 | 0 | 0.055028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0 | 0.047059 | 0.011765 | 0.223529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
405c6e44b37edbad093dd87de80a9e8b880c990d | 3,036 | py | Python | tests/routes/test_hackers.py | TorrentofShame/hackathon-2021-backend | a85989421df8ad900b01ad026dbe713312b0a54e | [
"MIT"
] | null | null | null | tests/routes/test_hackers.py | TorrentofShame/hackathon-2021-backend | a85989421df8ad900b01ad026dbe713312b0a54e | [
"MIT"
] | null | null | null | tests/routes/test_hackers.py | TorrentofShame/hackathon-2021-backend | a85989421df8ad900b01ad026dbe713312b0a54e | [
"MIT"
] | null | null | null | # flake8: noqa
import json
from src.models.hacker import Hacker
from tests.base import BaseTestCase
from datetime import datetime
class TestHackersBlueprint(BaseTestCase):
"""Tests for the Hackers Endpoints"""
"""create_hacker"""
def test_create_hacker(self):
now = datetime.now()
res = s... | 28.641509 | 96 | 0.560606 | 323 | 3,036 | 5.148607 | 0.22291 | 0.135298 | 0.046903 | 0.086591 | 0.66386 | 0.634997 | 0.594107 | 0.594107 | 0.541191 | 0.541191 | 0 | 0.012706 | 0.300066 | 3,036 | 105 | 97 | 28.914286 | 0.769882 | 0.014822 | 0 | 0.532468 | 0 | 0 | 0.155857 | 0.019694 | 0 | 0 | 0 | 0 | 0.207792 | 1 | 0.077922 | false | 0 | 0.051948 | 0 | 0.142857 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
405e5ce74a48720ac95f86fcad8f93d05cb3edfc | 13,330 | py | Python | open_cp/sources/chicago.py | sumau/PredictCode | e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8 | [
"Artistic-2.0"
] | 18 | 2017-04-19T09:17:19.000Z | 2021-05-24T08:53:28.000Z | open_cp/sources/chicago.py | sumau/PredictCode | e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8 | [
"Artistic-2.0"
] | 8 | 2017-06-11T17:46:35.000Z | 2021-06-07T10:49:10.000Z | open_cp/sources/chicago.py | sumau/PredictCode | e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8 | [
"Artistic-2.0"
] | 10 | 2017-07-19T18:29:37.000Z | 2020-11-12T22:06:45.000Z | """
sources.chicago
===============
Reads a CSV file in the format (as of April 2017) of data available from:
- https://catalog.data.gov/dataset/crimes-one-year-prior-to-present-e171f
- https://catalog.data.gov/dataset/crimes-2001-to-present-398a4
The default data is loaded from a file "chicago.csv" which should be ... | 37.130919 | 113 | 0.641485 | 1,764 | 13,330 | 4.681406 | 0.213719 | 0.009324 | 0.016711 | 0.008234 | 0.233592 | 0.203197 | 0.166505 | 0.157544 | 0.132357 | 0.109591 | 0 | 0.015547 | 0.237584 | 13,330 | 358 | 114 | 37.234637 | 0.797009 | 0.327532 | 0 | 0.168182 | 0 | 0 | 0.175795 | 0.005106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095455 | false | 0.004545 | 0.031818 | 0.004545 | 0.222727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
405e96dac8375ff59b836544a212c81d70fbb3ff | 2,140 | py | Python | Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py | kimi0230/LeetcodeGolang | 2b276e49b67d7f66731ce6c629cd1390642af230 | [
"MIT"
] | 4 | 2021-07-21T01:16:11.000Z | 2022-01-11T07:43:51.000Z | Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py | kimi0230/LeetcodeGolang | 2b276e49b67d7f66731ce6c629cd1390642af230 | [
"MIT"
] | null | null | null | Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py | kimi0230/LeetcodeGolang | 2b276e49b67d7f66731ce6c629cd1390642af230 | [
"MIT"
] | null | null | null | # https://github.com/Anfany/Codility-Lessons-By-Python3/blob/master/L11_Sieve%20of%20Eratosthenes/11.2%20CountSemiprimes.md
def solution(N, P, Q):
"""
返回由数组P、Q的元素组成的区间内,不大于N的半素数的个数, 时间复杂度O(N * log(log(N)) + M)
:param N: 半素数的最大值
:param P: 数组
:param Q: 数组
:return: 每次查询,得到的半素数的个数
"""
# 半素数... | 33.4375 | 191 | 0.482243 | 311 | 2,140 | 3.189711 | 0.324759 | 0.090726 | 0.060484 | 0.048387 | 0.125 | 0.125 | 0.125 | 0.072581 | 0.072581 | 0 | 0 | 0.123205 | 0.381776 | 2,140 | 64 | 192 | 33.4375 | 0.626606 | 0.306075 | 0 | 0.276596 | 0 | 0 | 0.018659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0 | 0 | 0.042553 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4061ef1026efc595fdfdf42014af88613e5012a6 | 2,634 | py | Python | orders/tests/test_views.py | ms0680146/Order_System | 934c3849ad0d72c0ce560706a6857870935e8599 | [
"MIT"
] | null | null | null | orders/tests/test_views.py | ms0680146/Order_System | 934c3849ad0d72c0ce560706a6857870935e8599 | [
"MIT"
] | null | null | null | orders/tests/test_views.py | ms0680146/Order_System | 934c3849ad0d72c0ce560706a6857870935e8599 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.urls import reverse
from orders.models import Order, OrderItem
from datetime import datetime
from django.utils.timezone import get_current_timezone
import pytz
class TestViews(TestCase):
def setUp(self):
self.client = Client()
def test_home_GET... | 34.207792 | 118 | 0.612756 | 288 | 2,634 | 5.454861 | 0.253472 | 0.044558 | 0.080204 | 0.089115 | 0.524507 | 0.346913 | 0.269255 | 0.18014 | 0.18014 | 0.137492 | 0 | 0.027239 | 0.275247 | 2,634 | 77 | 118 | 34.207792 | 0.795705 | 0 | 0 | 0.202899 | 0 | 0 | 0.091082 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 1 | 0.101449 | false | 0 | 0.086957 | 0 | 0.202899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4063e065b5e1d8a9952507fe4d95419e55a2613a | 1,153 | py | Python | src/token_classification/format.py | adriens63/BERT_fine_tuning_for_MLM_and_token_classification | 89ff0d8ed12da370b1f8757ae9db8d725143a5bb | [
"Apache-2.0"
] | null | null | null | src/token_classification/format.py | adriens63/BERT_fine_tuning_for_MLM_and_token_classification | 89ff0d8ed12da370b1f8757ae9db8d725143a5bb | [
"Apache-2.0"
] | 1 | 2021-12-10T15:26:05.000Z | 2021-12-10T15:26:05.000Z | src/token_classification/format.py | adriens63/BERT_fine_tuning_for_MLM_and_token_classification | 89ff0d8ed12da370b1f8757ae9db8d725143a5bb | [
"Apache-2.0"
] | 3 | 2021-12-05T12:43:23.000Z | 2021-12-10T15:42:40.000Z | import os.path as osp
import argparse
import yaml
from src.token_classification.archs.data_formatter import *
# ********************* launch formating ***********************
# cmd to launch : python -m src.token_classification.format --config ./src/token_classification/config/config.yml
if __name__ == '__main__... | 32.942857 | 142 | 0.674761 | 145 | 1,153 | 5.186207 | 0.537931 | 0.031915 | 0.087766 | 0.045213 | 0.071809 | 0.071809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168257 | 1,153 | 34 | 143 | 33.911765 | 0.78415 | 0.150911 | 0 | 0 | 0 | 0.045455 | 0.248975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4063f5350f19ec0fcf289e841719b7191b72872c | 6,393 | py | Python | add.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | add.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | add.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import os, sys, time
import numpy as np
import scipy.sparse
import scipy.linalg
import scipy.sparse.linalg
from astropy.table import Table, Column
import multiprocessing
from desiutil.log import get_logger
from desispec.interpolation import resample... | 40.980769 | 126 | 0.552323 | 805 | 6,393 | 4.318012 | 0.226087 | 0.024453 | 0.034522 | 0.021577 | 0.229287 | 0.177503 | 0.078251 | 0.062716 | 0.050633 | 0.050633 | 0 | 0.014891 | 0.327702 | 6,393 | 155 | 127 | 41.245161 | 0.793858 | 0.11497 | 0 | 0.160714 | 0 | 0 | 0.024586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008929 | false | 0 | 0.133929 | 0 | 0.142857 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40642da36f0613fe957f14edea19df84f13b530a | 2,525 | py | Python | pontoon/pretranslation/tests/test_pretranslate.py | timvisee/pontoon | aec1ef7b5c5d56c3be28fecf1147945d2622bbad | [
"BSD-3-Clause"
] | null | null | null | pontoon/pretranslation/tests/test_pretranslate.py | timvisee/pontoon | aec1ef7b5c5d56c3be28fecf1147945d2622bbad | [
"BSD-3-Clause"
] | null | null | null | pontoon/pretranslation/tests/test_pretranslate.py | timvisee/pontoon | aec1ef7b5c5d56c3be28fecf1147945d2622bbad | [
"BSD-3-Clause"
] | null | null | null | from mock import patch
import pytest
from pontoon.base.models import User
from pontoon.pretranslation.pretranslate import get_translations
from pontoon.test.factories import (
EntityFactory,
TranslationMemoryFactory,
)
@patch("pontoon.pretranslation.pretranslate.get_google_translate_data")
@pytest.mark.djan... | 34.121622 | 87 | 0.693069 | 313 | 2,525 | 5.367412 | 0.246006 | 0.107143 | 0.1 | 0.048214 | 0.435119 | 0.316667 | 0.213095 | 0.160714 | 0.160714 | 0.160714 | 0 | 0.016288 | 0.197624 | 2,525 | 73 | 88 | 34.589041 | 0.812932 | 0.105743 | 0 | 0.036364 | 0 | 0 | 0.087922 | 0.046625 | 0 | 0 | 0 | 0 | 0.109091 | 1 | 0.018182 | false | 0 | 0.090909 | 0 | 0.109091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
406526a2d40a76aa8b9a7ce0c6aadecb3ce65af4 | 9,615 | py | Python | cubes/common.py | digitalsatori/cubes | 140133e8c2e3f2ff60631cc3ebc9966d16c1655e | [
"MIT"
] | 1,020 | 2015-01-02T03:05:26.000Z | 2022-02-12T18:48:51.000Z | cubes/common.py | digitalsatori/cubes | 140133e8c2e3f2ff60631cc3ebc9966d16c1655e | [
"MIT"
] | 259 | 2015-01-02T22:35:14.000Z | 2021-09-02T04:20:41.000Z | cubes/common.py | digitalsatori/cubes | 140133e8c2e3f2ff60631cc3ebc9966d16c1655e | [
"MIT"
] | 288 | 2015-01-08T00:42:26.000Z | 2022-03-31T17:25:10.000Z | # -*- encoding: utf-8 -*-
"""Utility functions for computing combinations of dimensions and hierarchy
levels"""
from __future__ import absolute_import
import re
import os.path
import json
from collections import OrderedDict
from .errors import ModelInconsistencyError, ArgumentError, ConfigurationError
from . impor... | 30.141066 | 83 | 0.584191 | 1,135 | 9,615 | 4.848458 | 0.25815 | 0.019626 | 0.007996 | 0.009449 | 0.081774 | 0.056696 | 0.045066 | 0.028712 | 0 | 0 | 0 | 0.001796 | 0.305148 | 9,615 | 318 | 84 | 30.235849 | 0.821434 | 0.26209 | 0 | 0.13089 | 0 | 0 | 0.100116 | 0.003772 | 0 | 0 | 0 | 0.003145 | 0.026178 | 1 | 0.109948 | false | 0.015707 | 0.052356 | 0.005236 | 0.240838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40665e1c58be6db40c3e5c0613a58755896c8a6f | 4,366 | py | Python | wavenet_iaf.py | Ella77/ClariNet | 1a2eea899f5c28b34beb6fb08725f38309e7e053 | [
"MIT"
] | 126 | 2019-05-23T03:37:43.000Z | 2021-08-02T20:15:22.000Z | wavenet_iaf.py | Ella77/ClariNet | 1a2eea899f5c28b34beb6fb08725f38309e7e053 | [
"MIT"
] | 4 | 2019-06-05T11:30:51.000Z | 2022-03-17T09:01:29.000Z | wavenet_iaf.py | Ella77/ClariNet | 1a2eea899f5c28b34beb6fb08725f38309e7e053 | [
"MIT"
] | 24 | 2019-05-23T03:37:39.000Z | 2021-12-23T22:29:01.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from modules import Conv, ResBlock
class Wavenet_Student(nn.Module):
def __init__(self, num_blocks_student=[1, 1, 1, 1, 1, 1], num_layers=10,
front_channels=32, residual_channels=64, gate_channels=128, skip_channels=64,
... | 39.690909 | 111 | 0.584517 | 570 | 4,366 | 4.219298 | 0.161404 | 0.04657 | 0.037838 | 0.023285 | 0.264865 | 0.190437 | 0.139709 | 0.114761 | 0.085655 | 0.085655 | 0 | 0.019437 | 0.316537 | 4,366 | 109 | 112 | 40.055046 | 0.786528 | 0 | 0 | 0.107527 | 0 | 0 | 0.002749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11828 | false | 0 | 0.043011 | 0.021505 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4067311b4e6925a510e59163839cef51d453a910 | 5,234 | py | Python | ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py | kiv-box/kafka | debec1c4bc8c43776070ee447a53b55fef42bd52 | [
"Apache-2.0"
] | null | null | null | ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py | kiv-box/kafka | debec1c4bc8c43776070ee447a53b55fef42bd52 | [
"Apache-2.0"
] | null | null | null | ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py | kiv-box/kafka | debec1c4bc8c43776070ee447a53b55fef42bd52 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, Michael Perzel
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at you... | 31.914634 | 97 | 0.643676 | 686 | 5,234 | 4.673469 | 0.333819 | 0.061759 | 0.022458 | 0.034935 | 0.259202 | 0.218341 | 0.174672 | 0.174672 | 0.144417 | 0.134747 | 0 | 0.007898 | 0.250096 | 5,234 | 163 | 98 | 32.110429 | 0.808917 | 0.143103 | 0 | 0.260504 | 0 | 0 | 0.381134 | 0.023303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0.02521 | 0.042017 | 0 | 0.109244 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4067fffb2bd9b7aaa8d3273ea742884e5f876e2d | 1,219 | py | Python | Advanced/1- Introduction/5- Index_words.py | AlirezaMojtabavi/Python_Practice | c0128d6ce4cf172d93cc4e48861e7980e8e016a2 | [
"MIT"
] | null | null | null | Advanced/1- Introduction/5- Index_words.py | AlirezaMojtabavi/Python_Practice | c0128d6ce4cf172d93cc4e48861e7980e8e016a2 | [
"MIT"
] | null | null | null | Advanced/1- Introduction/5- Index_words.py | AlirezaMojtabavi/Python_Practice | c0128d6ce4cf172d93cc4e48861e7980e8e016a2 | [
"MIT"
] | 1 | 2020-11-14T07:19:26.000Z | 2020-11-14T07:19:26.000Z |
indexWords = list()
def PreviousWord(_list, _word):
if _list[_list.index(_word)-1] :
return _list[_list.index(_word)-1]
else:
return
phrase = str(input())
phraseList = phrase.split(" ")
length = len(phraseList)
for item in phraseList :
item = item.strip()
if phrase != "" :
fo... | 31.25641 | 74 | 0.538966 | 134 | 1,219 | 4.843284 | 0.261194 | 0.169492 | 0.07396 | 0.11094 | 0.300462 | 0.244992 | 0.244992 | 0.244992 | 0.175655 | 0 | 0 | 0.02459 | 0.299426 | 1,219 | 39 | 75 | 31.25641 | 0.735363 | 0 | 0 | 0.272727 | 0 | 0 | 0.015587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
406c19e470ed1397c6d2535e8a38599b7798d3a3 | 2,906 | py | Python | custom/ahex.py | piyush1104/ColorHelper | 7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc | [
"MIT"
] | null | null | null | custom/ahex.py | piyush1104/ColorHelper | 7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc | [
"MIT"
] | null | null | null | custom/ahex.py | piyush1104/ColorHelper | 7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc | [
"MIT"
] | null | null | null | """Custon color that looks for colors of format `#RRGGBBAA` as `#AARRGGBB`."""
from coloraide.css.colors import Color, SRGB
from coloraide.colors import _parse as parse
from coloraide import util
import copy
import re
class ASRGB(SRGB):
"""SRGB that looks for alpha first in hex format."""
MATCH = re.compile(... | 33.022727 | 100 | 0.547144 | 368 | 2,906 | 4.217391 | 0.266304 | 0.092784 | 0.085696 | 0.072165 | 0.325387 | 0.272552 | 0.20232 | 0.20232 | 0.112113 | 0.112113 | 0 | 0.039663 | 0.305919 | 2,906 | 87 | 101 | 33.402299 | 0.729797 | 0.109085 | 0 | 0.258065 | 0 | 0 | 0.050529 | 0.022718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.080645 | 0 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
406c1c0028a84aba8bcd01a2421dbf11b583f400 | 2,115 | py | Python | source_code/terrain.py | Wiolarz/Console_PY_dungeon | cbf3b9a68251b9ce620aac1f4ca36361160186ea | [
"Apache-2.0"
] | null | null | null | source_code/terrain.py | Wiolarz/Console_PY_dungeon | cbf3b9a68251b9ce620aac1f4ca36361160186ea | [
"Apache-2.0"
] | 2 | 2021-11-29T16:26:03.000Z | 2021-11-29T16:27:14.000Z | source_code/terrain.py | Wiolarz/Console_PY_dungeon | cbf3b9a68251b9ce620aac1f4ca36361160186ea | [
"Apache-2.0"
] | null | null | null | import random
import jobs
import balance
from economy import roman_numbers
class Earth:
def __init__(self):
self.current_day = 1
self.main_quest = None
self.amount_location = 7 # max 8
self.locations = []
#
self.location_names = []
def new_quest(self):
... | 27.467532 | 113 | 0.613239 | 261 | 2,115 | 4.754789 | 0.35249 | 0.056406 | 0.058018 | 0.027397 | 0.04996 | 0.04996 | 0.04996 | 0 | 0 | 0 | 0 | 0.015758 | 0.279905 | 2,115 | 76 | 114 | 27.828947 | 0.799081 | 0.065248 | 0 | 0.076923 | 0 | 0 | 0.065515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.019231 | 0.269231 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
406e0a83e413ef1e4bba7c5add21f6292e7188e7 | 2,328 | py | Python | pusion/input_output/file_input_output.py | IPVS-AS/pusion | 58ef24b602f611192430f6005ecf5305f878f412 | [
"MIT"
] | 5 | 2021-07-24T16:05:12.000Z | 2022-01-21T15:06:03.000Z | pusion/input_output/file_input_output.py | IPVS-AS/pusion | 58ef24b602f611192430f6005ecf5305f878f412 | [
"MIT"
] | null | null | null | pusion/input_output/file_input_output.py | IPVS-AS/pusion | 58ef24b602f611192430f6005ecf5305f878f412 | [
"MIT"
] | 2 | 2021-07-24T16:05:14.000Z | 2022-03-25T21:24:40.000Z | import json
import ntpath
import shutil
from pathlib import Path
import pickle5
def load_pickle_files_as_data(file_paths):
"""
Load pickle files containing decision outputs as an data array.
:param file_paths: A List of file paths to the individual pickle files.
:return: A data array.
"""
da... | 32.333333 | 97 | 0.681701 | 319 | 2,328 | 4.865204 | 0.282132 | 0.054124 | 0.028995 | 0.036727 | 0.400129 | 0.344072 | 0.277062 | 0.277062 | 0.277062 | 0.277062 | 0 | 0.00271 | 0.207474 | 2,328 | 71 | 98 | 32.788732 | 0.838482 | 0.421821 | 0 | 0.214286 | 0 | 0 | 0.050737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.178571 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4072139f6fa73549f4c92cc0b2aa6d9bd1e96911 | 1,172 | py | Python | Scientific Computing with Python/Probability Calculator/prob_calculator.py | Fradxyz/FCCProjects | f337ebdfb86605107e0b85d9e83e88ec7ed60778 | [
"MIT"
] | null | null | null | Scientific Computing with Python/Probability Calculator/prob_calculator.py | Fradxyz/FCCProjects | f337ebdfb86605107e0b85d9e83e88ec7ed60778 | [
"MIT"
] | null | null | null | Scientific Computing with Python/Probability Calculator/prob_calculator.py | Fradxyz/FCCProjects | f337ebdfb86605107e0b85d9e83e88ec7ed60778 | [
"MIT"
] | null | null | null | # Hacked by Ry2uko :D
import copy
import random
# Consider using the modules imported above.
class Hat:
def __init__(self, **balls):
self.contents = []
for color in balls:
for n in range(0,balls[color]):
self.contents.append(color)
def draw(self, num):
drawn... | 26.044444 | 70 | 0.551195 | 140 | 1,172 | 4.442857 | 0.371429 | 0.135048 | 0.038585 | 0.03537 | 0.038585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011984 | 0.359215 | 1,172 | 45 | 71 | 26.044444 | 0.816245 | 0.061433 | 0 | 0.060606 | 0 | 0 | 0.007293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.030303 | 0.060606 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40738ad4ddc2dca3384f1a7a4b98ec684eed9a5c | 1,611 | py | Python | src/frames/add_quantity_frame.py | GolovPavel/ValueConverter | 8492f100667af49fe4bf06eaf0de660513424252 | [
"MIT"
] | 1 | 2020-09-22T17:10:21.000Z | 2020-09-22T17:10:21.000Z | src/frames/add_quantity_frame.py | GolovPavel/ValueConverter | 8492f100667af49fe4bf06eaf0de660513424252 | [
"MIT"
] | 1 | 2020-03-06T21:18:10.000Z | 2020-03-06T21:18:10.000Z | src/frames/add_quantity_frame.py | GolovPavel/ValueConverter | 8492f100667af49fe4bf06eaf0de660513424252 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter.messagebox import showerror
from constants.frames import MAIN_FRAME_NAME
from util import add_new_quantity
class AddQuantityFrame(tk.Frame):
def __init__(self, root, controller):
tk.Frame.__init__(self, root)
self.controller = controller
self.main_label... | 33.5625 | 116 | 0.666667 | 206 | 1,611 | 4.990291 | 0.330097 | 0.093385 | 0.077821 | 0.081712 | 0.192607 | 0.070039 | 0.070039 | 0 | 0 | 0 | 0 | 0.018608 | 0.232775 | 1,611 | 47 | 117 | 34.276596 | 0.813107 | 0 | 0 | 0.060606 | 0 | 0 | 0.132216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.121212 | 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 |
40747f1fe0cf14a0bae5770661298c543ddc7ac6 | 1,395 | py | Python | Compressed downloads/server.py | Aldair47x/aa | ac49239ff94ec6735b316606482dc366ae52bfe8 | [
"MIT"
] | null | null | null | Compressed downloads/server.py | Aldair47x/aa | ac49239ff94ec6735b316606482dc366ae52bfe8 | [
"MIT"
] | null | null | null | Compressed downloads/server.py | Aldair47x/aa | ac49239ff94ec6735b316606482dc366ae52bfe8 | [
"MIT"
] | null | null | null | import zmq
import sys
import os
import math
def loadFiles(path):
files = {}
dataDir = os.fsencode(path)
for file in os.listdir(dataDir):
filename = os.fsdecode(file)
print("Loading {}".format(filename))
files[filename] = file
return files
def main():
if len(sys.argv) != 3:... | 26.320755 | 72 | 0.496774 | 158 | 1,395 | 4.310127 | 0.481013 | 0.029369 | 0.026432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015677 | 0.359857 | 1,395 | 52 | 73 | 26.826923 | 0.74692 | 0 | 0 | 0.068182 | 0 | 0 | 0.088953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.159091 | 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 |
40757d236a917305a24dbe63896ecb49966f293c | 1,618 | py | Python | metric_learn/nca.py | ogrisel/metric-learn | fb6733c190911d2c408bd7f0b8c9b54ff005fa8d | [
"MIT"
] | null | null | null | metric_learn/nca.py | ogrisel/metric-learn | fb6733c190911d2c408bd7f0b8c9b54ff005fa8d | [
"MIT"
] | null | null | null | metric_learn/nca.py | ogrisel/metric-learn | fb6733c190911d2c408bd7f0b8c9b54ff005fa8d | [
"MIT"
] | 2 | 2017-08-02T08:57:50.000Z | 2020-03-20T13:32:54.000Z | """
Neighborhood Components Analysis (NCA)
Ported to Python from https://github.com/vomjom/nca
"""
from __future__ import absolute_import
import numpy as np
from six.moves import xrange
from sklearn.utils.validation import check_X_y
from .base_metric import BaseMetricLearner
EPS = np.finfo(float).eps
class NCA(Bas... | 26.966667 | 74 | 0.600742 | 264 | 1,618 | 3.541667 | 0.340909 | 0.06738 | 0.035294 | 0.017112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011457 | 0.244747 | 1,618 | 59 | 75 | 27.423729 | 0.753682 | 0.160074 | 0 | 0 | 0 | 0 | 0.012066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.131579 | 0.026316 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4075a5272343f25994c7b713935ff6736a8b4fb7 | 2,923 | py | Python | rl_repr/batch_rl/evaluation.py | xxdreck/google-research | dac724bc2b9362d65c26747a8754504fe4c615f8 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | rl_repr/batch_rl/evaluation.py | xxdreck/google-research | dac724bc2b9362d65c26747a8754504fe4c615f8 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | rl_repr/batch_rl/evaluation.py | admariner/google-research | 7cee4b22b925581d912e8d993625c180da2a5a4f | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | 31.771739 | 80 | 0.671912 | 390 | 2,923 | 4.887179 | 0.379487 | 0.042497 | 0.059811 | 0.058762 | 0.075026 | 0.045121 | 0.045121 | 0 | 0 | 0 | 0 | 0.012675 | 0.24427 | 2,923 | 91 | 81 | 32.120879 | 0.850158 | 0.358194 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4075b24c28e51db8658934eede3f2eedb744d8c0 | 4,721 | py | Python | src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py | ben-dichter-consulting/nwbn-conversion-tools | f5641317d2697a3916eeb54f74ce171ed65469ed | [
"BSD-3-Clause"
] | null | null | null | src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py | ben-dichter-consulting/nwbn-conversion-tools | f5641317d2697a3916eeb54f74ce171ed65469ed | [
"BSD-3-Clause"
] | 6 | 2020-01-31T13:29:40.000Z | 2020-03-27T13:09:32.000Z | src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py | ben-dichter-consulting/nwb-conversion-tools | f5641317d2697a3916eeb54f74ce171ed65469ed | [
"BSD-3-Clause"
] | 1 | 2019-11-24T05:08:06.000Z | 2019-11-24T05:08:06.000Z | """Authors: Cody Baker and Ben Dichter."""
from pathlib import Path
import spikeextractors as se
from pynwb.ecephys import ElectricalSeries
from ..baserecordingextractorinterface import BaseRecordingExtractorInterface
from ....utils import get_schema_from_hdmf_class, FilePathType
try:
from pyintan.intan import r... | 44.121495 | 118 | 0.615336 | 488 | 4,721 | 5.629098 | 0.247951 | 0.039316 | 0.056061 | 0.036403 | 0.294139 | 0.198762 | 0.182017 | 0.182017 | 0.149254 | 0.149254 | 0 | 0.001521 | 0.303749 | 4,721 | 106 | 119 | 44.537736 | 0.834195 | 0.022665 | 0 | 0.130435 | 0 | 0 | 0.135129 | 0.014338 | 0 | 0 | 0 | 0 | 0.01087 | 1 | 0.032609 | false | 0 | 0.076087 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40776dbc5b7aba40a9cfd205d779833d8dd62541 | 1,903 | py | Python | site/manage.py | oaoouo/railgun | b09d276723976740841d8b8adf9cbf87a05cd970 | [
"MIT"
] | null | null | null | site/manage.py | oaoouo/railgun | b09d276723976740841d8b8adf9cbf87a05cd970 | [
"MIT"
] | null | null | null | site/manage.py | oaoouo/railgun | b09d276723976740841d8b8adf9cbf87a05cd970 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
manage.py
~~~~~~~~~
"""
import os
import sys
import shutil
import platform
from app import app
from gen import Gen
from flask_script import Manager
"""编码设置"""
if (platform.python_version().split('.')[0] == '2'):
# reload(sys) is evil :)
reload(sys)
sys.setdefaultencoding('utf... | 25.039474 | 71 | 0.60536 | 270 | 1,903 | 4.092593 | 0.274074 | 0.057014 | 0.081448 | 0.054299 | 0.487783 | 0.487783 | 0.461538 | 0.41267 | 0.39276 | 0.345701 | 0 | 0.006882 | 0.236469 | 1,903 | 75 | 72 | 25.373333 | 0.752237 | 0.042564 | 0 | 0.333333 | 0 | 0 | 0.154795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.137255 | 0 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40788e305d7f2fee1abfae85125753bcd3fa071f | 10,981 | py | Python | bagua/torch_api/contrib/sync_batchnorm.py | mmathys/bagua | e17978690452318b65b317b283259f09c24d59bb | [
"MIT"
] | 635 | 2021-06-11T03:03:11.000Z | 2022-03-31T14:52:57.000Z | bagua/torch_api/contrib/sync_batchnorm.py | mmathys/bagua | e17978690452318b65b317b283259f09c24d59bb | [
"MIT"
] | 181 | 2021-06-10T12:27:19.000Z | 2022-03-31T04:08:19.000Z | bagua/torch_api/contrib/sync_batchnorm.py | shjwudp/bagua | 7e1b438e27e3119b23e472f5b9217a9862932bef | [
"MIT"
] | 71 | 2021-06-10T13:16:53.000Z | 2022-03-22T09:26:22.000Z | # Copyright (c) Uber Technologies, Inc. and its affiliates.
# Copyright (c) 2021 Kuaishou AI Platform & DS3 Lab.
#
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from distutils.version import LooseVersion
impor... | 38.128472 | 160 | 0.601858 | 1,321 | 10,981 | 4.796366 | 0.249054 | 0.015467 | 0.018782 | 0.022727 | 0.20423 | 0.165878 | 0.143466 | 0.099905 | 0.086963 | 0.036932 | 0 | 0.009942 | 0.312995 | 10,981 | 287 | 161 | 38.261324 | 0.829931 | 0.32711 | 0 | 0.256983 | 0 | 0 | 0.017329 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 1 | 0.044693 | false | 0 | 0.039106 | 0.005587 | 0.139665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
407cd39412220721420002d2204aeef22618cb4c | 1,562 | py | Python | config.py | oyasr/mudawen | 6f0161ab783536d7c5d695225ef28ce4947a46e3 | [
"MIT"
] | null | null | null | config.py | oyasr/mudawen | 6f0161ab783536d7c5d695225ef28ce4947a46e3 | [
"MIT"
] | null | null | null | config.py | oyasr/mudawen | 6f0161ab783536d7c5d695225ef28ce4947a46e3 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.getenv('SECRET_KEY') or os.urandom(32)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_RECORD_QUERIES = True
MAIL_SERVER = os.getenv('MAIL_SERVER') or 'smtp.goog... | 28.4 | 70 | 0.691421 | 197 | 1,562 | 5.192893 | 0.441624 | 0.062561 | 0.035191 | 0.067449 | 0.163245 | 0.078201 | 0.078201 | 0.078201 | 0.078201 | 0 | 0 | 0.010963 | 0.182458 | 1,562 | 54 | 71 | 28.925926 | 0.790133 | 0 | 0 | 0 | 0 | 0 | 0.195262 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.047619 | 0.047619 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
407ce0ad1e21c01e8414bc4b63e17958aa42df9e | 998 | py | Python | experiments/async_tests/async_3.py | 10ks/py_utils | 54ce06dbd567b097deda1c7ef2d0a2265e5b243e | [
"MIT"
] | null | null | null | experiments/async_tests/async_3.py | 10ks/py_utils | 54ce06dbd567b097deda1c7ef2d0a2265e5b243e | [
"MIT"
] | null | null | null | experiments/async_tests/async_3.py | 10ks/py_utils | 54ce06dbd567b097deda1c7ef2d0a2265e5b243e | [
"MIT"
] | null | null | null | import asyncio
async def wait_sec(l):
print("Before wait")
await asyncio.sleep(1)
print("After wait")
l[0] = False
async def main():
# await asyncio.gather(wait_sec([True]), wait_sec([True]), wait_sec([True]))
run = [True]
asyncio.create_task(wait_sec(run))
await asyncio.sleep(0)
... | 23.209302 | 80 | 0.607214 | 133 | 998 | 4.353383 | 0.406015 | 0.124352 | 0.146805 | 0.124352 | 0.056995 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0.019947 | 0.246493 | 998 | 42 | 81 | 23.761905 | 0.75 | 0.381764 | 0 | 0 | 0 | 0 | 0.150912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
407f96b82e23f251ebe7b0d09ba3c8416a7e9d98 | 5,279 | py | Python | PNN/model.py | jingxiufenghua/rec-model | 23204f70fc1bf384d3cdd0cc85e43117d3394074 | [
"MIT"
] | 1,323 | 2020-08-24T02:34:25.000Z | 2022-03-31T06:03:28.000Z | PNN/model.py | yiLinMaster/Recommender-System-with-TF2.0 | cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822 | [
"MIT"
] | 65 | 2020-08-25T06:07:41.000Z | 2022-03-18T20:10:53.000Z | PNN/model.py | yiLinMaster/Recommender-System-with-TF2.0 | cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822 | [
"MIT"
] | 395 | 2020-08-24T00:57:08.000Z | 2022-03-31T12:41:13.000Z | """
Created on July 20, 2020
Updated on May 19, 2021
model: Product-based Neural Networks for User Response Prediction
@author: Ziyao Geng(zggzy1996@163.com)
"""
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.regularizers import l2
from tensorflow.keras.layers import Embedding, Dens... | 47.990909 | 114 | 0.544232 | 663 | 5,279 | 4.117647 | 0.227753 | 0.008059 | 0.04359 | 0.061538 | 0.264835 | 0.200733 | 0.168132 | 0.148352 | 0.130403 | 0.117216 | 0 | 0.022501 | 0.351771 | 5,279 | 109 | 115 | 48.431193 | 0.775278 | 0.200985 | 0 | 0.175676 | 0 | 0 | 0.032187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.067568 | 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 |
40830eea2a3d7f03b3b7dae05b19fdc253a0e60b | 2,095 | py | Python | sif/greedy_sim_max.py | longland-m/wikigen | 459ba7bf9d3ca9584de65388cc9b9a15fa16a69f | [
"MIT"
] | null | null | null | sif/greedy_sim_max.py | longland-m/wikigen | 459ba7bf9d3ca9584de65388cc9b9a15fa16a69f | [
"MIT"
] | 2 | 2021-08-25T16:04:29.000Z | 2022-02-10T01:50:44.000Z | sif/greedy_sim_max.py | longland-m/wikigen | 459ba7bf9d3ca9584de65388cc9b9a15fa16a69f | [
"MIT"
] | null | null | null | # Functions to do the greedy similarity maximisation for article:node assignments
# All code is original
import random
def computeSimSum(G, similarityMatrix, asgn):
""" Compute the total similarity sum for the current node:article assignment """
S = sum([similarityMatrix[asgn[j], asgn[i]]
for j in ra... | 32.230769 | 82 | 0.651074 | 253 | 2,095 | 5.379447 | 0.399209 | 0.025716 | 0.026451 | 0.024247 | 0.020573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005769 | 0.25537 | 2,095 | 64 | 83 | 32.734375 | 0.866667 | 0.271599 | 0 | 0 | 0 | 0 | 0.005968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.135135 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40836d6113e4a1359c6e3078275ec9078aa642e4 | 23,463 | py | Python | plab/photon_counters/Idq801.py | joamatab/photonic-coupling-drivers | c12581d8e2158a292e1c585e45c0207c8129c0f1 | [
"MIT"
] | null | null | null | plab/photon_counters/Idq801.py | joamatab/photonic-coupling-drivers | c12581d8e2158a292e1c585e45c0207c8129c0f1 | [
"MIT"
] | null | null | null | plab/photon_counters/Idq801.py | joamatab/photonic-coupling-drivers | c12581d8e2158a292e1c585e45c0207c8129c0f1 | [
"MIT"
] | null | null | null | import sys
import numpy as np
import shutil
import time
import itertools as it
import collections
import ctypes as ct
import os
import copy
sys.path.append(os.path.dirname(__file__))
from ThreadStoppable import ThreadStoppable
class Idq801(object):
def __init__(
self,
deviceId=-1,
timesta... | 35.931087 | 112 | 0.592507 | 2,893 | 23,463 | 4.553405 | 0.127204 | 0.022318 | 0.030289 | 0.012753 | 0.3306 | 0.238366 | 0.171411 | 0.137402 | 0.122903 | 0.097472 | 0 | 0.024452 | 0.313259 | 23,463 | 652 | 113 | 35.986196 | 0.793086 | 0.140903 | 0 | 0.142539 | 0 | 0.004454 | 0.030526 | 0.003649 | 0 | 0 | 0.000411 | 0 | 0.011136 | 1 | 0.104677 | false | 0.002227 | 0.022272 | 0.006682 | 0.207127 | 0.002227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
408407cd45d1d31df97defaffbefa6540d0ab484 | 7,444 | py | Python | quests/dataflow_python/streaming_event_generator.py | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | 2 | 2022-01-06T11:52:57.000Z | 2022-01-09T01:53:56.000Z | quests/dataflow_python/streaming_event_generator.py | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | null | null | null | quests/dataflow_python/streaming_event_generator.py | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | null | null | null | # This program reads a file representing web server logs in common log format and streams them into a PubSub topic
# with lag characteristics as determined by command-line arguments
import argparse
from google.cloud import pubsub_v1
import time
from datetime import datetime, timezone
import random
from anytree... | 39.595745 | 116 | 0.657174 | 979 | 7,444 | 4.786517 | 0.24617 | 0.023047 | 0.025395 | 0.016219 | 0.172002 | 0.139778 | 0.117371 | 0.117371 | 0.117371 | 0.117371 | 0 | 0.005142 | 0.242343 | 7,444 | 188 | 117 | 39.595745 | 0.825709 | 0.230253 | 0 | 0.068376 | 0 | 0 | 0.161478 | 0.003938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059829 | false | 0 | 0.076923 | 0 | 0.17094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4085bccb38fa4dfee0e895626450b9f141da766f | 4,111 | py | Python | postreise/plot/plot_heatmap.py | lanesmith/PostREISE | 69d47968cf353bca57aa8b587cc035d127fa424f | [
"MIT"
] | 1 | 2022-01-31T16:53:40.000Z | 2022-01-31T16:53:40.000Z | postreise/plot/plot_heatmap.py | lanesmith/PostREISE | 69d47968cf353bca57aa8b587cc035d127fa424f | [
"MIT"
] | 71 | 2021-01-22T20:09:47.000Z | 2022-03-30T16:53:18.000Z | postreise/plot/plot_heatmap.py | lanesmith/PostREISE | 69d47968cf353bca57aa8b587cc035d127fa424f | [
"MIT"
] | 7 | 2021-04-02T14:45:21.000Z | 2022-01-17T22:23:38.000Z | import datetime as dt
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import pandas as pd
from powersimdata.input.check import _check_time_series
from postreise.analyze.time import change_time_zone
def plot_heatmap(
series,
time_zone=None,
time_zone_label=None,
title=None,
cmap... | 37.036036 | 88 | 0.683289 | 609 | 4,111 | 4.479475 | 0.256158 | 0.038123 | 0.028226 | 0.026393 | 0.145894 | 0.097507 | 0.097507 | 0.033724 | 0.033724 | 0 | 0 | 0.005266 | 0.21479 | 4,111 | 110 | 89 | 37.372727 | 0.839839 | 0.401605 | 0 | 0 | 0 | 0 | 0.041578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.082192 | 0 | 0.09589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4086e4dd21e9a774c97734bcd63cd0233cf32c3d | 4,000 | py | Python | tensorflow_federated/python/simulation/file_per_user_client_data.py | houcharlie/federated-legacy | cb10a9cdcea33288f8113e7445782d21c8c65f81 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/simulation/file_per_user_client_data.py | houcharlie/federated-legacy | cb10a9cdcea33288f8113e7445782d21c8c65f81 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/simulation/file_per_user_client_data.py | houcharlie/federated-legacy | cb10a9cdcea33288f8113e7445782d21c8c65f81 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 36.363636 | 80 | 0.74325 | 557 | 4,000 | 5.082585 | 0.315978 | 0.057224 | 0.050512 | 0.045214 | 0.116567 | 0.041681 | 0.021194 | 0 | 0 | 0 | 0 | 0.002757 | 0.184 | 4,000 | 109 | 81 | 36.697248 | 0.864583 | 0.3705 | 0 | 0.056604 | 0 | 0 | 0.018641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.150943 | 0.075472 | 0.45283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
408710371dd0d37abadd9978ea2c4a4f85a8ec3b | 6,459 | py | Python | tests/compilation/request/test_request_compiler.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 3 | 2019-08-01T03:14:49.000Z | 2020-01-31T08:55:22.000Z | tests/compilation/request/test_request_compiler.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 353 | 2019-04-14T14:53:28.000Z | 2022-03-11T03:26:08.000Z | tests/compilation/request/test_request_compiler.py | ymoch/preacher | ae68170d14c72791884e91b20054bd13a79b52d0 | [
"MIT"
] | 1 | 2020-08-01T06:23:08.000Z | 2020-08-01T06:23:08.000Z | from unittest.mock import NonCallableMock, sentinel
from pytest import mark, raises, fixture
from preacher.compilation.argument import Argument
from preacher.compilation.error import CompilationError, NamedNode, IndexedNode
from preacher.compilation.request.request import RequestCompiler, RequestCompiled
from preache... | 34.174603 | 81 | 0.71203 | 733 | 6,459 | 6.047749 | 0.113233 | 0.064291 | 0.044665 | 0.031581 | 0.628694 | 0.528536 | 0.457929 | 0.457929 | 0.378074 | 0.35732 | 0 | 0.002429 | 0.171234 | 6,459 | 188 | 82 | 34.356383 | 0.825705 | 0 | 0 | 0.386207 | 0 | 0 | 0.065954 | 0.019508 | 0 | 0 | 0 | 0 | 0.186207 | 1 | 0.096552 | false | 0 | 0.048276 | 0.013793 | 0.165517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
408a713d6a5b30cf98528302f34eefe2000e2530 | 4,223 | py | Python | methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py | Guaguago/CommonGen | 0a81b4edb8cd111571eba817eb994420f1070c48 | [
"MIT"
] | 100 | 2020-01-30T08:14:25.000Z | 2022-03-30T08:59:33.000Z | methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py | Guaguago/CommonGen | 0a81b4edb8cd111571eba817eb994420f1070c48 | [
"MIT"
] | 4 | 2021-06-08T22:34:33.000Z | 2022-03-12T00:50:13.000Z | methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py | Guaguago/CommonGen | 0a81b4edb8cd111571eba817eb994420f1070c48 | [
"MIT"
] | 15 | 2020-04-13T22:56:27.000Z | 2022-03-10T02:44:26.000Z | # coding=utf-8
"""PyTorch optimization for BERT model."""
from apex.contrib.optimizers import FP16_Optimizer
class FP16_Optimizer_State(FP16_Optimizer):
def __init__(self,
init_optimizer,
static_loss_scale=1.0,
dynamic_loss_scale=False,
dynamic_... | 52.135802 | 117 | 0.656642 | 549 | 4,223 | 4.806922 | 0.311475 | 0.129595 | 0.048503 | 0.030315 | 0.251232 | 0.158393 | 0.058734 | 0.025767 | 0 | 0 | 0 | 0.015995 | 0.259768 | 4,223 | 80 | 118 | 52.7875 | 0.828215 | 0.496093 | 0 | 0.060606 | 0 | 0 | 0.137245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.030303 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
408c88fb92a834b62165870e3156152b98dd330c | 956 | py | Python | Source/stack0verf10w.py | IRIDIUM-SUB/Software-Security-Course-Design | 596664a728d73133e44a4566027561170c5d2ae8 | [
"MIT"
] | null | null | null | Source/stack0verf10w.py | IRIDIUM-SUB/Software-Security-Course-Design | 596664a728d73133e44a4566027561170c5d2ae8 | [
"MIT"
] | null | null | null | Source/stack0verf10w.py | IRIDIUM-SUB/Software-Security-Course-Design | 596664a728d73133e44a4566027561170c5d2ae8 | [
"MIT"
] | null | null | null | import Bugdetectionuniversalframe
import os
import re
class overflowdetection(Bugdetectionuniversalframe.uniframe):
def __init__(self):
Bugdetectionuniversalframe.uniframe.__init__(self)
def deploy(self):#Re-write deploy method
flag=0
self.filesort()
if self.path != "":
... | 30.83871 | 84 | 0.582636 | 98 | 956 | 5.602041 | 0.571429 | 0.123862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.327406 | 956 | 30 | 85 | 31.866667 | 0.8507 | 0.046025 | 0 | 0 | 0 | 0 | 0.179515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 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 |
408e5eee21b5e0ed193fbd1da82ee85348eb987d | 7,517 | py | Python | ndbc/station.py | ppokhrel1/ndbc | e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2 | [
"MIT"
] | null | null | null | ndbc/station.py | ppokhrel1/ndbc | e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2 | [
"MIT"
] | null | null | null | ndbc/station.py | ppokhrel1/ndbc | e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2 | [
"MIT"
] | null | null | null | """
station.py
"""
from datetime import datetime, timedelta
import gzip
import numpy as np
import requests
import urllib
_BASEURL = 'http://www.ndbc.noaa.gov/data'
_SENSOR_URL = _BASEURL+'/stations/buoyht.txt'
_REALTIME_URL = _BASEURL+'/realtime2/'
_RECENT_URL = _BASEURL+'/stdmet/'
_HISTORICAL_URL = _BASEURL+'/histori... | 41.994413 | 89 | 0.543036 | 1,025 | 7,517 | 3.927805 | 0.17561 | 0.046945 | 0.07377 | 0.080725 | 0.442375 | 0.408843 | 0.336811 | 0.192747 | 0.192747 | 0.192747 | 0 | 0.026491 | 0.301982 | 7,517 | 178 | 90 | 42.230337 | 0.740804 | 0.036983 | 0 | 0.317568 | 0 | 0 | 0.05673 | 0.003754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.033784 | 0 | 0.074324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
408f68f533f8c5055f6e751095cb737571178a12 | 765 | py | Python | main.py | kajuna0amendez/Cython_Machine_Learning_Models | 8b7d502bae07487ae0fdbced796e0fa50082e681 | [
"Apache-2.0"
] | null | null | null | main.py | kajuna0amendez/Cython_Machine_Learning_Models | 8b7d502bae07487ae0fdbced796e0fa50082e681 | [
"Apache-2.0"
] | 2 | 2021-02-02T23:02:12.000Z | 2021-08-23T20:51:22.000Z | main.py | kajuna0amendez/Machine_Learning_Models | 8b7d502bae07487ae0fdbced796e0fa50082e681 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
__author__ = "Andres Mendez-Vazquez"
__copyright__ = "Copyright 2018"
__credits__ = ["Andres Mendez-Vazquez"]
__license__ = "Apache"
__version__ = "v1.0.0"
__maintainer__ = "Andres Mendez-Vazquez"
__email = "kajuna0kajuna@gmail.com"
__status__ = "Development"
from data_m... | 23.181818 | 68 | 0.705882 | 97 | 765 | 5.020619 | 0.608247 | 0.073922 | 0.117043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.176471 | 765 | 32 | 69 | 23.90625 | 0.757143 | 0.091503 | 0 | 0 | 0 | 0 | 0.276163 | 0.077035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4090bb4b6d1ad59682a210fa58e3049a7296547f | 4,103 | py | Python | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | 2 | 2018-08-07T16:18:58.000Z | 2018-08-09T16:59:48.000Z | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | null | null | null | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | null | null | null | import castle
from typing import Tuple
def select_player_types() -> Tuple[castle.PlayerType, castle.PlayerType]:
player1, player2 = None, None
while True:
print(f'1) Play a person')
print(f'2) Play the computer')
print(f'3) Play the computer against itself')
choice_str = input... | 37.3 | 95 | 0.663417 | 575 | 4,103 | 4.638261 | 0.241739 | 0.123735 | 0.061867 | 0.089989 | 0.514436 | 0.506187 | 0.460442 | 0.422197 | 0.386952 | 0.386952 | 0 | 0.026904 | 0.193761 | 4,103 | 109 | 96 | 37.642202 | 0.779323 | 0.042164 | 0 | 0.151163 | 0 | 0 | 0.171975 | 0.066497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081395 | false | 0 | 0.023256 | 0 | 0.127907 | 0.197674 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40914f27511088ce3ade62cbe86245a30a969a5b | 2,603 | py | Python | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 44 | 2017-11-17T12:03:11.000Z | 2022-02-03T20:57:56.000Z | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 13 | 2018-10-09T15:34:15.000Z | 2022-02-24T20:03:17.000Z | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 23 | 2017-12-14T18:08:33.000Z | 2022-02-03T15:33:40.000Z | #!/usr/bin/env python3
# Copyright 2018 Brocade Communications Systems LLC. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may also obtain a copy of the License at
# http://www.apache.org/licenses/LICENS... | 28.293478 | 80 | 0.683826 | 345 | 2,603 | 5.028986 | 0.466667 | 0.04611 | 0.032277 | 0.036311 | 0.100288 | 0.100288 | 0.100288 | 0.100288 | 0.053026 | 0 | 0 | 0.007303 | 0.21091 | 2,603 | 91 | 81 | 28.604396 | 0.83739 | 0.742221 | 0 | 0 | 0 | 0 | 0.023184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409204c88e09d10160109d7dfc196e9a1647012b | 28,322 | py | Python | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | import random
import numpy as np
import itertools
import re
from collections import defaultdict
import os
def get_tags(s, open_delim='<', close_delim='/>'):
"""Iterator to spit out the xml style disfluency tags in a given string.
Keyword arguments:
s -- input string
"""
while True:
# Sear... | 40.634146 | 85 | 0.49541 | 3,485 | 28,322 | 3.919656 | 0.141176 | 0.014861 | 0.018668 | 0.01369 | 0.327452 | 0.294729 | 0.235944 | 0.206223 | 0.180747 | 0.153807 | 0 | 0.015097 | 0.387261 | 28,322 | 696 | 86 | 40.692529 | 0.772041 | 0.226502 | 0 | 0.255814 | 0 | 0 | 0.088206 | 0.00374 | 0 | 0 | 0 | 0.001437 | 0.069767 | 1 | 0.038055 | false | 0.004228 | 0.012685 | 0 | 0.095137 | 0.006342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40946ed59b952cc97c649459f7de1a75d4265832 | 564 | py | Python | Python-Math/Python-Math/check_prime.py | rgabeflores/Scripts | c8138cb4543e576924de2107abb5a65f0b84264c | [
"MIT"
] | 2 | 2018-05-12T10:58:51.000Z | 2021-11-16T11:52:27.000Z | src/Python-Math/check_prime.py | learn-py/Posts | da394236db0a52c93ca1c0374ad121b263555272 | [
"MIT"
] | null | null | null | src/Python-Math/check_prime.py | learn-py/Posts | da394236db0a52c93ca1c0374ad121b263555272 | [
"MIT"
] | null | null | null | '''
@author Gabriel Flores
Checks the primality of an integer.
'''
def is_prime(x):
'''
Checks the primality of an integer.
'''
sqrt = int(x ** (1/2))
for i in range(2, sqrt, 1):
if x % i == 0:
return False
return True
def main():
try:
print("\n\n")
a = int(input(" Enter an integer to check if ... | 18.8 | 66 | 0.592199 | 96 | 564 | 3.375 | 0.489583 | 0.074074 | 0.111111 | 0.123457 | 0.179012 | 0.179012 | 0 | 0 | 0 | 0 | 0 | 0.011655 | 0.239362 | 564 | 30 | 67 | 18.8 | 0.74359 | 0.166667 | 0 | 0 | 0 | 0 | 0.332594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4095239ac8155507cd8501376f1d1a88028e9392 | 1,580 | py | Python | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #!/usr/bin/env python
"""Plot the performance of different variants of the string routines
for one size.
"""
import libplot
import pylab
def plot(records, bytes):
records = [x for x in records if x.bytes==bytes]
variants = libplot.unique(records, 'variant', prefer='this')
functions = libplot.unique(re... | 25.483871 | 112 | 0.61519 | 208 | 1,580 | 4.605769 | 0.447115 | 0.037578 | 0.06263 | 0.06263 | 0.035491 | 0.035491 | 0.035491 | 0 | 0 | 0 | 0 | 0.021222 | 0.25443 | 1,580 | 61 | 113 | 25.901639 | 0.79202 | 0.063291 | 0 | 0 | 0 | 0 | 0.07943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40958b5deb96439390eb8a34bb5ed7d5f2983d33 | 3,292 | py | Python | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | import sqlite3
import time, datetime, random
import matplotlib
matplotlib.use("Agg")
#added due to error, possibly due to install configuration
import matplotlib.pyplot as plt
print(matplotlib.get_backend())
import matplotlib.dates as mdates
from matplotlib import style
style.use('fivethirtyeight')
conn = sqlite3... | 25.92126 | 124 | 0.65401 | 446 | 3,292 | 4.744395 | 0.289238 | 0.05293 | 0.059546 | 0.068053 | 0.359168 | 0.286862 | 0.202741 | 0.18431 | 0.146503 | 0.146503 | 0 | 0.026986 | 0.20079 | 3,292 | 126 | 125 | 26.126984 | 0.777271 | 0.16616 | 0 | 0.278481 | 0 | 0 | 0.254801 | 0.008493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113924 | false | 0 | 0.075949 | 0 | 0.189873 | 0.189873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40964229b92108c25937fb12522f648ac39e3e91 | 42,098 | py | Python | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | import json
import os
from urllib.parse import parse_qs
from urllib.parse import urlparse
import pytest
import responses
from freezegun import freeze_time
from jwkest import BadSignature
from jwkest.jwk import SYMKey
from oic.oauth2.message import MissingSigningKey
from oic.oauth2.message import WrongSigningAlgorithm... | 35.585799 | 114 | 0.551071 | 4,012 | 42,098 | 5.582004 | 0.08998 | 0.073409 | 0.046216 | 0.027863 | 0.725698 | 0.677383 | 0.651976 | 0.628935 | 0.607948 | 0.588971 | 0 | 0.018877 | 0.326785 | 42,098 | 1,182 | 115 | 35.615905 | 0.771321 | 0.012732 | 0 | 0.589474 | 0 | 0.001914 | 0.215519 | 0.031827 | 0 | 0 | 0 | 0 | 0.110048 | 1 | 0.030622 | false | 0.004785 | 0.029665 | 0.000957 | 0.063158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409660d0cd505763586410c6b2b0e9f378f6b60a | 2,338 | py | Python | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | 1 | 2020-11-23T23:44:32.000Z | 2020-11-23T23:44:32.000Z | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | null | null | null | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import io
from codecs import open
from setuptools import setup, find_packages
def walk_subpkg(name):
data_files = []
package_dir = 'cartoframes'
for parent, dirs, files in os.walk(os.path.join(package_dir, name)):
# Remove package_dir from t... | 28.168675 | 82 | 0.597092 | 298 | 2,338 | 4.483221 | 0.35906 | 0.113772 | 0.149701 | 0.097305 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039539 | 0.221129 | 2,338 | 82 | 83 | 28.512195 | 0.694124 | 0.032506 | 0 | 0.028986 | 0 | 0.014493 | 0.380257 | 0.018592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.057971 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409a342355b661973139a052737ed840078d30d8 | 9,819 | py | Python | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | from datetime import date
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.express as px
from dash.dependencies import Input, Output
test_data = pd.read_csv("data/world_data.csv")
today = date.today()
external... | 51.952381 | 250 | 0.440778 | 874 | 9,819 | 4.830664 | 0.258581 | 0.039792 | 0.040265 | 0.029844 | 0.405021 | 0.34036 | 0.320701 | 0.28612 | 0.240171 | 0.225486 | 0 | 0.012269 | 0.427233 | 9,819 | 188 | 251 | 52.228723 | 0.738442 | 0.059171 | 0 | 0.335616 | 0 | 0 | 0.185257 | 0.016152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020548 | false | 0 | 0.054795 | 0.006849 | 0.136986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409ac3a28f63c2603ac7a86d7009827a8fa89371 | 979 | py | Python | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | 7 | 2020-08-19T01:32:34.000Z | 2021-12-06T07:31:32.000Z | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | 2 | 2021-01-28T07:35:45.000Z | 2021-06-20T14:19:01.000Z | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | null | null | null | from collections import OrderedDict
import skimage.io as io
from config import get_config
config = get_config()
class LRUCache:
def __init__(self, capacity: int):
self._ordered_dict = OrderedDict()
self._capacity = capacity
def get(self, key):
self._move_to_end_if_exist(key)
... | 23.309524 | 63 | 0.6476 | 135 | 979 | 4.362963 | 0.303704 | 0.13073 | 0.178268 | 0.056027 | 0.105263 | 0.078098 | 0.078098 | 0 | 0 | 0 | 0 | 0 | 0.262513 | 979 | 41 | 64 | 23.878049 | 0.815789 | 0.04903 | 0 | 0.074074 | 0 | 0 | 0.015086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409ad3c2aaa2132563a0928975965afc50081365 | 1,852 | py | Python | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | import numpy
from heapq import *
import time
def heuristic(a, b):
return (b[0] - a[0]) ** 2 + (b[1] - a[1]) ** 2
def astar(canvas, array, start, goal):
neighbours = [(0, 1), (0, -1), (1, 0), (-1, 0)]
close_set = set()
came_from = {}
gscore = {start: 0}
fscore = {start: heuristic(start, goal)... | 30.360656 | 100 | 0.532937 | 219 | 1,852 | 4.378995 | 0.273973 | 0.043796 | 0.052138 | 0.050052 | 0.112617 | 0.06048 | 0.06048 | 0 | 0 | 0 | 0 | 0.028404 | 0.353672 | 1,852 | 60 | 101 | 30.866667 | 0.772765 | 0 | 0 | 0.170213 | 0 | 0 | 0.002701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0.021277 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409bc944bcc8474410d41d3c5ed935bde146869f | 1,119 | py | Python | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | import logging
import time
from qupy.framing.slip import Slip
from qupy.interface.serial import SerialPort
from qupy.interface.errors import InterfaceTimeoutError, InterfaceIOError, InterfaceError
from qupy.comm.client import CommClient
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
s = Se... | 22.836735 | 89 | 0.513852 | 119 | 1,119 | 4.764706 | 0.495798 | 0.056437 | 0.059965 | 0.088183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007289 | 0.386953 | 1,119 | 48 | 90 | 23.3125 | 0.819242 | 0 | 0 | 0.27027 | 0 | 0 | 0.039321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162162 | 0 | 0.162162 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409d329c8dc7ebfbbdbfdb66ef4f8976ba9ec528 | 12,413 | py | Python | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
import tempfile
from dp_tornado.engine.helper import Helper as dpHelper
class ImageHelper(dpHelper):
def compare(self, i1, i2, error=0):
i1 = self.load(i1)
i2 = self.load(i2)
if not i1 or not i2:
return None
s1 = i1.size
s2 = i2.size... | 30.573892 | 118 | 0.512688 | 1,491 | 12,413 | 4.146881 | 0.101274 | 0.027495 | 0.029112 | 0.048358 | 0.530325 | 0.50655 | 0.447194 | 0.401423 | 0.317483 | 0.296458 | 0 | 0.012064 | 0.392331 | 12,413 | 405 | 119 | 30.649383 | 0.807636 | 0.006525 | 0 | 0.394834 | 0 | 0 | 0.036114 | 0 | 0 | 0 | 0 | 0.002469 | 0 | 1 | 0.070111 | false | 0 | 0.00738 | 0 | 0.254613 | 0.00738 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409e06685c9ecbd99f82a4b27833a85d0c5a9b1e | 4,385 | py | Python | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | 1 | 2019-02-28T05:32:51.000Z | 2019-02-28T05:32:51.000Z | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | null | null | null | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | 2 | 2019-03-15T19:40:17.000Z | 2019-05-24T17:15:59.000Z | import requests
from bs4 import BeautifulSoup
import json
import re
# Range of Roll Number - User Input
start_roll = int(input("Starting Roll Number: "))
end_roll = int(input("Ending Roll Number: "))
# Semester - User Input
sem = int(input("Which Semester[1-8]: "))
# Verbosity
verbose = int(input("Verbo... | 35.650407 | 140 | 0.575143 | 625 | 4,385 | 3.8816 | 0.264 | 0.078318 | 0.045342 | 0.01319 | 0.201566 | 0.1385 | 0.084501 | 0.059769 | 0.019786 | 0 | 0 | 0.028397 | 0.253136 | 4,385 | 122 | 141 | 35.942623 | 0.712366 | 0.080502 | 0 | 0.152941 | 0 | 0.011765 | 0.231382 | 0.050334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0.023529 | 0.047059 | 0 | 0.105882 | 0.082353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
409f7a2dc9434e9656e7bedb75a00b02b076a630 | 1,411 | py | Python | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Adeel Ahmad"
__email__ = "adeelahmad14@hotmail.com"
__status__ = "Production"
import matplotlib.pyplot as plt
import numpy as np
import skimage as ski
import Image
def cartoonify(im, display=False):
"""
function receives an image and add its gradient magnitude in it and add it
... | 31.355556 | 255 | 0.59674 | 203 | 1,411 | 4.054187 | 0.463054 | 0.048603 | 0.00729 | 0.031592 | 0.055893 | 0.055893 | 0 | 0 | 0 | 0 | 0 | 0.020896 | 0.287739 | 1,411 | 44 | 256 | 32.068182 | 0.79801 | 0.280652 | 0 | 0 | 0 | 0 | 0.056566 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40a00c80a3cc741480575d8150f065c48c9b4231 | 4,341 | py | Python | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import json
import re
@dataclass
class KeyMapper(dict):
"""
Example:
km = KeyMapper({'messages': {'message1': 'Hello World!'}}})
print(km['messages.message1'])
Variables:
__delimiter__ is set to dot-notation by default, unless specified otherwise.
... | 33.651163 | 135 | 0.476618 | 447 | 4,341 | 4.149888 | 0.232662 | 0.038814 | 0.073315 | 0.077628 | 0.308895 | 0.266846 | 0.253908 | 0.210243 | 0.132075 | 0.071159 | 0 | 0.006749 | 0.419719 | 4,341 | 128 | 136 | 33.914063 | 0.729655 | 0.047915 | 0 | 0.416667 | 0 | 0.009259 | 0.048037 | 0.00634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101852 | false | 0 | 0.027778 | 0.018519 | 0.277778 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |