hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1c2ff4247fcd37d7a23fe72dfd5f9801afa595fa
19,358
py
Python
src/model.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
16
2019-05-21T22:28:30.000Z
2022-03-07T19:29:08.000Z
src/model.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
4
2021-09-01T07:23:48.000Z
2022-02-26T12:15:40.000Z
src/model.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
5
2020-02-08T10:08:58.000Z
2021-06-03T17:47:32.000Z
from absl import logging, flags import tensorflow as tf from tensorflow import keras from tensorflow.python.keras.utils import tf_utils # Define model flags FLAGS = flags.FLAGS flags.DEFINE_enum("increase_size_layer_type", "default", ["default", "unpool", "deconv"], "Type of layer to use in the deco...
40.839662
171
0.667218
1c2ff4dbfd802e4d4eba5c4159798b8dbab43d7d
1,175
py
Python
maximum_effort/urls.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
maximum_effort/urls.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
maximum_effort/urls.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
"""maximum_effort URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') Clas...
37.903226
77
0.702128
1c30117d7ec4fe8e22b3743475611d1c2b53cd5f
1,669
py
Python
odoons/utils/config.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
null
null
null
odoons/utils/config.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
3
2021-10-05T14:29:51.000Z
2021-10-17T21:52:41.000Z
odoons/utils/config.py
jiksaa/odoons
6845b5cd1ad73a1d44f04772b63431c5a54cfca7
[ "MIT" ]
null
null
null
import os from configparser import ConfigParser, ExtendedInterpolation from ruamel.yaml import YAML ADDONS_REQ_INSTALL_CONFIG = "install-requirements" OPT_APPLY_REQS = "apply-requirements" OPT_INSTALL_ODOO = "install-odoo-command" OPT_CONF_TEMPLATE = "config-template" OPT_CONF_DIR = "config-directory" OPT_BIN_DIR = ...
29.280702
86
0.705812
1c3013983f195866dba486e32c2df98ef07bea20
6,474
py
Python
sunpy/visualization/wcsaxes_compat.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/visualization/wcsaxes_compat.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/visualization/wcsaxes_compat.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Helpers and Functions to make WCSAxes work in SunPy """ import matplotlib.pyplot as plt import astropy.units as u try: from astropy.visualization import wcsaxes except ImportError: raise ImportError("Astropy >= 1.3 is required to use SunPy") # Force is put here to enable disablin...
25.690476
96
0.637319
1c30415163ecfaf1b9ac21056ac2ad3ebdfacf67
5,798
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_domain_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_domain_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_domain_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
41.120567
133
0.673163
1c305105c9b9faa649ccbbdfd85ec89e21d7b263
1,537
py
Python
src/spectrabuster/backends/seatease.py
eduardosprp/spectrabuster
bb75c2bc860fd5ade7414b212e63113e6fa22eab
[ "MIT" ]
null
null
null
src/spectrabuster/backends/seatease.py
eduardosprp/spectrabuster
bb75c2bc860fd5ade7414b212e63113e6fa22eab
[ "MIT" ]
1
2020-11-14T16:04:23.000Z
2020-11-14T16:04:23.000Z
src/spectrabuster/backends/seatease.py
eduardosprp/spectrabuster
bb75c2bc860fd5ade7414b212e63113e6fa22eab
[ "MIT" ]
3
2020-11-14T03:27:09.000Z
2022-01-14T09:25:22.000Z
from seatease.spectrometers import Spectrometer, list_devices from time import sleep features = { "measure": True, "correct_nl": False, "correct_dc": False, "temperature": False, "int_time_limits": True, "sat_intensity": True, } class Device(object): # {{{ def __init__(self, device_ob...
25.196721
78
0.668835
1c30639ec356fd7364c53bd692139438c10f7447
1,322
py
Python
apps/publications/logic/sync.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/publications/logic/sync.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/publications/logic/sync.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
""" Stuff related to synchronization of organization data between the local database and an external source """ from core.task_support import cache_based_lock from erms.sync import ERMSObjectSyncer from ..models import Platform from django.db.transaction import atomic from django.conf import settings from core.models...
30.045455
90
0.656581
1c3090983794c2122f4c62e96544d9601689b8e5
2,428
py
Python
lib/coloraide/color/gamut/fit_lch_chroma.py
adaminfinitum/ColorHelper
d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47
[ "MIT" ]
253
2015-03-04T06:48:43.000Z
2022-03-25T14:22:17.000Z
lib/coloraide/color/gamut/fit_lch_chroma.py
adaminfinitum/ColorHelper
d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47
[ "MIT" ]
197
2015-03-04T21:40:47.000Z
2022-03-25T17:04:36.000Z
lib/coloraide/color/gamut/fit_lch_chroma.py
adaminfinitum/ColorHelper
d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47
[ "MIT" ]
32
2015-03-21T03:28:01.000Z
2021-09-06T07:20:51.000Z
"""Fit by compressing chroma in Lch.""" from ..gamut import Fit EPSILON = 0.001 class LchChroma(Fit): """Lch chroma gamut mapping class.""" @staticmethod def name(): """Get plugin name.""" return "lch-chroma" @staticmethod def fit(color): """ Gamut mapping via c...
32.810811
97
0.605848
1c309785797e8ad05429ef332e41130f7ffa1021
4,203
py
Python
tests/test_plotting.py
sciris/sciris
a52a7a0d4bf2c3de7dde1dbca07c40341f9a18b0
[ "MIT" ]
5
2018-10-01T09:36:31.000Z
2021-08-03T14:34:48.000Z
tests/test_plotting.py
sciris/sciris
a52a7a0d4bf2c3de7dde1dbca07c40341f9a18b0
[ "MIT" ]
194
2018-09-21T06:21:07.000Z
2022-03-26T11:22:24.000Z
tests/test_plotting.py
sciris/sciris
a52a7a0d4bf2c3de7dde1dbca07c40341f9a18b0
[ "MIT" ]
5
2020-03-12T23:06:39.000Z
2020-09-30T10:38:17.000Z
""" Test color and plotting functions -- warning, opens up many windows! """ import os import numpy as np import pylab as pl import sciris as sc if 'doplot' not in locals(): doplot = True def test_colors(doplot=doplot): sc.heading('Testing colors') o = sc.objdict() print('Testing shifthue') o....
22.475936
97
0.583155
1c30a205b90f870420979848869282a055b6dbee
8,421
py
Python
appengine/findit/model/wf_swarming_task.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/model/wf_swarming_task.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/model/wf_swarming_task.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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. from collections import defaultdict from google.appengine.ext import ndb from libs import time_util from model.base_build_model import BaseBuildModel from ...
35.23431
80
0.687329
1c30c533c03ae5855c6d2ffabbad7757bb3636a2
3,817
py
Python
backend/apps/volontulo/urls.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/urls.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/urls.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: urls """ from django.conf.urls import include from django.conf.urls import url from rest_framework.routers import DefaultRouter from apps.volontulo import views from apps.volontulo.views import api as api_views from apps.volontulo.views import auth as auth_views from apps.volo...
26.143836
78
0.595756
1c30c930d3da81291cc51c6f2ac44d96eab4f155
2,745
py
Python
tests/agent_test.py
sld/dp-agent
02729887f8db3c99ac2c6a3e5e7be7fa6849a1ba
[ "Apache-2.0" ]
null
null
null
tests/agent_test.py
sld/dp-agent
02729887f8db3c99ac2c6a3e5e7be7fa6849a1ba
[ "Apache-2.0" ]
null
null
null
tests/agent_test.py
sld/dp-agent
02729887f8db3c99ac2c6a3e5e7be7fa6849a1ba
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import uuid from core.agent import Agent from core.state_manager import StateManager from core.skill_manager import SkillManager from core.rest_caller import RestCaller from core.service import Service from core.postprocessor import DefaultPostprocessor from core.response_selector import ...
45
102
0.764663
1c30dc5664d75ff7cfa74ca426b709badd9afac5
3,518
py
Python
platon/providers/auto.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/providers/auto.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/providers/auto.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import os from typing import ( Any, Callable, Dict, Optional, Sequence, Tuple, Type, Union, ) from urllib.parse import ( urlparse, ) from platon_typing import ( URI, ) from platon.exceptions import ( CannotHandleRequest, ) from platon.providers import ( BaseProvider, ...
27.700787
95
0.627061
1c30e600c88e0eeb37f6a6620136608b6174d39e
1,912
py
Python
proxy/get_proxy_url_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
proxy/get_proxy_url_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
proxy/get_proxy_url_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
#!/usr/bin/env python3 # Copyright 2019 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.965517
74
0.654812
1c30ef844dfb9dcf5038a828087fc023dda43779
28,342
py
Python
neo/rawio/spike2rawio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
1
2020-06-08T14:00:03.000Z
2020-06-08T14:00:03.000Z
neo/rawio/spike2rawio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
neo/rawio/spike2rawio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
""" Classe for reading data in CED spike2 files (.smr). This code is based on: - sonpy, written by Antonio Gonzalez <Antonio.Gonzalez@cantab.net> Disponible here :: http://www.neuro.ki.se/broberger/ and sonpy come from : - SON Library 2.0 for MATLAB, written by Malcolm Lidierth at King's College London....
41.557185
99
0.551196
1c30f3c64f210a9940e133049ddd8550621c9c93
2,745
py
Python
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/__init__.py
casperlehmann/azure-sdk-for-python
d57163e25c82e4f53a0a11e6bd777726ce5f3d88
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/__init__.py
casperlehmann/azure-sdk-for-python
d57163e25c82e4f53a0a11e6bd777726ce5f3d88
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/__init__.py
casperlehmann/azure-sdk-for-python
d57163e25c82e4f53a0a11e6bd777726ce5f3d88
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from collections import namedtuple try: import urllib.parse as parse except ImportError: # pylint:disable=import-error import urlparse as parse # type: ign...
33.888889
114
0.68561
1c30f693215ca49da098ac8098c3d7d8b4a6c0b8
226
py
Python
gitlab/datadog_checks/gitlab/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
gitlab/datadog_checks/gitlab/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
gitlab/datadog_checks/gitlab/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .__about__ import __version__ from .gitlab import GitlabCheck __all__ = [ '__version__', 'GitlabCheck' ]
20.545455
59
0.725664
1c310cf5f4de81d0af84be7fff6b32545eb07092
408
py
Python
src/mpl_styles/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/mpl_styles/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/mpl_styles/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
"""Styles for Matplotlib.""" from matplotlib.colors import ListedColormap # Qualitative colormap that (should) be color-blind friendly. See # https://personal.sron.nl/~pault/ for more accessible color schemes. QUALITATIVE_COLORS = ( '#77AADD', '#EE8866', '#44BB99', '#FFAABB', '#99DDFF', '#BBCC3...
24
69
0.676471
1c312aba90f987553c7c73457f580416290b3f39
2,727
py
Python
collections/ansible_collections/redhat/satellite/plugins/modules/hardware_model.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/redhat/satellite/plugins/modules/hardware_model.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/redhat/satellite/plugins/modules/hardware_model.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2020, Evgeni Golov <evgeni@golov.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
26.475728
111
0.703337
1c31365bc2dbe1275ef4e8e056e716303fbecc05
13,411
py
Python
electrum/gui/qt/transaction_dialog.py
traysi/electrum-raven
b2a64a459da32afd2987149460253cfadec03384
[ "MIT" ]
5
2018-10-31T18:47:54.000Z
2021-09-20T02:04:42.000Z
electrum/gui/qt/transaction_dialog.py
project-mynt/electrum-mynt
ca1548e008854f2a3eff900a69365307cc20bd57
[ "MIT" ]
null
null
null
electrum/gui/qt/transaction_dialog.py
project-mynt/electrum-mynt
ca1548e008854f2a3eff900a69365307cc20bd57
[ "MIT" ]
11
2018-10-31T19:46:05.000Z
2019-09-25T20:18:37.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
39.560472
134
0.634628
1c313c2826e1f112676e1337859553b9cf492376
7,335
py
Python
src/utils/chatArchiver.py
ayman2598/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
2
2019-12-13T20:06:14.000Z
2022-01-23T00:34:29.000Z
src/utils/chatArchiver.py
ayman2598/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
23
2019-10-19T16:55:45.000Z
2020-03-14T16:18:05.000Z
src/utils/chatArchiver.py
amadea-system/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
6
2019-12-13T20:06:17.000Z
2021-02-12T16:21:04.000Z
""" Methods for generating HTML and TXT archives of a discord chat from a list of discord messages. Part of the Gabby Gums Discord Logger. """ import hmac import logging import hashlib from functools import partial from datetime import datetime from io import StringIO, SEEK_END, SEEK_SET from typing import TYPE_CHEC...
36.675
175
0.667894
1c315eaced8aca10753a735564baefa1368a0036
871
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1675_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1675_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1675_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """Simple test script for 2.13" 250x122 black and white featherwing. Supported products: * Adafruit 2.13" Black and White FeatherWing * https://www.adafruit.com/product/4195 """ import time import board import displ...
20.255814
83
0.756602
1c317c6f990469410000fc123e1ab7a1df626cbd
314
py
Python
LC/70.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/70.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/70.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): dict={1:1, 2:2} def climbStairs(self, n): """ :type n: int :rtype: int """ if n in self.dict: return self.dict[n] else: self.dict[n] = self.climbStairs(n-2) + njh return self.dict[n]
26.166667
74
0.43949
1c31a51b2a4c958d1cf381597a29713110b80cf1
1,222
py
Python
lya_data_structures.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
lya_data_structures.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
lya_data_structures.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
class LyaForestTransmittance: def __init__(self, ar_z, ar_transmittance, ar_pipeline_ivar, ar_fit): """ a simple wrapper for holding lya-forest data. :type ar_z: np.array :type ar_transmittance: np.array :type ar_pipeline_ivar: np.array """ self.ar_z = ar_z ...
31.333333
73
0.640753
1c31a7c66db65397cfc105dab85a9c9a189b3059
25,804
py
Python
bsz_gimp_lib.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
6
2020-12-03T14:50:32.000Z
2022-02-04T03:15:44.000Z
bsz_gimp_lib.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
bsz_gimp_lib.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Shared code between plugins. Use python's help() for prettier help info. """ import gi gi.require_version('Gimp', '3.0') from gi.repository import Gimp gi.require_version('Gegl', '0.4') from gi.repository import Gegl from gi.repository import GObject from gi.repositor...
35.29959
92
0.55317
1c31cf5d1c9e3fe2abf89d4443550cf4e6fa593c
16,419
py
Python
modules/detection/instance.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
1
2021-06-22T05:33:08.000Z
2021-06-22T05:33:08.000Z
modules/detection/instance.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
modules/detection/instance.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import collections import datetime import json import sys import time class Instance(obje...
38.36215
116
0.543395
1c31db7e429a217f515b4d7c307a3c801a19678c
4,746
py
Python
src/executor/SegmentSplitter.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
3
2020-02-12T01:24:46.000Z
2020-02-13T00:50:46.000Z
src/executor/SegmentSplitter.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
32
2020-02-20T10:20:56.000Z
2022-02-10T01:42:46.000Z
src/executor/SegmentSplitter.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
1
2020-02-22T02:47:19.000Z
2020-02-22T02:47:19.000Z
from ..data.VideoItem import VideoItem from ..data.VideoFile import VideoFile from .iExecutor import iExecutor from ..signals.SkipSignal import SkipSignal import re import numpy as np class SegmentSplitter(iExecutor): def __init__(self, *parents, clip_length='5s', length_threshold='3s'): super().__init__(*...
40.913793
108
0.578592
1c31f85d6f23045413e37773754560d0392717bf
1,513
py
Python
applications/physics/ICF/train_jag_wae.py
vishalbelsare/lbann
c41421b177d8cdd4a0a780d7bb4a35a5a73a2ca2
[ "Apache-2.0" ]
null
null
null
applications/physics/ICF/train_jag_wae.py
vishalbelsare/lbann
c41421b177d8cdd4a0a780d7bb4a35a5a73a2ca2
[ "Apache-2.0" ]
null
null
null
applications/physics/ICF/train_jag_wae.py
vishalbelsare/lbann
c41421b177d8cdd4a0a780d7bb4a35a5a73a2ca2
[ "Apache-2.0" ]
null
null
null
import jag_models from os.path import abspath, dirname, join import google.protobuf.text_format as txtf # ============================================== # Setup and launch experiment # ============================================== # Default data reader model_zoo_dir = dirname(dirname(abspath(__file__))) data_reader_...
36.02381
69
0.554527
1c3218e98425eccd4ffcd85d939ce07c12783071
4,990
py
Python
xpython/byteop/byteop26.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
xpython/byteop/byteop26.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
xpython/byteop/byteop26.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Bytecode Interpreter operations for Python 2.6 Note: this is subclassed so later versions may use operations from here. """ import os import sys import xpython.stdlib from xdis.version_info import PYTHON_VERSION_TRIPLE try: import importlib except ImportError: importlib = None fr...
38.091603
126
0.597996
1c322fe79d5d09617c72e056b0c23609d1c7f199
1,920
py
Python
thor/orbits/gibbs.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
11
2019-08-22T18:37:09.000Z
2022-02-28T22:49:25.000Z
thor/orbits/gibbs.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
57
2019-08-20T19:57:14.000Z
2021-09-16T20:54:59.000Z
thor/orbits/gibbs.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
7
2021-02-09T21:28:43.000Z
2022-02-01T08:55:29.000Z
import numpy as np from ..constants import Constants as c __all__ = ["calcGibbs"] MU = c.MU def calcGibbs(r1, r2, r3): """ Calculates the velocity vector at the location of the second position vector (r2) using the Gibbs method. .. math:: \vec{D} = \vec{r}_1 \times \vec{r}_2 + \vec{r}_2 \...
30.47619
120
0.585417
1c32884b97603e9760e7db39e37fe69b40866493
5,702
py
Python
alipay/aop/api/domain/InterTradeCompanyConsultOpenApiResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/InterTradeCompanyConsultOpenApiResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/InterTradeCompanyConsultOpenApiResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class InterTradeCompanyConsultOpenApiResult(object): def __init__(self): self._belong_group = None self._cid_list = None self._mid_list = None self._name = None ...
32.033708
75
0.542967
1c328ba4a136a085fa44642c7e34ce0bed1de999
53,828
py
Python
data/transcoder_evaluation_gfg/python/MOBILE_NUMERIC_KEYPAD_PROBLEM.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/MOBILE_NUMERIC_KEYPAD_PROBLEM.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/MOBILE_NUMERIC_KEYPAD_PROBLEM.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-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. # def f_gold ( keypad , n ) : if ( not keypad or n <= 0 ) : return 0 if ( n == 1 ) : return 10 odd = [...
737.369863
10,683
0.204447
1c329d8afed0fdcc1edf83c27cb2d8f18395ae5d
5,367
py
Python
violas_client/canoser/int_type.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/canoser/int_type.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/canoser/int_type.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
import struct from random import randint from violas_client.canoser.base import Base from struct import pack, unpack from_bytes = int.from_bytes class IntType(Base): @classmethod def to_json_serializable(cls, value): return value @classmethod def encode(cls, value): retu...
25.679426
90
0.575182
1c32aa6e6005e89cd1da77d33f4d806ef0817224
1,058
py
Python
tests/integration/installation_and_upgrade/test_data_consistancy.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
tests/integration/installation_and_upgrade/test_data_consistancy.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
tests/integration/installation_and_upgrade/test_data_consistancy.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
from tests.integration.installation_and_upgrade.test_installation_and_upgrade import TestInstallationAndUpgrade class TestAllEndPoints(TestInstallationAndUpgrade): def test_access_all_data_all_endpoints(self): """ Fetch all the data from all the end points """ # Some end points just can't be fetc...
39.185185
111
0.620983
1c32b265d90b33b936a3b38914a3e461f1359324
20,144
py
Python
src/provisioning/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/provisioning/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/provisioning/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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...
33.131579
90
0.633191
1c32b43e4c148db4b606236f42a2f2577905a7e2
6,359
py
Python
aioarangodb/client.py
ckdanny/aioarangodb
432ac3701c1ca32bed2021ef510c724cd543f39f
[ "MIT" ]
17
2020-06-11T20:26:41.000Z
2021-04-03T19:07:57.000Z
aioarangodb/client.py
ckdanny/aioarangodb
432ac3701c1ca32bed2021ef510c724cd543f39f
[ "MIT" ]
5
2021-06-24T13:31:16.000Z
2022-03-09T11:28:04.000Z
aioarangodb/client.py
ckdanny/aioarangodb
432ac3701c1ca32bed2021ef510c724cd543f39f
[ "MIT" ]
4
2020-09-12T11:52:41.000Z
2021-04-21T19:30:00.000Z
from __future__ import absolute_import, unicode_literals import json from six import string_types __all__ = ['ArangoClient'] from .connection import ( BasicConnection, JWTConnection, JWTSuperuserConnection ) from .database import StandardDatabase from .exceptions import ServerConnectionError from .http ...
36.130682
79
0.611731
1c333d0051d4c4cf7ff7cd86bb2a6b0e789d47e6
3,434
py
Python
DataModelling_PostgreSQL/etl.py
RammySekham/Data-Engineering
eec1020defe9c54403f6a80ba91fc071ed22b727
[ "MIT" ]
1
2021-06-08T15:49:50.000Z
2021-06-08T15:49:50.000Z
DataModelling_PostgreSQL/etl.py
RammySekham/Data-Engineering
eec1020defe9c54403f6a80ba91fc071ed22b727
[ "MIT" ]
null
null
null
DataModelling_PostgreSQL/etl.py
RammySekham/Data-Engineering
eec1020defe9c54403f6a80ba91fc071ed22b727
[ "MIT" ]
null
null
null
import os import glob import psycopg2 import pandas as pd import settings from sql_queries import * def process_song_file(cur, filepath): """ process the json song file to insert song record into SQL table """ # open song file df = pd.read_json(filepath, lines=True) # insert song record ...
31.218182
151
0.647059
1c334cd6809fae5b8cf2760630ff5474a4bc0f6b
7,348
py
Python
prepare.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
prepare.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
prepare.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
import numpy as np import json from nltk.tokenize import word_tokenize from PIL import Image import os import h5py from random import shuffle class ClevrDataset(object): """ This is the dataset for clevr task. """ def __init__(self, config, dataset_name = 'train' , shuffle = False, load_vocab = False): if data...
30.87395
174
0.664807
1c3375a1a8258dedbd7bb99777fb79d19fde143e
672
py
Python
testing_individual_section.py
OpenHRS/openhrs-scraper-app
be8b2dcf6b4612642700314fd7259cd0f5613742
[ "MIT" ]
3
2017-11-13T10:35:12.000Z
2017-11-19T09:29:02.000Z
testing_individual_section.py
OpenHRS/openhrs-scraper-app
be8b2dcf6b4612642700314fd7259cd0f5613742
[ "MIT" ]
12
2017-10-01T12:35:58.000Z
2018-08-19T07:47:00.000Z
testing_individual_section.py
OpenHRS/openhrs-scraper-app
be8b2dcf6b4612642700314fd7259cd0f5613742
[ "MIT" ]
1
2020-01-09T04:27:46.000Z
2020-01-09T04:27:46.000Z
import json import requests import re from bs4 import BeautifulSoup as bs from create_hrs_tree import get_section_text_data def main(): Section = {"name": 'Risk of loss', "number": '2A-219'} baseURL = 'http://www.capitol.hawaii.gov/hrscurrent/Vol11_Ch0476-0490/HRS0490/HRS_0490-.htm' sectio...
26.88
96
0.686012
1c3375b4eab451b16c40c709077979721739d1e9
2,994
py
Python
experiments/murtaza/ros/sawyer_sim/sawyer_pos_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/ros/sawyer_sim/sawyer_pos_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/ros/sawyer_sim/sawyer_pos_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.networks import ConcatMlp import rlkit.torch.pytorch_util as ptu from rlkit.torch.sac.policies import TanhGaussianPolicy from rlkit.torch.sac.sac import SoftActorCritic from sawyer_control.sawyer_reaching import SawyerXYZReachingEnv import numpy ...
26.732143
63
0.573146
1c337772a3c0152c7169b07e964047635ab78aae
3,444
py
Python
Intro_to_Recommendation_Systems/DeepRecommender/data_utils/movielens_data_convert.py
NunoEdgarGFlowHub/sciblog_support
5ef38b935ad45edd1cf01b92b5184282b4ee25fa
[ "BSD-3-Clause" ]
668
2016-11-27T13:12:40.000Z
2022-02-18T09:12:19.000Z
Intro_to_Recommendation_Systems/DeepRecommender/data_utils/movielens_data_convert.py
mohamedndiaye/sciblog_support
0d5b956bacbd40d1a1fc07582aba728abfb59f54
[ "BSD-3-Clause" ]
99
2016-11-01T08:18:44.000Z
2021-02-25T06:16:39.000Z
Intro_to_Recommendation_Systems/DeepRecommender/data_utils/movielens_data_convert.py
mohamedndiaye/sciblog_support
0d5b956bacbd40d1a1fc07582aba728abfb59f54
[ "BSD-3-Clause" ]
185
2016-11-29T11:11:33.000Z
2022-03-31T09:14:41.000Z
# Copyright (c) 2017 NVIDIA Corporation import sys import datetime import random from math import floor def print_stats(data): total_ratings = 0 print("STATS") for user in data: total_ratings += len(data[user]) print("Total Ratings: {}".format(total_ratings)) print("Total User count: {}".format(len(data....
33.115385
115
0.671312
1c33a5e83ba70a5103beb35d3ebdb03657042976
46,111
py
Python
digits/model/images/classification/test_views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
digits/model/images/classification/test_views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
digits/model/images/classification/test_views.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import itertools import json import os import shutil import tempfile import time import unittest # Find the best implementation available try: from cStringIO import StringIO except ImportError: from Str...
33.413768
117
0.61031
1c33d6777841b1659189493027fd375b3ea627d8
2,601
py
Python
alipay/aop/api/domain/AlipayMarketingShowwindowContentSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayMarketingShowwindowContentSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayMarketingShowwindowContentSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IotDeviceInfo import IotDeviceInfo class AlipayMarketingShowwindowContentSyncModel(object): def __init__(self): self._device_info_list = None self._event_tag ...
31.337349
84
0.594002
1c342e2d9df2872b510289962bb26ccf755e777c
36,357
py
Python
ios/dateparser/lib/python2.7/site-packages/jdatetime/__init__.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/jdatetime/__init__.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/jdatetime/__init__.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # jdatetime is (c) 2010-2011 Milad Rastian <eslashmili at gmail.com>. # The jdatetime module was contributed to Python as of Python 2.7 and thus # was licensed under the Python license. Same license applies to all files in # the jdatetime package project. from __future__ import unicode_literals ...
32.724572
207
0.510191
1c344c547f3ce1b47d143e427a99fd715626effb
1,261
py
Python
tests/fixtures.py
schinckel/pipeline-runner
5642e3ce33ba21d42289bc6e3592e8286b7321d3
[ "MIT" ]
6
2021-04-23T20:28:24.000Z
2022-02-12T14:55:27.000Z
tests/fixtures.py
schinckel/pipeline-runner
5642e3ce33ba21d42289bc6e3592e8286b7321d3
[ "MIT" ]
1
2022-01-17T14:43:04.000Z
2022-01-17T14:43:04.000Z
tests/fixtures.py
schinckel/pipeline-runner
5642e3ce33ba21d42289bc6e3592e8286b7321d3
[ "MIT" ]
2
2022-01-16T23:32:11.000Z
2022-02-08T20:39:22.000Z
import os.path import pytest from pipeline_runner.models import ProjectMetadata, Repository @pytest.fixture(autouse=True) def user_cache_directory(tmp_path, mocker): cache_dir = os.path.join(tmp_path, "cache") m = mocker.patch("pipeline_runner.utils.get_cache_directory") m.return_value = cache_dir ...
22.927273
104
0.738303
1c346ccc639aafba00553b5a8aedab756185ab64
523
py
Python
neuroscout/schemas/run.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
null
null
null
neuroscout/schemas/run.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
null
null
null
neuroscout/schemas/run.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
null
null
null
from marshmallow import fields, Schema class RunSchema(Schema): id = fields.Int() session = fields.Str(description='Session number') acquisition = fields.Str(description='Acquisition') subject = fields.Str(description='Subject id') number = fields.Int(description='Run id') duration = fields.Nu...
37.357143
74
0.705545
1c347ea6db0106869ce0b9be812e2121fd128eed
6,417
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta2_stateful_set_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta2_stateful_set_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta2_stateful_set_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1bet...
32.739796
295
0.620228
1c348b2a617346f4892a06a93923aa29bbc60222
121
py
Python
app/multiplication.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
app/multiplication.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
app/multiplication.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
def multiply(x, y): ''' Multiply two numbers x and y ''' print('multiplying x: {} * y: {}'.format(x, y))
20.166667
51
0.512397
1c3499010d88c6042fb15ac3dc48e94eb92db3d9
2,915
py
Python
pluginbase.py
haizaar/iris
1efe07181cb0ec2307b1385d65160b534b40f9a7
[ "MIT" ]
50
2018-05-29T13:49:41.000Z
2022-03-31T03:19:14.000Z
pluginbase.py
haizaar/iris
1efe07181cb0ec2307b1385d65160b534b40f9a7
[ "MIT" ]
22
2018-06-25T13:39:53.000Z
2021-02-02T08:30:55.000Z
pluginbase.py
haizaar/iris
1efe07181cb0ec2307b1385d65160b534b40f9a7
[ "MIT" ]
7
2018-08-12T06:02:59.000Z
2021-02-05T05:01:29.000Z
# a simple Python plugin loading system # see http://stackoverflow.com/questions/14510286/plugin-architecture-plugin # -manager-vs-inspecting-from-plugins-import import logging from utils import utils class PluginMount(type): """ A plugin mount point derived from: http://martyalchin.com/2008/jan/10/...
24.70339
79
0.606518
1c349e0ca0b1a13e7b3972f3338a8e065eead2a7
4,430
py
Python
scripts/linreg_2d_bayes_demo.py
GSxiongkun/pyprobml
71b2ce90632b80206760f93ab2a1926ce6c8c490
[ "MIT" ]
1
2020-03-01T09:01:37.000Z
2020-03-01T09:01:37.000Z
scripts/linreg_2d_bayes_demo.py
etarakci-hvl/pyprobml
a3fe8086844ae0885e3f21d30be5f2e6448cdeba
[ "MIT" ]
null
null
null
scripts/linreg_2d_bayes_demo.py
etarakci-hvl/pyprobml
a3fe8086844ae0885e3f21d30be5f2e6448cdeba
[ "MIT" ]
null
null
null
#Bayesian inference for simple linear regression with known noise variance #The goal is to reproduce fig 3.7 from Bishop's book. #We fit the linear model f(x,w) = w0 + w1*x and plot the posterior over w. import numpy as np import matplotlib.pyplot as plt import os figdir = os.path.join(os.environ["PYPROBML"], "figures...
33.308271
110
0.669074
1c34b152f6690e26ed80dd650bad60f1f8282b89
3,838
py
Python
tests/test_create_wish.py
Zeebrow/wish
9a0efeb70e1646ed12cac03b2419cbeca10e3c1c
[ "MIT" ]
null
null
null
tests/test_create_wish.py
Zeebrow/wish
9a0efeb70e1646ed12cac03b2419cbeca10e3c1c
[ "MIT" ]
3
2021-09-26T11:33:24.000Z
2021-10-16T01:39:19.000Z
tests/test_create_wish.py
Zeebrow/wish
9a0efeb70e1646ed12cac03b2419cbeca10e3c1c
[ "MIT" ]
null
null
null
import unittest from random import randint import shutil from os.path import basename from os import PathLike from pathlib import Path from wishlist import Wish class TestCreateWish(unittest.TestCase): def gen_temp_wishlist(self, identifier: str): """ Generates a temporary wishlist (prj-skel d...
38
93
0.657634
1c34d24a7ccafb22e1865bc1b32325f00e7e88a9
4,243
py
Python
src/main/run_work.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
1
2021-07-22T15:43:02.000Z
2021-07-22T15:43:02.000Z
src/main/run_work.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
28
2021-05-15T08:18:21.000Z
2021-08-02T06:12:30.000Z
src/main/run_work.py
ta-assistant/TA-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
null
null
null
import os import json # import pandas as pd from datetime import datetime from src.main.pre_work import Work from lib.file_management.extract import unzipfile from src.main.student_data import StudentData from lib.file_management.configeditor import ConfigEditor from lib.function_network.func_network import CallApi fro...
31.664179
130
0.651897
1c34d4bcd55d7bb1e7174aa0d6409ab0baded1c4
737
py
Python
django_redis_prometheus/cache/backends/filebased.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/cache/backends/filebased.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/cache/backends/filebased.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
1
2021-12-27T09:56:59.000Z
2021-12-27T09:56:59.000Z
from django.core.cache.backends import filebased from django_redis_prometheus.cache.metrics import ( django_cache_get_total, django_cache_hits_total, django_cache_misses_total) class FileBasedCache(filebased.FileBasedCache): """Inherit filebased cache to add metrics about hit/miss ratio""" def get(self, ...
40.944444
79
0.720488
1c34ec5b0922266c3e466c89dc031fd7d675e72f
412
py
Python
migrations/versions/0302a_merge.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0302a_merge.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0302a_merge.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0302a_merge Revises: 0301c_update_golive_template, 0302_add_org_id_to_services Create Date: 2019-07-29 16:18:27.467361 """ # revision identifiers, used by Alembic. revision = "0302a_merge" down_revision = ("0301c_update_golive_template", "0302_add_org_id_to_services") branch_labels = None import sq...
17.166667
79
0.771845
1c350cff265b3d8016a43c446d64999c2d32b3e3
6,479
py
Python
tests/test_packages/test_skills/test_generic_seller/test_dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_packages/test_skills/test_generic_seller/test_dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_packages/test_skills/test_generic_seller/test_dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
38.337278
89
0.656428
1c35796495a6efe9aa4ee9bb6b30b875bd60a38d
21
py
Python
examples/__init__.py
krvss/graph-talk
b420bc5b57c7dc25008428bf7c0ebfcbebd61b72
[ "Apache-2.0" ]
null
null
null
examples/__init__.py
krvss/graph-talk
b420bc5b57c7dc25008428bf7c0ebfcbebd61b72
[ "Apache-2.0" ]
null
null
null
examples/__init__.py
krvss/graph-talk
b420bc5b57c7dc25008428bf7c0ebfcbebd61b72
[ "Apache-2.0" ]
1
2018-01-11T09:23:46.000Z
2018-01-11T09:23:46.000Z
__author__ = 'krvss'
10.5
20
0.714286
1c35977c3665ef7141eccc522715cb0dd0bafe4d
22,875
py
Python
make-the-country/population_builder.py
awyrough/make-the-country
4019f66e4041062fb8f76f25b57f664a7308cf0d
[ "MIT" ]
null
null
null
make-the-country/population_builder.py
awyrough/make-the-country
4019f66e4041062fb8f76f25b57f664a7308cf0d
[ "MIT" ]
null
null
null
make-the-country/population_builder.py
awyrough/make-the-country
4019f66e4041062fb8f76f25b57f664a7308cf0d
[ "MIT" ]
null
null
null
from itertools import chain import random as rd import numpy as np def treat_income(data): """ Convert to doubles, or zero if NaN """ try: return float(data) except: return 0.0 def treat_demo(data): """ Convert to *** """ return data def treat_group(data): """...
38.061564
189
0.50706
1c35a2ad15dfa1c50bd1adefee46c6ed4261f1ab
3,696
py
Python
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_single_out_stateless.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_single_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_single_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of stream_func where f_type is 'element' and stream_func has a list of multiple input streams, a single output stream, and the operation is stateless. These examples must have a LIST of input streams and not a single input stream. The functions on static Python data structures are of t...
29.333333
84
0.647727
1c35a9dccb3bab73f67b1b1fbe686f62f3c44b14
58,897
py
Python
oscar/lib/python2.7/site-packages/django/test/testcases.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/test/testcases.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/test/testcases.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import difflib import json import posixpath import sys import threading import unittest import warnings from collections import Counter from contextlib import contextmanager from copy import copy from functools import wraps from unittest.util import safe_repr fro...
41.800568
118
0.596856
1c35ad0d92514753f02b80b801f52e4c875bc666
678
py
Python
publichealth/home/migrations/0006_auto_20170308_2025.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
publichealth/home/migrations/0006_auto_20170308_2025.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
publichealth/home/migrations/0006_auto_20170308_2025.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-08 19:25 from __future__ import unicode_literals from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('home', '0005_auto_20170308_2023'), ] operations = [ migr...
25.111111
76
0.610619
1c35c203c21c962485e649012e8eb15906f2f4ce
2,157
py
Python
contrib/examples/sensors/sample_polling_sensor.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
contrib/examples/sensors/sample_polling_sensor.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
contrib/examples/sensors/sample_polling_sensor.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
from st2reactor.sensor.base import PollingSensor class SimplePollingSensor(PollingSensor): """ * self._sensor_service - provides utilities like get_logger() for writing to logs. dispatch() for dispatching triggers into the system. * self._config - contains configura...
38.517857
95
0.635605
1c35d173246b53fefd76fea0ee73619eb3487e35
1,515
py
Python
game/core/tools/roomSuport.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
2
2019-05-30T23:14:52.000Z
2021-03-31T04:43:55.000Z
game/core/tools/roomSuport.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
1
2019-07-01T18:08:11.000Z
2019-07-01T18:08:11.000Z
game/core/tools/roomSuport.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
null
null
null
#coding: utf-8 def extractListOfRooms(peersList): rooms = {} for peer in peersList: if peer[2] and (peer[3] != None): rooms[peer[3]] = peer return rooms def extractPlayersInRoom(roomID, peersList): players = [] for peer in peersList: if peer[2] and (peer[3] == roomID): ...
24.047619
49
0.532673
1c35edc25fb9b1291aa6f22e1e1725263c6bf24f
5,809
py
Python
Python/DataStructures/LinkedList.py
AndrewMcShane/DevMakingSource
fe58fa093e0ce2d2748cb3826d27be6b0ac34149
[ "MIT" ]
3
2021-03-22T14:13:56.000Z
2022-03-01T03:06:22.000Z
Python/DataStructures/LinkedList.py
AndrewMcShane/DevMakingSource
fe58fa093e0ce2d2748cb3826d27be6b0ac34149
[ "MIT" ]
null
null
null
Python/DataStructures/LinkedList.py
AndrewMcShane/DevMakingSource
fe58fa093e0ce2d2748cb3826d27be6b0ac34149
[ "MIT" ]
null
null
null
#Linked List python implementation # Node class class Node: def __init__(self, value, nextNode): self.value = value self.next = nextNode #Linked List class class LinkedList: def __init__(self): self.root = None def isEmpty(self): return self.root is None # ...
29.48731
80
0.517645
1c360de1bbd0d8dd43183a8e7d04f990a1fe929a
86,855
py
Python
pyhdx/web/controllers.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
pyhdx/web/controllers.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
pyhdx/web/controllers.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
import operator import urllib.request import zipfile from collections import namedtuple from io import StringIO, BytesIO from pathlib import Path import colorcet import dask import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd import panel as pn import param from numpy.lib.re...
41.657074
160
0.632307
1c360e04d5d93c7aa7945e000a7c9be1dceb31d0
4,681
py
Python
nrfupytesteos/nrfu_lag_status.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
33
2019-10-29T18:32:48.000Z
2022-03-20T19:57:59.000Z
nrfupytesteos/nrfu_lag_status.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
null
null
null
nrfupytesteos/nrfu_lag_status.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
12
2019-10-25T19:36:44.000Z
2021-12-07T10:21:07.000Z
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
27.215116
98
0.584277
1c3631c201d055d6da590d47ef021b01d38d3e12
1,482
py
Python
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
1
2020-12-16T14:16:16.000Z
2020-12-24T10:35:27.000Z
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
# Import nltk to process text from nltk.tokenize import word_tokenize from nltk.stem.porter import PorterStemmer import nltk import string nltk.download('punkt') def clean_text(text: str, lower: bool = True, rmv_punc: bool = True, stem: bool = True): """ This function accepts a string and performs preprocessi...
40.054054
113
0.684211
1c36429c5af7746ce881193eb02e651c5922a10c
3,283
py
Python
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # topics.py # # A program to correspond notebook titles to outline topics. # # # # edit, from the README: """This program reports on the state of the outline. - tools/topics.py [word ...] lists all topics in the outline for which there is a source notebook. - tools/topics.py -a [word ...] ...
34.925532
79
0.625952
1c364a6388c8dc792e21bc5b830da7ebd076b86f
659
py
Python
var/spack/repos/builtin/packages/py-scinum/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-scinum/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-scinum/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyScinum(PythonPackage): """Scientific numbers with multiple uncertainties and corr...
32.95
95
0.728376
1c36690f65fbbbe58293b8db6f331e0ffc08a85f
6,698
py
Python
hs_core/management/commands/ingest_irods_files.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/management/commands/ingest_irods_files.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/management/commands/ingest_irods_files.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- """ Check synchronization between iRODS and Django This checks that every file in IRODS corresponds to a ResourceFile in Django. If a file in iRODS is not present in Django, it attempts to register that file in Django. * By default, prints errors on stdout. * Optional argument --log instead l...
46.193103
99
0.457599
1c3671765dface0d62955322a8c4f99cc1df9d83
54
py
Python
carla/recourse_methods/catalog/face/library/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/face/library/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/face/library/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .face_method import graph_search
13.5
37
0.796296
1c3682f0aa02ce5a326ed581c79171e4ca8c0219
742
py
Python
esengine/utils/payload/suggesters.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
53
2017-04-29T16:39:13.000Z
2022-01-25T23:46:31.000Z
esengine/utils/payload/suggesters.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
9
2017-11-22T18:22:17.000Z
2020-06-05T19:26:07.000Z
esengine/utils/payload/suggesters.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
13
2017-10-27T13:44:04.000Z
2021-02-28T12:33:04.000Z
from esengine.utils.payload.meta import BaseSuggester, MetaSuggester from esengine.utils.payload.exception import NoSuggester SUGGESTERS = { 'term': { 'args': ('field', ), 'kwargs': ('analyzer', 'size', 'sort', 'suggest_mode') }, 'phrase': { 'args': ('field', ), 'kwargs': ( ...
24.733333
72
0.570081
1c36b3adf05871417441451bc5d79cf3af372fe2
8,367
py
Python
PrecisionRecallTest.py
PerttuHamalainen/DRMM
1d7d52df95adee344516322700209f3a9f8147fb
[ "MIT" ]
5
2020-08-04T07:23:24.000Z
2021-12-02T21:01:03.000Z
PrecisionRecallTest.py
PerttuHamalainen/DRMM
1d7d52df95adee344516322700209f3a9f8147fb
[ "MIT" ]
9
2020-08-10T00:39:21.000Z
2022-03-12T00:43:59.000Z
PrecisionRecallTest.py
PerttuHamalainen/DRMM
1d7d52df95adee344516322700209f3a9f8147fb
[ "MIT" ]
null
null
null
import numpy as np import random import os import matplotlib.pyplot as pp #os.environ["CUDA_VISIBLE_DEVICES"]="-1" #disable Tensorflow GPU usage, these simple graphs run faster on CPU import tensorflow as tf import DRMM as DRMM from skimage.util import view_as_blocks from precision_recall import knn_precision_recall_f...
40.616505
226
0.668101
1c36f35a446d49c3031b2b4e597087cdccf2c803
241
py
Python
python/python/collections/sets.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/python/collections/sets.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/python/collections/sets.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
my_set = set() print('Empty set', my_set) if my_set: print('Unexpected') else: print('set is empty') my_set.add(2) print(my_set) if 2 in my_set: print('set has a 2') # not possible -> gives error #print('set has a ', my_set.get(2))
15.0625
35
0.655602
1c36f73c1d6c033f462ea0470b5c45c07f6916bf
7,879
py
Python
clients/client/python/ory_client/model/ui_node_input_attributes.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_input_attributes.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_input_attributes.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.17 Contact: support@ory.sh Generated by: htt...
40.19898
194
0.578754
1c3728df0c54b1c7cd720de32f058a8438ed26a4
4,103
py
Python
pinax/apps/signup_codes/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/signup_codes/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/apps/signup_codes/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.translation import ugettext from django.contrib import messages from django.contrib.admin.views.decorators import staff_member_requi...
31.320611
92
0.62369
1c373a83cf29a9784f9977e93c516c30db74deb6
4,674
py
Python
src/linakdeskapp/gui/mpl/position_chart.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
121
2018-09-19T20:10:21.000Z
2022-03-31T08:07:33.000Z
src/linakdeskapp/gui/mpl/position_chart.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
13
2020-02-19T15:58:37.000Z
2022-03-05T03:20:42.000Z
src/linakdeskapp/gui/mpl/position_chart.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
12
2020-02-13T23:55:30.000Z
2022-01-30T15:11:31.000Z
# MIT License # # Copyright (c) 2017 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 # t...
32.915493
93
0.624519
1c373bc712a9957c5102c096cfc4e643dc9cdcd9
267
py
Python
options/constants.py
marcosgabarda/django-options
285744850510610f4e5cbad51eefd2461f6d969c
[ "MIT" ]
4
2018-08-09T13:41:25.000Z
2021-03-25T15:47:12.000Z
options/constants.py
marcosgabarda/django-options
285744850510610f4e5cbad51eefd2461f6d969c
[ "MIT" ]
5
2019-06-29T08:19:24.000Z
2021-03-25T08:51:41.000Z
options/constants.py
marcosgabarda/django-options
285744850510610f4e5cbad51eefd2461f6d969c
[ "MIT" ]
2
2019-06-27T22:12:48.000Z
2020-07-10T07:52:24.000Z
from django.utils.translation import gettext_lazy as _ FLOAT, INT, STR, FILE = (0, 1, 2, 3) TYPE_CHOICES = ( (FLOAT, _("Float")), (INT, _("Integer")), (STR, _("String")), (FILE, _("File")), ) CONVERTER = {INT: int, FLOAT: float, STR: str, FILE: str}
24.272727
57
0.588015
1c373cbe1e3abecb9da944ff3fafb3694b4d1522
48,431
py
Python
raiden/api/python.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
raiden/api/python.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
raiden/api/python.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
import gevent import structlog from eth_utils import is_binary_address from raiden import waiting from raiden.api.exceptions import ChannelNotFound, NonexistingChannel from raiden.constants import NULL_ADDRESS_BYTES, UINT64_MAX, UINT256_MAX from raiden.exceptions import ( AlreadyRegisteredTokenAddress, Deposit...
40.091887
99
0.670191
1c3761753b08197305fbfa0a1376c13ef72b4aed
505
py
Python
note/models.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
note/models.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
note/models.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
from django.db import models from easydata.db.mysql.fields import C_SmallIntegerField, C_AutoField, C_IntegerField class Note(models.Model): id = C_AutoField(max_length=8, primary_key=True) uid = C_IntegerField(max_length=11, default=0) username = models.CharField(max_length=30) content = models.TextFi...
38.846154
85
0.760396
1c37621aafb0e31028386e7910f15bba4ec73003
44
py
Python
Src/Escher/tools/mesh_interpolate/__init__.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/Escher/tools/mesh_interpolate/__init__.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/Escher/tools/mesh_interpolate/__init__.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
from .main import deformation_interpolation
22
43
0.886364
1c376e540bc74c7fd130ca8cf9efedabccf1a9ae
20,269
py
Python
github_comments/github_comments.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
1
2015-11-05T14:32:35.000Z
2015-11-05T14:32:35.000Z
github_comments/github_comments.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
1
2016-03-13T22:56:54.000Z
2016-03-14T01:35:58.000Z
github_comments/github_comments.py
alikins/github-comments
6ccca44d6f6fa87cdeaffe65ef695cb2b099d707
[ "MIT" ]
null
null
null
#!/usr/bin/python # show github pull request comments in a lint like format # # ala, pep8, jslint, etc, except for code review comments # # potentially useful to use with syntastic/flymake/etc # # Thoughts: # - it would be nice if this was a minimal dep one file script # - it would be nice if this could DWIM and f...
35.435315
97
0.627066
1c3774f46ae2fc55a60f74c65a9126aab48b4517
2,445
py
Python
Benchmarks/benchmark-5.7.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
111
2015-01-06T20:26:31.000Z
2022-03-14T13:17:12.000Z
Benchmarks/benchmark-5.7.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
4
2018-06-15T20:35:36.000Z
2021-01-13T16:03:40.000Z
Benchmarks/benchmark-5.7.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
43
2015-04-18T13:44:01.000Z
2022-03-14T13:17:13.000Z
import logging import pika import sys import time from pika.adapters import tornado_connection LOGGER = logging.getLogger(__name__) QOS = int(sys.argv[1]) if len(sys.argv) == 2 else None ROUTING_KEY = 'benchmark_qos_%s' % QOS PROPERTIES = pika.BasicProperties(content_type='text/plain', delivery_mode=1) ITERATIONS =...
28.103448
77
0.699387
1c378b561a90a4ed274c10b232748a03260b27d9
893
py
Python
src/clusto/test/base/countertests.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/test/base/countertests.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/test/base/countertests.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from clusto.test import testbase from clusto.schema import * from clusto.drivers.base import * class TestClustoCounter(testbase.ClustoTestBase): def testCounterDefault(self): e = Entity('e1') c = Counter(e, 'key1') self.assertEqual(c.value, 0) d = Counter(e, 'key2', start=10) ...
19
49
0.546473
1c3793a20513ed473bbca4e1b4bdc673ad328aed
229
py
Python
src/vassal_deployer/__init__.py
evansde77/vassal_deployer
4aaadd35b81c454a6264540f5fb795bfc1daa991
[ "Apache-2.0" ]
null
null
null
src/vassal_deployer/__init__.py
evansde77/vassal_deployer
4aaadd35b81c454a6264540f5fb795bfc1daa991
[ "Apache-2.0" ]
null
null
null
src/vassal_deployer/__init__.py
evansde77/vassal_deployer
4aaadd35b81c454a6264540f5fb795bfc1daa991
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ vassal_deployer """ __version__="0.0.2" import os from .logger import get_logger logger = get_logger( os.environ.get('VASSAL_DEPLOYER_LOG'), os.environ.get('VASSAL_DEPLOYER_STDOUT', False) )
14.3125
51
0.716157
1c379c378fffabea367feee717680ccc02e4754d
200,004
py
Python
tests/api_test.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
null
null
null
tests/api_test.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
6
2022-01-03T08:14:15.000Z
2022-02-14T08:13:40.000Z
tests/api_test.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.378099
127
0.607553
1c37a83c830cb55ad1916a0c80361da3be597d97
2,801
py
Python
BagModules/bag_digital_ec/tinv.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/bag_digital_ec/tinv.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/bag_digital_ec/tinv.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
2
2019-06-30T07:03:02.000Z
2020-01-07T04:55:21.000Z
# -*- coding: utf-8 -*- from typing import Dict, Any import os import pkg_resources from bag.design import Module yaml_file = pkg_resources.resource_filename(__name__, os.path.join('netlist_info', 'tinv.yaml')) # noinspection PyPep8Naming class bag_digital_ec__tinv(Module): """Module for library bag_digital_...
32.569767
96
0.555873
1c37dbc948feee822d32407b551e6cb846df0a97
8,535
py
Python
gslib/addlhelp/encoding.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/addlhelp/encoding.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/addlhelp/encoding.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2014 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 require...
49.051724
81
0.765436
1c37e27edfc4943fd7bb74198f2abf1fa0b756a5
22,624
py
Python
rock4/common/p_common.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
rock4/common/p_common.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
rock4/common/p_common.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: pyrunner.common Rough version history: v1.0 Original version to use v2.0 Classify some useful functions v2.1 define this module for common functions v3.0 delete the class of WebBasic use this module instead of the class named WebBasic ...
34.278788
169
0.545748
1c3810636948f78f89ffd64dd6a5e2b02a26c543
1,003
py
Python
app/resources/v1/ti/indicadores_mun.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/ti/indicadores_mun.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/ti/indicadores_mun.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class IndicadoresTIMunicipiosResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "requ...
38.576923
99
0.668993
1c389e6e09a465c0e3c1d8b9b5019040cd95e042
2,539
py
Python
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
1
2018-09-22T22:13:01.000Z
2018-09-22T22:13:01.000Z
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
null
null
null
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Setup for pypassvault project from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE.txt') as f: license = f.read() setup( name='pypassvault', version='0.1.4', description='A simple commandline password vault writ...
31.345679
79
0.639622
1c38aa00eda65281d3fb5a0dc4a4a97245553c9a
11,436
py
Python
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiT...
39.84669
110
0.551591
1c38c159ae02da710e19c4593c15a0eaa92ab01e
3,528
py
Python
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2014 Midokura Europe SARL, All Rights Reserved. # 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://w...
34.252427
76
0.673186
1c38ca4f0b0b985f7ba75056ec5c7c6e2582f6e6
1,120
py
Python
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
import unittest from tests.lib.client import get_client from tests.lib.funding_sources import FundingSources from tests.lib.funding_source_verifications import verify_gateway_program_funding_source_response from marqeta.errors import MarqetaError class TestFundingSourceProgramGatewayCreate(unittest.TestCase): ""...
32.941176
97
0.748214
1c38ddf16aa8af9fd8d109632806264210930a3c
8,795
py
Python
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
33
2021-04-14T01:27:34.000Z
2022-03-30T03:32:00.000Z
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
null
null
null
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
6
2021-04-14T14:43:19.000Z
2022-01-01T14:36:11.000Z
# Copyright 2020 Keren Ye, University of Pittsburgh # # 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...
35.18
80
0.66606
1c38df0326d8b746f40fd4e79b8d48711c60488c
15,455
py
Python
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2001-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
33.671024
79
0.604465
1c38e7231d5c77c8bf1ca323c8fc43dd65c74f84
3,594
py
Python
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import os import tensorflow as tf from model.config import cfg from model.test import im_detect from nets.resnet_v1 import resnetv1 from nets.vgg16 import vgg16 from utils.timer import Timer CLASSE...
30.717949
94
0.584864
1c38ec052b5ddea8487aba11a06c53ea793be859
14,396
py
Python
src/cloudant/view.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
1
2017-01-22T21:42:20.000Z
2017-01-22T21:42:20.000Z
venv/lib/python3.5/site-packages/cloudant/view.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.5/site-packages/cloudant/view.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015 IBM. 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 ...
37.295337
81
0.633996
1c38ec844d9bc6690a842eedede54bb33740e663
1,682
py
Python
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
1
2020-10-31T03:25:23.000Z
2020-10-31T03:25:23.000Z
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
15
2020-05-29T11:50:13.000Z
2020-12-08T11:07:45.000Z
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
null
null
null
from pathlib import Path import configparser import inspect import os MSG = '`{msg} <https://{host}/{user}/{project}/{sep}/{file}#L{begin}-L{end}>`_' SEPARATORS = { 'github.com': 'blob/master', 'gitlab.com': '-/blob/master', } SECTIONS = '-=~_+*#`\':<>^"' _GIT_SUFFIX = '.git' _SSH_PREFIX = 'git@' _HTTPS_PREFI...
25.484848
79
0.550535
1c38f34f72256a64a2c7d5472579ad0c3de7e838
19,346
py
Python
panels/options.py
skinny121/MCEdit-TallWorlds
e43fe889fde0ce41652ab77d7887a2a680846312
[ "0BSD" ]
5
2015-05-18T06:22:54.000Z
2020-08-04T08:27:02.000Z
panels/options.py
skinny121/MCEdit-TallWorlds
e43fe889fde0ce41652ab77d7887a2a680846312
[ "0BSD" ]
null
null
null
panels/options.py
skinny121/MCEdit-TallWorlds
e43fe889fde0ce41652ab77d7887a2a680846312
[ "0BSD" ]
null
null
null
import albow from albow.dialogs import Dialog from config import config import pygame from albow.translate import _, buildTemplate import sys import os import logging import traceback import directories old_lang = None old_fprop = None class OptionsPanel(Dialog): anchor = 'wh' def __init__(self, mcedit): ...
47.650246
163
0.563734
1c393e0e4e5cdb3c7b762f7c9e41dfc5893cdb33
4,396
py
Python
NLPCC_2018_TASK2_GEC/CS2S+BPE+Emb/software/nbest-reranker/log_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
NLPCC_2018_TASK2_GEC/CS2S+BPE+Emb/software/nbest-reranker/log_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
NLPCC_2018_TASK2_GEC/CS2S+BPE+Emb/software/nbest-reranker/log_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
import logging import sys #-----------------------------------------------------------------------------------------------------------# import re class BColors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033...
34.34375
109
0.541401