text stringlengths 3 1.05M |
|---|
import enum
import functools
import logging
import pathlib
from typing import Any, Callable, Optional, cast
from urllib import parse
import tensorflow as tf
import yogadl
from yogadl import storage, tensorflow
import determined as det
from determined import horovod
from determined.common import check
from determined.... |
function obj2arr(o)
{
var o2 = new Array();
for (const [key, value] of Object.entries(o))
{
o2[key] = value;
//console.log(`${key}: ${value}`);
}
return o2;
}
|
import os
from enum import Enum
from pathlib import Path
from os.path import join, exists
import argparse
import pathlib
import click
import numpy as np
import pandas as pd
import download_data
import dataframe
import plotter
from matplotlib import pyplot as plt
import seaborn as sns
import dataframe
import plotter... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
targets_sequence_integers = list(map(int, input().split()))
counter = 0
while True:
command = input()
if command == "End":
break
else:
index = int(command)
if index < len(targets_sequence_integers) and targets_sequence_integers[index] > -1:
target = targets_sequence_inte... |
'use strict';
var CONSTRUCTORS = {
Object: Object,
Array: Array,
Function: Function,
Number: Number,
String: String,
Date: Date,
RegExp: RegExp
};
module.exports = function defFunc(ajv) {
/* istanbul ignore else */
if (typeof Buffer != 'undefined') CONSTRUCTORS.Buffer = Buffer;
defFunc.definition... |
version https://git-lfs.github.com/spec/v1
oid sha256:c569d64884f513da1d486526e52ab2aa9584d38dd31c35a57a78687866a01b0d
size 143178
|
/*
* HomePage Messages
*
* This contains all the text for the HomePage container.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.containers.HomePage';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMessage: 'Pango Coding Test',
},
});
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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 Licen... |
isWindows = -1 < navigator.platform.indexOf("Win"), isWindows ? ($(".sidebar .sidebar-wrapper, .main-panel").perfectScrollbar(), $("html").addClass("perfect-scrollbar-on")) : $("html").addClass("perfect-scrollbar-off");
var breakCards = !0,
searchVisible = 0,
transparent = !0,
transparentDemo = !0,
fixedTop = !1,
... |
(function () {
var names = ["Paula", "Laura", "Jen", "Jason", "Paul", "Jim", "Larry", "Yaakov", "John", "Frank"];
for (var i = 0; i < names.length; i++) {
var firstLetter = names[i].charAt(0).toLowerCase();
if (firstLetter === 'j') {
byeSpeaker(names[i]);
}
else {
helloSpeaker(names[i]);
... |
!function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
import React, { useState } from "react";
import { auth } from "../firebase";
const Inicio = () => {
const [fotoUsuarioLogado, setFotoUsuarioLogado] = useState("");
const [nomeUsuarioLogado, setNomeUsuarioLogado] = useState("");
//Verificamos se houve alguma alteração nos dados do usuário logado
auth.onAuthS... |
// @format
import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import tw from 'tailwind.macro';
import {graphql, StaticQuery} from 'gatsby';
import Img from 'gatsby-image';
const HeaderStyled = styled.header`
width: 100%;
${tw`font-sans`}
position: relative;
d... |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Pdsh(AutotoolsPackage):
"""
PDSH: a high performance, parallel remote shell utility
... |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = null;
var argument3 = null;
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = null;
var argument6 = function callback(){callbackArguments.push(arguments)};
var ... |
const ENTER = 13;
const event = {
keyCode: ENTER
};
|
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from project.tasks.models import Task, Account, Plan, Task, Tag, Note
from django.contrib.auth.models import User
class AccountSerializer(serializers.HyperlinkedModelSerializer):
user = serializers.HyperlinkedRelatedFie... |
from hashlib import sha1
from json import JSONDecodeError
from typing import Dict, Type, Union
import attr
from jsonschema import ValidationError
from .utils import GenericResponse
class CheckFailed(AssertionError):
"""Custom error type to distinguish from arbitrary AssertionError that may happen in the depende... |
// @flow
// external imports
import React from 'react'
import { Svg, Path, Circle } from 'svgs'
// internal imports
import type { IconProps } from './types'
const Users = (props: IconProps) => (
<Svg
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="none"
stroke="currentCol... |
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3208],{96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},28300:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(26265),i=r(85893),l=r(38347),o=(r(67294),r(45697)),c=r.n(o);function a(e,t){... |
"""
Support for interfacing to iTunes API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.itunes/
"""
import logging
import requests
import voluptuous as vol
from homeassistant.components.media_player import (
MEDIA_TYPE_MUSIC, MEDIA_T... |
const gm = require('gm').subClass({ imageMagick: true })
const videoshow = require('videoshow')
const state = require('./state.js')
async function robot() {
console.log('> [video-robot] Starting...')
const content = state.load()
await convertAllImages(content)
await createAllSentenceImages(content)
await cr... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/Select/setting/nls/strings":{setSelectionColor:"Die Auswahlfarbe festlegen",selection... |
"""
Django settings for blog project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... |
import BaseTileLayer from './BaseTileLayer.js'
import ImageryType from '../../imagery/ImageryType.js'
class ArcgisLayer extends BaseTileLayer {
constructor(options) {
super(options)
this._type = ImageryType.ARCGIS
}
static createImageryLayer (options) {
return this._createImageryLayer(ImageryType.... |
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '..')) # append the MIALab root directory to Python path
import numpy as np
import SimpleITK as sitk
import exercise.helper as helper
def load_image(img_path, is_label_img):
# todo: load the image from the image path with the Si... |
HTMLWidgets.widget({
name: "wavesurfer",
type: "output",
factory: function(el, width, height) {
var initialized = false;
var elementId = el.id;
var container = document.getElementById(elementId);
//plugins pre-defined options
var pluginOptions = {
microphone: {
defe... |
(function(){
function SongPlayer($rootScope, Fixtures){
var SongPlayer= {};
/**
* @desc Current Album from Albums Array
* @type {Object}
*/
var currentAlbum = Fixtures.getAlbum();
/**
* @desc Buzz object audio file
* @type {Object}
*/
var currentBuzzObject = null;
/**
* @function ... |
angular.module('app.directives')
.directive('loginForm',
['appConfig',function(appConfig){
return {
restrict: 'E',
templateUrl: appConfig.baseUrl + '/build/views/templates/form-login.html',
scope:false
};
}]); |
# Optimize.py
#
# Created: Nov 2015, Carlos / Tarik
# Modified: Feb 2016, M. Vegh, T. MacDonald
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import SUAVE
from SUAVE.Core import Units, Data
import numpy as... |
const Sequelize = require("sequelize");
const db = require("../config/database");
const Job = db.define("job", {
title: {
type: Sequelize.STRING
},
technologies: {
type: Sequelize.STRING
},
description: {
type: Sequelize.STRING
},
budget: {
type: Sequelize.STRING
},
contact_email: {
... |
# coding: utf-8
"""
An API to insert and retrieve metadata on cloud artifacts.
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1alpha1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
... |
import OrderHistory from './order-history';
export default OrderHistory;
|
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Pegasusairlines = forwardRef(function Pegasusairlines(
{ color = 'currentColor', size = 24, title = 'Pegasus Airlines', ...others },
ref
) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
hei... |
/* eslint no-console: 0 */
const chalk = require('chalk');
const path = require('path');
const rollup = require('rollup');
const rbabel = require('rollup-plugin-babel');
const resolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const alias = require('rollup-plugin-alia... |
// LICENSE : MIT
"use strict";
import assert from "power-assert"
import {shouldIgnoreByBabel} from "../../lib/babelrc-util"
describe("babelrc-util", function () {
describe("#shouldIgnoreByBabel", function () {
context("when has `only` option", function () {
it("should ignore the other files", f... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
let React;
let ReactFeatureFlags;
let ReactDOM;
let SchedulerTracing;
let Scheduler;
func... |
const exec = require('child_process').exec
const fs = require('fs')
const resemble = require('node-resemble-js')
const fileStorage = require('../functions/fileStorage')
var exports = module.exports = {}
const MongoCLient = require('mongodb').MongoClient
const ObjectId = require('mongodb').ObjectID
const { MONGODB_... |
const path = require("path");
module.exports = {
root: true,
parser: "babel-eslint",
plugins: ["prettier", "import"],
rules: {
"no-extra-bind": 2,
"no-else-return": 2,
"no-useless-return": 2,
"no-var": 2,
"prettier/prettier": 2,
"import/order": [
"error",
{
"newlines... |
# -*- coding: utf-8 -*-
#
# pyFFTW documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 30 14:37:35 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... |
const path = require('path');
module.exports = {
paths: {
/* Path to source files directory */
source: path.resolve(__dirname, '../src/'),
/* Path to built files directory */
output: path.resolve(__dirname, '../dist/'),
},
server: {
host: '127.0.0.1',
port: 8000,
},
limits: {
/* ... |
import React, { Component, PropTypes } from 'react'
import config from '../config'
import tables from '../tables'
import BaseList from 'template-ui/lib/plugins2/crud/components/BaseList'
const icons = config.icons
const InstallationList = BaseList({
title: 'Project',
icon: config.icons.project,
table: tables.... |
#!/usr/bin/env python
import os
import pvl
import json
from xmljson import badgerfish as bf
from pds_pipelines.config import recipe_base, link_dest
from pds_pipelines.RedisQueue import RedisQueue
from ast import literal_eval
def main():
RQ = RedisQueue('LinkQueue')
while int(RQ.QueueSize()) > 0:
# Gra... |
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/... |
export const notTinyProject = (
{ env = {}, materials = {} },
{
name = '',
url = '',
weeks = null,
milestone = 0,
description = '',
gitpod = materials.gitpod,
state = '',
},
) => {
// --- scoped utilities for generating links ---
const urlSafeName = `"${encodeURIComponent(name)}"`... |
/**
* @license
* Copyright 2014 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... |
const { createCustomTweet } = require("./helpers");
const { renderRichTweets, fixUserDescription } = require("./rich-rendering");
const { formatTimestamp } = require("../utils/date");
/**
* @param {screenName} string
* @param {TwitterConversationResponse} responseJSON
* @param {string} token
*/
async function pr... |
/* */
"format cjs";
import { bootstrap } from 'angular2/bootstrap';
import { NG_VALIDATORS } from 'angular2/common';
import { Provider } from 'angular2/core';
let MyApp = null;
let myValidator = null;
// #docregion ng_validators
bootstrap(MyApp, [new Provider(NG_VALIDATORS, { useValue: myValidator, multi: true })]);
/... |
//
// Vivado(TM)
// rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
// Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.
//
var WshShell = new ActiveXObject( "WScript.Shell" );
var ProcEnv = WshShell.Environment( "Process" );
var PathVal = ProcEnv("PATH");
if ( PathVal.length == 0 ) {
PathVal... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("hardhat/config");
const fs_extra_1 = require("fs-extra");
const path_1 = requi... |
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
chai.use(chaiAsPromised)
const assert = chai.assert
const BotDriver = require('../../').BotDriver
const Capabilities = require('../../').Capabilities
const nock = require('nock')
const myCapsGet = {
[Capabilities.CONTAINERMODE]: 'simpler... |
#!/usr/bin/env python
import copy
import math
import random
import re
import textwrap
import unicodedata
from ._compact import py3k, itermap, uni_chr, escape
from ._compact import str_types
from ._compact import unicode_, basestring_
# hrule styles
FRAME = 0
ALL = 1
NONE = 2
HEADER = 3
# Table styles
DEFAULT = 10
MS... |
import unittest
from unittest.mock import patch, MagicMock
import time
from conjur import Client
from conjur.controller import InitController
from conjur.controller.host_controller import HostController
from conjur.controller.login_controller import LoginController
from conjur.controller.logout_controller import Logou... |
webpackJsonp([8],{"0iJL":function(t,e,o){(t.exports=o("FZ+f")(!1)).push([t.i,"\n.token-con {\n max-width: 1100px;\n margin: 0 auto;\n}\n.create-wrapper {\n max-width: 1100px;\n margin: 0 auto;\n padding: 30px 0;\n}\n.create-wrapper .btn-block {\n width: 100px;\n}\n",""])},RkUW:function(t,e,o){"use strict";Objec... |
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
import React, { Component } from 'react';
import Wrapper from '../../../hoc/WrapperElement/WrapperElement';
import Button from '../../UI/Button/Button';
class OrderSummary extends Component {
componentWillUpdate () {
console.log('[OrderSummary]');
}
render() {
const ingredientSummary = Obj... |
export { default } from 'ember-cli-clappr/components/clappr-player'; |
let settings = {
mode: "pan",
selecting: function () {
},
focusZoom: true,
rescaleContent: false,
selected: [],
lastSelected: function () {
return this.selected[this.selected.length - 1];
},
selectRadius: 5,
isSelected: function (object) {
return this.selected.inc... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.Minus = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentCo... |
import React, { useState, useEffect } from "react";
import { Link } from "gatsby";
import HeaderComponent from "components/Header/HeaderStyles";
import Hamburger from "components/Header/Hamburger/Hamburger";
import MainNavigation from "components/Header/MainNavigation/MainNavigation";
import Socials from "components/H... |
tinyMCE.addI18n("dv.advimage_dlg", {
image_list: "Image list",
align_right: "Right",
align_left: "Left",
align_textbottom: "Text bottom",
align_texttop: "Text top",
align_bottom: "Bottom",
align_middle: "Middle",
align_top: "Top",
align_baseline: "Baseline",
align: "Alignment",
... |
import json
import requests
from datetime import datetime
import time
#1302
#1296
BASE_URL='https://www.del.org/live-ticker/matches/'
GAME_ID=str(1296)
FILE_HOME='/player-stats-home.json'
FILE_GUEST='/player-stats-guest.json'
raw_stats = dict()
raw_stats_old = dict()
r = requests.get(BASE_URL + GAME_ID + FILE_HOME)
... |
import gulp from 'gulp';
import rename from 'gulp-rename';
module.exports = () => {
return gulp
.src('build/*.css')
.pipe(rename('style.css'))
.pipe(gulp.dest('example'));
};
|
#!/usr/bin/env python3
# usage python3 publisher_demo.py [topic] [data]
import paho.mqtt.client as mqtt
import sys
MQTT_BROKER_ADDRESS = "192.168.1.125"
MQTT_PORT = 1883
MQTT_STAYALIVE = 60
topic = sys.argv[1]
data = sys.argv[2]
print("topic: " + str(topic) + "\t data: " + str(data))
client = mqtt.Client()
client.c... |
import React from 'react';
import toJson from 'enzyme-to-json';
import { ThemerollerActions } from '../ThemerollerActions';
describe('ThemerollerActions component', () => {
const onResetMock = jest.fn();
const onDownloadMock = jest.fn();
const onApplyMock = jest.fn();
afterEach(() => {
jest.re... |
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factory();
}
else if(typeof define === 'function' && define.amd) {
define('GMaps', [], factory);
}
root.GMaps = factory();
}(this, function() {
/*!
* GMaps.js v0.4.15
* http://hpneo.github.com/gmaps/
*
* Copyright 201... |
var http = require('http')
var bl = require('bl')
http.get(process.argv[2], (res) => {
res.setEncoding('utf-8')
res.pipe(bl((err, data) => {
console.log(data.length)
console.log(data.toString())
}))
})
|
#
# 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... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_amp_stories_outline = void 0;
var ic_amp_stories_outline = {
"viewBox": "0 0 24 24",
"children": [{
"name": "g",
"attribs": {},
"children": [{
"name": "rect",
"attribs": {
"fill": "none",
... |
var CkEditorImageBrowser = {};
CkEditorImageBrowser.folders = [];
CkEditorImageBrowser.images = {}; //folder => list of images
CkEditorImageBrowser.ckFunctionNum = null;
CkEditorImageBrowser.$folderSwitcher = null;
CkEditorImageBrowser.$imagesContainer = null;
CkEditorImageBrowser.init = function () {
CkEditorImage... |
const buscarCEP = cep =>
fetch(`https://viacep.com.br/ws/${cep}/json/`)
.then(response => response.json())
.then(endereco => endereco);
export default buscarCEP;
|
import FWCore.ParameterSet.Config as cms
JetIDParams = cms.PSet(
useRecHits = cms.bool(True),
hbheRecHitsColl = cms.InputTag("hbhereco"),
hoRecHitsColl = cms.InputTag("horeco"),
hfRecHitsColl = cms.InputTag("hfreco"),
ebRecHitsColl = cms.InputTag("ecalRecHit", "EcalRecHits... |
"""
Name: Vivek Khimani
"""
from django.test import TestCase
from covid.models import User, Participant
class ParticipantTestCase(TestCase):
def setUp(self) -> None:
return
|
import React from "react";
import { MdSearch } from "react-icons/md";
import styles from "./Search.module.scss";
const Search = () => {
return (
<div className={styles["search"]}>
<MdSearch />
<input type="text" placeholder="Search for items, categories and more …" />
</div>
);
};
export def... |
console.log("There is no command line version of imgjs.\n\nTo see the project, please go to https://github.com/mint-lgbt/imgjs.")
|
from .formatters import Formatter
from .utils import fetch_text
from libversion import Version
from typing import Dict, Iterator, List, Optional, Tuple
import json
import re
import sys
VersionFiles = Dict[str, str]
VersionsFiles = Dict[str, VersionFiles]
Versions = List[str]
BranchFiles = Dict[str, List[str]]
LINK_PA... |
define('cart_lines_free.tpl', ['Handlebars','Handlebars.CompilerNameLookup'], function (Handlebars, compilerNameLookup){ var t = {"1":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="f... |
import Config from './assets/config'
import axios from 'axios'
import open from 'open'
export default {
mode: 'universal',
/*
** Headers
** Common headers are already provided by @nuxtjs/pwa preset
*/
head: {
titleTemplate: titleChunk => {
// If undefined or blank then we don't need the hyphen... |
$('head').append('<style>.UIHeader__invite-friends {background: none;cursor: default;text-decoration: none;}.UIHeader__invite-friends:hover {cursor: pointer;text-decoration: none;}#ic26 {line-height: 24px;}.hidden {display: none;}.ic26-pin {width: 22px;margin: 0 0 0 5px;}.ic26-form a, .ic26-form a:hover, .ic26-form a:a... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4
Version: 4.2.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v4.2/admin/
*/
var getMonthName = function(number) {
var month = [];
month[0] = "JAN";
month[1] = "FEB";
month[2] = "MAR";
month[3] = "AP... |
import Mock from 'mockjs'
import {
getPaymentConfirmation,
updatePaymentConfirmation,
getProjectConfirmation,
updateProjectConfirmation,
getLogcallList,
getPayBatchList,
mergePDF,
updateLogcallStatus,
getRelationAccount,
relationAccount,
updateRejectReason,
joinPayBatch,
createPayBatch,
getP... |
from test_fena.test_common import test_cmd
def test_teams():
test_cmd("team add _team team_test", "team add fena.team team_test")
test_cmd("team add _team team test", "team add fena.team team test")
test_cmd("team empty _team", "team empty fena.team")
test_cmd("team _team + @a", "team ... |
const { Message, MessageEmbed } = require('discord.js');
const Client = require('../../struct/Client');
module.exports = {
name: 'ping',
usage: 'ping',
description: 'Envoie le temps de latence du bot (en millisecondes).',
category: 'Utilitaire',
img: 'https://image.flaticon.com/icons/png/512/1178/1178864.png... |
# Generated by Django 3.1.7 on 2021-03-30 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scanpipe', '0005_project_input_sources'),
]
operations = [
migrations.AddField(
model_name='codebaseresource',
name=... |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const axios = require('axios')
module.exports = function (x) {
return new Promise(function(resolve, reject) {
axios.defaults.headers.common['Accept'] = 'application/json'
axios(x)
.then(response => {
resolve(response)
})
.catch(error => {
reject(e... |
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import json
import logging
... |
/*eslint-disable*/
import React from "react"
// nodejs library that concatenates classes
import classNames from "classnames"
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles"
import List from "@material-ui/core/List"
import ListItem from "@material-ui/core/ListItem"
// core component... |
from django.conf import settings
ZOOM_API_KEY = getattr(settings, "ZOOM_API_KEY")
ZOOM_API_SECRET = getattr(settings, "ZOOM_API_SECRET")
ZOOM_API_USER_ID = getattr(settings, "ZOOM_API_USER_ID")
|
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
// This icon file is generated by build/generate.ts
// tslint:disable
/** @type {?} */
export const BorderHorizontalOutline = {
name: 'border-horizontal',
theme: 'outline',
icon: '<svg viewBox="64 64... |
import React from 'react';
import { render } from 'react-dom';
import Bcomponent from './bcomponent'
import CommonComponent from '../common/commonComponent'
render(
<div>
<Bcomponent/>
<CommonComponent />
</div>
,
document.getElementById('root')
);
|
'use strict';
describe('ngInclude', function() {
var element;
afterEach(function(){
dealoc(element);
});
function putIntoCache(url, content) {
return function($templateCache) {
$templateCache.put(url, [200, content, {}]);
};
}
it('should include on external file', inject(putIntoCach... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var hooks_1 = require("../../services/hooks");
function AfterDelete() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
return hooks_1.implementHookDecorator('afterDelete', arg... |
var templateConfig = {
sections: [
{
type: 'tag',
title: 'h2. Summary'
},
{
type: 'table',
tableItems: [
{
addItems: true,
blankLine: 'both', // 'after', 'before', 'both'
headers: [
{
title: 'ID',
wrapper: '|'
},
{
title: 'Title',
wrapp... |
/**
* @defgroup js_controllers
*/
/**
* @file js/controllers/SiteHandler.js
*
* Copyright (c) 2013-2016 Simon Fraser University Library
* Copyright (c) 2000-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class SiteHandler
* @ingroup js_controllers
*
* ... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { Component, Input, HostBinding } from '@angular/core';
import { sidebarCssClasses } from '../shared/index';
export class AppSidebarComponent {
constructor() { }
/**
* @return {?}
*/
ngOnInit() {
this... |
# ice_cream/views.py
from django.http import HttpResponse
# Импортируем загрузчик.
from django.template import loader
# Импортируем рендеринг
from django.shortcuts import render
# Главная страница
def index(request):
template = 'ice_cream/index.html'
return render(request, template)
# Страница со списком мор... |
module.exports = {
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true,
},
electronBuilder: {
nodeIntegration: true,
},
},
};
|
# -*- coding: utf-8 -*-
import unittest
import io
import requests
from requests_toolbelt.multipart.encoder import (
CustomBytesIO, MultipartEncoder, FileFromURLWrapper, FileNotSupportedError)
from requests_toolbelt._compat import filepost
from . import get_betamax
preserve_bytes = {'preserve_exact_body_bytes': ... |
const { renderToString } = require('react-dom/server');
const mdx = require('@mdx-js/mdx');
const React = require('react');
const { MDXProvider, mdx: createElement } = require('@mdx-js/react');
const babel = require('@babel/core');
const { parse } = require('node-html-parser');
const fs = require('fs');
const mdxToStr... |