text stringlengths 3 1.05M |
|---|
import { expect } from 'chai';
import sinon from 'sinon';
import load from '../widget/load';
describe('widget load', () => {
afterEach(() => {
if ('restore' in Math.random) {
Math.random.restore(); // reset the Math.random fixture
}
});
describe('successful', () => {
beforeEach(() => {
s... |
const state = {
config: {
googleMaps: {
apiKey: 'AIzaSyA7PA38yK-eREk4fjhMtoxB7m3C9zMRxRE'
},
windowMatchSizeLg: '(min-width: 992px)',
},
isLoading: true
}
export default {
state
}
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-08-23 20:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0017_auto_20160822_1913'),
]
operations = [
migrations.AlterModelOptions(
... |
# Generated by Django 4.0.3 on 2022-03-09 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='USState',
fields=[
('id', models.BigAutoFie... |
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface NSObject (Category)
@property (nonatomic, strong, readonly) NSMutableArray *associatedObjectNames;
/**
* 为当前object动态增加分类
*
* @param propertyName 分类名称
* @param value 分类值
* @param policy 分类内存管理类型
*/
- (void)objc_setAssociatedObject:(NSSt... |
#!/usr/bin/env python3
""" This module tries to retrieve as much platform-identifying data as
possible. It makes this information available via function APIs.
If called from the command line, it prints the platform
information concatenated as single string to stdout. The output
format is useable as pa... |
import Ember from 'ember';
import { alias, sort, oneWay } from 'ember-decorators/object/computed';
import { dropTask } from 'ember-concurrency-decorators';
import OLIPersistence from 'aeonvera/mixins/registration/order-line-item-persistence';
const { inject } = Ember;
export default Ember.Controller.extend(OLIPersis... |
# import unittest
# from d3m import container, utils
# from d3m.metadata import base as metadata_base
# from tods.detection_algorithm.Telemanom import TelemanomPrimitive
# class TelemanomTest(unittest.TestCase):
# def test_basic(self):
# self.maxDiff = None
# main = container.DataFrame({'a': [1.,... |
import React, {useState, useEffect, useContext } from 'react'
import { Form, Input, FormGroup } from 'reactstrap'
import PerfectScrollbar from 'react-perfect-scrollbar'
import 'react-perfect-scrollbar/dist/css/styles.css'
import Send from '../../svg/paper-plane.svg'
import Plus from '../../svg/plus.svg'
import ChatRoom... |
import argparse
import copy
import neuro_shooting.command_line_execution_tools as ce
import os
import glob
def setup_cmdline_parsing(cmdline_type='simple_functional_mapping',cmdline_title=None):
if cmdline_title is None:
cmdline_title = cmdline_type
supported_types = ['simple_functional_mapping','sim... |
import unittest
import itertools
import pytest
import numpy
from csep.core.regions import CartesianGrid2D, compute_vertex, compute_vertices, _bin_catalog_spatio_magnitude_counts, \
_bin_catalog_spatial_counts, _bin_catalog_probability, Polygon
class TestPolygon(unittest.TestCase):
def setUp(self):
... |
import nipype.pipeline.engine as pe
from dmriprep.workflows.dwi.conversions.nii_to_mif.configurations import (
INPUT_NODE_FIELDS,
LOCATE_ASSOCIATED_KWARGS,
OUTPUT_NODE_FIELDS,
)
from dmriprep.workflows.dwi.conversions.nii_to_mif.utils import (
locate_associated_files,
)
from nipype.interfaces import mrt... |
export const navigation = {
home: "/",
login: "/login",
registration: "/registration",
movies: "/movies",
moviesFavorite: "/movies/favorite",
actors: "/actors",
};
|
const mongoose =require("mongoose");
const Schema = mongoose.Schema;
const blogSchema= new Schema ({
title:{
type:String,
require:true,
},
short : {
type:String,
require:true,
},
long :{
type :String,
require:true
}
},{timestamps:true});
const... |
import {
signUp,
sendEmailVerification,
logIn,
logOut,
deleteUser,
reauthenticateUser,
facebookLogIn,
googleLogIn,
twitterLogIn
} from '@/services/auth'
import { actionCodeSettings } from '@utils/auth'
import {
SIGNUP_USER,
LOGIN_USER,
LOGOUT_USER,
DELETE_USER,
REAUTHENTICATE_USER,
SIGNU... |
import numpy as np
import sys
sys.path.append('./../')
from scipy import signal as spsp
from scipy import special as spspes
from scipy import linalg as spla
from matplotlib import pyplot as plt
from copy import deepcopy
import h5py
from w3t._exp import Experiment
from w3t._functions import group_motions
#from ._exp i... |
/* P U L L B A C K C U R V E . H
* BRL-CAD
*
* Copyright (c) 2011-2022 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version ... |
# -*- coding: utf-8 -*-
"""
space-whiskey.library
~~~~~~~~~~~~~~
:copyright: © 2018 by Phil Royer.
:license: BSD, see LICENSE for more details.
"""
import pygame
import logging
import utils
import json
from game import *
class Library:
def __init__(self, screen, messages):
self.screen = scr... |
# -*- coding: utf-8 -*-
'''
Return/control aspects of the grains data
'''
# Import python libs
from __future__ import absolute_import
import collections
import math
# Import salt libs
import salt.utils
import salt.utils.dictupdate
from salt.exceptions import SaltException
# Import 3rd-party libs
import salt.ext.six ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_layers_twotone = void 0;
var ic_layers_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M0 0h24v24H0V0z",
"fill": "none"
},
"children": []
}, {
"name": "p... |
"""Emoji
Available Commands:
.emoji shrug
.emoji apple
.emoji :/
.emoji -_-"""
from telethon import events
import asyncio
@borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 1
animation_ttl = range(0, 19)
... |
define([
'Underscore',
'views/topBarViewBase',
'text!templates/purchaseOrders/TopBarTemplate.html',
'constants'
], function (_, BaseView, ContentTopBarTemplate, CONSTANTS) {
'use strict';
var TopBarView = BaseView.extend({
el : '#top-bar',
contentType : CONSTANTS.PURC... |
"""mochad conftest."""
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
import _plotly_utils.basevalidators
class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="startlinecolor", parent_name="carpet.baxis", **kwargs
):
super(StartlinecolorValidator, self).__init__(
plotly_name=plotly_name,
... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
class App extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
tasks: []
};
// bind
this.handleChange = this.handleChange.bind(this);
... |
const isProd = process.env.NODE_ENV === 'production';
module.exports = {
API_HOST: isProd ? 'https://example.com/1' : 'http://localhost:3000/1'
} |
# 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... |
import store from './../store';
import axios from 'axios';
axios.defaults.withCredentials = true;
// axios.defaults.baseURL = process.env.MIX_APP_URL;
const client = axios.create({
baseURL: '/api/v1/',
});
client.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
const configHandler = (config) => {
... |
# 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 math
import cv2 as cv
import numpy as np
from PIL import Image
from align_faces import get_reference_facial_points, warp_and_crop_face
from config import image_h, image_w
from mtcnn.detector import detect_faces
def align_face(img_fn, facial5points):
raw = cv.imread(img_fn, True)
facial5points = np.re... |
class Response:
def __init__(self, status_code: int = 200, headers: dict = None, body: str = ''):
self.status_code = status_code
self.headers = {}
self.body = b''
self._set_base_headers()
if headers is not None:
self._update_headers(headers)
self._set_bod... |
#!python
# pyright: reportUnknownVariableType=false, reportUnknownMemberType=false
"""
This is the final pre-training application that takes the original images
and cuts them into 224x224 sub-images, saving the tens of thousands
of sub-images into `true` and `false` sub-folders according to the
tagging data from `anima... |
/*
* Copyright 2015-2019 The OpenZipkin 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 a... |
/*!
ARIA Radio Generator R2.3
Copyright 2010-2016 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
$A.RadioGroup=function(i,e,t,a,n){function r(i,e){isNaN(i)&&(i=0);for(var t=0;t<d.radios.length;t+... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = (0, _createIcon["defaul... |
//===--- Cuda.h - Cuda ToolChain Implementations ----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
import logger from "../lib/logger";
export default (client) => {
logger.success(`${client.user.tag} succesfully online!`);
};
|
from src.augmented_reality_service import AugmentedRealityService
if __name__ == "__main__":
# Starting AR Service
ar_service = AugmentedRealityService()
ar_service.set_service_parameter_json("data/aruco_params.json")
#ar_service.set_service_parameter_json("data/nft_params.json")
ar_service.run_... |
import streamlit as st
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pickle
#Load-Model
classifier = pickle.load(open('dtrmodel.pkl','rb'))
#Page-Design
title = '<h2 style="font-family:arial; color:black; font-size: 47px;text-align:center;"><b>Pre-owned Car Price Prediction</b></h2>'
s... |
# Copyright Contributors to the Tapqir project.
# SPDX-License-Identifier: Apache-2.0
import os
import setuptools
import versioneer
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
VERSION = """
# This file is auto-generated with the version information during setup.py installation.
__version__ = '{}'
"""
... |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import six
import re, copy, os, subprocess
import frappe
from frappe import _
from frappe.utils import now, cint
from frappe.model import no_value_fields, default_fields, data_... |
import argparse
from itertools import chain
from typing import List
from matchms import Spectrum
from matchms.exporting import save_as_msp
from matchms.importing import load_from_msp
def read_spectra(filenames: str) -> List[Spectrum]:
"""Read spectra from files.
Args:
filenames (str): Paths to MSP f... |
angular.module('ui.utils', [
'ui.event',
'ui.format',
'ui.highlight',
'ui.include',
'ui.indeterminate',
'ui.inflector',
'ui.jq',
'ui.keypress',
'ui.mask',
'ui.reset',
'ui.route',
'ui.scrollfix',
'ui.scroll',
'ui.scroll.jqlite',
'ui.showhide',
'ui.unique',
'ui.validate'
]);
|
//----------------------------------------------------------------------------
// electron-vibrancy
// Copyright 2016 arkenthera
//
// 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 So... |
'use strict';
exports.__esModule = true;
exports.RootCloseWrapper = exports.Transition = exports.Position = exports.Portal = exports.Overlay = exports.Modal = exports.AutoAffix = exports.Affix = undefined;
var _Affix2 = require('./Affix');
var _Affix3 = _interopRequireDefault(_Affix2);
var _AutoAffix2 = require('./... |
if(document.URL.includes('web.whatsapp.com') == true){
console.log('script added')
var p=setInterval(function(){
// console.log('1st setInterval')
if(document.querySelectorAll('.DuUXI')[0]){
var t=setInterval(function(){
// console.log('setting again')
document.querySelectorAll('.DuUXI')[0].addE... |
class mode {
}
|
# 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 use ... |
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli... |
//
// SerializerTests.h
// Redland Objective-C Bindings
// $Id: SerializerTests.h 1115 2005-08-23 15:38:11Z kianga $
//
// Copyright 2004 Rene Puls <http://purl.org/net/kianga/>
// Copyright 2012 Pascal Pfiffner <http://www.chip.org/>
//
// This file is available under the following three licenses:
// 1. GNU Les... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools import setup, find_packages
from codecs import open
from os import path
basedir = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(basedir, 'README.md'), encoding='utf-8') as f:
... |
import { Matrix } from 'ml-matrix'
export const fixPrec = (n) => Number.parseFloat(Number(n).toFixed(15))
export const fixArrPrec = (arr) => arr.map((el) => fixPrec(el))
export const fixMatrPrec = (matr) => matr.map((arr) => fixArrPrec(arr))
export const eye = (n) => {
return Matrix.eye(n, n).to2DArray();
}
expor... |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@文件 :utils_helper.py
@说明 :
@时间 :2020/07/17 10:10:02
@作者 :Riven
@版本 :1.0.0
'''
def is_empty(value):
return (not value) and (value != 0) and (value is not False) |
#!/usr/bin/python
# Wflow is Free software, see below:
#
# Copyright (c) J. Schellekens 2005-2011
#
# 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 3 of the License, or
# (at you... |
CAAT.Module({
/**
* @name BoxLayout
* @memberOf CAAT.Foundation.UI.Layout
* @extends CAAT.Foundation.UI.Layout.LayoutManager
* @constructor
*/
defines:"CAAT.Foundation.UI.Layout.BoxLayout",
aliases:["CAAT.UI.BoxLayout"],
depends:[
"CAAT.Foundation.UI.Layout.LayoutManag... |
#ifndef DRIVER_H
#define DRIVER_H
#include <iostream>
#include "Product.h"
#include "vehicle.h"
class Driver
{
public:
driver();
Vehicle van;
unsigned int distance(Vehicle &van,std::string &address);
void doo();
Product take();
void deliver (Product &p);
};
#endif... |
// Copyright (c) 2015-2018 The ReBitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/**
* Functionality for communicating with Tor.
*/
#ifndef REBITCOIN_TORCONTROL_H
#define REBITCOIN_TORCONTROL_H
extern... |
// MESSAGE BATTERY2 PACKING
#define MAVLINK_MSG_ID_BATTERY2 181
typedef struct __mavlink_battery2_t
{
uint16_t voltage; /*< voltage in millivolts*/
int16_t current_battery; /*< Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current*/
} mavlink_battery2_t;
#define MAVLI... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {shallowWithIntl} from 'test/intl-test-helper';
import Preferences from '@mm-redux/constants/preferences';
import EditChannel from './edit_channel';
jest.mock('@utils/the... |
#!/usr/bin/env python
"""
_WorkflowSummary_
List the task name and number of jobs running for a given site and subscription
type.
"""
from WMCore.Database.DBFormatter import DBFormatter
from WMCore.JobStateMachine.Transitions import Transitions
from future.utils import listvalues
class WorkflowSummary(DBFormatter)... |
import re,os,sys
import xml.etree.ElementTree as ET
from rdkit import Chem
from rdkit.Chem import rdChemReactions as Reactions
from rdkit.Chem.Scaffolds.MurckoScaffold import *
srcPath = os.path.split(os.path.realpath(__file__))[0]
sys.path.insert(1, srcPath)
from SyntOn_Classifier import BBClassifier
from Usef... |
from .network import ValueNet, PolicyNet, SoftQNet |
var w = 600,
h = 400,
w_full = w,
h_full = h;
if (w > $( window ).width()) {
w = $( window ).width();
}
// set the dimensions and margins of the graph
var margin = {top: 10, right: 10, bottom: 50, left: 40},
w = w - margin.left - margin.right,
h = h - margin.top - margin.bottom;
var urlNuevos =... |
// 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 CC_ANIMATION_TRANSFORM_OPERATIONS_H_
#define CC_ANIMATION_TRANSFORM_OPERATIONS_H_
#include <vector>
#include "base/memory/scoped_ptr.h"
#include... |
import builtins
import functools
import inspect
import os
import typing
def parseType(name, typeTable):
if hasattr(builtins, name):
return getattr(builtins, name)
if name in typeTable:
return typeTable[name]
if '.' in name:
seek = typeTable
for part in name.split('.'):
try:
if not part in seek:
... |
/**
@file
@author Stefan Frings
*/
#ifndef HTTPSESSIONSTORE_H
#define HTTPSESSIONSTORE_H
#include <QObject>
#include <QMap>
#include <QTimer>
#include <QMutex>
#include "httpglobal.h"
#include "httpsession.h"
#include "httpresponse.h"
#include "httprequest.h"
namespace stefanfrings {
/**
Stores HTTP sessions ... |
#!/usr/bin/env python
import sys
import os
import shutil
def cmake(platform_dir, src_dir, arg):
if not(os.path.exists(platform_dir)):
os.mkdir(platform_dir)
os.chdir(platform_dir) # go to platform directory
cmd = "cmake " + arg + " ../" + src_dir
print("cmd")
os.system(cmd) # run cm... |
"""Tests for the typing.NamedTuple overlay."""
from pytype.pytd import pytd_utils
from pytype.tests import test_base
class NamedTupleTest(test_base.TargetPython3BasicTest):
"""Tests for the typing.NamedTuple overlay."""
def test_make(self):
self.CheckWithErrors("""
import typing
A = typing.N... |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
from __future__ import annotations
from typing import List, Sequence
from models.exceptions import CurrencyNotFound
from parser.currency import Currency
class CurrencyLookup:
def __init__(self) -> None:
self.currency_list: List[Currency] = []
def add_currency(self, c: Currency) -> CurrencyLookup:
... |
typedef void __TARGET_TYPE__;
typedef long long int ssize_t;
typedef unsigned long long int size_t;
static int fffc_mutator_for_target_type(__TARGET_TYPE__ storage) {
return 0;
} |
from decision import Buy, Nothing, Sell
import random
def act(current, history, balance):
maximum_can_buy = balance.money // current.price
if maximum_can_buy > 0:
return Buy(maximum_can_buy)
else:
if random.random() > 0.5:
return Sell(balance.stock)
else:
ret... |
# Copyright 2017 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... |
const assert = require('assert');
const { promises } = require('fs');
const fsReadFile = promises.readFile;
let currentReads = 0;
let maxReads = 0;
module.exports = {
description: 'maxParallelFileReads set to infinity',
options: {
maxParallelFileReads: 0
},
before() {
promises.readFile = async (path, options)... |
import postqlite
import tk2
import os
from time import time
import traceback
#from . import ops
#from . import stats
from .geometry import geometry
from .raster import raster
class SQLiteApp(tk2.Tk):
def __init__(self, *args, **kwargs):
tk2.basics.Tk.__init__(self, *args, **kwargs)
self.top... |
from __future__ import absolute_import
from __future__ import division
# Copyright (c) 2010-2017 openpyxl
import math
#constants
DEFAULT_ROW_HEIGHT = 15. # Default row height measured in point size.
BASE_COL_WIDTH = 13 # in characters
DEFAULT_COLUMN_WIDTH = 51.85 # in points, should be characters
DEFAULT_LEFT_MA... |
# ccm node
from __future__ import with_statement
import os
import re
import shutil
import signal
import stat
import subprocess
import time
import yaml
from six import print_,iteritems
from ccmlib import common
from ccmlib.node import Node, NodeError, NodetoolError
class DseNode(Node):
"""
Provides interac... |
# %%
import os,sys
from numpy.lib.npyio import save
import vtk,vtktools
import u2r
import numpy as np
import matplotlib.pyplot as plt
import random
from nirom_dd_tools import *
import copy
### MY version of nirom_dd_orig.py for FLOW_PAST_IMPLICIT_BLOCK_84.vtu
# some functions of tools.io copied in
def write_sing_val... |
from django.core.exceptions import ObjectDoesNotExist
from django.db import IntegrityError, models, transaction
from django.utils.html import format_html
from .managers import OrderableManager
class Orderable(models.Model):
"""
An orderable object that keeps all the instances in an enforced order.
If th... |
from solvers.neighborhoods.Neighborhood import Neighborhood
from solvers.LocalSearch.SimpleLocalSearch import SimpleLocalSearch
class RVNS(object):
def __init__(self, neighborhoods, evaluator, searchStrategy):
self.neighborhoods = neighborhoods
self.evaluator = evaluator
self... |
# -*- coding: utf-8 -*-
#
# libwally-core documentation build configuration file
SCANNING, DOCS, FUNC = 1, 2, 3
def get_doc_lines(l):
if l.startswith('.. '):
return [' ' + l, '']
return [' ' + l]
def output_func(docs, func):
is_normal_ret = 'WALLY_CORE_API int' in func
func = func[:-1].rep... |
// This file is part of Better Enums, released under the BSD 2-clause license.
// See doc/LICENSE for details, or visit http://github.com/aantron/better-enums.
#pragma once
#ifndef BETTER_ENUMS_ENUM_H
#define BETTER_ENUMS_ENUM_H
#include <cstddef>
#include <cstring>
#include <iosfwd>
#include <stdexcept>
// Fea... |
# Generated by Django 2.2.6 on 2019-11-29 20:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('users', '0001_initial'),... |
#! /usr/bin/env python
# -*- coding: iso-8859-15 -*-
"""nt2 tree
"""
__author__ = "Lapreste Jean-thierry (lapreste@univ-bpclermont.fr)"
__version__ = "$Revision: 1.0 $"
__date__ = "$Date: 2010 $"
__copyright__ = "Copyleft (c) 2010 Jean-thierry Lapreste"
__license__ = "Python"
import os
import sys
import ... |
import { create } from '@storybook/theming/create';
export default create({
base: 'light',
colorPrimary: 'hotpink',
colorSecondary: 'rgb(30, 167, 253)',
// UI
appBg: 'white',
appContentBg: 'white',
appBorderColor: 'gainsboro',
appBorderRadius: 4,
// Typography
fontBase: '"Open Sans", sans-serif'... |
'use strict';
/**
* Requirements
* @ignore
*/
const Filter = require('./Filter.js').Filter;
const uppercaseFirst = require('../../utils/string.js').uppercaseFirst;
const lorem = require('lorem-ipsum');
/**
* Generates random lorem ipsum text.
*
* @memberOf nunjucks.filter
*/
class LipsumFilter extends Filter
... |
# Copyright (c) 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.
"""Presubmit script for android buildbot.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API b... |
import React from 'react';
import demoState from './demo-state';
class Loading extends React.Component {
render() {
if (!this.props.active) return null;
return (
<div
style={{
position: 'absolute',
top: 0,
bottom: 0,
left: 0,
right: 0,
... |
# -*- coding: utf-8 -*-
#
# Chef documentation build configuration file, created by
# sphinx-quickstart on Wed Feb 22 13:50:49 2012.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show th... |
#ifndef _SYSTEMCALLS_H
#define _SYSTEMCALLS_H
#include "types.h"
#include "systemcall_handler.h"
#include "filesystem.h"
#include "paging.h"
#include "rtc.h"
#include "x86_desc.h"
#include "exception_handler.h"
#define SPACE 32 /* Ascii value for space (' ') */
#define ELF_LENGTH 3... |
# coding: utf-8
"""
Server API
Reference for Server API (REST/Json)
OpenAPI spec version: 2.0.9
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class TaskResponse(object):
"""
NOTE: This class is auto... |
from django.urls import path
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'domain', views.DomainViewSet)
router.register(r'subdomain', views.SubdomainViewSet)
router.register(r'indicator', views.IndicatorViewSet)
router.register(r'data-viz', views.DataVizView... |
# -*- coding: utf-8 -*-
"""
tests.http
~~~~~~~~~~
HTTP parsing utilities.
:copyright: (c) 2014 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import pytest
from datetime import datetime
from tests import strict_eq
from werkzeug._compat import itervalues, wsgi_encoding_dance
... |
/*
Translation from original CKEDITOR language files:
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("base64image","is",{
"alt":"Baklægur texti",
"lockRatio":"Festa stærðarhlutfall",
"vSpace":"Hæg... |
#
# 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 us... |
import datetime
import json
import os
import requests
from airflow import models
from airflow.hooks.http_hook import HttpHook
from airflow.models.connection import Connection
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.http_operator import SimpleHttpOperator
state_districts = {
... |
# coding: utf-8
from __future__ import unicode_literals
from ..utils import determine_ext, js_to_json, qualities
from .common import InfoExtractor
from .youtube import YoutubeIE
class Tele13IE(InfoExtractor):
_VALID_URL = r"^https?://(?:www\.)?t13\.cl/videos(?:/[^/]+)+/(?P<id>[\w-]+)"
_TESTS = [
{
... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import onnx
from ..base import Base
from . import expect
class Relu(Base):
@staticmethod
def export():
node = onnx.helper.make_node... |
import React, { useState, useEffect, useMemo, useCallback } from 'react';
import { FormattedMessage } from 'react-intl';
import { subMinutes, startOfMinute } from 'date-fns';
import firstBy from 'thenby';
import Page from 'components/layout/Page';
import GridLayout, { GridRow, GridColumn } from 'components/layout/GridL... |
/*
* node-rdkafka - Node.js wrapper for RdKafka C/C++ library
*
* Copyright (c) 2016 Blizzard Entertainment
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE.txt file for details.
*/
#ifndef SRC_TOPIC_H_
#define SRC_TOPIC_H_
#include <napi.h>
#include <str... |