.. include:: ../../Includes.txt

=================================================
Deprecation: #89331 - FormEngine legacy functions
=================================================

See :issue:`89331`

Description
===========

The FormEngine supports global callback functions executed on certain interactions. Such functions were overridden and
spread through some extensions which are not related to FormEngine at all.

These functions have been marked as deprecated:

* :js:`setFormValueOpenBrowser()`
* :js:`setFormValueFromBrowseWin()`
* :js:`setHiddenFromList()`
* :js:`setFormValueManipulate()`
* :js:`setFormValue_getFObj()`

The function :js:`setFormValueFromBrowseWin()` is also called by `ElementBrowser`. Extensions not related to FormEngine
are able to override this function and inject custom handling. This approach has been marked as deprecated as well.

Impact
======

Calling a deprecated function will trigger a warning in the browser console.

Affected Installations
======================

All installations using 3rd party extensions calling any of these deprecated functions are affected.

Migration
=========

Some functions can be used in FormEngine context only from now on. Load the module `TYPO3/CMS/Backend/FormEngine` and
use the according replacements:

* :js:`setFormValueOpenBrowser()` - use :js:`FormEngine.openPopupWindow()` instead
* :js:`setFormValueFromBrowseWin()` - use :js:`FormEngine.setSelectOptionFromExternalSource()` instead
* :js:`setHiddenFromList()` - use :js:`FormEngine.updateHiddenFieldValueFromSelect()` instead
* :js:`setFormValueManipulate()` - no replacement, this is internal logic for form controls separated into according modules
* :js:`setFormValue_getFObj()` - use :js:`FormEngine.getFormElement()` instead

If :js:`setFormValueFromBrowseWin()` is not used within a FormEngine context, it is possible to listen to the
:js:`message` event.

Example code:

.. code-block:: js

   require(['TYPO3/CMS/Backend/Utility/MessageUtility'], function (MessageUtility) {
     window.addEventListener('message', function (e) {
       // MessageUtility.MessageUtility is correct as this is not an AMD module
       if (!MessageUtility.MessageUtility.verifyOrigin(e.origin)) {
         throw 'Denied message sent by ' + e.origin;
       }

       if (typeof e.data.fieldName === 'undefined') {
         throw 'fieldName not defined in message';
       }

       if (typeof e.data.value === 'undefined') {
         throw 'value not defined in message';
       }

       const result = e.data.value.split('_');
       const field = <HTMLInputElement>document.querySelector('input[name="' + e.data.fieldName + '"]');
       field.value = result[1];
     });
   }

.. index:: Backend, JavaScript, NotScanned, ext:backend

{'repo_name': 'TYPO3/TYPO3.CMS', 'stars': '710', 'repo_language': 'PHP', 'file_name': 'Deprecation-77405-PageRepository-getPathFromRootline.rst', 'mime_type': 'text/plain', 'hash': -6914361466632787519, 'source_dataset': 'data'}


/**
Given two strings S and T, determine if they are both one edit distance apart
*/
/**
 * @param {string} s
 * @param {string} t
 * @return {boolean}
 */
var isOneEditDistance = function(s, t) {
    for (let i = 0; i < Math.min(s.length, t.length); i++) {
        if (s.charAt(i) !== t.charAt(i)) {
            if (s.length === t.length) {
                return s.substring(i + 1) === t.substring(i + 1);
            } else if (s.length < t.length) {
                return s.substring(i) === t.substring(i + 1);
            } else {
                return s.substring(i + 1) === t.substring(i);
            }
        }
    }

    return Math.abs(s.length - t.length) === 1;
};

{'repo_name': 'paopao2/leetcode-js', 'stars': '386', 'repo_language': 'JavaScript', 'file_name': 'Integer to Roman.js', 'mime_type': 'text/plain', 'hash': 4322050540513737835, 'source_dataset': 'data'}


/**
 * This file contains all of the syntactic constructs that
 * should be parsed identially by SJS / JS.
 * For SJS-specific syntax needs to be addressed
 * specifically in ast-tests.sjs
 */

function foo() {
	return 1;
}

console.log("string!\"");
console['log'];
var array = [1, "two", /three/];
var regex_flags = /foo/gm;
var { destructure } = obj;
var x = (1);
var x = (1,2);
var x = (1,2,3);
x ? 1 : 2;
if(x) { 1 } else if (y) { 2 } else { 3 };
if(x) { 1 }
while(1) { loop(); }
do { loop() } while(1);
lbl: 1;
for (var i=0; i<a.length; a++) {
	loop();
}
for (i=0; i<a.length; a++) {
	loop();
}
for(;;) loop();
for(var k in x) { loop(); }
for(k in x) { loop(); }
while(1) {
	break;
	continue;
}
with(x) { y }
switch(x) {
	case 1:
		x === 1;
		break;
	default:
		break;
}
throw exc;
try {
	fail();
} catch(e) {
	fail(e);
} finally {
	cleanup();
}
try { x } catch(e) { y }
new Foo(a, b, c);
(function() { })();
this;
true;
false;
null;
(function([a,b,c]) { });
([a,b,c]) => null;
(function({a, b:c}) { });
(function({a, b:[c,d]}) { });
var [a,,c] = arr;

// pre-function comment
function foo() {
	// leading function comment

	//pre-expression comment
	bar();
}

{'repo_name': 'onilabs/stratifiedjs', 'stars': '226', 'repo_language': 'JavaScript', 'file_name': 'sjs.vim', 'mime_type': 'text/plain', 'hash': -8004006251677940495, 'source_dataset': 'data'}


package com.tencent.mm.plugin.game.ui;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.compatible.util.d;
import com.tencent.mm.plugin.game.commlib.a;
import com.tencent.mm.plugin.game.d.dd;
import com.tencent.mm.plugin.game.f.c;
import com.tencent.mm.sdk.platformtools.ab;

public abstract class GameCenterActivity extends GameBaseActivity {
    protected int nfs = 0;
    protected String nft = null;
    private dd nfu;

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        AppMethodBeat.at(this, z);
    }

    public void onCreate(Bundle bundle) {
        this.yll = true;
        super.onCreate(bundle);
        this.nfu = a.bDg();
        if (this.nfu != null) {
            this.nfs = c.parseColor(this.nfu.color);
            this.nft = this.nfu.mYo;
        }
        ab.i("MicroMsg.GameCenterActivity", "setInitialStatusBarStyle");
        if (d.iW(21) && this.nfs != 0) {
            xE(this.nfs);
        }
    }
}

{'repo_name': 'HelloHuDi/AndroidReverseNotes', 'stars': '116', 'repo_language': 'Smali', 'file_name': 'v.java', 'mime_type': 'text/x-java', 'hash': 4145279079797689040, 'source_dataset': 'data'}


/*
 * Original Author: Ruopeng Wang
 *
 * Copyright © 2011 The General Hospital Corporation (Boston, MA) "MGH"
 *
 * Terms and conditions for use, reproduction, distribution and contribution
 * are found in the 'FreeSurfer Software License Agreement' contained
 * in the file 'LICENSE' found in the FreeSurfer distribution, and here:
 *
 * https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense
 *
 * Reporting: freesurfer@nmr.mgh.harvard.edu
 *
 */
#include "DialogNewROI.h"
#include "ui_DialogNewROI.h"
#include "LayerCollection.h"
#include "LayerMRI.h"
#include "MainWindow.h"
#include <QMessageBox>

DialogNewROI::DialogNewROI(QWidget *parent) :
  QDialog(parent),
  ui(new Ui::DialogNewROI)
{
  ui->setupUi(this);

  LayerCollection* col_mri = MainWindow::GetMainWindow()->GetLayerCollection("MRI");
  QList<Layer*> layers = col_mri->GetLayers();
  int nSel = 0;
  for ( int i = 0; i < layers.size(); i++ )
  {
    ui->comboBoxTemplate->addItem(layers[i]->GetName(), QVariant::fromValue((QObject*)layers[i]));
    if ( layers[i] == col_mri->GetActiveLayer() )
    {
      nSel = i;
    }
  }
  ui->comboBoxTemplate->setCurrentIndex(nSel);
  ui->lineEditName->setFocus();
}

DialogNewROI::~DialogNewROI()
{
  delete ui;
}

QString DialogNewROI::GetROIName()
{
  return ui->lineEditName->text().trimmed();
}

void DialogNewROI::SetROIName( const QString& name )
{
  ui->lineEditName->setText( name );
}

LayerMRI* DialogNewROI::GetTemplate()
{
  return qobject_cast<LayerMRI*>(
        ui->comboBoxTemplate->itemData(ui->comboBoxTemplate->currentIndex()).value<QObject*>());
}

void DialogNewROI::OnOK()
{
  if ( GetROIName().isEmpty())
  {
    QMessageBox::warning( this, "Error", "ROI name can not be empty." );
    return;
  }
  accept();
}

{'repo_name': 'freesurfer/freesurfer', 'stars': '166', 'repo_language': 'C++', 'file_name': 'CMakeLists.txt', 'mime_type': 'text/plain', 'hash': -8277665256523018366, 'source_dataset': 'data'}


