text stringlengths 3 1.05M |
|---|
/* */
"format cjs";
var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window;
(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function() {
"use strict";
var a = document.documentElement,
b = _gsScope,
c = function(c, d) {
var e... |
from tests import add_response
from pryke import __version__, Account, Attachment, Comment, Contact, Folder, Group, Task, User
from urllib.parse import urlparse
import datetime
import responses
import time
@responses.activate
def test_pryke_account(pryke):
add_response(responses.GET, 'https://www.wrike.com/api/v... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
import { combineReducers } from "redux";
import ForgotPasswordPage from "./ForgotPasswordPage/reducer";
import ManageHostsPage from "./ManageHostsPage/reducer";
import QueryPages from "./QueryPages/reducer";
import ResetPasswordPage from "./ResetPasswordPage/reducer";
export default combineReducers({
ForgotPassword... |
/*
* IUCV network driver
*
* Copyright IBM Corp. 2001, 2009
*
* Author(s):
* Original netiucv driver:
* Fritz Elfert (elfert@de.ibm.com, felfert@millenux.com)
* Sysfs integration and all bugs therein:
* Cornelia Huck (cornelia.huck@de.ibm.com)
* PM functions:
* Ursula Braun (ursula.braun@de.ibm.com)
*
*... |
#Copyright 2020 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 in ... |
# Copyright 2019 Capital One Services, 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 in... |
process.__require=function(a){switch(a){case "child_process":case "vm":return}return require(a)};
process.__console={log:function(){var a=Array.prototype.slice.call(arguments);return sysConsole.log.apply(sysConsole,a)},error:function(){for(var a=Array.prototype.slice.call(arguments),b=0;b<a.length;b++)a[b]instanceof Er... |
#
# 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... |
// needed to ask questions (have a conversation) on the CDL with the user
const inquirer = require("inquirer");
// open to open the html file when done
const open = require("open");
// to validate email
const validator = require("email-validator");
// pull in object constructors
const Employee = require("./lib/Employe... |
from distutils.core import setup
setup(
name='Rancher Catalog Service Integration Tests',
version='0.1',
packages=[
'core',
],
license='ASL 2.0',
)
|
# -*- coding: utf-8 -
#
# This file is part of gaffer. See the NOTICE for more information.
from gaffer.node.commands import (
processes,
kill,
add_process,
del_process,
get_process,
load_process,
update_process,
process_start,
process_stop,
process_add,
process_sub,
pro... |
class CDRs:
""" 2600hz Kazoo CDRs API.
:param rest_request: The request client to use.
(optional, default: pykazoo.RestRequest())
:type rest_request: pykazoo.restrequest.RestRequest
"""
def __init__(self, rest_request):
self.rest_request = rest_request
def get_cdr... |
from .agg import agg, combine_base_reform, pctchg_base_reform
from .chart_utils import dollar_format, currency_format
from .charts import quantile_chg_plot, quantile_pct_chg_plot
from .constants import (
BENS,
ECI_REMOVE_COLS,
HOUSING_CASH_SHARE,
MCAID_CASH_SHARE,
MCARE_CASH_SHARE,
MED_BENS,
... |
from django.contrib.auth.models import User
from django.urls import reverse
from django.test import TestCase
from core.tests.data import create_users, STOCK_PASSWORD
from profiles.models import Profile
class TestProfile(TestCase):
def setUp(self):
super().setUp()
create_users()
self.user... |
#!/usr/bin/env node
const program = require('commander');
const fs = require('fs');
const createVueComponent = require('./src/common/create-vue-component');
const createVueDocument = require('./src/vue');
const createUmiDocument = require('./src/umi');
const resolve = require('./src/common/resolve');
const version = r... |
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
//
// SymbolTable.h
// CMinusX
//
// Created by AquarHEAD L. on 6/14/13.
// Copyright (c) 2013 Team.TeaWhen. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SymbolTable : NSObject
- (void)insertSymbolName:(NSString *)name withInfo:(NSDictionary *)info;
- (id)lookupSymbolName:(NSString *)nam... |
'use strict';
const Datastore = require('./dataStore');
const path = require('path');
const {PEOPLE} = require('swapi-stream');
const {url2id, fields2ids} = require('./tools');
module.exports = class extends Datastore {
constructor(dbDir) {
super(dbDir, 'people');
}
async ensureIndexes(){
this._ensureI... |
# https://www.algoexpert.io/questions/Three%20Number%20Sum
# O(n^2) time | O(n) space
def three_number_sum(array, targetSum):
array.sort()
triplates = []
for i in range(len(array) - 2):
left_index = i + 1
right_index = len(array) - 1
while left_index < right_index:
sum =... |
import unittest
from kale.util.significant_bits import count_significant_bits, truncate_to_significant_bits
class TestSignificantBits(unittest.TestCase):
def test_truncate_to_significant_bits(self):
a = -0b001101
assert truncate_to_significant_bits(a, 2) == -0b1100
a = -0b001111
a... |
const db = require("mongoose");
db.Promise = global.Promise;
async function connect(url) {
await db.connect(url, {
useNewUrlParser: true,
});
console.log('[db]: Successful connection');
}
module.exports = connect; |
/*
Copyright Rene Rivera 2008-2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MSGPACK_PREDEF_COMPILER_EKOPATH_H
#define MSGPACK_PREDEF_COMPILER_EKOPATH_H
#include <msgpack/predef/version_number... |
import collections
import os
import sys
import multiprocessing
from multiprocessing import Semaphore
from typing import Union
import re
import s3fs
import numpy as np
import zarr
from netCDF4 import Dataset
region = os.environ.get('AWS_DEFAULT_REGION') or 'us-west-2'
# Some global that may be shared by different met... |
from typing import List
from tsts.cfg import CfgNode as CN
from tsts.core import TRAINERS
from tsts.dataloaders import DataLoader
from tsts.losses import Loss
from tsts.metrics import Metric
from tsts.models import Module
from tsts.optimizers import Optimizer
from tsts.schedulers import Scheduler
from .trainer import... |
"use strict";
const Accessory = require('@app/content/items/equipment/accessories');
class PersonalShieldingBestAccessory extends Accessory {
constructor() {
super({
type: 'equipment-accessories-watermoon-043_personal_shielding_belt',
displayName: __("Personal Shielding Belt"),
description: __... |
import torch
def to_cuda(x):
""" Cuda-erize a tensor """
if torch.cuda.is_available():
x = x.cuda()
return x
def to_var(x):
""" Make a tensor cuda-erized and requires gradient """
return to_cuda(x).requires_grad_(True)
|
import { config } from '../../config.js';
import util_funcs from "@/appUtils";
const state = {
variants: []
};
const getters = {
variants: (state) => {
return state.variants;
}
};
const actions = {
initVariantStore: ({ commit }, payload) => {
if(payload.allVariants == false) {
util_funcs... |
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the ... |
import { makeFirework } from './makeFirework';
export const makeFireworks = (n) => {
for (let i = 1; i <= n; i++) {
makeFirework();
}
}
|
# -*- coding: utf-8 -*-
# --------------------------------------------------------------------------
# Copyright Commvault Systems, 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 a... |
(function () {
'use strict';
angular.module('app', ['pascalprecht.translate', 'registrationForm', 'ngCookies'])
.config(['$translateProvider', function ($translateProvider) {
translateConfig($translateProvider);
}])
.controller('Ctrl', ['$translate', '$scope', '$cookies', function ($translate, $scope, $cookies)... |
#!/usr/bin/python
'''
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"... |
from django.shortcuts import render
from .models import TimePost, Project, Client
from django.contrib.auth.models import User
from .forms import TimePostForm
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.views.generic import (
ListView, DetailView,
CreateView, Update... |
/**
* @file system_defines.h
* @author Josef Raschen <josef@raschen.org>
*
* some defines for operating system specific code
*/
#ifndef __SYSTEM_DEFINES_H__
#define __SYSTEM_DEFINES_H__
#define SYSTEM_LINUX
#endif /* __SYSTEM_DEFINES_H__ */
|
import Yii2DataProvider from './Yii2DataProvider';
import BuildForm from './Build/Form';
export {
Yii2DataProvider,
BuildForm
}; |
codebrowser.model.Course = Backbone.RelationalModel.extend({
urlRoot: config.api.main.root + 'courses',
relations: [
{
type: Backbone.HasMany,
key: 'exercises',
relatedModel: 'codebrowser.model.Exercise',
collectionType: 'codebrowser.collection.Exercise... |
# Copyright 2022 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
import logging
from django.contrib.sessions.models import Session
from django.utils import timezone
SCOPE_IDTOKEN = "idtoken"
logger = logging.getLogger(__name__)
def delete_sessions(netid, scope=None):
"""
Delete all the... |
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2009- Spyder Kernels Contributors
#
# Licensed under the terms of the MIT License
# (see spyder_kernels/__init__.py for details)
# ---------------------------------------------------------------------... |
#import <Foundation/Foundation.h>
#if __has_include("BraintreeCore.h")
#import "BraintreeCore.h"
#else
#import <BraintreeCore/BraintreeCore.h>
#endif
#import "BTPayPalLineItem.h"
NS_ASSUME_NONNULL_BEGIN
/**
Payment intent.
@note Must be set to sale for immediate payment, authorize to authorize a payment for captur... |
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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, modify, merge, p... |
# Copyright 2020 Board of Trustees of the University of Illinois.
#
# 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 ... |
import pandas as pd
import boto3
from io import StringIO
def ml_preprocessing(input_file,bucket="model-support-files",fwd_returns=5):
s3 = boto3.client('s3',endpoint_url="http://minio-image:9000",aws_access_key_id="minio-image",aws_secret_access_key="minio-image-pass")
Bucket=bucket
Key=input_file
read... |
;(function ($, window) {
'use strict';
var guid = 0,
ignoredKeyCode = [9, 13, 17, 19, 20, 27, 33, 34, 35, 36, 37, 39, 44, 92, 113, 114, 115, 118, 119, 120, 122, 123, 144, 145],
allowOptions = [
'source',
'empty',
'limit',
'cache',
'cac... |
import time
from airflow.exceptions import AirflowException
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
from .hook import DataMechanicsHook
from .application_state import ApplicationStateType
XCOM_APP_NAME_KEY = "app_name"
XCOM_APP_PAGE_URL_KEY = "app_page_url"
class ... |
import sys
from collections import deque
def read_input(): return sys.stdin.readline().strip()
GRAY, BLACK = 0, 1
def topological(graph):
order, enter, state = deque(), set(graph), {}
def dfs(node):
state[node] = GRAY
for k in graph.get(node, []):
sk = state.ge... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BehanceOutline = {
name: 'behance',
theme: 'outline',
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896' },
children: [
{
tag: 'path',
attrs: {
... |
"use strict";
module.exports = {
id: 0xF3,
type: 'TVPTYPE',
name: 'TVP',
declaration: function declaration(parameter) {
return parameter.value.name + ' readonly';
},
writeTypeInfo: function writeTypeInfo(buffer, parameter) {
let ref, ref1, ref2, ref3;
buffer.writeUInt8(this.id);
buffer.writ... |
import asyncio
import base64
import hashlib
import hmac
from http.cookies import SimpleCookie
import json
import urllib.request
SALT = "datasette-auth-github"
class BadSignature(Exception):
pass
class Signer:
def __init__(self, secret):
self.secret = secret
def signature(self, value):
... |
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* High-level firmware wrapper API - user interface for RW firmware
*/
#include "2common.h"
#include "2misc.h"
#include "2sysincludes.h"
#include "... |
import communication as cm
import camera
import keyboard
cm.handshake()
#camera.start()
#while (True):
# cm.write()
keyboard.control()
|
console.log(this === global)
console.log(this === module)
console.log(this === module.exports)
console.log(this === exports)
function logThis(){
console.log('Dentro de uma função...')
console.log(this === exports)
console.log(this === exports.exports)
console.log(this === global)
}
logThis()
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
import asyncio
from asyncio import create_subprocess_exec
from asyncio.subprocess import DEVNULL, PIPE
import click
# Brought to you by https://stackoverflow.com/questions/803265/getting-realtime-output-using-subprocess
async def _read_stream(stream, callback, encoding='UTF8'):
while True:
line = await ... |
//
// NSString+SILKAdditions.h
// SILKDouYin
//
// Created by 张骞 on 2022/2/26.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (SILKAdditions)
/**
Convert a NSString to a NSDictionary or a NSArray.If an error happened, nil would be returned.
*/
- (nullab... |
/*
Copyright 2015 Bloomberg Finance L.P.
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... |
from day22.script1 import parse, optimize_spells, State
def solve(boss):
(boss_hp, boss_dmg) = boss
initial_state = State(50 - 1, 500, boss_hp, boss_dmg, True) # -1 for the first HP lost
return optimize_spells(initial_state, [])[0]
if __name__ == '__main__':
print(solve(parse("data.txt")))
|
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
directConnect: true,
baseUrl: 'http://localhost:4200/',
allScriptsTimeout: 20000,
specs: ['./src/**/*.e2e-spec.ts'],
SELENIUM_PROMISE_MANAGER: false,
suites: {
smoke: './src/smoke/*.e2e-spec.ts',
regression: './src/regres... |
import re
from os import path
from pychatops.slack.common import ansible_ops
from pychatops.slack.common import log_ops
from pychatops.slack.common import slack_ops
from pychatops.slack.common import validate_hosts_ops
def command_syntax():
return '@Bot-Net mping src=_source_device_csv_ dst=_destination_device_c... |
#ed_pct_change.py
#This program needs to isolate the unique Identifiers, then find percent editing in CL, find pct editing in other conditions, show change in percent editing.
#Things to consider: There will be some where the edit does not pop up
#I'm using the PXL's as sources of info because their formatting will mak... |
var namespacemui_1_1dim =
[
[ "dim", "structmui_1_1dim_1_1dim.html", "structmui_1_1dim_1_1dim" ]
]; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@styled-icons/fa-brands/PhoenixFramework"), exports);
|
(function(n) {
"use strict";
var i = 2;
function e(n, i) {
return n + i;
}
function a(n, i) {
return n - i;
}
console.log(e(a(i, 1), i));
}).call(this);
|
//
// OCHamcrest - HCIsNil.h
// Copyright 2014 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid, http://qualitycoding.org/
// Docs: http://hamcrest.github.com/OCHamcrest/
// Source: https://github.com/hamcrest/OCHamcrest
//
#import "HCBaseMatcher.h"
@interface HCIsNil : HCBaseMatcher
+ (id)isNil;
@end... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
import lldb
from lldb_providers import *
from rust_types import RustType, classify_struct, classify_union
def classify_rust_type(type):
type_class = type.GetTypeClass()
if type_class == lldb.eTypeClassStruct:
return classify_struct(type.name, type.fields)
if type_class == lldb.eTypeClassUnion:
... |
var data=[['20010118',5.737],
['20010119',5.893],
['20010205',5.504],
['20010206',5.359],
['20010207',5.370],
['20010208',5.381],
['20010209',5.466],
['20010212',5.513],
['20010213',5.417],
['20010214',5.517],
['20010215',5.357],
['20010216',5.359],
['20010219',5.446],
['20010220',5.401],
['20010221',5.370],
['20010222... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendors~main"],{
/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
/*!**************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
... |
#!/usr/bin/env python
import numpy
from shogun import RealFeatures, MSG_DEBUG
numpy.random.seed(17)
traindat = numpy.random.random_sample((10,10))
testdat = numpy.random.random_sample((10,10))
parameter_list=[[traindat,testdat,1.2],[traindat,testdat,1.4]]
def distance_director_euclidean (fm_train_real=traindat,fm_tes... |
# Copyright (C) 2015-2022 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from datetime import datetime
from typing import Dict, List, Optional
from .update_type import UpdateType
@dataclass... |
const CONTRACT_NAME = process.env.VUE_APP_CONTRACT_NAME || 'dev-1614240595058-5266655' // 'NCD-GroupA-Demo'
function getConfig(env) {
switch (env) {
case 'production':
case 'mainnet':
// return {
// networkId: 'mainnet',
// nodeUrl: 'https://rpc.mainnet.near.org',
// contractNa... |
import capitalize from 'lodash/capitalize';
export default class {
/* @ngInject */
constructor($translate, CucCloudMessage, ovhManagerRegionService) {
this.$translate = $translate;
this.CucCloudMessage = CucCloudMessage;
this.ovhManagerRegionService = ovhManagerRegionService;
this.capitalize = cap... |
const urlApi = "https://rickandmortyapi.com/api/character/";
const listEl = document.getElementById("list");
let nextUrl = "";
let prevUrl = "";
const getCharacters = async (url, name = "") => {
if (name !== "") {
var response = await fetch(`${url}?name=${name}`);
} else {
var response = await fetch(url);
... |
var App=function(){var t,e=!1,o=!1,a=!1,i=!1,n=[],l=BaseUrl+"/metronic/",s="global/img/",r="global/plugins/",c="global/css/",d={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},p=function(){"rtl"===$("body").css("direction")&&(e=!0),o=!!navigator.userAgent.match(/MSIE 8.0/)... |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CDXLMemoryManagerTest.h
//
// @doc:
// Tests the memory manager to be plugged in Xerces parser.
//--------------------------------------------------------------... |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# -----------------------------------------------------------------------------... |
"""Append module search paths for third-party packages to sys.path.
****************************************************************
* This module is automatically imported during initialization. *
****************************************************************
This will append site-specific paths to the module sear... |
# fortune_docker/contactus/serializers.py
from rest_framework import serializers
from .models import Contact
class ContactSerializer(serializers.ModelSerializer):
class Meta:
model = Contact
fields = '__all__'
|
# model settings
temperature = 0.01
with_norm = True
query_dim = 128
model = dict(
type='UVCNeckMoCoTrackerV2',
queue_dim=query_dim,
patch_queue_size=256 * 144 * 5,
backbone=dict(
type='ResNet',
pretrained=None,
depth=18,
out_indices=(0, 1, 2, 3),
# strides=(1, 2,... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PIL import Image
from pylab import *
from scipy.misc import toimage
import cv2
import numpy as np
import matplotlib.pyplot as plt
# 1.定义直方图均衡化函数,这里传入的参数是灰度图像的数组和累积分布函数值
def histImageArr(im_arr, cdf):
cdf_min = cdf[0]
im_w = len(im_arr[0])
im_h = len(im_a... |
import{w as n,v as t}from"./index.491886fb.js";const o=Symbol();function r(n){return t(n,o,{native:!0})}function s(){return n(o)}export{r as c,s as u};
|
import discord
from redbot.core import commands, Config, checks
from redbot.core.utils.chat_formatting import escape, info, error
import aiohttp
import asyncio
import datetime
import os
import re
import string
import traceback
import urllib.parse
find_whitespace = re.compile("\\s")
match_file_options = re.compile("|".... |
# Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... |
(function () {
/**
* Create a cached version of a pure function.
* @param {*} fn The function call to be cached
* @void
*/
function cached(fn) {
var cache = Object.create(null);
return function(str) {
var key = isPrimitive(str) ? str : JSON.stringify(str);
var hit = cache[... |
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 S... |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyTensorboardPluginWit(Package):
"""The What-If Tool makes it easy to efficiently and
intuitively explor... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
children: [/*#__PURE__*/_jsx("path", {
d: "M19.47 9.16c-1.1-2.87... |
from typing import Optional
from pydantic import Field, SecretStr
from .base import BaseCustomSettings
class RegistrySettings(BaseCustomSettings):
REGISTRY_AUTH: bool = Field(..., description="do registry authentication")
REGISTRY_PATH: Optional[str] = Field(
None, description="development mode onl... |
//----------------------------------------------------------------------------//
//|
//| MachOKit - A Lightweight Mach-O Parsing Library
//! @file MachOKit.h
//!
//! @author D.V.
//! @copyright Copyright (c) 2014-2015 D.V. All rights reserved.
//!
//! @brief
//! The root include for MachOKit.
//|... |
'use babel';
import React from 'react'
import IconBase from './IconBase'
export default function Emoji_1f6b4_1f3fd(props) {
return (
<IconBase viewBox="0 0 64 64" {...props}>
<g><path fill="#D6A57C" d="M25.073 16.133l2.086-2.655 3.892 9.341-6.033 2.512z"/><path fill="#B58360" d="M22.804 22.119c2.232.354 2... |
function AllData(){
const ctx = React.useContext(UserContext);
return (
<h1>All Data<br/>
{JSON.stringify(ctx)}
</h1>
);
} |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_AMOUNT_H
#define BITCOIN_AMOUNT_H
#include "serialize.h"
#inclu... |
from time import perf_counter
from functools import wraps, lru_cache
def timer(func):
total = 0 # scope: timer()
@wraps(func)
def wrapper(*args, **kwargs):
nonlocal total
start = perf_counter()
result = func(*args, **kwargs)
end = perf_counter()
duration = end - st... |
import React, { Component } from 'react';
import { Grid } from "@material-ui/core";
import ServiceStatusForm from '../forms/ServiceStatusForm';
import TotalStatusForm from '../forms/TotalStatusForm';
import LiveStatusForm from '../forms/LiveStatusForm';
export default class DentalPayerBasic extends Component {
r... |
var struct___m_a_p___m_e_m_o_r_y___r_e_s_u_l_t___e_n_t_r_y =
[
[ "newPtr", "struct___m_a_p___m_e_m_o_r_y___r_e_s_u_l_t___e_n_t_r_y.html#ad88b23eebd5956cee12b51b61027c3be", null ],
[ "originalPtr", "struct___m_a_p___m_e_m_o_r_y___r_e_s_u_l_t___e_n_t_r_y.html#ab6aaa0645df14522f84687b7494d4caa", null ],
[ "siz... |
/* Copyright 2013-2021 Bas van den Berg
*
* 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 agr... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{"+0XP":function(U,A,a){"use strict";(function(m){var g=a("IATT"),s=a("oVif"),i=typeof exports=="object"&&exports&&!exports.nodeType&&exports,y=i&&typeof m=="object"&&m&&!m.nodeType&&m,d=y&&y.exports===i,c=d?g.a.Buffer:void 0,D=c?c.isBuffer:void 0,C=D||s.a;A.a=C}... |
import zipfile
with zipfile.ZipFile('msi-redist.zip') as mcr_installer:
mcr_installer.extractall('/msi-redist')
|