<commit_before>#!/usr/bin/env python

"""Web UI providing development views and actions"""

__author__ = '<NAME>'

import collections, traceback, datetime, time, yaml
import flask, ast, pprint
from flask import Flask, request, abort
from gevent.wsgi import WSGIServer
import json

from pyon.core.object import IonObjectBase
from pyon.core.registry import getextends, model_classes
from pyon.public import Container, SimpleProcess, log, PRED, RT, IonObject, CFG, NotFound, Inconsistent, BadRequest, Unauthorized, named_any

from interface import objects


# Initialize the flask app
app = Flask(__name__)

DEFAULT_WEB_SERVER_HOSTNAME = "localhost"
DEFAULT_WEB_SERVER_PORT = 8080

adminui_instance = None

standard_types = ['str', 'int', 'bool', 'float', 'list', 'dict']
standard_resattrs = ['name', 'description', 'lcstate', 'availability', 'visibility', 'ts_created', 'ts_updated', 'alt_ids']
EDIT_IGNORE_FIELDS = ['rid', 'restype', 'lcstate', 'availability', 'visibility', 'ts_created', 'ts_updated']<commit_msg>Updated static path for admin ui<commit_after>#!/usr/bin/env python

"""Web UI providing development views and actions"""

__author__ = '<NAME>'

import collections, traceback, datetime, time, yaml
import flask, ast, pprint
from flask import Flask, request, abort
from gevent.wsgi import WSGIServer
import json
import os

from pyon.core.object import IonObjectBase
from pyon.core.registry import getextends, model_classes
from pyon.public import Container, SimpleProcess, log, PRED, RT, IonObject, CFG, NotFound, Inconsistent, BadRequest, Unauthorized, named_any

from interface import objects


# Initialize the flask app
static_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], "static")
app = Flask(__name__, static_folder=static_dir, static_url_path="/static")

DEFAULT_WEB_SERVER_HOSTNAME = "localhost"
DEFAULT_WEB_SERVER_PORT = 8080

adminui_instance = None

standard_types = ['str', 'int', 'bool', 'float', 'list', 'dict']
standard_resattrs = ['name', 'description', 'lcstate', 'availability', 'visibility', 'ts_created', 'ts_updated', 'alt_ids']
EDIT_IGNORE_FIELDS = ['rid', 'restype', 'lcstate', 'availability', 'visibility', 'ts_created', 'ts_updated']
{'fraction_non_alphanumeric': 0.12380082229328461, 'fraction_numerical': 0.004111466423024212, 'mean_word_length': 7.141263940520446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6866180', 'n_tokens_mistral': 707, 'n_tokens_neox': 666, 'n_words': 205}