hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b9d5d8c2ca79305db8f5ef13af9a9c1b4d74afc8
3,011
py
Python
Py3DViewer/visualization/DrawableSkeleton.py
hovey/py3DViewer
7ae1697aa4860430d0d94b854f8b1f2a4b2d895f
[ "MIT" ]
24
2019-10-29T14:05:08.000Z
2022-03-18T09:05:30.000Z
Py3DViewer/visualization/DrawableSkeleton.py
hovey/py3DViewer
7ae1697aa4860430d0d94b854f8b1f2a4b2d895f
[ "MIT" ]
6
2020-12-13T01:49:29.000Z
2021-01-05T15:31:46.000Z
Py3DViewer/visualization/DrawableSkeleton.py
hovey/py3DViewer
7ae1697aa4860430d0d94b854f8b1f2a4b2d895f
[ "MIT" ]
5
2020-02-03T16:12:08.000Z
2022-03-23T17:58:03.000Z
import pythreejs as three import numpy as np from time import time, sleep from .Colors import colors from ..utils import Observer, ColorMap import threading import copy class DrawableSkeleton(Observer): def __init__(self, geometry, skeleton_color = None, reactive = False): super(DrawableSkeleton, ...
39.618421
115
0.604782
7db621272459a92bfc33824d24d1794217a2c9d6
5,672
py
Python
tests/test_server_auth.py
jracabado/edgedb
74308d3e751451f78f86448710766693f291b394
[ "Apache-2.0" ]
null
null
null
tests/test_server_auth.py
jracabado/edgedb
74308d3e751451f78f86448710766693f291b394
[ "Apache-2.0" ]
null
null
null
tests/test_server_auth.py
jracabado/edgedb
74308d3e751451f78f86448710766693f291b394
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2019-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
33.761905
181
0.530148
830fca2705b8e9062c11dde88764302ed8bea23c
1,986
py
Python
sphinx-sources/Examples/FourierOptics/PatternRecognition.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
sphinx-sources/Examples/FourierOptics/PatternRecognition.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
sphinx-sources/Examples/FourierOptics/PatternRecognition.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
from LightPipes import * import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np f=0.6*m gridsize=14*mm wavelength=632.8*nm def rgb2gray(rgb): return np.dot(rgb[...,:3], [0.299, 0.587, 0.114]) def Fouriertransform(F): F=Forvard(f,Lens(f,0,0,Forvard(f,F))) return F def Mak...
26.837838
91
0.683787
cb0f47f354429651f2a0c50d93e3989bd8dc9469
20,030
py
Python
pulsemeeter/MainWindow.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
pulsemeeter/MainWindow.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
pulsemeeter/MainWindow.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
import os import re import signal import shutil import threading import sys import json from .EqPopover import EqPopover from .RnnoisePopover import RnnoisePopover from .LatencyPopover import LatencyPopover from .AppListWidget import AppList from .PortSelectPopover import PortSelectPopover from .settings import GLADEF...
41.045082
122
0.557164
b5f3a778ae1156dd2ee9e707348f51b1814fe9a4
1,401
py
Python
src/Lz78.py
cir1711/MOresolver
0c7a166ca87f9f5bc48329557a212df1c1713c9e
[ "MIT" ]
null
null
null
src/Lz78.py
cir1711/MOresolver
0c7a166ca87f9f5bc48329557a212df1c1713c9e
[ "MIT" ]
null
null
null
src/Lz78.py
cir1711/MOresolver
0c7a166ca87f9f5bc48329557a212df1c1713c9e
[ "MIT" ]
null
null
null
from Lz77 import parsed def lzBit(string): l = list() for i in string: if i not in l: l.append(i) return len(bin(len(l)-1)[2:]) def lzLen(string): return len(string)*lzBit(string) def keymaker(string): l = list() index = 0 for i in string: if i not in l: l.append(i) index +=...
19.458333
55
0.518201
8476562a7623d2f46837634168c1853538436b31
3,011
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/vm_meta_data.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/vm_meta_data.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/vm_meta_data.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class VmMetaData: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attr...
26.182609
79
0.547991
d511f6434d6744e26f1413ca9425bef5429530d3
288
py
Python
flag/urls.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
25
2015-07-09T18:38:15.000Z
2021-08-24T20:06:36.000Z
flag/urls.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
8
2015-07-28T04:46:21.000Z
2020-01-05T02:00:48.000Z
flag/urls.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
13
2015-04-13T20:44:02.000Z
2020-02-29T00:55:44.000Z
# flake8: noqa from django.conf.urls import patterns, url from django.views.generic import TemplateView urlpatterns = patterns("", url(r"^$", "flag.views.flag", name="flag"), url(r'^thank_you', TemplateView.as_view(template_name="flag/thank_you.html"), name='flag-reported'), )
28.8
104
0.71875
b4f54f3627fdedd533bb21e6ee4d5c9936254e5a
225
py
Python
practice/77.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
practice/77.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
practice/77.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
#Create a script that gets user's age and returns year of birth from datetime import datetime age = int(input("What's your age? ")) year_birth = datetime.now().year - age print("You were born back in %s" % year_birth)
32.142857
64
0.711111
770c389188dfe8c5aa7cbca671e2b3de4c30c017
7,362
py
Python
PyQt5/PyQt_logger02.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
PyQt5/PyQt_logger02.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
11
2021-02-08T20:45:23.000Z
2022-03-12T01:00:11.000Z
PyQt5/PyQt_logger02.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
''' A Qt GUI for logging http://plumberjack.blogspot.com/2019/11/a-qt-gui-for-logging.html ''' import datetime import logging import random import sys import time # Deal with minor differences between PySide2 and PyQt5 try: from PySide2 import QtCore, QtGui, QtWidgets Signal = QtCore.Signal Slot = QtCore...
34.890995
88
0.676447
ec6fe0b128055b134446e680e37b042ff8ba1710
22,270
py
Python
behave/parser.py
achengs/behave
ecce2caa54b4a75e99af30ceb789320acf3f2ba2
[ "BSD-2-Clause" ]
5
2019-01-15T18:49:16.000Z
2020-02-21T20:24:39.000Z
behave/parser.py
angelluk/behave_parallel
7d508413dcc2fedbe0cd54d6fd4655d4b95ff712
[ "BSD-2-Clause" ]
6
2019-04-26T19:34:34.000Z
2020-06-03T21:49:13.000Z
behave/parser.py
angelluk/behave_parallel
7d508413dcc2fedbe0cd54d6fd4655d4b95ff712
[ "BSD-2-Clause" ]
9
2019-04-23T19:43:41.000Z
2020-05-12T09:17:27.000Z
# -*- coding: UTF-8 -*- from __future__ import absolute_import, with_statement import re import sys import six from behave import model, i18n from behave.textutil import text as _text DEFAULT_LANGUAGE = "en" def parse_file(filename, language=None): with open(filename, "rb") as f: # file encoding is ass...
35.293185
83
0.580692
e897fdf3eba6bb41f7b5748965a70c61d43eac45
5,784
py
Python
examples/speedyspeech/baker/speedyspeech_updater.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "Apache-2.0" ]
null
null
null
examples/speedyspeech/baker/speedyspeech_updater.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "Apache-2.0" ]
null
null
null
examples/speedyspeech/baker/speedyspeech_updater.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "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...
36.840764
79
0.630705
f74f708b2e24158406787d50edf2095594e9def4
6,063
py
Python
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
tests/dwd/observations/test_api_sites_geo.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
1
2022-03-21T14:28:45.000Z
2022-03-21T14:28:45.000Z
from pathlib import Path import pytest import numpy as np from datetime import datetime from unittest.mock import patch, MagicMock import pandas as pd from wetterdienst.dwd.metadata.column_map import METADATA_DTYPE_MAPPING from wetterdienst.util.geo import derive_nearest_neighbours from wetterdienst.util.geo import C...
28.331776
87
0.562263
3f230db68c74538f975b2ef54c592da880b5de91
10,736
py
Python
chalice/deploy/executor.py
devangmehta123/chalice
9cba1bff604871c03c179e0b4be94d59a93ba198
[ "Apache-2.0" ]
null
null
null
chalice/deploy/executor.py
devangmehta123/chalice
9cba1bff604871c03c179e0b4be94d59a93ba198
[ "Apache-2.0" ]
null
null
null
chalice/deploy/executor.py
devangmehta123/chalice
9cba1bff604871c03c179e0b4be94d59a93ba198
[ "Apache-2.0" ]
null
null
null
import re import pprint import jmespath from attr import asdict from typing import Dict, List, Any # noqa from chalice.deploy import models # noqa from chalice.awsclient import TypedAWSClient # noqa from chalice.utils import UI # noqa class BaseExecutor(object): def __init__(self, client, ui): # type...
37.670175
79
0.599665
4fed5b51e8bc96971a81532d6ea9916354c617a7
732
py
Python
Code/Python/WebSiteGrab/old/AmazonePriceFunc.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Code/Python/WebSiteGrab/old/AmazonePriceFunc.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Code/Python/WebSiteGrab/old/AmazonePriceFunc.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
import webbrowser, sys, pyperclip, requests, bs4 def getAmazonPrice(productURL): try: res = requests.get(productURL) except: print(res.raise_for_status()) soup = bs4.BeautifulSoup(res.text,'html.parser') try: elems = soup.select('#buyNewSection > h5 > div > div.a-column.a-sp...
38.526316
171
0.691257
346a170f7c266d2fab4cbe7036247c5ea2e0b080
981
py
Python
hasker/qa/migrations/0013_auto_20180227_0917.py
kochnev/hacker
17d95aa794c78251c9765ac6878d216aec85bbb4
[ "MIT" ]
null
null
null
hasker/qa/migrations/0013_auto_20180227_0917.py
kochnev/hacker
17d95aa794c78251c9765ac6878d216aec85bbb4
[ "MIT" ]
null
null
null
hasker/qa/migrations/0013_auto_20180227_0917.py
kochnev/hacker
17d95aa794c78251c9765ac6878d216aec85bbb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-27 09:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('qa', '0012_auto_20180219_1252'), ] operations = [ ...
28.028571
122
0.59633
5fc1591620525ca555e22205d071c6832bc44ce5
2,469
py
Python
landlab/components/overland_flow/tests/test_kinwave.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
null
null
null
landlab/components/overland_flow/tests/test_kinwave.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
1
2016-03-16T02:34:08.000Z
2016-04-20T19:31:30.000Z
landlab/components/overland_flow/tests/test_kinwave.py
cctrunz/landlab
4e4ef12f4bae82bc5194f1dcc9af8ff1a7c20939
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for landlab.components.overland_flow.KinwaveOverlandFlowModel last updated: 3/14/16 """ (_SHAPE, _SPACING, _ORIGIN) = ((10, 10), (25, 25), (0.0, 0.0)) _ARGS = (_SHAPE, _SPACING, _ORIGIN) def test_KinWaveOF_name(kin_wave_of): assert kin_wave_of.name == "KinwaveOverlandFlowMo...
32.92
87
0.706359
c4d0b6346e4eef77f34da7a688bbe544254c6d61
7,188
py
Python
setup.py
pascalwhoop/kedro
424756dae498048094ebb00bb15674c88f31f7fd
[ "Apache-2.0" ]
null
null
null
setup.py
pascalwhoop/kedro
424756dae498048094ebb00bb15674c88f31f7fd
[ "Apache-2.0" ]
null
null
null
setup.py
pascalwhoop/kedro
424756dae498048094ebb00bb15674c88f31f7fd
[ "Apache-2.0" ]
1
2021-08-22T08:16:22.000Z
2021-08-22T08:16:22.000Z
# Copyright 2020 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS",...
36.861538
91
0.681553
c5a8e9579d92e5c26f0ddd105c7c1b6e5c46fefb
4,142
py
Python
webui/server/tornadows/webservices.py
puneet739/ChatLearner
b50bd15a00866e7dfdea39402e1158240c410289
[ "Apache-2.0" ]
590
2017-06-20T02:31:44.000Z
2022-02-03T03:36:04.000Z
webui/server/tornadows/webservices.py
puneet739/ChatLearner
b50bd15a00866e7dfdea39402e1158240c410289
[ "Apache-2.0" ]
84
2017-06-28T10:04:02.000Z
2021-01-14T14:49:35.000Z
webui/server/tornadows/webservices.py
puneet739/ChatLearner
b50bd15a00866e7dfdea39402e1158240c410289
[ "Apache-2.0" ]
225
2017-07-19T02:05:10.000Z
2022-01-12T16:29:07.000Z
#!/usr/bin/env python # # Copyright 2011 Rodrigo Ancavil del Pino # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.231405
86
0.716803
06ba0849de83fce796e7d5a84b58163e0454220c
18,198
py
Python
laceworkreports/cli/ReportHandlers/ContainerIntegrationCoverageHandler/ContainerIntegrationCoverageHandler.py
laceworkps/laceworkreports
43f5189d2da39fc54ca24dc3c6c96d320bc9f8a5
[ "BSD-3-Clause" ]
null
null
null
laceworkreports/cli/ReportHandlers/ContainerIntegrationCoverageHandler/ContainerIntegrationCoverageHandler.py
laceworkps/laceworkreports
43f5189d2da39fc54ca24dc3c6c96d320bc9f8a5
[ "BSD-3-Clause" ]
44
2022-01-30T04:24:46.000Z
2022-03-31T02:31:17.000Z
laceworkreports/cli/ReportHandlers/ContainerIntegrationCoverageHandler/ContainerIntegrationCoverageHandler.py
laceworkps/laceworkreports
43f5189d2da39fc54ca24dc3c6c96d320bc9f8a5
[ "BSD-3-Clause" ]
null
null
null
""" Report Handler """ from typing import Optional import logging from datetime import datetime, timedelta from pathlib import Path import typer from laceworkreports import common from laceworkreports.sdk.DataHandlers import DataHandlerTypes, ExportHandler from laceworkreports.sdk.ReportHelpers import ContainerInte...
37.991649
123
0.520167
6c7d43490077041d4790bd07b1d5f67d43e3a906
3,481
py
Python
examples/impala_openai_gym_with_lstm.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
290
2018-07-29T15:30:57.000Z
2022-03-19T02:46:53.000Z
examples/impala_openai_gym_with_lstm.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
76
2018-10-19T08:42:01.000Z
2020-05-03T08:34:21.000Z
examples/impala_openai_gym_with_lstm.py
RLGraph/RLGraph
428fc136a9a075f29a397495b4226a491a287be2
[ "Apache-2.0" ]
41
2018-10-30T07:05:05.000Z
2022-03-01T08:28:24.000Z
# Copyright 2018/2019 The RLgraph 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...
31.93578
113
0.674519
5fdf40d16c67f78a863e7fd3a19f2f293d1422f0
29,660
py
Python
zipline/finance/ledger.py
TheTradingAngel/zipline-trader
fdce0641005371f2b523c6faeb551c3d40273902
[ "Apache-2.0" ]
null
null
null
zipline/finance/ledger.py
TheTradingAngel/zipline-trader
fdce0641005371f2b523c6faeb551c3d40273902
[ "Apache-2.0" ]
null
null
null
zipline/finance/ledger.py
TheTradingAngel/zipline-trader
fdce0641005371f2b523c6faeb551c3d40273902
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Quantopian, 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 wr...
34.408353
86
0.599697
076f8bf26d13ccf102b4174e6e1c649a6a7cf3af
978
py
Python
frappe/core/doctype/module_profile/test_module_profile.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/core/doctype/module_profile/test_module_profile.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/core/doctype/module_profile/test_module_profile.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import unittest import frappe class TestModuleProfile(unittest.TestCase): def test_make_new_module_profile(self): if not frappe.db.get_value("Module Profile", "_Test Module...
28.764706
98
0.705521
85952299622dd0475ce78a176a902badfecb65f1
774
py
Python
photos/migrations/0006_auto_20201011_1054.py
Abzed/Gallery
b24cd58e6e6a23894c4ea340b8f03df8a4a062ff
[ "MIT" ]
null
null
null
photos/migrations/0006_auto_20201011_1054.py
Abzed/Gallery
b24cd58e6e6a23894c4ea340b8f03df8a4a062ff
[ "MIT" ]
null
null
null
photos/migrations/0006_auto_20201011_1054.py
Abzed/Gallery
b24cd58e6e6a23894c4ea340b8f03df8a4a062ff
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-11 10:54 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('photos', '0005_auto_20201010_1108'), ] operations = [ migrations.AlterModelOptions( name='image', ...
25.8
93
0.583979
aade6d5fbb686747894981e6327a62fc904fb540
435
py
Python
Proyecto/DacodesJobs/DacodesJobs/settings/production.py
angel318/DacodesJobs
3a8bb0248ab8addf462b175e039ae935a5e34197
[ "bzip2-1.0.6" ]
null
null
null
Proyecto/DacodesJobs/DacodesJobs/settings/production.py
angel318/DacodesJobs
3a8bb0248ab8addf462b175e039ae935a5e34197
[ "bzip2-1.0.6" ]
null
null
null
Proyecto/DacodesJobs/DacodesJobs/settings/production.py
angel318/DacodesJobs
3a8bb0248ab8addf462b175e039ae935a5e34197
[ "bzip2-1.0.6" ]
null
null
null
from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False ALLOWED_HOSTS = [] # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dacodesjobs', ...
21.75
65
0.6
6e752eb7565eb0b2d9b3fe45324ed9848f425718
4,770
py
Python
tests/app/main/views/test_new_password.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
16
2019-11-05T21:35:49.000Z
2022-01-12T15:00:32.000Z
tests/app/main/views/test_new_password.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
509
2019-07-11T22:03:19.000Z
2022-03-30T15:19:26.000Z
tests/app/main/views/test_new_password.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
8
2020-02-21T20:19:29.000Z
2022-03-31T14:17:02.000Z
import json from datetime import datetime from flask import url_for from itsdangerous import SignatureExpired from notifications_utils.url_safe_token import generate_token from tests.conftest import url_for_endpoint_with_token def test_should_render_new_password_template( app_, client, api_user_active, ...
37.559055
119
0.751782
094a79856600db99722acddf62683924456ee8a2
4,743
py
Python
python/alembic/versions/19089cd961e8_changed_numeric_data_types_to_allow_.py
adrs0049/AdhesionRandomWalk
25d9d805261be504a61a1d9ae329559f346fe95a
[ "MIT" ]
null
null
null
python/alembic/versions/19089cd961e8_changed_numeric_data_types_to_allow_.py
adrs0049/AdhesionRandomWalk
25d9d805261be504a61a1d9ae329559f346fe95a
[ "MIT" ]
null
null
null
python/alembic/versions/19089cd961e8_changed_numeric_data_types_to_allow_.py
adrs0049/AdhesionRandomWalk
25d9d805261be504a61a1d9ae329559f346fe95a
[ "MIT" ]
null
null
null
"""Changed numeric data types to allow better data representation Revision ID: 19089cd961e8 Revises: 35c7e94e6883 Create Date: 2015-07-23 12:06:07.423576 """ # revision identifiers, used by Alembic. revision = '19089cd961e8' down_revision = '35c7e94e6883' branch_labels = None depends_on = None from alembic import o...
44.327103
66
0.62218
66744bb9e12f98cdfe6e3b0c8ae999ea80be2f8e
1,843
py
Python
marinetrafficapi/events/EV01_port_calls/query_params.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
15
2019-12-24T17:25:33.000Z
2022-03-04T01:56:30.000Z
marinetrafficapi/events/EV01_port_calls/query_params.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
27
2019-03-14T09:04:07.000Z
2022-03-02T09:20:36.000Z
marinetrafficapi/events/EV01_port_calls/query_params.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
3
2019-04-15T14:02:32.000Z
2022-03-25T12:55:47.000Z
from marinetrafficapi.query_params import QueryParams class EV01QueryParams(QueryParams): """Query params for EV01 API call.""" time_span = 'timespan', 'The maximum age, in minutes, of the \n' \ 'returned port calls. Maximum value is 2880.' port_id = 'portid', 'The MarineTraf...
40.065217
82
0.558329
5c12bb75c73243bef6dd375d17a2e597e9ff3976
7,391
py
Python
tests/integration-tests/tests/efa/test_efa.py
rangsimanketkaew/aws-parallelcluster
650d59f47a96e1f21d3af83402fff9aafe717679
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/tests/efa/test_efa.py
rangsimanketkaew/aws-parallelcluster
650d59f47a96e1f21d3af83402fff9aafe717679
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/tests/efa/test_efa.py
rangsimanketkaew/aws-parallelcluster
650d59f47a96e1f21d3af83402fff9aafe717679
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file acc...
45.343558
118
0.764579
7139837b44ead6a40e5e2d0ad666173a40a5f077
43,905
py
Python
pycqed/analysis_v2/VQE_EVC.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
pycqed/analysis_v2/VQE_EVC.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
pycqed/analysis_v2/VQE_EVC.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
import time import numpy as np from pycqed.analysis import analysis_toolbox as a_tools import pycqed.analysis_v2.base_analysis as ba # import dataprep for tomography module # import tomography module # using the data prep module of analysis V2 # from pycqed.analysis_v2 import tomography_dataprep as dataprep from pycqed...
45.829854
137
0.524451
e9749da4c43542d06d0e597d633c6e9f728aedb0
3,197
py
Python
wrappers/BackwardSelection.py
Arseny-N/ITMO_FS
12ec02c2aa0a9370d75732034acf3afb26a0bce5
[ "MIT" ]
null
null
null
wrappers/BackwardSelection.py
Arseny-N/ITMO_FS
12ec02c2aa0a9370d75732034acf3afb26a0bce5
[ "MIT" ]
null
null
null
wrappers/BackwardSelection.py
Arseny-N/ITMO_FS
12ec02c2aa0a9370d75732034acf3afb26a0bce5
[ "MIT" ]
null
null
null
#!/usr/bin/env python from collections import OrderedDict import numpy as np from utils import generate_features from wrappers.wrapper_utils import get_current_cv_accuracy class BackwardSelection: """ Backward Selection removes one feature at a time until the number of features to be removed are used. ...
34.75
120
0.604942
d59bf5bca842b13981c3aeeb1b9afbbf8c092923
384
py
Python
src/data_preparation/test_data/nested_comprehension.py
petroolg/typilus
8304849f0912af95a378e357e8d4f3e10949de49
[ "MIT" ]
4
2021-05-10T10:56:13.000Z
2022-02-18T00:21:33.000Z
src/data_preparation/test_data/nested_comprehension.py
petroolg/typilus
8304849f0912af95a378e357e8d4f3e10949de49
[ "MIT" ]
6
2020-11-26T18:21:03.000Z
2021-05-25T09:04:14.000Z
src/data_preparation/test_data/nested_comprehension.py
petroolg/typilus
8304849f0912af95a378e357e8d4f3e10949de49
[ "MIT" ]
3
2020-12-07T17:06:09.000Z
2022-02-18T00:21:37.000Z
empty_list = [] generated_list = [i for i in range(10)] single_nested_list = [[i * j for j in range(i)] for i in range(10)] double_nested_list = [[[i * j * k for k in range(j)] for j in range(i)] for i in range(10)] single_comprehended_list = [i * j for i in range(10) for j in range(i)] double_comprehended_list = [i ...
42.666667
93
0.666667
64f92075cf607a281c92c359b39d9c24842e8571
699
py
Python
blog/models.py
paullab/my-first-blog
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
[ "Apache-2.0" ]
null
null
null
blog/models.py
paullab/my-first-blog
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
[ "Apache-2.0" ]
null
null
null
blog/models.py
paullab/my-first-blog
1ee9f3e52eff29ff278d2ecfaf7921db0c093756
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.db import models class Post(models.Model): title = models.CharField(max_length=100) content = models.TextField() photo = models.ImageField(blank=True, null=True) file_Save = models.FileField(blank=True, null=True) created_at = models.DateTimeField(auto_now_add=...
29.125
53
0.785408
bd04244888d08fcd4083d01adb3d4d2eb5be344c
3,424
py
Python
azext_iot/sdk/iothub/service/models/configuration_py3.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
79
2017-09-25T19:29:17.000Z
2022-03-30T20:55:57.000Z
azext_iot/sdk/iothub/service/models/configuration_py3.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
305
2018-01-17T01:12:10.000Z
2022-03-23T22:38:11.000Z
azext_iot/sdk/iothub/service/models/configuration_py3.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
69
2017-11-14T00:30:46.000Z
2022-03-01T17:11:45.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 ...
46.90411
261
0.657418
867173c60e5d149994c9a09b16003860c1fc66f8
2,367
py
Python
setup.py
troiganto/headercount
9c70fb16c4c82d98dd18403c86c13b7d03030e4e
[ "Apache-2.0" ]
null
null
null
setup.py
troiganto/headercount
9c70fb16c4c82d98dd18403c86c13b7d03030e4e
[ "Apache-2.0" ]
null
null
null
setup.py
troiganto/headercount
9c70fb16c4c82d98dd18403c86c13b7d03030e4e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2017 Nico Madysa # 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...
36.984375
84
0.680186
44ed3ffb5a453f8206a282e2be618c03c47812e9
1,923
py
Python
devices/devices/xboxcontroller.py
AutodeskRoboticsLab/RLRoboticAssembly
7f72266f626de53762482310f92f6b5c817085b3
[ "MIT" ]
21
2019-09-27T09:57:52.000Z
2022-02-16T22:18:41.000Z
devices/devices/xboxcontroller.py
AutodeskRoboticsLab/RLRoboticAssembly
7f72266f626de53762482310f92f6b5c817085b3
[ "MIT" ]
2
2020-11-23T08:51:38.000Z
2021-11-18T06:57:22.000Z
devices/devices/xboxcontroller.py
AutodeskRoboticsLab/RLRoboticAssembly
7f72266f626de53762482310f92f6b5c817085b3
[ "MIT" ]
3
2019-10-14T03:58:45.000Z
2021-02-04T20:09:38.000Z
""" """ import pygame from pygame.locals import * from devices.device import InputDevice class XBoxController(InputDevice): def __init__(self, *args, **kwargs): InputDevice.__init__(self, *args, **kwargs) @property def codename(self): return 'xbc' def _connect(self): pygam...
27.471429
78
0.534581
ddf8b83b4ee6acf5820b92d5d32f78c78ce2ad3a
761
py
Python
tests/test_ssl.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
20
2015-01-16T07:51:59.000Z
2021-07-21T21:25:21.000Z
tests/test_ssl.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
1
2015-09-14T16:48:19.000Z
2015-11-08T05:55:03.000Z
tests/test_ssl.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
5
2015-01-16T08:04:20.000Z
2019-03-13T04:50:38.000Z
# -*- coding: utf-8 -*- import pytest import ssl import requests from requests_middleware.middleware import MiddlewareHTTPAdapter from requests_middleware.contrib import sslware @pytest.fixture def session(): session = requests.Session() ssl_middleware = sslware.SSLMiddleware(ssl.PROTOCOL_TLSv1) middle...
25.366667
64
0.755585
0b8df99dfe445cfb8bf1b61d3605d4eadb807ffe
116
py
Python
DjangoAPI/admin.py
qbdq/MLAPI_DJREST
eb8e716014fba0ef70f6c9d71f05557f268aefee
[ "MIT" ]
null
null
null
DjangoAPI/admin.py
qbdq/MLAPI_DJREST
eb8e716014fba0ef70f6c9d71f05557f268aefee
[ "MIT" ]
null
null
null
DjangoAPI/admin.py
qbdq/MLAPI_DJREST
eb8e716014fba0ef70f6c9d71f05557f268aefee
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import house # Register your models here. admin.site.register(house)
19.333333
32
0.801724
3a63bb023ff21858ba03438ca5d5d0493406723f
553
py
Python
docs/ext/substitute.py
HarshCasper/qhub
4c864db7164f7d31506021f55a5d8968b701ca9d
[ "BSD-3-Clause" ]
null
null
null
docs/ext/substitute.py
HarshCasper/qhub
4c864db7164f7d31506021f55a5d8968b701ca9d
[ "BSD-3-Clause" ]
null
null
null
docs/ext/substitute.py
HarshCasper/qhub
4c864db7164f7d31506021f55a5d8968b701ca9d
[ "BSD-3-Clause" ]
null
null
null
""" This is a hard replace as soon as the source file is read, so no respect for any markup at all Simply forces replace of ||QHUB_VERSION|| with the qhub_version_string in conf.py """ def dosubs(app, docname, source): """ Replace QHUB_VERSION with the qhub version """ if app.config.qhub_version_strin...
29.105263
94
0.681736
9f81fd1558f53e6b5f411fc16dad14862065bc93
3,862
py
Python
examples/welcome_message.py
moreno19/instabot2
55128d4563612e82544b66d8f6e2f81551cdc3af
[ "Apache-2.0" ]
null
null
null
examples/welcome_message.py
moreno19/instabot2
55128d4563612e82544b66d8f6e2f81551cdc3af
[ "Apache-2.0" ]
null
null
null
examples/welcome_message.py
moreno19/instabot2
55128d4563612e82544b66d8f6e2f81551cdc3af
[ "Apache-2.0" ]
null
null
null
""" instabot example Workflow: Welcome message for new followers. """ import argparse import os import sys from datetime import datetime, timedelta from tqdm import tqdm import time sys.path.append(os.path.join(sys.path[0], '../')) from instabot import Bot, utils bot = Bot() NOTIFIED_USERS_PATH = 'no...
36.093458
539
0.656914
0e47668667748baa094547992313d63ede627fb1
1,619
py
Python
carebt/examples/action_with_params.py
CareBT/carebt
44c6da1e36e1f45baa5de5d5d9a5b733423c325d
[ "Apache-2.0" ]
2
2021-11-08T12:19:39.000Z
2021-12-02T16:10:05.000Z
carebt/examples/action_with_params.py
CareBT/carebt
44c6da1e36e1f45baa5de5d5d9a5b733423c325d
[ "Apache-2.0" ]
null
null
null
carebt/examples/action_with_params.py
CareBT/carebt
44c6da1e36e1f45baa5de5d5d9a5b733423c325d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Andreas Steck (steck.andi@gmail.com) # # 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 ...
30.54717
85
0.657196
6df6fadf4438e1e2a55c27f7bd94bf23783f4550
878
py
Python
cmd/miscellaneous/ping.py
Xinverse/BOTC-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2020-06-21T17:20:17.000Z
2020-06-21T17:20:17.000Z
cmd/miscellaneous/ping.py
BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2020-07-07T03:47:44.000Z
2020-07-07T03:47:44.000Z
cmd/miscellaneous/ping.py
BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2022-02-18T00:42:19.000Z
2022-02-18T00:42:19.000Z
"""Contains the ping command cog""" import botutils import json from discord.ext import commands from ._miscellaneous import Miscellaneous with open('botutils/bot_text.json') as json_file: language = json.load(json_file) ping_str = language["cmd"]["ping"] class Ping(Miscellaneous, name = language["system"]["mi...
29.266667
93
0.651481
dfcea5c1923d50670398ecfa6f6e37ccfe15c338
56
py
Python
CodeWars/Python/002-Grasshopper_-_Terminal_game_move_function.py
IsFilimonov/Interviews
261b59cd80e1451804c37b03b4cce7c1b63f609d
[ "MIT" ]
2
2021-05-09T22:39:49.000Z
2021-09-16T12:44:09.000Z
CodeWars/Python/002-Grasshopper_-_Terminal_game_move_function.py
IsFilimonov/Interviews
261b59cd80e1451804c37b03b4cce7c1b63f609d
[ "MIT" ]
null
null
null
CodeWars/Python/002-Grasshopper_-_Terminal_game_move_function.py
IsFilimonov/Interviews
261b59cd80e1451804c37b03b4cce7c1b63f609d
[ "MIT" ]
null
null
null
def move(position, roll): return roll * 2 + position
28
30
0.678571
c5348111c01b7e880526c172381b21d1f7ec096c
411
py
Python
experiments/fdtd-2d/tmp_files/5823.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/5823.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/5823.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/5823.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
22.833333
116
0.720195
110ef858996bd741555a4f7847a8107a4df4ad3d
1,094
py
Python
maddux/examples/tutorial.py
emielke12/maddux
fed7770c54124c14935523e6bcdba81ad9538cbc
[ "MIT" ]
23
2016-04-23T18:13:24.000Z
2021-12-14T23:37:09.000Z
maddux/examples/tutorial.py
emielke12/maddux
fed7770c54124c14935523e6bcdba81ad9538cbc
[ "MIT" ]
12
2016-04-14T23:59:51.000Z
2019-05-25T10:00:14.000Z
maddux/examples/tutorial.py
emielke12/maddux
fed7770c54124c14935523e6bcdba81ad9538cbc
[ "MIT" ]
8
2018-10-19T13:52:27.000Z
2020-10-31T23:30:24.000Z
import numpy as np from maddux.robots.predefined_robots import simple_human_arm from maddux.objects import Ball, Target, Obstacle from maddux.environment import Environment def tutorial(): """Code from our tutorial on the documentation""" # Create an arm with a specific config and base position q0 = ...
32.176471
69
0.624314
56965fd95491cf65dcb18cb0be5524bc5af92292
7,680
py
Python
vnpy/trader/option_object.py
AITrading2020/vnpy-2.1.3
526cd42227daba2fec5e664bfab203cec1d27267
[ "MIT" ]
null
null
null
vnpy/trader/option_object.py
AITrading2020/vnpy-2.1.3
526cd42227daba2fec5e664bfab203cec1d27267
[ "MIT" ]
null
null
null
vnpy/trader/option_object.py
AITrading2020/vnpy-2.1.3
526cd42227daba2fec5e664bfab203cec1d27267
[ "MIT" ]
null
null
null
""" Basic data structure used for general trading function in VN Trader. """ from dataclasses import dataclass from datetime import datetime from logging import INFO from .constant import Direction, Exchange, Interval, Offset, Status, Product, OptionType, OrderType ACTIVE_STATUSES = set([Status.SUBMITTING, Status.NO...
22.857143
99
0.626563
dadc661e7ea07e52133ba1d73c92b2e7cf5c558a
27,847
py
Python
layers/gat_layer.py
D-ick-Li/SBRS-CL-HG
5d7b09d5ce5f2f3a628f34faa9ba59343ce490d8
[ "MIT" ]
null
null
null
layers/gat_layer.py
D-ick-Li/SBRS-CL-HG
5d7b09d5ce5f2f3a628f34faa9ba59343ce490d8
[ "MIT" ]
null
null
null
layers/gat_layer.py
D-ick-Li/SBRS-CL-HG
5d7b09d5ce5f2f3a628f34faa9ba59343ce490d8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import enum #################################### # This section is inspired from https://github.com/gordicaleksa/pytorch-GAT #################################### class LayerType(enum.Enum): IMP1 = 0, IMP2 = 1, IMP3 = 2 class GAT(torch.nn.Module): """ I've add...
54.816929
153
0.69099
34c45bf1c08a0a89b25799a822c7560909afac45
3,743
py
Python
export-as-mod.py
tmeedend/ac-mod-generator
bb560f9f27c9b5366334d5ac1f2cbfe52f5a66e0
[ "MIT" ]
2
2021-01-14T09:20:20.000Z
2021-03-11T04:32:53.000Z
export-as-mod.py
tmeedend/ac-mod-generator
bb560f9f27c9b5366334d5ac1f2cbfe52f5a66e0
[ "MIT" ]
null
null
null
export-as-mod.py
tmeedend/ac-mod-generator
bb560f9f27c9b5366334d5ac1f2cbfe52f5a66e0
[ "MIT" ]
null
null
null
import os import subprocess import sys import tempfile import json import argparse import ntpath from actools import common from actools import tracks from actools import cars from actools import params from actools import archives from actools import clean def processMod(paramsToUse, modTool, modsTo...
44.035294
145
0.748865
4cf0df47c987f644c539fef54f8fdd8a0bad8dd6
4,858
py
Python
dashmat/actions.py
realestate-com-au/dashmat
433886e52698f0ddb9956f087b76041966c3bcd1
[ "MIT" ]
1
2016-02-02T14:37:17.000Z
2016-02-02T14:37:17.000Z
dashmat/actions.py
realestate-com-au/dashmat
433886e52698f0ddb9956f087b76041966c3bcd1
[ "MIT" ]
null
null
null
dashmat/actions.py
realestate-com-au/dashmat
433886e52698f0ddb9956f087b76041966c3bcd1
[ "MIT" ]
null
null
null
from dashmat.server.server import Server, generate_dashboard_js from dashmat.datastore import JsonDataStore, RedisDataStore from dashmat.server.react import ReactServer from dashmat.scheduler import Scheduler from input_algorithms.spec_base import NotSpecified from textwrap import dedent import logging import redis im...
34.7
109
0.695554
ea776fec512e07fa2ffe74482a0f7e072344de72
82
py
Python
scripts/field/autogen_merStandAlone.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
scripts/field/autogen_merStandAlone.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
scripts/field/autogen_merStandAlone.py
pardovot/MS-private-server
ef7fde137a58ff71f83ba2229ac1f9c01d31bd6a
[ "MIT" ]
null
null
null
# ObjectID: 0 # Character field ID when accessed: 910150002 # ParentID: 910150002
20.5
45
0.768293
9033eb13a83acc147fc807320897d6eca88a715e
65,122
py
Python
verpy/pybin3/db0.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
1
2021-04-23T04:08:58.000Z
2021-04-23T04:08:58.000Z
verpy/pybin3/db0.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
verpy/pybin3/db0.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
import os,sys,string,pickle,types import logs import traceback import module_class as mcl # from module_class import pr_stmt # from module_class import module_class import matches import pprint if os.path.exists('packages_save.py'): sys.path.append('.') import packages_save else: packages_save = False def...
30.848887
103
0.496222
b541195657e23ab27bc9734e8959f3324198e146
3,449
py
Python
python/gnuplot/coaps_plot.py
seekindark/helloworld
00fe439fdbd98add53f3bec7eac2b1ba1dc817a7
[ "BSD-2-Clause" ]
null
null
null
python/gnuplot/coaps_plot.py
seekindark/helloworld
00fe439fdbd98add53f3bec7eac2b1ba1dc817a7
[ "BSD-2-Clause" ]
2
2019-06-24T00:56:52.000Z
2019-06-24T01:28:29.000Z
python/gnuplot/coaps_plot.py
seekindark/helloworld
00fe439fdbd98add53f3bec7eac2b1ba1dc817a7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python from console_loggin import * import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import time import os #0 view h248 statis current coaps #1 Current Coaps Statistics Value: #2 (Elapsed time: 0:11:52) #3 =================================================== #4 ...
35.556701
89
0.504204
c5ea89fa5b62ae91125a0218ac2c5cf782ef8648
54,529
py
Python
drf_spectacular/openapi.py
blueyed/drf-spectacular
06737f96063943eab73639ab254a1ed52ad5ae63
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/openapi.py
blueyed/drf-spectacular
06737f96063943eab73639ab254a1ed52ad5ae63
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/openapi.py
blueyed/drf-spectacular
06737f96063943eab73639ab254a1ed52ad5ae63
[ "BSD-3-Clause" ]
null
null
null
import copy import re import typing import uritemplate from django.core import exceptions as django_exceptions from django.core import validators from django.db import models from django.utils.translation import gettext_lazy as _ from rest_framework import permissions, renderers, serializers from rest_framework.fields...
44.990924
106
0.618277
0888acbe8e9f0efbd617dfa27e88021454b48eaa
1,424
py
Python
setup.py
joshtrivedi/face-detection-tflite
6ae3bc770dd029af0c1c716d46ace6c8ced05fef
[ "MIT" ]
53
2021-03-23T01:32:47.000Z
2022-03-23T10:52:28.000Z
setup.py
joshtrivedi/face-detection-tflite
6ae3bc770dd029af0c1c716d46ace6c8ced05fef
[ "MIT" ]
6
2021-04-12T21:41:14.000Z
2021-08-25T04:20:30.000Z
setup.py
joshtrivedi/face-detection-tflite
6ae3bc770dd029af0c1c716d46ace6c8ced05fef
[ "MIT" ]
14
2021-04-05T13:10:44.000Z
2022-02-17T10:33:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright © 2021 Patrick Levin 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...
41.882353
80
0.769663
06acf35cafeeadeb5172c8e8abffe1fad72cd576
17,798
py
Python
pyzoo/zoo/util/tf.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
2,970
2017-06-08T00:24:43.000Z
2022-03-30T12:14:55.000Z
pyzoo/zoo/util/tf.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
3,530
2017-05-09T08:29:10.000Z
2022-03-21T02:11:45.000Z
pyzoo/zoo/util/tf.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
972
2017-05-09T07:03:50.000Z
2022-03-23T07:48:48.000Z
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.030702
99
0.625576
b5c136e59ba16930b10fd7e5395b82a5b6af93d5
1,754
py
Python
sahara/plugins/mapr/services/drill/drill.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
sahara/plugins/mapr/services/drill/drill.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
sahara/plugins/mapr/services/drill/drill.py
esikachev/sahara-backup
a470fa6aec5f1009d41d82fabc1e5d64874aa213
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015, MapR Technologies # # 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...
33.09434
79
0.704105
57520c0cea3875d54802b6bcb8d156ff910b7717
3,921
py
Python
examples/cursorcontrol_buttons_text.py
FoamyGuy/Adafruit_CircuitPython_CursorControl
386e235c06054346f795425e02cce05a494d17be
[ "MIT" ]
3
2021-07-21T20:11:30.000Z
2021-12-31T21:26:48.000Z
examples/cursorcontrol_buttons_text.py
FoamyGuy/Adafruit_CircuitPython_CursorControl
386e235c06054346f795425e02cce05a494d17be
[ "MIT" ]
19
2019-06-25T22:20:26.000Z
2022-03-01T08:21:31.000Z
examples/cursorcontrol_buttons_text.py
FoamyGuy/Adafruit_CircuitPython_CursorControl
386e235c06054346f795425e02cce05a494d17be
[ "MIT" ]
9
2019-07-02T18:17:28.000Z
2022-02-26T19:58:14.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import displayio from adafruit_button import Button from adafruit_display_text import label import terminalio from adafruit_cursorcontrol.cursorcontrol import Cursor from adafruit_cursorcontrol.cursor...
27.612676
88
0.667687
e1c867e749be8208294892b3f586c662339fc5d5
298
py
Python
main.py
enesusta/eksi-crawler
16c3f546c9ce41b46753de36e9886f24d3408e04
[ "MIT" ]
5
2020-11-23T19:43:32.000Z
2022-02-06T11:44:21.000Z
main.py
enesusta/eksi-crawler
16c3f546c9ce41b46753de36e9886f24d3408e04
[ "MIT" ]
null
null
null
main.py
enesusta/eksi-crawler
16c3f546c9ce41b46753de36e9886f24d3408e04
[ "MIT" ]
null
null
null
from crawler import entries f = open('eksi.md', 'w+', encoding="utf-8") f.write('| |\n') f.write('| -- |') for i in range(1, 2000): list = entries(i) if list != 404: # if there is content to show. for entry in list: f.write('\n|' + entry + '|') else: break
21.285714
50
0.520134
500cc2ad403ada5fa714d5a703c1e30798848e15
381
py
Python
sample/create_table/sample_create_table_from_dataframe.py
thombashi/SimpleSQLite
0cc3a4902a17334b80ff3aa43b01ff2aeca193cf
[ "MIT" ]
126
2016-02-21T17:14:25.000Z
2022-03-28T23:25:27.000Z
sample/create_table/sample_create_table_from_dataframe.py
thombashi/SimpleSQLite
0cc3a4902a17334b80ff3aa43b01ff2aeca193cf
[ "MIT" ]
21
2016-03-20T02:24:11.000Z
2021-09-29T12:46:31.000Z
sample/create_table/sample_create_table_from_dataframe.py
thombashi/SimpleSQLite
0cc3a4902a17334b80ff3aa43b01ff2aeca193cf
[ "MIT" ]
18
2016-03-14T00:56:34.000Z
2021-07-21T07:24:49.000Z
#!/usr/bin/env python3 import pandas from simplesqlite import SimpleSQLite def main(): con = SimpleSQLite("pandas_df.sqlite") con.create_table_from_dataframe( pandas.DataFrame( [[0, 0.1, "a"], [1, 1.1, "bb"], [2, 2.2, "ccc"]], columns=["id", "value", "name"] ), table_nam...
18.142857
93
0.572178
5bebd3384a6dcdd7733ba2f081958d1f17795f94
142
py
Python
Ogrenciler/Burcu/01TEMELPYTHONBILGILER/soru3.py
ProEgitim/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
1
2021-04-18T17:35:22.000Z
2021-04-18T17:35:22.000Z
Ogrenciler/Burcu/01TEMELPYTHONBILGILER/soru3.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
null
null
null
Ogrenciler/Burcu/01TEMELPYTHONBILGILER/soru3.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
2
2021-04-18T18:22:26.000Z
2021-04-24T17:16:19.000Z
""" iki sayı alın ve yerlerini değişin """ a:float=float(input("a= ")) b:float=float(input("b= ")) temp:float=0 temp=a a=b b=temp print(a,b)
11.833333
34
0.647887
839095c9bf123fa85c972440f952244ab39d4982
172
py
Python
Python/quick_zip.py
tjnorred/Infrastructure
d56382272c3d35ac2af93540b24103e3fcc409f5
[ "MIT" ]
null
null
null
Python/quick_zip.py
tjnorred/Infrastructure
d56382272c3d35ac2af93540b24103e3fcc409f5
[ "MIT" ]
null
null
null
Python/quick_zip.py
tjnorred/Infrastructure
d56382272c3d35ac2af93540b24103e3fcc409f5
[ "MIT" ]
null
null
null
import zipfile as zf SOURCE = r'<path_to_zip' DESTINATION = r'<path_to_dest>' with zf.ZipFile(SOURCE, 'r') as zf: zf.extractall(DESTINATION) zf.close() #cleanup
17.2
35
0.697674
d64694040f657acd255e20d9fffe2c54bb7765e8
2,522
py
Python
test/python/algorithms/test_entangler_map.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
test/python/algorithms/test_entangler_map.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
test/python/algorithms/test_entangler_map.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
36.550725
84
0.627676
436904777de017c5ccd88271aa0994b73a493822
4,932
py
Python
main_beat_aligned.py
LanXiangExcavator/Beat-aligned_Transformer
c17b014f01761d1b38addd3a846db3c0b5ba5e80
[ "MIT" ]
3
2022-03-03T07:37:01.000Z
2022-03-09T07:47:11.000Z
main_beat_aligned.py
LanXiangExcavator/Beat-aligned_Transformer
c17b014f01761d1b38addd3a846db3c0b5ba5e80
[ "MIT" ]
null
null
null
main_beat_aligned.py
LanXiangExcavator/Beat-aligned_Transformer
c17b014f01761d1b38addd3a846db3c0b5ba5e80
[ "MIT" ]
1
2022-02-28T14:55:23.000Z
2022-02-28T14:55:23.000Z
import argparse import collections import torch import numpy as np import data_loader.data_loaders as module_data import model.loss as module_loss import model.metric as module_metric import model.swin_transformer_1d as module_arch_swin_transformer import model.beat_aligned_transformer as module_arch_beat_aligned_trans...
45.247706
158
0.681468
c35715af083441201b6d6dc05af54a56b8bcb312
975
py
Python
setup.py
beatrizuezu/pycpfcnpj
065742e68cc0185341a9b1df35606560f78fd21a
[ "MIT" ]
null
null
null
setup.py
beatrizuezu/pycpfcnpj
065742e68cc0185341a9b1df35606560f78fd21a
[ "MIT" ]
null
null
null
setup.py
beatrizuezu/pycpfcnpj
065742e68cc0185341a9b1df35606560f78fd21a
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pycpfcnpj', version='1.5.1', description='Python module for brazilian register numbers for persons (CPF) and companies (CNPJ).', classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', ...
39
105
0.603077
998346f2ec29f86896454309f95e50449f696d12
2,325
py
Python
vseq/utils/argparsing.py
JakobHavtorn/vseq
bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea
[ "MIT" ]
7
2021-03-25T12:33:53.000Z
2022-03-23T13:10:31.000Z
vseq/utils/argparsing.py
JakobHavtorn/vseq
bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea
[ "MIT" ]
null
null
null
vseq/utils/argparsing.py
JakobHavtorn/vseq
bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea
[ "MIT" ]
null
null
null
import argparse import json import os from functools import partial from json import JSONDecoder def json_or_str(arg, json_decoder=json.loads): """Parse inputs that can be either json or string as json if it looks like JSON otherwise string""" is_json = len(arg.split("{")) > 1 or len(arg.split("[")) > 1 ...
28.012048
106
0.615484
06237df9ed0f49fd9df8084d7d0a34d88fbccd9c
1,645
py
Python
psana/psana/momentum/EleMomentumRemi.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psana/psana/momentum/EleMomentumRemi.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psana/psana/momentum/EleMomentumRemi.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
import numpy as np class EleMomentumRemi(): def __init__(self,t0_ns=0,x0_mm=0,y0_mm=0,vjetx_mmPns=0,vjety_mmPns=0, l_mm=None,U_V=None): self.t0 = t0_ns self.x0 = x0_mm self.y0 = y0_mm self.vjetx = vjetx_mmPns self.vjety = vjety_mmPns self.U = U_V ...
35
111
0.569605
36fa5ed4e1bc3b4aac2502588733708a2de96cb9
1,235
py
Python
covid19openapi/thaicovid19.py
rsxss/covid19-open-api
fab3d7b3706266f6ea5127505807fc76cd550dd5
[ "MIT" ]
null
null
null
covid19openapi/thaicovid19.py
rsxss/covid19-open-api
fab3d7b3706266f6ea5127505807fc76cd550dd5
[ "MIT" ]
null
null
null
covid19openapi/thaicovid19.py
rsxss/covid19-open-api
fab3d7b3706266f6ea5127505807fc76cd550dd5
[ "MIT" ]
null
null
null
from __future__ import annotations from .basecovid19 import BaseCovid19 from .covid19scope import Covid19 import requests class ThaiCovid19(BaseCovid19): """ThaiCovid19 requests data from specific source""" def __init__(self: BaseCovid19, source: str = 'covid19.th-stat.com') -> None: ""...
27.444444
83
0.519838
84d86331215fe08a6494798937d28726eeda530c
6,191
py
Python
mtrl/logger.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
mtrl/logger.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
mtrl/logger.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Implementation based on Denis Yarats' implementation of [SAC](https://github.com/denisyarats/pytorch_sac). import json import os import time from functools import singledispatch from typing import Dict, List import numpy as np import torch from ...
30.2
108
0.517687
f4bc72625c7eddebb6d2f11e036db215e9aa51eb
1,039
py
Python
tests/test_configure.py
DevicePilot/devicepilot-py
e4d60abdf2cb54c27720f38d6b75fa4f0106301c
[ "MIT" ]
2
2018-11-16T15:44:52.000Z
2018-11-16T15:53:16.000Z
tests/test_configure.py
DevicePilot/devicepilot-py
e4d60abdf2cb54c27720f38d6b75fa4f0106301c
[ "MIT" ]
null
null
null
tests/test_configure.py
DevicePilot/devicepilot-py
e4d60abdf2cb54c27720f38d6b75fa4f0106301c
[ "MIT" ]
null
null
null
"""configure tests""" import os import unittest from devicepilot.configure import configure class TestConfigure(unittest.TestCase): """configure tests""" def test_get_explicit_api_key(self): """gets an explicit api key""" key = configure("the-key") self.assertEqual(key, "TOKEN the-ke...
28.081081
52
0.629451
ad8e221ffe7f6452c5ed50dcd3075f50a1b064d8
444
py
Python
tests/testing/packages/conflicting_package/setup.py
Kami/venv-update
afe9886b7481de770f2a684ec7450368006d54f3
[ "MIT" ]
165
2015-01-05T10:19:30.000Z
2022-03-22T21:14:58.000Z
tests/testing/packages/conflicting_package/setup.py
Kami/venv-update
afe9886b7481de770f2a684ec7450368006d54f3
[ "MIT" ]
148
2015-01-06T19:57:15.000Z
2021-07-23T20:50:06.000Z
tests/testing/packages/conflicting_package/setup.py
Kami/venv-update
afe9886b7481de770f2a684ec7450368006d54f3
[ "MIT" ]
30
2015-01-05T10:19:35.000Z
2022-03-01T00:48:53.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from setuptools import setup setup( name=str('conflicting_package'), version='1', url='example.com', author='nobody', author_email='nobody@example.com', install_requires=[ ...
19.304348
39
0.648649
c88d18541811cd7fdb355959874768ec4e4307de
22,482
py
Python
tests/conftest.py
vhawk19/zulip-terminal
838e49c8a8baa740f06eace456e1cf31b16151c9
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
vhawk19/zulip-terminal
838e49c8a8baa740f06eace456e1cf31b16151c9
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
vhawk19/zulip-terminal
838e49c8a8baa740f06eace456e1cf31b16151c9
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from copy import deepcopy from typing import Any, Dict import pytest from zulipterminal.ui_tools.boxes import MessageBox from zulipterminal.ui_tools.buttons import StreamButton, UserButton from zulipterminal.helper import initial_index as helper_initial_index @pytest.fixture(auto...
31.531557
79
0.464505
9131ceb5a28864ac4a63bb3ea7d4f6591e720df0
662
py
Python
lab3.py
MorganEstep/IA241
ef31672d24a1745a18169610c85f59187c911818
[ "MIT" ]
null
null
null
lab3.py
MorganEstep/IA241
ef31672d24a1745a18169610c85f59187c911818
[ "MIT" ]
null
null
null
lab3.py
MorganEstep/IA241
ef31672d24a1745a18169610c85f59187c911818
[ "MIT" ]
null
null
null
""" lab 3 list and set """ #3.1 str_list = ['a','d','e','b','c'] print(str_list) str_list.sort() print(str_list) #3.2 str_list.append('f') print(str_list) #3.3 str_list.remove('d') print(str_list) #3.4 print(str_list[2]) #3.5 my_list = ['a', '123', 123, 'b', 'B', 'False', False, 123, None, 'None'] print(len(set(...
13.24
72
0.557402
0a49359dea03184b14b8f76f85a74453a42dc7cb
450
py
Python
data/scripts/templates/object/draft_schematic/weapon/shared_razor_knuckler.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/weapon/shared_razor_knuckler.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/weapon/shared_razor_knuckler.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/weapon/shared_razor_knuckler.iff" result.attribute_templat...
26.470588
76
0.728889
d7fe51695a772cb8f93b7de5f69ed2953b06cd75
7,861
py
Python
read.py
moskalev/canvas-student-list
8822e8a9de8751e61a2bf337f5df7f0cfdde4951
[ "MIT" ]
null
null
null
read.py
moskalev/canvas-student-list
8822e8a9de8751e61a2bf337f5df7f0cfdde4951
[ "MIT" ]
null
null
null
read.py
moskalev/canvas-student-list
8822e8a9de8751e61a2bf337f5df7f0cfdde4951
[ "MIT" ]
null
null
null
# __author__ = 'dimitrios' # later modified on 9/05/18, not the original version from calls import APICalls import os import time import json class CanvasReader(object): """ Class that contains functions useful for downloading (reading) entities for a course. Essentially a wrapper for API get calls for gro...
48.524691
132
0.668108
8308c27f07b4c3cbbacacf7ef9e1f398a6e77f8b
12,770
py
Python
pymem/process.py
StarrFox/Pymem
1d1b1095c097333941c01ef96125dd6f3b7f22a7
[ "MIT" ]
183
2015-06-29T08:44:38.000Z
2022-03-21T08:55:19.000Z
pymem/process.py
StarrFox/Pymem
1d1b1095c097333941c01ef96125dd6f3b7f22a7
[ "MIT" ]
56
2015-10-12T21:37:14.000Z
2022-02-22T08:05:38.000Z
pymem/process.py
StarrFox/Pymem
1d1b1095c097333941c01ef96125dd6f3b7f22a7
[ "MIT" ]
51
2015-11-11T03:12:18.000Z
2022-03-21T08:55:18.000Z
import ctypes import locale import logging import os import pymem.ressources.advapi32 import pymem.ressources.kernel32 import pymem.ressources.psapi import pymem.ressources.structure logger = logging.getLogger(__name__) def get_python_dll(version): """"Given a python dll version will find its path using the cu...
33.693931
154
0.707126
db4eebfdc266c47bb6fad01e84e86864c94a6452
306
py
Python
open/users/apps.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
105
2019-06-01T08:34:47.000Z
2022-03-15T11:48:36.000Z
open/users/apps.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
111
2019-06-04T15:34:14.000Z
2022-03-12T21:03:20.000Z
open/users/apps.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
26
2019-09-04T06:06:12.000Z
2022-01-03T03:40:11.000Z
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "open.users" verbose_name = _("Users") def ready(self): try: import open.users.signals # noqa F401 except ImportError: pass
21.857143
54
0.647059
ecac7d2333007baefb1053e49c15bf26aec11a86
9,322
py
Python
docs/conf.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
docs/conf.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
docs/conf.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # crea-graphenelib documentation build configuration file, created by # sphinx-quickstart on Fri Jun 5 14:06:38 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in ...
32.480836
79
0.718515
9a8ae310689becc2f3b3f126d93145f73b5259d8
538
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tight-hall-29349
9906b46a3172f0c133814a88fad986c6cae2cdb7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tight-hall-29349
9906b46a3172f0c133814a88fad986c6cae2cdb7
[ "FTL", "AML", "RSA-MD" ]
69
2021-08-02T22:00:40.000Z
2021-12-12T15:09:25.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tight-hall-29349
9906b46a3172f0c133814a88fad986c6cae2cdb7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "tight-hall-29349.botics.co" site_params = { "name": "Tight Hall", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_cr...
20.692308
61
0.654275
8c9732663be771ea70f197ec3605b25bee086230
3,262
py
Python
plato/processors/registry.py
cuiboyuan/plato
260b785cbbf8588c92331d6343211ff72321f90e
[ "Apache-2.0" ]
135
2021-04-14T09:06:08.000Z
2022-03-31T03:38:42.000Z
plato/processors/registry.py
cuiboyuan/plato
260b785cbbf8588c92331d6343211ff72321f90e
[ "Apache-2.0" ]
39
2021-05-16T00:34:08.000Z
2022-03-10T22:03:57.000Z
plato/processors/registry.py
cuiboyuan/plato
260b785cbbf8588c92331d6343211ff72321f90e
[ "Apache-2.0" ]
41
2021-04-14T10:40:07.000Z
2022-03-28T10:24:20.000Z
""" This registry for Processors contains framework-specific implementations of Processors for data payloads. Having a registry of all available classes is convenient for retrieving an instance based on a configuration at run-time. """ import logging from collections import OrderedDict from typing import Tuple from p...
34.702128
83
0.687308
c310f19e0bb3c6722b24301985877ebc2cbc4a41
2,788
py
Python
services/core-api/app/api/mines/status/models/mine_status_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/mines/status/models/mine_status_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/mines/status/models/mine_status_xref.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import validates from sqlalchemy.schema import FetchedValue from app.extensions import db from app.api.utils.models_mixins import AuditMixin, Base from .mine_operation_status_code import MineOperationStatusCode from .min...
42.892308
98
0.748207
0f265892465262fbfe150661dbd5dbe78a24c808
512
py
Python
BancoDadosPython/selecionar_com_filtro2.py
VictorMello1993/CursoPythonUdemy
d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d
[ "MIT" ]
null
null
null
BancoDadosPython/selecionar_com_filtro2.py
VictorMello1993/CursoPythonUdemy
d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d
[ "MIT" ]
4
2021-04-08T21:54:09.000Z
2022-02-10T14:35:13.000Z
BancoDadosPython/selecionar_com_filtro2.py
VictorMello1993/CursoPythonUdemy
d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d
[ "MIT" ]
null
null
null
from mysql.connector.errors import ProgrammingError from bd import nova_conexao sql = "SELECT * FROM contatos WHERE nome like 'Max%'" try: with nova_conexao() as conexao: try: datatable = conexao.cursor() datatable.execute(sql) except ProgrammingError as e: prin...
30.117647
53
0.572266
d861425c5f213834160399c16316f28c9ba0fccb
2,412
py
Python
omni-mini/prelinear/filelists/miniImagenet/write_cross_filelist.py
indy-lab/ProtoTransfer
90a526bb209160e376b2b8290e99b0f62b240052
[ "MIT" ]
43
2020-06-23T08:09:08.000Z
2022-03-03T03:05:34.000Z
omni-mini/prelinear/filelists/miniImagenet/write_cross_filelist.py
Asphalt93/ProtoTransfer
2e186ffd5bd795244c6dd7192575b84f935c5749
[ "MIT" ]
5
2020-07-03T20:58:24.000Z
2021-08-04T06:34:09.000Z
omni-mini/prelinear/filelists/miniImagenet/write_cross_filelist.py
Asphalt93/ProtoTransfer
2e186ffd5bd795244c6dd7192575b84f935c5749
[ "MIT" ]
9
2020-07-21T03:26:29.000Z
2021-09-26T06:10:37.000Z
import numpy as np from os import listdir from os.path import isfile, isdir, join import os import json import random import re cwd = os.getcwd() data_path = join(cwd,'ILSVRC2015/Data/CLS-LOC/train') savedir = './' dataset_list = ['base', 'val', 'novel'] #if not os.path.exists(savedir): # os.makedirs(savedir) cl...
33.041096
118
0.606551
1ebeb0c6615945e758bae4455c674657424932d5
1,719
py
Python
scripts/analogy_exp.py
HusainZafar/dig-wikifier
90b1e9764e46d584b537f134fa6b191aaae4cd67
[ "MIT" ]
3
2018-11-28T23:09:58.000Z
2021-06-11T05:27:52.000Z
scripts/analogy_exp.py
HusainZafar/dig-wikifier
90b1e9764e46d584b537f134fa6b191aaae4cd67
[ "MIT" ]
null
null
null
scripts/analogy_exp.py
HusainZafar/dig-wikifier
90b1e9764e46d584b537f134fa6b191aaae4cd67
[ "MIT" ]
3
2019-05-30T19:02:23.000Z
2020-10-11T13:43:01.000Z
import redis import argparse from collections import defaultdict import json # Install dependencies hiredis, redis import math import json import numpy as np from gensim.models import Word2Vec """ This script takes in a word2vec trained model and can perform some analogy queries, specifically x - y + z (a.k.a the kin...
31.833333
347
0.672484
b3e548cd18a8ca5e0ff85516f6d835a475ad57fd
411
py
Python
server/asgi.py
arsonite/lockkliye_backend
8dc49654ff674b8b058cf40fb055e6437a58018c
[ "MIT" ]
null
null
null
server/asgi.py
arsonite/lockkliye_backend
8dc49654ff674b8b058cf40fb055e6437a58018c
[ "MIT" ]
10
2020-06-05T20:47:00.000Z
2022-01-13T02:11:48.000Z
server/asgi.py
arsonite/lockkliye_backend
8dc49654ff674b8b058cf40fb055e6437a58018c
[ "MIT" ]
null
null
null
""" ASGI config for lockkliye_backend project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
24.176471
78
0.79562
41f8c5378d337a31ba80c8b6025df203f43daa46
3,221
py
Python
linalg/decompose.py
Markus28/Scientific-Computing
74c390c55561c9cbab3aaf0cab01eb3ff61225c2
[ "MIT" ]
null
null
null
linalg/decompose.py
Markus28/Scientific-Computing
74c390c55561c9cbab3aaf0cab01eb3ff61225c2
[ "MIT" ]
null
null
null
linalg/decompose.py
Markus28/Scientific-Computing
74c390c55561c9cbab3aaf0cab01eb3ff61225c2
[ "MIT" ]
null
null
null
import numpy as np def symmetric_gauss(A): if(A.size == 1): return np.array([1]), A.copy() U = np.eye(A.shape[0]) U[0, 1:] = -A[0, 1:]/A[0,0] U_next = np.eye(A.shape[0]) A_new = np.matmul(U.T, np.matmul(A, U)) U_next[1:, 1:], A_new[1:, 1:] = symmetric_gauss(A_new[1:, 1:]) retu...
25.362205
101
0.472524
0c890240ca54e8237bb05b823ac6aa0a8b5ee80f
1,102
py
Python
agent/indy_catalyst_agent/messaging/trustping/handlers/ping_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/trustping/handlers/ping_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/trustping/handlers/ping_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
"""Ping handler.""" from ...base_handler import BaseHandler, BaseResponder, RequestContext from ..messages.ping import Ping from ..messages.ping_response import PingResponse from ....models.thread_decorator import ThreadDecorator class PingHandler(BaseHandler): """Ping handler class.""" async def handle(sel...
31.485714
87
0.664247
c060bb97c10c561efaa33a86600b5c8cf481d5fe
3,914
py
Python
nipype/workflows/dmri/dipy/denoise.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/workflows/dmri/dipy/denoise.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/workflows/dmri/dipy/denoise.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # coding: utf-8 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from builtins import range from ....pipeline import engine as pe from ....interfaces import utility as niu from ....interfaces import dipy def nlmeans_pipeline(nam...
32.890756
78
0.597087
f5f3419772d94c855836bbd4d4a4cc618cbf6504
609
py
Python
urls.py
crschmidt/labs-rectifier
eb384cb6948459ec7391eaf4cb7ce6d39b95aa3b
[ "BSD-3-Clause-Clear" ]
6
2015-07-03T01:08:36.000Z
2019-11-19T23:53:04.000Z
urls.py
alfcrisci/labs-rectifier
0bb91d20dc00b133e3ec1936e09c974788550315
[ "BSD-3-Clause-Clear" ]
1
2020-05-13T18:45:18.000Z
2020-05-13T18:45:18.000Z
urls.py
alfcrisci/labs-rectifier
0bb91d20dc00b133e3ec1936e09c974788550315
[ "BSD-3-Clause-Clear" ]
4
2015-08-26T21:35:39.000Z
2020-04-21T21:37:04.000Z
from django.conf.urls.defaults import * from django.conf import settings urlpatterns = patterns('', (r'^', include('rectifier.main.urls')), (r'^rectifier/', include('rectifier.main.urls')), (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static/'}), (r'^rectifier/static/(?P<...
43.5
111
0.646962
25e3b2533ac71a0756a9ccbdf83766c6baf4f2a2
1,098
py
Python
src/module/get_feature_value.py
Ooshita/Mojikara
0ee99a97d605c8fa033e89367cc2aee76df51fe4
[ "Apache-2.0" ]
null
null
null
src/module/get_feature_value.py
Ooshita/Mojikara
0ee99a97d605c8fa033e89367cc2aee76df51fe4
[ "Apache-2.0" ]
null
null
null
src/module/get_feature_value.py
Ooshita/Mojikara
0ee99a97d605c8fa033e89367cc2aee76df51fe4
[ "Apache-2.0" ]
null
null
null
import MeCab from collections import Counter keywords = [] m = MeCab.Tagger(' -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd') class Get_feature: # 起動時に一度だけ動く処理 def __init__(self): self.keywords = [] def morph_result(document): node = m.parseToNode(document).next while node: ...
30.5
121
0.561931
c5aafee690eee6ce4a4a1a264299eb669b56fd16
17,017
py
Python
data/microenv_params.py
PhysiCell-Models/three_types_NH
86eb269df16322415be329d80a236fb032360b58
[ "BSD-3-Clause" ]
1
2021-06-22T19:00:01.000Z
2021-06-22T19:00:01.000Z
data/microenv_params.py
PhysiCell-Models/three_types_NH
86eb269df16322415be329d80a236fb032360b58
[ "BSD-3-Clause" ]
null
null
null
data/microenv_params.py
PhysiCell-Models/three_types_NH
86eb269df16322415be329d80a236fb032360b58
[ "BSD-3-Clause" ]
1
2020-11-10T14:44:23.000Z
2020-11-10T14:44:23.000Z
# This file is auto-generated from a Python script that parses a PhysiCell configuration (.xml) file. # # Edit at your own risk. # import os from ipywidgets import Label,Text,Checkbox,Button,HBox,VBox,FloatText,IntText,BoundedIntText,BoundedFloatText,Layout,Box class MicroenvTab(object): def __init__(self):...
56.723333
142
0.711994
117fdae52edda3b4ec9b4ecd349f7acba961fa18
7,709
py
Python
fs/tests/test_path.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
314
2015-04-11T10:52:26.000Z
2022-01-26T07:00:30.000Z
fs/tests/test_path.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
94
2015-04-11T10:43:16.000Z
2021-10-06T11:21:26.000Z
fs/tests/test_path.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
95
2015-04-21T02:13:20.000Z
2021-11-26T05:07:59.000Z
""" fs.tests.test_path: testcases for the fs path functions """ import unittest import fs.tests from fs.path import * class TestPathFunctions(unittest.TestCase): """Testcases for FS path functions.""" def test_normpath(self): tests = [ ("\\a\\b\\c", "\\a\\b\\c"), (".", ""...
38.545
172
0.442729
2ff2c9a17601cca061749fe1d16d83cbf1125e0b
1,845
py
Python
modules/thirdparty/image/Image_gan/style_transfer/animegan_v2_shinkai_33/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
2
2020-12-03T12:35:16.000Z
2021-07-17T09:30:34.000Z
modules/thirdparty/image/Image_gan/style_transfer/animegan_v2_shinkai_33/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
null
null
null
modules/thirdparty/image/Image_gan/style_transfer/animegan_v2_shinkai_33/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
null
null
null
import os from paddlehub import Module from paddlehub.module.module import moduleinfo, serving from animegan_v2_shinkai_33.model import Model from animegan_v2_shinkai_33.processor import base64_to_cv2, cv2_to_base64, Processor @moduleinfo( name="animegan_v2_shinkai_33", # 模型名称 type="CV/style_transfer", # ...
28.384615
104
0.609756
8d5d0ea833aa63434256ea0c6cb20aab009db814
739
py
Python
tests/core/test_save_config.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
133
2019-12-03T18:56:27.000Z
2022-03-18T19:54:49.000Z
tests/core/test_save_config.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
384
2019-12-04T03:04:14.000Z
2022-03-31T20:42:48.000Z
tests/core/test_save_config.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
64
2019-12-05T20:39:51.000Z
2022-03-25T13:30:54.000Z
# Third Party # First Party from smdebug import modes from smdebug.core.save_config import SaveConfig def test_export_load(): r1 = SaveConfig(save_interval=11, start_step=10, save_steps=[50]) r2 = SaveConfig.from_json(r1.to_json()) assert r1.to_json() == r2.to_json() assert r1 == r2 def test_load_e...
24.633333
69
0.713126
844940db19429d65a138ab68b849747326e71c4f
21,649
py
Python
google_scraper/selenium_scraper.py
FabianGruben/Google_Image_Scraper
eb2569d598f6444c3ab1a27bf9632450a8e9981b
[ "MIT" ]
null
null
null
google_scraper/selenium_scraper.py
FabianGruben/Google_Image_Scraper
eb2569d598f6444c3ab1a27bf9632450a8e9981b
[ "MIT" ]
null
null
null
google_scraper/selenium_scraper.py
FabianGruben/Google_Image_Scraper
eb2569d598f6444c3ab1a27bf9632450a8e9981b
[ "MIT" ]
null
null
null
#%%" ai from time import sleep import requests from requests.exceptions import RequestException from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expect...
35.490164
96
0.628435
3ea518c9613c15f42971dbacfd6683e59a18e446
6,435
py
Python
download_data/npz_to_csv.py
pdgwelle/salinity_prediction
37ed034b4ba466c99eae89c1daaa7e89215d7020
[ "MIT" ]
null
null
null
download_data/npz_to_csv.py
pdgwelle/salinity_prediction
37ed034b4ba466c99eae89c1daaa7e89215d7020
[ "MIT" ]
null
null
null
download_data/npz_to_csv.py
pdgwelle/salinity_prediction
37ed034b4ba466c99eae89c1daaa7e89215d7020
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import math import tifffile as tf import dirs def final_data_processing(npz_directory, csv_directory, FieldID, start_year = 2007, end_year = 2013): #satellite_data[rows(height), columns(width), {band1,band2,band3,band4,band5,band7,cfmask,year,datecode},images} def averag...
46.294964
145
0.579021
ac86799b6b8c41bc751b16da496ec9bcee91da3a
1,513
py
Python
tests/python/relay/test_to_graph_normal_form.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
1
2021-03-07T15:30:16.000Z
2021-03-07T15:30:16.000Z
tests/python/relay/test_to_graph_normal_form.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_to_graph_normal_form.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
1
2020-02-09T10:42:31.000Z
2020-02-09T10:42:31.000Z
import numpy as np import tvm from tvm import relay from tvm.relay.ir_pass import to_graph_normal_form, to_a_normal_form, alpha_equal from tvm.relay import op, create_executor from tvm.relay.backend.interpreter import Value, TupleValue def check_eval(expr, args, expected_result, mod=None, rtol=1e-07): if mod is N...
29.096154
81
0.633179
6d978ba15d7fcec25df22e89ae533b230aa920a4
2,737
py
Python
neutron_lbaas/tests/tempest/v2/clients/listeners_client.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/tests/tempest/v2/clients/listeners_client.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/tests/tempest/v2/clients/listeners_client.py
gotostack/neutron-lbaas
aea6f1f3c512ef94c89210d919f3b807b907edbe
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Rackspace US 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 required...
39.666667
78
0.652174
ef6dffd6a92e726f5ce293c4c1ca893b8bf44951
6,753
py
Python
src/scs_philips_hue/data/light/light.py
south-coast-science/scs_philips_hue
80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040
[ "MIT" ]
null
null
null
src/scs_philips_hue/data/light/light.py
south-coast-science/scs_philips_hue
80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040
[ "MIT" ]
null
null
null
src/scs_philips_hue/data/light/light.py
south-coast-science/scs_philips_hue
80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040
[ "MIT" ]
null
null
null
""" Created on 28 Oct 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) example: { "state": { "on": true, "bri": 254, "hue": 8418, "sat": 140, "effect": "none", "xy": [0.4573, 0.41], "ct": 366, "alert": "select", "colormode": "c...
28.614407
118
0.451503
88e4b706aeb313d09576afffa1da171de1557ac2
1,109
py
Python
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_3_xsd/nistschema_sv_iv_atomic_name_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_3_xsd/nistschema_sv_iv_atomic_name_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_enumeration_3_xsd/nistschema_sv_iv_atomic_name_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-atomic-Name-enumeration-3-NS" class NistschemaSvIvAtomicNameEnumeration3Type(Enum): UPROCESSORS_FOR_PUBLISHING_METHODS_FOR_AN_WITH_INCLUDED_IMPLEME = "uprocessors:for.publishing:methods.fo...
36.966667
135
0.766456
13102b9a3cf44cc087d8bc53886dab673ccb0856
1,425
py
Python
vice/testing/decorators.py
astrobeard/VICEdev
c78804ec63b48a760ce3e50b8d3afc7b699ec75f
[ "MIT" ]
null
null
null
vice/testing/decorators.py
astrobeard/VICEdev
c78804ec63b48a760ce3e50b8d3afc7b699ec75f
[ "MIT" ]
null
null
null
vice/testing/decorators.py
astrobeard/VICEdev
c78804ec63b48a760ce3e50b8d3afc7b699ec75f
[ "MIT" ]
null
null
null
""" This file implements the unittest and moduletest decorators for testing """ from __future__ import absolute_import __all__ = ["moduletest", "unittest"] from .moduletest import _moduletest from .unittest import _unittest import functools import inspect def moduletest(function): """ A decorator which ...
21.923077
73
0.706667
1a4f9c56709069ce5bcf8a7a39563ba80269abb0
479
py
Python
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
from YTR import app # Python imports import subprocess import json import os def open_browser(): # open config.JSON as r+ config = open("config.JSON", "r+") my_config = json.load(config) if my_config['OS'] == 'Linux': subprocess.run("sensible-browser 127.0.0.1:5100", shell=True) elif my_co...
23.95
69
0.649269