text stringlengths 3 1.05M |
|---|
/* eslint-disable no-unused-vars */
import translationService from "../translationService";
import gridService from "../gridService";
export default async langId => {
const alias0 = await translationService.getMessage(
langId,
"3B274849_89C8_2A34_4D00_67E924C3F3D7"
); // scroll up
const alias1 = await tr... |
'use strict';
const AccountData = require('../account-data');
const log = require('debug')('log');
const logError = require('debug')('error');
class Export {
constructor(request) {
this._request = request;
}
*fetchAll() {
return AccountData.create({
hooks: (yield this._getData('hooks')).map(thi... |
#This class is taken from https://github.com/dennybritz/cnn-text-classification-tf
import tensorflow as tf
import numpy as np
class TextCNN(object):
"""
A CNN for text classification.
Uses an embedding layer, followed by a convolutional, max-pooling and softmax layer.
"""
def __init__(
self,... |
import numpy as np
import samcnet.mh as mh
from samcnet.mixturepoisson import *
def rho_matrix(p, diag, offdiag):
assert np.abs(diag) >= np.abs(offdiag)
return np.diag(np.ones(p) * diag) + (np.ones((p,p)) - np.eye(p)) * offdiag
def calc_avgs(db):
D = db.mu.read()[0].size
mumean = db.mu.read().mean()
... |
const fs = require('fs')
const path = require('path')
const tempy = require('tempy')
const { enableAndSave, disableAndSave } = require('./index')
function createPkg(str) {
const dir = tempy.directory()
const file = path.join(dir, 'package.json')
fs.writeFileSync(file, str, 'utf-8')
return { dir, file }
}
cons... |
// Dependencies
// =============================================================
var express = require("express");
var path = require("path");
const apiRoutes = require('./routes/apiRoutes');
const htmlRoutes = require('./routes/htmlRoutes');
// Sets up the Express App
// =============================================... |
module.exports = function (grunt) {
// CSS files to be built (relative to less directory, no extension)
var cssObjs = [
'all',
'modules/pagination',
'modules/infographics',
'critical'
];
var jsCssObjs = [
'js-css/band_imagery',
'js-css/display-font',
'js-css/events',
'js-css/events-band',
'js-css... |
/**
* Copyright 2015 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 appli... |
class Dog():
def __init__(self,name,age):
self.name=name
self.age=age
def sit(self):
print(self.name.title()+" is now sitting.")
def roll_over(self):
print(self.name.title()+" is rolled.")
my_dog = Dog('willie', 6)
print("My dog's name is " + my_dog.name.title() + "."... |
import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import { Helmet } from 'react-helmet'
import styled from 'styled-components'
import Sidebar from './sidebar'
const Container = styled.div`
display: flex;
height: 100vh;
`
const Content = styled.div`
display: flex;
flex-dire... |
import { useEffect, useRef } from "react";
import isEqual from "lodash/fp/isEqual";
export default function useDeepCompareEffect(callback, dependencies) {
const currentDependenciesRef = useRef();
if (!isEqual(currentDependenciesRef.current, dependencies)) {
currentDependenciesRef.current = dependencies;
}
... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
"use strict";(self["webpackChunkkaruta_companion"]=self["webpackChunkkaruta_companion"]||[]).push([[28],{4028:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});var n=t(3673);const r={class:"q-pa-md row items-start q-gutter-md"};function s(e,a,t,s,c,o){const u=(0,n.up)("frame"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,{cl... |
from zinc_coating.base import ZincCoatingBase
base = ZincCoatingBase(coating_reward_time_offset=10, random_coating_targets=True)
base.reset()
for i in range(0, 100):
obs, reward, real_coating = base.step(0)
print(f"speed: {obs.coil_speed}, coating: {obs.zinc_coating}, real: {real_coating}")
# prin... |
###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... |
'use strict';
const chai = require('chai');
const expect = chai.expect;
const chaiSubset = require('chai-subset');
const chaiAsPromised = require('chai-as-promised');
const {config, getConnection, makeRemotePath} = require('./hooks/global-hooks');
const {existSetup, existCleanup} = require('./hooks/exist-hooks');
cha... |
/**
* Perform a key press
* @param {String} key The key to press
*/
module.exports = key => {
browser.keys(key);
};
|
const helpers = require('./helpers')
const NamedModulesPlugin = require('webpack/lib/NamedModulesPlugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const config = req... |
'use strict';
const ServerType = require('./common').ServerType;
const EventEmitter = require('events');
const connect = require('../connection/connect');
const Connection = require('../../cmap/connection').Connection;
const common = require('./common');
const makeStateMachine = require('../utils').makeStateMachine;
c... |
// REGISTER SERVICE WORKER
if ("serviceWorker" in navigator) {
window.addEventListener("load", function() {
navigator.serviceWorker
.register("/service-worker.js")
.then(function() {
console.log("Pendaftaran ServiceWorker berhasil");
})
.catch(function() {
c... |
import variables from '@/styles/element-variables.scss'
import defaultSettings from '@/settings'
const { showSettings, tagsView, fixedHeader, sidebarLogo, supportPinyinSearch } = defaultSettings
const state = {
theme: variables.theme,
showSettings,
tagsView,
fixedHeader,
sidebarLogo,
supportPinyinSearch
}... |
exports.up = function (knex) {
return knex.schema.table('game_instances', function (table) {
table.integer('fk_game_scores_id').unsigned().notNullable();
table.foreign('fk_game_scores_id').references('id').inTable('game_scores');
});
};
exports.down = function (knex) {
return knex.schema.table('game_inst... |
$(document).on("click", "#soft_delete_order, #soft_delete_qorder", function(){
var delHref = $(this).attr('href');
$('#deleteConfirm').modal('show');
$('#yes-delete-order').attr('href', delHref);
return false;
});
$(document).on("click touchstart", '#all-cleaned-button', function(event) {
$('#Clea... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _defineProperties(target, props) {
for(var i = 0; i < props.length; i++){
var descriptor = props[i];
descriptor.enumerable = descriptor.e... |
const mongoose = require('mongoose');
var bookSchema = new mongoose.Schema({
title: { type: String, required: true },
gr_id: String,
author: {
gr_id: String,
name: String
},
// authors: [String],
isbn: String,
series: [String],
genre: [String],
rating: Number,
pageCount: Number,
publishDa... |
export const FILTER_SEARCH = 'FILTER_SEARCH'
export const FILTER_NAME = 'FILTER_NAME'
export const EDIT_TEXT = 'EDIT_TEXT'
|
import React from 'react';
import { NavLink } from 'react-router-dom';
import { themeSettings, text } from '../../lib/settings';
import * as helper from '../../lib/helper';
const CartItem = ({ item, deleteCartItem, settings }) => {
return (
<div className="columns is-mobile">
<div className="column is-2">
<d... |
/*!
* ui-grid - v4.11.0 - 2021-08-12
* Copyright (c) 2021 ; License: MIT
*/
(function () {
angular.module('ui.grid').config(['$provide', function($provide) {
$provide.decorator('i18nService', ['$delegate', function($delegate) {
$delegate.add('it', {
aggregate: {
label: 'elementi'
... |
// Import React
import React from "react";
import { Heading, Image, Slide } from "spectacle";
const images = {
steveTwitter: require("../../../assets/ss-twitter-mobile-screely.png")
};
export default (
<Slide bgColor="primary">
<Image src={images.steveTwitter} />
<Heading margin="10px 0 0" textColor="seco... |
#!/usr/bin/env python
"""
Script meant to fetch the number of blocks and files for a given dataset,
using both DBS and Rucio services. It prints any inconsistency among
those two.
"""
from __future__ import print_function, division
import logging
import sys
from collections import Counter
from future.utils import vie... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from .serializers import UserSerializer, GroupSerializer
class UserViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows users to be viewed or edited.
... |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# This is a part of CMSeeK, check the LICENSE file for more information
# Copyright (c) 2018 Tuhinshubhra
# XMB version detection
# Rev 1
import cmseekdb.basic as cmseek
import re
def start(source):
regex = re.findall(r'<!-- Powered by XMB (\d.*?) ', source)
if rege... |
/*! iScroll v5.2.0-snapshot ~ (c) 2008-2019 Matteo Spinelli ~ http://cubiq.org/license */
(function (window, document, Math) {
var rAF = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
fun... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { uiModules } from 'ui/modules';
import { InitAfterBindingsWorkaround ... |
define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/connect","dojo/_base/array","dojo/_base/event",
"dojo/_base/fx","dojo/_base/window","dojo/fx","dojo/dom","dojo/dom-class",
"dojo/dom-geometry","dojo/dom-style","dijit/_base/manager","dijit/_Widget","dijit/_TemplatedMixin",
"dojo/_base/declare"], function (
k... |
(function(t){function e(e){for(var r,n,i=e[0],c=e[1],l=e[2],u=0,p=[];u<i.length;u++)n=i[u],a[n]&&p.push(a[n][0]),a[n]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);d&&d(e);while(p.length)p.shift()();return o.push.apply(o,l||[]),s()}function s(){for(var t,e=0;e<o.length;e++){for(var s=o[e],r=!0,i=1... |
module.exports = /* eslint-disable */ [{"name":"EyeIcon","description":"Eye icon","code":"import React from \"react\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport { faEye } from \"@fortawesome/free-solid-svg-icons\";\n\n/** Eye icon */\nconst EyeIcon = () => {\n return <FontAwesomeIcon... |
import React from "react";
import { Route, Redirect, Switch } from "react-router-dom";
import Movies from "./components/pages/movies";
import TVShows from "./components/pages/tvshows";
import NotFound from "./components/pages/notFound";
import Movie from "./components/pages/movie";
import TvShow from "./components/page... |
// Package Imports
import {Meteor} from 'meteor/meteor';
import {Roles} from 'meteor/alanning:roles';
import {Accounts} from 'meteor/accounts-base';
import {_} from 'meteor/underscore';
/*
ADMIN: 'ADMIN', // Administrator - complete access
PUB: 'PUB', // Publisher - CRUD data, but No Admin Tasks, e.g. canno... |
exports.up = function(knex) {
return knex.schema.createTable('schools', schools => {
schools.increments();
schools
.string('schoolName')
.notNullable()
.unique();
schools
.string('schoolAddress');
schools
.integer('fundsRequested');
schools
.integer... |
TZInfo.d["Asia/Istanbul"]={offsets:[[6952,"LMT"],[7016,"IMT"],[7200,"EET"],[10800,"EEST"],[14400,"TRST"],[10800,"TRT"]],transitions:"-64885539.44888889 1 2151695.857777782 2 -3383261984.408889 3 -1654064064.0 2 1900640736.0 3 -1515737664.0 2 1579837536.0 3 -1490940864.0 2 1552621536.0 3 -1456726464.0 2 1591328736.0 3 -... |
$(function() {
validateRule();
$('.imgcode').click(function() {
var url = ctx + "captcha/captchaImage?type=" + captchaType + "&s=" + Math.random();
$(".imgcode").attr("src", url);
});
});
$.validator.setDefaults({
submitHandler: function() {
register();
}
});
f... |
define([
"../var/document",
"../var/support"
], function (document, support) {
"use strict";
(function () {
var fragment = document.createDocumentFragment(),
div = fragment.appendChild(document.createElement("div")),
input = document.createElement("input");
// ... |
// pro components
import Ellipsis from '@/components/Ellipsis'
import MultiTab from '@/components/MultiTab'
import ExceptionPage from '@/components/Exception'
export { Ellipsis, MultiTab, ExceptionPage }
|
import React from 'react';
class Callback extends React.Component{
componentDidMount(){
var hash_string = window.location.hash.substring(1),
parts = hash_string.split(','),
part,
result = {},
parent_document = window.opener ? window.opener : parent;
while (part = pa... |
from pytest import mark
from model.contact import Contact
import re
def test_contacts_on_home_page(app, db):
contact_from_home_page = app.contact.get_contact_list()
contact_from_db = db.get_contact_list()
contact_from_db.sort(key=Contact.id_or_max)
contact_from_home_page.sort(key=Contact.id_or_max)
... |
//var apurl=location.origin+":99";
var apurl = location.protocol+"//"+location.hostname+":99";
var wrsUrl = location.protocol+"//"+location.hostname+":88/bpsAPI";
var wrsAPI = location.protocol+"//"+location.hostname+":88/";
var originUrl = location.origin+'/';
var fileDonwloadUrl = originUrl + '/filedownload.php';
var... |
const countObjectProperties = obj => {
if (typeof obj === 'object') {
return Object.keys(obj).length
}
return 0
}
export {
countObjectProperties
}
|
/*!
* ${copyright}
*/
//Provides control sap.ui.unified.Calendar.
sap.ui.define([
'sap/ui/core/Control',
'sap/ui/Device',
'sap/ui/core/LocaleData',
'sap/ui/core/delegate/ItemNavigation',
'sap/ui/unified/calendar/CalendarUtils',
'sap/ui/unified/calendar/CalendarDate',
'sap/ui/unified/DateRange',
'sap/ui/unifi... |
//! moment.js locale configuration
//! locale : Sinhalese [si]
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define ===... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Select specific columns, filter Swedish records, remove non-WGS84
records and remove duplicate entries.
"""
import pandas as pd
import numpy as np
DTYPES = snakemake.params.dtypes
DISTINCT_COLUMN_SET = snakemake.params.distinct_column_set
def remove_whitespace(s):... |
"use strict";
var resolveException = require("../lib/resolve-exception")
, is = require("./is");
module.exports = function (value/*, options*/) {
if (is(value)) return value;
return resolveException(value, "%v is not a thenable object", arguments[1]);
};
|
def read_nom(data):
"""
Reads the nominal data from the data file and instantiate the Features and
Categories classes.
Parameters
----------
data : str
The file location of the spreadsheet containing nominal categories in the format:
Feature | Category1 | Category2... |
const multer = require('multer');
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, './public/images');
},
filename: (req, file, cb) => {
console.log(file);
var filetype = '';
if(file.mimetype === 'image/gif') {
filetype = 'gif';
}
i... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({tabSize: 4}, "markdown");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
var modeHighlightFormatting ... |
import Card from '../Card/Card';
import React from 'react';
export default function CardGroup(props) {
return (
<Card group {...props} />
);
}
|
from django.db import models
from django.utils.translation import gettext_lazy as _
from modelcluster.models import ParentalKey
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel
from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
from wagtail.core.fields import RichTextField
fro... |
################## ARQUIVO DE EXEMPLO PARA CRIAÇÃO DOS TESTES ##################
##################### Códigos de status das respostas HTTP #####################
# As respostas são agrupadas em cinco classes:
## - (100-199) : Respostas de informação
## - (200-299) : Respostas de sucesso
## - (300-399) : Redirecionamen... |
export * from '@styled-icons/material/MusicOff';
|
var express = require('express');
var router = express.Router();
let as = require('../src/aerospike');
router.get('/', function (req, res, next) {
if (req.cookies.logged_in != "true") {
res.redirect('/login')
} else {
res.render("admin.html", {settings: settings});
}
});
router... |
const handleDomo = (e) => {
e.preventDefault();
$("#domoMessage").animate({width:'hide'}, 350);
if($('#domoName').val() == '' || $('#domoAge').val() == ''){
handleError('RAWR! All fields are required');
return false;
}
sendAjax('POST', $('#domoForm').attr('action'), $('#domoForm')... |
'use strict';
angular.module('sabzPrototypeApp.messages', [])
.factory('Messages', function () {
var Messages = {};
Messages.initMessages = function(props) {
var msgs = {};
if(angular.isString(props)) {
msgs[props] = {};
return msgs;
}
if(angular.isArray(props)) {
... |
const soap = require('soap');
const xml2json = require('xml2json');
class StudentVueClient {
constructor(username, password, client) {
this.username = username;
this.password = password;
this.client = client;
}
getMessages() {
return this._xmlJsonSerialize(this._makeServic... |
define(['common/js/spec_helpers/template_helpers',
'edx-ui-toolkit/js/utils/spec-helpers/ajax-helpers',
'js/dashboard/donation'],
function(TemplateHelpers, AjaxHelpers) {
'use strict';
describe('edx.dashboard.donation.DonationView', function() {
var PAYMENT_URL = 'https://fake.p... |
module.exports = {
important: true,
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: [],
theme: {
screens: {
sm: '600px',
md: '960px',
lg: '1280px',
xl: '1920px',
},
colors: {},
extend: {},
aspectRatio: {
'none': 0... |
import { AppBar, Button, IconButton, Menu, MenuItem, Toolbar } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import MenuIcon from '@material-ui/icons/Menu';
import React from 'react';
import { withConnectDialogDispatcher } from './ConnectDialog';
import {
Link,
} from "react-... |
from django import forms
from .models import *
class NewProjectForm(forms.ModelForm):
class Meta:
model = Projects
exclude = [ 'pub_date' ]
widgets = {
'project_description': forms.Textarea(attrs={'rows':4, 'cols':10,}),
}
class ProfileUpdateForm(forms.ModelForm)... |
/* eslint-disable no-unused-vars */
//
const express = require('express');
const app = express();
const port = 3001;
// node redis import
const redis = require('redis');
// client creation from redis
const client = redis.createClient();
// Utility for Promises working with redis
const { promisify } = require('util'... |
import sys
sys.path.insert(1, "../../../")
import h2o
def get_modelGBM(ip,port):
# Connect to h2o
h2o.init(ip,port)
prostate = h2o.import_frame(path=h2o.locate("smalldata/logreg/prostate.csv"))
prostate.describe()
prostate[1] = prostate[1].asfactor()
prostate_gbm = h2o.gbm(y=prostate[1], x=prostate[2:9], ... |
/**
* implements the AJAX for forms
*
* all forms with
*
*
*/
(function($) {
var methods = {
clearErrors: function($form)
{
$form.find('.errors').each(function() {
$(this).html('');
$(this).parent().removeClass('input-error');
});
},
displayErrors: function($form, errors, prefix)... |
dojo.provide("dojox.sketch.Annotation");
dojo.require("dojox.sketch.Anchor");
dojo.require("dojox.sketch._Plugin");
(function(){
var ta=dojox.sketch;
dojo.declare("dojox.sketch.AnnotationTool", ta._Plugin, {
onMouseDown: function(e){
this._omd=true;
},
onMouseMove: function(e,rect){
if(!this._omd){
r... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
#!/usr/bin/python
# -*- coding: utf-8 -*
"""
The MIT License (MIT)
Copyright (c) 2015 Christophe Aubert
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 limit... |
(function(){
'use strict';
angular.module('nvd3', [])
.directive('nvd3', ['utils', function(utils){
return {
restrict: 'AE',
scope: {
data: '=', //chart data, [required]
options: '=', //chart options, according... |
// Helper functions used by the UI for interacting with local storage.
//
// Settings are saved as a JSON object under the name "settings". This
// includes various UI configurations like whether the advanced section of the
// form is displayed.
//
// Site configurations are saved as a JSON object under the name "site... |
import _ from 'lodash';
export default {
'label': '',
'xAxisLabel': 'machine.ram',
'ordered': {
'interval': 100
},
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 3221225400,
'y': 5
},
{
'x': 42... |
#
# PySNMP MIB module CHIPCOMMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHIPCOMMIB
# Produced by pysmi-0.3.4 at Wed May 1 11:48:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... |
Clazz.declarePackage ("JS");
Clazz.load (["JU.JmolMolecule", "JU.BS", "$.Lst", "JS.VTemp"], "JS.SmilesSearch", ["java.util.Arrays", "$.Hashtable", "JU.AU", "$.SB", "$.V3", "JS.SmilesAromatic", "$.SmilesAtom", "$.SmilesBond", "$.SmilesMeasure", "$.SmilesParser", "JU.BSUtil", "$.Logger"], function () {
c$ = Clazz.decorat... |
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("_"),require("Vue"));else if("function"==typeof define&&define.amd)define(["_","Vue"],t);else{var r="object"==typeof exports?t(require("_"),require("Vue")):t(e._,e.Vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n... |
"""Input/output methods for model predictions."""
import os
import numpy
import netCDF4
from gewittergefahr.gg_utils import time_conversion
from gewittergefahr.gg_utils import longitude_conversion as lng_conversion
from gewittergefahr.gg_utils import file_system_utils
from gewittergefahr.gg_utils import error_checking... |
/*!
* OpenUI5
* (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.MessageStrip.
sap.ui.define([
"./library",
"sap/ui/core/Control",
"./MessageStripUtilities",
"./Text",
"./Link",
"./FormattedText",
"sap/... |
import _extends from "@babel/runtime/helpers/extends";
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createHTMLImage, customPropTypes, getElementType, getUnhandledProps, htmlImageProps, partitionHTM... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["format-italic-outlined"... |
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import os
from ..extensions import BaseExtensionApp, _get_config_dir, GREEN_ENABLED, RED_DISABLED
from .._version import __version__
from notebook.config_manager import BaseJSONConfigManager
from jupyter_co... |
(function(window) {
window["env"] = window["env"] || {};
// Environment variables
window["env"]["server"] = null;
window["env"]["dbServer"] = null;
})(this);
|
// @flow
import * as React from 'react';
import { render } from 'enzyme';
import ScreenError from '../ScreenError';
const ch = (sc: string) => {}; //eslint-disable-line
describe('ScreenError', () => {
const component = render(<ScreenError changeScreen={ch} />);
it('should match snapshot', () => {
expect(com... |
import React, { useState, useEffect } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { FiPower, FiTrash2 } from 'react-icons/fi';
import Swal from 'sweetalert2';
import { ReactComponent as Logo } from '../../assets/logo.svg';
import api from '../../services/api';
import './styles.css';
funct... |
import argparse
import base64
import json
import requests
import time
import ast
import utils.logger as logger
import utils.logs as logs
import urlparse
import hashlib
import webbrowser
from core.zapscan import *
from core.parsers import *
from utils.logger import *
from core.login import APILogin
from utils.logger im... |
/*
* 酱茄小程序开源版 v1.0.5
* Author: 酱茄
* Help document: https://www.jiangqie.com/docs/kaiyuan/id1
* github: https://github.com/longwenjunjie/jiangqie_kafei
* gitee: https://gitee.com/longwenjunj/jiangqie_kafei
* License:MIT
* Copyright ️ 2020 www.jiangqie.com All rights reserved.
*/
const Auth = require('../../util... |
"""
Main function for running ice particle simulations
ICE-ICE collection
"""
import ipas.collection_no_db.crystal as crys
import ipas.collection_no_db.calculations as clus
import copy as cp
import numpy as np
def collect_clusters_iceice(phio, r, ncrystals,
rand_orient, plot=False):
... |
import Immutable from 'immutable'
import React from 'react'
import Collapsible from 'react-collapsible'
import Affix from 'react-overlays/lib/AutoAffix'
import PropTypes from 'prop-types'
import {NavLinks, NavLink} from 'react-wood-duck'
const A01SideBar = ({
isNavLinkActive,
handleNavLinkClick,
hideRelationship... |
import React from 'react';
import { createDrawerNavigator } from '@react-navigation/drawer';
import SimpleText from './components/SimpleText';
import PairOdd from './components/PairOdd';
export default createDrawerNavigator({
SimpleText: {
screen: () => {<SimpleText text="Hello World!"/>},
navigationOptions... |
# Copyright 2017 the GPflow 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 applicable law or agreed to in writi... |
import React from 'react';
import { render, screen } from '@testing-library/react';
import Card from '../components/Card';
const defaultProps = {
cardName: "Nome da carta",
cardDescription: "Descrição da carta",
cardAttr1: "12",
cardAttr2: "34",
cardAttr3: "56",
cardImage: "url-to-image",
cardRare: "raro... |
from flask import Blueprint
from flask_restplus import Api
api_blueprint = Blueprint('api', __name__, url_prefix='/api/v1')
api = Api(api_blueprint)
from . import views # noqa E402
|
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import re
import luigi
from servicecatalog_puppet import config
from servicecatalog_puppet import utils
from servicecatalog_puppet.workflow.general import delete_cloud_formation_stack_task
from servicecat... |
/**
* @typedef {import('mdast').Root|import('mdast').Content} Node
* @typedef {import('mdast-util-to-markdown').Options} Options
*/
import {toMarkdown} from 'mdast-util-to-markdown'
/** @type {import('unified').Plugin<[Options]|void[], Node, string>} */
export default function remarkStringify(options) {
/** @typ... |
import GraphQL from 'graphql';
export default {
type: GraphQL.GraphQLString,
resolve() {
return 'world';
}
};
|
/* global d3, _ */
var url = hqImport('hqwebapp/js/initial_page_data').reverse;
function PrevalenceOfSevereReportController($scope, $routeParams, $location, $filter, maternalChildService,
locationsService, dateHelperService, navigationService, userLocationId, storageService, genders, ages,
haveAccessToAllLoca... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |