text stringlengths 3 1.05M |
|---|
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obt... |
import matplotlib.pyplot as plt
import numpy as np
def plot_results_specific(targets_pd, rnn_outputs, time_axis, comment, closed_loop_enabled, close_loop_idx):
if time_axis == []:
time_axis = np.arange(0, targets_pd.shape[0])
time_axis_string = 'Sample number'
else:
time_axis = time_... |
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
GN-related configuration functions, e.g., to produce a Config object from a GN
args.gn file).
"""
import ast
import os.path
import re
from .config imp... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PouchDB = void 0;
exports.addPouchPlugin = addPouchPlugin;
exports.isInstanceOf = isInstanceOf;
exports.isLevelDown = isLevelDown;
exports.pouchR... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tempfile
import os
import copy
import shutil
from corral import run, db
import sh
import numpy as np
from ..models import Pawprint
from .. import bin
PAWPRINTS_DEFAULT_PARAMS = {
"dtype": {
"names": [
'ra_h', 'ra_m', 'ra_s', 'dec_d', 'd... |
#!/bin/python3
import unittest
import os
import sys
from touch import touch
from parameterized import parameterized_class
sys.path.insert(0, os.path.join("..", ".."))
import lexicons_builder.wordnet_explorer.explorer as exp
sys.path.insert(0, os.path.join("..", "..", "lexicons_builder", "graphs"))
from graphs import... |
n = int(input('Um valor inteiro:'))
a = n-1
s = n+1
print('Analisando o valor de {}, o seu antecessor é {} e o seu sucessor é {}'.format(n, a, s))
|
if __name__ == '__main__':
N = int(input())
arr = []
for _ in range(N):
cmd = input().split()
fn = cmd[0]
args = cmd[1:]
if fn != "print":
fn += "("+",".join(args)+")"
eval("arr."+fn)
else:
print(arr)
|
let nowDate = new Date();
console.log(nowDate);
let newYears = "";
// check for next new year
switch ( nowDate.getFullYear() ) {
case 2021:
newYears = '2022-01-01';
break;
case 2022:
newYears = '2023-01-01';
break;
case 2023:
newYears = '2024-01-01';
break;
... |
import React from 'react'
export const renderHelmetTags = (tags) => {
return tags.map(({ id, type, attributes, value }) => {
attributes.key = id;
return React.createElement(type, attributes, value);
});
} |
$(document).ready(function() {
oTable = $('#cambios').DataTable({
responsive: true,
columnDefs: [
{ orderable: false, targets: -1 }
],
"language": {
"info": "Mostrando _START_ a _END_ de _TOTAL_ cambios filtrados",
"paginate": {
"fi... |
from flask_migrate import Migrate
from flask_restful import Api
from flask_session import Session
from App.apis import Hellos
from App.models import db
def init_ext(app):
# migrate
migrate = Migrate()
migrate.init_app(app=app, db=db)
#session
app.config['SECRET_KEY']='100'
app.config['SESSION_... |
Expand Alphabets
Expand Alphabets: Given a string S with alphabets and their count, repeat the alphabets based on their count and print the value as the output.
Input Format:
The first line contains S.
Output Format:
The first line contains the alphabets repeated based on their count.
Boundary Condition:
1 <= Length o... |
import React from "react";
import Svg, { Defs, LinearGradient, Stop, Path } from "react-native-svg";
const SvgEql = props => (
<Svg width={40} height={40} viewBox="0 0 500 500" {...props}>
<Defs>
<LinearGradient id="eql_svg__a" x1="0%" y1="0%" x2="100%" y2="0%">
<Stop offset="0%" stopColor="#c9a35e... |
# -*- coding: utf-8 -*-
import handlers
from django.conf.urls import patterns, url
from anaf.core.api.auth import auth_engine
from anaf.core.api.doc import documentation_view
from anaf.core.api.resource import CsrfExemptResource
ad = {'authentication': auth_engine}
# admin resources
groupResource = CsrfExemptResourc... |
# -*- coding: utf-8 -*-
# Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 = {
MODE: 'production',
PORT: process.env.PORT || 3000,
// PORT: process.env.PORT,
DATA_DIR: process.env.DATA_DIR,
STATIC_DIR: process.env.STATIC_DIR,
};
|
var spa = require('./spa');
module.exports = {
url: spa.url,
elements: {
view: {
selector: '#signin-view'
},
emailInput: {
selector: 'input[name=email]',
},
passwordInput: {
selector: 'input[name=password]'
},
submitButton: {
selector: 'button[type=submit]'
},
},
commands: [{
signin: ... |
'use strict';
var obsidian = require('obsidian');
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVI... |
/*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observe... |
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> nome = 'Gianne'
>>> idade = 25
>>> peso = 58
>>> print('nome,idade, peso')
nome,idade, peso
>>> print(nome, idade, peso)
Gianne 25 58
>>> |
import { saveAs } from "file-saver";
import { Document, ImageRun, Packer, Paragraph, TextRun } from "docx";
export const generateDoc=(testQuestions, fileName)=>{
const docSections=[];
testQuestions.forEach((q,qi)=>{
const child=[];
child.push(new Paragraph({
children: [new Tex... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _jsonp = require('jsonp');
var _jsonp2 = _interopRequireDefault(_jsonp);
var _objectToGetParams = require('./utils/objectToGetParams');
var _objectToGetParams2 = _interopRequireDefault(_objectToGetParams);
var _shareCountFactory = ... |
import math
import warnings
import cupy as np
try:
import PIL
PIL_rotate_kwargs_supported = {
# [moviepy rotate argument name,
# PIL.rotate argument supported,
# minimum PIL version required]
"fillcolor": ["bg_color", False, (5, 2, 0)],
"center": ["center", False, (... |
deepmacDetailCallback("0050c2bfc000/36",[{"a":"140 58th street Brooklyn NY US 11220","o":"Altronix Corporation","d":"2010-01-31","t":"add","s":"ieee","c":"US"}]);
|
# -*- coding: utf-8 -*-
import datetime
from collections import OrderedDict
from gluon import current, A, DIV, IS_EMPTY_OR, IS_IN_SET, IS_NOT_EMPTY, SPAN, TAG, URL
from gluon.storage import Storage
from s3 import FS, IS_ONE_OF
from s3dal import original_tablename
# =================================================... |
import sys
import os
cwd = os.getcwd()
package_path = os.path.abspath(cwd.split('phenotypy')[0])
print(f'[__init__]Append "{package_path}" to system.path')
sys.path.insert(0, package_path) |
const myStorage = window.localStorage;
|
from typing import Any, Tuple, Dict
import os, copy, os.path as osp
from colorama import Fore
from time import time
from tqdm import tqdm
import torch
import torch.nn.functional as F
import torch.optim.lr_scheduler as lr_scheduler
from torch import Tensor, nn, optim
from torch.nn.modules.loss import _Loss
from torch.u... |
import Vue from 'vue'
import Hammer from 'hammerjs'
const Zoomable = {
name: 'Zoomable',
props: {
width: {
type: Number,
required: true
},
height: {
type: Number,
required: true
},
maxScale: {
type: Number,
default: 2
},
lockX: null,
lockY: null
... |
import numpy as np
from owcsimpy.geoobjects.models.simpleofficeenv_py import SimpleOfficeEnv_py as SimpleOfficeEnv
class TypicalSimpleOfficeEnv_py(SimpleOfficeEnv):
""" A typical realization of a simple office.
The chair and the table are located in the corner of the room.
Parameters
------... |
import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from './config';
import initialState from './initialstate';
import routes from '../client/routes';
import {state} from '../client... |
module.exports = {
pages: {
index: {
entry:'src/main.js',
title: 'Home Brocker'
}
},
devServer: {
port: 8081
}
} |
from typing import Type
import pandas as pd
from .exceptions import BadConfigError, ColumnValidationError
from .field_checkers import (
BaseFieldChecker, MatchRegexFieldChecker, TitleCaseFieldChecker, UniqueFieldChecker, NoNAFieldChecker, OptionsFieldChecker,
IntegerFieldChecker, FloatFieldChecker, RangeField... |
//
// ViewAdapterTypeCell5.h
// DWBaseAdapter
//
// Created by 丁巍 on 2019/3/28.
// Copyright © 2019 丁巍. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "DWBaseCellProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@interface ViewAdapterTypeCell5 : UITableViewCell<DWBaseCellProtocol>
@end
NS_ASSUME_NONNULL_END
|
/**
\page subp_signals Signals
\section sec_sigintro Signals
Entities can output different types of signals. To guarante real-time
perforamces, signals are implemented using C++ and mecanism which have a low
time foot-print. All signals are templated by a Time tick type parameter (which
is used in the caching of signa... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function SiMicrostrategy (props) {
return GenIcon({"tag":"svg","attr":{"role":"img","viewBox":"0 0 24 24"},"child":[{"tag":"title","attr":{},"child":[]},{"tag":"path","attr":{"d":"M9.103 2.596h5.811v18.808h-5.81zm-9.072 0h5.81v18.808H.032zm18.127... |
import sys, re, glob, cctk, argparse, copy
import numpy as np
import pandas as pd
import multiprocessing as mp
from multiprocessing import freeze_support
from tabulate import tabulate
from tqdm import tqdm
# usage: python parse_conformations.py -c eneryg_cutoff prefix_of_new_files path/to/output/*.out
def read(file)... |
# from django import forms
|
import torch.utils.checkpoint as cp
from mmcv.cnn import ConvModule
from mmcv.runner import BaseModule
from .se_layer import SELayer
class InvertedResidual(BaseModule):
"""Inverted Residual Block.
Args:
in_channels (int): The input channels of this Module.
out_channels (int): The output chan... |
###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... |
(function(GoNorth) {
"use strict";
(function(Aika) {
(function(Shared) {
/// Width for nodes which have finish nodes as outports
Shared.finishNodeOutportNodeWidth = 250;
/// Minimum Height for nodes which have finish nodes as outports
... |
"""
Code source: https://github.com/pytorch/vision
"""
from __future__ import absolute_import
from __future__ import division
__all__ = [
'squeezenet1_0',
'squeezenet1_1',
'squeezenet1_0_fc512'
]
import torch
import torch.nn as nn
from torch.utils import model_zoo
import torch.utils.model_zoo as model_zoo... |
webpackJsonp([99],{
/***/ 1795:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddonModAssignIndexPageModule", function() { return Ad... |
'use strict';
var proxyquire = require('proxyquire').noPreserveCache();
var retailersCtrlStub = {
index: 'retailersCtrl.index',
show: 'retailersCtrl.show',
create: 'retailersCtrl.create',
update: 'retailersCtrl.update',
destroy: 'retailersCtrl.destroy'
};
var routerStub = {
get: sinon.spy(),
put: sinon... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import math
DESTRUIDO = 'Destruido'
ATIVO = 'Ativo'
GRAVIDADE = 10 # m/s^2
class Ator:
"""
Classe que representa um ator. Ele representa um ponto cartesiano na tela.
"""
_caracter_ativo = 'A'
_caracter_destruido = ' '
def __i... |
// @flow
/*
* Generates the following:
* - data/array_types.js, which consists of:
* - StructArrayLayout_* subclasses, one for each underlying memory layout we need
* - Named exports mapping each conceptual array type (e.g., CircleLayoutArray) to its corresponding StructArrayLayout class
* - Particular,... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
const assert = require('assert');
const isFacebookProfileUrl = require('../index').isFacebookProfileUrl;
describe('isFacebookProfileUrl', function () {
it('Should return true if facebook profile url includes https', function () {
assert.strictEqual(isFacebookProfileUrl('https://www.facebook.com/johnsmith'), true... |
from __future__ import annotations
from dataclasses import dataclass
import typing as T
import builtins as py
import operator as op
import collections
import functools
from functools import partial
_NoneType = type(None)
class PyTreeTypeRegistry:
def __init__(self):
self.registrations_ = {}
@datacla... |
//Format date into the pinnacle format
function getMonthFromString(mon) {
return new Date(Date.parse(mon + " 1, 2012")).getMonth() + 1
}
function formatDate(dateString) {
if (dateString.includes('-')) {
var splitDate = dateString.split('-');
} else if (dateString.includes('.')) {
var splitD... |
import React from 'react'
import { useStaticQuery, graphql } from 'gatsby'
import Img from 'gatsby-image'
import siteConfig from '../../../data/site-config'
const Image = () => {
const data = useStaticQuery(graphql`
query {
images: allFile {
edges {
node {
relativePath
... |
from sqlalchemy.orm import joinedload
from clld.interfaces import IParameter, IValue, IIndex
from clld.db.meta import DBSession
from clld.db.models.common import ValueSet
from clld.web.adapters.base import Index
from clld.web.adapters.geojson import GeoJsonParameter
from clld.web.maps import SelectedLanguagesMap
cla... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
import loading from './loading.js';
import erro from './error.js';
import permalinkProducts from './produto-pagina.js';
export function initProdutos() {
async function fetchProdutos(url) {
try {
loading(true);
const produtosResponse = await fetch(url);
if (!produtosResponse.ok) throw new Error(... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
(function() {
angular.module("Sunburst", [])
.directive("sunburst", sunburst)
.directive("onReadFile", onReadFile)
.controller("MainCtrl", MainCtrl);
// controller function MainCtrl
function MainCtrl($http) {
var ctrl = this;
init();
// function init
... |
import json
def lambda_handler(event, context):
return {
"statusCode": 200,
"body": {"message": str(event).upper()},
}
|
const $e0_attrs$ = ["myRef"];
// ...
ContentQueryComponent.ɵcmp = $r3$.ɵɵdefineComponent({
// ...
contentQueries: function ContentQueryComponent_ContentQueries(rf, ctx, dirIndex) {
if (rf & 1) {
$r3$.ɵɵcontentQuery(dirIndex, $e0_attrs$, __QueryFlags.emitDistinctChangesOnly__);
$r3$.ɵɵcontentQuery(di... |
price=input('enter a dollar amount')
tax=input('enter tax amount as a percent')
if tax.isdecimal():
res=float(price)+(float(tax)*float(price)/100)
else:
res=float(price)+(float(tax.rstrip('%'))*float(price)/100)
print('Total is $%.2f' % res)
|
import re
import setuptools
with open("pystarlark/__init__.py", "r", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="pystarlark",
version=version,
author="Kevin Chung",
... |
from __future__ import absolute_import, division, print_function
import six
from collections import defaultdict
from datetime import datetime, timedelta
from django.db.models import Q
from django.utils import timezone
from six.moves import reduce
from sentry.constants import STATUS_CHOICES
from sentry.models import ... |
import os.path
import setuptools
root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setuptools.setup(
name='rc4',
version='3.7.2',
url='https://github.com/pydump/rc4',
license='MIT',
author='mohanson'... |
import queryString from 'query-string';
import { dateRanges, defaultFilters } from './constants';
export const filterCenters = (centers = [], filters = defaultFilters) => {
const {
minAgeLimit = [],
feeType = [],
vaccine = [],
date = '',
onlyAvailable = false
} = filters;
const filteredCente... |
const projectList = [
{
name: 'React',
imageSrc: 'https://camo.githubusercontent.com/22045498095171997ccf6a9554672519b9f67898/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f72656163742e737667',
projectLink: 'https://github.com/facebook/react/contribute',
description: 'A de... |
"""Unit tests for the skew symmetric matrices."""
import random
import geomstats.backend as gs
from geomstats.geometry.skew_symmetric_matrices import SkewSymmetricMatrices
from tests.conftest import Parametrizer
from tests.data_generation import _MatrixLieAlgebraTestData
from tests.geometry_test_cases import MatrixLie... |
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2015 - 2018
*
* TITLE: EXCEPTH.H
*
* VERSION: 1.52
*
* DATE: 08 Jan 2018
*
* Common header file for the exception handling routines.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT... |
#!/usr/bin/env python3
import pycrfsuite
import sys
# Inherit crfsuite.Trainer to implement message() function, which receives
# progress messages from a training process.
class Trainer(pycrfsuite.Trainer):
def message(self, s):
# Simply output the progress messages to STDOUT.
sys.stdout.write(s)
... |
#include <conf.h>
#include <news.h>
#include <flags.h>
#include <security.h>
#include <daemons.h>
#include <objects.h>
#include <ansi.h>
#include <pwgen.h>
nosave private int __CrackCount;
nosave private string __Name;
nosave private object __Player;
nosave private string subname, xyz, __ob_name;
nosave private int fl... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('../../../')
from rusentrel.rusentrel_ds.mi.lstm import run_testing_mi_rnn
from rusentrel.rusentrel_ds_cv.common import CV_COUNT, \
ds_cv_common_callback_modification_func, \
CV_DS_NAME_PREFIX
if __name__ == "__main__":
run_testing_mi... |
import contractsApi from '@/api/contracts.api';
import catalog from '@/store/modules/base/catalog.store';
import Vue from "vue";
const contractsCatalog = catalog(contractsApi, 'contracts');
const state = {
suppliers : [],
administrativeUnits : []
};
const getters = {
};
const actions = {
/**
* Retr... |
import logging
logger = logging.getLogger(__name__)
class OVOException(Exception):
"""Generic error class, catch-all for most client issues.
"""
def __init__(self, msg, code=None, error_response={}):
self.code = code or 0
self.error_response = error_response
super(OVOException, sel... |
var annotated =
[
[ "SmartOptions", "classSmartOptions.html", "classSmartOptions" ]
]; |
// Define our eval outside of the scope of any other reference defined in this
// file to avoid adding those references to the evaluation scope.
function __eval(__source, __global, __load) {
try {
eval('(function() { var __moduleName = "' + (__load.name || '').replace('"', '\"') + '"; ' + __source + ' \n }).call... |
Package.describe({
summary: "Login service for Twitter accounts",
version: "1.1.12"
});
Package.onUse(function(api) {
api.use('underscore', ['server']);
api.use('accounts-base', ['client', 'server']);
// Export Accounts (etc) to packages using this one.
api.imply('accounts-base', ['client', 'server']);
a... |
require("core-js/modules/es7.string.pad-start");
|
#!/usr/bin/python
"""
Rescale baseline density files, Nring(u), into n(x) = n(u=d/lambda) / lambda^2,
which is approx. const. with frequency (and x = u / nu).
"""
import numpy as np
import pylab as P
import scipy.integrate
import scipy.interpolate
import os, sys
def process_baseline_file(fname):
"""
Process o... |
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vuex from 'vuex'
import './assets/style/reset.css'
import Vant from 'vant';
import 'vant/lib/index.css';
createApp(App).use(store).use(router).use(Vuex).use(Vant).mount('#app') |
import axios from 'axios';
import router from '../src/router';
import Vue from 'vue';
export function request(config) {
const instance = axios.create({
baseURL: 'http://localhost:3000',
timeout: 5000
})
//请求(成功、失败)拦截
instance.interceptors.request.use(config => {
//vuex的方式
// console.log(" store... |
import React from "react";
import IndividualDisease from "./IndividualDisease";
export default function YellowLCV() {
const post = {
heading: "Bacterial Spot of Tomato",
subheading1: "What is bacterial spot?",
content1:
" Bacterial spot can affect all above ground parts of a tomato plant , includi... |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
#!/usr/bin/env python
import pytest
"""
Test 2057. Smallest Index With Equal Value
"""
@pytest.fixture(scope="session")
def init_variables_2057():
from src.leetcode_2057_smallest_index_with_equal_value import Solution
solution = Solution()
def _init_variables_2057():
return solution
yield... |
"use strict";var precacheConfig=[["/index.html","d0ea3cc9a351bd3aad234c08566a06b8"],["/static/css/main.52a67cdc.css","a5d9093208b763aa7a54d92cc43422a2"],["/static/js/main.00d04584.js","dda5ac7d6c4909c038efb42104691e63"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:"... |
# 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 writing, software
# d... |
import React from "react";
import { Store } from "react-chrome-redux";
import { render } from "react-dom";
import { Provider } from "react-redux";
import { ThemeProvider } from "styled-components";
import App from "./components/App/App";
import { theme } from "./theme";
import { BrowserRouter } from "react-router-dom";... |
// Variety.js v3.4.1
(function() {
var _info = {},
_list = [];
function toPID(name) {
if (!!_info[name]) {
return name;
}
for (var pid in _info) {
if (!_info[pid].alias) {
continue;
}
for (var type in _info[pid].alias) {
if (_info[pid].alias[type] === name) {
return pid;
}
}
... |
const parseFont = require("./parseFont");
test("parseFont - ascii", async () => {
expect(await parseFont("fixtures/ascii.fnt")).toMatchInlineSnapshot(`
"module.exports = {
\\"pages\\": [typeof require(\\"./test.png\\") === \\"object\\" && require(\\"./test.png\\") != null && require(\\"./test.png\\").__esM... |
import logging
import os
import base64
import pkg_resources
from pyramid.settings import asbool
from pyramid.config import Configurator
from pyramid.httpexceptions import (
HTTPNotFound,
HTTPNoContent,
HTTPCreated,
HTTPBadRequest,
HTTPGone,
HTTPUnprocessableEntity,
)
from cornice import Service... |
// All symbols in the `Pe` category as per Unicode v2.0.14:
[
'\x29',
'\x5D',
'\x7D',
'\xBB',
'\u0F3B',
'\u0F3D',
'\u2019',
'\u201D',
'\u203A',
'\u2046',
'\u207E',
'\u208E',
'\u232A',
'\u3009',
'\u300B',
'\u300D',
'\u300F',
'\u3011',
'\u3015',
'\u3017',
'\u3019',
'\u301B',
'\u301E',
'\uFD3F',
'... |
#!/usr/bin/env python
# =============================================================================================
# MODULE DOCSTRING
# =============================================================================================
"""
Tests for molecular topology representations
At least one supported cheminformat... |
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
"""Quality-time specific types."""
from typing import Any, NewType, Optional
import aiohttp
ErrorMessage = Optional[str]
Job = dict[str, Any]
Jobs = list[Job]
JSON = dict[str, Any]
Namespaces = dict[str, str] # Namespace prefix to Namespace URI mapping
Response = aiohttp.ClientResponse
Responses = list[Response]
U... |
'use strict';
var avisos = require('utils/avisos');
module.exports = function (xhr) {
if (xhr.status === 409) {
avisos.erro('Não foi possível completar esta solicitação. Por favor, recarregue esta página pois existem alterações nesta página.');
return 'conflito_edicao';
}
};
|
import { logger } from "../utils/logger";
export const infoLogger = (req, res, next) => {
const ip = req.get("X-Real-IP") || req.ip;
logger.info(`[${ip}] [${req.method}] ${req.url} `);
next();
};
|
import validator from 'is-my-json-valid';
import topicSchema from '../schemas/bcf/topic';
import viewpointSchema from '../schemas/bcf/viewpoint';
import commentSchema from '../schemas/bcf/comment';
import { DEBUG } from '../config';
const verbose = DEBUG;
const greedy = DEBUG;
function validate(type, schemaValidator,... |
"use strict";
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "react", "../../@patternfly/patternfly/components/Nav/nav.css.js", "@patternfly/react-styles", "prop-types", "./Nav"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, req... |
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import ContentMenu from '../../elements/ContentMenu/ContentMenu'
import Loader from '../../common/Loader/Loader'
import Breadcrumbs from '../../common/Breadcrumbs/Breadcrumbs'
import PageActionsMenu from '../../common/Page... |
# coding: utf-8
# ==========================================================================
# Copyright (C) 2016-2021 All rights reserved.
#
# filename : Biaffine.py
# origin : yzhangcs
# author : chendian / okcd00@qq.com
# date : 2020-12-15
# desc :
# refer : https://github.com/yzhangcs/p... |
import React, {Component} from "react";
class Player extends Component {
constructor(props) {
super(props);
this.initials = props.initials;
this.clicks = props.clicks;
}
render() {
return (
<li id={this.initials+this.clicks} className="player">
{... |
# vim: tw=100 foldmethod=marker
# MIT License#
# Copyright (c) 2017 - 2019 Karlsruhe Institute of Technology - Steinbuch Centre for Computing
#
# 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... |