hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
f5e56f9248eb4754689742e2d033991059fb377b
4,475
py
Python
alipay/aop/api/domain/AlipayMarketingCampaignDiscountBudgetCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMarketingCampaignDiscountBudgetCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMarketingCampaignDiscountBudgetCreateModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingCampaignDiscountBudgetCreateModel(object): def __init__(self): self._biz_from = None self._fund_type = None self._gmt_end = None self....
30.650685
87
0.593296
32d92dee3a88533855b14b7f272bea2d493952c5
312
py
Python
cwr/manage.py
ghinda/chrome-webstore-ranking
4a508d30d34ecd348ca506bd914f556dc89e6f80
[ "MIT" ]
1
2021-05-16T18:03:13.000Z
2021-05-16T18:03:13.000Z
cwr/manage.py
ghinda/chrome-webstore-ranking
4a508d30d34ecd348ca506bd914f556dc89e6f80
[ "MIT" ]
null
null
null
cwr/manage.py
ghinda/chrome-webstore-ranking
4a508d30d34ecd348ca506bd914f556dc89e6f80
[ "MIT" ]
null
null
null
import logging from flask.ext.script import Manager from flask.ext.migrate import Migrate, MigrateCommand from cwr.app import app, db manager = Manager(app) migrate = Migrate(app, db) manager.add_command('db', MigrateCommand) logger = logging.getLogger(__file__) if __name__ == "__main__": manager.run()
20.8
53
0.766026
e22362aa67115de6cc5a043c786b6c9a8c81877d
9,281
py
Python
tfx/extensions/google_cloud_big_query/experimental/elwc_example_gen/component/executor_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/extensions/google_cloud_big_query/experimental/elwc_example_gen/component/executor_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/extensions/google_cloud_big_query/experimental/elwc_example_gen/component/executor_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2020 Google LLC. 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 law or a...
23.2025
101
0.497145
0b73bec679360f6a3f5ca1cefd88f6c8fee9a870
238
py
Python
GlobalDataset/scripts/runChi_sa.py
gehilley/GlobalSteepness
62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd
[ "MIT" ]
3
2019-09-19T00:04:27.000Z
2020-02-17T16:17:55.000Z
GlobalDataset/scripts/runChi_sa.py
gehilley/GlobalSteepness
62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd
[ "MIT" ]
null
null
null
GlobalDataset/scripts/runChi_sa.py
gehilley/GlobalSteepness
62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd
[ "MIT" ]
1
2020-12-17T07:35:23.000Z
2020-12-17T07:35:23.000Z
from denudationRateAnalysis import create_chi_grid_for_geographic_prefix as create_chi prefix = 'sa' thetas = [0.4, 0.5, 0.6] Ao = 1000000 basin_lengths = [50000, 100000, 200000, 400000] create_chi(prefix, thetas, Ao, basin_lengths)
21.636364
86
0.768908
7c2382df251ebf6d5ccfd633eff15b723e1cb001
5,610
py
Python
scipy/spatial/tests/test_hausdorff.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
366
2019-04-07T20:34:48.000Z
2022-03-29T07:35:38.000Z
scipy/spatial/tests/test_hausdorff.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
scipy/spatial/tests/test_hausdorff.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
61
2019-04-08T00:58:14.000Z
2022-03-20T23:04:28.000Z
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import (assert_almost_equal, assert_array_equal, assert_equal, assert_) import pytest from scipy.spatial.distance import directed_hausd...
44.52381
79
0.630838
b15351a8a0d26a86cfde31a182294ae222b5a776
6,308
py
Python
transformer_atten/transformer/utils/tokenizer_test.py
StuartCHAN/neural-qa
42bbd997757bbea57f71398c4dd52d469a6916e9
[ "MIT" ]
5
2020-04-08T16:12:27.000Z
2021-05-14T14:05:06.000Z
transformer_atten/transformer/utils/tokenizer_test.py
StuartCHAN/neural-qa
42bbd997757bbea57f71398c4dd52d469a6916e9
[ "MIT" ]
null
null
null
transformer_atten/transformer/utils/tokenizer_test.py
StuartCHAN/neural-qa
42bbd997757bbea57f71398c4dd52d469a6916e9
[ "MIT" ]
1
2020-07-03T13:59:11.000Z
2020-07-03T13:59:11.000Z
# 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 applica...
34.469945
80
0.676443
d6d0763354355fb4413488e2803ed02fa763f7bf
4,005
py
Python
ross/stochastic/st_results_elements.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
69
2018-12-26T19:21:26.000Z
2022-02-10T08:48:03.000Z
ross/stochastic/st_results_elements.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
639
2018-12-18T16:44:11.000Z
2022-03-27T16:46:41.000Z
ross/stochastic/st_results_elements.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
136
2019-01-08T12:37:32.000Z
2022-03-30T07:14:35.000Z
"""Plotting module for elements. This modules provides functions to plot the elements statistic data. """ from copy import copy import numpy as np from plotly import graph_objects as go from plotly import io as pio from plotly.subplots import make_subplots from scipy.stats import gaussian_kde from ross.plotly_theme ...
31.785714
84
0.571536
724747d91a2bdd1a359f0582c9539099a8cba832
140
py
Python
metatron/__init__.py
harel/metatron
e8d82aa3e000c0682d215396112900ede54a96d6
[ "MIT" ]
4
2018-02-16T10:54:45.000Z
2021-07-12T20:41:48.000Z
metatron/__init__.py
harel/metatron
e8d82aa3e000c0682d215396112900ede54a96d6
[ "MIT" ]
1
2020-10-03T15:23:37.000Z
2020-10-03T15:23:37.000Z
metatron/__init__.py
harel/metatron
e8d82aa3e000c0682d215396112900ede54a96d6
[ "MIT" ]
null
null
null
from .metatron import Metatron, add_schema_spec from .version import __version__ __all__ = ['Metatron', 'add_schema_spec', '__version__']
23.333333
56
0.785714
6c7a686d74b5fa6ab4c26825bf886d6141919255
2,131
py
Python
mods/goog-mail.py
tomsec/discover
8afec1f4b8f13e11c22f0386fc50eeb762b3492c
[ "MIT" ]
null
null
null
mods/goog-mail.py
tomsec/discover
8afec1f4b8f13e11c22f0386fc50eeb762b3492c
[ "MIT" ]
null
null
null
mods/goog-mail.py
tomsec/discover
8afec1f4b8f13e11c22f0386fc50eeb762b3492c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import http.client import re import string import sys import urllib.request import urllib.parse def StripTags(text): finished = 0 while not finished: finished = 1 start = text.find(b"<") if start >= 0: stop = text[start:].find(b">") if stop >...
31.338235
140
0.594087
0ca910060bea9f6ebfc1bc25413e18f66af8654a
9,468
py
Python
devices/DeviceCommon.py
hzg-wpi/p05nano
af13c97256e754e30512d4c9ef88c287f09dedaa
[ "MIT" ]
null
null
null
devices/DeviceCommon.py
hzg-wpi/p05nano
af13c97256e754e30512d4c9ef88c287f09dedaa
[ "MIT" ]
null
null
null
devices/DeviceCommon.py
hzg-wpi/p05nano
af13c97256e754e30512d4c9ef88c287f09dedaa
[ "MIT" ]
null
null
null
import time import PyTango import p05.common.TangoFailsaveComm as tfs # TODO (!check!) - not used. CODE: OK, may leave as it is class DeviceCommon(object): def __init__(self, devdict=None): self.__devdict = devdict def _tRead(self, tObject, attribute): """ DESCRIPTION: R...
36.697674
115
0.508872
9563f41a47dd2252467072990341667d2fc553a3
24
py
Python
poefixer/postprocess/__init__.py
trh3/poefixer
dafc489ce41d176b0289ba1b48ec82bb6d9e9f07
[ "MIT" ]
18
2018-08-02T03:16:12.000Z
2021-07-10T22:21:55.000Z
poefixer/postprocess/__init__.py
trh3/poefixer
dafc489ce41d176b0289ba1b48ec82bb6d9e9f07
[ "MIT" ]
null
null
null
poefixer/postprocess/__init__.py
trh3/poefixer
dafc489ce41d176b0289ba1b48ec82bb6d9e9f07
[ "MIT" ]
11
2019-02-19T20:00:46.000Z
2022-01-20T22:57:58.000Z
from .currency import *
12
23
0.75
a6d78ef1d5e0c4dc8499c6a00fa4d0e8b5135aff
2,695
py
Python
raytracerchallenge_python/cone.py
toku345/RayTracerChallenge_Python
40ced097f92cc61b116d24c6d6c4f27d6b13029d
[ "MIT" ]
1
2020-05-13T20:54:01.000Z
2020-05-13T20:54:01.000Z
raytracerchallenge_python/cone.py
toku345/RayTracerChallenge_Python
40ced097f92cc61b116d24c6d6c4f27d6b13029d
[ "MIT" ]
null
null
null
raytracerchallenge_python/cone.py
toku345/RayTracerChallenge_Python
40ced097f92cc61b116d24c6d6c4f27d6b13029d
[ "MIT" ]
null
null
null
from raytracerchallenge_python.shape import Shape from raytracerchallenge_python.intersection import Intersections, Intersection from raytracerchallenge_python.tuple import Vector from raytracerchallenge_python.helpers import EPSILON from math import sqrt class Cone(Shape): def __init__(self): super()._...
31.337209
78
0.53692
144f58350322bcae42e152300778f491908a1576
8,860
py
Python
utils/cider/pyciderevalcap/ciderD/ciderD_scorer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
828
2020-05-14T21:00:30.000Z
2022-03-29T07:21:39.000Z
utils/cider/pyciderevalcap/ciderD/ciderD_scorer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
181
2020-05-18T13:14:59.000Z
2022-03-30T17:45:59.000Z
utils/cider/pyciderevalcap/ciderD/ciderD_scorer.py
zhaoguangxiang/OFA
cc1719df2713f0a046f34acb0afd8782e08ea6be
[ "Apache-2.0" ]
226
2020-05-14T20:55:37.000Z
2022-03-23T09:45:36.000Z
#!/usr/bin/env python # Tsung-Yi Lin <tl483@cornell.edu> # Ramakrishna Vedantam <vrama91@vt.edu> from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy from collections import defaultdict import numpy as np import pdb import math import six from six.mov...
39.730942
116
0.592664
8af2267b0d9b24453b559eba27cf2c8e2555a492
1,707
py
Python
test/integration/019_analysis_tests/test_analyses.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
3,156
2017-03-05T09:59:23.000Z
2021-06-30T01:27:52.000Z
test/integration/019_analysis_tests/test_analyses.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
2,608
2017-02-27T15:39:40.000Z
2021-06-30T01:49:20.000Z
test/integration/019_analysis_tests/test_analyses.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
693
2017-03-13T03:04:49.000Z
2021-06-25T15:57:41.000Z
from test.integration.base import DBTIntegrationTest, use_profile, get_manifest import os class TestAnalyses(DBTIntegrationTest): @property def schema(self): return "test_analyses_019" @property def models(self): return "models" def analysis_path(self): return "analyses"...
31.611111
82
0.652021
721666ef70f0e94f243759afc2128c74442caac9
1,750
py
Python
app.py
masaponto/dentaku2
843569efd7df272fd47af7cb51d92413a3250d0a
[ "MIT" ]
null
null
null
app.py
masaponto/dentaku2
843569efd7df272fd47af7cb51d92413a3250d0a
[ "MIT" ]
null
null
null
app.py
masaponto/dentaku2
843569efd7df272fd47af7cb51d92413a3250d0a
[ "MIT" ]
null
null
null
# !/usr/bin/env python import tensorflow as tf import numpy as np from mnist import model from flask import Flask, render_template, request, jsonify app = Flask(__name__, template_folder='build', static_folder='build') x = tf.placeholder("float", [None, 784]) sess = tf.Session() with tf.variable_scope("convolutional...
23.648649
76
0.62
3b44d31358b9638edacc7a4612870829ae4abe67
1,939
py
Python
aiida/cmdline/params/types/__init__.py
hongyi-zhao/aiida-core
d6e8c7d10537b754d1cb6334689ba2edf4347d43
[ "BSD-2-Clause", "MIT" ]
null
null
null
aiida/cmdline/params/types/__init__.py
hongyi-zhao/aiida-core
d6e8c7d10537b754d1cb6334689ba2edf4347d43
[ "BSD-2-Clause", "MIT" ]
null
null
null
aiida/cmdline/params/types/__init__.py
hongyi-zhao/aiida-core
d6e8c7d10537b754d1cb6334689ba2edf4347d43
[ "BSD-2-Clause", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
52.405405
120
0.6787
50fc22daf9f187e84aa7cc6c543652dd65b97292
338
py
Python
squareroot.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
squareroot.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
squareroot.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 17 09:24:52 2020 @author: u7075106 """ import math import random def square_root(a): x = random.randint(1, a/2) while abs((x**2) - a) > 1e-6: x = ((x + a/x)/2) print("calculated sqrt", x) print("Actual sqrt :", math...
18.777778
40
0.544379
fbabc165b2fb2dd1d7e8cf012483c6c490b6c120
1,454
py
Python
enaml/workbench/ui/ui_workbench.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
enaml/workbench/ui/ui_workbench.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
1
2019-08-22T14:38:24.000Z
2019-08-22T14:38:24.000Z
enaml/workbench/ui/ui_workbench.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
30.93617
79
0.616231
0988813302362f9909cf8926d18f6de5666207a4
983
py
Python
Cas_1/Salinity/A_General_Salinity.py
Herpinemmanuel/Oceanography
a37befa33698c0e351b11a4b7561d07a430dc28c
[ "MIT" ]
1
2020-01-16T07:20:33.000Z
2020-01-16T07:20:33.000Z
Cas_1/Salinity/A_General_Salinity.py
Herpinemmanuel/Oceanography
a37befa33698c0e351b11a4b7561d07a430dc28c
[ "MIT" ]
61
2017-06-15T08:37:55.000Z
2017-07-20T15:46:29.000Z
Cas_1/Salinity/A_General_Salinity.py
Herpinemmanuel/Oceanography
a37befa33698c0e351b11a4b7561d07a430dc28c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cartopy.crs as ccrs from xmitgcm import open_mdsdataset from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER plt.ion() dir1 = '/homedata/bderembl/runmit/test_southatlgyre' ds1 = open_mdsdataset(dir1,prefix=['S']) nt = 0 nz = 0 #...
25.205128
73
0.746694
4a84bb6cefb51485e4065b1af97e953faf82b49f
10,344
py
Python
biosppy/utils.py
PatriciaBota/BioSPPy
92d97e2b49373069a06dbe6d7711beefa40f2dee
[ "BSD-3-Clause" ]
1
2019-08-01T12:30:46.000Z
2019-08-01T12:30:46.000Z
biosppy/utils.py
PatriciaBota/BioSPPy
92d97e2b49373069a06dbe6d7711beefa40f2dee
[ "BSD-3-Clause" ]
null
null
null
biosppy/utils.py
PatriciaBota/BioSPPy
92d97e2b49373069a06dbe6d7711beefa40f2dee
[ "BSD-3-Clause" ]
1
2019-08-01T13:25:52.000Z
2019-08-01T13:25:52.000Z
# -*- coding: utf-8 -*- """ biosppy.utils ------------- This module provides several frequently used functions and hacks. :copyright: (c) 2015-2018 by Instituto de Telecomunicacoes :license: BSD 3-clause, see LICENSE for more details. """ # Imports # compat from __future__ import absolute_import, division, print_fun...
23.037862
110
0.549884
7db307a40d21bf184d0f12ca1a90f8b6c147feff
1,615
py
Python
tests/compiler/division/test_division.py
eternalSeeker/pcc
c2b64c2b9e3f9374063854fff953c19efcdad514
[ "MIT" ]
1
2019-10-09T14:24:01.000Z
2019-10-09T14:24:01.000Z
tests/compiler/division/test_division.py
eternalSeeker/pcc
c2b64c2b9e3f9374063854fff953c19efcdad514
[ "MIT" ]
null
null
null
tests/compiler/division/test_division.py
eternalSeeker/pcc
c2b64c2b9e3f9374063854fff953c19efcdad514
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from os.path import abspath, dirname import pytest import tests.generateOutputsDecorator from tests.compiler.CompilerHelper import CompilerHelper, \ generate_compiler_outputs generate_outputs = tests.generateOutputsDecorator.generate_outputs # The parametrize function is generated, so i...
35.888889
77
0.713313
e9bb9ff9429ec639f3c7a659e0450bf1fe596420
970
py
Python
app/conftest.py
dxw/nhx-website
88344c7602823e0b371d3c6f933aa24aeb57db16
[ "MIT" ]
50
2019-04-04T17:50:00.000Z
2021-08-05T15:08:37.000Z
app/conftest.py
dxw/nhx-website
88344c7602823e0b371d3c6f933aa24aeb57db16
[ "MIT" ]
434
2019-04-04T18:25:32.000Z
2022-03-31T18:23:37.000Z
app/conftest.py
nhsx-mirror/nhsx-website
2133b4e275ca35ff77f7d6874e809f139ec4bf86
[ "MIT" ]
23
2019-04-04T09:52:07.000Z
2021-04-11T07:41:47.000Z
# -*- coding: utf-8 -*- """ conftest ~~~~~~~~ Pytest config. """ import pytest from consoler import console # NOQA try: import envkey # NOQA except Exception: pass from tests.init import setup from tests.fixtures import * # NOQA from modules.core.tests.fixtures import * # NOQA from modules....
21.555556
57
0.715464
452c5ec86ee25af24f44a7412bf98c148acf8d59
32,036
py
Python
vispy/app/backends/_qt.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
1
2021-08-04T06:31:02.000Z
2021-08-04T06:31:02.000Z
vispy/app/backends/_qt.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
null
null
null
vispy/app/backends/_qt.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Base code for the Qt backends. Note that this is *not* (anymore) a backend by itself! One has to explicitly use either PySide, PyQt4 or PySide2, PyQt5. Note...
36.117249
107
0.611624
fe8386ae52c111a7fa07f53884d4e9631099ff26
662
py
Python
checkrp.py
BartMassey/meme-voting
b04fd2ab0927d4760172d2e9333be807b6d84d27
[ "MIT" ]
4
2020-02-01T04:56:22.000Z
2020-05-11T06:31:38.000Z
checkrp.py
BartMassey/meme-voting
b04fd2ab0927d4760172d2e9333be807b6d84d27
[ "MIT" ]
null
null
null
checkrp.py
BartMassey/meme-voting
b04fd2ab0927d4760172d2e9333be807b6d84d27
[ "MIT" ]
null
null
null
# Check the relative ranking of two candidates. # Bart Massey import csv import sys ballots = "meme-election-ballots.csv" if len(sys.argv) > 3: ballots = sys.argv[3] ballots = open(ballots, 'r') ballots = csv.reader(ballots) header = next(ballots) ballots = [[int(rank) - 1 for rank in ballot] for ballot in ballo...
20.6875
76
0.669184
4e93b88f04539023c23627328087e52207beaa18
731
py
Python
ccs_amplicon/label_haplotype_seqs.py
lumc-pgx/CCS-Amplicon
0f4f35c468e6e5f43f4ed037da5238e3ab0bc22f
[ "MIT" ]
null
null
null
ccs_amplicon/label_haplotype_seqs.py
lumc-pgx/CCS-Amplicon
0f4f35c468e6e5f43f4ed037da5238e3ab0bc22f
[ "MIT" ]
null
null
null
ccs_amplicon/label_haplotype_seqs.py
lumc-pgx/CCS-Amplicon
0f4f35c468e6e5f43f4ed037da5238e3ab0bc22f
[ "MIT" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function import click from Bio import SeqIO import sys @click.command(context_settings=dict( ignore_unknown_options=True, ), short_help="rename the sequences created by LAA" ) @click.option("--prefix", "-p", type=str, default="haplotype", h...
27.074074
63
0.685363
0c8f8d1507c82e91cc7bb8c53f27c188d85c60c3
5,419
py
Python
examples/training/avg_word_embeddings/training_stsbenchmark_tf-idf_word_embeddings.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
7,566
2019-07-25T07:45:17.000Z
2022-03-31T22:15:35.000Z
examples/training/avg_word_embeddings/training_stsbenchmark_tf-idf_word_embeddings.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
1,444
2019-07-25T11:53:48.000Z
2022-03-31T15:13:32.000Z
examples/training/avg_word_embeddings/training_stsbenchmark_tf-idf_word_embeddings.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
1,567
2019-07-26T15:19:28.000Z
2022-03-31T19:57:35.000Z
""" This example weights word embeddings (like GloVe) with IDF weights. The IDF weights can for example be computed on Wikipedia. If 'glove.6B.300d.txt.gz' does not exist, it tries to download it from our server. See https://public.ukp.informatik.tu-darmstadt.de/reimers/embeddings/ for available word embeddings files...
41.366412
130
0.730947
11deea198d9829cb63efd6010dd70a37a61873fd
16,716
py
Python
pygama/analysis/histograms.py
iguinn/pygama
ae643524a49c476c0c5b35407a6ad82ba5d0401c
[ "Apache-2.0" ]
13
2019-05-01T01:37:30.000Z
2022-03-18T08:52:19.000Z
pygama/analysis/histograms.py
iguinn/pygama
ae643524a49c476c0c5b35407a6ad82ba5d0401c
[ "Apache-2.0" ]
111
2019-03-25T00:50:48.000Z
2022-03-30T17:13:43.000Z
pygama/analysis/histograms.py
iguinn/pygama
ae643524a49c476c0c5b35407a6ad82ba5d0401c
[ "Apache-2.0" ]
52
2019-01-24T21:05:04.000Z
2022-03-07T23:37:55.000Z
""" pygama convenience functions for 1D histograms. 1D hists in pygama require 3 things available from all implementations of 1D histograms of numerical data in python: hist, bins, and var: - hist: an array of histogram values - bins: an array of bin edges - var: an array of variances in each bin If var is not provide...
37.229399
109
0.617253
a34c163c29a316bb88e3ed68c52e410785e76362
54
py
Python
pam/__init__.py
jbkalmbach/pam
91318dd2efaa1663eec4edb5a860dd7469ba4c2a
[ "MIT" ]
2
2020-01-17T19:57:19.000Z
2020-01-24T18:12:57.000Z
pam/__init__.py
jbkalmbach/pam
91318dd2efaa1663eec4edb5a860dd7469ba4c2a
[ "MIT" ]
8
2018-11-30T00:46:39.000Z
2020-01-15T19:20:10.000Z
pam/__init__.py
jbkalmbach/pam
91318dd2efaa1663eec4edb5a860dd7469ba4c2a
[ "MIT" ]
null
null
null
from .gan import * from .defaultArchitectures import *
27
35
0.796296
8ac211ed55e7ab79cbb5164647eca05045eef929
921
py
Python
src/MyAIGuide/data/fitbitDataGatheredFromWebExport.py
LeviBorodenko/MyAIGuide
3077173e63537522a49d50da5872147460c6469f
[ "MIT" ]
null
null
null
src/MyAIGuide/data/fitbitDataGatheredFromWebExport.py
LeviBorodenko/MyAIGuide
3077173e63537522a49d50da5872147460c6469f
[ "MIT" ]
null
null
null
src/MyAIGuide/data/fitbitDataGatheredFromWebExport.py
LeviBorodenko/MyAIGuide
3077173e63537522a49d50da5872147460c6469f
[ "MIT" ]
null
null
null
import csv import datetime import os import os.path import pickle import re import numpy as np import pandas as pd def fitbitDataGatheredFromWebExport(fname, data): directory = os.fsencode(fname) for file in os.listdir(directory): name = os.fsdecode(file) if name.endswith(".csv"): filename =...
30.7
76
0.507058
6247e0adabd1ad839b87deca75ef1b737289015f
3,435
py
Python
Supervised_Categorization_Research/settings.py
AdityaKapoor74/Supervised_Categorization_Study_Pt2
abedfa64d708360694e5cc00cfae866c5cfaebe8
[ "MIT" ]
null
null
null
Supervised_Categorization_Research/settings.py
AdityaKapoor74/Supervised_Categorization_Study_Pt2
abedfa64d708360694e5cc00cfae866c5cfaebe8
[ "MIT" ]
null
null
null
Supervised_Categorization_Research/settings.py
AdityaKapoor74/Supervised_Categorization_Study_Pt2
abedfa64d708360694e5cc00cfae866c5cfaebe8
[ "MIT" ]
null
null
null
""" Django settings for Supervised_Categorization_Research project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/...
27.047244
91
0.704803
8eafe43919eafa787f2a86eb18ed99005d201642
393
py
Python
pythainlp/tag/__init__.py
preenet/pythainlp
52df5221174f32c04155973b452c24e569b7380a
[ "Apache-2.0" ]
null
null
null
pythainlp/tag/__init__.py
preenet/pythainlp
52df5221174f32c04155973b452c24e569b7380a
[ "Apache-2.0" ]
null
null
null
pythainlp/tag/__init__.py
preenet/pythainlp
52df5221174f32c04155973b452c24e569b7380a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Linguistic tagger. Tagging each token in a sentence with supplementary information, such as its Part-of-Speech (POS) tag, and Named Entity Recognition (NER) tag. """ __all__ = ["pos_tag", "pos_tag_sents", "tag_provinces"] from pythainlp.tag.locations import tag_provinces from pythainlp.ta...
28.071429
77
0.765903
f297546eb5c3eb51cda5cc8facc2c04ff1ffd43f
892
py
Python
permitify/src/von_connector/eventloop.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
82
2018-05-08T23:27:07.000Z
2022-03-10T21:33:24.000Z
permitify/src/von_connector/eventloop.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
35
2018-04-17T14:17:59.000Z
2019-03-14T10:37:54.000Z
permitify/src/von_connector/eventloop.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
69
2018-05-08T16:26:06.000Z
2022-01-25T08:51:25.000Z
""" Copyright 2017 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca 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 r...
35.68
95
0.765695
b9a3d0dd3e21eed5df5e3e4e7f49db438105d970
5,138
py
Python
python-package/test/test_data_conversion.py
c-bata/xlearn
499a1836532e6efd9643bd1d17d76f5d874f8903
[ "Apache-2.0" ]
3,144
2017-11-06T08:48:13.000Z
2022-03-20T00:35:50.000Z
python-package/test/test_data_conversion.py
c-bata/xlearn
499a1836532e6efd9643bd1d17d76f5d874f8903
[ "Apache-2.0" ]
325
2017-11-18T12:59:39.000Z
2022-02-24T07:19:03.000Z
python-package/test/test_data_conversion.py
c-bata/xlearn
499a1836532e6efd9643bd1d17d76f5d874f8903
[ "Apache-2.0" ]
612
2017-11-09T14:19:17.000Z
2022-01-24T10:17:49.000Z
# Copyright (c) 2018 by contributors. 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...
35.191781
84
0.622421
e4abe8fd44e71c9547f71ac14673e1454bf0c656
3,026
py
Python
inspect_live_objects/traceback_example.py
rolandovillca/python_introduction_basic
d1333a832a9e2b103e128a9dfc0c0da0952c267f
[ "MIT" ]
null
null
null
inspect_live_objects/traceback_example.py
rolandovillca/python_introduction_basic
d1333a832a9e2b103e128a9dfc0c0da0952c267f
[ "MIT" ]
null
null
null
inspect_live_objects/traceback_example.py
rolandovillca/python_introduction_basic
d1333a832a9e2b103e128a9dfc0c0da0952c267f
[ "MIT" ]
null
null
null
''' This module provides a standard interface to extract, format and print stack traces of Python programs. It exactly mimics the behavior of the Python interpreter when it prints a stack trace. This is useful when you want to print stack traces under program control, such as in a “wrapper” around the interpreter. The...
35.186047
109
0.630205
87691cf5a980b8d00b1b4e77eed80429009b46ee
7,942
py
Python
tools/wptrunner/wptrunner/formatters/tests/test_chromium.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
tools/wptrunner/wptrunner/formatters/tests/test_chromium.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
7
2021-01-07T23:42:14.000Z
2021-12-13T20:43:42.000Z
tools/wptrunner/wptrunner/formatters/tests/test_chromium.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import json import sys from os.path import dirname, join from six.moves import cStringIO as StringIO from mozlog import handlers, structuredlog sys.path.insert(0, join(dirname(__file__), "..", "..")) from formatters.chromium import ChromiumFormatter def test_chromium_required_fields(capfd): # Test that the test...
37.11215
80
0.67376
b4ee3780bc05c7549582e862d26ebf84c7897113
716
py
Python
dlint/linters/format_string.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
dlint/linters/format_string.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
dlint/linters/format_string.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import ( absolute_import, division, print_function, unicode_literals, ) from . import base class FormatStringLinter(base.BaseLinter): """This linter looks for use of Python's format string operator, e.g. '%'. Use of the format string operator in Python c...
24.689655
97
0.691341
64cf43bace1ab590c1ed4ba111c5c8f668a526bc
6,271
py
Python
tool_validation/validate_Estimate_Bankfull.py
FluvialGeomorph/FluvialGeomorph-toolbox
d7b0712d4841af5cc341443d695bf0481eeccb23
[ "CC0-1.0" ]
null
null
null
tool_validation/validate_Estimate_Bankfull.py
FluvialGeomorph/FluvialGeomorph-toolbox
d7b0712d4841af5cc341443d695bf0481eeccb23
[ "CC0-1.0" ]
1
2021-03-25T12:38:23.000Z
2021-03-25T12:38:23.000Z
tool_validation/validate_Estimate_Bankfull.py
FluvialGeomorph/FluvialGeomorph-toolbox
d7b0712d4841af5cc341443d695bf0481eeccb23
[ "CC0-1.0" ]
null
null
null
"""____________________________________________________________________________ Script Name: _validate_Estimate_Bankfull.py Description: Used to validate the script tool _Estimate_Bankfull.py. Date: 09/12/2020 Usage: This code gets copied into the Validation tab of the script tool. ...
54.530435
131
0.383352
4124542e46f610bc98426264e06fe9be29c1ad32
9,738
py
Python
colour/difference/cam02_ucs.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
2
2020-06-20T03:44:41.000Z
2020-06-20T14:08:41.000Z
colour/difference/cam02_ucs.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
colour/difference/cam02_ucs.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :math:`\\Delta E'` - Delta E Colour Difference - Luo, Cui and Li (2006) ====================================================================== Defines :math:`\\Delta E'` colour difference computation objects based on *Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, and *CAM02-UCS* colourspaces...
37.744186
78
0.40573
6d14c63c81cc87bc44147f27b5d009c1d3f55ed2
112
py
Python
Web3/FullStack_DeFi_App/tests/conftest.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
1
2022-02-02T21:46:45.000Z
2022-02-02T21:46:45.000Z
Web3/FullStack_DeFi_App/tests/conftest.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
null
null
null
Web3/FullStack_DeFi_App/tests/conftest.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
null
null
null
import pytest from web3 import Web3 @pytest.fixture def to_stake_amount(): return Web3.toWei(1, "ether")
12.444444
33
0.732143
9ccb7d6739b66a08d46580cc104651a304b45960
1,740
py
Python
tools/perf/page_sets/pathological_mobile_sites.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
tools/perf/page_sets/pathological_mobile_sites.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
tools/perf/page_sets/pathological_mobile_sites.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
# Copyright 2015 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. from telemetry.page import page as page_module from telemetry.page import shared_page_state from telemetry import story class PathologicalMobileSitesPage(pa...
38.666667
77
0.696552
991eb596d956ceded74908388f05da8cafc36e78
4,793
py
Python
setup.py
mneundorfer/asn1crypto
3c9f12daee77738bd7eba9b0bf756e2514b30cc1
[ "MIT" ]
null
null
null
setup.py
mneundorfer/asn1crypto
3c9f12daee77738bd7eba9b0bf756e2514b30cc1
[ "MIT" ]
null
null
null
setup.py
mneundorfer/asn1crypto
3c9f12daee77738bd7eba9b0bf756e2514b30cc1
[ "MIT" ]
1
2021-01-20T11:42:17.000Z
2021-01-20T11:42:17.000Z
import codecs import os import shutil import sys import warnings import setuptools from setuptools import setup, Command from setuptools.command.egg_info import egg_info PACKAGE_NAME = 'asn1crypto' PACKAGE_VERSION = '1.4.0' PACKAGE_ROOT = os.path.dirname(os.path.abspath(__file__)) # setuptools 38.6.0 and newer kno...
30.144654
83
0.626747
ff18e632e59c3428086a4c096c36672835da720e
4,406
py
Python
Code/bases.py
Evansdava/CS-1.3-Core-Data-Structures
e101c89ecb0b58b67196bfc703491deaa053f447
[ "MIT" ]
null
null
null
Code/bases.py
Evansdava/CS-1.3-Core-Data-Structures
e101c89ecb0b58b67196bfc703491deaa053f447
[ "MIT" ]
6
2020-02-14T05:51:52.000Z
2020-03-10T17:05:44.000Z
Code/bases.py
Evansdava/CS-1.3-Core-Data-Structures
e101c89ecb0b58b67196bfc703491deaa053f447
[ "MIT" ]
null
null
null
#!python import string # Hint: Use these string constants to encode/decode hexadecimal digits and more # string.digits is '0123456789' # string.hexdigits is '0123456789abcdefABCDEF' # string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz' # string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' # string.ascii_letters ...
34.155039
79
0.629369
0653dc5f108e956ecec4a91165c503ccd4cfd719
8,864
py
Python
tests/test_singleton.py
GlobalParametrics/TCRM
0882ad6f857c50c7f276ec2b3099b3006939664e
[ "CC-BY-4.0" ]
1
2021-09-01T09:27:57.000Z
2021-09-01T09:27:57.000Z
tests/test_singleton.py
GlobalParametrics/TCRM
0882ad6f857c50c7f276ec2b3099b3006939664e
[ "CC-BY-4.0" ]
null
null
null
tests/test_singleton.py
GlobalParametrics/TCRM
0882ad6f857c50c7f276ec2b3099b3006939664e
[ "CC-BY-4.0" ]
1
2021-04-08T03:10:18.000Z
2021-04-08T03:10:18.000Z
import unittest import time from Utilities.singleton import Singleton, forgetAllSingletons, SingletonException import threading class TestSingleton(unittest.TestCase): def testReturnsSameObject(self): """Test normal use case""" #Demonstrates normal use -- just call getInstance and it returns a sing...
33.198502
129
0.586304
25f7e8ded6a3da3648e9020870fc19e58b6a21f3
841
py
Python
pylegos/cli/templates/code/build.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
pylegos/cli/templates/code/build.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
2
2016-11-23T00:36:34.000Z
2016-11-23T00:39:08.000Z
pylegos/cli/templates/code/build.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
from pylegos.core import FileUtils from pylegos.core import PlatformProperty class AppBuilder: def __init__(self): sep = PlatformProperty.FileSep self.ProjectBaseDir = FileUtils.getParentDir(__file__) + sep projectDirArray = self.ProjectBaseDir.strip(sep).split(sep) self.ProjectNa...
26.28125
76
0.676576
0811b1ddccf52d9855254d34776743f1bfeaa8ea
86
py
Python
utils/essfolder.py
SHI3DO/Andante
beb6fdf96ef86a10de9f802cef2d97dd81b3e688
[ "MIT" ]
2
2021-12-26T06:26:06.000Z
2022-02-24T23:54:58.000Z
utils/essfolder.py
SHI3DO/Andante
beb6fdf96ef86a10de9f802cef2d97dd81b3e688
[ "MIT" ]
null
null
null
utils/essfolder.py
SHI3DO/Andante
beb6fdf96ef86a10de9f802cef2d97dd81b3e688
[ "MIT" ]
null
null
null
import os def make(): if not os.path.isdir('./maps'): os.mkdir('./maps')
14.333333
35
0.534884
e03915f0b7809755b7b12c323497623e88dff22c
8,826
py
Python
src/the_tale/the_tale/game/quests/tests/test_workers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/quests/tests/test_workers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/quests/tests/test_workers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class QuestsGeneratorWorkerTests(clans_helpers.ClansTestsMixin, emissaries_helpers.EmissariesTestsMixin, utils_testcase.TestCase): def setUp(self): super(QuestsGeneratorWorkerTests, self).setUp() ...
47.197861
150
0.540335
61c13aaf5913dbd803f099c90235dd4ee70cef51
7,599
py
Python
tests/test_reader.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
tests/test_reader.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
tests/test_reader.py
virtuald/pynsq
40a637b02c28edfb7723373b81f7e7b9d5e364ed
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import os import sys import signal import subprocess import time import ssl import tornado.httpclient import tornado.testing # shunt '..' into sys.path since we are in a 'tests' subdirectory base_dir ...
31.6625
90
0.574023
9e3688906b0219192216008ef1c6c8222810aa4e
1,016
py
Python
packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="xcalendar", parent_name="histogram2d", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
30.787879
85
0.40748
ecf24e24f8658c2a121a0f3c023feee45eb775e3
144
py
Python
backend/adminapp/apps.py
christian-japan-devs/vietcatholic-jp
1a800f478584538cc5e21ddd5816894dff8bd90f
[ "MIT" ]
null
null
null
backend/adminapp/apps.py
christian-japan-devs/vietcatholic-jp
1a800f478584538cc5e21ddd5816894dff8bd90f
[ "MIT" ]
6
2021-05-29T04:39:00.000Z
2021-07-04T00:40:15.000Z
backend/adminapp/apps.py
christian-japan-devs/vietcatholic-jp
1a800f478584538cc5e21ddd5816894dff8bd90f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AdminappConfig(AppConfig): name = 'adminapp' def ready(self): import adminapp.signals
18
33
0.708333
517fb34d5bd6a317364d4d37076e5073fb7ef712
3,773
py
Python
algorithms/Other/print_concentric_rectangle.py
serlop3791/useful_functions
039aeb52f78bcf9cae09cb5984a059a6f78a54f6
[ "Apache-2.0" ]
null
null
null
algorithms/Other/print_concentric_rectangle.py
serlop3791/useful_functions
039aeb52f78bcf9cae09cb5984a059a6f78a54f6
[ "Apache-2.0" ]
null
null
null
algorithms/Other/print_concentric_rectangle.py
serlop3791/useful_functions
039aeb52f78bcf9cae09cb5984a059a6f78a54f6
[ "Apache-2.0" ]
null
null
null
# Print concentric rectangular pattern in a 2d matrix. # # Let us show you some examples to clarify what we mean. # # Example 1: # # Input: A = 4. # # Output: # # 4 4 4 4 4 4 4 # 4 3 3 3 3 3 4 # 4 3 2 2 2 3 4 # 4 3 2 1 2 3 4 # 4 3 2 2 2 3 4 # 4 3 3 3 3 3 4 # 4 4 4 4 4 4 4 # Example 2: # # Input: A = 3. # # Output: # ...
19.25
110
0.521601
f736eeac450d1ff8d9e88665aa56c3f3474104df
2,597
py
Python
dgp/core/context.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
1
2019-07-17T11:34:27.000Z
2019-07-17T11:34:27.000Z
dgp/core/context.py
datahq/dgp
f39592ce20ba67b73b08188f14585b6eb3d43f96
[ "MIT" ]
2
2019-04-30T12:32:32.000Z
2019-04-30T12:35:26.000Z
dgp/core/context.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
null
null
null
import copy import tabulator import requests from .config import Config from ..config.log import logger from ..config.consts import CONFIG_SKIP_ROWS, CONFIG_TAXONOMY_ID, CONFIG_FORMAT, CONFIG_ALLOW_INSECURE_TLS from ..taxonomies import TaxonomyRegistry, Taxonomy _workbook_cache = {} def trimmer(extended_rows): ...
34.171053
117
0.613015
8bf307ea747a7d3f44252bb14172e6c64c606964
9,755
py
Python
src/gluonts/core/serde/_base.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
2,648
2019-06-03T17:18:27.000Z
2022-03-31T08:29:22.000Z
src/gluonts/core/serde/_base.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
1,220
2019-06-04T09:00:14.000Z
2022-03-31T10:45:43.000Z
src/gluonts/core/serde/_base.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
595
2019-06-04T01:04:31.000Z
2022-03-30T10:40:26.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
28.523392
78
0.593337
1eb6ba96b1af612c3af56275b4d7cc0511b32822
1,864
py
Python
mir/termdbg/ascii.py
darkfeline/mir.termdbg
a654b4ac0cae0da012b683d99b2d290db0acb48b
[ "Apache-2.0" ]
null
null
null
mir/termdbg/ascii.py
darkfeline/mir.termdbg
a654b4ac0cae0da012b683d99b2d290db0acb48b
[ "Apache-2.0" ]
null
null
null
mir/termdbg/ascii.py
darkfeline/mir.termdbg
a654b4ac0cae0da012b683d99b2d290db0acb48b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Allen Li # # 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,...
26.628571
74
0.732833
9df180ec84138a3c91d13d66d30c133e173343e2
4,507
py
Python
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # vim: tabstop=4 shiftwidth=4 softtabstop=4 # All Rights Reserved. # import os from cgtsclient.common import utils from cgtsclient import exc def _print_certificate_show(certificate): fields = ['uuid', 'certtype', 'signatu...
34.40458
79
0.613934
80181ac28fd0e4c6951f3917d8ffa73a6a1d6191
9,387
py
Python
network_builder.py
comRamona/Multimodal-Sentiment-Analysis---ACL-2018
2831df3ef210cb3e259bbc43dd39159533f4a33e
[ "BSD-3-Clause" ]
1
2018-05-22T13:08:54.000Z
2018-05-22T13:08:54.000Z
network_builder.py
comRamona/Multimodal-Sentiment-Analysis-Multicomp-ACL-2018
2831df3ef210cb3e259bbc43dd39159533f4a33e
[ "BSD-3-Clause" ]
null
null
null
network_builder.py
comRamona/Multimodal-Sentiment-Analysis-Multicomp-ACL-2018
2831df3ef210cb3e259bbc43dd39159533f4a33e
[ "BSD-3-Clause" ]
1
2020-06-02T00:57:20.000Z
2020-06-02T00:57:20.000Z
import tensorflow as tf from network_architectures import VGGClassifier, FCCLayerClassifier class ClassifierNetworkGraph: def __init__(self, input_x, target_placeholder, dropout_rate, batch_size=100, num_channels=1, n_classes=100, is_training=True, augment_rotate_flag=True, tens...
51.861878
119
0.64291
083a23b94a7d06531ca7075340833ab4cb66c337
7,504
py
Python
tests/proc/test_tensorbox.py
lfd/pennylane
c0d269e5f1eba2f9d033bd9b6a79c10a11f4228a
[ "Apache-2.0" ]
null
null
null
tests/proc/test_tensorbox.py
lfd/pennylane
c0d269e5f1eba2f9d033bd9b6a79c10a11f4228a
[ "Apache-2.0" ]
null
null
null
tests/proc/test_tensorbox.py
lfd/pennylane
c0d269e5f1eba2f9d033bd9b6a79c10a11f4228a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicabl...
27.487179
75
0.573561
8ae4363eced64a807a7a8ada1007057e4adcec3b
16,834
py
Python
change_bomb_rate.py
minoriwww/MeterDetection
0373cd30fe8a1de4886a8a60860c4714b2b28333
[ "MIT" ]
7
2019-11-13T01:02:14.000Z
2021-08-10T10:03:46.000Z
change_bomb_rate.py
minoriwww/MeterDetection
0373cd30fe8a1de4886a8a60860c4714b2b28333
[ "MIT" ]
null
null
null
change_bomb_rate.py
minoriwww/MeterDetection
0373cd30fe8a1de4886a8a60860c4714b2b28333
[ "MIT" ]
1
2019-12-26T10:34:18.000Z
2019-12-26T10:34:18.000Z
import os dirs = "sitaiqu/rates/" if not os.path.exists(dirs): os.makedirs(dirs) import string import numpy as np import pandas as pd import matplotlib.pyplot as plt plt.switch_backend('agg') import data_processing0 as dp import datetime import math import random from scipy.spatial.distance import pdist, squarefo...
30.276978
193
0.61453
db4a1a6383b5bbc895eba85d0d432153717af512
670
py
Python
bin/checkgloss.py
encukou/teachtogether.tech
64c4e4b3ee6d45a0b489a5e5130123634aa32fea
[ "CC-BY-4.0" ]
null
null
null
bin/checkgloss.py
encukou/teachtogether.tech
64c4e4b3ee6d45a0b489a5e5130123634aa32fea
[ "CC-BY-4.0" ]
1
2018-09-14T10:12:27.000Z
2018-09-18T07:46:24.000Z
bin/checkgloss.py
encukou/teachtogether.tech
64c4e4b3ee6d45a0b489a5e5130123634aa32fea
[ "CC-BY-4.0" ]
1
2018-10-20T20:04:56.000Z
2018-10-20T20:04:56.000Z
#!/usr/bin/env python import sys import re DEF = re.compile(r'\*\*.+?\*\*{:#(g:.+?)}', re.DOTALL) REF = re.compile(r'\[.+?\]\(#(g:.+?)\)', re.DOTALL) def main(filenames): defs = set() refs = set() for path in filenames: with open(path, 'r') as reader: doc = reader.read() ...
20.9375
54
0.541791
d2ffeb2b14e926a50c9465081bef69ccf0fd0041
1,280
py
Python
LeetCode/2018-12-21-74-Search-a-2D-Matrix.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
5
2018-10-30T05:07:32.000Z
2019-06-18T08:11:38.000Z
LeetCode/2018-12-21-74-Search-a-2D-Matrix.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
1
2020-05-09T09:05:16.000Z
2020-05-09T09:05:16.000Z
LeetCode/2018-12-21-74-Search-a-2D-Matrix.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
2
2020-05-09T09:02:22.000Z
2020-12-09T13:23:00.000Z
# -*- coding: utf-8 -*- # @Author: 何睿 # @Create Date: 2018-12-21 10:33:47 # @Last Modified by: 何睿 # @Last Modified time: 2018-12-21 10:56:40 class Solution: def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool...
27.234043
49
0.480469
f64950a91d30cbba26a563b3e6f55220133ce1d6
3,226
py
Python
src/python/examples/simple_http_model_control.py
theHamsta/client
a0cfb8adc1f281da650c0974b4c7ddd5dc751358
[ "BSD-3-Clause" ]
107
2021-04-20T03:14:18.000Z
2022-03-29T02:53:26.000Z
src/python/examples/simple_http_model_control.py
theHamsta/client
a0cfb8adc1f281da650c0974b4c7ddd5dc751358
[ "BSD-3-Clause" ]
28
2021-05-05T12:05:57.000Z
2022-03-30T21:10:11.000Z
src/python/examples/simple_http_model_control.py
theHamsta/client
a0cfb8adc1f281da650c0974b4c7ddd5dc751358
[ "BSD-3-Clause" ]
90
2021-04-20T14:12:34.000Z
2022-03-30T02:40:14.000Z
#!/usr/bin/env python # Copyright (c) 2020, NVIDIA CORPORATION. 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, thi...
40.835443
80
0.67297
b60914f846ce453854ee6e675c9795045a9b2091
1,614
py
Python
opentelemetry-api/src/opentelemetry/context/thread_local_context.py
Skeen/opentelemetry-python
ad7a809a6dda7fbf73d9f47a3ff2ed85752cd0af
[ "Apache-2.0" ]
1
2020-01-15T06:58:27.000Z
2020-01-15T06:58:27.000Z
opentelemetry-api/src/opentelemetry/context/thread_local_context.py
Skeen/opentelemetry-python
ad7a809a6dda7fbf73d9f47a3ff2ed85752cd0af
[ "Apache-2.0" ]
null
null
null
opentelemetry-api/src/opentelemetry/context/thread_local_context.py
Skeen/opentelemetry-python
ad7a809a6dda7fbf73d9f47a3ff2ed85752cd0af
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenTelemetry 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 i...
35.086957
76
0.651177
a6a059d81b4ba42cfea83b3559ee52fc73c2bf07
3,297
py
Python
config/validateRelease.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
config/validateRelease.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
config/validateRelease.py
timlehr/gaffer
354acd6af7500e0bd1ce19d7c417929e2f0a919e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ########################################################################## # # Copyright (c) 2019, Cinesite VFX Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # ...
36.230769
107
0.686078
07c7f0939a3ae12a7160251818a7e2ebdb19015f
1,165
py
Python
Algorithms/CaesarCipher.py
avyayjain/Python_Scripts
d89926a84d5df3cbd57244df27f215891aa60d20
[ "Unlicense" ]
20
2020-08-17T13:49:03.000Z
2022-01-26T18:04:14.000Z
Algorithms/CaesarCipher.py
avyayjain/Python_Scripts
d89926a84d5df3cbd57244df27f215891aa60d20
[ "Unlicense" ]
20
2020-09-30T15:49:38.000Z
2021-10-21T05:06:00.000Z
Algorithms/CaesarCipher.py
avyayjain/Python_Scripts
d89926a84d5df3cbd57244df27f215891aa60d20
[ "Unlicense" ]
67
2020-08-17T18:23:11.000Z
2022-02-21T08:29:16.000Z
def caesar_cipher(message_to_encrypt: str, key: int, encrypt_direction: str) -> str: alphabet = "abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVWYZ" result = "" for character in message_to_encrypt: # returns the position of the chara"cter in alphabet array position = alphabet.find(character...
43.148148
84
0.646352
68a8f7d0c33a509a8e74e315abf9e71138e8adfe
20,617
py
Python
dlk/tests/test_optimizer.py
tvlenin/blueoil
810680df75e2640f67d515c377ba2b4531b9e584
[ "Apache-2.0" ]
null
null
null
dlk/tests/test_optimizer.py
tvlenin/blueoil
810680df75e2640f67d515c377ba2b4531b9e584
[ "Apache-2.0" ]
null
null
null
dlk/tests/test_optimizer.py
tvlenin/blueoil
810680df75e2640f67d515c377ba2b4531b9e584
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil 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 # # Unles...
37.349638
116
0.578988
842e9a36f58a0ab6dcb760a38a97f1c99b3a26d2
3,164
py
Python
Canvas.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
1
2020-07-24T19:29:24.000Z
2020-07-24T19:29:24.000Z
Canvas.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
2
2022-01-13T03:01:41.000Z
2022-03-12T00:40:55.000Z
Canvas.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
null
null
null
from scipy import interpolate from Function import * class Canvas: def __init__(self): self.to_draw = [] self.to_draw_image = None self.canvas = None def clear(self): self.to_draw.clear() def erase(self): if len(self.to_draw): self.to_draw.pop() d...
41.631579
122
0.48957
5b38adf4bcf4be9700cd81606f9a579fcd4b5530
433
py
Python
code/pyclient/test-cassandra.py
BastienBP/boonta_kafka_streams
bb63a42702a3ae6c1266d9b3bcc77e162c1ba559
[ "MIT" ]
20
2016-09-26T09:15:26.000Z
2018-11-20T12:31:07.000Z
code/pyclient/test-cassandra.py
BastienBP/boonta_kafka_streams
bb63a42702a3ae6c1266d9b3bcc77e162c1ba559
[ "MIT" ]
2
2016-09-23T14:01:48.000Z
2017-03-28T17:19:41.000Z
code/pyclient/test-cassandra.py
BastienBP/boonta_kafka_streams
bb63a42702a3ae6c1266d9b3bcc77e162c1ba559
[ "MIT" ]
11
2017-01-30T16:20:56.000Z
2018-10-07T01:33:08.000Z
from cassandra.cluster import Cluster cluster=Cluster(['cassandra1', 'cassandra2', 'cassandra3']) session=cluster.connect('boontadata') session.execute("INSERT INTO raw_events (message_id, device_id, device_time, category, measure1, measure2) VALUES ('pysample-1', 'pysample', 1472222537503, "test", 100, 1234.56)") ro...
33.307692
179
0.750577
9a76a67244fd8d5f53f59072a7a8dbcdfd053cb7
677
py
Python
utils/random.py
Samoray-l337/CryptoGuesser
7e9df5a15b3cb9958518fbcb008a03bb9364d3da
[ "MIT" ]
null
null
null
utils/random.py
Samoray-l337/CryptoGuesser
7e9df5a15b3cb9958518fbcb008a03bb9364d3da
[ "MIT" ]
null
null
null
utils/random.py
Samoray-l337/CryptoGuesser
7e9df5a15b3cb9958518fbcb008a03bb9364d3da
[ "MIT" ]
null
null
null
import random def random_abc_key(): return random.randint(1, 26) def random_subtitution_array(): array_key = {} while len(array_key.keys()) < 13: key = chr(random_abc_key() + ord('a') - 1) value = chr(random_abc_key() + ord('a') - 1) if key in array_key.keys() or value in array_ke...
23.344828
66
0.589365
1245b5e0b0c83e7839956f627746798d961450ad
422
py
Python
dico/model/__init__.py
AkiaCode/dico
d67c0c0da0370538723bcc852ad4a6b1ac00a512
[ "MIT" ]
1
2021-09-02T15:59:18.000Z
2021-09-02T15:59:18.000Z
dico/model/__init__.py
AkiaCode/dico
d67c0c0da0370538723bcc852ad4a6b1ac00a512
[ "MIT" ]
null
null
null
dico/model/__init__.py
AkiaCode/dico
d67c0c0da0370538723bcc852ad4a6b1ac00a512
[ "MIT" ]
null
null
null
from .application import * from .audit_log import * from .channel import * from .emoji import * from .event import * from .extras import * from .gateway import * from .guild import * from .guild_template import * from .invite import * from .permission import * from .snowflake import * from .stage import * from .sticker...
22.210526
29
0.744076
e71ad71c002ad171c3ca267ecf302921364b695a
380
py
Python
pt01_object,design/cpt01/ticket_seller.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
null
null
null
pt01_object,design/cpt01/ticket_seller.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
2
2021-06-03T18:45:13.000Z
2021-06-04T13:09:29.000Z
pt01_object,design/cpt01/ticket_seller.py
s3ich4n/object_study
302108212d1d1f18ae57135145416513de3cb7c2
[ "MIT" ]
null
null
null
# # 판매원 객체에 대한 코드 # # @author Seongeun Yu (s3ich4n@gmail.com) # @date 2021/06/04 02:43 created. # from ticket_office import TicketOffice class TicketSeller: def __init__( self, ticket_office: TicketOffice, ): self._ticket_office = ticket_office @property ...
17.272727
46
0.628947
1d577c43ca67e89334360f4bd51eb9840c1ae0b5
1,488
py
Python
src/drone_ai/scripts/helpers/control/objects.py
ElHouas/drone_sim
e42f49d8536855516b3881c016f828e8525e4af3
[ "MIT" ]
null
null
null
src/drone_ai/scripts/helpers/control/objects.py
ElHouas/drone_sim
e42f49d8536855516b3881c016f828e8525e4af3
[ "MIT" ]
null
null
null
src/drone_ai/scripts/helpers/control/objects.py
ElHouas/drone_sim
e42f49d8536855516b3881c016f828e8525e4af3
[ "MIT" ]
1
2020-12-18T21:14:33.000Z
2020-12-18T21:14:33.000Z
#! /usr/bin/env python import rospy import time from std_msgs.msg import Empty from geometry_msgs.msg import Twist class Control(): def __init__(self): self.ctrl_c = False self._pub_cmd_vel = rospy.Publisher('/cmd_vel', Twist, queue_size=1) self._move_msg = Twist() self._pub_takeof...
29.76
82
0.596774
133a40bcec8bb4d45d7a75fc81231fee770fe080
3,220
py
Python
archs4py/geo.py
MaayanLab/archs4pipeline
3d9599cb2942d839ce2f73d0ca1fd5629919dd1d
[ "Apache-2.0" ]
null
null
null
archs4py/geo.py
MaayanLab/archs4pipeline
3d9599cb2942d839ce2f73d0ca1fd5629919dd1d
[ "Apache-2.0" ]
null
null
null
archs4py/geo.py
MaayanLab/archs4pipeline
3d9599cb2942d839ce2f73d0ca1fd5629919dd1d
[ "Apache-2.0" ]
null
null
null
import urllib import GEOparse import os import pandas as pd from tqdm import tqdm import multiprocessing import contextlib import io import sys def parse_platform(platform, srr, processed_gsms): os.makedirs("downloads/soft", exist_ok=True) p = platform p1 = p[0:5]+"nnn" p2 = p[0:9] url = "ftp://ft...
36.590909
280
0.631988
190fa901d81d88277676f6d87a5ee7564b71f25a
4,068
py
Python
authlib/flask/oauth2/resource_protector.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
2
2021-04-26T18:17:37.000Z
2021-04-28T21:39:45.000Z
authlib/flask/oauth2/resource_protector.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
null
null
null
authlib/flask/oauth2/resource_protector.py
tk193192/authlib
4c60a628f64c6d385a06ea55e416092726b94d07
[ "BSD-3-Clause" ]
1
2019-10-07T02:01:48.000Z
2019-10-07T02:01:48.000Z
import functools from contextlib import contextmanager from flask import json from flask import request as _req from flask import _app_ctx_stack from werkzeug.local import LocalProxy from authlib.oauth2 import ( OAuth2Error, ResourceProtector as _ResourceProtector ) from authlib.oauth2.rfc6749 import ( Miss...
32.806452
79
0.632743
8809761f6b7f6dd05e4c5b852c86cd06a3375468
2,102
py
Python
pyleecan/Methods/Simulation/IndMagFEMM/comp_inductance.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
1
2021-11-10T11:52:57.000Z
2021-11-10T11:52:57.000Z
pyleecan/Methods/Simulation/IndMagFEMM/comp_inductance.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Simulation/IndMagFEMM/comp_inductance.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
null
null
null
from os.path import join from ....Classes.InputCurrent import InputCurrent from ....Classes.MagFEMM import MagFEMM from ....Classes.Simulation import Simulation from ....Classes.Simu1 import Simu1 from ....Functions.Electrical.dqh_transformation import n2dqh_DataTime def comp_inductance(self, machine, OP_ref): "...
30.028571
88
0.666032
a6e8c54ced1d3b2093636edb3c923a186a434515
1,600
py
Python
src/python/icurry/types/iobject.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
1
2022-03-16T16:37:11.000Z
2022-03-16T16:37:11.000Z
src/python/icurry/types/iobject.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
src/python/icurry/types/iobject.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
from ...utility import curryname from ...utility.proptree import proptree import collections, six, weakref __all__ = ['IArity', 'IObject', 'IVarIndex'] IArity = int IVarIndex = int class IObject(object): def __init__(self, metadata=None): if metadata is not None: self._metadata = proptree(metadata) @p...
23.188406
62
0.608125
23bafc64cfd30e297f44696b500c8eb508faea1a
16,092
py
Python
frappe/desk/moduleview.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/desk/moduleview.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/desk/moduleview.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import json import frappe from frappe import _ from frappe.boot import get_allowed_pages, get_allowed_reports from frappe.cache_manager import ( build_domain_restriced_doctype_...
26.038835
99
0.727691
ff76eee5af137c925641dfd7dca4bb3c72963dd1
515
py
Python
spectacle/tests/test_fitting.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
null
null
null
spectacle/tests/test_fitting.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
1
2021-05-13T20:51:13.000Z
2021-05-13T20:51:13.000Z
spectacle/tests/test_fitting.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
null
null
null
from astropy.modeling.fitting import LevMarLSQFitter from spectacle.modeling import Spectral1D, OpticalDepth1D import astropy.units as u import numpy as np def test_levmar(): line1 = OpticalDepth1D(lambda_0=1216 * u.AA, v_doppler=500 * u.km /u.s, column_density=14) spec_mod = Spectral1D(line1, continuum=1) ...
30.294118
94
0.724272
986f6a0e68fb365ff7368808c20f337c44c5b15b
2,461
py
Python
11/11.py
zinccat/Convex-Analysis-homework
16b2abc5a62717821fa3e06dee31ed99584347ff
[ "MIT" ]
5
2021-05-02T14:01:00.000Z
2022-03-30T03:16:45.000Z
11/11.py
zinccat/Convex-Analysis-homework
16b2abc5a62717821fa3e06dee31ed99584347ff
[ "MIT" ]
null
null
null
11/11.py
zinccat/Convex-Analysis-homework
16b2abc5a62717821fa3e06dee31ed99584347ff
[ "MIT" ]
2
2022-03-06T03:49:26.000Z
2022-03-06T15:13:13.000Z
# HW11 给定函数的梯度下降优化 # By ZincCat import numpy as np from matplotlib import pyplot as plt # 设置随机种子 np.random.seed(19890817) # 初始化问题 m = 10 n = 15 a = np.random.normal(5, 5, [n, m]) x = np.ones(n) def f(x): # 计算函数值 return np.sum(np.exp(a.T@x)) + np.sum(np.exp(-a.T@x)) def gradient_f(x): # 计算函数梯度 ret...
24.61
105
0.572531
8453ab1f830f25573159eba866ca915bb3d27ca5
1,792
py
Python
dask_sql/physical/rel/logical/table_scan.py
rjzamora/dask-sql
c3ad6a9f6b01ce02127fde7501eaf322c8160f7e
[ "MIT" ]
56
2021-08-17T21:21:24.000Z
2022-03-29T11:28:51.000Z
dask_sql/physical/rel/logical/table_scan.py
rjzamora/dask-sql
c3ad6a9f6b01ce02127fde7501eaf322c8160f7e
[ "MIT" ]
195
2021-08-13T16:48:17.000Z
2022-03-29T16:17:48.000Z
dask_sql/physical/rel/logical/table_scan.py
rjzamora/dask-sql
c3ad6a9f6b01ce02127fde7501eaf322c8160f7e
[ "MIT" ]
22
2021-08-17T08:31:27.000Z
2022-03-15T16:39:39.000Z
from typing import TYPE_CHECKING from dask_sql.datacontainer import DataContainer from dask_sql.physical.rel.base import BaseRelPlugin if TYPE_CHECKING: import dask_sql from dask_sql.java import org class DaskTableScanPlugin(BaseRelPlugin): """ A DaskTableScal is the main ingredient: it will get the...
32.581818
80
0.667969
09201441818015d1809ec5698d1811ea09583fbf
929
py
Python
test/test_minimal_software_asset.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_minimal_software_asset.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_minimal_software_asset.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import openapi_client from openapi_client.mode...
22.658537
99
0.717976
14210c3b83ac555606dc4dc3f4d5a714f7d8154f
8,695
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_available_service_aliases_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_available_service_aliases_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_available_service_aliases_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
46.497326
204
0.650029
073a8d5a67e53ae645e119e666eb1893e7066f35
2,768
py
Python
pysm/experiments/semantic_labeling/summary.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
3
2019-10-31T15:26:20.000Z
2022-03-03T06:04:03.000Z
pysm/experiments/semantic_labeling/summary.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
1
2021-10-05T14:57:29.000Z
2022-03-27T01:58:41.000Z
pysm/experiments/semantic_labeling/summary.py
binh-vu/semantic-modeling
b387584502ba1daa6abd6b7573828416f6426b49
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import argparse import shutil import ujson from pathlib import Path import numpy as np # import gmtk.config # gmtk.config.USE_C_EXTENSION = False from semantic_labeling import create_semantic_typer from semantic_modeling.assembling.learning.evaluate import predict_sm, evalua...
36.906667
137
0.692558
df148910e62fc8528eceeb1afce7b2e74e3b36ff
749
py
Python
improved_enigma/main/tests/factories.py
2019342a/improved-enigma
7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee
[ "MIT" ]
null
null
null
improved_enigma/main/tests/factories.py
2019342a/improved-enigma
7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee
[ "MIT" ]
6
2021-09-06T08:36:33.000Z
2022-03-01T23:01:24.000Z
improved_enigma/main/tests/factories.py
2019342a/improved-enigma
7be2cf30673ed7cc3b78f68b3f22c1ba6d800dee
[ "MIT" ]
null
null
null
from factory.django import DjangoModelFactory from factory import Faker from factory import SubFactory from ..models import Customer from ..models import Order from ..models import Product from ..models import Stock class CustomerFactory(DjangoModelFactory): full_name = Faker("name") email = Faker("email") ...
19.205128
45
0.714286
325986b27dd73a92732384e751d9c9e719907fd5
6,363
py
Python
org/mk/training/dl/tfwordslstmmulti.py
slowbreathing/Deep-Breathe
bcc97cadfc53d3297317764ecfb2223e5e715fd1
[ "MIT" ]
5
2019-05-01T03:49:32.000Z
2022-02-20T12:41:38.000Z
org/mk/training/dl/tfwordslstmmulti.py
slowbreathing/Deep-Breathe
bcc97cadfc53d3297317764ecfb2223e5e715fd1
[ "MIT" ]
null
null
null
org/mk/training/dl/tfwordslstmmulti.py
slowbreathing/Deep-Breathe
bcc97cadfc53d3297317764ecfb2223e5e715fd1
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.contrib import rnn import random import collections import time from tensorflow.python.ops import array_ops from tensorflow.contrib.rnn.python.ops import rnn_cell from tensorflow.python.ops import variable_scope from tensorflow.python.ops import init_ops from t...
39.76875
220
0.670596
e7607a42b94ee4061ca7064ef4c256067aa03f0c
1,622
py
Python
app/api.py
NTsystems/python_belgrade_meetup_9
4e7c2809a70f01b7593166aa5b788dba9333f9a8
[ "MIT" ]
2
2018-07-02T10:34:19.000Z
2018-07-02T10:35:18.000Z
app/api.py
nmrkic/python_belgrade_meetup_9
4e7c2809a70f01b7593166aa5b788dba9333f9a8
[ "MIT" ]
null
null
null
app/api.py
nmrkic/python_belgrade_meetup_9
4e7c2809a70f01b7593166aa5b788dba9333f9a8
[ "MIT" ]
2
2017-03-22T10:39:05.000Z
2018-07-02T10:35:17.000Z
import tornado.ioloop import tornado.web import models from tornado import websocket import json import os clients = [] root = os.path.dirname(__file__) class Tweets(tornado.web.RequestHandler): def post(self): try: data = json.loads(self.request.body.decode('utf-8')) models.add_t...
24.575758
100
0.589396
456d79b4a5e78504208e72dfe81decd2e07bb07f
35,207
py
Python
volttrontesting/platform/test_instance_setup.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
1
2020-06-08T16:54:28.000Z
2020-06-08T16:54:28.000Z
volttrontesting/platform/test_instance_setup.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
8
2016-10-07T22:49:28.000Z
2022-02-23T00:57:58.000Z
volttrontesting/platform/test_instance_setup.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
import contextlib import os import shutil import subprocess import pytest from configparser import ConfigParser from volttron.platform import is_rabbitmq_available from volttron.platform.instance_setup import _is_agent_installed from volttron.utils import get_hostname from volttron.platform.agent.utils import is_volttr...
40.56106
129
0.50524
af1fc9110573b046fa817312ab97d8a265126663
65,665
py
Python
nova/tests/unit/test_utils.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_utils.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_utils.py
LinShuicheng/stx-nova
0b03ed64e2c3aa32eb07bd7e315ca1248d9c451c
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Justin Santa Barbara # # 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...
41.066291
79
0.588502
0e4698d5bcbe84fa02becca4cdf6209496a99aa7
3,373
py
Python
clear_nb_cache.py
nigelnquande/clear-netbeans-cache
27a65c8ea7d187d9ff8508c6ceeaa47f623497ff
[ "MIT" ]
null
null
null
clear_nb_cache.py
nigelnquande/clear-netbeans-cache
27a65c8ea7d187d9ff8508c6ceeaa47f623497ff
[ "MIT" ]
null
null
null
clear_nb_cache.py
nigelnquande/clear-netbeans-cache
27a65c8ea7d187d9ff8508c6ceeaa47f623497ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Program to clear the Netbeans Cache # TODO: Do not delete anything that starts with *jython* (including subdirectories and directory contents). import os from sys import stderr, argv from shutil import rmtree def getVersion (): return "0.00.01" def get_immediate_subdirectories(a_dir): ...
42.696203
162
0.702342
eec401f04cfc542bf92fc67fa0d722b0d1b44b01
1,169
py
Python
tests/unit/test_mpath.py
darkwyrm/pymensago
add93a6a87def3b6909666d23b8d885cfbdee5c4
[ "MIT" ]
1
2021-10-01T01:35:19.000Z
2021-10-01T01:35:19.000Z
tests/unit/test_mpath.py
darkwyrm/pymensago
add93a6a87def3b6909666d23b8d885cfbdee5c4
[ "MIT" ]
null
null
null
tests/unit/test_mpath.py
darkwyrm/pymensago
add93a6a87def3b6909666d23b8d885cfbdee5c4
[ "MIT" ]
null
null
null
import pymensago.mpath as mpath def test_basename(): '''Tests mpath.basename()''' assert mpath.basename('/ foo bar baz') == 'baz', 'basename test failed' def test_parent(): '''Tests mpath.parent()''' assert mpath.parent('/ foo bar baz') == '/ foo bar', 'parent test failed' def test_split(): '''Tests mpath.spl...
29.974359
94
0.715141
accf3c3458d1f3eb2fa3379b9ec04a5b0571fc0b
9,171
py
Python
src/Examples/VideoUploaderClient.py
eacg91/WhosApp
c822b2aa61ab29e47ebf590570b15bb9558275c6
[ "MIT" ]
null
null
null
src/Examples/VideoUploaderClient.py
eacg91/WhosApp
c822b2aa61ab29e47ebf590570b15bb9558275c6
[ "MIT" ]
null
null
null
src/Examples/VideoUploaderClient.py
eacg91/WhosApp
c822b2aa61ab29e47ebf590570b15bb9558275c6
[ "MIT" ]
1
2020-02-16T20:43:39.000Z
2020-02-16T20:43:39.000Z
''' Copyright (c) <2012> Tarek Galal <tare2.galal@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
33.841328
145
0.726638
827acea0f9e04b1c2291a731ce67b919a277b139
1,569
py
Python
xdl/test/python/unit_test/ps_ops/test_ps_sparse_assign_op.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
2
2019-11-11T09:51:56.000Z
2021-08-04T04:02:29.000Z
xdl/test/python/unit_test/ps_ops/test_ps_sparse_assign_op.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
1
2019-11-29T14:52:53.000Z
2019-11-29T14:52:53.000Z
xdl/test/python/unit_test/ps_ops/test_ps_sparse_assign_op.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
1
2019-08-03T05:22:19.000Z
2019-08-03T05:22:19.000Z
# Copyright (C) 2016-2018 Alibaba Group Holding Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
39.225
96
0.660293
96da19a11b7f019b832f836904ff25fd5ee42918
398
py
Python
kp_report.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
152
2019-10-07T03:15:53.000Z
2022-03-24T16:26:26.000Z
kp_report.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
46
2019-11-04T09:51:51.000Z
2022-03-06T18:40:13.000Z
kp_report.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
28
2019-11-04T02:02:23.000Z
2021-12-29T06:10:04.000Z
# -*- coding: utf-8 -*- """ Python File Template """ import os import kp_evaluate __author__ = "Rui Meng" __email__ = "rui.meng@pitt.edu" if __name__ == '__main__': eval_dir = '/zfs1/pbrusilovsky/rum20/kp/OpenNMT-kpg/output/keyphrase/meng17-one2one/meng17-one2one-kp20k-v2/' dataset_scores_dict = kp_evaluat...
22.111111
113
0.738693
a7377dad9309074ca0a9ede9d231125a41cae3e7
831
py
Python
blog/migrations/0009_auto_20190129_0021.py
ufotable/DjangoBlog
64ac857d2d105b39200984816187e5a7bf6be43a
[ "MIT" ]
21
2019-02-12T09:21:03.000Z
2019-06-05T03:36:16.000Z
blog/migrations/0009_auto_20190129_0021.py
ufotable/DjangoBlog
64ac857d2d105b39200984816187e5a7bf6be43a
[ "MIT" ]
25
2019-01-25T02:31:30.000Z
2019-03-09T13:52:12.000Z
blog/migrations/0009_auto_20190129_0021.py
ufotable/DjangoBlog
64ac857d2d105b39200984816187e5a7bf6be43a
[ "MIT" ]
10
2019-02-28T10:30:50.000Z
2019-05-16T00:11:13.000Z
# Generated by Django 2.1.4 on 2019-01-29 00:21 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0008_auto_20190129_0019'), ] operations = [ migrations.AlterField( model_name='comment', nam...
27.7
110
0.590854
232b9a28aba486a88730936490c4c2961cbe2dce
549
py
Python
BlueprintsApp/main/gui/buttons/apply_button.py
PiCodingClub/BlueprintsEdu
f65ad2c3bf6f01acb26660505f6ceded0bee888f
[ "Apache-2.0" ]
null
null
null
BlueprintsApp/main/gui/buttons/apply_button.py
PiCodingClub/BlueprintsEdu
f65ad2c3bf6f01acb26660505f6ceded0bee888f
[ "Apache-2.0" ]
null
null
null
BlueprintsApp/main/gui/buttons/apply_button.py
PiCodingClub/BlueprintsEdu
f65ad2c3bf6f01acb26660505f6ceded0bee888f
[ "Apache-2.0" ]
null
null
null
from gui.buttons.button import Button from utils.string_utils import StringUtils from utils import scene_utils from utils.gui_utils import Themes class ApplyButton(Button): def __init__(self, pos=0): Button.__init__(self, StringUtils.get_string("ID_APPLY"), pos) def on_click(self, board, form=None):...
30.5
72
0.739526
b37d859710b6bcfc64412cb827233ee4cdf18fdc
1,232
py
Python
src/posts/serializers/post.py
edgarbs1998/partesanato-server
1b01f75f94dca85ff5b963c49c237fb758b27b43
[ "MIT" ]
null
null
null
src/posts/serializers/post.py
edgarbs1998/partesanato-server
1b01f75f94dca85ff5b963c49c237fb758b27b43
[ "MIT" ]
1
2020-06-05T22:09:06.000Z
2020-06-05T22:09:06.000Z
src/posts/serializers/post.py
edgarbs1998/partesanato-server
1b01f75f94dca85ff5b963c49c237fb758b27b43
[ "MIT" ]
null
null
null
# posts/serializers/post.py from rest_framework.serializers import HyperlinkedModelSerializer from posts.models import Post from posts.serializers import PostCommentSerializer, PostImageSerializer, UserSerializer class AdminPostSerializer(HyperlinkedModelSerializer): parent_lookup_kwargs = { '...
26.212766
89
0.569805
d59c46d26abcd04390984a019be11e79a32a9f65
1,419
py
Python
test_python/layers/test_softmax.py
moskomule/TensorComprehensions
c215ae2bbe1cf0424a65b1848dec486aa2d2eafa
[ "Apache-2.0" ]
null
null
null
test_python/layers/test_softmax.py
moskomule/TensorComprehensions
c215ae2bbe1cf0424a65b1848dec486aa2d2eafa
[ "Apache-2.0" ]
null
null
null
test_python/layers/test_softmax.py
moskomule/TensorComprehensions
c215ae2bbe1cf0424a65b1848dec486aa2d2eafa
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
33
79
0.627202
d7dd37609fbf0bff444d9fdee2adc3db2e58fb88
3,742
py
Python
ddqn.py
tonegas/deep-q-learning
b375acb0ae64340706ea6dd03702d1dde5e932c2
[ "MIT" ]
1
2020-12-03T15:46:19.000Z
2020-12-03T15:46:19.000Z
ddqn.py
AlexKaravaev/deep-q-learning
eba2519d34d97620584810427c1331d37a2dcf1d
[ "MIT" ]
null
null
null
ddqn.py
AlexKaravaev/deep-q-learning
eba2519d34d97620584810427c1331d37a2dcf1d
[ "MIT" ]
2
2019-04-13T08:36:58.000Z
2021-05-08T08:20:39.000Z
# -*- coding: utf-8 -*- import random import gym import numpy as np from collections import deque from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam from keras import backend as K EPISODES = 5000 class DQNAgent: def __init__(self, state_size, action_size): ...
35.301887
74
0.607964
d2d1a179393059673b7e3fc4856e33e17ceba783
171
py
Python
examples/nested_directory_tests_fixture/tests/some_top_directory_test.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
4
2018-08-10T20:05:10.000Z
2019-07-24T15:29:32.000Z
examples/nested_directory_tests_fixture/tests/some_top_directory_test.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
6
2018-09-25T20:15:51.000Z
2021-12-22T17:09:52.000Z
examples/nested_directory_tests_fixture/tests/some_top_directory_test.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
null
null
null
from pynetest.pyne_test_collector import it from pynetest.pyne_tester import pyne @pyne def some_top_directory_test(): @it("can pass") def _(self): pass
17.1
43
0.719298
8ea6884ac306051b5594f9511900716e12154c8d
665
py
Python
ml-agents/tests/yamato/sample_curation.py
Musubee/ml-agents
22a45cc14788cbbe0b3b874f510f0a048b494675
[ "Apache-2.0" ]
null
null
null
ml-agents/tests/yamato/sample_curation.py
Musubee/ml-agents
22a45cc14788cbbe0b3b874f510f0a048b494675
[ "Apache-2.0" ]
null
null
null
ml-agents/tests/yamato/sample_curation.py
Musubee/ml-agents
22a45cc14788cbbe0b3b874f510f0a048b494675
[ "Apache-2.0" ]
null
null
null
import sys import argparse from .yamato_utils import get_base_path, create_samples def main(scenes): base_path = get_base_path() print(f"Running in base path {base_path}") returncode = create_samples( scenes, base_path, log_output_path=None, # Log to stdout so we get timestamps ...
22.166667
79
0.657143
e0fb8589e71c6fd2749f9f68c1198b65e2b75795
525
py
Python
DQMServices/Core/python/DQMStore_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
DQMServices/Core/python/DQMStore_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
DQMServices/Core/python/DQMStore_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms DQMStore = cms.Service("DQMStore", verbose = cms.untracked.int32(0), # similar to LSBasedMode but for offline. Explicitly sets LumiFLag on all # MEs/modules that allow it (canSaveByLumi) saveByLumi = cms.untracked.bool(False), trackME = cms.untracked.string(...
37.5
77
0.725714
d1b5526b2c01ae7998ffec7b3276d7596f42c545
2,217
py
Python
src/cogs/event.py
thuanGIT/cinnamon
f06166f7ccd417b4ec9963a02753423cc1bb3f21
[ "MIT" ]
null
null
null
src/cogs/event.py
thuanGIT/cinnamon
f06166f7ccd417b4ec9963a02753423cc1bb3f21
[ "MIT" ]
null
null
null
src/cogs/event.py
thuanGIT/cinnamon
f06166f7ccd417b4ec9963a02753423cc1bb3f21
[ "MIT" ]
1
2021-03-18T01:00:50.000Z
2021-03-18T01:00:50.000Z
from discord.ext import commands import sys class Event(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_ready(self): print(f'{self.bot.user} has connected to Discord!') @commands.Cog.listener() async def on_message(self, message): ...
39.589286
114
0.641858