text stringlengths 3 1.05M |
|---|
CoolClock.config.skins = {
swissRail: {
outerBorder: { lineWidth: 2, radius: 95, color: "black", alpha: 1 },
smallIndicator: { lineWidth: 2, startAt: 88, endAt: 92, color: "black", alpha: 1 },
largeIndicator: { lineWidth: 4, startAt: 79, endAt: 92, color: "black", alpha: 1 },
hourHand: { line... |
import React, { Component } from 'react';
import {
StyleSheet,
View,
ScrollView,
AppState,
Dimensions,
SafeAreaView,
TouchableOpacity,
} from 'react-native';
import ModalDropdown from 'react-native-modal-dropdown';
import { Button } from 'react-native-elements';
import Svg, {
Polygon,
Ci... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
function expressionSplit(str){
// let regex=/[^\s,;()\.]+/g;
// let result=str.match(regex);
// console.log(result.join('\n'));
let elements=str.split(/[\s.();,]+/);
console.log(elements.join('\n'));
}
expressionSplit('let sum = 4 * 4,b = "wow";');
expressionSplit('let sum = 1 + 2;if(sum > 2){\\tc... |
from django.shortcuts import render
def front_list(request):
return render(request, 'frontend/list.html')
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48fdc5b2"],{1560:function(e,t,a){"use strict";var s=a("d67e"),n=a.n(s);n.a},"1afd":function(e,t,a){"use strict";a("d3b7"),a("96cf");var s=a("1da1"),n=a("671a"),i=10,r=1,o={mixins:[n["a"]],data:function(){return{page:1,datas:[],limit:i,total:r}},methods:{... |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'TeamMember'
db.create_table('sentry_teammember', (
('id', self.gf('sentry.db.models.fi... |
// SERVER-2111 Check that an in memory db name will block creation of a db with a similar but differently cased name.
var dbLowerCase = db.getSisterDB( "dbcase2test_dbnamea" )
var dbUpperCase = db.getSisterDB( "dbcase2test_dbnameA" )
var resultLower = dbLowerCase.c.insert({});
assert.eq(1, resultLower.nInserted);
va... |
{
"metadata" :
{
"formatVersion" : 3.1,
"generatedBy" : "Blender 2.7 Exporter",
"vertices" : 36,
"faces" : 42,
"normals" : 28,
"colors" : 0,
"uvs" : [],
"materials" : 2,
"morphTargets" : 0,
"bones" : 0
},
"scale" : 1.000000,
... |
var searchData=
[
['unit',['Unit',['../classUnit.html',1,'']]]
];
|
const fs = require('fs');
const writeFile = fileContent => {
return new Promise((resolve, reject) => {
fs.writeFile('./dist/index.html', fileContent, err => {
// if there's an error, reject the Promise and send the error to the Promise's `.catch()` method
if (err) {
reject(err);
... |
import gql from 'graphql-tag';
export const UPDATE_PERSON_AFFILIATION = gql`
mutation UpdatePersonAffiliation(
$data: PersonOrganizationAffiliationUpdateInput!
$where: PersonOrganizationAffiliationWhereUniqueInput!
) {
updateAffiliation(where: $where, data: $data) {
__typename
id
from... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export default function ({ loadTestFile }) {
describe('ccs test', function ... |
require('../src/excellent');
describe('positive', () => {
beforeEach(() => {
require('../src/excellent');
excellent.addService('\t\tsrv\r\n', function () {
this.first = function () {
return 'first';
};
this.second = 'second';
});
});
... |
//A "tree" in this case is a recursive plain object
export function mapTree(tree, mapValueFunc = x => x, mapKeyFunc = x => x, path = []){
return Object.fromEntries(Object.entries(tree).map(([key, value]) =>
typeof(value) === "object"
? [mapKeyFunc(key, path, tree), mapTree(value, mapValueFunc, mapKeyFunc, [...pa... |
import { useConfig } from 'base-shell/lib/providers/Config'
import React from 'react'
import MenuProvider from '../../providers/Menu/Provider'
import '../../styles/custom-bootstrap.css';
const LayoutContent = ({ children }) => {
return (
<div
style={{
display: 'flex',
flexDirection: 'column... |
class chessPosition {
constructor(positionArray){
this.positionArray = positionArray;
this.fen.start = "";
for(y of this.positionArray){
let c = 0;
for(x of y){
if(y==""){
c++;
}
else{
if(c>0){
this.fen.start.concat(c.toString()+y);
... |
/**
* PageSpeedInsightsDashboardWidgetHomepageSpeed component.
*
* Site Kit by Google, 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
*
* https://www.a... |
/* eslint-disable */
import simLauncher from '../../joist/js/simLauncher.js';
const image = new Image();
const unlock = simLauncher.createLock( image );
image.onload = unlock;
image.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2IAAAO5CAYAAAB7VpZ+AAAMa2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJCEEghFSuhNEOlFSggt... |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... |
/**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.approval',
name: 'ApprovalRequestNotificationNotificationCitationView',
extends: 'foam.nanos.notification.NotificationCitationView',
requires: [
'foa... |
import React, { Component } from "react";
import { BrowserRouter, Route, Redirect, Switch } from "react-router-dom";
import AuthPage from "./pages/Auth";
import BookingsPage from "./pages/Bookings";
import EventsPage from "./pages/Events";
import MainNavigation from "./components/navigation/MainNavigation";
import Aut... |
"""
Name: Joshua Hickman
Pawprint: hickmanjv
Assignment: Challenge: Lists1
Date: 03/27/20
"""
def display_list(label, items):
""" This function will print the label provided to the function
and then print each item in the list that is provied """
print(label)
#print(*items, sep='\n') needs to be 'for... |
export default class GetDisplayDimensionsRequest {
constructor() {
this.action = "GetDisplayDimensionsRequest";
}
} |
// Task C10
// Create a suitable single SQL instruction that deletes all archived messages over 30 days old.
const deleteOldMessages = `
DELETE FROM Messages
WHERE archive = 1
AND created < (strftime("%s", "now", "-30 days"));
`;
module.exports = { deleteOldMessages }; |
export var DEFAULT_MASK_FORMAT_CHARS = {
'9': /[0-9]/,
a: /[a-zA-Z]/,
'*': /[a-zA-Z0-9]/,
};
/**
* Takes in the mask string and the formatCharacters and returns an array of MaskValues
* Example:
* mask = 'Phone Number: (999) - 9999'
* return = [
* { value: undefined, displayIndex: 16, format: /[0-9]... |
/**
* Copyright 2018 The Subscribe with Google 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
*
* U... |
import { checkHtmlElement } from './utils';
import { printSecSuccess, printSuccess, printSecError, printError } from './printers';
export function toHaveAttribute(util) {
return {
compare: function (htmlElement, name, expectedValue) {
checkHtmlElement(htmlElement);
let result = {};
const isExpectedValuePre... |
import express from 'express'
import expressGraphql from 'express-graphql'
import Schema from './schema.js'
var app = express()
app.use('/graphql', expressGraphql({
schema: Schema,
graphiql: true
}))
app.get('/', function (req, res) {
res.send('<a href="https://github.com/matjaz/kam-jest">kam-jest</a>')
})
c... |
const {uniq} = require("lodash");
const getTypes = require("./methods/get-types");
const getGroupsByType = require("./methods/get-groups-by-type");
const getComponentsByTypeAndGroup = require("./methods/get-components-by-type-and-group");
const {ComponentCollection} = require("@frctl/support");
module.exports = functi... |
#
# This source file is part of the EdgeDB open source project.
#
# Copyright 2019-present MagicStack Inc. and the EdgeDB 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... |
#!/usr/bin/env python3
import struct
import traceback
from typing import Any
from tqdm import tqdm
import panda.python.uds as uds
from cereal import car
from selfdrive.car.fingerprints import FW_VERSIONS, get_attr_from_cars
from selfdrive.car.isotp_parallel_query import IsoTpParallelQuery
from selfdrive.car.toyota.va... |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# import torch
# import torch.nn as nn
# import torch.nn.functional as F
import paddle
import paddle.nn as nn
import paddle.nn.functional as F
from Face_Enhancement.models.networks.base_network import BaseNetwork
from Face_Enhancement.models.netw... |
class Paciente {
constructor(nome, peso, altura, gordura) {
this._nome = nome;
this._peso = peso;
this._altura = altura;
this._gordura = gordura;
}
get nome() {
return this._nome
}
get peso() {
return this._peso
}
get altura() {
retu... |
# Copyright 2020 - 2021 MONAI Consortium
# 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 wri... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{w2l6:function(t,e,n){"use strict";n.r(e),n.d(e,"pageQuery",(function(){return c}));var r=n("q1tI"),a=n.n(r),o=n("Bl7J"),i=n("vrFN");var s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e... |
from django import forms
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from plata.discount import models
from plata.utils import jsonize
class DiscountAdminForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(DiscountAdminForm, self).__init__(*args,... |
# Copyright (c) 2015, MapR Technologies
#
# 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... |
import asyncio
from pathlib import Path
import HABApp.config
import HABApp.core
import HABApp.mqtt.mqtt_connection
import HABApp.parameters.parameter_files
import HABApp.rule_manager
import HABApp.util
import eascheduler
from HABApp.core.wrapper import process_exception
from HABApp.openhab import connection_logic as o... |
'use strict';
angular.module('comments').controller('CommentsController', ['$scope', '$http', '$resource', 'Comments', 'FetchComments', 'Socket', 'utils', 'Authentication',
function($scope, $http, $resource, Comments, FetchComments, Socket, utils, Authentication) {
$scope.authentication = Authentication;
$sc... |
import { getToken, setToken, removeToken } from '@/utils/token'
import { login, getInfo } from '@api/user.js'
const getDefaultState = () => {
return {
token: getToken(),
name: '',
avatar: ''
}
}
const state = getDefaultState()
const getters = {
token: (state) => state.token,
n... |
module.exports = function(config) {
config.set({
files: [
'node_modules/bluebird/js/browser/bluebird.js',
'tests/specs/**/*.ts'
],
preprocessors: {
'tests/specs/**/*.ts': ['webpack']
},
webpack: {
devtool: "source-map",
... |
/**
* Copyright 2016, GeoSolutions Sas.
* 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.
*/
// Disable ESLint because some of the names to include are not in camel case
/*eslint-disable */
// include base sch... |
module.exports={A:{A:{"2":"H D G E A B mB"},B:{"1":"f L N I J q","2":"C K"},C:{"1":"0 1 2 3 4 5 6 8 j k l m n o p M r s t u v w x y z EB MB DB BB FB HB IB JB KB LB","2":"jB NB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i dB cB"},D:{"1":"0 1 2 3 4 5 6 8 g h i j k l m n o p M r s t u v w x y z E... |
import reactize from './reactize.js';
import Label from '../src/ext-label.component.js';
export default reactize(Label);
|
// Copyright 2016 Erik Neumann. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
export { default as App } from './App';
export { default as AppRouter } from './AppRouter';
export { default as Spinner } from './Spinner';
export { default as Table } from './Table';
export { default as Header } from './Header';
export { default as Tabs } from './Tabs';
export { default as Container } from './Containe... |
from typing import List, Tuple
from collections import defaultdict
class TrieNode:
def __init__(self, char: str):
self.char = char
self.children = defaultdict()
# Is it the last character of the word.`
self.is_leaf = False
# How many times this character appeared in the add... |
import { mustBeString } from '../checks/mustBeString';
/**
* @hidden
*/
export function cannotAssignTypeToProperty(type, name) {
mustBeString('type', type);
mustBeString('name', name);
var message = {
get message() {
return "Cannot assign type `" + type + "` to property `" + name + "`.... |
const chalk = require('chalk')
/* programmatically generate CLI prompts */
module.exports = function generatePrompts(settings) {
const { config, configValues } = settings
const configItems = Object.keys(config)
const prompts = configItems.map((key, i) => {
const setting = config[key]
// const { type, di... |
// 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/Chart/nls/strings":{_widgetLabel:"Grafikon",executeChartTip:"Kliknite na jedan od sle... |
'use strict'
const utp = require('utp-native')
const toPull = require('stream-to-pull-stream')
const toIterable = require('stream-to-it')
const mafmt = require('mafmt')
const withIs = require('class-is')
const includes = require('lodash.includes')
const isFunction = require('lodash.isfunction')
const Connection = requ... |
"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.ZoomOut = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "current... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _raf = require('raf');
var _raf2 = _interopRequireDefault(_raf);
var _vueTypes = require('../_util/vue-types');
var _vueT... |
from django.contrib.admindocs import views
from django.db.models import fields as builtin_fields
from django.utils import unittest
import fields
class TestFieldType(unittest.TestCase):
def setUp(self):
pass
def test_field_name(self):
self.assertRaises(AttributeError,
views.get_re... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./registration"));
__export(require("./token"));
|
from django.contrib import admin
from .models import Contact
# Register your models here.
admin.site.register(Contact)
|
"""
Representation of a generic Docker container
"""
import logging
import tarfile
import tempfile
import docker
from samcli.local.docker.attach_api import attach
from .utils import to_posix_path
LOG = logging.getLogger(__name__)
class Container(object):
"""
Represents an instance of a Docker container wi... |
declare module "uploadcare" {
import type { ReadStream } from "fs";
declare interface Uploadcare$File {
original_file_url: string;
image_info: Uploadcare$ImageInfo;
mime_type: string;
is_ready: boolean;
url: string;
uuid: string;
original_filename: string;
datetime_uploaded: string;... |
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "mdcs",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"semi": [ "error", "always" ],
"quotes": [ "error", "double" ]
}
}; |
module.exports = function(grunt) {
var banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - \n' +
' (c) <%= pkg.author %> - \n'+
' <%= pkg.repository.url %> - \n' +
' <%= grunt.template.today("yyyy-mm-dd") %> */\n',
minBanner = banner.replace(/\n/g, '') + '\n';
// Project configuration.
grunt.in... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... |
import moment from 'moment';
import uniqWith from 'lodash.uniqwith';
function hotTrackSort(a, b) {
// we multiply likes by 100, so that our index is a larger number
// we add 1 to the playback count to avoid division by 0
if (((a.likes_count + 1) * 100 / (a.playback_count + 1)) < ((b.likes_count + 1) * 100 / (b... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export class Message {
constructor(nodes, placeholders, meaning, description) {
this.nodes = nodes;
... |
import withProtocol from './withProtocol';
export default link => `<a href="${withProtocol(link)}">${link}</a>`;
|
/* eslint-disable */
import { mount } from 'react-mounter';
import React from 'react';
import Home from '../imports/ui/components/Home.jsx';
import Unit from '../imports/ui/components/Dashboard/Unit.jsx';
import AutoSync from '../imports/ui/components/Sync/AutoSync.jsx';
import ManageUnits from '../imports/ui/component... |
module.exports = function ({ $lookup }) {
return {
object: function () {
return function (object, $step = 0) {
let $_, $bite
return function $serialize ($buffer, $start, $end) {
switch ($step) {
case 0:
... |
/*
* Modules
*/
var expect = require('chai').expect;
var assert = require('chai').assert;
module.exports = function() {
var Given = When = Then = this.defineStep;
/**
* Given an operation with Id {operationId}
*/
Given(/ operation with Id "([^"]*)"$/, function (operationId, cb) {
/*
* get the API ... |
// TODO scrap immutable.
import { fromJS, Map } from 'immutable';
import { handleActions } from 'redux-actions';
import { ITEM_SOLD, NEW_BID, SET_STATE } from '../actions';
import hydrateMap from '../utils/hydrateMap';
let initialState = Map({});
const reducer = handleActions({
// FIXME -- This is getting update... |
const chai = require('chai');
const expect = chai.expect;
const sinon = require('sinon');
chai.use(require('sinon-chai'));
const { command, describe: desc, builder, handler } = require('../../../lib/cmds/remove_cmds/namespace');
const RancherNamespaceUtils = require('../../../lib/rancher/namespace');
let sandbox, yar... |
;var tamer={curT:-1,curC:-1,curU:-1,popObjs:{},loading:!1,logout:function(){var i=document.cookie.split(";");for(var e=0;e<i.length;e++){var t=i[e],a=t.indexOf("="),r=a>-1?t.substr(0,a):t;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}},updateAllEvents:function(){taFormer.applySubmitCheck();tamer.searchPop... |
const { DataTypes } = require('sequelize');
const db = require('../db');
const Friendship = db.define('friendship', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true,
},
requestStatus: {
type: DataTypes.ENUM(['pending', 'approved']),
defaultValue: 'pending',
},
... |
import Icon from '../components/Icon.vue'
Icon.register({"volume-control-phone":{"width":1408,"height":1792,"paths":[{"d":"M617 1689q0-11-13-58t-31-107-20-69q-1-4-5-26.5t-8.5-36-13.5-21.5q-15-14-51-14-23 0-70 5.5t-71 5.5q-34 0-47-11-6-5-11-15.5t-7.5-20-6.5-24-5-18.5q-37-128-37-255t37-255q1-4 5-18.5t6.5-24 7.5-20 11-15... |
/*!
* Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
var e,t;e=this,t=function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"... |
import Vue from 'vue'
export const store = Vue.observable({
isOpenedSideNav: false
})
export const mutations = {
toggleSideNav() {
store.isOpenedSideNav = !store.isOpenedSideNav
}
}
|
/*
* monitoring
* <br/>https://ncloud.apigw.ntruss.com/monitoring/v2
*
* NBP corp.
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
(function(root, factory) {
if (typeof define === 'function' && def... |
import { nanoid } from 'nanoid';
// HEAD DATA
export const headData = {
title: '', // e.g: 'Name | Developer'
lang: '', // e.g: en, es, fr, jp
description: '', // e.g: Welcome to my website
};
// HERO DATA
export const heroData = {
title: '',
name: '',
subtitle: '',
cta: '',
};
// ABOUT DATA
export con... |
""" StatsInfoWindow Class """
import tkinter
from kalmus.tkinter_windows.gui_utils import get_comparison_result_text, resource_path
class StatsInfoWindow():
"""
StatsInfoWindow Class
Show the similarity scores between two barcodes using all comparing metrics
The score are shown in text panel
"""... |
import {getNextId, deleteBee} from "../config/game.config";
import Bezier from "../utils/bezier";
import { Base } from "./base";
class Bullet extends Base {
/**
*
* @param {*} target 目标
* @param {*} x 横坐标
* @param {*} y 纵坐标
* @param {boolean} 是否为蜜蜂
*/
constructor(target, x, y, is... |
/* eslint-disable */
// rename this file from _test_[name] to test_[name] to activate
// and remove above this line
QUnit.test("test: Rades Configuration", function (assert) {
let done = assert.async();
// number of asserts
assert.expect(1);
frappe.run_serially([
// insert a new Rades Configuration
() => fra... |
/*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
from .campaigns import Campaigns
from .brands import Brands
from .landing_page_asins import PageAsins
from .ad_groups import AdGroups
from .moderation import Moderation
from .keywords import Keywords
from .recommendations import Recommendations
from .keywords_recommendations import KeywordsRecommendations
from .forecas... |
import json
class vocabulary(object):
def __init__(self,opt):
assert opt.data_json
with open(opt.data_json) as f:
json_out = json.load(f)
self.ix_to_word = json_out['ix_to_word']
self.start_id = len(self.ix_to_word)+1
self.end_id = len(self.ix_to_wor... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.20/15.4.4.20-2-12.js
* @description Array.prototype.filter - 'length' is own accessor property without a get function that overrides an inherited accessor property
*/
function testcase() {
var accessed = ... |
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Crop = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="non... |
const groupMessagesPerPartition = require('./groupMessagesPerPartition')
const { createModPartitioner } = require('testHelpers')
describe('Producer > groupMessagesPerPartition', () => {
let topic, partitionMetadata, messages, partitioner
beforeEach(() => {
topic = 'test-topic'
partitionMetadata = [
... |
!function(e){function t(t){for(var r,a,f=t[0],u=t[1],i=t[2],l=0,p=[];l<f.length;l++)a=f[l],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(s&&s(t);p.length;)p.shift()();return c.push.apply(c,i||[]),n()}function n(){for(var e,t... |
'use strict';
// var nock = require('nock');
const {
describe,
it,
beforeEach,
afterEach,
} = require('mocha');
const { expect } = require('chai');
const sinon = require('sinon');
const OAuthClientTest = require('../src/OAuthClient');
const AuthResponse = require('../src/response/AuthResponse');
const expecte... |
"use strict";
const ViewAll = require("../test/ViewAll");
describe("ViewAll", () => {
describe("Initialization", () => {
it("should create an object with a title", () => {
const viewAll = new ViewAll(
"Toast",
["bread", "butter", "jam", "peanut butter"],
"breakfast",
4
... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 28, height: 28, viewBox: "0 0 28 28", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
module.exports.run = async (client, message) => {
if (!message.member.voice.channel) return message.error(message.lang.music.notInVoice, message, client);
if (message.guild.me.voice.channel && message.member.voice.channel.id !== message.guild.me.voice.channel.id) return message.error(message.lang.music.notB... |
const needle = require("needle");
needle.get(
"http://www.mocky.io/v2/5e461c523300003800025f0e",
{ json: true },
(err, res) => {
if (err) {
return console.log(err);
}
let r = res.body;
console.log(r.count);
}
);
|
###############################################################
# INSTRUCTOR NOTE:
# To demonstrate or test this program, hard-code your
# Webex and MapQuest keys in steps 2 and 6.
###############################################################
# This program:
# - Asks the user to enter an access token or use the har... |
export * from './storage';
export * from './url';
export * from './metrics';
|
function ArrowForwardIcon(props) {
return (
<svg
className={props.className}
width={props.width || "18"}
height={props.height || "18"}
style={{ transform: "rotate(180deg)" }}
viewBox="0 0 14 14"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M... |
const CustomError = require("../extensions/custom-error");
module.exports = function calculateHanoi(disksNumber, turnsSpeed) {
let turnsPerSecond = turnsSpeed / (60 * 60);
let turnsNeeded = Math.pow(2, disksNumber) - 1;
let result = Math.floor(turnsNeeded/ turnsPerSecond);
return {turns: turnsNeeded, seconds: ... |
require('./angular-locale_es-br');
module.exports = 'ngLocale';
|
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Audio.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from ... |
'use strict';
module.exports = {
set: function (v) {
this.setProperty('counter-increment', v);
},
get: function () {
return this.getPropertyValue('counter-increment');
},
enumerable: true
};
|