text stringlengths 3 1.05M |
|---|
/*!
* Modernizr v2.8.3
* www.modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
* Available under the BSD and MIT licenses: www.modernizr.com/license/
*/
/*
* Modernizr tests which native CSS3 and HTML5 features are available in
* the current UA and makes the results available to you in two wa... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Body = require('../lib/body/Body');
var MATH_CONST = require('../../../math/const');
var WrapAngle = require('../../../math/angle/Wrap');
va... |
module.exports = {
mode: 'development',
entry: './src/descriptor_runner/separateBuild/operatorWebGPU.ts',
output: {
filename: 'op-webgpu.js',
path: __dirname + '/dist',
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader'
}
]
},
resolve: {
extensions: [... |
define(["jquery","core/ajax","core/notification","core/str","core/modal_factory","core/modal_events","core/templates"],function(a,b,c,d,e,f,g){function h(a){var e={methodname:"tool_dataprivacy_contact_dpo",args:{message:a}},f="success";b.call([e])[0].then(function(a){return a.result?d.get_string("requestsubmitted","too... |
const expect = require('chai').expect;
var GetPairNumberFromColors=require("./GetPairNumberFromColors");
function testColorToNumber(majorColor, minorColor, expectedNumber) {
const pairNumber = GetPairNumberFromColors(majorColor, minorColor);
console.log(`${majorColor} ${minorColor} = ${pairNumber}`);
expect(... |
/*
* Presentational component
*/
import React from 'react';
import PropTypes from 'prop-types';
import 'react-table/react-table.css';
import moment from 'moment';
import numeral from 'numeral';
import history from '../../app/History';
import * as NumberFormat from '../../constants/numeralFormats';
import CREDIT_TRAN... |
const should = require('should');
describe('ElasticService', () => {
const ElasticService = require('../ElasticService');
const { Client } = require('@elastic/elasticsearch');
const OkanjoApp = require('okanjo-app');
const config = require('./config');
const origTemplate = JSON.stringify(require(... |
export default [
{
label: "通用图标",
list: [
"iconfont iconicon_roundadd",
"iconfont iconicon_compile",
"iconfont iconicon_glass",
"iconfont iconicon_roundclose",
"iconfont iconicon_roundreduce",
"iconfont iconicon_delete",
"iconfont iconicon_shakehands",
"iconfont... |
'use strict';
var grunt = require('grunt');
var BOWER_PATH = '../react-bower/';
var BOWER_GLOB = [BOWER_PATH + '*.{js}'];
var BOWER_FILES = [
'react.js', 'react.min.js', 'JSXTransformer.js',
'react-with-addons.js', 'react-with-addons.min.js',
];
var GH_PAGES_PATH = '../react-gh-pages/';
var GH_PAGES_GLOB = [GH_PA... |
# Copyright 2020 Alibaba Group Holding Limited. 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 ... |
import styled from 'styled-components'
import { url } from 'helpers'
import CurrencyImage from './CurrencyImage'
const DropdownCurrencyImage = styled( CurrencyImage )`
margin-top: -3.5px;
`
export default DropdownCurrencyImage
|
var ExtNavigationviewComponent_1;
import { __decorate, __param } from "tslib";
//import EWCNavigationview from '../dist/ext-navigationview.component.js';
//inputs: (new EWCNavigationview()).properties,
//import EWCNavigationview from '@sencha/ext-web-components-modern/dist/ext-navigationview.component.js';
import { EWC... |
import React from 'react'
import { createStackNavigator } from '@react-navigation/stack'
import BadgesTabNavigator from '../BadgesScreen/BadgesTabNavigator'
import BadgeLanding from '../BadgesLanding/BadgeLanding'
import Colors from '../../res/Colors'
const Stack = createStackNavigator();
const AppStack = () => {
... |
// Copyright (c) 2014-2019, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// cond... |
/**
* Copyright IBM Corp. 2016, 2021
*
* 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.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-b9203099.js');
va... |
/*
----------------------------------------------------------------------------
| ripple-admin: Ripple User Administration MicroService |
| |
| Copyright (c) 2018 Ripple Foundation Community Interest Company |
| A... |
module.exports = angular.module('trafficOps.private.configure.servers.edit', [])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('trafficOps.private.configure.servers.edit', {
url: '/{serverId}/edit',
views: {
serve... |
'use strict'
const joi = require('joi')
const _ = require('lodash')
const BaseController = require('./base')
/**
* REST控制器基类,提供默认的Rest请求方法,必须绑定模型
*/
class RestController extends BaseController {
/**
* Creates an instance of RestController.
*
* @param {any} modelName
*
*/
constructor(modelName) {
supe... |
"""
The MIT License (MIT)
Copyright (c) 2021-present Pycord Development
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, ... |
from .aditiplot import *
__version__ = '0.1.dev'
|
import six
import pandas as pd
from math import *
from pptx import Presentation
from pptx.util import Cm, Pt
round_to_n = lambda x, n: round(x, -int(floor(log10(abs(x)))) + (n - 1))
def _do_formatting(value, format_str):
"""Format value according to format_str, and deal
sensibly with format_str if it is m... |
import os
import yaml
from samplerunner import testinfo
from samplerunner.containerfactory import ContainerFactory
from samplerunner.project import ProjectType
class Source:
"""Metadata about a source file"""
def __init__(self, name, path, test_info_string):
"""Initialize source
:param nam... |
/*! Select2 4.0.8 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},input... |
/*! For license information please see 835.ea0ffa59ab0c70666f2a.js.LICENSE.txt */
(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[835],{39809:(t,e,i)=>{"use strict";const r=e;r.bignum=i(4590),r.define=i(22500).define,r.base=i(71979),r.constants=i(36826),r.decoders=i(78307),r.encoders=... |
# Lint as: python3
# Copyright 2019 The TensorFlow 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 ... |
import Client from "shopify-buy";
import { types } from "../../types/types";
// export const INITIAL_CLIENT = "INITIAL_CLIENT";
// export const CREATE_CHECKOUT = "CREATE_CHECKOUT";
// export const UPDATE_CHECKOUT = "UPDATE_CHECKOUT";
// export const ADD_TO_CHECKOUT = "ADD_TO_CHECKOUT";
const createShopifyClientSucce... |
function hourFormatter(hour) {
if (hour < 12) {
return hour + "AM";
} else if (hour === 12) {
return "12PM";
} else if (hour < 24) {
return (hour - 12) + "PM";
} else if (hour == 24) {
return "12AM";
} else {
return (hour - 24) + "AM";
}
}
// Define the accessors - this is the logic fo... |
// GitHub formatting syntax for markdowns:
// https://docs.github.com/en/free-pro-team@latest/github/writing-on-github/basic-writing-and-formatting-syntax
// function to generate markdown for README
function generateMarkdown(userResponses, userInfo) {
// Plug userReponses into table of contents
let draftTable = `... |
/* Modified: July 6, 2016, 11:08:23 */
!function(){function a(a){if(a.region===f){d.textContent=a.region;var b=k.nodes(c(a)).filter(function(a){return!a.children}),e=j.selectAll("circle").data(b,function(a){return a.name}),g=500,h=0;e.transition().duration(g).delay(function(a,b){return h=7*b}).attr("transform",function... |
module.exports = {
env: {
node: true,
browser: true,
es2021: true,
'jest/globals': true
},
extends: [
'standard',
'plugin:jest/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
plugins: [
'@typescript-eslint... |
(function (root, factory) {
if (typeof exports === 'object' && typeof module === 'object')
factory(exports);
else if (typeof define === 'function' && define.amd)
// AMD: Register as an anonymous module
define(['exports'], factory);
else if (typeof exports === 'object' && typeof exports.nodeName !== 's... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.20
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... |
odoo.define('website.navbar', function (require) {
'use strict';
var core = require('web.core');
var dom = require('web.dom');
var publicWidget = require('web.public.widget');
var concurrency = require('web.concurrency');
var Widget = require('web.Widget');
var websiteRootData = require('website.root');
var websiteNa... |
export default {
resource: "admin.adminPlugins",
path: "/plugins",
map() {
this.route("discourse-subscriptions", function () {
this.route("dashboard");
this.route("products", function () {
this.route("show", { path: "/:product-id" }, function () {
this.route("plans", function (... |
import ATemplate from 'a-template';
import 'custom-event-polyfill';
import template from './viwer.html';
const util = require('../lib/util');
const { Promise } = require('es6-promise-polyfill');
const defaults = {
classNames: {
smartPhoto: 'smartphoto',
smartPhotoClose: 'smartphoto-close',
smartPhotoBo... |
import download from 'download'
export default (url, dest, options = { extract: true, strip: 0 }) => download(url, dest, options) |
# Copyright 2004-2019 Tom Rothamel <pytom@bishoujo.us>
#
# 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, m... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'templates', 'sr', {
button: 'Обрасци',
emptyListMsg: '(Нема дефинисаних образаца)',
insertOption: 'Замени тренутни садржај',
... |
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
const API_KEYS = require('./keys');
const { Octokit } = require("@octokit/rest");
const octokit = new Octokit({
auth: API_KEYS.GITHUB_PERSONAL_ACCESS_TOKEN
});
const IMA... |
import React, { Component, Fragment } from 'react';
import moment from 'moment';
import { connect } from 'dva';
import { Form, Card, Select, List, Tag, Icon, Avatar, Row, Col, Button } from 'antd';
import TagSelect from 'components/TagSelect';
import StandardFormRow from 'components/StandardFormRow';
import styles fro... |
import pandas as pd
def megre():
path_prefix = "../data/circFunbase/"
file = []
for i in range(1,14):
path = path_prefix + f"circRNA_sim_{i}.csv"
f1 = pd.read_csv(path)
file.append(f1)
circRNA_sim = pd.concat(file)
circRNA_sim.to_csv("../data/circFunbase/circRNA_... |
'use strict';
const countTypesInArray = arr => {
const types = {};
for (const el of arr) {
const type = typeof el;
types[type] = types[type] ? ++types[type] : 1;
}
return types;
};
module.exports = { countTypesInArray };
|
/**
* AlertController
*
* @description :: Server-side logic for managing Alerts
* @help :: See http://links.sailsjs.org/docs/controllers
*/
var util = require('util');
module.exports = {
/**
* Get all Alerts with Levels without Equipment and Users
* @return {Object} Alerts
*/
find: function(r... |
# Android Device Testing Framework ("dtf")
# Copyright 2013-2016 Jake Valletta (@jake_valletta)
#
# 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
... |
const pg = require('pg');
const co = require('co');
const QueryStream = require('pg-query-stream');
const is = require('is_js');
const R = require('ramda');
const CRC32 = require('crc-32');
const cRu = require('@panosoft/co-ramda-utils');
const _private = {
logger: null,
queryStreamOptions: {
highWaterMark: 16 * 1... |
from itertools import combinations, permutations
import pytest
import networkx as nx
from networkx.testing.utils import assert_edges_equal
from networkx.utils import consume
from networkx.utils import pairwise
class TestDagLongestPath:
"""Unit tests computing the longest path in a directed acyclic graph."""
... |
// Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
// Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly.
export default 'M512 176.001C512 273.203 433.202 352 336 352c-... |
import tarfile
print('creating archive')
with tarfile.open('tarfile_append.tar', mode='w') as out:
out.add('README.txt')
print('contents:',)
with tarfile.open('tarfile_append.tar', mode='r') as t:
print([m.name for m in t.getmembers()])
print('adding index.rst')
with tarfile.open('tarfile_append.tar', mode='... |
$(function () {
$(
"#contactForm input,#contactForm textarea,#contactForm button"
).jqBootstrapValidation({
preventSubmit: true,
submitError: function ($form, event, errors) {
// additional error messages or events
},
submitSuccess: function ($form, event) {
... |
import argparse
def parse_args():
parser = argparse.ArgumentParser(description="PaddlePaddle CTR example")
parser.add_argument(
'--train_data_dir',
type=str,
default='data/train_data',
help='The path of train data (default: data/train_data)')
parser.add_argument(
'-... |
'use strict';
/* jshint unused: false */
/* jshint latedef: false */
var should = require('chai').should();
var expect = require('chai').expect;
var _ = require('lodash');
var sinon = require('sinon');
var bitcore = require('../..');
var BN = bitcore.crypto.BN;
var Transaction = bitcore.Transaction;
var Input = bitco... |
chrome.runtime.onMessage.addListener( function(request, sender, sendResponse){
var click_event = new MouseEvent('click', {
'view': window,
'bubbles': true,
'cancelable': true
});
switch(request.action){
case 'NEXT-MK':
document.getElementById('play-next').... |
def merge(n,m, arr1,arr2):
out = [None]*(n+m)
i = 0
k = 0
for j in range(m):
while i < n and arr1[i] < arr2[j]:
out[k] = arr1[i]
k += 1
i += 1
out[k] = arr2[j]
k += 1
while i < n:
out[k] = arr1[i]
k += 1
i += 1
... |
/*
** NOTE: This file is generated by Gulp and should not be edited directly!
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp.
*/
/* http://keith-wood.name/calendars.html
Ukrainian localisation for calendars datepicker for jQuery.
Written by Maxim Drog... |
import Ember from 'ember';
import {moduleFor, test} from 'ember-qunit';
const {run} = Ember;
moduleFor('service:window-menu', 'Unit | Service | window menu', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
test('it exists', function(assert) {
const service = this.s... |
require("source-map-support").install();
exports.id = "index";
exports.modules = {
/***/ "../client/src/modules/admin/components/AdminView.web.jsx":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_help... |
const changeError = (status) => {
let target = document.querySelector('.modal-footer');
let div = document.createElement('div');
div.className = 'change-error';
let p = document.createElement('p');
if (status === false) {
p.innerHTML = 'Oops! Something wrong. Try agai... |
# Copyright (c) 2018, WSO2 Inc. (http://wso2.com) 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 ap... |
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## This is an application.
## The date format used by logging f... |
const MongoClient = require('mongodb').MongoClient;
const assert = require('assert');
const shareUtil = require('../../share/util.js');
// Connection URL
const url = 'mongodb://localhost:27027';
// Database Name
const dbName = 'new_db';
let db;
(async function() {
const client = new MongoClient(url);
try {
... |
$(function () {
// global variable to configure refresh interval and timeout (in seconds!)
var refreshInterval = 5;
var refreshTimeout = 3;
// calculate outdated warning thresholds
var outDatedWarning = (refreshInterval * 3);
var outDatedError = (refreshInterval * 10);
// last updated time... |
// compute function
function compute()
{
// retrieve elements
var principal = document.getElementById("principal").value;
var rate = document.getElementById("rate").value;
var years = document.getElementById("years").value;
var resultElem = document.getElementById("result");
if(parseFloat(pri... |
#!/usr/bin/env node
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/*eslint no-console: ["error", { allow: ["log"] }] */
const pkg = require('../package.json');
const semver = require('semver');
const stdin = require('get-stdin');
const msRest = require("ms-rest... |
import React, { useContext, useState } from 'react';
import Appointments from '../Appointments/Appointments';
import FileUpload from '../../common/FileUpload';
// import GCal from '../Appointments/getCalendarEvents';
import { Alert, Col, Form, Row, Tabs, Image } from 'antd';
import Overview from './overview';
import Gr... |
/**
* Defines the main namespace for all node-appc libraries.
*
* @module appc
*
* @copyright
* Copyright (c) 2009-2015 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
'use... |
/**
* @overview Only allow access to users with specific whitelist email domains.
* @gallery true
* @category access control
*
* Email domain whitelist
*
* This rule will only allow access to users with specific email domains.
*/
function (user, context, callback) {
const whitelist = ['example.com', 'example... |
module.exports = {
MongoURI: process.env.MongoURI,
secretOrKey: process.env.secretOrKey
} |
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class PublishedManager(models.Manager):
def get_queryset(self):
return super(PublishedManager,self).get_queryset().filter(statusRf='published')
class References (model... |
'use strict';
var common = require('../common');
var assert = require('assert');
var TCP = process.binding('tcp_wrap').TCP;
var TCPConnectWrap = process.binding('tcp_wrap').TCPConnectWrap;
var ShutdownWrap = process.binding('stream_wrap').ShutdownWrap;
function makeConnection() {
var client = new TCP();
var req =... |
# -*- coding: utf-8 -*-
"""
:mod:`orion.algo.asha` -- Asynchronous Successive Halving Algorithm
===================================================================
.. module:: asha
:platform: Unix
:synopsis: Asynchronous Successive Halving Algorithm
"""
import copy
import hashlib
import logging
import numpy
f... |
import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
import { mocha } from 'mocha';
setResolver(resolver);
mocha.setup({
timeout: 15000,
});
|
import * as utils from "../test-utils";
import {CRYPTO_ENABLED} from "../../src/client";
import {Filter, MemoryStore, Room} from "../../src/matrix";
import {TestClient} from "../TestClient";
describe("MatrixClient", function() {
let client = null;
let httpBackend = null;
let store = null;
const userId ... |
var XMLObject = require('./xmlobject');
var _ = require('lodash'),
cssom = require('cssom'),
csssp = require('css-selector-parser').CssSelectorParser,
csssel = new csssp(),
path = require('path'),
refProperties = ['style', 'fill', 'stroke', 'filter', 'clip-path', 'mask', 'marker-start', '... |
import { shallowMount } from '@vue/test-utils';
import 'src/module/sw-settings-basic-information/component/sw-settings-captcha-select';
describe('src/module/sw-settings-basic-information/component/sw-settings-captcha-select', () => {
function CaptchaSelect() {
return shallowMount(Shopware.Component.build('... |
import React from 'react';
import {Ex1} from './components/Ex1';
import {Ex2} from './components/Ex2';
import {Ex3} from './components/Ex3';
import Ex4 from './components/Ex4';
import Ex5 from './components/Ex5';
import Ex6 from './components/Ex6';
import Ex7 from './components/Ex7';
import Ex8 from './components/Ex8';... |
#
# Copyright 2020 The FLEX 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 required by appli... |
/*! For license information please see main.bundle.js.LICENSE.txt */
(()=>{var t={734:function(t,e,i){!function(t,e,i){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=o(e),r=o(i);function a(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurabl... |
import React, { useState } from "react";
import Navbar from "../../Components/Navbar";
import Footer from "../../Components/Footer";
import "./style.css";
export default function ContactOFUser() {
const [contentEmail, setContentEmail] = useState("");
const [nameOFUser, setNameOFUser] = useState("");
const [ema... |
'use strict';
angular.module('plans').controller('PlansMainController', ['$scope', '$http', 'Authentication', 'Plans', '$location', '$window', 'BibleRef', '$stateParams',
function($scope, $http, Authentication, Plans, $location, $window, BibleRef, $stateParams) {
$scope.authentication = Authentication;
// If u... |
# __author__ = 'Alexey Buchkin'
from sys import maxsize
class Project:
def __init__(self, id=None, name=None, status='development',
inherit_global=True, view_state='public', description=None):
self.id = id
self.name = name
self.status = status
self.inherit_globa... |
"""Rubberband application, an archiving and organization app for lp solver logs."""
from rubberband.version import __version__ # noqa
|
// import external modules
import React, { PureComponent } from "react";
import classnames from "classnames";
// import internal(own) modules
import { FoldedContentConsumer, FoldedContentProvider } from "../utility/context/toggleContentContext";
import Sidebar from "./components/sidebar/sidebar";
import Navbar from ".... |
require('./bootstrap');
import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';
import Icon from '@/Components/Icon'
const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';
createInertiaAp... |
/**
* 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.
*
* @format
* @flow strict-local
*/
import {type EventSubscription} from '../vendor/emitter/EventEmitter';
import NativeEventEmitt... |
import React from "react";
import { connect } from "react-redux";
import { intervals, notes } from "./config";
class Results extends React.Component {
constructor() {
super();
this.buildChart = this.buildChart.bind(this);
this.getIntervalsForNote = this.getIntervalsForNote.bind(this);
this.getNewRow = this.ge... |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.BloomPass = function ( strength, kernelSize, sigma, resolution ) {
strength = ( strength !== undefined ) ? strength : 1;
kernelSize = ( kernelSize !== undefined ) ? kernelSize : 25;
sigma = ( sigma !== undefined ) ? sigma : 4.0;
resolution = ( resoluti... |
import React from "react";
import axios from "axios";
import { toast } from "react-toastify";
class VerifyToken extends React.Component {
state = { }
componentDidMount = () => {
this.verifyToken();
}
verifyToken = () => {
const queryParams = new URLSearchParams(this.props.locatio... |
import React, { useEffect, useState, useRef } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Placeholder, Card, Search, Select, Icon, Dropdown, Input } from 'semantic-ui-react'
import StoryListItem from 'Components/LibraryView/StoryListItem'
import { useIntl } from 'react-intl'
import Chec... |
const fetch = require('node-fetch');
const moment = require('moment-timezone');
var fs = require('fs');
var dir = './tmp/csv/';
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
const now = moment().unix()
var date = moment.unix(now);
formated_date = date.tz("Asia/Kolkata").format("YYYY-MM-DD")... |
var struct_p_a_c1720__internal =
[
[ "delay_ms", "struct_p_a_c1720__internal.html#a5e2b873d8f2eecad1caa402cd21e8388", null ],
[ "read", "struct_p_a_c1720__internal.html#a6b2ac672e9f38826f5d53b6306e19614", null ],
[ "sensor_manufact_id", "struct_p_a_c1720__internal.html#ab14fce7681a983d4c9acb3e5435ae608", nu... |
import { PenBase } from '../utils/pen-base.js';
import { defineElement } from '../utils/define-element.js';
import { html, render } from 'lit-html';
import { findParentForm } from '../utils/find-parent-form.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
var css = ".error{color:red;font-size:.75r... |
import pandas as pd
from .. import logging as logg
def mitochondrial_genes(host, org) -> pd.Index:
"""Mitochondrial gene symbols for specific organism through BioMart.
Parameters
----------
host : {{'www.ensembl.org', ...}}
A valid BioMart host URL.
org : {{'hsapiens', 'mmusculus', 'dreri... |
import React, { Component } from 'react';
const EXCHANGE_INFO = [{
name: 'Binance',
token: true,
coin: false,
},{
name: 'OKex',
token: true,
coin: false,
},{
name: 'Huobi',
token: true,
coin: false,
},{
name: 'Bithumb',
token: true,
coin: false,
},{
name: 'Upbit',
token: true,
coin: false,... |
"""Functions for downloading and reading MNIST data."""
import gzip
import os
# import urllib
import urllib.request
import numpy as np
import sys
def maybe_download(SOURCE_URL, filename, work_directory):
"""Download the data from Yann's website, unless it's already here."""
# print('current path', os.g... |
import CharacterTrait from './CharacterTrait';
import {common} from '../lib/Common';
import {EFFECT} from '../lib/DieRoller';
// Copyright 2018-Present Philip J. Guinchard
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ma... |
var callbackArguments = [];
var argument1 = function (n, i) {
callbackArguments.push(arguments)
var j = 0, $this = n.first(), attrOrdataL = $this.attr('href') !== undefined ? 'attr' : 'data';
if (attrOrdataL === 'data') {
hashs2[j] = $this[attrOrdataL]('href');
j++;
}
};
var argumen... |
/*
Copyright 2019 The Tekton Authors
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... |
// shim for creating canvas elements in node
// with three.js. Pop this on top when you
// want to run on the server.
// TODO: Figure out a way to do this automatically
//var document = document || {};
//document.createElement = function(type) { if (type === 'canvas') return new (require('canvas')); };
|
import React, { Component } from "react";
import { bindActionCreators } from "redux";
import { change } from "redux-form";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import queryString from "query-string";
import { openModal, closeModal } from "@common/actions/modalActions";
import { fet... |
import parseHtmlToMarkdown from "../lib";
import samples from "./samples/code.json";
describe("Code", () => {
test("code", () => {
const { sample, expected } = samples["code"];
expect(parseHtmlToMarkdown(sample)).toBe(expected);
});
test("backticks", () => {
const { sample, expected } = samples["bac... |