text stringlengths 3 1.05M |
|---|
"""
Exercício Python 006:
Crie um algoritmo que leia um número e mostre o seu dobro, triplo e raiz quadrada
"""
print("-" * 60)
print(f'{"Exibe Dobro, Triplo e a Raiz Quadrada ":^60}')
print("-" * 60)
numero = int(input("Insira um número: "))
dobro = numero * 2
triplo = numero * 3
raiz = numero ** 0.5
print(f"O dobro... |
'use strict';
var Utils = require('../../utils')
, SqlString = require('../../sql-string')
, Model = require('../../model')
, DataTypes = require('../../data-types')
, _ = require('lodash')
, util = require('util')
, Dottie = require('dottie')
, BelongsTo = require('../../associations/belongs-to')
, ... |
import React from 'react';
import { useLocalStorage } from './useLocalStorage';
const Settings = () => {
const [splitFinalColumns, setSplitFinalColumns] = useLocalStorage(
'splitColumns'
);
const [slim, setSlim] = useLocalStorage('slim');
const [showRejectedColumn, setShowRejectedColumn] = useLocalStorage... |
// @flow
declare module '@xt-pagesource/atomic-react-pattern-lib' {
declare module.exports: any;
}
|
const test = require('ava');
const parseArgv = require('../../lib/utils/parse-argv');
const argv = [
'/pat/to/node',
'file.js',
'some_arg',
'--mongoUrl="mongo://localhost"',
'--some-number=44',
'--active=true'];
test('should parse options', (t) => {
const config = parseArgv(argv);
... |
module.exports = (client) => {
const { StatusManager } = require(`dbd.ts`)
const status = new StatusManager(client)
status.add({
name: `Developed by Kaede Studio | v$botVersion`,
presence: "dnd",
})
status.start()
} |
var x = x >= x ; |
(function () {
'use strict';
const sql = require('mssql');
function ConnectionService($rootScope, $uibModal) {
return {
test: function (config) {
let connection = new sql.Connection(config);
return connection.connect().then(() =>
connection.close()
);
},
... |
const express = require('express');
const port = process.env.PORT || 3000;
const app = express().use(express.static('public'));
const server = app.listen(port);
console.log('listening on port ' + port);
|
!function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,s=[];l<a.length;l++)o=a[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(t);s.length;)s.shift()()}var n={},r={2:0};function o(t){if(n[t])return n[t].exports;var r... |
module.exports = {
plugins: [
`gatsby-plugin-netlify-cms`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/blog`,
name: "markdown-pages"
}
},
`gatsby-transformer-remark`
]
};
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _browserSymbol = _interopRequireDefault(require("svg-baker-runtime/browser-symbol"));
var _es6ObjectAssign = require("es6-object-assign");
var _sprite ... |
from django.http.response import HttpResponse
from com.yoclabo.routing import Router
def browse(request) -> HttpResponse:
l_router = Router.LogicalDOCRouter()
l_router.request = request
return l_router.run()
|
// Initialize game
var game = new Game();
function init() {
if(game.init())
game.start();
}
// Holds all the images and loads it
var imageRepository = new function() {
// Define images
this.background = new Image();
this.hero = new Image();
this.bullet = new Image();
this.enemy = new Image();
this.enemyBul... |
from datetime import date, datetime, timedelta
from django.conf import settings
import logging
from collections import OrderedDict
import psycopg2
import pytz
import titlecase
TZ = pytz.timezone(settings.TIME_ZONE)
LOGGER = logging.getLogger('sync_tasks')
ALESCO_DB_FIELDS = (
'employee_id', 'surname', 'initials', ... |
import PropTypes from "prop-types";
import React from "react";
import { graphql, StaticQuery } from "gatsby";
import Footer from "../components/Footer/";
import Header from "../components/Header";
import theme from "../theme/theme.yaml";
export const ThemeContext = React.createContext(null);
class Layout extends Rea... |
#
# Copyright (c) 2009-2013, Mendix bv
# All Rights Reserved.
#
# http://www.mendix.com/
#
import os
import subprocess
import time
from log import logger
def dumpdb(config, name=None):
env = os.environ.copy()
env.update(config.get_pg_environment())
if name is None:
name = "%s_%s.backup" % (en... |
import random
cnt = 0
def shell_sort(arr):
length = len(arr)
step_size = int(length / 2)
while step_size > 0:
shell_step(arr, step_size)
step_size = int(step_size / 2)
# 本质为一次插入排序
def shell_step(arr, step_size):
global cnt
for i in range(step_size):
for j in range(i, len... |
/***
* Contains basic SlickGrid editors.
* @module Editors
* @namespace Slick
*/
(function ($) {
// register namespace
$.extend(true, window, {
"Slick": {
"Editors": {
"Text": TextEditor,
"Integer": IntegerEditor,
"Float": FloatEditor,
"Date": DateEditor,
... |
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {updateNoodle} from '../../store/noodles'
export class UpdateNoodle extends Component {
constructor() {
super()
this.state = {
name: '',
imageUrl: '',
description: '',
price: ''
}
}
handleChang... |
function unityFramework(Module) {
var Module=typeof Module!=="undefined"?Module:{};;var stackTraceReference="(^|\\n)(\\s+at\\s+|)jsStackTrace(\\s+\\(|@)([^\\n]+):\\d+:\\d+(\\)|)(\\n|$)";var stackTraceReferenceMatch=jsStackTrace().match(new RegExp(stackTraceReference));if(stackTraceReferenceMatch)Module.stackTraceRegExp... |
import React from 'react'
import { expect } from 'chai'
import sinon from 'sinon'
import SurveyQuestionCounter
from './../../../../assets/js/components/molecules/SurveyQuestionCounter.jsx'
import TestUtils from 'react-addons-test-utils'
describe('Survey Question Counter', () => {
describe('Before last question', ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
import * as actionTypes from './actionTypes';
const initialState = {
user: {},
isLoggedIn: false,
error: null,
loading: false,
authRedirectPath: '/',
};
const authStart = (state, action) => {
return {
...state,
error: null,
loading: true,
};
};
const authSuccess = (state, action) => {
ret... |
import React from 'react';
import PropTypes from 'prop-types';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
im... |
export { default as InsuranceDialog } from './InsuranceDialog';
|
/*!
* inputmask.numeric.extensions.js
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2016 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.2.7
*/
!function(factory) {
"function" == typeof define && define.amd ? define([ "input... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["account-balance-wallet-... |
// Copyright 2017 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.
import * as Common from '../../core/common/common.js';
export class ProfileHeader extends Common.ObjectWrapper.ObjectWrapper {
profileTypeInternal;
... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _isPlainObject = _interopRequireDefault(require("./isPlainObject"));
var _flattenWhenNode = _interopRequireDefault(require("./flattenWhenNode"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
va... |
'use strict';
var EventEmitter = require( 'events' ).EventEmitter;
var util = require( './util' );
/**
* Single user on the server.
*
* @param {Object} data - User data.
* @param {MumbleClient} client - Mumble client that owns this user.
*/
var User = function( data, client ) {
this.client = client;
thi... |
import BootstrapDatepickerComponent from 'ember-bootstrap-date-component/components/bootstrap-datepicker';
export default BootstrapDatepickerComponent;
|
let ws = new WebSocket("ws://" + window.location.host + window.location.pathname + "ws");
ws.onmessage = (msg) => {
let data = JSON.parse(msg.data);
data.map((data) => {
if (data.ty === "createTag") {
console.log("create tag");
let split = data["payload"].split("+");
... |
function timeount() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(true)
}, 10000)
})
}
const nativeHook = {
onLoad: async function (option) {
console.log("plugin onLoad 11112222", this)
await timeount()
},
};
export default function appReportPlugin() {
return ... |
const path = require('path')
module.exports.createPages = async ({actions, graphql}) => {
const { createPage } = actions
const blogTemplate = path.resolve('./src/templates/blog.js')
const res = await graphql(`
query {
allContentfulBlogPost {
edges {
n... |
from _Download_.FindPictureUrl import FindPictureUrl
from _Logistic_ import Welcome
from _Face_ import FaceProcessing
from _Logistic_.RandomDownload import RDownload
BasicUrl = 'https://konachan.net/post'
def main():
num = None
TotalNum = None
FolderName = None
Welcome.Preparation()
RD = RDownload... |
var angular = require('angular');
var CrudModule = angular.module('crud', [
'ui.router', 'ui.bootstrap', 'ngSanitize', 'textAngular', 'ngInflection', 'ui.codemirror', 'ngFileUpload', 'ngNumeraljs'
]);
CrudModule.controller('ListLayoutController', require('./list/ListLayoutController'));
CrudModule.controller('Lis... |
export * from './angular_jqxdockinglayout';
export * from './angular_jqxdockinglayout.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2pxd2lkZ2V0cy1uZy9qcXhkb2NraW5nbGF5b3V0LyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHB... |
/*
* 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 u... |
import requests
# For single line python comments
"""
This is a multiline comment
in Python the quotes are delimiters
"""
print("Hello World!")
print("My name is Tyler")
response = requests.get('https://httpbin.org/ip')
print('Your ip is {0}'.format(response.json()['origin']))
|
export const antdSelectOptionMapping = [
{
label: "id",
value: "id"
},
{
label: "邮箱",
value: "attributes.mail"
},
{
label: "系统信息",
value: "attributes.ua"
},
{
label: "内容",
value: "attributes.comment"
},
{
label: ... |
/**
* Module dependencies.
*/
var passport = require("passport-strategy"),
url = require("url"),
querystring = require("querystring"),
util = require("util"),
utils = require("./utils"),
OAuth2 = require("oauth").OAuth2,
SessionStateStore = require("./state/session"),
//, setup = require('./setup')
In... |
import warnings
import matplotlib.pyplot as plt
import pandas as pd
warnings.filterwarnings('ignore')
plt.rcParams.update({'font.size': 15})
plt.rcParams.update({'figure.figsize': (15, 8)})
def plot_str_len(data, data_type='entire'):
labels = data.index
values = data.values
ax = plt.subplot(111)
ax... |
var should = require('should')
, assert = require('assert')
, expect = require('expect.js')
, fixedQueue = require('../index.js').FixedQueue
describe('FixedQueue', function(){
describe('.push()', function(){
it('should append a value', function(){
var arr = fixedQueue(10, []);
arr.push('foo');
... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: rocket;
//
// Uberspace Quota
// https://github.com/doersino/scriptable-widgets/tree/main/uberspace-quota
// - This is the code for a Scriptable widget, see https://scriptable.app.
// - It d... |
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { selectorMap } from "fp";
import * as ga from "actions/GovernanceActions";
import { getPeerInfo } from "actions/ControlActions";
import * as sel from "selectors";
const mapStateToProps = selectorMap({
expandSideBar: sel.expand... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// always-run-in-app: true; icon-color: deep-blue;
// icon-glyph: credit-card;
export default (presenter) => {
const dateFormatter = new DateFormatter();
dateFormatter.dateFormat = 'E d MMM';
const rows = [];
const tabl... |
import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {Menu, Icon} from 'antd';
import Logo from '../Logo';
import Logger from '../../utils/Logger';
import items from 'menu.js'; // 由于webpack中的设置, 不用写完整路径
import globalConfig fro... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
script.module.metadatautils
tmdb.py
Get metadata from The Movie Database
'''
from utils import get_json, KODI_LANGUAGE, try_parse_int, DialogSelect, get_compare_string, int_with_commas, ADDON_ID
from difflib import SequenceMatcher as SM
from simplecache import... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... |
var ThreeDSTK=function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},e.r=function(n){Object.definePropert... |
import styled, { css } from 'styled-components';
const containerBackgroundActivate = (theme) => css`
background: ${theme.colors.primaryColor};
color: ${theme.colors.white};
`;
export const Container = styled.div`
${({ theme, background }) => css`
background: ${theme.colors.white};
color: ${theme.colors.... |
import { a, str, num, dim, mix } from "./named.css";
console.log(a, str, num, dim, mix);
|
import AKA from './AKA.js';
import ATH from './ATH.js';
import CLO from './CLO.js';
import EGEM from './EGEM.js';
import ELLA from './ELLA.js';
import EOSC from './EOSC.js';
import ESN from './ESN.js';
import ETC from './ETC.js';
import VAP from './VAP.js';
import VAPO from './VAPO.js';
import ETSC from './ETSC.js';
im... |
#------------------------------
"""Unit test application for psana.pscalib.calib.Time (Lusi.Time) class.
This software was developed for the LUSI project.
If you use all or part of it, please give an appropriate acknowledgement.
Andrei Salnikov
"""
#------------------------------
import sys
import os
import unittes... |
from FE_mesh.configure_shots_mesh import mesh_interface
from sphere_generator.shot_stream_generator import shot_stream
from sphere_generator.utilities import *
def main():
#**************************************INPUT SECTION******************************************
filename = "structured_spheres" # name of s... |
import UrlParser from '../routes/url-parser';
import routes from '../routes/routes';
class App {
constructor({ content }) {
this._content = content;
}
async renderPage() {
const url = UrlParser.parseActiveUrlWithCombiner();
const page = routes[url] || routes['/'];
this._content.innerHTML = await... |
from django.core.management.base import BaseCommand
from django.test.client import Client
import os, sys, re
import requests
import toastermain.settings as settings
class Command(BaseCommand):
help = "Test the response time for all toaster urls"
def handle(self, *args, **options):
root_urlconf = __import_... |
# Copyright (C) 2019-2021 Ruhr West University of Applied Sciences, Bottrop, Germany
# AND Elektronische Fahrwerksysteme GmbH, Gaimersheim Germany
#
# This Source Code Form is subject to the terms of the Apache License 2.0
# If a copy of the APL2 was not distributed with this
# file, You can obtain one at https://www.a... |
var searchData=
[
['email_56',['Email',['../class_email.html',1,'']]],
['endereco_57',['Endereco',['../class_endereco.html',1,'']]]
];
|
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:react-hooks/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typesc... |
'use strict';
require('dotenv').config();
require('ejs');
const express = require('express');
const superagent = require('superagent');
const cors = require('cors')
const methodOverride = require('method-override')
const PORT = process.env.PORT || 3000;
const app = express();
const pg = require('pg');
const client = n... |
import React from 'react'
import { modsToStyle } from '../lib/mods-to-style.js'
export const Flexery = ({ children, style, ...props }) => {
const { style: modifiersStyle, sanitizedProps } = modsToStyle(props)
return (
<div style={{ ...modifiersStyle, ...style }} {...sanitizedProps}>
{children}
</div... |
from collections import namedtuple
import numpy as np
from scipy.stats import binomtest, kstwo
def is_empty(x):
try:
return len(x)==0
except TypeError:
return x is None
def searchsorted_closest(array,values):
"""
Wrapper around NumPy’s `searchsorted` that returns the index of the closest value(s) – as opposed... |
from .inference import reid_inference
from .utils.metrics import cosine_similarity, euclidean_distance
from .utils.to_sqlite import insert_vector_db, insert_human_db, insert_infer_db, load_gallery_from_db, convertToBinaryData, load_human_db, load_images_from_db
import numpy as np
import time
#init class
#reid = reid_... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import React, { Component } from 'react';
import { connect } from 'dva';
import GridContent from '@/components/PageHeaderWrapper/GridContent';
// import styles from './index.less';
@connect(({ panes, loading }) => ({
panes,
loading: loading.models.panes,
}))
export default class Home extends Component {
render(... |
# coding=utf-8
import unittest
import threading
from selenium import webdriver
from app import create_app, db
from app.models import Role, User
import re
from forgery_py import internet, basic
class SeleniumTest(unittest.TestCase):
client = None
app_ctx = None
@classmethod
def setUpClass(cls):
... |
import { request } from "./request.js"
export const getUserChannels = () => {
return request({
method: 'GET',
url: '/app/v1_0/user/channels'
})
}
export const getArticles = params => {
return request({
method: 'GET',
url: '/app/v1_1/articles',
params
})
}
export const getAllChannels = ()... |
/* eslint-env jest */
jest.unmock('../TextField');
import React from 'react';
import { findDOMNode } from 'react-dom';
import {
Simulate,
renderIntoDocument,
findRenderedComponentWithType,
scryRenderedComponentsWithType,
} from 'react-dom/test-utils';
import TextField from '../TextField';
import InputField fr... |
import bearing from "@turf/bearing";
import destination from "@turf/destination";
import distance from "@turf/distance";
/**
* Takes two {@link Point|points} and returns a point midway between them.
* The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.
*
* @name midpo... |
'use strict';
//Setting up route
angular.module('rosters').config(['$stateProvider',
function($stateProvider) {
// Rosters state routing
$stateProvider.
state('create-roster', {
url: '/rosters/create',
templateUrl: 'modules/rosters/views/create-roster.client.view.html'
}).
state('rosters', {
url: '... |
import React from 'react';
import { withTheme as WithEmotionTheme } from 'emotion-theming';
import { light } from './modes';
const withTheme = (defaultTheme) => {
return (WrappedComponent) => {
const WithTheme = WithEmotionTheme((props) => {
const { theme: ctxTheme, ...rest } = props;
const theme =... |
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^save_meter$',
views.save_meter,
name='save_meter'),
url(
r'^get_meter_types$',
views.get_meter_types,
name='get_meter_types'),
url(
r'^get_meter_readings$',
... |
# -*- coding: utf-8 -*-
#
# Python2-Diamond documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 12 20:53:09 2015.
#
# 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
# autogenerated fil... |
const PassportLocalStrategy = require('passport-local').Strategy;
const User = require('../models/User');
const encryption = require('../utilities/encryption');
module.exports = new PassportLocalStrategy({
usernameField: 'email',
passwordField: 'password',
session: false,
passReqToCallback: true
}, (req, email... |
from flask import Blueprint
admin = Blueprint('admin', __name__)
from pgscm.admin import views # noqa
|
import React from "react";
import {BrowserRouter as Router,Switch,Route,Link} from "react-router-dom";
import Home from "./pages/Home.js";
import About from "./pages/About.js";
import Category from "./category/Index.js";
import List from "./category/List.js";
import Add from "./category/Add.js";
import Edit from "./cat... |
import jwt from 'jsonwebtoken'
import expressAsyncHandler from 'express-async-handler'
import User from '../models/userModel.js'
const protect = expressAsyncHandler (async (req, res, next) => {
let token
if (req.headers.authorization && req.headers.authorization.startsWith('Bearer')) {
try {
token = req... |
const usernameInput = spnr.dom.id('usernameInput');
const passwordInput = spnr.dom.id('passwordInput');
const outputParagraph = spnr.dom.id('outputParagraph');
const warningParagraph = spnr.dom.id('warningParagraph');
const loadingGif = new LoadingGif(spnr.dom.id('loadingGifHolder'));
passwordInput.addEventListener('... |
this.Element&&function(t){t.matches=t.matches||t.matchesSelector||t.webkitMatchesSelector||t.msMatchesSelector||function(t){for(var e=(this.parentNode||this.document).querySelectorAll(t),a=-1;e[++a]&&e[a]!=this;);return!!e[a]}}(Element.prototype),this.Element&&function(t){t.closest=t.closest||function(t){for(var e=this... |
//pacotes
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom'; //o switch garante que só uma rota seja acionada por vez
//páginas
import Logon from './pages/Logon';
import Register from './pages/Register';
import Profile from './pages/Profile';
import NewIncident from './pages/Ne... |
import React, { Component } from "react";
import { Subreddit } from "snew-classic-ui";
import { Switch, Route, withRouter } from "react-router-dom";
import routeChangeConnector from "../../connectors/routeChange";
import { loadStateLocalStorage } from "../../lib/local_storage";
const noSidebar = p1 => p2 => (
<Subre... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
import { render, screen } from '@testing-library/react';
import HelpDrawer from './help-drawer';
import React from 'react';
test('renders help drawer', () => {
render(<HelpDrawer />);
const cmp = screen.getByText(/HelpDrawer/i);
expect(cmp).toBeInTheDocument();
});
|
import React, {Component} from "react";
import VehicleAddition from "./VehicleAddition";
import SearchForVehicle from "./SearchForVehicle";
import TransferVehicle from "./TransferVehicle";
import AllPendingVehicles from "./AllPendingVehicles";
import MineVehicles from "./MineVehicles";
import IncomingPendingTransfer f... |
// Copyright (C) 2017 Robin Templeton. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
description: BigInt subtraction arithmetic
features: [BigInt]
---*/
assert.sameValue(
0xFEDCBA9876543210n - 0xFEDCB... |
const loadPage = function(hashLoc){
let $main = $('main');
let $tabWindow = $main.find('.tab-window');
let $mainNav = $('.main-nav');
/*
let $this = $(this);
let nextTab = $this.attr('data-tab');
$this.addClass('active');
*/
let $nextPage = $('.'+hashLoc[1]);
if($nextPage.length > 0){
popupExit... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var router_1 = require("@angular/router");
var dashboard_component_1 = require("./dashboard.component");
var dashboard_users_component_1 = require("./users/dashboard-users.component");
var dashboard_users_home_component_1 = require("./users/da... |
const regl = require('regl')({ extensions: 'oes_element_index_uint' })
const createMatrix = require('../')
let splom = createMatrix(regl)
splom.update({
data: [
[0, 1, 2, 3, 4, 5, 10],
[0, 1, 2, 3, 4, 5, 10],
[0, 1, 2, 3, 4, 5, 10]
],
ranges: [
[0, 10],
[0, 10],
[0, 10]
],
domain: [
... |
import { StyleSheet, Platform } from 'react-native';
import * as defaultStyle from '../style';
const commons = require('./commons');
export const HEADER_HEIGHT = 68;
export default function styleConstructor(theme = {}) {
const appStyle = { ...defaultStyle, ...theme };
return StyleSheet.create({
containe... |
import React, { memo } from 'react';
import { Table, Row, Col, Card, Tabs, DatePicker } from 'antd';
import DescriptionList from '@/components/DescriptionList';
import styles from './Item.less';
const ListCardItem = memo(
({ rangePickerValue, salesData, isActive, handleRangePickerChange, loading, selectDate }) =>... |
# -*- coding: utf-8 -*-
"""
unit tests for the cache runner
"""
# Import Python Libs
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Libs
import salt.runners.cache as cache
import salt.utils.master
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.mock im... |
const pallindromeData = require("./pallindromes");
module.exports = {
pallindromes : pallindromeData,
};
|
import tempfile
import os
import shutil
import unittest
import numpy as np
from pecanpy.graph import BaseGraph, AdjlstGraph, SparseGraph, DenseGraph
MAT = np.array(
[
[0, 1, 1],
[1, 0, 0],
[1, 0, 0],
],
dtype=float,
)
INDPTR = np.array([0, 2, 3, 4], dtype=np.uint32)
INDICES = np.ar... |
import numpy as np
from numpy.typing import NDArray
from typing import Any, List
i8: np.int64
f8: np.float64
AR_b: NDArray[np.bool_]
AR_i8: NDArray[np.int64]
AR_f8: NDArray[np.float64]
AR_LIKE_f8: List[float]
reveal_type(np.take_along_axis(AR_f8, AR_i8, axis=1)) # E: numpy.ndarray[Any, numpy.dtype[{float64}]]
reve... |
#!/usr/bin/env node
import program from 'commander';
import path from 'path';
import fs from 'fs';
import logger, { setupLogger } from '../logger';
import SnapShotter from '../snapshotter';
import getScreenshots from '../getScreenshots';
import updateBaselineShots from '../updateBaselineShots';
import { generateLocalR... |
export { isBrowser, getUser, setUser, removeUser, isLoggedIn } from './auth';
export { default as history } from './history';
export { default as setAuthHeaders } from './setAuthHeaders';
export { textTruncate, match } from './utils';
|
import serial
import serial.tools.list_ports
import sys
import os
from enum import Enum
import time
from binascii import hexlify
class Codes(Enum):
COMMAND_OK = 'A'
COMMAND_ERROR = 'B'
CODE_META = 'C'
CODE_BEGIN = 'D'
TAG_OK = 'E'
TAG_ERROR_WRITE = 'F'
TAG_ERROR_READ = 'G'
TAG_ERROR_VERIFY = 'H'
TAG_NEXT = '... |
(this["webpackJsonpfe-dev-client"]=this["webpackJsonpfe-dev-client"]||[]).push([[0],{190:function(e,t,c){},206:function(e,t,c){},238:function(e,t,c){},311:function(e,t,c){"use strict";c.r(t);var n,r,i,s,a,o,l=c(0),u=c.n(l),d=c(35),j=c.n(d),b=c(16),x=(c(190),c(43)),h=c(14),O=c(37),f=c(127),p=c(129),m=c(145),g=c(95),v=c(... |