"""Suite AppleScript Suite: Standard terms for AppleScript
Level 1, version 1

Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'ascr'

class AppleScript_Suite_Events:

    def _26_(self, _object, _attributes={}, **_arguments):
        """&: Concatenation
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'ccat'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _2a_(self, _object, _attributes={}, **_arguments):
        """*: Multiplication
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '*   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _2b_(self, _object, _attributes={}, **_arguments):
        """+: Addition
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '+   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _2d_(self, _object, _attributes={}, **_arguments):
        """-: Subtraction
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '-   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _3c_(self, _object, _attributes={}, **_arguments):
        """<: Less than
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '<   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _3d_(self, _object, _attributes={}, **_arguments):
        """=: Equality
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '=   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _3e_(self, _object, _attributes={}, **_arguments):
        """>: Greater than
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '>   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    _argmap_Call_a5_subroutine = {
        'at' : 'at  ',
        'from_' : 'from',
        'for_' : 'for ',
        'to' : 'to  ',
        'thru' : 'thru',
        'through' : 'thgh',
        'by' : 'by  ',
        'on' : 'on  ',
        'into' : 'into',
        'onto' : 'onto',
        'between' : 'btwn',
        'against' : 'agst',
        'out_of' : 'outo',
        'instead_of' : 'isto',
        'aside_from' : 'asdf',
        'around' : 'arnd',
        'beside' : 'bsid',
        'beneath' : 'bnth',
        'under' : 'undr',
        'over' : 'over',
        'above' : 'abve',
        'below' : 'belw',
        'apart_from' : 'aprt',
        'about' : 'abou',
        'since' : 'snce',
        'given' : 'givn',
        'with' : 'with',
        'without' : 'wout',
    }

    def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments):
        """Call\xa5subroutine: A subroutine call
        Required argument: anything
        Keyword argument at: a preposition
        Keyword argument from_: a preposition
        Keyword argument for_: a preposition
        Keyword argument to: a preposition
        Keyword argument thru: a preposition
        Keyword argument through: a preposition
        Keyword argument by: a preposition
        Keyword argument on: a preposition
        Keyword argument into: a preposition
        Keyword argument onto: a preposition
        Keyword argument between: a preposition
        Keyword argument against: a preposition
        Keyword argument out_of: a preposition
        Keyword argument instead_of: a preposition
        Keyword argument aside_from: a preposition
        Keyword argument around: a preposition
        Keyword argument beside: a preposition
        Keyword argument beneath: a preposition
        Keyword argument under: a preposition
        Keyword argument over: a preposition
        Keyword argument above: a preposition
        Keyword argument below: a preposition
        Keyword argument apart_from: a preposition
        Keyword argument about: a preposition
        Keyword argument since: a preposition
        Keyword argument given: parameter:value pairs, comma-separated
        Keyword argument with: formal parameter set to true if matching actual parameter is provided
        Keyword argument without: formal parameter set to false if matching actual parmeter is provided
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'psbr'

        aetools.keysubst(_arguments, self._argmap_Call_a5_subroutine)
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _5e_(self, _object, _attributes={}, **_arguments):
        """^: Exponentiation
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '^   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def activate(self, _no_object=None, _attributes={}, **_arguments):
        """activate: Bring the targeted application program to the front
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'misc'
        _subcode = 'actv'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def and_(self, _object, _attributes={}, **_arguments):
        """and: Logical conjunction
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'AND '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def as_(self, _object, _attributes={}, **_arguments):
        """as: Coercion
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'coer'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def contains(self, _object, _attributes={}, **_arguments):
        """contains: Containment
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'cont'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def div(self, _object, _attributes={}, **_arguments):
        """div: Quotient
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'div '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def end_tell(self, _no_object=None, _attributes={}, **_arguments):
        """end tell: Record or log an \xd4end tell\xd5 statement
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ascr'
        _subcode = 'tend'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def ends_with(self, _object, _attributes={}, **_arguments):
        """ends with: Ends with
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'ends'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    _argmap_error = {
        'number' : 'errn',
        'partial_result' : 'ptlr',
        'from_' : 'erob',
        'to' : 'errt',
    }

    def error(self, _object=None, _attributes={}, **_arguments):
        """error: Raise an error
        Required argument: anything
        Keyword argument number: an error number
        Keyword argument partial_result: any partial result occurring before the error
        Keyword argument from_: the object that caused the error
        Keyword argument to: the desired class for a failed coercion
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ascr'
        _subcode = 'err '

        aetools.keysubst(_arguments, self._argmap_error)
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def idle(self, _no_object=None, _attributes={}, **_arguments):
        """idle: Sent to a script application when it is idle
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: the number of seconds to wait for next idle event
        """
        _code = 'misc'
        _subcode = 'idle'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def launch(self, _no_object=None, _attributes={}, **_arguments):
        """launch: Start an application for scripting
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ascr'
        _subcode = 'noop'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def log(self, _object, _attributes={}, **_arguments):
        """log: Cause a comment to be logged
        Required argument: undocumented, typecode 'TEXT'
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ascr'
        _subcode = 'cmnt'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def mod(self, _object, _attributes={}, **_arguments):
        """mod: Remainder
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'mod '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def negate(self, _object, _attributes={}, **_arguments):
        """negate: Numeric negation
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'neg '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def not_(self, _object, _attributes={}, **_arguments):
        """not: Logical negation
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'NOT '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def or_(self, _object, _attributes={}, **_arguments):
        """or: Logical disjunction
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'OR  '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def start_log(self, _no_object=None, _attributes={}, **_arguments):
        """start log: Start event logging in the script editor
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ToyS'
        _subcode = 'log1'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def starts_with(self, _object, _attributes={}, **_arguments):
        """starts with: Starts with
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = 'bgwt'

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def stop_log(self, _no_object=None, _attributes={}, **_arguments):
        """stop log: Stop event logging in the script editor
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ToyS'
        _subcode = 'log0'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def tell(self, _no_object=None, _attributes={}, **_arguments):
        """tell: Record or log a \xd4tell\xd5 statement
        Keyword argument _attributes: AppleEvent attribute dictionary
        """
        _code = 'ascr'
        _subcode = 'tell'

        if _arguments: raise TypeError, 'No optional args expected'
        if _no_object is not None: raise TypeError, 'No direct arg expected'

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _ad_(self, _object, _attributes={}, **_arguments):
        """\xad: Inequality
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '\xad   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _b2_(self, _object, _attributes={}, **_arguments):
        """\xb2: Less than or equal to
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '<=  '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _b3_(self, _object, _attributes={}, **_arguments):
        """\xb3: Greater than or equal to
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '>=  '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

    def _d6_(self, _object, _attributes={}, **_arguments):
        """\xd6: Division
        Required argument: an AE object reference
        Keyword argument _attributes: AppleEvent attribute dictionary
        Returns: anything
        """
        _code = 'ascr'
        _subcode = '/   '

        if _arguments: raise TypeError, 'No optional args expected'
        _arguments['----'] = _object

        _reply, _arguments, _attributes = self.send(_code, _subcode,
                _arguments, _attributes)
        if _arguments.get('errn', 0):
            raise aetools.Error, aetools.decodeerror(_arguments)
        # XXXX Optionally decode result
        if _arguments.has_key('----'):
            return _arguments['----']

class anything(aetools.ComponentItem):
    """anything - any class or reference """
    want = '****'

class pictures(aetools.ComponentItem):
    """pictures -  """
    want = 'PICT'

picture = pictures

class styled_text(aetools.ComponentItem):
    """styled text - text with font, size, and style information """
    want = 'STXT'

styled_text = styled_text

class strings(aetools.ComponentItem):
    """strings -  """
    want = 'TEXT'

string = strings

class alias(aetools.ComponentItem):
    """alias - a file on a disk or server.  The file must exist when you check the syntax of your script. """
    want = 'alis'
class _Prop_POSIX_path(aetools.NProperty):
    """POSIX path - the POSIX path of the file """
    which = 'psxp'
    want = 'TEXT'

aliases = alias

class April(aetools.ComponentItem):
    """April - the month of April """
    want = 'apr '

class August(aetools.ComponentItem):
    """August - the month of August """
    want = 'aug '

class booleans(aetools.ComponentItem):
    """booleans -  """
    want = 'bool'

boolean = booleans

class RGB_colors(aetools.ComponentItem):
    """RGB colors -  """
    want = 'cRGB'

RGB_color = RGB_colors

class application(aetools.ComponentItem):
    """application - specifies global properties of AppleScript """
    want = 'capp'
class _Prop_AppleScript(aetools.NProperty):
    """AppleScript - the top-level script object """
    which = 'ascr'
    want = 'scpt'
AppleScript = _Prop_AppleScript()
class _Prop_days(aetools.NProperty):
    """days - the number of seconds in a day """
    which = 'days'
    want = 'long'
days = _Prop_days()
class _Prop_hours(aetools.NProperty):
    """hours - the number of seconds in an hour """
    which = 'hour'
    want = 'long'
hours = _Prop_hours()
class _Prop_minutes(aetools.NProperty):
    """minutes - the number of seconds in a minute """
    which = 'min '
    want = 'long'
minutes = _Prop_minutes()
class _Prop_pi(aetools.NProperty):
    """pi - the constant pi """
    which = 'pi  '
    want = 'doub'
pi = _Prop_pi()
class _Prop_print_depth(aetools.NProperty):
    """print depth - the maximum depth to print """
    which = 'prdp'
    want = 'long'
print_depth = _Prop_print_depth()
class _Prop_print_length(aetools.NProperty):
    """print length - the maximum length to print """
    which = 'prln'
    want = 'long'
print_length = _Prop_print_length()
class _Prop_result(aetools.NProperty):
    """result - the last result of evaluation """
    which = 'rslt'
    want = '****'
result = _Prop_result()
class _Prop_return_(aetools.NProperty):
    """return - a return character """
    which = 'ret '
    want = 'cha '
return_ = _Prop_return_()
class _Prop_space(aetools.NProperty):
    """space - a space character """
    which = 'spac'
    want = 'cha '
space = _Prop_space()
class _Prop_tab(aetools.NProperty):
    """tab - a tab character """
    which = 'tab '
    want = 'cha '
tab = _Prop_tab()
class _Prop_text_item_delimiters(aetools.NProperty):
    """text item delimiters - the text item delimiters of a string """
    which = 'txdl'
    want = 'list'
text_item_delimiters = _Prop_text_item_delimiters()
class _Prop_weeks(aetools.NProperty):
    """weeks - the number of seconds in a week """
    which = 'week'
    want = 'long'
weeks = _Prop_weeks()

applications = application

app = application

class upper_case(aetools.ComponentItem):
    """upper case - Text with lower case converted to upper case """
    want = 'case'

class cubic_centimeters(aetools.ComponentItem):
    """cubic centimeters - a volume measurement in SI cubic centimeters """
    want = 'ccmt'

cubic_centimetres = cubic_centimeters

class cubic_feet(aetools.ComponentItem):
    """cubic feet - a volume measurement in Imperial cubic feet """
    want = 'cfet'

class characters(aetools.ComponentItem):
    """characters -  """
    want = 'cha '

