text stringlengths 3 1.05M |
|---|
var db = require('../storage/storage.js')
var hexDump = require('hexy').hexy
var misc = require('./misc.js')
var Packet = require('./packet.js').Packet
var log = require('tinylogger')
var lowIdClients = require('./lowidclients.js').lowIdClients
var conf = require('../enode.config.js').config
require('./buffer.js')
var... |
/**
* Custom JSDOM Environment to support canvas 2.x
* Also prepares html / css for testing
*/
const fs = require('fs');
const path = require('path');
const {installCommonGlobals} = require('jest-util');
const {LegacyFakeTimers, ModernFakeTimers} = require('@jest/fake-timers');
const {ModuleMocker} = require('jest-... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M7 17h14V3H7v14zm4-4h4v-2h-4V5h6v2h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2h-4v-2z",
opacity: ".3"
})... |
foam.CLASS({
package: 'foam.cross_platform.code_generation.refines.android_java',
name: 'ActionRefine',
refines: 'foam.core.Action',
flags: ['android'],
properties: [
{
class: 'StringProperty',
name: 'androidGetProperty',
expression: function(forClass_, name, crossPlatformFnGetterName) {... |
var command = {
command: "exec",
description: "Execute a JS module within this Truffle environment",
builder: {
file: {
type: "string"
},
c: {
type: "boolean",
default: false
},
compile: {
type: "boolean",
default: false
}
},
help: {
usage: "truffle ex... |
const E = require('evodove');
const evodove = new E.Evodove();
evodove.start();
|
var Fixer;(()=>{var e={669:(e,t,r)=>{e.exports=r(609)},448:(e,t,r)=>{"use strict";var n=r(867),o=r(26),s=r(372),i=r(327),a=r(97),u=r(109),c=r(985),f=r(61);e.exports=function(e){return new Promise((function(t,r){var p=e.data,d=e.headers;n.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var h=... |
import axios from "axios";
import config from "../config";
const Promise = require("es6-promise").Promise;
export default function ApiManager(props = {}) {
const querySpeciesByUser = (
options = {
email: ""
}
) => {
const requestUrl = config.URL.speciesByUser + "/query";
const whereClause = ... |
import json
import subprocess
from flask import Flask
from flask import request
from flask import jsonify
from flask.ext.cors import CORS
app = Flask(__name__)
CORS(app)
@app.route('/qlayout', methods=['POST'])
def qlayout():
obj = request.json
json.dump(obj, open('/tmp/data.json', 'w'))
p = subprocess.Po... |
// Generated using webpack-cli http://github.com/webpack-cli
const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
},
plugins: [
// Add your plugins here
// Learn more obout plugins fr... |
import looseEqual from '../../../utils/loose-equal'
import range from '../../../utils/range'
import { isArray, arrayIncludes } from '../../../utils/array'
import { getComponentConfig } from '../../../utils/config'
import { isNumber } from '../../../utils/inspect'
import sanitizeRow from './sanitize-row'
export default... |
(function() {
var starfighter = window.starfighter = window.starfighter || {};
var Vector = starfighter.Vector = function(x, y) {
this.x = x;
this.y = y;
};
})();
|
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
define(['./DvtToolkit'], function(dvt) {
"use strict";
// Internal use only. All APIs and functionality are subject to change at any time.
!function(t){t.Breadcrumbs=function(t,e,i,s){this.Ini... |
import React, { memo } from 'react'
import { TopListDiv, TopListContentDiv } from './style'
import HotItem from '../../../../../components/recommend-hot'
import TopListItem from '../../../../../components/top-list-item'
export default memo(function TopList() {
return (
<TopListDiv>
<HotItem title='榜单'/>
... |
from time import sleep
import logging
logger = logging.getLogger(__name__)
def open_download_feature_form(browser):
browser.find(xpath="//section[contains(@class, 'download-feature-list-section')]", scroll=True)
browser.click(xpath="//button[contains(@class, 'feature-list-download-btn')]")
sleep(1)
def s... |
import { useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { fetchRockets } from '../redux/rockets/rockesSlice';
import Rocket from './Rocket';
const Rockets = () => {
const dispatch = useDispatch();
const rockets = useSelector((state) => state.rockets.entities);
useEffect... |
const express = require('express');
const router = express.Router();
// Load Controllers
const Site = require('../controllers/ctrl_site');
const Bundels = require('../controllers/ctrl_bundels');
const Pages = require('../controllers/ctrl_pages');
// Setting
router.get('/settings', Site.getSettings);
// Pages
r... |
var express = require("express");
var app = express();
app.use(express.static(__dirname + "/"));
app.listen(process.env.PORT || 8080);
|
from dbus.exceptions import DBusException
from gi.repository import GLib
import logging
from itertools import islice
# Victron packages
from ve_utils import exit_on_error
from delegates.base import SystemCalcDelegate
class VebusSocWriter(SystemCalcDelegate):
# Note that there are 2 categories of hub2 assistants: v1... |
/**
* @name createScrollbar
* @author sundongguo
* @version 20080919
* @need $
* EventManager
* FX
*
* 使用createScrollbar(config)创建一个滚动条。
* config.$box: 盒模型。
* config.$track: 轨道。
* 盒模型和轨道要有共同的父对象,在创建前应该调整好他们的关系和位置。
*/
//--------------------------------------------------[createScrollbar]
var cre... |
const {web3} = require("@openzeppelin/test-helpers/src/setup");
const { time } = require("@openzeppelin/test-helpers");
require('@openzeppelin/test-helpers/configure')({
provider: process.env.LOCAL_PROVIDER,
});
/*******************************************
*** the script just used in local test to generate a new bl... |
import Triangle from './triangle';
import ColoredTriangle from './coloredTriangle';
import MultipleModels from './multipleModels';
import SimpleTransition from './simpleTransition';
import Diamond from './diamond';
import Torus from './torus';
function init() {
const ID = document.body.id;
switch(ID) {
case '... |
module.exports = function(config) {
config.set({
basePath: '../../../',// path to repo root
frameworks: ['karma-cukes'],
files: [
{ pattern: 'src/Polymorph/Application/**/*.feature', included: false, watched: true, served: true },
{ pattern: 'dev/e2e/config/hooks.js'... |
var config = require('config');
var db = require('./lib/meta-mongoose');
var app = require('./app');
GLOBAL.log = require('./lib/meta-logger')('MetroJobTracker').logger;
// Mongo connection setup
db.connect(config);
// Start Express
var server = app.listen(app.get('port'), function() {
log.info('Express server li... |
// Regular expression that matches all symbols in the `Pf` category as per Unicode v9.0.0:
/[\xBB\u2019\u201D\u203A\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21]/; |
const { igdl, tiktok, twitter, pin } = require('../lib/scrape')
const { facebook } = require('../lib/facebook')
const { servers, yta, ytv } = require('../lib/y2mate')
const fetch = require('node-fetch')
let yts = require('yt-search')
let util = require('util')
let handler = m => m
handler.all = async function (m, { is... |
import React from 'react';
import { Upload, Icon } from 'antd';
import browserEncrypt from '../lib/browserencrypt';
import { upload, getSelfIpfs } from '../lib/ipfs';
export default class Uploader extends React.Component {
state = {
fileList: [],
};
render() {
return (
<Upload.Dragger
action=""
cust... |
import Pie from './Pie'
import Utils from '../utils/Utils'
import Fill from '../modules/Fill'
import Graphics from '../modules/Graphics'
import Filters from '../modules/Filters'
/**
* ApexCharts Radial Class for drawing Circle / Semi Circle Charts.
* @module Radial
**/
class Radial extends Pie {
constructor (ctx... |
#!/usr/bin/env python3
#
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Jakub Cabal <jakubcabal@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
import os
import argparse
from migen import *
from litex_boards.platforms import cyc1000
from litex.soc.cores.clock import Cyclone10LPPLL
from litex.soc.in... |
!function(a){"use strict";var n=function(){};n.prototype.init=function(){a("#world-map-markers").vectorMap({map:"world_mill_en",scaleColors:["#f5b225","#f5b225"],normalizeFunction:"polynomial",hoverOpacity:.7,hoverColor:!1,regionStyle:{initial:{fill:"#1b82ec"}},markerStyle:{initial:{r:9,fill:"#f5b225","fill-opacity":.9... |
class HashMap {
constructor(size = 0) {
this.hashmap = new Array(size)
.fill(null);
}
hash(key) {
let hashCode = 0;
for (let i = 0; i < key.length; i++) {
hashCode += hashCode + key.charCodeAt(i);
}
return hashCode % this.hashmap.length;
}... |
/**
* Created by cshao on 19/01/2018.
*/
'use strict';
let tesselClient = require('./dist/index')('25f6db34-9ff1-47f4-b7bb-000000fb2e23');
// Send HTTP(S) data
tesselClient.http('https://uniboard.io/data_api/device/59db5cd3d60000000b346b0b', {
"temp": 21,
"humidity": 29
}, function(err, res) {
if (err) {
... |
var jsonrpc = require('jsonrpc-tcp'),
util = require('util'),
events = require('events'),
log4js = require('log4js'),
_ = require('lodash');
var logger = log4js.getLogger('TUBE_SERVER');
var TUBE_PORT = 50800;
var tubeServer = exports;
function getDeviceAddress(sensorId) {
return sensorId.split('-'... |
import { CHARACTER_URLS, MODULE_NAME } from "./common.js";
const persistScope = {
global: "world",
local: "client",
};
// todo remove entry when character is deleted
/**
* Prepares data storage via game.settings.
*/
export async function registerPersistence() {
await game.settings.register(MODULE_NAME, CHARA... |
// This file was procedurally generated from the following sources:
// - src/class-fields/string-literal-names.case
// - src/class-fields/productions/cls-decl-new-sc-line-method.template
/*---
description: String literal names (field definitions followed by a method in a new line with a semicolon)
esid: prod-FieldDefin... |
const chromium = require("chrome-aws-lambda");
const Sentry = require("@sentry/serverless");
if (process.env.SENTRY_DSN) {
Sentry.AWSLambda.init({
dsn: process.env.SENTRY_DSN,
});
}
const puppeteerLaunch = (async function () {
return await chromium.puppeteer.launch({
args: chromium.args,
// TODO wha... |
import axios from 'axios';
import iView from 'iview';
import Config from '@/config/config';
// axios.install = (Vue) => {
// Vue.prototype.$axios = axios
// }
export default {
lastRequest : {},
init :function (App) {
let self = this;
this.Vue = App;
axios.defaults.timeout = 5000;
axios.defaul... |
version https://git-lfs.github.com/spec/v1
oid sha256:4d4ace5c1588a2c2567f4fd59c47a092bad1f383da3a00d71b9ed30ffb1e1cb9
size 177
|
#!/usr/bin/env python
"""JSON service emitting observation history for a given date"""
import json
import os
import datetime
import cgi
from pandas.io.sql import read_sql
from dateutil.parser import parse
import memcache
from pyiem.reference import IEMVARS
from pyiem.util import get_dbconn, ssw
def do_today(table, s... |
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.plainyearmonth.prototype.until
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.pla... |
/*******************************************************************************
*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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
* ... |
var attach = function (object, property, callback) {
if (!object) {
console.error('Invalid object');
return;
}
if (!property || typeof property === 'function') {
console.error('Invalid object property');
return;
}
if (typeof callback !== 'function') {
console.error('Callback should be a fu... |
import pytest
import openpnm as op
ws = op.Workspace()
proj = ws.new_project()
pn = op.network.Cubic(shape=[10, 10, 10], spacing=1e-4, project=proj)
Ps = pn['pore.coords'][:, 0] < pn['pore.coords'][:, 0].mean()
Ts = pn.find_neighbor_throats(pores=Ps, mode='xnor')
geo1 = op.geometry.StickAndBall(network=pn, pores=Ps, t... |
"""
test_catalogs.py
"""
import pytest
import GCRCatalogs
all_catalogs = list(GCRCatalogs.get_available_catalogs(include_default_only=False))
@pytest.mark.parametrize('catalog', all_catalogs)
def test_load_catalog_and_quantities(catalog):
cat = GCRCatalogs.load_catalog(catalog)
qs = cat.list_all_quantities()[... |
module.exports = {
"@id": "/publications/b163ba10-bd4a-11e4-bb52-0800200c9a66/",
"abstract": "The ability to inhibit a response is an important component of normal behavioral control and is an aspect of psychopathology when diminished. Converging evidence implicates the serotonergic neurotransmitter system in r... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"/TA7":function(e,t,a){"use strict";a.r(t),a.d(t,"_frontmatter",(function(){return i})),a.d(t,"default",(function(){return c}));a("91GP"),a("rGqo"),a("yt8O"),a("Btvt"),a("RW0V"),a("FlsD"),a("q1tI");var n=a("7ljp"),o=a("hhGP");a("qKvR");function r(){return(r=Objec... |
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from qnetwork.model import Network
class Agent():
'''Interacts with and learns from the environment'''
def __init__(
self, device, memory, action_size, state_size,
... |
function getGlobal(){return function(){return this.dust}.call(null)}var dust={};!function(dust){function Context(n,l,t){this.stack=n,this.global=l,this.blocks=t}function Stack(n,l,t,u){this.tail=l,this.isObject=!dust.isArray(n)&&n&&"object"==typeof n,this.head=n,this.index=t,this.of=u}function Stub(n){this.head=new Chu... |
module.exports = {
apps: [
{
name: 'messenger-server',
script: 'server.js',
env: {},
env_production: {
NODE_ENV: 'production',
PORT: 3000
}
}
]
}
|
import { execute, readAsset } from "./index";
export default (asset, compiler, stats) => {
let executed = execute(readAsset(asset, compiler, stats));
if (Array.isArray(executed)) {
executed = executed.map((module) => {
// eslint-disable-next-line no-param-reassign
module[0] = module[0].replace(/!\... |
import Utils from "../api/utils.js";
export const isLoggedIn = () => Utils.getToken() !== null;
|
########################################################################################
# Compare two systems using bootstrap resampling #
# adapted from https://github.com/neubig/util-scripts/blob/master/paired-bootstrap.py #
# ... |
import React, { useEffect, useRef } from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import Img from 'gatsby-image';
import styled from 'styled-components';
import sr from '@utils/sr';
import { srConfig } from '@config';
import { Icon } from '@components/icons';
import { usePrefersReducedMotion } from '@... |
"use strict";
const BinaryTreeSearch = require("../binaryTreeSearch");
const Node = require("../node");
describe("binary tree", () => {
it("returns true if the tree contain the value ", () => {
const a = new Node("a");
const b = new Node("b");
const c = new Node("c");
const d = new Node("d");
co... |
var RoundManager = Base.extend({
round: null,
limits: null,
xp: null,
manager: null,
lowLimit: null,
middleLimit: null,
bigLimit: null,
lowKilled: null,
middleKilled: null,
bigKilled: null,
lowTime: null,
middleTime: null,
bigTime: null,
score: null,
interstitial: null,
constru... |
import React from 'react';
import { View, Text } from 'react-native';
import overviewListStyle from '../../styles/overviewListStyle';
import { OverviewListIconContainer } from '../container/OverviewListIconContainer';
import { OverviewListItemText } from './OverviewListItemText';
import { CustomTouchableHighlight } fro... |
/**
* Copyright 2018 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*
* `rich-text-editor-styles`
* `a shared set of styles for rich-text-editor`
*
* @microcopy - language worth noting:
* -
*
* @pseudoElement
* @polymer
* @demo demo/index.html
*/
import { html, Poly... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.15.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
'use strict';
var test = require('tape');
test('a test with an unhandled rejection', async t => {
t.pass('a passing assertion');
await throws();
t.end();
});
async function throws() {
// return Promise.reject({some: 'rejection'});
throw new Error('an async error');
}
/**
* Mock coverage object
*/
global... |
!function(t, e) {
"object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define([ "exports" ], e) : e(t.THREE = t.THREE || {});
}(this, function(t) {
"use strict";
function e() {}
void 0 === Number.EPSILON && (Number.EPSILON = Math.pow(2, -5... |
window.WCT = {
environmentScripts: [
'stacky/lib/parsing.js',
'stacky/lib/formatting.js',
'stacky/lib/normalization.js',
'mocha/mocha.js',
'chai/chai.js',
'@polymer/sinonjs/sinon.js',
'accessibility-developer-tools/dist/js/axs_testing.js',
'@polymer/test-fixture/test-fixture.js'
]
};
|
# -*- coding: utf-8 -*-
# tests.test_utils.test_helpers
# Tests for the stand alone helper functions in Yellowbrick utils.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Fri May 19 10:43:43 2017 -0700
#
# Copyright (C) 2017 District Data Labs
# For license information, see LICENSE.txt
#
# ... |
## For given values of lambda1 and lambda2 we minimise the SINGLE objective function and calculate AIC ##
#import pandas
import math
import numpy
import os
#import spams
from scipy.linalg import solveh_banded
import multiprocessing
from operator import add, sub
import itertools
from FastFused_01 import *
def fit... |
#!/usr/bin/env python3
# License: Apache 2.0
import argparse
import json
import typing
from pathlib import Path
from typing import Iterator, List, Union
import numpy as np
import torch
import torch.nn.functional
import torch.utils.data
from transformers import (
AutoConfig,
AutoModelForSequenceClassification,... |
module.exports = [
{
season: '1992/93',
winner: {
country: 'Frankreich',
team: 'Olympique Marseille'
},
runnerUp: {
country: 'Italien',
team: 'AC Mailand'
},
result: '1:0',
stadium: 'Olympiastadion',
city: 'München',
legs: {
first: {
result: '1... |
import React from "react";
import styles from "./styles.module.css";
import renderHtmlToReact from "../RenderHtmlToReact";
import { Link } from "gatsby";
const Article = ({node}) => {
const { htmlAst, frontmatter, excerpt } = node;
let figure = htmlAst.children.find(element => element.tagName === "figure");
retu... |
/*
* Copyright 2018, 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.
*/
import expect from 'expect';
import { testEpic } from './epicTestUtils';
import { UPDATE_METADATA, STOP, play, stop,... |
import { reverseKGroup } from "../../LinkedList/reverseKGroup-025.js";
import assert from "assert";
import { ListNode } from "../../LinkedList/ListNode.js";
describe("reverseKGroup", function () {
function makeTest(l, k, expected) {
it(`[${JSON.stringify(l)}] reverse ${k} Group result is [${JSON.stringify(
... |
let empleados = [{
id: 1,
nombre: "felipe"
},{
id: 2,
nombre: "constanza"
},{
id:3,
nombre: "pepe"
}]
let salarios = [{
id: 1,
salario: 1000
},{
id: 2,
salario: 3000
}]
let getEmpleado = (id, callback) => {
let empleadoDB = empleados.find( empleado => em... |
const getNetworkGraph = require('ln-service/getNetworkGraph');
const getNetworkInfo = require('ln-service/getNetworkInfo');
const lnd = require('../helpers/setup').lnd;
describe('NetworkInfo', () => {
describe('getNetworkGraph()', () => {
it('gets the network graph', (done) => {
getNetworkGraph({lnd}).then... |
// @flow
import { add, div, gt, lt, mul, sub } from 'biggystring'
import {
type EdgeCorePluginOptions,
type EdgeCurrencyWallet,
type EdgeSwapPlugin,
type EdgeSwapPluginQuote,
type EdgeSwapRequest,
type EdgeTransaction,
SwapAboveLimitError,
SwapBelowLimitError,
SwapCurrencyError
} from 'edge-core-js/t... |
import React from 'react';
import { Panel } from 'react-bootstrap';
import TextInput from './../generic/TextInput';
import { emit } from './../../scripts/socket';
class AddFriend extends React.Component {
constructor(props) {
super(props);
this.state = {
friendName: '',
}
this.handleFrien... |
/**
* Copyright 2016-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.
*
* @providesModu... |
export { provideFunctions, FunctionsModule } from './functions.module';
export { Functions, FunctionsInstances, functionInstance$ } from './functions';
export * from './rxfire';
export * from './firebase';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3Qi... |
module.exports = {
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
};
|
/**
* @author k.danovsky
* created on 15.01.2016
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.components', [
'BlurAdmin.pages.components.mail',
'BlurAdmin.pages.components.timeline',
'BlurAdmin.pages.components.tree',
])
.config(routeConfig);
/** @ngInject */
fun... |
game.initObjectArray = function(){
return [
{
location: [968.00,2080.00],
objclass: game.RockEntity,
props: {
gid: null,
height: 32,
image: "Rock1",
name: "Rock1",
framewidth: 32,
framewidth: 32,
type: undefined,
width: 32,
... |
import sys
n, l, *s = sys.stdin.read().split()
def main():
s.sort()
t = "".join(s)
return t
if __name__ == "__main__":
ans = main()
print(ans)
|
import React, { Component } from 'react'
import netlify from '../../content/images/netlify.png'
import gatsby from '../../content/thumbnails/gatsby.png'
import github from '../../content/images/github.png'
import { Link } from 'gatsby'
export default class Footer extends Component {
render() {
return (
<fo... |
import React from 'react'
import { DarkTheme } from '../../themes'
import { ThankYou } from '../../slides'
import { Deck, Slide, Heading, Text, List, ListItem, Image, Appear,
Quote, BlockQuote, Cite } from 'spectacle'
export default () => (
<Deck transitionDuration={500} theme={DarkTheme} transition={['slide']... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... |
# -*- encoding:utf-8 -*-
import torch
import torch.nn as nn
from uer.utils.constants import *
from uer.utils.subword import *
class Model(nn.Module):
"""
BertModel consists of three parts:
- embedding: token embedding, position embedding, segment embedding
- encoder: multi-layer transformer en... |
var TaskNoneState = (function () {
function TaskNoneState(npc) {
this.npc = npc;
}
var d = __define,c=TaskNoneState,p=c.prototype;
p.onEnter = function () {
};
p.onExit = function () {
};
return TaskNoneState;
}());
egret.registerClass(TaskNoneState,'TaskNoneState',["State"]);
va... |
const hexId = require('../helpers/uniqueid.helper');
const connection = require('../database/connection');
module.exports = {
async list(request, response) {
const ongs = await connection('ongs').select('*');
return response.json(ongs);
},
async create(request, response) {
const { ... |
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils... |
(function() {
var exports = {};
exports.id = 7274;
exports.ids = [7274];
exports.modules = {
/***/ 2968:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5282);
/* harmony im... |
// @flow
'use strict'
import { GATEWAY } from './constants'
import type { APIAction } from './types/Common'
import type { ProductFilter } from './types/Product'
import LazadaRequest from 'src/LazadaRequest'
import { PROTOCOL, HTTP_ACTION } from 'src/LazadaRequest/constants'
import type { Protocol, HttpAction } from '... |
from django.shortcuts import render
from rest_framework.exceptions import ValidationError
from rest_framework.generics import GenericAPIView
# Create your views here.
from rest_framework.response import Response
from django.shortcuts import redirect
from rest_framework.views import APIView
from core.models import Key... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the Kramers-Kronig Calculator software package.
#
# Copyright (c) 2013 Benjamin Watts, Daniel J. Lauk
#
# The software is licensed under the terms of the zlib/libpng license.
# For details see LICENSE.txt
"""This module implements the Kramers-Kronig... |
import os
import sys
import tempfile
import shutil
from six.moves import cStringIO as StringIO
from pecan.tests import PecanTestCase
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest # noqa
class TestPecanScaffold(PecanTestCase):
def test_normalize_pkg_name(self):
... |
# Copyright 2020 Alibaba Group Holding Limited. 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 ... |
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient({ apiVersion: '2012-08-10', region: process.env.AWS_REGION });
const sns = new AWS.SNS({apiVersion: '2010-03-31', region: process.env.AWS_REGION });
exports.handler = async event => {
console.log(event);
const postData = JSON.parse(eve... |
import { SimpleTable } from "../../simple-table.js";
import lazy from "../../../../lazy.js";
/**
* The OpenType `CFF2` table.
*
* See https://docs.microsoft.com/en-us/typography/opentype/spec/CFF2
*/
class CFF2 extends SimpleTable {
constructor(dict, dataview) {
const { p } = super(dict, dataview);
... |
/// <reference path="../../popclip.d.ts" />
define({
name: util.localize("Paste") + " =",
options: [{
identifier: "showIcon",
type: "boolean",
label: util.localize("Show as Icon"),
defaultValue: false
}],
actions: function () {
if (popclip.cont... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{2936:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.icon=void 0,t(10);var o=function(e){return e&&e.__esModule?e:{default:e}}(t(0));function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=argume... |
const { myCloudFn } = require('./send');
const admin = require('firebase-admin');
jest.mock(
'firebase-admin',
() => {
const mAdmin = {
auth: jest.fn().mockReturnThis(),
getUserByEmail: jest.fn(),
};
return mAdmin;
},
{ virtual: true },
);
describe('send.js', () => {
afterAll(() => {... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import json
import glob
import logging
import re
import pandas
import numpy as np
from collections import defaultdict
from collections import OrderedDict
data_path = './'
n = 0
class data_passport:
def __init__(self):
self.n_conf_files = 0... |
/**
* Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with t... |
/* eslint-disable
camelcase,
max-len,
no-path-concat,
no-unused-vars,
one-var,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created ... |
import React, { useState, useEffect, useRef } from "react";
import PropTypes from "prop-types";
import { positions, AVAILABLE_POSITIONS } from "./positions";
import statuses from "./statuses";
import {
animateCollapse,
animateExpand,
endCollapse,
endExpand,
prepareCollapse,
startCollapse,
startExpand
} ... |