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
79b4530a7a5ec6869c538712f057d68ae143f87f
11,101
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/elmi/uni/evc/evc.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/elmi/uni/evc/evc.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/elmi/uni/evc/evc.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
48.056277
449
0.750473
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
0
3,806
0
6,061
0
0
0
36
77
6360ddc4d56a9caac912b1245b0be3adea3c1eb1
377
py
Python
meiduo_mall/apps/meiduo_admin/serializers/option.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/serializers/option.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/serializers/option.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
#
20.944444
57
0.745358
from rest_framework import serializers from apps.goods.models import SpecificationOption # 获取规格选项表信息 序列化器 class OptionSerialzier(serializers.ModelSerializer): # 将规格名称外键序列化 spec = serializers.StringRelatedField(read_only=True) # 将规格选项id序列化 spec_id = serializers.IntegerField() class Meta: ...
93
0
0
227
0
0
0
45
67
e6f4f9cec5f00558d42e7703888cd760597a1255
4,560
py
Python
blueoil/cmd/main.py
suttang/blueoil
f493ec9cc104c9aaa0837e5524727a262f7fc8e7
[ "Apache-2.0" ]
null
null
null
blueoil/cmd/main.py
suttang/blueoil
f493ec9cc104c9aaa0837e5524727a262f7fc8e7
[ "Apache-2.0" ]
null
null
null
blueoil/cmd/main.py
suttang/blueoil
f493ec9cc104c9aaa0837e5524727a262f7fc8e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
27.97546
114
0.669737
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
0
3,429
0
0
0
0
0
106
249
1602be4c10613465dee688fd9439bcf88891e6cf
2,147
py
Python
test_files/type_checking2.expected.py
sqlalchemyorg/zimports
66f65b6ecf9f8fc434aff2b4ded1d6738085bbd7
[ "MIT" ]
65
2019-01-02T05:44:38.000Z
2021-11-08T11:47:09.000Z
test_files/type_checking2.expected.py
sqlalchemyorg/zimports
66f65b6ecf9f8fc434aff2b4ded1d6738085bbd7
[ "MIT" ]
32
2019-01-07T15:43:15.000Z
2022-02-09T20:36:32.000Z
test_files/type_checking2.expected.py
sqlalchemyorg/zimports
66f65b6ecf9f8fc434aff2b4ded1d6738085bbd7
[ "MIT" ]
7
2019-01-07T15:11:31.000Z
2020-07-08T17:42:13.000Z
# schema.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Compatibility namespace for sqlalchemy.sql.schema and related. """ from typing import ...
33.546875
69
0.787145
# schema.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Compatibility namespace for sqlalchemy.sql.schema and related. """ from typing import ...
0
0
0
0
0
0
0
665
1,127
211f8a8cf347edfd1bd4fe598283f7114911345f
9,030
py
Python
soxs/mosaic.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
10
2020-05-08T01:38:18.000Z
2021-09-30T16:55:49.000Z
soxs/mosaic.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
7
2020-05-09T18:02:10.000Z
2022-03-04T19:28:37.000Z
soxs/mosaic.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
6
2016-11-17T21:15:22.000Z
2021-04-10T11:42:24.000Z
from soxs.instrument import instrument_simulator from soxs.events import write_image, make_exposure_map from soxs.utils import mylog import numpy as np from astropy.io import fits, ascii from astropy.table import Table def make_mosaic_events(pointing_list, input_source, out_prefix, exp_time, i...
48.548387
109
0.646512
from soxs.instrument import instrument_simulator from soxs.events import write_image, make_exposure_map from soxs.utils import mylog import numpy as np from astropy.io import fits, ascii from astropy.table import Table def make_mosaic_events(pointing_list, input_source, out_prefix, exp_time, i...
0
0
0
0
0
0
0
14
0
1a7bedab2727e988195a39684e2667e86f213aec
761
py
Python
src/ghutil/api/util.py
jwodder/ghutil
f0b903a76177cd49f5d48ac9890609f4da9071d9
[ "MIT" ]
6
2017-05-29T19:29:44.000Z
2020-04-05T00:01:02.000Z
src/ghutil/api/util.py
jwodder/ghutil
f0b903a76177cd49f5d48ac9890609f4da9071d9
[ "MIT" ]
2
2017-06-29T09:39:32.000Z
2020-01-07T22:48:02.000Z
src/ghutil/api/util.py
jwodder/ghutil
f0b903a76177cd49f5d48ac9890609f4da9071d9
[ "MIT" ]
1
2017-06-11T16:43:47.000Z
2017-06-11T16:43:47.000Z
API_ENDPOINT = 'https://api.github.com'
29.269231
80
0.621551
import sys import click from ghutil.showing import print_json API_ENDPOINT = 'https://api.github.com' def die(r): if 400 <= r.status_code < 500: msg = '{0.status_code} Client Error: {0.reason} for URL: {0.url}' elif 500 <= r.status_code < 600: msg = '{0.status_code} Server Error: {0.reason} ...
0
0
0
0
0
610
0
-2
112
4a05ab01e040309dba78e2f4e923dda8b4636103
1,834
py
Python
bots/zulip_git_config.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
bots/zulip_git_config.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
8
2021-03-31T18:45:09.000Z
2022-03-11T23:25:59.000Z
bots/zulip_git_config.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
null
null
null
# Zulip, Inc's internal git plugin configuration. # The plugin and example config are under api/integrations/ # Leaving all the instructions out of this file to avoid having to # sync them as we update the comments. ZULIP_USER = "commit-bot@zulip.com" ZULIP_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # commit_notic...
39.021277
105
0.707743
# Zulip, Inc's internal git plugin configuration. # The plugin and example config are under api/integrations/ # Leaving all the instructions out of this file to avoid having to # sync them as we update the comments. if False: from typing import Dict, Optional, Text ZULIP_USER = "commit-bot@zulip.com" ZULIP_API_KEY =...
0
0
0
0
0
526
0
18
77
797be3d7479f1696bb54dfae3a4c3e54249d3f7b
1,845
py
Python
abitly/services/link/bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
abitly/services/link/bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
abitly/services/link/bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
"""Define the Blueprint for the Link Service""" from flask import Blueprint # Controller link = Blueprint('link', __name__, url_prefix='/link')
29.758065
73
0.603794
"""Define the Blueprint for the Link Service""" from flask import Blueprint, request, jsonify, redirect from werkzeug.exceptions import BadRequest, InternalServerError, NotFound from flask_cors import cross_origin # Controller from abitly.services.link.controller import (validate_request_body, ...
0
1,317
0
0
0
0
0
267
112
7d1497f2bd3bc8ea7a826ff8129717a71ead9ce7
698
py
Python
hunspell/platform.py
javiber/cython_hunspell
ef8e3cb749fb2ea2ef6fe7740cb932cf48ad2d2a
[ "MIT" ]
null
null
null
hunspell/platform.py
javiber/cython_hunspell
ef8e3cb749fb2ea2ef6fe7740cb932cf48ad2d2a
[ "MIT" ]
1
2022-01-26T09:30:21.000Z
2022-01-26T09:34:04.000Z
hunspell/platform.py
javiber/cython_hunspell
ef8e3cb749fb2ea2ef6fe7740cb932cf48ad2d2a
[ "MIT" ]
1
2020-05-11T22:27:10.000Z
2020-05-11T22:27:10.000Z
import os def detect_cpus(): '''Detects the number of CPUs on a system. Cribbed from pp.''' # Linux, Unix and MacOS: if hasattr(os, "sysconf"): if "SC_NPROCESSORS_ONLN" in os.sysconf_names: # Linux & Unix: ncpus = int_or_zero(os.sysconf("SC_NPROCESSORS_ONLN")) else: ...
27.92
73
0.597421
import os def int_or_zero(value): try: return int(value) except TypeError: return 0 def detect_cpus(): '''Detects the number of CPUs on a system. Cribbed from pp.''' # Linux, Unix and MacOS: if hasattr(os, "sysconf"): if "SC_NPROCESSORS_ONLN" in os.sysconf_names: ...
0
0
0
0
0
76
0
0
23
c083db7787e77681459075f4b3f71f9f05a9be70
3,837
py
Python
python/datagit/graph/dmo/util/graph_nodedef_generator.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagit/graph/dmo/util/graph_nodedef_generator.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagit/graph/dmo/util/graph_nodedef_generator.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*-
30.943548
103
0.543654
# !/usr/bin/env python # -*- coding: UTF-8 -*- import pprint from base import BaseObject from base import FileIO class GraphNodeDefGenerator(BaseObject): """ Build GitHub Node Definition for Graphviz """ def __init__(self, stylesheet_path: str, is_debug: bool = True): ...
0
347
0
3,350
0
0
0
0
91
7c404d86197895f16a3a7d65920f661f72e5e880
7,084
py
Python
s3-scan-tar/app/blob.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
4
2021-03-05T15:39:24.000Z
2021-09-15T06:11:45.000Z
s3-scan-tar/app/blob.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
631
2020-04-27T10:39:18.000Z
2022-03-31T14:51:38.000Z
s3-scan-tar/app/blob.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
3
2020-02-20T15:48:03.000Z
2021-12-16T22:50:40.000Z
# -*- coding: utf-8 -*- import logging DEFAULT_BUFFER_SIZE = 4 * 1024 ** 2 WHENCE_START = 0 WHENCE_CURRENT = 1 WHENCE_END = 2 WHENCE_CHOICES = (WHENCE_START, WHENCE_CURRENT, WHENCE_END) logger = logging.getLogger(__name__)
32.495413
120
0.620977
# -*- coding: utf-8 -*- import io import logging from azure.storage.blob import BlobClient from azure.core.exceptions import ResourceNotFoundError DEFAULT_BUFFER_SIZE = 4 * 1024 ** 2 WHENCE_START = 0 WHENCE_CURRENT = 1 WHENCE_END = 2 WHENCE_CHOICES = (WHENCE_START, WHENCE_CURRENT, WHENCE_END) logger = logging.getLo...
0
0
0
6,677
0
0
0
42
137
e0c0715c0b4e6b2805205c828720f922254f59ba
4,205
py
Python
dgp/agents/agent_2d.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
dgp/agents/agent_2d.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
dgp/agents/agent_2d.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
# Copyright 2021-2022 Toyota Research Institute. All rights reserved.
39.299065
122
0.640428
# Copyright 2021-2022 Toyota Research Institute. All rights reserved. import numpy as np from dgp.agents.base_agent import AgentSnapshotList from dgp.annotations.ontology import BoundingBoxOntology from dgp.constants import FEATURE_TYPE_ID_TO_KEY from dgp.utils.structures.bounding_box_2d import BoundingBox2D class...
0
2,613
0
1,255
0
0
0
130
135
966811e1ee4b3c5005f065334ed59e2dd03e302b
10,291
py
Python
tools/demo_c3d_4cls_video_heatmap.py
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
tools/demo_c3d_4cls_video_heatmap.py
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
tools/demo_c3d_4cls_video_heatmap.py
apple35932003/IVS-Caffe
54bb78daab04a8188d0df9ef5b8f4855082e0da5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import _init_paths import numpy as np import cv2 import os import sys import time import argparse import heapq import random import csv import glob from utils.timer import Timer from shutil import copyfile #def add_path(path): # if path not in sys.path: # sys.path.insert(0, path) #caff...
35.857143
155
0.511904
#!/usr/bin/env python import _init_paths import numpy as np import cv2 import os import sys import time import argparse import heapq import random import csv import glob from utils.timer import Timer from shutil import copyfile #def add_path(path): # if path not in sys.path: # sys.path.insert(0, path) #caff...
0
0
0
0
0
0
0
0
0
7c19b33e6d9566300c8cd556e4fc343dbbd8d236
2,468
py
Python
flexget/components/emby/emby_lookup.py
astrotee/Flexget
34121f79eaef2ce27dd2d37b6d1c2e8dfbf98c51
[ "MIT" ]
1,322
2015-01-01T22:00:25.000Z
2022-03-30T05:37:46.000Z
flexget/components/emby/emby_lookup.py
astrotee/Flexget
34121f79eaef2ce27dd2d37b6d1c2e8dfbf98c51
[ "MIT" ]
2,384
2015-01-01T04:23:15.000Z
2022-03-31T01:06:43.000Z
flexget/components/emby/emby_lookup.py
soloam/Flexget
f39812981d9ab2665358d8285c7ea7758759ab8d
[ "MIT" ]
617
2015-01-02T15:15:07.000Z
2022-03-15T12:29:31.000Z
from loguru import logger logger = logger.bind(name='emby_lookup')
25.443299
88
0.626013
from loguru import logger from flexget import entry, plugin from flexget.components.emby.api_emby import EmbyApi, EmbyAuth from flexget.components.emby.emby_util import SCHEMA_SERVER, get_field_map from flexget.event import event logger = logger.bind(name='emby_lookup') class EmbyLookup: """ Preforms Emby L...
0
1,088
0
1,059
0
0
0
116
135
42b5ffe8022795b0496fbb7a4ed78599c3b1830e
180
py
Python
Python/fattoriale.py
jojo2234/StruFun
a3e2d260f32bd7a7ea9b5f89fc1aa064bd94b8e8
[ "BSD-3-Clause" ]
null
null
null
Python/fattoriale.py
jojo2234/StruFun
a3e2d260f32bd7a7ea9b5f89fc1aa064bd94b8e8
[ "BSD-3-Clause" ]
null
null
null
Python/fattoriale.py
jojo2234/StruFun
a3e2d260f32bd7a7ea9b5f89fc1aa064bd94b8e8
[ "BSD-3-Clause" ]
null
null
null
print(" 12! ", fattoriale(12)) print(" 18! ", fattoriale(18)) print(" 33! ", fattoriale(33))
20
31
0.561111
def fattoriale(n): if n==0: return 1 return n*fattoriale(n-1) print(" 12! ", fattoriale(12)) print(" 18! ", fattoriale(18)) print(" 33! ", fattoriale(33))
0
0
0
0
0
59
0
0
23
db34c989f0989a607bc25cafa9655b38a74cc310
1,121
py
Python
rpy2_arrow/tests_r6b.py
paleolimbot/rpy2-arrow
162842e27046a6802ce650a8268a1b61c68ce51c
[ "MIT" ]
10
2021-07-05T22:54:11.000Z
2022-02-14T14:25:42.000Z
rpy2_arrow/tests_r6b.py
paleolimbot/rpy2-arrow
162842e27046a6802ce650a8268a1b61c68ce51c
[ "MIT" ]
3
2021-12-06T20:34:47.000Z
2022-01-25T12:11:38.000Z
rpy2_arrow/tests_r6b.py
paleolimbot/rpy2-arrow
162842e27046a6802ce650a8268a1b61c68ce51c
[ "MIT" ]
1
2022-01-05T12:31:27.000Z
2022-01-05T12:31:27.000Z
import rpy2.rinterface as rinterface import rpy2.robjects.conversion as conversion import rpy2_R6.r6b as r6b
31.138889
76
0.715433
import rpy2.rinterface as rinterface import rpy2.robjects.conversion as conversion import rpy2.robjects as ro import rpy2_arrow.pyarrow_rarrow as pyr import rpy2_arrow.r6b as r6b_ar import rpy2_R6.r6b as r6b import pyarrow import pytest @pytest.mark.xfail @pytest.mark.parametrize( 'pyarrow_constructor,pyr_py2r', ...
0
860
0
0
0
0
0
18
133
6012477f957604f4c68f38645da85b0db42165ae
93
py
Python
setup.py
kammoh/pygls
4772250f8ede25aee8e457dae5bca394aeccdd2f
[ "Apache-2.0" ]
239
2018-12-21T18:56:12.000Z
2022-03-30T20:20:16.000Z
setup.py
kammoh/pygls
4772250f8ede25aee8e457dae5bca394aeccdd2f
[ "Apache-2.0" ]
309
2020-11-02T19:46:14.000Z
2022-03-24T21:35:28.000Z
setup.py
kammoh/pygls
4772250f8ede25aee8e457dae5bca394aeccdd2f
[ "Apache-2.0" ]
63
2018-12-22T11:33:14.000Z
2022-03-29T05:34:29.000Z
#!/usr/bin/env python3 from setuptools import setup if __name__ == "__main__": setup()
13.285714
28
0.688172
#!/usr/bin/env python3 from setuptools import setup if __name__ == "__main__": setup()
0
0
0
0
0
0
0
0
0
fb2cf88e860b3646af226adcc33b79c86efb7b6e
9,281
py
Python
spikewarp/state/metaplots.py
james-isbister/spikewarp
2de49a04649f2ca202a2830af9705f73d403a633
[ "BSD-3-Clause" ]
null
null
null
spikewarp/state/metaplots.py
james-isbister/spikewarp
2de49a04649f2ca202a2830af9705f73d403a633
[ "BSD-3-Clause" ]
null
null
null
spikewarp/state/metaplots.py
james-isbister/spikewarp
2de49a04649f2ca202a2830af9705f73d403a633
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import spikewarp as sw def cluster_pair_plots(meta_dict, dh): """ Function for plotting meta analyses of cluster pair analyses """ data_to_plot = [meta_dict['quadruplet']['proportion_of_pairwise_conj_trials_by_single_unit_ENOUGH_QUAD_CONJ'], meta_dict['all_clu...
76.07377
485
0.774593
import matplotlib.pyplot as plt import numpy as np import spikewarp as sw def cluster_pair_plots(meta_dict, dh): """ Function for plotting meta analyses of cluster pair analyses """ data_to_plot = [meta_dict['quadruplet']['proportion_of_pairwise_conj_trials_by_single_unit_ENOUGH_QUAD_CONJ'], meta_dict['all_clu...
0
0
0
0
0
0
0
0
0
30d29a95c3aa0b51ca7e5413f4f2cb1b3f8223ec
12,793
py
Python
scrapy_tfg/scrapy_tfg/spiders/footballnews_spider.py
jochoaserna/footballnews
70719006b1ac85a46f4477c84b416138869ba4d5
[ "Apache-2.0" ]
null
null
null
scrapy_tfg/scrapy_tfg/spiders/footballnews_spider.py
jochoaserna/footballnews
70719006b1ac85a46f4477c84b416138869ba4d5
[ "Apache-2.0" ]
null
null
null
scrapy_tfg/scrapy_tfg/spiders/footballnews_spider.py
jochoaserna/footballnews
70719006b1ac85a46f4477c84b416138869ba4d5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
54.905579
300
0.591183
# -*- coding: utf-8 -*- import scrapy import re import json import urllib.parse import datetime import random class MarcaSpider(scrapy.Spider): name = "footballnews" start_urls = [ 'http://www.marca.com/futbol/atletico.html', 'http://www.marca.com/futbol/real-madrid.html', 'http://...
2
0
0
12,657
0
0
0
-46
155
cf18a2c93eb36e56957a921ac417f3179811e63d
2,412
py
Python
linear_algebra/eigen_decompostion.py
amoljagadambe/machine-Learning_Tutorials
7e9dc49d269bad93d3c6377f05865307c77d35df
[ "Apache-2.0" ]
null
null
null
linear_algebra/eigen_decompostion.py
amoljagadambe/machine-Learning_Tutorials
7e9dc49d269bad93d3c6377f05865307c77d35df
[ "Apache-2.0" ]
null
null
null
linear_algebra/eigen_decompostion.py
amoljagadambe/machine-Learning_Tutorials
7e9dc49d269bad93d3c6377f05865307c77d35df
[ "Apache-2.0" ]
null
null
null
""" Eigendecomposition Eigenvalues and eigenvectors are easy to find with Python and NumPy. Remember, an eigenvector of a square matrix A is a nozero vector v such that multiplication by A alters only the scale of v Av=v The scalar is known as the eigenva...
28.046512
116
0.679934
""" Eigendecomposition Eigenvalues and eigenvectors are easy to find with Python and NumPy. Remember, an eigenvector of a square matrix A is a nozero vector v such that multiplication by A alters only the scale of v Av=λv The scalar λ is known as the eigen...
4
0
0
0
0
0
0
18
22
1d9fa3c60a5d2b836bebfb86e23a38007b594916
12,041
py
Python
cogdl/models/nn/gine.py
jkx19/cogdl
089047212442e0ff24784745e94cc6278bac2b30
[ "MIT" ]
null
null
null
cogdl/models/nn/gine.py
jkx19/cogdl
089047212442e0ff24784745e94cc6278bac2b30
[ "MIT" ]
null
null
null
cogdl/models/nn/gine.py
jkx19/cogdl
089047212442e0ff24784745e94cc6278bac2b30
[ "MIT" ]
null
null
null
from .. import BaseModel, register_model from copy import copy import torch import torch.nn as nn import torch_sparse from torch_sparse import SparseTensor, coalesce def make_multihop_edges(data, k): """ Adds edges corresponding to distances up to k to a data object. :param data: torch_geometric.data obj...
32.809264
119
0.583423
from torch_geometric.nn import MessagePassing from .. import BaseModel, register_model from cogdl.utils import spmm, remove_self_loops from copy import copy from ogb.graphproppred.mol_encoder import BondEncoder, AtomEncoder import torch import torch.nn as nn import torch.nn.functional as F import torch_sparse from tor...
0
3,702
0
5,580
0
0
0
165
271
97cdac62f8c0e1b05c2a709958ae3098e4f2fabf
3,982
py
Python
run_noteBlock.py
xuetaolu/functions
6c781016a37502cec0af4fc89c4308bdd0b13fdf
[ "MIT" ]
6
2019-06-02T05:35:18.000Z
2022-01-30T10:31:46.000Z
run_noteBlock.py
xuetaolu/functions
6c781016a37502cec0af4fc89c4308bdd0b13fdf
[ "MIT" ]
1
2020-06-07T08:50:53.000Z
2020-06-07T08:50:53.000Z
run_noteBlock.py
xuetaolu/functions
6c781016a37502cec0af4fc89c4308bdd0b13fdf
[ "MIT" ]
null
null
null
import midiout import sequence import noteMsg # mid # midifile = r'E:\Minecraft1.11\.minecraft\saves\DEMO 4-4 Hack - old\data\functions\Toilet Story 4(black remix 262278 notes) .mid' midifile = r'./mid/-Part.mid' tickRate = 28.0 noteRoot = 66 lineWidth= 8 # from fallingEntity import FallingBlock FB = FallingBlock(...
27.846154
130
0.611753
import midiout import sequence import noteMsg import util import random # 在这里设置传入的mid路径 # midifile = r'E:\Minecraft1.11\.minecraft\saves\DEMO 4-4 Hack - old\data\functions\Toilet Story 4(black remix 262278 notes) .mid' midifile = r'./mid/彩虹猫-Part.mid' tickRate = 28.0 noteRoot = 66 lineWidth= 8 # 常用指令暴露出来 from util i...
189
0
0
0
0
1,449
0
2
132
be9f05e8f4bf14a4724266a22c9be99564de89cf
400
py
Python
apps/python/Brakometer/ACUtils.py
cpiehl/Brakometer
901b8505b7a078fe91e100086b79eee0f9f9b17e
[ "MIT" ]
null
null
null
apps/python/Brakometer/ACUtils.py
cpiehl/Brakometer
901b8505b7a078fe91e100086b79eee0f9f9b17e
[ "MIT" ]
null
null
null
apps/python/Brakometer/ACUtils.py
cpiehl/Brakometer
901b8505b7a078fe91e100086b79eee0f9f9b17e
[ "MIT" ]
null
null
null
import os, sys, platform if platform.architecture()[0] == "64bit": libdir = 'third_party/lib64' else: libdir = 'third_party/lib' sys.path.insert(0, os.path.join(os.path.dirname(__file__), libdir)) os.environ['PATH'] = os.environ['PATH'] + ";."
30.769231
71
0.6875
import os, sys, configparser, platform if platform.architecture()[0] == "64bit": libdir = 'third_party/lib64' else: libdir = 'third_party/lib' sys.path.insert(0, os.path.join(os.path.dirname(__file__), libdir)) os.environ['PATH'] = os.environ['PATH'] + ";." from ctypes import windll def getKeyState(...
0
0
0
0
0
73
0
18
48
222294484c0979419327490ccefd9124fb4d89e9
2,638
py
Python
depccg/printer/auto.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
75
2017-05-01T09:32:56.000Z
2022-03-07T02:57:31.000Z
depccg/printer/auto.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
23
2017-05-10T08:28:57.000Z
2022-02-15T05:15:25.000Z
depccg/printer/auto.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
15
2017-05-08T13:02:33.000Z
2022-03-07T01:40:26.000Z
from depccg.tree import Tree def auto_of(tree: Tree) -> str: """tree string in auto format commonly used in English CCGBank. Args: tree (Tree): tree object Returns: str: tree string in the auto format """ return rec(tree) def auto_flattened_of(tree: Tree) -> str: """tree s...
30.321839
83
0.547384
from depccg.tree import Tree from depccg.utils import normalize, denormalize def auto_of(tree: Tree) -> str: """tree string in auto format commonly used in English CCGBank. Args: tree (Tree): tree object Returns: str: tree string in the auto format """ def rec(node): if ...
0
0
0
0
0
1,695
0
26
103
2df3491abcf2342120b0126cce9cb878338731bc
15,710
py
Python
scripts/solve_network.py
PyPSA/247-cfe
1754309f881f41d3f5335ee374c0a758dbbb4879
[ "MIT" ]
null
null
null
scripts/solve_network.py
PyPSA/247-cfe
1754309f881f41d3f5335ee374c0a758dbbb4879
[ "MIT" ]
null
null
null
scripts/solve_network.py
PyPSA/247-cfe
1754309f881f41d3f5335ee374c0a758dbbb4879
[ "MIT" ]
null
null
null
import pypsa, numpy as np, pandas as pd import logging logger = logging.getLogger(__name__) # Suppress logging of the slack bus choices pypsa.pf.logger.setLevel(logging.WARNING) from vresutils.benchmark import memory_logger # from https://github.com/PyPSA/pypsa-eur-sec/blob/93eb86eec87d34832ebc061697e289eabb38c105...
39.275
184
0.595035
import pypsa, numpy as np, pandas as pd from pypsa.linopt import get_var, linexpr, join_exprs, define_constraints from vresutils.costdata import annuity import logging logger = logging.getLogger(__name__) # Suppress logging of the slack bus choices pypsa.pf.logger.setLevel(logging.WARNING) from vresutils.benchmark ...
0
0
0
0
0
7,272
0
75
135
076477d11f14d8d1e4215f75961454ecd5dab6ef
1,339
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/diagnostics_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/diagnostics_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/diagnostics_profile_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.382353
82
0.64227
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
0
0
0
802
0
0
0
17
46
0e5e5934f34b79d5a65a44a535d26a05d3386794
1,075
py
Python
biblepaycentral/emailalert/tools.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
3
2018-03-18T22:36:20.000Z
2020-02-13T15:52:25.000Z
biblepaycentral/emailalert/tools.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
null
null
null
biblepaycentral/emailalert/tools.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
1
2018-10-16T10:51:11.000Z
2018-10-16T10:51:11.000Z
from django.core.cache import cache from biblepaycentral.emailalert.models import EMailAlert def emailalert_exist(content_type_id, object_id, user): """ Checks if a specific object is in the email alert list. This function is called a lot, so we work with a cached list of the email alerts """ #...
41.346154
86
0.670698
from django.core.cache import cache from django.contrib.contenttypes.models import ContentType from biblepaycentral.emailalert.models import EMailAlert def emailalert_exist(content_type_id, object_id, user): """ Checks if a specific object is in the email alert list. This function is called a lot, so we ...
0
0
0
0
0
0
0
37
23
a411a2f1aa47bc73ae15eda70b91301f710923d7
439
py
Python
disturbance/apps.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/apps.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/apps.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
from __future__ import unicode_literals
27.4375
68
0.715262
from __future__ import unicode_literals from django.apps import AppConfig class DisturbanceConfig(AppConfig): name = 'disturbance' run_once = False def ready(self): if not self.run_once: from disturbance.components.organisations import signals from disturbance.components.p...
0
0
0
341
0
0
0
12
46
1c5cb6a173b17b09ed8d14e98f58a27c7efea0df
7,667
py
Python
networks/ops3d.py
d-v-b/CNNectome
2b1f4786282306edf94b231c9fcf64419d8d1e2a
[ "BSD-2-Clause" ]
null
null
null
networks/ops3d.py
d-v-b/CNNectome
2b1f4786282306edf94b231c9fcf64419d8d1e2a
[ "BSD-2-Clause" ]
null
null
null
networks/ops3d.py
d-v-b/CNNectome
2b1f4786282306edf94b231c9fcf64419d8d1e2a
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import tensorflow as tf def conv_pass( fmaps_in, kernel_size, num_fmaps, activation="relu", name="conv_pass", fov=(1, 1, 1), voxel_size=(1, 1, 1), prefix="", ): """Create a convolution pass:: f_in --> f_1 --> ... --...
27.091873
88
0.558237
from __future__ import print_function import tensorflow as tf import numpy as np def conv_pass( fmaps_in, kernel_size, num_fmaps, activation="relu", name="conv_pass", fov=(1, 1, 1), voxel_size=(1, 1, 1), prefix="", ): """Create a convolution pass:: f_in...
0
0
0
0
0
4,867
0
-3
160
d3aba391147078a78480f568eb77a92ea770e650
535
py
Python
setup.py
HarshalGawali/erpnext_project
801f2160e913137114e5fc18a8b5e3508ba2cb9d
[ "MIT" ]
null
null
null
setup.py
HarshalGawali/erpnext_project
801f2160e913137114e5fc18a8b5e3508ba2cb9d
[ "MIT" ]
null
null
null
setup.py
HarshalGawali/erpnext_project
801f2160e913137114e5fc18a8b5e3508ba2cb9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in dernetz/__init__.py from dernetz import __version__ as version setup( name='dernetz', version=version, description='Cu...
25.47619
62
0.770093
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in dernetz/__init__.py from dernetz import __version__ as version setup( name='dernetz', version=version, description='Cu...
0
0
0
0
0
0
0
0
0
1206d65ca81098b63e0305a36f0d57394da7d3f3
8,533
py
Python
model/task1/base_experiment.py
JohanObluda/ntua-slp-semeval2018
c9c3ad2c05b4b4ea849dee0db13c3f02b52929b6
[ "MIT" ]
null
null
null
model/task1/base_experiment.py
JohanObluda/ntua-slp-semeval2018
c9c3ad2c05b4b4ea849dee0db13c3f02b52929b6
[ "MIT" ]
null
null
null
model/task1/base_experiment.py
JohanObluda/ntua-slp-semeval2018
c9c3ad2c05b4b4ea849dee0db13c3f02b52929b6
[ "MIT" ]
null
null
null
############################################################################################# ## Author: Tung Son Tran ## Modified after C.Baziotis et. al., ############################################################################################# import json import os import sys import argparse sys.path.append('...
43.758974
103
0.485761
############################################################################################# ## Author: Tung Son Tran ## Modified after C.Baziotis et. al., ############################################################################################# import json import os import sys import argparse sys.path.append('...
0
0
0
0
0
0
0
11
0
a2b5e0315f9b6ddb65634fb0f66c1f4e83091177
13,517
py
Python
orator/orm/utils.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/orm/utils.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/orm/utils.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Relations decorators
26.044316
75
0.60472
# -*- coding: utf-8 -*- import types from functools import update_wrapper from .relations.wrapper import Wrapper from .builder import Builder from ..query import QueryBuilder from .relations import ( HasOne, HasMany, HasManyThrough, BelongsTo, BelongsToMany, MorphOne, MorphMany, MorphTo, MorphToMany ) cl...
0
0
0
12,818
0
0
0
159
477
a99c6b2a88005762f20357df9651965de7bb367d
219
py
Python
db_wrapper/client/__init__.py
cheese-drawer/lib-python-db-wrapper
a09016cb6e034cd4190963188a8cb79e5941d439
[ "MIT" ]
null
null
null
db_wrapper/client/__init__.py
cheese-drawer/lib-python-db-wrapper
a09016cb6e034cd4190963188a8cb79e5941d439
[ "MIT" ]
null
null
null
db_wrapper/client/__init__.py
cheese-drawer/lib-python-db-wrapper
a09016cb6e034cd4190963188a8cb79e5941d439
[ "MIT" ]
null
null
null
"""Create a database Client for managing connections & executing queries.""" from typing import Union from .async_client import AsyncClient from .sync_client import SyncClient Client = Union[AsyncClient, SyncClient]
24.333333
76
0.803653
"""Create a database Client for managing connections & executing queries.""" from typing import Union from .async_client import AsyncClient from .sync_client import SyncClient Client = Union[AsyncClient, SyncClient]
0
0
0
0
0
0
0
0
0
5399fc1405ad18987ce66c912362e9850d399215
1,503
py
Python
styler_rest_framework/exceptions/services/__init__.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
3
2020-08-31T06:29:15.000Z
2021-09-08T09:24:52.000Z
styler_rest_framework/exceptions/services/__init__.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
31
2020-08-20T01:27:05.000Z
2022-02-10T07:17:21.000Z
styler_rest_framework/exceptions/services/__init__.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
null
null
null
""" Errors raised by service classes """
27.327273
73
0.698603
""" Errors raised by service classes """ import json class ServiceError(Exception): """Errors raised from services""" def __init__(self, status, response_text): self.status = status self.response_text = response_text def json_body(self): """Parse the response body Retur...
0
0
0
1,233
0
0
0
-10
230
5571b0d040f8736be010d995d88102cf0ad087ec
237
py
Python
redspot/cli.py
tomcatling/redspot
32490c0a2cd6df955be77ce6ed5d9b56d41da235
[ "MIT" ]
null
null
null
redspot/cli.py
tomcatling/redspot
32490c0a2cd6df955be77ce6ed5d9b56d41da235
[ "MIT" ]
null
null
null
redspot/cli.py
tomcatling/redspot
32490c0a2cd6df955be77ce6ed5d9b56d41da235
[ "MIT" ]
null
null
null
from redspot.build import build from redspot.run import run cli.add_command(run.cli, name="run") cli.add_command(build.cli, name="build") if __name__ == "__main__": cli()
13.941176
40
0.691983
import click from redspot.build import build from redspot.run import run @click.group() def cli() -> None: pass cli.add_command(run.cli, name="run") cli.add_command(build.cli, name="build") if __name__ == "__main__": cli()
0
21
0
0
0
0
0
-9
45
79c40ff328fe6815c9b64cacdd72a0e1755d59e9
626
py
Python
blender/arm/logicnode/value_separate_color.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2018-12-04T05:33:53.000Z
2018-12-04T05:33:53.000Z
blender/arm/logicnode/value_separate_color.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2019-12-13T08:16:20.000Z
2019-12-13T08:16:20.000Z
blender/arm/logicnode/value_separate_color.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2020-06-29T07:54:21.000Z
2020-06-29T07:54:21.000Z
add_node(SeparateColorNode, category='Value')
31.3
58
0.675719
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class SeparateColorNode(Node, ArmLogicTreeNode): '''Separate color node''' bl_idname = 'LNSeparateColorNode' bl_label = 'Separate RGB' bl_icon = 'CURVE_PATH' def init(self, context):...
0
0
0
444
0
0
0
24
111
8096608e1290f3937585db6b42f319ddbd976d43
1,672
py
Python
scripts/monitor_orca.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
10
2020-01-16T15:26:57.000Z
2022-01-15T23:12:00.000Z
scripts/monitor_orca.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
2
2020-05-27T21:04:36.000Z
2020-09-26T20:49:53.000Z
scripts/monitor_orca.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
2
2020-09-24T18:44:18.000Z
2021-08-05T20:35:51.000Z
import sys, cctk import pandas as pd from asciichartpy import plot #### This is a script to monitor the output of Orca files. #### In contrast to ``analyze_orca.py``, this script analyzes only one file! #### Usage: ``python monitor_orca.py path/to/output.out`` #### Corin Wagen and Eugene Kwan, 2019 filename = sys...
34.833333
81
0.68122
import sys, cctk import pandas as pd from asciichartpy import plot #### This is a script to monitor the output of Orca files. #### In contrast to ``analyze_orca.py``, this script analyzes only one file! #### Usage: ``python monitor_orca.py path/to/output.out`` #### Corin Wagen and Eugene Kwan, 2019 filename = sys...
0
0
0
0
0
0
0
0
0
e26132f5dbff1c155e86f51a97ab3d6e2b7bce4d
52,746
py
Python
Evtx/Nodes.py
jk1ng/python-evtx
b728831f5f5f5eeb997c48560c2c5af17f91fb46
[ "Apache-2.0" ]
1
2021-04-28T05:28:32.000Z
2021-04-28T05:28:32.000Z
Evtx/Nodes.py
jk1ng/python-evtx
b728831f5f5f5eeb997c48560c2c5af17f91fb46
[ "Apache-2.0" ]
null
null
null
Evtx/Nodes.py
jk1ng/python-evtx
b728831f5f5f5eeb997c48560c2c5af17f91fb46
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # This file is part of python-evtx. # # Copyright 2012, 2013 Willi Ballenthin william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
31.774699
115
0.567361
#!/usr/bin/python # This file is part of python-evtx. # # Copyright 2012, 2013 Willi Ballenthin william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
0
9,452
0
39,162
0
0
0
25
1,236
2f7a6267d5d08c752acad323f5f4df05c68eddb1
3,159
py
Python
backend/alembic/versions/20200810025228_add_licensed_works_layer.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/alembic/versions/20200810025228_add_licensed_works_layer.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/alembic/versions/20200810025228_add_licensed_works_layer.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
"""add licensed works layer Revision ID: 369150228f9d Revises: 603d93ba52ea Create Date: 2020-08-10 02:52:28.638544 """ # revision identifiers, used by Alembic. revision = '369150228f9d' down_revision = '603d93ba52ea' branch_labels = None depends_on = None
33.606383
104
0.580247
"""add licensed works layer Revision ID: 369150228f9d Revises: 603d93ba52ea Create Date: 2020-08-10 02:52:28.638544 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '369150228f9d' down_revision = '603d93ba52ea' branch_labels = None depends_on = None def upgrad...
0
0
0
0
0
2,803
0
3
90
61191d0584df0097e62dc67ef2fbf2e33def4a74
3,248
py
Python
AlexNet/main.py
MeetXinZhang/Networks_In_Tensorflow
4e2b6f0574661a3e6348ba92ffec57318e242b7c
[ "Apache-2.0" ]
2
2020-01-07T13:34:23.000Z
2020-02-22T14:39:42.000Z
AlexNet/main.py
MeetXinZhang/Networks_In_Tensorflow
4e2b6f0574661a3e6348ba92ffec57318e242b7c
[ "Apache-2.0" ]
null
null
null
AlexNet/main.py
MeetXinZhang/Networks_In_Tensorflow
4e2b6f0574661a3e6348ba92ffec57318e242b7c
[ "Apache-2.0" ]
6
2018-01-13T03:03:06.000Z
2019-01-10T12:14:41.000Z
# encoding: utf-8 """ """ import numpy as np import tensorflow as tf from AlexNet import training_graph as tg, args_manager as am, input_local_data as ild, caffe_classes import cv2 session = tf.InteractiveSession() # --------------------------------- build a graph --------------------------- args = am.ArgumentManage...
33.484536
102
0.594212
# encoding: utf-8 """ 主函数 """ import numpy as np import tensorflow as tf from AlexNet import training_graph as tg, args_manager as am, input_local_data as ild, caffe_classes import cv2 session = tf.InteractiveSession() # --------------------------------- build a graph --------------------------- args = am.ArgumentMan...
468
0
0
0
0
0
0
0
0
da9687c4ef317e6d0fb14b0cba7f472a79421b4e
1,493
py
Python
testapp1/tests/test_role.py
gabrielbiasi/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
12
2018-03-22T00:30:32.000Z
2021-04-24T16:26:08.000Z
testapp1/tests/test_role.py
s-sys/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
27
2018-03-18T00:43:37.000Z
2020-06-05T18:09:18.000Z
testapp1/tests/test_role.py
gabrielbiasi/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
2
2018-03-28T17:54:43.000Z
2021-01-11T21:17:08.000Z
""" RoleManager tests """
29.86
76
0.681179
""" RoleManager tests """ from django.apps import apps from django.test import TestCase from improved_permissions.exceptions import ImproperlyConfigured, NotAllowed from improved_permissions.roles import ALL_MODELS, Role, RoleManager from testapp1 import roles class Advisor(Role): verbose_name = "Advisor" mo...
0
0
0
1,183
0
0
0
125
157
d44e1059e9a346eab0f8fd0789563e6fae139b44
142
py
Python
code/boot.py
luftdaten-at/station-v2-3-firmware
9966f61167ed7904aa47b943f47c59916625e915
[ "MIT" ]
null
null
null
code/boot.py
luftdaten-at/station-v2-3-firmware
9966f61167ed7904aa47b943f47c59916625e915
[ "MIT" ]
null
null
null
code/boot.py
luftdaten-at/station-v2-3-firmware
9966f61167ed7904aa47b943f47c59916625e915
[ "MIT" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) import esp esp.osdebug(None) #import webrepl #webrepl.start()
23.666667
75
0.753521
# This file is executed on every boot (including wake-boot from deepsleep) import esp esp.osdebug(None) #import webrepl #webrepl.start()
0
0
0
0
0
0
0
0
0
404ef195ca830cae3714efdfc1b8d41fc545f5e4
253
py
Python
Desafios/exerc26.py
pedronb/Exercicios-Python
54db2ce48bbbba94a4ac25b32b3c1fd985347857
[ "MIT" ]
null
null
null
Desafios/exerc26.py
pedronb/Exercicios-Python
54db2ce48bbbba94a4ac25b32b3c1fd985347857
[ "MIT" ]
null
null
null
Desafios/exerc26.py
pedronb/Exercicios-Python
54db2ce48bbbba94a4ac25b32b3c1fd985347857
[ "MIT" ]
null
null
null
# Exerccio Python 26: Faa um programa que calcule a soma entre todos os nmeros que so mltiplos de trs e que se encontram no intervalo de 1 at 500. soma = 0 for i in range(1, 501): if i % 2 != 0 and i % 3 == 0: soma += i print(soma)
28.111111
153
0.656126
# Exercício Python 26: Faça um programa que calcule a soma entre todos os números que são múltiplos de três e que se encontram no intervalo de 1 até 500. soma = 0 for i in range(1, 501): if i % 2 != 0 and i % 3 == 0: soma += i print(soma)
14
0
0
0
0
0
0
0
0
d35b59131539dc6191867caac93e48949d0595d5
2,430
py
Python
toio_API/utils/toio.py
Yoshi-0921/toio_API
5642a8c9813d7acde440f6c6160b7c69f4396682
[ "MIT" ]
10
2021-04-22T06:06:43.000Z
2022-01-31T14:10:54.000Z
toio_API/utils/toio.py
Yoshi-0921/toio_API
5642a8c9813d7acde440f6c6160b7c69f4396682
[ "MIT" ]
null
null
null
toio_API/utils/toio.py
Yoshi-0921/toio_API
5642a8c9813d7acde440f6c6160b7c69f4396682
[ "MIT" ]
1
2021-06-23T02:18:17.000Z
2021-06-23T02:18:17.000Z
# -*- coding: utf-8 -*-
27.303371
107
0.651852
# -*- coding: utf-8 -*- from bleak import BleakClient from toio_API.characteristics import ( Battery, Button, Configuration, Lamp, MagneticSensor, MotionSensor, Motor, Reader, Sound, ) class Toio: """The toio cube to control. For more information, please refer to https://t...
0
643
0
1,541
0
0
0
153
68
ed00ed809eaec7004b0b8cbc83263e226b6f6583
11,725
py
Python
third_party/motivational_component/src/motivational_node.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
third_party/motivational_component/src/motivational_node.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
third_party/motivational_component/src/motivational_node.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
1
2018-07-24T09:15:06.000Z
2018-07-24T09:15:06.000Z
#!/usr/bin/env python try: except ImportError: SIMULATION = True else: SIMULATION = False if __name__ == '__main__': MotivationnalComponent()
36.987382
168
0.639829
#!/usr/bin/env python import rospy import json import contextlib import time from std_msgs.msg import * from motivational_component.msg import * from motivational_component.srv import * import signal import sys try: from sensor_msgs.msg import BatteryState except ImportError: SIMULATION = True else: SIM...
0
0
0
11,286
0
0
0
10
273
a8e5f5d53593ec4d125180793fbad4e79fb0dde3
13,284
py
Python
split.py
suhyeon0123/SplitRegex
b5f2fe890d81d335cda30ddd10414fbc75537d0e
[ "Apache-2.0" ]
null
null
null
split.py
suhyeon0123/SplitRegex
b5f2fe890d81d335cda30ddd10414fbc75537d0e
[ "Apache-2.0" ]
null
null
null
split.py
suhyeon0123/SplitRegex
b5f2fe890d81d335cda30ddd10414fbc75537d0e
[ "Apache-2.0" ]
null
null
null
import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'submodels', 'SoftConciseNormalForm'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'submodels', 'RegexGenerator'))) import submodels.SCNF.synthesizer
38.282421
220
0.584613
import torch import os, sys from multiprocessing import Process, Manager sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'submodels', 'SoftConciseNormalForm'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'submodels', 'RegexGenerator'))) from collections import Co...
0
0
0
70
0
12,316
0
171
453
edf24d4c3784e12dad0729e71934d60065d844a3
708
py
Python
public/temp1.py
Srivatsan177/TLE
46cb94dc9672830c2f0169135e4c34208c47b9bf
[ "MIT" ]
null
null
null
public/temp1.py
Srivatsan177/TLE
46cb94dc9672830c2f0169135e4c34208c47b9bf
[ "MIT" ]
4
2021-03-10T05:33:04.000Z
2022-02-26T22:49:05.000Z
public/temp1.py
Srivatsan177/TLE
46cb94dc9672830c2f0169135e4c34208c47b9bf
[ "MIT" ]
null
null
null
import joblib import sys # print("Hello World") model=joblib.load("model.h5") result=model.predict([[float(sys.argv[1]),float(sys.argv[2]),float(sys.argv[3]),float(sys.argv[4]),float(sys.argv[5]),float(sys.argv[6]),float(sys.argv[7])]]) result=result[0] if result==1: print("Tomato") elif result==2: print("Potat...
24.413793
158
0.670904
import joblib import sys from sklearn.tree import DecisionTreeClassifier # print("Hello World") model=joblib.load("model.h5") result=model.predict([[float(sys.argv[1]),float(sys.argv[2]),float(sys.argv[3]),float(sys.argv[4]),float(sys.argv[5]),float(sys.argv[6]),float(sys.argv[7])]]) result=result[0] if result==1: ...
0
0
0
0
0
0
0
26
22
beb87728404d3cb5d6c90f4c11b80a422985593e
706
py
Python
lldb/test/API/lang/c/unicode/TestUnicodeSymbols.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
lldb/test/API/lang/c/unicode/TestUnicodeSymbols.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
3,180
2019-10-18T01:21:21.000Z
2022-03-31T23:25:41.000Z
lldb/test/API/lang/c/unicode/TestUnicodeSymbols.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
# coding=utf8 import lldbsuite.test.lldbutil as lldbutil
30.695652
91
0.70255
# coding=utf8 import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.decorators import * class TestUnicodeSymbols(TestBase): mydir = TestBase.compute_mydir(__file__) @expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'], debug_info="dsy...
2
447
0
87
0
0
0
24
89
cc35d7888c560e30ae330d8f4ae7c57b4dacbed1
92
py
Python
parameters_10000.py
stellacpj/Dr-Peng
b8e81ae1d34ea062f176634d91e1254291d6191c
[ "BSD-3-Clause" ]
null
null
null
parameters_10000.py
stellacpj/Dr-Peng
b8e81ae1d34ea062f176634d91e1254291d6191c
[ "BSD-3-Clause" ]
null
null
null
parameters_10000.py
stellacpj/Dr-Peng
b8e81ae1d34ea062f176634d91e1254291d6191c
[ "BSD-3-Clause" ]
null
null
null
password="pbkdf2(1000,20,sha512)$a3a3bce6673b9c58$b1659a51cdaac695c2cea3435527a5d08515c3d1"
46
91
0.891304
password="pbkdf2(1000,20,sha512)$a3a3bce6673b9c58$b1659a51cdaac695c2cea3435527a5d08515c3d1"
0
0
0
0
0
0
0
0
0
b41c50200612b1b44a94cf55ca46594fe524145e
4,170
py
Python
grow/cache/routes_cache.py
tabulon-ext/grow
2929c3e9b467a7768d5b5055fe965fbb5106603f
[ "MIT" ]
335
2016-04-02T20:12:21.000Z
2022-03-28T18:55:26.000Z
grow/cache/routes_cache.py
tabulon-ext/grow
2929c3e9b467a7768d5b5055fe965fbb5106603f
[ "MIT" ]
784
2016-04-01T16:56:41.000Z
2022-03-05T01:25:34.000Z
grow/cache/routes_cache.py
tabulon-ext/grow
2929c3e9b467a7768d5b5055fe965fbb5106603f
[ "MIT" ]
54
2016-05-03T13:06:15.000Z
2021-09-24T04:46:23.000Z
""" Cache for storing and retrieving routing information in a pod. """ FILE_ROUTES_CACHE = 'routescache.json'
33.095238
86
0.552038
""" Cache for storing and retrieving routing information in a pod. """ from grow.routing import router FILE_ROUTES_CACHE = 'routescache.json' class RoutesCache(object): """Routes cache for caching routing data in a pod.""" KEY_CONCRETE = 'concrete' KEY_DYNAMIC = 'dynamic' KEY_NONE = '__None__' ...
0
723
0
3,278
0
0
0
10
46
5eb7c99050d4e2b16f0947d016a80cfd82b7e8e0
80
py
Python
test/__init__.py
Wizmann/Melkweg
04ea3a70650df2312ab5f80e355e43e1b2e83b86
[ "MIT" ]
23
2017-10-26T13:51:17.000Z
2020-04-28T00:06:56.000Z
test/__init__.py
Wizmann/Melkweg
04ea3a70650df2312ab5f80e355e43e1b2e83b86
[ "MIT" ]
4
2017-11-03T02:58:10.000Z
2020-03-12T06:25:22.000Z
test/__init__.py
Wizmann/Melkweg
04ea3a70650df2312ab5f80e355e43e1b2e83b86
[ "MIT" ]
6
2017-10-26T18:29:05.000Z
2019-09-16T23:47:59.000Z
#coding=utf-8 import os import sys sys.path.insert(0, os.path.abspath('src'))
11.428571
42
0.7125
#coding=utf-8 import os import sys sys.path.insert(0, os.path.abspath('src'))
0
0
0
0
0
0
0
0
0
90c4143d466cb79c3fc483f709341546a5611433
615
py
Python
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 668: Square root smooth Numbers # https://projecteuler.net/problem=668 # # A positive integer is called square root smooth if all of its prime factors # are strictly less than its square root. Including the number $1$, there are # $29$ square root smooth numbers not exceeding $...
26.73913
78
0.705691
# Solution of; # Project Euler Problem 668: Square root smooth Numbers # https://projecteuler.net/problem=668 # # A positive integer is called square root smooth if all of its prime factors # are strictly less than its square root. Including the number $1$, there are # $29$ square root smooth numbers not exceeding $...
0
0
0
0
0
1
0
0
23
560384029dd5eb466cd4f5670345bb8638acb479
988
py
Python
call_treatment/views.py
iPhosgen/carrierx-demo-apps
9fc51c063c436d8a15c53f56584c2a0ccd112b23
[ "MIT" ]
null
null
null
call_treatment/views.py
iPhosgen/carrierx-demo-apps
9fc51c063c436d8a15c53f56584c2a0ccd112b23
[ "MIT" ]
1
2021-06-11T00:03:23.000Z
2021-06-11T00:03:23.000Z
call_treatment/views.py
iPhosgen/carrierx-demo-apps
9fc51c063c436d8a15c53f56584c2a0ccd112b23
[ "MIT" ]
null
null
null
DIAL_PARAMETERS = ("reason", "text_or_audio")
31.870968
85
0.617409
from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt import re DIAL_PARAMETERS = ("reason", "text_or_audio") @csrf_exempt def call_treatment(request): text_or_audio = ( { "value": request.GET.get("text_or_audio"), "is_url": re.match(r"^https?://...
0
818
0
0
0
0
0
33
89
696414f0af918db654b9e68028aa75d4c552374d
1,464
py
Python
vilya/views/settings/ssh.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
vilya/views/settings/ssh.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
vilya/views/settings/ssh.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import _q_exports = []
29.28
63
0.58265
# -*- coding: utf-8 -*- from __future__ import absolute_import from vilya.libs.template import st from vilya.models.sshkey import SSHKey _q_exports = [] def _q_index(request): errors = [] key_lines = '' user = request.user sshkeys = user.sshkeys if request.method == "POST": key_lines = ...
0
0
0
0
0
1,260
0
30
91
f0295886d37790223d3bdebbfc2d768937facfbf
3,464
py
Python
pogom/search.py
Metalgearay/PokemonGo-Map-Gui-Edition
43b2db216db1bfddd6e7a7ee2f6a93bdfe3aff04
[ "MIT" ]
4
2016-07-22T18:19:22.000Z
2016-08-04T02:28:51.000Z
pogom/search.py
Metalgearay/PokemonGo-Map-Gui-Edition
43b2db216db1bfddd6e7a7ee2f6a93bdfe3aff04
[ "MIT" ]
null
null
null
pogom/search.py
Metalgearay/PokemonGo-Map-Gui-Edition
43b2db216db1bfddd6e7a7ee2f6a93bdfe3aff04
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging from pgoapi import PGoApi log = logging.getLogger(__name__) TIMESTAMP = '\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000' REQ_SLEEP = 1 failed_consecutive = 0 api = PGoApi()
33.307692
131
0.625
#!/usr/bin/python # -*- coding: utf-8 -*- import logging import time import sys from pgoapi import PGoApi from pgoapi.utilities import f2i, get_cellid from . import config from .models import parse_map log = logging.getLogger(__name__) TIMESTAMP = '\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00...
0
0
0
0
378
2,567
0
9
226
a4e2bc79f1a5e95855ec1f9086a5ea873ba19da3
1,694
py
Python
scripts/verify-primer.py
jiarong/uniqprimer
e3c6c13402d77143ec21c12ddb7c12f417427bc3
[ "MIT" ]
1
2021-08-30T12:54:34.000Z
2021-08-30T12:54:34.000Z
scripts/verify-primer.py
jiarong/uniqprimer
e3c6c13402d77143ec21c12ddb7c12f417427bc3
[ "MIT" ]
null
null
null
scripts/verify-primer.py
jiarong/uniqprimer
e3c6c13402d77143ec21c12ddb7c12f417427bc3
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals if __name__ == '__main__': main()
26.061538
68
0.502361
from __future__ import print_function, unicode_literals import sys import os import screed def RC(seq): if isinstance(seq, bytes): seq = seq.decode('utf-8') table = {ord('A'):'T', ord('T'):'A', ord('C'):'G', ord('G'):'C'} rc = seq.translate(table) return rc[::-1] def parse_primer_summary(f):...
0
0
0
0
0
1,493
0
-31
137
f6fc4b17f48a533b6bea9a444b05882eaa50f62b
415
py
Python
pipeline/templates/estimation.py
OpenSourceEconomics/pipeline
cdd9679c62af32f52a07aba800b752e90af08396
[ "BSD-3-Clause" ]
3
2020-03-23T12:15:19.000Z
2020-05-12T11:52:21.000Z
pipeline/templates/estimation.py
OpenSourceEconomics/pipeline
cdd9679c62af32f52a07aba800b752e90af08396
[ "BSD-3-Clause" ]
22
2020-04-06T22:24:18.000Z
2020-05-13T11:44:57.000Z
pipeline/templates/estimation.py
OpenSourceEconomics/pipeline
cdd9679c62af32f52a07aba800b752e90af08396
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import joblib import pandas as pd import statsmodels.formula.api as smf {% include 'load_data.py' %}
15.37037
47
0.650602
import numpy as np import joblib import pandas as pd import statsmodels.formula.api as smf {% include 'load_data.py' %} def fit_model(df): {% block estimation_method %}{% endblock %} return model def save_model(model): joblib.dump(model, "{{ produces }}") def main(): df = load_data("{{ depends_o...
0
0
0
0
0
269
0
0
23
0606742e9157a129363631989654b07c421f9f7c
1,305
py
Python
finance_ml/multiprocessing/partition.py
zli69/finance_ml
1c5a0e5b7d65e7c97aa9ad361b6656e870e4d0d4
[ "MIT" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
finance_ml/multiprocessing/partition.py
xaviergoby/finance_ml
c348556fa3e13417e8fcf02999f42d5e72f0501b
[ "MIT" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
finance_ml/multiprocessing/partition.py
xaviergoby/finance_ml
c348556fa3e13417e8fcf02999f42d5e72f0501b
[ "MIT" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import numpy as np def linear_parts(num_atoms, num_threads): """Linear partitions Parameters ---------- num_atoms: int The number of data points num_threads: int The number of partitions to split Returns ------- array: indices of start and end """ parts = np.l...
26.1
96
0.604598
import numpy as np def linear_parts(num_atoms, num_threads): """Linear partitions Parameters ---------- num_atoms: int The number of data points num_threads: int The number of partitions to split Returns ------- array: indices of start and end """ parts = np.l...
0
0
0
0
0
0
0
0
0
c8e43f0c320acbb474f9dbcf0f434031bb682440
778
py
Python
001383WiseplatMarathPyBegin/day7_igra-kamen-nozhnicy-bumaga.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001383WiseplatMarathPyBegin/day7_igra-kamen-nozhnicy-bumaga.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001383WiseplatMarathPyBegin/day7_igra-kamen-nozhnicy-bumaga.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- igrok1 = 0 igrok2 = 0 win = 0 draw = 0 lose = 0 list_choises = ['', '', ''] print("( - 1, - 2, - 3) 1, :") igrok1 = verify(igrok1, 1) igrok2 = verify(igrok2, 2)
29.923077
89
0.580977
# -*- coding: utf-8 -*- igrok1 = 0 igrok2 = 0 win = 0 draw = 0 lose = 0 list_choises = ['Камень', 'Ножницы', 'Бумага'] def verify(igrok, num): igrok = int(input()) while 1 < igrok > 3: print("Введен некорректный номер") print("(Камень - 1, Ножницы - 2, Бумага - 3) Игрок %s, введите ваш номер:" ...
306
0
0
0
0
411
0
0
23
36d50b77a1e15d3e726893bda5c0d80cc25994c0
3,988
py
Python
benchmarks/random/RandomCircuits.py
vraoresearch/openqasm
d6c0f36ef4ea0fccdf476589959fa61e05841cbe
[ "Apache-2.0" ]
null
null
null
benchmarks/random/RandomCircuits.py
vraoresearch/openqasm
d6c0f36ef4ea0fccdf476589959fa61e05841cbe
[ "Apache-2.0" ]
null
null
null
benchmarks/random/RandomCircuits.py
vraoresearch/openqasm
d6c0f36ef4ea0fccdf476589959fa61e05841cbe
[ "Apache-2.0" ]
1
2020-12-13T23:04:19.000Z
2020-12-13T23:04:19.000Z
""" Generate randomized circuits for Quantum Volume analysis. Example run: python RandomCircuits.py -n 5 -d 5 """ import sys import math import numpy as np from scipy.linalg import qr from scipy.linalg import det from qiskit import QuantumProgram from qiskit.mapper import two_qubit_kak if sys.version_info < (3,0):...
39.485149
100
0.588766
""" Generate randomized circuits for Quantum Volume analysis. Example run: python RandomCircuits.py -n 5 -d 5 """ import sys import math import time import argparse import numpy as np from scipy.linalg import qr from scipy.linalg import det from qiskit import QuantumProgram from qiskit.mapper import two_qubit_kak ...
0
0
0
0
0
799
0
-16
67
3670c15b8294cf0493c2b458db012dfa2f8fa48c
436
py
Python
Task1E.py
lpender3672/PartIA-Flood-Warning-System
983fbe29e8793a15c6659eb48a4d8ed81358a649
[ "MIT" ]
1
2022-02-24T14:26:40.000Z
2022-02-24T14:26:40.000Z
Task1E.py
lpender3672/PartIA-Flood-Warning-System
983fbe29e8793a15c6659eb48a4d8ed81358a649
[ "MIT" ]
null
null
null
Task1E.py
lpender3672/PartIA-Flood-Warning-System
983fbe29e8793a15c6659eb48a4d8ed81358a649
[ "MIT" ]
1
2022-01-26T18:24:24.000Z
2022-01-26T18:24:24.000Z
if __name__ == "__main__": print("*** Task 1D: CUED Part IA Flood Warning System ***") run()
33.538462
120
0.738532
from floodsystem.geo import rivers_by_station_number from floodsystem.stationdata import build_station_list def run(): stations = build_station_list() print('Printing tuple list of rivers with the most stations. Rivers with the same number of stations are included.') print(rivers_by_station_number...
0
0
0
0
0
204
0
64
67
f751565273807ef64e34e16513b8f0dad828cb9d
3,246
py
Python
test/model.py
kasimte/Pytorch-pensieve
e550d9c36ed35b49592955fefbc17d1424d37b3b
[ "MIT" ]
null
null
null
test/model.py
kasimte/Pytorch-pensieve
e550d9c36ed35b49592955fefbc17d1424d37b3b
[ "MIT" ]
null
null
null
test/model.py
kasimte/Pytorch-pensieve
e550d9c36ed35b49592955fefbc17d1424d37b3b
[ "MIT" ]
null
null
null
from __future__ import division import torch.nn as nn # class agentNET(torch.nn.Module): # def __init__(self, num_inputs = 1, num_outputs = 6): # super(agentNET, self).__init__() # # self.conv1 = nn.Conv1d(num_inputs, 16, 3, stride=1, padding=1) # self.conv2 = nn.Conv1d(16, 16, 2, stride=1)...
31.514563
72
0.579482
from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from utils import norm_col_init, weights_init # class agentNET(torch.nn.Module): # def __init__(self, num_inputs = 1, num_outputs = 6): # super(agentNET, self).__init__() # # self.conv1 = nn.Conv1d(nu...
0
0
0
1,606
0
0
0
25
89
1b4f3e712ca7c7736a87da806dc2445b80261cc0
2,419
py
Python
documental/extract/html.py
DennisMerkus/documental
9d97359c68274937647ed80158b67054d0e53d05
[ "MIT" ]
null
null
null
documental/extract/html.py
DennisMerkus/documental
9d97359c68274937647ed80158b67054d0e53d05
[ "MIT" ]
1
2020-08-10T14:43:49.000Z
2020-08-10T14:43:49.000Z
documental/extract/html.py
DennisMerkus/documental
9d97359c68274937647ed80158b67054d0e53d05
[ "MIT" ]
null
null
null
from typing import Dict from documental.html import (Style) styles: Dict[str, Style] = { "b": Style.Bold, "i": Style.Italics, "del": Style.Strikethrough, "ins": Style.Underlined, "em": Style.Emphasis, "u": Style.Misspelled, "small": Style.Small, }
23.950495
79
0.641174
import logging from typing import Dict, Optional from bs4 import BeautifulSoup, NavigableString from documental import Document from documental.html import ( BareLink, Figure, Heading, Image, Images, Link, UnorderedList, Style, StyledText, ) from documental.text import Text from ....
0
0
0
0
0
1,705
0
179
251
a6b860f8fd872f38a501d0ef7bb1308c42ab945d
1,323
py
Python
testlib.py
wallissoncarvalho/satellite-precipitation
845fee7712bd9fd7acd7498bb4d177e0b664e44d
[ "MIT" ]
1
2021-03-10T14:36:31.000Z
2021-03-10T14:36:31.000Z
testlib.py
wallissoncarvalho/satellite-precipitation
845fee7712bd9fd7acd7498bb4d177e0b664e44d
[ "MIT" ]
null
null
null
testlib.py
wallissoncarvalho/satellite-precipitation
845fee7712bd9fd7acd7498bb4d177e0b664e44d
[ "MIT" ]
null
null
null
""" Created on Wed Jul 22 22:27:09 2020 @author: wallissoncarvalho """ from nasadap import Nasa, parse_nasa_catalog import json # Parameters Definition credentials = json.loads(open(".earthdata_credentials").read()) product_summary = {'mission': 'gpm', 'product': '3IMERGHH', 'version': 6, 'dataset_type': 'precipitat...
35.756757
120
0.681028
""" Created on Wed Jul 22 22:27:09 2020 @author: wallissoncarvalho """ from nasadap import Nasa, parse_nasa_catalog import json # Parameters Definition credentials = json.loads(open(".earthdata_credentials").read()) product_summary = {'mission': 'gpm', 'product': '3IMERGHH', 'version': 6, 'dataset_type': 'precipitat...
0
0
0
0
0
0
0
0
0
41f8721838bcd4a81b29dcd9155408e62b849c1c
1,035
py
Python
param_file_generator.py
MikeVasmer/Sweep-Decoder-Boundaries
5acd1d94303333fda0d2a1e206ee884f9b372fe9
[ "MIT" ]
null
null
null
param_file_generator.py
MikeVasmer/Sweep-Decoder-Boundaries
5acd1d94303333fda0d2a1e206ee884f9b372fe9
[ "MIT" ]
2
2020-04-03T00:33:11.000Z
2021-12-02T20:22:57.000Z
param_file_generator.py
MikeVasmer/Sweep-Decoder-Boundaries
5acd1d94303333fda0d2a1e206ee884f9b372fe9
[ "MIT" ]
1
2021-02-22T19:48:24.000Z
2021-02-22T19:48:24.000Z
if __name__ == "__main__": with open("params.txt", "w") as param_file: N_list = [0] # N_list = [16, 64] # N_list = [128, 256, 512, 1024, 2048, 4096] L_list = [16, 20, 24, 28] p_list = {} p_list[0] = [0.19, 0.195, 0.2, 0.205, 0.21] p_list[16] = [0.0...
35.689655
64
0.428986
if __name__ == "__main__": with open("params.txt", "w") as param_file: N_list = [0] # N_list = [16, 64] # N_list = [128, 256, 512, 1024, 2048, 4096] L_list = [16, 20, 24, 28] p_list = {} p_list[0] = [0.19, 0.195, 0.2, 0.205, 0.21] p_list[16] = [0.0...
0
0
0
0
0
0
0
0
0
fbfdcabed2ba94f655db017581592ebe17f8b733
3,286
py
Python
testing/cornertester.py
SpaceMeerkat/Corellia
b6d21286d3afa5896f57a5a7872584bdaa0ae942
[ "MIT" ]
1
2021-02-12T10:13:15.000Z
2021-02-12T10:13:15.000Z
testing/cornertester.py
SpaceMeerkat/Corellia
b6d21286d3afa5896f57a5a7872584bdaa0ae942
[ "MIT" ]
null
null
null
testing/cornertester.py
SpaceMeerkat/Corellia
b6d21286d3afa5896f57a5a7872584bdaa0ae942
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 1 08:40:54 2020 @author: james A script for making a corner plot of a tested galaxy using the trained CAE. """ # ============================================================================= # Import relevant packages # ==========================...
29.872727
127
0.45496
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 1 08:40:54 2020 @author: james A script for making a corner plot of a tested galaxy using the trained CAE. """ # ============================================================================= # Import relevant packages # ==========================...
0
0
0
0
0
58
0
0
23
3580aa6acbff77fb0a941fcef90e2154bbbf391b
950
py
Python
env/lib/python2.7/site-packages/sklearn/utils/tests/test_fixes.py
Ram-Aditya/Healthcare-Data-Analytics
d1a15d2cc067410f82a9ded25f7a782ef56b4729
[ "MIT" ]
5
2015-10-03T20:46:17.000Z
2020-06-20T17:40:05.000Z
net-p3/lib/python3.5/site-packages/sklearn/utils/tests/test_fixes.py
uglyboxer/linear_neuron
a18879982385185ce2bb65b2ae5dc4293bdfc34b
[ "MIT" ]
5
2021-03-19T08:36:48.000Z
2022-01-13T01:52:34.000Z
net-p3/lib/python3.5/site-packages/sklearn/utils/tests/test_fixes.py
uglyboxer/linear_neuron
a18879982385185ce2bb65b2ae5dc4293bdfc34b
[ "MIT" ]
1
2021-04-22T11:53:31.000Z
2021-04-22T11:53:31.000Z
# Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Justin Vincent # Lars Buitinck # License: BSD 3 clause
30.645161
79
0.672632
# Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Justin Vincent # Lars Buitinck # License: BSD 3 clause import numpy as np from nose.tools import assert_equal from numpy.testing import (assert_almost_equal, assert_array_almost_equal) from sklearn.utils.fixes im...
0
0
0
0
0
563
0
115
137
62cd77f5ed4e269ed5553ba1b8d82b66eda08c89
210
py
Python
vispy/util/ordereddict.py
mssurajkaiga/vispy-experiments
0f3a19e0f4ac46608da792cbd36ebe59b036bce7
[ "BSD-3-Clause" ]
1
2017-06-12T16:24:11.000Z
2017-06-12T16:24:11.000Z
vispy/util/ordereddict.py
mssurajkaiga/vispy-experiments
0f3a19e0f4ac46608da792cbd36ebe59b036bce7
[ "BSD-3-Clause" ]
null
null
null
vispy/util/ordereddict.py
mssurajkaiga/vispy-experiments
0f3a19e0f4ac46608da792cbd36ebe59b036bce7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from sys import version_info if version_info[0] > 2 or version_info[1] >= 7: from collections import OrderedDict else:
26.25
55
0.690476
# -*- coding: utf-8 -*- from sys import version_info if version_info[0] > 2 or version_info[1] >= 7: from collections import OrderedDict else: from ._py24_ordereddict import OrderedDict # noqa
0
0
0
0
0
0
0
21
35
2361dd7b60c34b79d5e9b0614441b9ab05c5112e
102
py
Python
others/read_csv.py
raghuramshankar/kalman-filter-localization
9bd657b2de9527a9d01df1a5a9f94c7ddfbc6674
[ "MIT" ]
3
2021-07-14T23:09:17.000Z
2021-11-26T13:10:59.000Z
others/read_csv.py
raghuramshankar/kalman-filter
9bd657b2de9527a9d01df1a5a9f94c7ddfbc6674
[ "MIT" ]
null
null
null
others/read_csv.py
raghuramshankar/kalman-filter
9bd657b2de9527a9d01df1a5a9f94c7ddfbc6674
[ "MIT" ]
2
2020-12-07T14:17:16.000Z
2021-08-17T08:00:46.000Z
import pandas as pd AMZ_data = pd.read_csv('AMZ_data_resample_gps.csv') print(len(AMZ_data.lat))
20.4
52
0.754902
import pandas as pd AMZ_data = pd.read_csv('AMZ_data_resample_gps.csv') print(len(AMZ_data.lat))
0
0
0
0
0
0
0
0
0
6234186da35c43cfa332d42ffa48287e555533e8
2,843
py
Python
scripts/spacekit_.py
alphasentaurii/starskope
ca7d47b448286756a124a6dfd425fe99148b7468
[ "MIT" ]
2
2020-02-22T18:18:19.000Z
2020-03-23T21:11:47.000Z
scripts/spacekit_.py
alphasentaurii/starskope
ca7d47b448286756a124a6dfd425fe99148b7468
[ "MIT" ]
null
null
null
scripts/spacekit_.py
alphasentaurii/starskope
ca7d47b448286756a124a6dfd425fe99148b7468
[ "MIT" ]
1
2020-03-28T19:03:23.000Z
2020-03-28T19:03:23.000Z
import sys import spacekit if __name__ == '__main__': prep = Prep() prep.unzip('/exoTrain.csv.zip', '/exoTest.csv.zip') X_train, X_test, y_train, y_test = prep.split_data('/exoTrain.csv', '/exoTest.csv') X_train, X_test = prep.scale_data(X_train, X_test) X_train, X_test = prep.add_filter(X_train, X...
31.241758
87
0.640169
import os, sys import zipfile import numpy as np import spacekit from spacekit.transformer import Transformer from spacekit.builder import Builder def main(argv): print(len(argv)) if len(argv) < 2: learning_rate=float(1e-5) epochs=int(5) else: learning_rate = float(argv[1]) ...
0
0
0
1,919
0
205
0
26
183
be1c38658e71affd446ead85f6ba255c0a727ecd
7,520
py
Python
apps/challenges/management/commands/identicon.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
23
2015-05-27T15:10:49.000Z
2021-06-07T01:57:43.000Z
apps/challenges/management/commands/identicon.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2018-02-07T19:40:37.000Z
2018-08-18T10:11:07.000Z
apps/challenges/management/commands/identicon.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
15
2015-04-04T14:11:11.000Z
2020-01-14T06:55:40.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ identicon.py identicon python implementation. by Shin Adachi <shn@glucose.jp> = usage = == commandline == >>> python identicon.py [code] == python == >>> import identicon >>> identicon.render_identicon(code, size) Return a PIL Image class instance which have generate...
29.034749
96
0.472473
#!/usr/bin/env python # -*- coding:utf-8 -*- """ identicon.py identicon python implementation. by Shin Adachi <shn@glucose.jp> = usage = == commandline == >>> python identicon.py [code] == python == >>> import identicon >>> identicon.render_identicon(code, size) Return a PIL Image class instance which have generate...
0
604
0
5,649
0
118
0
0
92
e04b1a80719aba51add9315962024462726aec87
21,547
py
Python
examples/run_squad.py
saikalyan9981/pytorch-pretrained-BERT
620f2c109cf7c506de7100e1133b5b2812de3c55
[ "Apache-2.0" ]
null
null
null
examples/run_squad.py
saikalyan9981/pytorch-pretrained-BERT
620f2c109cf7c506de7100e1133b5b2812de3c55
[ "Apache-2.0" ]
null
null
null
examples/run_squad.py
saikalyan9981/pytorch-pretrained-BERT
620f2c109cf7c506de7100e1133b5b2812de3c55
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
54.274559
148
0.635448
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
0
0
0
0
0
19,787
0
406
384
40133867078dc9346e348d051be64d41ea275f91
3,075
py
Python
hpvm/test/benchmarks/hpvm-cava/scripts/split_trace.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/test/benchmarks/hpvm-cava/scripts/split_trace.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/test/benchmarks/hpvm-cava/scripts/split_trace.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
1
2020-03-24T16:01:54.000Z
2020-03-24T16:01:54.000Z
#!/usr/bin/env python # # Splits a big trace file of multiple top level functions into separate traces # for each function. # # This is useful for breaking up an accelerator into smaller blocks, where each # block might call multiple other functions. # # Author: Sam Xi import argparse import gzip import os import io i...
27.455357
97
0.65626
#!/usr/bin/env python # # Splits a big trace file of multiple top level functions into separate traces # for each function. # # This is useful for breaking up an accelerator into smaller blocks, where each # block might call multiple other functions. # # Author: Sam Xi import argparse import gzip import os import io i...
0
0
0
0
98
1,016
0
0
92
5ec759fa0fe86521b90ac16b887a97ff69ed3947
1,532
py
Python
spark_auto_mapper_fhir/value_sets/act_uncertainty.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/act_uncertainty.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/act_uncertainty.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations # This file is auto-generated by generate_classes so do not edit manually # noinspection PyPep8Naming
34.818182
87
0.754569
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
0
0
0
1,127
0
0
0
152
113
b884e3aad3b448ed0e1bf85718350035eb9ec9e6
198
py
Python
src/guid/router.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
3
2019-06-04T01:36:17.000Z
2021-05-16T18:52:21.000Z
src/guid/router.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
null
null
null
src/guid/router.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
null
null
null
"""Router for gathering the views together.""" from fastapi import APIRouter from guid import views api_router = APIRouter() api_router.include_router(views.router, prefix="/guid", tags=["guid"])
24.75
70
0.762626
"""Router for gathering the views together.""" from fastapi import APIRouter from guid import views api_router = APIRouter() api_router.include_router(views.router, prefix="/guid", tags=["guid"])
0
0
0
0
0
0
0
0
0
dc990c32e5274095e9a2e2a2910b56b818b5fa03
157
py
Python
2-mouth02/day03/CAOGAO.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
4
2021-02-01T10:28:11.000Z
2021-02-01T10:34:40.000Z
2-mouth02/day03/CAOGAO.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
2-mouth02/day03/CAOGAO.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
import time real_time = time.strftime("00. %Y%m%d%y:%m:%S", time.localtime()) print(real_time) giao=open("file.txt","w") print(giao.write(real_time))
22.428571
71
0.707006
import time real_time = time.strftime("00. %Y年%m月%d日%y点:%m分:%S秒", time.localtime()) print(real_time) giao=open("file.txt","w") print(giao.write(real_time))
18
0
0
0
0
0
0
0
0
d5a82d6b0b6bfcfe703c1fc66ec5ab47240e5c80
1,698
py
Python
graph.py
nfisher/faboto
d2fe54ca2dba16ae1574e0c6edcda0e1d4b49bd2
[ "MIT" ]
null
null
null
graph.py
nfisher/faboto
d2fe54ca2dba16ae1574e0c6edcda0e1d4b49bd2
[ "MIT" ]
1
2022-03-29T21:55:36.000Z
2022-03-29T21:55:36.000Z
graph.py
nfisher/faboto
d2fe54ca2dba16ae1574e0c6edcda0e1d4b49bd2
[ "MIT" ]
null
null
null
DEFAULT_REGION = 'eu-west-1' # TODO: (NF 2013-01-03) Refactor this around a decent data model that is non-AWS specific. ROLE_TAG='aws:autoscaling:groupName' ROLE_TAG='category'
23.260274
120
0.620141
from fabric.api import * from ec2 import running_instances, instances_by_zones, instances_by_role DEFAULT_REGION = 'eu-west-1' # TODO: (NF 2013-01-03) Refactor this around a decent data model that is non-AWS specific. ROLE_TAG='aws:autoscaling:groupName' ROLE_TAG='category' def hosts(hosts): host_string = "" ...
0
363
0
0
0
937
0
54
159
47772b7279b80b372a8b035281a02085bd277571
4,068
py
Python
pysnmp-with-texts/RBTWS-REGISTRATION-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RBTWS-REGISTRATION-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RBTWS-REGISTRATION-CHASSIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RBTWS-REGISTRATION-CHASSIS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBTWS-REGISTRATION-CHASSIS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:53:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ...
123.272727
651
0.784169
# # PySNMP MIB module RBTWS-REGISTRATION-CHASSIS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBTWS-REGISTRATION-CHASSIS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:53:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ...
0
0
0
0
0
0
0
0
0
3b244edc4eac492c79e8ef5495053f18f1fed0c7
913
py
Python
feinstaub/sensors/management/commands/cleanup.py
CodeForAfrica/sensors.AFRICA-AQ-api
09898d80630c002e8d2c965906f96010d6594ed4
[ "MIT" ]
null
null
null
feinstaub/sensors/management/commands/cleanup.py
CodeForAfrica/sensors.AFRICA-AQ-api
09898d80630c002e8d2c965906f96010d6594ed4
[ "MIT" ]
9
2018-04-16T12:18:41.000Z
2019-02-04T09:44:34.000Z
feinstaub/sensors/management/commands/cleanup.py
CodeForAfrica/sensors.AFRICA-AQ-api
09898d80630c002e8d2c965906f96010d6594ed4
[ "MIT" ]
2
2017-07-18T07:18:55.000Z
2018-01-31T10:10:53.000Z
# coding=utf-8
45.65
147
0.746988
# coding=utf-8 from django.core.management import BaseCommand import datetime class Command(BaseCommand): help = "Cleanup sensordata. This management command may change over time." def handle(self, *args, **options): from sensor.models import SensorData from django.db.models import Count ...
0
0
0
811
0
0
0
19
67
6f50f06e4364cac31b56681b78facfe78869210a
4,123
py
Python
src/creep_spawner.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
src/creep_spawner.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
2
2022-02-01T04:41:55.000Z
2022-02-01T06:39:08.000Z
src/creep_spawner.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
__pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __pragma__('noalias', 'type') __pragma__('noalias', 'update')
35.543103
114
0.573854
from defs import * __pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __pragma__('noalias', 'type') __pragma__('noalias', 'update') class CreepSpawner: """Class definition for c...
0
421
0
3,409
0
0
0
-3
45
34e0f2840c1c5f19e6c110663ed4fb202ad507b9
2,387
py
Python
nginx_hit_counter/nginx_hit_counter.py
weepyadmin/Tools
d10f4aa83820d83ca631613872b45324fb2b42ed
[ "MIT" ]
null
null
null
nginx_hit_counter/nginx_hit_counter.py
weepyadmin/Tools
d10f4aa83820d83ca631613872b45324fb2b42ed
[ "MIT" ]
null
null
null
nginx_hit_counter/nginx_hit_counter.py
weepyadmin/Tools
d10f4aa83820d83ca631613872b45324fb2b42ed
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 # nginx_hit_counter.py v1.0 # Small tool for monitoring nginx log file and sending a hit to Graphite when a page is accessed # Usage: Feed in nginx access.log file, graphite endpoint, profit. # Original inspiration taken and expanded on from this post on Stack Overflow (by Jochen Ritzel): # http://...
31.826667
139
0.692082
#!/usr/bin/python3.4 # nginx_hit_counter.py v1.0 # Small tool for monitoring nginx log file and sending a hit to Graphite when a page is accessed # Usage: Feed in nginx access.log file, graphite endpoint, profit. # Original inspiration taken and expanded on from this post on Stack Overflow (by Jochen Ritzel): # http://...
0
0
0
0
169
722
0
33
46
a2a39a239ef940f439c7b1790acaf8871d9e0392
1,027
py
Python
sessao03/11_64-SetsConjuntos/aula64.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao03/11_64-SetsConjuntos/aula64.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao03/11_64-SetsConjuntos/aula64.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
""" add, update, clear, discard union | intersection & (todos os elementos presentes nos dois sets) difference - (elementos apenas no set da esquerda) symmetric_difference ^ (elementos que estao nos dois sets, mas nao em ambos) """ # sets so recebem valores, no possuem chave e valor igual os dicionarios(json) # sets n...
18.672727
92
0.59591
""" add, update, clear, discard union | intersection & (todos os elementos presentes nos dois sets) difference - (elementos apenas no set da esquerda) symmetric_difference ^ (elementos que estao nos dois sets, mas nao em ambos) """ # sets so recebem valores, não possuem chave e valor igual os dicionarios(json) # sets ...
2
0
0
0
0
0
0
0
0
baaabe52b19d1c7554fe616d12612c7a8a223951
104
py
Python
hearbaseline/__init__.py
cclough/hear-baseline
4e097305378935928fa02094e481823e5b356d60
[ "Apache-2.0" ]
null
null
null
hearbaseline/__init__.py
cclough/hear-baseline
4e097305378935928fa02094e481823e5b356d60
[ "Apache-2.0" ]
null
null
null
hearbaseline/__init__.py
cclough/hear-baseline
4e097305378935928fa02094e481823e5b356d60
[ "Apache-2.0" ]
null
null
null
__version__ = "2021.1.0"
26
77
0.826923
from .naive import load_model, get_scene_embeddings, get_timestamp_embeddings __version__ = "2021.1.0"
0
0
0
0
0
0
0
56
22
ce05ec2b5879ff551c84e60c32fc1d106e476515
350
py
Python
mighty_regression/tests/conftest.py
jarmand-caw/mighty-regression
607bb2e00efd241ee557d9e28d870b187f13786f
[ "MIT" ]
null
null
null
mighty_regression/tests/conftest.py
jarmand-caw/mighty-regression
607bb2e00efd241ee557d9e28d870b187f13786f
[ "MIT" ]
null
null
null
mighty_regression/tests/conftest.py
jarmand-caw/mighty-regression
607bb2e00efd241ee557d9e28d870b187f13786f
[ "MIT" ]
null
null
null
from mighty_regression.log_init import initialize_logger initialize_logger()
20.588235
82
0.774286
import os import pandas as pd import pytest from mighty_regression.log_init import initialize_logger initialize_logger() @pytest.fixture(scope="session") def directory(): return os.path.dirname(__file__) @pytest.fixture(scope="session") def data(directory): return pd.read_csv(os.path.join(directory, "test...
0
180
0
0
0
0
0
-22
113
ae2a71259de0256683edde9f6493e1f58452e67b
19,625
py
Python
HelixStudios.bundle/Contents/Code/__init__.py
tiagobf5/monetivo-plex-gay-metadata-agent
0181f9a3be880cce7b5d9024c3517dad74dfe1dc
[ "MIT" ]
42
2018-07-05T09:39:03.000Z
2022-02-18T13:40:46.000Z
HelixStudios.bundle/Contents/Code/__init__.py
tiagobf5/monetivo-plex-gay-metadata-agent
0181f9a3be880cce7b5d9024c3517dad74dfe1dc
[ "MIT" ]
28
2015-12-31T12:12:05.000Z
2018-04-02T18:33:43.000Z
HelixStudios.bundle/Contents/Code/__init__.py
tiagobf5/monetivo-plex-gay-metadata-agent
0181f9a3be880cce7b5d9024c3517dad74dfe1dc
[ "MIT" ]
36
2018-07-06T19:48:45.000Z
2022-03-27T02:17:16.000Z
# HelixStudios # import certifi, requests AGENT_NAME = 'Helix Studios' AGENT_VERSION = '2020.06.27.0' AGENT_LANGUAGES = [Locale.Language.NoLanguage, Locale.Language.English] AGENT_FALLBACK_AGENT = False AGENT_PRIMARY_PROVIDER = False AGENT_CONTRIBUTES_TO = ['com.plexapp.agents...
45.114943
295
0.636994
# HelixStudios import re, os, platform, urllib from utils import Utils # import certifi, requests AGENT_NAME = 'Helix Studios' AGENT_VERSION = '2020.06.27.0' AGENT_LANGUAGES = [Locale.Language.NoLanguage, Locale.Language.English] AGENT_FALLBACK_AGENT = False AGENT_PRIMARY_PROVI...
0
0
0
17,473
0
895
0
12
121
df1b3eb46cf8f41e17f6721af899f9b62435d0a8
98
py
Python
test/testtranslation.py
saksham1991999/GitTra
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
2
2021-02-26T19:19:16.000Z
2021-11-05T06:23:31.000Z
test/testtranslation.py
saksham1991999/MLH-Hackathon-1
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
15
2021-02-12T18:56:26.000Z
2021-02-25T00:09:57.000Z
test/testtranslation.py
saksham1991999/MLH-Hackathon-1
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
1
2021-03-22T16:48:44.000Z
2021-03-22T16:48:44.000Z
from googletrans import Translator translator = Translator() print(translator.translate('.'))
32.666667
37
0.816327
from googletrans import Translator translator = Translator() print(translator.translate('안녕하세요.'))
15
0
0
0
0
0
0
0
0
0a5562327e1890ffe69657332c048ffd1cff181b
437
py
Python
pepdb/tasks/migrations/0039_auto_20180317_0243.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/tasks/migrations/0039_auto_20180317_0243.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/tasks/migrations/0039_auto_20180317_0243.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-17 00:43 from __future__ import unicode_literals
20.809524
49
0.613272
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-17 00:43 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0038_adhocmatches'), ] operations = [ migrations.RenameField( ...
0
0
0
265
0
0
0
11
46
944c0444be36853f3a762f2e2f840cd5bc072676
2,458
py
Python
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.619718
245
0.704638
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
0
1,927
0
0
0
0
0
105
82
5839f700497876cbfdeb84e7ff08497f11288462
1,002
py
Python
src/__main__.py
shreyasgune1/steemdata-mongo
0379a9d96f6cb95e03c169935e04257fe6956f80
[ "MIT" ]
null
null
null
src/__main__.py
shreyasgune1/steemdata-mongo
0379a9d96f6cb95e03c169935e04257fe6956f80
[ "MIT" ]
null
null
null
src/__main__.py
shreyasgune1/steemdata-mongo
0379a9d96f6cb95e03c169935e04257fe6956f80
[ "MIT" ]
null
null
null
import sys if __name__ == "__main__": print("Starting worker: %s" % sys.argv) start_worker(sys.argv[1:])
23.302326
73
0.552894
import getopt import sys from runner import run_worker def start_worker(argv): worker = None try: opts, args = getopt.getopt(argv, "hw:o", ["worker=", "options="]) except getopt.GetoptError: print('__main__.py -w <worker_name>') sys.exit(2) for opt, arg in opts: if opt...
0
0
0
0
0
818
0
0
68
e1cde7c7fdb4e1a0677e6928016f9bbe64466f7b
3,876
py
Python
moleculegen/estimation/_gluon_common.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
3
2021-11-18T11:41:21.000Z
2022-02-08T22:01:20.000Z
moleculegen/estimation/_gluon_common.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
20
2019-12-12T11:47:32.000Z
2021-06-02T07:55:18.000Z
moleculegen/estimation/_gluon_common.py
sanjaradylov/moleculegen-ml
4acb77244909cf8cfe4fb75461d4bed9b77f29f1
[ "BSD-3-Clause" ]
2
2019-12-23T08:17:01.000Z
2022-02-08T22:01:21.000Z
""" Gluon objects and sequential models used in the subpackage. """ import functools from typing import Callable, Dict, List, Optional, Union import mxnet as mx from mxnet import gluon from .._types import ActivationT, InitializerT # Available RNNs. RNN_MAP: Dict[str, type] = { 'vanilla': gluon.rnn.RNN, 'l...
29.587786
85
0.640609
""" Gluon objects and sequential models used in the subpackage. """ import functools from typing import Callable, Dict, List, Optional, Union import mxnet as mx from mxnet import gluon from .._types import ActivationT, ContextT, InitializerT, StateInitializerT # Available RNNs. RNN_MAP: Dict[str, type] = { 'va...
0
0
0
0
0
757
0
29
69
3ddd75ee9d8f93c09a275d439125b521b34312da
6,266
py
Python
qumulo/rest/ldap.py
xod442/q-view
5c9ed7b8f0f0df3d3f2713f36e3d77bb0664fe3b
[ "Apache-2.0" ]
null
null
null
qumulo/rest/ldap.py
xod442/q-view
5c9ed7b8f0f0df3d3f2713f36e3d77bb0664fe3b
[ "Apache-2.0" ]
null
null
null
qumulo/rest/ldap.py
xod442/q-view
5c9ed7b8f0f0df3d3f2713f36e3d77bb0664fe3b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Qumulo, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
31.33
79
0.664379
# Copyright (c) 2017 Qumulo, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
0
5,305
0
0
0
0
0
0
227
343ec7c810c581d6d152339127824404ecbf11c0
168
py
Python
dart_fss/corp/__init__.py
dveamer/dart-fss
1ea6b937f363d604a7da9c03686fba7f66707efa
[ "MIT" ]
243
2019-04-19T09:05:32.000Z
2022-03-27T10:51:24.000Z
dart_fss/corp/__init__.py
dveamer/dart-fss
1ea6b937f363d604a7da9c03686fba7f66707efa
[ "MIT" ]
80
2019-04-20T06:37:44.000Z
2022-03-25T12:20:47.000Z
dart_fss/corp/__init__.py
dveamer/dart-fss
1ea6b937f363d604a7da9c03686fba7f66707efa
[ "MIT" ]
92
2019-04-18T06:19:52.000Z
2022-03-17T07:43:39.000Z
# -*- coding: utf-8 -*- from dart_fss.corp.corp import Corp from dart_fss.corp.corp_list import CorpList, get_corp_list __all__ = ['Corp', 'CorpList', 'get_corp_list']
33.6
59
0.738095
# -*- coding: utf-8 -*- from dart_fss.corp.corp import Corp from dart_fss.corp.corp_list import CorpList, get_corp_list __all__ = ['Corp', 'CorpList', 'get_corp_list']
0
0
0
0
0
0
0
0
0
328fbbbc0d99e7721b2a670401e37951c70615b8
570
py
Python
setup.py
dbnicholson/libbase32
cf58d357f7598c7b7db071eb113c212f8680a183
[ "CC0-1.0" ]
1
2016-12-20T09:21:48.000Z
2016-12-20T09:21:48.000Z
setup.py
dbnicholson/libbase32
cf58d357f7598c7b7db071eb113c212f8680a183
[ "CC0-1.0" ]
null
null
null
setup.py
dbnicholson/libbase32
cf58d357f7598c7b7db071eb113c212f8680a183
[ "CC0-1.0" ]
3
2015-12-06T19:16:27.000Z
2021-08-04T00:04:57.000Z
#!/usr/bin/env python from distutils.core import setup import base32 setup_args = { 'name': 'base32', 'version': base32.base32_verstr, 'description': 'libbase32 is an implementation of base32 encoding for encoding arbitrary binary data so that humans can remember, copy, e-mail and cut-n-paste it.', 'a...
27.142857
168
0.661404
#!/usr/bin/env python import os, sys from distutils.core import setup, Extension, Command import base32 setup_args = { 'name': 'base32', 'version': base32.base32_verstr, 'description': 'libbase32 is an implementation of base32 encoding for encoding arbitrary binary data so that humans can remember, copy,...
0
0
0
0
0
0
0
13
23
972a091cb136b36f319d84e21f988854a8d3b4d5
17,691
py
Python
utils/dataset.py
sherwinbahmani/ynet_adaptive
1b70dae27ae88418088aeb7b786b55ab22d36bcb
[ "MIT" ]
4
2022-02-01T13:57:46.000Z
2022-02-01T14:19:54.000Z
utils/dataset.py
sherwinbahmani/ynet_adaptive
1b70dae27ae88418088aeb7b786b55ab22d36bcb
[ "MIT" ]
null
null
null
utils/dataset.py
sherwinbahmani/ynet_adaptive
1b70dae27ae88418088aeb7b786b55ab22d36bcb
[ "MIT" ]
1
2022-03-19T08:36:29.000Z
2022-03-19T08:36:29.000Z
import numpy as np import pandas as pd import os import cv2 import argparse def mask_step(x, step): """ Create a mask to only contain the step-th element starting from the first element. Used to downsample """ mask = np.zeros_like(x) mask[::step] = 1 return mask.astype(bool) def downsample(df, step): """ Dow...
37.963519
140
0.703748
import numpy as np import torch import random import pandas as pd import os import cv2 import argparse import math import matplotlib.pyplot as plt import pathlib def load_sdd_raw(path): data_path = os.path.join(path, "annotations") scenes_main = os.listdir(data_path) SDD_cols = ['trackId', 'xmin', 'ymin', 'xmax', '...
4
0
0
0
0
9,032
0
-24
432
6c99ee540931f5ddba99d9902574e1c99ab42080
8,567
py
Python
Papers/Mittens/tokenizing.py
markgraves/roamresearch
8fd69bc46ee3a30ea87aae7d9890919bc5fa8b82
[ "Apache-2.0" ]
190
2018-03-28T21:50:15.000Z
2022-03-16T13:29:06.000Z
Papers/Mittens/tokenizing.py
markgraves/roamresearch
8fd69bc46ee3a30ea87aae7d9890919bc5fa8b82
[ "Apache-2.0" ]
4
2018-05-16T11:30:59.000Z
2020-10-18T22:47:17.000Z
Papers/Mittens/tokenizing.py
markgraves/roamresearch
8fd69bc46ee3a30ea87aae7d9890919bc5fa8b82
[ "Apache-2.0" ]
58
2018-03-28T22:04:25.000Z
2022-02-15T21:31:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Nick Dingwall and Christopher Potts' right_boundary_str = r""" (?: \s+(?:on|in|at|for|to|by|of)\s* )""" date_time_stamp_re = r"""\[?\(\d+/\d+\s+\d+\s+\w+\)\-?\]?\-?""" price_re = r"""[\$]\s*\d+[\d.,]+\d+""" # phrase_re = ur"""(?:[a-zA-Z'\s+&/]|(...
29.541379
124
0.449982
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import signal __author__ = 'Nick Dingwall and Christopher Potts' right_boundary_str = r""" (?: \s+(?:on|in|at|for|to|by|of)\s* )""" date_time_stamp_re = r"""\[?\(\d+/\d+\s+\d+\s+\w+\)\-?\]?\-?""" price_re = r"""[\$₤£¥€]\s*\d+[\d.,]+\d+""" # phrase_r...
29
0
0
3,380
0
0
0
-20
90
c362d2dd77ea3e8a9bf9be16a8ad8dc9e84485b3
1,792
py
Python
libnfc/chip.py
gmodena/pyNFC
f8af9cd79fe9b15b01cc0a559419df36d558436f
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-30T05:59:33.000Z
2016-08-30T05:59:33.000Z
libnfc/chip.py
gmodena/pyNFC
f8af9cd79fe9b15b01cc0a559419df36d558436f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
libnfc/chip.py
gmodena/pyNFC
f8af9cd79fe9b15b01cc0a559419df36d558436f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python2.6 #Copyright 2010 Gabriele Modena <gm@nowave.it>. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notic...
48.432432
92
0.759487
#!/usr/bin/env python2.6 #Copyright 2010 Gabriele Modena <gm@nowave.it>. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notic...
0
0
0
0
0
0
0
0
0
7cbcc95a8fd8a526b0c994c96bfa8b82b3eb31d7
14,445
py
Python
src/tguiil/observer.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/tguiil/observer.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/tguiil/observer.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
32.904328
110
0.679543
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
0
0
0
12,655
0
0
0
69
180
1e59957fc5932a34e03746a60fd34355c7f1339d
4,980
py
Python
qcengine/programs/nwchem/runner.py
nstair/QCEngine
0b64d348adb35836e89b6a3b225d325e700e9e0a
[ "BSD-3-Clause" ]
null
null
null
qcengine/programs/nwchem/runner.py
nstair/QCEngine
0b64d348adb35836e89b6a3b225d325e700e9e0a
[ "BSD-3-Clause" ]
null
null
null
qcengine/programs/nwchem/runner.py
nstair/QCEngine
0b64d348adb35836e89b6a3b225d325e700e9e0a
[ "BSD-3-Clause" ]
null
null
null
""" Calls the NWChem executable. """
35.319149
149
0.587349
""" Calls the NWChem executable. """ from decimal import Decimal from typing import Any, Dict, Optional, Tuple import numpy as np import qcelemental as qcel from qcelemental.models import Provenance, Result from qcelemental.util import safe_version, which from ..model import ProgramHarness from ...util import execut...
0
190
0
4,413
0
0
0
115
224
d677d2bcd1ce215b009fb2176f36a22cbe4ff1c1
7,859
py
Python
src/utils/hyperparameters.py
attila-petho/DuckPropagation
a2cacc95af3e0767c590a50f6633d3bff363f5ec
[ "MIT" ]
1
2022-01-25T02:47:31.000Z
2022-01-25T02:47:31.000Z
src/utils/hyperparameters.py
attila-petho/DuckPropagation
a2cacc95af3e0767c590a50f6633d3bff363f5ec
[ "MIT" ]
1
2022-01-25T02:47:13.000Z
2022-01-26T14:44:33.000Z
src/utils/hyperparameters.py
attila-petho/DuckPropagation
a2cacc95af3e0767c590a50f6633d3bff363f5ec
[ "MIT" ]
null
null
null
import optuna from torch import nn as nn from typing import Any, Dict, Union, Callable def sample_ppo(trial: optuna.Trial): """ Basic sampler for PPO hyperparameters """ return { 'batch_size' : trial.suggest_categorical("batch_size", [8, 16, 32, 64, 128, 256, 512]), 'n_steps': int(tria...
39.893401
112
0.636213
import optuna from torch import nn as nn from typing import Any, Dict, Union, Callable, Optional from stable_baselines3.common.callbacks import EvalCallback from stable_baselines3.common.vec_env import VecEnv def sample_ppo(trial: optuna.Trial): """ Basic sampler for PPO hyperparameters """ return { ...
0
0
0
1,373
0
0
0
78
67
13bbf4671fe8f7955bd1e9e6ce09a9cb998a0577
7,532
py
Python
django_dbaccounting/tests/test_models.py
robml/django_dbaccounting
d39466d71151b6e28a6b959001dcd5cfe56b4f4b
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
4
2021-02-11T16:35:07.000Z
2021-07-08T15:35:55.000Z
tests/test_models.py
di/django_dbaccounting
26bb794649b92c71a5e18d74c0388d3f1fbdd06d
[ "BSD-3-Clause" ]
2
2021-07-08T14:55:07.000Z
2021-07-08T17:23:38.000Z
tests/test_models.py
di/django_dbaccounting
26bb794649b92c71a5e18d74c0388d3f1fbdd06d
[ "BSD-3-Clause" ]
3
2020-03-08T18:10:52.000Z
2021-12-19T18:16:39.000Z
# Create your tests here.
39.025907
120
0.667021
from django.test import TestCase from django.db import IntegrityError from dbaccounting.models import AccountType,Account,Transaction # Create your tests here. class AccountTypeTest(TestCase): @classmethod def setUpTestData(cls): AccountType.objects.create(name = "Assets",bal_type = "D") Accou...
0
200
0
7,093
0
0
0
68
140