character = characters

class writing_code_info(aetools.ComponentItem):
    """writing code info - script code and language code of text run """
    want = 'citl'
class _Prop_language_code(aetools.NProperty):
    """language code - the language code for the text """
    which = 'plcd'
    want = 'shor'
class _Prop_script_code(aetools.NProperty):
    """script code - the script code for the text """
    which = 'pscd'
    want = 'shor'

writing_code_infos = writing_code_info

class text_items(aetools.ComponentItem):
    """text items -  """
    want = 'citm'

text_item = text_items

class cubic_meters(aetools.ComponentItem):
    """cubic meters - a volume measurement in SI cubic meters """
    want = 'cmet'

cubic_metres = cubic_meters

class centimeters(aetools.ComponentItem):
    """centimeters - a distance measurement in SI centimeters """
    want = 'cmtr'

centimetres = centimeters

class item(aetools.ComponentItem):
    """item - An item of any type """
    want = 'cobj'
class _Prop_id(aetools.NProperty):
    """id - the unique ID number of this object """
    which = 'ID  '
    want = 'long'

items = item

class C_strings(aetools.ComponentItem):
    """C strings -  """
    want = 'cstr'

C_string = C_strings

class text(aetools.ComponentItem):
    """text - text with language and style information """
    want = 'ctxt'

class cubic_inches(aetools.ComponentItem):
    """cubic inches - a volume measurement in Imperial cubic inches """
    want = 'cuin'

class cubic_yards(aetools.ComponentItem):
    """cubic yards - a distance measurement in Imperial cubic yards """
    want = 'cyrd'

class December(aetools.ComponentItem):
    """December - the month of December """
    want = 'dec '

class degrees_Celsius(aetools.ComponentItem):
    """degrees Celsius - a temperature measurement in SI degrees Celsius """
    want = 'degc'

class degrees_Fahrenheit(aetools.ComponentItem):
    """degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """
    want = 'degf'

class degrees_Kelvin(aetools.ComponentItem):
    """degrees Kelvin - a temperature measurement in degrees Kelvin """
    want = 'degk'

class reals(aetools.ComponentItem):
    """reals -  """
    want = 'doub'

real = reals

class encoded_strings(aetools.ComponentItem):
    """encoded strings -  """
    want = 'encs'

encoded_string = encoded_strings

class constants(aetools.ComponentItem):
    """constants -  """
    want = 'enum'

constant = constants

class events(aetools.ComponentItem):
    """events -  """
    want = 'evnt'

event = events

class February(aetools.ComponentItem):
    """February - the month of February """
    want = 'feb '

class feet(aetools.ComponentItem):
    """feet - a distance measurement in Imperial feet """
    want = 'feet'

class Friday(aetools.ComponentItem):
    """Friday - Friday """
    want = 'fri '

class file_specification(aetools.ComponentItem):
    """file specification - a file specification as used by the operating system """
    want = 'fss '

file_specifications = file_specification

class gallons(aetools.ComponentItem):
    """gallons - a volume measurement in Imperial gallons """
    want = 'galn'

class grams(aetools.ComponentItem):
    """grams - a mass measurement in SI meters """
    want = 'gram'

class handlers(aetools.ComponentItem):
    """handlers -  """
    want = 'hand'

handler = handlers

class inches(aetools.ComponentItem):
    """inches - a distance measurement in Imperial inches """
    want = 'inch'

class international_text(aetools.ComponentItem):
    """international text - text that begins with a writing code """
    want = 'itxt'

international_text = international_text

class January(aetools.ComponentItem):
    """January - the month of January """
    want = 'jan '

class July(aetools.ComponentItem):
    """July - the month of July """
    want = 'jul '

class June(aetools.ComponentItem):
    """June - the month of June """
    want = 'jun '

class reference_forms(aetools.ComponentItem):
    """reference forms -  """
    want = 'kfrm'

reference_form = reference_forms

class kilograms(aetools.ComponentItem):
    """kilograms - a mass measurement in SI kilograms """
    want = 'kgrm'

class kilometers(aetools.ComponentItem):
    """kilometers - a distance measurement in SI kilometers """
    want = 'kmtr'

kilometres = kilometers

class keystroke(aetools.ComponentItem):
    """keystroke - a press of a key combination on a Macintosh keyboard """
    want = 'kprs'
class _Prop_key(aetools.NProperty):
    """key - the character for the key was pressed (ignoring modifiers) """
    which = 'kMsg'
    want = 'cha '
class _Prop_key_kind(aetools.NProperty):
    """key kind - the kind of key that was pressed """
    which = 'kknd'
    want = 'ekst'
class _Prop_modifiers(aetools.NProperty):
    """modifiers - the modifier keys pressed in combination """
    which = 'kMod'
    want = 'eMds'

keystrokes = keystroke

class pounds(aetools.ComponentItem):
    """pounds - a weight measurement in SI meters """
    want = 'lbs '

class date(aetools.ComponentItem):
    """date - Absolute date and time values """
    want = 'ldt '
class _Prop_date_string(aetools.NProperty):
    """date string - the date portion of a date-time value as text """
    which = 'dstr'
    want = 'TEXT'
class _Prop_day(aetools.NProperty):
    """day - the day of the month of a date """
    which = 'day '
    want = 'long'
class _Prop_month(aetools.NProperty):
    """month - the month of a date """
    which = 'mnth'
    want = 'mnth'
class _Prop_time(aetools.NProperty):
    """time - the time since midnight of a date """
    which = 'time'
    want = 'long'
class _Prop_time_string(aetools.NProperty):
    """time string - the time portion of a date-time value as text """
    which = 'tstr'
    want = 'TEXT'
class _Prop_weekday(aetools.NProperty):
    """weekday - the day of a week of a date """
    which = 'wkdy'
    want = 'wkdy'
class _Prop_year(aetools.NProperty):
    """year - the year of a date """
    which = 'year'
    want = 'long'

dates = date

class list(aetools.ComponentItem):
    """list - An ordered collection of items """
    want = 'list'
class _Prop_length(aetools.NProperty):
    """length - the length of a list """
    which = 'leng'
    want = 'long'
class _Prop_rest(aetools.NProperty):
    """rest - all items of the list excluding first """
    which = 'rest'
    want = 'list'
class _Prop_reverse(aetools.NProperty):
    """reverse - the items of the list in reverse order """
    which = 'rvse'
    want = 'list'

lists = list

class liters(aetools.ComponentItem):
    """liters - a volume measurement in SI liters """
    want = 'litr'

litres = liters

class linked_list(aetools.ComponentItem):
    """linked list - An ordered collection of items """
    want = 'llst'

linked_lists = linked_list

class integers(aetools.ComponentItem):
    """integers -  """
    want = 'long'

integer = integers

class list_or_record(aetools.ComponentItem):
    """list or record - a list or record """
    want = 'lr  '

class list_2c__record_or_text(aetools.ComponentItem):
    """list, record or text - a list, record or text """
    want = 'lrs '

class list_or_string(aetools.ComponentItem):
    """list or string - a list or string """
    want = 'ls  '

class machines(aetools.ComponentItem):
    """machines -  """
    want = 'mach'

machine = machines

class March(aetools.ComponentItem):
    """March - the month of March """
    want = 'mar '

class May(aetools.ComponentItem):
    """May - the month of May """
    want = 'may '

class meters(aetools.ComponentItem):
    """meters - a distance measurement in SI meters """
    want = 'metr'

metres = meters

class miles(aetools.ComponentItem):
    """miles - a distance measurement in Imperial miles """
    want = 'mile'

class months(aetools.ComponentItem):
    """months -  """
    want = 'mnth'

month = months

class Monday(aetools.ComponentItem):
    """Monday - Monday """
    want = 'mon '

class missing_values(aetools.ComponentItem):
    """missing values -  """
    want = 'msng'

missing_value = missing_values

class number_or_date(aetools.ComponentItem):
    """number or date - a number or date """
    want = 'nd  '

class number_2c__date_or_text(aetools.ComponentItem):
    """number, date or text - a number, date or text """
    want = 'nds '

class numbers(aetools.ComponentItem):
    """numbers -  """
    want = 'nmbr'

number = numbers

class November(aetools.ComponentItem):
    """November - the month of November """
    want = 'nov '

class number_or_string(aetools.ComponentItem):
    """number or string - a number or string """
    want = 'ns  '

class references(aetools.ComponentItem):
    """references -  """
    want = 'obj '

reference = references

class October(aetools.ComponentItem):
    """October - the month of October """
    want = 'oct '

class ounces(aetools.ComponentItem):
    """ounces - a weight measurement in SI meters """
    want = 'ozs '

class class_(aetools.ComponentItem):
    """class - the type of a value """
    want = 'pcls'
class _Prop__3c_Inheritance_3e_(aetools.NProperty):
    """<Inheritance> - inherits some of its properties from this class """
    which = 'c@#^'
    want = 'type'

classes = class_

class prepositions(aetools.ComponentItem):
    """prepositions -  """
    want = 'prep'

preposition = prepositions

class properties(aetools.ComponentItem):
    """properties -  """
    want = 'prop'

property = properties

class writing_code(aetools.ComponentItem):
    """writing code - codes that identify the language and script system """
    want = 'psct'

class Pascal_strings(aetools.ComponentItem):
    """Pascal strings -  """
    want = 'pstr'

Pascal_string = Pascal_strings

class quarts(aetools.ComponentItem):
    """quarts - a volume measurement in Imperial quarts """
    want = 'qrts'

class data(aetools.ComponentItem):
    """data - an AppleScript raw data object """
    want = 'rdat'

class records(aetools.ComponentItem):
    """records -  """
    want = 'reco'

record = records

class Saturday(aetools.ComponentItem):
    """Saturday - Saturday """
    want = 'sat '

class seconds(aetools.ComponentItem):
    """seconds - more than one second """
    want = 'scnd'

class script(aetools.ComponentItem):
    """script - An AppleScript script """
    want = 'scpt'
class _Prop_name(aetools.NProperty):
    """name - the name of the script """
    which = 'pnam'
    want = 'TEXT'
