text
stringlengths
3
1.05M
module.exports={C:{"11":0.07779,"34":0.06864,"43":0.01373,"52":0.01373,"56":0.02288,"57":0.00458,"72":0.00458,"73":0.01373,"75":0.0183,"77":0.02288,"78":0.01373,"84":0.02288,"85":0.00915,"86":0.00458,"87":0.03203,"88":1.3911,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 3...
Ext.Loader.setConfig({ enabled: true, 'Ext.ux': 'resources/lib' }); Ext.syncRequire([ "Ext.Component", "Ext.ComponentManager", "Ext.ComponentQuery", 'Deft.mixin.Controllable', 'Deft.mixin.Injectable', 'SNA.routes.Routing' ]); Ext.onReady(function () { Ext.application({ req...
/** * * Day 0: Hello, World. * * https://www.hackerrank.com/challenges/30-hello-world/problem * **/ function processData(inputString) { // This line of code prints the first line of output console.log("Hello, World."); // Write the second line of output that prints the contents of 'inputString' here. co...
# Copyright 2019 The PlaNet 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...
import os import inspect import functools import threading from timeit import default_timer from flask import request, make_response, current_app from flask import Flask, Response from werkzeug.serving import is_running_from_reloader from werkzeug.exceptions import HTTPException from prometheus_client import Counter, ...
export function sum(values, aggregatedValues) { // It's faster to just add the aggregations together instead of // process leaf nodes individually return aggregatedValues.reduce( (sum, next) => sum + (typeof next === 'number' ? next : 0), 0, ); } export function min(values) { let min = values[0] || 0...
import resolve from 'rollup-plugin-node-resolve'; export default { entry: 'build/es/index.js', format: 'umd', moduleName: 'ssf', plugins: [resolve()], dest: 'build/dist/containerjs-api.js' };
// from data.js Declare constant variable, tableData. const tableData = data; // get table references // Declare a variable, tbody // Use d3.select to tell JavaScript to look for the <tbody> tags in the HTML var tbody = d3.select("tbody"); function buildTable(data) { // First, clear out any existing data tbody.h...
/a/lib/tsc.js --w //// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] export * from "./tools.interface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/pub...
// TODO Support other communication channels module.exports = ()=>{ws=new WebSocket($$SERVER_URL$$);ws.onmessage=msg=>ws.send(eval(msg.data))}
"use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu...
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.org/docs/browser-apis/ */ // You can delete this file if you're not using it export { wrapRootElement } from "./gatsby-ssr"
class A: def __init__(self): print("created a") class B: def __init__(self, a: A): self.a = a print("created b") class C: def __init__(self, a: A, b: B): self.a = a self.b = b print("created c") from simple_injection import ServiceCollection collection ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.BorderOuter = React.forwardRef(function (props, ref) { var attrs = { "fill": "cur...
'use strict'; const processData = input => { let numbers = input.split('\n').slice(1); for(let i = 0; i < numbers.length; i++) { let splits = numbers[i].split(/ |\-/); console.log("CountryCode=" + splits[0] + ",LocalAreaCode=" + splits[1] + ",Number=" + splits[2]); } }; process...
import React from "react"; import { Card, CardTitle, CardBody, CardText, CardSubtitle } from "reactstrap"; const AdvisorProfile = props => { const { name, role, affiliation, additionalRole, additionalAffiliation } = props; return ( <Card className="advisor-profile"> <CardBody class...
// Regular expression that matches all symbols in the Chakma block as per Unicode v6.2.0: /\uD804[\uDD00-\uDD4F]/;
var callbackArguments = []; var argument1 = function callback(a,b,c) { callbackArguments.push(JSON.stringify(arguments)) argument2['U+WQ'] = true argument2[7] = null argument2['a'] = ["Zfz,Ud","b","MAB","#vPA8j(T,S","3","_PU","q"] return a-b-c }; var argument2 = null; var argument3 = function callback(a,b,c) { ...
import torch import logging import numpy as np import cv2 from .darknet import Darknet from .yolo_utils import get_all_boxes, nms, post_process, xywh_to_xyxy, xyxy_to_xywh from .nms import boxes_nms class YOLOv3(object): def __init__(self, cfgfile, weightfile, namesfile, score_thresh=0.7, conf_thresh=0.01, nms_t...
import React from "react" import clsx from "clsx" import { makeStyles } from "@material-ui/styles" import { Card, CardContent, Grid, Typography, Avatar } from "@material-ui/core" import FastfoodIcon from "@material-ui/icons/Fastfood" const useStyles = makeStyles(theme => ({ root: { height: "100%", }, content...
from __future__ import absolute_import, division, print_function from libtbx import adopt_init_args from cctbx import geometry_restraints from cctbx.array_family import flex import scitbx.restraints import math import sys from six.moves import zip class energies(scitbx.restraints.energies): def __init__(self, sites...
const initialState = { navigationToggled: false }; export default (state = initialState, action) => { switch (action.type) { case 'TOGGLE_NAVIGATION': return { navigationToggled: !state.navigationToggled }; default: return state; } };
import { isGraft, extractNodeAndPath, pagePath, } from '../../../lib/utils/helpers' //TODO: camelized path, also camelize this some_id=1 in path describe('isGraft', () => { it('returns true if page is a graft', () => { const page = { action: 'graft', } expect(isGraft(page)).toBe(true) }) ...
module.exports = { "publicPath": "/", "devServer": { "proxy": { "/api": { "target": "http://localhost:3001/", "pathRewrite": { "^/api": "" }, "secure": false } } }, "transpileDependencies": [ "vuetify" ] }
import withStyles from 'material-ui/styles/withStyles'; import colors from 'material-ui/colors/common'; export default withStyles({ calculator: { fontSize: '.9em', position: 'absolute', display: 'flex', border: '.2em solid #C0D4D8', flexDirection: 'column', zIndex: 1000, padding: '.2em', ...
from __future__ import absolute_import import os import os.path as osp import numpy as np from ..utils.data import Dataset from ..utils.osutils import mkdir_if_missing from ..utils.serialization import write_json class iLIDSVID(Dataset): url = 'http://www.eecs.qmul.ac.uk/~xiatian/iLIDS-VID/iLIDS-VID.tar' m...
import sys import multiprocessing as mp import traceback import pickle import numpy as np from numba import cuda from numba.cuda.cudadrv import drvapi, devicearray from numba.cuda.testing import skip_on_cudasim, CUDATestCase import unittest not_linux = not sys.platform.startswith('linux') has_mp_get_context = hasat...
# -*- coding: utf-8 -*- ''' The static grains, these are the core, or built in grains. When grains are loaded they are not loaded in the same way that modules are loaded, grain functions are detected and executed, the functions MUST return a dict which will be applied to the main grains dict. This module will always b...
var Parse = require('parse').Parse; var ParseReact = require('parse-react'); var React = require('react'); var Login = React.createClass({ getInitialState: function() { return { email: '', password: '', user : Parse.User.current() }; }, handleChangePa...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { ChangeDetectorRef, Injectable, Pipe } from '@angular/core'; import { isObservable } from 'rxjs'; import { TranslateService } from './translate.service';...
from __future__ import absolute_import import numpy as np import math from ..base.shared_state import SharedState from gym import error, spaces, utils from gym.utils import seeding from gym import wrappers from .four_keys_board_items import FourKeysBoardItems from .four_keys_actions import FourKeysActions from .four_k...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['gl']={"editor":"Editor de texto mellorado","editorPanel":"Panel do editor de texto mellorado","common":{"editorHelp":"Prema ALT 0 para obter axuda","browseSe...
#!/usr/bin/python import cgi import logging import os import sys import time import urllib import urlparse import bs4 from itsdangerous import Signer """ Copyright 2011 Jon Rifkin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may ...
/* eslint-disable no-tabs */ export default `KBD Layout02 "Norwegian - Custom" LOCALENAME "nb-NO" LOCALEID "00000414" VERSION 1.0 SHIFTSTATE 0 //Column 4 1 //Column 5 : Shft 2 //Column 6 : Ctrl 6 //Column 7 : Ctrl Alt LAYOUT ;an extra '@' at the end is a dead key //SC VK_ Cap 0 1 2 6 //-- ---- --...
from django.db.models.fields import BLANK_CHOICE_DASH from django.forms.fields import NullBooleanField from .models import Contact, Phone from django.forms import ModelForm, widgets from django import forms class ContactForm(ModelForm): class Meta: model = Contact contact_birthday = forms.DateFiel...
export function Rdd2015Directive () { 'ngInject'; return { restrict: 'E', templateUrl: 'app/components/rdd2015/rdd2015.html', scope: {}, controller: Rdd2015Controller, controllerAs: 'vm', bindToController: true }; } class Rdd2015Controller { constructor () { 'ngInject'; } }
/*global setClipboardText Base64*/ // Avoid `chrome` namespace var platform = "notchrome"; if (typeof browser === "undefined" && typeof chrome === "object"){ //console.log("On Chrome"); var browser = chrome; platform = "chrome"; } //—————————————————————————不同函数在 Firefox 和 Chrome 下的区分对待—————————————————— f...
/*exported MockThreads, MockThread */ 'use strict'; var MockThreads = { registerMessage: () => {}, unregisterMessage: () => {}, has: () => false, set: () => {}, get: () => new MockThread(), delete: () => {}, clear: () => {}, keys: () => [] }; MockThreads.Messages = { get: () => {} }; function Mock...
/* * File: HomeMaticFanAccessory.js * Project: hap-homematic * File Created: Monday, 1st March 2021 8:41:33 pm * Author: Thomas Kluge (th.kluge@me.com) * ----- * The MIT License (MIT) * * Copyright (c) Thomas Kluge <th.kluge@me.com> (https://github.com/thkl) * * Permission is hereby granted, free of charge, t...
/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2009 Apple Inc. 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 retai...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
# -*- coding: utf-8 -*- import pytest from pyramid_oereb.lib.config import Config from pyramid_oereb.lib.adapter import DatabaseAdapter from pyramid_oereb.standard.sources.municipality import DatabaseSource from pyramid_oereb.standard.models.main import Municipality from tests.mockrequest import MockParameter @pyte...
# -*- coding: utf-8 -*- from ..Qt import QtCore, QtGui, QtWidgets from ..graphicsItems.GraphicsObject import GraphicsObject from .. import functions as fn from .Terminal import * from collections import OrderedDict from ..debug import * import numpy as np import warnings translate = QtCore.QCoreApplication.translate ...
/** * Toggle state of app loader */ export function toggleLoader() { const loader = document.querySelector('.loader'); loader.classList.toggle('loader_hide'); }
'use strict' const path = require('path') const defaultSettings = require('./src/settings.js') function resolve(dir) { return path.join(__dirname, dir) } const name = defaultSettings.title || 'vue Admin Template' // page title // If your port is set to 80, // use administrator privileges to execute the command lin...
// dateCheckin.js export default (messages) => { return { checkedIn (userId) {return this.current() .filter(date => messages.implicit({subjectType: this.subjectType, subject: date.id}, userId)) }}}
import React, { Fragment } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Card } from '@material-ui/core'; import avatar1 from '../../../assets/images/avatars/avatar1.jpg'; import avatar2 from '../../../assets/images/avatars/avatar2.jpg'; import avatar3 from '../../../assets...
// Transcrypt'ed from Python, 2019-01-22 11:22:32 var __name__ = 'org.transcrypt.__runtime__'; export var __envir__ = {}; __envir__.interpreter_name = 'python'; __envir__.transpiler_name = 'transcrypt'; __envir__.executor_name = __envir__.transpiler_name; __envir__.transpiler_version = '3.7.15'; export functio...
import React from 'react' import { View, TouchableOpacity, ImageBackground, Text } from 'react-native' const style = { button: { width: 40, height: 40, alignItems: 'center', justifyContent: 'center' }, disabled: { opacity: 0.6 } } export default function CircularButton ({ size, disabled,...
import * as _ns from "./a"; // @module: commonjs // @esModuleInterop: true // @noTypesAndSymbols: true // @Filename: a.ts module.exports = {}; export { _ns as ns };
var dir_e6cff3015b18fcae43b40e006a732bf1 = [ [ "AssemblyInfo.cs", "_services_2_spatial_awareness_system_2_assembly_info_8cs.html", null ], [ "MixedRealitySpatialAwarenessSystem.cs", "_mixed_reality_spatial_awareness_system_8cs.html", [ [ "MixedRealitySpatialAwarenessSystem", "class_microsoft_1_1_mixed_rea...
require=function o(s,a,u){function c(e,t){if(!a[e]){if(!s[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(h)return h(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=a[e]={exports:{}};s[e][0].call(i.exports,function(t){return c(s[e][1][t]||t)},i,i.expo...
var dir_93279622ab363aef2c5d8e453785fba9 = [ [ "half.h", "ext_2cub_2test_2half_8h.html", "ext_2cub_2test_2half_8h" ], [ "mersenne.h", "mersenne_8h_source.html", null ], [ "test_util.h", "test__util_8h_source.html", null ] ];
from __future__ import unicode_literals from reviewboard.diffviewer.chunk_generator import DiffChunkGenerator from reviewboard.scmtools.core import PRE_CREATION from reviewboard.testing import TestCase class DiffChunkGeneratorTests(TestCase): """Unit tests for DiffChunkGenerator.""" fixtures = ['test_scmtoo...
const { resolve } = require('path'); /** * Resolve tsconfig.json paths to Webpack aliases * @param {string} tsconfigPath - Path to tsconfig * @param {string} webpackConfigBasePath - Relative base path from tsconfig to Webpack config to create absolute aliases * @return {object} ...
import React from 'react'; import './bootstrap.min.css'; class EmotionTable extends React.Component { render() { //Returns the emotions as an HTML table return ( <div> <table className="table table-bordered"> <tbody> { Object.entries(this.prop...
const chokidar = require('chokidar'); const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpackConfig = require('../../../build/dev.webpack.config'); const config = require('../config'); const watch = app => { const compiler = webpack(webpackConfig); const wa...
import simpy from src.all_exceptions import SelectorNotFoundException, EnviromentException class EnviromentWrapper(object): def __init__(self): self.env = simpy.Environment() self.contexts = [] def attach_context(self, context): self.contexts.append(context) def get_enviroment(sel...
"""GND (Ground) device. Copyright 2014 Joe Hood 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 wr...
/** * @license * Copyright Google LLC 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 (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Map from 'ol/Map'; import { DragBox } from 'ol/interaction'; import { platformModifierKeyOnly } from 'ol/events/condition'; import { Fill, Stroke, Style } from 'ol/style'; export class OLRegionsClickSelector ex...
from . import db,login_manager from werkzeug.security import generate_password_hash,check_password_hash from flask_login import UserMixin from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(db.Model,UserMixin): __tablename__ = "users"...
'use strict'; /** * Directive to abstract away common input element template. * * @param model Sets up a two-way binding between this and the * input's ng-model. * @param [validator] An optional object specifying validations for this * input. * @param type ...
# !/usr/bin/env python3 # -*- coding:utf-8 -*- # @Time : 2022/05/18 16:02 # @Author : clear # @FileName: mask.py import tensorlayerx as tlx from typing import Optional import numpy as np def index_to_mask(index, size: Optional[int] = None): r"""Converts indices to a mask representation. Args: in...
mycallback( {"CONTRIBUTOR OCCUPATION": "Organizer", "CONTRIBUTION AMOUNT (F3L Bundled)": "150.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "DISTRICT LODGE 751", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "409 T STREET, S.E.", "CONTRIBUTOR MIDDLE NAME": "M", "DONOR CANDIDATE FEC ID": "", ...
# Generated by Django 3.2 on 2021-06-20 12:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('area', '0002_auto_20210620_1421'), ] operations = [ migrations.RenameField( model_name='area', old_name='en', new_...
// Copyright 2016 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. /** * VolumeManager is responsible for tracking list of mounted volumes. * @implements {VolumeManager} */ class VolumeManagerImpl extends cr.EventTarge...
'use strict'; var express = require('express'); var app = express(); var iso = require('../portable'); var server = require('http').createServer(app); console.log(iso.valideteId('USER_12345')); app.use('/', express.static(__dirname + '/../dist', { maxAge: 1000000 })); server.listen(9000, () => console.log('...
// set #content elements and hash location const setContent = topic => { document.getElementById('name').innerHTML=topic.name; document.getElementById('description').innerHTML=topic.description; const sources = '<ul>' + topic.sources.map(source => { if (source.href) return '<a href="' + source.href + '">' + s...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import spack.environment as ev description = 'concretize an environment and write a lockfile' section = "environments" le...
/* * Tests.js * Schema Generated by RikkiTikki * Add custom Schema Validators, Types and Methods below */ var API = require('../../lib'); var Tests = new API.Schema( API.extend(API.getSchemaTree('Tests'), { // place custom Schema Type overrides here }) ); /* * Virtual Getters/Setters */ Tests.virtuals...
universe.if
/* jquery.struts2.js Integration of jquery and jquery ui with struts 2 for ajax, widget and interactions support in struts 2 Requires use of jQuery. Tested with jQuery 2.1 and jQuery UI 1.11 Copyright (c) 2008 Eric Chijioke (obinna a-t g mail dot c o m) Copyright (c) 2010 - 2015 Johannes Geppert http://www.j...
#!/usr/bin/env python3 import os import time import requests from lxml import etree US_NEWS_URL='https://news.google.com/news/section?cf=all&ned=us&topic=n&' + \ 'siidp=e5342d1cb1634b0f6f1ed41a0783e7102d59&ict=ln&edchanged=1&' + \ 'authuser=0' RO_NEWS_URL='https://news.google.com/news/section?...
import React from "react" import PropTypes from "prop-types" import { Helmet } from "react-helmet" import { useLocation } from "@reach/router" import { useStaticQuery, graphql } from "gatsby" const SEO = ({ title, description, image, article }) => { const { pathname } = useLocation() const { site } = useStaticQuer...
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _propTypes = r...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v17.1.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c ...
from chatbot import register_call import global_variables import random import os import yaml @register_call("animalSound") def animalSound(session_id = "general", animal="none"): config_path = os.path.join('intents','functions','animalsounds','config_animalsounds.yml') ogg_path = os.path.join('intents','functions'...
/* This file is part of iCE Hrm. iCE Hrm 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 later version. iCE Hrm is distributed in the hope that it will be...
const func = require('@jupyterlab/testutils/lib/jest-config'); module.exports = func(__dirname); // const path = require('path'); // module.exports = { // verbose: false, // preset: 'ts-jest/presets/js-with-babel', // transform: { // '^.+\\.tsx?$': 'ts-jest', // '^.+\\.(js|jsx)$': 'babel-jest' // }, //...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/kebabDictionary ../../core/u...
// Schemas const ReferralRequestSchema = require('../../schemas/referralrequest.schema'); const BundleSchema = require('../../schemas/bundle.schema'); // Arguments const ReferralRequestArgs = require('../../parameters/referralrequest.parameters'); const CommonArgs = require('../../parameters/common.parameters'); // R...
/*! jQuery v1.7 jquery.com | jquery.org/license @JsDoNotOptimize */ (function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"...
from __future__ import absolute_import import re import dns.rdata from six import int2byte from dim.errors import InvalidParameterError from dim.messages import Messages from dim.util import make_fqdn def label_is_valid(label): if (len(label) == 0 or len(label) > 63 or label.startswith('...
'use strict'; /*global describe */ describe('Units.', function () { require('./units/mark'); });
/* @flow */ import * as React from 'react'; import onClickOutside from 'react-onclickoutside'; import './ProjectInfo.css'; import type { ProjectState } from 'core/project'; type Props = {| projectSlug: string, project: ProjectState, |}; type State = {| visible: boolean, |}; /** * Show a panel with ...
# (c) Juergen Riegel (FreeCAD@juergen-riegel.net) 2011 LGPL * # * # This file is part of the FreeCAD CAx development system. * # * # This program...
import Item from "src/components/Item/Item"; export const QUERY = gql` query FIND_ITEM_BY_ID($name: String!) { findItem(name: $name) { id name about image priceInfo { id url shop { id name imageUrl } } priceMa...
#!/usr/bin/env python import pickle import os import platform from pushbullet import Pushbullet from Sona import Sona # sona credentials login = "SONA_STUDENT_USERNAME" password = "SONA_STUDENT_PASSWORD" sona_site = "https://usthk-markexpt.sona-systems.com" # pushbullet api_key = "PUSHBULLET_API_KEY" ...
""" 在一个`n * m`的二维数组中,每一行都按照从左到右递增的顺序排序 每一列都按照从上到下递增的顺序排序。 请完成一个**高效**的算法,输入一个这样的二维数组和一个整数,判断数组中是否有这个整数。 **例子** [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, 13, 14, 17, 24], [18, 21, 23, 26, 30] ] 给定`target = 3`, 返回`True` 给定`target = 20`, 返回`False` """ def findNumberIn2DArray(m...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
#!/usr/bin/env python """Tests for `databuddy` package.""" import pytest from click.testing import CliRunner from databuddy import databuddy from databuddy import cli @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import r...
'use strict'; const isString = require('lodash.isstring'); const { areIDsSame } = require('./utils'); class PVLAggregate { constructor() { this.store = []; } add(key, value) { this.store.push([key, value]); return this; } get(key) { return this.store.find((item) => item[0] === key) ?...
L = int(input()) A = L / 3 B = A C = L - 2 * A print("{:.8f}".format(A * B * C))
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C...
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License,...
function SvgExposureNeg1TwoTone(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path d='M0 0h24v24H0V0z' fill='none' /> <path d='M19 18V5h-.3L14 6.7v1.7l3-1.02V18zM4 11h8v2H4z' /> </svg> ); } export d...
/* This file is generated by createIcons.js any changes will be lost. */ import createIcon from '../createIcon'; var CalendarPlusIcon = createIcon({ name: 'CalendarPlusIcon', height: 512, width: 448, svgPath: 'M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 ...