text
stringlengths
3
1.05M
import pytest from django.urls import resolve, reverse from begameshopapp.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/...
import numpy as np from tqdm import tqdm from math import exp import os import signal import json import argparse from dataset import CRSdataset from model import BERTModel, SASRecModel, SASBERT import torch.nn as nn from torch import optim import torch from nltk.translate.bleu_score import sentence_bleu import nltk im...
// This code is part of the project "Theoretically Efficient Parallel Graph // Algorithms Can Be Fast and Scalable", presented at Symposium on Parallelism // in Algorithms and Architectures, 2018. // Copyright (c) 2018 Laxman Dhulipala, Guy Blelloch, and Julian Shun // // Permission is hereby granted, free of charge, t...
#!/usr/bin/env python3 import utils utils.check_version((3,7)) utils.clear() print("Hello there! Would you like to learn more about me?") answer=input(": ") answer=answer.lower() if answer=="yes": print("""My name is Nolan McIntire. My current favorite game would be League of Legends though it would be hard to c...
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Machinecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framewor...
$(function() { $('#grade').click(function() { MicroModal.show('grade-modal') }) })
from django.urls import path from . import views app_name = "suppliers" urlpatterns = [ path("", views.SupplierListView.as_view(), name="supplier-list"), path("search/", views.SupplierSearch.as_view(), name="supplier-search"), path( "detail/<slug:slug>", views.SupplierDetailView.as_view(), name="...
from django.shortcuts import render, HttpResponse from django.utils.safestring import mark_safe import datetime from datetime import timedelta import json import requests import csv import os from bs4 import BeautifulSoup import numpy as np import pandas as pd from .models import CSV def home_page(request): print...
import http from flask import Blueprint, jsonify, request, render_template, redirect, url_for from helpers.trello import search_cards, get_client, create_webhook, update_webhook from formatters.trello.cards import format_card_extension_data_response from auth import hubspot_signature_required from repositories import A...
from empire.core import * from empire.data_structures.interfaces.abstract_map import AbstractMap from empire.util.log import * from copy import deepcopy T = TypeVar('T') U = TypeVar('U') class ESMap(AbstractMap): """ Basic map implementation that does not throw exceptions. Please note tha...
export default "M8.6 9.6C9 10.2 9.5 10.7 10.2 11H14.2C14.5 10.9 14.7 10.7 14.9 10.5C15.9 9.5 16.3 8 15.8 6.7L15.7 6.5C15.6 6.2 15.4 6 15.2 5.8C15.1 5.6 14.9 5.5 14.8 5.3C14.4 5 14 4.7 13.6 4.3C12.7 3.4 12.6 2 13.1 1C12.6 1.1 12.1 1.4 11.7 1.8C10.2 3 9.6 5.1 10.3 7V7.2C10.3 7.3 10.2 7.4 10.1 7.5C10 7.6 9.8 7.5 9.7 7.4L9...
// @flow strict import getIcon from './get-icon'; import { ICONS } from '../constants'; test('getIcon', () => { expect(getIcon('twitter')).toBe(ICONS.TWITTER); expect(getIcon('github')).toBe(ICONS.GITHUB); expect(getIcon('vkontakte')).toBe(ICONS.VKONTAKTE); expect(getIcon('telegram')).toEqual(ICONS.TELEGRAM); ...
""" Copyright (c) 2018 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 in writin...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.5.5.1_A1; * @section: 15.5.5.1; * @assertion: length property contains the number of characters in the String value represented by this String object; * @description: Cre...
module.exports = { ...require("./25"), ...require("./antonia"), ...require("./arantxa"), ...require("./axelserrat"), ...require("./azriel"), ...require("./caps"), ...require("./da_uiz"), ...require("./f"), ...require("./fibonaxis"), ...require("./holi"), ...require("./linen"), ...require("./love...
const db = require('../data/db-config'); function getPlants() { return db('plants'); } function getPlantByID(plant_id) { return db('plants').where('plant_id', plant_id).first(); } function getPlantsByUserId(user_id) { // select * from plants // left join user_plants // on user_plants.plant_id = plants.plant_id ...
from kandbox_planner.planner_engine.rl.env.reward.reward_function import RewardFunction import kandbox_planner.util.planner_date_util as date_util class WithinWorkingHourReward(RewardFunction): """ Has the following members """ rule_code = "within_working_hour" rule_name = "Job is between start and en...
import { loadFixture, Nuxt } from '../utils' describe.posix('basic sockets', () => { test('/', async () => { const options = await loadFixture('sockets') const nuxt = new Nuxt(options) await nuxt.ready() await nuxt.server.listen() const { html } = await nuxt.server.renderRoute('/') expect(h...
import React from 'react' import Textfit from 'react-textfit' import styled from '@emotion/styled' const Container = styled.div([], props => ({ fontWeight: 'bold', width: '100vw', padding: '0 2.5vw', textAlign: 'center', ...(props.background && { background: props.background }), ...(props.color && { ...
module.exports = { extends: [ 'stylelint-config-recommended-scss', 'stylelint-config-rational-order' ], ignoreFiles: ['src/**/dist/*.{css,scss}'], rules: { 'font-family-no-missing-generic-family-keyword': null, 'no-descending-specificity': null, 'selector-pseudo-class-no-unknown': [ tr...
zipdata({"4818501":[23,"北名古屋市","熊之庄","御榊60番地"],"4810038":[23,"北名古屋市","徳重"],"4810046":[23,"北名古屋市","石橋"],"4810033":[23,"北名古屋市","西之保"],"4810043":[23,"北名古屋市","沖村"],"4818510":[23,"北名古屋市","熊之庄","十二社66-3"],"4810039":[23,"北名古屋市","法成寺"],"4810000":[23,"北名古屋市",""],"4818555":[23,"北名古屋市","山之腰","天神東18"],"4818543":[23,"北名古屋市","九之坪","...
/*Author : Sai Bhargav */ //Static responses const beginMessage = `Hi. Thank you for using your personal assistant \ncould you please try like asking \n1.who won the player of the match with teams and which season \n2.who won the toss \n3.who won the match etc., \nand also you can chit chat with bot asking some friendl...
""" Copyright (c) 2015-2021 Ad Schellevis <ad@opnsense.org> 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, ...
/* * Header Messages * * This contains all the text for the Header component. */ import { defineMessages } from "react-intl"; export const scope = "boilerplate.components.Header"; export default defineMessages({ home: { id: `${scope}.home`, defaultMessage: "HOME", }, about: { id: `${scope}.about...
(function() { /** * Image utility. * @static * @constructor */ tracking.Image = {}; /** * Computes gaussian blur. Adapted from * https://github.com/kig/canvasfilters. * @param {pixels} pixels The pixels in a linear [r,g,b,a,...] array. * @param {number} width The image width. * @param ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
a = [] if not a: print('he ')
import React from "react"; import { connect } from "react-redux"; import styles from "./PartyInput.module.css"; import coverStyles from "../../CoverPage.module.css"; import changeParty from "../../../../../actions/coverPage/changeParty"; class PartyInput extends React.Component { state = { parties: { plai...
module.exports = { name: 'ping', description: 'Ping!', cooldown: 3, execute(message, args) { message.channel.send('Pong!'); }, };
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:52:24 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/AMPCoreUI.framework/AMPCoreUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elia...
/*! @azure/msal-browser v2.22.1 2022-03-07 */ 'use strict'; import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js'; import { StringUtils, ThrottlingUtils, ClientAuthError } from '@azure/msal-common'; import { BrowserAuthError } from '../error/BrowserAuthError.js'; import { TemporaryCacheKeys, ApiId }...
import React, { Fragment, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { BreakLine, Card, CardSubHeader, StatusTable, Row, SubmitBar, Loader, CardSectionHeader, ConnectingCheckPoints, CheckPoint, ActionBar, Menu, LinkButton, Toast, Rating, A...
/**************************************************************************** Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, wo...
export{}from"a"
__filename__ = 'multithread_demo.py' __author__ = 'jwestover@sonobi.com' import multiprocessing import time import random class HelloWorld(object): def __init__(self): self.my_number = 1 self.my_number_2 = multiprocessing.Value('i', 1) #self.lock = threading.Lock() self.lock = mul...
# Copyright (c) 2012 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. import json import logging import os import appengine_blobstore as blobstore from appengine_wrappers import urlfetch import object_store from file_syste...
import json, boto3, base64, hashlib def main(event, context): ''' - triggered by core/authentication - event => {credentials: {key: ''}, options: {key: ''}} - returns a connection object with (at least) a 'mask' property, which is overlaid onto _/connection/{connection_id}.json to enable administrator ...
import { responseFromJson } from "@chiselstrike/api" export default async function chisel(req) { if (req.method == 'GET') { try { let resp_json = []; await Person.cursor().forEach(p => resp_json.push(p)) return responseFromJson(resp_json); } catch (e) { ...
// TODO: Include packages needed for this application const inquirer = require('inquirer'); const fs = require('fs') const generateMarkdown = require('./utils/generateMarkdown') // TODO: Create an array of questions for user input const questions = inquirer.prompt([ { type: 'input', name: 'title',...
module.exports = function(app) { app.get('/api/currentUser', function(req, res) { res.json(req.user); }); };
#include "../dll/zeroload/zeroload.h" #include <stdlib.h> #include <stdio.h> void print_hash(const char *str) { printf("zl_compute_hash(\"%s\", 0) = %08x\n", str, zl_compute_hash(str, 0)); } void print_hashes() { print_hash("ntdll.dll"); print_hash("kernel32.dll"); print_hash("VirtualAlloc"); print_hash("Virtu...
/** * Generated bundle index. Do not edit. */ export * from './public-api'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL2NsaXBib2FyZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFB...
/* * Common values for SHA algorithms */ #ifndef _CRYPTO_SHA_H #define _CRYPTO_SHA_H #include <linux/types.h> #define SHA1_DIGEST_SIZE 20 #define SHA1_BLOCK_SIZE 64 #define SHA224_DIGEST_SIZE 28 #define SHA224_BLOCK_SIZE 64 #define SHA256_DIGEST_SIZE 32 #define SHA256_BLOCK_SIZE 64 #de...
"""Utility functions for stat evaluation.""" import numpy as np from frites.utils import nonsorted_unique from frites.dataset.ds_utils import multi_to_uni_conditions def permute_mi_vector(y, suj, mi_type='cc', inference='rfx', n_perm=1000, random_state=None): """Permute regressor variable f...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _Collapse.default; } }); Object.defineProperty(expor...
import React, { useContext, useState } from "react"; import Container from "../../components/Container"; import { Input } from "antd"; import Context from "../../context/context"; import "./help.css"; const InputField = ({ cb, name }) => { return ( <Input onChange={cb} size="large" placeholder...
const setScore = require('../src/js/helpers/setScore'); jest.mock('../src/js/helpers/setScore'); describe('Testing the post functionality', () => { it('Should save the score into the API with filled fields', () => { setScore.mockResolvedValue({ result: 'Leaderboard score created correctly.', }); s...
const moment = require('moment'); // The original date 'Thu Apr 11 2019 18:39:00 GMT+0800' is taken out from the database // and needs to be formatted as a local format '2019-04-11' // (arr, 'YYYY-MM-DD') // Shorthand. The element of arr must be a string. // (arr, 'workdate') // Shorthand // (arr, ['begindate',...
/**************************************************************************** * arch/ceva/src/common/up_releasepending.c * * 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 co...
'use strict'; var $ = require('jquery'); var App = require('../../app'); var Backbone = require('backbone'); var Marionette = require('backbone.marionette'); var NUSMods = require('../../nusmods'); var _ = require('underscore'); var selectResultTemplate = require('../templates/select_result.hbs'); var template = requi...
"use strict"; var env = require('./env'); function AsyncLoopbackConnection(url) { var m = url.match(/loopback:(\w+)/); if (!m) { throw new Error('invalid url'); } this.id = m[1]; this.lstn = {}; this.queue = []; if (this.id in AsyncLoopbackConnection.pipes) { throw new Erro...
/*! WOW - v1.1.2 - 2015-08-19 * Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */ (function () { var a, b, c, d, e, f = function (a, b) { return function () { return a.apply(b, arguments) } }, g = [].indexOf || function (a) { for (var b = 0, c = this.length; c > b;...
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{528:function(t,a,e){"use strict";e.r(a);var r=e(57),s=Object(r.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"_5-mvvm框架速查-vue"}},[e("a",{staticClass:"h...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:19:54 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/AppleMedi...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const invariant = require('invariant'); const {GraphQLList} = require('graphql'); const {IRVisito...
# Generated by Django 2.1.5 on 2019-04-08 00:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0009_post_visibleto'), ] operations = [ migrations.AddField( model_name='remotefriend', name='displayName', ...
#!/usr/bin/env node /* * Copyright 2019 balena.io * * 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...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:16:47 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/ATFoundat...
import codecs import copy import json import os import shutil from functools import reduce from urllib import parse as url_parser from typing import Dict from pathlib import Path import traceback from flask import Response from .logger_helper import get_logger from . import context _logger = get_logger() """ 文件管理系统 ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.model.document import get_controller from frappe.utils import get_datetime, nowdate, get_url from frappe.website.router import get_pages, get_all_page_c...
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
import saltclass import numpy as np train_X = np.array([[10, 0, 0], [0, 20, 0], [4, 13, 5]]) train_y = np.array([0, 1, 1]) vocab = ['statistics', 'medicine', 'crime'] object_from_df = saltclass.SALT(train_X, train_y, vocabulary=vocab, language='en') X = np.array([[10, 12, 0], [14, 3, 52]]) object_from_df.enrich(metho...
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ from meraki_sdk.api_helper import APIHelper from meraki_sdk.configuration import Configuration from meraki_sdk.controllers.base_controller import BaseController fro...
import Plugin from 'paella-core/js/core/Plugin'; import { loadPluginsOfType } from './Plugin'; const g_shortcuts = {}; export async function loadKeyShortcutPlugins(player) { await loadPluginsOfType(player, "keyshortcut", async (plugin) => { const shortcuts = await plugin.getKeys(); shortcuts.forEa...
import numpy as np from scipy.linalg import solve # 8.1 5(3) x1 = np.array([4.0, 4.2, 4.5, 4.7, 5.1, 5.5, 5.9, 6.3, 6.8, 7.1]) y1 = np.array([102.56, 113.18, 130.11, 142.05, 167.53, 195.14, 224.87, 256.73, 299.50, 326.72]) polyCoeff1 = np.polyfit(x1, y1, 3) poly1 = np.poly1d(polyCoeff1) error1 = np.sum((poly1(x1) - y1...
""" The module contains functions facilitating setting tight-binding parameters and initializing Hamiltonian objects from a Python dictionary. """ from __future__ import absolute_import import sys import numpy as np from nanonet.tb.orbitals import Orbitals from nanonet.tb import tb_params as dme from nanonet.tb.hamilt...
(function() { 'use strict'; var jhiAlert = { template: '<div class="alerts" ng-cloak="">' + '<div ng-repeat="alert in $ctrl.alerts" ng-class="[alert.position, {\'toast\': alert.toast}]">' + '<uib-alert ng-cloak="" type="{{alert.type}}" close="alert.cl...
'use strict' const path = require('path') const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const CopyWebpackPlugin = require('copy-webpack-plugin') const HtmlWebpackPlug...
# -*- coding: utf-8 -*- import os from flask import _app_ctx_stack from .query import Query from .base import BaseOpenDirectory # CONFIGURATION OPEN_DIRECTORY_SERVER = os.environ.get('OPEN_DIRECTORY_SERVER', 'localhost') OPEN_DIRECTORY_BASE_DN = os.environ.get('OPEN_DIRECTORY_BASE_DN', None) class OpenDirectory(B...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "UIButton+LXExpandBtn.h" FOUNDATION_EXPORT double LXCategoryVersionNumber; FOUNDATION_EXPORT const unsigned char LXC...
import { extend } from '../shared/utils.js'; export default function moduleExtendParams(params, allModulesParams) { return function extendParams(obj = {}) { const moduleParamName = Object.keys(obj)[0]; const moduleParams = obj[moduleParamName]; if (typeof moduleParams !== 'object' || moduleParams === nul...
const ExceptionInterface = Jymfony.Component.Routing.Exception.ExceptionInterface; /** * Exception thrown when a mandatory parameter is missing during url generation. * * @memberOf Jymfony.Component.Routing.Exception */ export default class MissingMandatoryParametersException extends mix(InvalidArgumentException, ...
//// [moduleAssignmentCompat1.js] var A; (function (A) { var C = (function () { function C() { } return C; })(); A.C = C; })(A || (A = {})); var B; (function (B) { var C = (function () { function C() { } return C; })(); B.C = C; ...
describe('Core.getCellMetaAtRow', () => { const id = 'testContainer'; beforeEach(function() { this.$container = $(`<div id="${id}"></div>`).appendTo('body'); }); afterEach(function() { if (this.$container) { destroy(); this.$container.remove(); } }); it('should return a row of cel...
from configparser import ConfigParser from dotenv import load_dotenv from mop.azure.utils.create_configuration import change_dir, OPERATIONSPATH, CONFVARIABLES class PyPolicyRunner(): def __init__(self): load_dotenv() with change_dir(OPERATIONSPATH): self.config = ConfigParser() ...
import React from 'react'; import { View, Text } from 'react-native'; import { Actions } from 'react-native-router-flux'; import ButtonSideMenu from './buttonSideMenu'; import LinearGradient from 'react-native-linear-gradient';//eslint-disable-line const styles = { header: { borderWidth: 1, borderColor: '#bc...
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, print_function import os import sys from pex.common import die, open_zip from pex.executor import Executor from pex.interpreter import PythonInter...
# *********************************** # Author: Pedro Jorge De Los Santos # E-mail: delossantosmfq@gmail.com # Blog: numython.github.io # License: MIT License # *********************************** from nusa.core import Element, Model import nusa.core as nc import numpy as np import numpy.linalg as la class No...
import os import urllib.request import subprocess import glob import cv2 import math import numpy as np from config import get_args def load_txt(file_path, mode='trainval'): filename = 'ava_file_names_{}_v2.1.txt'.format(mode) filename = os.path.join(file_path, filename) with open(filename, 'r') as f: ...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
# SOURCE: https://github.com/clinicalml/cfrnet, MIT-License import tensorflow as tf import numpy as np SQRT_CONST = 1e-10 def get_nonlinearity_by_name(name): if name.lower() == 'elu': return tf.nn.elu else: return tf.nn.relu def build_mlp(x, num_layers=1, num_units=16, dropout=0.0, ...
import numpy as np from collections import defaultdict # the type of float to use throughout the session. _FLOATX = 'float32' _EPSILON = 10e-8 _UID_PREFIXES = defaultdict(int) _IMAGE_DIM_ORDERING = 'th' def epsilon(): '''Returns the value of the fuzz factor used in numeric expressions. ''' return _E...
/** * Copyright IBM Corp. 2019, 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 Icon = require('../Icon-1083255b.js'); var React = require...
from reapy import reascript_api as RPR class Source: def __init__(self, id): self.id = id def __eq__(self, other): return self.id == other.id and isinstance(other, Source) @property def _args(self): return self.id, def delete(self): """ Delete source. Be...
// MOST Web Framework 2.0 Codename Blueshift Copyright (c) 2017-2022, THEMOST LP All rights reserved const {FunctionContext} = require('./functions'); /** * @augments DataModel */ class DataFilterResolver { constructor() { // } resolveMember(member, callback) { if (/\//.test(member)) { ...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // Copyright (c) 2011 The LevelDB Authors. All rights reser...
function(page, callback){ var that = this; var key = '%GOOGLEAPIKEY_PSI_NEW%'; //<-- add your API key here https://developers.google.com/speed/docs/insights/v2/first-app#APIKey din't forget to enable it for Google Page Speed Insights if(key==='%'+'GOOGLEAPIKEY_PSI_NEW%'){ callback(that.createResult('SPEED', '...
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e,n,r,i,o,a=t(require("jsbi")),u=t(require("tiny-invariant")),s=(t(require("tiny-warning")),require("@ethersproject/address")),c=t(require("big.js")),d=t(require("toformat")),f=t...
from running.config import Configuration import pytest def test_override(): c = Configuration({ "a": {"b": 1, "c": 42}, "d": ["foo", "bar"] }) c.override("a.c", 43) c.override("d.1", "buzz") assert c.get("a")["b"] == 1 assert c.get("a")["c"] == 43 assert c.get("d") == ["foo...
from wisdem.aeroelasticse.runFAST_pywrapper import runFAST_pywrapper, runFAST_pywrapper_batch from wisdem.aeroelasticse.CaseGen_IEC import CaseGen_IEC eagle = False iec = CaseGen_IEC() iec.Turbine_Class = 'III' # I, II, III, IV iec.Turbulence_Class = 'A' iec.D = 198. iec.z_hub = 119. TMax = 12...
// @ts-check "use strict"; const TestDiscovery = require("./helper/test-discovery"); const TestCase = require("./helper/test-case"); const path = require("path"); const { argv } = require("yargs"); const testSuite = (argv.language) ? TestDiscovery.loadSomeTests(__dirname + "/languages", argv.language) // load co...
# standard libraries import threading import numpy import queue import logging from nion.utils import Event from nion.utils import Observable from nion.swift.model import HardwareSource from ..aux_files.config import read_data class OptSpecDevice(Observable.Observable): def __init__(self, MANUFACTURER): ...
from featuretools import Relationship, Timedelta, primitives from featuretools.entityset.relationship import RelationshipPath from featuretools.primitives.base import ( AggregationPrimitive, PrimitiveBase, TransformPrimitive ) from featuretools.primitives.utils import serialize_primitive from featuretools.u...
const passport = require('passport'); const router = require('express').Router(); const InstagramStrategy = require('passport-instagram').Strategy; const { User } = require('../db/models'); const instagramAPI = require('../db/models/instagramAPI'); module.exports = router; if (!process.env.INSTAGRAM_CLIENT_ID || !proc...
// // FGViewController.h // iFugaDemo // // Created by Sergey Gavrilyuk on 12-07-16. // Copyright (c) 2012 Sergey Gavrilyuk. All rights reserved. // // 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 ...
import torch import torch.nn as nn __all__ = ['OPS', 'ResNetBasicblock', 'SearchSpaceNames'] OPS = { 'none' : lambda C_in, C_out, stride, affine, track_running_stats: Zero(C_in, C_out, stride), 'avg_pool_3x3' : lambda C_in, C_out, stride, affine, track_running_stats: POOLING(C_in, C_out, stride, 'avg', a...
/** * @version 0.9 */ import axios from 'axios' import VersionCheck from 'react-native-version-check' import countries from '../../../../../assets/jsons/other/country-codes' import Log from '../../../../../services/Log/Log' import BlocksoftDict from '../../../../../../crypto/common/BlocksoftDict' import currencyAct...
(function(d){ const l = d['lt'] = d['lt'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"","Align center":"Centruoti","Align left":"Lygiuoti į kairę","Align right":"Lygiuoti į dešinę",Aquamarine:"Aquamarine",Big:"Didelis",Black:"Juoda","Block quote":"Citata",Blue:"Mėlyna",Bold:"Paryškintas","Bullet...
import FWCore.ParameterSet.Config as cms # magnetic field # cms geometry # tracker geometry # tracker numbering # KFUpdatoerESProducer from TrackingTools.KalmanUpdators.KFUpdatorESProducer_cfi import * # Chi2MeasurementEstimatorESProducer from TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi import * # KFTraj...
/** * Provides a bridge between the Managers Namespace and the resolving of const DSUs * @namespace Resolvers */ module.exports = { getProductResolver: require('./ProductResolver'), getBatchResolver: require('./BatchResolver') }