text
stringlengths
3
1.05M
from flask import Blueprint, render_template, jsonify from flask_login import login_required, current_user from app import db from app.models.user import User from app.forms.profile import PasswordEditForm, ProfileEditForm profile = Blueprint('profile', __name__, url_prefix='/profile') @profile.route('/') @profile.r...
from flask import Flask, render_template, request, make_response, jsonify from flask_cors import CORS, cross_origin from functools import wraps, update_wrapper from datetime import datetime from lmsr import LMSR import logging logger = logging.getLogger(__name__) def nocache(view): @wraps(view) def no_cache(*arg...
'use strict'; var FieldViewText = require('./field-view-text'), Locale = require('../../util/locale'), Pikaday = require('pikaday'), Format = require('../../util/format'); var FieldViewDate = FieldViewText.extend({ renderValue: function(value) { var result = value ? Format.dStr(value) : ''; ...
# Copyright 2018-2021 Streamlit 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 applicable law or agreed to in wr...
// utils -> parseFromHtml import { unique, stripTags, truncate, } from 'bellajs'; import extractMetaData from './extractMetaData'; import chooseBestUrl from './chooseBestUrl'; import absolutifyUrl from './absolutifyUrl'; import normalizeUrl from './normalizeUrl'; import isValidUrl from './isValidUrl'; import st...
# -*- coding: utf-8 -*- ''' @Time : 21/02/18 14:50 @Author : yunsujeon @File : dev1.py @Noice : @Modificattion : @Author : @Time : @Detail : ''' # import sys # import time # from PIL import Image, ImageDraw # from models.tiny_yolo import TinyYoloNet from tool.uti...
import unittest import pytest import numpy as np from small_text.integrations.pytorch.exceptions import PytorchNotFoundError try: import torch from small_text.integrations.pytorch.classifiers.kimcnn import KimCNNClassifier from small_text.integrations.pytorch.classifiers.factories import KimCNNFactory ...
/* 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 use ...
var ejs = require('ejs'); var fs = require('fs'); var template = fs.readFileSync(__dirname + '/template.ejs', 'utf8'); var pouch = require('pouchdb'); var db = new pouch('http://localhost:5984/irclog'); var primitives = { list: function (req, res, next) { var list; db.allDocs() .then(function (list) { list...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Yo...
from typing import Union import scipy.stats as stats from beartype import beartype from UQpy.distributions.baseclass import DistributionContinuous1D class ChiSquare(DistributionContinuous1D): @beartype def __init__( self, df: Union[None, float, int], loc: Union[None, float, int] = 0....
/* Python Multiarray Module -- A useful collection of functions for creating and using ndarrays Original file Copyright (c) 1995, 1996, 1997 Jim Hugunin, hugunin@mit.edu Modified for numpy in 2005 Travis E. Oliphant oliphant@ee.byu.edu Brigham Young University */ /* $Id: multiarraymodule.c,v 1.36 20...
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 django.apps import AppConfig class ArtGalleryConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'art_gallery'
# coding: utf-8 """ Looker API 3.0 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
/** * @Date: 2018-01-02T10:45:26+08:00 * @Last modified time: 2018-01-02T17:11:01+08:00 */ import Help from '@/pages/Container/Children/Me/Children/Help' import Question from '@/pages/Container/Children/Me/Children/Help/Children/Question' export default { path: 'help', name: 'help', component: Help, meta:...
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2021 Waves Audio Ltd. All rights reserved. */ #ifndef MAXX_STATUS_H #define MAXX_STATUS_H #include <stdint.h> /** * Non-zero value represents error code type */ typedef int32_t MaxxStatus_t; #endif
#ifndef WBCOMPELDTRAPBOLT_H #define WBCOMPELDTRAPBOLT_H #include "wbeldritchcomponent.h" #include "vector.h" class WBCompEldTrapBolt : public WBEldritchComponent { public: WBCompEldTrapBolt(); virtual ~WBCompEldTrapBolt(); DEFINE_WBCOMP( EldTrapBolt, WBEldritchComponent ); virtual int GetTickOrde...
import codecs import os.path from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='postgres-db-diff', version='0.9.1', # cause triggers, sequences are missing ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth. */ var earthRadius = 6371008.8; /** * Unit of measurement factors using a spherical (non-ellipsoid) earth radius. */ var factor...
import _ from 'lodash' import { types, flow, getParent } from 'mobx-state-tree' import prettyBytes from 'pretty-bytes' import Papa from 'papaparse' import { fetchSampleFile, fetchSnapshotApplianceFile } from '../utils/importFileHelpers' import { analyzeApplianceFile } from '../utils/analyzeApplianceFile' import { csvOp...
const express = require('express'); const cors = require('cors') const routes = require('./routes'); const app = express(); app.use(cors()); app.use(express.json()); app.use(routes); app.listen(3333); /** * Rota / Recurso */ /** * Métodos HTTP: * * GET: Buscar/listar uma informação do back-end * POST: Criar uma...
# built-in packages import time import datetime # external packages import scipy as sp import numpy as np from em import expectation_maximization from numpy import sign, sqrt, array, pi, sin, cos from numpy.random import rand,seed import networkx as nx from networkx.algorithms import approximation as approx # intern...
class Graph(object): """ A simple undirected, weighted graph """ def __init__(self): self.nodes = set() self.edges = {} def add_node(self, value): self.nodes.add(value) def add_edge(self, from_node, to_node, weight): self._add_edge(from_nod...
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import PropTypes from "prop-types" import { Helmet } from "react-helmet" import { useStaticQuery, graphql } from "gatsby" function SEO({ descr...
let request = require('request'); let list = require('./stateList.js'); let abbr = require('./stateAbbreviation.js'); module.exports = { search: function(req, res) { let dataSearch = req.body; let address = dataSearch.address; let distance = dataSearch.distance; let dates = dataSearch.dates; let ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var axios = require('axios'); var curry = require('ramda/src/curry.js'); var reduce = require('ramda/src/reduce.js'); var map = require('ramda/src/map.js'); var prop = require('ramda/src/prop.js'); var replace = require('ramda/src/replace.js...
# -*- coding: utf-8 -*- """Console script for alphashape.""" import os import sys import click import click_log import logging import shapely import geopandas import alphashape # Setup Logging LOGGER = logging.getLogger(__name__) click_log.basic_config(LOGGER) @click.command() @click.argument("source", type=click....
// @flow import * as React from 'react' import { type TextFieldProps, TextField } from 'react-native-material-textfield' import { THEME } from '../../theme/variables/airbitz.js' import { PLATFORM } from '../../theme/variables/platform.js' type Props = {| ...TextFieldProps, autoFocus?: boolean |} export class Fo...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Legend/nls/strings":{_widgetLabel:"\ubc94\ub840",_localized:{}}});
var Util = require('saphire-base/lib/Util'); var Int64BE = require("int64-buffer").Int64BE; var Uint64LE = require("int64-buffer").Uint64LE; /** * @author Andrew Mello da Silva */ class Stream { /** * * @param {Buffer} buffer */ constructor(buffer) { if (!(buffer instanceof Buffer) && Array.isArray(buffer...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from uuid import uuid4 from io import BytesIO from contextlib import closing from twisted.internet import defer, task from twisted.web.iweb import UNKNOWN_LENGTH, IBodyProducer from zope.interface import implementer CRLF = b"\r\n" @implemente...
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
const header = require(`./db/header`); const tools = require(`./db/tools`); const promise = header.defPromise; const options = { promiseLib: promise, noWarnings: true }; const dbHeader = header(options); const pgp = dbHeader.pgp; const db = dbHeader.db; const TransactionMode = pgp.txMode.TransactionMode; cons...
/* global require */ var gulp = require('gulp'), copy = require('gulp-copy'), browserify = require('browserify'), source = require('vinyl-source-stream'), buffer = require('vinyl-buffer'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), less = require('gulp-less'), cle...
#encoding:utf-8 # ----------------------------------------------------------- # "Remote Sensing Cross-Modal Text-Image Retrieval Based on Global and Local Information" # Yuan, Zhiqiang and Zhang, Wenkai and Changyuan Tian and Xuee, Rong and Zhengyuan Zhang and Wang, Hongqi and Fu, Kun and Sun, Xian # Writen by YuanZhiq...
$(document).ready(function(){ $( ".btn-noccid" ).click(function() { $( "#era-login" ).slideToggle( "fast", function() { // Animation complete. }); }); });
import { BUTTON_TOGGLE_PREVIEW } from './locators'; import { STORY_ROOT } from '../locators'; // component preview locators export const buttonTogglePreview = () => cy.iFrame(BUTTON_TOGGLE_PREVIEW); export const buttonToggleLabelPreview = index => cy.iFrame(STORY_ROOT).find('label').eq(index);
function newtab(id) { if (id === '0') { document.getElementById('0').className = 'active'; document.getElementById('1').className = ''; document.getElementById('2').className = ''; document.getElementById('nMfOyStPrXdWcNfH').style.display = 'block'; document.getElementById('ePvFrNcCkWqOsRrW').styl...
(node) util.error is deprecated. Use console.error instead. WARN: Dropping unused function argument exports [-:1,471] WARN: Dropping unused function argument min [-:1313,53] WARN: Dropping unused function argument max [-:1313,48] WARN: Dropping unused function argument exports [-:1661,33] WARN: Dropping unused function...
/*- * Copyright 2016 Vsevolod Stakhov * * 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...
import numpy import cv2 import os import zipfile from PIL import Image import io import requests import pandas fpre = 'wc2.1_10m_' climate_dict = { 'Elevation':'elev', 'Precip.':'prec', 'Solar Rad.':'srad', 'Temp. Avg.':'tavg', 'Temp. Min':'tmin', 'Temp. Max.':'tmax', 'Pressure':'vapr', ...
import os from .optmod import OptmodModelIO from .jump import JumpModelIO from .cvxpy import CvxpyModelIO from .gams import GamsModelIO from .pyomo import PyomoModelIO def new_model_io(filepath): ext = os.path.splitext(filepath)[-1].lower() source = open(filepath, 'r').read() if ext == '.py': if '...
var model_pager = require('../../model/pager'); var expect = require('expect.js'); describe('model', function () { describe('pager', function () { describe('getMaxPage', function () { it('result=10', function (done) { var pager = new model_pager.Pager(1); ...
#!/usr/bin/env python """ ImageNet Training Script This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet training results with some of the latest networks and training techniques. It favours canonical PyTorch and standard Python style over trying to be able to 'do it all...
from flask import current_app from notifications_utils.recipients import InvalidEmailError from notifications_utils.statsd_decorators import statsd from sqlalchemy.orm.exc import NoResultFound from app import notify_celery from app.celery.exceptions import NonRetryableException from app.celery.service_callback_tasks i...
var idGenerator = require('./id_generator.js'); var TodoStore = function() { this.todos = {}; // Pre-initialized store with fake lists this.todos["fake1"] = { "items":[ {"done":true,"message":"Test Item1"}, {"done":false,"message":"Test item2"} ], "id": "fake1" }; this.todos["fake2"] = { "items":[...
# A comment, this is so you can read your program later. # Anything after the # is ignored by python. print("I could have code like this.") # and thie comment after is ignored # You can also use a comment to "disable" or comment out code: # print("This won't run.") print("This will run.") print("Hi # there.")
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const path = require("path"); const Knex = require("knex"); const objection_1 = require("objection"); const config_1 = require("./../../config"); function resolveOwn(relativePath) { return path.resolve(__d...
sap.ui.define([ "sap/ui/Device", "sap/ui/core/Patcher", "sap/base/security/encodeXML" ], function(Device, Patcher, encodeXML) { "use strict"; /*global QUnit, CSS*/ var oPatcher = new Patcher(); QUnit.module("Patching", { before: function() { this.oContainer = document.getElementById("qunit-fixture"); ...
/*! Select for DataTables 1.3.0 2015-2018 SpryMedia Ltd - datatables.net/license/mit */ (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(i){return e(i,window,document)}):"object"===typeof exports?module.exports=function(i,l){i||(i=window);if(!l||!l.fn.dataTable)l...
import torch import torch.nn as nn import platform from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d # TODO: NOW I DONT KNOW HOW TO USE ABN ON WINDOWS SYSTEM if platform.system() == 'Windows': class ABN(nn.Module): def __init__(self, C_out, affine=False): super(ABN, self)....
#!/usr/bin/env node 'use strict'; const program = require('commander'); const fs = require('fs'); const packageJson = JSON.parse(fs.readFileSync(`${__dirname}/package.json`, 'utf8')); const propertiesToYml = require('./functions/properties-to-yml'); const ymlToProperties = require('./functions/yml-to-properties'); ...
import importlib import logging from contextlib import contextmanager import toolz _LOG = logging.getLogger(__name__) def import_function(func_ref): """ Import a function available in the python path. Expects at least one '.' in the `func_ref`, eg: `module.function_name` `package.mo...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='pyNiceHashClient', version='0.1.0', description='Library in Python to access NiceHash.com API', long_description=readm...
import sys, os, struct from datetime import datetime, timedelta from zope.interface import directlyProvides from twisted.python import util from twisted.cred import portal from twisted.plugin import IPlugin from axiom import errors as eaxiom from axiom.scripts import axiomatic from axiom.attributes import AND from ...
var express = require('express'); var bodyParser = require('body-parser'); var request = require('request') var app = express(); app.use(express.static(__dirname + '/../client/dist')); // app.use(bodyParser.json()) // Due to express, when you load the page, it doesnt make a get request to '/', it simply serves up the...
(function() { var jslitmus, _, doU, doT, data = { f1: 1, f2: 2, f3: 3, f4: "http://bebedo.com/laura"}, snippet = "<h1>Just static text</h1>\ <p>Here is a simple {{=it.f1}} </p>\ <div>test {{=it.f2}}\ <div>{{=it.f3}}</div>\ <div>{{!it.f4}}</div>\ </div>"; if (typeof module !== 'undefined' && module.expo...
import { connect } from 'react-redux'; import { selectBalance } from 'redux/selectors/wallet'; import { makeSelectClaimForUri } from 'redux/selectors/claims'; import { doOpenModal } from 'redux/actions/app'; import WalletSend from './view'; import { withRouter } from 'react-router'; import { selectToast } from 'redux/s...
/* Expose. */ module.exports = code const defaultMacro = (content, lang) => { if (!lang) lang = 'text' let param = '' if (lang.indexOf('hl_lines=') > -1) { const lines = lang.split('hl_lines=')[1].trim() param += `[][${lines}]` } lang = lang.split(' ')[0] return `\\begin{CodeBlock}${param}{${lang}}...
function getResult() { var resourceList = window.performance.getEntriesByType("resource").map(function(r) { return { connectEnd: r.connectEnd, connectStart: r.connectStart, domainLookupEnd: r.domainLookupEnd, domainLookupStart: r.domainLookupStart, duration: r.duration, entryTy...
# Copyright 2019 gRPC 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 applicable law or agreed to in writing...
/** * @overview configs of ccm component jsonic * @author Manfred Kaul <manfred.kaul@h-brs.de> 2018 * @license The MIT License (MIT) */ ccm.files[ 'configs.js' ] = { "demo": { key: "demo", data: "foo:bar, red:1,", html: { main: { inner: [ { class: 'checkboxes', inner: [ ...
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
import {encodeBase64, generateRandomEncryptionKey} from '../../util/crypto-utils' export default { public_key: { token: encodeBase64(generateRandomEncryptionKey()) }, sign_message: { message: 'Alice doesn\'t trust Bob' }, tx: { xdr: 'AAAAALPZeTF820NFDKBqBJo0dpb99l+TZnWIgxf3Y...
/* globals katex:false, MathJax:false, Exercises:false */ const KhanMath = require("./math.js"); function findChildOrAdd(elem, className) { const $child = $(elem).find("." + className); if ($child.length === 0) { return $("<span>").addClass(className).appendTo($(elem)); } else { return $ch...
#!/usr/bin/env python # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging import os from build_workflow.build_args import BuildArgs from build_workflow.build_reco...
# Zachary Goncalves # Python Learning # Create a basic Command Line menu that allows an order to be placed and a receipt to be generated. # Create Dictionaries of Menu Items menu_subs = { "Ham & Cheese" : 4.00, "Italian" : 4.50, "American" : 4.50, "A Wreck" : 6.50, "Chicken Salad" : 4.50, "The Works...
const rand_array_factory = (amount = 5) => { return Array.from( new Set( Array.from(Array(amount)).map(() => { return parseInt(Math.floor(Math.random() * 10) + 1); }) ) ); }; // 1. filter FOR numbers greater than 5, // map every number to an object which holds the num in a property // a...
/* eslint-disable no-useless-escape */ /* eslint-disable global-require */ const webpack = require('webpack'); const path = require('path'); const appRoot = path.resolve(__dirname, '..'); function root() { // eslint-disable-next-line prefer-rest-params const newArgs = Array.prototype.slice.call(arguments, 0)...
"""Flask Logging Usage: from flask_logging import Filter filter = Filter('static') Filters any request with the word 'static' from the log. Filtering more than one word: filter = Filter('static', 'admin') """ class Filter(object): def __init__(self, *filters): from werkzeug import serving se...
# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/decaylanguage for details. """ Collection of enums and info to help characterising .dec decay files. """ # Backport needed if Python 2 is u...
from gpiozero import Button, LED from time import sleep import random led = LED(17) player_1 = Button(2) player_2 = Button(3) time = random.uniform(5, 10) sleep(time) led.on() while True: if player_1.is_pressed: print("Player 1 wins!") break if player_2.is_pressed: print("Player 2 wi...
import os import json import logging import socket import ssl from client.constants import Period from client.models import RateInfoRecord, Symbol logger = logging.getLogger('XTBClient') logger.setLevel(os.environ.get('XTB_LOG_LEVEL') or logging.DEBUG) class XTBClient: def __init__(self, host='xapia.x-station....
# Copyright 1999-2021 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...
/* * Copyright 2012-15 Advanced Micro Devices, 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...
## @package net_drawer # Module caffe2.python.net_drawer import argparse import json import logging from collections import defaultdict from caffe2.python import utils from future.utils import viewitems logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) try: import pydot exce...
const { create, Client } = require('@open-wa/wa-automate') const welcome = require('./lib/welcome') const left = require('./lib/left') const cron = require('node-cron') const color = require('./lib/color') const fs = require('fs') // const msgHndlr = require ('./tobz') const figlet = require('figlet') const lolcatjs = ...
#include "../../../test_common.h" #include <arpa/nameser.h> void runSuccess() { u_char msg[10]; int msglen = 10; u_char query[10]; int querylen = 10; u_char sig[10]; int siglen = 10; void* k; ns_verify(msg, &msglen, k, query, querylen, sig, &siglen, anyint(), anyint()); } void runFail...
import Document, { Html, Head, Main, NextScript } from 'next/document'; class MyDocument extends Document { static async getInitialProps(ctx) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps }; } render() { return ( <Html lang='en'> <Head /> ...
import graphql from 'babel-plugin-relay/macro'; import { commitMutation } from 'react-relay'; import cuid from 'cuid'; const mutation = graphql` mutation UpdateActionPointPriorityMutation($input: UpdateActionPointPriorityInput!) { updateActionPointPriority(input: $input) { clientMutationId } } `; co...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Javascript for DevicesPage and DevicesView, served from * chrome://bluetooth-internals/. */ cr.define('devices_page', function() { /** ...
const express = require("express"); require("./db/mongoose"); const userRouter = require("./routers/user"); const taskRouter = require("./routers/task"); const app = express(); app.use(express.json()); app.use(userRouter); app.use(taskRouter); module.exports = app;
from .base import Renderer from .index import CompoundRenderer import re import six def render(renderer, attribute): if attribute: context = renderer.context.create_child_context(attribute) child_renderer = renderer.renderer_factory.create_renderer(context) return child_renderer.render() ...
# 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...
"""Tests for variable store.""" import tensorflow.python.platform import tensorflow as tf from tensorflow.python.ops import variable_scope class VariableStoreTest(tf.test.TestCase): def testGetVar(self): vs = variable_scope._get_default_variable_store() v = vs.get_variable("v", [1]) v1 = vs.get_varia...
import assign from 'lodash/assign'; import set from 'lodash/set'; class IpLoadBalancerFrontendsCtrl { constructor($state, $stateParams, $translate, CucCloudMessage, CucControllerHelper, IpLoadBalancerActionService, IpLoadBalancerFrontendsService) { this.$state = $state; this.$stateParams = $stateParams; ...
'use strict'; /*globals define, socket, app*/ define('composer/categoryList', function() { var categoryList = {}; categoryList.init = function(postContainer, postData) { var listEl = postContainer.find('.category-list'); if (!listEl.length) { return; } socket.emit...
import Logo from '../../../message/logos'; import { textWrap, messageLogoWidth, altNoWrap, setLogoTop, logo20x1 } from '../../../message/mediaQueries'; import { textLogoMutations, flexLogoMutations } from '../../../message/logoMutations'; export default { 'layout:text': [ [ 'default', ...
""" Copyright 2017-2020 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca 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 ...
import inspect from mapillary_tools.process_user_properties import process_user_properties from mapillary_tools.process_import_meta_properties import process_import_meta_properties from mapillary_tools.process_geotag_properties import process_geotag_properties from mapillary_tools.process_sequence_properties import pro...
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('seven', views.seven, name='seven'), ]
var legato__rtos_8h = [ [ "laUpdate_RTOS", "legato__rtos_8h.html#a29fbca917b757d34943a694ee3cc3e73", null ] ];
// Copyright (c) 2018, The Safex Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // c...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),u=n("ebfd").KEY,l=n("294c"),c=n("dbdb"),d=n("45f2"),f=n("62a0"),h=n("5168"),p=n("ccb9"),v=n("6718"),m=n("47ee"),g=n("9003"),b=n("e4ae"),y=n("f7...
#ifndef NVIM_MSGPACK_RPC_CHANNEL_DEFS_H #define NVIM_MSGPACK_RPC_CHANNEL_DEFS_H #include <msgpack.h> #include <stdbool.h> #include <uv.h> #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/event/process.h" #include "nvim/event/socket.h" #include "nvim/vim.h" typedef struct Chann...
//===- FIRRTLVisitors.h - FIRRTL Dialect Visitors ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
goog.provide('taipan3k.components.port.PortModel'); goog.require('taipan3k.components.event.EventInstanceModel'); goog.require('taipan3k.components.port.PortBuildingModel'); goog.require('taipan3k.components.port.PortBuildingModel'); goog.scope(function() { const EventInstanceModel = taipan3k.components.event.Even...
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/jax/output/SVG/fonts/TeX/fontdata-extra.js * * Adds extra stretchy characters to the TeX font data. * * ---------------------...
#!/usr/bin/env python3 import fliclib import caster import logging import sys import os import signal import json for handler in logging.root.handlers[:]: logging.root.removeHandler(handler) logging.basicConfig( stream=sys.stdout, level=logging.INFO, format='%(levelname)s:%(name)s:%(asctime)s: %(messa...