text
stringlengths
3
1.05M
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tfold.object_detection/protos/keypoint_box_coder.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
# (c) 2016 Red Hat Inc. # # 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 dis...
OC.L10N.register( "files_external", { "Personal" : "ವೈಯಕ್ತಿಕ", "Saved" : "ಉಳಿಸಿದ", "Username" : "ಬಳಕೆಯ ಹೆಸರು", "Password" : "ಗುಪ್ತ ಪದ", "Save" : "ಉಳಿಸಿ", "Port" : "ರೇವು", "WebDAV" : "WebDAV", "URL" : "ಜಾಲದ ಕೊಂಡಿ", "Local" : "ಸ್ಥಳೀಯ", "Host" : "ಅತಿಥೆಯ-ಗಣಕ", "Shar...
module.exports={A:{A:{"2":"J D E F A B rB"},B:{"2":"C K L G M N O P a b c d e f g T h H i","450":"Q R S V W X Y Z"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sB hB I j J D E F A B C K L G M N O k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB iB OB jB PB QB U RB SB TB UB VB WB XB YB ZB aB bB cB dB eB P Q R k...
import React from "react" import Styles from "../styles/components/footer.module.scss" const Footer = () => ( <footer className={Styles.footer}> <div className={Styles.top}> <p>まずはお気軽にお問い合わせ下さい!</p> <div className={Styles.top__link}> {/* <a className={Styles.line} href="#">LINE@</a> */} ...
/* global window */ import configureStore from '../common/configureStore'; export default configureStore(window.REDUX_STATE).store;
/** * Controller for the dashboard route. * Render proper template. */ (function () { 'use strict'; angular .module(HygieiaConfig.module) .controller('DashboardController', DashboardController); DashboardController.$inject = ['dashboard', '$location', 'dashboardService']; function D...
// This file is adapted from supporting material for the Udacity course // "Interactive 3D Graphics" https://www.udacity.com/course/interactive-3d-graphics--cs291 // My changes: // - Wrap as a module for use with require.js (no shim needed) // - Don't reference any global objects; just pass in THREE as a dependency // ...
from streamlink.plugins.raiplay import RaiPlay from tests.plugins import PluginCanHandleUrl class TestPluginCanHandleUrlRaiPlay(PluginCanHandleUrl): __plugin__ = RaiPlay should_match = [ "http://www.raiplay.it/dirette/rai1", "http://www.raiplay.it/dirette/rai2", "http://www.raiplay.it...
import React from 'react'; import { storiesOf } from '@storybook/react'; import Progress from './Progress.component'; const containerStyle = { border: '1px solid black', width: '450px', height: '200px', }; storiesOf('Messaging & Communication/ProgressBar', module) .add('Percent', () => ( <div> <h1>Action</h...
import { merge } from "lodash"; import ReactApexChart from "react-apexcharts"; // material import { Card, CardHeader, Box } from "@mui/material"; // import { BaseOptionChart } from "Components/kit/charts"; // ---------------------------------------------------------------------- const CHART_DATA = [ { name : ...
# coding: utf-8 import os import sys import time import unittest import requests import base64 sys.path.append(".") TEST_CLIENTS = set(os.environ.get("EZ_TEST_CLIENTS", "").split(",")) IS_WIN_PLATFORM = sys.platform != "darwin" @unittest.skipUnless("yh" in TEST_CLIENTS and IS_WIN_PLATFORM, "skip yh test") class Te...
export const cisCamera = ["512 512"," <path fill='currentColor' d='M480,120H380.9141L357.0913,58.2417A16,16,0,0,0,342.1635,48h-172.8a16,16,0,0,0-14.9618,10.33L131.0316,120H32a16,16,0,0,0-16,16V456a16,16,0,0,0,16,16H480a16,16,0,0,0,16-16V136A16,16,0,0,0,480,120ZM256,386A104,104,0,1,1,360,282,104,104,0,0,1,256,386Z'/>"]
'use strict'; angular.module('app.club.controllers', []) .config(function ($stateProvider) { $stateProvider .state('club', { abstract: true, templateUrl: 'club/layout.html', url: '/club/{id:[0-9]{1,8}}', controller: function ($scop...
from .base_model import BaseModel from . import networks import torch from visda.utils.serialization import load_checkpoint, save_checkpoint, copy_state_dict class TestModel(BaseModel): """ This TesteModel can be used to generate CycleGAN results for only one direction. This model will automatically set '--da...
// Just a Math.random(), // it requires the [1, 10], random() will give me [0, 1). // So, it should times 10 and then plus 1 function randomArraySize10() { const result = []; for (let i = 0; i < 10; i++) { result.push(Math.floor(Math.random() * 10 + 1)); // Generate a number belongs to the [1, 10], and...
// Global vars var pymChild = null; var isMobile = false; var dataSeries = []; /* * Initialize graphic */ var onWindowLoaded = function() { if (Modernizr.svg) { formatData(); pymChild = new pym.Child({ renderCallback: render }); } else { pymChild = new pym.Child({...
/* Copyright (c) 2021 Christer Johansson of Sweden Inc. 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, merg...
;(function(module) { var mod2 = module.require('./test_module_2.js'); console.log("Required modules look like; test module 2: " + JSON.stringify(mod2, null, '\t')); function callMe() { console.log("Module 3 callMe."); } mod2.callMe(function() { console.log("Got callback from mod2....
"use strict"; var __importDefault = (this && this.__importDefault) || function(mod) { return mod && mod.__esModule ? mod : { default: mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const PageTemplate_1 = __importDefault(require("../PageTemplate")); const react_redux_1 = require("reac...
const retrieveUris = require('../retrieveUris') const config = require('../config') const sparql = require('../sparql/sparql') const getUrisFromReq = require('../getUrisFromReq') const loadTemplate = require('../loadTemplate') const getOwnedBy = require('../query/ownedBy') module.exports = function (req, res) { cons...
""" Author: Amanda Dewyer Date: September 7th 2020 Main function of basis set selector package.. Program will create and run nwchem quantum chemistry calculations with various basis sets and identify which basis sets produce a property type within a given threshold of a reference value supplied by the user. The code...
const {MessageEmbed} = require('discord.js'); const config = require('../../../config.json'); const errors = require('../../lib/errors.js'); // Почему я всё это решил прокомментировать? Не знаю... Но хуже от этого не стало) module.exports = { "run": async (message, bot, args) => { messa...
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {getCartThunk, checkOutThunk} from '../store/cartReducer' import Checkout from './checkout' import RemoveButton from './removeCartItem' class DisconnectedCart extends React.Component { componentDidMount() { ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{1420:function(e,a){e.exports=function(e){var a="\\]|\\?>",n={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes k...
// // Index initializers and boot-strapper of NodeJs application which only serve static app // // Copyright © 2019 Province of British Columbia // // 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 Lice...
(function($) { var likeForumButton = $('#forum-like-button'); var dislikeForumButton = $('#forum-dislike-button'); console.log(forumId); likeForumButton.click(function(event) { $.ajax({ 'url': '/forums/' + forumId + '/like', 'type': 'PUT', 'success': function...
import initAnt from './ant' // import initConstant from './constant' import initMethod from './method' import initGlobalComponent from './component' export default function (app) { initAnt(app) // initConstant(app) initMethod(app) initGlobalComponent(app) }
""" ASGI config for api project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application from config.config import project_name ...
import Type from '../../Ux.Type'; import Value from '../../Ux.Value'; import U from 'underscore'; import Ux from "ux"; const _isOk = (value) => !U.isArray(value) && U.isObject(value); const _searchReference = (criteria = {}, field, flag = "") => { /** * 直接在 criteria 的树中查找是否包含了 field 的信息 * */ if...
'use strict' describe('reference emitter', function () { var Observable = require('../../../../../lib/observable/') it('should fire with the old reference', function (done) { var a = new Observable() var b = new Observable({ key: 'b' }) var c = new Observable({ key: 'c' }) b.set({ on: { ...
/** * Get the current Sheet details and format Sheet as needed */ Logger.log("Getting Spreadsheet"); var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheetByName("Queue"); if (!sheet) { Logger.log("Queue sheet not found! Creating..."); ss.insertSheet("Queue", 0); sheet = ss.getSheetByName("Queu...
import numpy as np import math extraNumber = 4 * math.pi * pow(10,-7) def timeConstant(): henry = float(input('Input Henry: ')) ohms = float(input('Output Ohms: ')) ohms = ohms / 1000 timeConstant = henry/ohms print(timeConstant) timeConstant()
if( typeof module !== 'undefined' ) require( 'wmathconcepts' ); var _ = wTools; var eulerSeqs = [ 'xyz', 'xzy', 'yxz', 'yzx', 'zxy', 'zyx', 'xyx', 'xzx', 'yxy', 'yzy', 'zxz', 'zyz' ]; var angle = [ 0, Math.PI / 6, Math.PI / 4, Math.PI / 3 ]; var quadrant = [ 0, 1, 2, 3 ]; var quadrantLock = [ 0 ]; var accuracy = _.EP...
function DisableBrowserContextMenu(){ //return true; return ['INPUT', 'TEXTAREA'].indexOf(document.activeElement.tagName) == -1 ? false : true; } function RandomInteger(Minimum, Maximum){ return Math.floor(Math.random() * (Maximum - Minimum) + Minimum + 1); } function WordInitials(Sentence){ Initial = Sen...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([],function(){"use strict";var e={apiVersion:2};e.render=function(e,n){var t=n._getNextButton(),r=n._getPreviousButton();e.openStart("div",n);e.class("sapM...
module.exports = { extends: ['react-app', 'airbnb-base'], globals: { __PATH_PREFIX__: true, Atomics: 'readonly', SharedArrayBuffer: 'readonly', }, rules: { 'no-underscore-dangle': 0, 'comma-dangle': ['error', { 'arrays': 'always-multiline', 'objects': 'always-multilin...
/* * String.prototype.format * * Usage: 'My name is {0}. Welcome to {1}.'.format('Bob', 'Denver'); * Output: 'My name is Bob. Welcome to Denver.' * */ String.prototype.format = function() { var formattedString = this; for (var i = 0; i < arguments.length; i++) { var reg = new RegExp('\\{' + i + '\...
(function(e, a) { for(var i in a) e[i] = a[i]; }(window, /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /...
import unittest from flask.testing import FlaskClient from app import create_app from app.model import User class Test_api(unittest.TestCase): def setUp(self): self.app = create_app() self.app_context = self.app.app_context() self.app_context.push() u = User(ID=10, name="小明", pa...
define("ace/occur",["require","exports","module","ace/lib/oop","ace/range","ace/search","ace/edit_session","ace/search_highlight","ace/lib/dom"],function(e,t,n){"use strict";function a(){}var r=e("./lib/oop"),i=e("./range").Range,s=e("./search").Search,o=e("./edit_session").EditSession,u=e("./search_highlight").SearchH...
const {getUsers, getUserById} = require('./dao'); const userList = (req, res) => { res.send(getUsers()); }; const userInfo = (req, res) => { res.send(getUserById(req.params.userId)); }; module.exports = {userList, userInfo};
define('global-partials', ['schnauzer', '!global-partials.html'], (Schnauzer, template) => { const globalPartials = new Schnauzer(template).partials; delete globalPartials.self; return globalPartials; });
'use strict'; var merge = require('./merge'); var invariant = require('./invariant'); var encode = require('./encode'); var decode = require('./decode'); var setAuthorization = require('./set-authorization'); var defaultMeta = { authenticated: true, method: 'GET' }; function middleware(options, store, next, acti...
import inspect import textwrap def shader_string(body, glsl_version='450 core'): """ Call this method from a function that defines a literal shader string as the "body" argument. Dresses up a shader string in three ways: 1) Insert #version at the top 2) Insert #line number declaration ...
/** * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * tests/clock/utils/runIndex.js */ 'use strict'; // eslint-disable-line stric...
import React from 'react'; import { mount } from 'enzyme'; import Card from '../components/Card/index'; import Table from '../components/Table/index'; import Chart from '../components/Chart/index'; describe( 'Home container component', () => { // Proposal: This data would be moved to a shared area for tests. ...
define(["Tone/core/Tone", "Tone/effect/Effect", "Tone/signal/WaveShaper"], function(Tone){ "use strict"; /** * @class Tone.Distortion is a simple distortion effect using Tone.WaveShaper. * Algorithm from [a stackoverflow answer](http://stackoverflow.com/a/22313408). * * @extends {Tone.Effect} * ...
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/ext...
function CtrlC (text) { return navigator.clipboard.writeText(text); var ID_NEW_TEXTAREA = 'ctrlc-clipboard-textarea-hidden-id'; var elTextarea = document.getElementById(text); if (elTextarea) { console.error("CtrlC: The textarea already exists, and it shouldn't.") return false; ...
// This icon file is generated automatically. // tslint:disable var FallOutlined = { "name": "fall", "theme": "outlined", "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 38...
// @TODO Extract shared code? var countColumns = function () { return $('#scoreBoardHead tr:first th').length - 2; }; var addRow = function (skipValueChangedHandler) { var rowContent = ''; var columnCount = countColumns(); for (var i = 0; i < columnCount; i++) { rowContent += '<td class="resul...
module.exports = { Auth: { time: 600, maxReq: 20, skip: "/api/v1/auth" // if not contains that, then skip ! }, Global: { time: 60, maxReq: 150, skip: "/api/v1" // if not contains that, then skip ! } };
const appRoot = require('app-root-path') const MODELS = require(appRoot + '/models') const CODE = require(appRoot + '/server/api/common/code.js') const CONFIG = require(appRoot + '/server/api/common/config.js') const UTIL = require(appRoot + '/server/api/common/util.js') const Sequelize = MODELS.Sequelize const Uploa...
import Gamemode from './Gamemode'; import BasicRectangle from '../entities/BasicRectangle'; import BasicLine from '../entities/BasicLine'; /* Test gamemode. */ class TestGamemode extends Gamemode { constructor(game, resources) { super(game, resources); const rect = new BasicRectangle(this.game, 640, 32, 10,...
import actionTypes from '../actions/actionTypes' function productsReducer (state = [], action) { switch (action.type) { case actionTypes.FETCH_DATA_SUCCESS: return reconcile(state, action.data); case actionTypes.CREATE_POWER_SUCCESS: return reconcile(state, [action.data]); case actionTypes.ED...
import*as t from"dayjs";var n=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD",o=t().startOf("month").subtract(n,"month"),a=t().startOf("month").subtract(n,"month").endOf("month");return[o,a].map((function(t){return t.format(...
const path = require('path'); const protobuf = require('protobufjs'); const requestHelper = require('./trace_request'); const middleware = require('./tracer_middleware'); const tracing = require('opentracing'); const tracerFactory = require('./tracer_factory'); const constants = require('./constants'); const noop = f...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.omnivore=e()}}(function(){var e;return function r(e,n...
# -*- coding: utf-8 -*- """ The BaseCase class is the main gateway for using The SeleniumBase Framework. It inherits Python's unittest.TestCase class, and runs with Pytest or Nose. All tests using BaseCase automatically launch WebDriver browsers for tests. Usage: from seleniumbase import BaseCase class MyTest...
const initial = {display: false}; export default function (state = initial, action){ switch (action.type){ case 'TOGGLE_STATISTICS': return {display: action.payload}; default: return state; } }
/** * * The Bipio Tumblr Pod. * --------------------------------------------------------------- * * Copyright (c) 2017 InterDigital, 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...
const fs = require('fs-extra'); const path = require('path'); // Check if lerna.json is present to determine if we're in a monorepo. const isMonoRepo = async () => fs.pathExists(path.join(process.cwd(), 'lerna.json')); module.exports = isMonoRepo;
/** * tablefilter v0.2.54 by Max Guglielmi * build date: 2016-08-14T04:09:44.069Z * MIT License */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?...
import uuid from datetime import datetime, timedelta from flask import current_app from notifications_utils.letter_timings import ( CANCELLABLE_JOB_LETTER_STATUSES, letter_can_be_cancelled, ) from sqlalchemy import and_, asc, desc, func from app import db from app.dao.dao_utils import autocommit from app.dao....
"use strict"; /* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = argumen...
import React from 'react'; import test from 'ava'; import {Box, renderToString} from '..'; test('grow equally', t => { const output = renderToString( <Box width={6}> <Box flexGrow={1}>A</Box> <Box flexGrow={1}>B</Box> </Box> ); t.is(output, 'A B'); }); test('grow one element', t => { const output = re...
import Utils from './utils'; // Generic "model" object. You can use whatever // framework you want. For this application it // may not even be worth separating this logic // out, but we do this to demonstrate one way to // separate out parts of your application. class TodoModel { constructor(key) { this.key = key; ...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1764',"Tlece.Recruitment.Models.Applicants Namespace","topic_00000000000005D2.html"],['1770',"ApplicantsDetailVm Class","topic_00000000000005DE.html"],['1774',"Properties","topic_00000000000005DE_props--.html"],['17...
// Detect Querystrings function parseQueryStrings() { var queryStrings = {}; //Parse URL var url = window.location.search.substring(1); if (url) { //split querystrings var pairs = url.split('&'); for (pair in pairs) { pairArray = pairs[pair].split('='); qu...
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.00514,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00514,"19":0.00514,"20":0,"21":0.00514,"22":0.00514,"23":0.00514,"24":0.04626,"25":0.00514,"26":0.08224,"27":0.01028,"28":0.01028,"29":0.04626,"30":0.0257,"31":0.03598,"32":0.01028,"33":0.14906,"3...
/*! * froala_editor v1.1.6 (http://editor.froala.com) * Copyright 2014-2014 Froala */ /** * German */ $.Editable.LANGS['de'] = { translation: { "Bold": "Fett", "Italic": "Kursiv", "Underline": "Unterstrichen", "Strikethrough": "Durchgestrichen", "Font Size": "Schriftgr\u00f6\u00dfe", "C...
var css = require('sheetify') var choo = require('../') css('todomvc-common/base.css') css('todomvc-app-css/index.css') var app = choo() if (process.env.NODE_ENV !== 'production') { app.use(require('choo-devtools')()) } app.use(require('./store')) app.route('/', require('./view')) app.route('#active', require('./v...
const { ContextPermissions } = require('context-permissions') const actionProfile = { treasurer: [ 'manage_money', 'allocate_expenses', 'purchases' ], citizen: [ 'vote' ], mayor: [ 'city_key' ], } let cp; beforeEach(() => { cp = new ContextPermissio...
import React from 'react' import SvgIcon from '@material-ui/core/SvgIcon' function Add (props) { return ( <SvgIcon {...props}> <path d='M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z' /> </SvgIcon> ) } export { Add }
import React from 'react'; import classes from './DrawerToggle.module.css'; const drawerToggle = (props) => ( <div onClick={props.clicked} className={classes.DrawerToggle}> <div></div> <div></div> <div></div> </div> ) export default drawerToggle;
function add_to_cart(id) { var key = 'product_' + id; var x = window.localStorage.getItem(key); x = x * 1 + 1; window.localStorage.setItem(key, x); update_orders_input(); update_orders_button(); } function update_orders_input() { var orders = cart_get_orders(); $('#orders_input').val(orders); } function up...
//////////////////////////////////////////////////////////////////////////////// // js-graphics-mathlib // Math library for JavaScript 2D/3D graphics rendering. // // MIT License (c) 2015-2019 Jingwood, All rights reserved. //////////////////////////////////////////////////////////////////////////////// export const E...
import { PAGE_TYPES } from "./PageTypes"; export const setSidebarShow = (val) => (dispatch, getState) => { dispatch({ type: PAGE_TYPES.SHOW_SIDEBAR, sidebarShow: val }); };
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; import { container, text } from '../styles'; export default function Error({ title, message }) { return ( <View style={[container.inner, styles.errorContainer]}> <Text style={[text.headline, text.white, text.upper, text.smal...
module.exports = wrapRequest const noop = () => Promise.resolve() function wrapRequest (state, request, options) { return state.retryLimiter.schedule(doRequest, state, request, options) } async function doRequest (state, request, options) { const isWrite = options.method !== 'GET' && options.method !== 'HEAD' ...
from __future__ import annotations from prettyqt import widgets from prettyqt.qt import QtWidgets QtWidgets.QSizeGrip.__bases__ = (widgets.Widget,) class SizeGrip(QtWidgets.QSizeGrip): pass if __name__ == "__main__": app = widgets.app() w = widgets.Widget() widget = SizeGrip(w) widget.show() ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 4c3.87 0 7 3.13 7 7v1h-2c-.6 0-1.13.27-1.49.68L21 18.17V11c0-4.97-4.03-9-9-9-2.02 0-3.88.67-5.38 1.8l1.43 1.43C9.17 4.45 10.53 4 12 4zm9.19 17.19L2.81 2.81a.9959.9959 0 0 0-1.41 0C1 3.2 1 3.8...
//// [tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts] //// //// [aux.ts] export class SomeClass { field: string; } //// [aux1.ts] export class SomeClass1 { field: string; } //// [aux2.ts] export class SomeClass2 { field: string; } //// [main.ts] import { SomeClass } from...
""" Illustris Simulation: Public Data Release. snapshot.py: File I/O related to the snapshot files. """ from __future__ import print_function import numpy as np import h5py import six from .util import partTypeNum from .groupcat import gcPath, offsetPath def snapPath(basePath, snapNum, chunkNum=0): "...
from six import iteritems, itervalues from grouper.group_requests import get_requests_by_group from grouper.models.request import Request from grouper.user import user_requests_aggregate from tests.fixtures import ( # noqa: F401 graph, groups, permissions, service_accounts, session, standard_g...
import React, { useState, useEffect, useRef } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Button } from 'react-native'; import { HeaderTitle } from '@react-navigation/stack'; class HomeScreen extends React.Component { constructor(props) { super(props); this.state = { ...
import { getBidRequest } from '../utils.js'; var bidfactory = require('../bidfactory.js'); var bidmanager = require('../bidmanager.js'); var adloader = require('../adloader.js'); var utils = require('../utils.js'); var CONSTANTS = require('../constants.json'); /** * Adapter for requesting bids from AdMedia. * */ va...
require('../../tests_globals.js').init(); require('../../AsyncData.js'); //create AsyncData, user subscribed, load data to AsyncData, user gets data, read data again, user gets data again var o = null; var newData1 = { a: 1, b: "2", c: 3 }; var newData2 = { a: 2, b: "4", c: 3 }; it('should create AsyncData object', ...
# -*- coding: utf-8 -*- """ :authors: deker104, python273 :license: Apache License, Version 2.0, see LICENSE file :copyright: (c) 2019 python273 """ from enum import Enum import requests CHAT_START_ID = int(2E9) class DotDict(dict): __getattr__ = dict.get __setattr__ = dict.__setitem__ __delattr__ = di...
/* istanbul instrument in package npmtest_passport_openidconnect */ /*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 - pre-init (functi...
var fs = require('graceful-fs') var path = require('path') var userconfigSrc = path.resolve(__dirname, '..', 'fixtures', 'config', 'userconfig') exports.userconfig = userconfigSrc + '-with-gc' exports.globalconfig = path.resolve(__dirname, '..', 'fixtures', 'config', 'globalconfig') exports.builtin = path.resolve(__dir...
/* Requirements for running this: Copy `config.example.js` -> `config.js`, and update the values within. Dependencies from npm: discord.js, twitch-helix-api twit */ const Discord = require('discord.js'); const dustforceDiscord = new Discord.Client(); const config = require('./config')...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("./types"); const attr_1 = require("./attr"); const cdata_section_1 = require("./cdata-section"); const comment_1 = require("./comment"); const document_fragment_1 = require("./document-fragment"); const document_utils_1 = require("./d...
import sys import os SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) print(SCRIPT_DIR) sys.path.append(SCRIPT_DIR)
import React, { Fragment } from "react"; import { FormattedNumber } from "react-intl"; import { TranslatedMessage } from "lib/TranslatedMessage"; import HistoryEntry from "./HistoryEntry"; import AccountLink from "../../../AccountLink"; import BlockLink from "../../../BlockLink"; import OptionalField from "../../../Op...
import numba.cuda as cuda import time class time_region: def __init__(self, time_offset=0): self._time_off = time_offset def __enter__(self): self._t_start = time.time() return self def __exit__(self, exc_type, exc_value, traceback): self._t_end = time.time() def ela...
#!/usr/bin/env python import binascii from os import error import sys, string, struct from datetime import date import argparse import os.path import itertools as it import encodings import fileinput import re import base64 ''' .d88b 8888 888b. 8888 888b. 888b. .d88b. 8P 8www 8 .8 8www 8wwwP 8 .8 8P Y8 8b 8...
'use strict'; function SVGMorpheus(element, options, callback) { if (!element) { throw new Error('SVGMorpheus > "element" is required'); } if(typeof element === typeof '') { element=document.querySelector(element); if (!element) { throw new Error('SVGMorpheus > "element" query is not related t...
var _a; import { Model } from "../../model"; import { View } from "../../core/view"; import { Indices } from "../../core/types"; import { Filter } from "../filters/filter"; export class CDSViewView extends View { initialize() { super.initialize(); this.compute_indices(); } connect_signals() ...