class _Prop_parent(aetools.NProperty):
    """parent - its parent, i.e. the script that will handle events that this script doesn\xd5t """
    which = 'pare'
    want = 'scpt'

scripts = script

class September(aetools.ComponentItem):
    """September - the month of September """
    want = 'sep '

class alias_or_string(aetools.ComponentItem):
    """alias or string - an alias or string """
    want = 'sf  '

class sounds(aetools.ComponentItem):
    """sounds -  """
    want = 'snd '

sound = sounds

class square_feet(aetools.ComponentItem):
    """square feet - an area measurement in Imperial square feet """
    want = 'sqft'

class square_kilometers(aetools.ComponentItem):
    """square kilometers - an area measurement in SI square kilometers """
    want = 'sqkm'

square_kilometres = square_kilometers

class square_miles(aetools.ComponentItem):
    """square miles - an area measurement in Imperial square miles """
    want = 'sqmi'

class square_meters(aetools.ComponentItem):
    """square meters - an area measurement in SI square meters """
    want = 'sqrm'

square_metres = square_meters

class square_yards(aetools.ComponentItem):
    """square yards - an area measurement in Imperial square yards """
    want = 'sqyd'

class styled_Clipboard_text(aetools.ComponentItem):
    """styled Clipboard text - clipboard text with font, size, and style information """
    want = 'styl'

styled_Clipboard_text = styled_Clipboard_text

class Sunday(aetools.ComponentItem):
    """Sunday - Sunday """
    want = 'sun '

class styled_Unicode_text(aetools.ComponentItem):
    """styled Unicode text - styled text in the Unicode format """
    want = 'sutx'

styled_Unicode_text = styled_Unicode_text

class Thursday(aetools.ComponentItem):
    """Thursday - Thursday """
    want = 'thu '

class Tuesday(aetools.ComponentItem):
    """Tuesday - Tuesday """
    want = 'tue '

class type_class(aetools.ComponentItem):
    """type class - the name of a particular class (or any four-character code) """
    want = 'type'

class empty_ae_name_(aetools.ComponentItem):
    """ - the undefined value """
    want = 'undf'

class Unicode_text(aetools.ComponentItem):
    """Unicode text - text in the Unicode format (cannot be viewed without conversion) """
    want = 'utxt'

Unicode_text = Unicode_text

class vector(aetools.ComponentItem):
    """vector - An ordered collection of items """
    want = 'vect'

vectors = vector

class version(aetools.ComponentItem):
    """version - a version value """
    want = 'vers'

class Wednesday(aetools.ComponentItem):
    """Wednesday - Wednesday """
    want = 'wed '

class weekdays(aetools.ComponentItem):
    """weekdays -  """
    want = 'wkdy'

weekday = weekdays

class yards(aetools.ComponentItem):
    """yards - a distance measurement in Imperial yards """
    want = 'yard'

class zones(aetools.ComponentItem):
    """zones -  """
    want = 'zone'

zone = zones
anything._superclassnames = []
anything._privpropdict = {
}
anything._privelemdict = {
}
pictures._superclassnames = []
pictures._privpropdict = {
}
pictures._privelemdict = {
}
styled_text._superclassnames = []
styled_text._privpropdict = {
}
styled_text._privelemdict = {
}
styled_text._superclassnames = []
styled_text._privpropdict = {
}
styled_text._privelemdict = {
}
strings._superclassnames = []
strings._privpropdict = {
}
strings._privelemdict = {
}
alias._superclassnames = []
alias._privpropdict = {
    'POSIX_path' : _Prop_POSIX_path,
}
alias._privelemdict = {
}
April._superclassnames = []
April._privpropdict = {
}
April._privelemdict = {
}
August._superclassnames = []
August._privpropdict = {
}
August._privelemdict = {
}
booleans._superclassnames = []
booleans._privpropdict = {
}
booleans._privelemdict = {
}
RGB_colors._superclassnames = []
RGB_colors._privpropdict = {
}
RGB_colors._privelemdict = {
}
application._superclassnames = []
application._privpropdict = {
    'AppleScript' : _Prop_AppleScript,
    'days' : _Prop_days,
    'hours' : _Prop_hours,
    'minutes' : _Prop_minutes,
    'pi' : _Prop_pi,
    'print_depth' : _Prop_print_depth,
    'print_length' : _Prop_print_length,
    'result' : _Prop_result,
    'return_' : _Prop_return_,
    'space' : _Prop_space,
    'tab' : _Prop_tab,
    'text_item_delimiters' : _Prop_text_item_delimiters,
    'weeks' : _Prop_weeks,
}
application._privelemdict = {
}
upper_case._superclassnames = []
upper_case._privpropdict = {
}
upper_case._privelemdict = {
}
cubic_centimeters._superclassnames = []
cubic_centimeters._privpropdict = {
}
cubic_centimeters._privelemdict = {
}
cubic_feet._superclassnames = []
cubic_feet._privpropdict = {
}
cubic_feet._privelemdict = {
}
characters._superclassnames = []
characters._privpropdict = {
}
characters._privelemdict = {
}
writing_code_info._superclassnames = []
writing_code_info._privpropdict = {
    'language_code' : _Prop_language_code,
    'script_code' : _Prop_script_code,
}
writing_code_info._privelemdict = {
}
text_items._superclassnames = []
text_items._privpropdict = {
}
text_items._privelemdict = {
}
cubic_meters._superclassnames = []
cubic_meters._privpropdict = {
}
cubic_meters._privelemdict = {
}
centimeters._superclassnames = []
centimeters._privpropdict = {
}
centimeters._privelemdict = {
}
item._superclassnames = []
item._privpropdict = {
    'id' : _Prop_id,
}
item._privelemdict = {
}
C_strings._superclassnames = []
C_strings._privpropdict = {
}
C_strings._privelemdict = {
}
text._superclassnames = []
text._privpropdict = {
}
text._privelemdict = {
}
cubic_inches._superclassnames = []
cubic_inches._privpropdict = {
}
cubic_inches._privelemdict = {
}
cubic_yards._superclassnames = []
cubic_yards._privpropdict = {
}
cubic_yards._privelemdict = {
}
December._superclassnames = []
December._privpropdict = {
}
December._privelemdict = {
}
degrees_Celsius._superclassnames = []
degrees_Celsius._privpropdict = {
}
degrees_Celsius._privelemdict = {
}
degrees_Fahrenheit._superclassnames = []
degrees_Fahrenheit._privpropdict = {
}
degrees_Fahrenheit._privelemdict = {
}
degrees_Kelvin._superclassnames = []
degrees_Kelvin._privpropdict = {
}
degrees_Kelvin._privelemdict = {
}
reals._superclassnames = []
reals._privpropdict = {
}
reals._privelemdict = {
}
encoded_strings._superclassnames = []
encoded_strings._privpropdict = {
}
encoded_strings._privelemdict = {
}
constants._superclassnames = []
constants._privpropdict = {
}
constants._privelemdict = {
}
events._superclassnames = []
events._privpropdict = {
}
events._privelemdict = {
}
February._superclassnames = []
February._privpropdict = {
}
February._privelemdict = {
}
feet._superclassnames = []
feet._privpropdict = {
}
feet._privelemdict = {
}
Friday._superclassnames = []
Friday._privpropdict = {
}
Friday._privelemdict = {
}
file_specification._superclassnames = []
file_specification._privpropdict = {
    'POSIX_path' : _Prop_POSIX_path,
}
file_specification._privelemdict = {
}
gallons._superclassnames = []
gallons._privpropdict = {
}
gallons._privelemdict = {
}
grams._superclassnames = []
grams._privpropdict = {
}
grams._privelemdict = {
}
handlers._superclassnames = []
handlers._privpropdict = {
}
handlers._privelemdict = {
}
inches._superclassnames = []
inches._privpropdict = {
}
inches._privelemdict = {
}
international_text._superclassnames = []
international_text._privpropdict = {
}
international_text._privelemdict = {
}
international_text._superclassnames = []
international_text._privpropdict = {
}
international_text._privelemdict = {
}
January._superclassnames = []
January._privpropdict = {
}
January._privelemdict = {
}
July._superclassnames = []
July._privpropdict = {
}
July._privelemdict = {
}
June._superclassnames = []
June._privpropdict = {
}
June._privelemdict = {
}
reference_forms._superclassnames = []
reference_forms._privpropdict = {
}
reference_forms._privelemdict = {
}
kilograms._superclassnames = []
kilograms._privpropdict = {
}
kilograms._privelemdict = {
}
kilometers._superclassnames = []
kilometers._privpropdict = {
}
kilometers._privelemdict = {
}
keystroke._superclassnames = []
keystroke._privpropdict = {
    'key' : _Prop_key,
    'key_kind' : _Prop_key_kind,
    'modifiers' : _Prop_modifiers,
}
keystroke._privelemdict = {
}
pounds._superclassnames = []
pounds._privpropdict = {
}
pounds._privelemdict = {
}
date._superclassnames = []
date._privpropdict = {
    'date_string' : _Prop_date_string,
    'day' : _Prop_day,
    'month' : _Prop_month,
    'time' : _Prop_time,
    'time_string' : _Prop_time_string,
    'weekday' : _Prop_weekday,
    'year' : _Prop_year,
}
date._privelemdict = {
}
list._superclassnames = []
list._privpropdict = {
    'length' : _Prop_length,
    'rest' : _Prop_rest,
    'reverse' : _Prop_reverse,
}
list._privelemdict = {
}
liters._superclassnames = []
liters._privpropdict = {
}
liters._privelemdict = {
}
linked_list._superclassnames = []
linked_list._privpropdict = {
    'length' : _Prop_length,
}
linked_list._privelemdict = {
}
integers._superclassnames = []
integers._privpropdict = {
}
integers._privelemdict = {
}
list_or_record._superclassnames = []
list_or_record._privpropdict = {
}
list_or_record._privelemdict = {
}
list_2c__record_or_text._superclassnames = []
list_2c__record_or_text._privpropdict = {
}
list_2c__record_or_text._privelemdict = {
}
list_or_string._superclassnames = []
list_or_string._privpropdict = {
}
list_or_string._privelemdict = {
}
machines._superclassnames = []
machines._privpropdict = {
}
machines._privelemdict = {
}
March._superclassnames = []
March._privpropdict = {
}
March._privelemdict = {
}
May._superclassnames = []
May._privpropdict = {
}
May._privelemdict = {
}
meters._superclassnames = []
meters._privpropdict = {
}
meters._privelemdict = {
}
miles._superclassnames = []
miles._privpropdict = {
}
miles._privelemdict = {
}
months._superclassnames = []
months._privpropdict = {
}
months._privelemdict = {
}
Monday._superclassnames = []
Monday._privpropdict = {
}
Monday._privelemdict = {
}
missing_values._superclassnames = []
missing_values._privpropdict = {
}
missing_values._privelemdict = {
}
number_or_date._superclassnames = []
number_or_date._privpropdict = {
}
number_or_date._privelemdict = {
}
number_2c__date_or_text._superclassnames = []
number_2c__date_or_text._privpropdict = {
}
number_2c__date_or_text._privelemdict = {
}
numbers._superclassnames = []
numbers._privpropdict = {
}
numbers._privelemdict = {
}
November._superclassnames = []
November._privpropdict = {
}
November._privelemdict = {
}
number_or_string._superclassnames = []
number_or_string._privpropdict = {
}
number_or_string._privelemdict = {
}
references._superclassnames = []
references._privpropdict = {
}
references._privelemdict = {
}
October._superclassnames = []
October._privpropdict = {
}
October._privelemdict = {
}
ounces._superclassnames = []
ounces._privpropdict = {
}
ounces._privelemdict = {
}
class_._superclassnames = ['type_class']
class_._privpropdict = {
    '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
}
class_._privelemdict = {
}
prepositions._superclassnames = []
prepositions._privpropdict = {
}
prepositions._privelemdict = {
}
properties._superclassnames = []
properties._privpropdict = {
}
properties._privelemdict = {
}
writing_code._superclassnames = []
writing_code._privpropdict = {
}
writing_code._privelemdict = {
}
Pascal_strings._superclassnames = []
Pascal_strings._privpropdict = {
}
Pascal_strings._privelemdict = {
}
quarts._superclassnames = []
quarts._privpropdict = {
}
quarts._privelemdict = {
}
data._superclassnames = []
data._privpropdict = {
}
data._privelemdict = {
}
records._superclassnames = []
records._privpropdict = {
}
records._privelemdict = {
}
Saturday._superclassnames = []
Saturday._privpropdict = {
}
Saturday._privelemdict = {
}
seconds._superclassnames = []
seconds._privpropdict = {
}
seconds._privelemdict = {
}
script._superclassnames = []
script._privpropdict = {
    'name' : _Prop_name,
    'parent' : _Prop_parent,
}
script._privelemdict = {
}
September._superclassnames = []
September._privpropdict = {
}
September._privelemdict = {
}
alias_or_string._superclassnames = []
alias_or_string._privpropdict = {
}
alias_or_string._privelemdict = {
}
sounds._superclassnames = []
sounds._privpropdict = {
}
sounds._privelemdict = {
}
square_feet._superclassnames = []
square_feet._privpropdict = {
}
square_feet._privelemdict = {
}
square_kilometers._superclassnames = []
square_kilometers._privpropdict = {
}
square_kilometers._privelemdict = {
}
square_miles._superclassnames = []
square_miles._privpropdict = {
}
square_miles._privelemdict = {
}
square_meters._superclassnames = []
square_meters._privpropdict = {
}
square_meters._privelemdict = {
}
square_yards._superclassnames = []
square_yards._privpropdict = {
}
square_yards._privelemdict = {
}
styled_Clipboard_text._superclassnames = []
styled_Clipboard_text._privpropdict = {
}
styled_Clipboard_text._privelemdict = {
}
styled_Clipboard_text._superclassnames = []
styled_Clipboard_text._privpropdict = {
}
styled_Clipboard_text._privelemdict = {
}
Sunday._superclassnames = []
Sunday._privpropdict = {
}
Sunday._privelemdict = {
}
styled_Unicode_text._superclassnames = []
styled_Unicode_text._privpropdict = {
}
styled_Unicode_text._privelemdict = {
}
styled_Unicode_text._superclassnames = []
styled_Unicode_text._privpropdict = {
}
styled_Unicode_text._privelemdict = {
}
Thursday._superclassnames = []
Thursday._privpropdict = {
}
Thursday._privelemdict = {
}
Tuesday._superclassnames = []
Tuesday._privpropdict = {
}
Tuesday._privelemdict = {
}
type_class._superclassnames = []
type_class._privpropdict = {
}
type_class._privelemdict = {
}
empty_ae_name_._superclassnames = []
empty_ae_name_._privpropdict = {
}
empty_ae_name_._privelemdict = {
}
Unicode_text._superclassnames = []
Unicode_text._privpropdict = {
}
Unicode_text._privelemdict = {
}
Unicode_text._superclassnames = []
Unicode_text._privpropdict = {
}
Unicode_text._privelemdict = {
}
vector._superclassnames = []
vector._privpropdict = {
    'length' : _Prop_length,
}
vector._privelemdict = {
}
version._superclassnames = []
version._privpropdict = {
}
version._privelemdict = {
}
Wednesday._superclassnames = []
Wednesday._privpropdict = {
}
Wednesday._privelemdict = {
}
weekdays._superclassnames = []
weekdays._privpropdict = {
}
weekdays._privelemdict = {
}
yards._superclassnames = []
yards._privpropdict = {
}
yards._privelemdict = {
}
zones._superclassnames = []
zones._privpropdict = {
}
zones._privelemdict = {
}
_Enum_boov = {
    'true' : 'true',    # the true boolean value
    'false' : 'fals',   # the false boolean value
}

