Dataset Viewer
Auto-converted to Parquet Duplicate
language
stringclasses
5 values
text
stringlengths
15
988k
JavaScript
class TokenUser { get createdOstStatus() { return 'CREATED'; } get activatingOstStatus() { return 'ACTIVATING'; } get activatedOstStatus() { return 'ACTIVATED'; } get ostStatuses() { const oThis = this; return { '1': oThis.createdOstStatus, '2': oThis.activatingOstStatu...
JavaScript
class RegisterBlock extends Component { constructor(props){ super(props); this.state = { User: {}, usernameState: STATUS.NO_INPUT, emailState: STATUS.NO_INPUT, passwordState: STATUS.NO_INPUT, passwordSuggestState: { status: STATUS.VALID, eightCharacters: STATUS.NO_INPUT, oneUpperCase: S...
JavaScript
class MatRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatCellHarness; } /** * Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes. * @param options Options for narrowing the search * ...
JavaScript
class MatHeaderRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatHeaderCellHarness; } /** * Gets a `HarnessPredicate` that can be used to search for * a table header row with specific attributes. * @param options Options for na...
JavaScript
class MatFooterRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatFooterCellHarness; } /** * Gets a `HarnessPredicate` that can be used to search for * a table footer row cell with specific attributes. * @param options Options f...
JavaScript
class Cursor { // DOM elements DOM = { // Main element (.cursor) el: null, } // Properties that will change renderedStyles = { // With interpolation, we can achieve a smooth animation effect when moving the cursor. // The "previous" and "current" values are the value...
JavaScript
class HttpMethod { /** * Instance an object * @param methods array to list all avaiable http methods * @param checked determines the current selected http methods by user * @param subPrefix DOM id, needed to access the sub contents from the current method. */ constructor(methods, checked, subPrefix) ...
JavaScript
class ModelSet extends BaseClass { constructor(iterable) { this._size = 0; if(iterable) { this.addObjects(iterable); } } get size() { return this._size; } /** Clears the set. This is useful if you want to reuse an existing set without having to recreate it. ```javascrip...
JavaScript
class XwInvalidStateError extends Error { /** * @constructor * @param {string} [reason] Reason related to the invalid state */ constructor(reason) { const _reason = xw.defaultable(reason); super(_formatMessage(_reason)); this.reason = _reason; } }
JavaScript
class ReservedInstances { /** * Constructs a new <code>ReservedInstances</code>. * Describes a Reserved Instance. * @alias module:model/ReservedInstances */ constructor() { ReservedInstances.initialize(this); } /** * Initializes the fields of this object. ...
JavaScript
class Terminal { constructor(selector, words) { this.wordbank = words; this.terminal = document.querySelector(selector); this.prompt = new Prompt('#answers'); this.MAX_TOTAL_CHARS = 12 * 32; this.MAX_HALF_CHARS = 12 * 16; } /** * Displays the terminal or display...
JavaScript
class Chart { /** * Constructor. * * @param {selection} parent The selected D3 parent element container * @param {Configuration} configuration The application configuration */ constructor(parent, configuration) { this._configuration = configuration; this._...
JavaScript
class Bridge { constructor (socket, app) { this.didAuth = false this.sessionId = '' this.checkSession = app.get('checkSession') this.changeSessionState = app.get('changeSessionState') this.socket = socket this.udp = null socket.on('message', this.clientToGrid.bind(this)) socket.on('...
JavaScript
class BusinessDashboardParent extends React.Component{ /* ----------------------------------------------------------------------------- Constructor is used for state design, modularized to pass as props ----------------------------------------------------------------------------- */ constructor(props){ super(pro...
JavaScript
class CoreBadge extends HTMLElement { /** * Initialize private fields, shadowRoot and the view */ constructor() { super(); // Initialize all private fields this._value = this.getAttribute('value') || undefined; this._max = this.getAttribute('max') || undefined; this._isDot = this.hasAttr...
JavaScript
class StatusMessage { /** * * @param {Integer} pProgress * @param {String} pMessage * @constructor */ constructor( pProgress, pMessage=""){ this.progress = pProgress; this.msg = pMessage; this.extra = null; Logger.debug('<status message> : NEW : ',pMe...
JavaScript
class ToStringBuilder { constructor(object, style, buffer) { if (((object != null) || object === null) && ((style != null && style instanceof org.openprovenance.apache.commons.lang.builder.ToStringStyle) || style === null) && ((buffer != null && (buffer instan...
JavaScript
class RestMetaCollection { /** * Constructs a new <code>RestMetaCollection</code>. * @alias module:model/RestMetaCollection * @class */ constructor() { } /** * Constructs a <code>RestMetaCollection</code> from a plain JavaScript objec...
JavaScript
class RootReference { constructor(env) { this.env = env; this.children = dict(); this.tag = CONSTANT_TAG; } get(key) { // References should in general be identical to one another, so we can usually // deduplicate them in production. However, in DEBUG we need unique references // so we can...
JavaScript
class PropertyReference { constructor(parentReference, propertyKey, env) { this.parentReference = parentReference; this.propertyKey = propertyKey; this.env = env; this.children = dict(); this.lastRevision = null; if (DEBUG) { env.setTemplatePathDebugContext(this, propertyKey, parentRefe...
JavaScript
class IterationItemReference { constructor(parentReference, itemValue, itemKey, env) { this.parentReference = parentReference; this.itemValue = itemValue; this.env = env; this.tag = createUpdatableTag(); this.children = dict(); if (DEBUG) { env.setTemplatePathDebugContext(this, debugToS...
JavaScript
class Recurring { /** * Init * @param {UnzerSimple} unzer Unzer main class */ constructor(unzer) { this._urlpath = '/types'; this._unzer = unzer; } /** * GET recurring state * * @link https://docs.unzer.com/reference/api/#get-/v1/types/{methodid}/r...
JavaScript
class Grid3D extends Grid { /** Constructor of the Grid3D object. * @param {GridSize} extents - the size of the grid in each dimension * @param {boolean[]} [torus = [true,true,true]] - should the borders of * the grid be linked, so that a cell moving out on the left reappears on * the right? */ constructor( ...
JavaScript
class Event { /** * Initializes a new Event * * @param {Object} config Event configuration object * @param {String} config.name Event name * @param {String} [config.discordEventName = ''] Name of discord.js event that triggers this Event * @param {Function} config.handler Event function * @param ...
JavaScript
class CreatePodForm extends Component { initialState = { name: "", description: "", }; constructor(props) { super(props); this.state = this.initialState; // any method using this keyword must bind // example: this.method = this.method.bind(this) } componentDidMount() { // Things ...
JavaScript
class Tab extends Node { /** * @param {string} label - text label for the tab * @param {EnumerationProperty.<PreferencesDialog.<PreferencesTab>} property * @param {PreferencesDialog.PreferencesTab} value - PreferencesTab shown when this tab is selected */ constructor( label, property, value ) { co...
JavaScript
class BaseModel { constructor() { /** @const the underlying mongoose model used for queries */ this.mongooseModel_ = this.createMongooseModel_() } /** * Returns the model schema. The child class must implement the static schema * property. * @return {string} the models schema */ getSchema()...
JavaScript
class State { /** * Set page map * @param {PageMap} pageMap - page map * @example State.setPageMap(new PageMap()); */ static setPageMap(pageMap) { this.pageMap = pageMap; } /** * Set current page by Name * @param {string} pageName - name of page ot set * @exa...
JavaScript
class PieceState { // creates a new piece with a given color and id constructor(color, id) { this._color = color this._id = id this._state = State.HOME this._location = null this._capturer = null this.selected = false } get color() { return this._color } get id() { return t...
JavaScript
class Choice { constructor (value, index, label, selected, image) { this.CHOICE_INDEX = index this.CHOICE_VALUE = String(value) this.CHOICE_LABEL = label if (selected) { this.CHOICE_SELECTED = true } else { this.CHOICE_SELECTED = false } this.CHOICE_IMAGE = image } }
JavaScript
class PhobosClient extends Client { /** * Create a PhobosClient * @param {object} options Discord.js Client options */ constructor (options) { super(options) /** * Configs defined in src/config.js * @type {object} */ this.config = config /** * Contains categories that ...
JavaScript
class FilterSelectionInput extends React.Component { constructor( props ) { super( props ); this.state = Object.assign( {}, props, { isModalOpen: false, 'labelText': 'Filter' } ); this.onClearButtonClick = this.onClearButtonClick.bind( this ); this....
JavaScript
class EtiquetasController { /** * @param $uibModal * @param toastr * @param {EtiquetasService} EtiquetasService * @param {ProcesosService} ProcesosService * @param {ActividadesService} ActividadesService * @param AppConfig * **/ constructor($uibModal, toastr, EtiquetasSe...
JavaScript
class SeparatorHeader extends Component { view() { return <li className="Dropdown-separator TagInject--Utility-Header">{app.translator.trans('flagrow-utility-tag-inject.forum.tags.utility-header')}</li>; } }
JavaScript
class Group{ /** * Builds a new group. * @param {string} name - Required parameter. The name of the group. * @param {string} startDate - Optional parameter. The date when the group was founded. Defaults to "". * @param {string} endDate - Optional parameter. The date when the group broke apart. Defa...
JavaScript
class SelectResourcePlugin extends BasePlugin { constructor(opts) { super(opts || {}); // frequency for crawling resources if (this.opts.crawlFrequency) { this.opts.crawlFrequency = parseInt(this.opts.crawlFrequency, 10); } } // eslint-disable-next-line class-methods-use-this getPhase() ...
JavaScript
class ChatService{ constructor(API, UserService){ 'ngInject'; this.API = API; this.UserService = UserService; } /** * getConversations gets conversations involving this user and other users * @return {promise} promise of data */ getConversations(){ return t...
JavaScript
class BaseFormField extends React.Component { constructor(props) { super(props); this.htmlId = `form-field-${this.props.name}`; this.state = { value: props.initial }; } validateField() { let value = this.state.value || ""; if (this.props.required && value.length <= 0) { throw ...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
15