text stringlengths 4 1.02M | meta dict |
|---|---|
from flask import request, render_template, jsonify
from flask.ext.classy import FlaskView
from app import app
import os
import util
from analyze import *
# Loads the model upfront from the pickle file
model = loadTFIDFModel(util.currentTerm, util.currentYear, True)
@app.route('/findSimilarCoursestoTerm', methods=[... | {
"content_hash": "967c8637cef21bea1163e35b440da8a4",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 64,
"avg_line_length": 23.490909090909092,
"alnum_prop": 0.6439628482972136,
"repo_name": "kqdtran/bearRec",
"id": "021cb93513734ef81613dc12455dcd2f2687eac9",
"size": "1292... |
""" Partially instantiate a variable font.
The module exports an `instantiateVariableFont` function and CLI that allow to
create full instances (i.e. static fonts) from variable fonts, as well as "partial"
variable fonts that only contain a subset of the original variation space.
For example, if you wish to pin the w... | {
"content_hash": "b4c6549ad57751e29d0e8ff2fd8ae102",
"timestamp": "",
"source": "github",
"line_count": 1406,
"max_line_length": 96,
"avg_line_length": 37.519203413940254,
"alnum_prop": 0.6523354564755839,
"repo_name": "fonttools/fonttools",
"id": "0b0c8349d15008f8ae313e4b9809d2abb33097e2",
"size":... |
"""
Sample Rule
===========
This is a simple rule and can be run against the local host
using the following command::
$ insights-run -p examples.rules.sample_script
or from the examples/rules directory::
$ ./sample_rules.py
"""
from insights.core.plugins import make_fail, make_pass, rule
from insights.parse... | {
"content_hash": "9c9e62ab41c9c505242f2aa38fbd6d3b",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 62,
"avg_line_length": 24.705882352941178,
"alnum_prop": 0.694047619047619,
"repo_name": "RedHatInsights/insights-core",
"id": "7b574b8531a359fcf1ff3f2872f7c12b6c4c8a1c",
"... |
from threading import current_thread
_requests = {}
def current_user():
t = current_thread()
if t not in _requests:
return None
return _requests[t].user
class RequestMiddleware(object):
def process_request(self, request):
_requests[current_thread()] = request
| {
"content_hash": "127d0dd5f99784110097a3cf171e08cd",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 45,
"avg_line_length": 22.692307692307693,
"alnum_prop": 0.6677966101694915,
"repo_name": "cscanlin/munger-builder",
"id": "2932e7d525a5949548ea0b2f4e1cbe6c0f2a97d4",
"size... |
"""Classes to handle Unix style, MMDF style, and MH style mailboxes."""
import rfc822
import os,string
import re
__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
class _Mailbox:
def __init__(self, fp, factory=rfc822.Message):
self.fp = fp
self.seekp = 0
self.f... | {
"content_hash": "00f2ea5648d102d0b3d9861c89c00553",
"timestamp": "",
"source": "github",
"line_count": 339,
"max_line_length": 79,
"avg_line_length": 29.926253687315633,
"alnum_prop": 0.5212419911286348,
"repo_name": "jeske/csla",
"id": "0d7f432ad61b3c06335f5b4d76df4d36554e1a11",
"size": "10169",
... |
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
import ddt
import mock
from oslo_config import cfg
import six
import time
from eventlet import greenthread
from manila import exception
from manila.share.drivers.qnap import api
from manila.share.drivers.qnap impor... | {
"content_hash": "734750a3d280ea2420265b859b29c150",
"timestamp": "",
"source": "github",
"line_count": 1510,
"max_line_length": 79,
"avg_line_length": 42.4158940397351,
"alnum_prop": 0.5932113414938796,
"repo_name": "bswartz/manila",
"id": "8e5974a718c3b18b169cbd19696a4fb4e91b7ce8",
"size": "64687... |
import json
import socket
import atexit
import datetime
import time
import re
import random
import psycopg2
from flask import Flask, Response
from flask_limiter import Limiter
from flask import render_template, request, g, session, send_from_directory, jsonify
app = Flask(__name__)
limiter = Limiter(app, global_limits=... | {
"content_hash": "0c9a526ca20f004310126a5a8b49a6c0",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 108,
"avg_line_length": 26.643835616438356,
"alnum_prop": 0.5604113110539846,
"repo_name": "wsdookadr/news",
"id": "15ad8d78a717ffcb4d88699c96e9ab1b1b31a738",
"size": "391... |
from . import PGui
import weakref
class PControllerBlock(PGui):
_PControllerBlockClass = None
def __init__(self):
self._pControllerBlock = self._PControllerBlockClass(self)
self._workermanager = None
self._pwindow = None
self._workerid = None
self._block = None
de... | {
"content_hash": "613c4b6506ca90d6e4c9a8685d25c78f",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 80,
"avg_line_length": 33.63,
"alnum_prop": 0.6122509663990485,
"repo_name": "agoose77/hivesystem",
"id": "ec02b7a788b19e87821b16640430bdf5aeef0555",
"size": "3363",
"bi... |
from sys import argv
script, filename = argv
txt = open(filename)
print("Here's your file {!r}:".format(filename))
print(txt.read())
print("Type the filename again:")
file_again = input("> ")
txt_again = open(file_again)
print(txt_again.read())
txt.close()
txt_again.close()
| {
"content_hash": "c7992da89ecc29557f5c9ccb489af7fb",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 48,
"avg_line_length": 15.666666666666666,
"alnum_prop": 0.6843971631205674,
"repo_name": "alexliew/learn_python_the_hard_way",
"id": "bbb71393e246ae0dbb796c6c212389593813b48... |
import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="size", parent_name="surface.contours.x", **kwargs):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | {
"content_hash": "8f547109a7ea9048e97b6ed20b76c84d",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 87,
"avg_line_length": 36.416666666666664,
"alnum_prop": 0.6018306636155606,
"repo_name": "plotly/plotly.py",
"id": "2cee0c21065438cbd28c6e2cce9f08a306be8452",
"size": "437... |
import time
EVENT_TYPES={
"dummy":"ps:testing:dummy"
}
class Probe:
"""
Dummy probe that just sleeps and returns 1
"""
def __init__(self, service, measurement):
self.config = measurement["configuration"]
self.duration = self.config.get("schedule_params", {}).get("duration", 0)
... | {
"content_hash": "1f4e50d86f55ede40cabf87ed5a91212",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 81,
"avg_line_length": 22,
"alnum_prop": 0.6100478468899522,
"repo_name": "periscope-ps/blipp",
"id": "943b3f02b5809012fae0f1ddb09bba60bd0f3709",
"size": "932",
"binary":... |
import numpy as np
import random
class Agent(object):
""" Generic Reinforcement learner. Will use Q learning, dyna Q, and some custom additions.
(Initially based on the template for the Machine Learning for Trading course, by Tucker Balch)"""
def __init__(self,
num_states,
... | {
"content_hash": "97967ec3b4350044bf15d9acfd93a0bb",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 120,
"avg_line_length": 34.909574468085104,
"alnum_prop": 0.5663568490019808,
"repo_name": "mtasende/Machine-Learning-Nanodegree-Capstone",
"id": "dbfe19bb115a1d3056d3f43014... |
NOTIFICATIONS_MAPPING = {
'notifications_get': {
'resource': 'notifications.json',
'docs': ('http://docs.discourse.org/#tag/'
'Notifications%2Fpaths%2F~1notifications.json%2Fget'),
'methods': ['GET'],
},
}
| {
"content_hash": "b5b193320cf63240740ea8b69f32d1b2",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 71,
"avg_line_length": 31.875,
"alnum_prop": 0.5607843137254902,
"repo_name": "humrochagf/tapioca-discourse",
"id": "d1845796686fc9299f212635c6fbef2aad969df8",
"size": "280"... |
from __future__ import absolute_import
from celery import current_task
from time import sleep
from datetime import datetime
from celeryproj.celery import celery
from formdata.utils.filing_body_processor import process_filing_body
from formdata.utils.dump_utils import dump_filing_sked, dump_committee_sked, dump_candi... | {
"content_hash": "0ff34dac4e40d137e001ba2dd545a871",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 96,
"avg_line_length": 34.08571428571429,
"alnum_prop": 0.6851075719474714,
"repo_name": "sunlightlabs/read_FEC",
"id": "5fdd4149826a0db7b65f92dc3cfd602542db325a",
"size":... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace SeriesNamer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | {
"content_hash": "afe817bac6a09a0a23810af4113b00e7",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 65,
"avg_line_length": 22.80952380952381,
"alnum_prop": 0.5970772442588727,
"repo_name": "madeso/prettygood",
"id": "fa249185d3186620b33827dc5e2897d3e9c44ddd",
"size": "481... |
"""
conpaas.core.clouds.dummy
=========================
ConPaaS core: Dummy cloud IaaS code.
:copyright: (C) 2010-2013 by Contrail Consortium.
"""
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
from .base import Cloud
class DummyCloud(Cloud):
'''S... | {
"content_hash": "3f12eba6d63cb1b38635a9477fd8176d",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 76,
"avg_line_length": 26.903846153846153,
"alnum_prop": 0.6047176554681916,
"repo_name": "mihaisoloi/conpaas",
"id": "1ad65e70cb729c0b6bae4d9b641ba7fd9ef04d10",
"size": "1... |
"""A set of Python 3 function annotation tools supporting Python 2.4 and up.
* Non-declarative syntax. (Decorators or annotations.)
* No i18n.
* Zero docstrings; comments in Chinese.
* Single monolithic file.
* README is only documentation.
* Estimates: 310 SLoC…
"""
from __future__ import unicode_literals
from box... | {
"content_hash": "867edf6d97983c815da64f059e635ccc",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 101,
"avg_line_length": 24.275,
"alnum_prop": 0.729145211122554,
"repo_name": "marrow/schema",
"id": "f37d5d912a05bb8111d0e05869c9c652723b32c8",
"size": "992",
"binary": ... |
import glob, os, sys
from collections import Counter
def load_files(folder):
"""Load all text files in folder and return character histogram data and
files contaning blocked characters."""
print("Working on %s" % folder)
# List files containing these chars
blockchars = "©£€»þ"
blockfiles = ... | {
"content_hash": "c17e6177eaa1fb5a2e51c465fa73b4fb",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 76,
"avg_line_length": 23.5609756097561,
"alnum_prop": 0.567287784679089,
"repo_name": "Kungbib/CIPAC",
"id": "c15bf7cdad52a9bf4ec8ad5614d5f9ee35859de5",
"size": "1052",
... |
from tempest.api.volume import base
from tempest.common.utils import data_utils
from tempest.openstack.common import log as logging
from tempest.test import attr
LOG = logging.getLogger(__name__)
class VolumesSnapshotTest(base.BaseVolumeTest):
_interface = "json"
@classmethod
def setUpClass(cls):
... | {
"content_hash": "d5a65ef48d3719e0d5a488c4c53e992e",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 79,
"avg_line_length": 43.21904761904762,
"alnum_prop": 0.6313353900396651,
"repo_name": "adkerr/tempest",
"id": "895e69007d4f42058a4ea3c9515c3d4c34fb4d7e",
"size": "5156"... |
from datetime import date, datetime
import re
from juriscraper.OpinionSite import OpinionSite
from lxml import html
class Site(OpinionSite):
def __init__(self):
super(Site, self).__init__()
self.court_id = self.__module__
self.year = date.today().year
self.regex = re... | {
"content_hash": "135300bfcf2ff74d36e89ad41c06d8ce",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 123,
"avg_line_length": 40.701149425287355,
"alnum_prop": 0.4990115786500988,
"repo_name": "brianwc/juriscraper",
"id": "6082f3c40abd548d2fd2e55d5a8e7991aee75aa8",
"size": ... |
import os
import uuid
import somaticseq.utilities.split_Bed_into_equal_regions as split_bed
from somaticseq._version import __version__ as VERSION
from pathlib import Path
DOCKER_IMAGES = { 'somaticseq_image' : 'lethalfang/somaticseq:{}'.format(VERSION),
'scalpel_image' : 'leth... | {
"content_hash": "a8dd2c915d4bf233f56f7d9d10ad8de7",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 191,
"avg_line_length": 44.57142857142857,
"alnum_prop": 0.5275641025641026,
"repo_name": "bioinform/somaticseq",
"id": "8cfb3f1be78d5da7bf2dfba4be0bb73720dbccd9",
"size": ... |
from django.conf.urls import patterns, url
from app import views
urlpatterns = patterns(
'',
url(r'^$', views.app, name='app'),
)
| {
"content_hash": "b7c768a1ed78177a94744d1537dc5628",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 42,
"avg_line_length": 19.857142857142858,
"alnum_prop": 0.6546762589928058,
"repo_name": "1vasari/Guitar-Practice-App",
"id": "187d9b6f442a9e6333fa0fbfd612ebd5990edd5e",
"s... |
from flask_marshmallow.fields import URLFor
from marshmallow.fields import Boolean, Method
from mass_flask_api.config import api_blueprint
from mass_flask_api.schemas.base import BaseSchema, ForeignReferenceField
from mass_flask_core.models import AnalysisSystemInstance, AnalysisSystem, ScheduledAnalysis
class Analy... | {
"content_hash": "e50f17bc4299640d695ceeb89012d6f8",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 149,
"avg_line_length": 41.42857142857143,
"alnum_prop": 0.7336206896551725,
"repo_name": "mass-project/mass_server",
"id": "cba19b34d91734a9047efb37933a4c9238d065bf",
"siz... |
'''
check the global_config category is image
@author YeTian 2018-09-20
'''
import zstackwoodpecker.test_util as test_util
#import test_stub
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.operations.config_operations as conf_ops
def test():
global deft_image_1
global deft_image_2
g... | {
"content_hash": "71a6a7a4ee44c8705a1fc44fc24a2186",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 91,
"avg_line_length": 38.234042553191486,
"alnum_prop": 0.7100723427935448,
"repo_name": "zstackio/zstack-woodpecker",
"id": "7dcc7ba82ff4085009a55fb5dedfdb260e86659a",
"s... |
from nova import test
class GraniteTestHostOps(test.TestCase):
def setUp(self):
super(GranitetestHostOps, self).setUp()
| {
"content_hash": "72faf6c87e22b9833e17c0d76d37ff1a",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 47,
"avg_line_length": 26.6,
"alnum_prop": 0.7293233082706767,
"repo_name": "smoser/granite",
"id": "c2e8240f00bbff00e42bdb1a81722b27d3e21a1a",
"size": "133",
"binary": fa... |
"""
This file is part of Python Twofish
a Python bridge to the C Twofish library by Niels Ferguson
Released under The BSD 3-Clause License
Copyright (c) 2013 Keybase
setup.py - build and package info
"""
from distutils.core import setup, Extension
twofish_module = Extension('_twofish',
sou... | {
"content_hash": "a91e85686cb4d50c20af0097e958b27a",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 78,
"avg_line_length": 38.1764705882353,
"alnum_prop": 0.5909090909090909,
"repo_name": "keybase/python-twofish",
"id": "fcc95465ad9172cf1e7cc3e5201b815a65311cea",
"size": ... |
"""Device drivers for the weewx weather system."""
import syslog
import weewx
class AbstractDevice(object):
"""Device drivers should inherit from this class."""
@property
def hardware_name(self):
raise NotImplementedError("Property 'hardware_name' not implemented")
@property
def ... | {
"content_hash": "c4af06e9a0652f341b4275b55cc0f079",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 81,
"avg_line_length": 34.50757575757576,
"alnum_prop": 0.6489571899012074,
"repo_name": "tony-rasskazov/meteo",
"id": "7e134647dfff3b68b210f1a278cdf57b644783ec",
"size": ... |
import logging
import unittest
"""EquiLeader (https://codility.com/demo/take-sample-test/equi_leader/)
Analysis:
- Find leader in O(n) and count_leader (https://codility.com/media/train/6-Leader.pdf)
- identify count_leader_left is valid and count_leader-count_leader_left is valid
"""
__author__ = 'au9ustin... | {
"content_hash": "aa9fd6455248b44942c2d4723d9e7242",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 91,
"avg_line_length": 29.17543859649123,
"alnum_prop": 0.5790739627179795,
"repo_name": "au9ustine/org.au9ustine.puzzles.codility",
"id": "d14040760315633d54119ea88e27a4ff7c... |
from datetime import datetime
import math
from flask import (
Flask,
abort,
flash,
redirect,
render_template,
request,
url_for,
)
from flask.ext.stormpath import (
StormpathError,
StormpathManager,
User,
login_required,
login_user,
logout_user,
user,
)
app = Fl... | {
"content_hash": "42af234096e25c08b70961e4a3312bb1",
"timestamp": "",
"source": "github",
"line_count": 315,
"max_line_length": 112,
"avg_line_length": 28.650793650793652,
"alnum_prop": 0.6086426592797783,
"repo_name": "omnipharious/InternWeekenders",
"id": "a4e7be83d26e2602222af9ec0d72e6a9c5325132",... |
from flask import render_template, abort, redirect, flash, url_for, request, current_app, make_response
from flask.ext.login import login_required, current_user
from . import main
from .forms import EditProfileForm, EditProfileAdminForm, PostForm, CommentForm
from .. import db
from ..models import Role, User, Post, Per... | {
"content_hash": "572cbb76bf0e0e542146fedc973f54f9",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 103,
"avg_line_length": 40.48717948717949,
"alnum_prop": 0.650538315389487,
"repo_name": "chestnutme/flaskie",
"id": "41b8c3607c95fa81233d360df5b4cc9e5ecbecf2",
"size": "7... |
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from test_framework.script import *
from test_framework.mininode import *
from test_framework.blocktools import *
COIN = 100000000
SEQUENCE_LOCKTIME_DISABLE_FLAG = (1<<31)
SEQUENCE_LOCKTIME_TYPE_FLAG = (1<<22) # this means... | {
"content_hash": "4b0456de14bb2552300ad0c155559307",
"timestamp": "",
"source": "github",
"line_count": 420,
"max_line_length": 136,
"avg_line_length": 43.707142857142856,
"alnum_prop": 0.6108841313940186,
"repo_name": "BTCfork/hardfork_prototype_1_mvf-core",
"id": "9533271db7d3634c5ffd6a1e81c0eea119... |
import sys
import json
from soma_workflow.client import Job, Workflow, Helper
# args
all_jobs_file = sys.argv[1]
method_file = sys.argv[2]
workflow_file = sys.argv[3]
with open(method_file, 'r') as f:
method_cfg = json.load(f)
try:
test = method_cfg["model.inner.reducer"]
except:
method_cfg["model.inner.re... | {
"content_hash": "d914be3477335c204599e3151a0e051b",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 72,
"avg_line_length": 34.3134328358209,
"alnum_prop": 0.5506742061765986,
"repo_name": "vguillemot/multiblox",
"id": "218bb1bcb65078c1594da8e506d79daa99a47b35",
"size": "2... |
__author__ = 'saeedamen'
from chartpy.chart import Chart
from chartpy.style import Style
from chartpy.canvas import Canvas
from chartpy.chartconstants import ChartConstants
from chartpy.twitter import Twitter
| {
"content_hash": "efc05837a2e75e6a62482d1a57c7c9da",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 49,
"avg_line_length": 30,
"alnum_prop": 0.8285714285714286,
"repo_name": "cuemacro/chartpy",
"id": "9d67d91f6844786c8bf5b84f3c6a90ee733b9574",
"size": "210",
"binary": fa... |
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.views.generic import TemplateView
from srd20.models import Spell, Feat, Monster
def spell_detail(request, slug):
spell = get_object_or_404(Spell, altname=slug)
return render_to_response('b... | {
"content_hash": "70a0cedfdf61696d6833288ae1c89a09",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 70,
"avg_line_length": 30.609756097560975,
"alnum_prop": 0.6478087649402391,
"repo_name": "machinalis/django-srd20",
"id": "97cafda9e1bad2f968cb1814f921d78e104c56ad",
"size... |
""" Unittests for nodes.preprocessing """
| {
"content_hash": "9240f41fb72a9ec1c90a7da1e216925d",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 41,
"avg_line_length": 42,
"alnum_prop": 0.7142857142857143,
"repo_name": "pyspace/pyspace",
"id": "beade6313c0b323e9dd556d3fcb18784ee3825cd",
"size": "42",
"binary": fals... |
from .base import * # NOQA
import logging.config
# For security and performance reasons, DEBUG is turned off
DEBUG = False
# Must mention ALLOWED_HOSTS in production!
ALLOWED_HOSTS = ['pycontw.krdai.info', 'tw.pycon.org']
# Override static and media URL for prefix in WSGI server.
# https://code.djangopro... | {
"content_hash": "aeac6a615d85fa6ce4b3fc6e446f290e",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 61,
"avg_line_length": 26.297520661157026,
"alnum_prop": 0.5760527969830296,
"repo_name": "uranusjr/pycontw2016",
"id": "cab2eb48661be050020292961ae95aa0d5e4476b",
"size":... |
import sys
import os
import logging
import numpy as np
from click.testing import CliRunner
import rasterio
from rasterio.rio.main import main_group
from rasterio.rio.convert import convert
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
TEST_BBOX = [-11850000, 4804000, -11840000, 4808000]
def test_cli... | {
"content_hash": "705220cb20e1275a833ebff7c468117c",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 78,
"avg_line_length": 33.101063829787236,
"alnum_prop": 0.6090310139803953,
"repo_name": "kapadia/rasterio",
"id": "b2446a5f62c4533ec2de7b08cc0f7d0a085aba64",
"size": "62... |
from __future__ import unicode_literals, print_function, division
__author__ = "mozman <mozman@gmx.at>"
import unittest
from ezodf2.xmlns import CN, etree
from ezodf2.tableutils import get_table_rows, get_min_max_cell_count
# objects to test
from ezodf2.tablenormalizer import normalize_table
def get_nrow... | {
"content_hash": "b0e92b1ea18097809ce0a5a8a75d1b5d",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 147,
"avg_line_length": 40.67484662576687,
"alnum_prop": 0.6808446455505279,
"repo_name": "iwschris/ezodf2",
"id": "7b9b6d5f0ca9cf99e3e364e22c1f3fdc0172454b",
"size": "678... |
""" support for skip/xfail functions and markers. """
import os
import sys
import traceback
import py
import pytest
from _pytest.mark import MarkInfo, MarkDecorator
def pytest_addoption(parser):
group = parser.getgroup("general")
group.addoption('--runxfail',
action="store_true", dest="runxfail", ... | {
"content_hash": "b8192ba77f66012ad79d4d6b206b10c7",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 84,
"avg_line_length": 36.312,
"alnum_prop": 0.571271205111258,
"repo_name": "vicky2135/lucious",
"id": "91a34169f620ebd8d1aa2ca2cfa4be330c970aee",
"size": "13617",
"bin... |
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineRespo... | {
"content_hash": "a6caf029de5aec0093e4d09cc8517a1e",
"timestamp": "",
"source": "github",
"line_count": 804,
"max_line_length": 261,
"avg_line_length": 49.17412935323383,
"alnum_prop": 0.6600819506272764,
"repo_name": "Azure/azure-sdk-for-python",
"id": "9a564c859a1c77cc6c71d92ee5f89b49a4cb001a",
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.