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
797efbbd56d1b9179dad11d22b0c12444a199903
11,247
py
Python
UMAPvis6.py
emrysj/msi-explore
92637607054229a51cbd64451aeafc297e2e6241
[ "BSD-3-Clause" ]
null
null
null
UMAPvis6.py
emrysj/msi-explore
92637607054229a51cbd64451aeafc297e2e6241
[ "BSD-3-Clause" ]
2
2021-06-08T23:02:43.000Z
2021-09-08T02:56:20.000Z
UMAPvis6.py
emrysj/msi-explore
92637607054229a51cbd64451aeafc297e2e6241
[ "BSD-3-Clause" ]
null
null
null
#import tkinter as tk #from tkinter import filedialog from bokeh.layouts import gridplot, column from bokeh.models import ColumnDataSource,CustomJS, LassoSelectTool, BoxSelectTool, Slider, Select, RadioButtonGroup, Button, TextInput, HoverTool, TapTool from bokeh.models.annotations import Title from bokeh.plotting impo...
27.036058
171
0.669601
797efc3b76dfd96a42401375e45d609233709938
5,071
py
Python
lib/evaluate/compute_JI.py
lizhaoliu-Lec/CrowdDet
89ad2ad722d06b0d97cf1d2dbc66c823ca582f96
[ "MIT" ]
null
null
null
lib/evaluate/compute_JI.py
lizhaoliu-Lec/CrowdDet
89ad2ad722d06b0d97cf1d2dbc66c823ca582f96
[ "MIT" ]
null
null
null
lib/evaluate/compute_JI.py
lizhaoliu-Lec/CrowdDet
89ad2ad722d06b0d97cf1d2dbc66c823ca582f96
[ "MIT" ]
null
null
null
import os import sys import math import argparse from multiprocessing import Queue, Process from tqdm import tqdm import numpy as np from .JIToolkits.JI_tools import compute_matching, get_ignores sys.path.insert(0, '../') import utils.misc_utils as misc_utils gtfile = '/data/annotation_val.odgt' nr_procs = 10 def...
37.286765
127
0.614277
797efd3118a69e73881c9b9b304515296754a644
1,216
py
Python
LeetCode/168-excel-sheet-column-title.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/168-excel-sheet-column-title.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/168-excel-sheet-column-title.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
############################################################################################### # 按位转化成26进制 ########### # 时间复杂度:O(log_26_columnNumber), 时间复杂度即为将 columnNumber 转换成 26 进制的位数 # 空间复杂度:O(log_26_columnNumber), res的开销 #########################################################################################...
40.533333
96
0.485197
797efe0fd9aeff8b241b3c5b493058ec2ae32548
780
py
Python
tests/test_waitmany.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
2
2016-05-09T17:03:08.000Z
2016-07-19T11:27:54.000Z
tests/test_waitmany.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
null
null
null
tests/test_waitmany.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
null
null
null
from disco.test import DiscoMultiJobTestFixture, DiscoTestCase from disco.core import JobError class WaitManyTestCase(DiscoMultiJobTestFixture, DiscoTestCase): njobs = 3 inputs_1 = inputs_2 = inputs_3 = [''] * 5 def getdata(self, path): return 'foo' @staticmethod def map_1(e, params): ...
24.375
64
0.60641
797efe3e5a7b175eae7951106420904eda4d8b15
1,270
py
Python
options.py
S0o0phia/Speech-with-kitty-for-kids
1c5bc9ca563bfdc662a0a37dd67e860f79e6b58b
[ "MIT" ]
null
null
null
options.py
S0o0phia/Speech-with-kitty-for-kids
1c5bc9ca563bfdc662a0a37dd67e860f79e6b58b
[ "MIT" ]
null
null
null
options.py
S0o0phia/Speech-with-kitty-for-kids
1c5bc9ca563bfdc662a0a37dd67e860f79e6b58b
[ "MIT" ]
1
2021-11-02T05:30:42.000Z
2021-11-02T05:30:42.000Z
gpu = '0' # 훈련 및 테스트에 사용되는 GPU ID random_seed = 0 # 훈련 및 테스트를 위한 무작위 시드 data_type = 'unseen' # GRID Corpus에서 데이터 분할, `unseen` 및 `overlap`이 지원됩니다. vid_padding = 75 # 비디오 패딩 길이, 각 비디오는 0만큼 `vid_padding`으로 패딩됩니다. txt_padding = 20 # txt 패딩 길이, 각 txt는 0만큼 `txt_padding`으로 채워집니다. batch_size ...
60.47619
180
0.645669
797eff7286ea40a370dd0bb837dca4fed156a660
10,138
py
Python
nilearn/reporting/_visual_testing/_glm_reporter_visual_inspection_suite_.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
nilearn/reporting/_visual_testing/_glm_reporter_visual_inspection_suite_.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
nilearn/reporting/_visual_testing/_glm_reporter_visual_inspection_suite_.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
null
null
null
""" This file contains a bunch of functions run via __main__(). The functions represent feature comprehensive examples to visualize, inspect, and test the functionality of nistats.reporting.make_glm_reports(). Disable any of the function calls in the __main__() to run a specific script and save time. """ import os im...
39.294574
79
0.618958
797f0009ad3c4168a3b3267c5e306d8f438c2ea1
3,137
py
Python
edge/storage.py
tomstockton/vertex-edge
7845be8580834ff9c0dcc3c5d90b135caff45677
[ "Apache-2.0" ]
null
null
null
edge/storage.py
tomstockton/vertex-edge
7845be8580834ff9c0dcc3c5d90b135caff45677
[ "Apache-2.0" ]
null
null
null
edge/storage.py
tomstockton/vertex-edge
7845be8580834ff9c0dcc3c5d90b135caff45677
[ "Apache-2.0" ]
null
null
null
import sys from typing import Optional from serde import serialize, deserialize from dataclasses import dataclass from google.api_core.exceptions import NotFound, Forbidden from google.cloud import storage from .config import EdgeConfig from .exception import EdgeException from .tui import ( print_substep_not_done,...
33.731183
115
0.674211
797f007caec3ac8c0176daadd6eb310302bfba7c
2,222
py
Python
src/spacectl/lib/parser/apply_manifest.py
jihyungSong/spacectl
29bfcb9a1c2b30de696b9ef21b0a4abe7e575e83
[ "Apache-2.0" ]
8
2020-06-22T02:08:02.000Z
2022-02-14T08:09:16.000Z
src/spacectl/lib/parser/apply_manifest.py
jihyungSong/spacectl
29bfcb9a1c2b30de696b9ef21b0a4abe7e575e83
[ "Apache-2.0" ]
4
2020-08-06T15:31:00.000Z
2022-03-29T08:22:11.000Z
src/spacectl/lib/parser/apply_manifest.py
jihyungSong/spacectl
29bfcb9a1c2b30de696b9ef21b0a4abe7e575e83
[ "Apache-2.0" ]
11
2020-06-22T02:08:05.000Z
2022-03-22T00:18:48.000Z
import click from spacectl.lib.apply import store from spacectl.lib.parser.apply_jinja import jinja_env import jinja2.exceptions from spacectl.lib.output import echo def apply_template(obj, task_id): fields = [] if isinstance(obj, (str, bool, int, float, bool)): return 0 elif obj is None: ...
31.742857
127
0.583708
797f0099db7fc9ced650ae073af82292fe6e1bb7
1,111
py
Python
pdf_importer/process.py
jneuendorf/dkb_pdf2csv
836257403054242fe2971fb3e9c0dfd909b2d199
[ "MIT" ]
null
null
null
pdf_importer/process.py
jneuendorf/dkb_pdf2csv
836257403054242fe2971fb3e9c0dfd909b2d199
[ "MIT" ]
null
null
null
pdf_importer/process.py
jneuendorf/dkb_pdf2csv
836257403054242fe2971fb3e9c0dfd909b2d199
[ "MIT" ]
null
null
null
from .parser import Parser from .config import config as default_config class Process: def __init__(self, config=None): self.config = config or {} def run(self, pdfs, transform_emit_args=None): config = self.get_config() parser_kwargs = config['parser'] transform_emit = confi...
27.775
59
0.522052
797f00b5d4a5d7fa2d560cd4345328f6503ccb63
959
py
Python
subway/exceptions.py
Rails-on-HPC/subway
bacdc387fce66aab78753aa48f36ec1a79d9d64b
[ "MIT" ]
4
2020-03-02T01:34:28.000Z
2021-02-22T07:55:28.000Z
subway/exceptions.py
Rails-on-HPC/subway
bacdc387fce66aab78753aa48f36ec1a79d9d64b
[ "MIT" ]
null
null
null
subway/exceptions.py
Rails-on-HPC/subway
bacdc387fce66aab78753aa48f36ec1a79d9d64b
[ "MIT" ]
1
2020-09-23T01:55:15.000Z
2020-09-23T01:55:15.000Z
""" Exception classes for subway. """ # TODO: more organized and hierachical exceptions. class SubwayException(Exception): def __init__(self, message, code=10): """ :param message: str. :param code: int. 10 general, 11 jobid unmatch, 12 only valid for general without id 13 no ...
22.302326
92
0.65902
797f01b0981aec0cd7d101a2c91c8db67c6ce161
25,566
py
Python
python/ccxt/zb.py
xCuri0/ccxt
bf3d10e0d3c1defb9aba9e81caa57cad0187fa5c
[ "MIT" ]
1
2021-06-16T17:23:04.000Z
2021-06-16T17:23:04.000Z
python/ccxt/zb.py
xCuri0/ccxt
bf3d10e0d3c1defb9aba9e81caa57cad0187fa5c
[ "MIT" ]
1
2021-01-27T12:10:31.000Z
2021-01-27T12:11:16.000Z
python/ccxt/zb.py
xCuri0/ccxt
bf3d10e0d3c1defb9aba9e81caa57cad0187fa5c
[ "MIT" ]
1
2020-09-11T18:44:37.000Z
2020-09-11T18:44:37.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import ...
38.272455
126
0.48146
797f0261e5a85210c70a59a1ca28ed4b4463c69d
374
py
Python
backend/server.py
ADKosm/neural-adblock-sirius-2020
dfbdcd96859a771807d58431a3a56bf5061d67c0
[ "MIT" ]
null
null
null
backend/server.py
ADKosm/neural-adblock-sirius-2020
dfbdcd96859a771807d58431a3a56bf5061d67c0
[ "MIT" ]
null
null
null
backend/server.py
ADKosm/neural-adblock-sirius-2020
dfbdcd96859a771807d58431a3a56bf5061d67c0
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_cors import CORS, cross_origin import json app = Flask(__name__) CORS(app) @app.route("/") def index(): return "Hello" @app.route("/get") @cross_origin() def get(): r = { "biba": request.args.get('v', "NONE") } return json.dumps(r) if __name__ ...
14.384615
45
0.620321
797f04fa85b85cf905cd61b765bc518421792bc6
5,521
py
Python
Chapter02/transfer_learning_tf_keras.py
arifmudi/Advanced-Deep-Learning-with-Python
180cae0ec62857670bfc2a4d566857030adc4905
[ "MIT" ]
107
2019-12-09T13:49:33.000Z
2021-08-31T03:23:39.000Z
Chapter02/transfer_learning_tf_keras.py
bwantan/Advanced-Deep-Learning-with-Python
083f63dfc0c5f404143552ea20d560b06ec303f5
[ "MIT" ]
null
null
null
Chapter02/transfer_learning_tf_keras.py
bwantan/Advanced-Deep-Learning-with-Python
083f63dfc0c5f404143552ea20d560b06ec303f5
[ "MIT" ]
48
2019-12-05T05:30:51.000Z
2022-03-22T02:03:00.000Z
""" This example is partially based on https://github.com/tensorflow/docs/blob/master/site/en/tutorials/images/transfer_learning.ipynb Copyright 2018 The TensorFlow Authors. All rights reserved. Copyright 2019 Ivan Vasilev. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file exc...
34.291925
130
0.668719
797f058d27023a11384cbc4be05f57698efcbf62
5,846
py
Python
kaggle_script.py
harbenml/Kaggle-Birdcall
17b425fe6e1d5a3efc70ab2eea55be1db0a0b72f
[ "MIT" ]
1
2020-12-11T11:35:03.000Z
2020-12-11T11:35:03.000Z
kaggle_script.py
harbenml/Kaggle-Birdcall
17b425fe6e1d5a3efc70ab2eea55be1db0a0b72f
[ "MIT" ]
null
null
null
kaggle_script.py
harbenml/Kaggle-Birdcall
17b425fe6e1d5a3efc70ab2eea55be1db0a0b72f
[ "MIT" ]
null
null
null
import torchvision from fastai.vision import * from fastai.callbacks import SaveModelCallback import librosa import h5py # ***************************************************************************************** just_test = True # skip training and use a saved model sample_length = 5 # time window length in secon...
28.378641
91
0.639241
797f065a78db6e1e881081be314842dd56822223
5,215
py
Python
kubernetes_asyncio/client/api/apiregistration_api.py
opsani/kubernetes_asyncio
55283bf6f3690e5c0a0c589cd752221511e2be51
[ "Apache-2.0" ]
196
2018-05-23T16:55:41.000Z
2022-03-31T10:09:40.000Z
kubernetes_asyncio/client/api/apiregistration_api.py
tomplus/kubernetes_asyncio
e8c8686ec11be3a5295ae9d5d8728299492a61f8
[ "Apache-2.0" ]
164
2018-05-20T20:39:03.000Z
2022-03-29T22:57:04.000Z
kubernetes_asyncio/client/api/apiregistration_api.py
opsani/kubernetes_asyncio
55283bf6f3690e5c0a0c589cd752221511e2be51
[ "Apache-2.0" ]
41
2018-06-08T00:39:53.000Z
2022-01-12T18:19:06.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.18.20 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re #...
36.468531
124
0.597891
797f07067acc979331539304d719cd255c24eb03
16,801
py
Python
VisualBERT/mmf/utils/text.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
322
2021-03-29T20:42:57.000Z
2022-03-28T12:26:47.000Z
VisualBERT/mmf/utils/text.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
14
2021-04-23T23:45:58.000Z
2022-03-15T02:46:01.000Z
VisualBERT/mmf/utils/text.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
51
2021-04-05T15:44:52.000Z
2022-03-25T02:28:49.000Z
# Copyright (c) Facebook, Inc. and its affiliates. """ Text utils module contains implementations for various decoding strategies like Greedy, Beam Search and Nucleus Sampling. In your model's config you can specify ``inference`` attribute to use these strategies in the following way: .. code:: model_config: ...
35.823028
87
0.639426
797f079cc2db7e077d334a73e8189c43a82e2f34
1,305
py
Python
test/augmenter/char/test_char.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
null
null
null
test/augmenter/char/test_char.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
null
null
null
test/augmenter/char/test_char.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
null
null
null
import unittest import nlpaug.augmenter.char as nac import nlpaug.util.text.tokenizer as text_tokenizer class TestCharacter(unittest.TestCase): def test_empty(self): texts = ['', None] augs = [ nac.OcrAug(), nac.KeyboardAug(), ] for text in texts: ...
33.461538
119
0.570115
797f08ba893ac2cfd468c783efe1c48e839a68e6
4,618
py
Python
bin/test_simple_coadd.py
ACTCollaboration/tilec
11ed8d027ad6ffac09b3e291a047f33e97673f14
[ "BSD-3-Clause" ]
1
2021-01-04T14:51:44.000Z
2021-01-04T14:51:44.000Z
bin/test_simple_coadd.py
ACTCollaboration/tilec
11ed8d027ad6ffac09b3e291a047f33e97673f14
[ "BSD-3-Clause" ]
4
2019-09-03T22:19:16.000Z
2020-07-13T12:38:08.000Z
bin/test_simple_coadd.py
ACTCollaboration/tilec
11ed8d027ad6ffac09b3e291a047f33e97673f14
[ "BSD-3-Clause" ]
1
2020-08-10T14:51:11.000Z
2020-08-10T14:51:11.000Z
from __future__ import print_function from orphics import maps,io,cosmology,stats from pixell import enmap import numpy as np import os,sys from tilec import covtools,ilc from scipy.optimize import curve_fit deg = 20. px = 2.0 theory = cosmology.default_theory() shape,wcs = maps.rect_geometry(width_deg=deg,px_res_arc...
31.202703
126
0.595712
797f0982f00e93f69aff688f736858ed11cff980
1,524
py
Python
homeassistant/components/lametric/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/lametric/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/lametric/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Support for LaMetric time.""" import logging from lmnotify import LaMetricManager import voluptuous as vol from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) DOMAIN = "lametric" LAMETRIC_DEVICES = "LAMETR...
25.830508
78
0.683071
797f0a0634a896e774ee5c61a7d43dd98262beb9
3,734
py
Python
cs15211/ReadNCharactersGivenRead4.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/ReadNCharactersGivenRead4.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/ReadNCharactersGivenRead4.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/read-n-characters-given-read4/' # https://github.com/kamyu104/LeetCode/blob/master/Python/read-n-characters-given-read4.py # Time: O(n) # Space: O(1) # Array # # Description: Leetcode # 157. Read N Characters Given Read4 # # The API: int read4(char *buf) reads 4 characters a...
27.255474
114
0.568024
797f0a5665e0674410779584b1ca79f8882ca0cf
1,786
py
Python
CondTools/Ecal/python/copySli_cfg.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
CondTools/Ecal/python/copySli_cfg.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
CondTools/Ecal/python/copySli_cfg.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms import CondTools.Ecal.conddb_init as conddb_init import CondTools.Ecal.db_credentials as auth process = cms.Process("ProcessOne") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('*'), cout = cms.untracked.PSet( threshol...
31.892857
68
0.707167
797f0a759108be0962dd965d6e811bad9af8bfe2
3,445
py
Python
python/mxnet/gluon/probability/distributions/independent.py
sandutsar/incubator-mxnet
3ae7ddfd9c99f40a33c4cb716b3810e5463b810a
[ "Apache-2.0", "MIT" ]
1
2021-11-09T01:40:17.000Z
2021-11-09T01:40:17.000Z
python/mxnet/gluon/probability/distributions/independent.py
sandutsar/incubator-mxnet
3ae7ddfd9c99f40a33c4cb716b3810e5463b810a
[ "Apache-2.0", "MIT" ]
4
2021-03-30T13:16:50.000Z
2021-10-04T08:49:33.000Z
python/mxnet/gluon/probability/distributions/independent.py
sandutsar/incubator-mxnet
3ae7ddfd9c99f40a33c4cb716b3810e5463b810a
[ "Apache-2.0", "MIT" ]
1
2019-12-11T19:22:13.000Z
2019-12-11T19:22:13.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...
37.043011
89
0.710595
797f0aa169e1a9e82c18df41f9102c0accc28467
1,495
py
Python
nautilus/api/util/summarize_crud_mutation.py
AlecAivazis/python
70e2acef27a2f87355590be1a6ca60ce3ab4d09c
[ "MIT" ]
9
2019-02-17T01:33:43.000Z
2022-02-03T02:14:12.000Z
nautilus/api/util/summarize_crud_mutation.py
AlecAivazis/python
70e2acef27a2f87355590be1a6ca60ce3ab4d09c
[ "MIT" ]
59
2016-03-14T15:55:50.000Z
2016-07-17T15:22:56.000Z
nautilus/api/util/summarize_crud_mutation.py
AlecAivazis/python
70e2acef27a2f87355590be1a6ca60ce3ab4d09c
[ "MIT" ]
3
2017-08-03T20:18:59.000Z
2018-07-18T02:03:41.000Z
# local imports from nautilus.conventions.actions import get_crud_action from nautilus.conventions.models import get_model_string from .summarize_mutation import summarize_mutation from nautilus.conventions.api import ( create_mutation_inputs, update_mutation_inputs, delete_mutation_inputs, create_mutat...
30.510204
68
0.712375
797f0b19379725efd3085546372628817f4d9d97
120
py
Python
exercise5_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise5_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise5_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
print(list(set(i for i in [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] if i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13])))
60
119
0.475
797f0ba0aa021da6e9114d407ef1e1c91ff7e567
2,256
py
Python
ArraySimulation/PVSource/PVCell/PVCellIdeal.py
lhr-solar/Array-Sim-Training
e7372ee4ed094f1527e5cdbc1817108d93acace8
[ "MIT" ]
null
null
null
ArraySimulation/PVSource/PVCell/PVCellIdeal.py
lhr-solar/Array-Sim-Training
e7372ee4ed094f1527e5cdbc1817108d93acace8
[ "MIT" ]
12
2020-10-13T04:59:19.000Z
2021-02-28T04:13:22.000Z
ArraySimulation/PVSource/PVCell/PVCellIdeal.py
lhr-solar/Array-Sim-Training
e7372ee4ed094f1527e5cdbc1817108d93acace8
[ "MIT" ]
null
null
null
""" PVCellIdeal.py Author: Matthew Yu, Array Lead (2020). Contact: matthewjkyu@gmail.com Created: 11/14/20 Last Modified: 11/26/20 Description: Derived class of PVCell that implements an ideal model tuned to the Sunpower Maxeon III Bin Le1 solar cells. """ # Library Imports. from math import exp, pow, e from numpy im...
27.512195
87
0.602394
797f0cbbe3c2870672c6a224af8383a278cc655b
2,004
py
Python
src/reviews/admin.py
garyhsiao/pycon.tw
40e54b6aaf12b837d5536bc980c6963e05d6d3cd
[ "MIT" ]
1
2019-04-04T12:17:26.000Z
2019-04-04T12:17:26.000Z
src/reviews/admin.py
garyhsiao/pycon.tw
40e54b6aaf12b837d5536bc980c6963e05d6d3cd
[ "MIT" ]
null
null
null
src/reviews/admin.py
garyhsiao/pycon.tw
40e54b6aaf12b837d5536bc980c6963e05d6d3cd
[ "MIT" ]
2
2019-04-04T12:18:04.000Z
2019-04-14T13:57:57.000Z
import collections import json import operator from django.contrib import admin from django.utils.html import linebreaks from django.utils.translation import ugettext, ugettext_lazy as _ from import_export.admin import ImportExportMixin from .models import Review, TalkProposalSnapshot from .resources import ReviewRe...
29.470588
74
0.615269
797f0d516351b299631bd805914c9d2a34b68c5d
3,604
py
Python
thanks/converter.py
takagiy/MetronOhm-be
278f9cc10ac6815eba540b3e71ddb600b8fceb07
[ "MIT" ]
null
null
null
thanks/converter.py
takagiy/MetronOhm-be
278f9cc10ac6815eba540b3e71ddb600b8fceb07
[ "MIT" ]
null
null
null
thanks/converter.py
takagiy/MetronOhm-be
278f9cc10ac6815eba540b3e71ddb600b8fceb07
[ "MIT" ]
null
null
null
import json import wave import os import sys DELAY = 5000 #ms DESTDIR = './dest' filelist = os.listdir('.') targetlist = [] for filename in filelist: try: name, diff, ext = filename.split('.') suffixed = name+'.'+diff dest = name+'.'+diff.lower() ...
37.154639
146
0.461154
797f0d9d7b9a940a87a297f3e0936e6c4d4c03b4
1,818
py
Python
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/SetupTableRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/SetupTableRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/SetupTableRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# 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 ...
35.647059
71
0.748625
797f0dc8ba57ace9cda9ab1f1540f9b607d6503c
655
py
Python
pava/implementation/natives/sun/java2d/loops/TransformBlit.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
4
2017-03-30T16:51:16.000Z
2020-10-05T12:25:47.000Z
pava/implementation/natives/sun/java2d/loops/TransformBlit.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
pava/implementation/natives/sun/java2d/loops/TransformBlit.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
def add_native_methods(clazz): def Transform__sun_java2d_SurfaceData__sun_java2d_SurfaceData__java_awt_Composite__sun_java2d_pipe_Region__java_awt_geom_AffineTransform__int__int__int__int__int__int__int__(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12): raise NotImplementedError() clazz.Transfor...
93.571429
351
0.90687
797f0f0bc23db8cebcc5e174cc5ed204d3bb9e32
392
py
Python
components/server/src/routes/external/logo.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
null
null
null
components/server/src/routes/external/logo.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
null
null
null
components/server/src/routes/external/logo.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
null
null
null
"""Source logo's.""" import pathlib import bottle LOGOS_ROOT = pathlib.Path(__file__).parent.parent.absolute().joinpath(pathlib.Path("logos")) @bottle.get("/api/v3/logo/<source_type>", authentication_required=False) def get_logo(source_type: str): """Return the logo for the source type.""" return bottle.s...
26.133333
92
0.734694
797f0f2fb2265fa7abb360c10f28c4672c9e4342
11,639
py
Python
MetamorphicTests/all_mutants/sales_forecasting_file/249.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/249.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/249.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
1
2022-02-06T14:59:43.000Z
2022-02-06T14:59:43.000Z
def gen_mutants(): import tensorflow as tf import pandas import numpy as np DATAFILE_TRAIN = 'mock_kaggle_edit_train.csv' DATAFILE_VALIDATE = 'mock_kaggle_edit_...
31.203753
232
0.629607
797f106a36509b07f1492213ebb6e12ad9b23d16
38,921
py
Python
tensorflow/python/ops/gradients_util.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
56
2018-06-21T13:47:23.000Z
2020-05-13T09:31:47.000Z
tensorflow/python/ops/gradients_util.py
kaist-ina/tensorflow
169124c0c9630b719e7f0e55722c38c7ecd6c5ac
[ "Apache-2.0" ]
5
2020-06-01T18:50:38.000Z
2021-07-16T07:13:52.000Z
tensorflow/python/ops/gradients_util.py
kaist-ina/tensorflow
169124c0c9630b719e7f0e55722c38c7ecd6c5ac
[ "Apache-2.0" ]
15
2018-09-06T14:18:32.000Z
2020-05-14T06:35:30.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...
39.393725
112
0.670615
797f119858ea90226d1f59d964742f00333ae88d
1,540
py
Python
matching/matching_cam v1.py
winxos/python
22f57a5dfa6366b0d149dfd81203b11ed258f9d3
[ "MIT" ]
3
2016-11-03T07:14:41.000Z
2020-02-19T09:29:28.000Z
matching/matching_cam v1.py
winxos/python
22f57a5dfa6366b0d149dfd81203b11ed258f9d3
[ "MIT" ]
null
null
null
matching/matching_cam v1.py
winxos/python
22f57a5dfa6366b0d149dfd81203b11ed258f9d3
[ "MIT" ]
1
2018-08-14T10:40:20.000Z
2018-08-14T10:40:20.000Z
# coding:utf-8 ''' 摄像头模板匹配内容识别测试 v0.1 opencv 2.4.11 不具备尺度与旋转不变性 winxos 2015-12-15 ''' import numpy as np import argparse import cv2 import time import os if __name__ == '__main__': ap = argparse.ArgumentParser() ap.add_argument("-t", "--target", required=True, help="path to the target imag...
29.615385
72
0.545455
797f11cbfc74aa5cd71ddfabacd79d82e0001315
6,564
py
Python
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/database_account_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/database_account_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/database_account_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
47.565217
505
0.657983
797f12e8e75ee69deec25a3117ee9b47e51aa49d
1,791
py
Python
azure-quantum/tests/unit/aio/test_aio_online_problem.py
Anatoliy-Litvinenko/qdk-python
74b2638a404717424090023ef49afb3045ea920e
[ "MIT" ]
1
2022-03-27T16:43:20.000Z
2022-03-27T16:43:20.000Z
azure-quantum/tests/unit/aio/test_aio_online_problem.py
Anatoliy-Litvinenko/qdk-python
74b2638a404717424090023ef49afb3045ea920e
[ "MIT" ]
4
2022-01-20T16:39:30.000Z
2022-02-05T10:30:16.000Z
azure-quantum/tests/unit/aio/test_aio_online_problem.py
slowy07/qdk-python
e4ce0c433cc986bc1c746e9a58f3f05733c657e2
[ "MIT" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*- ## # test_solvers.py: Checks correctness of azure.quantum.optimization module. ## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## from asyncmock import AsyncMock, patch from unittest.mock import Mock from azure.quantum.aio.optim...
47.131579
101
0.730318
797f135aec35ce0275e78825ccccf5d3bc854aa1
1,465
py
Python
proj_temp/step_04_batch_rigidreg_pvb.py
devhliu/dlaais-data
790c497ab8e1c39524d37f924a72ea52343a01a8
[ "MIT" ]
null
null
null
proj_temp/step_04_batch_rigidreg_pvb.py
devhliu/dlaais-data
790c497ab8e1c39524d37f924a72ea52343a01a8
[ "MIT" ]
null
null
null
proj_temp/step_04_batch_rigidreg_pvb.py
devhliu/dlaais-data
790c497ab8e1c39524d37f924a72ea52343a01a8
[ "MIT" ]
null
null
null
import os import ants import nibabel as nib import numpy as np from glob import glob from dlaais.dlaais.atlas import get_atlas_nii_file from dlaais.dlaais.ants.registration_antspy import rigid_reg_4d_nifti from dlaais.dlaais.ctp.brain_mask import generate_phase_from_CTP #t1w_nii_file = get_atlas_nii_file('mni_icbm1...
36.625
94
0.713993
797f13d3319a327f0cb3e2e0f633dfd41fa8f89c
895
py
Python
chapter7/EnterText.py
sdphome/wxPython_training
eea3a1863d0ab4e3fa5b3920772a37b525cadc49
[ "Apache-2.0" ]
null
null
null
chapter7/EnterText.py
sdphome/wxPython_training
eea3a1863d0ab4e3fa5b3920772a37b525cadc49
[ "Apache-2.0" ]
null
null
null
chapter7/EnterText.py
sdphome/wxPython_training
eea3a1863d0ab4e3fa5b3920772a37b525cadc49
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import wx class TextFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, 'Text Entry Example', size=(300, 100)) panel = wx.Panel(self, -1) basicLabel = wx.StaticText(panel, -1, "Basic Control:") basicText = wx.TextCtrl(panel, -1, "I've enter...
38.913043
109
0.595531
797f140919e732da932d83d2a7b2d1f0e9877fd2
24
py
Python
python/testData/codeInsight/mlcompletion/kindNamedArg.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/codeInsight/mlcompletion/kindNamedArg.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/codeInsight/mlcompletion/kindNamedArg.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
print("test", se<caret>)
24
24
0.666667
797f14b6089249c32f9fc87424e3f3b4680aae50
461
py
Python
tests/test_render.py
tyo-yo/ImageMorphing
7740287d6ad55d8eaecd81ab958007d118833699
[ "MIT" ]
9
2019-03-19T07:33:29.000Z
2021-11-21T16:16:43.000Z
tests/test_render.py
agermanidis/ImageMorphing
7740287d6ad55d8eaecd81ab958007d118833699
[ "MIT" ]
1
2019-05-16T11:20:04.000Z
2019-05-16T11:20:04.000Z
tests/test_render.py
agermanidis/ImageMorphing
7740287d6ad55d8eaecd81ab958007d118833699
[ "MIT" ]
2
2021-06-19T15:15:15.000Z
2021-08-11T12:50:02.000Z
import unittest import cv2 import numpy as np from image_morphing.render import render_animation class TestRender(unittest.TestCase): def test_render(self): img0 = cv2.imread('tests/data/nbb/original_A.png') img1 = cv2.imread('tests/data/nbb/original_B.png') v = np.load('tests/data/nbb/AtoB...
30.733333
58
0.670282
797f15e431cb55e0dfdc263a29576731f7803b15
1,732
py
Python
IssueResponseTime/irt.py
relhajj/LibraryMetricScripts
f98aea11d180fc495cc477d6d28d070988bf8266
[ "MIT" ]
null
null
null
IssueResponseTime/irt.py
relhajj/LibraryMetricScripts
f98aea11d180fc495cc477d6d28d070988bf8266
[ "MIT" ]
null
null
null
IssueResponseTime/irt.py
relhajj/LibraryMetricScripts
f98aea11d180fc495cc477d6d28d070988bf8266
[ "MIT" ]
null
null
null
#Description: # - Extracts the Issue Response Time (in days) of a library based on its Github repository. # #Requirements: # - You will need to install PyGithub # - You will need to input your Github credentials to make use of the Github API #Input: # A file with the library repository names (repositories.txt) #Output...
33.307692
91
0.72806
797f163a709a8b62dd819f0c098f14d1c72af95c
3,483
py
Python
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/action/active_directory_add_groups.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/action/active_directory_add_groups.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/action/active_directory_add_groups.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: ...
34.147059
128
0.664083
797f163df8d93876f83186ec03e7be02edc9c7a7
6,334
py
Python
notes/hdd_rates.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
5
2021-04-29T21:07:18.000Z
2021-09-29T08:46:08.000Z
notes/hdd_rates.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
null
null
null
notes/hdd_rates.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
1
2018-04-07T12:26:21.000Z
2018-04-07T12:26:21.000Z
def hard_drive_failure_analysis(): """ References: https://www.backblaze.com/blog/backblaze-hard-drive-stats-q2-2020/ https://f001.backblazeb2.com/file/Backblaze_Blog/Q2_2020_Drive_Stats_Chart_Data.zip https://f001.backblazeb2.com/file/Backblaze_Blog/Q2_2019_Drive_Stats_Chart_Data.zip ...
33.871658
102
0.586044
797f16db80818545eb219adda33e397af03b7d0c
6,720
py
Python
db/real_time_face_recognition_db.py
y0ngma/facenet
034c5e6a669c618232b1c2b89fc6a4dcc50b45be
[ "MIT" ]
null
null
null
db/real_time_face_recognition_db.py
y0ngma/facenet
034c5e6a669c618232b1c2b89fc6a4dcc50b45be
[ "MIT" ]
null
null
null
db/real_time_face_recognition_db.py
y0ngma/facenet
034c5e6a669c618232b1c2b89fc6a4dcc50b45be
[ "MIT" ]
null
null
null
# 2020-05-27 Unknown과 Accuracy 영상에 출력되도록 수정 # 2020-06-01 DB에 적재중 import align.detect_face import argparse import sys import time import cv2 import face # Original # import contributed.face # Modified import psycopg2 import random import estimate, UI from functions import * import os base_path = '/'.join((os.getcwd())...
35.935829
98
0.593155
797f173dd9617e2c932d3857a6ac7cd52548f768
4,304
py
Python
azure-mgmt-compute/azure/mgmt/compute/compute/v2015_06_15/operations/usage_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure-mgmt-compute/azure/mgmt/compute/compute/v2015_06_15/operations/usage_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure-mgmt-compute/azure/mgmt/compute/compute/v2015_06_15/operations/usage_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.990476
144
0.627091
797f1845a9649f04b858fd3e4a8fc566579271a5
5,119
py
Python
craft/finemap.py
Abigail-Wood/CRAFT
e262f1e557e543482139a8c4eb38d8b2dc10767f
[ "MIT" ]
1
2020-08-24T14:42:00.000Z
2020-08-24T14:42:00.000Z
craft/finemap.py
Abigail-Wood/CRAFT
e262f1e557e543482139a8c4eb38d8b2dc10767f
[ "MIT" ]
null
null
null
craft/finemap.py
Abigail-Wood/CRAFT
e262f1e557e543482139a8c4eb38d8b2dc10767f
[ "MIT" ]
1
2020-04-23T02:58:02.000Z
2020-04-23T02:58:02.000Z
import sys import os import tempfile import pandas as pd import craft.config as config def finemap(data_dfs, index_df, file_dir, n_causal_snps): """ Runs Finemap and LDStore on each SNP locus. Finemap(v1.3.1) was created by Christian Brenner (http://www.christianbenner.com/) and uses summary statistics for ...
45.705357
175
0.642508
797f198cbc227c46c7b25982fdf5d3f0fb2fb8df
921
py
Python
MLH/OpenFarm.py
avonwyss/MLH
6c65a00e7dc662b3827e06162d48ebca1c0cc12b
[ "MIT" ]
null
null
null
MLH/OpenFarm.py
avonwyss/MLH
6c65a00e7dc662b3827e06162d48ebca1c0cc12b
[ "MIT" ]
null
null
null
MLH/OpenFarm.py
avonwyss/MLH
6c65a00e7dc662b3827e06162d48ebca1c0cc12b
[ "MIT" ]
1
2019-07-31T23:31:07.000Z
2019-07-31T23:31:07.000Z
from typing import * import utils class Attributes(utils.Entity): name: str class EntityBase(utils.Entity): type: str id: str attributes: Attributes links: Optional[Dict[str, utils.Entity]] class CropAttributes(Attributes): slug: str binomial_name: Optional[str] common_names: Optio...
21.418605
56
0.711183
797f1a4503836e8f6cab49982f73a0c96ce8da79
61,589
py
Python
calvin/tests/test_calvin2.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
1
2016-05-10T22:36:31.000Z
2016-05-10T22:36:31.000Z
calvin/tests/test_calvin2.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
calvin/tests/test_calvin2.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 Ericsson AB # # 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 applic...
34.542344
128
0.589407
797f1c81a5d07861046b0565ff66207138bf10dd
3,653
py
Python
ditto/readers/synergi/length_units.py
daniel-thom/ditto
9ba2d4cfa5e96eeda811f419c18c70b8a548747e
[ "BSD-3-Clause" ]
44
2018-04-02T16:48:53.000Z
2022-02-24T03:49:06.000Z
ditto/readers/synergi/length_units.py
dpinney/ditto
41dbba80e4990ed9949370fff809e4a68382e213
[ "BSD-3-Clause" ]
267
2018-04-17T22:40:14.000Z
2022-02-04T15:59:32.000Z
ditto/readers/synergi/length_units.py
dpinney/ditto
41dbba80e4990ed9949370fff809e4a68382e213
[ "BSD-3-Clause" ]
29
2018-05-11T22:55:09.000Z
2022-02-10T17:35:27.000Z
from enum import Enum class SynergiValueType(Enum): SUL = "SUL" MUL = "MUL" LUL = "LUL" Per_LUL = "Per_LUL" def convert_length_unit(value, value_type, length_units): """ Converts a Synergi value to an SI type. The value is interpreted based on: +----------+----------------+---------...
33.824074
81
0.3879
797f1c838847841c56fed912d1eded728fe268d5
8,812
py
Python
build/ARM/python/m5/internal/BasicExtLink_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/BasicExtLink_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/BasicExtLink_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.11 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path impo...
49.22905
108
0.768838
797f1dc97fe8c81e1e2545bce5c039accb9e0008
685
py
Python
setup.py
mardongvo/microlisp-py
2a8c5dfc95e678232f6b3310b3c5f86946cb28f1
[ "MIT" ]
null
null
null
setup.py
mardongvo/microlisp-py
2a8c5dfc95e678232f6b3310b3c5f86946cb28f1
[ "MIT" ]
null
null
null
setup.py
mardongvo/microlisp-py
2a8c5dfc95e678232f6b3310b3c5f86946cb28f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="microlisp", version="0.1", author="Mardong", author_email="mardong_@inbox.ru", description="Micro evaluator for S-expression", long_descripti...
27.4
52
0.654015
797f1ed863e09f3e4111cbd0c721c01b1df460ee
5,141
py
Python
openstack_dashboard/nikola_auth/tests/data_v2.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/nikola_auth/tests/data_v2.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/nikola_auth/tests/data_v2.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
# 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...
33.822368
78
0.538222
797f1f7d8bf68a2b3e6a4193e41c86f9a0eda5ce
1,147
py
Python
setup.py
tripleko-llc/hatano
edde4e75c52cecdd74d86b288b6b32a30b8c8049
[ "MIT" ]
null
null
null
setup.py
tripleko-llc/hatano
edde4e75c52cecdd74d86b288b6b32a30b8c8049
[ "MIT" ]
null
null
null
setup.py
tripleko-llc/hatano
edde4e75c52cecdd74d86b288b6b32a30b8c8049
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import os with open("README.md") as f: long_desc = f.read() here = os.path.abspath(os.path.dirname(__file__)) info = {} pkg_name = "hatano" with open( os.path.join(here, pkg_name, "__init__.py")) as f: exec(f.read(), None, info) with open("requirements.tx...
26.674419
58
0.574542
797f1fafc245c5d862aebcc71c607b6597f75321
319
py
Python
baekjoon/python/octal_to_binary_number_1212.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
baekjoon/python/octal_to_binary_number_1212.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
1
2019-11-04T06:44:04.000Z
2019-11-04T06:46:55.000Z
baekjoon/python/octal_to_binary_number_1212.py
yskang/AlgorithmPractice
31b76e38b4c2f1e3e29fb029587662a745437912
[ "MIT" ]
null
null
null
# Title: 8진수 2진수 # Link: https://www.acmicpc.net/problem/1212 import sys sys.setrecursionlimit(10 ** 6) read_single_str = lambda: sys.stdin.readline().strip() def solution(o: str): return bin(int(o, 8))[2:] def main(): o = read_single_str() print(solution(o)) if __name__ == '__main__': main()
14.5
54
0.648903
797f201a4fa501566254ef22d6b6d51ad5746247
111
py
Python
venv/Lib/site-packages/cmd_2to3/__main__.py
Casper-dev172/casm-area-tool
0a97f53f540ff978f8d2d663009f496db144849f
[ "Apache-2.0" ]
3
2022-02-26T17:16:34.000Z
2022-03-04T15:04:00.000Z
venv/Lib/site-packages/cmd_2to3/__main__.py
Casper-dev172/casm-area-tool
0a97f53f540ff978f8d2d663009f496db144849f
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/cmd_2to3/__main__.py
Casper-dev172/casm-area-tool
0a97f53f540ff978f8d2d663009f496db144849f
[ "Apache-2.0" ]
null
null
null
import sys from lib2to3.main import main as l2to3_main def main(): sys.exit(l2to3_main("lib2to3.fixes"))
15.857143
43
0.738739
797f2151dd873187c2f763b1122ea75f5edf4471
10,533
py
Python
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20180301preview/get_workspace.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20180301preview/get_workspace.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20180301preview/get_workspace.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.356322
326
0.669325
797f22c8b3178533dcaae827970c44db73de076e
1,471
py
Python
Part_1_beginner/19_Functions/Functions_solutions/exercise_2.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/19_Functions/Functions_solutions/exercise_2.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/19_Functions/Functions_solutions/exercise_2.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
# Napisz funkcję liczącą prędkość średnią na podstawie zadanego dystansu i czasu. # Następnie wykorzystaj ją implementując program, który wyznaczy średnią prędkość biegu, # średnią prędkość jazdy na rowerze i średnią prędkość jazdy autem. def avg_speed(distance, time): return distance / time # running_distance...
45.96875
106
0.774303
797f237a97896aa4553d1609e96c26ef02a1b77f
251
py
Python
TensorArtist/tartist/nn/opr/_defaults.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
54
2017-03-31T08:46:18.000Z
2022-03-09T14:37:19.000Z
TensorArtist/tartist/nn/opr/_defaults.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
1
2017-08-21T07:29:33.000Z
2017-08-21T09:52:40.000Z
TensorArtist/tartist/nn/opr/_defaults.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
3
2017-05-24T17:43:35.000Z
2018-09-19T11:18:23.000Z
# -*- coding:utf8 -*- # File : _defaults.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 12/31/16 # # This file is part of TensorArtist. import tensorflow as tf __default_dtype__ = tf.float32 __default_nonlin__ = tf.identity
19.307692
36
0.701195
797f2595116a8b76fea8dfe6cf1f538670a30ce4
2,644
py
Python
src/data/get_data.py
lukk60/RETrends
8fa660b0ba1da3dd998a7b8daeeddaf79876d1dd
[ "FTL" ]
null
null
null
src/data/get_data.py
lukk60/RETrends
8fa660b0ba1da3dd998a7b8daeeddaf79876d1dd
[ "FTL" ]
null
null
null
src/data/get_data.py
lukk60/RETrends
8fa660b0ba1da3dd998a7b8daeeddaf79876d1dd
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- import sys, os, click, logging from dotenv import find_dotenv, load_dotenv import json, urllib import feedly_api_utils as feedly import datetime import azure_storage_utils @click.command() @click.argument("config_filepath", type=click.Path(exists=True)) def main(config_filepath): """ downlo...
34.337662
97
0.673601
797f268880f6902af2d5e03f5d3ab8543151a2dd
569
py
Python
display/migrations/0011_auto_20191116_1312.py
SmithChebesta/uni-database
7394c5652f5cd260593951fca08905201ed07d3b
[ "MIT" ]
null
null
null
display/migrations/0011_auto_20191116_1312.py
SmithChebesta/uni-database
7394c5652f5cd260593951fca08905201ed07d3b
[ "MIT" ]
8
2020-06-06T00:28:14.000Z
2022-02-10T13:59:20.000Z
display/migrations/0011_auto_20191116_1312.py
SmithChebesta/uni-database
7394c5652f5cd260593951fca08905201ed07d3b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-16 06:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('display', '0010_auto_20191116_1238'), ] operations = [ migrations.AlterField( model_name='service', name='product_ty...
23.708333
58
0.585237
797f26e2eb30734346099719ca82973f6f4e0156
111
py
Python
app/api/dependencies/mail/markers.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/dependencies/mail/markers.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/dependencies/mail/markers.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
__all__ = ['MailSenderMarker'] class MailSenderMarker: """ Dependency marker to get the mail sender. """
18.5
53
0.702703
797f274b2012047c94b5ef3a4b438ce3338c8ffe
14,279
py
Python
assignment3/q3_gru.py
vwozhaoxin/cs224n_homework
202c571e1e0ed378d0353bb263c1e3e59c118aef
[ "MIT" ]
null
null
null
assignment3/q3_gru.py
vwozhaoxin/cs224n_homework
202c571e1e0ed378d0353bb263c1e3e59c118aef
[ "MIT" ]
null
null
null
assignment3/q3_gru.py
vwozhaoxin/cs224n_homework
202c571e1e0ed378d0353bb263c1e3e59c118aef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Q3: Grooving with GRUs """ from __future__ import absolute_import from __future__ import division import argparse import logging import sys import time from datetime import datetime import tensorflow as tf import numpy as np import matplotlib import matplotlib.pypl...
38.179144
149
0.622523
797f298ce69a1e427d2cd07f3161316a65a20fde
3,160
py
Python
code/stable/pdcontroller/src/python/InputParameters.py
Daisy-C/Drasil
20a877e463965dbb034a84a7094cdd73bdc0eb98
[ "BSD-2-Clause" ]
114
2017-12-16T04:51:37.000Z
2021-12-20T16:27:51.000Z
code/stable/pdcontroller/src/python/InputParameters.py
Daisy-C/Drasil
20a877e463965dbb034a84a7094cdd73bdc0eb98
[ "BSD-2-Clause" ]
1,762
2017-12-02T14:39:11.000Z
2022-03-29T16:28:57.000Z
code/stable/pdcontroller/src/python/InputParameters.py
Daisy-C/Drasil
20a877e463965dbb034a84a7094cdd73bdc0eb98
[ "BSD-2-Clause" ]
31
2018-11-25T22:16:12.000Z
2021-12-01T20:15:38.000Z
## \file InputParameters.py # \author Naveen Ganesh Muralidharan # \brief Provides the function for reading inputs and the function for checking the physical constraints on the input ## \brief Reads input from a file with the given file name # \param filename name of the input file # \return Set-Point: The desired valu...
39.5
119
0.602532
797f29cd328cb4ba90ca908f64f3eef47ad66561
1,108
py
Python
tools/sample_queries/count_all_persons.py
priyanshu-kumar02/personfinder
d5390b60709cd0ccaaade9a3b6224a60cd523ed9
[ "Apache-2.0" ]
561
2015-02-16T07:59:42.000Z
2022-03-30T17:31:21.000Z
tools/sample_queries/count_all_persons.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
591
2015-01-30T05:09:30.000Z
2022-02-26T09:31:25.000Z
tools/sample_queries/count_all_persons.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
258
2015-01-25T18:35:12.000Z
2021-12-25T01:44:14.000Z
# Copyright 2019 Google Inc. # # 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,...
34.625
74
0.731949
797f29f614feddf6081ef6bb49b6ef6eb627723c
8,041
py
Python
third_party/cppclean/test_symbols.py
thomwiggers/toggldesktop
fd4796d89aa28eb77b9fc12217065d5e57aa07ee
[ "BSD-3-Clause" ]
544
2019-11-17T09:38:44.000Z
2022-03-30T13:56:36.000Z
third_party/cppclean/test_symbols.py
thomwiggers/toggldesktop
fd4796d89aa28eb77b9fc12217065d5e57aa07ee
[ "BSD-3-Clause" ]
1,372
2019-11-14T09:22:21.000Z
2022-03-29T13:01:20.000Z
third_party/cppclean/test_symbols.py
thomwiggers/toggldesktop
fd4796d89aa28eb77b9fc12217065d5e57aa07ee
[ "BSD-3-Clause" ]
86
2019-11-14T04:47:23.000Z
2022-03-03T02:44:15.000Z
#!/usr/bin/env python # # Copyright 2007 Neal Norwitz # Portions Copyright 2007 Google Inc. # # 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...
40.205
79
0.621067
797f2a2ad5df52c43cabf33b6bb79f05ee6a54fe
3,497
py
Python
tensorflow_tts/text_processor/baker_preprocessor.py
Purkialo/FS2__TTS
59b523e4b11c827e38cc37817da145af15713bcd
[ "MIT" ]
7
2020-11-24T11:46:04.000Z
2022-01-28T06:36:20.000Z
tensorflow_tts/text_processor/baker_preprocessor.py
Purkialo/FS2__TTS
59b523e4b11c827e38cc37817da145af15713bcd
[ "MIT" ]
1
2021-07-19T02:31:24.000Z
2021-07-21T10:28:11.000Z
tensorflow_tts/text_processor/baker_preprocessor.py
Purkialo/FS2__TTS
59b523e4b11c827e38cc37817da145af15713bcd
[ "MIT" ]
3
2021-07-22T04:52:29.000Z
2022-01-28T06:14:39.000Z
"""Perform preprocessing and raw feature extraction for Baker dataset.""" import os import re import soundfile as sf from pypinyin import Style from pypinyin.core import Pinyin from pypinyin.contrib.neutral_tone import NeutralToneWith5Mixin from pypinyin.converter import DefaultConverter from tensorflow_tts.tex...
38.428571
84
0.529597
797f2a8ba80273fda5270cd32b0089465b797512
787
py
Python
tests/generate_random_data.py
jpetso/acra
c7ea270804f6ce9f301f3d93e98d35786c5f6b96
[ "Apache-2.0" ]
null
null
null
tests/generate_random_data.py
jpetso/acra
c7ea270804f6ce9f301f3d93e98d35786c5f6b96
[ "Apache-2.0" ]
null
null
null
tests/generate_random_data.py
jpetso/acra
c7ea270804f6ce9f301f3d93e98d35786c5f6b96
[ "Apache-2.0" ]
null
null
null
import os import json import random import string def get_random_data(config): size = random.randint(config['data_min_size'], config['data_max_size']) return ''.join(random.SystemRandom().choice(string.ascii_letters) for _ in range(size)).encode('ascii') if __name__ == '__main__': data_folder = os.envir...
32.791667
107
0.682338
797f2b12b1c319d6fc09d1a9583d37952648c044
24,099
py
Python
behavior/lib/prioritydict.py
arssivka/naomech
678e270d388498ae888b4f945b3753e21bf5ad5a
[ "0BSD" ]
3
2015-12-28T14:04:44.000Z
2021-03-12T17:25:37.000Z
behavior/lib/prioritydict.py
arssivka/naomech
678e270d388498ae888b4f945b3753e21bf5ad5a
[ "0BSD" ]
1
2015-10-22T15:15:26.000Z
2015-10-26T15:03:40.000Z
behavior/lib/prioritydict.py
arssivka/naomech
678e270d388498ae888b4f945b3753e21bf5ad5a
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ PriorityDict Implementation =========================== * TODO test correct exception types raised on errors * TODO What if keys are not orderable? * TODO User Pair rather than _Biggest * TODO order values by key * TODO update docs PriorityDict is an Apache2 licensed implementation of a d...
35.387665
80
0.576455
797f2b40b4bbcbc3d0c4fad9e3729f3a65e3424f
38
py
Python
satchless/order/exceptions.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
1
2017-11-26T18:53:40.000Z
2017-11-26T18:53:40.000Z
satchless/order/exceptions.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
13
2015-01-22T23:47:52.000Z
2022-01-13T20:22:34.000Z
satchless/order/exceptions.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
null
null
null
class EmptyCart(Exception): pass
9.5
27
0.710526
797f2bc4627ff96028103d77f1017ad291836e08
3,333
py
Python
tensorflow/contrib/distributions/python/kernel_tests/bijectors/permute_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/kernel_tests/bijectors/permute_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/kernel_tests/bijectors/permute_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
38.310345
95
0.669967
797f2c525be7c37776282fe5251da9d0ccdec1c4
31,720
py
Python
solaris/utils/geo.py
sandhi-artha/solaris
230a58f94f300062ee880d43920d218edf3321c4
[ "Apache-2.0" ]
null
null
null
solaris/utils/geo.py
sandhi-artha/solaris
230a58f94f300062ee880d43920d218edf3321c4
[ "Apache-2.0" ]
null
null
null
solaris/utils/geo.py
sandhi-artha/solaris
230a58f94f300062ee880d43920d218edf3321c4
[ "Apache-2.0" ]
null
null
null
import os from .core import _check_df_load, _check_gdf_load, _check_rasterio_im_load from .core import _check_geom, _check_crs import numpy as np import pandas as pd import geopandas as gpd from affine import Affine import rasterio from rasterio.warp import calculate_default_transform, Resampling from rasterio.warp imp...
37.852029
133
0.638178
797f2dd7cf5b94fa7d4a26aa9e2e07912c89ac87
7,532
py
Python
smaa_noob.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
smaa_noob.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
smaa_noob.py
youqad/oxford-hack-2020
7c4bf02f0dc52ce99cee721a3b7b3344060018f2
[ "MIT" ]
null
null
null
import torch import numpy as np import pyro import matplotlib.pyplot as plt from pyro.infer import MCMC, NUTS from pyro.distributions import Normal, Dirichlet, Uniform def utility(critVal, weight_val): return critVal.dot(weight_val).item() def crit_alt_matrix(number_alternatives, number_criterion): return Un...
48.593548
207
0.702735
797f2e71fc4102cc76ec07bff867acc2decb3bd6
27,979
py
Python
src/hl7CCDwriter.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
src/hl7CCDwriter.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
7
2016-08-12T15:12:43.000Z
2020-06-07T03:19:13.000Z
src/hl7CCDwriter.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
from .interpretpicklist import Interpretpicklist #import dateutils #from datetime import datetime from . import xmlutilities #from exceptions import SoftwareCompatibilityError, DataFormatError from . import logger #from sys import version from . import dbobjects from .writer import Writer from zope.interface import imp...
54.968566
149
0.615605
797f2e867b0ffa3426ef983b9a95ba5aa74546b8
5,196
py
Python
tests/misc/test_dcerpc_v5_ndr.py
wuerror/impacket
142cacb649b8c6441df9330ac22fe4d15a0d1bbc
[ "Apache-1.1" ]
23
2020-02-21T02:44:21.000Z
2022-03-03T23:40:32.000Z
tests/misc/test_dcerpc_v5_ndr.py
cipher9rat/impacket
142cacb649b8c6441df9330ac22fe4d15a0d1bbc
[ "Apache-1.1" ]
null
null
null
tests/misc/test_dcerpc_v5_ndr.py
cipher9rat/impacket
142cacb649b8c6441df9330ac22fe4d15a0d1bbc
[ "Apache-1.1" ]
21
2021-06-29T23:14:54.000Z
2022-03-24T13:13:58.000Z
#!/usr/bin/env python # SECUREAUTH LABS. Copyright 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # from __future__ import print_function import unittest f...
28.549451
89
0.601617
797f2ea914f0001c9a9896321ef12031f45b7d92
135
py
Python
apps/home/views.py
WouterVdS/BosvogelWebPlatform
4388d6fd98645ffb7c1470718d42dab43b953b95
[ "MIT" ]
1
2019-02-05T20:14:41.000Z
2019-02-05T20:14:41.000Z
apps/home/views.py
WouterVdS/BosvogelWebPlatform
4388d6fd98645ffb7c1470718d42dab43b953b95
[ "MIT" ]
157
2019-02-12T18:07:28.000Z
2022-02-10T07:14:24.000Z
apps/home/views.py
WouterVdS/BosvogelWebPlatform
4388d6fd98645ffb7c1470718d42dab43b953b95
[ "MIT" ]
null
null
null
from django.shortcuts import render def index(request): return render(request, 'home/landing.html', {'title_suffix': ' - Home'})
22.5
76
0.711111
797f2ee3ff4f6715956cd0847faf4b4fb7d7d0ff
2,971
py
Python
torchattacks/attacks/eotpgd.py
GDaglio/adversarial-attacks-pytorch
7634571539351a12cd90b32d69e4f53678273f46
[ "MIT" ]
null
null
null
torchattacks/attacks/eotpgd.py
GDaglio/adversarial-attacks-pytorch
7634571539351a12cd90b32d69e4f53678273f46
[ "MIT" ]
null
null
null
torchattacks/attacks/eotpgd.py
GDaglio/adversarial-attacks-pytorch
7634571539351a12cd90b32d69e4f53678273f46
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from ..attack import Attack class EOTPGD(Attack): r""" Comment on "Adv-BNN: Improved Adversarial Defense through Robust Bayesian Neural Network" [https://arxiv.org/abs/1907.00895] Distance Measure : Linf Arguments: model (nn.Module): model to attack. ...
35.369048
154
0.567822
797f31852abe282b33897c6e5ab5d642870d3566
12,235
py
Python
readthedocs/api/v3/tests/test_projects.py
tapaswenipathak/readthedocs.org
791f98e77b87ac74508dbf71b9e30064890fad8b
[ "MIT" ]
2
2019-08-17T21:17:21.000Z
2021-06-08T04:45:21.000Z
readthedocs/api/v3/tests/test_projects.py
feliziachen/readthedocs.org
1ee57dec16f352d14ca17c1bcd8877a9a88a8f0a
[ "MIT" ]
null
null
null
readthedocs/api/v3/tests/test_projects.py
feliziachen/readthedocs.org
1ee57dec16f352d14ca17c1bcd8877a9a88a8f0a
[ "MIT" ]
1
2021-05-15T03:28:30.000Z
2021-05-15T03:28:30.000Z
import datetime import json from pathlib import Path import django_dynamic_fixture as fixture from django.contrib.auth.models import User from django.core.cache import cache from django.test import TestCase from django.urls import reverse from django.utils.timezone import make_aware from rest_framework.authtoken.model...
32.626667
87
0.558807
797f31d90ee1afb13fe4d1920e4592bec4d9350e
173
py
Python
try_code/try_cython/try_solveu.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
1
2018-11-11T05:00:53.000Z
2018-11-11T05:00:53.000Z
try_code/try_cython/try_solveu.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
null
null
null
try_code/try_cython/try_solveu.py
pcmagic/stokes_flow
464d512d3739eee77b33d1ebf2f27dae6cfa0423
[ "MIT" ]
null
null
null
import solveu import numpy as np def myfun(): a = 1.1 out = np.ones((1)) solveu.try1(a, out) PETSc.Sys.Print(out) if __name__ == '__main__': myfun()
12.357143
26
0.583815
797f339a3057c887f00ea40fda8c74a3ba3b3930
763
py
Python
one_offs/copy_agency/cp.py
sunlightlabs/regulations-scraper
5f2644a3cf54f915d7d90957645073737ab91022
[ "BSD-3-Clause" ]
13
2015-09-28T16:59:31.000Z
2020-06-20T01:23:13.000Z
one_offs/copy_agency/cp.py
sunlightlabs/regulations-scraper
5f2644a3cf54f915d7d90957645073737ab91022
[ "BSD-3-Clause" ]
1
2019-02-18T20:26:21.000Z
2021-02-25T01:43:44.000Z
one_offs/copy_agency/cp.py
sunlightlabs/regulations-scraper
5f2644a3cf54f915d7d90957645073737ab91022
[ "BSD-3-Clause" ]
6
2015-07-08T22:41:34.000Z
2019-09-03T18:19:32.000Z
import sys import pymongo import gridfs source_db = pymongo.Connection(port=27019).regulations dest_db = pymongo.Connection().regulations_demo source_fs = gridfs.GridFS(source_db, 'files') dest_fs = gridfs.GridFS(dest_db, 'files') agency = sys.argv[1] for doc in source_db.docs.find({'agency': agency}): print "C...
34.681818
94
0.672346
797f33b66103bde3533e607bedc5d06af3942d48
24,713
py
Python
sdk-python/swagger_client/models/core_employees_body.py
factorialco/oas
8a2fc3b519b7e74566c94ebd220590d7a9c38aa3
[ "Apache-2.0" ]
1
2021-11-15T21:36:01.000Z
2021-11-15T21:36:01.000Z
sdk-python/swagger_client/models/core_employees_body.py
factorialco/oas
8a2fc3b519b7e74566c94ebd220590d7a9c38aa3
[ "Apache-2.0" ]
null
null
null
sdk-python/swagger_client/models/core_employees_body.py
factorialco/oas
8a2fc3b519b7e74566c94ebd220590d7a9c38aa3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Factorial API Open Api Specifications available at [https://github.com/factorialco/oas](https://github.com/factorialco/oasLooking) Guides and support available at [https://help.factorialhr.com/integrations](https://help.factorialhr.com/integrations) # Authentication The public API provi...
38.433904
6,828
0.651843
797f34aedf4ef59477111b7e34a29217fd45bfae
7,263
py
Python
.history/pwd_20210906062453.py
GraceOswal/Password-Locker
57da03c46e4044bea681e59c56bcb9ed3a79db71
[ "MIT" ]
null
null
null
.history/pwd_20210906062453.py
GraceOswal/Password-Locker
57da03c46e4044bea681e59c56bcb9ed3a79db71
[ "MIT" ]
null
null
null
.history/pwd_20210906062453.py
GraceOswal/Password-Locker
57da03c46e4044bea681e59c56bcb9ed3a79db71
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from passlock import User, Credentials def create_new_user(username,password): ''' Function to create a new user with a username and password ''' new_user = User(username,password) return new_user def save_user(user): ''' Function to save a new user ''' u...
38.839572
219
0.596723
797f35b0840e8c8dad38e600c0d941c731960d56
2,181
py
Python
leveling/cogs/leveling.py
shahprog/discordpy-leveling-bot
04336fa582484e0b18a3d82ae9e33a560e2173dd
[ "MIT" ]
11
2021-08-31T07:24:34.000Z
2022-03-09T04:50:53.000Z
leveling/cogs/leveling.py
shahprog/discordpy-leveling-bot
04336fa582484e0b18a3d82ae9e33a560e2173dd
[ "MIT" ]
1
2021-11-01T02:03:38.000Z
2021-11-14T21:16:07.000Z
leveling/cogs/leveling.py
shahriyardx/discordpy-leveling-bot
04336fa582484e0b18a3d82ae9e33a560e2173dd
[ "MIT" ]
6
2021-09-05T21:14:40.000Z
2022-02-26T11:16:35.000Z
from discord import File, Member from discord.ext import commands from leveling.utils import get_user_data, get_rank from easy_pil import Editor, Canvas, load_image_async, Font class Level(commands.Cog): def __init__(self, bot) -> None: self.bot = bot @commands.command() async def rank(self, ctx,...
32.073529
93
0.594681
797f36b0b0535d7e00673bac660a7ae1259be297
1,168
py
Python
docs/examples/Fused_flow_docs_example.py
FUSED-Wind/fusedwind-wesbite
66f3cd9d1c95f1e4acf8f22dba79caf65edab857
[ "Apache-2.0" ]
15
2015-01-19T18:20:35.000Z
2021-12-21T05:50:38.000Z
docs/examples/Fused_flow_docs_example.py
michaelXDzhang/fusedwind
5025b84f8bfb334b33bf172bf1a39e3abcadab15
[ "Apache-2.0" ]
61
2015-01-05T02:47:35.000Z
2019-10-09T02:18:13.000Z
docs/examples/Fused_flow_docs_example.py
michaelXDzhang/fusedwind
5025b84f8bfb334b33bf172bf1a39e3abcadab15
[ "Apache-2.0" ]
11
2015-01-16T03:05:49.000Z
2021-02-16T13:57:59.000Z
# 1 --------- # A simple test of the basic_aep model from fusedwind.plant_flow.basic_aep import aep_weibull_assembly import numpy as np aep = aep_weibull_assembly() # 1 --------- # 2 --------- # Set input parameters aep.wind_curve = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, \ ...
28.487805
123
0.567637
797f3875eb810e23d4c8d2a793423125344eb1f8
4,046
py
Python
transformer_seq2seq/src/utils/logger.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
1
2022-03-20T08:40:20.000Z
2022-03-20T08:40:20.000Z
transformer_seq2seq/src/utils/logger.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
null
null
null
transformer_seq2seq/src/utils/logger.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
null
null
null
import logging from filelock import FileLock import pdb import pandas as pd # Ignore warnings import warnings warnings.filterwarnings("ignore") import json '''Logging Modules''' #log_format='%(asctime)s | %(levelname)s | %(filename)s:%(lineno)s - %(funcName)5s() ] | %(message)s' def get_logger(name, log_f...
31.123077
138
0.668314
797f38aa50f90fc4e636d53ef88000fa3ce751a8
7,278
py
Python
webots_ros2_tests/test/test_system_driver.py
omichel/webots_ros2
5b59d0b1fbeff4c3f75a447bd152c10853f4691b
[ "Apache-2.0" ]
null
null
null
webots_ros2_tests/test/test_system_driver.py
omichel/webots_ros2
5b59d0b1fbeff4c3f75a447bd152c10853f4691b
[ "Apache-2.0" ]
6
2019-08-09T08:04:37.000Z
2019-08-14T15:05:35.000Z
webots_ros2_tests/test/test_system_driver.py
omichel/webots_ros2
5b59d0b1fbeff4c3f75a447bd152c10853f4691b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 1996-2021 Cyberbotics 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 applica...
38.305263
118
0.68233
797f3b60a25124dfb33affeb9ff458dad531583b
1,038
py
Python
party/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
null
null
null
party/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
2
2020-06-05T21:39:21.000Z
2021-06-10T21:40:18.000Z
party/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
1
2020-02-26T15:06:32.000Z
2020-02-26T15:06:32.000Z
from django.contrib import admin from .models import ( Party, PartyRelationship, PartyLocationParticipation, Individual, Person, NonPersonLivingOrganism, Organization, FormalOrganization, InformalOrganization ) @admin.register(Party) class PartyAdmin(admin.ModelAdmin): pass @admin.register(PartyRel...
19.584906
58
0.802505
797f3b63776c3856cbb5fcd73f64b871b8b735f2
1,821
py
Python
mapper/vector.py
unibas-dmi-hpc/MapLib
4bc38c50c580ddd39785291726f3174665f0a06a
[ "MIT" ]
null
null
null
mapper/vector.py
unibas-dmi-hpc/MapLib
4bc38c50c580ddd39785291726f3174665f0a06a
[ "MIT" ]
null
null
null
mapper/vector.py
unibas-dmi-hpc/MapLib
4bc38c50c580ddd39785291726f3174665f0a06a
[ "MIT" ]
1
2020-06-12T14:38:48.000Z
2020-06-12T14:38:48.000Z
from math import floor, ceil, sqrt class Vector(): """Class wich represents a vector and defines operations on it.""" def __init__(self, x, y, z): self.value = x, y, z def __iter__(self): return self.value.__iter__() @property def norm(self): """ Returns the leng...
30.864407
95
0.551345
797f3c3938dc958ed34c8b8a2218ca153428ffe6
19,017
py
Python
ivy/functional/ivy/creation.py
saeedashrraf/ivy
ad57c359a11459d68965d9044a76ea30e175bf16
[ "Apache-2.0" ]
1
2022-03-10T00:43:53.000Z
2022-03-10T00:43:53.000Z
ivy/functional/ivy/creation.py
Ahmed-Yahia-cs/ivy
33f1ab8e63a99bebd583ab8903dc0a2c4a660861
[ "Apache-2.0" ]
null
null
null
ivy/functional/ivy/creation.py
Ahmed-Yahia-cs/ivy
33f1ab8e63a99bebd583ab8903dc0a2c4a660861
[ "Apache-2.0" ]
1
2022-03-17T00:22:36.000Z
2022-03-17T00:22:36.000Z
# global import numpy as np from numbers import Number from typing import Union, Tuple, Optional, List # local import ivy from ivy.framework_handler import current_framework as _cur_framework # Array API Standard # # -------------------# def arange( start: Number, stop: Number = None, step: Number = 1,...
30.378594
88
0.616238
797f3cc6b420406d0eb8a572697195bce79b7ce8
955
py
Python
libs/plot.py
justaboutlola/improved-wgan-pytorch
5bb0b729809152d9129ef72a9dd28b3ff83021a2
[ "MIT" ]
1
2019-05-31T14:03:10.000Z
2019-05-31T14:03:10.000Z
libs/plot.py
justaboutlola/improved-wgan-pytorch
5bb0b729809152d9129ef72a9dd28b3ff83021a2
[ "MIT" ]
null
null
null
libs/plot.py
justaboutlola/improved-wgan-pytorch
5bb0b729809152d9129ef72a9dd28b3ff83021a2
[ "MIT" ]
null
null
null
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import collections import pickle _since_beginning = collections.defaultdict(lambda: {}) _since_last_flush = collections.defaultdict(lambda: {}) _iter = [0] def tick(): _iter[0] += 1 def plot(name, value): _since_last_flush...
23.292683
68
0.700524
797f3d529d7615b24c6faec463406381b43427dc
2,294
py
Python
aiohttp_oauth2/client/app.py
stj/aiohttp-oauth2
c5572a0138302d9ad0c2116a1807d8886ffed425
[ "MIT" ]
17
2019-05-17T08:43:32.000Z
2020-09-01T13:55:54.000Z
aiohttp_oauth2/client/app.py
stj/aiohttp-oauth2
c5572a0138302d9ad0c2116a1807d8886ffed425
[ "MIT" ]
9
2019-07-26T08:22:03.000Z
2020-10-05T22:58:51.000Z
aiohttp_oauth2/client/app.py
stj/aiohttp-oauth2
c5572a0138302d9ad0c2116a1807d8886ffed425
[ "MIT" ]
8
2019-10-14T21:24:06.000Z
2020-09-02T02:59:45.000Z
from typing import Any, Callable, Dict, List, Optional from aiohttp import ClientSession, web from .views import routes async def client_session(app: web.Application): async with ClientSession() as session: app["session"] = session yield def oauth2_app( # pylint: disable=too-many-arguments ...
37
87
0.673932
797f3d57ef089d8a61a3796fafb06c71d9955212
2,460
py
Python
api/desecapi/validators.py
logolive/desec-stack
5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3
[ "MIT" ]
197
2016-10-13T16:44:54.000Z
2022-03-24T08:33:25.000Z
api/desecapi/validators.py
logolive/desec-stack
5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3
[ "MIT" ]
455
2016-12-08T15:23:04.000Z
2022-03-29T12:58:02.000Z
api/desecapi/validators.py
logolive/desec-stack
5bcc242d1e4863e9ff3ba904cd6411dbd58f95d3
[ "MIT" ]
25
2016-10-13T16:45:02.000Z
2022-02-23T17:57:04.000Z
from django.db import DataError from rest_framework.exceptions import ValidationError from rest_framework.validators import qs_exists, qs_filter, UniqueTogetherValidator def qs_exclude(queryset, **kwargs): try: return queryset.exclude(**kwargs) except (TypeError, ValueError, DataError): return...
43.157895
117
0.695528
797f3dec1a6faeb281886c94a31480930a22c7f0
2,681
py
Python
models/python/demo-dataset/08.py
scriptographers/UnPlag
4bc0d78332424e28acbee993b527129235d93b1d
[ "MIT" ]
5
2020-12-20T15:18:01.000Z
2022-03-19T15:42:48.000Z
models/python/demo-dataset/08.py
scriptographers/UnPlag
4bc0d78332424e28acbee993b527129235d93b1d
[ "MIT" ]
null
null
null
models/python/demo-dataset/08.py
scriptographers/UnPlag
4bc0d78332424e28acbee993b527129235d93b1d
[ "MIT" ]
1
2021-01-08T13:05:39.000Z
2021-01-08T13:05:39.000Z
# Very slightly related, closely related 07.py import random class Node(): """ //Establishing Nodes """ def __init__(self,date): self.date=date self.next=None class LinkNode(): def __init__(self,node=None): self.__head=node if node: node.next=self.__h...
26.81
74
0.515479
797f3e5873cdc855a59877590c11f6e68cec2b4c
3,014
py
Python
aiida_gromacs/calculations/pdb2gmx.py
jimboid/aiida-gromacs
9f7300e9f9579c1bae081ab35e72b1dc17b955c7
[ "MIT" ]
null
null
null
aiida_gromacs/calculations/pdb2gmx.py
jimboid/aiida-gromacs
9f7300e9f9579c1bae081ab35e72b1dc17b955c7
[ "MIT" ]
null
null
null
aiida_gromacs/calculations/pdb2gmx.py
jimboid/aiida-gromacs
9f7300e9f9579c1bae081ab35e72b1dc17b955c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Calculations provided by aiida_gromacs. Register calculations via the "aiida.calculations" entry point in setup.json. """ from aiida.common import datastructures from aiida.engine import CalcJob from aiida.orm import SinglefileData from aiida.plugins import DataFactory Pdb2gmxParameters = ...
41.861111
123
0.671865
797f3e9adbf04d5032ce4ab350e5e1cd695a1297
12,406
py
Python
scripts/trafficSign_utils.py
Billmvp73/attention-sampling
6ac4ef44a438a1ab25ce97f18a185c87defbcdff
[ "MIT" ]
null
null
null
scripts/trafficSign_utils.py
Billmvp73/attention-sampling
6ac4ef44a438a1ab25ce97f18a185c87defbcdff
[ "MIT" ]
null
null
null
scripts/trafficSign_utils.py
Billmvp73/attention-sampling
6ac4ef44a438a1ab25ce97f18a185c87defbcdff
[ "MIT" ]
null
null
null
import argparse from collections import namedtuple from functools import partial import hashlib import urllib.request import os from os import path import string import sys import zipfile import json import subprocess from cv2 import imread, imwrite, VideoCapture, resize import cv2 import keras.backend as K from keras....
35.95942
147
0.581493
797f3ef24e77907420473f333329911b2043f61c
849
py
Python
cherry/envs/timestep_wrapper.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
160
2019-09-14T05:33:29.000Z
2022-03-12T18:58:51.000Z
cherry/envs/timestep_wrapper.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
14
2019-12-05T12:14:05.000Z
2022-02-28T14:52:52.000Z
cherry/envs/timestep_wrapper.py
acse-yl27218/cherry
5b349cae64b282facf5a874164690c06808b1c61
[ "Apache-2.0" ]
28
2019-09-17T02:25:46.000Z
2022-03-12T19:53:58.000Z
#!/usr/bin/env python3 import numpy as np from gym import ObservationWrapper from gym.spaces import Box from .base import Wrapper class AddTimestep(Wrapper, ObservationWrapper): """ Adds a timestep information to the state input. Modified from Ilya Kostrikov's implementation: https://github.com/...
25.727273
58
0.652532
797f3ef97e641274e30c6f6f5a077698d44390b7
7,795
py
Python
mantle/xilinx/mantle3/cascade.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
mantle/xilinx/mantle3/cascade.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
mantle/xilinx/mantle3/cascade.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
from collections.abc import Sequence from magma import * from ..spartan3.CLB import ANDCY, XORCY, MUXCY from .LUT import LUT, LOG_BITS_PER_LUT, A0, A1, A2, A3, ZERO, ONE from .ROM import ROMN __all__ = ['HalfCarry', 'FullCarry'] __all__ += ['FullCascade'] __all__ += ['HalfCascade', 'FlatFalfCascade'] # # return I0, ...
24.512579
80
0.519564
797f4062344433354c6f4f7a3eb6d1e821c0366d
7,766
py
Python
src/modules/TMCM_3110.py
TobiasNils/trinamic
ae57180531bf8b3bac2fcd115bbc90a53d0e13a5
[ "Apache-2.0", "MIT" ]
1
2021-03-20T17:02:56.000Z
2021-03-20T17:02:56.000Z
src/modules/TMCM_3110.py
TobiasNils/trinamic
ae57180531bf8b3bac2fcd115bbc90a53d0e13a5
[ "Apache-2.0", "MIT" ]
3
2021-03-04T19:09:33.000Z
2021-03-05T21:58:49.000Z
src/modules/TMCM_3110.py
TobiasNils/trinamic
ae57180531bf8b3bac2fcd115bbc90a53d0e13a5
[ "Apache-2.0", "MIT" ]
1
2021-05-21T15:28:41.000Z
2021-05-21T15:28:41.000Z
''' Created on 05.06.2020 @author: JM ''' impl<T: TMCLConnnection> TMCM_3110<T> { MOTORS = 3 pub fn new(connection: TMCLInterface<T>) -> Self { self.connection = connection #self.GPs = _GPs self.APs = _APs #self.ENUMs = _ENUMs @staticmethod def getEdsFile(): ...
37.336538
92
0.619238
797f43a5272aee3dd6efd326d104d35be87573f4
481
py
Python
spacepackets/cfdp/pdu/__init__.py
robamu-org/py-spacepackets
522b021ba5690f97a4b74ae8b110762a32eb9b19
[ "Apache-2.0" ]
null
null
null
spacepackets/cfdp/pdu/__init__.py
robamu-org/py-spacepackets
522b021ba5690f97a4b74ae8b110762a32eb9b19
[ "Apache-2.0" ]
3
2021-10-05T09:29:45.000Z
2022-02-12T15:46:43.000Z
spacepackets/cfdp/pdu/__init__.py
robamu-org/py-spacepackets
522b021ba5690f97a4b74ae8b110762a32eb9b19
[ "Apache-2.0" ]
1
2022-03-04T17:25:29.000Z
2022-03-04T17:25:29.000Z
# noinspection PyUnresolvedReferences from ..definitions import SegmentMetadataFlag, PduType # noinspection PyUnresolvedReferences from .header import PduHeader, PduConfig from .ack import TransactionStatus, AckPdu from .eof import EofPdu from .file_directive import FileDirectivePduBase, DirectiveCodes, IsFileDirectiv...
34.357143
81
0.85447
797f43cf1a95081efbb2bd84ff3ecafbecb5d61d
14,472
py
Python
qpcr_analyzer/qpcr_utils.py
martinwellman/odm-qpcr-analyzer
05c2af3b76bbb15ff0df5b4a146f91508fc91e1a
[ "MIT" ]
null
null
null
qpcr_analyzer/qpcr_utils.py
martinwellman/odm-qpcr-analyzer
05c2af3b76bbb15ff0df5b4a146f91508fc91e1a
[ "MIT" ]
null
null
null
qpcr_analyzer/qpcr_utils.py
martinwellman/odm-qpcr-analyzer
05c2af3b76bbb15ff0df5b4a146f91508fc91e1a
[ "MIT" ]
null
null
null
#%% """ qpcr_utils.py ============= Some miscellaneous helper utilities and variables used by the QPCR code. """ import yaml from easydict import EasyDict import numpy as np from openpyxl.utils import get_column_letter from openpyxl.utils import units import re import pandas as pd OUTLIER_COL = "__outlier_values" M...
40.997167
232
0.624378
797f44050ddb843132e453332f1ec9b22eb40f39
9,251
py
Python
gotots.py
tony19-sandbox/gotots
bd357384bef44acddd0d079d62a7a6953cab64f3
[ "Unlicense", "MIT" ]
null
null
null
gotots.py
tony19-sandbox/gotots
bd357384bef44acddd0d079d62a7a6953cab64f3
[ "Unlicense", "MIT" ]
null
null
null
gotots.py
tony19-sandbox/gotots
bd357384bef44acddd0d079d62a7a6953cab64f3
[ "Unlicense", "MIT" ]
null
null
null
#!/bin/python ######################################################################## # gotots 0.1.0 # # usage: go_to_ts.py [-h] [-d OUTDIR] input [input ...] # # Converts Go structs into TypeScript classes # # positional arguments: # input path to input file (Go) # # optional arguments: # -...
34.011029
130
0.468058
797f44bc6326324552f62c8006d3d3737f2d9126
1,284
py
Python
rnacentral_pipeline/databases/zfin/fetch.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
1
2018-08-09T14:41:16.000Z
2018-08-09T14:41:16.000Z
rnacentral_pipeline/databases/zfin/fetch.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
60
2015-02-04T16:43:53.000Z
2022-01-27T10:28:43.000Z
rnacentral_pipeline/databases/zfin/fetch.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright [2009-2020] EMBL-European Bioinformatics Institute 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...
31.317073
72
0.699377