text
stringlengths
3
1.05M
import React from 'react'; import {Component} from 'react'; import {findDOMNode} from 'react-dom'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; import {store} from '../store'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; store.subscribe(() => { ...
""" Grid+ V3 Communication Module """ import sys import usb.core import logging from SingletonDecorator import Singleton import Settings as stt """ FAN Class - Keep Fan propeties """ class FanState(object): def __init__(self, fan_id): self.fan_id = fan_id self.rpm = 0 self.voltage = 0 ...
'use strict'; const jwt = require('jsonwebtoken'); const config = require('../config/app'); module.exports = (logger, models, passport) => { const BaseController = require('./base')(logger); class UsersController extends BaseController { async signup(req, res, next) { res.json({ ...
class ColorRangeObjectTracking: def __init__(self, camera, range ): self.camera = camera self.range = range def trackObject(self):
from TestInput import TestInputSingleton from autocompaction import AutoCompactionTests from basetestcase import BaseTestCase from couchbase_helper.cluster import Cluster from couchbase_helper.document import View from couchbase_helper.documentgenerator import DocumentGenerator from membase.api.rest_client import RestC...
from typing import Any, Dict, List, Optional, Text from unittest import TestCase from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from covidflow.constants import ACTION_LISTEN_NAME PHONE_TRY_COUNTER_SLOT = "daily_ci_enroll_form_phone_number_error_counter" CODE_TRY_COUNTER_SLOT ...
import React from 'react' import { Link, graphql } from "gatsby" import { css } from "@emotion/core" import { rhythm } from "../utils/grandViewTypography" import PageLayout from '../layouts/PageLayout' const AboutPage = ({ data }) => ( <PageLayout css={css` margin: 0 auto; max-width: 700px; padding: ...
!function(e){function t(t){for(var n,f,i=t[0],l=t[1],a=t[2],c=0,s=[];c<i.length;c++)f=i[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ import React, { useEffect, useRef, useState } from "react"; /* * Import the DEFAULT export from the InteractionContext module - which is actually the InteractionContextProvider * Naming it explicitly for clarity that ...
import { combineReducers } from 'redux'; import authReducer from './authReducer'; import errorReducer from './errorReducer'; import profileReducer from './profileReducer'; export default combineReducers({ auth: authReducer, errors: errorReducer, profile: profileReducer });
/** * Dinky little helper to load html fragments to house React components. * Needs to be replaced with something elegant, for sure. */ var fs = require('fs'); module.exports = { cache: {}, /** * Cached fragments for performance. Means a server-restart is needed on fragment change. * @see http://nodejs.org...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var swarasSchema = new Schema({ song : String, movie : String, type : String, lang : String, cnotes : String, wnotes : String, comment : String, createdDate : Date, lastUpdatedDate : Date, author : { name : String, email : String } }); ...
import collections class DefinitionCollectorMixin: def collect_types(self, service_ast): parent = self.derived_from.resolve_reference(service_ast) if not parent: return () return (self.derived_from.data, ) + parent.collect_types(service_ast) def collect_property_definition...
#include <stdio.h> // Mini interface para Ordenação do Vetor void menuOrdenacao() { printf("\n"); printf("\t\t\t ----------------- \n"); printf("\t\t\t| Ordenacao |\n"); printf("\t\t\t|-----------------|\n"); printf("\t\t\t| 1-Aleatoria |\n"); printf("\t\t\t| 2-Crescente |\n"); printf("\t\t...
#!/usr/bin/env python # -*- coding:utf-8 -*- """ An extension to the standard STScI data model, which defines a means of describing the illumination at a plane within the MIRI instrument. This module is intended to be used by a MIRI simulator for describing the illumination seen by the instrument. :Reference: The...
import math import pyglet from resources import Resources class WorldResources(Resources): def __init__(self): super().__init__() class GroundTiles(pyglet.sprite.Sprite): def __init__(self, index_x, index_y, tile_size=32, screen_x=0, screen_y=0, *args, **kwargs): self.index...
beforeAll(function () { process.env.CONTEXT = 'branch-deploy'; process.env.BRANCH = 'foo-branch'; }); jest.mock('util'); describe('config', () => { describe('load', () => { it('should load valid netlify.toml file', async () => { const { promisify } = require('util'); const readFile = jest.fn( ...
print("=" * 25) print(" 10 TERMOS DE UMA PA") print("=" * 25) a1 = int(input("Primeiro termo: ")) r = int(input("Razão: ")) a10 = a1 + 9 * r for i in range(a1, a10+r , r): print(i, end=" - ") print("Acabou")
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ideapros_llc_synvio_31951.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
/* eslint space-before-function-paren: 0, quotes: 0, spaced-comment: 0, indent: ["error", 4], comma-dangle: 0, padded-blocks: 0, semi: 0 */ /** * @fileoverview Based on padding-line-between-statements * @link https://github.com/eslint/eslint/blob/master/lib/rules/padding-line-between-statements.js */ /** * @fil...
var path = require('path'); var getFile = require('../../get-file'); var run = require('../../run-solution'); exports.problem = getFile(path.join(__dirname, 'problem.md')); exports.solution = getFile(path.join(__dirname, 'solution.md')); exports.fail = getFile(path.join(__dirname, 'troubleshooting.md')); exports.ve...
const fs = require("fs"); const { Ed25519Signature2018, Ed25519VerificationKey2018, } = require("@transmute/ed25519-signature-2018"); const vcjs = require("@transmute/vc.js"); const documentLoader = require("./test/__fixtures__/documentLoader"); const rawKeyJson = require("./test/__fixtures__/keys/key.json"); cons...
import fs from 'fs' // import path from 'path' import LambdaChromeLauncher from './launcher' import { debug, processExists } from './utils' import DEFAULT_CHROME_FLAGS from './flags' const DEVTOOLS_PORT = 9222 const DEVTOOLS_HOST = 'http://127.0.0.1' // Prepend NSS related libraries and binaries to the library path a...
# # ______ _ _ _____ _____ _ _____ _ _ _ _ ___ ______ ___________ _____ # | _ \ | | / ___|_ _/\| |/\_ _| \ | | | | |/ _ \| _ \ ___| ___ \/ ___| # | | | | | | \ `--. | | \ ` ' / | | | \| | | | / /_\ \ | | | |__ | |_/ /\ `--. # | | | | | | |`--. \ | ||_ _|| | | . ` | | | | _ | | | | __|...
/** * 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 <UIKit/UIKit.h> #import <ReactABI35_0_0/ABI35_0_0RCTBridgeDelegate.h> #import <ReactABI35_0_0/ABI35_0_0RCTBridgeModule.h>...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /** * @namespace * @name sap.ui.core.delegate * @public */ // Provides class sap.ui.core.delegate.ScrollEnablement sap.ui.define...
import re, csv from sys import stdin from os import get_terminal_size, path import chardet from time import sleep USE_COLORAMA = False TERMINAL_SIZE = 0 PROGRESS_BAR_LEN = 0 try: TERMINAL_SIZE = (get_terminal_size().columns - 2) if stdin.isatty() else 0 PROGRESS_BAR_LEN = TERMINAL_SIZE - 20 except: pass tr...
//- ---------------------------------- //- 💥 DISPLACY DEMO //- ---------------------------------- 'use strict'; { const defaultText = 'displaCy uses JavaScript, SVG and CSS to show you how computers understand language'; const defaultModel = 'en_core_web_md'; const loading = () => document.body.classList...
""" This is the testing Models """ import binascii import datetime import os import re import uuid from decimal import Decimal from enum import Enum, IntEnum from typing import Union from tortoise import fields from tortoise.exceptions import NoValuesFetched, ValidationError from tortoise.manager import Manager from t...
sap.ui.define([ "sap/ui/core/UIComponent" ], function(UIComponent) { "use strict"; return UIComponent.extend("sapui5.training.helloworld.Component", { metadata : { manifest : "json" }, init : function() { UIComponent.prototype.init.apply(this, arguments)...
import { EventHandler } from '../core/event-handler.js'; import { XRSPACE_VIEWER, XRTYPE_AR } from './constants.js'; import { XrHitTestSource } from './xr-hit-test-source.js'; /** * @class * @name pc.XrHitTest * @augments pc.EventHandler * @classdesc Hit Test provides ability to get position and rotation of ray i...
import axios from 'axios' const list_pools = async () => { return await axios.get('api/list_pools'); }; export default list_pools;
import React, { useState } from 'react'; import { Box, Container, Grid, makeStyles } from '@material-ui/core'; import Page from 'src/components/Page'; import ProjectCard from './ProjectCard'; import data from './data'; const useStyles = makeStyles((theme) => ({ root: { backgroundColor: theme.palette.back...
import os import sys import random from datetime import datetime from os import execl from telethon import TelegramClient, events from telethon.sessions import StringSession from telethon.tl.functions.account import UpdateProfileRequest from telethon.errors import ( ChannelInvalidError, ChannelPrivateError, ...
var classioh_1_1problem_1_1bbob_1_1_schaffers1000 = [ [ "Schaffers1000", "classioh_1_1problem_1_1bbob_1_1_schaffers1000.html#ac958ad7d4f1071d05cd0063ffb6cd692", null ], [ "attach_logger", "classioh_1_1problem_1_1bbob_1_1_schaffers1000.html#aa5380aa06720aa98b93523ba7441f380", null ], [ "calculate_objective",...
/*! * socket.io-node * Copyright(c) 2011 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var fs = require('fs') , url = require('url') , tty = require('tty') , crypto = require('crypto') , util = require('./util') , store = require('./store') , client = re...
const db=require('../models') const User=db.user; const ROLES=db.ROLES checkDuplicateEmailOrUsername=(req,res,next) => { User.findOne({ username: req.body.username, }).exec((err, user) => { if(err) return res.status(500).send({ message:err.message}); if(user){ return res.s...
from core import StateShot, StateManager, get_registers from context import load_project, set_memory_type, get_memory_type, get_debugger, register_debugger, SIMPROCS_FROM_CLE, ONLY_GOT_FROM_CLE, USE_CLE_MEMORY, GET_ALL_DISCARD_CLE, memory_types from abstract_debugger import *
# Copyright (c) 2020-2021, NVIDIA 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
""" This file offers the methods to automatically retrieve the graph Stappia stellulata DSM 5886. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pr...
#!/usr/bin/env python ''' Created on May 1, 2019 @author: gsnyder Wait for scannning results, i.e. after uploading a scan, wait for all the jobs that process the scan results to complete ''' import argparse import arrow import json import logging import sys import time from blackduck.HubRestApi import HubInstance,...
/* * Copyright (C) 2013 Apple Inc. 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 conditions a...
// Copyright 2013 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_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_TEST_UTILS_H_ #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_TEST_UTILS_H_ #includ...
import { initWorkItemsRoot } from '~/work_items/index'; initWorkItemsRoot();
# Copyright (c) 2016 Mirantis, 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...
import React, { PureComponent } from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import OutsideClickHandler from 'react-outside-click-handler' import styled from 'styled-components' import { position, top, right, bottom, left, width, height, } from 'styled-system' import { ...
"""The tests for the MQTT device_tracker discovery platform.""" import pytest from homeassistant.components import device_tracker from homeassistant.components.mqtt.const import DOMAIN as MQTT_DOMAIN from homeassistant.components.mqtt.discovery import ALREADY_DISCOVERED from homeassistant.const import STATE_HOME, ST...
require('normalize.css'); require('./src/global.css'); require('prismjs/themes/prism.css'); require('prismjs/plugins/line-numbers/prism-line-numbers.css'); // const { initI18n } = require('./src/i18n'); // initI18n('ko');
"""Pytest fixtures for credit instrument testing.""" from datetime import date import pandas as pd import pytest from pandas import DateOffset from quantfinpy.data.cashflow.cashflow import Cashflow, FixedRateCashflow from quantfinpy.data.cashflow.schedule import CashflowSchedule from quantfinpy.enum.currency import ...
import pytest import torch import optimal_pytorch.coin_betting.torch as cb @pytest.fixture(autouse=True) def set_torch_seed(): torch.manual_seed(42) yield cb_opt = [ cb.Recursive, cb.ONSBet, cb.Scinol2 ] @pytest.mark.parametrize('optimizer', cb_opt, ids=lambda x: f'{x.__name__}') def test_inva...
/** * 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...
const ERR_400_NAME = "BadRequest"; const ERR_400_MESSAGE = "The request contains a syntax error"; const ERR_401_NAME = "Unauthorized"; const ERR_401_MESSAGE = "To access the requested resource requires authentication"; const ERR_404_NAME = "NotFound"; const ERR_404_MESSAGE = "The resource is not found"; const ERR_409_N...
// 自定义选项将使用默认策略,即简单地覆盖已有值。 // 如果想让自定义选项以自定义逻辑混合,可以向 `Vue.config.optionMergeStrategies` 添加一个函数: Vue.config.optionMergeStrategies.myOption = function (toVal, fromVal) { // return mergedVal } // 对于大多数对象选项,可以使用 `methods` 的合并策略: var strategies = Vue.config.optionMergeStrategies strategies.myOption = strategie...
#!/usr/bin/python3 # -*- coding:utf-8 -*- # __author__ = '__Jack__' from django.urls import reverse, resolve from test_plus.test import TestCase class TestUserURLs(TestCase): def setUp(self): self.user = self.make_user() def test_detail_reverse(self): self.assertEqual(reverse('users:detail'...
import dotenv from 'dotenv'; import minimist from 'minimist'; import path from 'path'; import build from './build/index.js'; import start from './start/index.js'; import release from './release/index.js'; import fly from './fly/index.js'; function main() { const argv = minimist(process.argv.slice(2)); const [ ...
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.h=n():e.h=n()}(self,(function(){return(()=>{var __webpack_modules__={4390:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use stric...
"""This module contains the general information for EquipmentPsuInputStatsHist ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class EquipmentPsuInputStatsHistConsts: MOST_RECENT_FALSE = "false" MOST_RECENT_NO = "no" ...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/iWorkImport.framework/iWorkImport */ @interface TSPExpandedDirectoryPackage : TSPDirectoryPackage + (bool)hasZipArchive; + (bool)isValidPackageAtURL:(id)arg1; - (unsigned long long)encodedLengthForComponentLocator:(id)arg1 isStoredOutsideObj...
import os from easydict import EasyDict as edict import time import torch # init __C = edict() cfg = __C # ------------------------------TEST------------------------ # if train batch=1, use only one GPU!! __C.GPU_ID = [0] # sigle gpu: [0], [1] ...; multi gpus: [0,1] __C.NET = 'VGG16_LCM_REG' # net selection a...
import torch import torch.nn as nn import imp import os current_path = os.path.abspath(__file__) filepath_to_linear_classifier_definition = os.path.join(os.path.dirname(current_path), 'LinearClassifier.py') LinearClassifier = imp.load_source('',filepath_to_linear_classifier_definition).create_model class MClassifie...
##-*- coding: utf-8 -*- #!/usr/bin/python """ Utilities related to Files. """ import os from io import FileIO, BufferedReader, BufferedWriter __author__ = 'SeomGi, Han' __credits__ = ['SeomGi, Han'] __copyright__ = 'Copyright 2015, Python Utils Project' __license__ = 'MIT' __version__ = '1.0.0' __maintainer__ = 'Seom...
import React from 'react'; import { CardElement, injectStripe } from 'react-stripe-elements'; import { Button } from '../../global-styles/styledComponents'; import * as s from './styles'; const createOptions = () => ({ style: { base: { fontSize: '17px', color: 'white', fontFamily: 'Source Cod...
# # 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...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `useStaticQuery`, which allows us to load the ...
const {Pool} = require('pg') module.exports = { user: 'postgres', password: 'postgre', host: 'localhost', port: '5432', database: 'alugacar' }
# coding: utf-8 """ Katib Swagger description for Katib # noqa: E501 OpenAPI spec version: v1beta1-0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from kubeflow.katib.models.v1beta1_suggestion import V1beta1Suggestion...
from setuptools import setup, find_packages # Try to convert markdown README to rst format for PyPI. try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() setup( name='ontraportlib', version...
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { FieldArray } from 'react-final-form-arrays'; import { Accordion, } from '@folio/stripes/components'; import { ServiceAccountListFieldArray } from '../components'; class DirectoryEntryFormServices ...
module.exports = { languages: { en: "English", cn: "简体中文", fr: "Français", ko: "한국어", de: "Deutsch", es: "Español", tr: "Turkish" }, header: { title: "Graphene (石墨烯)钱包", dashboard: "概览", explorer: "浏览", exchange: "交易", ...
from rest_framework.documentation import include_docs_urls from rest_framework.routers import DefaultRouter from django.urls import path,include from .views import * router = DefaultRouter() router.register('label',LableViewSet ,base_name='label') router.register('song',SongViewSet ,base_name='song') router.register...
import control as ctrl import matplotlib.pyplot as plt import numpy as np from {{cookiecutter.project_name}} import parameters as P import {{cookiecutter.project_name}}.hw10.param10 as P from {{cookiecutter.project_name}}.utils import bode from control import TransferFunction as tf Plant = None # PLOT = True PLOT...
/** * Copyright (C) 2021 THL A29 Limited, a Tencent company. * * 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...
//# sourceMappingURL=js-square-icon.d.js.map
webpackHotUpdate("static\\development\\pages\\index.js",{ /***/ "./pages/Navigation.js": /*!*****************************!*\ !*** ./pages/Navigation.js ***! \*****************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_...
// @flow import type { Position } from 'css-box-model'; import type { Critical, DraggableId, DroppableId, DropResult, ItemPositions, AutoScrollMode, Viewport, DimensionMap, DropReason, PendingDrop, Publish, } from '../types'; export type LiftArgs = {| // lifting with DraggableId rather than des...
from tricks import * import sys import os nclasses=8 def myModel(x1,x2): # The XS branch (input patches: 8x8x4) conv1_x1 = tf.layers.conv2d(inputs=x1, filters=16, kernel_size=[5,5], padding="valid", activation=tf.nn.relu) # out size: 4x4x16 conv2_x1 = tf.layers.conv2d(inputs=con...
const path = require("path"); const CopyDirectories = require("./CopyDirectories"); const GenerateHTMLFiles = require("./routes/GenerateHTMLFiles"); const RunScripts = require("./RunScript"); const SitemapGenerator = require("./sitemapGeneration/SitemapGenerator"); const RoutesList = require("./routes/RoutesList"); c...
/** * Event tracking utilities. * * Site Kit by Google, Copyright 2020 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 ...
import json from django.core.urlresolvers import reverse from seahub.base.models import FileComment from seahub.test_utils import BaseTestCase class FileCommentsCountsTest(BaseTestCase): def setUp(self): self.login_as(self.user) self.endpoint = reverse('api2-file-comments-counts', args=[self.repo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_definePr...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # script by Ruchir Chawdhry # released under MIT License # github.com/RuchirChawdhry/Python # ruchirchawdhry.com # linkedin.com/in/RuchirChawdhry """ Define a class 'Rectangle' which can be constructed by length and width. The 'Rectangle' class has a method which can com...
# Copyright 2019-2019 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
from setuptools import setup import codecs import os.path def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, rel_path), 'r') as fp: return fp.read() def get_version(rel_path): for line in read(rel_path).splitlines(): if line.startswith...
import Client from '../../client/index.js'; window.placeSearch = function () { let token = document.getElementById("token").value; let service = document.getElementById("service").value; let endpoint = document.getElementById("endpoint").value; let location = document.getElementById("location").value; let open_n...
# encoding: utf-8 """ Block item container, used by body, cell, header, etc. Block level items are things like paragraph and table, although there are a few other specialized ones like structured document tags. """ from __future__ import absolute_import, print_function from .oxml.table import CT_Tbl from .shared imp...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import numbers import pytest import numpy as np import tifffile import dask.array.utils as dau import dask_image.imread @pytest.mark.parametrize( "err_type, nframes", [ (ValueError, 1.0), (ValueError, 0)...
#ifndef IDC_STATIC #define IDC_STATIC (-1) #endif #define IDR_MENU1 101 #define IDR_ACCELERATOR1 102 #define IDD_VERSIONDIALOG 103 #define IDI_ICON1 104 #define IDSUPPORT 1001 ...
import React from 'react'; import { render, mount } from 'enzyme'; import { patchRandom, unpatchRandom } from '../../../test/patch_random'; import { requiredProps } from '../../../test/required_props'; import { EuiSeriesChart } from '../series_chart'; import { EuiVerticalBarSeries } from './vertical_bar_series'; impor...
class Sources: ''' Sources class to define Sources Objects ''' def __init__(self,id,name,description,url,category,country,language): self.id =id self.name = name self.description = description self.url = url self.category = category self.country = country...
# -*- coding: utf-8 -*- # Copyright (c) 2020 Nekokatt # Copyright (c) 2021-present davfsa # # 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 t...
"""empty message Revision ID: ff3231c4fa76 Revises: Create Date: 2021-12-22 22:54:47.946506 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ff3231c4fa76' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # from __future__ import print_function, absolute_import import numpy import types as pytypes import collections import operator import warnings from llvmlite import ir as lir import numba from numba.six import exec_ from numba import ...
import pandas as pd import numpy as np from preprocess.load_data.data_loader import load_hotel_reserve customer_tb, hotel_tb, reserve_tb = load_hotel_reserve() # 아래 부터 책에 게재 # pd.Categorical로 category형으로 변환 customer_tb['age_rank'] = \ pd.Categorical(np.floor(customer_tb['age']/10)*10) # 마스터 데이터에 '60 이상'을 추가 custome...
a = 1 b = 2 c = 3 nf1 = 1.99 nf2 = 2.87 print nf1 + nf2 class novaClasse(): x = 10 y = 10 def func1(self): return 1 + 1 def func2(self): return self.x + self.y if a > 0: if b > 0: print "hello world" else: print "hello" ' ' 'world' '\"escape\"' c = ...
this.Ninja.module('$history', ['$controller', '$curry', '$dispatcher'], function ($controller, $curry, $dispatcher) { window.onpopstate = function(event) { $dispatcher.trigger('pageChange', event.state); $controller.controller = event.state.controller; $controller.action = event.state.acti...
# Copyright (c) 2017 Sony 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Natural Language Toolkit: Combinatory Categorial Grammar # # Copyright (C) 2001-2012 NLTK Project # Author: Graeme Gange <ggange@csse.unimelb.edu.au> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import re from collections import defaultdict from nltk.ccg.api import PrimitiveCategory, Dir...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup script for anyblok-background-tasks""" from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import List import os from setuptools import find_packages, setup version: str = "0.1.0" here: str = os.path.abspath(os.path.dirname(__file__)) with open(...
/* * Copyright 2017 Palantir Technologies, 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 req...