hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
33297b55761feecf298920a8ed3463af51b869b3
1,151
py
Python
incasem/gunpowder/merge_masks.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/merge_masks.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/merge_masks.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
from typing import List import numpy as np import gunpowder as gp class MergeMasks(gp.BatchFilter): def __init__( self, arrays: List[gp.ArrayKey], output_array: gp.ArrayKey): """Merge multiple binary masks with a logical and Args: arrays: list of bi...
25.021739
68
0.594266
3329823026b64123f4883293fc676895c730f38f
6,747
py
Python
data/level/level1500.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level1500.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level1500.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'board_info': {(0, 0): {'next': (0, 1), 'prev': (0, -1)}, (0, 1): {'next': (0, 1), 'prev': (0, -1)}, (0, 2): {'next': (0, 1), 'prev': (0, -1)}, (0, 3): {'next': (0, 1), 'prev': (0, -1)}, (0, 4): {'next': (0, 1), 'prev': ...
63.650943
67
0.220394
33298cf67ee5f9574e76d8b10a0feb29bdef68e0
50,452
py
Python
Lib/site-packages/wx-3.0-msw/wx/lib/agw/ribbon/toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/agw/ribbon/toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/agw/ribbon/toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
""" A ribbon tool bar is similar to a traditional toolbar which has no labels. Description =========== It contains one or more tool groups, each of which contains one or more tools. Each tool is represented by a (generally small, i.e. 16x15) bitmap. Events Processing ================= This class processes the fol...
34.698762
268
0.578986
3329a265839f392194d8f7f1ff1287faf551d966
2,776
py
Python
ucscsdk/mometa/lsboot/LsbootUsbInternalImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/lsboot/LsbootUsbInternalImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/lsboot/LsbootUsbInternalImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for LsbootUsbInternalImage ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class LsbootUsbInternalImageConsts(): TYPE_EMBEDDED_LOCAL_JBOD = "embedded-local-jbo...
50.472727
346
0.664625
3329ae0bb8657c1baaafc04cc378716e79caf22d
2,331
py
Python
nova/tests/unit/compute/test_flavors.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/compute/test_flavors.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/unit/compute/test_flavors.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# Copyright 2014 IBM Corp. # 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 app...
37.596774
78
0.667096
3329bbd6afd5099bdd1a59e9d0da5cf22b291491
1,339
py
Python
test/functional/ios/helper/test_helper.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
test/functional/ios/helper/test_helper.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
test/functional/ios/helper/test_helper.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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...
32.658537
89
0.710232
3329bbf484308a5834c3d9453c265c001eef86bf
102
py
Python
run.py
metalpoch/Traffic-Access-Dashboard
b048451920cf3e101d54ffd7a991417ef2c3d596
[ "MIT" ]
1
2021-06-11T21:45:38.000Z
2021-06-11T21:45:38.000Z
run.py
metalpoch/Traffic-Access-Dashboard
b048451920cf3e101d54ffd7a991417ef2c3d596
[ "MIT" ]
null
null
null
run.py
metalpoch/Traffic-Access-Dashboard
b048451920cf3e101d54ffd7a991417ef2c3d596
[ "MIT" ]
null
null
null
''' Start Traffic Access ''' from traffic_access import app if __name__ == '__main__': app.run()
12.75
30
0.676471
3329ccedb8866675188348a9688c92daba8c6fb3
1,131
py
Python
fabric/tasks/package/__init__.py
crazy-canux/zfabric
f150947e0b36b786cf13fae88a58bbff8251deae
[ "Apache-2.0" ]
null
null
null
fabric/tasks/package/__init__.py
crazy-canux/zfabric
f150947e0b36b786cf13fae88a58bbff8251deae
[ "Apache-2.0" ]
null
null
null
fabric/tasks/package/__init__.py
crazy-canux/zfabric
f150947e0b36b786cf13fae88a58bbff8251deae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) Canux CHENG <canuxcheng@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 # the rights to ...
56.55
78
0.772767
3329ce667422bde5a76f26bbf0af0f58532145dc
4,144
py
Python
src/calc/serial/calc_mass.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/serial/calc_mass.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/serial/calc_mass.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Calculate mass flux crossing inner boundary # # Usage: python calc_mass.py [problem_id] [-u] # import numpy as np import os import sys sys.path.insert(0, '/Users/paytonrodman/athena-sim/athena-analysis/dependencies') #sys.path.insert(0, '/home/per29/rds/rds-accretion-zyNhkonJSR8/athena-analysis/de...
36.034783
148
0.594353
3329e963be5141391cfa46202ef845ba92024951
8,049
py
Python
qiskit/circuit/library/standard_gates/u.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
1
2019-06-04T12:23:36.000Z
2019-06-04T12:23:36.000Z
qiskit/circuit/library/standard_gates/u.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
35
2019-03-07T02:09:22.000Z
2022-03-22T19:55:15.000Z
qiskit/circuit/library/standard_gates/u.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
34.251064
99
0.497205
3329f74ade690ea7dbbf9efb3ab82d1a24f73f4c
3,049
py
Python
Gamle scripts/systematic/drop_0_40.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
Gamle scripts/systematic/drop_0_40.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
Gamle scripts/systematic/drop_0_40.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 13 12:31:46 2018 @author: Simon """ import os from createLargerFeatureMatrix import simpleLargeMatrix import pickle from keras.models import Sequential from keras.layers import Dense, Dropout from keras import regularizers import numpy as np path ...
23.274809
137
0.762545
3329f925cea914d615ccc1e2ef03244297b7d6a1
1,069
py
Python
tests/test_provider_HarryEMartland_appdynamics.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_HarryEMartland_appdynamics.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_HarryEMartland_appdynamics.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_HarryEMartland_appdynamics.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:11:50 UTC) def test_provider_import(): import terrascript.provider.HarryEMartland.appdynamics def test_resource_import(): from terrascript.resource.HarryEMartland.appdynamics import appdynamics...
32.393939
87
0.78391
332a3cd21b9f3800c8f885e2faff309a2cc50dc7
1,911
py
Python
simple.py
morrowc/goog_addressing
3d9bd9f4ae144e4f29373b9e130ba254fbdb6fa0
[ "Apache-2.0" ]
null
null
null
simple.py
morrowc/goog_addressing
3d9bd9f4ae144e4f29373b9e130ba254fbdb6fa0
[ "Apache-2.0" ]
null
null
null
simple.py
morrowc/goog_addressing
3d9bd9f4ae144e4f29373b9e130ba254fbdb6fa0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Simple digest and return netblocks from goog/cloud.json # https://www.gstatic.com/ipranges/goog.json # https://www.gstatic.com/ipranges/cloud.json import ipaddress import json import urllib.request import sys URLS = { "goog": "https://www.gstatic.com/ipranges/goog.json", "...
23.024096
71
0.577708
332a430170c210015529dd7a5b2909f2cb44d8db
6,386
py
Python
configs/da/da_faster_rcnn.py
cizhenshi/mmdetection
b0fe89677020ebe9e6a736b98d3e791ca0e6536d
[ "Apache-2.0" ]
1
2020-05-12T16:47:39.000Z
2020-05-12T16:47:39.000Z
configs/da/da_faster_rcnn.py
cizhenshi/mmdetection
b0fe89677020ebe9e6a736b98d3e791ca0e6536d
[ "Apache-2.0" ]
null
null
null
configs/da/da_faster_rcnn.py
cizhenshi/mmdetection
b0fe89677020ebe9e6a736b98d3e791ca0e6536d
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='DA_FasterRCNN', # pretrained='open-mmlab://vgg16_caffe', backbone=dict( type='VGG', depth=16, num_stages=5, out_indices=(4,), frozen_stages=2, style='pytorch'), rpn_head=dict( type='RPNHead', in_channels...
31.303922
85
0.596618
332a44ed4cfc3d454ab4b15b3eeb922b3ebe7919
3,413
py
Python
framework/communication/aiocoap/numbers/__init__.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
1
2021-02-13T07:42:04.000Z
2021-02-13T07:42:04.000Z
framework/communication/aiocoap/numbers/__init__.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
framework/communication/aiocoap/numbers/__init__.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
# This file is part of the Python aiocoap library project. # # Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>, # 2013-2014 Christian Amsüss <c.amsuess@energyharvesting.at> # # aiocoap is free software, this file is published under the MIT license as # described in the accompany...
48.070423
123
0.617052
332a4750e0808afb158ac593f7a3df66576d18a3
13,531
py
Python
tensorlayer/db.py
thangvubk/tensorlayer
fcf7bb2f14caf6e1336b54b772c5227587b5f51d
[ "Apache-2.0" ]
4
2018-05-14T09:00:33.000Z
2021-05-14T08:11:54.000Z
tools/TF2CaffeModel/itl/db.py
nihui/FeatherCNN
2805f371bd8f33ef742cc9523979f29295d926fb
[ "Apache-2.0" ]
null
null
null
tools/TF2CaffeModel/itl/db.py
nihui/FeatherCNN
2805f371bd8f33ef742cc9523979f29295d926fb
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import inspect import pickle import time import uuid from datetime import datetime import gridfs import pymongo def AutoFill(func): def func_wrapper(self, *args, **kwargs): d = inspect.getcallargs(func, self, *args, **kwargs) d['args'].update({"studyI...
29.673246
114
0.539798
332a653dfe1d5dcfa3c04a9aae18306414470f14
1,438
py
Python
examples/terminal_example.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
1
2016-05-21T21:26:15.000Z
2016-05-21T21:26:15.000Z
examples/terminal_example.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
examples/terminal_example.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
from chatterbot import ChatBot # Create a new instance of a ChatBot bot = ChatBot("Terminal", storage_adapter="chatterbot.adapters.storage.JsonDatabaseAdapter", logic_adapters=[ "chatterbot.adapters.logic.EvaluateMathematically", "chatterbot.adapters.logic.TimeLogicAdapter", "chatterbo...
31.26087
80
0.687065
332a7ad11225b1272400408f43c5419401862455
2,575
py
Python
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import pytest from ocs_ci.framework import config from ocs_ci.framework.pytest_customization.marks import ( polarion_id, pre_upgrade, skipif_aws_i3, skipif_bm, skipif_external_mode, ) from ocs_ci.framework.testlib import ( ignore_leftovers, ManageTest, skipif_ocs_version, tier1, ...
27.393617
81
0.730485
332aaf8f6f859a1e88f09693c80cb347825a6b5e
35,603
py
Python
ukds/data_dictionary.py
building-energy/ukds
fd7a4ae9df053740c884e6c0075412b080affb14
[ "MIT" ]
2
2020-04-24T16:00:29.000Z
2021-04-28T10:58:46.000Z
ukds/data_dictionary.py
building-energy/ukds
fd7a4ae9df053740c884e6c0075412b080affb14
[ "MIT" ]
null
null
null
ukds/data_dictionary.py
building-energy/ukds
fd7a4ae9df053740c884e6c0075412b080affb14
[ "MIT" ]
1
2020-04-24T16:00:30.000Z
2020-04-24T16:00:30.000Z
# -*- coding: utf-8 -*- #import rdflib #from rdflib.namespace import RDF import os import fairly class DataDictionary(): """A class for reading a UK Data Service .rtf data dictionary file """ def __init__(self,fp=None): """ Arguments: fp (str): a filepath to a UK...
38.825518
151
0.47937
332ab1b0b46f503d986883c75b23f4dbd077f32d
325
py
Python
problems/1470_shuffle-the-array.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/1470_shuffle-the-array.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/1470_shuffle-the-array.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
class Solution: def shuffle(self, nums: List[int], n: int) -> List[int]: ret = [] l = 0 for i in range(len(nums)): if i%2 == 0: ret.append(nums[l]) l += n else: ret.append(nums[l]) l -= n-1 return...
25
60
0.378462
332ae5297e09a0e0cf2e297c31b1c879b1193688
6,421
py
Python
src/functionsUser.py
GabZech/dsa-room-booking
3549a69a77d70800372f24a0902d81186ddca78d
[ "MIT" ]
null
null
null
src/functionsUser.py
GabZech/dsa-room-booking
3549a69a77d70800372f24a0902d81186ddca78d
[ "MIT" ]
null
null
null
src/functionsUser.py
GabZech/dsa-room-booking
3549a69a77d70800372f24a0902d81186ddca78d
[ "MIT" ]
1
2022-01-08T11:05:26.000Z
2022-01-08T11:05:26.000Z
import re from datetime import datetime ########################################################## ########## FUNCTIONS TO PROMPT USER INFORMATION ########## def askStudentName(): """ This function asks the user to provide their first and last name, separated by a space and in alphabetic letters only. It...
24.984436
166
0.553029
332b1cc867d6387052430db515d91cee25f66a8c
3,755
py
Python
main.py
laurentalacoque/picosleep
91c90d4836e21040fe62c0f8dbce1b4250048fe1
[ "CC0-1.0" ]
null
null
null
main.py
laurentalacoque/picosleep
91c90d4836e21040fe62c0f8dbce1b4250048fe1
[ "CC0-1.0" ]
null
null
null
main.py
laurentalacoque/picosleep
91c90d4836e21040fe62c0f8dbce1b4250048fe1
[ "CC0-1.0" ]
null
null
null
""" A 'breathing-led' program to help fall asleep (c) Laurent Alacoque June 2021 """ #Breathing led program comparable to the "dowdow" from pulseled import Led,LedPack import time from random import randrange import math # Parameters for the breathing experiment BREATHING_FREQ = (11, 5) #11 breathing/mn at sta...
35.093458
135
0.618375
332b210851ed6a85214994a3fcf16d39b7869b44
3,249
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
47.779412
130
0.701754
332b4644c2a975b91159b103feaaaa09fabc1bdf
19,269
py
Python
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/common_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/common_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/common_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/proto/devtools/clouderrorreporting/v1beta1/common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _m...
43.993151
1,925
0.765842
332b64936f85ffde1f1e0f010ff16eb4d62c7c2e
4,714
py
Python
reblob/__init__.py
PlaidWeb/reblob
20206bfc7ee77e440bb1c9621b17d780b96d296f
[ "MIT" ]
2
2019-04-28T09:53:20.000Z
2019-04-30T15:45:51.000Z
reblob/__init__.py
PlaidWeb/reblob
20206bfc7ee77e440bb1c9621b17d780b96d296f
[ "MIT" ]
8
2019-04-28T09:10:33.000Z
2019-05-23T18:24:21.000Z
reblob/__init__.py
PlaidWeb/reblob
20206bfc7ee77e440bb1c9621b17d780b96d296f
[ "MIT" ]
null
null
null
""" reblob functions """ import urllib.parse import logging from bs4 import BeautifulSoup import requests import mf2py import pypandoc from . import dom_extract LOGGER = logging.getLogger('reblob') def _rewrite_srcset(srcset, base_url): parts = srcset.split(',') out_parts = [] for part in parts: ...
28.059524
77
0.601188
332b69fa9ecdfed03d714386f1e7fc5bcb5036f0
2,462
py
Python
test/unit/test/test_simple_workflow_testing.py
boto/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
13
2016-06-15T06:10:57.000Z
2021-10-30T03:52:28.000Z
test/unit/test/test_simple_workflow_testing.py
DalavanCloud/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
11
2016-09-15T01:48:08.000Z
2019-01-09T06:11:44.000Z
test/unit/test/test_simple_workflow_testing.py
DalavanCloud/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
16
2016-06-05T03:42:04.000Z
2022-03-01T17:43:14.000Z
import pytest from mock import patch from botoflow import WorkflowDefinition, execute, activities, activity, return_, Future, coroutine from botoflow.test.workflow_testing_context import WorkflowTestingContext @activities(task_priority=100, schedule_to_start_timeout=60, start_to_close_timeout...
31.564103
123
0.694557
332b8489a5428be1cca01028b3d740b6e79e60dd
2,631
py
Python
docs/conf.py
Syfaro/python-chat-archive
35e6aa3ae2100eccb263af95a79aba9b3b1b131c
[ "MIT" ]
1
2021-07-13T17:48:34.000Z
2021-07-13T17:48:34.000Z
docs/conf.py
Syfaro/python-chat-archive
35e6aa3ae2100eccb263af95a79aba9b3b1b131c
[ "MIT" ]
null
null
null
docs/conf.py
Syfaro/python-chat-archive
35e6aa3ae2100eccb263af95a79aba9b3b1b131c
[ "MIT" ]
null
null
null
# Easy to use offline chat archive. # # Author: Peter Odding <peter@peterodding.com> # Last Change: March 27, 2020 # URL: https://github.com/xolox/python-chat-archive """Sphinx documentation configuration for the `chat-archive` project.""" # -- General configuration ---------------------------------------------------...
32.8875
82
0.702395
332bc948b0c48b304ab84739413d357bea18e312
11,279
py
Python
faster-rcnn-clearly/trainval.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
2
2018-04-23T02:59:49.000Z
2019-03-12T13:47:21.000Z
faster-rcnn-clearly/trainval.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
null
null
null
faster-rcnn-clearly/trainval.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
null
null
null
# @Time : 2018/3/27 8:42 # @File : trainval.py.py # @Author : Sky chen # @Email : dzhchxk@126.com # @Personal homepage : https://coderskychen.cn # -------------------------------------------------------- # Pytorch multi-GPU Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Writ...
38.494881
217
0.58303
332bca729efa2c972ee265a7e61cde9c3b6c16a1
2,436
py
Python
py/desimeter/log.py
julienguy/desimeter
9dd40251b0c483b525a952051a73587ac9180e8a
[ "BSD-3-Clause" ]
1
2022-01-25T00:18:55.000Z
2022-01-25T00:18:55.000Z
py/desimeter/log.py
desihub/desimeter
e575f22c8820d4f98a6715ad7574130a6d11b09b
[ "BSD-3-Clause" ]
124
2019-12-30T20:46:43.000Z
2021-12-09T21:33:57.000Z
py/desimeter/log.py
julienguy/desimeter
9dd40251b0c483b525a952051a73587ac9180e8a
[ "BSD-3-Clause" ]
5
2020-01-17T16:51:11.000Z
2020-07-27T09:34:46.000Z
import os import logging #- subset of desiutil.log.get_logger, to avoid desiutil dependency _loggers = dict() def get_logger(level=None, path=None, timestamps=False): '''Returns a logger, which can be used like logger.info('some message') etc. INPUTS: level ... None --> use environment variable ...
32.918919
119
0.604269
332bd8128da5b9076de0e35fe2b7c6003f511dd5
3,526
py
Python
scripts/libAnt/drivers/driver.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
1
2020-11-24T14:13:52.000Z
2020-11-24T14:13:52.000Z
scripts/libAnt/drivers/driver.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
null
null
null
scripts/libAnt/drivers/driver.py
arsakhar/FitViz
49bcfa74db6a023e2032c3662dc92ab27b554746
[ "MIT" ]
null
null
null
import time from abc import abstractmethod from queue import Empty from threading import Lock from scripts.libAnt.constants import MESSAGE_TX_SYNC from scripts.libAnt.loggers.logger import Logger from scripts.libAnt.message import Message class DriverException(Exception): pass class Driver: """ The dri...
26.916031
107
0.527794
332bd8f1f99526a815ea405aadcd5acbafb7ac1f
1,568
py
Python
spoty/commands/duplicates_commands/get_unique_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
2
2022-02-01T16:49:32.000Z
2022-03-02T18:30:31.000Z
spoty/commands/duplicates_commands/get_unique_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
spoty/commands/duplicates_commands/get_unique_group.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
from spoty.commands.first_list_commands import \ count_command, \ delete_command, \ copy_command, \ move_command, \ export_command, \ import_deezer_command, \ import_spotify_command, \ sync_spotify_command, \ print_command, \ create_m3u8_command from spoty.utils import SpotyConte...
32.666667
92
0.774872
332bffa576d1b90ff9efa5e4767f1871fb240757
471
py
Python
MFAEngine/apps/api/migrations/0007_tokenconfig_secret_tag.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/api/migrations/0007_tokenconfig_secret_tag.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/api/migrations/0007_tokenconfig_secret_tag.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-01 22:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0006_alter_backupcode_options'), ] operations = [ migrations.AddField( model_name='tokenconfig', name='secret...
23.55
90
0.617834
332c0007ce899475dd1372188d7438cb8fd94b92
14,829
py
Python
vilbert_beta/vilbert/datasets/retreival_dataset.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
19
2021-09-04T16:49:57.000Z
2022-01-07T08:49:20.000Z
vilbert_beta/vilbert/datasets/retreival_dataset.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
12
2021-07-28T04:32:32.000Z
2022-01-05T05:53:27.000Z
vilbert_beta/vilbert/datasets/retreival_dataset.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
7
2021-07-23T12:55:35.000Z
2022-01-24T07:36:27.000Z
import json from typing import Any, Dict, List import random import os import torch from torch.utils.data import Dataset import numpy as np import _pickle as cPickle from pytorch_pretrained_bert.tokenization import BertTokenizer from ._image_features_reader import ImageFeaturesH5Reader import jsonlines import sys imp...
37.637056
127
0.623373
332c1b157a0698497ca5e431dfe1e5cf23da48f9
35,818
py
Python
web/client/codechecker_client/cmd/store.py
ferkulat/codechecker
4be1ecad9249470171a623feeacf17da83858fce
[ "Apache-2.0" ]
1,601
2015-07-22T20:01:32.000Z
2022-03-31T03:04:36.000Z
web/client/codechecker_client/cmd/store.py
ferkulat/codechecker
4be1ecad9249470171a623feeacf17da83858fce
[ "Apache-2.0" ]
2,056
2015-07-20T09:39:25.000Z
2022-03-31T10:18:08.000Z
web/client/codechecker_client/cmd/store.py
ferkulat/codechecker
4be1ecad9249470171a623feeacf17da83858fce
[ "Apache-2.0" ]
288
2015-07-15T18:57:18.000Z
2022-03-30T13:40:13.000Z
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
37.117098
79
0.588643
332c2b179abc5c59271ccfb3682c2577508b2dba
1,804
py
Python
h/services/group_update.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
h/services/group_update.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/services/group_update.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from sqlalchemy.exc import SQLAlchemyError from h.services.exceptions import ValidationError, ConflictError class GroupUpdateService: def __init__(self, session): """ Create a new GroupUpdateService :param session: the SQL...
29.096774
93
0.590355
332c308b1a8b5cbeabcae638355d7d48a1ce8c35
2,743
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
44.241935
94
0.797667
332c42ce3093cfd1aa4b11dd07eb0c6228bab564
38
py
Python
src/pyshopify/__init__.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
src/pyshopify/__init__.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
src/pyshopify/__init__.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
""""Shopify Orders API Python App."""
19
37
0.657895
332c4e48277b2dc89f3eceb6909cdd4f251f250e
6,407
py
Python
tpdataset/CV/celeba.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
3
2021-07-03T17:27:44.000Z
2021-09-26T20:48:19.000Z
tpdataset/CV/celeba.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
null
null
null
tpdataset/CV/celeba.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
1
2022-03-08T08:54:03.000Z
2022-03-08T08:54:03.000Z
from tpdataset import RawDataSet, DataDownloader from torchvision import datasets from torchvision import transforms from torch.utils.data import DataLoader from pyctlib import vector, path, fuzzy_obj import math import torch from ..download_googledrive import download_file_from_google_drive from functools import par...
49.284615
275
0.682847
332c546fe2c820be30836439173da53231692273
55,561
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_08_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_08_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_08_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.616585
542
0.67182
332c81307f5ad22d9359462d7e928a1ca818db0a
1,528
py
Python
sentence_transformers/models/DocumentEmbeddingGRU.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/models/DocumentEmbeddingGRU.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/models/DocumentEmbeddingGRU.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from sentence_transformers.models.DocumentPooling import DocumentPooling class DocumentEmbeddingGRU(nn.Module): def __init__(self, input_size=768, hidden_size=384, num_layers=2, dropout=0.3, use_attention=True): super(DocumentEmbeddingGRU, self).__init__() sel...
40.210526
107
0.664267
332cb23d36399ff4b80ed6ac0df7f0e18045a56b
875
py
Python
linter.py
kevinsperrine/SublimeLinter-phpcbf
2c8367379947bf4a54f3face2fc427ec0cb88118
[ "MIT" ]
1
2019-01-20T17:48:01.000Z
2019-01-20T17:48:01.000Z
linter.py
kevinsperrine/SublimeLinter-phpcbf
2c8367379947bf4a54f3face2fc427ec0cb88118
[ "MIT" ]
2
2017-06-10T08:37:06.000Z
2021-05-31T14:29:09.000Z
linter.py
kevinsperrine/SublimeLinter-phpcbf
2c8367379947bf4a54f3face2fc427ec0cb88118
[ "MIT" ]
null
null
null
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Dmitry Tsoy # Copyright (c) 2013 Dmitry Tsoy # # Updated by Kevin Perrine # Copyyright (c) 2017 Kevin Perrine # # License: MIT # """This module exports the Phpcbf plugin class.""" from SublimeLinter.lint import Lint...
20.833333
73
0.612571
332cbf43f42b011bf9ac6c66cee529f079934f1f
5,012
py
Python
augmentations.py
lisenbuaa/RRL
5db0d753486de1518af1077c6ef2121da41486f8
[ "BSD-3-Clause" ]
4
2021-11-26T09:15:00.000Z
2022-01-11T06:29:57.000Z
augmentations.py
lisenbuaa/RRL
5db0d753486de1518af1077c6ef2121da41486f8
[ "BSD-3-Clause" ]
null
null
null
augmentations.py
lisenbuaa/RRL
5db0d753486de1518af1077c6ef2121da41486f8
[ "BSD-3-Clause" ]
3
2021-12-15T16:12:44.000Z
2022-03-14T01:31:58.000Z
"""Base augmentations operators.""" import numpy as np from PIL import Image, ImageOps, ImageEnhance import torch # ImageNet code should change this value IMAGE_SIZE = 32 def int_parameter(level, maxval): """Helper function to scale `val` between 0 and maxval . Args: level: Level of the operation that will...
29.309942
79
0.681365
332cfe36c304efb6ff647605482f644458f6f5fa
220,886
py
Python
nova/db/sqlalchemy/api.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/api.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/api.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file...
36.300082
79
0.606535
332d144dfd15812b2d491ed1f9ee0217eb18270b
520
py
Python
molecules/__init__.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
molecules/__init__.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
molecules/__init__.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
import glob import os #Unfortunately, python does everything relative to the users cwd #this allows for the dynamic importing of all files in this directory molecule_dir = os.path.dirname(__file__) molecule_paths = glob.glob(os.path.join(molecule_dir,'[!_]*.py')) molecule_files = map(os.path.basename,molecule_paths) m...
32.5
69
0.751923
332d17682fa2cf4afa55129f31c9f21d7d89fc85
3,125
py
Python
test/arthash/util/hasher_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
2
2016-05-26T19:57:40.000Z
2018-09-18T04:10:08.000Z
test/arthash/util/hasher_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
12
2018-06-23T12:07:42.000Z
2018-07-21T14:44:42.000Z
test/arthash/util/hasher_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
1
2016-05-26T21:08:08.000Z
2016-05-26T21:08:08.000Z
import hashlib, os, unittest from arthash.util import hasher from unittest import mock class HasherTest(unittest.TestCase): maxDiff = 10000 def test_simple(self): h1 = hasher.hasher(BASE_DATA, 10) self.assertEqual(h1, DATA_HASH) def test_chunksize(self): h0 = hasher.hasher(BASE_D...
29.761905
80
0.60064
332d3031ce70efb03b5a5c2b06aa4b7d4415d1c6
3,440
py
Python
FinanceAnalysisAlgoTrading/04-Visualization-Matplotlib-Pandas_01-Matplotlib_MatplotlibExercises .py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
FinanceAnalysisAlgoTrading/04-Visualization-Matplotlib-Pandas_01-Matplotlib_MatplotlibExercises .py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
FinanceAnalysisAlgoTrading/04-Visualization-Matplotlib-Pandas_01-Matplotlib_MatplotlibExercises .py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
#!/usr/bin/env python # coding: utf-8 # <a href='http://www.pieriandata.com'> <img src='../Pierian_Data_Logo.png' /></a> # # Matplotlib Exercises - Solutions # Welcome to the exercises for reviewing matplotlib! Take your time with these, Matplotlib can be tricky to understand at first. These are relatively simple plots...
44.102564
295
0.688663
332d58809d84b45e671bf2a0e20f5cd7efd85933
715
py
Python
examples/pylab_examples/broken_barh.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
examples/pylab_examples/broken_barh.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/broken_barh.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
""" Make a "broken" horizontal bar plot, ie one with gaps """ import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.broken_barh([(110, 30), (150, 10)] , (10, 9), facecolors='blue') ax.broken_barh([(10, 50), (100, 20), (130, 10)] , (20, 9), facecolors=('red', 'yellow', 'green')) ax.set_ylim(5,35)...
31.086957
67
0.61958
332d78334cb4d6ad5e5dfced11b060ee753c9173
931
py
Python
sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/operations/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/operations/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
42.318182
94
0.683136
332d8636fb44cfa77b2de08598aa4700cec52082
830
py
Python
antarest/study/storage/rawstudy/model/filesystem/root/input/load/load.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/load/load.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/load/load.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from antarest.study.storage.rawstudy.model.filesystem.common.area_matrix_list import ( AreaMatrixList, ) from antarest.study.storage.rawstudy.model.filesystem.common.prepro import ( InputPrepro, ) from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antares...
30.740741
86
0.679518
332da844c9927ade7218abbd104663df7f111693
3,997
py
Python
alipay/aop/api/request/AlipaySocialQuestionnareTaskQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipaySocialQuestionnareTaskQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipaySocialQuestionnareTaskQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipaySocialQuestionnareTaskQueryModel import AlipaySocialQuestionnareTaskQueryModel class AlipaySocialQuestionnareTaskQueryRequest(...
27.565517
148
0.646985
332db7c5bd2370e9c283d8abefef1851cf7e6a30
5,987
py
Python
diesel/console.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
diesel/console.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
diesel/console.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
"""A remote console into running diesel applications. With the functions and classes in this module you can open remote Python console sessions into your diesel applications. Technically, they aren't remote because it is hardcoded to run over localhost. But they are remote from a process point of view. An application...
32.895604
79
0.665776
332de31355d79bf4edd315ff4633b89bc142f379
1,023
py
Python
alipay/aop/api/response/AlipayIserviceItaskOrderRecordSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayIserviceItaskOrderRecordSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayIserviceItaskOrderRecordSyncResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.HomeApiResponse import HomeApiResponse class AlipayIserviceItaskOrderRecordSyncResponse(AlipayResponse): def __init__(self): super(AlipayIserviceItaskOrd...
34.1
115
0.744868
332deaa04f3aef7e3e253c1c9a800c8faf48eb69
3,130
py
Python
script/patch.py
LaudateCorpus1/libchromiumcontent
768f52340da3a67a68fb138683909b8b292f470c
[ "MIT" ]
315
2016-04-08T15:13:17.000Z
2022-02-04T04:52:08.000Z
script/patch.py
LaudateCorpus1/libchromiumcontent
768f52340da3a67a68fb138683909b8b292f470c
[ "MIT" ]
321
2016-04-05T23:44:26.000Z
2019-07-31T22:52:09.000Z
script/patch.py
LaudateCorpus1/libchromiumcontent
768f52340da3a67a68fb138683909b8b292f470c
[ "MIT" ]
155
2016-04-11T22:16:45.000Z
2022-02-04T04:52:16.000Z
#!/usr/bin/env python """ Usage: patch -h Use this script to selectively apply and reverse patches. It is mostly useful to fix patches during upgrades to a new Chromium version. """ import argparse import os import subprocess import sys import lib.git as git from lib.patches import Patch, PatchesList, PatchesConfig ...
35.168539
110
0.726198
332df10b7545c167814112bff626e3826922a10d
13,569
py
Python
scheduler.py
gnovis/scheduler
a1aa70aedae83f22a93411baace307f22407c1e7
[ "MIT" ]
2
2016-11-21T09:22:10.000Z
2018-02-12T12:56:59.000Z
scheduler.py
gnovis/scheduler
a1aa70aedae83f22a93411baace307f22407c1e7
[ "MIT" ]
1
2017-01-10T11:50:26.000Z
2017-01-11T09:49:12.000Z
scheduler.py
gnovis/scheduler
a1aa70aedae83f22a93411baace307f22407c1e7
[ "MIT" ]
2
2018-02-10T12:16:07.000Z
2018-06-06T09:46:44.000Z
#!/usr/bin/env python3 import argparse import json import time import subprocess import fcntl import errno import datetime import os import sys import signal import threading import shlex # CONSTANTS - Scheduler settings SEC_DELAY = 3 PATH = "/tmp/" GPU_INFO_FILE = os.path.join(PATH, "gpu_scheduler_info") DEFAULT_GPU...
33.421182
121
0.580883
332dfe3fda8e223a125fac4e76f76ef2355add37
12,432
py
Python
leo/commands/commanderHelpCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/commands/commanderHelpCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/commands/commanderHelpCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20171124073126.1: * @file ../commands/commanderHelpCommands.py #@@first '''Help commands that used to be defined in leoCommands.py''' import leo.core.leoGlobals as g import imp import os import sys import time #@+others #@+node:ekr.20031218072017.2939: ** c_help.abo...
38.37037
88
0.660071
332e0d10af44e65969840fd8769a65333eac980d
10,433
py
Python
botoflow/workflow_definition.py
boto/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
13
2016-06-15T06:10:57.000Z
2021-10-30T03:52:28.000Z
botoflow/workflow_definition.py
DalavanCloud/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
11
2016-09-15T01:48:08.000Z
2019-01-09T06:11:44.000Z
botoflow/workflow_definition.py
DalavanCloud/botoflow
49d8ed3bc9c57294504be82e933a051e1901b76e
[ "Apache-2.0" ]
16
2016-06-05T03:42:04.000Z
2022-03-01T17:43:14.000Z
# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0 # # or in the "license" file accompa...
40.281853
129
0.661267
332e1b29c5a6fd518222dbeab9669d2ff534f119
4,556
py
Python
datacube_tools.py
wafels/utils
369dd99d1ec15a079e1d734dce191ee70fc371ea
[ "BSD-3-Clause" ]
null
null
null
datacube_tools.py
wafels/utils
369dd99d1ec15a079e1d734dce191ee70fc371ea
[ "BSD-3-Clause" ]
null
null
null
datacube_tools.py
wafels/utils
369dd99d1ec15a079e1d734dce191ee70fc371ea
[ "BSD-3-Clause" ]
null
null
null
# # Tools that implement common datacube operations. The first argument in each # function is a numpy ndarray. Datacubes are not the same as mapcubes. # from copy import deepcopy import numpy as np # Decorator testing the input for these functions def datacube_input(func): def check(*args, **kwargs): if...
26.33526
100
0.650132
332e3726764d9fa6c9ef6cc2b7cc6d4447cd1ec8
18,644
py
Python
examples/seismic/skew_self_adjoint/test_wavesolver_iso.py
dabiged/devito
3cea137538b641bb1788fde65176ffcf82ab0990
[ "MIT" ]
null
null
null
examples/seismic/skew_self_adjoint/test_wavesolver_iso.py
dabiged/devito
3cea137538b641bb1788fde65176ffcf82ab0990
[ "MIT" ]
3
2020-11-30T05:38:22.000Z
2022-03-07T14:02:05.000Z
examples/seismic/skew_self_adjoint/test_wavesolver_iso.py
maelso/devito
d45932b08733ea7437e6a83fff816ee20d3fbada
[ "MIT" ]
null
null
null
from scipy.special import hankel2 import numpy as np import pytest from devito import Grid, Function, Eq, Operator, info from examples.seismic import RickerSource, TimeAxis, Model, AcquisitionGeometry from examples.seismic.skew_self_adjoint import (acoustic_ssa_setup, setup_w_over_q, ...
40.267819
89
0.556104
332e3da8855623562dd994e453d9d19024fe48c6
2,847
py
Python
setup.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
null
null
null
setup.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
null
null
null
setup.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
null
null
null
import io import os import re try: from setuptools import setup except ImportError: from distutils.core import setup # ============================================================================== # Utilities # ============================================================================== def read(path, en...
31.988764
88
0.610818
332e5ab97b908b6c5c11bf96f4f80b27bb85f78e
21,804
py
Python
salt/modules/boto_asg.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/modules/boto_asg.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/modules/boto_asg.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' Connection module for Amazon Autoscale Groups .. versionadded:: 2014.7.0 :configuration: This module accepts explicit autoscale credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from AWS...
39.215827
190
0.646303
332e7f912c81a129495ec17d7f8950d455b76934
118
py
Python
office365/sharepoint/tenant/administration/site_creation_default_storage_quota.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/tenant/administration/site_creation_default_storage_quota.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/tenant/administration/site_creation_default_storage_quota.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class SiteCreationDefaultStorageQuota(ClientValue): pass
19.666667
54
0.847458
332ebd5074b7b8eb578e62ec4b184c23b52ab235
5,189
py
Python
piccolo_api/csrf/middleware.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
piccolo_api/csrf/middleware.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
piccolo_api/csrf/middleware.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
from __future__ import annotations import typing as t import uuid from collections.abc import Sequence from starlette.datastructures import URL from starlette.middleware.base import ( BaseHTTPMiddleware, Request, RequestResponseEndpoint, ) from starlette.responses import Response from starlette.types impo...
33.694805
135
0.59472
332ec932aa09e0ccfc3a241d8fb0c0d4b91a7a65
2,855
py
Python
foxtail/appointments/signals/handlers.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
5
2021-01-17T22:55:24.000Z
2021-01-18T21:05:18.000Z
foxtail/appointments/signals/handlers.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
foxtail/appointments/signals/handlers.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
""" foxtail/appointments/signals/handlers.py """ # from django.core.mail import send_mail from django.db.models.signals import post_save from django.dispatch import receiver from mail_templated import send_mail from config.settings.base import APPS_DIR from foxtail.appointments.models import Appointment # from config...
43.257576
115
0.65359
332ed02a3efb8fc0e13e441367d2e9c06921e929
3,509
py
Python
bbcon.py
andreajessen/robot
e92d318d1e71994cb1c5c19e97bb27b89d23e22a
[ "MIT" ]
null
null
null
bbcon.py
andreajessen/robot
e92d318d1e71994cb1c5c19e97bb27b89d23e22a
[ "MIT" ]
null
null
null
bbcon.py
andreajessen/robot
e92d318d1e71994cb1c5c19e97bb27b89d23e22a
[ "MIT" ]
null
null
null
"""Higest-level class - require one instance""" from arbitrator import Arbitrator from behavior import * from camera_sensob import CameraSensob from irproximity_sensob import IRProximitySensob from motob import Motob from motors import Motors from reflectance_sensob import ReflectanceSensob from ultrasonic import Ultra...
32.794393
112
0.61385
332eda8eeec1a4f8e4f9bb2e6fb041583f32f3ed
7,264
py
Python
src/tools/dev/scaling/measure_mandelbulb.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/dev/scaling/measure_mandelbulb.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/dev/scaling/measure_mandelbulb.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os ############################################################################### # Program: measure_mandelbulb # # Purpose: This program makes an isosurface through mandelbulb data and # optionally a slice, saving a couple of images. From the resulting # timings file, we can determine how lo...
27.619772
86
0.608067
332ef4e3b2265893573da5802c1e22ca9e245a34
1,954
py
Python
tests/test_registry.py
leaprovenzano/dispatch-tools
c03b77d2bdbb4d90f00aa7406acac134d9f98898
[ "MIT" ]
null
null
null
tests/test_registry.py
leaprovenzano/dispatch-tools
c03b77d2bdbb4d90f00aa7406acac134d9f98898
[ "MIT" ]
null
null
null
tests/test_registry.py
leaprovenzano/dispatch-tools
c03b77d2bdbb4d90f00aa7406acac134d9f98898
[ "MIT" ]
null
null
null
from typing import Hashable, Callable import pytest from hypothesis import given, infer, assume from dispatchtools.registry import Registry from tests import strategies as st from tests.utils import dependency class TestRegistry: registry = None @dependency def test_init_registry(self): ...
28.735294
80
0.671955
332f1d286741c81b19e407090231e41e55186378
3,123
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/schema.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/schema.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/schema.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import logging from django.contrib.gis.db.models.fields import GeometryField from django.db.backends.mysql.schema import DatabaseSchemaEditor from django.db.utils import OperationalError logger = logging.getLogger('django.contrib.gis') class MySQLGISSchemaEditor(DatabaseSchemaEditor): sql_add_spatial_...
40.038462
97
0.603586
332f325a36ecc8f833d4fde06d188e717db3e54e
5,432
py
Python
audio/sample_error.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
3
2020-11-07T18:12:50.000Z
2021-06-11T22:56:09.000Z
audio/sample_error.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
audio/sample_error.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np import random import argparse from operator import itemgetter import multiprocessing as mp from tqdm import tqdm import os import librosa from transforms import scale_volume, shift sys.path.append('..') from util import str2bool, split, lmap # noqa: E402 sys.path.append('./GCommandsPytorc...
32.921212
100
0.607879
332f50cb621db365ac6bc543b006ed7df5e1a115
9,823
py
Python
scripts/Rsmith/run_shared_Array.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/Rsmith/run_shared_Array.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/Rsmith/run_shared_Array.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jul 28 17:13:14 2015 @author: hoseung """ import numpy as np def extract_halos_within(halos, ind_center, scale=1.0, Mcut=1e5): import numpy as np import utils.sampling as smp ''' Returns indices of halos within SCALE * Rvir of the central halo. def extra...
30.889937
117
0.573043
332f867ba6ca6c734af5c422bd77b1bba8978845
5,414
py
Python
mmcls/apis/train.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/apis/train.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/apis/train.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import random import warnings import numpy as np import torch from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import DistSamplerSeedHook, build_optimizer, build_runner from mmcls.core import DistOptimizerHook from mmcls.datasets impo...
33.627329
77
0.643886
332f9f2d17034dd4a0f5de8a37f59d025314109d
10,832
py
Python
examples/dell5k_edge_system_with_filter_iotcc.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
null
null
null
examples/dell5k_edge_system_with_filter_iotcc.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
null
null
null
examples/dell5k_edge_system_with_filter_iotcc.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------# # Copyright © 2015-2016 VMware, Inc. All Rights Reserved. # # # # Licensed under the BSD 2-Clause License (the “License...
50.616822
129
0.668852
332fd0dce90512ad4d4143fba01f1c4a202ed068
54,996
py
Python
test/unit/common/middleware/s3api/test_s3api.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/s3api/test_s3api.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/s3api/test_s3api.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011-2014 OpenStack Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
46.410127
79
0.568005
332fdf12ff13f996e60fdcf940fe505e799baa24
224
py
Python
simple_3dviz/renderables/__init__.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
simple_3dviz/renderables/__init__.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
simple_3dviz/renderables/__init__.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
"""Renderables represent objects that can be rendered in a scene.""" from .base import Renderable from .lines import Lines from .mesh import Mesh from .spherecloud import Spherecloud from .textured_mesh import TexturedMesh
28
68
0.808036
332fe88e535fa8cdb6b1f81fed185df26b7ce045
4,604
py
Python
superset/migrations/versions/3e1b21cd94a4_change_owner_to_m2m_relation_on_.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
18,621
2017-06-19T09:57:44.000Z
2021-01-05T06:28:21.000Z
superset/migrations/versions/3e1b21cd94a4_change_owner_to_m2m_relation_on_.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
9,043
2017-07-05T16:10:48.000Z
2021-01-05T17:58:01.000Z
superset/migrations/versions/3e1b21cd94a4_change_owner_to_m2m_relation_on_.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
5,527
2017-07-06T01:39:43.000Z
2021-01-05T06:01:11.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.415385
88
0.677889
333012af8e99a12130b8823dcd4f886ff57c0b06
4,473
py
Python
url2tree/url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
1
2019-09-20T01:54:28.000Z
2019-09-20T01:54:28.000Z
url2tree/url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
null
null
null
url2tree/url2tree.py
xodhx4/url2tree
9e5f8f6ed231ef991583b25c844088e9c4ee912c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main module.""" import re class UrlTreeNode(object): def __init__(self, name, isTerminal=False): self.children = [] self.value = 0 self.name = name self.isTerminal = isTerminal def __eq__(self, other): """UrlTreeNode is same when there name ...
30.428571
80
0.559133
33303bfb28a2533b91112d3f8d8c6b6358d22e99
3,617
py
Python
uima-ducc-examples/src/main/reliable/etc/keepalived/keepalived_evaluator.py
abrami/uima-ducc
bf3ed51b1d070761557f660ddc684f851d7b6061
[ "Apache-2.0" ]
8
2015-07-08T17:53:46.000Z
2021-11-10T19:00:35.000Z
uima-ducc-examples/src/main/reliable/etc/keepalived/keepalived_evaluator.py
abrami/uima-ducc
bf3ed51b1d070761557f660ddc684f851d7b6061
[ "Apache-2.0" ]
2
2021-08-25T15:57:48.000Z
2022-02-01T01:12:04.000Z
uima-ducc-examples/src/main/reliable/etc/keepalived/keepalived_evaluator.py
abrami/uima-ducc
bf3ed51b1d070761557f660ddc684f851d7b6061
[ "Apache-2.0" ]
21
2015-12-09T21:48:28.000Z
2021-11-10T19:00:23.000Z
#!/usr/bin/env python # ----------------------------------------------------------------------- # 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 li...
29.169355
95
0.576445
333040e0a02b994871e2927ad899fdc1b9567791
6,009
py
Python
sunpy/net/hek/tests/test_hek.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-07-02T13:01:42.000Z
2020-08-27T20:05:31.000Z
sunpy/net/hek/tests/test_hek.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/hek/tests/test_hek.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
import pytest from sunpy.net import attr, attrs, hek from sunpy.time import parse_time @pytest.fixture def foostrwrap(request): return hek.attrs._StringParamAttrWrapper("foo") @pytest.fixture @pytest.mark.remote_data def hek_client_creator(): startTime = '2011/08/09 07:23:56' endTime = '2011/08/09 12:4...
29.747525
108
0.639541
333058c6b858daf64007d7ddc62b4be09a284511
142
py
Python
battleforcastile/utils/display_boss.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
battleforcastile/utils/display_boss.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
1
2021-08-21T10:16:03.000Z
2021-08-21T10:16:03.000Z
battleforcastile/utils/display_boss.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
def display_boss(boss: dict) -> str: name = boss['meta']['name'] level = boss['stats']['level'] return f'{name} (Level: {level})'
28.4
37
0.577465
333067303e510c536160fa57f28d961fcfbae4b4
23,535
py
Python
twilio/rest/wireless/v1/sim/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/wireless/v1/sim/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/wireless/v1/sim/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
32.151639
92
0.606926
33306ae46a4ef95e26d0e80dfc4e8d888db62245
5,606
py
Python
typhoon/cli_helpers/status.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
1
2021-03-26T07:14:25.000Z
2021-03-26T07:14:25.000Z
typhoon/cli_helpers/status.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
typhoon/cli_helpers/status.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
import re from datetime import datetime from pathlib import Path from typing import List, Optional import yaml from termcolor import colored from typhoon.core.dags import DagDeployment, add_yaml_constructors from typhoon.core.glue import get_dag_filenames, get_dags_contents from typhoon.core.metadata_store_interface ...
45.577236
144
0.679094
33306ae77986285aef5a4ca878c83a2cdf319a5a
20,231
py
Python
brian2/spatialneuron/spatialneuron.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/spatialneuron/spatialneuron.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/spatialneuron/spatialneuron.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
''' Compartmental models. This module defines the SpatialNeuron class, which defines multicompartmental models. ''' from itertools import izip import weakref import sympy as sp from numpy import pi import numpy as np from brian2.core.variables import Variables from brian2.equations.equations import (Equations, PARAME...
44.858093
115
0.602195
33309ad57918c3bd47183a5e33bb66799abec568
1,820
py
Python
data_loader/preprocess.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
data_loader/preprocess.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
data_loader/preprocess.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def get_motion_bands(seq, k=3, show=False): """ org_seq : [batch_size, seq_len] k : number of motion bands to extract show : whether to display plot Returns [batch_size, k+2, seq_len] shaped array containing the extracted motion bands...
35
96
0.529121
3330db6c31a0fed875188e0e86bba92b7a11b112
2,467
py
Python
SoftLayer/CLI/virt/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/virt/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/virt/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
"""List virtual servers.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import columns as column_helper from SoftLayer.CLI import environment from SoftLayer.CLI import formatting from SoftLayer.CLI import helpers import click # pylint: disable=unnecessary-lambda COLUMN_MAP = {...
38.546875
78
0.618565
3331444315b6405816fe81364f897270f3325cc4
1,927
py
Python
src/test/testcases/testAbort.py
open-power/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
9
2017-03-21T08:34:24.000Z
2022-01-25T06:00:51.000Z
src/test/testcases/testAbort.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2016-11-04T00:46:43.000Z
2021-04-13T16:31:11.000Z
src/test/testcases/testAbort.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2017-03-24T11:52:56.000Z
2022-01-25T06:00:49.000Z
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/test/testcases/testAbort.py $ # # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2016,2019 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
27.528571
69
0.629995
33314a39948569c52e4f01e1052658c79cd3a12e
4,586
py
Python
experiments/ashvin/icml2020/hand/soft/sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/soft/sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/soft/sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.778523
77
0.573048
33314d11fe613ecbffce19b3743d2155cd43a2f3
59,208
py
Python
textnn/utils/encoding/test/test_text.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
1
2019-03-08T12:12:45.000Z
2019-03-08T12:12:45.000Z
textnn/utils/encoding/test/test_text.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
16
2019-02-14T11:51:30.000Z
2019-06-11T08:25:53.000Z
textnn/utils/encoding/test/test_text.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
null
null
null
from textnn.utils.encoding.text import * from pytest import approx, raises # texts from https://en.wikipedia.org/wiki/Python_(programming_language) corpus = [ "Python is an interpreted, high-level, general-purpose programming language.", "Created by Guido van Rossum and first released in 1991, Python has a d...
45.826625
127
0.673085
333150328f06991f2fae3618ae4db0582b970138
360
py
Python
mercury/__init__.py
eklz/mercury
4bc2a1a8ea3cef2b24ec94cd5f5b12df7e114f88
[ "MIT" ]
2
2019-11-29T07:52:34.000Z
2020-06-26T09:23:00.000Z
mercury/__init__.py
eklz/mercury
4bc2a1a8ea3cef2b24ec94cd5f5b12df7e114f88
[ "MIT" ]
null
null
null
mercury/__init__.py
eklz/mercury
4bc2a1a8ea3cef2b24ec94cd5f5b12df7e114f88
[ "MIT" ]
2
2020-06-26T09:23:07.000Z
2021-02-12T10:14:52.000Z
# ============================= """ Mercury - Python Package that contains a variety of functions to retrieve radiosounding ================================== Top-level package (:mod:`mercury`) ================================== .. currentmodule:: mercury """ from .mercury import station_list, mercury # __all__ = [s f...
27.692308
61
0.525
33315c104e5a5f70c90f737d86c3aab9659d5269
322
py
Python
tests/fake_ordereddict.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
null
null
null
tests/fake_ordereddict.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
4
2015-01-30T22:28:15.000Z
2019-10-03T05:29:27.000Z
tests/fake_ordereddict.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
1
2015-01-28T14:08:15.000Z
2015-01-28T14:08:15.000Z
# -*- coding: UTF-8 -*- try: from collections import OrderedDict as _OrderedDict except ImportError: from ordereddict import OrderedDict as _OrderedDict class OrderedDict(_OrderedDict): def __init__(self, *args, **kwargs): super(OrderedDict, self).__init__(*args, **kwargs) self._fake = Tru...
26.833333
58
0.701863
33316396a5e543edb064615de9d90315d568f661
234
py
Python
__init__.py
DavidLitwin/HillslopeLinearReservoir
7a403837adb8573003cc1fe34cd52fbd1c974d9b
[ "MIT" ]
null
null
null
__init__.py
DavidLitwin/HillslopeLinearReservoir
7a403837adb8573003cc1fe34cd52fbd1c974d9b
[ "MIT" ]
null
null
null
__init__.py
DavidLitwin/HillslopeLinearReservoir
7a403837adb8573003cc1fe34cd52fbd1c974d9b
[ "MIT" ]
null
null
null
from .hillslope_reservoir_model import HillslopeReservoirModel from .hillslope_reservoir_grid_funcs import calc_width_exponent, calc_z_eff, calc_res_constant from .simple_hillslope_reservoir_model import SimpleHillslopeReservoirModel
58.5
94
0.918803
3331817043b6b9c5a985cb10459e61a3b58ae5b3
6,025
py
Python
python/vineyard/__init__.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/vineyard/__init__.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/vineyard/__init__.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020-2021 Alibaba Group Holding Limited. # # 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/LI...
31.217617
95
0.695768
333182e9e00d1e4fd3da89afeee82f1572f2a8c1
643
py
Python
samples/sample-python-project/lambdas/api-handler/handler.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
1
2020-08-29T16:38:50.000Z
2020-08-29T16:38:50.000Z
samples/sample-python-project/lambdas/api-handler/handler.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
samples/sample-python-project/lambdas/api-handler/handler.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
import json import os import boto3 def lambda_handler(event, context): print('Incoming event: {}. Pushing to SQS'.format(event)) queue_name = os.environ['sqs_queue_name'] sqs_client = boto3.client('sqs') name_response = sqs_client.get_queue_url( QueueName=queue_name) message_body = jso...
21.433333
61
0.623639
3331993f8bfdc0269f85df4f9c817baca88d1b3f
929
py
Python
models/modules/prediction.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
29
2018-03-04T07:16:16.000Z
2021-01-25T08:09:26.000Z
models/modules/prediction.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
9
2018-04-23T03:51:42.000Z
2020-04-24T12:45:34.000Z
models/modules/prediction.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
7
2018-11-23T01:15:46.000Z
2020-03-30T06:24:53.000Z
#!/usr/bin/env python # encoding: utf-8 ''' @author: zhoujun @time: 2019/12/19 下午2:56 ''' from mxnet.gluon import nn, HybridBlock class CTC(HybridBlock): def __init__(self, n_class, **kwargs): super().__init__() self.fc = nn.Dense(units=n_class, flatten=False) def hybrid_forward(self, F, x, ...
26.542857
78
0.629709
3331ad894787e02f9a3927861f69dd435ce4ec5e
1,837
py
Python
zephyr-fm/message_model/add_fabric_component.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
zephyr-fm/message_model/add_fabric_component.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
zephyr-fm/message_model/add_fabric_component.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Hewlett Packard Enterprise Development LP # # 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, m...
45.925
80
0.709853
3331bd9bbcefd0175c79690a5ae7e709308a031e
390
py
Python
venv/Lib/site-packages/nbdime/diffing/seq_myers.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
2
2021-02-16T16:17:07.000Z
2021-11-08T20:27:13.000Z
venv/Lib/site-packages/nbdime/diffing/seq_myers.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/nbdime/diffing/seq_myers.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
4
2020-11-14T17:05:36.000Z
2020-11-16T18:44:54.000Z
# coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import unicode_literals import operator __all__ = ["diff_sequence_myers"] def diff_sequence_myers(A, B, compare=operator.__eq__): """Compute the diff of A and B using Myers' O(N...
24.375
67
0.746154
3331c06c57f4dcc4d995d3cc60b3cb7a786c6ec7
2,584
py
Python
main/models.py
Nyota254/under-the-hood
83acbb8419731b2c8d626c296ce0b47f560edb2f
[ "MIT" ]
null
null
null
main/models.py
Nyota254/under-the-hood
83acbb8419731b2c8d626c296ce0b47f560edb2f
[ "MIT" ]
null
null
null
main/models.py
Nyota254/under-the-hood
83acbb8419731b2c8d626c296ce0b47f560edb2f
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Car_Type(models.Model): ''' This class will hold the diffrent types of cars their are e.g(Toyota,Subaru,Audi) ''' car_type_logo = models.ImageField(upload_to="car_type_logos",default="default_logo.jpg") car_type_name = m...
37.449275
122
0.727941
33320a270eb2d183e2b647021b2e804275a483a0
1,600
py
Python
project/lint/analyzers/template_loaders.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/lint/analyzers/template_loaders.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/lint/analyzers/template_loaders.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-01-21T18:42:32.000Z
2015-01-21T18:42:32.000Z
import ast from .base import BaseAnalyzer, Result DESCRIPTION = """ ``{name}`` function has been deprecated in Django 1.2 and removed in 1.4. Use ``{propose}`` class instead. """ class TemplateLoadersVisitor(ast.NodeVisitor): def __init__(self): self.found = [] removed_items = { 'django.t...
32.653061
88
0.638125
33326eded1b6053fd3f2da3eb96b4815612c8287
3,213
py
Python
src/auditlog/middleware.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
null
null
null
src/auditlog/middleware.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
null
null
null
src/auditlog/middleware.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
1
2021-10-17T15:38:30.000Z
2021-10-17T15:38:30.000Z
from __future__ import unicode_literals import threading import time from django.conf import settings from django.db.models.signals import pre_save from functools import partial as curry from django.apps import apps from auditlog.models import LogEntry # Use MiddlewareMixin when present (Django >= 1.10) try: fro...
38.710843
119
0.681917
33328dcb13c07daee015d11ca21b9d8a7cbf68d9
13,591
py
Python
src/ProtoMessage/scripts/rebuild_ProtoMessage.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/ProtoMessage/scripts/rebuild_ProtoMessage.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/ProtoMessage/scripts/rebuild_ProtoMessage.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.176966
195
0.595983
3332a23aea4da67c8567678892801efa345e92b0
2,979
py
Python
cesiumpy/constants.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/constants.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/constants.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals from cesiumpy.base import _CesiumEnum class VerticalOrigin(_CesiumEnum): BOTTOM = 'Cesium.VerticalOrigin.BOTTOM' CENTER = 'Cesium.VerticalOrigin.CENTER' TOP = 'Cesium.VerticalOrigin.TOP' class HorizontalOrigin(_CesiumEnum):...
31.357895
92
0.726418
3332b09a2e8d6483ebdad57fa2ea271c4e24519e
5,058
py
Python
code/processing/seq/20211201_grouped_mapping/demultiplex_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
null
null
null
code/processing/seq/20211201_grouped_mapping/demultiplex_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
1
2020-11-02T19:07:52.000Z
2020-11-02T19:07:52.000Z
code/processing/seq/20211201_grouped_mapping/demultiplex_seq.py
RPGroup-PBoC/rnaseq_barcode
f90bdd7388d08b8dd1eeaaaedd75040580af5f10
[ "MIT" ]
null
null
null
#%% import os import itertools import subprocess import glob import git #%% # Date for sequencing run DATE = 20211201 # Description for project. Must be something that shortly summarizes # the reason for this sequencing run. It MUST end with / DESCRIPTION = '_grouped_mapping/' # Conda environment name where qiime2 i...
34.643836
86
0.736655