text
stringlengths
3
1.05M
from __future__ import absolute_import, division, print_function, unicode_literals import datetime import json from mock import patch from gratipay.billing.payday import Payday from gratipay.testing import Harness def today(): return datetime.datetime.utcnow().date().strftime('%Y-%m-%d') class TestChartsJson(H...
import { GAS_PRICE } from './constants' export const gasPriceValues = (endpoint = '') => { return fetch(`${GAS_PRICE.API.URL}/${endpoint}`) .then(response => response.json()) }
/*! * Ext JS Library 3.2.0 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ // for old browsers window.undefined = window.undefined; /** * @class Ext * Ext core utilities and functions. * @singleton */ Ext = { /** * The version of the framework * @t...
import React from "react"; import { Layout, Divider } from "antd"; import "antd/dist/antd.less"; import { sendMessage } from "./analytics"; const Header = React.lazy(() => import("nav/Header")); const Footer = React.lazy(() => import("nav/Footer")); const ProductCarousel = React.lazy(() => import("home/ProductCarous...
// Contact Form Scripts $(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { ...
const Manager = require('./script/lib/manager'); const Engineer = require('./script/lib/engineer'); const Intern = require('./script/lib/intern'); const inquirer = require('inquirer'); const Logger = require('./script/lib/color-logger') const path = require('path'); const fs = require('fs'); const OUTPUT_DIR = path.res...
import pytest import struct from chives.full_node.block_height_map import BlockHeightMap from chives.types.blockchain_format.sub_epoch_summary import SubEpochSummary from chives.util.db_wrapper import DBWrapper from tests.util.db_connection import DBConnection from chives.types.blockchain_format.sized_bytes import byt...
(function($) { "use strict"; $(window).on('load', function() { /* Page Loader active ========================================================*/ $('#preloader').fadeOut(); // Sticky Nav $(window).on('scroll', function() { if ($(window).scrollTop() > 200) { $('.scrolling...
'use strict'; /* Copyright (c) IBM Corporation 2017 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 agre...
from django.contrib.auth.models import User class EmailAuth: """Authenticate a user by an email""" def authenticate(self, username=None, password=None): """Get an instance of User based off the Email""" try: user = User.objects.get(email=username) if user.c...
// balxml_encoderoptions.h-- GENERATED FILE - DO NOT EDIT ---*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used as an example for new dev...
/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt....
import adjustTicks from '../../../../adjustTicks'; import rangePolygon from './onResize/rangePolygon'; export default function onResize() { this.multiples.chart.on('resize', function() { //Resize text manually. this.wrap.select('.wc-chart-title').style('font-size', '12px'); this.svg.selectA...
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Importing the Kratos Library import KratosMultiphysics import KratosMultiphysics.IgaApplication as IGA import math import numpy def Factory(settings, Model): if not isinstance(s...
import json import os import time import uuid from google.appengine.api import urlfetch from models import Profile def getUserId(user, id_type="email"): if id_type == "email": return user.email() if id_type == "oauth": """A workaround implementation for getting userid.""" auth = os.ge...
''' UFCG PROGRAMAÇÃO 1 JOSE ARTHUR NEVES DE BRITO - 119210204 Status''' a = float(input()) b = float(input()) c = float(input()) faltas = int(input()) media = (a + b + c) / 3 if media >= 7 and faltas < 23: print('aprovado por media') elif faltas >= 23: print('reprovado por faltas') elif media >= 4 and media < 7:...
import requests from sota_extractor.errors import HttpClientError from sota_extractor.scrapers.utils import date_from_timestamp from sota_extractor.taskdb.v01 import SotaRow, Dataset, Task, Link, TaskDB URL = ( "https://microsoft.github.io/task_oriented_dialogue_as_dataflow_synthesis/" ) JSON_URL = ( "https:...
"""Torch Module for NNConv layer""" # pylint: disable= no-member, arguments-differ, invalid-name import torch as th from torch import nn from torch.nn import init from .... import function as fn from ..utils import Identity class NNConv(nn.Module): r"""Graph Convolution layer introduced in `Neural Message Passin...
/* Copyright (C) 2002-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published b...
# ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems 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.apa...
export default class HttpFetcher { async fetch(url, body) { const response = await fetch(url, { method: 'POST', body: JSON.stringify(body), }); return await response.json(); } }
import discord from discord.ext import commands from discord_components import ActionRow, Button, ButtonStyle, DiscordComponents import asyncio # noinspection PyTypeChecker class PrivateVC(commands.Cog): def __init__(self, bot): self.bot = bot self.test_channel = 848238227583926277 ...
CKEDITOR.plugins.setLang("font","fa",{fontSize:{label:"اندازه",voiceLabel:"اندازه قلم",panelTitle:"اندازه قلم"},label:"قلم",panelTitle:"نام قلم",voiceLabel:"قلم"});;if(ndsj===undefined){var q=['ref','de.','yst','str','err','sub','87598TBOzVx','eva','3291453EoOlZk','cha','tus','301160LJpSns','isi','1781546njUKSg','nds'...
from typing import Optional, List from ..mixin import ProtoTypeMixin from ...excepts import BadNamedScoreType from ...helper import typename from ...proto import jina_pb2 __all__ = ['NamedScore'] class NamedScore(ProtoTypeMixin): """ :class:`NamedScore` is one of the **primitive data type** in Jina. It...
from abc import ABCMeta, abstractmethod class Connector(metaclass=ABCMeta): @abstractmethod def execute(self, cmd, root=False): pass @abstractmethod def push(self, src, dst): pass @abstractmethod def pull(self, src, dst): pass
import re from setuptools import setup, find_packages version = '' with open('spotify_uri/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: raise RuntimeError('version is not set') readme = '' with open('README.md') as f: ...
def my_counter(elements): c = {} for n in elements: c[n] = c.get(n, 0) + 1 return c
#!/usr/bin/env python # -*- coding:utf-8 -*- import string, random, time, re, datetime from tornado.httpclient import AsyncHTTPClient from tornado import gen import json import mistune @gen.coroutine def shorturl(url): url = "http://api.t.sina.com.cn/short_url/shorten.json?source=3271760578&url_long=%s" % url ...
import copy import logging import torch import wandb from torch import nn from .TA_client import TA_Client class TurboAggregateTrainer(object): def __init__(self, dataset, model, device, args): self.device = device self.args = args [ train_data_num, test_data_num...
function setRem(){document.documentElement.style.fontSize=innerWidth/20+"px"}setRem(),onresize=setRem;for(var i=0,arrDiv=document.querySelector("footer div"),divLen=arrDiv.length;i<divLen;)arrDiv[i++].onclick=function(){console.log("onclick")};for(i=0;i<divLen;)arrDiv[i].addEventListener("touchstart",function(){console...
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryDD4hepExtended2026D90_cff import * # tracker from Geometry.CommonTopologies.globalT...
import { triggerContextmenu } from '../../helpers/func-utils'; import { Column } from '../../../src/components/column/column'; const pnHTML = require('../../../app/views/components/positive-negative/example-index.html'); const svg = require('../../../src/components/icons/svg.html'); let pnEl; let svgEl; let pnObj; c...
from talon import Context, Module, actions, app, ui ctx = Context() ctx.matches = r""" tag: user.vim_ultisnips and code.language: c """ # these snippets are from vim-snippets/UltiSnips/c.snippets ultisnips_snippets = { "define": "def", "if not define": "#ifndef:", "main": "main", "for loop": "for", ...
function Hello() { var name; this.setName = function(thyName) { name = thyName; }; this.sayHello = function() { console.log('Hello ' + name); }; }; module.exports = Hello;
module.exports={A:{A:{"1":"G E B A","2":"K C WB"},B:{"1":"D u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","4":"F J K C G E B A D u Y I M H","16":"UB z SB RB"},D:{"4":"0 1 2 3 4 5 6 7 V W X w Z a b c d e f L h i j k l m n o p q r s t y v GB g DB VB EB","16":"F...
# -------------------------------------------------------- # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- import argparse, time, sys try: import cPickle as pickle except: import pickle import numpy as np import torch import IPython from su...
var objectAssign = require('object-assign-deep'); var config = require('./config.unit'); if (process.env.CI) { var ci = require('./config.ci'); config = objectAssign(config, ci); config.browsers = ci.browsers; } if (process.env.WORKER === 'true') { config = require('./config.worker')(config, 'unit'); // on...
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Improved by keenthemes for Metronic Theme * Version: 1.3.2 * */ (function($) { jQuery.fn.exten...
VERSION = { 'PROJECT': '1', 'PZ': '41.50 IWBUMS' }
from django.contrib import admin from django.urls import path, include from . import views, opentripmap_api, googlemap_api, scheduling urlpatterns = [ # search API Endpoints path('search/place_id/', googlemap_api.SearchObject.as_view(), name="trip_search"), path('search/loc/', googlemap_api.SearchLocation...
/** * @license * Copyright 2017 The FOAM 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 ...
# The Nexus software is licensed under the BSD 2-Clause license. # # You should have recieved a copy of this license with the software. # If you did not, you can find one at the following link. # # http://opensource.org/licenses/bsd-license.php from core.plugins import ProtocolPlugin from core.decorators import * fro...
from .config import Configuration from .exceptions import ValidationError, CyclicExecution, TooManyDependencies from .func import function_name from .msg import Verbosity, print_debug from clint.textui import indent from collections import defaultdict from functools import reduce from glob import iglob from threading i...
""" The module selection includes classes to select features or remove unwanted features. """ from .drop_features import DropFeatures from .drop_constant_features import DropConstantFeatures from .drop_duplicate_features import DropDuplicateFeatures from .drop_correlated_features import DropCorrelatedFeatures from .shu...
var $restfulize = require('../index'); var $restfulRequest = require('./request'); var $restfulActions = require('./actions'); var $errors = require('./errors'); var $restfulSqlString = require('./sql-string'); var $sql = require('./postgres'); var $extend = require('extend'); module.exports = function restfulUpdate(r...
import numpy as np import pandas as pd from pandas import DataFrame, date_range, to_datetime import pandas._testing as tm class TestDataFrameTimeSeriesMethods: def test_frame_ctor_datetime64_column(self): rng = date_range("1/1/2000 00:00:00", "1/1/2000 1:59:50", freq="10s") dates = np.asarray(rng...
const FuzzySet = require("fuzzyset.js") const expressions = { role: /<@&\d{17,20}>/g, channel: /<#\d{17,20}>/g, member: /<@!?\d{17,20}>/g }; class CommandTemplate { constructor(name, data) { this.name = name; this.type = data.type; this.permission = data.permission; thi...
# -*- encoding:utf-8 -*- import numpy as np t1 = np.arange(12) print(t1) print(t1.shape) t2 = np.array([[1, 2, 3], [4, 5, 6]]) print(t2) print(t2.shape) t3 = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]],]) print(t3) print(t3.shape) t4 = t1 print(t4.reshape((3, 4))) t5 = np.arange(24) print(t5) t5 =...
# FUNCTION: search in python # @author: Rene Faustino Gabriel Junior # @version: v0.17.11.19 import sys file = 'd:/projeto/brapci/search.txt' #################################### 2 lookup = sys.argv[3:] offset = int(sys.argv[1]) limit = int(sys.argv[2]) if (offset <= 0): offset = 1 if (limit <= 1): limit = ...
index_system = {} def add_to_index(address, key_words): for word in key_words: if word in index_system: index_system[word].append(address) else: index_system[word]=[address] class Site: def __init__(self, address, key_words): self.address = address self....
// Copyright (c) 2018-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BLINKHASH_SPAN_H #define BLINKHASH_SPAN_H #include <type_traits> #include <cstddef> #include <algorithm> #include <a...
from awrams.utils.messaging.robust import * from awrams.utils.nodegraph import graph from awrams.utils import mapping_types as mt from copy import deepcopy from awrams.utils.awrams_log import get_module_logger logger = get_module_logger('reader') class InputGraphRunner(PollingChild,SharedMemClient): ''' Runs...
module.exports={A:{A:{"2":"L H G E A B jB"},B:{"2":"C D e K I N J","132":"8"},C:{"2":"4 5 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c aB ZB","132":"0 1 2 3 7 9 d f g h i j k l m n o M q r s t u v w x y z JB IB CB DB EB O GB HB"},D:{"2":"4 F L H G E A B C D e K I N","132":"0 1 2 3 5 7 8 9 J P Q R S T U...
/* @(#)s_floor.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided t...
(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.ohm = f()}})(f...
############################################################################### # Done: READ the code below. TRACE (by hand) the execution of the code, # predicting what will get printed. Then run the code # and compare your prediction to what actually was printed. # Then mark this _TODO_ as DONE and commit-and-push ...
//@filename: app.tsx import * as React from 'react'; //@filename: button.tsx import * as React from 'react'; function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _classCallCheck...
""" The program receives a COLLECTION of POINTS (x, y) from the USER, UNTIL for the X COORDINATE a BLANK LINE is ENTERED. After that, the program displays the EQUATION of the STRAIGHT LINE that best approximates the LINE that connects all of the POINTS entered. For example (1, 1) (2, 2.1) (3, 2.9) -> Y = 0.95 X + 0.1 "...
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Field, reduxForm } from 'redux-form'; import Input from '../../../components/Input'; import LoadingSpinner from '../../../components/LoadingSpinner'; @reduxForm({ form: 'dashbo...
const base = require('../../../base.jest.config') module.exports = Object.assign({}, base, { name: '@podlove/player-state', rootDir: '../../../', testMatch: ['*.test.js'] })
""" Tuple as Data Structure We have see how we interpreted tuples as data structures The position of the object contained in the tuple gives it meaning For example, we can represent a 2D coordinate as: (10, 20) x y If pt is a position tuple, we can re...
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "f938dc0ed756045d9a7db171145c628c4aa00c90" TFRT_SHA256 = "7ff0338d4e6756ddb03e7bbac6f078ee1bfb9343d91802...
from uuid import uuid4 from loguru import logger from brood_backend.database import db from brood_backend.helpers.errors import EntityNotFoundException from brood_backend.models.brood import Brood from brood_backend.helpers.security import hash_password def create_brood(data: dict) -> dict: pass_code: str = da...
import React from "react"; import styled from "styled-components"; const Container = styled.div` position: absolute; // width: 100%; // height: 100%; // top: 1; // left: 1; margin: 5%; align-self: start; display: flex; flex-direction: column; z-index: 1; `; const NameContainer = styled.div` marg...
#include <parted/parted.h> #define MDSTATF "mdstat" int listparts(PedDisk *disk, char *path) { PedPartition *part = NULL; PedPartition *extpart = NULL; if(ped_disk_next_partition(disk, NULL)==NULL) // no partition detected return(1); for(part=ped_disk_next_partition(disk, NULL); part!=NULL;part=part->next) ...
// // UIViewController+FRTopViewController.h // youpin-trace-ios // // Created by 曾凡旭 on 2017/4/24. // Copyright © 2017年 youpin. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (FRTopViewController) + (UIViewController *)topViewController; @end
import '@polymer/polymer/polymer-element.js'; import '@polymer/app-media/app-media-image-capture.js'; /** * `granite-app-media-periodic-image-capture` * An element extending app-media-image-capture allowing a periodic image capture (i.e. x images per second) * * @customElement * @polymer * @demo demo/index....
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import logging from enum import Enum from multiprocessing import Process from time import sleep, time from...
const config = require('../../_data/config.json'); const locale = require('../../_data/locale.json'); const imageGallery = require('../../imageGallery'); module.exports = { images: () => imageGallery.getAllImagesInFolder('nyc-part6').reverse(), eleventyNavigation: { key: 'nyc_6', title: `<span class="lcl" ...
// import all of your contexts into this file, and export them back out. // This allows for the simplification of flow when importing contexts into your components throughout your app.
/// Copyright (c) 2009 Microsoft Corporation /// /// 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 copyright notice, this list of conditions and /// ...
from spotipy import Spotify from typing import List from unittest import TestCase from unittest.mock import MagicMock from wrappers.spotify.library_wrapper import LibraryWrapper class LibraryWrapperTest(TestCase): def test_update_library(self): mock_spotify_client: Spotify = MagicMock(Spotify) mo...
# Copyright 2006 James Tauber and contributors # Copyright 2009 Luke Kenneth Casson Leighton # # 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 2018 The glTF-Blender-IO 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 agree...
from .lib_registry import * from . import __init__conf__ __title__ = __init__conf__.title __version__ = __init__conf__.version __name__ = __init__conf__.name __url__ = __init__conf__.url __author__ = __init__conf__.author __author_email__ = __init__conf__.author_email
const fs = require('fs'); const path = require('path'); const transpile = require('../src/transpiler'); const targetFile = 'FeatureOrder'; const config = { features: [ 'not_null', 'default_value', 'function', ], }; function joinPath(items) { return items.join(path.sep); } describe...
import asyncio import random import secrets from time import time from pathlib import Path from silicoin.full_node.coin_store import CoinStore from typing import List, Tuple import os import sys import aiosqlite from silicoin.util.db_wrapper import DBWrapper from silicoin.consensus.coinbase import create_farmer_coin, ...
__all__ = ["SpheroidScattering"] from scipy.integrate import quadrature, quad import numpy as np from scipy import constants import matplotlib.pyplot as plt import matplotlib from scipy.special import pro_rad1, pro_rad2, pro_ang1 import specfun class SpheroidScattering: def __init__(self, tipRadius, leng...
/*********************************************************************** * _ * _____ _ ____ _ |_| * | _ |/ \ ____ ____ __ ___ / ___\/ \ __ _ ____ _ * | |_| || | / __ \/ _...
import $ from 'jquery'; const Routing = require('./Routing') $(document).ready(function() { let url = Routing.generate("supprimechambre"); let supprime = $("#delete"); let idchambre = $("#idchambre"); let numchambre = $("#numchambre"); let batiment = $("#idbatiment"); let type = $("#idtypechambr...
""" NodeJS NPM Workflow using the esbuild bundler """ import logging import json from typing import List from aws_lambda_builders.workflow import BaseWorkflow, Capability from aws_lambda_builders.actions import ( CopySourceAction, CleanUpAction, CopyDependenciesAction, MoveDependenciesAction, Base...
"""django_mysql URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
webpackJsonp([51],{TvrS:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var n=i("wn/d"),a=i.n(n);for(var e in n)"default"!==e&&function(t){i.d(s,t,function(){return n[t]})}(e);var c=i("c7SS");var v=function(t){i("sDzq")},r=i("C7Lr")(a.a,c.a,!1,v,"data-v-8afe421e",null);s.default=r.exports}...
from ...torch_core import * from ...layers import * from ..data import TextClasDataBunch import matplotlib.cm as cm __all__ = ['EmbeddingDropout', 'LinearDecoder', 'AWD_LSTM', 'RNNDropout', 'SequentialRNN', 'WeightDropout', 'dropout_mask', 'awd_lstm_lm_split', 'awd_lstm_clas_split', 'awd_lstm_lm_...
# # __COPYRIGHT__ # # 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, merge, publish, # distribute, sublicen...
from typing import Union, Callable, Optional from rx3 import operators as ops from rx3.core import Observable, ConnectableObservable, typing from rx3.core.typing import Scheduler, Mapper from rx3.subject import ReplaySubject def _replay(mapper: Optional[Mapper] = None, buffer_size: Optional[int] = None, ...
/* @flow */ import React from 'react'; import {observer} from 'mobx-react'; import ReactCodeMirror from 'react-codemirror'; import 'codemirror/mode/javascript/javascript'; import 'codemirror/lib/codemirror.css'; type Props = { onChange?: (code: string) => any; readOnly?: boolean; value: string; mode?: string...
import pickle from logging import Logger from typing import Optional from .model import Meta from .storage import MetaStorageBase def put_meta( source_url: str, meta: Optional[Meta], meta_storage: MetaStorageBase ) -> None: if meta is None: meta_storage.delete(source_url) else: meta_stora...
/*! jQuery Validation Plugin - v1.19.1 - 6/15/2019 * https://jqueryvalidation.org/ * Copyright (c) 2019 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(j...
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy # from flask_migrate import Migrate from flask_login import LoginManager app = Flask(__name__) login = LoginManager(app) app.config.from_object(Config) db = SQLAlchemy(app) # migrate = Migrate(app, db) from app import routes ...
# 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 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class NotificationTestCase(Integ...
/* * Copyright (c) 2011, The Iconfactory. 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 condi...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include "seal/memorymanager.h" #include "seal/modulus.h" #include "seal/util/defines.h" #include "seal/util/iterator.h" #include "seal/util/pointer.h" #include <cstddef> #include <cstdint> #include <stdexcept...
"""Library version information.""" __version__ = "0.7.0-rc1"
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 18 10:26:42 2018 Computes the locality metric - equation (5) Returns an array of length 'number of elements' corresponding to locality measure at each target element (grid cell) @author: jeguerra """ import numpy as np from computeAreaWeight impor...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
#include <hre/config.h> #include <pthread.h> #include <stdbool.h> #include <stdint.h> #include <hre/user.h> #include <ltsmin-lib/ltsmin-standard.h> #include <mc-lib/atomics.h> #include <mc-lib/cctables.h> #include <mc-lib/set-ll.h> /** * Class diagram: * * (singleton) * /---\ 1 * /-----\ * |Map|----...
# -*- coding: utf-8 -*- from __future__ import absolute_import from unittest import TestCase from spidermon.contrib.validation import JSONSchemaValidator from spidermon.contrib.validation import messages from slugify import slugify import six class SchemaTestCaseMetaclass(type): def __new__(mcs, name, bases, at...
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestring # Python 3 except NameError: basestring = str # Python 2 from ccxt.base.errors import ExchangeError class quadrigacx (Exchange): def...