text stringlengths 3 1.05M |
|---|
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: model.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflect... |
import { promises as fsp } from "fs";
import { join } from "path";
const defaultOptions = {
prefix: "classnames",
};
function hyphenToCamel(str) {
return str.replace(/-\w/g, match => match[1].toUpperCase());
}
export default function(cssFileDir, options = {}) {
options = { ...defaultOptions, ...options };
if... |
""" RobotX Tests Trigger
This is for running all RobotX tests.
Usage: python runtests.py
"""
import os
import tempfile
from robot import run
def run_tests():
test_path = os.path.curdir
tmp_path = tempfile.gettempdir()
output_dir = os.path.join(tmp_path, "robotx_test_result")
os.mkdir(output_dir)
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+react_native
* @format
*/
/* global element, by, expect */
// Will open a component example from the root list... |
import React from 'react';
import PropTypes from 'prop-types';
import Network from '../utilities/network';
import dayjs from 'dayjs';
import { navigation, Icon, Button } from 'nr1';
import FormatService from '../utilities/format-service';
import { hostname } from 'os';
export default class CurrentIncidents extends Re... |
$(document).ready(function(){
$('form.ajax').submit(function(){
// Call ajax for pass data to other place
$.ajax({
type: 'GET',
url: 'validation.php',
data: $(this).serialize() // getting filed value in serialize form
})
.... |
"""Update platform for Supervisor."""
from __future__ import annotations
from typing import Any
from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
from homeassistant.components.update import (
UpdateEntity,
UpdateEntityDescription,
UpdateEntityFeature,
)
from homeassistant.config_entries i... |
var stompClient;
function toggle() {
if (stompClient && stompClient.connected) {
close();
} else {
subscribe();
}
}
function append(text) {
var content = document.getElementById('content');
content.innerHTML = content.innerHTML + '<p>' + text + '</p>';
}
function subscribe() {
var socket = new So... |
const { check, validationResult } = require('express-validator/check');
const customValidators = require('../helpers/validators')
module.exports = function (app) {
var content = require('../content/content');
var routeSettings = routeSettings === undefined ? "default" : routeSettings;
const version = 'pyi18b';
/*... |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const webpack = require('webpack');
const path = require('path');
const PATHS = {
src: path.join(__dirname, '../src'),
dist: path.join(__dirname, '../dist')
};
module.exports = {
context: __... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... |
var _ = require('lodash');
_.mixin(require('lodash-deep'));
var findParent = function (object, path, callback) {
var parent = object;
var key = path;
var keys = path.split('.');
if (keys.length > 1) {
for (var i = 0, length = keys.length - 1; i < length; i++) {
parent = parent[keys[i]] || (parent[keys[i]] = ... |
/*global _, Backbone, WpmlTmEditorModel, tmEditorStrings, jQuery, tmEditor, document */
var WPML_TM = WPML_TM || {};
(function () {
"use strict";
WPML_TM.editorMainView = Backbone.View.extend({
events: {
'change .icl_tm_finished': 'updateState'
},
updateState: function () {
var self = this;
self.foo... |
Highcharts.maps["countries/cn/632323"] = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":632323,"name":"泽库县","center":[101.469343,35.036842],"centroid":[101.405752,35.100555],"childrenNum":0,"level":"district","acroutes":[100000,630000,632300],"parent":{"adcode":632300},"longitude":101.... |
import Mock from '../mock'
import jwt from 'jsonwebtoken'
const JWT_SECRET = 'jwt_secret_key'
const JWT_VALIDITY = '7 days'
const userList = [
{
id: 1,
role: 'SA',
name: 'admin',
username: 'admin',
email: 'admin@wdti.com',
avatar: '/assets/images/user.j... |
var Backbone = require('backbone');
module.exports = Backbone.View.extend({
template: require('../../templates/entity/finish.jst'),
attachToTemplate: false
});
|
'use strict';
var product = {
productList: function(req, res, next){
//console.log("Request Params: " + JSON.stringify(req.query));
req.query.limit = req.query.limit ? parseInt(req.query.limit, null) : 20;
req.query.page = req.query.page ? parseInt(req.query.page, null) : 1;
req.query.sort = req.query... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import styled from 'styled-components';
import { Tabs } from 'antd';
import {
H1,
P,
StyledPrimaryButton,
StyledNormalButton,
FlexRowContainer,
} from '../../components';
const { TabPane } = Tabs;
export const AccountTabs = styled(Tabs)`
height: 100%;
.ant-tabs-bar {
margin: 0;
}
.ant-tabs-conten... |
/*
Copyright 2019 Gravitational, Inc.
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, soft... |
"""
fit HDDM model, with history terms, to data from IBL mice
Anne Urai, 2019, CSHL
"""
# ============================================ #
# GETTING STARTED
# ============================================ #
import matplotlib as mpl
mpl.use('Agg') # to still plot even when no display is defined
from optparse import Opt... |
const BaseController = require("./base.controller");
const SitemapHandler = require("../handlers/sitemap");
class SitemapController extends BaseController {
constructor() {
super();
this._sitemapHandler = new SitemapHandler();
}
getSitemap(req, res, next) {
const response = this._responseM... |
/*! Swipebox v1.3.0 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
!function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:false,initialIndexOnArray:0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afte... |
const path = require('path');
const PATHS = require('./paths');
module.exports = function() {
return {
webpack: {
mode: 'development',
devtool: 'inline-source-map',
stats: 'errors-only',
performance: {
hints: false
},
resolve: {
extensions: ['.ts', '.tsx', '.js... |
import RealmObject from '../engine/object';
import SpriteSheet from '../engine/spritesheet';
class Tile extends RealmObject {
constructor(options = {}) {
super(...arguments);
this.ctx = options.ctx || null;
this.x = options.x || this.x;
this.y = options.y || this.y;
this.siz... |
import pandas as pd
from nltk import RegexpTokenizer
from preprocessing import first
import numpy as np
import heapq
from numpy.linalg import norm
import pickle
import os
np.set_printoptions(suppress=True)
import Search_engine as se
def index(f_list,voc,vocI, field):
''' It creates the index dictionary where the k... |
import { AsyncQueue } from "./AsyncQueue";
export class AISource {
constructor() {
this.messages = new AsyncQueue();
self.onmessage = (message) => this.messages.put(message);
}
async postMessage(message, transfer) {
self.postMessage(message, transfer)
return this.messages.get();
}
reply(... |
export default {
dns: process.env.SENTRY_DSN
};
|
/*
* Copyright 2020 Marc Nuri
*
* 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... |
import AdapterFn from '../AdapterFn';
const C = {
URL: 'https://api.coinlore.net/api'
};
const _isArr = Array.isArray
, { crError } = AdapterFn;
const ClApi = {
getRequestUrl(option){
const { items=[] } = option
, { v:id } = items[0];
return `${C.URL}/exchange/?id=${id}`;
},
checkResponse(json, o... |
[{"terms": {"D3.js": {"full_term": "D3.js", "count": 6, "percentage": 2.47, "rank": 53, "mavg3": 0}, "Ansible": {"full_term": "Ansible", "count": 1, "percentage": 0.41, "rank": 97, "mavg3": 0}, "Solr": {"full_term": "Solr", "count": 3, "percentage": 1.23, "rank": 68, "mavg3": 0}, "Selenium": {"full_term": "Selenium", "... |
var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st... |
# flake8:NOQA
"""Python asteroid airburst calculator"""
from .solver import *
from .damage import *
from .locator import *
from .mapping import *
|
'use strict'; +package; |
import React from 'react';
require('./Slider.scss');
import Item from './Item';
import Dots from './Dots';
import Arrows from './Arrows';
class Slider extends React.Component {
constructor(props) {
super(props);
this.state = {
position: 0
}
this.go = this.go.bind(this);
this.pause = this... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import MockAsyncStorage from 'mock-async-storage';
const mockIm... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayInsMarketingCertificateBatchcreateModel import AlipayInsMarketingCertificateBatchcreateModel
class AlipayInsMark... |
import FieldMargin from './FieldMargin'
export default FieldMargin
|
from tapis_cli.display import Verbosity
from tapis_cli.search import SearchWebParam
from tapis_cli.clients.services.mixins import ServiceIdentifier
from tapis_cli.commands.taccapis import SearchableCommand
from . import API_NAME, SERVICE_VERSION
from .models import System
from .formatters import SystemsFormatOne
from... |
/**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
var fs ... |
__version__ = '1.1'
from .completer import *
from .evaluator import *
|
# API messages
USER_DOES_NOT_EXIST_ERROR = "user does not exist"
ARTICLE_DOES_NOT_EXIST_ERROR = "article does not exist"
ARTICLE_ALREADY_EXISTS = "article already exists"
USER_IS_NOT_AUTHOR_OF_ARTICLE = "you are not an author of this article"
INCORRECT_LOGIN_INPUT = "incorrect email or password"
USERNAME_TAKEN = "use... |
'use strict';
// Use local.env.js for environment variables that grunt will set when the server starts locally.
// Use for your api keys, secrets, etc. This file should not be tracked by git.
//
// You will need to set these on the server you deploy to.
module.exports = {
DOMAIN: 'http://localhost:9000',
... |
/* import React from 'react';
import TextField from '@material-ui/core/TextField'
import Button from '@material-ui/core/Button'
import { signupUser } from '../actions/index'
import { connect } from 'react-redux'
import history from '../history';
class Signup extends React.Component {
state = {
name: '',
... |
'use strict';
const
abFields = require('ab-fields'),
abStrings = require('ab-strings'),
js0 = require('js0'),
spocky = require('.')
;
export default class FieldInfo
{
static get Types() {
return Types;
}
constructor(fieldsHelper, repeatInfo, fieldPath, includesPrefix)
{
... |
g_db.quests[704]={id:704,name:"^ffffffThe Migrating Minkii",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:0,can_retake_after_failure:1,on_fail_parent_fail:1,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_deat... |
const axios = require('../axios.js')
const semColor = require('../utils/sem-color.js')
const v = require('../utils/version-formatter.js')
module.exports = async (topic, project) => {
const endpoint = `https://pypi.org/pypi/${project}/json`
const { info } = await axios.get(endpoint).then(res => res.data)
switch ... |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.shadow.alpha.4
// Description:Shadows with alpha components are correctly affected by globalAlpha
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests... |
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'uiComponent',
'jquery',
'ko',
'underscore',
'Magento_Ui/js/modal/alert',
'uiRegistry',
'mage/translate'
], function (Component, $, ko, _, alert, registry, $t) {
'use strict';
... |
/*
SPDX-License-Identifier: Apache-2.0
*/
'use strict';
// Utility class for collections of ledger states -- a state list
const StateList = require('./../ledger-api/statelist.js');
const DigitBook = require('./book.js');
class BookList extends StateList {
constructor(ctx) {
super(ctx, 'org.papernet.di... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pip
from pip.req import parse_requirements
from setuptools import setup, find_packages
requirements = [str(r.req) for r in
parse_requirements('requirements.txt',
session=pip.download.PipSession())]
setup(
nam... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.ArticlePicture import ArticlePicture
class ArticleParagraph(object):
def __init__(self):
self._pictures = None
self._text = None
@property
... |
import {
PRODUCT_LIST_REQUEST,
PRODUCT_LIST_SUCCESS,
PRODUCT_LIST_FAIL,
PRODUCT_DETAILS_REQUEST,
PRODUCT_DETAILS_SUCCESS,
PRODUCT_DETAILS_FAIL,
PRODUCT_DELETE_REQUEST,
PRODUCT_DELETE_SUCCESS,
PRODUCT_DELETE_FAIL,
PRODUCT_CREATE_RESET,
PRODUCT_CREATE_SUCCESS,
PRODUCT_CREATE_FAIL,
PRODUCT_CREATE... |
#!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
f... |
var bcrypt = require("bcrypt"),
jwt = require("jsonwebtoken"),
mongoose = require("mongoose"),
config = require("./../config/config").get(process.env.NODE_ENV),
SALT_I = 10;
const userSchema = mongoose.Schema({
email: {
type: String,
required: true,
trim: true,
unique: 1
},
password: {
... |
/**
* The Pantropical layer module for use on canvas.
*
* @return GrumpLayer class (extends ImageLayerClass)
*/
define([
'abstract/layer/ImageLayerClass',
], function(ImageLayerClass) {
'use strict';
var GrumpLayer = ImageLayerClass.extend({
options: {
urlTemplate: 'https://s3.amazonaws.com/grump... |
if (!HTMLCanvasElement.prototype.toBlob) {
Object.defineProperty(HTMLCanvasElement.prototype, 'toBlob', {
value: function(callback, type, quality) {
var canvas = this
setTimeout(function() {
var binStr = atob(canvas.toDataURL(type, quality).split(',')[1])
var len = binStr.length
... |
define(['jquery'], function ($) {
var defaults = {
id: '',
url: '',
limit: -1
},
methods = {
init: function (options) {
var settings = $.extend(true, {}, defaults, options);
this.createDom(settings);
this... |
import React from 'react';
const HelpPage = () => (
<p>
Help
</p>
);
export default HelpPage;
|
'use strict';
module.exports = {
type: 'NewsArticle',
elements() {
return [
{
name: 'newsArticle',
selector: {
type: 'getElementById',
value: this.options.newsArticleId,
},
},
{
name: 'newsArticleImage',
selector: {
type: '... |
/* */
module.exports = require('./function/index');
|
import Vue from 'vue';
Vue.mixin({
methods: {
handleError(error) {
if (Object.prototype.hasOwnProperty.call(this, 'loading')) {
this.loading = false;
}
const { status, data } = error.response;
if ([401, 419].includes(status) && this.$store.s... |
import BasicLayout from '@/layouts/basic-layout';
const meta = {
auth: true
};
const pre = 'search-';
export default {
path: '/search',
name: 'search',
redirect: {
name: `${pre}search-article`
},
meta,
component: BasicLayout,
children: [
{
path: 'search-art... |
/* globals module, describe, beforeEach, inject, it, expect, spyOn */
var $declaration_to_test = require('./$file_that_exports_declaration');
describe('$file_that_exports_declaration', function() {
// variables
var scope;
/* TODO additional variables for each mock */
// definition
angular.module('$file_th... |
macDetailCallback("b0e03c000000/24",[{"d":"2014-11-04","t":"add","a":"NO.86 hechang 7th road, zhongkai hi-tech distrct\nHui Zhou Guang Dong 516006\n\n","c":"CHINA","o":"TCT mobile ltd"},{"d":"2015-08-27","t":"change","a":"NO.86 hechang 7th road, zhongkai hi-tech distrct\nHui Zhou Guang Dong 516006\n\n","c":"CN","o":"... |
const path = require('path');
const express = require('express');
const session = require('express-session');
const exphbs = require('express-handlebars');
const SequelizeStore = require('connect-session-sequelize')(session.Store);
const routes = require('./controllers');
const sequelize = require('./config/connection'... |
var buster = require('buster');
var assert = buster.assertions.assert;
var refute = buster.assertions.refute;
var bls = require("../backbone.localstoragesync");
buster.testCase('Setup', {
'Is a function': function () {
assert.isFunction(bls);
},
'Returns original sync without localStorage': functi... |
/* eslint-disable */
var icon = require('vue-svgicon')
icon.register({
'font-awesome/android': {
width: 1792,
height: 1792,
viewBox: '0 0 1792 1792',
data: '<path pid="0" d="M685 483q16 0 27.5-11.5T724 444t-11.5-27.5T685 405t-27 11.5-11 27.5 11 27.5 27 11.5zm422 0q16 0 27-11.5t11-27.5-11-27.5-27-11.5-... |
const {
ul,
li,
ol,
a,
span,
hr,
div,
text,
img,
button,
nav,
script,
domReady,
i,
} = require("./tags");
const labelToId = (item) => text(item.replace(" ", ""));
const active = (currentUrl, item) =>
(item.link && currentUrl.startsWith(item.link)) ||
(item.subitems &&
item.subitems... |
$(function () {
var status=$('#usersfilter').val();
var url = $('#userlist').data('controller');
var urlallusers = url+'readAllusers';
window.setTimeout(function(){
$('.alert').hide()
},5000);
getusersbystatus(urlallusers,status)
});
function getusersbystatus(url,status)
{
var fo... |
//
// showdown.js -- A javascript port of Markdown.
//
// Copyright (c) 2007 John Fraser.
//
// Original Markdown Copyright (c) 2004-2005 John Gruber
// <http://daringfireball.net/projects/markdown/>
//
// Redistributable under a BSD-style open source license.
// See license.txt for more information.
//
// The full s... |
const asyncAuto = require('async/auto');
const {enforceForwardRequestRules} = require('ln-sync');
const {returnResult} = require('asyncjs-util');
const disableAllForwards = 0;
const hoursAsSeconds = hours => hours * 60 * 60;
const {isArray} = Array;
const isEdge = n => !!n && /^[0-9A-F]{66}\/[0-9A-F]{66}$/i.test(n);
... |
var callbackArguments = [];
var argument1 = false;
var argument2 = 8.407558209180745e+307;
var base_0 = [82,0,460]
var r_0= undefined
try {
r_0 = base_0.filter(argument1,argument2)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefined) return a;
var ... |
import React from 'react'
import { Link as GatsbyLink } from 'gatsby'
import { Box, Flex, Heading, Text, Link } from 'gatsby-ui'
export default ({
title,
twitterHandle,
githubHandle,
brand = "grays.8",
...props
}) => {
return (
<Box
p={[3, 4, 4]}
{...props}
>
<Flex justifyContent=... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$('.select2').select2();
$.ajax({
url: 'getusergroups',
type: "GET",
dataType: 'json',
success: function (data) {
... |
/* ------------------------------------------------------------------
* node-onvif - service-events.js
*
* Copyright (c) 2016 - 2017, Futomi Hatano, All rights reserved.
* Released under the MIT license
* Date: 2017-08-26
* ---------------------------------------------------------------- */
'use strict';
const mUrl ... |
import React, { Component } from "react";
import { Button } from "reactstrap";
import { Redirect } from "react-router-dom";
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
navigate: false,
}
this.onLogoutHandler=this.onLogoutHandler.bind(this)
}
onLogo... |
import numpy as np
from scipy import stats
import scipy
import math
# if data is not a frequency distribution
x = np.array([1,2,3,4,5])
mean = np.mean(x)
n = x.size
x_minus_mean= x-mean
x_minus_mean_square = np.square(x_minus_mean)
x_minus_mean_square_sum = np.sum(x_minus_mean_square)
standard_deviation = math.sqrt(x... |
"use strict";
/**
* Copyright © 2019 Johnson & Johnson
*
* 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 ... |
define(["exports", "./boot.js"], function (_exports, _boot) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.flush = flush;
_exports.beforeNextRender = beforeNextRender;
_exports.afterNextRender = afterNextRender;
/**
@license
Copyright (c) 2017 The Polyme... |
import $ from 'jquery';
import env from '../core/env';
export default class HelpDialog {
constructor(context) {
this.context = context;
this.ui = $.summernote.ui;
this.$body = $(document.body);
this.$editor = context.layoutInfo.editor;
this.options = context.options;
this.lang = this.options... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Logo from '../../Logo/Logo';
import NavigationItems from '../NavigationItems/NavigationItems';
import DrawerToggle from '../SideDrawer... |
"""
Add document web_uri column
Revision ID: 3e1727613916
Revises: a001b7b4c78e
Create Date: 2016-09-12 13:21:56.739838
"""
from __future__ import unicode_literals
from alembic import op
import sqlalchemy as sa
revision = "3e1727613916"
down_revision = "a001b7b4c78e"
def upgrade():
op.add_column("document", ... |
export const displayBehaviors=function(SuperClass){return class extends SuperClass{static get properties(){let props={bordered:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0},caption:{type:String,value:null,notify:!0},columnHeader:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0},csvData:{type:String,valu... |
import assert from 'node:assert';
import * as parse5 from '../lib/index.js';
import { Parser } from '../lib/parser/index.js';
import { generateParsingTests } from '../../../test/utils/generate-parsing-tests.js';
import { treeAdapters } from '../../../test/utils/common.js';
const origParseFragment = Parser.prototype.pa... |
// tiny-rbac
module.exports = {
validateResourceCollection: require('./validateResourceCollection.js'),
validateRoleRegistry: require('./validateRoleRegistry.js'),
Session: require('./Session.js'),
}
|
/**
* @license Copyright (c) 2014-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js';
import Autoformat from '@ckeditor/ckeditor5-autoformat/... |
#
# Copyright (c) 2019 by Delphix. All rights reserved.
#
import re
import enum
import six
from dlpx.virtualization.common import RemoteConnection, RemoteEnvironment, \
RemoteHost
from dlpx.virtualization.common.exceptions import IncorrectTypeError
from dlpx.virtualization.platform.exceptions import \
Incorrec... |
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{de... |
tinymce.addI18n('zh_TW',{
"Cut": "\u526a\u4e0b",
"Heading 5": "\u6a19\u984c 5",
"Header 2": "\u6a19\u984c 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u60a8\u7684\u700f\u89bd\u5668\u4e0d\u652f\u63f4\u5b58\u53d6\u526a\u8cbc\u7c3f\uff0c\u53e... |
/* @flow */
import { promisify } from 'util'
export default promisify(setTimeout)
|
var baseConfig = require('./base-config');
module.exports = {
generate: function (seq) {
var config = baseConfig.generate('WORKER', seq);
config.version = version(),
config.modules = {};
config.components = {
'happner-cluster-info': {
accessLevel: 'mesh',
startMethod: 'star... |
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* Open... |
from django.db import models
# Create your models here.
class ComLanguage(models.Model):
name = models.CharField(
max_length=20,
verbose_name='语言名字'
)
desc = models.CharField(
max_length=200,
verbose_name='描述',
null = True
)
def get_desc(self):
retur... |
import { escapeHtml, unescapeHtml } from '../strings'
/**
* Tracks some basic types that we convert for different languages. We don't need to try to
* maintain a list for every type for every language we support, however we do want to track some
* common types, such as hash, void, and primary types to minimize conf... |
import json
from pyrsistent import thaw
from pyrsistent import v
from task_processing.interfaces.event import Event
from task_processing.interfaces.event import json_deserializer
from task_processing.interfaces.event import json_serializer
from task_processing.interfaces.persistence import Persister
class FilePersi... |
from django.urls import path,re_path
from django.contrib.auth import views as auth_views
from . import views as main_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('',main_views.register,name='register'),
path('accounts/profile/',main_views.profile,name='prof... |
const newFormHandler = async (event) => {
event.preventDefault();
const title = document.querySelector("#blog-title").value.trim();
const description = document.querySelector("#blog-desc").value.trim();
if (title && description) {
const response = await fetch(`/api/blogs`, {
method... |
import argparse
import sys
import uuid
import chess
import chess.engine
import requests
parser = argparse.ArgumentParser(description="Simple Versus client")
parser.add_argument("-u", "--url",
help="URL or IP of the Versus instance",
default="http://localhost",
... |
import logging
import os
import shutil
from hyp3lib import OrbitDownloadError
from hyp3lib.SLC_copy_S1_fullSW import SLC_copy_S1_fullSW
from hyp3lib.execute import execute
from hyp3lib.getBursts import getBursts
from hyp3lib.get_orb import downloadSentinelOrbitFile
from hyp3lib.par_s1_slc_single import par_s1_slc_sing... |