text stringlengths 3 1.05M |
|---|
function geoFindMe() {
const status = document.querySelector('#status');
const mapLink = document.querySelector('#map-link');
mapLink.href = '';
mapLink.textContent = '';
function success(position) {
const latitude = position.coords.latitude;
const longitude = position.coords.lon... |
/**
*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.82-4.83zM15 16h-2... |
import {
IconButton,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@material-ui/core";
import InfoIcon from "@material-ui/icons/Info";
import CheckCircleOutlineIcon from "@material-ui/icons/CheckCircleOutline";
import CancelIcon from "@material-ui/icons/Cancel";
import... |
import { urlEncode } from '@sentry/utils/esm/object';
import { Dsn } from './dsn';
const SENTRY_API_VERSION = '7';
/** Helper class to provide urls to different Sentry endpoints. */
export class API {
/** Create a new instance of API */
constructor(dsn) {
this.dsn = dsn;
this.dsnObject = new Dsn... |
const fs = require('fs')
module.exports = {
setVisitDate: setVisitDate,
attachImageFile: attachImageFile
}
// Date of visit needs to be dynamically set to a recent day in the past
function setVisitDate (requestParams, context, ee, next) {
const dateOfVisit = new Date()
dateOfVisit.setDate(dateOfVisit.getDate(... |
/**
* Copyright (C) 2006-2019 Talend Inc. - www.talend.com
*
* 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... |
export default {
inviteMeetingContent: "{accountName} vous invite à une réunion {brandName}.\n\nJoindre sur PC, Mac, iOS ou Android : {joinUri}{passwordTpl}\n\n Ou participation d'un seul toucher sur iPhone :\n\t {mobileDialingNumberTpl}\n\n Ou par téléphone :\n\t Composer :\n\t {phoneDialingNumberTpl}\n... |
/*
* For font license information, see the CSS file loaded by this JavaScript.
*/
if(!window.Typekit)window.Typekit={};window.Typekit.config={"a":"2901946","c":[".tk-lust-didone","\"lust-didone\",sans-serif",".tk-lust","\"lust\",sans-serif",".tk-orpheuspro","\"orpheuspro\",sans-serif",".tk-sofia-pro","\"sofia-pro\",s... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let menu = {
registerAll: function () {
console.log("hello");
return 0;
},
hello: function () {
console.log("hello");
return 0;
}
};
exports.default = menu;
//# sourceMappingURL=menu.js.map |
import React from 'react'
import { Route, Routes } from 'react-router'
import Feed from '../Feed'
import NotFound from '../NotFound'
import UserHeader from './UserHeader'
import UserPhotoPost from './UserPhotoPost'
import UserStats from './UserStats'
import Head from '../Helpers/Head'
import { useSelector } from 'react... |
module.exports = [{"isApi":true,"priority":1000.0041,"key":"ActivityIndicator","style":{style:Titanium.UI.iPhone.ActivityIndicatorStyle.DARK,height:Ti.UI.SIZE,width:Ti.UI.SIZE,}},{"isClass":true,"priority":10000.004,"key":"container","style":{backgroundColor:"white",}},{"isId":true,"priority":100101.0043,"key":"itemBro... |
deepmacDetailCallback("000899000000/24",[{"d":"2001-12-14","t":"add","a":"5 Marine View Plaza\nHoboken NJ 07030\n\n","c":"UNITED STATES","o":"Netbind, Inc."},{"d":"2015-08-27","t":"change","a":"5 Marine View Plaza Hoboken NJ US 07030","c":"US","o":"Netbind, Inc."}]);
|
// @flow strict-local
import type SourceMap from '@parcel/source-map';
import type {Async, Blob, Bundle, BundleGraph, Dependency} from '@parcel/types';
import {Readable} from 'stream';
import nullthrows from 'nullthrows';
import URL from 'url';
import {bufferStream, relativeBundlePath, urlJoin} from '../';
type Repl... |
'use strict';
const OverlayPlugin = require('./util/OverlayPlugin');
const log = require('loglevel');
log.setDefaultLevel('debug');
const MAX_SCREENCAST_LENGTH_IN_MINUTES = 3;
const CAPTURE_INTERVAL_MS = 50;
/**
* Instance screencast plugin.
* Provides screenshot and video capture.
*/
module.exports = class Scre... |
"use strict";
var _module$exports;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// holds all possible traits and outfits
var assets = require("./json/as... |
from django.db.models import Manager
class BaseModelManager(Manager):
def get_queryset(self):
return super().get_queryset().filter(deleted_at__isnull=True)
class PeopleManager(BaseModelManager):
pass
class AllOfferManager(BaseModelManager):
def get_queryset(self):
return super().get_qu... |
import React from 'react';
import PropTypes from 'prop-types';
//
import * as Basic from '../../basic';
import { AttachmentService } from '../../../services';
const attachmentService = new AttachmentService();
/**
* Download button component for operation result.
*
* @author Vít Švanda
*
*/
export default class Opera... |
import $ from 'jquery';
import ContextualSidebar from './contextual_sidebar';
import initFlyOutNav from './fly_out_nav';
function hideEndFade($scrollingTabs) {
$scrollingTabs.each(function scrollTabsLoop() {
const $this = $(this);
$this.siblings('.fade-right').toggleClass('scrolling', Math.round($this.width(... |
export const places = [
{ label: 'Oslo', value: 'Oslo' },
{ label: 'Bergen', value: 'Bergen' },
{ label: 'Stavanger', value: 'Stavanger' },
{ label: 'Trondheim', value: 'Trondheim' },
{ label: 'Drammen', value: 'Drammen' },
{ label: 'Fredrikstad', value: 'Fredrikstad' },
{ label: 'Sarpsborg', value: 'Sarp... |
let pdb_sel = [];
// Global Variable
let data;
let svg;
let xScale;
let yScale;
let fscale;
let xAxis;
let yAxis;
let xAxisGrid;
let yAxisGrid;
let pdbScale;
let sigScale;
let colScale;
let tooltip;
let sigmatch_table;
let sigmatch_data;
let old_sets = [];
let pos_set = [];
let neg_set = [];
const get_gn = function... |
#!/usr/bin/python
from RedisQueue import RedisQueue
import subprocess
import json
import base64
import sys
q = RedisQueue(sys.argv[1], namespace='ansible', host='internal-redis.ovmdvp.0001.use2.cache.amazonaws.com', port=6379, db=1)
q.put(json.dumps({'type': sys.argv[2], 'payload': sys.argv[3]}))
|
import React from 'react';
import Routes from './routes';
import Menu from './components/Menu';
// Import bootstrap and font-awesome
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
function App() {
return (
<div className="container">
<Menu />
<Routes /... |
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import logging
import os
import re
import shutil
from telemetry.page import cloud_storage
class PageSetArchiveInfo(object):
def __init__(sel... |
window.peopleAlsoBoughtJSON = [{"asin":"1473591031","authors":"C. K. McDonnell","cover":"61UW3U7gNYL","length":"11 hrs and 8 mins","narrators":"Brendan McDonald","subHeading":"Stranger Times, Book 1","title":"The Stranger Times"},{"asin":"1774248654","authors":"Nathan Lowell","cover":"51117mf1V+L","length":"12 hrs and ... |
var fs = require('fs');
var resolvedOptions = require('../utilities/base').Options;
module.exports = {
send: function (res, options) {
// merge options with defaults
var opt = new resolvedOptions(options, {
path: '',
type: 'text/html',
status: 200
});
... |
'use strict'
let db_lesson
deferredPool.tasks.storage_lesson = deferredPool.start
.then(() => new Promise((resolve, reject) => {
let request_lesson = indexedDB.open('LessonInfoDatabase')
request_lesson.onerror = event => reject(event.target.error)
request_lesson.onupgradeneeded = event => {
db_les... |
module.exports = {
mode: 'modules',
out: 'dist/typedoc',
exclude: [
'integration-tests/**/*.ts',
'example/**/*.ts',
'**/data/**',
'**/test/**',
'**/rollup*.ts',
'**/dist/**',
'**/node_modules/**',
'**/*.spec.ts',
"website/**/*"
],
lernaExclude: ['@taquito/website'],
name:... |
#!/usr/bin/env python3
# --------------------------------------------------------------------------
# Imports
# --------------------------------------------------------------------------
# Standard library imports
import logging
import os
import sys
import textwrap
import traceback
from... |
import { bundleJS } from 'utils/webpack';
import SecondarySidebarDemo from './SecondarySidebarDemo';
const reqSource = require.context('!raw-loader!./', true, /\.js$/);
const demos = bundleJS(require.context('./', true, /\.js$/), reqSource);
SecondarySidebarDemo.raw_js = demos.SecondarySidebarDemo.raw_js;
export def... |
import React, {Component} from 'react'
import {Link} from 'react-router-dom'
// import {searchByZip} from '../../store/event'
import Button from '@material-ui/core/IconButton'
import InputBase from '@material-ui/core/InputBase'
import SearchIcon from '@material-ui/icons/Search'
import {connect} from 'react-redux'
impor... |
/**
Copyright (c) 2015, 2022, Oracle and/or its affiliates.
Licensed under The Universal Permissive License (UPL), Version 1.0
as shown at https://oss.oracle.com/licenses/upl/
*/
'use strict';
module.exports = function (configObj) {
return new Promise((resolve) => {
console.log('Running after_component_cr... |
# -*- coding: utf-8 -*-
"""
internal gevent utilities, not for external use.
"""
# Be very careful not to import anything that would cause issues with
# monkey-patching.
from __future__ import print_function, absolute_import, division
from gevent._compat import iteritems
class _NONE(object):
"""
A special ... |
#!/usr/bin/env python3
import hash_framework as hf
hf.config.model_dir = "/home/cipherboy/GitHub/sat/sat-competition-2018/models"
import time, itertools
import sys, os
run = False
release = False
if '--run' in sys.argv:
run = True
elif '--release' in sys.argv:
release = True
elif '-h' in sys.argv or '--help'... |
var deep = require('deep-equal')
var test = require('tape')
var path = require('path')
var findup = require('../')
var lowest = require.resolve('../fixtures/a/b/package.json')
var local = require.resolve('../package.json')
var lowestpkg = require('../fixtures/a/b/package.json')
var localpkg = require... |
// Core
import { getFullApiUrl } from 'instruments';
const GROUP_ID = 'muigd1gnahf3';
const TOKEN = 'pxpn4lg4id';
const url = 'https://lab.lectrum.io/react/api';
const api = getFullApiUrl(url, GROUP_ID);
export { GROUP_ID, TOKEN, api, url };
|
import warnings
from collections import OrderedDict
from django.db import DEFAULT_DB_ALIAS, NotSupportedError, connections, transaction
from django.db.models.aggregates import Avg, Count
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import F
from django.db.models.fields import Bo... |
export {default} from "./BuyCart"; |
from distutils.core import setup
from setuptools import setup, find_packages
setup(
name = 'bpmn_dmn',
packages = find_packages(),
version = '0.1.7',
description = 'A library to execute BPMN Workflows and DMN Decision Tables',
author = 'Denny Weinberg',
auth... |
"""
Imports
"""
from .speech_to_text import SpeechToText
from .live_speech_to_text import LiveSpeechToText
|
ngDescribe({
name: 'Test nav-head component',
modules: 'app',
element: '<nav-head></nav-head>',
tests: function (deps) {
it('basic test', () => {
//
});
}
});
|
var config = require('../config');
var oracledb = require('oracledb');
oracledb.outFormat = oracledb.OBJECT;
oracledb.autoCommit = true;
oracledb.poolMax = 4;
oracledb.maxRows = 10000;
var await = require('asyncawait/await');
var async = require('asyncawait/async');
var credentials = {
user: config.username,
passwo... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[26],{rqPx:function(t,a,e){"use strict";e.r(a);var c=e("q1tI"),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550... |
import geolocator from "geolocator";
export default class LocationService {
constructor() {
geolocator.config({
language: "en",
google: {
version: "3",
key: process.env.REACT_APP_GOOGLE_API_KEY
}
});
}
async getPosition() {
const options = {
enableHighAccuracy... |
"use strict";
require("core-js/modules/es.array.includes");
require("core-js/modules/es.array.index-of");
require("core-js/modules/es.string.includes");
exports.__esModule = true;
exports.default = void 0;
var _coords = _interopRequireDefault(require("./../cell/coords"));
function _interopRequireDefault(obj) { re... |
#!/usr/bin/env python3
#
# Copyright (c) 2018-present, 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.
#
import logging
from unittest.mock import MagicMock, patch
import aiohttp
import aiohttp_rem... |
;(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
? factory(exports, require('react'), require('react-dom'))
: typeof define === 'function' && define.amd
? define(['exports', 'react', 'react-dom'], factory)
: ((global = global || self),
factory((global.Re... |
import axios from 'axios'
import config from '~/config/config'
import Flash from '~/services/flash'
var url = '/api/informations';
// fetch data
export function fetchList() {
return axios.get(url)
.then(response => {
if(response.data.success==true){
Flash.setLoading(false)
return response['data'];
}else{
... |
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the GPL license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/** api: (define)
* module = gxp.menu
* class = LayerMenu
* base_link = `Ext.menu.Menu <http://extjs.co... |
/**
* @license
*
* Copyright IBM Corp. 2020, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
const { createFilter } = require('@rollup/pluginutils');
const descriptorFromSVG ... |
window.moz = !!navigator.mozGetUserMedia;
var chromeVersion = !!navigator.mozGetUserMedia ? 0 : parseInt(navigator.userAgent.match( /Chrom(e|ium)\/([0-9]+)\./ )[2]);
function RTCPeerConnection(options) {
var w = window,
PeerConnection = w.mozRTCPeerConnection || w.webkitRTCPeerConnection,
SessionD... |
export ShowMorePure from './ShowMore.Pure';
export default from './ShowMore';
|
const { shouldBehaveLikeERC20Mintable } = require(
'../../openzeppelin-solidity/test/token/ERC20/behaviors/ERC20Mintable.behavior'
);
const ERC20MintableMock = artifacts.require('ProjectToken');
contract('ERC20Mintable', function ([_, minter, otherMinter, ...otherAccounts]) {
beforeEach(async function () {
thi... |
import SubMenu from './menu-sub-menu'
export default SubMenu
|
class Tree:
"""
# Tree - Binary tree class
Example:
from tree import Tree
t1 = Tree(1)
t1.draw()
t2 = Tree(1,Tree(2),Tree(3))
t3 = Tree(1,t2,Tree(4))
t4 = Tree(1,t2,t3)
t4.draw()
t4.maxDepth() # should be 4
t4.size() # should b... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.encoding.digests._base"]){dojo._hasResource["dojox.encoding.digests._base"]=true;dojo.provide(... |
"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 = Refl... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/* eslint-disable */
// Inspired by https://github.com/garycourt/murmurhash-js
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
function murmur2(str) {
//... |
import React from 'react'
import { shallow } from 'enzyme'
import Tr from '../src/tr'
const data = ['foo', 'bar']
test('is not instance of <Tr />', () => {
const wrapper = shallow(<Tr rowData={data} />)
const inst = wrapper.instance()
expect(inst).not.toBeInstanceOf(Tr)
})
test('constains two table cell <Td />... |
import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import { API_URL } from "../../constants/apiConstants";
import comment from "../../img/ProHTML/comment.png";
import share from "../../img/ProHTML/share.png";
import "./Tile.css";
import "./CommentPage.css";
import {
Favorite,
F... |
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import * as types from '../prop-types';
import { titleWithFallback } from '../util';
const itemType = PropTypes.shape({
title: PropTypes.string.isRequired,
linkProps: types.linkProps.isRequired,
});
const ImageNav = ({ ba... |
"use strict";
sap.ui.define("babel/test/test/fixtures/jsview-import/actual", ["sap/ui/core/mvc/JSView"], function (JSView) {
var _default = {};
var AView = {
createContent: function createContent() {
return new JSView({
viewData: {
data: 1
},
viewName: "babel.test.test.f... |
/*
Highcharts Editor
Copyright (c) 2016-2017, Highsoft
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, ... |
# -*- coding: utf-8 -*-
#class for handling all data transmission over networks
from socket import socket,AF_INET,SOCK_STREAM,SHUT_RDWR
from ssl import SSLContext,PROTOCOL_TLSv1_2,PROTOCOL_SSLv3,CERT_REQUIRED,SSLError
from urllib.request import urlopen
from queue import Queue
from time import sleep
class request():... |
import React, { Component, PropTypes } from 'react';
import { IconButton } from 'material-ui';
import AvLibraryBooks from 'material-ui/svg-icons/av/library-books';
import '../../stylesheets/widget/TimeTable.scss';
const time = [
'08', '10',
'12', '14',
'16', '18',
'20', '22'
];
const day = [
'MON', 'TUE', ... |
const Discord = require("discord.js");
const tickets = require("../data/tickets.json");
const fs = require("fs");
const yml = require("../yml.js");
module.exports.run = async (bot, message, args) => {
let config = await yml("./config.yml");
let userLimit = config.User_Ticket_Limit;
let amt = tickets.... |
"use strict";function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}var precacheConfig=[["/Portal/index.html","6895b7de362319f2c3a7cd3c747abf71"],["/Portal/static/js/main.d437bb23.js","6b6dee91116857fda5417adf6997638b"],["/Portal/stati... |
(window.webpackJsonpballerinaHighlighter=window.webpackJsonpballerinaHighlighter||[]).push([[20],{195:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return i}),n.d(t,"language",function(){return r});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineC... |
module.exports = () => {
return {
'font-size-base': '14px'
};
}; |
import os
import telebot
import praw
import time
import random
from telebot import types
from prsaw import RandomStuff
from prawcore.exceptions import ResponseException
#PRSAW
rs = RandomStuff()
#telegram API
api_key = os.environ['Tele_API_key']
bot = telebot.TeleBot(api_key)
#PRAW API
try:
reddit = praw.Reddit... |
"""Actors related to sensors and other hardware"""
|
"use strict";
import { contextForState } from "./context";
var version;
try {
version = VERSION;
} catch (e) {}
export default {
version,
contextForState
};
|
import * as React from 'react';
function ExclamationCircleIcon(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidt... |
import os
if __name__ == "__main__":
print("==================================")
os.system("iwconfig")
wlaname=input("(注意,网卡将被调整至监听模式,您将无法正常上网)\n请输入无线网卡名: ")
ret=os.system("airmon-ng start "+wlaname)
if(ret!=0):
print("Airmon-ng Error\n也许你没有使用root权限启动本程序")
exit()
print("=========... |
import request from '@/utils/request'
export function getSolutionList(params) {
return request({
url: '/solution/solutions',
method: 'get',
params
})
}
export function addSolution(params) {
console.log(params)
return request({
url: '/solution/solutions',
method: 'post',
params
})
}
e... |
/***********************跨浏览器的事件处理对象************************/
var EventUtil={
addHandler:function(element,type,handler){
if (element.addEventListener) {
element.addEventListener(type,handler,false);
}
else if (element.attachEvent) {
element.attachEvent("on"+type,handle... |
window.pw.app.register.controller("UnitTraceController", ["$scope", "$transition$", "$http", "$filter", "Session", "growl", "$uibModal", "$timeout",
function($scope, $transition$, $http, $filter, Session, growl, $uibModal, $timeout){
$scope.idUnit = $transition$.params().idUnit;
$scope.unit = ... |
;define(function(require, exports, module){
var LoggerUtil = require("mod/se/logger");
(function(){
var logger = LoggerUtil.getLogger("test", "/log", "|");
var dataset = logger.dataset();
var os = logger.os();
var browser = logger.browser();
dataset.put("q", "logger")
... |
// This reloads the module in development rather than refreshing the page
if (module.hot) {
module.hot.accept();
}
exports.status_classes = 'alert-error alert-success alert-info alert-warning';
exports.autofocus = function (selector) {
$(() => {
$(selector).focus();
});
};
// Return a boolean ind... |
window.searchData = {"kinds":{"128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":256,"name":"ImageColorCanvas","url":"interfaces/imagecolorcanvas.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"isLoaded","url":"interfaces/imagecolorcanvas.html... |
from owlready2 import *
from util import *
# Locations of used ontologies and serialization format transforms.
bfo_url = "http://purl.obolibrary.org/obo/bfo.owl"
cco_url = "https://raw.githubusercontent.com/CommonCoreOntology/CommonCoreOntologies/master/cco-merged/MergedAllCoreOntology_v1.3.ttl"
cco_location = "cco.... |
/**
* Copyright 2016 The AMP HTML 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 require... |
const assert = require('chai').assert
const { Headers } = require('node-fetch')
const utils = require('../../lib/utils')
describe('Utility functions', function () {
describe('pathBasename', function () {
it('should return bar as relative path for /foo/bar', function () {
assert.equal(utils.pathBasename('/f... |
var http = require('http');
var httpServer = http.createServer(function (req, res) {
res.writeHead(200, {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept'
});
this.pendingResponses.push(res);
});
function refresh() {
t... |
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
/*
Copyright 2020-2022 Lowdefy, 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 wri... |
import Errors from "./errors";
class Form {
/**
* Create a new Form instance.
*
* @param {object} data
*/
constructor(data, autoReset) {
this.originalData = data;
this.autoReset = autoReset !== undefined ? autoReset : true;
for (const field in data) {
thi... |
/*!
* FileInput Czech Translations
*
* This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
* any HTML markup tags in the messages must not be converted or translated.
*
* @see http://github.com/kartik-v/bootstrap-fileinput
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
... |
'use strict';
describe('ngWriter.version module', function() {
beforeEach(module('ngWriter.version'));
describe('interpolate filter', function() {
beforeEach(module(function($provide) {
$provide.value('version', 'TEST_VER');
}));
it('should replace VERSION', inject(function(interpolateFilter) {... |
export const MACHINE_FETCH_REQUEST = 'MACHINE_FETCH_REQUEST';
export const MACHINE_FETCH_SUCCESS = 'MACHINE_FETCH_SUCCESS';
export const MACHINE_FETCH_FAILURE = 'MACHINE_FETCH_FAILURE';
export const MACHINE_ADD_REQUEST = 'MACHINE_ADD_REQUEST';
export const MACHINE_ADD_SUCCESS = 'MACHINE_ADD_SUCCESS';
export const MACH... |
'use strict';
describe('Phone', function() {
var $httpBackend;
var Phone;
var phonesData = [
{name: 'Phone X'},
{name: 'Phone Y'},
{name: 'Phone Z'}
];
// Add a custom equality tester before each test
beforeEach(function() {
jasmine.addCustomEqualityTester(angular.equals);
});
// Load... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { TextField } from "@material-ui/core/";
import { useSelector } from "react-redux";
const InputMessage = () => {
const classes = useStyles();
const [text, setText] = React.useState("");
const { selectedRoom, socket... |
from .unicornafl import uc_afl_fuzz, uc_afl_fuzz_ext, monkeypatch, UcAflError, UC_AFL_RET_OK, UC_AFL_RET_ERROR, UC_AFL_RET_CHILD, UC_AFL_RET_NO_AFL, UC_AFL_RET_CALLED_TWICE, UC_AFL_RET_FINISHED
# Compatibility
from unicorn import * |
try:
string_type = basestring
except:
string_type = str
|
from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.custom_codec import *
from hazelcast.util import ImmutableLazyDataList
from hazelcast.protocol.codec.atomic_long_message_type import *
REQUEST_TYPE = ATOMICLONG_ALTERANDGET
RESPONSE_TYPE = 103... |
const fs = require("fs");
function readProjects() {
return new Promise((res, rej) => {
fs.readFile("./projects.json", 'utf8', (err, data) => {
if (err)
rej(err);
else
res(JSON.parse(data))
});
})
}
function writeResponse(res, resObj, headers) {
res.writeHead(200, Object.assig... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.ShieldFlash = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curre... |
define(["esri/arcgis/Portal",
"storymaps/swipe/core/WebApplicationData",
"storymaps/builder/BuilderPanel",
"storymaps/builder/SettingsPopup",
"storymaps/swipe/builder/InitPopup",
"storymaps/swipe/core/SwipeHelper",
"storymaps/utils/Helper",
"storymaps/utils/WebMapHelper",
"dojo/_base/lang",
"dojo/has"... |
import svelte from 'rollup-plugin-svelte';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import css from 'rollup-plugin-css-only';
import autoPreprocess from 'svelte-pre... |
const Discord = require('discord.js')
async function btnrole(client, message, options = []) {
try {
if (!options.data) throw new Error('NO_DATA_PROVIDED. You didnt specify any data to make buttons..')
let { MessageButton, MessageActionRow } = require('discord.js')
if (!message.mem... |