code stringlengths 9 256k |
|---|
<s> from . state import EOF <EOL> from . tokens import TokenEof <EOL> from . tokens_base import TOKEN_COMMAND_TAB_PREV_COMMAND <EOL> from . tokens_base import TokenOfCommand <EOL> from Vintageous import ex <EOL> @ ex . command ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> class TokenTabPrevCommand ( TokenOfCommand ) : <EOL> def ... |
<s> from collections import Counter <EOL> import sublime <EOL> from Vintageous import PluginLogger <EOL> from Vintageous import NullPluginLogger <EOL> from Vintageous . vi import cmd_base <EOL> from Vintageous . vi import cmd_defs <EOL> from Vintageous . vi import settings <EOL> from Vintageous . vi import utils <EOL> ... |
<s> from collections import namedtuple <EOL> from Vintageous . vi . utils import modes <EOL> from Vintageous . tests import set_text <EOL> from Vintageous . tests import add_sel <EOL> from Vintageous . tests import get_sel <EOL> from Vintageous . tests import first_sel <EOL> from Vintageous . tests import second_sel <E... |
<s> from collections import namedtuple <EOL> from Vintageous . tests import ViewTest , region2rowcols <EOL> from Vintageous . vi . text_objects import find_paragraph_text_object <EOL> TEXT = '''<STR_LIT>''' . lstrip ( ) <EOL> test_data = namedtuple ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> ALL_CASES = ( <EOL> test_data ( [ (... |
<s> import sublime <EOL> import itertools <EOL> REG_UNNAMED = '<STR_LIT:">' <EOL> REG_SMALL_DELETE = '<STR_LIT:->' <EOL> REG_BLACK_HOLE = '<STR_LIT:_>' <EOL> REG_LAST_INSERTED_TEXT = '<STR_LIT:.>' <EOL> REG_FILE_NAME = '<STR_LIT:%>' <EOL> REG_ALT_FILE_NAME = '<STR_LIT:#>' <EOL> REG_EXPRESSION = '<STR_LIT:=>' <EOL> REG_... |
<s> import json <EOL> import os <EOL> import queue <EOL> import threading <EOL> import time <EOL> from collections import defaultdict <EOL> from datetime import datetime <EOL> from subprocess import PIPE <EOL> from subprocess import Popen <EOL> import sublime <EOL> from Dart . sublime_plugin_lib import PluginLogger <EO... |
<s> import sublime <EOL> import sublime_plugin <EOL> import os <EOL> import unittest <EOL> import contextlib <EOL> import threading <EOL> from Dart . sublime_plugin_lib . panels import OutputPanel <EOL> class RunDartTests ( sublime_plugin . WindowCommand ) : <EOL> '''<STR_LIT>''' <EOL> @ contextlib . contextmanager <EO... |
<s> import copy <EOL> from steel . common import data <EOL> NotProvided = object ( ) <EOL> class Argument : <EOL> def __init__ ( self , positional = False , resolve_field = False , ** kwargs ) : <EOL> self . resolve_field = resolve_field <EOL> if '<STR_LIT:default>' in kwargs : <EOL> self . default = kwargs . pop ( '<S... |
<s> from django . contrib . auth import views <EOL> from django . contrib . auth . decorators import login_required , user_passes_test <EOL> from django . contrib . auth import get_user_model <EOL> from django . http import HttpResponse <EOL> from django . shortcuts import get_object_or_404 , render <EOL> import json <... |
<s> from __future__ import absolute_import <EOL> import os <EOL> from celery import Celery <EOL> from django . conf import settings <EOL> os . environ . setdefault ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> app = Celery ( '<STR_LIT>' ) <EOL> app . config_from_object ( '<STR_LIT>' ) <EOL> app . autodiscover_tasks ( lambda : se... |
<s> from chatterbot . adapters . io import IOAdapter <EOL> from chatterbot . conversation import Statement <EOL> class JsonAdapter ( IOAdapter ) : <EOL> """<STR_LIT>""" <EOL> def process_input ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not args : <EOL> raise TypeError ( <EOL> "<STR_LIT>" <EOL> ) <EO... |
<s> import importlib <EOL> def import_module ( dotted_path ) : <EOL> """<STR_LIT>""" <EOL> module_parts = dotted_path . split ( "<STR_LIT:.>" ) <EOL> module_path = "<STR_LIT:.>" . join ( module_parts [ : - <NUM_LIT:1> ] ) <EOL> module = importlib . import_module ( module_path ) <EOL> return getattr ( module , module_pa... |
<s> class StorageIntegrationTests ( object ) : <EOL> def test_database_is_updated ( self ) : <EOL> """<STR_LIT>""" <EOL> input_text = "<STR_LIT>" <EOL> exists_before = self . chatbot . storage . find ( input_text ) <EOL> response = self . chatbot . get_response ( input_text ) <EOL> exists_after = self . chatbot . stora... |
<s> from __future__ import division , print_function , absolute_import <EOL> from . extraction import extract_sparse , extract , load_classifier <EOL> from . color import match_lightness <EOL> from . import image <EOL> VERSION = ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:4> ) <EOL> ISRELEASED = False <EOL> __version__ = '<... |
<s> from PIL import Image , ImageDraw <EOL> from collections import Counter , OrderedDict <EOL> from pynes import write_bin_code <EOL> import sprite <EOL> import nametable <EOL> from sprite import SpriteSet <EOL> from pynes . tests import show_sprite <EOL> palette = [ <EOL> ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ,... |
<s> import unittest <EOL> from pynes . tests import ComposerTestCase <EOL> class ComposerConditionalTest ( ComposerTestCase ) : <EOL> def test_if_main ( self ) : <EOL> ( <EOL> self . assert_asm_without_ines_from ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) <EOL> ) <EOL> def test_if_true ( self ) : <EOL> ( <EOL> self .... |
<s> '''<STR_LIT>''' <EOL> import unittest <EOL> from pynes . compiler import lexical , syntax , semantic <EOL> class OraTest ( unittest . TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_ora_imm ( self ) : <EOL> tokens = list ( lexical ( '<STR_LIT>' ) ) <EOL> self . assertEquals ( <NUM_LIT:2> , len ( tokens ) ) <EOL> ... |
<s> """<STR_LIT>""" <EOL> import ast <EOL> import faker <EOL> import faker . generator <EOL> import wrapt <EOL> def _str_to_data ( string ) : <EOL> try : <EOL> return ast . literal_eval ( str ( string ) . strip ( ) ) <EOL> except Exception : <EOL> return string <EOL> @ wrapt . decorator <EOL> def _str_vars_to_data ( f ... |
<s> from rsstail . formatter import Formatter <EOL> def test_placeholder_style_detect ( ) : <EOL> f = Formatter ( '<STR_LIT>' , None ) <EOL> assert f . placeholder_style == f . PH_NEW <EOL> f = Formatter ( '<STR_LIT>' , None ) <EOL> assert f . placeholder_style == f . PH_OLD <EOL> f = Formatter ( '<STR_LIT>' , None ) <... |
<s> """<STR_LIT>""" <EOL> from flask import Blueprint <EOL> class APIBlueprint ( Blueprint ) : <EOL> class InheritanceError ( Exception ) : pass <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> self . routes_to_views_map = { } <EOL> self . inherit_from = kwargs . pop ( '<STR_LIT>' , None ) <EOL> self . remappin... |
<s> from django . test import TestCase <EOL> from ui . templatetags . launchpad_extras import clean_lccn <EOL> class CleanLccnTest ( TestCase ) : <EOL> examples = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EO... |
<s> from django import forms <EOL> from django . contrib . auth . models import Group <EOL> from django . core . urlresolvers import reverse <EOL> from django . utils import timezone <EOL> from crispy_forms . helper import FormHelper <EOL> from crispy_forms . layout import Layout , Fieldset , Button , Submit <EOL> from... |
<s> from optparse import make_option <EOL> from django . core . management . base import BaseCommand <EOL> from ui . models import TwitterFilter <EOL> from ui . utils import create_conf_file <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> option_list = BaseCommand . option_list + ( <EOL> make_optio... |
<s> import datetime <EOL> from south . db import db <EOL> from south . v2 import SchemaMigration <EOL> from django . db import models <EOL> class Migration ( SchemaMigration ) : <EOL> def forwards ( self , orm ) : <EOL> db . add_column ( u'<STR_LIT>' , '<STR_LIT>' , <EOL> self . gf ( '<STR_LIT>' ) ( default = '<STR_LIT... |
<s> import os <EOL> import os . path <EOL> import sys <EOL> import subprocess <EOL> import re <EOL> import tempfile <EOL> import threading <EOL> from util import * <EOL> FILE_ADDED = '<STR_LIT:A>' <EOL> FILE_MODIFIED = '<STR_LIT:M>' <EOL> FILE_DELETED = '<STR_LIT:D>' <EOL> FILE_COPIED = '<STR_LIT:C>' <EOL> FILE_RENAMED... |
<s> from flask import Blueprint <EOL> main = Blueprint ( '<STR_LIT>' , __name__ ) <EOL> from . import views , errors </s>
|
<s> import datetime <EOL> from south . db import db <EOL> from south . v2 import DataMigration <EOL> from django . db import models <EOL> class Migration ( DataMigration ) : <EOL> no_dry_run = True <EOL> def forwards ( self , orm ) : <EOL> "<STR_LIT>" <EOL> if not db . dry_run : <EOL> for c in orm . Contract . objects ... |
<s> from __future__ import print_function , division <EOL> from datetime import date , datetime <EOL> from time import time <EOL> import ftplib <EOL> import subprocess <EOL> from sys import argv , exit , stdout , version_info <EOL> if version_info [ <NUM_LIT:0> ] < <NUM_LIT:3> : <EOL> from urllib2 import urlopen <EOL> ... |
<s> from setuptools import setup , find_packages <EOL> import os <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> url = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> long_description = os . path . join ( os . path . dirn... |
<s> import sys <EOL> import os . path <EOL> sys . path . append ( os . path . abspath ( __file__ + "<STR_LIT>" ) ) <EOL> import windows <EOL> system = windows . system <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" . format ( system . version ) ) <EOL> print ( "<STR_LIT>" . format ( system . bitness ) ) <EOL> pr... |
<s> from sklearn import feature_extraction <EOL> data = [ { "<STR_LIT>" : <NUM_LIT> , "<STR_LIT>" : '<STR_LIT>' , "<STR_LIT>" : True } , <EOL> { "<STR_LIT>" : <NUM_LIT> , "<STR_LIT>" : '<STR_LIT>' , "<STR_LIT>" : False } , <EOL> { "<STR_LIT>" : <NUM_LIT> , "<STR_LIT>" : '<STR_LIT>' , "<STR_LIT>" : True } , <EOL> { "<ST... |
<s> """<STR_LIT>""" <EOL> import functools <EOL> import json <EOL> import os <EOL> import re <EOL> from urlparse import urlparse , urljoin <EOL> from cycledash import db <EOL> from common . helpers import tables , to_epoch <EOL> from flask import jsonify , request , url_for , redirect <EOL> import flask_restful , flask... |
<s> from __future__ import print_function , division , absolute_import <EOL> from collections import namedtuple <EOL> class AlleleParseError ( Exception ) : <EOL> pass <EOL> SPECIES_PREFIXES = dict ( <EOL> human = "<STR_LIT>" , <EOL> cattle = "<STR_LIT>" , <EOL> bison = "<STR_LIT>" , <EOL> dog = "<STR_LIT>" , <EOL> she... |
<s> from nose . tools import eq_ <EOL> from mhctools import RandomBindingPredictor <EOL> alleles = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] <EOL> predictor = RandomBindingPredictor ( alleles ) <EOL> fasta_dict = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } <EOL> def test_random_m... |
<s> """<STR_LIT>""" <EOL> host_template = """<STR_LIT>""" <EOL> host_medium_template = "<STR_LIT>" <EOL> host_short_template = """<STR_LIT>""" <EOL> service_template = """<STR_LIT>""" <EOL> service_medium_template = "<STR_LIT>" <EOL> service_short_template = "<STR_LIT>" <EOL> templates = { '<STR_LIT:host>' : host_templ... |
<s> """<STR_LIT>""" <EOL> import sylphis , mthread , weakref <EOL> import string <EOL> from copy import copy <EOL> from CSimpleActor import * <EOL> from util import updateKeepType <EOL> import gc <EOL> actorClasses = { } <EOL> def registerActorClasses ( dir ) : <EOL> f = sylphis . CFileText ( dir ) <EOL> try : <EOL> f ... |
<s> """<STR_LIT>""" <EOL> import sylphis <EOL> from CWeapon import * <EOL> from CProjectile import * <EOL> class CGrenadeLauncher ( CWeapon ) : <EOL> __classname__ = '<STR_LIT>' <EOL> model = '<STR_LIT>' <EOL> fire_sound = '<STR_LIT>' <EOL> dryfire_sound = '<STR_LIT>' <EOL> reload_sound = '<STR_LIT>' <EOL> auto_reload ... |
<s> """<STR_LIT>""" <EOL> import sys , sylphis , mthread <EOL> from string import * <EOL> from CTriggerBase import * <EOL> class CTriggerStartup ( CTriggerBase ) : <EOL> __classname__ = '<STR_LIT>' <EOL> __desc__ = '<STR_LIT>' '<STR_LIT>' <EOL> __actortype__ = '<STR_LIT:e>' <EOL> def start ( self ) : <EOL> CTriggerBase... |
<s> """<STR_LIT>""" <EOL> import pyui <EOL> from pyui . themeBase import ThemeBase <EOL> class GreenTheme ( ThemeBase ) : <EOL> def __init__ ( self , renderer ) : <EOL> ThemeBase . __init__ ( self , renderer , "<STR_LIT>" , <NUM_LIT:10> , <NUM_LIT:0> ) <EOL> self . frameBorderLeft = <NUM_LIT:1> <EOL> self . frameBorder... |
<s> import sys , sylphis , projectile <EOL> from string import * <EOL> from simpleactor import * <EOL> class CPlayer ( CSimpleActor ) : <EOL> def __init__ ( self , * args ) : <EOL> CSimpleActor . __init__ ( self , * args ) <EOL> self . camera = sylphis . CCamera ( self . mContainer . getSceneManager ( ) ) <EOL> self . ... |
<s> """<STR_LIT>""" <EOL> import imp <EOL> import sys <EOL> import __builtin__ <EOL> import struct <EOL> import marshal <EOL> __all__ = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> _StringType = type ( '<STR_LIT>' ) <EOL> _ModuleType = type ( sys ) <EOL> class ImportManager : <EOL> "<STR_LIT>" <EOL> def install ( ... |
<s> """<STR_LIT>""" <EOL> __version__ = "<STR_LIT>" <EOL> import os <EOL> import sys <EOL> import getopt <EOL> import tokenize <EOL> if not hasattr ( tokenize , '<STR_LIT>' ) : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> __all__ = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> verbose = <NUM_LIT:0> <EOL> filename_o... |
<s> """<STR_LIT>""" <EOL> import handler <EOL> from _exceptions import SAXNotSupportedException , SAXNotRecognizedException <EOL> class XMLReader : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . _cont_handler = handler . ContentHandler ( ) <EOL> self . _dtd_handler = handler . DTDHandler ( ) <EOL> sel... |
<s> '''<STR_LIT:U+0020>''' <EOL> from __future__ import absolute_import <EOL> from __future__ import with_statement <EOL> import logging <EOL> import threading <EOL> from . import os_helper <EOL> if os_helper . isJython ( ) : <EOL> from com . ziclix . python . sql import zxJDBC <EOL> else : <EOL> from . . site_packages... |
<s> import re <EOL> import sublime <EOL> import sublime_plugin <EOL> from helper import CommandExecutor , current_word , current_word_region <EOL> class PasteMethodSnippetCommand ( sublime_plugin . WindowCommand , CommandExecutor ) : <EOL> def run ( self ) : <EOL> self . items = self . _items ( ) <EOL> print self . ite... |
<s> from . utils import * </s>
|
<s> import unittest <EOL> from flask import Flask <EOL> from coaster . db import db <EOL> from test_models import Container , NamedDocument , ScopedNamedDocument <EOL> app = Flask ( __name__ ) <EOL> app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> db . init_app ( app ) <EOL> @ app . route ( '<STR_LIT>' ) <EOL> @ NamedD... |
<s> from src . core . fuzzer import Fuzzer <EOL> from src . core import config <EOL> from src . core . log import * <EOL> from src . core import utility <EOL> from hashlib import sha256 <EOL> from re import findall <EOL> import pkgutil <EOL> import importlib <EOL> import fileinput <EOL> import requests <EOL> import jso... |
<s> from auxiliary import Auxiliary <EOL> from log import LOG <EOL> from re import findall <EOL> import utility <EOL> class Auxiliary : <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . versions = [ '<STR_LIT>' ] <EOL> self . flag = '<STR_LIT>' <EOL> def check ( self , fingerprint ) : <EOL> ret... |
<s> from src . platform . glassfish . authenticate import checkAuth <EOL> from src . platform . glassfish . interfaces import GINTERFACES <EOL> from auxiliary import Auxiliary <EOL> from re import findall <EOL> from log import LOG <EOL> import json <EOL> import utility <EOL> class Auxiliary : <EOL> def __init__ ( self ... |
<s> from src . platform . jboss . interfaces import JMXInterface <EOL> class FPrint ( JMXInterface ) : <EOL> def __init__ ( self ) : <EOL> super ( FPrint , self ) . __init__ ( ) <EOL> self . version = "<STR_LIT>" </s>
|
<s> from src . platform . railo . interfaces import RINTERFACES <EOL> from src . module . deploy_utils import _serve , waitServe , parse_war_path , killServe <EOL> from hashlib import md5 <EOL> from commands import getoutput <EOL> from shutil import copyfile <EOL> from threading import Thread <EOL> from base64 import b... |
<s> from src . platform . tomcat . interfaces import ManagerInterface <EOL> class FPrint ( ManagerInterface ) : <EOL> def __init__ ( self ) : <EOL> super ( FPrint , self ) . __init__ ( ) <EOL> self . version = "<STR_LIT>" </s>
|
<s> from src . platform . weblogic . authenticate import checkAuth <EOL> from src . platform . weblogic . interfaces import WINTERFACES <EOL> from log import LOG <EOL> from re import findall <EOL> from requests import exceptions <EOL> import utility <EOL> titles = [ WINTERFACES . WLA , WINTERFACES . WLS ] <EOL> def und... |
<s> __author__ = '<STR_LIT>' <EOL> import re <EOL> def is_valid_ipv4 ( ip ) : <EOL> """<STR_LIT>""" <EOL> pattern = re . compile ( r"""<STR_LIT>""" , re . VERBOSE | re . IGNORECASE ) <EOL> return pattern . match ( ip ) is not None </s>
|
<s> '''<STR_LIT>''' <EOL> import Queue <EOL> import threading <EOL> import time <EOL> import sys <EOL> import traceback <EOL> import random <EOL> from actuator import ConfigModel , NamespaceModel , InfraModel , ActuatorException <EOL> from actuator . utils import LOG_INFO , root_logger <EOL> from actuator . modeling im... |
<s> """<STR_LIT>""" <EOL> import json <EOL> import optparse <EOL> import sys <EOL> import os <EOL> import xml . etree . cElementTree as ET <EOL> def strip_tag ( tag ) : <EOL> strip_ns_tag = tag <EOL> split_array = tag . split ( '<STR_LIT:}>' ) <EOL> if len ( split_array ) > <NUM_LIT:1> : <EOL> strip_ns_tag = split_arra... |
<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from . proxy import readOnlyError <EOL> def createReadOnlyBuiltins ( builtins ) : <EOL> class ReadOnlyBuiltins ( dict ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = tuple ( ) <EOL> def clear ( self ) : <EOL> readOnlyError ( ) <EOL> def __delitem__ ( se... |
<s> from sandbox import Sandbox , HAVE_CPYTHON_RESTRICTED , HAVE_CSANDBOX , HAVE_PYPY <EOL> from sandbox . test import SkipTest , createSandboxConfig <EOL> from . _test_restricted import _test_restricted <EOL> if not HAVE_CPYTHON_RESTRICTED : <EOL> raise SkipTest ( "<STR_LIT>" ) <EOL> if HAVE_PYPY : <EOL> raise SkipTes... |
<s> from south . utils import datetime_utils as datetime <EOL> from south . db import db <EOL> from south . v2 import SchemaMigration <EOL> from django . db import models <EOL> class Migration ( SchemaMigration ) : <EOL> def forwards ( self , orm ) : <EOL> db . add_column ( '<STR_LIT>' , '<STR_LIT>' , <EOL> self . gf (... |
<s> import datetime <EOL> import pytz <EOL> from django . contrib . sessions . models import Session <EOL> from django . contrib . auth . models import User <EOL> from django . conf . urls import url <EOL> from django . core . exceptions import MultipleObjectsReturned <EOL> from django . core . management import call_c... |
<s> from django . contrib . auth . backends import ModelBackend <EOL> from django . contrib . auth . models import User <EOL> class EmailOrUsernameBackend ( ModelBackend ) : <EOL> def authenticate ( self , username = None , password = None ) : <EOL> try : <EOL> kwargs = { '<STR_LIT:email>' : username } <EOL> user = Use... |
<s> def get_backend_id ( backend_name ) : <EOL> from . . models import NOTICE_MEDIA <EOL> for bid , bname in NOTICE_MEDIA : <EOL> if bname == backend_name : <EOL> return bid <EOL> return None </s>
|
<s> import random <EOL> import time <EOL> import logging <EOL> import sys <EOL> import multiprocessing <EOL> from os . path import dirname <EOL> sys . path . append ( dirname ( dirname ( dirname ( __file__ ) ) ) ) <EOL> import hazelcast <EOL> def do_benchmark ( ) : <EOL> PROCESS_COUNT = <NUM_LIT:10> <EOL> ENTRY_COUNT =... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . atomic_long_message_type import * <EOL> REQU... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . client_message_type import * <EOL> REQUEST_T... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . list_message_type import * <EOL> REQUEST_TYP... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . lock_message_type import * <EOL> REQUEST_TYP... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . map_message_type import * <EOL> REQUEST_TYPE... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . map_message_type import * <EOL> REQUEST_TYPE... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . queue_message_type import * <EOL> REQUEST_TY... |
<s> REPLICATEDMAP_PUT = <NUM_LIT> <EOL> REPLICATEDMAP_SIZE = <NUM_LIT> <EOL> REPLICATEDMAP_ISEMPTY = <NUM_LIT> <EOL> REPLICATEDMAP_CONTAINSKEY = <NUM_LIT> <EOL> REPLICATEDMAP_CONTAINSVALUE = <NUM_LIT> <EOL> REPLICATEDMAP_GET = <NUM_LIT> <EOL> REPLICATEDMAP_REMOVE = <NUM_LIT> <EOL> REPLICATEDMAP_PUTALL = <NUM_LIT> <EOL>... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . set_message_type import * <EOL> REQUEST_TYPE... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . transactional_map_message_type import * <EOL... |
<s> from hazelcast . serialization . bits import * <EOL> from hazelcast . protocol . client_message import ClientMessage <EOL> from hazelcast . protocol . custom_codec import * <EOL> from hazelcast . util import ImmutableLazyDataList <EOL> from hazelcast . protocol . codec . transactional_set_message_type import * <EOL... |
<s> import asyncore <EOL> import errno <EOL> import logging <EOL> import select <EOL> import socket <EOL> import sys <EOL> import threading <EOL> import time <EOL> from Queue import PriorityQueue <EOL> from collections import deque <EOL> from hazelcast . connection import Connection , BUFFER_SIZE <EOL> from hazelcast .... |
<s> import unittest <EOL> from hazelcast . hash import murmur_hash3_x86_32 , hash_to_index <EOL> class HashTest ( unittest . TestCase ) : <EOL> def test_hash ( self ) : <EOL> expected = [ <EOL> ( "<STR_LIT>" , <NUM_LIT> , <NUM_LIT> ) , <EOL> ( "<STR_LIT>" , <NUM_LIT> , <NUM_LIT> ) , <EOL> ( "<STR_LIT>" , <NUM_LIT> , <N... |
<s> import unittest <EOL> import binascii <EOL> from hazelcast . serialization . input import _ObjectDataInput <EOL> class InputTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . BOOL_ARR = [ False , True , True , True ] <EOL> self . INT_ARR = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT... |
<s> __about__ = """<STR_LIT>""" </s>
|
<s> from django import http <EOL> def sendfile ( request , thumbnail , ** kwargs ) : <EOL> response = http . HttpResponse ( ) <EOL> response [ '<STR_LIT>' ] = thumbnail . url <EOL> del response [ '<STR_LIT:Content-Type>' ] <EOL> return response </s>
|
<s> import datetime <EOL> import math <EOL> import random <EOL> import re <EOL> import sys <EOL> from django . db import models <EOL> from django . contrib . auth . models import User <EOL> from django . utils . translation import ugettext as _ <EOL> version = '<STR_LIT>' <EOL> WORD_PREFIX = <NUM_LIT> ; <EOL> MIN_DIMNE... |
<s> """<STR_LIT>""" <EOL> DESCRIPTION = """<STR_LIT:U+0020>""" <EOL> import cPickle as pickle <EOL> class Encoder ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . ERR_INSTAN = "<STR_LIT>" <EOL> self . ERR_UNIMPL = "<STR_LIT>" <EOL> pass <EOL> def __del__ ( self ) : <EOL> pass <EOL> def buil... |
<s> from __future__ import unicode_literals <EOL> from django . db import migrations , models <EOL> from django . conf import settings <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) , <EOL> ] <EOL> operations = [ <EOL> mig... |
<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> from django . conf import settings <EOL> import uuid <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) , <EOL> ( '<STR_LIT>' ... |
<s> from django . conf . urls import url <EOL> from hc . api import views <EOL> urlpatterns = [ <EOL> url ( r'<STR_LIT>' , views . ping , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , views . ping , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , views . create_check ) , <EOL> ] </s>
|
<s> from mock import Mock , patch <EOL> from hc . payments . models import Subscription <EOL> from hc . test import BaseTestCase <EOL> class InvoiceTestCase ( BaseTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( InvoiceTestCase , self ) . setUp ( ) <EOL> self . sub = Subscription ( user = self . alice ) <EOL> self... |
<s> DATA_TYPES = { <EOL> '<STR_LIT:all>' : '<STR_LIT:default>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>'... |
<s> from models . card import Card <EOL> from modules . validations import is_required , is_string , is_one_of <EOL> class AudioCard ( Card ) : <EOL> schema = dict ( Card . schema . copy ( ) , ** { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : ( is_required , is_string , ( <EOL> is_one_of , '<STR_LIT>' ) , ) , <EOL> } , <E... |
<s> """<STR_LIT>""" <EOL> from models . card import Card <EOL> from models . unit import Unit <EOL> from models . set import Set <EOL> from models . cards . audio_card import AudioCard <EOL> from models . cards . choice_card import ChoiceCard <EOL> from models . cards . embed_card import EmbedCard <EOL> from models . c... |
<s> from schemas . index import schema as default <EOL> from schemas . index import update_modified <EOL> from modules . validations import is_required , is_email , is_string , has_min_length , is_one_of <EOL> import rethinkdb as r <EOL> from passlib . hash import bcrypt <EOL> from modules . util import extend <EOL> de... |
<s> from models . response import Response <EOL> import rethinkdb as r <EOL> def test_created ( db_conn , responses_table ) : <EOL> """<STR_LIT>""" <EOL> response = Response ( { <EOL> '<STR_LIT>' : '<STR_LIT:A>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> ... |
<s> from models . notice import Notice <EOL> import routes . notice <EOL> import pytest <EOL> xfail = pytest . mark . xfail <EOL> def test_list ( db_conn , session , notices_table ) : <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:0> , <NUM_LIT:10> ) : <EOL> Notice . insert ( db_conn , { <EOL> '<STR_LIT>' : '<ST... |
<s> from docopt import docopt <EOL> from routine import parse_char <EOL> class ArgError ( Exception ) : <EOL> pass <EOL> def parse_parameters ( doc , version ) : <EOL> p = docopt ( doc , version = version ) <EOL> p = { k . lstrip ( "<STR_LIT:->" ) : v for k , v in p . items ( ) } <EOL> try : <EOL> return { <EOL> "<STR_... |
<s> '''<STR_LIT>''' <EOL> from jinja2 import nodes <EOL> from jinja2 . ext import Extension <EOL> from . . utils import Configuration , render_content <EOL> class ActiveUrl ( Extension , Configuration ) : <EOL> '''<STR_LIT>''' <EOL> tags = set ( [ '<STR_LIT>' ] ) <EOL> def parse ( self , parser ) : <EOL> '''<STR_LIT>''... |
<s> '''<STR_LIT>''' <EOL> from __future__ import unicode_literals <EOL> import six <EOL> import django <EOL> from django . db . models . aggregates import Aggregate as DjangoAggregate <EOL> from django . db . models . sql . aggregates import Aggregate as DjangoSqlAggregate <EOL> VERSION = django . VERSION [ : <NUM_LIT:... |
<s> import os <EOL> import sys <EOL> import subprocess <EOL> from importlib import import_module <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> root_dir = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> os . environ [ '<STR_LIT>' ] = root_dir + os . pathsep + os . environ . get ( '<STR_LIT>' , '<STR_... |
<s> from __future__ import absolute_import , unicode_literals <EOL> import os <EOL> import betamax <EOL> domain = os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) . encode ( ) <EOL> access_token = os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) . encode ( ) <EOL> auth_user_id = os . environ . get ( '<STR_LIT>' , '<STR... |
<s> import logging , os , IPy <EOL> from StringIO import StringIO <EOL> from OpenMesher . interfaces import IOpenMesherConfigPlugin <EOL> class ReverseDNS ( IOpenMesherConfigPlugin ) : <EOL> def activate ( self ) : <EOL> self . _register ( '<STR_LIT>' ) <EOL> self . _register ( '<STR_LIT>' ) <EOL> self . _reverse_templ... |
<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from preggy . core import ( assertion , create_assertions , Expect as expect ) <EOL> from preggy . assertions import * <EOL> from preggy . __meta__ import __version__ <EOL> __version__ = __version__ </s>
|
<s> from preggy import expect <EOL> from tests import Comparable <EOL> TEST_DATA = ( <EOL> '<STR_LIT>' , <EOL> [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , ] , <EOL> { '<STR_LIT:a>' : <NUM_LIT:1> , '<STR_LIT:b>' : <NUM_LIT:2> } , <EOL> tuple ( [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] ) , <EOL> '<STR_LIT>' , <EOL> '<S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.