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
e8717fe5584a69a8f658c44323f70ac140432a95
2,191
py
Python
Allura/allura/config/resources.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
Allura/allura/config/resources.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/config/resources.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
39.836364
86
0.654039
e8718c2abc3f37247d07406940dfc2c6face88e4
2,517
py
Python
ptz_visca.py
dalsgit/streaming
bac9e845c17f17a7588160cc33942e1e032394b9
[ "MIT" ]
null
null
null
ptz_visca.py
dalsgit/streaming
bac9e845c17f17a7588160cc33942e1e032394b9
[ "MIT" ]
null
null
null
ptz_visca.py
dalsgit/streaming
bac9e845c17f17a7588160cc33942e1e032394b9
[ "MIT" ]
null
null
null
import socket class PTZCommands: # Potential Future commands CAM_Power_On = "8101040002FF" CAM_Power_Off = "8101040003FF" CAM_Memory_Reset = "8101043F00{preset_num_hex}FF" CAM_Memory_Set = "8101043F01{preset_num_hex}FF" # Camera recall preset command CAM_Memory_Recall = "8101043F02{preset...
34.479452
107
0.627731
e8719502cc4f5249f401d3e5a481bf6506c54f00
833
py
Python
file_fetchers.py
ah508/dragon_optimizer
4cd45ef0c11530b6ca25721c1459b1d47d33db83
[ "MIT" ]
2
2019-10-16T22:42:54.000Z
2020-02-10T19:55:54.000Z
file_fetchers.py
ah508/dragon_optimizer
4cd45ef0c11530b6ca25721c1459b1d47d33db83
[ "MIT" ]
null
null
null
file_fetchers.py
ah508/dragon_optimizer
4cd45ef0c11530b6ca25721c1459b1d47d33db83
[ "MIT" ]
null
null
null
from pathlib import Path import json def fetch_dragon(dname): path = str(Path(__file__).parent) + '/dragons/' + dname + '.json' with open(path, encoding='utf-8') as f: dragon = json.loads(f.read()) return dragon def fetch_key(dragclass): if dragclass['forbidden']: raise NotImplementedE...
33.32
82
0.644658
e871bc114eb89d229dffcf68f18235f6b0d05718
1,604
py
Python
db/users.py
gfoo/fastapi-demo
44ceb9e94fa833841756136c3b446f192a311dde
[ "Unlicense" ]
null
null
null
db/users.py
gfoo/fastapi-demo
44ceb9e94fa833841756136c3b446f192a311dde
[ "Unlicense" ]
null
null
null
db/users.py
gfoo/fastapi-demo
44ceb9e94fa833841756136c3b446f192a311dde
[ "Unlicense" ]
null
null
null
from core.security import get_password_hash from models.user import DBUser from schemas.user import UserCreate from sqlalchemy.orm import Session def get_users(db: Session, skip: int = 0, limit: int = 100): return db.query(DBUser).offset(skip).limit(limit).all() def get_user(db: Session, user_id: int): ret...
26.295082
71
0.667706
e871e133ef572fcd7de4c51798fe147bc9249f43
4,940
py
Python
hashmap.py
vcancy/python-ADT
eec03332905d9cc1aaae9b44980c3398ea846bf1
[ "BSD-2-Clause" ]
null
null
null
hashmap.py
vcancy/python-ADT
eec03332905d9cc1aaae9b44980c3398ea846bf1
[ "BSD-2-Clause" ]
null
null
null
hashmap.py
vcancy/python-ADT
eec03332905d9cc1aaae9b44980c3398ea846bf1
[ "BSD-2-Clause" ]
null
null
null
__author__ = "vcancy" # /usr/bin/python # -*-coding:utf-8-*- from array import Array class _MapEntry: """Storage class for holding the key/value pairs.""" def __init__(self, key, value): self.key = key self.value = value class _HashMapIterator: def __init__(self, array): self._...
27.752809
93
0.552024
e871e5dc1ccb7648949af3dccf2601d8f73fd8d7
11,518
py
Python
app/server/twitter_guess_who.py
aureliaspecker/twitter-guess-who
a735169bcd070cd8b2f9f984790e836ea4c69543
[ "MIT" ]
3
2020-03-29T20:37:36.000Z
2021-09-30T19:45:08.000Z
app/server/twitter_guess_who.py
aureliaspecker/twitter-guess-who
a735169bcd070cd8b2f9f984790e836ea4c69543
[ "MIT" ]
21
2020-03-30T17:14:33.000Z
2022-03-12T00:31:46.000Z
app/server/twitter_guess_who.py
aureliaspecker/twitter-guess-who
a735169bcd070cd8b2f9f984790e836ea4c69543
[ "MIT" ]
null
null
null
import json from string import punctuation import numpy as np import os import glob from wordcloud import WordCloud, STOPWORDS from matplotlib import pyplot as plt import shortuuid import pickle5 as pickle import time from .api_handler import ( Users_Lookup, Search_Counts, Recent_Search_Data, Statuses_U...
32.908571
176
0.537333
e871f7e790ebf137cb7e91ae4fd2af244cffcc17
263
py
Python
autox/autox_interpreter/mlinterpreter/util/util.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
499
2021-07-27T02:57:58.000Z
2022-03-28T12:08:27.000Z
autox/autox_interpreter/mlinterpreter/util/util.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
9
2021-08-03T15:14:56.000Z
2022-03-11T07:06:06.000Z
autox/autox_interpreter/mlinterpreter/util/util.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
87
2021-07-27T01:13:02.000Z
2022-03-29T02:14:09.000Z
import os def basename(file_path): return os.path.basename(file_path) def filename_subfix(file_path): spl_strs = file_path.split(".") if len(spl_strs) < 2: return spl_strs[0], "" else: return ".".join(spl_strs[:-1]), spl_strs[-1]
23.909091
52
0.634981
e871fea25fc3fe76d305dc191ecadf0e745da1e0
5,503
py
Python
framework/communication/aiocoap/util/asyncio/recvmsg.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
1
2021-02-13T07:42:04.000Z
2021-02-13T07:42:04.000Z
framework/communication/aiocoap/util/asyncio/recvmsg.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
framework/communication/aiocoap/util/asyncio/recvmsg.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...
39.307143
168
0.673996
e8725cfc42b1d3e9cd167e0a40c681f9f8e0051a
1,820
py
Python
leetcode_python/Math/sum-of-subarray-minimums.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Math/sum-of-subarray-minimums.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Math/sum-of-subarray-minimums.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V1 : dev # V2 # https://blog.csdn.net/zjucor/article/details/82721781 class Solution: def sumSubarrayMins(self, a): """ :type A: List[int] :rtype: int """ n=len(a) left,right=[0]*n,[0]*n st=[] for i,v in enumerate(a): while ...
23.333333
64
0.403846
e872a92c473250173c5dfeaf6b3fd0100a481b2a
112
py
Python
config/common_config.py
AlvISsReimu/ArknightsAutoHelper
7112b73c01fe381b20314342ba0dfa2f7e01805d
[ "MIT" ]
2
2021-07-14T04:03:57.000Z
2022-03-17T03:23:19.000Z
config/common_config.py
AlvISsReimu/ArknightsAutoHelper
7112b73c01fe381b20314342ba0dfa2f7e01805d
[ "MIT" ]
null
null
null
config/common_config.py
AlvISsReimu/ArknightsAutoHelper
7112b73c01fe381b20314342ba0dfa2f7e01805d
[ "MIT" ]
null
null
null
import os SCREEN_SHOOT_SAVE_PATH = os.getcwd() + "\\screen_shoot\\" STORAGE_PATH = os.getcwd() + "\\storage\\"
22.4
57
0.6875
e872b2cebe051d9a85e47dc6d1be6ce189ecc52b
16,766
py
Python
model/senet.py
gujingxiao/AliProducts_Recognition_Competition_Pytorch
f601aefc5ed5e35ff92111cc8fffdc71606eb82f
[ "Apache-2.0" ]
2
2021-04-23T09:26:09.000Z
2021-05-15T06:47:51.000Z
model/senet.py
gujingxiao/AliProducts_Recognition_Competition_Pytorch
f601aefc5ed5e35ff92111cc8fffdc71606eb82f
[ "Apache-2.0" ]
1
2020-08-25T01:29:51.000Z
2020-08-25T01:29:51.000Z
model/senet.py
gujingxiao/AliProducts_Recognition_Competition_Pytorch
f601aefc5ed5e35ff92111cc8fffdc71606eb82f
[ "Apache-2.0" ]
2
2020-09-24T09:51:00.000Z
2021-05-03T14:39:47.000Z
""" ResNet code gently borrowed from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py """ from __future__ import print_function, division, absolute_import from collections import OrderedDict import math import torch.nn as nn from torch.utils import model_zoo __all__ = ['SENet', 'senet154', '...
37.50783
98
0.576106
e872bdc7795e1ddbdb176ec70086a85d24487b83
130
py
Python
terrascript/data/davidji99/ultradns.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/davidji99/ultradns.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/davidji99/ultradns.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/davidji99/ultradns.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:29:41 UTC) __all__ = []
21.666667
73
0.753846
e872c7971d2e13121567818c39cbfcf3200d4a72
19,024
py
Python
adapters/pox/ext/debugger/elt/debuggers/flow_table.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
1
2016-07-14T14:45:56.000Z
2016-07-14T14:45:56.000Z
adapters/pox/ext/debugger/elt/debuggers/flow_table.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
adapters/pox/ext/debugger/elt/debuggers/flow_table.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
# This file is part of ErrorLocalizationTool. # Contains CompetitionError classes. # Contains FlowTable and utilities. # TODO: Debug. Why there are deletions with l2_learning? import copy from pytrie import Trie from pox.openflow.flow_table import (TableEntry, FlowTable, FlowTable...
36.939806
79
0.55451
e872d32c76c8dbc9ceaf60ddb1a4ed6b636301b8
8,500
py
Python
ibms_project/ibms/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/ibms/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/ibms/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
from django.db import models FINYEAR_CHOICES = ( ('2011/12', '2011/12'), ('2012/13', '2012/13'), ('2013/14', '2013/14'), ('2014/15', '2014/15'), ('2015/16', '2015/16'), ('2016/17', '2016/17'), ('2017/18', '2017/18'), ('2018/19', '2018/19'), ('2019/20', '2019/20') ) ...
38.116592
98
0.694118
e872ded52d4ed65abea0e7bb0ae7b764addce161
1,212
py
Python
models.py
lehrblogger/where-do-you-go
51c1fb3a66d8babe00a9412c72ebbd66fe348d88
[ "MIT" ]
20
2015-04-05T05:44:20.000Z
2020-12-27T19:47:34.000Z
models.py
lehrblogger/where-do-you-go
51c1fb3a66d8babe00a9412c72ebbd66fe348d88
[ "MIT" ]
null
null
null
models.py
lehrblogger/where-do-you-go
51c1fb3a66d8babe00a9412c72ebbd66fe348d88
[ "MIT" ]
4
2015-04-05T05:44:25.000Z
2019-01-22T20:54:40.000Z
from google.appengine.ext import db from geo.geomodel import GeoModel import constants from datetime import datetime class UserInfo(db.Model): user = db.UserProperty() created = db.DateTimeProperty(auto_now_add=True) # unused to save index space, but keep anyway last_updated = db.DateTimeProperty(auto_now_add=Tr...
32.756757
117
0.734323
e872ed7171c9b7738ce785c9d3caa93bc59ca4b6
7,545
py
Python
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_20/exp3_new_rig_reset_obj_in_hand_match_old_rig_training.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_20/exp3_new_rig_reset_obj_in_hand_match_old_rig_training.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/exps_20_08_20/exp3_new_rig_reset_obj_in_hand_match_old_rig_training.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from multiworld.envs.pygame import PickAndPlaceEnv from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.sets.rl_launcher import disco_experiment if __name__ == "__main__": variant = dict( env_class=PickAndPlaceEnv, env_kwargs=dict( ...
32.24359
148
0.531345
e8732ec8ffcf97f08586ccf7a3f19e5ee41cac00
3,805
py
Python
AAA/src/generate_triangle_data.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
AAA/src/generate_triangle_data.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
AAA/src/generate_triangle_data.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
import numpy as np from tqdm import tqdm import subprocess # Equil # N = 1000 # number of extra samples MIN_LEN = 1 MAX_LEN = 20 SEED = 1 def triangle_side(lenght, letter): aux = [letter for _ in range(lenght)] return " ".join(aux) def check_triangle(a, b, c): if a + b >= c and b + c >= a and c + a >...
27.178571
57
0.478581
e87366a61b7a52de301b025d0049fe86e16f012a
1,644
py
Python
dliplib/benchmark/ellipses.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/benchmark/ellipses.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/benchmark/ellipses.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
import argparse from dival import DataPairs from dliplib.reconstructors import get_reconstructor from dliplib.utils.helper import load_standard_dataset from dliplib.utils.plot import plot_reconstructors_tests def get_parser(): """Adds arguments to the command""" parser = argparse.ArgumentParser() parser....
34.25
79
0.586375
e87374d967b8eda3ecd22a898003bf2f1645989c
4,685
py
Python
nova/conf/database.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/database.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/database.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
43.785047
79
0.623906
e873ac689f5bc3618d11098db05991cacca94110
10,635
py
Python
robograph/attack/cvx_env_solver.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
7
2020-10-23T23:20:33.000Z
2022-01-04T16:16:40.000Z
robograph/attack/cvx_env_solver.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
null
null
null
robograph/attack/cvx_env_solver.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
3
2021-05-24T16:45:15.000Z
2021-12-15T05:40:15.000Z
import numpy as np import time import scipy.optimize as optim from robograph.attack.convex_relaxation import ConvexRelaxation from robograph.attack.dp import exact_solver_wrapper from robograph.attack.greedy_attack import Greedy_Attack from robograph.attack.frank_wolfe import polar_operator from robograph.attack.SPG i...
41.381323
131
0.577715
e873cea2368fa5d88be676f91399e5140a47b0eb
3,402
py
Python
tests/test_utils_crc.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_crc.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_crc.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ CRC computation testing. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ import unittest from embutils.utils import CRC # -->> Definitions <<------------------ # -->> Test API <<--------------------- cl...
27
66
0.378307
e873d65039b3323f242465bc76072a8ddf6e5fc5
834
py
Python
chapter-4/initial-template/project_template/urls.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-4/initial-template/project_template/urls.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-4/initial-template/project_template/urls.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
"""project_template URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
34.75
77
0.711031
e873dc70606efde1b58ade0de41505804a0eb039
1,063
py
Python
src/nlplib/demos/scraperusage.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
1
2015-11-18T12:59:52.000Z
2015-11-18T12:59:52.000Z
src/nlplib/demos/scraperusage.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
src/nlplib/demos/scraperusage.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
''' A demonstration of the web scraper decorator. Because part of this demonstration depends on the internet, it's possible that this can throw exceptions. ''' import nlplib @nlplib.scraper def scrape_python_dot_org () : yield 'http://python.org' # Because of the <silent> argument, this won't throw exceptio...
31.264706
118
0.67921
e873ecd469a2d0917c8e25aadd8c3cc882b7fa7b
15,145
py
Python
mi/core/instrument/data_particle.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/core/instrument/data_particle.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/core/instrument/data_particle.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.core.instrument.data_particle_generator Base data particle generator @file mi/core/instrument/data_particle_generator.py @author Steve Foley @brief Contains logic to generate data particles to be exchanged between the driver and agent. This involves a JSON interchange format """ ...
38.244949
120
0.643249
e873f9468e571209c60286efcef6a9acdd1dd049
932
py
Python
notebook/lib/p3_CellCounts.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
4
2019-02-06T00:35:44.000Z
2020-03-03T23:51:30.000Z
notebook/lib/p3_CellCounts.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
201
2018-02-05T20:10:19.000Z
2022-03-30T22:28:53.000Z
notebook/lib/p3_CellCounts.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
5
2018-02-16T13:54:04.000Z
2019-06-09T05:27:39.000Z
class CellCounts: def __init__(self): self.code_no = 0 self.figure_no = 0 self.table_no = 0 def get_code_no(self): return self.code_no def next_code_no(self): ''' increments code cell number returns next code cell numer ''' # ...
21.674419
40
0.546137
e87406547a35f7a98b22e7753517d46ec9c395ae
1,619
py
Python
act/config.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
act/config.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
act/config.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function class SmallConfig(object): """Small config.""" init_scale = 0.1 learning_rate = 0.0005 max_grad_norm = 5 num_layers = 2 num_steps = 20 hidden_size = 200 max_epoch = 4 max_max_epoch = 13 kee...
19.743902
38
0.69055
e8743d52dd1e42e654ed291353091b9ba9cb0a71
4,789
py
Python
python/cugraph/bsp/traversal/bfs_bsp.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
null
null
null
python/cugraph/bsp/traversal/bfs_bsp.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
null
null
null
python/cugraph/bsp/traversal/bfs_bsp.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
1
2019-10-31T18:50:32.000Z
2019-10-31T18:50:32.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. # 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 i...
33.725352
77
0.605346
e874436616a24656934a7ee3ea506401b6bdcef9
1,003
py
Python
backend/utils/bootstrap.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/utils/bootstrap.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/utils/bootstrap.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import metayaml from abc import ABCMeta, abstractmethod class BootstraperBase(metaclass=ABCMeta): def process_doc(self, filename): doc = self.read_config(filename) creation_order = ["user", "service", "flavor", "tariff", "customer", "news", "tenant"] for entity in creation_order: ...
27.108108
94
0.608175
e875234363103387fe4fe8bc168cadda989752ac
738
py
Python
modoboa_imap_migration/migrations/0004_auto_20190207_0939.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
14
2016-05-26T06:27:22.000Z
2021-05-26T13:34:48.000Z
modoboa_imap_migration/migrations/0004_auto_20190207_0939.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
88
2015-11-03T11:19:59.000Z
2022-03-01T23:05:11.000Z
modoboa_imap_migration/migrations/0004_auto_20190207_0939.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
10
2016-08-11T07:41:11.000Z
2020-11-04T11:14:48.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-02-07 08:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('modoboa_imap_migration', '0003_auto_20190207_0919'), ]...
27.333333
124
0.643631
e8754de1430fce4cbdb12157acbe82f95c8e93dd
2,128
py
Python
mlrun/secrets.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/secrets.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/secrets.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
# Copyright 2018 Iguazio # # 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, softwa...
32.242424
87
0.603383
e875bd76874fb693044b6bd1f5120d9ec9e43630
5,848
py
Python
merge_meta_and_qc.py
GinoBacallao/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
1
2021-02-26T17:45:20.000Z
2021-02-26T17:45:20.000Z
merge_meta_and_qc.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
merge_meta_and_qc.py
atgu/hgdp_tgp
b674a79ad60da4c78b0b55a77e4cc4f138e9057e
[ "MIT" ]
null
null
null
import hail as hl import re hl.init() # Takes a list of dicts and converts it to a struct format (works with nested structs too) def dict_to_struct(d): fields = {} for k, v in d.items(): if isinstance(v, dict): v = dict_to_struct(v) fields[k] = v return hl.struct(**fields) # ...
37.729032
107
0.724008
e875c98269cc1f6c09fd3663baa97d1f87aee7c2
7,653
py
Python
misc/cocoeval.py
tgc1997/video-caption.pytorch
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
39
2018-05-14T02:30:32.000Z
2021-07-17T11:39:28.000Z
misc/cocoeval.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
8
2018-09-20T09:08:46.000Z
2019-12-12T08:24:54.000Z
misc/cocoeval.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
19
2018-05-14T13:12:01.000Z
2021-06-25T07:48:07.000Z
''' Wrapper for evaluation on CIDEr, ROUGE_L, METEOR and Bleu_N using coco-caption repo https://github.com/tylin/coco-caption class COCOScorer is taken from https://github.com/yaoli/arctic-capgen-vid ''' import json import os import sys sys.path.append('coco-caption') from pycocoevalcap.bleu.bleu import Bleu from py...
39.65285
120
0.556514
e875c9e4f86ef2ec03c056db53a88ce324200121
2,461
py
Python
leetcode_python/Math/reconstruct-original-digits-from-english.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Math/reconstruct-original-digits-from-english.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/reconstruct-original-digits-from-english.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V1 : DEV # V2 # https://blog.csdn.net/fuxuemingzhu/article/details/79542812 import collections class Solution(object): def originalDigits(self, s): """ :type s: str :rtype: str """ number = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine...
30.012195
97
0.452255
e875da54db0b286d292e956f735cecaa19415056
106,564
py
Python
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_file_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_file_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_file_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...
55.043388
544
0.680905
e875dd6d35e58e7dff9a074660ffd4d37984dfb8
1,785
py
Python
app/resources/v1/sst/indicadores_mpt_unidades.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/sst/indicadores_mpt_unidades.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/sst/indicadores_mpt_unidades.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class IndicadoresSSTMptUnidadesResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "re...
48.243243
99
0.67451
e875df6c9427801aee83aa3a181e3991ab64e9ae
2,243
py
Python
analysis_scripts/interactive_crop.py
SpeerLab/STORM-UI-
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
1
2021-12-03T11:59:40.000Z
2021-12-03T11:59:40.000Z
analysis_scripts/interactive_crop.py
SpeerLab/STORM-UI
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
null
null
null
analysis_scripts/interactive_crop.py
SpeerLab/STORM-UI
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
null
null
null
import cv2 import numpy as np from functools import partial """ Adapted from https://www.life2coding.com/crop-image-using-mouse-click-movement-python/""" cropping = False x_start, y_start, x_end, y_end = 0, 0, 0, 0 def mouse_crop(ori_image, event, x, y, flags, param): # grab references to the global variables...
33.477612
94
0.627731
e8763faa2e477bff62739899587e7ebdcef391a9
132
py
Python
terrascript/data/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/Mongey/kafka_connect.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:11 UTC) __all__ = []
22
73
0.757576
e8764d2d9c840e497e2f6ea4a3651800a5abe09c
1,134
py
Python
python/design/0706_design_hashmap.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/design/0706_design_hashmap.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/design/0706_design_hashmap.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class MyHashMap(object): def __init__(self): """ Initialize your data structure here. """ self.factor = 1000000 self.buckets = [-1] * self.factor def put(self, key, value): """ value will always be non-negative. :type key: int :type value...
23.142857
63
0.526455
e8767c2ed16f6eead290f64db4ee61345a43662c
11,868
py
Python
stests/core/cache/ops/orchestration.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/core/cache/ops/orchestration.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/core/cache/ops/orchestration.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import random import typing from stests.core import factory from stests.core.cache.model import CountIncrementKey from stests.core.cache.model import Item from stests.core.cache.model import ItemKey from stests.core.cache.model import SearchKey from stests.core.cache.model import StoreOperation from stests.core.cache....
26.550336
122
0.61729
e8768e4e57fdfd56d5a0f988f269aaa85b30a7c5
1,590
py
Python
email_headers/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
1
2020-12-07T19:52:33.000Z
2020-12-07T19:52:33.000Z
email_headers/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
email_headers/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
############################################################################## # # Author: Avoin.Systems # Copyright 2017 Avoin.Systems # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Softwar...
37.857143
84
0.608805
e8769fde1ebafbddd0e9b1260ac56de91dab7a93
1,541
py
Python
src/server/tools/get_lottos.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/tools/get_lottos.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/tools/get_lottos.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, select from sqlalchemy.orm import sessionmaker, subqueryload from app.fetcher import LotteryFetcher from classes import ProxySession from classes.models import Lottery, LotteryType from classes.parsers import LotteryParser from config import env, paths, secrets db_path = str(pat...
33.5
100
0.663206
e876a071fc865f5ad20ed130368655eb736e9e2b
2,587
py
Python
examples/vasp_jobs.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
56
2015-06-23T03:03:18.000Z
2022-02-06T16:41:34.000Z
examples/vasp_jobs.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
21
2015-09-03T17:50:18.000Z
2022-03-01T02:26:34.000Z
examples/vasp_jobs.py
joshgabriel/MPInterfaces
2799ae161fa94c78842092fb24ef468607afa465
[ "MIT" ]
50
2015-09-17T19:09:36.000Z
2021-11-15T19:13:20.000Z
# coding: utf-8 # Copyright (c) Henniggroup. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import """ This script demonstrates the usage of the module mpinterfaces/calibrate.py to setup and run vasp jobs """ import os from math imp...
30.081395
71
0.699652
e876d59ed81086480b351e08e24e9c5005d7bd04
1,707
py
Python
axopy/task/common.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
null
null
null
axopy/task/common.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
null
null
null
axopy/task/common.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
null
null
null
"""Some generic task implementations.""" from axopy.task import Task from axopy import util from axopy.messaging import Transmitter from axopy.gui.graph import SignalWidget class Oscilloscope(Task): """A visualizer for data acquisition devices. This task connects to the experiment input DAQ and displays eac...
32.826923
79
0.673697
e87777a777824443574104ba28f17ed14677a12a
3,211
py
Python
setup.py
cair/deep-rts
7aa5dde0c5df10ae3a3d057e7b89641aec58e115
[ "MIT" ]
144
2018-07-13T07:47:50.000Z
2022-03-31T06:29:50.000Z
setup.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
18
2019-03-29T10:37:01.000Z
2022-03-02T12:47:34.000Z
setup.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
23
2018-11-02T18:12:51.000Z
2022-02-15T20:32:18.000Z
import re import sys import platform import subprocess import os dir_path = os.path.dirname(os.path.realpath(__file__)) from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion def is_mac_os(): return platform.system() ...
31.480392
109
0.591093
e8778a797a76bbfccdf6e0ea82e9e62d4e44772d
17,935
py
Python
doc/tools/apigen.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
doc/tools/apigen.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
doc/tools/apigen.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" Attempt to generate templates for module reference with Sphinx To include extension modules, first identify them as valid in the ``_uri2path`` method, then handle them in the ``_parse_module_with_import`` script. Notes ----- This parsing is based on import and introspection of modules. Previously functions and cl...
35.166667
83
0.552941
e87790538a720202ce225364cca841a6a4a3574e
3,176
py
Python
python/vineyard/data/utils.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/vineyard/data/utils.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
python/vineyard/data/utils.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...
28.872727
112
0.644836
e877ce0cde70dbbb2fe4b39034099d6f1868aee9
1,016
py
Python
repos/spiketoolkit/spiketoolkit/preprocessing/rectify.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/preprocessing/rectify.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/preprocessing/rectify.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from spikeextractors import RecordingExtractor import numpy as np class RectifyRecording(RecordingExtractor): def __init__(self, *, recording): RecordingExtractor.__init__(self) self._recording = recording self.copyChannelProperties(recording) def getSamplingFrequency(self): re...
30.787879
119
0.701772
e878073b282067e455c32d3c4fa6e1fcad84c84a
11,605
py
Python
CrossSectionScripts/ISIS_ChipIR/calc_cross_section_june_2018.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
CrossSectionScripts/ISIS_ChipIR/calc_cross_section_june_2018.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
CrossSectionScripts/ISIS_ChipIR/calc_cross_section_june_2018.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -u import os import sys import re import csv from datetime import timedelta from datetime import datetime # smallest run in minutes SMALLEST_RUN = timedelta(minutes=20) ONE_HOUR = 60 def get_dt(year_date, day_time, sec_frac): yv = year_date.split('/') day = int(yv[0]) month = int(yv[1])...
38.174342
119
0.554675
e8785fbc0851a92a21406ae85335d154bb99f6e2
3,206
py
Python
lib/cretonne/meta/base/settings.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
lib/cretonne/meta/base/settings.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
lib/cretonne/meta/base/settings.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
""" Cretonne shared settings. This module defines settings relevant for all code generators. """ from __future__ import absolute_import from cdsl.settings import SettingGroup, BoolSetting, EnumSetting, NumSetting group = SettingGroup('shared') opt_level = EnumSetting( """ Optimization level: ...
31.742574
79
0.688709
e8785fee253eee8a5669abd9a0f39af7c6063c62
876
py
Python
cape_email_plugin/email_settings.py
bloomsburyai/cape-email-plugin
e7da8f541ebf66bb01f85af5402717a24ef31e86
[ "Apache-2.0" ]
3
2018-08-15T11:05:44.000Z
2018-08-23T13:47:56.000Z
cape_email_plugin/email_settings.py
bloomsburyai/cape-email-plugin
e7da8f541ebf66bb01f85af5402717a24ef31e86
[ "Apache-2.0" ]
null
null
null
cape_email_plugin/email_settings.py
bloomsburyai/cape-email-plugin
e7da8f541ebf66bb01f85af5402717a24ef31e86
[ "Apache-2.0" ]
4
2018-09-27T14:03:32.000Z
2020-06-29T03:45:35.000Z
# Copyright 2018 BLEMUNDSBURY AI 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/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
38.086957
74
0.77968
e8786d9b31129843c9e314bbb4466c0e6ce4cb78
3,508
py
Python
leetcode_python/Depth-First-Search/max-area-of-island.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Depth-First-Search/max-area-of-island.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Depth-First-Search/max-area-of-island.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/79182435 # IDEA : DFS # * PLEASE NOTE THAT IT IS NEEDED TO GO THROUGH EVERY ELEMENT IN THE GRID # AND RUN THE DFS WITH IN THIS PROBLEM class Solution(object): def maxAreaOfIsland(self, grid): """ :type grid: List[List[int]] ...
29.728814
89
0.458666
e878717afd62574a3161f6b2da01193414409235
1,012
py
Python
sdks/python/test/test_AlertingBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_AlertingBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_AlertingBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
25.3
111
0.743083
e87874d59199a63ad2b7368047c88a54dc5f9087
2,110
py
Python
setup.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
setup.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
setup.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
"""Cloud browser package.""" from __future__ import with_statement import os from setuptools import setup, find_packages from cloud_browser import __version__ ############################################################################### # Environment and Packages. ###################################################...
31.029412
79
0.489573
e878c211c2ac6ac845c16563f8508608fa0e6666
3,004
py
Python
fairseq/debug_utils.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
3
2021-11-01T02:05:20.000Z
2021-12-09T05:42:17.000Z
fairseq/debug_utils.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
null
null
null
fairseq/debug_utils.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
1
2022-01-01T18:54:14.000Z
2022-01-01T18:54:14.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- """My debug utils.""" import sys import os import inspect from collections import defaultdict from typing import List import numpy as np import torch def _bool(val: str) -> bool: val = val.lower() if val in {None, '', '0', 'false', 'f', 'no', 'n'}: return ...
27.559633
89
0.648802
e878c74769097abc63c2fb3ac345a50eb369f974
12,735
py
Python
our_churchtools_setup/tests/conftest.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
our_churchtools_setup/tests/conftest.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
our_churchtools_setup/tests/conftest.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
import os import re from itertools import chain from typing import List, Set import pytest import requests from pytest_bdd import given, parsers, then, when from churchtools import ChurchToolsApi GROUP_ID_ALLE_MITARBEITER = 172 # Fixtures for scenarios tests @pytest.fixture def group_context(): return [] @py...
37.12828
94
0.683157
e878f2c99151be4b849618cd1ab956fa9a27f16d
11,984
py
Python
elit/components/tokenizers/transformer.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/components/tokenizers/transformer.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/components/tokenizers/transformer.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-08-11 02:48 import functools from typing import TextIO, Union, List, Dict, Any, Set from bisect import bisect import torch from elit.common.dataset import SamplerBuilder from elit.common.transform import TransformList from elit.components.taggers.transformers.trans...
46.63035
132
0.600718
e8791a612f1d79c27fa404c962272cfd49476955
300
py
Python
rlberry/agents/__init__.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
86
2020-11-20T21:02:27.000Z
2022-03-07T14:57:40.000Z
rlberry/agents/__init__.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
103
2020-11-17T12:31:21.000Z
2022-03-28T13:46:16.000Z
rlberry/agents/__init__.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
20
2020-11-23T01:47:50.000Z
2022-03-25T07:45:24.000Z
# Import interfaces from .agent import Agent from .agent import AgentWithSimplePolicy # basic agents (alphabetical!) # basic = does not require torch, jax etc from .adaptiveql import * from .dynprog import * from .kernel_based import * from .mbqvi import * from .optql import * from .ucbvi import *
23.076923
41
0.763333
e8791b8c8f2cef4d5bc0c47e7cd9fed67df0b256
17,654
py
Python
hypothesis_gufunc/gufunc.py
uber/hypothesis-gufunc
65aaf717b9b57f3aa6379a836fe28dfc9b4f671b
[ "Apache-2.0" ]
34
2019-08-13T18:28:15.000Z
2021-09-12T23:41:11.000Z
hypothesis_gufunc/gufunc.py
uber/hypothesis-gufunc
65aaf717b9b57f3aa6379a836fe28dfc9b4f671b
[ "Apache-2.0" ]
3
2019-10-10T21:22:51.000Z
2021-06-25T08:18:14.000Z
hypothesis_gufunc/gufunc.py
uber/hypothesis-gufunc
65aaf717b9b57f3aa6379a836fe28dfc9b4f671b
[ "Apache-2.0" ]
3
2019-09-17T19:44:36.000Z
2021-02-10T18:16:20.000Z
# Copyright (c) 2019 Uber 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 agreed...
42.335731
120
0.672256
e87943dc1eb930ac884360a347dcc251f101b9df
251
py
Python
terrascript/resource/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/Mongey/kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/Mongey/kafka_connect.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:11 UTC) import terrascript class kafka_connect_connector(terrascript.Resource): pass __all__ = [ "kafka_connect_connector", ]
19.307692
73
0.776892
e8794cb8116cd0547228a15747711d72715fe920
49
py
Python
__init__.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
3
2022-03-05T21:54:34.000Z
2022-03-15T12:55:45.000Z
__init__.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
2
2022-03-13T04:15:47.000Z
2022-03-30T11:51:41.000Z
__init__.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
null
null
null
__version__ = '0.1dev' __init_file__ = __file__
12.25
24
0.755102
e87970e60e6695fb6e8fd56a983b830deee93a31
2,829
py
Python
CadVlan/EquipGroup/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
17
2015-05-19T20:03:45.000Z
2022-03-24T06:19:47.000Z
CadVlan/EquipGroup/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
41
2015-01-27T18:36:07.000Z
2021-06-10T20:34:03.000Z
CadVlan/EquipGroup/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
19
2016-09-12T07:35:42.000Z
2022-01-28T23:46:11.000Z
# -*- coding:utf-8 -*- # 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 "Lic...
50.517857
140
0.705903
e87974dfb32c26739c9c533d1beb693432ba8586
2,628
py
Python
pylandroidcloud/models.py
mhaack/pylandroidcloud
873d86ee72a0ea5f548dc149a1f271363bd938c6
[ "MIT" ]
1
2020-05-02T16:34:54.000Z
2020-05-02T16:34:54.000Z
pylandroidcloud/models.py
mhaack/pylandroidcloud
873d86ee72a0ea5f548dc149a1f271363bd938c6
[ "MIT" ]
null
null
null
pylandroidcloud/models.py
mhaack/pylandroidcloud
873d86ee72a0ea5f548dc149a1f271363bd938c6
[ "MIT" ]
1
2020-10-21T12:33:36.000Z
2020-10-21T12:33:36.000Z
from datetime import datetime from typing import Any, Dict, List, Optional, cast from pylandroidcloud.states import MowerCode, MowerErrorCode # pylint: disable=unused-argument,line-too-long,too-many-instance-attributes class Mower: __slots__ = "id", "serial_number", "name", "mac_address", "online", "locked" ...
28.258065
80
0.584475
e8797b634640835b66174d78ba053f0a324e07f6
3,269
py
Python
web/app/core/tests/test_tag_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
web/app/core/tests/test_tag_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
1
2020-08-13T19:19:58.000Z
2020-08-13T19:19:58.000Z
web/app/core/tests/test_tag_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from core.serializers import TagSerializer from .helper import sample_profile, \ sample_company, \ fake, \ TAG_URL class...
27.016529
71
0.626491
e87a16b18ee1deb1f2fd73cca7986282c2dda677
50
py
Python
TgBot/keyboards/default/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
null
null
null
TgBot/keyboards/default/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
21
2019-10-23T21:16:18.000Z
2021-08-02T21:43:46.000Z
TgBot/keyboards/default/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
1
2019-10-25T23:01:25.000Z
2019-10-25T23:01:25.000Z
from .available_emails import make_emails_keyboard
50
50
0.92
e87a1c881fff4fadc102004a7fea8bd0c305d9be
10,427
py
Python
modules/templates/RLP/rheaders.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/RLP/rheaders.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/RLP/rheaders.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
""" Custom rheaders for RLP License: MIT """ from gluon import current from core import s3_fullname from .helpers import rlp_deployed_with_org # ============================================================================= def rlp_vol_rheader(r, tabs=None): """ Custom rheader for vol/person """ if...
37.239286
103
0.401362
e87a3af9cf3ff482fc735025be732eedf11c8565
17,230
py
Python
data/raw/sub02.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
data/raw/sub02.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
data/raw/sub02.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
Welcome to PsychoPy2! v1.83.04 () ###################### Running: F:\users\emiwar\catAtt.py ###################### Unexpected error loading library avbin: COM1 Serial<id=0x4e12f70, open=True>(port='COM1', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.5, xonxoff=False, rtscts=False, dsrdtr=False)...
40.926366
154
0.668369
e87a623c0d7bdcb6323877c485b8e7372373eadb
1,938
py
Python
bot/cogs/connect4/connect4.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
5
2021-04-27T10:50:54.000Z
2021-08-02T09:11:56.000Z
bot/cogs/connect4/connect4.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
2
2021-06-17T14:53:13.000Z
2021-06-19T02:14:36.000Z
bot/cogs/connect4/connect4.py
luciferchase/luci
91e30520cfc60177b9916d3f3d41678f590ecdfc
[ "MIT" ]
4
2021-06-11T12:02:42.000Z
2021-06-30T16:56:46.000Z
""" Originally: https://github.com/phenom4n4n/phen-cogs/tree/master/connect4 (Thanks mate!) Heavily altered to fit my needs """ import discord from discord.ext import commands import asyncio from collections import Counter from typing import Union from bot.utils.predicates import MessagePredicate from cogs.connect4...
27.685714
96
0.574303
e87a7e321da474caa1d1f21177e2d9cfd11276f5
1,427
py
Python
Tools/Scripts/libraries/webkitcorepy/webkitcorepy/mocks/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/libraries/webkitcorepy/webkitcorepy/mocks/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/libraries/webkitcorepy/webkitcorepy/mocks/__init__.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2020 Apple 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: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the fo...
57.08
80
0.787666
e87a8699db1d2bce38f0c3d2110fcda4d9b67258
10,189
py
Python
genienlp/model_utils/translation.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/model_utils/translation.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/model_utils/translation.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 The Board of Trustees of the Leland Stanford Junior University # # 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 # list o...
45.084071
141
0.671214
e87a8fffe1544714247b4435a3b5ed7d3f92eb03
2,003
py
Python
examples/py_api/api_example.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
1
2019-06-27T11:32:38.000Z
2019-06-27T11:32:38.000Z
examples/py_api/api_example.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
null
null
null
examples/py_api/api_example.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Examples usage of a Python API interface to opentuner. Unlike the other examples, this code lets the user control the main() of the program and calls into opentuner to get new configurations to test. """ import adddeps # add opentuner to path in dev mode import opentuner from opentuner.api imp...
33.949153
76
0.663505
e87aa4298e0e11aaa258b389ba157916fbbafe09
3,217
py
Python
lib/dataset/multiview_mpii.py
CHUNYUWANG/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
72
2020-03-26T13:26:39.000Z
2022-03-16T08:45:34.000Z
lib/dataset/multiview_mpii.py
zhezh/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
10
2020-04-05T07:17:49.000Z
2022-03-04T05:32:12.000Z
lib/dataset/multiview_mpii.py
CHUNYUWANG/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
13
2020-04-12T20:33:38.000Z
2022-02-17T11:23:13.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import os.path as osp import numpy as np import json_tricks as json from dataset.joints_dataset import JointsDataset class ...
28.469027
66
0.4871
e87aab32e9fd089629d9c851561ac091351d1669
5,589
py
Python
docs/source/conf.py
ZLLentz/pcdscalc
6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea
[ "BSD-3-Clause-LBNL" ]
null
null
null
docs/source/conf.py
ZLLentz/pcdscalc
6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea
[ "BSD-3-Clause-LBNL" ]
14
2020-10-06T20:33:08.000Z
2021-07-15T18:39:46.000Z
docs/source/conf.py
ZLLentz/pcdscalc
6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea
[ "BSD-3-Clause-LBNL" ]
4
2020-10-06T20:47:47.000Z
2022-02-08T01:17:29.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
28.515306
79
0.637144
e87ad37dffd619d38fdf5984c35198aa2b214965
5,491
py
Python
tests/test_ccm.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_ccm.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_ccm.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging import numpy as np import pytest from ophyd.sim import make_fake_device import pcdsdevices.ccm as ccm logger = logging.getLogger(__name__) SAMPLE_ALIO = 4.575 # Current value as of writing this file SAMPLE_THETA = 1.2 # Modest angle SAMPLE_WAVELENGTH = 1.5 # hard xray # Make sure the calcs are ...
34.534591
79
0.710071
e87ae092b062999cd5a75e75a060622b00e27fba
1,851
py
Python
utils/tf_utils.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
18
2019-10-17T23:47:03.000Z
2022-03-28T14:37:02.000Z
utils/tf_utils.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
4
2020-08-18T20:02:03.000Z
2022-02-23T00:16:45.000Z
utils/tf_utils.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
8
2019-11-22T06:20:57.000Z
2021-11-08T20:32:57.000Z
""" Helper functions to build up the networks and make it looks neat """ import tensorflow as tf def leaky_relu(inputs, alpha = 0.01): return 0.5 * (1 + alpha) * inputs + 0.5 * (1-alpha) * tf.abs(inputs) def activation_fun(inputs, activation_term): """ control which activation functions to use after the convo...
28.921875
77
0.645057
e87aff29b363ada02ec1693c0b389c1281f2d57e
2,482
py
Python
examples/basics/weights_persistence.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
20
2016-04-04T06:15:43.000Z
2021-04-18T18:40:30.000Z
examples/basics/weights_persistence.py
NLPDev/tflearn
77436978c62124bd91ef739dc77c9ea58277c779
[ "MIT" ]
null
null
null
examples/basics/weights_persistence.py
NLPDev/tflearn
77436978c62124bd91ef739dc77c9ea58277c779
[ "MIT" ]
9
2016-04-26T05:31:47.000Z
2019-08-24T18:12:21.000Z
""" An example showing how to save/restore models and retrieve weights. """ from __future__ import absolute_import, division, print_function import tflearn import tflearn.datasets.mnist as mnist # MNIST Data X, Y, testX, testY = mnist.load_data(one_hot=True) # Model input_layer = tflearn.input_data(shape=[None, 78...
32.233766
80
0.691378
e87b17f2c2130cf6f34eda481ede012fd14adfeb
2,008
py
Python
model/secret.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
model/secret.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
model/secret.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
# Copyright (c) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. This file is # licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
34.033898
96
0.743028
e87b1ffaf00b2458a1d19d13c4348994c2a1288d
6,864
py
Python
alternative_wmiircs/python/pyxp/mux.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
2
2019-03-21T11:47:13.000Z
2019-04-22T18:54:32.000Z
alternative_wmiircs/python/pyxp/mux.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
null
null
null
alternative_wmiircs/python/pyxp/mux.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
1
2022-02-08T01:15:28.000Z
2022-02-08T01:15:28.000Z
# Derived from libmux, available in Plan 9 under /sys/src/libmux # under the following terms: # # Copyright (C) 2003-2006 Russ Cox, Massachusetts Institute of Technology # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Softwa...
29.208511
144
0.514569
e87b2df2e6e383cadb596c56f910b05892e11b31
5,264
py
Python
pyvital/filters/ecg_hrv.py
vitaldb/pyvital
b7b045d92e8db3a9d7f45ea6593e57c73ae8ec11
[ "MIT" ]
5
2019-04-08T05:33:56.000Z
2021-05-07T06:49:25.000Z
pyvital/filters/ecg_hrv.py
vitaldb/pyvital
b7b045d92e8db3a9d7f45ea6593e57c73ae8ec11
[ "MIT" ]
null
null
null
pyvital/filters/ecg_hrv.py
vitaldb/pyvital
b7b045d92e8db3a9d7f45ea6593e57c73ae8ec11
[ "MIT" ]
5
2019-09-17T09:52:55.000Z
2022-02-25T08:30:08.000Z
from .. import arr import numpy as np import math cfg = { 'name': 'ECG - Heart Rate Variability', 'group': 'Medical algorithms', 'desc': 'Calculate Heart Rate Variability. Approximately 60-second data is required for calculating HF component and 120-second for LF. To calculate VLF, a longer signal is neede...
34.405229
186
0.551292
e87b4d3daa7b6bba541e924f7c15eb134bc01034
8,929
py
Python
core/app.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
null
null
null
core/app.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
null
null
null
core/app.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for import requests import json from flask import jsonify app = Flask(__name__) from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Base, Book from urllib.request import urlopen from bs4 import Beautif...
33.95057
110
0.582372
e87b79acee0fe8560f33f14090bc7c73baac11b9
273
py
Python
docs/report/run.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
docs/report/run.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
24
2020-05-05T13:53:17.000Z
2020-08-13T15:58:51.000Z
docs/report/run.py
Brucknem/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
import os from notebook import notebookapp cwd = os.getcwd() runfiles_dir = cwd.split("run.runfiles")[0] bark_root = os.path.join(runfiles_dir, "run.runfiles/bark_ml/docs/report") print("Changing to bark root {}".format(bark_root)) os.chdir(bark_root) notebookapp.main()
24.818182
74
0.761905
e87be15cfc3a1f140b5e115ff9b4f8f15702e683
95,781
py
Python
vnpy/app/cta_strategy_pro/back_testing.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy_pro/back_testing.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy_pro/back_testing.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
# encoding: UTF-8 ''' 本文件中包含的是CTA模块的组合回测引擎,回测引擎的API和CTA引擎一致, 可以使用和实盘相同的代码进行回测。 华富资产 李来佳 ''' from __future__ import division import sys import os import importlib import csv import copy import pandas as pd import traceback import numpy as np import logging import socket import zlib import pickle from bson import binar...
40.862201
129
0.547708
e87bf1519dd20b2467154539d761c3c090a74f1b
9,355
py
Python
app/prepare_flexreceptor4.py
aretas2/dockit-vina
5ae0785e269a4eb5a88cc7c19c9ea440ee4c14a5
[ "MIT" ]
13
2020-06-22T17:30:58.000Z
2022-01-27T12:28:56.000Z
app/prepare_flexreceptor4.py
aretas2/dockit-vina
5ae0785e269a4eb5a88cc7c19c9ea440ee4c14a5
[ "MIT" ]
1
2019-11-21T08:49:52.000Z
2019-11-22T12:26:55.000Z
app/prepare_flexreceptor4.py
aretasg/dock
5ae0785e269a4eb5a88cc7c19c9ea440ee4c14a5
[ "MIT" ]
6
2020-06-22T17:31:13.000Z
2021-10-30T10:15:15.000Z
#!/usr/bin/env python # # # # $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/Utilities24/prepare_flexreceptor4.py,v 1.7.6.1 2015/08/26 22:45:31 sanner Exp $ # import os from MolKit import Read from MolKit.protein import ProteinSet, ResidueSet, AtomSet from MolKit.molecule import BondSet from MolKit.stringS...
40.497835
176
0.572742
e87c34f8189e5a704bf0d81ed42556c5a2e125cd
2,603
py
Python
gui/settings/settingsfile.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
2
2020-04-13T19:22:45.000Z
2020-04-14T17:17:12.000Z
gui/settings/settingsfile.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
null
null
null
gui/settings/settingsfile.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
null
null
null
""" Module to handle an external settings file and its checksum. """ import json from hashlib import md5 from os import path as os_path __all__ = ('SettingsFile',) def _check_file(filename): """ Checks whether the file exist on disk and has some content arguments: - filename: the name of the fil...
25.772277
74
0.569343
e87c406a10b565ccac0e18a6d3be367a41b585ff
193
py
Python
test/PySrc/tests/example_traced.py
Marascax/live-py-plugin
a8ac7170b765c43e0b1d36b44e4abd4eb8fff211
[ "MIT" ]
224
2015-03-22T23:40:52.000Z
2022-03-01T21:45:51.000Z
test/PySrc/tests/example_traced.py
Marascax/live-py-plugin
a8ac7170b765c43e0b1d36b44e4abd4eb8fff211
[ "MIT" ]
371
2015-04-28T05:14:00.000Z
2022-03-28T01:31:22.000Z
test/PySrc/tests/example_traced.py
Marascax/live-py-plugin
a8ac7170b765c43e0b1d36b44e4abd4eb8fff211
[ "MIT" ]
53
2015-10-30T07:52:07.000Z
2022-02-28T12:56:35.000Z
from space_tracer import traced # When tracing another file that imports this file, this decorator shouldn't # mute that other file. @traced def traced_function(): print('Hello, World!')
21.444444
76
0.756477
e87c54cd30e3c1d82722c99d9db75c7a4b7af71c
5,560
py
Python
cm/tests/tests.py
HotMaps/renovation_effect
469a01b4cc805256768d884a3a2ae4560770b734
[ "Apache-2.0" ]
null
null
null
cm/tests/tests.py
HotMaps/renovation_effect
469a01b4cc805256768d884a3a2ae4560770b734
[ "Apache-2.0" ]
2
2020-06-04T20:19:36.000Z
2020-06-04T20:19:36.000Z
cm/tests/tests.py
HotMaps/renovation_effect
469a01b4cc805256768d884a3a2ae4560770b734
[ "Apache-2.0" ]
null
null
null
import unittest from werkzeug.exceptions import NotFound from app import create_app import os.path from shutil import copyfile from .test_client import TestClient UPLOAD_DIRECTORY = '/var/hotmaps/cm_files_uploaded' if not os.path.exists(UPLOAD_DIRECTORY): os.makedirs(UPLOAD_DIRECTORY) os.chmod(UPLOAD_DIRECTOR...
42.769231
80
0.708273
e87c65bde9dd775f04fa43b995f676bf65ce4ba7
163
py
Python
tests/__init__.py
bow/volt
5940926e2e4a01b4ee32a10f7cc8b44a42530307
[ "BSD-3-Clause" ]
7
2015-06-23T11:33:11.000Z
2022-02-02T10:41:04.000Z
tests/__init__.py
bow/volt
5940926e2e4a01b4ee32a10f7cc8b44a42530307
[ "BSD-3-Clause" ]
59
2016-09-12T21:04:50.000Z
2021-11-25T21:57:10.000Z
tests/__init__.py
bow/volt
5940926e2e4a01b4ee32a10f7cc8b44a42530307
[ "BSD-3-Clause" ]
2
2017-03-16T00:12:07.000Z
2017-05-05T13:05:11.000Z
# -*- coding: utf-8 -*- """ Tests for volt ~~~~~~~~~~~~~~ :copyright: (c) 2012-2020 Wibowo Arindrarto <contact@arindrarto.dev> :license: BSD """
16.3
72
0.527607
e87c7d16269c641410b3bdc6917d8fbea47b6d27
4,705
py
Python
tests/models/models_test.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
tests/models/models_test.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
tests/models/models_test.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
import torch import pytest from torch.testing import assert_allclose import numpy as np import soundfile as sf import asteroid from asteroid import models from asteroid.models.base_models import BaseModel from asteroid.models import ConvTasNet, DPRNNTasNet, DPTNet, LSTMTasNet, DeMask from asteroid.models import SuDORMR...
30.751634
97
0.711796
e87c8235464994cd7e5c1ad1b03e4a4649e6fb12
11,988
py
Python
lib/charms/grafana_k8s/v0/grafana_source.py
rbarry82/loki-operator
6849d59c840b7f1679595d48506802745b835cf1
[ "Apache-2.0" ]
1
2021-08-18T15:36:47.000Z
2021-08-18T15:36:47.000Z
lib/charms/grafana_k8s/v0/grafana_source.py
rbarry82/loki-operator
6849d59c840b7f1679595d48506802745b835cf1
[ "Apache-2.0" ]
21
2021-08-30T17:06:22.000Z
2021-12-07T14:37:04.000Z
lib/charms/grafana_k8s/v0/grafana_source.py
rbarry82/loki-operator
6849d59c840b7f1679595d48506802745b835cf1
[ "Apache-2.0" ]
5
2021-07-19T20:55:34.000Z
2021-11-19T23:51:23.000Z
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. """A library for working with Grafana datasources for charm authors.""" import json import logging from typing import Dict, List, Optional from ops.charm import CharmBase, CharmEvents, RelationDepartedEvent, RelationJoinedEvent from ops.framew...
36.886154
99
0.635052
e87d0f97d2b4405e91091a16c2bfc2ed35fcc7c0
387
py
Python
ehelp/wsgi.py
Taimur-DevOps/ehelp_fyp
626fe103b0f3fd5638d01a247177b04771d273b0
[ "Apache-2.0" ]
7
2020-05-13T10:12:26.000Z
2020-06-19T12:06:21.000Z
ehelp/wsgi.py
Taimur-DevOps/ehelp_fyp
626fe103b0f3fd5638d01a247177b04771d273b0
[ "Apache-2.0" ]
10
2020-05-13T10:15:39.000Z
2020-07-04T10:12:49.000Z
ehelp/wsgi.py
Taimur-DevOps/ehelp_fyp
626fe103b0f3fd5638d01a247177b04771d273b0
[ "Apache-2.0" ]
1
2021-03-05T08:20:31.000Z
2021-03-05T08:20:31.000Z
""" WSGI config for ehelp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
e87d1f0a454a7fa742eb17b63870ec58d3acdd77
1,123
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "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 ...
29.552632
94
0.62333
e87d2360931b817561d9bb58c72761a61a9bdc51
41
py
Python
readonly_model/exceptions.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
readonly_model/exceptions.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
readonly_model/exceptions.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
class ReadOnlyModel(Exception): pass
13.666667
31
0.756098
e87d5041c1f6b7c0d5675a83662455770c663a29
3,203
py
Python
python/phonenumbers/data/region_UZ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_UZ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_UZ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. UZ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_UZ = PhoneMetadata(id='UZ', country_code=998, international_prefix='810', general_desc=PhoneNumberDesc(national_number_pattern='[679]\\d{8}', possible_number_pattern='...
152.52381
1,302
0.622854
e87d89f08af13f444aebfa6602a75db0c0567bb2
186
py
Python
workflow/ignite/worker_init.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
workflow/ignite/worker_init.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
workflow/ignite/worker_init.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
from workflow.torch import set_seeds def worker_init(seed, trainer, worker_id): set_seeds( seed * 2 ** 16 + worker_id * 2 ** 24 + trainer.state.epoch )
18.6
42
0.596774
e87d8e5af06370cf162811dcb7845ab2fa5236aa
1,220
py
Python
api/api/admin.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
api/api/admin.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
api/api/admin.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models.user import User from django.apps import apps class UserAdmin(admin.ModelAdmin): exclude = [ "authorization_guid", "authorization_directory", "authorization_email", "groups", "user_permissions", "password", "disp...
24.897959
62
0.636066
e87d8edf39e7934cc02137b0dd43bcd3fc5edec8
6,166
py
Python
asposewordscloud/models/requests/insert_style_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/insert_style_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/insert_style_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="insert_style_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a ...
49.328
255
0.671262
e87dc97510e18794ede68f16d35a30685a496cb4
6,637
py
Python
safety/pyurg/pyurg.py
EmilRyberg/P6BinPicking
c33b650db3ae16c56d46d12bfbc59d26c0d9e6aa
[ "MIT" ]
1
2021-08-04T16:18:22.000Z
2021-08-04T16:18:22.000Z
pyurg/pyurg.py
EmilRyberg/P5BinPicking
4a4c302b8aa0ea8e3d361ef62ef3742d8b716352
[ "MIT" ]
null
null
null
pyurg/pyurg.py
EmilRyberg/P5BinPicking
4a4c302b8aa0ea8e3d361ef62ef3742d8b716352
[ "MIT" ]
1
2021-08-03T03:41:41.000Z
2021-08-03T03:41:41.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # The MIT License # # Copyright (c) 2010 Yota Ichino # # 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 lim...
29.629464
99
0.564412
e87dd1057475de1cdcbc2f3ecd1fd83ec82f1e23
3,545
py
Python
vmware_nsx/services/lbaas/lb_const.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/lbaas/lb_const.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/lbaas/lb_const.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2015 VMware, 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 a...
35.45
78
0.759944
e87dde93caa69a6d89e2cb96666ca61363be239a
6,563
py
Python
azure-devops/azext_devops/vstsCompressed/git/v4_0/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/vstsCompressed/git/v4_0/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
azure-devops/azext_devops/vstsCompressed/git/v4_0/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
33.146465
94
0.762304
e87de519a3b15e967b1447cf9097ffd317c4686e
4,744
py
Python
tests/test_linearalgebra.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
7
2021-06-25T12:57:08.000Z
2021-12-29T21:53:30.000Z
tests/test_linearalgebra.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-08-11T02:16:12.000Z
2021-08-12T06:05:21.000Z
tests/test_linearalgebra.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-09-20T21:25:55.000Z
2021-09-20T21:25:55.000Z
""" jmath/tests/test_linearalgebra.py Runs tests on linear algebra component using pytest Author: Jordan Hay Date: 2021-06-25 """ # - Imports from ..jmath.linearalgebra import Vector, Point, Line from .tools import random_integer, random_integers, repeat from typing import Tuple, List from math impo...
25.643243
91
0.646501
e87e00651d222dc81ef4d05ea179eaa51c8db556
210
py
Python
trebelge/trebelge/doctype/tr_ubl_attachment/tr_ubl_attachment.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
null
null
null
trebelge/trebelge/doctype/tr_ubl_attachment/tr_ubl_attachment.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
null
null
null
trebelge/trebelge/doctype/tr_ubl_attachment/tr_ubl_attachment.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
1
2022-03-17T21:53:07.000Z
2022-03-17T21:53:07.000Z
# Copyright (c) 2021, Framras AS-Izmir and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class TRUBLAttachment(Document): pass
21
55
0.780952