text
stringlengths
3
1.05M
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
# -*- coding: utf-8 -*- """ pyeasyga module Copyright (c) 2014, Ayodeji Remi-Omosowon All rights reserved. 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 th...
/* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is 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/ This fi...
$(function() { var getFirstImg = null; var names = []; var count = 1; //to upload cover pic of element $('body').on('change', '.uploadPic', function(event) { var files = event.target.files; var output = $(this).parents('li').find('.uploadInputPrev'); var _parent = $(this).p...
#ifndef __POINT_H__ #define __POINT_H__ #include <math.h> #include <vector> #include <memory> class Edge; using EdgePtr = std::shared_ptr<Edge>; class Point { public: float x = 0.0f; float y = 0.0f; Point(float _x, float _y) : x(_x), y(_y) { } Point(const Point &other) : x(other.x), y(other....
/* * logutl.c --- logging module for websh3 -- helpers * nca-073-9 * * Copyright (c) 1996-2000 by Netcetera AG. * Copyright (c) 2001 by Apache Software Foundation. * All rights reserved. * * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL WA...
# Generated by Django 4.0.2 on 2022-02-23 16:38 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_m...
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 12, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12);
''' Test idlelib.tree. Coverage: 56% ''' from idlelib import tree from test.support import requires requires('gui') import unittest from tkinter import Tk class TreeTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.root = Tk() cls.root.withdraw() @classmethod def tearDo...
"use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", { value: true }); var styling_1 = require("@uifabric/styling"); function initializeIcons(baseUrl, options) { if (baseUrl...
/*global define*/ define(['angular'], function (angular) { "use strict"; var directiveInit = function ($parse) { return { link: function (scope, element, attrs) { var attr = attrs.initFromForm || attrs.ngModel || element.attrs('name'), val = attrs.value; $parse(attr).assig...
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py
""" Mirror object to create prisms and perform reflections """ import numpy as np from .quaternion import Quaternion planes = {'xy': ([0, 0, 0], [1, 0, 0], [1, 1, 0]), 'xz': ([0, 0, 0], [1, 0, 0], [1, 0, 1]), 'yx': ([0, 0, 0], [0, 1, 0], [1, 1, 0]), 'yz': ([0, 0, 0], [0, 1, 0], [0, 1, 1]...
//===-- HeaderMapCoolector.h - find all symbols------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
from string import ascii_lowercase # source: https://exercism.io/tracks/python/exercises/pangram/solutions/4b7a98e2e756491c9577debae86ac305 def is_pangram(sentence): return set(sentence.lower()) >= set(ascii_lowercase)
import sys import pandas as pd from tensorflow.keras.preprocessing import sequence from gensim.corpora import Dictionary import spacy nlp = spacy.load('en') dictionary = Dictionary.load('/home/harsha/github/text-classifier/utils/dictionary') inputString = sys.argv[1] df = pd.DataFrame() df['input'] = pd.DataFrame...
'use strict'; var bigAcsch = require('../../util/bignumber').acosh_asinh_asech_acsch; function factory (type, config, load, typed) { var collection = load(require('../../type/matrix/collection')); var asinh = typed.find(load(require('./asinh')), ['Complex']); /** * Calculate the hyperbolic arccosecant of a ...
/** * Created by lkurniawan on 08/12/2016. */ var pathname = window.location.href; var patch = "http://localhost/inventory_staging/user/form_request.html"; if(pathname === patch){ //alert("alert ini page request"); page=0; $.ajax({ type:"POST", url: "ajax/checkTemp.php", data:{ ...
import csv import pandas as pd import requests import sys import toml with open('./data-updater/patients/config.toml', 'r', encoding='utf-8') as f: config: dict = toml.load(f)['fetch'] res = requests.get(config['src']) if res.status_code == 200: dfs = pd.read_html(res.url) for i in config['table']: ...
/** * The external dependencies. */ import { shallow } from 'vue-test-utils'; import { createRenderer } from 'vue-server-renderer'; /** * The internal dependencies. */ import BaseIcon from 'components/base-icon'; describe('BaseIcon', () => { let wrapper, renderer; beforeEach(() => { wrapper = shallow(BaseIco...
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { surahType } from 'types'; import GlobalSidebar from '../index.js'; const GlobalSidebarSurah = ({ ...props, surah, ayahIds }) => ( <GlobalSidebar {...props} settingsModalProps={{ surah, ayahIds }} /> ); GlobalSidebarSurah.prop...
#!/usr/bin/env python3 # PYTHON_ARGCOMPLETE_OK # Copyright (C) 2019 GreenWaves Technologies # All rights reserved. # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. '''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy aft...
// @flow import React, { Component } from 'react'; import { getAvailableDevices } from '../../../base/devices'; import { DialogWithTabs, hideDialog } from '../../../base/dialog'; import { connect, toState } from '../../../base/redux'; import { isCalendarEnabled } from '../../../calendar-sync'; import { DeviceSele...
const fs = require('./file-system'); function definedEnvironments() { let envs = []; // read user defined environment files let files; try { files = fs.readdirSync('aurelia_project/environments'); } catch (e) { // ignore } files && files.forEach(file => { const m ...
import json from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.template import Context from django.template.loader import get_template from ui.admin.models import user_to_workspace, job @login_required def main(request): """ Renders the main Admin dashboar...
from optimization.gradient_descent import gradient_descent from optimization.gradient_descent import ConstantExpression from optimization.gradient_descent import Multiply from optimization.gradient_descent import MultiVariableFunction from optimization.gradient_descent import PolynomialExpression from optimization.grad...
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] def caesar(start_text, shift_amount, cipher_dir...
# coding: utf-8 """ Pure Storage FlashBlade REST 1.9 Python SDK Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.9 Contact: i...
// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include <cstdint> #include <string> #include <stdexcept> #include <ABI14_0_0jschelpers/ABI14_0_0noncopyable.h> namespace facebook { namespace ReactABI14_0_0 { class JSModulesUnbundle : noncopyable { /** * Represents the set of JavaScript m...
/* * ARM Cortex-M4F Synthesizer * * Copyright (c) 2017 Terence M. Darwen - tmdarwen.com * * The MIT License * * 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, inc...
const Config = require('./Config'); const Player = require('./Player'); module.exports = class { config = null; player = null; constructor() { this.render = this.render.bind(this); this.config = Config.getInstance(); this.player = new Player(); this.player.on('mess...
import os import tempfile import shutil import tests.unit.cli.commands.command_testing as command_testing import lmctl.drivers.lm.base as lm_drivers import lmctl.cli.commands.infrastructure_key as infrastructure_key_cmds from unittest.mock import patch from tests.common.simulations.lm_simulator import LmSimulator clas...
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Date: 2021/11/16 20:40 Desc: 艺恩-艺人 艺人商业价值 艺人流量价值 https://www.endata.com.cn/Marketing/Artist/business.html """ import json import os import datetime import pandas as pd # type: ignore import requests from py_mini_racer import py_mini_racer # type: ignore def _get_js_...
import yaml import os from copy import copy, deepcopy from typing import List, Optional, Tuple, Union from ..character.characterKernel import GearedCharacter, JobGenerator from ..gear import Gear, GearBuilder, GearType, GearPropType, Scroll, eval_set_item_effect from ..jobs import job_branch_list from ..kernel.core.mo...
import 'tui-image-editor/dist/tui-image-editor.css'; import 'tui-color-picker/dist/tui-color-picker.css'; import { ImageEditor } from '../src/index'; export default { title: 'ImageEditor', }; const options = { includeUI: { loadImage: { path: 'img/sampleImage2.png', name: 'sampleImage2', }, ...
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. * * MPLS CLI commands */ #include <appl/diag/system.h> #include <appl/diag/parse.h> #include <shared/bsl.h> #inc...
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Converts any PNG, JPG or JPEG to WEBP, using Google's cwebp conversion tool: # https://developers.google.com/speed/webp/ # # Sample usage: # webp-conv -s /path/to/pics/ -q 80 --remove # # Copyright 2017 llobile # Licensed under the Apache License, Version 2.0 (the "Li...
from __future__ import print_function import re import sys from pyspark import SparkConf,SparkContext from pyspark.streaming import StreamingContext from pyspark.sql import Row, SparkSession,SQLContext def assign(w): words = re.split(r',',w) for i in words: yield (i,1) def process_rdd(time, rdd): ...
from pytpp.attributes._helper import IterableMeta, Attribute from pytpp.attributes.application_base import ApplicationBaseAttributes class CiscoCSMAttributes(ApplicationBaseAttributes, metaclass=IterableMeta): __config_class__ = "CiscoCSM" create_chain_trustpoints = Attribute('Create Chain Trustpoints') create_new...
from django.urls import path from . import views from meta_redirect.views import MetaRedirectView app_name = 'myapp' urlpatterns = [ path('', MetaRedirectView.as_view(redirect_url='generic-view.html')), path('generic-view.html', views.CreateView.as_view(), name='generic-view'), path('generic...
# Python import os import sys import traceback # Pycompss from pycompss.api.task import task from pycompss.api.parameter import FILE_IN, FILE_OUT # Adapters commons pycompss from biobb_adapters.pycompss.biobb_commons import task_config # Wrapped Biobb from biobb_ml.utils.drop_columns import DropColumns # Importing cla...
import sirv from 'sirv'; import polka from 'polka'; import compression from 'compression'; import * as sapper from '@sapper/server'; import { createReadStream } from 'fs'; const { PORT, NODE_ENV } = process.env; const dev = NODE_ENV === 'development'; polka() // You can also use Express .get('/repl/local/*', getFil...
//>>built define("dojox/widget/nls/el/Wizard",({next:"Επόμενο",previous:"Προηγούμενο",done:"Ολοκλήρωση"}));
from nltk.corpus import wordnet from nltk.tokenize import word_tokenize from random import randint import nltk.data class Replacer(object): def __init__(self, text): self.text = text self.output = "" def tokenize(self): # Load the pretrained neural net tokenizer = nltk.data.l...
/* * Copyright (C) 2009 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 conditi...
(function (lib, img, cjs, ss, an) { var p; // shortcut to reference prototypes lib.ssMetadata = []; // symbols: // helper functions: function mc_symbol_clone() { var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop)); clone.gotoAndStop(this.currentFrame); clone.paused = this...
from dataclasses import dataclass from bindings.csw.abstract_coordinate_system_type import AbstractCoordinateSystemType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class CartesianCstype(AbstractCoordinateSystemType): """A 1-, 2-, or 3-dimensional coordinate system. Gives the position of points r...
import regex import matplotlib.pyplot as pyplot import seaborn from datetime import datetime seaborn.set() index_meta = { 'enumerator': [ 'ik', 'wij', 'we', 'me', 'mij[n]', 'ons', 'onze' ], 'denominator': [ 'ik', 'wij', 'we', 'me', 'mij[n]', 'ons', 'onze', 'hij', 'zij', 'ze', 'je', 'jou[w]', 'haar', 'zijn', '...
import React, { useState, useEffect, useCallback } from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql, Link } from "gatsby" import SplitText from "../components/splittext" import PageUp from "../components/page-up" import { useAuth } from "gatsby-theme-firebase" import navbar from "./na...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 21 21:01:31 2021 @author: juan """ import numpy as np import math from matplotlib import pyplot as plt A_x = np.loadtxt('/home/juan/Documents/Aerodynamics_Course_GW/AeroPython/lessons/resources/NACA0012_x.txt') A_y = np.loadtxt('/home/juan/Documen...
# Generated by Django 3.1 on 2020-08-09 12:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movies', '0001_initial'), ] operations = [ migrations.AddField( model_name='movie', name='year', field=mod...
/** @file A brief file description @section license License 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 und...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.forms.formsets import BaseFormSet, formset_factory from collections import OrderedDict as SortedDict from bootstrap3.tests import TestForm from mongodbforms import * RADIO_CHOICES = ( ('1', 'Radio 1'), ('2', ...
const { AwsCdkConstructLibrary, GithubWorkflow } = require('projen'); const PROJECT_NAME = 'cdk-gitlab-runner'; const PROJECT_DESCRIPTION = 'A Gitlab Runner JSII construct lib for AWS CDK'; const AUTOMATION_TOKEN = 'AUTOMATION_GITHUB_TOKEN'; const project = new AwsCdkConstructLibrary({ name: PROJECT_NAME, descrip...
const arr1 = [1,2,3]; const arr2 = ["one", 2, "three"]; const arr3 = [[1,2,3], ["one", 2,"three"]]; const arr4 = [ { name: "Fred", type: "object", luckyNumbers = [5,7,13]}, [ { name: "Susan", type: "object" }, { name: "Anthony", type: "object" }, ], 1, function() { return "arrays can contain functions too"; }, "three",...
""" Base decorator support. Making each piece in ``wired.components`` into a decorator is essential to adoption. People don't want to wire things together. Let's make it easy to write custom dataclass-DI-style decorators, then provides some. """ from .models import BaseDecorator __all__ = [ 'BaseDecorator', ]
import React, { Component } from 'react'; import AddTodo from './AddTodo'; import VisibleTodoList from './VisibleTodoList'; import Footer from './Footer'; class TodoApp extends Component { render() { return( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ); } }; export default To...
#pragma once // Copyright 2014 fotono Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "bucket/FutureBucket.h" #include "overlay/fotonoXDR.h" #include "xdrpp/me...
#!/usr/bin/env python if __name__ != '__main__': raise ImportError(u"%s may only be run as a script" % __file__) import gflags gflags.DEFINE_string('address', u"localhost:1984", u"Address clients will connect to") gflags.DEFINE_string('dbaddress', u"localhost:1984", u"Network address bac...
from django.urls import path from anchor.users.views import ( LoginView, user_detail_view, user_list_view, user_redirect_view, user_update_view, ) app_name = "users" urlpatterns = [ path("", view=user_list_view, name="list"), path("login/", view=LoginView.as_view(), name="login"), path...
import unittest import numpy as np from numpy.testing import assert_equal, assert_raises from .utils import assert_not_equal from evolvepy.generator import Generator, Descriptor, FirstGenLayer, Block from evolvepy.generator.mutation import NumericMutationLayer, sum_mutation from evolvepy.callbacks import Increment...
/* Copyright 2020-2021 Lowdefy, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
#!/usr/bin/env python import sys, os, argparse import pdb from .agglo import Rag from .imio import read_image_stack from .morpho import juicy_center from numpy import zeros, bool, hstack, vstack, newaxis, array, savetxt from scipy.ndimage.filters import median_filter, gaussian_filter from scipy.ndimage.measurements im...
import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import numpy as np device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") # Assuming that we are on a CUDA ma...
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Resea...
const path = require('path'); const user = require("./user"); const { postBanner } = require("./fetch"); const notifier = require('node-notifier'); const fs = require("fs"); var open = require('open'); async function postIt(T1) { try { console.log('fetching banner ....'); let base64 = fs.readFileSy...
class Solution(): ''' DFS operating on an ADJACENCY MATRIX This algorithm is the same as a landfill: Counting the number of connected components. ''' def dfs(self, M, i): # i refers to the ith row in the adjacency matrix for j in range(len(M[0])): #iterate through friends list of I ...
#ifndef NODELIBCURL_MAKEUNIQUE_H // NOLINT(legal/copyright) #define NODELIBCURL_MAKEUNIQUE_H #if defined(_MSC_VER) && _MSC_VER < 1800 // http://stackoverflow.com/a/13883981/710693 #include <memory> // brings in TEMPLATE macros. #define _MAKE_UNIQUE(TEMPLATE_LIST, PADDING_LIST, LIST, COMMA, X1, X2, X3, X4) \ ...
from datetime import datetime from fastapi.testclient import TestClient import pytest from itunesdb.web import crud from itunesdb.web import database from itunesdb.web import models from itunesdb.web import schemas from itunesdb.web.database import InitializedDB from itunesdb.web.main import app from itunesdb.web.mai...
module.exports = { '/': { 'title': 'Releases - KawAnime', 'description': 'Latest anime releases.', 'keywords': 'download, releases, animes' }, '/downloader': { 'title': 'Downloader - KawAnime', 'description': 'Download animes!', 'keywords': 'download, animes' }, '/torrenting': { 't...
""" WSGI config for snow_birder project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
// @flow import type { FeatureCollection } from '../../../src/geojson-types.js'; import { createPointerDragEvent, createPointerMoveEvent, getMockFeatureDetails, FeatureType, mockedGeoJsonProperties, mockNonPickedHandle } from '../test-utils.js'; export function mockHandleStartDragging( handler: { [key: ...
# pylint: disable=missing-docstring from os.path import join from resolwe.test import tag_process from resolwe_bio.utils.test import BioProcessTestCase, skipUnlessLargeFiles class AmpliconProcessorTestCase(BioProcessTestCase): @tag_process('align-bwa-trim') def test_bwa_trim(self): with self.prepara...
import json import os import torch from torch import nn from asteroid import torch_utils from asteroid import torch_utils from asteroid_filterbanks import Encoder, Decoder, FreeFB from asteroid.masknn.recurrent import SingleRNN from asteroid.engine.optimizers import make_optimizer from asteroid.masknn.norms import Glo...
// import wrapWithProvider from "./wrap-with-provider" // export const wrapRootElement = wrapWithProvider export { default as wrapRootElement } from './wrap-with-provider';
module.exports = function(messageObj, session, send, finished) { let userDoc = this.db.use('demoVitals', 'by_id', messageObj.params.id); let record = userDoc.getDocument(true); if (!record.gender) record.gender = 'x'; if (!record.userType) record.userType = 'x'; if (!record.roles) record.roles = ['doctor']; ...
/* eslint-disable no-use-before-define */ import { getBlocknativeData, getEtherscanData, getEGSData, debounce, } from "./utils.js"; const DECIMALS_WEI = 1e18; const DECIMALS_GWEI = 1e9; chrome.alarms.onAlarm.addListener(async ({ name }) => { if (name === "fetch-prices") fetchPrices(); }); chrome.storage.o...
##------------------------------------------------------------------- """ Given the capacity, source and sink of a graph, computes the maximum flow from source to sink. Input : capacity, source, sink Output : maximum flow from source to sink Capacity is a two-dimensional array that is v*v. capacity[i][j] implies the ca...
// User.js class User { constructor(jsonUser, policies) { this.id = jsonUser.id; this.name = jsonUser.name; this.email = jsonUser.email; this.balance = jsonUser.balance; this.policies = policies; } } export default User;
""" Author: Jeffeb3 Author Link: https://stackoverflow.com/users/1046418/jeffeb3 License: CC BY-SA 3.0 Date: 2014-09-05 12:10:40 Answer Url: http://stackoverflow.com/questions/2572582/25690011#25690011 """ __title__ = "Return a list of imported Python modules used in a script?" __version__ = "1.0.0" __author__ = "Jeff...
import React from 'react'; import YouTube from 'react-youtube'; import classnames from 'classnames'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import CardMedia from '@material-ui/core/CardMedia'; import Button from '@material-ui/core/Button';...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:53:49 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/AnnotationKit.framework/AnnotationKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
import BasicRequestHelper from suds.client import Client from datetime import datetime class FinderServiceCalls(): """This class contains examples of consumer methods for each StaffService method.""" """AddOrUpdateFinderUsers Methods""" def AddOrUpdateFinderUsers(self, partnerId, ...
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os.path import re import sys import os from time import sleep from time import gmtime, strftime import numpy as np import datetime import subprocess import base64 ...
""" A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) setup( name='dts', ...
var BaseDataAdapter = require("./base.js"); var DataNode = require("../../xflow/interface/graph.js").DataNode; var XC = require("../../xflow/interface/constants.js"); var Events = require("../../interface/notification.js"); var AdapterHandle = require("../../base/adapterhandle.js"); /** * DataAdapter handling a <data...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Phantomjs SVG retriever Usage: phantom_svg_retriever.py web phantom_svg_retriever.py no_server <url> <dom_id> phantom_svg_retriever.py no_server <url> <dom_id> <image_name> phantom_svg_retriever.py (-h | --help) phantom_svg_retriever.py --version Options: ...
from tri_declarative import ( dispatch, EMPTY, ) class Errors: @dispatch( attrs=EMPTY, ) def __init__(self, *, parent, attrs, template=None): self._parent = parent self.attrs = attrs self.template = template self.iommi_style = None def __str__(self): ...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import <objc/NSObject.h> #import "NotificationProvider-Protocol.h" @class NSMutableDictionary; @protocol NotificationProviderDelegate, OS_dispat...
import React, { Component } from 'react' import PropTypes from 'prop-types' import c from 'classnames' import { isValidDomainName, isValidAddress, isValidAddressHead } from '../../../../helpers/utils/util' import { ellipsify } from '../../send.utils' import debounce from 'debounce' import copyToClipboard from 'copy-to...
from injector import inject from domain.operation.execution.adapters.connection.FileAdapter import FileAdapter from domain.operation.execution.adapters.connection.QueueAdapter import QueueAdapter from domain.operation.execution.services.OperationCacheService import OperationCacheService from infrastructor.connection.a...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Party.logo' db.add_column(u'mks_party', 'logo', self.gf('django.db.mod...
# ------------------------------------------------------------------------------ # 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.a...
"""Unit test for the analysis module""" from floodsystem.analysis import polyfit import numpy as np a, b, c = 3, 5, 9 train_dates = np.arange(0, 12) train_levels = a * np.square(train_dates) + b * train_dates + c def test_polyfit(): poly, d0 = polyfit(train_dates, train_levels, 3, False) test_dates = np.ar...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var _16 = { "elem": "svg", "attrs": { "xmlns": "http:/...
"""bookmanager2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-...
/*------------------------------------------------------------------------- * * joinpath.c * Routines to find all possible paths for processing a set of joins * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * *...
/* Highstock JS v8.0.1 (2020-03-02) Data grouping module (c) 2010-2019 Torstein Hnsi License: www.highcharts.com/license */ (function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/modules/datagrouping",["highcharts"],functi...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
// File: $Id$ // Author: John Wu <John.Wu at acm.org> Lawrence Berkeley National Laboratory // Copyright (c) 2000-2017 the Regents of the University of California #ifndef IBIS_UTIL_H #define IBIS_UTIL_H ///@file /// Defines minor utility functions and common classes used by /// FastBit. /// #include "const.h" #include...