text stringlengths 3 1.05M |
|---|
module.exports.config = {
name: "noprefix",
version: "1.0.1",
hasPermssion: 0,
credits: "HTHB",
description: "",
commandCategory: "không cần dấu lệnh",
usages: "",
cooldowns: 0,
denpendencies: {
"fs": "",
"request": ""
}
};
module.exports.onLoad = () => {
con... |
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import linear_model
from sklearn.datasets import make_regression
from sklearn.model_selection import train_test_split
# Create a data set for analysis
x, y = make_regression(n_samples=500, n_features=1, noise=25, random_state=0)
# Split the data set i... |
import os
import time
import yaml
from platform import python_version
from unittest import skipIf
import bzt
from bzt.engine import EXEC
from bzt.modules import ConsolidatingAggregator
from bzt.modules.functional import FuncSamplesReader, LoadSamplesReader, FunctionalAggregator
from bzt.modules._apiritif import Apir... |
from .ngender import guess
__all__ = ['guess']
|
# coding=utf-8
import Putil.loger as plog
plog.PutilLogConfig.config_handler(plog.stream_method)
plog.PutilLogConfig.config_format(
"%(filename)s: %(lineno)d: %(levelname)s: %(name)s: %(message)s")
from optparse import OptionParser
parser = OptionParser(usage='usage %prog [options] arg1 arg2')
project_data_root = '... |
// SCROLL TO TOP ===============================================================================
$(function() {
$(window).scroll(function() {
if($(this).scrollTop() != 0) {
$('#toTop').fadeIn();
} else {
$('#toTop').fadeOut();
}
});
$('#toTop').click(function() {
$('body,html').animate({scrollTop:0}... |
import {Button, FormControlLabel, MenuItem, Radio, RadioGroup, TextField} from "@material-ui/core";
import React, {useEffect, useState} from "react";
import MUIDataTable from "mui-datatables";
import axios from "axios";
import 'date-fns';
import DateFnsUtils from '@date-io/date-fns';
import {
KeyboardDatePicker,
... |
from django.core.urlresolvers import reverse_lazy
from django.http import HttpResponse
import datetime
from communique.views import (CommuniqueCreateView, CommuniqueDetailView, CommuniqueDeleteView, CommuniqueListView,
CommuniqueUpdateView, CommuniqueExportFormView, CommuniqueExportListV... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --experimental-wasm-threads
load("test/mjsunit/wasm/wasm-module-builder.js");
const kSequenceLength = 8192;
const kNumberOfWorkers = 4;
cons... |
define([
// Contact form validation
'app/js/jquery-plugins/jqBootstrapValidation',
'app/js/contact/contact_me',
'text!app/components/contact/contact-form/contact-form.html',
], function (Validation, sentMessage, template) {
// Create component ContactForm class
var ContactForm = {
name:... |
var config = require('../config'),
_ = require('underscore'),
path = require('path'),
when = require('when'),
api = require('../api'),
mailer = require('../mail'),
errors = require('../errorHandling'),
storage = require('../s... |
// // /*****************************************************************
// // *
// // * Promises
// // *
// // * Promises are built-in to many libraries and functions like
// // * fetch(), but we can also build our own promises.
// // *
// // * Sitenote:
// // * fetch() is similar to jQuery's .get() method.
//... |
/*
* Globalize Culture es-PY
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this file need t... |
export default { "type": "FeatureCollection", "features": [
{ "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-1.4505, 40.1426], [-1.4338, 40.1377], [-1.4204, 40.1403], [-1.4035, 40.1375], [-1.3922, 40.1324], [-1.3744, 40.1381], [-1.3659, 40.1356], [-1.3607, 40.1276], [-1.3516, 40.12... |
#!/usr/bin/env python
__version__ = '0.1'
__license__ = 'BSD2'
__version_info__ = (0, 1)
__author__ = 'Matthew Morrow <moonpatio@gmail.com>'
"""
Sudoku solver via the exact set cover problem, which is solved with
0/1-integer programming.
> def sudoku(givens, n=3):
> ...
> D = build_digits()
> R, C, B = bui... |
/*
Template Name: Stexo - Responsive Bootstrap 4 Admin Dashboard
Author: Themesdesign
Website: www.themesdesign.in
File: C3 Chart init js
*/
!function($) {
"use strict";
var ChartC3 = function() {};
ChartC3.prototype.init = function () {
//generating chart
c3.generate(... |
const express = require('express')
class Static{
constructor(route,path,headers){
this.route = route
this.path = path
this.headers = headers
}
get router(){ return this.valid ? express.static(this.path,this.headers):null }
use(app){
let values = this.values
if(values.length) app.use(...values)
return ... |
const Buffer = require('safe-buffer').Buffer
const tape = require('tape')
const swarmhash = require('../index.js')
const blobs = [
[ 0, '011b4d03dd8c01f1049143cf9c4c817e4b167f1d1b83e5c6f0f10d89ba1e7bce' ],
[ 0x1000 - 1, '32f0faabc4265ac238cd945087133ce3d7e9bb2e536053a812b5373c54043adb' ],
[ 0x1000, '411dd45de724... |
const EventEmitter = require('events');
const IORedis = require('ioredis');
const isPlainObject = require('lodash/isPlainObject');
const RedisEvents = [
'connect',
'ready',
'error',
'close',
'reconnecting',
'end',
];
class Database extends EventEmitter {
constructor(redisConfig) {
super();
if (i... |
var fs = require('fs');
var pos = require('pos');
var nlp = require('nlp_compromise');
var ent = require('html-entities').AllHtmlEntities;
var GRAMMAR = require('./grammar.json');
module.exports = hulkify;
function fixList(list) {
var replacement = Array();
for (var i = 0; i < list.length; i++) {
replaceme... |
import { NotImplementedError } from "../extensions/index.js";
/**
* Implement class VigenereCipheringMachine that allows us to create
* direct and reverse ciphering machines according to task description
*
* @example
*
* const directMachine = new VigenereCipheringMachine();
*
* const reverseMachine = new Vigen... |
export default function () {
let savedState = {}
try {
const serialized = window.localStorage.getItem('cryptoDash')
if (serialized) {
savedState = JSON.parse(serialized)
}
} catch (reason) {
console.error('::: Load state from the local storage failed with reason:'... |
'use strict';
const fs = require('fs');
const changes = [];
const display = files => {
console.log('\x1Bc');
while (changes.length > 10) {
changes.shift();
}
console.log('Changes:');
for (const item of changes) {
console.log(item.date.toISOString(), item.event, ':', item.file);
}
console.log('\... |
import boto3
from botocore import exceptions
import time
client = boto3.Session(region_name='eu-west-1').client('dynamodb', aws_access_key_id='', aws_secret_access_key='', endpoint_url='http://localhost:4567')
try:
response = client.put_item(
TableName='gamescores',
Item={
'event': {'S... |
from .hungarian_matcher import *
from .det_criterion import *
|
# 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
# distributed under the ... |
const signupFormHandler = async (event) => {
event.preventDefault();
console.log('click')
const username = document.querySelector('#username-signup').value.trim();
const email = document.querySelector('#email-signup').value.trim();
const password = document.querySelector('#password-signup').value... |
// methods should throw errors when arguments are invalid
const lwip = require('../../'),
imgs = require('../imgs');
describe('batch.resize arguments validation', () => {
let batch;
before(done => {
lwip.open(imgs.jpg.rgb, (err, img) => {
batch = img.batch();
done(err);
... |
/**
* Auto-generated action file for "EventGridManagementClient" API.
*
* Generated at: 2019-05-07T14:38:08.508Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-eventgrid-event-grid-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of ... |
import classic from 'ember-classic-decorator';
import Component from '@ember/component';
@classic
export default class EventIsPromoted extends Component {}
|
const ChronoTimer = require('../timer');
const style = require('./style.css');
const template = require('./template');
class ChronoTimerBrief extends ChronoTimer {
constructor() {
super();
this.removeTimer = this.removeTimer.bind(this);
this.onView = this.onView.bind(this);
}
initShadowRoot() {
... |
/**
* Copyright 2019, the AMP HTML 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 agr... |
import assert from 'assert';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import ConfirmTransactionReducer, * as actions from '../confirm-transaction.duck.js';
const initialState = {
txData: {},
tokenData: {},
methodData: {},
tokenProps: {
tokenDecimals: '',
toke... |
import * as React from 'react'
import { Link } from 'gatsby'
const partlyActive = className => ({ isPartiallyCurrent }) => ({
className: className + (isPartiallyCurrent ? ` active` : ``),
})
const PartialNavLink = ({ className, ...props }) => (
<Link getProps={partlyActive(className)} {...props} />
)
export defa... |
# Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... |
import React from "react";
import { inject, observer } from "mobx-react";
import { TELEOP_WS } from "store/websocket";
import AudioControl from "components/TeleopMonitor/AudioControl";
import MonitorSection from "components/TeleopMonitor/MonitorSection";
import itemIcon from "assets/images/icons/teleop_item.png";
... |
$(function () {
function t(t) {
var e = 0;
return $(t).each(function () {
e += $(this).outerWidth(!0)
}), e
}
function e(e) {
var a = t($(e).prevAll()),
i = t($(e).nextAll()),
n = t($(".content-tabs").children().not(".J_menuTabs")),
... |
#!/usr/bin/python3
from amazonia.classes.block_devices import Bdm
from amazonia.classes.block_devices_config import BlockDevicesConfig
from nose.tools import *
def test_block_device_mappings():
title = 'StackAsg'
block_devices_config = [
BlockDevicesConfig(device_name='/dev/xvda',
... |
import { swap, compare } from './array-operations';
export default (array, actions) => {
actions.beginSorting();
let swapped = false;
do {
swapped = false;
for (let i = 1; i < array.length; i++) {
if (compare(array, i - 1, i, actions.compare) > 0) {
swap(array, i - 1, i, actions.swap);
... |
/**
* Framework7 6.0.11
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2021 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: February 24, 2021
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?modu... |
/*******************************************
* MORSE CODE TRANSLATOR *
* Original Code by JinH (https://jinh.kr) *
*******************************************/
var v;
var hangulToJaso = function(text) {
var ChoSeong = new Array(
0x3131, 0x3132, 0x3134, 0x3137, 0x3138, 0x3139,
0x3141, 0x... |
import React, {Component} from 'react';
import {Grid, Typography, Button, withStyles} from "@material-ui/core";
import Head from 'next/head';
import classNames from 'classnames';
import Star from '@material-ui/icons/StarRate';
import Check from '@material-ui/icons/Check';
import {Query} from 'react-apollo';
import gql ... |
import { SpaceProps, ColorProps } from "@rajasegar/styled-web-components";
export class FWHeading extends HTMLElement {
static get observedAttributes() {
return ["level"];
}
constructor() {
super();
this.attachShadow({ mode: "open" });
this.render();
}
render() {
this.shadowRoot.innerHT... |
"use strict";
const request = require("request"); // https://github.com/request/request
const httpRequest = require("http").request;
const parseUrl = require("url").parse;
const multiparty = require("multiparty");
const PassThrough = require("stream").PassThrough;
const config = require("./configuration");
const erro... |
'use strict';
const Base = require('./Base');
const IntegrationApplication = require('./IntegrationApplication');
const { Error } = require('../errors');
const { Endpoints } = require('../util/Constants');
const Permissions = require('../util/Permissions');
/**
* Represents an invitation to a guild channel.
* <warn... |
'use strict';
const url = require('url');
const path = require('path');
const pgConnectionString = require('pg-connection-string');
const retry = require('retry-as-promised');
const _ = require('lodash');
const Utils = require('./utils');
const Model = require('./model');
const DataTypes = require('./data-types');
co... |
from rest_framework.views import APIView
from rest_framework import generics, mixins
from rest_framework.permissions import IsAuthenticated, IsAuthenticatedOrReadOnly, AllowAny
from django.http import HttpResponse
from django.db.models import Q
from .serializers import GuestPaymentSerializer
from django.contrib.auth i... |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.3-master-90b64fe
*/
goog.provide('ngmaterial.components.input');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.input
*/
mdInputContainerDirective['$inject'] = ["$mdTheming", "$parse"];
... |
;(function(angular){
'use strict';
var indexOf = [].indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++) {
if (i in this && this[i] === item) return i;
}
return -1;
};
function map(items, property) {
var mappedArray = [];
angular.forEach(items, function(item) {
... |
Object.defineProperty(exports, "__esModule", { value: true });
var commonModule = require("./dataform-common");
var color_1 = require("tns-core-modules/color");
var utilsModule = require("tns-core-modules/utils/utils");
var observableModule = require("tns-core-modules/data/observable");
var enums = require("tns-core-mo... |
/*
This file is a part of Mibew Messenger.
http://mibew.org
Copyright (c) 2005-2015 Mibew Messenger Community
License: http://mibew.org/license.php
*/
Ajax.PeriodicalUpdater=Class.create();
Class.inherit(Ajax.PeriodicalUpdater,Ajax.Base,{initialize:function(a){this.setOptions(a);this._options.onComplete=this.reque... |
// @flow
import React, { Component } from 'react';
type Props = {
children: React.Element<any>,
};
class App extends Component {
props: Props
render() {
const { children } = this.props;
return (
<div>
{React.Children.toArray(children)}
</div>
);
}
}
export default App;
|
import Vue from 'vue';
// 使用 Event Bus
export function test() {
reutrn "bus"
}
const bus = new Vue();
export default bus; |
import React, { Component } from 'react';
import { Mutation } from 'react-apollo';
import gql from 'graphql-tag';
import Form from './styles/Form';
import Error from './ErrorMessage';
const REQUEST_RESET_MUTATION = gql`
mutation REQUEST_RESET_MUTATION($email: String!) {
requestReset(email: $email) {
messag... |
'use strict';
// Load modules
const Code = require('@hapi/code');
const _Lab = require('../../test_runner');
// Declare internals
const internals = {};
// Test shortcuts
const lab = exports.lab = _Lab.script();
const describe = lab.describe;
const it = lab.it;
const expect = Code.expect;
describe('Test CLI', ... |
import os
from pathlib import Path
import shutil
dirs = ["five", "four", "one", "six", "three", "two"]
# So bad, but whatever...
for dir in dirs:
file_list = Path(os.path.join(dir)).glob("*.jpg")
for file in file_list:
file_name = os.path.basename(file)
for other_dir in dirs:
if other_dir != dir:... |
import test from 'tape-catch';
import {ViewportFlyToInterpolator} from 'react-map-gl/utils/transition';
import {toLowPrecision} from 'react-map-gl/test/test-utils';
/* eslint-disable max-len */
const TEST_CASES = [
{
title: 'throw for missing prop',
startProps: {longitude: -122.45, latitude: 37.78, zoom: 12}... |
module("data", { teardown: moduleTeardown });
test("expando", function(){
expect(1);
equal(jQuery.expando !== undefined, true, "jQuery is exposing the expando");
});
function dataTests( elem ) {
var dataObj, internalDataObj;
equal( jQuery.data(elem, "foo"), undefined, "No data exists initially" );
strictEqual(... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("specialchar",function(e){var t,i,n=e.lang.specialChar,a=function(i){var n,a;if(n=i.data?i.data.getTarget():new CKEDITOR.dom.element(i),"a"==n.getName()&&(... |
describe("StackedSelectTags test", () => {
it("is truthy", () => {
expect(true).toBeTruthy();
});
});
|
# -*- coding: utf-8 -*-
# Copyright 2019 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 o... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
var path = require('path');
var hmrTransform = 'react-transform-hmr/lib/index.js';
var transformPath = requi... |
# coding: utf-8
"""
Unity Cloud Build
This API is intended to be used in conjunction with the Unity Cloud Build service. A tool for building your Unity projects in the Cloud. See https://developer.cloud.unity3d.com for more information. ## Making requests This website is built to allow requests to be made a... |
var _ = require('lodash');
var keystone = require('../../');
var utils = keystone.utils;
/**
* Content Class
*
* Accessed via `Keystone.content`
*
* @api public
*/
var Content = function () {};
/**
* Loads page content by page key (optional).
*
* If page key is not provided, returns a hash of all page conte... |
macDetailCallback("5c10c5000000/24",[{"d":"2020-09-11","t":"add","s":"ieee-oui.csv","a":"#94-1, Imsoo-Dong Gumi Gyeongbuk KR 730-350","c":"KR","o":"Samsung Electronics Co.,Ltd"}]);
|
import {
getCommonHeader,
getCommonCard,
getCommonContainer,
getCommonParagraph,
getLabelWithValue,
getCommonTitle,
getDateField,
getLabel,
getPattern,
getSelectField,
getTextField,
getBreak
} from "egov-ui-framework/ui-config/screens/specs/utils";
//import { DOEApply... |
getJasmineRequireObj().MockDate = function() {
function MockDate(global) {
var self = this;
var currentTime = 0;
if (!global || !global.Date) {
self.install = function() {};
self.tick = function() {};
self.uninstall = function() {};
return self;
}
var GlobalDate = global.... |
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const mapToStreamingType = require('./map-to-streaming-type')
/**
* Specialized attribute collection class for use with infinite streaming.
* Currently designed to be sent over grpc via the v1.p... |
import _filter from "lodash/filter";
import _find from "lodash/find";
import _forEach from "lodash/forEach";
import alertify from "alertifyjs/build/alertify.min";
import APIConfig from "../../../../../utils/config";
class PersonalCreateStuffProfileController {
constructor(PreloadService, AuthorizationService, Helpe... |
module.exports = new Date(2013, 0, 22)
|
(function() {
'use strict';
angular.module('master.detail')
.run(ImportTemplate)
ImportTemplate.$inject = ['$templateCache'];
function ImportTemplate($templateCache){
$templateCache.put('/template/date-picker.directive.html',
'<div class="master-detail-container">\n<div class="select-list col-xs-4">... |
/* eslint spaced-comment: 0 */
/* eslint no-redeclare: 0 */
/* eslint no-undef: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-bitwise: 0 */
const assert = require('chai').assert;
/// title: Petch
/// type: arcade-mode
/// categories:
/// algorithms
/// xor
/// encryption
/// bit manipulation
/// difficulty: 2
/... |
#!/usr/bin/env python3
from utilities import ImagesLoader
from utilities import VideoLoader
from utilities import Visualizer
from Line import ImageProcessor
import argparse
import sys
def main():
# enput arguments to main script to select data source data type (images or videos)
# and select the source data ... |
function readFile({filePath, options = {}, fs}) {
return new Promise((resolve, reject) => {
fs.readFile(filePath, options, (err, fileContent) => {
if (err) return reject(err);
return resolve(fileContent);
});
});
}
module.exports = readFile; |
const assert = require('assert');
const base64url = require('base64url');
const JWT = require('../../helpers/jwt');
const instance = require('../../helpers/weak_cache');
const nanoid = require('../../helpers/nanoid');
const opaqueFormat = require('./opaque');
function getClaim(token, claim) {
return JSON.parse(ba... |
from timemachines.skaters.tcn.tcninclusion import using_tcn
if using_tcn:
import numpy as np
from typing import List
from timemachines.skatertools.utilities.suppression import no_stdout_stderr
def tcn_univariate_iskater(y: [[float]], k: int, a: List = None, t: List = None, e=None, tnc_onnx_model=None)... |
# Copyright (c) 2020-2021 by Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
from pandapipes.component_models.auxiliaries.component_... |
function my_function272(){
//17953822051003585400789088221343NSPoQYqTTdKKYreiTQBPxWAYZicQKWTm
}
function my_function388(){
//35199948924579126851970967085228SSOWTfZwXcvtnBwvEtnUqlVqdlBuxDPT
}
function my_function549(){
//53812885939313256799466706937290wFRUjfnOVVmmsGbhRHLuOaKoTZHEQHHU
}
function my_function489(){
/... |
define(['app'], function (app) {
app.factory('authInterceptor', authInterceptor);
authInterceptor.$inject = ['$window'];
function authInterceptor($window) {
var storage = $window.localStorage;
var factory = {
request: request,
response: response
};
return factory;
function request(config) {
var ... |
import json
import argparse
import torch
import os
import random
import numpy as np
import requests
import logging
import math
import copy
import string
import faiss
import wandb
from time import time
from tqdm import tqdm, trange
from densephrases.utils.single_utils import set_seed
from densephrases.utils.eval_utils... |
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... |
/* global gtag, URI, getSearchResults, getAutocompleteSuggestions, parseYoutubeVideoID, getYouTubeVideoDescription */
var keyCodes = {
SPACEBAR: 32
};
var timeIntervals = {
SECONDS: 60
};
/**
* YouTube iframe API required setup
*/
var plyrPlayer;
var youTubeDataApiKey = "AIzaSyCxVxsC5k46b8I-CLXlF3cZHjpiqP_... |
from lib.framework.NYISO.query import *
from lib.framework.NYISO.merge import *
import datetime
raw_dir = os.path.join(os.getcwd(), 'raw_data', 'NYISO')
data_dir = os.path.join(os.getcwd(), 'data', 'NYISO')
if os.path.isdir(raw_dir):
pass
else:
os.makedirs(raw_dir)
if os.path.isdir(data_dir):
pass
else:
... |
context = describe;
describe('the JavaScript language', () => {
describe('has different types and operators', () => {
it('considers numbers to be equal to their string representation', () => {
expect(1 == '1').toBeTruthy();
expect(1 != '1').toBeFalsy();
});
it('knows that numbers and strings... |
import Route from '@ember/routing/route';
export default class JobsRoute extends Route {
}
|
/* eslint-disable
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
const mongoose = require('mongoose')
const Settings = require('settings-sharelatex')
const { Schema } = mongoose
const { ObjectId } = Schema
const OauthApplicationSchema = new Sche... |
import nengi from 'nengi'
import nengiConfig from '../common/nengiConfig'
import InputSystem from './InputSystem'
import MoveCommand from '../common/command/MoveCommand'
import FireCommand from '../common/command/FireCommand'
import PIXIRenderer from './graphics/PIXIRenderer'
class GameClient {
constructor() {
... |
var fileBrowserModule = angular.module('account', ['angularGrid']);
fileBrowserModule.controller('accountController', function($scope) {
var columnDefs = [
{displayName: '', field: 'item', width: 200, cellRenderer: {
renderer: 'group'
}},
{displayName: "Units", field: "... |
/*
██████╗ ███████╗ ██████╗ ██╗ ██╗██╗██████╗ ███████╗███████╗
██╔══██╗██╔════╝██╔═══██╗██║ ██║██║██╔══██╗██╔════╝██╔════╝
██████╔╝█████╗ ██║ ██║██║ ██║██║██████╔╝█████╗ ███████╗
██╔══██╗██╔══╝ ██║▄▄ ██║██║ ██║██║██╔══██╗██╔══╝ ╚════██║
██║ ██║███████╗╚██████╔╝╚██████╔╝██║██║ ██║███████╗███████║
╚═╝ ╚═... |
// Задача. Добавляем новое зелье
// Задание
// Дополни метод addPotion(potionName) так, чтобы он добавлял зелье potionName в конец массива зелий в свойстве potions.
// Тесты
// Объявлена переменная atTheOldToad.
// Значение переменной atTheOldToad это объект.
// Значение свойства atTheOldToad.potions это массив ['Зе... |
{"mlist":[],"rlist":{},"page":{"page":1,"count":0,"size":10,"type":0,"id":31899}} |
/**
* Returns the siblings of a specific route (that is the previous and next routes).
*/
export function getRouteContext(_route, routes, ctx = {}) {
if (!_route) {
return ctx;
}
const {
path
} = _route;
const {
parent
} = ctx;
for (let i = 0; i < routes.length; i += 1) {
const route =... |
'use strict'
const config = require('../../config')
const wpcom = require('wpcom')(config.get('WP_TOKEN'))
class CmsModel {
constructor() {
this.blog = wpcom.site(config.get('WP_URL'))
}
getPost(slug) {
return new Promise((resolve, reject) => {
this.blog.post({slug: slug}).getBySlug((err, data... |
import elCard from "../../../package/card/index.js";
import san from "san";
describe("card structure", () => {
const viewport = document.createElement("div");
beforeEach(() => {
document.body.appendChild(viewport);
});
afterEach(() => {
viewport.remove();
});
it("It should ha... |
import json
import logging
import discord.ext.commands as commands
# Setup logging
rlog = logging.getLogger()
rlog.setLevel(logging.INFO)
handler = logging.FileHandler('panda.log', encoding='utf-8')
handler.setFormatter(logging.Formatter('{asctime}:{levelname}:{name}:{message}', style='{'))
rlog.addHandler(handler)
#... |
// @flow
import * as React from 'react'
import TextField from '@material-ui/core/TextField'
import createStyled from "material-ui-render-props-styles"
import type { Classes } from "material-ui-render-props-styles"
const styles = {
root: {
padding: 8,
},
labels: {
width: '100%',
},
}
type Props = {
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Logout functionality"""
from mini_project_1.common import ShellArgumentParser
def get_logout_parser() -> ShellArgumentParser:
"""Argparser for the :class:`.shell.MiniProjectShell` ``logout`` command"""
parser = ShellArgumentParser(
prog="logout",
... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.he={dir:'rtl',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'מקור',newPage:'דף חדש',save:'ש... |
//>>built
require({cache:{"url:epi/cms/contentediting/templates/DateTimeNowEditor.html":"<div class=\"dijitInline dijitInputContainer\">\r\n <div data-dojo-type=\"epi.shell.widget.DateTimeSelectorDropDown\" data-dojo-attach-point=\"dateTimeSelector\"></div\r\n ><a class=\"epi-visibleLink\" style=\"padding-left:10... |
import os
import shutil
from os import getenv
from json import loads
from uuid import uuid4
from pytest import mark
from os.path import join
from pathlib import Path
from platform import system
from datetime import datetime
from typing import Optional, Any
from testrail_api import TestRailAPI
from dotenv import load_do... |