code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Editor Plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui import (QVB... | [
[
8,
0,
0.0035,
0.0005,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0081,
0.0025,
0,
0.66,
0.0417,
314,
0,
18,
0,
0,
314,
0,
0
],
[
1,
0,
0.0096,
0.0005,
0,
0.6... | [
"\"\"\"Editor Plugin\"\"\"",
"from spyderlib.qt.QtGui import (QVBoxLayout, QPrintDialog, QSplitter, QToolBar,\n QAction, QApplication, QDialog, QWidget,\n QPrinter, QActionGroup, QInputDialog, QMenu,\n QAbstractPrintDialo... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.plugins
=================
Here, 'plugins' are widgets designed specifically for Spyder
These plugins inherit the following classes
(SpyderP... | [
[
8,
0,
0.0339,
0.0258,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0694,
0.0065,
0,
0.66,
0.0909,
314,
0,
7,
0,
0,
314,
0,
0
],
[
1,
0,
0.0742,
0.0032,
0,
0.66... | [
"\"\"\"\nspyderlib.plugins\n=================\n\nHere, 'plugins' are widgets designed specifically for Spyder\nThese plugins inherit the following classes\n(SpyderPluginMixin & SpyderPluginWidget)\n\"\"\"",
"from spyderlib.qt.QtGui import (QDockWidget, QWidget, QShortcut, QCursor,\n ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Working Directory Plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui ... | [
[
8,
0,
0.0203,
0.0029,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0422,
0.0058,
0,
0.66,
0.0714,
314,
0,
6,
0,
0,
314,
0,
0
],
[
1,
0,
0.0465,
0.0029,
0,
0.66... | [
"\"\"\"Working Directory Plugin\"\"\"",
"from spyderlib.qt.QtGui import (QToolBar, QLabel, QGroupBox, QVBoxLayout,\n QHBoxLayout, QButtonGroup)",
"from spyderlib.qt.QtCore import SIGNAL, Signal",
"from spyderlib.qt.compat import getexistingdirectory",
"import os, sys",
"impo... |
# -*- coding: utf-8 -*-
#
# Copyright © 2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Shortcut management"""
from spyderlib.qt.QtGui import (QVBoxLayout, QComboBox, QItemDelegate,
QTableView, QMessageBox, QPushBu... | [
[
8,
0,
0.0196,
0.0028,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0266,
0.0056,
0,
0.66,
0.0526,
314,
0,
6,
0,
0,
314,
0,
0
],
[
1,
0,
0.0322,
0.0056,
0,
0.66... | [
"\"\"\"Shortcut management\"\"\"",
"from spyderlib.qt.QtGui import (QVBoxLayout, QComboBox, QItemDelegate,\n QTableView, QMessageBox, QPushButton)",
"from spyderlib.qt.QtCore import (Qt, QSize, QAbstractTableModel, QModelIndex,\n SIGNAL)",
"from s... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""External Console plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui i... | [
[
8,
0,
0.0064,
0.0009,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0137,
0.0027,
0,
0.66,
0.0588,
314,
0,
9,
0,
0,
314,
0,
0
],
[
1,
0,
0.0156,
0.0009,
0,
0.66... | [
"\"\"\"External Console plugin\"\"\"",
"from spyderlib.qt.QtGui import (QVBoxLayout, QMessageBox, QInputDialog,\n QLineEdit, QPushButton, QGroupBox, QLabel,\n QTabWidget, QFontComboBox)",
"from spyderlib.qt.QtCore import SIGNAL, Qt",
"from spyderli... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Find in Files Plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
import sys, os
# For debu... | [
[
8,
0,
0.0458,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0915,
0.0065,
0,
0.66,
0.1111,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.1111,
0.0065,
0,
0.6... | [
"\"\"\"Find in Files Plugin\"\"\"",
"import sys, os",
"STDOUT = sys.stdout",
"from spyderlib.qt.QtGui import QApplication",
"from spyderlib.qt.QtCore import SIGNAL, Signal",
"from spyderlib.baseconfig import _",
"from spyderlib.utils.qthelpers import create_action",
"from spyderlib.widgets.findinfiles... |
# -*- coding: utf-8 -*-
#
# Copyright © 2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Run configurations related dialogs and widgets and data models"""
from spyderlib.qt.QtGui import (QVBoxLayout, QDialog, QWidget, QGroupBox,
... | [
[
8,
0,
0.0202,
0.0029,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0318,
0.0145,
0,
0.66,
0.0625,
314,
0,
16,
0,
0,
314,
0,
0
],
[
1,
0,
0.0405,
0.0029,
0,
0.6... | [
"\"\"\"Run configurations related dialogs and widgets and data models\"\"\"",
"from spyderlib.qt.QtGui import (QVBoxLayout, QDialog, QWidget, QGroupBox,\n QLabel, QPushButton, QCheckBox, QLineEdit,\n QComboBox, QHBoxLayout, QDialogButtonBox,\n ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""IPython v0.11+ Plugin"""
import sys
from spyderlib.qt.QtGui import QHBoxLayout
# For debugging purpose:
STDOUT = sys.stdout
# Local imports
from spy... | [
[
8,
0,
0.0986,
0.0141,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1268,
0.0141,
0,
0.66,
0.1429,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1549,
0.0141,
0,
0.66... | [
"\"\"\"IPython v0.11+ Plugin\"\"\"",
"import sys",
"from spyderlib.qt.QtGui import QHBoxLayout",
"STDOUT = sys.stdout",
"from spyderlib.baseconfig import _",
"from spyderlib.widgets.ipython import create_widget",
"from spyderlib.plugins import SpyderPluginWidget",
"class IPythonPlugin(SpyderPluginWidg... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Internal Console Plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui i... | [
[
8,
0,
0.0214,
0.0031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0443,
0.0061,
0,
0.66,
0.0625,
314,
0,
5,
0,
0,
314,
0,
0
],
[
1,
0,
0.0489,
0.0031,
0,
0.66... | [
"\"\"\"Internal Console Plugin\"\"\"",
"from spyderlib.qt.QtGui import (QVBoxLayout, QFontDialog, QInputDialog,\n QLineEdit, QMenu)",
"from spyderlib.qt.QtCore import SIGNAL",
"from spyderlib.qt.compat import getopenfilename",
"import os, sys",
"import os.path as osp",
"ST... |
# -*- coding: utf-8 -*-
#
# Copyright © 2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Project Explorer Plugin"""
from spyderlib.qt.QtGui import QFontDialog
from spyderlib.qt.QtCore import SIGNAL
import sys
# For debugging purpose:
STDOUT... | [
[
8,
0,
0.0479,
0.0068,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0616,
0.0068,
0,
0.66,
0.1,
314,
0,
1,
0,
0,
314,
0,
0
],
[
1,
0,
0.0685,
0.0068,
0,
0.66,
... | [
"\"\"\"Project Explorer Plugin\"\"\"",
"from spyderlib.qt.QtGui import QFontDialog",
"from spyderlib.qt.QtCore import SIGNAL",
"import sys",
"STDOUT = sys.stdout",
"from spyderlib.baseconfig import _",
"from spyderlib.config import get_icon, VALID_EXT",
"from spyderlib.utils.qthelpers import create_ac... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
import os
if os.environ['QT_API'] == 'pyqt':
from PyQt4.QtCore import *
from PyQt4.Qt import QCoreApplication
from PyQt4.Qt import Qt
from PyQt4.QtCore imp... | [
[
1,
0,
0.3684,
0.0526,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
4,
0,
0.7105,
0.6316,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
1,
0.4737,
0.0526,
1,
0.65,
... | [
"import os",
"if os.environ['QT_API'] == 'pyqt':\n from PyQt4.QtCore import *\n from PyQt4.Qt import QCoreApplication\n from PyQt4.Qt import Qt\n from PyQt4.QtCore import pyqtSignal as Signal\n from PyQt4.QtCore import pyqtSlot as Slot\n from PyQt4.QtCore import pyqtProperty as Property\n fro... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
import os
if os.environ['QT_API'] == 'pyqt':
from PyQt4.Qt import QKeySequence, QTextCursor
from PyQt4.QtGui import *
else:
from PySide.QtGui import *
| [
[
1,
0,
0.5385,
0.0769,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
4,
0,
0.8462,
0.3846,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
1,
0.7692,
0.0769,
1,
0.93,
... | [
"import os",
"if os.environ['QT_API'] == 'pyqt':\n from PyQt4.Qt import QKeySequence, QTextCursor\n from PyQt4.QtGui import *\nelse:\n from PySide.QtGui import *",
" from PyQt4.Qt import QKeySequence, QTextCursor",
" from PyQt4.QtGui import *",
" from PySide.QtGui import *"
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Transitional package (PyQt4 --> PySide)"""
import os
_modname = os.environ.setdefault('QT_API', 'pyqt')
assert _modname in ('pyqt', 'pyside')
if _modname == 'pyqt':
... | [
[
8,
0,
0.1707,
0.0244,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2195,
0.0244,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.2683,
0.0244,
0,
0.66,... | [
"\"\"\"Transitional package (PyQt4 --> PySide)\"\"\"",
"import os",
"_modname = os.environ.setdefault('QT_API', 'pyqt')",
"if _modname == 'pyqt':\n # We do not force QString, QVariant, ... API to #1 or #2 anymore \n # as spyderlib is now compatible with both APIs\n# import sip\n# try:\n# si... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
import os
if os.environ['QT_API'] == 'pyqt':
from PyQt4.QtWebKit import *
else:
from PySide.QtWebKit import * | [
[
1,
0,
0.5833,
0.0833,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
4,
0,
0.875,
0.3333,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
1,
0.8333,
0.0833,
1,
0.86,
... | [
"import os",
"if os.environ['QT_API'] == 'pyqt':\n from PyQt4.QtWebKit import *\nelse:\n from PySide.QtWebKit import *",
" from PyQt4.QtWebKit import *",
" from PySide.QtWebKit import *"
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.qt.compat
-------------------
Transitional module providing compatibility functions intended to help
migrating from PyQt to PySide.
This modu... | [
[
8,
0,
0.0631,
0.0606,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.101,
0.0051,
0,
0.66,
0.1,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.1111,
0.0051,
0,
0.66,
... | [
"\"\"\"\nspyderlib.qt.compat\n-------------------\n\nTransitional module providing compatibility functions intended to help \nmigrating from PyQt to PySide.\n\nThis module should be fully compatible with:",
"import os, sys",
"from spyderlib.qt.QtGui import QFileDialog",
"PYQT_API_1 = False",
"if os.environ[... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Patching matplotlib's FigureManager"""
import sys
def set_backend(backend):
"""Set matplotlib's backend: Qt4Agg, WXAgg, ..."""
import matpl... | [
[
8,
0,
0.0473,
0.0068,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0608,
0.0068,
0,
0.66,
0.3333,
509,
0,
1,
0,
0,
509,
0,
0
],
[
2,
0,
0.0912,
0.027,
0,
0.66,... | [
"\"\"\"Patching matplotlib's FigureManager\"\"\"",
"import sys",
"def set_backend(backend):\n \"\"\"Set matplotlib's backend: Qt4Agg, WXAgg, ...\"\"\"\n import matplotlib\n matplotlib.use(backend)",
" \"\"\"Set matplotlib's backend: Qt4Agg, WXAgg, ...\"\"\"",
" import matplotlib",
" matp... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Module checking Spyder requirements
"""
def check_version(package, module_name, version_attr, required_str):
wng = "\n%s v%s or higher is required... | [
[
8,
0,
0.1509,
0.0566,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.3585,
0.3208,
0,
0.66,
0.25,
406,
0,
4,
1,
0,
0,
0,
6
],
[
14,
1,
0.2264,
0.0189,
1,
0.45,
... | [
"\"\"\"\nModule checking Spyder requirements\n\"\"\"",
"def check_version(package, module_name, version_attr, required_str):\n wng = \"\\n%s v%s or higher is required\" % (package, required_str)\n try:\n module = __import__(module_name)\n except ImportError:\n return wng+\" (not found!)\"\n... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""External Python Shell's input hook manager
As of today, only PyQt4 and Tkinter are supported this way.
This workaround is intended to be used on Windows pla... | [
[
8,
0,
0.0847,
0.096,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1412,
0.0056,
0,
0.66,
0.1,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1469,
0.0056,
0,
0.66,
... | [
"\"\"\"External Python Shell's input hook manager\n\nAs of today, only PyQt4 and Tkinter are supported this way.\n\nThis workaround is intended to be used on Windows platforms only.\nOn Windows platforms, no real console is attached to a subprocess Python \ninterpreter opened by Spyder's console. As a consequence, ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""External Python Shell widget: execute Python script in a separate process"""
import sys, os, os.path as osp, socket
# Debug
STDOUT = sys.stdout
STDER... | [
[
8,
0,
0.0118,
0.0017,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0152,
0.0017,
0,
0.66,
0.0476,
509,
0,
4,
0,
0,
509,
0,
0
],
[
14,
0,
0.0202,
0.0017,
0,
0.6... | [
"\"\"\"External Python Shell widget: execute Python script in a separate process\"\"\"",
"import sys, os, os.path as osp, socket",
"STDOUT = sys.stdout",
"STDERR = sys.stderr",
"from spyderlib.qt.QtGui import QApplication, QMessageBox, QSplitter, QMenu",
"from spyderlib.qt.QtCore import QProcess, SIGNAL, ... |
# -*- coding: utf-8 -*-
"""External shell's introspection and notification servers"""
from spyderlib.qt.QtCore import QThread, SIGNAL, Signal
import threading
import socket
from spyderlib.baseconfig import get_conf_path
from spyderlib.utils import select_port, log_last_error
from spyderlib.utils.bsdsocket ... | [
[
8,
0,
0.0112,
0.0056,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0223,
0.0056,
0,
0.66,
0.0588,
529,
0,
3,
0,
0,
529,
0,
0
],
[
1,
0,
0.0335,
0.0056,
0,
0.66... | [
"\"\"\"External shell's introspection and notification servers\"\"\"",
"from spyderlib.qt.QtCore import QThread, SIGNAL, Signal",
"import threading",
"import socket",
"from spyderlib.baseconfig import get_conf_path",
"from spyderlib.utils import select_port, log_last_error",
"from spyderlib.utils.bsdsoc... |
# -*- coding: utf-8 -*-
#
# Copyright © 2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
import sys, os, os.path as osp
from time import time, strftime... | [
[
1,
0,
0.0372,
0.0031,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.0402,
0.0031,
0,
0.66,
0.0769,
654,
0,
3,
0,
0,
654,
0,
0
],
[
14,
0,
0.0495,
0.0031,
0,
... | [
"import sys, os, os.path as osp",
"from time import time, strftime, gmtime",
"STDOUT = sys.stdout",
"STDERR = sys.stderr",
"from spyderlib.qt.QtGui import (QApplication, QWidget, QVBoxLayout,\n QHBoxLayout, QMenu, QLabel, QInputDialog,\n QLineEdi... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets.externalshell
===============================
External Shell widget: execute Python script/terminal in a separate process
"""
| [
[
8,
0,
0.7917,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nspyderlib.widgets.externalshell\n===============================\n\nExternal Shell widget: execute Python script/terminal in a separate process\n\"\"\""
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""External System Shell widget: execute terminal in a separate process"""
import sys, os
# Debug
STDOUT = sys.stdout
STDERR = sys.stderr
from spyder... | [
[
8,
0,
0.0493,
0.007,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0634,
0.007,
0,
0.66,
0.0769,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.0845,
0.007,
0,
0.66,
... | [
"\"\"\"External System Shell widget: execute terminal in a separate process\"\"\"",
"import sys, os",
"STDOUT = sys.stdout",
"STDERR = sys.stderr",
"from spyderlib.qt.QtGui import QMessageBox",
"from spyderlib.qt.QtCore import QProcess, SIGNAL, QTextCodec",
"locale_codec = QTextCodec.codecForLocale()",
... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Object Editor Dialog based on Qt
"""
from spyderlib.qt.QtCore import QObject, SIGNAL
class DialogKeeper(QObject):
def __init__(self):
... | [
[
8,
0,
0.0584,
0.0219,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0803,
0.0073,
0,
0.66,
0.1667,
529,
0,
2,
0,
0,
529,
0,
0
],
[
3,
0,
0.1861,
0.1898,
0,
0.66... | [
"\"\"\"\nObject Editor Dialog based on Qt\n\"\"\"",
"from spyderlib.qt.QtCore import QObject, SIGNAL",
"class DialogKeeper(QObject):\n def __init__(self):\n QObject.__init__(self)\n self.dialogs = {}\n self.namespace = None\n \n def set_namespace(self, namespace):\n self... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Customized combobox widgets"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtG... | [
[
8,
0,
0.0335,
0.0048,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0694,
0.0096,
0,
0.66,
0.0769,
314,
0,
5,
0,
0,
314,
0,
0
],
[
1,
0,
0.0766,
0.0048,
0,
0.66... | [
"\"\"\"Customized combobox widgets\"\"\"",
"from spyderlib.qt.QtGui import (QComboBox, QFont, QToolTip, QSizePolicy,\n QCompleter)",
"from spyderlib.qt.QtCore import SIGNAL, Qt, QUrl",
"import sys",
"import os.path as osp",
"from spyderlib.baseconfig import _",
"STDOUT = s... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Text Editor Dialog based on Qt
"""
from spyderlib.qt.QtCore import Qt, SIGNAL, SLOT
from spyderlib.qt.QtGui import QVBoxLayout, QTextEdit, QDialog, QD... | [
[
8,
0,
0.0851,
0.0319,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.117,
0.0106,
0,
0.66,
0.1429,
529,
0,
3,
0,
0,
529,
0,
0
],
[
1,
0,
0.1277,
0.0106,
0,
0.66,... | [
"\"\"\"\nText Editor Dialog based on Qt\n\"\"\"",
"from spyderlib.qt.QtCore import Qt, SIGNAL, SLOT",
"from spyderlib.qt.QtGui import QVBoxLayout, QTextEdit, QDialog, QDialogButtonBox",
"from spyderlib.baseconfig import _",
"from spyderlib.config import get_icon, get_font",
"class TextEditor(QDialog):\n ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets
=================
Widgets defined in this module may be used in any other Qt-based application
They are also used in Spyder throug... | [
[
8,
0,
0.05,
0.0409,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0773,
0.0045,
0,
0.66,
0.1667,
314,
0,
2,
0,
0,
314,
0,
0
],
[
1,
0,
0.0818,
0.0045,
0,
0.66,
... | [
"\"\"\"\nspyderlib.widgets\n=================\n\nWidgets defined in this module may be used in any other Qt-based application\n\nThey are also used in Spyder through the Plugin interface\n(see spyderlib.plugins)",
"from spyderlib.qt.QtGui import QTreeWidget, QMenu",
"from spyderlib.qt.QtCore import SIGNAL",
"... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Utilities for the Dictionary Editor Widget and Dialog based on Qt
"""
import re
#----Numpy arrays support
class FakeObject(object):
"""Fake class u... | [
[
8,
0,
0.0435,
0.0163,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0598,
0.0054,
0,
0.66,
0.05,
540,
0,
1,
0,
0,
540,
0,
0
],
[
3,
0,
0.0815,
0.0163,
0,
0.66,
... | [
"\"\"\"\nUtilities for the Dictionary Editor Widget and Dialog based on Qt\n\"\"\"",
"import re",
"class FakeObject(object):\n \"\"\"Fake class used in replacement of missing modules\"\"\"\n pass",
" \"\"\"Fake class used in replacement of missing modules\"\"\"",
"try:\n from numpy import ndarra... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Outline explorer widget
******************************** WARNING ***************************************
This module is not used anymore in Spyder ... | [
[
8,
0,
0.0924,
0.0756,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1429,
0.0084,
0,
0.66,
0.0833,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1513,
0.0084,
0,
0.66,
... | [
"\"\"\"\nOutline explorer widget\n\n******************************** WARNING ***************************************\n This module is not used anymore in Spyder since v1.1.0.\n However, it will still be part of spyderlib module for a little while -\n we never know, it could be useful...\n******************... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Internal shell widget : PythonShellWidget + Interpreter"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0... | [
[
8,
0,
0.0178,
0.0025,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0431,
0.0025,
0,
0.66,
0.05,
364,
0,
1,
0,
0,
364,
0,
0
],
[
7,
0,
0.0508,
0.0127,
0,
0.66,
... | [
"\"\"\"Internal shell widget : PythonShellWidget + Interpreter\"\"\"",
"import __builtin__",
"try:\n from IPython.deep_reload import reload\n __builtin__.dreload = reload\nexcept ImportError:\n pass",
" from IPython.deep_reload import reload",
" __builtin__.dreload = reload",
"from spyderli... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Find/Replace widget"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui impor... | [
[
8,
0,
0.0196,
0.0028,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0406,
0.0056,
0,
0.66,
0.1111,
314,
0,
8,
0,
0,
314,
0,
0
],
[
1,
0,
0.0448,
0.0028,
0,
0.66... | [
"\"\"\"Find/Replace widget\"\"\"",
"from spyderlib.qt.QtGui import (QHBoxLayout, QGridLayout, QCheckBox, QLabel,\n QWidget, QSizePolicy, QShortcut, QKeySequence)",
"from spyderlib.qt.QtCore import SIGNAL, Qt, QTimer",
"import sys",
"STDOUT = sys.stdout",
"from spyderlib.util... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Simple web browser widget"""
from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QVBoxLayout,
QProgressBar, QLabel, QMe... | [
[
8,
0,
0.0275,
0.0039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0373,
0.0078,
0,
0.66,
0.0714,
314,
0,
6,
0,
0,
314,
0,
0
],
[
1,
0,
0.0431,
0.0039,
0,
0.66... | [
"\"\"\"Simple web browser widget\"\"\"",
"from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QVBoxLayout,\n QProgressBar, QLabel, QMenu)",
"from spyderlib.qt.QtWebKit import QWebView, QWebPage",
"from spyderlib.qt.QtCore import SIGNAL, QUrl",
"import sys",
"STDOUT = sys.s... |
# -*- coding: utf-8 -*-
from spyderlib.qt.QtGui import (QLineEdit, QIcon, QHBoxLayout, QColor,
QPushButton, QColorDialog, QPixmap)
from spyderlib.qt.QtCore import SIGNAL, QSize, Slot, Property
class ColorButton(QPushButton):
"""
Color choosing push button
"""
... | [
[
1,
0,
0.0402,
0.023,
0,
0.66,
0,
314,
0,
7,
0,
0,
314,
0,
0
],
[
1,
0,
0.0575,
0.0115,
0,
0.66,
0.25,
529,
0,
4,
0,
0,
529,
0,
0
],
[
3,
0,
0.2759,
0.3793,
0,
0.6... | [
"from spyderlib.qt.QtGui import (QLineEdit, QIcon, QHBoxLayout, QColor,\n QPushButton, QColorDialog, QPixmap)",
"from spyderlib.qt.QtCore import SIGNAL, QSize, Slot, Property",
"class ColorButton(QPushButton):\n \"\"\"\n Color choosing push button\n \"\"\"\n __pyqtSign... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Editor widget syntax highlighters based on QtGui.QSyntaxHighlighter
(Python syntax highlighting rules are inspired from idlelib)
"""
import sys, re, k... | [
[
8,
0,
0.0113,
0.0053,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0159,
0.0013,
0,
0.66,
0.0294,
509,
0,
4,
0,
0,
509,
0,
0
],
[
1,
0,
0.0192,
0.0026,
0,
0.66... | [
"\"\"\"\nEditor widget syntax highlighters based on QtGui.QSyntaxHighlighter\n(Python syntax highlighting rules are inspired from idlelib)\n\"\"\"",
"import sys, re, keyword, __builtin__",
"from spyderlib.qt.QtGui import (QColor, QApplication, QFont,\n QSyntaxHighlighter, QCursor,... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""QPlainTextEdit base class"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
import sys
import re
... | [
[
8,
0,
0.0054,
0.0008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0109,
0.0008,
0,
0.66,
0.0625,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0116,
0.0008,
0,
0.66... | [
"\"\"\"QPlainTextEdit base class\"\"\"",
"import sys",
"import re",
"import sre_constants",
"import string",
"import os",
"from spyderlib.qt.QtGui import (QTextCursor, QColor, QFont, QApplication,\n QTextEdit, QTextCharFormat, QToolTip,\n QTe... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets.sourcecode
============================
Source code related widgets (code editor, console) based exclusively on Qt
"""
| [
[
8,
0,
0.7917,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nspyderlib.widgets.sourcecode\n============================\n\nSource code related widgets (code editor, console) based exclusively on Qt\n\"\"\""
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Terminal emulation tools"""
import os
class ANSIEscapeCodeHandler(object):
"""ANSI Escape sequences handler"""
if os.name == 'nt':
#... | [
[
8,
0,
0.0654,
0.0093,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0841,
0.0093,
0,
0.66,
0.5,
688,
0,
1,
0,
0,
688,
0,
0
],
[
3,
0,
0.5514,
0.9065,
0,
0.66,
... | [
"\"\"\"Terminal emulation tools\"\"\"",
"import os",
"class ANSIEscapeCodeHandler(object):\n \"\"\"ANSI Escape sequences handler\"\"\"\n if os.name == 'nt':\n # Windows terminal colors:\n ANSI_COLORS = ( # Normal, Bright/Light\n ('#000000', '#808080'), # 0: black\n ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets
=================
Widgets defined in this module may be used in any other Qt-based application
They are also used in Spyder throug... | [
[
8,
0,
0.7333,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nspyderlib.widgets\n=================\n\nWidgets defined in this module may be used in any other Qt-based application\n\nThey are also used in Spyder through the Plugin interface\n(see spyderlib.plugins)"
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Editor tools: outline explorer, etc."""
import sys
import re
import os.path as osp
from spyderlib.qt.QtGui import (QWidget, QTreeWidgetItem, QHBoxLayout,... | [
[
8,
0,
0.0127,
0.0018,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0163,
0.0018,
0,
0.66,
0.0476,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0181,
0.0018,
0,
0.66... | [
"\"\"\"Editor tools: outline explorer, etc.\"\"\"",
"import sys",
"import re",
"import os.path as osp",
"from spyderlib.qt.QtGui import (QWidget, QTreeWidgetItem, QHBoxLayout,\n QVBoxLayout)",
"from spyderlib.qt.QtCore import Qt, SIGNAL",
"from spyderlib.qt.compat import ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Tabs widget"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGui import (QTabW... | [
[
8,
0,
0.0217,
0.0031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0466,
0.0093,
0,
0.66,
0.0909,
314,
0,
9,
0,
0,
314,
0,
0
],
[
1,
0,
0.0528,
0.0031,
0,
0.66... | [
"\"\"\"Tabs widget\"\"\"",
"from spyderlib.qt.QtGui import (QTabWidget, QMenu, QDrag, QApplication,\n QTabBar, QShortcut, QKeySequence, QWidget,\n QHBoxLayout)",
"from spyderlib.qt.QtCore import SIGNAL, Qt, QPoint, QMimeData, QByteArray",
"import o... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""pydoc widget"""
from spyderlib.qt.QtGui import QApplication, QCursor
from spyderlib.qt.QtCore import QThread, QUrl, Qt
import sys, os.path as osp
#... | [
[
8,
0,
0.0603,
0.0086,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0776,
0.0086,
0,
0.66,
0.0909,
314,
0,
2,
0,
0,
314,
0,
0
],
[
1,
0,
0.0862,
0.0086,
0,
0.66... | [
"\"\"\"pydoc widget\"\"\"",
"from spyderlib.qt.QtGui import QApplication, QCursor",
"from spyderlib.qt.QtCore import QThread, QUrl, Qt",
"import sys, os.path as osp",
"STDOUT = sys.stdout",
"from spyderlib.baseconfig import _",
"from spyderlib.widgets.browser import WebBrowser",
"from spyderlib.utils ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Find in files widget"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from __future__ import with_... | [
[
8,
0,
0.0088,
0.0013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0176,
0.0013,
0,
0.66,
0.0417,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0208,
0.0025,
0,
0.66... | [
"\"\"\"Find in files widget\"\"\"",
"from __future__ import with_statement",
"from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QTreeWidgetItem,\n QSizePolicy, QRadioButton, QVBoxLayout, QLabel)",
"from spyderlib.qt.QtCore import SIGNAL, Qt, QThread, QMutexLocker, QMutex",
... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Module that provides a GUI-based editor for matplotlib's figure options"""
from spyderlib.widgets.formlayout import fedit
from spyderlib.config import ge... | [
[
8,
0,
0.0176,
0.0025,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0226,
0.0025,
0,
0.66,
0.0769,
7,
0,
1,
0,
0,
7,
0,
0
],
[
1,
0,
0.0251,
0.0025,
0,
0.66,
... | [
"\"\"\"Module that provides a GUI-based editor for matplotlib's figure options\"\"\"",
"from spyderlib.widgets.formlayout import fedit",
"from spyderlib.config import get_icon",
"import matplotlib.cm, matplotlib.image",
"from matplotlib.colors import rgb2hex, is_color_like",
"COLORMAPS = matplotlib.cm.dat... |
# -*- coding:utf-8 -*-
"""
IPython v0.11+ frontend widget
"""
#import os
#os.environ['QT_API'] = 'pyqt'
#from IPython.external import qt
# IPython imports
from IPython.utils.localinterfaces import LOCAL_IPS
from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp
class IPythonApp(IPyth... | [
[
8,
0,
0.0769,
0.0769,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2821,
0.0256,
0,
0.66,
0.1667,
328,
0,
1,
0,
0,
328,
0,
0
],
[
1,
0,
0.3077,
0.0256,
0,
0.66... | [
"\"\"\"\nIPython v0.11+ frontend widget\n\"\"\"",
"from IPython.utils.localinterfaces import LOCAL_IPS",
"from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp",
"class IPythonApp(IPythonQtConsoleApp):\n def init_qt_elements(self):\n # Create the widget.\n local_kernel = (n... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Spyder path manager"""
from __future__ import with_statement
from spyderlib.qt.QtGui import (QDialog, QListWidget, QDialogButtonBox,
... | [
[
8,
0,
0.0282,
0.004,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0363,
0.004,
0,
0.66,
0.0833,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0484,
0.0121,
0,
0.66,
... | [
"\"\"\"Spyder path manager\"\"\"",
"from __future__ import with_statement",
"from spyderlib.qt.QtGui import (QDialog, QListWidget, QDialogButtonBox,\n QVBoxLayout, QHBoxLayout, QMessageBox,\n QListWidgetItem)",
"from spyderlib.qt.QtCore import Qt, ... |
# -*- coding:utf-8 -*-
"""
Importing guiqwt's pyplot module or matplotlib's pyplot
"""
try:
from guiqwt.pyplot import *
except ImportError:
from matplotlib.pyplot import *
| [
[
8,
0,
0.3333,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.8333,
0.4444,
0,
0.66,
1,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.7778,
0.1111,
1,
0.26,
0,
... | [
"\"\"\"\nImporting guiqwt's pyplot module or matplotlib's pyplot\n\"\"\"",
"try:\n from guiqwt.pyplot import *\nexcept ImportError:\n from matplotlib.pyplot import *",
" from guiqwt.pyplot import *",
" from matplotlib.pyplot import *"
] |
# -*- coding: utf-8 -*-
"""
Spyder License Agreement (MIT License)
--------------------------------------
Copyright (c) 2009-2011 Pierre Raybaut
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the So... | [
[
8,
0,
0.4054,
0.7297,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8108,
0.027,
0,
0.66,
0.2,
162,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8378,
0.027,
0,
0.66,
... | [
"\"\"\"\nSpyder License Agreement (MIT License)\n--------------------------------------\n\nCopyright (c) 2009-2011 Pierre Raybaut\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation",
"__version__ = '2.1.0dev'",
"__license__ = __doc__",
... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Source code text utilities
"""
# Order is important:
EOL_CHARS = (("\r\n", 'nt'), ("\n", 'posix'), ("\r", 'mac'))
def get_eol_chars(text):
"""... | [
[
8,
0,
0.186,
0.0698,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2791,
0.0233,
0,
0.66,
0.1667,
844,
0,
0,
0,
0,
0,
8,
0
],
[
2,
0,
0.3721,
0.1163,
0,
0.66,
... | [
"\"\"\"\nSource code text utilities\n\"\"\"",
"EOL_CHARS = ((\"\\r\\n\", 'nt'), (\"\\n\", 'posix'), (\"\\r\", 'mac'))",
"def get_eol_chars(text):\n \"\"\"Get text EOL characters\"\"\"\n for eol_chars, _os_name in EOL_CHARS:\n if text.find(eol_chars) > -1:\n return eol_chars",
" \"\"... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Utilities and wrappers around inspect module"""
import inspect, re
# Local imports:
from spyderlib.utils import encoding
SYMBOLS = r"[^\'\"a-zA-Z0-... | [
[
8,
0,
0.03,
0.0043,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0386,
0.0043,
0,
0.66,
0.0714,
878,
0,
2,
0,
0,
878,
0,
0
],
[
1,
0,
0.0515,
0.0043,
0,
0.66,
... | [
"\"\"\"Utilities and wrappers around inspect module\"\"\"",
"import inspect, re",
"from spyderlib.utils import encoding",
"SYMBOLS = r\"[^\\'\\\"a-zA-Z0-9_.]\"",
"def getobj(txt, last=False):\n \"\"\"Return the last valid object name in string\"\"\"\n txt_end = \"\"\n for startchar, endchar in [\"[... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Qt utilities"""
import os
import os.path as osp
from spyderlib.qt.QtGui import (QAction, QStyle, QWidget, QIcon, QApplication,
... | [
[
8,
0,
0.0187,
0.0027,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0241,
0.0027,
0,
0.66,
0.0303,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0267,
0.0027,
0,
0.66... | [
"\"\"\"Qt utilities\"\"\"",
"import os",
"import os.path as osp",
"from spyderlib.qt.QtGui import (QAction, QStyle, QWidget, QIcon, QApplication,\n QLabel, QVBoxLayout, QHBoxLayout, QLineEdit,\n QKeyEvent, QMenu, QKeySequence, QToolButton)",
"fro... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Python class/function parser
Derived from "Demo/parser/example.py" from Python distribution
******************************** WARNING *********************... | [
[
8,
0,
0.0612,
0.0561,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0969,
0.0051,
0,
0.66,
0.0769,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.102,
0.0051,
0,
0.66,... | [
"\"\"\"\nPython class/function parser\n\nDerived from \"Demo/parser/example.py\" from Python distribution\n\n******************************** WARNING ***************************************\n This module is not used anymore in Spyder since v1.1.0.\n However, it will still be part of spyderlib module for a lit... |
# -*- coding: utf-8 -*-
"""Module completion auxiliary functions"""
#*****************************************************************************
#
# The functions on this file were taken from the file ipy_completers,
# which belongs to the IPython project. They were added here because a)
# IPython is not a runtim... | [
[
8,
0,
0.0112,
0.0056,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1061,
0.0056,
0,
0.66,
0.0667,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.1117,
0.0056,
0,
0.66... | [
"\"\"\"Module completion auxiliary functions\"\"\"",
"import inspect",
"import os.path",
"from time import time",
"import sys",
"from zipimport import zipimporter",
"from spyderlib.baseconfig import get_conf_path",
"from spyderlib.utils.external.pickleshare import PickleShareDB",
"MODULES_PATH = get... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Running programs utilities
"""
import os, sys, subprocess, imp, os.path as osp
def get_nt_program_name(name):
"""Return Windows-specific prog... | [
[
8,
0,
0.069,
0.0259,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0948,
0.0086,
0,
0.66,
0.1,
688,
0,
5,
0,
0,
688,
0,
0
],
[
2,
0,
0.1466,
0.0603,
0,
0.66,
... | [
"\"\"\"\nRunning programs utilities\n\"\"\"",
"import os, sys, subprocess, imp, os.path as osp",
"def get_nt_program_name(name):\n \"\"\"Return Windows-specific program name, i.e. adding '.bat' or '.exe'\"\"\"\n if os.name == 'nt':\n for ext in ('.exe', '.bat'):\n if is_program_installed... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Text encoding utilities, text file I/O
Functions 'get_coding', 'decode', 'encode' and 'to_unicode' come from Eric4
source code (Utilities/__init___.py)... | [
[
8,
0,
0.0594,
0.0375,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0875,
0.0063,
0,
0.66,
0.0667,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1,
0.0063,
0,
0.66,
... | [
"\"\"\"\nText encoding utilities, text file I/O\n\nFunctions 'get_coding', 'decode', 'encode' and 'to_unicode' come from Eric4\nsource code (Utilities/__init___.py) Copyright © 2003-2009 Detlev Offenbach\n\"\"\"",
"from __future__ import with_statement",
"import re, os, locale",
"from codecs import BOM_UTF8, ... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Environment variable utilities
"""
from spyderlib.qt.QtGui import QDialog, QMessageBox
import os
# Local imports
from spyderlib.baseconfig impor... | [
[
8,
0,
0.058,
0.0217,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0797,
0.0072,
0,
0.66,
0.0909,
314,
0,
2,
0,
0,
314,
0,
0
],
[
1,
0,
0.0942,
0.0072,
0,
0.66,... | [
"\"\"\"\nEnvironment variable utilities\n\"\"\"",
"from spyderlib.qt.QtGui import QDialog, QMessageBox",
"import os",
"from spyderlib.baseconfig import _",
"from spyderlib.widgets.dicteditor import DictEditor",
"def envdict2listdict(envdict):\n \"\"\"Dict --> Dict of lists\"\"\"\n sep = os.path.path... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""BSD socket interface communication utilities"""
import socket, struct, cPickle as pickle
SZ = struct.calcsize("l")
def write_packet(sock, data, alr... | [
[
8,
0,
0.0886,
0.0127,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1139,
0.0127,
0,
0.66,
0.1429,
687,
0,
3,
0,
0,
687,
0,
0
],
[
14,
0,
0.1519,
0.0127,
0,
0.6... | [
"\"\"\"BSD socket interface communication utilities\"\"\"",
"import socket, struct, cPickle as pickle",
"SZ = struct.calcsize(\"l\")",
"def write_packet(sock, data, already_pickled=False):\n \"\"\"Write *data* to socket *sock*\"\"\"\n if already_pickled:\n sent_data = data\n else:\n sen... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Shell Interpreter"""
import sys, atexit, threading, ctypes
import os, re, os.path as osp, pydoc
from subprocess import Popen, PIPE
from code import Int... | [
[
8,
0,
0.0221,
0.0032,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0284,
0.0032,
0,
0.66,
0.1,
509,
0,
4,
0,
0,
509,
0,
0
],
[
1,
0,
0.0315,
0.0032,
0,
0.66,
... | [
"\"\"\"Shell Interpreter\"\"\"",
"import sys, atexit, threading, ctypes",
"import os, re, os.path as osp, pydoc",
"from subprocess import Popen, PIPE",
"from code import InteractiveConsole",
"from spyderlib.utils.dochelpers import isdefined",
"from spyderlib.utils import encoding",
"sys.path.insert(0,... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Spyder third-party plugins configuration management
"""
import os
import os.path as osp
# Local imports
from spyderlib.utils import programs
PLUGI... | [
[
8,
0,
0.1739,
0.0652,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2391,
0.0217,
0,
0.66,
0.1429,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2609,
0.0217,
0,
0.66... | [
"\"\"\"\nSpyder third-party plugins configuration management\n\"\"\"",
"import os",
"import os.path as osp",
"from spyderlib.utils import programs",
"PLUGIN_PATH = None",
"if programs.is_module_installed(\"spyderplugins\"):\n import spyderplugins\n PLUGIN_PATH = osp.abspath(spyderplugins.__path__[0]... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Spyder GUI-related configuration management
(for non-GUI configuration, see spyderlib/baseconfig.py)
Important note regarding shortcuts:
For compa... | [
[
8,
0,
0.0223,
0.0182,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0344,
0.002,
0,
0.66,
0.0196,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.0364,
0.002,
0,
0.66,
... | [
"\"\"\"\nSpyder GUI-related configuration management\n(for non-GUI configuration, see spyderlib/baseconfig.py)\n\nImportant note regarding shortcuts:\n For compatibility with QWERTZ keyboards, one must avoid using the following\n shortcuts:\n Ctrl + Alt + Q, W, F, G, Y, X, C, V, B, N",
"import os, sy... |
from spyderlib.qt.QtGui import (QApplication, QMainWindow, QWidget, QLabel,
QLineEdit, QHBoxLayout, QDockWidget, QFont)
from spyderlib.qt.QtCore import Qt
from spyderlib.widgets.internalshell import InternalShell
class MyWidget(QWidget):
def __init__(self):
QWid... | [
[
1,
0,
0.0347,
0.0278,
0,
0.66,
0,
314,
0,
8,
0,
0,
314,
0,
0
],
[
1,
0,
0.0556,
0.0139,
0,
0.66,
0.1667,
529,
0,
1,
0,
0,
529,
0,
0
],
[
1,
0,
0.0833,
0.0139,
0,
... | [
"from spyderlib.qt.QtGui import (QApplication, QMainWindow, QWidget, QLabel,\n QLineEdit, QHBoxLayout, QDockWidget, QFont)",
"from spyderlib.qt.QtCore import Qt",
"from spyderlib.widgets.internalshell import InternalShell",
"class MyWidget(QWidget):\n def __init__(self):\n ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Buiding instructions:
# python setup.py py2exe
from distutils.core import setup
import py2exe # Patching distutils setup
from guidata.disthelpers import (remove_build_dist, get_default_excludes,
get_default_dll_excludes, create_vs2008_... | [
[
1,
0,
0.1346,
0.0192,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.1538,
0.0192,
0,
0.66,
0.1,
768,
0,
1,
0,
0,
768,
0,
0
],
[
1,
0,
0.1923,
0.0577,
0,
0.6... | [
"from distutils.core import setup",
"import py2exe # Patching distutils setup",
"from guidata.disthelpers import (remove_build_dist, get_default_excludes,\n get_default_dll_excludes, create_vs2008_data_files,\n add_module_data_files, add_modules)",
"remove_build... |
# -*- coding:utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Pylint Code Analysis Plugin"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from spyderlib.qt.QtGu... | [
[
8,
0,
0.0461,
0.0066,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0921,
0.0066,
0,
0.66,
0.0769,
314,
0,
4,
0,
0,
314,
0,
0
],
[
1,
0,
0.0987,
0.0066,
0,
0.66... | [
"\"\"\"Pylint Code Analysis Plugin\"\"\"",
"from spyderlib.qt.QtGui import QInputDialog, QVBoxLayout, QGroupBox, QLabel",
"from spyderlib.qt.QtCore import SIGNAL, Qt, Signal",
"import sys",
"STDOUT = sys.stdout",
"from spyderlib.baseconfig import get_translation",
"_ = get_translation(\"p_pylint\", dirn... |
# -*- coding:utf-8 -*-
#
# Copyright © 2011 Santiago Jaramillo
# based on p_pylint.py by Pierre Raybaut
#
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Profiler Plugin"""
from spyderlib.qt.QtGui import QVBoxLayout, QGroupBox, QLabel
from spyderlib.qt.QtCore import SIGNAL, ... | [
[
8,
0,
0.0643,
0.0071,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0786,
0.0071,
0,
0.66,
0.0769,
314,
0,
3,
0,
0,
314,
0,
0
],
[
1,
0,
0.0857,
0.0071,
0,
0.66... | [
"\"\"\"Profiler Plugin\"\"\"",
"from spyderlib.qt.QtGui import QVBoxLayout, QGroupBox, QLabel",
"from spyderlib.qt.QtCore import SIGNAL, Qt, Signal",
"import sys",
"STDOUT = sys.stdout",
"from spyderlib.baseconfig import get_translation",
"_ = get_translation(\"p_profiler\", dirname=\"spyderplugins\")",... |
# -*- coding: utf-8 -*-
#
# Copyright © 2011 Santiago Jaramillo
# based on pylintgui.py by Pierre Raybaut
#
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Profiler widget
See the official documentation on python profiling:
http://docs.python.org/library/profile.html
Quest... | [
[
8,
0,
0.0248,
0.0172,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0363,
0.0019,
0,
0.66,
0.0435,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.042,
0.0057,
0,
0.66,... | [
"\"\"\"\nProfiler widget\n\nSee the official documentation on python profiling:\nhttp://docs.python.org/library/profile.html\n\nQuestions for Pierre and others:\n - Where in the menu should profiler go? Run > Profile code ?",
"from __future__ import with_statement",
"from spyderlib.qt.QtGui import (QHBoxLay... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Pylint widget"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
from __future__ import with_stateme... | [
[
8,
0,
0.0157,
0.0022,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0314,
0.0022,
0,
0.66,
0.0476,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.037,
0.0045,
0,
0.66,... | [
"\"\"\"Pylint widget\"\"\"",
"from __future__ import with_statement",
"from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QTreeWidgetItem,\n QMessageBox, QVBoxLayout, QLabel)",
"from spyderlib.qt.QtCore import SIGNAL, QProcess, QByteArray, QTextCodec",
"locale_codec = QText... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets
=================
Widgets defined in this module may be used in any other Qt-based application
They are also used in Spyder throug... | [
[
8,
0,
0.7333,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"\"\"\"\nspyderlib.widgets\n=================\n\nWidgets defined in this module may be used in any other Qt-based application\n\nThey are also used in Spyder through the Plugin interface\n(see spyderlib.plugins)"
] |
#!/usr/bin/env python
from spyderlib import spyder
spyder.main()
| [
[
1,
0,
0.6667,
0.3333,
0,
0.66,
0,
498,
0,
1,
0,
0,
498,
0,
0
],
[
8,
0,
1,
0.3333,
0,
0.66,
1,
624,
3,
0,
0,
0,
0,
0,
1
]
] | [
"from spyderlib import spyder",
"spyder.main()"
] |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Spyder
======
The Scientific PYthon Development EnviRonment
"""
from distutils.core import setup
from distutils.command.build import build
from s... | [
[
8,
0,
0.095,
0.06,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.14,
0.01,
0,
0.66,
0.0769,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.15,
0.01,
0,
0.66,
0.153... | [
"\"\"\"\nSpyder\n======\n\nThe Scientific PYthon Development EnviRonment\n\"\"\"",
"from distutils.core import setup",
"from distutils.command.build import build",
"from sphinx import setup_command",
"import os, os.path as osp, sys",
"def get_package_data(name, extlist):\n \"\"\"Return data files for p... |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Cloning Spyder mercurial repository
Building source and win32 executable distribution package
"""
import os, shutil, os.path as osp
import spyderli... | [
[
8,
0,
0.2297,
0.1081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3243,
0.027,
0,
0.66,
0.0667,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.3784,
0.027,
0,
0.66,
... | [
"\"\"\"\nCloning Spyder mercurial repository\nBuilding source and win32 executable distribution package\n\"\"\"",
"import os, shutil, os.path as osp",
"import spyderlib as mod",
"name = 'spyder'",
"parentdir = osp.join(os.getcwd(), osp.pardir)",
"version = '%s-%s' % (name, mod.__version__)",
"os.chdir(p... |
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 23 15:44:03 2011
@author: Pierre Raybaut
"""
import time, os.path as osp
import rope.base.project
import rope.base.libutils
import rope.contrib.codeassist
ROPE_PREFS = {
'ignore_syntax_errors': True,
'ignore_bad_imports': Tr... | [
[
8,
0,
0.0381,
0.0476,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0762,
0.0095,
0,
0.66,
0.0714,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.0952,
0.0095,
0,
0.66... | [
"\"\"\"\nCreated on Wed Feb 23 15:44:03 2011\n\n@author: Pierre Raybaut\n\"\"\"",
"import time, os.path as osp",
"import rope.base.project",
"import rope.base.libutils",
"import rope.contrib.codeassist",
"ROPE_PREFS = {\n 'ignore_syntax_errors': True,\n 'ignore_bad_imports': Tr... |
import numpy
numpy. | [
[
1,
0,
1,
1,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
]
] | [
"import numpy"
] |
import numpy
numpy.linspace | [
[
1,
0,
0.5,
0.5,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
8,
0,
1,
0.5,
0,
0.66,
1,
0,
7,
0,
0,
0,
0,
0,
0
]
] | [
"import numpy",
"numpy.linspace"
] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Buiding instructions:
# python setup.py py2exe
from distutils.core import setup
import py2exe # Patching distutils setup
from guidata.disthelpers import (remove_build_dist, get_default_excludes,
get_default_dll_excludes, create_vs2008_... | [
[
1,
0,
0.1077,
0.0154,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.1231,
0.0154,
0,
0.66,
0.0714,
768,
0,
1,
0,
0,
768,
0,
0
],
[
1,
0,
0.1615,
0.0615,
0,
... | [
"from distutils.core import setup",
"import py2exe # Patching distutils setup",
"from guidata.disthelpers import (remove_build_dist, get_default_excludes,\n get_default_dll_excludes, create_vs2008_data_files,\n add_text_data_file, add_module_data_files, add_module... |
#!/usr/bin/python
# pep8.py - Check Python source code formatting, according to PEP 8
# Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Soft... | [
[
8,
0,
0.0434,
0.0507,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0699,
0.0007,
0,
0.66,
0.0132,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0713,
0.0007,
0,
0.66,... | [
"\"\"\"\nCheck Python source code formatting, according to PEP 8:\nhttp://www.python.org/dev/peps/pep-0008/\n\nFor usage and a list of options, try this:\n$ python pep8.py -h\n\nThis program and its regression test suite live here:",
"__version__ = '0.6.1'",
"import os",
"import sys",
"import re",
"import... |
# -*- coding: utf-8 -*-
#
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Bootstrapping Spyder
(Executing Spyder from source checkout)
This script is a contribution from techtonik:
http://code.google.com/p/spyderlib/issues/detail?id=741
"""
import os
import subprocess
impo... | [
[
8,
0,
0.1154,
0.0897,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1795,
0.0128,
0,
0.66,
0.0435,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1923,
0.0128,
0,
0.66... | [
"\"\"\"\nBootstrapping Spyder\n(Executing Spyder from source checkout)\n\nThis script is a contribution from techtonik:\nhttp://code.google.com/p/spyderlib/issues/detail?id=741\n\"\"\"",
"import os",
"import subprocess",
"import sys",
"import optparse",
"parser = optparse.OptionParser(usage=\"python boots... |
#! /usr/bin/env python
# encoding: utf-8
# waf 1.6.10
VERSION='0.3.3'
import sys
APPNAME='p2t'
top = '.'
out = 'build'
CPP_SOURCES = ['poly2tri/common/shapes.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/sweep_context.cc',
... | [
[
14,
0,
0.1111,
0.0222,
0,
0.66,
0,
557,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.0909,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.1556,
0.0222,
0,
... | [
"VERSION='0.3.3'",
"import sys",
"APPNAME='p2t'",
"top = '.'",
"out = 'build'",
"CPP_SOURCES = ['poly2tri/common/shapes.cc',\n 'poly2tri/sweep/cdt.cc',\n 'poly2tri/sweep/advancing_front.cc',\n 'poly2tri/sweep/sweep_context.cc',\n 'poly2tri/sweep/swee... |
'''
Module which brings history information about files from Mercurial.
@author: Rodrigo Damazio
'''
import re
import subprocess
REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')
def _GetOutputLines(args):
'''
Runs an external process and returns its output as a list of lines.
@param args: the argume... | [
[
8,
0,
0.0319,
0.0532,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0745,
0.0106,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0851,
0.0106,
0,
0.66... | [
"'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''",
"import re",
"import subprocess",
"REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')",
"def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines... |
#!/usr/bin/python
'''
Entry point for My Tracks i18n tool.
@author: Rodrigo Damazio
'''
import mytracks.files
import mytracks.translate
import mytracks.validate
import sys
def Usage():
print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0]
print 'Commands are:'
print ' cleanup'
print ' translate'
p... | [
[
8,
0,
0.0417,
0.0521,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0833,
0.0104,
0,
0.66,
0.125,
640,
0,
1,
0,
0,
640,
0,
0
],
[
1,
0,
0.0938,
0.0104,
0,
0.66,... | [
"'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''",
"import mytracks.files",
"import mytracks.translate",
"import mytracks.validate",
"import sys",
"def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p... |
'''
Module which prompts the user for translations and saves them.
TODO: implement
@author: Rodrigo Damazio
'''
class Translator(object):
'''
classdocs
'''
def __init__(self, language):
'''
Constructor
'''
self._language = language
def Translate(self, string_names):
print string_names | [
[
8,
0,
0.1905,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.7143,
0.619,
0,
0.66,
1,
229,
0,
2,
0,
0,
186,
0,
1
],
[
8,
1,
0.5238,
0.1429,
1,
0.72,
... | [
"'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''",
"class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor",
" '''\n classdocs\n '''",
" def __init__(self, language):\n '''... |
'''
Module which compares languague files to the master file and detects
issues.
@author: Rodrigo Damazio
'''
import os
from mytracks.parser import StringsParser
import mytracks.history
class Validator(object):
def __init__(self, languages):
'''
Builds a strings file validator.
Params:
@para... | [
[
8,
0,
0.0304,
0.0522,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0783,
0.0087,
0,
0.66,
... | [
"'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''",
"import os",
"from mytracks.parser import StringsParser",
"import mytracks.history",
"class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida... |
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | [
[
8,
0,
0.0667,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1556,
0.0222,
0,
0.66,
... | [
"'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''",
"import os.path",
"from glob import glob",
"import re",
"MYTRACKS_RES_DIR = 'MyTracks/res'",
"ANDROID_MASTER_VALUES = 'values'",
"ANDROID_VALUES_MASK = 'values-*'",
"def GetMyTracksDir():\n '''\n... |
'''
Module which parses a string XML file.
@author: Rodrigo Damazio
'''
from xml.parsers.expat import ParserCreate
import re
#import xml.etree.ElementTree as ET
class StringsParser(object):
'''
Parser for string XML files.
This object is not thread-safe and should be used for parsing a single file at
a time... | [
[
8,
0,
0.0261,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0609,
0.0087,
0,
0.66,
0.3333,
573,
0,
1,
0,
0,
573,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66... | [
"'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''",
"from xml.parsers.expat import ParserCreate",
"import re",
"class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0151,
0.0102,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0211,
0.0006,
0,
0.66,
0.0149,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0217,
0.0006,
0,
0.66... | [
"\"\"\"Enforces schema and verifies course files for referential integrity.\n\nUse this script to verify referential integrity of your course definition files\nbefore you import them into the production instance of Google AppEngine.\n\nHere is how to use the script:\n - prepare your course files\n - edi... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0968,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1097,
0.0065,
0,
0.66,
0.0769,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1226,
0.0065,
0,
0.66,... | [
"\"\"\"Allows export of Lessons and Units to other systems.\"\"\"",
"__author__ = 'psimakov@google.com (Pavel Simakov)'",
"from datetime import datetime",
"import os",
"import verify",
"RELEASE_TAG = '1.0'",
"def echo(unused_x):\n pass",
"JS_GCB_REGEX = \"\"\"\nfunction gcb_regex(base, modifiers) {... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1104,
0.0429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1472,
0.0184,
0,
0.66,
0.0909,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1656,
0.0061,
0,
0.66,... | [
"\"\"\"Examples of custom extract-transform-load jobs.\n\nCustom jobs are run via tools/etl/etl.py. You must do environment setup before\netl.py can be invoked; see its module docstring for details.\n\nSee tools/etl/etl_lib.py for documentation on writing Job subclasses.\n\"\"\"",
"__author__ = [\n 'johncox@go... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1034,
0.0069,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1241,
0.0207,
0,
0.66,
0.0476,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1448,
0.0069,
0,
0.66,... | [
"\"\"\"Remote environment manager for extract-transform-load utilities.\"\"\"",
"__author__ = [\n 'johncox@google.com',\n]",
"import os",
"import sys",
"import appengine_config",
"SERVER_SOFTWARE = 'Production Emulation'",
"if appengine_config.PRODUCTION_MODE:\n sys.exit('Running etl/tools/remote.... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1613,
0.0108,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1935,
0.0323,
0,
0.66,
0.1111,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.2258,
0.0108,
0,
0.66,... | [
"\"\"\"MapReduce extensions for ETL.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import os",
"import sys",
"from models import transforms",
"import mrs",
"from tools.etl import etl_lib",
"class MapReduceJob(etl_lib.Job):\n \"\"\"Parent classes for custom jobs that run a mapr... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1119,
0.0075,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1343,
0.0224,
0,
0.66,
0.2,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1567,
0.0075,
0,
0.66,
... | [
"\"\"\"Libraries for writing extract-transform-load scripts.\"\"\"",
"__author__ = [\n 'johncox@google.com',\n]",
"import argparse",
"from controllers import sites",
"def get_context(course_url_prefix):\n \"\"\"Gets requested application context from the given course URL prefix.\n\n Args:\n ... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.2,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2267,
0.0133,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2533,
0.0133,
0,
0.66,
0... | [
"\"\"\"Sample announcements.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import datetime",
"SAMPLE_ANNOUNCEMENT_1 = {\n 'edit_url': None,\n 'title': 'Example Announcement',\n 'date': datetime.date(2012, 10, 6),\n 'is_draft': False,\n 'html': \"\"\"\n <br>Certificates w... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0394,
0.0026,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0446,
0.0026,
0,
0.66,
0.0417,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0525,
0.0026,
0,
0.66,... | [
"\"\"\"Classes and methods to create and manage Announcements.\"\"\"",
"__author__ = 'Saifu Angto (saifu@google.com)'",
"import datetime",
"import urllib",
"from common import tags",
"from controllers.utils import BaseHandler",
"from controllers.utils import BaseRESTHandler",
"from controllers.utils i... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0591,
0.0039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0669,
0.0039,
0,
0.66,
0.0667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0787,
0.0039,
0,
0.66,... | [
"\"\"\"Module for implementing question tags.\"\"\"",
"__author__ = 'sll@google.com (Sean Lip)'",
"import os",
"from common import jinja_utils",
"from common import schema_fields",
"from common import tags",
"import jinja2",
"from models import custom_modules",
"from models import models as m_models... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0568,
0.0038,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0644,
0.0038,
0,
0.66,
0.0526,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.072,
0.0038,
0,
0.66,
... | [
"\"\"\"Generic object editor view that uses REST services.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import os",
"import urllib",
"import appengine_config",
"from common import jinja_utils",
"from common import schema_fields",
"from common import tags",
"from controllers import ... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1744,
0.0116,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1977,
0.0116,
0,
0.66,
0.0769,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2209,
0.0116,
0,
0.66,... | [
"\"\"\"Course explorer module.\"\"\"",
"__author__ = 'Rahul Singal (rahulsingal@google.com)'",
"from common import safe_dom",
"from controllers import utils",
"from models import custom_modules",
"from models.config import ConfigProperty",
"from models.models import StudentProfileDAO",
"from modules.c... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.062,
0.0041,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0702,
0.0041,
0,
0.66,
0.0417,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0785,
0.0041,
0,
0.66,
... | [
"\"\"\"Classes supporting courses viewed by a student.\"\"\"",
"__author__ = 'Rahul Singal (rahulsingal@google.com)'",
"import mimetypes",
"import appengine_config",
"from common import jinja_utils",
"from controllers import sites",
"from controllers.utils import PageInitializerService",
"from control... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.3409,
0.0227,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3864,
0.0227,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4318,
0.0227,
0,
0.66,... | [
"\"\"\"Messages used in the admin panel.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"from common import safe_dom",
"def assemble_sanitized_message(text, link):\n node_list = safe_dom.NodeList()\n if text:\n node_list.append(safe_dom.Text(text))\n if link:\n node_list.append(sa... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0211,
0.0014,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0239,
0.0014,
0,
0.66,
0.0303,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0267,
0.0014,
0,
0.66,... | [
"\"\"\"Site administration functionality.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import cgi",
"import cStringIO",
"import datetime",
"import os",
"import sys",
"import time",
"import urllib",
"from appengine_config import PRODUCTION_MODE",
"from common import jinja_utils"... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0378,
0.0025,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0428,
0.0025,
0,
0.66,
0.05,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0479,
0.0025,
0,
0.66,
... | [
"\"\"\"Classes supporting configuration property editor and REST operations.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import cgi",
"import urllib",
"from controllers import sites",
"from controllers.utils import BaseRESTHandler",
"from controllers.utils import XsrfTokenManager",
... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.2015,
0.2587,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3433,
0.0149,
0,
0.66,
0.0556,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.3582,
0.005,
0,
0.66,
... | [
"\"\"\"Oauth2 module implementation.\n\nIn order to use this module with your app you must enable it in main.py by\nchanging\n\n modules.oauth2.oauth2.register_module()\n\nto",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import os",
"import traceback",
"from apiclient import discovery",
... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1007,
0.0067,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1141,
0.0067,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1342,
0.0067,
0,
0.66,... | [
"\"\"\"Classes for displaying peer review analytics.\"\"\"",
"__author__ = 'Sean Lip (sll@google.com)'",
"import os",
"from common import safe_dom",
"from controllers.utils import ApplicationHandler",
"from controllers.utils import HUMAN_READABLE_TIME_FORMAT",
"import jinja2",
"from models import cour... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1389,
0.0093,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1667,
0.0278,
0,
0.66,
0.1,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1944,
0.0093,
0,
0.66,
... | [
"\"\"\"Cron job definitions for the review subsystem.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import logging",
"from controllers import sites",
"from controllers import utils",
"from models import courses",
"from modules.review import review",
"from google.appengine.api imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.