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
737afcaed01dba127c8a9e1a34f91bddb9c8ffee
212
py
Python
instructors/course-2015/functions_gens_and_ducks/examples/in_class/first_gen.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/course-2015/functions_gens_and_ducks/examples/in_class/first_gen.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/course-2015/functions_gens_and_ducks/examples/in_class/first_gen.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
with open('pres_on_trade_2015.txt', 'r') as fp: all_text = fp.readlines() def gen_each_line(text): for line in text: yield line all_lines = gen_each_line(all_text) print list(all_lines)
16.307692
47
0.674528
737b2f49358633b5f6a36b4069916950110db1aa
1,349
py
Python
pysimm/models/monomers/dreiding/NbTMS_H2_tacticity.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
55
2017-01-14T09:11:54.000Z
2022-01-28T17:17:34.000Z
pysimm/models/monomers/dreiding/NbTMS_H2_tacticity.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
13
2017-03-27T19:32:57.000Z
2022-01-04T17:49:50.000Z
pysimm/models/monomers/dreiding/NbTMS_H2_tacticity.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
28
2016-08-29T12:30:58.000Z
2021-12-04T07:24:07.000Z
import sys from pysimm import system, lmps, forcefield from pysimm.apps.random_walk import random_walk def monomer(**kwargs): isomer = kwargs.get('isomer', {}) try: import os if isomer == 'endo': s = system.read_mol( os.path.join(os.path.dirname(os.path.realpath(__...
25.45283
110
0.598221
737b3ee5d6a5a71b3093fcd219c699eda228f903
6,176
py
Python
tensorflow/examples/tutorials/estimators/abalone.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/examples/tutorials/estimators/abalone.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/tutorials/estimators/abalone.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 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 appl...
33.204301
80
0.72717
737b4b958c728a878500b0a2d550a2785062be7f
5,480
py
Python
src/wavestate/iirrational/fitters_rational/rational_disc.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/fitters_rational/rational_disc.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/fitters_rational/rational_disc.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
29.621622
77
0.59562
737b534efd34159081204e522f3fa6229beb65ff
3,315
py
Python
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
55
2015-02-15T08:17:55.000Z
2022-03-11T11:55:39.000Z
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
264
2015-01-29T20:27:40.000Z
2022-03-03T04:08:48.000Z
rummage/lib/gui/controls/collapsible_pane.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
12
2017-08-30T22:54:20.000Z
2022-03-21T01:05:50.000Z
"""Custom collapsible pane.""" import wx import wx.lib.agw.pycollapsiblepane as pycollapse import wx.lib.buttons as buttons from .. import data class CollapsiblePane(pycollapse.PyCollapsiblePane): """Custom collapsible pane.""" def __init__( self, parent, id=wx.ID_ANY, label="", pos=wx.DefaultPositio...
26.733871
89
0.61086
737b632dbbafa2541eac494350c1122191edb2a7
26,046
py
Python
cases/evaluate_models_cases.py
Jason-ccm/covid19-forecast-hub-evaluation
8e55ab8a9604cac71c7385f851fdf5e1a597aadb
[ "MIT" ]
94
2020-06-17T17:33:44.000Z
2021-11-21T08:21:14.000Z
cases/evaluate_models_cases.py
Jason-ccm/covid19-forecast-hub-evaluation
8e55ab8a9604cac71c7385f851fdf5e1a597aadb
[ "MIT" ]
3
2020-07-06T14:43:53.000Z
2021-03-27T02:24:25.000Z
cases/evaluate_models_cases.py
Jason-ccm/covid19-forecast-hub-evaluation
8e55ab8a9604cac71c7385f851fdf5e1a597aadb
[ "MIT" ]
35
2020-06-27T22:21:22.000Z
2022-03-22T18:16:33.000Z
"""Evaluate models from the COVID-19 Forecast Hub based on forecasts of confirmed cases. COVID-19 Forecast Hub: https://github.com/reichlab/covid19-forecast-hub Learn more at: https://github.com/youyanggu/covid19-forecast-hub-evaluation To see list of command line options: `python evaluate_models_cases.py --help` """...
49.143396
114
0.642479
737b7934a6f63492f45894b6b72b7d6ee61052b6
1,804
py
Python
packnet_sfm/networks/layers/resnet/pose_decoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
packnet_sfm/networks/layers/resnet/pose_decoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
packnet_sfm/networks/layers/resnet/pose_decoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. # Adapted from monodepth2 # https://github.com/nianticlabs/monodepth2/blob/master/networks/pose_decoder.py from __future__ import absolute_import, division, print_function import torch import torch.nn as nn from collections import OrderedDict class ...
33.407407
97
0.650222
737b796bec6233bd1e31fbb6d35d8faf47a01ddb
7,991
py
Python
xmlsigner/certMethods.py
vsgobbi/Nfse-python
5b2334e9e28e07186e8d38cda2ff7fe6ce62885d
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
xmlsigner/certMethods.py
vsgobbi/Nfse-python
5b2334e9e28e07186e8d38cda2ff7fe6ce62885d
[ "Python-2.0", "OLDAP-2.7" ]
1
2021-12-13T20:09:32.000Z
2021-12-13T20:09:32.000Z
xmlsigner/certMethods.py
vsgobbi/Nfse-python
5b2334e9e28e07186e8d38cda2ff7fe6ce62885d
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
# -*- coding: utf-8 -*- from Integer import b64e from lxml import etree from xmlsigner import xmlDigSign as signer from Crypto.Hash import SHA from Crypto.Signature import PKCS1_v1_5 from Crypto.PublicKey import RSA class Certificate(object): @classmethod def valdidatePrivateKey(cls, privateKeyContent): ...
44.893258
122
0.650482
737b88e193a278576da548a347e7dfd4110427f3
21,950
py
Python
zerver/lib/upload.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/upload.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/upload.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Mapping, Optional, Tuple, Text from django.utils.translation import ugettext as _ from django.conf import settings from django.template.defaultfilters import slugify from django.core.files import File from django.http import HttpRequest from django.db.models import Sum from jinja2 import ...
39.196429
131
0.662278
737b8c675c49e750f5bf7c3491fd3691a3c232de
8,595
py
Python
allennlp/predictors/semantic_role_labeler.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/predictors/semantic_role_labeler.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/predictors/semantic_role_labeler.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
from typing import List from overrides import overrides from allennlp.common.util import JsonDict, sanitize, group_by_count from allennlp.data import DatasetReader, Instance from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter from allennlp.models import Model from allennlp.predictors.predictor import...
38.716216
100
0.5395
737b9b61a90e107b925302f8784e216b01a2aa49
7,030
py
Python
python/test/TestUtilsFunctionality.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-04-05T12:11:54.000Z
2020-04-05T12:11:54.000Z
python/test/TestUtilsFunctionality.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/test/TestUtilsFunctionality.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-04-05T14:26:13.000Z
2021-03-09T08:18:17.000Z
"""Copyright (c) 2005-2019, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
58.099174
134
0.745661
737bb66538150d569d18eea58dca2ea794a8a186
2,650
py
Python
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_cog_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_cog_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_cog_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Igalia S.L. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
47.321429
111
0.711698
737bd221884394d866bdab2d8112b444733043f1
2,554
py
Python
modl/plotting/image.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
135
2016-05-04T01:52:44.000Z
2022-03-01T18:38:13.000Z
modl/plotting/image.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
20
2016-06-03T12:53:27.000Z
2020-05-12T22:35:52.000Z
modl/plotting/image.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
49
2016-05-09T02:48:04.000Z
2022-03-01T18:40:55.000Z
import numpy as np import matplotlib.cm as cm from math import ceil, sqrt def plot_patches(fig, patches): if patches.ndim == 4: channel_step = patches.shape[3] // 3 # patches = np.concatenate([np.sum(patches[:, :, :, i * channel_step: # (i + 1) * channel_step], # ...
35.971831
84
0.520752
737bed89a398121825f209fed6fb4f1419f6dea4
2,833
py
Python
back/matchmaker/serializers.py
HaeSe0ng/SWPP
3bfc95edd2b341283d8d63d398b05e74605d54af
[ "Apache-2.0" ]
2
2019-09-16T08:06:45.000Z
2019-12-17T14:35:51.000Z
back/matchmaker/serializers.py
HaeSe0ng/SWPP
3bfc95edd2b341283d8d63d398b05e74605d54af
[ "Apache-2.0" ]
43
2019-10-05T02:45:23.000Z
2020-07-18T11:15:00.000Z
back/matchmaker/serializers.py
eodmsabc/SNU-SWPP
3a2453b6747e9e198fda5174a208ca1f2f3e6cd3
[ "Apache-2.0" ]
3
2019-12-16T05:48:11.000Z
2019-12-17T14:43:09.000Z
''' matchmaker serializer ''' from rest_framework import serializers from matchmaker.models import Match, Participation, Category class MatchSerializer(serializers.ModelSerializer): ''' match serializer ''' num_participants = serializers.SerializerMethodField('_num_participants') host = serializers.Relate...
34.13253
77
0.663255
737c319e856bdebd00b47fd8bd6ec3cb53639c63
1,751
py
Python
app/small_scripts_def.py
vuhctreh/GSEP_F_In_The_Chat
a636b4fef9af9b844006257db30f6a181fd33e5d
[ "Apache-2.0" ]
null
null
null
app/small_scripts_def.py
vuhctreh/GSEP_F_In_The_Chat
a636b4fef9af9b844006257db30f6a181fd33e5d
[ "Apache-2.0" ]
null
null
null
app/small_scripts_def.py
vuhctreh/GSEP_F_In_The_Chat
a636b4fef9af9b844006257db30f6a181fd33e5d
[ "Apache-2.0" ]
null
null
null
""" Functions regarding the users total points and level (used mainly for unlocking collectables) """ # william def check_points_treshold(total_points): """ Calculates the users level based on their total points Args: total_points::int The total number of points that the user has gained ...
27.793651
78
0.658481
737c4e5b7f2e99457e899c202e97a0e1235f70ef
1,999
py
Python
setup.py
charettes/datadogpy
48edfc24f2f8fa3ca113fb145fa89ec5003e5061
[ "BSD-3-Clause" ]
null
null
null
setup.py
charettes/datadogpy
48edfc24f2f8fa3ca113fb145fa89ec5003e5061
[ "BSD-3-Clause" ]
null
null
null
setup.py
charettes/datadogpy
48edfc24f2f8fa3ca113fb145fa89ec5003e5061
[ "BSD-3-Clause" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the BSD-3-Clause License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2015-Present Datadog, Inc. from setuptools import setup from io import open import sys def get_readme_md_cont...
36.345455
120
0.663332
737c55fde2afe984b433e70efdd75b6de9ce36ba
2,704
py
Python
ideaman_rec_python/Sort/model/DeepCF/Dataset.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
1
2021-06-21T06:41:12.000Z
2021-06-21T06:41:12.000Z
ideaman_rec_python/Sort/model/DeepCF/Dataset.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
ideaman_rec_python/Sort/model/DeepCF/Dataset.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
''' Created on Aug 8, 2016 Processing datasets. @author: Xiangnan He (xiangnanhe@gmail.com) ''' import scipy.sparse as sp import numpy as np class Dataset(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' self.trainMatrix = self.load_rating_file_as_ma...
34.227848
86
0.511834
737c5a4b9965b4d8710aa7fc16c3a07fcf45ef37
7,875
py
Python
src/bloombox/schema/partner/integrations/MailchimpSettings_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/partner/integrations/MailchimpSettings_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/partner/integrations/MailchimpSettings_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: partner/integrations/MailchimpSettings.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
42.112299
767
0.774349
737c7fe6d647d4f02b566870d9bc0341bb4f6519
3,887
py
Python
Src/Hessian.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/Hessian.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/Hessian.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
import torch torch.manual_seed(10) torch.cuda.manual_seed_all(10) import torch.nn as nn import random from torch.autograd import Variable import time import numpy as np def sigmoid(x): return 1.0/(1.0+torch.exp(-x)) class Hessian(nn.Module): def __init__(self,numSteps,stepSize,**kwargs): super(Hessian...
40.915789
100
0.552869
737cab1c2700946164eed0fecaa5bc698bc8ab4b
1,356
py
Python
build/j2n6s300_ikfast/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/j2n6s300_ikfast/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/j2n6s300_ikfast/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
43.741935
102
0.74115
737cbd430abff32b81cdf2253065ac9518f9cdee
15,429
py
Python
GPErks/train/emulator.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
null
null
null
GPErks/train/emulator.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
6
2021-12-10T14:16:51.000Z
2022-03-25T16:26:50.000Z
GPErks/train/emulator.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
1
2022-01-28T11:12:33.000Z
2022-01-28T11:12:33.000Z
import os from collections import defaultdict from copy import deepcopy from pathlib import Path from typing import Dict, List, Optional import gpytorch import gpytorch.constraints import numpy import torch import torchmetrics from GPErks.constants import ( DEFAULT_GSA_N_DRAWS, DEFAULT_TRAIN_MAX_EPOCH, DE...
35.881395
93
0.602307
737cc549c5d0bfdbc8d2c0f5ff86f44f70d4dccb
4,441
py
Python
atom/electron/python/electron_api/models/card_client_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/electron/python/electron_api/models/card_client_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/electron/python/electron_api/models/card_client_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Electron API The Hydrogen Electron API # noqa: E501 OpenAPI spec version: 1.3.1 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from electron_api.configuratio...
29.606667
103
0.605719
737ccb9da89f73e90ef9b22eaaecfe035c62e70f
9,916
py
Python
main.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
4
2021-03-29T01:04:45.000Z
2022-01-18T02:29:58.000Z
main.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
null
null
null
main.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os import time import json from collections import OrderedDict import importlib import logging import argparse import numpy as np import random import torch import torch.nn as nn import torch.optim import torch.utils.data import torch.backends.cudnn import torchvision.util...
30.795031
134
0.622126
737d2d185c3b1aafbacf3f8827c890de81a30926
397
py
Python
complaint/signals.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
null
null
null
complaint/signals.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
6
2017-11-11T08:43:55.000Z
2021-06-10T19:38:24.000Z
complaint/signals.py
bhaveshpraveen/VIT-Pugaar
0a33b264939287071ddaffef4ab1f2ef9a38de87
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from .models import Complaint from .utils import inform_employee @receiver(post_save, sender=Complaint) def create_user_profile(sender, instance, created, **kwargs): if created: # todo: add error handling in case the messa...
33.083333
94
0.775819
737d50d052b8d8578dc077b4d5ea0183a19111dc
1,039
py
Python
util/__init__.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
4
2019-12-19T17:17:42.000Z
2021-12-11T23:12:45.000Z
util/__init__.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
32
2020-03-19T15:56:05.000Z
2021-12-23T12:46:06.000Z
util/__init__.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
null
null
null
import requests def service_available(url): try: response = requests.get(url, verify=False) if response.status_code != 200: return False except Exception: return False return True def build_url(protocol, host, port, app_label=None): url = "%s://%s%s" % (protocol, ...
33.516129
83
0.635226
737d57752b8c8870d2a169a02f0de0bd20f2c882
890
py
Python
myia/operations/prim_identity.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/operations/prim_identity.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/operations/prim_identity.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Definitions for the primitive `identity`.""" from ..lib import bprop_to_grad_transform, standard_prim from . import primitives as P def pyimpl_identity(x): """Implement `identity`.""" return x @standard_prim(P.identity) async def infer_identity(self, engine, x): """Infer the return type of primitive...
22.25
56
0.694382
737d67bf659c9c68f879836da7d9e0935c96d3f9
2,489
py
Python
test/converters_test.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
3
2015-03-09T09:17:46.000Z
2016-05-03T02:51:25.000Z
test/converters_test.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
null
null
null
test/converters_test.py
JNRowe-retired/restfulie-py
8ac2bc401068c7bae6da3d107b004835618165d7
[ "Apache-2.0" ]
1
2020-12-14T23:23:26.000Z
2020-12-14T23:23:26.000Z
from restfulie.converters import Converters, PlainConverter, \ XmlConverter, JsonConverter class converters_test: def setup(self): Converters.types = {} def should_register_converters(self): converter = PlainConverter() Converters.register("text/plain...
32.75
78
0.561671
737dbd2c9716f2b2c124956a358031e65a9e01ad
5,078
py
Python
fiveguess.py
KVinyl/Five-guess-algorithm
ae8e1e5c7f505f13f1a26f05b295c7b516a08823
[ "MIT" ]
null
null
null
fiveguess.py
KVinyl/Five-guess-algorithm
ae8e1e5c7f505f13f1a26f05b295c7b516a08823
[ "MIT" ]
null
null
null
fiveguess.py
KVinyl/Five-guess-algorithm
ae8e1e5c7f505f13f1a26f05b295c7b516a08823
[ "MIT" ]
null
null
null
from collections import Counter, namedtuple from itertools import product from operator import attrgetter from random import randint init_possible_codes = set(product([1, 2, 3, 4, 5, 6], repeat=4)) Feedback = namedtuple('Feedback', ['blacks', 'whites']) ScoreData = namedtuple('ScoreData', ['guess', 'score', 'is_poss...
30.22619
79
0.631942
737dd15ac5adbd9a40f4cdef48eb7361c8434c52
5,895
py
Python
ops/morphology_features.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
null
null
null
ops/morphology_features.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
null
null
null
ops/morphology_features.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
1
2020-11-10T20:35:17.000Z
2020-11-10T20:35:17.000Z
# import mahotas import numpy as np from scipy.stats import median_absolute_deviation from ops.features import correlate_channels_masked, masked def masked_rect(r,index): #masked image, maintaing shape image = r.intensity_image_full[index] mask = r.filled_image return np.multiply(image,mask) def mah...
50.384615
92
0.681255
737defe5f60a2385b2206f638856c6fd669f3a4c
16,657
py
Python
tools/check_format.py
dfuentes/envoy
5d25f466c3410c0dfa735d7d4358beb76b2da507
[ "Apache-2.0" ]
91
2018-11-24T05:33:58.000Z
2022-03-16T05:58:05.000Z
tools/check_format.py
dfuentes/envoy
5d25f466c3410c0dfa735d7d4358beb76b2da507
[ "Apache-2.0" ]
11
2019-06-02T23:50:17.000Z
2022-02-04T23:58:56.000Z
tools/check_format.py
dfuentes/envoy
5d25f466c3410c0dfa735d7d4358beb76b2da507
[ "Apache-2.0" ]
18
2018-11-24T10:35:29.000Z
2021-04-22T07:22:10.000Z
#!/usr/bin/env python import argparse import common import fileinput import multiprocessing import os import os.path import re import subprocess import sys import traceback EXCLUDED_PREFIXES = ("./generated/", "./thirdparty/", "./build", "./.git/", "./bazel-", "./bazel/external", "./.cache", ...
43.041344
101
0.694483
737dfbe82acb34847ef8bcc39ac4c7543a07a276
430
py
Python
geosoft/gxdesktop/hello_world.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxdesktop/hello_world.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxdesktop/hello_world.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxapi as gxapi import geosoft.gxpy as gxpy # a python script must have a rungx(), which is executed by OM when the script is run def rungx(): # get the current gx context gxp = gxpy.gx.gx() # say hello to the user identified by gxp.gid. gxapi.GXSYS.display_message("GX Python", "Hello {...
28.666667
85
0.676744
737e226d9dae50b0199c20c2b3f63fcccd8db0c7
1,910
py
Python
graph/breadth_first_search.py
igor-korolev/algo
4b7fa1f7d805c366ceefd986c1196f84749e85d0
[ "MIT" ]
2
2020-05-22T14:45:55.000Z
2021-05-08T19:40:58.000Z
graph/breadth_first_search.py
igor-korolev/algo
4b7fa1f7d805c366ceefd986c1196f84749e85d0
[ "MIT" ]
null
null
null
graph/breadth_first_search.py
igor-korolev/algo
4b7fa1f7d805c366ceefd986c1196f84749e85d0
[ "MIT" ]
null
null
null
"""Breadth first search implemented in python.""" from collections import deque def bfs(graph, start_from, searchable): """ Search for the shortest way of graph using deque. :param list graph: List of lists(adjacency matrix), that represents the graph. :param int start_from: Starting vertex. Search ...
29.384615
93
0.601047
737e31c7b8e780fd35d9efbf3faf17c9ae425301
737
py
Python
account/admin.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
account/admin.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
account/admin.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.contrib import admin from account.models import Account, SignupCode, AccountDeletion, EmailAddress class SignupCodeAdmin(admin.ModelAdmin): list_display = ["code", "max_uses", "use_count", "expiry", "created"] search_fields = ["code", "email"] list_fi...
30.708333
95
0.746269
737e720867497b37439b0d10479cdfd62a314125
8,446
py
Python
cinder/volume/qos_specs.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/qos_specs.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/qos_specs.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 eBay Inc. # Copyright (c) 2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
35.788136
79
0.636988
737ec1521c95d6fdfb423d452918cb98bf71937e
4,886
py
Python
tests/handlers/logout_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
null
null
null
tests/handlers/logout_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
155
2020-05-29T17:21:13.000Z
2022-03-28T19:55:52.000Z
tests/handlers/logout_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
3
2021-04-26T18:02:58.000Z
2022-02-03T01:29:13.000Z
"""Tests for the /logout route.""" from __future__ import annotations from typing import TYPE_CHECKING import pytest from gafaelfawr.providers.github import GitHubTeam, GitHubUserInfo from tests.support.headers import query_from_url from tests.support.logging import parse_log if TYPE_CHECKING: from _pytest.log...
29.612121
77
0.608678
737ec978e6117a722ad229c32b2726c6b00443aa
5,007
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/notifier.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/notifier.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/notifier.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ This module contains the implementation of :class:`~can.Notifier`. """ import threading import logging import time try: import asyncio except ImportError: asyncio = None logger = logging.getLogger('can.Notifier') class Notifier(object): def __init__(self, bus, listeners, timeout=1....
33.604027
92
0.579788
737ece42a0a33663399e3e1f26e8219dc40d8760
7,692
py
Python
openrl/envs/obstacles_env.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
2
2021-09-10T18:52:35.000Z
2022-01-03T19:48:06.000Z
openrl/envs/obstacles_env.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
1
2021-12-28T17:42:23.000Z
2021-12-28T17:42:23.000Z
openrl/envs/obstacles_env.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
null
null
null
""" @source https://github.com/berkeleydeeprlcourse/homework_fall2020/blob/master/hw4/cs285/envs/obstacles/obstacles_env.py """ import gym import numpy as np from gym import spaces class Obstacles(gym.Env): def __init__(self, start=[-0.5, 0.75], end=[0.7, -0.8], random_starts=True): import matplotlib.pyp...
33.58952
145
0.544852
737eea04cd159c3e8331365811d7503bc4e87507
838
py
Python
preapp/nodes/features/features_node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
preapp/nodes/features/features_node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
preapp/nodes/features/features_node.py
najaco/preapp
6206d4cee68f9b6a63d4e1661c7c439012fc5ce0
[ "MIT" ]
null
null
null
from preapp import Node, ConfirmQuestion from preapp.utils.fileio import get_all_assets class FeaturesNode(Node): """Allows users to select features for their apps""" def __init__(self): super(FeaturesNode, self).__init__("features", [], parents=["platform"]) def pre_process(self): # get...
32.230769
100
0.661098
737f053131047593c726a4251376ec4dc222fc34
4,919
py
Python
src/a01/jobs/base.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
src/a01/jobs/base.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
src/a01/jobs/base.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
from typing import List, Optional from kubernetes.client.models.v1_job import V1Job from kubernetes.client.models.v1_job_spec import V1JobSpec from kubernetes.client.models.v1_object_meta import V1ObjectMeta from kubernetes.client.models.v1_container import V1Container from kubernetes.client.models.v1_pod_spec import V...
42.042735
116
0.675544
737f0c1a36a82cc39f19a5713775137aa1b07170
5,547
py
Python
menu.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
menu.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
menu.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
import sys import pygame #opensource menu pygame.init() WHITE = (255, 255, 255) RED = (255, 0, 0) BLACK = (0, 0, 0) class MenuItem(pygame.font.Font): def __init__(self, text, font=None, font_size=30, font_color=WHITE, (pos_x, pos_y)=(0, 0)): pygame.font.Font.__init__(self, font, fon...
33.017857
92
0.554714
737f34efa640a586b01307e869f3a3a25baeafef
11,049
py
Python
benhoyle/blueprints/blog/models.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
benhoyle/blueprints/blog/models.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
benhoyle/blueprints/blog/models.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from benhoyle.extensions import db import re # Import security helper functions from werkzeug.security import generate_password_hash, check_password_hash class Base(db.Model): """ Extensions to Base class. """ __abstract__ = True id = db.Column(d...
33.18018
77
0.602588
737f3536839df4b415e4bd3d3409db71a3a36f4d
1,926
py
Python
src/azul/service/user_service.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/service/user_service.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/service/user_service.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
from azul import config from azul.service.responseobjects.dynamo_data_access import DynamoDataAccessor, ConditionalUpdateItemError class UserService: def __init__(self): self.dynamo_accessor = DynamoDataAccessor() def get_or_create(self, user_id:str): users = self.dynamo_accessor.query(table...
41.869565
106
0.568536
737f3a55f0e13654ca78eee62218b1b1e4bf2e27
4,242
py
Python
whoville/cloudbreak/models/generated_blueprint_response.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/generated_blueprint_response.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/generated_blueprint_response.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...
33.666667
984
0.626355
737f3b21c8f56ea2e7d98d56f8a94b7ad765582a
12,711
py
Python
micromanager_gui/optocamp_widget.py
QI2lab/napari-micromanager
59de2e0041547376e32cf863e50f6cb434d964df
[ "BSD-3-Clause" ]
22
2021-03-10T13:41:09.000Z
2022-03-14T03:26:27.000Z
micromanager_gui/optocamp_widget.py
QI2lab/napari-micromanager
59de2e0041547376e32cf863e50f6cb434d964df
[ "BSD-3-Clause" ]
129
2021-05-17T22:43:59.000Z
2022-03-20T00:35:03.000Z
micromanager_gui/optocamp_widget.py
ianhi/napari-micromanager
e825f49282d9286160cc416e61c9e74fff54193f
[ "BSD-3-Clause" ]
4
2021-05-19T19:14:15.000Z
2022-01-17T18:12:10.000Z
import concurrent.futures import os import time from pathlib import Path import numpy as np import pyfirmata2 from qtpy import QtCore from qtpy import QtWidgets as QtW from qtpy import uic from qtpy.QtGui import QIcon from skimage import io from .qmmcore import QMMCore ICONS = Path(__file__).parent / "icons" UI_FILE...
35.805634
91
0.593974
737f461d32f181abda627b2211958a2a29c598e3
566
py
Python
src/pylsl/examples/ReceiveData.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
25
2015-01-19T20:09:31.000Z
2022-03-04T12:49:05.000Z
src/pylsl/examples/ReceiveData.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
2
2016-01-16T00:00:24.000Z
2019-08-17T03:38:11.000Z
src/pylsl/examples/ReceiveData.py
villawang/SNAP
3c899151e5c1f9f76c65f8eee164453ed5eef3e8
[ "BSD-3-Clause" ]
15
2015-10-22T18:18:00.000Z
2020-07-01T08:17:21.000Z
import sys; sys.path.append('..') # make sure that pylsl is found (note: in a normal program you would bundle pylsl with the program) import pylsl # first resolve an EEG stream on the lab network print("looking for an EEG stream...") streams = pylsl.resolve_stream('type','EEG') # create a new inlet to read from the ...
35.375
134
0.742049
737f6865ef65a0c244b2726e4563529fe2940003
519
py
Python
oscar/lib/python2.7/site-packages/faker/providers/company/hu_HU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/company/hu_HU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/company/hu_HU/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( '{{last_name}} {{company_suffix}}', '{{last_name}} {{last_name}} {{company_suffix}}', '{{last_name}}' ) company_suffixes = (...
20.76
58
0.541426
737fae856f9c105214e89ada33ada4dde38c6e03
196
py
Python
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p2i_is_type_of import P2iIsTypeOf from dataclasses import dataclass @dataclass class P137iIsExemplifiedBy(P2iIsTypeOf): URI = "http://erlangen-crm.org/current/P137i_is_exemplified_by"
24.5
67
0.821429
737ffc0afcfe05c7423429a424b483350271266f
14,937
py
Python
alipay/aop/api/domain/ArticleInfo.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/ArticleInfo.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/ArticleInfo.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 * from alipay.aop.api.domain.ArticleAttachmentInfo import ArticleAttachmentInfo from alipay.aop.api.domain.ArticleCategoryInfo import ArticleCategoryInfo from alipay.aop.api.domain.ArticleAttachmentInfo import ...
34.656613
87
0.574011
738036b14de95d86991b333aca0f735b0fa05975
400
py
Python
cpp/ABC/abc180/d/d.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/ABC/abc180/d/d.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/ABC/abc180/d/d.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline def main(): X, Y, A, B = map(int, input().split()) ans = 0 while True: XX = A * X if XX >= Y: ans += (Y - X - 1) // B break dX = XX - X if B <= dX: ans += (Y - X - 1) // B break ...
14.814815
42
0.3725
738039d92c92185f082382d3be1c452e75c812d9
3,131
py
Python
multi_robot_motion_planning/DiscoPygal/gui/RSegment.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
multi_robot_motion_planning/DiscoPygal/gui/RSegment.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
multi_robot_motion_planning/DiscoPygal/gui/RSegment.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import (QApplication, QGraphicsView, QGraphicsPixmapItem, QGraphicsScene, QGraphicsPolygonItem, QGraphicsEllipseItem, QGraphicsLineItem, QOpenGLWidget) from PyQt5.QtGui import QPainter, QPixmap, QPo...
31.626263
87
0.591185
73804acd17bdd166746aa967ddcae2802c445851
18,379
py
Python
pulumi/grapl/__main__.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
pulumi/grapl/__main__.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
pulumi/grapl/__main__.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
import sys from pathlib import Path from typing import Mapping, Set from pulumi.resource import CustomTimeouts, ResourceOptions from typing_extensions import Final sys.path.insert(0, "..") import os import pulumi_aws as aws import pulumi_consul as consul import pulumi_nomad as nomad from infra import config, dynamo...
41.487585
120
0.681811
738067698855e4482073692b87e2be9020b9153e
4,124
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/container_service_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/container_service_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/container_service_client.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-07-28T14:50:54.000Z
2021-07-28T14:50:54.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 ...
42.958333
107
0.723327
7380a2fe7e63d827f44fed5da1f6ea9163e11ff1
5,471
py
Python
experiments/vitchyr/probabilistic_goal_reaching/sawyer_tasks/exp_1_sweep_envs_redo_distance_rewards.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/sawyer_tasks/exp_1_sweep_envs_redo_distance_rewards.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/sawyer_tasks/exp_1_sweep_envs_redo_distance_rewards.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 rlkit.launchers.experiments.vitchyr.probabilistic_goal_reaching.launcher import \ probabilistic_goal_reaching_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( # env_id='FetchPush-v1', obse...
30.735955
86
0.527874
7380ae331582ac255413132e6fb9d3054d885fc4
1,875
py
Python
robot-tests/pending.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
robot-tests/pending.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
robot-tests/pending.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import subprocess import os import fnmatch import re import getpass def shell(command): process = subprocess.Popen(command.split(), stdout=subprocess.PIPE) output = process.communicate()[0] return output def issue_is_done(issue, username, password): curl_string = "curl -u " + us...
30.737705
161
0.624533
7380f4a87377b587af4eaeedb8f0aba48210b46f
2,051
py
Python
alipay/aop/api/domain/AlipayOpenSearchOrderdetailQueryModel.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/AlipayOpenSearchOrderdetailQueryModel.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/AlipayOpenSearchOrderdetailQueryModel.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 * from alipay.aop.api.domain.SearchOrderRequest import SearchOrderRequest class AlipayOpenSearchOrderdetailQueryModel(object): def __init__(self): self._biz_data = None self._biz_type = N...
27.346667
71
0.592882
7380ffe6bbbd9b94c9cc57bfe7849601f0814327
2,230
py
Python
tests/common/test_run/ascend/tanh_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/tanh_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/tanh_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
44.6
104
0.69148
73823bb2741b621f45e63a1bb629d6673b52262b
399
py
Python
koodous/cli.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
19
2016-11-24T06:13:20.000Z
2021-07-02T05:06:38.000Z
koodous/cli.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
18
2015-12-05T14:09:24.000Z
2021-06-07T11:55:53.000Z
koodous/cli.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
10
2015-12-04T20:01:53.000Z
2020-12-02T07:30:03.000Z
"""Console script for koodous.""" import sys import click @click.command() def main(args=None): """Console script for koodous.""" click.echo("Replace this message by putting your code into " "koodous.cli.main") click.echo("See click documentation at https://click.palletsprojects.com/") ...
23.470588
79
0.661654
73828a40140fca94ce9a9c4d70b930b0935eb043
77,347
py
Python
d3p_pa.py
TomaMTD/gevolution-1.2
e16792ad9fb8807213d628ab73c6840b34da1984
[ "MIT" ]
null
null
null
d3p_pa.py
TomaMTD/gevolution-1.2
e16792ad9fb8807213d628ab73c6840b34da1984
[ "MIT" ]
null
null
null
d3p_pa.py
TomaMTD/gevolution-1.2
e16792ad9fb8807213d628ab73c6840b34da1984
[ "MIT" ]
null
null
null
''' code in python3 Needs to be in the same directory as SONG (/.../song/) The python part of song call songy is written in python2. Make the following change: In /song/python/songy.py line 170: range(0,N*(N+1)/2) --> list(range(0,int(N*(N+1)/2))) ''' #####################################################...
44.198286
175
0.559349
738295c5d58b0eccb1e8af9301c48ce5f5a61f96
1,873
py
Python
sonnet/src/conformance/copy_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
1
2021-05-03T20:22:20.000Z
2021-05-03T20:22:20.000Z
sonnet/src/conformance/copy_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
null
null
null
sonnet/src/conformance/copy_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Sonnet 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 applicable l...
33.446429
78
0.708489
7382b41b5f1b07759718d74211803b847e6585e5
16,335
py
Python
intersight/models/policy_abstract_config_profile.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/policy_abstract_config_profile.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/policy_abstract_config_profile.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class PolicyAbstractConfigProfile(object): """ NOTE...
29.808394
278
0.613162
7382c2293413930e0fac7fe8d61308dc14b201f6
11,776
py
Python
lib_fr/nets/P4.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_fr/nets/P4.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_fr/nets/P4.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Zheqi He and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __f...
47.483871
118
0.53609
7382c53615f3c66ec7c0cd54b92545b2f0445389
1,460
py
Python
oracle/modules/format.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
1
2015-07-15T15:24:54.000Z
2015-07-15T15:24:54.000Z
oracle/modules/format.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
null
null
null
oracle/modules/format.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from colorama import init, Fore, Back, Style init(autoreset=True) RESET = '\x0F' BOLD = '\x02' ITALICS = '\x1D' UNDERLINE = '\x1F' BLACK = '\x0301' DARKBLUE = '\x0302' DARKGREEN = '\x0303' RED = '\x0304' DARKRED = '\x0305' PURPLE = '\x0306' ORANGE = '\x0307' YELLOW = '\x0308' GRE...
23.548387
56
0.628767
7382cc2e0a880c5668a5aca549237907af36ca2c
104,279
py
Python
geosoft/gxapi/GXGUI.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
null
null
null
geosoft/gxapi/GXGUI.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
null
null
null
geosoft/gxapi/GXGUI.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
null
null
null
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace the code in this block ### end...
38.578986
338
0.613997
7382e0b4930bc28c70a14cded9f42153d8bf597e
4,697
py
Python
cotk/metric/ngram_perplexity.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
117
2019-03-14T15:06:42.000Z
2022-02-28T07:06:34.000Z
cotk/metric/ngram_perplexity.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
149
2019-03-12T09:43:21.000Z
2020-08-24T02:56:34.000Z
cotk/metric/ngram_perplexity.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
51
2019-03-14T15:12:48.000Z
2021-08-09T03:37:48.000Z
'''Containing NgramFwBwPerplexityMetric''' from typing import Optional, List, Any, Union, Dict import logging from ..dataloader import Tokenizer, SimpleTokenizer from .metric import MetricBase from ..models.ngram_language_model import KneserNeyInterpolated class NgramFwBwPerplexityMetric(MetricBase): '''Met...
35.583333
126
0.697254
7382fbb06e6a0b8f55f7853faf79442edc6fbf16
12,503
py
Python
brian2/input/timedarray.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/input/timedarray.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
brian2/input/timedarray.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
''' Implementation of `TimedArray`. ''' import numpy as np from brian2.core.clocks import defaultclock from brian2.core.functions import Function from brian2.units.allunits import second from brian2.units.fundamentalunits import check_units, get_unit from brian2.core.names import Nameable from brian2.utils.logger imp...
39.566456
144
0.502759
738307d268c56877e09821e8985047e35e56fea2
2,036
py
Python
savu/test/travis/plugin_tests/loader_tests/tomophantom_hdf5_loader_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/loader_tests/tomophantom_hdf5_loader_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/loader_tests/tomophantom_hdf5_loader_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
35.719298
87
0.743124
7383100fc69573aabfd1dae879712aeacf9bb191
4,506
py
Python
analysis/q.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
2
2019-10-18T17:04:50.000Z
2019-10-18T17:05:04.000Z
analysis/q.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
17
2019-11-20T09:33:50.000Z
2020-01-30T14:57:40.000Z
analysis/q.py
gsavarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
2
2021-03-13T15:38:05.000Z
2021-05-08T22:25:36.000Z
"""Compare Q tables generated by different experiments""" __author__ = 'Guilherme Varela' __date__ = '2020-02-20' from ilurl.utils import parse from glob import glob import os import numpy as np import dill import pdb # current project dependencies from ilurl.envs.base import TrafficLightQLEnv ROOT_DIR = os.environ['...
24.48913
69
0.567244
738310236121498d4ccb2879b3c4a78b6b4f758c
14,880
py
Python
utils/cropping_helper.py
alejodosr/adaptive-inattention
ad1c883081e5248704be5ce5c4baa24b2eda1c59
[ "MIT" ]
1
2021-07-15T04:35:53.000Z
2021-07-15T04:35:53.000Z
utils/cropping_helper.py
alejodosr/adaptive-inattention
ad1c883081e5248704be5ce5c4baa24b2eda1c59
[ "MIT" ]
null
null
null
utils/cropping_helper.py
alejodosr/adaptive-inattention
ad1c883081e5248704be5ce5c4baa24b2eda1c59
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable from collections import OrderedDict import numpy as np from math import ceil,floor import cv2 import math def check_same(stride): if isinstance(stride, (list, tuple)): assert len(stride) == 2 and stride[0] == stride[1] stride ...
42.514286
159
0.594556
738315b0b321f382937bd43b749e791df0a22883
2,249
py
Python
cloudmesh/rack/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/rack/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/rack/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
""" async task, get cluster temperature, value of "-1" means cannot connect to server or get temperature """ from sh import ssh from celery import Celery from cloudmesh.temperature.cm_temperature import cm_temperature as Temperature from cloudmesh.rack.rack_data import rack_data import sys import os from celery.uti...
29.592105
79
0.622499
73831649ee20392b1b8a83b6fda6e01b77832577
2,421
py
Python
src/glove_tf_21/utils/file_utils.py
bbreton3/glove_tf_21
16b18bdb2d41c104dcd9159c0a760336bb5fd4d1
[ "MIT" ]
1
2020-04-18T16:33:05.000Z
2020-04-18T16:33:05.000Z
src/glove_tf_21/utils/file_utils.py
bbreton3/glove_tf_21
16b18bdb2d41c104dcd9159c0a760336bb5fd4d1
[ "MIT" ]
7
2020-11-13T17:44:25.000Z
2022-02-10T01:16:13.000Z
src/glove_tf_21/utils/file_utils.py
bbreton3/glove_tf_21
16b18bdb2d41c104dcd9159c0a760336bb5fd4d1
[ "MIT" ]
null
null
null
import os def flatten_lists_of_lists(lists_of_lists): """ Flatten list of lists into a list ex: [[1, 2], [3]] => [1, 2, 3] :param lists_of_lists: list(list(elems)) :return: list(elems) """ return [elem for sublist in lists_of_lists for elem in sublist] def safe_key_extractor(di...
22.211009
88
0.635688
738322e18f22d6a4cc3ef76b44f4b34b7d6fbb81
2,135
py
Python
jaffle/command/tty/command.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
5
2018-06-13T14:10:43.000Z
2020-04-26T20:48:59.000Z
jaffle/command/tty/command.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
1
2018-05-02T02:31:24.000Z
2018-05-02T02:31:24.000Z
jaffle/command/tty/command.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
2
2021-05-17T16:27:16.000Z
2022-02-09T09:06:12.000Z
# -*- coding: utf-8 -*- import io import re import sys import pexpect from ..base import BaseJaffleCommand class OutputStream(io.StringIO): """ Output stream for JaffleTTYCommand which drops escape sequences. """ _ESC_PATTERN = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-ln-~]') _ESC_PATTERN_NOCO...
21.35
72
0.528806
73833ec6ef1333ab8ffe7b25e059af0b66b46e27
2,325
py
Python
multiagent/multi_discrete.py
RC-Dynamics/multiagent-particle-envs
cd24175ab092b7970416f89a92dbcf695059115f
[ "MIT" ]
1
2020-12-09T22:48:45.000Z
2020-12-09T22:48:45.000Z
multiagent/multi_discrete.py
anthonyyim/multiagent-particle-envs
f8c7af62264071b88219a21e975dd35d5d9b8b0e
[ "MIT" ]
null
null
null
multiagent/multi_discrete.py
anthonyyim/multiagent-particle-envs
f8c7af62264071b88219a21e975dd35d5d9b8b0e
[ "MIT" ]
2
2022-01-12T17:51:03.000Z
2022-03-31T07:31:31.000Z
# An old version of OpenAI Gym's multi_discrete.py. (Was getting affected by Gym updates) # (https://github.com/openai/gym/blob/1fb81d4e3fb780ccf77fec731287ba07da35eb84/gym/spaces/multi_discrete.py) import numpy as np import gym class MultiDiscrete(gym.Space): """ - The multi-discrete action space consists o...
54.069767
122
0.676129
738342fdd19c403a1d67f0d8f072d6eb390d75fa
2,535
py
Python
h1st/h1st/model_repository/storage/s3.py
tanrobotix/h1st
c9d67305726f11235751bc5abfd766279cba463b
[ "Apache-2.0" ]
null
null
null
h1st/h1st/model_repository/storage/s3.py
tanrobotix/h1st
c9d67305726f11235751bc5abfd766279cba463b
[ "Apache-2.0" ]
3
2020-11-13T19:06:07.000Z
2022-02-10T02:06:03.000Z
h1st/h1st/model_repository/storage/s3.py
diophung/h1st
ca4245996448717cf9701e17929eca8daa5d80a4
[ "Apache-2.0" ]
null
null
null
from typing import Any, NoReturn import cloudpickle import s3fs from .base import Storage class S3Storage(Storage): """ Provide data storage on top of AWS S3 """ def __init__(self, bucket_name: str = "", prefix: str = ""): """ :param bucket_name: s3 bucket name to store data into ...
25.606061
76
0.535306
73839a743cc42ac3c3024fa03234b1ca0a24a675
4,985
py
Python
terrascript/resource/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/chanzuckerberg/snowflake.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:17 UTC) import terrascript class snowflake_account_grant(terrascript.Resource): pass class snowflake_api_integration(terrascript.Resource): pass class snowflake_database(terrascript.Resourc...
18.954373
73
0.778134
7383baea8533db0ce862054aa720090c50aaa292
1,442
py
Python
tests/test_aws_stacks_asg.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
null
null
null
tests/test_aws_stacks_asg.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
1,396
2017-12-24T18:25:05.000Z
2022-03-31T15:05:19.000Z
tests/test_aws_stacks_asg.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
null
null
null
import pytest from stackformation.aws.stacks import (vpc, ec2, iam, eip, ebs, asg, elb) from stackformation.aws import user_data from stackformation import Infra from stackformation import utils @pytest.fixture def infra(): infra = ...
27.207547
100
0.644244
7383c888f7c672eaa83983fd21667d826bd6e3c2
494
py
Python
alipay/aop/api/response/AlipayMarketingCampaignPrizepoolPrizeDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayMarketingCampaignPrizepoolPrizeDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayMarketingCampaignPrizepoolPrizeDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayMarketingCampaignPrizepoolPrizeDeleteResponse(AlipayResponse): def __init__(self): super(AlipayMarketingCampaignPrizepoolPrizeDeleteResponse, self).__init__() def...
30.875
124
0.803644
7383d8c2288721dd5251abefaf7066408c6e6c90
19,955
py
Python
fairseq/data/audio/speech_to_text_triple_dataset.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/data/audio/speech_to_text_triple_dataset.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
fairseq/data/audio/speech_to_text_triple_dataset.py
dqqcasia/mosst
0a5206b3ff88c33583ddf422b364134be2e95da6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import csv import io import logging import os.path as op import re from typing import Dict, List, Optional, Tuple import numpy as np import t...
36.215971
88
0.606715
7383dbc45ba61040f3c5fd1f7c7e5729774c0aad
20,074
py
Python
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
null
null
null
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
1
2021-05-31T08:56:01.000Z
2021-05-31T08:56:01.000Z
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "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. # ----------------------------------------------------------------------...
45.211712
137
0.601823
7383fcd178940e34185520dfac3c879a3979a752
840
py
Python
examples/arduino/scripts/config_to_c_code.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
examples/arduino/scripts/config_to_c_code.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
examples/arduino/scripts/config_to_c_code.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import platform if platform.system() == 'Windows': MYPYTHON = 'python' MYCODEROOT = 'c:/coderoot' else: MYPYTHON = 'python3' MYCODEROOT = '/coderoot' MYAPPCONFIG = MYCODEROOT + '/iocom/examples/arduino/config' def runcmd(cmd): stream = os.popen(cmd) output = s...
32.307692
130
0.704762
738451c89b2f3bc2e277a48f553650e6fb291bde
188
py
Python
experiment_interface/hooks/__init__.py
dnnspark/trainer
cdf28eaf22e4b97e11b08d4d04274e2e178f20e3
[ "MIT" ]
null
null
null
experiment_interface/hooks/__init__.py
dnnspark/trainer
cdf28eaf22e4b97e11b08d4d04274e2e178f20e3
[ "MIT" ]
1
2018-11-21T08:01:31.000Z
2018-11-21T08:01:31.000Z
experiment_interface/hooks/__init__.py
dnnspark/trainer
cdf28eaf22e4b97e11b08d4d04274e2e178f20e3
[ "MIT" ]
null
null
null
from .core import Hook, StopAtStep, SaveNetAtLast from .validation import ValidationHook from .scalar_recorder import ScalarRecorder from .viz_runner import TrainValLossViz, ValLossAccViz
37.6
54
0.861702
738479c946d5c3f9e106d4222ffb15dea86c6c62
4,566
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/python/util/compat.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
6
2017-08-07T14:05:41.000Z
2020-02-28T03:57:56.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/python/util/compat.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
2
2019-04-23T07:13:12.000Z
2019-04-25T15:43:28.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/python/util/compat.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-02-11T17:13:13.000Z
2019-02-11T17:13:13.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
29.269231
87
0.714849
738495e466cfe2118af831ac75958b9fcdfdc368
19,480
py
Python
ansible/roles/test/files/ptftests/vxlan-decap.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
ansible/roles/test/files/ptftests/vxlan-decap.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
ansible/roles/test/files/ptftests/vxlan-decap.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
# ptf -t "config_file='/tmp/vxlan_decap.json';vxlan_enabled=True;dut_host=10.0.0.1;sonic_admin_user=admin;sonic_admin_password=admin" --platform-dir ptftests --test-dir ptftests --platform remote vxlan-decap # The test checks vxlan decapsulation for the dataplane. # The test runs three tests for each vlan on the DUT: ...
37.461538
207
0.56499
7384b0e3457f747442151b4cdef6b1e911d59a80
1,210
py
Python
xontrib/coreutils.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xontrib/coreutils.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xontrib/coreutils.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Additional core utilities that are implemented in xonsh. The current list includes: * cat * echo * pwd * tee * tty * yes In many cases, these may have a lower performance overhead than the posix command line utility with the same name. This is because these tools avoid the need for a full subprocess call. Additio...
27.5
68
0.736364
7384bf00a038a8c4a7342ff7a0c116f909a43b01
6,830
py
Python
custom_components/metlocationforecast/sensor.py
toringer/home-assistant-metlocationforecast
aa336683aa944050d730b719cc691ef643c46bf9
[ "MIT" ]
null
null
null
custom_components/metlocationforecast/sensor.py
toringer/home-assistant-metlocationforecast
aa336683aa944050d730b719cc691ef643c46bf9
[ "MIT" ]
null
null
null
custom_components/metlocationforecast/sensor.py
toringer/home-assistant-metlocationforecast
aa336683aa944050d730b719cc691ef643c46bf9
[ "MIT" ]
null
null
null
import asyncio import logging from xml.parsers.expat import ExpatError import aiohttp import async_timeout import voluptuous as vol import requests from datetime import datetime, timedelta #import datetime import homeassistant.helpers.config_validation as cv from homeassistant.components.sensor import P...
35.572917
153
0.614348
73851e43bf8059a2253715a12b3d7e2cc3233746
2,068
py
Python
exercises/general/input.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/input.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/input.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
# File: input.py # Desc: Use user input to return a sentence about the input. import kivy from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.uix.textinput import TextInput from kivy.uix.button import Button class MyGridLayout(GridLayout): # Initialize i...
28.328767
75
0.615571
73851e70f2bf5a000caa7ef2b62230ea1767df6f
12,387
py
Python
src/olympia/addons/tests/test_cron.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_cron.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_cron.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import os import time from django.core.management.base import CommandError from django.test.utils import override_settings import mock from olympia import amo from olympia.addons import cron from olympia.addons.models import Addon, AppSupport from olympia.amo.tests import Test...
39.32381
79
0.640752
738539f9ae6f38a68d5f55b587e456a7ea314d7b
8,238
py
Python
toontown/estate/ToonStatueSelectionGUI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/estate/ToonStatueSelectionGUI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/estate/ToonStatueSelectionGUI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from direct.gui.DirectGui import * from direct.gui.DirectScrolledList import * from direct.interval.IntervalGlobal import * from direct.task import Task from pandac.PandaModules import * from toontown.estate import Distr...
49.626506
291
0.656227
738561be59877fa847758bb9d86dfa8b44afb0b6
8,010
py
Python
nashvegas/utils.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
2
2015-09-24T19:50:55.000Z
2015-11-06T10:45:08.000Z
nashvegas/utils.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
nashvegas/utils.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
import itertools import os.path import re from collections import defaultdict from django.core.management.color import no_style from django.core.management.sql import custom_sql_for_model from django.db import connections, router, models, DEFAULT_DB_ALIAS from django.utils.datastructures import SortedDict from nashveg...
32.42915
78
0.58427
7385adac49d875f24559581855e5ceeb603946cf
1,026
py
Python
src/constants.py
mpetroff/pol-mm-wave-atm-model
fa60882c60ebd4c5d152d20642b11e391072149a
[ "MIT" ]
null
null
null
src/constants.py
mpetroff/pol-mm-wave-atm-model
fa60882c60ebd4c5d152d20642b11e391072149a
[ "MIT" ]
null
null
null
src/constants.py
mpetroff/pol-mm-wave-atm-model
fa60882c60ebd4c5d152d20642b11e391072149a
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np import astropy.constants import astropy.units as u BASE_PATH = (Path(__file__).parent / "..").absolute().resolve() K_B = astropy.constants.k_B.to("J/K").value C = astropy.constants.c.to("m/s").value H = astropy.constants.h.to("J s").value MU_B = astropy.constants.muB.to("J/...
34.2
99
0.725146
7385d66d2390ed8f0ae5f517cc719f6d95eee0f9
3,530
py
Python
appengine/findit/services/test/extract_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/extract_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/extract_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import mock from google.appengine.api.urlfetch import ResponseTooLargeError from model.wf_analysis import WfAnalysis from services import extra...
28.934426
80
0.655241
7385d683757c849ced826001853666abb34e81a9
6,047
py
Python
algorithms/pointspectrum/link_prediction.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
4
2021-02-07T01:06:03.000Z
2021-09-07T11:55:46.000Z
algorithms/pointspectrum/link_prediction.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
1
2021-04-13T07:29:50.000Z
2021-04-13T09:46:13.000Z
algorithms/pointspectrum/link_prediction.py
mpoiitis/iSpine
333c5c6326c7052a673ce89eabadb476031c7a35
[ "MIT" ]
1
2022-03-27T01:01:18.000Z
2022-03-27T01:01:18.000Z
import numpy as np import scipy.sparse as sp from torch_geometric.datasets import Planetoid from torch_geometric.transforms import NormalizeFeatures from torch_geometric.utils import to_dense_adj, train_test_split_edges import torch import pickle import time import random import os from .models import PointSpectrum fro...
39.012903
301
0.635522
7385dded61696f253f464a04ba46bd5256f56d9a
4,054
py
Python
digideep/utility/profiling.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
11
2019-03-09T23:54:02.000Z
2020-09-05T20:47:55.000Z
log_sessions/cartpole_8_5_05_1/modules/digideep/utility/profiling.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-09-30T01:15:57.000Z
2021-09-30T01:15:57.000Z
digideep/utility/profiling.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
null
null
null
from collections import OrderedDict as odict import time import numpy as np from .json_encoder import JsonNumEncoder import os class Profiler: """This class provides a very simple yet light implementation of function profiling. It is very easy to use: >>> profiler.reset() >>> profiler.start("...
29.808824
124
0.553774
7385e5ee792f0d7def0644f4b2f613ad44463815
703
py
Python
setup.py
UT-CHG/ch-sim
5e9d7c55cc40f409202c0ed68c85e12e70001609
[ "MIT" ]
1
2021-09-07T16:08:12.000Z
2021-09-07T16:08:12.000Z
setup.py
bpachev/ch-sim
d98d6ad2225ce0c37e0da87d2152203a0c3359f3
[ "MIT" ]
null
null
null
setup.py
bpachev/ch-sim
d98d6ad2225ce0c37e0da87d2152203a0c3359f3
[ "MIT" ]
1
2022-01-11T15:34:52.000Z
2022-01-11T15:34:52.000Z
""" Setup file for ch-sim. Use setup.cfg to configure your project. This file was generated with PyScaffold 4.0.2. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ from setuptools import setup if __name__ == "__main__": try: ...
31.954545
77
0.637269
7385eed2701516bf673c1b527b0bd6119e33b25d
7,848
py
Python
TrainingExtensions/common/src/python/aimet_common/graph_searcher.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/common/src/python/aimet_common/graph_searcher.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/common/src/python/aimet_common/graph_searcher.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019, 2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
41.744681
115
0.663609
73860d072746bf204b7c492aaa96dda455e08a91
3,585
py
Python
app/__init__.py
sebastienlanglois/flask-hydro
2bd399ca91fdaeea297ec5e6ee076ce1a53d0f37
[ "MIT" ]
null
null
null
app/__init__.py
sebastienlanglois/flask-hydro
2bd399ca91fdaeea297ec5e6ee076ce1a53d0f37
[ "MIT" ]
8
2020-03-24T17:16:40.000Z
2022-03-11T23:52:59.000Z
app/__init__.py
sebastienlanglois/flask-hydro
2bd399ca91fdaeea297ec5e6ee076ce1a53d0f37
[ "MIT" ]
null
null
null
import logging from logging.handlers import SMTPHandler, RotatingFileHandler import os from flask import Flask, request, current_app from flask_sqlalchemy import SQLAlchemy import psycopg2 from app.dashboards import Dash_App1, Dash_App2 from flask_migrate import Migrate from flask_login import LoginManager from flask_m...
32.008929
79
0.669456
73860eca4f699a1fb3f50233fa3dec9f9e42255e
1,888
py
Python
src/analytics/movies/analysis_history_comparison.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
6
2020-03-04T13:33:37.000Z
2021-06-25T12:08:21.000Z
src/analytics/movies/analysis_history_comparison.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
3
2021-03-31T19:31:51.000Z
2021-12-13T20:26:19.000Z
src/analytics/movies/analysis_history_comparison.py
manjotms10/google-trends-analytics
718311ba92d880623eb85cf5c76423116faaade2
[ "MIT" ]
null
null
null
from utils.google_trends import GoogleTrends from utils import misc import pandas as pd ''' This file gives the example of plotting time series line plots of the movies' search data and revenue for 1 month post their release dates ''' box_office_df = pd.read_csv("../../../conf/movies/box_office.csv").set_inde...
47.2
139
0.783369
73862c7e595d61523cfd0c63564bf18acf6b8248
629
py
Python
Theory/walrus.py
wallaceleonel/Automatizando-
f8086f01f8c56041902b5f6b28accdac0f60ebe5
[ "MIT" ]
1
2021-10-06T22:58:46.000Z
2021-10-06T22:58:46.000Z
Theory/walrus.py
wallaceleonel/Automatizando-
f8086f01f8c56041902b5f6b28accdac0f60ebe5
[ "MIT" ]
4
2021-09-24T16:03:28.000Z
2021-11-24T01:13:53.000Z
Theory/walrus.py
wallaceleonel/Automatizando-
f8086f01f8c56041902b5f6b28accdac0f60ebe5
[ "MIT" ]
null
null
null
# The account info request request = {'form': {'usename': 'Esaú', 'password': 'password'}} # The database db = [] def new_acc(request): """ New Account Help ':=' is the walrus operator (to define a variable in one line (on conditions, loops, etc...) and to simplify code) 'password' is the value that will be ...
31.45
118
0.661367
73868dd261fd08dbe1237f0514cb1fd48957f905
395
py
Python
app/carbonmap/wsgi.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/carbonmap/wsgi.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/carbonmap/wsgi.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
""" WSGI config for carbonmap 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/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
73869478cb6ad94bac6d4f40bddf8db8ffdc885f
2,528
py
Python
influxdb_client/domain/post_notification_rule.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/post_notification_rule.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/post_notification_rule.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxd...
29.057471
124
0.58307
7386a942163cf4af8e011cd1b7f8585ba3719f16
1,659
py
Python
tests/extractors/test_arxiv.py
CristianCantoro/wikidump
f1d50b16c483b74a624cab38e003513df588b11b
[ "MIT" ]
5
2019-02-28T13:39:30.000Z
2021-09-13T00:42:34.000Z
tests/extractors/test_arxiv.py
Rickaphile/wikidump
5c5af3192fa1772f0fdc8e902d7902f379d3efe9
[ "MIT" ]
1
2021-05-30T12:35:52.000Z
2021-06-18T14:08:23.000Z
tests/extractors/test_arxiv.py
Rickaphile/wikidump
5c5af3192fa1772f0fdc8e902d7902f379d3efe9
[ "MIT" ]
3
2020-04-07T01:27:12.000Z
2021-05-29T16:03:42.000Z
from wikidump.extractors import arxiv from wikidump.extractors.common import Identifier import collections INPUT_TEXT = ''' This is a doi randomly placed in the text 10.0000/m1 Here's a typo that might be construed as a doi 10.60 people were there. {{cite|...|arxiv=0706.0001v1|pmid=10559875}} <ref>Halfaker, A., Geige...
34.5625
71
0.709464