text
stringlengths
3
1.05M
// eslint-disable-next-line import/no-extraneous-dependencies const cssnano = require('cssnano'); module.exports = { plugins: [ cssnano({ preset: 'default', }), ], };
const fs = require('fs'); const path = require('path'); const edge = require('edge.js'); const extensions = require('../config/extensions'); const viewPath = path.join(__dirname, './views'); const distPath = path.join(__dirname, '../dist'); const previewPath = path.join(__dirname, '../preview'); const deploymentConfig ...
# Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
from zentral.utils.apps import ZentralAppConfig class ZentralOsqueryAppConfig(ZentralAppConfig): name = "zentral.contrib.osquery" verbose_name = "Zentral Osquery contrib app" permission_models = ( "automatictableconstruction", "configuration", "distributedquery", "distribut...
import React, { Component } from 'react'; import { WithContext as ReactTags } from 'react-tag-input'; import AutoComplete from './composeAutoComplete.style'; function createArray(array) { if (array && array.length > 0) { return array.map(element => `${element.name}<${element.email}>`); } return []; } export...
from dbobjects import DBDataset, DBFile, DBNamedQuery, DBFileSet import json, time from lark import Lark from lark import Transformer, Tree, Token from lark.visitors import Interpreter import pprint CMP_OPS = [">" , "<" , ">=" , "<=" , "==" , "=" , "!="] MQL_Grammar = """ exp: add_exp ...
// Copyright (c) 2011 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. #ifndef COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_ #define COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_ #include <memory> #include <string> ...
# -*- 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...
__version__ = "1.0.12"
from __future__ import print_function import sys sys.path.insert(0,'../') import cv2 import pdb import argparse import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data from torch.autograd import Variable impo...
["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/@mui/system/sx/index.js"],"~:js","shadow$provide.module$node_modules$$mui$system$sx$index=function(global,require,module,exports){global=require(\"module$node_modules$$babel$runtime$helpers$interopRequireDefault\");Object.defineProperty(exports,\"__esMo...
import os from flask import Flask from flask.helpers import send_from_directory from flask_cors import CORS from config import config import logging from logging.handlers import TimedRotatingFileHandler from .middleware.errorHandler import register_errors def create_app(config_name): app = Flask(__name__,static_u...
const got = require('@/utils/got'); const iconv = require('iconv-lite'); const cheerio = require('cheerio'); module.exports = { getUsernameFromUID: async (ctx, uid) => { const key = 'bili-username-from-uid-' + uid; let name = await ctx.cache.get(key); if (!name) { const nameResp...
from qubiter.SEO_simulator import * import tensorflow as tf class SEO_simulator_tf(SEO_simulator): """ TF= TensorFlow This class is a child of SEO_simulator. The class replaces numpy methods by TensorFlow (2.0, Eager) methods when those methods perform the state vector evolution. This allows thos...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiple RPC users.""" from test_framework.test_framework import BitcoinTestFramework from test_f...
const router = require('express').Router() module.exports = router router.use('/users', require('./users')) router.use('/spotify', require('./spotify')) router.use('/genres', require('./genres')) router.use((req, res, next) => { const error = new Error('Not Found') error.status = 404 next(error) })
if (typeof localStorage === 'undefined' || localStorage === null) { const LocalStorage = require('node-localstorage').LocalStorage; GLOBAL.localStorage = new LocalStorage('./storage'); } const storage = {}; storage.setItem = (key, value) => { try { if (typeof value === 'object') { localStorage.setItem...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); const ClassicEditor = require('@ckeditor/ckeditor5-build-classic'); Clas...
import React from "react"; import { Image, ImageBackground, StyleSheet, Text, View } from "react-native"; import Button from "../components/Button"; import routes from "../navigation/routes"; function WelcomeScreen({ navigation }) { return ( <ImageBackground blurRadius={10} style={styles.background} ...
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.file_folder_search_result class FileFolderSearchResult1(object): """Implementation of the 'File/Folder Search Result.1' model. Specifies an array of found files and folders. In addition, a count is provided to i...
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from ..models import User, Post class RegistrationForm(FlaskForm): username = StringField('Username', validators=[DataRequir...
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isValidBST(self, root: Optional[TreeNode]) -> bool: def validate(node, low = -math.inf, high=mat...
/** * * Asynchronously loads the component for TaxanomyReviewAndPublishForm * */ import loadable from 'loadable-components'; export default loadable(() => import('./index'));
import numpy as np import pytest import torch from tests.base import ( images_list, flows_list, NUM_IMAGES, IMAGE_HEIGHT, IMAGE_WIDTH) from flow_transforms import ToTensor, RandomMultiplicativeColor @pytest.fixture def get_tensor_data(images_list, flows_list): tt = ToTensor() images, flows = tt(images_li...
# -*- coding: utf-8 -*- from django.apps import AppConfig class NewsConfig(AppConfig): name = 'news'
import { useQuery } from '@apollo/react-hooks' import { makeStyles, Dialog, DialogContent } from '@material-ui/core' import classnames from 'classnames' import gql from 'graphql-tag' import React, { useState, useContext } from 'react' import { useHistory } from 'react-router-dom' import { AppContext } from 'src/App' i...
from minjector.core.memoizedcallable import MemoizedCallable from minjector.providers.providerbase import ProviderBase from minjector.readermonad.readermonadop import ReaderMonadOp from minjector.core.variableenvironment import VariableEnvironment class SingletonProvider(ProviderBase): def __init__(self, local_fu...
import json import os import argparse if __name__=='__main__': parser = argparse.ArgumentParser() parser.add_argument('-template_file', action='store', dest='template', help='template file with file structure', type=str, default='template.json') parse...
/*! * # Semantic UI 2.0.0 - Rating * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(e,n,t,i){"use strict";e.fn.rating=function(n){var t,a=e(this),o=a.selector||"",r=(new Date).getTime(),s=[],l=ar...
export default JSON.stringify({ "data": { "id": "1234567", "username": "ghaiklor", "full_name": "Eugene Obrezkov", "first_name": "Eugene", "last_name": "Obrezkov", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1574083_75sq_1295469061.jpg", "bio": "This is my bio",...
/* * The MIT License * * Copyright (c) 1997-2020 The University of Utah * * 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 * right...
#-*- coding:utf-8 -*- from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import redirect import json, time from base import BaseView from ..models import User, Session from .. import config class UsersView(BaseView): need_site_permission = True url = r"user_mgr$" group_t...
"""Module containing Database interaction class.""" import datetime from configparser import ConfigParser from typing import Tuple import pandas as pd from .base_classes import DbBaseClass from .helpfer_functions import get_abs_path, get_midnight_datetime, seconds_to_hm class DbInteraction(DbBaseClass): defaul...
from datetime import timedelta from openprocurement.auctions.geb.utils import calculate_certainly_business_date as ccbd class Period(object): pass class Date(object): pass class AuctionDate(Date): name = 'auctionDate' def __init__(self): pass def __get__(self, instance, owner): ...
// SPDX-License-Identifier: Apache-2.0 #pragma once #include "common/span.h" #include "wasi/api.hpp" #include <algorithm> #include <map> #include <mutex> #include <optional> #include <string> #include <string_view> #include <vector> #include <boost/align/aligned_allocator.hpp> #include <dirent.h> #include <fcntl.h>...
import React, { useEffect, useState, useRef } from "react"; import { useParams, useHistory } from 'react-router-dom'; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import { IoChevronBackCircleSharp } from 'react-icons/io5' import { BiMicrophone, BiMicrophoneOff } from 'react-icons/bi' im...
#!/usr/bin/env python import rospy # OpenCV2 for saving an image from cv_bridge import CvBridge, CvBridgeError import cv2 from geometry_msgs.msg import Twist from sensor_msgs.msg import Image from sensor_msgs.msg import CompressedImage from sensor_msgs.msg import Imu from sensor_msgs.msg import LaserScan from nav_msgs....
#!/usr/bin/env python3 import unittest import numpy as np import libpandasafety_py # pylint: disable=import-error from panda import Panda MAX_RATE_UP = 2 MAX_RATE_DOWN = 5 MAX_TORQUE = 150 MAX_RT_DELTA = 75 RT_INTERVAL = 250000 DRIVER_TORQUE_ALLOWANCE = 50; DRIVER_TORQUE_FACTOR = 4; IPAS_OVERRIDE_THRESHOLD = 200 ...
""" File Name: test_process_genomes.py Project: bioseq-learning File Description: """ import os import unittest from io import StringIO from filecmp import dircmp from src.datasets.process_patric_fna_genomes import \ process_patric_fna_genome _TEST_EXAMPLES_DIR_PATH: str = \ os.path.joi...
#include <time.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include "selfdrive/common/params.cc" #define CAPTURE_STATE_NONE 0 #define CAPTURE_STATE_CAPTURING 1 #define CAPTURE_STATE_NOT_CAPTURING 2 #define CAPTURE_STATE_PAUSED 3 #define CLICK_TIME 0.2 #define RECORD_INTERVAL 180 // Time in sec...
// // Limit.h // // Library: Data // Package: DataCore // Module: Limit // // Definition of the Limit class. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Data_Limit_INCLUDED #define Data_Limit_INCLUDED #include "Poco...
DATABASES = { 'default': { 'ATOMIC_REQUESTS': True, 'ENGINE': 'awx.main.db.profiled_pg', 'NAME': "{{ .Values.postgresql.postgresqlDatabase }}", 'USER': "{{ .Values.postgresql.postgresqlUsername }}", 'PASSWORD': "{{ .Values.postgresql.postgresqlPassword }}", {{- if .Va...
""" 8. String to Integer (atoi) https://leetcode.com/problems/string-to-integer-atoi/ Time complexity: O() Space complexity: O() """ from typing import List class Solution: #### 36ms, 37% beat def myAtoi(self, str: str) -> int: str = str.strip() if len(str) == 0: return 0 ...
#!/usr/bin/env python3 # References: # - [System tray does not respect dark theme for symbolic icons\. \(\#824\) · Issues · o9000 / tint2 · GitLab](https://gitlab.com/o9000/tint2/-/issues/824) import signal import gi gi.require_version('Gtk', '3.0') gi.require_version('AppIndicator3', '0.1') from gi.repository import...
module.exports = { 'database' : 'mongodb://localhost:27017/cm', 'secret' : 'clearmarkets' };
# -*- coding: utf-8 -*- # # This file is part of EUDAT B2Share. # Copyright (C) 2018 CERN. # # B2Share 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 2 of the # License, or (at your option) any...
from dataclasses import dataclass from datetime import datetime @dataclass class EventFilters: isActive: bool id: str lable: str value: list[str] # TODO: enum values includeNetflowEvent sectionId: str # TODO enum sectionLabel: str # TODO enum isRequired: bool isActive: bool isEd...
/* */ "format cjs"; /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc2-master-fcd199e */ function mdRadioGroupDirective(e,t,n,i){function r(r,o,a,d){function u(){o.hasClass("md-focused")||o.addClass("md-focused")}function c(n){var i=n.which||n.keyCode;switch(i){case t....
/** * @file update_logger.h * @brief This defines a update trajectory logger which writes the data to a file. * * @author Jorge Nicho * @date April 13, 2016 * @version TODO * @bug No known bugs * * @copyright Copyright (c) 2016, Southwest Research Institute * * @par License * Software License Agreement (Apa...
# -*- coding: utf-8 -*- """ Sahana Eden Volunteers Management (Extends modules/eden/hrm.py) @copyright: 2012-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
''' Copyright(C) 2016 Engineering Department, University of Cambridge, UK. License 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 Unles...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SearchUI.framework/SearchUI */ @interface SearchUIAutoLayout : NSObject + (id)alignLeadingView:(id)arg1 toTrailingView:(id)arg2; + (id)alignLeadingView:(id)arg1 toTrailingView:(id)arg2 priority:(float)arg3; + (id)alignLeadingView:(id)arg1 toT...
(function(){var a=(function(){var f={jY:'A7FG',_:{},status:'unloaded',basePath:(function(){var i=window.CKFINDER_BASEPATH||'';if(!i){var j=document.getElementsByTagName('script');for(var k=0;k<j.length;k++){var l=j[k].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);if(l){i=l[1];break;}}}i...
import { Box, Button, Container, Grid, Link, makeStyles, Typography } from '@material-ui/core'; import React from 'react'; import { useHistory } from 'react-router-dom'; import SVG from '../../assets/img/Main'; import SVGContainer from '../../components/SVGContainer' const useStyles = makeStyles((theme) => ({ item...
import find from 'lodash/find'; export default /* @ngInject */ function(TUC_TELEPHONY_NUMBER_PLANS) { this.getPlanByNumber = function getPlanByNumber(number) { let prefixedNumber; let foundedPlan; if (number) { prefixedNumber = number.serviceName.replace(/^00/, '+'); foundedPlan = find(TUC_T...
var autocompletion_frame_type = new autoComplete({ selector: '#f-type_other_text', minChars: 3, source: function(term, suggest) { term = term.toLowerCase(); var choices = eval($("input[name=all_frame_types]").val()); var matches = []; for (i = 0; i < choices.length; i++) { ...
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
import json import sqlite3 from sqlite3 import Error from network import Speedtest class Database(object): def __init__(self, db_file): self.db_file = db_file self.conn = None def connect(self): if self.conn is None: self.conn = create_connection(self.db_file) ...
"""Base implementation of event loop. The event loop can be broken up into a multiplexer (the part responsible for notifying us of I/O events) and the event loop proper, which wraps a multiplexer with functionality for scheduling callbacks, immediately or at a given time in the future. Whenever a public API ta...
from flask import url_for from marshmallow import ( ValidationError, fields, post_dump, post_load, validate, validates, validates_schema, ) from marshmallow_enum import EnumField from pytz import common_timezones_set from .core.marshmallow import mm from .core.util import DATETIME_FORMAT, c...
const path = require("path") const nodeExternals = require("webpack-node-externals") const TerserPlugin = require("terser-webpack-plugin") const { CleanWebpackPlugin } = require("clean-webpack-plugin") module.exports = { entry: "./src/index.ts", mode: "production", target: "node", devtool: false, output: { ...
/* Copyright (c) 2021 PaddlePaddle 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 applicable law or...
inp = "in.txt" oup = "out.txt" tag ="<p>" tag_end="</p>" spl = [] with open(inp, "r") as f: spl = f.readlines() with open(oup, "w") as f: for s in spl: while s != "\n": d = s.find("[") if d != -1: s = s[:d]+ s[s.find("]")+1] else: f.wr...
'use strict'; const { Race } = require('./enums'); const UnitType = require('./unit-type'); const Ability = require('./ability'); // These constants are helpers to create race-agnostic routines const GasMineRace = { [Race.ZERG]: UnitType.EXTRACTOR, [Race.PROTOSS]: UnitType.ASSIMILATOR, [Race.TERRAN]: Uni...
# !usr/bin/env python3 # -*- coding:utf-8 -*- __author__ = 'yanqiong' import json import logging import os import jwt import requests from shinny_structlog import ShinnyLoggerAdapter import tqsdk class TqAuth(object): """信易用户认证类""" def __init__(self, user_name: str = "", password: str = ""): """ ...
#ifndef LAYER_YOLO_V5_FOCUS #define LAYER_YOLO_V5_FOCUS #include "layer.h" namespace ncnn{ class YoloV5Focus : public ncnn::Layer { public: YoloV5Focus(); virtual int forward(const ncnn::Mat& bottom_blob, ncnn::Mat& top_blob, const ncnn::Option& opt) const; }; }// namespace ncnn #endi...
/// <reference types="cypress" /> describe('Our first suit', () => { it('first test', () => { cy.visit('/') cy.contains('Forms').click() cy.contains('Form Layouts').click() //by Tag Name cy.get('input') //by ID cy.get('#inputEmail1') //by class ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const svelteLanguage_1 = require("../../../svelteLanguage"); const BlockHelpers_1 = require("./BlockHelpers"); class BlockInnerCompletionService { isApplyable(document, position) { return BlockHelpers_1.findNearestNotClosedBl...
""" This is a module used in unit.utils.cache to test the context wrapper functions """ import salt.utils.cache def __virtual__(): return True @salt.utils.cache.context_cache def test_context_module(): if "called" in __context__: __context__["called"] += 1 else: __context__["called"] = ...
from ..builder import DETECTORS from .single_stage import SingleStageDetector @DETECTORS.register_module() class GFL(SingleStageDetector): def __init__(self, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, ...
import { PreventableEvent } from './preventable-event'; /** * The `navigate` event is emitted when using the keyboard arrows. */ export class NavigateEvent extends PreventableEvent { /** * @hidden */ constructor(options) { super(); Object.assign(this, options); } }
# Copyright 2013 Nebula 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 at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
/* * Copyright 2020 Xiaomi * * 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...
import { __decorate } from "tslib"; import { NgModule } from '@angular/core'; import { NgbButtonLabel } from './label'; import { NgbCheckBox } from './checkbox'; import { NgbRadio, NgbRadioGroup } from './radio'; import * as ɵngcc0 from '@angular/core'; export { NgbButtonLabel } from './label'; export { NgbCheckBox } f...
from ryu.base import app_manager from ryu.controller import mac_to_port from ryu.controller import ofp_event from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER from ryu.controller.handler import set_ev_cls from ryu.ofproto import ofproto_v1_3 from ryu.lib.mac import haddr_to_bin from ryu.lib.packet i...
import template from '@babel/template' import _path from 'path' import _fs from 'fs' const wildcardRegex = /\/\*$/ const recursiveRegex = /\/\*\*$/ const buildRequire = template(`for (let key in IMPORTED) { DIR_IMPORT[key === 'default' ? IMPORTED_NAME : key] = IMPORTED[key] }`) const toCamelCase = (name) => name....
/* eslint-env mocha */ 'use strict' const assert = require('assert') const Promise = require('bluebird') const onOrderFill = require('iceberg/events/orders_order_fill') describe('iceberg:events:orders_order_fill', () => { const orderState = { 1: 'some_order_object' } const instance = { state: { gid: 100...
import * as AST from "../lib/ast.js"; import { Compressor } from "../lib/compress/index.js"; import { OutputStream } from "../lib/output.js"; import { parse } from "../lib/parse.js"; import { mangle_properties, reserve_quoted_keys, mangle_private_properties } from "../lib/propmangle.js"; import { base54 } from "../lib/...
""" ASGI config for skill project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
(function($) { // 当domReady的时候开始初始化 $(function() { var $wrap = $('#uploader'), // 图片容器 $queue = $('<ul class="filelist"></ul>') .appendTo($wrap.find('.queueList')), // 状态栏,包括进度和控制按钮 $statusBar = $wrap.find('.statusBar'), // 文...
import { Map, TileLayer } from 'leaflet/dist/leaflet-src.esm'; import { MAP_OPTIONS, TILE_LAYER_URL_TEMPLATE, TILE_LAYER_OPTIONS } from 'constants/config'; import { addViewHandler } from 'map/viewHandler'; import { addZoomHandler } from 'map/zoomHandler'; import { addLocationHandler } from 'map/locationHandler'; ...
#!/usr/bin/env python # Copyright (C) 2011 Paul Marks http://www.pmarks.net/ # # 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 requi...
// Copyright (c) 2021, CODIGO BINARIO and contributors // For license information, please see license.txt frappe.ui.form.on('CFDi Via', { // refresh: function(frm) { // } });
# Copyright 2017 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 applic...
# flake8: noqa from pythonspecific.SomeException import SomeException # sub-modules import pythonspecific.mod_one import pythonspecific.mod_two import pythonspecific.mod_three
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
import React from "react"; import {Card, Button, Badge, Spinner} from "react-bootstrap"; import Axios from "axios"; import {Link} from "react-router-dom"; import {PUBLIC_URL} from "../../../constants"; class ProjectList extends React.Component { state = { projectList: [], isLoading: false, }; ...
#ifndef __STARTSESSION_H_ #define __STARTSESSION_H_ #pragma once #include "../wim_packet.h" namespace core { namespace tools { class http_request_simple; } } namespace core { namespace wim { class start_session : public wim_packet { int32_...
from django.conf import settings from django.template import Library register = Library() @register.simple_tag def project_name(): return settings.PROJECT_TITLE
# 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 # d...
# stdlib import inspect from typing import Any from typing import Callable from typing import Dict from typing import Optional # relative from ..node.common.client import Client from ..node.vm.plan_vm import PlanVirtualMachine from ..pointer.pointer import Pointer from .plan import Plan PLAN_BUILDER_VM: PlanVirtualMa...
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') requirements = [ # TODO: put package requirements here ] test_requirements = [ ...
'use strict'; module.exports = function (PouchDB, opts, callback) { var Promise = require('lie'); var utils = require('./utils'); function makeTestDocs() { return [ {key: null}, {key: true}, {key: false}, {key: -1}, {key: 0}, {key: 1}, {key: 2}, {key: 3}, ...
/****************************************************************************** * Quantitative Kit Library * * * * Copyright (C) 2017 Xiaojun Gao * ...
import React from "react"; import queryString from "query-string"; const About = ({location, match}) => { const query = queryString.parse(location.search); console.log(query); const color = { color: query.color } return ( <div> <h2 style={color}>About</h2> ...
# Copyright 2018 BLEMUNDSBURY AI 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 # # Unless required by applicable law or agreed to ...
# Generated by Django 2.2.8 on 2020-03-07 13:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('maps', '0002_arrangementmapcomponent_tree_index'), ] operations = [ migrations.AddField( model_name='arrangementmapcomponent', ...
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test case ID : C18243593 # Test Case Title : Check that fixed/hinge/ball joints allow constraints to global f...
import argparse import json import logging import os import shutil import subprocess import sys import traceback import yaml import copy import base64 from time import sleep from kubernetes import client as k8s_client, config as k8s_config from tycho.compute import Compute from tycho.exceptions import DeleteException f...
let MprisInterface = require('./mpris-interface'); let dbus = require('dbus-next'); let Variant = dbus.Variant; let { property, method, signal, DBusError, ACCESS_READ, ACCESS_WRITE, ACCESS_READWRITE } = dbus.interface; class RootInterface extends MprisInterface { constructor(player, opts={}) { super('org.mp...