text
stringlengths
3
1.05M
import pathlib import pandas as pd import pytest root_directory = pathlib.Path(__file__).parent.resolve() @pytest.fixture(scope="session") def shared_data_folder() -> pathlib.Path: return root_directory / "_shared_data" @pytest.fixture(scope="function") def battery_wl(shared_data_folder) -> pd.Series: ret...
import numpy as np from bico.geometry.squared_euclidean import SquaredEuclideanDistance from bico.nearest_neighbor.base import NearestNeighbor, NearestNeighborResult from nearpy import Engine from nearpy.filters import DistanceThresholdFilter from nearpy.hashes import RandomBinaryProjections class RandomBinaryNN(Near...
function Hero() { return ( <section> <h2 className="text-center text-3xl font-semibold text-white uppercase"> Hero Section </h2> </section> ); } export default Hero;
# Generated by Django 2.1 on 2020-04-19 00:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
// Simple reduce function to sum the values in an array const sumArray = arr => { return arr.reduce((acc, cur) => { return acc + cur }, 0) } module.exports = { sumArray: sumArray }
/* Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distrib...
import React, { useState, useEffect } from 'react' // import axios from 'axios'; import API from "../../utils/API" function SearchResults(props) { console.log(props.books) const [searchResults, setSearchResults] = useState([]); // console.log(obj.data.items[0].volumeInfo.title); // console.log(obj.da...
import React,{useState} from "react"; import { BrowserRouter, Link, Switch, Route } from "react-router-dom"; import 'semantic-ui-css/semantic.min.css' import { Container, Icon, Label, Menu } from "semantic-ui-react"; import Questions from "./QuizQuestions"; import list from './questions.json'; import Result from ...
(function(d){d['he']=Object.assign(d['he']||{},{a:"לא ניתן להעלות את הקובץ הבא:",b:"סרגל תמונה",c:"Table toolbar",d:"מס' מילים: %0",e:"מס' תווים: %0",f:"נטוי",g:"מודגש",h:"בלוק ציטוט",i:"בחר סוג כותרת",j:"כותרת",k:"הוסף תמונה או קובץ",l:"קישור",m:"תמונה",n:"Increase indent",o:"Decrease indent",p:"תמונה בפריסה מלאה",q:"...
/** * LoopBack Application * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech...
from unipath import Path BASE_DIR = Path(__file__).ancestor(3) SECRET_KEY = 'ni$cqsj*j5ld(r4b2k*hs&d#6$6!7(7i@=^bvkoivtbw%0^etn' DJANGO_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.s...
import random import uuid import numpy as np def generate_random_obstacles(X, start, end, n): """ Generates n random obstacles without disrupting world connectivity. It also respects start and end points so that they don't lie inside of an obstacle. """ # Note: Current implementation only support...
import static, buttons, editors, layouts, windows, layers
# import pickle # import pandas as pd # from sklearn.model_selection import train_test_split # from sklearn.preprocessing import MinMaxScaler # import util # train_df = pd.read_csv('../data/train_with_features.csv') # columns = ['DayOfWeek', 'Date', 'Open', 'Promo', 'StateHoliday', # 'SchoolHoliday', 'Year', '...
#!/usr/bin/env python from distutils.core import setup setup(name='exciton_coupling', version='0.1', description='Exciton coupling analysis', long_description=open('README.md').read(), author='Michael Dommett, Rachel Crespo-Otero', author_email='m.dommett@qmul.ac.uk', url='https://...
#! /usr/bin/env python # -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2015 Bartosz Janda # # 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 w...
import post1 from './posts/post_1.md' import post2 from './posts/post_2.md' import sidebar from '~/src/sidebar/sidebar.vue' export default { components: { post1, post2, sidebar }, props: ['lang', 'id'], data () { return { } } }
(function () { 'use strict'; angular .module('gatewayApp') /* Languages codes are ISO_639-1 codes, see http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes They are written in English to avoid character encoding issues (not a perfect solution) */ .constant('L...
// @flow import styles from './bdb.css'; import { Content } from 'app/components/Content'; import { Component } from 'react'; import { Field } from 'redux-form'; import Button from 'app/components/Button'; import { TextInput, RadioButton, RadioButtonGroup } from 'app/components/Form'; import SemesterStatusContent from...
const { loadAMP } = require('./util/loader'); test('AMP runtime loads in iframe', async () => { const { iframe } = await loadAMP(); await iframe.waitForSelector('html.i-amphtml-iframed'); }); test('page loading timeout', async () => { const { iframe } = await loadAMP('not AMP'); await iframe.waitForSelector('...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .application_gateway import * from .express_route_circuit import * from .express...
import { createAsyncThunk } from '@reduxjs/toolkit'; export const checkOffTaskerItem = createAsyncThunk( 'api/checkOffTaskerItem', async payload => { try { const response = await fetch( `http://localhost:5000/api/check-off/task?id=${payload}`, { method: 'POST', mode: '...
/*! * blockstore/layout.js - file blockstore data layout for ldogejs * Copyright (c) 2019, Braydon Fuller (MIT License). * https://github.com/bcoin-org/bcoin */ 'use strict'; const bdb = require('bdb'); /* * Database Layout: * V -> db version * F[type] -> last file record by type * f[type][fileno] -> f...
const verifyDocumentsFactory = require('../../../../lib/stPacket/verification/verifyDocumentsFactory'); const STPacket = require('../../../../lib/stPacket/STPacket'); const Document = require('../../../../lib/document/Document'); const getDocumentsFixture = require('../../../../lib/test/fixtures/getDocumentsFixture')...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'zoo_SelectListWin.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_zoo_SelectListWin(object): def setupUi(self, zoo_SelectLis...
/*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.1.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
from flask_login import login_user, logout_user from flask import render_template, request, redirect, flash, url_for from datetime import datetime from kakeibosan import app, login_manager from kakeibosan.views.forms import LoginForm from kakeibosan.models import User @login_manager.user_loader def load_user(user_id)...
"""network URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ("profiles", "0001_initial"), ] operations = [ migrations.AlterField( model_name="profile", name="email", field=models.EmailField( max_leng...
from __future__ import absolute_import from six import binary_type from typing import Any, Dict, Callable, Tuple, Text # This file needs to be different from cache.py because cache.py # cannot import anything from zerver.models or we'd have an import # loop from django.conf import settings from zerver.models import M...
import React, { Component } from 'react'; import AsyncSelect from '../../packages/react-select/async'; import { colourOptions } from '../data'; type State = { inputValue: string, }; const filterColors = (inputValue: string) => { return colourOptions.filter(i => i.label.toLowerCase().includes(inputValue.toLow...
module.exports = { 'accessInformation': { 'TOOLTIP_GUIDANCE_DEFAULT': 'Digite o texto que fornece crédito às organizações que exigem crédito: provedor de dados, desenvolvedor de aplicativos, etc.', 'TOOLTIP_GUIDANCE_INTL': '', 'TOOLTIP_SCORING_MSG_DEFAULT': 'Pontos completos são concedidos para inserir t...
/* * 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 ...
def get_league_settings(league_id='390.l.XXXXXX'): #url = 'https://fantasysports.yahooapis.com/fantasy/v2/leagues;league_keys=390.l.XXXXXX'.format(16) url = 'https://fantasysports.yahooapis.com/fantasy/v2/league/{}/settings'.format(league_id) response = oauth.session.get(url, params={'format': 'json'}) ...
'use strict' module.exports = (sequelize, DataTypes) => { const School = sequelize.define('School',{ name: DataTypes.STRING, code: DataTypes.INTEGER, gia: DataTypes.INTEGER, areaId: DataTypes.UUID, people: DataTypes.INTEGER, legacyId: DataTypes.UUID }) School.associate = (models) => { School.belon...
/** * Copyright 2020 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { html, css } from "lit-element/lit-element.js"; import { SimpleColors } from "@lrnwebcomponents/simple-colors/simple-colors.js"; import "@lrnwebcomponents/responsive-utility/responsive-utility.js"; ...
# Copyright 2018 The TensorFlow Probability 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 o...
// SPDX-License-Identifier: GPL-2.0+ // Copyright 2018 IBM Corporation #include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/irq.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_reserved_mem.h> #include <linux/platform_devi...
import React from 'react' import Header from '../components/Header' import Navigation from '../components/Navigation' import ImageHolder from '../components/ImageHolder' import styled from 'styled-components' import NeonLogo from '../assets/NeonLogo' export default () => ( <Wrapper> <Header /> <Navigation /> <...
""" Test the Next Reaction Method submodel :Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu> :Date: 2020-04-11 :Copyright: 2020, Karr Lab :License: MIT """ import math import numpy as np import os import unittest from de_sim.simulation_config import SimulationConfig from wc_onto import onto from wc_sim import mess...
#include <xc.h> #include <stdbool.h> #include <stdint.h> #include "i2c_master.h" #define READ 1 #define WRITE 0 #define ACK 0 #define NACK 1 void waitIdle() { while ((SSPCON2 & 0x1F) | SSPSTATbits.R_nW); // wait until idle } void i2c_master_init(const uint8_t baudRateCounter) { SSPCON1 = 0; SSPCON...
'use strict'; angular.module('basic') .controller('AddCameraCtrl', ['Notification', 'GLOBAL', '$filter', '$rootScope', '$scope', '$http', '$location', 'STtasksCreate', 'DBcameras', 'STtasksDel', function(Notification, GLOBAL, $filter, $rootScope, $scope, $http, $location, STtasksCreate, DBcameras, STtasksDe...
'use strict' const NCMTestRunner = require('./lib/test-runner.js') NCMTestRunner.test('whitelist updates properly', async (runner, t) => { { const { stdout, stderr } = await runner.execP( `whitelist --add ansi-styles@3.2.1`, { env: Object.assign({ FORCE_COLOR: 3 }, process.env) } ) t.equal(s...
from ds_toolkit import __version__ def test_version(): assert __version__ == '0.1.2'
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 8.12.1-1_6 description: > Properties - [[HasOwnProperty]] (non-writable, configurable, non-enumerable own value property) ---*/ var o = {}; Object.defineProperty(...
"""Console script for ca_util.""" import sys import click @click.command() def main(args=None): """Console script for ca_util.""" click.echo("Replace this message by putting your code into " "ca_util.cli.main") click.echo("See click documentation at https://click.palletsprojects.com/") ...
> a[0]; 'b' > a[1]; 'a' > a[2]; 'd'
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import ParticleSwarmAlgorithm from niapy.task import StoppingTask from niapy.benchmarks import Sphere from numpy...
function submissionForm() { var modal = $('#modal'); modal.empty(); $('#modal').append('<div class="modal fade" id="submissionDetailModal" tabindex="-1" role="dialog"' + ' aria-labelledby="submissionDetailLabel" aria-hidden="true">' + '<div class="modal-dialog" role="document">' + '<...
// SPDX-FileCopyrightText: 2019 deroad <wargio@libero.it> // SPDX-License-Identifier: LGPL-3.0-only #ifndef ASM_AMD_29K_H #define ASM_AMD_29K_H #include <stdint.h> #include <rz_types.h> #ifdef __cplusplus extern "C" { #endif #define CPU_29000 "29000" #define CPU_29050 "29050" typedef struct amd29k_instr_s { const ...
const semver = require('semver') const sqlSummary = require('sql-summary') const NRA = require("../Agent"); const mySQL = require("mysql"); // Create Original Connection... let createConnectionOriginal = mysql.createConnection mysql.createConnection = function () { if (arguments.length > 0) { let trace = NRA.c...
'use strict'; const person = { name: 'Marcus', city: 'Roma', born: 121, }; debugger; if ( 'name' in person ) { console.log ( 'Person name is: ' + person.name ); }
/* Script: Language.nl.js MooTools Filemanager - Language Strings in Dutch Translation: [Dave De Vos](http://wnz.be) */ Filemanager.Language.nl = { more: 'Details', width: 'Breedte:', height: 'Hoogte:', ok: 'Ok', open: 'Kies bestand', upload: 'Uploaden', create: 'Maak map', createdir: 'Geef een map-naam op...
$(function () { let userId = getQueryString("userId"); let url = '../address/list'; if (userId) { url += '?userId=' + userId; } $("#jqGrid").Grid({ url: url, colModel: [ {label: 'id', name: 'id', index: 'id', key: true, hidden: true}, {label: '会员', nam...
from django.shortcuts import render, get_object_or_404, redirect from datetime import datetime, date from devices.models import * from settings.models import * from django.db.models import Q, Sum from devices.views import refresh_devices # Dashboard def dashboard(request): # Check the Cloud state of the devices re...
import argparse import collections import os import subprocess import nltk def tree_to_spans(tree, keep_labels=False, keep_leaves=False, keep_whole_span=False): if isinstance(tree, str): tree = nltk.Tree.fromstring(tree) length = len(tree.pos()) queue = collections.deque(tree.treepositions()) ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The Lytix developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ...
from electrum_mona.plugin import hook from .safe_t import SafeTPlugin from ..hw_wallet import CmdLineHandler class Plugin(SafeTPlugin): handler = CmdLineHandler() @hook def init_keystore(self, keystore): if not isinstance(keystore, self.keystore_class): return keystore.handler =...
const config = require('../../../config.json'); const request = require('request'); module.exports = { setGame: function(client){ client.user.setGame(`${config.prefix}help | ${client.guilds.size} servers`); }, discordpw: function(client) { request.post({ url: 'https://bots...
import "../styles/globals.css"; import { SessionProvider } from "next-auth/react"; import { RecoilRoot } from "recoil"; function MyApp({ Component, pageProps: { session, ...pageProps } }) { return ( <SessionProvider session={session}> <RecoilRoot> <Component {...pageProps} /> </RecoilRoot> ...
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ #ifndef _ROOT_REST_COMMON_ #define _ROOT_REST_COMMON_ #include <string> class HttpSession; namespace REST { void SendResponse(HttpSession *session, const std::string &msg, int status_code = 200); void SendErrorResponse(HttpS...
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AuthenticateUserByName(object): """NOTE: This class is au...
/* Copyright (C) 1991-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. 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 by the Free Software Foundation; either version 2.1 of the ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
#!/usr/bin/env python """ Python indicator applet to show the status of several git repositories Behaviour --------- When first opened, all repo's in `~/.batchgit` are checked against the remote. A label is assigned of the form ahead, diverged, behind, up-to-date or no-state is recorded for each repo. The menu is the...
#ifndef FMOE_UTILS_H #define FMOE_UTILS_H #define CHECK_CUDA(x) AT_ASSERTM(x.device().is_cuda(), #x " must be a CUDA tensor") #define CHECK_CONTIGUOUS(x) AT_ASSERTM(x.is_contiguous(), #x " must be contiguous") #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x) #define CEIL(_x_,_y_) (((_x_)-1)/(_y_)+1) #endif ...
/* // @flow // eslint-disable-next-line no-shadow declare var module: { /!* hot: { accept(path: string, callback: () => void): void } *!/ }; // eslint-disable-next-line no-shadow, flowtype/no-weak-types declare var require: any; */
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
'use strict'; import DatasetController from '../core/core.datasetController'; import defaults from '../core/core.defaults'; import elements from '../elements'; import helpers from '../helpers'; const resolve = helpers.options.resolve; defaults._set('bubble', { animation: { numbers: { properties: ['x', 'y', 'bo...
# This code is supporting material for the book # Building Machine Learning Systems with Python # by Willi Richert and Luis Pedro Coelho # published by PACKT Publishing # # It is made available under the MIT License import os from matplotlib import pylab import numpy as np DATA_DIR = os.path.join("..", "data") CHART...
#pragma once #include "../xrScripts/export/script_export_space.h" struct lanim_registrator{ DECLARE_SCRIPT_REGISTER_FUNCTION }; add_to_type_list(lanim_registrator) #undef script_type_list #define script_type_list save_type_list(lanim_registrator)
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import mock import psycopg2 import pytest from mock import MagicMock from semver import VersionInfo from six import iteritems from datadog_checks.postgres import util from .common import SCHEMA_NAME pytestmar...
/** * CustomThemeDemo.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /*eslint no-console:0 */ define( 'tinymce.core.demo.CustomThemeDemo', [ 'global!documen...
# Copyright 2016 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...
import Vue from 'vue'; import Router from 'vue-router'; import Main from '../pages/Main.vue'; Vue.use(Router); let route = new Router({ routes: [ { path: '/', redirect: {name: 'Main'} }, { path: '/main', name: 'Main', component: Main, query: {lang: 'en'} } ] }); ...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
# do not import all apis into this module because that uses a lot of memory and stack frames # if you need the ability to import all apis from one package, import them with # from pocketsmith.apis import AccountsApi
const canvas = document.querySelector("canvas"); canvas.height = innerHeight; canvas.width = innerWidth; // c = context const c = canvas.getContext("2d"); const mouse = { x: undefined, y: undefined }; window.addEventListener("mousedown", (e) => { mouse.x = e.x; mouse.y = e.y; }); // Supposed to be ...
//===- llvm/CodeGen/GlobalISel/IRTranslator.h - IRTranslator ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** @file Raw IP4 receive test application Copyright (c) 2011-2012, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "RawIp4Rx.h" /** Receive raw datagrams from a remote system. @param [in] Argc The number of arguments @param [in] Argv The argument va...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware 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 ...
# Copyright 2017 Veritas Technologies 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...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.18 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
# Copyright (c) 2019, Matt Layman and contributors from tap.adapter import Adapter from tap.directive import Directive from tap.i18n import _ from tap.line import Result class Rules(object): def __init__(self, filename, suite): self._filename = filename self._suite = suite self._lines_see...
const chai = require('chai'); const assert = chai.assert; chai.use(require('chai-as-promised')).should(); const deployService = require('../../../scripts/deploy-service/'); const compareConfigAndState = require('../../../scripts/deploy-service/preProcess/compareConfigAndState'); const { PENDING_STATE } = require('../....
# Generated by Django 3.1.7 on 2021-05-27 09:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('projects', '0031_project_project_image'), ('models', '0012_auto_20210526_1256'), ] oper...
import React from 'react' import styled from 'styled-components' import { useStaticQuery, graphql } from 'gatsby' import BackgroundImage from 'gatsby-background-image' const Image = styled(BackgroundImage)` width: 100%; height: 100vh; background-size: cover; background-repeat: no-repeat; background-position:...
import { connect } from "react-redux"; import { getFeeds } from "../../../store/actions/feedActions"; import FeedList from "../FeedList"; const mapStateToProps = state => ({ feed: state.feed, error: state.error }); export default connect( mapStateToProps, { getFeeds } )(FeedList);
// Copyright (c) 2012 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. #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ ...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #ifndef cmCacheManager_h #define cmCacheManager_h #include "cmConfigure.h" // IWYU pragma: keep #include <iosfwd> #include <map> #include <set> #include <string> #include...
import json from authlib.oauth2.rfc6749.grants import ( RefreshTokenGrant as _RefreshTokenGrant, ) from .models import User, Client, OAuth2Token from .oauth2_server import TestCase class RefreshTokenGrant(_RefreshTokenGrant): def authenticate_refresh_token(self, refresh_token): try: item =...
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import map, zip import warnings import math import matplotlib as mpl import numpy as np import matplotlib.cbook as cbook import matplotlib.artist as artist f...
export default (context, html) => html` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-.4 4.25l-7.07 4.42c-.32.2-.74.2-1.06 0L4.4 8.25c-.25-.16-.4-...
import numpy as np #a = np.array([[1.,2.],[3.,4.]]) #b = np.array([[2.,2.],[4.,4.]]) #print pbcvt.dot(a,b) #print pbcvt.dot2(a,b) def add(a,b): # print('testpy') print a print b return a+b def model_image(a,b): c = np.array(b).astype('float32') # print c return b
from toolz import merge from time import time import dask from dask import threaded, multiprocessing, local from random import randint from collections import Iterator import matplotlib.pyplot as plt def noop(x): pass nrepetitions = 1 def trivial(width, height): """ Embarrassingly parallel dask """ d = ...
/* * Copyright (C) 2014 F4OS Authors * * 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, publis...
import DelegateModel from "@/models/delegate"; import Vue from "vue"; export default { namespaced: true, state: { delegates: {} }, getters: { all: (state, _, __, rootGetters) => { const network = rootGetters["session/network"]; if (!network || !state.delegates[...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_RTFView_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_RTFView_TestsVersionStr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 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 BITCOIN_NET_H #define BITCOIN_NET_H #include <addrdb.h> #include <addrma...