text stringlengths 3 1.05M |
|---|
from __future__ import absolute_import
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Sean Bell
# --------------------------------------------------------
# ---------------... |
''' Get windows special folders without pythonwin
Example:
import specialfolders
start_programs = specialfolders.get(specialfolders.PROGRAMS)
Code is public domain, do with it what you will.
Luke Pinner - Environment.gov.au, 2010 February 10
'''
#Imports use _syntax to mask them from aut... |
"""
Script to check google colab memory usage
"""
import os
import GPUtil as GPU
import humanize
import psutil
GPUs = GPU.getGPUs()
# XXX: only one GPU on Colab and isn’t guaranteed
gpu = GPUs[0]
def available_gpu():
process = psutil.Process(os.getpid())
print("*" * 66)
print(
"\nGen RAM F... |
'use strict';
var utils = require('./utils');
var has = Object.prototype.hasOwnProperty;
var defaults = {
allowDots: false,
allowPrototypes: false,
arrayLimit: 20,
charset: 'utf-8',
charsetSentinel: false,
comma: false,
decoder: utils.decode,
delimiter: '&',
depth: 5,
ignoreQueryPrefix: false,
... |
"""Abstraction layer for build rules."""
load("@io_bazel_rules_appengine//appengine:py_appengine.bzl", "py_appengine_test", _py_appengine_binary = "py_appengine_binary")
load("@io_bazel_rules_closure//closure:defs.bzl", "web_library")
load("@pip_deps//:requirements.bzl", "requirement")
py_appengine_binary = _py_appen... |
var path = require('path');
// ---
exports.vortex = require(path.join(__dirname, 'vortex.js'));
exports.command = require(path.join(__dirname, 'command.js'));
exports.service = require(path.join(__dirname, 'service.js'));
|
import { Selector } from "testcafe";
// import { Selector, t } from 'testcafe';
export default class Page {
constructor () {
this.developerName = Selector("#email");
this.password=Selector("#pass");
this.submitButton = Selector("#nextButton");
}
// async email(username) {
// ... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/usuarios.vue?vue&type=script&lang=js&":
/*!**************************************************************************************************... |
import React from 'react';
import { yuan } from '@/components/Charts';
/**
* 减少使用 dangerouslySetInnerHTML
*/
export default class Yuan extends React.PureComponent {
componentDidMount() {
this.rendertoHtml();
}
componentDidUpdate() {
this.rendertoHtml();
}
rendertoHtml = () => {
... |
(function (angular) {
'use strict';
// Declare app level module which depends on views, and components
angular.module('matrixtrucking', [
'ui.router',
'ui.bootstrap',
'matrixtrucking.truckingdetail',
'matrixtrucking.services',
'ui-notification'
]).config(moduleConfig... |
const config = require('./config');
/**
* Construct prefix header based on global params and config
*/
module.exports = function(args, sparql = false) {
if( args.options['no-prefix'] ) {
return '';
}
var prefixes = [];
for( var key in config.globalPrefix ) {
prefixes.push(addPrefix(key, config.globa... |
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const ZipWebpackPlugin = require('zip-webpack-plugin')
const webpackMerge = require('webpack-merge')
const commonConfig = require('./webpack.common.config')
const Package = require('./package.json')
module.exports = webpackMerge(comm... |
# from abc import ABCMeta, abstractmethod
import pandas as pd
import numpy as np
from ..base import BaseEstimator
# import sys
# sys.path.append('../../')
# from UTILS.Logger import Logger
def check_dataframe(x):
""" check if input x is a dataframe if so
convert it to numpy array """
ntasks = len(x)
... |
import React from 'react';
class Search extends React.Component {
constructor(props){
super(props);
this.state = {
hasSubmitted: false
}
this.handleOnChange = this.handleOnChange.bind(this);
this.handleOnSubmit = this.handleOnSubmit.bind(this);
}
handleO... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{609:function(t,s,e){"use strict";e.r(s);var a=e(4),n=Object(a.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("plugins-recommend"),t._v(" "),e("div",{staticClass:"custom... |
/**
* Add the specified CSS to the current document.
*
* @title Add CSS
*/
(function addcss(document, s) {
/* Try to get the parameter string from the bookmarklet/search query.
Fall back to the current text selection, if any. If those options
both fail, prompt the user.
*/
s = s || (function () { /*%s*/;... |
function createImage(link, name) {
const item = document.createElement("img");
item.setAttribute("src", link);
item.setAttribute("alt", name);
item.setAttribute("width", "300");
return item;
}
function createGallery(array) {
return array.map((elem) => {
// console.log(elem);
const { src, photograp... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[121],{397:function(t,n,h){!function(t){"use strict";t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".s... |
export const ADD_USER = 'add_user';
export const DELETE_USER = 'delete_user';
export const UNDO = 'undo';
export const REDO = 'redo';
export const addUser = (user) => {
return {
type: ADD_USER,
user
}
}
export const deleteUser = (user) => {
return {
type: DELETE_USER,
user
... |
'use strict';
var EditorCarousel = {
body: $('body'),
form: null,
init: function () {
if (this.form) return this;
this.body.append('<form action="/admin/media/carousel" method="post" ' +
'enctype="multipart/form-data" id="img-form">' +
'<input type="file" name="_gal... |
module.exports = {
GET,
};
function GET() {
return;
}
GET.apiDoc = {
parameters: [
{
format: 'foo',
in: 'query',
name: 'foo',
type: 'string',
},
],
responses: {
default: {
description: 'return foo',
schema: {},
},
},
};
|
define(function(require,exports,module){
require("jquery-1.11.3.min.js"/*tpa=http://www.seehope.net/js/jquery-1.11.3.min.js*/);
var $aBtn=$(".c-road-btn").find("li");
var $aList=$(".c-road-rg").find(".c-road-list");
/*初始化*/
// $aBtn.first().addClass("active");
// $aList.first().show();
var aTab_con_ul = [];
v... |
"""
* GTDynamics Copyright 2020, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* See LICENSE for the license information
*
* @file test_robot.py
* @brief Test Robot class.
* @author Varun Agrawal
"""
# pylint: disable=no-name-in-module, import-error, no-member
import o... |
import React, { useContext } from "react"
import { graphql } from "gatsby"
import ThemeContext from "../utils/theme"
import { PageLayout } from "../components"
import { SEO } from "../utils"
import { Container, Image } from "react-bootstrap"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
export defau... |
export { SidebarMenu } from './SidebarMenu'
|
'use strict';
const { Node } = require('../stacks-and-queues.js');
const { Stack } = require('../stacks-and-queues.js');
const { Queue } = require('../stacks-and-queues.js');
const { expect } = require('@jest/globals');
// <-------------✔️ Node Testing ✔️------------>
describe('node class', () => {
it('should crea... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function throttle(func, wait, options = {}) {
let context;
let args;
let result;
let timeout = null;
let previous = 0;
const lat... |
const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
const nodeExternals = require('webpack-node-externals');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const target = process.env.TARGET || 'umd';
const styleLoader = {
loader: 'style-loader',... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
export default {
api: {
// Base Url of Hacker News API
baseUrl: 'https://hacker-news.firebaseio.com',
// API Version Prefix
version: 'v0',
},
logic: {
// Amount of requests done in parallel when fetching items from HackerNews API
concurrency: 6,
// Max... |
'use strict'
const Parse = require('../lib/parse.js')
const fs = require('fs')
const path = require('path')
const tardir = path.resolve(__dirname, '../test/fixtures/tars')
const parsedir = path.resolve(__dirname, '../test/fixtures/parse')
const maxMetaOpt = [250, null]
const filterOpt = [ true, false ]
const strictOpt ... |
import * as c from './../actions/ActionTypes';
export default (state = {}, action) => {
const { date, startTime, stopTime, id } = action;
switch (action.type) {
case c.ADD_EVENT:
return Object.assign({}, state, {
[id]: {
date: date,
startTime: startTime,
stopTime: st... |
// flow-typed signature: ff2bfb6bd9c75ac98f98f6a35d0a1131
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v5.0.1/flow_v0.49.1
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-jsx-a11y'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to sh... |
const h3 = require("h3-js");
function polyfill_plusplus(polygon, resolution) {
return [
...new Set(h3.polyfill(polygon, resolution, true)),
...new Set(polygon.map(pt=>h3.geoToH3(pt[1],pt[0],resolution)))
];
}
module.exports = {
polyfill_plusplus: polyfill_plusplus
};
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("babylonjs"));
else if(typeof define === 'function' && define.amd)
define("babylonjs-loaders", ["babylonjs"], factory);
else if(typeof exports === 'object')
... |
from polymorhism.project import Animal
class Cat(Animal):
def meow(self):
return "meowing..." |
from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
@pytest.fixture(name="full... |
import React from "react";
import styled from "styled-components";
import Text from "../components/Text/Text";
import Highlight from "../components/Highlight/Highlight";
import Button from "../components/Button/Button";
const ProjectImg = styled.div`
height: 250px;
background-color: white;
background: url(${prop... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/**
* Navigation Bar Controller
*/
killrChat.controller('NavBarCtrl', function($rootScope, $scope, RememberMeService, GeneralNotificationService, SecurityService){
delete $rootScope.generalError;
$scope.closeAlert = function() {
GeneralNotificationService.clearGeneralNotification();
};
$roo... |
import random
import csv
import string
def buildUnique(maxTuples, rand):
list = [i for i in range(0,maxTuples)]
if rand:
random.shuffle(list)
#print(list)
return list
def buildModlist(unique1, modValue):
list = []
for i in unique1:
list.append(i % modValue)
#print(list)
... |
from __future__ import print_function
import base64
import collections
import contextlib
import copy
import errno
import getpass
import grp
import hashlib
import itertools
import json
import logging
import mmap
import os
import platform
import pprint
import psutil
import pwd
import re
import shlex
import shutil
import ... |
window.OC = window.OC || {};
Date.timeStamp = function() {
return new Date().getTime() / 1000.0;
};
OC._render = function() {
this.init = function (canvas2D, canvas3D) {
window.Vec2 = THREE.Vector2;
window.Vec3 = THREE.Vector3;
window.Mat3 = THREE.Matrix3;
window.Mat4 = THREE... |
import { $u } from '../../index';export default {
props: {
// 显示的内容,字符串
text: {
type: String,
default: $u.props.rowNotice.text
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: $u.props.rowNotice.icon
},
// 通告模式,l... |
//// [assignmentCompatability38.js]
var __test1__;
(function (__test1__) {
;
var obj4 = { one: 1 };
;
__test1__.__val__obj4 = obj4;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));... |
# -----------------------------------------------------------------------------------------------------------------------
# By Alexandra Lee
# (updated October 2018)
#
# Encode gene expression data into low dimensional latent space using
# Tybalt with 2-hidden layers
# --------------------------------------------------... |
module.exports = function check(str, bracketsConfig) {
var arr = str.split("");
if (arr.length % 2 !== 0) return false;
for (var i = 0; i < arr.length; i++) {
for (var j = 0; j < bracketsConfig.length; j++) {
if ((arr[i] === bracketsConfig[j][0]) && (arr[i + 1] === bracketsConfig[j][1]))... |
const router = require('express').Router();
const { Product, Category, Tag, ProductTag } = require('../../models');
// The `/api/products` endpoint
// get all products
router.get('/', (req, res) => {
// find all products
Product.findAll({
attributes: ['id', 'product_name', 'price', 'stock','category_id'],
... |
import PlainSlideshowWithPlayControls from "../src/plain/PlainSlideshowWithPlayControls.js";
export default class ElixSlideshowWithPlayControls extends PlainSlideshowWithPlayControls {}
customElements.define("elix-slideshow-with-play-controls", ElixSlideshowWithPlayControls);
|
import find from 'lodash/find';
import isEqual from 'lodash/isEqual';
import last from 'lodash/last';
export default class CucCloudNavigation {
/* @ngInject */
constructor(
$transitions,
$state,
$stateParams,
CuiTabsService,
) {
this.$state = $state;
this.$stateParams = $stateParams;
... |
# Here's some new strange stuff, remember type it exactly. YA IDIOT
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print """
There's somthing going on here.
With three double-quotes.
We'll be able to typ... |
/*
<javascriptresource>
<menu>hide</menu>
</javascriptresource>
*/
/**
* Construct a new dialog.
* @param {String} title window title.
* @param {String} helpUrlSuffix enable bottom-left icon button to go to url for help, may be null.
*/
function Dialog(title, helpUrlSuffix) {
var self = this
var prepared =... |
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.m... |
import React from 'react'
import { injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl'
import MomentComponent from 'moment'
import classNames from 'classnames'
import {
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Grid,
Avatar,
Card,
CardHeader,
Typography,
Button,
Fab,
... |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'routes';
// Components
import Title from 'components/ui/Title';
function TopicsListCard({ topic, routes, onDelete }) {
return (
<div className="c-card">
<div className="card-container">
<header className="card-hea... |
"use strict";
const { isNil, negate, has, get, partialRight } = require('lodash/fp');
const exists = negate(isNil);
const union = require('folktale/adt/union/union');
const HandleAuthenticatedResourceResponse = union('HandleAuthenticatedResourceResponse', {
TokenRequired() { return {toString: ()=> 'TokenRequired'... |
QUnit.module('lodash.uniq');
(function () {
QUnit.test('should perform an unsorted uniq when used as an iteratee for methods like `_.map`', function (assert) {
assert.expect(1);
var array = [
[
__num_top__,
__num_top__,
__nu... |
#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
'use strict';
// Rough launch dates in MM/DD/YYYY
const cars = new Map();
cars.set(new Date('09/01/2013'), '4C');
cars.set(new Date('07/04/1989'), 'miata');
cars.set(new Date('09/01/1996'), 'elise');
console.log(cars.size);
// 3
// later in t... |
// flow-typed signature: 64987528b36a74b47927f90aa81da902
// flow-typed version: <<STUB>>/eslint-plugin-promise_v3.6.0/flow_v0.58.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-promise'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to shar... |
"""Module to hold common useful functions.
"""
# import importlib
# import inspect
# import pkgutil
import pkg_resources
def load_engines(group):
"""Find all the classes that implements `base_class`."""
engines = {}
# for _, module_name, _ in pkgutil.walk_packages([path], prefix=prefix):
# module ... |
function getUserNameFromCookie() {
if (document.cookie.length > 0) {
let index1 = document.cookie.indexOf("username");
let index2 = document.cookie.indexOf("$");
if (index1 >= 0 && index2 >= 0) {
return document.cookie.substring(index1, index2).split("=")[1];
}
}
} |
import AllocationHelpers from '../../../../lib/utils/allocation-helpers'
import config from '../../../../config'
describe('AllocationHelpers', () => {
describe('#generateAllocation', () => {
const resource = {
apiVersion: 'testgroup.appvia.io/v1alpha1',
kind: 'TestKind',
metadata: {
nam... |
$(document).ready(function(){
$('.formFilter').show();
$('.formFilter2').hide();
$('.advanced').click(function(){
$('.formFilter').toggle();
$('.formFilter2').toggle();
});
});
var swiper = new Swiper('.swiper-container', {
slidesPerView: 5,
spaceBetween: 30,
pagination: {
... |
from shapely.geometry import shape
from shapely.ops import unary_union
import fiona
import networkx as nx
import geopy.distance
import itertools
from haversine import haversine
from GraphSimplify import GraphSimplify
from MultiDiGraphConvertor import MultiDiToSimple
class GraphConvertor:
def __init__(self, input_... |
from pprint import pprint
import pytest
from plenum import config
from stp_core.loop.eventually import eventually
from stp_core.common.log import getlogger
from stp_core.loop.looper import Looper
from plenum.common.messages.node_messages import Primary, PrePrepare, Prepare, Commit
from plenum.common.util import getMa... |
module.exports = {
methods: {
/**
* Determine if the given country collects European VAT.
*/
collectsVat(country) {
return Spark.collectsEuropeanVat ? _.contains([
'BE', 'BG', 'CZ', 'DK', 'DE',
'EE', 'IE', 'GR', 'ES', 'FR',
... |
import numpy as np
import os
import json
query_path='../logs/NAIC_All/B/1_101x_rcs/query_paths.npy'
gallery_path = '../logs/NAIC_All/B/1_101x_rcs/gallery_paths.npy'
query = np.load(query_path)
gallery = np.load(gallery_path)
print(len(query), len(gallery))
dist1_path = '../logs/NAIC_All/B/1_101x_rcs/dist.npy'
dist2... |
/**
* Testing
* @ndaidong
*/
const test = require('tap').test;
const {
isFunction,
} = require('bellajs');
const {stringify} = require('../../../src/helpers');
test('.stringify()', (assert) => {
assert.ok(isFunction(stringify), 'stringify() must be a function');
const v1 = 'Just a string';
const e1 = v... |
import PanoViewer from "./PanoViewer/PanoViewer";
import {SpinViewer, SpriteImage} from "./SpinViewer/index";
import {VERSION} from "./version";
export {
PanoViewer,
SpinViewer,
SpriteImage,
VERSION
};
|
function MockDoc(text) {
this.type = {name: 'text'};
this.data = text || '';
this.subscribed = false;
this.errorOnSubscribe = null;
this._opListeners = [];
}
module.exports = MockDoc;
MockDoc.prototype.subscribe = function(callback) {
var doc = this;
process.nextTick(function() {
doc.subscribed = tru... |
var fs = require('promised-io/fs');
var promise = require('promised-io/promise');
var path = require('path');
module.exports = function(grunt) {
var tryCopy = function(src, dest) {
try {
grunt.file.copy(src, dest);
} catch (e) {
grunt.log.warn('Cannot copy to ' + dest.red);
}
}... |
import React, { Component } from 'react';
import { Grid, Row, Image, PageHeader } from 'react-bootstrap';
import us from './private/assets/us.jpg';
import './Us.css';
class Us extends Component {
render() {
return (
<div>
<Grid>
<Row>
<PageHeader>Bienvenue sur not... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fab';
var iconName = 'windows';
var width = 448;
var height = 512;
var ligatures = [];
var unicode = 'f17a';
var svgPathData = 'M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203... |
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'Y \m. E j \d.'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = r'Y \m. E j \d., H:i'
YEAR_MONTH_FORMAT = r'Y... |
# coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import copy
import json
import logging
import math
import os
import numpy as np
import torch
from extensions import privacy, RL, quant_model
from utils import compute_grad_cosines, print_rank, to_cuda
from core.strategies import BaseStrategy
fr... |
Object.defineProperty(exports, "__esModule", { value: true });
var content_view_1 = require("@nativescript/core/ui/content-view");
var grid_layout_1 = require("@nativescript/core/ui/layouts/grid-layout");
var proxy_view_container_1 = require("@nativescript/core/ui/proxy-view-container");
var AppHostView = /** @class */... |
# -*-coding:utf-8-*-
import json
import os
import re
import sys
import subprocess
from getpass import getpass
from copy import deepcopy
from apps.configs.config import CONFIG
from apps.configs.sys_config import PROJECT_PATH, SUPER_PER
from apps.core.logger.web_logging import web_start_log
from apps.modules.user.process... |
import logo from './logo.svg';
import './App.css';
import Header from './components/Header'
import Warning from './components/Warning'
import History from './components/History'
function App() {
return (
// color of page ----->-----------------------v
<div className="App" style={{ background: '#f3f3f3' }}>
... |
/* global window, document, location */
(() => {
const SCRIPT_PATHS = [
["configuration.js"],
["bgpage/misc/netfilters.js", "bgpage/business.js", "bgpage/network.js", "bgpage/tabs.js", "bgpage/ui.js", "bgpage/welcome.js"],
["content/misc/minhash.js", "content/misc/tokenizer.js", "content/bgpage.js", "content/b... |
import React from "react";
import { useForm } from "react-hook-form";
import { withRouter } from "react-router-dom";
import { useStateMachine } from "little-state-machine";
import updateAction from "./updateAction";
import { Range } from '../components/input/index';
import { QuestionTitle } from '../components/index';... |
Package.describe({
name: "msavin:usercache",
summary: "The one simple trick that can save you millions of database requests!",
version: '1.0.1',
git: "https://github.com/msavin/userCache.git",
documentation: "README.md",
});
Package.onUse(function(api) {
api.addFiles("server.js", "server");
api.versionsFro... |
const path = require('path');
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './src/handler.js',
target: 'node',
externals: [nodeExternals()],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel-loader'],
include: __dirname,
exclude: /node_modules/,
}],
},
no... |
import React, {Fragment} from "react";
import {logo} from "../src/logos";
import {FloatLeft, FloatRight} from "../src/styles/Grid";
import {SubtleLink} from "../src/styles/Typography";
import {AppNav, HomeNav} from "../src/styles/Header";
import {SpaceBetween} from "../src/styles/Grid";
export default {
title: "Nav"... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @implements {SDK.TargetManager.Observer}
* @unrestricted
*/
Components.ExecutionContextSelector = class {
/**
* @param {!SDK.TargetManager} t... |
"use strict";
// global variables
var gl;
var canvas;
var program;
var vBuffer, cBuffer, iBuffer;
var cubeModelMatrix, floorModelMatrix;
var camera; // camera object
var trackball; // virtual trackball
var uMVP; // location of Model-View-Projection matrix
window.onload = function init() {
// Set up WebGL
c... |
/* eslint-disable max-len */
module.exports = {
API_URI: '/api',
PORT: process.env.PORT || 8080,
MONGO_URL: 'mongodb://vlad_morzhanov:rMk2133352#@generalcluster-shard-00-00-cu9lx.mongodb.net:27017,generalcluster-shard-00-01-cu9lx.mongodb.net:27017,generalcluster-shard-00-02-cu9lx.mongodb.net:27017/admin?replicaSe... |
AJS.toInit(function ($) {
/**
* Creates a new UndoController. The undo controller manages an instance of
* UndoManager and delegates all undo and redo commands to the undo manager.
*
* @constructor
* @param {mindmaps.EventBus} eventBus
* @param {mindmaps.CommandRegistry} commandRegistry
*/
mindmaps.UndoContro... |
import React, { useState } from 'react'
import { toast } from '@redwoodjs/web/toast'
import { useShittyAuth } from '../../../hooks/useShittyAuth'
export const RoomAdminAuthButton = ({ isAdmin, roomId }) => {
const { grantAdmin, getAdminToken } = useShittyAuth()
const [loading, setLoading] = useState(false)
cons... |
export function fetchSouvenirList(svnrs) {
return {
type : "FETCH_SVNRS_SUCCESS",
payload : svnrs
}
}
|
import PropTypes from 'prop-types'
import { views as Views } from './constants'
let viewNames = Object.keys(Views).map(k => Views[k])
export let accessor = PropTypes.oneOfType([PropTypes.string, PropTypes.func])
export let dateFormat = PropTypes.any
export let dateRangeFormat = PropTypes.func
/**
* ac... |
from gpt2.accumulate import *
from gpt2.encode import *
from gpt2.encoder import *
from gpt2.interactive_conditional_samples import *
from gpt2.load_dataset import *
from gpt2.memory_saving_gradients import *
from gpt2.model import *
from gpt2.sample import *
|
deepmacDetailCallback("300a60a00000/28",[{"a":"Unit 2 Trentside Business Village, Farndon Road Newark Nottinghamshire GB NG24 4XB","o":"Ampetronic Ltd","d":"2018-06-17","t":"add","s":"ieee","c":"GB"}]);
|
import json
import math
import numpy as np
import pandas as pd
import pytest
from scipy.sparse import csr_matrix, csc_matrix
from mlflow.exceptions import MlflowException
from mlflow.pyfunc import _enforce_tensor_spec
from mlflow.types import DataType
from mlflow.types.schema import ColSpec, Schema, TensorSpec
from ml... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simulate a traffic junction environment.
Each agent can observe itself (it's own identity) i.e. s_j = j and vision, path ahead of it.
Design Decisions:
- Memory cheaper than time (compute)
- Using Vocab for class of box:
- Action Space & Observation Space a... |
function my_function489(){
//34021709247207958347580293941631SuRMlKYnwyTXdwAzybuODbZWxaGZzpkY
}
function my_function243(){
//55642976912820754681195606541439kWHaMfsfubGawSXTNsdwBbFSCyRKZSIr
}
function my_function795(){
//08467512901471385814635890989225SThEhhQiwFldFqlZpjceqlIaeOtoQFul
}
function my_function316(){
/... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'embedbase', 'uk', {
pathName: 'Медіаоб’єкт',
title: 'Медіаконтент',
button: 'Вставити медіаконтент',
unsupportedUrlGiven: 'Вка... |
// flow-typed signature: 3c7175f9706cf743ee23814c75e1b856
// flow-typed version: <<STUB>>/youtube-api_v^2.0.8/flow_v0.44.2
/**
* This is an autogenerated libdef stub for:
*
* 'youtube-api'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with th... |
(function (angular, _) {
'use strict';
var thisModule = angular.module('appHome', []);
thisModule.controller('appHomeController',
function ($scope, $state) {
$scope.pages = [{
Name: "Sample Name",
Items: [{
Name: 'Name1',
... |
/*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.datepicker-it.js
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.it={closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio"... |