text stringlengths 3 1.05M |
|---|
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function GiMiracleMedecine (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M175.246 21.422L107.7 60.462l13.984 24.25 24.837-14.357 43.263 75.016-15.336 8.864c-8.12-11.014-20.585-17.512-33... |
/*
Copyright 2015, Google, 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, software... |
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
/// <reference path="ms-appx://$(TargetFramework)/js/base.js" />
/// <reference path="ms-appx://$(TargetFramework)/js/ui.js" />
/// <refer... |
class BaseClass {
baseMethod() {}
}
class Child extends BaseClass {
method() {}
}
class ChildNoBaseClass {
method2() {}
}
class Grandchild extends ChildNoBaseClass {
}
// checks if properties actually were merged
var child;
child.required;
child.optional;
child.additional;
child.baseNumber;
child.classNumbe... |
"use strict";!function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,function(t)... |
goog.provide('ol.test.structs.RTree');
describe('ol.structs.RTree', function() {
var rTree = new ol.structs.RTree();
describe('creation', function() {
it('can insert 1k objects', function() {
var i = 1000;
while (i > 0) {
var bounds = new Array(4);
bounds[0] = Math.random() * 100... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("preact")):"function"==typeof define&&define.amd?define(["preact"],e):(t=t||self).preactCustomElement=e(t.preact)}(this,function(t){function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=argu... |
import { utils } from '../../../utils';
import { WebGL2KernelValueSingleArray } from '../../web-gl2/kernel-value/single-array';
export class WebGL2KernelValueDynamicSingleArray extends WebGL2KernelValueSingleArray {
getSource() {
const variablePrecision = this.getVariablePrecisionString();
return utils... |
import firebase from "firebase/app";
import "firebase/auth"; // load authentication service
import "firebase/database"; // load real time database service
import "firebase/storage"; // use media file
import { configFirbase } from "./dev";
var config = {
apiKey: configFirbase.apiKey ,
authDomain: configFirbase.au... |
from .graphs import Graph, DirectedGraph
|
/* eslint-disable @typescript-eslint/no-var-requires, @typescript-eslint/explicit-function-return-type */
const fs = require('fs');
const path = require('path');
const pkgRoot = require('../package.json');
const ROOT_DIR = path.join(__dirname, '..');
const PACKAGES = [
'otplib',
'otplib-core',
'otplib-core-asyn... |
# Copyright 2014 Baidu, 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, softwa... |
const inputArray = [100, 10, 20, 40];
// write your codes
function solution(inputArray) {
return inputArray = inputArray.map(item => item.toString()+'%');
// console.log(inputArray);
}
exports.solution = solution; |
import React from "react";
import { Formik } from "formik";
import {
Card,
CardHeader,
CardTitle,
CardBody,
Form,
Row,
Col,
Button,
} from "reactstrap";
import { toast } from "react-toastify";
import Header from "../../../components/custom/Header";
import InputText from "../../../components/custom/Form... |
const express = require("express");
const router = express.Router();
const path = require("path");
router.get("/exercise", (req, res) => {
res.sendFile(path.join(__dirname, "../public/exercise.html"));
})
router.get("/stats", (req, res) => {
res.sendFile(path.join(__dirname, "../public/stats.html"));
})
rout... |
/*
* Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute
* of Technology. Users are free to copy, change or remove. Because no one
* will read this. Only I know is that Repeaters are the best of the world.
* Only I know is that Repeaters are the best of the world. Only I know is
* that Repea... |
import FWCore.ParameterSet.Config as cms
hltPhase2L3MuonsTrkIsoRegionalNewdR0p3dRVeto0p005dz0p25dr0p20ChisqInfPtMin0p0Cut0p4 = cms.EDProducer("L3MuonCombinedRelativeIsolationProducer",
CaloDepositsLabel = cms.InputTag("notUsed"),
CaloExtractorPSet = cms.PSet(
CaloTowerCollectionLabel = cms.InputTag("hl... |
//@flow
import {createEvent, createStore} from 'effector'
import {traverseGraphite} from './traverseGraphite'
import type {Cmd} from './index.h'
export const resetGraphiteState = createEvent<void>('reset graphite state')
export const graphite = createStore<{
+[key: string]: Array<Cmd>,
__shouldReset?: boolean,
... |
import React from 'react'
import Footer from './Footer'
import Navbar from './Navbar'
import '../styles/global.css'
export default function Layout({children}) {
return (
<div className="layout">
<Navbar />
<div className="content">
{children}
</div>
... |
// star.js
export class Star {
constructor(name, WIDHT, HEIGHT, speedScale) {
// constants
this.name = name;
this.WORLD_WIDTH = WIDHT;
this.WORLD_HEIGHT = HEIGHT;
this.speedScale = speedScale * -1; // change direction to opposide
// variable
this.x = null;
... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser'); // 解析cookie
var logger = require('morgan');
var { version } = require('./config')
// 路由工具
var indexRouter = require('./routes/index');
var orderRouter = require('./routes/... |
from check50 import *
import os
class Vigenerereflect(Checks):
@check()
def submitted(self):
"""You submitted 'Vigenere Reflection'"""
files = os.listdir()
if not any(filename.startswith("vigenerereflect") for filename in files):
raise Error("File not found")
|
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
module.exports = function () {
var db = mongoose.connect('mongodb://localhost:27017/twitter-demo');
var UserSchema = new Schema({
email: {
type: String, required: true,
trim: true, unique: true
// match: /^\w+([\... |
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import Ext_resizer_Splitter from './Ext/resizer/Splitter.js';
import ElementParser from './ElementParser.js';
var EWCSplitter =
/*#__PURE__*/
function (_Ext_resizer_Splitter) {
_inheritsLoose(EWCSplitter, _Ext_resizer_Splitter);
function EWCSplitt... |
import numpy as np
def infer(signal,logging,model):
#START
result = "cough"
#END
#return result as either "cough" or "non_cough"
return result |
!function(e){function r(r){for(var n,i,l=r[0],f=r[1],a=r[2],c=0,s=[];c<l.length;c++)i=l[c],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex) // vue的插件机制
// Vuex.Store 构造器选项
const store = new Vuex.Store({
// 为了不和页面或组件的data中的造成混淆,state中的变量前面建议加上$符号
state: {
// 用户信息
$userInfo: {
id: 1
},
}
})
export default store
|
function* func1() {
yield 42;
}
function* func2() {
yield* func1();
} |
import React from "react";
import { showDialog, RowCenter } from "@";
import style from "./index.module.scss";
export default function Index () {
return (
<div>
<p>
<button
onClick={async () => {
const close = await showDialog({
showMask: false,
... |
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp();
var dbData = {};
let userID = {};
console.log("Initiating a-a Roots Backend");
exports.getPCPData = functions.https.onRequest((req, res) => {
res.status(200);
const cors = require("cors")({ origin: tru... |
from django.http import HttpResponse,JsonResponse
#from django.views.decorators.csrf import csrf_exempt
#from .serializers import ContratoSerializer, CoworkerSerializer
#from rest_framework import viewsets
from django.shortcuts import render
from .models import Coworker, Membresia, Contrato, ControlConsumo, Consumo
fro... |
// Client for testing the server load.
'use strict';
var http = require('http');
function get(n) {
let promise = new Promise((resolve, reject) => {
let start = new Date();
const options = {
hostname: 'localhost',
port: 3000,
path: '/a' + n
};
http... |
function getBorderRadiusValues(){
var border = [];
border[0] = document.getElementById('tl').value;
border[1] = document.getElementById('tr').value;
border[2] = document.getElementById('br').value;
border[3] = document.getElementById('bl').value;
for(let i = 0; i<4; i++){
if(b... |
import scss from 'rollup-plugin-scss';
module.exports = {
rollup(config) {
config.plugins.push(
scss({
output: 'dist/styles.css',
}),
);
return config;
},
};
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[58],{
/***/ "./node_modules/@ionic/core/dist/esm/ion-segment_2-md.entry.js":
/*!*********************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/ion-segment_2-md.entry.js ***!
\**************************... |
// # Frontend Route tests
// As it stands, these tests depend on the database, and as such are integration tests.
// Mocking out the models to not touch the DB would turn these into unit tests, and should probably be done in future,
// But then again testing real code, rather than mock code, might be more useful...
co... |
import { normalize } from '../../load.js';
import { respond } from '../index.js';
const s = JSON.stringify;
/**
* @param {{
* request: import('types/hooks').ServerRequest;
* options: import('types/internal').SSRRenderOptions;
* state: import('types/internal').SSRRenderState;
* route: import('types/intern... |
import { StyleSheet } from 'react-native';
import Constants from 'expo-constants';
export default StyleSheet.create({
container: {
flex: 1,
paddingHorizontal: 24,
paddingTop: Constants.statusBarHeight + 20,
},
header: {
flexDirection: 'row',
justifyContent: 'space-... |
exports.testing = (req, res) => {
res.json({ msg: "From the controller" });
};
|
import copy
if __name__ == "__main__":
# Inicializando Listas
print("Inicializando listas =>")
vacia = []
print(vacia)
numeros = [1,2,3]
print(numeros)
funcional_vacia = list()
print(funcional_vacia)
pares = list(range(0,10,2))
print(pares)
# Copiar Listas
p... |
var Part = require("../Part");
module.exports = [
new Part(
"textMain", /* name */
["textMain"], /* types */
function(){
this.text = this.opts.text;
this.x = this.opts.width * 0.1;
this.y = this.opts.height * 0.1;
},
{
buildXML:function(xml){
xml.ele("text",{ x:this.x, y:this.y, style:"... |
/* eslint-disable quote-props */
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import UglifyJSPlugin from 'uglifyjs-webpack-plugin';
import webpackOverride from './webpackOverride.config';
export default (config, env/* , helpers */) => {
if (env.production) {
config.output.publicPath = 'livechat... |
(function(d){ const l = d['ug'] = d['ug'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"",Aquamarine:"",Black:"","Block quote":"قىسمەن قوللىنىش",Blue:"",Bold:"توم","Bulleted List":"بەلگە جەدىۋېلى",Cancel:"ئىناۋەتسىز","Cannot upload file:":"چىقىرىشقا بولمايدىغان ھۆججەت :","Centered image":"ئوتتۇردى... |
import React from 'react';
import { Form } from './styles';
import Skeleton from '../../Skeleton';
export default function LoadingUser() {
return (
<Form>
<fieldset>
<Skeleton className="legend-skeleton" />
<Skeleton className="input-skeleton" />
<div className="input-block">
... |
from __future__ import print_function
import copy
import numpy as np
import pandas as pd
import orca
from urbansim.models.util import apply_filter_query
from ..__init__ import __version__
from ..utils import get_data, update_name
from .. import modelmanager
from . import LargeMultinomialLogitStep
from .shared impor... |
import socket
async def _wait_for_pending(
self,
result,
timeout=None,
on_interval=None,
on_message=None,
**kwargs,
):
self.on_wait_for_pending(result, timeout=timeout, **kwargs)
prev_on_m, self.on_message = self.on_message, on_message
try:
async for _ in self.drain_events_... |
import Leaf from './leaf';
// import { getRandomEmptyFloor } from './tileUtil';
// import Player from '../components/player';
const initializeMap = (mapWidth, mapHeight) => {
const worldData = [];
for (let y = 0; y < mapHeight; y += 1) {
const thisRow = [];
for (let x = 0; x < mapWidth; x += 1) {
/**... |
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Activation, Dropout, Flatten, Dense
import os
import ipdb
rel_path = 'fashion-data/model_training'
# dimensions of our images.
img_width, img_height... |
(function () {
"use strict";
var Sync = require('../lib/syncho')
, async = require('async')
, sync = require('synchronize')
, t = 0, n = 10000, i = 0, count = 0
, results = [], asyncSeries = []
;
function asyncFn (i, cb) {
setTimeout(function () {
cb(null, 'foo' + i);
}, t);
}... |
'use strict';
const asyncHooks = require('async_hooks');
// Module global variables.
const resourceTree = {};
const contexts = {};
const contextAges = {};
const childResources = {};
const parentResources = {};
const destroyedResources = {};
let createdContextNumberSinceLastCleanCheck = 0;
const CLEAN_CHECK_CONTEXT_... |
# author: Adrian Rosebrock
# website: http://www.pyimagesearch.com
# USAGE
# BE SURE TO INSTALL 'imutils' PRIOR TO EXECUTING THIS COMMAND
# python fps_demo.py
# python fps_demo.py --display 1
# import the necessary packages
from __future__ import print_function
from imutils.video import JetsonVideoStream
from im... |
'use strict';
var express = require('express');
var controller = require('./mappingendpoint.controller');
var router = express.Router();
router.get('/', controller.index);
router.get('/:id', controller.show);
router.post('/', controller.create);
router.put('/:id', controller.update);
router.patch('/:id', controller.... |
const path = require("path");
const router = require("express").Router();
const apiRoutes = require("./api");
//const Post = require("../models/newPost");
// API Routes
router.use("/api", apiRoutes);
// If no API routes are hit, send the React app
router.use(function (req, res) {
res.sendFile(path.join(__dirname,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UnaryExpression = UnaryExpression;
exports.DoExpression = DoExpression;
exports.ParenthesizedExpression = ParenthesizedExpression;
exports.UpdateExpression = UpdateExpression;
exports.ConditionalExpression = ConditionalExpression;
e... |
/* ************************************************************************
Copyright: 2013 Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
/**
* This class is the base class for all of our Hub Unit/Gui test... |
require(['require-config'], function() {
'use strict';
require(['themetracker/app'], function(App) {
new App();
});
});
|
deepmacDetailCallback("70b3d5181000/36",[{"a":"Rua Visconde de Ouro Preto 5/8 Rio de Janeiro RJ BR 22250180","o":"Task Sistemas","d":"2014-09-14","t":"add","s":"ieee","c":"BR"}]);
|
import { expect } from 'chai';
import RadialProgress from './RadialProgress'
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
describe('react-radial-progress', function () {
it('it should load without any problems', function () {
let renderer = ReactTestUtils.createRenderer... |
import os
from starlette.applications import Starlette
from starlette.routing import Mount
from starlette.staticfiles import StaticFiles
from starlette.types import Receive, Scope, Send
class CustomStatic(StaticFiles):
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
"""
... |
[{"Owner":"hit2501","Date":"2017-06-01T21:52:00Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi_co_ I_t_m working on VR web apps but I saw that when I use VRDeviceOrientationFreeCamera the user still can move (on PC) the camera with arrows. I tried to use _qt_VRDeviceOrientationArcRotateCamera_... |
import { expect } from 'chai';
import getDefaultDataReducer from './getDefaultDataReducer';
import actionTypes from './baseActionTypes';
describe('getDefaultDataReducer', () => {
it('should be a function', () => {
expect(getDefaultDataReducer).to.be.a('function');
});
it('should return a reducer', () => {
... |
from sympy import Matrix, eye, Integer, expand
from sympy.combinatorics import Permutation
from sympy.core import S, Rational, Symbol, Basic, Add
from sympy.core.containers import Tuple
from sympy.core.symbol import symbols
from sympy.functions.elementary.miscellaneous import sqrt
from sympy.printing.pretty.pretty impo... |
"use strict";
/**
* 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 la... |
var searchData=
[
['sensors_24',['sensors',['../namespacesensors.html',1,'']]]
];
|
class Solution(object):
def hammingDistance(self, x, y):
"""
:type x: int
:type y: int
:rtype: int
"""
return "{0:b}".format(x ^ y).count("1") |
/* eslint-env mocha */
'use strict'
const test = require('interface-ipfs-core')
const FactoryClient = require('../factory/factory-client')
let fc
const common = {
setup: function (callback) {
fc = new FactoryClient()
callback(null, fc)
},
teardown: function (callback) {
fc.dismantle(callback)
}
... |
import React from "react";
import ReactDOM from "react-dom";
import "assets/vendor/nucleo/css/nucleo.css";
import "assets/vendor/font-awesome/css/font-awesome.min.css";
import "assets/scss/argon-design-system-react.scss?v1.1.0";
import App from './App';
ReactDOM.render( <
App / > ,
document.getElementById("root")... |
import { typeOf } from '../../../utils/is.js'
/**
* Improve error messages for statistics functions. Errors are typically
* thrown in an internally used function like larger, causing the error
* not to mention the function (like max) which is actually used by the user.
*
* @param {Error} err
* @param {String} fn... |
let router = require('express').Router();
var RestApi = require('./include');
var Auth = RestApi.Auth;
var respond = { status: 'ChiaMaster RestApi', message: 'No query param try again' };
var sessionID = {};
router.use(function (q, r, n) {
//console.log('after session:', q.session);
sessionID = q.session; n()... |
/*
* 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
* "License"); you ... |
import React, { useState } from 'react';
import handleActionAlert from '../../global/handleActionAlert'
import api from '../../services/api'
import './style.css'
function DeleteFloor() {
const [floor, setFloor] = useState('')
async function handleDeleteFloor() {
if (floor !== '') {
const { data } = a... |
import React from 'react';
import { useQuery } from '@graffy/react';
export default function Source({ query }) {
const { data, loading } = useQuery(query);
return loading ? (
<div>Loading...</div>
) : (
<pre>{JSON.stringify(data, null, 2)}</pre>
);
}
|
shadow$provide.module$node_modules$elliptic$lib$elliptic$utils=function(global,process,require,module,exports,shadow$shims){var BN=require("module$node_modules$bn_DOT_js$lib$bn");global=require("module$node_modules$minimalistic_assert$index");require=require("module$node_modules$minimalistic_crypto_utils$lib$utils");ex... |
window.require(["ace/snippets/lisp"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}); |
# Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# This is a rewrite of setup_boostbook.sh in Python
# It will work on Posix and Windows sys... |
import elasticsearch from 'elasticsearch'
// TODO: there's probably a smarter way to do this (setting host and connecting from other file)
// drawback of this is having `.client.`
class Elasticsearch {
constructor () {
this.setup = this.setup.bind(this)
}
setup (host) {
this.client = new elasticsearch.C... |
// development config
const merge = require( 'webpack-merge' );
const baseConfig = require( './common' );
const { resolve } = require( 'path' );
const SpeedMeasurePlugin = require( 'speed-measure-webpack-plugin' );
const smp = new SpeedMeasurePlugin();
const autoprefixer = require( 'autoprefixer' );
const { appSrc } = ... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
"""
This example illustrates how the computation can notify of advancing progress:
it simply uses the :meth:`notify_progress` method. This method expects a real
number between 0 and 1, 1 meaning 100% completion.
Monitoring progress is best done with the Clustertools utili... |
# encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
#from piston.resource import Resource
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^auth/', include('treeio.core.api.auth.urls')),
(r'^news/', include('treeio.news.api.urls'))... |
describe('renderer', function () {
beforeAll(function (done) {
setTimeout(done, 1000);
});
beforeEach(function () {
$('#return-coins-btn').trigger('click');
$('#available-products').html('');
})
it('when rendered then displays vending machine buttons', function () {
... |
from . import arch, distro, release |
const express = require('express');
const router = express.Router();
const passport = require('passport');
const FacebookStrategy = require('passport-facebook').Strategy;
const models = require('../models');
const dotenv = require('dotenv');
dotenv.config(); // LOAD CONFIG
passport.serializeUser( (user, done) =>... |
// Initializing the controller and data objects
myApp.controller("listController", function ($scope, $routeParams, Products) {
// Set the heading of the page using custom filter to change the first letter of each word
$scope.page_title = "products table";
// Initialize the sort variables
$scope.sort ... |
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-tabs':... |
/*global define*/
define([
'./AxisAlignedBoundingBox',
'./Cartesian2',
'./Cartesian3',
'./Cartesian4',
'./defaultValue',
'./defined',
'./defineProperties',
'./DeveloperError',
'./Ellipsoid',
'./IntersectionTests',
'./Matrix3',
... |
'use strict'
var __importDefault =
(this && this.__importDefault) ||
function(mod) {
return mod && mod.__esModule ? mod : { default: mod }
}
Object.defineProperty(exports, '__esModule', { value: true })
var createIcon_1 = __importDefault(require('./../createIcon'))
exports.default = createIcon_1.default('la l... |
const includes = require('@bugsnag/core/lib/es-utils/includes')
module.exports = {
load: client => { client._sessionDelegate = sessionDelegate }
}
const sessionDelegate = {
startSession: (client, session) => {
const sessionClient = client
sessionClient._session = session
sessionClient._pausedSession =... |
document.write('<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"><\/script><!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"><\/script><![endif]-->');
// ---> BEGIN add useragent attr (src: http://css-tricks.com/ie-10-specific-styles)
var doc = document.documentE... |
__author__ = 'Maxim Dutkin (max@dutkin.ru)'
class classproperty(property):
def __get__(self, obj, objtype=None):
return super(classproperty, self).__get__(objtype)
def __set__(self, obj, value):
super(classproperty, self).__set__(type(obj), value)
def __delete__(self, obj):
super... |
default_app_config = "spectator.reading.apps.SpectatorReadingAppConfig"
|
"""Economy-level structuring of optimal instrument results."""
from typing import Hashable, Optional, Sequence, TYPE_CHECKING
import numpy as np
import patsy
from .problem_results import ProblemResults
from ..configurations.formulation import Formulation
from ..parameters import LinearCoefficient
from ..utilities.ba... |
/*
* Copyright 2018 Asknow Solutions B.V.
*
* 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 ... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
def check_user_1(apps, schema_editor):
Proposal = apps.get_model('proposals', 'Proposal')
User = apps.get_model(*se... |
var is = require("is"),
equal = require("deep-equal");
/**
* Checks if values are contained in a comparison array.
* If regexps are included, values are tested against them instead of compared against.
* If functions are included, they are called with the value and should return a boolean.
*
* @param {Array... |
const noble = require('noble');
noble.on('stateChange', (state) => {
let process = null
console.log("Starting, please wait... \n");
if (state === 'poweredOn') {
process = setInterval(() => { noble.startScanning(); }, 10000);
} else {
clearInterval(process);
noble.stopScanning();
}
});
noble.on('... |
#!/usr/bin/env python3
import json
import os
import sys
import asyncio
import pathlib
import websockets
import concurrent.futures
import logging
from textblob import TextBlob
from textblob.sentiments import NaiveBayesAnalyzer
from dotenv import load_dotenv
'''
Init and configuration
'''
# Enable loging
logging.root.h... |
exports['shows help for open --foo 1'] = `
command: bin/cypress open --foo
code: 1
failed: true
killed: false
signal: null
timedOut: false
stdout:
-------
error: unknown option: --foo
Usage: open [options]
Opens Cypress in the interactive GUI.
Options:
-p, --port <port> r... |
/**
* Auto-generated action file for "groupalarm RBAC API" API.
*
* Generated at: 2019-07-26T10:59:35.304Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / groupalarm-rbac-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
// Copyright 2019 Cengage Learning, 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 agree... |