text stringlengths 3 1.05M |
|---|
import React , {useState, useEffect}from 'react';
import axios from 'axios'
import { Button, Card } from '@material-ui/core';
import { makeStyles, createStyles, ThemeProvider } from '@material-ui/core/styles';
import MainTable from '../components/MainTable'
//スタイルの定義
const useStyles = makeStyles((them)=> createStyles(... |
import React, {useState, useEffect, useRef} from 'react';
import {useSelector, useDispatch} from 'react-redux';
import {Icon, Image, ToolBar} from '../../../utils/general';
export const Camera = ()=>{
const apps = useSelector(state => state.apps);
const wnapp = useSelector(state => state.apps.camera);
const hide... |
/* eslint-disable react/prop-types */
import React from 'react';
import { withStyles } from '@ui-kitten/components';
import { StackActions } from '@react-navigation/native';
import { useSelector, useDispatch } from 'react-redux';
import { SafeAreaView, View } from 'react-native';
import LoaderButton from '../../compone... |
#!/usr/bin/env python
"""
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");... |
deepmacDetailCallback("904e91b00000/28",[{"a":"Rm. 1102, Science and Technology Building A, No. 900 of Yishan Road, Xuhui District, Shanghai CN 200030","o":"Shanghai JaWay Information Technology Co., Ltd.","d":"2017-06-04","t":"add","s":"ieee","c":"CN"}]);
|
webpackHotUpdate("background",{
/***/ "./src/background/index.ts":
/*!*********************************!*\
!*** ./src/background/index.ts ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.... |
import BaseStore from '../lib/base-store';
class AppStore extends BaseStore {
/**
* @constructor
*/
constructor () {
super();
this.state = {
appsGrammar: undefined,
contacts: [],
contactsGrammar: undefined
};
}
/**
* Gets the apps grammar state
*/
getAppsGrammar (... |
var common = require('./data-common');
var firefox = common.firefox;
exports.name = 'ES Intl';
exports.target_file = 'esintl/index.html';
exports.skeleton_file = 'esintl/skeleton.html';
exports.tests = [
{
name: 'Intl object',
spec: 'http://www.ecma-international.org/ecma-402/1.0/#sec-8',
mdn: 'https://develop... |
const chalk = require("chalk");
module.exports = async (client, guild) => {
console.log(chalk.bold(chalk.blue.bold(`[${client.user.username.toUpperCase().split(" ")[0]}]`)) + chalk.cyan.bold(` Guild leaved: `) + chalk.blue.bold.underline(guild.name) + chalk.cyan.bold(" (ID: ") + chalk.blue.bold.underline(guild.id) + ... |
import json
import logging
import os
log = logging.getLogger(__name__)
class Bundle:
def write_file(self, file_name, content, serialize_to_json=False):
file_path = os.path.join(self.output_directory, file_name)
with open(file_path, "w") as f:
log.info("Writing file %s", file_path)
... |
import ConfigParser
from optparse import OptionParser
class read_conf(object):
def __init__(self, config_file):
self.config_file = config_file
def get_conf_dict(self):
conf = ConfigParser.RawConfigParser()
conf.read(self.config_file)
option_dict = {}
secs = conf.sections... |
/**
* Copyright (c) 2016-2017 by Botorabi. All rights reserved.
* https://github.com/botorabi/TeamSpeakPHPBots
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
/*
* Created on : 2nd July, 2016
* Author : Botorabi (boto)
*/
var LAYOUT = LAYOUT || {};... |
import React from 'react';
import ReactDOM from 'react-dom';
import NowPlayingPoller from '../view';
it('renders without crashing', () => {
const div = document.createElement('div');
const props = {
loading: false,
interval: 3000,
updateNowPlaying: () => {},
};
ReactDOM.render(<NowPlayingPoller {..... |
import { useCallback, useEffect } from 'preact/hooks';
import * as searchFilter from '../util/search-filter';
import { withServices } from '../service-context';
import { useRootThread } from './hooks/use-root-thread';
import { useStoreProxy } from '../store/use-store';
import ThreadList from './ThreadList';
/**
* @... |
/*
* To run this file:
* From the environment folder:
* cp js/DOM/HeapComputation/generateUIEventsHeap.js .
* ./js2jsil.native -file generateUIEventsHeap.js -dom
* ./jsil.native -file generateUIEventsHeap.jsil -silent -printheap initDOMUIEventsHeap
*/
function generate(){
var DOM = initDOM();
var HTMLFi... |
import Papa from "papaparse";
import movieCsvFile from "../Data/imdb_top_1000.csv";
import MovieTile from "../Components/Card/MovieTile";
export const read_csv = (props) => {
// Load the 1000 movie list from the csv file to the redux state
try {
Papa.parse(movieCsvFile, {
download: true,
complete:... |
const buttonClickedListener = (notificationId, buttonIndex) => {
switch (notificationId) {
case 'idleDetection':
if (buttonIndex === 0) {
this.discardIdleTimeAndStopEntry();
} else {
this.discardIdleTimeAndContinueEntry();
}
br... |
'use strict';
/**
* @ngdoc function
* @name app.route:timestampsRoute
* @description
* # timestampsRoute
* Route of the app
*/
angular.module('timestamps')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('home.timestamps', {
url:'/timestamps',
templateUrl: 'app/modu... |
'use strict'
/**
* Module dependencies.
*/
const { fs, path, logger, env } = require('@vuepress/shared-utils')
/**
* Expose createBaseConfig method.
*/
module.exports = function createBaseConfig (context, isServer) {
const {
siteConfig,
sourceDir,
outDir,
base: publicPath,
markdown,
te... |
import styled from 'styled-components';
export const Container = styled.div`
width: 100%;
height: 8rem;
background: #353535;
display: flex;
flex-direction: column;
justify-content: space-between;
.info {
display: flex;
justify-content: space-around;
margin: 13px;
color: #9c98a6;
.contato, .s... |
module.exports={A:{A:{"2":"H D G E A B HB"},B:{"1":"L N I","2":"0 C p","194":"J"},C:{"1":"1 7 8 AB BB","2":"0 2 3 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w aB UB","322":"4 6 9 x y z"},D:{"1":"1 8 AB BB OB eB GB IB FB JB KB LB MB","2":"0 2 4 6 9 F K H D G E A B C ... |
var assert = require('chai').assert,
path = require('path'),
childProcess = require('child_process');
function validateProcess(child, done) {
var count = 0;
child.on('message', function(data) {
count += 1;
assert.strictEqual(data, count, 'child process should output numeric counter value');
});
child.on('c... |
import { HTML } from 'meteor/htmljs';
import { createTemplateForComponent } from '../../reactAdapters';
createTemplateForComponent('DiscussionMessageList', () => import('./contextualBar/Discussions'), {
renderContainerView: () => HTML.DIV({ class: 'contextual-bar' }), // eslint-disable-line new-cap
});
createTempla... |
---
# create lunr store
---
var store = [
{% assign content_pages = site.html_pages | where_exp: 'p','p.searchable != false' %}
{% for item in content_pages %}
{
"url": {{ item.url | relative_url | jsonify }},
"title": {{ item.title | jsonify }},
"text": {{ item.content | strip_ht... |
/**
* jQuery ligerUI 1.3.2
*
* http://ligerui.com
*
* Author daomi 2015 [ gd_star@163.com ]
*
*/
(function ($)
{
$.fn.ligerSpinner = function ()
{
return $.ligerui.run.call(this, "ligerSpinner", arguments);
};
$.fn.ligerGetSpinnerManager = function ()
{
return $... |
require('@ministryofjustice/module-alias/register')
const Ajv = require('ajv')
const {
expect
} = require('chai')
const schemas = require('~/fb-components/test/schemas')
const jsonSchema = require('~/fb-components/specifications/string/string.schema.json')
const dataObject = require('~/fb-components/metadata/stri... |
const shell = require('electron').shell
const os = require('os')
const fileManagerBtn = document.getElementById('open-file-manager')
fileManagerBtn.addEventListener('click', function (event) {
shell.showItemInFolder(os.homedir())
})
|
var tpl = require("pug-loader!./tpl.pug");
module.exports = Marionette.View.extend({
className: 'row cgu',
id: 'terms',
initialize: function() {
},
render: function() {
var that = this;
return q.fcall(function() {
that.$el.html(tpl());
return that;
})
}
});
|
/**
* LMS-Material
*
* Copyright (c) 2018 Craig Drummond <craig.p.drummond@gmail.com>
* MIT license.
*/
Vue.component('lms-sync-dialog', {
template: `
<v-dialog v-model="show" width="600" persistent class="lms-dialog">
<v-card v-if="player">
<v-card-text>
<v-container grid-list-md>
<v-layout wrap>
... |
"use strict";
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Fade from 'react-reveal/Fade';
import ShouldRender from '../components/basic/ShouldRender';
import Setting from '../components/statusPage/Setting';
import Basic from '../components/statusP... |
import React from 'react'
import Link from 'gatsby-link'
import NoteCard from '../assets/NoteCard.png'
import './exampleSquare.css'
const ExampleSquare = ({ siteTitle, projectTitle, imageLink, description_p1,
description_p2, destinationPage, imgSrc }) => (
<div className="FlipContainer" on... |
// Copyright (c) 2021 Thomas J. Otterson
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
const curry2 = require('functions/curry2')
/**
* A curried function version of the `*` multiplication operator.
*
* ```javascript
* console.log(4 * 7) // 28
* console.log(m... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
/*
(c) Ed E 2020
NOTICE: All cross-domain addresses in containers MUST BE ABSOLUTE (i.e https:// rather than //)
*/
var mdlContainers = {
"generateHtml" : innerContent => {
let content = `
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<lin... |
const merge = require('webpack-merge');
const baseConfig = require('./webpack.base.config');
const devConfig = require('./webpack.dev.config');
const proConfig = require('./webpack.pro.config');
let config = process.NODE_ENV === 'development' ? devConfig : proConfig;
module.exports = merge(baseConfig, config); |
DATADIR = '/datasets/'
RESULTSDIR = '/wake_sleep_contrastive/'
|
import { UNDEFINED_ERROR } from '../error-types.js'
export default class CommandError extends Error {
constructor ({
message,
name = 'CommandError',
type = UNDEFINED_ERROR
}) {
super(message)
this.name = name
this.type = type
if (typeof Error.captureStackTrace === 'function') {
Er... |
#!/usr/bin/env python
DOCUMENTATION = '''
---
module: hashivault_approle_role_get
version_added: "3.8.0"
short_description: Hashicorp Vault approle role get module
description:
- Module to get a approle role from Hashicorp Vault.
options:
url:
description:
- url for vault
default: to... |
var discovery = require('discovery-channel')
var pump = require('pump')
var events = require('events')
var util = require('util')
var net = require('net')
var toBuffer = require('to-buffer')
var crypto = require('crypto')
var lpmessage = require('length-prefixed-message')
var connections = require('connections')
var de... |
from pyspider.core.model.mysql_base import *
"""
采购入库单商品的sku
"""
class PurchaseOrderGoods(Model):
skuId = IntegerField(verbose_name='主键', primary_key=True)
skuBarcode = CharField(verbose_name='skuBarcode')
class Meta:
database = tg_common_db
db_table = 'goods_sku'
|
import React, { Component } from 'react';
import '../css/getInvolved.css';
class GetInvolved extends Component {
render() {
return (
<div className="GetInvolved" id='Contact'>
<div className='row pt-5 pb-3'>
<div className='col-12'>
<i className="far fa-comments fa-4x pt-3"/>... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 PLUMgrid, Inc. 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/lic... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'ko', {
clear: '제거',
highlight: '하이라이트',
options: '색상 옵션',
selected: '색상 선택됨',
title: '색상 선택'
} );
|
/*
Copyright (C) 2020 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import * as ModalsUtils from '../../../plugins/utils/modals';
import {
makeFakeInstance,
getComponentVM,
} from '../../../../js_specs/spec-helpers';
import Component from '../info-pane/confirm-ed... |
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2016, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... |
import * as types from '../constants/types';
// ADD ITEM TO SHOPPING CART
export const addToShoppingCart = (item) => {
return { type: types.ADDTOCART, payload: { item } };
};
// REMOTE ITEM FROM SHOPPING CART
export const removeFromShoppingCart = (item) => {
return { type: types.REMOVEFROMCART, payload: { item } ... |
/*
File generated by js-routes GEM_VERSION
Based on Rails RAILS_VERSION routes of APP_CLASS
*/
(function() {
var DeprecatedGlobbingBehavior, NodeTypes, ParameterMissing, ReservedOptions, SpecialOptionsKey, UriEncoderSegmentRegex, Utils, result, root,
hasProp = {}.hasOwnProperty,
slice = [].slice;
root = ... |
function FooBar(testMe) {
this.testMe = testMe;
}
function Foo_bar(test_me) {
this.test_me = test_me;
}
function Foo() {
this.TEST_ME = 2;
}
var TEST_1, test1, test_1;
function _FooBar(_testMe) {
this.__testMe = _testMe;
}
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
# Generated by Django 2.2.8 on 2019-12-07 20:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('about', '0002_employee_intro'),
]
operations = [
migrations.CreateModel(
name='CaseStudy',
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pax
----------------------------------
Tests for `pax` module.
"""
import unittest
from pax import core, plugin
from pax.datastructure import Event, Peak
class TestPosRecWeightedSum(unittest.TestCase):
def setUp(self): # noqa
self.pax = core.Proc... |
// jest.setup.js
jest.setTimeout(30000);
|
import React from 'react'
import '../../styles/gkm-item.scss';
import ProductItem from './ProductItem'
import Input from '../Common/Input'
import SearchBar from '../SearchBar';
import _ from 'lodash'
class EtsyProduct extends React.Component {
constructor(props, context) {
super(props, context);
this.edit... |
# -*- coding: utf-8 -*-
package = "ruconceptnet"
version = "0.0.1"
authors = ["Anton Alekseev"]
authors_string = ", ".join(authors)
emails = ["anton.m.alexeyev@gmail.com"]
license = "MIT"
copyright = "2020 " + authors_string |
/**
* Web application
*/
const apiUrl = 'https://service.us.apiconnect.ibmcloud.com/gws/apigateway/api/2680105fb49744458f07d539d2fa4d30b650966b729af4e89c96252d7a9de4b8/guestbook';
const guestbook = {
// retrieve the existing guestbook entries
get() {
return $.ajax({
type: 'GET',
url: `${apiUrl}/en... |
"""Run a kubectl command."""
# docs: file://./../../../../docs/source/commands.rst
import logging
import subprocess
from typing import Any, Tuple
import click
from ....env_mgr.tfenv import TFEnvManager
from ....utils import DOC_SITE
from ... import options
LOGGER = logging.getLogger(__name__.replace("._", "."))
@c... |
from typing import Optional
import numpy as np
from matplotlib.lines import Line2D
from napari_matplotlib.base import NapariMPLWidget
from qtpy.QtWidgets import QWidget
from .base_plotter import PropertyPlotterBase
class MPLPropertyPlotter(PropertyPlotterBase):
def __init__(self, viewer):
self.mpl_widge... |
const Luno = require("bitx");
const _ = require('lodash');
const moment = require('moment');
const node_util = require('util');
const Errors = require('../exchangeErrors');
const retry = require('../exchangeUtils').retry;
const name = 'Luno';
var tradeAttempt = 0;
const Trader = function(config) {
if (_.isObject(co... |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
#!/usr/bin/env python
'''
Raspberry Pi Wifi Radio
Created: 14.09.2014
'''
import RPi.GPIO as GPIO
from wifi_radio_constants import WifiRadioConstants as WRC
from radio_controller import RadioController
import time
from time import sleep
import signal
import serial
import logging
import configuration as cfg
__author_... |
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Base test case for testing snapshotter"""
from collections import defaultdict
from os.path import abspath, dirname, join
import ggrc.models as models
from integration.ggrc import api_helper
from integr... |
'use strict';
export default {
environment: 'production',
mbtoken: 'pk.eyJ1IjoiZ28taWZyYyIsImEiOiJjams3b2ZhZWswMGFvM3hxeHp2ZHFhOTRrIn0._pqO9OQ2iNeDGrpopJNjpg',
api: 'https://nethope-sitrep-api.herokuapp.com',
goApi: 'https://prddsgocdnapi.azureedge.net/api/v2/',
goRoot: 'https://go.ifrc.org/',
siteRoot:... |
(function() {
// Initialize Firebase
var config = {
apiKey: "AIzaSyBpNT2BDHUnebERrbr_86rbr2zKuAwg_XE",
authDomain: "flex-38b98.firebaseapp.com",
databaseURL: "https://flex-38b98.firebaseio.com",
storageBucket: "flex-38b98.appspot.com",
messagingSenderId: "31841539582"
};
firebase.initializeAp... |
/*global app, client*/
"use strict";
var async = require('async');
var BaseCollection = require('./baseCollection');
var MUC = require('./muc');
module.exports = BaseCollection.extend({
type: 'mucs',
model: MUC,
comparator: function (model1, model2) {
var name1 = model1.displayName.toLowerCase();... |
from enum import Enum, auto
from pysc2.lib import actions
from pysc2.lib.actions import FunctionCall
from gym import spaces
from absl import logging
# TERRAN_FUNCTION_NAMES = ['no_op', 'move_camera', 'select_point', 'select_rect', 'select_control_group', 'select_unit', 'select_idle_worker', 'select_army', 'unload', ... |
################################################################################
# Copyright (c) 2021 ContinualAI. #
# Copyrights licensed under the MIT License. #
# See the accompanying LICENSE file for terms. ... |
export default {
confirm: 'Email sent, please check your inbox to confirm',
confirmed: 'Your email is confirmed!',
resend: 'Confirmation email resent, maybe check your spam?',
couldNotFind: 'Could not find you!',
alreadyConfirmed: 'Your email was already confirmed',
};
|
import React from "react"
import {
View,
Text,
SafeAreaView,
Dimensions,
StyleSheet,
Image,
TouchableOpacity,
StatusBar
} from "react-native"
const Dev_Height = Dimensions.get("window").height
const Dev_Width = Dimensions.get("window").width
import LinearGradient from 'react-native-linear-gradient';
i... |
from django.contrib import admin
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import handler400, handler403, handler404, handler500
# register namespace
app_name = 'web_app'
urlpatterns = [
path('', views.home, na... |
(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[2197],{3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return u},kt:function(){return h}});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}... |
webpackJsonp([8,37],{820:function(a,t,e){function n(a){e(921)}var r=e(1)(e(850),e(961),n,null,null);a.exports=r.exports},850:function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{rating1:3.5,rating2:6,rating3:7*.2,rating4:5.88,rating5:7*.7,rating6:3.5,rating7:4.... |
/* *******************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org/en... |
import { splitKeypath } from 'shared/keypaths';
import SharedModel, { GlobalModel } from 'src/model/specials/SharedModel';
import { warnIfDebug } from 'utils/log';
import { hasOwn } from 'utils/object';
import { isFunction } from 'utils/is';
import noop from 'utils/noop';
function findContext(fragment) {
let frag = ... |
import { getDomains } from '../../ChartUtils';
// Returns the bullet chart's min and max domain for comparative / primary measures and qualitative range data
export const getBulletDomain = ({
comparativeErrorMeasureComponent,
comparativeErrorMeasureData,
comparativeWarningMeasureComponent,
comparativeWarningMea... |
(function () {
"use strict";
// [SY] > 권한관리
var atrtApp = angular.module("sy.Atrt", ["sy.Atrt.controller", "sy.Atrt.service"]);
angular.module("sy.Atrt.controller", []);
angular.module("sy.Atrt.service", []);
atrtApp.config(["$stateProvider", function ($stateProvider) {
$state... |
import React, {Component} from 'react';
import ResponsiveDrawer from './ResponsiveDrawer';
import Button from '@material-ui/core/Button';
import Modal from 'react-awesome-modal';
import FormControl from '@material-ui/core/FormControl';
import Input from '@material-ui/core/Input';
import Link from '@material-ui/core/Lin... |
var crypto = self.crypto || self.msCrypto;
// crypto模块在浏览端的支持
module.exports = function(bytes) {
// 注意下面crypto.getRandomValues是W3C对crypto的规范,在Node环境并不支持该函数
return Promise.resolve(crypto.getRandomValues(new Uint8Array(bytes)));
};
|
import styled from '@emotion/styled'
const PageContainer = styled.div`
margin: auto;
max-width: 1200px;
padding: 20px;
`
export default PageContainer |
import time
import paco
import aiohttp
from github import REPOS, ACCESS_TOKEN
async def get_repo_info(repo_url):
async with aiohttp.ClientSession() as session:
async with session.get(repo_url, params={'access_token': ACCESS_TOKEN}) as response:
response_data = await response.json()
... |
var lang_1 = require('angular2/src/facade/lang');
var collection_1 = require('angular2/src/facade/collection');
var dom_adapter_1 = require('angular2/src/dom/dom_adapter');
var util_1 = require('../util');
var reflection_1 = require('angular2/src/reflection/reflection');
var STYLE_SEPARATOR = '.';
var propertySet... |
const Buffer = require('safe-buffer').Buffer
const async = require('async')
const fees = require('ethereum-common')
const utils = require('ethereumjs-util')
const BN = utils.BN
const constants = require('./constants.js')
const logTable = require('./logTable.js')
const ERROR = constants.ERROR
const MAX_INT = 90071992547... |
# -*- coding: utf-8 -*-
"""
colorthief
~~~~~~~~~~
Grabbing the color palette from an image.
:copyright: (c) 2015 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
__version__ = '0.2.1'
import math
from PIL import Image
class cached_property(object):
"""Decorator that create... |
YUI.add('axis-category-base', function (Y, NAME) {
/**
* Provides functionality for the handling of category axis data for a chart.
*
* @module charts
* @submodule axis-category-base
*/
var Y_Lang = Y.Lang;
/**
* CategoryImpl contains logic for managing category data. CategoryImpl is used by the following class... |
import React from "react"
import styled, { createGlobalStyle } from 'styled-components'
import Home from '../components/organisms/Home'
const GlobalStyle = createGlobalStyle`
body{
margin: 0;
padding: 0;
}
*, *::before, *::after{
box-sizing: border-box;
}
`
const StyledWrapper... |
'''
This file is licensed unter the PSF License. For more information about the
license, please refer to
http://docs.python.org/license.html
@author: alane@sourceforge.net.
The original algorithm for this component was provided by Xavier Defrang.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81330.
'... |
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
https://github.com/mishoo/UglifyJS2
-------------------------------- (C) ---------------------------------
Author: Mihai Bazon
... |
import _objectSpread from "@babel/runtime/helpers/objectSpread";
import _extends from "@babel/runtime/helpers/extends";
import _isNil from "lodash/isNil";
import _get from "lodash/get";
import cx from 'classnames';
import PropTypes from 'prop-types';
import React, { createElement } from 'react';
import { childrenUtils,... |
import React from 'react';
import SlickSlider from 'react-slick';
import { Container } from './styles';
const Slider = ({ children }) => (
<Container>
<SlickSlider
{...{
dots: false,
infinite: false,
speed: 300,
centerMode: false,
variableWidth: true,
adapti... |
import React, { useEffect, useState } from 'react';
import { node, number } from 'prop-types';
import { Container } from 'reactstrap';
import Animation from './Animation';
const renderLoading = () => (
<>
<Container
fluid
className="vh-100 d-flex flex-column no-gutters p-0 flex-fill overflow-auto ... |
import pytest
from fist.client import Fist
@pytest.fixture(scope="session", autouse=True)
def client(request):
return Fist(host="localhost", port=5575)
|
/*
YUI 3.8.0pr2 (build 154)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('recordset-indexer', function (Y, NAME) {
/**
* Provides the ability to store multiple custom hash tables referencing records in the recordset.
* @module recordset
* ... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
var util = require('util'),
Lock = require('../base'),
_ = require('lodash'),
async = require('async'),
redis = Lock.use('redis');
function Redis(options) {
Lock.call(this, options);
var defaults = {
host: 'localhost',
port: 6379,
prefix: 'aggregatelock',
retry_strategy: function (options)... |
import React, { Component, PropTypes } from 'react';
import './listitem-templates.css';
import { Image } from 'mg-react-ui-toolkit';
export default class ListImageTemplate extends Component {
render() {
const { item } = this.props;
return (
<div className="row custom-list-item-image">
<div cla... |
from itertools import cycle
from collections import defaultdict
from day import Day
class Square:
def __init__(self, x, y):
self.x = x
self.y = y
def __eq__(self, other):
return self.x == other.x and self.y == other.y
def __hash__(self):
return hash( (self.x, self.y) )
... |
'use strict';
const should = require('should');
const PassStream = require('pass-stream');
const jayson = require('./..');
const utils = jayson.utils;
describe('jayson.utils', function() {
describe('request', function() {
it('exists', function() {
utils.should.have.property('request');
utils.reque... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Icon } from '@components/icons';
import { socialMedia } from '@config';
const StyledFooter = styled.footer`
${({ theme }) => theme.mixins.flexCenter};
flex-direction: column;
height: auto;
min-height... |
#!/usr/bin/python
#
# The evaluation script for instance-level semantic labeling.
# We use this script to evaluate your approach on the test set.
# You can use the script to evaluate on the validation set.
#
# Please check the description of the "getPrediction" method below
# and set the required environment variables ... |