hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
fa6303a3822f7cb9e59443140aabf094fe45f975
1,704
py
Python
Python_3/Filtering/ex_gradient3.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
22
2015-09-24T10:41:05.000Z
2022-01-02T21:43:48.000Z
Python_3/Filtering/ex_gradient3.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
5
2016-11-02T10:30:56.000Z
2018-07-02T12:54:28.000Z
Python_3/Filtering/ex_gradient3.py
waynegm/OpendTect-External-Attributes
7caaf69ee71cc3375fcd9e4d656c669ca01dc469
[ "MIT" ]
8
2017-03-18T17:17:44.000Z
2021-04-02T09:43:35.000Z
# Compute Gradients # # Prewitt External Attribute # import sys,os import numpy as np sys.path.insert(0, os.path.join(sys.path[0], '..')) import extattrib as xa import extlib as xl xa.params = { 'Inputs': ['Input'], 'Output' : ['Average Gradient', 'In-line gradient', 'Cross-line gradient', 'Z gradient'], ...
36.255319
93
0.551643
709d808baa543aedaf6ab8731e147601eada74ac
9,636
py
Python
newyorker/cartoons.py
Demonofthe2ndkind/new-yorker
9ed280adefbf2fd86d0aa90016e9a641e5138ea2
[ "Apache-2.0" ]
null
null
null
newyorker/cartoons.py
Demonofthe2ndkind/new-yorker
9ed280adefbf2fd86d0aa90016e9a641e5138ea2
[ "Apache-2.0" ]
null
null
null
newyorker/cartoons.py
Demonofthe2ndkind/new-yorker
9ed280adefbf2fd86d0aa90016e9a641e5138ea2
[ "Apache-2.0" ]
null
null
null
""" Created on Jun 10, 2018 Updated on Aud 26, 2020 @author: Demon of the Second Kind """ import ast import bs4 import errno import itertools import json import os import requests import sys import uuid from optparse import OptionParser from urllib.parse import quote from urllib.parse import urlencode from ur...
39.818182
153
0.602325
ac2d3006eeb638473b8c0a1fbba3a42d11bfc3bd
3,602
py
Python
tao/setup.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
1
2022-03-31T12:35:53.000Z
2022-03-31T12:35:53.000Z
tao/setup.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
null
null
null
tao/setup.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2021 The BladeDISC 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...
31.051724
81
0.700999
f219cf676f80550d75b7d9c285270b2f72c1d3aa
837
py
Python
astm/compat.py
Iskander1b/python-astm
606a77407e59c2f2dd12d65a7b2d2e3c141ad8d9
[ "BSD-3-Clause" ]
38
2015-06-11T06:43:02.000Z
2022-03-01T18:21:07.000Z
astm/compat.py
Iskander1b/python-astm
606a77407e59c2f2dd12d65a7b2d2e3c141ad8d9
[ "BSD-3-Clause" ]
7
2016-08-12T10:16:34.000Z
2021-02-11T15:43:34.000Z
astm/compat.py
Iskander1b/python-astm
606a77407e59c2f2dd12d65a7b2d2e3c141ad8d9
[ "BSD-3-Clause" ]
39
2015-08-10T16:49:33.000Z
2021-12-26T10:27:07.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # import sys version = '.'.join(map(str, sys.version_info[:2])) if version >= '3.0': basestring = (...
23.25
67
0.603345
4e1552fd85b3ec742b7ffec5f08009449b1dc113
4,102
py
Python
configs/fcos/ddb_v4_plus_r50_caffe_fpn_gn_1x_2gpu_nvidia.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
configs/fcos/ddb_v4_plus_r50_caffe_fpn_gn_1x_2gpu_nvidia.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
configs/fcos/ddb_v4_plus_r50_caffe_fpn_gn_1x_2gpu_nvidia.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='FCOS', pretrained='open-mmlab://resnet50_caffe', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=False), style='caffe'), ne...
29.724638
75
0.61921
678d50621a4270b10c4733f00147f0beb450649d
675
py
Python
ai_toolkit/metrics/accuracy.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
7
2020-04-07T06:10:29.000Z
2021-10-30T06:31:46.000Z
ai_toolkit/metrics/accuracy.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
2
2021-09-08T01:48:49.000Z
2022-01-16T19:31:35.000Z
ai_toolkit/metrics/accuracy.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
2
2021-04-27T22:45:14.000Z
2021-07-16T06:40:30.000Z
from types import SimpleNamespace import torch from .metric import Metric class Accuracy(Metric): def __repr__(self) -> str: return f"{self.name}: {100. * self.value:.2f}%" @staticmethod def calculate_accuracy(output: torch.Tensor, target: torch.Tensor) -> float: return (output.argmax(1...
29.347826
80
0.671111
cac32a262c0ead70242f1a38c8719de4b92ce580
2,311
py
Python
TeamProject/src/BabyStepGiantStep.py
cboyer2016/CSE4081TeamProject
357b182d9cb1be62e03600211b75f36b88dbd964
[ "MIT" ]
1
2021-09-25T20:42:03.000Z
2021-09-25T20:42:03.000Z
TeamProject/src/BabyStepGiantStep.py
cboyer2016/CSE4081TeamProject
357b182d9cb1be62e03600211b75f36b88dbd964
[ "MIT" ]
null
null
null
TeamProject/src/BabyStepGiantStep.py
cboyer2016/CSE4081TeamProject
357b182d9cb1be62e03600211b75f36b88dbd964
[ "MIT" ]
null
null
null
######################################################################################################################################## # Author: Chad Boyer (cboyer2016@my.fit.edu), Connor Roth (croth2016@my.fit.edu), & Alan Guzman (aguzman2015@my.fit.edu) # Course: CSE 4081 # Team Project: Discrete Logarithm Analy...
67.970588
137
0.442666
58c8222ec52dcdbff7ddda04911f6703a2bdedc7
1,859
py
Python
PPOCRLabel/libs/constants.py
ninetailskim/PaddleOCR
5586dbf42511517d00dc541070e0c5e094587c72
[ "Apache-2.0" ]
20,401
2020-05-08T10:56:13.000Z
2022-03-31T23:34:38.000Z
PPOCRLabel/libs/constants.py
ninetailskim/PaddleOCR
5586dbf42511517d00dc541070e0c5e094587c72
[ "Apache-2.0" ]
4,988
2020-05-10T08:19:41.000Z
2022-03-31T17:57:11.000Z
PPOCRLabel/libs/constants.py
ninetailskim/PaddleOCR
5586dbf42511517d00dc541070e0c5e094587c72
[ "Apache-2.0" ]
4,479
2020-05-08T11:12:13.000Z
2022-03-31T11:55:28.000Z
# Copyright (c) <2015-Present> Tzutalin # Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, # William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Soft...
58.09375
119
0.80043
f8d689923722b57ce9eac98eddaaed00bfb0f209
1,630
py
Python
main.py
MathisLeRoyNivot/stock-price-prediction
359dc5a7cd42ced0739fe76a8ae90a4d63f46cf7
[ "Apache-2.0" ]
null
null
null
main.py
MathisLeRoyNivot/stock-price-prediction
359dc5a7cd42ced0739fe76a8ae90a4d63f46cf7
[ "Apache-2.0" ]
null
null
null
main.py
MathisLeRoyNivot/stock-price-prediction
359dc5a7cd42ced0739fe76a8ae90a4d63f46cf7
[ "Apache-2.0" ]
null
null
null
import streamlit as st from datetime import date import yfinance as yf from fbprophet import Prophet from fbprophet.plot import plot_plotly from plotly import graph_objs as go START_DATE = "2011-01-01" TODAY_DATE = date.today().strftime("%Y-%m-%d") st.title("Stock Price Prediction App") stocks = ("BTC-USD", "AAPL", ...
24.328358
84
0.725153
56baf471dc14838ab9f891c0a84085587c4b8e35
1,692
py
Python
python_scripts/server.py
endepointe/life_generator
387e791ec2b1cd7d7ac3db982e70b7c0fffb6df5
[ "MIT" ]
null
null
null
python_scripts/server.py
endepointe/life_generator
387e791ec2b1cd7d7ac3db982e70b7c0fffb6df5
[ "MIT" ]
null
null
null
python_scripts/server.py
endepointe/life_generator
387e791ec2b1cd7d7ac3db982e70b7c0fffb6df5
[ "MIT" ]
null
null
null
import sys import http.server import socketserver import json # import lab1 import connect_socket # with assistence with python server creation (completely new to it) # https://wiki.python.org/moin/BaseHttpServer # https://docs.python.org/3/library/socketserver.html#socketserver-tcpserver-example HOST = '' PORT = int...
31.333333
116
0.710402
e1be081350f3b1edfa77259c82124580e534d776
675
py
Python
clean.py
Deepayan137/spell-check
31026a094fdd2713ae93eda4e7df09cc83e32f75
[ "MIT" ]
null
null
null
clean.py
Deepayan137/spell-check
31026a094fdd2713ae93eda4e7df09cc83e32f75
[ "MIT" ]
null
null
null
clean.py
Deepayan137/spell-check
31026a094fdd2713ae93eda4e7df09cc83e32f75
[ "MIT" ]
1
2021-07-28T21:36:39.000Z
2021-07-28T21:36:39.000Z
import re def clean_text(text): '''Remove unwanted characters and extra spaces from the text''' text = re.sub(r'\n', ' ', text) text = re.sub(r'[{}@_*>()\\#%+=\[\]]','', text) text = re.sub('a0','', text) text = re.sub('\'92t','\'t', text) text = re.sub('\'92s','\'s', text) text = re.sub('...
33.75
67
0.460741
2bdd275ce8229355e21678b997c47d63b5395936
284
py
Python
design_patterns/oop/vehicles/car.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
design_patterns/oop/vehicles/car.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
design_patterns/oop/vehicles/car.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from ObjectOriented.Vehicles import Vehicle class Car(Vehicle): """ Car class which is a subclass of *Vehicle* """ wheels = 4 no_of_seats = 4 def vehicle_type(self): # noinspection PyCompatibility super().vehicle_type() return "Car"
18.933333
46
0.626761
286862451b07f2620d975a35f03ec578d81d5d8b
4,069
py
Python
src/fetchcode/vcs/pip/_internal/vcs/bazaar.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
7
2019-10-04T07:27:41.000Z
2021-06-07T04:39:18.000Z
src/fetchcode/vcs/pip/_internal/vcs/bazaar.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
64
2019-10-07T12:40:56.000Z
2022-02-17T18:44:37.000Z
src/fetchcode/vcs/pip/_internal/vcs/bazaar.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
16
2019-10-04T08:48:12.000Z
2021-06-11T01:22:56.000Z
# The following comment should be removed at some point in the future. # mypy: disallow-untyped-defs=False from __future__ import absolute_import import logging import os from fetchcode.vcs.pip._vendor.six.moves.urllib import parse as urllib_parse from fetchcode.vcs.pip._internal.utils.misc import display_path, rmt...
33.628099
83
0.626444
c9304b4b1baa5b11b7777617c565659fe9b445b8
22
py
Python
Dados/Events/Formato/__init__.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
Dados/Events/Formato/__init__.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
Dados/Events/Formato/__init__.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
__all__ = ["Formato"]
11
21
0.636364
fd4347511670dd75c5896cb381bfe7f800a0146f
8,808
py
Python
src/examplePlugins/init_entity.py
wwfxuk/shotgunEvents
91c11841db6dc3fcf5d5142b93e32dcdcebb2e8d
[ "MIT" ]
null
null
null
src/examplePlugins/init_entity.py
wwfxuk/shotgunEvents
91c11841db6dc3fcf5d5142b93e32dcdcebb2e8d
[ "MIT" ]
null
null
null
src/examplePlugins/init_entity.py
wwfxuk/shotgunEvents
91c11841db6dc3fcf5d5142b93e32dcdcebb2e8d
[ "MIT" ]
null
null
null
# Copyright 2018 Autodesk, Inc. All rights reserved. # # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # See docs folder for detailed usage info...
36.853556
118
0.568574
9a72885203bcfdbf3a9586c55055783968ddb9bd
12,301
py
Python
src/mounts_plot.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
src/mounts_plot.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
src/mounts_plot.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python ############################################################################### # # $Id$ # ############################################################################### # system imports import pg import sys import os import time # enstore imports import enstore_plotter_module import enstore_co...
30.7525
100
0.643362
4aca8a889722553469134bcaf43593ac29154994
2,362
py
Python
common/python/protobuf/pyproto/default_empty_fill_pb2.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
common/python/protobuf/pyproto/default_empty_fill_pb2.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
common/python/protobuf/pyproto/default_empty_fill_pb2.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: default-empty-fill.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database a...
36.90625
242
0.747671
13112c318e9a69cf242a9faecbdb2cc2ed806489
7,004
py
Python
gluoncv/data/kitti/detection.py
cxiang26/mygluon_cv
1dfebd27afc7d788424b21dfd69007c7576dcbbe
[ "Apache-2.0" ]
11
2019-12-11T12:47:30.000Z
2021-01-21T16:36:56.000Z
gluoncv/data/kitti/detection.py
liyongsheng-tech/mygluon_cv
1dfebd27afc7d788424b21dfd69007c7576dcbbe
[ "Apache-2.0" ]
3
2019-09-03T01:35:15.000Z
2019-11-13T06:28:00.000Z
gluoncv/data/kitti/detection.py
liyongsheng-tech/mygluon_cv
1dfebd27afc7d788424b21dfd69007c7576dcbbe
[ "Apache-2.0" ]
3
2020-01-10T16:50:08.000Z
2020-11-13T06:59:13.000Z
import os import numpy as np from . import utils from ..base import VisionDataset __all__ = ['KITTIDetection'] class KITTIDetection(VisionDataset): """MS COCO detection dataset. Parameters ---------- root : str, default '~/.mxnet/datasets/voc' Path to folder storing the dataset. splits :...
36.103093
98
0.587236
1aeedd89473a612360ef272e40f1a3514f5ff0ac
344
py
Python
bin/mcstats/mcstats/stats/trigger_raid.py
smashedbotatos/icarey_whitelist_system
cf93d3983f15838a22859781d6a36e8f44cb458f
[ "Apache-2.0" ]
1
2019-08-08T10:36:54.000Z
2019-08-08T10:36:54.000Z
bin/mcstats/mcstats/stats/trigger_raid.py
smashedbotatos/icarey_whitelist_system
cf93d3983f15838a22859781d6a36e8f44cb458f
[ "Apache-2.0" ]
2
2019-08-06T05:50:04.000Z
2021-09-01T20:06:15.000Z
bin/mcstats/mcstats/stats/trigger_raid.py
smashedbotatos/iCarey_Whitelist_System
cf93d3983f15838a22859781d6a36e8f44cb458f
[ "Apache-2.0" ]
null
null
null
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'trigger_raid', { 'title': 'Bad Omen', 'desc': 'Raids triggered', 'unit': 'int', }, mcstats.StatReader(['minecraft:custom','minecraft:raid_trigger']), 1912 # raids...
24.571429
74
0.549419
6be47581a5084391bcbe8f34d33d170f939b5d57
22,104
py
Python
homeassistant/components/mqtt/__init__.py
afanucchi/home-assistant
6d838b9a5efeaf3e7a23857251ad6fe6548da651
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/__init__.py
afanucchi/home-assistant
6d838b9a5efeaf3e7a23857251ad6fe6548da651
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/__init__.py
afanucchi/home-assistant
6d838b9a5efeaf3e7a23857251ad6fe6548da651
[ "Apache-2.0" ]
null
null
null
""" Support for MQTT message handling. For more details about this component, please refer to the documentation at https://home-assistant.io/components/mqtt/ """ import asyncio import logging import os import socket import time import ssl import re import requests.certs import voluptuous as vol from homeassistant.co...
33.695122
79
0.65608
e0256cc9b5f97349f5f9230e08d77bd139ddd620
51,720
py
Python
pydm/widgets/colormaps.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/widgets/colormaps.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/widgets/colormaps.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
null
null
null
# magma, inferno, plasma, and viridis colormaps by Nathaniel J. Smith, Stefan van der Walt, # and (in the case of viridis) Eric Firing. # Modified by Matt Gibbs for use with pyqtgraph. # # This file and the colormaps in it are released under the CC0 license / # public domain dedication. We would appreciate credit if yo...
47.668203
152
0.447525
727d9a4e4d68d2c02cc111af3c77916b420093b5
5,403
py
Python
apps/useradmin/src/useradmin/middleware.py
zhedoubushishi/hue
fe86ec65f06eb891ae80d95daf15ea9ecb158c4f
[ "Apache-2.0" ]
1
2021-01-23T07:45:29.000Z
2021-01-23T07:45:29.000Z
apps/useradmin/src/useradmin/middleware.py
zhedoubushishi/hue
fe86ec65f06eb891ae80d95daf15ea9ecb158c4f
[ "Apache-2.0" ]
null
null
null
apps/useradmin/src/useradmin/middleware.py
zhedoubushishi/hue
fe86ec65f06eb891ae80d95daf15ea9ecb158c4f
[ "Apache-2.0" ]
1
2021-02-01T19:55:11.000Z
2021-02-01T19:55:11.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
36.506757
135
0.71923
19b4d647c3edde91f8211ca985b0cb717bab0d47
2,249
py
Python
ssseg/cfgs/ce2p/cfgs_atr_resnet50os16.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
2
2021-10-31T21:52:30.000Z
2021-12-21T12:35:37.000Z
ssseg/cfgs/ce2p/cfgs_atr_resnet50os16.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
null
null
null
ssseg/cfgs/ce2p/cfgs_atr_resnet50os16.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
null
null
null
'''define the config file for atr and resnet50os16''' import os from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG.update({ 'type': 'atr', 'rootdir': os.path.join(os.getcwd(), 'ATR'), }) DATASET_CFG['train']['aug_opts'] = [ ('Resize', {'output_size': (520, 520), '...
30.391892
94
0.612717
f0a2e57719aca217e19714a673f48a214bbcc482
7,957
py
Python
pycatia/navigator_interfaces/dmu_reviews.py
Tian-Jionglu/pycatia
b315aeb3a74846f134ff6b67b3a6334b9d3905fa
[ "MIT" ]
1
2020-04-27T13:59:10.000Z
2020-04-27T13:59:10.000Z
pycatia/navigator_interfaces/dmu_reviews.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
pycatia/navigator_interfaces/dmu_reviews.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
37.356808
109
0.471283
8781119f015b31d48723dfd4e9c71989e5cd3494
99
py
Python
akData/version.py
adamkerz/akData
673884671da54b2b96480616a3f2633ba4b4710d
[ "BSD-3-Clause" ]
null
null
null
akData/version.py
adamkerz/akData
673884671da54b2b96480616a3f2633ba4b4710d
[ "BSD-3-Clause" ]
null
null
null
akData/version.py
adamkerz/akData
673884671da54b2b96480616a3f2633ba4b4710d
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.0.2" __author__ = "Adam Kerz" __copyright__ = "Copyright (C) 2015 Adam Kerz"
24.75
46
0.676768
fd25cb867d6cf8b4d3402a382307b52e6199de69
6,898
py
Python
river_profiles.py
IntroQG-2017/Exercise-11
ad2bffbbb23e94534c396d827f06e85965a4e174
[ "MIT" ]
null
null
null
river_profiles.py
IntroQG-2017/Exercise-11
ad2bffbbb23e94534c396d827f06e85965a4e174
[ "MIT" ]
null
null
null
river_profiles.py
IntroQG-2017/Exercise-11
ad2bffbbb23e94534c396d827f06e85965a4e174
[ "MIT" ]
null
null
null
"""Calculates bedrock river profiles. Description: This script calculates bedrock river profiles as a function of rock uplift rate and various stream-power erosion law parameters. User-defined variables are listed at the top of the script. Source: This code is based on a similar MATLAB code written b...
48.921986
130
0.624674
17e98ecd699e50235cefa2b50a1985ebc909482b
6,296
py
Python
drb/commands/srcrpm.py
vinted/docker-rpm-builder
2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e
[ "Apache-2.0" ]
355
2015-01-09T01:53:29.000Z
2019-02-28T17:50:45.000Z
drb/commands/srcrpm.py
vinted/docker-rpm-builder
2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e
[ "Apache-2.0" ]
54
2015-02-06T17:16:56.000Z
2019-04-02T16:25:59.000Z
drb/commands/srcrpm.py
vinted/docker-rpm-builder
2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e
[ "Apache-2.0" ]
59
2015-02-06T18:50:58.000Z
2019-03-05T08:42:39.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import shutil import logging import click from drb.configure_logging import configure_root_logger from drb.docker import Docker from drb.exception_transformer import UserExceptionTransformer from drb.mkdir_p import mkdir_p from drb.tempdir impo...
47.338346
122
0.730623
ab2ab24f354c1fbdc8b5221061db56a8d8a48689
18,211
py
Python
python/paddle/fluid/tests/unittests/test_layers.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_layers.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_layers.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
38.664544
80
0.565208
c9487ea275929491902eb32cd01dc1c4f268f5f4
1,351
py
Python
fm/migrations/0005_default_colors.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
fm/migrations/0005_default_colors.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
fm/migrations/0005_default_colors.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # default colors # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC modules f...
33.775
96
0.42191
41bba7c73a24faa25874d0b2c6eaed1939226cfb
4,213
py
Python
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
50.759036
248
0.704961
01a9d063165b03dddb20881199fd1d53c2d199a9
354
py
Python
uBloxStream/archive/GPSmap.py
roblee357/JRone
f6c3080f260858f12da0be9f353cc9b62fd47c06
[ "MIT" ]
null
null
null
uBloxStream/archive/GPSmap.py
roblee357/JRone
f6c3080f260858f12da0be9f353cc9b62fd47c06
[ "MIT" ]
null
null
null
uBloxStream/archive/GPSmap.py
roblee357/JRone
f6c3080f260858f12da0be9f353cc9b62fd47c06
[ "MIT" ]
null
null
null
import mplleaflet import csv from matplotlib import pyplot as plt x,y = [],[] with open('/home/ros/Documents/archive/GPS_Delta_log (copy).txt') as f: reader = csv.reader(f) for row in reader: x.append(row[0]) y.append(row[1]) fig = plt.figure() plt.plot(x[:],y[:]) plt.plot(x[:],y[:],'ro'); plt.s...
23.6
71
0.638418
35546351c700ff3b058fc689362145b0d946b802
15,260
py
Python
dataset/pan_pp/pan_pp_synth.py
rigvedsah000/PAN-
16f8482886c5eccecf29fe072025ba54c64e4b9d
[ "Apache-2.0" ]
null
null
null
dataset/pan_pp/pan_pp_synth.py
rigvedsah000/PAN-
16f8482886c5eccecf29fe072025ba54c64e4b9d
[ "Apache-2.0" ]
null
null
null
dataset/pan_pp/pan_pp_synth.py
rigvedsah000/PAN-
16f8482886c5eccecf29fe072025ba54c64e4b9d
[ "Apache-2.0" ]
null
null
null
import math import random import string import cv2 import mmcv import numpy as np import Polygon as plg import pyclipper import torch import torchvision.transforms as transforms from PIL import Image from torch.utils import data def get_img(img_path, read_type='pil'): try: if read_type == 'cv2': ...
33.173913
78
0.516972
26e8f5c91a52c44590ca035a10bbefa02a587b28
3,540
py
Python
test/test_shell.py
DalavanCloud/hpc-container-maker
555093c0a5c98bd2b0114831b8c676c0c3c50dd7
[ "Apache-2.0" ]
1
2019-02-25T22:54:31.000Z
2019-02-25T22:54:31.000Z
test/test_shell.py
DalavanCloud/hpc-container-maker
555093c0a5c98bd2b0114831b8c676c0c3c50dd7
[ "Apache-2.0" ]
null
null
null
test/test_shell.py
DalavanCloud/hpc-container-maker
555093c0a5c98bd2b0114831b8c676c0c3c50dd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. 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 appli...
31.891892
74
0.608192
45e5ff7b71a0ed709cf7d288a16ed9eafd42a13d
131
py
Python
Code/ModTestCode.py
BoasWhip/Black
7740ded8bc5a0645d363a3c53602af928a776f0d
[ "MIT" ]
null
null
null
Code/ModTestCode.py
BoasWhip/Black
7740ded8bc5a0645d363a3c53602af928a776f0d
[ "MIT" ]
null
null
null
Code/ModTestCode.py
BoasWhip/Black
7740ded8bc5a0645d363a3c53602af928a776f0d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 25 09:41:54 2017 @author: ozsanos """ from ModTest import Pi print(Pi())
13.1
36
0.580153
652ad5d6b7ba64c942050885bc5d70c3b0df2cc7
312
py
Python
generated-libraries/python/netapp/job/cron_day_of_month.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/job/cron_day_of_month.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/job/cron_day_of_month.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class CronDayOfMonth(int): """ Job Manager cron scheduling day of month. -1 represents all days of a month from 1 to 31, and only supported for cron schedule create and modify. Range : [-1..31]. """ @staticmethod def get_api_name(): return "cron-day-of-month"
24
68
0.615385
6bca0f9a4265d1fe8973e528b17f3771eafad2b6
386
py
Python
codes_/0100_Same_Tree.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0100_Same_Tree.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0100_Same_Tree.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [100. *Same Tree](https://leetcode.com/problems/same-tree/) # 問題:2つのTreeNodeが同じかどうか調べる # 解法:再帰的に調べる class Solution: def isSameTree(self, p: TreeNode, q: TreeNode) -> bool: if not p or not q: return p is q return ( p.val == q.val and self.isSameTree(p.left, q....
29.692308
64
0.567358
291b91320130eaae8d43ec7e52e0c97012b9a114
2,869
py
Python
openstack_dashboard/dashboards/admin/defaults/tables.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
1
2021-01-20T00:14:15.000Z
2021-01-20T00:14:15.000Z
openstack_dashboard/dashboards/admin/defaults/tables.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
1
2019-10-27T15:57:25.000Z
2019-10-27T15:57:25.000Z
openstack_dashboard/dashboards/admin/defaults/tables.py
timpricecatalyst/horizon
8279ae0ed464e62e1c91e78341342160f8a07172
[ "Apache-2.0" ]
15
2017-01-12T10:40:00.000Z
2019-04-19T08:28:05.000Z
# Copyright 2013 Kylin, 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...
34.987805
78
0.644475
a2347fdcc1113e6b5ce750f2a2684ae55566bbfa
1,641
py
Python
scripts/pdts/pdts_bbp_g0.py
georgelamb19/chempropBayes
88d660398a772705804568b671b3614c636505aa
[ "MIT" ]
16
2020-09-17T16:23:43.000Z
2022-02-23T07:54:34.000Z
scripts/pdts/pdts_bbp_g0.py
georgelamb19/chempropBayes
88d660398a772705804568b671b3614c636505aa
[ "MIT" ]
null
null
null
scripts/pdts/pdts_bbp_g0.py
georgelamb19/chempropBayes
88d660398a772705804568b671b3614c636505aa
[ "MIT" ]
2
2021-05-14T14:22:37.000Z
2021-07-06T01:06:13.000Z
import os import torch # checks print('working directory is:') print(os.getcwd()) print('is CUDA available?') print(torch.cuda.is_available()) # imports from chemprop.args import TrainArgs from chemprop.train.pdts import pdts # instantiate args class and load from dict args = TrainArgs() args.from_dict({ 'datase...
19.535714
67
0.677636
e46fe0aaa6550c8ff395a9721eb344bdeeff8fa9
6,259
py
Python
vnpy/app/data_manager/engine.py
hardywu/vnpy
81ab73dc57d12a3ff7c74c73665513b46fc0f668
[ "MIT" ]
1
2021-05-14T12:57:08.000Z
2021-05-14T12:57:08.000Z
vnpy/app/data_manager/engine.py
hardywu/vnpy
81ab73dc57d12a3ff7c74c73665513b46fc0f668
[ "MIT" ]
null
null
null
vnpy/app/data_manager/engine.py
hardywu/vnpy
81ab73dc57d12a3ff7c74c73665513b46fc0f668
[ "MIT" ]
1
2021-06-14T13:26:41.000Z
2021-06-14T13:26:41.000Z
import csv from datetime import datetime from typing import List, Tuple from pytz import timezone from vnpy.trader.database import BarOverview, DB_TZ from vnpy.trader.engine import BaseEngine, MainEngine, EventEngine from vnpy.trader.constant import Interval, Exchange from vnpy.trader.object import BarData, HistoryRe...
25.863636
86
0.514779
17d7c3311919bffd0acafd1fc92016a7a40e48c6
17,952
py
Python
corehq/apps/reminders/models.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/reminders/models.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/reminders/models.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals import pytz from datetime import timedelta, datetime, date, time import re from collections import namedtuple from corehq.apps.casegroups.models import CommCareCaseGroup from dimagi.ext.couchdbkit import * from corehq.apps.sms.models import ...
41.174312
204
0.742981
6f709fc11b3c3ca911d87800c925fe3284bc9427
779
py
Python
setup.py
TanmayArya-1p/TRH
a1aacf1ddb029b9f2aa83bc72e75a8c133aaded8
[ "Unlicense" ]
null
null
null
setup.py
TanmayArya-1p/TRH
a1aacf1ddb029b9f2aa83bc72e75a8c133aaded8
[ "Unlicense" ]
null
null
null
setup.py
TanmayArya-1p/TRH
a1aacf1ddb029b9f2aa83bc72e75a8c133aaded8
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages import os VERSION = '2.0' DESCRIPTION = 'TypeRacer and MonkeyType Hack using Selenium Chromium Webdriver and BeatifulSoup Web Scraping.' # Setting up setup( name="TRH", version=VERSION, author="TanmayArya1-p", author_email="<tanmayarya2018@gmail.com>", ...
28.851852
110
0.65982
d425f928620574ebd03fb5ea9bac9aab5450775e
10,813
py
Python
Kalman Filter/kalman_filter.py
dadiasahil94/Machine-Learning-Improvement
b7492755c01e2b16e7939672ee5de8a8326f4094
[ "MIT" ]
null
null
null
Kalman Filter/kalman_filter.py
dadiasahil94/Machine-Learning-Improvement
b7492755c01e2b16e7939672ee5de8a8326f4094
[ "MIT" ]
null
null
null
Kalman Filter/kalman_filter.py
dadiasahil94/Machine-Learning-Improvement
b7492755c01e2b16e7939672ee5de8a8326f4094
[ "MIT" ]
null
null
null
''' ======================= KALMAN FILTER ======================= ONLY NEED "F, Z ,H" TO CALCULATE/ confirm dimensions of all other parameters X == state VECTOR --------| F == Prediction Matrix --------|---- Fundamental requirement H ...
43.079681
168
0.535652
995b9d75705fe25d4c0258a58f2b3a3b9ede9d26
941
py
Python
quick-sort/iterative.py
9andresc/dena
9315905c7e597344fa2c33773bf875cdaf38021f
[ "MIT" ]
null
null
null
quick-sort/iterative.py
9andresc/dena
9315905c7e597344fa2c33773bf875cdaf38021f
[ "MIT" ]
18
2019-01-24T21:19:11.000Z
2019-02-08T19:25:49.000Z
quick-sort/iterative.py
9andresc/dsna
9315905c7e597344fa2c33773bf875cdaf38021f
[ "MIT" ]
null
null
null
class Stack(list): push = list.append def qsi(items): """It sorts the items using Quick Sort with the Hoare partition algorithm""" n = len(items) if n < 2: return unsorted = Stack([(0, n - 1)]) while unsorted: elem_idx, pivot_idx = left_idx, right_idx = unsorted.pop() ...
24.763158
80
0.539851
8b1c4d42951f55666b149f185ef767e5feadcbe1
971
py
Python
src/pretix/base/migrations/0099_auto_20180807_0841.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
1,248
2015-04-24T13:32:06.000Z
2022-03-29T07:01:36.000Z
src/pretix/base/migrations/0099_auto_20180807_0841.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
2,113
2015-02-18T18:58:16.000Z
2022-03-31T11:12:32.000Z
src/pretix/base/migrations/0099_auto_20180807_0841.py
pajowu/pretix
d6985123b4528f134ead71ce0a4613c9a309fd2c
[ "ECL-2.0", "Apache-2.0" ]
453
2015-05-13T09:29:06.000Z
2022-03-24T13:39:16.000Z
# Generated by Django 2.1 on 2018-08-07 08:41 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pretixbase', '0098_auto_20180731_1243'), ] operations = [ migrations.AlterModelOptions( name='wai...
33.482759
197
0.639547
9c03d52619d1ddaee86b4fae18348769710bd14a
16,747
py
Python
scripts/evaluate_all_datasets_cross.py
rpo19/BLINK
a9b62d08aa3ce4958e9bec62888c67c4eee18533
[ "MIT" ]
null
null
null
scripts/evaluate_all_datasets_cross.py
rpo19/BLINK
a9b62d08aa3ce4958e9bec62888c67c4eee18533
[ "MIT" ]
null
null
null
scripts/evaluate_all_datasets_cross.py
rpo19/BLINK
a9b62d08aa3ce4958e9bec62888c67c4eee18533
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline from sklearn.metrics import f1_score import pickle from sklearn.metrics import cla...
39.779097
213
0.654087
da07e59c592d16348593e59950b2bf4aade99af9
551
py
Python
2749/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
1
2018-09-20T05:15:30.000Z
2018-09-20T05:15:30.000Z
2749/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
null
null
null
2749/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
null
null
null
from functools import lru_cache base = [1, 1, 1, 0] @lru_cache() def fib(n): if n == 0: return [1, 0, 0, 1] if n == 1: return base half = fib(n // 2) half2 = mul(half, half) if n % 2 == 0: return half2 else: return mul(half2, base) def mul(mx, my): xa, xb,...
17.774194
34
0.46824
320f4a5e551e7353ae62b704c6399bed69d9471a
7,565
py
Python
EXAMPLES/PYTAN_API/invalid_ask_manual_question_sensor_help.py
netsec/pytan
29a3484d21cb90d8896275febd1c535e4f3cdc7e
[ "MIT" ]
1
2019-01-29T21:22:06.000Z
2019-01-29T21:22:06.000Z
EXAMPLES/PYTAN_API/invalid_ask_manual_question_sensor_help.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
null
null
null
EXAMPLES/PYTAN_API/invalid_ask_manual_question_sensor_help.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Have ask_manual() return the help for sensors """ # import the basic python packages we need import os import sys import tempfile import pprint import traceback # disable python from generating a .pyc file sys.dont_write_bytecode = True # change me to the path of pytan if this script is not ...
32.467811
198
0.73232
d4378489d8ab2f59561021c693e22fdfcc2ca757
15,748
py
Python
autogluon/scheduler/fifo.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
4
2019-12-11T02:44:22.000Z
2020-02-22T06:44:43.000Z
autogluon/scheduler/fifo.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
null
null
null
autogluon/scheduler/fifo.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
null
null
null
import os import time import copy import pickle import json import logging import threading import multiprocessing as mp from collections import OrderedDict from .resource import DistributedResource from ..utils import save, load, mkdir, try_import_mxboard from ..core import Task from ..core.decorator import _autogluo...
41.771883
121
0.605029
a326c7c77ee14d642ea073c246c55c110ffec02b
2,567
py
Python
nngen/onnx/util.py
m1kit/nngen
c96457aa0f1681a8ba7c12881ea3d455eccffde0
[ "Apache-2.0" ]
null
null
null
nngen/onnx/util.py
m1kit/nngen
c96457aa0f1681a8ba7c12881ea3d455eccffde0
[ "Apache-2.0" ]
null
null
null
nngen/onnx/util.py
m1kit/nngen
c96457aa0f1681a8ba7c12881ea3d455eccffde0
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import nngen.basic_types as bt import nngen.storage as storage import nngen.operator as operator def get_name(node): name = node.name if name == '': # if isinstance(node, onnx.FOO...
25.929293
87
0.651344
40fee48eba464574f50b3814184d03fa32d0e63d
4,452
py
Python
pyaz/sig/gallery_application/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/sig/gallery_application/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/sig/gallery_application/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
from ... pyaz_utils import _call_az from . import version def list(gallery_name, resource_group): ''' Required Parameters: - gallery_name -- gallery name - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` ''' retur...
44.079208
182
0.708221
b836c54508818ed04706426e6d662f05407d072c
5,621
py
Python
examples/02-plot/chart_basics.py
eino/pyvista
b9c4e67d43491958f70b04cd2664965b938910ba
[ "MIT" ]
25
2018-12-03T18:22:58.000Z
2019-02-26T01:30:35.000Z
examples/02-plot/chart_basics.py
eino/pyvista
b9c4e67d43491958f70b04cd2664965b938910ba
[ "MIT" ]
108
2019-02-27T19:52:12.000Z
2019-05-08T02:15:21.000Z
examples/02-plot/chart_basics.py
eino/pyvista
b9c4e67d43491958f70b04cd2664965b938910ba
[ "MIT" ]
8
2019-03-02T13:41:48.000Z
2019-04-22T16:57:44.000Z
""" .. _chart_basics_example: Chart Basics ~~~~~~~~~~~~ This example shows how different types of charts can be added to the scene. A more complex example, showing how to combine multiple charts as overlays in the same renderer, is given in :ref:`chart_overlays_example`. """ import numpy as np import pyvista as pv ...
33.658683
114
0.593845
8acae655c79356dd2ade82041c1ffa58fd5bd9ca
1,686
py
Python
jmanager/utils/file_utils.py
LaraFerCue/jail_manager
d289145d6b01deb85a5364dcb94b879b220c1235
[ "BSD-3-Clause" ]
1
2019-10-26T19:42:33.000Z
2019-10-26T19:42:33.000Z
jmanager/utils/file_utils.py
LaraFerCue/jmanager
d289145d6b01deb85a5364dcb94b879b220c1235
[ "BSD-3-Clause" ]
null
null
null
jmanager/utils/file_utils.py
LaraFerCue/jmanager
d289145d6b01deb85a5364dcb94b879b220c1235
[ "BSD-3-Clause" ]
null
null
null
import lzma import os import shutil import sys import tarfile from pathlib import PosixPath from stat import SF_IMMUTABLE from tempfile import TemporaryDirectory from typing import Callable def extract_tarball_into(jail_path: PosixPath, path_to_tarball: PosixPath, callback: Callable[[str, int...
34.408163
74
0.661329
07f290492902ce737a4adbe61ec8c4028b37fc6f
336
py
Python
pytorch_lightning/core/root_module.py
ammaraskar/pytorch-lightning
539d1291789e2960960a9bfe85096eaed13d8a22
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/root_module.py
ammaraskar/pytorch-lightning
539d1291789e2960960a9bfe85096eaed13d8a22
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/root_module.py
ammaraskar/pytorch-lightning
539d1291789e2960960a9bfe85096eaed13d8a22
[ "Apache-2.0" ]
1
2020-12-18T19:46:19.000Z
2020-12-18T19:46:19.000Z
""" .. warning:: `root_module` module has been renamed to `lightning` since v0.6.0. The deprecated module name will be removed in v0.8.0. """ import warnings warnings.warn("`root_module` module has been renamed to `lightning` since v0.6.0." " The deprecated module name will be removed in v0.8.0.", Depr...
33.6
91
0.705357
117488b7ea531c637eaca3d7aefc9324bdc056ed
11,714
py
Python
mlflow/cli.py
vic0777/mlflow
ac210a39b45c8d28a181d11178abc6229bb392aa
[ "Apache-2.0" ]
null
null
null
mlflow/cli.py
vic0777/mlflow
ac210a39b45c8d28a181d11178abc6229bb392aa
[ "Apache-2.0" ]
null
null
null
mlflow/cli.py
vic0777/mlflow
ac210a39b45c8d28a181d11178abc6229bb392aa
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import json import os import sys import logging import click from click import UsageError import mlflow.azureml.cli import mlflow.projects as projects import mlflow.data import mlflow.experiments import mlflow.models.cli import mlflow.sagemaker.cli import mlflow.runs import mlf...
45.757813
100
0.657333
f854ef81d8ee8ae784c1ffbd5696df4a6131d956
5,777
py
Python
remotools/remote_fs.py
vladstreltsin/remotools
aef8f3c7c040205d2b70f0e07f4a63f946d3a67d
[ "MIT" ]
null
null
null
remotools/remote_fs.py
vladstreltsin/remotools
aef8f3c7c040205d2b70f0e07f4a63f946d3a67d
[ "MIT" ]
null
null
null
remotools/remote_fs.py
vladstreltsin/remotools
aef8f3c7c040205d2b70f0e07f4a63f946d3a67d
[ "MIT" ]
null
null
null
import typing as tp from remotools.remote_dict import RemoteDict, RemoteBlobDict, RemoteBlobDictWithLRUCache, CompositeRemoteDict from remotools.savers import BaseSaver from remotools.remotes import BaseRemote class RemoteFSError(Exception): pass class RemoteFS(CompositeRemoteDict): def _split_key(self, ke...
25.449339
109
0.50978
d3e04ac56764d91658b77352db8676b4b16653b0
6,550
py
Python
src/demos/python/vehicle/demo_VEH_SteeringController.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
src/demos/python/vehicle/demo_VEH_SteeringController.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
src/demos/python/vehicle/demo_VEH_SteeringController.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2014 projectchrono.org # All rights reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distr...
36.592179
96
0.679542
943afea58b9a15da0bb070b81dd651edb4b22afa
1,716
py
Python
bk/z_main_bk.py
racheliurui/vscode-hello-python
de4da54b2787fe1d0a1c624864e2773f2ec99e77
[ "MIT" ]
null
null
null
bk/z_main_bk.py
racheliurui/vscode-hello-python
de4da54b2787fe1d0a1c624864e2773f2ec99e77
[ "MIT" ]
null
null
null
bk/z_main_bk.py
racheliurui/vscode-hello-python
de4da54b2787fe1d0a1c624864e2773f2ec99e77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Main entrance to the logic 1) Read the config from Config.py 2) Initiate Sensor Reading from SensorReading.py 3) Keep updating the Sensor Reading ''' from threading import Thread import debug import ggpub import refreshSensorReading import button import sound import vars import movemotor imp...
23.189189
81
0.744172
bd8f06d692d6a165e2e8fba9350693da2930281f
1,298
py
Python
django2/myblog/blog/migrations/0001_initial.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
django2/myblog/blog/migrations/0001_initial.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
1
2020-07-17T09:25:42.000Z
2020-07-17T09:25:42.000Z
django2/myblog/blog/migrations/0001_initial.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-06 02:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_...
37.085714
147
0.608629
f1dc90c8bea50784feeb341285a3bfed13590a49
5,515
py
Python
spotlight/losses.py
DEVESHTARASIA/spotlight
675de3b57523b850b9cd2b4ceb29a8205e3221e0
[ "MIT" ]
2
2020-02-09T03:50:52.000Z
2021-06-07T10:06:55.000Z
spotlight/losses.py
DEVESHTARASIA/spotlight
675de3b57523b850b9cd2b4ceb29a8205e3221e0
[ "MIT" ]
null
null
null
spotlight/losses.py
DEVESHTARASIA/spotlight
675de3b57523b850b9cd2b4ceb29a8205e3221e0
[ "MIT" ]
2
2017-09-17T01:28:44.000Z
2018-04-28T22:26:57.000Z
""" Loss functions for recommender models. The pointwise, BPR, and hinge losses are a good fit for implicit feedback models trained through negative sampling. The regression and Poisson losses are used for explicit feedback models. """ import torch import torch.nn.functional as F from spotlight.torch_utils import ...
25.532407
94
0.667996
e0b6b322561c6c165cdfc82e799b926402312bc4
2,724
py
Python
ddsp/training/preprocessing.py
ana-simionescu/ddsp
9f37ff66e79cf912c3377ba1beddb220196aa1a3
[ "Apache-2.0" ]
1
2021-12-14T04:10:45.000Z
2021-12-14T04:10:45.000Z
ddsp/training/preprocessing.py
ana-simionescu/ddsp
9f37ff66e79cf912c3377ba1beddb220196aa1a3
[ "Apache-2.0" ]
null
null
null
ddsp/training/preprocessing.py
ana-simionescu/ddsp
9f37ff66e79cf912c3377ba1beddb220196aa1a3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The DDSP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.62963
80
0.686858
f50e18e78659029a79e8a7c700233f06aa151ac6
5,881
py
Python
src/test_infinitam.py
DaoyiG/Dense-Monocular-3D-Mapping-for-AR
1ccec6f7a886737623390912a5e1c35cac3e7b4d
[ "MIT" ]
9
2021-03-24T06:24:51.000Z
2021-12-06T03:32:59.000Z
src/test_infinitam.py
DaoyiG/Dense-Monocular-3D-Mapping-for-AR
1ccec6f7a886737623390912a5e1c35cac3e7b4d
[ "MIT" ]
null
null
null
src/test_infinitam.py
DaoyiG/Dense-Monocular-3D-Mapping-for-AR
1ccec6f7a886737623390912a5e1c35cac3e7b4d
[ "MIT" ]
2
2020-12-28T21:12:33.000Z
2021-03-24T06:24:50.000Z
# Copyright Niantic 2019. Patent Pending. All rights reserved. # # This software is licensed under the terms of the Monodepth2 licence # which allows for non-commercial use only, the full terms of which are made # available in the LICENSE file. from __future__ import absolute_import, division, print_function import o...
37.221519
95
0.642408
a4e9bad7e491ba38ba9cefc7ccc10ed3f9d8ca8e
1,125
py
Python
FeatureExtractionModule/src/bandreader.py
Aekai/Wi-Mind
a02a2f4cd10fc362e6a17d3c67c2662c90b1a980
[ "0BSD" ]
1
2021-08-14T13:49:51.000Z
2021-08-14T13:49:51.000Z
FeatureExtractionModule/src/bandreader.py
Aekai/Wi-Mind
a02a2f4cd10fc362e6a17d3c67c2662c90b1a980
[ "0BSD" ]
null
null
null
FeatureExtractionModule/src/bandreader.py
Aekai/Wi-Mind
a02a2f4cd10fc362e6a17d3c67c2662c90b1a980
[ "0BSD" ]
1
2020-08-18T08:39:58.000Z
2020-08-18T08:39:58.000Z
import numpy as np import pandas as pd from datetime import datetime class HeartRateBand: """Provides basic functions to extract heart beat rate from the given path. Heart beat rates are acquired with Microsoft Band and custom Android app.""" def __init__(self, path, ident): """ :param pa...
33.088235
92
0.637333
bb7c6a2415566149645d785a0aa835d67216e6c8
1,456
py
Python
trace/google/cloud/trace_v1/types.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2019-04-16T08:13:06.000Z
2019-04-16T08:13:06.000Z
trace/google/cloud/trace_v1/types.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
null
null
null
trace/google/cloud/trace_v1/types.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2020-11-15T11:44:36.000Z
2020-11-15T11:44:36.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
32.355556
74
0.758929
96f96877dc9bd67c94f75abe620e7d5d7ea99359
1,408
py
Python
misc/renumber.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
misc/renumber.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
misc/renumber.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
# renumber realiza uma renumeração de arquivos em uma pasta import re import os import shutil # definindo uma expressão regular para detectar os arquivos enumerados numbered_file = re.compile(r'''^(.*?) (\d{1,3}) (\..*)$ ''', re.VERBOSE) def renumber_file(dir, new_dir): """Esta função redefine os números de arq...
30.608696
89
0.636364
8943d28575d13c32ef6bcb04b4fb1bf7f6f1c473
1,998
py
Python
boost/tools/build/v2/test/copy_time.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
130
2015-01-04T23:34:53.000Z
2022-02-09T19:22:35.000Z
boost/tools/build/v2/test/copy_time.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
13
2015-01-12T19:30:52.000Z
2020-10-27T10:53:56.000Z
boost/tools/build/v2/test/copy_time.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
25
2015-01-15T16:33:54.000Z
2021-02-27T17:45:57.000Z
#!/usr/bin/python # # Copyright (c) 2008 # Steven Watanabe # # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test that the common.copy rule set the modification # date of the new file the current time. import Bo...
25.948052
80
0.729229
18a9e51c089bfe1b37f9ec0e0801e8334b62c7fa
1,151
py
Python
manage.py
saengate/wagtail-blog
db875d8f455fc92d5f9ac7ce98a4efdac1744381
[ "Apache-2.0" ]
null
null
null
manage.py
saengate/wagtail-blog
db875d8f455fc92d5f9ac7ce98a4efdac1744381
[ "Apache-2.0" ]
9
2021-04-06T18:47:10.000Z
2021-09-22T19:48:02.000Z
manage.py
saengate/wagtail-blog
db875d8f455fc92d5f9ac7ce98a4efdac1744381
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys import json def main(): environments = { 'local': 'local', 'production': 'production', } environment = os.environ.get('ENV', 'local') settings = os.environ.setdefault( 'DJA...
29.512821
76
0.662033
9c0fb62b49e81659e4786945d908d34df967ef82
49,948
py
Python
pennylane/operation.py
kareem1925/pennylane
04bb5ba0fcced558e1273b94b3ea8c39622c5ca4
[ "Apache-2.0" ]
null
null
null
pennylane/operation.py
kareem1925/pennylane
04bb5ba0fcced558e1273b94b3ea8c39622c5ca4
[ "Apache-2.0" ]
null
null
null
pennylane/operation.py
kareem1925/pennylane
04bb5ba0fcced558e1273b94b3ea8c39622c5ca4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies 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...
34.446897
127
0.603708
7c7fb725690eab171ba37743a782da368b6ce205
2,619
py
Python
administration/src/services/images_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
administration/src/services/images_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
1
2019-05-13T16:19:36.000Z
2019-05-19T11:21:22.000Z
administration/src/services/images_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
import os from ..db import SqliteManager as dbm from ..config import UPLOAD_URI as upu def get_img_rel_url(img_url): start_of_rel_url = img_url.find('/static') return img_url[start_of_rel_url:] def get_img_url(pic_id, is_relative=False): if None is pic_id: return os.path.join(upu, 'default.png')...
35.391892
87
0.654448
dcf7019eae532d329b70ca6c37ceb9543b61e52a
1,159
py
Python
tests/conftest.py
python-trio/trio-click
0cf915e5f444103f248749cc0a6c1f6fd30ed7c5
[ "BSD-3-Clause" ]
41
2018-01-25T07:55:25.000Z
2020-09-12T18:15:56.000Z
tests/conftest.py
python-trio/trio-click
0cf915e5f444103f248749cc0a6c1f6fd30ed7c5
[ "BSD-3-Clause" ]
6
2018-01-25T08:04:55.000Z
2020-09-14T05:56:14.000Z
tests/conftest.py
python-trio/trio-click
0cf915e5f444103f248749cc0a6c1f6fd30ed7c5
[ "BSD-3-Clause" ]
4
2018-01-28T08:45:38.000Z
2020-09-12T10:55:22.000Z
import os import tempfile import pytest import anyio from functools import partial from threading import Thread from asyncclick.testing import CliRunner class SyncCliRunner(CliRunner): def invoke(self,*a,_sync=False,**k): fn = super().invoke if _sync: return fn(*a,**k) # anyi...
24.145833
72
0.604832
e2e803b327adda63fcc168ff7c94afad60d04788
16,058
py
Python
txdav/common/datastore/upgrade/sql/test/test_upgrade.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
txdav/common/datastore/upgrade/sql/test/test_upgrade.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
txdav/common/datastore/upgrade/sql/test/test_upgrade.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2010-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
44.481994
124
0.670196
c8485a96e231f2f24e145233f82350bd7c4aa2f8
1,317
py
Python
theil_sen_example.py
rsiverd/pure_python_theil_sen
ac76de50ddb18f404b9e58958957028fdf7d926c
[ "BSD-2-Clause" ]
1
2020-05-07T01:01:30.000Z
2020-05-07T01:01:30.000Z
theil_sen_example.py
rsiverd/pure_python_theil_sen
ac76de50ddb18f404b9e58958957028fdf7d926c
[ "BSD-2-Clause" ]
null
null
null
theil_sen_example.py
rsiverd/pure_python_theil_sen
ac76de50ddb18f404b9e58958957028fdf7d926c
[ "BSD-2-Clause" ]
1
2020-05-07T06:22:01.000Z
2020-05-07T06:22:01.000Z
#!/usr/bin/env python import os, sys, time reload = sys.modules['imp' if 'imp' in sys.modules else 'importlib'].reload import pure_python_theil_sen reload(pure_python_theil_sen) ppts = pure_python_theil_sen ## ----------------------------------------------------------------------- ## Example focus sequence dataset...
26.34
75
0.549734
530d868a258f9994d1f3777dfc0196d7c59ae310
5,612
py
Python
awstwitter/__init__.py
hsbakshi/awstwitter
8163b35ac9b9ac0b6ee6d1926be9dcfccf67ba06
[ "Apache-2.0" ]
null
null
null
awstwitter/__init__.py
hsbakshi/awstwitter
8163b35ac9b9ac0b6ee6d1926be9dcfccf67ba06
[ "Apache-2.0" ]
null
null
null
awstwitter/__init__.py
hsbakshi/awstwitter
8163b35ac9b9ac0b6ee6d1926be9dcfccf67ba06
[ "Apache-2.0" ]
null
null
null
"""This module allows securely storing and retrieving Twitter API credentials in AWS EC2 System manager.""" import sys import argparse import pprint import boto3 TWITTER_CREDENTIALS = { 'consumer_key': { 'Description': 'Twitter consumer key', 'Type': 'String' }, 'consumer_secret': { ...
37.413333
87
0.653599
8a8e4bb0118ffe90335aa5ade104684ae009227f
496
py
Python
lint.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
lint.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
lint.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
import subprocess def lint(): print("Running pylint...") r = subprocess.call(['pylint', 'vtcff']) if r & 1 or r & 2 or r & 32: print(f"pylint return code is {r}") if r & 1: print(f"fatal message") if r & 2: print(f"error message") exit(1) print...
20.666667
58
0.489919
65d22aedb33ebc4da32a9f96ed2e58ac3e784a8f
1,085
py
Python
src/main/python/app/helpers/ItemFactory.py
karlpet/WadLauncher
512f5d28de5c57e4dffdc642b170891a99a00ea8
[ "MIT" ]
2
2020-09-06T11:16:30.000Z
2020-09-15T17:11:34.000Z
src/main/python/app/helpers/ItemFactory.py
karlpet/WadLauncher
512f5d28de5c57e4dffdc642b170891a99a00ea8
[ "MIT" ]
74
2020-09-07T16:40:54.000Z
2021-06-18T00:22:39.000Z
src/main/python/app/helpers/ItemFactory.py
karlpet/WadLauncher
512f5d28de5c57e4dffdc642b170891a99a00ea8
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItem ID_ROLE = Qt.UserRole + 1 TYPE_ROLE = Qt.UserRole + 2 def make_generic(text, id): item = QStandardItem(text) item.setData(id, ID_ROLE) return item def make_wad_item(data, flags=None, item=None): if not item: item = make_generic...
26.463415
47
0.709677
299abb5fdb707467177fece08376ebe8c95b1751
8,588
py
Python
tools/profiling/microbenchmarks/bm_diff.py
soramitsu/libp2p-grpc
83a50ee39b86617612b55ac79f843d55c03b5633
[ "BSD-3-Clause" ]
null
null
null
tools/profiling/microbenchmarks/bm_diff.py
soramitsu/libp2p-grpc
83a50ee39b86617612b55ac79f843d55c03b5633
[ "BSD-3-Clause" ]
null
null
null
tools/profiling/microbenchmarks/bm_diff.py
soramitsu/libp2p-grpc
83a50ee39b86617612b55ac79f843d55c03b5633
[ "BSD-3-Clause" ]
1
2020-11-04T04:19:45.000Z
2020-11-04T04:19:45.000Z
#!/usr/bin/env python2.7 # Copyright 2017, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this lis...
33.030769
105
0.651956
b2e5c0d3b26aa0ac570a56f4b3cee2057991d17a
311
py
Python
catkin_ws/src/o2as_routines/setup.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
catkin_ws/src/o2as_routines/setup.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
catkin_ws/src/o2as_routines/setup.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['o2as_routines'], package_dir={'': 'src'}) setup(**setup_args)
25.916667
61
0.768489
f91150abbd4c095f8dae42fcc302222a3ef1e2c9
28,233
py
Python
android/.buildozer/android/platform/build/build/python-installs/youtb_dc/kivy/core/window/window_sdl2.py
mw3tv123/youtube-dc
84cfdac4b7548285084f453f1716eee83b9288aa
[ "MIT" ]
1
2019-04-26T19:07:48.000Z
2019-04-26T19:07:48.000Z
kivy/core/window/window_sdl2.py
basharbme/kivy
88d456d56b872feeb1b3d7d98bccbfea4137c338
[ "MIT" ]
null
null
null
kivy/core/window/window_sdl2.py
basharbme/kivy
88d456d56b872feeb1b3d7d98bccbfea4137c338
[ "MIT" ]
null
null
null
# found a way to include it more easily. ''' SDL2 Window =========== Windowing provider directly based on our own wrapped version of SDL. TODO: - fix keys - support scrolling - clean code - manage correctly all sdl events ''' __all__ = ('WindowSDL2', ) from os.path import join import sys from kivy ...
34.941832
79
0.546276
d17c2e40c02914839537d117c74d35dc059bb123
1,698
py
Python
test/transactions.py
bitseaman/bitcoin_tools
f1bbc32795854483d398a252399d13866b27bc26
[ "BSD-3-Clause" ]
248
2017-05-12T00:41:00.000Z
2022-01-29T18:50:35.000Z
test/transactions.py
bitseaman/bitcoin_tools
f1bbc32795854483d398a252399d13866b27bc26
[ "BSD-3-Clause" ]
25
2017-10-21T12:05:18.000Z
2021-01-18T19:59:49.000Z
test/transactions.py
bitseaman/bitcoin_tools
f1bbc32795854483d398a252399d13866b27bc26
[ "BSD-3-Clause" ]
75
2017-05-18T17:38:51.000Z
2022-02-27T12:35:12.000Z
from bitcoin_tools.core.keys import serialize_pk, load_keys from bitcoin_tools.core.transaction import TX # BUILD TRANSACTIONS prev_tx_ids = ["f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba", # P2PK "7767a9eb2c8adda3ffce86c06689007a903b6f7e78dbc049ef0dbaf9eeebe075", # P2PKH ...
31.444444
109
0.551826
9dd92b160a485f5cdd251d491eaafc11e9f70610
43,518
py
Python
purity_fb/purity_fb_1dot9/apis/arrays_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot9/apis/arrays_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot9/apis/arrays_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.9 Python SDK Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.9 Contact: i...
42.91716
204
0.579967
6233546ab8e7817c313f7f2088ef8c4e88355ab8
68,271
py
Python
fairseq/models/speech_to_text/modules/emformer.py
narfanar/fairseq
7f5ec30b25d906b564cc0ee0e50d1d9193940f58
[ "MIT" ]
16,259
2018-05-02T02:31:30.000Z
2022-03-31T21:50:23.000Z
fairseq/models/speech_to_text/modules/emformer.py
narfanar/fairseq
7f5ec30b25d906b564cc0ee0e50d1d9193940f58
[ "MIT" ]
3,863
2018-05-02T13:42:39.000Z
2022-03-31T19:03:32.000Z
fairseq/models/speech_to_text/modules/emformer.py
narfanar/fairseq
7f5ec30b25d906b564cc0ee0e50d1d9193940f58
[ "MIT" ]
4,796
2018-05-02T07:55:51.000Z
2022-03-31T14:46:45.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import mat...
37.144178
97
0.584655
de83133e2fccf8eba4f37b0932b5452763262a54
3,254
py
Python
dynamic_preferences/admin.py
calvin620707/django-dynamic-preferences
09026f5aea085fba24df8ba961c629a133242c81
[ "BSD-3-Clause" ]
null
null
null
dynamic_preferences/admin.py
calvin620707/django-dynamic-preferences
09026f5aea085fba24df8ba961c629a133242c81
[ "BSD-3-Clause" ]
null
null
null
dynamic_preferences/admin.py
calvin620707/django-dynamic-preferences
09026f5aea085fba24df8ba961c629a133242c81
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django import forms from .settings import preferences_settings from .registries import global_preferences_registry from .models import GlobalPreferenceModel from .forms import GlobalSinglePreferenceForm, SinglePerInstancePreferenceForm class SectionFilter(admin.AllValuesFieldLis...
38.282353
102
0.697296
96dc64547c0f0a2644601d7855b6ff036658ead3
67
py
Python
app/__init__.py
zhangshen20/capstone-project-sparkify
78c01e3670745a343b4dacebe9d10f1b1f0d7715
[ "MIT" ]
null
null
null
app/__init__.py
zhangshen20/capstone-project-sparkify
78c01e3670745a343b4dacebe9d10f1b1f0d7715
[ "MIT" ]
null
null
null
app/__init__.py
zhangshen20/capstone-project-sparkify
78c01e3670745a343b4dacebe9d10f1b1f0d7715
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) from app import run
13.4
23
0.776119
f09dda13c00f9bfa4e4fa1edebd62366c71cc249
5,960
py
Python
docs/conf.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa import sys import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.append(os.p...
32.391304
80
0.716946
619dc6963d07e9de95d093734ca4c86008b5c8a0
89,924
py
Python
voc/java/opcodes.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
1
2021-01-03T00:59:50.000Z
2021-01-03T00:59:50.000Z
voc/java/opcodes.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
null
null
null
voc/java/opcodes.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
null
null
null
from .constants import Classref, Fieldref, Methodref, InterfaceMethodref, String, Integer, Long, Float, Double, Constant # From: https://en.wikipedia.org/wiki/Java_bytecode_instruction_listings # Reference" http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html#jvms-6.2 ########################################...
20.966193
182
0.616354
cd89e3aa619182b4eed1d6985a95558b117a15f7
3,314
py
Python
contrib/python/api/skydive/graph.py
EmilienM/skydive
1dccee6a075ad5c0a3fc85f1ad5474de67a7d80b
[ "Apache-2.0" ]
1
2018-10-26T08:32:13.000Z
2018-10-26T08:32:13.000Z
contrib/python/api/skydive/graph.py
EmilienM/skydive
1dccee6a075ad5c0a3fc85f1ad5474de67a7d80b
[ "Apache-2.0" ]
null
null
null
contrib/python/api/skydive/graph.py
EmilienM/skydive
1dccee6a075ad5c0a3fc85f1ad5474de67a7d80b
[ "Apache-2.0" ]
2
2015-10-21T03:28:56.000Z
2017-09-19T11:43:28.000Z
# # Copyright (C) 2017 Red Hat, Inc. # # 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, Versi...
32.490196
70
0.572118
7fb0e2b79e78b0fb482526a112708c5e86c7be8d
2,181
py
Python
game/engine.py
tushortz/Football-Match-Engine
4de6d3cc80ad981f70c579d98b2ebe15c014f5b1
[ "MIT" ]
null
null
null
game/engine.py
tushortz/Football-Match-Engine
4de6d3cc80ad981f70c579d98b2ebe15c014f5b1
[ "MIT" ]
null
null
null
game/engine.py
tushortz/Football-Match-Engine
4de6d3cc80ad981f70c579d98b2ebe15c014f5b1
[ "MIT" ]
null
null
null
import random class Engine: def __init__(self, home_team, away_team): self.home_team = home_team self.away_team = away_team def scoreboard(self): print("%s %s : %s %s" % (self.home_team.name, self.home_team.score, self.away_team.score, self.away_team.name)) def play(self, commetary=False): if commetar...
32.073529
113
0.68088
8a871cde4daa6984a4518c2ca9a6e0d67bbaf8b9
4,386
py
Python
src/Summarizer.py
Rohit-More/Machine-Learning-and-Data-Science
e4eed506505a060aaf9f57ee61535f1d0fde20a7
[ "MIT" ]
1
2020-09-29T16:26:08.000Z
2020-09-29T16:26:08.000Z
src/Summarizer.py
rayruchira/Machine-Learning-and-Data-Science
434724365bc9ee86633245acef29ccee086cba3b
[ "MIT" ]
2
2020-10-04T13:35:55.000Z
2021-10-05T06:46:39.000Z
src/Summarizer.py
rayruchira/Machine-Learning-and-Data-Science
434724365bc9ee86633245acef29ccee086cba3b
[ "MIT" ]
16
2020-09-28T12:17:42.000Z
2021-10-11T11:34:09.000Z
from nltk.corpus import stopwords from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize, sent_tokenize from langdetect import detect text_str = input("Enter the text : ") if(detect(text_str)=='ta'): a=[] with open('tamil Stop words.txt', 'r', encoding='utf-8') as f: a...
30.458333
124
0.632695
6ea5667cc3357e9ed68632011b599f8014dd47ce
5,720
py
Python
src/pyscripts/sqlalchemy/test/config.py
paddybu/xsbs
3810eab4cd91d9a927ac724a4892763a5ff562a5
[ "BSD-3-Clause" ]
2
2020-07-02T21:50:43.000Z
2021-01-12T09:26:25.000Z
src/pyscripts/sqlalchemy/test/config.py
harryd/xsbs-minimal
aaceaeda1d3fe6cdd7182484989eaa74e9ae9518
[ "BSD-3-Clause" ]
null
null
null
src/pyscripts/sqlalchemy/test/config.py
harryd/xsbs-minimal
aaceaeda1d3fe6cdd7182484989eaa74e9ae9518
[ "BSD-3-Clause" ]
null
null
null
import optparse, os, sys, re, ConfigParser, StringIO, time, warnings logging = None __all__ = 'parser', 'configure', 'options', db = None db_label, db_url, db_opts = None, None, {} options = None file_config = None base_config = """ [db] sqlite=sqlite:///:memory: sqlite_file=sqlite:///querytest.db postgres=postgres...
32.134831
77
0.651399
9dba7d522c93b48e076d0070d4803869d73f4077
75,001
py
Python
examples/processing/obstacle_detection.py
ManishaMohane/acconeer-python-exploration
48098f392bb0aa5a812e9ab2c1dd246fdf7a909a
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/processing/obstacle_detection.py
ManishaMohane/acconeer-python-exploration
48098f392bb0aa5a812e9ab2c1dd246fdf7a909a
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/processing/obstacle_detection.py
ManishaMohane/acconeer-python-exploration
48098f392bb0aa5a812e9ab2c1dd246fdf7a909a
[ "BSD-3-Clause-Clear" ]
null
null
null
import logging import os import numpy as np import pyqtgraph as pg import yaml from numpy import pi, unravel_index from scipy.fftpack import fft, fftshift from PyQt5 import QtCore from acconeer.exptool import configs, utils from acconeer.exptool.clients import SocketClient, SPIClient, UARTClient from acconeer.exptoo...
39.411981
99
0.543099
9dca22e1f455d96253152de06700b2fba8ba7076
724
py
Python
plots.py
SailikhithGunda/Eigen-values-using-CUDA
1a77fcd267747919e3f41c3c77c4c545abd4c0e4
[ "MIT" ]
null
null
null
plots.py
SailikhithGunda/Eigen-values-using-CUDA
1a77fcd267747919e3f41c3c77c4c545abd4c0e4
[ "MIT" ]
null
null
null
plots.py
SailikhithGunda/Eigen-values-using-CUDA
1a77fcd267747919e3f41c3c77c4c545abd4c0e4
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd file = open("C:\\Users\\Likhith\\source\\repos\\PDC_proj\\times.txt", "r") a = file.read() # analysing CUDA l = list(a.split("\n")) l1 = [] file.close() for i in l: l1.append(list(i.split())) df = pd.DataFrame(l1, columns = ['n', 'time', 'num']) d...
23.354839
75
0.633978
34db967c3e2eaf7e7a825e50a45f788ed1ed42b7
3,301
py
Python
api/python/setup.py
viveklak/quilt
248971a9e2ecd1bcae3a5af77d4d8933b2dba0c7
[ "Apache-2.0" ]
null
null
null
api/python/setup.py
viveklak/quilt
248971a9e2ecd1bcae3a5af77d4d8933b2dba0c7
[ "Apache-2.0" ]
null
null
null
api/python/setup.py
viveklak/quilt
248971a9e2ecd1bcae3a5af77d4d8933b2dba0c7
[ "Apache-2.0" ]
null
null
null
import os import sys from pathlib import Path from setuptools import setup, find_packages from setuptools.command.install import install VERSION = Path(Path(__file__).parent, "quilt3", "VERSION").read_text().strip() def readme(): readme_short = """ Quilt manages data like code (with packages, repositories,...
31.141509
100
0.563163
b286a9f74aa6c8d12ebe6da7c83f1b17510840ea
564
py
Python
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_env.py
andrewli77/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
23
2020-04-27T23:53:44.000Z
2022-03-10T03:13:16.000Z
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_env.py
WeiChengTseng/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
1
2021-11-14T13:30:22.000Z
2021-11-14T13:30:22.000Z
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_env.py
WeiChengTseng/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
8
2020-06-17T03:28:34.000Z
2022-03-09T03:13:03.000Z
from rllab.envs.mujoco.gather.gather_env import GatherEnv # from rllab.envs.mujoco.gather.baselines_gather_env import GatherEnv from sandbox.finetuning.envs.mujoco.swimmer_env import SwimmerEnv import time class SwimmerGatherEnv(GatherEnv): MODEL_CLASS = SwimmerEnv ORI_IND = 2 if __name__ == "__main__": ...
29.684211
89
0.698582
977a0bbbea05425b3ccc71ff48fc292429618687
2,815
py
Python
tests/msgterm/test_msgterm.py
nicoalonso/dory
3322afb929f0bc310f92b3294426eaefb1ff9353
[ "MIT" ]
null
null
null
tests/msgterm/test_msgterm.py
nicoalonso/dory
3322afb929f0bc310f92b3294426eaefb1ff9353
[ "MIT" ]
2
2021-04-30T21:02:08.000Z
2021-06-02T00:49:05.000Z
tests/msgterm/test_msgterm.py
nicoalonso/dory
3322afb929f0bc310f92b3294426eaefb1ff9353
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import unittest from unittest import TestCase from unittest.mock import Mock, MagicMock, patch, create_autospec from io import StringIO from msgterm import MsgTerm class TestMsgTerm(TestCase): ''' MsgTerm Test Extends: TestCase ''' @patch('sys.stdout', new_call...
24.911504
73
0.560213
cda12ea70d6cf7d58ef5c62b8a28a9b70263ffcc
892
py
Python
synapse/replication/slave/storage/appservice.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
1
2019-09-14T03:24:03.000Z
2019-09-14T03:24:03.000Z
synapse/replication/slave/storage/appservice.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
4
2020-03-04T23:47:05.000Z
2021-12-09T21:41:44.000Z
synapse/replication/slave/storage/appservice.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # Copyright 2018 New Vector 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....
33.037037
75
0.774664
196fe1a32425f08852b840fb97b56f43b92ffadd
1,818
py
Python
dot_path_remove/dot_path_remove.py
contrerasjf0/dot_remove_path
34c48331f777177e891a093ea47773a38b370244
[ "MIT" ]
null
null
null
dot_path_remove/dot_path_remove.py
contrerasjf0/dot_remove_path
34c48331f777177e891a093ea47773a38b370244
[ "MIT" ]
null
null
null
dot_path_remove/dot_path_remove.py
contrerasjf0/dot_remove_path
34c48331f777177e891a093ea47773a38b370244
[ "MIT" ]
null
null
null
import copy from dot_path_remove.utills import get_parts_from_list_format, is_list_format def remove_spot(source: dict, spot: str) -> dict: is_spot_list = is_list_format(spot) if not is_spot_list and spot in source: source.pop(spot) else: list_parts = get_parts_from_list_format(spot) ...
29.803279
91
0.59626
389ae92a5fae5c8fa104c0f0a03c9accf1246621
4,916
py
Python
env/lib/python3.8/site-packages/arcade/examples/sprite_follow_simple.py
iodaniel/cse210-project
abc7a4e64d35707d04900f8535961fc57ed8f4e1
[ "MIT" ]
1
2021-07-11T02:51:52.000Z
2021-07-11T02:51:52.000Z
env/lib/python3.8/site-packages/arcade/examples/sprite_follow_simple.py
iodaniel/cse210-project
abc7a4e64d35707d04900f8535961fc57ed8f4e1
[ "MIT" ]
null
null
null
env/lib/python3.8/site-packages/arcade/examples/sprite_follow_simple.py
iodaniel/cse210-project
abc7a4e64d35707d04900f8535961fc57ed8f4e1
[ "MIT" ]
null
null
null
""" Sprite Follow Player This moves towards the player in both the x and y direction. Artwork from http://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_follow_simple """ import random import arcade import os # --- C...
31.922078
143
0.629373
8f059a794d8b5193b73c4ce1d66938507e8aeb7f
9,486
py
Python
docs/conf.py
lumina-networks/topology-yaml
4294aaaf778503809179f499bd785a56d03c866f
[ "MIT" ]
1
2018-08-21T22:58:35.000Z
2018-08-21T22:58:35.000Z
docs/conf.py
lumina-networks/topology-yaml
4294aaaf778503809179f499bd785a56d03c866f
[ "MIT" ]
null
null
null
docs/conf.py
lumina-networks/topology-yaml
4294aaaf778503809179f499bd785a56d03c866f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # tosca-nfv documentation build configuration file, created by # sphinx-quickstart on Fri Apr 6 10:12:52 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
32.597938
80
0.718005
3007eedc6df48da431b6f37881b2b289439c44f1
1,888
py
Python
python/ray/autoscaler/_private/constants.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/_private/constants.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/_private/constants.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
import os from ray.ray_constants import ( # noqa F401 AUTOSCALER_RESOURCE_REQUEST_CHANNEL, DEFAULT_OBJECT_STORE_MAX_MEMORY_BYTES, DEFAULT_OBJECT_STORE_MEMORY_PROPORTION, LOGGER_FORMAT, MEMORY_RESOURCE_UNIT_BYTES, RESOURCES_ENVIRONMENT_VARIABLE) def env_integer(key, default): if key in os.environ: ...
39.333333
79
0.786547
6da3a93cb8a3ea8f0956fda0437f79a3de65b105
10,814
py
Python
script/t2c_extract_features.py
ThierryDeruyttere/vilbert-Talk2car
6476b16970cfd0d88e09beb9a57cc5c39b7acb3f
[ "MIT" ]
null
null
null
script/t2c_extract_features.py
ThierryDeruyttere/vilbert-Talk2car
6476b16970cfd0d88e09beb9a57cc5c39b7acb3f
[ "MIT" ]
null
null
null
script/t2c_extract_features.py
ThierryDeruyttere/vilbert-Talk2car
6476b16970cfd0d88e09beb9a57cc5c39b7acb3f
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Requires vqa-maskrcnn-benchmark to be built and installed. See Readme # for more details. import argparse import os import time import cv2 i...
38.347518
141
0.586739
3b1ff1caa13a6c1b75260133c709fbc6569489af
8,223
py
Python
oauthenticator/globus.py
meesam15/oauthenticator
3ed131b9a825f1ee6a55a8d378b6b277f172dd0b
[ "BSD-3-Clause" ]
1
2021-02-26T03:19:53.000Z
2021-02-26T03:19:53.000Z
oauthenticator/globus.py
meesam15/oauthenticator
3ed131b9a825f1ee6a55a8d378b6b277f172dd0b
[ "BSD-3-Clause" ]
1
2021-06-25T15:17:10.000Z
2021-06-25T15:17:10.000Z
oauthenticator/globus.py
kidig/oauthenticator
75d8b9b5ee366e7094d28a4c569986f04e3ea802
[ "BSD-3-Clause" ]
1
2019-02-05T21:06:42.000Z
2019-02-05T21:06:42.000Z
""" Custom Authenticator to use Globus OAuth2 with JupyterHub """ import os import pickle import base64 from tornado import gen, web from tornado.auth import OAuth2Mixin from tornado.web import HTTPError from traitlets import List, Unicode, Bool from jupyterhub.handlers import LogoutHandler from jupyterhub.auth impor...
35.752174
93
0.642466