text
stringlengths
3
1.05M
# Generated by Django 2.2.6 on 2021-08-04 11:53 import django.db.models.expressions from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0001_initial'), ] operations = [ migrations.AddConstraint( model_name='follow', ...
# Copyright 2016 Open Source Robotics Foundation, 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...
from copy import copy from typing import Union import numpy as np from fedot.core.data.data import InputData, OutputData from fedot.core.data.multi_modal import MultiModalData from fedot.core.operations.evaluation.operation_implementations.data_operations.ts_transformations import _ts_to_table from fedot.core.reposit...
import coco from coco import Annotation import argparse import collections # import numpy as np import numpy as np import matplotlib.pyplot as plt import os def getargs(): parser = argparse.ArgumentParser(description='Process some integers.') # parser.add_argument('-i', dest='inputfile', type=str, required=Tr...
export default (theme) => ({ root: { ...theme.flexRowCenter, alignItems: 'center', cursor: 'pointer', height: '200px', width: '300px', margin: theme.spacing.unit * 0.5, padding: theme.spacing.unit * 1.3, overflow: 'hidden' }, outLinedBtn: { margin: theme.spacing.unit, color: 'white', background...
import os import glob import copy import numpy as np import math import torch.utils.data from itertools import chain from concurrent.futures.thread import ThreadPoolExecutor from .logger import _logger from .data.tools import _pad, _clip, _eval_expr from .data.fileio import _read_files from .data.config import DataCon...
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
/** * Created by LRodriguez on 09/11/2016. */ var idSelectedForDelete; $( document ).ready(function() { var ids = ['name', 'code', 'value']; var names = ['Nombre', 'Código', 'Valor']; setTable("dinamicTableType", ids, names, "cuerpoTablaTiposEquipo"); setTable("dinamicTableDetection", ids, names, "cu...
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
/** * Created by syang on 2017/5/28. */ import Vue from 'vue' import Vuex from 'vuex' import user from './modules/user' import getters from './getters' Vue.use(Vuex) const store = new Vuex.Store({ modules: { user }, getters }) export default store
# import the necessary packages import argparse import time import cv2 TEST=True WIDTH = 600 # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-m", "--model", required=True, help="neural style transfer model") ap.add_argument("-i", "--image", required=True, help="in...
""" ============================= Plotting Template Transformer ============================= An example plot of :class:`htm.template.TemplateTransformer` """ import numpy as np from matplotlib import pyplot as plt from htm import TemplateTransformer X = np.arange(50, dtype=np.float).reshape(-1, 1) X /= 50 estimator ...
var views = require('koa-views'); // Must be used before any router is used app.use(views(__dirname + '/views', { map: { html: 'underscore' } })); app.use(async function (ctx) { ctx.state = { session: this.session, title: 'app' }; await ctx.render('user', { user: 'John' }); }); // 或者 //...
# -*- coding: utf-8 -*- def init_test_context(): import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
# Copyright (c) 2010, 2017-2018 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the fun...
import asyncio import json import uuid from threading import Event from typing import Any, Dict, Optional, Tuple, Type, Union, cast from mypy_extensions import TypedDict from sanic import Blueprint, Sanic, request, response from sanic_cors import CORS from websockets import WebSocketCommonProtocol from idom.config im...
"""Copyright 2014 Google Inc. 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 applicable law or agreed to in ...
from mrjob.job import MRJob class Conteggio(MRJob): def mapper(self, _, nome): nome=nome.strip() yield (nome, 1) def reducer(self, nome, voti): yield (nome, sum(voti)) if __name__ == '__main__': Conteggio.run()
from django.conf.urls import url from django.urls import path from . import views from core.views import ProjectDetail urlpatterns = [ url(r'^$', views.project_list, name='project_list'), #url(r'^project/(?P<pk>\d+)/$', views.project_detail, name='project_detail'), url(r'^project/(?P<pk>\d+)/$', views.Pro...
import * as p from 'path'; import babel from 'rollup-plugin-babel'; import nodeResolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import replace from 'rollup-plugin-replace'; import uglify from 'rollup-plugin-uglify'; const isProduction = process.env.NODE_ENV === 'production'; c...
#include <math.h> #include "mt_linalg.h" #include "mt_twodim.h" mt_t *mt_transpose(const mt_t *mt) { mt_t *copy = mt_clone(mt); zend_long i, j; if (IS_MT_EMPTY_P(copy) || copy->shape->d == 1) { return copy; } if (copy->shape->d > 2) { mt_free(copy); THROW_ERROR_A("Expecte...
// // Created by xiaoc on 2018/10/9. // #ifndef PATH_TRACER_HIT_H #define PATH_TRACER_HIT_H #include "vector3.h" class RenderObject; struct Hit { RenderObject *object; double distance; Vector3 normal; Hit() { object = nullptr; distance = -1;} Hit(RenderObject *_o, double _d, const Vector3 &_n)...
# """ # FuXi Harness for W3C SPARQL1.1 Entailment Evaluation Tests # """ # import unittest # from pprint import pprint # from urllib2 import urlopen # from FuXi.Rete.RuleStore import SetupRuleStore # from FuXi.Horn.HornRules import HornFromN3 # from FuXi.Rete.Proof import ImmutableDict # from FuXi.SPARQL.BackwardChain...
/* * Copyright IBM Corporation 1987,1988,1989 * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice...
from fixture.orm import OrmFixture from model.group import Group db = OrmFixture(host='127.0.0.1', database='addressbook', user='root', password='') try: l = db.get_contacts_not_in_group(Group(id='153')) for item in l: print(item) print(len(l)) finally: pass #db.destroy()
from django.test import TestCase # Create your tests here. class CategoryTestCase(TestCase): '''method to create instance before each test is run ''' def setUp(self): self.animals= Category(category = "animals") '''Testing instance''' def test_instance(self): self.assertTrue(i...
#!/usr/bin/python import wx from wx import py from wx import stc import os, sys, webbrowser # Change to the directory of quisk.py. os.chdir(os.path.normpath(os.path.dirname(__file__))) # Command line parsing: be able to specify the config file. from optparse import OptionParser parser = OptionParser() parser.add_opt...
# Thin functonal layer on top of the class implementation of CLMModeling . # The functions expect a global instance of the actual CLMModeling named # `gcm'. import numpy as np import warnings from . import generic from . generic import compute_reduced_shear_from_convergence __all__ = generic.__all__+['compute_3d_den...
#!/usr/bin/env python # -*- coding: utf-8 -*- from HinetPy import Client from datetime import datetime username = "username" password = "password" client = Client(username, password) starttime = datetime(2017, 1, 1, 0, 0) client.get_waveform('0101', starttime, 20, threads=4)
/****************************************************************************** * * Copyright(c) 2009-2012 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundati...
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2013 Riverbank Computing Limited. ## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of the documentation of the Qt Tool...
/* * Intel MediaSDK QSV encoder utility functions * * copyright (c) 2013 Yukinori Yamazoe * * This file is part of FFmpeg. * * FFmpeg 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 * v...
#! /usr/bin/env python # -*- coding: utf8 -*- ''' Copyright 2018 University of Liège 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 requir...
expected_output = { "vrf": { "default": { "address_family": { "vpnv4 unicast RD 200:1": { "bgp_table_version": 56, "default_vrf": "default", "route_distinguisher": "200:1", "route_identifier": "10.64....
/* * Copyright (C) 2012-2017 alx@fastestcode.org * This software is distributed under the terms of the MIT license. * See the included LICENSE file for further information. */ /* * X Bitmap image file reader. */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <inttypes.h> #include <memory.h>...
from Core.ECS.Entity import Entity from Core.SimpleComponents.NameComponent import NameComponent from Core.Physics.BodyComponent import BodyComponent from Core.Physics.PhysicsComponent import PhysicsComponent from Core.Rendering.SpriteComponent import SpriteComponent from .PlayerMovementComponent import PlayerMove...
# Copyright 2021 Huawei Technologies Co., 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 agreed to...
import SimplePTR from './lib/simplePull'; module.exports = SimplePTR;
import unittest from vmaf.config import VmafConfig, VmafExternalConfig from vmaf.core.asset import Asset from vmaf.core.quality_runner import StrredQualityRunner, PsnrQualityRunner, \ VmafQualityRunner, VmafossExecQualityRunner from vmaf.core.result_store import FileSystemResultStore __copyright__ = "Copyright 201...
function removeElement(element) { element.parentNode.remove(element); } function removeAllChildNodes(ID) { while (ID.hasChildNodes()) { ID.removeChild(ID.firstChild); } } function removeAllChildNodesExceptSpecified(parent, IDNode) { while (parent.firstChild) { parent.removeChild(parent.firstChild); ...
from app import db # These are the association tables needed for the many-many model relationships character_event = db.Table('character_event', db.Model.metadata, db.Column('character_id', db.Integer, db.ForeignKey('character.id')), db.Column('event_id', db.Intege...
import unittest from alerta.database.backends.mongodb.queryparser import \ QueryParser as MongoQueryParser from alerta.database.backends.postgres.queryparser import \ QueryParser as PostgresQueryParser class PostgresQueryTestCase(unittest.TestCase): def setUp(self): self.parser = PostgresQueryP...
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
from django.test import TestCase, override_settings from rest_framework import serializers from dynamic_rest.fields import DynamicHashIdField from dynamic_rest.utils import ( external_id_from_model_and_internal_id, ) from tests.models import Dog @override_settings( ENABLE_HASHID_FIELDS=True, HASHIDS_SAL...
from pymongo import MongoClient from Evie import MONGO_DB_URI, DEV_USERS, OWNER_ID, BOT_ID, SUDO_USERS, tbot, ubot from Evie.events import register from Evie import tbot from Evie.function import is_admin from telethon import events import subprocess import asyncio import traceback import io import os import sys import...
import os import re import time import json import copy import datetime from bson.son import SON import pymongo.errors import name_tools from billy.core import db, settings from billy.importers.names import attempt_committee_match def _get_property_dict(schema): """ given a schema object produce a nested dictio...
/*! * OpenUI5 * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/Device","sap/base/Log","sap/ui/thirdparty/jquery"],function(e,n,o){"use strict";var t={};var i=false;t.init=function(n){var a=o("head");if(!i){i=t...
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.db.sqlalchemy.descriptions import RenderMode from indico.core.settings.converters import ...
from __future__ import unicode_literals import posixpath import unittest from fs import memoryfs from fs.test import FSTestCases from fs.test import UNICODE_TEXT try: # Only supported on Python 3.4+ import tracemalloc except ImportError: tracemalloc = None class TestMemoryFS(FSTestCases, unittest.TestC...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.footerMaxLength = void 0; const ensure_1 = require("@commitlint/ensure"); exports.footerMaxLength = (parsed, _when = undefined, value = 0) => { const input = parsed.footer; if (!input) { return [true]; } return ...
import asyncio import pytest import time from kujenga.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from kujenga.protocols.full_node_protocol import RespondBlock from kujenga.server.server import KujengaServer from kujenga.simulator.simulator_protocol import FarmNewBlockProtocol, Re...
#pragma once #include "skse/NiTypes.h" #include "skse/NiObjects.h" #include "GameCamera.h" class BSFaceGenAnimationData; // B8 class NiNode : public NiAVObject { public: virtual void AttachChild(NiAVObject * obj, bool firstAvail); virtual void DetachChild(UInt32 unk1, NiAVObject * obj); virtual vo...
""" Example sketch to connect to PM2.5 sensor with either I2C or UART. """ # pylint: disable=unused-import import time import board import busio from digitalio import DigitalInOut, Direction, Pull from adafruit_pm25.i2c import PM25_I2C reset_pin = None # If you have a GPIO, its not a bad idea to connect it to the RE...
""" Pashua.py - Interface to Pashua Pashua is an application that can be used to provide some type of dialog GUI for Python and shell applications on Mac OS X. Pashua.py is the glue between your script and Pashua. To learn more about Pashua, take a look at the application's Readme file. Pashua's homepage is www.bluem....
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:16:35 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/EmbeddedA...
from wtforms import Form, BooleanField, StringField, IntegerField from wtforms import validators class CreateBookForm(Form): name = StringField("name", [validators.DataRequired()]) availability = BooleanField("availability", [validators.DataRequired()]) score = IntegerField("score", [validators.DataRequir...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import datetime, timedelta from unittest import TestCase, skipIf try: import pytz except ImportError: pytz = None from django import forms from django.conf import settings from django.contrib import admin from django.contrib.admin ...
import sys; sys.path.append('./') from helper import * from scipy.spatial.distance import cdist from joblib import Parallel, delayed from orderedset import OrderedSet parser = argparse.ArgumentParser(description='Main Preprocessing program') parser.add_argument('-test', dest="FULL", action='store_false') parser....
import React from 'react' import Helmet from 'react-helmet' import { graphql } from 'gatsby' import Layout from '../component/Layout'; import Logo from '../component/Logo'; import PostListItem from '../component/PostListItem' class PostTemplate extends React.Component { getMeta = () => { const { title, ...
n = int(input()) l = [int(input()) for _ in range(int(input()))] c = [i for i in range(1, n+1)] for i in l: cc = [] for a, b in enumerate(c): if (a+1) % i: cc.append(b) c = cc for i in c: print(i)
# 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 app...
import requests from "../utils/requests"; import { useRouter } from "next/router"; function Navbar() { const router = useRouter() return <nav> <div className="flex px-10 sm:px-20 text-2xl whitespace-nowrap space-x-10 sm:space-x-20 overflow-x-scroll scrollbar-hide"> {Object.entries(...
/* * This source code is provided under the Apache 2.0 license and is provided * AS IS with no warranty or guarantee of fit for purpose. See the project's * LICENSE.md for details. * Copyright (C) 2019 Refinitiv. All rights reserved. */ #include "rsslNILoginProvider.h" #include "rsslVASendMessage.h" #include "r...
const requestAction = type => ({ type }); const successAction = (type, result) => ({ type, result }); const failureAction = (type, error) => ({ type, error }); const fetchAction = ([request, success, failure], doFetch) => () => async dispatch => { dispatch(requestAction(request)); try { const resul...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/guicliu/ue_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/guicliu/ue_folder/cmake_targets...
import appConfig from '@shopgate/pwa-common/helpers/config'; import { PROPERTIES_FILTER_BLACKLIST, PROPERTIES_FILTER_WHITELIST, } from '@shopgate/pwa-common-commerce/product/constants'; /** * Reads the setting for product properties whitelisting/blacklisting * and filters the properties accordingly. * @param {A...
/* 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 applicable law or a...
// 引入OSS配置文件 const client = require("../Config/OSSconfig"); // 引入path模块 const path = require("path"); /** * 上传文件到OSS * @param {String} filename 文件名 */ module.exports.uploadOSS = async function put(filename) { try { //object-name可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定...
from collections import defaultdict import fileinput def part1(steps): d = defaultdict(int) for direction, amount in steps: d[direction] += amount return d["forward"] * (d["down"] - d["up"]) def part2(steps): aim, horizontal, depth = 0, 0, 0 for direction, amount in steps: if di...
# Copyright Amazon.com, Inc. or its affiliates. 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 # # Unl...
/* * Web Experience Toolkit (WET) / Boîte à outils de l"expérience Web (BOEW) * wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html */ /* ----- Hungarian dictionary (il8n) --- */ ( function( wb ) { "use strict"; /* main index */ wb.i18nDict = { "lang-code": "hu", "lang-nativ...
/* file: stump_classification_predict.h */ /******************************************************************************* * Copyright 2014-2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a co...
/** * * Synaptics RMI over I2C Physical Layer Driver Header File. * Copyright (c) 2007 - 2011, Synaptics Incorporated * */ /* * This file is licensed under the GPL2 license. * *############################################################################# * GPL * * This program is free software; you can redis...
/* <c14/apply.h> Defines a function which takes a callable thing (such as functions, function objects, lambdas, etc.) and invokes it with the elements of a tuple. For example, if we have a function: void F(int x, double y, const std::string &z) { ... } We can invoke it via: apply(F, make_tupl...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
# 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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
from __future__ import absolute_import, division, print_function import bisect from collections import Iterable, Iterator from datetime import datetime from distutils.version import LooseVersion import operator from operator import getitem, setitem from pprint import pformat import uuid import warnings from toolz imp...
import cgi import re try: import urllib.parse as urlparse except ImportError: import urlparse try: from html import unescape except ImportError: try: from html.parser import HTMLParser except ImportError: from HTMLParser import HTMLParser unescape = HTMLParser().unescape from...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions/index'; import { Link } from 'react-router'; class PostsIndex extends Component{ componentWillMount(){ this.props.fetchPosts(); } render(){ return( <div> <div className="text-xs-right">...
import string def getUser(line): separate = line.split(":", 2) user = separate[1].split("!", 1)[0] return user def getMessage(line): separate = line.split(":", 2) message = separate[2] return message
# 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...
import { __decorate, __metadata, __param } from 'tslib'; import { TransferState, BrowserTransferStateModule } from '@angular/platform-browser'; import { ElementRef, NgZone, Inject, PLATFORM_ID, Input, Output, EventEmitter, Component, NgModule } from '@angular/core'; import DxValidationGroup from 'devextreme/ui/validati...
from fontTools.ttLib import TTFont, newTable from fontTools.ttLib.tables._k_e_r_n import KernTable_format_0, KernTable_format_unkown from fontbakery.checkrunner import INFO, FAIL, WARN from fontbakery.codetesting import (assert_PASS, assert_results_contain, ...
import React from "react"; const SomeComponent = () => ( <div style={{ padding: "1em", margin: "1em", border: "1px solid black", backgroundColor: "#ccc", }} onClick={() => alert("website2 is interactive")} > Header from website 2 </div> ); export default SomeComponent;
static const unsigned int skeet_compressed_size = 8693; static const unsigned int skeet_compressed_data[8696 / 4] = { 0x0000bc57, 0x00000000, 0x48260000, 0x00000400, 0x00010037, 0x000d0000, 0x00030080, 0x54464650, 0x7047834d, 0x26000069, 0x2815822c, 0x4544471c, 0x00270046, 0x200f8232, 0x2c0f8204, 0x2f534f26...
""" Django settings for core project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib im...
// This file is derived from the Cesium code base under Apache 2 license // See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md // import {TILE3D_REFINEMENT, TILE3D_OPTIMIZATION_HINT} from '../constants'; import {Vector3, Matrix4} from 'math.gl'; import {CullingVolume, Intersect, P...
import React, { Fragment } from 'react' import EasyTabs from 'react-tabs-lite' import 'react-tabs-lite/dist/index.css' class App extends React.Component { render() { return ( <Fragment> <EasyTabs defaultSelected={0}> <section dataicon='fas fa-font' title='What is Lorem Ipsum?'> ...
# -*- coding: utf-8 -*- """Implements the label tranformers of the VAEP framework.""" import pandas as pd # type: ignore from pandera.typing import DataFrame import socceraction.spadl.config as spadl from socceraction.spadl.schema import SPADLSchema def scores(actions: DataFrame[SPADLSchema], nr_actions: int = 10) ...
/*========================================================================= Program: Visualization Toolkit Module: vtkControlPointsItem.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softwa...
# Generated by Django 3.0.5 on 2021-03-28 10:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('event', '0001_initial'), ] operations = [ migrations.CreateModel( name='Policy', fi...
from __future__ import print_function # Python 2/3 compatibility import boto3 import json import decimal import csv dynamodb = boto3.resource('dynamodb', region_name='cn-north-1') tableName = 'Movies' table = dynamodb.Table(tableName) with open("moviedata.json") as json_file: movies = json.load(json_file, parse...
// yepnope.js // Version - 1.5.4pre // // by // Alex Sexton - @SlexAxton - AlexSexton[at]gmail.com // Ralph Holzmann - @ralphholzmann - ralphholzmann[at]gmail.com // // http://yepnopejs.com/ // https://github.com/SlexAxton/yepnope.js/ // // Tri-license - WTFPL | MIT | BSD // // Please minify before use. // Also availab...
const letter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ#';
// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.Controls.Native/1.9.0/ImageLoader.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Controls.Native.-118b98c3.h> #include <Uno.IDisposable.h> #include <Uno.Threading.Promise-1.h>...
// eslint-disable-next-line import/no-unassigned-import import 'symbol-observable' import React from 'react' import ReactDOM from 'react-dom' import Root from 'part:@lyra/base/lyra-root' import {AppContainer} from 'react-hot-loader' function render(RootComponent) { ReactDOM.render( <AppContainer> <RootComp...
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/15_callback.hook.ipynb (unless otherwise specified). __all__ = ['Hook', 'hook_output', 'Hooks', 'hook_outputs', 'dummy_eval', 'model_sizes', 'num_features_model', 'has_params', 'HookCallback', 'total_params', 'layer_info', 'module_summary', 'ActivationStats'] ...
const API_URLS = { 1: 'https://api.etherscan.io/api', 3: 'https://api-ropsten.etherscan.io/api', 4: 'https://api-rinkeby.etherscan.io/api', 5: 'https://api-goerli.etherscan.io/api', 42: 'https://api-kovan.etherscan.io/api', 56: 'https://api.bscscan.com/api', 97: 'https://api-testnet.bscscan.com/api', 12...
import collections, os import xlsxwriter try: import dreq import scope_utils import table_utils except: import dreqPy.dreq as dreq import dreqPy.scope_utils as scope_utils import dreqPy.table_utils as table_utils jsh=''' <link type="text/css" href="/css/dreq.css" rel="Stylesheet" /> %s ''' % dreq.dreqMoni...