text
stringlengths
3
1.05M
from typing import Any, List, NoReturn, Union from h1st.schema import SchemaValidator from h1st.model_repository import ModelRepository from h1st.core.node_containable import NodeContainable class Model(NodeContainable): """ Base class for H1ST Model. To create your own model, inherit `Model` class and i...
const fs = require('fs') const util = require('util') const path = require('path') const color = require('ansi-colors') const adjustDensitiesAndViewportsWithStats = require('./adjustDensitiesAndViewportsWithStats') const getStats = require('./getStats') const browse = require('./browse') const logger = require('./logge...
import EventsView from './EventsView' import './EventsView.scss' export default EventsView
/* * Copyright 2020 Makani Technologies 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 ...
const $regionFilter = document.querySelector('#region-filter'); const $productFilter = document.querySelector('#product-filter'); const $tableWrapper = document.querySelector('#table-wrapper'); const $table = document.querySelector('#table-wrapper table'); export { $regionFilter, $productFilter, $tableWrapper, $table ...
from display import * from matrix import * from gmath import * from random import randrange def scanline_convert(polygons, i, screen, zbuffer ): vertices = polygons[i:i+3] #find the bottom vertex b = vertices[0] if vertices[1][1] < b[1]: b = vertices[1] if vertices[2][1] < b[1]: b =...
/** ****************************************************************************** * @file stm32f0xx_hal_adc.h * @author MCD Application Team * @version V1.1.0 * @date 03-Oct-2014 * @brief Header file containing functions prototypes of ADC HAL library. ********************************************...
/* Photon by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ (function ($) { var $window = $(window), $body = $("body"); // Breakpoints. breakpoints({ xlarge: ["1141px", "1680px"], large: ["981px", "1140px"], ...
/** * Diamond sweeper * * A Diamond sweeper game in HTML/JavaScript/CSS * * No dependencies - uses Vanilla JS * * @author: Madhankumar J <madhankumar028@gmail.com> */ (function() { 'use strict'; const gridContainer = document.getElementsByClassName('game-container')[0]; const backgroundIm...
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 The PHP Group | +--------------...
from app import mail from flask import current_app from flask_mail import Message from threading import Thread def send_email(subject, sender, recipients, text_body, html_body): msg = Message(subject, sender=sender, recipients=recipients) msg.body = text_body msg.html = html_body Thread(targ...
import itertools import random import logging import numpy as np import matplotlib.pyplot as plt import os from mnist_stdp_multiple_baseline import * from utilis import * from args_mnist import args as my_args # from ax import optimize import pandas as pd from itertools import product import time if __name__ == '__ma...
'''Main tests in API''' import unittest from model.source.rais import Rais class RaisGetOptionsEmpresaTest(unittest.TestCase): ''' Class that tests translation of options from general to datasource-oriented ones ''' def test_rules_empresa_translation(self): ''' Tests if the rules are correctly ...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['en-gb']={"dir":"ltr","editor":"Rich Text Editor","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol",...
""" Github OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/github.html """ from urllib.parse import urljoin from requests import HTTPError from ..exceptions import AuthFailed from .oauth import BaseOAuth2 class GithubOAuth2(BaseOAuth2): """Github OAuth authentication ba...
""" Provides communication with Trello REST API for Member information """ from json import loads from urllib.request import urlopen, Request from urllib.parse import urlencode from .config import API_KEY, MEMBERS_URL def get(token, member_id='me'): params = { 'key': API_KEY, 'token': token } ...
import React from "react"; const SvgCaretIcon = props => ( <svg height={8.308} width={5} {...props}> <defs> <path id="caret-icon_svg__a" opacity={1} fillRule="evenodd" d="M.705 8.308a.594.594 0 0 1-.449-.185.579.579 0 0 1 0-.861l3.206-3.077L.256 1.108a.579.579 0 0 1 0-.862.6...
# 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...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); var Components = require('../components'); var GameObject = require('../GameObject'); var Line = requi...
#ifndef GIM_MATH_H_INCLUDED #define GIM_MATH_H_INCLUDED /*! \file gim_math.h \author Francisco Leon Najera */ /* ----------------------------------------------------------------------------- This source file is part of GIMPACT Library. For the latest info, see http://gimpact.sourceforge.net/ Copyright (c) 2006 Franci...
import React, { Component } from 'react'; import styled from '@emotion/styled' import { engineTypes } from '../roundEngines/engines' import { withRouter } from 'react-router' import { withStyles } from '@material-ui/core/styles'; import { List, ListItem, Select, MenuItem, ListItemAvatar, ListItemSecondaryAction, ListIt...
/* C/C++ language support for compilation. Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ver...
import json from unittest.mock import Mock, patch import graphene import pytest from django.contrib.auth.models import AnonymousUser from django.db.models import Q from django.http import HttpResponse from django.shortcuts import reverse from django.test import RequestFactory from graphql_jwt.shortcuts import get_toke...
/* Do not modify this file directly. It is compiled from other files. */ /* jshint devel: true, onevar: false, smarttabs: true */ /* global AtD, QTags, AtD_l10n_r0ar, edButtons, edButton, switchEditors, AtD_unbind_proofreader_listeners */ /* exported AtD_unbind_proofreader_listeners */ function AtD_restore_text_area(){...
/**************************************************************************** * * ftconfig.h * * ANSI-specific configuration file (specification only). * * Copyright (C) 1996-2021 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, * mo...
const Label = require("./label"); class Statistics { constructor(raw) { this._raw = raw; } getStringValue(label) { return this.getStatistics()[label]; } /** * Return the query statistics * * @return statistics object */ getStatistics() { if (!this._statistics) { this._statistics = {}; for (...
// // AppDelegate.h // HXHAudioRecorder // // Created by 张强 on 16/6/6. // Copyright © 2016年 ColorPen. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/** * The `tagfield` is a combo box improved for multiple value editing, selection and easy * management. * * ### Histroy * * Inspired by the [SuperBoxSelect component for ExtJS 3](http://technomedia.co.uk/SuperBoxSelect/examples3.html), * which in turn was inspired by the [BoxSelect component for ExtJS 2](http:...
import mongoose from 'mongoose' import {modelTypes, questionnaireIdentifiers} from '../../common/constants' import locationSchema from './location-schema' import {getValidator} from '../lib/questionnaire-helpers' import {locateQuestionnaire} from '../lib/geolocate' const {Schema} = mongoose var VolunteerSchema = new...
from unittest import TestCase import logging from mock import patch, Mock from telemetry.software_bom_list import * from telemetry.software_bom_list import get_sw_bom_list, read_mender_file, publish_software_bom from telemetry.constants import UNKNOWN from inbm_lib.constants import SYSTEM_IS_YOCTO_PATH, MENDER_FILE_PAT...
#include "geminc.h" #include "gemprm.h" #include "Nxm.h" #include "pgprm.h" #include "vgstruct.h" #include "drwids.h" #include "hints.h" #include "proto_xw.h" static Widget _group_dlgW; static Widget _group_typeW; static WidgetList _group_buttonW; static int _numGrp = 0, _curIndex = 0; static int _selectTyp = ...
#!/usr/bin/env python3 import os import sys import requests import json from urllib.parse import urlparse from argparse import ArgumentParser sizeof = {'uint8' : 1, 'uint16' : 2, 'int16' : 2, 'float32' : 4, 'float64' : 8} # bytes parser = ArgumentParser(description='Fetch a scientific visualization dataset') group ...
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateTaskStatusRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): Th...
const memoizeHelper = function(_fnct) { const dictionary = [] return function(key, renderers, messageTypes, builders) { let keyData = dictionary.find(data => data.key === key) if (!keyData) { keyData = { key: key, value: _fnct(key, renderers, messageTypes, builders), renderers,...
""" With Realizations Covariant Functorial Construction .. SEEALSO:: - :func:`Sets().WithRealizations <sage.categories.with_realizations.WithRealizations>` for an introduction to *realizations* and *with realizations*. - :mod:`sage.categories.covariant_functorial_construction` for an introduction ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
/* * Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net) * All rights reserved. * 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, ...
import numpy as np import pandas as pd from xgboost.sklearn import XGBClassifier from sklearn import preprocessing from sklearn.model_selection import KFold from sklearn.grid_search import GridSearchCV data_t_ads=pd.read_csv('../JDD_sale/dataset/t_ads.csv') data_t_comment=pd.read_csv('../JDD_sale/dataset/t_comment.csv...
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
// @flow import i18next from 'i18next'; import I18nextXHRBackend from 'i18next-xhr-backend'; import COUNTRIES_RESOURCES from 'i18n-iso-countries/langs/en.json'; import LANGUAGES_RESOURCES from '../../../../lang/languages.json'; import MAIN_RESOURCES from '../../../../lang/main.json'; import languageDetector from './...
''' Layer definitions ''' import json import cPickle as pkl import numpy from collections import OrderedDict import theano import theano.tensor as tensor from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from initializers import * from util import * from theano_util import * from alignment_util i...
"""Utilities for Nobrainer.""" from collections import namedtuple import csv import os import tempfile import numpy as np import tensorflow as tf _cache_dir = os.path.join(tempfile.gettempdir(), "nobrainer-data") def get_data(cache_dir=_cache_dir): """Download sample features and labels. The features are T1-we...
# posts/models.py from django.db import models from django.contrib.auth.models import User # Create your models here. class Post(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=50) body = models.TextField() created_at = models.DateTimeField(auto_n...
const InfoBox = function(parent, agent) { this.render = () => { let el = document.createElement('aside') el.id = 'info-box' el.className = 'info-box' if(agent) { const creature = Creatures.find(agent.name) el.appendChild(new HeaderComponent(`${agent.name}${agent.isKilled() ? ' (killed)' :...
import React from 'react'; import { FaFacebookSquare, FaLinkedin, FaTwitterSquare, FaInstagram, FaGithub } from 'react-icons/fa' const data = [ { id: 1, icon: <FaFacebookSquare size={28} className="social-icon"></FaFacebookSquare>, url: "https://www.facebook.com", }, { id: 2, icon: <FaTwitterSquare ...
if(!dojo._hasResource["dojox.widget.FileInput"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.widget.FileInput"] = true; dojo.provide("dojox.widget.FileInput"); dojo.experimental("dojox.widget.FileInput"); dojo.require("dijit.form._FormWidget"); ...
(function(){var root=this;var previousUnderscore=root._;var ArrayProto=Array.prototype,ObjProto=Object.prototype,FuncProto=Function.prototype;var push=ArrayProto.push,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty;var nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeBin...
# -*- coding: utf-8 -*- # from __future__ import division import numpy from .illuminants import whitepoints_cie1931 class CIELUV(object): def __init__(self, whitepoint=whitepoints_cie1931['D65']): self.whitepoint = whitepoint return def from_xyz100(self, xyz): def f(t): ...
/*- * ‌ * Hedera Mirror Node * ​ * Copyright (C) 2019 - 2022 Hedera Hashgraph, 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-...
import copy my_map = [[] for _ in range(4)] # (number, direction) # for i in range(4): # tmp = list(map(int, input().split())) # for j in range(0, 7, 2): # my_map[i].append([tmp[j], tmp[j+1]-1]) my_map = [[[7, 5], [2, 2], [15, 5], [9, 7]], [[3, 0], [1, 7], [14, 6], [10, 0]], [[6,...
var book = { "name": "Փիլիպեցիներին", "numChapters": 4, "chapters": { "1": { "1": "<sup>1</sup> Պօղոսը եւ Տիմոթէոսը՝ ծառաները Յիսուս Քրիստոսի, բոլոր սրբերին ի Քրիստոս Յիսուս, որ Փիլիպէի կողմերում են՝ եպիսկոպոսներով եւ սարկաւագներով հանդերձ։", "2": "<sup>2</sup> Շնո՜րհ ձեզ եւ խաղաղութի՜ւն մեր Հայր Աստծուց եւ ...
module.exports = { NODE_ENV: '"development"', BASE_API: '"https://www.win-east.cn"', APP_ORIGIN: '"https://wz.com"' }
from django.urls import path from workbook_app import views app_name = 'workbook_app' urlpatterns = [ path('books/', views.BookListView.as_view(), name='books'), path('keep_or_delete/<int:pk>/', views.KeepOrDeleteView.as_view(), name='keep_or_delete'), ]
#!/usr/bin/env python """ CHD - a CLI tool for downloading courses from coursehunters.net. """ __version__ = '0.0.3.6' __author__ = 'Mikhail Sidorov' __license__ = 'MIT'
import { useI18nResultsCount } from '~/composables/use-i18n-utilities' jest.mock('@nuxtjs/composition-api', () => ({ useContext: () => ({ i18n: { tc: (fullKey, resultsCount, { localeCount }) => ({ fullKey, resultsCount, localeCount, }), locale: 'en', }, }), })) des...
# -*- 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/stable/config # -- Path setup ------------------------------------------------------------...
"""Function Introspection Functions are first class objects They have attributes __doc__ __annotations__ We can attach our own attributes def my_func(a, b): return a + b my_func.category = 'math' my_func.sub_category = 'arithmetic' print(my_func.category) # math print(my_func.sub_cate...
import numpy as np from sklearn.metrics import roc_curve def calculate_roc(all_boxes, dataset, iou_thresh=0.5): data = find_tp_fp(all_boxes, dataset, iou_thresh) return roc_curve(data[0], data[1]) def get_iou(bb1, bb2): box1 = [int(round(i)) for i in bb1] box2 = [int(round(i)) for i in bb2] # ...
import argparse import hashlib from pathlib import Path from subprocess import run from typing import List def hash_dir(file_path: Path) -> str: return hashlib.md5(str(file_path.parent).encode('UTF-8')).hexdigest() def prepare_files_list(input_dir, file_mask='*'): """Scan directory for files""" files_li...
/** * */ define(function(require, exports, module) { var comm = require('../../common/common'); function PageScript(){ this.rights = []; } PageScript.prototype = { init: function(){ // 获取到用户信息 ajax.getUserInfo().done(function(user){ page.user = user; }); var appId = ajax.getAppId(); ...
/* * Copyright (C) Roman Arutyunyan * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> #if !(NGX_WIN32) struct ngx_udp_connection_s { ngx_rbtree_node_t node; ngx_connection_t *connection; ngx_buf_t *buffer; }; static void ngx_close_acc...
/** * Copyright 2017, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ import Ember from 'ember'; const { get, warn, computed } = Ember; export default Ember.Component.extend({ /** * @property {DS.Model} report - custom report */ report: un...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Button } from '@material-ui/core'; import { Card } from '@material-ui/core'; import { CardActions } from '@material-ui/core'; import { CardContent } from '@material-ui/core'; import { CardMe...
import peerDepsExternal from "rollup-plugin-peer-deps-external" import resolve from "@rollup/plugin-node-resolve" import commonjs from "@rollup/plugin-commonjs" import typescript from "rollup-plugin-typescript2" import postcss from "rollup-plugin-postcss" const packageJson = require("./package.json") export default {...
/*--------------------------------------------------------------------------  パラメータを拠点画面に表示するスクリプト -arrain- ■概要  「ゴールド」「ボーナス」やユーザー定義のグローバルパラメータを拠点画面に表示するスクリプト ■使い方 拠点で表示させたいパラメータを決めて、RestScene._getParamPartsListに記載する デフォルトでは ・ゴールド ・ボーナス ・発展度(ユーザー定義のグローバルパラメータ) を表示するようになっているので、不要なものをコメントアウトし、必要なものを追加する。 ※「発展度」は、データ設...
import dataclasses import enum import logging from datetime import datetime from os import environ from typing import Dict, NamedTuple __all__ = ( "AdventOfCode", "Branding", "Channels", "Categories", "Client", "Colours", "Emojis", "Icons", "Lovefest", "Month", "Roles", ...
# Copyright 2017 The UAI-SDK 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 applicabl...
# Copyright (c) 2020 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 appli...
import sys try: from pymysql.tests import base import pymysql.cursors except Exception: # For local testing from top-level directory, without installing sys.path.append('../pymysql') from pymysql.tests import base import pymysql.cursors class TestSSCursor(base.PyMySQLTestCase): def test_SS...
import setuptools from distutils.util import convert_path with open("README.md", "r") as fh: long_description = fh.read() main_ns = {} ver_path = convert_path("nndownload/nndownload.py") new_path = somepath('21321654897') with open(ver_path, encoding="utf8") as ver_file: exec(ver_file.read(), main_ns) @dkfj...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiBlaster = function GiBlaster (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 136c60 75-45 45-165 45 51.292 17.097 90.22 30.17 118.125 41.25C164.385 236.653 103.75 249...
"""Create the extraction dataset. Due to deprecation issue, original url can't be reached. Fixes: - replace `_DOWNLOAD_URL` in `bookcorpusopen.py` with https://t.co/J3EaSEgwW0 - you may need to change the source code in the cache file - disable the checksum via `ignore_verifications=False` python -m c...
# import base64 import nacl.encoding import nacl.signing with open("test.pubkey", "rb") as f: verify_key_hex = f.read() with open("message", "rb") as f: message = f.read() print(type(message)) verify_key = nacl.signing.VerifyKey(verify_key_hex, encoder=nacl.encoding.HexEncoder) print("Verify key:", verify_...
from typing import Union import falcon from falcon import Request, Response from sqlalchemy.engine import create_engine, Engine from sqlalchemy.exc import IntegrityError from . import hooks from .types import JSONType from .util import SQLAlchemyMixin, AutoCloseSessionMaker def put_json_to_context(res: Response, it...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "S1AP-IEs" * found in "/home/labuser/Desktop/openairinterface5g_f1ap/openair3/S1AP/MESSAGES/ASN1/R14/s1ap-14.5.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -fno-include-deps -D /home/labuser/Desktop/op...
import re from itemadapter import is_item, ItemAdapter from scrapy.contracts import Contract from scrapy.exceptions import ContractFail from scrapy import spiderloader from scrapy.utils import project from scrapy.selector import Selector from .scrape import get_all_scrapers, scrape class ScrapeNotNone(Contract): ...
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import Navbar from '../navbar/Navbar'; import BottomNav from '../bottomNav/BottomNav'; import TrackCard from '../trackCard/trackCard'; const Treats = ({ allTreats }) => { if (!allTreats) { return null; } ...
/******************************************************************************* * * (C) COPYRIGHT AUTHORS, 2017 - 2020 * * TITLE: API0CRADLE.C * * VERSION: 3.50 * * DATE: 11 Oct 2020 * * UAC bypass method from Oddvar Moe aka api0cradle. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WA...
#!/usr/bin/env python # 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. '''Unit tests for misc.GritNode''' import os import sys if __name__ == '__main__': sys.path.append(os.path.join(os.path.dirname...
/** * Ontology Chooser, use any NCBO ontology with a text input element * Copyright (C) 2010 Jeroen Wesbeek * * 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...
/* -*- C -*- */ /* * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates * * 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...
#!/usr/bin/env python3 import os import re BOLD = "\033[1m" END = "\033[0m" def askQuery(): valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False, "q": False} while True: choice = input("Proceed with renaming? [y/n] ").lower() if choice == "": return T...
# --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import os import subprocess import time import random import shutil import socket import glob import signal import copy import fcntl import logging from pathlib import Path from context...
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 React, { Component } from 'react'; import {connect} from 'react-redux' import GoogleMapContainer from './GoogleMap/GoogleMapContainer'; import MapBoxContainer from './MapBox/MapBoxContainer'; import cs from '../../../services/CommunicationService' class _MapContainer extends Component { handleRadioSelect(id,...
/* eslint-disable import/prefer-default-export */ import { patientActions } from '../providers/PatientProvider'; const getPatient = async (dispatch, client) => { dispatch({ type: patientActions.GET_PATIENT_REQUEST }); try { const data = await client.patient.read(); dispatch({ type: patientActions.GET_PATI...
# -*- coding: utf-8 -*- # # Copyright (c) 2016-2017 Kevin Chung # Copyright (c) 2018 German Mendez Bravo (Kronuz) # Copyright (c) 2020 Mike Kinney # # 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 Sof...
# -*- coding: utf-8 -*- """ pygments.lexers._php_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This file loads the function names and their modules from the php webpage and generates itself. Do not alter the MODULES dict by hand! WARNING: the generation transfers quite much data over your ...
/** * @typescript-eslint 规则参考 * https://www.npmjs.com/package/@typescript-eslint/eslint-plugin#supported-rules */ module.exports = { root: true, parser: '@typescript-eslint/parser', // 指定ESLint解析器 extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'plugin:jsx-control-s...
define([ "knockout", "text!./ConceptListTemplate.html", "conceptpicker/InputTypes/Concept", ], function (ko, template, Concept) { function CocneptListViewModel(params) { var self = this; self.ConceptList = ko.utils.unwrapObservable(params.$raw.ConceptList); self.PickerParams = params.PickerParams; ...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
from boa.interop.Ontology.Contract import Migrate from boa.interop.Ontology.Contract import Destroy from boa.interop.System.Runtime import Notify def Main(operation, args): if operation == "DestroyContract": return DestroyContract() if operation == "MigrateContract": if args[0] != 0: ...
# Generated by Django 2.2.5 on 2020-04-22 01:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='inventory', fields=[ ('id', models.AutoFiel...
'use strict' //---------------------------------------------------------- // modules //---------------------------------------------------------- // node const proc = require('child_process') const fs = require('fs') //---------------------------------------------------------- // logic //-----------------------------...
var searchData= [ ['ijoint_16',['IJoint',['../class_i_joint.html',1,'']]], ['inversekinematicacmearm_17',['InverseKinematicAcmeArm',['../class_inverse_kinematic_acme_arm.html',1,'InverseKinematicAcmeArm'],['../class_inverse_kinematic_acme_arm.html#a1441f25f10a54ec0acc3b4761e695788',1,'InverseKinematicAcmeArm::Inver...
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
# +------------------------------------------------------------------------- # | Copyright (C) 2021 shanhe, Inc. # +------------------------------------------------------------------------- # | Licensed under the Apache License, Version 2.0 (the "License"); # | you may not use this work except in compliance with the Li...
/** * Copyright (c) 2015-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 * @providesModule TabBarIOSExample */ 'use strict'; var React = require('react'); var ReactNative = require('react-native'); v...
#!/usr/bin/python """ Module EDL unit test suite """ import unittest from edl import Parser class ParserTestCase(unittest.TestCase): """tests the Parser """ def test_24fps(self): p = Parser('24') with open('../tests/test_data/test_24.edl') as f: s = p.parse(f) self.a...
import Mongoose from "mongoose"; import Note from "../models/notesModel.js"; import { v4 as uuidv4 } from "uuid"; import user from "../models/userModel.js"; // @route: GET users/notes //@puropose : get all notes from db for single user export const getNotes = async (req, res, next) => { try { const notefetch = a...