text
stringlengths
3
1.05M
#!/usr/bin/env python # MIT License # (c) baltasar 2017 import webapp2 from google.appengine.api import users from google.appengine.ext import ndb import model.character from model.character import Character class AddCharacter(webapp2.RequestHandler): def get(self): try: story_id = self.requ...
/** @module "ui/template-object-cell.reel" @requires montage @requires montage/ui/component */ var Component = require("montage/ui/component").Component, Promise = require("montage/core/promise").Promise, MimeTypes = require("core/mime-types"), MenuModule = require("core/menu"); /** Description TODO ...
# MIT License # # Copyright (c) 2017 Anders S. Christensen and Felix A. Faber # # 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 # ...
from distutils.core import setup, Extension setup(name='factors', ext_modules=[Extension('factors', ['factors.cpp', 'factorization.cpp'])] )
var convert = require('./convert'); module.exports = convert(require('../date'));
/** * Author: CodeLai * Email: codelai@dotdotbuy.com * DateTime: 2016/7/18 15:49 */ import React from 'react'; import FilterLink from '../containers/FilterLink'; import { todoFilters } from '../actions/index'; const Footer = () => ( <p ref={() => console.log('Footer')}> Show: {" "} <FilterLink filter...
/** * Copyright 2020 The AMP HTML 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 require...
//from gulp-concat README.md /* This will concat files by your operating systems newLine. It will take the base directory from the first file that passes through it. */ var gulp = require("gulp"); var concat = require('gulp-concat'); gulp.task('scripts', function() { return gulp.src('./lib/*.js') .pipe(concat('...
/* JTSK-320112 Problem 6.4 Digdarshan Kunwar d.kunwar@jacobs-university.de */ #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAXCHAR 50 struct account{ char username[MAXCHAR]; int size; struct account *next; }; void dispose_list( struct account *my_list); int main(){ FILE *fp; ...
import React from 'react'; import { Divider, Drawer } from '@material-ui/core'; import { HelpOutline as HelpOutlineIcon } from '@material-ui/icons'; import theme from '../../themes/mender-theme'; import DeviceConfiguration from './eventdetails/deviceconfiguration'; import FileTransfer from './eventdetails/filetransf...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
from string import ascii_lowercase as asc_l from math import floor def get_normalize_block_name(idx) -> str: ''' returns names starting from a,b,c... aa ... to zz args : Idx: index of the block name .. Eg 1:'a' 2: 'b' ... 27:'aa' idx starts from 1 returns: normal...
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b...
import fs from "fs"; import matter from "gray-matter"; import path from "path"; import remark from "remark"; import html from "remark-html"; const postsDirectory = path.join(process.cwd(), "posts"); export function getSortedPostsData() { // Get file names under /posts const fileNames = fs.readdirSync(postsDirecto...
import React from 'react' import { Container, Flex } from '../../styles/globalStyles' const HomeAbout = () => { return ( <HomeAboutSection> <Container> <Flex> <About> <h2> Furrow is an integrated, full-service creative studio offering ...
from torch.utils import data from networks.pspnet_combine import Res_pspnet, BasicBlock, Bottleneck from networks.evaluate import evaluate_main from dataset.datasets import CSDataTestSet from utils.train_options import TrainOptionsForTest import torch if __name__ == '__main__': args = TrainOptionsForTest()...
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import # Import Salt Testing libs from tests.support.case import ModuleCase class StdTest(ModuleCase): ''' Test standard client calls ''' def test_cli(self): ''' Test cli function ''' cmd_ite...
from nose.tools import assert_equal from pyecharts.commons import utils def test_utils_produce_require_dict(): cfg = utils.produce_require_dict(utils.OrderedSet("echarts"), "https://example.com") assert_equal(cfg["config_items"], ["'echarts':'https://example.comecharts.min'"]) assert_equal(cfg["l...
# # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from da...
import time import os import csv import airsim from tensorflow.keras.models import load_model as tf_load_model import numpy as np MIN_ALTITUDE = 10 MAX_ALTITUDE = 15 NUM_EPISODES = 100 #load pre-trained model def load_trained_model(): loaded_model = tf_load_model("./models/modelVerticalNN_2.h5") print("Model ...
/*! * jQuery JavaScript Library v2.0.2 -sizzle,-css,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.o...
import os import io from . import _common from ._common import as_file, files from .abc import ResourceReader from contextlib import suppress from importlib.abc import ResourceLoader from importlib.machinery import ModuleSpec from io import BytesIO, TextIOWrapper from pathlib import Path from types import ModuleType f...
//===--- MemoryLifetime.h ---------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
import styles from './template.css'; import template from './template'; import AoflElement from '@aofl/web-components/aofl-element'; /** * @summary IconOutlineVpnLockElement * @class IconOutlineVpnLockElement * @extends {AoflElement} */ class IconOutlineVpnLockElement extends AoflElement { /** * Creates an in...
""" Filter for detecting multiple salient regions. The detection works by first extracting the full saliency map using an object extraction algorithm. The saliency map is binarized using a threshold which is calculated individually for each image as the weighted average of 3/4 of the biggest saliency values. Using thi...
# Copyright 2019 Intel Corporation. import functools import inspect import logging import math import os from collections import defaultdict from contextlib import contextmanager import six import numpy as np import scipy.stats import plaidml2 as plaidml import plaidml2.edsl as edsl import plaidml2.exec as plaidml_e...
import json from pathlib import Path from pprint import pprint from typing import Any, Type, TypeVar import cattr from dfi.config import FileGroup, Settings # type: ignore # noqa from dfi.dotfile import LinkData # type: ignore # noqa from .conftest import FixturePaths BASE_DIR = Path("/home/foo/settings...
import copy import pickle from typing import Callable, Optional, Tuple from contextlib import contextmanager from torchcontrib.optim import SWA from pathlib import Path import sys import itertools import argparse import torch.utils.data as torchdata import torch import torchvision as tv from alr.utils import stratifie...
import logging import logging.config import os from django.conf import settings def configure_logging(config_file, log_file): if os.path.exists(config_file): logging.config.fileConfig(config_file) else: logging.basicConfig() logging.getLogger().setLevel(logging.INFO) _file_handl...
/****************************************************************************** * Copyright 2017-2018 Baidu Robotic Vision 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 ...
const purgecss = require('@fullhuman/postcss-purgecss')({ // Specify the paths to all of the template files in your project content: [ './src/**/*.js', // etc. ], // Include any special characters you're using in this regular expression defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) ...
import { TriggerAnimationStep } from './TriggerStep'; import * as tools from '../../../tools/tools'; import makeFigure from '../../../__mocks__/makeFigure'; import { Point, } from '../../../tools/g2'; tools.isTouchDevice = jest.fn(); jest.mock('../../Gesture'); jest.mock('../../webgl/webgl'); jest.mock('../../DrawC...
exports.run = async (client, message, args, level) => {// eslint-disable-line no-unused-vars try { if (!args || args.length < 1) return message.reply('You must provide a command to load!'); let response; response = client.loadCommand(args[0]); if (response) return message.reply(`Error Loading: ${resp...
from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from django.contrib import messages from django.shortcuts import render, redirect from django.urls import reverse from django.views.generic import TemplateView, DetailView, ListView from project_core.forms.funding_instrument import Fundi...
from videos_search.src import video_url from videos_search.src.firebase_database import Database from videos_search.settings import MAX_SCRAPED_VIDEOS class VideoManager: _db = Database("videos") def create_video(self, save,*args, **kwargs): video_obj = object.__new__(Video) video_obj.__init_...
from __future__ import print_function import base64 import collections import contextlib import copy import errno import getpass import grp import hashlib import itertools import json import logging import mmap import os import platform import pprint import psutil import pwd import re import shlex import shutil import ...
/* * Copyright (c) 2016 Nordic Semiconductor ASA * Copyright (c) 2016 Vinayak Kariappa Chettimada * * SPDX-License-Identifier: Apache-2.0 */ #include <soc.h> #include <errno.h> #include <atomic.h> #include <device.h> #include <clock_control.h> #include <misc/__assert.h> #include "nrf_clock.h" #if defined(CONFIG_U...
# 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...
// Copyright 2009 The Closure Library 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 requ...
var topic = [ "尚未開學", "國定假日", "環境準備", "隨機性", "重複性", "條件判斷" ]; var startDate = new Date(); function setMonthAndDay(startMonth, startDay) { //一次設定好月份與日期 startDate.setMonth(startMonth - 1, startDay); startDate.setHours(0); startDate.setMinutes(0); startDate.setSeconds(0); } va...
"""Define reusable pytest fixtures.""" import tempfile from types import SimpleNamespace import pytest from yamlpath.wrappers import ConsolePrinter from yamlpath.eyaml import EYAMLProcessor # Implied constants EYAML_PRIVATE_KEY_FILENAME = "private_key.pkcs7.pem" EYAML_PUBLIC_KEY_FILENAME = "public_key.pkcs7.pem" # ...
/* * Test to ensure that (dump/restore/export/import/oplog) works with a replica set connection string * 1. Start a replica set. * 2. Add data to a collection. * 3. Take a dump of the database. * 4. Drop the db. * 5. Restore the db. * 6. Export a collection. * 7. Drop the collection. * 8. Import the collection...
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limi...
import argparse import os import sys sys.path.append("..") import yaml from tensorflow.keras import Model from tensorflow.keras.applications.inception_v3 import InceptionV3 from tensorflow.keras.layers import Embedding, LSTM, Dense, Input, Bidirectional, RepeatVector, Concatenate, Dropout, Add from tensorflow.keras.c...
from ..widgets.FileDialog import FileDialog from ..Qt import QtGui, QtCore, QtSvg from ..python2_3 import asUnicode, basestring from ..GraphicsScene import GraphicsScene from ..graphicsItems.GraphicsLayout import GraphicsLayout from ..graphicsItems.ScatterPlotItem import ScatterPlotItem from ..graphicsItems.PlotItem im...
""" Django settings for src project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib imp...
#!c:\users\behrensdeluna\documents\github\doctut\docs\venv\scripts\python.exe # $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ Fix a word-processor-generated styles.odt for odtwriter use: Drop p...
import { shallow } from 'vue-test-utils'; import { testClassFromProps } from 'test/utils'; import Checkbox from 'src/modules/Checkbox/Checkbox'; describe('Checkbox', () => { testClassFromProps(Checkbox, ['ui', 'checkbox']); it('should create a SUI Checkbox with label', () => { const checkbox = shallow(Checkbo...
/* * Copyright (c) 2021, krishpranav * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once void pic_initialize(); void pic_ack(int intno); void pic_disable();
import React from 'react' import { Link } from 'react-router-dom' export default ({ className = 'o-app__top-right', text = 'Cancel', ...props }) => ( <Link to='/' className={className} {...props}> { text } </Link> )
const { Menu, BrowserWindow } = require('electron') // 菜单栏 var template = [ { label: '项目',//mac第一个默认当前app名称 submenu: [ { label: '关于', accelerator:'command+Q',// 快捷键 click: function () { var win = new BrowserWindow({ ...
int func() { static int i = 0; return i++; } int main() { int *arr; arr = (int[]){ 1, func(), func() }; return arr[0] + arr[1] + arr[2] + func(); }
define(["jquery", "knockout", "everest"], function($, ko, ê){ "use strict"; var host = "api.github.com", defaultResourcePath = "/repos/PulsarBlow/everest.js", $loader, restApi = new ê.RestClient({ host: host, useSSL: true // Set SSL on because github requires ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2016 The University of Tennessee a...
import {SUBMIT_FORM, CLEAR_FORM} from '../actions/index'; export default(state = false, action) => { switch (action.type) { case SUBMIT_FORM: return true; break; case CLEAR_FORM: return false; break; default: return state; } }
#!/usr/bin/env python # # Copyright (C) 2016 The Android Open Source Project # # 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 req...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:03:15 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/Frameworks/Intents.framework...
import numpy as np from os import path import json import time import datetime from epics import PV from pyemittance.saving_io import numpy_save, save_config this_dir, this_filename = path.split(__file__) CONFIG_PATH = path.join(this_dir, "configs") # Measurement PVs meas_pv_info = json.load(open(CONFIG_PATH + '/me...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
""" Copyright (c) 2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
""" This part reuses code from https://github.com/MandyMo/pytorch_HMR/blob/master/src/util.py which is part of a PyTorch port of SMPL. Thanks to Zhang Xiong (MandyMo) for making this great code available on github ! """ import argparse from torch.autograd import gradcheck import torch from torch.autograd import Variab...
const test = require("ava"); const StudentAPI = require("../"); const { isObject } = require("lodash"); test("basic", (t) => { const config = { baseURL: "http://dkh.tlu.edu.vn", }; const api = new StudentAPI(); api.config(config); t.is(api.isAuthenticated, false); t.is(api.user, null); }); test("authe...
"use strict"; var editor_1 = require("./editor"); var core_coderoad_1 = require("core-coderoad"); module.exports = core_coderoad_1.default(editor_1.default); //# sourceMappingURL=index.js.map
var m = require('mithril'); module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st...
# -*- coding: utf-8 -*- """ Source: https://github.com/awesto/django-shop/blob/7378f024b0982ba5bf48fd07ffb18b247cba02a5/shop/models/order.py """ from __future__ import unicode_literals from six import with_metaclass from decimal import Decimal from django.core.exceptions import ImproperlyConfigured from django.core.u...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRules = exports.isJSONType = void 0; const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"]; const jsonTypes = new Set(_jsonTypes); function isJSONType(x) { return typeof x == "string" && jsonTy...
(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[47236],{13919:function(e,n,t){"use strict";function i(e){return!0===/^(\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!i(e)}t.d(n,{b:function(){return i},Z:function(){return o}})},44996:function(e,n,t){"use strict";t.d(n,{C:fun...
import React from 'react' import BaseComponent from '../../components/BaseComponent'; import { login } from '../../components/helper'; class Login extends BaseComponent { constructor(props) { super(props); this.username = React.createRef(); this.password = React.createRef(); t...
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018-2021 www.open3d.org # # Permission i...
module.exports = { plugins: [ ...(process.env.PIKA ? [[require(`babel-plugin-import-graphql`), { runtime: true }]] : []), require(`@babel/plugin-transform-runtime`), require(`@babel/plugin-proposal-class-properties`), require(`@babel/plugin-transform-object-assign`), require(`@babel/pl...
from samcli.lib.utils.osutils import stderr from unittest import TestCase from parameterized import parameterized from subprocess import STDOUT, Popen, TimeoutExpired, PIPE import os import shutil import tempfile from samcli.lib.utils.packagetype import IMAGE, ZIP from pathlib import Path TIMEOUT = 300 class TestB...
from logging import getLogger from selenium.webdriver import Chrome from selenium.webdriver.common.by import By from .humanlike import randsleep logger = getLogger(__name__) CAPTCHA_ATTEMPTS = 4 def solve_captcha(driver: Chrome) -> bool: driver.switch_to.default_content() iframe = driver.find_element(valu...
import logging import re from dateutil.parser import parse from sympy.parsing.sympy_parser import parse_expr from sympy import symbols from volttron.platform.agent.utils import setup_logging __version__ = "0.2" setup_logging() _log = logging.getLogger(__name__) def parse_sympy(data, condition=False): """ :p...
(function ($) { 'use strict'; /** * All of the code for your admin-facing JavaScript source * should reside in this file. * * Note: It has been assumed you will write jQuery code here, so the * $ function reference has been prepared for usage within the scope * of this function. * * This en...
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import pandas as pd from pylab import bone, pcolor, colorbar, plot, show from sklearn.preprocessing import MinMaxScaler from minisom import MiniSom dataset = pd.read_csv('Credit_Card_Applications.csv') x = dataset.iloc[:, : - 1].values y = ...
#include "be_var.h" #include "be_vm.h" #include "be_vector.h" #include "be_string.h" #include "be_map.h" #include "be_gc.h" #define global(vm) ((vm)->gbldesc.global) #define builtin(vm) ((vm)->gbldesc.builtin) void be_globalvar_init(bvm *vm) { global(vm).vtab = be_map_new(vm); be_gc_fix(vm, gc_object...
#!/usr/bin/env python3 """ Generate Ruby code with URLs and file hashes for packages from PyPi (i.e., httpie itself as well as its dependencies) to be included in the Homebrew formula after a new release of HTTPie has been published on PyPi. <https://github.com/Homebrew/homebrew-core/blob/master/Formula/httpie.rb> ""...
//export from Engineer file const Employee = require('./Employee'); class Engineer extends Employee { constructor (name, id, email, github) { super(name, id, email); this.github = github } getGithub() { return this.github; } getRole() { return 'Engineer'; } } mo...
/* LaTeXMathML.js ============== This file, in this form, is due to Douglas Woodall, June 2006. It contains JavaScript functions to convert (most simple) LaTeX math notation to Presentation MathML. It was obtained by downloading the file ASCIIMathML.js from http://www1.chapman.edu/~jipsen/mathml/asciimathdow...
/** * 订单 */ let uniqid = require('uniqid'); //生成唯一id const mongoose = require('mongoose'); mongoose.Promise = global.Promise; // Use native promises let Order = mongoose.Schema({ Id: { type: String, required: true, index: true }, //订单id BuyInfor: { type: String, required: true, }, //购买的图书...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. 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 copyr...
function replaceContentToAddD() { document.getElementById('page_contentD').innerHTML = document.getElementById('addDoctor').innerHTML; } function replaceContentToAddN() { document.getElementById('page_contentN').innerHTML = document.getElementById('addNurse').innerHTML; } function replaceContentToAddP() { ...
#! /usr/bin/env python # Copyright 2021 Intel Corporation # # 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...
from ophyd.scaler import ScalerCH from ophyd import Component, Device from ophyd import EpicsSignal, EpicsSignalRO from apstools.devices import SRS570_PreAmplifier import logging logger = logging.getLogger(__name__) class Keithley6485(Device): value = Component(EpicsSignalRO, ":read") # refresh = Componen...
/** * jQuery EasyUI 1.2.4 * * Licensed under the GPL terms * To use it on other terms please contact us * * Copyright(c) 2009-2011 stworthy [ stworthy@gmail.com ] * */ (function($){ function _1(_2){ var _3=$.data(_2,"combogrid").options; var _4=$.data(_2,"combogrid").grid; $(_2).addClass("combogrid-f"); $(_...
# ****************************************************************************** # # DSF2Blender: Python script for Blender that allows import of X-Plane DSF files # Checked with Blender 3.0 but should work from 2.8 up # # For more details refer to GitHub: https://github.com/nofaceinbook/DSF2Blender # # WA...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
"""Implements the base rule class. Rules crawl through the trees returned by the parser and evaluate particular rules. The intent is that it should be possible for the rules to be expressed as simply as possible, with as much of the complexity abstracted away. The evaluation function should take enough arguments tha...
let eventGuid = 0 // let todayStr = new Date().toISOString().replace(/T.*$/, '') // YYYY-MM-DD of today // 초기 event 값 설정 // id auto increasement // post // request year || start와 end에서 해당 년도가 포함된 데이터를 요청 //response id, title, start, end, export const INITIAL_EVENTS = [ { id: createEventId(), title: 'ev...
# # Author: Cunren Liang # Copyright 2015-present, NASA-JPL/Caltech # import os import logging import numpy as np import isceobj from isceobj.Alos2Proc.runGeocode import geocode from isceobj.Alos2Proc.Alos2ProcPublic import getBboxGeo logger = logging.getLogger('isce.alos2insar.runGeocodeSd') def runGeocodeSd(self)...
import unittest from pathlib import Path from cuticle_analysis import datasets class TestSamples(unittest.TestCase): @classmethod def setUpClass(cls): all_ids = range(0, 2877) to_test = [ 1, 2, 3, 5, 6, 7, 8, 10, 16, 18, 22, 24, 26, 501, 502, 5...
#!/usr/bin/env python2 # Copyright 2012 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. from __future__ import print_function import o...
'use strict' module.exports = function assertFunction (value) { if (typeof value !== 'function') { throw new TypeError('Expected function, got: ' + value) } }
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_convert_api_...
// SPDX-License-Identifier: GPL-2.0+ /* * vimc-streamer.c Virtual Media Controller Driver * * Copyright (C) 2018 Lucas A. M. Magalhães <lucmaga@gmail.com> * */ #include <linux/init.h> #include <linux/freezer.h> #include <linux/kthread.h> #include "vimc-streamer.h" /** * vimc_get_source_entity - get the entity ...
'''After escaping the pirate's cave without drowning, you stumble upon a field where it's rumored a lot of gold can be found. You even have a map that shows where all of the biggest hauls are located! Unfortunately, the sun is going down, so you don't have a ton of time to search. You decide to take one quick pass thr...
// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) 2006..2015 Giovanni Di Sirio. All rights reserved. // See LICENSE file in the project root for full license information. // #ifndef MCUCONF_H #define MCUCONF_H /* * STM32F4xx drivers configuration. * The following settings ov...
import dash import dash_core_components as dcc import dash_html_components as html print(dcc.__version__) # 0.6.0 or above is required external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] app = dash.Dash(__name__, external_stylesheets=external_stylesheets) # Since we're adding callbacks to elements...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PyEUPI documentation build configuration file, created by # sphinx-quickstart on Mon Apr 18 17:08:15 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...