text stringlengths 3 1.05M |
|---|
# terrascript/provider/time.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:28:43 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.provider.time
#
# instead of
#
# >>> import terrascript.provider.hashicorp.time
#
# This is only available for 'official' and 'partner' provider... |
import React from 'react';
import { Formik } from 'formik';
import schema from './login-form.schema';
import Form from './Form';
const initialValues = { email: '', password: '' };
export default ({ handleSubmit }) => {
return (
<Formik
initialValues={initialValues}
onSubmit={handleSubmit}
vali... |
import chalk from 'chalk';
import { GeneralError, APIError } from '../errors/runtime';
import { RUNTIME_ERRORS } from '../errors/types';
import CliArgumentParser from './argument-parser';
import TerminationHandler from './termination-handler';
import log from './log';
import remotesWizard from './remotes-wizard';
impor... |
import * as wasm from "wasm-bellman-ford";
var data = JSON.stringify(
{
"graph": [
[1.00, 2.00, 4.00],
[0.50, 1.00, 2.00],
[0.25, 0.50, 1.00]
]
})
var bool_response = wasm.bellman_ford_neg_cycle(data);
console.log(bool_response)
|
from .actions import ActionProcessor
from .log import LogProcessor |
const { cat, rm, cp, exec, mkdir } = require("shelljs")
const replace = require('replace-in-file');
const ora = require('ora');
const { readFile, writeFile } = require('jsonfile')
const os = require("os");
const typingSource = "build/output/node/js/**/*.d.ts";
const typingFile = "typings/ExchangeWebService.d.ts";
cons... |
var gulp = require('gulp');
var del = require('del');
var gulpsync = require('gulp-sync')(gulp);
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var gzip = require('gulp-gzip');
var replace = require('gulp-string-replace');
gulp.task('default', gulpsync.sync([
'version.update',
'clean... |
export const cibMozilla = ["32 32","<path d='M0 32v-32h32v32zM21.855 9.016l-0.308 0.036-0.292 0.052-0.281 0.084-0.265 0.093-0.271 0.093-0.249 0.12-0.24 0.131-0.229 0.145-0.224 0.161-0.213 0.172-0.203 0.188-0.183 0.203-0.177 0.213-0.172 0.224-0.145 0.229-0.147 0.251-0.135 0.255-0.12 0.281-0.104-0.297-0.136-0.276-0.135-0... |
import React, { Component } from 'react';
import Iframe from 'react-iframe';
import './Contact.css';
class Contact extends Component {
render () {
// <div className="map-canvas" id="map-canvas-contact" data-lat="19.433555" data-lng="-99.172938" data-string="<div className='map-content'>
// <p><i>... |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import hashlib
import re
import urllib2
from django.views.decorators.csrf import csrf_exempt
import pymongo
from PenBlog.config.server import *
from PenBlog.func import *
__author__ = 'quanix'
def show_homepage(request, page):
"""
博客首页
"""
db = connect_mon... |
from abc import ABCMeta, abstractmethod
import numpy as np
from scipy.linalg import hankel
from scipy.sparse import lil_matrix
from scipy.sparse import csr_matrix as spmatrix
class StructureMeta:
__metaclass__ = ABCMeta
@abstractmethod
def struct_from_vec(self, x):
# reads an input vector
... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
from collections import OrderedDict
import torch
from torch import nn
from torch.nn import functional as F
class _SimpleSegmentationModel(nn.Module):
__constants__ = ['aux_classifier']
def __init__(self, backbone, classifier, aux_classifier=None):
super(_SimpleSegmentationModel, self).__i... |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @auther:FelixFu
# @Date: 2021.10.1
# @github:https://github.com/felixfu520
import math
from functools import partial
from core.modules.register import Registers
@Registers.schedulers.register
class yolox_warm_cos:
def __init__(self, lr, iters_per_epoch, total_epochs... |
require('../../modules/es6.object.statics-accept-primitives');
module.exports = require('../../modules/$.core').Object.isSealed; |
import Vue from "vue"
import Element from "element-ui"
import locale from "element-ui/lib/locale/lang/en"
Vue.use(Element, { locale })
|
import VJOTGFilter from '../prototype.js';
/**
* @customelement vj-otg-mirror
* @description Custom element for mirroring the current corrdinate.
* @property mode {number} value from 0-3 describing how the mirror is done
* - 0, No mirror
* - 1, Left to Right
* - 2, Top to Bottom
* - 3, Left to Right and Top to ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
(() => {
llm.initializeTabs(document.querySelector("#tabs--reports"));
})();
|
# -*- coding: utf-8 -*-
"""
pwdcheck.helpers
~~~~~~~~~~~~~~~~
"""
class Dotdict(dict):
"""dot.notation access to dict attributes."""
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
__delattr__ = dict.__delitem__
class cached_property(object):
"""Decorator that converts a method w... |
'''
Module:
libs.sdk
Description:
This is the library sub-component of Genie for `genie.sdk`.
'''
# metadata
__version__ = '19.10'
__author__ = 'Cisco Systems Inc.'
__contact__ = ['pyats-support@cisco.com', 'pyats-support-ext@cisco.com']
__copyright__ = 'Copyright (c) 2018, Cisco Systems Inc.'... |
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
function init(asyncId, type, triggerAsyncId) {
const parentContext = executionContextMap.get(triggerAsyncId);
if (!parentContext) return;
let traceArray;
if (parentContext.traceArray) {
traceArray = parentContext.traceArray.concat(
`asyncId ${asyncId}: ${type}, eAID: ${asyncHooks.executionAsyncId()},... |
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (game, message, params) {
var actions = game.actions;
var config = game.config;
// Run checks, etc
if (params[0] === undefined) {
message.channel.send(":x: Wrong syntax! Please use `" + config["command... |
import React from 'react'
import { StyleSheet } from 'react-native';
const Style = StyleSheet.create({
Header : {
backgroundColor: "#009AED",
height: 120,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
borderBottomLeftRadius: 15,
border... |
import React from "react";
import { connect } from "react-redux";
import {
clearItemFromCart,
addItem,
removeItem
} from "../../redux/cart/cart.action";
import {
CheckoutItemContainer,
ImageContainer,
TextContainer,
QuantityContainer,
RemoveButtonContainer
} from "./checkout-item-styles";
const Check... |
import{createVNode as _createVNode,openBlock as _openBlock,createBlock as _createBlock}from"/modules/vue.js";export default function render(e,o){return _openBlock(),_createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[_createVNode("path",{"s... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'funannotate'
DESCRIPTION = 'funannotate: ... |
import pkg_resources
from functools import partial
from lektor.pluginsystem import Plugin
from lektor.context import get_ctx
from lektor.assets import get_asset
import os.path
from pybtex.database.input import bibtex as pybibtex
import pybtex.style.names.plain as myplain
plain = myplain.NameStyle().format
def generi... |
from ajenti.api import *
from ajenti.plugins import *
info = PluginInfo(
title='Ajenti Configurator',
description='Configuration section for setting up Ajenti itself',
icon='wrench',
dependencies=[
PluginDependency('main')
],
)
def init():
import api
import configurator
|
/**
* MIT License
*
* Copyright (c) 2016 InSoft Engineering / github.com/insoftpub
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation t... |
define(function(require) {
var formatUtil = require('./format');
var nubmerUtil = require('./number');
var Model = require('../model/Model');
var zrUtil = require('zrender/core/util');
var each = zrUtil.each;
var isObject = zrUtil.isObject;
var modelUtil = {};
/**
* If value is n... |
"""
The filehelp-system allows for defining help files outside of the game. These
will be treated as non-command help entries and displayed in the same way as
help entries created using the `sethelp` default command. After changing an
entry on-disk you need to reload the server to have the change show in-game.
An file... |
import factory
from factory.django import DjangoModelFactory
from factory import fuzzy
from accounts.factories import UserFactory
from .models import Activity
class ActivityFactory(DjangoModelFactory):
class Meta:
model = Activity
actor = factory.SubFactory(UserFactory)
verb = fuzzy.FuzzyChoice(... |
'use strict';
var conf = require('./gulp.conf');
var _ = require('lodash');
module.exports = function () {
return _.defaultsDeep(conf.defaults.browserSync, {
server: {
baseDir: [conf.paths.dist]
},
open: false,
reloadOnRestart: true,
notify: false,
port: 3000,
ui: {
port: 300... |
/*
* File : dfs_romfs.c
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2011, RT-Thread Development Team
*
* 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 Fou... |
// Phantombuster configuration {
"phantombuster command: nodejs"
"phantombuster package: 5"
"phantombuster dependencies: lib-StoreUtilities.js, lib-WebSearch.js"
const { URL } = require("url")
const Buster = require("phantombuster")
const buster = new Buster()
const WebSearch = require("./lib-WebSearch")
const userA... |
// license:BSD-3-Clause
// copyright-holders:Sergey Svishchev
/**********************************************************************
Poisk-1 HDC device (model B942)
**********************************************************************/
#ifndef MAME_BUS_ISA_P1_HDC_H
#define MAME_BUS_ISA_P1_HDC_H
#pragma once
... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes from 'pr... |
# def f(x):
# return 2*x**2 - 5*x + 3 # Function from the given equation
f = lambda x: 2*x**2 - 5*x + 3
x1, x2 = map(float, input("Enter the initial interval (x1 x2): ").split())
# x1 = 0, 2 # The initial guesses
# x2 = 1.3
y1 = f(x1)
y2 = f(x2)
if y1*y2 > 0: # Signs of y-values are not opposite... |
#include <vector>
#include "XPathNamespace.h"
using namespace std;
//basic element of a sequence is one of these values
enum XPathItemType
{
not_an_item,
atomic,
node
};
//each non atomic item is of a node type
enum XPathNodeType
{
not_a_node,
document,
element,
attribute,
text,
xml_namespace,
pro... |
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@class NSCache;
@interface TVNPRoutingTintedImageCache : NSObject
{
NSCache *_imageCache; // 8 = 0x8
}
+ (id)sharedInstance; // IMP=0x000000010001e0e0
@p... |
from typing import Dict
import requests
from bs4 import BeautifulSoup
from deutschland.config import Config, module_config
class Registrations:
def __init__(self, config: Config = None):
if config is None:
self._config = module_config
else:
self._config = config
REQU... |
'''
Created on 16 Dec 2019
@author: gualtiero
'''
import pytest
import os
import secretwallet.utils.cryptutils as cu
from secretwallet.main.configuration import set_configuration, get_configuration
from secretwallet.utils.cryptutils import encrypt_key
from secretwallet.constants import parameters
@pytest.fixture
de... |
module.exports = () => ({
plugins: {
'postcss-import': {},
'precss': {},
'autoprefixer': {
browsers: ['last 2 versions', 'IE > 8']
},
'lost': {},
'postcss-reporter': {
clearMessages: true
}
}
})
|
# avax-python : Python tools for the exploration of the Avalanche AVAX network.
#
# Find tutorials and use cases at https://crypto.bi
"""
Copyright (C) 2021 - crypto.bi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t... |
from datetime import datetime, timedelta, timezone as datetime_timezone
import pytz
from django.conf import settings
from django.db.models import (
DateField, DateTimeField, F, IntegerField, Max, OuterRef, Subquery,
TimeField,
)
from django.db.models.functions import (
Extract, ExtractDay, ExtractHour, Ex... |
/******************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2014 Intel Corporation. All rights reserved.
* Copyrig... |
# Generated by Django 3.2.8 on 2021-10-11 12:32
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Paciente',
fields=[
('id', ... |
module.exports={A:{A:{"1":"B A","2":"K C G E WB"},B:{"1":"D u Y I M H"},C:{"2":"UB z F J K C G E B A D u Y I M H N O P Q R S SB RB","66":"T U V W X w Z","129":"0 1 2 3 5 6 7 a b c d e f L h i j k l m n o p q r s t y v g"},D:{"1":"0 1 2 3 5 6 7 N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v g GB B... |
function enter(pi) {
pi.warp(925040000,0); //backstreet
} |
/*! For license information please see 262bf9f6bb83288aa934600be7ca63bba17eff5d-22c69fbf2a4dddf2c2ae.js.LICENSE.txt */
(self.webpackChunkgatsby_starter_ghost=self.webpackChunkgatsby_starter_ghost||[]).push([[552],{4936:function(t){"use strict";t.exports=JSON.parse('{"layout":"constrained","placeholder":{"fallback":"dat... |
// Copyright (C) 2020, Aktiv-Soft JSC. All rights reserved.
// This file is part of rtuart project licensed under the terms of the 2-clause
// BSD license. See the LICENSE file found in the top-level directory of this
// distribution.
#include <rtuartscreader/iso7816_3/apdu_t0.h>
#include <rtuartscreader/iso7816_3/de... |
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
import data_prep
from nn import *
from keras.layers import Conv1D, Conv2D, Dense, MaxPooling1D, Flatten, Embedding, Reshape, MaxPool2D, LSTM
# from keras import backend as K
# from rnn import w_categorical_crossentropy, loss_cl... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
// 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.
cr.exportPath('options');
/**
* @typedef {{actionLinkText: (string|undefined),
* accountInfo: (string|undefined),
* childUse... |
#!/usr/bin/env python3
# IBM_PROLOG_BEGIN_TAG
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2022
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... |
'use strict';
var randtoken = require('rand-token'),
nodemailer = require('nodemailer');
module.exports = function(mongoose) {
var isPositiveInteger = function(x) {
return ((parseInt(x, 10) === x) && (x >= 0));
};
var createOptionError = function(optionName, optionValue, expectedType) {
return new T... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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
from ... import _utilities, _tables
from... |
#!/usr/bin/env python3
"""
kiwi_manage.py
Script to control donkey car with GPS navigation along with IMU-based heading
and ultrasonic-based object detection.
Waypoints are set with GPS coordinates in degrees.
Call: gps_manage.py -drive
"""
# import GPS Planner and other DK parts
import donkeycar as dk
from wp_parts... |
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and relate... |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
from flask import Blueprint
import handlers
getuserinvoices_api = Blueprint('getuserinvoices_api', __name__)
@getuserinvoices_api.route('/getuserinvoices', methods=['GET'])
def getuserinvoices_get():
"""
Get a list of Lightning... |
default_app_config = "parsifal.apps.authentication.apps.AuthenticationConfig"
|
/*
* Copyright (c) 2015 Appirio, Inc. All rights reserved.
* @author Igor Androsov
* @version 1.0
*/
/**
* This file provides an interface needed to manage account data from database.
*/
"use strict";
/**
* Import required modules, and functions
*/
var pg = require('pg');
var config = require('config');
var l... |
import template from "./navigate-to-modules.pug"
import stylesheet from "./navigate-to-modules.styl"
import BaseScreenshot from "components/base-screenshot"
export default class Screenshot extends BaseScreenshot {
static template = template;
static stylesheet = stylesheet;
}
|
import codecs
import os
from setuptools import find_packages
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""Return the contents of the read file.
- Build an absolute path from *parts*
- Return the contents of the resulting file.
- Assume UTF-8 en... |
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the ri... |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
// @flow
import * as React from 'react'
import Headroom from '@integreat-app/react-sticky-headroom'
import styled, { type StyledComponent } from 'styled-components'
import withPlatform from '../../platform/hocs/withPlatform'
import Platform from '../../platform/Platform'
import type { ThemeType } from 'build-configs/T... |
# This file is part of Propagator, a KDE Sysadmin Project
#
# Copyright (C) 2015-2016 Boudhayan Gupta <bgupta@kde.org>
#
# 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 retai... |
"""
Autopsy Forensic Browser
Copyright 2016-2021 Basis Technology Corp.
Contact: carrier <at> sleuthkit <dot> org
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... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#pragma once
/** timeval inline functions */
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
typedef struct timev... |
/*
* TechSmith Screen Codec 2 (aka Dora) decoder
* Copyright (c) 2012 Konstantin Shishkov
*
* This file is part of FFmpeg.
*
* FFmpeg 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
* ve... |
# ==========================================================================
#
# Copyright NumFOCUS
#
# 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/... |
# XXX for development purposes only
#
# anneal Phe113 from 3k0n into partial omit map - if the protocol is working
# properly, the sidechain should usually pop into the secondary conformation.
from __future__ import division
from mmtbx.building import disorder
from mmtbx import building
import libtbx.load_env
import ... |
/*Debemos lograr tomar Los numeros por ID ,
transformarlos a enteros (parseInt),realizar la operación correcta y
mostrar el resto entre el dividendo y el divisor.
ej.: "El resto es 0 ."*/
function SacarResto()
{
var dividendo;
var divisor;
var resultado;
dividendo = document.getElementById("numeroDivid... |
const router = require("express").Router();
const { Client } = require("podcast-api");
require('dotenv').config({ path: './.env' });
const client = Client({ apiKey: process.env.API_KEY });
router.get("/popularPodcasts", async (req, res) => {
try {
client
.fetchBestPodcasts({
region: "us",
... |
import _plotly_utils.basevalidators
class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self,
plotly_name='categoryarraysrc',
parent_name='layout.polar.radialaxis',
**kwargs
):
super(CategoryarraysrcValidator, self).__init__(
... |
# Copyright 2017 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.0
#
# Unless required by applicable law or agreed to in wri... |
from .StructBlockWithStyle import StructBlockWithStyle
class JobsWholeBlock(StructBlockWithStyle):
class Meta:
template = 'common/blocks/jobs_whole_block.html'
icon = 'fa-suitcase'
label = 'Jobs Block'
|
import math
import random
import turtle
import time
window_length = 600
window_height = 600
turtles = 8
window = turtle.Screen()
turtle.screensize(window_length, window_height)
turtle.bgcolor("#bf15a9")
turtle.penup()
turtle.setpos(-100, 50)
turtle.write("TURTLE RACE", font=("Arial",35,"bold"))
turtl... |
from typing import Any, Dict, Type, Union, Optional
from urllib.parse import quote
import orjson
from pydantic import Field, BaseModel
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.datastructures import URL
class ORJSONResponse(JSONResponse):
media_type = "app... |
import logging
from pyvisdk.exceptions import InvalidArgumentError
# This module is NOT auto-generated
# Inspired by decompiled Java classes from vCenter's internalvim25stubs.jar
# Unless states otherside, the methods and attributes were not used by esxcli,
# and thus not tested
log = logging.getLogger(__name__)
de... |
import * as swcHelpers from "@swc/helpers";
var i, a, C = function() {
"use strict";
swcHelpers.classCallCheck(this, C);
};
(void 0)["a b"], C["c d"], i["a b"], a["a b"], ({
"a b": 1
})["a b"];
|
define({
"_widgetLabel": "Nacrtaj",
"selectDrawMode": "Izaberi režim crtanja",
"clear": "Izbriši",
"point": "Tačka",
"line": "Linija",
"polyline": "Polilinija",
"freehandPolyline": "Polilinija slobodnom rukom",
"triangle": "Trougao",
"extent": "Pravougaonik",
"circle": "Krug",
"ellipse": "Elipsa",... |
from dynamikontrol import Module
from flask import Flask, request, render_template
module = Module()
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/change', methods=['POST'])
def change():
is_locked = request.form['is_locked']
if is_locked == 'true'... |
import React from 'react';
import Dropdown from './Dropdown';
import Select from 'react-select';
import WebFont from 'webfontloader';
const gradients = [
{value: 'blue', label: 'Blue'},
{value: 'seafoam', label: 'Seafoam'},
{value: 'purple', label: 'Purple'},
{value: 'orange', label: 'Orange'},
{... |
from django.contrib.auth import get_user_model
from django.test import TestCase
from django_dynamic_fixture import get
from readthedocs.builds.constants import EXTERNAL
from readthedocs.builds.models import Build, Version
from readthedocs.projects.constants import PRIVATE, PUBLIC
from readthedocs.projects.models impor... |
#ifndef SHARED_POINCARE_HELPERS_H
#define SHARED_POINCARE_HELPERS_H
#include <apps/global_preferences.h>
#include <poincare/preferences.h>
#include <poincare/print_float.h>
#include <poincare/expression.h>
namespace Shared {
namespace PoincareHelpers {
inline Poincare::Layout CreateLayout(const Poincare::Expression... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus... |
import React, { Component } from 'react'
import Kitten from '../components/Kitten'
import { connect } from 'react-redux'
import { fetchKittens } from '../actions/kittens'
import KittenForm from './KittenForm'
class Kittens extends Component {
componentDidMount(){
console.log("componentDidMount")
t... |
"""
Django settings for TukaTuka project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... |
import React from 'react'
const Header = ({setSearchValue})=>{
return(
<div className='header-container'>
<div className='header-inner'>
<h1>The Hacker News</h1>
<input className='header-search' placeholder='Search...' onChange={(e)=>setSearchValue(e.target.value)}/>
</div>
</div>... |
"""Test PyPlumIO base frame."""
from typing import Tuple
from unittest.mock import patch
import pytest
from pyplumio.constants import BROADCAST_ADDRESS, ECONET_ADDRESS
from pyplumio.frames import (
ECONET_TYPE,
ECONET_VERSION,
HEADER_SIZE,
Request,
Response,
requests,
responses,
)
@pyte... |
# 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 app... |
from typing import Optional, Union
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from matplotlib.axes import Axes
from matplotlib.colors import Colormap
from milkviz.utils import doc
from milkviz.utils import get_cmap_colors, set_category_legend,... |
/**
* Lock action
*/
export const name = 'lock'
export const alias = 'l'
/**
* Locks the layer if the condition is true or unlocks it otherwise.
*
* @param {Boolean} condition
* @param {MSLayer} layer
* @param {Array} params
*/
export function perform (condition, layer, params) {
layer.setIsLocked(condition... |
# Copyright 2016 The Bazel 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 la... |
/*!
* angular-datatables - v0.5.6
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="datatables.colreorder"),function(a,b,c,d){"use strict";function e(a){function b(a){function b(a,b){function e(){var a=... |