text stringlengths 3 1.05M |
|---|
goog.provide('reagent_mui.material.text_field');
var module$node_modules$react$index=shadow.js.require("module$node_modules$react$index", {});
var module$node_modules$$mui$material$TextField$index=shadow.js.require("module$node_modules$$mui$material$TextField$index", {});
reagent_mui.material.text_field.input_props = (... |
const db = require('mongodb').MongoClient
const url = "mongodb://localhost:27017/"
function mongoDb() {
db.connect(url, function(err, db) {
if (err) throw err
var dbo = db.db("mydb")
dbo.createCollection("facts", function(err, res) {
if (err) throw err
db.close()
... |
import React from 'react';
import { Platform } from 'react-native';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import { create } from 'react-test-renderer';
import { ThemeProvider } from '../../config';
import ThemedIcon, { Icon } from '../Icon';
describe('Icon component', () => {
it('s... |
# Python modules
import sys
import os
import stat
import subprocess
import tempfile
# Our modules
import vespa.common.util.misc as util_misc
"""Creates double-clickable shortcuts for all Vespa apps.
It will only work when Vespa has been successfully installed.
This code is meant to be run like so:
python -m 'vespa.... |
"""Admin forms."""
from flask_wtf import FlaskForm
from flask_wtf.file import FileAllowed, FileRequired
from wtforms import PasswordField, StringField, FloatField, MultipleFileField, FileField, SelectField, DateField, \
TextAreaField
from wtforms.validators import DataRequired, Length, Email, EqualTo, InputRequired... |
from socket import *
import time
import pymysql
HOST = ''
PORT = 8009
BUFSIZE = 1024
ADDR = (HOST,PORT)
# DB connection
conn = pymysql.connect(host='localhost', user='root', password='juneomysql', db='mysql', charset='utf8')
curs = conn.cursor()
#### set webcam2 ON DB
sql = "update Command SET Webcam2 ... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
#include "kwsysPrivate.h"
#include KWSYS_HEADER(Base64.h)
/* Work-around CMake dependency scanning limitation. This must
duplicate the above list of header... |
from distutils.core import setup
setup(
name='ledgame',
version='0.0.1',
author='gentlemans-club',
author_email='kentsd16@student.uia.no',
packages=['ledgame'],
python_requires='>=3.5.0',
install_requires=[
'notpi',
'Pillow'
],
dependency_links=['git+https://github.c... |
var fs = require("fs");
var deepClone = require("clone");
var _ = require("underscore");
function FileTransport(filename) {
this._filename = filename;
this._requests = [];
if (fs.existsSync(this._filename)) {
fs.unlink(this._filename);
}
}
FileTransport.prototype.ensureConnecti... |
import angular from "/ui/web_modules/angular.js";
import qwQueryService from "/_p/ui/query/qw_query_service.js";
export default 'mnGsiService';
angular
.module('mnGsiService', [
qwQueryService
])
.factory('mnGsiService', mnGsiServiceFactory);
function mnGsiServiceFactory($http, qwQueryService) {
var mnGs... |
#!/usr/bin/env python3
"""
Misc subroutines for linear fitting:
* init correlation matrix A, value vector b
* fit to get unknown coefficients x
* predict using fitted x
"""
import re
import glob
import logging
import numpy as np
import scipy
import scipy.sparse
from cssolve.csfit import csfit, predict_holdout
d... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.errors = exports.enums = exports.Client = undefined;
require('./logging/request');
var _enums = require('./enums');
var enums = _interopRequireWildcard(_enums);
var _errors = require('./errors');
var errors = _interopRequireWil... |
from setuptools import setup
requirements = [
'area',
'black',
'geojson',
'requests',
'shapely',
'sparqlwrapper',
'timezonefinder',
'xlsx2csv',
]
setup(name='country_levels_lib', python_requires='>=3.7', install_requires=requirements)
|
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/krb5/os/read_msg.c */
/*
* Copyright 1991 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
... |
# -*- coding: utf-8 -*-
# File: config.py
import numpy as np
import os
import pprint
import six
from tensorpack.utils import logger
from tensorpack.utils.gpu import get_num_gpu
__all__ = ['config', 'finalize_configs']
class AttrDict():
_freezed = False
""" Avoid accidental creation of new hierarchies. """... |
import card from "./card.jpg";
import avatar from "@asset/badges/ningguang.png";
import skill from "./ningguang.skill.js";
export default {
cardURL: card,
detailURL: "",
name: "ningguang",
chs: "凝光",
element: "rock",
weapon: "book",
star: 4,
avatar,
skill,
} |
'use strict';
const common = require('../common');
const fs = require('fs');
const path = require('path');
const bench = common.createBenchmark(main, {
n: [1e6],
statSyncType: ['throw', 'noThrow']
});
function main({ n, statSyncType }) {
const arg = path.join(__dirname, 'non.existent');
bench.start();
fo... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:52:01 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/UserNotificationsServer.framework/UserNotificationsServer
* classdump-dyld is licensed under GPLv3, C... |
/* TURTLEVW.H
040130 aggiunto BitMultiSave
040126 in BitLoad e BitSave mod. tipo terzo argomento
040123 nuovi CTurtleView::BitLoad e CTurtleView::BitSave; rinominato vecchi in TurtleLoad e TurtleSave
031030 aggiunto metodo OnSetCursor e attributo m_hCursor
000502 aggiunto SetTextProperties
000402 aggiunto m_bPenTrans... |
'use strict' // forces strict type setting
var a = 10;
if (true) {
a = 20;
console.log(a) // 20
}
console.log(a) // 20
var b = 30;
if (true) {
let b = 40;
console.log(b) // 40
}
console.log(b) // 30 |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... |
import argparse
import os
import glob
import random
import darknet
import time
import cv2
import numpy as np
import darknet
# Check if GPIO module is available or not
try:
import RPi.GPIO as GPIO
except ImportError:
print ("Cannot locate RPi.GPIO module!")
sys.exit(1)
def parser():
parser = argparse.A... |
# Scheduler constants
LAG_5_MINUTES = 5 # lag in minutes between finish of the timeperiod and beginning of its processing
PROCESS_SCHEDULER = 'Scheduler'
PROCESS_GC = 'GarbageCollectorWorker'
TOKEN_SCHEDULER = 'scheduler'
TOKEN_GC = 'gc'
# State Machine names
STATE_MACHINE_CONTINUOUS = 'continuous'
STATE_MACHINE_DI... |
# Copyright 2022 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.contrib.admin.apps import AdminConfig
class InterviewAdminConfig(AdminConfig):
default_site = 'interview_db.admin.SAMLAdminSite'
|
/* global */
import {DropDownMenu} from "../DropDown.js";
import {Utils} from "../Utils.js";
export class Issues {
static removeCategory (pPanel, pCatName) {
const rows = pPanel.table.tBodies[0].childNodes;
for (const tr of rows) {
if (tr.myCatName === pCatName) {
tr.parentNode.removeChild(tr... |
# coding: utf-8
"""
This module provides a class for one of the models described by the API.
"""
from __future__ import absolute_import
from digital.forge.data.models.base_model_ import Model
from digital.forge.data import util
class ErrorResponse(Model):
"""NOTE: This class is auto generated by OpenAPI Genera... |
/* eslint-disable */
// this is an auto generated file. This will be overwritten
export const getSpace = /* GraphQL */ `
query GetSpace($id: ID!) {
getSpace(id: $id) {
id
name
description
createdAt
updatedAt
owner
}
}
`;
export const listSpaces = /* GraphQL */ `
query ... |
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pip.req import parse_requirements
import re, ast
# get version from __version__ variable in winsun/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('winsun/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_ve... |
from appinit_backend.lib.imports import *
import smtplib
def call(**kwargs):
emails = kwargs['emails']
s = smtplib.SMTP('smtp.corp.redhat.com')
for e in emails:
s.sendmail(*e)
s.quit()
return True
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django_services import admin
from django.contrib import admin as django_admin
from ..service.maintenance import MaintenanceService
from ..forms import MaintenanceForm
from .. import models
from django.utils.html import format_html
fro... |
class BinaryTreeNode(object):
def __init__(self,value=None):
self.left = None
self.right = None
self.value = value
self.visited = False
def get_value(self):
return self.value
def set_value(self, value):
self.value = value
def set_lef... |
#!/usr/bin/env python2
# Copyright (c) 2014 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 for -rpcbind, as well as -rpcallowip and -rpcconnect
# Add python-bitcoinrpc to module search path:
im... |
'use strict';
var _passiveEvents = require('./passiveEvents');
var _passiveEvents2 = _interopRequireDefault(_passiveEvents);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// Reliable `window` and `document` detection
var canUseDOM = !!(typeof window !== 'undefined' ... |
import Bree from 'bree';
import Cabin from 'cabin';
import Graceful from '@ladjs/graceful';
import { Signale } from 'signale';
// initialize cabin
const cabin = new Cabin({ axe: { logger: new Signale() } });
const breeScheduler = () => {
const bree = new Bree({
logger: cabin,
jobs: [
{
name: '... |
__author__ = 'gpatarkatsishvili'
from bs4 import BeautifulSoup
import requests
class CONCRETE_JOBS:
_job_headline =[]
_job_info = {}
def __init__(self, url):
self.url = "http://jobs.ge/" + url +"/"
self.jobsGe_request = requests.get(self.url)
self.soup = Beautiful... |
define(
"dojox/grid/enhanced/nls/pt-pt/EnhancedGrid", ({
singleSort: "Ordenação única",
nestedSort: "Ordenação imbricada",
ascending: "Faça clique para ordenar Ascendente",
descending: "Faça clique para ordenar Descendente",
sortingState: "${0} - ${1}",
unsorted: "Não ordenar esta coluna",
indirectSelectionRadio... |
from decimal import Decimal
_ = lambda x:x
#from i18n import _
from electrum import WalletStorage, Wallet
from electrum.util import format_satoshis, set_verbosity
from electrum.bitcoin import is_valid, COIN, TYPE_ADDRESS
from electrum.network import filter_protocol
import sys, getpass, datetime
# minimal fdisk like gu... |
"""HTTP server base class.
Note: the class in this module doesn't implement any HTTP request; see
SimpleHTTPServer for simple implementations of GET, HEAD and POST
(including CGI scripts). It does, however, optionally implement HTTP/1.1
persistent connections, as of version 0.3.
Contents:
- BaseHTTPRequestHandler: ... |
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/to-do');
const itemSchema = new mongoose.Schema({
title: String,
category: String,
dueDate: String,
notes: String,
});
const Items = mongoose.model('Items', itemSchema);
module.exports = { Items };
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
module.exports = {
name: "respect",
description: "Return A respect GIF!",
execute(message, args, Discord) {
const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
if(!user) return message.channel.send('Provide a user to give repect!')
c... |
"""
Copy docs from the napari repo into the napari.github.io repo
and update the table of contents.
By default, will assume that there is a folder named napari.github.io
in the same directory as the napari folder, if not a different copy
destination can be provided.
Read ORGANIZATION.md to learn more about how the doc... |
"""
Django settings for mysite project - run locally with this settings
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/re... |
const express = require('express');
const router = express.Router();
const User = require('../../models/user');
const { param, query, oneOf } = require('express-validator');
const { errorMessages, errorFormatter, hasErrorIn} = require('../../misc/utils');
const mapUser = (user) => {
return {
id: user.id,... |
'use strict';
module.exports = gen => {
gen('if (obj && obj.$class) { obj = obj.$; }');
gen('if (obj == null) { obj = false; }');
gen('encoder.writeBool(obj);');
};
|
// ==========================================================================
// SC Unit Test
// ==========================================================================
/*globals SC */
var statechart = null;
var monitor, root, stateA, stateB, stateC, stateD, stateE, stateF;
module("SC.Statechart: With Concurrent S... |
function CalendarCarousel(pannableElement)
{
this.pannable = pannableElement;
setupSpring();
setupPan();
function getDeviceWidth()
{
return Math.max(document.documentElement["clientWidth"],
document.body["scrollWidth"],
document.documentElement["scrollWidth"],
... |
module.exports = require('../images/2/1f1fa.png');
|
'''
Created on Jun 16, 2019
@author: Winterberger
'''
from datetime import datetime
from hashlib import sha256
class Block:
def __init__(self, transactions, previous_hash, nonce = 0):
self.timestamp = datetime.now()
self.transactions = transactions
self.previous_hash = previous_hash
sel... |
# Copyright (c) 2018, Xilinx, 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:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of con... |
# Data Parallel Control (dpctl)
#
# Copyright 2020-2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... |
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from newsfeed.models import RssUrl
class SignUpForm(UserCreationForm):
email = forms.CharField(
max_length=254,
required=True,
widget=forms.EmailInput()
)
cl... |
import RPi.GPIO as GPIO
def action():
print('Callback from pi')
socket.emit(-action1)
def init():
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.add_event_detect(4, GPIO.BOTH)
init()
GPIO.add_event_callback(4, action)
GPIO.add_event_callback(5, action2)
|
/**
* Created by marija on 22.02.18.
*/
var p1 = Promise.resolve(18);
var p2 = Promise.reject(17);
var callbackArguments = [];
var base_0 = p1
var r_0= undefined
try {
r_0 = base_0.catch()
}
catch(e) {
r_0= e.message
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefine... |
import urllib
import logging
from decorator import decorator
import jsonlib
from pylons.decorators import jsonify
import herder.model
from herder.lib.base import *
log = logging.getLogger(__name__)
class LanguageController(BaseController):
def view(self, domain, language, id):
c.message = herder.model... |
import React, { useState } from 'react'
function useCreateNote(note, update = false) {
const [noteList, setNoteList] = useState([])
const [count, setCount] = useState(1)
}
export default useCreateNote
|
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
app.prepare().then(() => {
createServer((req, res) => {
// Be sure to pass `true` as the secon... |
// Turkish
'use strict';
var tr = function() {}
tr.code = 'tr';
tr.data = {
GEN_Help_0 : 'Already have a wallet somewhere?',
GEN_Help_MetaMask : 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1 : '**Do not lose it!** It cann... |
#!/usr/bin/env python
#
#===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===--------------------------------------... |
# Copyright 2013-2021 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)
from spack import *
class PyFenicsDolfinx(PythonPackage):
"""Python interface library to Next generation FEniCS prob... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
DATA PREPARATION FOR THE PRACTICAL WORK OF UNSUPERVISED CLASSIFICATION WITH METEONET DATA.
@creationdate : 08/07/2021
@author : Thomas Rieutord (thomas.rieutord@meteo.fr)
"""
import os
import sys
import pandas as pd
import numpy as np
import datetime as dt
mtoparams... |
import json
import os
import re
import textwrap
import unittest
from conans.model.ref import ConanFileReference
from conans.paths import CONANFILE
from conans.test.utils.cpp_test_files import cpp_hello_conan_files
from conans.test.utils.tools import TestClient, GenConanfile
from conans.util.files import load, save
c... |
let address = document.getElementById('connect-address'),
connect = document.getElementById('connect'),
buttonConnect = document.getElementById('connect-button');
let loginShown = true;
// Set function to be called on NetworkTables connect. Not implemented.
//NetworkTables.addWsConnectionListener(onNetworkTablesC... |
const path = require('path');
const ipc = require('electron').ipcRenderer;
$(document).ready(() => {
ipc.send('changeDiscordRP', `favmatches_activity`)
let rawuserdata = fs.readFileSync(process.env.APPDATA + '/VALTracker/user_data/user_creds.json');
let userdataToRead = JSON.parse(rawuserdata);
var pla... |
#!/usr/bin/env python
"""
Trains a model using one or more GPUs.
"""
from multiprocessing import Process
from time import sleep
import caffe, sys
def train(
solver, # solver proto definition
snapshot, # solver snapshot to restore
gpus, # list of device ids
timing=False, # show timi... |
//@target: ES6
function* g() {
let x = {
*[yield 0] () {}
};
}
|
/*
- these statements have no requirements
- code at multiple places depend on these
*/
Object.defineProperty(String.prototype, 'filename', {
value: function (extension) {
let s = this.replace(/\\/g, '/');
s = s.substring(s.lastIndexOf('/') + 1);
return extension ? s.replace(/[?#].+$/, '') : s.split('.')... |
import mimetypes
import os
from ... import utils
from ...tl import types
class File:
"""
Convenience class over media like photos or documents, which
supports accessing the attributes in a more convenient way.
If any of the attributes are not present in the current media,
the properties will be ... |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M7.64 2.64 6.22 1.22C4.23 3.21 3 5.96 3 9s1.23 5.79 3.22 7.78l1.41-1.41C6.01 13.74 5 11.49 5 9s1.01-4.74 2.64-6.36z"
}, "0"), /*#__PURE__*/_jsx("circle",... |
import { ResponseError } from "./errors";
function getUrl(url) {
if (typeof url === "string") {
return url;
} else {
return url.href;
}
}
export async function parseBody(res, parse) {
if (parse == undefined || parse === "detect") {
const contentType = res.headers.get("content-type");
if (contentType?.star... |
function solution() {
(async () => {
let articleRequest = await fetch('http://localhost:3030/jsonstore/advanced/articles/list');
let article = await articleRequest.json();
article.forEach(el => {
createHtml(el._id, el.title);
})
})();
function createHtml(article... |
# flake8: noqa: F811, F401
import asyncio
import time
import pytest
import logging
from littlelambocoin.protocols import full_node_protocol
from littlelambocoin.types.peer_info import PeerInfo
from littlelambocoin.util.ints import uint16
from littlelambocoin.wallet.transaction_record import TransactionRecord
from te... |
from os import sys, path
root_path = path.dirname(path.dirname(path.abspath(__file__)))
from StockAnalysisSystem.core.Utility.time_utility import *
from StockAnalysisSystem.core.StockAnalysisSystem import StockAnalysisSystem
def __test_factor_for_one_stock(sas: StockAnalysisSystem, factors: [str]):
if not isinst... |
import { useState, useEffect } from 'react';
export default function useDebounce(value, delay) {
const [debouncedValue, setValue] = useState(value);
useEffect(() => {
const timer = setTimeout(() => {
setValue(value);
}, delay);
return () => {
clearTimeout(timer);
};
}, [value]);
... |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from typing import Optional, Sequence, cast
import gym
import hydra.utils
import numpy as np
import omegaconf
i... |
import pandas as pd
import numpy as np
from ..utils import format_data, cache
@cache
def Mnist(onehot=True):
'''Famous digits dataset'''
url = "https://www.python-course.eu/data/mnist/mnist_train.csv"
df = pd.read_csv(url, header=None)
X = df.iloc[:,1:].transpose().values
Y = df.iloc[:,0].v... |
import { StyleSheet, Animated } from 'react-native';
import styled from 'styled-components/native';
export const Container = styled(Animated.ScrollView).attrs({
contentContainerStyle: { alignItems: 'center' },
})`
margin: 0 30px;
`;
export const Top = styled.View`
background: #FFF;
padding: 10px;
`;
export c... |
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 28 02:24:47 2019
@author: coby_
Practica 10: uso de librerias
"""
import datetime
hoy = datetime.date.today();
mes = hoy.month
year = hoy.year
if hoy.day>15:
if mes==12:
mes = 1;
year+=1
else:
mes+=1
quincena = datetime.date(y... |
# -*- coding: utf8 -*-
'''
Basic load balancer definitions
@author: Luis Barrios Hernández
@version: 1.1
'''
class LoadBalancer(object):
'''
These objects determine the virtual machine server that will host
a virtual machine.
'''
def __init__(self, databaseConnector):
'''
Initializ... |
/*******************************************************************************
* Copyright (c) 2009, 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accom... |
module.exports = {
ascending: ascending,
descending: descending
};
function ascending(a, b) {
return a > b ? 1 : a < b ? -1 : 0;
}
function descending(a, b) {
return a > b ? -1 : a < b ? 1 : 0;
}
|
/*
Copyright 2017 ODK Central Developers
See the NOTICE file at the top-level directory of this distribution and at
https://github.com/getodk/central-frontend/blob/master/NOTICE.
This file is part of ODK Central. It is subject to the license terms in
the LICENSE file found in the top-level directory of this distributi... |
import { StyleSheet } from "react-native";
import Colors from "../../constants/Colors";
import Fonts from "../../constants/Fonts";
export default StyleSheet.create({
container: {
paddingHorizontal: 25,
},
backButton: {
color: Colors.contrastColor,
fontSize: 20,
},
settingTitle: {
textTransfor... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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 test_pyckage_github.version import __version__
class TestVersion:
def test_version(self):
assert isinstance(__version__, str)
|
//
// Copyright (c) 2020, Paul R. Swan
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condit... |
import copy
import logging
import sys
from http import HTTPStatus
import zlib
import json
from flask import make_response, jsonify, current_app, abort
from werkzeug.urls import url_unquote
from backend.czi_hosted.common.config.client_config import get_client_config, get_client_userinfo
from backend.common.constants i... |
O = require('output-manager');
__IS_TRACE = process.env.DO_TRACE || false;
__IS_DEBUG = process.env.DO_DEBUG || false;
if (__IS_DEBUG || __IS_TRACE) {
O.level(((__IS_TRACE) ? O.LogLevel.TRACE : O.LogLevel.DEBUG));
}
const CF = require('js-cfclient');
const CfClient = new CF.CFClient(new CF.CFConfig({
... |
import React from 'react';
import { mount } from 'enzyme';
import { act } from 'react-dom/test-utils';
import ConfigProvider from '..';
import zhCN from '../../locale/zh_CN';
import Form from '../../form';
describe('ConfigProvider.Form', () => {
beforeAll(() => {
jest.useFakeTimers();
});
afterAll(() => {
... |
/**
BSD 3-Clause License
This file is part of the Basalt project.
https://gitlab.com/VladyslavUsenko/basalt.git
Copyright (c) 2019, Vladyslav Usenko and Nikolaus Demmel.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following con... |
// 4vertices x 1strips
KDint16 g_nVertices1 [ ] =
{
1,-1,0, 1,1,0, -1,-1,0, -1,1
};
// 4vertices x 1strpis
KDint16 g_nVertices2 [ ] =
{
10,0,10, 10,0,-10, -10,0,10, -10,0,-10
};
// 20vertices x 20strips
KDint16 g_nVertices3 [ ] =
{
-10,0,-10, -9,0,-10, -10,0,-9, -9,0,-9, -10,0,-8, -9,0,-8, -10,0,-7, -9,0,-7,... |
version = '8.1.0'
|
import numpy as np
import time
from djitellopy import tello
from cv2 import cv2
me = tello.Tello()
me.connect()
print(me.get_battery())
me.streamon()
#me.takeoff()
#me.send_rc_control(0, 0, 0, 25)
time.sleep(2.2)
w, h = 360, 240
fbRange = [6200, 6800]
pid = [0.4, 0.4, 0]
pError = 0
def findFace... |
/**
* bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
*
* @version v1.18.1
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)... |
from pagrant.vendors.docker.utils.utils import (
compare_version, convert_port_bindings, mkbuildcontext, ping, tar
) # flake8: noqa
|
$(document).ready(function() {
$('#data').after('<div id="nav"></div>');
var rowsShown = 6;
var rowsTotal = $('#data tbody tr').length;
var numPages = rowsTotal / rowsShown;
for (i = 0; i < numPages; i++) {
var pageNum = i + 1;
$('#nav').append('<a href="#" rel="' + i + '">' + pageNum + ... |
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.urlresolvers import resolve
import sys, os
from distutils import dir_util, file_util
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
)
help = 'Install Aadhaar fixt... |
/* Filter menu operator messages */
if (kendo.ui.FilterCell) {
kendo.ui.FilterCell.prototype.options.operators =
$.extend(true, kendo.ui.FilterCell.prototype.options.operators,{
"date": {
"eq": "равна",
"gte": "после или равна",
"gt": "после",
"lte": "до или равна",
"lt": "до",
"neq": "не р... |
var fs = require('fs');
var path = require('path');
var newTestFile = 'hello2_spec.js';
var newTestBody = 'describe("hello2", function() {\n' +
' it("should say hello 2", function() {\n' +
' expect(hello("2")).toBe("hello 2");\n' +
' });\n' +
'});';
module.exports = {
framework: 'jasmine',
// executing js f... |