hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
900210fa3a7678e606b665833ea4e0bfd360b90a
819
py
Python
merra-plot-microservice/merra_weather/merra_weather/urls.py
airavata-courses/orion
262c34d3126d0b24577db37672d6825ae22cf63d
[ "Apache-2.0" ]
null
null
null
merra-plot-microservice/merra_weather/merra_weather/urls.py
airavata-courses/orion
262c34d3126d0b24577db37672d6825ae22cf63d
[ "Apache-2.0" ]
37
2022-01-25T21:00:43.000Z
2022-03-09T18:13:54.000Z
merra-plot-microservice/merra_weather/merra_weather/urls.py
airavata-courses/orion
262c34d3126d0b24577db37672d6825ae22cf63d
[ "Apache-2.0" ]
null
null
null
"""plot_weather URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
35.608696
77
0.709402
11a718c976d11fa78d7440b4b3e4eeb32b4071cb
605
py
Python
test_st7789.py
katkinsk/st7789py_mpy
58f0012cf8047b6d19a21f82f6de3639340cb777
[ "MIT" ]
45
2019-05-07T18:04:22.000Z
2022-03-28T09:18:56.000Z
test_st7789.py
katkinsk/st7789py_mpy
58f0012cf8047b6d19a21f82f6de3639340cb777
[ "MIT" ]
6
2019-10-28T05:56:14.000Z
2022-03-07T11:09:41.000Z
test_st7789.py
katkinsk/st7789py_mpy
58f0012cf8047b6d19a21f82f6de3639340cb777
[ "MIT" ]
22
2019-07-08T01:54:54.000Z
2022-02-21T17:05:11.000Z
# code for micropython 1.10 on esp8266 import random import machine import st7789py as st7789 import time def main(): spi = machine.SPI(1, baudrate=40000000, polarity=1) display = st7789.ST7789( spi, 240, 240, reset=machine.Pin(5, machine.Pin.OUT), dc=machine.Pin(2, machine.Pin.OUT),...
20.862069
55
0.558678
f10b7aa0b8977dc550b225d8392390a57c8c1390
371
py
Python
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/create_item.py
ualberta-smr/NFBugs
65d9ef603e9527b3d83f53af0606b1ae240513f1
[ "MIT" ]
3
2019-10-01T19:58:24.000Z
2021-09-17T04:03:21.000Z
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/create_item.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
22
2018-08-23T15:15:37.000Z
2019-03-15T17:09:41.000Z
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/create_item.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
1
2019-02-11T18:26:36.000Z
2019-02-11T18:26:36.000Z
from xbmcswift2 import Plugin from xbmcswift2 import actions import requests import os import urllib2 import time import datetime def create_item(data): video = data.get('video') item = { 'info': { 'country': [country['label'] for country in video.get('productionCountries')], ...
17.666667
90
0.601078
73727d990ae96ac8faf6956d0564de3f2dc4d464
12,637
py
Python
bayes_opt/bayesian_optimization.py
chenxukun/BayesianOptimization
e3f2f94f4749277f5231dba9c0d7c54b14ef2c50
[ "MIT" ]
null
null
null
bayes_opt/bayesian_optimization.py
chenxukun/BayesianOptimization
e3f2f94f4749277f5231dba9c0d7c54b14ef2c50
[ "MIT" ]
null
null
null
bayes_opt/bayesian_optimization.py
chenxukun/BayesianOptimization
e3f2f94f4749277f5231dba9c0d7c54b14ef2c50
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division import numpy as np import warnings from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import Matern from .helpers import (UtilityFunction, PrintLog, acq_max, ensure_rng) from .target_space import Targ...
34.061995
120
0.568489
fa1c6ed2c0bf04e969217f5e20b461f1759ee062
5,397
py
Python
snape/test/test_make_image_dataset.py
AhmadKSA/snape
baecbe102d2e0e964bc0acd542b0d097ca1749a4
[ "Apache-2.0" ]
182
2016-12-14T21:09:42.000Z
2022-03-04T03:39:46.000Z
snape/test/test_make_image_dataset.py
AhmadKSA/snape
baecbe102d2e0e964bc0acd542b0d097ca1749a4
[ "Apache-2.0" ]
15
2016-12-06T18:37:08.000Z
2020-07-31T17:30:00.000Z
snape/test/test_make_image_dataset.py
AhmadKSA/snape
baecbe102d2e0e964bc0acd542b0d097ca1749a4
[ "Apache-2.0" ]
30
2017-01-19T19:24:37.000Z
2021-12-06T10:23:04.000Z
import shutil from snape.make_image_dataset import * from snape.make_image_dataset import _ImageNet, _ImageGrabber from snape.utils import get_random_state import glob import pytest conf = { "n_classes": 2, "n_samples": 11, "out_path": "./test_images/", "weights": [.8, .2], "image_source": "imagen...
34.158228
116
0.617009
dc30dd0a90d5a203afd81ed3f96207fd3dc758f5
2,115
py
Python
run_all.py
TheFlyingBadger/plex-utills
7563755e54661711414669a03152ee46ca80d8c8
[ "MIT" ]
null
null
null
run_all.py
TheFlyingBadger/plex-utills
7563755e54661711414669a03152ee46ca80d8c8
[ "MIT" ]
null
null
null
run_all.py
TheFlyingBadger/plex-utills
7563755e54661711414669a03152ee46ca80d8c8
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import os import subprocess from configparser import ConfigParser import subprocess import schedule import time from datetime import datetime config_object = ConfigParser() config_object.read("/config/config.ini") server = config_object["PLEXSERVER"] schedules = config_object["S...
29.375
94
0.655792
410833b4275261fcb96b8b73610f8238e83cc793
526
py
Python
jamal_bot_config.py
kpatino/jamal_bot
a29731ecf067073ab786b4205d938cf58f145f10
[ "MIT" ]
null
null
null
jamal_bot_config.py
kpatino/jamal_bot
a29731ecf067073ab786b4205d938cf58f145f10
[ "MIT" ]
6
2021-03-16T19:06:40.000Z
2021-09-04T03:13:51.000Z
jamal_bot_config.py
kpatino/jamal_bot
a29731ecf067073ab786b4205d938cf58f145f10
[ "MIT" ]
null
null
null
import yaml default_config = { "ADMIN_ROLE_ID": 19234567890, "DEFAULT_SERVER_ADDRESS": "hypixel.net", "DISCORD_API_KEY": "DISCORD_API_KEY_HERE", "OWNER_ID": 19234567890 } user_config = {} def create_config(): with open('config.yml', 'w') as f: yaml.dump(default_config, f) try: with ...
21.916667
73
0.678707
c69569519b0b192726960d6f8ad7b7c8080f209e
16,621
py
Python
homo_net/tensorflow_fcn/fcn16_vgg.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
homo_net/tensorflow_fcn/fcn16_vgg.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
homo_net/tensorflow_fcn/fcn16_vgg.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import logging from math import ceil import sys import numpy as np import tensorflow as tf VGG_MEAN = [103.939, 116.779, 123.68] class FCN16VGG: def __init__(self, vgg16_npy_path=None): ...
40.050602
79
0.55111
72007663e6252c75ced17c0fb5f48075a37f41a0
1,088
py
Python
examples/simulator_python/parameters.py
juliaLopanskaia/biostastics_article
baa734c575d4f59e683746df63b94a1691aea66b
[ "MIT" ]
1
2021-03-10T18:40:08.000Z
2021-03-10T18:40:08.000Z
examples/simulator_python/parameters.py
juliaLopanskaia/biostastics_article
baa734c575d4f59e683746df63b94a1691aea66b
[ "MIT" ]
null
null
null
examples/simulator_python/parameters.py
juliaLopanskaia/biostastics_article
baa734c575d4f59e683746df63b94a1691aea66b
[ "MIT" ]
1
2021-03-24T23:52:48.000Z
2021-03-24T23:52:48.000Z
import numpy as np N_clusters = 6 # number of clusters N_per_cluster = 10 # number of experiments per cluster true_exp_value = 1 # a true value of experimental measurement (e.g. measurement\ # with drug) true_control_value = 1 # a true value of control measurement (e.g. measurement\ ...
36.266667
80
0.647978
d6356d8a5212c5cd9fe1b72b94dbfa56080d4fad
2,352
py
Python
internal/notes/builtin-SAVE/packages/py-markdown/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/py-markdown/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/py-markdown/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
45.230769
85
0.696854
9074ea4a7be01ad832dbecabb3ed8218039f3608
9,532
py
Python
paso/pre/inputers.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
14
2019-04-14T01:02:21.000Z
2021-02-05T18:19:24.000Z
paso/pre/inputers.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
4
2019-06-07T18:30:37.000Z
2020-04-13T05:07:21.000Z
paso/pre/inputers.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
1
2020-02-20T00:48:30.000Z
2020-02-20T00:48:30.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- import pandas as pd import urllib.request # from tqdm import tqdm # from pandas.util._validators import validate_bool_kwarg from sklearn.model_selection import train_test_split import warnings warnings.filterwarnings("ignore") # paso imports from paso.base import pasoF...
25.692722
113
0.584033
6f3b51b6feaf917ded49952e2825e7097b7939a5
29
py
Python
libsaas/services/mixrank/__init__.py
MidtownFellowship/libsaas
541bb731b996b08ede1d91a235cb82895765c38a
[ "MIT" ]
155
2015-01-27T15:17:59.000Z
2022-02-20T00:14:08.000Z
libsaas/services/mixrank/__init__.py
MidtownFellowship/libsaas
541bb731b996b08ede1d91a235cb82895765c38a
[ "MIT" ]
14
2015-01-12T08:22:37.000Z
2021-06-16T19:49:31.000Z
libsaas/services/mixrank/__init__.py
MidtownFellowship/libsaas
541bb731b996b08ede1d91a235cb82895765c38a
[ "MIT" ]
43
2015-01-28T22:41:45.000Z
2021-09-21T04:44:26.000Z
from .service import MixRank
14.5
28
0.827586
13b2b1f5f3748a709a3587d95a247beca604c9e8
387
py
Python
env_dmc/Lib/site-packages/heroku3/models/invoice.py
Frank1963-mpoyi/DMC-BACKEND
845bbfb1376798c35fdde94569b6c107235eb9c3
[ "MIT" ]
109
2015-03-12T21:34:35.000Z
2022-03-22T05:36:09.000Z
heroku3/models/invoice.py
MUTLCC/herokum
6a25e6e56a1bf46ea370c22daa44383ce5a10ca2
[ "MIT" ]
102
2015-03-12T21:34:13.000Z
2022-01-18T12:17:23.000Z
heroku3/models/invoice.py
MUTLCC/herokum
6a25e6e56a1bf46ea370c22daa44383ce5a10ca2
[ "MIT" ]
88
2015-03-01T20:46:59.000Z
2022-03-22T03:59:15.000Z
# Project libraries from . import BaseResource class Invoice(BaseResource): _dates = ["created_at", "updated_at"] _ints = ["number", "credits_total", "total", "charges_total"] _strs = ["id"] _pks = ["id", "number"] def __init__(self): super(Invoice, self).__init__() def __repr__(self...
24.1875
65
0.614987
a4d414a1fb8e6c81a76fddc6e2d7a324378b169a
14,857
py
Python
frappe/email/doctype/email_account/email_account.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
null
null
null
frappe/email/doctype/email_account/email_account.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
null
null
null
frappe/email/doctype/email_account/email_account.py
olderp/frappe
92700852a8d182e3ec6c987123428c323eaa8844
[ "MIT" ]
5
2016-06-20T08:48:11.000Z
2018-12-12T09:42:31.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import imaplib import re import socket from frappe import _ from frappe.model.document import Document from frappe.utils import validate_email_add...
34.712617
144
0.726795
8aef7a1b07e21019d8c6587126af97d6b5c8585c
6,402
py
Python
py-hwaftools/orch/pkgconf.py
hwaf/hwaf
5465f73b20f1e0e0ae1a1b55fc6c5a9312f66718
[ "BSD-3-Clause" ]
2
2016-07-19T14:43:54.000Z
2022-03-21T11:45:57.000Z
py-hwaftools/orch/pkgconf.py
hwaf/hwaf
5465f73b20f1e0e0ae1a1b55fc6c5a9312f66718
[ "BSD-3-Clause" ]
null
null
null
py-hwaftools/orch/pkgconf.py
hwaf/hwaf
5465f73b20f1e0e0ae1a1b55fc6c5a9312f66718
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Package specific interpretation layered on deconf. ''' import os from . import deconf from .util import check_output, CalledProcessError, update_if, string2list from . import features as featmod from . import ups from . import rootsys def ncpus(): try: import psutil ...
30.056338
84
0.619025
a3364724c0208c6278d6369e6c73a58ceba12bd5
7,195
py
Python
tests/equilibrium/test_force.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
15
2020-12-11T14:35:19.000Z
2022-03-31T03:12:30.000Z
tests/equilibrium/test_force.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
8
2020-10-09T00:08:05.000Z
2021-11-18T00:24:20.000Z
tests/equilibrium/test_force.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
2
2021-12-28T02:29:47.000Z
2022-03-15T14:04:23.000Z
from math import sqrt import pytest import numpy as np from compas_cem.equilibrium import static_equilibrium from compas_cem.equilibrium.force_numpy import static_equilibrium_numpy # ============================================================================== # Tests - Force Equilibrium # =======================...
34.758454
80
0.493676
0aff2db8c9788c7322138744fb5ff93f3efbf7ae
1,355
py
Python
scripts/staff_public_regs.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
scripts/staff_public_regs.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
scripts/staff_public_regs.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Get public registrations for staff members. python -m scripts.staff_public_regs """ from collections import defaultdict import logging from modularodm import Q from website.models import Node, User from website.app import init_app logger = logging.getLogger('staff_public_regs') STAFF...
27.653061
97
0.621402
9a23b6d5d9e6307d61a2e867de77a574461363da
1,259
py
Python
python/one_euro_filter.py
jaantollander/OneEuroFilter
f96d1e75226bf169a0b298b2a2b301c2e1cc5f42
[ "MIT" ]
131
2019-04-01T16:49:33.000Z
2022-03-26T14:31:03.000Z
python/one_euro_filter.py
jaantollander/OneEuroFilter
f96d1e75226bf169a0b298b2a2b301c2e1cc5f42
[ "MIT" ]
null
null
null
python/one_euro_filter.py
jaantollander/OneEuroFilter
f96d1e75226bf169a0b298b2a2b301c2e1cc5f42
[ "MIT" ]
22
2019-09-22T17:37:20.000Z
2022-03-01T01:53:07.000Z
import math def smoothing_factor(t_e, cutoff): r = 2 * math.pi * cutoff * t_e return r / (r + 1) def exponential_smoothing(a, x, x_prev): return a * x + (1 - a) * x_prev class OneEuroFilter: def __init__(self, t0, x0, dx0=0.0, min_cutoff=1.0, beta=0.0, d_cutoff=1.0): """In...
27.369565
65
0.584591
0925f9b7fd1b9fb4684cdb9a3198a5b8ae91f7c4
12,695
py
Python
sdk/python/pulumi_azure_native/netapp/v20201101/snapshot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20201101/snapshot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20201101/snapshot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
45.665468
2,096
0.652934
372742632c938850da36a2e71fa6a40d1294e349
9,182
py
Python
samtranslator/plugins/api/implicit_http_api_plugin.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
1,279
2020-08-25T03:33:15.000Z
2022-03-31T09:49:22.000Z
samtranslator/plugins/api/implicit_http_api_plugin.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
797
2020-08-24T23:30:05.000Z
2022-03-31T22:28:29.000Z
samtranslator/plugins/api/implicit_http_api_plugin.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
431
2020-08-27T20:47:26.000Z
2022-03-31T23:57:55.000Z
import six from samtranslator.model.intrinsics import make_conditional from samtranslator.model.naming import GeneratedLogicalId from samtranslator.plugins.api.implicit_api_plugin import ImplicitApiPlugin from samtranslator.public.open_api import OpenApiEditor from samtranslator.public.exceptions import InvalidEventEx...
46.846939
118
0.676868
d3ace225d4c2db97dba435d501ad00c10d4bb8db
13,305
py
Python
salt/modules/freebsdports.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/modules/freebsdports.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/modules/freebsdports.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
1
2021-12-02T15:30:00.000Z
2021-12-02T15:30:00.000Z
# -*- coding: utf-8 -*- ''' Install software from the FreeBSD ``ports(7)`` system .. versionadded:: 2014.1.0 This module allows you to install ports using ``BATCH=yes`` to bypass configuration prompts. It is recommended to use the :mod:`ports state <salt.states.freebsdports>` to install ports, but it it also possible...
27.71875
79
0.602029
583c919a7a3ae54d816c47ce393267e6ac1a8258
1,090
py
Python
3_classes/mdsim/tests/test_md_trajectory.py
lpwgroup/programming-tutorial
e70a598f2a34bf87bb30f42d56940fe6f9a0e0c9
[ "BSD-3-Clause" ]
null
null
null
3_classes/mdsim/tests/test_md_trajectory.py
lpwgroup/programming-tutorial
e70a598f2a34bf87bb30f42d56940fe6f9a0e0c9
[ "BSD-3-Clause" ]
1
2018-08-22T18:26:11.000Z
2018-08-22T18:26:59.000Z
3_classes/mdsim/tests/test_md_trajectory.py
lpwgroup/programming-tutorial
e70a598f2a34bf87bb30f42d56940fe6f9a0e0c9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from mdsim.molecule import Molecule from mdsim.md_trajectory import MDTrajectory def test_init(): elems = ['He', 'He'] traj = MDTrajectory(elems) assert isinstance(traj, MDTrajectory) assert traj.elems == elems assert traj.noa == 2 assert len(traj) == traj.length == 0 def te...
28.684211
51
0.655963
8ec1e520eb793ff181bf5a59e2993b50e1a08215
596
py
Python
lib/solutions/HLO/hello_solution.py
DPNT-Sourcecode/CHK-lkqa01
f1e14b9ba48a42ab77bd4457b793278216094ed5
[ "Apache-2.0" ]
null
null
null
lib/solutions/HLO/hello_solution.py
DPNT-Sourcecode/CHK-lkqa01
f1e14b9ba48a42ab77bd4457b793278216094ed5
[ "Apache-2.0" ]
null
null
null
lib/solutions/HLO/hello_solution.py
DPNT-Sourcecode/CHK-lkqa01
f1e14b9ba48a42ab77bd4457b793278216094ed5
[ "Apache-2.0" ]
null
null
null
# noinspection PyUnusedLocal # friend_name = unicode string """ In order to complete the round you need to implement the following method: hello(String) -> String Where: - param[0] = a String. Ignore for now. - @return = a String containing a message """ def hello(friend_name: float = None) -> str: ""...
23.84
79
0.689597
9e233d4253f2ec77604fd4850aa25981aaa29aae
1,161
py
Python
services/web/apps/inv/interfaceclassificationrule/views.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
services/web/apps/inv/interfaceclassificationrule/views.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
services/web/apps/inv/interfaceclassificationrule/views.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # inv.interfaceclassificationrule application # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ------------------------------------...
33.171429
82
0.590009
72f6b1ecd125c1b89792320988dfb095ed119e84
9,508
py
Python
openelex/us/fl/load.py
ColCarroll/openelections-core
2722235181ccb4099c543ef6232570819a3e56fc
[ "MIT" ]
null
null
null
openelex/us/fl/load.py
ColCarroll/openelections-core
2722235181ccb4099c543ef6232570819a3e56fc
[ "MIT" ]
null
null
null
openelex/us/fl/load.py
ColCarroll/openelections-core
2722235181ccb4099c543ef6232570819a3e56fc
[ "MIT" ]
1
2019-11-23T08:18:55.000Z
2019-11-23T08:18:55.000Z
from builtins import str from builtins import object import logging import unicodecsv from openelex.base.load import BaseLoader from openelex.lib.text import slugify, ocd_type_id from openelex.models import RawResult from .datasource import Datasource class LoadResults(object): """Entry point for data loading. ...
36.429119
346
0.601704
491557c0d15c94a036184685fa1d74e061913326
17,465
py
Python
py-json/LANforge/LFRequest.py
meterup/lanforge-scripts
06beca75aa498b3ca2d3d905a8a13cefd8932f94
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
11
2017-10-09T13:15:53.000Z
2022-02-10T15:43:20.000Z
py-json/LANforge/LFRequest.py
meterup/lanforge-scripts
06beca75aa498b3ca2d3d905a8a13cefd8932f94
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
5
2017-10-16T14:27:46.000Z
2021-10-13T13:15:33.000Z
py-json/LANforge/LFRequest.py
meterup/lanforge-scripts
06beca75aa498b3ca2d3d905a8a13cefd8932f94
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
11
2020-03-26T06:43:24.000Z
2022-03-18T19:18:21.000Z
#!/usr/bin/env python3 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Class holds default settings for json requests - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - import sys import os import pprint import urllib from urllib import request import json if sys.ve...
40.806075
135
0.534097
77ab9424ac3094ebca8e20b4eab3e52b27977c03
7,874
py
Python
salt/states/postgres_group.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
5
2018-05-01T20:51:14.000Z
2021-11-09T05:43:00.000Z
salt/states/postgres_group.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/states/postgres_group.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' Management of PostgreSQL groups (roles) ======================================= The postgres_group module is used to create and manage Postgres groups. .. code-block:: yaml frank: postgres_group.present ''' from __future__ import absolute_import, unicode_literals, print_function...
28.737226
96
0.583058
78018eba3d5fdf00fe78f28ce0c246865471cef5
2,082
py
Python
everes_event/admin.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
everes_event/admin.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
everes_event/admin.py
tsuyukimakoto/django-every_resources
caf6fd55c9d1f1a7a611bbbe740d1ee59ecdd14c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2008 Makoto Tsuyuki All rights reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, th...
38.555556
71
0.744957
35f1ca3dd264237599c1874bb4de9d6b3f954d31
3,400
py
Python
investment_calculator.py
Hyped-247/investment_calculator
99c757ef674ae39ab6a6524b401d14c302c7d27f
[ "MIT" ]
1
2022-03-25T11:52:38.000Z
2022-03-25T11:52:38.000Z
investment_calculator.py
Hyped-247/investment_calculator
99c757ef674ae39ab6a6524b401d14c302c7d27f
[ "MIT" ]
null
null
null
investment_calculator.py
Hyped-247/investment_calculator
99c757ef674ae39ab6a6524b401d14c302c7d27f
[ "MIT" ]
null
null
null
""" @author: Mohammad Mahjoub @date: May, 25, 2018 This class is going to calculate how many years will it take to generate passive for a given income from renting apts. """ import math class Calculator: def __init__(self, passive_income_desired_yearly, yearly_savings, starting_year, price_of_one...
45.333333
118
0.637059
32f65ab05fc357d58a9af4aa04272eb8d3cab679
26,634
py
Python
ptf/base_test.py
ray-milkey/onos-p4-tutorial
3e0fd1720a1ef373ce16b3a5fda2c1530bc57a38
[ "Apache-2.0" ]
null
null
null
ptf/base_test.py
ray-milkey/onos-p4-tutorial
3e0fd1720a1ef373ce16b3a5fda2c1530bc57a38
[ "Apache-2.0" ]
null
null
null
ptf/base_test.py
ray-milkey/onos-p4-tutorial
3e0fd1720a1ef373ce16b3a5fda2c1530bc57a38
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-present Barefoot Networks, Inc. # Copyright 2018-present Open Networking Foundation # # 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/LICEN...
38.322302
99
0.624953
1229da726da4df61de43170721fa708f3d83f04c
65,562
py
Python
env/lib/python3.5/site-packages/passlib/tests/test_totp.py
Udolf15/recommedMeMovies
be5ae74acd98e3f93beaaa5bb55623974fb24247
[ "MIT" ]
172
2018-01-03T21:07:28.000Z
2022-03-08T11:12:08.000Z
env/lib/python3.5/site-packages/passlib/tests/test_totp.py
Udolf15/recommedMeMovies
be5ae74acd98e3f93beaaa5bb55623974fb24247
[ "MIT" ]
15
2018-01-04T00:27:02.000Z
2022-02-23T19:19:27.000Z
env/lib/python3.5/site-packages/passlib/tests/test_totp.py
Udolf15/recommedMeMovies
be5ae74acd98e3f93beaaa5bb55623974fb24247
[ "MIT" ]
37
2018-01-03T21:19:13.000Z
2022-03-10T21:41:18.000Z
"""passlib.tests -- test passlib.totp""" #============================================================================= # imports #============================================================================= # core import datetime from functools import partial import logging; log = logging.getLogger(__name__) import s...
40.899563
125
0.524664
c73001270d0fab021da3ee049c46db47e2edf653
18,742
py
Python
git/diff.py
BeayemX/GitPython
96ef30e511dcf28edf4a76dc0f99d88a0550b714
[ "BSD-3-Clause" ]
4
2019-09-05T07:46:32.000Z
2021-02-24T21:19:51.000Z
git/diff.py
BeayemX/GitPython
96ef30e511dcf28edf4a76dc0f99d88a0550b714
[ "BSD-3-Clause" ]
10
2017-05-10T08:10:23.000Z
2020-03-23T10:23:37.000Z
git/diff.py
BeayemX/GitPython
96ef30e511dcf28edf4a76dc0f99d88a0550b714
[ "BSD-3-Clause" ]
38
2017-04-26T14:13:37.000Z
2021-06-24T11:36:38.000Z
# diff.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import re from git.cmd import handle_process_output from git.compat import ( defenc, PY3 ) from...
36.181467
107
0.567015
9baf56c31b24c287611dcfb71d801db1c53f677c
2,258
py
Python
backend/coffeedia_group_32397/urls.py
crowdbotics-apps/coffeedia-group-32397
360b002c1c9851bf1e6ac714714e1c8dd2b85f51
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/coffeedia_group_32397/urls.py
crowdbotics-apps/coffeedia-group-32397
360b002c1c9851bf1e6ac714714e1c8dd2b85f51
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/coffeedia_group_32397/urls.py
crowdbotics-apps/coffeedia-group-32397
360b002c1c9851bf1e6ac714714e1c8dd2b85f51
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""coffeedia_group_32397 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home...
35.84127
87
0.713906
a3e505da1dc72295b1eb39366cebe336b7786f5c
23,797
py
Python
python/ccxt/lbank.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
3
2020-03-04T06:38:18.000Z
2022-01-23T13:40:12.000Z
python/ccxt/lbank.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
null
null
null
python/ccxt/lbank.py
nagabrahmam-mantha/ccxt
b7ec0c03b935a63064b8b73226b39f1099933969
[ "MIT" ]
3
2021-08-14T18:53:01.000Z
2021-12-21T22:36:42.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
38.136218
126
0.494558
dc210ddb14f0c3138bfa0c236dfad44ce3b77921
520
py
Python
parlai/zoo/glove_vectors/build.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
17
2020-03-27T17:25:52.000Z
2021-11-19T03:46:25.000Z
parlai/zoo/glove_vectors/build.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
3
2020-11-01T10:12:52.000Z
2021-12-10T09:06:44.000Z
parlai/zoo/glove_vectors/build.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
3
2020-05-04T04:37:42.000Z
2021-07-19T11:09:37.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """DrQA model (reader only) for SQuAD. """ from parlai.core.build_data import download_models def download(datapath):...
28.888889
71
0.7
8f8cca7f2379d574a58292cdd90c8dec7bcaf715
2,487
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.055556
176
0.669883
3ed820d062d3d9a638567645b6072eab1562f827
68,672
py
Python
pycad/py_src/primitives.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
pycad/py_src/primitives.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
pycad/py_src/primitives.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE...
34.165174
230
0.603492
781f6ef9fe5cc28b3d5510c3f344c5982404ab23
2,130
py
Python
app/ddbb.py
Aouei/Ceramicaporfolio
41c08f9b7e9ae969854962c92dac2b54535a17e5
[ "CC0-1.0" ]
null
null
null
app/ddbb.py
Aouei/Ceramicaporfolio
41c08f9b7e9ae969854962c92dac2b54535a17e5
[ "CC0-1.0" ]
null
null
null
app/ddbb.py
Aouei/Ceramicaporfolio
41c08f9b7e9ae969854962c92dac2b54535a17e5
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from pymongo import MongoClient from passlib.hash import sha256_crypt client = MongoClient("mongodb+srv://manolorooter:Iv6u7PQjQjcsjBY7@macramehuetorvega.vuchl.mongodb.net/MacrameHuetorVega?retryWrites=true&w=majority") db = client.MacrameHuetorVega def addUser(name, la...
30
155
0.692019
33f1c4bb330063862fcf9f9c32d32622b70ade6a
420
py
Python
v1/backend_movies/project/services/models/movie_model.py
icod/testautomation_casus
c55fc1a75f76aae500cdd57217e050364a7d5436
[ "MIT" ]
null
null
null
v1/backend_movies/project/services/models/movie_model.py
icod/testautomation_casus
c55fc1a75f76aae500cdd57217e050364a7d5436
[ "MIT" ]
3
2020-04-02T13:45:23.000Z
2021-01-09T09:41:50.000Z
v1/backend_movies/project/services/models/movie_model.py
joerivrij/testautomation_workshop
1fb3479fd9e74055233c996eece5cd7e1cabdafa
[ "MIT" ]
2
2021-10-31T18:59:55.000Z
2022-02-01T16:01:52.000Z
class MovieObject: # Common base class for all mongo objects def __init__(self, title, year, imdb, type, description, image): self.title = title self.year = year self.imdb = imdb self.type = type self.image = image self.description = description class SuccessMod...
28
68
0.619048
c7f0a337dd4f2cfc69472b274b12da41f2a7585a
3,268
py
Python
app.py
juan-carvajal/tuplaza-file-processing
7d062e4aa6e890284f29090e310d95c47cfb208e
[ "MIT" ]
null
null
null
app.py
juan-carvajal/tuplaza-file-processing
7d062e4aa6e890284f29090e310d95c47cfb208e
[ "MIT" ]
1
2020-06-20T16:50:46.000Z
2020-06-20T16:50:46.000Z
app.py
juan-carvajal/tuplaza-file-processing
7d062e4aa6e890284f29090e310d95c47cfb208e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from werkzeug.utils import secure_filename from flask import send_file import pandas as pd from zipfile import ZipFile app = Flask(__name__,template_folder='./templates') def transform_shipping_method(value): if isinstance(value, str): split = value.split(...
36.311111
303
0.629131
8260a87b5ad90f5fc8c6e8967f800846c8bc15bc
613
py
Python
flower_bed_designer/blueprints/plant/schemas.py
keithly/flower-bed-designer
598cc14d60f822b91557df2328844da99b8040b7
[ "MIT" ]
null
null
null
flower_bed_designer/blueprints/plant/schemas.py
keithly/flower-bed-designer
598cc14d60f822b91557df2328844da99b8040b7
[ "MIT" ]
null
null
null
flower_bed_designer/blueprints/plant/schemas.py
keithly/flower-bed-designer
598cc14d60f822b91557df2328844da99b8040b7
[ "MIT" ]
null
null
null
plant_schema = { 'common_name': {'required': True, 'type': 'string'}, 'genus': {'required': True, 'type': 'string'}, 'species': {'required': True, 'type': 'string'}, 'family': {'required': True, 'type': 'string'}, 'rhizomatous': {'type': 'boolean'}, 'garden_friendly': {'type': 'boolean'} } bed_...
32.263158
79
0.549755
c0078ae938e6e69c30a80284cc7b87730436926f
24,543
py
Python
futu/common/pb/Notify_pb2.py
foundations/py-futu-api
b8f9fb1f26f35f99630ca47863f5595b6e635533
[ "Apache-2.0" ]
858
2018-11-12T12:54:56.000Z
2022-03-10T17:35:43.000Z
futu/common/pb/Notify_pb2.py
EricChengg/hongkong-futu-user-investment-report-generater
d450260a107f9e053036c31b05b8290b7b22c237
[ "Apache-2.0" ]
113
2018-11-12T01:52:31.000Z
2022-02-27T03:53:07.000Z
futu/common/pb/Notify_pb2.py
EricChengg/hongkong-futu-user-investment-report-generater
d450260a107f9e053036c31b05b8290b7b22c237
[ "Apache-2.0" ]
201
2018-11-19T08:32:45.000Z
2022-03-23T06:39:02.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Notify.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
37.758462
2,807
0.738255
bcd6ae4e61606d1ca7c5519fc0802be73f08ef41
7,840
py
Python
contrib/bitrpc/bitrpc.py
jessejusoli/dollylite
b2fe604db0a6ab4c926958addca25caf3bccadf1
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
jessejusoli/dollylite
b2fe604db0a6ab4c926958addca25caf3bccadf1
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
jessejusoli/dollylite
b2fe604db0a6ab4c926958addca25caf3bccadf1
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
24.123077
79
0.668367
95405338e22284ef8d920994d1e043326bed19ea
2,373
py
Python
benchmarking/platforms/android/android_driver.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
benchmarking/platforms/android/android_driver.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
benchmarking/platforms/android/android_driver.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ################################...
32.958333
78
0.543616
bbd62b7cf510c7cc1189a255ecfab71e8bc8b3b4
2,226
py
Python
app.py
nukemecha/sqlalchemy-challenge
e7cfb226a5639ca6a605a880a52aaba113e7c59c
[ "ADSL" ]
null
null
null
app.py
nukemecha/sqlalchemy-challenge
e7cfb226a5639ca6a605a880a52aaba113e7c59c
[ "ADSL" ]
null
null
null
app.py
nukemecha/sqlalchemy-challenge
e7cfb226a5639ca6a605a880a52aaba113e7c59c
[ "ADSL" ]
null
null
null
from flask import Flask from flask import jsonify import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func import numpy as np # setup db & reflect it engine = create_engine("sqlite:///Resources/hawaii.sqlite") Base = automap_bas...
22.26
78
0.615454
a4a9e8bff297509ed1f53f6bdd92da13f5b10e5b
340
py
Python
code/tmp_rtrip/ctypes/test/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/ctypes/test/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/ctypes/test/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
import os import unittest from test import support ctypes = support.import_module('ctypes') ctypes_symbols = dir(ctypes) def need_symbol(name): return unittest.skipUnless(name in ctypes_symbols, '{!r} is required'. format(name)) def load_tests(*args): return support.load_package_tests(os.path.dirnam...
22.666667
74
0.747059
63c3820cce0e68dc935298ba7e6662bf90e5399a
4,842
py
Python
openstack_monitoring/openstack/neutron.py
tobias-urdin/openstack-monitoring
f9636aeb115e28a385a7485fe03f82cab69b6452
[ "Apache-2.0" ]
2
2016-10-11T14:58:18.000Z
2016-10-12T06:22:31.000Z
openstack_monitoring/openstack/neutron.py
tobias-urdin/openstack-monitoring
f9636aeb115e28a385a7485fe03f82cab69b6452
[ "Apache-2.0" ]
null
null
null
openstack_monitoring/openstack/neutron.py
tobias-urdin/openstack-monitoring
f9636aeb115e28a385a7485fe03f82cab69b6452
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # OpenStack Monitoring # Copyright (C) 2015 Tobias Urdin # # 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/license...
28.315789
74
0.530979
05d633a488489a7d94ebc659e689bf9b9b991b0d
4,893
py
Python
pretrained_word_embeddings.py
harkous/keras-external-embeddings
be4bbe2b638b95eae66d5e971a916d19ea9f26c6
[ "MIT" ]
2
2017-07-18T17:38:01.000Z
2018-07-10T17:41:18.000Z
pretrained_word_embeddings.py
harkous/keras-external-embeddings
be4bbe2b638b95eae66d5e971a916d19ea9f26c6
[ "MIT" ]
null
null
null
pretrained_word_embeddings.py
harkous/keras-external-embeddings
be4bbe2b638b95eae66d5e971a916d19ea9f26c6
[ "MIT" ]
null
null
null
'''This script loads pre-trained word embeddings (GloVe embeddings) into a frozen Keras Embedding layer, and uses it to train a text classification model on the 20 Newsgroup dataset (classication of newsgroup messages into 20 different categories). GloVe embedding data can be found at: http://nlp.stanford.edu/data/glo...
32.838926
73
0.689352
63c449ad6a48c6b97e03c6b069404d7a3cf1cdf0
5,320
py
Python
recipes/pulseaudio/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
null
null
null
recipes/pulseaudio/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
null
null
null
recipes/pulseaudio/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
null
null
null
from conans import ConanFile, tools, AutoToolsBuildEnvironment, RunEnvironment from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.29.0" class PulseAudioConan(ConanFile): name = "pulseaudio" description = "PulseAudio is a sound system for POSIX OSes, meaning that it is ...
40.610687
115
0.609962
6130a4c8566bae9903852d48a19370c413f1e645
2,350
py
Python
awesome_cli/commands/awesome_cli_apps.py
mlouielu/awesome-cli
db67c92bf3ce45862d3ec604dd3bc941e40fc895
[ "MIT" ]
3
2021-07-08T15:17:01.000Z
2021-10-21T05:47:32.000Z
awesome_cli/commands/awesome_cli_apps.py
mlouielu/awesome-cli
db67c92bf3ce45862d3ec604dd3bc941e40fc895
[ "MIT" ]
null
null
null
awesome_cli/commands/awesome_cli_apps.py
mlouielu/awesome-cli
db67c92bf3ce45862d3ec604dd3bc941e40fc895
[ "MIT" ]
1
2021-07-08T18:43:28.000Z
2021-07-08T18:43:28.000Z
import os import pathlib from cleo import Command from prompt_toolkit.completion import WordCompleter from prompt_toolkit.shortcuts import CompleteStyle, prompt, clear from awesome_cli import awesome_parser PACKAGE_DIRECTORY = pathlib.Path( os.path.dirname(os.path.abspath(awesome_parser.__file__)) ) MARKDOWN_PA...
29.746835
88
0.526383
6256c2f311f95b8a1ff362910690cea7bd547946
8,916
py
Python
test/functional/wallet_import_rescan.py
1515295/Iridium
694c388b85680629364f683d8dd401c68975b900
[ "MIT" ]
null
null
null
test/functional/wallet_import_rescan.py
1515295/Iridium
694c388b85680629364f683d8dd401c68975b900
[ "MIT" ]
null
null
null
test/functional/wallet_import_rescan.py
1515295/Iridium
694c388b85680629364f683d8dd401c68975b900
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
47.425532
116
0.654666
de98f087f38576ef45b0afa2bb53915033acd72c
2,202
py
Python
run/test.py
sangttruong/stereonet
a6c2edd75a7a17ee4637bd0f16e1b0f4fb9821ba
[ "MIT" ]
2
2021-07-07T14:16:27.000Z
2022-03-04T17:00:45.000Z
run/test.py
sangttruong/stereonet
a6c2edd75a7a17ee4637bd0f16e1b0f4fb9821ba
[ "MIT" ]
2
2021-07-08T02:45:12.000Z
2021-07-08T02:45:39.000Z
run/test.py
sangttruong/stereonet
a6c2edd75a7a17ee4637bd0f16e1b0f4fb9821ba
[ "MIT" ]
null
null
null
import os, math, torch, kora.install.rdkit, csv import pandas as pd from model.parsing import parse_train_args from data_model.data import construct_loader from util import Standardizer, create_logger, get_loss_func import numpy as np import os, sys, inspect, torch, csv, copy currentdir = os.path.dirname(os.path.absp...
42.346154
208
0.777929
63bbcd4821b7a5a060c078271edc169f9bbaa4e6
12,139
py
Python
yaaredis/sentinel.py
talkiq/aredis
01e3fdd5ccf80843c56f5932952eb6ef0a697b33
[ "MIT" ]
13
2021-06-08T23:44:00.000Z
2022-03-23T22:48:17.000Z
yaaredis/sentinel.py
talkiq/yaaredis
01e3fdd5ccf80843c56f5932952eb6ef0a697b33
[ "MIT" ]
10
2021-06-09T00:03:20.000Z
2022-03-22T10:37:08.000Z
yaaredis/sentinel.py
talkiq/aredis
01e3fdd5ccf80843c56f5932952eb6ef0a697b33
[ "MIT" ]
1
2021-11-26T16:46:31.000Z
2021-11-26T16:46:31.000Z
import os import random import weakref from .client import StrictRedis from .connection import Connection from .exceptions import ConnectionError # pylint: disable=redefined-builtin from .exceptions import ReadOnlyError from .exceptions import ResponseError from .exceptions import TimeoutError # pylint: disable=rede...
39.540717
79
0.638026
43e5911ebeb447683f1515a86042e6b86a58adfc
1,252
py
Python
data/p2DJ/New/program/pyquil/startPyquil228.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/pyquil/startPyquil228.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/pyquil/startPyquil228.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=16 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 p...
22.763636
64
0.596645
852a7724ae53abfe59bad8283d2a4cda5959172c
213
py
Python
ghstats/app/templatetags.py
nocarryr/gh-stats-python
7d43a5848ed3c35ce0934cecbede7b4610f885b1
[ "MIT" ]
null
null
null
ghstats/app/templatetags.py
nocarryr/gh-stats-python
7d43a5848ed3c35ce0934cecbede7b4610f885b1
[ "MIT" ]
null
null
null
ghstats/app/templatetags.py
nocarryr/gh-stats-python
7d43a5848ed3c35ce0934cecbede7b4610f885b1
[ "MIT" ]
null
null
null
def list_to_str(value): if not isinstance(value, list): value = list(value) return ','.join([str(v) for v in value]) def setup(environment): environment.filters['list_to_str'] = list_to_str
21.3
52
0.661972
a4484bd62a48b1045fa23b94d9b7483a7f65aba9
9,097
py
Python
seleniumwire/proxy/storage.py
pawanpaudel93/selenium-wire
f069c38fec013e0763165083b62037dcd353eb1f
[ "MIT" ]
null
null
null
seleniumwire/proxy/storage.py
pawanpaudel93/selenium-wire
f069c38fec013e0763165083b62037dcd353eb1f
[ "MIT" ]
null
null
null
seleniumwire/proxy/storage.py
pawanpaudel93/selenium-wire
f069c38fec013e0763165083b62037dcd353eb1f
[ "MIT" ]
null
null
null
import gzip import logging import os import pickle import re import shutil import threading import uuid import zlib from datetime import datetime, timedelta from io import BytesIO log = logging.getLogger(__name__) # Storage folders older than this are cleaned up. REMOVE_DATA_OLDER_THAN_DAYS = 1 class RequestStorage...
34.458333
117
0.606024
6e47dd0527774292ac59b6b16b029ea3e444f158
3,448
py
Python
options/train_options.py
eayumba/pytorch-CycleGAN-and-pix2pix
7217e9467556e71111b1497589e739d88c53802a
[ "BSD-3-Clause" ]
1
2021-06-02T09:53:06.000Z
2021-06-02T09:53:06.000Z
options/train_options.py
eayumba/pytorch-CycleGAN-and-pix2pix
7217e9467556e71111b1497589e739d88c53802a
[ "BSD-3-Clause" ]
null
null
null
options/train_options.py
eayumba/pytorch-CycleGAN-and-pix2pix
7217e9467556e71111b1497589e739d88c53802a
[ "BSD-3-Clause" ]
1
2021-06-02T10:01:18.000Z
2021-06-02T10:01:18.000Z
from .base_options import BaseOptions class TrainOptions(BaseOptions): """This class includes training options. It also includes shared options defined in BaseOptions. """ def initialize(self, parser): parser = BaseOptions.initialize(self, parser) # visdom and HTML visualization para...
84.097561
210
0.713457
9bbdbd8b1621c09d64907b08319688e22132feb7
2,070
py
Python
environment/gym_environment.py
floodsung/unreal
bb9ec4fc9724fa30a4c262b0dd79964c1e1127cb
[ "Apache-2.0" ]
1
2019-01-27T06:34:53.000Z
2019-01-27T06:34:53.000Z
environment/gym_environment.py
floodsung/unreal
bb9ec4fc9724fa30a4c262b0dd79964c1e1127cb
[ "Apache-2.0" ]
null
null
null
environment/gym_environment.py
floodsung/unreal
bb9ec4fc9724fa30a4c262b0dd79964c1e1127cb
[ "Apache-2.0" ]
1
2017-04-01T20:16:55.000Z
2017-04-01T20:16:55.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import cv2 import gym from constants import ENV_NAME from environment import environment class GymEnvironment(environment.Environment): @staticmethod def get_act...
28.75
66
0.69372
1eaa5a1000b31c563e19d15609fd35f49ced6b64
8,038
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/tests/test_helpers.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/tests/test_helpers.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/tests/test_helpers.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Tests for helper function provided by site_configuration app. """ from django.test import TestCase from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.core.djangoapps.site_configuration.tests.test_util import ( with_site_configuration, with_site_configurat...
43.684783
120
0.700423
760c86a76cd3d7f46986ba3b3617e9016d45c9e1
534
py
Python
osr2mp4/ImageProcess/PrepareFrames/Components/ArrowWarning.py
siveroo/osr2mp4-core
7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9
[ "MIT" ]
103
2020-06-07T15:28:41.000Z
2022-03-01T17:07:35.000Z
osr2mp4/ImageProcess/PrepareFrames/Components/ArrowWarning.py
siveroo/osr2mp4-core
7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9
[ "MIT" ]
50
2020-06-07T10:53:21.000Z
2021-12-19T14:47:47.000Z
osr2mp4/ImageProcess/PrepareFrames/Components/ArrowWarning.py
siveroo/osr2mp4-core
7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9
[ "MIT" ]
21
2020-07-12T16:02:35.000Z
2022-03-01T17:07:37.000Z
from PIL import Image from osr2mp4.EEnum.EImageFrom import ImageFrom from osr2mp4.ImageProcess.PrepareFrames.YImage import YImage arrowwarning = "arrow-warning" playwarningarrow = "play-warningarrow" def prepare_arrowwarning(scale, settings): """ :param settings: :param scale: float :return: [PIL.Image] """ y...
23.217391
60
0.762172
f354d9395cef3e94aba853bc081967cd5f9c41e5
9,759
py
Python
8 - Classes/rpg_simples.py
SamuelHDieterich/Walkthrough-Python
22ca407d55af33f1aeb3f78a5b5019d76d2d3cd9
[ "MIT" ]
3
2021-06-09T23:04:34.000Z
2021-06-10T16:54:58.000Z
8 - Classes/rpg_simples.py
SamuelHDieterich/Walkthrough-Python
22ca407d55af33f1aeb3f78a5b5019d76d2d3cd9
[ "MIT" ]
null
null
null
8 - Classes/rpg_simples.py
SamuelHDieterich/Walkthrough-Python
22ca407d55af33f1aeb3f78a5b5019d76d2d3cd9
[ "MIT" ]
null
null
null
# RPG SIMPLES # BIBLIOTECAS import os # Sistema operacional import sys # Sistema-interpretador from random import random # Gerador de números aleatórios [0,1) from time import sleep # Aguardar # CLASSES class Jogador(): """ # JOGADOR --------- Classe primá...
28.043103
117
0.542679
23d6c57e63ba0cd174826bbd06a37bca004d992b
1,173
py
Python
domains/nav/problems/training/problem1053_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/nav/problems/training/problem1053_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/nav/problems/training/problem1053_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_springDoor import * from timer import DURATION from state import state, rv DURATION.TIME = { 'unlatch1': 5, 'unlatch2': 5, 'holdDoor': 2, 'passDoor': 3, 'releaseDoor': 2, 'closeDoors': 3, 'move': 7, 'take': 2, 'put': 2, } DURATION.COUNTER = { ...
23.46
73
0.492754
c47077e0663342a7f67e1f71a558c02db849ade5
5,194
py
Python
ps2/PeachPy/tor_pak2.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
2
2021-06-17T14:56:59.000Z
2021-11-04T02:50:34.000Z
ps2/PeachPy/tor_pak2.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
null
null
null
ps2/PeachPy/tor_pak2.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
3
2021-06-17T14:57:16.000Z
2021-11-29T19:32:40.000Z
import sys import os import json import struct import re import subprocess import shutil import string tags = {0x5: 'color', 0xB: 'name', 0xF: 'voice', 0x06: 'size', 0xC: 'item', 0xD: 'button'} names = {1: 'Veigue', 2: 'Mao', 3: 'Eugene', 4: 'Annie', 5: 'Tytree', 6: 'Hilda', 7: 'Claire/Agarte', 8:'Agarte/Clai...
36.577465
91
0.458221
57e8bacbc694c25993b69b9d0c7237a4ff871ca3
469
py
Python
apps/courses/migrations/0006_auto_20190221_1615.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
3
2020-03-16T02:49:59.000Z
2022-03-21T15:04:44.000Z
apps/courses/migrations/0006_auto_20190221_1615.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
1
2020-12-10T08:04:25.000Z
2020-12-10T08:04:25.000Z
apps/courses/migrations/0006_auto_20190221_1615.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
2
2020-05-01T08:16:25.000Z
2020-07-21T00:12:06.000Z
# Generated by Django 2.1.7 on 2019-02-21 16:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0005_auto_20190220_1745'), ] operations = [ migrations.AlterField( model_name='course', name='course_imag...
24.684211
127
0.63113
3b434cb7c62905637ce139ed1bffa4e139ec746e
1,356
py
Python
saltdash/__init__.py
lincolnloop/saltdash
4b0268cf9ce0320272f0182f33b046d4ab7766a2
[ "MIT" ]
19
2018-01-30T00:10:14.000Z
2021-11-11T10:26:56.000Z
saltdash/__init__.py
lincolnloop/saltdash
4b0268cf9ce0320272f0182f33b046d4ab7766a2
[ "MIT" ]
118
2018-01-26T18:27:47.000Z
2022-02-10T07:31:20.000Z
saltdash/__init__.py
lincolnloop/saltdash
4b0268cf9ce0320272f0182f33b046d4ab7766a2
[ "MIT" ]
2
2021-07-13T00:32:02.000Z
2021-11-11T10:27:03.000Z
import base64 import os from goodconf import GoodConf, Value os.environ.setdefault("DJANGO_SETTINGS_MODULE", "saltdash.settings") class Config(GoodConf): """Configuration for saltdash""" DEBUG = Value(default=False, help="Enable debugging.") SECRET_KEY = Value( initial=lambda: base64.b64encode(...
30.133333
87
0.664454
1bc14bc3ce92c5bafc274f8cb0b1a4a9e4a67796
2,444
py
Python
setup.py
guibv/sqlp
44ec371e11da7747f6c5998a3dfd2acb980b4313
[ "BSD-3-Clause" ]
5
2016-01-19T09:21:22.000Z
2020-11-07T05:31:20.000Z
setup.py
guibv/sqlp
44ec371e11da7747f6c5998a3dfd2acb980b4313
[ "BSD-3-Clause" ]
null
null
null
setup.py
guibv/sqlp
44ec371e11da7747f6c5998a3dfd2acb980b4313
[ "BSD-3-Clause" ]
2
2018-09-25T13:51:35.000Z
2019-09-06T20:48:10.000Z
# Copyright (C) 2014 Guilherme Balena Versiani, guibv42@gmail.com # # This setup script is part of python-sqlparse and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php. import re import sys try: from setuptools import setup, find_packages packages = find_packages(exclude...
29.804878
99
0.642799
5a8facd53b66aadb1c444e3dbe469d085d7823a6
404
py
Python
conditions.py
ramprakashmu/python
667657e46e748759006759dec5d95a172946f3a8
[ "Apache-2.0" ]
null
null
null
conditions.py
ramprakashmu/python
667657e46e748759006759dec5d95a172946f3a8
[ "Apache-2.0" ]
null
null
null
conditions.py
ramprakashmu/python
667657e46e748759006759dec5d95a172946f3a8
[ "Apache-2.0" ]
null
null
null
a, b = 9, 10 ''' normal if condition but having extra ordinary feature that we can insert values into string by using {} and format() method. ''' if a > b: print("a({}) is greater than b({})".format(a, b)) else: print("a({}) is less than b({})".format(a, b)) ''' One more condition like ternary operat...
28.857143
125
0.623762
413fbb9dbd3bf8b6382e37f21aef555370fab2d7
26,884
py
Python
datamodels/miri_dark_reference_model.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
null
null
null
datamodels/miri_dark_reference_model.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
null
null
null
datamodels/miri_dark_reference_model.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ An extension to the standard STScI data model for MIRI dark reference data. Essentially the same as the MIRI measured image data model, with additional metadata. :Reference: The STScI jwst.datamodels documentation. See https://jwst-pipeline.readthedocs.io/en/latest...
43.221865
96
0.568479
c131bd9d4ca0194b3b6fdf023a882e057b1fe6c5
2,745
py
Python
lib/session.py
rishiredd789/Instagram-
746a52b597223bcecda18a20430b3d6bc994d291
[ "MIT" ]
null
null
null
lib/session.py
rishiredd789/Instagram-
746a52b597223bcecda18a20430b3d6bc994d291
[ "MIT" ]
null
null
null
lib/session.py
rishiredd789/Instagram-
746a52b597223bcecda18a20430b3d6bc994d291
[ "MIT" ]
null
null
null
# Date: 14/02/2020 # Author: SKAR # Description: Session Handler import json import sqlite3 from os import remove from sys import version_info from lib.const import db_path from os.path import exists as path from csv import DictWriter, DictReader class DatabaseWrapper: def __init__(self, db_name)...
25.654206
101
0.551913
b293a42578f53f3ab92e57704290476f4fa205f5
8,925
py
Python
compressor/management/commands/compress.py
muhuk/django_compressor
84921a89efb36f7354f12485d23814c9ec30bf39
[ "BSD-3-Clause" ]
1
2018-03-19T21:01:55.000Z
2018-03-19T21:01:55.000Z
compressor/management/commands/compress.py
muhuk/django_compressor
84921a89efb36f7354f12485d23814c9ec30bf39
[ "BSD-3-Clause" ]
null
null
null
compressor/management/commands/compress.py
muhuk/django_compressor
84921a89efb36f7354f12485d23814c9ec30bf39
[ "BSD-3-Clause" ]
null
null
null
import os import sys from fnmatch import fnmatch from optparse import make_option try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.core.management.base import NoArgsCommand, CommandError from django.template import Context, Template, TemplateDoesNotExist, Temp...
44.625
88
0.561345
9f14991d15c32b2fcd7b6b1ee6636785e6dbf11b
2,223
py
Python
turtlebot3_example/setup.py
hitxiaomi/turtlebot3
dd56993b9b5cf2535d5df9d1b0d6f05c4983897a
[ "Apache-2.0" ]
null
null
null
turtlebot3_example/setup.py
hitxiaomi/turtlebot3
dd56993b9b5cf2535d5df9d1b0d6f05c4983897a
[ "Apache-2.0" ]
null
null
null
turtlebot3_example/setup.py
hitxiaomi/turtlebot3
dd56993b9b5cf2535d5df9d1b0d6f05c4983897a
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages from setuptools import setup package_name = 'turtlebot3_example' setup( name=package_name, version='2.1.2', packages=find_packages(), data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name,...
41.166667
103
0.587494
a4437be1bf4ed4056be982de342564c40054869c
7,893
py
Python
algorithms/erm_match.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
algorithms/erm_match.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
algorithms/erm_match.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
import sys import numpy as np import argparse import copy import random import json import torch from torch.autograd import grad from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image from torch.autograd import Variable imp...
50.596154
204
0.54542
d2c8a627b63fe6dd6927bfc7131b13b6cb0e6c20
2,723
py
Python
tests/test_add_extreme_points_channel.py
benduffy1/MONAI
046e625b09262261373d7b8039fb652547201368
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_add_extreme_points_channel.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
null
null
null
tests/test_add_extreme_points_channel.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
1
2020-05-27T12:53:58.000Z
2020-05-27T12:53:58.000Z
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
34.468354
89
0.486228
4b86ed130b0dd46c54ccf6d7da0c80844210e838
4,716
py
Python
scripts/crawl.py
willvivi/grams_crawler
6c29c85f49fb60c4a9f2716d82eef9aa79cadb76
[ "MIT" ]
2
2018-12-11T20:18:34.000Z
2019-01-09T10:16:43.000Z
scripts/crawl.py
willvivi/grams_crawler
6c29c85f49fb60c4a9f2716d82eef9aa79cadb76
[ "MIT" ]
null
null
null
scripts/crawl.py
willvivi/grams_crawler
6c29c85f49fb60c4a9f2716d82eef9aa79cadb76
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from TorCtl import TorCtl from lxml import html from pprint import pprint import urllib2 import urllib import sys import datetime import os import requests import csv user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7' hea...
40.655172
626
0.652672
2177839eb34cec58d4762ea78a1f94c8d7708335
41,520
py
Python
pandas/core/internals/array_manager.py
burbanom/pandas
285dae9d29f1a0693b7c3e62ede5449ec3812c2a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/array_manager.py
burbanom/pandas
285dae9d29f1a0693b7c3e62ede5449ec3812c2a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/array_manager.py
burbanom/pandas
285dae9d29f1a0693b7c3e62ede5449ec3812c2a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" Experimental manager based on storing a collection of 1D arrays """ from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Callable, List, Optional, Tuple, TypeVar, Union, ) import numpy as np from pandas._libs import ( NaT, lib, ) from pandas._typing ...
32.564706
88
0.568232
bc5315c2781967cf9bad78b291f100d38cc5b63c
581
py
Python
robocop/utils/__init__.py
MarketSquare/robotframework-robocop
299a6a4ef5d96dfebe94793283409f6f37f6e1d4
[ "Apache-2.0" ]
102
2020-09-17T08:33:08.000Z
2022-03-27T09:21:09.000Z
robocop/utils/__init__.py
MarketSquare/robotframework-robocop
299a6a4ef5d96dfebe94793283409f6f37f6e1d4
[ "Apache-2.0" ]
357
2020-09-15T06:52:30.000Z
2022-03-31T09:49:41.000Z
robocop/utils/__init__.py
MarketSquare/robotframework-robocop
299a6a4ef5d96dfebe94793283409f6f37f6e1d4
[ "Apache-2.0" ]
24
2020-09-22T11:27:30.000Z
2022-02-22T16:54:58.000Z
""" Parsing utils """ from robocop.utils.disablers import DisablersFinder from robocop.utils.file_types import FileType, FileTypeChecker from robocop.utils.misc import ( ROBOT_VERSION, AssignmentTypeDetector, RecommendationFinder, find_robot_vars, is_suite_templated, issues_to_lsp_diagnostic, ...
23.24
62
0.767642
d638d64480e9aed9f4652ddb218857fb45b2d9c6
421
py
Python
dataModels/KubeCluster.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
2
2021-01-22T05:56:40.000Z
2021-07-03T17:50:49.000Z
dataModels/KubeCluster.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
dataModels/KubeCluster.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
from peewee import * import datetime from dataModels.BaseModel import BaseModel from dataModels.User import User class KubeCluster(BaseModel): userId = ForeignKeyField(User) name = TextField() status = TextField() startTime = TextField() endTime = TextField(default="") createdOn = DateTimeFie...
24.764706
63
0.741093
6c0d84e1923e1536be5c6ff40fbd97c5e4cdb086
17,789
py
Python
app.py
KazuyaMiyagi/terraform-aws-rocket-chat-notifier
44b67d3fb9230c4319df20b0deb2e6327d865edd
[ "Apache-2.0" ]
null
null
null
app.py
KazuyaMiyagi/terraform-aws-rocket-chat-notifier
44b67d3fb9230c4319df20b0deb2e6327d865edd
[ "Apache-2.0" ]
null
null
null
app.py
KazuyaMiyagi/terraform-aws-rocket-chat-notifier
44b67d3fb9230c4319df20b0deb2e6327d865edd
[ "Apache-2.0" ]
1
2022-02-21T23:35:43.000Z
2022-02-21T23:35:43.000Z
from datetime import datetime, timezone, timedelta import json import logging import os import traceback import urllib.request logger = logging.getLogger() COLORS = { "CANCELED": "orange", "FAILED": "red", "IN_PROGRESS": "black", "RESUMED": "orange", "START": "black", "STARTED": "black", "...
40.894253
150
0.550115
41b458f78a3f52d2e1795cc8faa96cd5eb7c9f9b
896
py
Python
PyramidScheme/Environment.py
macrman/PyramidScheme
eeb9aaf8727a8c921abb55bdf26525ab12db9c2d
[ "BSD-2-Clause" ]
null
null
null
PyramidScheme/Environment.py
macrman/PyramidScheme
eeb9aaf8727a8c921abb55bdf26525ab12db9c2d
[ "BSD-2-Clause" ]
null
null
null
PyramidScheme/Environment.py
macrman/PyramidScheme
eeb9aaf8727a8c921abb55bdf26525ab12db9c2d
[ "BSD-2-Clause" ]
null
null
null
from PyramidScheme.BaseLibrary import builtins class BaseEnv(): """ Enviroments are a stack of scopes. Key lookups search from the end of the list to the bottom, the bottom being the builtins """ def __init__(self, *args): """ uhh yeah.... """ self.scopes = [builtins...
24.888889
77
0.559152
df9e5a8d3c1f0e071edef168763d32bbe3563e66
2,401
py
Python
echecs_espoir/service/room/handlers/user_ready.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
14
2020-03-22T14:03:51.000Z
2022-02-21T09:28:39.000Z
echecs_espoir/service/room/handlers/user_ready.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
null
null
null
echecs_espoir/service/room/handlers/user_ready.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
7
2020-03-22T13:57:43.000Z
2022-02-21T09:30:17.000Z
# coding=utf-8 from obespoir.base.global_object import GlobalObject from service.room.handlers.basehandler import BaseHandler, RegisterEvent from service.room.validators.user_ready import UserReadyValidator from service.room.common_define import DeskStatus, UserStatus from service.room.models.room_manager import room_...
40.016667
93
0.625156
9abb0c3990b9b3fa88533d9aa33b0e17eedef7df
1,077
py
Python
mergeSort.py
LuisEnMarroquin/data-structures-and-algorithms
0530aef29b4e4b223563f5df361f07ae5da4f006
[ "MIT" ]
2
2020-09-21T20:59:25.000Z
2021-02-22T14:17:42.000Z
mergeSort.py
LuisEnMarroquin/data-structures-and-algorithms
0530aef29b4e4b223563f5df361f07ae5da4f006
[ "MIT" ]
null
null
null
mergeSort.py
LuisEnMarroquin/data-structures-and-algorithms
0530aef29b4e4b223563f5df361f07ae5da4f006
[ "MIT" ]
null
null
null
def merge(array, leftSide, midItem, rightSide): leftArr = array[leftSide : midItem + 1] rightArr = array[midItem + 1 : rightSide + 1] k = leftSide i = 0 j = 0 while i < len(leftArr) and j < len(rightArr): if leftArr[i] < rightArr[j]: array[k] = leftArr[i] i += 1 else: array[k] = ri...
23.413043
52
0.572888
602fcc8a43ad9ae1d5ebd8d1c4db7603b78b27e4
1,783
py
Python
grafana_api/api/admin.py
asalkeld/grafana_api
6b1e4f5d3b09fb2d39eea47788ce80ba0ae6a578
[ "MIT" ]
null
null
null
grafana_api/api/admin.py
asalkeld/grafana_api
6b1e4f5d3b09fb2d39eea47788ce80ba0ae6a578
[ "MIT" ]
null
null
null
grafana_api/api/admin.py
asalkeld/grafana_api
6b1e4f5d3b09fb2d39eea47788ce80ba0ae6a578
[ "MIT" ]
null
null
null
from .base import Base class Admin(Base): def __init__(self, api): super().__init__(api) self.api = api def settings(self): """ :return: """ path = '/admin/settings' r = self.api.GET(path) return r def stats(self): """ :re...
22.858974
92
0.540101
96881c8c5437b9b91a8b5e1e2daae55bd6217f4b
2,217
py
Python
backend/holy_leaf_29613/urls.py
crowdbotics-apps/holy-leaf-29613
f7baf09f767e4b1a56e13dc38fbd7831edf543c7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/holy_leaf_29613/urls.py
crowdbotics-apps/holy-leaf-29613
f7baf09f767e4b1a56e13dc38fbd7831edf543c7
[ "FTL", "AML", "RSA-MD" ]
41
2021-08-07T16:07:39.000Z
2022-03-06T15:13:48.000Z
backend/holy_leaf_29613/urls.py
crowdbotics-apps/holy-leaf-29613
f7baf09f767e4b1a56e13dc38fbd7831edf543c7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""holy_leaf_29613 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
35.190476
87
0.710871
3186793541fbe29f0c0334ffab441d4584b6282c
5,893
py
Python
codalab/worker_manager/kubernetes_worker_manager.py
aniketsharma00411/codalab-worksheets
9067e8521e3c18b53b90269b7cff24b14b9e7a91
[ "Apache-2.0" ]
null
null
null
codalab/worker_manager/kubernetes_worker_manager.py
aniketsharma00411/codalab-worksheets
9067e8521e3c18b53b90269b7cff24b14b9e7a91
[ "Apache-2.0" ]
null
null
null
codalab/worker_manager/kubernetes_worker_manager.py
aniketsharma00411/codalab-worksheets
9067e8521e3c18b53b90269b7cff24b14b9e7a91
[ "Apache-2.0" ]
null
null
null
try: from kubernetes import client, utils # type: ignore from kubernetes.utils.create_from_yaml import FailToCreateError # type: ignore except ModuleNotFoundError: raise ModuleNotFoundError( 'Running the worker manager requires the kubernetes module.\n' 'Please run: pip install kubernetes'...
42.092857
114
0.578822
8dcd527363081d4ab28da6b36771940e19e96747
2,357
py
Python
data/p4VQE/R1/benchmark/startQiskit_Class18.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class18.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class18.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=8 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
27.091954
118
0.634281
07b7139159d85ad8559a46d0aa4d08a3f60ee6d2
2,337
py
Python
PyMesh/third_party/libigl/python/tutorial/105_Overlays.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
73
2021-01-05T07:25:51.000Z
2022-03-17T20:46:01.000Z
PyMesh/third_party/libigl/python/tutorial/105_Overlays.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
1
2021-01-05T11:45:36.000Z
2021-01-05T20:55:28.000Z
PyMesh/third_party/libigl/python/tutorial/105_Overlays.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
4
2021-01-05T10:27:50.000Z
2021-01-06T12:02:57.000Z
#!/usr/bin/env python # # This file is part of libigl, a simple c++ geometry processing library. # # Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com> # # This Source Code Form is subject to the terms of the Mozilla Public License # v. 2.0. If a copy of the M...
27.174419
106
0.526316
759c4214206b43c48b99d0c6093a905cdc69d680
1,777
py
Python
CS1410/Module5/bank.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
CS1410/Module5/bank.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
CS1410/Module5/bank.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
from savingsaccount import SavingsAccount import pickle class Bank(): def __init__(self): self.savings_accounts = {} def add(self, account): name = account.getName() pin = account.getPin() if self.savings_accounts.get((name,pin), 0) == 0: self.savings_accou...
28.206349
82
0.609454
f271610977991cc2c689fa5726af42491fe98d33
676
py
Python
xbot/constants.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/constants.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/constants.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
import enum DEFAULT_OUTPUT_FILENAME = "gen__xbot.py" GENERATED_COMMENT = '"""__GENERATED__ cross platform generated function"""' class TEMPLATES(enum.Enum): """ These are the supported templates, i.e. the classes of function that xbot can generate """ # REPLY is basic get arguments, # process...
26
75
0.696746
529859c6a86212b44184f236ca64af77c8720dcd
185
py
Python
mysite/urls.py
egemen61/excell
654b51d7cb0cb3384b7a8b714a2e21b44fcb7afc
[ "BSD-3-Clause" ]
null
null
null
mysite/urls.py
egemen61/excell
654b51d7cb0cb3384b7a8b714a2e21b44fcb7afc
[ "BSD-3-Clause" ]
16
2020-03-24T17:30:37.000Z
2022-03-11T23:57:41.000Z
mysite/urls.py
egemen61/excell
654b51d7cb0cb3384b7a8b714a2e21b44fcb7afc
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')) ]
20.555556
46
0.686486
836468394fe69b0710d070ca832b5f2e27f5bb4b
1,852
py
Python
decide_move.py
angel-villa/2048-clone-python
32d3eeb5caf7163dbb55ff30b2cf299d0843c27e
[ "MIT" ]
null
null
null
decide_move.py
angel-villa/2048-clone-python
32d3eeb5caf7163dbb55ff30b2cf299d0843c27e
[ "MIT" ]
null
null
null
decide_move.py
angel-villa/2048-clone-python
32d3eeb5caf7163dbb55ff30b2cf299d0843c27e
[ "MIT" ]
null
null
null
import collections as col import random import DecisionNode as dn # make 100 decision trees and make the most common 'best' move among the trees, # based on 'best_score' in the 'best_move_in_tree' function def decide_move(board, max_depth): best_moves = [] for i in range(100): root = dn.DecisionNode(b...
34.296296
108
0.641469
de172304761615f95e448b5bdec5c9d5bf40b8e0
1,002
py
Python
medium/python3/c0298_640_solve-the-equation/00_leetcode_0298.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0298_640_solve-the-equation/00_leetcode_0298.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0298_640_solve-the-equation/00_leetcode_0298.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #640. Solve the Equation #Solve a given equation and return the value of x in the form of string "x=#value". The equation contains only '+', '-' operation...
30.363636
166
0.692615
ce85491899bb3d81cc36dffd4ed550b1cd139591
7,695
py
Python
crud.py
jmppmj/pythonxmldatabase
c0866132225d64cad586f9eae4e85b5bed6b8b9b
[ "MIT" ]
null
null
null
crud.py
jmppmj/pythonxmldatabase
c0866132225d64cad586f9eae4e85b5bed6b8b9b
[ "MIT" ]
null
null
null
crud.py
jmppmj/pythonxmldatabase
c0866132225d64cad586f9eae4e85b5bed6b8b9b
[ "MIT" ]
null
null
null
from lib import * #read and parse an XML file ntree = ET.parse('programmingbooks.xml') root = ntree.getroot() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #CRUD OPERATIONS (Create, Read, Update, Delete) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #~~~~~~~~~~~~~~~~~~~~~~~~~~...
41.149733
101
0.442755
74943f73cf4d9795150c3d37b455a4116b278cbb
571
py
Python
build/lib/dsrt/data/transform/Tokenizer.py
sbarham/dsrt
bc664739f2f52839461d3e72773b71146fd56a9a
[ "MIT" ]
1
2019-02-11T10:05:33.000Z
2019-02-11T10:05:33.000Z
build/lib/dsrt/data/transform/Tokenizer.py
sbarham/dsrt
bc664739f2f52839461d3e72773b71146fd56a9a
[ "MIT" ]
null
null
null
build/lib/dsrt/data/transform/Tokenizer.py
sbarham/dsrt
bc664739f2f52839461d3e72773b71146fd56a9a
[ "MIT" ]
null
null
null
from dsrt.config.defaults import DataConfig class Tokenizer: def __init__(self, config=DataConfig()): self.config = config def transform(self, dialogues): return self.tokenize_dialogues(dialogues) def tokenize_dialogues(self, dialogues): return [self.tokenize_dialogue(d) for d in ...
30.052632
63
0.690018
c306e929c882c79fd8439b71a8b154ad2ad3a1b6
2,712
py
Python
rnn_practice/LRCN/prepare_rnn_input.py
woodfrog/ActionRecognition
72e2231095a9321f8c4ab2210d4846a0fa1f7d13
[ "MIT" ]
176
2017-04-11T16:19:29.000Z
2022-03-31T13:37:54.000Z
rnn_practice/LRCN/prepare_rnn_input.py
Win-Y/ActionRecognition
72e2231095a9321f8c4ab2210d4846a0fa1f7d13
[ "MIT" ]
9
2017-11-30T09:34:28.000Z
2021-01-16T16:58:55.000Z
rnn_practice/LRCN/prepare_rnn_input.py
Win-Y/ActionRecognition
72e2231095a9321f8c4ab2210d4846a0fa1f7d13
[ "MIT" ]
61
2017-04-26T03:08:39.000Z
2022-03-02T14:39:20.000Z
from CNN import CNN import os import numpy as np from collections import OrderedDict def model_processing(model, src_dir, dest_dir, timeseq_len): """ :param model: the model for processing input data :param src_dir: the path of the directory containing numpy arrays of input data :param dest_dir: the p...
39.304348
104
0.667404
d5a79adf07bf4efb0ffe2b036062caf1210cb96f
684
py
Python
src/openbiolink/graph_creation/file_processor/onto/ontoDoIsAProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
97
2019-11-26T09:53:18.000Z
2022-03-19T10:33:10.000Z
src/openbiolink/graph_creation/file_processor/onto/ontoDoIsAProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
67
2019-12-09T21:01:52.000Z
2021-12-21T15:19:41.000Z
src/openbiolink/graph_creation/file_processor/onto/ontoDoIsAProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
20
2020-01-13T23:02:25.000Z
2022-03-16T21:43:31.000Z
from openbiolink.graph_creation.file_processor.fileProcessor import FileProcessor from openbiolink.graph_creation.metadata_infile.onto.inMetaOntoDoIsA import InMetaOntoDoIsA from openbiolink.graph_creation.types.infileType import InfileType from openbiolink.graph_creation.types.readerType import ReaderType class Onto...
38
91
0.77193
73596bf312e1e3df1dda2de5c024514762277b09
73
py
Python
axcell/__init__.py
Kabongosalomon/axcell
f9c74910561f6064a04a10118824c99e871f8a38
[ "Apache-2.0" ]
335
2020-05-07T19:57:36.000Z
2022-03-16T07:05:51.000Z
axcell/__init__.py
doc22940/axcell
b41c1623377d89c3c45a61907f0a47ea029269de
[ "Apache-2.0" ]
16
2020-06-12T16:43:29.000Z
2021-11-24T11:19:09.000Z
axcell/__init__.py
doc22940/axcell
b41c1623377d89c3c45a61907f0a47ea029269de
[ "Apache-2.0" ]
50
2020-05-07T20:35:18.000Z
2022-02-16T06:37:31.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
24.333333
71
0.739726
998d50a44ccb904f0ca30ee32dab881ca6212037
14,846
py
Python
gcloud/commons/template/models.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
1
2020-09-24T07:39:16.000Z
2020-09-24T07:39:16.000Z
gcloud/commons/template/models.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
5
2021-02-08T20:46:54.000Z
2021-06-10T22:54:45.000Z
gcloud/commons/template/models.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
39.068421
116
0.64152
50ebfc5ca95e356859b93601d45d25f2dba08fff
83,449
py
Python
scipy/spatial/tests/test_distance.py
AndrewAnnex/scipy
19647a8c9002b5cc6b110a877f28a3c6c6196dd9
[ "BSD-3-Clause" ]
null
null
null
scipy/spatial/tests/test_distance.py
AndrewAnnex/scipy
19647a8c9002b5cc6b110a877f28a3c6c6196dd9
[ "BSD-3-Clause" ]
1
2021-09-02T08:05:40.000Z
2021-09-02T08:05:40.000Z
scipy/spatial/tests/test_distance.py
AndrewAnnex/scipy
19647a8c9002b5cc6b110a877f28a3c6c6196dd9
[ "BSD-3-Clause" ]
null
null
null
# # Author: Damian Eads # Date: April 17, 2008 # # Copyright (C) 2008 Damian Eads # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this...
37.965878
112
0.571319
706dafa9838ce3027d174650f03aa68024baa866
153
py
Python
setup.py
adrianeboyd/spacy-ray
90bb4ba6067c23cbfc6fb78d0147009b0bb109b1
[ "MIT" ]
36
2020-09-14T17:58:08.000Z
2022-03-29T07:43:15.000Z
setup.py
adrianeboyd/spacy-ray
90bb4ba6067c23cbfc6fb78d0147009b0bb109b1
[ "MIT" ]
6
2021-02-08T19:55:55.000Z
2022-01-17T14:34:53.000Z
setup.py
adrianeboyd/spacy-ray
90bb4ba6067c23cbfc6fb78d0147009b0bb109b1
[ "MIT" ]
7
2020-09-16T09:22:05.000Z
2021-10-02T15:17:08.000Z
#!/usr/bin/env python if __name__ == "__main__": from setuptools import setup, find_packages setup(name="spacy_ray", packages=find_packages())
21.857143
53
0.718954
6e3faeb3e27ddda074bbf7890a93fa312a480216
4,698
py
Python
numba/npyufunc/decorators.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
numba/npyufunc/decorators.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
numba/npyufunc/decorators.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import inspect from . import _internal, dufunc from .ufuncbuilder import UFuncBuilder, GUFuncBuilder from numba.targets.registry import TargetRegistry class _BaseVectorize(object): @classmethod def get_identity(cls, kwargs): return kw...
27.964286
77
0.610898