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
74fb6d88ed1e6c302deb7779e1dc1b1271f4191a
3,384
py
Python
experiment/BestRTTClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:14.000Z
2021-06-15T06:21:14.000Z
experiment/BestRTTClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
null
null
null
experiment/BestRTTClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:18.000Z
2021-06-15T06:21:18.000Z
from experiment.TimeWindowClient import TimeWindowClient import logging, math import numpy as np class BestRTTClient(TimeWindowClient): def __init__(self, id, pollCycle, rttWindowSize, bandWidthWindowSize, delay_between_packets, ...
36
110
0.588948
74fb96363bcbb01044683589a174d2edacb9ab52
3,518
py
Python
exploration/thunder_implementation.py
dsp-uga/team-coombs
bcf875e03b2b8986a6361cb9606059e75af3df51
[ "MIT" ]
null
null
null
exploration/thunder_implementation.py
dsp-uga/team-coombs
bcf875e03b2b8986a6361cb9606059e75af3df51
[ "MIT" ]
null
null
null
exploration/thunder_implementation.py
dsp-uga/team-coombs
bcf875e03b2b8986a6361cb9606059e75af3df51
[ "MIT" ]
3
2019-04-04T07:01:24.000Z
2019-05-02T04:47:11.000Z
#importing useful directory from os import listdir import numpy as np from glob import glob import numpy as np import getopt import argparse import json import cv2 import json import thunder as td from extraction import NMF import os def read_dir(path): onlyfiles = [f for f in listdir(path)] return onlyfiles ...
28.836066
91
0.668277
74fbc6feae244382c6edb84ec7abdb49b73c10d9
3,013
py
Python
tests/test_convert_mirax.py
JamesDarcy616/wsidicomizer
c38c062a2b1c31ce30be00ef71c69e34826c8f96
[ "Apache-2.0" ]
null
null
null
tests/test_convert_mirax.py
JamesDarcy616/wsidicomizer
c38c062a2b1c31ce30be00ef71c69e34826c8f96
[ "Apache-2.0" ]
null
null
null
tests/test_convert_mirax.py
JamesDarcy616/wsidicomizer
c38c062a2b1c31ce30be00ef71c69e34826c8f96
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 SECTRA AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
35.034884
77
0.687355
74fbcc3d50d419d5507ecfb4b78bc981dc0603fe
560
py
Python
tests/settings.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
tests/settings.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
tests/settings.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
1
2022-03-04T22:00:32.000Z
2022-03-04T22:00:32.000Z
SECRET_KEY = 'cat' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'channels', 'channels.delay', 'tests', ) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', } } CHANNEL_LAYERS = {...
18.064516
60
0.573214
74fbcd46f1a4fa27c2ae5ffff394bc59b1233569
72
py
Python
datetime_machine/version.py
develmaycare/python-datetime-machine
35a04ae48274d04f686041c5846608c83de8ff99
[ "BSD-3-Clause" ]
null
null
null
datetime_machine/version.py
develmaycare/python-datetime-machine
35a04ae48274d04f686041c5846608c83de8ff99
[ "BSD-3-Clause" ]
7
2016-12-19T22:35:08.000Z
2017-03-12T21:12:32.000Z
datetime_machine/version.py
develmaycare/python-datetime-machine
35a04ae48274d04f686041c5846608c83de8ff99
[ "BSD-3-Clause" ]
null
null
null
DATE = "2021-02-28" VERSION = "0.10.3-x" MAJOR = 0 MINOR = 10 PATCH = 3
12
20
0.597222
74fc11faa30e5a4fd6151626f97986fb30f2a9b8
1,198
py
Python
services/traction/acapy_wrapper/models/did_endpoint.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/did_endpoint.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/did_endpoint.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class DIDEndpoint(BaseModel): """NOTE: This class is ...
27.227273
112
0.626878
74fc2587f5239fbf82425e37defc4f6a013a8e0c
2,707
py
Python
fetch/api.py
andrewhead/tutorial-data
3e8cee4a30cbb4b5c92be3009a910a6ff23744f3
[ "MIT" ]
2
2019-03-24T18:29:07.000Z
2019-12-27T23:11:17.000Z
fetch/api.py
andrewhead/tutorial-data
3e8cee4a30cbb4b5c92be3009a910a6ff23744f3
[ "MIT" ]
null
null
null
fetch/api.py
andrewhead/tutorial-data
3e8cee4a30cbb4b5c92be3009a910a6ff23744f3
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import requests import logging import time import re logger = logging.getLogger('data') USER_AGENT = "Andrew Head (for academic research) <andrewhead@eecs.berekeley.edu>" default_requests_session = requests.Session() default_req...
28.494737
89
0.650905
74fc781574d5e235a9556c565751f7a97df29bd0
9,409
py
Python
chroma/cache.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/cache.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/cache.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
'''chroma.cache: On-disk geometry and bounding volume hierarchy cache. The ``Cache`` class is used to manage an on-disk cache of geometry and BVH objects, which are slow to calculate. By default, the cache is in $HOME/.chroma. Currently this cache is not thread or process-safe when a writing process is present. ''' ...
38.093117
82
0.631098
74fc9ef657db64e31578261d755fb8eba112b9fc
54,524
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.696946
104
0.6607
74fcac63cb447175e9b37aa21e52ada383e57aa2
711
py
Python
src/python/grpcio/grpc/_grpcio_metadata.py
tomerv/grpc
27662173e750107a4520d5d6972544d67a6a0203
[ "Apache-2.0" ]
4
2018-10-12T17:18:41.000Z
2020-06-21T19:31:47.000Z
src/python/grpcio/grpc/_grpcio_metadata.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
9
2021-06-01T23:18:19.000Z
2022-02-22T17:54:02.000Z
src/python/grpcio/grpc/_grpcio_metadata.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
1
2022-01-18T07:59:33.000Z
2022-01-18T07:59:33.000Z
# Copyright 2017 gRPC 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 writing...
39.5
99
0.758087
74fcd28cb5919cdadb17b107136e82191111ac85
2,452
py
Python
networks.py
fiorenza2/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
17
2021-01-28T17:54:23.000Z
2021-12-21T15:22:22.000Z
networks.py
jparkerholder/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
1
2021-02-15T19:28:05.000Z
2021-03-14T23:25:04.000Z
networks.py
fiorenza2/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
2
2021-06-21T12:14:44.000Z
2021-08-08T10:04:30.000Z
import torch import torch.nn as nn from torch.distributions import Normal, TransformedDistribution from utils import TanhTransform device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") class MLPNetwork(nn.Module): def __init__(self, input_dim, output_dim, hidden_size=256): super(M...
32.263158
74
0.60522
74fd20bc2e5ace9ff68a55c91b7d356b08ec7168
4,585
py
Python
tests/test_environment.py
zebengberg/lake-monster
d1158e3e1b46666c310cf50ce778a327a321a9e5
[ "MIT" ]
1
2020-12-31T14:43:12.000Z
2020-12-31T14:43:12.000Z
tests/test_environment.py
zebengberg/lake-monster
d1158e3e1b46666c310cf50ce778a327a321a9e5
[ "MIT" ]
null
null
null
tests/test_environment.py
zebengberg/lake-monster
d1158e3e1b46666c310cf50ce778a327a321a9e5
[ "MIT" ]
null
null
null
"""Test the environment module.""" import os import glob from tqdm import tqdm import numpy as np import imageio from tf_agents.environments.utils import validate_py_environment from tf_agents.environments.tf_py_environment import TFPyEnvironment from tf_agents.policies.random_py_policy import RandomPyPolicy from tf_...
33.224638
91
0.712759
74fd259b985bb754fcef75bcc666ce283ae49100
794
py
Python
not_django/source/views.py
vb64/test.tasks
799fd01e1b3a9ebb1357e79168cb33aa236a3e88
[ "MIT" ]
null
null
null
not_django/source/views.py
vb64/test.tasks
799fd01e1b3a9ebb1357e79168cb33aa236a3e88
[ "MIT" ]
null
null
null
not_django/source/views.py
vb64/test.tasks
799fd01e1b3a9ebb1357e79168cb33aa236a3e88
[ "MIT" ]
null
null
null
from not_django import Response, render def not_implemented(request): return Response(body="Not implemented yet") def comment_list(request): return Response(body=render('list.html')) def comment_new(request): return Response(body=render('comment.html')) def statistic(request): return Response(bo...
18.045455
49
0.593199
74fd35e6864bdbded814eecb8b49085a2126b452
5,111
py
Python
erl_numpy/numpy_affwild.py
ibugueno/Event-Camera-Applications
16d62fc548e3abf8b994c0d50f8a1aa3dadc7095
[ "MIT" ]
1
2021-07-06T08:53:26.000Z
2021-07-06T08:53:26.000Z
erl_numpy/numpy_affwild.py
ibugueno/Event-Camera-Applications
16d62fc548e3abf8b994c0d50f8a1aa3dadc7095
[ "MIT" ]
null
null
null
erl_numpy/numpy_affwild.py
ibugueno/Event-Camera-Applications
16d62fc548e3abf8b994c0d50f8a1aa3dadc7095
[ "MIT" ]
1
2021-07-06T08:53:26.000Z
2021-07-06T08:53:26.000Z
import math import itertools from itertools import groupby from dv import AedatFile from dv import LegacyAedatFile import numpy as np import time import os import shutil window_time = 0.1 #ms stop_time = 60 #s counter = [0, 0, 0, 0, 0, 0, 0, 0] def mygrouper(n, iterable): args = [iter(iterable)] * n ret...
24.572115
148
0.505772
74fd707cec22e1df1722e297f072eb7881f572f7
1,486
py
Python
monai/losses/cosine_embedding_loss.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/losses/cosine_embedding_loss.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/losses/cosine_embedding_loss.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
from torch.nn.modules.loss import _Loss import torch class CosineEmbeddingLoss(_Loss): """ Wrapper for pytorch CosineEmbeddingLoss see torch.nn.CosineEmbeddingLoss(margin=0.0, reduce=None, reduction='mean') """ def __init__( self, margin: float = 0.0, reduction: str = 'me...
35.380952
108
0.569987
74fd752703f0ef2db69e2eead7d18cacb01dd343
9,306
py
Python
neuralmonkey/config/builder.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-24T21:10:03.000Z
2019-05-22T13:19:35.000Z
neuralmonkey/config/builder.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/config/builder.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-25T01:36:44.000Z
2019-12-13T15:04:03.000Z
"""Configuration Object Builder. This module is responsible for instantiating objects specified by the experiment configuration. """ import collections import importlib from argparse import Namespace from inspect import signature, isclass, isfunction, Parameter from typing import Any, Dict, Set, Tuple from neuralmon...
37.075697
79
0.608102
74fd856804ebbc5f2082b313928d669d933775e4
36,553
py
Python
miniUniFi.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-miniUniFi
8b25aaa658200606b3749d2e0dd58baf31a6aceb
[ "MIT" ]
null
null
null
miniUniFi.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-miniUniFi
8b25aaa658200606b3749d2e0dd58baf31a6aceb
[ "MIT" ]
33
2020-10-22T04:11:20.000Z
2021-09-08T16:16:37.000Z
miniUniFi.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-miniUniFi
8b25aaa658200606b3749d2e0dd58baf31a6aceb
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- #################### import time import requests import logging import json from datetime import datetime requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning) # Indigo really doesn't like dicts with keys that start wit...
47.226098
162
0.56414
74fd950b983bce6da050e35965f26f86e9a0cc92
563
py
Python
setup.py
simonpf/bunny_lab
0d2928313162b6b0f00dcbd72024931368a426f9
[ "MIT" ]
null
null
null
setup.py
simonpf/bunny_lab
0d2928313162b6b0f00dcbd72024931368a426f9
[ "MIT" ]
null
null
null
setup.py
simonpf/bunny_lab
0d2928313162b6b0f00dcbd72024931368a426f9
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="bunny_lab", version="0.0.3", author="Simon Pfreundschuh", author_email="simon.pfreundschuh@chalmers.se", description="An interactive Python quest to save the bunnies.", url="https://github.com/simonpf/bunny_lab", packages=setuptools.find_packages(),...
26.809524
67
0.630551
74fd9cf312fbed2f7fc8b15f66d7292e0318a148
9,171
py
Python
docs/conf.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
5
2017-03-17T17:25:05.000Z
2022-01-19T14:23:30.000Z
docs/conf.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
8
2016-11-09T07:46:28.000Z
2021-06-21T04:03:31.000Z
docs/conf.py
jsreyl/nmrstarlib
e601859760966f853fd5d07af454a9c9cb75dbeb
[ "MIT" ]
2
2016-08-25T17:51:18.000Z
2021-05-21T21:51:39.000Z
# -*- coding: utf-8 -*- # # nmrstarlib documentation build configuration file, created by # sphinx-quickstart on Fri May 27 01:36:58 2016. # # 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.178947
111
0.720205
74fd9d49e54edaa63a3155581b1515c1d0d3477e
4,751
py
Python
rttl.py
gauravssnl/Symbian-Python-Files
59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502
[ "MIT" ]
7
2018-05-28T11:55:07.000Z
2022-03-26T16:45:00.000Z
rttl.py
gauravssnl/Symbian-Python-Files
59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502
[ "MIT" ]
null
null
null
rttl.py
gauravssnl/Symbian-Python-Files
59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502
[ "MIT" ]
3
2019-04-23T19:28:12.000Z
2020-03-27T10:38:02.000Z
# http://www.pymcu.com/PlayingSounds.html # rttl.py version 1.0.1 (ported version to pyS60) # import e32 import pitchy # RTTL variable to hold RTTL song #RTTL = 'Bond:d=4,o=5,b=50:32p,16c#6,32d#6,32d#6,16d#6,8d#6,16c#6,16c#6,16c#6,16c#6,32e6,32e6,16e6,8e6,16d#6,16d#6,16d#6,16c#6,32d#6,32d#6,16d#6,8d#6,16c#...
42.801802
247
0.623027
74fdda6e8f9c0a556f1ee501fc10c6ecfa375e42
3,271
py
Python
liota/entities/registered_entity.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
361
2016-04-29T14:07:18.000Z
2021-01-23T10:15:39.000Z
liota/entities/registered_entity.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
148
2016-05-26T19:27:04.000Z
2021-02-22T05:39:40.000Z
liota/entities/registered_entity.py
giyyanan/liota
838d8407f8b167d6ad25470dbd66deaec88607fe
[ "BSD-2-Clause" ]
153
2016-04-28T22:46:23.000Z
2020-02-13T19:01:07.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------# # Copyright © 2015-2016 VMware, Inc. All Rights Reserved. # # # # Licensed under the BSD 2-Clause License (the “License...
54.516667
82
0.529196
74fe13b6e3f241d1ba4bae41220bd1c188d8a687
29
py
Python
symneqsys/tests/test_solver.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
1
2015-01-10T09:00:04.000Z
2015-01-10T09:00:04.000Z
symneqsys/tests/test_solver.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
null
null
null
symneqsys/tests/test_solver.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
null
null
null
def test_Solver(): pass
7.25
18
0.62069
74fe6e44e916d4873ee8c5c4b00b9d70e6a3bf33
501
py
Python
aslprep/sdcflows/__init__.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
2
2022-03-18T18:31:12.000Z
2022-03-18T18:31:26.000Z
aslprep/sdcflows/__init__.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
null
null
null
aslprep/sdcflows/__init__.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
null
null
null
"""SDCflows - :abbr:`SDC (susceptibility distortion correction)` by DUMMIES, for dummies.""" __packagename__ = "sdcflows" __copyright__ = "2020, The NiPreps developers" try: from ._version import __version__ except ModuleNotFoundError: from pkg_resources import get_distribution, DistributionNotFound try: ...
35.785714
92
0.762475
74fe76758b27ee7be7a62dbec63794a6f2982a46
66,597
py
Python
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_2/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_2/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_2/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
37.56176
136
0.649203
74fe91771e509a7adc1566306a49e0de01e54721
16,242
py
Python
redash/query_runner/elasticsearch.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
1
2019-10-25T07:30:26.000Z
2019-10-25T07:30:26.000Z
redash/query_runner/elasticsearch.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
null
null
null
redash/query_runner/elasticsearch.py
aladdinwang/redash
934b340ff7dab7caa3c91618ffdbe109dfdb31f5
[ "BSD-2-Clause" ]
null
null
null
import logging import sys import urllib import requests from requests.auth import HTTPBasicAuth from six import string_types, text_type from redash.query_runner import * from redash.utils import json_dumps, json_loads from redash.utils.compat import long try: import http.client as http_client except ImportError:...
36.997722
172
0.567418
74fec5d4a3b94c426c3d9b46eff2cea589ddb636
10,004
py
Python
build-scripts/cpe_generate.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
build-scripts/cpe_generate.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
build-scripts/cpe_generate.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 from __future__ import print_function import fnmatch import sys import os import ssg import argparse import ssg.build_cpe import ssg.id_translate import ssg.products import ssg.xml import ssg.yaml # This script requires two arguments: an OVAL file and a CPE dictionary file. # It is designed to ex...
43.68559
96
0.639644
74fec9f97a11fb973d008a71402c9938ad5be616
3,122
py
Python
attacks/execute.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
null
null
null
attacks/execute.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
1
2020-11-08T20:21:13.000Z
2020-11-08T20:21:13.000Z
attacks/execute.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
3
2018-05-24T14:40:54.000Z
2021-07-10T17:54:26.000Z
#! /usr/bin/env python """ A script that performs an attack planned by the `censor.py` script """ import json import os import re from pyproxy.files import Files from pyproxy.safestore.providers.redis_provider import RedisProvider BLOCKS_TO_ERASE_DIR = os.path.join(os.path.dirname(__file__), "blocks-to-erase") PATH_...
36.302326
99
0.628764
74fecee9ec3f008bc9d32b27dcecf5a61763a087
8,734
py
Python
husk_experiment_scripts/ben-finetuning.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
husk_experiment_scripts/ben-finetuning.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
husk_experiment_scripts/ben-finetuning.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
"""Script for launching DIAYN experiments. Usage: python mujoco_all_diayn.py --env=point --snapshot_dir=<snapshot_dir> --log_dir=/dev/null """ from rllab.misc.instrument import VariantGenerator from sac.algos import SAC from sac.envs.meta_env import FixedOptionEnv from sac.misc.instrument import run_sac_experime...
30.117241
108
0.575223
74fed311f242e09420cc112de062b5d95c86868c
4,468
py
Python
docs/conf.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
docs/conf.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
docs/conf.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.244755
79
0.604521
74fedbf35e8c9d915ee4ef41c5f730b5698f5188
4,930
py
Python
poetry.py
sabo/steven
4c7b4e350e7cdafbb3f491701d1d99a518cb54d8
[ "Unlicense" ]
null
null
null
poetry.py
sabo/steven
4c7b4e350e7cdafbb3f491701d1d99a518cb54d8
[ "Unlicense" ]
null
null
null
poetry.py
sabo/steven
4c7b4e350e7cdafbb3f491701d1d99a518cb54d8
[ "Unlicense" ]
null
null
null
import mongoengine as mge import random import re import music import murmur from db_tools import User, Poem from hyphen import Hyphenator hy = Hyphenator() def generate_syllable_chain(syllables, markov): out = [] word = random.choice(markov.keys()) #Three-letter words and smaller are one syllable. #I...
28.830409
81
0.600609
74fedda298a203e9d6c96a15c5b62642f4f7c841
1,939
py
Python
py/0155.min-stack.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0155.min-stack.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0155.min-stack.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=155 lang=python3 # # [155] Min Stack # # https://leetcode.com/problems/min-stack/description/ # # algorithms # Easy (46.38%) # Likes: 4691 # Dislikes: 436 # Total Accepted: 686.8K # Total Submissions: 1.5M # Testcase Example: '["MinStack","push","push","push","getMin","pop","top","getMin"...
20.62766
118
0.583806
74fee108a8ae24a1458f5e39509fb77981dbca1d
8,828
py
Python
sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #---------------------------------------------------------------------...
30.441379
116
0.495242
74fef715463efb0ef2b37e0ce144894a44da9830
10,483
py
Python
src/compas_singular/datastructures/mesh_quad/grammar/add_strip.py
christiandimitri/compas_singular
4a80b30664b07e15eb799229171bbc02c27e0efc
[ "MIT" ]
1
2021-04-19T15:09:21.000Z
2021-04-19T15:09:21.000Z
src/compas_singular/datastructures/mesh_quad/grammar/add_strip.py
christiandimitri/compas_singular
4a80b30664b07e15eb799229171bbc02c27e0efc
[ "MIT" ]
null
null
null
src/compas_singular/datastructures/mesh_quad/grammar/add_strip.py
christiandimitri/compas_singular
4a80b30664b07e15eb799229171bbc02c27e0efc
[ "MIT" ]
null
null
null
from compas.topology import breadth_first_paths from compas.datastructures import mesh_substitute_vertex_in_faces from compas_singular.datastructures.mesh_quad.grammar_pattern import strip_polyedge_update from compas.utilities import pairwise __all__ = [ ] def add_strips(mesh, polyedges, callback=None, callback_arg...
29.282123
135
0.671087
74ff032317417038e537042aa53c55ef8f47eea0
10,120
py
Python
privacy/privacy/analysis/rdp_accountant.py
chenlin0102/Differentially-private-GDO
ae3f72fd128da6a4a9b8713624e3d18ab163e33e
[ "MIT" ]
1
2022-02-27T12:22:27.000Z
2022-02-27T12:22:27.000Z
privacy/privacy/analysis/rdp_accountant.py
chenlin0102/Differentially-private-GDO
ae3f72fd128da6a4a9b8713624e3d18ab163e33e
[ "MIT" ]
null
null
null
privacy/privacy/analysis/rdp_accountant.py
chenlin0102/Differentially-private-GDO
ae3f72fd128da6a4a9b8713624e3d18ab163e33e
[ "MIT" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
31.724138
81
0.625988
74ff06d64aa4f40ff1bbc8cbf0d31113e5b6eb2d
28,211
py
Python
rig/old/attrManager/ui.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/old/attrManager/ui.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/old/attrManager/ui.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
import maya.cmds as mc import maya.OpenMayaUI as mui from functools import partial import maya.mel as mel qtVersion = mc.about(qtVersion=True) # import pyside, do qt version check for maya 2017 > if qtVersion.startswith('4'): from PySide.QtGui import * from PySide.QtCore import * import shiboken else: ...
46.096405
141
0.627202
74ff176071e54276a28070fbb7343b9181b29483
958
py
Python
task_controller/models.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
task_controller/models.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
task_controller/models.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
""" Database schemas of "some_task" app """ from uuid import uuid4 from django.db import models from task_controller import constants STATUSES = ( (constants.INIT_TASK_STATUS, constants.INIT_TASK_STATUS), (constants.RUN_TASK_STATUS, constants.RUN_TASK_STATUS), (constants.SUSPEND_TASK_STATUS, constants.SUS...
31.933333
73
0.656576
74ff1c5f877d934b315da6f9d3b18245d80ec464
54
py
Python
Python-Study/Study/Day1/range.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Python-Study/Study/Day1/range.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Python-Study/Study/Day1/range.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
for i in range (0,200000,199): print("Number:",i)
18
30
0.611111
74ff2490b0ad20b8e61431b9f7d827f1be332f6f
5,594
py
Python
django_libsass.py
mohammad-nabeel/django-libsass
f049620ea158afb66dfc831637b7006223e3b969
[ "BSD-3-Clause" ]
249
2015-01-08T00:18:02.000Z
2022-03-24T16:38:28.000Z
django_libsass.py
mohammad-nabeel/django-libsass
f049620ea158afb66dfc831637b7006223e3b969
[ "BSD-3-Clause" ]
39
2015-01-14T07:20:10.000Z
2022-03-27T23:58:35.000Z
django_libsass.py
mohammad-nabeel/django-libsass
f049620ea158afb66dfc831637b7006223e3b969
[ "BSD-3-Clause" ]
35
2015-03-06T22:34:59.000Z
2021-07-03T06:36:03.000Z
import base64 import json import re import os import django from django.conf import settings from django.contrib.staticfiles.finders import get_finders if django.VERSION >= (1,10): from django.templatetags.static import static as django_static else: from django.contrib.staticfiles.templatetags.staticfiles impo...
36.324675
94
0.676439
74ff594067bdd8576d190e8ee173e971d106f8d2
151
py
Python
src/test_only_plugins/heroku/__init__.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/heroku/__init__.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/heroku/__init__.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from test_only_plugins.base import assert_package_not_installed assert_package_not_installed("sentry-heroku")
25.166667
63
0.887417
74ff9a0e4c34176a88351a01ae86470226a547ee
1,462
py
Python
benchmark/BinaryNet/cifar10.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
75
2019-03-19T07:36:56.000Z
2021-12-23T02:34:59.000Z
benchmark/BinaryNet/cifar10.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
10
2019-03-19T21:16:56.000Z
2019-04-16T15:05:37.000Z
benchmark/BinaryNet/cifar10.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
9
2019-08-12T10:33:55.000Z
2021-07-23T02:10:06.000Z
import os import sys sys.path.insert(0, os.path.abspath('..')) import QuantTorch as QtT #import torchvision.models as models import torch from models.cifar10.AlexNetBin import AlexNetBin from torchbearer.callbacks import on_step_training #from test import AlexNetBin BATCH_SIZE = 256 EPOCH_NB = 54 DEVICE = QtT.device...
23.967213
116
0.69357
74ffa1ae1583d0e20cdb66454105f1387b3a5359
10,538
py
Python
tests/test_locality_NeighborList.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_locality_NeighborList.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_locality_NeighborList.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import numpy.testing as npt import freud.locality import unittest class TestNeighborList(unittest.TestCase): def setUp(self): # Define values self.L = 10 self.N = 40 self.query_args = dict(mode="nearest", num_neighbors=6, r_guess=3, ...
38.742647
79
0.637597
74ffa823329b55b73ba93c60014068633107e9b6
1,987
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
30.106061
94
0.712129
74ffbe36e0abc16ac26f8c6bc9d24931bb672df5
659
py
Python
phr/ubigeo/migrations/0010_auto_20170411_1452.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ubigeo/migrations/0010_auto_20170411_1452.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ubigeo/migrations/0010_auto_20170411_1452.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-11 14:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ubigeo', '0009_auto_20170411_1444'), ] operations = [ migrations.RenameField...
25.346154
61
0.597876
74ffd36fff307cae5522272bfb0476734e3dd043
1,188
py
Python
cassandra-gateway-server/src/handlers/BaseQueryHandler.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
2
2020-01-13T14:39:32.000Z
2020-02-02T13:20:45.000Z
cassandra-gateway-server/src/handlers/BaseQueryHandler.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
null
null
null
cassandra-gateway-server/src/handlers/BaseQueryHandler.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
1
2020-01-17T11:02:06.000Z
2020-01-17T11:02:06.000Z
# -*- coding: utf-8 -*- import logging from datetime import datetime from tornado.escape import json_decode from handlers.BaseHandler import BaseHandler logger = logging.getLogger(__name__) class BaseQueryHandler(BaseHandler): def data_received(self, _): # we don't care about streamed data pass...
27
96
0.63468
2d0003db8d86d0a76924a3cfe2d43601a9839950
584
py
Python
systems/playout/pa_system_6_3.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
systems/playout/pa_system_6_3.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
systems/playout/pa_system_6_3.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
from util.playout import standard_playout import os from conf.settings import DATA_PATH WORK_PATH = os.path.abspath(os.getcwd()) if __name__ == "__main__": pn = "data/systems/pa_system_6_3.pnml" f_pop = "data/variants/pa_system_6_3_pop.txt" f_train = "data/variants/pa_system_6_3_train.txt" f_test = "...
38.933333
113
0.768836
2d00269c98fb9a696af2140755e36110681e28dd
1,858
py
Python
ttrpy/momentum/mfi.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
17
2019-03-02T03:37:34.000Z
2021-12-20T03:19:18.000Z
ttrpy/momentum/mfi.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
1
2019-07-18T18:43:34.000Z
2019-07-23T17:52:20.000Z
ttrpy/momentum/mfi.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
9
2019-06-02T08:46:51.000Z
2021-01-08T12:39:40.000Z
# Author: joelowj # License: Apache License, Version 2.0 import pandas as pd def mfi(df, high, low, close, volume, mfi, n): """ The Money Flow Index (MFI) calculates the ratio of money flowing into and out of a security. To interpret the Money Flow Index, look for divergence with price to signal reve...
37.16
82
0.666846
2d004f6a4a10b97114d91a0f8235ae13a3185c50
3,425
py
Python
shortener/links/views.py
hammygoonan/link-shortener
0996f60b1099efa3ab2b65e20adf0635fcc32cf6
[ "MIT" ]
null
null
null
shortener/links/views.py
hammygoonan/link-shortener
0996f60b1099efa3ab2b65e20adf0635fcc32cf6
[ "MIT" ]
null
null
null
shortener/links/views.py
hammygoonan/link-shortener
0996f60b1099efa3ab2b65e20adf0635fcc32cf6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """links/views.py: Links views.""" import re from flask import render_template, Blueprint, request, redirect, url_for,\ flash from flask.ext.login import login_required, current_user from shortener import app, db, random_str from shortener.models import Link from date...
32.932692
78
0.580146
2d007694c528001ae44b5748d11c3dd563fef163
5,130
py
Python
tests/__init__.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
1
2021-10-30T21:18:29.000Z
2021-10-30T21:18:29.000Z
tests/__init__.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
22
2020-04-15T14:49:30.000Z
2021-12-22T02:49:52.000Z
tests/__init__.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
null
null
null
# encoding: utf-8 from mo_future import text from mo_parsing.core import ParserElement from mo_parsing.exceptions import ParseException from mo_parsing.results import ParseResults from mo_parsing.tokens import Literal from mo_parsing.utils import Log def run_tests( self, tests, parse_all=True, comme...
30.535714
121
0.582651
2d0086568c40007db33968f34fb54aeadca9f4e8
3,763
py
Python
openpnm/algorithms/IonicConduction.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2020-06-08T19:48:00.000Z
2020-06-08T19:48:00.000Z
openpnm/algorithms/IonicConduction.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
openpnm/algorithms/IonicConduction.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
import numpy as np from openpnm.algorithms import ReactiveTransport from openpnm.models.physics import generic_source_term as gst from openpnm.utils import logging, Docorator, GenericSettings logger = logging.getLogger(__name__) docstr = Docorator() @docstr.get_sectionsf('IonicConductionSettings', sections=['Paramete...
35.168224
79
0.664629
2d00aad15de21950ea77bb7ae151822d6f5d79e2
188
py
Python
gremlinclient/tornado_client/__init__.py
davebshow/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
32
2015-11-01T11:08:33.000Z
2021-05-09T05:42:07.000Z
gremlinclient/tornado_client/__init__.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
14
2015-10-19T14:04:27.000Z
2017-09-13T19:32:33.000Z
gremlinclient/tornado_client/__init__.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
10
2015-10-30T00:07:26.000Z
2021-05-17T17:58:14.000Z
from gremlinclient.tornado_client.client import ( Response, GraphDatabase, Pool, submit, create_connection) from gremlinclient.tornado_client.remote_connection import RemoteConnection
47
75
0.856383
2d00ab3d5f6feca3d3651cfddca6e2f379cbaba2
4,064
py
Python
alipay/aop/api/request/MybankCreditLoanapplyElmCreditloanadmitQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/MybankCreditLoanapplyElmCreditloanadmitQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/MybankCreditLoanapplyElmCreditloanadmitQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankCreditLoanapplyElmCreditloanadmitQueryModel import MybankCreditLoanapplyElmCreditloanadmitQueryModel class MybankCreditLoanapp...
28.027586
148
0.652559
2d00d27265e9d99d743814303fc0bd73908f5579
1,983
py
Python
venv/Lib/site-packages/pyrogram/raw/types/update_faved_stickers.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/update_faved_stickers.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/update_faved_stickers.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.984375
103
0.631367
2d01386f4a8e4372db5ab33bb404b9cf531ad2f3
21,094
py
Python
vta/tutorials/autotvm/tune_relay_vta.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
15
2019-06-13T00:44:47.000Z
2022-03-08T22:10:04.000Z
vta/tutorials/autotvm/tune_relay_vta.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
5
2019-05-13T20:44:51.000Z
2019-09-25T19:56:29.000Z
vta/tutorials/autotvm/tune_relay_vta.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
11
2019-07-01T05:21:36.000Z
2022-01-04T18:38:27.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.945833
322
0.596046
2d014091461b5fb3be134402152cfd7f7e60b1a0
7,330
py
Python
pspnet/psp_tf/ade20k_labels.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
pspnet/psp_tf/ade20k_labels.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
pspnet/psp_tf/ade20k_labels.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
1
2019-11-18T06:34:20.000Z
2019-11-18T06:34:20.000Z
#!/usr/bin/python # # ADE20k labels # from collections import namedtuple import scipy.io Label = namedtuple('Label', [ 'name', 'id', 'color' ]) labels = [Label('wall', 0, (120, 120, 120)), Label('building', 1, (180, 120, 120)), Label('sky', 2, (6, 230, 230)), Label('floor', 3, (...
41.179775
92
0.474625
2d0148644a31b60538a4979ca646f2736815086f
9,115
py
Python
redisdb/tests/test_default.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
redisdb/tests/test_default.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
redisdb/tests/test_default.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from __future__ import unicode_literals from copy import deepcopy from distutils.version import StrictVersion import mock import pytest import redis from datadog_checks.redisdb import Redis from .commo...
36.314741
118
0.688206
2d018fe88b80014d4a4ebd92e1a86efadfe7a94d
1,460
py
Python
tdlda/tools/epoch.py
jsosulski/time-decoupled-lda
ee7d704ffdbf18fd2fe9f64323fef51e292177dc
[ "MIT" ]
5
2020-11-28T20:49:06.000Z
2022-01-28T06:32:17.000Z
tdlda/tools/epoch.py
jsosulski/time-decoupled-lda
ee7d704ffdbf18fd2fe9f64323fef51e292177dc
[ "MIT" ]
3
2021-03-19T13:03:21.000Z
2021-09-08T02:03:16.000Z
tdlda/tools/epoch.py
jsosulski/time-decoupled-lda
ee7d704ffdbf18fd2fe9f64323fef51e292177dc
[ "MIT" ]
null
null
null
from tdlda.benchmark.feature_preprocessing import Vectorizer from tdlda.classification.bbci_lda import _shrinkage import numpy as np def time_ivals_to_idx(epo, ivals): idxs = [] for i, ival in enumerate(ivals): idx = epo.time_as_index((ival[0], ival[1]), use_rounding=True) idx_range = list(ran...
33.953488
100
0.655479
2d01b18ec0d64c39b50b7ad8fe4bf43bb27b4f3b
5,460
py
Python
kinto/schema_validation.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
kinto/schema_validation.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
kinto/schema_validation.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
import colander from jsonschema import Draft7Validator as DraftValidator from jsonschema import RefResolutionError, SchemaError, ValidationError from jsonschema.validators import validator_for from pyramid.settings import asbool from kinto.core import utils from kinto.core.errors import raise_invalid from kinto.views ...
39
94
0.695421
2d01cc49fd8f6c20b9abe050f86b0b2056b729a1
6,736
py
Python
Assignment 2/bot.py
billzhonggz/IEMS5780
b192d302ce623d308bb18d086f9cc8b2170fb98e
[ "BSD-4-Clause-UC" ]
1
2022-01-06T13:55:03.000Z
2022-01-06T13:55:03.000Z
Assignment 2/bot.py
billzhonggz/IEMS5780
b192d302ce623d308bb18d086f9cc8b2170fb98e
[ "BSD-4-Clause-UC" ]
null
null
null
Assignment 2/bot.py
billzhonggz/IEMS5780
b192d302ce623d308bb18d086f9cc8b2170fb98e
[ "BSD-4-Clause-UC" ]
null
null
null
"""bot.py This script creates three threads to do the following, Thread 1 (created by Telepot): Receiving messages from Telegram Thread 2: Handle incoming message from queue, send to predict. Thread 3: Send prediction results back to user. This script is a part of a submission of Assignment 2, IEMS5780, S1 2019-2020, ...
38.056497
122
0.612827
2d0202b6049b83ed68043756c1edc1042df856f8
887
py
Python
dorothy/modules/__init__.py
prasadatdoshii/dorothy
942eef1b1674ef0fd4d0de97f1ffec994c9a8556
[ "Apache-2.0" ]
87
2020-12-08T17:16:13.000Z
2022-03-30T03:30:16.000Z
dorothy/modules/__init__.py
prasadatdoshii/dorothy
942eef1b1674ef0fd4d0de97f1ffec994c9a8556
[ "Apache-2.0" ]
null
null
null
dorothy/modules/__init__.py
prasadatdoshii/dorothy
942eef1b1674ef0fd4d0de97f1ffec994c9a8556
[ "Apache-2.0" ]
18
2020-12-09T15:42:00.000Z
2022-03-28T16:58:38.000Z
# # Licensed to Elasticsearch under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this file exce...
32.851852
61
0.760992
2d023e5ecf11bfe1932c5455de200772e0459bbc
4,339
py
Python
nile/db/models.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/db/models.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/db/models.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
from nile.common import log as logging from nile.common import exception from nile.common.i18n import _ from nile.common import models from nile.common import pagination from nile.common import utils from nile.db import db_query from nile.db import get_db_api LOG = logging.getLogger(__name__) class DatabaseModelBase...
34.991935
126
0.589076
2d029f3b44ad8c2fe2e5d99a44cf1dd4c12d2f29
1,002
py
Python
tests/ctoi_chap2/ex_01.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
tests/ctoi_chap2/ex_01.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
tests/ctoi_chap2/ex_01.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
from dsa.data_structures import LinkedList from icecream import ic def remove_duplicates(my_ll: LinkedList): temp_dct = {} curr_node = my_ll.head prev_node = None while curr_node: next_node = curr_node.next_node key = curr_node.key if key not in temp_dct: temp_dct[key] = 0 prev_node =...
20.04
48
0.667665
2d02c0c3c9f04b68503bc66e5ea2c3eb2e904f19
7,420
py
Python
reliabilly/tests/data_clients/test_mongo_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/tests/data_clients/test_mongo_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/tests/data_clients/test_mongo_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
# pylint: disable=no-self-use from unittest import TestCase from unittest.mock import MagicMock from reliabilly.components.data.mongo_client import MongoDataClient class TestMongoDataClient(TestCase): def test_real_constructor(self): self.assertIsNotNone(MongoDataClient()) def test_rename_table(self)...
39.468085
78
0.68504
2d02c73463de39fb68ccc820e05d7f2cd35155fc
9,603
py
Python
babycam/core/tester.py
Mschikay/FCIS-babycam
603dab002fb0e665435acd119b02cf3f18c4eb02
[ "Apache-2.0" ]
null
null
null
babycam/core/tester.py
Mschikay/FCIS-babycam
603dab002fb0e665435acd119b02cf3f18c4eb02
[ "Apache-2.0" ]
null
null
null
babycam/core/tester.py
Mschikay/FCIS-babycam
603dab002fb0e665435acd119b02cf3f18c4eb02
[ "Apache-2.0" ]
1
2018-07-25T02:49:28.000Z
2018-07-25T02:49:28.000Z
# -------------------------------------------------------- # Fully Convolutional Instance-aware Semantic Segmentation # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Modified by Haozhi Qi, Haochen Zhang, Guodong Zhang, Yi Li # -----...
44.458333
131
0.558992
2d02eeea58ac41c88401d015726c69650db80eef
39
py
Python
vzinp/utills/__init__.py
zhukevgeniy/video-inpainting
0f650df61a802c17b2efdfa132211026a7e42eba
[ "MIT" ]
null
null
null
vzinp/utills/__init__.py
zhukevgeniy/video-inpainting
0f650df61a802c17b2efdfa132211026a7e42eba
[ "MIT" ]
null
null
null
vzinp/utills/__init__.py
zhukevgeniy/video-inpainting
0f650df61a802c17b2efdfa132211026a7e42eba
[ "MIT" ]
null
null
null
from .parse_config import parse_config
19.5
38
0.871795
2d0329a7c2f05adfcd7910cd1dcd8cf6b4ab1237
194
py
Python
problems/1791_find-center-of-star-graph.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/1791_find-center-of-star-graph.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/1791_find-center-of-star-graph.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# time = O(1) # space = O(1) # done time = 10m class Solution: def findCenter(self, edges: List[List[int]]) -> int: return edges[0][0] if edges[0][0] in edges[1] else edges[0][1]
19.4
70
0.587629
2d03662972a35c289359e16c936730b7c649bbdb
13,611
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_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...
44.773026
357
0.691793
2d037a7a6de44085498f94fb7ad3ffaadbe88f71
143,948
py
Python
whoville/cloudbreak/apis/v1stacks_api.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/apis/v1stacks_api.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/apis/v1stacks_api.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
45.36653
984
0.582683
2d039f1d499a25d612434414d5956cb218e0245b
14,576
py
Python
squeaknode/core/squeak_core.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
14
2021-01-13T19:52:32.000Z
2021-12-01T14:30:20.000Z
squeaknode/core/squeak_core.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
603
2020-10-30T03:35:54.000Z
2021-12-12T08:04:06.000Z
squeaknode/core/squeak_core.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
5
2020-11-02T21:33:35.000Z
2021-11-02T00:54:13.000Z
# MIT License # # Copyright (c) 2020 Jonathan Zernik # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
38.157068
139
0.647023
2d03da87f44609a74bb59baf6b8c6cd87f342717
2,630
py
Python
pythonx/vim_pad/pad_local.py
vim-scripts/vim-pad
2e441ae00c684079071086172e6dd0c1799fb262
[ "MIT" ]
10
2015-01-26T05:24:27.000Z
2022-02-28T02:32:47.000Z
pythonx/vim_pad/pad_local.py
vim-scripts/vim-pad
2e441ae00c684079071086172e6dd0c1799fb262
[ "MIT" ]
null
null
null
pythonx/vim_pad/pad_local.py
vim-scripts/vim-pad
2e441ae00c684079071086172e6dd0c1799fb262
[ "MIT" ]
null
null
null
import vim from shutil import move from os import remove, mkdir from os.path import expanduser, exists, join, splitext, isfile, basename, dirname from vim_pad.pad import PadInfo from vim_pad.utils import get_save_dir from vim_pad.modelines import format_modeline from glob import glob def update(): """ Moves a not...
30.581395
96
0.587072
2d03e851ac0f9bc5553905d9d95a80274e103c64
3,928
py
Python
src/uger_auto_submit_simple.py
SynerClust/SynerClust
136f25044a18031a2f1c6e5ffd224c204d5975f4
[ "BSD-3-Clause" ]
7
2016-01-19T15:51:49.000Z
2018-12-06T05:30:11.000Z
src/uger_auto_submit_simple.py
broadinstitute/SynerClust
136f25044a18031a2f1c6e5ffd224c204d5975f4
[ "BSD-3-Clause" ]
6
2016-08-03T19:17:58.000Z
2020-02-26T15:18:14.000Z
src/uger_auto_submit_simple.py
broadinstitute/SynerClust
136f25044a18031a2f1c6e5ffd224c204d5975f4
[ "BSD-3-Clause" ]
3
2020-06-11T16:28:52.000Z
2022-01-24T07:29:51.000Z
#!/usr/bin/env python import os import subprocess import argparse import shlex import time def main(): parser = argparse.ArgumentParser("usage : Use this script to automatically launch new SynerClust jobs on UGER from a file containing the list of jobs.\nYou need to have ran \"use UGER\" before using this script") ...
34.45614
213
0.668534
2d03e9a85626fc3df6563458db19483e65f85b71
629
py
Python
test_cafe.py
bhold6160/snakes-cafe
e09eee2332ed5d650ee193a4322a497dc5658b36
[ "MIT" ]
null
null
null
test_cafe.py
bhold6160/snakes-cafe
e09eee2332ed5d650ee193a4322a497dc5658b36
[ "MIT" ]
1
2018-03-20T02:11:20.000Z
2018-03-20T02:11:20.000Z
test_cafe.py
bhold6160/snakes-cafe
e09eee2332ed5d650ee193a4322a497dc5658b36
[ "MIT" ]
null
null
null
import snakes_cafe def test_print_menu(): assert snakes_cafe.print_menu() == '''Wings: 8.0 Spring Rolls: 5.0 Cookies: 2.0 Grilled Squid: 8.0 Crab Wonton: 6.0 Satay: 7.0 Salmon: 15.0 Steak: 20.0 Meat Tornado: 25.0 A Literal Garden: 12.0 Pad Thai: 10.0 Spicy Meatballs: 12.0 Ice Cream: 6.0 Cake: 6.0 Pie: 7.0 Mango wi...
16.552632
52
0.704293
2d04085ed6b71826fe154414e1db5135b224f729
10,021
py
Python
fanficfare/adapters/adapter_siyecouk.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
1
2019-06-13T11:20:33.000Z
2019-06-13T11:20:33.000Z
fanficfare/adapters/adapter_siyecouk.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_siyecouk.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Fanficdownloader team, 2015 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
40.24498
132
0.588065
2d04095fba9b0e8366e42ed160a3da6713c66f0c
101
py
Python
src/apification/renderers.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
5
2016-10-29T14:23:22.000Z
2017-07-15T08:39:58.000Z
src/apification/renderers.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
32
2016-10-23T19:18:26.000Z
2017-02-27T18:33:36.000Z
src/apification/renderers.py
Quantify-world/apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
null
null
null
import json class JSONRenderer(object): def render(self, data): return json.dumps(data)
16.833333
31
0.683168
2d04328166dcc5f76ee4da0871de98505eabd882
606
py
Python
tests/test_itf2hdf5.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
tests/test_itf2hdf5.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
tests/test_itf2hdf5.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import path import pytest from read_itek import itf2hdf5 import logging itf2hdf5.logger.setLevel(logging.DEBUG) import h5py DATA_PATH = path.join(path.dirname(path.abspath(__file__)), "data") def test_shows_help(): with pytest.raises(SystemExit): ...
21.642857
67
0.689769
2d0487b48a4c512a1458d7fb7cee9d4196f9dd33
660
py
Python
server/fm_server/device/device_representation.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
1
2017-10-22T03:15:58.000Z
2017-10-22T03:15:58.000Z
server/fm_server/device/device_representation.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
33
2016-06-20T19:43:47.000Z
2022-01-21T23:19:11.000Z
server/fm_server/device/device_representation.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
null
null
null
"""Represent a device to a worker.""" class DeviceRep: """Helper class to represent a device to a worker.""" HEARTBEAT_LIVES = 3 def __init__(self, device_id): """Create a DeviceRep object.""" self.device_id = device_id self.lives = self.HEARTBEAT_LIVES def heartbeat(self): ...
25.384615
58
0.604545
2d04b81a84fc0bcedb6d97d91e4325776dd7bdd3
161
py
Python
pyclopedia/p03_stdlib/_debug_and_profiling/__init__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_debug_and_profiling/__init__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_debug_and_profiling/__init__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Debug and Profiling =============================================================================== 调试工具。 """
17.888889
79
0.285714
2d04c3dd8c3f39b8715d3add7732893e56e6a3c0
571
py
Python
src/luna1/col4/handle_mirror.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/luna1/col4/handle_mirror.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/luna1/col4/handle_mirror.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
from common.make_tx import make_transfer_out_tx, make_transfer_in_tx from luna1 import util_terra from luna1.make_tx import make_submit_limit_order def handle_submit_limit_order(exporter, elem, txinfo): from_contract = elem["logs"][0]["events_by_type"]["from_contract"] ask_amount, ask_currency = util_terra._a...
47.583333
97
0.802102
2d04cc292be5c17e224df96c03053d8c0a2ea617
4,158
py
Python
python/dp_accounting/privacy_accountant.py
Jolly608090/differential-privacy
74d5be96d4abe6820ef4838c00a1b78c72ae01af
[ "Apache-2.0" ]
1
2022-03-02T20:02:34.000Z
2022-03-02T20:02:34.000Z
python/dp_accounting/privacy_accountant.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
python/dp_accounting/privacy_accountant.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
31.5
79
0.719577
2d04d522032f4cb547ea58b403e71afe0a2c9722
5,660
py
Python
isy-03/03_ar.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
isy-03/03_ar.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
isy-03/03_ar.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
import cv2 import numpy as np # global constants min_matches = 10 FLANN_INDEX_KDTREE = 0 indexParams = dict(algorithm=FLANN_INDEX_KDTREE, trees=5) searchParams = dict(checks=50) # initialize flann and SIFT extractor # note unfortunately in the latest OpenCV + python is a minor bug in the flann # flann = cv2.FlannBase...
36.753247
118
0.648233
2d04f9d11a7076f93d1f1b361d4f4f8ff6aba0f6
49,455
py
Python
pyhanko/sign/fields.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
null
null
null
pyhanko/sign/fields.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
null
null
null
pyhanko/sign/fields.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
null
null
null
""" Utilities to deal with signature form fields and their properties in PDF files. """ import logging from dataclasses import dataclass from enum import Flag, Enum, unique from typing import List, Optional, Union, Set from asn1crypto import x509 from asn1crypto.x509 import KeyUsage from certvalidator import InvalidC...
33.803828
84
0.613224
2d04fe489dbf6a07f596f58f28b62ff25f719a8d
4,008
py
Python
whatsappCli/feed/pb_feeder.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
29
2018-01-10T20:43:07.000Z
2021-04-15T14:42:21.000Z
whatsappCli/feed/pb_feeder.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
11
2018-03-25T19:17:14.000Z
2019-10-03T07:57:03.000Z
whatsappCli/feed/pb_feeder.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
8
2018-09-06T16:11:06.000Z
2022-03-20T08:46:11.000Z
from collections import OrderedDict import os import io import json import requests import threading import time from feeder import Feeder import pb_stream from pb_stream import contacts from pb_stream import config from pkg_resources import resource_string class PBFeeder(Feeder): """ whatsapp chat feed using pus...
31.559055
117
0.608533
2d050ff5a3aaab20949122f46c34e47b0fb91439
193
py
Python
test/helloworld.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
test/helloworld.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
test/helloworld.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
import mpipe def echo(value): print(value) stage = mpipe.OrderedStage(echo) pipe = mpipe.Pipeline(stage) for val in (0, 1, 2, 3): pipe.put(val) pipe.put(None) # Stop the pipeline.
14.846154
36
0.668394
2d05210182099189d6b0431c66e8131637e6c0cb
3,133
py
Python
improver_tests/acceptance/test_nowcast_optical_flow.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/acceptance/test_nowcast_optical_flow.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/acceptance/test_nowcast_optical_flow.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
39.658228
79
0.719438
2d05234ac19c74361a21fcd579365891f6e5ec79
7,375
py
Python
models/memnn.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
22
2019-11-28T03:05:48.000Z
2021-08-04T07:40:03.000Z
models/memnn.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
4
2021-01-21T03:51:23.000Z
2022-02-10T05:05:17.000Z
models/memnn.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
2
2020-01-22T09:39:19.000Z
2021-04-05T10:04:36.000Z
"""Keras End-To-End Memory Networks. The implementation is based on http://arxiv.org/abs/1503.08895 """ import tensorflow as tf import numpy as np from tensorflow.keras import backend as K from tensorflow.keras.layers import Input from tensorflow.keras.layers import Lambda, Embedding, Layer, TimeDistributed, GRU, CuDN...
40.745856
122
0.603932
2d053de625fe9571a2316b630996b1826daff0ea
23,728
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.897126
106
0.643796
2d05503da75a69ffbaed21ecc7f4705edd720266
12,565
py
Python
python/tvm/utils/roofline.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/utils/roofline.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/utils/roofline.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.762658
100
0.655472
2d056ff1c482a760a81ea16843b35024dda10d14
1,388
py
Python
alipay/aop/api/domain/RepayTradeDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/RepayTradeDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/RepayTradeDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class RepayTradeDetail(object): def __init__(self): self._repay_amount = None self._trade_no = None @property def repay_amount(self): return self._repay_amount @re...
24.785714
75
0.589337
2d0580cf5f932050789933a3f68788d1c69fda10
1,112
py
Python
mlab-bq-dash/gviz_data_table/encoder.py
stephen-soltesz/vcheck
fd7c44847b986976af7065e943a972d6b12141a9
[ "Apache-2.0" ]
10
2015-01-17T14:35:58.000Z
2021-10-09T18:33:39.000Z
knihovna-server/third_party/gviz_data_table/encoder.py
gdg-garage/knihovna-db
a795e71cf2c01a2337370a18df4447632313afae
[ "MIT" ]
1
2015-09-24T18:43:27.000Z
2015-10-01T18:11:20.000Z
knihovna-server/third_party/gviz_data_table/encoder.py
gdg-garage/knihovna-db
a795e71cf2c01a2337370a18df4447632313afae
[ "MIT" ]
8
2015-01-21T08:11:26.000Z
2021-10-09T18:33:31.000Z
import datetime import json from . import cell from . import column from . import table class Encoder(json.JSONEncoder): """ JSON encoder for utility classes. Also maps datetime/date and time objects to the relevant Google Visualization pseudo Date() constructor (month = month -1). Times are lis...
25.860465
74
0.571043
2d05b0260018ea98893cdcacc32e130226b8322e
222
py
Python
cutesy_mvc/helpers/response.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
cutesy_mvc/helpers/response.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
cutesy_mvc/helpers/response.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
def freshResponse(request, includeRequest = False): return { 'header': { 'type': 'response', 'request': request if includeRequest else None, 'requester': request['header']['requester'] }, 'payload': None }
24.666667
51
0.657658
2d05ba49f8e42a72d03e298c59ebe1bb02c4d98a
1,394
py
Python
terrascript/cosmic/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/cosmic/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/cosmic/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/cosmic/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class cosmic_affinity_group(terrascript.Resource): pass class cosmic_disk(terrascript.Resource): p...
15.488889
79
0.77977
2d05e7e8de187a1c2b868a8a2646edefbffed98f
3,065
py
Python
mcarch/model/mod/__init__.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/model/mod/__init__.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
mcarch/model/mod/__init__.py
Scotsguy/MCArchive
89847bab722c6782fa53c7b11ee83f1f5b2d9f05
[ "MIT" ]
null
null
null
from .base import * from .logs import LogMod, LogModVersion, LogModFile from .draft import DraftMod, DraftModVersion, DraftModFile from mcarch.app import db authored_by_table = mk_authored_by_table('mod') for_game_vsn_table = mk_for_game_vsn_table('mod_version') class Mod(ModBase, db.Model): __tablename__ = "mod...
34.829545
96
0.657749
2d0642d0a2bf80cc847ea773f1cbfa1193d454b9
5,103
py
Python
animate.py
manuelnaranjo/pyrealtimecharter
72fa4faa132686ba2a401cc7dfff326d36ecc505
[ "Apache-2.0" ]
null
null
null
animate.py
manuelnaranjo/pyrealtimecharter
72fa4faa132686ba2a401cc7dfff326d36ecc505
[ "Apache-2.0" ]
null
null
null
animate.py
manuelnaranjo/pyrealtimecharter
72fa4faa132686ba2a401cc7dfff326d36ecc505
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Copyright 2010 Naranjo, Manuel Francisco <manuel@aircable.net> 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/...
26.169231
82
0.619636
2d065bb65d87b6120ac76342c34f9aca37bb0a9b
3,134
py
Python
misc/inherit_npndarray.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
5
2019-01-18T20:33:54.000Z
2021-08-24T17:02:07.000Z
misc/inherit_npndarray.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
188
2019-01-22T21:56:42.000Z
2022-03-31T21:23:58.000Z
misc/inherit_npndarray.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
3
2019-01-27T04:32:50.000Z
2021-04-20T17:28:42.000Z
import numpy as np # maybe consider doing this for symbolic regression data class MyData(np.ndarray): ''' I got this after using an __init__ method without even doing a np.ndarray.__init__ * TypeError: Required argument 'shape' (pos 1) not found Stackoverflow says to use __new__ instead of __init__ ''' ''' de...
22.070423
109
0.693044
2d06840ed7b1e0840b9b50d2f1864062cffff1b8
2,758
py
Python
utils/data_models.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
4
2022-03-22T14:26:19.000Z
2022-03-24T05:05:12.000Z
utils/data_models.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
utils/data_models.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
import datetime from dataclasses import dataclass, field from enum import Enum from typing import List, Optional from definitions import DATE_FORMAT @dataclass class Submission: """Submission parameters.""" # Submission timestamp timestamp: datetime.datetime # Path where submission files were saved ...
23.176471
71
0.628716
2d0685ee567fdc0d58d0d65d2e2597f39152e538
6,398
py
Python
salt/modules/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Support for the Amazon Simple Queue Service. ''' import logging import json # Import salt libs import salt.utils log = logging.getLogger(__name__) _OUTPUT = '--output json' def __virtual__(): if salt.utils.which('aws'): # awscli is installed, load the module return T...
23.181159
96
0.602376
2d06b650e76e3fa396aaaa9dc31a8b0434632e43
44,112
py
Python
masci_tools/util/schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/util/schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/util/schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the Masci-tools package. ...
42.868805
117
0.634363
2d06ca1ca44e5880992b6088ccda426387b34b07
2,816
py
Python
demo/iterative/cg_simplification.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-10-05T23:14:27.000Z
2019-10-05T23:14:27.000Z
demo/iterative/cg_simplification.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
demo/iterative/cg_simplification.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-11-14T01:27:23.000Z
2019-11-14T01:27:23.000Z
from sympy import * import pprint from ignition import * from ignition.flame.tensors.basic_operators import add_invertible su_12, delta_11 = map(lambda x: Tensor(x, 0), ["su_12", "delta_11"]) p_1, p_2, r_1, r_2, x_1, x_2, u_02 = \ map(lambda x: Tensor(x, 1), ["p_1", "p_2", "r_1", "r_2", "x_1", "x_2", "u_02"]) A,...
35.2
135
0.507457
2d06d6ca23d5dd4b6299965418a865159188e0f1
6,078
py
Python
brim/wsgi_echo.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
brim/wsgi_echo.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
brim/wsgi_echo.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
"""A simple WSGI application that just echoes the request body. This is a good starting point for other WSGI applications. See the source for what's implemented and why. Configuration Options:: [wsgi_echo] call = brim.wsgi_echo.WSGIEcho # path = <path> # The request path to match and serve; any oth...
39.72549
72
0.599539
2d06fbb9c03b9645586991e085233e041339d0c9
1,109
py
Python
wargame/designpatterns/pythonic_abstractfactory_dwarfaccessoryfactory.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
1
2020-12-01T20:30:27.000Z
2020-12-01T20:30:27.000Z
wargame/designpatterns/pythonic_abstractfactory_dwarfaccessoryfactory.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
wargame/designpatterns/pythonic_abstractfactory_dwarfaccessoryfactory.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
"""pythonic_abstractfactory_dwarfaccessory This module represents a dwarf accessory factory object. """ from pythonic_abstractfactory_accessoryfactory import AccessoryFactory from pythonic_dwarfironjacket import DwarfIronJacket from pythonic_dwarfpowersuit import DwarfPowerSuit from pythonic_dwarfmithrilarmor import D...
35.774194
78
0.788097
2d0708d6ae45aa9d9ce2bc5dd4fd65def4e90f37
5,403
py
Python
extensions/events.py
xxori/PeepoBot
5a3fb94de9155cf34404d5209da3a68db24b8535
[ "MIT" ]
null
null
null
extensions/events.py
xxori/PeepoBot
5a3fb94de9155cf34404d5209da3a68db24b8535
[ "MIT" ]
null
null
null
extensions/events.py
xxori/PeepoBot
5a3fb94de9155cf34404d5209da3a68db24b8535
[ "MIT" ]
null
null
null
''' MIT License Copyright (c) 2020 Martin Velikov & Patrick Thompson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
42.880952
137
0.655747