repo_name stringlengths 7 94 | repo_path stringlengths 4 237 | repo_head_hexsha stringlengths 40 40 | content stringlengths 10 680k | apis stringlengths 2 680k |
|---|---|---|---|---|
aloa04/practice | python/modules_packages_libraries/models/animal_kigdom/animals.py | 0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f | class Animal():
edad:int
patas:int
ruido:str
nombre: str
kgComida: float = 0
def __init__(self, edad, patas, ruido, nombre):
self.edad =edad
self.patas = patas
self.ruido = ruido
self.nombre = nombre
def comer(self, alimento):
self.kgComida += alimento... | [] |
klmcguir/tensortools | tensortools/optimize/mncp_hals.py | 38262f5bad9d3171286e34e5f15d196752dda939 | """
Nonnegative CP decomposition by Hierarchical alternating least squares (HALS).
With support for missing data.
"""
import numpy as np
import scipy as sci
from scipy import linalg
from tensortools.operations import unfold, khatri_rao
from tensortools.tensors import KTensor
from tensortools.optimize import FitResult... | [((3086, 3096), 'numpy.copy', 'np.copy', (['X'], {}), '(X)\n', (3093, 3096), True, 'import numpy as np\n'), ((3112, 3135), 'numpy.linalg.norm', 'np.linalg.norm', (['X[mask]'], {}), '(X[mask])\n', (3126, 3135), True, 'import numpy as np\n'), ((3161, 3199), 'tensortools.optimize.optim_utils._check_cpd_inputs', 'optim_uti... |
jonas-eschle/raredecay | raredecay/tools/data_tools.py | 6285f91e0819d01c80125f50b24e60ee5353ae2e | """
@author: Jonas Eschle "Mayou36"
DEPRECEATED! USE OTHER MODULES LIKE rd.data, rd.ml, rd.reweight, rd.score and rd.stat
DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!
Contains several tools to convert, load, save and plot data
"""
import warnings
import os
import copy
import pandas as pd
import... | [((1346, 1384), 'numpy.percentile', 'np.percentile', (['signal_data', 'percentile'], {}), '(signal_data, percentile)\n', (1359, 1384), True, 'import numpy as np\n'), ((3388, 3412), 'os.path.isfile', 'os.path.isfile', (['filename'], {}), '(filename)\n', (3402, 3412), False, 'import os\n'), ((1425, 1482), 'numpy.logical_... |
LittleNed/toontown-stride | toontown/coghq/boardbothq/BoardOfficeManagerAI.py | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | from direct.directnotify import DirectNotifyGlobal
import DistributedBoardOfficeAI
from toontown.toonbase import ToontownGlobals
from toontown.coghq.boardbothq import BoardOfficeLayout
from direct.showbase import DirectObject
import random
class BoardOfficeManagerAI(DirectObject.DirectObject):
notify = DirectNotif... | [((309, 376), 'direct.directnotify.DirectNotifyGlobal.directNotify.newCategory', 'DirectNotifyGlobal.directNotify.newCategory', (['"""BoardOfficeManagerAI"""'], {}), "('BoardOfficeManagerAI')\n", (352, 376), False, 'from direct.directnotify import DirectNotifyGlobal\n'), ((440, 480), 'direct.showbase.DirectObject.Direc... |
radon-h2020/AnsibleMetrics | ansiblemetrics/utils.py | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | from typing import Union
def key_value_list(d: Union[dict, list], key=None) -> list:
"""
This function iterates over all the key-value pairs of a dictionary and returns a list of tuple (key, value) where the key contain only primitive value (i.e., no list or dict), e.g., string, number etc.
d -- a diction... | [] |
Kunal-Shah-Bose/yam-python | yampy/apis/groups.py | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans
from yampy.models import extract_id
class GroupsAPI(object):
"""
Provides an interface for accessing the groups related endpoints of the
Yammer API. You should not instantiate this class directly; use the
:meth:`yampy.Yam... | [((583, 633), 'yampy.apis.utils.ArgumentConverter', 'ArgumentConverter', (['none_filter', 'stringify_booleans'], {}), '(none_filter, stringify_booleans)\n', (600, 633), False, 'from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans\n'), ((1907, 1927), 'yampy.models.extract_id', 'extract_id', ([... |
ycanerol/phy | phy/gui/actions.py | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | # -*- coding: utf-8 -*-
"""Actions and snippets."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import inspect
from functools import partial, wraps
import logging
import re
import sys
import... | [((461, 488), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (478, 488), False, 'import logging\n'), ((1769, 1811), 're.search', 're.search', (['"""Example: `([^`]+)`"""', 'docstring'], {}), "('Example: `([^`]+)`', docstring)\n", (1778, 1811), False, 'import re\n'), ((5918, 5933), 'functo... |
AngelLiang/PP4E | PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py | 3a7f63b366e1e4700b4d2524884696999a87ba9d | """
delete all .pyc bytecode files in a directory tree: use the
command line arg as root if given, else current working dir
"""
import os, sys
findonly = False
rootdir = os.getcwd() if len(sys.argv) == 1 else sys.argv[1]
found = removed = 0
for (thisDirLevel, subsHere, filesHere) in os.walk(rootdir):
for filename... | [((286, 302), 'os.walk', 'os.walk', (['rootdir'], {}), '(rootdir)\n', (293, 302), False, 'import os, sys\n'), ((171, 182), 'os.getcwd', 'os.getcwd', ([], {}), '()\n', (180, 182), False, 'import os, sys\n'), ((396, 432), 'os.path.join', 'os.path.join', (['thisDirLevel', 'filename'], {}), '(thisDirLevel, filename)\n', (4... |
louxfaure/sudoc_recouv | apps.py | da3f094a0a9554c0b3911a365d1feea6d2758fec | from django.apps import AppConfig
class SudocRecouvConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sudoc_recouv'
verbose_name = 'Analyses de recouvrement SUDOC'
| [] |
amancevice/terraform-aws-slack-interactive-components | src/states.py | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | import boto3
from logger import logger
class States:
def __init__(self, boto3_session=None):
self.boto3_session = boto3_session or boto3.Session()
self.client = self.boto3_session.client('stepfunctions')
def fail(self, task_token, error, cause):
params = dict(taskToken=task_token, er... | [((146, 161), 'boto3.Session', 'boto3.Session', ([], {}), '()\n', (159, 161), False, 'import boto3\n'), ((388, 407), 'logger.logger.json', 'logger.json', (['params'], {}), '(params)\n', (399, 407), False, 'from logger import logger\n'), ((592, 611), 'logger.logger.json', 'logger.json', (['params'], {}), '(params)\n', (... |
clach04/controllerx | apps/controllerx/cx_core/type/light_controller.py | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | from typing import Any, Dict, Optional, Type, Union
from cx_const import Light, PredefinedActionsMapping
from cx_core.color_helper import get_color_wheel
from cx_core.controller import action
from cx_core.feature_support.light import LightSupport
from cx_core.integration import EventData
from cx_core.integration.decon... | [((3924, 3993), 'cx_core.stepper.minmax_stepper.MinMaxStepper', 'MinMaxStepper', (['self.min_brightness', 'self.max_brightness', 'manual_steps'], {}), '(self.min_brightness, self.max_brightness, manual_steps)\n', (3937, 3993), False, 'from cx_core.stepper.minmax_stepper import MinMaxStepper\n'), ((4076, 4147), 'cx_core... |
konodyuk/kts | kts/core/types.py | 3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7 | from typing import Union
import pandas as pd
from kts.core.frame import KTSFrame
AnyFrame = Union[pd.DataFrame, KTSFrame]
| [] |
jlaura/krispy | krispy/mod_user/models.py | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | from app import db
from flask.ext.login import UserMixin
class User(UserMixin, db.Model):
__tablename__ = 'oauth2users'
id = db.Column(db.Integer, primary_key=True)
social_id = db.Column(db.String(64), nullable=False, unique=True)
nickname = db.Column(db.String(64), nullable=False)
email = db.Colum... | [((134, 173), 'app.db.Column', 'db.Column', (['db.Integer'], {'primary_key': '(True)'}), '(db.Integer, primary_key=True)\n', (143, 173), False, 'from app import db\n'), ((200, 213), 'app.db.String', 'db.String', (['(64)'], {}), '(64)\n', (209, 213), False, 'from app import db\n'), ((269, 282), 'app.db.String', 'db.Stri... |
flxj/Django_blog | blog_app/blog/views.py | 01eb12553335115fee5faecafe8cacf2f0615135 | import markdown
from comments.forms import CommentForm,BookCommentForm,MovieCommentForm
from django.shortcuts import render, get_object_or_404
from.models import Post,Category,Tag, Book,Movie
#from django.http import HttpResponse
from django.views.generic import ListView, DetailView
from django.utils.text import slugif... | [((9568, 9656), 'django.shortcuts.render', 'render', (['request', '"""blog/index.html"""', "{'error_msg': error_msg, 'post_list': post_list}"], {}), "(request, 'blog/index.html', {'error_msg': error_msg, 'post_list':\n post_list})\n", (9574, 9656), False, 'from django.shortcuts import render, get_object_or_404\n'), ... |
jfcoz/azure-cli | src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py | 8459ef3fd3c76d9f99defd95d4c980923891fa6d | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [((671, 781), 'knack.arguments.CLIArgumentType', 'CLIArgumentType', ([], {'options_list': "('--name', '-n')", 'metavar': '"""NAME"""', 'help': '"""name of the resource to be fetched"""'}), "(options_list=('--name', '-n'), metavar='NAME', help=\n 'name of the resource to be fetched')\n", (686, 781), False, 'from knac... |
kuyu12/pygame_fight_game | utils/path_utils.py | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | import sys
IMAGES_PATH = sys.path[1] + "/Images"
BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background'
USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg"
SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite'
PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile'
CONFIGURATION_FILES_PATH = sys.path[1] + "/configur... | [] |
Alicegaz/torchok | tests/models/test_transformers.py | 7b8f95df466a25b1ad8ee93bed1a3c7516440cf4 | import unittest
import torch
from parameterized import parameterized
from src.constructor import create_backbone
from src.models.backbones.utils import list_models
from .test_segmentation import example_backbones
def inp(bsize, in_ch, w, h):
return torch.ones(bsize, in_ch, w, h)
class TestBackboneCorrectness(... | [((257, 287), 'torch.ones', 'torch.ones', (['bsize', 'in_ch', 'w', 'h'], {}), '(bsize, in_ch, w, h)\n', (267, 287), False, 'import torch\n'), ((790, 814), 'torch.cuda.empty_cache', 'torch.cuda.empty_cache', ([], {}), '()\n', (812, 814), False, 'import torch\n'), ((481, 541), 'src.models.backbones.utils.list_models', 'l... |
SvineruS/aiogram | aiogram/types/inline_query.py | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | import typing
from . import base
from . import fields
from .inline_query_result import InlineQueryResult
from .location import Location
from .user import User
class InlineQuery(base.TelegramObject):
"""
This object represents an incoming inline query.
When the user sends an empty query, your bot could r... | [] |
shaswat01/Disaster_Response_ETL | app/app.py | c441514fb5231d193cd4b29afad00fe0f3513562 | import nltk
import json
import plotly
import pandas as pd
import plotly.graph_objects as go
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
nltk.download(['punkt','wordnet'])
from flask import Flask
from flask import render_template, request, jsonify
from plotly.graph_objs import Bar, H... | [((172, 207), 'nltk.download', 'nltk.download', (["['punkt', 'wordnet']"], {}), "(['punkt', 'wordnet'])\n", (185, 207), False, 'import nltk\n'), ((388, 403), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (393, 403), False, 'from flask import Flask\n'), ((689, 740), 'sqlalchemy.create_engine', 'create_engi... |
pazamelin/openvino | tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from openvino.tools.mo.front.mxnet.mx_reshape_to_reshape import MXReshapeToReshape
from openvino.tools.mo.ops.Reverse import Reverse
from openvino.tools.mo.ops.mxreshape import MXReshape
from openvino.tools.mo.front.c... | [((1606, 1622), 'openvino.tools.mo.front.common.partial_infer.utils.int64_array', 'int64_array', (['[0]'], {}), '([0])\n', (1617, 1622), False, 'from openvino.tools.mo.front.common.partial_infer.utils import int64_array\n'), ((1952, 1968), 'openvino.tools.mo.front.common.partial_infer.utils.int64_array', 'int64_array',... |
MattMarti/Lambda-Trajectory-Sim | Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py | 4155f103120bd49221776cc3b825b104f36817f2 | import unittest;
import numpy as np;
import scipy as sp;
from cubic_spline_solve import cubic_spline_solve;
from cubic_spline_fun import cubic_spline_fun;
class Test_cubic_spline_solve(unittest.TestCase):
'''
Test_cubicsplineSolve
Test case for the cubic spline solver function. This function just solv... | [((887, 909), 'numpy.linspace', 'np.linspace', (['(0)', '(10)', '(20)'], {}), '(0, 10, 20)\n', (898, 909), True, 'import numpy as np\n'), ((927, 957), 'numpy.zeros', 'np.zeros', (['(1, xrange.shape[0])'], {}), '((1, xrange.shape[0]))\n', (935, 957), True, 'import numpy as np\n'), ((1144, 1168), 'numpy.linspace', 'np.li... |
IQUBE-X/passGenerator | PassWord.py | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | # PassWord - The Safe Password Generator App!
# importing the tkinter module for GUI
from tkinter import *
# importing the message box widget from tkinter
from tkinter import messagebox
# importing sqlite3 for database
import sqlite3
# importing random for password generation
import random
# creatin... | [((496, 526), 'sqlite3.connect', 'sqlite3.connect', (['"""password.db"""'], {}), "('password.db')\n", (511, 526), False, 'import sqlite3\n'), ((2799, 2831), 'random.choice', 'random.choice', (['lowercase_letters'], {}), '(lowercase_letters)\n', (2812, 2831), False, 'import random\n'), ((2907, 2939), 'random.choice', 'r... |
hotternative/leetcode | 1805_number_of_different_integers_in_a_string.py | d0ec225abc2ada1398666641c7872f3eb889e7ed | from string import ascii_lowercase
ts = 'a123bc34d8ef34'
cur = []
res = set()
for c in ts:
if c in ascii_lowercase:
if cur:
s = ''.join(cur)
res.add(int(s))
cur = []
else:
cur.append(c)
else:
if cur:
s = ''.join(cur)
res.add(int(s))
pri... | [] |
ahmedriaz9908/memeapiiz | app.py | eef98f837f2ec83edc3dd004f19dcefda9b582a5 | from flask import Flask, render_template, jsonify
from reddit_handler import *
app = Flask(__name__)
meme_subreddits = ['izlam']
@app.route('/')
def index():
return render_template('index.html')
@app.route('/meme')
def one_post():
sub = random.choice(meme_subreddits)
re = get_posts(sub... | [((89, 104), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (94, 104), False, 'from flask import Flask, render_template, jsonify\n'), ((183, 212), 'flask.render_template', 'render_template', (['"""index.html"""'], {}), "('index.html')\n", (198, 212), False, 'from flask import Flask, render_template, jsonif... |
e-davydenkova/SeleniumWebDriver_Training | 10_compare_between_main_product_pages.py | e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a | import pytest
from selenium import webdriver
import re
@pytest.fixture
def driver(request):
wd = webdriver.Chrome()
wd.get("http://localhost/litecart/en/")
request.addfinalizer(wd.quit)
return wd
# check that product names are identical on the main page and on product page
def test_product_names(driv... | [((102, 120), 'selenium.webdriver.Chrome', 'webdriver.Chrome', ([], {}), '()\n', (118, 120), False, 'from selenium import webdriver\n'), ((2691, 2724), 're.findall', 're.findall', (['"""\\\\d+"""', 'regular_color'], {}), "('\\\\d+', regular_color)\n", (2701, 2724), False, 'import re\n'), ((3086, 3120), 're.findall', 'r... |
iahuang/pyrite | pyrite/llvm.py | 0db83aad6aa8f245edf13d393f65d408eb956c4d | import shutil
from pyrite import fs
from pyrite.command_line import run_command
from pyrite.errors import UserError
from pyrite.globals import Globals
from os.path import join
class LLVMInterface:
_clang_path: str
def __init__(self):
self._clang_path = self._get_clang_path()
def _get_clang_path(s... | [((953, 993), 'pyrite.fs.write_file', 'fs.write_file', ([], {'path': 'ir_path', 'data': 'source'}), '(path=ir_path, data=source)\n', (966, 993), False, 'from pyrite import fs\n'), ((1046, 1105), 'pyrite.command_line.run_command', 'run_command', (["[self._clang_path, ir_path, '-o', output_path]"], {}), "([self._clang_pa... |
eduardogerentklein/Algoritmos-Geneticos | bag_recursive.py | 499836ac4867240ee3777dcdd554081a480cb8c9 | maxWeight = 30
value = [15, 7, 10, 5, 8, 17]
weight = [15, 3, 2, 5, 9, 20]
def bag(pos, selected):
# calcula o total
totalValue = 0
pesoTotal = 0
for i in selected:
totalValue += value[i]
pesoTotal += weight[i]
if pesoTotal > maxWeight:
return (0,0)
if pos >= len(weight):
return (totalValue, pesoT... | [] |
MEfeTiryaki/trpo | train.py | e1c7bc25165730afa60d9733555398e078a13e67 | import argparse
from itertools import count
import signal
import sys
import os
import time
import numpy as np
import gym
import torch
import torch.autograd as autograd
from torch.autograd import Variable
import scipy.optimize
import matplotlib.pyplot as plt
from value import Value
from policy import Policy
from ut... | [((371, 438), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""PyTorch actor-critic example"""'}), "(description='PyTorch actor-critic example')\n", (394, 438), False, 'import argparse\n'), ((3141, 3164), 'gym.make', 'gym.make', (['args.env_name'], {}), '(args.env_name)\n', (3149, 3164), F... |
meck93/intro_ml | task3/task3_xgb_cv.py | 903710b13e9eed8b45fdbd9957c2fb49b2981f62 |
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.feature_selection import f_classif, SelectKBest
import numpy as np
import pandas as pd
import os
mingw_path = 'C:\\Program Files\\mingw-w64\\x86_64-7.2.0-posix... | [((625, 662), 'pandas.read_hdf', 'pd.read_hdf', (['FILE_PATH_TRAIN', '"""train"""'], {}), "(FILE_PATH_TRAIN, 'train')\n", (636, 662), True, 'import pandas as pd\n'), ((969, 1014), 'sklearn.preprocessing.StandardScaler', 'StandardScaler', ([], {'with_mean': '(True)', 'with_std': '(True)'}), '(with_mean=True, with_std=Tr... |
atticwip/audius-protocol | discovery-provider/src/queries/get_plays_metrics.py | 9758e849fae01508fa1d27675741228b11533e6e | import logging
import time
from sqlalchemy import func, desc
from src.models import Play
from src.utils import db_session
logger = logging.getLogger(__name__)
def get_plays_metrics(args):
"""
Returns metrics for play counts
Args:
args: dict The parsed args from the request
args.start_tim... | [((132, 159), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (149, 159), False, 'import logging\n'), ((595, 627), 'src.utils.db_session.get_db_read_replica', 'db_session.get_db_read_replica', ([], {}), '()\n', (625, 627), False, 'from src.utils import db_session\n'), ((1135, 1152), 'sqlal... |
Rich9rd/CAutomation | CAutomation/settings.py | d1c1b963e806a216d4c825243c1c405336414413 | """
Django settings for CAutomation project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [((560, 601), 'os.path.join', 'os.path.join', (['PROJECT_ROOT', '"""staticfiles"""'], {}), "(PROJECT_ROOT, 'staticfiles')\n", (572, 601), False, 'import os\n'), ((518, 543), 'os.path.abspath', 'os.path.abspath', (['__file__'], {}), '(__file__)\n', (533, 543), False, 'import os\n'), ((627, 663), 'os.path.join', 'os.path... |
wanderindev/financial-calculator-backend | calculators/credit_card_calculator.py | ad7e736c858298c240eb9af52fbadcb02c693968 | from .calculator import Calculator
# noinspection PyTypeChecker
class CreditCardCalculator(Calculator):
def __init__(self, **kwargs):
super(CreditCardCalculator, self).__init__(**kwargs)
self.cc_debt = self.get_float(kwargs.get("cc_debt", 0))
self.add_c = self.get_float(kwargs.ge... | [] |
phaustin/MyST-Parser | setup.py | 181e921cea2794f10ca612df6bf2a2057b66c372 | """myst-parser package setup."""
from importlib import import_module
from setuptools import find_packages, setup
setup(
name="myst-parser",
version=import_module("myst_parser").__version__,
description=(
"An extended commonmark compliant parser, " "with bridges to docutils & sphinx."
),
lo... | [((649, 664), 'setuptools.find_packages', 'find_packages', ([], {}), '()\n', (662, 664), False, 'from setuptools import find_packages, setup\n'), ((158, 186), 'importlib.import_module', 'import_module', (['"""myst_parser"""'], {}), "('myst_parser')\n", (171, 186), False, 'from importlib import import_module\n')] |
kho/cdec | python/tests/extractor/refmt.py | d88186af251ecae60974b20395ce75807bfdda35 | #!/usr/bin/env python
import collections, sys
lines = []
f = collections.defaultdict(int)
fe = collections.defaultdict(lambda: collections.defaultdict(int))
for line in sys.stdin:
tok = [x.strip() for x in line.split('|||')]
count = int(tok[4])
f[tok[1]] += count
fe[tok[1]][tok[2]] += count
lines... | [] |
tomitokko/django-blog-with-astradb | blog/models.py | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | from django.db import models
import uuid
from datetime import datetime
from cassandra.cqlengine import columns
from django_cassandra_engine.models import DjangoCassandraModel
# Create your models here.
class PostModel(DjangoCassandraModel):
id = columns.UUID(primary_key=True, default=uuid.uuid4)
title = column... | [((251, 301), 'cassandra.cqlengine.columns.UUID', 'columns.UUID', ([], {'primary_key': '(True)', 'default': 'uuid.uuid4'}), '(primary_key=True, default=uuid.uuid4)\n', (263, 301), False, 'from cassandra.cqlengine import columns\n'), ((314, 341), 'cassandra.cqlengine.columns.Text', 'columns.Text', ([], {'required': '(Tr... |
miczone/python-fedex | fedex/services/availability_commitment_service.py | 1a17b45753b16b2551b0b8ba2c6aa65be8e73931 | """
Service Availability and Commitment Module
This package contains the shipping methods defined by Fedex's
ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for
easy access. For more details on each, refer to the respective class's
documentation.
"""
import datetime
from ..base... | [((2548, 2569), 'datetime.date.today', 'datetime.date.today', ([], {}), '()\n', (2567, 2569), False, 'import datetime\n')] |
gb-andreygsouza/XuniVerse | xverse/transformer/_woe.py | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | import pandas as pd
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
import scipy.stats.stats as stats
import pandas.core.algorithms as algos
#from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array
from ..transformer import MonotonicBinning
pd.options.mode... | [] |
okapies/cupy | cupy/linalg/product.py | 4e8394e5e0c4e420295cbc36819e8e0f7de90e9d | import numpy
import six
import cupy
from cupy import core
from cupy import internal
from cupy.linalg.solve import inv
from cupy.util import collections_abc
matmul = core.matmul
def dot(a, b, out=None):
"""Returns a dot product of two arrays.
For arrays with more than one axis, it computes the dot product... | [((1402, 1451), 'cupy.core.tensordot_core', 'core.tensordot_core', (['a', 'b', 'None', '(1)', '(1)', 'a.size', '()'], {}), '(a, b, None, 1, 1, a.size, ())\n', (1421, 1451), False, 'from cupy import core\n'), ((2282, 2333), 'cupy.core.tensordot_core', 'core.tensordot_core', (['a', 'b', 'None', 'n', 'm', 'k', 'ret_shape'... |
aligoren/pyalgo | fibo.py | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | def fibo(n):
return n <= 1 or fibo(n-1) + fibo(n-2)
def fibo_main():
for n in range(1,47):
res = fibo(n)
print("%s\t%s" % (n, res))
fibo_main()
# profiling result for 47 numbers
# profile: python -m profile fibo.py
"""
-1273940835 function calls (275 primitive calls) in 18966.707 seconds
Ordered... | [] |
yihui8776/TensorRT-DETR | trt_util/common.py | 1f32e9a2f98e26ec5b2376f9a2695193887430fb | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [((1002, 1014), 'tensorrt.Logger', 'trt.Logger', ([], {}), '()\n', (1012, 1014), True, 'import tensorrt as trt\n'), ((1462, 1475), 'pycuda.driver.Stream', 'cuda.Stream', ([], {}), '()\n', (1473, 1475), True, 'import pycuda.driver as cuda\n'), ((2280, 2293), 'pycuda.driver.Stream', 'cuda.Stream', ([], {}), '()\n', (2291... |
inpanel/inpanel-desktop | src/init.py | bff4a6accdf8a2976c722adc65f3fa2fe6650448 | #!/usr/bin/env python3
# -*- coding:utf-8-*-
import tkinter.messagebox
from tkinter import Button, Label, Tk
from utils.functions import set_window_center
from utils.sqlite_helper import DBHelper
from inpanel import App
class InitWindow(Tk):
"""初始化窗口"""
def __init__(self):
Tk.__init__(self)
... | [((295, 312), 'tkinter.Tk.__init__', 'Tk.__init__', (['self'], {}), '(self)\n', (306, 312), False, 'from tkinter import Button, Label, Tk\n'), ((349, 382), 'utils.functions.set_window_center', 'set_window_center', (['self', '(300)', '(180)'], {}), '(self, 300, 180)\n', (366, 382), False, 'from utils.functions import se... |
roscopecoltran/SniperKit-Core | Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py | 4600dffe1cddff438b948b6c22f586d052971e04 | #!/usr/bin/env python3
# Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
"""
* Wiki table for `leathers` C++ project
Expected format:
### Main table
Name | Clang | GCC | MSVC |
-----------------------------|----------|----------|------|
static-ctor-not-thread-safe | *no* ... | [] |
armando-migliaccio/neutron-1 | neutron/plugins/ofagent/agent/ports.py | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | # Copyright (C) 2014 VA Linux Systems Japan K.K.
# Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp>
# 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... | [] |
damaainan/html2md | pdf/wechat/step.py | 0d241381e716d64bbcacad013c108857e815bb15 | # -*- coding=utf-8 -*-
from zwechathihu.mypdf import GenPdf
from db.mysqlite import simpleToolSql
data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_... | [((918, 938), 'db.mysqlite.simpleToolSql', 'simpleToolSql', (['"""url"""'], {}), "('url')\n", (931, 938), False, 'from db.mysqlite import simpleToolSql\n'), ((1107, 1127), 'db.mysqlite.simpleToolSql', 'simpleToolSql', (['"""url"""'], {}), "('url')\n", (1120, 1127), False, 'from db.mysqlite import simpleToolSql\n'), ((1... |
ZhuoZhuoCrayon/bk-nodeman | pipeline/validators/handlers.py | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [((925, 979), 'django.dispatch.receiver', 'receiver', (['post_new_end_event_register'], {'sender': 'EndEvent'}), '(post_new_end_event_register, sender=EndEvent)\n', (933, 979), False, 'from django.dispatch import receiver\n'), ((1114, 1167), 'pipeline.validators.rules.FLOW_NODES_WITHOUT_STARTEVENT.append', 'rules.FLOW_... |
jetbrains-academy/Python-Libraries-NumPy | NumPy/Array Basics/Random Shuffle/tests/test_task.py | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | import unittest
import numpy as np
from task import arr, permuted_2d, fully_random
class TestCase(unittest.TestCase):
def test_shape(self):
self.assertEqual((5, 20), arr.shape, msg="Wrong shape of the array 'arr'.")
self.assertEqual((5, 20), permuted_2d.shape, msg="Wrong shape of the array 'permu... | [] |
lausitzer/plugin.video.mediathekview | resources/lib/channelui.py | 7f2086240625b9b4f8d50af114f8f47654346ed1 | # -*- coding: utf-8 -*-
"""
The channel model UI module
Copyright 2017-2018, Leo Moll and Dominik Schlösser
SPDX-License-Identifier: MIT
"""
# pylint: disable=import-error
import os
import xbmcgui
import xbmcplugin
import resources.lib.mvutils as mvutils
from resources.lib.channel import Channel
class ChannelUI(C... | [((1503, 1572), 'xbmcgui.ListItem', 'xbmcgui.ListItem', ([], {'label': '(resultingname if altname is None else altname)'}), '(label=resultingname if altname is None else altname)\n', (1519, 1572), False, 'import xbmcgui\n'), ((2370, 2408), 'xbmcplugin.endOfDirectory', 'xbmcplugin.endOfDirectory', (['self.handle'], {}),... |
smk762/Dragonhound | getconf.py | 7cbaed2779afec47fcbf2481d0dae61daa4c11da | #!/usr/bin/env python3
#Credit to @Alright for the RPCs
import re
import os
import requests
import json
import platform
# define function that fetchs rpc creds from .conf
def def_credentials(chain):
operating_system = platform.system()
if operating_system == 'Darwin':
ac_dir = os.environ['HOME'] + '/... | [((225, 242), 'platform.system', 'platform.system', ([], {}), '()\n', (240, 242), False, 'import platform\n'), ((1466, 1484), 'json.loads', 'json.loads', (['r.text'], {}), '(r.text)\n', (1476, 1484), False, 'import json\n'), ((940, 963), 're.search', 're.search', (['"""rpcuser"""', 'l'], {}), "('rpcuser', l)\n", (949, ... |
orenyodfat/CWR-DataApi | cwr/parser/decoder/dictionary.py | f3b6ba8308c901b6ab87073c155c08e30692333c | # -*- coding: utf-8 -*-
from cwr.acknowledgement import AcknowledgementRecord, MessageRecord
from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \
InterestedPartyForAgreementRecord
from cwr.group import Group, GroupHeader, GroupTrailer
from cwr.info import AdditionalRelatedInfoRecord
from cwr.pars... | [((4867, 5517), 'cwr.acknowledgement.AcknowledgementRecord', 'AcknowledgementRecord', ([], {'record_type': "data['record_type']", 'transaction_sequence_n': "data['transaction_sequence_n']", 'record_sequence_n': "data['record_sequence_n']", 'original_group_id': "data['original_group_id']", 'original_transaction_sequence... |
imranpopz/android_bootable_recovery-1 | prebuilt/twrp_fonts.py | ec4512ad1e20f640b3dcd6faf8c04cae711e4f30 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import codecs,os,gzip,ctypes,ctypes.util,sys
from struct import *
from PIL import Image, ImageDraw, ImageFont
# ====== Python script to convert TrueTypeFonts to TWRP's .dat format ======
# This script was originally made by https://github.com/suky for his chinese version of... | [((3751, 3776), 'PIL.Image.new', 'Image.new', (['"""L"""', '(1, 1)', '(0)'], {}), "('L', (1, 1), 0)\n", (3760, 3776), False, 'from PIL import Image, ImageDraw, ImageFont\n'), ((3792, 3811), 'PIL.ImageDraw.Draw', 'ImageDraw.Draw', (['res'], {}), '(res)\n', (3806, 3811), False, 'from PIL import Image, ImageDraw, ImageFon... |
lawrendran/open | open/users/serializers.py | d136f694bafab647722c78be6f39ec79d589f774 | import pytz
from rest_auth.serializers import TokenSerializer
from rest_framework.authtoken.models import Token
from rest_framework.exceptions import ValidationError
from rest_framework.fields import (
CharField,
CurrentUserDefault,
HiddenField,
UUIDField,
ChoiceField,
)
from rest_framework.serializ... | [((1538, 1578), 'rest_framework.fields.CharField', 'CharField', ([], {'write_only': '(True)', 'min_length': '(8)'}), '(write_only=True, min_length=8)\n', (1547, 1578), False, 'from rest_framework.fields import CharField, CurrentUserDefault, HiddenField, UUIDField, ChoiceField\n'), ((1600, 1694), 'rest_framework.fields.... |
rhasspy/rhasspy-test | tests/en/test_asr.py | 0c180bfdd370f18ad2f8b9ee483ea5520161ab74 | """Automated speech recognition tests."""
import os
import sys
import unittest
from pathlib import Path
import requests
from rhasspyhermes.asr import AsrTextCaptured
from rhasspyhermes.nlu import NluIntent
class AsrEnglishTests(unittest.TestCase):
"""Test automated speech recognition (English)"""
def setUp... | [((353, 401), 'os.environ.get', 'os.environ.get', (['"""RHASSPY_HTTP_HOST"""', '"""localhost"""'], {}), "('RHASSPY_HTTP_HOST', 'localhost')\n", (367, 401), False, 'import os\n'), ((427, 469), 'os.environ.get', 'os.environ.get', (['"""RHASSPY_HTTP_PORT"""', '(12101)'], {}), "('RHASSPY_HTTP_PORT', 12101)\n", (441, 469), ... |
OthmaneJ/deep-tts | speech/melgan/model/multiscale.py | 93059d568c5b458d3f0d80eb294d397ecace8731 | import torch
import torch.nn as nn
import torch.nn.functional as F
from .discriminator import Discriminator
from .identity import Identity
class MultiScaleDiscriminator(nn.Module):
def __init__(self):
super(MultiScaleDiscriminator, self).__init__()
self.discriminators = nn.ModuleList(
... | [((455, 503), 'torch.nn.AvgPool1d', 'nn.AvgPool1d', ([], {'kernel_size': '(4)', 'stride': '(2)', 'padding': '(2)'}), '(kernel_size=4, stride=2, padding=2)\n', (467, 503), True, 'import torch.nn as nn\n')] |
AntonioLourencos/jogo-da-velha | main.py | 3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63 | from game import about_button, start_button, play_sound, center_pos
import pygame
WHITE = (255,255,255)
BLACK = (0,0,0)
GREEN = (0, 255, 0)
pygame.init()
pygame.font.init()
pygame.mixer.init()
FONT = pygame.font.Font("assets/font.ttf", 70)
FONT_MIN = pygame.font.Font("assets/font.ttf", 30)
window = pygame.display.s... | [((142, 155), 'pygame.init', 'pygame.init', ([], {}), '()\n', (153, 155), False, 'import pygame\n'), ((156, 174), 'pygame.font.init', 'pygame.font.init', ([], {}), '()\n', (172, 174), False, 'import pygame\n'), ((175, 194), 'pygame.mixer.init', 'pygame.mixer.init', ([], {}), '()\n', (192, 194), False, 'import pygame\n'... |
1donggri/teamProject | schedule/views.py | 9b4f37c2a93b065529ce9dd245f9717a783dd456 | from django.shortcuts import render, redirect
from .models import Post
from .forms import ScheduleForm
from django.core.paginator import Paginator
# Create your views here.
def view_schedule(request):
all_posts = Post.objects.all().order_by('pub_date')
page = int(request.GET.get('p', 1))
pagenator = Pagina... | [((314, 337), 'django.core.paginator.Paginator', 'Paginator', (['all_posts', '(5)'], {}), '(all_posts, 5)\n', (323, 337), False, 'from django.core.paginator import Paginator\n'), ((386, 450), 'django.shortcuts.render', 'render', (['request', '"""schedule/view_schedule.html"""', "{'posts': posts}"], {}), "(request, 'sch... |
kingsdigitallab/archetype-django | archetype/settings/local_stg.py | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | from .base import * # noqa
CACHE_REDIS_DATABASE = '1'
CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE
INTERNAL_IPS = INTERNAL_IPS + ('', )
ALLOWED_HOSTS = ['']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_archetype_stg',
... | [] |
vnaskos/Website | website/sites/admin.py | 1c2adb0985f3932ddeca12025a2d216d2470cb63 | from django.contrib import admin
# Register your models here.]
from website.sites.models import Post
@admin.register(Post)
class TestAdmin2(admin.ModelAdmin):
pass | [((108, 128), 'django.contrib.admin.register', 'admin.register', (['Post'], {}), '(Post)\n', (122, 128), False, 'from django.contrib import admin\n')] |
korbi98/TicTacToeGo_Zero | mcts.py | b8ea4562f3ddf914a53fc380f2266f13ab887e04 | # Monte Carlo tree search for TicTacToe
import numpy as np
from tictactoe import Tictactoe
import copy
from random import choice
from tree import Node
import time
class MCTS:
'''
Class defining a simple monte carlo tree search algorithm.
Attributes:
- game: instance of TicTacToe game
- cu... | [((708, 747), 'tree.Node', 'Node', (['None', '(-1)', '(3 - self.current_player)'], {}), '(None, -1, 3 - self.current_player)\n', (712, 747), False, 'from tree import Node\n'), ((1135, 1147), 'time.clock', 'time.clock', ([], {}), '()\n', (1145, 1147), False, 'import time\n'), ((1543, 1555), 'time.clock', 'time.clock', (... |
pirovc/grimer | grimer/metadata.py | 169f8d3009004d6d2f4ca4d3e7dfec819078cb34 | import pandas as pd
from pandas.api.types import is_numeric_dtype
from grimer.utils import print_log
class Metadata:
valid_types = ["categorical", "numeric"]
default_type = "categorical"
def __init__(self, metadata_file, samples: list=[]):
# Read metadata and let pandas guess dtypes, index as str... | [((341, 436), 'pandas.read_table', 'pd.read_table', (['metadata_file'], {'sep': '"""\t"""', 'header': '(0)', 'skiprows': '(0)', 'index_col': '(0)', 'dtype': '{(0): str}'}), "(metadata_file, sep='\\t', header=0, skiprows=0, index_col=0,\n dtype={(0): str})\n", (354, 436), True, 'import pandas as pd\n'), ((585, 638), ... |
MSLars/allennlp | allennlp/training/metric_tracker.py | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | from typing import Optional, Dict, Any, List, Union
from allennlp.common.checks import ConfigurationError
class MetricTracker:
"""
This class tracks a metric during training for the dual purposes of early stopping
and for knowing whether the current value is the best so far. It mimics the PyTorch
`st... | [((4970, 5122), 'allennlp.common.checks.ConfigurationError', 'ConfigurationError', (['f"""You configured the trainer to use the {e.args[0]} metric for early stopping, but the model did not produce that metric."""'], {}), "(\n f'You configured the trainer to use the {e.args[0]} metric for early stopping, but the mode... |
MuhweziDeo/Ah-backend-xmen | authors/apps/profiles/renderers.py | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | from authors.apps.utils.renderers import AppJSONRenderer
import json
from rest_framework.renderers import JSONRenderer
class UserProfileJSONRenderer(AppJSONRenderer):
name = 'profile'
class UserProfileListRenderer(JSONRenderer):
"""
Returns profiles of existing users
"""
charset = 'utf-8'
... | [((482, 512), 'json.dumps', 'json.dumps', (["{'profiles': data}"], {}), "({'profiles': data})\n", (492, 512), False, 'import json\n')] |
bantenz/NetworkConfigParser | json_analyzer.py | e1aa8385540823340e8278c7d7af0201399efd8f | import json
from deepdiff import DeepDiff
import pprint
def get_json(file_name):
with open(file_name) as json_file:
json_data = json.load(json_file)
return json_data
def compare_json(Hostname, Command, Data1, Data2):
if (Data1 == Data2):
print ("%s - %s output is same" % (Hostname, Com... | [((141, 161), 'json.load', 'json.load', (['json_file'], {}), '(json_file)\n', (150, 161), False, 'import json\n'), ((427, 449), 'deepdiff.DeepDiff', 'DeepDiff', (['Data1', 'Data2'], {}), '(Data1, Data2)\n', (435, 449), False, 'from deepdiff import DeepDiff\n')] |
telefonicaid/fiware-glancesync | fiwareglancesync/sync.py | 5ad0c80e12b9384473f31bf336015c75cf02a2a2 | #!/usr/bin/env python
# -- encoding: utf-8 --
#
# Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# 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... | [((7681, 7729), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': 'description'}), '(description=description)\n', (7704, 7729), False, 'import argparse\n'), ((1071, 1093), 'fiwareglancesync.glancesync.GlanceSync.init_logs', 'GlanceSync.init_logs', ([], {}), '()\n', (1091, 1093), False, 'from fi... |
Pandinosaurus/models-intelai | models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py | 60f5712d79a363bdb7624e3116a66a4f1a7fe208 | ### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py)
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may ... | [((933, 953), 'mlperf_logging.mllog.get_mllogger', 'mllog.get_mllogger', ([], {}), '()\n', (951, 953), False, 'from mlperf_logging import mllog\n'), ((1175, 1196), 'os.getenv', 'os.getenv', (['"""USE_CUDA"""'], {}), "('USE_CUDA')\n", (1184, 1196), False, 'import os\n'), ((1564, 1598), 'torch.distributed.is_initialized'... |
CDufour909/omtk_unreal | omtk/models/model_avar_surface_lips.py | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | import math
import pymel.core as pymel
from omtk.core.classNode import Node
from omtk.libs import libAttr
from omtk.libs import libRigging
from . import model_avar_surface
class SplitterNode(Node):
"""
A splitter is a node network that take the parameterV that is normally sent through the follicles and
sp... | [((1698, 1745), 'omtk.libs.libAttr.addAttr', 'libAttr.addAttr', (['grp_splitter_inn', '"""innJawOpen"""'], {}), "(grp_splitter_inn, 'innJawOpen')\n", (1713, 1745), False, 'from omtk.libs import libAttr\n'), ((1972, 2020), 'omtk.libs.libAttr.addAttr', 'libAttr.addAttr', (['grp_splitter_inn', '"""innSurfaceU"""'], {}), "... |
dataesr/harvest-theses | project/server/main/feed.py | 1725b3ec3a944526fe62941d554bc3de6209cd28 | import datetime
import os
import pymongo
import requests
from urllib import parse
from urllib.parse import quote_plus
import json
from retry import retry
from bs4 import BeautifulSoup
import math
from project.server.main.logger import get_logger
from project.server.main.utils_swift import upload_object
from project.s... | [((453, 473), 'project.server.main.logger.get_logger', 'get_logger', (['__name__'], {}), '(__name__)\n', (463, 473), False, 'from project.server.main.logger import get_logger\n'), ((642, 666), 'retry.retry', 'retry', ([], {'delay': '(60)', 'tries': '(5)'}), '(delay=60, tries=5)\n', (647, 666), False, 'from retry import... |
ckamtsikis/cmssw | DQM/L1TMonitor/python/L1TGCT_cfi.py | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
l1tGct = DQMEDAnalyzer('L1TGCT',
gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"),
gctForwardJetsSource = cms.InputTag("gctDigis","forJets"),
gctTauJetsSource = cms.InputTag("gctDigis","tauJets"),
... | [((159, 194), 'FWCore.ParameterSet.Config.InputTag', 'cms.InputTag', (['"""gctDigis"""', '"""cenJets"""'], {}), "('gctDigis', 'cenJets')\n", (171, 194), True, 'import FWCore.ParameterSet.Config as cms\n'), ((222, 257), 'FWCore.ParameterSet.Config.InputTag', 'cms.InputTag', (['"""gctDigis"""', '"""forJets"""'], {}), "('... |
gandhiy/lipMIP | utilities.py | 11843e6bf2223acca44f57d29791521aac15caf3 | """ General all-purpose utilities """
import sys
import torch
import torch.nn.functional as F
import numpy as np
import gurobipy as gb
import matplotlib.pyplot as plt
import io
import contextlib
import tempfile
import time
import re
import pickle
import inspect
import glob
import os
COMPLETED_JOB_DIR = os.path.join(... | [((320, 345), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (335, 345), False, 'import os\n'), ((4728, 4737), 'torch.nn.functional.relu', 'F.relu', (['x'], {}), '(x)\n', (4734, 4737), True, 'import torch.nn.functional as F\n'), ((5427, 5459), 'tempfile.TemporaryFile', 'tempfile.TemporaryFile... |
alentoghostflame/StupidAlentoBot | OLD/karma_module/text.py | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}."
REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}."
LIST_KARMA_OWN = "You currently have {} karma."
LIST_KARMA_OBJECT = "\"{}\" currently has {} karma."
LIST_KARMA_MEMBER = "{} currently has {} karma."
KARMA_TOP_STA... | [] |
anssilaukkarinen/mry-cluster2 | read_delphin_data.py | 65d80a7371a4991dfe248ff6944f050e1573f8fc | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 6 14:51:24 2021
@author: laukkara
This script is run first to fetch results data from university's network drive
"""
import os
import pickle
input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations'
output_folder = os.path.join(r'C:\Local\laukkar... | [((289, 359), 'os.path.join', 'os.path.join', (['"""C:\\\\Local\\\\laukkara\\\\Data\\\\github\\\\mry-cluster2\\\\input"""'], {}), "('C:\\\\Local\\\\laukkara\\\\Data\\\\github\\\\mry-cluster2\\\\input')\n", (301, 359), False, 'import os\n'), ((517, 569), 'os.path.join', 'os.path.join', (['output_folder', 'output_pickle_... |
sumesh-aot/namex | api/config.py | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | """Config for initializing the namex-api."""
import os
from dotenv import find_dotenv, load_dotenv
# this will load all the envars from a .env file located in the project root (api)
load_dotenv(find_dotenv())
CONFIGURATION = {
'development': 'config.DevConfig',
'testing': 'config.TestConfig',
'production... | [((196, 209), 'dotenv.find_dotenv', 'find_dotenv', ([], {}), '()\n', (207, 209), False, 'from dotenv import find_dotenv, load_dotenv\n'), ((608, 663), 'os.getenv', 'os.getenv', (['"""NRO_SERVICE_ACCOUNT"""', '"""nro_service_account"""'], {}), "('NRO_SERVICE_ACCOUNT', 'nro_service_account')\n", (617, 663), False, 'impor... |
pierre-haessig/matplotlib | examples/pylab_examples/fancybox_demo2.py | 0d945044ca3fbf98cad55912584ef80911f330c6 | import matplotlib.patches as mpatch
import matplotlib.pyplot as plt
styles = mpatch.BoxStyle.get_styles()
figheight = (len(styles)+.5)
fig1 = plt.figure(1, (4/1.5, figheight/1.5))
fontsize = 0.3 * 72
for i, (stylename, styleclass) in enumerate(styles.items()):
fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei... | [((78, 106), 'matplotlib.patches.BoxStyle.get_styles', 'mpatch.BoxStyle.get_styles', ([], {}), '()\n', (104, 106), True, 'import matplotlib.patches as mpatch\n'), ((144, 185), 'matplotlib.pyplot.figure', 'plt.figure', (['(1)', '(4 / 1.5, figheight / 1.5)'], {}), '(1, (4 / 1.5, figheight / 1.5))\n', (154, 185), True, 'i... |
sdu-cfei/modest-py | setup.py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | from setuptools import setup
setup(
name='modestpy',
version='0.1',
description='FMI-compliant model identification package',
url='https://github.com/sdu-cfei/modest-py',
keywords='fmi fmu optimization model identification estimation',
author='Krzysztof Arendt, Center for Energy Informatics SDU... | [((30, 827), 'setuptools.setup', 'setup', ([], {'name': '"""modestpy"""', 'version': '"""0.1"""', 'description': '"""FMI-compliant model identification package"""', 'url': '"""https://github.com/sdu-cfei/modest-py"""', 'keywords': '"""fmi fmu optimization model identification estimation"""', 'author': '"""Krzysztof Are... |
andersonbrands/gfworkflow | gfworkflow/core.py | 81c646fd53b8227691bcd3e236f538fee0d9d93c | import re
import subprocess as sp
from typing import Union, List
from gfworkflow.exceptions import RunCommandException
def run(command: Union[str, List[str]]):
completed_process = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True)
if completed_process.returncode:
raise RunComman... | [((187, 259), 'subprocess.run', 'sp.run', (['command'], {'stdout': 'sp.PIPE', 'stderr': 'sp.PIPE', 'universal_newlines': '(True)'}), '(command, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True)\n', (193, 259), True, 'import subprocess as sp\n'), ((311, 349), 'gfworkflow.exceptions.RunCommandException', 'RunComma... |
jorges119/localstack | tests/integration/lambdas/lambda_python3.py | a8a78cda6c13b2e42bc46301b23c7143580132fb | # simple test function that uses python 3 features (e.g., f-strings)
# see https://github.com/localstack/localstack/issues/264
def handler(event, context):
# the following line is Python 3.6+ specific
msg = f"Successfully processed {event}" # noqa This code is Python 3.6+ only
return event
| [] |
etiennody/purchoice | import_off.py | 43a2dc81ca953ac6168f8112e97a4bae91ace690 | #! usr/bin/python3
# code: utf-8
"""Download data from Open Food Facts API."""
import json
import requests
from src.purchoice.constants import CATEGORY_SELECTED
from src.purchoice.purchoice_database import PurchoiceDatabase
class ImportOff:
"""ImportOff class downloads data from Open Food Facts API."""
de... | [((2783, 2802), 'src.purchoice.purchoice_database.PurchoiceDatabase', 'PurchoiceDatabase', ([], {}), '()\n', (2800, 2802), False, 'from src.purchoice.purchoice_database import PurchoiceDatabase\n'), ((1611, 1639), 'json.loads', 'json.loads', (['response.content'], {}), '(response.content)\n', (1621, 1639), False, 'impo... |
zhjp0/Orio | orio/module/loop/cfg.py | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | '''
Created on April 26, 2015
@author: norris
'''
import ast, sys, os, traceback
from orio.main.util.globals import *
from orio.tool.graphlib import graph
from orio.module.loop import astvisitors
class CFGVertex(graph.Vertex):
'''A CFG vertex is a basic block.'''
def __init__(self, name, node=None):
t... | [] |
lubnc4261/House-Keeper | cogs rework/server specified/on_message_delete.py | 6de20014afaf00cf9050e54c91cd8b3a02702a27 | import discord
from discord import Embed
@commands.Cog.listener()
async def on_message_delete(self, message):
channel = "xxxxxxxxxxxxxxxxxxxxx"
deleted = Embed(
description=f"Message deleted in {message.channel.mention}", color=0x4040EC
).set_author(name=message.author, url=Embed.Empty,... | [((173, 259), 'discord.Embed', 'Embed', ([], {'description': 'f"""Message deleted in {message.channel.mention}"""', 'color': '(4210924)'}), "(description=f'Message deleted in {message.channel.mention}', color=\n 4210924)\n", (178, 259), False, 'from discord import Embed\n')] |
icing/mod_md | test/modules/md/md_env.py | 4522ed547f0426f27aae86f00fbc9b5b17de545f | import copy
import inspect
import json
import logging
import pytest
import re
import os
import shutil
import subprocess
import time
from datetime import datetime, timedelta
from configparser import ConfigParser, ExtendedInterpolation
from typing import Dict, List, Optional
from pyhttpd.certs import CertificateSpec
f... | [((454, 481), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (471, 481), False, 'import logging\n'), ((881, 912), 'os.path.join', 'os.path.join', (['our_dir', '"""pebble"""'], {}), "(our_dir, 'pebble')\n", (893, 912), False, 'import os\n'), ((937, 977), 'os.path.join', 'os.path.join', (['... |
ajrice6713/bw-messaging-emulator | models/create_message_response.py | d1be4976e2486ec91b419597afc8411c78ebfda7 | import datetime
import json
import random
import string
from typing import Dict
from sms_counter import SMSCounter
class CreateMessageResponse:
def __init__(self, request):
self.id = self.generate_id()
self.owner = request['from']
self.applicationId = request['applicationId']
sel... | [((964, 989), 'sms_counter.SMSCounter.count', 'SMSCounter.count', (['message'], {}), '(message)\n', (980, 989), False, 'from sms_counter import SMSCounter\n'), ((1077, 1121), 'random.randint', 'random.randint', (['(1400000000000)', '(1799999999999)'], {}), '(1400000000000, 1799999999999)\n', (1091, 1121), False, 'impor... |
victor95pc/ccxt | python/ccxt/async_support/uex.py | 5c3e606296a1b15852a35f1330b645f451fa08d6 | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try... | [((33242, 33328), 'ccxt.base.errors.ArgumentsRequired', 'ArgumentsRequired', (["(self.id + ' fetchOrdersWithMethod() requires a symbol argument')"], {}), "(self.id +\n ' fetchOrdersWithMethod() requires a symbol argument')\n", (33259, 33328), False, 'from ccxt.base.errors import ArgumentsRequired\n'), ((39101, 39173... |
Mdlkxzmcp/various_python | Alpha & Beta/wootMath/decimalToBinaryFraction.py | be4f873c6263e3db11177bbccce2aa465514294d | def decimal_to_binary_fraction(x=0.5):
"""
Input: x, a float between 0 and 1
Returns binary representation of x
"""
p = 0
while ((2 ** p) * x) % 1 != 0:
# print('Remainder = ' + str((2**p)*x - int((2**p)*x)))
p += 1
num = int(x * (2 ** p))
result = ''
if num == 0:
... | [] |
ajaysaini725/composer | composer/utils/run_directory.py | 00fbf95823cd50354b2410fbd88f06eaf0481662 | # Copyright 2021 MosaicML. All Rights Reserved.
import datetime
import logging
import os
import pathlib
import time
from composer.utils import dist
log = logging.getLogger(__name__)
_RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY"
_start_time_str = datetime.datetime.now().isoformat()
def get_node_run_directory() ->... | [((157, 184), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (174, 184), False, 'import logging\n'), ((770, 816), 'os.makedirs', 'os.makedirs', (['node_run_directory'], {'exist_ok': '(True)'}), '(node_run_directory, exist_ok=True)\n', (781, 816), False, 'import os\n'), ((828, 863), 'os.pa... |
adi112100/newsapp | newsapp/migrations/0003_news.py | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | # Generated by Django 3.0.8 on 2020-07-11 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsapp', '0002_auto_20200711_1124'),
]
operations = [
migrations.CreateModel(
name='News',
fields=[
... | [((328, 421), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n verbose_name='ID')\n", (344, 421), False, 'from django.db import migrations, models\... |
NazarioJL/faker_enum | src/enum/__init__.py | c2703cae232b229b4d4ab2b73757102453d541ab | # -*- coding: utf-8 -*-
from enum import Enum
from typing import TypeVar, Type, List, Iterable, cast
from faker.providers import BaseProvider
TEnum = TypeVar("TEnum", bound=Enum)
class EnumProvider(BaseProvider):
"""
A Provider for enums.
"""
def enum(self, enum_cls: Type[TEnum]) -> TEnum:
... | [((152, 180), 'typing.TypeVar', 'TypeVar', (['"""TEnum"""'], {'bound': 'Enum'}), "('TEnum', bound=Enum)\n", (159, 180), False, 'from typing import TypeVar, Type, List, Iterable, cast\n'), ((349, 380), 'typing.cast', 'cast', (['Iterable[TEnum]', 'enum_cls'], {}), '(Iterable[TEnum], enum_cls)\n', (353, 380), False, 'from... |
Varriount/sanic | tests/performance/bottle/simple_server.py | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | # Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
import bottle
import ujson
from bottle import route, run
@route("/")
def index():
return ujson.dumps({"test": True})
app = bottle.default_app()
| [((170, 180), 'bottle.route', 'route', (['"""/"""'], {}), "('/')\n", (175, 180), False, 'from bottle import route, run\n'), ((241, 261), 'bottle.default_app', 'bottle.default_app', ([], {}), '()\n', (259, 261), False, 'import bottle\n'), ((205, 232), 'ujson.dumps', 'ujson.dumps', (["{'test': True}"], {}), "({'test': Tr... |
alvarocneto/alura_django | usuarios/views.py | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | from django.shortcuts import redirect
from django.shortcuts import render
from django.contrib.auth.models import User
from django.views.generic.base import View
from perfis.models import Perfil
from usuarios.forms import RegistrarUsuarioForm
class RegistrarUsuarioView(View):
template_name = 'registrar.html'
... | [((360, 395), 'django.shortcuts.render', 'render', (['request', 'self.template_name'], {}), '(request, self.template_name)\n', (366, 395), False, 'from django.shortcuts import render\n'), ((476, 510), 'usuarios.forms.RegistrarUsuarioForm', 'RegistrarUsuarioForm', (['request.POST'], {}), '(request.POST)\n', (496, 510), ... |
srsuper/BOT2020 | antolib/AntoCommon.py | 2cadfad470de62819b7aaa0f9ecf1e4b4052ea68 | ANTO_VER = '0.1.2'
| [] |
CPChain/fusion | cpc_fusion/pkgs/keys/main.py | 63b6913010e8e5b296a1900c59592c8fd1802c2e | from typing import (Any, Union, Type) # noqa: F401
from ..keys.datatypes import (
LazyBackend,
PublicKey,
PrivateKey,
Signature,
)
from eth_keys.exceptions import (
ValidationError,
)
from eth_keys.validation import (
validate_message_hash,
)
# These must be aliased due to a scoping issue in... | [((912, 947), 'eth_keys.validation.validate_message_hash', 'validate_message_hash', (['message_hash'], {}), '(message_hash)\n', (933, 947), False, 'from eth_keys.validation import validate_message_hash\n'), ((2154, 2189), 'eth_keys.validation.validate_message_hash', 'validate_message_hash', (['message_hash'], {}), '(me... |
gadial/qiskit-terra | qiskit/pulse/transforms/canonicalization.py | 0fc83f44a6e80969875c738b2cee7bc33223e45f | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [((1646, 1696), 'qiskit.pulse.schedule.Schedule', 'Schedule', ([], {'name': 'block.name', 'metadata': 'block.metadata'}), '(name=block.name, metadata=block.metadata)\n', (1654, 1696), False, 'from qiskit.pulse.schedule import Schedule, ScheduleBlock, ScheduleComponent\n'), ((4991, 5047), 'qiskit.pulse.schedule.Schedule... |
ananelson/oacensus | tests/test_scraper.py | 87916c92ab1233bcf82a481113017dfb8d7701b9 | from oacensus.scraper import Scraper
from oacensus.commands import defaults
class TestScraper(Scraper):
"""
Scraper for testing scraper methods.
"""
aliases = ['testscraper']
def scrape(self):
pass
def process(self):
pass
def test_hashcode():
scraper = Scraper.create_inst... | [((301, 349), 'oacensus.scraper.Scraper.create_instance', 'Scraper.create_instance', (['"""testscraper"""', 'defaults'], {}), "('testscraper', defaults)\n", (324, 349), False, 'from oacensus.scraper import Scraper\n'), ((422, 470), 'oacensus.scraper.Scraper.create_instance', 'Scraper.create_instance', (['"""testscraper... |
li-ma/homework | python/test-deco-1-1.py | d75b1752a02bd028af0806683abe079c7b0a9b29 | def deco1(func):
print("before myfunc() called.")
func()
print("after myfunc() called.")
def myfunc():
print("myfunc() called.")
deco1(myfunc)
| [] |
mmoucka/py-junos-eznc | lib/jnpr/junos/transport/tty_netconf.py | 9ef5ad39e32ae670fe8ed0092d725661a45b3053 | import re
import time
from lxml import etree
import select
import socket
import logging
import sys
from lxml.builder import E
from lxml.etree import XMLSyntaxError
from datetime import datetime, timedelta
from ncclient.operations.rpc import RPCReply, RPCError
from ncclient.xml_ import to_ele
import six
from ncclient.t... | [((537, 552), 'six.b', 'six.b', (['"""]]>]]>"""'], {}), "(']]>]]>')\n", (542, 552), False, 'import six\n'), ((768, 811), 'logging.getLogger', 'logging.getLogger', (['"""jnpr.junos.tty_netconf"""'], {}), "('jnpr.junos.tty_netconf')\n", (785, 811), False, 'import logging\n'), ((385, 396), 'six.b', 'six.b', (['"""\n"""'],... |
eydam-prototyping/mp_modbus | test/_test_client.py | 8007c41dd16e6f71bd27b587628f57f38f27a7e0 | from pymodbus.client.sync import ModbusTcpClient as ModbusClient
import logging
FORMAT = ('%(asctime)-15s %(threadName)-15s '
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
logging.basicConfig(format=FORMAT)
log = logging.getLogger()
log.setLevel(logging.DEBUG)
client = ModbusClient('192.168.178.61... | [((194, 228), 'logging.basicConfig', 'logging.basicConfig', ([], {'format': 'FORMAT'}), '(format=FORMAT)\n', (213, 228), False, 'import logging\n'), ((235, 254), 'logging.getLogger', 'logging.getLogger', ([], {}), '()\n', (252, 254), False, 'import logging\n'), ((292, 332), 'pymodbus.client.sync.ModbusTcpClient', 'Modb... |
technolotrix/tests | tests/selenium/test_about/test_about_page.py | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | import unittest
from selenium import webdriver
import page
class AboutPage(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.get("http://nicolesmith.nyc")
#self.driver.get("http://127.0.0.1:4747/about")
self.about_page = page.AboutPage(self.driver)
... | [((739, 769), 'unittest.skip', 'unittest.skip', (['"""Needs fixing."""'], {}), "('Needs fixing.')\n", (752, 769), False, 'import unittest\n'), ((906, 936), 'unittest.skip', 'unittest.skip', (['"""Needs fixing."""'], {}), "('Needs fixing.')\n", (919, 936), False, 'import unittest\n'), ((1082, 1112), 'unittest.skip', 'un... |
pcen/pulumi | sdk/python/lib/test/langhost/future_input/__main__.py | 1bb85ca98c90f2161fe915df083d47c56c135e4d | # Copyright 2016-2018, Pulumi Corporation.
#
# 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 t... | [((702, 718), 'asyncio.sleep', 'asyncio.sleep', (['(0)'], {}), '(0)\n', (715, 718), False, 'import asyncio\n'), ((928, 1023), 'pulumi.CustomResource.__init__', 'CustomResource.__init__', (['self', '"""test:index:FileResource"""', 'name', "{'contents': file_contents}"], {}), "(self, 'test:index:FileResource', name, {'co... |
dewloosh/dewloosh-geom | src/dewloosh/geom/cells/h8.py | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | # -*- coding: utf-8 -*-
from dewloosh.geom.polyhedron import HexaHedron
from dewloosh.math.numint import GaussPoints as Gauss
from dewloosh.geom.utils import cells_coords
from numba import njit, prange
import numpy as np
from numpy import ndarray
__cache = True
@njit(nogil=True, cache=__cache)
def monoms_H8(pcoord: n... | [((265, 296), 'numba.njit', 'njit', ([], {'nogil': '(True)', 'cache': '__cache'}), '(nogil=True, cache=__cache)\n', (269, 296), False, 'from numba import njit, prange\n'), ((412, 443), 'numba.njit', 'njit', ([], {'nogil': '(True)', 'cache': '__cache'}), '(nogil=True, cache=__cache)\n', (416, 443), False, 'from numba im... |
Simbadeveloper/studious-octo-waddle.io | shopping_cart_test/shoppingcart2.py | 7ace6bb93e3b87c97d59df858e3079ec7a2db30e | class ShoppingCart(object):
def __init__(self):
self.total = 0
self.items = dict()
def add_item(self, item_name, quantity, price):
if item_name != None and quantity >= 1:
self.items.update({item_name: quantity})
if quantity and price >= 1:
self.total += (quantity * price)
def re... | [] |
heaven00/github-contribution-leaderboard | tests/models/pr_test_data.py | 3de53a60a7c81b91291e29d063c7fd14696d426d | import copy
import json
from ghcl.models.pull_request import PullRequest
class PRData:
def __init__(self, data: dict = None):
if data is None:
with open('./tests/models/empty_pr_data.json') as file:
self._data = json.load(file)
else:
self._data = data
... | [((381, 406), 'copy.deepcopy', 'copy.deepcopy', (['self._data'], {}), '(self._data)\n', (394, 406), False, 'import copy\n'), ((565, 590), 'copy.deepcopy', 'copy.deepcopy', (['self._data'], {}), '(self._data)\n', (578, 590), False, 'import copy\n'), ((928, 953), 'copy.deepcopy', 'copy.deepcopy', (['self._data'], {}), '(... |
PKUfudawei/cmssw | Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py | 8fbb5ce74398269c8a32956d7c7943766770c093 | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation',
hepmcCollection = cms.InputTag("generatorSmeared"),
genparticleCollection = cms.InputTag("genParticles",""),
genjetsCollection = cms.Inp... | [((194, 226), 'FWCore.ParameterSet.Config.InputTag', 'cms.InputTag', (['"""generatorSmeared"""'], {}), "('generatorSmeared')\n", (206, 226), True, 'import FWCore.ParameterSet.Config as cms\n'), ((256, 288), 'FWCore.ParameterSet.Config.InputTag', 'cms.InputTag', (['"""genParticles"""', '""""""'], {}), "('genParticles', ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.