text
stringlengths
3
1.05M
import React from "react"; import * as FaIcons from "react-icons/fa"; import * as AiIcons from "react-icons/ai"; import { sidebarContext } from "./helpers"; export class ToggleSidebarOpen extends React.Component { render() { return ( <sidebarContext.Consumer> {({ sidebar, setSidebarValue }) => ( ...
#!/usr/bin/env python """ Support functions for uframe/component version information. """ __author__ = 'Edna Donoughe' from flask import (jsonify, current_app) from ooiservices.app.uframe import uframe as api from ooiservices.app.main.errors import bad_request from ooiservices.app.uframe.uframe_tools import (uframe_...
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # # License: BSD (3-clause) import copy as cp import numpy as np from ..epochs import Epochs from ..proj import compute_proj_evoked, compute_proj_ep...
import { matcherHint, printReceived } from 'jest-matcher-utils'; import predicate from './predicate'; const passMessage = received => () => matcherHint('.not.toBeArray', 'received', '') + '\n\n' + 'Expected value to not be an array received:\n' + ` ${printReceived(received)}`; const failMessage = received =...
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class CreatePublicZoneResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (...
# Generated by Django 3.1.3 on 2020-12-07 23:09 import django.core.validators from django.db import migrations, models import django.db.models.deletion import django_update_from_dict class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0003_auto_20201206_1634'), ] ...
engine.audio.buffer.impulse.small = (() => { const context = engine.audio.context() const sampleRate = context.sampleRate, size = 1 * sampleRate const buffer = context.createBuffer(1, size, sampleRate) for (let n = 0; n < buffer.numberOfChannels; n += 1) { const data = buffer.getChannelData(n) fo...
import { combineReducers } from "redux"; import podcasts from "./podcasts"; import snippets from "./snippets"; import user from "./user"; import ui from "./ui"; import collections from "./collections"; export default combineReducers({ podcasts, snippets, user, ui, collections });
import torch from mmdet.core import bbox2roi from ..builder import HEADS, build_head from .standard_roi_head import StandardRoIHead @HEADS.register_module() class MaskScoringRoIHead(StandardRoIHead): """Mask Scoring RoIHead for Mask Scoring RCNN. https://arxiv.org/abs/1903.00241 """ def __init__(se...
#pragma once #include <variant> #include <optional> #include <utility> #include <vector> #include <stdexcept> #include <concepts/concepts.hpp> //maybe rename template<typename T> struct ref_or_inplace { //requires default_constructible<T> ref_or_inplace() requires std::is_default_constructible_v<T> :m_data(std:...
from __future__ import unicode_literals from frappe import _ import frappe import unittest class TestESoCApplicant(unittest.TestCase): def validate(self): frappe.throw(_("Test Exception"))
from __future__ import annotations from typing import Type, TypeVar, Union, Tuple, Sized, Mapping, Sequence import typing import enum import sys import re import inspect GenericAlias: Type = typing._GenericAlias if sys.version_info < (3, 9): GenericParameterized = GenericAlias else: GenericParameterized: Type = ty...
# Generated by Django 2.1.7 on 2019-03-25 13:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('qgisserver', '0012_auto_20190305_1011'), ] operations = [ migrations.AlterField( model_name='service', name='active'...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
import Navbar from 'react-bootstrap/Navbar'; import React from 'react'; export default function SingleViewHeader(props) { return ( <> <Navbar bg={'light'}> <Navbar.Brand> <img onClick={()=>{props.onBack()}} alt={'Back'} src={'../resources/arrow-back.png...
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2010 OpenStack 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...
#!/usr/bin/env python3 # # image metadata cleaner # Corey Goldberg, 2014, 2019 # """Recursively scan a directory and clear metadata from image files. * removes all metadata (Exif, IPTC, XMP, GPS Info, comment, thumbnail) * works with .jpg and .png formats * modifications are done in-place requires: * ge...
/*! * VisualEditor ContentEditable AbbreviationAnnotation class. * * @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * ContentEditable abbreviation annotation. * * @class * @extends ve.ce.TextStyleAnnotation * @constructor * @param ...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
import os from datetime import datetime # Mostrar varias informações sobre um determinado arquivo print(os.stat('02.txt')) # Tamanho do arquivo tamanho = os.stat('02.txt').st_size print(tamanho) # Ultima modificação do arquivo data_modificacao = os.stat('02.txt').st_mtime print(datetime.fromtimestamp(data_modificaca...
from qip.ext.kronprod import cdot_loop from qip.ext.kronprod import reduce_measure from qip.ext.kronprod import measure from qip.ext.kronprod import soft_measure from qip.ext.kronprod import measure_probabilities from qip.ext.kronprod import measure_top_probabilities from qip.ext.kronprod import prob_magnitude from qip...
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from foo_containers.djinni #pragma once // python_cdef_ignore #include <stdbool.h> // python_cdef_ignore #include <stdint.h> // python_cdef_ignore void list_string___delete(struct DjinniObjectHandle *); void optional_list_string___delete(struct...
#!/usr/bin/env python """This script shows an example of using the PyWavefront module.""" import ctypes import sys sys.path.append('..') import pyglet from pyglet.gl import * from pywavefront import visualization import pywavefront rotation = 0 meshes = pywavefront.Wavefront('uv_sphere.obj') window = pyglet.window....
# coding=utf-8 import os import re # 将要解析的项目名称 DESPATH = "/Users/wangsuyan/desktop/project/LGSKmart/LGSKmart/Resource/Localizations" ERROR_DESPATH = "/Users/wangsuyan/Desktop/checkLocalizable.log" MAIN_LOCALIZABLE_FILE = "/zh-Hans.lproj/Localizable.strings" _result = {} def filename(filePath): return os.pat...
""" Quantilization functions and related stuff """ from functools import partial import numpy as np from pandas._libs.lib import infer_dtype from pandas.core.dtypes.common import ( ensure_int64, is_categorical_dtype, is_datetime64_dtype, is_datetime64tz_dtype, is_datetime_or_timedelta_dtype, is_integer, ...
# -*- coding: utf-8 -*- """ Created on Wed Sep 24 18:57:55 2014 @author: zhaoyd """ import zipunzip import update_file import urllib2 import glob url='https://codeload.github.com/goagent/goagent/legacy.zip/3.0' f = urllib2.urlopen(url) outname=f.headers.dict['content-disposition'].split('=')[1] if ...
""" Mask R-CNN Base Configurations class. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import numpy as np # Base Configuration Class # Don't use this class directly. Instead, sub-class it and override # the configurations you need to chan...
from datetime import datetime import pytest from freezegun import freeze_time from flirror.exceptions import FlirrorConfigError from flirror.modules import FlirrorModule from flirror.utils import discover_flirror_modules, parse_interval_string, prettydate @pytest.mark.parametrize( "interval_string, result", ...
#ifndef MATCHBOXDB_PAGE_CACHE_H #define MATCHBOXDB_PAGE_CACHE_H #include <cstdint> #include <list> #include <unordered_map> #include <unordered_set> #include "../storage/streamutils.h" #include "metadata_page.h" #include "page.h" #include "slotted_data_page.h" namespace page { class PageDefragger; } namespace page_...
/** * This class is the base for `Binding` and `MultiBinding`. * @private */ Ext.define('Ext.app.bind.BaseBinding', { extend: 'Ext.util.Schedulable', calls: 0, kind: 20, defaultOptions: {}, lastValue: undefined, /** * @cfg {Boolean} [single=false] * This option instructs the bi...
const {createHash} = require('crypto'); const asyncAuto = require('async/auto'); const {getInvoice} = require('ln-service'); const {returnResult} = require('asyncjs-util'); const {shuffle} = require('lodash'); const swapParameters = require('./swap_parameters'); const {getConfirmationCount} = require('./../chain'); c...
'use strict' const assert = require('assert') const sinon = require('sinon') const EventEmitter = require('events') const { ListenerInterface } = require('../../../lib/listeners') const LogCommandListener = require('../../../lib/logger/log-command-listener') describe('log-command-listener', function () { beforeEach...
const isDev = process.env.NODE_ENV === "development"; const origin = isDev ? "http://localhost:7778" : ""; const basePath = window.location.pathname.replace(/\/$/, ""); const API_URL = `${origin}${basePath}${isDev ? "" : "/api"}`; function maybeGetAuthHeader() { let petioJwt = localStorage.getItem("petio_jwt"); if...
import BoundingRectangle from '../Core/BoundingRectangle.js'; import Check from '../Core/Check.js'; import Color from '../Core/Color.js'; import defined from '../Core/defined.js'; import destroyObject from '../Core/destroyObject.js'; import DeveloperError from '../Core/DeveloperError.js'; import PrimitiveType from '../...
import functools import itertools import logging import os import signal import subprocess import sys import threading import time import traceback import weakref from collections import defaultdict from pathlib import Path from types import ModuleType from zipimport import zipimporter import django from django.apps i...
""" Created on Thu Jan 26 17:04:11 2017 @author: Andre Stochniol, andre@stochniol.com Fit unet style nodule identifier on Luna databaset using 8-grid scheme Physical resolution 2x2x2mm Data aggregated, shuffled; wrap augmentation used (swrap) """ import numpy as np from keras.models import load_model,Model from k...
"""Classes for describing work and results. """ import enum import json import pathlib class StrEnum(str, enum.Enum): "An Enum subclass with str values." class WorkerOutcome(StrEnum): """Possible outcomes for a worker. """ NORMAL = 'normal' # The worker exited normally, producing valid output E...
from dbt.api import APIObject from dbt.utils import deep_merge from dbt.node_types import NodeType from dbt.exceptions import raise_duplicate_resource_name, \ raise_patch_targets_not_found import dbt.clients.jinja from dbt.contracts.graph.unparsed import UNPARSED_NODE_CONTRACT, \ UNPARSED_MACRO_CONTRACT, UNPA...
const { arduino } = require('../Setup') module.exports = { startSerialCommunication(req, res) { arduino.startSerial() return res.send(true) }, closeSerialCommunication(req, res) { arduino.closeSerial() return res.send(true) }, sendMessage(req, res) { cons...
/** Extending \b PNWhereNowResponseParser class with properties which can be used internally by \b PubNub client. @author Sergey Mamontov @version 3.6.0 @copyright © 2009-13 PubNub Inc. */ #import "PNWhereNowResponseParser.h" #pragma mark - Class forward @class PNWhereNow; #pragma mark - Private interface de...
import unittest from colorexlib.colorexlib.readers.FileInputReader import FileInputReader class TestInit(unittest.TestCase): def test___init__A(self): FileInputReader("C:\\users\\lronald\\desktop\\myfile.txt") FileInputReader("some string parameter") def test___init__B(self): self.assertRaises(Ty...
from yaost import scad, Vector from yaost.path import Path inf = 1000 tol = 0.005 class Nut(object): _config = { 'M3': (2.75, 6.3, 2.6, 5.5), 'M4': (3.4, 8.0, 3.5, 6.9), 'M5': (4.34, 8.9, 3.82, 7.83), } def __init__(self, class_): if class_ not in self._config: ...
""" Train different CNN models on frames """ import datetime import os from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard from src.config import MODEL_CHECKPOINTS_DIR from src.data import DataSet from src.data_generator import DataGenerator from src.models import ResearchModels def get_generators(m...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ng_opcserver documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this ...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:53:42 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/ActionKit.framework/ActionKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Eli...
/** * * DangerZone * */ import Container from './styles/Container'; const DangerZone = Container; export default DangerZone;
import 'plugins/markdown_vis/markdown_vis.less'; import { MarkdownVisWrapper } from './markdown_vis_controller'; import { VisFactoryProvider } from 'ui/vis/vis_factory'; import { CATEGORY } from 'ui/vis/vis_category'; import markdownVisParamsTemplate from 'plugins/markdown_vis/markdown_vis_params.html'; import { VisTyp...
// SPDX-License-Identifier: BSD-2-Clause-Patent /* * shim - trivial UEFI first-stage bootloader * * Copyright Red Hat, Inc * Author: Matthew Garrett * * Significant portions of this code are derived from Tianocore * (http://tianocore.sf.net) and are Copyright 2009-2012 Intel * Corporation. */ #include "shim....
# Copyright 2016 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...
# Copyright 2019-2021 Simon Zigelli # # 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...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 14, 2021 at 2:26:56 PM Mountain Standard Time * Operating System: Version 14.4 (Build 18K802) * Image Source: /System/Library/PrivateFrameworks/PhotosUICo...
import time import unittest import random import threading import sys import traceback import stackimpact from stackimpact.runtime import min_version class ErrorReporterTestCase(unittest.TestCase): def test_add_exception(self): stackimpact._agent = None agent = stackimpact.start( da...
import numpy as np import backend_full_cuda_internals as backend_cuda import faulthandler def load_mnist(image_file, label_file, dtype=np.float64): imgs = np.fromfile(image_file, dtype=np.uint8) imgs = imgs[16:] # imgs = np.reshape(imgs, [-1, 28, 28]) imgs = np.reshape(imgs, [-1, 28 * 28]) imgs = i...
/*+-----------------------------------------------------------------** ** OpenScop Library ** **-----------------------------------------------------------------** ** generic.c ** **--------------------------------...
/* * @Description: 图片轮播组件 * @Author: wangyifan * @LastEditors: lidikang * @Date: 2019-03-05 16:38:56 * @LastEditTime: 2019-05-07 16:28:41 */ import React from 'react' import Base from '../../Base' import PropTypes from 'prop-types' import styles from './index.less' export default Base( class SwiperPreview ext...
from proteus import * from proteus.default_p import * from dambreak import * from proteus.mprans import MCorr LevelModelType = MCorr.LevelModel coefficients = MCorr.Coefficients(LSModel_index=2,V_model=0,me_model=4,VOFModel_index=1, applyCorrection=applyCorrection,nd=nd,checkMass=Fal...
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
import { CallButton, EndButton, MuteButton, StartVideoButton, StopVideoButton, UnmuteButton, } from "./CallButtons"; import { InputWithCopyIcon } from "./Info"; import DeviceSettings from "./DeviceSettings"; import MediaContent from "./MediaContent"; import { RoomInfo } from "./RoomCreated"; import { useSta...
"""Various management server related constants. @var CONFIG_FILE: Windows INI file like config file. @var SERVER_ADDRESS: Our IP address. @var SERVER_PORT: Out SSL/TLS port. @var REPOSITORY_KEYS_FILE: File containing repository keys, delivered to clients. @var LICENSE_MAX_VALIDITY: Maximum (tempora...
#include<stdio.h> void calcMaxMinAve (int tensu[],int *max,int *min,double *ave); int calcMax(int tensu[]); int calcMin(int tensu[]); double calcAve(int tensu[]); int main(void){ int tensu[10]={0}; int max,min; double ave; int *max_p=&max; int *min_p=&min; double *...
from copy import deepcopy import numpy as np from agents.base_agent import BaseAgent from system.enums import Player #from system.enums import TTFlag class TranspositionEntry: def __init__(self, value, depth, flag): self.value = value self.depth = depth self.flag = flag class NegamaxAg...
import fs from 'fs'; import path from 'path'; const request = (options, callback) => { // console.log(options); let file; if (typeof options === 'object') { file = encodeURIComponent(options.url.trim()); } else if (typeof options === 'string') { file = encodeURIComponent(options.trim())...
var el = document.querySelectorAll('#homepage-generator')[0]; el.innerHTML = ''; var strVar=""; strVar += "<style>"; strVar += " #random-container{"; strVar += " border: 1px solid #ccf;"; strVar += " width: 158px;"; strVar += " \/*height: 154px;*\/"; strVar += " font-size: 9pt;"; strVar ...
##################################################################### # # # /setup_logging.py # # # # Copyright 2013, Monash University ...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:25:07 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E...
import sys import gzip def eprint(*args): print(*args, file=sys.stderr) def open_file(filepath, mode): return (gzip.open if filepath.suffix == ".gz" else open)(filepath, mode) def get_attack_details(ipal_entry): """ Parse the attack-details IPAL field. The field is expected to have the format...
from django.contrib import admin from .models import Product, Order # Register your models here. class ProductAdmin(admin.ModelAdmin): list_display = ('name', 'seller', 'price') class OrderAdmin(admin.ModelAdmin): list_display = ('product', 'buyer', 'state') admin.site.register(Product, ProductAdmin) admin.s...
# -*- coding: utf-8 -*- import os, sys # env sys.path.append('/usr/lib/python2.7/dist-packages/') sys.path.append('/usr/lib/python2.7/') sys.path.append('/usr/local/lib/python2.7/dist-packages/') sys.path.append('/data2/django_1.9/') sys.path.append('/data2/django_projects/') sys.path.append('/data2/django_third/') os...
!function(e){function t(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[v][e]}})}function r(e){if("undefined"!=typeof System&&System.isModule?System.isModule(e):"[object Module]"===Object.prototype.toString.call(e))return e;var t={default:e,__useDefault:e};if(e&&e.__esModule)for(var r in e)Obj...
#!/usr/bin/env python3 import sys # Functions LEFT_PBB = ('(', '[', '{') RIGHT_PBB = (')', ']', '}') def is_pbbmatched(s): # TODO: Process string s using a stack to determine if the symbols are balanced return False # Main execution if __name__ == '__main__': for line in sys.stdin: line = ...
/* file: service.h */ /******************************************************************************* * Copyright 2017-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 ...
import * as React from 'react'; import { Edit, SimpleForm, TextInput, } from 'react-admin'; const TracksEdit = (props) => ( <Edit title="Track" {...props}> <SimpleForm> <TextInput disabled source="_id" /> <TextInput source="name" /> </SimpleForm> </Edit> ); export default TracksEdit;
import matplotlib.pyplot as plt from basic_units import cm fig = plt.figure() ax = fig.add_subplot(111) ax.annotate( "Note 01", [0.5*cm, 0.5*cm] ) # xy and text both unitized ax.annotate('local max', xy=(3*cm, 1*cm), xycoords='data', xytext=(0.8*cm, 0.95*cm), textcoords='data', arrowprops=...
def add_time(start, duration): return new_time
var data = { "body": "<path d=\"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 ...
document.addEventListener('DOMContentLoaded', () => { // Get all "navbar-burger" elements const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); // Check if there are any navbar burgers if ($navbarBurgers.length > 0) { // Add a click event on each ...
""" Store strings as constant variables *Examples:* :: >>> import temp.constants >>> s = temp.constants.SPHERE *Author:* * Jason.Parks, jason@continuityai.com, 2/25/14 8:09 AM """ SPHERE = 'mySphere' JACK = 'JACK'
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates # All rights reserved. # Use of this source code is governed by a BSD 3-Clause License # that can be found in the LICENSE file. """ controller generated to handled auth operation described at: https://connexion.readthedocs.io/en/latest/security.html """ from...
/*global defineSuite*/ defineSuite([ 'DataSources/CzmlDataSource', 'Core/BoundingRectangle', 'Core/Cartesian2', 'Core/Cartesian3', 'Core/Cartographic', 'Core/ClockRange', 'Core/ClockStep', 'Core/Color', 'Core/CornerType', 'Core/defined', ...
const express = require('express') const app = express() const fs = require('fs') // Adds a 1 sec delay for all requests app.use((req, res, next) => setTimeout(next, 1000)) let testFile = './files/testoutput.txt' // clear out file if it already exists try { fs.unlinkSync(testFile); //file removed } catch(err) { ...
var scene; var gameStatus = {}; var mainState = ( function () { var preload = function () { scene = this; gameStatus.capsulaID = utils.preloadCapsuleIdFromURL(); utils.preloadSharedAssets(scene); gameStatus.colors = colors[gameStatus.capsulaID.split('_')[0]]; scene.load.image('cell', 'sopa-de-let...
class FormulaParsingError(Exception): def __init__(self, error, formula): self.error = error self.formula = formula def __str__(self): position = self.error['column'] - 1 return 'Error while parsing the formula:\n\n{}\n{}\n\n'.format(self.formula," "*position + "^") + \ ...
import Vue from 'vue'; import Router from 'vue-router'; import Signin from '@/components/Signin'; import Signup from '@/components/Signup'; Vue.use(Router); export default new Router({ routes: [ { path: '/', name: 'Signin', component: Signin, }, { path: '/signup', name: 'Si...
from django.urls import reverse from nautobot.tenancy.models import Tenant, TenantGroup from nautobot.utilities.testing import APITestCase, APIViewTestCases class AppTest(APITestCase): def test_root(self): url = reverse("tenancy-api:api-root") response = self.client.get("{}?format=api".format(ur...
# -*- coding: utf-8 -*- # Copyright 2016 Messente Communications OÜ # # 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 ...
const os = require("os"); // Configurable const appVersion = '0.9 (Beta)' const productionMode = false // turn to true when compiling! const backendLocation = 'http://127.0.0.1:21168' const expressPort = 8787 // ** Do not touch ** const operatingSystem = os.platform() === 'win32' ? 'windows' : 'linux' module.exports...
app.controller('generateCv', function($scope,$http) { $("#skills").tagsinput(); $( "#skills" ).change(function() { $("#skills_input").val($("#skills").val()); }); $scope.getLocation = function() { if (navigator.geolocation) { navigator.geolocation.getCurre...
#ifndef RecoBTau_JetTagComputerESProducer_h #define RecoBTau_JetTagComputerESProducer_h #include <string> #include <boost/static_assert.hpp> #include <boost/type_traits.hpp> #include <memory> #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "RecoBTau/...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:12:06 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/Frameworks/Intents.framewor...
var dir_2d8fc72a4c2e0737a6aae978c40afcfc = [ [ "onlab", "dir_9bac2c40513587c991a2fa818689ab99.html", "dir_9bac2c40513587c991a2fa818689ab99" ] ];
from django.conf import settings from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from rest_framework import permissions, serializers, viewsets from rest_framework.exceptions import ValidationError from api.base import TranslatedModelSerializer from permissions.api_...
/* Include files */ #include <stddef.h> #include "blas.h" #include "UAV_Fleet_sfun.h" #include "c2_UAV_Fleet.h" #define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber) #define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber) #include "UAV_Fleet_sfun_debug_macros.h" #define _SF_MEX_LISTEN_FOR_...
// pages/data_hi/data_hi.js //小程序只有一个实例 App //const前端定义变量的方式,所谓常量已经过定义不能变化的量 const app=getApp(); console.log(app); Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { console.log(options); console.log(app.content) }, /** * 生命周期函数--监听页面初次渲...
import React, { Component } from "react"; import { PropTypes } from "prop-types"; import cn from "classnames"; import Moment from "moment/moment"; import { getFullName } from "../actions/utils"; import { DATE_TIME_FORMAT } from "@constants"; import { humanFileSize } from "../../common/utils/listing"; class ChatMessage...
import React, { Component } from 'react' import { connect } from 'react-redux' import Tweet from './tweet' class Dashboard extends Component{ render() { return ( <div> <h3 className="center">Your Timeline</h3> <ul className="dashboard-list"> ...
/* eslint-disable unicorn/prevent-abbreviations */ 'use-strict'; const packageFile = require('../package.json'); const logger = require('../services/logger/logger.service'); const app = require('./app'); const http = require('http'); const https = require('https'); const SocketIO = require('./socket'); const httpSer...
""" module to manage users""" from flask_bcrypt import Bcrypt import datetime import jwt from apps import db, app class Users(db.Model): """model to store user details """ __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String, nullable=False) email = db.Co...
class ClientQuery { constructor(clientId) { this.clientId = clientId; } } module.exports = ClientQuery;
import datetime as dt import os from datetime import timedelta from pathlib import Path import holidays import pandas as pd from sqlalchemy import create_engine DB_HOST = 'localhost' DB_PORT = 5432 DB = 'group_16' def main(): user = input('Enter pgadmin username: ') password = input('Enter p...