text
stringlengths
3
1.05M
import datetime from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_published_recently(self): ...
Vue.component('shortcut-group', { props: ['shortcuts', 'name'], template: "#shortcut-group", methods: { emitExec(cmd) { this.$emit('send-cmd', cmd) } } }) Vue.component('shortcut-panel', { props: ['shortcut'], template: "#shortcut", data: function () { re...
// @flow import type { Listener, Logger } from './exports-interface'; import type { Listener as Listener_, Logger as Logger_ } from './exports-interface';
const fs = require('fs'); class Plugin { onHandleConfig(ev) { this._config = ev.data.config; } onHandleDocs(ev) { const packagePath = this._config.package || './package.json'; const option = ev.data.option; for (let item of option.replaces) { item.from = new RegExp(item.from); } ...
/* * Copyright 2016 The Imaging Source Europe GmbH * * 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 la...
import json import os import cv2 import numpy as np import segmentation_models_pytorch as smp from catalyst.utils import load_checkpoint from catalyst.utils import set_global_seed, prepare_cudnn from models import CustomNet from .config import load_config def dict_to_json(dict_obj, file_name): with open(file_na...
import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="width", parent_name="scatterpolar.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_nam...
console.log('1.2');
#!/usr/bin/env python3 import csv import argparse def main(): parser = argparse.ArgumentParser(description='Extract queries of provided length') parser.add_argument('-q','--query-filename', help='Query filename', required=True) parser.add_argument('-n','--term-count', help='Number of terms', required=True...
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js");goog.exportSymbol("proto.google.ads.googleads.v2.errors.CustomerFeedErrorEnum",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.errors.CustomerFeed...
/* See LICENSE for license details. */ #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <pwd.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <sys/ioctl.h> #include <sys/select.h> #include <sys/types.h> #include <sys/wait...
import cPickle from pylab import * import sys name = sys.argv[-1] print name f = open(name,'rb') F = cPickle.load(f) print F
/** * jQuery number plug-in 2.1.0 * Copyright 2012, Digital Fusion * Licensed under the MIT license. * http://opensource.teamdf.com/license/ * * A jQuery plugin which implements a permutation of phpjs.org's number_format to provide * simple number formatting, insertion, and as-you-type masking of a number. * ...
"""Reddit data preprocessing.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time from functools import wraps from itertools import chain from collections import Counter, defaultdict from multiprocessing import Pool import numpy as np...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from .config import AppConfig app = Flask(__name__) app.config.from_object(AppConfig()) db = SQLAlchemy(app)
#! /usr/bin/env python # -*- coding:utf-8 -*- #从res_zz_info输出导入到tbl_zz_info中 import re import string import sys import os perr = sys.stderr pout = sys.stdout err_num = 0 line_num = 0 filename = sys.argv[1] select = sys.argv[2] #选择是给哪个列表进行拆分 f = open(filename,'r') #f = open('res_zz_info','r') for eachline in f: tr...
""" Support for Sky Hub. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.sky_hub/ """ import logging import re import requests import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.components.dev...
# -*- coding: utf-8 -*- r""" Quotients of the Bruhat-Tits tree This package contains all the functionality described and developed in [FM2014]_. It allows for computations with fundamental domains of the Bruhat-Tits tree, under the action of arithmetic groups arising from units in definite quaternion algebras. EXAMPL...
""" Profile serializers. """ # Django rest framework from rest_framework import serializers # Models from cride.users.models import Profile class ProfileModelSerializer(serializers.ModelSerializer): class Meta: model = Profile fields = ( "picture", "biography", ...
import { connect } from 'react-redux'; import styles from './Users.module.css'; import AppButton from '../../Shared/Button'; import CallApi from '../../../routes/API/CallApi'; import store from '../../../middleware/Redux/Store'; import React, { useState, useCallback } from 'react'; import { Roles, Groups } from '../../...
var menudata={children:[ {text:"Main Page",url:"index.html"}, {text:"Packages",url:"namespaces.html",children:[ {text:"Packages",url:"namespaces.html"}]}, {text:"Classes",url:"annotated.html",children:[ {text:"Class List",url:"annotated.html"}, {text:"Class Index",url:"classes.html"}, {text:"Class Hierarchy",url:"hiera...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-12 14:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('formation', '0011_auto_20170412_1548'), ] operations = [ migrations.AlterFi...
# Copyright 2019 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 agreed to in writing, ...
import "@tarojs/async-await"; import Taro, { Component } from "@tarojs/taro"; import { Provider } from "@tarojs/redux"; import { set as setGlobalData } from "./global_data"; // 全局变量文件 import getChannel from "./utils/channel"; import { applicationAccredit } from "./utils/accredit"; // 授权文件 import dva from "./utils/dva";...
// // Copyright 2012 The Android Open Source Project // // Manage a resource ID cache. #ifndef RESOURCE_ID_CACHE_H #define RESOURCE_ID_CACHE_H namespace android { class android::String16; class ResourceIdCache { public: static uint32_t lookup(const android::String16& package, const android::String16&...
var alt = require("../alt-instance"); var SettingsActions = require("../actions/SettingsActions"); var IntlActions = require("../actions/IntlActions"); var Immutable = require("immutable"); var _ =require("lodash"); const CORE_ASSET = "BTS"; // Setting this to BTS to prevent loading issues when used with BTS chain whi...
import Typography from "typography" import theme from "typography-theme-funston" const typography = new Typography(theme, {baseFontSize: "18px"}) export default typography export const rhythm = typography.rhythm
from databases import Database from ormar import ModelMeta from sqlalchemy import MetaData from monty import constants database = Database(constants.Database.postgres_bind) metadata = MetaData() class BaseMeta(ModelMeta): """Base Metadata class, as all models use the same metadata.""" metadata = metadata ...
""" WSGI config for predict_it project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION...
from unittest import TestCase from alchy import manager from alchy._compat import iteritems from . import fixtures class TestBase(TestCase): config = { 'SQLALCHEMY_DATABASE_URI': 'sqlite://' } @property def models(self): return fixtures.Models.values() @property def model...
// // CircuitConfiguration.h // Numerical_Test // // Created by jeffrey_MAC on 2015/6/3. // Copyright (c) 2015年 jeffrey_MAC. All rights reserved. // #ifndef __Numerical_Test__CircuitConfiguration__ #define __Numerical_Test__CircuitConfiguration__ #include <stdio.h> #include "MAT.h" #include "VEC.h" bool isVirtex(...
/** @file Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.o...
from tinybaker import InputTag, OutputTag, cli infile = InputTag("infile") outfile = OutputTag("outfile") def script(): with infile.open() as f: contents = f.read() with outfile.open() as f: f.write(contents + " but different") if __name__ == "__main__": cli(locals())
import pytest from tests.functional.plots import with_confirmation, without_confirmation, \ refuse_with_confirmation, history_changed, history_not_changed, \ select_command_with_arrows, how_to_configure python_3 = ('thefuck/python3-zsh', u'''FROM python:3 RUN apt-get update ...
//########################################################################## //# # //# CLOUDCOMPARE PLUGIN: qEDL # //# # //# This pr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2018 The IDOLCOIN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_DB_H #define BITCOIN_DB_H #include "main.h" #include <map> #include <...
// dumprestore_auth2.js // Tests that mongodump and mongorestore properly handle access control information // Tests that the default auth roles of backup and restore work properly. var dumpRestoreAuth2 = function(backup_role, restore_role) { t = new ToolTest("dumprestore_auth2", {auth: ""}); coll = t.startD...
/* * This file is part of F.A.T.E - the Fight And Travel game Engine. * Copyright (c) 2015-2016 Yoan Lecoq (yoanlecoq.io at gmail.com) * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from the * use of this softw...
"""Constants for AccuWeather integration.""" from __future__ import annotations from typing import Final from homeassistant.components.sensor import SensorStateClass from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDI...
#!/usr/bin/env python3 fib = [1, 1] for x in range(2, 10): fib.append(fib[-1] + fib[-2]) print(fib)
from importlib import import_module def import_string(string_path): module_paths = string_path.rsplit('.', 1) if len(module_paths) != 2: raise ImportError(f'Path "{string_path} must be a dotted path') module_path, class_name = module_paths try: module = import_module(module_path) ...
'use strict' const getUniqueErrorMessage = (err) => { let output try { let fieldName = err.message.substring(err.message.lastIndexOf('.$') + 2, err.message.lastIndexOf('_1')) output = fieldName.charAt(0).toUpperCase() + fieldName.slice(1) + ' already exists' } catch (ex) { output = ...
import EmberObject from '@ember/object'; import { test, module } from 'qunit'; import { computed } from 'ember-decorators/object'; import { argument } from '@ember-decorators/argument'; import { type } from '@ember-decorators/argument/type'; import { immutable } from '@ember-decorators/argument/validation'; module('@...
""" MIT License Copyright (c) 2021 Ivan Sosnovik, Artem Moskalev Copyright (c) 2018 Microsoft (Houwen Peng, Zhipeng Zhang) """ from yacs.config import CfgNode as CN config = CN() config.SIAMFC = CN() config.SIAMFC.TRAIN = CN() config.SIAMFC.DATASET = CN() config.SIAMFC.DATASET.GOT10K = CN() # general ...
import React from 'react'; import { Container, Row, Col, Form, FormControl } from 'react-bootstrap'; import Button from '@core/components/CustomButton/CustomButton'; import avatar from 'assets/img/default-avatar.png'; const LockScreenPage = () => { return ( <Container> <Row> <Col md={{ span: 4, off...
#pragma once #include "HTTPSClient.h" HTTPSClient::Reply request(const HTTPSClient::Request &req);
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
from pathlib import Path import numpy as np import pytest from unittest.mock import Mock from typing import List, Text, Dict, Any import rasa.model from rasa.shared.nlu.training_data.features import Features from rasa.nlu import train from rasa.nlu.classifiers import LABEL_RANKING_LENGTH from rasa.nlu.config import R...
"""BBot engine that calls dialogflow.""" import logging import json from bbot.core import BBotCore, ChatbotEngine, ChatbotEngineError, BBotLoggerAdapter import dialogflow from google.oauth2.service_account import Credentials class DialogFlow(ChatbotEngine): """ BBot engine that calls external program. """...
var array_quiz_answers = []; var array_quiz_results = []; var quiz_answered_questions = []; var quiz_user_answers = []; var quiz_correct_count = 0; var is_last_question_answered = false; //get quiz answers function get_quiz_answers(post_id) { var data = { "post_id": post_id }; data[csfr_token_name]...
module.exports = { semi: true, singleQuote: true, trailingComma: 'all', tabWidth: 2, printWidth: 120, };
function Audio(){ var self = this; var explosions = []; var background; var explosionIndex = 0; var pickupEffect; var pickupExplosion; var baseShot; var toneShots; const toneShotsCount = 5; self.preload = function(){ pickupEffect = loadSound("assets/audio/pickupEffect.w...
"use strict"; // This icon file is generated automatically. Object.defineProperty(exports, "__esModule", { value: true }); var PlayCircleTwoTone = { "icon": function render(primaryColor, secondaryColor) { return { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path",...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/image_annotator.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from...
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import url from 'url'; import _ from 'underscore'; import ReactTooltip from 'react-tooltip'; import Collapse from 'react-bootstrap/esm/Collapse'; /** * A collapsible panel that is meant to be shown near top of Item views. * Is meant to dis...
#include <math.h> void JacobianVNLEffects(double *NVJ, double *q, double *qdot) { double t1; double t10; double t100; double t1004; double t1005; double t1007; double t1008; double t101; double t1010; double t1011; double t1012; double t1013; double t1015; double t1016; double t1017; dou...
import numpy as np import spacy from allennlp.data import Instance from allennlp.data.dataset_readers import DatasetReader from allennlp.data.fields import (ArrayField, Field, TextField, MetadataField, SequenceLabelField) from allennlp.data.tokenizers import Token from collections imp...
# ------------------------------------------------------------------------ # Radio Voice Resource Loader - Resources # # Does a put-item for entries not already in the table # # ------------------------------------------------------------------------ from __future__ import print_function # Python 2/3 compatibility i...
# Generated by Django 3.1.7 on 2021-03-07 10:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rooms', '0001_initial'), ] operations = [ migrations.CreateModel( name='RoomType', fields=[ ('id', m...
var NSEAPI = require('./service/API'); var merge = require('lodash/merge'); /** * Returns market status * true => market Close * false => market Open * @returns {boolean} */ function getMarketStatus() { return NSEAPI.getMarketStatus(); } /** * API returning indices list * @returns {*} */ function getIndic...
class GameInstall { /** * first 3 bits are for the installation status. next 2 bits are for download/queue status. */ static UNKNOWN = 0; static INSTALLED = 1; static PLAYABLE = 3; static DOWNLOADED = 7; static DOWNLOADING = 8; static QUEUED = 16; /** * @type {UNKNOWN|INSTALLED|PLAYABLE|DOWNLOADED|DOWNLO...
import { ColumnView } from '../scene/view/column.view'; import { DataColumnModel } from './data.column.model'; import { TemplatePath } from '../template/template.path'; TemplatePath.register('text-cell', (template, column) => { return { model: template.for, resource: column.key }; }); TemplatePath.register('tex...
module.exports = { semi: true, trailingComma: "all", singleQuote: true, printWidth: 100, tabWidth: 2, bracketSpacing: true, };
"""Python setup.py for fastapi_template package""" import io import os from setuptools import find_packages, setup def read(*paths, **kwargs): """Read the contents of a text file safely. >>> read("fastapi_template", "VERSION") '0.1.0' >>> read("README.md") ... """ content = "" with io...
define(function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var HtmlMode = require("./HtmlMode").Mode; var LuaMode = require("./lua").Mode; var LuaPageHighlightRules = require("./luapage_highlight_rules").LuaPageHighlightRules; var Mode = function() { // This work-around is needed t...
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix import random from NiaPy.algorithms.basic import DynNpMultiStrategyDifferentialEvolution from NiaPy.algorithms.basic.de import CrossBest2, Cr...
/** * \file PnlWznmIexList.h * job handler for job PnlWznmIexList (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifndef PNLWZNMIEXLIST_H #define PNLWZNMIEXLIST_H // IP include.spec --- IN...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "WebviewJSEventHandlerBase.h" @interface WebviewJSEventHandler_launchGameVideoEditor : WebviewJSEventHandlerBase { } - (void)handleJSEvent:(id)arg1 HandlerFacade:(id)arg2 ...
import { ANI_CLOSE, ANI_DURATION } from '../../constants' import { setStatusBarStyle } from '../../bridge' import { closeWebview } from './util' let firstBackTime = 0 function quit () { if (!firstBackTime) { firstBackTime = Date.now() plus.nativeUI.toast('再按一次退出应用') setTimeo...
import{ZIndexUtils as e,DomHandler as t,ConnectedOverlayScrollHandler as s}from"primevue/utils";import i from"primevue/overlayeventbus";import n from"primevue/inputtext";import{resolveComponent as l,openBlock as r,createBlock as a,createVNode as o,mergeProps as p,createCommentVNode as d,Teleport as u,Transition as h,wi...
'use strict'; const nunjucks = require('nunjucks'); const path = require('path'); const baseDir = path.resolve(__dirname, '../../templates'); const docTpl = path.join(baseDir, 'doc.njk'); const example_iFrameTpl = path.join(baseDir, 'example', 'base.njk'); const fontFaceTpl = path.join(baseDir, 'fonts', 'font_face.nj...
# Copyright (c) Aaron Gallagher <_@habnab.it> # See COPYING for details. import string import pytest from passacre.schema import multibase_of_schema from passacre import features, generator, signing_uuid _shush_pyflakes = [features] hex_multibase = multibase_of_schema([string.hexdigits[:16]] * 64) class FakeYubi...
"use strict";importScripts("../components/lunr.js-0.5.12/lunr.min.js");var index=lunr(function(){this.ref("path"),this.field("titleWords",{boost:50}),this.field("members",{boost:40}),this.field("keywords",{boost:20})}),searchData={},searchDataRequest=new XMLHttpRequest;searchDataRequest.onload=function(){searchData=JSO...
from __future__ import print_function, division, unicode_literals, absolute_import from six.moves.queue import Queue """ This module supplies a single class, the Container. The idea is that the root widget (the GUI mainwindow) has a single Container property. Since all sub-widgets can get a reference to the root window...
var currentDate = moment().format("LLLL"); console.log(currentDate); $(".lead").append(currentDate); $(".saveBtn").on("click", function(){ console.log("I have clicked the button"); //grab the value, and the time, set both to separate variables and tell it to grab //grab description in one variable...
import { useState, useEffect } from "react"; import "./App.css"; import Todo from "./page/todo"; import "./page/todos.css"; function App() { const [isDarkMode, setIsDarkMode] = useState(JSON.parse(localStorage.getItem("isDarkMode"))); useEffect(() => { isDarkMode ? document.body.classList.add("dark-mode"):...
# 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 PropTypes from 'prop-types'; import { withStyles } from '@6thquake/react-material/styles'; import Switch from '@6thquake/react-material/Switch'; import Paper from '@6thquake/react-material/Paper'; import Collapse from '@6thquake/react-material/Collapse'; const styles = theme => ({ r...
from eth_hash.auto import keccak from eth_typing import ( Address, Hash32 ) from eth_utils import ( ValidationError, get_extended_debug_logger, int_to_big_endian, ) import rlp from trie import ( HexaryTrie, exceptions as trie_exceptions, ) from eth._utils.padding import ( pad32, ) from ...
/* * Author: Abdullah A Almsaeed * Date: 4 Jan 2014 * Description: * This is a demo file used only for the main dashboard (index.html) **/ /* global moment:false, Chart:false, Sparkline:false */ $(function () { 'use strict' // Make the dashboard widgets sortable Using jquery UI $('.connectedSortable'...
var callbackArguments = []; var argument1 = function (a, b) { callbackArguments.push(arguments) return (a || '').toString() + (b || '').toString(); }; var argument2 = function (a, b) { callbackArguments.push(arguments) i++; if (i <= 4) { arr.push(a + 3); } ; return b; }; var ...
#pragma once #include <memory> #include <string> #include "envoy/admin/v3/config_dump.pb.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/config/endpoint/v3/endpoint.pb.h" #include "envoy/config/listener/v3/listener.pb.h" #include "envoy/config/route/v3/route.pb.h" #include "test/common/grpc/grpc_c...
#!/usr/local/bin/python3 import json import requests import get_issues_updated_youtrack import datetime import time from datetime import datetime, timedelta import securer_templates api_token = securer_templates.youtrack_credentials['token'] ytrck_url = securer_templates.youtrack_credentials['link'] headers = {'Accep...
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or deriv...
angular.module('app.services.typing', []) /** */ .factory('Typing', [ 'SkygearChat', 'Skygear', 'Users', '$q', '$rootScope', '$state', function(SkygearChat, Skygear, Users, $q, $rootScope, $state) { /* byConversation hold the text that is read to be displyed by view. * * { * "conversation/id"...
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml. """ Auto-generated class for EditMilestoneOption """ from datetime import datetime from six import string_types from . import client_support class EditMilestoneOption(object): """ auto-generated. don't touch. """ @sta...
// pages/server_form/index.js const utils = require("../../utils/util.js") const { $Message } = require('../../ui/iview/base/index'); const { $Toast } = require('../../ui/iview/base/index'); const app = getApp() Page({ /** * 页面的初始数据 */ data: { address: '', password: '', remark: '' }, /*...
# Copyright 2016 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...
""" Internal package providing a Python CRUD interface to MLflow experiments and runs. This is a lower level API than the :py:mod:`mlflow.tracking.fluent` module, and is exposed in the :py:mod:`mlflow.tracking` module. """ import time import os from mlflow.store.tracking import SEARCH_MAX_RESULTS_DEFAULT from mlflow....
/* * Copyright(c) 2019 Intel Corporation * SPDX - License - Identifier: BSD - 2 - Clause - Patent */ #ifndef EbComputeSAD_AVX2_h #define EbComputeSAD_AVX2_h #include "EbDefinitions.h" #ifdef __cplusplus extern "C" { #endif void ext_sad_calculation_8x8_16x16_avx2_intrin(uint8_t *src, uint32_t src_stride, uint8_t *ref,...
'use strict'; /** * @ngdoc service * @name clientApp.Task * @description * # Task * Factory in the clientApp. */ angular.module('clientApp') .factory('Task', function ($resource) { return $resource('http://localhost:8080/api/tasks/:id',{id:'@id'}); });
from pathlib import Path import ldap3 import lookup.sds_client as sds_client from definitions import ROOT_DIR MHS_TEST_DATA_PATH = Path(ROOT_DIR) / 'lookup' / 'tests' / 'data' SERVER_INFO_PATH = str(MHS_TEST_DATA_PATH / 'my_real_server_info.json') SCHEMA_PATH = str(MHS_TEST_DATA_PATH / 'my_real_server_schema.json') ...
/***************************************************************/ /* $Id: //WIFI_SOC/MP/SDK_4_3_0_0/RT288x_SDK/source/linux-2.6.36.x/drivers/isdn/hisax/hfc4s8s_l1.h#1 $ */ /* */ /* This file is a minimal required extraction of hfc48scu.h */ /* (Genero 3.2...
import _plotly_utils.basevalidators class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="zoom", parent_name="layout.mapbox", **kwargs): super(ZoomValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, e...
#!/Users/janten/Desktop/ESP32-Paxcounter/venv/bin/python3.9 # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and temp...
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
const assert = require('assert').strict; const axios = require('axios'); const url = require('url'); const app = require('../src/app'); const port = app.get('port') || 8998; const getUrl = pathname => url.format({ hostname: app.get('host') || 'localhost', protocol: 'http', port, pathname }); desc...
# coding: utf-8 # # Copyright 2019 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 "lice...
function isNodeJS() { return Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"; } const isNode = isNodeJS(); module.exports = isNode;
""" WSGI config for meta_efa project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION``...