text stringlengths 3 1.05M |
|---|
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsP... |
define((function () { 'use strict';
function foo () {
console.log( 'indented with tabs' );
}
return foo;
}));
|
import { createSelector } from 'reselect';
const selectSignup = (state) => state.register;
const makeSelectSuccess = () => createSelector(selectSignup, (state) => state.get('success'));
const makeSelectResponse = () => createSelector(selectSignup, (state) => state.get('response'));
const makeSelectError = () => creat... |
/* istanbul instrument in package npmtest_node_localstorage */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - init-before
(function... |
'use strict';
import AxonClient from '../..';
import * as modules from './modules/index';
/**
* Example - Client constructor
*
* @author KhaaZ
*
* @class Client
* @extends {AxonCore.AxonClient}
*/
class Client extends AxonClient {
constructor(token, options, AxonOptions) {
super(token, options, Ax... |
// eslint-disable-next-line
import React from 'react';
import { connect } from 'react-redux';
import BaseComponent from '../../../containers/base';
import basicStyle from '../../../settings/basicStyle';
import {
ActionWrapper,
TableWrapper,
ButtonHolders,
TitleWrapper,
StatusTag,
ComponentTitle
} from '../../../c... |
const { Request, Response } = require('express')
const axios = require('axios')
/**
* Shows index page of drivers
*
* @param {Request} req
* @param {Response} res
*/
exports.index = function(req, res) {
res.render('admin/drivers/index.twig')
}
/**
* Shows create page for driver
*
* @param {Request} req ... |
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { color } from 'utils'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
import styles from './sales.less'
function Sales ({ data }) {
return (
<div ... |
import React from 'react';
import * as Action from 'common/actions';
import './styles.css';
export default class DirectoryMenu extends React.Component {
state = { collapsed: true, x: 0, y: 0 };
componentWillMount() {
document.addEventListener('keydown', (e) => {
const keyCode = e.keyC... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.12/esri/copyright.txt for details.
//>>built
define("esri/dijit/NavigationBar","dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/_base/kernel dojo/has dojo/query dojo/dom dojo/dom-cl... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductsController = void 0;
var factoryType_1 = require("../config/factoryType");
var products_1 = require("./factory/products");
// Main switch/selector for persistence types
var factory = new products_1.FactoryProducts();
var Produc... |
from nntool.abc.layerabc import NeuronLayer
from nntool.utils.init_factory import uniform_factory
import numpy as np
class LinearNeuronLayer(NeuronLayer):
"""线性神经元层,也可以说是全连接层,概念上应该是这层中包含多个神经元,每个神经元单独计算,
但本处的实现并没有使用神经元,而是使用参数矩阵"""
def __init__(self,size,init_factory=uniform_factory()):
self._size=siz... |
// flow-typed signature: b1ae3fa6ec4a59ad7ed6106047792786
// flow-typed version: <<STUB>>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.46.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-runtime'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we e... |
import express from 'express';
import cors from 'cors';
import canonize from './canonize'
const app = express();
app.use(cors());
app.get('/', (req, res) => {
res.json({
hello: 'JS World',
});
});
app.get('/task2b', (req, res) => {
const userCanonized = canonize(req.query.fullname)
res.send(userCanonized... |
window.peopleAlsoBoughtJSON = [{"asin":"0593167171","authors":"Erik Larson","cover":"51kQbBa2QTL","length":"17 hrs and 49 mins","narrators":"John Lee, Erik Larson","subHeading":"A Saga of Churchill, Family, and Defiance During the Blitz","title":"The Splendid and the Vile"},{"asin":"1250752515","authors":"Dinesh D'Souz... |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... |
define(["require", "exports", "tslib", "react", "../../Utilities", "../../Calendar", "../../utilities/dateValues/DateValues", "../../Callout", "../../common/DirectionalHint", "../../TextField", "../../utilities/dateMath/DateMath", "../../FocusTrapZone"], function (require, exports, tslib_1, React, Utilities_1, Calendar... |
'use strict'
import React from 'react'
import {Input, Button} from 'antd';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
import * as actions from '../action/note'
class CreateNote extends React.Component{
constructor(props) {
supe... |
#!/usr/bin/env python3
# License: CC0 https://creativecommons.org/publicdomain/zero/1.0/
import re
from bs4 import BeautifulSoup
# Maps Public Welfare Foundation's cause terminology to Donations List
# Website's
CAUSE_AREAS = {
"Criminal Justice": "Criminal justice reform",
"President's Discretionary Fund": ... |
const Price = require('../models/Price');
module.exports = {
setPrice(shop, product, newPrice, user) {
return new Promise((resolve, reject) => {
Price.find({ product }).where({ shop }).then((price) => {
if (!price) {
reject((new Error(JSON.stringify({ type: '... |
import express from 'express';
//import {
// purchase, update_price, mark_post, seller_update_price,
//} from '../controller/dummy_dbController/order';
// eslint-disable-next-line import/named
//import { signup, login } from '../controller/dummy_dbController/user';
import { signup, login } from '../controller/dbContro... |
/**
* @typescript-eslint 规则参考
* https://www.npmjs.com/package/@typescript-eslint/eslint-plugin#supported-rules
*/
module.exports = {
root: true,
parser: '@typescript-eslint/parser', // 指定ESLint解析器
extends: [
// 'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:jsx-cont... |
import React, { Component } from 'react'
export class PageTransition extends Component {
constructor(props) {
super(props)
this.state = {
mounted4Real: false
}
}
componentWillMount() {
this.timeout = setTimeout(() => {
this.setState({ mounted4Real: true })
}, 200)
}
componen... |
#!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the getchaintips RPC.
- introduce a network split
- work on chains of different lengths
- join th... |
var MSG = {
title: "Code",
blocks: "Blokken",
linkTooltip: "Opslaan en koppelen naar blokken.",
runTooltip: "Voer het programma uit dat met de blokken in de werkruimte is gemaakt.",
badCode: "Programmafout:\n%1",
timeout: "Het maximale aantal iteraties is overschreden.",
discard: "Alle %1 blokken verwijde... |
import F2 from '@antv/f2';
const data = [
{
year: '2001',
sales: 1500
},
{
year: '2002',
sales: 5500
},
{
year: '2003',
sales: 1200
},
{
year: '2004',
sales: 2000
}
];
const chart = new F2.Chart({
id: 'container',
pixelRatio: window.devicePixelRatio
});
chart.sour... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Loader from 'react-loader';
import cx from 'classnames';
import moment from 'moment';
import 'react-virtualized/styles.css';
import s from './AdminServices.css';
import Container from '../Container';
import Link from '../... |
var transform = require('gl-vec3/transformMat4');
var color = require('./color');
function toRGB (vec) {
vec[0] = Math.round(256 * Math.max(0, Math.min(1, vec[0])));
vec[1] = Math.round(256 * Math.max(0, Math.min(1, vec[1])));
vec[2] = Math.round(256 * Math.max(0, Math.min(1, vec[2])));
return 'rgb(' + vec + ... |
// TODO: logs maybe?
const sendResponse = (res, status, payload) => res.status(status).json({
status: 'success',
statusCode: status,
payload,
timestamp: Date.now(),
});
module.exports = {
sendResponse,
};
|
!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"obj... |
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/storage';
import config from '../config';
/**
* Firebase app intialization.
*/
export const app = firebase.initializeApp(config.firebase);
/**
* Get a reference to the storage service, which is used to create references in your storage ... |
import React from "react";
import { render } from "react-dom";
// Import module and default styles
import { CircularProgressbar } from "react-circular-progressbar";
import "react-circular-progressbar/dist/styles.css";
const percentage = 66;
// Can use browser detection logic here to determine this instead
const need... |
// Note: since nyc uses this module to output coverage, any lines
// that are in the direct sync flow of nyc's outputCoverage are
// ignored, since we can never get coverage for them.
// grab a reference to node's real process object right away
var process = global.process
const processOk = function (process) {
retu... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.forms.forms import BoundField
from django.forms.models import formset_factory
from django.template import Context
import pytest
from .compatibility import get_template_from_string
from .conftest import only_bootstrap
from .forms import TestF... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const expectAdapter_1 = require("../../util/expectAdapter");
const toHaveHref_1 = require("./toHaveHref");
function toHaveHrefContainingFn(el, href, options = {}) {
return toHaveHref_1.toHaveHrefFn.call(this, el, href, {
...options... |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Langs from "../components/langs"
import SiteTitle from "../components/title"
import CurrentWeather from "../components/current-weather"
import Week from "../components/week"
import { getWeek, defaultDay } fr... |
import subprocess
import sys
from datetime import datetime, timedelta
from os import remove
import urllib3
from minio import Minio
from minio.error import (BucketAlreadyExists, BucketAlreadyOwnedByYou,
ResponseError)
from tqdm import tqdm
from DataManager import DataFile, JSONDataFileWriter, ... |
# Generated by Django 2.0.2 on 2018-02-13 11:39
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('goods', '0001_initial'),
]
operations = [
migrations.CreateModel(
... |
from __future__ import absolute_import, unicode_literals
import logging
import logging.config
import logging.handlers
import platform
LOG_LEVELS = {
-1: dict(root=logging.ERROR, mopidy=logging.WARNING),
0: dict(root=logging.ERROR, mopidy=logging.INFO),
1: dict(root=logging.WARNING, mopidy=logging.DEBUG),... |
import React from 'react'
import Section from '../../components/Section'
function CallToAction() {
return (
<Section>
<h1>Call to Action</h1>
</Section>
)
}
export default CallToAction
|
from sucks import *
config = {
"device_id": EcoVacsAPI.md5(str(time.time())), # value taken from the sucks source
"email": "***", # fill in your email
"password_hash": EcoVacsAPI.md5("***"), # fill in your password
"country": "***", # your ecovacs country e.g. at
"continent": "***" # your continent... |
'use strict';
function Mapview( $q, MapviewResource) {
'ngInject';
MapviewResource.create = function() {
let lang = 'en';
let collection = "mapview";
let schema = 'http://api.npolar.no/schema/mapview';
let e = { lang, collection, schema };
console.debug(e);
return e;
... |
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec: {
appConfig: {
command: 'node ./util/buildAppConfig.js'
},
externalServices: {
command: 'nod... |
'use strict';
var Caml_option = require("./caml_option.js");
var Caml_hash_primitive = require("./caml_hash_primitive.js");
var Belt_internalBuckets = require("./belt_internalBuckets.js");
var Belt_internalBucketsType = require("./belt_internalBucketsType.js");
function copyBucketReHash(h_buckets, ndata_tail, _old_bu... |
from fvcore.common.config import CfgNode as CN
def add_pointrend_config(cfg):
cfg.MODEL.ROI_MASK_HEAD.IN_FEATURES = ("p2",)
cfg.MODEL.ROI_MASK_HEAD.FC_DIM = 1024
cfg.MODEL.ROI_MASK_HEAD.NUM_FC = 2
cfg.MODEL.ROI_MASK_HEAD.OUTPUT_SIDE_RESOLUTION = 7
cfg.MODEL.ROI_MASK_HEAD.POINT_HEAD_ON = False
... |
define({"topics" : [{"title":"AWS Credentials","shortdesc":"\n <p class=\"shortdesc\">When <span class=\"ph\">Data Collector</span> writes data to an Amazon S3 destination, it must pass credentials to Amazon Web Services. \n </p>\n ","href":"datacollector\/UserGuide\/Desti... |
(function($P) {
'use strict';
$P.D3.Small = $P.defineClass(
$P.D3.Element,
function D3Small(config) {
if (!(this instanceof D3Small)) {return new D3Small(config);}
config.elementType = 'g';
$P.D3.Element.call(this, config);
var self = this;
this.datum = config.datum;
function set(key, normal)... |
import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
export default {
input: "package/src/index.js",
output: [
{
exports: "named",
file: "package/dist/index.js",
format: "cjs",
sourcemap: true,
},
{
file: "package/dist/index.es.js",
... |
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
require('@rails/ujs').start... |
#!/usr/bin/python
#
# Save as /etc/munin/scripts/alert.py
# chown munin:munin /etc/munin/scripts/alert.py
# chmod +x /etc/munin/scripts/alert.py
#
import sys
import os
import json
def humanreadable( jsonalert ):
hascritical = (len(jsonalert['critical']) > 0)
haswarning = (len(jsonalert['warning']) > 0)
hasunk... |
$(document).ready(function(){
var settings;
var kibanaUrl = "/#/dashboard/OSSTracker-Overall-Stats?_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:now-7d,mode:quick,to:now))";
$.getJSON("/js/settings.json", function(json) {
settings = json;
$.get('/hosts/host', function(data) {
... |
// Copyright 2010 the V8 project authors. All rights reserved.
// 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 ... |
const app = new Vue({
'el': '#app'
})
|
import React from "react";
import { useHistory } from "react-router-dom";
// ============ COMPONENTS / STYLED COMPONENTS =========== \\
import CurrencyButton from "./CurrencyButton";
import { CurrencyButtonsContainer, NavbarContainer, Title, ShoppingCart } from "./NavbarStyles";
export default () => {
const histo... |
import PropTypes from 'prop-types'
import React, {Component} from 'react'
import withSizes from 'react-sizes'
import {Accordion, Icon, Progress} from 'semantic-ui-react'
import {MOBILE_BREAKPOINT} from 'components/STYLE_CONSTS'
import {TARGET} from 'parser/core/modules/Checklist/Rule'
import styles from './Checklist.... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import BadRequest
f... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.Subscript = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curre... |
#!/usr/local/fbcode/gcc-4.9-glibc-2.20-fb/bin/python2.7
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import commands
import subprocess
import sys
import re
import os
import time
#
#... |
/*
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["dijit._DialogMixin"]){ //_hasResource checks added by build. Do not use _hasResource directly in you... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.ba');
goog.require('Blockly.Msg');
Blockly.Msg.ABOUT = "about"; // untranslated
Blockly.Msg.ACCELERATION_TOOLTIP = "Get the acceleration value in milli-gravities."; // untranslated
Blockly.Msg.ACCELEROMETER_ROTATION_... |
'use strict';
var begin = require('./gulp-begin');
var gulp = require('gulp');
gulp.task('default', ['test']);
// place options in the object below
begin(gulp, {});
|
# Copyright (c) 2017 Adler Neves <adlerosn@gmail.com>
#
# MIT License
#
# 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, ... |
from pylint.checkers import BaseChecker
from pylint.interfaces import IAstroidChecker
from astroid import nodes, Const, AssignName
class PackageName(BaseChecker):
"""
All packages must have a lower-case name
"""
__implements__ = IAstroidChecker
name = "conan-package-name"
msgs = {
... |
# Copyright 2017 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 required by applica... |
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
bower_concat: {
all: {
dest: 'testapp/static/dist/js/bower-libs.js',
cssDest: 'testapp/static/dist/css/bower-libs.css',
mainFiles: {
'proso-apps-js': 'pros... |
/*!
* Bootstrap-select v1.11.0 (https//silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2016 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Regist... |
import { UIRouter, servicesPlugin, memoryLocationPlugin } from '@uirouter/core';
import { UIRouterRxPlugin } from '../lib-esm';
describe('Globals Augmentation', () => {
let router;
beforeEach(() => {
router = new UIRouter();
router.plugin(servicesPlugin);
router.plugin(memoryLocationPlugin);
});
i... |
context = describe;
/*********************************
********* PAIR PROGRAMMING *********
**********************************/
describe('`let` restricts the scope of the variable to the current block - ', () => {
describe('`let` vs. `var`.', () => {
it('`var` works as usual, it does not restricts scope', () =>... |
import * as React from 'react';
import PropTypes from 'prop-types';
import SelectUnstyled, { selectUnstyledClasses } from '@mui/base/SelectUnstyled';
import OptionUnstyled, { optionUnstyledClasses } from '@mui/base/OptionUnstyled';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import { styled } from '@mui/syst... |
let mouse = {pos: new Vector(), down: false}
let keys = {}
$(() => {
// keyboard
$(document).on('keydown', (event) => {
keys[event.keyCode] = true
// P
if(event.keyCode == 69) {
toggleInventory()
}
})
$(document).on('keyup', (event) => { keys[event.keyCode] = false })
// mouse move
$('#canvas').on(... |
!function(a){"use strict";function b(a){this.owner=a}function c(a,b){if(Object.create)b.prototype=Object.create(a.prototype);else{var c=function(){};c.prototype=a.prototype,b.prototype=new c}return b.prototype.constructor=b,b}function d(a){var b=this.internal=new e(this);b.loadConfig(a),b.init(),function c(a,b,d){Objec... |
import time
import displayio
import json
import adafruit_requests as requests
from adafruit_bitmap_font import bitmap_font
from adafruit_display_text.label import Label
from adafruit_display_shapes.line import Line
from adafruit_display_shapes.sparkline import Sparkline
TEXT_COLOR = 0x000CFF
NOW_COL... |
// Note: These are the rules that formats use
// The list of formats is stored in config/formats.js
'use strict';
exports.BattleFormats = {
// Rulesets
///////////////////////////////////////////////////////////////////
standard: {
effectType: 'ValidatorRule',
name: 'Standard',
desc: ["The standard ruleset... |
const { get } = require('lodash');
const { resolved, withInspectorate, withLicensing } = require('../../flow/status');
module.exports = settings => {
return model => {
const changedBy = get(model, 'data.changedBy');
const { Role, Profile } = settings.models;
const getRole = () => {
const action = ... |
# Copyright 2015 Open Platform for NFV Project, Inc. and its contributors
# This software is distributed under the terms and conditions of the 'Apache-2.0'
# license which can be found in the file 'LICENSE' in this package distribution
# or at 'http://www.apache.org/licenses/LICENSE-2.0'.
import os
import json
import ... |
import React, { Component, useEffect, useState } from 'react';
import { Badge,Button,Card, CardBody, CardFooter, CardHeader, Col, Input, Label,Row, Form,FormGroup} from 'reactstrap';
import { connect } from "react-redux";
import '../css/style.css';
import { makeStyles, useTheme, FormHelperText, Select, MenuItem, Ch... |
var routeHandler = function () {};
exports.Routes = [
// missing route path
{ httpMethod: 'POST', middleware: [routeHandler] },
// invalid http method
{ path: '/list/:listName/items/:id', httpMethod: 'Invalid', middleware: [routeHandler] },
// // missing httpMethod
{ path: '/documents', ... |
#
# 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 may not... |
import { SHOW_LOADING, HIDE_LOADING, SHOW_ALERT, HIDE_ALERT, APPEND_ADB_LOGGER, APPEND_SERVICE_LOGGER, PUSH_CODE } from '../types';
const bufLimit = 500;
function appendLineToBuf(buf, line) {
if (buf.length > bufLimit) {
buf.pop();
}
buf.unshift(line);
}
const state = {
loading: false,
loadingTitle: '',... |
#!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Image,
TouchableOpacity
} from 'react-native';
var width = require('Dimensions').get('window').width;
v... |
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import styles from './layout.module.scss'
import Footer from '../Footer/'
import Header from '../Header/'
const MainLayout = props => (
<StaticQuery
query={graphql`
... |
# ----------------------------------------------------------------------------
# - Open3D: www.open3d.org -
# ----------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2020 www.open3d.org
#
# Permission is her... |
const axios = require('axios');
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Download and stream movie on vidfye ... |
from rest_framework import serializers
from profiles_api import models
class HelloSerializer(serializers.Serializer):
# Serializer a name field for testing api
name= serializers.CharField(max_length=10)
class UserProfileSerializers(serializers.ModelSerializer):
#Serial a use profile method
class Met... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
var _ = require('lodash'); // unused
module.exports = {
/**
* [createGrid description]
* UNUSED
*
* @see http://stackoverflow.com/questions/2250942/javascript-string-matching-pattern-help
*
* @param {[type]} rows [description]
* @param {[type]} columns [description]
* @return {[type... |
import os
import pytest
def test_help():
from sh import ldap2pg
ldap2pg('-?')
ldap2pg('--help')
def test_various_arguments():
from sh import ldap2pg
ldap2pg('-vn', '--color', '--config', 'ldap2pg.yml')
YAML_FMT = """\
ldap:
uri: %(LDAPURI)s
password: %(LDAPPASSWORD)s
sync_map:
- ldap:
... |
import React from "react"
import { graphql } from "gatsby"
export default function Template({
data, // this prop will be injected by the GraphQL query below.
}) {
const { markdownRemark } = data // data.markdownRemark holds your post data
const { frontmatter, html } = markdownRemark
return (
<div className... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var express = require("express");
var compression = require("compression");
var path = require("path");
var helmet = require("helmet");
// HTTP API
var app = express();
var port = process.env.PORT || 8000;
app.use(helmet());
app.use(compressio... |
const {
GraphQLString,
GraphQLList,
GraphQLInputObjectType,
} = require('graphql');
const IdScalar = require('../scalars/id.scalar.js');
const CodeScalar = require('../scalars/code.scalar.js');
/**
* @name exports
* @summary StructureMapgroupruletarget Input Schema
*/
module.exports = new GraphQLInputObjectType(... |
"""\
This file contains tests for deprecated functions.
This includes correct behaviour as well as throwing warnings.
"""
from pathlib import Path
import h5py
import numpy as np
import pytest
from scipy import sparse
import anndata as ad
from anndata import AnnData
from anndata.tests.helpers import assert_equal
@... |
document.addEventListener("DOMContentLoaded",function(){CheckRTL();LoadElements();LoadConfig();SetEvent()});function CheckRTL(){IsRTL()&&(document.body.style.direction="rtl")}function GetCheckedValue(a){a=document.getElementsByName(a);if(!a)return"";var b=a.length;if(void 0==b)return a.checked?a.value:"";for(var c=0;c<... |
import { eligibilityURIs, contactURIs, DECLARATION } from '../../uris.js'
import { CHECK_COMPLETED } from '../eligibility/eligibility.js'
import { APIRequests } from '../../services/api-requests.js'
const { LANDOWNER, ELIGIBILITY_CHECK } = eligibilityURIs
const {
APPLICANT: { USER: APPLICANT_USER },
ECOLOGIST: { U... |
// All code points in the `Carian` script as per Unicode v10.0.0:
[
0x102A0,
0x102A1,
0x102A2,
0x102A3,
0x102A4,
0x102A5,
0x102A6,
0x102A7,
0x102A8,
0x102A9,
0x102AA,
0x102AB,
0x102AC,
0x102AD,
0x102AE,
0x102AF,
0x102B0,
0x102B1,
0x102B2,
0x102B3,
0x102B4,
0x102B5,
0x102B6,
0x102B7,
0x102B8,
0... |
var rai_wallet = require('rai-wallet');
var RaiWallet = rai_wallet.Wallet;
var Block = rai_wallet.Block;
var functions = rai_wallet.RaiFunctions;
var bigInt = require('big-integer');
var wallet;
var registered = false;
var lastRetrieved = 0;
var recentEmpty = true;
var lastWorkRetrieved = 0;
var waitingForSingleWork =... |
import angular from 'angular';
import ngRoute from 'angular-route';
|
const path = require('path');
const projectPath = require(path.resolve(process.env.PWD + '/paths.config.js'));
const imagemin = require('imagemin');
const imageminMozjpeg = require('imagemin-mozjpeg');
const imageminPngquant = require('imagemin-pngquant');
const imageminSvgo = require('imagemin-svgo');
const globby = r... |
import math
import torch
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
import util
__author__ = 'Yarin Bar'
class ECGPositionalEncoding(nn.Module):
"""
"""
def __init__(self, features_dimensionality: int, num_of_beats: int = 60, dropout_rate: float = 0.1):
"""
... |
/**
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
*
*
* Target page: /offices/o/{office_name}
*/
var $menu = $('#hours-menu');
var $drDiv = $('.dr-div');
$('#hours').click(function... |