repo_name stringlengths 7 94 | repo_path stringlengths 4 237 | repo_head_hexsha stringlengths 40 40 | content stringlengths 10 680k | apis stringlengths 2 680k |
|---|---|---|---|---|
AdrianP-/rlcard | rlcard/utils/seeding.py | 5b99dc8faa4c97ecac2d1189967b90c45d79624b | #The MIT License
#
#Copyright (c) 2020 DATA Lab at Texas A&M University
#Copyright (c) 2016 OpenAI (https://openai.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, inclu... | [((1976, 1999), 'numpy.random.RandomState', 'np.random.RandomState', ([], {}), '()\n', (1997, 1999), True, 'import numpy as np\n'), ((3666, 3687), 'os.urandom', 'os.urandom', (['max_bytes'], {}), '(max_bytes)\n', (3676, 3687), False, 'import os\n'), ((3760, 3777), 'hashlib.sha512', 'hashlib.sha512', (['a'], {}), '(a)\n... |
ex4sperans/freesound-classification | ops/transforms.py | 71b9920ce0ae376aa7f1a3a2943f0f92f4820813 | import random
import math
from functools import partial
import json
import pysndfx
import librosa
import numpy as np
import torch
from ops.audio import (
read_audio, compute_stft, trim_audio, mix_audio_and_labels,
shuffle_audio, cutout
)
SAMPLE_RATE = 44100
class Augmentation:
"""A base class for data... | [((2606, 2636), 'ops.audio.read_audio', 'read_audio', (["inputs['filename']"], {}), "(inputs['filename'])\n", (2616, 2636), False, 'from ops.audio import read_audio, compute_stft, trim_audio, mix_audio_and_labels, shuffle_audio, cutout\n'), ((2962, 3058), 'ops.audio.compute_stft', 'compute_stft', (["inputs['audio']"], ... |
mathematicalmichael/thesis | figures/pp.py | 2906b10f94960c3e75bdb48e5b8b583f59b9441e | #!/usr/env/bin python
import os
# os.environ['OMP_NUM_THREADS'] = '1'
from newpoisson import poisson
import numpy as np
from fenics import set_log_level, File, RectangleMesh, Point
mesh = RectangleMesh(Point(0,0), Point(1,1), 36, 36)
# comm = mesh.mpi_comm()
set_log_level(40) # ERROR=40
# from mpi4py import MPI
# com... | [((261, 278), 'fenics.set_log_level', 'set_log_level', (['(40)'], {}), '(40)\n', (274, 278), False, 'from fenics import set_log_level, File, RectangleMesh, Point\n'), ((203, 214), 'fenics.Point', 'Point', (['(0)', '(0)'], {}), '(0, 0)\n', (208, 214), False, 'from fenics import set_log_level, File, RectangleMesh, Point\... |
kluhan/seraphim | additions/irreducible_check.py | 412b693effb15f80d348d6d885d7c781774bb8aa | """
Irreduzibilitätskriterien
Implementiert wurden das Eisenstein- und das Perronkriterium
Quellen:
https://rms.unibuc.ro/bulletin/pdf/53-3/perron.pdf
http://math-www.uni-paderborn.de/~chris/Index33/V/par5.pdf
Übergeben werden Polynome vom Typ Polynomial, keine direkten Listen von Koeff... | [((1295, 1341), 'itertools.combinations', 'itertools.combinations', (['non_zero_polynomial', '(2)'], {}), '(non_zero_polynomial, 2)\n', (1317, 1341), False, 'import itertools\n'), ((2755, 2804), 'helper.is_polynomial_coprime', 'helper.is_polynomial_coprime', (['(polynomial is False)'], {}), '(polynomial is False)\n', (... |
auderson/numba | numba/stencils/stencil.py | 3d67c9850ab56457f418cf40af6245fd9c337705 | #
# Copyright (c) 2017 Intel Corporation
# SPDX-License-Identifier: BSD-2-Clause
#
import copy
import numpy as np
from llvmlite import ir as lir
from numba.core import types, typing, utils, ir, config, ir_utils, registry
from numba.core.typing.templates import (CallableTemplate, signature,
... | [((39586, 39608), 'numba.core.imputils.lower_builtin', 'lower_builtin', (['stencil'], {}), '(stencil)\n', (39599, 39608), False, 'from numba.core.imputils import lower_builtin\n'), ((1712, 1732), 'numba.misc.special.literal_unroll', 'literal_unroll', (['args'], {}), '(args)\n', (1726, 1732), False, 'from numba.misc.spe... |
lujieyang/irs_lqr | examples/bicycle/bicycle_dynamics.py | bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f | import numpy as np
import pydrake.symbolic as ps
import torch
import time
from irs_lqr.dynamical_system import DynamicalSystem
class BicycleDynamics(DynamicalSystem):
def __init__(self, h):
super().__init__()
"""
x = [x pos, y pos, heading, speed, steering_angle]
u = [acceleration,... | [((3342, 3380), 'pydrake.symbolic.Evaluate', 'ps.Evaluate', (['self.jacobian_xu_sym', 'env'], {}), '(self.jacobian_xu_sym, env)\n', (3353, 3380), True, 'import pydrake.symbolic as ps\n'), ((3554, 3613), 'numpy.zeros', 'np.zeros', (['(x.shape[0], x.shape[1], x.shape[1] + u.shape[1])'], {}), '((x.shape[0], x.shape[1], x.... |
harmkenn/PST_Deploy_Test | apps/proportions.py | 2484acf13f1f998c98fa94fad98c1f75c27d292b | import streamlit as st
import math
from scipy.stats import *
import pandas as pd
import numpy as np
from plotnine import *
def app():
# title of the app
st.subheader("Proportions")
st.sidebar.subheader("Proportion Settings")
prop_choice = st.sidebar.radio("",["One Proportion","Two Proportions"])
... | [((162, 189), 'streamlit.subheader', 'st.subheader', (['"""Proportions"""'], {}), "('Proportions')\n", (174, 189), True, 'import streamlit as st\n'), ((194, 237), 'streamlit.sidebar.subheader', 'st.sidebar.subheader', (['"""Proportion Settings"""'], {}), "('Proportion Settings')\n", (214, 237), True, 'import streamlit ... |
subhash12/cf-python-client | integration/v2/test_service_instances.py | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | import logging
import unittest
from config_test import build_client_from_configuration
_logger = logging.getLogger(__name__)
class TestServiceInstances(unittest.TestCase):
def test_create_update_delete(self):
client = build_client_from_configuration()
result = client.v2.service_instances.create(... | [((99, 126), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (116, 126), False, 'import logging\n'), ((234, 267), 'config_test.build_client_from_configuration', 'build_client_from_configuration', ([], {}), '()\n', (265, 267), False, 'from config_test import build_client_from_configuration\... |
troyready/runway | runway/core/providers/__init__.py | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | """Runway providers."""
| [] |
noelli/bacpypes | samples/COVServer.py | c2f4d753ed86bc0357823e718e7ff16c05f06850 | #!/usr/bin/env python
"""
This sample application is a server that supports COV notification services.
The console accepts commands that change the properties of an object that
triggers the notifications.
"""
import time
from threading import Thread
from bacpypes.debugging import bacpypes_debugging, ModuleLogger
fro... | [((10421, 10462), 'bacpypes.consolelogging.ConfigArgumentParser', 'ConfigArgumentParser', ([], {'description': '__doc__'}), '(description=__doc__)\n', (10441, 10462), False, 'from bacpypes.consolelogging import ConfigArgumentParser\n'), ((11416, 11447), 'bacpypes.local.device.LocalDeviceObject', 'LocalDeviceObject', ([... |
theopak/glassface | server/glassface/facebookfriender/views.py | bcb6c02636bda069d604a4da1dd09222e99be356 | import os
import platform
import subprocess
from django.http import HttpResponse
from django.conf import settings
def add(request, friend):
phantomjs = os.path.join(settings.PROJECT_PATH, 'glassface', 'facebookfriender', platform.system(), 'phantomjs')
script = os.path.join(settings.PROJECT_PATH, 'glassface'... | [] |
rubyruins/fancylit | fancylit/modeling/yellowbrick_funcs.py | 56a7cdfe78edd687a3b318bbbfa534203de1ace8 | import random
import numpy as np
import pandas as pd
import streamlit as st
from sklearn.naive_bayes import GaussianNB
from sklearn.model_selection import train_test_split
from yellowbrick.classifier import classification_report
from yellowbrick.target import FeatureCorrelation
from yellowbrick.target import ClassBalan... | [((835, 883), 'streamlit.selectbox', 'st.selectbox', (['"""Select Target Column"""', 'df.columns'], {}), "('Select Target Column', df.columns)\n", (847, 883), True, 'import streamlit as st\n'), ((897, 924), 'numpy.array', 'np.array', (['df[target_string]'], {}), '(df[target_string])\n', (905, 924), True, 'import numpy ... |
moonbria/test1 | info/modules/admin/views.py | 05893bd91d416ca4093e4619ede427434fa665cc | from flask import request
import random
import re
from flask import current_app, jsonify
from flask import g
from flask import make_response
from flask import redirect
from flask import render_template
from flask import request
from flask import session
from flask import url_for
import time
from info import constants, ... | [((1169, 1197), 'flask.request.form.get', 'request.form.get', (['"""username"""'], {}), "('username')\n", (1185, 1197), False, 'from flask import request\n'), ((1213, 1241), 'flask.request.form.get', 'request.form.get', (['"""password"""'], {}), "('password')\n", (1229, 1241), False, 'from flask import request\n'), ((4... |
Swati17293/outlet-prediction | src/predict_model.py | 3c1f41b88d71b5247763bacc9dbc1abf5d0619a2 | #Answer Generation
import csv
import os
import numpy as np
from keras.models import *
from keras.models import Model
from keras.preprocessing import text
def load_model():
print('\nLoading model...')
# load json and create model
json_file = open('models/MODEL.json', 'r')
loaded_model_json = json_file... | [((976, 1017), 'numpy.load', 'np.load', (['"""data/vectorized/Test_title.npy"""'], {}), "('data/vectorized/Test_title.npy')\n", (983, 1017), True, 'import numpy as np\n'), ((1045, 1088), 'numpy.load', 'np.load', (['"""data/vectorized/Test_summary.npy"""'], {}), "('data/vectorized/Test_summary.npy')\n", (1052, 1088), Tr... |
Alisa1114/yolov4-pytorch-1 | tools/client.py | 5dd8768f2eef868c9ee4588818350d4e1b50b98f | # -*- coding: UTF-8 -*-
from socket import *
def client():
#實驗室電腦
# serverip='120.126.151.182'
# serverport=8887
#在自己電腦測試
serverip='127.0.0.1'
serverport=8888
client=socket(AF_INET,SOCK_STREAM)
client.connect((serverip,serverport))
address_file = open('tools/address.txt', 'r')... | [] |
hassaniqbal209/data-assimilation | dapy/models/kuramoto_sivashinsky.py | ec52d655395dbed547edf4b4f3df29f017633f1b | """Non-linear SPDE model on a periodic 1D spatial domain for laminar wave fronts.
Based on the Kuramato--Sivashinsky PDE model [1, 2] which exhibits spatio-temporally
chaotic dynamics.
References:
1. Kuramoto and Tsuzuki. Persistent propagation of concentration waves
in dissipative media far from thermal ... | [((6913, 6992), 'dapy.models.transforms.rfft_coeff_to_real_array', 'rfft_coeff_to_real_array', (['(state_noise_kernel + 1.0j * state_noise_kernel)', '(False)'], {}), '(state_noise_kernel + 1.0j * state_noise_kernel, False)\n', (6937, 6992), False, 'from dapy.models.transforms import OneDimensionalFourierTransformedDiag... |
Lif3line/myo-helper | setup.py | 7c71a3ee693661ddba0171545bf5798f46231b3c | """Utiltiy functions for working with Myo Armband data."""
from setuptools import setup, find_packages
setup(name='myo_helper',
version='0.1',
description='Utiltiy functions for working with Myo Armband data',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
license='MIT',
... | [((332, 347), 'setuptools.find_packages', 'find_packages', ([], {}), '()\n', (345, 347), False, 'from setuptools import setup, find_packages\n')] |
karldoenitz/karlooper | demos/restful-users/index.py | 2e1df83ed1ec9b343cdd930162a4de7ecd149c04 | # -*-encoding:utf-8-*-
import os
from karlooper.web.application import Application
from karlooper.web.request import Request
class UsersHandler(Request):
def get(self):
return self.render("/user-page.html")
class UserInfoHandler(Request):
def post(self):
print(self.get_http_request_message(... | [((930, 973), 'karlooper.web.application.Application', 'Application', (['url_mapping'], {'settings': 'settings'}), '(url_mapping, settings=settings)\n', (941, 973), False, 'from karlooper.web.application import Application\n'), ((768, 779), 'os.getcwd', 'os.getcwd', ([], {}), '()\n', (777, 779), False, 'import os\n'), ... |
LijiangLong/3D-ResNets-PyTorch | temporal_transforms.py | 89d2cba0b52d55aaa834635a81c172bc38771cd3 | import random
import math
class LoopPadding(object):
def __init__(self, size):
self.size = size
def __call__(self, frame_indices):
out = frame_indices
for index in out:
if len(out) >= self.size:
break
out.append(index)
return out
cl... | [((2430, 2457), 'random.randint', 'random.randint', (['(0)', 'rand_end'], {}), '(0, rand_end)\n', (2444, 2457), False, 'import random\n')] |
geofft/waiter | cli/waiter/subcommands/kill.py | 0e10cd497c2c679ea43231866d9f803c3fed5d77 | from waiter.action import process_kill_request
from waiter.util import guard_no_cluster, check_positive
def kill(clusters, args, _, __):
"""Kills the service(s) using the given token name."""
guard_no_cluster(clusters)
token_name_or_service_id = args.get('token-or-service-id')
is_service_id = args.get... | [((202, 228), 'waiter.util.guard_no_cluster', 'guard_no_cluster', (['clusters'], {}), '(clusters)\n', (218, 228), False, 'from waiter.util import guard_no_cluster, check_positive\n'), ((436, 537), 'waiter.action.process_kill_request', 'process_kill_request', (['clusters', 'token_name_or_service_id', 'is_service_id', 'f... |
syeda-khurrath/fabric8-analytics-common | a2t/src/a2t.py | 421f7e27869c5695ed73b51e6422e097aba00108 | """The main module of the Analytics API Load Tests tool.
Copyright (c) 2019 Red Hat Inc.
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 late... | [((1154, 1193), 'fastlog.log.info', 'log.info', (['"""Checking: core API endpoint"""'], {}), "('Checking: core API endpoint')\n", (1162, 1193), False, 'from fastlog import log\n'), ((1476, 1534), 'fastlog.log.info', 'log.info', (['"""Checking: authorization token for the core API"""'], {}), "('Checking: authorization t... |
Giri2801/riscv-ctg | riscv_ctg/ctg.py | a90e03f0856bbdd106c3f6d51815af94707e711e | # See LICENSE.incore file for details
import os,re
import multiprocessing as mp
import time
import shutil
from riscv_ctg.log import logger
import riscv_ctg.utils as utils
import riscv_ctg.constants as const
from riscv_isac.cgf_normalize import expand_cgf
from riscv_ctg.generator import Generator
from math import *
fr... | [((2340, 2361), 'riscv_ctg.log.logger.level', 'logger.level', (['verbose'], {}), '(verbose)\n', (2352, 2361), False, 'from riscv_ctg.log import logger\n'), ((2458, 2524), 'riscv_ctg.log.logger.info', 'logger.info', (['"""Copyright (c) 2020, InCore Semiconductors Pvt. Ltd."""'], {}), "('Copyright (c) 2020, InCore Semico... |
ASHISHKUMAR2411/Programming-CookBook | Back-End/Python/timers/clock_named_tuple.py | 9c60655d64d21985ccb4196360858d98344701f9 | from collections import namedtuple
MainTimer = namedtuple('MainTimer', 'new_time_joined, end_period, new_weekday, days')
def add_time(start, duration, start_weekday=None):
weekdays = [
'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
'Saturday', 'Sunday'
]
start_time, period ... | [((49, 122), 'collections.namedtuple', 'namedtuple', (['"""MainTimer"""', '"""new_time_joined, end_period, new_weekday, days"""'], {}), "('MainTimer', 'new_time_joined, end_period, new_weekday, days')\n", (59, 122), False, 'from collections import namedtuple\n')] |
jlaumonier/mlsurvey | mlsurvey/visualize/__init__.py | 373598d067c7f0930ba13fe8da9756ce26eecbaf | from .analyze_logs import AnalyzeLogs
from .search_interface import SearchInterface
from .detail_interface import DetailInterface
from .user_interface import UserInterface
from .visualize_log_detail import VisualizeLogDetail
| [] |
phunc20/dsp | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | import matplotlib.pyplot as plt
import numpy as np
import sys
sys.path.append('../../../software/models/')
import dftModel as DFT
import math
k0 = 8.5
N = 64
w = np.ones(N)
x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2))
mX, pX = DFT.dftAnal(x, w, N)
y = DFT.dftSynth(mX, pX, N)
plt.figure(1, figsize=(9.5, 5))
plt.subpl... | [((63, 107), 'sys.path.append', 'sys.path.append', (['"""../../../software/models/"""'], {}), "('../../../software/models/')\n", (78, 107), False, 'import sys\n'), ((164, 174), 'numpy.ones', 'np.ones', (['N'], {}), '(N)\n', (171, 174), True, 'import numpy as np\n'), ((229, 249), 'dftModel.dftAnal', 'DFT.dftAnal', (['x'... |
jerzydziewierz/typobs | setup.py | 15fa697386f5fb3a1df53b865557c338be235d91 | # setup.py as described in:
# https://stackoverflow.com/questions/27494758/how-do-i-make-a-python-script-executable
# to install on your system, run:
# > pip install -e .
from setuptools import setup, find_packages
setup(
name='typobs',
version='0.0.3',
entry_points={
'console_scripts': [
... | [((423, 438), 'setuptools.find_packages', 'find_packages', ([], {}), '()\n', (436, 438), False, 'from setuptools import setup, find_packages\n')] |
ehelms/system-baseline-backend | tests/fixtures.py | 729cc8ba53119a7ed397fb3ea3d46f9ecedb8528 | """
decoded AUTH_HEADER (newlines added for readability):
{
"identity": {
"account_number": "1234",
"internal": {
"org_id": "5678"
},
"type": "User",
"user": {
"email": "test@example.com",
"first_name": "Firstname",
"is_active":... | [] |
Elfenreigen/MCM-2021-C-SJTU-Test | 2021-02-03/2.py | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | #####Time Flow Simulation######
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from datetime import timedelta
import datetime
import csv
data=pd.read_excel('CF66-all.xlsx')
data.sort_values(by=['WBL_AUD_DT'],ascending=True,inplace=True)
or_data=pd.read_excel('CF66-ordinary.xlsx')
rul... | [((175, 205), 'pandas.read_excel', 'pd.read_excel', (['"""CF66-all.xlsx"""'], {}), "('CF66-all.xlsx')\n", (188, 205), True, 'import pandas as pd\n'), ((280, 315), 'pandas.read_excel', 'pd.read_excel', (['"""CF66-ordinary.xlsx"""'], {}), "('CF66-ordinary.xlsx')\n", (293, 315), True, 'import pandas as pd\n'), ((322, 372)... |
qrebjock/fanok | tests/test_selection.py | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | import pytest
import numpy as np
from fanok.selection import adaptive_significance_threshold
@pytest.mark.parametrize(
"w, q, offset, expected",
[
([1, 2, 3, 4, 5], 0.1, 0, 1),
([-1, 2, -3, 4, 5], 0.1, 0, 4),
([-3, -2, -1, 0, 1, 2, 3], 0.1, 0, np.inf),
([-3, -2, -1, 0, 1, 2, ... | [((98, 480), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""w, q, offset, expected"""', '[([1, 2, 3, 4, 5], 0.1, 0, 1), ([-1, 2, -3, 4, 5], 0.1, 0, 4), ([-3, -2, -1,\n 0, 1, 2, 3], 0.1, 0, np.inf), ([-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, \n 9, 10], 0.1, 0, 4), ([-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8... |
fintelia/habitationi | unitcap/unit_cap.py | 7dd15ecbab0ad63a70505920766de9c27294fb6e | #!/usr/bin/python
# Copyright 2019 Christopher Schmidt
#
# 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... | [] |
AbhiK002/Matrix | matrix/__init__.py | 2d83f08877dccba9e4c710bd5fb65f613848d63f | from .main import Matrix
| [] |
jasstionzyf/Mask_RCNN | samples/cmk/test.py | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb |
import os
import sys
import json
import datetime
import numpy as np
import glob
import skimage
from PIL import Image as pil_image
import cv2
import cv2
def locationToMask(locations=None,height=None,width=None):
mask = np.zeros([height, width, len(locations)],
dtype=np.uint8)
for ... | [((603, 636), 'os.path.join', 'os.path.join', (['dataset_dir', 'subset'], {}), '(dataset_dir, subset)\n', (615, 636), False, 'import os\n'), ((694, 718), 'glob.glob', 'glob.glob', (['imagesPattern'], {}), '(imagesPattern)\n', (703, 718), False, 'import glob\n'), ((503, 544), 'numpy.ones', 'np.ones', (['[mask.shape[-1]]... |
ZhongXinWang/python | myBeautifulSoup.py | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Author:Winston.Wang
import requests
from bs4 import BeautifulSoup
print(dir(BeautifulSoup))
url = 'http://www.baidu.com';
with requests.get(url) as r:
r.encoding='utf-8'
soup = BeautifulSoup(r.text)
#格式化
pret = soup.prettify();
u = soup.select('#u1 a')
for i in u:
... | [((175, 192), 'requests.get', 'requests.get', (['url'], {}), '(url)\n', (187, 192), False, 'import requests\n'), ((227, 248), 'bs4.BeautifulSoup', 'BeautifulSoup', (['r.text'], {}), '(r.text)\n', (240, 248), False, 'from bs4 import BeautifulSoup\n')] |
adityakekare/NewsAPIDjango | blogsNewsModule/urls.py | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | from django.urls import path, include
from . import views
urlpatterns = [
path("", views.newsView, name="home"),
path("createBlog", views.CreateBlogView.as_view(), name="createBlog"),
path("myBlogs", views.PostListView.as_view(), name="myBlogs"),
path("single/<int:pk>", views.PostDetailView.as_view(), ... | [((79, 116), 'django.urls.path', 'path', (['""""""', 'views.newsView'], {'name': '"""home"""'}), "('', views.newsView, name='home')\n", (83, 116), False, 'from django.urls import path, include\n'), ((340, 396), 'django.urls.path', 'path', (['"""subscribe"""', 'views.subscribeView'], {'name': '"""subscribe"""'}), "('sub... |
MatthewZheng/UnitsPlease | unitClass.py | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | #!/usr/bin/python
_author_ = "Matthew Zheng"
_purpose_ = "Sets up the unit class"
class Unit:
'''This is a class of lists'''
def __init__(self):
self.baseUnits = ["m", "kg", "A", "s", "K", "mol", "cd", "sr", "rad"]
self.derivedUnits = ["Hz", "N", "Pa", "J", "W", "C", "V", "F", "ohm", "S", "Wb",... | [] |
MathAdventurer/Data_Mining | week4/string_format.py | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 22:23:07 2020
@author: Neal LONG
Try to construct URL with string.format
"""
base_url = "http://quotes.money.163.com/service/gszl_{:>06}.html?type={}"
stock = "000002"
api_type = 'cp'
print("http://quotes.money.163.com/service/gszl_"+stock+".html?type="... | [] |
Wonders11/conan | conans/server/server_launcher.py | 28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8 | from conans.server.launcher import ServerLauncher
from conans.util.env_reader import get_env
launcher = ServerLauncher(server_dir=get_env("CONAN_SERVER_HOME"))
app = launcher.server.root_app
def main(*args):
launcher.launch()
if __name__ == "__main__":
main()
| [((132, 160), 'conans.util.env_reader.get_env', 'get_env', (['"""CONAN_SERVER_HOME"""'], {}), "('CONAN_SERVER_HOME')\n", (139, 160), False, 'from conans.util.env_reader import get_env\n')] |
praveenkuttappan/azure-sdk-for-python | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | 4b79413667b7539750a6c7dde15737013a3d4bd5 | # 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 ... | [] |
philipmduarte/armory | blender/arm/material/cycles.py | 675211c66a1e49147226ccb472a6f5dc87b7db02 | #
# This module builds upon Cycles nodes work licensed as
# Copyright 2011-2013 Blender 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/LICENSE-2... | [((68911, 68946), 'arm.material.mat_state.bind_textures.append', 'mat_state.bind_textures.append', (['tex'], {}), '(tex)\n', (68941, 68946), True, 'import arm.material.mat_state as mat_state\n'), ((64744, 64782), 'os.path.join', 'os.path.join', (['unpack_path', "tex['file']"], {}), "(unpack_path, tex['file'])\n", (6475... |
Jizanator/botty | src/config.py | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | import configparser
import numpy as np
import os
class Config:
def _select_val(self, section: str, key: str = None):
if section in self._custom and key in self._custom[section]:
return self._custom[section][key]
elif section in self._config:
return self._config[se... | [((9646, 9673), 'os.listdir', 'os.listdir', (['f"""assets/items"""'], {}), "(f'assets/items')\n", (9656, 9673), False, 'import os\n'), ((871, 898), 'configparser.ConfigParser', 'configparser.ConfigParser', ([], {}), '()\n', (896, 898), False, 'import configparser\n'), ((976, 1003), 'configparser.ConfigParser', 'configp... |
haoxiangsnr/aps | aps/transform/utils.py | 38f77139b54553b0cb04b26a833bebbbf3177c5e | # Copyright 2019 Jian Wu
# License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
import math
import numpy as np
import torch as th
import torch.nn as nn
import torch.nn.functional as tf
import librosa.filters as filters
from aps.const import EPSILON
from typing import Optional, Union, Tuple
def init_win... | [((2302, 2318), 'torch.fft', 'th.fft', (['(I / S)', '(1)'], {}), '(I / S, 1)\n', (2308, 2318), True, 'import torch as th\n'), ((2532, 2570), 'torch.reshape', 'th.reshape', (['K', '(B * 2, 1, K.shape[-1])'], {}), '(K, (B * 2, 1, K.shape[-1]))\n', (2542, 2570), True, 'import torch as th\n'), ((3743, 3848), 'librosa.filte... |
xihuaiwen/chinese_bert | applications/tensorflow/cnns/models/resnet.py | 631afbc76c40b0ac033be2186e717885246f446c | # Copyright 2019 Graphcore Ltd.
from models.resnet_base import ResNet
import tensorflow.compat.v1 as tf
import tensorflow.contrib as contrib
from tensorflow.python.ipu import normalization_ops
# This is all written for: NHWC
class TensorflowResNet(ResNet):
def __init__(self, *args, **kwargs):
self.dtype... | [((462, 526), 'tensorflow.compat.v1.get_variable', 'tf.get_variable', (['name', 'shape'], {'initializer': 'init', 'dtype': 'self.dtype'}), '(name, shape, initializer=init, dtype=self.dtype)\n', (477, 526), True, 'import tensorflow.compat.v1 as tf\n'), ((1235, 1248), 'tensorflow.compat.v1.nn.relu', 'tf.nn.relu', (['x'],... |
mareknowak98/AuctionPortal | backend/app/migrations/0021_auto_20201205_1846.py | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | # Generated by Django 3.1.4 on 2020-12-05 18:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0020_auto_20201204_2324'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profileBankAcc... | [((347, 401), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(30)', 'null': '(True)'}), '(blank=True, max_length=30, null=True)\n', (363, 401), False, 'from django.db import migrations, models\n'), ((540, 594), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '... |
bedaro/ssm-analysis | rawcdf_extract.py | 09880dbfa5733d6301b84accc8f42a5ee320d698 | #!/usr/bin/env python3
import time
import os
import tempfile
import shutil
import logging
from enum import Enum
from argparse import ArgumentParser, Namespace, FileType
from netCDF4 import Dataset, MFDataset
import geopandas as gpd
import numpy as np
domain_nodes_shp = "gis/ssm domain nodes.shp"
masked_nodes_txt = "g... | [((351, 378), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (368, 378), False, 'import logging\n'), ((857, 875), 'numpy.loadtxt', 'np.loadtxt', (['masked'], {}), '(masked)\n', (867, 875), True, 'import numpy as np\n'), ((1274, 1293), 'argparse.Namespace', 'Namespace', ([], {}), '(**kwarg... |
nadiaaaaachen/Bigscity-LibCity | libcity/executor/map_matching_executor.py | d8efd38fcc238e3ba518c559cc9f65b49efaaf71 | from logging import getLogger
from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor
from libcity.utils import get_evaluator
class MapMatchingExecutor(AbstractTraditionExecutor):
def __init__(self, config, model):
self.model = model
self.config = config
self.ev... | [((330, 351), 'libcity.utils.get_evaluator', 'get_evaluator', (['config'], {}), '(config)\n', (343, 351), False, 'from libcity.utils import get_evaluator\n'), ((440, 451), 'logging.getLogger', 'getLogger', ([], {}), '()\n', (449, 451), False, 'from logging import getLogger\n')] |
sujeethiremath/Project-1 | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | 7f0bff66287d479e231e123615f2df18f9107178 | # Generated by Django 2.2.5 on 2020-04-08 00:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('budget', '0004_auto_20200407_2356'),
]
operations = [
migrations.DeleteModel(
name='HiddenStatus_Budget',
),
]
| [((226, 276), 'django.db.migrations.DeleteModel', 'migrations.DeleteModel', ([], {'name': '"""HiddenStatus_Budget"""'}), "(name='HiddenStatus_Budget')\n", (248, 276), False, 'from django.db import migrations\n')] |
mssung94/daishin-trading-system | tutorial/43.py | d6682495afb7a08e68db65537b1d1789f2996891 | # 대신증권 API
# 데이터 요청 방법 2가지 BlockRequest 와 Request 방식 비교 예제
# 플러스 API 에서 데이터를 요청하는 방법은 크게 2가지가 있습니다
#
# BlockRequest 방식 - 가장 간단하게 데이터 요청해서 수신 가능
# Request 호출 후 Received 이벤트로 수신 받기
#
# 아래는 위 2가지를 비교할 수 있도록 만든 예제 코드입니다
# 일반적인 데이터 요청에는 BlockRequest 방식이 가장 간단합니다
# 다만, BlockRequest 함수 내에서도 동일 하게 메시지펌핑을 하고 있어 해당 ... | [((629, 669), 'win32event.CreateEvent', 'win32event.CreateEvent', (['None', '(0)', '(0)', 'None'], {}), '(None, 0, 0, None)\n', (651, 669), False, 'import win32event\n'), ((1438, 1527), 'win32event.MsgWaitForMultipleObjects', 'win32event.MsgWaitForMultipleObjects', (['waitables', '(0)', 'timeout', 'win32event.QS_ALLEVE... |
SuilandCoder/ADPTC_LIB | ADPTC_LIB/DPTree_ST.py | ef5c2b7fcf117c8c90a3841489471289ecbf4562 | #%%
import numpy as np
import copy
import matplotlib.pyplot as plt
import time
def split_cluster_new(tree,local_density,dc_eps,closest_denser_nodes_id,mixin_near_matrix):
'''
dc_eps: density_connectivity 阈值
使用父子节点的直接距离,与子节点与兄弟节点的连通距离进行聚簇划分;
使用平均密度划分outlier
返回:
outlier_f... | [] |
Nik-V9/AirObject | datasets/tao/tao.py | 5937e64531f08449e81d2c90e3c6643727efbaf0 | from __future__ import print_function
import sys
sys.path.append('.')
import os
from typing import Optional, Union
import cv2
import numpy as np
import PIL.Image as Image
import pickle
import torch
from torch.utils import data
__all__ = ["TAO"]
class TAO(data.Dataset):
r"""A torch Dataset for loading in `the TA... | [((49, 69), 'sys.path.append', 'sys.path.append', (['"""."""'], {}), "('.')\n", (64, 69), False, 'import sys\n'), ((3460, 3485), 'os.path.normpath', 'os.path.normpath', (['basedir'], {}), '(basedir)\n', (3476, 3485), False, 'import os\n'), ((6229, 6270), 'os.path.join', 'os.path.join', (['self.basedir', '"""JPEGImages/... |
The-CJ/Phaazebot | Platforms/Web/Processing/Api/Discord/Configs/Quotedisabledchannels/errors.py | 83a9563d210718071d4e2cdcca3b212c87abaf51 | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from Platforms.Web.main_web import PhaazebotWeb
import json
from aiohttp.web import Response
from Utils.Classes.extendedrequest import ExtendedRequest
async def apiDiscordConfigsQuoteDisabledChannelExists(cls:"PhaazebotWeb", WebRequest:ExtendedRequest, **kwargs) -> ... | [((1311, 1326), 'json.dumps', 'json.dumps', (['res'], {}), '(res)\n', (1321, 1326), False, 'import json\n'), ((2504, 2519), 'json.dumps', 'json.dumps', (['res'], {}), '(res)\n', (2514, 2519), False, 'import json\n')] |
RichardScottOZ/sota-data-augmentation-and-optimizers | augmentation/ISDA.py | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | import torch
import torch.nn as nn
class EstimatorCV():
def __init__(self, feature_num, class_num):
super(EstimatorCV, self).__init__()
self.class_num = class_num
self.CoVariance = torch.zeros(class_num, feature_num, feature_num)#.cuda()
self.Ave = torch.zeros(class_num, feature_nu... | [((211, 259), 'torch.zeros', 'torch.zeros', (['class_num', 'feature_num', 'feature_num'], {}), '(class_num, feature_num, feature_num)\n', (222, 259), False, 'import torch\n'), ((287, 322), 'torch.zeros', 'torch.zeros', (['class_num', 'feature_num'], {}), '(class_num, feature_num)\n', (298, 322), False, 'import torch\n'... |
sanjayankur31/netpyne | netpyne/plotting/plotter.py | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | """
Module for plotting analyses
"""
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import pickle, json
import os
from matplotlib.offsetbox import AnchoredOffsetbox
try:
basestring
except NameError:
basestring = str
colorList = [[0.42, 0.67, 0.84], [0.... | [((970, 999), 'copy.deepcopy', 'deepcopy', (['mpl.rcParamsDefault'], {}), '(mpl.rcParamsDefault)\n', (978, 999), False, 'from copy import deepcopy\n'), ((2219, 2271), 'matplotlib.pyplot.subplots', 'plt.subplots', (['nrows', 'ncols'], {'figsize': 'figSize', 'dpi': 'dpi'}), '(nrows, ncols, figsize=figSize, dpi=dpi)\n', (... |
klahnakoski/mo-parsing | examples/simpleWiki.py | 885bf3fd61430d5fa15164168b975b18988fcf9e | from mo_parsing.helpers import QuotedString
wikiInput = """
Here is a simple Wiki input:
*This is in italics.*
**This is in bold!**
***This is in bold italics!***
Here's a URL to {{Pyparsing's Wiki Page->https://site-closed.wikispaces.com}}
"""
def convertToHTML(opening, closing):
def convers... | [((440, 457), 'mo_parsing.helpers.QuotedString', 'QuotedString', (['"""*"""'], {}), "('*')\n", (452, 457), False, 'from mo_parsing.helpers import QuotedString\n'), ((515, 533), 'mo_parsing.helpers.QuotedString', 'QuotedString', (['"""**"""'], {}), "('**')\n", (527, 533), False, 'from mo_parsing.helpers import QuotedStr... |
wheelercj/app_settings | tests/test_app_settings_dict.py | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | import pytest
import re
from typing import Any, Tuple
from dataclasses import dataclass
from app_settings_dict import Settings
def test_simple_settings() -> None:
settings = Settings(
settings_file_path="C:/Users/chris/Documents/sample_settings_file_name.json",
default_factories={
"key... | [((180, 367), 'app_settings_dict.Settings', 'Settings', ([], {'settings_file_path': '"""C:/Users/chris/Documents/sample_settings_file_name.json"""', 'default_factories': "{'key1': lambda : 'value1'}", 'data': "{'key1': 'hello', 'key2': 'world'}"}), "(settings_file_path=\n 'C:/Users/chris/Documents/sample_settings_fi... |
jacke121/FSA-Net | demo/demo_FSANET_ssd.py | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | import os
import time
import cv2
import sys
sys.path.append('..')
import numpy as np
from math import cos, sin
from lib.FSANET_model import *
import numpy as np
from keras.layers import Average
def draw_axis(img, yaw, pitch, roll, tdx=None, tdy=None, size = 50):
print(yaw,roll,pitch)
pitch = pitch * np.pi /... | [((45, 66), 'sys.path.append', 'sys.path.append', (['""".."""'], {}), "('..')\n", (60, 66), False, 'import sys\n'), ((3243, 3278), 'os.makedirs', 'os.makedirs', (['"""./img"""'], {'exist_ok': '(True)'}), "('./img', exist_ok=True)\n", (3254, 3278), False, 'import os\n'), ((4861, 4915), 'os.path.sep.join', 'os.path.sep.j... |
Mihitoko/pycord | examples/app_commands/slash_autocomplete.py | 137c1474eed5fb4273e542bd22ad76764a8712fc | import discord
from discord.commands import option
bot = discord.Bot(debug_guilds=[...])
COLORS = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]
LOTS_OF_COLORS = [
"aliceblue",
"antiquewhite",
"aqua",
"aquamarine",
"azure",
"beige",
"bisque",
"blueviolet",
"brown... | [((58, 89), 'discord.Bot', 'discord.Bot', ([], {'debug_guilds': '[...]'}), '(debug_guilds=[...])\n', (69, 89), False, 'import discord\n'), ((3109, 3178), 'discord.commands.option', 'option', (['"""color"""'], {'description': '"""Pick a color!"""', 'autocomplete': 'get_colors'}), "('color', description='Pick a color!', ... |
simewu/bitcoin_researcher | tools/Networking/sybil_block_no_ban.py | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | from _thread import start_new_thread
from bitcoin.messages import *
from bitcoin.net import CAddress
from bitcoin.core import CBlock
from io import BytesIO as _BytesIO
import atexit
import bitcoin
import fcntl
import hashlib
import json
import os
import random
import re
import socket
import struct
import sys
import tim... | [((342, 354), 'os.geteuid', 'os.geteuid', ([], {}), '()\n', (352, 354), False, 'import os\n'), ((362, 493), 'sys.exit', 'sys.exit', (['"""\nYou need to have root privileges to run this script.\nPlease try again, this time using \'sudo\'. Exiting.\n"""'], {}), '(\n """\nYou need to have root privileges to run this sc... |
aloneZERO/douban-movie-visualization | spider/db.py | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | #!python3
'''
数据库操作类
author: justZero
email: alonezero@foxmail.com
date: 2017-8-6
'''
import time
import pandas as pd
import numpy as np
import pymysql
import pymysql.cursors
import pprint
class MySQLdb(object):
def __init__(self):
self.conn = pymysql.connect(
host='localho... | [((1424, 1455), 'pandas.read_csv', 'pd.read_csv', (['inputFile'], {'sep': '"""^"""'}), "(inputFile, sep='^')\n", (1435, 1455), True, 'import pandas as pd\n'), ((262, 419), 'pymysql.connect', 'pymysql.connect', ([], {'host': '"""localhost"""', 'user': '"""root"""', 'passwd': '"""root"""', 'db': '"""douban_movie"""', 'po... |
sctiwari/EZFF_ASE | examples/rxff-serial/run.py | 94710d4cf778ff2db5e6df0cd6d10d92e1b98afe | import ezff
from ezff.interfaces import gulp, qchem
# Define ground truths
gt_gs = qchem.read_structure('ground_truths/optCHOSx.out')
gt_gs_energy = qchem.read_energy('ground_truths/optCHOSx.out')
gt_scan = qchem.read_structure('ground_truths/scanCHOSx.out')
gt_scan_energy = qchem.read_energy('ground_truths/scanCHOSx.... | [((84, 134), 'ezff.interfaces.qchem.read_structure', 'qchem.read_structure', (['"""ground_truths/optCHOSx.out"""'], {}), "('ground_truths/optCHOSx.out')\n", (104, 134), False, 'from ezff.interfaces import gulp, qchem\n'), ((150, 197), 'ezff.interfaces.qchem.read_energy', 'qchem.read_energy', (['"""ground_truths/optCHOS... |
dylanwal/unit_parse | dev_files/utils.py | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | import logging
from testing_func import testing_func, test_logger
from unit_parse import logger, Unit, Q
from unit_parse.utils import *
test_logger.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
test_split_list = [
# positive control (changes)
[["fish","pig", "cow"], ["f", "is", "h", "pig", "cow"], ... | [((138, 173), 'testing_func.test_logger.setLevel', 'test_logger.setLevel', (['logging.DEBUG'], {}), '(logging.DEBUG)\n', (158, 173), False, 'from testing_func import testing_func, test_logger\n'), ((174, 204), 'unit_parse.logger.setLevel', 'logger.setLevel', (['logging.DEBUG'], {}), '(logging.DEBUG)\n', (189, 204), Fal... |
d53dave/python-crypto-licensecheck | genlicense.py | d11612612ea54a5418fd8dbba9212a9c84c56f22 | import sys
from Crypto.Signature import pkcs1_15
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
def sign_data(key, data, output_file):
with open(key, 'r', encoding='utf-8') as keyFile:
rsakey = RSA.importKey(keyFile.read())
signer = pkcs1_15.new(rsakey)
digest = SHA256.new... | [((272, 292), 'Crypto.Signature.pkcs1_15.new', 'pkcs1_15.new', (['rsakey'], {}), '(rsakey)\n', (284, 292), False, 'from Crypto.Signature import pkcs1_15\n')] |
Fractate/freqbot | freqtrade/strategy/informative_decorator.py | 47b35d2320dc97977411454c1466c762d339fdee | from typing import Any, Callable, NamedTuple, Optional, Union
from pandas import DataFrame
from freqtrade.exceptions import OperationalException
from freqtrade.strategy.strategy_helper import merge_informative_pair
PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame]
class InformativeData(NamedTuple):... | [((5052, 5211), 'freqtrade.strategy.strategy_helper.merge_informative_pair', 'merge_informative_pair', (['dataframe', 'inf_dataframe', 'strategy.timeframe', 'timeframe'], {'ffill': 'inf_data.ffill', 'append_timeframe': '(False)', 'date_column': 'date_column'}), '(dataframe, inf_dataframe, strategy.timeframe,\n timef... |
VeirichR/curso-python-selenium | codigo_das_aulas/aula_09/aula_09_03.py | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | from functools import partial
from selenium.webdriver import Firefox
from selenium.webdriver.support.ui import (
WebDriverWait
)
def esperar_elemento(elemento, webdriver):
print(f'Tentando encontrar "{elemento}"')
if webdriver.find_elements_by_css_selector(elemento):
return True
return False
... | [((337, 372), 'functools.partial', 'partial', (['esperar_elemento', '"""button"""'], {}), "(esperar_elemento, 'button')\n", (344, 372), False, 'from functools import partial\n'), ((391, 429), 'functools.partial', 'partial', (['esperar_elemento', '"""#finished"""'], {}), "(esperar_elemento, '#finished')\n", (398, 429), ... |
irom-lab/RL_Generalization | prae/losses.py | 82add6898ee2e962a3aa5efedf80821a013eae7f | import torch
from torch import nn
from prae.distances import square_dist, HingedSquaredEuclidean
class Loss(nn.Module):
"""
"""
def __init__(self, hinge, neg=True, rew=True):
"""
"""
super().__init__()
self.reward_loss = square_dist
# If False, no negative sampling
... | [((425, 458), 'prae.distances.HingedSquaredEuclidean', 'HingedSquaredEuclidean', ([], {'eps': 'hinge'}), '(eps=hinge)\n', (447, 458), False, 'from prae.distances import square_dist, HingedSquaredEuclidean\n'), ((775, 808), 'torch.zeros_like', 'torch.zeros_like', (['transition_loss'], {}), '(transition_loss)\n', (791, 8... |
isathish/ai_opesource | orion/modules/active/wolfram.py | cdccd882306c45712fcdd40e15937b5a9571028a | """
Handles most general questions (including math!)
Requires:
- WolframAlpha API key
Usage Examples:
- "How tall is Mount Everest?"
- "What is the derivative of y = 2x?"
"""
import wolframalpha
from orion.classes.module import Module
from orion.classes.task import ActiveTask
from orion i... | [((355, 396), 'wolframalpha.Client', 'wolframalpha.Client', (['settings.WOLFRAM_KEY'], {}), '(settings.WOLFRAM_KEY)\n', (374, 396), False, 'import wolframalpha\n')] |
linuxdaemon/poly-match | polymatch/matchers/standard.py | 66d967999de982d5ee9463c46b0ff8040d91dc67 | from polymatch import PolymorphicMatcher
class ExactMatcher(PolymorphicMatcher):
def compile_pattern(self, raw_pattern):
return raw_pattern
def compile_pattern_cs(self, raw_pattern):
return raw_pattern
def compile_pattern_ci(self, raw_pattern):
return raw_pattern.lower()
def... | [] |
carthage-college/django-djcorsche | djcorsche/settings_default.py | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | """
Django settings for project.
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# Debug
#DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
INFORMIX_DEBUG = "debug"
ADMINS = (
('', ''),
)
MANAGERS = ADMINS
SECRET_KEY = ''
ALLOWED_HOSTS = []
LANGUAGE_CODE = 'en-us'
TIME_ZONE... | [((620, 645), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (635, 645), False, 'import os\n'), ((582, 607), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (597, 607), False, 'import os\n'), ((4514, 4539), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(... |
AaronYang2333/CSCI_570 | records/12-09/ffff.py | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | __author__ = 'Aaron Yang'
__email__ = 'byang971@usc.edu'
__date__ = '12/9/2020 4:18 PM'
from abc import abstractmethod
class Product(object):
@abstractmethod
def setMsg(self, msg="default info"):
self.msg = msg
@abstractmethod
def info(self):
print(self.msg)
class DefaultObj(Produ... | [] |
fastapi-users/fastapi-users-db-sqlmodel | tests/test_users.py | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | import uuid
from typing import AsyncGenerator
import pytest
from sqlalchemy import exc
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker
from sqlmodel import Session, SQLModel, create_engine
from fastapi_users_db_sqlmodel import (
NotSetOAuthAccountTableE... | [((459, 508), 'uuid.UUID', 'uuid.UUID', (['"""a9089e5d-2642-406d-a7c0-cbc641aca0ec"""'], {}), "('a9089e5d-2642-406d-a7c0-cbc641aca0ec')\n", (468, 508), False, 'import uuid\n'), ((1271, 1506), 'pytest.fixture', 'pytest.fixture', ([], {'params': "[(init_sync_session, 'sqlite:///./test-sqlmodel-user.db',\n SQLModelUser... |
rtbo/vkdgen | copy_reg.py | 04a228961bb091b59dc6f741eee703cd81724ca3 | #! /usr/bin/env python3
import os
from os import path
root_dir = path.dirname(path.realpath(__file__))
local_reg_dir = path.join(root_dir, 'registry')
os.makedirs(local_reg_dir, exist_ok=True)
def copy_reg(reg_dir, files):
import shutil
for f in files:
file_path = path.join(reg_dir, f)
if not... | [((121, 152), 'os.path.join', 'path.join', (['root_dir', '"""registry"""'], {}), "(root_dir, 'registry')\n", (130, 152), False, 'from os import path\n'), ((153, 194), 'os.makedirs', 'os.makedirs', (['local_reg_dir'], {'exist_ok': '(True)'}), '(local_reg_dir, exist_ok=True)\n', (164, 194), False, 'import os\n'), ((80, 1... |
atward424/ASCVD_ML | utils.py | 39404dd5f50a527576b91e8f53f5157f76382712 | import numpy as np
import pandas as pd
import scipy.stats as st
#from medical_ML import Experiment
import matplotlib.pyplot as plt
import xgboost as xgb
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.dummy import DummyClassifier
from sklearn.tree import DecisionTreeClassif... | [((2046, 2077), 'scipy.stats.norm.ppf', 'st.norm.ppf', (['(1 - (1 - ci) / 2.0)'], {}), '(1 - (1 - ci) / 2.0)\n', (2057, 2077), True, 'import scipy.stats as st\n'), ((2260, 2286), 'numpy.sqrt', 'np.sqrt', (['(numerator / denom)'], {}), '(numerator / denom)\n', (2267, 2286), True, 'import numpy as np\n'), ((19845, 19930)... |
hwoarang/caasp-container-manifests | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | import json
import logging
import re
import susepubliccloudinfoclient.infoserverrequests as ifsrequest
import yaml
import sys
RELEASE_DATE = re.compile('^.*-v(\d{8})-*.*')
def get_caasp_release_version():
"""Return the version from os-release"""
os_release = open('/etc/os-release', 'r').readlines()
for e... | [((142, 173), 're.compile', 're.compile', (['"""^.*-v(\\\\d{8})-*.*"""'], {}), "('^.*-v(\\\\d{8})-*.*')\n", (152, 173), False, 'import re\n'), ((4150, 4220), 'logging.info', 'logging.info', (['(\'Image data for cluster node image: "%s"\' % target_image)'], {}), '(\'Image data for cluster node image: "%s"\' % target_ima... |
simewu/bitcoin_researcher | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | # Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers
#
# This file is part of bitcoin-blockchain-parser.
#
# It is subject to the license terms in the LICENSE file found in the top-level
# directory of this distribution.
#
# No part of bitcoin-blockchain-parser, including this file, may be copied,
# modif... | [((678, 703), 'blockchain_parser.block.Block.from_hex', 'Block.from_hex', (['block_hex'], {}), '(block_hex)\n', (692, 703), False, 'from blockchain_parser.block import Block\n'), ((1379, 1416), 'datetime.datetime.utcfromtimestamp', 'datetime.utcfromtimestamp', (['(1231006505)'], {}), '(1231006505)\n', (1404, 1416), Fal... |
genegeniebio/genegenie-admin | genegenie/admin/__init__.py | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | '''
DNA++ (c) DNA++ 2017
All rights reserved.
@author: neilswainston
'''
| [] |
pkavousi/similar-users | tests/conftest.py | 8434e0a03dc8dfa218a34601431c564dff3e80b6 | import os
import pandas as pd
import pytest
from user_similarity_model.config.core import DATASET_DIR, config
@pytest.fixture()
def sample_local_data():
"""AI is creating summary for sample_local_data
Returns:
[Dict]: This function returns a dictionary with CSV files which
in dataset folder... | [((115, 131), 'pytest.fixture', 'pytest.fixture', ([], {}), '()\n', (129, 131), False, 'import pytest\n'), ((544, 575), 'os.path.join', 'os.path.join', (['DATASET_DIR', 'file'], {}), '(DATASET_DIR, file)\n', (556, 575), False, 'import os\n')] |
chrisjen83/rfb_weather_obs | weather/apps.py | 8eab16358c5059655d208ef41aa38692fa21776f | from django.apps import AppConfig
import logging
logger = logging.getLogger(__name__)
class WeatherConfig(AppConfig):
name = 'weather'
def ready(self):
from forecastUpdater import updater
updater.start()
| [((59, 86), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (76, 86), False, 'import logging\n'), ((216, 231), 'forecastUpdater.updater.start', 'updater.start', ([], {}), '()\n', (229, 231), False, 'from forecastUpdater import updater\n')] |
fleimgruber/python | projects/django-filer/test.py | 2e735762c73651cffc027ca850b2a58d87d54b49 | import filer
import tests
| [] |
DymondFormation/mplsoccer | examples/plots/plot_pass_network.py | 544300857ec5936781e12fda203cf2df8a3d00b9 | """
============
Pass Network
============
This example shows how to plot passes between players in a set formation.
"""
import pandas as pd
from mplsoccer.pitch import Pitch
from matplotlib.colors import to_rgba
import numpy as np
from mplsoccer.statsbomb import read_event, EVENT_SLUG
##############################... | [((549, 604), 'mplsoccer.statsbomb.read_event', 'read_event', (['f"""{EVENT_SLUG}/{match_id}.json"""'], {'warn': '(False)'}), "(f'{EVENT_SLUG}/{match_id}.json', warn=False)\n", (559, 604), False, 'from mplsoccer.statsbomb import read_event, EVENT_SLUG\n'), ((2354, 2387), 'pandas.concat', 'pd.concat', (['[players, playe... |
andrewp-as-is/jsfiddle-factory.py | jsfiddle_factory/__init__.py | 7b8b883676f3330f5714b15157819b583a753ba1 | __all__ = ['Factory']
import jsfiddle_build
import jsfiddle_github
import jsfiddle_generator
import jsfiddle_readme_generator
import getdirs
import getfiles
import os
import popd
import yaml
@popd.popd
def _build(path):
os.chdir(path)
jsfiddle_build.Build().save("build.html")
@popd.popd
def _init(path):
... | [((228, 242), 'os.chdir', 'os.chdir', (['path'], {}), '(path)\n', (236, 242), False, 'import os\n'), ((323, 337), 'os.chdir', 'os.chdir', (['path'], {}), '(path)\n', (331, 337), False, 'import os\n'), ((594, 608), 'os.chdir', 'os.chdir', (['path'], {}), '(path)\n', (602, 608), False, 'import os\n'), ((954, 982), 'getfi... |
MartinXPN/SpellNN | spellnn/train.py | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | import logging
import os
from datetime import datetime
from inspect import signature, Parameter
from pathlib import Path
from pprint import pprint
from textwrap import dedent
from typing import Optional, Union
import fire
import tensorflow as tf
from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, Te... | [((5759, 5773), 'fire.Fire', 'fire.Fire', (['cli'], {}), '(cli)\n', (5768, 5773), False, 'import fire\n'), ((674, 705), 'logging.getLogger', 'logging.getLogger', (['"""tensorflow"""'], {}), "('tensorflow')\n", (691, 705), False, 'import logging\n'), ((1555, 1605), 'spellnn.layers.mapping.CharMapping', 'CharMapping', ([... |
juliuskunze/flax | flax/core/frozen_dict.py | 929395cf5c7391bca3e33ef6760ff9591401d19e | # Copyright 2020 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [((706, 718), 'typing.TypeVar', 'TypeVar', (['"""K"""'], {}), "('K')\n", (713, 718), False, 'from typing import TypeVar, Mapping, Dict, Tuple\n'), ((723, 735), 'typing.TypeVar', 'TypeVar', (['"""V"""'], {}), "('V')\n", (730, 735), False, 'from typing import TypeVar, Mapping, Dict, Tuple\n'), ((3596, 3701), 'flax.serial... |
grigi/pybbm | pybb/middleware.py | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | # -*- coding: utf-8 -*-
from django.utils import translation
from django.db.models import ObjectDoesNotExist
from pybb import util
from pybb.signals import user_saved
class PybbMiddleware(object):
def process_request(self, request):
if request.user.is_authenticated():
try:
# ... | [((854, 900), 'django.utils.translation.get_language_from_request', 'translation.get_language_from_request', (['request'], {}), '(request)\n', (891, 900), False, 'from django.utils import translation\n'), ((519, 554), 'pybb.util.get_pybb_profile', 'util.get_pybb_profile', (['request.user'], {}), '(request.user)\n', (54... |
s0h3ck/streetlite | streetlite/common/constants.py | 21db388702f828417dd3dc0fbfa5af757216e1e0 | from enum import Enum
class CustomEnum(Enum):
@classmethod
def has_value(cls, value):
return any(value == item.value for item in cls)
@classmethod
def from_value(cls, value):
found_element = None
if cls.has_value(value):
found_element = cls(value)
retu... | [] |
achien/advent-of-code-2021 | day5.py | 8851e1727975ea8124db78b54fe577fbf2e5883d | import fileinput
counts = {}
for line in fileinput.input():
line = line.strip()
p1, p2 = line.split('>')
p1 = p1[:-2]
x1, y1 = p1.split(',')
x1 = int(x1)
y1 = int(y1)
p2 = p2[1:]
x2, y2 = p2.split(',')
x2 = int(x2)
y2 = int(y2)
if x1 == x2:
dx = 0
elif x1 > x2:... | [((42, 59), 'fileinput.input', 'fileinput.input', ([], {}), '()\n', (57, 59), False, 'import fileinput\n')] |
sodapopinsky/dfk | meditation_example.py | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | import logging
from web3 import Web3
import sys
import time
import meditation.meditation as meditation
if __name__ == "__main__":
log_format = '%(asctime)s|%(name)s|%(levelname)s: %(message)s'
logger = logging.getLogger("DFK-meditation")
logger.setLevel(logging.DEBUG)
logging.basicConfig(level=loggin... | [((213, 248), 'logging.getLogger', 'logging.getLogger', (['"""DFK-meditation"""'], {}), "('DFK-meditation')\n", (230, 248), False, 'import logging\n'), ((288, 365), 'logging.basicConfig', 'logging.basicConfig', ([], {'level': 'logging.INFO', 'format': 'log_format', 'stream': 'sys.stdout'}), '(level=logging.INFO, format... |
JohnStarich/dotfiles | python/johnstarich/interval.py | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | import time
class Interval(object):
def __init__(self, delay_time: int):
self.delay_time = delay_time
self.current_time = 0
@staticmethod
def now():
return time.gmtime().tm_sec
def should_run(self) -> bool:
if self.current_time == 0:
self.current_time = In... | [((195, 208), 'time.gmtime', 'time.gmtime', ([], {}), '()\n', (206, 208), False, 'import time\n')] |
opencoweb/coweb | servers/python/coweb/bot/wrapper/object.py | 7b3a87ee9eda735a859447d404ee16edde1c5671 | '''
Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved.
'''
# tornado
import tornado.ioloop
# std lib
import logging
import time
import weakref
import functools
# coweb
from .base import BotWrapperBase
log = logging.getLogger('coweb.bot')
class O... | [((281, 311), 'logging.getLogger', 'logging.getLogger', (['"""coweb.bot"""'], {}), "('coweb.bot')\n", (298, 311), False, 'import logging\n'), ((568, 590), 'weakref.proxy', 'weakref.proxy', (['manager'], {}), '(manager)\n', (581, 590), False, 'import weakref\n'), ((1864, 1908), 'functools.partial', 'functools.partial', ... |
lankotiAditya/RPG_battle_main | battle_tut5.py | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | import pygame
import random
pygame.init()
clock = pygame.time.Clock()
fps = 60
#game window
bottom_panel = 150
screen_width = 800
screen_height = 400 + bottom_panel
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption('Battle')
#define game variables
current_fighter = 1
total... | [((29, 42), 'pygame.init', 'pygame.init', ([], {}), '()\n', (40, 42), False, 'import pygame\n'), ((52, 71), 'pygame.time.Clock', 'pygame.time.Clock', ([], {}), '()\n', (69, 71), False, 'import pygame\n'), ((178, 232), 'pygame.display.set_mode', 'pygame.display.set_mode', (['(screen_width, screen_height)'], {}), '((scre... |
marinaoliveira96/python-exercises | curso_em_video/0087a.py | 13fc0ec30dec9bb6531cdeb41c80726971975835 | matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
soma = col3 = maior = 0
for l in range(0, 3):
for c in range(0, 3):
matriz[l][c] = int(input(f'[{l}][{c}]: '))
for l in range(0, 3):
for c in range(0, 3):
print(f'[{matriz[l][c]:^5}]', end='')
if matriz[l][c] % 2 == 0:
soma += matriz... | [] |
david-kalbermatten/HomeAssistant-Tapo-Control | custom_components/tapo_control/utils.py | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | import onvif
import os
import asyncio
import urllib.parse
from onvif import ONVIFCamera
from pytapo import Tapo
from .const import ENABLE_MOTION_SENSOR, DOMAIN, LOGGER, CLOUD_PASSWORD
from homeassistant.const import CONF_IP_ADDRESS, CONF_USERNAME, CONF_PASSWORD
from homeassistant.components.onvif.event import EventMana... | [((493, 523), 'pytapo.Tapo', 'Tapo', (['host', 'username', 'password'], {}), '(host, username, password)\n', (497, 523), False, 'from pytapo import Tapo\n'), ((639, 681), 'haffmpeg.tools.ImageFrame', 'ImageFrame', (['_ffmpeg.binary'], {'loop': 'hass.loop'}), '(_ffmpeg.binary, loop=hass.loop)\n', (649, 681), False, 'fro... |
mamrhein/CAmD3 | camd3/infrastructure/component/tests/test_uidattr.py | d20f62295771a297c3fbb314beef314e5ec7a2b5 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Name: test_uidattr
# Purpose: Test driver for module 'uidattr'
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2018 Michael Amrhein
# -------------------... | [((1002, 1021), 'camd3.infrastructure.component.UniqueIdAttribute', 'UniqueIdAttribute', ([], {}), '()\n', (1019, 1021), False, 'from camd3.infrastructure.component import Component, register_utility, UniqueIdAttribute\n'), ((1636, 1651), 'unittest.main', 'unittest.main', ([], {}), '()\n', (1649, 1651), False, 'import ... |
tn012604409/HW3_chatRobot | s.py | 97762e53bfccd8b30c6b263792919c679e53b404 | import requests
import time
from bs4 import BeautifulSoup
def get_web_page(url):
resp = requests.get(
url=url,
)
if resp.status_code != 200:
print('Invalid url:', resp.url)
return None
else:
return resp.text
def get_articles(dom):
soup = BeautifulSoup(dom, 'html.p... | [((94, 115), 'requests.get', 'requests.get', ([], {'url': 'url'}), '(url=url)\n', (106, 115), False, 'import requests\n'), ((294, 327), 'bs4.BeautifulSoup', 'BeautifulSoup', (['dom', '"""html.parser"""'], {}), "(dom, 'html.parser')\n", (307, 327), False, 'from bs4 import BeautifulSoup\n')] |
k2bd/awstin | awstin/dynamodb/orm.py | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | import uuid
from abc import ABC, abstractmethod
from collections import defaultdict
from typing import Union
from boto3.dynamodb.conditions import Attr as BotoAttr
from boto3.dynamodb.conditions import Key as BotoKey
from awstin.dynamodb.utils import from_decimal, to_decimal
class NotSet:
"""
A value of an ... | [((13006, 13023), 'collections.defaultdict', 'defaultdict', (['list'], {}), '(list)\n', (13017, 13023), False, 'from collections import defaultdict\n'), ((1958, 1975), 'awstin.dynamodb.utils.to_decimal', 'to_decimal', (['value'], {}), '(value)\n', (1968, 1975), False, 'from awstin.dynamodb.utils import from_decimal, to... |
SimonTheVillain/ActiveStereoNet | Losses/__init__.py | 708bddce844998b366be1a1ec8a72a31ccd26f8c | from .supervise import *
def get_losses(name, **kwargs):
name = name.lower()
if name == 'rhloss':
loss = RHLoss(**kwargs)
elif name == 'xtloss':
loss = XTLoss(**kwargs)
else:
raise NotImplementedError('Loss [{:s}] is not supported.'.format(name))
return loss
| [] |
qkaren/converse_reading_cmr | model/src/recurrent.py | d06d981be12930cff8458e2b1b81be4f5df3a329 | import torch
import torch.nn as nn
from torch.nn.parameter import Parameter
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.nn.utils.rnn import pack_padded_sequence as pack
from .my_optim import weight_norm as WN
# TODO: use system func to bind ~
RNN_MAP = {'lstm': nn.LSTM, 'gru': nn.GR... | [((3221, 3243), 'torch.load', 'torch.load', (['model_path'], {}), '(model_path)\n', (3231, 3243), False, 'import torch\n'), ((3265, 3316), 'torch.nn.LSTM', 'nn.LSTM', (['(300)', '(300)'], {'num_layers': '(1)', 'bidirectional': '(True)'}), '(300, 300, num_layers=1, bidirectional=True)\n', (3272, 3316), True, 'import tor... |
vlcekl/kmcpy | kmcsim/sim/events_old.py | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | #!//anaconda/envs/py36/bin/python
#
# File name: kmc_pld.py
# Date: 2018/08/03 09:07
# Author: Lukas Vlcek
#
# Description:
#
import numpy as np
from collections import Counter
class EventTree:
"""
Class maintaining a binary tree for random event type lookup
and arrays for choosing specific... | [((1269, 1310), 'collections.Counter', 'Counter', (["[e['type'] for e in self.events]"], {}), "([e['type'] for e in self.events])\n", (1276, 1310), False, 'from collections import Counter\n'), ((729, 746), 'numpy.array', 'np.array', (['e_ratio'], {}), '(e_ratio)\n', (737, 746), True, 'import numpy as np\n'), ((1963, 19... |
anthowen/duplify | env/lib/python3.6/site-packages/odf/meta.py | 846d01c1b21230937fdf0281b0cf8c0b08a8c24e | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at you... | [((961, 1007), 'odf.element.Element', 'Element', ([], {'qname': "(METANS, 'auto-reload')"}), "(qname=(METANS, 'auto-reload'), **args)\n", (968, 1007), False, 'from odf.element import Element\n'), ((1047, 1095), 'odf.element.Element', 'Element', ([], {'qname': "(METANS, 'creation-date')"}), "(qname=(METANS, 'creation-da... |
Mr-TalhaIlyas/Scaled-YOLOv4 | scripts/my_inference.py | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
import torch
torch.rand(10)
import torch.nn as nn
import torch.nn.functional as F
import glob
from tqdm import tqdm, trange
print(torch.cuda.is_available())
print(torch.cuda.get_device_name())
print(torch.cuda.current_device())
device = torch.device('cuda' if torch.cu... | [((64, 78), 'torch.rand', 'torch.rand', (['(10)'], {}), '(10)\n', (74, 78), False, 'import torch\n'), ((1189, 1206), 'utils.torch_utils.select_device', 'select_device', (['""""""'], {}), "('')\n", (1202, 1206), False, 'from utils.torch_utils import select_device, load_classifier, time_synchronized\n'), ((2183, 2238), '... |
fslds/carbon-black-cloud-sdk-python | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | """Mock responses for recommendations."""
SEARCH_REQ = {
"criteria": {
"policy_type": ['reputation_override'],
"status": ['NEW', 'REJECTED', 'ACCEPTED'],
"hashes": ['111', '222']
},
"rows": 50,
"sort": [
{
"field": "impact_score",
"order": "DESC"
... | [] |
TeamZenith/python-monasca | monasca/microservice/notification_engine.py | badc86fbe2c4424deb15b84eabd3248e899ef4ee | # Copyright 2015 Carnegie Mellon University
#
# Author: Han Chen <hanc@andrew.cmu.edu>
#
# 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
#
# ... | [((1968, 2023), 'oslo.config.cfg.OptGroup', 'cfg.OptGroup', ([], {'name': '"""notification"""', 'title': '"""notification"""'}), "(name='notification', title='notification')\n", (1980, 2023), False, 'from oslo.config import cfg\n'), ((2024, 2057), 'oslo.config.cfg.CONF.register_group', 'cfg.CONF.register_group', (['es_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.