hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
955eed560456dca1edea91950d78789cf913e924
4,962
py
Python
quadtree.py
eug/quadtree
7a3154f06b8f52fd8338a7b73b5a8329c399281f
[ "MIT" ]
1
2021-09-02T07:57:29.000Z
2021-09-02T07:57:29.000Z
quadtree.py
eug/quadtree
7a3154f06b8f52fd8338a7b73b5a8329c399281f
[ "MIT" ]
null
null
null
quadtree.py
eug/quadtree
7a3154f06b8f52fd8338a7b73b5a8329c399281f
[ "MIT" ]
1
2020-11-05T05:57:37.000Z
2020-11-05T05:57:37.000Z
# Constants for tuple access optimization BOUNDARY = 0 POINTS = 1
32.012903
78
0.601169
import bisect from scipy.spatial.distance import euclidean from common import (NO_QUADRANT, NORTH_EAST, NORTH_WEST, SOUTH_EAST, SOUTH_WEST, Boundary, Point, belongs, compute_knn, intersects, quadrants) from node import TreeNode # Constants for tuple access optimization BOUNDAR...
0
0
0
4,578
0
0
0
180
136
7289ee6470e2a8f5fb3a4ac360a43fd613597c4a
523
py
Python
competition/alibaba.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
competition/alibaba.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
competition/alibaba.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
# N, a, b, c, d = list(map(int, input().split())) # # # def jc(x): # r = 1 # for i in range(1, x + 1): # r *= i # return r # # res = int(jc(N * N) / (jc(a) * jc(b) * jc(c) * jc(d))) % # print(res) from collections import defaultdict n = int(input()) edges = defaultdict(list) for _ in range(n - 1): u, v = lis...
17.433333
68
0.529637
# N, a, b, c, d = list(map(int, input().split())) # # # def jc(x): # r = 1 # for i in range(1, x + 1): # r *= i # return r # # res = int(jc(N * N) / (jc(a) * jc(b) * jc(c) * jc(d))) % # print(res) from collections import defaultdict n = int(input()) edges = defaultdict(list) for _ in range(n - 1): u, v = lis...
0
0
0
0
0
107
0
0
23
5a8a1562596c85fca9c274efc7e80bd787910272
4,948
py
Python
neo4j/__main__.py
ank-forked/neo4j-python-driver
f7857791051e0a7499aea9da5f92256cef7eb014
[ "Apache-2.0" ]
null
null
null
neo4j/__main__.py
ank-forked/neo4j-python-driver
f7857791051e0a7499aea9da5f92256cef7eb014
[ "Apache-2.0" ]
null
null
null
neo4j/__main__.py
ank-forked/neo4j-python-driver
f7857791051e0a7499aea9da5f92256cef7eb014
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2015 "Neo Technology," # Network Engine for Objects in Lund AB [http://neotechnology.com] # # This file is part of Neo4j. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
37.203008
92
0.599232
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2015 "Neo Technology," # Network Engine for Objects in Lund AB [http://neotechnology.com] # # This file is part of Neo4j. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
0
0
0
1,418
0
2,464
0
62
181
916dd0a0fef78307533ccaae6243fb5d10a059e7
4,107
py
Python
test_dp_setting_initial_conditions_bem.py
whitews/dpconverge
0e00a7f1c0be8bd291cb68598ca2b2eaa1a47448
[ "BSD-3-Clause" ]
null
null
null
test_dp_setting_initial_conditions_bem.py
whitews/dpconverge
0e00a7f1c0be8bd291cb68598ca2b2eaa1a47448
[ "BSD-3-Clause" ]
null
null
null
test_dp_setting_initial_conditions_bem.py
whitews/dpconverge
0e00a7f1c0be8bd291cb68598ca2b2eaa1a47448
[ "BSD-3-Clause" ]
null
null
null
from dpconverge.data_set import DataSet import numpy as np import pandas as pd from matplotlib import pyplot from sklearn.datasets.samples_generator import make_blobs n_features = 2 points_per_feature = 100 centers = [[2, 1.35], [2, 2], [2, 3], [2.5, 1.5], [2.5, 2], [2.5, 2.5]] blob1, y1 = make_blobs( n_samples=1...
22.944134
76
0.637448
from dpconverge.data_set import DataSet import numpy as np import pandas as pd from matplotlib import pyplot from sklearn.datasets.samples_generator import make_blobs n_features = 2 points_per_feature = 100 centers = [[2, 1.35], [2, 2], [2, 3], [2.5, 1.5], [2.5, 2], [2.5, 2.5]] blob1, y1 = make_blobs( n_samples=1...
0
0
0
0
0
0
0
0
0
754d3a88e63c470befd4e37201725706f9d4214f
2,469
py
Python
pincer/objects/message/component.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-11-04T13:20:23.000Z
2021-11-04T13:20:23.000Z
pincer/objects/message/component.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-10-31T11:41:42.000Z
2021-10-31T11:41:42.000Z
pincer/objects/message/component.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-11-17T13:55:07.000Z
2021-11-17T13:55:07.000Z
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING:
34.774648
94
0.687323
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from ...utils.api_object import APIObject from ...utils.types import MISSING if TYPE_CHECKING: from typing impor...
0
1,944
0
0
0
0
0
116
222
d1746864f4611777bffb76d6b2649465292c511c
1,771
py
Python
resources/unite_tax_to_newick.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
resources/unite_tax_to_newick.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
resources/unite_tax_to_newick.py
colinbrislawn/hundo
38f5da8e63fdbd314e99f4eff3668c8adb5a0a5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ """ if __name__ == '__main__': cli()
25.666667
70
0.578769
#!/usr/bin/env python # coding=utf-8 """ """ import click import os from collections import defaultdict from hundo.fasta import read_fasta, format_fasta_record @click.group() @click.pass_context def cli(obj): """ """ @cli.command("tax-to-newick") @click.argument("tax", type=click.File("r")) @click.argument(...
0
1,524
0
0
0
0
0
27
134
40c987a08a1ef8707bf650d224f8475fede83800
1,026
py
Python
venv/lib/python3.6/site-packages/marshmallow/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/marshmallow/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/marshmallow/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Abstract base classes. These are necessary to avoid circular imports between core.py and fields.py. """
21.829787
76
0.658869
# -*- coding: utf-8 -*- """Abstract base classes. These are necessary to avoid circular imports between core.py and fields.py. """ import copy class FieldABC(object): """Abstract base class from which all Field classes inherit. """ parent = None name = None def serialize(self, attr, obj, access...
0
0
0
834
0
0
0
-10
68
e8d6ac802de2774ffc5d0f5f58cb2e9373e7792f
2,501
py
Python
CRNNHandle.py
zuoyuwei/crnn_torch_trt
ba1f7e8d113a25325389ba2435cef9a548e55210
[ "MIT" ]
null
null
null
CRNNHandle.py
zuoyuwei/crnn_torch_trt
ba1f7e8d113a25325389ba2435cef9a548e55210
[ "MIT" ]
null
null
null
CRNNHandle.py
zuoyuwei/crnn_torch_trt
ba1f7e8d113a25325389ba2435cef9a548e55210
[ "MIT" ]
1
2020-07-29T05:20:04.000Z
2020-07-29T05:20:04.000Z
# alphabetfrom .keys import alphabet import params from utils import strLabelConverter converter = strLabelConverter(params.alphabet) # converter = strLabelConverter(''.join(alphabet))
27.788889
88
0.572171
import torch from torchvision import transforms import os import cv2 import time import numpy as np # alphabetfrom .keys import alphabet import params from torch.autograd import Variable from PIL import Image from utils import strLabelConverter,resizeNormalize converter = strLabelConverter(params.alphabet) # converter...
294
0
0
2,017
0
0
0
-2
199
077dc1cf93a34eabf2a6423dfc342a97bc442c61
6,331
py
Python
tests/integration/worker/fixture.py
geometry-labs/icon-governance
2f084de358525808c6f05ab99a686463d2273c8b
[ "Apache-2.0" ]
null
null
null
tests/integration/worker/fixture.py
geometry-labs/icon-governance
2f084de358525808c6f05ab99a686463d2273c8b
[ "Apache-2.0" ]
23
2021-10-04T19:13:57.000Z
2022-02-16T23:50:15.000Z
tests/integration/worker/fixture.py
geometry-labs/icon-governance
2f084de358525808c6f05ab99a686463d2273c8b
[ "Apache-2.0" ]
null
null
null
peers = { ("54.95.16.98", "hxdabfd26d6c01038acae8081580fcce86c802fd01"), ("54.184.241.211", "hx016401bba6a5474e08c925b6390e1ef1d8e0adc9"), ("35.170.9.187", "hx9fa9d224306b0722099d30471b3c2306421aead7"), ("65.108.47.101", "hx54d6f19c3d16b2ef23c09c885ca1ba776aaa80e2"), ("13.91.36.115", "hxc5e0b88cb909...
66.642105
70
0.751856
peers = { ("54.95.16.98", "hxdabfd26d6c01038acae8081580fcce86c802fd01"), ("54.184.241.211", "hx016401bba6a5474e08c925b6390e1ef1d8e0adc9"), ("35.170.9.187", "hx9fa9d224306b0722099d30471b3c2306421aead7"), ("65.108.47.101", "hx54d6f19c3d16b2ef23c09c885ca1ba776aaa80e2"), ("13.91.36.115", "hxc5e0b88cb909...
0
0
0
0
0
0
0
0
0
d4db0e97f8dd644aa8041e83eae4beaa62181324
1,952
py
Python
Scripts_Python/Neuronal_20200417/CGAN/Discriminator.py
IshanBaliyan/DEEP-TFM_with_cGAN
8d711c025367031197e5b8c7c768fc9fbea406ce
[ "MIT" ]
1
2021-08-17T14:47:37.000Z
2021-08-17T14:47:37.000Z
Scripts_Python/Neuronal_20200417/CGAN/Discriminator.py
IshanBaliyan/DEEP-TFM_with_cGAN
8d711c025367031197e5b8c7c768fc9fbea406ce
[ "MIT" ]
null
null
null
Scripts_Python/Neuronal_20200417/CGAN/Discriminator.py
IshanBaliyan/DEEP-TFM_with_cGAN
8d711c025367031197e5b8c7c768fc9fbea406ce
[ "MIT" ]
1
2020-12-11T23:53:43.000Z
2020-12-11T23:53:43.000Z
import torch.nn as nn
33.655172
59
0.552254
import numpy as np import torch import torch.nn.functional as F import torch.nn as nn class Discriminator(nn.Module): def __init__(self, hidden_dim=1024): super(Discriminator, self).__init__() self.hidden_dim = hidden_dim self.conv1 = nn.Conv2d(33, 16, 4, 2, 1) self.conv...
0
0
0
1,841
0
0
0
-2
89
68ae7d329b80fdf5298ee6cf2403df2d82abe871
12,483
py
Python
maci/distributions/real_nvp_bijector.py
bbrito/mapr2
5aa1a4c85c28918d9f16e5544793bf5574d7c49e
[ "Apache-2.0" ]
35
2019-01-13T17:55:03.000Z
2022-02-23T17:06:53.000Z
maci/distributions/real_nvp_bijector.py
arita37/mapr2
57f76875a4a6aed1850d3fb8604683bfe8a0e09b
[ "Apache-2.0" ]
18
2019-03-10T23:12:00.000Z
2022-03-21T22:17:09.000Z
maci/distributions/real_nvp_bijector.py
arita37/mapr2
57f76875a4a6aed1850d3fb8604683bfe8a0e09b
[ "Apache-2.0" ]
19
2019-01-13T20:47:00.000Z
2021-11-09T05:59:13.000Z
"""RealNVP bijector.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np ConditionalBijector = tf.contrib.distributions.bijectors.ConditionalBijector __all__ = [ "RealNVPBijector", ] def checkerboard(shape, p...
32.936675
79
0.564448
"""RealNVP bijector.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np ConditionalBijector = tf.contrib.distributions.bijectors.ConditionalBijector __all__ = [ "RealNVPBijector", ] def checkerboard(shape, p...
0
0
0
10,526
0
1,107
0
0
69
e42334d7ea3bc94404b733cfe0daa07bc8199160
3,904
py
Python
politician/views.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
null
null
null
politician/views.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
null
null
null
politician/views.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
1
2020-03-04T00:22:39.000Z
2020-03-04T00:22:39.000Z
# politician/views.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.contrib import messages from django.contrib.messages import get_messages from django.core.urlresolvers import reverse from...
36.485981
147
0.742059
# politician/views.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.contrib import messages from django.contrib.messages import get_messages from django.core.urlresolvers import reverse from ...
0
0
0
221
0
601
0
47
134
4ed568d66cbb02189b36d1ec6924ebb87e827d1e
6,209
py
Python
tests/compare_updates.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
tests/compare_updates.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
tests/compare_updates.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import updates_msbm_vi_iter import updates_msbm_vi import updates_msbm2_vi_iter import updates_msbm2_vi import os # ########################################################### # ########################################################### # #########################################...
35.079096
113
0.565792
import sys sys.path.insert(0, '..') import updates_msbm_vi_iter import updates_msbm_vi import updates_msbm2_vi_iter import updates_msbm2_vi import os import util import init_msbm_vi as im import numpy as np import numpy.random as npr import pdb class TestUpdates: def __init__(self, updater_einsum, updater_iter,...
0
0
0
4,813
0
0
0
-15
133
4f7f939a65964f9c1af988a3620892d451aa3135
46,951
py
Python
utensor_cgen/backend/operators.py
dboyliao/utensor_cgen
aacd3adf4ee2a521a8eb2e75807fe3c1c0d1e1e5
[ "Apache-2.0" ]
1
2017-12-29T17:40:49.000Z
2017-12-29T17:40:49.000Z
utensor_cgen/backend/operators.py
dboyliao/utensor_cgen
aacd3adf4ee2a521a8eb2e75807fe3c1c0d1e1e5
[ "Apache-2.0" ]
1
2017-12-28T02:25:45.000Z
2017-12-28T02:25:45.000Z
utensor_cgen/backend/operators.py
dboyliao/utensor_cgen
aacd3adf4ee2a521a8eb2e75807fe3c1c0d1e1e5
[ "Apache-2.0" ]
3
2017-12-27T17:15:38.000Z
2017-12-29T06:43:00.000Z
# -*- coding:utf8 -*- r''' TODO: remove all tensorflow graph construction in `build_op_info` ''' __all__ = ['OperatorFactory', 'OpNotSupportedError'] #hard coding to uint8_t uint8_t int32_t for now
37.32194
114
0.629188
# -*- coding:utf8 -*- r''' TODO: remove all tensorflow graph construction in `build_op_info` ''' import os import numpy as np import idx2numpy as idx2np import tensorflow as tf from utensor_cgen.ir import OperationInfo, TensorInfo from utensor_cgen.ir.converter import (AttrValueConverter, DataTypeConverter, ...
0
44,593
0
713
0
0
0
281
1,130
f1f76e0897cbb9b84dcbbc0fc3e50e81b0c75e9b
2,993
py
Python
ndg/security/server/test/unit/wsgi/authn/test_httpbasicauth.py
cedadev/ndg_security_server
6873cc0de1a01ad05ddcbeb3f074a33923dc1ca1
[ "BSD-3-Clause" ]
null
null
null
ndg/security/server/test/unit/wsgi/authn/test_httpbasicauth.py
cedadev/ndg_security_server
6873cc0de1a01ad05ddcbeb3f074a33923dc1ca1
[ "BSD-3-Clause" ]
null
null
null
ndg/security/server/test/unit/wsgi/authn/test_httpbasicauth.py
cedadev/ndg_security_server
6873cc0de1a01ad05ddcbeb3f074a33923dc1ca1
[ "BSD-3-Clause" ]
1
2017-12-05T17:31:08.000Z
2017-12-05T17:31:08.000Z
#!/usr/bin/env python """Unit tests for WSGI HTTP Basic Auth handler NERC DataGrid Project """ __author__ = "P J Kershaw" __date__ = "13/10/09" __copyright__ = "(C) 2009 Science and Technology Facilities Council" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" __...
32.182796
80
0.636151
#!/usr/bin/env python """Unit tests for WSGI HTTP Basic Auth handler NERC DataGrid Project """ __author__ = "P J Kershaw" __date__ = "13/10/09" __copyright__ = "(C) 2009 Science and Technology Facilities Council" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" __...
0
0
0
2,170
0
0
0
119
184
0c2450da8b64ba940ddbb47766c3145d609c2f49
4,725
py
Python
src/tankoh2/contour.py
sfreund-DLR/tankoh2
92ff080f7034a7eb1cdabed5089c79fd01af4d11
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/tankoh2/contour.py
sfreund-DLR/tankoh2
92ff080f7034a7eb1cdabed5089c79fd01af4d11
[ "MIT", "BSD-3-Clause" ]
27
2021-11-03T19:53:00.000Z
2022-03-28T12:43:30.000Z
src/tankoh2/contour.py
sfreund-DLR/tankoh2
92ff080f7034a7eb1cdabed5089c79fd01af4d11
[ "MIT", "BSD-3-Clause" ]
null
null
null
"""methods for liners and domes""" import numpy as np from tankoh2 import pychain from tankoh2.service import log from tankoh2.exception import Tankoh2Error from tankoh2.utilities import updateName, copyAsJson # ######################################################################################### # Create Line...
37.8
116
0.631534
"""methods for liners and domes""" import numpy as np from tankoh2 import pychain from tankoh2.service import log from tankoh2.exception import Tankoh2Error from tankoh2.utilities import updateName, copyAsJson # ######################################################################################### # Create Line...
2
0
0
0
0
1,298
0
0
23
9928c1c459906e3027e54332db9b7b9f35517297
930
py
Python
levels/chock_a_block.py
ungood/stockfighter-py
8fd6cc70177227164f3984670d352a89d9f0b0d5
[ "MIT" ]
null
null
null
levels/chock_a_block.py
ungood/stockfighter-py
8fd6cc70177227164f3984670d352a89d9f0b0d5
[ "MIT" ]
null
null
null
levels/chock_a_block.py
ungood/stockfighter-py
8fd6cc70177227164f3984670d352a89d9f0b0d5
[ "MIT" ]
null
null
null
#from stockfighter import Stockfighter # sf = Stockfighter() # # level = sf.levels['chock_a_block'] # info = level.start() # print(info) # # sf = Stockfighter() # print(sf.heartbeat()) # # venue = sf.venues['PVIEX'] # # stock = venue.stocks['SOF'] # for stock in venue.stocks: # print(stock) # # ORDER_SIZE = 50 # re...
22.142857
90
0.588172
#from stockfighter import Stockfighter import os, time def create_parser(parent): pass # sf = Stockfighter() # # level = sf.levels['chock_a_block'] # info = level.start() # print(info) # # sf = Stockfighter() # print(sf.heartbeat()) # # venue = sf.venues['PVIEX'] # # stock = venue.stocks['SOF'] # for stock in ven...
0
0
0
0
0
14
0
-6
45
f7e3107009c02c524f668486aee1490c29db37a3
3,471
py
Python
matmul.py
zangkaiqiang/pyaam
3c59026df17fb0b4588797026d5a2fe64d05fca9
[ "MIT" ]
2
2020-07-06T18:18:25.000Z
2021-01-20T08:05:21.000Z
matmul.py
zangkaiqiang/pyaam
3c59026df17fb0b4588797026d5a2fe64d05fca9
[ "MIT" ]
null
null
null
matmul.py
zangkaiqiang/pyaam
3c59026df17fb0b4588797026d5a2fe64d05fca9
[ "MIT" ]
3
2021-01-11T07:16:42.000Z
2021-07-28T11:37:01.000Z
######################################################################## # # License: BSD # Created: October 11, 2013 # Author: Francesc Alted # ######################################################################## """ Implementation of an out of core matrix-matrix multiplication for PyTables. ""...
28.925
77
0.53414
######################################################################## # # License: BSD # Created: October 11, 2013 # Author: Francesc Alted # ######################################################################## """ Implementation of an out of core matrix-matrix multiplication for PyTables. ""...
0
0
0
0
0
0
0
0
0
4bfa331a60755af393427cbeb23700e010675ae3
3,487
py
Python
English/CdeC.py
ehultee/glacio-CdeC
2cab0a2593abe9e23ced8704be9c794fbbce0576
[ "MIT" ]
2
2019-07-01T16:42:35.000Z
2021-11-07T20:03:30.000Z
English/CdeC.py
ehultee/glacio-CdeC
2cab0a2593abe9e23ced8704be9c794fbbce0576
[ "MIT" ]
18
2019-07-02T16:46:54.000Z
2019-08-02T18:19:15.000Z
English/CdeC.py
ehultee/glacio-CdeC
2cab0a2593abe9e23ced8704be9c794fbbce0576
[ "MIT" ]
2
2019-07-02T16:20:33.000Z
2021-01-27T11:47:14.000Z
## Helper functions to clean up Clubes de Ciencia notebooks ## 5 July 2019 EHU import xarray as xr import pandas as pd import numpy as np from oggm import utils def ice_to_freshwater(icevol, rho_ice=900, rho_water=1000): """Cleanly convert volume of glacial ice (km3) to equivalent volume fresh water (liter). ...
30.587719
102
0.629481
## Helper functions to clean up Clubes de Ciencia notebooks ## 5 July 2019 EHU import xarray as xr import pandas as pd import numpy as np from oggm import utils def ice_to_freshwater(icevol, rho_ice=900, rho_water=1000): """Cleanly convert volume of glacial ice (km3) to equivalent volume fresh water (liter). ...
0
0
0
0
0
0
0
0
0
891a6a2c0dd55610ffc22400d6c2676a3191cb6f
1,543
py
Python
skoleintra/schildren.py
svalgaard/fskintra
3ccf656ef1450e541c902d4c00ea1dadcf82085c
[ "BSD-2-Clause-FreeBSD" ]
9
2015-08-12T09:54:04.000Z
2021-06-21T08:35:39.000Z
skoleintra/schildren.py
svalgaard/fskintra
3ccf656ef1450e541c902d4c00ea1dadcf82085c
[ "BSD-2-Clause-FreeBSD" ]
29
2015-01-03T21:13:20.000Z
2020-11-12T08:23:56.000Z
skoleintra/schildren.py
svalgaard/fskintra
3ccf656ef1450e541c902d4c00ea1dadcf82085c
[ "BSD-2-Clause-FreeBSD" ]
11
2015-02-25T20:24:56.000Z
2018-11-16T07:37:37.000Z
# -*- coding: utf-8 -*- import re import config import surllib # Map of children => urlPrefix # 'Andrea 0A' => '/parent/1234/Andrea/' _children = None def getChildren(): '''Returns of list of "available" children in the system''' global _children if not _children: _children = dict() se...
27.553571
75
0.596889
# -*- coding: utf-8 -*- import re import config import surllib # Map of children => urlPrefix # 'Andrea 0A' => '/parent/1234/Andrea/' _children = None def getChildren(): '''Returns of list of "available" children in the system''' global _children def ckey(n): return tuple(n.rsplit(' ', 1)[::-1]) ...
8
0
0
0
0
397
0
0
73
b6fea9e2c246a5af265492ae8abcfc853cc92e50
297
py
Python
aula01/par_impar.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
aula01/par_impar.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
aula01/par_impar.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
""" Decobrir se um numero impar oou par """ print(25*"-") while True: numero = int(input("Digite um numero: ")) if (numero % 2) == 0: print(f"Numero digitado, {numero} PAR: ") elif(numero % 2) != 0: print(f"Numero digitado, {numero} IMPAR: ") print(25*"-")
21.214286
53
0.555556
""" Decobrir se um numero é impar oou par """ print(25*"-") while True: numero = int(input("Digite um numero: ")) if (numero % 2) == 0: print(f"Numero digitado, {numero} é PAR: ") elif(numero % 2) != 0: print(f"Numero digitado, {numero} é IMPAR: ") print(25*"-")
6
0
0
0
0
0
0
0
0
0167fb62df138c757952327fadf399fc12f32100
3,435
py
Python
tests/python/test_plotting.py
MichaelChirico/xgboost
028bdc174086d22dcda4130ca5955efca9a0eed7
[ "Apache-2.0" ]
1
2022-01-04T23:38:14.000Z
2022-01-04T23:38:14.000Z
tests/python/test_plotting.py
Nihilitior/xgboost
7366d3b20cad8e28ecef67d5130c71e81bb0b088
[ "Apache-2.0" ]
40
2021-09-10T06:17:11.000Z
2022-03-19T19:30:56.000Z
tests/python/test_plotting.py
Nihilitior/xgboost
7366d3b20cad8e28ecef67d5130c71e81bb0b088
[ "Apache-2.0" ]
1
2018-12-09T14:30:38.000Z
2018-12-09T14:30:38.000Z
import testing as tm import pytest try: import matplotlib matplotlib.use('Agg') except ImportError: pass pytestmark = pytest.mark.skipif(**tm.no_multiple(tm.no_matplotlib(), tm.no_graphviz())) dpath = 'demo/data/agaricus.txt.train'
35.05102
77
0.560116
import json import numpy as np import xgboost as xgb import testing as tm import pytest try: import matplotlib matplotlib.use('Agg') from matplotlib.axes import Axes from graphviz import Source except ImportError: pass pytestmark = pytest.mark.skipif(**tm.no_multiple(tm.no_matplotlib(), ...
0
95
0
2,897
0
0
0
4
141
982d1343458738175e9ac9c51f09078a5d70f3fc
1,386
py
Python
tests/components/test_branch.py
haowen-xu/tfsnippet-pre-alpha
31eb2cf692ac25b95cc815aaca53754d6db42d9f
[ "MIT" ]
null
null
null
tests/components/test_branch.py
haowen-xu/tfsnippet-pre-alpha
31eb2cf692ac25b95cc815aaca53754d6db42d9f
[ "MIT" ]
null
null
null
tests/components/test_branch.py
haowen-xu/tfsnippet-pre-alpha
31eb2cf692ac25b95cc815aaca53754d6db42d9f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest if __name__ == '__main__': unittest.main()
30.130435
71
0.565657
# -*- coding: utf-8 -*- import unittest import six import tensorflow as tf from tfsnippet.components import DictMapper, Linear, Dense from tests.helper import TestCase class DictMapperTestCase(TestCase): def test_construction(self): net = DictMapper({ 'a': Linear(2), 'b': Dense(...
0
0
0
1,143
0
0
0
40
113
dc034e6d00493ce71c20bb1a4fa5cb0e5ade07f9
1,076
py
Python
server.py
MusaTamzid05/simple_image_api
ea7a2b255c47732d7f79f7f9c59576eced23f3c6
[ "MIT" ]
null
null
null
server.py
MusaTamzid05/simple_image_api
ea7a2b255c47732d7f79f7f9c59576eced23f3c6
[ "MIT" ]
null
null
null
server.py
MusaTamzid05/simple_image_api
ea7a2b255c47732d7f79f7f9c59576eced23f3c6
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api import werkzeug from flask_restful import reqparse parser = reqparse.RequestParser() parser.add_argument("file", type = werkzeug.datastructures.FileStorage, location = "files") app = Flask(__name__) api = Api(app) api.add_resource(ImageServer, "/") if __na...
19.925926
91
0.672862
from flask import Flask from flask_restful import Resource from flask_restful import Api import numpy as np import cv2 import werkzeug from flask_restful import reqparse parser = reqparse.RequestParser() parser.add_argument("file", type = werkzeug.datastructures.FileStorage, location = "files") app = Flask(__nam...
0
0
0
593
0
0
0
-9
113
762c4a4873f93d04b2ca0adffa5772acd9975495
1,428
py
Python
access-analyzer/step-functions-archive-findings/functions/evaluate-access-analyzer-finding/app.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
88
2020-04-02T02:56:27.000Z
2022-03-18T13:22:02.000Z
access-analyzer/step-functions-archive-findings/functions/evaluate-access-analyzer-finding/app.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
45
2020-06-26T11:11:28.000Z
2021-08-17T15:31:47.000Z
access-analyzer/step-functions-archive-findings/functions/evaluate-access-analyzer-finding/app.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
32
2020-04-02T02:56:28.000Z
2021-12-20T18:53:04.000Z
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) #Evaluate Risk Level #Return True to raise alert if risk level exceeds threshold #Return False to Archive finding
31.733333
111
0.740196
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) import boto3 #Evaluate Risk Level #Return True to raise alert if risk level exceeds threshold #Return False to Archive finding def should_raise_alert(finding_details, tags, additional_context): if "error" in finding_details: logger.error(...
0
0
0
0
0
1,157
0
-9
91
2e3fe88d47f02aa45547236534d02086aa6a58e7
3,372
py
Python
MobileRevelator/python/android_gls.py
ohunecker/MR
b0c93436c7964d87a0b8154f8b7662b1731124b9
[ "MIT" ]
98
2019-02-03T22:50:24.000Z
2022-03-17T12:50:56.000Z
MobileRevelator/python/android_gls.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
10
2019-03-14T20:12:10.000Z
2020-05-23T10:37:54.000Z
MobileRevelator/python/android_gls.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
30
2019-02-03T22:50:27.000Z
2022-03-30T12:37:30.000Z
#Pluginname="GLS Tracking (Android)" #Type=App
42.15
148
0.472123
#Pluginname="GLS Tracking (Android)" #Type=App import os import json import tempfile def convertdata(filenames): zfields=[] row=0 for fsname in filenames: filename=tempfile.gettempdir()+"/"+fsname[fsname.rfind("/")+1:] if ctx.fs_file_extract(fsname,filename): print...
0
0
0
0
0
3,230
0
-28
120
1129bbca49af3c3ae848c54738eec81269b88739
983
py
Python
utf7.py
CthUlhUzzz/unicode_crafter
b1b6b54e13d9afdf20c58abffe7a4986e35628d0
[ "WTFPL" ]
null
null
null
utf7.py
CthUlhUzzz/unicode_crafter
b1b6b54e13d9afdf20c58abffe7a4986e35628d0
[ "WTFPL" ]
null
null
null
utf7.py
CthUlhUzzz/unicode_crafter
b1b6b54e13d9afdf20c58abffe7a4986e35628d0
[ "WTFPL" ]
null
null
null
# Module for UTF-7 encoding from utf16 import UTF16_MAXIMUM_CODEPOINT DIRECT_CHARACTERS = '\'(),-./:?' UTF7_MAXIMUM_CODEPOINT = UTF16_MAXIMUM_CODEPOINT
31.709677
95
0.603255
# Module for UTF-7 encoding from base64 import b64encode from utf16 import utf16_encode, UTF16_MAXIMUM_CODEPOINT DIRECT_CHARACTERS = '\'(),-./:?' UTF7_MAXIMUM_CODEPOINT = UTF16_MAXIMUM_CODEPOINT def utf7_encode(codepoints, direct_characters=DIRECT_CHARACTERS): assert '+' not in direct_characters result_str...
0
0
0
0
0
761
0
21
46
48337410cf4a7f2042310786ee08e0b9f74679d0
6,939
py
Python
ping_me/ping.py
harshcrop/ping-me
274a07fd07356255763f516a47b37d9472041dcf
[ "Apache-2.0" ]
null
null
null
ping_me/ping.py
harshcrop/ping-me
274a07fd07356255763f516a47b37d9472041dcf
[ "Apache-2.0" ]
null
null
null
ping_me/ping.py
harshcrop/ping-me
274a07fd07356255763f516a47b37d9472041dcf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Command line execution listener module of ping-me""" from __future__ import print_function from dateutil import parser import argparse import datetime import getpass import hashlib import os import parsedatetime import sys import time import ping_me.authenticate import ping_me.engine home =...
39.651429
78
0.542729
# -*- coding: utf-8 -*- """Command line execution listener module of ping-me""" from __future__ import print_function from dateutil import parser import argparse import datetime import getpass import hashlib import os import parsedatetime import sys import time import ping_me.authenticate import ping_me.engine home =...
3
0
0
0
0
0
0
0
0
5cb7d5f6b4498ffbcd46a0a7bcd0f240d3cdfa19
443
py
Python
test/forecast.py
sambacha/pyblock
f8f207de36a2f91dfe5f61681eba0e371cb0c552
[ "MIT" ]
null
null
null
test/forecast.py
sambacha/pyblock
f8f207de36a2f91dfe5f61681eba0e371cb0c552
[ "MIT" ]
null
null
null
test/forecast.py
sambacha/pyblock
f8f207de36a2f91dfe5f61681eba0e371cb0c552
[ "MIT" ]
null
null
null
"""Test workflow of forecasting model.""" import sys sys.path.append("../Forecasting") import model def test_forecast(): """Optimize an ARIMA model and predict a few data points.""" START = 5 END = 10 print("Forecasting...") f = model.Forecast("../Forecasting/blockchain.csv") f.optimizeARIMA(...
26.058824
66
0.650113
"""Test workflow of forecasting model.""" import sys sys.path.append("../Forecasting") import model def test_forecast(): """Optimize an ARIMA model and predict a few data points.""" START = 5 END = 10 print("Forecasting...") f = model.Forecast("../Forecasting/blockchain.csv") f.optimizeARIMA(...
0
0
0
0
0
0
0
0
0
6286afe34c783abf3fab1f6006078941470e0023
6,221
py
Python
prototxt_basic.py
niekai1982/MobileNet-SSD
0fb307ff049865338017627d4f082a8fd8b12016
[ "MIT" ]
null
null
null
prototxt_basic.py
niekai1982/MobileNet-SSD
0fb307ff049865338017627d4f082a8fd8b12016
[ "MIT" ]
null
null
null
prototxt_basic.py
niekai1982/MobileNet-SSD
0fb307ff049865338017627d4f082a8fd8b12016
[ "MIT" ]
null
null
null
# prototxt_basic # ----------------------------------------------------------------
36.380117
100
0.561968
# prototxt_basic def data(txt_file, info): txt_file.write('name: "mxnet-mdoel"\n') txt_file.write('layer {\n') txt_file.write(' name: "data"\n') txt_file.write(' type: "Input"\n') txt_file.write(' top: "data"\n') txt_file.write(' input_param {\n') txt_file.write(' shape: { dim: 10 dim: 3 dim: 224 ...
0
0
0
0
0
5,849
0
0
281
0255284ab4263a817a1bbf24a0fc9d68856eaa0f
3,769
py
Python
tests/test_gregorian_calendar.py
ibalagurov/laughing-train
24c345b22230e695ddd461368f118d1f2bb8d379
[ "MIT" ]
null
null
null
tests/test_gregorian_calendar.py
ibalagurov/laughing-train
24c345b22230e695ddd461368f118d1f2bb8d379
[ "MIT" ]
null
null
null
tests/test_gregorian_calendar.py
ibalagurov/laughing-train
24c345b22230e695ddd461368f118d1f2bb8d379
[ "MIT" ]
null
null
null
""" Tests for checking gregorian calendar date. Astronomical year contains 365,2425 days: 365 for usual year and 366 for leap Leap years: 0.2425 is 97 / 400 or 1/4 - 1/100 + 1/400 It means: - each 4th year is leap, except 3 of 4 round dates - 2004, 2008, 2012 and etc are leap - 2000, 2400, 2800 and etc. is leap - 21...
36.592233
92
0.645795
""" Tests for checking gregorian calendar date. Astronomical year contains 365,2425 days: 365 for usual year and 366 for leap Leap years: 0.2425 is 97 / 400 or 1/4 - 1/100 + 1/400 It means: - each 4th year is leap, except 3 of 4 round dates - 2004, 2008, 2012 and etc are leap - 2000, 2400, 2800 and etc. is leap - 21...
0
2,630
0
0
0
0
0
7
91
f317684016dd3310bb8a93c672100e2f58bb2b7f
159
py
Python
arithmetic10.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
arithmetic10.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
arithmetic10.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
import math a = int(input("a = ")) b = int(input("b = ")) c = a + b d = a - b e = a * b f = a / b g = a % b h = math.log10(a) i = a**b print(c,d,e,f,g,h,i)
10.6
22
0.446541
import math a = int(input("a = ")) b = int(input("b = ")) c = a + b d = a - b e = a * b f = a / b g = a % b h = math.log10(a) i = a**b print(c,d,e,f,g,h,i)
0
0
0
0
0
0
0
0
0
feda14de5a8d251a97859d636e823d8fc7099816
193
py
Python
section_3/3_decorators_and_context_mgrs/decos.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
43
2018-04-09T11:59:11.000Z
2022-01-29T14:27:37.000Z
section_3/3_decorators_and_context_mgrs/decos.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
12
2019-11-03T16:50:39.000Z
2021-09-07T23:52:37.000Z
section_3/3_decorators_and_context_mgrs/decos.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
45
2018-05-10T21:40:46.000Z
2022-03-01T05:50:07.000Z
# -*- coding: utf-8 -*- # !/usr/bin/env python3
24.125
40
0.595855
# -*- coding: utf-8 -*- # !/usr/bin/env python3 def greet(func): def decorated_func(*args, **kwargs): print('Hello!') return func(*args, **kwargs) return decorated_func
0
0
0
0
0
123
0
0
23
38a8181ed5c0474062640cb8571e1aa5db1c0d30
7,383
py
Python
server/generateconfig.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
2
2020-04-29T09:58:21.000Z
2020-05-08T20:23:33.000Z
server/generateconfig.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
1
2020-05-01T11:00:58.000Z
2020-05-01T11:00:58.000Z
server/generateconfig.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
null
null
null
""" This is a helper script meant to generate a working config.py file from the config template. """ from random import choice import string el = string.ascii_letters + string.digits rand_str = lambda n: ''.join(choice(el) for _ in range(n)) if __name__ == '__main__': generate_config()
39.908108
111
0.629554
""" This is a helper script meant to generate a working config.py file from the config template. """ from getpass import getpass import json import os.path from random import choice import string import sys from urllib2 import urlopen import argparse el = string.ascii_letters + string.digits rand_str = lambda n: ''...
0
0
0
0
0
6,930
0
-22
180
ff3989ef53fcbd5d6a133b5ce43e595a8a5131de
9,683
py
Python
SIX_DOF.py
HarrisonLeece/Circinus
d5934f9d59f6b63635d5d053e48339292394c106
[ "MIT" ]
null
null
null
SIX_DOF.py
HarrisonLeece/Circinus
d5934f9d59f6b63635d5d053e48339292394c106
[ "MIT" ]
null
null
null
SIX_DOF.py
HarrisonLeece/Circinus
d5934f9d59f6b63635d5d053e48339292394c106
[ "MIT" ]
null
null
null
''' @Authors: Harrison Leece, James Hribal, Max Fung, Nils Heidenreich @Purpose: Explore 6DOF rocket trajectory, esspecially quaternion rotation Learning resources: https://eater.net/quaternions ''' import numpy as np import oyaml as yaml ''' The Reference object is a Fixed Earth, centered at 0,0,0 with no rotation ''...
35.996283
115
0.627388
''' @Authors: Harrison Leece, James Hribal, Max Fung, Nils Heidenreich @Purpose: Explore 6DOF rocket trajectory, esspecially quaternion rotation Learning resources: https://eater.net/quaternions ''' import numpy as np import oyaml as yaml import math class Rotator: def __init__(self): self.re = 0; self.i ...
0
0
0
8,709
0
0
0
-10
157
480b454c4f3f99e6503621c21cc4b0ccfce7fa43
1,683
py
Python
warrior/Actions/DevActions/dev_actions.py
pavithra-gowda/warrior
19b153310552b986b86b5470fcfea9547a74c3a9
[ "Apache-2.0" ]
null
null
null
warrior/Actions/DevActions/dev_actions.py
pavithra-gowda/warrior
19b153310552b986b86b5470fcfea9547a74c3a9
[ "Apache-2.0" ]
1
2021-12-13T20:04:13.000Z
2021-12-13T20:04:13.000Z
warrior/Actions/DevActions/dev_actions.py
pavithra-gowda/warrior
19b153310552b986b86b5470fcfea9547a74c3a9
[ "Apache-2.0" ]
null
null
null
import Framework.Utils as Utils
36.586957
101
0.641711
import Framework.Utils as Utils from Framework.Utils import data_utils from Fremework.Utils.testcase_Utils import pNote class MyActions(object): """" Default __init__ field must be used when using classes for keywords """ def __init__(self): self.resultfile = Utils.config_Utils.resultfile s...
0
0
0
1,537
0
0
0
44
67
51104acb8b2c3ea9fc29d8399745835746c384e2
413
py
Python
scripts/avsb/visualize.py
maryprimary/frg
e789439f599eb884a6220ae5b471cf610b0c2b2a
[ "MIT" ]
null
null
null
scripts/avsb/visualize.py
maryprimary/frg
e789439f599eb884a6220ae5b471cf610b0c2b2a
[ "MIT" ]
12
2021-02-04T06:46:36.000Z
2021-07-01T00:43:38.000Z
scripts/avsb/visualize.py
maryprimary/frg
e789439f599eb884a6220ae5b471cf610b0c2b2a
[ "MIT" ]
null
null
null
'''''' import numpy from helpers.drawer import draw_heatmap def main(): '''''' lval = 5.20 rpath = 'heatmap8/avsb' uval = numpy.load('{0}/{1:.2f}U.npy'.format(rpath, lval)) draw_heatmap(uval[0, 0, 0, 0, :, :, 0]) draw_heatmap(uval[1, 1, 1, 1, :, :, 0]) draw_heatmap(uval[1, 0, 0, 1, :, :, 0...
21.736842
61
0.544794
'''显示结果''' import numpy from helpers.drawer import draw_heatmap def main(): '''入口''' lval = 5.20 rpath = 'heatmap8/avsb' uval = numpy.load('{0}/{1:.2f}U.npy'.format(rpath, lval)) draw_heatmap(uval[0, 0, 0, 0, :, :, 0]) draw_heatmap(uval[1, 1, 1, 1, :, :, 0]) draw_heatmap(uval[1, 0, 0, 1, :...
18
0
0
0
0
0
0
0
0
d2c57943c6d4a8aba77f42d9392defc82e3aa234
1,509
py
Python
tests/test_j2sparql.py
vliz-be-opsci/pykg2tbl
0455c5b58a0bde5e3453cd2242e89f7870d49d68
[ "MIT" ]
null
null
null
tests/test_j2sparql.py
vliz-be-opsci/pykg2tbl
0455c5b58a0bde5e3453cd2242e89f7870d49d68
[ "MIT" ]
null
null
null
tests/test_j2sparql.py
vliz-be-opsci/pykg2tbl
0455c5b58a0bde5e3453cd2242e89f7870d49d68
[ "MIT" ]
null
null
null
from util4tests import run_single_test ALL_TRIPLES_SPARQL = "SELECT * WHERE { ?s ?p ?o. } LIMIT 10" BODC_ENDPOINT = "http://vocab.nerc.ac.uk/sparql/sparql" if __name__ == "__main__": run_single_test(__file__)
36.804878
102
0.71173
import unittest import pytest import sys import os from util4tests import enable_test_logging, run_single_test, log from pykg2tbl import KG2TblService, KGFileSource, KG2EndpointSource, J2SparqlBuilder ALL_TRIPLES_SPARQL = "SELECT * WHERE { ?s ?p ?o. } LIMIT 10" BODC_ENDPOINT = "http://vocab.nerc.ac.uk/sparql/sparql"...
0
0
0
1,107
0
0
0
52
134
acc786eefab7f0810d55f87c6a7ce8c231f23c01
18,029
py
Python
tutorials/evoked/30_eeg_erp.py
ts2-lescot/mne-python
e4b16dc57a6a188aa06332b73d911e8131972522
[ "BSD-3-Clause" ]
null
null
null
tutorials/evoked/30_eeg_erp.py
ts2-lescot/mne-python
e4b16dc57a6a188aa06332b73d911e8131972522
[ "BSD-3-Clause" ]
1
2021-04-24T05:21:19.000Z
2021-04-27T07:47:52.000Z
tutorials/evoked/30_eeg_erp.py
ts2-lescot/mne-python
e4b16dc57a6a188aa06332b73d911e8131972522
[ "BSD-3-Clause" ]
1
2021-01-07T23:08:52.000Z
2021-01-07T23:08:52.000Z
""" .. _tut-erp: EEG processing and Event Related Potentials (ERPs) ================================================== This tutorial shows how to perform standard ERP analyses in MNE-Python. Most of the material here is covered in other tutorials too, but for convenience the functions and methods most useful for ERP ...
47.32021
79
0.645349
""" .. _tut-erp: EEG processing and Event Related Potentials (ERPs) ================================================== This tutorial shows how to perform standard ERP analyses in MNE-Python. Most of the material here is covered in other tutorials too, but for convenience the functions and methods most useful for ERP ...
6
0
0
0
0
0
0
0
0
e3bdde5ca15cdab92e7ceb01b1e2eb574d075a1d
164
py
Python
problemsets/Codeforces/Python/A1095.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1095.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1095.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ n,k=int(input()),0 s,x,t='',1,input() while k<n: s+=t[k];k+=x;x+=1 print(s)
16.4
38
0.579268
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ n,k=int(input()),0 s,x,t='',1,input() while k<n: s+=t[k];k+=x;x+=1 print(s)
0
0
0
0
0
0
0
0
0
13523c859982e146b74d5680ca538f2bf774a03e
2,746
py
Python
axonius_api_client/cli/grp_system/grp_central_core/cmd_restore_from_aws_s3.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
axonius_api_client/cli/grp_system/grp_central_core/cmd_restore_from_aws_s3.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
3
2021-05-18T14:28:30.000Z
2021-09-06T20:01:56.000Z
axonius_api_client/cli/grp_system/grp_central_core/cmd_restore_from_aws_s3.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ...context import click from ...options import AUTH KEY_NAME = click.option( "--key-name", "-kn", "key_name", help="Key name of file object in [bucket_name] to restore", required=True, show_envvar=True, show_d...
23.878261
75
0.671158
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ....tools import json_dump from ...context import CONTEXT_SETTINGS, click from ...options import AUTH, add_options KEY_NAME = click.option( "--key-name", "-kn", "key_name", help="Key name of file object in [bucket_name] t...
0
458
0
0
0
0
0
41
45
f20965bf4a26da4bfb598e4cc77e1c9347070578
496
py
Python
algoanim/sorts/yslow.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
algoanim/sorts/yslow.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
algoanim/sorts/yslow.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
SORT_CLASS = YSlowSort
18.37037
40
0.461694
from algoanim.array import Array from algoanim.sort import Sort def yslow(A, l, r): if r - l > 0: if A[r] < A[l]: A[l], A[r] = A[r], A[l] m = (r - l + 1) // 2 for _ in [0, 1]: A = yslow(A, l, r-m) A = yslow(A, l + m, r) A = yslow(A, l + 1, r...
0
0
0
107
0
252
0
20
90
5e317ecf395a2349de6f2351a075fe488ace4261
22,311
py
Python
tests/test_parser.py
shaljam/streaming-form-data
65f764fe521c38db681c3ef384d6b998496df79b
[ "MIT" ]
null
null
null
tests/test_parser.py
shaljam/streaming-form-data
65f764fe521c38db681c3ef384d6b998496df79b
[ "MIT" ]
null
null
null
tests/test_parser.py
shaljam/streaming-form-data
65f764fe521c38db681c3ef384d6b998496df79b
[ "MIT" ]
1
2020-10-13T03:21:46.000Z
2020-10-13T03:21:46.000Z
# The following tests have been added from tornado's # MultipartFormDataTestCase # https://github.com/tornadoweb/tornado/blob/master/tornado/test/httputil_test.py
23.836538
81
0.640626
from contextlib import contextmanager from io import BytesIO import hashlib from numpy import random import pytest from requests_toolbelt import MultipartEncoder from streaming_form_data import ParseFailedException, StreamingFormDataParser from streaming_form_data.targets import ( BaseTarget, FileTarget, ...
0
142
0
77
0
20,513
0
230
1,143
6a4411330754e041753c15c87e2436746005b50d
1,998
py
Python
oshi/lme.py
netgroup/Dreamer-Management-Scripts
11fe627ff2fb601f0b1c41c42ae4a6f8a9f5cb21
[ "Apache-2.0" ]
null
null
null
oshi/lme.py
netgroup/Dreamer-Management-Scripts
11fe627ff2fb601f0b1c41c42ae4a6f8a9f5cb21
[ "Apache-2.0" ]
null
null
null
oshi/lme.py
netgroup/Dreamer-Management-Scripts
11fe627ff2fb601f0b1c41c42ae4a6f8a9f5cb21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python if __name__ == '__main__': push_rules()
25.615385
108
0.683183
#!/usr/bin/python import re import sys import os from subprocess import Popen,PIPE def get_if_index(in_if_name): output = Popen(['ovs-vsctl find Interface name=%s' % in_if_name], shell=True, stdout=PIPE).communicate()[0] if output != None and output != "" : return re.search( r'ofport(.*): (\d*)', output).group(2...
0
0
0
0
0
1,764
0
-23
181
f2d19c9aaacf2f6a53e0a55c017ae4dcf96f3238
3,034
py
Python
taxon/backends/memory.py
jdp/taxon
822ac9c92d3aa57484e328c99a5af8a8002991d6
[ "MIT" ]
7
2015-01-10T07:25:24.000Z
2018-05-04T17:47:42.000Z
taxon/backends/memory.py
jdp/taxon
822ac9c92d3aa57484e328c99a5af8a8002991d6
[ "MIT" ]
null
null
null
taxon/backends/memory.py
jdp/taxon
822ac9c92d3aa57484e328c99a5af8a8002991d6
[ "MIT" ]
null
null
null
try: from collections import Counter except ImportError:
31.604167
86
0.542518
import operator try: from collections import Counter except ImportError: from ._counter import Counter from .backend import Backend from ..query import Query class MemoryBackend(Backend): def __init__(self): self.empty() def tag_items(self, tag, *items): if tag not in self.tags: ...
0
0
0
2,843
0
0
0
13
116
0ac474e1e7533b08c8837044f8fe017e777d82e6
364
py
Python
experiment_data_and_analysis/AccuracyAnalysis/mayavi_example.py
JakeFountain/Spooky
e0a2d4ea878467d6bc7f385220f29c85fd65a190
[ "Apache-2.0" ]
null
null
null
experiment_data_and_analysis/AccuracyAnalysis/mayavi_example.py
JakeFountain/Spooky
e0a2d4ea878467d6bc7f385220f29c85fd65a190
[ "Apache-2.0" ]
null
null
null
experiment_data_and_analysis/AccuracyAnalysis/mayavi_example.py
JakeFountain/Spooky
e0a2d4ea878467d6bc7f385220f29c85fd65a190
[ "Apache-2.0" ]
2
2019-03-12T02:06:32.000Z
2019-05-12T15:29:41.000Z
from mayavi import mlab n_mer, n_long = 6, 11 dphi = np.pi / 1000.0 phi = np.arange(0.0, 2 * pi + 0.5 * dphi, dphi) mu = phi * n_mer x = np.cos(mu) * (1 + np.cos(n_long * mu / n_mer) * 0.5) y = np.sin(mu) * (1 + np.cos(n_long * mu / n_mer) * 0.5) z = np.sin(n_long * mu / n_mer) * 0.5 t = np.sin(mu) mlab.plot3d(x, y, z...
33.090909
63
0.590659
from mayavi import mlab n_mer, n_long = 6, 11 dphi = np.pi / 1000.0 phi = np.arange(0.0, 2 * pi + 0.5 * dphi, dphi) mu = phi * n_mer x = np.cos(mu) * (1 + np.cos(n_long * mu / n_mer) * 0.5) y = np.sin(mu) * (1 + np.cos(n_long * mu / n_mer) * 0.5) z = np.sin(n_long * mu / n_mer) * 0.5 t = np.sin(mu) mlab.plot3d(x, y, z...
0
0
0
0
0
0
0
0
0
1274f1dac29488da85dd79cccab14802e253602b
689
py
Python
src/absolute_uri.py
nigma/djutil
85b7c21acbcd4d3e8cef4246cdb5049cbede8748
[ "MIT" ]
1
2015-04-16T14:43:25.000Z
2015-04-16T14:43:25.000Z
src/absolute_uri.py
nigma/djutil
85b7c21acbcd4d3e8cef4246cdb5049cbede8748
[ "MIT" ]
null
null
null
src/absolute_uri.py
nigma/djutil
85b7c21acbcd4d3e8cef4246cdb5049cbede8748
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from __future__ import unicode_literals try: from urlparse import urljoin except ImportError:
27.56
66
0.718433
#-*- coding: utf-8 -*- from __future__ import unicode_literals try: from urlparse import urljoin except ImportError: from urllib.parse import urljoin from django.contrib.sites.models import get_current_site def add_domain(path, domain, secure=False): if path.startswith("http://") or path.startswith("ht...
0
0
0
0
0
423
0
46
95
f8369411bcf3950b58aef28e018e3ef6c0a4a4f1
367
py
Python
revolver/group.py
michaelcontento/revolver
bbae82df0804ff2708a82fd0016b776664ee2deb
[ "Apache-2.0" ]
1
2015-05-16T17:55:26.000Z
2015-05-16T17:55:26.000Z
revolver/group.py
michaelcontento/revolver
bbae82df0804ff2708a82fd0016b776664ee2deb
[ "Apache-2.0" ]
null
null
null
revolver/group.py
michaelcontento/revolver
bbae82df0804ff2708a82fd0016b776664ee2deb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, with_statement
33.363636
64
0.836512
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, with_statement from cuisine import group_check as get from cuisine import group_create as create from cuisine import group_ensure as ensure from cuisine import group_user_add as user_add from cuisine import group_user_check as user_check from c...
0
0
0
0
0
0
0
144
133
29951beb8b1b68a35ede1131be3ff6ad070a45f5
3,777
py
Python
evaluation/consuming_service_generator.py
Peniac/NSE-CSC
7bb313b59f3b92c1349b03bc11e8fb17512e1518
[ "Apache-2.0" ]
null
null
null
evaluation/consuming_service_generator.py
Peniac/NSE-CSC
7bb313b59f3b92c1349b03bc11e8fb17512e1518
[ "Apache-2.0" ]
null
null
null
evaluation/consuming_service_generator.py
Peniac/NSE-CSC
7bb313b59f3b92c1349b03bc11e8fb17512e1518
[ "Apache-2.0" ]
null
null
null
''' Definitions 1. consuming service: is a network service that requires the consumption of additional VNF(s) that pertain to a different service, i.e., providing services. 2. CSC engaged VNFs (w.r.t. the consuming service): are exactly two distinct VNFs. One VNF forwards the traffic to the receiver CSC engaged ...
53.197183
278
0.735769
''' Definitions 1. consuming service: is a network service that requires the consumption of additional VNF(s) that pertain to a different service, i.e., providing services. 2. CSC engaged VNFs (w.r.t. the consuming service): are exactly two distinct VNFs. One VNF forwards the traffic to the receiver CSC engaged ...
0
0
0
0
0
0
0
0
0
553ba126daefa4225f49cd1ed880ebdf7092f4f9
428
py
Python
quickstart/models.py
gladsonvm/drf-nested
e53cfa116c76ce573207401035edfac6a46cd1be
[ "MIT" ]
null
null
null
quickstart/models.py
gladsonvm/drf-nested
e53cfa116c76ce573207401035edfac6a46cd1be
[ "MIT" ]
null
null
null
quickstart/models.py
gladsonvm/drf-nested
e53cfa116c76ce573207401035edfac6a46cd1be
[ "MIT" ]
null
null
null
# Create your models here.
25.176471
70
0.752336
from django.db import models from django.contrib.auth.models import User # Create your models here. class UserProfile(models.Model): add_info = models.CharField(null=True, blank=True, max_length=100) user = models.OneToOneField(User) class nestedmodel(models.Model): info = models.CharField(null=True, bl...
0
0
0
278
0
0
0
29
90
f2c87a50078598a9e64acc7a01d1bb775a171f62
3,915
py
Python
check_backup_age.py
martialblog/check_backup_age
1203a458be6f27ed30fcdb49b1f8c8a80a695782
[ "MIT" ]
null
null
null
check_backup_age.py
martialblog/check_backup_age
1203a458be6f27ed30fcdb49b1f8c8a80a695782
[ "MIT" ]
null
null
null
check_backup_age.py
martialblog/check_backup_age
1203a458be6f27ed30fcdb49b1f8c8a80a695782
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import argparse import re import datetime import subprocess def commandline(args): """ Settings for the commandline arguments. Returns the parsed arguments. """ parser = argparse.ArgumentParser(description='Checks the timestamps for files in a direct...
25.422078
123
0.603831
#!/usr/bin/env python3 import sys import os import argparse import re import datetime import subprocess class EXIT(): """ Exit codes from: https://docs.icinga.com/latest/en/pluginapi.html """ OK = 0 WARN = 1 CRIT = 2 UNKOWN = 3 def commandline(args): """ Settings for the c...
0
0
0
135
0
228
0
0
46
5e8f943f19843c86705229924cd80deefbcb73fd
2,170
py
Python
ooobuild/lo/xml/sax/x_fast_token_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_token_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_token_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
40.185185
208
0.731336
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
0
335
0
926
0
0
0
44
89
a94350db177c24901064b6f7d2929cd25fa5ae9d
3,981
py
Python
apps/users/managers.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-06-16T01:52:47.000Z
2021-03-24T08:34:23.000Z
apps/users/managers.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-02-12T03:09:54.000Z
2020-06-05T22:47:17.000Z
apps/users/managers.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
null
null
null
#coding=utf-8 # # Created on Mar 21, 2014, by Junn # # VALID_ATTRS = ('nickname', 'email', 'phone', 'gender', 'avatar')
32.900826
107
0.542828
#coding=utf-8 # # Created on Mar 21, 2014, by Junn # # from django.contrib.auth.models import BaseUserManager from django.utils import timezone from utils import eggs, logs, http from django.core.cache import cache VALID_ATTRS = ('nickname', 'email', 'phone', 'gender', 'avatar') def mk_key(id): return 'u%s' % i...
399
0
0
3,476
0
16
0
72
139
9c6838ed116deb3a2770d9b6ad5a6c062dbeb8a7
430
py
Python
Python/WebCam GUI Filters/Gray.py
abhijeet007rocks8/Useful-Scripts
2c8bd8c1cca4960c2333806194af7341497269e1
[ "MIT" ]
32
2021-10-02T07:30:48.000Z
2022-03-20T13:43:32.000Z
Python/WebCam GUI Filters/Gray.py
abhijeet007rocks8/Useful-Scripts
2c8bd8c1cca4960c2333806194af7341497269e1
[ "MIT" ]
170
2021-10-02T07:13:00.000Z
2022-03-31T20:40:51.000Z
Python/WebCam GUI Filters/Gray.py
abhijeet007rocks8/Useful-Scripts
2c8bd8c1cca4960c2333806194af7341497269e1
[ "MIT" ]
69
2021-10-02T07:30:53.000Z
2022-03-30T08:25:54.000Z
import cv2 cap = cv2.VideoCapture(0) ret, frame = cap. read () while (True): ret, frame = cap. read () frame = cv2.flip(frame,1) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('Gray Filter', gray) if cv2.waitKey(10) & 0xFF==ord('q'): break if cv2.waitKey(10) & 0xFF==ord('s'):...
25.294118
50
0.64186
import cv2 import numpy as np import mediapipe as mp cap = cv2.VideoCapture(0) ret, frame = cap. read () while (True): ret, frame = cap. read () frame = cv2.flip(frame,1) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('Gray Filter', gray) if cv2.waitKey(10) & 0xFF==ord('q'): brea...
0
0
0
0
0
0
0
-4
74
97bbb23607a0663fc7bb7eb63651800524c61af0
778
py
Python
setup.py
JanStgmnn/meta-labs-python
a05caba7e5eb0630b304e2aedf5d4a4aa3036f44
[ "MIT" ]
1
2021-05-24T19:02:08.000Z
2021-05-24T19:02:08.000Z
setup.py
JanStgmnn/meta-labs-python
a05caba7e5eb0630b304e2aedf5d4a4aa3036f44
[ "MIT" ]
null
null
null
setup.py
JanStgmnn/meta-labs-python
a05caba7e5eb0630b304e2aedf5d4a4aa3036f44
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="metalabs_sdk", # Replace with your own username version="0.1.1", author="Jeffrey Annaraj", author_email="jannaraj@baffled.dev", description="SDK for MetaLabs AP...
32.416667
58
0.650386
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="metalabs_sdk", # Replace with your own username version="0.1.1", author="Jeffrey Annaraj", author_email="jannaraj@baffled.dev", description="SDK for MetaLabs AP...
0
0
0
0
0
0
0
0
0
ed85d29525ec40eeaef723354135ec53e29dbcf5
1,415
py
Python
azure-mgmt-web/azure/mgmt/web/models/file_system_application_logs_config.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-web/azure/mgmt/web/models/file_system_application_logs_config.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-web/azure/mgmt/web/models/file_system_application_logs_config.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and 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 ...
35.375
76
0.640989
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and 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 ...
0
0
0
427
0
0
0
17
46
b82ef50205094d9997859ea3617022b4bad7350f
63
py
Python
__init__.py
DavidJRobertson/kicad_scripts
4fbc687033260ea6ec919717e0d37ca0d7a9cf37
[ "BSD-3-Clause" ]
368
2016-07-27T06:42:36.000Z
2022-03-31T23:11:25.000Z
__init__.py
mehmetcanbudak/kicad_scripts
7a874fd59d6162636062032e4d2c66b205b52fbe
[ "BSD-3-Clause" ]
37
2017-06-01T08:15:20.000Z
2022-02-19T17:51:34.000Z
__init__.py
mehmetcanbudak/kicad_scripts
7a874fd59d6162636062032e4d2c66b205b52fbe
[ "BSD-3-Clause" ]
114
2017-01-05T05:08:16.000Z
2022-03-28T06:03:15.000Z
from __future__ import absolute_import
21
38
0.857143
from __future__ import absolute_import from . import teardrops
0
0
0
0
0
0
0
2
22
45e2397e2dec44f82a2719f8b237ca83b5d8a294
17,416
py
Python
examples/task_seq2seq_autotitle.py
sijunx/bert4keras
eb2d7a5ccdf89d724a0e62d55a5292faaf01f395
[ "Apache-2.0" ]
null
null
null
examples/task_seq2seq_autotitle.py
sijunx/bert4keras
eb2d7a5ccdf89d724a0e62d55a5292faaf01f395
[ "Apache-2.0" ]
null
null
null
examples/task_seq2seq_autotitle.py
sijunx/bert4keras
eb2d7a5ccdf89d724a0e62d55a5292faaf01f395
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- # bertSeq2SeqUNILM # https://kexue.fm/archives/6933 from __future__ import print_function import glob from bert4keras.backend import K from bert4keras.models import build_transformer_model, tf from bert4keras.tokenizers import Tokenizer, load_vocab from bert4keras.optimizers import Adam from ...
44.65641
1,517
0.676906
#! -*- coding: utf-8 -*- # bert做Seq2Seq任务,采用UNILM方案 # 介绍链接:https://kexue.fm/archives/6933 from __future__ import print_function import glob import os import numpy as np import sys from bert4keras.backend import keras, K from bert4keras.layers import Loss from bert4keras.models import build_transformer_model, tf from...
9,033
1,718
0
3,210
0
4,487
0
129
407
792aa9f0d16f371e267c4f2fcb7bdd16c329c1d1
706
py
Python
solutions/791/791-yongjoonseo.py
iknoom/LeetCode-Solutions
85c034dfaf1455bcd69c19a2009197934d83f08e
[ "MIT" ]
4
2021-01-13T11:37:57.000Z
2021-01-17T04:56:46.000Z
solutions/791/791-yongjoonseo.py
iknoom/LeetCode-Solutions
85c034dfaf1455bcd69c19a2009197934d83f08e
[ "MIT" ]
9
2021-01-21T11:16:29.000Z
2021-02-23T14:27:00.000Z
solutions/791/791-yongjoonseo.py
iknoom/LeetCode-Solutions
85c034dfaf1455bcd69c19a2009197934d83f08e
[ "MIT" ]
14
2021-01-14T14:36:07.000Z
2021-02-05T09:17:10.000Z
# check # lowercase letters # count all the letters of T which S contains # save indices of letters in T
27.153846
54
0.447592
# check # lowercase letters # count all the letters of T which S contains # save indices of letters in T class Solution: def customSortString(self, S: str, T: str) -> str: result = [0] * len(T) indices = [] counts = dict() for i in range(len(T)): if T[i] in S: ...
0
0
0
578
0
0
0
0
23
0773b38a64aebeeea57ebbff37f79409955ec330
2,699
py
Python
hata/ext/rpc/utils.py
albertopoljak/hata
96d0b3182eb4f5291eaf36bd23d521787c6b01f1
[ "0BSD" ]
null
null
null
hata/ext/rpc/utils.py
albertopoljak/hata
96d0b3182eb4f5291eaf36bd23d521787c6b01f1
[ "0BSD" ]
null
null
null
hata/ext/rpc/utils.py
albertopoljak/hata
96d0b3182eb4f5291eaf36bd23d521787c6b01f1
[ "0BSD" ]
1
2020-09-17T20:10:15.000Z
2020-09-17T20:10:15.000Z
__all__ = () from sys import platform as PLATFORM from os.path import join as join_paths from os import listdir as list_directory, environ as ENVIRONMENTAL_VARIABLES from tempfile import gettempdir as get_temporary_directory from scarletio import set_docs from .constants import PAYLOAD_KEY_EVENT, EVENT_ERROR, PAYLOA...
27.824742
79
0.614672
__all__ = () from sys import platform as PLATFORM from os.path import join as join_paths from os import listdir as list_directory, environ as ENVIRONMENTAL_VARIABLES from tempfile import gettempdir as get_temporary_directory from scarletio import set_docs from .constants import PAYLOAD_KEY_EVENT, EVENT_ERROR, PAYLOA...
0
0
0
0
0
748
0
-1
88
ce80efef261b5805f2ccac2cfca1a8c03c9fd576
31,202
py
Python
cdam_convert_twine.py
jerrytron/twine-story-export
72574627969e8fd79ad246b7532874f223e2c88f
[ "MIT" ]
2
2017-08-26T12:25:31.000Z
2021-06-01T19:35:25.000Z
cdam_convert_twine.py
jerrytron/twine-story-export
72574627969e8fd79ad246b7532874f223e2c88f
[ "MIT" ]
null
null
null
cdam_convert_twine.py
jerrytron/twine-story-export
72574627969e8fd79ad246b7532874f223e2c88f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding=utf8 import sys import pprint import importlib importlib.reload(sys) # sys.setdefaultencoding('utf8') VERSION = "1.0" BINARY_VER = "1.0.5" # For holding binary variable keys and values. VARIABLES = {} FLAGS = {} TITLE_MAP = {} STORY_MAP = {} PASSAGES = {} STORY_TITLE = "" STORY_AUTH...
34.325633
196
0.56538
#!/usr/bin/env python # encoding=utf8 import os import re import sys import struct import pprint import random import argparse import datetime import tiddlywiki as tiddly import cdam_gen_files as gen import importlib import bitarray importlib.reload(sys) # sys.setdefaultencoding('utf8') VERSION = "1.0" BINARY_VER =...
0
0
0
204
0
29,750
0
-45
544
757f80125b8c8f5468871f3caa0abaecb1d48b89
3,847
py
Python
autolab_core/primitives.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
23
2021-04-02T09:02:04.000Z
2022-03-22T05:31:03.000Z
autolab_core/primitives.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
35
2021-04-12T09:41:05.000Z
2022-03-26T13:32:46.000Z
autolab_core/primitives.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
16
2021-03-30T11:55:45.000Z
2022-03-30T07:10:59.000Z
""" Common geometric primitives. Author: Jeff Mahler """
26.531034
86
0.570315
""" Common geometric primitives. Author: Jeff Mahler """ import numpy as np class Box(object): """A 2D box or 3D rectangular prism. Attributes ---------- dims : :obj:`numpy.ndarray` of float Maximal extent in x, y, and (optionally) z. width : float Maximal extent in x. height...
0
1,230
0
2,494
0
0
0
-3
68
7f796b84e36ede142a0744e292e9d72736a1a043
1,984
py
Python
3.7.0/lldb-3.7.0.src/test/functionalities/plugins/commands/TestPluginCommands.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/test/functionalities/plugins/commands/TestPluginCommands.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/test/functionalities/plugins/commands/TestPluginCommands.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
""" Test that plugins that load commands work correctly. """ import unittest2 import lldb if __name__ == '__main__': import atexit lldb.SBDebugger.Initialize() atexit.register(lambda: lldb.SBDebugger.Terminate()) unittest2.main()
29.176471
122
0.673387
""" Test that plugins that load commands work correctly. """ import os, time import re import unittest2 import lldb from lldbtest import * import lldbutil class PluginCommandTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def setUp(self): # Call super's setUp(). TestBase.setUp(s...
0
1,368
0
279
0
0
0
-23
112
d32e2039cde94b64ddb6c5940d4f74d989163e2b
1,923
py
Python
ros2/code_map_localization/code_map_localization/webcam.py
wzli/CodeMapLocalization
613c021cccbcb4c0f1d42252a9bcb6396b230bea
[ "MIT" ]
2
2020-07-12T16:02:20.000Z
2020-09-06T14:08:43.000Z
ros2/code_map_localization/code_map_localization/webcam.py
wzli/CodeMapLocalization
613c021cccbcb4c0f1d42252a9bcb6396b230bea
[ "MIT" ]
null
null
null
ros2/code_map_localization/code_map_localization/webcam.py
wzli/CodeMapLocalization
613c021cccbcb4c0f1d42252a9bcb6396b230bea
[ "MIT" ]
null
null
null
import ctypes libcodemap = ctypes.cdll.LoadLibrary('libcodemap.so') if __name__ == '__main__': main()
36.283019
78
0.702028
import rclpy from rclpy.node import Node from geometry_msgs.msg import PoseStamped from code_map_localization_msgs.msg import Localization from .convert_message import convert_to_ros_msgs from codemap.webcam import WebCamLocalization import ctypes import time libcodemap = ctypes.cdll.LoadLibrary('libcodemap.so') cla...
0
0
0
1,435
0
85
0
92
200
437e22c8435e0564c4897390e72feb8a3af89a11
1,191
py
Python
arhuaco/sensors/source/log_metrics.py
kuronosec/arhuaco
6eec1691dd03b2e3726ae8c2101588b45d58b6d7
[ "Apache-2.0" ]
1
2020-08-08T02:17:34.000Z
2020-08-08T02:17:34.000Z
arhuaco/sensors/source/log_metrics.py
kuronosec/arhuaco
6eec1691dd03b2e3726ae8c2101588b45d58b6d7
[ "Apache-2.0" ]
null
null
null
arhuaco/sensors/source/log_metrics.py
kuronosec/arhuaco
6eec1691dd03b2e3726ae8c2101588b45d58b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Andres Gomez Ramirez. # All Rights Reserved. import time
29.775
68
0.598657
# Copyright (c) 2019 Andres Gomez Ramirez. # All Rights Reserved. import sys import time import subprocess import logging import os.path import time from arhuaco.sensors.source.source import Source class LogMetrics(Source): def __init__(self, dataPath): # Initialize entities super(LogMetrics, se...
0
0
0
968
0
0
0
-12
157
c5ccd7c06343a21e1742dea0fdd5652c02cb7257
4,685
py
Python
__init__.py
in4lio/yupp
38d4002d2f07c31940b2be572a1c205d6bf63546
[ "MIT" ]
44
2015-09-15T17:14:05.000Z
2021-08-22T10:35:05.000Z
__init__.py
in4lio/yupp
38d4002d2f07c31940b2be572a1c205d6bf63546
[ "MIT" ]
null
null
null
__init__.py
in4lio/yupp
38d4002d2f07c31940b2be572a1c205d6bf63546
[ "MIT" ]
1
2015-09-22T22:27:28.000Z
2015-09-22T22:27:28.000Z
r""" http://github.com/in4lio/yupp/ __ __ _____ _____ /\ \ /\ \ /\ _ \ _ \ \ \ \_\/ \_\/ \_\ \ \_\ \ \ \__ /\____/\ __/\ __/ \/_/\_\/___/\ \_\/\ \_\/ \/_/ \/_/ \/_/ Python 'yupp' Codec Support """ from __future__ import absolute_import from __future__ import division from __future__ im...
29.099379
85
0.522519
r""" http://github.com/in4lio/yupp/ __ __ _____ _____ /\ \ /\ \ /\ _ \ _ \ \ \ \_\/ \_\/ \_\ \ \_\ \ \ \__ /\____/\ __/\ __/ \/_/\_\/___/\ \_\/\ \_\/ \/_/ \/_/ \/_/ Python 'yupp' Codec Support """ from __future__ import absolute_import from __future__ import division from __future__ im...
0
0
0
542
0
2,182
0
49
199
6f4fefcc76d7ffae881a56693f6ae63af3836838
1,430
py
Python
rtmplib/packet.py
genba2/pinybotbeta-enhanced
564ae7c363ee00ad2ae0e05d74e08e58de3d1d2f
[ "MIT" ]
null
null
null
rtmplib/packet.py
genba2/pinybotbeta-enhanced
564ae7c363ee00ad2ae0e05d74e08e58de3d1d2f
[ "MIT" ]
null
null
null
rtmplib/packet.py
genba2/pinybotbeta-enhanced
564ae7c363ee00ad2ae0e05d74e08e58de3d1d2f
[ "MIT" ]
null
null
null
HANDSHAKE_LENGTH = 1536
26.481481
78
0.633566
import time HANDSHAKE_LENGTH = 1536 class Handshake(object): """ A handshake packet. @ivar first: The first 4 bytes of the packet, represented as an unsigned long. @type first: 32bit unsigned int. @ivar second: The second 4 bytes of the packet, represented as an unsigned long. ...
0
0
0
1,368
0
0
0
-10
45
433a9cc460319ac1dc362de667e3e4fbb75f3448
1,052
py
Python
kits/python/mediocre/main.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
kits/python/mediocre/main.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
kits/python/mediocre/main.py
ppinchuk/Lux-Design-2021
8a04ad48c6749cafc9aca986f14e75daaa31c789
[ "Apache-2.0" ]
null
null
null
from mediocre_agent import agent if __name__ == "__main__": def read_input(): """ Reads input from stdin """ try: return input() except EOFError as eof: raise SystemExit(eof) step = 0 observation = Observation() observation["updates"] ...
26.974359
54
0.521863
from typing import Dict import sys from mediocre_agent import agent if __name__ == "__main__": def read_input(): """ Reads input from stdin """ try: return input() except EOFError as eof: raise SystemExit(eof) step = 0 class Observation(D...
0
0
0
152
0
0
0
-9
71
c262beba650fdb2c95f431d3157ae61c710ef51a
324
py
Python
config/wsgi.py
drixselecta/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
7
2018-03-10T20:58:59.000Z
2021-08-22T17:18:09.000Z
config/wsgi.py
HomebyTwo/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
69
2017-02-01T21:15:43.000Z
2022-02-26T09:33:27.000Z
config/wsgi.py
drixselecta/homebytwo
29d26ce9f5586943e3b64c95aa4ce9ea7263bd10
[ "MIT" ]
null
null
null
from os import environ from pathlib import Path from django.core.wsgi import get_wsgi_application from config import get_project_root_path, import_env_vars import_env_vars(Path(get_project_root_path(), "envdir")) environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.base") application = get_wsgi_applicatio...
24.923077
68
0.833333
from os import environ from pathlib import Path from django.core.wsgi import get_wsgi_application from config import get_project_root_path, import_env_vars import_env_vars(Path(get_project_root_path(), "envdir")) environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.base") application = get_wsgi_applicatio...
0
0
0
0
0
0
0
0
0
592da9c69b2699031221663c32e6918ce48f5588
18
py
Python
acmicpc/15733/15733.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/15733/15733.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/15733/15733.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
print("I'm Sexy")
9
17
0.611111
print("I'm Sexy")
0
0
0
0
0
0
0
0
0
1f5d038875e16e0fe3a4bf4b7a051aa57494670c
1,343
py
Python
run_init_images.py
alchem0x2A/paper.ZnVO
b36839ee52867c6892177b6152daa7a5b4fd4109
[ "MIT" ]
null
null
null
run_init_images.py
alchem0x2A/paper.ZnVO
b36839ee52867c6892177b6152daa7a5b4fd4109
[ "MIT" ]
null
null
null
run_init_images.py
alchem0x2A/paper.ZnVO
b36839ee52867c6892177b6152daa7a5b4fd4109
[ "MIT" ]
null
null
null
import sys import os, os.path # May need this for the path issue for gpaw-python sys.path.append(os.path.dirname(os.path.abspath(__file__))) # Name=Zn, Co if __name__ == "__main__": assert len(sys.argv) == 3 mater = sys.argv[1] imag = sys.argv[2] main(name=mater, imag=imag)
27.979167
81
0.613552
import sys import os, os.path # May need this for the path issue for gpaw-python sys.path.append(os.path.dirname(os.path.abspath(__file__))) from src.structure import get_structure from src.supercell import make_super, add_adatom from src.neb import neb, calc_img import shutil from ase.parallel import paropen, parprint...
0
0
0
0
0
791
0
103
154
9d8dfad20f0cd219f29ef974ce7e0abe3aeec538
959
py
Python
360agent/plugins/gpu.py
vfuse/360agent
947e5ffe6a9e2ef22665f4b2b98c882e698fb201
[ "BSD-3-Clause" ]
88
2017-01-26T14:26:37.000Z
2021-12-31T17:07:03.000Z
360agent/plugins/gpu.py
vfuse/360agent
947e5ffe6a9e2ef22665f4b2b98c882e698fb201
[ "BSD-3-Clause" ]
26
2016-12-27T12:28:16.000Z
2022-02-24T08:11:45.000Z
360agent/plugins/gpu.py
vfuse/360agent
947e5ffe6a9e2ef22665f4b2b98c882e698fb201
[ "BSD-3-Clause" ]
28
2017-04-11T08:40:00.000Z
2021-10-05T06:43:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': Plugin().execute()
28.205882
87
0.535975
#!/usr/bin/env python # -*- coding: utf-8 -*- import plugins import sys class Plugin(plugins.BasePlugin): __name__ = 'gpu' def run(self, *unused): ''' expirimental plugin used to collect GPU load from OpenHardWareMonitor (Windows) ''' data = {} if sys.platform == "win3...
0
0
0
812
0
0
0
-18
67
904a75d44462d0b84d10192273337b4d499672b8
1,366
py
Python
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
""" Represents a PaymentChannelFund transaction on the XRP Ledger. A PaymentChannelFund transaction adds additional XRP to an open payment channel, and optionally updates the expiration time of the channel. Only the source address of the channel can use this transaction. `See PaymentChannelFund <https://xrpl.org/payme...
35.947368
86
0.770864
""" Represents a PaymentChannelFund transaction on the XRP Ledger. A PaymentChannelFund transaction adds additional XRP to an open payment channel, and optionally updates the expiration time of the channel. Only the source address of the channel can use this transaction. `See PaymentChannelFund <https://xrpl.org/payme...
0
753
0
0
0
0
0
132
134
65b2babb163c94ccd29863798b7089a565f8bf1e
13,980
py
Python
nlcpy/ufuncs/operations.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
nlcpy/ufuncs/operations.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
nlcpy/ufuncs/operations.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is developed independently by NEC Corporation. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
20
88
0.722318
# # * The source code in this file is developed independently by NEC Corporation. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
0
0
0
0
0
0
0
0
0
91c4421633a0ddab2d35d03049dc7a5c7c016161
503
py
Python
Algorithm - BOJ/Greedy/9009.py
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
2
2021-08-30T12:37:57.000Z
2021-11-29T05:42:05.000Z
Algorithm - BOJ/Greedy/9009.py
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
null
null
null
Algorithm - BOJ/Greedy/9009.py
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline T = int(input()) fb = [0 for _ in range(50)] fb[0], fb[1] = 1,1 for i in range(2,50): fb[i] = fb[i-1]+fb[i-2] for _ in range(T): N = int(input()) L = [] while N: for i in range(50): if fb[i]>N: L.append(fb[i-1]) N-=...
20.958333
45
0.409543
import sys input = sys.stdin.readline T = int(input()) fb = [0 for _ in range(50)] fb[0], fb[1] = 1,1 for i in range(2,50): fb[i] = fb[i-1]+fb[i-2] for _ in range(T): N = int(input()) L = [] while N: for i in range(50): if fb[i]>N: L.append(fb[i-1]) N-=...
0
0
0
0
0
0
0
0
0
b293cc0e890762ffd29d2a3f9b67a7d12e79d9a6
2,335
py
Python
pyxel/packager.py
JUNE-9653/pyxel
2d0c828757ea0183cfca526f78d0d72ae4b76753
[ "MIT" ]
1
2019-08-19T11:43:12.000Z
2019-08-19T11:43:12.000Z
pyxel/packager.py
JUNE-9653/pyxel
2d0c828757ea0183cfca526f78d0d72ae4b76753
[ "MIT" ]
null
null
null
pyxel/packager.py
JUNE-9653/pyxel
2d0c828757ea0183cfca526f78d0d72ae4b76753
[ "MIT" ]
null
null
null
if __name__ == "__main__": run()
26.83908
76
0.572591
import glob import os import platform import shutil import sys import pyxel def run(): arg = sys.argv[1] if len(sys.argv) >= 2 else "" name = "" if not arg or arg.startswith("-"): if arg == "-v" or arg == "--version": print("Pyxel Packager {}".format(pyxel.VERSION)) retur...
0
0
0
0
0
2,171
0
-56
179
3183e10ae3187fd9fc4435ab27745eddc0c1ddac
8,584
py
Python
falcon_heavy/core/types/primitive.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
21
2020-01-02T10:44:42.000Z
2022-02-11T14:27:05.000Z
falcon_heavy/core/types/primitive.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
2
2020-02-13T21:06:56.000Z
2020-09-27T16:47:25.000Z
falcon_heavy/core/types/primitive.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 Not Just A Toy Corp. # # 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...
32.270677
112
0.632339
# Copyright 2019-2020 Not Just A Toy Corp. # # 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...
0
0
0
7,388
0
0
0
124
249
5315b05e1aaa46313b3adc7b163dea8a2e872737
280
py
Python
dashboard/modules/test/test_utils.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
dashboard/modules/test/test_utils.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
dashboard/modules/test/test_utils.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import logging logger = logging.getLogger(__name__)
23.333333
58
0.746429
import logging import async_timeout logger = logging.getLogger(__name__) async def http_get(http_session, url, timeout_seconds=60): with async_timeout.timeout(timeout_seconds): async with http_session.get(url) as response: return await response.json()
0
0
181
0
0
0
0
-1
46
8148a4a8c9845dde838c0081397b352d71916831
350
py
Python
portal/migrations/versions/1e09e871fb65_.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/migrations/versions/1e09e871fb65_.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/migrations/versions/1e09e871fb65_.py
uwcirg/truenth-portal
459a0d157982f010175c50b9cccd860a61790370
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""empty message Revision ID: 1e09e871fb65 Revises: ('0b4e7a8a7e64', '0701782c564d') Create Date: 2019-03-28 23:08:21.960495 """ # revision identifiers, used by Alembic. revision = '1e09e871fb65' down_revision = ('0b4e7a8a7e64', '0701782c564d')
15.217391
48
0.722857
from alembic import op import sqlalchemy as sa """empty message Revision ID: 1e09e871fb65 Revises: ('0b4e7a8a7e64', '0701782c564d') Create Date: 2019-03-28 23:08:21.960495 """ # revision identifiers, used by Alembic. revision = '1e09e871fb65' down_revision = ('0b4e7a8a7e64', '0701782c564d') def upgrade(): pas...
0
0
0
0
0
6
0
3
90
47d37e709d0ad25a0178922ce88835efb815d534
208
py
Python
tests/classes/cellphone_name.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
50
2021-08-18T08:08:04.000Z
2022-03-20T07:23:26.000Z
tests/classes/cellphone_name.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
1
2021-11-23T02:12:29.000Z
2021-11-23T13:35:26.000Z
tests/classes/cellphone_name.py
Jesse-Yung/jsonclasses
d40c52aec42bcb978a80ceb98b93ab38134dc790
[ "MIT" ]
8
2021-07-01T02:39:15.000Z
2021-12-10T02:20:18.000Z
from __future__ import annotations
20.8
50
0.793269
from __future__ import annotations from jsonclasses import jsonclass, types @jsonclass class CellphoneName: cellphone_name: str = types.str.tocap.required cellphone_title: str = types.str.required
0
107
0
0
0
0
0
19
45
aa678430fa7a985978185bacff538e9309826d62
217
py
Python
web/sso/admin.py
kisawebkaist/kisaweb
05883d4d81394d5055137f24a8a46d7c90191101
[ "MIT" ]
2
2020-11-06T10:32:52.000Z
2021-11-05T06:56:08.000Z
web/sso/admin.py
zero-or-one/kisaweb
d88eca63b50fd2593a7d1aa23916a80437e84925
[ "MIT" ]
29
2020-10-09T18:29:11.000Z
2022-03-12T14:23:36.000Z
web/sso/admin.py
kisawebkaist/kisaweb
05883d4d81394d5055137f24a8a46d7c90191101
[ "MIT" ]
11
2020-10-26T03:59:47.000Z
2021-10-04T07:03:44.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Agreement # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(Agreement)
21.7
47
0.81106
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Agreement # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(Agreement)
0
0
0
0
0
0
0
0
0
a342471396fe69a5d48b3288fe510c7425f390c9
2,415
py
Python
lifoid/www/api/webhook.py
romaryd/lifoid
f0c96d2c58cc7980ef7a3747251928f6da9015f5
[ "Apache-2.0" ]
1
2018-06-27T07:04:24.000Z
2018-06-27T07:04:24.000Z
lifoid/www/api/webhook.py
LifoidLabs/lifoid
f0c96d2c58cc7980ef7a3747251928f6da9015f5
[ "Apache-2.0" ]
5
2018-05-23T07:06:45.000Z
2018-10-09T20:08:29.000Z
lifoid/www/api/webhook.py
LifoidLabs/lifoid
f0c96d2c58cc7980ef7a3747251928f6da9015f5
[ "Apache-2.0" ]
1
2019-03-25T17:34:28.000Z
2019-03-25T17:34:28.000Z
import sys import os import importlib from flask import Blueprint from lifoid.config import settings from lifoid.logging.mixin import ServiceLogger sys.path.insert(0, os.getcwd()) logger = ServiceLogger() try: app_settings_module = importlib.import_module( settings.lifoid_settings_module ) logger.de...
36.044776
75
0.654658
import sys import os import json import traceback import importlib from flask import request, make_response, Blueprint, abort from lifoid.config import settings from lifoid.logging.mixin import ServiceLogger from lifoid.constants import E_GET, E_POST from lifoid.events import process_event from lifoid.exceptions import...
0
1,497
0
0
0
0
0
151
133
6bae8be3122dbc23198d933ed6ee8ad05824b27f
118
py
Python
service_account_auth/__init__.py
Wilduck/gclient-service-account-auth
26e23a13b33546ff87df92fea387c680fab75e10
[ "MIT" ]
3
2015-02-11T08:52:35.000Z
2020-03-08T06:07:39.000Z
service_account_auth/__init__.py
Wilduck/gclient-service-account-auth
26e23a13b33546ff87df92fea387c680fab75e10
[ "MIT" ]
4
2015-01-23T02:33:39.000Z
2016-03-14T20:52:46.000Z
service_account_auth/__init__.py
Wilduck/gclient-service-account-auth
26e23a13b33546ff87df92fea387c680fab75e10
[ "MIT" ]
5
2015-02-11T08:52:44.000Z
2018-03-05T00:50:57.000Z
# flake8: noqa
23.6
68
0.847458
# flake8: noqa from .version import __version__ from .authorized_service import AuthorizedService, get_email_and_key
0
0
0
0
0
0
0
58
45
889649b4ec4b2639ffc6d441632f708612e41430
6,096
py
Python
ingv/get-ingv-data.py
danja/elfquake
0c42a32ccc1d7008febf120eabe666fbdccff781
[ "Apache-2.0" ]
2
2019-04-24T01:57:04.000Z
2020-05-26T22:28:55.000Z
ingv/get-ingv-data.py
danja/elfquake
0c42a32ccc1d7008febf120eabe666fbdccff781
[ "Apache-2.0" ]
null
null
null
ingv/get-ingv-data.py
danja/elfquake
0c42a32ccc1d7008febf120eabe666fbdccff781
[ "Apache-2.0" ]
null
null
null
# # apologies for the camelCase - the previous version was in JS ## ''Aquila 6 April 2009 > 5 mag # 42.3476N 13.3800ECoordinates: 42.3476N 13.3800E[1] # http://webservices.ingv.it/fdsnws/event/1/query?starttime=2009-04-01T00:00:00&endtime=2009-04-10T00:00:00 # curl -i "http://webservices.ingv...
39.329032
138
0.598753
# # apologies for the camelCase - the previous version was in JS import dateutil.parser import datetime from datetime import date, time from time import sleep import http.client import xml.etree.ElementTree as ET ## ''Aquila 6 April 2009 > 5 mag # 42.3476°N 13.3800°ECoordinates: 42.3476°N 13.3800°E[...
8
0
0
5,468
0
0
0
16
158
1bdd22b9e8687c784908307d90517dd91dd44dff
23,507
py
Python
test_model.py
IulianEmilTampu/OCT_SPLIT_PROPERLY_YOUR_DATA
40708f54c2502b85b2acbfec35a7bcff5f031c92
[ "MIT" ]
null
null
null
test_model.py
IulianEmilTampu/OCT_SPLIT_PROPERLY_YOUR_DATA
40708f54c2502b85b2acbfec35a7bcff5f031c92
[ "MIT" ]
null
null
null
test_model.py
IulianEmilTampu/OCT_SPLIT_PROPERLY_YOUR_DATA
40708f54c2502b85b2acbfec35a7bcff5f031c92
[ "MIT" ]
null
null
null
''' Script that tests a trained models on its training dataset. It does the same testing routine as the one in the overall utilities_models_tf.py script. It saves the information about the test for easy later plotting ROC (per-class and overall using micro and macro average) PP curve (per-class and overall using mic...
40.599309
174
0.691836
''' Script that tests a trained models on its training dataset. It does the same testing routine as the one in the overall utilities_models_tf.py script. It saves ¤ the information about the test for easy later plotting ¤ ROC (per-class and overall using micro and macro average) ¤ PP curve (per-class and overall using ...
24
0
0
0
0
0
0
118
220
38fd0d779b303c1216b7bddcf77f090e5523b5f4
3,399
py
Python
linguistic_features/connectives.py
iverinaivanova/Linguistic-Mechanisms-in-the-Section-Types-of-a-Research-Article
b9aad26d66a1b550f1734a76dd94b440e58b6125
[ "Apache-2.0" ]
null
null
null
linguistic_features/connectives.py
iverinaivanova/Linguistic-Mechanisms-in-the-Section-Types-of-a-Research-Article
b9aad26d66a1b550f1734a76dd94b440e58b6125
[ "Apache-2.0" ]
null
null
null
linguistic_features/connectives.py
iverinaivanova/Linguistic-Mechanisms-in-the-Section-Types-of-a-Research-Article
b9aad26d66a1b550f1734a76dd94b440e58b6125
[ "Apache-2.0" ]
null
null
null
"""The script retrieves explicit connectives marking temporal, comparison, contingency, and expansion relations and prints the total number of these connectives per article section.""" import spacy nlp = spacy.load("en_core_web_sm") # The script below retrieves the connectives from each article abstract # and pr...
53.952381
112
0.568108
"""The script retrieves explicit connectives marking temporal, comparison, contingency, and expansion relations and prints the total number of these connectives per article section.""" import sys import spacy from collections import Counter nlp = spacy.load("en_core_web_sm") # The script below retrieves the c...
0
0
0
0
0
0
0
-1
48
c3eb3f79de238630fd3623659ca0acabe1a18ed6
7,079
py
Python
apps/reports/metadata/basic.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
1
2017-05-19T07:23:00.000Z
2017-05-19T07:23:00.000Z
apps/reports/metadata/basic.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
apps/reports/metadata/basic.py
commtrack/commtrack-old-to-del
cc9c22754ac192a45483cef609bdcf09aa990340
[ "BSD-3-Clause" ]
null
null
null
""" Basic metadata reports/queries @author: dan myung (dmyung@dimagi.com) create: 10/19/2009 Notes: A place where oft reused queries off xformmanager.metadata can be referenced. This is somewhat redundant with functionality already existent in the apps/reports/util.py file which already does a basic metadata query....
41.156977
167
0.703772
""" Basic metadata reports/queries @author: dan myung (dmyung@dimagi.com) create: 10/19/2009 Notes: A place where oft reused queries off xformmanager.metadata can be referenced. This is somewhat redundant with functionality already existent in the apps/reports/util.py file which already does a basic metadata query....
0
0
0
0
0
0
0
89
44
7adf46f4dc4fd50dd8b98f3b3816828778eed8e7
7,795
py
Python
src/skills/switch_skill.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
null
null
null
src/skills/switch_skill.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
null
null
null
src/skills/switch_skill.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
2
2020-11-03T08:54:28.000Z
2021-05-27T13:28:17.000Z
################################################################################ # filename: switch_skill.py # date: 07. Apr. 2021 # username: winkste # name: Stephan Wink # description: This module handles the input signal of a switch. # In the first implementation it will only support polling of an # ...
38.975
107
0.493906
################################################################################ # filename: switch_skill.py # date: 07. Apr. 2021 # username: winkste # name: Stephan Wink # description: This module handles the input signal of a switch. # In the first implementation it will only support polling of an # ...
0
0
0
5,832
0
0
0
44
132
def7e890c66fcbef5ecfc97dcc5848e24c252ed5
14,062
py
Python
vyper/parser/parser_utils.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
vyper/parser/parser_utils.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
vyper/parser/parser_utils.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
# Get a decimal number as a fraction with denominator multiple of 10 # Is a number of decimal form (e.g. 65281) or 0x form (e.g. 0xff01) or 0b binary form (e.g. 0b0001) # Copies byte array # Copy bytes # Accepts 4 arguments: # (i) an LLL node for the start position of the source # (ii) an LLL node for the start...
46.562914
148
0.59323
from vyper.utils import GAS_IDENTITY, GAS_IDENTITYWORD from vyper.exceptions import ( InvalidLiteralException, TypeMismatchException ) from vyper.parser.lll_node import ( LLLnode ) from vyper.types import ( BaseType, ByteArrayType, ContractType, NullType, StructType, MappingType, ...
0
0
0
0
0
12,647
0
406
355
29ffcd6a05a2485e18fc7df508229e0ccd5838db
180
py
Python
st2common/tests/resources/loadableplugin/plugin/util/randomutil.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
st2common/tests/resources/loadableplugin/plugin/util/randomutil.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
3
2021-03-25T23:57:10.000Z
2021-03-26T00:01:05.000Z
st2common/tests/resources/loadableplugin/plugin/util/randomutil.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import
22.5
65
0.783333
from __future__ import absolute_import import random from six.moves import range def get_random_numbers(count): return [random.randrange(0, 1000) for idx in range(0, count)]
0
0
0
0
0
75
0
-2
67
9ae424fea148a73e82ace7484199b2bc53457d2d
367
py
Python
rpi/kibawe_v2/routine.py
updewsprado/updews-datalogger
862e39504119c9f6f8a4988ff2cd5ad39ed46863
[ "Unlicense" ]
null
null
null
rpi/kibawe_v2/routine.py
updewsprado/updews-datalogger
862e39504119c9f6f8a4988ff2cd5ad39ed46863
[ "Unlicense" ]
null
null
null
rpi/kibawe_v2/routine.py
updewsprado/updews-datalogger
862e39504119c9f6f8a4988ff2cd5ad39ed46863
[ "Unlicense" ]
null
null
null
from time import sleep reset() sleep(5) getRssi() sleep(2) wakeup() startwait() ''' def main(): reset() sleep(5) getRssi() sleep(2) wakeup() startwait() if __name__=='__main__': p = multiprocessing.Process(target=main,name="routine") p.start() sleep(300) print "terminating routine" p.terminate() '''
11.46875
56
0.689373
from xbeecoord import * from time import sleep import multiprocessing reset() sleep(5) getRssi() sleep(2) wakeup() startwait() ''' def main(): reset() sleep(5) getRssi() sleep(2) wakeup() startwait() if __name__=='__main__': p = multiprocessing.Process(target=main,name="routine") p.start() sleep(300) p...
0
0
0
0
0
0
0
3
44
95ae4165b2b8de19eb116db0c51a0d1f8417d350
14,185
py
Python
rulesanml.py
asrivast28/FastSNAP
3240484d863ae68d18e7198c8ad1e211463715a9
[ "Apache-2.0" ]
null
null
null
rulesanml.py
asrivast28/FastSNAP
3240484d863ae68d18e7198c8ad1e211463715a9
[ "Apache-2.0" ]
null
null
null
rulesanml.py
asrivast28/FastSNAP
3240484d863ae68d18e7198c8ad1e211463715a9
[ "Apache-2.0" ]
null
null
null
## # @file rulesanml.py # @author Ankit Srivastava <asrivast@gatech.edu> # # Copyright 2018 Georgia Institute of Technology # # 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.apa...
46.661184
159
0.596052
## # @file rulesanml.py # @author Ankit Srivastava <asrivast@gatech.edu> # # Copyright 2018 Georgia Institute of Technology # # 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.apa...
0
0
0
13,359
0
0
0
-21
180
c319caa266be2ae157a2924b02ace1fdbaf862de
16,853
py
Python
tracformatter/trac/test.py
kbower/tracwikiconv
6db4c856c8ab64beac666226519ae2e8d513c428
[ "BSD-3-Clause" ]
1
2017-02-09T15:55:16.000Z
2017-02-09T15:55:16.000Z
tracformatter/trac/test.py
kbower/tracwikiconv
6db4c856c8ab64beac666226519ae2e8d513c428
[ "BSD-3-Clause" ]
null
null
null
tracformatter/trac/test.py
kbower/tracwikiconv
6db4c856c8ab64beac666226519ae2e8d513c428
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2005 Jonas Borgstrm <jonas@edgewall.com> # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you shou...
36.958333
81
0.587314
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com> # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you sho...
4
0
0
8,799
0
3,920
0
199
459
e389c227339afdf6dc2a373f24acbfb741a5fdfe
287
py
Python
Lecture 18/Lecture18HWAssignment3.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2019-04-27T15:37:04.000Z
2019-04-27T15:37:04.000Z
Lecture 18/Lecture18HWAssignment3.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
null
null
null
Lecture 18/Lecture18HWAssignment3.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2020-08-14T06:57:08.000Z
2020-08-14T06:57:08.000Z
# WAP to accept a folder name from user and create zip file out of contents of it. if __name__ == "__main__": main()
28.7
82
0.696864
# WAP to accept a folder name from user and create zip file out of contents of it. import shutil def main(): inputDirPath = input("Please enter directory name: ") shutil.make_archive("outputZip", "zip", inputDirPath) print("Archived!") if __name__ == "__main__": main()
0
0
0
0
0
129
0
-8
45
ed2fbd10346eec764cf27d2e4a1be3653c1425d8
2,174
py
Python
pagarmecoreapi/models/create_price_bracket_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
6
2021-09-02T19:55:04.000Z
2022-03-16T14:06:15.000Z
pagarmecoreapi/models/create_price_bracket_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-10-11T22:48:15.000Z
2022-01-24T18:24:23.000Z
pagarmecoreapi/models/create_price_bracket_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-09-12T21:43:32.000Z
2022-03-07T16:58:54.000Z
# -*- coding: utf-8 -*- """ pagarmecoreapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """
28.605263
84
0.586937
# -*- coding: utf-8 -*- """ pagarmecoreapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class CreatePriceBracketRequest(object): """Implementation of the 'CreatePriceBracketRequest' model. Request for creating a price bracket Attributes: ...
0
957
0
1,043
0
0
0
0
24
2e818e22823029570921c6b84b3442ba2ae1d7e7
3,803
py
Python
src/codexdb/prep/spider.py
itrummer/CodexDB
15ab6268c95e8a283b69e17d5fa4cb7589580a27
[ "MIT" ]
null
null
null
src/codexdb/prep/spider.py
itrummer/CodexDB
15ab6268c95e8a283b69e17d5fa4cb7589580a27
[ "MIT" ]
null
null
null
src/codexdb/prep/spider.py
itrummer/CodexDB
15ab6268c95e8a283b69e17d5fa4cb7589580a27
[ "MIT" ]
null
null
null
''' Created on Sep 19, 2021 @author: immanueltrummer ''' import argparse import collections import json import pandas as pd import sqlite3 def get_db_path(spider_dir, db_id): """ Return path to SQLite database file. Args: spider_dir: path to SPIDER benchmark db_id: database identifier ...
31.429752
76
0.563765
''' Created on Sep 19, 2021 @author: immanueltrummer ''' import argparse import collections import json import pandas as pd import sqlite3 def get_db_path(spider_dir, db_id): """ Return path to SQLite database file. Args: spider_dir: path to SPIDER benchmark db_id: database identifier ...
0
0
0
0
0
0
0
0
0
eb3850cf0a144d90bc658ea248d321d83bef0449
628
py
Python
Webllistoerp/chat/migrations/0004_auto_20210601_0844.py
Prakhar-100/DjangoProject
5030fabe038bd67af50364431705837aa0bde91b
[ "MIT" ]
null
null
null
Webllistoerp/chat/migrations/0004_auto_20210601_0844.py
Prakhar-100/DjangoProject
5030fabe038bd67af50364431705837aa0bde91b
[ "MIT" ]
null
null
null
Webllistoerp/chat/migrations/0004_auto_20210601_0844.py
Prakhar-100/DjangoProject
5030fabe038bd67af50364431705837aa0bde91b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-06-01 08:44
25.12
70
0.632166
# Generated by Django 3.1.7 on 2021-06-01 08:44 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('chat', '0003_auto_20210531_1404'), ] operations ...
0
0
0
481
0
0
0
30
68
544879006a299eb76867b4e97ce8c0e45d8e4d68
235
py
Python
python/ext_c.py
forember/lambd
5550b741083e463cee60ce76bb181b4c063879a1
[ "MIT" ]
null
null
null
python/ext_c.py
forember/lambd
5550b741083e463cee60ce76bb181b4c063879a1
[ "MIT" ]
null
null
null
python/ext_c.py
forember/lambd
5550b741083e463cee60ce76bb181b4c063879a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim: set sw=2 ts=2 sts=2 et : '''Defines a comment (@@ c.(This is a comment!) x z) -> (x z) '''
16.785714
42
0.595745
# -*- coding: utf-8 -*- # vim: set sw=2 ts=2 sts=2 et : '''Defines a comment (@@ c.(This is a comment!) x z) -> (x z) ''' from lambd import * def ext_parexpr(tree, extra_params, body): body.pop(1) tree[:] = parse_parexpr(body)
0
0
0
0
0
67
0
-2
46
06ae4fcc8678e2badcda395c709576597bbf2d8c
1,675
py
Python
setup.py
martindevora/SHERLOCK
5e7492552cbce29e960684a44fd6ad875c8cf60e
[ "MIT" ]
1
2021-01-14T16:44:48.000Z
2021-01-14T16:44:48.000Z
setup.py
martindevora/SHERLOCK
5e7492552cbce29e960684a44fd6ad875c8cf60e
[ "MIT" ]
null
null
null
setup.py
martindevora/SHERLOCK
5e7492552cbce29e960684a44fd6ad875c8cf60e
[ "MIT" ]
null
null
null
import setuptools import os with open("README.md", "r") as fh: long_description = fh.read() version = os.popen('git tag -l --sort -version:refname | head -n 1').read().split('\n', 1)[0] setuptools.setup( name="sherlockpipe", # Replace with your own username version=version, author="F.J. Pozuelos & M. ...
34.183673
93
0.46806
import setuptools import os with open("README.md", "r") as fh: long_description = fh.read() version = os.popen('git tag -l --sort -version:refname | head -n 1').read().split('\n', 1)[0] setuptools.setup( name="sherlockpipe", # Replace with your own username version=version, author="F.J. Pozuelos & M. ...
2
0
0
0
0
0
0
0
0
26142f2ab17a6f041b7cf830d3dcd1a97d2eab8f
96
py
Python
views/__init__.py
brenns10/love
1a2a60c510327d91eff9caf32a252141ae00a9eb
[ "MIT" ]
4
2017-02-16T02:18:39.000Z
2018-01-14T01:56:21.000Z
views/__init__.py
brenns10/love
1a2a60c510327d91eff9caf32a252141ae00a9eb
[ "MIT" ]
17
2017-02-16T17:19:53.000Z
2018-01-08T01:43:05.000Z
views/__init__.py
brenns10/love
1a2a60c510327d91eff9caf32a252141ae00a9eb
[ "MIT" ]
4
2017-02-16T18:48:18.000Z
2018-01-08T02:34:07.000Z
# -*- coding: utf-8 -*- # flake8: noqa
13.714286
23
0.635417
# -*- coding: utf-8 -*- # flake8: noqa from . import api from . import tasks from . import web
0
0
0
0
0
0
0
-10
67