text stringlengths 3 1.05M |
|---|
var messageName, canvas, ctx, images, img, nutSack, sourceImg, width, height;
nutSack = document.createElement('img');
nutSack.src = safari.extension.baseURI + 'nutsack.png';
function handleMessage(msgEvent) {
messageName = msgEvent.name;
if (messageName === "nutsack") {
images = document.getElement... |
var humanInterval = module.exports = function humanInterval(time) {
if(!time) return time;
if(typeof time == 'number') return time;
time = swapLanguageToDecimals(time);
time = time.replace(/(second|minute|hour|day|week|month|year)s?(?! ?(s )?and |s?$)/, '$1,');
return time.split(/and|,/).reduce(function(sum, ... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"
import Card from "../components/Card";
import Section from "../components/Section";
import Wave from "../components/Wave";
import staticdata from... |
module.exports = require('./dist/async'); |
/* eslint no-use-before-define: ["error", { "variables": false }] */
import PropTypes from 'prop-types';
import React from 'react';
import { StyleSheet, Text, View, ViewPropTypes } from 'react-native';
import moment from 'moment';
import Color from './Color';
import { TIME_FORMAT } from './Constant';
export default... |
module.exports = require('../../images/2/1f639.png');
|
/**
* angular-strap
* @version v2.1.7 - 2015-10-19
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.helpers.parseOptions', [])
.provider('$parseOptions'... |
#
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This application is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This application is di... |
import React from 'react'
import { configure, mount } from 'enzyme'
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'
import renderer from 'react-test-renderer';
import CInputGroupText from '../CInputGroupText'
configure({ adapter: new Adapter() })
describe('CInputGroupText', () => {
it('renders b... |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.8-master-c62282f
*/
!function(n,e,i){"use strict";function t(n,e){return["$mdUtil","$window",function(i,t){return{restrict:"A",multiElement:!0,link:function(o,r,a){var d=o.$on("$md-resize-enable",function(){d();var c=r[0],u... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.24/esri/copyright.txt for details.
//>>built
define("esri/layers/vectorTiles/views/2d/tiling/LODInfo",["require","exports","../../../geometry/support/spatialReferenceUtils","./TileKey"],function(r,t,p,q){funct... |
const router = require("express").Router();
const usersController = require("../../controllers/usersController");
// Matches with "/api/users"
router.route("/")
.get(usersController.findAll)
.post(usersController.create);
// Matches with "/api/users/:id"
router
.route("/:id")
.get(usersController.findById)
... |
# Copyright (c) 2011 Florian Mounier
# Copyright (c) 2012 Tycho Andersen
# Copyright (c) 2014 Sean Vig
#
# 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... |
# 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... |
!function (doc, app) {
var el;
el = doc.getElementById('main');
app.main = {
open: function (animate) {
el.classList[animate ? 'add' : 'remove']('animate');
el.classList.remove('hide');
},
close: function (animate) {
el.classList[animate ? 'add' : 'remove']('animate');
... |
# -*- coding: utf-8 -*-
"""
Unit : tests.features.steps
description : Define the steps of test
developer : Alcindo Schleder
version : 1.0.0
"""
import os
from argparse import Namespace
from behave import given, when, then
@given('Aplicação é iniciada para o arquivo {fn}')
def instance_ini... |
import axios from 'axios';
import { now } from 'moment';
var authAxios = axios.create({
baseURL: 'https://localhost:44392/api/',
headers: {
Authorization: `Bearer ${localStorage.getItem('access_token')}`
}
});
var test = -1;
if (localStorage.getItem('access_token') != null) {
let isRefreshing = false;
l... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['ms']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL"... |
export default function breedReducer(state = "", action) {
if (action.type === "SET_BREED") {
return action.payload;
} else if (action.type === "SET_ANIMAL") {
return "";
} else {
return state;
}
}
|
from django.contrib import admin
from myapp.models import Foo
admin.site.register(Foo) |
# Copyright 2019 Google Inc. 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 law or a... |
import json
import os
import re
from shishito.runtime.shishito_support import ShishitoSupport
from shishito.ui.selenium_support import SeleniumTest
class ShishitoControlTest(object):
""" Base class for ControlTest objects. """
def __init__(self):
self.shishito_support = ShishitoSupport()
# ... |
"""
ORY Hydra
Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. # noqa: E501
The version of the OpenAPI document: v1.9.1
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F40... |
from __future__ import division, print_function
from openmdao.api import ExplicitComponent
class Equilibrium(ExplicitComponent):
"""
Lift = weight constraint.
Note that we add information from each lifting surface.
Parameters
----------
L : float
Total lift for the lifting surface.
... |
var searchData=
[
['smartfactory_5fmqttcommunication_113',['SmartFactory_MQTTCommunication',['../md__c_1__semesterarbeit__smart_factory__sortic_00__code_1__code_neu__smart_factory__m_q_t_t_communication__r_e_a_d_m_e.html',1,'']]]
];
|
/*! firebase-admin v7.1.0 */
"use strict";
/*!
* Copyright 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.org/licenses/LICENSE-2.0
*
* Unles... |
const { app } = require("../app");
const { ErrCode } = require("../const");
const { CodeError } = require("../util/CodeError");
class NetMgr {
static listen(method, route, func) {
app.http.listen(method, route, (req, res, params, body) => {
const run = async () => {
let code = ErrCode.EC_OK;
... |
import React from "react";
const Result = ({score, playAgain}) => (
<div className="score-board">
<div className="score">You scored {score} / 5 correct answers!</div>
<button className="playBtn" onClick={playAgain}>
Play again!
</button>
</div>
);
export default Result;
|
var searchData=
[
['test_2ecpp_189',['test.cpp',['../test_8cpp.html',1,'']]],
['test0_2ecpp_190',['test0.cpp',['../test0_8cpp.html',1,'']]],
['test16_2ecpp_191',['test16.cpp',['../test16_8cpp.html',1,'']]],
['test32_2ecpp_192',['test32.cpp',['../test32_8cpp.html',1,'']]],
['test_5fissue_5f29_2ecpp_193',['test... |
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0.003853,"9":0,"10":0,"11":0.034677,"12":0.003853,"13":0,"14":0.003853,"15":0,"16":0.007706,"17":0,"18":0.007706,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0.003853,"25":0,"26":0,"27":0.003853,"28":0,"29":0,"30":0.019265,"31":0.042383,"32":0,"33":0,"34":0.003853,"35":0.007706... |
/*
* (c) 2011-2019 Corporate Web Solutions Ltd.
* All client side / JavaScript code may not be used in any way without a valid JSCharting license.
* To license JSCharting for your own use, please visit www.JSCharting.com
* */
JSC.maps()['th']={"type":"Topology","transform":{"scale":[0.00003836891335019133,0.0000173616... |
/*! ramp-pcar 13-02-2015 19:04:10 : v. 5.0.1
*
* RAMP GIS viewer - Elk; Sample of an implementation of RAMP
**/
define(["esri/geometry/Extent"],function(a){"use strict";function b(a,b,c){"function"!=typeof a.prototype[b]&&(a.prototype[b]=c)}function c(a,b,c){"function"!=typeof a[b]&&(a[b]=c)}function d(){b(Array,... |
# Copyright 2016 Vijayaditya Peddinti.
# 2016 Vimal Manohar
# Apache 2.0.
""" This is a module with methods which will be used by scripts for training of
deep neural network acoustic model with chain objective.
"""
import logging
import math
import os
import sys
import libs.common as common_lib
imp... |
import axios from 'axios';
/*
let baseURL = `http://${window.location.hostname}:8000/api/`; */
let baseURL;
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
baseURL = `http://${window.location.hostname}:8000/api/`;
} else {
baseURL = 'https://auroracomputing.herokuapp.com/... |
var searchData=
[
['gdd_360',['gdd',['../structmodel__domain_1_1model__domain__t.html#aa4520d05be92eda88c3178127f80b8f1',1,'model_domain::model_domain_t']]],
['gdd_5fbase_361',['gdd_base',['../namespacegrowing__degree__day.html#aacfa259bbbe00271e8a8cd7b974c7b1d',1,'growing_degree_day::gdd_base()'],['../namespacegro... |
const path = require('path')
const jsDocParser = require('jsdoc-to-markdown')
module.exports = getConstants
function getConstants() {
return jsDocParser
.getJsdocDataSync({
files: path.resolve(process.cwd(), 'src/constants/index.ts'),
'no-cache': true,
})
.filter((c) => c.kind === 'constant'... |
//---------------------------------------------------------------------
// NOC.core.ModelApplication
//---------------------------------------------------------------------
// Copyright (C) 2007-2020 The NOC Project
// See LICENSE for details
//---------------------------------------------------------------------
conso... |
from dataclasses import dataclass
from typing import List
from achi.util.ints import uint8, uint32
from achi.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class WalletInfo(Streamable):
"""
This object represents the wallet data as it is stored in DB.
ID: Main wallet (S... |
import sys, os
import unittest
import win32rcparser
import win32con
import tempfile
class TestParser(unittest.TestCase):
def setUp(self):
rc_file = os.path.join(os.path.dirname(__file__), "win32rcparser", "test.rc")
self.resources = win32rcparser.Parse(rc_file)
def testStrings(self)... |
const Spot = require('../models/Spot');
module.exports = {
async show(req, res) {
const { user_id } = req.headers;
const spots = await Spot.find({ user: user_id });
return res.json(spots);
}
}; |
/*
* ! ${copyright}
*/
sap.ui.define([
"sap/ui/base/Object",
"sap/ui/mdc/p13n/PersistenceProvider"
], function (BaseObject, PersistenceProvider) {
"use strict";
var ERROR_INSTANCING = "DefaultProviderRegistry: This class is a singleton and should not be used without an AdaptationProvider. Please use 'sap.ui.mdc... |
/*
* thrust
*
* Copyright (C) 2018 AbbeyCat (abbeycatuk@gmail.com)
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/* global environment, ship, ball, landscape, context, images, canvas, audio_bing, audio_thrust, audio_explosion, parti... |
//setup password user studio
$("#setup-pw").on("click",function(e){
e.preventDefault();
var formData=new FormData();
formData.append("password1",$("#password1").val());
formData.append("password2",$("#password2").val());
formData.append("user_code",$("#user_code").val());
for (var pair of form... |
import {
addNodeViewTitleAndText,
customFieldView,
externalReferencesView
} from "../basic.js";
export const LOCATION_TYPE = "location";
export function getLocationView(titleId, contentId, typeId, locationSDO) {
document.getElementById(titleId).innerHTML += locationSDO.name;
document.getElementById(typeId).... |
Blockly.Msg.ACTUAL = "çağır";
Blockly.Msg.ADD = "Ekle";
Blockly.Msg.ADD_COMMENT = "Yorum Ekle";
Blockly.Msg.ADD_PARAMETER = "Parametre ekle";
Blockly.Msg.CANCEL = "İptal";
Blockly.Msg.CHANGE_VALUE_TITLE = "Değeri değiştir:";
Blockly.Msg.CLOSE = "Kapat";
Blockly.Msg.COLLAPSE_ALL = "Blokları Daralt";
Blockly.Msg.COLLAPSE... |
import { LightningElement, api, track, wire } from 'lwc';
import getRelatedSpaces from '@salesforce/apex/marketServices.getRelatedSpaces';
import { NavigationMixin } from 'lightning/navigation';
export default class RelatedSpaces extends NavigationMixin(LightningElement) {
@api recordId;
@track records;
_r... |
/**
* 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.
*/
'use strict';
var Icon = require('../Icon-1083255b.js');
var React = require... |
const log = console.log;
const chalk = require('chalk');
const questions = require('./questions.js');
/*****************************************
* cli
*
* This function is the driver for all
* CLI related stuff.
****************************************/
async function cli() {
let flag = false;
let firstF... |
import React from 'react'
import { Table, Button } from 'antd'
import { Link } from 'react-router-dom'
import styles from './List.less'
const List = ({ ...tableProps },key) => {
const columns = [
{
title: 'Image',
dataIndex: 'image',
className: styles.image,
width: 64,
render: text... |
/*
Edtended handling of date, time and datetime-local type fields.
Works with both string and integer data types. (default only support string type)
Has optional support for using flatpickr datepicker.
All flatpickr options is supported with a few minor differences.
- "enableTime" and "noCalendar" are set automatica... |
import { createUtil } from "../util";
const underline = createUtil({ textDecoration: "underline" });
const lineThrough = createUtil({ textDecoration: "line-through" });
const noUnderline = createUtil({ textDecoration: "none" });
export { underline, lineThrough, noUnderline };
//# sourceMappingURL=text-decoration.js.map |
# AUTOGENERATED! DO NOT EDIT! File to edit: 04_event.ipynb (unless otherwise specified).
__all__ = ['GhEvent', 'load_sample_events', 'save_sample_events', 'full_type', 'evt_emojis', 'description', 'emoji',
'text', 'described_evts']
# Cell
from fastcore.utils import *
from fastcore.foundation import *
from ... |
Prism.languages.insertBefore("objectivec", "string", {
// Add types with a framework prefix.
builtin: /\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\w+/
});
// Add `_Nonnull`, `_Nullable`, `_Null_unspecified`.
Prism.languages.objectivec.keyword = /\b(?:asm|typeof|inline|auto|break|case|char|c... |
import React from 'react'; // eslint-disable-line no-unused-vars
import { observer } from 'mobx-react';
import uuid from 'uuid/v4';
import modelStore from '../../stores/modelStore';
class CompareTechAdd extends React.Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
th... |
var fs = require('fs'),
util = require('util'),
xml2js = require('xml2js'),
iconv = require('iconv-lite');
var parser = new xml2js.Parser();
var reg = undefined;
var regionIDList = ['pha', 'stk', 'jck', 'plk', 'kvk', 'ulk', 'lbk', 'khk', 'pak', 'vys', 'jmk', 'olk', 'zlk', 'msk']
var partiesFile = new Pr... |
# <<BEGIN-copyright>>
# Copyright 2021, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
# Values from CODATA 2014.
c = '299792458. * m / s' # speed of light (exact)
mu0 = '4.e-7 * pi * N / A**2' ... |
//Получить общую сумму баланса (поле balance) всех пользователей.
import users from "./users.js";
const calculateTotalBalance = (users) => users.reduce((acc, users) =>
acc + users.balance, 0)
console.log(calculateTotalBalance(users)); // 20916
|
import { NotImplementedError } from '../extensions/index.js';
const MODERN_ACTIVITY = 15;
const HALF_LIFE_PERIOD = 5730;
/**
* Determine the age of archeological find by using
* given MODERN_ACTIVITY and HALF_LIFE_PERIOD values
*
* @param {String} sampleActivity string representation of current activity
* @ret... |
# -*- coding: utf-8 -*-
# Copyright (c) 2019, ericklopez and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class stado_cap(Document):
pass
|
"""
Reads and edits Windows Firewall using netsh. May switch over to
registry based changes to avoid excess console windows.
"""
import subprocess
RULE_IN = "Block Internet In"
RULE_OUT = "Block Internet Out"
def rule_enabled(rule_name):
process = subprocess.run(["netsh", "advfirewall", "firewall", "show", "ru... |
import React, { Component } from 'react'
//ui
import { DetailsList } from '@fluentui/react';
import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown'
import { mergeStyleSets, Modal, getTheme, FontWeights, Stack } from 'office-ui-fa... |
/**
* @license
* Copyright 2016 Google Inc. 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 requir... |
import logo from './logo.svg';
import './App.css';
import FunctionQuery from "./FunctionQuery.js"
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<FunctionQuery />
</header>
</div>
);
}
export d... |
function add_master(form,modal,title,url)
{
save_method = 'add';
$('#'+form)[0].reset(); // reset form on modals
$('#'+modal).modal('show'); // show bootstrap modal
$('.modal-title').text(title); // Set Title to Bootstrap modal title
$('#'+form).attr('action',url);
}
/... |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1 Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports.default = ... |
from __future__ import print_function, division
import os
import sys
import subprocess
def class_process(dir_path, class_name):
class_path = os.path.join(dir_path, class_name)
if not os.path.isdir(class_path):
return
for file_name in os.listdir(class_path):
video_dir_path = os.path.join(class_path, file... |
(function() {
'use strict';
angular
.module('app.contact')
.run(appRun);
appRun.$inject = ['routerHelper'];
/* @ngInject */
function appRun(routerHelper) {
routerHelper.configureStates(getStates());
}
function getStates() {
return [
{
... |
import * as React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
import Comp from "./";
const spyScrollTo = jest.fn();
describe("Comp without props", () => {
it("should render with default 'Title not set'", async () => {
render(
<React.Suspense fallback={<div>loading</di... |
export function performLoginOperation(userCredential) {
return (dispatch) => {
//ajax call
var url = '/api/console.php/login/username/password'
//tempory send UserId, token for testing
var parameters = "";
var callback = function(res){
var response = JSON.parse(res);
... |
console.log( 42 );
|
/*!
* jquery.sumoselect - v3.0.3
* http://hemantnegi.github.io/jquery.sumoselect
* 2016-12-12
*
* Copyright 2015 Hemant Negi
* Email : hemant.frnz@gmail.com
* Compressor http://refresh-sf.com/
*/
(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquer... |
# coding: utf-8
# AUTOGENERATED BY gen_script.sh from kpony4.py
# Copyright (C) Nyimbi Odero, Sun May 21 00:15:29 EAT 2017
from sqlalchemy import func
from flask_appbuilder import Model
from flask_appbuilder.models.mixins import AuditMixin, FileColumn, ImageColumn, UserExtensionMixin
from flask_appbuilder.models.dec... |
#
# Copyright(c) 2020-2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
import os
import time
import pytest
import re
from api.cas import casadm
from api.cas.cache_config import CacheMode, CacheModeTrait, CleaningPolicy
from core.test_run import TestRun
from test_tools import fs_utils
from test_too... |
const fs = require('fs')
// const book = {
// title: '7 Mares',
// author: 'Tim Maia'
// }
// // fs.writeFileSync('1.json.json', JSON.stringify(book))
// const dataBuffer = fs.readFileSync('1.json.json')
// console.log(dataBuffer);
// console.log(dataBuffer.toString());
const data = fs.readFileSync('1-json.json').t... |
import * as React from 'react';
function SvgChat(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 20 21"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10a9.96 9.96 0 01-4.587-1.112l-3.826 1.067a1.25 1.25 0 01-1.5... |
const config = require('../config.json');
const server = require('./lib/server');
config.PORT = process.env.PORT || config.PORT;
server.run(config);
|
import React, { useContext } from "react";
import { AuthContext } from "./../context/AuthContext";
const AuthStateItem = ({ title, value }) => (
<div className="text-sm">
<p className="font-bold mb-2">{title}</p>
<pre className="whitespace-pre-wrap bg-gray-100 p-2 rounded">
<code classN... |
import {datetime, Datetime} from "./core/class";
import "./plugins/buddhist"
import "./plugins/calendar"
import "./plugins/century"
import "./plugins/compare"
import "./plugins/dayofyear"
import "./plugins/daysin"
import "./plugins/decade"
import "./plugins/from"
import "./plugins/hour12"
import "./plugins/isleapyear"
... |
#!/usr/bin/env python3
# Copyright (c) 2020-2021 Pieter Wuille
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Reference implementation for Bech32/Bech32m and segwit addresses."""
import unittest
from enum import Enum
CHARSET =... |
const TreeTraversing = require('./../../common/tree-traversing');
const traversing = new TreeTraversing();
const BaseChecker = require('./../base-checker');
class ExternalCallChecker extends BaseChecker {
constructor(reporter) {
super(reporter);
}
exitExpression(ctx) {
this.validateSend(... |
# JavascriptベースのレーティングバトルのログにBattleStatusを追加する
import argparse
import json
import re
import numpy as np
from pokeai.util import json_load, pickle_load, ROOT_DIR, DATASET_DIR, json_dump
from collections import defaultdict
from pokeai.sim.battle_stream_processor import BattleStreamProcessor
from pokeai.ai.action_policy ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
var _react ... |
import torch
import torch.nn as nn
from pointnet import PointNetVanilla
class pointcloud_encoder(nn.Module):
def __init__(self,mlp_dims,fc_dims,mlp_dolastReLU=False):
assert(mlp_dims[-1]==fc_dims[0])
super(pointcloud_encoder,self).__init__()
self.PointNet=PointNetVanilla(mlp_dims,fc_dims,mlp... |
import React, { useEffect, useState } from "react";
import Forecast from "./Forecast";
import HourlyWeather from "./HourlyWeather";
import moment from "moment";
function WeatherDetails({ weather }) {
const [defaultBtn, setDefaultBtn] = useState("hourly-btn");
console.log(weather);
//higher order function that fi... |
(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[86],{1598:function(s,t,i){s.exports=i.p+"static/media/illustration-hero-notebook-pencils-light-bulb.4e33c33a.svg"}}]);
//# sourceMappingURL=86.aaacd842.chunk.js.map |
/*global define*/
define([
'./Cartesian3',
'./Cartographic',
'./defaultValue',
'./defined',
'./DeveloperError',
'./Ellipsoid',
'./GeographicProjection',
'./Intersect',
'./Interval',
'./Matrix3',
'./Matrix4',
'./Rectangle'
... |
#!C:\Users\aschuele\PycharmProjects\GenerateJavaDoc\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... |
//render this via backend
window.IEWarningLocalizations ={
msg1: "您正在使用的浏览器是:",
msg2: "您使用的浏览器太过古老,浏览体验将会变得很差,建议您对浏览器进行升级或者更换",
msg2s: "您使用的浏览器还凑和,浏览体验将会有所折扣,建议您对浏览器进行升级或者更换",
msg3: "选择下列主流浏览器,点击浏览器图标进入下载",
vsg: "最新版本:",
br1: "49",
nme1: "谷歌(Chrome)",
br2: "54",
nme2: "火狐(Firefox)"... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
/**
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* T... |
'use strict';"use strict";
var collection_1 = require('angular2/src/facade/collection');
var lang_1 = require('angular2/src/facade/lang');
var MOUSE_EVENT_PROPERTIES = [
"altKey",
"button",
"clientX",
"clientY",
"metaKey",
"movementX",
"movementY",
"offsetX",
"offsetY",
"region",... |
import re
from w3af.plugins.attack.payloads.base_payload import Payload
from w3af.core.ui.console.tables import table
class apache_version(Payload):
"""
This payload shows Apache Version
"""
def api_read(self):
result = {}
result['version'] = []
def parse_apache_binary(binary)... |
var book = {
"name": "Jesaja",
"numChapters": 66,
"chapters": {
"1": {
"1": "<span>1</span> Jesaja, Aamotsi poja nägemus, mida ta nägi Juuda ja Jeruusalemma kohta Juuda kuningate Ussija, Jootami, Aahase ja Hiskija päevil:",
"2": "<span>2</span> Kuule, taevas, ja maa, pane tähele, sest Issand kõneleb: Mina ka... |
#!/usr/bin/env python
import sys
import os
import uploader
import json
from exif_aux import verify_mapillary_tag
from . import ipc
def upload(import_path, verbose=False, skip_subfolders=False, number_threads=None, max_attempts=None, video_import_path=None, dry_run=False,api_version=1.0):
'''
Upload local imag... |
import React, { useEffect } from 'react'
import { graphql } from 'gatsby'
import * as Elements from '../components/elements'
import { Layout } from '../layout'
import { Head } from '../components/head'
import { PostTitle } from '../components/post-title'
import { PostDate } from '../components/post-date'
import { Post... |
module.exports = {
extends: require.resolve('eslint-config-alexandernanberg'),
};
|
import React, { Component } from "react";
import { connect } from "react-redux";
import { Input, Label, Form, FormFeedback } from "reactstrap";
import PropTypes from "prop-types";
import classnames from "classnames";
import { createProfile } from "../../actions/profileActions";
class CreateProfile extends Component {
... |
/**
*
* @author xiaoer
* @email 228112142@qq.com
* @date 2018-08-24 23:03:45
*/
/**数据渲染对象*/
var Render = {
/**
* 渲染状态列
* @param rowdata 行数据
* @param renderData 渲染后的列
* @param index
* @param value 当前对象值
*/
customState: function (rowdata,renderData, index, value) {
... |
__all__ = ['AlignmentPropertyMatrix', 'Sparse3DMatrix'] |