text
stringlengths
3
1.05M
# 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...
'use strict'; angular.module('users') .directive('passwordVerify', function() { return { require: 'ngModel', scope: { passwordVerify: '=' }, link: function(scope, element, attrs, modelCtrl) { scope.$watch(function() { var combined; if (scope.passwordVer...
# coding=utf-8 # Copyright (c) 2019 Alibaba PAI team. # # 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 ...
# -*- coding: utf-8 -*- """ Created on Sun Nov 15 14:32:26 2015 @author: Administrator """ import csv, sqlite3 import pandas as pd #Create table and import csv file in sqlite3 database #con = sqlite3.connect("../sqlite/test") #cur = con.cursor() #cur.execute("CREATE TABLE 'testSqlite1' ('policyID', 'statecode', 'cou...
from __future__ import print_function # we only need to be able to run this file on 2.7 # don't introduce a pandas/pandas.compat import # or we get a bootstrapping problem from StringIO import StringIO import numpy as np _int64_max = np.iinfo(np.int64).max header = """ cimport numpy as np cimport cython from libc.st...
# Connor Sanders # 10/26/2017 # Twitter Market Sentiment Analysis - Config File ''' consumer_key = 'YOUR-CONSUMER-KEY' consumer_secret = 'YOUR-CONSUMER-SECRET' access_token = 'YOUR-ACCESS-TOKEN' access_secret = 'YOUR-ACCESS-SECRET' ''' batch_size = 100 hash_obj = {'comcast': ['comcast', 'xfinity'], 'att': [...
let formattedReceivedString = "" let receivedMessage = "" let letter = "" let dividingCharacter = "" let finalMessage = "" let message = "" let receivedString = "" input.onButtonPressed(Button.A, () => { message = "" + message + "*" }) input.onGesture(Gesture.LogoUp, () => { message = message + dividingCharacte...
import React from 'react'; import _ from 'lodash'; import ReplOutput from '../common/ReplOutput'; import ReplCommon from '../common/ReplCommon'; import ReplDOM from '../common/ReplDOM'; import ReplOutputGridViewer from './ReplOutputGridViewer'; import ReplOutputChartViewer from './ReplOutputChartViewer'; import ReplAct...
module.exports = { // pathPrefix: '/scifi', siteMetadata: { title: 'SciFi - Cloudera Fast Forward Labs', }, plugins: [ `gatsby-plugin-styled-components`, 'gatsby-plugin-react-helmet', { resolve: `gatsby-source-filesystem`, options: { path: `${__dirname}/content`, name...
from django.utils.encoding import force_text from freezegun import freeze_time from openinghours.models import OpeningHours, ClosingRules from openinghours.templatetags.openinghours_tags import iso_day_to_weekday, is_open, next_time_open, \ has_closing_rule_for_now, get_closing_rule_for_now, opening_hours from ope...
// Last time updated: 2016-11-12 6:02:08 AM UTC // Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js // Muaz Khan - www.MuazKhan.com // MIT License - www.WebRTC-Experiment.com/licence // Documentation - github.com/muaz-khan/DetectRTC // ____________ // DetectRTC.js // DetectRTC.hasW...
'use strict'; const expect = require('chai').expect; const co = require('co'); const mock = require('mongodb-mock-server'); const ConnectionSpy = require('../shared').ConnectionSpy; const core = require('../../../../lib/core'); const Connection = core.Connection; const ReplSet = core.ReplSet; const ObjectId = core.BSO...
// eslint-disable-next-line @typescript-eslint/no-var-requires const getCustomRedirects = require("./redirects.js"); /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: "Capact", tagline: "A simple way to manage applications and infrastructure.", url: "https://capact.io", base...
let socket, latitude, longitude, bgEl, tempEl, searchEl, metric = true, cloudCover = .5; const appUrl = "https://thewthr.app", errorTemp = "Something went wrong :("; window.onload = () => { bgEl = document.getElementById("background"); tempEl = document.getElementById("temp"); searchEl = document.getElemen...
// adapted from https://hackernoon.com/accessing-nested-objects-in-javascript-f02f1bd6387f const getNestedObject = (nestedObj, pathArr) => { return pathArr ? pathArr.reduce( (obj, key) => (obj && obj[key] !== "undefined" ? obj[key] : undefined), nestedObj ) : undefined; }; export defau...
Bridge.assembly("unity-script-converter", function ($asm, globals) { "use strict"; Bridge.define("MiniGameAdaptor.UI.Selectable", { inherits: [MiniGameAdaptor.EventSystems.UIBehaviour,MiniGameAdaptor.EventSystems.IPointerEnterHandler,MiniGameAdaptor.EventSystems.ISelectHandler,MiniGameAdaptor.EventSyst...
const hex = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F']; const btn = document.getElementById('btn'); const color = document.querySelector('.color'); btn.addEventListener('click', function() { let hexColor = '#'; for (let i = 0; i < 6; i++) { hexColor += hex[getRandomNumber()]; } ...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
var _ = require("lodash"); var fs = require("fs"); var path = require("path"); var assert = require("assert"); var dependenciesRegex = /(?:#|\/\/)\s+build\-dependencies\s*:?\s*([a-zA-Z_, \t]*)/g; function readDeps(contents) { var deps = []; var depsRegex = new RegExp(dependenciesRegex); var match; whi...
// UK lang variables tinyMCE.addI18n('en.GLZ_link',{ window_title:"Insert/edit link", general_legend: 'General properties', link_type: 'Link type', internal_link: 'Internal link', relative_link: 'Relative link', external_link: 'External link', media_link: 'Media link', glossary_link: 'Link to gloss...
var inspect = Ember.inspect; inspect('string thing'); (true && !(false) && Ember.assert(false, 'This is an assertion 2'));
'use strict'; /** * Module dependencies */ var path = require('path'), mongoose = require('mongoose'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')); /** * Create an message */ exports.read = function (req, res) { // convert mongoose document to ...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'questions-answers', environment: environment, firebase: { apiKey: "AIzaSyAWM_X2i6pKax6Ee2a8XZXy6j0r0aVgAyY", authDomain: "questions-answers-f6cec.firebaseapp.com", databaseURL: "https://questions...
// STEP 1: PARSE THE FILE // Create an array of objects {operation, value} // // STEP 2: CREATE A SEQUENCE OF INSTRUCTIONS // [0, 1, 2, 6, 7. 2, 3 ..., ] jumping around whenever jump is encountered, and skipping when nop is encountered // Continue looping until a number is repeated or the end of the program is reached....
import chai from 'chai'; const expect = chai.expect; import clamp from "../../src/clamp.js"; describe('capitalize.js', () => { describe('testing with undefined params', () => { it('should return NaN', () => { expect(clamp()).to.be.eql(NaN); }); it('should return NaN', () => ...
/* * /MathJax/config/TeX-MML-AM_CHTML.js * * Copyright (c) 2010-2015 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * *...
import React from 'react'; import PropTypes from 'prop-types'; const UisBorderBottom = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', fill: color, ...otherPro...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
const { checkAppGatewayResponse, sendEventAndCheckResponse, } = require("./fixtures/commerce-mock"); const { printRestartReport, getContainerRestartsForAllNamespaces, } = require("../utils"); describe("CommerceMock tests", function () { this.timeout(10 * 60 * 1000); this.slow(5000); let initialRestarts =...
/* * Licensed under the LICENSE. * Copyright 2017, Sony Mobile Communications Inc. */ const _ = require('lodash'); const request = require('request'); const APP_ID = '<PLACE_YOUR_FACEBOOK_APP_ID_HERE>'; const CLIENT_SECRET = '<PLACE_YOUR_FACEBOOK_CLIENT_SECRET_HERE>'; const FB_OG_TYPE = '<PLACE_YOUR_FACEBOOK_OPEN...
'use strict'; module.exports = (sequelize, DataTypes) => { const Agent = sequelize.define('Agent', { name: { type: DataTypes.STRING, }, email: { type: DataTypes.STRING, allowNull: false, validate: { notNull: { msg: 'Agent requires an email' }, is...
import React, { Component } from 'react'; export class Footer extends Component { render() { return <footer className='sh-footer'> <section className='sh-footer-content'> <div> <div className='sh-footer-section'> <img className='sh-foo...
global.chai = require('chai') require('babel-core/register') require('./setup')()
import React from "react"; import { MDBEdgeHeader, MDBContainer, MDBRow, MDBCol, MDBJumbotron, MDBAnimation } from "mdbreact"; import MenuLink from "./../../components/menuLink"; const V1HomePage = () => { return ( <> <MDBEdgeHeader color="indigo darken-3" className="sectionPage" /> <MDBAn...
import Vue from 'vue'; import Vuetify from 'vuetify/lib'; Vue.use(Vuetify); export default new Vuetify({ icons: { iconfont: 'mdi', }, theme: { dark: true, }, });
const router = require("express").Router(); // Get citizen data by name router.get("/:full_name", (req, res) => { const full_name = req.params.full_name; if (!full_name) { return res.send("Please include a name!"); }; const query = "SELECT * FROM `citizens` WHERE `full_name` = ?"; conne...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (state, action) { state = state.merge({ sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene) }); switch (action.type) { case _constants.GROUP_ACTIONS.ADD_GROUP: return ...
import PrefectureSelect from 'ember-administrative-division/components/prefecture-select'; export default PrefectureSelect
(function() { $(document).ready(function() { var language = $("html").attr("lang"); var basePath = $("#logo").attr("href"); if (language === "en-US") { language = undefined; } tinymce.init({ "selector": ".wysiwyg-editor", "language": la...
from itertools import permutations fin = open('input_07.txt') temp = fin.readline().split(',') fin.close() program_template = [int(x) for x in temp] # program_template = [3, 26, 1001, 26, -4, 26, 3, 27, 1002, 27, 2, 27, 1, 27, 26, # 27, 4, 27, 1001, 28, -1, 28, 1005, 28, 6, 99, 0, 0, 5] # program_...
'use strict'; var dbm; var type; var seed; var fs = require('fs'); var path = require('path'); var Promise; /** * We receive the dbmigrate dependency from dbmigrate initially. * This enables us to not have to rely on NODE_PATH. */ exports.setup = function(options, seedLink) { dbm = options.dbmigrate; type =...
'use strict'; async function minimal(event) { return { statusCode: 200, body: JSON.stringify({ message: 'Hello from API Gateway! - (minimal)', event, }), }; } async function cors(event) { return { statusCode: 200, headers: { 'Access-Control-Allow-Origin': '*', }, bo...
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from './header' import './layout.css' const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { s...
import sys import numpy as np import os import pickle as pkl sys.path.insert(0, '../../model_utils') import torch import copy from torch import optim from torchvision import transforms from sklearn import metrics from cnn_models import ResNet_SimCLR_SimSiam_no_meteo, ResNet_SimCLR_SimSiam_joint_meteo from supervised_...
class Company { constructor() { this.departments = []; } addEmployee(username,salary,position,department){ if(!username || !position || !department){ throw new Error("Invalid input!"); } if(salary < 0 || salary === '' || salary ===undefined || salary === null) { ...
/* eslint-disable require-jsdoc */ const Version = require('../../../model/Version'); class Engine { static detectEngine(ua) { Engine.detectWebkit.call(this, ua); Engine.detectKHTML.call(this, ua); Engine.detectGecko.call(this, ua); Engine.detectServo.call(this, ua); Engine.detectGoanna.call(thi...
#!/usr/bin/env node /* eslint-disable */ try { Object.freeze({}).detectStrictMode = true; } catch (error) { throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`); } var __non_webpack_mo...
(function (window) { const l = 42, // 滑块边长 r = 10, // 滑块半径 w = 310, // canvas宽度 h = 155, // canvas高度 PI = Math.PI const L = l + r * 2 // 滑块实际边长 function getRandomNumberByRange(start, end) { return Math.round(Math.random() * (end - start) + start) } function createCanvas(width, ...
from datasets import trancos, shanghai, pascal, penguins dataset_dict = {"trancos":trancos.Trancos, "shanghai":shanghai.ShanghaiB, "pascal":pascal.Pascal2007, "penguins":penguins.PenguinsMixed}
"use strict"; /* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0, * ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0, * ap-northeast-3 (https://d2zq...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unre...
var $mediaplayer = function(){$('audio,video').mediaelementplayer({ success: function(player, node) { $('#' + node.id + '-mode').html('mode: ' + player.pluginType); } }); } $mediaplayer.call(); $(function() { $('.carousel').carousel({ interval: 5000 }); $('.play-btn').fancymo...
'use strict'; // 3rd Party Resources const express = require('express'); const cors = require('cors'); const morgan = require('morgan'); // Esoteric Resources const authRouter = require( './auth/router.js' ); const errorHandler = require( './middleware/error.js'); const notFound = require( './middleware/404.js' ); co...
/*! jQuery UI - v1.10.4 - 2017-04-15 * http://jqueryui.com * Includes: jquery.ui.datepicker-af.js, jquery.ui.datepicker-ar-DZ.js, jquery.ui.datepicker-ar.js, jquery.ui.datepicker-az.js, jquery.ui.datepicker-be.js, jquery.ui.datepicker-bg.js, jquery.ui.datepicker-bs.js, jquery.ui.datepicker-ca.js, jquery.ui.datepicker-c...
import _curry3 from './internal/_curry3'; import map from './map'; import sequence from './sequence'; /** * Maps an [Applicative](https://github.com/fantasyland/fantasy-land#applicative)-returning * function over a [Traversable](https://github.com/fantasyland/fantasy-land#traversable), * then uses [`sequence`](#seq...
import time import bisect import functools import dataclasses import queue import numpy from ..utils import config as cfg from ..utils import datanodes as dn from ..utils import markups as mu from . import terminals as term from . import audios as aud class Monitor: def __init__(self, path, N=10): self.pa...
import {PolymerElement} from '@polymer/polymer/polymer-element.js'; import {Debouncer} from '@polymer/polymer/lib/utils/debounce.js'; import EtoolsAjaxRequestMixin from './etools-ajax-request-mixin.js'; import {timeOut} from '@polymer/polymer/lib/utils/async.js'; import {logError} from '@unicef-polymer/etools-behaviors...
'use strict' const express = require('express') const expect = require('chai').expect const bodyParser = require('body-parser') const { Metric, init, persist, parse } = require('..') const uuid = 'd562b0f9-9068-4d01-880f-7df32b4bf9ad' const timestamp = Date.now() describe('Client Test', () => { let server = null,...
/* Copyright 2020-Present Couchbase, Inc. Use of this software is governed by the Business Source License included in the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, Version ...
# ============================================================================= # SimpleNeuralNetwork.py # ---------------------------------------------------------------------------- # (C)2019 Atelier_Ritz # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php # ...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'vi', { toolbar: 'Chèn đường phân cách ngang' });
# Copyright (c) 2013 Rackspace, 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 w...
(function (window, document, $, undefined) { "use strict"; var H = $("html"), W = $(window), D = $(document), F = $.fancybox = function () { F.open.apply( this, arguments ); }, IE = navigator.userAgent.match(/msie/i), didUpdate = null, isTouch = document.createTouch !== undefined, isQuery = fun...
/*! * This source file is part of the open source project * ExpressionEngine (https://expressionengine.com) * * @link https://expressionengine.com/ * @copyright Copyright (c) 2003-2021, Packet Tide, LLC (https://www.packettide.com) * @license https://expressionengine.com/license Licensed under Apache Licen...
/* yahoo-min.js Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e=e+1){f=(""+b[e]).split(...
/* * FooTable v3 - FooTable is a jQuery plugin that aims to make HTML tables on smaller devices look awesome. * @version 3.1.5 * @link http://fooplugins.com * @copyright Steven Usher & Brad Vincent 2015 * @license Released under the GPLv3 license. */ !function(a,b){b.Pager=b.Class.extend({construct:function(a,b,c,d,e){...
#RGB ################################################################# def rgb(text, R, G, B): if R > 255 or R < 0 or G > 255 or G < 0 or B > 255 or B < 0: raise ValueError(f''' Invalid RGB value at string: {italic(text)} RGB values should range from 0 to 255! ''') else: ...
g_db.quests[14788]={id:14788,name:"N/A",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remove_obtained_...
const express = require("express"); const app = express(); import {postgreSQLclient} from '../index.js'; /* let getAllClients = new Promise ((resolve, reject) => { postgreSQLclient.query(" SELECT * FROM Employee", (error,response)=>{ if(error){ console.log(error) reject(error) ...
$(document).ready(function(){ var windowAnt = null; var height = $(window).height(); $("#map").css('height', height); //funcion encargada de obtener los grupos registrados function getData() { } $.ajax({ url: 'http://www.elatlas.org/v2/groups-register', type: 'get', beforeSend: function ...
Object.assign(sogv, function () { 'use strict'; /** * @constructor * @name sogv.NegativeOrZeroValidator * @extends sogv.BaseComparisonValidator * @classdesc * <p>Validates that a value is a negative <code>number</code> or <code>equal</code> to <code>zero</code>.</p> * <p>If you do...
require("heatshrink").decompress(atob("mEwwkBiIA/AH4AwgCzUgEFqtVDIcQDpkQgtO9wACqAfCoAYKCwIVD93kCQMQgAcDAA8F73tqEAAAQXC6Fe8owIiFO9peBpvdAAIRBgvdHQIwIggKBhsNCoPUF4UEgtAp3gFxHlhsFgvQptAFAMQGoPUhpmCLoouB7tArvV7tVC4QEBAIPuC40O8hECAAVVIwXQKIPQC4xGB8FNotEgBBBXIMQhtAIwPQpx4FiBGCotFgFd7vQBQIUBF4NAhwIBLwpGC6ovCEwMAhvUqvVgsOSAsNR...
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{"4Aq5":function(e,t,o){var a=o("EyLs");"string"==typeof a&&(a=[[e.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};o("aET+")(a,i);a.locals&&(e.exports=a.locals)},B9JC:function(e,t,o){"use strict";var a=o("GgG6");o.n(a).a},EyLs:function(e,t,o){(t=o("JP...
// md5() function !function(a){"use strict";function b(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function c(a,b){return a<<b|a>>>32-b}function d(a,d,e,f,g,h){return b(c(b(b(d,a),b(f,h)),g),e)}function e(a,b,c,e,f,g,h){return d(b&c|~b&e,a,b,f,g,h)}function f(a,b,c,e,f,g,h){return d(b...
import styled from 'styled-components'; export default styled.img` ${({ size }) => { const dimension = size === 'small' ? '50px' : '140px'; return ` width: ${dimension}; height: ${dimension}; `; }} `;
/* * Redis configuration * */ //Dependencies const redis = require('redis'); const { logTime } = require('../util/formats'); // Init and Create Client const rclient = redis.createClient({ host: process.env.REDISPNS_IP, port: process.env.REDISPNS_PORT }); // EventEmitter in case of Errors, stop all process rclient...
export { Header } from './Header'; import './Header@mobile.css';
'use strict'; var Analytics = require('@segment/analytics.js-core').constructor; var integration = require('@segment/analytics.js-integration'); var sandbox = require('@segment/clear-env'); var tester = require('@segment/analytics.js-integration-tester'); var Intercom = require('../lib/'); describe('Intercom', functi...
import firebase from 'firebase/app'; import 'firebase/firestore'; const checkCourseExists = (courseYear, courseID) => { const db = firebase.firestore(); const courseRef = db.collection(courseYear).doc('course').collection('course').doc(courseID); return new Promise((resolve, reject) => { courseRef....
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Loader from 'react-loader'; import moment from 'moment'; import { Grid, Row, Col } from 'react-flexbox-grid'; import s from './DashboardPendingConf.css'; import Link from '../Link'; import DashboardDataTable from '../DashboardDataTa...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from netests import log from netests.comparators.lldp_compare import _compare_transit_lldp from netests.getters.base_get import GetterBase from netests.workers.arista_api import LLDPAristaAPI from netests.workers.arista_nc import LLDPAristaNC from netests.workers.arista_s...
// Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.calendar.prototype.monthdayfromfields description: Temporal.Calendar.prototype.monthDayFromFields will return correctly with valid data. info: | 1. Let ca...
define(['underscore', 'underscore.string', 'sources/pgadmin', 'jquery', 'mousetrap', 'sources/utils', 'sources/dialog_tab_navigator'], function(_, S, pgAdmin, $, Mousetrap, commonUtils, dialogTabNavigator) { 'use strict'; var pgBrowser = pgAdmin.Browser = pgAdmin.Browser || {}; pgBrowser.keyboardNavigation = ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // Stage: @prod // Group: @multi_team_and_dm import * as TIMEOUTS from '../../fixtures/timeouts'; describe('Multi-user group messages', () => { let testUser; let testTeam; const userIds = []; ...
$(document).ready(function() { // Summernote // -------------------------------------------------- $('#txtDescription').summernote({ height: 500, toolbar: [ ['style', ['style']], ['font', ['bold', 'italic', 'underline', 'clear']], ['fontname', ['fontname']], ['fontsize', ['fontsize']], ['color',...
import {combineReducers} from 'redux' import theme from './theme' import popular from './popular' import trending from './trending' import favorite from './favorite' import language from './language' import search from './search' import {rootCom, RootNavigator} from '../navigator/AppNavigators'; //1.指定默认state const na...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
module.exports = { "env": { "browser": true, "es6": true, "node": true, "cypress/globals": true }, "extends": "eslint:recommended", "plugins": [ "cypress" ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "pars...
const valarg = require('./src/valarg'); const divide = (x, y) => { valarg(x, { required: true, type: Number }) valarg(y, { required: true, type: Number, validator: val => val !== 0 }) return x / y; } divide(42, 0)
// Imports const { mergeRules } = require('./util/helpers') const semver = require('semver') module.exports = (api, options) => { const dependencies = api.service.pkg.dependencies || {} const devDependencies = api.service.pkg.devDependencies || {} const hasVuetifyLoader = Boolean( devDependencies['vuetify-...
import { matchPath } from 'react-router-dom'; import { articlePath, articleDataPath, articleSwPath, articleManifestPath, frontPagePath, frontPageDataPath, frontPageManifestPath, frontPageSwPath, cpsAssetPagePath, cpsAssetPageDataPath, liveRadioPath, radioAndTvPath, mostReadDataRegexPath, leg...
const YAML = require('yamljs'); const fs = require('fs'); const CAPABILITY_CONFIGURATION_FILES = [ 'adas.yml', 'browser.yml', 'capabilities.yml', 'charging.yml', 'charging_session.yml', 'chassis_settings.yml', 'climate.yml', 'crash.yml', 'cruise_control.yml', 'dashboard_lights.yml', 'diagnostics....
// eslint-disable-next-line @typescript-eslint/no-var-requires const path = require('path') module.exports = { target: 'node', entry: './src/index.ts', module: { rules: [ { test: /\.ts$/, use: 'ts-loader', // https://webpack.js.org/guides/typescript/ exclude: /node_modules/, ...
#!/usr/bin/env python import fnmatch import os import re TEST = 0 if (TEST): # https://github.com/opendreambox/enigma2-skins MY_TOP_DIR = 'skins' MY_BOX_DIR = '' MY_HEADER = "AC_INIT([enigma2-skins],4.3.0,[https://github.com/opendreambox/enigma2-skins/issues])\n" else: # https://github.c...
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
(function(t){"use strict";var e=function(r){this.init("wysihtml5",r,e.defaults),this.options.wysihtml5=t.extend({},e.defaults.wysihtml5,r.wysihtml5)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e,r=t.Deferred();return this.$input.attr("id","textarea_"+(new ...
# 存储数据 # 模块json让你能够将简单的Python数据结构转储到文件中, 并在程序再次运行时加载该文件中的数据. # 你还可以使用json在Python程序之间分享数据. # 使用json.dump()和json.load() import json numbers = [2, 3, 5, 7, 11, 13] # 定义一个列表, 其实这也是一个json数值数组 filename = 'numbers.json' # 要将json写进去的文件路径 with open(filename, 'w') as f_obj: # 打开一个文件对象 json.dump(numbers, f_obj) # 第一形...
from rest_framework import serializers from ..models import ServerDigit import base64 import uuid from django.core.files.base import ContentFile class Base64ImageField(serializers.ImageField): def to_internal_value(self, data): _format, str_img = data.split(';base64') decoded_file = base64.b64deco...
// @flow import { supportedCodepoint } from "./unicodeScripts"; /** * This file contains metrics regarding fonts and individual symbols. The sigma * and xi variables, as well as the metricMap map contain data extracted from * TeX, TeX font metrics, and the TTF files. These data are then exposed via the * `metrics`...
import json import os # inputpath = "/Users/chengxiao/Desktop/VulDeepecker/资料/project/CGDSymbolization/src/main/resources/result" inputpath = "/Users/chengxiao/Downloads/SARD.2019-02-28-22-07-31/noerror/cut/result_sym/" # outputjson = "/Users/chengxiao/Downloads/graph2vec-master/dataset_test/" outputjson = "/Users/che...