_Enum_cons = {
    'case' : 'case',    # case
    'diacriticals' : 'diac',    # diacriticals
    'white_space' : 'whit',     # white space
    'hyphens' : 'hyph', # hyphens
    'expansion' : 'expa',       # expansion
    'punctuation' : 'punc',     # punctuation
    'application_responses' : 'rmte',   # remote event replies
}

_Enum_eMds = {
    'option_down' : 'Kopt',     #
    'command_down' : 'Kcmd',    #
    'control_down' : 'Kctl',    #
    'shift_down' : 'Ksft',      #
    'caps_lock_down' : 'Kclk',  #
}

_Enum_ekst = {
    'escape_key' : 'ks5\x00',   #
    'delete_key' : 'ks3\x00',   #
    'tab_key' : 'ks0\x00',      #
    'return_key' : 'ks$\x00',   #
    'clear_key' : 'ksG\x00',    #
    'enter_key' : 'ksL\x00',    #
    'up_arrow_key' : 'ks~\x00', #
    'down_arrow_key' : 'ks}\x00',       #
    'left_arrow_key' : 'ks{\x00',       #
    'right_arrow_key' : 'ks|\x00',      #
    'help_key' : 'ksr\x00',     #
    'home_key' : 'kss\x00',     #
    'page_up_key' : 'kst\x00',  #
    'page_down_key' : 'ksy\x00',        #
    'forward_del_key' : 'ksu\x00',      #
    'end_key' : 'ksw\x00',      #
    'F1_key' : 'ksz\x00',       #
    'F2_key' : 'ksx\x00',       #
    'F3_key' : 'ksc\x00',       #
    'F4_key' : 'ksv\x00',       #
    'F5_key' : 'ks`\x00',       #
    'F6_key' : 'ksa\x00',       #
    'F7_key' : 'ksb\x00',       #
    'F8_key' : 'ksd\x00',       #
    'F9_key' : 'kse\x00',       #
    'F10_key' : 'ksm\x00',      #
    'F11_key' : 'ksg\x00',      #
    'F12_key' : 'kso\x00',      #
    'F13_key' : 'ksi\x00',      #
    'F14_key' : 'ksk\x00',      #
    'F15_key' : 'ksq\x00',      #
}

_Enum_misc = {
    'current_application' : 'cura',     # the current application
}

#
# Indices of types declared in this module
#
_classdeclarations = {
    '****' : anything,
    'PICT' : pictures,
    'STXT' : styled_text,
    'TEXT' : strings,
    'alis' : alias,
    'apr ' : April,
    'aug ' : August,
    'bool' : booleans,
    'cRGB' : RGB_colors,
    'capp' : application,
    'case' : upper_case,
    'ccmt' : cubic_centimeters,
    'cfet' : cubic_feet,
    'cha ' : characters,
    'citl' : writing_code_info,
    'citm' : text_items,
    'cmet' : cubic_meters,
    'cmtr' : centimeters,
    'cobj' : item,
    'cstr' : C_strings,
    'ctxt' : text,
    'cuin' : cubic_inches,
    'cyrd' : cubic_yards,
    'dec ' : December,
    'degc' : degrees_Celsius,
    'degf' : degrees_Fahrenheit,
    'degk' : degrees_Kelvin,
    'doub' : reals,
    'encs' : encoded_strings,
    'enum' : constants,
    'evnt' : events,
    'feb ' : February,
    'feet' : feet,
    'fri ' : Friday,
    'fss ' : file_specification,
    'galn' : gallons,
    'gram' : grams,
    'hand' : handlers,
    'inch' : inches,
    'itxt' : international_text,
    'jan ' : January,
    'jul ' : July,
    'jun ' : June,
    'kfrm' : reference_forms,
    'kgrm' : kilograms,
    'kmtr' : kilometers,
    'kprs' : keystroke,
    'lbs ' : pounds,
    'ldt ' : date,
    'list' : list,
    'litr' : liters,
    'llst' : linked_list,
    'long' : integers,
    'lr  ' : list_or_record,
    'lrs ' : list_2c__record_or_text,
    'ls  ' : list_or_string,
    'mach' : machines,
    'mar ' : March,
    'may ' : May,
    'metr' : meters,
    'mile' : miles,
    'mnth' : months,
    'mon ' : Monday,
    'msng' : missing_values,
    'nd  ' : number_or_date,
    'nds ' : number_2c__date_or_text,
    'nmbr' : numbers,
    'nov ' : November,
    'ns  ' : number_or_string,
    'obj ' : references,
    'oct ' : October,
    'ozs ' : ounces,
    'pcls' : class_,
    'prep' : prepositions,
    'prop' : properties,
    'psct' : writing_code,
    'pstr' : Pascal_strings,
    'qrts' : quarts,
    'rdat' : data,
    'reco' : records,
    'sat ' : Saturday,
    'scnd' : seconds,
    'scpt' : script,
    'sep ' : September,
    'sf  ' : alias_or_string,
    'snd ' : sounds,
    'sqft' : square_feet,
    'sqkm' : square_kilometers,
    'sqmi' : square_miles,
    'sqrm' : square_meters,
    'sqyd' : square_yards,
    'styl' : styled_Clipboard_text,
    'sun ' : Sunday,
    'sutx' : styled_Unicode_text,
    'thu ' : Thursday,
    'tue ' : Tuesday,
    'type' : type_class,
    'undf' : empty_ae_name_,
    'utxt' : Unicode_text,
    'vect' : vector,
    'vers' : version,
    'wed ' : Wednesday,
    'wkdy' : weekdays,
    'yard' : yards,
    'zone' : zones,
}

