text
stringlengths
3
1.05M
import argparse from typing import Optional from cpk import cpkconfig from cpk.cli import AbstractCLICommand, cpklogger from cpk.types import Machine, Arguments class CLIMachineListCommand(AbstractCLICommand): KEY = 'machine list' @staticmethod def parser(parent: Optional[argparse.ArgumentParser] = Non...
import * as gm from '../../lib'; describe('Extract histogram', () => { let sess; const setup = (input, layers, min, max, step) => { const op = gm.histogram(input, layers, min, max, step); const output = gm.tensorFrom(op); sess.init(op); return { op, output }; }; beforeEach(() => { sess =...
const CronJob = require('cron').CronJob const moment = require('moment-timezone') const common = require('../utils/common') const math = require('../utils/math') const pg = require('../utils/pg') // Emotes. const emotesIntro = [ '🎉', '🎂', '🥳', '🎊' ] const emotesOutro = [ 'Apoggies', 'liduHyper', 'p...
(function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)...
const { MongoClient } = require("mongodb"); const Settings = require("../settings"); const client = new MongoClient(Settings.dbURL, { useNewUrlParser: true, useUnifiedTopology: true }); /** * Connect to the DB * @param collection you want to use * @returns promise * @example const collection = await DB("post"); co...
from fractions import Fraction from typing import List from pint import UnitRegistry def number_str_to_float(amount_str:str) -> (any, bool): """ Take in an amount string to return float (if possible). Valid string returns: Float Boolean -> True Invalid string Returns Original String ...
import re class HeadFinder: def __init__(self, filename): self.rules = self._load_rules(filename) @staticmethod def _load_rules(filename): rules = dict() with open(filename) as fh: for line in fh: if not line.startswith("%") and not re.match("^\s*$", l...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2004 Chris Liechti <cliechti@gmx.net> # All Rights Reserved. # Simplified BSD License (see LICENSE.txt for full text) """\ Python bindings to the functions in the MSP430 JTAG HIL (Hardware Interface Library) Requires Python 2+, ctypes and HIL.dll/libHIL...
// theme.config.js const theme = { nextLinks: false, prevLinks: false, search: false, customSearch: null, // customizable, you can use algolia for example darkMode: false, footer: false, header: false, logo: <></>, head: ( <> <title>NFT.Storage Docs</title> </> ), } export default the...
export default () => ` import '$resolve.guardOnlyServer' import interopRequireDefault from "@babel/runtime/helpers/interopRequireDefault" import constants from '$resolve.constants' import resolveVersion from '$resolve.resolveVersion' const assemblies = Object.create(Object.prototype, { seedClientEnvs: {...
import React, {Component, Fragment} from 'react'; import Icon from '../../components/icon'; import logo from '../../logo.png'; import {fetchCount} from '../../modules/count' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import {FormattedMessage, FormattedHTMLMessage, injectIntl} from '...
description = 'memograph readout for the chopper cooling system' group = 'lowlevel' memograph = 'memograph07.care.frm2' channel = 'TOF2' system = 'chopper' _group = 2 devices = { 't_in_%s_cooling' % system[:2]: device('nicos_mlz.devices.memograph.MemographValue', hostname = '%s' % memograph, grou...
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new User""" if not email: raise ValueEr...
# # PySNMP MIB module Dell-VRTX-SMON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dell-VRTX-SMON-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:42:40 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
"""Audio file(wav) feature extractor.""" import concurrent import glob import os from absl import app from absl import flags from absl import logging import pandas import tqdm import feature flags.DEFINE_string('wav_dir', '', 'Directory to audio files.') flags.DEFINE_string('csv_output', '', 'Path to csv output.')...
import '../index';
# 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 u...
#Given 2 int arrays, a and b, each length 3, return a new array length 2 containing their middle elements. #middle_way([1, 2, 3], [4, 5, 6]) → [2, 5] #middle_way([7, 7, 7], [3, 8, 0]) → [7, 8] #middle_way([5, 2, 9], [1, 4, 5]) → [2, 4] def middle_way(lis1,lis2): return [lis1[1],lis2[1]]
export const codeAdvance = ` <template> <div> <b-button v-ripple.400="'rgba(113, 102, 240, 0.15)'" variant="outline-primary" @click="popToast" > Show Toast with custom content </b-button> </div> </template> <script> // eslint-disable-next-line import { BButton, BSpinner } from '...
import pandas as pd from amlearn.learn.predict import load_model_and_predict from amlearn.utils.data import read_lammps_dump __author__ = "Qi Wang" __email__ = "qiwang.mse@gmail.com" """ This is an example script of predicting on an arbitrary dataset from a trained classification model. Please upgrade amlearn to ve...
""" Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2 ). You are given a target value to search. If found in the array, return its index, otherwise return -1. You may assume no duplicate exists in the array. Input : [4 5 6 7 0 1 2] and target...
import sinon from 'sinon'; import expect from 'expect.js'; import ngMock from 'ng_mock'; import chrome from '../../chrome'; import { UrlShortenerProvider } from '../lib/url_shortener'; describe('Url shortener', () => { let urlShortener; let $httpBackend; const shareId = 'id123'; beforeEach(ngMock.module('kiba...
// @ts-nocheck /* * Copyright © 2015-2020 Cask Data, Inc. * * 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 applic...
# -*- coding: utf-8 -*- # Authors: Teon Brooks <teon.brooks@gmail.com> # Martin Billinger <martin.billinger@tugraz.at> # Alan Leggitt <alan.leggitt@ucsf.edu> # Alexandre Barachant <alexandre.barachant@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # Joan Massic...
/**! @license handlebars v4.3.4 Copyright (C) 2011-2017 by Yehuda Katz 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...
/** * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #ifndef parquet_TYPES_H #define parquet_TYPES_H #include <iosfwd> #include <thrift/Thrift.h> #include <thrift/TApplicationException.h> #include <thrift/TBase.h> #include <thrift/p...
# Generated by Django 3.1 on 2020-09-19 17:07 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('post', '0002_auto_20200919_1934'), ] operations = [ migrations.AlterModelOptions( name='comment', ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{3448:function(e,t,a){"use strict";a.r(t),a.d(t,"icon",(function(){return i}));a(13),a(3),a(4),a(9),a(2),a(10);var n=a(0),r=a.n(n);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.protot...
#!/usr/bin/env python # Filename: image_augment """ introduction: authors: Huang Lingcao email:huanglingcao@gmail.com add time: 19 July, 2017 """ import sys,os,subprocess from optparse import OptionParser from imgaug import augmenters as iaa from skimage import io # import skimage.transform import numpy as np HO...
from eth.vm.forks.frontier.state import ( FrontierState, FrontierTransactionExecutor, ) from .computation import HomesteadComputation from .validation import validate_homestead_transaction class HomesteadState(FrontierState): computation_class = HomesteadComputation validate_transaction = validate_h...
const express = require("express"); const path = require("path"); var db = require("./models"); const session = require("express-session"); const PORT = process.env.PORT || 3001; const app = express(); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use( session({ name: "sid", ...
const locale = { placeholder: 'انتخاب زمان', } export default locale
from sklearn2sql_heroku.tests.regression import generic as reg_gen reg_gen.test_model("XGBRegressor" , "freidman2" , "db2")
/* utils: Various utility functions for all modes. */ var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParamete...
"""Pylint plugin for Conan Center Index""" from pylint.lint import PyLinter from linter.package_name import PackageName def register(linter: PyLinter) -> None: linter.register_checker(PackageName(linter))
# -*- coding: utf-8 -*- """ Created on Thu Nov 26 21:35:36 2020 @author: Manuel Camargo """ import copy import itertools from operator import itemgetter import numpy as np import pandas as pd class LogSplitter(object): """ This class reads and parse the elements of a given event-log expected format .xes...
import React, { Component } from 'react' import PropTypes from 'prop-types' import i18n from '@dhis2/d2-i18n' import Card from 'material-ui/Card/Card' import CardHeader from 'material-ui/Card/CardHeader' import CardText from 'material-ui/Card/CardText' import CardActions from 'material-ui/Card/CardActions' import IconB...
from dagster import pipeline from dagster.core.definitions.reconstruct import reconstructable from dagster.core.executor.step_delegating import StepHandlerContext from dagster.core.test_utils import create_run_for_test, instance_for_test from dagster.grpc.types import ExecuteStepArgs @pipeline def foo_pipline(): ...
const assert = require("assert"); const CommandRunner = require("../commandrunner"); const MemoryLogger = require("../memorylogger"); let config = {}; describe("truffle help [ @standalone ]", function () { const logger = new MemoryLogger(); beforeEach("set up config for logger", function () { config.logger = l...
import angular from 'angular'; import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator'; import TitleNG from '@jetbrains/ring-ui/components/title-ng/title-ng'; export default { title: 'Legacy Angular/Title Ng', decorators: [angularDecorator()], parameters: { notes: 'A component for ma...
#include "redis.h" /* ================================ MULTI/EXEC ============================== */ /* Client state initialization for MULTI/EXEC */ void initClientMultiState(redisClient *c) { c->mstate.commands = NULL; c->mstate.count = 0; } /* Release all the resources associated with MULTI/EXEC state */ v...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:45:11 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/AppPredictionInternal.framework/AppPredictionInternal * classdump-dyld is licensed under GPLv3, Copy...
"""Simple HTTP Server. This module builds on BaseHTTPServer by implementing the standard GET and HEAD requests in a fairly straightforward manner. """ __version__ = "0.6" __all__ = ["SimpleHTTPRequestHandler"] import os import posixpath import BaseHTTPServer import urllib import cgi import shutil import mimetypes...
import math from pandac.PandaModules import CollisionSphere, CollisionNode, Vec3, Point3, deg2Rad from direct.interval.IntervalGlobal import Sequence, Func, Parallel, ActorInterval, Wait, Parallel, LerpHprInterval, ProjectileInterval, LerpPosInterval from direct.directnotify import DirectNotifyGlobal from toontown.buil...
var Lab = require('lab'); var Code = require('code'); var Constants = require('../../../../client/pages/contact/Constants'); var lab = exports.lab = Lab.script(); lab.experiment('Contact Constants', function () { lab.test('it loads', function (done) { Code.expect(Constants).to.exist(); done(); }); });...
// Copyright John McFarlane 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file ../LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #if !defined(CNL_IMPL_ROUNDING_NEAREST_ROUNDING_TAG_H) #define CNL_IMPL_ROUNDING_NEAREST_ROUNDING_TAG_H ...
from requests import Session import re import logging from BruteLoops.example.shortcuts.http import HTTPModule from logging import getLogger,INFO MSONLINE_URL = 'https://login.microsoftonline.com' MSONLINE_NETLOC = 'login.microsoftonline.com' O365_URL = 'https://outlook.office365.com' def strip_slash(s): i...
// @flow import type { OperationNodeType, GeneratedCodeType, NodeType } from '../types' export default ({ value }: OperationNodeType): GeneratedCodeType => { return `${value .map((item: NodeType): string => { const Generator = require('./generator').default return Generator(item) }) .join(''...
# Copyright 2021 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...
""" Generating figures for the upcoming letter """ import numpy as np import matplotlib.pylab as plt from matplotlib.patches import Circle from matplotlib.colors import ListedColormap from skimage import morphology from astropy.io import fits import aplpy from spectra_xy_list import xlist, ylist, labels # sane defaul...
import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import CategoryFilter from '../../../reusable-components/category-filter'; import IconButton from '../../../reusable-components/icon-button'; import { modes } from '../specs/words'; const RecipeListControls = ({ currentCategoryFilters, filt...
#!/usr/bin/python # -*- coding: utf-8 -*- import wx import wx.lib.ogl as ogl class Dialog_widget_edit(wx.Dialog): def __init__(self, parent, title,img): super(Dialog_widget_edit, self).__init__(parent, title=title,size=(240,120)) self.parent = parent self.img = img self.texto = wx.TextCtrl( self, wx.ID_ANY, ...
from smqtk.representation import ( SmqtkRepresentation, ClassificationElement ) from smqtk.utils.configuration import ( cls_conf_from_config_dict, cls_conf_to_config_dict, make_default_config, ) from smqtk.utils.dict import merge_dict __author__ = "paul.tunison@kitware.com" class ClassificationE...
from django.conf.urls import url from . import views urlpatterns = [ url(r'^orders/settlement/$', views.OrderSettlementView.as_view()), url(r'^orders/$', views.SaveOrderView.as_view()), # url(r'^/user/addresses/$', views.OrderSettlementView.as_view()), ]
#!/usr/bin/env python # encoding: utf-8 """ @author: Shanda Lau 刘祥德 @license: (C) Copyright 2019-now, Node Supply Chain Manager Corporation Limited. @contact: shandalaulv@gmail.com @software: @file: __init__.py.py @time: 2022/2/13 16:11 @version 1.0 @descwerkzeug: """ import argparse from flask import Flask from flask_...
var exec = require('./exec'); module.exports = function commit(version) { var changed = [/*'ChangeLog.md',*/ 'package.json'].join(' '); exec('git commit -m "' + version + '" ' + changed); };
from enum import Enum from numbers import Real from xml.etree import ElementTree as ET import numpy as np import h5py import openmc.checkvalue as cv from openmc.stats.multivariate import UnitSphere, Spatial from openmc.stats.univariate import Univariate from ._xml import get_text class Source: """Distribution o...
"""Exercises for eager loading. Derived from mailing list-reported problems and issue tracker issues. These are generally very old 0.1-era tests and at some point should be cleaned up and modernized. """ import datetime import sqlalchemy as sa from sqlalchemy import ForeignKey from sqlalchemy import Integer from sq...
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
from .python_module.double import double from .pyo3_mixed import get_21 def get_42() -> int: return double(get_21)
const path = require('path'); const webpackMerge = require('webpack-merge'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); const WebpackBar = require('webpackbar'); const loadModeConfig = env => require(`./build-utils/${en...
// Note: $Shape is needed to make polymorphic withStyle refinements work correctly // It seems functions satisfy this type without $Shape // See: https://github.com/facebook/flow/issues/6784 // // // // // // function driver(style, styletron) { const tx = renderDeclarativeRules(style, styletron); return styletron.r...
import sys import os import unittest from mock import MagicMock, patch import json sys.path.append(os.path.dirname(os.path.dirname( os.path.abspath(__file__)))) import app from app.config import admin_username, admin_password import base64 class TestModels(unittest.TestCase): def setUp(self): self.app...
var http = require('http'), url = require('url'), fs = require('fs'), io = require('../lib/socket.io'), sys = require('sys'), send404 = function(res){ res.writeHead(404); res.write('404'); res.close(); }, server = http.createServer(function(req, res){ // your normal server code var path = url.parse(...
import React from 'react' import { observer } from 'mobx-react' import _ from 'lodash/fp' let TextInput = ({ className = '', type = 'text', ...props }, ref) => ( <input className={`${className} gv-input`} {...{ type, ref, ...props }} /> ) export default _.flow(React.forwardRef, observer)(TextInput)
const { ApolloServer, gql } = require('apollo-server-lambda') var faunadb = require('faunadb'), q = faunadb.query; const typeDefs = gql` type Query { todos: [Todo!] } type Mutation { addTodo(task: String!): Todo } type Todo { id: ID! task: String! status: Boolean! } ` const resolvers...
import React, { Component } from 'react'; import Register, { TitleBar, Content, InputUsername, PreviousButton, Loader } from 'components/Register/Register'; import { connect } from 'react-redux'; import * as register from 'redux/modules/register'; import * as form from 'redux/modules/form'; import ...
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Copyright (C) 2021 Zhaofeng Li This file is part of libunwind. 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 So...
from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration import os import json required_conan_version = ">=1.33.0" class EmSDKConan(ConanFile): name = "emsdk" description = "Emscripten SDK. Emscripten is an Open Source LLVM to JavaScript compiler" url = "https://github.com/...
/** * Hilo 1.4.0 for kissy * Copyright 2016 alibaba.com * Licensed under the MIT License */ KISSY.add("hilo/view/View",function(t,e,i,r,n,o){var a=function(){function t(t,e,i){for(var r,n,o,a,s=0,h=!1,u=0,l=i.length;u<l;u++){var y=i[u],c=i[(u+1)%l];if(y.y==c.y&&e==y.y&&(y.x>c.x?(r=c.x,n=y.x):(r=y.x,n=c.x),t>=r&&t<=...
from django.contrib import admin from .models import Guild admin.site.register(Guild)
import argparse import logging import time import os import numpy as np import matplotlib.pyplot as plt import apex.amp as amp import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision from torch.utils.data.sampler import SubsetRandomSampler from to...
#-*-coding:utf-8-*- import tornado.ioloop import tornado.web import tornado.httpserver from tornado.options import options, define from config import settings from handlers.main.main_urls import handlers from models.account.account_user_model import User from libs.db.dbsession import dbSession from libs.db imp...
var express = require('express'); var router = express.Router(); var sitevars = require('./sitevars'); router.get('/', function(req, res, next) { res.render('./components/inputs', { title: 'Fields', pages: sitevars.pages }); }); router.get('/inputs', function(req, res, next) { res.render('./components/inputs',...
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') class WechatMp extends Model { } module.exports = WechatMp
#ifndef _UNITARIZATION_LINKS_QUDA_H #define _UNITARIZATION_LINKS_QUDA_H #include <gauge_field.h> // *************************************************** // Declarations for unitarization functions used // in the construction of the hisq-fattened links // // There are many algorithms for unitarizing // fat7-sme...
import datetime import re import socket from jsonschema.compat import str_types from jsonschema.exceptions import FormatError class FormatChecker(object): """ A ``format`` property checker. JSON Schema does not mandate that the ``format`` property actually do any validation. If validation is desired...
# Copyright (c) 2012 Rackspace Hosting # All Rights Reserved. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License");...
#!/usr/bin/env python # Import modules import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features import compute_normal_histograms from visualization_msgs.ms...
jest.autoMockOff(); const getDependencyConfig = require('../../config/android').dependencyConfig; const mockFs = require('mock-fs'); const mocks = require('../../__fixtures__/android'); const userConfig = {}; describe('android::getDependencyConfig', () => { beforeAll(() => mockFs({ empty: {}, nested: { ...
# 公众号:MarkerJava # 开发时间:2020/10/5 17:25 # 向列表的末尾添加一个元素 lst = [10,20,30,40,50,60,70,80] # lst2 = ['hello','world'] # lst.append(lst2) # 这种方法将lst作为一个元素添加到列表的末尾 # lst.extend(lst2) # print(lst) # 任意位置添加 # lst.insert(1,111) # print(lst) # 在任意位置上添加N个元素 lst3 = ['python','Java'] lst[1:] = lst3 print(lst)
/* * $Id: //poco/1.7/Foundation/wcelibcex-1.0/src/wce_findfile.c#1 $ * * Defines functions to find files. * * Created by Mateusz Loskot (mateusz@loskot.net) * * Copyright (c) 2006 Taxus SI Ltd. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated d...
import { Contract } from 'ethers'; import ContractSettings from '../../contractSettings'; import abi from '../../../lib/abis/mainnet/PurgeableSynth'; /** @constructor * @param contractSettings {ContractSettings} */ function iOIL(contractSettings) { this.contractSettings = contractSettings || new ContractSettings()...
var tap = require('agraddy.test.tap')(__filename); var events = require('events'); var net = require('net'); var path = require('path'); var stream = require('stream'); var emitter = new events.EventEmitter(); process.chdir('test'); var smtp = require('../'); var port; var writable; var server = smtp.createServer(...
require('dotenv').config({ path: __dirname + '/../.env' }) console.log(process.env.PGHOST_DEV) module.exports = { development: { client: 'pg', connection: { host: process.env.PGHOST_DEV, user: process.env.PGUSER_DEV, password: process.env.PGPASS_DEV, database: process.env.PGDB_DEV ...
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2013 pimcore GmbH (http://w...
import atexit import logging import requests import time import google.auth from functools import partial from google.rpc import status_pb2 from google.auth.credentials import with_scopes_if_required from google.auth.exceptions import RefreshError from google.auth.transport.requests import Request as AuthRequest from...
# -*- coding: utf-8 -*- """ Created on Thu Aug 6 10:29:23 2020 @author: hartwgj """ """ v3config data pcurr_type and pmass_type need to be converted from an integer value to a string value need to capture these This will also be an issue when defining the parameterization of sxr profiles and ...
from django import forms from .widgets import CustomClearableFileInput from .models import Photo class MediaForm(forms.ModelForm): """ Form to add/edit media for the gallery. The field thumbnail takes the same value as image and it's hidden. "Image" uploads the file directly, while the other generates...
import React, { Component } from 'react'; import { Dropdown, DropdownButton } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import { Col, Container, FormGroup, Row } from 'reactstrap'; import * as Constant from '../../../../Base/Constant'; import AgGrid from '../../../../Base/FormControl/AgGrid'; imp...
/** * Created by Ebates on 16/12/22. * ForgetPassPageInitialState * ForgetPassPage 的 初始 Immutable 状态, 参考 snowflake 项目 的 authInitialState, */ 'use strict' const {Record} = require('immutable') //导入 Immutable.js 的 Record API import *as ForgetPassPageActions from '../Actions/ForgetPassPageActions' let InitialState ...
/****************************************************************************** * * Copyright (C) 2018 Xilinx, Inc. All rights reserved. * * 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 Softwa...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.pip || (g.pip...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
define( //begin v1.x content ({ smiley: "הוספת רגשון", emoticonSmile: "חיוך", emoticonLaughing: "צחוק ", emoticonWink: "קריצה", emoticonGrin: "גיחוך", emoticonCool: "מגניב", emoticonAngry: "כועס ", emoticonHalf: "חצי ", emoticonEyebrow: "גבה", emoticonFrown: "קימוט מצח", emoticonShy: "ביישן", emoticonGoofy:...
/* ********************************************************************************************************* * uC/LIB * CUSTOM LIBRARY MODULES * * (c) Copyright 2004-2014; Micrium, Inc.; Weston, FL * * ...
/*! For license information please see lsplugin.core.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.LSPlugin=t():e.LSPlugin=t()}(self,(function(){return(()=>{var e={227:(e,t,n)=>{va...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
# Django from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist # AWX from awx.api.serializers import OAuth2TokenSerializer class Command(BaseCommand): """Command that creates an OAuth2 token for a certai...