text stringlengths 3 1.05M |
|---|
/* Pragma related interfaces.
Copyright (C) 1995-2016 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your option) any lat... |
import { h } from 'vue'
export default {
name: "DatabaseSearchOutline",
vendor: "Mdi",
type: "",
tags: ["database","search","outline"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","dat... |
# -*- coding: utf-8 -*-
import time
import socket
import subprocess
from mss import mss
from functools import wraps
import pywintypes # noqa
import win32api
from pywinauto.application import Application
from pywinauto import mouse, keyboard
from pywinauto.win32structures import RECT
from pywinauto.win32functions imp... |
import unittest, os
from time import sleep
from selenium import webdriver
from testutils import EasyDriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
def initial_set_up_map(driver, map_name):
driver.get("https://floating-shore-56001.herokuapp.c... |
# Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.b (the "License");
# you may not use this file except in compliance with the License.
#
# You can find misc modules, which dont fit in anything xD
""" Userbot module for other small commands. """
from rand... |
# Copyright 2015 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 a... |
ABSTRACT_USER_MODEL_FULLNAME = "django.contrib.auth.models.AbstractUser"
PERMISSION_MIXIN_CLASS_FULLNAME = "django.contrib.auth.models.PermissionsMixin"
MODEL_CLASS_FULLNAME = "django.db.models.base.Model"
FIELD_FULLNAME = "django.db.models.fields.Field"
CHAR_FIELD_FULLNAME = "django.db.models.fields.CharField"
ARRAY_F... |
i = 1
while i < 11:
print(i)
i = i + 1
|
# 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 writing, software
# distributed under t... |
import React from "react";
import Img from "gatsby-image";
import "../utils/css/components/hero.scss";
const hero = ({ heroImg, heroTitle, heroParagraphy }) => {
return (
<div className="hero-wrapper">
<div className="hero-image">{!!heroImg && <Img fluid={heroImg} />}</div>
<div className="intro">
... |
"""
.. _example_dpf_Boucher:
===================================
Example of depth potential function in slam
===================================
"""
# Authors: Julien Lefevre <julien.lefevre@univ-amu.fr>
# License: BSD (3-clause)
# sphinx_gallery_thumbnail_number = 2
##############################################... |
/*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:36:38 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/ChatKit.fra... |
"""
Prime Factorization
- Have the user enter a number and find all Prime Factors (if there are any)
and display them.
Call By
- python prime_factorization.py
"""
def pf():
number = int(raw_input('Enter a number to see its prime factors: '))
factors = [n for n in range(1, number + 1) if number % n == 0]
... |
import numpy as np
#Questions on Polynomial
# Define a polynomial function
#poly1d Return Polynomial and the operation applied
np.poly1d([4, 9, 5, 4])
# How to add one polynomial to another using NumPy in Python?
#polyadd Find the sum of two polynomials.
# p(x) = 5(x**2) + (-2)x +5 == (5,-2,5)
# q(x) = 2(x**2) + (-... |
/*
* i3logix Code Challenge
*
* Please refer to the README.md for challenge questions and complete your challenge below.
*/
function getNextGen(board, // 2d array of 1s and 0s
minNeighbors = 2, // < min --> cell dies
maxNeighbors = 3, // > max --> cell dies
... |
'use strict';
class EventRecorder {
constructor(newEventHandler) {
this.eventStack = []; // ProgramEvent SendEvent*
}
get topOfEventStack() {
return this.eventStack[this.eventStack.length - 1];
}
program(sourceLoc) {
const event = new ProgramEvent(sourceLoc);
this.eventStack.push(event);
... |
import sys
import pddl
import pddl_to_prolog
class OccurrencesTracker:
"""Keeps track of the number of times each variable appears
in a list of symbolic atoms."""
def __init__(self, rule):
self.occurrences = {}
self.update(rule.effect, +1)
for cond in rule.conditions:
s... |
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');
exports.run = (client, message, args) => {
if (!message.guild) {
const ozelmesajuyari = new Discord.RichEmbed()
.setColor(0xFF0000)
.setTimestamp()
.setAuthor(message.author.username, message.author.avatarURL)
.addF... |
#!/usr/bin/env python3
# Copyright (c) 2019-2021 Xenios SEZC
# https://www.veriblock.org
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test framework addition to include VeriBlock PoP functions"""
import struct
import time
fro... |
var Discord = require('discord.js');
var logger = require('winston');
var {prefix, token} = require('./config.json');
var fs = require('fs');
var http = require('http');
var request = require('request');
var fetch = require('node-fetch');
var util = require('util');
var bot = new Discord.Client({disableEveryo... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2014-2016 Intel, Inc. All rights... |
import os
import re
from typing import Optional
from demisto_sdk.commands.common.constants import (
API_MODULES_PACK, DEFAULT_CONTENT_ITEM_FROM_VERSION, DEPRECATED_REGEXES,
PYTHON_SUBTYPES, TYPE_PWSH)
from demisto_sdk.commands.common.errors import Errors
from demisto_sdk.commands.common.hook_validations.conten... |
import { version } from '../package.json'
import Vue from 'vue'
import 'github-markdown-css'
import './style/tsplus.less'
import './icons/iconfont.js' // from http://www.iconfont.cn h5 仓库
import './util/rem'
import './util/prototype' // 原型拓展
import Message from './plugins/message/'
import AsyncImage from './component... |
function solve(listOfSongs) {
let numberOfSongs = listOfSongs.shift(); // first element will be the number of songs
let typeOfSong = listOfSongs.pop(); // the the last element will be Type List/"all"
class Song {
constructor(typeList, name, time) {
this.typeList = typeList;
... |
#!/usr/bin/python
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from bebop_msgs/Ardrone3PilotingStateFlyingStateChanged.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class Ardrone3PilotingS... |
#ifndef Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
#define Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
/// \class AlignmentProducer
///
/// Package : Alignment/CommonAlignmentProducer
/// Description : calls alignment algorithms
///
/// \author : Frederic Ronga
#include "A... |
'use strict';
const assert = require('assert');
const mock = require('egg-mock');
describe('====> test/fabric.test.js', () => {
let app;
before(() => {
app = mock.app({
baseDir: 'apps/fabric-test',
});
return app.ready();
});
after(() => app.close());
afterEach(mock.restore);
process.e... |
# -*- coding: utf-8 -*-
"""
Command is the definition of the command class as well as extensible utilities
that can be used to create more commands easily.
Created on Thu Jan 11 20:03:56 2018
@author: 14flash
"""
import time
import re
import types
import discord
import warnings
from libs import dataloader, addon
D... |
/**
* Kendo UI v2017.1.118 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
from scipy.integrate import ode
import scipy.optimize
import pdb
from buildTeXFiles import *
import os
import sys
direc... |
YUI.add('sortable-multi-full-tests', function(Y) {
var Assert = Y.Assert,
suite = new Y.Test.Suite('sortable-multi');
suite.add(new Y.Test.Case({
name: 'sortable-multi',
'#list1 is rendered': function() {
var el = Y.one('#list1');
Assert.isNotNull(el, '#list1 n... |
module.exports = {
name: 'frontend-angular',
preset: '../../jest.config.js',
coverageDirectory: '../../coverage/apps/frontend-angular',
snapshotSerializers: [
'jest-preset-angular/AngularSnapshotSerializer.js',
'jest-preset-angular/HTMLCommentSerializer.js'
]
};
|
"use strict";
var Compiler = require("./Compiler");
var Walker = require("./Walker");
var Parser = require("./Parser");
var HtmlJsParser = require("./HtmlJsParser");
var Builder = require("./Builder");
var extend = require("raptor-util/extend");
var CompileContext = require("./CompileContext");
var globalConfig = requ... |
/* Copyright 1989-94 GROUPE BULL -- See license conditions in file COPYRIGHT */
/*****************************************************************************\
* scan.c: *
* *
... |
def none_or_str(value):
if value == 'None':
return None
return value |
from dataclasses import dataclass, field
from asyd import Config, ConfigRef, MV, build, yamlize
import pathlib
@dataclass
class BaseConfig(Config):
some_field: str = MV
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------
# Filename: recordanalyzer.py
# Purpose: A command-line tool to analyze Mini-SEED records for development
# purposes.
# Author: Lion Krischer
# Email: krischer@geophysik.uni-muenchen.de
#
... |
/* Dawnveil
Ellinel Fairy Academy
Made by Daenerys
*/
function enter(pi) {
pi.playPortalSE();
pi.warp(101073201,0);
return true;
} |
# 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 a... |
input_file = open("./bingo.txt","r")
bingo_temp = input_file.readlines()
nothing_important = [x for x in bingo_temp]
bingo = [elem.split() for elem in nothing_important]
input_file.close()
def replace_with_minus_one(lista, n):
for board in lista:
for row in board:
for i in range(5):
... |
webpackJsonp([0],[,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPoly... |
describe('Failing device method', () => {
it('should fail with a correct stack trace', async () => {
await device.selectApp('non-existing');
});
});
|
import numpy as np
# Entries in x and vbus vectors, 1 column (N,1) matrix
# ([1],[2],...,[N]), vertical vectors
# The entries are packed into flattened 1 row matrix
def packV(x, vbus, ibus):
v = np.concatenate((np.ravel(x),np.ravel(vbus.real),np.ravel(vbus.imag),np.ravel(ibus.real),np.ravel(ibus.imag)))
retu... |
DEBUG = True
SECRET_KEY = '_'
STATIC_URL = '/static/'
INSTALLED_APPS = (
'django.contrib.staticfiles',
'tests.test_app',
)
|
import abc
import logging
from typing import Any, Dict
import determined as det
from determined import _core
class TrialContext(metaclass=abc.ABCMeta):
"""
TrialContext is the system-provided API to a Trial class.
"""
def __init__(
self,
core_context: _core.Context,
env: det.... |
// Если редактор показывает сообщение о ошибке в данном файле, выствите совместимость с ES6.
// Внимание! В системе должен быть установлен ImageMagick.
//
var gulp = require('gulp');
var imageResize = require('gulp-image-resize');
var rename = require('gulp-rename');
gulp.task('default', ['images:resize-one-image']);
... |
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const validate = require('../lib/validate');
const contact = require('../config/contact');
// =====================================
// Schema Definition
const SettingSchema = new Schema({
key: {
type: String,
required: tru... |
import React from 'react'
import styled from "styled-components";
const VideoStyled = styled.div`
width: 100%;
margin-top: 30px;
p{
color: #494949;
font-size: 1.1rem;
}
.video-content{
width: 300px;
margin-left: auto;
margin-right: auto;
video {
width: 100%;
}
}
@me... |
import argparse
import time
import csv
from path import Path
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import custom_transforms
import models
from utils import tensor2array, save_checkpoint, save_path_formatter, log_output_tensorboard
from loss_fun... |
import React, { useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi';
import api from '../../services/api';
import './styles.css';
import logoImg from '../../assets/logo.svg';
export default function NewIncident() {
const history = useHistory()... |
from __future__ import unicode_literals
from django.apps import AppConfig
class ApiConfig(AppConfig):
name = 'api'
def ready(self):
from . import signals
|
import * as tslib_1 from "tslib";
// @codepen
import * as React from 'react';
import { Slider } from 'office-ui-fabric-react/lib/Slider';
import { Stack } from '../Stack';
import { mergeStyleSets, DefaultPalette } from 'office-ui-fabric-react/lib/Styling';
var HorizontalStackWrapExample = /** @class */ (function ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script is adapted from Alexander berard seq2seq feature extract script:
# https://github.com/alex-berard/seq2seq/blob/master/scripts/speech/extract.py
from __future__ import division
import argparse
import numpy as np
import yaafelib
import tarfile
import tempfil... |
import { isObject, isFunction } from "./Is";
export class FindMissingPredicate extends Error {}
const FindShortCircuit = {};
const FindObjShortCircuit = {};
const FindPredicateFn = (arr, predicate) => {
let index = -1;
try {
arr.forEach((item, i) => {
if (predicate(item)) {
index = i;
... |
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/front/blob/master/LICENSE
*/
// include
// script to test the include files
Test.Include = function()
{
let r = true;
try
{
//... |
# -*- coding: utf-8 -*-
import subprocess
def test_invalid_options(absolute_path):
"""End-to-End test to check option validation works."""
process = subprocess.Popen(
[
'flake8',
'--isolated',
'--select',
'WPS',
'--max-imports',
... |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m9 3 .01 10.55c-.6-.34-1.28-.55-2-.55C4.79 13 3 14.79 3 17s1.79 4 4.01 4S11 19.21 11 17V7h4V3H9zm12 9.43L17.57 9h-.6v4.55l-2.75-2.75-.85.85L16.73 15l-3.3... |
from src.edit_image.image_operations import *
import tkinter
from tkinter import filedialog # SEPARATE IMPORT BECAUSE FILEDIALOG IS NOT IMPORTED WITH TKINTER
def edit_menu():
"""
MENU FOR IMAGE EDITING,
CONTAINS OPERATIONS THAT CAN BE PERFORMED ON AN EXISTING IMAGE
"""
print("SELECTING FILE PATH... |
from functools import partial
import gc
import os
import threading
import pytest
from . import shell
@pytest.fixture()
def tmpdir(request):
path = os.path.realpath(shell.mkdtemp())
yield path
shell.rm(path, recursive=True)
@pytest.fixture()
def p(tmpdir, *args):
"""
Convenience function to join ... |
from qunetsim import Qubit
from qunetsim.components.host import Host
from qunetsim.components.network import Network
from qunetsim.objects import Qubit
from qunetsim.objects import Logger
import random
Logger.DISABLED = True
KEY_LENGTH = 50
SAMPLE_SIZE = int(KEY_LENGTH / 4)
WAIT_TIME = 10
INTERCEPTION = False
# Basi... |
// Copyright 2018 PUE.
//
// 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 writing, so... |
"""Test suite for general tests which apply to all cogs."""
import importlib
import pkgutil
import typing as t
import unittest
from collections import defaultdict
from types import ModuleType
from unittest import mock
from discord.ext import commands
from bot import exts
class CommandNameTests(unittest.TestCase):
... |
/*
* Copyright (c) 2017 comsuisse AG
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT atmel_sam_xdmac
/** @file
* @brief Atmel SAM MCU family Direct Memory Access (XDMAC) driver.
*/
#include <errno.h>
#include <sys/__assert.h>
#include <device.h>
#include <init.h>
#include <string.h>
#include <... |
from django.urls import path
from accounts.api.views import SendOTPAPIView, UserRegistrationAPIView, UserPasswordLoginAPIView, ForgotPasswordAPIView
app_name = 'accounts'
urlpatterns = [
path('otp/', SendOTPAPIView.as_view(), name='send-otp'),
path('registration/', UserRegistrationAPIView.as_view(), name='use... |
/**
* @name exports
* @summary SubstanceAmountReferenceRange Class
*/
module.exports = class SubstanceAmountReferenceRange {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.definePr... |
import open3d as o3d
import argparse
import os
import sys
import logging
import numpy
import numpy as np
import torch
import torch.utils.data
import torchvision
from torch.utils.data import DataLoader
from tensorboardX import SummaryWriter
from tqdm import tqdm
# Only if the files are in example folder.
BASE_DIR = os.... |
# Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"Logical model of dynamic fixtures creation."
# pylint: disable=invalid-name
# pylint: disable=global-variable-not-assigned
# pylint: disable=global-statement
# pylint: disable=no-else-return
import copy
fr... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{367:function(e,t,a){"use strict";a.r(t);var r=a(42),s=Object(r.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"class-pagehelper"}},[a("a",{staticClass:"... |
#
# Copyright 2018 XEBIALABS + MSA (Mouhssine SAIDI COE DELPHIX)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modif... |
module.exports = {
port: 3000,
subdomainOffset: 2,
logger: {
file: {
filename: 'logs/application-%DATE%.log',
datePattern: 'YYYY-MM-DD-HH',
zippedArchive: false,
maxSize: '20m',
maxFiles: '2d',
level: 'info'
},
console: {
level: 'silly'
}
},
ormconfig:... |
#ifndef _H_GLTFLOADER_
#define _H_GLTFLOADER_
#include "cgltf.h"
#include "Pose.h"
#include "Clip.h"
#include <vector>
#include <string>
cgltf_data* LoadGLTFFile(const char* path);
void FreeGLTFFile(cgltf_data* handle);
Pose LoadRestPose(cgltf_data* data);
std::vector<std::string> LoadJointNames(cgltf_data* data);
s... |
# coding: utf-8
import math
# import euclid
from OpenGLES.Util import LookObject
from OpenGLES.Util.Model import XMLModel
from OpenGLES.GLKit.glkmath import vector3 as v3
from OpenGLES.GLKit.glkmath import matrix4 as m4
from OpenGLES.GLKit.glkmath import matrix3 as m3
from OpenGLES.GLKit.glkmath import quaternion as qu... |
var w = document.getElementById('chart').offsetWidth,
h = window.innerHeight -70;
var colorscale = d3.scale.category10();
var data = [
[
{axis:"SECURE RANDOM (256B)",value:0.980,title:"7.25 ms"},
{axis:"SHA-1 hash (256B)",value:0.942,title:"4.0 ms"},
{axis:"SHA2-256 hash (256B)",value:0.784,title:"27.37 ms"},
{axis... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
import math
from math import exp
import torch
import torch.nn.functional as F
from torch.autograd import Variable
def compute_psnr(ground_truths, outputs_comp):
batch_mse = ((ground_truths - outputs_comp) ** 2).mean()
psnr = 10.0 * math.log10(1.0 / batch_mse)
return psnr
def gaussian(window_size, sig... |
import socket
import sys
import uuid
from random import seed
import random
import time
seed(1)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
def bench():
arr = []
print("Bench started")
connection()
for x in range(500):
v = str(uuid.uuid4())
arr.append(v)
t = str(10... |
// on input/text enter--------------------------------------------------------------------------------------
$(".usrInput").on("keyup keypress", function (e) {
var keyCode = e.keyCode || e.which;
var text = $(".usrInput").val();
if (keyCode === 13) {
if (text == "" || $.trim(text) == "") {
e.preventDefa... |
/*! For license information please see 30.f9943dd7.chunk.js.LICENSE.txt */
(this["webpackJsonpvuexy-react-admin-dashboard"]=this["webpackJsonpvuexy-react-admin-dashboard"]||[]).push([[30],{1203:function(t,e){!function(){if("object"===typeof window&&"function"!==typeof window.CustomEvent){window.CustomEvent=function(t,e... |
#
# MIT License
#
# Copyright (c) 2020 Pablo Rodriguez Nava, @pablintino
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... |
from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... |
module.exports = {
plugins: [
{
resolve: `gatsby-theme-blog`,
options: {},
},
{
resolve: `gatsby-plugin-google-adsense`,
options: {
publisherId: `ca-pub-8241145315698443`
},
},
{
resolve: `gatsby-plugin-disqus`,
options: {
shortname: `cjosh... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.double = void 0;
const integer_1 = require("./integer");
const tuple_1 = require("./tuple");
const doubleNext_1 = require("./_next/doubleNext");
function next(n) {
return (0, integer_1.integer)(0, (1 << n) - 1);
}
const doubleFacto... |
import { createIcon } from '../createIcon';
export const SimCardIconConfig = {
name: 'SimCardIcon',
height: 512,
width: 384,
svgPath: 'M0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128L256 0H64C28.7 0 0 28.7 0 64zm224 192h-64v-64h64v64zm96 0h-64v-64h32c17.7 0 32 14.3 32 32v32zm-64 128h64v32c0 17.7-14... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
"""
Copyright (C) 2018-2020 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 copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
import argparse
import sys
import time
import os
import json
import os.path as path
import bcrypt # bcrypt
import string
import secrets
import time
import http.client
import requests
from urllib.parse import urlsplit
from datetime import datetime
from email.mime.image import MIMEImage
import core.auth as auth
import... |
import Pet from './models/Pet';
import User from './models/User';
export default async function saveDataInDb(data) {
try {
const user = new User(data.user);
await user.save();
const promises = data.pets.map((pet) => {
const petData = Object.assign({}, pet, {
owner: user._id,
});
... |
var jPM={},pageLoaderDone=!1,PLUGINS_LOCALPATH="./assets/plugins/",SLIDER_REV_VERSION="5.4.0",loadedFiles=[];!function(e){e.extend(e.fn,{themeInit:function(t){var n=e(this);t=t||!1,n.themeSubMenus(),n.themeScrollMenus(),n.themeCustom(t);var a=n.themePlugins(t);e.each(a,function(e,n){n(t)})},themeRefresh:function(){var ... |
from typing import Dict
import cv2
import numpy as np
from yacs.config import CfgNode
from loguru import logger
from videoanalyst.data.utils.filter_box import \
filter_unreasonable_training_boxes
from videoanalyst.pipeline.utils.bbox import xyxy2xywh
from ..filter_base import TRACK_FILTERS, VOS_FILTER... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
import axios from 'axios'
const API_URL = 'http://localhost:8085'
export class DocumentHandler {
constructor() {
}
postPayment(payment) {
const url = API_URL + '/payments/save'
return axios.post(url, payment)
}
}
|
from subprocess import call
from eb_multi_app.helpers import getCurrentConfigFile, cloneRepo, addRepo, checkEbInit, createBasicConfigFile, runCommandsBeforeApplicationCreation, createApplication, updateArtifact, getPathToApplicationFolder
def showHelp():
print("Please take a look here: https://github.com/tscheiki... |
import csv
import json
import tarfile
import urllib
import datetime
import time
import os
#get data info
import zipfile
import cv2
from face_attr_prediction.utils.data_transfer import _build_facex_model
from tools.vis import xyxy2xywh
def get_data(time):
data = '{"beginTime":"%s"}' % (time)
data = data.en... |
// Copyright (C) Microsoft Corporation. All rights reserved.
// This is a Javascript library that can be used to communicate with the Microsoft Health Cloud API
// directly using CORS. This library allows you to get an access token from MSA and then query the API
/// options supports the following parameters:
//... |
import Button from '../components/Button/Button.vue';
export default {
title: 'Components/Button',
component: Button,
argTypes: {
Click: {},
Disabled: { checkBox: false },
typeInput: { control: { type: 'select', options: ['primary', 'secondary'] } },
},
};
const Template = (args) => ({
// Compon... |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.3-master-471c225
*/
goog.provide("ngmaterial.components.colors"),goog.require("ngmaterial.core"),function(){"use strict";function e(e,r,o){function t(e,r){try{r&&e.css(s(r))}catch(n){o.error(n.message)}}function a(e){var r=... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
/*
* 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 ... |
"""
Miscellaneous utilities used for development.
Copyright by Gabriel A. Hackebeil (gabe.hackebeil@gmail.com).
"""
from types import FrameType
from typing import Union, Callable, Dict, List, Tuple, Any, Optional, IO, ContextManager
import logging
import signal
import numbers
import math
Handler = Callable[[int, Fra... |
const autoprefixer = require('../lib/autoprefixer');
const postcss = require('postcss');
const path = require('path');
const fs = require('fs');
const grider = autoprefixer({
browsers: ['Chrome 25', 'Edge 12', 'IE 10'],
cascade: false,
grid: true
});
const cleaner = autoprefixer({
browsers: [... |