text stringlengths 3 1.05M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Toolbar = void 0;
function _classnames() {
const data = _interopRequireDefault(require("classnames"));
_classnames = function () {
return data;
};
return data;
}
var React = _interopRequireWildcard(require("react"));... |
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import ActionThumbUp from 'material-ui/svg-icons/action/thumb-up';
import {blue500} from 'material-ui/styles/colors';
export default function RecommendButton({increment}) {
return (
<div>
<RaisedButton
label="Recommend thi... |
"""
Django settings for admin project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib imp... |
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a p... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var phone = require('./phone-31a1067a.js');
var tslib = require('tslib');
var util = require('@firebase/util');
var app = require('@firebase/app');
require('@firebase/component');
require('@firebase/logger');
/**
* @license
* Copyright ... |
import React from 'react';
import PropTypes from 'prop-types';
import injectT from '../../../i18n/injectT';
function ProductsValidationErrors({ errorFields, t }) {
if (errorFields.length < 1) {
return null;
}
const errorItems = errorFields.map(errorField => (
<p key={errorField.replace(/\s+/g, '').toLo... |
export { default } from './EmprestimoToolbar';
|
function isFetchingDetails() {
let id = document.getElementById("va-info-container").getAttribute("data-fetching");
return (id == null || id == 0) ? false : true;
}
function setFetchingDetails(voiceActorId) {
document.getElementById("va-info-container").setAttribute("data-fetching", voiceActorId);
document.get... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This is the pipe object of the game.
@Author: yanyongyu
"""
__author__ = "yanyongyu"
__all__ = ["get_pipe"]
import random
import pygame
from utils import getHitmask
UPIPE_IMAGE = [
pygame.image.load("assets/images/game/pipe_down.png"),
pygame.image.load("as... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
import './node_modules/@blueprintjs/core/lib/css/blueprint.css';
import './node_modules/@blueprintjs/icons/lib/css/blueprint-icons.css';
import './node_... |
import React from "react"
import PropTypes from "prop-types"
import Typography from "@material-ui/core/Typography"
import { Paper } from "@material-ui/core"
import { connect } from "react-redux"
// also export this for easier testing down the rode
const PageDetails = props => {
return (
<Paper
... |
hljs.registerLanguage("mojolicious",function(e){return{sL:"xml",c:[{cN:"meta",b:"^__(END|DATA)__$"},{b:"^\\s*%{1,2}={0,2}",e:"$",sL:"perl"},{b:"<%{1,2}={0,2}",e:"={0,1}%>",sL:"perl",eB:!0,eE:!0}]}}); |
$(document).ready(function () {
var translationForm = $('#frmTranslation');
var translationFormParsley = translationForm.parsley({
successClass: "has-success",
errorClass: "has-error",
classHandler: function (el) {
return el.$element.closest(".form-group");
},
... |
"use strict";
var Shim = require("./shim");
var LfuSet = require("./lfu-set");
var GenericCollection = require("./generic-collection");
var GenericMap = require("./generic-map");
var PropertyChanges = require("./listen/property-changes");
var MapChanges = require("./listen/map-changes");
module.exports = LfuMap;
fun... |
# Generated by Django 3.1.6 on 2021-02-24 12:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('apps', '0041_auto_20210223_0918'),
('projects', '0009_s3_app'),
]
operations = [
migrations.AlterFi... |
from __future__ import print_function
from uritools import urisplit, uriunsplit, urijoin
from ndk.features import butter_low, butter_high, butter_bandpass
from scipy.signal import convolve, butter, lfilter, filtfilt
import numpy as np
import neo.io
import os
from .dsfilter import *
def spike2_to_floats(filename):
... |
/**
* Copyright 2016 The AMP HTML 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 require... |
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
poppins: ["Poppins", "Arial"],
},
},
},
variants: {
extend: {},
},
plugins: [],
};
|
define([
"skylark-jquery",
"./Vvveb"
],function($,Vvveb){
var jQuery = $;
return Vvveb.Builder = {
component : {},
dragMoveMutation : false,
isPreview : false,
runJsOnSetHtml : false,
designerMode : false,
init: function(url, callback) {
var self = this;
self.loadControlGroups();
sel... |
"use strict";
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !! This file is generated by generate_fbt_number_consistency.php !!
* !! Do not modify it manually !!
* !!!!... |
'use strict';
function googleSignIn(googleUser) {
var id_token = googleUser.getAuthResponse().id_token;
AWS.config.update({
region:'us-east-1',
credentials: new AWS.CognitoIdentityCredentials({
IdentityPoolId: learnjs.poolId,
Logins: {
'accounts.google.com': id_token
}
})
});
functi... |
#!/usr/bin/env python
'''
Simple "Square Detector" program.
Loads several images sequentially and tries to find squares in each image.
'''
# Python 2/3 compatibility
from __future__ import print_function
import sys
PY3 = sys.version_info[0] == 3
if PY3:
xrange = range
import numpy as np
import... |
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS206: Consider reworking classes to avoid initClass
* DS2... |
var Game = function (game) {
// When a State is added to Phaser it automatically has the following properties set on it, even if they already exist:
var add; // used to add sprites, text, groups, etc (Phaser.GameObjectFactory)
var camera; // a reference to the game camera (Phaser.Camera)
va... |
let containers = document.querySelectorAll(".layout-row-center-middle");
function updateLayout() {
for (const container of containers) {
const containerChildren = container.children;
if (containerChildren.length % 2 === 0) {
console.warn(`A layout center middle component has even childr... |
import axios from 'axios'
// action types
const GOT_USER_BOARDS = 'GOT_USER_BOARDS'
const CREATED_BOARD = 'CREATED_BOARD'
// action creators
const gotUserBoards = boards => {
return {
type: GOT_USER_BOARDS,
boards
}
}
const createdBoard = board => {
return {
type: CREATED_BOARD,
board
}
}
... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# Copyright (c) 2012 Samsung SDS Co., LTD
# All Rights Reserved.
#
# Licensed under the Apache Licen... |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'@angular': 'node_modules/@angular',
'angular... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon( /*#__PURE__*/React.createElement("path", {
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zM12 ... |
/**
* Copyright 2013 Facebook, 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 ... |
var selectedLoc;
var room = 1;
var fieldcount = 0;
function timePickerInitialize() {
$('.timepicker').timepicker({
showInputs: false,
timeFormat: 'HH:mm'
});
}
$( document ).ready(function () {
$('#route_id').change(function () {
$.ajax({
type: 'GET',
url... |
import { NativeModulesProxy } from 'expo-core';
export default NativeModulesProxy.ExponentDeviceMotion;
//# sourceMappingURL=ExponentDeviceMotion.js.map |
import PropTypes from 'prop-types';
import React from "react";
import cx from "classnames";
class FormFieldDisclaimer extends React.Component {
static propTypes = {
className: PropTypes.string,
caption: PropTypes.string.isRequired,
hidden: PropTypes.bool,
};
render() {
const classes = cx(
"disclai... |
import os
import re
from datetime import datetime
use_sample = 0
input_file = os.path.join(os.path.dirname(
__file__), "sample.txt" if use_sample else "input.txt")
f = open(input_file, "r")
lines = f.read().splitlines()
width = len(lines[0])
height = len(lines)
grid = [[0]*height for x in range(width)]
x = 0
y ... |
Ext.require('Ext.window.Window');
Ext.require('Ext.form.Panel');
Ext.define('FPT.view.External',
{ extend: 'Ext.window.Window'
, alias : 'widget.external'
, width : 960
, height: 600
, layout: 'fit'
, closable: true
, modal: true
, items:
[{ xtype : "component"
, id : "external-win... |
Object.defineProperty(exports,"__esModule",{value:!0}),exports.HaxContextBehaviors=void 0;var e=require("lit"),t=require("@lrnwebcomponents/simple-popover/lib/SimpleTourFinder");function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _... |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt, ['grunt-*', 'grunt-bump']);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
phantom: {
dist: 'dist'
},
clean: {
dist: ['<%= phantom.dist %>']
},
concat: {
options: {
separator: ';'
},
dist: {
src: [... |
from autotabular.pipeline.components.base import AutotabularClassificationAlgorithm
from autotabular.pipeline.constants import DENSE, PREDICTIONS, UNSIGNED_DATA
from autotabular.pipeline.implementations.util import softmax
from autotabular.util.common import check_none
from ConfigSpace.conditions import EqualsCondition... |
export const clear = '#FFFFFF'
export const dark = '#000000'
export const greenButton = '#73CB25';
export const greenButtonBorder = '#A5E35A';
export const greenButtonActive = '#A5D739';
export const greenLeftColumn = '#149631';
export const greenRightColumn = '#108229';
export const breakColumns = 'max-width:740px'
... |
var class_xen_foro___data_writer___template_modification =
[
[ "_getModificationModel", "d5/deb/class_xen_foro___data_writer___template_modification.html#ad00a23ad62d8dc68e8cc601561550a84", null ],
[ "_getTemplateModel", "d5/deb/class_xen_foro___data_writer___template_modification.html#a4212263008d7c99b8de7f1c1... |
import _ from 'lodash'
import React from 'react'
import styled, { css } from 'styled-components'
import { Form, Input, Select, Button } from 'antd'
import { cssFontP } from 'common/styles/style-base'
import { DatePicker } from 'common'
const cssFontInput = css`
// font-size: 20px;
`
const cssGhostButton = css`
$... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
import "./layout.css"
cons... |
import array
import random
import numpy as np
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from deap import algorithms
from deap import base
from deap import creator
from deap import tools
from .util import generalize, seq_str, dist, build_pairwise_alignments, fix_odd_sequence_count
def mwm_ga(sequen... |
import React, { Component } from "react";
export default class DataBinding extends Component {
constructor(props) {
super(props);
console.log("Constructor is running...");
//BIND-III
//this.buttonClick = this.buttonClick.bind(this)
console.log(this.props);
this.state = {};
}
buttonClick... |
import { render } from "../../react-dom.js";
function renderChildren(children, container) {
if (Array.isArray(children)) {
return children.forEach((child) => render(child, container));
}
return render(children, container);
}
function setEvents(element, event, callback) {
return element.addEventListener(ev... |
import pickle
from unittest import mock
from nose2.tools.params import params
import numpy as np
import tensorflow as tf
from garage.tf.envs import TfEnv
from garage.tf.q_functions.discrete_mlp_q_function import DiscreteMLPQFunction
from tests.fixtures import TfGraphTestCase
from tests.fixtures.envs.dummy import Dumm... |
let mix = require('laravel-mix');
mix.ts('src/game.ts', 'dist/')
.copy('src/index.html', 'dist/')
.copy('src/assets', 'dist/assets')
.setPublicPath('dist/')
.sourceMaps()
.version();
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
import re
import os
import sys
from setuptools import setup
package = 'djangoutils'
requirements = [
'Django>=1.5',
'django-discover-runner',
'six',
]
test_requir... |
(function() {
var Promise, background, fs, path,
slice = [].slice;
fs = require("fs");
path = require("path");
Promise = require("bluebird");
background = require("../app/background");
fs = Promise.promisifyAll(fs);
module.exports = {
getPathToExtension: function() {
var args;
ar... |
const { buildUrl } = require('@justeat/f-wdio-utils/src/storybook-extensions');
const { getAccessibilityTestResults } = require('../../../../../../test/utils/axe-helper');
const MegaModal = require('../../test-utils/component-objects/f-mega-modal.component');
const megaModal = new MegaModal();
describe('Accessibilit... |
const lista1 = [
100,
200,
80,
900,
];
function compareNumbers(a, b) {
return a - b;
};
const listaOrdenada = lista1.sort(compareNumbers);
function esPar(numero) {
if (numero % 2 === 0) {
return true;
} else {
return false;
}
};
let mediana;
const mitadLista1d= parseInt(lista1.length ... |
export default function loginReducer(state = {current_user:false}, action) {
switch (action.type) {
// gets the user data from the login API call, if the username and password did not match, the API returns false
// if they do match, the user that is returned from the API is set as the current user and login... |
import EventEmitter from "./event-emitter.js";
export default new EventEmitter();
|
import DefaultController from "./controllers/DefaultController.js";
import Controller from "./controllers/Controller.js";
document.addEventListener("controllerFactoryIsReady", (e) => {
let ControllerFactory = e.detail;
ControllerFactory.registerController("Controller", Controller);
ControllerFactory.regist... |
import os
import sys
import unittest
from xpack_metricbeat import XPackTest
sys.path.append(os.path.join(os.path.dirname(__file__), '../../tests/system'))
from xpack_metricbeat import XPackTest, metricbeat
COREDNS_FIELDS = metricbeat.COMMON_FIELDS + ["coredns"]
class Test(XPackTest):
COMPOSE_SERVICES = ['core... |
/**
* @fileoverview test wysiwyg table remove command
* @author NHN FE Development Lab <dl_javascript@nhn.com>
*/
import $ from 'jquery';
import RemoveTable from '../../../src/js/wysiwygCommands/tableRemove';
import WysiwygEditor from '../../../src/js/wysiwygEditor';
import EventManager from '../../../src/js/eventM... |
import { lazy } from 'react';
export const CreateCPStep = [
{
title: 'Basic Details',
icon: 'user',
component: lazy(() => import('web/src/forms/CreateCP/basicDetialsCreateCP.form')),
},
{
title: 'Capex',
icon: 'user',
component: lazy(() => import('web/src/forms/CreateCP/solutionProposalCr... |
"""
Find best hyper params of model by grid search.
Then, save them to hyper params configuration class.
"""
from configs import net_conf, params
from configs.net_conf import available_models, model_name_abbr_full
from configs.params import available_corpus
from models.model_factory import ModelFactory
from utils impor... |
import React from 'react'
import Banner from '../components/banner.js'
export class Detail extends React.Component{
render(){
let list3;
if(this.props.listingPointThree != null){
list3 = <li>{this.props.listingPointThree}</li>
}
else {
list3 = <div></div>
... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... |
/* eslint-env mocha */
export default (should, M, fixtures, {Ajv}) => () => {
const {base, number, any} = M.ajvMetadata(Ajv())
it('should return the base metadata for standard models', () => {
const customReviver = baseReviver => (k, v, path = []) => {
if (k !== '') {
return v
}
if (... |
import { action, computed, observable } from 'mobx'
import User from '../lib/user-model'
class AuthStore {
@observable isLoading = true
@observable isShowingLogin = false
@observable user = null
@observable message = null
@computed get isAuthenticated () {
return !!this.user && !!this.user.authToken
}... |
/**
* Given an array with heights, sort them except if the value is -1.
*
* @param {Array} arr
* @return {Array}
*
* @example
* arr = [-1, 150, 190, 170, -1, -1, 160, 180]
*
* The result should be [-1, 150, 160, 170, -1, -1, 180, 190]
*/
function sortByHeight(arr) {
const z = arr;
const x = [];
for (let... |
(function () {
'use strict';
/**
* @param $mdDialog
* @param {app.utils} utils
* @param {app.utils.decorators} decorators
* @param $templateRequest
* @param $rootScope
* @return {ModalManager}
*/
const factory = function ($mdDialog, utils, decorators, $templateRequest, $r... |
'use strict';
let config = require('./config');
export default class Index {
constructor(params) {
this.instances = {};
this.conf_load_promises = [];
this.configs = [];
this._enumEnc = {};
this._enumDec = {};
var me = this;
this._onReady = function () { r... |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 i... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PoolEventType = void 0;
/** Pool event type. Specifies the type of each `PoolEvent`. */
var PoolEventType;
(function (PoolEventType) {
PoolEventType["initialized"] = "initialized";
PoolEventType["taskCanceled"] = "taskCanceled"... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var CallMissedOutgoing = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React... |
from datetime import timedelta
import pytest
from django.urls import reverse
from rest_framework.status import (
HTTP_200_OK, HTTP_201_CREATED, HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND)
from ....factories.permit import (
create_permit, create_permit_area, create_permit_series, generate_areas,
generate_ext... |
# Copyright (c) 2016,2017,2018,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Test the `tools` module."""
from collections import namedtuple
import numpy as np
import numpy.ma as ma
import pandas as pd
from pyproj import Geod
import pytest
... |
import axios from 'axios';
export default {
getMyAlbums: () => {
return (dispatch, getState) => {
dispatch('GET_MY_ALBUMS_REQUEST');
axios
.get(`${process.env.REACT_APP_SERVER}albums/get`)
.then((data) => dispatch({ type: 'GET_MY_ALBUMS_SUCCESS', data }))
.catch((error) => di... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ***************************************************************
// - [#] indicates a test step (e.g. # Go to a page)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element ID when selec... |
deepmacDetailCallback("cc2237300000/28",[{"a":"459 Westlake Dr Brisbane QLD AU 4074","o":"XConnect Professional Services","d":"2017-07-16","t":"add","s":"ieee","c":"AU"}]);
|
module.exports = {
content: ['./src/components/**/*.{js,ts,jsx,tsx}', './src/pages/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
plugins: [],
}
|
import collections.abc
import tempfile
import sys
import shutil
import warnings
import operator
import io
import itertools
import functools
import ctypes
import os
import gc
import weakref
import pytest
from contextlib import contextmanager
from numpy.compat import pickle
import pathlib
import builtins
from decimal i... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
import e,{Component as t}from"react";import{classNames as n,ObjectUtils as o}from"primereact/core";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable... |
from collections import OrderedDict
import six
import xmltodict
import openml._api_calls
from ..utils import extract_xml_tags
class OpenMLFlow(object):
"""OpenML Flow. Stores machine learning models.
Flows should not be generated manually, but by the function
:meth:`openml.flows.create_flow_from_model`... |
import About from './templates/About.vue'
import Contact from './templates/Contact.vue'
import Knowledge from './templates/Knowledge.vue'
import Portfolio from './templates/Portfolio.vue'
import Work_Experience from './templates/Work_Experience.vue'
export const routes = [
{
name: 'home',
path: '/'... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**************************************************************************************
Aria Call Object
Contains the constructor for Aria call objects. Also includes a set of top-level
convenience functions for fetching Twiml and generating a linked list of
actions to process.
TODO: In real... |
import Prism from './prism-core'
Prism.languages.editorconfig = {
// https://editorconfig-specification.readthedocs.io/en/latest/
comment: /[;#].*/,
section: {
pattern: /(^[ \t]*)\[.+]/m,
lookbehind: true,
alias: 'keyword',
inside: {
regex: /\\\\[\[\]{},!?.*]/, // Escape special characters ... |
import React from 'react';
import {
View,
Text,
Button,
TextInput,
StyleSheet
} from 'react-native';
import TextField from './components/TextField';
import {
login,
register
} from './api/auth';
class HomeScreen extends React.Component {
static navigationOptions = {
title: 'Hom... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["ReduxSaga"] = factory();
else
root["Red... |
function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function asyncGeneratorStep(e,r,t,n,i,s,o){try{var a=e[s](o),l=a.value}catch(f){return void t(f)}a.done?r(l):Promise.resolve(l).then(n,i)}function _asyncToGenerator(e){return function(){... |
from __future__ import absolute_import
"""
base object managers
"""
import os
import sys
import logging
from robotice.common import importutils
from celery import states
from celery import Celery
from celery.result import AsyncResult
from celery.backends.base import DisabledBackend
import anyconfig
from anyconf... |
let disemvowel = str => str.replace(/[AEIOUaeiou]/g, '');
// Basically this says you are going through the length of letters AEIOU and aeiou under the /global context and
// inserting an empty string into it. |
class FMC_PACI_Directory {
static ShowPage(fmc) {
fmc.activeSystem = "PACI";
fmc.clearDisplay();
const updateView = () => {
fmc.setTemplate([
["CABIN INTERPHONE"],
["", "", "DIRECTORY"],
["<DOORS", "PA AREAS>"],
... |
import os
from subprocess import check_output
from .lca_writer import LCAWriter
from .data import load_data, DATA_FOLDER
from .scripts import LCAWriterArgParser
def test_load_data():
lca = load_data('test_lca_form')
def test_save_template():
p = os.path.join(DATA_FOLDER, 'lca_form_writer.xlsx')
LCAWrite... |
/* global BigInt */
import from from 'core-js-pure/features/array/from';
import range from 'core-js-pure/features/bigint/range';
if (typeof BigInt == 'function') QUnit.test('BigInt.range', assert => {
assert.isFunction(range);
assert.name(range, 'range');
assert.arity(range, 3);
let iterator = range(BigInt(1)... |
import React from "react";
import { Row, Col, Container } from "reactstrap";
import Head from "next/head";
import Link from "next/link";
import queryString from "query-string";
import { getNoticeInfo } from "../../src/utils";
import API from "../../src/services/api";
import throw404 from "../../src/services/throw404";
... |
import styled from 'styled-components';
export const ArticleContainer = styled.article`
position: relative;
max-width: 1000px;
margin: 0 auto;
padding: 6rem 2rem;
border-radius: 20px;
display: grid;
grid-gap: 1rem;
justify-content: start;
align-content: center;
align-items: center;
img {
width: 200px;
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/c... |
require('../stylesheets/less/index.less');
|
const express = require('express');
const PokemonModel = require('./models/Pokemon');
const router = express.Router();
router.get('/pokemons', (_, res) => {
PokemonModel.find().then((result) => {
res.send(result);
});
});
router.get('/pokemons/:name', (req, res) => {
const { name } = req.params;
PokemonM... |
const http = require('http')
const fs = require('fs')
const hostname = '127.0.0.1'
const port = 3000
const current = {
'EN': 'current',
'PT': 'atual',
}
const server = http.createServer((req, res) => {
if (req.url == '/favicon.ico')
return exit(res, 404, 'plain', null)
if (req.url == '/main.css')
return exi... |
#!/usr/bin/env python
#-*- coding: utf8 -*-
# -----------------------------------------------------------------------------------------
# This is a Python 3 port of compressed_rtf at https://github.com/delimitry/compressed_rtf,
# which is MIT licensed.
# ----------------------------------------------------------------... |
import { gql } from '@apollo/client'
const commentFields = `
id
commentType
content
files {
id
created
label
filename
fileType
mimeType
size
url
}
`
const reviewFields = `
id
created
updated
decisionComment {
${commentFields}
}
reviewComment {
${commentFie... |
"use strict";
let jefferson = require("express-jefferson");
let mountie = require("express-mountie");
let path = require("path");
let drugs = require("../../middleware/drugs");
let cache = require("../../middleware/cache");
let router = jefferson.router({
proxies: [require("express-jefferson/proxies/promise-handle... |
import { Text, Code, List, ListItem, Link } from "@chakra-ui/react";
import { useEffect, useState } from "react";
import Web3Modal from "web3modal";
import Web3 from 'web3';
import { BigNumber, constants, ethers } from "ethers";
import Fortmatic from "fortmatic";
import { Hero } from '../components/Hero'
import { Cont... |