Did I find the right examples for you? yes no

All Samples(36)  |  Call(24)  |  Derive(0)  |  Import(12)
Dictionary that remembers insertion order

src/m/t/mtools-1.1.4/mtools/mgenerate/operators/operators.py   mtools(Download)
from bson import ObjectId
from mtools.util import OrderedDict
 
from random import choice, random, randint
 
class BaseOperator(object):
    names = []
    dict_format = False
    string_format = False
    defaults = OrderedDict()
    string_format = True
    names = ['$number', '$num']
    defaults = OrderedDict([ ('min', 0), ('max', 100) ])
 
    def __call__(self, options=None):
    string_format = True
    names = ['$string', '$str']
    defaults = OrderedDict([ ('length', 10), ('mask', None) ])
 
    def __call__(self, options=None):
 
    names = ['$missing']
    defaults = OrderedDict([ ('percent', 100), ('ifnot', None) ])
 
    def __call__(self, options=None):

src/m/t/mtools-HEAD/mtools/mgenerate/operators/operators.py   mtools(Download)
from bson import ObjectId
from mtools.util import OrderedDict
 
from random import choice, random, randint
 
class BaseOperator(object):
    names = []
    dict_format = False
    string_format = False
    defaults = OrderedDict()
    string_format = True
    names = ['$number', '$num']
    defaults = OrderedDict([ ('min', 0), ('max', 100) ])
 
    def __call__(self, options=None):
    string_format = True
    names = ['$string', '$str']
    defaults = OrderedDict([ ('length', 10), ('mask', None) ])
 
    def __call__(self, options=None):
 
    names = ['$missing']
    defaults = OrderedDict([ ('percent', 100), ('ifnot', None) ])
 
    def __call__(self, options=None):

src/m/t/mtools-1.1.4/mtools/util/hci.py   mtools(Download)
from mtools.util import OrderedDict
from datetime import date, time, datetime, timedelta
import re
import copy
from dateutil import parser
    weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
 
    dtRegexes = OrderedDict([ 
        # special constants
        ('constant', re.compile('(now|start|end|today|yesterday)' + '($|\s+)')),                        

src/m/t/mtools-HEAD/mtools/util/hci.py   mtools(Download)
from mtools.util import OrderedDict
from datetime import date, time, datetime, timedelta
import re
import copy
from dateutil import parser
    weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
 
    dtRegexes = OrderedDict([ 
        # special constants
        ('constant', re.compile('(now|start|end|today|yesterday)' + '($|\s+)')),                        

src/m/t/mtools-1.1.4/mtools/mlogfilter/filters/datetime_filter.py   mtools(Download)
from mtools.util import OrderedDict
from mtools.util.hci import DateTimeBoundaries
from datetime import datetime, timedelta, MINYEAR, MAXYEAR
from dateutil.tz import tzutc
from mtools.util.logevent import LogEvent
    months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
 
    dtRegexes = OrderedDict([
        ('weekday', r'|'.join(weekdays)),                         # weekdays: see above
        ('date',    '('+ '|'.join(months) +')' + r'\s+\d{1,2}'),  # month + day:  Jan 5, Oct 13, Sep 03, ...

src/m/t/mtools-HEAD/mtools/mlogfilter/filters/datetime_filter.py   mtools(Download)
from mtools.util import OrderedDict
from mtools.util.hci import DateTimeBoundaries
from datetime import datetime, timedelta, MINYEAR, MAXYEAR
from dateutil.tz import tzutc
from mtools.util.logevent import LogEvent
    months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
 
    dtRegexes = OrderedDict([
        ('weekday', r'|'.join(weekdays)),                         # weekdays: see above
        ('date',    '('+ '|'.join(months) +')' + r'\s+\d{1,2}'),  # month + day:  Jan 5, Oct 13, Sep 03, ...

src/m/t/mtools-1.1.4/mtools/util/grouping.py   mtools(Download)
from mtools.util import OrderedDict
import re
 
class Grouping(object):
 
 
        # sort groups by number of elements
        self.groups = OrderedDict( sorted(self.groups.iteritems(), key=lambda x: len(x[1]), reverse=True) )
 
        # if group-limit is provided, combine remaining groups

src/m/t/mtools-HEAD/mtools/util/grouping.py   mtools(Download)
from mtools.util import OrderedDict
import re
 
class Grouping(object):
 
 
        # sort groups by number of elements
        self.groups = OrderedDict( sorted(self.groups.iteritems(), key=lambda x: len(x[1]), reverse=True) )
 
        # if group-limit is provided, combine remaining groups

src/m/t/mtools-1.1.4/mtools/mplotqueries/plottypes/base_type.py   mtools(Download)
from mtools.util import OrderedDict
from mtools.util.log2code import Log2CodeConverter
from mtools.util.grouping import Grouping
 
import re
    def __init__(self, args=None, unknown_args=None):
        self.args = args
        self.unknown_args = unknown_args
        self.groups = OrderedDict()
        self.empty = True

src/m/t/mtools-1.1.4/mtools/mloginfo/sections/query_section.py   mtools(Download)
from mtools.util.grouping import Grouping
from mtools.util.print_table import print_table
from mtools.util import OrderedDict
 
from operator import itemgetter
            group_events = [le.duration for le in grouping[g] if le.duration != None]
 
            stats = OrderedDict()
            stats['namespace'] = namespace
            stats['pattern'] = pattern

  1 | 2  Next