_propdeclarations = {
    'ID  ' : _Prop_id,
    'ascr' : _Prop_AppleScript,
    'c@#^' : _Prop__3c_Inheritance_3e_,
    'day ' : _Prop_day,
    'days' : _Prop_days,
    'dstr' : _Prop_date_string,
    'hour' : _Prop_hours,
    'kMod' : _Prop_modifiers,
    'kMsg' : _Prop_key,
    'kknd' : _Prop_key_kind,
    'leng' : _Prop_length,
    'min ' : _Prop_minutes,
    'mnth' : _Prop_month,
    'pare' : _Prop_parent,
    'pi  ' : _Prop_pi,
    'plcd' : _Prop_language_code,
    'pnam' : _Prop_name,
    'prdp' : _Prop_print_depth,
    'prln' : _Prop_print_length,
    'pscd' : _Prop_script_code,
    'psxp' : _Prop_POSIX_path,
    'rest' : _Prop_rest,
    'ret ' : _Prop_return_,
    'rslt' : _Prop_result,
    'rvse' : _Prop_reverse,
    'spac' : _Prop_space,
    'tab ' : _Prop_tab,
    'time' : _Prop_time,
    'tstr' : _Prop_time_string,
    'txdl' : _Prop_text_item_delimiters,
    'week' : _Prop_weeks,
    'wkdy' : _Prop_weekday,
    'year' : _Prop_year,
}

_compdeclarations = {
}

_enumdeclarations = {
    'boov' : _Enum_boov,
    'cons' : _Enum_cons,
    'eMds' : _Enum_eMds,
    'ekst' : _Enum_ekst,
    'misc' : _Enum_misc,
}

{'repo_name': 'zhl2008/awd-platform', 'stars': '335', 'repo_language': 'Python', 'file_name': 'SUMSQ.data', 'mime_type': 'text/plain', 'hash': 5009412165104498947, 'source_dataset': 'data'}


<?php
/**
 * @copyright (C)2020-2099 Hnaoyun Inc.
 * @author XingMeng
 * @email hnxsh@foxmail.com
 * @date 2020年3月8日
 *  标签控制器
 */
namespace app\home\controller;

use core\basic\Controller;
use core\basic\Url;

class TagController extends Controller
{

    protected $parser;

    protected $htmldir;

    public function __construct()
    {
        $this->parser = new ParserController();
        $this->htmldir = $this->config('tpl_html_dir') ? $this->config('tpl_html_dir') . '/' : '';
    }

    // 内容搜索
    public function index()
    {
        // 在非兼容模式接受地址第二参数值
        if (defined('RVAR')) {
            $_GET['tag'] = RVAR;
        }

        if (! get('tag')) {
            _404('您访问的页面不存在，请核对后重试！');
        }

        $tagstpl = request('tagstpl');
        if (! preg_match('/^[\w]+\.html$/', $tagstpl)) {
            $tagstpl = 'tags.html';
        }
        $content = parent::parser($this->htmldir . $tagstpl); // 框架标签解析
        $content = $this->parser->parserBefore($content); // CMS公共标签前置解析
        $content = $this->parser->parserPositionLabel($content, 0, '相关内容', Url::home('tag/' . get('tag'))); // CMS当前位置标签解析
        $content = $this->parser->parserSpecialPageSortLabel($content, - 2, '相关内容', Url::home('tag/' . get('tag'))); // 解析分类标签
        $content = $this->parser->parserAfter($content); // CMS公共标签后置解析
        $this->cache($content, true);
    }
}

{'repo_name': 'hnaoyun/PbootCMS', 'stars': '379', 'repo_language': 'PHP', 'file_name': 'ChangeLog.txt', 'mime_type': 'text/plain', 'hash': 7658603215577701388, 'source_dataset': 'data'}


/**
 * @license
 * Copyright 2016 E2EMail authors. 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 agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @fileoverview Controller for the messages view for a single thread.
 */
goog.provide('e2email.pages.messages.MessagesCtrl');

goog.require('e2email.constants.Location');

goog.scope(function() {

/**
 * Milliseconds to wait for the compose window to fade into view,
 * before scrolling into view the entire window and selecting the
 * textarea.
 * @const
 * @private
 */
var SCROLL_INTO_VIEW_INTERVAL_ = 400;

/**
 * Messages page controller.
 *
 * @param {!angular.Scope} $scope
 * @param {!angular.$location} $location The Angular location service.
 * @param {!angular.$routeParams} $routeParams The Angular route
 *     parameter service.
 * @param {!e2email.components.gmail.GmailService} gmailService
 *     the gmail service.
 * @constructor
 * @ngInject
 * @export
 */
e2email.pages.messages.MessagesCtrl = function(
    $scope, $location, $routeParams, gmailService) {

  /** @private */
  this.location_ = $location;
  /** @private {string} */
  this.threadId_ = $routeParams.threadId;
  /** @private */
  this.gmailService_ = gmailService;

  this.status = null;

  this.thread = gmailService.getThread(this.threadId_);

  /**
   * Contains the state related to any replies by the user
   * for this thread.
   * @type {!{baseTitle: string, showText: boolean, content: ?string, attachments: Array<e2email.models.mail.Attachment>}}
   */
  this.reply = {
    'baseTitle': 'reply',
    'content': null,
    'showText': false,
    'attachments': []
  };

  // Run an async task to fetch/decrypt messages in this thread
  // once the view has loaded.
  $scope.$on('$viewContentLoaded', goog.bind(this.refresh_, this));
};

var MessagesCtrl = e2email.pages.messages.MessagesCtrl;

/**
 * Requests the reply compose model to be reset.
 * @param {angular.Scope.Event=} opt_event The event that triggered this call
 * @export
 */
MessagesCtrl.prototype.cancelReply = function(opt_event) {
  if (goog.isDefAndNotNull(opt_event)) {
    opt_event.preventDefault();
  }
  this.reply['baseTitle'] = 'reply';
  this.reply['content'] = null;
  this.reply['showText'] = false;
  this.reply['attachments'] = [];
};

/**
 * @param {string} name The name of the file.
 * @param {string} type The type of the file.
 * @param {string} contents The contents of the file.
 * @param {number} size The size of the file.
 * @export
 */
MessagesCtrl.prototype.onFileUpload = function(name, type, contents, size) {
  var obj = {
    'filename': name,
    'type': type,
    'encoding': 'base64',
    'content': contents,
    'size': size
  };
  this.reply.attachments.push(obj);
};

/**
  * Removes the attachment object from the list of attachments.
  * @param {number} index Index of the file.
  * @export
  */
MessagesCtrl.prototype.removeObj = function(index) {
  this.reply.attachments.splice(index, 1);
};

/**
 * Requests the reply compose model to be initialized, or
 * sent if it was already initialized.
 * @export
 */
MessagesCtrl.prototype.onReply = function() {
  if (!this.reply['showText']) {
    // Initialize the model.
    this.reply['showText'] = true;
    this.reply['baseTitle'] = 'send';
    this.reply['content'] = null;
    this.reply['attachments'] = [];
    setTimeout(function() {
      document.querySelector('textarea').focus();
      document.querySelector('#replyButton').scrollIntoView();
    }, SCROLL_INTO_VIEW_INTERVAL_);
  } else if (goog.isDefAndNotNull(this.reply['content'])) {
    var messageLength = this.reply['content'].length;
    this.gmailService_.encryptAndSendMail(
        this.thread.to, this.threadId_, this.thread.messageId,
        this.thread.subject, this.reply['content'], this.reply['attachments']).
        then(goog.bind(function() {
          return this.gmailService_.refreshThread(this.threadId_);
        }, this)).then(goog.bind(this.cancelReply, this));
  }
};

/**
 * Redirects the application to the thread list view.
 * @export
 */
MessagesCtrl.prototype.showThreads = function() {
  this.location_.path(e2email.constants.Location.THREADS);
};

/**
 * Returns the message thread object within the controller.
 * @return {?e2email.models.mail.Thread}
 * @export
 */
MessagesCtrl.prototype.getMessages = function() {
  return this.thread;
};

/**
 * Returns the thread reply object within the controller.
 * @return {!{baseTitle: string, showText: boolean, content: ?string}}
 * @export
 */
MessagesCtrl.prototype.getReply = function() {
  return this.reply;
};

/**
 * Runs an async task to fetch or decrypt messages in this thread.
 * @private
 */
MessagesCtrl.prototype.refresh_ = function() {
  this.gmailService_.refreshThread(this.threadId_).catch(function(issue) {
    if (goog.isDefAndNotNull(issue.message)) {
      this.errors = issue.message;
    } else {
      this.errors = issue.toString();
    }
  });
};

});  // goog.scope

{'repo_name': 'e2email-org/e2email', 'stars': '814', 'repo_language': 'JavaScript', 'file_name': 'indexeddbstorage.js', 'mime_type': 'text/plain', 'hash': 1056990710657041863, 'source_dataset': 'data'}


