hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
31b4d4041b346080b3c99bf0b972817cb29cc91f
1,056
py
Python
setup.py
MLResearchAtOSRAM/cause2e
9420e88802172b893d4029b741dfd3e5e718880b
[ "MIT" ]
33
2021-05-18T13:03:54.000Z
2022-02-17T16:50:48.000Z
setup.py
MLResearchAtOSRAM/cause2e
9420e88802172b893d4029b741dfd3e5e718880b
[ "MIT" ]
11
2021-09-17T07:27:38.000Z
2022-03-29T07:04:33.000Z
setup.py
MLResearchAtOSRAM/cause2e
9420e88802172b893d4029b741dfd3e5e718880b
[ "MIT" ]
1
2021-11-15T12:22:51.000Z
2021-11-15T12:22:51.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setuptools.setup( name="cause2e", version="0.2.0", author="Daniel Gruenbaum", author_email="daniel.gruenbaum@ams-osram.com", description="A package for end-to-end causal analysis", ...
28.540541
60
0.585227
import setuptools with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setuptools.setup( name="cause2e", version="0.2.0", author="Daniel Gruenbaum", author_email="daniel.gruenbaum@ams-osram.com", description="A package for end-to-end causal analysis", ...
0
0
0
d48c2ef6acdd3722de0456719e1c6ed9281ed527
132
py
Python
src/deep_dialog/models/nlg/convert.py
gzpbbd/DDQ
44f4d2bf27c4299d349339de7bc85d1b9b640c50
[ "MIT" ]
141
2018-05-23T02:20:36.000Z
2022-03-20T21:49:03.000Z
D3Q/src/deep_dialog/models/nlg/convert.py
yanglongfei908/D3Q
eb9cb05ffc3c22fcd4972371a987dbacab3e4ff6
[ "MIT" ]
10
2018-05-25T07:08:16.000Z
2021-05-23T08:36:20.000Z
D3Q/src/deep_dialog/models/nlg/convert.py
yanglongfei908/D3Q
eb9cb05ffc3c22fcd4972371a987dbacab3e4ff6
[ "MIT" ]
44
2018-07-17T10:14:07.000Z
2021-09-11T07:19:43.000Z
import cPickle model=cPickle.load(open('lstm_tanh_relu_[1468202263.38]_2_0.610.p')) cPickle.dump(model,open('model.bin.nlg','wb'))
44
69
0.765152
import cPickle model=cPickle.load(open('lstm_tanh_relu_[1468202263.38]_2_0.610.p')) cPickle.dump(model,open('model.bin.nlg','wb'))
0
0
0
cf22a43cb28da76dd9e14ea02ae3c02acf643632
70
py
Python
controller/controller/__init__.py
FilippoRanza/rr-scheduler
8fc06f9d0ffe514ab6a94fd8a330f1cfd45b56c3
[ "MIT" ]
1
2022-01-13T13:59:28.000Z
2022-01-13T13:59:28.000Z
controller/controller/__init__.py
FilippoRanza/rr-scheduler
8fc06f9d0ffe514ab6a94fd8a330f1cfd45b56c3
[ "MIT" ]
null
null
null
controller/controller/__init__.py
FilippoRanza/rr-scheduler
8fc06f9d0ffe514ab6a94fd8a330f1cfd45b56c3
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from . import get_best from . import math_helper
14
25
0.742857
#! /usr/bin/python3 from . import get_best from . import math_helper
0
0
0
7c8df316045b0d9c8310c4d65c2bec2cf734c1d1
2,809
py
Python
torch_geometric/datasets/twitch.py
rietesh/pytorch_geometric
2ccebcdbcc763943282822e08214dca0cfc81243
[ "MIT" ]
null
null
null
torch_geometric/datasets/twitch.py
rietesh/pytorch_geometric
2ccebcdbcc763943282822e08214dca0cfc81243
[ "MIT" ]
null
null
null
torch_geometric/datasets/twitch.py
rietesh/pytorch_geometric
2ccebcdbcc763943282822e08214dca0cfc81243
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Callable, Optional import numpy as np import torch from torch_geometric.data import Data, InMemoryDataset, download_url class Twitch(InMemoryDataset): r"""The Twitch Gamer networks introduced in the `"Multi-scale Attributed Node Embedding" <https://arxiv.org/a...
36.960526
78
0.645069
from pathlib import Path from typing import Callable, Optional import numpy as np import torch from torch_geometric.data import Data, InMemoryDataset, download_url class Twitch(InMemoryDataset): r"""The Twitch Gamer networks introduced in the `"Multi-scale Attributed Node Embedding" <https://arxiv.org/a...
1,162
0
185
5925eb09d90602cd2178221ab4c247113649ec3c
918
py
Python
core/type.py
kainstan/stealer
5e363a70558454093c4ad3f0065366f2b99ef4f4
[ "MIT" ]
null
null
null
core/type.py
kainstan/stealer
5e363a70558454093c4ad3f0065366f2b99ef4f4
[ "MIT" ]
null
null
null
core/type.py
kainstan/stealer
5e363a70558454093c4ad3f0065366f2b99ef4f4
[ "MIT" ]
null
null
null
import json from enum import Enum, unique @unique video_mapper = {item.value: item for item in Video.__members__.values() if item.enable} video_mapper_json = [] for item in Video.__members__.values(): if not item.enable: continue video_mapper_json.append({ 'label': item.label, 'valu...
24.810811
87
0.620915
import json from enum import Enum, unique @unique class Video(Enum): AUTO = '自动适配', 'auto', True DOUYIN = '抖音', 'douyin', True TIKTOK = 'TikTok', 'tiktok', True KUAISHOU = '快手', 'kuaishou', True HUOSHAN = '火山小视频', 'huoshan', True XIGUA = ' 西瓜视频', 'xigua', False PIPIXIA = '皮皮虾', 'pipixia', ...
177
345
22
8d066504a7fa81e53bf316edc3ef322b6e28ad1e
4,813
py
Python
lib/googlecloudsdk/command_lib/asset/flags.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/asset/flags.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/asset/flags.py
kylewuolle/google-cloud-sdk
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 Google 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 requir...
36.462121
80
0.67006
# -*- coding: utf-8 -*- # # Copyright 2018 Google 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 requir...
2,907
0
184
393a6e5e32f57b74dc75ac6425a9355ea05c3fba
1,597
py
Python
graph4ipy/jgfio.py
agapow/graph4ipy
447a7361d5e78304460f3a46971cb62ab26d548f
[ "MIT" ]
null
null
null
graph4ipy/jgfio.py
agapow/graph4ipy
447a7361d5e78304460f3a46971cb62ab26d548f
[ "MIT" ]
null
null
null
graph4ipy/jgfio.py
agapow/graph4ipy
447a7361d5e78304460f3a46971cb62ab26d548f
[ "MIT" ]
null
null
null
""" Reading and writing JGF format graphs. """ ### IMPORTS import json ### CONSTANTS & DEFINES ### CODE ### # XXX: maybe look at a custom decoder/loader?
27.534483
89
0.608641
""" Reading and writing JGF format graphs. """ ### IMPORTS import json ### CONSTANTS & DEFINES ### CODE ### class JgfReader (object): # XXX: maybe look at a custom decoder/loader? def parse (self, str_or_file): # NOTE: try to decode multiple objects: MultiGraph, SingleGraph or Graph # XXX: do w...
1,304
4
127
3ff5e8b4281d311e8e44b442abc96ec7cc202046
7,765
py
Python
proteus/tests/LS_with_edgeBased_EV/VOF/test_vof.py
dloney/proteus
615cdf57f765b2e99bac904bb6eb71e39e58ab56
[ "MIT" ]
null
null
null
proteus/tests/LS_with_edgeBased_EV/VOF/test_vof.py
dloney/proteus
615cdf57f765b2e99bac904bb6eb71e39e58ab56
[ "MIT" ]
null
null
null
proteus/tests/LS_with_edgeBased_EV/VOF/test_vof.py
dloney/proteus
615cdf57f765b2e99bac904bb6eb71e39e58ab56
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Test module for VOF with EV """ from __future__ import absolute_import from builtins import object from proteus.iproteus import * from proteus import Comm comm = Comm.get() Profiling.logLevel=2 Profiling.verbose=True import numpy as np import tables from . import thelper_vof from . import the...
38.825
80
0.523889
#!/usr/bin/env python """ Test module for VOF with EV """ from __future__ import absolute_import from builtins import object from proteus.iproteus import * from proteus import Comm comm = Comm.get() Profiling.logLevel=2 Profiling.verbose=True import numpy as np import tables from . import thelper_vof from . import the...
6,707
676
23
600f817de7371c0681cdf874cff69364d4981fec
1,637
py
Python
k2/python/k2/fsa_properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
1
2021-03-03T03:30:40.000Z
2021-03-03T03:30:40.000Z
k2/python/k2/fsa_properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
null
null
null
k2/python/k2/fsa_properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors import torch # noqa import _k2 # The FSA properties are a bit-field; these constants can be used # with '&' to deter...
34.829787
80
0.709224
# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors import torch # noqa import _k2 # The FSA properties are a bit-field; these constants can be used # with '&' to deter...
0
0
0
1d4cbd29ad7f4886c5b362bdeccbf0638428eb2a
1,212
py
Python
configs.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
5
2022-03-23T21:27:42.000Z
2022-03-24T19:57:27.000Z
configs.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
null
null
null
configs.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
1
2022-03-23T21:27:44.000Z
2022-03-23T21:27:44.000Z
# Database info MONGODB_DB_NAME = "NXS" MONGODB_MODELS_COLLECTION_NAME = "Models" MONGODB_PIPELINES_COLLECTION_NAME = "Pipelines" MONGODB_W4_MODEL_PROFILES_COLLECTION_NAME = "W4Profiles" # Storage info STORAGE_MODEL_PATH = "models" STORAGE_PREPROC_PATH = "preprocessing" STORAGE_POSTPROC_PATH = "postprocessing" STORAGE...
29.560976
57
0.806931
# Database info MONGODB_DB_NAME = "NXS" MONGODB_MODELS_COLLECTION_NAME = "Models" MONGODB_PIPELINES_COLLECTION_NAME = "Pipelines" MONGODB_W4_MODEL_PROFILES_COLLECTION_NAME = "W4Profiles" # Storage info STORAGE_MODEL_PATH = "models" STORAGE_PREPROC_PATH = "preprocessing" STORAGE_POSTPROC_PATH = "postprocessing" STORAGE...
0
548
91
3df2e92f7e304451ae09047afa971ea7d8e328b5
1,226
py
Python
chromium/tools/telemetry/telemetry/core/network_controller.py
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
chromium/tools/telemetry/telemetry/core/network_controller.py
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
chromium/tools/telemetry/telemetry/core/network_controller.py
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class NetworkController(object): """Control network settings and servers to simulate the Web. Network changes include forwarding device ports to host p...
36.058824
75
0.709625
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class NetworkController(object): """Control network settings and servers to simulate the Web. Network changes include forwarding device ports to host p...
92
0
25
55281a41f46df9fd13977f6cbe8b7bf74aadca4f
4,995
py
Python
weatherbot.py
kraused53/Project-Hermes
db1c0f759e9e59e4b926c7927726c5f458ef7db0
[ "OML" ]
null
null
null
weatherbot.py
kraused53/Project-Hermes
db1c0f759e9e59e4b926c7927726c5f458ef7db0
[ "OML" ]
null
null
null
weatherbot.py
kraused53/Project-Hermes
db1c0f759e9e59e4b926c7927726c5f458ef7db0
[ "OML" ]
null
null
null
import OPEN_WEATHER_KEYS from requests import get, exceptions from datetime import datetime # ---------------------------------------------------------------------------- """ Use the datetime library to convert an integer unix timestamp and a unix timezone offset to calculate string formated time and date...
40.609756
130
0.545946
import OPEN_WEATHER_KEYS from requests import get, exceptions from datetime import datetime # ---------------------------------------------------------------------------- """ Use the datetime library to convert an integer unix timestamp and a unix timezone offset to calculate string formated time and date...
1,004
0
44
bb635bcee607470ded8929e519323a7c0c4e2554
19,001
py
Python
Evolife/Ecology/Alliances.py
antoorofino/Emergence_in_complex_systems_EVOLIFE
c36d3883326ea91b8d890666bf2b37b599141945
[ "MIT" ]
null
null
null
Evolife/Ecology/Alliances.py
antoorofino/Emergence_in_complex_systems_EVOLIFE
c36d3883326ea91b8d890666bf2b37b599141945
[ "MIT" ]
null
null
null
Evolife/Ecology/Alliances.py
antoorofino/Emergence_in_complex_systems_EVOLIFE
c36d3883326ea91b8d890666bf2b37b599141945
[ "MIT" ]
null
null
null
#!/usr/bin/env python############################################################################## #!/usr/bin/env python3 ############################################################################## # EVOLIFE http://evolife.telecom-paris.fr Jean-Louis Dessalles # # Telecom Paris 2021 ...
38.541582
139
0.625651
#!/usr/bin/env python############################################################################## #!/usr/bin/env python3 ############################################################################## # EVOLIFE http://evolife.telecom-paris.fr Jean-Louis Dessalles # # Telecom Paris 2021 ...
3,770
0
895
db8dc16caffaac1205f497668a199d8909d61214
1,460
py
Python
min_mp3.py
amikey/audio_scripts
3c6adc3c4e2a338590bb69e2a13c954bfd8cec46
[ "MIT" ]
6
2016-05-29T23:20:17.000Z
2019-03-10T18:18:05.000Z
min_mp3.py
amikey/audio_scripts
3c6adc3c4e2a338590bb69e2a13c954bfd8cec46
[ "MIT" ]
null
null
null
min_mp3.py
amikey/audio_scripts
3c6adc3c4e2a338590bb69e2a13c954bfd8cec46
[ "MIT" ]
null
null
null
#!//Users/tkirke/anaconda/bin/python # -*- coding: utf-8 -*- import re import sys,os import codecs from math import sqrt,log from scipy.io.wavfile import read,write from scipy import signal import numpy import matplotlib import pylab from lame import * # Remove chunks more -27 db down from peak to remove audio 'gaps' ...
23.934426
132
0.541096
#!//Users/tkirke/anaconda/bin/python # -*- coding: utf-8 -*- import re import sys,os import codecs from math import sqrt,log from scipy.io.wavfile import read,write from scipy import signal import numpy import matplotlib import pylab from lame import * # Remove chunks more -27 db down from peak to remove audio 'gaps' ...
0
0
0
3c6755baeede12a1db47d023b18dd9493e78a17c
2,620
py
Python
application/bills/bills.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
1
2020-09-18T04:18:58.000Z
2020-09-18T04:18:58.000Z
application/bills/bills.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
null
null
null
application/bills/bills.py
akelshareif/fiscally
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
[ "MIT" ]
null
null
null
""" Bills routes """ from flask import Blueprint, render_template, redirect, request, url_for, flash from flask_login import login_required, current_user from application import db from .bill_forms import BillForm from ..models import Bill bills_bp = Blueprint('bills', __name__, url_prefix='/user', ...
28.172043
137
0.666794
""" Bills routes """ from flask import Blueprint, render_template, redirect, request, url_for, flash from flask_login import login_required, current_user from application import db from .bill_forms import BillForm from ..models import Bill bills_bp = Blueprint('bills', __name__, url_prefix='/user', ...
0
0
0
1ef83bce037d82916bba554d8f49ad853081e5a7
5,986
py
Python
coherence/upnp/core/soap_service.py
stonewell/Coherence
af7d2dc1224e705d172cee8a15d87f3abcccab2a
[ "MIT" ]
112
2015-01-13T14:50:41.000Z
2022-01-20T08:48:04.000Z
coherence/upnp/core/soap_service.py
stonewell/Coherence
af7d2dc1224e705d172cee8a15d87f3abcccab2a
[ "MIT" ]
14
2015-01-26T21:54:14.000Z
2020-01-19T19:28:52.000Z
coherence/upnp/core/soap_service.py
stonewell/Coherence
af7d2dc1224e705d172cee8a15d87f3abcccab2a
[ "MIT" ]
40
2015-01-01T07:59:25.000Z
2020-05-07T14:54:48.000Z
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2007 - Frank Scholz <coherence@beebits.net> from twisted.web import server, resource from twisted.python import failure from twisted.internet import defer from coherence import log, SERVER_ID from coherence.extern.et impor...
35.630952
105
0.600568
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2007 - Frank Scholz <coherence@beebits.net> from twisted.web import server, resource from twisted.python import failure from twisted.internet import defer from coherence import log, SERVER_ID from coherence.extern.et impor...
2,010
6
215
a0879d95dd3d00d9199837cf041da7dad6c67c02
431
py
Python
setup.py
ptcane/mkdocs-bulma
b40a90369ac273abb5fe45295cceadf5297ec356
[ "MIT" ]
6
2018-05-26T00:51:29.000Z
2021-03-18T18:03:26.000Z
setup.py
ptcane/mkdocs-bulma
b40a90369ac273abb5fe45295cceadf5297ec356
[ "MIT" ]
4
2019-02-28T14:51:24.000Z
2021-05-06T08:31:13.000Z
setup.py
ptcane/mkdocs-bulma
b40a90369ac273abb5fe45295cceadf5297ec356
[ "MIT" ]
10
2018-05-26T00:53:25.000Z
2021-04-03T05:46:27.000Z
from setuptools import setup, find_packages VERSION = "0.0.5" setup( name="mkdocs-bulma", version=VERSION, url="https://github.com/rajasimon/mkdocs-bulma", license="MIT", description="Bulma for mkdocs", author="Raja Simon", author_email="rajasimon@icloud.com", packages=find_packages()...
22.684211
55
0.675174
from setuptools import setup, find_packages VERSION = "0.0.5" setup( name="mkdocs-bulma", version=VERSION, url="https://github.com/rajasimon/mkdocs-bulma", license="MIT", description="Bulma for mkdocs", author="Raja Simon", author_email="rajasimon@icloud.com", packages=find_packages()...
0
0
0
8b2507f349e76a89f6be4354bfaf0a6719ddc192
17,147
py
Python
window.py
Chapsjrl/Genetico2018-2
e1bf4ccb0da422156d8df541be50965c1d79c2b2
[ "MIT" ]
null
null
null
window.py
Chapsjrl/Genetico2018-2
e1bf4ccb0da422156d8df541be50965c1d79c2b2
[ "MIT" ]
null
null
null
window.py
Chapsjrl/Genetico2018-2
e1bf4ccb0da422156d8df541be50965c1d79c2b2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """GUI module generated by PAGE version 4.14. # In conjunction with Tcl version 8.6 # Jun 04, 2018 08:42:31 PM """ import base64 import sys from GaQueens import GaQueens try: from Tkinter import * except ImportError: from tkinter import * try: import ...
39.327982
79
0.619642
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """GUI module generated by PAGE version 4.14. # In conjunction with Tcl version 8.6 # Jun 04, 2018 08:42:31 PM """ import base64 import sys from GaQueens import GaQueens try: from Tkinter import * except ImportError: from tkinter import * try: import ...
3,268
11,677
228
322dda659558109f88d9fdc1b584c49ba748b072
722
py
Python
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin # Register your models here. from apps.medicamento.models import Medicamento #admin.site.register(Medicamento) @admin.register(Medicamento)
45.125
150
0.760388
from django.contrib import admin # Register your models here. from apps.medicamento.models import Medicamento #admin.site.register(Medicamento) @admin.register(Medicamento) class PostAdmin(admin.ModelAdmin): list_display = ('cod_med', 'principio_activo_med', 'nombre_comercial_med', 'nombre_lab_med', 'grupo_med',...
0
525
22
d3468bc4c6b972e250c94b3a6607f2ace5a9fe6c
474
py
Python
mtaa/migrations/0004_auto_20190914_1612.py
macymuhia/My_mtaa
ade06c1d30d8f293963ed09924419e3b3a881dbc
[ "MIT" ]
null
null
null
mtaa/migrations/0004_auto_20190914_1612.py
macymuhia/My_mtaa
ade06c1d30d8f293963ed09924419e3b3a881dbc
[ "MIT" ]
8
2020-06-05T23:02:57.000Z
2022-02-10T12:51:58.000Z
mtaa/migrations/0004_auto_20190914_1612.py
macymuhia/My_mtaa
ade06c1d30d8f293963ed09924419e3b3a881dbc
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-09-14 13:12 from django.db import migrations, models import django.db.models.deletion
23.7
107
0.64135
# Generated by Django 2.2.4 on 2019-09-14 13:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mtaa', '0003_auto_20190914_1607'), ] operations = [ migrations.AlterField( model_name='business...
0
327
23
61f07c63c841bd7eb1642f0876d4c78eff8a1acb
364
py
Python
poker.py
JonLinC07/Poker
f21ea29acb5a9e674c665cf56033471634955e68
[ "MIT" ]
null
null
null
poker.py
JonLinC07/Poker
f21ea29acb5a9e674c665cf56033471634955e68
[ "MIT" ]
null
null
null
poker.py
JonLinC07/Poker
f21ea29acb5a9e674c665cf56033471634955e68
[ "MIT" ]
null
null
null
from Dealer import Dealer from Player import Player dealer = Dealer() player_name = input('Ingrese el nombre del jugador \n|>> ') player = Player(player_name) players = player.make_players() players.append(player) dealer.shuffle() dealer.deal_cards(players) for player in players: print(player) for card ...
17.333333
59
0.722527
from Dealer import Dealer from Player import Player dealer = Dealer() player_name = input('Ingrese el nombre del jugador \n|>> ') player = Player(player_name) players = player.make_players() players.append(player) dealer.shuffle() dealer.deal_cards(players) for player in players: print(player) for card ...
0
0
0
4ba54d1d1cf1debc358b58ec9824ff07dc0b5f88
424
py
Python
3to2-1.0/lib3to2/tests/test_getcwd.py
jrialland/python-brain
1b2b1bc52d068f37283edd4c1528fea5c175fb29
[ "Apache-2.0" ]
6
2015-04-08T11:01:17.000Z
2020-06-25T07:20:16.000Z
3to2-1.0/lib3to2/tests/test_getcwd.py
jrialland/python-brain
1b2b1bc52d068f37283edd4c1528fea5c175fb29
[ "Apache-2.0" ]
1
2018-03-05T17:41:27.000Z
2018-03-05T17:41:27.000Z
3to2-1.0/lib3to2/tests/test_getcwd.py
jrialland/python-brain
1b2b1bc52d068f37283edd4c1528fea5c175fb29
[ "Apache-2.0" ]
3
2017-03-23T15:02:05.000Z
2019-09-18T02:34:43.000Z
from test_all_fixers import lib3to2FixerTestCase
28.266667
55
0.528302
from test_all_fixers import lib3to2FixerTestCase class Test_getcwd(lib3to2FixerTestCase): fixer = u"getcwd" def test_prefix_preservation(self): b = u"""ls = os.listdir( os.getcwd() )""" a = u"""ls = os.listdir( os.getcwdu() )""" self.check(b, a) b = u"""whatdir = os...
283
68
23
bc1a420a889f511f32028279e0393433650fda9a
786
py
Python
CUSTOM-SERVER/50-config.py
tdmorello/omero-docker-compose
6c023615852ead560bbdc86542c3d30e838f3f27
[ "BSD-2-Clause" ]
null
null
null
CUSTOM-SERVER/50-config.py
tdmorello/omero-docker-compose
6c023615852ead560bbdc86542c3d30e838f3f27
[ "BSD-2-Clause" ]
null
null
null
CUSTOM-SERVER/50-config.py
tdmorello/omero-docker-compose
6c023615852ead560bbdc86542c3d30e838f3f27
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # 1. Run .omero files from /opt/omero/server/config/ # 2. Set omero config properties from CONFIG_ envvars # Variable names should replace "." with "_" and "_" with "__" # E.g. CONFIG_omero_web_public_enabled=false import os from subprocess import call from re import sub CONFIG_OMERO = '/...
29.111111
71
0.620865
#!/usr/bin/env python # 1. Run .omero files from /opt/omero/server/config/ # 2. Set omero config properties from CONFIG_ envvars # Variable names should replace "." with "_" and "_" with "__" # E.g. CONFIG_omero_web_public_enabled=false import os from subprocess import call from re import sub CONFIG_OMERO = '/...
0
0
0
4c8808c50b2dd4ec244e24b3a2ff51b5549508b2
8,849
py
Python
gpflux/layers/basis_functions/fourier_features/random.py
tensorlicious/GPflux
8a2c66310b2a43b6259591ee142a29c618ef18be
[ "Apache-2.0" ]
null
null
null
gpflux/layers/basis_functions/fourier_features/random.py
tensorlicious/GPflux
8a2c66310b2a43b6259591ee142a29c618ef18be
[ "Apache-2.0" ]
null
null
null
gpflux/layers/basis_functions/fourier_features/random.py
tensorlicious/GPflux
8a2c66310b2a43b6259591ee142a29c618ef18be
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 The GPflux Contributors. # # 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 agr...
38.641921
100
0.659623
# # Copyright (c) 2021 The GPflux Contributors. # # 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 agr...
2,355
777
185
647e8700e2ff520ca30c729150b246177b55fa27
3,319
py
Python
utils/error_rates.py
grieggs/Ge-ez-HWR
03481f4b24d2c3355d1ff99c2b48671b397ca949
[ "MIT" ]
null
null
null
utils/error_rates.py
grieggs/Ge-ez-HWR
03481f4b24d2c3355d1ff99c2b48671b397ca949
[ "MIT" ]
null
null
null
utils/error_rates.py
grieggs/Ge-ez-HWR
03481f4b24d2c3355d1ff99c2b48671b397ca949
[ "MIT" ]
null
null
null
import editdistance import re
28.86087
54
0.292859
import editdistance import re def g_families(in_str): families = {"hoy" : ["ሀ","ሁ","ሂ","ሃ","ሄ","ህ","ሆ"], "lawe":["ለ","ሉ","ሊ","ላ","ሌ","ል","ሎ","ሏ"], "hawt" : ["ሐ","ሑ","ሒ","ሓ","ሔ","ሕ","ሖ","ሗ"], "may" : ["መ","ሙ","ሚ","ማ","ሜ","ም","ሞ","ሟ","ፙ"], "sawt" : ["ሠ","ሡ","ሢ","ሣ","ሤ","ሥ","ሦ","ሧ"], "res" : ["ረ"...
3,679
0
115
39a07c09f6024565b3147c8504611623c2108b19
75
py
Python
tests/__init__.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
tests/__init__.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
tests/__init__.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import os TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
18.75
63
0.746667
import os TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
0
0
0
b0bb9262cf421e6c6ef21d8135a4ed13a6df9c0c
2,484
py
Python
Chapter07/Ch7.AmazonSP.py
AcornPublishing/keras-projects
1a8486a375af3bacf9aa78e93c9fc1736ac16d52
[ "MIT" ]
null
null
null
Chapter07/Ch7.AmazonSP.py
AcornPublishing/keras-projects
1a8486a375af3bacf9aa78e93c9fc1736ac16d52
[ "MIT" ]
null
null
null
Chapter07/Ch7.AmazonSP.py
AcornPublishing/keras-projects
1a8486a375af3bacf9aa78e93c9fc1736ac16d52
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt np.random.seed(3) Data = pd.read_csv('AMZN.csv',header=0, usecols=['Date', 'Close'],parse_dates=True,index_col='Date') print(Data.info()) print(Data.head()) print(Data.describe()) plt.figure(figsize=(10,5)) plt.plot(Data) plt.show() DataPCh = D...
25.875
78
0.73591
import numpy as np import pandas as pd import matplotlib.pyplot as plt np.random.seed(3) Data = pd.read_csv('AMZN.csv',header=0, usecols=['Date', 'Close'],parse_dates=True,index_col='Date') print(Data.info()) print(Data.head()) print(Data.describe()) plt.figure(figsize=(10,5)) plt.plot(Data) plt.show() DataPCh = D...
260
0
23
7f50763a80caa2b617b0e496c76ddba132736dd1
752
py
Python
tpu_main.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
90
2018-11-29T07:05:16.000Z
2021-11-22T11:32:58.000Z
tpu_main.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
50
2019-06-27T07:11:18.000Z
2022-02-10T00:01:02.000Z
tpu_main.py
lanSeFangZhou/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
[ "Apache-2.0" ]
23
2019-01-03T14:57:15.000Z
2022-03-08T07:50:33.000Z
from seq2annotation.trainer.train_model import train_model from seq2annotation.algorithms.BiLSTM_CRF_model import BilstmCrfModel from seq2annotation.algorithms.IDCNN_CRF_model import IdcnnCrfModel # train_model(data_dir='./data', result_dir='./result', model_fn=IdcnnCrfModel.model_fn, **IdcnnCrfModel.default_params()...
30.08
122
0.692819
from seq2annotation.trainer.train_model import train_model from seq2annotation.algorithms.BiLSTM_CRF_model import BilstmCrfModel from seq2annotation.algorithms.IDCNN_CRF_model import IdcnnCrfModel # train_model(data_dir='./data', result_dir='./result', model_fn=IdcnnCrfModel.model_fn, **IdcnnCrfModel.default_params()...
0
0
0
b1de41b00c9777f9ef77d27cf37128daac1c1eae
2,301
py
Python
src/m6_your_turtles.py
jasminescott18/01-IntroductionToPython
ab3daadd9be0651cc42fff6323647b067c15b134
[ "MIT" ]
null
null
null
src/m6_your_turtles.py
jasminescott18/01-IntroductionToPython
ab3daadd9be0651cc42fff6323647b067c15b134
[ "MIT" ]
null
null
null
src/m6_your_turtles.py
jasminescott18/01-IntroductionToPython
ab3daadd9be0651cc42fff6323647b067c15b134
[ "MIT" ]
null
null
null
""" Your chance to explore Loops and Turtles! Authors: David Mutchler, Dave Fisher, Vibha Alangar, Amanda Stouder, their colleagues and Jasmine Scott """ ############################################################################### # COMPLETED: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your ...
30.68
79
0.611039
""" Your chance to explore Loops and Turtles! Authors: David Mutchler, Dave Fisher, Vibha Alangar, Amanda Stouder, their colleagues and Jasmine Scott """ ############################################################################### # COMPLETED: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your ...
0
0
0
6a2930c078c01007b8afaabbbd8918a486f730c7
363
py
Python
1_PythonDataProcessing/4_18_read_csv_parse_dates.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
1_PythonDataProcessing/4_18_read_csv_parse_dates.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
1_PythonDataProcessing/4_18_read_csv_parse_dates.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
import pandas as pd # Load dataset https://storage.googleapis.com/dqlab-dataset/LO4/global_air_quality_4000rows.csv gaq = pd.read_csv('https://storage.googleapis.com/dqlab-dataset/LO4/global_air_quality_4000rows.csv', parse_dates=True, index_col='timestamp') # Cetak 5 data teratas print(gaq.head()) # Cetak info dari da...
45.375
142
0.793388
import pandas as pd # Load dataset https://storage.googleapis.com/dqlab-dataset/LO4/global_air_quality_4000rows.csv gaq = pd.read_csv('https://storage.googleapis.com/dqlab-dataset/LO4/global_air_quality_4000rows.csv', parse_dates=True, index_col='timestamp') # Cetak 5 data teratas print(gaq.head()) # Cetak info dari da...
0
0
0
fcb53cd4210d941389826d9bb52da3658b50b8ce
7,714
py
Python
bugbane/tools/send/dd_api/official_customized.py
gardatech/bugbane
b19a2c28732697ce7fd277f4256d14c307900678
[ "Apache-2.0" ]
9
2022-02-14T11:21:06.000Z
2022-03-21T22:06:06.000Z
bugbane/tools/send/dd_api/official_customized.py
gardatech/bugbane
b19a2c28732697ce7fd277f4256d14c307900678
[ "Apache-2.0" ]
4
2022-02-21T09:45:27.000Z
2022-03-14T14:09:52.000Z
bugbane/tools/send/dd_api/official_customized.py
gardatech/bugbane
b19a2c28732697ce7fd277f4256d14c307900678
[ "Apache-2.0" ]
1
2022-03-14T13:56:37.000Z
2022-03-14T13:56:37.000Z
# Copyright 2022 Garda Technologies, LLC. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.378109
87
0.525668
# Copyright 2022 Garda Technologies, LLC. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
248
6,227
71
4e35d75032ed2762b5cce0ddc64ea4ee177879df
10,527
py
Python
codes/dgmpm_stability/2Dcomparison_random.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2021-06-18T14:52:03.000Z
2021-06-18T14:52:03.000Z
codes/dgmpm_stability/2Dcomparison_random.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2019-01-07T13:11:11.000Z
2019-01-07T13:11:11.000Z
codes/dgmpm_stability/2Dcomparison_random.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np from scipy import optimize from sympy import * import matplotlib.pyplot as plt import random import pdb import os # Symbolic function to evaluate shape functions shape_functions=lambda x,y: np.array([(1.-x)*(1.-y)/4.,(1.+x)*(1.-y)/4.,(1.+x)*(1.+y)/4.,(1.-x)*(1.+y)/4.]) grad_xi=la...
37.066901
158
0.588582
#!/usr/bin/python import numpy as np from scipy import optimize from sympy import * import matplotlib.pyplot as plt import random import pdb import os def export2DTeXFile(fileName,xField,fields,*kwargs): TeXFile=open(fileName,"w") n_fields = np.shape(fields)[0] n_labels = np.shape(kwargs)[0] # Define ...
6,837
0
115
8e8a2eb679aeb3ae22f2f3709ecb4bbc7bc8cd46
3,261
py
Python
src/test/conftest.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/conftest.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/conftest.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name,no-member import json import os import shutil import subprocess import time import pytest from parse import parse from sqlalchemy import create_engine from alembic_utils.testbase import TEST_VERSIONS_ROOT, reset_event_listener_registry PYTEST_DB = "postgresql://alem_user:passw...
26.950413
88
0.592763
# pylint: disable=redefined-outer-name,no-member import json import os import shutil import subprocess import time import pytest from parse import parse from sqlalchemy import create_engine from alembic_utils.testbase import TEST_VERSIONS_ROOT, reset_event_listener_registry PYTEST_DB = "postgresql://alem_user:passw...
426
0
27
dff4f076230460df34341907153dd1c94b54a8a1
239
py
Python
env/script/python_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
env/script/python_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
env/script/python_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import dotenv # 打印系统信息 print("Python %s on %s" % (sys.version, sys.platform)) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) # 导入环境变量 dotenv.load_dotenv(dotenv_path=PROJECT_ROOT + "/env/dc_dev.env")
18.384615
64
0.719665
# -*- coding: utf-8 -*- import sys import dotenv # 打印系统信息 print("Python %s on %s" % (sys.version, sys.platform)) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) # 导入环境变量 dotenv.load_dotenv(dotenv_path=PROJECT_ROOT + "/env/dc_dev.env")
0
0
0
d765d8e2258ab69e90c67075674e072f5706b65f
1,295
py
Python
repoman/signature.py
jsoriano/python-repoman
308c141ce7177238c70f78facf1fc2642cf485aa
[ "Apache-2.0" ]
6
2015-08-10T09:42:55.000Z
2021-11-08T10:26:02.000Z
repoman/signature.py
jsoriano/python-repoman
308c141ce7177238c70f78facf1fc2642cf485aa
[ "Apache-2.0" ]
11
2017-08-28T17:38:24.000Z
2019-05-31T12:49:31.000Z
repoman/signature.py
jsoriano/python-repoman
308c141ce7177238c70f78facf1fc2642cf485aa
[ "Apache-2.0" ]
7
2015-02-14T16:15:41.000Z
2021-09-29T09:53:26.000Z
#!/usr/bin/env python # # Copyright 2014 Tuenti Technologies S.L. # # 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 app...
26.428571
74
0.649421
#!/usr/bin/env python # # Copyright 2014 Tuenti Technologies S.L. # # 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 app...
436
191
23
f0e08aab4dd3fdb3c99ddb4779230554bbc7482d
12,546
py
Python
app/api/tests/test_pool.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/api/tests/test_pool.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/api/tests/test_pool.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
from django.test import tag from test import cases as case from test import fixtures as data @tag('pool')
40.340836
198
0.403794
from django.test import tag from test import cases as case from test import fixtures as data @tag('pool') class PoolTest(case.APITestCase, metaclass = case.MetaAPISchema): fixtures = data.get_category_fixtures() schema = { 'object': { 'tags': ('pool_object',), '&HCATS_1': (...
395
12,020
22
575da1aa4f49004db0d40f9f3a5e6c15334882ed
272
py
Python
base/fork_test.py
victor999999/play_python
e3d777a3c7f000206ac69765bf27d3f38812e274
[ "MIT" ]
null
null
null
base/fork_test.py
victor999999/play_python
e3d777a3c7f000206ac69765bf27d3f38812e274
[ "MIT" ]
null
null
null
base/fork_test.py
victor999999/play_python
e3d777a3c7f000206ac69765bf27d3f38812e274
[ "MIT" ]
null
null
null
import os from time import sleep print('***********************') a = 1 pid = os.fork() if pid < 0: print("创建进程失败") elif pid == 0: print('这是新的进程') print("a =",a) a = 10000 else: sleep(1) print("这是原有进程") print("psarent a =",a) print("演示完毕")
12.952381
32
0.5
import os from time import sleep print('***********************') a = 1 pid = os.fork() if pid < 0: print("创建进程失败") elif pid == 0: print('这是新的进程') print("a =",a) a = 10000 else: sleep(1) print("这是原有进程") print("psarent a =",a) print("演示完毕")
0
0
0
cc5ce244934e2fbe53fde388a5e411e3b23b1335
567
py
Python
pyglet-gui-master/tests/runtests.py
jorvasquezr/IA_ChessGame_Solver
976e8098feb53bc033a8a7b11475e4d5405db56b
[ "MIT" ]
52
2015-04-18T20:45:52.000Z
2021-11-21T14:50:10.000Z
pyglet-gui-master/tests/runtests.py
jorvasquezr/IA_ChessGame_Solver
976e8098feb53bc033a8a7b11475e4d5405db56b
[ "MIT" ]
8
2015-06-14T19:35:55.000Z
2018-06-29T13:52:28.000Z
tests/runtests.py
jorgecarleitao/pyglet-gui
20ec4b335c9af3698dfa8328894544d4d0417973
[ "BSD-3-Clause" ]
21
2015-07-22T16:21:11.000Z
2021-09-23T09:37:43.000Z
import glob import os import unittest import sys if __name__ == "__main__": suite = build_test_suite() runner = unittest.TextTestRunner() result = runner.run(suite) sys.exit(not result.wasSuccessful())
23.625
72
0.659612
import glob import os import unittest import sys def build_test_suite(): suite = unittest.TestSuite() for test_case in glob.glob('tests/test_*.py'): modname = os.path.splitext(test_case)[0] modname = modname.replace('/', '.') module = __import__(modname, {}, {}, ['1']) suite.ad...
323
0
23
6a770b59826299201618e3ab24fef6c1130fc5fa
3,159
py
Python
builder/frameworks/arduino/arduino-common.py
Niruyi/platform-senseboxsam
32617df06332b0631609c043a5ba0703e96fda9e
[ "Apache-2.0" ]
null
null
null
builder/frameworks/arduino/arduino-common.py
Niruyi/platform-senseboxsam
32617df06332b0631609c043a5ba0703e96fda9e
[ "Apache-2.0" ]
null
null
null
builder/frameworks/arduino/arduino-common.py
Niruyi/platform-senseboxsam
32617df06332b0631609c043a5ba0703e96fda9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
27.710526
91
0.608737
# Copyright 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
0
0
0
1756d64f7ac98d743a36980cccd531b6a44525f4
4,170
py
Python
Data_Production/full_LHCO_wrangler.py
pwinslow/Lepton-Number-Violation-at-100-TeV
e697142e8e1222a423d1e7bd1ea1e65d1b6f94b8
[ "MIT" ]
null
null
null
Data_Production/full_LHCO_wrangler.py
pwinslow/Lepton-Number-Violation-at-100-TeV
e697142e8e1222a423d1e7bd1ea1e65d1b6f94b8
[ "MIT" ]
null
null
null
Data_Production/full_LHCO_wrangler.py
pwinslow/Lepton-Number-Violation-at-100-TeV
e697142e8e1222a423d1e7bd1ea1e65d1b6f94b8
[ "MIT" ]
null
null
null
#!/usr/bin/python ##################################################################################################################################### # # # The purpose of this script is to collect data generated from parallel computation of parton level cross sections into one # # dat file. T...
36.578947
157
0.656835
#!/usr/bin/python ##################################################################################################################################### # # # The purpose of this script is to collect data generated from parallel computation of parton level cross sections into one # # dat file. T...
0
0
0
cd45bbf4d6328c07ba9b9fafbbd06f49720255b5
252
py
Python
scheduler/SubModels/schedulingAndUsage.py
shreya2592/ResourceNinja
553f0d54a294700710ee9ced67f13a71f82fad76
[ "MIT" ]
null
null
null
scheduler/SubModels/schedulingAndUsage.py
shreya2592/ResourceNinja
553f0d54a294700710ee9ced67f13a71f82fad76
[ "MIT" ]
null
null
null
scheduler/SubModels/schedulingAndUsage.py
shreya2592/ResourceNinja
553f0d54a294700710ee9ced67f13a71f82fad76
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone
28
49
0.785714
from django.db import models from django.utils import timezone class schedulingAndUsage(models.Model): machineStatus=models.CharField(max_length=50) time=models.DateTimeField() date=models.DateTimeField() laborID=models.IntegerField()
0
166
23
f4c0876f67f202919fe4d69469a2fbfed191908a
14,012
py
Python
chemreader/readers/basereader.py
thomasly/chemreader
409508d3145413b99066324c4f9334735f68cff4
[ "MIT" ]
1
2020-04-24T04:24:11.000Z
2020-04-24T04:24:11.000Z
chemreader/readers/basereader.py
thomasly/chemreader
409508d3145413b99066324c4f9334735f68cff4
[ "MIT" ]
null
null
null
chemreader/readers/basereader.py
thomasly/chemreader
409508d3145413b99066324c4f9334735f68cff4
[ "MIT" ]
1
2020-04-24T04:24:15.000Z
2020-04-24T04:24:15.000Z
import os from copy import deepcopy from abc import ABCMeta, abstractmethod, abstractproperty import numpy as np import pandas as pd from rdkit import Chem from rdkit.Chem.Descriptors import ExactMolWt from rdkit.Chem import AllChem from rdkit import DataStructs from scipy import sparse as sp from ..utils.tools impor...
32.360277
88
0.56994
import os from copy import deepcopy from abc import ABCMeta, abstractmethod, abstractproperty import numpy as np import pandas as pd from rdkit import Chem from rdkit.Chem.Descriptors import ExactMolWt from rdkit.Chem import AllChem from rdkit import DataStructs from scipy import sparse as sp from ..utils.tools impor...
3,387
8,570
99
d7ffcee15a996978d3c096439336ad48cfbfa2f9
7,400
py
Python
pyfiles/AutoDetectCircle.py
Rylu12/CircleD
d275d7804acd460f4ad13b9ee9342976df900fee
[ "MIT" ]
25
2020-02-27T18:34:30.000Z
2022-03-03T01:24:33.000Z
pyfiles/AutoDetectCircle.py
Rylu12/CircleD
d275d7804acd460f4ad13b9ee9342976df900fee
[ "MIT" ]
null
null
null
pyfiles/AutoDetectCircle.py
Rylu12/CircleD
d275d7804acd460f4ad13b9ee9342976df900fee
[ "MIT" ]
4
2020-03-04T00:16:50.000Z
2020-07-01T05:19:25.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt import pandas as pd import openpyxl #Get pixel/distance (using ImageJ software) to output actual diameters of circles dp = 1 accum_ratio = 1 min_dist = 5 p1 = 40 p2 = 30 minDiam = 1 maxDiam = 30 scalebar = 10 min_range = 0 max_range = 100 intervals = 10 ra...
33.944954
124
0.597568
import cv2 import numpy as np import matplotlib.pyplot as plt import pandas as pd import openpyxl #Get pixel/distance (using ImageJ software) to output actual diameters of circles dp = 1 accum_ratio = 1 min_dist = 5 p1 = 40 p2 = 30 minDiam = 1 maxDiam = 30 scalebar = 10 min_range = 0 max_range = 100 intervals = 10 ra...
6,781
0
138
1e119287bd02cbf67397abfc87053e83d67df483
2,801
py
Python
scripts/fit_whitepoint_matrices.py
99991/foreground-estimation-evaluation
d13bb0657df502e32da18235beb984bacaa50591
[ "MIT" ]
1
2021-01-04T15:57:07.000Z
2021-01-04T15:57:07.000Z
scripts/fit_whitepoint_matrices.py
99991/foreground-estimation-evaluation
d13bb0657df502e32da18235beb984bacaa50591
[ "MIT" ]
1
2021-01-05T16:44:22.000Z
2021-02-11T10:10:19.000Z
scripts/fit_whitepoint_matrices.py
pymatting/foreground-estimation-evaluation
d13bb0657df502e32da18235beb984bacaa50591
[ "MIT" ]
null
null
null
import numpy as np import os, json, util if __name__ == "__main__": fit_whitepoint_matrices(util.find_data_directory())
31.122222
84
0.584791
import numpy as np import os, json, util def fit_whitepoint_matrices(directory, gamma=2.0): output_path = os.path.join(directory, "whitepoint_matrices.json") matrices = {} print("Computing whitepoint transform matrices") # fit matrix M to transform from have_lrgb to want_lrgb in least square sense ...
2,651
0
23
23f666b829e24c0e1320d1419f4dd8b48e8097c9
776
py
Python
collection/models.py
sohdas/sohdas.github.io
ea8ca4c32f07ec9855792253f92fa77d0922ab65
[ "MIT" ]
2
2018-11-06T03:28:52.000Z
2018-11-08T03:35:28.000Z
collection/models.py
sohdas/sohdas.github.io
ea8ca4c32f07ec9855792253f92fa77d0922ab65
[ "MIT" ]
12
2018-11-27T04:45:21.000Z
2019-03-23T00:53:56.000Z
collection/models.py
sohdas/sohdas.github.io
ea8ca4c32f07ec9855792253f92fa77d0922ab65
[ "MIT" ]
1
2020-02-01T16:13:24.000Z
2020-02-01T16:13:24.000Z
from django.db import models from django.conf import settings
38.8
96
0.713918
from django.db import models from django.conf import settings class Shelf(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete = models.CASCADE, default = 1) shelf_name = models.CharField(max_length = 100) shelf_size = models.PositiveIntegerField(default = 0) def __str__(s...
58
602
48
7c19be2e05b9c3b06671bdeb178f870193035964
319
py
Python
pdc/pdc/serial/comm_protocol.py
sergiorb/pdc
0337daf7fd63e5a226af12aacfd502a3aac294d9
[ "MIT" ]
null
null
null
pdc/pdc/serial/comm_protocol.py
sergiorb/pdc
0337daf7fd63e5a226af12aacfd502a3aac294d9
[ "MIT" ]
null
null
null
pdc/pdc/serial/comm_protocol.py
sergiorb/pdc
0337daf7fd63e5a226af12aacfd502a3aac294d9
[ "MIT" ]
null
null
null
# Inital char for detecting incoming order's String. INITIALCHAR = '$' # Separates order string from device id. IDENTIFIERCHART = ":" # Device Id and function separator in order's String. DEFUSEPARATOR = '/' # Variable separator VARSEPARATOR = '&' # Final char for detecting the final order's string. STOPCHAR = ';'
22.785714
53
0.730408
# Inital char for detecting incoming order's String. INITIALCHAR = '$' # Separates order string from device id. IDENTIFIERCHART = ":" # Device Id and function separator in order's String. DEFUSEPARATOR = '/' # Variable separator VARSEPARATOR = '&' # Final char for detecting the final order's string. STOPCHAR = ';'
0
0
0
e2c3ae6efbddb1f0fe22e850b0bf384c5b3ddac8
616
py
Python
randutils/__init__.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
1
2021-08-03T17:34:31.000Z
2021-08-03T17:34:31.000Z
randutils/__init__.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
randutils/__init__.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
from .chance import by_chance # noqa from .django import get_random_instance # noqa from .django import get_random_instances # noqa from .exceptions import EmptyListError # noqa from .exceptions import NoObjectsError # noqa from .generate import randint # noqa from .generate import random_birthday # noqa from .g...
41.066667
48
0.795455
from .chance import by_chance # noqa from .django import get_random_instance # noqa from .django import get_random_instances # noqa from .exceptions import EmptyListError # noqa from .exceptions import NoObjectsError # noqa from .generate import randint # noqa from .generate import random_birthday # noqa from .g...
0
0
0
baebb54a9b0f1bdd510ed77f643816b01fa3ea33
32,743
py
Python
registrations/tests.py
praekeltfoundation/nurseconnect-registration
e8ec0a242d41bb80c75a976969dacb39b873761c
[ "BSD-3-Clause" ]
null
null
null
registrations/tests.py
praekeltfoundation/nurseconnect-registration
e8ec0a242d41bb80c75a976969dacb39b873761c
[ "BSD-3-Clause" ]
7
2019-04-11T08:13:48.000Z
2021-06-10T17:46:39.000Z
registrations/tests.py
praekeltfoundation/nurseconnect-registration
e8ec0a242d41bb80c75a976969dacb39b873761c
[ "BSD-3-Clause" ]
1
2019-11-25T09:27:16.000Z
2019-11-25T09:27:16.000Z
import json import uuid from datetime import datetime from unittest import mock from urllib.parse import urlencode import responses from django.contrib.messages import get_messages from django.test import TestCase from django.urls import reverse from registrations.forms import RegistrationDetailsForm from registratio...
37.420571
88
0.554317
import json import uuid from datetime import datetime from unittest import mock from urllib.parse import urlencode import responses from django.contrib.messages import get_messages from django.test import TestCase from django.urls import reverse from registrations.forms import RegistrationDetailsForm from registratio...
0
32,192
92
ac03bbe228ac3b2173aa9a8e83fe86907dfacbc4
3,070
py
Python
Hubitat Presence from Unifi/Unifi-Presence.py
cesquib/python-scripts
bd1a56d8814debc8afcaf31ac3c8d447704f5ff1
[ "MIT" ]
null
null
null
Hubitat Presence from Unifi/Unifi-Presence.py
cesquib/python-scripts
bd1a56d8814debc8afcaf31ac3c8d447704f5ff1
[ "MIT" ]
null
null
null
Hubitat Presence from Unifi/Unifi-Presence.py
cesquib/python-scripts
bd1a56d8814debc8afcaf31ac3c8d447704f5ff1
[ "MIT" ]
null
null
null
#imports import csv import json import requests import requests.utils import requests.sessions import urllib3 import sys import traceback import configparser import logging from urllib3.exceptions import InsecureRequestWarning urllib3.disable_warnings(InsecureRequestWarning) logging.basicConfig(format='%(levelname)s...
35.697674
171
0.671987
#imports import csv import json import requests import requests.utils import requests.sessions import urllib3 import sys import traceback import configparser import logging from urllib3.exceptions import InsecureRequestWarning urllib3.disable_warnings(InsecureRequestWarning) logging.basicConfig(format='%(levelname)s...
2,491
0
123
4bccd7428316015be16c38509ae34fe303dc319d
1,812
py
Python
bip32utils/Base58.py
lyndsysimon/bip32utils
56f5a56d1c54e648f35b670a87efabbca08fffae
[ "MIT" ]
40
2017-09-05T21:34:05.000Z
2022-03-22T01:03:24.000Z
bip32utils/Base58.py
deployed/bip32utils
85c46714b580978da396d7984c466ec14e15b675
[ "MIT" ]
1
2019-08-13T11:55:32.000Z
2019-08-13T12:07:05.000Z
bip32utils/Base58.py
deployed/bip32utils
85c46714b580978da396d7984c466ec14e15b675
[ "MIT" ]
20
2017-05-27T19:27:49.000Z
2022-02-05T10:04:34.000Z
#!/usr/bin/env python # # Copyright 2014 Corgan Labs # See LICENSE.txt for distribution terms # from hashlib import sha256 __base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' __base58_radix = len(__base58_alphabet) def __string_to_int(data): "Convert string of bytes Python integer, ...
25.521127
81
0.639625
#!/usr/bin/env python # # Copyright 2014 Corgan Labs # See LICENSE.txt for distribution terms # from hashlib import sha256 __base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' __base58_radix = len(__base58_alphabet) def __string_to_int(data): "Convert string of bytes Python integer, ...
0
0
0
e68b75a7178eff6526f15122e0220fdc0f0ab014
2,078
py
Python
tests/test_iterators.py
johnnoone/aiodisque
afb6851ac907783a69b4b2e5c09456ae48a1faba
[ "MIT" ]
null
null
null
tests/test_iterators.py
johnnoone/aiodisque
afb6851ac907783a69b4b2e5c09456ae48a1faba
[ "MIT" ]
null
null
null
tests/test_iterators.py
johnnoone/aiodisque
afb6851ac907783a69b4b2e5c09456ae48a1faba
[ "MIT" ]
null
null
null
import pytest from aiodisque import Disque, Job from aiodisque.iterators import JobsIterator @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio
28.861111
80
0.622714
import pytest from aiodisque import Disque, Job from aiodisque.iterators import JobsIterator @pytest.mark.asyncio async def test_queues(node, event_loop): client = Disque(node.port, loop=event_loop) expected = set() for i in range(0, 256): res = await client.addjob('q', 'job-%s' % i, 5000, replica...
1,805
0
88
ffe22a8de5457916618077063b2da92df6b4ce0b
6,009
py
Python
Yatube/hw05_final/posts/tests/test_views.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
Yatube/hw05_final/posts/tests/test_views.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
Yatube/hw05_final/posts/tests/test_views.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
import os from shutil import rmtree from uuid import uuid1 from django.conf import settings from django.core.cache import cache from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase, Client from django.urls import reverse from posts.models import Post, Group, User, Comment
38.273885
79
0.587951
import os from shutil import rmtree from uuid import uuid1 from django.conf import settings from django.core.cache import cache from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase, Client from django.urls import reverse from posts.models import Post, Group, User, Comment c...
0
5,668
23
2d9a451ecbb99e4ca2b66ca8136964aa76800625
1,291
py
Python
P1.Outliers/Ex1. Code.py
khaledxmust/Statistical-Projects
2aa832a13f9d9ee9e21db7ea12b151b092baa86a
[ "MIT" ]
null
null
null
P1.Outliers/Ex1. Code.py
khaledxmust/Statistical-Projects
2aa832a13f9d9ee9e21db7ea12b151b092baa86a
[ "MIT" ]
null
null
null
P1.Outliers/Ex1. Code.py
khaledxmust/Statistical-Projects
2aa832a13f9d9ee9e21db7ea12b151b092baa86a
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt data = np.loadtxt('Data1.txt') dataset = pd.DataFrame({'No.':data[:]}) dataset.sort_values('No.',inplace=True) dataset.hist(bins=50) # Exploring data plt.show() dataset.boxplot(vert=False) plt.show() Q1=np.percentile(dataset, [25]) #...
30.738095
68
0.62897
import numpy as np import pandas as pd import matplotlib.pyplot as plt data = np.loadtxt('Data1.txt') dataset = pd.DataFrame({'No.':data[:]}) dataset.sort_values('No.',inplace=True) dataset.hist(bins=50) # Exploring data plt.show() dataset.boxplot(vert=False) plt.show() Q1=np.percentile(dataset, [25]) #...
0
0
0
9ce6a950623dfbf3e3a314b5f2f838f2509e8d15
1,455
py
Python
utilities/point_manipulation.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
utilities/point_manipulation.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
utilities/point_manipulation.py
vibinash/vision
7d775d6a877412c963965ecca2eea71ee2def007
[ "MIT" ]
null
null
null
import cv2 import numpy as np
30.3125
67
0.588316
import cv2 import numpy as np def order_points(pts): # Initialize a rectangular result list in this order # (top-left, top-right, bottom-right, bottom-left) result = np.zeros((4,2), dtype='float32') # find the top-left and bottom-right s = pts.sum(axis=1) result[0] = pts[np.argmin(s)] res...
1,379
0
46
7c671ba8bfb5fabe18275bc55ac690769709901e
1,416
py
Python
ROAR/planning_module/local_planner/local_planner.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
18
2020-10-16T00:38:55.000Z
2022-03-03T06:01:49.000Z
ROAR/planning_module/local_planner/local_planner.py
Jaish567/ROAR
75b0bc819abbe676f518070da3fa8043422c7cb7
[ "Apache-2.0" ]
20
2020-07-23T03:50:50.000Z
2021-11-09T04:00:26.000Z
ROAR/planning_module/local_planner/local_planner.py
Jaish567/ROAR
75b0bc819abbe676f518070da3fa8043422c7cb7
[ "Apache-2.0" ]
140
2019-11-20T22:46:02.000Z
2022-03-29T13:26:17.000Z
from abc import abstractmethod from ROAR.planning_module.abstract_planner import AbstractPlanner from ROAR.control_module.controller import Controller from ROAR.planning_module.behavior_planner.behavior_planner import BehaviorPlanner from ROAR.planning_module.mission_planner.mission_planner import MissionPlanner from t...
32.930233
82
0.68291
from abc import abstractmethod from ROAR.planning_module.abstract_planner import AbstractPlanner from ROAR.control_module.controller import Controller from ROAR.planning_module.behavior_planner.behavior_planner import BehaviorPlanner from ROAR.planning_module.mission_planner.mission_planner import MissionPlanner from t...
821
135
23
97da7aec4eb5fdc0db5ef2ecdb8ecc9a5b223165
15,172
py
Python
preprocess_recovered_hormuud_messages.py
AfricasVoices/Project-RVI-Election
78c88e98584e89330bb286ca01c32c1ae03c88eb
[ "MIT" ]
null
null
null
preprocess_recovered_hormuud_messages.py
AfricasVoices/Project-RVI-Election
78c88e98584e89330bb286ca01c32c1ae03c88eb
[ "MIT" ]
2
2022-03-07T10:03:20.000Z
2022-03-15T11:45:32.000Z
preprocess_recovered_hormuud_messages.py
AfricasVoices/Project-RVI-Election
78c88e98584e89330bb286ca01c32c1ae03c88eb
[ "MIT" ]
null
null
null
import argparse import csv import re from datetime import datetime, timedelta from decimal import Decimal import pytz from core_data_modules.logging import Logger from dateutil.parser import isoparse from rapid_pro_tools.rapid_pro_client import RapidProClient from storage.google_cloud import google_cloud_utils log = ...
54.971014
124
0.680925
import argparse import csv import re from datetime import datetime, timedelta from decimal import Decimal import pytz from core_data_modules.logging import Logger from dateutil.parser import isoparse from rapid_pro_tools.rapid_pro_client import RapidProClient from storage.google_cloud import google_cloud_utils log = ...
3,788
0
46
f44356cc7275597e8fb3e5cb12dc91edf393188f
11,478
py
Python
platform/polycommon/tests/test_conf/test_option_service.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
platform/polycommon/tests/test_conf/test_option_service.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
platform/polycommon/tests/test_conf/test_option_service.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
33.858407
88
0.688796
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
8,164
1,677
686
bad371a5670df77a6cc1c85725b2410b85c36255
210
py
Python
tests/conftest.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
4
2020-03-01T14:01:48.000Z
2021-02-23T19:33:36.000Z
tests/conftest.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
1
2021-05-09T15:47:17.000Z
2021-05-09T16:12:03.000Z
tests/conftest.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
null
null
null
try: import ROOT except ImportError: collect_ignore_glob = ["*/root/*"] # otherwise will have problems either with tox, # or when executing pytest directly collect_ignore_glob += ["root/*"]
26.25
51
0.680952
try: import ROOT except ImportError: collect_ignore_glob = ["*/root/*"] # otherwise will have problems either with tox, # or when executing pytest directly collect_ignore_glob += ["root/*"]
0
0
0
40cab5c47f0af4516f0ed2cdf6a7aaed78088be1
1,013
py
Python
leave/migrations/0005_auto_20211121_0757.py
PriyanshBordia/LNMIIT-Leave-Management
279464f4c3e3103d4edadc161f5efa027bca9bbd
[ "MIT" ]
1
2022-03-06T19:39:10.000Z
2022-03-06T19:39:10.000Z
leave/migrations/0005_auto_20211121_0757.py
PriyanshBordia/LNMIIT-Leave-Management-System
279464f4c3e3103d4edadc161f5efa027bca9bbd
[ "MIT" ]
null
null
null
leave/migrations/0005_auto_20211121_0757.py
PriyanshBordia/LNMIIT-Leave-Management-System
279464f4c3e3103d4edadc161f5efa027bca9bbd
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-21 07:57 from django.db import migrations, models
34.931034
305
0.615992
# Generated by Django 3.2.9 on 2021-11-21 07:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leave', '0004_rename_reschedules_date_application_rescheduled_date'), ] operations = [ migrations.AddField( model_name='person',...
0
899
23
f9d790a69517924bbd6d8395aea26be9e72e920b
9,475
py
Python
humpday/objectives/classic.py
MDCHAMP/humpday
45e2cea95ae951d991ebc6c1e98314cc8c726f25
[ "MIT" ]
53
2021-02-13T01:17:02.000Z
2022-03-16T10:07:29.000Z
humpday/objectives/classic.py
MDCHAMP/humpday
45e2cea95ae951d991ebc6c1e98314cc8c726f25
[ "MIT" ]
16
2021-02-13T17:42:06.000Z
2022-03-06T10:08:50.000Z
humpday/objectives/classic.py
MDCHAMP/humpday
45e2cea95ae951d991ebc6c1e98314cc8c726f25
[ "MIT" ]
12
2020-12-09T03:16:22.000Z
2022-02-23T09:34:00.000Z
import numpy as np import math from humpday.objectives.deapobjectives import schwefel, schaffer, bohachevsky, griewank, rastrigin, shekel, rosenbrock # Some test objective functions to help guide optimizer choices # ------------------------------------------------------------- # # We'll use DEAP's set of groovy benchm...
34.9631
136
0.640633
import numpy as np import math from humpday.objectives.deapobjectives import schwefel, schaffer, bohachevsky, griewank, rastrigin, shekel, rosenbrock # Some test objective functions to help guide optimizer choices # ------------------------------------------------------------- # # We'll use DEAP's set of groovy benchm...
4,902
0
598
0e63b5b14e70e5be11aca2384a303bb7c76120bf
1,964
py
Python
packages/routines/database_saver.py
robmanganelly/PyJournal
dcf0e6e69a62ad5c6019b099104ae64880825814
[ "MIT" ]
1
2021-02-02T03:58:56.000Z
2021-02-02T03:58:56.000Z
packages/routines/database_saver.py
rlothbrock/PyJournal
e44bca524c46364a6931375d8ac3ab8b90f71ad2
[ "MIT" ]
null
null
null
packages/routines/database_saver.py
rlothbrock/PyJournal
e44bca524c46364a6931375d8ac3ab8b90f71ad2
[ "MIT" ]
null
null
null
import datetime import os import shutil from packages.dialogs.auxiliar_dialogs import selfCloseInterface
38.509804
89
0.513238
import datetime import os import shutil from packages.dialogs.auxiliar_dialogs import selfCloseInterface def database_saver_routine(self, silent=False): database_name, saving_date, suffix = self.status.get("connected_to").split('.')[0], \ datetime.datetime.now().__str__()...
1,834
0
23
4bf1ae882642f3041e24b1449475aac20972541d
4,388
py
Python
SIM/cvbridge_build_ws/src/ros_enet/src/detector.py
dlfdn9392/autonomous_driving_car_project
dc07a9e949be4bbb37c8726357ee596f74eec3da
[ "MIT" ]
3
2022-02-12T08:51:37.000Z
2022-03-21T04:30:08.000Z
SIM/cvbridge_build_ws/src/ros_enet/src/detector.py
dlfdn9392/autonomous_driving_car_project
dc07a9e949be4bbb37c8726357ee596f74eec3da
[ "MIT" ]
null
null
null
SIM/cvbridge_build_ws/src/ros_enet/src/detector.py
dlfdn9392/autonomous_driving_car_project
dc07a9e949be4bbb37c8726357ee596f74eec3da
[ "MIT" ]
2
2021-10-09T08:26:19.000Z
2022-03-09T12:44:00.000Z
#!/usr/bin/env python3 #### ros import import rospy import std_msgs.msg from rospkg import RosPack from std_msgs.msg import UInt8 from std_msgs.msg import Float32MultiArray #c from sensor_msgs.msg import Image from geometry_msgs.msg import Polygon, Point32 import cv2 from cv_bridge import CvBridge, CvBridgeError # py...
38.156522
134
0.645624
#!/usr/bin/env python3 #### ros import import rospy import std_msgs.msg from rospkg import RosPack from std_msgs.msg import UInt8 from std_msgs.msg import Float32MultiArray #c from sensor_msgs.msg import Image from geometry_msgs.msg import Polygon, Point32 import cv2 from cv_bridge import CvBridge, CvBridgeError # py...
3,702
3
131
9c59cbd4c8733988e53305f4267a10fe2ea2df39
324
py
Python
juegotruco/juegotruco/urls.py
germanferrero/truco
b073f1cbb6c44b00a3b6651e7dda0f3a419a9710
[ "MIT" ]
null
null
null
juegotruco/juegotruco/urls.py
germanferrero/truco
b073f1cbb6c44b00a3b6651e7dda0f3a419a9710
[ "MIT" ]
null
null
null
juegotruco/juegotruco/urls.py
germanferrero/truco
b073f1cbb6c44b00a3b6651e7dda0f3a419a9710
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^truco/', include('truco.urls', namespace="truco")), url(r'^usuarios/', include('usuarios.urls', namespace="usuarios"))...
27
71
0.685185
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^truco/', include('truco.urls', namespace="truco")), url(r'^usuarios/', include('usuarios.urls', namespace="usuarios"))...
0
0
0
783a5ff947b88f8438dd0c957fdf50140a48a0dd
1,277
py
Python
Smach/executive_smach_tutorials/scripts/usecase_01/executive_step_02.py
OxRAMSociety/RobotArm
8a402ac06e23b4447d59a0d1d0e3065da6a2591a
[ "MIT" ]
3
2021-12-30T21:56:58.000Z
2022-02-20T11:19:12.000Z
Smach/executive_smach_tutorials/scripts/usecase_01/executive_step_02.py
OxRAMSociety/RobotArm
8a402ac06e23b4447d59a0d1d0e3065da6a2591a
[ "MIT" ]
10
2021-11-13T21:18:33.000Z
2022-03-11T23:11:23.000Z
Smach/executive_smach_tutorials/scripts/usecase_01/executive_step_02.py
OxRAMSociety/RobotArm
8a402ac06e23b4447d59a0d1d0e3065da6a2591a
[ "MIT" ]
2
2022-02-06T11:24:43.000Z
2022-02-09T20:13:40.000Z
#!/usr/bin/env python3 """ Description: Usage: $> roslaunch turtle_nodes.launch $> ./executive_step_02.py Output: [INFO] : State machine starting in initial state 'RESET' with userdata: [] [INFO] : State machine transitioning 'RESET':'succeeded'-->'SPAWN' [INFO] : State machine te...
24.09434
81
0.643696
#!/usr/bin/env python3 """ Description: Usage: $> roslaunch turtle_nodes.launch $> ./executive_step_02.py Output: [INFO] : State machine starting in initial state 'RESET' with userdata: [] [INFO] : State machine transitioning 'RESET':'succeeded'-->'SPAWN' [INFO] : State machine te...
696
0
23
311f9e2d29caacb6a49a3c6660fb6c0e9015e8f5
4,068
py
Python
predict.py
fzbio/GILoop
c4845a9f5c5bf8654640f823786f4e4dd6576169
[ "MIT" ]
1
2022-03-07T19:16:25.000Z
2022-03-07T19:16:25.000Z
predict.py
fzbio/GILoop
c4845a9f5c5bf8654640f823786f4e4dd6576169
[ "MIT" ]
null
null
null
predict.py
fzbio/GILoop
c4845a9f5c5bf8654640f823786f4e4dd6576169
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os from hickit.reader import get_headers, get_chrom_sizes import tensorflow as tf import json import tensorflow_addons as tfa from utils import * import gc from sklearn.metrics import f1_score, average_precision_score def run_output_predictions(run_id, model_stage, thresh...
47.302326
124
0.622173
import pandas as pd import numpy as np import os from hickit.reader import get_headers, get_chrom_sizes import tensorflow as tf import json import tensorflow_addons as tfa from utils import * import gc from sklearn.metrics import f1_score, average_precision_score def run_output_predictions(run_id, model_stage, thresh...
0
0
0
d158e24c09e1ef821cbfa90a4530d19a3e56e9e9
7,941
py
Python
tests/test__pipeline.py
kevinmooreiii/old-elstruct
c1aa3dd0c34626e6887e1c903de2a9b977ef4163
[ "Apache-2.0" ]
null
null
null
tests/test__pipeline.py
kevinmooreiii/old-elstruct
c1aa3dd0c34626e6887e1c903de2a9b977ef4163
[ "Apache-2.0" ]
null
null
null
tests/test__pipeline.py
kevinmooreiii/old-elstruct
c1aa3dd0c34626e6887e1c903de2a9b977ef4163
[ "Apache-2.0" ]
null
null
null
""" test elstruct writer/run/reader pipelines """ import warnings import tempfile import numpy import automol import elstruct SCRIPT_DCT = { 'cfour2': None, 'gaussian09': None, 'gaussian16': None, 'molpro2015': None, 'mrcc2018': None, 'nwchem6': None, 'orca4': None, 'psi4': "#!/usr/bin...
34.982379
71
0.501574
""" test elstruct writer/run/reader pipelines """ import warnings import tempfile import numpy import automol import elstruct SCRIPT_DCT = { 'cfour2': None, 'gaussian09': None, 'gaussian16': None, 'molpro2015': None, 'mrcc2018': None, 'nwchem6': None, 'orca4': None, 'psi4': "#!/usr/bin...
1,268
0
23
5c0c594de1d8ed9bde7a2cc16d5e17047639c00f
564
py
Python
setup.py
Savahi/tnn
21cd0c0e1827b159ccfb8668495b25f3c9486c75
[ "MIT" ]
null
null
null
setup.py
Savahi/tnn
21cd0c0e1827b159ccfb8668495b25f3c9486c75
[ "MIT" ]
null
null
null
setup.py
Savahi/tnn
21cd0c0e1827b159ccfb8668495b25f3c9486c75
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = 'tnn', version = '0.0.4', description = 'Tensorflow Neural Network Framework for Algorithmic Traders', url = 'http://github.com/Savahi/tnn', author = 'Savahi', author_email = 'sh@tradingene.ru', license = 'MIT', classifiers=[ 'Development Status :: 3 - Alpha', ...
26.857143
80
0.675532
from setuptools import setup setup( name = 'tnn', version = '0.0.4', description = 'Tensorflow Neural Network Framework for Algorithmic Traders', url = 'http://github.com/Savahi/tnn', author = 'Savahi', author_email = 'sh@tradingene.ru', license = 'MIT', classifiers=[ 'Development Status :: 3 - Alpha', ...
0
0
0
2c1743b80d8ca24e2b651a50e4b89ff286c10af4
9,099
py
Python
analysis/Austin/project_functions.py
data301-2020-winter2/course-project-group_1030
f051b7c55e91ded54b0854083c2a750b13f31cc6
[ "MIT" ]
1
2021-02-16T01:22:07.000Z
2021-02-16T01:22:07.000Z
analysis/Austin/project_functions.py
data301-2020-winter2/course-project-group_1030
f051b7c55e91ded54b0854083c2a750b13f31cc6
[ "MIT" ]
1
2021-03-23T07:48:23.000Z
2021-03-29T23:50:06.000Z
analysis/Austin/project_functions.py
data301-2020-winter2/course-project-group_1030
f051b7c55e91ded54b0854083c2a750b13f31cc6
[ "MIT" ]
1
2021-02-16T01:31:17.000Z
2021-02-16T01:31:17.000Z
import pandas as pd import numpy as np
51.117978
391
0.639301
import pandas as pd import numpy as np def load_and_process(csv): data=pd.read_csv(csv) #Drop Unwanted Columns & remove non-games df1 = (pd.DataFrame(data[data['GenreIsNonGame'] != True]) .drop('DemoCount',axis=1) .drop('Reviews',axis=1) .drop('Website',axis=1) .drop(...
8,885
0
176
1a220f455056de8d29d4fdc05194bbd2b99d0167
3,083
py
Python
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from django.db import models
33.150538
93
0.695102
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from django.db import models class Synchronizable(models.Model): SYNCHRONIZABLE_ATTRIBUTES_MAP = {} last_remote_read = models.DateTimeField(null=True, editable=False) last_remote_save = models.DateTimeField(null=True, editable=False) last...
2,255
712
23
e5c011e71d450157209e1e36d22ef161e3f0381f
108
py
Python
api/posts_communities/apps.py
Juangr1803/Foro-AgrodatAI
a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b
[ "MIT" ]
1
2021-04-19T16:13:39.000Z
2021-04-19T16:13:39.000Z
api/posts_communities/apps.py
Juangr1803/Foro-AgrodatAI
a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b
[ "MIT" ]
null
null
null
api/posts_communities/apps.py
Juangr1803/Foro-AgrodatAI
a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18
40
0.796296
from django.apps import AppConfig class PostsCommunitiesConfig(AppConfig): name = 'posts_communities'
0
50
23
24874a1570e70a14061bdb66cf777b1ffcd69f23
1,873
py
Python
test/tests/transformation_test.py
dabraude/Pyliza
66944c9b3d5ef75b39847fe1c460b6f1648042cd
[ "CC0-1.0" ]
null
null
null
test/tests/transformation_test.py
dabraude/Pyliza
66944c9b3d5ef75b39847fe1c460b6f1648042cd
[ "CC0-1.0" ]
null
null
null
test/tests/transformation_test.py
dabraude/Pyliza
66944c9b3d5ef75b39847fe1c460b6f1648042cd
[ "CC0-1.0" ]
null
null
null
import unittest from hypothesis import given, example from . import pyliza_strategies as liza_st from pyliza.transformation import DecompositionRule from pyliza.processing import ProcessingWord as PW from pyliza.processing import ProcessingPhrase as PPhrase
44.595238
85
0.672718
import unittest from hypothesis import given, example from . import pyliza_strategies as liza_st from pyliza.transformation import DecompositionRule from pyliza.processing import ProcessingWord as PW from pyliza.processing import ProcessingPhrase as PPhrase class DecompositionTestCase(unittest.TestCase): @given(...
0
1,590
23
7e94be0b426059a0b5f80191330dd01d9cefa8e8
2,371
py
Python
lib/python3.10/site-packages/integrations/trac/zulip_trac_config.py
FHIR/zulip-archive
b1f69a091f74b613d74ebb558eed30415c0a9245
[ "MIT" ]
1
2020-05-25T11:52:31.000Z
2020-05-25T11:52:31.000Z
lib/python3.10/site-packages/integrations/trac/zulip_trac_config.py
FHIR/zulip-archive
b1f69a091f74b613d74ebb558eed30415c0a9245
[ "MIT" ]
6
2020-03-24T16:39:54.000Z
2021-04-30T20:46:43.000Z
api/integrations/trac/zulip_trac_config.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
3
2019-01-26T21:40:16.000Z
2019-02-24T20:16:26.000Z
# -*- coding: utf-8 -*- # # Copyright © 2012 Zulip, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
45.596154
81
0.770561
# -*- coding: utf-8 -*- # # Copyright © 2012 Zulip, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
0
0
0
842efcd09eed67da59176d84a717ccdb5c52f087
1,102
py
Python
ibsng/handler/invoice/update_invoice_profile.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
6
2018-03-06T10:16:36.000Z
2021-12-05T12:43:10.000Z
ibsng/handler/invoice/update_invoice_profile.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-03-06T10:27:08.000Z
2022-01-02T15:21:27.000Z
ibsng/handler/invoice/update_invoice_profile.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-01-06T16:28:31.000Z
2018-09-17T19:47:19.000Z
"""Update invoice profile API method.""" from ibsng.handler.handler import Handler class updateInvoiceProfile(Handler): """Update invoice profile method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(se...
29
49
0.615245
"""Update invoice profile API method.""" from ibsng.handler.handler import Handler class updateInvoiceProfile(Handler): """Update invoice profile method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(se...
0
0
0
a17cb8280684b30e14af30222a03c3876843b327
1,059
py
Python
test_pragmatic.py
prajwalccc13/Pragmatic-Web-Framework
8fccf5ecde2619b40e2f29c1635d5f56fa31781a
[ "Apache-2.0" ]
null
null
null
test_pragmatic.py
prajwalccc13/Pragmatic-Web-Framework
8fccf5ecde2619b40e2f29c1635d5f56fa31781a
[ "Apache-2.0" ]
null
null
null
test_pragmatic.py
prajwalccc13/Pragmatic-Web-Framework
8fccf5ecde2619b40e2f29c1635d5f56fa31781a
[ "Apache-2.0" ]
null
null
null
import pytest from api import API @pytest.fixture
21.612245
76
0.673277
import pytest from api import API @pytest.fixture def api(): return API() def test_basic_route(api): @api.route("/home") def home(req, response): response.text = "worked" with pytest.raises(AssertionError): @api.route("/home") def home2(request, response): respon...
887
0
114
2b8da670c87afe6784aa886b883743a5ea977ba2
537
py
Python
jiant/tasks/lib/superglue_axb.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
1,108
2019-04-22T09:19:19.000Z
2022-03-31T13:23:51.000Z
jiant/tasks/lib/superglue_axb.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
737
2019-04-22T14:30:36.000Z
2022-03-31T22:22:17.000Z
jiant/tasks/lib/superglue_axb.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
273
2019-04-23T01:42:11.000Z
2022-03-25T15:59:38.000Z
from dataclasses import dataclass from . import rte @dataclass @dataclass @dataclass @dataclass
16.78125
76
0.744879
from dataclasses import dataclass from . import rte @dataclass class Example(rte.Example): pass @dataclass class TokenizedExample(rte.Example): pass @dataclass class DataRow(rte.DataRow): pass @dataclass class Batch(rte.Batch): pass class SuperglueBroadcoverageDiagnosticsTask(rte.RteTask): ...
166
101
164
684058cc65facf1d2b555fd05e7c6fb109db2485
1,655
py
Python
tests/test_crl_client.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
4
2020-11-11T13:59:05.000Z
2022-03-13T14:06:10.000Z
tests/test_crl_client.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
1
2020-11-11T11:29:37.000Z
2020-11-11T11:29:37.000Z
tests/test_crl_client.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
2
2020-11-11T10:33:32.000Z
2022-03-13T14:06:11.000Z
# coding: utf-8 import unittest import os from asn1crypto import x509, pem from pyhanko_certvalidator.fetchers import aiohttp_fetchers, requests_fetchers from pyhanko_certvalidator.context import ValidationContext from pyhanko_certvalidator.validate import verify_crl from .constants import TEST_REQUEST_TIMEOUT tests...
34.479167
78
0.714199
# coding: utf-8 import unittest import os from asn1crypto import x509, pem from pyhanko_certvalidator.fetchers import aiohttp_fetchers, requests_fetchers from pyhanko_certvalidator.context import ValidationContext from pyhanko_certvalidator.validate import verify_crl from .constants import TEST_REQUEST_TIMEOUT tests...
1,110
34
104
35f5fbc2ecf336a27b90553bf6eced3f2cfbd38f
9,157
py
Python
pypibatch/main.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
pypibatch/main.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
pypibatch/main.py
newvicx/pybatch
28065d70f5b970669fbb9174415dcd84477a99d2
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime from typing import List, Tuple, Union import clr import pandas as pd PISDKHOME = os.getenv("PISDKHOME") sys.path.append(PISDKHOME) clr.AddReference("OSIsoft.PISDK") from PISDK import PISDK, PISubBatch, PIUnitBatch UnitBatches = pd.DataFrame SubBatches = pd.DataFra...
36.051181
107
0.584362
import os import sys from datetime import datetime from typing import List, Tuple, Union import clr import pandas as pd PISDKHOME = os.getenv("PISDKHOME") sys.path.append(PISDKHOME) clr.AddReference("OSIsoft.PISDK") from PISDK import PISDK, PISubBatch, PIUnitBatch UnitBatches = pd.DataFrame SubBatches = pd.DataFra...
477
23
125
2909cd233acf8a536e5a3e44f665d30c6eec060f
6,762
py
Python
apps/Am241_Analysis.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
13
2019-05-01T01:37:30.000Z
2022-03-18T08:52:19.000Z
apps/Am241_Analysis.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
111
2019-03-25T00:50:48.000Z
2022-03-30T17:13:43.000Z
apps/Am241_Analysis.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
52
2019-01-24T21:05:04.000Z
2022-03-07T23:37:55.000Z
#!/usr/bin/env python3.7 import numpy as np import pandas as pd import tinydb as db import matplotlib.pyplot as plt from scipy.integrate import simps from pygama import DataSet import pygama.utils as pgu import pygama.analysis.histograms as pgh import pygama.analysis.peak_fitting as pga from numpy import diff """""...
30.459459
158
0.586217
#!/usr/bin/env python3.7 import numpy as np import pandas as pd import tinydb as db import matplotlib.pyplot as plt from scipy.integrate import simps from pygama import DataSet import pygama.utils as pgu import pygama.analysis.histograms as pgh import pygama.analysis.peak_fitting as pga from numpy import diff """""...
5,880
0
23
8ca9be3878dab670cb6a05d0d41ef9afb347f424
2,302
py
Python
pysaintcoinach/xiv/gc_scrip_shop_item.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-11-20T17:24:49.000Z
2022-03-29T04:17:53.000Z
pysaintcoinach/xiv/gc_scrip_shop_item.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-04-08T07:36:46.000Z
2022-01-17T22:51:54.000Z
pysaintcoinach/xiv/gc_scrip_shop_item.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
3
2019-04-08T08:24:22.000Z
2021-06-27T22:19:15.000Z
from ..ex.relational import IRelationalRow from . import xivrow, XivSubRow, IXivSheet from .interfaces import IShopListing, IShopListingItem from .shop_listing_item import ShopListingItem @xivrow
28.419753
116
0.668983
from ..ex.relational import IRelationalRow from . import xivrow, XivSubRow, IXivSheet from .interfaces import IShopListing, IShopListingItem from .shop_listing_item import ShopListingItem @xivrow class GCScripShopItem(XivSubRow, IShopListing, IShopListingItem): @property def gc_shop(self) -> 'GCShop': ...
1,410
672
22
9064b8f312956e4226f1f506cb810d923706df75
15,765
py
Python
xask.py
s3h10r/say
8302ba0bc41b9debd1852f8c0ac6d25a7aaa3b9a
[ "MIT" ]
2
2020-10-18T09:52:20.000Z
2021-09-27T09:23:33.000Z
xask.py
s3h10r/say
8302ba0bc41b9debd1852f8c0ac6d25a7aaa3b9a
[ "MIT" ]
null
null
null
xask.py
s3h10r/say
8302ba0bc41b9debd1852f8c0ac6d25a7aaa3b9a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ **experimental** a graphical retro-style version of `ask` - because we can. :D asks a yes/no question via audio (text-to-speech). returncode reflects answer in common unix-style (0 == yes/ok, 1 == nope) Usage: xask [<msg>] [--yes=<reply_yes>] [--no=<reply_no>] [--engine=<tts-engine>] [...
38.639706
192
0.597843
#!/usr/bin/env python3 """ **experimental** a graphical retro-style version of `ask` - because we can. :D asks a yes/no question via audio (text-to-speech). returncode reflects answer in common unix-style (0 == yes/ok, 1 == nope) Usage: xask [<msg>] [--yes=<reply_yes>] [--no=<reply_no>] [--engine=<tts-engine>] [...
2,912
25
172
699a7caa0cd3ef8b77366228cf23f5bb5950aef4
2,717
py
Python
Day 77/OldKeypadInForeignLanguage.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 77/OldKeypadInForeignLanguage.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 77/OldKeypadInForeignLanguage.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
''' Some people remain old fashioned and John is one of them. He doesn't like the new smart phones with full keypads and still uses the old keypads which require you to tap a key multiple times to type a single letter. For example, if the keyboard has two keys, one with the letters "adef" and the other one with the l...
41.8
451
0.753773
''' Some people remain old fashioned and John is one of them. He doesn't like the new smart phones with full keypads and still uses the old keypads which require you to tap a key multiple times to type a single letter. For example, if the keyboard has two keys, one with the letters "adef" and the other one with the l...
0
0
0
85fc1eacc08132e53a52cf03147fa03f7403b4c0
3,016
py
Python
mosaik_docker/util/config_data.py
ERIGrid2/mosaik-docker
b44958cb50186fd57b67c84dee22109d7d4400c6
[ "BSD-3-Clause" ]
1
2021-02-18T12:34:17.000Z
2021-02-18T12:34:17.000Z
mosaik_docker/util/config_data.py
ERIGrid2/mosaik-docker
b44958cb50186fd57b67c84dee22109d7d4400c6
[ "BSD-3-Clause" ]
null
null
null
mosaik_docker/util/config_data.py
ERIGrid2/mosaik-docker
b44958cb50186fd57b67c84dee22109d7d4400c6
[ "BSD-3-Clause" ]
1
2020-10-09T11:11:20.000Z
2020-10-09T11:11:20.000Z
import json import pathlib from .._config import CONFIG_FILE_NAME class ConfigData: ''' This class handles access to simulation setup configuration data. ''' # Constructor. def __setitem__( self, index, value ): ''' For setting a configuration value. ''...
30.464646
115
0.558687
import json import pathlib from .._config import CONFIG_FILE_NAME class ConfigData: ''' This class handles access to simulation setup configuration data. ''' # Constructor. def __init__( self, setup_dir ): if not ( isinstance( setup_dir, str ) or isinstance( setup_dir, pat...
1,190
0
27
e8af7303fb7ef02910f0e067c44c0d11ac46a554
12,950
py
Python
shaDow/para_samplers/base_graph_samplers.py
yxia-fb/shaDow-GNN
2b867011c7084d4ed1b407e29f3ee09632fcc3dc
[ "MIT" ]
null
null
null
shaDow/para_samplers/base_graph_samplers.py
yxia-fb/shaDow-GNN
2b867011c7084d4ed1b407e29f3ee09632fcc3dc
[ "MIT" ]
1
2022-01-22T11:20:00.000Z
2022-01-22T11:20:00.000Z
shaDow/para_samplers/base_graph_samplers.py
yxia-fb/shaDow-GNN
2b867011c7084d4ed1b407e29f3ee09632fcc3dc
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse from typing import Union, List from dataclasses import dataclass, field, fields, InitVar import scipy.sparse as sp @dataclass class Subgraph: """ Represents the meta information of sampled subgraphs. """ # data fields indptr : np.ndarray indices...
42.739274
121
0.58417
import numpy as np import scipy.sparse from typing import Union, List from dataclasses import dataclass, field, fields, InitVar import scipy.sparse as sp @dataclass class Subgraph: """ Represents the meta information of sampled subgraphs. """ # data fields indptr : np.ndarray indices...
1,329
11
339
1f34da9829da433908eee4db9139797f08e10d81
202
py
Python
source/settings.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
source/settings.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
source/settings.py
ElPapi42/hexagonal-microservice
675f6588c9b150712eb5f4c290c7a3f81b273573
[ "MIT" ]
null
null
null
import os import pathlib from dotenv import load_dotenv # Load .env vars load_dotenv(pathlib.Path('.').parent/'.env') MONGO_URL = os.getenv('MONGO_URL') MONGO_DATABASE = os.getenv('MONGO_DATABASE')
16.833333
44
0.752475
import os import pathlib from dotenv import load_dotenv # Load .env vars load_dotenv(pathlib.Path('.').parent/'.env') MONGO_URL = os.getenv('MONGO_URL') MONGO_DATABASE = os.getenv('MONGO_DATABASE')
0
0
0
6a4dde058d4d3b742019103c2eca8efcabeb3393
541
py
Python
Day 1 - AOC2020.py
rekbot2/Advent-of-Code-2020
9ebaec23441a6498b8f1153d39d86bfaddeecaf7
[ "MIT" ]
null
null
null
Day 1 - AOC2020.py
rekbot2/Advent-of-Code-2020
9ebaec23441a6498b8f1153d39d86bfaddeecaf7
[ "MIT" ]
null
null
null
Day 1 - AOC2020.py
rekbot2/Advent-of-Code-2020
9ebaec23441a6498b8f1153d39d86bfaddeecaf7
[ "MIT" ]
null
null
null
#Read data inputList = [] with open('inputs\input1.txt') as f: for line in f.readlines(): inputList.append(int(line.strip())) #Define functions import itertools import numpy as np #Solution 1 print(solveProblem(inputList,2)) #Solution 2 print(solveProblem(inputList,3))
18.655172
57
0.656192
#Read data inputList = [] with open('inputs\input1.txt') as f: for line in f.readlines(): inputList.append(int(line.strip())) #Define functions import itertools import numpy as np def solveProblem(inputList,n): allCombos = list(itertools.combinations(inputList,n)) for i in allCombos: ...
230
0
23
50284fd4432dd385e1cddf4f7a3d04bb9b82256d
4,622
py
Python
tests/python/proton_tests/reactor_interop.py
mqlight/qpid-proton
e13a089c15ebe674a8f3f02e9f2b3033595b015a
[ "Apache-2.0" ]
null
null
null
tests/python/proton_tests/reactor_interop.py
mqlight/qpid-proton
e13a089c15ebe674a8f3f02e9f2b3033595b015a
[ "Apache-2.0" ]
null
null
null
tests/python/proton_tests/reactor_interop.py
mqlight/qpid-proton
e13a089c15ebe674a8f3f02e9f2b3033595b015a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Lice...
28.012121
70
0.692774
#!/usr/bin/python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Lice...
2,936
11
589
83c9189faa0c5be14fe68d283ed7c94e5ee6234b
1,316
py
Python
Cloud/MQLibMaster.py
josilber2/MQLib
6e3f1662988c33d1d2efa6e0d7bd1959f0467337
[ "MIT" ]
44
2015-07-26T04:33:50.000Z
2021-12-11T13:02:36.000Z
Cloud/MQLibMaster.py
josilber2/MQLib
6e3f1662988c33d1d2efa6e0d7bd1959f0467337
[ "MIT" ]
5
2015-07-26T16:52:42.000Z
2022-03-18T23:30:02.000Z
Cloud/MQLibMaster.py
josilber2/MQLib
6e3f1662988c33d1d2efa6e0d7bd1959f0467337
[ "MIT" ]
32
2016-01-11T12:29:10.000Z
2021-12-29T07:09:48.000Z
import subprocess import sys # Validate command-line arguments if len(sys.argv) < 2 or (not (sys.argv[1] == "METRICS" and len(sys.argv) == 3) and not (sys.argv[1] == "FULL" and len(sys.argv) == 7 and sys.argv[3].isdigit() and all([x.isdigit() for x in sys.argv[4].split("_")]) and sys.argv[5].lstrip("-").isdigit() and ...
52.64
292
0.629939
import subprocess import sys # Validate command-line arguments if len(sys.argv) < 2 or (not (sys.argv[1] == "METRICS" and len(sys.argv) == 3) and not (sys.argv[1] == "FULL" and len(sys.argv) == 7 and sys.argv[3].isdigit() and all([x.isdigit() for x in sys.argv[4].split("_")]) and sys.argv[5].lstrip("-").isdigit() and ...
0
0
0
1d4a93a11d384e09680145874bd376743f51deda
1,695
py
Python
arena_navigation/arena_local_planner/evaluation/scripts/proto_cluster.py
ignc-research/arena-marl
3b9b2521436ef7f364a250da71a01e915d840296
[ "MIT" ]
7
2021-11-11T13:25:25.000Z
2021-12-25T21:34:41.000Z
arena_navigation/arena_local_planner/evaluation/scripts/proto_cluster.py
ignc-research/arena-marl
3b9b2521436ef7f364a250da71a01e915d840296
[ "MIT" ]
1
2021-11-20T20:34:14.000Z
2021-11-20T20:34:14.000Z
arena_navigation/arena_local_planner/evaluation/scripts/proto_cluster.py
ignc-research/arena-marl
3b9b2521436ef7f364a250da71a01e915d840296
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np # X = np.array([[5,3], # [10,15], # [15,12], # [24,10], # [30,30], # [85,70], # [71,80], # [60,78], # [70,55], # [80,91],]) # cluster = AgglomerativeClustering(n_clusters=2, affinity='euclidean', linkage='ward...
20.178571
87
0.60059
import matplotlib.pyplot as plt import pandas as pd import numpy as np # X = np.array([[5,3], # [10,15], # [15,12], # [24,10], # [30,30], # [85,70], # [71,80], # [60,78], # [70,55], # [80,91],]) # cluster = AgglomerativeClustering(n_clusters=2, affinity='euclidean', linkage='ward...
0
0
0
d553b14f039dfc7cfda2b23b209262ef6e222a6d
7,760
py
Python
ramsey.py
Stephane-Poirier/Ramsey
8fa4901080d7371ed2070bd51ddf73ef01216c86
[ "MIT" ]
null
null
null
ramsey.py
Stephane-Poirier/Ramsey
8fa4901080d7371ed2070bd51ddf73ef01216c86
[ "MIT" ]
null
null
null
ramsey.py
Stephane-Poirier/Ramsey
8fa4901080d7371ed2070bd51ddf73ef01216c86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Stéphane-Poirier' import math from diff_graph import DiffGraph from ferrer import FerrerIterator, ferrer_size import time if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description='ramsey : evaluate expected value of Kr presence for ...
34.035088
149
0.554253
# -*- coding: utf-8 -*- __author__ = 'Stéphane-Poirier' import math from diff_graph import DiffGraph from ferrer import FerrerIterator, ferrer_size import time def comb(n, k): c = 1 for i in range(1, k+1): c = int(c * (n+1-i) / i) return c def multinomial(lst): res, i = 1, sum(lst) i0 =...
4,225
0
230
f94cea21a0db965d0167768f9473e380760ed90e
2,783
py
Python
recipes/hiredis/0.x.x/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
1
2021-11-11T03:07:13.000Z
2021-11-11T03:07:13.000Z
recipes/hiredis/0.x.x/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
1
2022-03-09T06:33:41.000Z
2022-03-09T06:33:41.000Z
recipes/hiredis/0.x.x/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
null
null
null
from conans import AutoToolsBuildEnvironment, ConanFile, tools from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.36.0"
35.227848
107
0.626303
from conans import AutoToolsBuildEnvironment, ConanFile, tools from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.36.0" class HiredisConan(ConanFile): name = "hiredis" description = "Hiredis is a minimalistic C client library for the Redis database." license = "BS...
1,811
786
23
77793f3d0d46e5b024a12630e3c8c942f127f6f8
130
py
Python
tests/main_test.py
deeso/simple-rules
c57ad9a6a6ff18e6c6020e4870a4e7095c28fa11
[ "MIT" ]
null
null
null
tests/main_test.py
deeso/simple-rules
c57ad9a6a6ff18e6c6020e4870a4e7095c28fa11
[ "MIT" ]
null
null
null
tests/main_test.py
deeso/simple-rules
c57ad9a6a6ff18e6c6020e4870a4e7095c28fa11
[ "MIT" ]
null
null
null
import unittest import os import signal if __name__ == '__main__': unittest.main() os.kill(os.getpid(), signal.SIGKILL)
14.444444
40
0.7
import unittest import os import signal if __name__ == '__main__': unittest.main() os.kill(os.getpid(), signal.SIGKILL)
0
0
0
a2b6393150ff5d8352980bb1e7cedf448d7f741a
5,376
py
Python
tests/__main__.py
emissions-api/sentinel5dl
67bf50bf8ddc48aa0177df534b2084a733d8b8c9
[ "MIT" ]
7
2019-10-08T10:49:39.000Z
2021-06-08T05:27:17.000Z
tests/__main__.py
emissions-api/sentinel5dl
67bf50bf8ddc48aa0177df534b2084a733d8b8c9
[ "MIT" ]
40
2019-10-05T23:08:48.000Z
2021-10-02T18:49:33.000Z
tests/__main__.py
emissions-api/sentinel5dl
67bf50bf8ddc48aa0177df534b2084a733d8b8c9
[ "MIT" ]
8
2019-10-06T00:36:48.000Z
2021-06-08T05:27:20.000Z
import datetime import os import pycurl import sentinel5dl import sentinel5dl.__main__ as executable import tempfile import unittest import logging import sys testpath = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': unittest.main()
35.368421
78
0.607887
import datetime import os import pycurl import sentinel5dl import sentinel5dl.__main__ as executable import tempfile import unittest import logging import sys testpath = os.path.dirname(os.path.abspath(__file__)) class TestSentinel5dl(unittest.TestCase): def _mock_http_request(self, path, filename=None): ...
695
4,369
46
2467fd61220b97eed5bc2fdb0593892f8f2010da
2,293
py
Python
broti/modules/poll.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
null
null
null
broti/modules/poll.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
null
null
null
broti/modules/poll.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
1
2021-03-28T18:52:26.000Z
2021-03-28T18:52:26.000Z
import time poll_active = False poll = {} allowed_users = set() voted = set()
28.308642
105
0.600087
import time poll_active = False poll = {} allowed_users = set() voted = set() def start_poll(bot, c, e, args): global poll global poll_active global voted global allowed_users if len(args) < 2: bot.reply(c, e, 'Please specify some options') return elif poll_active: bo...
2,099
0
115
7eabf07fa7712af884b0cdc51dcd92e429c33234
9,369
py
Python
deps/riak_pb/msgcodegen.py
pexip/os-riak
9e64fb0412121776c971c8f04e8c96df9f2a31de
[ "Apache-2.0" ]
null
null
null
deps/riak_pb/msgcodegen.py
pexip/os-riak
9e64fb0412121776c971c8f04e8c96df9f2a31de
[ "Apache-2.0" ]
null
null
null
deps/riak_pb/msgcodegen.py
pexip/os-riak
9e64fb0412121776c971c8f04e8c96df9f2a31de
[ "Apache-2.0" ]
11
2015-02-11T21:57:01.000Z
2018-07-25T21:30:12.000Z
# Copyright 2014 Basho Technologies, Inc. # # This file is provided to you 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...
33.223404
79
0.593873
# Copyright 2014 Basho Technologies, Inc. # # This file is provided to you 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...
4,431
30
746
10a2edaf6f66e70ee3dc6a7b663843fbdaa7a8ab
1,963
py
Python
isochrones/tests/test_likelihood.py
Sam-2727/isochrones
11f49c6c693e91bf275bb6a20af41b5f42e233da
[ "MIT" ]
100
2015-03-12T12:51:03.000Z
2022-01-07T23:16:01.000Z
isochrones/tests/test_likelihood.py
Sam-2727/isochrones
11f49c6c693e91bf275bb6a20af41b5f42e233da
[ "MIT" ]
154
2015-02-26T20:47:57.000Z
2022-03-29T09:51:50.000Z
isochrones/tests/test_likelihood.py
Sam-2727/isochrones
11f49c6c693e91bf275bb6a20af41b5f42e233da
[ "MIT" ]
62
2015-02-03T17:58:43.000Z
2021-12-04T22:31:20.000Z
from isochrones.starmodel import StarModel, BasicStarModel from isochrones import get_ichrone import numpy as np mist = get_ichrone("mist") props = dict(Teff=(5800, 100), logg=(4.5, 0.1), J=(3.58, 0.05), K=(3.22, 0.05), parallax=(100, 0.1)) props_phot = dict(J=(3.58, 0.05), K=(3.22, 0.05), parallax=(100, 0.1)) prop...
33.844828
100
0.650535
from isochrones.starmodel import StarModel, BasicStarModel from isochrones import get_ichrone import numpy as np mist = get_ichrone("mist") props = dict(Teff=(5800, 100), logg=(4.5, 0.1), J=(3.58, 0.05), K=(3.22, 0.05), parallax=(100, 0.1)) props_phot = dict(J=(3.58, 0.05), K=(3.22, 0.05), parallax=(100, 0.1)) prop...
1,501
0
69
294f6146c0dec4a03ddb7a93e0b2ce1bbcaf8d01
2,127
py
Python
video.py
brainbots/bot-video
d6932a762167c5d8026ee9faf874d3fabca692e6
[ "Apache-2.0" ]
null
null
null
video.py
brainbots/bot-video
d6932a762167c5d8026ee9faf874d3fabca692e6
[ "Apache-2.0" ]
null
null
null
video.py
brainbots/bot-video
d6932a762167c5d8026ee9faf874d3fabca692e6
[ "Apache-2.0" ]
null
null
null
import os, fnmatch from functools import partial from PyQt5.QtCore import QProcess from pykeyboard import PyKeyboard from bots.abstract_bot import AbstractBot from bots.action import Action from bots.utility import waitForWindowByTitle from local_settings import VIDEO_DIR
30.385714
136
0.666667
import os, fnmatch from functools import partial from PyQt5.QtCore import QProcess from pykeyboard import PyKeyboard from bots.abstract_bot import AbstractBot from bots.action import Action from bots.utility import waitForWindowByTitle from local_settings import VIDEO_DIR class VideoBot(AbstractBot): def __init__...
1,628
7
222
48d6aa01c047142b8c1df4731859c27a355a6555
857
py
Python
provisioning/ubuntu-xenial/config.py
usnistgov/reductus
abb977f8db41975bb577597e23790b8b58b19d98
[ "Unlicense" ]
null
null
null
provisioning/ubuntu-xenial/config.py
usnistgov/reductus
abb977f8db41975bb577597e23790b8b58b19d98
[ "Unlicense" ]
null
null
null
provisioning/ubuntu-xenial/config.py
usnistgov/reductus
abb977f8db41975bb577597e23790b8b58b19d98
[ "Unlicense" ]
null
null
null
############################################################# # rename or copy this file to config.py if you make changes # ############################################################# # change this to your fully-qualified domain name to run a # remote server. The default value of localhost will # only allow connec...
32.961538
77
0.586931
############################################################# # rename or copy this file to config.py if you make changes # ############################################################# # change this to your fully-qualified domain name to run a # remote server. The default value of localhost will # only allow connec...
0
0
0
cc62f446e47f761f3ca74447a2fad3603294de87
870
py
Python
mysite/mongodb/emails.py
dduong711/API_project
a30ee07d2d61af9b57b3f0e21020a45b83db2e00
[ "MIT" ]
null
null
null
mysite/mongodb/emails.py
dduong711/API_project
a30ee07d2d61af9b57b3f0e21020a45b83db2e00
[ "MIT" ]
null
null
null
mysite/mongodb/emails.py
dduong711/API_project
a30ee07d2d61af9b57b3f0e21020a45b83db2e00
[ "MIT" ]
null
null
null
# emails.py from django.template import loader from django.core.mail import EmailMultiAlternatives from django.conf import settings mongodb_notification_email = NotificationEmail()
30
75
0.717241
# emails.py from django.template import loader from django.core.mail import EmailMultiAlternatives from django.conf import settings class NotificationEmail: subject_template_name = "mongodb/email/action_notification_subject.txt" email_template_name = "mongodb/email/action_notification_email.txt" from_em...
398
264
23
563b0eaaa4f691314756fd4e23087ed972485419
18,040
py
Python
edb/edgeql/compiler/inference/cardinality.py
haikyuu/edgedb
73125882a4eff337692ad10af4bfdf15eef341ab
[ "Apache-2.0" ]
null
null
null
edb/edgeql/compiler/inference/cardinality.py
haikyuu/edgedb
73125882a4eff337692ad10af4bfdf15eef341ab
[ "Apache-2.0" ]
null
null
null
edb/edgeql/compiler/inference/cardinality.py
haikyuu/edgedb
73125882a4eff337692ad10af4bfdf15eef341ab
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-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...
29.333333
79
0.645953
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-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...
15,371
0
757
c382159dff554857c86f8c0173e004dc0e7afefa
675
py
Python
alembic/versions/2711340c6d9d_added_orientation_column_to_pi_model.py
PeterGrace/pi_director
217f8c504830d2e8c18f166b62b8138d3d25a167
[ "MIT" ]
12
2015-08-28T20:48:29.000Z
2021-08-23T02:56:55.000Z
alembic/versions/2711340c6d9d_added_orientation_column_to_pi_model.py
PeterGrace/pi_director
217f8c504830d2e8c18f166b62b8138d3d25a167
[ "MIT" ]
21
2015-08-31T19:41:04.000Z
2016-02-17T21:42:39.000Z
alembic/versions/2711340c6d9d_added_orientation_column_to_pi_model.py
PeterGrace/pi_director
217f8c504830d2e8c18f166b62b8138d3d25a167
[ "MIT" ]
7
2015-08-28T20:50:03.000Z
2020-06-06T12:49:29.000Z
"""added orientation column to pi model Revision ID: 2711340c6d9d Revises: 490d49497045 Create Date: 2015-09-25 09:43:33.202018 """ # revision identifiers, used by Alembic. revision = '2711340c6d9d' down_revision = '490d49497045' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa ...
23.275862
81
0.706667
"""added orientation column to pi model Revision ID: 2711340c6d9d Revises: 490d49497045 Create Date: 2015-09-25 09:43:33.202018 """ # revision identifiers, used by Alembic. revision = '2711340c6d9d' down_revision = '490d49497045' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa ...
307
0
46