text stringlengths 3 1.05M |
|---|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import re
import sys
from spack import *
class Mpich(AutotoolsPackage):
"""MPICH is a high performance an... |
# Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
from diem import diem_types, utils, InvalidAccountAddressError, InvalidSubAddressError, jsonrpc
import pytest
def test_account_address():
with pytest.raises(InvalidAccountAddressError):
utils.account_address(bytes.fromhex(... |
import pytest
from fuzzyoctodisco.pic import *
@pytest.fixture
def pic_object():
picture = Picture("pictures/lena.png")
picture.open()
return picture
@pytest.fixture
def pic_object_raw(pic_object):
pic_object.img2raw()
return pic_object
@pytest.fixture
def pic_object_faces(pic_object_raw):
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../chunk-cf203200.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var FlashOff24 =
/*#__PURE__*/
React... |
import importlib
from functools import wraps
from typing import Optional, Union
from unittest.mock import patch
from .utils.logging import get_logger
from .utils.patching import patch_submodule
from .utils.streaming_download_manager import (
xbasename,
xdirname,
xet_parse,
xglob,
xisdir,
xisfil... |
// jshint ignore: start
(function() {
var browser = false;
var is_iOS = /iP(hone|od|ad)/.test(navigator.platform) && /Apple Computer/.test(navigator.vendor);
var isIE10 = (Function('/*@cc_on return document.documentMode===10@*/')());
var isIE11 = (!(window.ActiveXObject) && "ActiveXObject" in window... |
// credit to: https://codingsans.com/blog/node-config-best-practices for config file structure
const env = process.env.NODE_ENV ? process.env.NODE_ENV : 'development';
const development = {
appName: "Node Console Boilerplate - Dev"
};
const staging = {
appName: "Node Console Boilerplate - Staging"
};
const p... |
# Copyright 2018 The TensorFlow Hub 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 app... |
/**
* Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
*/
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
// Uncomment the following line for RAMPS v1.0
//#define RAMPS_V_1_0
#define X_STEP_P... |
macDetailCallback("24a074000000/24",[{"d":"2014-10-01","t":"add","a":"1 Infinite Loop\nCupertino CA 95014\n\n","c":"UNITED STATES","o":"Apple"},{"d":"2015-09-01","t":"change","a":"1 Infinite Loop Cupertino CA US 95014","c":"US","o":"Apple, Inc."}]);
|
import React from "react";
import classnames from "classnames";
import { motion } from "framer-motion";
import "./filter.scss";
const filters = ["Branding", "Packaging", "Communication", "User Experience"];
const filterVariants = {
active: { y: 0, backgroundColor: "#333333" },
inActive: { y: 0, backgroundColor: ... |
const INITIAL_STATE = [];
export default function user(state = INITIAL_STATE, action) {
switch (action.type) {
case "@user/CREATE_USER":
return [...state, action.data];
default:
return state;
}
}
|
"""
Mujoco Maze environment.
Based on `models`_ and `rllab`_.
.. _models: https://github.com/tensorflow/models/tree/master/research/efficient-hrl
.. _rllab: https://github.com/rll/rllab
"""
import itertools as it
import os
import tempfile
import xml.etree.ElementTree as ET
from typing import Any, List, Optional, Tupl... |
/* eslint valid-jsdoc: "off" */
'use strict';
/**
* @param {Egg.EggAppInfo} appInfo app info
*/
module.exports = appInfo => {
/**
* built-in config
* @type {Egg.EggAppConfig}
**/
const config = exports = {};
// use for cookie sign key, should change to your own and keep security
config.keys = appI... |
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return t... |
// Basic Closure
class Basic {
getDate() { // Overpass Queryに付ける日付指定
let seldate = $("#Select_Date").val();
return seldate ? '[date:"' + (new Date(seldate)).toISOString() + '"]' : "";
}
formatDate(date, format) {
// date format
try {
... |
glift.utilTest = function() {
module('glift.utilTest');
var util = glift.util;
test('typeOf test', function() {
deepEqual(util.typeOf({}), 'object', 'expect object');
});
test('inbounds', function() {
ok(util.inBounds(5, 19), '5 should be between 0 and 19');
});
test('inbounds', function() {
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'tb';
var iconName = 'chart-pie-3';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = null;
var svgPathData = 'M 255.96094 42.660156 A 21.33 21.33 0 0 0 255.48633 42.666016 C 138.15419 42.92401 42.660153 138.569... |
import { combineReducers } from 'redux';
import GameReducer from '../redux/reducers/GameReducer'
import RouteReducer from '../redux/reducers/RouteReducer'
export default combineReducers({
GameData: GameReducer,
Routes: RouteReducer
})
|
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2017 Ashley Whetter <ashley@awhetter.co.uk>
# Copyright (c) 2016 Yuri Bochkarev <baltazar.bz@gmail.com>
# Copyright (c) 2016 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net>
# Copyright (c) 2016 Moises Lopez <moylop260@vauxoo.com>
# ... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-01 19:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yasp', '0008_auto_20160901_1606'),
]
operations = [
migrations.AlterField(
... |
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2013 Yahoo! 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/licenses/LICE... |
const { MessageEmbed, MessageCollector } = require("discord.js");
const { MinakoError } = require("../../utils/errors");
const { sendCharacterEmbed } = require("./embeds/CharacterEmbed");
const { searchCharacter, fetchCharacter } = require("./functions/FetchAnime");
exports.run = async(message, args) => {
if (args... |
# -*- coding: utf-8 -*-
"""
.. module:: organizations
"""
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
fro... |
import React, { Component } from 'react';
import CourseLibrary from './courseLibrary';
import Schedule from './schedule';
export default class App extends Component {
render() {
return (
<div className="main-container">
<div className="library">
<h1 className="library__header">Course Libr... |
import qutip as qt
import numpy as np
import scipy
from scipy import constants
from scipy.linalg import expm, sinm, cosm
import itertools
import matplotlib.pyplot as plt
pi = np.pi
e = constants.e
h = constants.h
hbar = constants.hbar
ep0 = constants.epsilon_0
mu0 = constants.mu_0
Phi0 = h/(2*e)
kb = constants.Boltzm... |
# Example parser that calculates the result of an expression
from varas import *
import sys
import re
LITERAL_TOKEN = 1
tokenizer = Tokenizer(("\d+", LITERAL_TOKEN),
(".", None))
def handle_lparen(parser, actions, token):
expr = parser.expression(actions)
parser.match(")")
return... |
const express = require("express");
const connection = require("../database/connection");
module.exports = (error, request, response, next) => {
console.error({ error });
//message
//stack
//constructor
// const a = connection("error").insert({
// errorMessage: error.toString(),
// requ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
## Command ``qey``
"""
import argparse
import os
import sys
import subprocess
import psutil
from qey.json_handling import read_json, write_json
from qey.hotkeys_handling import write_hotstrings, get_hotstrings
from qey.os_detection import is_linux
WELCOME_MESSAGE = """... |
import axios from "axios";
import { MessageBox, Message } from "element-ui";
import store from "@/store";
// create an axios instance
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout:... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import warnings
from . import get_submodules_from_kwargs
from . import imagenet_utils
from .imagenet_utils import decode_predictions
from .imagenet_utils import _obtain_input_shape
preprocess_input_... |
# pylint: disable=missing-docstring, protected-access
import unittest
import warnings
from iCount import demultiplex
from iCount.tests.utils import make_fastq_file, get_temp_dir
class TestDemultiplex(unittest.TestCase):
def setUp(self):
self.dir = get_temp_dir()
self.adapter = 'CCCCCCCCC'
... |
import { expect } from 'chai'
import sinon from 'sinon'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoTextInput from '../../../app/components/TodoTextInput'
import style from '../../../app/components/TodoTextInput.css'
function setup(propOverrides) {
const props = {
onSave:... |
## https://leetcode.com/problems/vowel-spellchecker/
## problem is to spellcheck queries against a valid wordlist.
## spellcheck/possible corrections are defined as subbing all
## vowels in the word with all other (i.e., only the vowels
## can be wrong).
## unsurprisingly, this dumb, brute-force solution is too slo... |
"""
WSGI config for girlsgoit project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... |
from rest_framework import serializers
from .models import Todo
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = ('id', 'title', 'body',)
|
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLXdhbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWFwLXdhbGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZ... |
/**
* Subscribe with Google module initialization.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/li... |
/**
* Created by glenn on 18.09.16.
*/
(() => {
'use strict';
angular.module('helloWidgetApp.helloWidget').run(runBlock);
/* @ngInject */
function runBlock(c8ySystem) {
(async () => {
const version = await c8ySystem.getUIVersion();
console.log(version);
// Put your fiddle code here.... |
/**
* There's a list of file, since two files cannot have equal names,
* the one which comes later will have a suffix (k),
* where k is the smallest integer such that the found name is not used yet.
*
* Return an array of names that will be given to the files.
*
* @param {Array} names
* @return {Array}
*
* @e... |
var files =
[
[ "argumatrix", "dir_3642087d0ef9cba84f84b59ebe47f6ca.html", "dir_3642087d0ef9cba84f84b59ebe47f6ca" ]
]; |
import random
import torch
import numpy as np
def set_global_random_seed(seed):
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
np.random.seed(seed)
random.seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
|
'use strict'
const fs = require('fs')
const path = require('path')
let routeName = process.argv[2]
let routes = fs.readFileSync(
path.join(__dirname, '../../app/src/routes.js'),
'utf8'
).split('\n')
let routeTemplate = fs.readFileSync(
path.join(__dirname, 'route.template.txt'),
'utf8'
)
let routesTemplate = ... |
module.exports = {
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
"logo": "Alfa Slab One",
"sans": "Iosevka Aile Web",
"serif": "Source Serif Pro",
"mono": "Iosevka Web"
},
extend: {... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var http_1 = require("@angular/common/http");
var core_1 = require("@angular/core");
var rxjs_1 = require("rxjs");
var electricity_1 = require("../data/electricity");
require("rxjs/add/operator/map");
var Electr... |
"""
Copyright 2022 Technology Innovation Institute 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 agreed to... |
import React, {useRef, useEffect, useState} from 'react';
import PropTypes from 'prop-types';
const DragAndDrop = props => {
const dropRef = useRef(null);
const dragCounter = useRef(0);
const [dragging, setDragging] = useState(false);
const handleDrag = e => {
e.preventDefault();
e.stopPropagation();
... |
# coding: utf-8
"""
ORY Oathkeeper
ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501
The version of the OpenAPI document: Latest
Contact: hi@ory.am
Generated by: h... |
import { takeLatest, call, put, select } from 'redux-saga/effects';
import swal from 'sweetalert';
import { push } from 'connected-react-router';
import history from './../../../utils/history'
import * as AppSelectors from '../../App/selectors';
import * as AppActions from '../../App/actions';
import * as Selectors fro... |
const {
MessageEmbed
} = require("discord.js");
exports.run = async (client, message, args, level) => {
const language = client.getSettings(message.guild.id).language
const lang = require("../lib/languages/" + language + ".json")
try {
const hex = Math.random().toString(16).slice(2, 8).toUpper... |
"""
Interesting numbers are 3-or-more digit numbers that meet one or more of the following criteria:
Any digit followed by all zeros: 100, 90000
Every digit is the same number: 1111
The digits are sequential, incementing†: 1234
The digits are sequential, decrementing‡: 4321
The digits are a palindrome: 1221 or 73837
T... |
import React from "react";
import "../../style/feedback/feedback-area.scss";
class FeedbackArea extends React.Component {
render() {
return (
<div className="feedback-area">
</div>
)
}
} |
'use strict';
const consoleHelper = require('../helpers/consoleHelper');
const Duration = require('./Duration');
module.exports = class TaskRole {
/**
* Constructor for TaskRole
* @param {Object} roleDef Example:
* { name: 'crewA',
* ... |
// react
import React, { Component } from "react";
// other packages
import { createStackNavigator } from "@react-navigation/stack";
// screens
import { SignInScreen, SignUpScreen } from "../screens";
const Stack = createStackNavigator();
export default class AuthenticationScreensNavigator extends Component {
ren... |
import AppToggleButton from "~/components/AppToggleButton";
import { mount } from "@vue/test-utils";
describe('AppToggleButton', () => {
let wrapper;
beforeEach(() => {
// wrapper を null に設定し、GCされるようにする。
wrapper = null;
// wrapper に vue コンポーネントのマウント結果を代入して使い回す
wrapper = mount(AppToggleButto... |
import * as tslib_1 from "tslib";
import { Inject, Pipe } from '@angular/core';
import { TIME_LOCALE } from '../tokens/time-locale.token';
import { TimeUnit } from '../models/time-unit.enum';
import { DateTime } from 'luxon';
let TimeLocalizerPipe = class TimeLocalizerPipe {
constructor(locale) {
this.local... |
import { TOGGLE_NAV_VISIBILITY, TOGGLE_LOADED_RECORDS } from '../actions/siteHeader';
import { SET_CURRENT_PREVIEW } from '../actions/record';
const initialState = {
loaded_records_visibility: false,
nav_visibility: true,
nav_visibility_user: true,
loaded_records_visibility_user: false,
};
export default function... |
import auth0 from 'auth0-js';
import { Auth0Consts, FacternPaths, AppPaths } from '../constants/enums';
export default class Auth0 {
auth0 = new auth0.WebAuth({
domain: FacternPaths.auth0Domain,
clientID: Auth0Consts.clientId,
audience: FacternPaths.auth0Audience,
scope: 'openid email profile',
})... |
(function() {
sap.ui.jsfragment("view.SupplierAddressForm", {
createContent: function(oController) {
var form, grid;
form = new sap.ui.layout.form.SimpleForm({
minWidth: 1024,
editable: false,
content: [
new sap.ui.core.Title({
text: "Company"
})... |
$(document).ready(function(){"use strict";$("#products-datatable").DataTable({language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"},info:"Showing customers _START_ to _END_ of _TOTAL_",lengthMenu:'Display <select class=\'custom-select custom-select-sm ml-1 mr-1\'><opt... |
# TODO Should probably either correct these or ignore linting in tests
# pylint:disable=unused-wildcard-import,unused-variable,function-redefined
from settings import *
import pytest
from c3x.enomo.energy_optimiser import LocalEnergyOptimiser
N_INTERVALS = 48
SIMPLE_TOU_TARIFF = np.array([1.0] * 12 + [2.0] * 24 + [1... |
define(
({
commonWebmap: {
selector: {
lblWebMap: "Web 地图",
lblLocation: "位置",
lblContent: "内容",
lblPopup: "弹出窗口",
lblControls: "额外部分",
lblOverview: "鹰眼图",
lblLegend: "图例",
loadingTitle: "加载标题",
section: "节",
sections: "节",
and: "和",
action: "节中的操作",
actions: ... |
from typing import (
AbstractSet, Any, Callable, Dict, Iterable, List, Mapping, MutableMapping,
Optional, Sequence, Set, Tuple, Union, cast
)
from typing_extensions import TypedDict
import django.db.utils
from django.db.models import Count, Exists, OuterRef
from django.contrib.contenttypes.models import Conten... |
# import things
from flask_table import Table, Col
# Declare your table
class ItemTable(Table):
name = Col('Name')
description = Col('Description')
# Get some objects
class Item(object):
def __init__(self, name, description):
self.name = name
self.description = description
items = [Ite... |
# Copyright 2015 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... |
import roundedCorners from '../../src/macros/roundedCorners.es6'
describe('roundedCorners', () => {
it('should provide a default curvature of 10', () => {
expect(roundedCorners()).toEqual({'-moz-border-radius': 10, 'border-radius': 10, '-webkit-border-radius': 10});
});
it('should respect input radius', () ... |
/* eslint-disable no-console */
import { mergeDeepRight, propOr, pathOr } from 'ramda'
import { json } from '@podlove/utils/request'
import * as playerConfig from '@podlove/player-config'
const fetchChapters = async config => {
try {
return await json(playerConfig.chapters(config))
} catch (err) {
console.... |
module.exports = [
{
fileName: 'no-favicon.html',
response: [
{
href: 'http://www.example.com/favicon.ico',
name: 'favicon.ico',
active: true
}
]
},
{
fileName: 'all-favicon.html',
predicates: [
(i) => i.name === 'apple-touch-icon-precomposed',
(... |
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from profiles_api import views
router = DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,base_name='hello-viewset')
router.register('profile',views.UserProfileViewSet)
router.register('feed',views.UserProfileFeedV... |
""" run test suites written for nose. """
import sys
import pytest
from _pytest import python
from _pytest import runner
from _pytest import unittest
from _pytest.config import hookimpl
def get_skip_exceptions():
skip_classes = set()
for module_name in ("unittest", "unittest2", "nose"):
mod = sys.mod... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
'use strict'
/** @typedef {import('@adonisjs/framework/src/Request')} Request */
/** @typedef {import('@adonisjs/framework/src/Response')} Response */
/** @typedef {import('@adonisjs/framework/src/View')} View */
/** @typedef {import('@adonisjs/auth/src/Auth')} Auth */
const { HttpException } = use('@adonisjs/generic... |
/*var crypto = require('crypto');
exports.encode = function(payload, secret) {
var algorithm = 'HS256';
var header = {
type: 'JWT', alg: algorithm
};
var jwt = base64Encode(JSON.stringify(header)) + '.' + base64Encode(JSON.stringify(payload));
console.log();
return jwt + '.'+ sign (j... |
// via: https://github.com/diafygi/webrtc-ips
function DetectLocalIPAddress(callback, stream) {
if (!DetectRTC.isWebRTCSupported) {
return;
}
getIPs(function(ip) {
if (ip.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/)) {
callback('Local: ' + ip);
} else {... |
(function () {
'use strict';
const userNameInput = document.getElementById('user-name');
const assessmentButton = document.getElementById('assessment');
const resultDivided = document.getElementById('result-area');
const tweetDivided = document.getElementById('tweet-area');
/**
* 指定した要素の子どもを全て除去する
* @p... |
/*
Author: Seth Spawn (spawn@wisc.edu)
Date: Mar 20, 2019 [last modified]
Purpose: Defines aggregate300m() function that aggregates biomass and error maps to 300m spatial
resolution and exports them as an asset.
Usage: Source the function and provide parameters.
Parameters: image: the map to be ag... |
# This file is part of the GhostDriver project from Neustar inc.
#
# Copyright (c) 2012, Ivan De Marino <ivan.de.marino@gmail.com / detronizator@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions a... |
from pysc2.agents import base_agent
from pysc2.env import sc2_env
from pysc2.lib import actions, features, units
from absl import app
import random
import time
import logging
# Functions
_BUILD_BARRACKS = actions.FUNCTIONS.Build_Barracks_screen.id
_BUILD_SUPPLYDEPOT = actions.FUNCTIONS.Build_SupplyDepot_screen.id
_N... |
define("Types/_entity/format/RealField",["require","exports","tslib","Types/_entity/format/Field"],function(e,t,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPrecision=function(){r... |
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": {
"0": "\u062f\u0646",
"1": "\u0631\u0627\u062a"
},
"DAY": {
... |
/**
* Stacked 3D columns are column charts where categories are stacked on top of each other.
* This is typically done to visually represent the total of all categories
* for a given period or value.
*/
Ext.define('KitchenSink.view.charts.column3d.Stacked', {
extend: 'Ext.panel.Panel',
xtype: 'column-stacke... |
#!/usr/bin/env python
class Node:
def __init__(self, data):
self.vertex = data
self.next = None
class Graph:
"""Adjacency list representation by a Graph."""
def __init__(self, vertices):
self.v = vertices
self.graph = [None] * self.v
def add_edge(self, src, dest):
... |
/**
* @jest-environment node
*/
// @flow
const puppeteer = require('puppeteer');
const urlSingleList = 'http://localhost:9002/iframe.html?selectedKind=single%20vertical%20list&selectedStory=basic';
const timeout = 30000;
const returnPositionAndText = async (page, elem) =>
page.$$eval(elem, el =>
({
heigh... |
import asyncio
import logging
import pathlib
import time
import traceback
from asyncio import Task
from math import floor
from typing import Dict, Optional, Set, List, Tuple, Callable
import os
import yaml
from blspy import AugSchemeMPL, G1Element
from spare.consensus.block_rewards import calculate_pool_reward
from s... |
// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "InputCoreTypes.h"
#include "Templates/SubclassOf.h"
#include "Framework/Commands/InputChord.h"
#include "VoxelGraphShortcuts.generated.h"
class UVoxelNode;
USTRUCT()
struct FVoxelGraphEditorKeyBinding
{
GENERATED_BODY()
UPROPERTY(EditAny... |
import subprocess
from sys import platform
from time import sleep, time
import bitstring
import numpy as np
import pygatt
from . import helper
from .constants import *
class Muse():
"""Muse 2016 headband"""
def __init__(self, address, callback_eeg=None, callback_control=None,
callback_tele... |
from django.apps import AppConfig
class LojaConfig(AppConfig):
name = 'loja'
|
//import './FriendListApp.scss';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as Actions from '../actions/index';
import { Panel, Congratulation, LevelsList } from '../components';
import Levels from '../constants/Level... |
#pragma once
#include "utils/widgets.h"
#ifdef __APPLE__
#include <SDL2_ttf/SDL_ttf.h>
#else
#if defined(__ANDROID__) || defined(_WIN32) || defined(APPIMAGE)
#include <SDL_ttf.h>
#else
#include <SDL2/SDL_ttf.h>
#endif
#endif
// for drawing
class Shader {
public:
static constexpr GLuint vpos = 0, normal = 1, uvloc = ... |
define({
root: ({
_widgetLabel: "Zoom Slider"
}),
"ar": 1,
"bs": 1,
"cs": 1,
"da": 1,
"de": 1,
"el": 1,
"es": 1,
"et": 1,
"fi": 1,
"fr": 1,
"he": 1,
"hi": 1,
"hr": 1,
"it": 1,
"id": 1,
"ja": 1,
"ko": 1,
"lt": 1,
"lv": 1,
"nb": 1,
"nl": 1,
"pl": 1,
"pt-br": 1,
"pt-... |
import React from 'react';
import { ButtonGroup, Button, Glyphicon, Navbar, Nav, NavItem } from 'react-bootstrap';
import { Switch, Route, Link } from 'react-router-dom';
import * as routes from './routes.js';
import { Helmet } from 'react-helmet';
export default class index extends React.Component {
render() {
r... |
import {
prepareFinalObject,
handleScreenConfigurationFieldChange as handleField
} from "egov-ui-framework/ui-redux/screen-configuration/actions";
import { updatePFOforSearchResults } from "../../../../ui-utils/commons";
import get from "lodash/get";
import set from "lodash/set";
import { footer } from "../bpastak... |
# Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
/***/ "./node_modules/@ionic/core/dist/esm/legacy/index-3a9dcfed.js":
/*!********************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/legacy/index-3a9dcfed.js ***!
\******************************... |
#!/usr/bin/env python
"""
run_1yr_benchmark.py: Driver script for creating benchmark plots and testing
gcpy 1-year TransportTracers benchmark capability.
Run this script to generate benchmark comparisons between:
(1) GCC (aka GEOS-Chem "Classic") vs. GCC
(2) GCHP vs GCC (not yet tested)
... |
var searchData=
[
['saveload',['SaveLoad',['../automation_2_save_load_8js.html#aab1ff378b1a0571b96d4751a56d5d51a',1,'SaveLoad(): SaveLoad.js'],['../tests_2_save_load_8js.html#a3eb444dd4c395fc7928597dc81aff236',1,'SaveLoad(): SaveLoad.js'],['../regression_8js.html#a2206c837077e2683d87db783e7d49dfb',1,'savelo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AdminUsersSessionGetSettingsResponse.js.map |
/**
GridStoreAdapter
Stores files in Mongo using GridStore
Requires the database adapter to be based on mongoclient
@flow weak
*/
import { MongoClient, GridStore, Db} from 'mongodb';
import { FilesAdapter } from './FilesAdapter';
import defaults from '../../defaults';
export cl... |
# encoding: utf-8
# Copyright 2012 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
'''IPDA Site views: documentation tests.'''
from ipdasite.views.testing import IPDA_SITE_VIEWS_FUNCTIONAL_TESTING as LAYER
from plone.testing import layered
import doctest
import uni... |
import sys
from .base import *
# make db document in top blog, or in the directory of settings
BASE_DIR = os.path.dirname(BASE_DIR)
DEBUG = True
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME':... |