hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
9136c1d8878f67aac565d49773621f9f9117bb4b
3,093
py
Python
config/plantlist.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
config/plantlist.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
config/plantlist.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
''' List of possible "plants" that a subject could control either during manual or brain control ''' import numpy as np from riglib import plants pi = np.pi RED = (1,0,0,.5) ## BMI Plants cursor_14x14 = plants.CursorPlant(endpt_bounds=(-14, 14, 0., 0., -14, 14)) cursor_25x14 = plants.CursorPlant(endpt_bounds=(-25, 25,...
47.584615
171
0.76172
5b689cce2c2cd13a4cc6e74e797cb2ed1137a3be
12,779
py
Python
Ner/bert/keras_bert_ner_bi_lstm.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
1,379
2019-04-09T08:25:49.000Z
2022-03-30T07:42:07.000Z
Ner/bert/keras_bert_ner_bi_lstm.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
15
2019-05-18T08:33:03.000Z
2022-03-04T11:40:22.000Z
Ner/bert/keras_bert_ner_bi_lstm.py
liruifeng-01/nlp_xiaojiang
1bbc0209c58c13861157ce6d395f8995102708cd
[ "MIT" ]
387
2019-04-15T11:09:51.000Z
2022-03-28T06:53:29.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/10 18:05 # @author :Mo # @function :classify text of bert and bi-lstm from __future__ import division, absolute_import import logging as logger import numpy as np import pickle import codecs # bert embedding from Ner.bert.keras_bert_layer...
38.032738
160
0.634948
4864dc2d6078aecb013562e21318304932a5a169
894
py
Python
backend/api/viewsets/FuelClass.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/viewsets/FuelClass.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/viewsets/FuelClass.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
from rest_framework import viewsets, permissions, mixins from api.models.FuelClass import FuelClass from api.serializers.FuelClass import FuelClassSerializer from auditable.views import AuditableMixin class FuelClassViewSet( AuditableMixin, mixins.ListModelMixin, viewsets.GenericViewSet): """ This vi...
30.827586
72
0.732662
bd11881ad4aadbdeca21d10dda9d91d97a09f6ff
7,241
py
Python
tests/sentry/integrations/github_enterprise/test_integration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/integrations/github_enterprise/test_integration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/integrations/github_enterprise/test_integration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import responses import six from sentry.utils.compat.mock import patch from six.moves.urllib.parse import parse_qs, urlencode, urlparse from sentry.integrations.github_enterprise import GitHubEnterpriseIntegrationProvider from sentry.models import ( Identity, IdentityPro...
38.312169
99
0.604336
673075b02e9ea211590118b74adfc64b1cee6b77
6,823
py
Python
zeekofile/util.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2022-02-20T08:02:00.000Z
2022-02-20T08:02:00.000Z
zeekofile/util.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
1
2021-07-23T19:45:58.000Z
2021-07-23T19:45:58.000Z
zeekofile/util.py
cdarlint/zeekofile
e5c999f0adfa1837c255b856eb030fb6838b0ea1
[ "MIT" ]
null
null
null
import re import os import sys from urllib.parse import urlparse import logging from .cache import zf zf.util = sys.modules['zeekofile.util'] logger = logging.getLogger("zeekofile.util") html_escape_table = { "&": "&amp;", '"': "&quot;", "'": "&apos;", ">": "&gt;", "<": "&lt;", } def html_es...
29.925439
79
0.57526
b46737dfafc3305af41f6ee7aa61157d291d7b6a
154
py
Python
python/cell_states.py
carterbancroft/game-of-life
e9dfb0cbd2d6ceb2cb94a91db0de899ff9e45fa4
[ "Unlicense" ]
null
null
null
python/cell_states.py
carterbancroft/game-of-life
e9dfb0cbd2d6ceb2cb94a91db0de899ff9e45fa4
[ "Unlicense" ]
null
null
null
python/cell_states.py
carterbancroft/game-of-life
e9dfb0cbd2d6ceb2cb94a91db0de899ff9e45fa4
[ "Unlicense" ]
null
null
null
# All the possible states for a cell. alive = 'a' dead = '.' # These states are intermediate. They happen during the turn. dying = 'd' being_born = 'b'
17.111111
61
0.675325
32aa3815ad3c93b1b77c5fe8b51e0e23fc7b55fc
14,827
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/ndk/tests/test_ndk.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/ndk/tests/test_ndk.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/ndk/tests/test_ndk.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA @UnusedWildImport import inspect import io import os import unittest import warnings from obspy import UTCDateTime, read_even...
37.441919
78
0.590679
046c69543ead0846525e0051fd5a6aaf484751a5
6,865
py
Python
ddtrace/contrib/flask/middleware.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/flask/middleware.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/flask/middleware.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
2
2017-05-27T05:58:36.000Z
2019-02-07T13:38:53.000Z
""" Datadog trace code for flask. Requires a modern version of flask and the `blinker` library (which is a dependency of flask signals). """ # stdlib import logging # project from ... import compat from ...ext import http, errors, AppTypes # 3p import flask.templating from flask import g, request, signals log = l...
33.487805
81
0.612236
02264b16dd6493df6d3b41cb876a02b408c47890
1,732
py
Python
obonet/io.py
dpavot/obonet
d7307d7151e21553cd8df3d7d07d26571e9c3fbe
[ "CC0-1.0" ]
null
null
null
obonet/io.py
dpavot/obonet
d7307d7151e21553cd8df3d7d07d26571e9c3fbe
[ "CC0-1.0" ]
null
null
null
obonet/io.py
dpavot/obonet
d7307d7151e21553cd8df3d7d07d26571e9c3fbe
[ "CC0-1.0" ]
1
2019-07-10T09:48:00.000Z
2019-07-10T09:48:00.000Z
import importlib import io import mimetypes import pathlib import re from urllib.request import urlopen def open_read_file(path): """ Return a file object from the path. Automatically detects and supports URLs and compression. If path is pathlike, it's converted to a string. If path is not a string no...
27.492063
76
0.645497
624d75f1b76a1ce67206667613695e728a808ed6
11,984
py
Python
tests/tests_data/data_for_functional_bot_test.py
Kvm99/Pressure-Bot-
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
null
null
null
tests/tests_data/data_for_functional_bot_test.py
Kvm99/Pressure-Bot-
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
208
2019-12-06T12:48:58.000Z
2022-03-28T21:10:35.000Z
tests/tests_data/data_for_functional_bot_test.py
Kvm99/Telegram-Pressurebot
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
null
null
null
import datetime import psycopg2 pressure_list = [ (108, 'Mary2z', '130', '80', datetime.datetime( 2019, 4, 20, 12, 26, 45, 826178, tzinfo=psycopg2.tz.FixedOffsetTimezone( offset=180, name=None ) ), 'Left', '80'), (109, 'Mary2z...
32.476965
59
0.385097
df453d8525173482602fc77f8ddacce22abb6124
27,438
py
Python
random_output_trees/ensemble/forest.py
arjoly/random-output-trees
4251a3ab99cf7b893b7dcb47b62be94ed74c1ab9
[ "Unlicense" ]
22
2015-01-13T23:01:35.000Z
2021-03-01T07:34:56.000Z
random_output_trees/ensemble/forest.py
arjoly/random-output-trees
4251a3ab99cf7b893b7dcb47b62be94ed74c1ab9
[ "Unlicense" ]
null
null
null
random_output_trees/ensemble/forest.py
arjoly/random-output-trees
4251a3ab99cf7b893b7dcb47b62be94ed74c1ab9
[ "Unlicense" ]
4
2015-01-26T05:22:44.000Z
2019-12-02T15:16:17.000Z
# Authors: Arnaud Joly <arnaud.v.joly@gmail.com> # # License: BSD 3 clause # This file is adapted from scikit-learn to handle randomized output space from ._sklearn_forest import ForestClassifier from ._sklearn_forest import ForestRegressor from ..tree import DecisionTreeClassifier from ..tree import DecisionTreeRe...
41.198198
79
0.655842
d45c25349a0756dd204b8ddca456faf47ef0fd28
5,930
py
Python
resources/lib/services/playback/progress_manager.py
aapks/plugin.video.netflix-1
f74bfff29cb76da04ce40cbe5597deac5911d82e
[ "MIT" ]
null
null
null
resources/lib/services/playback/progress_manager.py
aapks/plugin.video.netflix-1
f74bfff29cb76da04ce40cbe5597deac5911d82e
[ "MIT" ]
null
null
null
resources/lib/services/playback/progress_manager.py
aapks/plugin.video.netflix-1
f74bfff29cb76da04ce40cbe5597deac5911d82e
[ "MIT" ]
1
2020-04-04T08:00:04.000Z
2020-04-04T08:00:04.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2019 Stefano Gottardo - @CastagnaIT (original implementation module) Manages events to send to the netflix service for the progress of the played video SPDX-License-Identifier: MIT See LICENSES/MIT...
47.822581
120
0.685329
de7229e3e67f343719f30c802589f49ec82371d0
30,608
py
Python
main_original.py
alffore/translatedemo
fd18d0d8268203fd6f97ca3270c02bd5dbee47cc
[ "Apache-2.0" ]
null
null
null
main_original.py
alffore/translatedemo
fd18d0d8268203fd6f97ca3270c02bd5dbee47cc
[ "Apache-2.0" ]
null
null
null
main_original.py
alffore/translatedemo
fd18d0d8268203fd6f97ca3270c02bd5dbee47cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ NLP From Scratch: Translation with a Sequence to Sequence Network and Attention ******************************************************************************* **Author**: `Sean Robertson <https://github.com/spro/practical-pytorch>`_ This is the third and final tutorial on doing "NLP From S...
35.06071
117
0.652117
6f6da488de2bf1bba00d143de962df433947805d
1,258
py
Python
var/spack/repos/builtin/packages/xqilla/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/xqilla/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/xqilla/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Xqilla(AutotoolsPackage): """XQilla is an XQuery and XPath 2 library and command line util...
33.105263
85
0.620827
b73adee38188ce53b867e6464f2e6194d6d7a3b8
5,940
py
Python
source/operators/mediaconvert/start_media_convert.py
InfrastructureHQ/MediaIQ
1c50c5a796a34895951acf74bf88836d39406da6
[ "Apache-2.0" ]
null
null
null
source/operators/mediaconvert/start_media_convert.py
InfrastructureHQ/MediaIQ
1c50c5a796a34895951acf74bf88836d39406da6
[ "Apache-2.0" ]
null
null
null
source/operators/mediaconvert/start_media_convert.py
InfrastructureHQ/MediaIQ
1c50c5a796a34895951acf74bf88836d39406da6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import boto3 import json from botocore import config from aws_xray_sdk.core import xray_recorder from aws_xray_sdk.core import patch_all from MediaInsightsEngineLambdaHelper import MediaInsightsOp...
40.965517
123
0.574579
648cee5c2c96219ef68cfd37a9a0c6b75f5cf347
1,812
py
Python
src/python/zensols/db/dataclass.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
src/python/zensols/db/dataclass.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
src/python/zensols/db/dataclass.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
"""Contains utility classes to persist :class:`dataclasses.dataclass`. """ __author__ = 'Paul Landes' from typing import Type, List from dataclasses import dataclass, field import dataclasses import logging from string import Template from pathlib import Path from . import DynamicDataParser, BeanDbPersister logger =...
31.789474
76
0.698124
477ebbc7b73815bcd0a24291f33fb44f4494cf34
240
py
Python
jupyterlabpymolpysnips/SaveFlleWithTimestamp/sccp4.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
jupyterlabpymolpysnips/SaveFlleWithTimestamp/sccp4.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
jupyterlabpymolpysnips/SaveFlleWithTimestamp/sccp4.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
cmd.do('python;') cmd.do('import datetime;') cmd.do('from pymol import cmd; ') cmd.do('DT =datetime.datetime.now().strftime("yr%Ymo%mday%dhr%Hmin%M");') cmd.do('s = str(DT); ') cmd.do('cmd.save(stemName+s+".ccp4"); ') cmd.do('end python;')
30
73
0.641667
00fd4c15423d7903a81a6858571b1d9bfc7611c9
1,721
py
Python
lite/tests/unittest_py/op/backends/host/test_one_hot_v2_op.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/op/backends/host/test_one_hot_v2_op.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/op/backends/host/test_one_hot_v2_op.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.854167
125
0.743754
88b5598977f019ba5f3c0a80a39ce1a2a1559ad3
375
py
Python
apps/qcat/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/qcat/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/qcat/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
from apps.qcat.tests import TestCase # class HomePageTest(TestCase): # # def test_home_page_renders_correct_template(self): # res = self.client.get('/') # # Expect redirect to /en/, which at the moment returns a redirect as # # well. # self.assertRedirects( # res, 'http...
28.846154
78
0.621333
1ebd66f4c9122fc99b63e2a1dbf1c9b285fd06dd
1,635
py
Python
parser.py
jkhoel/py-json-to-csv
24ef2b6a8ba73c04553a01103b6ce0abc4f34051
[ "MIT" ]
null
null
null
parser.py
jkhoel/py-json-to-csv
24ef2b6a8ba73c04553a01103b6ce0abc4f34051
[ "MIT" ]
null
null
null
parser.py
jkhoel/py-json-to-csv
24ef2b6a8ba73c04553a01103b6ce0abc4f34051
[ "MIT" ]
null
null
null
import csv import os import json # GLOBAL CONSTANTS DATA_DIR = './json/' OUTPUT_FILENAME = 'output.csv' DELIMITER = ';' # Define the header of each column TABLE_HEADERS = ['File Name', 'Color', 'Description'] # List of key-names for the key-value pairs to pull from each file to populate the rows. Note that these hav...
32.7
153
0.706422
ac4fc4031d3ab98626b91c58c220de7b97e834ba
17,624
py
Python
util/misc.py
sYANGunique1111/transtrack_origin
7a462173224fabe4d82ec9dc4327cd2b0c2b8987
[ "MIT" ]
null
null
null
util/misc.py
sYANGunique1111/transtrack_origin
7a462173224fabe4d82ec9dc4327cd2b0c2b8987
[ "MIT" ]
null
null
null
util/misc.py
sYANGunique1111/transtrack_origin
7a462173224fabe4d82ec9dc4327cd2b0c2b8987
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Misc functions, including distributed helpers. Mostly copy-paste from torchvision references. """ import os import subprocess import time from collections import defaultdict, deque import datetime import pickle from typing import Op...
34.624754
114
0.588856
42185a38af5b501f92ea702f2680c2f9b6f62bb7
24,645
py
Python
azkaban_cli/azkaban.py
jcsekar/azkaban-cli
c9a537bbc9d47df31f0888bdc725975681e04c26
[ "MIT" ]
null
null
null
azkaban_cli/azkaban.py
jcsekar/azkaban-cli
c9a537bbc9d47df31f0888bdc725975681e04c26
[ "MIT" ]
null
null
null
azkaban_cli/azkaban.py
jcsekar/azkaban-cli
c9a537bbc9d47df31f0888bdc725975681e04c26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from azkaban_cli.exceptions import ( NotLoggedOnError, SessionError, LoginError, UploadError, ScheduleError, FetchFlowsError, FetchJobsFromFlowError, FetchScheduleError, FetchSLAError, UnscheduleError, ExecuteErr...
34.324513
180
0.655589
240dc2c5a423dcfe31c2852f9999e1ba7fcf2e37
800
py
Python
agent/tests/__init__.py
aeolusproject/audrey
2933aae3a4023074b44880f7b878f576fa9d8b60
[ "Apache-2.0" ]
1
2018-01-26T05:26:10.000Z
2018-01-26T05:26:10.000Z
agent/tests/__init__.py
aeolusproject/audrey
2933aae3a4023074b44880f7b878f576fa9d8b60
[ "Apache-2.0" ]
null
null
null
agent/tests/__init__.py
aeolusproject/audrey
2933aae3a4023074b44880f7b878f576fa9d8b60
[ "Apache-2.0" ]
2
2015-10-19T08:41:29.000Z
2018-08-21T21:25:06.000Z
''' * * Copyright [2011] [Red Hat, 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 ag...
27.586207
76
0.7025
78d121da0794cc4457d006ab0d18ed9aeb4f52c2
7,071
py
Python
alsa/nets/resnet.py
QasimWani/alls
13c44ea8f0f4ee7b5bae419813713742a03a5742
[ "Unlicense", "MIT" ]
2
2021-08-10T20:20:38.000Z
2021-09-01T14:40:19.000Z
alsa/nets/resnet.py
QasimWani/alls
13c44ea8f0f4ee7b5bae419813713742a03a5742
[ "Unlicense", "MIT" ]
2
2021-05-03T09:53:05.000Z
2021-08-20T00:36:23.000Z
alsa/nets/resnet.py
QasimWani/alls
13c44ea8f0f4ee7b5bae419813713742a03a5742
[ "Unlicense", "MIT" ]
2
2021-12-14T02:16:27.000Z
2022-01-25T23:08:49.000Z
"""resnet in pytorch [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. Deep Residual Learning for Image Recognition https://arxiv.org/abs/1512.03385v1 """ import torch.nn as nn class BasicBlock(nn.Module): """Basic Block for resnet 18 and resnet 34 """ # BasicBlock and BottleNeck block ...
34.661765
78
0.577146
fdbf3fe1dccb0ea66a7a76de8ce9c1d58c0bed1d
1,943
py
Python
fattie/belly/indents.py
EdgardoAcosta/Fattie
ff877cda0cd5351ba9ea6ecbac5aab34a149bbf2
[ "MIT" ]
null
null
null
fattie/belly/indents.py
EdgardoAcosta/Fattie
ff877cda0cd5351ba9ea6ecbac5aab34a149bbf2
[ "MIT" ]
1
2018-11-13T05:31:48.000Z
2018-11-26T16:39:29.000Z
fattie/belly/indents.py
EdgardoAcosta/Fattie
ff877cda0cd5351ba9ea6ecbac5aab34a149bbf2
[ "MIT" ]
null
null
null
import sys from collections import namedtuple IndentToken = namedtuple('IndentToken', 'type value lexer lineno lexpos') class Indents(object): def __init__(self, lexer): self.lexer = lexer self.indent_stack = [0] self.token_queue = [] self.eof = False @property def input(...
27.757143
96
0.560988
3fd3e19d45384ad9599b0eb5da2861f8525ff4f4
1,031
py
Python
djangocms_internalsearch/apps.py
FidelityInternational/djangocms-internalsearch
8483fccd7cc6eeb24413babae0b2eb84ab187bc6
[ "BSD-3-Clause" ]
null
null
null
djangocms_internalsearch/apps.py
FidelityInternational/djangocms-internalsearch
8483fccd7cc6eeb24413babae0b2eb84ab187bc6
[ "BSD-3-Clause" ]
null
null
null
djangocms_internalsearch/apps.py
FidelityInternational/djangocms-internalsearch
8483fccd7cc6eeb24413babae0b2eb84ab187bc6
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ from .helpers import ( content_object_delete_receiver, content_object_state_change_receiver, remove_from_index, save_to_index, ) class InternalsearchConfig(AppConfig): ...
31.242424
81
0.753637
c8710f25c0827f9f64f4a9b39c314d7fbc524953
3,634
py
Python
networks/capsulenet/helper_function.py
carlospolop-forks/one-pixel-attack-keras
f1a8ecef33d30bd7ba2d30490348c9997be6d316
[ "MIT" ]
null
null
null
networks/capsulenet/helper_function.py
carlospolop-forks/one-pixel-attack-keras
f1a8ecef33d30bd7ba2d30490348c9997be6d316
[ "MIT" ]
null
null
null
networks/capsulenet/helper_function.py
carlospolop-forks/one-pixel-attack-keras
f1a8ecef33d30bd7ba2d30490348c9997be6d316
[ "MIT" ]
null
null
null
import os, math, csv import matplotlib.pyplot as plt import numpy as np from tensorflow.keras.utils import to_categorical from pandas import read_csv def load_cifar_10(): from keras.datasets import cifar10 num_classes = 10 (x_train, y_train), (x_test, y_test) = cifar10.load_data() x_train = x_train.ast...
36.34
94
0.667034
1c3fe4ea951aef122728a7aed7fc4ecaf8e7607e
4,082
py
Python
tests/compare_results.py
an1018/PaddleOCR
0a8ca67a0c4a4ed468e82a575cc64ce73f21e068
[ "Apache-2.0" ]
1
2022-01-21T07:48:15.000Z
2022-01-21T07:48:15.000Z
tests/compare_results.py
an1018/PaddleOCR
0a8ca67a0c4a4ed468e82a575cc64ce73f21e068
[ "Apache-2.0" ]
null
null
null
tests/compare_results.py
an1018/PaddleOCR
0a8ca67a0c4a4ed468e82a575cc64ce73f21e068
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import subprocess import json import argparse import glob def init_args(): parser = argparse.ArgumentParser() # params for testing assert allclose parser.add_argument("--atol", type=float, default=1e-3) parser.add_argument("--rtol", type=float, default=1e-3) parser.add...
30.462687
111
0.628613
e2ffc81d52b0f5b3e4ba34c68d3ca20608477787
966
py
Python
examples/block_bots.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
4
2019-08-17T01:20:52.000Z
2020-01-08T11:59:43.000Z
examples/block_bots.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
4
2019-02-25T08:48:07.000Z
2019-03-07T17:06:15.000Z
examples/block_bots.py
lukasz00500/instabot
542a35d5ef510183999e5aa825d2f1a0b113a0f1
[ "Apache-2.0" ]
5
2019-04-10T04:53:14.000Z
2020-05-17T09:10:06.000Z
""" instabot example Workflow: Block bots. That makes them unfollow you -> You have clear account. """ import argparse import os import sys sys.path.append(os.path.join(sys.path[0], '../')) from instabot import Bot parser = argparse.ArgumentParser(add_help=True) parser.add_argument('-u', type=str, h...
28.411765
82
0.638716
491903578a1ef50a75c51cd048d48cf7fd92b366
1,005
py
Python
userbot/__main__.py
Randi356/up
a8d7548e8dd687a25150f0187932ca626e76d668
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
Randi356/up
a8d7548e8dd687a25150f0187932ca626e76d668
[ "Naumen", "Condor-1.1", "MS-PL" ]
44
2021-11-02T22:24:23.000Z
2022-03-28T22:27:09.000Z
userbot/__main__.py
Randi356/up
a8d7548e8dd687a25150f0187932ca626e76d668
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2021-11-05T18:23:31.000Z
2021-12-17T06:30:58.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot start point """ from importlib import import_module from sys import argv from telethon.errors.rpcerrorlis...
27.162162
78
0.724378
f6016b6641a857bcbe56a2833bb1e405264fde9f
5,680
py
Python
example/image-classification/symbols/peleenet.py
sanallen/incubator-mxnet
56f6e77ae505d742c004fd875a0d9612dd9a7434
[ "Apache-2.0" ]
null
null
null
example/image-classification/symbols/peleenet.py
sanallen/incubator-mxnet
56f6e77ae505d742c004fd875a0d9612dd9a7434
[ "Apache-2.0" ]
null
null
null
example/image-classification/symbols/peleenet.py
sanallen/incubator-mxnet
56f6e77ae505d742c004fd875a0d9612dd9a7434
[ "Apache-2.0" ]
null
null
null
import mxnet as mx import numpy as np def Conv(data, num_filter = 1, kernel=(1, 1), stride = (1, 1), pad = (0, 0), no_bias = True, layout = 'NCHW', name_conv = 'conv', axis = 1, eps = 0.001, momentum = 0.0, fix_gamma = False, use_global_stats = False, act_type = 'relu'): conv = mx.sym.Convolution(data =...
44.375
142
0.640669
3dc6aadd0b7a2f0ce6914768e70f511615cc8346
4,782
py
Python
venv/Lib/site-packages/celery/tests/backends/test_couchbase.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
39
2016-12-05T14:36:37.000Z
2021-07-29T18:22:34.000Z
microblog/flask/venv/lib/python2.7/site-packages/celery/tests/backends/test_couchbase.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
microblog/flask/venv/lib/python2.7/site-packages/celery/tests/backends/test_couchbase.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
from __future__ import absolute_import from celery.backends import couchbase as module from celery.backends.couchbase import CouchBaseBackend from celery.exceptions import ImproperlyConfigured from celery import backends from celery.tests.case import ( AppCase, MagicMock, Mock, SkipTest, patch, sentinel, ) try: ...
34.905109
73
0.656211
f4f0ca9bb3dde4be2d1dd23906e4e811f902a94b
1,807
py
Python
compression/toy_example/toy_model.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
12
2021-11-02T00:38:47.000Z
2022-03-15T12:57:03.000Z
compression/toy_example/toy_model.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
null
null
null
compression/toy_example/toy_model.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
1
2022-02-22T06:53:35.000Z
2022-02-22T06:53:35.000Z
import torch import torch.nn as nn import torch.optim as optim from compressai.models import CompressionModel, MeanScaleHyperprior from compressai.entropy_models import EntropyBottleneck from compressai.layers import GDN1 as GDN class ImgModel(CompressionModel): """Simple autoencoder with a factorized prior """ ...
34.09434
96
0.574986
3a1f24a38659df20b13f3e13cc5015037dc7ac74
473
py
Python
packages/api-server/api_server/models/ros_pydantic/rmf_fleet_msgs/FleetState.py
Sald-for-Communication-and-IT/rmf-web
ec5996ab0b06440d7147170f3030b14c73d26116
[ "Apache-2.0" ]
23
2021-04-13T23:01:12.000Z
2022-03-21T02:15:24.000Z
packages/api-server/api_server/models/ros_pydantic/rmf_fleet_msgs/FleetState.py
Sald-for-Communication-and-IT/rmf-web
ec5996ab0b06440d7147170f3030b14c73d26116
[ "Apache-2.0" ]
326
2021-03-10T17:32:17.000Z
2022-03-30T04:42:14.000Z
packages/api-server/api_server/models/ros_pydantic/rmf_fleet_msgs/FleetState.py
Sald-for-Communication-and-IT/rmf-web
ec5996ab0b06440d7147170f3030b14c73d26116
[ "Apache-2.0" ]
13
2021-04-10T10:33:36.000Z
2022-02-22T15:39:58.000Z
# This is a generated file, do not edit from typing import List import pydantic from ..rmf_fleet_msgs.RobotState import RobotState class FleetState(pydantic.BaseModel): name: str = "" # string robots: List[RobotState] = [] # rmf_fleet_msgs/RobotState class Config: orm_mode = True sch...
18.192308
62
0.581395
850617b6b80ca0c35ba0837ea218d94b16765fc0
2,452
py
Python
tests/test_timestamp.py
willingc/devicely
2b0cef8cd5ab45e9a7eaa70ff13ff1ef3397ca60
[ "MIT" ]
13
2020-07-13T22:26:25.000Z
2022-03-18T17:40:56.000Z
tests/test_timestamp.py
willingc/devicely
2b0cef8cd5ab45e9a7eaa70ff13ff1ef3397ca60
[ "MIT" ]
26
2020-11-29T11:11:09.000Z
2022-01-12T11:34:19.000Z
tests/test_timestamp.py
willingc/devicely
2b0cef8cd5ab45e9a7eaa70ff13ff1ef3397ca60
[ "MIT" ]
5
2021-07-26T11:01:38.000Z
2022-02-22T18:23:57.000Z
""" Tests for the TimeStamp module """ import os import unittest import pandas as pd import devicely class TimeStampTestCase(unittest.TestCase): READ_PATH = os.path.join(os.getcwd(), 'tests/Timestamp_test_data/tags.csv') WRITE_PATH = os.path.join(os.getcwd(), 'tests/Timestamp_test_data/tags_written.csv') ...
40.866667
111
0.581974
18cc461af99c506e17f9b635e4f2fc65498b924c
2,940
py
Python
Homework 1.py
sashaolin/levelup
b127c4aa62f6a375f9e73f57963d4706eb8dfa5f
[ "Apache-2.0" ]
null
null
null
Homework 1.py
sashaolin/levelup
b127c4aa62f6a375f9e73f57963d4706eb8dfa5f
[ "Apache-2.0" ]
null
null
null
Homework 1.py
sashaolin/levelup
b127c4aa62f6a375f9e73f57963d4706eb8dfa5f
[ "Apache-2.0" ]
null
null
null
# 1. Напишите программу, которая просит пользователя что-нибудь ввести с клавиатуры. # Если он вводит какие-нибудь данные, то на экране должно выводиться сообщение "ОК". # Если он не вводит данные, а просто нажимает Enter, то программа ничего не выводит на экран. str_1 = input('Введите символ:') list_1 = list(str_1) i...
30
105
0.685714
421124da19c7c01e22dda2cd6b9bfc6e263b4c2e
4,648
py
Python
examples/loader.py
GuanzhouSong/GoogLeNet-Inception
8dbd87975ebe7b14fd922f396edea339b0311953
[ "MIT" ]
209
2019-01-11T03:07:55.000Z
2022-03-22T12:31:00.000Z
examples/loader.py
GuanzhouSong/GoogLeNet-Inception
8dbd87975ebe7b14fd922f396edea339b0311953
[ "MIT" ]
8
2019-01-17T17:54:57.000Z
2021-03-09T08:01:03.000Z
examples/loader.py
GuanzhouSong/GoogLeNet-Inception
8dbd87975ebe7b14fd922f396edea339b0311953
[ "MIT" ]
88
2019-01-26T11:55:23.000Z
2022-03-13T17:12:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: loader.py # Author: Qian Ge <geqian1001@gmail.com> import sys import numpy as np import tensorflow as tf import skimage.transform sys.path.append('../') from src.dataflow.images import Image from src.dataflow.cifar import CIFAR def load_label_dict(dataset='image...
31.194631
95
0.601549
00acd1a8f502d0282905adda58ef695666cd4854
1,075
py
Python
blogs/inference/flights/compose_shards.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
6,140
2016-05-23T16:09:35.000Z
2022-03-30T19:00:46.000Z
blogs/inference/flights/compose_shards.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
1,384
2016-07-08T22:26:41.000Z
2022-03-24T16:39:43.000Z
blogs/inference/flights/compose_shards.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
5,110
2016-05-27T13:45:18.000Z
2022-03-31T18:40:42.000Z
import google.cloud.storage.client as gcs import logging def compose_shards(data, context): print(data) num_shards = 10 prefix = 'flights/json/sharded/output' outfile = 'flights/json/flights.json' # trigger on the last file only filename = data['name'] last_shard = '-%05d-of-%05d' % (num_shards - 1, nu...
31.617647
65
0.660465
a895f88e844035277f4df78626467871e3e0b5ca
2,835
py
Python
.history/Missions_to_Mars/scrape_mars_20200808212423.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200808212423.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200808212423.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
2
2020-11-02T08:12:16.000Z
2021-05-17T21:45:42.000Z
# Dependencies import numpy as np import pandas as pd from bs4 import BeautifulSoup as bs import requests from splinter import Browser # Initialize browser def init_browser(): executable_path = {"executable_path": "/usr/local/bin/chromedriver"} #executable_path = {'executable_path': 'chromedriver.exe'} r...
31.5
96
0.640917
2f59a0daf70484f605e4dc2fb5de8b7af4c85151
1,121
py
Python
python_web/models/schemas.py
LouisYZK/Frodo
a51156772604457cea06c4e65282675c49e853c8
[ "Apache-2.0" ]
123
2020-05-28T08:15:03.000Z
2022-03-24T09:07:52.000Z
python_web/models/schemas.py
LouisYZK/Frodo
a51156772604457cea06c4e65282675c49e853c8
[ "Apache-2.0" ]
6
2020-11-19T08:58:53.000Z
2022-02-27T23:51:21.000Z
python_web/models/schemas.py
LouisYZK/Frodo
a51156772604457cea06c4e65282675c49e853c8
[ "Apache-2.0" ]
32
2020-06-04T10:49:32.000Z
2022-03-23T13:33:56.000Z
from typing import List, Any from pydantic import BaseModel class UserBase(BaseModel): name: str class UserAuth(UserBase): password: str class UserLogin(BaseModel): username: str password: str class UserCreate(UserAuth): email: str = None avatar: str = None class UserDelete(BaseModel): ...
16.014286
32
0.627119
632b32046e9a1be3f4916bfc1d30af9ce86524ce
2,887
py
Python
Resources/SystemOutputs/Analyse-all/system_stats.py
evanmiltenburg/AnalysePeopleDescriptions
bdb586e56716d54662edd0316e722d2c7fec706b
[ "Apache-2.0" ]
2
2020-10-09T10:31:07.000Z
2021-01-20T12:40:21.000Z
Resources/SystemOutputs/Analyse-all/system_stats.py
evanmiltenburg/AnalysePeopleDescriptions
bdb586e56716d54662edd0316e722d2c7fec706b
[ "Apache-2.0" ]
null
null
null
Resources/SystemOutputs/Analyse-all/system_stats.py
evanmiltenburg/AnalysePeopleDescriptions
bdb586e56716d54662edd0316e722d2c7fec706b
[ "Apache-2.0" ]
null
null
null
import json import re from collections import Counter from tabulate import tabulate def load_json(filename): "Load a JSON file." with open(filename) as f: return json.load(f) def dump_json(data, filename): "Write a JSON file." with open(filename, 'w') as f: json.dump(data, f, indent=2...
34.783133
131
0.656044
46bbba3f55e6ccc3fbab909c0161b9cacfbe8e2e
505
py
Python
Pythonexer/ExerPython/aprendendopython/ex099.py
felipemcm3/ExerPython
d66c891eb82c0f7fd9c15203fe85a06e96d916b5
[ "MIT" ]
null
null
null
Pythonexer/ExerPython/aprendendopython/ex099.py
felipemcm3/ExerPython
d66c891eb82c0f7fd9c15203fe85a06e96d916b5
[ "MIT" ]
null
null
null
Pythonexer/ExerPython/aprendendopython/ex099.py
felipemcm3/ExerPython
d66c891eb82c0f7fd9c15203fe85a06e96d916b5
[ "MIT" ]
null
null
null
from random import sample from time import sleep def maior(num, x): print(f'Foi sorteado {x} numeros sendo o maior {max(num)}') sleep(1) marcador = 40 * '\033[31m#\033[m' print(marcador) lista = list() i = int(input('Informe quantas vezes quer sortear os números')) for y in range(i, 0, -1): lista = sample(...
26.578947
63
0.631683
381ea4da8e57d809bd0d1f796775e9de4bebc6a3
1,169
py
Python
File_Transfer_Protocol/ftp_send_receive.py
srivama/Python
809d4c077c179feb077f09a3cd2501f9724366a2
[ "MIT" ]
null
null
null
File_Transfer_Protocol/ftp_send_receive.py
srivama/Python
809d4c077c179feb077f09a3cd2501f9724366a2
[ "MIT" ]
null
null
null
File_Transfer_Protocol/ftp_send_receive.py
srivama/Python
809d4c077c179feb077f09a3cd2501f9724366a2
[ "MIT" ]
null
null
null
""" File transfer protocol used to send and receive files using FTP server. Use credentials to provide access to the FTP client Note: Do not use root user name & password for security reasons Create a separate user and provide access to a home directory of the user Use logic id and password of the user created ca...
33.4
92
0.711719
52298524b3835910c72dfb080e224648b9ae2ade
3,045
py
Python
heppy/RabbitMQ.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
20
2016-06-02T20:29:29.000Z
2022-01-31T07:47:02.000Z
heppy/RabbitMQ.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
1
2018-10-09T16:09:24.000Z
2018-10-10T08:17:42.000Z
heppy/RabbitMQ.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
7
2018-04-11T16:05:06.000Z
2020-01-28T16:30:40.000Z
#!/usr/bin/env python import pika import uuid from pika.connection import Parameters from pika.connection import ConnectionParameters class RPCServer: def __init__(self, config): self.config = config self.queue = config.get('queue') self.connection = pika.BlockingConnection(connection_pa...
32.741935
102
0.633498
523186daee86abe22701e01cb51cb9a20da1a9ff
5,860
py
Python
nvtabular/ops/join_external.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/join_external.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/join_external.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, NVIDIA CORPORATION. # # 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 ...
34.470588
91
0.613993
4ca843a8a1e2edc0859fd33c1c69f13ca9cc7a69
10,519
py
Python
gradcam-overlay-tcia.py
ashish-code/MI-DQA
1d4d5c2fa148aa7229cc9089adc982ab0d33e631
[ "MIT" ]
null
null
null
gradcam-overlay-tcia.py
ashish-code/MI-DQA
1d4d5c2fa148aa7229cc9089adc982ab0d33e631
[ "MIT" ]
null
null
null
gradcam-overlay-tcia.py
ashish-code/MI-DQA
1d4d5c2fa148aa7229cc9089adc982ab0d33e631
[ "MIT" ]
null
null
null
""" Class Activation Map for ResNet-18 with 2D Tensor of MRI slices """ import torch from torch import nn import matplotlib.pyplot as plt from matplotlib.pyplot import imshow from torchvision import models from torch import optim from torch.optim import lr_scheduler from torchvision import transforms from torch.autogra...
33.932258
107
0.62639
af7466ced8260b8a7a7a5bfcfd2516ca758082f5
4,918
bzl
Python
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
22
2019-06-25T07:00:29.000Z
2022-02-01T03:13:08.000Z
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
7
2019-06-26T08:20:46.000Z
2022-02-10T00:24:41.000Z
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
2
2019-06-03T23:14:15.000Z
2019-06-26T08:19:56.000Z
# Utility functions def mk_param_summary(hyperparams): return '__'.join([hpname + '_' + val for hpname, val in hyperparams.items()]) def insert_param_summary(filename, param_summary): basename, extn = filename.rsplit('.', 1) return basename + '__' + param_summary + '.' + extn def combinations(ll): ...
29.987805
89
0.611427
4926c614e3650c9256c47da23276c31049bf00f5
2,298
py
Python
pythonlib/tests/integration_tests/test_utils.py
mialiu149/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
1
2018-07-01T18:49:09.000Z
2018-07-01T18:49:09.000Z
pythonlib/tests/integration_tests/test_utils.py
rawnc/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
null
null
null
pythonlib/tests/integration_tests/test_utils.py
rawnc/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
5
2018-07-11T21:35:46.000Z
2019-07-11T19:41:55.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License import os import json import glob import requests import zipfile from collections import namedtuple from datetime import datetime, timezone from dateutil.parser import parse from amlrealtimeai import deployment_client def cl...
35.353846
100
0.669713
7208e20eeb8a0b002aa5bd4736ac752a17ea073c
1,948
py
Python
pyglare/math/geometry.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
6
2017-01-13T22:32:55.000Z
2022-03-27T22:19:49.000Z
pyglare/math/geometry.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
1
2016-09-13T17:59:41.000Z
2016-09-13T18:05:20.000Z
pyglare/math/geometry.py
keyvank/pyglare
9e26ae444ff4481f0f50d7344d2a5a881d04fe64
[ "MIT" ]
null
null
null
import math class Vector: def __init__(self,x,y,z): self.x = x self.y = y self.z = z def length(self): return math.sqrt(self.x * self.x + self.y * self.y + self.z * self.z) def normalize(self): return self / self.length() def __add__(self,vec): return Vector(self.x + vec.x,self.y + vec.y,self.z...
20.505263
78
0.649384
1fd9658c482813818ead6571da6b1fa35e921767
3,292
py
Python
economic_dispatch/simulation/dataclasses.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
economic_dispatch/simulation/dataclasses.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
economic_dispatch/simulation/dataclasses.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Tampere University and VTT Technical Research Centre of Finland # This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus # This source code is licensed under the MIT license. See LICENSE in the repository root directory. # Aut...
27.663866
108
0.647631
00eb2e176df1b531bb5d9a1228057936241c23ec
1,740
bzl
Python
objc/objc_proto_library.bzl
purkhusid/rules_proto_grpc
943656d049d2932a32d8f882bbb05c024b499020
[ "Apache-2.0" ]
null
null
null
objc/objc_proto_library.bzl
purkhusid/rules_proto_grpc
943656d049d2932a32d8f882bbb05c024b499020
[ "Apache-2.0" ]
null
null
null
objc/objc_proto_library.bzl
purkhusid/rules_proto_grpc
943656d049d2932a32d8f882bbb05c024b499020
[ "Apache-2.0" ]
null
null
null
"""Generated definition of objc_proto_library.""" load("//objc:objc_proto_compile.bzl", "objc_proto_compile") load("//internal:compile.bzl", "proto_compile_attrs") load("//internal:filter_files.bzl", "filter_files") load("@rules_cc//cc:defs.bzl", "objc_library") def objc_proto_library(name, **kwargs): # buildifier: ...
31.071429
93
0.592529
9390cd0decc5bb3cdc7df8a96b30a05473a0d3b8
599
py
Python
src/SgFactory/sizegrip.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
src/SgFactory/sizegrip.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
src/SgFactory/sizegrip.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from .base import GeneratorBase class Sizegrip(GeneratorBase): BACKGROUND_COLOR = 'background_color' PAD = 'pad' KEY = 'key' def reset_params(self): self.__parameters__ = { self.BACKGROUND_COLOR: (False, None), self.PAD: (False, ...
28.52381
60
0.590985
30115e08c32a5e3c9fd516b4f447af2218bb952f
3,916
py
Python
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
import datetime import sys import urllib2 import re import os import time import urllib import urllib2 import pandas_datareader.data as web import random import json from math import log # output file name: input/stockPrices_raw.json # json structure: crawl daily price data from yahoo finance # ticker # ...
36.259259
154
0.639173
8b3bfd4cda361e55bb5628a953bce5251a8a00e0
2,719
py
Python
gym_connect_four/envs/render.py
nicolas-chan-42/COMP-3359-Project-Deep-Q-RL
6e9098e6d55b8a813b27efc871f179ffeb2cfa9c
[ "MIT" ]
null
null
null
gym_connect_four/envs/render.py
nicolas-chan-42/COMP-3359-Project-Deep-Q-RL
6e9098e6d55b8a813b27efc871f179ffeb2cfa9c
[ "MIT" ]
1
2020-05-02T15:24:23.000Z
2020-05-02T15:24:23.000Z
gym_connect_four/envs/render.py
nicolas-chan-42/COMP-3359-Project-Deep-Q-RL
6e9098e6d55b8a813b27efc871f179ffeb2cfa9c
[ "MIT" ]
null
null
null
import gym import numpy as np from PIL import Image, ImageDraw class Color(object): WHITE = (255, 255, 255) RED = (255, 0, 0) BLUE = (0, 0, 255) YELLOW = (255, 255, 0) def render_board(board, image_width=512, image_height=512, board_percent_x=0.8, ...
32.759036
85
0.616035
fc05d26835ad9353c5d756bf79fffcd49c64ca01
225
py
Python
brainly/49532933/2.py
Guaxinim5573/programming-questions
447c6f326d8a216b24847964ca3402f7a40d458c
[ "MIT" ]
null
null
null
brainly/49532933/2.py
Guaxinim5573/programming-questions
447c6f326d8a216b24847964ca3402f7a40d458c
[ "MIT" ]
null
null
null
brainly/49532933/2.py
Guaxinim5573/programming-questions
447c6f326d8a216b24847964ca3402f7a40d458c
[ "MIT" ]
null
null
null
while True: try: numero = int(input("Digite um número: ")) print("Tabuada de " + str(numero)) for i in range(1,11): print(str(i) + ": " + str(numero * i)) except ValueError: print("Número inválido.") continue
20.454545
43
0.617778
d6b70ae096ff6321233ca2c03e6ecaf775051939
1,553
py
Python
configs/fsaf/fsaf_r50_fpn_1x_coco.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
null
null
null
configs/fsaf/fsaf_r50_fpn_1x_coco.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
1
2021-12-01T04:15:47.000Z
2021-12-01T04:15:47.000Z
configs/fsaf/fsaf_r50_fpn_1x_coco.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
null
null
null
_base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py' # model settings model = dict( type='FSAF', bbox_head=dict( type='FSAFHead', num_classes=80, in_channels=256, stacked_convs=4, feat_channels=256, reg_decoded_bbox=True, # Only anchor-free branch is imple...
32.354167
77
0.563426
9c72ed353fb9b011bfd50da744577708d464fd4c
1,216
py
Python
setup.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
setup.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
setup.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="beetlesafari", version="0.3.2", author="Robert Haase", author_email="robert.haase@tu-dresden.de", description="A napari plugin for loading and working with light sheet imaging data of deve...
35.764706
172
0.658717
2107a4179bde1d349c3a607466093d340a4bc1cf
259
py
Python
setup.py
coecms/era5
0c280ba93f74c21c8276e6e646ad8bdd74ca3eff
[ "Apache-2.0" ]
22
2019-03-20T06:10:59.000Z
2021-11-22T14:38:56.000Z
setup.py
coecms/era5
0c280ba93f74c21c8276e6e646ad8bdd74ca3eff
[ "Apache-2.0" ]
null
null
null
setup.py
coecms/era5
0c280ba93f74c21c8276e6e646ad8bdd74ca3eff
[ "Apache-2.0" ]
5
2019-03-24T23:54:57.000Z
2021-11-29T16:20:07.000Z
#!/usr/bin/env python # # Uses Python Build Reasonableness https://docs.openstack.org/developer/pbr/ # Add configuration to `setup.cfg` from setuptools import setup setup( setup_requires=['pbr>=1.9', 'setuptools>=17.1'], pbr=True, )
21.583333
76
0.664093
d0d25d14ed6f582b782d144f6a1b09731c84a93e
8,742
py
Python
scripts/plot_results.py
SudeepDasari/video_prediction-1
ef0953b514aa1b7a1f5e96fd30aebef01334fb2d
[ "MIT" ]
5
2018-05-23T02:15:45.000Z
2020-09-04T00:52:48.000Z
scripts/plot_results.py
SudeepDasari/video_prediction-1
ef0953b514aa1b7a1f5e96fd30aebef01334fb2d
[ "MIT" ]
null
null
null
scripts/plot_results.py
SudeepDasari/video_prediction-1
ef0953b514aa1b7a1f5e96fd30aebef01334fb2d
[ "MIT" ]
3
2018-10-19T23:13:15.000Z
2020-01-10T15:09:54.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import glob import os import numpy as np def load_metrics(prefix_fname): import csv with open('%s.csv' % prefix_fname, newline='') as csvfile: reader = csv.reader(csvfile, del...
39.556561
136
0.626401
84b1b920db5b37bf9bfa8d39379b8cb5d065ed1f
2,433
py
Python
log_casp_act/run_model_232.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_232.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_232.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
import numpy as np from math import * import pymultinest import sys sys.path.insert(0, '/home/kochenma/pysb') from pysb.integrate import Solver import csv import datetime import time as tm from model_232 import model from pysb.pathfinder import set_path set_path('bng', '/home/kochenma/BioNetGen') data_object = [] wi...
25.610526
237
0.671599
cd0cdd8048f64e9be8d812846fecf7e8d4ff5ea7
2,548
py
Python
var/spack/repos/builtin/packages/py-prompt-toolkit/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-prompt-toolkit/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-prompt-toolkit/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPromptToolkit(PythonPackage): """Library for building powerful interactive command lines...
56.622222
96
0.742151
db35abd17b63058c353dde5acc3d30dc18ec054a
104
py
Python
04_Day_Strings/25.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
04_Day_Strings/25.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
04_Day_Strings/25.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
phrase = 'You can not end a setence with because because because is a conjunction' print(phrase[31:54])
34.666667
82
0.769231
51d1bf2a5a1e0e7f221d2673beeb4c167505ff8d
1,075
py
Python
apps/news/handlers/update.py
hiraq/testcoil
f136ca6b3e9d0ce5da9f868ab63d9c7dda0f859e
[ "MIT" ]
null
null
null
apps/news/handlers/update.py
hiraq/testcoil
f136ca6b3e9d0ce5da9f868ab63d9c7dda0f859e
[ "MIT" ]
null
null
null
apps/news/handlers/update.py
hiraq/testcoil
f136ca6b3e9d0ce5da9f868ab63d9c7dda0f859e
[ "MIT" ]
null
null
null
import datetime from http import HTTPStatus from sanic.response import json from core.helpers import jsonapi from apps.commons.errors import DataNotFoundError from apps.news.models import News from apps.news.repository import NewsRepo from apps.news.services import UpdateService async def update(request, id): r...
28.289474
91
0.609302
2d0aea3a4b6fe21ddf21dabca0cbe541f5fc99a9
4,087
py
Python
gollyx_python/stats.py
golly-splorts/gollyx-python
4914ab4cb6792b62209a90500e9d7a5a4763ca8f
[ "MIT" ]
null
null
null
gollyx_python/stats.py
golly-splorts/gollyx-python
4914ab4cb6792b62209a90500e9d7a5a4763ca8f
[ "MIT" ]
null
null
null
gollyx_python/stats.py
golly-splorts/gollyx-python
4914ab4cb6792b62209a90500e9d7a5a4763ca8f
[ "MIT" ]
null
null
null
from .constants import SMOL, MAXDIM, EQUALTOL from .utils import approx_equal from .movingavglist import MovingAvgList class LifeStats(object): """ Object to hold statistical information about a Life object. This abstraction is messy, since the Life object creates LifeStats, but LifeStats still requir...
39.298077
93
0.565941
5c4ec5be62c707be44d8bc8abbd050a343a65ff5
31,377
py
Python
pylearn2/datasets/new_norb.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
pylearn2/datasets/new_norb.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
pylearn2/datasets/new_norb.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
"""An interface to the NORB and Small NORB datasets. Unlike ./norb_small.py, this reads the original NORB file format, not the LISA lab's .npy version. Download the datasets from: Small NORB: http://www.cs.nyu.edu/~ylclab/data/norb-v1.0-small/ (big) NORB: http://www.cs.nyu.edu/~ylclab/data/norb-v1.0/ NORB and Small ...
36.698246
79
0.524014
bb43cab366a137d38d0e417e7433044ef0a76457
9,621
py
Python
tools/sim/op_script/draw_num_of_errors.py
FusionFuzz/openpilot
ee9a74d9842808f2af3cb6e2173d75483443f31e
[ "MIT" ]
null
null
null
tools/sim/op_script/draw_num_of_errors.py
FusionFuzz/openpilot
ee9a74d9842808f2af3cb6e2173d75483443f31e
[ "MIT" ]
null
null
null
tools/sim/op_script/draw_num_of_errors.py
FusionFuzz/openpilot
ee9a74d9842808f2af3cb6e2173d75483443f31e
[ "MIT" ]
null
null
null
import sys import argparse import os import numpy as np import pickle import seaborn as sns sns.set_theme() sns.set_style("white") from matplotlib import pyplot as plt from tools.sim.op_script.utils_multiple import append_relevant_paths if __name__ == "__main__": append_relevant_paths() from tools.sim.op_scrip...
41.115385
213
0.639746
3d7d9b9d4b715a79ee74a598a4fd3354714af95d
21,508
py
Python
supervisor/tests/test_supervisord.py
blueyed/supervisor
0bfed5f2a7442a88103da7e9a92dcd018e8e15fc
[ "ZPL-2.1" ]
2
2017-09-17T21:24:44.000Z
2019-08-26T03:02:43.000Z
supervisor/tests/test_supervisord.py
blueyed/supervisor
0bfed5f2a7442a88103da7e9a92dcd018e8e15fc
[ "ZPL-2.1" ]
null
null
null
supervisor/tests/test_supervisord.py
blueyed/supervisor
0bfed5f2a7442a88103da7e9a92dcd018e8e15fc
[ "ZPL-2.1" ]
3
2021-02-23T08:36:03.000Z
2021-02-23T08:36:54.000Z
import unittest import time import signal import sys import os import tempfile import shutil from supervisor.tests.base import DummyOptions from supervisor.tests.base import DummyPConfig from supervisor.tests.base import DummyPGroupConfig from supervisor.tests.base import DummyProcess from supervisor.tests.base import...
40.35272
85
0.644783
5b4c239ab953f71a5526198e932bf90534372279
19,829
py
Python
cirq-core/cirq/ops/clifford_gate_test.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/clifford_gate_test.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/ops/clifford_gate_test.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.856877
100
0.701649
a8beec77384f5afd9e7f4d26eec71848958bb416
980
py
Python
setup.py
psuresh21/real-time_weather_status
7891222a17a8cdb3c530d31c08be1e5d00c7eb4d
[ "MIT" ]
null
null
null
setup.py
psuresh21/real-time_weather_status
7891222a17a8cdb3c530d31c08be1e5d00c7eb4d
[ "MIT" ]
null
null
null
setup.py
psuresh21/real-time_weather_status
7891222a17a8cdb3c530d31c08be1e5d00c7eb4d
[ "MIT" ]
null
null
null
from intro_ques import * from read_the_urls import read_the_url from extract_txt import ext_txt from weather_report import print_weather from bytostr import bytes_to_str import urllib.request, re urls = f"https://www.google.com/search?channel=fs&client=ubuntu&q={mycountry}+weather" # read the urls read_the_url(urls)...
31.612903
143
0.742857
70c89618629c546e3998564d6b69f968abcb6398
849
py
Python
atom/nucleus/python/test/test_page_client.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_client.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_client.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Atom API The Hydrogen Atom API # noqa: E501 OpenAPI spec version: 1.7.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nucleus_...
20.707317
79
0.690224
16c6aa25464f90f34b0e2a761ecbf9f07650c6e2
10,644
py
Python
archinfo/arch_x86.py
0mp/archinfo
2f510c03d49858e1d1a6c7a2ce89cc528cfe68dc
[ "BSD-2-Clause" ]
1
2019-06-05T21:34:28.000Z
2019-06-05T21:34:28.000Z
archinfo/arch_x86.py
mephi42/archinfo
2371aac5c162907e722d70de5607297a5c3fb62e
[ "BSD-2-Clause" ]
null
null
null
archinfo/arch_x86.py
mephi42/archinfo
2371aac5c162907e722d70de5607297a5c3fb62e
[ "BSD-2-Clause" ]
null
null
null
import logging l = logging.getLogger("archinfo.arch_x86") try: import capstone as _capstone except ImportError: _capstone = None try: import keystone as _keystone except ImportError: _keystone = None try: import unicorn as _unicorn except ImportError: _unicorn = None from .arch import Arch,...
44.165975
121
0.547163
f0fa740f5d5c04827fa7c1860ed8f621cb01015a
3,460
bzl
Python
tensorflow/core/platform/build_config.bzl
sisp/tensorflow
eb1aab2c5accecfa8d9400619367049cd3a33156
[ "Apache-2.0" ]
2
2019-12-10T11:03:50.000Z
2020-07-22T22:04:14.000Z
tensorflow/core/platform/build_config.bzl
Maplesotrys/tensorflow
bd02ab2727d4f21a332efdc453f95d8c3b52cbe0
[ "Apache-2.0" ]
2
2021-08-25T15:53:30.000Z
2022-02-10T01:40:41.000Z
tensorflow/core/platform/build_config.bzl
Maplesotrys/tensorflow
bd02ab2727d4f21a332efdc453f95d8c3b52cbe0
[ "Apache-2.0" ]
1
2021-10-05T02:42:58.000Z
2021-10-05T02:42:58.000Z
"""Provides a redirection point for platform specific implementations of starlark utilities.""" load( "//tensorflow/core/platform/default:build_config.bzl", _pyx_library = "pyx_library", _tf_additional_all_protos = "tf_additional_all_protos", _tf_additional_binary_deps = "tf_additional_binary_deps", ...
50.144928
95
0.854335
80f0e67cbb55a58c3890703a875d4bab6b13cb83
385
py
Python
setup.py
jmstevens/cordel-bot
d52dc12978064c3dc109720cdcd11524e45b5b78
[ "MIT" ]
null
null
null
setup.py
jmstevens/cordel-bot
d52dc12978064c3dc109720cdcd11524e45b5b78
[ "MIT" ]
null
null
null
setup.py
jmstevens/cordel-bot
d52dc12978064c3dc109720cdcd11524e45b5b78
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Discord conversational chatbot sandbox project. All code is written following Matthew Inkawhich's pytorch tutorial on developing chatbots https://pytorch.org/tutorials/beginner/chatbot...
35
217
0.753247
718e236178bcd6b5158791936bf91e0db1ba5392
5,817
py
Python
bin/disco_ssh.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
27
2016-03-08T16:50:22.000Z
2018-11-26T06:33:25.000Z
bin/disco_ssh.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
202
2016-03-08T17:13:08.000Z
2019-02-01T00:49:06.000Z
bin/disco_ssh.py
amplify-education/asiaq
fb6004bc4da0acef40e7bc18b148db4f72fa2f32
[ "BSD-2-Clause" ]
2
2016-03-17T18:52:37.000Z
2016-10-06T20:36:37.000Z
#!/usr/bin/env python """ Asiaq SSH utility. Starts an ssh session to a host by automatically determining whether to use its private ip, public ip, or to tunnel through a jump host. Usage: disco_ssh.py [options] <host> Variables: <host> A hostname/hostclass/instance substring Options: -...
36.584906
108
0.620079
05e8a96a0bb6cfcd9e64d36b4cc6eb60932a21ca
3,922
py
Python
scripts/shrink_fasttext.py
zeeshansayyed/multiparser
f77e7c688ec51bc09f52441900fbe27c5c62f6bc
[ "MIT" ]
null
null
null
scripts/shrink_fasttext.py
zeeshansayyed/multiparser
f77e7c688ec51bc09f52441900fbe27c5c62f6bc
[ "MIT" ]
null
null
null
scripts/shrink_fasttext.py
zeeshansayyed/multiparser
f77e7c688ec51bc09f52441900fbe27c5c62f6bc
[ "MIT" ]
1
2021-09-10T14:58:02.000Z
2021-09-10T14:58:02.000Z
from pathlib import Path from torch._C import dtype from supar.utils.data import Dataset from supar.utils.field import Field from supar.utils.common import bos, pad, unk from supar.utils.transform import CoNLL from collections import defaultdict import argparse import numpy as np import pudb data_dir = Path('data') e...
41.723404
114
0.616267
456018c3a2d8c93e7b1944cde8e82b67e7bb9827
210
py
Python
blog/forms.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
null
null
null
blog/forms.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
8
2020-02-12T00:37:14.000Z
2021-09-22T17:41:18.000Z
blog/forms.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
null
null
null
from django.forms import ModelForm from .models import Entry, EntryComment class EntryCommentForm(ModelForm): class Meta: model = EntryComment exclude = ('entry', 'created_date', 'approved', 'user')
26.25
59
0.738095
b9d5fb5137c1f0827884d672cb9aad1e22ae1fb1
1,488
py
Python
mealbot.py
boghison/ksamealbot
8a95d8e17e87908ee05eb4282a371f83997b9c78
[ "MIT" ]
null
null
null
mealbot.py
boghison/ksamealbot
8a95d8e17e87908ee05eb4282a371f83997b9c78
[ "MIT" ]
1
2018-03-10T13:49:34.000Z
2018-03-11T04:24:58.000Z
mealbot.py
boghison/ksamealbot
8a95d8e17e87908ee05eb4282a371f83997b9c78
[ "MIT" ]
null
null
null
import urllib2, ssl, os import xml.etree.ElementTree as ET from datetime import datetime from threading import Timer meal = ['*☀ 조식 ☀*️', '*🕐 중식 🕐*', '*🌙 석식 🌙*'] bot_token = os.environ['TELEGRAM_BOT_TOKEN'] context = ssl._create_unverified_context() def create_timer(): today = datetime.today() ...
31.659574
140
0.580645
fb88e8146b890a140f1c2b35a2dae1cdfbdcb937
1,857
py
Python
bin/dbtest.py
citruscoin/Sentinel
85470f79ce0f49a05794df6ad7528dbf6825dc26
[ "MIT" ]
null
null
null
bin/dbtest.py
citruscoin/Sentinel
85470f79ce0f49a05794df6ad7528dbf6825dc26
[ "MIT" ]
null
null
null
bin/dbtest.py
citruscoin/Sentinel
85470f79ce0f49a05794df6ad7528dbf6825dc26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pdb from pprint import pprint import re import sys import os sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../lib'))) import config from models import Superblock, Proposal, GovernanceObject, Setting, Signal, Vote, Outcome, Watchdog from models import VoteSignal...
29.47619
99
0.686053
4025d811a754477c62c92c4753dc47a5ff576779
269
py
Python
docs/fix_readme.py
5yutan5/qt-material
63caf6755d1d00ea66c37d6583077c376a764435
[ "BSD-2-Clause" ]
692
2020-12-06T17:30:05.000Z
2022-03-31T14:12:40.000Z
docs/fix_readme.py
5yutan5/qt-material
63caf6755d1d00ea66c37d6583077c376a764435
[ "BSD-2-Clause" ]
43
2020-12-06T04:19:02.000Z
2022-03-16T15:20:34.000Z
docs/fix_readme.py
5yutan5/qt-material
63caf6755d1d00ea66c37d6583077c376a764435
[ "BSD-2-Clause" ]
93
2020-12-10T08:26:25.000Z
2022-03-29T08:46:46.000Z
import os with open('../README.md', 'r') as file: content = file.read() content = content.replace( '_images/', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/') with open('../README.md', 'w') as file: file.write(content)
29.888889
100
0.665428
a3ad55d25d6b2e17842278a8f4cb26972bf89b2c
8,464
py
Python
utils/infomin_base_options.py
frank-xwang/CLD
0852e5c3d0f0c28e85668b87b4fff20bd67e3efd
[ "MIT" ]
70
2020-12-04T06:44:57.000Z
2022-03-30T03:38:55.000Z
utils/infomin_base_options.py
frank-xwang/CLD-UnsupervisedLearning
5c5a5ac87b848a8f2b826455a5af04add7ad4cf9
[ "MIT" ]
18
2020-12-31T03:57:35.000Z
2021-10-21T06:41:41.000Z
utils/infomin_base_options.py
frank-xwang/CLD
0852e5c3d0f0c28e85668b87b4fff20bd67e3efd
[ "MIT" ]
6
2021-04-13T18:09:14.000Z
2021-12-14T11:18:23.000Z
import os import argparse class BaseOptions(object): def __init__(self): self.initialized = False self.parser = None self.opt = None # config for predefined method self.override_dict = { 'InsDis': ['RGB', False, 'bank', 'A', 'linear', 0.07], 'CMC':...
50.08284
92
0.521148
a961f92c7dbb391ad0a39052108d09515f037fc0
14,825
py
Python
floris/simulation/wake_velocity/multizone.py
paulf81/FLORIS
ef4934ec7feb7afd2615772d364a1eaa28db93e9
[ "Apache-2.0" ]
91
2019-06-04T08:56:29.000Z
2022-03-13T17:39:22.000Z
floris/simulation/wake_velocity/multizone.py
paulf81/FLORIS
ef4934ec7feb7afd2615772d364a1eaa28db93e9
[ "Apache-2.0" ]
224
2019-04-08T22:03:45.000Z
2022-03-31T17:56:09.000Z
floris/simulation/wake_velocity/multizone.py
paulf81/FLORIS
ef4934ec7feb7afd2615772d364a1eaa28db93e9
[ "Apache-2.0" ]
97
2019-04-23T20:48:20.000Z
2022-03-29T08:17:02.000Z
# Copyright 2021 NREL # 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, software # distri...
36.7866
88
0.549477
b72c89dd39ea0f117411eba9c76fdc52c7e392cc
2,659
py
Python
refreshtoken/views.py
karisal-anders/djangorestframework-jwt-refresh-token
a7a211a4e9bb37052776b310b67ef4b1fae78fcd
[ "MIT" ]
null
null
null
refreshtoken/views.py
karisal-anders/djangorestframework-jwt-refresh-token
a7a211a4e9bb37052776b310b67ef4b1fae78fcd
[ "MIT" ]
null
null
null
refreshtoken/views.py
karisal-anders/djangorestframework-jwt-refresh-token
a7a211a4e9bb37052776b310b67ef4b1fae78fcd
[ "MIT" ]
1
2022-02-17T08:17:41.000Z
2022-02-17T08:17:41.000Z
from calendar import timegm from datetime import datetime from django.utils.translation import ugettext as _ from rest_framework import exceptions, generics, status, viewsets from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework_jwt.settings import api_setting...
34.986842
79
0.735615
ff77ae89e0f542fca59afdb42020d2f2c7e14dc1
2,301
py
Python
tools/project-creator/Python2.6.6/Lib/test/test_fork1.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
81
2017-03-13T08:24:01.000Z
2021-04-02T09:48:38.000Z
tools/project-creator/Python2.6.6/Lib/test/test_fork1.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
6
2017-04-30T08:36:55.000Z
2017-09-22T01:37:28.000Z
tools/project-creator/Python2.6.6/Lib/test/test_fork1.py
gohopo/nineck.ca
9601f5ae4c20f8a3ea27b06551556fa5e1eecce3
[ "MIT" ]
41
2017-03-18T14:11:58.000Z
2021-04-14T05:06:09.000Z
"""This test checks for correct fork() behavior. """ import errno import imp import os import signal import sys import time import threading from test.fork_wait import ForkWait from test.test_support import TestSkipped, run_unittest, reap_children try: os.fork except AttributeError: raise Te...
31.094595
88
0.55628
1687b406c73c5bcacdca0a1482e97da70606b732
9,119
py
Python
main.py
BongSangKim/UGRP-in-progress
c8ed53d57f24a50dda441a4db9bd250e1124e9dd
[ "MIT" ]
1
2019-08-06T03:06:41.000Z
2019-08-06T03:06:41.000Z
main.py
BongSangKim/UGRP-in-progress
c8ed53d57f24a50dda441a4db9bd250e1124e9dd
[ "MIT" ]
null
null
null
main.py
BongSangKim/UGRP-in-progress
c8ed53d57f24a50dda441a4db9bd250e1124e9dd
[ "MIT" ]
null
null
null
#https://github.com/seungeunrho/minimalRL/blob/52aaa800e7bad30920a21a62f04a17d25663245c/dqn.py import gym import gym_UDN import collections #replay buffer에서 쓰일 deque를 import하기 위함 double ended que? import random import numpy as np from matplotlib import pyplot as plt import torch #pytorch import torch.nn as nn im...
43.631579
159
0.608839
39f0d20a97299465313d187da35c5439c13516be
2,094
py
Python
kuryr_kubernetes/cmd/gather_openstack_data.py
openshift-bot/kuryr-kubernetes
9577bf398b19c1305468dda749edac31d76d46ee
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/cmd/gather_openstack_data.py
openshift-bot/kuryr-kubernetes
9577bf398b19c1305468dda749edac31d76d46ee
[ "Apache-2.0" ]
1
2021-04-16T11:12:00.000Z
2021-04-16T11:12:00.000Z
kuryr_kubernetes/cmd/gather_openstack_data.py
isabella232/kuryr-kubernetes
e682f20208f4f7b16f36e58b86abe62d5d0425e3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
29.492958
78
0.696275
19cdc4bf75c4e5d929eafd790340b9db5cc1f9e1
656
py
Python
odmantic/__init__.py
vd2org/odmantic
8bbc9f72dce74425238dab5c091261a1c548384e
[ "0BSD" ]
null
null
null
odmantic/__init__.py
vd2org/odmantic
8bbc9f72dce74425238dab5c091261a1c548384e
[ "0BSD" ]
null
null
null
odmantic/__init__.py
vd2org/odmantic
8bbc9f72dce74425238dab5c091261a1c548384e
[ "0BSD" ]
null
null
null
from .engine import AIOEngine from .field import Field from .model import EmbeddedModel, Model from .reference import Reference from .tools.bson import ObjectId __all__ = ["AIOEngine", "Model", "EmbeddedModel", "Field", "Reference", "ObjectId"] # Cleanest way to handle version changes with poetry while not hardcoding...
32.8
85
0.786585
839169fc3611439db4226ef7010aff1763e9058b
157
py
Python
python/14-ImageCrop.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/14-ImageCrop.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/14-ImageCrop.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
# 100 -> 200 x # 100 -> 300 y import cv2 img = cv2.imread('../Assets/Images/lena.jpg', 1) dst = img[100:200, 100:300] cv2.imshow('dst', dst) cv2.waitKey(0)
17.444444
48
0.630573
4c3cb5b8a6aa253d02612532e472e65459fedb3d
7,260
py
Python
mvpa_itab/script/carlo/sherlock/prepro/sherlock_glm.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
1
2022-01-12T08:59:22.000Z
2022-01-12T08:59:22.000Z
mvpa_itab/script/carlo/sherlock/prepro/sherlock_glm.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
46
2016-08-04T14:49:37.000Z
2022-03-09T08:47:48.000Z
mvpa_itab/script/carlo/sherlock/prepro/sherlock_glm.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bids import BIDSLayout import os import numpy as np import pandas as pd import click import itertools @click.command() @click.option("--path", default='.', help="Path where data is stored") @click.option("--pipeline", default='afniglm') @click.option("--task", default='rest') @click.option...
32.850679
145
0.586364
fc712ec3347e5b527245416d7c938e71c3ea2b45
3,047
py
Python
constants.py
rslayer/bhulan
a5fc3dc1c3d76005fe5dd076f39f8b41f98dbd7c
[ "MIT" ]
2
2015-06-15T17:59:56.000Z
2015-07-14T16:58:27.000Z
constants.py
rslayer/bhulan
a5fc3dc1c3d76005fe5dd076f39f8b41f98dbd7c
[ "MIT" ]
null
null
null
constants.py
rslayer/bhulan
a5fc3dc1c3d76005fe5dd076f39f8b41f98dbd7c
[ "MIT" ]
null
null
null
LAT_KEY = "lat" LON_KEY = "lon" PATENT_KEY = "patent" TIMESTAMP_KEY = "timestamp" TEMPERATURE_KEY = "temperature" DRIVER_KEY = "driver" COMMUNE_KEY = "commune" CAPACITY_KEY = "capacity" M_LAT_KEY = "mLat" M_LON_KEY = "mLon" VELOCITY_KEY = "velocity" TRUCK_ID_KEY = "truckId" TIME_KEY = "time" TIME_START_KEY = "timeStart...
22.404412
42
0.76042
2d48e5efff5e9a7c63ee5ca970a49998b746ffa7
6,116
py
Python
super_collections/dashboard_views/views.py
722C/saleor-super-collections
0f0e79156043f96091cb1f949fbf616363919a16
[ "MIT" ]
null
null
null
super_collections/dashboard_views/views.py
722C/saleor-super-collections
0f0e79156043f96091cb1f949fbf616363919a16
[ "MIT" ]
null
null
null
super_collections/dashboard_views/views.py
722C/saleor-super-collections
0f0e79156043f96091cb1f949fbf616363919a16
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.http import JsonResponse from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.utils.translation import pge...
42.17931
87
0.715664
64426e9fbf93970e6c0a9fe75038d2b010d6730e
544
py
Python
tests/r/test_med_expenses.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_med_expenses.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_med_expenses.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.med_expenses import med_expenses def test_med_expenses(): """Test module med_expenses.py by downloading med_expenses.csv and testing shape of...
22.666667
52
0.766544
3bbbe221fcff21af8c8da575b243b3d085ca5a6c
16,787
py
Python
homeassistant/components/sensor/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/sensor/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/sensor/__init__.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Component to interface with various sensors that can be monitored.""" from __future__ import annotations from collections.abc import Mapping from contextlib import suppress from dataclasses import dataclass from datetime import date, datetime, timedelta, timezone import inspect import logging from typing import Any...
34.470226
91
0.636921
209c53b687981989638e481f7d95d23c3559a355
5,378
py
Python
harps/harpsutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
35
2016-09-09T04:08:45.000Z
2022-02-16T20:25:49.000Z
harps/harpsutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
29
2016-09-10T15:30:29.000Z
2021-06-02T14:55:53.000Z
harps/harpsutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
26
2016-09-09T23:58:15.000Z
2022-02-20T17:50:35.000Z
import matplotlib matplotlib.use("Agg") from astropy.io import fits as pyfits from pylab import * import scipy import glob import os import sys base = '../' sys.path.append(base+"utils/GLOBALutils") import GLOBALutils def getObName(h): """ Get name of object under consideration """ obname = h[0].heade...
29.549451
179
0.588695
47daa099d175e6495b1edc3770cf832b2dd222f6
11,246
py
Python
tests/classification/test_stat_scores.py
alanhdu/metrics
b168272eaf1ff08b9447e75338753f9c2abf0859
[ "Apache-2.0" ]
null
null
null
tests/classification/test_stat_scores.py
alanhdu/metrics
b168272eaf1ff08b9447e75338753f9c2abf0859
[ "Apache-2.0" ]
null
null
null
tests/classification/test_stat_scores.py
alanhdu/metrics
b168272eaf1ff08b9447e75338753f9c2abf0859
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.498155
120
0.646541
22abae119f8fd316275d24ac01344352d9692aa4
1,544
py
Python
aliyun/api/rest/Ess20140828AttachInstancesRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
14
2015-11-30T02:35:18.000Z
2019-05-14T11:49:24.000Z
aliyun/api/rest/Ess20140828AttachInstancesRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
2
2015-11-30T02:51:40.000Z
2017-03-16T01:51:45.000Z
aliyun/api/rest/Ess20140828AttachInstancesRequest.py
francisar/rds_manager
458298669bf7d1990a85648b466b88f905256690
[ "MIT" ]
12
2016-01-04T06:48:17.000Z
2020-11-07T14:08:25.000Z
''' Created by auto_sdk on 2015.06.23 ''' from aliyun.api.base import RestApi class Ess20140828AttachInstancesRequest(RestApi): def __init__(self,domain='ess.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.InstanceId_1 = None self.InstanceId_10 = None self.InstanceId_11 = None self.InstanceI...
44.114286
632
0.762306
71e4a7f2716e7a0b039edcc5a32aca7551247d11
1,968
py
Python
Codes/Project1/HandIn/luv_lscl.py
SCGTall/CS6384ComputerVision
f9b911d4230d65336555291a9d72f07f6aadcfe9
[ "MIT" ]
null
null
null
Codes/Project1/HandIn/luv_lscl.py
SCGTall/CS6384ComputerVision
f9b911d4230d65336555291a9d72f07f6aadcfe9
[ "MIT" ]
null
null
null
Codes/Project1/HandIn/luv_lscl.py
SCGTall/CS6384ComputerVision
f9b911d4230d65336555291a9d72f07f6aadcfe9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cv2 import numpy as np import sys from myModules import linear_stretching from myModules import check_range # read arguments if(len(sys.argv) != 7) : print(sys.argv[0], ": takes 6 arguments. Not ", len(sys.argv)-1) print("Expecting arguments: w1 h1 w2 h2 ImageIn ImageOut.") p...
29.818182
87
0.67937
90ca0253ed0ffcf91a885546b3815558edf47fb7
578
py
Python
foxtrot/ui/components/debug.py
narfman0/foxtrot
ffcf9c4c0e01cda5ca65c4a3dd978a18cf762860
[ "MIT" ]
null
null
null
foxtrot/ui/components/debug.py
narfman0/foxtrot
ffcf9c4c0e01cda5ca65c4a3dd978a18cf762860
[ "MIT" ]
14
2018-08-16T20:37:13.000Z
2018-09-13T17:07:40.000Z
foxtrot/ui/components/debug.py
narfman0/foxtrot
ffcf9c4c0e01cda5ca65c4a3dd978a18cf762860
[ "MIT" ]
null
null
null
import pyxel def draw(screen): draw_chunk_locations(screen) draw_player_location(screen) def draw_player_location(screen): text = "%d,%d" % (screen.world.player.x, screen.world.player.y) pyxel.text(4, pyxel.height - 12, text, 13) def draw_chunk_locations(screen): index = 0 for chunk in scr...
25.130435
79
0.619377
1617181030fc454b3256421f893fac40b527eb65
5,246
py
Python
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/operations/_system_assigned_identities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/operations/_system_assigned_identities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/operations/_system_assigned_identities_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
39.149254
133
0.685856
e9f5d88afe099fb189fd46a72e613346623e89da
2,390
py
Python
src/cordial_gui/test/test_cordial_gui_pubs_and_subs.py
mayankpgupta/cordial
4a0914b71cac017b94f282489383c9457bd083e3
[ "MIT" ]
null
null
null
src/cordial_gui/test/test_cordial_gui_pubs_and_subs.py
mayankpgupta/cordial
4a0914b71cac017b94f282489383c9457bd083e3
[ "MIT" ]
47
2020-07-15T00:10:18.000Z
2021-06-09T02:49:51.000Z
src/cordial_gui/test/test_cordial_gui_pubs_and_subs.py
mayankpgupta/cordial
4a0914b71cac017b94f282489383c9457bd083e3
[ "MIT" ]
5
2020-07-05T19:19:12.000Z
2020-12-20T22:46:41.000Z
#!/usr/bin/env python import rospy import rostest import rosunit import time import unittest from cordial_msgs.msg import Display from std_msgs.msg import Empty PKG = "cordial_manager" NAME = "test_cordial_gui_pubs_and_subs" _GUI_NODE = "gui_controller" _MOUSE_EVENT_TOPIC = rospy.get_param("cordial_gui/event/mouse_...
27.790698
79
0.711297
5ffffa10f15bb1eae3c47cbdd2273231b62bc5d2
213
py
Python
Darlington/phase2/LIST/day 39 solution/qtn3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/LIST/day 39 solution/qtn3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/LIST/day 39 solution/qtn3.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# program to get the largest number from a list. def max_num_in_list( list ): max = list[ 0 ] for a in list: if a > max: max = a return max print(max_num_in_list([1, 2, -8, 0]))
23.666667
51
0.56338