code
stringlengths
9
256k
<s> from django . db import models <EOL> class Article ( models . Model ) : <EOL> text = models . TextField ( ) </s>
<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> import StringIO <EOL> from optparse import make_option <EOL> import warnings <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from django . core . management import call_command <EOL> from django import db <EOL> from django . ...
<s> from __future__ import absolute_import <EOL> from django . conf . urls import patterns , url <EOL> from . views import empty_view , bad_view <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , empty_view , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , bad_view , name = "<STR_LIT>" ) , <EOL> ...
<s> import datetime <EOL> import warnings <EOL> from django . test import TestCase <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from regressiontests . views . models import Article , UrlArticle <EOL> class CreateObjectTest ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> urls = '<STR_LIT...
<s> DATE_FORMAT = '<STR_LIT>' <EOL> TIME_FORMAT = '<STR_LIT>' <EOL> DATETIME_FORMAT = '<STR_LIT>' <EOL> YEAR_MONTH_FORMAT = '<STR_LIT>' <EOL> MONTH_DAY_FORMAT = '<STR_LIT>' <EOL> SHORT_DATE_FORMAT = '<STR_LIT>' <EOL> SHORT_DATETIME_FORMAT = '<STR_LIT>' <EOL> FIRST_DAY_OF_WEEK = <NUM_LIT:1> <EOL> DATE_INPUT_FORMATS = ( ...
<s> import operator <EOL> from functools import reduce <EOL> from django . core . exceptions import SuspiciousOperation , ImproperlyConfigured <EOL> from django . core . paginator import InvalidPage <EOL> from django . core . urlresolvers import reverse <EOL> from django . db import models <EOL> from django . db . mode...
<s> import warnings <EOL> from django . contrib . databrowse . sites import DatabrowsePlugin , ModelDatabrowse , DatabrowseSite , site <EOL> warnings . warn ( "<STR_LIT>" , DeprecationWarning ) </s>
<s> import re <EOL> from django import forms <EOL> from django . shortcuts import redirect <EOL> from django . core . urlresolvers import reverse <EOL> from django . forms import formsets , ValidationError <EOL> from django . views . generic import TemplateView <EOL> from django . utils . datastructures import SortedDi...
<s> from ctypes import c_void_p <EOL> from django . contrib . gis . gdal . error import GDALException <EOL> from django . utils import six <EOL> class GDALBase ( object ) : <EOL> """<STR_LIT>""" <EOL> _ptr = None <EOL> ptr_type = c_void_p <EOL> def _get_ptr ( self ) : <EOL> if self . _ptr : return self . _ptr <EOL> els...
<s> from django . contrib . gis import memoryview <EOL> from django . contrib . gis . geos . geometry import GEOSGeometry , wkt_regex , hex_regex <EOL> from django . utils import six <EOL> def fromfile ( file_h ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( file_h , six . string_types ) : <EOL> with open ( file_h , '<...
<s> from __future__ import absolute_import <EOL> from xml . dom import minidom <EOL> from django . conf import settings <EOL> from django . contrib . sites . models import Site <EOL> from django . test import TestCase <EOL> from . models import City <EOL> class GeoFeedTest ( TestCase ) : <EOL> urls = '<STR_LIT>' <EOL> ...
<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , unicode_literals <EOL> import re <EOL> from django . contrib . localflavor . it . it_province import PROVINCE_CHOICES <EOL> from django . contrib . localflavor . it . it_region import REGION_CHOICES <EOL> from django . contrib . localflavor . it . util ...
<s> from django . contrib . auth . models import User <EOL> from django . contrib . sites . models import Site <EOL> from django . core . cache import cache <EOL> from django . test import TestCase <EOL> class SitemapTestsBase ( TestCase ) : <EOL> protocol = '<STR_LIT:http>' <EOL> domain = '<STR_LIT>' if Site . _meta ....
<s> """<STR_LIT>""" <EOL> from functools import reduce <EOL> class DjangoRuntimeWarning ( RuntimeWarning ) : <EOL> pass <EOL> class ObjectDoesNotExist ( Exception ) : <EOL> "<STR_LIT>" <EOL> silent_variable_failure = True <EOL> class MultipleObjectsReturned ( Exception ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class Suspi...
<s> from __future__ import unicode_literals <EOL> from optparse import make_option <EOL> from django . core . management . base import AppCommand <EOL> from django . core . management . sql import sql_all <EOL> from django . db import connections , DEFAULT_DB_ALIAS <EOL> class Command ( AppCommand ) : <EOL> help = "<ST...
<s> try : <EOL> from itertools import zip_longest <EOL> except ImportError : <EOL> from itertools import izip_longest as zip_longest <EOL> from django . db . models . sql import compiler <EOL> class SQLCompiler ( compiler . SQLCompiler ) : <EOL> def resolve_columns ( self , row , fields = ( ) ) : <EOL> values = [ ] <EO...
<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db . backends import util <EOL> from django . utils import six <EOL> from django . utils import tree <EOL> class InvalidQuery ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class QueryWrapper ( object ) : <EOL> """<STR_LIT>"""...
<s> """<STR_LIT>""" <EOL> def fix_location_header ( request , response ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in response and request . get_host ( ) : <EOL> response [ '<STR_LIT>' ] = request . build_absolute_uri ( response [ '<STR_LIT>' ] ) <EOL> return response <EOL> def conditional_content_removal ( request ...
<s> from __future__ import unicode_literals <EOL> import sys <EOL> import os <EOL> import re <EOL> import mimetypes <EOL> from copy import copy <EOL> from io import BytesIO <EOL> try : <EOL> from urllib . parse import unquote , urlparse , urlsplit <EOL> except ImportError : <EOL> from urllib import unquote <EOL> from u...
<s> from django . utils . six . moves import html_parser as _html_parser <EOL> import re <EOL> import sys <EOL> current_version = sys . version_info <EOL> use_workaround = ( <EOL> ( current_version < ( <NUM_LIT:2> , <NUM_LIT:7> , <NUM_LIT:3> ) ) or <EOL> ( current_version >= ( <NUM_LIT:3> , <NUM_LIT:0> ) and current_ve...
<s> """<STR_LIT>""" <EOL> import logging <EOL> from calendar import timegm <EOL> from functools import wraps <EOL> from django . utils . decorators import decorator_from_middleware , available_attrs <EOL> from django . utils . http import http_date , parse_http_date_safe , parse_etags , quote_etag <EOL> from django . m...
<s> import copy <EOL> import sys <EOL> from django . core . management . validation import get_validation_errors <EOL> from django . db . models . loading import cache , load_app <EOL> from django . test . utils import override_settings <EOL> from django . utils import unittest <EOL> from django . utils . six import St...
<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils import six <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class Question ( models . Model ) : <EOL> text = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> @ python_2_unicode_compatible <EOL> class A...
<s> from __future__ import unicode_literals <EOL> import datetime <EOL> import os <EOL> import sys <EOL> import time <EOL> import warnings <EOL> from xml . dom . minidom import parseString <EOL> try : <EOL> import pytz <EOL> except ImportError : <EOL> pytz = None <EOL> from django . conf import settings <EOL> from djan...
<s> </s>
<s> from __future__ import unicode_literals <EOL> from io import BytesIO <EOL> from django . core . servers . basehttp import ServerHandler <EOL> from django . utils . unittest import TestCase <EOL> class DummyHandler ( object ) : <EOL> def log_request ( * args , ** kwargs ) : <EOL> pass <EOL> class FileWrapperHandler ...
<s> from __future__ import absolute_import <EOL> import datetime <EOL> from django . conf import settings <EOL> from django . db import backend , transaction , DEFAULT_DB_ALIAS , models <EOL> from django . test import TestCase , TransactionTestCase , skipUnlessDBFeature <EOL> from . models import ( Book , Award , Award...
<s> from django . views . generic . edit import UpdateView <EOL> from . models import Article <EOL> class ArticleFormView ( UpdateView ) : <EOL> model = Article <EOL> success_url = '<STR_LIT:/>' </s>
<s> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class School ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class Parent ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> c...
<s> from __future__ import unicode_literals <EOL> import datetime <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Place ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> ad...
<s> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Building ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> def __str__ ( self ) ...
<s> from __future__ import unicode_literals <EOL> from django import template <EOL> from django . utils . unittest import TestCase <EOL> class CallableVariablesTests ( TestCase ) : <EOL> def test_callable ( self ) : <EOL> class Doodad ( object ) : <EOL> def __init__ ( self , value ) : <EOL> self . num_calls = <NUM_LIT:...
<s> """<STR_LIT>""" <EOL> import copy <EOL> import pickle <EOL> import warnings <EOL> from django . test import SimpleTestCase <EOL> from django . utils . datastructures import ( DictWrapper , ImmutableList , <EOL> MultiValueDict , MultiValueDictKeyError , MergeDict , SortedDict ) <EOL> from django . utils import six <...
<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import os <EOL> import stat <EOL> import threading <EOL> from anyjson import simplejson <EOL> from client import Storage as BaseStorage <EOL> from client import Credentials <EOL> class Storage ( BaseStorage ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , fi...
<s> """<STR_LIT>""" <EOL> __docformat__ = "<STR_LIT>" <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def deprecated ( since = None , message = None ) : <EOL> """<STR_LIT>""" <EOL> def decorator ( func ) : <EOL> if since is None : <EOL> buf = '<STR_LIT>' % func . __name__ <EOL> else : <EOL> buf = '<STR_LIT>' % ( fu...
<s> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> import base64 <EOL> import socket <EOL> import struct <EOL> import sys <EOL> if getattr ( socket , '<STR_LIT>' , None ) is None : <EOL> raise ImportError ( '<STR_LIT>' ) <EOL> PROXY_TYPE_SOCKS4 = <NUM_LIT:1> <EOL> PROXY_TYPE_SOCKS5 = <NUM_LIT:2> <EOL> PROXY_TYPE_HTTP = <N...
<s> """<STR_LIT>""" <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> from jinja2 . environment import Environment , Template <EOL> from jinja2 . loaders import BaseLoader , FileSystemLoader , PackageLoader , DictLoader , FunctionLoader , PrefixLoader , ChoiceLoader , ModuleLoader <EOL> from jinja...
<s> """<STR_LIT>""" <EOL> import sys <EOL> import unittest <EOL> from jinja2 . testsuite import JinjaTestCase , filesystem_loader <EOL> from jinja2 import Environment , TemplateSyntaxError <EOL> env = Environment ( loader = filesystem_loader ) <EOL> class DebugTestCase ( JinjaTestCase ) : <EOL> if sys . version_info [ ...
<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import new <EOL> import sys <EOL> import urllib2 <EOL> from . import descriptor <EOL> from . import message_types <EOL> from . import messages <EOL> from . import protobuf <EOL> from . import remote <EOL> from . import util <EOL> __all__ = [ <EOL> '<STR_LIT>' , <...
<s> """<STR_LIT>""" <EOL> import re <EOL> import unittest <EOL> def Sorted ( lst ) : <EOL> """<STR_LIT>""" <EOL> sorted_list = lst [ : ] <EOL> sorted_list . sort ( ) <EOL> return sorted_list <EOL> def MultiLineEqual ( expected , actual ) : <EOL> """<STR_LIT>""" <EOL> if actual == expected : <EOL> return True <EOL> prin...
<s> from setuptools import Command <EOL> from distutils . errors import DistutilsOptionError <EOL> import sys <EOL> from pkg_resources import * <EOL> from unittest import TestLoader , main <EOL> class ScanningLoader ( TestLoader ) : <EOL> def loadTestsFromModule ( self , module ) : <EOL> """<STR_LIT>""" <EOL> tests = [...
<s> """<STR_LIT>""" <EOL> import time <EOL> from google . appengine . ext . ndb import model <EOL> from webapp2_extras import auth <EOL> from webapp2_extras import security <EOL> class Unique ( model . Model ) : <EOL> """<STR_LIT>""" <EOL> @ classmethod <EOL> def create ( cls , value ) : <EOL> """<STR_LIT>""" <EOL> ent...
<s> from webob . datetime_utils import * <EOL> from webob . request import * <EOL> from webob . response import * <EOL> from webob . util import html_escape <EOL> __all__ = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_L...
<s> """<STR_LIT>""" <EOL> from collections import MutableMapping <EOL> import binascii <EOL> import warnings <EOL> from webob . compat import ( <EOL> PY3 , <EOL> iteritems_ , <EOL> itervalues_ , <EOL> url_encode , <EOL> ) <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> class MultiDict ( ...
<s> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> from error import * <EOL> from nodes import * <EOL> import datetime <EOL> import binascii , re , sys , types <EOL> class ConstructorError ( MarkedYAMLError ) : <EOL> pass <EOL> class BaseConstructor ( object ) : <EOL> yaml_constructors ...
<s> import webapp2 <EOL> class MainHandler ( webapp2 . RequestHandler ) : <EOL> def get ( self ) : <EOL> self . response . write ( '<STR_LIT>' ) <EOL> app = webapp2 . WSGIApplication ( [ <EOL> ( '<STR_LIT:/>' , MainHandler ) <EOL> ] , debug = True ) </s>
<s> """<STR_LIT>""" <EOL> import os <EOL> import logging <EOL> APPSCALE_LOCATION = "<STR_LIT>" <EOL> DEBUG_MODE = False <EOL> FORCE_LOCAL = False <EOL> HTTP_OK = <NUM_LIT:200> <EOL> HTTP_DENIED = <NUM_LIT> <EOL> HTTP_NOTFOUND = <NUM_LIT> <EOL> HTTP_ERROR = <NUM_LIT> <EOL> MAX_LIMIT = <NUM_LIT> <EOL> MAX_STRING_LENGTH =...
<s> import boto <EOL> import boto . ec2 <EOL> from boto . ec2 . instance import Reservation <EOL> from boto . ec2 . keypair import KeyPair <EOL> from boto . ec2 . securitygroup import SecurityGroup <EOL> from flexmock import flexmock <EOL> from infrastructure_manager import InfrastructureManager <EOL> from utils import...
<s> import logging <EOL> import os <EOL> import subprocess <EOL> import sys <EOL> import time <EOL> import file_io <EOL> import misc <EOL> """<STR_LIT>""" <EOL> MONIT = "<STR_LIT>" <EOL> NUM_RETRIES = <NUM_LIT:10> <EOL> def run_with_retry ( args ) : <EOL> """<STR_LIT>""" <EOL> if args [ <NUM_LIT:0> ] != MONIT : <EOL> l...
<s> '''<STR_LIT>''' <EOL> from tkinter import Toplevel , StringVar , N , S , E , W , EW , messagebox <EOL> try : <EOL> from tkinter . ttk import Frame , Button , Label , Entry <EOL> except ImportError : <EOL> from ttk import Frame , Button , Label , Entry <EOL> from arelle . CntlrWinTooltip import ToolTip <EOL> from ar...
<s> """<STR_LIT>""" <EOL> from collections import defaultdict <EOL> import os , sys <EOL> from lxml import etree <EOL> import decimal <EOL> from arelle import ( XmlUtil , XbrlConst , XbrlUtil , UrlUtil , Locale , ModelValue , XmlValidate ) <EOL> from arelle . XmlValidate import UNVALIDATED , VALID <EOL> from arelle . M...
<s> '''<STR_LIT>''' <EOL> import tkinter . messagebox , webbrowser , os , threading <EOL> def checkForUpdates ( cntlr ) : <EOL> if not cntlr . webCache . workOffline : <EOL> import threading <EOL> thread = threading . Thread ( target = lambda c = cntlr : backgroundCheckForUpdates ( c ) ) <EOL> thread . daemon = True <E...
<s> '''<STR_LIT>''' <EOL> from arelle import ModelDocument , ViewFile <EOL> import os <EOL> def viewTests ( modelXbrl , outfile , cols = None ) : <EOL> modelXbrl . modelManager . showStatus ( _ ( "<STR_LIT>" ) ) <EOL> view = ViewTests ( modelXbrl , outfile , cols ) <EOL> view . viewTestcaseIndexElement ( modelXbrl . mo...
<s> '''<STR_LIT>''' <EOL> from __future__ import division <EOL> from arelle . XPathParser import ( VariableRef , QNameDef , OperationDef , RangeDecl , Expr , ProgHeader , <EOL> exceptionErrorIndication ) <EOL> from arelle import ( ModelXbrl , XbrlConst , XmlUtil ) <EOL> from arelle . ModelObject import ModelObject , Mo...
<s> '''<STR_LIT>''' <EOL> from os import path <EOL> from arelle . PluginManager import pluginClassMethods <EOL> from . import importTestImported1 <EOL> from . importTestImported1 import foo <EOL> def parentMenuEntender ( cntlr , menu ) : <EOL> menu . add_command ( label = "<STR_LIT>" , underline = <NUM_LIT:0> , command...
<s> '''<STR_LIT>''' <EOL> import os , json , zipfile , logging <EOL> jsonIndent = <NUM_LIT:1> <EOL> from decimal import Decimal <EOL> from lxml . etree import XML , XMLSyntaxError <EOL> from arelle import ModelDocument , ModelValue , XmlUtil <EOL> from arelle . ModelValue import qname <EOL> from arelle . PluginManager ...
<s> '''<STR_LIT>''' <EOL> from arelle import XbrlConst <EOL> def EFMlinkRoleURIstructure ( dts , roleURI ) : <EOL> relSet = dts . relationshipSet ( XbrlConst . parentChild , roleURI ) <EOL> dimMems = { } <EOL> priItems = set ( ) <EOL> for rootConcept in relSet . rootConcepts : <EOL> EFMlinkRoleDescendants ( relSet , ro...
<s> class _Events : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client = None ) : <EOL> self . client = client </s>
<s> from . helpers import * <EOL> class TestClientEvents ( ClientTestCase ) : <EOL> def test_events_get ( self ) : <EOL> res = { <EOL> "<STR_LIT:data>" : [ <EOL> { <EOL> "<STR_LIT:action>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : null , <EOL> "<STR_LIT>" : { "<STR_LIT:id>" : <NUM_LIT> , "<S...
<s> """<STR_LIT>""" <EOL> urlpatterns = [ ] </s>
<s> """<STR_LIT>""" <EOL> import functools <EOL> import collections <EOL> import itertools <EOL> from axelrod import update_history <EOL> from axelrod import Actions <EOL> from axelrod . strategies . cycler import Cycler <EOL> C , D = Actions . C , Actions . D <EOL> def detect_cycle ( history , min_size = <NUM_LIT:1> ,...
<s> """<STR_LIT>""" <EOL> import random <EOL> import axelrod <EOL> from . test_player import TestPlayer <EOL> C , D = axelrod . Actions . C , axelrod . Actions . D <EOL> class TestAverageCopier ( TestPlayer ) : <EOL> name = "<STR_LIT>" <EOL> player = axelrod . AverageCopier <EOL> expected_classifier = { <EOL> '<STR_LIT...
<s> """<STR_LIT>""" <EOL> import unittest <EOL> import axelrod <EOL> from axelrod import Game <EOL> from axelrod . strategies . memoryone import MemoryOnePlayer , LRPlayer <EOL> from . test_player import TestPlayer , test_four_vector <EOL> C , D = axelrod . Actions . C , axelrod . Actions . D <EOL> class TestWinStayLos...
<s> from drf_multiple_model . mixins import MultipleModelMixin <EOL> from rest_framework . generics import GenericAPIView <EOL> class MultipleModelAPIView ( MultipleModelMixin , GenericAPIView ) : <EOL> def get_queryset ( self ) : <EOL> return <EOL> def get ( self , request , * args , ** kwargs ) : <EOL> return self . ...
<s> from msrest . serialization import Model <EOL> class AccountListNodeAgentSkusOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filter = None , max_results = None , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None ) : <EOL> self . filter = filt...
<s> from msrest . serialization import Model <EOL> class CloudServiceConfiguration ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<ST...
<s> from msrest . serialization import Model <EOL> class FileGetFromTaskOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , ocp_range = None , if_modified_since = None , if_unmodified_since = None )...
<s> from msrest . serialization import Model <EOL> class JobReleaseTaskExecutionInformation ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT:state>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<S...
<s> from msrest . serialization import Model <EOL> class NodeDisableSchedulingParameter ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> } <EOL> def __init__ ( self , node_disable_scheduling_option = None ) : <EOL> ...
<s> from msrest . serialization import Model <EOL> class PoolStopResizeOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , if_match = None , if_none_match = None , if_modified_since = None , if_unmo...
<s> from msrest . serialization import Model <EOL> class TaskListOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filter = None , select = None , expand = None , max_results = None , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None ) : <EOL> self...
<s> import json <EOL> import os . path <EOL> from msrestazure . azure_active_directory import UserPassCredentials <EOL> from msrestazure . azure_active_directory import ServicePrincipalCredentials <EOL> _XPLAT_CLIENT_ID = '<STR_LIT>' <EOL> def get_credentials_from_username_password ( tenant , username , password ) : <E...
<s> from msrest . serialization import Model <EOL> class User ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_L...
<s> from msrest . paging import Paged <EOL> class RoleAssignmentPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL>...
<s> from msrest . serialization import Model <EOL> class BatchAccountCreateParameters ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:location>' : { '<STR_LIT:key>' : '<STR_LIT:location>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:...
<s> from msrest . paging import Paged <EOL> class EndpointPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL> } <EO...
<s> VERSION = "<STR_LIT>" </s>
<s> from msrest . serialization import Model <EOL> class NetworkProfile ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> } <EOL> def __init__ ( self , network_interfaces = None ) : <EOL> self . network_interfaces = ...
<s> from . sub_resource import SubResource <EOL> class VirtualMachineImageResource ( SubResource ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:name>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT:location>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key...
<s> from msrest . serialization import Model <EOL> class WinRMConfiguration ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> } <EOL> def __init__ ( self , listeners = None ) : <EOL> self . listeners = listeners </s>...
<s> from msrest . serialization import Model <EOL> class DataLakeStoreAccountInfo ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:name>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT:name>' : { '<STR_LIT:key>' : '<STR_LIT:name>' , '<STR_LIT:type>' : '<STR_LIT:str>' ...
<s> from msrest . serialization import Model <EOL> class USqlAssemblyFileInfo ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:type>' : { '<STR_LIT:key>' : '<STR_LIT:type>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:s...
<s> from . data_lake_analytics_job_management_client import DataLakeAnalyticsJobManagementClient , DataLakeAnalyticsJobManagementClientConfiguration <EOL> from . version import VERSION <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> __version__ = VERSION </s>
<s> from msrest . paging import Paged <EOL> class DataLakeStoreAccountPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' }...
<s> from msrest . serialization import Model <EOL> class ContentHash ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT:value>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT:str>...
<s> from msrest . paging import Paged <EOL> class WorkflowTriggerPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL...
<s> from msrest . serialization import Model <EOL> class ApplicationGatewaySku ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:name>' : { '<STR_LIT:key>' : '<STR_LIT:name>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>...
<s> from msrest . serialization import Model <EOL> class ExpressRouteCircuitsRoutesTableSummaryListResult ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:value>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , ...
<s> from . resource import Resource <EOL> class RouteTable ( Resource ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:name>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT:type>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key>' : '<STR_LIT:id>' , '<STR_LIT...
<s> from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> from msrestazure . azure_operation import AzureOperationPoller <EOL> import uuid <EOL> from . . import models <EOL> class NetworkInterfacesOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init_...
<s> from msrest . serialization import Model <EOL> class NamespaceResource ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key>' : '<STR_LIT:id>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT:location>' : { '<STR_LIT:key>' : '<STR_LIT:location>' , '<STR_LIT:type>...
<s> from msrest . serialization import Model <EOL> class RedisRegenerateKeyParameters ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> } <EO...
<s> from . management_locks_operations import ManagementLocksOperations <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> ] </s>
<s> from msrest . paging import Paged <EOL> class ResourceGroupPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL> ...
<s> from msrest . paging import Paged <EOL> class LocationPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL> } <EO...
<s> from msrest . serialization import Model <EOL> class JobHistoryDefinitionProperties ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True ...
<s> from msrest . serialization import Model <EOL> class Endpoints ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<...
<s> from msrest . serialization import Model <EOL> class AzureBlobStorageApplicationLogsConfig ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<ST...
<s> from msrest . serialization import Model <EOL> class DeploymentCollection ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:value>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT...
<s> from msrest . serialization import Model <EOL> class ManagedHostingEnvironmentCollection ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:value>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:typ...