filegroup(
    name = "testData",
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)

{'repo_name': 'JetBrains/android', 'stars': '559', 'repo_language': 'Java', 'file_name': 'InspectorPanelModelTest.kt', 'mime_type': 'text/x-c++', 'hash': 4789897867320249033, 'source_dataset': 'data'}


set( SERVICE_ID "00063" )
set( AUTHOR_ID "CROMU" )
add_compile_options( -O0 -g )
set( VULN_COUNT "2" )
buildCB()

{'repo_name': 'trailofbits/cb-multios', 'stars': '381', 'repo_language': 'C', 'file_name': 'pov.c', 'mime_type': 'text/x-c', 'hash': -2650663712362317608, 'source_dataset': 'data'}


package org.ibase4j.service;

import org.ibase4j.model.SysDept;

import top.ibase4j.core.base.BaseService;

/**
 * @author ShenHuaJie
 * @since 2018年4月24日 上午10:59:30
 */
public interface SysDeptService extends BaseService<SysDept> {

}

{'repo_name': 'iBase4J/iBase4J', 'stars': '1461', 'repo_language': 'JavaScript', 'file_name': 'AuthorizeRealm.java', 'mime_type': 'text/plain', 'hash': 2349907313364252679, 'source_dataset': 'data'}


/*
 * This file is part of OpenTTD.
 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 */

/** @file language.h Information about languages and their files. */

#ifndef LANGUAGE_H
#define LANGUAGE_H

#include "core/smallvec_type.hpp"
#ifdef WITH_ICU_I18N
#include <unicode/coll.h>
#endif /* WITH_ICU_I18N */
#include "strings_type.h"

static const uint8 CASE_GENDER_LEN = 16; ///< The (maximum) length of a case/gender string.
static const uint8 MAX_NUM_GENDERS =  8; ///< Maximum number of supported genders.
static const uint8 MAX_NUM_CASES   = 16; ///< Maximum number of supported cases.

/** Header of a language file. */
struct LanguagePackHeader {
	static const uint32 IDENT = 0x474E414C; ///< Identifier for OpenTTD language files, big endian for "LANG"

	uint32 ident;       ///< 32-bits identifier
	uint32 version;     ///< 32-bits of auto generated version info which is basically a hash of strings.h
	char name[32];      ///< the international name of this language
	char own_name[32];  ///< the localized name of this language
	char isocode[16];   ///< the ISO code for the language (not country code)
	uint16 offsets[TEXT_TAB_END]; ///< the offsets

	/** Thousand separator used for anything not currencies */
	char digit_group_separator[8];
	/** Thousand separator used for currencies */
	char digit_group_separator_currency[8];
	/** Decimal separator */
	char digit_decimal_separator[8];
	uint16 missing;     ///< number of missing strings.
	byte plural_form;   ///< plural form index
	byte text_dir;      ///< default direction of the text
	/**
	 * Windows language ID:
	 * Windows cannot and will not convert isocodes to something it can use to
	 * determine whether a font can be used for the language or not. As a result
	 * of that we need to pass the language id via strgen to OpenTTD to tell
	 * what language it is in "Windows". The ID is the 'locale identifier' on:
	 *   http://msdn.microsoft.com/en-us/library/ms776294.aspx
	 */
	uint16 winlangid;   ///< windows language id
	uint8 newgrflangid; ///< newgrf language id
	uint8 num_genders;  ///< the number of genders of this language
	uint8 num_cases;    ///< the number of cases of this language
	byte pad[3];        ///< pad header to be a multiple of 4

	char genders[MAX_NUM_GENDERS][CASE_GENDER_LEN]; ///< the genders used by this translation
	char cases[MAX_NUM_CASES][CASE_GENDER_LEN];     ///< the cases used by this translation

	bool IsValid() const;

	/**
	 * Get the index for the given gender.
	 * @param gender_str The string representation of the gender.
	 * @return The index of the gender, or MAX_NUM_GENDERS when the gender is unknown.
	 */
	uint8 GetGenderIndex(const char *gender_str) const
	{
		for (uint8 i = 0; i < MAX_NUM_GENDERS; i++) {
			if (strcmp(gender_str, this->genders[i]) == 0) return i;
		}
		return MAX_NUM_GENDERS;
	}

	/**
	 * Get the index for the given case.
	 * @param case_str The string representation of the case.
	 * @return The index of the case, or MAX_NUM_CASES when the case is unknown.
	 */
	uint8 GetCaseIndex(const char *case_str) const
	{
		for (uint8 i = 0; i < MAX_NUM_CASES; i++) {
			if (strcmp(case_str, this->cases[i]) == 0) return i;
		}
		return MAX_NUM_CASES;
	}
};
/** Make sure the size is right. */
assert_compile(sizeof(LanguagePackHeader) % 4 == 0);

/** Metadata about a single language. */
struct LanguageMetadata : public LanguagePackHeader {
	char file[MAX_PATH]; ///< Name of the file we read this data from.
};

/** Type for the list of language meta data. */
typedef std::vector<LanguageMetadata> LanguageList;

/** The actual list of language meta data. */
extern LanguageList _languages;

/** The currently loaded language. */
extern const LanguageMetadata *_current_language;

#ifdef WITH_ICU_I18N
extern icu::Collator *_current_collator;
#endif /* WITH_ICU_I18N */

bool ReadLanguagePack(const LanguageMetadata *lang);
const LanguageMetadata *GetLanguage(byte newgrflangid);

#endif /* LANGUAGE_H */

{'repo_name': 'JGRennison/OpenTTD-patches', 'stars': '138', 'repo_language': 'C++', 'file_name': 'FindVersion.cmake', 'mime_type': 'text/plain', 'hash': 6626175728614680277, 'source_dataset': 'data'}


package com.liorkn.elasticsearch;

import com.liorkn.elasticsearch.plugin.VectorScoringPlugin;
import org.apache.commons.io.FileUtils;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.http.BindHttpException;
import org.elasticsearch.index.reindex.ReindexPlugin;
import org.elasticsearch.node.Node;
import org.elasticsearch.node.NodeValidationException;
import org.elasticsearch.painless.PainlessPlugin;
import org.elasticsearch.transport.Netty3Plugin;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Random;

public class EmbeddedElasticsearchServer {
    private static final Random RANDOM = new Random();
    private static final String DEFAULT_DATA_DIRECTORY = "target/elasticsearch-data";
    private static final String DEFAULT_HOME_DIRECTORY = "target/elasticsearch-home";
    private static final int MAX_PORT_RETRIES = 20;

    private Node node;
    private int port;
    private String dataDirectory;

    public EmbeddedElasticsearchServer() throws NodeValidationException {
        this(DEFAULT_DATA_DIRECTORY);
    }

    private EmbeddedElasticsearchServer(String dataDirectory) throws NodeValidationException {
        this(dataDirectory, randomPort());
    }

    private EmbeddedElasticsearchServer(String defaultDataDirectory, int port) throws NodeValidationException {
        this.dataDirectory = defaultDataDirectory;
        this.port = port;

        Settings.Builder settings = Settings.builder()
                .put("http.enabled", "true")
                .put("transport.type", "local")
                .put("http.type", "netty3")
                .put("path.data", dataDirectory)
                .put("path.home", DEFAULT_HOME_DIRECTORY)
                .put("script.inline", "on")
                .put("node.max_local_storage_nodes", 10000)
                .put("script.stored", "on");

        startNodeInAvailablePort(settings);
    }

    private void startNodeInAvailablePort(Settings.Builder settings) throws NodeValidationException {
        int findFreePortRetries = MAX_PORT_RETRIES;
        boolean success = false;

        while(!success) {
            try {
                settings.put("http.port", String.valueOf(this.port));

                // this a hack in order to load Groovy plug in since we want to enable the usage of scripts
                node = new NodeExt(settings.build() , Arrays.asList(Netty3Plugin.class, PainlessPlugin.class, ReindexPlugin.class, VectorScoringPlugin.class));
                node.start();
                success = true;
                System.out.println(EmbeddedElasticsearchServer.class.getName() + ": Using port: " + this.port);
            } catch (BindHttpException exception) {
                if(findFreePortRetries == 0) {
                    System.out.println("Could not find any free port in range: [" + (this.port - MAX_PORT_RETRIES) + " - " + this.port+"]");
                    throw exception;
                }
                findFreePortRetries--;
                System.out.println("Port already in use (" + this.port + "). Trying another port...");
                this.port = randomPort();
            }
        }
    }

    public String getUrl() {
        return "http://localhost:" + port;
    }

    public Client getClient() {
        return node.client();
    }

