text stringlengths 3 1.05M |
|---|
import React, {useState} from 'react';
import Modal from 'react-modal';
import TextField from '@material-ui/core/TextField';
import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import { WORDPRESS_HOST } from '../../config';
import axios from 'axios';
import './ContactForm.scss';
function ContactF... |
/*! Amaze UI v2.5.1 ~ Handlebars helper | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-01-19T14:45:42+0800 */
(function(i){"use strict";var n=function(i){i.registerHelper("ifCond",function(i,n,t,a){switch(n){case"==":return i==t?a.fn(this):a.inverse(this);case"===":return i===t?a.fn(this):... |
/* jshint node: true */
var fs = require('fs')
var RSVP = require('rsvp')
var run = require('./run')
var stat = RSVP.denodeify(fs.stat)
var copy = RSVP.denodeify(require('ncp').ncp)
function supportsWorktree() {
return run('git', ['help', 'worktree']).then(function() {
return true
}, function() {
return f... |
import hashlib
from flask import abort
from params import PI_ALLOWED_NETWORKS, PI_USE_PROXY_IP
import os
import sys
from datetime import timedelta
# Decorators
def action(route, template='', methods=['GET']):
"""Decorator to create an action"""
def real_decorator(function):
function.pi_api_action = ... |
import { parseNodeAsSelector } from './parse-selector';
import { parseNodeAsValue } from './parse-value';
// Export refresh
export default async function refresh(node, on) {
const type = getTypeFromNode(node);
const beforeType = type && 'before' + getCapitalType(type);
const specialType = type && getSpecialTypeFrom... |
# Copyright (c) 2018 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... |
import React from 'react';
import PropTypes from 'prop-types';
export default function Confirm({ onCancel, onDangerClick, onDangerText, title }) {
return(
<div className="confirm">
{title}
<p className="danger-text">{onDangerText}</p>
<div className="confirm-button-group">
<button class... |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
import React from "react"
import Layout from "../components/layout"
import { graphql } from "gatsby"
export default ({ data: post }) => {
return (
<Layout>
<h1>{post.markdownRemark.frontmatter.title}</h1>
<h4>
{post.markdownRemark.timeToRead}{" "}
{post.markdownRemark.timeToRead > 1 ?... |
import React, { useState, useEffect } from 'react';
import './Hospital.css';
import moment from 'moment';
import { getbedInfo, getHospitalDetails } from '../../../config/Service/Beds';
import compareByAsc from '../../../config/AscDsc/Asc';
import compareByDesc from '../../../config/AscDsc/Desc';
import { FaArrowsAltV, ... |
#skip.pythran export dilate_decompose(int[][], int)
#pythran export dilate_decompose_loops(float[][], int)
#skip.pythran export dilate_decompose_interior(int[][], int[][])
#skip.runas import numpy as np ; image = np.random.randint(0, 256, (width, height)) / 256.0 ; dilate_decompose_loops(image)
#runas import numpy as ... |
import Icon from 'veui/components/Icon'
Icon.register({
'sound-market': {
paths: [
{
d: 'M23.07 0h.03a2 2 0 012 2v44a2 2 0 01-2 2h-.03a2 2 0 01-2-2V2c0-1.1.9-2 2-2zM12.8 10.29h.02a2 2 0 012 2v26.85a2 2 0 01-2 2h-.02a2 2 0 01-2-2V12.3c0-1.1.9-2 2-2zm20.57 0h.02a2 2 0 012 2v26.85a2 2 0 01-2 2h-.02a2 ... |
# 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... |
import { textWasPrinted } from "./input";
import { font } from "./style";
import {
append as appendToWindow,
get as getWindow
} from "./window";
// output buffers for all windows
const outputBuffer = [ "" ];
// custom output filters
let outputFilter = null;
/**
* Make text HTML-printable
*
* @param text
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bus_http_1 = require("@comunica/bus-http");
/**
* A comunica Proxy Http Actor.
*/
class ActorHttpProxy extends bus_http_1.ActorHttp {
constructor(args) {
super(args);
}
async test(action) {
if (!action.conte... |
import Discord from "discord.js";
export default function returnNoEmbed(yeslist, client) {
/* we map through all the users outputting them numerically */
if (yeslist.err === true) return this.errorEmbed("List is currently empty.");
if (!yeslist.id) return this.errorEmbed("Event does not exist");
const embed =... |
import React from "react";
import TitleCertifications from "./certifications/title";
import CertificationsContent from "./certifications/allcertifications";
const Certification = () => (
<section className="no-certifications">
<div className="container">
<div className="row justify-content-center">
... |
"""
Create by: apenasrr
Source: https://github.com/apenasrr/mass_videojoin
A smart tool to optimize and make turbo join in a massive video collection
"""
from configparser import ConfigParser
import datetime
import logging
import os
import pandas as pd
import sys
import unidecode
from transition import c... |
// SMALLER UTILITY FUNCTIONS GO HERE
const { v4: uuid } = require("uuid");
const logger = require("./logger.js");
const fetch = require('node-fetch');
const xmlparser = require('fast-xml-parser');
// IM MEMORY CACHE, containing specified ad list for each tenant.
const TENANT_CACHE = {};
async function UpdateCache(te... |
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object... |
"use strict";
(self["webpackChunkneo_mjs"] = self["webpackChunkneo_mjs"] || []).push([["vendors-src_form_field_Text_mjs"],{
/***/ "./src/form/field/Base.mjs":
/*!*********************************!*\
!*** ./src/form/field/Base.mjs ***!
\*********************************/
/***/ ((__unused_webpack___webpack_module__,... |
(function () {
/*jshint esnext: true */
function noyield() {
// https://github.com/jshint/jshint/issues/1123
/*jshint noyield: false */ // FAIL invalid option
var of, run;
run(function *() {
return of(5); // not relaxed
}); // not relaxed
}
function noyieldTrue() {
/*jshint noyield: tr... |
import React from 'react';
import ExpenseItem from './ExpenseItem';
import './ExpensesList.css';
const ExpensesList = props =>{
if (props.items.length === 0) {
return <h2 className="expenses-list__fallback">Found no expenses.</h2>;
};
return <ul className="expenses-list">
{props.item... |
var ProTracker = function(){
var me = {};
me.load = function(file,name){
Tracker.setTrackerMode(TRACKERMODE.PROTRACKER);
Tracker.useLinearFrequency = false;
Tracker.clearInstruments(31);
var song = {
patterns:[],
restartPosition: 1
};
var patternLength = 64;
var instrumentCount = 3... |
import React, { Component } from 'react';
import '../App.css';
import Home from './Home';
import Form from './Form';
import Projects from './Projects';
import Cv from './Cv';
import { FiPhoneCall } from 'react-icons/fi';
import { BsEnvelopeOpen } from 'react-icons/bs';
import { AiOutlineFileDone } from 'react-icons/ai'... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@angular/core", "./s... |
import readProxy from "./abis/readProxy.json";
import SNX from "./abis/snx.json";
export default {
readProxy,
tokens: {
SNX,
},
};
|
# stdlib
from io import BytesIO
from typing import Any
from typing import Generator
from typing import List
# third party
import boto3
from botocore.client import Config
from pydantic import BaseSettings
import requests
from tqdm import tqdm
# relative
from ....grid import GridURL
from ....util import get_fully_quali... |
from project import motor
from project import variables
# My Blocks
from lower_pen import lower_pen
from lift_pen import lift_pen
def print_v(size):
seg4 = variables['Seg4']
lower_pen()
motor['A+B'].on_for_degrees(10, -20, seg4)
motor['A+B'].on_for_degrees(10, 20, seg4)
lift_pen()
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.firebase=e()}(this,function(){"use strict";!function(t){if(!t.fetch){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"... |
import time
from importlib import import_module
from django.apps import apps
from django.core.management.base import (
BaseCommand, CommandError, no_translations,
)
from django.core.management.sql import (
emit_post_migrate_signal, emit_pre_migrate_signal,
)
from django.db import DEFAULT_DB_ALIAS, connections,... |
'use strict';
// Use application configuration module to register a new module
ApplicationConfiguration.registerModule('calendar');
|
require(`dotenv`).config({
path: `.env`
});
let ghostConfig;
try {
ghostConfig = require(`./.ghost`);
} catch (e) {
ghostConfig = {
production: {
apiUrl: process.env.GHOST_API_URL,
contentApiKey: process.env.GHOST_CONTENT_API_KEY
}
};
} finally {
const { apiUrl, contentApiKey } =
pro... |
'''
Created on Nov 28, 2010
Adaboost is short for Adaptive Boosting
@author: Peter
'''
from numpy import *
def loadSimpData():
datMat = matrix([[1., 2.1],
[2., 1.1],
[1.3, 1.],
[1., 1.],
[2., 1.]])
classLabels = [1.0, 1.0, -1.... |
import os
class Config:
'''
General configuration parent class
'''
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI='postgresql+psycopg2://moringa:word@localhost/blog'
UPLOADED_PHOTOS_DEST ='app/static/photos'
class ProdConfig(Config):
'''
Production configuration chi... |
/**
* Server to share a photo
*/
const sgServer = require('sg-server')
const endpoints = require('./endpoints/share')
let shareServer = sgServer({ endpoints })
module.exports = shareServer
|
#!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from .mininode import *
from .blockstore import BlockStore, TxStore
from .util import p2p_port
'''
This ... |
// Copyright 2019-2020 @Premiurly/polkassembly authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
exports.up = function(knex) {
return knex.schema.table('content_report', (table) => {
table.enu('network', ['kusama', ... |
(function(factory){if(typeof define==="function"&&define.amd)define(["jquery"],factory);else if(typeof exports=="object"&&typeof module=="object")module.exports=factory(require("jquery"));else factory(jQuery)})(function($,undefined){var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,... |
import React from 'react';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import HelpBlock from 'react-bootstrap/lib/HelpBlock';
import InfoPopover from 'shared/info-popover';
import SelectField from './Sele... |
# SPDX-FileCopyrightText: 2017 Google Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2017 Google 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.... |
(function () {
'use strict';
angular
.module('eligbl')
.service('filteredPrograms', [filteredProgramService]);
function filteredProgramService(){
function setFilteredPrograms(programs){
this.filteredPrograms = programs;
}
return {
setFilteredP... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
/**
* Kendo UI v2016.3.914 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
/**
* UAParser.js v0.7.17
* Lightweight JavaScript-based User-Agent string parser
* https://github.com/faisalman/ua-parser-js
*
* Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
* Dual licensed under GPLv2 & MIT
*/
(function(window,undefined){"use strict";var LIBVERSION="0.7.17",EMPTY="",UNKNOWN=... |
const path = require('path')
const StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = {
entry: {
app: './web/public/app/src/index.js'
},
externals: {
},
optimization: {
splitChunks: {
chunks: 'all'
}
},
module: {
rules: [
{
test: /\.(css)$/,
... |
//generated code don't edit manually
export class ValidationError {
constructor(enErrorText, deErrorText) {
this.enErrorText = enErrorText;
this.deErrorText = deErrorText;
}
getDisplayText(locale) {
if (locale === "de") {
return this.deErrorText;
}
else {
... |
import torch
from torch.nn import functional as F
# 1.初始化
input = torch.tensor(
[
[1,1,1,1,1],
[1,1,1,1,1],
[0,0,0,1,1],
[1,1,1,1,1]
]).unsqueeze(0).float()
# print(input.size())#torch.Size([1, 4, 5])
# print(input)
#2. avg_pool1d
# m1 = F.avg_pool1d(input,kernel_size=... |
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.5 - 2014-12-12T16:07:20.856Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
... |
import math
from random import shuffle
import numpy as np
import yaml
import rospy
import dynamic_reconfigure.client
from tf.transformations import euler_from_quaternion, quaternion_from_euler
from geometry_msgs.msg import PoseStamped
import ropod_ros_msgs.msg
def send_feedback(action_req, action_server, feedback_st... |
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.contrib.auth import login,logout,get_user_model
from django.views.generic import CreateView, UpdateView, DetailView
from django.contrib.auth.views import LoginView
from .forms import UserCreateForm, CustomDBForm
from .models im... |
const expect = require('expect');
const getMeridiemSuffixOfInteger = require('./getMeridiemSuffixOfInteger.js');
test('getMeridiemSuffixOfInteger is a Function', () => {
expect(getMeridiemSuffixOfInteger).toBeInstanceOf(Function);
});
|
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 高德地图
import "./plugin/aMap"
Vue.config.productionTip = false;
new Vue({
router,
store,
render: h => h(App)
}).$mount("#app");
|
/*global angular*/
(function () {
angular
.module('simplAdmin.orders')
.controller('OrderListCtrl', OrderListCtrl);
/* @ngInject */
function OrderListCtrl(orderService, translateService) {
var vm = this;
vm.translate = translateService;
vm.tableStateRef = {};
... |
var gulp = require( "gulp" );
var fileImports = require( "gulp-imports" );
var header = require( "gulp-header" );
var beautify = require( "gulp-beautify" );
var hintNot = require( "gulp-hint-not" );
var uglify = require( "gulp-uglify" );
var rename = require( "gulp-rename" );
var plato = require( "gulp-plato" );
var gu... |
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', key_indicator='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning... |
import React from 'react';
import ReactDOM from 'react-dom'
import storeManager from '../redux/storeManager'
import Person from './person'
class People extends HTMLElement {
constructor() { // Initialize state
super();
this._people = [];
this.shadow = this.attachShadow({ mode: 'closed' }); /... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp", "hu", {
title: "Kisegítő utasítások",
contents: "Súgó tartalmak. A párbeszédablak bezárásához nyomjon ESC-et."... |
exports.templateData = {
sharedData: function (args, done) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve({
name: 'testSharedData'
});
}, 100);
});
},
contextData: function (args, ... |
from pineboolib import logging
from pineboolib.application.utils.check_dependencies import check_dependencies
from sqlalchemy import create_engine # type: ignore
from PyQt5.Qt import qWarning # type: ignore
from PyQt5.QtWidgets import QMessageBox, QWidget # type: ignore
from pineboolib.plugins.sql.flqpsql import F... |
#!/usr/bin/python
###############################################################
# rsync_WxBug_data.py #
###############################################################
# Python script for copying lightning files from atec-dataops #
# to winter ... |
import Util from "./Util/Util"
/**
* ------------------------------------------------------------------------
* Class Definition ( Abstract )
* ------------------------------------------------------------------------
*/
class MapElement {
getLabelText(key, label) {
if (!label) {
return
}
if (U... |
//import { combineReducers } from "redux";
import { configureStore, getDefaultMiddleware } from "@reduxjs/toolkit";
import logger from "redux-logger";
import storage from "redux-persist/lib/storage";
import {
persistStore,
persistReducer,
FLUSH,
REHYDRATE,
PAUSE,
PERSIST,
PURGE,
REGISTER,
} from "redux-... |
import actions from "../actions";
import store from "../store";
export function isMobile() {
return window.innerWidth < 768;
}
function initTouchDeviceTest() {
window.addEventListener("touchstart", function onFirstTouch() {
store.dispatch(actions.deviceState.update({ isTouchDevice: true }));
window.removeEventL... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path'
import Promise from 'bluebird'
... |
import React from 'react';
import Card from './Card';
import CardRow from './CardRow';
import CardInput from './CardInput';
const RequirementCard = ({
id, saleId, productId, customerId, description, unitPrice, numberOfPieces,
deliveryTime, purchaseOrderId, creationTime,
loadProduct, loadCustomer, update,
isSe... |
import React from 'react'
import { Progress } from 'reactstrap'
class BootstrapProgressExample extends React.Component {
render() {
return (
<div>
<h5 className="mb-4">
<strong>Default Progress</strong>
</h5>
<div className="mb-5">
<div className="text-center">0%... |
import sqlite3
import sys
from PyQt5.QtWidgets import QDialog, QTableWidgetItem, QHeaderView
from PyQt5 import QtWidgets, uic
import functions.chemistry
import usefulwidgets
class Chemist(QDialog):
def __init__(self):
super(Chemist, self).__init__()
uic.loadUi('ui_dir/chemist.ui',... |
import React from 'react';
// import { BlurView } from 'react-native-blur';
import { Modal, View } from 'react-native';
const FilterModal = ({ isVisible, bluredViewRef, view }) => (
<Modal visible={isVisible} transparent={true}>
{/*
bluredViewRef && (
<BlurView
viewRef={bluredViewRef}
... |
/**
* API request functions for interacting with WordPress's REST API.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https... |
module.exports = {
// github username: required
github: 'jdwilkin4',
//
// everything below here is optional. by default, we pull most profile data from your github profile.
// you can override that data here, as well as provide some additional account links below
//
// name - if not defined here, will default t... |
/* eslint-disable flowtype/require-valid-file-annotation */
const path = require('path')
const webpack = require('webpack')
// Run `yarn start.dev` to enable debug mode.
// This mode will serve the plugin bundle via a local dev-server.
const debug = process.env.WEBPACK_SERVE
module.exports = {
devtool: debug ? 's... |
'use strict';var G="function"==typeof Object.defineProperties?Object.defineProperty:function(p,r,t){p!=Array.prototype&&p!=Object.prototype&&(p[r]=t.value)};function L(p){p=["object"==typeof globalThis&&globalThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,p];for(var r=0... |
module.exports={title:"Gitee",slug:"gitee",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Gitee</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-... |
const variables = [
'PROCESS_ENV_KEY',
'ENV_FILE_KEY',
'LOCAL_ENV_FILE_KEY',
'ENV_FILE_LOCAL_OVERRIDE_TEST',
'PRODUCTION_ENV_FILE_KEY',
'LOCAL_PRODUCTION_ENV_FILE_KEY',
'DEVELOPMENT_ENV_FILE_KEY',
'LOCAL_DEVELOPMENT_ENV_FILE_KEY',
'ENV_FILE_DEVELOPMENT_OVERRIDE_TEST',
'ENV_FILE_DEVELOPMENT_LOCAL_OVE... |
// Karma configuration
module.exports = config => {
config.set({
frameworks: [
// Reference: https://github.com/karma-runner/karma-jasmine
// Set framework to jasmine
'jasmine'
],
browsers: [
// Run tests using PhantomJS
'PhantomJS'
],
files: [
'src/scripts/te... |
import React from "react"
import Header from "../components/Header"
import Hero from "../components/Hero"
import BlogComponent from "../components/BlogComponent"
import FeedbackMail from "../components/FeedbackMail"
import Footer from "../components/Footer"
const blog = () => {
return (
<>
<Header />
... |
Proj4js.defs["EPSG:32630"] = "+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"; |
from __future__ import division, print_function
import argparse
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import os
import random
def init_centroids(num_clusters, image):
"""
Initialize a `num_clusters` x image_shape[-1] nparray to RGB
values of randomly chosen pi... |
/*
* 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... |
/*
jQWidgets v13.2.0 (2022-Jan)
Copyright (c) 2011-2022 jQWidgets.
License: https://jqwidgets.com/license/
*/
/* eslint-disable */
(function(a){a.jqx.jqxWidget("jqxDocking","",{});a.extend(a.jqx._jqxDocking.prototype,{defineInstance:function(){var b={orientation:"horizontal",mode:"default",floatingWindowOpacity:0.3,pa... |
import sys
from psutil import virtual_memory
import numpy as np
import tensorflow as tf
import pandas as pd
from tensorflow.keras.losses import categorical_crossentropy
from tensorflow.keras.models import Model
from sklearn.model_selection import train_test_split
class LCAWrap(Model):
def __init__(self, *arg... |
import React from "react"
const Videoembed = (props) =>{
const url= props.src
return(
<iframe width="800" height="450" src={"https://www.youtube.com/embed/"+url+"?rel=0"} frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="">
</iframe... |
function SvgBorderClearOutlined(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='M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutProperties2 = _inte... |
// moment.js language configuration
// language : Tagalog/Filipino (tl-ph)
// author : Dan Hagman
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(requir... |
'use strict';
const fetch = require("node-fetch")
class Request {
/*
* @param {string} url - The URL to request
*/
constructor(url, body=null, j, headers={
"Content-Type": "application/json",
"Authorization": "Bot " + process.env.TOKEN
}) {
if (!j) j = false
this.u... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
// Copyright (c) 2015 Uber Technologies, Inc.
// 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 restr... |
const satsolver = require('satsolver')
satsolver.solve("hole4.cnf") |
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class RadioButtonGroup(Component):
"""A RadioButtonGroup component.
Keyword arguments:
- id (string; required):
the element's ID.
- className (string; default ''):
the css class name of the ro... |
function initJWPageFactoryAMap(t){var e={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(t){var a,r,o,n,d,i,s="",c=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");c<t.length;)a=this._keyStr.indexOf(t.charAt(c++))<<2|(n=this._keyStr.indexOf(t.charAt(c++)))>>4,r=(15&n)<<4|(d=this._key... |
import time
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from nw_util import *
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def click_and_assert(driver, id, expect):
driver.find_element_by_id(id).click()... |
var zipextractor={};zipextractor.config={};zipextractor.state={};zipextractor.config.DRIVE_API_CONFIG_DATA={clientId:"824911851129-6d64j0e08s86ih74l0lu386tqqfv71t9.apps.googleusercontent.com",appId:"824911851129",scopes:["https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive.install"],apiKe... |
from typing import cast, List, Dict, Set, Optional
from abc import ABC, abstractmethod
from enum import Enum
from spec_random import SPEC_RANDOM
from spec_basis import Rand, Kobj, KindSend, KindRecv, Lego, Syscall, Program, \
Executable
from spec_pack import pack_int
from util_bean import Bean
class RandInt(Ran... |
/*
* The copyright in this software is being made available under the BSD License, included below. This software may be subject to other third party and contributor rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Digital Primates
* All rights reserved.
*
... |
import alt from '../alt'
import FormActions from '../actions/FormActions'
import UserActions from '../actions/UserActions'
class FormStore {
constructor () {
this.bindActions(FormActions)
this.bindListeners({
onRegisterUserFail: UserActions.registerUserFail,
onRegisterUserSuccess: UserActions.reg... |
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import 'whatwg-fetch'
import 'assets/styles/base.sass'
import React from 'react'
import ReactDOM from 'react-dom'
import MainContainer from 'components/Main'
import scroll from 'utils/scroll'
scroll.resetScroll()
ReactDOM.render((
<article>
<MainCo... |
import { Directive, ElementRef, forwardRef } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
/**
* @element ons-checkbox
* @directive OnsCheckbox
* @selector ons-checkbox
* @description
* [en]Angular directive for `<ons-checkbox>` component. You can use `[(ngModel)]` to synchronize the ... |
import pytest
import taichi as ti
@ti.test(arch=ti.get_host_arch_list())
def test_struct_for_mismatch():
x = ti.field(ti.f32, (3, 4))
@ti.kernel
def func():
for i in x:
print(i)
with pytest.raises(ti.TaichiCompilationError):
func()
@ti.test(arch=ti.get_host_arch_list()... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var xml_json_1 = __importDefault(require("../maps/xml.json"));
var inverseXML = getInverseObj(xml_json_1... |