This file is indexed.

/usr/lib/python2.7/dist-packages/mx/BeeBase/mxBeeBase/testernesto.py is in python-egenix-mxbeebase 3.2.9-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /usr/bin/python

from mx.BeeBase import BeeStorage, BeeDict

BeeStorage._debug = 1
BeeDict._debug = 1

AUTOCOMMIT = 0

def fill():

    # Fill initial version of the dictionary
    d = BeeDict.BeeDict('testernesto', autocommit=AUTOCOMMIT)
    for i in range(10000):
        d[i] = "A"*i
    d.commit()
    #d.free_cache()
    d.close()


def update():

    # Update a few values
    d = BeeDict.BeeDict('testernesto', autocommit=AUTOCOMMIT)
    for i in range(100, 3000):
        d[i] = "C" * i
    d.commit()

import sys
mode = sys.argv[1]
if mode == 'init':
    import os
    for filename in ('testernesto.dat',
                     'testernesto.idx',
                     ):
      try:
        os.remove(filename)
      except:
        pass
    fill()

elif mode == 'update':
    update()