    public void shutdown() {
        if ( node != null )
            try {
                node.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        deleteDataDirectory();
    }

    private void deleteDataDirectory() {
        try {
            FileUtils.deleteDirectory(new File(dataDirectory));
        } catch (IOException e) {
            throw new RuntimeException("Could not delete data directory of embedded elasticsearch server", e);
        }
    }

    private static int randomPort() {
        return RANDOM.nextInt(500) + 4200;
    }

    public int getPort() {
        return port;
    }
}

{'repo_name': 'lior-k/fast-elasticsearch-vector-scoring', 'stars': '249', 'repo_language': 'Java', 'file_name': 'PluginTest.java', 'mime_type': 'text/x-java', 'hash': -7078601390685344517, 'source_dataset': 'data'}


# coding=utf-8
# Copyright 2018 The DisentanglementLib Authors.  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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Main training protocol used for weakly-supervised disentanglement models."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import os
import time

from disentanglement_lib.data.ground_truth import named_data
from disentanglement_lib.methods.unsupervised import gaussian_encoder_model
from disentanglement_lib.methods.weak import weak_vae  # pylint: disable=unused-import
from disentanglement_lib.utils import results
from disentanglement_lib.visualize import visualize_util
import numpy as np
import tensorflow as tf

import gin.tf.external_configurables  # pylint: disable=unused-import
import gin.tf
from tensorflow_estimator.python.estimator.tpu import tpu_config
from tensorflow_estimator.python.estimator.tpu.tpu_estimator import TPUEstimator

@gin.configurable("dynamics", blacklist=["z", "ground_truth_data",
                                         "random_state",
                                         "return_index"])
def simple_dynamics(z, ground_truth_data, random_state,
                    return_index=False, k=gin.REQUIRED):
  """Create the pairs."""
  if k == -1:
    k_observed = random_state.randint(1, ground_truth_data.num_factors)
  else:
    k_observed = k
  index_list = random_state.choice(
      z.shape[1], random_state.choice([1, k_observed]), replace=False)
  idx = -1
  for index in index_list:
    z[:, index] = np.random.choice(
        range(ground_truth_data.factors_num_values[index]))
    idx = index
  if return_index:
    return z, idx
  return z, k_observed

def train_with_gin(model_dir,
                   overwrite=False,
                   gin_config_files=None,
                   gin_bindings=None):
  """Trains a model based on the provided gin configuration.

  This function will set the provided gin bindings, call the train() function
  and clear the gin config. Please see the train() for required gin bindings.

  Args:
    model_dir: String with path to directory where model output should be saved.
    overwrite: Boolean indicating whether to overwrite output directory.
    gin_config_files: List of gin config files to load.
    gin_bindings: List of gin bindings to use.
  """
  if gin_config_files is None:
    gin_config_files = []
  if gin_bindings is None:
    gin_bindings = []
  gin.parse_config_files_and_bindings(gin_config_files, gin_bindings)
  train(model_dir, overwrite)
  gin.clear_config()

@gin.configurable("model", blacklist=["model_dir", "overwrite"])
def train(model_dir,
          overwrite=False,
          model=gin.REQUIRED,
          training_steps=gin.REQUIRED,
          random_seed=gin.REQUIRED,
          batch_size=gin.REQUIRED,
          name=""):
  """Trains the estimator and exports the snapshot and the gin config.

  The use of this function requires the gin binding 'dataset.name' to be
  specified as that determines the data set used for training.

  Args:
    model_dir: String with path to directory where model output should be saved.
    overwrite: Boolean indicating whether to overwrite output directory.
    model: GaussianEncoderModel that should be trained and exported.
    training_steps: Integer with number of training steps.
    random_seed: Integer with random seed used for training.
    batch_size: Integer with the batch size.
    name: Optional string with name of the model (can be used to name models).
  """
  # We do not use the variable 'name'. Instead, it can be used to name results
  # as it will be part of the saved gin config.
  del name

  # Delete the output directory if necessary.
  if tf.compat.v1.gfile.IsDirectory(model_dir):
    if overwrite:
      tf.compat.v1.gfile.DeleteRecursively(model_dir)
    else:
      raise ValueError("Directory already exists and overwrite is False.")

  # Create a numpy random state. We will sample the random seeds for training
  # and evaluation from this.
  random_state = np.random.RandomState(random_seed)

  # Obtain the dataset.
  dataset = named_data.get_named_ground_truth_data()
  # We create a TPUEstimator based on the provided model. This is primarily so
  # that we could switch to TPU training in the future. For now, we train
  # locally on GPUs.
  run_config = tpu_config.RunConfig(
      tf_random_seed=random_seed,
      keep_checkpoint_max=1,
      tpu_config=tpu_config.TPUConfig(iterations_per_loop=500))
  tpu_estimator = TPUEstimator(
      use_tpu=False,
      model_fn=model.model_fn,
      model_dir=model_dir,
      train_batch_size=batch_size,
      eval_batch_size=batch_size,
      config=run_config)

  # Set up time to keep track of elapsed time in results.
  experiment_timer = time.time()
  # Do the actual training.
  tpu_estimator.train(
      input_fn=_make_input_fn(dataset, random_state.randint(2**32)),
      steps=training_steps)
  # Save model as a TFHub module.
  output_shape = named_data.get_named_ground_truth_data().observation_shape
  module_export_path = os.path.join(model_dir, "tfhub")
  gaussian_encoder_model.export_as_tf_hub(model, output_shape,
                                          tpu_estimator.latest_checkpoint(),
                                          module_export_path)

  # Save the results. The result dir will contain all the results and config
  # files that we copied along, as we progress in the pipeline. The idea is that
  # these files will be available for analysis at the end.
  results_dict = tpu_estimator.evaluate(
      input_fn=_make_input_fn(
          dataset, random_state.randint(2**32), num_batches=1000
          ))
  results_dir = os.path.join(model_dir, "results")
  results_dict["elapsed_time"] = time.time() - experiment_timer
  results.update_result_directory(results_dir, "train", results_dict)
  visualize_dir = os.path.join(model_dir, "visualizations")
  visualize_weakly_supervised_dataset(
      dataset, os.path.join(visualize_dir, "weak"), num_frames=1)

def _make_input_fn(ground_truth_data, seed, num_batches=None):
  """Creates an input function for the experiments."""

  def load_dataset(params):
    """TPUEstimator compatible input fuction."""
    dataset = weak_dataset_from_ground_truth_data(ground_truth_data, seed)
    batch_size = params["batch_size"]
    # We need to drop the remainder as otherwise we lose the batch size in the
    # tensor shape. This has no effect as our data set is infinite.
    dataset = dataset.batch(batch_size, drop_remainder=True)
    if num_batches is not None:
      dataset = dataset.take(num_batches)
    return tf.compat.v1.data.make_one_shot_iterator(dataset).get_next()

  return load_dataset

def weak_dataset_from_ground_truth_data(
    ground_truth_data, random_seed):
  """Generate a tf.data.DataSet disentanglement on weakly-supervised data.

  In this setting we have pairs of frames either temporally close to each other
  or randomly chosen.

  Args:
    ground_truth_data: Dataset class.
    random_seed: Random seed.

  Returns:
    tf.data.Dataset, each point contains two frames stacked along the first dim
    and integer labels.
    For dSprites each point is of type np.array(128, 64, 1).
  """

  def _generator():
    """Generator fn for the dataset."""
    # We need to hard code the random seed so that the data set can be reset.
    random_state = np.random.RandomState(random_seed)
    while True:
      sampled_factors = ground_truth_data.sample_factors(1, random_state)
      sampled_observation = ground_truth_data.sample_observations_from_factors(
          sampled_factors, random_state)

      next_factors, index = simple_dynamics(sampled_factors,
                                            ground_truth_data,
                                            random_state,
                                            return_index=True)
      next_observation = ground_truth_data.sample_observations_from_factors(
          next_factors, random_state)

      label = index
      yield (np.concatenate((sampled_observation, next_observation),
                            axis=1)[0], [label])

  dataset_shape = np.copy(ground_truth_data.observation_shape)
  dataset_shape[0] = dataset_shape[0] * 2
  weakly_supervised_dataset = \
      tf.data.Dataset.from_generator(
          _generator,
          (tf.float32, tf.int32),
          output_shapes=(dataset_shape, 1))

  return weakly_supervised_dataset

def visualize_weakly_supervised_dataset(
    data, path, num_animations=10, num_frames=20, fps=10):
  """Visualizes the data set by saving images to output_path.

  For each latent factor, outputs 16 images where only that latent factor is
  varied while all others are kept constant.

  Args:
    data: String with name of dataset as defined in named_data.py.
    path: String with path in which to create the visualizations.
    num_animations: Integer with number of distinct animations to create.
    num_frames: Integer with number of frames in each animation.
    fps: Integer with frame rate for the animation.
  """
  random_state = np.random.RandomState(0)

  # Create output folder if necessary.
  if not tf.compat.v1.gfile.IsDirectory(path):
    tf.compat.v1.gfile.MakeDirs(path)

  # Create animations.
  images = []
  for i in range(num_animations):
    images.append([])
    factor = data.sample_factors(1, random_state)

    images[i].append(
        np.squeeze(
            data.sample_observations_from_factors(factor, random_state),
            axis=0))
    for _ in range(num_frames):
      factor, _ = simple_dynamics(factor, data, random_state)
      images[i].append(
          np.squeeze(
              data.sample_observations_from_factors(factor, random_state),
              axis=0))

  visualize_util.save_animation(
      np.array(images), os.path.join(path, "animation.gif"), fps)

{'repo_name': 'google-research/disentanglement_lib', 'stars': '887', 'repo_language': 'Python', 'file_name': 'dlib_reproduce_semi_supervised', 'mime_type': 'text/x-python', 'hash': -8732898034177869572, 'source_dataset': 'data'}


<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.lang.*"%>
<jsp:useBean id="connDB" scope="page" class="beans.connDB"/>
<jsp:useBean id="chStr" scope="page" class="beans.chStr"/>
<jsp:include page="safe.jsp"/>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<%
if(request.getParameter("hID")!=null){
	int ID=Integer.parseInt(request.getParameter("hID"));
	String sql="delete from tb_BBS where ID="+ID;
	int ret=0;
	ret=connDB.executeUpdate(sql);
	if (ret!=0){
		out.println("<script language='javascript'>alert('公告信息删除成功！');window.location.href='BBSManage.jsp';</script>");
		}else{
		out.println("<script language='javascript'>alert('公告信息删除失败！');window.location.href='BBSManage.jsp';</script>");
	}
}else{
	out.println("<script language='javascript'>alert('您的操作有误！');window.location.href='BBSManage.jsp';</script>");
}
%>
</body>
</html>

{'repo_name': 'maxliaops/Java_Web_Examples', 'stars': '458', 'repo_language': 'Java', 'file_name': 'MANIFEST.MF', 'mime_type': 'text/plain', 'hash': 2640342797475870689, 'source_dataset': 'data'}


#ifndef BOOST_MPL_MINUS_HPP_INCLUDED
#define BOOST_MPL_MINUS_HPP_INCLUDED

// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.

// $Id$
// $Date$
// $Revision$

#define AUX778076_OP_NAME minus
#define AUX778076_OP_TOKEN -
#include <boost/mpl/aux_/arithmetic_op.hpp>

#endif // BOOST_MPL_MINUS_HPP_INCLUDED

{'repo_name': 'Illu/moonwalk', 'stars': '137', 'repo_language': 'TypeScript', 'file_name': 'Info.plist', 'mime_type': 'text/xml', 'hash': 8018289330886589494, 'source_dataset': 'data'}