text
stringlengths
3
1.05M
/** * TESTE EPICS - TripAdvisor Parser * * @author Alexandre de Freitas Caetano <https://github.com/aledefreitas> */ /** * Classe de data structure que faz um pool das conexões ativas * * @return {void} */ function ConnectionPool() { /** * Map contendo todas as conexões ativas * * @var {Map}...
#!/bin/env python3 import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) import os import json import ast import re from ARAX_response import ARAXResponse from query_graph_info import QueryGraphInfo class KnowledgeGraphInfo: #### Constructor def __init__(self): self.respon...
// messageReactionAdd.js // Triggers every time a reaction is added on the server. This one specifically // triggers on a reaction added to the topics message. const topicsOp = require("../lib/topic.js"); module.exports = async (client, reaction, user) => { // Get the message and channel this reaction is from. con...
"use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataAwsMskCluster = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/msk_cluster.html aws_msk_cluster}. * * @...
#!/usr/bin/env python3 import sys import os import tempfile from pathlib import Path from subprocess import check_output, run, CalledProcessError, DEVNULL from contextlib import contextmanager from collections import defaultdict from itertools import zip_longest # https://stackoverflow.com/questions/431684/how-do-i-c...
/*global describe:true, it:true, before:true, after:true */ var demand = require('must'), fivebeans = require('../index'), fs = require('fs'), util = require('util') ; //------------------------------------------------------------- describe('FiveBeansRunner', function() { describe('constructor',...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import TimePicker from '@/components/myComponents/TimePicker' import { Form, Input, DatePicker, Select, Button, message, Card, InputNumber, Radio, I...
/* jshint expr:true */ import { expect } from 'chai'; import { describeModule, it } from 'ember-mocha'; import Ember from 'ember'; describeModule( 'service:config', 'Unit: Service: config', { // Specify the other units that are required for this test. // needs: ['service:foo'] ...
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; function Home() { ...
// ============================================================ // NoovolariOutRun: copyright 2019 Alessandro Gaggia - beSharp // objects: class objects that can be spawned in the map. // ============================================================ /** * Line is an object that represent a line of the road, * ideally...
import os import warnings from dataclasses import dataclass from pathlib import Path from typing import ( Any, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple, overload, ) from typing_extensions import Literal from yarl import URL from .config import Config from .parsing_...
# Copyright (c) 2016-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. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals...
/*! * TableSorter QUnit Testing - filter widget */ /*jshint unused: false */ /* Filter widget tested parts ======================== OPTIONS: filter_defaultAttrib, filter_ignoreCase, filter_startsWith, filter_selectSource, filter_functions (set, not functionality) CLASSES: filter-false, filter-match, filter-parsed ...
//~ name a248 alert(a248); //~ component a249.js
/******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 9662: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var global = __webpack_require__(7854); var isCallable = __webpack_require__(614); var tryToString = __webpack_require__(6330); var TypeError = global...
'use strict'; module.exports=(req,res,next)=>{ if(req.params.id){ next(); }else{ next('Name Not Found'); } }
// Object of plugins to add to Globals.PLUGINS // Add custom plugin integration here or as separate files // within the /src/plugins directory var defaultPlugins = { //themePluginPLUGINNAME: function(context) { // // Example: Plugin integration code here //}, // Next plugin here }; // Add to Globals.PLUGINS $...
const Stream = require("./stream"); it("should default export to be a function", () => { expect(new Stream()).toBeInstanceOf(Stream); });
'use strict'; import * as Time from 'time.js'; describe('Time', function() { describe('format', function() { describe('with NAN', function() { it('return a correct time format', function() { expect(Time.format('string')).toEqual('0:00'); expect(Time.format(void...
/** * This application creates a widget for the * search, help, and sign-in header navigation on Vets.gov * * @module platform/site-wide/login */ import React from 'react'; import { Provider } from 'react-redux'; import startReactApp from '../../startup/react'; import Main from './containers/Main'; /** * Sets ...
/* Copyright 2010-2013 SourceGear, 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 writing, softwar...
'use strict'; var fs = require('fs'); var path = require('path'); var spawn = require('child_process').spawn; var util = require('util'); var mkdirp = require('mkdirp'); var bitcore = require('capricoinplus-bitcore-lib'); var zmq = require('zmq'); var async = require('async'); var LRU = require('lru-cache'); var Bitco...
# MIT License # # Copyright (c) 2019 Tuomas Halvari, Juha Harviainen, Juha Mylläri, Antti Röyskö, Juuso Silvennoinen # # 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, inc...
/** * @file The entry point for the web extension singleton process. */ // these need to run before anything else import './lib/freezeGlobals' import setupFetchDebugging from './lib/setupFetchDebugging' setupFetchDebugging() // polyfills import 'abortcontroller-polyfill/dist/polyfill-patch-fetch' import endOfStr...
import { shallowMount } from '@vue/test-utils'; import { createStore } from '~/monitoring/stores'; import { GlLink } from '@gitlab/ui'; import { GlAreaChart, GlLineChart, GlChartSeriesLabel } from '@gitlab/ui/dist/charts'; import { shallowWrapperContainsSlotText } from 'spec/helpers/vue_test_utils_helper'; import TimeS...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.catchExitSignals = exports.prematureEnd = void 0; var _signalExit = _interopRequireDefault(require("signal-exit")); var _redux = require("./redux"); var _actions = require("./redux...
angular.module('Angello.Dashboard') .controller('DashboardCtrl', function (StoriesModel, STORY_STATUSES, STORY_TYPES, $log) { var dashboard = this; dashboard.types = STORY_TYPES; dashboard.statuses = STORY_STATUSES; dashboard.stories = []; StoriesModel.all() ...
const { PORT, NODE_ENV } = require('../conf/sys-config'); process.env.NODE_ENV = NODE_ENV; const http = require('http'); const app = require('../app'); const logger = require('../utils/logger'); const fs = require('fs'); const path = require('path'); const { RTError, _P, mime, axios } = require('../utils/node'); cons...
/** * * Copyright (c) 2020 Silicon Labs * * 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 a...
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
AJS.test.require(["jira.webresources:dialogs"], function () { require([ 'jira/dialog/error-dialog', 'jira/util/browser', 'jquery', 'underscore' ], function( ErrorDialog, Browser, $, _ ) { var ErrorDialogDriver = function () {}; _.extend(ErrorDialogDriver.prototype, { i...
import template from './sw-cms-detail.html.twig'; import CMS from '../../constant/sw-cms.constant'; import './sw-cms-detail.scss'; const { Component, Mixin } = Shopware; const { debounce } = Shopware.Utils; const { cloneDeep, getObjectDiff } = Shopware.Utils.object; const { warn } = Shopware.Utils.debug; const Criteri...
import * as swcHelpers from "@swc/helpers"; var A; (function(A1) { var Point = function Point() { "use strict"; swcHelpers.classCallCheck(this, Point); }; A1.Point = Point; })(A || (A = {})); (function(A) { var Point = /*#__PURE__*/ function() { "use strict"; function Poi...
function changeNewsEntry(action, id, img, text) { if(!document.getElementById(id).getAttribute('name')) { if(action == '1') { document.getElementById(id).style.width = '95%'; document.getElementById(id).style.backgroundColor = '#0c9a8c'; document.getElementById(text).styl...
/* * Please see the included README.md file for license terms and conditions. */ // This file is a suggested starting place for your code. // It is completely optional and not required. // Note the reference that includes it in the index.html file. /*jslint browser:true, devel:true, white:true, vars:true */ /*glo...
module.exports = [{"name":"path","attribs":{"d":"M42 6H6c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h10v4h16v-4h10c2.21 0 3.98-1.79 3.98-4L46 10c0-2.21-1.79-4-4-4zm0 28H6V10h36v24zM32 20v4h-6v6h-4v-6h-6v-4h6v-6h4v6h6z"}}];
import os from tinydb import TinyDB from flask import Flask from flask_cors import CORS from flask_restful import Resource, Api from iam_profile_faker import V2ProfileFactory app = Flask(__name__) api = Api(app) CORS(app) # Helper functions def _load_db(): """Load the saved db file.""" path = os.path.dirn...
import React from 'react' import { StyleSheet, Text, View } from 'react-native' const BookmarkScreen = () => { return ( <View style={styles.container}> <Text> Bookmark Screen</Text> </View> ) } export default BookmarkScreen const styles = StyleSheet.create({ container:{ ...
module.exports = (model, frame) => { const jsonModel = model.toJSON ? model.toJSON(frame.options) : model; return jsonModel; };
from mysql.connector import connect import pandas as pd # from sklearn.preprocessing import StandardScaler # import numpy as np # import scipy # import matplotlib.pyplot as plt # from sklearn.neighbors import KNeighborsClassifier # from sklearn.metrics import accuracy_score import mysql.connector # import sys # impor...
import torch import pickle import argparse import os from tqdm import trange, tqdm import torch import torchtext from torchtext import data from torchtext import datasets from torch import nn import torch.nn.functional as F import math from models import SimpleLSTMModel, AttentionRNN from models.components.binarizati...
describe("Sisyphus", function() { var sisyphus, targetForm, namedForm; beforeEach( function() { loadFixtures( "fixtures.html" ); sisyphus = Sisyphus.getInstance(); sisyphus.setOptions( {} ); targetForm = $( "#form1" ); namedForm = $( "#named" ); sisyphus.protect( targetForm ); } ); afterEach( functio...
from manga_py.provider import Provider from .helpers.std import Std import re RE_IMAGES = re.compile(r'images\s*=\s*({.+});') class MangaWindowNet(Provider, Std): __url = None def get_chapter_index(self) -> str: return self.chapter[0].replace('.', '-') def get_content(self): return sel...
define(["js/core/Component", "srv/auth/AuthenticationProvider", "flow", "srv/auth/Authentication", "js/data/Collection", 'srv/auth/AuthenticationError'], function (Component, AuthenticationProvider, flow, Authentication, Collection, AuthenticationError) { var generateId = function () { var d = new Date().g...
/*! Buefy v0.8.8 | MIT License | github.com/buefy/buefy */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) : typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) : (global = global || self, factory(global.Bue...
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # access to the framework import pyre # superclass from .Tool import Tool from .Library import Library # the cython package manager class Cython(Tool, family='pyre.externals.cython'): """ The package manager ...
import React from 'react'; import classes from './Burger.css' import BurgerIncredients from './BurgerIncredients/BurgerIncredients'; const burger = (props) => { // console.log(props) let transformedIngredients = Object.keys(props.ingredients) .map(igKey => { return [...Array(props.ingredie...
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{yZlL:function(e,t,a){"use strict";a.r(t);var r=a("wTIg"),n=(a("q1tI"),a("Bl7J")),i=a("vrFN"),o=a("qKvR"),b=Object(r.a)("div",{target:"esi98yr0"})({name:"hu0znc",styles:"margin:0 auto;max-width:860px;padding:1.45rem 1.0875rem;"}),d=Object(r.a)("h1",{target:"esi98...
import { attachAll } from '../../../../other/boilerplate-utils.js'; const ngModule = angular.module('da.desktop.transactions', []); attachAll(require.context('./components', true, /\.(component|directive)\.js$/))(ngModule); attachAll(require.context('./containers', true, /\.(component|directive)\.js$/))(ngModule); n...
var IS_TEST_MODE = global.IS_TEST_MODE || false; var Board = require("../lib/board.js"); var Pins = Board.Pins; var events = require("events"); var Emitter = require("events").EventEmitter; var util = require("util"); var __ = require("../lib/fn.js"); var nanosleep = require("../lib/sleep.js").nano; var Animation = req...
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import routes from '../../constants/routes'; import styles from './styles.scss'; type Props = {}; export default class TvShows extends Component<Props> { props: Props; render() { return ( <div className={styles....
import nltk import sklearn import sklearn.naive_bayes import sklearn.model_selection import json import functools import collections import numpy #Load data from file def load_data(filename): with open(filename) as f: data = [] readline = None while readline != '': readline = f.r...
module.exports = { "parser" : "babel-eslint", "plugins": [ "react-native" ], "extends" : [ "airbnb" ], "rules": { // Soft some rules. "semi": 0, "max-len": 0, "global-require": 0, // Used by webpack-isomorphic-tools and React Native. "new-cap": [2, {"capIsNew": false, "newIsCap"...
/*eslint-env node*/ /*eslint no-unused-vars:0, no-console:0*/ var fs = require('fs'), got = require('got'), token = require('../getToken.js')('../token.json'), color = require('chalk'), getAllPages = require('./canvas-get-all-pages.js'), dsv = require('d3-dsv'), domain = 'https://byuh.instruc...
import tempfile import os from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe, Tag, Ingredient from recipe.serializers import ...
const USER_LOGIN_REQUEST = 'USER_LOGIN_REQUEST'; const USER_LOGIN_REQUEST_FAIL = 'USER_LOGIN_REQUEST_FAIL'; const USER_LOGOUT_REQUEST = 'USER_LOGOUT_REQUEST'; const USER_LOGOUT_REQUEST_SUCCESS = 'USER_LOGOUT_REQUEST_SUCCESS'; const USER_LOGOUT_REQUEST_FAIL = 'USER_LOGOUT_REQUEST_FAIL'; const USER_SAVE = 'USER_SAVE'; ...
/* * grunt-angular-templates * https://github.com/ericclemmons/grunt-angular-templates * * Copyright (c) 2013 Eric Clemmons * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { grunt.initConfig({ clean: { tests: 'tmp' }, copy: { tmp: { files: [...
// Define the Module var creo = creo || {}; creo = (function (pub) { pub.InterfaceObj = function(propsObj) { // BASE OBJECT this.advanced = undefined; // boolean - Whether to use the newer Creo 4 file export function. this.depth = undefined; // integer - Image depth this.dirname = ...
# NOTE(levosos): we do not use TensorFlow's API (tensorflow.python.client.device_lib.list_local_devices()) # because it causes all devices to be mapped to the current process and when using Horovod # we receive the next error: "TensorFlow device (GPU:0) is being mapped to multiple CUDA devices". import subprocess def...
# This program has been developed by students from the bachelor Computer Science at Utrecht University within the # Software and Game project course # ©Copyright Utrecht University Department of Information and Computing Sciences. """Handle deadline related feedback.""" import time from datetime import datetime, timede...
// Copyright (c) 2012-2015, Matt Godbolt // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list o...
import { createSelector } from 'reselect' import { getEvents } from 'store/selectors/event' import { getOracles } from 'store/selectors/oracle' import { getEventDescriptions } from 'store/selectors/eventDescription' import { eventSharesSelector, enhanceShares } from 'store/selectors/marketShares' import { getCurrentAcc...
""" Test whether rate limit leaky bucket controls number of simultaneous incoming requests Rewrite: spec/functional_specs/policies/rate_limit/leaky_bucket/ liquid/rate_limit_bucket_liquid_service_false_spec.rb liquid/rate_limit_bucket_liquid_service_true_spec.rb liquid/rate_limit_bucket_mat...
const desmenu = ( prefijo , pushname ) => { volver ' * Comandos De Descargas ✅ * ══════════════ *AUDIO* $ { prefix } play2 Una alternativa por si * play llego a su limite de canciones $ { prefix } jugar Coloca el nombre de la cancion, o el link del video YT $ { prefix } reproducir https://www.youtube.com/x...
import { RoomType } from '@rocket.chat/apps-engine/definition/rooms'; import { Rooms, Users, LivechatVisitors, LivechatDepartment } from '../../../models'; import { transformMappedData } from '../../lib/misc/transformMappedData'; export class AppRoomsConverter { constructor(orch) { this.orch = orch; } convertBy...
const defaultConfig = require('./defaultConfig'); var argv = require('yargs/yargs')(process.argv.slice(2)) .option('directory', { alias: 'd', description: 'Provide a path to your build directory.', default: defaultConfig.directory, type: 'string', }) .option('config', { alias: 'c', descri...
""" Spider for parsing katastr nemovitosti. Output is owners of the units in the building. """ import argparse import json import urllib.parse import urllib3 from typing import Dict, List import scrapy import scrapy.http as http from scrapy.crawler import CrawlerProcess def parse_owners(response: http.TextResponse)...
var path = require('path'); var express = require('express'); var handlebars = require('express-handlebars'); var session = require('express-session'); var flash = require('express-flash'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var passport = require('passport'); var rest...
OC.L10N.register( "gallery", { "Gallery" : "Галерея", "There was a problem reading files from this album" : "Проблема при чтении файлов из этого альбома", "Aborting preview. Could not find the file" : "Предпросмотр отменен. Не удалось найти файл", "Could not move \"{file}\", target exists" : "Не...
from struct import pack, unpack data = bytes() key, value, index = 'tagon', 'underline', '1.0' data += pack('', key, value, index) print(data)
// source: google/ads/googleads/v3/common/text_label.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-p...
function carregar() { var msg = window.document.getElementById('msg') var img = window.document.getElementById('imagem') var data = new Date() var hora = data.getHours(); msg.innerHTML = `Agora são ${hora} horas.` if (hora >= 0 && hora < 12) { // BOM DIA! img.src="Modelo/fotomanh...
'use strict'; var torrentStream = require('torrent-stream'); var _ = require('lodash'); var net = require('net'); var BITTORRENT_PORT = 6881; var tryPort = new Promise(function (resolve) { function findPort(port) { var s = net.createServer(); s.on('error', function() { findPort(0); }); s.list...
import gurobipy as gp from gurobipy import GRB from . import partition from ..useful_methods import get_leaves from collections import defaultdict import datetime import random import os from ..reporting_tools import reporting_tools def main(graph, graph_nx, hw_details): leaf_set= set(get_leaves(graph_nx)) list_...
import numpy as np import torch import random import logging import os import torch.multiprocessing as mp import torch.distributed as dist import subprocess import pickle import shutil def check_numpy_to_torch(x): if isinstance(x, np.ndarray): return torch.from_numpy(x).float(), True return x, False ...
// Copyright 2013 The Closure Library 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 // // Unless requ...
import React, { createRef, Component, PureComponent } from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; import { FormClose } from 'grommet-icons'; import { Box, Button, CheckBox, Grommet, Select, Text } from 'grommet'; import { grommet } from 'grommet/themes'; import { de...
import _ from 'underscore'; import Introduction from '../game/entity/character/player/quest/misc/introduction'; import BulkySituation from '../game/entity/character/player/quest/misc/bulkysituation'; import QuestData from '../../data/quests.json'; import AchievementData from '../../data/achievements.json'; import Achie...
# Copyright 2018 The Cirq Developers # # 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import router from './router' import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import "./mock/mockUsrLogin"; import App from...
from simplerpa.core.action.ActionData import ActionData from simplerpa.core.action.ActionImage import ActionImage from simplerpa.core.action.ActionScreen import ActionScreen from simplerpa.core.data.Action import Evaluation from simplerpa.core.data.ScreenRect import ScreenRect from simplerpa.core.data.StateBlockBase im...
var slideIndex = [1,1]; var slideId=["fire", "b&w", "nature", "other"]; var dotIndex=[1,1]; var dotId=["fireDot", "b&wDot", "natureDot", "otherDot"]; showDivs(1,0); showDivs(1,1); showDivs(0, 2); showDivs(0, 3); function plusDivs(n, no) { showDivs(slideIndex[no] += n, no); } function currentDiv(n) { showDivs(slid...
sap.ui.define(["sap/ui/test/Opa5", "sap/suite/ui/generic/template/integration/SalesOrderMultiEntitySets/pages/Common", "sap/suite/ui/generic/template/integration/SalesOrderMultiEntitySets/pages/actions/ObjectPageActions", "sap/suite/ui/generic/template/integration/SalesOrderMultiEntitySets/pages/assertions/ObjectPag...
/* THIS FILE WAS AUTOGENERATED BY mode_highlight_rules.tmpl.js (UUID: 958518BC-799F-477A-99F9-5B28EBF230F6) */ define(function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DartHighlightRules = function...
import React from 'react'; import { Icon } from './Icon'; export var RoundFiberSmartRecord = /*#__PURE__*/ function RoundFiberSmartRecord(props) { return React.createElement(Icon, props, React.createElement("circle", { cx: "9", cy: "12", r: "8" }), React.createElement("path", { d: "M17 5.55v.18c0 .3...
# 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 from...
/** * Created by Ziga & Primoz on 1.4.2016. */ import {Camera} from '../cameras/Camera.js'; export class PerspectiveCamera extends Camera { /** * Create new PerspectiveCamera object. * * @param fov Vertical field of view given in degrees. * @param aspect Aspect ratio (width / height). * @param near...
import React, { useState, createContext } from "react"; import API from "../utils/API"; export const LoginStatusContext = createContext(); export const LoginStatusProvider = ({ children }) => { const [loginState, setLoginState] = useState(false) function authenticateLogin (id, input) { API.authLogin(...
var mock = require('mock-fs'); var assert = require('../helper').assert; var util = require('../../lib/util'); describe('util', function() { function nullOverride(filePath, time, include) { include(false); } describe('filterPathsByTime()', function() { beforeEach(function() { mock({ sr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=pagination-option.js.map
import actions from './index' import { UPDATE_FOCUSED_GRANULE } from '../constants/actionTypes' import { createEcho10MetadataUrls } from '../util/granules' import { getEarthdataEnvironment } from '../selectors/earthdataEnvironment' import { getFocusedGranuleId } from '../selectors/focusedGranule' import { getFocuse...
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections import defaultdict from dataclasses import dataclass from typing import DefaultDict, Iterator, List, Optional from pants.option.ranked_value import RankedValue # TODO: ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+recoil * @flow strict-local * @format */ 'use strict'; import type {RecoilValueReadOnly} from '../core/Recoil_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); tslib_1.__exportStar(require("./Popup"), exports); tslib_1.__exportStar(require("./Popup.types"), exports); //# sourceMappingURL=index.js.map
/** * Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. * * @format * @noflow * @fbt {"project": "fbt-demo-project"} * @emails oncall+i18n_fbt_js */ /* eslint-disable fb-flow/use-exact-by-default-object-type */ import './css/Example.css'; import classNames from 'classnames'; import fbt, {Ge...
from collections import defaultdict from metrics.sc2metric import Sc2MetricAnalyzer from metrics.util import convert_to_realtime_r class APMTracker(object): """ Provides ``player.metrics.avg_apm`` which is defined as the sum of any Selection, ControlGroup, or Command event issued by the player ...
const mongoose = require('mongoose'); const PostSchema = new mongoose.Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: 'user', }, text: { type: String, required: true }, name: { type: String, }, /*likes: [ { user: { type: Schema.Types.ObjectId, ref...
var header = doc.head || getByTagName('head')[0] || doc.documentElement, scripts = getByTagName('script'), currentJs = scripts[scripts.length - 1], currentPath = currentJs.src || attr(currentJs, 'src'), BASEPATH = attr(currentJs, 'data-path') || currentPath, CONFIG = attr(currentJs, 'data-config'), CHARSET = attr(curre...
const path = require('path'); const merge = require('webpack-merge'); const webpack = require('webpack'); const ENV = process.env.NODE_ENV = process.env.ENV = 'production'; const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require("extract-text-webpack-plugin") const OptimizeCssAsset...
define(function(require) { var Mn = require('marionette'); return Mn.ItemView.extend({ template: '#dialog_template', className: 'dialog', initialize: function() {}, ui: { form: 'form', submitBtn: '#submitDialog' }, events: { 'click @ui.submitBtn': 'onSubmitBtnClick' ...