hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a277ec3a3e34b6f0d8ca66fb2863804820b3aca
98,887
py
Python
tensorflow/python/keras/engine/base_layer_v1.py
fwtan/tensorflow
efa3fb28d94b7937edaafb5874c191ad0e2149ca
[ "Apache-2.0" ]
1
2020-05-14T03:53:01.000Z
2020-05-14T03:53:01.000Z
tensorflow/python/keras/engine/base_layer_v1.py
fwtan/tensorflow
efa3fb28d94b7937edaafb5874c191ad0e2149ca
[ "Apache-2.0" ]
2
2021-08-25T16:05:52.000Z
2022-02-10T01:51:12.000Z
tensorflow/python/keras/engine/base_layer_v1.py
taotesea/tensorflow
5e6479904941624cf7ce58ab3d236375c8012ef4
[ "Apache-2.0" ]
1
2020-08-07T12:49:50.000Z
2020-08-07T12:49:50.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.395016
108
0.680403
4a277f6613335521717bae9abcd3cfc03552a14b
1,996
py
Python
minions/views.py
net592/OneOps
540898675385c982f4e196e2920e7bf7b251217c
[ "Apache-2.0" ]
92
2016-04-29T05:22:02.000Z
2022-03-07T15:16:19.000Z
minions/views.py
net592/OneOps
540898675385c982f4e196e2920e7bf7b251217c
[ "Apache-2.0" ]
2
2016-04-25T02:59:00.000Z
2017-06-16T09:45:10.000Z
minions/views.py
net592/OneOps
540898675385c982f4e196e2920e7bf7b251217c
[ "Apache-2.0" ]
66
2016-04-29T05:22:06.000Z
2021-12-15T03:33:22.000Z
#coding=utf-8 from django.shortcuts import render from django.contrib.auth.decorators import login_required from shaker.shaker_core import * from shaker.nodegroups import * from minions.models import Minions_status from returner.models import Salt_grains #定义客户端状态页面 @login_required(login_url="/account/login/") def mini...
36.290909
78
0.690381
4a27802cc692acec12f1b597617f0671b36ad039
1,616
py
Python
python/threeD.py
atsmith3/ifde
dcb7b412e2172a87f6928bdabdd21abc65d17fdf
[ "MIT" ]
null
null
null
python/threeD.py
atsmith3/ifde
dcb7b412e2172a87f6928bdabdd21abc65d17fdf
[ "MIT" ]
null
null
null
python/threeD.py
atsmith3/ifde
dcb7b412e2172a87f6928bdabdd21abc65d17fdf
[ "MIT" ]
null
null
null
import open3d as o3d import sys import numpy as np import pandas as pd import csv #check how many arguments if(len(sys.argv) == 5): print('Correct number of arguments') ''' r = int(34) g = int(200) b = int(78) rgb = (r << 16) | (g << 8) | b print(str(rgb)) r_back = (rgb >> 16) & 0x0000ff; g_back = (rgb >> 8) & ...
17.758242
91
0.598391
4a2780fe78ce68b3e8cef71e44e48a5f43d5192f
99,341
py
Python
mmdet/datasets/pipelines/transforms.py
opencv/mmdetection
6a7dfa5b954d6bbad7f8d33db8268b0fafc7d555
[ "Apache-2.0" ]
24
2020-04-15T14:54:44.000Z
2020-08-12T12:45:57.000Z
mmdet/datasets/pipelines/transforms.py
opencv/mmdetection
6a7dfa5b954d6bbad7f8d33db8268b0fafc7d555
[ "Apache-2.0" ]
46
2020-04-10T12:01:59.000Z
2020-09-04T06:25:56.000Z
mmdet/datasets/pipelines/transforms.py
ovextra/mmdetection
230fb739a50d8495e826013c7bbf64b7e0aff939
[ "Apache-2.0" ]
11
2020-04-16T17:55:29.000Z
2020-08-25T11:13:58.000Z
# Copyright (C) 2018-2021 OpenMMLab # SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import math import copy import cv2 import inspect import mmcv import numpy as np from numpy import random from mmdet.core import PolygonMasks from mmdet.core....
39.515115
79
0.556477
4a278216b55374afd4e6759f4952a08f1fd10570
2,772
py
Python
users/forms.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
1
2021-01-04T07:34:34.000Z
2021-01-04T07:34:34.000Z
users/forms.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
users/forms.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
from crispy_forms.bootstrap import PrependedText from django import forms from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Field, ButtonHolder, Submit from django.contrib.auth impo...
35.538462
91
0.51443
4a27824b1120a6f40d19fd7f7e8a07081392a285
1,490
py
Python
lambda_functions/process/count_feature/lambda_function.py
hotosm/MapCampaigner
32f6b6af2ce81f84fffe33ab864c4ead23bb55b2
[ "BSD-3-Clause" ]
24
2018-10-05T06:39:11.000Z
2022-02-22T08:54:37.000Z
lambda_functions/process/count_feature/lambda_function.py
hotosm/field-campaigner
32f6b6af2ce81f84fffe33ab864c4ead23bb55b2
[ "BSD-3-Clause" ]
384
2017-05-17T07:50:02.000Z
2018-09-20T08:18:56.000Z
lambda_functions/process/count_feature/lambda_function.py
hotosm/field-campaigner
32f6b6af2ce81f84fffe33ab864c4ead23bb55b2
[ "BSD-3-Clause" ]
16
2017-05-11T08:52:19.000Z
2018-06-08T06:55:43.000Z
import sys sys.path.insert(0, "dependencies") import logging import json import xml.sax from utilities import ( fetch_campaign, campaign_path, to_piechart, download_overpass_file, save_data ) from parser import CountFeatureParser from aws import S3Data logger = logging.getLogger() logger.setLevel(...
24.833333
70
0.642953
4a27845ff9feff9e5f98d5829d46cc4238f1149c
2,849
py
Python
tests/integration/test_storage_s3/s3_mocks/unstable_server.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
5
2021-05-14T02:46:44.000Z
2021-11-23T04:58:20.000Z
tests/integration/test_storage_s3/s3_mocks/unstable_server.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
5
2021-05-21T06:26:01.000Z
2021-08-04T04:57:36.000Z
tests/integration/test_storage_s3/s3_mocks/unstable_server.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
8
2021-05-12T01:38:18.000Z
2022-02-10T06:08:41.000Z
import http.server import random import re import socket import struct import sys def gen_n_digit_number(n): assert 0 < n < 19 return random.randint(10**(n-1), 10**n-1) def gen_line(): columns = 4 row = [] def add_number(): digits = random.randint(1, 18) row.append(gen_n_digit_n...
31.307692
110
0.559495
4a27863f37c70f60219074aa9f6c15bdb6a49bc8
3,153
py
Python
stdplugins/new.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
1
2020-08-09T11:43:20.000Z
2020-08-09T11:43:20.000Z
stdplugins/new.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
null
null
null
stdplugins/new.py
aashiq075/PepeBot
5f40f4316c84ec3875bcbcd476e10448f9214f31
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import string from telethon import events from telethon.utils import add_surrogate from telethon.tl.types import Messag...
31.53
75
0.572788
4a27890dd82db00e7f4a2aa463f4dc0a4a230f4f
3,850
py
Python
tests/ut/python/parallel/test_model_with_loss.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/parallel/test_model_with_loss.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/parallel/test_model_with_loss.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.818182
103
0.682597
4a2789b790c62abcf801c955621571d9c3735eba
497
py
Python
scrapy_demo/items.py
lyabs243/scrapy-demo
9e232a0b46ccc2309348d2c430ee6f20c7caa2f7
[ "MIT" ]
null
null
null
scrapy_demo/items.py
lyabs243/scrapy-demo
9e232a0b46ccc2309348d2c430ee6f20c7caa2f7
[ "MIT" ]
null
null
null
scrapy_demo/items.py
lyabs243/scrapy-demo
9e232a0b46ccc2309348d2c430ee6f20c7caa2f7
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class ScrapyDemoItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class PlayerItem(scrapy.Item): image = scrapy.Fie...
22.590909
53
0.68008
4a2789d0acc9765ef8bbbb155ec4a4eb4458a1e7
1,050
py
Python
server/src/prefect_server/graphql/logs.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-10T14:32:32.000Z
2020-05-10T14:32:32.000Z
server/src/prefect_server/graphql/logs.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
3
2022-02-14T11:25:57.000Z
2022-02-27T16:25:14.000Z
server/src/prefect_server/graphql/logs.py
louisditzel/prefect
b1a02fee623b965e756a38aa09059db780ab67eb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed under the Prefect Community License, available at # https://www.prefect.io/legal/prefect-community-license import asyncio import warnings from typing import Any from graphql import GraphQLResolveInfo import prefect from prefect_server import api from prefect_server.utilities.graphql import mutation from ...
29.166667
87
0.642857
4a2789fef841ce5653677077ea7fcbd8c4c3f652
1,441
py
Python
setup.py
basecrm/basecrm-python
d6c26aca8850ba3fa0b9dff48d816b721d181ef7
[ "Apache-2.0" ]
19
2015-04-27T07:50:42.000Z
2019-12-16T03:51:21.000Z
setup.py
basecrm/basecrm-python
d6c26aca8850ba3fa0b9dff48d816b721d181ef7
[ "Apache-2.0" ]
17
2015-05-05T23:08:25.000Z
2018-03-27T09:44:00.000Z
setup.py
basecrm/basecrm-python
d6c26aca8850ba3fa0b9dff48d816b721d181ef7
[ "Apache-2.0" ]
19
2015-05-05T22:39:46.000Z
2020-03-20T14:11:22.000Z
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='basecrm', version='1.2.10', description='BaseCRM Officia...
36.025
78
0.643997
4a278a2e837b6a3fad7735f8cec04227573327d0
12,142
py
Python
botogram/frozenbot.py
Haloghen/botogram
0161a549dbfae8a4114275300b84935f906190f2
[ "MIT" ]
null
null
null
botogram/frozenbot.py
Haloghen/botogram
0161a549dbfae8a4114275300b84935f906190f2
[ "MIT" ]
null
null
null
botogram/frozenbot.py
Haloghen/botogram
0161a549dbfae8a4114275300b84935f906190f2
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2019 The Botogram Authors (see AUTHORS) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
38.18239
79
0.640092
4a278a9c997fd4d2ef452e87321e56c7682d6932
1,864
py
Python
vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.052632
120
0.619635
4a278ad482933f250583406078382aba1aae19e4
595
py
Python
src/masonite/cli.py
holic-cl/masonite
c5eab7db5f87e389fe83a1f0f20a005035ada9d9
[ "MIT" ]
null
null
null
src/masonite/cli.py
holic-cl/masonite
c5eab7db5f87e389fe83a1f0f20a005035ada9d9
[ "MIT" ]
null
null
null
src/masonite/cli.py
holic-cl/masonite
c5eab7db5f87e389fe83a1f0f20a005035ada9d9
[ "MIT" ]
null
null
null
import os import sys from pydoc import ErrorDuringImport from cleo import Application from .commands import NewCommand, InstallCommand from . import __version__ sys.path.append(os.getcwd()) application = Application('Masonite Version:', __version__) application.add(NewCommand()) application.add(InstallCommand()) tr...
22.037037
59
0.756303
4a278b8a49517d3728123188fbf49ee412b51e1b
1,649
py
Python
corpus/spectrumBruteForce/spectrumBruteForce.py
NiyeT/Lexi---Personal-Assistant
ed50765bbdd37255520863224bf42a1c88cd7865
[ "MIT" ]
null
null
null
corpus/spectrumBruteForce/spectrumBruteForce.py
NiyeT/Lexi---Personal-Assistant
ed50765bbdd37255520863224bf42a1c88cd7865
[ "MIT" ]
5
2021-03-01T20:49:54.000Z
2022-02-26T01:44:23.000Z
corpus/spectrumBruteForce/spectrumBruteForce.py
NiyeT/Lexi-Personal-Assistant
ed50765bbdd37255520863224bf42a1c88cd7865
[ "MIT" ]
null
null
null
import requests cookies = { 'lang': 'en', 'session': '%7B%22req_id%22%3A1%2C%22sess_id%22%3A%220%22%2C%22basic%22%3Afalse%2C%22user%22%3A%22username%22%2C%22dataModel%22%3A%7B%22name%22%3A%22Internal%22%2C%22nss%22%3A%5B%7B%22name%22%3A%22gtw%22%2C%22uri%22%3A%22http%3A%2F%2Fsagemcom.com%2Fgateway-data%22%7D%5...
63.423077
524
0.693147
4a278c0c9cbda61d3898b9b0b4921f6bfd2a1598
2,344
py
Python
Udacity Data Structure and Algorithms Nanodegree/Introduction/sudoko_check.py
NirmalSilwal/Problem-Solving
3af3867db4972bd6fc49025d6795341bbe77cdd5
[ "MIT" ]
16
2020-04-05T08:29:32.000Z
2022-01-07T12:31:56.000Z
Udacity Data Structure and Algorithms Nanodegree/Introduction/sudoko_check.py
annu12340/Problem-Solving
9a8b9845ff158501b981e4c5521f7fd798a4e81d
[ "MIT" ]
2
2020-03-04T08:16:54.000Z
2020-03-04T11:27:59.000Z
Udacity Data Structure and Algorithms Nanodegree/Introduction/sudoko_check.py
NirmalSilwal/Problem-Solving
3af3867db4972bd6fc49025d6795341bbe77cdd5
[ "MIT" ]
4
2020-09-20T06:04:03.000Z
2022-01-13T04:29:24.000Z
correct = [[1,2,3], [2,3,1], [3,1,2]] incorrect = [[1,2,3,4], [2,3,1,3], [3,1,2,3], [4,4,4,4]] incorrect2 = [[1,2,3,4], [2,3,1,4], [4,1,2,3], [3,4,1,2]] incorrect3 = [[1,2,3,4,5], [2,3,1,5,6], ...
27.576471
231
0.547355
4a278e5b5a556847d187e9ddc964b7f41f71f617
45,978
py
Python
neutron/db/l3_dvr_db.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
neutron/db/l3_dvr_db.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
neutron/db/l3_dvr_db.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation. 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 ...
46.773143
79
0.603528
4a2790f0322bed65b6bcb58996f43a03219a39ce
1,894
py
Python
chainer_chemistry/dataset/preprocessors/relgat_preprocessor.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
184
2019-11-27T12:59:01.000Z
2022-03-29T19:18:54.000Z
chainer_chemistry/dataset/preprocessors/relgat_preprocessor.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
21
2019-12-08T01:53:33.000Z
2020-10-23T01:19:56.000Z
chainer_chemistry/dataset/preprocessors/relgat_preprocessor.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
45
2019-11-28T09:59:54.000Z
2022-02-07T02:42:46.000Z
from chainer_chemistry.dataset.preprocessors.common import construct_atomic_number_array # NOQA from chainer_chemistry.dataset.preprocessors.common import construct_discrete_edge_matrix # NOQA from chainer_chemistry.dataset.preprocessors.common import MolFeatureExtractionError # NOQA from chainer_chemistry.dataset.p...
42.088889
97
0.697994
4a27911104f5be1d3b35007b5e01a6cc21236541
693
py
Python
pmixvenv/Scripts/rstpep2html.py
michelcarvalho22/ecommerce_simples
a2ba147cac5dab054b373c9ebbb752d8f1eb484a
[ "CC0-1.0" ]
1
2020-07-23T15:40:58.000Z
2020-07-23T15:40:58.000Z
pmixvenv/Scripts/rstpep2html.py
michelcarvalho22/ecommerce_simples
a2ba147cac5dab054b373c9ebbb752d8f1eb484a
[ "CC0-1.0" ]
null
null
null
pmixvenv/Scripts/rstpep2html.py
michelcarvalho22/ecommerce_simples
a2ba147cac5dab054b373c9ebbb752d8f1eb484a
[ "CC0-1.0" ]
null
null
null
#!d:\pointmix\pmixvenv\scripts\python.exe # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Proposal) docum...
26.653846
76
0.728716
4a27916aaed4e9d577d8960eb3a0d3ceb20db678
18,424
py
Python
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from pyomo.core.base import ConcreteModel, Set, Constraint, Var,\ Param, Objective, minimize, sqrt, exp, Suffix, Expression, value from nmpc_mhe.aux.cpoinsc import collptsgen from nmpc_mhe.aux.lagran...
40.942222
122
0.547981
4a27919e251b052617b0eae9dd775fe958d9b29f
407
py
Python
baekjoon/1057.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
baekjoon/1057.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
baekjoon/1057.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
""" 1057 : 토너먼트 URL : https://www.acmicpc.net/problem/1057 Input : 16 8 9 Output : 4 """ import math N, kim, lim = map(int, input().split(' ')) for r in range(1, int(math.ceil(math.log2(N))) + 1): left = min(kim, lim) right = max(kim, lim) if (right % 2) == 0 and right == ...
16.958333
52
0.486486
4a2792c27626e3c0af07204d99af06f5d8a5a9fb
495
py
Python
vulnman/settings/orig.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
3
2021-12-22T07:02:24.000Z
2022-01-27T20:19:11.000Z
vulnman/settings/orig.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
44
2021-12-14T07:24:29.000Z
2022-03-23T07:01:16.000Z
vulnman/settings/orig.py
vulnman/vulnman
d48ee022bc0e4368060a990a527b1c7a5e437504
[ "MIT" ]
1
2022-01-21T16:29:56.000Z
2022-01-21T16:29:56.000Z
VULNMAN_CSS_THEME = "vulnman-dark" # TODO: not used HOST_OS_ICONS = { "linux": { "icon": "fa fa-linux", "matches": [ "Ubuntu", "Fedora", "Arch-Linux", "Debian", "Linux"] } } # TODO: legacy stuff CUSTOM_EXTERNAL_TOOLS = {} CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5" CRISPY_TEMPLATE_PACK =...
26.052632
92
0.70101
4a2792f1d47c721966dbc2626ba072de5e6dacd3
7,130
py
Python
evcouplings/visualize/taxa.py
mrunalimanj/EVcouplings
41e88ce057bc361eb27a938f069476a25aef94c6
[ "MIT" ]
null
null
null
evcouplings/visualize/taxa.py
mrunalimanj/EVcouplings
41e88ce057bc361eb27a938f069476a25aef94c6
[ "MIT" ]
null
null
null
evcouplings/visualize/taxa.py
mrunalimanj/EVcouplings
41e88ce057bc361eb27a938f069476a25aef94c6
[ "MIT" ]
null
null
null
""" Taxonomy diversity visualization Authors: Nicole Thadani (load_taxonomy_lineage) Mrunali Manjrekar """ import pandas as pd import plotly.express as px from ete3 import NCBITaxa # another import COLOR_DISCRETE_MAP = {'Bacteria':'#56B4E9', # blue 'Eukaryota':'#D53500', # red ...
34.444444
101
0.634081
4a279343a02799bae12d577b1ccdbd76d47906ba
3,640
py
Python
hard-gists/8b1b456ec95d95c77d42/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/8b1b456ec95d95c77d42/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/8b1b456ec95d95c77d42/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from PySide import QtGui class QDictBox(QtGui.QDialog): WIDGETS = {str: QtGui.QLineEdit, unicode: QtGui.QLineEdit, int: QtGui.QSpinBox, float: QtGui.QDoubleSpinBox, list: QtGui.QComboBox, bool: QtGui.QCheckBox} GETTERS = {QtGui.QLineEd...
31.652174
79
0.565659
4a27936db578f00e6287078303d58d6b9af140e7
123
py
Python
tests/01_import_test.py
mika1337/ambiancer
5386698ccc281c1e42c675f33be6e5c54adbcf0f
[ "MIT" ]
1
2020-04-19T21:00:39.000Z
2020-04-19T21:00:39.000Z
tests/01_import_test.py
mika1337/ambiancer
5386698ccc281c1e42c675f33be6e5c54adbcf0f
[ "MIT" ]
null
null
null
tests/01_import_test.py
mika1337/ambiancer
5386698ccc281c1e42c675f33be6e5c54adbcf0f
[ "MIT" ]
null
null
null
def test_import(): """ Import test """ from ambiancer import bh1750 from ambiancer import rpibacklight
17.571429
38
0.650407
4a279484b1a4ee6e876a97988c95ad222474b323
1,835
py
Python
post.py
looprock/megaphone
953c92d52a4f1bab436b4cb90b52d0c54926e0af
[ "0BSD" ]
5
2016-07-11T20:37:09.000Z
2017-02-04T13:28:07.000Z
post.py
looprock/Megaphone
953c92d52a4f1bab436b4cb90b52d0c54926e0af
[ "0BSD" ]
null
null
null
post.py
looprock/Megaphone
953c92d52a4f1bab436b4cb90b52d0c54926e0af
[ "0BSD" ]
null
null
null
#!/usr/bin/env python import json import sys import requests import os import getopt import socket def usage(): print sys.argv[0] + """ [options] [json file] options: -h/--help - print usage summary -o/--override - override the status """ statusoverride = False try: ...
25.486111
110
0.607084
4a2794d86c282e1cbc57989b3e699a6521642092
201
py
Python
osenv.py
nitesh8860/python-random-snips
1ab54032a0d49ff51e2163c27700a823e14da8de
[ "MIT" ]
null
null
null
osenv.py
nitesh8860/python-random-snips
1ab54032a0d49ff51e2163c27700a823e14da8de
[ "MIT" ]
null
null
null
osenv.py
nitesh8860/python-random-snips
1ab54032a0d49ff51e2163c27700a823e14da8de
[ "MIT" ]
null
null
null
import os import sys with open('controlscript.log', 'a') as fh: fh.write('\nENV_VARS\n') for k in os.environ.keys(): fh.write("%s: %s\n" % (k, os.environ[k]))
22.333333
58
0.512438
4a279656ba7b5c7aa98d4d3b0ba01f4c0eed8481
6,407
py
Python
test/substatement_test.py
plusplusco/TinCanPython
bbc3f9dd5d8385e7b66c693e7f8262561392be74
[ "Apache-2.0" ]
38
2015-02-26T12:40:15.000Z
2021-08-19T11:19:25.000Z
test/substatement_test.py
plusplusco/TinCanPython
bbc3f9dd5d8385e7b66c693e7f8262561392be74
[ "Apache-2.0" ]
21
2015-01-07T23:12:01.000Z
2022-02-27T12:35:49.000Z
test/substatement_test.py
plusplusco/TinCanPython
bbc3f9dd5d8385e7b66c693e7f8262561392be74
[ "Apache-2.0" ]
27
2015-02-09T17:21:44.000Z
2022-02-27T12:36:25.000Z
# Copyright 2014 Rustici Software # # 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...
42.430464
119
0.672077
4a2797143d0cfc1f3badea6800bb291b1ea680e6
3,431
py
Python
tests/storage/psql_dos/migrations/django_branch/test_0032_remove_legacy_workflows.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
153
2016-12-23T20:59:03.000Z
2019-07-02T06:47:52.000Z
tests/storage/psql_dos/migrations/django_branch/test_0032_remove_legacy_workflows.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
tests/storage/psql_dos/migrations/django_branch/test_0032_remove_legacy_workflows.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
35.371134
76
0.535995
4a2799f5eb055993941ed016c69a323cd0755738
741
py
Python
networking_bgpvpn/neutron/db/head.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
38
2015-06-23T08:06:16.000Z
2022-01-25T16:03:10.000Z
networking_bgpvpn/neutron/db/head.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
null
null
null
networking_bgpvpn/neutron/db/head.py
cgoncalves/networking-bgpvpn
3ec876c4ead840874e08d6dc876a36814d5f1f81
[ "Apache-2.0" ]
17
2015-11-28T00:45:22.000Z
2021-07-22T09:22:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
35.285714
74
0.773279
4a279a6e8e3e93cc5697567026dced970a42e042
7,516
py
Python
scripts/analyze-file.py
madmongo1/cpp-compile-overhead
163038784a02c21c0e837400cd2415702e153959
[ "MIT" ]
null
null
null
scripts/analyze-file.py
madmongo1/cpp-compile-overhead
163038784a02c21c0e837400cd2415702e153959
[ "MIT" ]
null
null
null
scripts/analyze-file.py
madmongo1/cpp-compile-overhead
163038784a02c21c0e837400cd2415702e153959
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import re import argparse import os import sys import subprocess import time import json parser = argparse.ArgumentParser(description="C++ compile-health analyzer") parser.add_argument("file", metavar="F", type=str, help="C++ source or header file to analyze") pa...
30.306452
108
0.617084
4a279a95a92b857977f4c83b29717ba78b292b5f
2,325
py
Python
api/staticdata/control_list_entries/migrations/0001_squashed_0005_auto_20200519_1617.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/staticdata/control_list_entries/migrations/0001_squashed_0005_auto_20200519_1617.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/staticdata/control_list_entries/migrations/0001_squashed_0005_auto_20200519_1617.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 3.1.8 on 2021-04-26 07:59 from django.db import migrations, models import django.db.models.deletion import uuid def forward_migration(apps, schema_editor): ControlListEntry = apps.get_model("control_list_entries", "ControlListEntry") ControlListEntry.objects.filter(is_decontrolled=True)...
37.5
278
0.655484
4a279bb281d4878ea379a924610bf069f20b5cc7
16,567
py
Python
src/opnsense/service/modules/template.py
johanneskastl/opnsense-core
1c8731dd784cf5bd101f8d433f99d9f6a68a982c
[ "BSD-2-Clause" ]
35
2018-05-05T00:27:51.000Z
2020-10-28T18:56:16.000Z
src/opnsense/service/modules/template.py
johanneskastl/opnsense-core
1c8731dd784cf5bd101f8d433f99d9f6a68a982c
[ "BSD-2-Clause" ]
1
2018-06-02T07:42:51.000Z
2018-06-02T08:53:28.000Z
src/opnsense/service/modules/template.py
johanneskastl/opnsense-core
1c8731dd784cf5bd101f8d433f99d9f6a68a982c
[ "BSD-2-Clause" ]
11
2018-05-09T16:31:29.000Z
2022-02-11T23:35:09.000Z
""" Copyright (c) 2015 Ad Schellevis <ad@opnsense.org> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
47.19943
119
0.558822
4a279c8d2952283c09f2246db76c05f1d510719b
37
py
Python
py/api.py
hugodemenez/PortfolioWebsiteTracker
98a396662bb8ccdb27a2853e8ce42404943ecde8
[ "MIT" ]
null
null
null
py/api.py
hugodemenez/PortfolioWebsiteTracker
98a396662bb8ccdb27a2853e8ce42404943ecde8
[ "MIT" ]
null
null
null
py/api.py
hugodemenez/PortfolioWebsiteTracker
98a396662bb8ccdb27a2853e8ce42404943ecde8
[ "MIT" ]
null
null
null
from Python-Brokers-API import ftx
9.25
34
0.783784
4a279ca8b73482550408dad8ff59f340b89f2856
5,890
py
Python
brickschema/brickify/src/handlers/Handler/Handler.py
BrickSchema/py-brickschema
42acd46eef73731db0428503eade325fac38c554
[ "BSD-3-Clause" ]
31
2020-01-23T18:39:12.000Z
2022-02-10T04:46:30.000Z
brickschema/brickify/src/handlers/Handler/Handler.py
BrickSchema/py-brickschema
42acd46eef73731db0428503eade325fac38c554
[ "BSD-3-Clause" ]
46
2020-01-27T22:09:16.000Z
2022-03-11T12:58:21.000Z
brickschema/brickify/src/handlers/Handler/Handler.py
BrickSchema/py-brickschema
42acd46eef73731db0428503eade325fac38c554
[ "BSD-3-Clause" ]
10
2020-02-18T20:21:43.000Z
2022-03-31T13:47:49.000Z
import re from pathlib import Path from typing import Optional, List import importlib_resources import rdflib import typer from typer import progressbar from brickschema.brickify.util import bind_namespaces, load_config class Handler: def __init__( self, source: Optional[str] = "input.ttl", ...
38.496732
136
0.58472
4a279ceccbbfde8cf4e5935e6a9f366f1c8eeacb
10,318
py
Python
DiscordClasses/message_funcs.py
Shlol762/J.A.R.V.I.S
076eb0910d6bbbe1737dcb45f5d8961768a1c3cf
[ "MIT" ]
null
null
null
DiscordClasses/message_funcs.py
Shlol762/J.A.R.V.I.S
076eb0910d6bbbe1737dcb45f5d8961768a1c3cf
[ "MIT" ]
null
null
null
DiscordClasses/message_funcs.py
Shlol762/J.A.R.V.I.S
076eb0910d6bbbe1737dcb45f5d8961768a1c3cf
[ "MIT" ]
null
null
null
import asyncio import datetime import json import re, random from nextcord import Forbidden, Invite, Message, Member from nextcord.ext.commands import Context, Bot from typing import Optional, Union, Any webhooks = [861660340617084968, 861660166193807430, 861660711037960243, 861660517746999356, 880318607643521075] sr...
45.453744
197
0.52074
4a279d4e11ba48eedb2135276e48655362a99e01
1,654
py
Python
setup.py
BurntSushi/nflfan
ddb5496e99787da82e233a9dd03121bc2b222549
[ "Unlicense" ]
35
2015-01-17T13:58:48.000Z
2021-01-09T18:56:14.000Z
setup.py
BurntSushi/nflfan
ddb5496e99787da82e233a9dd03121bc2b222549
[ "Unlicense" ]
1
2016-08-14T05:26:06.000Z
2016-08-15T10:33:17.000Z
setup.py
BurntSushi/nflfan
ddb5496e99787da82e233a9dd03121bc2b222549
[ "Unlicense" ]
17
2015-08-29T11:34:40.000Z
2019-09-18T19:25:57.000Z
import codecs from distutils.core import setup from glob import glob import os.path as path cwd = path.dirname(__file__) longdesc = codecs.open(path.join(cwd, 'longdesc.rst'), 'r', 'utf-8').read() version = '0.0.0' with codecs.open(path.join(cwd, 'nflfan/version.py'), 'r', 'utf-8') as f: exec(f.read()) versio...
32.431373
75
0.587062
4a279e4befa2ee07f77ff43776600802e8e83e1d
2,597
py
Python
aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeAccountsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeAccountsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeAccountsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.094595
84
0.77397
4a27a005b6968a971dcaeb5724a8a122e0b318a8
9,723
py
Python
tests/test_connection.py
ywangd/peek
25d196b614acaf9c2f9fe4b8fea36a06554950cd
[ "MIT" ]
16
2020-08-31T02:06:23.000Z
2022-01-31T23:56:44.000Z
tests/test_connection.py
ywangd/peek
25d196b614acaf9c2f9fe4b8fea36a06554950cd
[ "MIT" ]
97
2020-08-27T14:51:32.000Z
2021-10-21T00:19:31.000Z
tests/test_connection.py
ywangd/peek
25d196b614acaf9c2f9fe4b8fea36a06554950cd
[ "MIT" ]
1
2021-02-07T13:10:38.000Z
2021-02-07T13:10:38.000Z
import os from unittest.mock import MagicMock, patch, call import pytest from peek.connection import connect, EsClient, RefreshingEsClient, EsClientManager, DelegatingListener from peek.errors import PeekError def test_connect_default(): mock_app = MagicMock(name='PeekApp') client = connect(mock_app) mo...
38.892
120
0.672221
4a27a0479f05a970e5a8c3f80a9e83102f90bef5
16,818
py
Python
tests/test_smart_list.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
tests/test_smart_list.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
tests/test_smart_list.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2015 Ben Kurtovic <ben.kurtovic@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
39.571765
79
0.565644
4a27a0d2f818f40967bc1566198c3282338deb33
2,467
py
Python
disentanglement_lib/evaluation/metrics/unsupervised_metrics_test.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/evaluation/metrics/unsupervised_metrics_test.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/evaluation/metrics/unsupervised_metrics_test.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The DisentanglementLib Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
41.813559
74
0.72274
4a27a275d71ebe221d71d1aee3da2a74ab41bda2
5,023
py
Python
mars/learn/semi_supervised/tests/test_label_propagation.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1
2022-02-02T03:03:48.000Z
2022-02-02T03:03:48.000Z
mars/learn/semi_supervised/tests/test_label_propagation.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
mars/learn/semi_supervised/tests/test_label_propagation.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.641379
87
0.664344
4a27a2ed310586b5415d034e487c860405b9c26e
57,062
py
Python
conda_build/skeletons/cran.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
null
null
null
conda_build/skeletons/cran.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
null
null
null
conda_build/skeletons/cran.py
grlee77/conda-build
ea99e2dc2fa473039dbeb73d92b3f5d5c59548fe
[ "BSD-3-Clause" ]
null
null
null
""" Tools for converting Cran packages to conda recipes. """ from __future__ import absolute_import, division, print_function import argparse import copy from itertools import chain from os import makedirs, listdir, sep, environ from os.path import (basename, commonprefix, exists, isabs, isdir, i...
40.584637
193
0.569451
4a27a3281c4846825986bfafd73e85eb31770945
637
py
Python
snake/rl/player.py
barryzhai/snake
c749e101a374b7e0a60151e8128cee80a686b6b1
[ "MIT" ]
null
null
null
snake/rl/player.py
barryzhai/snake
c749e101a374b7e0a60151e8128cee80a686b6b1
[ "MIT" ]
null
null
null
snake/rl/player.py
barryzhai/snake
c749e101a374b7e0a60151e8128cee80a686b6b1
[ "MIT" ]
null
null
null
from snake.base.direc import Direc from snake.rl.nnet_wrapper import NNetWrapper from snake.game import PureGame from snake.utils import dotdict import numpy as np class NNPlayer(NNetWrapper): def __init__(self, game: PureGame, args: dotdict): super().__init__(game, args) self.load_checkpoint(args...
33.526316
61
0.687598
4a27a39ff9b434429a34104410cffe5befb0316f
6,646
py
Python
spectral/tests/database.py
wwlswj/spectral
e886e4d9f8c34f512c8e81867f0de76e15550572
[ "MIT" ]
398
2015-01-16T14:55:20.000Z
2022-03-29T04:13:00.000Z
spectral/tests/database.py
wwlswj/spectral
e886e4d9f8c34f512c8e81867f0de76e15550572
[ "MIT" ]
108
2015-01-20T15:39:17.000Z
2022-02-23T09:59:55.000Z
spectral/tests/database.py
wwlswj/spectral
e886e4d9f8c34f512c8e81867f0de76e15550572
[ "MIT" ]
123
2015-03-25T10:15:54.000Z
2022-03-06T14:24:21.000Z
''' Runs unit tests of functions associated with spectral databases. To run the unit tests, type the following from the system command line: # python -m spectral.tests.database Note that the ECOSTRESS database must be requested so if the data files are not located on the local file system, these tests will be sk...
37.128492
112
0.640686
4a27a42784d6e858d40cc688f150ff509e0f3d54
1,469
py
Python
old/query.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
old/query.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
old/query.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re class Query(): def __init__(self, task_id, period=None, channel=0, other=None): self.tid = task_id if period is None: self.time_start = 0 self.time_end = None else: l = period.split('-') assert 1 <= len(l) <= ...
31.934783
72
0.528931
4a27a5de1d2d663bb8fd1bca61766ea873160dc0
7,858
py
Python
docs/conf.py
Lodewic/vantage-project
3430e8205b1bc6d6c8c65e3f1dc93d25e5e43557
[ "Apache-2.0" ]
null
null
null
docs/conf.py
Lodewic/vantage-project
3430e8205b1bc6d6c8c65e3f1dc93d25e5e43557
[ "Apache-2.0" ]
null
null
null
docs/conf.py
Lodewic/vantage-project
3430e8205b1bc6d6c8c65e3f1dc93d25e5e43557
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # vantage-project documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration value...
32.073469
80
0.708195
4a27a7695a2173bf4558649fe11af9bb548cf31f
817
py
Python
scripts/utils.py
alexbotello/concert_finder
b2d0ac446dbd9b1b99afeda507698d8918e9b0dd
[ "MIT" ]
1
2017-03-07T00:01:09.000Z
2017-03-07T00:01:09.000Z
scripts/utils.py
alexbotello/concert_finder
b2d0ac446dbd9b1b99afeda507698d8918e9b0dd
[ "MIT" ]
null
null
null
scripts/utils.py
alexbotello/concert_finder
b2d0ac446dbd9b1b99afeda507698d8918e9b0dd
[ "MIT" ]
null
null
null
import requests import settings def post_to_discord(json_param): """ Post a message to discord channel JSON Params ------------ content : str The message contents (up to 2000 characters) embed : embed object Example - { 'embed': { 'image': { ...
29.178571
73
0.499388
4a27a77d28bd34e8ba433469c47416100a0dad7c
836
py
Python
proj01/proj01/proj01.py
Bossman64/savy-2017
3b30cd4d830493d70992cd8d992d26baf6567508
[ "MIT" ]
null
null
null
proj01/proj01/proj01.py
Bossman64/savy-2017
3b30cd4d830493d70992cd8d992d26baf6567508
[ "MIT" ]
null
null
null
proj01/proj01/proj01.py
Bossman64/savy-2017
3b30cd4d830493d70992cd8d992d26baf6567508
[ "MIT" ]
null
null
null
name = raw_input('Enter your name please:') Date = raw_input('What is today: ') Age = raw_input('How old are you:') Birthdaythisyear = raw_input('Have you had your birthday this year Yes or No please:') print 'you will be 100 in the year' if Birthdaythisyear == 'yes': Yes = 2017-int(Age) x = Yes + 100 prin...
19.904762
98
0.659091
4a27a8157aa42808f9a2102750fa12fad546e877
3,809
py
Python
18_fastx_sampler/solution2_gzip.py
LongNguyen1984/biofx_python
b8d45dc38d968674c6b641051b73f8ed1503b1e4
[ "MIT" ]
1
2021-04-21T07:15:27.000Z
2021-04-21T07:15:27.000Z
18_fastx_sampler/solution2_gzip.py
LongNguyen1984/biofx_python
b8d45dc38d968674c6b641051b73f8ed1503b1e4
[ "MIT" ]
null
null
null
18_fastx_sampler/solution2_gzip.py
LongNguyen1984/biofx_python
b8d45dc38d968674c6b641051b73f8ed1503b1e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Probabilistically subset FASTA files """ import argparse import os import random import gzip from Bio import SeqIO from typing import List, NamedTuple, Optional, TextIO class Args(NamedTuple): """ Command-line arguments """ files: List[TextIO] file_format: str percent: floa...
29.527132
77
0.470202
4a27a82a5810f39602881335afacd1b0f14786fa
2,699
py
Python
amftrack/pipeline/scripts/image_processing/hyphae_extraction.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
1
2021-06-10T02:51:53.000Z
2021-06-10T02:51:53.000Z
amftrack/pipeline/scripts/image_processing/hyphae_extraction.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
amftrack/pipeline/scripts/image_processing/hyphae_extraction.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
from path import path_code_dir import sys sys.path.insert(0, path_code_dir) from amftrack.util import get_dates_datetime import os from amftrack.pipeline.functions.image_processing.experiment_class_surf import Experiment # from experiment_class_surftest import Experiment, clean_exp_with_hyphaes from amftrack.p...
35.986667
101
0.714339
4a27a8af34ae9961f8dc28c8095e863ebe10d466
2,631
py
Python
examples/block_copolymer/runIm-BCP-dots_vs_lines.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
13
2018-04-17T06:35:20.000Z
2021-09-22T08:49:47.000Z
examples/block_copolymer/runIm-BCP-dots_vs_lines.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
14
2018-04-18T01:05:57.000Z
2020-11-05T21:57:09.000Z
examples/block_copolymer/runIm-BCP-dots_vs_lines.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
9
2017-05-26T14:47:38.000Z
2021-03-24T02:44:59.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import sys # To get commandline arguments import glob #SciAnalysis_PATH='/home/kyager/current/code/SciAnalysis/main/' SciAnalysis_PATH='/home/yager/current/code/SciAnalysis/main/' SciAnalysis_PATH in sys.path or sys.path.append(SciAnalysis_PATH) from SciAnalysis im...
29.233333
135
0.595211
4a27aa9332db66c4786e58f0dc21187c9016e143
74
py
Python
plugins/markdown/komand_markdown/actions/markdown_to_txt/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/markdown/komand_markdown/actions/markdown_to_txt/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/markdown/komand_markdown/actions/markdown_to_txt/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import MarkdownToTxt
24.666667
39
0.783784
4a27ac2123181d2bcfef94f5bb6c74f38ee01b90
9,426
py
Python
tanh.py
janivanecky/Numpy-RNNs
6ed9e4727dad520f169debcd914cdf6af48466f6
[ "MIT" ]
67
2016-08-05T13:22:06.000Z
2021-05-21T08:11:41.000Z
tanh.py
janivanecky/Numpy-RNNs
6ed9e4727dad520f169debcd914cdf6af48466f6
[ "MIT" ]
null
null
null
tanh.py
janivanecky/Numpy-RNNs
6ed9e4727dad520f169debcd914cdf6af48466f6
[ "MIT" ]
10
2016-08-06T16:05:06.000Z
2019-12-15T02:42:22.000Z
''' Simple Vanilla RNN model in python/numpy, written by Jan Ivanecky (@janivanecyk) MIT license ''' import numpy as np import math import util from random import uniform from graph import Grapher # softmax layer def softmax(bottom): top = np.exp(bottom) / np.sum(np.exp(bottom)) return top # note: this is not a ...
35.040892
157
0.701782
4a27ac4c6157f12b137ae57b1ae4fba5e549ffdb
828
py
Python
dns-checker.py
estaji/multi-nslookup
068d6aaa302abf0a3e1b1050814a9e88aff275be
[ "MIT" ]
null
null
null
dns-checker.py
estaji/multi-nslookup
068d6aaa302abf0a3e1b1050814a9e88aff275be
[ "MIT" ]
null
null
null
dns-checker.py
estaji/multi-nslookup
068d6aaa302abf0a3e1b1050814a9e88aff275be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # By Omid Estaji - estaji.work@gmail.com - 1400/07/16 # Compatible to Python3 # Usage: #python3 dns-checker.py import socket import os dns_server = input('What is your DNS server?\n e.g: ns1.parspack.net\n e.g: 8.8.8.8\n') domain = input("What is your domain address?\n e.g: 0mid.net\n e.g: mai...
30.666667
97
0.657005
4a27acaa482f096862bc703f00d89394bc604d07
589
py
Python
alboPretorioJCityGov/pipelines.py
mfortini/alboPretorioJCityGov
feb8eef26e796b897985b6614db1859fb4053600
[ "MIT" ]
null
null
null
alboPretorioJCityGov/pipelines.py
mfortini/alboPretorioJCityGov
feb8eef26e796b897985b6614db1859fb4053600
[ "MIT" ]
null
null
null
alboPretorioJCityGov/pipelines.py
mfortini/alboPretorioJCityGov
feb8eef26e796b897985b6614db1859fb4053600
[ "MIT" ]
null
null
null
from dbmanager import * # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class AlbopretorioJCityGovPipeline(object): def open_spider(self, spider): self.dbInsertNuovi = dbInsertNuovi() ...
26.772727
65
0.692699
4a27acf9ca7f610114873d76853b1108fef29114
41,090
py
Python
lib/spack/spack/test/config.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
lib/spack/spack/test/config.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
lib/spack/spack/test/config.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.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 collections import getpass import os import sys import tempfile import pytest from six import StringIO from llnl....
32.741036
85
0.625627
4a27adb558b3f23d40e9b2fdd738f532713f34f9
2,437
py
Python
ANNForFingerprint/NeuralNetwork/data.py
shams-sam/logic-lab
559990b0c3d44bfe59d32dcb8038a0cab3efc26e
[ "MIT" ]
null
null
null
ANNForFingerprint/NeuralNetwork/data.py
shams-sam/logic-lab
559990b0c3d44bfe59d32dcb8038a0cab3efc26e
[ "MIT" ]
null
null
null
ANNForFingerprint/NeuralNetwork/data.py
shams-sam/logic-lab
559990b0c3d44bfe59d32dcb8038a0cab3efc26e
[ "MIT" ]
null
null
null
import numpy, random from scipy import misc from config import * import random #-------------------------------------------------------------------------------- # . . # ,-| ,-. |- ,-. ,-. ,-. ,-. ,-. ,-. ,-. ,-. . ,-. ,-. # | | ,-| | ,-| | | | | | | |-' `-. `-. | | | | | # `-^ `-^ `' `-^ |-' ' `-' `...
43.517857
138
0.479688
4a27adb5b0c058c42f0e2d67f54eeb94efd60499
2,274
py
Python
_4_CPython_ctypes/tests.py
teyrana/py_opt_talk
7be0e5946a59d2d0af3534e94395a46fcc5afbed
[ "BSD-2-Clause" ]
null
null
null
_4_CPython_ctypes/tests.py
teyrana/py_opt_talk
7be0e5946a59d2d0af3534e94395a46fcc5afbed
[ "BSD-2-Clause" ]
null
null
null
_4_CPython_ctypes/tests.py
teyrana/py_opt_talk
7be0e5946a59d2d0af3534e94395a46fcc5afbed
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest from bst import BinaryTreeNode as node from bst import BinarySearchTree class TestBinaryTree(unittest.TestCase): def test_create_from_list(self): """This method creates a fully-populated binary-search-tree of depth 4, on the numbers: [0, 30]""" # ...
42.90566
106
0.467898
4a27ae89766938b282fd54e925c68aa8126bcb65
1,657
py
Python
cf_speedtest/options.py
12932/cf-speedtest
8f2139915c4d4eb8d017b755b6e2368fc77d9f97
[ "MIT" ]
9
2021-01-03T03:13:26.000Z
2022-03-21T12:42:04.000Z
cf_speedtest/options.py
12932/cf-speedtest
8f2139915c4d4eb8d017b755b6e2368fc77d9f97
[ "MIT" ]
null
null
null
cf_speedtest/options.py
12932/cf-speedtest
8f2139915c4d4eb8d017b755b6e2368fc77d9f97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse def str_to_bool(s: str) -> bool: if isinstance(s, bool): return s if s.lower() in ('yes', 'true', 't', 'y', '1'): return True elif s.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError(f"Boolean value expected, received {s...
26.725806
101
0.69825
4a27aedf3e7f2fb54e1df7c182a979fb7cb0c835
3,682
py
Python
upstream/byol_a/expert.py
AmirHussein96/Self-Supervised-Speech-Pretraining-and-Representation-Learning
fa8dd981b90973d108687f18593ca131bb82e782
[ "MIT" ]
3
2021-08-07T19:12:56.000Z
2022-03-29T15:16:31.000Z
upstream/byol_a/expert.py
AmirHussein96/Self-Supervised-Speech-Pretraining-and-Representation-Learning
fa8dd981b90973d108687f18593ca131bb82e782
[ "MIT" ]
2
2021-07-28T20:35:59.000Z
2021-07-30T16:01:53.000Z
upstream/byol_a/expert.py
AmirHussein96/Self-Supervised-Speech-Pretraining-and-Representation-Learning
fa8dd981b90973d108687f18593ca131bb82e782
[ "MIT" ]
2
2021-07-21T11:05:26.000Z
2021-07-22T09:46:38.000Z
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ upstream/byol_a/expert.py ] # Synopsis [ the BYOL-Audio wrapper ] # Author [ S3PRL ] # Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ] """***************...
35.066667
149
0.560022
4a27afffdee9892827a468365a4a03d4d0e7a262
141
py
Python
mlutils/experiment/__init__.py
marcopodda/mldatautils
57bf5d6ee2fb62d9dffd4b344d7d91eb8795457d
[ "MIT" ]
2
2020-03-06T19:55:53.000Z
2020-03-07T14:14:53.000Z
mlutils/experiment/__init__.py
marcopodda/mldatautils
57bf5d6ee2fb62d9dffd4b344d7d91eb8795457d
[ "MIT" ]
null
null
null
mlutils/experiment/__init__.py
marcopodda/mldatautils
57bf5d6ee2fb62d9dffd4b344d7d91eb8795457d
[ "MIT" ]
null
null
null
from .experiment import Experiment from .model_selection.selector import ModelSelector from .model_evaluation.evaluator import ModelEvaluator
47
54
0.886525
4a27b1ad447dcfa1f8426d8f321052427c83afca
2,589
py
Python
autotabular/pipeline/components/classification/k_nearest_neighbors.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
autotabular/pipeline/components/classification/k_nearest_neighbors.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
autotabular/pipeline/components/classification/k_nearest_neighbors.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
from autotabular.pipeline.components.base import AutotabularClassificationAlgorithm from autotabular.pipeline.constants import DENSE, PREDICTIONS, SPARSE, UNSIGNED_DATA from ConfigSpace.configuration_space import ConfigurationSpace from ConfigSpace.hyperparameters import CategoricalHyperparameter, UniformIntegerHyperpa...
35.465753
95
0.62611
4a27b240182cf72bc394138978da17724853b3ef
1,156
py
Python
var/spack/repos/builtin/packages/py-jpype1/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-jpype1/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-jpype1/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 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) from spack import * class PyJpype1(PythonPackage): """JPype is an effort to allow python programs full access to jav...
39.862069
95
0.737889
4a27b2a90db4552de38bb2bc063ac6de5ea140d2
819
py
Python
tests/test_api.py
Wandao-Corp/mdformat
9169a0892050ca05d9553fb43a401eba40f8523f
[ "MIT" ]
null
null
null
tests/test_api.py
Wandao-Corp/mdformat
9169a0892050ca05d9553fb43a401eba40f8523f
[ "MIT" ]
null
null
null
tests/test_api.py
Wandao-Corp/mdformat
9169a0892050ca05d9553fb43a401eba40f8523f
[ "MIT" ]
null
null
null
import pytest import mdformat UNFORMATTED_MARKDOWN = "\n\n# A header\n\n" FORMATTED_MARKDOWN = "# A header\n" def test_fmt_file(tmp_path): file_path = tmp_path / "test_markdown.md" # Use string argument file_path.write_text(UNFORMATTED_MARKDOWN) mdformat.file(str(file_path)) assert file_path.re...
26.419355
72
0.727717
4a27b3ed6fd00fac9c4e817856e20b2433c483ed
5,771
py
Python
ITM/dataset.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
2
2022-01-02T13:04:00.000Z
2022-03-06T05:33:07.000Z
ITM/dataset.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
null
null
null
ITM/dataset.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset, DataLoader import random, pdb from tqdm import tqdm import json import glob, os import pickle from PIL import Image, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True # import matplotlib.pyplot as plt class post_loader(Dataset): def __init__(self, data_path, image_obj...
49.324786
165
0.507711
4a27b4ac16ea38f12f943af11c9a358f43277ef3
440
py
Python
emell/computation/test_identity.py
jakevoytko/emell
b26c643342ce0011fd574cb0848d2ba6182d8129
[ "MIT" ]
2
2020-02-13T05:47:47.000Z
2020-03-06T17:38:33.000Z
emell/computation/test_identity.py
jakevoytko/emell
b26c643342ce0011fd574cb0848d2ba6182d8129
[ "MIT" ]
null
null
null
emell/computation/test_identity.py
jakevoytko/emell
b26c643342ce0011fd574cb0848d2ba6182d8129
[ "MIT" ]
null
null
null
"""Contains tests for identity.py""" import unittest from emell.computation import identity class TestIdentity(unittest.TestCase): """Tests the identity function.""" def test_identity(self) -> None: """Runs simple tests for identity().""" self.assertEqual("a", identity("a")) self.as...
22
47
0.65
4a27b5ce42526b571338afb0dd5be7aebccd9f83
16,329
py
Python
differentiable_filters/utils/base_layer.py
akloss/differentiable_filters
821889dec411927658c6ef7dd01c9028d2f28efd
[ "MIT" ]
14
2021-01-10T10:44:31.000Z
2022-03-28T07:46:49.000Z
differentiable_filters/utils/base_layer.py
brentyi/differentiable_filters
7ae1f5022a9f5cf9485cb7748cadf0f0d65c01bd
[ "MIT" ]
null
null
null
differentiable_filters/utils/base_layer.py
brentyi/differentiable_filters
7ae1f5022a9f5cf9485cb7748cadf0f0d65c01bd
[ "MIT" ]
7
2021-01-13T12:38:36.000Z
2022-03-06T16:49:43.000Z
""" A base class providing - wrappers around some tensorflow layers to set default arguments - a function to compute jacobians - a spatial-softmax layer """ import tensorflow as tf class BaseLayer(tf.keras.layers.Layer): def __init__(self): """ A base class providing - wrappe...
38.878571
79
0.52269
4a27b70e25407f49fcb15959ec555775363e982b
37,537
py
Python
python_modules/dagster/dagster/cli/pipeline.py
abkfenris/dagster
7f35164535200cf904a4fdb18af207ccad09ad68
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/cli/pipeline.py
abkfenris/dagster
7f35164535200cf904a4fdb18af207ccad09ad68
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/cli/pipeline.py
abkfenris/dagster
7f35164535200cf904a4fdb18af207ccad09ad68
[ "Apache-2.0" ]
null
null
null
import os import re import sys import textwrap import click import pendulum import yaml from tabulate import tabulate from dagster import PipelineDefinition from dagster import __version__ as dagster_version from dagster import check, execute_pipeline from dagster.cli.workspace.cli_target import ( WORKSPACE_TARGE...
37.877901
113
0.690306
4a27b78ef409eccd5b1006f58a650ee51c7662e0
1,714
py
Python
drl/dqn/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
1
2021-08-10T03:00:34.000Z
2021-08-10T03:00:34.000Z
drl/dqn/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
null
null
null
drl/dqn/nn_blocks.py
lych1233/compactDRL
392eeff336c833b97b4c9b7f6b044144c242b1fa
[ "MIT" ]
null
null
null
import torch.nn as nn class MLPFeature(nn.Sequential): def __init__(self, input_dim, hidden_dim): super(MLPFeature, self).__init__( nn.Linear(input_dim, hidden_dim), nn.ReLU(), ) class CNNFeature(nn.Sequential): def __init__(self, args, in_channels, width, height, chan...
37.26087
89
0.617853
4a27b88e4626576f0424457af04307a171df6f3f
2,191
py
Python
mlapp/handlers/databases/database_interface.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
mlapp/handlers/databases/database_interface.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
mlapp/handlers/databases/database_interface.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod class DatabaseInterface: __metaclass__ = ABCMeta @abstractmethod def execute_query(self, query, params=None): """ Executes Query in the database. :param query: str - query to be executed. :param params: list - list of parameters to b...
33.19697
112
0.628024
4a27b969775d0e952c66f381768ced81f685cc76
343
py
Python
tests/apps/overridable/models.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
tests/apps/overridable/models.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
tests/apps/overridable/models.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from yepes.apps import apps AbstractArticle = apps.get_class('overridable.abstract_models', 'AbstractArticle') AbstractAuthor = apps.get_class('overridable.abstract_models', 'AbstractAuthor') class Article(AbstractArticle): pass class Author(Abst...
19.055556
82
0.772595
4a27b9833e60f2ffb7094acc326ce7652ed5213d
4,089
py
Python
joystick.py
salendron/blobblast
e557a1c275c843fff3fde679c06cf5e022c4c27c
[ "MIT" ]
null
null
null
joystick.py
salendron/blobblast
e557a1c275c843fff3fde679c06cf5e022c4c27c
[ "MIT" ]
null
null
null
joystick.py
salendron/blobblast
e557a1c275c843fff3fde679c06cf5e022c4c27c
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2022 Bruno Hautzenberger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
37.172727
98
0.630717
4a27b9c057b4f29ab24b0ccc3787557b56f340ac
2,962
py
Python
supports/pyload/src/pyload/plugins/downloaders/RapiduNet.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/downloaders/RapiduNet.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/downloaders/RapiduNet.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import time from datetime import timedelta import pycurl from ..anticaptchas.ReCaptcha import ReCaptcha from ..base.simple_downloader import SimpleDownloader class RapiduNet(SimpleDownloader): __name__ = "RapiduNet" __type__ = "downloader" __version__ = "0.15" __...
29.919192
88
0.565159
4a27ba2ff98301a758075bbcd8c347345390ad59
10,453
py
Python
mayan/apps/documents/tests/test_trashed_document_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
4
2021-09-02T00:16:30.000Z
2021-09-09T22:25:15.000Z
mayan/apps/documents/tests/test_trashed_document_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
86
2021-09-01T23:53:02.000Z
2021-09-20T02:25:10.000Z
mayan/apps/documents/tests/test_trashed_document_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
70
2021-09-01T12:54:51.000Z
2022-02-16T00:53:18.000Z
from ..models.document_models import Document from ..models.trashed_document_models import TrashedDocument from ..permissions import ( permission_trashed_document_delete, permission_trashed_document_restore, permission_document_trash, permission_document_view, permission_trash_empty ) from .base import Gen...
35.433898
81
0.710705
4a27ba6c5ec0a330e5b977a78d274eaf6bd171f9
5,170
py
Python
rl_agents/agents/deep_q_network/pytorch.py
saArbabi/rl-agents
18ae779f015748eefb346e34b8406a3e4ff16208
[ "MIT" ]
1
2021-06-10T07:16:36.000Z
2021-06-10T07:16:36.000Z
rl_agents/agents/deep_q_network/pytorch.py
saArbabi/rl-agents
18ae779f015748eefb346e34b8406a3e4ff16208
[ "MIT" ]
null
null
null
rl_agents/agents/deep_q_network/pytorch.py
saArbabi/rl-agents
18ae779f015748eefb346e34b8406a3e4ff16208
[ "MIT" ]
null
null
null
import logging import torch from rl_agents.agents.common.memory import Transition from rl_agents.agents.common.models import model_factory, size_model_config, trainable_parameters from rl_agents.agents.common.optimizers import loss_function_factory, optimizer_factory from rl_agents.agents.common.utils import choose_de...
50.686275
115
0.671567
4a27ba6db1fbcf1085f67e1865f5ebebd2addce8
10,931
py
Python
nasse/utils/xml.py
Animenosekai/nasse
ba83187cab84b62338a5fab00db12f7d80a9fb5b
[ "MIT" ]
null
null
null
nasse/utils/xml.py
Animenosekai/nasse
ba83187cab84b62338a5fab00db12f7d80a9fb5b
[ "MIT" ]
null
null
null
nasse/utils/xml.py
Animenosekai/nasse
ba83187cab84b62338a5fab00db12f7d80a9fb5b
[ "MIT" ]
null
null
null
""" XML Conversion Source: dict2xml by delfick \n GitHub: https://github.com/delfick/python-dict2xml \n PyPI: https://pypi.org/project/dict2xml/ \n Based on version 1.7.0 \n Licensed under the MIT License The MIT License (MIT) Copyright (c) 2018 Stephen Moore Permission is hereby granted, free of charge, to any per...
36.195364
104
0.541488
4a27bb14b1ce70e76658a3db9b156d4e8c7baabe
616
py
Python
atcoder/abc/abc149_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/abc/abc149_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/abc/abc149_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 5 + 100) def dfs(i, type_): if i >= N: return 0 if dp[i][type_] != -1: return dp[i][type_] ret = 0 for t in range(3): if t == type_: continue ret = max(ret, dfs(i + K, t)) dp[i][type_] = ret + ((type_ + 1) % 3 == T[i...
22.814815
65
0.49513
4a27bbcbfb948e5b30f69959abdef66c06c20612
911
py
Python
cocos/tests/test_numerics/test_statistics/test_rng/test_logistic_rng.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
101
2019-03-30T05:23:01.000Z
2021-11-27T09:09:40.000Z
cocos/tests/test_numerics/test_statistics/test_rng/test_logistic_rng.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
3
2019-04-17T06:04:12.000Z
2020-12-14T17:36:01.000Z
cocos/tests/test_numerics/test_statistics/test_rng/test_logistic_rng.py
michaelnowotny/cocos
3c34940d7d9eb8592a97788a5df84b8d472f2928
[ "MIT" ]
5
2020-02-07T14:29:50.000Z
2020-12-09T17:54:07.000Z
import numpy as np import pytest import cocos.numerics as cn from cocos.tests.test_numerics.test_statistics.utilities import perform_ks_test n_kolmogorov_smirnov = 1000000 test_data = [(5.0, np.sqrt(3.0) / np.pi, n_kolmogorov_smirnov), (5.0, 2.0, n_kolmogorov_smirnov), (9.0, 3.0, n_kolmogorov...
33.740741
79
0.614709
4a27bc4303f579b99c73833f6b3b8d05c5a62e9d
957
py
Python
agent/indy_catalyst_agent/messaging/responder.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/responder.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/responder.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
from abc import ABC from .agent_message import AgentMessage from ..models.connection_target import ConnectionTarget from ..error import BaseError class ResponderError(BaseError): """Responder error.""" pass class BaseResponder(ABC): """Interface for message handlers to send responses""" async def...
27.342857
83
0.673981
4a27bcf1e7a83ec31d775db561c7bf2125fa9257
4,987
py
Python
library/f5bigip_ltm_profile_fix.py
GabrielFortin/ansible-module-f5bigip
8d1323e912388e20eafd63a73ec015dd6d8a012c
[ "Apache-2.0" ]
6
2017-01-11T01:28:00.000Z
2019-02-19T16:11:09.000Z
library/f5bigip_ltm_profile_fix.py
GabrielFortin/ansible-module-f5bigip
8d1323e912388e20eafd63a73ec015dd6d8a012c
[ "Apache-2.0" ]
48
2017-05-29T17:50:59.000Z
2020-02-09T15:24:27.000Z
library/f5bigip_ltm_profile_fix.py
GabrielFortin/ansible-module-f5bigip
8d1323e912388e20eafd63a73ec015dd6d8a012c
[ "Apache-2.0" ]
5
2017-05-05T18:30:51.000Z
2017-12-19T23:13:05.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2016-2018, Eric Jacob <erjac77@gmail.com> # # 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/LICENS...
32.809211
117
0.666934
4a27bd57670ccf1c31d1cd24395ce6ab830d14ee
2,170
py
Python
Aulas Python/Aula022.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
2
2021-05-21T23:17:44.000Z
2021-05-22T04:34:37.000Z
Aulas Python/Aula022.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
null
null
null
Aulas Python/Aula022.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
null
null
null
""" Aula - 022 - Módulos e Pacotes """ ''' Modularização: -> Surgiu no início da década de 60. -> Sistemas ficando cada vez maiores. -> Foco: dividir um programa grande. -> Foco: aumentar a legibilidade. -> Foco: facilitar a manutenção. ''' # Teoria: ''' def fatorial(n): f = 1 ...
40.185185
97
0.337327
4a27bef1d52e7ebefa8fb178b0af4e049123f1dd
33,206
py
Python
tests/test_builder.py
thealphacod3r/tools-python
d197a3adf95e2f4fc78c6983f5477f9b962bdaab
[ "Apache-2.0" ]
null
null
null
tests/test_builder.py
thealphacod3r/tools-python
d197a3adf95e2f4fc78c6983f5477f9b962bdaab
[ "Apache-2.0" ]
null
null
null
tests/test_builder.py
thealphacod3r/tools-python
d197a3adf95e2f4fc78c6983f5477f9b962bdaab
[ "Apache-2.0" ]
2
2021-06-09T12:03:20.000Z
2021-07-01T07:42:17.000Z
# Copyright (c) 2014 Ahmed H. Ismail # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing...
40.793612
122
0.720261
4a27bf944b4e7f88dcb3302302e71e4a39ccaed0
791
py
Python
pe_tree/exceptions.py
lybtongji/pe_tree
2be607fc55702293cd02cbc6cda5283452464aff
[ "Apache-2.0" ]
1,271
2020-07-27T14:46:44.000Z
2022-03-30T15:58:24.000Z
pe_tree/exceptions.py
lybtongji/pe_tree
2be607fc55702293cd02cbc6cda5283452464aff
[ "Apache-2.0" ]
9
2020-08-04T13:23:38.000Z
2021-05-18T16:53:49.000Z
pe_tree/exceptions.py
lybtongji/pe_tree
2be607fc55702293cd02cbc6cda5283452464aff
[ "Apache-2.0" ]
168
2020-07-27T13:56:42.000Z
2022-03-29T12:48:00.000Z
# # Copyright (c) 2020 BlackBerry Limited. 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 requ...
37.666667
97
0.737042
4a27bfb7ab31795f449448265d95bf90a39b93a0
513
py
Python
pontos-turisticos/core/migrations/0007_auto_20181022_1748.py
LucasVarela42/PontosTuristicos
96d8a20739dbd9f56ae26bda069ae1862b89e35d
[ "BSD-3-Clause" ]
null
null
null
pontos-turisticos/core/migrations/0007_auto_20181022_1748.py
LucasVarela42/PontosTuristicos
96d8a20739dbd9f56ae26bda069ae1862b89e35d
[ "BSD-3-Clause" ]
null
null
null
pontos-turisticos/core/migrations/0007_auto_20181022_1748.py
LucasVarela42/PontosTuristicos
96d8a20739dbd9f56ae26bda069ae1862b89e35d
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-22 17:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0006_pontoturistico_endereco'), ] operations = [ migrations.AlterField( model_name='pon...
25.65
132
0.65692
4a27bfff170b2187bff2b54d2ffc00e7f28b95ce
1,102
py
Python
cea/interfaces/cli/excel_to_dbf.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
121
2017-08-15T20:10:22.000Z
2022-03-24T01:25:42.000Z
cea/interfaces/cli/excel_to_dbf.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
2,121
2017-07-27T12:02:01.000Z
2022-03-31T16:39:28.000Z
cea/interfaces/cli/excel_to_dbf.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
42
2017-09-19T09:59:56.000Z
2022-02-19T20:19:56.000Z
""" Use the py:mod:`cea.utilities.dbf` module to convert an excel file to a dbf file. """ import os import cea.config import cea.inputlocator import cea.utilities.dbf def main(config): """ Convert an Excel file (*.xls) to a DBF file (*.dbf). The configuration uses the section ``dbf-tools`` with the pa...
29.783784
115
0.720508
4a27c04340903e1ee121b8a6c6c8c9cffdca4e45
1,501
py
Python
omniglot/FCDecomp.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
omniglot/FCDecomp.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
omniglot/FCDecomp.py
OpenBanboo/AgileNet
d75baa20b9f762cb56b249dca272150de9ae8def
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Function import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import create_dic_fuc from LinearFunction import Linea...
39.5
155
0.713524
4a27c0acd68d779f4f147f66450156dbe9e1a335
63,163
py
Python
leo/plugins/viewrendered.py
thhonigm/leo-editor
34cc572bd80b2833984bcd34878a572ab51816de
[ "MIT" ]
null
null
null
leo/plugins/viewrendered.py
thhonigm/leo-editor
34cc572bd80b2833984bcd34878a572ab51816de
[ "MIT" ]
1
2020-06-19T02:28:25.000Z
2020-06-19T02:28:25.000Z
leo/plugins/viewrendered.py
connorng/leo-editor
dd41fd3c854ceab286b1111fa4bbe30f65237dcb
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:tbrown.20100318101414.5990: * @file viewrendered.py #@+<< vr docstring >> #@+node:tbrown.20100318101414.5991: ** << vr docstring >> ''' Creates a window for *live* rendering of reSTructuredText, markdown text, images, movies, sounds, rst, html, jupyter notebooks, etc. Dependencies ==========...
37.754334
99
0.54562
4a27c0fbdf181e1222c9c477056abc15ada21b46
7,910
py
Python
evaluation_tasks/calculate_static_embeddings.py
shovalf/OGRE-1
08efad50fac27e8c9621897838e122a2e8fdae1c
[ "MIT" ]
null
null
null
evaluation_tasks/calculate_static_embeddings.py
shovalf/OGRE-1
08efad50fac27e8c9621897838e122a2e8fdae1c
[ "MIT" ]
1
2021-02-04T07:44:59.000Z
2021-02-04T07:46:10.000Z
evaluation_tasks/calculate_static_embeddings.py
unknownuser2021/OGRE
08efad50fac27e8c9621897838e122a2e8fdae1c
[ "MIT" ]
3
2021-04-21T07:25:23.000Z
2021-07-15T11:07:19.000Z
""" Main file to calculate the embeddings with OGRE/DOGRE/WOGRE, and performing link prediction and node classification task. In order to calculate the embedding, you first must have an edge list file: "datasets/name_of_dataset.txt" - An edge list txt file. If the graph is unweighted it consists of 2 columns: sour...
53.809524
174
0.7067
4a27c12265ab14cb8edca360a3280e4b398a50b3
7,050
py
Python
torchvision/datasets/folder.py
igormq/vision
1f8f7ea71c8807408a7860b8ae9ca63177975b64
[ "BSD-3-Clause" ]
10
2020-06-09T12:58:03.000Z
2021-12-01T11:31:16.000Z
torchvision/datasets/folder.py
shatealaboxiaowang/vision
1f8f7ea71c8807408a7860b8ae9ca63177975b64
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/folder.py
shatealaboxiaowang/vision
1f8f7ea71c8807408a7860b8ae9ca63177975b64
[ "BSD-3-Clause" ]
4
2020-08-24T19:50:37.000Z
2021-05-29T21:13:51.000Z
import torch.utils.data as data from PIL import Image import os import os.path import sys def has_file_allowed_extension(filename, extensions): """Checks if a file is an allowed extension. Args: filename (string): path to a file extensions (iterable of strings): extensions to consider (lowe...
33.412322
113
0.614184
4a27c122e79ed43a52c53e089d5cb73dbefdbfd2
7,657
py
Python
homographyHarker.py
raultron/homographyHarker
0140f3c0afc1315823393842e3577e881d807df0
[ "MIT" ]
null
null
null
homographyHarker.py
raultron/homographyHarker
0140f3c0afc1315823393842e3577e881d807df0
[ "MIT" ]
null
null
null
homographyHarker.py
raultron/homographyHarker
0140f3c0afc1315823393842e3577e881d807df0
[ "MIT" ]
null
null
null
#function [ H, Lh ] = homographyHarker( DataA, DataB, LA, LB) # # Purpose : Computes the general projective transformation between two sets # of 2D data using a linear algorithm (the homography). # # Uses (syntax) : # H = homography( DataA, DataB ) # # Input Parameters : # DataA, DataB := 2D homogeneous data sets ...
31.126016
100
0.527752
4a27c184f4a55668a664e29350bb2c873e4fa130
666
bzl
Python
workspace.bzl
jgennis/rules_rust
4402ffacc6ff3b1a43c118112cd1aa34a8e797e5
[ "Apache-2.0" ]
1
2021-02-05T06:44:28.000Z
2021-02-05T06:44:28.000Z
workspace.bzl
jgennis/rules_rust
4402ffacc6ff3b1a43c118112cd1aa34a8e797e5
[ "Apache-2.0" ]
null
null
null
workspace.bzl
jgennis/rules_rust
4402ffacc6ff3b1a43c118112cd1aa34a8e797e5
[ "Apache-2.0" ]
2
2020-09-12T19:28:00.000Z
2020-11-24T02:46:42.000Z
load("@bazel_skylib//lib:versions.bzl", "versions") def _store_bazel_version(repository_ctx): bazel_version = versions.get() if len(bazel_version) == 0: print("You're using development build of Bazel, make sure it's at least version 0.17.1") elif versions.is_at_most("0.17.0", bazel_version): ...
44.4
133
0.71021
4a27c19646b4c7a36d0b0a6d07097da9935ca9dc
2,220
py
Python
detect.py
Po-Chun-Chien/LUT-Net
413559027980db2585d939cd4a514a172b62f57d
[ "MIT" ]
null
null
null
detect.py
Po-Chun-Chien/LUT-Net
413559027980db2585d939cd4a514a172b62f57d
[ "MIT" ]
null
null
null
detect.py
Po-Chun-Chien/LUT-Net
413559027980db2585d939cd4a514a172b62f57d
[ "MIT" ]
null
null
null
import os import numpy as np def readPLA(fn, d): if not os.path.isfile(fn): print('Warning: PLA "{}" not found.'.format(fn)) return getNum = lambda s, head: int(s.strip('\n').replace(head, '').replace(' ', '')) getPat = lambda s: s.strip('\n').replace(' ', '') with open(f...
30
83
0.388739
4a27c32860b4ed3f4db51d085d6c03607002faaf
56,324
py
Python
numpy/lib/recfunctions.py
m10an/numpy
f1c30fde8b614cc7e11789122ba93e6fb0e86385
[ "BSD-3-Clause" ]
null
null
null
numpy/lib/recfunctions.py
m10an/numpy
f1c30fde8b614cc7e11789122ba93e6fb0e86385
[ "BSD-3-Clause" ]
8
2021-10-07T10:59:49.000Z
2021-11-22T20:06:49.000Z
numpy/lib/recfunctions.py
m10an/numpy
f1c30fde8b614cc7e11789122ba93e6fb0e86385
[ "BSD-3-Clause" ]
null
null
null
""" Collection of utilities to manipulate structured arrays. Most of these functions were initially implemented by John Hunter for matplotlib. They have been rewritten and extended for convenience. """ import itertools import numpy as np import numpy.ma as ma from numpy import ndarray, recarray from numpy.ma import ...
35.379397
90
0.593069
4a27c3618409b93222666114f0530ff35c80cdab
2,716
py
Python
jcvi/apps/emboss.py
fossabot/jcvi
86948affd63e94c8327cf117c47d36940b508b68
[ "BSD-2-Clause" ]
1
2020-10-04T13:21:24.000Z
2020-10-04T13:21:24.000Z
jcvi/apps/emboss.py
Wangjien/jcvi
6732285f62dcbd7f3878e5017c3350124530c796
[ "BSD-2-Clause" ]
null
null
null
jcvi/apps/emboss.py
Wangjien/jcvi
6732285f62dcbd7f3878e5017c3350124530c796
[ "BSD-2-Clause" ]
1
2020-11-16T19:25:30.000Z
2020-11-16T19:25:30.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Run EMBOSS programs. """ from __future__ import print_function import sys import multiprocessing as mp from jcvi.apps.base import OptionParser, ActionDispatcher from jcvi.formats.base import FileShredder, must_open class NeedleHeader (object): def __init__(self...
25.866667
74
0.593888
4a27c3c748ae2562fad0e827c61f197ed0cdaa6a
9,387
py
Python
src/utils/evaluation_utils.py
phuonghx/RTM3D
0bd3868a03f071244b2fed9ca1828298f5a96180
[ "MIT" ]
268
2020-08-09T07:49:21.000Z
2022-03-29T03:50:42.000Z
src/utils/evaluation_utils.py
phuonghx/RTM3D
0bd3868a03f071244b2fed9ca1828298f5a96180
[ "MIT" ]
22
2020-08-09T07:58:21.000Z
2022-03-25T08:56:18.000Z
src/utils/evaluation_utils.py
phuonghx/RTM3D
0bd3868a03f071244b2fed9ca1828298f5a96180
[ "MIT" ]
56
2020-08-10T14:05:53.000Z
2022-01-25T04:28:37.000Z
""" # -*- coding: utf-8 -*- ----------------------------------------------------------------------------------- # Author: Nguyen Mau Dung # DoC: 2020.08.10 # email: nguyenmaudung93.kstn@gmail.com ----------------------------------------------------------------------------------- # Description: The utils for evaluation ...
39.441176
117
0.595611
4a27c4029d686fc78dd88c33db5f17e828a708f1
1,777
py
Python
src/utils.py
jdubkim/Self-play-on-Multi-Sankes-Environment
8e72c66110a007d6bf0ca2ff68fc0a845f3b3a42
[ "MIT" ]
5
2018-07-02T12:42:00.000Z
2018-11-22T12:56:21.000Z
src/utils.py
jdubkim/dlcampjeju2018
8e72c66110a007d6bf0ca2ff68fc0a845f3b3a42
[ "MIT" ]
null
null
null
src/utils.py
jdubkim/dlcampjeju2018
8e72c66110a007d6bf0ca2ff68fc0a845f3b3a42
[ "MIT" ]
null
null
null
import gym from gym import spaces import numpy as np import sys from baselines.common import set_global_seeds from baselines.bench import Monitor from baselines.common.vec_env.subproc_vec_env import SubprocVecEnv from config import Config import cv2 cv2.ocl.setUseOpenCL(False) class WarpFrame(gym.ObservationWrapper...
27.765625
112
0.665729
4a27c4e37d1dea45d071b8f8ddaa7bfbfc41754f
4,638
py
Python
edge/upload_aivdm_data_file_broadcast_weather.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_aivdm_data_file_broadcast_weather.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
edge/upload_aivdm_data_file_broadcast_weather.py
dannil10/dogger
7e4570f1aa7d5393a9ae182498573d03fe1b61e9
[ "MIT" ]
null
null
null
import gateway.link udp_upload_ais = gateway.link.SqlFileAisData( channels = {144}, start_delay = 0, transmit_rate = 0.2, max_age = 20, target_channels = {'VDM':{0:'txt', 149:'json'}}, file_path = '/srv/dogger/files/', message_formats = [ {"message": {"type":8, "fid":31, "start_pos":56},...
79.965517
138
0.434886
4a27c6c2b12e956fdc71a5137b622fede30f2018
4,598
py
Python
acceptance/python/src/test_multiple_owners.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
1
2019-05-31T14:06:02.000Z
2019-05-31T14:06:02.000Z
acceptance/python/src/test_multiple_owners.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
null
null
null
acceptance/python/src/test_multiple_owners.py
innoprenuer/bigchaindb
32b64ccc2a208f38162566f3e088ad49baced79f
[ "Apache-2.0" ]
1
2019-08-28T23:38:52.000Z
2019-08-28T23:38:52.000Z
# # Multiple owners integration testing # This test checks if we can successfully create and transfer a transaction # with multiple owners. # The script tests various things like: # # - create a transaction with multiple owners # - check if the transaction is stored and has the right amount of public keys # - transfer ...
37.382114
82
0.670291