text stringlengths 3 1.05M |
|---|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[34],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/video/VideoChat.vue?vue&type=script&lang=js&":
/*!******************************************************************************************... |
import PyPDF2
import re
import os
from multiprocessing import Pool
example = '/home/joe/PycharmProjects/PDFsearch'
def find_pdfs(directory):
pdfs = []
for foldername, subfolder, files in os.walk(directory):
for file in files:
if '.pdf' in file:
pdfs.append(foldername + '/' ... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import {
Row,
Col,
Table,
Badge,
Breadcrumb,
BreadcrumbItem,
Button,
} from 'reactstrap';
import moment from 'moment';
import axios from 'axios';
import Widget from '../../components... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3f65"],{"+Lc1":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),r.d(t,"a",function(){return l}),r.d(t,"e",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"d",function(){return u});var i=r("t3Un"),n=r("Qyje"),o=r.n(n);function a(e){retur... |
"""
Continuous Random Variables - Prebuilt variables
Contains
========
Arcsin
Benini
Beta
BetaNoncentral
BetaPrime
Cauchy
Chi
ChiNoncentral
ChiSquared
Dagum
Erlang
ExGaussian
Exponential
ExponentialPower
FDistribution
FisherZ
Frechet
Gamma
GammaInverse
Gumbel
Gompertz
Kumaraswamy
Laplace
Levy
Logistic
LogLogistic
LogN... |
module.exports = class SlashCommand {
constructor(info) {
this.name = info.name;
}
};
|
const fs = require("fs");
const files = {};
files.isFileExist = async filePath => fs.existsSync(filePath);
files.readFile = async fileName => fs.readFileSync(fileName, "utf-8");
files.isJSONContent = async fileContent => {
try {
JSON.parse(fileContent);
return true;
} catch (ex) {
return false;
}
}... |
import { toFixed } from 'common/math';
import { useBackend } from '../backend';
import { AnimatedNumber, Button, LabeledList, NumberInput, Section } from '../components';
import { Window } from '../layouts';
export const ThermoMachine = (props, context) => {
const { act, data } = useBackend(context);
return (
... |
import { UPDATE_MEAL_SUGGESTIONS } from '../actionTypes';
const initialState = {
mealSuggestionList: [],
};
export function mealSuggestionsReducer(state = initialState, action) {
switch (action.type) {
case UPDATE_MEAL_SUGGESTIONS: {
const { newMealSuggestions } = action.payload;
const newMealSugg... |
import { Symbol } from '../classes'
import objectProperties from './objectProperties'
describe('objectProperties', () => {
test('returns an Array of Strings for an Object', () => {
expect(
objectProperties({
bim: 'bop',
foo: 'bar'
})
).toEqual(['bim', 'foo'])
})
test('returns... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Component({
behaviors: [],
properties: {
isShow: {
type: Boolean,
value: false,
observer: function observer(isShow) {
if (isShow) {
if (!getApp().globalData) {
Object... |
import axios from 'axios'
import store from './index'
import {addOrderId} from './user'
import {
addEachItem,
removeGuestItem,
guestItemToAdd,
getGuestCart,
userItemToAdd,
resetGuestCart
} from './cartFunctions'
const initialState = []
const ADD_TO_CART = 'ADD_TO_CART'
const REMOVE_FROM_CART = 'REMOVE_FRO... |
"use strict";
exports.__esModule = true;
var _iterator = require("../core-js/symbol/iterator");
var _iterator2 = _interopRequireDefault(_iterator);
var _symbol = require("../core-js/symbol");
var _symbol2 = _interopRequireDefault(_symbol);
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.... |
# -*- coding: utf-8 -*-
#错误处理
from flask import render_template
from sayhello import app
@app.errorhandler(404)
def page_not_found(e):
return render_template('errors/404.html'), 404
@app.errorhandler(500)
def internal_server_error(e):
return render_template('errors/500.html'), 500
|
from turtle import Screen
from snake import Snake
from food import Food
from scoreboard import Scoreboard
import time
screen = Screen()
screen.setup(width=600, height=600)
screen.bgcolor("black")
screen.title("My Snake Game")
screen.tracer(0)
snake = Snake()
food = Food()
score = Scoreboard()
screen.listen()
screen.... |
import { WIDGETS_TO_API_TYPE_ENUM } from 'pages/widgetConfig/config/widget';
export const FILTER_TYPE = {
PERSONAL: 1,
PUBLIC: 2,
TEMP: 3,
};
export const FILTER_RELATION_TYPE = {
AND: 1,
OR: 2,
};
export const FILTER_CONDITION_TYPE = {
DEFAULT: 0,
LIKE: 1, // 包含
EQ: 2, // 是(等于)
START: 3, // 开头为
... |
import csvmapper
csv_file = 'simple_record.csv'
mapper = csvmapper.XMLMapper('simple_mapper.xml')
parser = csvmapper.CSVParser(csv_file, mapper)
items = parser.buildObject()
for item in items:
print '{ Name:%s, Job:%s, Age:%d }' %(item.Name, item.Job, item.Age)
# ^^ Note %d is used for age |
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{140:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=(a(144),a(148)),s=a(152),i=a(146),o=(a(170),a(157));t.default=function(){return r.a.createElement(l.a,null,r.a.createElement(s.a,{title:"About"}),r.a.createElement(i.a,{menuLinkFirst:"menuLink--Unselec... |
"use strict";
var simple = require("./util.js").simple,
nested = require("./util.js").nested;
describe(":ie8910", () => {
it("should transform :ie8910(...) into an ie8910 hack (single selector)", () =>
simple(`
:ie8910(.fooga) {
color: red;
}
`)
);
... |
var map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
layers: [
new OpenLayers.Layer.XYZ(
"Imagery",
[
"http://oatile1.mqcdn.com/naip/${z}/${x}/${y}.png",
"http://oatile2.mqcdn.com/naip/${z}/${x}/${y}.png",
"http... |
// Copyright 2021 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 agreed to in ... |
/* eslint-env node */
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'dummy',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-contro... |
'use strict';
const Action = require('./Action');
class MessageUpdateAction extends Action {
handle(data) {
const client = this.client;
const channel = client.channels.get(data.channel_id);
if (channel) {
const message = channel.messages.get(data.id);
if (message) {
message.patch(da... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var ScrollLock = {};
exports['default'] = ScrollLock;
|
#!/usr/bin/env python
# encoding: utf-8
import pkg_resources
dist = pkg_resources.get_distribution('jrnl')
__title__ = dist.project_name
__version__ = dist.version
|
import React, { Component } from 'react';
import {
SafeAreaView,
StyleSheet,
Linking,
View,
Text,
TouchableOpacity,
Dimensions,
Image,
ScrollView,
BackHandler,
} from 'react-native';
import {
Menu,
MenuOptions,
MenuOption,
MenuTrigger,
} from 'react-native-popup-menu';
import Colors from '..... |
/*
* css.normalize.js
*
* CSS Normalization
*
* CSS paths are normalized based on an optional basePath and the RequireJS config
*
* Usage:
* normalize(css, fromBasePath, toBasePath);
*
* css: the stylesheet content to normalize
* fromBasePath: the absolute base path of the css relative to any root (but wit... |
// base class for many tests of the "POST /users" requests
'use strict';
const Aggregation = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/aggregation');
const Assert = require('assert');
const CodeStreamAPITest = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/test_base/codestream_api_test... |
(hint=>hint())(()=>{
return (CodeMirror,Reader) => {
CodeMirror.defineMode('commands', function (config) {
var parser = (0, Reader.onlineParser)({
eatWhitespace: function eatWhitespace(stream) {
return stream.eatWhile(Reader.isIgnored);
},
lexRules: Reader.LexRules,
parseRules: Reader.ParseRu... |
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
In this example, we position two push
buttons in the bottom-right corner
of the window.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
import sys
from PyQt5.QtWidgets import (QWidget, QPushButton,
QHBoxLayout, QVBoxLay... |
// unquoted attributes should be ok in non-strict mode
// https://github.com/isaacs/sax-js/issues/31
require(__dirname).test
( { xml :
"<span class=test hello=world></span>"
, expect :
[ [ "attribute", { name: "class", value: "test" } ]
, [ "attribute", { name: "hello", value: "world" } ]... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var source = require('./faXmark');
exports.definition = {
prefix: source.prefix,
iconName: source.iconName,
icon: [
source.width,
source.height,
source.aliases,
source.unicode,
source.svgPathData
]};
exports.faRemo... |
/**
* Copyright 2012-2016, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var tinycolor = require('tinycolor2');
var Plotly = require('../../plotly');
var Plots... |
import os
import pathlib
from ixtlilton_tools._private_tools.exceptions import UserDoesNotExist
def make(username):
from ixtlilton_tools.admin.user import exists as user_exists
from ixtlilton_tools.admin.directory.user.home.local.man import exists as man_exists
from ixtlilton_tools.admin.directory.user.ho... |
function Employee(employee) {
this.firstName = employee.firstName;
this.lastName = employee.lastName;
this.role = employee.role;
this.id = employee.id;
this.email = employee.email;
this.detail = employee.detail;
}
module.exports = Employee; |
import { Home } from "../components";
export default [
{
path: "/",
component: Home,
name: "home",
meta: {
guest: false,
authenticated: false
}
},
]
|
(function() {
'use strict';
angular
.module('app.core')
.factory('dataservice', dataservice);
dataservice.$inject = ['$http', '$q', 'exception', 'logger'];
/* @ngInject */
function dataservice($http, $q, exception, logger) {
var service = {
getPeople: getPeople,
getMessageCount: getM... |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_coreui_src_views_pages_register_Register_js"],{
/***/ "./node_modules/@coreui/icons-react/dist/index.es.js":
/*!***********************************************************!*\
!*** ./node_modules/@coreui/icons-react/dist/index.es.js *... |
import django_tables2 as tables
from django_tables2.utils import A
from django.utils.safestring import mark_safe
from utilities.tables import (
BaseTable,
BooleanColumn,
ToggleColumn,
)
from .models import Settings
class MaskedPassword(tables.Column):
def render(self, value):
value = "*****"
... |
from math import pi
import numpy as np
import uwds3_msgs
from .shape import Shape, ShapeType
from ..vector.vector6d import Vector6D
class Mesh(Shape):
"""Represents a 3D Mesh"""
def __init__(self, mesh_resource,
scale_x=1., scale_y=1., scale_z=1.,
x=.0, y=.0, z=.0,
... |
module.exports = function(sails) {
/**
* Module dependencies
*/
var path = require('path');
var fs = require('fs');
var async = require('async');
var _ = require('@sailshq/lodash');
var includeAll = require('include-all');
var mergeDictionaries = require('merge-dictionaries');
var COMMON_JS_FILE_... |
import numpy as np
from .abstruct import CODE
from ..util import *
class SC(CODE):
"""
Stabilizer Code:
"""
NAME = "stabilizer code"
USAGE = 'The argments for class of stabilizer code\'s are the codeword length "n" and information length "k".'
def __init__(
self,
n,
k... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/base/Log","sap/ui/core/format/NumberFormat","sap/ui/model/FormatException","sap/ui/model/ParseException","sap/ui/model/ValidateException","sap/ui/mod... |
'use strict';
/**
* Random crap scrambler.
*/
const Wordscramble = function() {};
/**
* Return a random value up to max.
*
* @private
* @param {number} max - Maximum value.
* @returns {number} - Random number.
*/
function random(max) {
return Math.floor(Math.random() * max);
}
/**
* Crude variable typ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
module.exports = {
globals: {
"ts-jest": {
"tsconfig": "./tsconfig.jest.json",
"babelConfig": true,
"dia... |
from rest_framework import viewsets, mixins
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from core.models... |
const mark = new Array(24); // 24개의 달걀에 대해 강아지가 숨은 경우 true(8개), 나머지는 false
let timerID=null; // 타이머 ID
const NOOFANSWER=8 // 숨은 그림의 개수
const MAXTRY=5; // 허용되는 실패 개수
const FINDINGSECONDS=20; // 정답을 찾는데 허용된 시간(20초)
const THINKSECONDS=10; // 기억하도록 허용된 시간(10초)
let restNum; // 찾아야 할 잔여 정답 개수
let fai... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var bignumber_js_1 = __importDefault(require("bignumber.js"));
exports.digits = new bignumber_js_1.defau... |
// @ts-check
const path = require("path");
const { tests } = require("@iobroker/testing");
const adapterDir = path.join(__dirname, "..");
// Run tests
// Run unit tests - See https://github.com/ioBroker/testing for a detailed explanation and further options
tests.unit(adapterDir, {});
|
import os
import sys
import numpy as np
from nose.tools import ok_, eq_, raises, assert_raises
from nose.plugins.attrib import attr
from numpy.testing.decorators import skipif
import dicom
import nibabel
testdat_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
import nimsdata
class Test_NIM... |
# coding=utf-8
"""
Support for ANSI escape sequences which are used for things like applying style to text,
setting the window title, and asynchronous alerts.
"""
import functools
import re
from enum import (
Enum,
)
from typing import (
IO,
Any,
List,
Optional,
cast,
)
from wcwidth import ( ... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 without restriction, including
// without limitation the rights to use, copy, modi... |
const express = require('express'),
path = require('path'),
http = require('http'),
app = express(),
server = http.createServer(app),
compression = require('compression'),
port = process.env.PORT || 3000;
if(process.env.NODE_ENV === "production") {
app.use(compression());
}
app.use(express.static(path.r... |
const http = require("http");
console.log(http.METHODS);
console.log(http.STATUS_CODES);
console.log(http.globalAgent);
|
from time import sleep
from queue import Queue
from .scraper import Scraper
from .bad_proxies import BadProxies
class ProxyManager(object):
def __init__(self):
self.is_alive = True
self.proxies = Queue()
self.scraper = Scraper()
self.bad_proxies = BadProxies()
def collect(sel... |
#!/usr/bin/env python
# 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
# "Li... |
var gulp = require('gulp');
var fs = require('fs');
fs.readdirSync(__dirname + '/gulp').forEach(function(task) {
require('./gulp/' + task);
});
gulp.task('build', ['js', 'css']);
gulp.task('watch', ['watch:js', 'watch:css']);
gulp.task('dev', ['watch', 'dev:server']); |
#!/usr/bin/env python
# /***************************************************************************
#
# @package: franka_tools
# @metapackage: franka_ros_interface
# @author: Saif Sidhik <sxs1412@bham.ac.uk>
#
# **************************************************************************/
# /**********************... |
"""Implementation of SVG-0 Algorithm."""
from itertools import chain
import torch.nn.modules.loss as loss
from torch.optim import Adam
from rllib.algorithms.svg0 import SVG0
from rllib.policy import NNPolicy
from rllib.value_function import NNEnsembleQFunction
from .off_policy_agent import OffPolicyAgent
class SVG... |
const colors = require('tailwindcss/colors')
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
montserrat: ['Montserrat', 'sans-serif'],
},
colors: {
white: colors.white,
black: colors.black,
gray: '#dbdcf2',
light: '#2b2a65',... |
/* istanbul instrument in package npmtest_grunt_assets_versioning */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - pre-init
(funct... |
utools.onPluginEnter(({ code, type, payload }) => {
if (code === 'settings') {
console.log("Settings");
window.vue._data.dialogVisible = true
} else {
window.vue._data.dialogVisible = false
}
})
// utools.onPluginOut(() => {
// console.log('用户退出插件')
// })
var path = __dirname... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _Tag = _interopRequireDefault(require("./Tag"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": ... |
export default from '../../content/components/slider';
|
'use strict';
var path = require('path'),
fs = require('fs'),
exec = require('child_process').exec,
Installer = require('../lib/installer'),
meta = {
repo: 'dim/event',
version: '0.1.0',
dependencies: {
'dim/type': '0.1.0',
'dim/each': '0.1.0',
... |
import json
import requests
class sokt:
def __init__(self,auth) :
self.baseUrl = "https://sokt.io"
self.authkey = auth
self.headers = {
'authkey': auth,
'content-type': "application/json"
}
def flowURLBuilder(self,flow_id) :
return self.baseUrl + '/' +str(flow_id)
def invoke(self,flow_id,ar... |
import * as helpers from '../../helpers'
var spotifyActions = require('../../services/spotify/actions')
var mopidyActions = require('../../services/mopidy/actions')
export function getBroadcasts(){
return (dispatch, getState) => {
var config = {
method: 'GET',
timeout: 150... |
import React from 'react';
import renderer from 'react-test-renderer';
import PersonInfoRow from './PersonInfoRow';
/**********************************************************/
describe('PersonInfoRow component', () => {
test('renders', () => {
const tree = renderer.create(<PersonInfoRow />).toJSON();
... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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/LICENS... |
# coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.goal.task_registrar import TaskRegistrar as task
from pants.build_graph.build_file_aliases import BuildFileAliases
from squarepants.plugins.ruby.targets.ruby_spe... |
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return ... |
"""As an open source project, we collect usage statistics to inform development priorities.
For more information, check out the docs at https://docs.dagster.io/install#telemetry'
To see the logs we send, inspect $DAGSTER_HOME/logs/ if $DAGSTER_HOME is set or ~/.dagster/logs/
See class TelemetryEntry for logged fields... |
import React from "react";
import { withRouter } from "react-router-dom";
const brandTitle = process.env.brandTitle;
const DocHeading = ({ location }) => {
const title = location.pathname.split("/").filter(str => str.length)
.pop()
.split("-")
.map((word, i) => i > 0 ? word : word.charAt(0... |
/** @flow */
import {
INITIALIZE_RESOURCES,
RECEIVE_RESULT,
SEARCH
} from './constants'
/**
* The user must add this reducer to their app store/tree.
* By default it is assumed that this reducer will be added at :search.
* If you use another location you must pass a custom :searchStateSelector to reduxSearch(... |
var webpack = require('webpack');
module.exports = {
optimization: {
runtimeChunk: false
}
};
|
#!/usr/bin/env python2
# This work is licensed under the terms of the MIT license. See LICENSE for the full text.
import os
import sys
import inspect
import json
path_to_this_module = os.path.abspath( os.path.dirname( inspect.getsourcefile(sys.modules[__name__]) ) )
settings_json = 'settings.json'
def get_dict():
... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import _NProgress from 'nprogress';
/** Статусбар для запросов к апи */
/**
* @augments NProgress
*/
class NProgressStack {
static get defaults () {
return {
latencyThreshold: 100,
speed: 500,
easing: 'ease-out',
showSpinner: false
};
};
constructor (opts = {}) {
opts = Ob... |
// @ts-check
const { readFile } = require('fs').promises
const { dirname, extname, join, resolve } = require('path')
const { platform } = require('process')
const findUp = require('find-up')
const toml = require('toml')
const isWindows = platform === 'win32'
const { execa } = require('../../../../utils')
const { get... |
import id_feature as idf
class BasicFeatures(idf.IDFeatures):
def __init__(self,dataset):
idf.IDFeatures.__init__(self,dataset)
# def add_next_word_context_feature(self,next_word,tag,idx):
# feat = "next_word:%s::%s"%(next_word,tag)
# nr_feat = self.add_feature(feat)
# ... |
/*!
* jQuery backTotop plugin v1.0
*
* Date: Sat Oct 13 17:17:47 2012 EDT
* Requires: jQuery v1.3+
*
* Copyright 2013, Siddhartha Gudipati
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*
* Examples can be found a... |
/* globals BigInteger */
/**
* Internet Protocol address operations.
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2016
* @license Apache-2.0
*
* @namespace
*/
var IP = {
/**
* @constant
* @default
*/
INCLUDE_NETWORK_INFO: true,
/**
* @constant
* @... |
#!/usr/bin/env nodejs
"use strict";
const ts = require("typescript");
function print(x) { console.log(x); }
let removableLexicalKinds = [
ts.SyntaxKind.EndOfFileToken,
ts.SyntaxKind.NewLineTrivia,
ts.SyntaxKind.WhitespaceTrivia
];
module.exports = {
'is_encrypted': is_encrypted,
'treeToJson': treeToJson,
'num... |
// forEach
if (!Array.prototype.forEach) {
Array.prototype.forEach = function (block, thisObject) {
var len = this.length >>> 0;
for (var i = 0; i < len; i++) {
if (i in this) {
block.call(thisObject, this[i], i, this);
}
}
};
}
// map
// https://developer.mozilla.org/en/Core_JavaS... |
from pyobjus import autoclass, dereference, objc_py_types as opy, ObjcSelector
from pyobjus.dylib_manager import load_dylib
load_dylib('testlib.dylib', usr_path=False)
NSString = autoclass('NSString')
NSValue = autoclass('NSValue')
# this is class defined in user dynamic lib (objc_test/testlib.m)
Car = autoclass('Car'... |
describe("(new Gui()).addVoiceInput(VoiceInput)", function() {
it("inserts a text input before the Add Voice button.", function() {
var gui = new Gui();
var voiceInput = gui.VoiceInput();
gui.addVoiceInput(voiceInput);
var buttonElement = gui.addVoiceButton.element;
var buttonIndex = Array.pr... |
import React from 'react';
const VideoDetail = ({video}) => {
if (!video){
return <div>Loading...</div>
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsi... |
(function (factory) {
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(function () { 'use strict';
global.aa = 'aa';
global.bb = 'bb';
global.cc = 'cc';
global.ee = 'ee';
global.dd = 'dd';
}));
|
import cores
def menu():
print(cores.fundo_verde,'-=' * 15, cores.parar_cor)
print('\n \033[3;30;47mFarmVille\033[m\n')
print(cores.fundo_verde, '-='* 15, cores.parar_cor, '\n')
def limpar_tela():
import os
os.system('cls') |
#!/usr/bin/env python
# TODO add onos-app-fwd to features
# TODO check if service is running... i think this might already be done by mn
from mininet.node import Controller, OVSSwitch, CPULimitedHost, RemoteController
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.topo import LinearTopo, Top... |
const formatUtil = require('../../../src/helpers/formatUtil')
const testSetup = require('../../helpers/testSetup')
testSetup()
.then(run)
.catch(console.error)
// NETWORK=rinkeby node tests/playground/DxPriceOracleRepo/getPrice.js
async function run ({ dxPriceOracle }) {
const price = await dxPriceOracle.getPr... |
// 代码中会兼容本地 service mock 以及部署站点的静态数据
export default {
// 支持值为 Object 和 Array
// 'GET /api/currentUser': {
// name: 'Serati Ma',
// avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
// userid: '00000001',
// email: 'antdesign@alipay.com',
// signature: '海纳... |
"""
Code to include bioenergy to generation projects info
"""
import os
import sys
import json
import random
import pandas as pd
random.seed(3)
data_path = '../data/interim/'
filename = 'bioenergy_low.csv'
clean_path = '../data/clean/bioenergy/'
plant_type = {
'residuos_urbanos': 'natural_gas',
'residuos_indus... |
$(function(){
allHome();
allHome(2);
allHome(3);
});
function allHome(id){
id = id || "";
var cf = {
small_imgs: "#small_imgs"+id,
home_banner:"#home_banner"+id,
wrap: "#small_imgs"+id,
big_img:"#big_img"+id,
big_a: "#big_a" + id,
next: "#small_next"+id,... |
'use strict';
/* dependencies */
const { expect, clear } = require('@lykmapipo/mongoose-test-helpers');
const { Message, worker } = require('../..');
describe('infobip transport queue', () => {
before(() => {
process.env.DEBUG = true;
});
before((done) => clear(done));
before((done) => worker.clear(done)... |
!function(e){function r(r){for(var n,l,i=r[0],f=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r... |
function my_function840(){
//01026922384078987944356549535637wQdpJQauTDqNjGGGmjBZLMZqGgjuhNcJ
}
function my_function915(){
//92763350443885254087157648136142UgLQyIYrWKngjKDatXWHWLRvHcQlbLqW
}
function my_function297(){
//53710756820031488555211676926080TrYXgxzhfgrQGfmJhwCHUBjXkkEuNuxz
}
function my_function741(){
/... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[215],{272:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return r})),t.d(n,"metadata",(function(){return s})),t.d(n,"rightToc",(function(){return c})),t.d(n,"default",(function(){return b}));var i=t(2),a=t(6),o=(t(0),t(312)),r={id:"advanced",titl... |
/**
* Test the behavior of $project on time-series collections.
*
* @tags: [
* does_not_support_stepdowns,
* does_not_support_transactions,
* requires_fcv_53,
* ]
*/
(function() {
"use strict";
load("jstests/core/timeseries/libs/timeseries.js");
const coll = db.timeseries_project;
coll.drop();
assert.co... |